@carto/meridian-ds 0.1.0 → 0.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ "use strict";const l=require("react/jsx-runtime"),w=require("@mui/material"),z=require("@mui/icons-material/KeyboardArrowLeftOutlined"),F=require("@mui/icons-material/KeyboardArrowRightOutlined"),I=require("react-intl"),P=require("./theme-constants-Da63svSG.cjs"),k=require("react"),V={regular:400,medium:500,strong:600};function Z({italic:e,weight:t,style:a,children:n,...i},d){const r={fontWeight:V[t],fontStyle:e?"italic":void 0};return l.jsx(w.Typography,{...i,ref:d,style:{...r,...a},children:n})}const q=k.forwardRef(Z),W={c4r:{form:{selectAll:"Select all",selectNone:"None",allSelected:"All selected",noneSelected:"None selected",selected:"selected",add:"Add",filesSelected:"{count, plural, one{# file} other{# files}} selected",dragPlaceholder:"Drag and drop your {count, plural, one{file} other{files}} or click to browse",dragActivePlaceholder:"Drop your {count, plural, one{file} other{files}} here...",pagination:{noMorePages:"No more pages",prevPage:"Previous page",nextPage:"Next page"}},widgets:{category:{apply:"Apply",unlock:"Unlock",lock:"Lock",clear:"Clear",noResults:"No results",noResultsMessage:`Your search "{searchValue}" didn't match with any value.`,cancel:"Cancel",searchInfo:"Search in {elements} elements",selectedItems:"{items, plural, one{# selected} other{# selected}}",all:"All",search:"Search"},bar:{all:"All",selectedItems:"{items, plural, one{# selected} other{# selected}}",clear:"Clear"},histogram:{all:"All",selectedItems:"{items} selected",clear:"Clear"},legend:{layerOptions:"Layer options",hide:"Hide",show:"Show",layer:"layer",opacity:"Opacity",hideLayer:"Hide layer",showLayer:"Show layer",open:"Open legend",close:"Close",collapse:"Collapse layer",expand:"Expand layer",zoomLevel:"Zoom level",zoomLevelTooltip:"This layer is only visible at certain zoom levels",lowerThan:"lower than",greaterThan:"greater than",and:"and",zoomNote:"Note: this layer will display at zoom levels",notSupported:"is not a known legend type",subtitles:{proportion:"Radius range by",icon:"Icon based on",strokeColor:"Stroke color based on",color:"Color based on"},max:"Max",min:"Min",maxCategories:"Legend limited to {n} categories"},range:{clear:"Clear",minLimit:"min limit",maxLimit:"max limit",minValue:"min value",maxValue:"max value"},table:{rowsPerPage:"Rows per page",of:"{from}–{to} of {count}",moreThan:"more than"},timeSeries:{speed:"Speed",clear:"Clear"},featureSelection:{drawPolygonMode:"Polygon",drawRectangleMode:"Rectangle",drawPolygonByDraggingMode:"Lasso tool",drawCircleFromCenterMode:"Circle",edit:"Edit mask",clickToEdit:"Click on the mask to edit it",clickToCreate:"Click on the map to create a mask",selectTool:"Select a {label}",selectMode:"Select a mode",chooseSelectionMode:"Choose a selection mode",applyMask:"Apply mask",clearMask:"Clear mask",remove:"Remove",polygon:"Polygon",point:"Point",lineString:"Line",invalid:"Invalid geometry"},pie:{clear:"Clear",selectedItems:"{items, plural, one{# selected} other{# selected}}",allSelected:"All"},chartLegend:{next:"Next page",prev:"Previous page"}}}},Y={c4r:{form:{selectAll:"Seleccionar todos",selectNone:"Ninguno",allSelected:"Todos seleccionados",noneSelected:"Ninguno seleccionado",selected:"seleccionado",add:"Añadir",filesSelected:"{count, plural, one{# archivo} other{# archivos}} seleccionados",dragPlaceholder:"Arrastra y suelta {count, plural, one{tu archivo} other{tus archivos}} o pulsa para seleccionar",dragActivePlaceholder:"Suelta {count, plural, one{tu archivo} other{tus archivos}} aqui...",pagination:{noMorePages:"No más páginas",prevPage:"Página anterior",nextPage:"Página siguiente"}},widgets:{category:{apply:"Aplicar",unlock:"Desbloquear",lock:"Bloquear",clear:"Limpiar",noResults:"Sin resultados",noResultsMessage:'Su búsqueda "{searchValue}" no coincide con ningún valor.',cancel:"Cancelar",searchInfo:"Buscar en {elements} elementos",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",all:"Todos",search:"Buscar"},bar:{all:"Todos",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",clear:"Limpiar"},histogram:{all:"Todos",selectedItems:"{items} seleccionados",clear:"Limpiar"},legend:{layerOptions:"Opciones de capa",hide:"Ocultar",show:"Mostrar",layer:"capa",opacity:"Opacidad",hideLayer:"Ocultar capa",showLayer:"Mostrar capa",open:"Abrir leyenda",close:"Cerrar",collapse:"Colapsar capa",expand:"Expandir capa",zoomLevel:"Nivel de zoom",zoomLevelTooltip:"Esta capa solo es visible a ciertos niveles de zoom",lowerThan:"menor que",greaterThan:"mayor que",and:"y",zoomNote:"Nota: esta capa se mostrará a un nivel de zoom",notSupported:"no es un tipo de leyenda conocido",subtitles:{proportion:"Tamaño basado en",icon:"Icono basado en",strokeColor:"Color del borde basado en",color:"Color basado en"},max:"Max",min:"Min"},range:{clear:"Limpiar",minLimit:"Límite mínimo",maxLimit:"Límite máximo",minValue:"Valor mínimo",maxValue:"Valor máximo"},table:{rowsPerPage:"Filas por página",of:"{from}–{to} de {count}",moreThan:"más de"},timeSeries:{speed:"Velocidad",clear:"Limpiar"},featureSelection:{drawPolygonMode:"Polígono",drawRectangleMode:"Rectángulo",drawPolygonByDraggingMode:"Herramienta Lazo",drawCircleFromCenterMode:"Círculo",edit:"Editar máscara",clickToEdit:"Haga clic en la máscara para editarla",clickToCreate:"Haga clic en el mapa para crear una máscara",selectTool:"Seleccionar un {label}",selectMode:"Seleccionar un modo",chooseSelectionMode:"Elegir un modo de selección",applyMask:"Aplicar máscara",clearMask:"Limpiar máscara",remove:"Eliminar",polygon:"Polígono",point:"Punto",lineString:"Línea"},pie:{clear:"Limpiar",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",allSelected:"Todos seleccionados"},chartLegend:{next:"Página siguiente",prev:"Página anterior"}}}},j={c4r:{form:{selectAll:"Select all",selectNone:"None",allSelected:"All selected",noneSelected:"None selected",selected:"selected",add:"Add",filesSelected:"{count, plural, one{# file} other{# files}} selected",dragPlaceholder:"Drag and drop your {count, plural, one{file} other{files}} or click to browse",dragActivePlaceholder:"Drop your {count, plural, one{file} other{files}} here...",pagination:{noMorePages:"No more pages",prevPage:"Previous page",nextPage:"Next page"}},widgets:{category:{apply:"Terapkan",unlock:"Buka kunci",lock:"Kunci",clear:"Bersihkan",noResults:"Tidak ada hasil",noResultsMessage:"Pencarian Anda {searchValue} tidak cocok dengan nilai apa pun.",cancel:"Batal",searchInfo:"Cari dalam {elements} elemen",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",all:"Semua",search:"Cari"},bar:{all:"Semua",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",clear:"Bersihkan"},histogram:{all:"Semua",selectedItems:"{items} terpilih",clear:"Bersihkan"},legend:{layerOptions:"Opsi Layer",hide:"Sembunyikan",show:"Tampilkan",layer:"layer",opacity:"Opasitas",hideLayer:"Sembunyikan layer",showLayer:"Tampilkan layer",open:"Buka legenda",close:"Tutup",collapse:"Ciutkan layer",expand:"Perluas layer",zoomLevel:"Tingkat Zoom",zoomLevelTooltip:"Layer ini hanya terlihat pada tingkat zoom tertentu",lowerThan:"lebih rendah dari",greaterThan:"lebih tinggi dari",and:"dan",zoomNote:"Catatan: layer ini akan ditampilkan pada tingkat zoom",notSupported:"bukan jenis legenda yang dikenal",subtitles:{proportion:"Rentang radius berdasarkan",icon:"Ikon berdasarkan",strokeColor:"Warna garis berdasarkan",color:"Warna berdasarkan"},max:"Maks",min:"Min",maxCategories:"Legenda terbatas pada {n} kategori"},range:{clear:"Bersihkan",minLimit:"batas minimum",maxLimit:"batas maksimum",minValue:"nilai minimum",maxValue:"nilai maksimum"},table:{rowsPerPage:"Baris per halaman",of:"{from}–{to} dari {count}",moreThan:"lebih dari"},timeSeries:{speed:"Kecepatan",clear:"Bersihkan"},featureSelection:{drawPolygonMode:"Poligon",drawRectangleMode:"Persegi panjang",drawPolygonByDraggingMode:"Alat lasso",drawCircleFromCenterMode:"Lingkaran",edit:"Edit masker",clickToEdit:"Klik pada masker untuk mengeditnya",clickToCreate:"Klik pada peta untuk membuat masker",selectTool:"Pilih {label}",selectMode:"Pilih mode",chooseSelectionMode:"Pilih mode seleksi",applyMask:"Terapkan masker",clearMask:"Bersihkan masker",remove:"Hapus",polygon:"Poligon",point:"Titik",lineString:"Garis",invalid:"Geometri tidak valid"},pie:{clear:"Bersihkan",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",allSelected:"Semua terpilih"},chartLegend:{next:"Next page",prev:"Previous page"}}}},N={en:W,es:Y,id:j};function J(e){return Intl.getCanonicalLocales(e)}function C(e,t,a){if(a||arguments.length===2)for(var n=0,i=t.length,d;n<i;n++)(d||!(n in t))&&(d||(d=Array.prototype.slice.call(t,0,n)),d[n]=t[n]);return e.concat(d||Array.prototype.slice.call(t))}var v={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"}}]}}},Q={"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"]},H=/-u(?:-[0-9a-z]{2,8})+/gi;function S(e,t,a){if(a===void 0&&(a=Error),!e)throw new a(t)}var $=838,G;function X(){var e,t;if(!G){var a=(t=(e=v.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),n=v.supplemental.languageMatching["written-new"].slice(1,5),i=v.supplemental.languageMatching["written-new"].slice(5),d=i.map(function(r){var s=Object.keys(r)[0],o=r[s];return{supported:s,desired:o._desired,distance:+o._distance,oneway:o.oneway==="true"}},{});G={matches:d,matchVariables:n.reduce(function(r,s){var o=Object.keys(s)[0],_=s[o];return r[o.slice(1)]=_._value.split("+"),r},{}),paradigmLocales:C(C([],a,!0),a.map(function(r){return new Intl.Locale(r.replace(/_/g,"-")).maximize().toString()}),!0)}}return G}function T(e,t,a){var n=t.split("-"),i=n[0],d=n[1],r=n[2],s=!0;if(r&&r[0]==="$"){var o=r[1]!=="!",_=o?a[r.slice(1)]:a[r.slice(2)],c=_.map(function(y){return Q[y]||[y]}).reduce(function(y,p){return C(C([],y,!0),p,!0)},[]);s&&(s=c.indexOf(e.region||"")>1==o)}else s&&(s=e.region?r==="*"||r===e.region:!0);return s&&(s=e.script?d==="*"||d===e.script:!0),s&&(s=e.language?i==="*"||i===e.language:!0),s}function b(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function B(e,t,a){for(var n=0,i=a.matches;n<i.length;n++){var d=i[n],r=T(e,d.desired,a.matchVariables)&&T(t,d.supported,a.matchVariables);if(!d.oneway&&!r&&(r=T(e,d.supported,a.matchVariables)&&T(t,d.desired,a.matchVariables)),r){var s=d.distance*10;return a.paradigmLocales.indexOf(b(e))>-1!=a.paradigmLocales.indexOf(b(t))>-1?s-1:s}}throw new Error("No matching distance found")}function ee(e,t){var a=new Intl.Locale(e).maximize(),n=new Intl.Locale(t).maximize(),i={language:a.language,script:a.script||"",region:a.region||""},d={language:n.language,script:n.script||"",region:n.region||""},r=0,s=X();return i.language!==d.language&&(r+=B({language:a.language,script:"",region:""},{language:n.language,script:"",region:""},s)),i.script!==d.script&&(r+=B({language:a.language,script:i.script,region:""},{language:n.language,script:i.script,region:""},s)),i.region!==d.region&&(r+=B(i,d,s)),r}function ae(e,t,a){a===void 0&&(a=$);var n=1/0,i={matchedDesiredLocale:"",distances:{}};return e.forEach(function(d,r){i.distances[d]||(i.distances[d]={}),t.forEach(function(s){var o=ee(d,s)+0+r*40;i.distances[d][s]=o,o<n&&(n=o,i.matchedDesiredLocale=d,i.matchedSupportedLocale=s)})}),n>=a&&(i.matchedDesiredLocale=void 0,i.matchedSupportedLocale=void 0),i}function ne(e,t,a){var n,i,d=[],r=t.reduce(function(o,_){var c=_.replace(H,"");return d.push(c),o[c]=_,o},{}),s=ae(d,e);return s.matchedSupportedLocale&&s.matchedDesiredLocale&&(n=s.matchedSupportedLocale,i=r[s.matchedDesiredLocale].slice(s.matchedDesiredLocale.length)||void 0),n?{locale:n,extension:i}:{locale:a()}}function re(e,t){for(var a=t;;){if(e.indexOf(a)>-1)return a;var n=a.lastIndexOf("-");if(!~n)return;n>=2&&a[n-2]==="-"&&(n-=2),a=a.slice(0,n)}}function te(e,t,a){for(var n={locale:""},i=0,d=t;i<d.length;i++){var r=d[i],s=r.replace(H,""),o=re(e,s);if(o)return n.locale=o,r!==s&&(n.extension=r.slice(s.length,r.length)),n}return n.locale=a(),n}function ie(e,t){S(t.length===2,"key must have 2 elements");var a=e.length,n="-".concat(t,"-"),i=e.indexOf(n);if(i!==-1){for(var d=i+4,r=d,s=d,o=!1;!o;){var _=e.indexOf("-",s),c=void 0;_===-1?c=a-s:c=_-s,c===2?o=!0:_===-1?(r=a,o=!0):(r=_,s=_+1)}return e.slice(d,r)}if(n="-".concat(t),i=e.indexOf(n),i!==-1&&i+3===a)return""}function de(e,t,a,n,i,d){var r=a.localeMatcher,s;r==="lookup"?s=te(Array.from(e),t,d):s=ne(Array.from(e),t,d);for(var o=s.locale,_={locale:"",dataLocale:o},c="-u",y=0,p=n;y<p.length;y++){var u=p[y];S(o in i,"Missing locale data for ".concat(o));var g=i[o];S(typeof g=="object"&&g!==null,"locale data ".concat(u," must be an object"));var M=g[u];S(Array.isArray(M),"keyLocaleData for ".concat(u," must be an array"));var m=M[0];S(typeof m=="string"||m===null,"value must be string or null but got ".concat(typeof m," in key ").concat(u));var f="";if(s.extension){var L=ie(s.extension,u);L!==void 0&&(L!==""?~M.indexOf(L)&&(m=L,f="-".concat(u,"-").concat(m)):~L.indexOf("true")&&(m="true",f="-".concat(u)))}if(u in a){var h=a[u];S(typeof h=="string"||typeof h>"u"||h===null,"optionsValue must be String, Undefined or Null"),~M.indexOf(h)&&h!==m&&(m=h,f="")}_[u]=m,c+=f}if(c.length>2){var A=o.indexOf("-x-");if(A===-1)o=o+c;else{var D=o.slice(0,A),U=o.slice(A,o.length);o=D+c+U}o=Intl.getCanonicalLocales(o)[0]}return _.locale=o,_}function se(e,t,a,n){return de(t,J(e),{localeMatcher:"best fit"},[],{},function(){return a}).locale}const E="en";function O(e,t=""){return Object.keys(e).reduce((a,n)=>{const i=e[n],d=t?`${t}.${n}`:n;return typeof i=="string"?a[d]=i:Object.assign(a,O(i,d)),a},{})}function oe(e,t){const a=Object.keys(t),n=se([e],a,E);return n||E}const _e=I.createIntlCache(),R=new WeakMap,ce=e=>{const t=(e==null?void 0:e.locale)||E,a=oe(t,N),n={...N[a]||{},...(e==null?void 0:e.messages)??{}},i=O(n);return I.createIntl({locale:t,messages:i},_e)},ue=e=>{const t=R.get(e);if(t)return t;const a=ce(e);return R.set(e,a),a};function x(e){return ue(e)}const le=w.styled(w.Box)(({theme:e})=>({display:"flex",gap:e.spacing(.5),marginLeft:e.spacing(1)})),K=w.styled("div")(({theme:e})=>({"& .MuiIconButton-root:not(.Mui-disabled)":{color:e.palette.text.secondary}}));function ye({count:e,page:t,rowsPerPage:a=10,onPageChange:n,lastPageTooltip:i}){const d=I.useIntl(),r=x(d),s=g=>{n(g,t-1)},o=g=>{n(g,t+1)},_=t===Math.ceil(e/a)-1,c=t===0,y=r.formatMessage({id:"c4r.form.pagination.prevPage"}),p=r.formatMessage({id:"c4r.form.pagination.nextPage"}),u=r.formatMessage({id:"c4r.form.pagination.noMorePages"});return l.jsxs(le,{children:[l.jsx(w.Tooltip,{title:c?u:y,children:l.jsx(K,{children:l.jsx(w.IconButton,{onClick:s,disabled:t===0,"aria-label":y,children:l.jsx(z,{})})})}),l.jsx(w.Tooltip,{title:_?i??u:p,children:l.jsx(K,{children:l.jsx(w.IconButton,{onClick:o,disabled:t>=Math.ceil(e/a)-1,"aria-label":p,children:l.jsx(F,{})})})})]})}const we=w.styled(w.Alert,{shouldForwardProp:e=>!["isNeutral","content","hasCloseButton","hasAction","hasTitle","isSticky"].includes(e)})(({isNeutral:e,content:t,hasCloseButton:a,hasAction:n,hasTitle:i,isSticky:d,theme:r})=>({columnGap:r.spacing(1),minHeight:r.spacing(6),...n&&{display:"grid",gridTemplateAreas:t==="inline"||a?'"icon message actions"':`
2
+ "icon message"
3
+ "icon actions"
4
+ `,gridTemplateColumns:a?`${P.ICON_SIZE_MEDIUM} 1fr ${r.spacing(3)}`:`${P.ICON_SIZE_MEDIUM}`},...e&&{backgroundColor:r.palette.default.background,color:r.palette.text.primary},...d&&{borderRadius:0},".MuiAlert-message":{flex:1,paddingTop:i?r.spacing(.25):r.spacing(.5),"& a":{color:r.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},...n&&{gridArea:"message"},...e&&{"& :not(.MuiAlertTitle-root)":{color:r.palette.text.secondary},a:{color:`${r.palette.primary.main} !important`}}},".MuiAlert-icon":{height:i?r.spacing(2.5):r.spacing(3),marginRight:0,...n&&{gridArea:"icon"},...e&&{color:r.palette.text.primary}},".MuiAlert-action":{alignItems:t==="inline"&&!a?"center":"flex-start",margin:t==="block"&&!a?r.spacing(1.5,0,.5):0,marginLeft:t==="inline"||a?"auto":0,padding:0,...n&&{gridArea:"actions"},".MuiIconButton-root svg path":{fill:a?r.palette.text.secondary:void 0}}}));function me({title:e,action:t,severity:a="neutral",content:n="inline",variant:i="standard",children:d,onClose:r,open:s,isSticky:o,..._},c){const[y,p]=k.useState(s??!0),u=r?m=>{r(m),p(!1)}:void 0,g=a==="neutral",M=s??y;return l.jsx(w.Fade,{in:M,appear:!1,children:l.jsxs(we,{ref:c,severity:g?"info":a,isNeutral:g,content:n,action:t,onClose:u,hasCloseButton:!!r,hasAction:!!t,hasTitle:!!e,isSticky:o,variant:i,..._,children:[e&&l.jsx(w.AlertTitle,{children:e}),l.jsx(q,{variant:"caption",color:"inherit",component:"div",children:d})]})})}const ge=k.forwardRef(me);exports.Alert=ge;exports.TablePaginationActions=ye;exports.Typography=q;exports.useImperativeIntl=x;
@@ -1,7 +1,7 @@
1
- import { j as o } from "./jsx-runtime-B6kdoens.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import { SvgIcon as e } from "@mui/material";
3
- function t(r) {
4
- return /* @__PURE__ */ o.jsx(e, { ...r, children: /* @__PURE__ */ o.jsx(
3
+ function i(r) {
4
+ return /* @__PURE__ */ o(e, { ...r, children: /* @__PURE__ */ o(
5
5
  "path",
6
6
  {
7
7
  fillRule: "evenodd",
@@ -12,5 +12,5 @@ function t(r) {
12
12
  ) });
13
13
  }
14
14
  export {
15
- t as A
15
+ i as A
16
16
  };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("@mui/material");function n(e){return r.jsx(o.SvgIcon,{...e,children:r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 12.17L9.32998 9L7.91998 10.41L12.5 15L17.09 10.41L15.67 9L12.5 12.17Z",fill:"currentColor"})})}exports.ArrowDropIcon=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-Cek9Ww4S.cjs"),r=require("@mui/material"),M=require("react"),x=require("../Alert-l8e3Fw5e.cjs"),I=require("../createSvgIcon-BhsoeSAN.cjs"),A=require("@mui/icons-material"),C=require("react-intl"),G=require("@emotion/react");function V(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const O=V(M);function H(t){return Object.keys(t).length===0}function q(t=null){const n=O.useContext(G.ThemeContext);return!n||H(n)?t:n}const U=I.createTheme();function W(t=U){return q(t)}function D(){const t=W(I.defaultTheme);return process.env.NODE_ENV!=="production"&&O.useDebugValue(t),t[I.THEME_ID]||t}function N({children:t,...n},o){return e.jsxRuntimeExports.jsx(r.Button,{...n,ref:o,children:e.jsxRuntimeExports.jsx(x.Typography,{variant:"inherit",color:"inherit",noWrap:!0,component:"span",children:t})})}const z=M.forwardRef(N),Z=r.styled(r.Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5)})),Y=r.styled(x.Typography)(({theme:t})=>({".Mui-disabled &":{color:t.palette.text.disabled}})),J=r.styled(r.Box)(({theme:t})=>({display:"flex",svg:{width:I.ICON_SIZE_SMALL,height:I.ICON_SIZE_SMALL,fontSize:I.ICON_SIZE_SMALL,path:{fill:t.palette.text.secondary,".Mui-disabled &":{fill:t.palette.text.disabled}}}}));function K({label:t,type:n,icon:o,inheritSize:i}){return e.jsxRuntimeExports.jsxs(Z,{children:[t,n&&e.jsxRuntimeExports.jsx(Y,{component:"span",variant:i?"inherit":"caption",color:"textSecondary",weight:"regular",children:n==="required"?"(required)":"(optional)"}),o&&e.jsxRuntimeExports.jsx(J,{children:o})]})}function Q({InputProps:t,size:n="small",...o},i){const[s,l]=M.useState(!1),u=()=>l(!s);return e.jsxRuntimeExports.jsx(r.TextField,{...o,ref:i,type:s?"text":"password",size:n,InputProps:{...t,endAdornment:e.jsxRuntimeExports.jsx(r.InputAdornment,{position:"end",children:e.jsxRuntimeExports.jsx(r.IconButton,{size:n,onClick:u,children:s?e.jsxRuntimeExports.jsx(A.VisibilityOutlined,{}):e.jsxRuntimeExports.jsx(A.VisibilityOffOutlined,{})})})}})}const X=M.forwardRef(Q),L={};function tt(t="$lodash$"){L[t]||(L[t]=0);const n=++L[t];return t==="$lodash$"?`${n}`:`${t}${n}`}const et=r.styled(r.Select)(({theme:t})=>({"& .MuiInputAdornment-positionStart":{paddingLeft:t.spacing(2),"&.MuiInputAdornment-sizeSmall":{paddingLeft:t.spacing(1.5)}},"& .MuiInputBase-inputAdornedStart":{paddingLeft:"0px !important"},"& .MuiSelect-select .MuiMenuItem-root:hover":{backgroundColor:"transparent"},"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple":{paddingRight:t.spacing(7)}})),nt=r.styled(r.MenuItem)(()=>({display:"none"}));function ot({children:t,placeholder:n,size:o="small",displayEmpty:i,menuProps:s,inputProps:l,labelId:u,label:g,labelSecondary:E,helperText:b,name:d,error:p,focused:m,disabled:h,fullWidth:f,required:j,"aria-label":a,...B},y){const v=o==="small",[c]=M.useState(()=>tt("select-label-")),R=g?u??c:void 0;return e.jsxRuntimeExports.jsxs(r.FormControl,{size:o,error:p,focused:m,disabled:h,fullWidth:f,required:j,children:[e.jsxRuntimeExports.jsxs(r.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[g&&e.jsxRuntimeExports.jsx(r.InputLabel,{shrink:!0,id:R,children:g}),E&&e.jsxRuntimeExports.jsx(r.Box,{display:"flex",alignItems:"center",ml:2,mb:.5,children:E})]}),e.jsxRuntimeExports.jsxs(et,{...B,labelId:R,name:d,ref:y,size:o,fullWidth:f,displayEmpty:i??!!n,inputProps:{...l,"aria-label":a},MenuProps:{...s,PopoverClasses:{paper:v?"MuiMenu-paper-sizeSmall":void 0},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:0,horizontal:"left"}},children:[n&&e.jsxRuntimeExports.jsx(nt,{disabled:!0,value:"",children:e.jsxRuntimeExports.jsx(x.Typography,{variant:v?"body2":"body1",color:"text.hint",component:"span",children:n})}),t]}),b&&e.jsxRuntimeExports.jsx(r.FormHelperText,{"aria-label":`${d}-helper`,children:b})]})}const _=M.forwardRef(ot),rt=r.styled(r.ToggleButtonGroup,{shouldForwardProp:t=>t!=="variant"&&t!=="backgroundColor"})(({variant:t,backgroundColor:n,theme:o})=>({...t==="contained"&&{boxShadow:"none"},...t==="unbounded"&&{boxShadow:"none",borderRadius:o.spacing(.5),"& .MuiDivider-root":{height:o.spacing(4),"&.MuiToggleButtonGroup-groupedHorizontal":{height:o.spacing(4)},"&.MuiToggleButtonGroup-groupedVertical":{height:"auto",width:o.spacing(4),margin:`${o.spacing(.5,0,1)} !important`,borderRadius:"0 !important"}},"& .MuiToggleButton-sizeSmall":{margin:0,"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)":{margin:0},"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal":{height:o.spacing(3)},"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical":{height:"auto",width:o.spacing(3)}},".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)":{margin:0,"&:first-of-type":{marginLeft:0},"&:not(:last-of-type)":{marginRight:o.spacing(.5)}},"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)":{".MuiToggleButtonGroup-grouped":{margin:o.spacing(0,.5)}},"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)":{".MuiToggleButtonGroup-grouped":{margin:o.spacing(0,0,.5),"&:not(:last-of-type)":{marginRight:0},"&:last-of-type":{marginBottom:0}}}},...n==="primary"&&{backgroundColor:o.palette.background.paper},...n==="secondary"&&{backgroundColor:o.palette.background.default},...n==="transparent"&&{backgroundColor:"transparent"}}));function it({children:t,variant:n="floating",backgroundColor:o,...i}){const l=n==="unbounded"?"transparent":"primary";return e.jsxRuntimeExports.jsx(rt,{...i,variant:n,backgroundColor:o??l,children:t})}const st=r.styled(r.Menu,{shouldForwardProp:t=>!["extended","width","height"].includes(t)})(({theme:t,extended:n,width:o,height:i})=>({...n&&{".MuiMenuItem-root":{minHeight:t.spacing(6)}},...o&&{".MuiList-root":{width:o,minWidth:o}},...i&&{".MuiMenu-paper":{overflow:"hidden"},".MuiList-root":{maxHeight:i}}}));function at(t){return e.jsxRuntimeExports.jsx(st,{...t})}const lt=r.styled(r.MenuItem,{shouldForwardProp:t=>!["subtitle","destructive","extended","fixed","iconColor"].includes(t)})(({theme:t,dense:n,subtitle:o,destructive:i,extended:s,fixed:l,iconColor:u="primary"})=>({...o&&{pointerEvents:"none",columnGap:0,...t.typography.caption,fontWeight:500,color:t.palette.text.secondary,".MuiListItemText-root .MuiTypography-root":{...t.typography.caption,fontWeight:500,color:t.palette.text.secondary},"&.MuiMenuItem-root":{minHeight:t.spacing(3),paddingTop:0,paddingBottom:0,marginTop:t.spacing(1),"&:not(:first-of-type)":{minHeight:t.spacing(5),paddingTop:t.spacing(1),borderTop:`1px solid ${t.palette.divider}`}}},...u==="primary"&&{".MuiListItemIcon-root svg path":{fill:t.palette.text.primary},"&.Mui-selected .MuiListItemIcon-root svg path":{fill:t.palette.primary.main},'.MuiAutocomplete-listbox &[aria-selected="true"] svg path':{fill:t.palette.primary.main}},...i&&{color:t.palette.error.main,".MuiTypography-root":{color:t.palette.error.main},"svg, & .MuiSvgIcon-root":{color:t.palette.error.main},".MuiListItemIcon-root svg path":{fill:t.palette.error.main},"&.Mui-selected .MuiListItemIcon-root svg path":{fill:t.palette.error.main},"&:hover":{backgroundColor:t.palette.error.relatedLight},"&.Mui-selected":{color:t.palette.error.main,".MuiTypography-root":{color:t.palette.error.main},"svg, & .MuiSvgIcon-root":{color:t.palette.error.main}},"&.Mui-disabled":{color:t.palette.text.disabled,".MuiTypography-root":{color:t.palette.text.disabled},svg:{color:t.palette.text.disabled}}},...s&&{"&.MuiButtonBase-root.MuiMenuItem-root":{minHeight:t.spacing(6)}},...l&&{"&.MuiMenuItem-root":{position:"sticky",top:0,left:0,bottom:0,right:0,zIndex:2,minHeight:t.spacing(6),marginBottom:t.spacing(1),padding:t.spacing(.5,1.5),backgroundColor:t.palette.background.paper,borderBottom:`1px solid ${t.palette.divider}`},".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type":{minHeight:t.spacing(6),marginTop:0,"&:hover":{backgroundColor:t.palette.background.paper}}},...!l&&{".MuiList-root &:first-of-type":{marginTop:t.spacing(1)}},...n&&{"&.MuiButtonBase-root.MuiMenuItem-root":{minHeight:t.spacing(3),padding:t.spacing(.25,1.5)}}}));function w(t){return e.jsxRuntimeExports.jsx(lt,{...t})}const ut=r.styled(r.MenuList,{shouldForwardProp:t=>!["extended","width","height"].includes(t)})(({theme:t,extended:n,width:o,height:i})=>({...n&&{".MuiMenuItem-root":{minHeight:t.spacing(6)}},"&.MuiList-root":{...o&&{width:o,minWidth:o},...i&&{maxHeight:i}}}));function ct(t){return e.jsxRuntimeExports.jsx(ut,{...t})}function dt({selectedOptions:t,options:n,onChange:o}){const[i,s]=M.useState(t||[]),l=n.length===i.length,u=i.length>0;return M.useEffect(()=>{i!==t&&s(i)},[t]),{areAllSelected:l,areAnySelected:u,currentOptions:i,handleChange:d=>{const{target:{value:p}}=d,m=typeof p=="string"?p.split(","):p.filter(h=>h!==void 0);s(m),o(m)},selectAll:()=>{const d=n==null?void 0:n.filter(({disabled:p})=>!p).map(({value:p})=>p);d&&(d.every(m=>i.includes(m))?(s([]),o([])):(s(d),o(d)))},unselectAll:()=>{s([]),o([])}}}const pt=r.styled(r.Link)(({disabled:t,theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing(1),width:"100%",textAlign:"initial",...t&&{pointerEvents:"none",color:n.palette.text.disabled}}));function xt({areAllSelected:t,areAnySelected:n,selectAll:o,selectAllDisabled:i}){const s=C.useIntl(),l=x.useImperativeIntl(s);return e.jsxRuntimeExports.jsx(w,{fixed:!0,children:e.jsxRuntimeExports.jsxs(pt,{variant:"body2",color:"textPrimary",component:"button",underline:"none",disabled:!!i,onClick:o,tabIndex:0,children:[e.jsxRuntimeExports.jsx(r.Checkbox,{checked:t,indeterminate:n&&!t,disabled:i}),l.formatMessage({id:"c4r.form.selectAll"})]})})}const gt=r.styled(r.MenuItem)(({theme:t})=>({"&.Mui-disabled":{pointerEvents:"auto","&:hover":{backgroundColor:`${t.palette.background.default} !important`}}})),mt=r.styled(r.InputAdornment)(({theme:t})=>({display:"none",position:"absolute",top:t.spacing(2),right:t.spacing(3.5),".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &":{display:"flex"},".MuiSvgIcon-root":{color:t.palette.text.hint}})),ft=[],jt=()=>{};function yt({options:t=ft,selectedOptions:n,size:o="small",placeholder:i,showCounter:s,showFilters:l=!0,onChange:u=jt,selectAllDisabled:g,tooltipPlacement:E,variant:b,...d},p){const{areAllSelected:m,areAnySelected:h,currentOptions:f,handleChange:j,selectAll:a,unselectAll:B}=dt({options:t,selectedOptions:n,onChange:u}),y=o==="small",v=y||b==="standard"?0:2,c=C.useIntl(),R=x.useImperativeIntl(c),T=`${f.length} ${R.formatMessage({id:"c4r.form.selected"})}`,F=M.useMemo(()=>m?e.jsxRuntimeExports.jsx(x.Typography,{component:"span",variant:y?"body2":"body1",color:"textPrimary",ml:v,children:R.formatMessage({id:"c4r.form.allSelected"})}):h?e.jsxRuntimeExports.jsx(x.Typography,{component:"span",variant:y?"body2":"body1",color:"textPrimary",ml:v,children:s&&f.length>1?T:f.join(", ")}):e.jsxRuntimeExports.jsx(x.Typography,{component:"span",variant:y?"body2":"body1",color:"text.hint",ml:v,children:i??R.formatMessage({id:"c4r.form.noneSelected"})}),[m,h,T,f,R,y,v,i,s]);return e.jsxRuntimeExports.jsxs(_,{...d,ref:p,multiple:!0,displayEmpty:!0,placeholder:i,value:f,renderValue:()=>F,onChange:j,size:o,variant:b,endAdornment:l&&h&&e.jsxRuntimeExports.jsx(mt,{position:"end",children:e.jsxRuntimeExports.jsx(r.IconButton,{onClick:B,size:"small",children:e.jsxRuntimeExports.jsx(A.Cancel,{})})}),menuProps:{PaperProps:{sx:{".MuiList-root":{paddingTop:0}}}},children:[l&&e.jsxRuntimeExports.jsx(xt,{areAllSelected:m,areAnySelected:h,selectAll:a,selectAllDisabled:g}),t==null?void 0:t.map(S=>{const P=e.jsxRuntimeExports.jsxs(gt,{value:S.value,disabled:S.disabled,tabIndex:0,children:[e.jsxRuntimeExports.jsx(r.Checkbox,{disabled:S.disabled,checked:f.includes(S.value)}),e.jsxRuntimeExports.jsx(r.ListItemText,{primary:S.label})]},S.value);return S.tooltip?e.jsxRuntimeExports.jsx(r.Tooltip,{title:S.tooltip,placement:E,children:P},S.value):P})]})}const ht=M.forwardRef(yt),Mt=I.styled(r.TextField,{shouldForwardProp:t=>t!=="cursor"})(({cursor:t,theme:n})=>({"&.MuiTextField-root .MuiInputBase-root":{cursor:t,paddingRight:n.spacing(1),"& input":{cursor:t},"&.Mui-disabled":{pointerEvents:"none","& .MuiButtonBase-root":{color:n.palette.text.disabled}},"&.MuiInputBase-sizeSmall":{paddingRight:n.spacing(.5)}},"& .MuiFormLabel-root":{cursor:t,"&.Mui-disabled":{pointerEvents:"none"}}}));function Et({buttonText:t,hasFiles:n,size:o,error:i,disabled:s,handleReset:l,handleOpen:u,inProgress:g}){return e.jsxRuntimeExports.jsx(r.InputAdornment,{position:"end",children:g?e.jsxRuntimeExports.jsx(r.IconButton,{"aria-label":"loading",disabled:!0,size:o,children:e.jsxRuntimeExports.jsx(r.CircularProgress,{size:18})}):n?e.jsxRuntimeExports.jsx(r.IconButton,{onClick:l,size:o,"aria-label":"delete",disabled:s,children:e.jsxRuntimeExports.jsx(A.Cancel,{})}):e.jsxRuntimeExports.jsx(r.Button,{onClick:u,size:o,variant:"text",color:i?"default":"primary",disabled:s,children:t})})}function $({name:t,multiple:n,handleReset:o,handleOpen:i,dragOver:s,error:l,placeholder:u,focused:g,buttonText:E="Browse",inProgress:b,InputProps:d,size:p="small",hasFiles:m,cursor:h="pointer",...f}){return e.jsxRuntimeExports.jsx(Mt,{...f,size:p,error:l,placeholder:u,focused:g??s,cursor:h,InputProps:{...d,name:t,readOnly:!0,endAdornment:e.jsxRuntimeExports.jsx(Et,{buttonText:E,hasFiles:m,size:p,error:l,disabled:!!s,handleReset:o,handleOpen:i,inProgress:b})}})}function bt({onChange:t,files:n,multiple:o,placeholder:i,uploadInputRef:s}){const l=C.useIntl(),u=x.useImperativeIntl(l),[g,E]=M.useState(""),[b,d]=M.useState(!1);M.useEffect(()=>{!n||n.length===0?E(""):n.length===1?E(n[0].name):E(u.formatMessage({id:"c4r.form.filesSelected"},{count:n.length}))},[n,u]);const p=()=>{var c;(c=s.current)==null||c.click()},m=c=>{c.preventDefault(),d(!0)},h=c=>{c.preventDefault(),d(!1)},f=c=>{c.preventDefault(),d(!1);const R=c.dataTransfer.items,T=j(R);t==null||t(T)},j=c=>{const R=[];for(const T of Array.from(c))if(T.kind==="file"){const F=T.getAsFile();R.push(F)}return R},a=c=>{const R=Array.from(c.target.files);t==null||t(R)},B=c=>{c.stopPropagation(),E("")},y=M.useMemo(()=>{const c=u.formatMessage({id:"c4r.form.dragPlaceholder"},{count:o?0:1}),R=u.formatMessage({id:"c4r.form.dragActivePlaceholder"},{count:o?0:1});let T="";return b?T=R:T=i??c,T},[b,o,i,u]);return{filesText:g,getPlaceholder:y,dragOver:b,inputEvents:{onDragOver:m,onDragLeave:h,onDrop:f,onClick:p},handleFiles:a,handleReset:B}}const Rt=["application/JSON"];function vt({name:t,buttonText:n,accept:o,files:i,inProgress:s,onChange:l,multiple:u,placeholder:g,error:E,focused:b,nativeInputProps:d,...p}){const m=o??Rt,h=M.useRef(null),{filesText:f,getPlaceholder:j,dragOver:a,inputEvents:B,handleFiles:y,handleReset:v}=bt({uploadInputRef:h,files:i,onChange:l,multiple:u,placeholder:g});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx($,{...p,placeholder:j,value:f,error:E,focused:b??a,handleReset:v,dragOver:a,inProgress:s,hasFiles:!!f,InputProps:B,buttonText:n}),e.jsxRuntimeExports.jsx("input",{...d,ref:h,style:{display:"none"},type:"file","aria-label":t,name:t,accept:String(m),multiple:u,onChange:y})]})}const It=r.styled("div",{shouldForwardProp:t=>t!=="variant"})(({variant:t,theme:n})=>({width:"100%",borderRadius:n.spacing(.5),...t==="outlined"&&{backgroundColor:n.palette.background.paper,boxShadow:`inset 0 0 0 1px ${n.palette.divider}`}}));function Tt({variant:t="standard",items:n,...o}){return e.jsxRuntimeExports.jsx(It,{...o,variant:t,children:n.map((i,s)=>e.jsxRuntimeExports.jsxs(r.Accordion,{disabled:i.disabled,defaultExpanded:i.defaultExpanded,onChange:i.onChange,children:[e.jsxRuntimeExports.jsx(r.AccordionSummary,{"aria-controls":`${s}-content`,id:`${s}-header`,children:i.summary}),e.jsxRuntimeExports.jsx(r.AccordionDetails,{children:i.content})]},s))})}const Bt=r.createFilterOptions(),St="c4r.form.add";function At(t){return t&&typeof t=="object"?t.title??String(t):String(t)}function Ct({creatable:t,newItemLabel:n=St,newItemIcon:o,freeSolo:i,renderOption:s,forcePopupIcon:l,filterOptions:u,getOptionLabel:g=At,...E},b){const d=C.useIntl(),p=x.useImperativeIntl(d),m=(j,a)=>{const B=Bt(j,a),{inputValue:y}=a,v=j.some(c=>y===g(c));return y.length>1&&y!==""&&!v&&B.push({inputValue:y,title:typeof n=="function"?n(y):`${p.formatMessage({id:n})} "${y}"`}),B},h=j=>typeof j=="string"?j:j.inputValue?j.inputValue:g(j),f=(j,a)=>e.jsxRuntimeExports.jsx(M.Fragment,{children:a.divider?e.jsxRuntimeExports.jsx(r.Divider,{}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[a.inputValue&&e.jsxRuntimeExports.jsx(r.Divider,{}),e.jsxRuntimeExports.jsxs(w,{...j,fixed:a.fixed,extended:a.extended,dense:a.dense,destructive:a.destructive,disabled:a.disabled,subtitle:a.subtitle,iconColor:a.iconColor,children:[a.inputValue&&e.jsxRuntimeExports.jsx(r.ListItemIcon,{children:o??e.jsxRuntimeExports.jsx(A.AddCircleOutlineOutlined,{})}),a.startAdornment&&!a.inputValue&&e.jsxRuntimeExports.jsx(r.ListItemIcon,{children:a.startAdornment}),e.jsxRuntimeExports.jsxs(r.ListItemText,{children:[a.alternativeTitle??a.title,a.secondaryText&&e.jsxRuntimeExports.jsx(x.Typography,{component:"p",variant:"caption",color:"text.secondary",children:a.secondaryText})]}),a.endAdornment]})]})},a.inputValue??a.title);return e.jsxRuntimeExports.jsx(r.Autocomplete,{...E,ref:b,filterOptions:t?m:u,getOptionLabel:t?h:g,renderOption:t?f:s,freeSolo:t||i,forcePopupIcon:t||l})}const Ft=M.forwardRef(Ct),k={large:5,medium:4,small:3,xsmall:2.25},Lt=r.styled(r.Avatar,{shouldForwardProp:t=>t!=="size"})(({theme:t,size:n="medium"})=>({width:t.spacing(k[n]),height:t.spacing(k[n]),...t.typography.subtitle1,...n==="large"&&{...t.typography.h6},...n==="small"&&{...t.typography.caption,fontWeight:500},...n==="xsmall"&&{...t.typography.caption,fontWeight:500,svg:{width:I.ICON_SIZE_SMALL,height:I.ICON_SIZE_SMALL}}}));function wt(t){return e.jsxRuntimeExports.jsx(Lt,{...t})}const Pt=r.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",height:I.APPBAR_SIZE,marginRight:t.spacing(1.5)})),kt=r.styled(r.IconButton)(({theme:t})=>({marginRight:t.spacing(1),"&.MuiButtonBase-root svg path":{fill:t.palette.brand.appBarContrastText}})),Ot=r.styled(r.Divider)(({theme:t})=>({borderColor:r.alpha(t.palette.brand.appBarContrastText,.12)}));function Dt({onClickMenu:t}){return e.jsxRuntimeExports.jsx(r.Box,{sx:{display:{md:"none",xs:"block"}},children:e.jsxRuntimeExports.jsxs(Pt,{children:[e.jsxRuntimeExports.jsx(kt,{onClick:t,children:e.jsxRuntimeExports.jsx(A.MenuOutlined,{})}),e.jsxRuntimeExports.jsx(Ot,{orientation:"vertical",flexItem:!0})]})})}const _t=r.styled("div")(({theme:t})=>({display:"flex",marginRight:t.spacing(1.5),"& a":{display:"flex"},"& svg, & img":{width:t.spacing(4),height:t.spacing(4)}}));function $t({logo:t}){return e.jsxRuntimeExports.jsx(_t,{children:t})}const Gt=I.styled(x.Typography)({display:"flex",alignItems:"center",whiteSpace:"nowrap"});function Vt({text:t}){const n=D();return e.jsxRuntimeExports.jsx(Gt,{component:"span",variant:"subtitle1",color:n.palette.brand.appBarContrastText,children:t})}const Ht=I.styled(x.Typography)(({theme:t})=>({display:"flex",alignItems:"center","&::before":{content:'"/"',margin:t.spacing(0,1),opacity:.6,color:t.palette.brand.appBarContrastText}}));function qt({text:t}){const n=D();return e.jsxRuntimeExports.jsx(Ht,{component:"span",variant:"body2",weight:"strong",color:n.palette.brand.appBarContrastText,children:t})}const Ut=r.styled(r.AppBar)(({theme:t})=>({backgroundColor:t.palette.brand.appBarMain,"& .MuiTypography-root":{color:t.palette.brand.appBarContrastText},"& .MuiIconButton-root path":{fill:t.palette.brand.appBarContrastText}})),Wt=r.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",maxWidth:"calc(100% - 300px)",overflow:"hidden",[t.breakpoints.down("sm")]:{minWidth:"192px"}})),Nt=r.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:1,marginLeft:t.spacing(1)}));function zt({children:t,brandLogo:n,brandText:o,secondaryText:i,showBurgerMenu:s=!1,onClickMenu:l,...u}){return e.jsxRuntimeExports.jsx(Ut,{...u,children:e.jsxRuntimeExports.jsxs(r.Toolbar,{children:[e.jsxRuntimeExports.jsxs(Wt,{children:[s&&e.jsxRuntimeExports.jsx(Dt,{onClickMenu:l}),n&&e.jsxRuntimeExports.jsx($t,{logo:n}),o&&e.jsxRuntimeExports.jsx(Vt,{text:o}),i&&e.jsxRuntimeExports.jsx(qt,{text:i})]}),e.jsxRuntimeExports.jsx(Nt,{children:t})]})})}const Zt=[{outlinedBullet:!1,value:""}],Yt=r.styled("ul")(({theme:t})=>({listStyle:"none",paddingLeft:0,margin:t.spacing(.5,0,0,0)})),Jt=r.styled("li")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between","&:not(:last-child)":{marginBottom:t.spacing(.5)}})),Kt=r.styled("span")(({theme:t})=>({width:t.spacing(1),height:t.spacing(1),marginRight:t.spacing(.5),border:`2px solid ${t.palette.qualitative.bold[1]}`,borderRadius:"50%",backgroundColor:t.palette.qualitative.bold[1]})),Qt=r.styled(x.Typography)(({theme:t})=>({minWidth:t.spacing(10),marginRight:t.spacing(1.5)}));function Xt({items:t=Zt,title:n}){return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[n&&e.jsxRuntimeExports.jsx(x.Typography,{color:"inherit",variant:"caption",weight:"medium",children:n}),e.jsxRuntimeExports.jsx(Yt,{children:t.map((o,i)=>e.jsxRuntimeExports.jsxs(Jt,{children:[e.jsxRuntimeExports.jsx(Kt,{style:{backgroundColor:`${o.outlinedBullet?"transparent":o.color}`,borderColor:o.color}}),o.category&&e.jsxRuntimeExports.jsx(Qt,{color:"inherit",variant:"caption",children:o.category}),e.jsxRuntimeExports.jsx(x.Typography,{color:"inherit",variant:"caption",weight:"medium",children:o.value})]},i))})]})}exports.Alert=x.Alert;exports.TablePaginationActions=x.TablePaginationActions;exports.Typography=x.Typography;exports.AccordionGroup=Tt;exports.AppBar=zt;exports.Autocomplete=Ft;exports.Avatar=wt;exports.Button=z;exports.LabelWithIndicator=K;exports.Menu=at;exports.MenuItem=w;exports.MenuList=ct;exports.MultipleSelectField=ht;exports.PasswordField=X;exports.SelectField=_;exports.ToggleButtonGroup=it;exports.TooltipData=Xt;exports.UploadField=vt;exports.UploadFieldBase=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@mui/material"),j=require("react"),g=require("../Alert-FPd1YXw5.cjs"),C=require("../theme-constants-Da63svSG.cjs"),F=require("@mui/icons-material"),w=require("react-intl"),L=require("@mui/material/styles");function _({children:t,...n},r){return e.jsx(o.Button,{...n,ref:r,children:e.jsx(g.Typography,{variant:"inherit",color:"inherit",noWrap:!0,component:"span",children:t})})}const G=j.forwardRef(_),V=o.styled(o.Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5)})),q=o.styled(g.Typography)(({theme:t})=>({".Mui-disabled &":{color:t.palette.text.disabled}})),H=o.styled(o.Box)(({theme:t})=>({display:"flex",svg:{width:C.ICON_SIZE_SMALL,height:C.ICON_SIZE_SMALL,fontSize:C.ICON_SIZE_SMALL,path:{fill:t.palette.text.secondary,".Mui-disabled &":{fill:t.palette.text.disabled}}}}));function U({label:t,type:n,icon:r,inheritSize:i}){return e.jsxs(V,{children:[t,n&&e.jsx(q,{component:"span",variant:i?"inherit":"caption",color:"textSecondary",weight:"regular",children:n==="required"?"(required)":"(optional)"}),r&&e.jsx(H,{children:r})]})}function W({InputProps:t,size:n="small",...r},i){const[a,s]=j.useState(!1),d=()=>s(!a);return e.jsx(o.TextField,{...r,ref:i,type:a?"text":"password",size:n,InputProps:{...t,endAdornment:e.jsx(o.InputAdornment,{position:"end",children:e.jsx(o.IconButton,{size:n,onClick:d,children:a?e.jsx(F.VisibilityOutlined,{}):e.jsx(F.VisibilityOffOutlined,{})})})}})}const N=j.forwardRef(W),k={};function Z(t="$lodash$"){k[t]||(k[t]=0);const n=++k[t];return t==="$lodash$"?`${n}`:`${t}${n}`}const z=o.styled(o.Select)(({theme:t})=>({"& .MuiInputAdornment-positionStart":{paddingLeft:t.spacing(2),"&.MuiInputAdornment-sizeSmall":{paddingLeft:t.spacing(1.5)}},"& .MuiInputBase-inputAdornedStart":{paddingLeft:"0px !important"},"& .MuiSelect-select .MuiMenuItem-root:hover":{backgroundColor:"transparent"},"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple":{paddingRight:t.spacing(7)}})),Y=o.styled(o.MenuItem)(()=>({display:"none"}));function J({children:t,placeholder:n,size:r="small",displayEmpty:i,menuProps:a,inputProps:s,labelId:d,label:x,labelSecondary:b,helperText:v,name:u,error:p,focused:f,disabled:M,fullWidth:y,required:h,"aria-label":l,...S},m){const T=r==="small",[c]=j.useState(()=>Z("select-label-")),I=x?d??c:void 0;return e.jsxs(o.FormControl,{size:r,error:p,focused:f,disabled:M,fullWidth:y,required:h,children:[e.jsxs(o.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[x&&e.jsx(o.InputLabel,{shrink:!0,id:I,children:x}),b&&e.jsx(o.Box,{display:"flex",alignItems:"center",ml:2,mb:.5,children:b})]}),e.jsxs(z,{...S,labelId:I,name:u,ref:m,size:r,fullWidth:y,displayEmpty:i??!!n,inputProps:{...s,"aria-label":l},MenuProps:{...a,PopoverClasses:{paper:T?"MuiMenu-paper-sizeSmall":void 0},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:0,horizontal:"left"}},children:[n&&e.jsx(Y,{disabled:!0,value:"",children:e.jsx(g.Typography,{variant:T?"body2":"body1",color:"text.hint",component:"span",children:n})}),t]}),v&&e.jsx(o.FormHelperText,{"aria-label":`${u}-helper`,children:v})]})}const D=j.forwardRef(J),K=o.styled(o.ToggleButtonGroup,{shouldForwardProp:t=>t!=="variant"&&t!=="backgroundColor"})(({variant:t,backgroundColor:n,theme:r})=>({...t==="contained"&&{boxShadow:"none"},...t==="unbounded"&&{boxShadow:"none",borderRadius:r.spacing(.5),"& .MuiDivider-root":{height:r.spacing(4),"&.MuiToggleButtonGroup-groupedHorizontal":{height:r.spacing(4)},"&.MuiToggleButtonGroup-groupedVertical":{height:"auto",width:r.spacing(4),margin:`${r.spacing(.5,0,1)} !important`,borderRadius:"0 !important"}},"& .MuiToggleButton-sizeSmall":{margin:0,"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)":{margin:0},"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal":{height:r.spacing(3)},"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical":{height:"auto",width:r.spacing(3)}},".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)":{margin:0,"&:first-of-type":{marginLeft:0},"&:not(:last-of-type)":{marginRight:r.spacing(.5)}},"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)":{".MuiToggleButtonGroup-grouped":{margin:r.spacing(0,.5)}},"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)":{".MuiToggleButtonGroup-grouped":{margin:r.spacing(0,0,.5),"&:not(:last-of-type)":{marginRight:0},"&:last-of-type":{marginBottom:0}}}},...n==="primary"&&{backgroundColor:r.palette.background.paper},...n==="secondary"&&{backgroundColor:r.palette.background.default},...n==="transparent"&&{backgroundColor:"transparent"}}));function Q({children:t,variant:n="floating",backgroundColor:r,...i}){const s=n==="unbounded"?"transparent":"primary";return e.jsx(K,{...i,variant:n,backgroundColor:r??s,children:t})}const X=o.styled(o.Menu,{shouldForwardProp:t=>!["extended","width","height"].includes(t)})(({theme:t,extended:n,width:r,height:i})=>({...n&&{".MuiMenuItem-root":{minHeight:t.spacing(6)}},...r&&{".MuiList-root":{width:r,minWidth:r}},...i&&{".MuiMenu-paper":{overflow:"hidden"},".MuiList-root":{maxHeight:i}}}));function tt(t){return e.jsx(X,{...t})}const et=o.styled(o.MenuItem,{shouldForwardProp:t=>!["subtitle","destructive","extended","fixed","iconColor"].includes(t)})(({theme:t,dense:n,subtitle:r,destructive:i,extended:a,fixed:s,iconColor:d="primary"})=>({...r&&{pointerEvents:"none",columnGap:0,...t.typography.caption,fontWeight:500,color:t.palette.text.secondary,".MuiListItemText-root .MuiTypography-root":{...t.typography.caption,fontWeight:500,color:t.palette.text.secondary},"&.MuiMenuItem-root":{minHeight:t.spacing(3),paddingTop:0,paddingBottom:0,marginTop:t.spacing(1),"&:not(:first-of-type)":{minHeight:t.spacing(5),paddingTop:t.spacing(1),borderTop:`1px solid ${t.palette.divider}`}}},...d==="primary"&&{".MuiListItemIcon-root svg path":{fill:t.palette.text.primary},"&.Mui-selected .MuiListItemIcon-root svg path":{fill:t.palette.primary.main},'.MuiAutocomplete-listbox &[aria-selected="true"] svg path':{fill:t.palette.primary.main}},...i&&{color:t.palette.error.main,".MuiTypography-root":{color:t.palette.error.main},"svg, & .MuiSvgIcon-root":{color:t.palette.error.main},".MuiListItemIcon-root svg path":{fill:t.palette.error.main},"&.Mui-selected .MuiListItemIcon-root svg path":{fill:t.palette.error.main},"&:hover":{backgroundColor:t.palette.error.relatedLight},"&.Mui-selected":{color:t.palette.error.main,".MuiTypography-root":{color:t.palette.error.main},"svg, & .MuiSvgIcon-root":{color:t.palette.error.main}},"&.Mui-disabled":{color:t.palette.text.disabled,".MuiTypography-root":{color:t.palette.text.disabled},svg:{color:t.palette.text.disabled}}},...a&&{"&.MuiButtonBase-root.MuiMenuItem-root":{minHeight:t.spacing(6)}},...s&&{"&.MuiMenuItem-root":{position:"sticky",top:0,left:0,bottom:0,right:0,zIndex:2,minHeight:t.spacing(6),marginBottom:t.spacing(1),padding:t.spacing(.5,1.5),backgroundColor:t.palette.background.paper,borderBottom:`1px solid ${t.palette.divider}`},".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type":{minHeight:t.spacing(6),marginTop:0,"&:hover":{backgroundColor:t.palette.background.paper}}},...!s&&{".MuiList-root &:first-of-type":{marginTop:t.spacing(1)}},...n&&{"&.MuiButtonBase-root.MuiMenuItem-root":{minHeight:t.spacing(3),padding:t.spacing(.25,1.5)}}}));function E(t){return e.jsx(et,{...t})}const nt=o.styled(o.MenuList,{shouldForwardProp:t=>!["extended","width","height"].includes(t)})(({theme:t,extended:n,width:r,height:i})=>({...n&&{".MuiMenuItem-root":{minHeight:t.spacing(6)}},"&.MuiList-root":{...r&&{width:r,minWidth:r},...i&&{maxHeight:i}}}));function ot(t){return e.jsx(nt,{...t})}function rt({selectedOptions:t,options:n,onChange:r}){const[i,a]=j.useState(t||[]),s=n.length===i.length,d=i.length>0;return j.useEffect(()=>{i!==t&&a(i)},[t]),{areAllSelected:s,areAnySelected:d,currentOptions:i,handleChange:u=>{const{target:{value:p}}=u,f=typeof p=="string"?p.split(","):p.filter(M=>M!==void 0);a(f),r(f)},selectAll:()=>{const u=n==null?void 0:n.filter(({disabled:p})=>!p).map(({value:p})=>p);u&&(u.every(f=>i.includes(f))?(a([]),r([])):(a(u),r(u)))},unselectAll:()=>{a([]),r([])}}}const it=o.styled(o.Link)(({disabled:t,theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing(1),width:"100%",textAlign:"initial",...t&&{pointerEvents:"none",color:n.palette.text.disabled}}));function at({areAllSelected:t,areAnySelected:n,selectAll:r,selectAllDisabled:i}){const a=w.useIntl(),s=g.useImperativeIntl(a);return e.jsx(E,{fixed:!0,children:e.jsxs(it,{variant:"body2",color:"textPrimary",component:"button",underline:"none",disabled:!!i,onClick:r,tabIndex:0,children:[e.jsx(o.Checkbox,{checked:t,indeterminate:n&&!t,disabled:i}),s.formatMessage({id:"c4r.form.selectAll"})]})})}const lt=o.styled(o.MenuItem)(({theme:t})=>({"&.Mui-disabled":{pointerEvents:"auto","&:hover":{backgroundColor:`${t.palette.background.default} !important`}}})),st=o.styled(o.InputAdornment)(({theme:t})=>({display:"none",position:"absolute",top:t.spacing(2),right:t.spacing(3.5),".MuiInputBase-root:hover &, .MuiInputBase-root.Mui-focused &":{display:"flex"},".MuiSvgIcon-root":{color:t.palette.text.hint}})),dt=[],ct=()=>{};function ut({options:t=dt,selectedOptions:n,size:r="small",placeholder:i,showCounter:a,showFilters:s=!0,onChange:d=ct,selectAllDisabled:x,tooltipPlacement:b,variant:v,...u},p){const{areAllSelected:f,areAnySelected:M,currentOptions:y,handleChange:h,selectAll:l,unselectAll:S}=rt({options:t,selectedOptions:n,onChange:d}),m=r==="small",T=m||v==="standard"?0:2,c=w.useIntl(),I=g.useImperativeIntl(c),B=`${y.length} ${I.formatMessage({id:"c4r.form.selected"})}`,P=j.useMemo(()=>f?e.jsx(g.Typography,{component:"span",variant:m?"body2":"body1",color:"textPrimary",ml:T,children:I.formatMessage({id:"c4r.form.allSelected"})}):M?e.jsx(g.Typography,{component:"span",variant:m?"body2":"body1",color:"textPrimary",ml:T,children:a&&y.length>1?B:y.join(", ")}):e.jsx(g.Typography,{component:"span",variant:m?"body2":"body1",color:"text.hint",ml:T,children:i??I.formatMessage({id:"c4r.form.noneSelected"})}),[f,M,B,y,I,m,T,i,a]);return e.jsxs(D,{...u,ref:p,multiple:!0,displayEmpty:!0,placeholder:i,value:y,renderValue:()=>P,onChange:h,size:r,variant:v,endAdornment:s&&M&&e.jsx(st,{position:"end",children:e.jsx(o.IconButton,{onClick:S,size:"small",children:e.jsx(F.Cancel,{})})}),menuProps:{PaperProps:{sx:{".MuiList-root":{paddingTop:0}}}},children:[s&&e.jsx(at,{areAllSelected:f,areAnySelected:M,selectAll:l,selectAllDisabled:x}),t==null?void 0:t.map(A=>{const R=e.jsxs(lt,{value:A.value,disabled:A.disabled,tabIndex:0,children:[e.jsx(o.Checkbox,{disabled:A.disabled,checked:y.includes(A.value)}),e.jsx(o.ListItemText,{primary:A.label})]},A.value);return A.tooltip?e.jsx(o.Tooltip,{title:A.tooltip,placement:b,children:R},A.value):R})]})}const pt=j.forwardRef(ut),gt=L.styled(o.TextField,{shouldForwardProp:t=>t!=="cursor"})(({cursor:t,theme:n})=>({"&.MuiTextField-root .MuiInputBase-root":{cursor:t,paddingRight:n.spacing(1),"& input":{cursor:t},"&.Mui-disabled":{pointerEvents:"none","& .MuiButtonBase-root":{color:n.palette.text.disabled}},"&.MuiInputBase-sizeSmall":{paddingRight:n.spacing(.5)}},"& .MuiFormLabel-root":{cursor:t,"&.Mui-disabled":{pointerEvents:"none"}}}));function xt({buttonText:t,hasFiles:n,size:r,error:i,disabled:a,handleReset:s,handleOpen:d,inProgress:x}){return e.jsx(o.InputAdornment,{position:"end",children:x?e.jsx(o.IconButton,{"aria-label":"loading",disabled:!0,size:r,children:e.jsx(o.CircularProgress,{size:18})}):n?e.jsx(o.IconButton,{onClick:s,size:r,"aria-label":"delete",disabled:a,children:e.jsx(F.Cancel,{})}):e.jsx(o.Button,{onClick:d,size:r,variant:"text",color:i?"default":"primary",disabled:a,children:t})})}function $({name:t,multiple:n,handleReset:r,handleOpen:i,dragOver:a,error:s,placeholder:d,focused:x,buttonText:b="Browse",inProgress:v,InputProps:u,size:p="small",hasFiles:f,cursor:M="pointer",...y}){return e.jsx(gt,{...y,size:p,error:s,placeholder:d,focused:x??a,cursor:M,InputProps:{...u,name:t,readOnly:!0,endAdornment:e.jsx(xt,{buttonText:b,hasFiles:f,size:p,error:s,disabled:!!a,handleReset:r,handleOpen:i,inProgress:v})}})}function ft({onChange:t,files:n,multiple:r,placeholder:i,uploadInputRef:a}){const s=w.useIntl(),d=g.useImperativeIntl(s),[x,b]=j.useState(""),[v,u]=j.useState(!1);j.useEffect(()=>{!n||n.length===0?b(""):n.length===1?b(n[0].name):b(d.formatMessage({id:"c4r.form.filesSelected"},{count:n.length}))},[n,d]);const p=()=>{var c;(c=a.current)==null||c.click()},f=c=>{c.preventDefault(),u(!0)},M=c=>{c.preventDefault(),u(!1)},y=c=>{c.preventDefault(),u(!1);const I=c.dataTransfer.items,B=h(I);t==null||t(B)},h=c=>{const I=[];for(const B of Array.from(c))if(B.kind==="file"){const P=B.getAsFile();I.push(P)}return I},l=c=>{const I=Array.from(c.target.files);t==null||t(I)},S=c=>{c.stopPropagation(),b("")},m=j.useMemo(()=>{const c=d.formatMessage({id:"c4r.form.dragPlaceholder"},{count:r?0:1}),I=d.formatMessage({id:"c4r.form.dragActivePlaceholder"},{count:r?0:1});let B="";return v?B=I:B=i??c,B},[v,r,i,d]);return{filesText:x,getPlaceholder:m,dragOver:v,inputEvents:{onDragOver:f,onDragLeave:M,onDrop:y,onClick:p},handleFiles:l,handleReset:S}}const yt=["application/JSON"];function ht({name:t,buttonText:n,accept:r,files:i,inProgress:a,onChange:s,multiple:d,placeholder:x,error:b,focused:v,nativeInputProps:u,...p}){const f=r??yt,M=j.useRef(null),{filesText:y,getPlaceholder:h,dragOver:l,inputEvents:S,handleFiles:m,handleReset:T}=ft({uploadInputRef:M,files:i,onChange:s,multiple:d,placeholder:x});return e.jsxs(e.Fragment,{children:[e.jsx($,{...p,placeholder:h,value:y,error:b,focused:v??l,handleReset:T,dragOver:l,inProgress:a,hasFiles:!!y,InputProps:S,buttonText:n}),e.jsx("input",{...u,ref:M,style:{display:"none"},type:"file","aria-label":t,name:t,accept:String(f),multiple:d,onChange:m})]})}const mt=o.styled("div",{shouldForwardProp:t=>t!=="variant"})(({variant:t,theme:n})=>({width:"100%",borderRadius:n.spacing(.5),...t==="outlined"&&{backgroundColor:n.palette.background.paper,boxShadow:`inset 0 0 0 1px ${n.palette.divider}`}}));function Mt({variant:t="standard",items:n,...r}){return e.jsx(mt,{...r,variant:t,children:n.map((i,a)=>e.jsxs(o.Accordion,{disabled:i.disabled,defaultExpanded:i.defaultExpanded,onChange:i.onChange,children:[e.jsx(o.AccordionSummary,{"aria-controls":`${a}-content`,id:`${a}-header`,children:i.summary}),e.jsx(o.AccordionDetails,{children:i.content})]},a))})}const bt=o.createFilterOptions(),vt="c4r.form.add";function It(t){return t&&typeof t=="object"?t.title??String(t):String(t)}function jt({creatable:t,newItemLabel:n=vt,newItemIcon:r,freeSolo:i,renderOption:a,forcePopupIcon:s,filterOptions:d,getOptionLabel:x=It,...b},v){const u=w.useIntl(),p=g.useImperativeIntl(u),f=(h,l)=>{const S=bt(h,l),{inputValue:m}=l,T=h.some(c=>m===x(c));return m.length>1&&m!==""&&!T&&S.push({inputValue:m,title:typeof n=="function"?n(m):`${p.formatMessage({id:n})} "${m}"`}),S},M=h=>typeof h=="string"?h:h.inputValue?h.inputValue:x(h),y=(h,l)=>e.jsx(j.Fragment,{children:l.divider?e.jsx(o.Divider,{}):e.jsxs(e.Fragment,{children:[l.inputValue&&e.jsx(o.Divider,{}),e.jsxs(E,{...h,fixed:l.fixed,extended:l.extended,dense:l.dense,destructive:l.destructive,disabled:l.disabled,subtitle:l.subtitle,iconColor:l.iconColor,children:[l.inputValue&&e.jsx(o.ListItemIcon,{children:r??e.jsx(F.AddCircleOutlineOutlined,{})}),l.startAdornment&&!l.inputValue&&e.jsx(o.ListItemIcon,{children:l.startAdornment}),e.jsxs(o.ListItemText,{children:[l.alternativeTitle??l.title,l.secondaryText&&e.jsx(g.Typography,{component:"p",variant:"caption",color:"text.secondary",children:l.secondaryText})]}),l.endAdornment]})]})},l.inputValue??l.title);return e.jsx(o.Autocomplete,{...b,ref:v,filterOptions:t?f:d,getOptionLabel:t?M:x,renderOption:t?y:a,freeSolo:t||i,forcePopupIcon:t||s})}const Tt=j.forwardRef(jt),O={large:5,medium:4,small:3,xsmall:2.25},Bt=o.styled(o.Avatar,{shouldForwardProp:t=>t!=="size"})(({theme:t,size:n="medium"})=>({width:t.spacing(O[n]),height:t.spacing(O[n]),...t.typography.subtitle1,...n==="large"&&{...t.typography.h6},...n==="small"&&{...t.typography.caption,fontWeight:500},...n==="xsmall"&&{...t.typography.caption,fontWeight:500,svg:{width:C.ICON_SIZE_SMALL,height:C.ICON_SIZE_SMALL}}}));function St(t){return e.jsx(Bt,{...t})}const At=o.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",height:C.APPBAR_SIZE,marginRight:t.spacing(1.5)})),Ct=o.styled(o.IconButton)(({theme:t})=>({marginRight:t.spacing(1),"&.MuiButtonBase-root svg path":{fill:t.palette.brand.appBarContrastText}})),Ft=o.styled(o.Divider)(({theme:t})=>({borderColor:o.alpha(t.palette.brand.appBarContrastText,.12)}));function Lt({onClickMenu:t}){return e.jsx(o.Box,{sx:{display:{md:"none",xs:"block"}},children:e.jsxs(At,{children:[e.jsx(Ct,{onClick:t,children:e.jsx(F.MenuOutlined,{})}),e.jsx(Ft,{orientation:"vertical",flexItem:!0})]})})}const wt=o.styled("div")(({theme:t})=>({display:"flex",marginRight:t.spacing(1.5),"& a":{display:"flex"},"& svg, & img":{width:t.spacing(4),height:t.spacing(4)}}));function Pt({logo:t}){return e.jsx(wt,{children:t})}const kt=L.styled(g.Typography)({display:"flex",alignItems:"center",whiteSpace:"nowrap"});function Et({text:t}){const n=L.useTheme();return e.jsx(kt,{component:"span",variant:"subtitle1",color:n.palette.brand.appBarContrastText,children:t})}const Rt=L.styled(g.Typography)(({theme:t})=>({display:"flex",alignItems:"center","&::before":{content:'"/"',margin:t.spacing(0,1),opacity:.6,color:t.palette.brand.appBarContrastText}}));function Ot({text:t}){const n=L.useTheme();return e.jsx(Rt,{component:"span",variant:"body2",weight:"strong",color:n.palette.brand.appBarContrastText,children:t})}const Dt=o.styled(o.AppBar)(({theme:t})=>({backgroundColor:t.palette.brand.appBarMain,"& .MuiTypography-root":{color:t.palette.brand.appBarContrastText},"& .MuiIconButton-root path":{fill:t.palette.brand.appBarContrastText}})),$t=o.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",maxWidth:"calc(100% - 300px)",overflow:"hidden",[t.breakpoints.down("sm")]:{minWidth:"192px"}})),_t=o.styled("div")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:1,marginLeft:t.spacing(1)}));function Gt({children:t,brandLogo:n,brandText:r,secondaryText:i,showBurgerMenu:a=!1,onClickMenu:s,...d}){return e.jsx(Dt,{...d,children:e.jsxs(o.Toolbar,{children:[e.jsxs($t,{children:[a&&e.jsx(Lt,{onClickMenu:s}),n&&e.jsx(Pt,{logo:n}),r&&e.jsx(Et,{text:r}),i&&e.jsx(Ot,{text:i})]}),e.jsx(_t,{children:t})]})})}const Vt=[{outlinedBullet:!1,value:""}],qt=o.styled("ul")(({theme:t})=>({listStyle:"none",paddingLeft:0,margin:t.spacing(.5,0,0,0)})),Ht=o.styled("li")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between","&:not(:last-child)":{marginBottom:t.spacing(.5)}})),Ut=o.styled("span")(({theme:t})=>({width:t.spacing(1),height:t.spacing(1),marginRight:t.spacing(.5),border:`2px solid ${t.palette.qualitative.bold[1]}`,borderRadius:"50%",backgroundColor:t.palette.qualitative.bold[1]})),Wt=o.styled(g.Typography)(({theme:t})=>({minWidth:t.spacing(10),marginRight:t.spacing(1.5)}));function Nt({items:t=Vt,title:n}){return e.jsxs(e.Fragment,{children:[n&&e.jsx(g.Typography,{color:"inherit",variant:"caption",weight:"medium",children:n}),e.jsx(qt,{children:t.map((r,i)=>e.jsxs(Ht,{children:[e.jsx(Ut,{style:{backgroundColor:`${r.outlinedBullet?"transparent":r.color}`,borderColor:r.color}}),r.category&&e.jsx(Wt,{color:"inherit",variant:"caption",children:r.category}),e.jsx(g.Typography,{color:"inherit",variant:"caption",weight:"medium",children:r.value})]},i))})]})}exports.Alert=g.Alert;exports.TablePaginationActions=g.TablePaginationActions;exports.Typography=g.Typography;exports.AccordionGroup=Mt;exports.AppBar=Gt;exports.Autocomplete=Tt;exports.Avatar=St;exports.Button=G;exports.LabelWithIndicator=U;exports.Menu=tt;exports.MenuItem=E;exports.MenuList=ot;exports.MultipleSelectField=pt;exports.PasswordField=N;exports.SelectField=D;exports.ToggleButtonGroup=Q;exports.TooltipData=Nt;exports.UploadField=ht;exports.UploadFieldBase=$;