@bimdata/viewer 2.3.0-beta.20 → 2.3.0-beta.21
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.
|
@@ -1867,8 +1867,8 @@ end`};e.events.push(["putFont",function(n){(function(s){var a=s.font,l=s.out,c=s
|
|
|
1867
1867
|
--bimdata-local-context-width: ${o.width}px;
|
|
1868
1868
|
--bimdata-local-context-center-width: ${o.centerWidth}px;
|
|
1869
1869
|
--bimdata-local-context-resolution: ${o.resolution};
|
|
1870
|
-
`),onMouseenter:e[0]||(e[0]=(...h)=>o.onMouseEnter&&o.onMouseEnter(...h)),onMouseleave:e[1]||(e[1]=(...h)=>o.onMouseLeave&&o.onMouseLeave(...h))},[O(s,{ref:"modalManagerTemplateRef"},null,512),v("div",Pzi,[o.windowPlugins.leftSidePanel?(N(),oe(a,{key:0,plugin:o.windowPlugins.leftSidePanel},null,8,["plugin"])):xe("",!0),v("div",Bzi,[(N(!0),U(Mt,null,ii(o.windowPlugins.free,h=>(N(),oe(l,{key:h.name,class:Ne({"window-container__content__center__viewer":h.isViewer}),plugin:h},null,8,["class","plugin"]))),128)),O(c,{position:"left",plugins:o.windowPlugins.leftButtonColumn},null,8,["plugins"]),O(c,{position:"right",plugins:o.windowPlugins.rightButtonColumn},null,8,["plugins"])]),o.windowPlugins.rightSidePanel?(N(),oe(a,{key:1,plugin:o.windowPlugins.rightSidePanel},null,8,["plugin"])):xe("",!0)]),o.loading?(N(),U("div",Ozi,[o.spinner&&o.spinner.component?(N(),oe(Er(o.spinner.component),Pu(nl({key:0},o.spinner.props)),null,16)):(N(),oe(u,{key:1,size:"20px",border:"3px"}))])):xe("",!0),o.layoutSettingsDisplayed?(N(),U("div",Rzi,[O(d)])):xe("",!0)],36)}const Fzi=W(zzi,[["render",Uzi]]);class Yzi{constructor(e=!0){const i=DEi(_Q,null,{resizable:e});i.registerContent("default",Fzi),this.settings=rl({edit:!1,swap:!1,full:!1}),this.areas=i}get resizable(){return this.areas.resizable}set resizable(e){this.areas.resizable=e}apply(e=null){this.areas.layout=e?NEi(e):null}copy(e){return SEi(this.areas.layout,e)}open({ratio:e,direction:i,insertAfter:o,windowName:r=null,windowState:n=null,localContextId:s=null}={}){const a=r?{options:{windowName:r,windowState:n}}:null;return s===null?this.areas.splitLayout(e,i,o,a):this.areas.split(s,e,i,o,a)}swap(e,i){return this.areas.swap(e,i)}close(e){return this.areas.delete(e)}}const Qzi="@bimdata/viewer",Gzi="module",Hzi="2.3.0-beta.20",Vzi="A customizable BIM viewer.",Zzi=["bim","viewer","bimdata","ifc","bcf"],Jzi="./index.d.ts",Wzi="BIMData.io",Kzi="https://developers.bimdata.io/viewer/index.html",_zi={email:"support@bimdata.io"},qzi=["last 2 chrome version","last 2 firefox version"],Xzi="dist/bimdata-viewer.esm.min.js",$zi="dist/bimdata-viewer.esm.min.js",ePi={build:"vite build && esbuild dist/bimdata-viewer.esm.min.js --minify --outfile=dist/bimdata-viewer.esm.min.js --allow-overwrite","build:split":"vite build -c vite.config.split.js && esbuild dist/bimdata-viewer-split.esm.min.js --minify --outfile=dist/bimdata-viewer-split.esm.min.js --allow-overwrite","cy:run":"cypress run","cy:open":"cypress open",dev:"vite",prebuild:"rm -rf dist",prepublishOnly:"npm run build","semantic-release":"semantic-release",serve:"http-server -c-1 --silent",test:"npm run test:unit & npm run build & npm run test:e2e","test:unit":"jest","test:e2e":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:run","test:e2e-dev":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:open",version:"echo $npm_package_version",ts:"tsc"},tPi=["dist/*","types/*","CHANGELOG.md","README.md","package.json","package-lock.json","index.d.ts"],iPi={"@babel/preset-env":"^7.24.4","@bimdata/2d-engine":"2.4.0","@bimdata/areas-next":"0.1.15","@bimdata/bcf-components":"6.2.1","@bimdata/components":"1.5.0","@bimdata/design-system":"2.1.0-rc.24","@bimdata/typescript-fetch-api-client":"10.1.0","@rollup/plugin-alias":"5.1.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-image":"^3.0.3","@rollup/plugin-replace":"^5.0.5","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^12.0.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^10.0.3","@semantic-release/npm":"^12.0.0","@semantic-release/release-notes-generator":"^13.0.0","@vitejs/plugin-vue":"4.6.2","@vue/vue3-jest":"^29.2.6","@xeokit/xeokit-sdk":"git+https://git@github.com/Amoki/xeokit-sdk.git#27e95db2e157215e870f7125bd28b258dee699a9","@zip.js/zip.js":"^2.7.41",async:"^3.2.5",autoprefixer:"^10.4.19","babel-core":"^7.0.0-bridge.0","babel-jest":"^29.7.0","conventional-changelog-eslint":"^5.0.0",cypress:"^13.7.3",esbuild:"^0.20.2",eslint:"^9.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-cypress":"^2.15.2","eslint-plugin-jest":"^28.2.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.25.0","form-data":"^4.0.0",html2canvas:"1.4.1","http-server":"^14.1.1",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-extended":"^4.0.2",jspdf:"^2.5.1",lodash:"^4.17.21","node-fetch":"^3.3.2",postcss:"^8.4.38",prettier:"^3.2.5",querystring:"^0.2.0",sass:"^1.75.0","semantic-release":"^23.0.8",sinon:"^17.0.1","start-server-and-test":"^2.0.3",vite:"4.5.2","vite-plugin-css-injected-by-js":"^3.5.0",vue:"3.4.23","vue-eslint-parser":"^9.4.2","vue-i18n":"^9.12.1"},oPi={name:Qzi,type:Gzi,version:Hzi,description:Vzi,keywords:Zzi,types:Jzi,author:Wzi,homepage:Kzi,bugs:_zi,browserslist:qzi,main:Xzi,module:$zi,scripts:ePi,files:tPi,devDependencies:iPi};class rPi{constructor({plugins:e,api:i,ui:o,locale:r="fr"}){this.pluginManager=new KSi(e),this.windowManager=new qSi,this.windowManager.registerAndAddPluginsToWindows([...this.pluginManager.registeredPlugins.values()]),this.api=new kki(i),this.globalContext=new Oye(this),this.state=Zki(this),this.shortcutManager=Y4e(this.state),this.uiSettings=o||{},this.i18n=new Pye(r),this._contextMenu=null,this.layout=new Yzi(this.uiSettings.resizable!==!1),this.localContext=null,window.$viewer=this}get version(){return oPi.version}get locale(){return this.i18n.locale}get contextMenu(){return this._contextMenu||U4e}set contextMenu(e){this._contextMenu=e}get registeredWindows(){return[...this.windowManager.registeredWindows.keys()]}get registeredPlugins(){return[...this.pluginManager.registeredPlugins.keys()]}get pluginsCfg(){return this.pluginManager.cfg}registerPlugin(e){this.pluginManager.registerPlugin(e),this.windowManager.registerAndAddPluginsToWindows([e])}}function sPi(t,e={}){e.backgroundColor&&(t.style.setProperty("--bimdata-viewer-background-color",e.backgroundColor),e.backgroundColor==="transparent"&&t.style.setProperty("--areas-separator-color","transparent")),e.colorPrimary&&t.style.setProperty("--color-primary",e.colorPrimary),e.colorPrimaryLighter&&t.style.setProperty("--color-primary-lighter",e.colorPrimaryLighter),e.colorPrimaryLight&&t.style.setProperty("--color-primary-light",e.colorPrimaryLight),e.colorPrimaryDark&&t.style.setProperty("--color-primary-dark",e.colorPrimaryDark),e.colorSecondary&&t.style.setProperty("--color-secondary",e.colorSecondary),e.colorSecondaryLighter&&t.style.setProperty("--color-secondary-lighter",e.colorSecondaryLighter),e.colorSecondaryLight&&t.style.setProperty("--color-secondary-light",e.colorSecondaryLight),e.colorSecondaryDark&&t.style.setProperty("--color-secondary-dark",e.colorSecondaryDark),e.colorSilverLight&&t.style.setProperty("--color-silver-light",e.colorSilverLight),e.colorSilver&&t.style.setProperty("--color-silver",e.colorSilver),e.colorSilverDark&&t.style.setProperty("--color-silver-dark",e.colorSilverDark),e.colorGraniteLight&&t.style.setProperty("--color-granite-light",e.colorGraniteLight),e.colorGranite&&t.style.setProperty("--color-granite",e.colorGranite),e.colorSuccess&&t.style.setProperty("--color-success",e.colorSuccess),e.colorSuccessLighter&&t.style.setProperty("--color-success-Lighter",e.colorSuccessLighter),e.colorSuccessLight&&t.style.setProperty("--color-success-Light",e.colorSuccessLight),e.colorSuccessDark&&t.style.setProperty("--color-success-Dark",e.colorSuccessDark),e.colorWarning&&t.style.setProperty("--color-warning",e.colorWarning),e.colorWarningLighter&&t.style.setProperty("--color-warning-Lighter",e.colorWarningLighter),e.colorWarningLight&&t.style.setProperty("--color-warning-Light",e.colorWarningLight),e.colorWarningDark&&t.style.setProperty("--color-warning-Dark",e.colorWarningDark),e.colorHigh&&t.style.setProperty("--color-high",e.colorHigh),e.colorHighLighter&&t.style.setProperty("--color-high-lighter",e.colorHighLighter),e.colorHighLight&&t.style.setProperty("--color-high-light",e.colorHighLight),e.colorHighDark&&t.style.setProperty("--color-high-dark",e.colorHighDark),e.colorText&&t.style.setProperty("--color-text",e.colorText),(!e.backgroundColor||e.backgroundColor!=="transparent")&&t.style.setProperty("--areas-separator-color","rgba(216, 216, 216, 1)"),e.headerHeight!=null&&t.style.setProperty("--bimdata-viewer-header-height",e.headerHeight),t.style.setProperty("--areas-background-color","transparent")}const nPi=Object.freeze({25:"GUEST",50:"USER",100:"ADMIN"}),lf=Object.freeze({READ:"read",WRITE:"write"});function Xhe(t){const e={};return t.forEach(i=>{const[o,r]=i.split(":");e[o]?e[o].push(r):e[o]=[r]}),e}const aPi={token_scopes:[],usable_scopes:[],user_role:25};function $he(t=aPi){var e,i,o,r,n,s;const a=Xhe(t.token_scopes),l=Xhe(t.usable_scopes);return{...pJ(t),tokenScopes:a,usableScopes:l,userRole:nPi[t.user_role],user:t.user?pJ(t.user):null,hasBcfReadPermission:((e=l.bcf)==null?void 0:e.includes(lf.READ))??!1,hasBcfWritePermission:((i=l.bcf)==null?void 0:i.includes(lf.WRITE))??!1,hasModelReadPermission:((o=l.model)==null?void 0:o.includes(lf.READ))??!1,hasModelWritePermission:((r=l.model)==null?void 0:r.includes(lf.WRITE))??!1,hasDocReadPermission:((n=l.document)==null?void 0:n.includes(lf.READ))??!1,hasDocWritePermission:((s=l.document)==null?void 0:s.includes(lf.WRITE))??!1}}const lPi={BcfFilters:{filtersButton:"Filter",filtersTitle:"Filter",priorityLabel:"Priorit\xE4t",statusLabel:"Status",assignedToLabel:"Zugewiesen an",creatorsLabel:"Erstellt von",tagsLabel:"Tags",resetButton:"Zur\xFCcksetzen",searchButton:"Suchen",undefined:"Nicht definiert",datePlaceholder:"Erstellungsdatum"},BcfSettings:{goBackButton:"Zur\xFCck",title:"BCF-Parameter",text:"Erstellen, f\xFCllen und listen Sie die BCF-Einstellungen auf, die Sie f\xFCr dieses Projekt haben m\xF6chten.",validateButton:"Die BCF-Parameter anerkennen"},BcfStatistics:{emptyText:"F\xFCgen Sie Fragen hinzu, um zugeh\xF6rige Statistiken hier anzuzeigen.",issues:"Probleme",extension:{Priority:"Priorit\xE4t",PriorityNotDefined:"Keine Priorit\xE4t",PriorityTitle:"Priorit\xE4ten",Status:"Status",StatusNotDefined:"Kein Status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priorit\xE4t:",noPriority:"Keine",assignedTo:"Zugewiesen an :",elements:"Elemente",notSpecified:"Nicht definiert",see:"Anzeigen"},BcfTopicCreationCard:{text:"Ein neues BCF-Thema erstellen",createBcfSideTitle:"Ein Problem melden"},BcfTopicForm:{dragDropImageText:"Bitte w\xE4hlen Sie eine Datei aus.",addObjectButton:"Objekt",addAnnotationButton:"Annotation",annotationButtonTooltip:"Zu diesem Thema gibt es derzeit keine Ansichten.",addPictureButton:"F\xFCgen Sie ein Bild hinzu.",titlePlaceholder:"Titel *",titleErrorMessage:"Titel fehlt",typeLabel:"Typ",priorityLabel:"Priorit\xE4t",statusLabel:"Status",stageLabel:"Phase",assignedToLabel:"Zugewiesen an",dueDateLabel:"F\xE4lligkeitsdatum (TT.MM.JJJJ)",descriptionLabel:"Beschreibung",labelsLabel:"Tags",createButton:"Best\xE4tigen",updateButton:"\xC4nderungen \xFCbernehmen",modalText:"Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte \xC4nderungen.",cancelButton:"\xC4nderungen verwerfen",continueButton:"\xC4nderungen fortsetzen",createTitle:"Ein Problem melden",dragDropImageTextTablet:"Foto machen",takeSnapshot:"Mach einen Schnappschuss",importFile:"Eine Datei importieren",searchPlaceholder:"Suchen",emptySearch:"kein Ergebnis"},BcfTopicOverview:{openViewer:"Im Viewer \xF6ffnen",openViewerNoModels:"Es sind keine Vorlagen zur Ansicht bereit",elements:"{count} Elemente",noElements:"kein Element",type:"Typ",noTypeSpecified:"Kein Typ angegeben",description:"Beschreibung",noDescriptionProvided:"Keine Beschreibung angegeben",assignedTo:"Zugeteilt an",notAssigned:"Nicht zugewiesen",dueDate:"F\xE4lligkeitsdatum",noDueDate:"Kein F\xE4lligkeitsdatum",informations:"Informationen",status:"Status",noStatusSpecified:"Kein Status angegeben",stage:"Phase",noStageProvided:"Keine Phase angegeben",priority:"Priorit\xE4t",priorityNotDefined:"Nicht definiert",tags:"Tags",noTags:"Keine Tags",commentButton:"Ein Kommentar ver\xF6ffentlichen",deleteText:"Sie l\xF6schen jetzt {Name}",deleteBcfButton:"Dieses BCF l\xF6schen",keepBcfButton:"Dieses BCF beibehalten",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE4t",status:"Status",title:"Titel",creator:"Autor",date:"Datum"}},BcfTopicActionsCell:{seeButton:"Anzeigen"},BcfTopicComments:{commentButton:"Ein Kommentar verfassen",commentLabel:"Ein Kommentar verfassen",commentText:"Kommentar",cancelButton:"Abbrechen",publishButton:"Ver\xF6ffentlichen",commentsText:"Kommentare",deleteCommentText:"Diesen Kommentar l\xF6schen?",deleteButton:"L\xF6schen",takeSnapshot:"Mach einen Schnappschuss"},BcfTopicPriorityCell:{noPriority:"Keine"},SettingCard:{addButton:"ein Element hinzuf\xFCgen",cancelButton:"Abbrechen",validateButton:"Best\xE4tigen",deleteExtensionText:"Diesen Parameter l\xF6schen",deleteButton:"L\xF6schen",title:{Priority:"Priorit\xE4ten",Label:"Tags",Status:"Status",Type:"Typen",Stage:"Phasen"},input:{Priority:"Eine neue Priorit\xE4t hinzuf\xFCgen",Label:"Ein neues Etikett hinzuf\xFCgen",Status:"Einen neuen Status hinzuf\xFCgen",Type:"Einen neuen Typ hinzuf\xFCgen",Stage:"Eine neue Phase hinzuf\xFCgen"},text:{Priority:"Liste der Priorit\xE4ten",Label:"Liste von Tags",Status:"Liste der Status",Type:"Liste der Typen",Stage:"Liste der Phasen"}}},cPi={BcfComponents:lPi},uPi={BcfFilters:{filtersButton:"Filters",filtersTitle:"Filters",priorityLabel:"Priority",statusLabel:"Status",assignedToLabel:"Assigned to",creatorsLabel:"Created by",tagsLabel:"Tags",resetButton:"Reset",searchButton:"Search",undefined:"Not defined",datePlaceholder:"Creation date"},BcfSettings:{goBackButton:"Back",title:"BCF Settings",text:"Create, enter in, and list the BCF settings you would like to have for this project",validateButton:"Validate BCF settings"},BcfStatistics:{emptyText:"Add BCF Topics to start to have some stats here.",issues:"issues",extension:{Priority:"Priority",PriorityNotDefined:"No priority",PriorityTitle:"Priorities",Status:"Status",StatusNotDefined:"No status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priority: ",noPriority:"None",assignedTo:"Assigned to: ",elements:"Elements",notSpecified:"Not specified",see:"See"},BcfTopicCreationCard:{text:"Create a new BCF topic",createBcfSideTitle:"Report a problem"},BcfTopicForm:{dragDropImageText:"Please select a file",addObjectButton:"Object",addAnnotationButton:"Annotation",annotationButtonTooltip:"This topic has no viewpoint",addPictureButton:"Add a picture",titlePlaceholder:"Title *",titleErrorMessage:"Missing title",typeLabel:"Type",priorityLabel:"Priority",statusLabel:"Status",stageLabel:"Stage",assignedToLabel:"Assigned to",dueDateLabel:"Due date",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Validate",updateButton:"Modify this BCF",modalText:"You are about to quit editing issue {name} but there are unsaved changes.",cancelButton:"Discard changes",continueButton:"Continue editing",createTitle:"Report a problem",dragDropImageTextTablet:"Take a picture",takeSnapshot:"Take a snapshot",importFile:"Import a file",searchPlaceholder:"Search",emptySearch:"No result"},BcfTopicOverview:{openViewer:"Open in viewer",openViewerNoModels:"No model to open",elements:"{count} Elements",noElements:"No element",type:"Type",noTypeSpecified:"No type specified",description:"Description",noDescriptionProvided:"No description provided",assignedTo:"Assigned to",notAssigned:"Not assigned",dueDate:"Due date",noDueDate:"No due date",informations:"Informations",status:"Status",noStatusSpecified:"No status specified",stage:"Stage",noStageProvided:"No stage provided",priority:"Priority",priorityNotDefined:"Not defined",tags:"Tags",noTags:"No tags",commentButton:"Post a comment",deleteText:"You are about to delete {name}",deleteBcfButton:"Delete this BCF",keepBcfButton:"Keep this BCF",author:"Author"},BcfTopicsTable:{headers:{index:"#",priority:"Priority",status:"Status",title:"Title",creator:"Author",date:"Date"}},BcfTopicActionsCell:{seeButton:"See"},BcfTopicComments:{commentButton:"Post a comment",commentLabel:"Post a comment",commentText:"Comment",cancelButton:"Cancel",publishButton:"Publish",commentsText:"Comments",deleteCommentText:"Delete this comment ?",deleteButton:"Delete",takeSnapshot:"Take a snapshot"},BcfTopicPriorityCell:{noPriority:"None"},SettingCard:{addButton:"add an element",cancelButton:"Cancel",validateButton:"Validate",deleteExtensionText:"Remove this setting",deleteButton:"Delete",title:{Priority:"Priorities",Label:"Labels",Status:"Status",Type:"Types",Stage:"Stages"},input:{Priority:"Add a new priority",Label:"Add a new label",Status:"Add new status",Type:"Add a new type",Stage:"Add a new stage"},text:{Priority:"Priority list",Label:"Labels list",Status:"Status list",Type:"Type list",Stage:"Stage list"}}},dPi={BcfComponents:uPi},hPi={BcfFilters:{filtersButton:"Filtros",filtersTitle:"Filtros",priorityLabel:"Prioridad",statusLabel:"Estado",assignedToLabel:"Asignado a",creatorsLabel:"Creado por",tagsLabel:"Etiquetas:",resetButton:"Restablecer",searchButton:"Buscar en",undefined:"No definido",datePlaceholder:"Fecha de creaci\xF3n"},BcfSettings:{goBackButton:"Volver",title:"Par\xE1metros del BCF",text:"Cree, rellene y enumere los par\xE1metros del BCF que desea tener en este proyecto",validateButton:"Validar los par\xE1metros del BCF"},BcfStatistics:{emptyText:"A\xF1ada preguntas para ver las estad\xEDsticas asociadas aqu\xED.",issues:"problemas",extension:{Priority:"Prioridad",PriorityNotDefined:"Sin prioridad",PriorityTitle:"Prioridades",Status:"Estado",StatusNotDefined:"Sin estado",StatusTitle:"Estatutos"}},BcfTopicCard:{priority:"Prioridad :",noPriority:"Sin",assignedTo:"Asignado a :",elements:"Elementos",notSpecified:"No definido",see:"Ver"},BcfTopicCreationCard:{text:"Crear un nuevo tema BCF",createBcfSideTitle:"Informar de un problema"},BcfTopicForm:{dragDropImageText:"Seleccione un archivo",addObjectButton:"Objeto",addAnnotationButton:"Anotaci\xF3n",annotationButtonTooltip:"Actualmente este tema no posee ning\xFAn punto de vista",addPictureButton:"A\xF1adir una imagen",titlePlaceholder:"T\xEDtulo *",titleErrorMessage:"Falta el t\xEDtulo",typeLabel:"Tipo",priorityLabel:"Prioridad",statusLabel:"Estado",stageLabel:"Fase",assignedToLabel:"Asignado a",dueDateLabel:"Fecha de vencimiento (DD/MM/AAAA)",descriptionLabel:"Descripci\xF3n",labelsLabel:"Etiquetas",createButton:"Validar",updateButton:"Modificar este BCF",modalText:"Est\xE1 a punto de salir de la edici\xF3n del problema de {name} pero hay cambios sin guardar.",cancelButton:"Cancelar los cambios",continueButton:"Continuar con los cambios",createTitle:"Informar de un problema",dragDropImageTextTablet:"Tomar una fotograf\xEDa",takeSnapshot:"Tomar un snapshot",importFile:"Importar un archivo",searchPlaceholder:"Buscar",emptySearch:"No hay resultados"},BcfTopicOverview:{openViewer:"Abrir en el visor",openViewerNoModels:"No hay ning\xFAn modelo listo para la visualizaci\xF3n",elements:"{count} Elementos",noElements:"Ning\xFAn elemento",type:"Tipo",noTypeSpecified:"No se especifica el tipo",description:"Descripci\xF3n",noDescriptionProvided:"No hay descripci\xF3n",assignedTo:"Asignado a",notAssigned:"No asignado",dueDate:"Plazo",noDueDate:"Sin fecha de vencimiento",informations:"Informaci\xF3n",status:"Estado",noStatusSpecified:"No se especifica el estado",stage:"Fase",noStageProvided:"No se indica ninguna fase",priority:"Prioridad",priorityNotDefined:"No definido",tags:"Etiquetas",noTags:"Sin etiquetas",commentButton:"Publicar un comentario",deleteText:"Est\xE1s a punto de borrar {name}",deleteBcfButton:"Borrar este BCF",keepBcfButton:"Mantenga este BCF",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Prioridad",status:"Estado",title:"T\xEDtulo",creator:"Autor",date:"Fecha"}},BcfTopicActionsCell:{seeButton:"Ver"},BcfTopicComments:{commentButton:"Publicar un comentario",commentLabel:"Publicar un comentario",commentText:"Comentario",cancelButton:"Cancelar",publishButton:"Publicar",commentsText:"comentarios",deleteCommentText:"\xBFBorrar este comentario?",deleteButton:"Borrar",takeSnapshot:"Tomar un snapshot"},BcfTopicPriorityCell:{noPriority:"Sin"},SettingCard:{addButton:"a\xF1adir un elemento",cancelButton:"Cancelar",validateButton:"Validar",deleteExtensionText:"Borrar esta configuraci\xF3n",deleteButton:"Borrar",title:{Priority:"Prioridades",Label:"Etiquetas:",Status:"Estatutos",Type:"Tipos",Stage:"Fases"},input:{Priority:"A\xF1adir una nueva prioridad",Label:"A\xF1adir una nueva etiqueta",Status:"A\xF1adir un nuevo estado",Type:"A\xF1adir un nuevo tipo",Stage:"A\xF1adir una nueva fase"},text:{Priority:"Lista de prioridades",Label:"Lista de etiquetas",Status:"Lista de estatutos",Type:"Lista de tipos",Stage:"Lista de fases"}}},pPi={BcfComponents:hPi},APi={BcfFilters:{filtersButton:"Filtres",filtersTitle:"Filtres",priorityLabel:"Priorit\xE9",statusLabel:"Statut",assignedToLabel:"Assign\xE9 \xE0",creatorsLabel:"Cr\xE9\xE9 par",tagsLabel:"Tags",resetButton:"R\xE9initialiser",searchButton:"Rechercher",undefined:"Non d\xE9fini",datePlaceholder:"Date de cr\xE9ation"},BcfSettings:{goBackButton:"Retour",title:"Param\xE8tres BCF",text:"Cr\xE9ez, renseignez et listez les param\xE8tres BCF que vous souhaitez avoir sur ce projet",validateButton:"Valider les param\xE8tres BCF"},BcfStatistics:{emptyText:"Ajoutez des questions pour voir les statistiques associ\xE9es ici.",issues:"probl\xE8mes",extension:{Priority:"Priorit\xE9",PriorityNotDefined:"Aucune priorit\xE9",PriorityTitle:"Priorit\xE9s",Status:"Statut",StatusNotDefined:"Aucun statut",StatusTitle:"Statuts"}},BcfTopicCard:{priority:"Priorit\xE9 : ",noPriority:"Aucune",assignedTo:"Assign\xE9 \xE0 : ",elements:"{n} \xC9lements",notSpecified:"Non d\xE9fini",see:"Voir"},BcfTopicCreationCard:{text:"Cr\xE9er un nouveau topic BCF",createBcfSideTitle:"Signaler un probl\xE8me"},BcfTopicForm:{dragDropImageText:"Veuillez s\xE9lectionner un fichier",addObjectButton:"Objet",addAnnotationButton:"Annotation",annotationButtonTooltip:"Ce topic ne poss\xE8de actuellement aucun point de vue",addPictureButton:"Ajouter une image",titlePlaceholder:"Titre *",titleErrorMessage:"Titre manquant",typeLabel:"Type",priorityLabel:"Priorit\xE9",statusLabel:"Statut",stageLabel:"Phase",assignedToLabel:"Assign\xE9 \xE0",dueDateLabel:"Date d'\xE9ch\xE9ance",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Valider",updateButton:"Modifier ce BCF",modalText:"Vous \xEAtes sur le point de quitter l'\xE9dition de l'issue {name} mais il y'a des modifications non enregistr\xE9es.",cancelButton:"Annuler les modifications",continueButton:"Continuer les modifications",createTitle:"Signaler un probl\xE8me",dragDropImageTextTablet:"Prendre une photo",takeSnapshot:"Prendre un snapshot",importFile:"Importer un fichier",searchPlaceholder:"Rechercher",emptySearch:"Pas de r\xE9sultat"},BcfTopicOverview:{openViewer:"Ouvrir dans le viewer",openViewerNoModels:"Il n'y a aucun mod\xE8le pr\xEAt pour une visualisation",elements:"{count} \xC9lements",noElements:"Aucun \xE9l\xE9ment concern\xE9",type:"Type",noTypeSpecified:"Pas de type sp\xE9cifi\xE9",description:"Description",noDescriptionProvided:"Pas de description renseign\xE9e",assignedTo:"Assign\xE9 \xE0",notAssigned:"Non assign\xE9",dueDate:"\xC9ch\xE9ance",noDueDate:"Pas de date d'\xE9ch\xE9ance",informations:"Informations",status:"Statut",noStatusSpecified:"Pas de statut sp\xE9cifi\xE9",stage:"Phase",noStageProvided:"Pas de phase renseign\xE9e",priority:"Priorit\xE9",priorityNotDefined:"Non d\xE9fini",tags:"Tags",noTags:"Pas de tags",commentButton:"Poster un commentaire",deleteText:"Vous \xEAtes sur le point de supprimer {name}",deleteBcfButton:"Supprimer ce BCF",keepBcfButton:"Conserver ce BCF",author:"Auteur"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE9",status:"Statut",title:"Titre",creator:"Auteur",date:"Date"}},BcfTopicActionsCell:{seeButton:"Voir"},BcfTopicComments:{commentButton:"Poster un commentaire",commentLabel:"Poster un commentaire",commentText:"Commentaire",cancelButton:"Annuler",publishButton:"Publier",commentsText:"commentaires",deleteCommentText:"Supprimer ce commentaire ?",deleteButton:"Supprimer",takeSnapshot:"Prendre un snapshot"},BcfTopicPriorityCell:{noPriority:"Aucune"},SettingCard:{addButton:"ajouter un \xE9l\xE9ment",cancelButton:"Annuler",validateButton:"Valider",deleteExtensionText:"Supprimmer ce param\xE8tre",deleteButton:"Supprimer",title:{Priority:"Priorit\xE9s",Label:"Tags",Status:"Statuts",Type:"Types",Stage:"Phases"},input:{Priority:"Ajouter une nouvelle priorit\xE9",Label:"Ajouter un nouveau label",Status:"Ajouter un nouveau statut",Type:"Ajouter un nouveau type",Stage:"Ajouter une nouvelle phase"},text:{Priority:"Liste des priorit\xE9s",Label:"Liste des tags",Status:"Liste des statuts",Type:"Liste des types",Stage:"Liste des phases"}}},gPi={BcfComponents:APi},MPi={BcfFilters:{filtersButton:"Filtri",filtersTitle:"Filtri",priorityLabel:"Priorit\xE0",statusLabel:"Stato",datePlaceholder:"Data di creazione",assignedToLabel:"Assegnato a",creatorsLabel:"Creato da",tagsLabel:"Etichette",resetButton:"Ripristina",searchButton:"Cerca",undefined:"Non definito"},BcfSettings:{goBackButton:"Indietro",title:"Parametri BCF",text:"Creare, notificare e elencare i parametri BCF che si desidera avere su questo progetto",validateButton:"Conferma i parametri BCF"},BcfStatistics:{emptyText:"Aggiungi delle domande per vedere le statistiche associate qui.",issues:"problemi",extension:{Priority:"Priorit\xE0",PriorityNotDefined:"Nessuna priorit\xE0",PriorityTitle:"Priorit\xE0",Status:"Stato",StatusNotDefined:"Nessuno stato",StatusTitle:"Stati"}},BcfTopicCard:{priority:"Priorit\xE0:",noPriority:"Nessuno",assignedTo:"Assegnato a:",elements:"Elementi",noElements:"0 elementi",notSpecified:"Non definito",see:"Visualizza"},BcfTopicCreationCard:{text:"Crea un nuovo topic BCF",createBcfSideTitle:"Segnala un problema"},BcfTopicForm:{dragDropImageText:"Selezionare un file",addObjectButton:"Oggetto",addAnnotationButton:"Annotazione",annotationButtonTooltip:"Attualmente questo argomento non presenta alcun punto di vista",addPictureButton:"Aggiungere un'immagine",titlePlaceholder:"Titolo *",titleErrorMessage:"Titolo mancante",typeLabel:"Tipo",priorityLabel:"Priorit\xE0",statusLabel:"Stato",stageLabel:"Fase",assignedToLabel:"Assegnato a",dueDateLabel:"Data di scadenza",descriptionLabel:"Descrizione",labelsLabel:"Tag",createButton:"Conferma",updateButton:"Modificare questo BCF",modalText:"State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",cancelButton:"Annullare le modifiche",continueButton:"Continuare le modifiche",createTitle:"Segnala un problema"},BcfTopicOverview:{openViewer:"Apri nel visualizzatore",openViewerNoModels:"Non esistono modelli pronti per la visualizzazione",elements:"{count} Elementi",noElements:"Nessun elemento",type:"Tipo",noTypeSpecified:"Nessun tipo specificato",description:"Descrizione",noDescriptionProvided:"Nessuna descrizione inserita",assignedTo:"Assegnato a",notAssigned:"Non assegnato",dueDate:"Scadenza",noDueDate:"Nessuna data di scadenza",informations:"Informazioni",status:"Stato",noStatusSpecified:"Nessuno stato specificato",stage:"Fase",noStageProvided:"Nessuna fase inserita",priority:"Priorit\xE0",priorityNotDefined:"Non definita",tags:"Etichette",noTags:"Nessuna etichetta",commentButton:"Pubblica un commento",deleteText:"Stai per eliminare {name}",deleteBcfButton:"Elimina questo BCF",keepBcfButton:"Conserva questo BCF",author:"Autore"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE0",status:"Stato",title:"Titolo",creator:"Autore",date:"Data"}},BcfTopicActionsCell:{seeButton:"Visualizza"},BcfTopicComments:{commentButton:"Pubblica un commento",commentLabel:"Pubblica un commento",commentText:"Commento",cancelButton:"Annulla",publishButton:"Pubblica",commentsText:"commenti",deleteCommentText:"Eliminare questo commento?",deleteButton:"Elimina"},BcfTopicPriorityCell:{noPriority:"Nessuno"},SettingCard:{addButton:"aggiungi un elemento",cancelButton:"Annulla",validateButton:"Conferma",deleteExtensionText:"Elimina questo parametro",deleteButton:"Elimina",title:{Priority:"Priorit\xE0",Label:"Etichette",Status:"Stati",Type:"Tipi",Stage:"Fasi"},input:{Priority:"Aggiungi una nuova priorit\xE0",Label:"Aggiungi una nuova etichetta",Status:"Aggiungi un nuovo stato",Type:"Aggiungi un nuovo tipo",Stage:"Aggiungi una nuova fase"},text:{Priority:"Elenco delle priorit\xE0",Label:"Elenco delle etichette",Status:"Elenco degli stati",Type:"Elenco dei tipi",Stage:"Elenco delle fasi"}}},fPi={BcfComponents:MPi},wPi={de:cPi,en:dPi,es:pPi,fr:gPi,it:fPi},LPi=({apiClient:t,fetchUsers:e,i18nPlugin:i}={})=>({install(o){t?Yo.setup({apiClient:t,fetchUsers:e}):console.error("[BCF Components Plugin] No api client provided. You must provide an api client for the components to work properly."),i?Object.entries(wPi).forEach(([r,n])=>{i.global.mergeLocaleMessage(r,n)}):console.warn("[BCF Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(nje).forEach(([r,n])=>{o.component(r,n)})}}),mPi={title:"Building Maker",back:"Zur\xFCck",list:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",createButton:"Neues Projekt",updateButton:"Umbenennen",deleteButton:"L\xF6schen"},form:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",input:"Name des Geb\xE4udes",error:"Ung\xFCltiger Name",createButton:"Erstellen",updateButton:"Best\xE4tigen"},storeys:{addStoreyButton:"Etage",addFileButton:"Grundriss",closeButton:"Fertigstellen",submitFilesButton:"Best\xE4tigen"},storeyForm:{title:"Neue Etage",input:"Name",error:"Ung\xFCltiger Name",cancelButton:"Abbrechen",submitButton:"Best\xE4tigen"}},yPi={creationFormTitle:"Ordner erstellen",renameFormPlaceholder:"Datei- / Ordnernam",nameInputPlaceholder:"Ordnername",emptyFolder:"Dieser Ordner ist leer",newFolderSuccess:"Neuer Ordner erstellt",renameFolderSuccess:"Umbenannter Ordner",deleteFolderSuccess:"Ordner gel\xF6scht",newFileSuccess:"Datei hinzugef\xFCgt",renameFileSuccess:"Umbenannte Datei",deleteFileSuccess:"Datei gel\xF6scht",nameInputErrorMessage:"Ung\xFCltiger name",cancel:"Abbrechen",submit:"Best\xE4tigen",buttonText:"Neuer Ordner",addFileButtonText:"Datei laden",rename:"Umbenennen",view:"Sehen",download:"Herunterladen",delete:"L\xF6schen",deleteTitle:"Dateien l\xF6schen",deleteDetail:"Sie sind im Begriff, die folgenden Dateien / Ordner endg\xFCltig zu l\xF6schen"},vPi={BuildingMaker:mPi,FileManager:yPi},CPi={title:"Building",back:"Back",list:{text:"Create and edit the layers, then download your PDFs.",createButton:"New project",updateButton:"Rename",deleteButton:"Delete"},form:{text:"Create and edit the layers, then download your PDFs.",input:"Building name",error:"Invalid",createButton:"Create",updateButton:"Confirm"},storeys:{addStoreyButton:"Storey",addFileButton:"Plan",closeButton:"Finish",submitFilesButton:"Validate"},storeyForm:{title:"New storey",input:"Name",error:"Invalid name",cancelButton:"Cancel",submitButton:"Validate"}},IPi={creationFormTitle:"Create folder",renameFormPlaceholder:"Folder/File name",nameInputPlaceholder:"Folder name",emptyFolder:"This folder is empty",newFolderSuccess:"New folder created",renameFolderSuccess:"Folder renamed",deleteFolderSuccess:"Folder deleted",newFileSuccess:"File added",renameFileSuccess:"File renamed",deleteFileSuccess:"File deleted",nameInputErrorMessage:"Invalid name",cancel:"Cancel",submit:"Submit",buttonText:"New folder",addFileButtonText:"Upload a file",rename:"Rename",view:"View",download:"Download",delete:"Delete",deleteTitle:"Deleting Files",deleteDetail:"You are about to permanently delete the following files / folders",dmsRoot:"Root of the project's DMS",validate:"Validate",back:"Back",pdfPageSelectorTitle:"Select a page"},jPi={title:"Meta-Building Structure",tab:{structure:"Structure",zones:"Zones",equipments:"Equipments"},StoreySelector:{placeholder:"Select a storey"},StructureView:{search:"Search"}},bPi={BuildingMaker:CPi,FileManager:IPi,MetaBuildingStructure:jPi},xPi={title:"Building Maker",back:"Vuelta",list:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",createButton:"Nuevo proyecto",updateButton:"Renombrar",deleteButton:"Suprimir"},form:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",input:"Nombre del edificio",error:"Nombre no v\xE1lido",createButton:"Crear",updateButton:"Validar"},storeys:{addStoreyButton:"Piso",addFileButton:"Plano",closeButton:"Terminar",submitFilesButton:"Validar"},storeyForm:{title:"Nuevo piso",input:"Nombre",error:"Nombre no v\xE1lido",cancelButton:"Anular",submitButton:"Validar"}},DPi={creationFormTitle:"Crear un archivo",renameFormPlaceholder:"Nombre de archivo / carpeta",nameInputPlaceholder:"Nombre de la carpeta",emptyFolder:"Esta carpeta est\xE1 vac\xEDa",newFolderSuccess:"Nueva carpeta creada",renameFolderSuccess:"Carpeta renombrada",deleteFolderSuccess:"Carpeta eliminada",newFileSuccess:"Archivo agregado",renameFileSuccess:"Archivo renombrado",deleteFileSuccess:"Archivo eliminado",nameInputErrorMessage:"Nombre inv\xE1lida",cancel:"Cancelar",submit:"Validar",buttonText:"Carpeta nueva",addFileButtonText:"Cargar un archivo",rename:"Renombrar",view:"Ver",download:"Descargar",delete:"Borrar",deleteTitle:"Eliminar archivos",deleteDetail:"Est\xE1 a punto de eliminar permanentemente los siguientes archivos / carpetas"},NPi={BuildingMaker:xPi,FileManager:DPi},SPi={title:"Building Maker",back:"Retour",list:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",createButton:"Nouveau projet",updateButton:"Renommer",deleteButton:"Supprimer"},form:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",input:"Nom du b\xE2timent",error:"Nom invalide",createButton:"Cr\xE9er",updateButton:"Valider"},storeys:{addStoreyButton:"\xC9tage",addFileButton:"Plan",closeButton:"Terminer",submitFilesButton:"Valider"},storeyForm:{title:"Nouvel \xE9tage",input:"Nom",error:"Nom invalide",cancelButton:"Annuler",submitButton:"Valider"}},TPi={creationFormTitle:"Cr\xE9er un dossier",renameFormPlaceholder:"Nom du fichier/dosier",nameInputPlaceholder:"Nom du dossier",emptyFolder:"Ce dossier est vide",newFolderSuccess:"Nouveau dossier cr\xE9\xE9",renameFolderSuccess:"Dossier renomm\xE9",deleteFolderSuccess:"Dossier supprim\xE9",newFileSuccess:"Fichier ajout\xE9",renameFileSuccess:"Fichier renomm\xE9",deleteFileSuccess:"Fichier supprim\xE9",nameInputErrorMessage:"Nom invalide",cancel:"Annuler",submit:"Valider",buttonText:"Nouveau dossier",addFileButtonText:"Charger un fichier",rename:"Renommer",view:"Voir",download:"T\xE9l\xE9charger",delete:"Supprimer",deleteTitle:"Supression de fichiers",deleteDetail:"Vous \xEAtes sur le point de supprimer d\xE9finitivement les fichiers/dossiers suivants",dmsRoot:"Racine de la GED du projet",validate:"Valider",back:"Retour",pdfPageSelectorTitle:"S\xE9lectionner une page"},kPi={title:"Structure M\xE9ta-Building",tab:{structure:"Structure",zones:"Zones",equipments:"Equipements"},StoreySelector:{placeholder:"S\xE9lectionner un \xE9tage"},StructureView:{search:"Rechercher"}},EPi={BuildingMaker:SPi,FileManager:TPi,MetaBuildingStructure:kPi},zPi={title:"Building Maker",back:"Reso",list:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",createButton:"Nuovo progetto",updateButton:"Rinominare",deleteButton:"Eliminare"},form:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",input:"Nome della costruzione",error:"Nome non corretto",createButton:"Creare",updateButton:"Convalidare"},storeys:{addStoreyButton:"Piano",addFileButton:"Progetto",closeButton:"Finire",submitFilesButton:"Convalidare"},storeyForm:{title:"Nuovo piano",input:"Nome",error:"Nome non corretto",cancelButton:"Annullare",submitButton:"Convalidare"}},PPi={creationFormTitle:"Crea una cartella",renameFormPlaceholder:"Nome file/cartella",nameInputPlaceholder:"Nome della cartella",emptyFolder:"Questa cartella \xE8 vuota",newFolderSuccess:"Nuova cartella creata",renameFolderSuccess:"Cartella rinominata",deleteFolderSuccess:"Cartella eliminata",newFileSuccess:"File aggiunto",renameFileSuccess:"File rinominato",deleteFileSuccess:"File cancellato",nameInputErrorMessage:"Nome non valido",cancel:"Annulla",submit:"Invia",buttonText:"Nuova cartella",addFileButtonText:"Carica un file",rename:"Rinominare",view:"Vedere",download:"Scaricare",delete:"Cancellare",deleteTitle:"Eliminazione di file",deleteDetail:"Stai per eliminare definitivamente i seguenti file/cartelle"},BPi={BuildingMaker:zPi,FileManager:PPi},OPi={de:vPi,en:bPi,es:NPi,fr:EPi,it:BPi},RPi=({i18nPlugin:t}={})=>({install(e){t?Object.entries(OPi).forEach(([i,o])=>{t.global.mergeLocaleMessage(i,o)}):console.warn("[BIMData Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(cmi).forEach(([i,o])=>{e.component(i,o)})}}),UPi={beforeMount(t,e){if(typeof e.value!="function")throw Error(`click away directive needs function, got ${typeof e.value}`);t.clickAwayHandler=i=>{(i.path||i.composedPath&&i.composedPath()).find(o=>o===t)||e.value()},window.addEventListener("mousedown",t.clickAwayHandler,!0)},unmounted(t){window.removeEventListener("mousedown",t.clickAwayHandler,!0),delete t.clickAwayHandler}},FPi=Object.freeze(Object.defineProperty({__proto__:null,BIMDataClickAway:Uc,BIMDataClickInputAway:UPi},Symbol.toStringTag,{value:"Module"})),YPi=t=>({install(e){Object.entries(TMt).forEach(([i,o])=>{t&&t.excludedComponents&&t.excludedComponents.length>0&&t.excludedComponents.includes(i)||(!t||!t.includedComponents||t.includedComponents.includes(i))&&e.component(i,o)}),(!t||t.directives!==!1)&&Object.entries(FPi).forEach(([i,o])=>e.directive(i.split("BIMData")[1],o))}}),QPi={name:"LiWrapper",render(){return Vi("li",this.$slots.default())}};function GPi(t,e){var i=new Set([]);return t.forEach(o=>{e.has(o)||i.add(o)}),i}const pu=ms("id"),HPi=({contextMenu:t,objects:e=[],state:i=t.$viewer.state,pictos:o})=>[{name:"selectAll",get group(){return t.groupPositions.select},position:1,get label(){return t.$t("context_menu.select_all")},get picto(){return o.get(this.name)},execute:()=>i.selectObjects(e.filter(Tc(Wi("visible"),ku("selected"))).map(pu)),predicate:()=>e.some(Tc(Wi("visible"),ku("selected")))},{name:"deselectAll",get group(){return t.groupPositions.select},position:2,get label(){return t.$t("context_menu.deselect_all")},get picto(){return o.get(this.name)},execute:()=>i.deselectObjects(e.filter(Wi("selected")).map(pu)),predicate:()=>e.some(Wi("selected"))},{name:"selectSimilar",get group(){return t.groupPositions.select},position:3,get label(){return t.$t("context_menu.select_similar")},get picto(){return o.get(this.name)},execute(){const r=e.filter(n=>n.visible&&n.type===this.selectedObject.type&&n.id!==this.selectedObject.id).map(pu);i.selectObjects(r)},selectedObject:null,predicate(){const r=e.filter(Tc(Wi("visible"),Wi("selected")));return r.length===1&&r[0].type!==void 0?(this.selectedObject=r[0],!0):(this.selectedObject=null,!1)}},{name:"reverseSelection",get label(){return t.$t("context_menu.reverse_selection")},get group(){return t.groupPositions.select},position:4,execute:()=>{const r=new Set(e.filter(Wi("selected")).map(pu)),n=new Set(e.filter(Wi("visible")).map(pu));i.selectObjects(Array.from(GPi(n,r)),{exclusive:!0})},predicate:()=>e.some(Tc(ku("selected"),Wi("visible")))&&e.some(Tc(Wi("selected"),Wi("visible")))},{name:"showAll",get group(){return t.groupPositions.visibility},position:1,get label(){return t.$t("context_menu.show_all")},get picto(){return o.get(this.name)},execute:()=>i.showObjects(e.filter(ku("visible")).map(pu)),predicate:()=>e.some(ku("visible"))},{name:"hide",get group(){return t.groupPositions.visibility},position:2,get label(){return t.$t("context_menu.hide")},get picto(){return o.get(this.name)},objectsToHide:null,execute(){const r=this.objectsToHide.filter(Wi("selected"));r.length>0&&i.deselectObjects(r.map(pu)),i.hideObjects(this.objectsToHide.map(pu))},predicate(){return this.objectsToHide=e.filter(Tc(Wi("selected"),Wi("visible"))),this.objectsToHide.length>0}},{name:"hideAll",get group(){return t.groupPositions.visibility},position:3,get label(){return t.$t("context_menu.hide_all")},execute:()=>{const r=e.filter(Wi("visible"));r.some(Wi("selected"))&&i.deselectObjects(r.filter(Wi("selected")).map(pu)),i.hideObjects(r.map(pu))},predicate:()=>e.some(Wi("visible"))}].filter(r=>r.predicate()),VPi={components:{LiWrapper:QPi},inject:["$viewer"],data(){return{defaultPrevented:!1,displayed:!1,top:null,bottom:null,left:null,width:200,nextCommandId:1,currentCommands:[],contextCommands:[],registeredCommands:[],groupPositions:{select:10,visibility:20},asyncPredicateRunning:!1}},computed:{position(){return{top:this.top?this.top+"px":"unset",bottom:this.bottom?this.bottom+"px":"unset",left:this.left+"px",width:this.width+"px"}}},watch:{displayed(t){t?document.addEventListener("keydown",this.onKeyDown):document.removeEventListener("keydown",this.onKeyDown)}},created(){this.$viewer.contextMenu=this,this.asyncPredicates=new Set},methods:{onKeyDown(t){t.key==="Escape"&&this.away()},setPosition(t){const e=(document.fullscreenElement?document.fullscreenElement:this.$parent.$el).getBoundingClientRect();this.left=t.clientX-e.left,this.top=t.clientY-e.top,this.left+this.width>e.width&&(this.left=this.left-this.width),t.clientY>e.top+e.height/2?(this.bottom=e.height-this.top,this.top=null):this.bottom=null},typeCheckCommand(t={}){let e=null;if((!t.execute||typeof t.execute!="function")&!t.component&&(e="Cannot register context menu command. A command must have an execute function or a component property."),t.label||(e="Cannot register context menu command. A command must have a label."),e)throw console.error(e),new Error(e);return t.id=this.nextCommandId++,t},open(t){this.currentCommands=[],this.setPosition(t),this.originEvent=t,t.preventDefault(),this.setCurrentCommands(),this.groupCurrentCommands(),this.defaultPrevented=!1,this.displayed=!0,document.fullscreenElement?(this.$el.parentElement.removeChild(this.$el),this.adoptiveParent=document.fullscreenElement,this.adoptiveParent.appendChild(this.$el)):this.adoptiveParent&&this.adoptiveParent!==this.$viewer.globalContext.el&&(this.adoptiveParent.removeChild(this.$el),this.$viewer.globalContext.el.appendChild(this.$el),this.adoptiveParent=null)},setCurrentCommands(){this.asyncPredicates.clear(),this.asyncPredicateRunning=!1,this.defaultPrevented||this.registeredCommands.forEach(async t=>{if(typeof t.predicate=="function"){const e=t.predicate(this.$viewer.globalContext.activeLocalContext);if(e===!0)this.currentCommands.push(t);else if(typeof e?.then=="function"){this.asyncPredicates.add(e),this.asyncPredicateRunning=!0;const i=await e;this.asyncPredicates.has(e)&&(this.asyncPredicates.delete(e),this.asyncPredicateRunning=this.asyncPredicates.size>0,i===!0&&this.currentCommands.push(t))}}else this.currentCommands.push(t)}),this.currentCommands.push(...this.contextCommands),this.contextCommands=[]},getDefaultCommands({objects:t=[],state:e=this.$viewer.state,context:i=null}){const o=new Map;return i&&this.$viewer.shortcutManager.getShortcuts(i).forEach(r=>o.set(r.name,r.key)),HPi({contextMenu:this,objects:t,state:e,pictos:o})},executeCommand(t){if(t.execute&&(t.execute(this.originEvent),this.displayed=!1),t.component&&!t.menu)throw new Error("Command with component property must have a `menu` property")},away(){this.displayed=!1},groupCurrentCommands(){const t=new Map;this.currentCommands.forEach(i=>{(i.group===null||i.group===void 0)&&(i.group=0),t.has(i.group)?t.get(i.group).push(i):t.set(i.group,[i])}),t.forEach(i=>i.sort((o,r)=>(o.position=o.position||0,r.position=r.position||0,o.position-r.position)));const e=[...t.keys()].sort((i,o)=>i-o).map(i=>t.get(i)).flat();this.currentCommands=e},isGroupIntersection(t){if(t===0)return!1;const e=this.currentCommands[t-1],i=this.currentCommands[t];return e.group<i.group},registerContextCommand(t){const e=this.typeCheckCommand(t);return this.contextCommands.push(e),t.id},registerCommand(t){const e=this.typeCheckCommand(t);return this.registeredCommands.push(e),t.id},unregisterCommand(t){return this.registeredCommands.find(e=>e.id===t)?(this.registeredCommands=this.registeredCommands.filter(e=>e.id!==t),!0):!1},preventDefault(){this.defaultPrevented=!0}}},ZPi={key:0,class:"separator"},JPi={class:"menu-text"},WPi={key:1,class:"menu-picto"},KPi={key:0,class:"context-menu__spinner"};function _Pi(t,e,i,o,r,n){const s=z("BIMDataIconChevron"),a=z("LiWrapper"),l=z("BIMDataSpinner"),c=Hi("click-away");return r.displayed&&(r.currentCommands.length||r.asyncPredicateRunning)?kt((N(),U("ul",{key:0,class:"bimdata-list context-menu",style:Se(n.position)},[(N(!0),U(Mt,null,ii(r.currentCommands,(u,d)=>(N(),oe(a,{key:u.label,class:"context-menu__element",onClick:h=>n.executeCommand(u)},{default:J(()=>[n.isGroupIntersection(d)?(N(),U("div",ZPi)):xe("",!0),v("div",JPi,X(u.label),1),!u.component&&u.picto?(N(),U("span",WPi,X(u.picto),1)):u.component?(N(),oe(s,{key:2,size:"xxs",class:"fill-primary"})):xe("",!0)]),_:2},1032,["onClick"]))),128)),r.asyncPredicateRunning?(N(),U("li",KPi,[O(l)])):xe("",!0)],4)),[[c,n.away]]):xe("",!0)}const qPi=W(VPi,[["render",_Pi],["__scopeId","data-v-5b87d4a3"]]),XPi={name:"ViewerHeader",inject:["$viewer"],props:{visible:{type:Boolean,default:!0}},setup(){const t=Ut("$viewer"),e=rl(new Map),i=r=>{if(!r.name)throw new TypeError("[Viewer Header] Content must have a name");if(e.has(r.name))throw new Error(`[Viewer Header] Content with name ${r.name} already exists`);e.set(r.name,r)},o=r=>e.has(r)?(e.delete(r),!0):!1;return{logo:t.uiSettings.bimdataLogo!==!1,version:t.uiSettings.version!==!1?t.version:null,headerContent:e,headerRightContentComponents:At(()=>Array.from(e.values()).filter(r=>r.position==="right").sort((r,n)=>r.order-n.order).map(r=>r.component)),headerLeftContentComponents:At(()=>Array.from(e.values()).filter(r=>r.position==="left").sort((r,n)=>r.order-n.order).map(r=>r.component)),addContent:i,removeContent:o}}},$Pi={class:"viewer-header"},eBi={class:"viewer-header__content"},tBi={class:"viewer-header__content__left"},iBi={class:"viewer-header__content__right"},oBi={key:0,class:"m-l-6 flex items-center"},rBi={key:1,class:"viewer-header__version"};function sBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return kt((N(),U("div",$Pi,[v("div",eBi,[v("div",tBi,[(N(!0),U(Mt,null,ii(o.headerLeftContentComponents,a=>(N(),oe(Er(a),{key:a.name}))),128))]),v("div",iBi,[(N(!0),U(Mt,null,ii(o.headerRightContentComponents,a=>(N(),oe(Er(a),{key:a.name}))),128))])]),o.logo||o.version?(N(),U("div",oBi,[o.logo?(N(),oe(s,{key:0,name:"logo",width:"30px",height:"30px"})):xe("",!0),o.version?(N(),U("div",rBi,X(o.version),1)):xe("",!0)])):xe("",!0)],512)),[[Ai,i.visible]])}const nBi=W(XPi,[["render",sBi],["__scopeId","data-v-5c9ea6b6"]]),aBi={name:"BimdataViewer",components:{ContextMenu:qPi,ViewerHeader:nBi,ModalManager:Whe},setup(){const t=Ut("$viewer"),{globalContext:e,shortcutManager:i}=t;Oo(()=>{i&&i.destroy(),e.hub.clear()}),lo(()=>{t.pluginManager.runPluginsScripts(t)});const o=At(()=>{var d;return t.uiSettings.bimdataLogo!==!1&&(e.localContexts.length!==1||((d=e.localContexts[0].window)==null?void 0:d.logoAndVersion))}),r=At(()=>{var d;return t.uiSettings.version!==!1&&(e.localContexts.length!==1||(d=e.localContexts[0].window)!=null&&d.logoAndVersion)?t.version:null}),n=At(()=>{var d,h;return t.uiSettings.header!==!1&&!(e.localContexts.length===1&&((h=(d=e.localContexts[0])==null?void 0:d.window)==null?void 0:h.header)===!1)}),s=t.uiSettings.contextMenu!==!1,a=Qe(null);function l(d){s&&a.value.open(d)}function c(){t.shortcutManager.active=!0}function u(){t.shortcutManager.active=!1}return{Layout:t.layout.areas.component,onContextMenu:l,onMouseenter:c,onMouseleave:u,isHeaderVisible:n,viewerTemplateRef:e.templateRef,modalManagerTemplateRef:e.modalManagerTemplateRef,headerTemplateRef:e.headerTemplateRef,contextMenuTemplateRef:a,contextMenuEnabled:s,bimdataLogoOnSingleWindow:o,viewerVersionOnSingleWindow:r,version:t.version,loading:At(()=>e.loading),spinner:At(()=>e.spinner)}}},lBi={key:1,class:"global-spinner",style:{"z-index":"3"}},cBi={key:2,class:"viewer__logo"},uBi={key:1,class:"version m-t-6"};function dBi(t,e,i,o,r,n){const s=z("ModalManager"),a=z("ContextMenu"),l=z("ViewerHeader"),c=z("BIMDataSpinner"),u=z("BIMDataIllustration");return N(),U("div",{id:"bimdata-viewer",ref:"viewerTemplateRef",class:"bimdata-viewer bimdata-scrollbar",onContextmenu:e[0]||(e[0]=(...d)=>o.onContextMenu&&o.onContextMenu(...d)),onMouseenter:e[1]||(e[1]=(...d)=>o.onMouseenter&&o.onMouseenter(...d)),onMouseleave:e[2]||(e[2]=(...d)=>o.onMouseleave&&o.onMouseleave(...d))},[O(s,{ref:"modalManagerTemplateRef"},null,512),o.contextMenuEnabled?(N(),oe(a,{key:0,ref:"contextMenuTemplateRef"},null,512)):xe("",!0),O(l,{ref:"headerTemplateRef",visible:o.isHeaderVisible},null,8,["visible"]),(N(),oe(Er(o.Layout),{style:Se(o.isHeaderVisible?"height: calc(100% - var(--bimdata-viewer-header-height, 40px))":"height: 100%")},null,8,["style"])),o.loading?(N(),U("div",lBi,[o.spinner&&o.spinner.component?(N(),oe(Er(o.spinner.component),Pu(nl({key:0},o.spinner.props)),null,16)):(N(),oe(c,{key:1,size:"40px",border:"5px"}))])):xe("",!0),!o.isHeaderVisible&&(o.bimdataLogoOnSingleWindow||o.viewerVersionOnSingleWindow)?(N(),U("div",cBi,[o.bimdataLogoOnSingleWindow?(N(),oe(u,{key:0,name:"logo"})):xe("",!0),o.viewerVersionOnSingleWindow?(N(),U("div",uBi,X(o.version),1)):xe("",!0)])):xe("",!0)],544)}const hBi=W(aBi,[["render",dBi]]),pBi=["src"],ABi={class:"bimdata-models__header"},gBi={key:0,class:"bimdata-models__header__loader"},MBi={class:"bimdata-models__header__picto"},fBi={class:"bimdata-models__header__name"},wBi={key:0,class:"bimdata-models__header__name--empty"},LBi={key:1,class:"bimdata-models__header__name--empty"},mBi={key:3},yBi=["onMousemove","onClick"],e0e={__name:"Models",props:{preview:{type:Boolean,default:!1},windowPositioning:{type:Boolean,default:!0},customFilter:{type:Function,default:null},width:{type:String,default:"350px"}},setup(t){const e=t,i=Ut("$viewer"),o=Qe(),r=Qe(0),n=Qe(0),s=Qe(),a=mr([]),l=Qe(!1),c=At(()=>i.localContext.loadedModels),u=At(()=>i.localContext.loadedModelIds),d=At(()=>i.localContext.loadingModelIds),h=At(()=>i.localContext.multiModel),p=At(()=>(e.customFilter?a.value.filter(e.customFilter):a.value).map(I=>c.value.find(j=>{var b;return((b=j.document)==null?void 0:b.head_id)!=null&&j.document.head_id===I.document.id})??I)),g=I=>u.value.includes(I),A=I=>d.value.includes(I),M=At(()=>{var I;const{x:j,y:b}=((I=s.value)==null?void 0:I.getBoundingClientRect())??{x:0,y:0};return`top:${n.value-b}px; left:${r.value-j}px;`}),f=I=>{!h.value&&g(I.id)||d.value.length>0||(i.localContext.loadedModelIds.includes(I.id)?i.localContext.unloadModels([I.id]):i.localContext.loadModels([I.id]))},L=I=>{switch(I){case"C":return"success";case"E":return"failed";case"P":case"I":return"sandglass"}},w=(I,j)=>{I!=null&&I.viewer_360_file&&(r.value=j.clientX,n.value=j.clientY),o.value=I?.viewer_360_file},m=async I=>{l.value=!0;try{return(await i.api.apiClient.modelApi.getModels(i.api.cloudId,i.api.projectId,void 0,void 0,I)).filter(j=>i.state.models.some(b=>b.archived)||!j.archived).sort(Zh("updated_at",!1))}catch(j){console.error("[Models] Cannot get project models. Error: ",j)}finally{l.value=!1}return[]},C=I=>{var j;return((j=I.children)==null?void 0:j.some(b=>g(b.id)))??!1};return m(i.localContext.modelTypes).then(I=>{a.value=I}),(I,j)=>{const b=z("BIMDataSpinner"),k=z("BIMDataIconModel3D"),P=z("BIMDataTextbox"),S=z("BIMDataCheckbox"),T=z("BIMDataRadio"),R=z("BIMDataIcon"),Y=z("BIMDataDropdownList");return N(),U("div",{ref_key:"templateRef",ref:s,class:Ne(["bimdata-models",{"bimdata-models--window-positioning":t.windowPositioning}])},[o.value?(N(),U("div",{key:0,class:"bimdata-models__preview",style:Se(M.value)},[v("img",{src:o.value},null,8,pBi)],4)):xe("",!0),O(Y,{style:Se(`--bimdata-models-width: ${t.width};`),width:t.width,list:p.value,"element-key":"id","per-page":40,loading:l.value,class:"bimdata-models__list",disabled:p.value.length===0,onElementClick:f},{header:J(({isOpen:Z})=>[v("div",ABi,[l.value?(N(),U("div",gBi,[O(b)])):(N(),U(Mt,{key:1},[v("div",MBi,[O(k)]),v("div",{class:Ne(["bimdata-models__header__number bimdata-info-length",{"bimdata-models__header__number--empty":u.value.length===0}])},[v("span",null,X(u.value.length),1)],2),v("div",fBi,[p.value.length===0?(N(),U("span",wBi,X(I.$t("model.no_model")),1)):u.value.length===0?(N(),U("span",LBi,X(I.$t("model.no_loaded_model")),1)):u.value.length===1?(N(),oe(P,{key:2,text:c.value[0].name,tooltip:!Z},null,8,["text","tooltip"])):u.value.length>1?(N(),U("span",mBi,X(I.$t("model.selected_models")),1)):xe("",!0)])],64))])]),element:J(({element:Z,close:G})=>[v("div",{class:"bimdata-models__model",onMousemove:_=>t.preview&&w(Z,_),onMouseout:j[0]||(j[0]=_=>t.preview&&w()),onClick:()=>{!h.value&&!g(Z.id)&&G()}},[h.value?(N(),oe(S,{key:0,"model-value":g(Z.id)||C(Z),disabled:Z.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])):(N(),oe(T,{key:1,"model-value":g(Z.id)||C(Z),disabled:Z.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])),O(R,{margin:"0 calc(var(--spacing-unit) / 2)",name:L(Z.status),size:"xs",class:Ne({"fill-success":Z.status==="C","fill-high":Z.status==="E"})},null,8,["name","class"]),O(P,{class:Ne({"bimdata-models__model__name":!0,"bimdata-models__model__name--disabled":Z.status!=="C"||d.value.length>0}),text:Z.name,width:`calc(100% -
|
|
1871
|
-
${h.value?13:23}px - 2 * 6px - 16px)`},null,8,["class","text","width"]),Z.document&&!Z.document.is_head_version?(N(),oe(R,{key:2,name:"versioning",fill:"",color:"default",size:"xs",margin:"0 0 0 6px"})):xe("",!0)],40,yBi),A(Z.id)?(N(),oe(b,{key:0,class:"bimdata-models__model__spinner"})):xe("",!0)]),_:1},8,["style","width","list","loading","disabled"])],2)}}},vBi={data(){return{shown:!1}},mounted(){setTimeout(()=>{this.shown=!0},500)}};function CBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return N(),U("div",{class:"bimdata__no-model",style:Se({"--no-model--opacity":r.shown?1:0})},[O(s,{name:"emptyViewer",x:"90",y:"90"}),v("span",null,X(t.$t("model.select_model")),1)],4)}const t0e=W(vBi,[["render",CBi],["__scopeId","data-v-54b49e82"]]);window.BIMDataViewerVue=_Q;class IBi{constructor(e={}){var i,o;const{api:r={},ui:n}=e;this.uiCfg=n,r.apiUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `apiUrl` not set, use 'https://api.bimdata.io' by default."),r.apiUrl="https://api.bimdata.io"),r.archiveUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `archiveUrl` not set, use 'https://archive.bimdata.io' by default."),r.archiveUrl="https://archive.bimdata.io"),r.ifcIds&&(console.warn("[BIMData Viewer] DEPRECATED - Viewer config - please use the `modelIds` property instead of `ifcIds`."),r.modelIds===void 0&&(r.modelIds=r.ifcIds)),r.modelIds||(r.modelIds=[]),(i=r.offline)!=null&&i.dataFile&&(r.offline.data=r.offline.dataFile),this.$viewer=new rPi(e),(o=r.offline)!=null&&o.enabled?this.$viewer.api.enableOfflineMode(r.offline.data,r.offline.options).then(()=>this.state.loadModels(r.modelIds)):this.state.loadModels(r.modelIds),this.vueApp=null}get state(){return this.$viewer.state}get api(){return this.$viewer.api}async mount(e,i="3d"){var o;const{$viewer:r}=this;await r.api.ready;try{const d=await r.api.apiClient.collaborationApi.checkProjectAccess(r.api.cloudId,r.api.projectId);r.api.permissions=$he(d)}catch{r.api.permissions=$he()}const n=this.api.accessToken,{i18n:s}=r;s.registerTranslations(r.pluginManager.pluginTranslations),r.layout.apply(i);const a={i18n:s.i18nVuePlugin,data(){return{accessToken:n}},render(){return Vi(hBi,{style:"height: 100%"})}},l=dN(a).use(s.i18nVuePlugin).use(YPi()).use(RPi({i18nPlugin:s.i18nVuePlugin})).use(LPi({apiClient:r.api.apiClient,i18nPlugin:s.i18nVuePlugin}));l.provide("$viewer",r),l.component("BIMDataModelLoader",e0e),l.component("BIMDataNoModelWindowPlaceHolder",t0e),l.component("BIMDataStoreySelector",d7),l.component("ModelsLoader",e0e),l.component("NoModelWindowPlaceHolder",t0e);const c=e instanceof HTMLElement?e:document.querySelector(e);c&&(c.style.height="100%");const u=l.mount(e);return u.$viewer=r,sPi(u.$el,(o=this.uiCfg)==null?void 0:o.style),typeof window<"u"&&(window.bimdataViewer=u),this.vueApp=l,u}destroy(){var e;(e=this.vueApp)==null||e.unmount()}setLocale(e){if(!pG.includes(e))throw new Error(`Viewer available locales are ${pG.join(", ")}.`);this.$viewer.i18n.locale=e}registerPlugin(e){this.$viewer.registerPlugin(e)}registerWindow(e){return this.$viewer.windowManager.registerWindow(e)}unregisterWindow(e){return this.$viewer.windowManager.unregisterWindow(e)}setAccessToken(e){this.api.accessToken=e}async loadModels(e){this.$viewer.globalContext.loadingProcessStart();const i=await this.state.loadModels(e);return this.$viewer.globalContext.loadingProcessEnd(),i}loadIfcs(e){return console.warn("[BIMData Viewer] DEPRECATED - Viewer - please use the loadModels method instead of loadIfcs."),this.loadModels(e)}}const i0e=(t={})=>new IBi(t);window.makeBIMDataViewer=i0e;/*! @license DOMPurify 2.5.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.5/LICENSE */function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Qz(t,e){return Qz=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},Qz(t,e)}function jBi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ax(t,e,i){return jBi()?ax=Reflect.construct:ax=function(o,r,n){var s=[null];s.push.apply(s,r);var a=Function.bind.apply(o,s),l=new a;return n&&Qz(l,n.prototype),l},ax.apply(null,arguments)}function Mc(t){return bBi(t)||xBi(t)||DBi(t)||NBi()}function bBi(t){if(Array.isArray(t))return Gz(t)}function xBi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DBi(t,e){if(t){if(typeof t=="string")return Gz(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Gz(t,e)}}function Gz(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o}function NBi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1870
|
+
`),onMouseenter:e[0]||(e[0]=(...h)=>o.onMouseEnter&&o.onMouseEnter(...h)),onMouseleave:e[1]||(e[1]=(...h)=>o.onMouseLeave&&o.onMouseLeave(...h))},[O(s,{ref:"modalManagerTemplateRef"},null,512),v("div",Pzi,[o.windowPlugins.leftSidePanel?(N(),oe(a,{key:0,plugin:o.windowPlugins.leftSidePanel},null,8,["plugin"])):xe("",!0),v("div",Bzi,[(N(!0),U(Mt,null,ii(o.windowPlugins.free,h=>(N(),oe(l,{key:h.name,class:Ne({"window-container__content__center__viewer":h.isViewer}),plugin:h},null,8,["class","plugin"]))),128)),O(c,{position:"left",plugins:o.windowPlugins.leftButtonColumn},null,8,["plugins"]),O(c,{position:"right",plugins:o.windowPlugins.rightButtonColumn},null,8,["plugins"])]),o.windowPlugins.rightSidePanel?(N(),oe(a,{key:1,plugin:o.windowPlugins.rightSidePanel},null,8,["plugin"])):xe("",!0)]),o.loading?(N(),U("div",Ozi,[o.spinner&&o.spinner.component?(N(),oe(Er(o.spinner.component),Pu(nl({key:0},o.spinner.props)),null,16)):(N(),oe(u,{key:1,size:"20px",border:"3px"}))])):xe("",!0),o.layoutSettingsDisplayed?(N(),U("div",Rzi,[O(d)])):xe("",!0)],36)}const Fzi=W(zzi,[["render",Uzi]]);class Yzi{constructor(e=!0){const i=DEi(_Q,null,{resizable:e});i.registerContent("default",Fzi),this.settings=rl({edit:!1,swap:!1,full:!1}),this.areas=i}get resizable(){return this.areas.resizable}set resizable(e){this.areas.resizable=e}apply(e=null){this.areas.layout=e?NEi(e):null}copy(e){return SEi(this.areas.layout,e)}open({ratio:e,direction:i,insertAfter:o,windowName:r=null,windowState:n=null,localContextId:s=null}={}){const a=r?{options:{windowName:r,windowState:n}}:null;return s===null?this.areas.splitLayout(e,i,o,a):this.areas.split(s,e,i,o,a)}swap(e,i){return this.areas.swap(e,i)}close(e){return this.areas.delete(e)}}const Qzi="@bimdata/viewer",Gzi="module",Hzi="2.3.0-beta.21",Vzi="A customizable BIM viewer.",Zzi=["bim","viewer","bimdata","ifc","bcf"],Jzi="./index.d.ts",Wzi="BIMData.io",Kzi="https://developers.bimdata.io/viewer/index.html",_zi={email:"support@bimdata.io"},qzi=["last 2 chrome version","last 2 firefox version"],Xzi="dist/bimdata-viewer.esm.min.js",$zi="dist/bimdata-viewer.esm.min.js",ePi={build:"vite build && esbuild dist/bimdata-viewer.esm.min.js --minify --outfile=dist/bimdata-viewer.esm.min.js --allow-overwrite","build:split":"vite build -c vite.config.split.js && esbuild dist/bimdata-viewer-split.esm.min.js --minify --outfile=dist/bimdata-viewer-split.esm.min.js --allow-overwrite","cy:run":"cypress run","cy:open":"cypress open",dev:"vite",prebuild:"rm -rf dist",prepublishOnly:"npm run build","semantic-release":"semantic-release",serve:"http-server -c-1 --silent",test:"npm run test:unit & npm run build & npm run test:e2e","test:unit":"jest","test:e2e":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:run","test:e2e-dev":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:open",version:"echo $npm_package_version",ts:"tsc"},tPi=["dist/*","types/*","CHANGELOG.md","README.md","package.json","package-lock.json","index.d.ts"],iPi={"@babel/preset-env":"^7.24.4","@bimdata/2d-engine":"2.4.0","@bimdata/areas-next":"0.1.15","@bimdata/bcf-components":"6.2.1","@bimdata/components":"1.5.0","@bimdata/design-system":"2.1.0-rc.24","@bimdata/typescript-fetch-api-client":"10.1.0","@rollup/plugin-alias":"5.1.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-image":"^3.0.3","@rollup/plugin-replace":"^5.0.5","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^12.0.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^10.0.3","@semantic-release/npm":"^12.0.0","@semantic-release/release-notes-generator":"^13.0.0","@vitejs/plugin-vue":"4.6.2","@vue/vue3-jest":"^29.2.6","@xeokit/xeokit-sdk":"git+https://git@github.com/Amoki/xeokit-sdk.git#27e95db2e157215e870f7125bd28b258dee699a9","@zip.js/zip.js":"^2.7.41",async:"^3.2.5",autoprefixer:"^10.4.19","babel-core":"^7.0.0-bridge.0","babel-jest":"^29.7.0","conventional-changelog-eslint":"^5.0.0",cypress:"^13.7.3",esbuild:"^0.20.2",eslint:"^9.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-cypress":"^2.15.2","eslint-plugin-jest":"^28.2.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.25.0","form-data":"^4.0.0",html2canvas:"1.4.1","http-server":"^14.1.1",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-extended":"^4.0.2",jspdf:"^2.5.1",lodash:"^4.17.21","node-fetch":"^3.3.2",postcss:"^8.4.38",prettier:"^3.2.5",querystring:"^0.2.0",sass:"^1.75.0","semantic-release":"^23.0.8",sinon:"^17.0.1","start-server-and-test":"^2.0.3",vite:"4.5.2","vite-plugin-css-injected-by-js":"^3.5.0",vue:"3.4.23","vue-eslint-parser":"^9.4.2","vue-i18n":"^9.12.1"},oPi={name:Qzi,type:Gzi,version:Hzi,description:Vzi,keywords:Zzi,types:Jzi,author:Wzi,homepage:Kzi,bugs:_zi,browserslist:qzi,main:Xzi,module:$zi,scripts:ePi,files:tPi,devDependencies:iPi};class rPi{constructor({plugins:e,api:i,ui:o,locale:r="fr"}){this.pluginManager=new KSi(e),this.windowManager=new qSi,this.windowManager.registerAndAddPluginsToWindows([...this.pluginManager.registeredPlugins.values()]),this.api=new kki(i),this.globalContext=new Oye(this),this.state=Zki(this),this.shortcutManager=Y4e(this.state),this.uiSettings=o||{},this.i18n=new Pye(r),this._contextMenu=null,this.layout=new Yzi(this.uiSettings.resizable!==!1),this.localContext=null,window.$viewer=this}get version(){return oPi.version}get locale(){return this.i18n.locale}get contextMenu(){return this._contextMenu||U4e}set contextMenu(e){this._contextMenu=e}get registeredWindows(){return[...this.windowManager.registeredWindows.keys()]}get registeredPlugins(){return[...this.pluginManager.registeredPlugins.keys()]}get pluginsCfg(){return this.pluginManager.cfg}registerPlugin(e){this.pluginManager.registerPlugin(e),this.windowManager.registerAndAddPluginsToWindows([e])}}function sPi(t,e={}){e.backgroundColor&&(t.style.setProperty("--bimdata-viewer-background-color",e.backgroundColor),e.backgroundColor==="transparent"&&t.style.setProperty("--areas-separator-color","transparent")),e.colorPrimary&&t.style.setProperty("--color-primary",e.colorPrimary),e.colorPrimaryLighter&&t.style.setProperty("--color-primary-lighter",e.colorPrimaryLighter),e.colorPrimaryLight&&t.style.setProperty("--color-primary-light",e.colorPrimaryLight),e.colorPrimaryDark&&t.style.setProperty("--color-primary-dark",e.colorPrimaryDark),e.colorSecondary&&t.style.setProperty("--color-secondary",e.colorSecondary),e.colorSecondaryLighter&&t.style.setProperty("--color-secondary-lighter",e.colorSecondaryLighter),e.colorSecondaryLight&&t.style.setProperty("--color-secondary-light",e.colorSecondaryLight),e.colorSecondaryDark&&t.style.setProperty("--color-secondary-dark",e.colorSecondaryDark),e.colorSilverLight&&t.style.setProperty("--color-silver-light",e.colorSilverLight),e.colorSilver&&t.style.setProperty("--color-silver",e.colorSilver),e.colorSilverDark&&t.style.setProperty("--color-silver-dark",e.colorSilverDark),e.colorGraniteLight&&t.style.setProperty("--color-granite-light",e.colorGraniteLight),e.colorGranite&&t.style.setProperty("--color-granite",e.colorGranite),e.colorSuccess&&t.style.setProperty("--color-success",e.colorSuccess),e.colorSuccessLighter&&t.style.setProperty("--color-success-Lighter",e.colorSuccessLighter),e.colorSuccessLight&&t.style.setProperty("--color-success-Light",e.colorSuccessLight),e.colorSuccessDark&&t.style.setProperty("--color-success-Dark",e.colorSuccessDark),e.colorWarning&&t.style.setProperty("--color-warning",e.colorWarning),e.colorWarningLighter&&t.style.setProperty("--color-warning-Lighter",e.colorWarningLighter),e.colorWarningLight&&t.style.setProperty("--color-warning-Light",e.colorWarningLight),e.colorWarningDark&&t.style.setProperty("--color-warning-Dark",e.colorWarningDark),e.colorHigh&&t.style.setProperty("--color-high",e.colorHigh),e.colorHighLighter&&t.style.setProperty("--color-high-lighter",e.colorHighLighter),e.colorHighLight&&t.style.setProperty("--color-high-light",e.colorHighLight),e.colorHighDark&&t.style.setProperty("--color-high-dark",e.colorHighDark),e.colorText&&t.style.setProperty("--color-text",e.colorText),(!e.backgroundColor||e.backgroundColor!=="transparent")&&t.style.setProperty("--areas-separator-color","rgba(216, 216, 216, 1)"),e.headerHeight!=null&&t.style.setProperty("--bimdata-viewer-header-height",e.headerHeight),t.style.setProperty("--areas-background-color","transparent")}const nPi=Object.freeze({25:"GUEST",50:"USER",100:"ADMIN"}),lf=Object.freeze({READ:"read",WRITE:"write"});function Xhe(t){const e={};return t.forEach(i=>{const[o,r]=i.split(":");e[o]?e[o].push(r):e[o]=[r]}),e}const aPi={token_scopes:[],usable_scopes:[],user_role:25};function $he(t=aPi){var e,i,o,r,n,s;const a=Xhe(t.token_scopes),l=Xhe(t.usable_scopes);return{...pJ(t),tokenScopes:a,usableScopes:l,userRole:nPi[t.user_role],user:t.user?pJ(t.user):null,hasBcfReadPermission:((e=l.bcf)==null?void 0:e.includes(lf.READ))??!1,hasBcfWritePermission:((i=l.bcf)==null?void 0:i.includes(lf.WRITE))??!1,hasModelReadPermission:((o=l.model)==null?void 0:o.includes(lf.READ))??!1,hasModelWritePermission:((r=l.model)==null?void 0:r.includes(lf.WRITE))??!1,hasDocReadPermission:((n=l.document)==null?void 0:n.includes(lf.READ))??!1,hasDocWritePermission:((s=l.document)==null?void 0:s.includes(lf.WRITE))??!1}}const lPi={BcfFilters:{filtersButton:"Filter",filtersTitle:"Filter",priorityLabel:"Priorit\xE4t",statusLabel:"Status",assignedToLabel:"Zugewiesen an",creatorsLabel:"Erstellt von",tagsLabel:"Tags",resetButton:"Zur\xFCcksetzen",searchButton:"Suchen",undefined:"Nicht definiert",datePlaceholder:"Erstellungsdatum"},BcfSettings:{goBackButton:"Zur\xFCck",title:"BCF-Parameter",text:"Erstellen, f\xFCllen und listen Sie die BCF-Einstellungen auf, die Sie f\xFCr dieses Projekt haben m\xF6chten.",validateButton:"Die BCF-Parameter anerkennen"},BcfStatistics:{emptyText:"F\xFCgen Sie Fragen hinzu, um zugeh\xF6rige Statistiken hier anzuzeigen.",issues:"Probleme",extension:{Priority:"Priorit\xE4t",PriorityNotDefined:"Keine Priorit\xE4t",PriorityTitle:"Priorit\xE4ten",Status:"Status",StatusNotDefined:"Kein Status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priorit\xE4t:",noPriority:"Keine",assignedTo:"Zugewiesen an :",elements:"Elemente",notSpecified:"Nicht definiert",see:"Anzeigen"},BcfTopicCreationCard:{text:"Ein neues BCF-Thema erstellen",createBcfSideTitle:"Ein Problem melden"},BcfTopicForm:{dragDropImageText:"Bitte w\xE4hlen Sie eine Datei aus.",addObjectButton:"Objekt",addAnnotationButton:"Annotation",annotationButtonTooltip:"Zu diesem Thema gibt es derzeit keine Ansichten.",addPictureButton:"F\xFCgen Sie ein Bild hinzu.",titlePlaceholder:"Titel *",titleErrorMessage:"Titel fehlt",typeLabel:"Typ",priorityLabel:"Priorit\xE4t",statusLabel:"Status",stageLabel:"Phase",assignedToLabel:"Zugewiesen an",dueDateLabel:"F\xE4lligkeitsdatum (TT.MM.JJJJ)",descriptionLabel:"Beschreibung",labelsLabel:"Tags",createButton:"Best\xE4tigen",updateButton:"\xC4nderungen \xFCbernehmen",modalText:"Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte \xC4nderungen.",cancelButton:"\xC4nderungen verwerfen",continueButton:"\xC4nderungen fortsetzen",createTitle:"Ein Problem melden",dragDropImageTextTablet:"Foto machen",takeSnapshot:"Mach einen Schnappschuss",importFile:"Eine Datei importieren",searchPlaceholder:"Suchen",emptySearch:"kein Ergebnis"},BcfTopicOverview:{openViewer:"Im Viewer \xF6ffnen",openViewerNoModels:"Es sind keine Vorlagen zur Ansicht bereit",elements:"{count} Elemente",noElements:"kein Element",type:"Typ",noTypeSpecified:"Kein Typ angegeben",description:"Beschreibung",noDescriptionProvided:"Keine Beschreibung angegeben",assignedTo:"Zugeteilt an",notAssigned:"Nicht zugewiesen",dueDate:"F\xE4lligkeitsdatum",noDueDate:"Kein F\xE4lligkeitsdatum",informations:"Informationen",status:"Status",noStatusSpecified:"Kein Status angegeben",stage:"Phase",noStageProvided:"Keine Phase angegeben",priority:"Priorit\xE4t",priorityNotDefined:"Nicht definiert",tags:"Tags",noTags:"Keine Tags",commentButton:"Ein Kommentar ver\xF6ffentlichen",deleteText:"Sie l\xF6schen jetzt {Name}",deleteBcfButton:"Dieses BCF l\xF6schen",keepBcfButton:"Dieses BCF beibehalten",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE4t",status:"Status",title:"Titel",creator:"Autor",date:"Datum"}},BcfTopicActionsCell:{seeButton:"Anzeigen"},BcfTopicComments:{commentButton:"Ein Kommentar verfassen",commentLabel:"Ein Kommentar verfassen",commentText:"Kommentar",cancelButton:"Abbrechen",publishButton:"Ver\xF6ffentlichen",commentsText:"Kommentare",deleteCommentText:"Diesen Kommentar l\xF6schen?",deleteButton:"L\xF6schen",takeSnapshot:"Mach einen Schnappschuss"},BcfTopicPriorityCell:{noPriority:"Keine"},SettingCard:{addButton:"ein Element hinzuf\xFCgen",cancelButton:"Abbrechen",validateButton:"Best\xE4tigen",deleteExtensionText:"Diesen Parameter l\xF6schen",deleteButton:"L\xF6schen",title:{Priority:"Priorit\xE4ten",Label:"Tags",Status:"Status",Type:"Typen",Stage:"Phasen"},input:{Priority:"Eine neue Priorit\xE4t hinzuf\xFCgen",Label:"Ein neues Etikett hinzuf\xFCgen",Status:"Einen neuen Status hinzuf\xFCgen",Type:"Einen neuen Typ hinzuf\xFCgen",Stage:"Eine neue Phase hinzuf\xFCgen"},text:{Priority:"Liste der Priorit\xE4ten",Label:"Liste von Tags",Status:"Liste der Status",Type:"Liste der Typen",Stage:"Liste der Phasen"}}},cPi={BcfComponents:lPi},uPi={BcfFilters:{filtersButton:"Filters",filtersTitle:"Filters",priorityLabel:"Priority",statusLabel:"Status",assignedToLabel:"Assigned to",creatorsLabel:"Created by",tagsLabel:"Tags",resetButton:"Reset",searchButton:"Search",undefined:"Not defined",datePlaceholder:"Creation date"},BcfSettings:{goBackButton:"Back",title:"BCF Settings",text:"Create, enter in, and list the BCF settings you would like to have for this project",validateButton:"Validate BCF settings"},BcfStatistics:{emptyText:"Add BCF Topics to start to have some stats here.",issues:"issues",extension:{Priority:"Priority",PriorityNotDefined:"No priority",PriorityTitle:"Priorities",Status:"Status",StatusNotDefined:"No status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priority: ",noPriority:"None",assignedTo:"Assigned to: ",elements:"Elements",notSpecified:"Not specified",see:"See"},BcfTopicCreationCard:{text:"Create a new BCF topic",createBcfSideTitle:"Report a problem"},BcfTopicForm:{dragDropImageText:"Please select a file",addObjectButton:"Object",addAnnotationButton:"Annotation",annotationButtonTooltip:"This topic has no viewpoint",addPictureButton:"Add a picture",titlePlaceholder:"Title *",titleErrorMessage:"Missing title",typeLabel:"Type",priorityLabel:"Priority",statusLabel:"Status",stageLabel:"Stage",assignedToLabel:"Assigned to",dueDateLabel:"Due date",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Validate",updateButton:"Modify this BCF",modalText:"You are about to quit editing issue {name} but there are unsaved changes.",cancelButton:"Discard changes",continueButton:"Continue editing",createTitle:"Report a problem",dragDropImageTextTablet:"Take a picture",takeSnapshot:"Take a snapshot",importFile:"Import a file",searchPlaceholder:"Search",emptySearch:"No result"},BcfTopicOverview:{openViewer:"Open in viewer",openViewerNoModels:"No model to open",elements:"{count} Elements",noElements:"No element",type:"Type",noTypeSpecified:"No type specified",description:"Description",noDescriptionProvided:"No description provided",assignedTo:"Assigned to",notAssigned:"Not assigned",dueDate:"Due date",noDueDate:"No due date",informations:"Informations",status:"Status",noStatusSpecified:"No status specified",stage:"Stage",noStageProvided:"No stage provided",priority:"Priority",priorityNotDefined:"Not defined",tags:"Tags",noTags:"No tags",commentButton:"Post a comment",deleteText:"You are about to delete {name}",deleteBcfButton:"Delete this BCF",keepBcfButton:"Keep this BCF",author:"Author"},BcfTopicsTable:{headers:{index:"#",priority:"Priority",status:"Status",title:"Title",creator:"Author",date:"Date"}},BcfTopicActionsCell:{seeButton:"See"},BcfTopicComments:{commentButton:"Post a comment",commentLabel:"Post a comment",commentText:"Comment",cancelButton:"Cancel",publishButton:"Publish",commentsText:"Comments",deleteCommentText:"Delete this comment ?",deleteButton:"Delete",takeSnapshot:"Take a snapshot"},BcfTopicPriorityCell:{noPriority:"None"},SettingCard:{addButton:"add an element",cancelButton:"Cancel",validateButton:"Validate",deleteExtensionText:"Remove this setting",deleteButton:"Delete",title:{Priority:"Priorities",Label:"Labels",Status:"Status",Type:"Types",Stage:"Stages"},input:{Priority:"Add a new priority",Label:"Add a new label",Status:"Add new status",Type:"Add a new type",Stage:"Add a new stage"},text:{Priority:"Priority list",Label:"Labels list",Status:"Status list",Type:"Type list",Stage:"Stage list"}}},dPi={BcfComponents:uPi},hPi={BcfFilters:{filtersButton:"Filtros",filtersTitle:"Filtros",priorityLabel:"Prioridad",statusLabel:"Estado",assignedToLabel:"Asignado a",creatorsLabel:"Creado por",tagsLabel:"Etiquetas:",resetButton:"Restablecer",searchButton:"Buscar en",undefined:"No definido",datePlaceholder:"Fecha de creaci\xF3n"},BcfSettings:{goBackButton:"Volver",title:"Par\xE1metros del BCF",text:"Cree, rellene y enumere los par\xE1metros del BCF que desea tener en este proyecto",validateButton:"Validar los par\xE1metros del BCF"},BcfStatistics:{emptyText:"A\xF1ada preguntas para ver las estad\xEDsticas asociadas aqu\xED.",issues:"problemas",extension:{Priority:"Prioridad",PriorityNotDefined:"Sin prioridad",PriorityTitle:"Prioridades",Status:"Estado",StatusNotDefined:"Sin estado",StatusTitle:"Estatutos"}},BcfTopicCard:{priority:"Prioridad :",noPriority:"Sin",assignedTo:"Asignado a :",elements:"Elementos",notSpecified:"No definido",see:"Ver"},BcfTopicCreationCard:{text:"Crear un nuevo tema BCF",createBcfSideTitle:"Informar de un problema"},BcfTopicForm:{dragDropImageText:"Seleccione un archivo",addObjectButton:"Objeto",addAnnotationButton:"Anotaci\xF3n",annotationButtonTooltip:"Actualmente este tema no posee ning\xFAn punto de vista",addPictureButton:"A\xF1adir una imagen",titlePlaceholder:"T\xEDtulo *",titleErrorMessage:"Falta el t\xEDtulo",typeLabel:"Tipo",priorityLabel:"Prioridad",statusLabel:"Estado",stageLabel:"Fase",assignedToLabel:"Asignado a",dueDateLabel:"Fecha de vencimiento (DD/MM/AAAA)",descriptionLabel:"Descripci\xF3n",labelsLabel:"Etiquetas",createButton:"Validar",updateButton:"Modificar este BCF",modalText:"Est\xE1 a punto de salir de la edici\xF3n del problema de {name} pero hay cambios sin guardar.",cancelButton:"Cancelar los cambios",continueButton:"Continuar con los cambios",createTitle:"Informar de un problema",dragDropImageTextTablet:"Tomar una fotograf\xEDa",takeSnapshot:"Tomar un snapshot",importFile:"Importar un archivo",searchPlaceholder:"Buscar",emptySearch:"No hay resultados"},BcfTopicOverview:{openViewer:"Abrir en el visor",openViewerNoModels:"No hay ning\xFAn modelo listo para la visualizaci\xF3n",elements:"{count} Elementos",noElements:"Ning\xFAn elemento",type:"Tipo",noTypeSpecified:"No se especifica el tipo",description:"Descripci\xF3n",noDescriptionProvided:"No hay descripci\xF3n",assignedTo:"Asignado a",notAssigned:"No asignado",dueDate:"Plazo",noDueDate:"Sin fecha de vencimiento",informations:"Informaci\xF3n",status:"Estado",noStatusSpecified:"No se especifica el estado",stage:"Fase",noStageProvided:"No se indica ninguna fase",priority:"Prioridad",priorityNotDefined:"No definido",tags:"Etiquetas",noTags:"Sin etiquetas",commentButton:"Publicar un comentario",deleteText:"Est\xE1s a punto de borrar {name}",deleteBcfButton:"Borrar este BCF",keepBcfButton:"Mantenga este BCF",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Prioridad",status:"Estado",title:"T\xEDtulo",creator:"Autor",date:"Fecha"}},BcfTopicActionsCell:{seeButton:"Ver"},BcfTopicComments:{commentButton:"Publicar un comentario",commentLabel:"Publicar un comentario",commentText:"Comentario",cancelButton:"Cancelar",publishButton:"Publicar",commentsText:"comentarios",deleteCommentText:"\xBFBorrar este comentario?",deleteButton:"Borrar",takeSnapshot:"Tomar un snapshot"},BcfTopicPriorityCell:{noPriority:"Sin"},SettingCard:{addButton:"a\xF1adir un elemento",cancelButton:"Cancelar",validateButton:"Validar",deleteExtensionText:"Borrar esta configuraci\xF3n",deleteButton:"Borrar",title:{Priority:"Prioridades",Label:"Etiquetas:",Status:"Estatutos",Type:"Tipos",Stage:"Fases"},input:{Priority:"A\xF1adir una nueva prioridad",Label:"A\xF1adir una nueva etiqueta",Status:"A\xF1adir un nuevo estado",Type:"A\xF1adir un nuevo tipo",Stage:"A\xF1adir una nueva fase"},text:{Priority:"Lista de prioridades",Label:"Lista de etiquetas",Status:"Lista de estatutos",Type:"Lista de tipos",Stage:"Lista de fases"}}},pPi={BcfComponents:hPi},APi={BcfFilters:{filtersButton:"Filtres",filtersTitle:"Filtres",priorityLabel:"Priorit\xE9",statusLabel:"Statut",assignedToLabel:"Assign\xE9 \xE0",creatorsLabel:"Cr\xE9\xE9 par",tagsLabel:"Tags",resetButton:"R\xE9initialiser",searchButton:"Rechercher",undefined:"Non d\xE9fini",datePlaceholder:"Date de cr\xE9ation"},BcfSettings:{goBackButton:"Retour",title:"Param\xE8tres BCF",text:"Cr\xE9ez, renseignez et listez les param\xE8tres BCF que vous souhaitez avoir sur ce projet",validateButton:"Valider les param\xE8tres BCF"},BcfStatistics:{emptyText:"Ajoutez des questions pour voir les statistiques associ\xE9es ici.",issues:"probl\xE8mes",extension:{Priority:"Priorit\xE9",PriorityNotDefined:"Aucune priorit\xE9",PriorityTitle:"Priorit\xE9s",Status:"Statut",StatusNotDefined:"Aucun statut",StatusTitle:"Statuts"}},BcfTopicCard:{priority:"Priorit\xE9 : ",noPriority:"Aucune",assignedTo:"Assign\xE9 \xE0 : ",elements:"{n} \xC9lements",notSpecified:"Non d\xE9fini",see:"Voir"},BcfTopicCreationCard:{text:"Cr\xE9er un nouveau topic BCF",createBcfSideTitle:"Signaler un probl\xE8me"},BcfTopicForm:{dragDropImageText:"Veuillez s\xE9lectionner un fichier",addObjectButton:"Objet",addAnnotationButton:"Annotation",annotationButtonTooltip:"Ce topic ne poss\xE8de actuellement aucun point de vue",addPictureButton:"Ajouter une image",titlePlaceholder:"Titre *",titleErrorMessage:"Titre manquant",typeLabel:"Type",priorityLabel:"Priorit\xE9",statusLabel:"Statut",stageLabel:"Phase",assignedToLabel:"Assign\xE9 \xE0",dueDateLabel:"Date d'\xE9ch\xE9ance",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Valider",updateButton:"Modifier ce BCF",modalText:"Vous \xEAtes sur le point de quitter l'\xE9dition de l'issue {name} mais il y'a des modifications non enregistr\xE9es.",cancelButton:"Annuler les modifications",continueButton:"Continuer les modifications",createTitle:"Signaler un probl\xE8me",dragDropImageTextTablet:"Prendre une photo",takeSnapshot:"Prendre un snapshot",importFile:"Importer un fichier",searchPlaceholder:"Rechercher",emptySearch:"Pas de r\xE9sultat"},BcfTopicOverview:{openViewer:"Ouvrir dans le viewer",openViewerNoModels:"Il n'y a aucun mod\xE8le pr\xEAt pour une visualisation",elements:"{count} \xC9lements",noElements:"Aucun \xE9l\xE9ment concern\xE9",type:"Type",noTypeSpecified:"Pas de type sp\xE9cifi\xE9",description:"Description",noDescriptionProvided:"Pas de description renseign\xE9e",assignedTo:"Assign\xE9 \xE0",notAssigned:"Non assign\xE9",dueDate:"\xC9ch\xE9ance",noDueDate:"Pas de date d'\xE9ch\xE9ance",informations:"Informations",status:"Statut",noStatusSpecified:"Pas de statut sp\xE9cifi\xE9",stage:"Phase",noStageProvided:"Pas de phase renseign\xE9e",priority:"Priorit\xE9",priorityNotDefined:"Non d\xE9fini",tags:"Tags",noTags:"Pas de tags",commentButton:"Poster un commentaire",deleteText:"Vous \xEAtes sur le point de supprimer {name}",deleteBcfButton:"Supprimer ce BCF",keepBcfButton:"Conserver ce BCF",author:"Auteur"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE9",status:"Statut",title:"Titre",creator:"Auteur",date:"Date"}},BcfTopicActionsCell:{seeButton:"Voir"},BcfTopicComments:{commentButton:"Poster un commentaire",commentLabel:"Poster un commentaire",commentText:"Commentaire",cancelButton:"Annuler",publishButton:"Publier",commentsText:"commentaires",deleteCommentText:"Supprimer ce commentaire ?",deleteButton:"Supprimer",takeSnapshot:"Prendre un snapshot"},BcfTopicPriorityCell:{noPriority:"Aucune"},SettingCard:{addButton:"ajouter un \xE9l\xE9ment",cancelButton:"Annuler",validateButton:"Valider",deleteExtensionText:"Supprimmer ce param\xE8tre",deleteButton:"Supprimer",title:{Priority:"Priorit\xE9s",Label:"Tags",Status:"Statuts",Type:"Types",Stage:"Phases"},input:{Priority:"Ajouter une nouvelle priorit\xE9",Label:"Ajouter un nouveau label",Status:"Ajouter un nouveau statut",Type:"Ajouter un nouveau type",Stage:"Ajouter une nouvelle phase"},text:{Priority:"Liste des priorit\xE9s",Label:"Liste des tags",Status:"Liste des statuts",Type:"Liste des types",Stage:"Liste des phases"}}},gPi={BcfComponents:APi},MPi={BcfFilters:{filtersButton:"Filtri",filtersTitle:"Filtri",priorityLabel:"Priorit\xE0",statusLabel:"Stato",datePlaceholder:"Data di creazione",assignedToLabel:"Assegnato a",creatorsLabel:"Creato da",tagsLabel:"Etichette",resetButton:"Ripristina",searchButton:"Cerca",undefined:"Non definito"},BcfSettings:{goBackButton:"Indietro",title:"Parametri BCF",text:"Creare, notificare e elencare i parametri BCF che si desidera avere su questo progetto",validateButton:"Conferma i parametri BCF"},BcfStatistics:{emptyText:"Aggiungi delle domande per vedere le statistiche associate qui.",issues:"problemi",extension:{Priority:"Priorit\xE0",PriorityNotDefined:"Nessuna priorit\xE0",PriorityTitle:"Priorit\xE0",Status:"Stato",StatusNotDefined:"Nessuno stato",StatusTitle:"Stati"}},BcfTopicCard:{priority:"Priorit\xE0:",noPriority:"Nessuno",assignedTo:"Assegnato a:",elements:"Elementi",noElements:"0 elementi",notSpecified:"Non definito",see:"Visualizza"},BcfTopicCreationCard:{text:"Crea un nuovo topic BCF",createBcfSideTitle:"Segnala un problema"},BcfTopicForm:{dragDropImageText:"Selezionare un file",addObjectButton:"Oggetto",addAnnotationButton:"Annotazione",annotationButtonTooltip:"Attualmente questo argomento non presenta alcun punto di vista",addPictureButton:"Aggiungere un'immagine",titlePlaceholder:"Titolo *",titleErrorMessage:"Titolo mancante",typeLabel:"Tipo",priorityLabel:"Priorit\xE0",statusLabel:"Stato",stageLabel:"Fase",assignedToLabel:"Assegnato a",dueDateLabel:"Data di scadenza",descriptionLabel:"Descrizione",labelsLabel:"Tag",createButton:"Conferma",updateButton:"Modificare questo BCF",modalText:"State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",cancelButton:"Annullare le modifiche",continueButton:"Continuare le modifiche",createTitle:"Segnala un problema"},BcfTopicOverview:{openViewer:"Apri nel visualizzatore",openViewerNoModels:"Non esistono modelli pronti per la visualizzazione",elements:"{count} Elementi",noElements:"Nessun elemento",type:"Tipo",noTypeSpecified:"Nessun tipo specificato",description:"Descrizione",noDescriptionProvided:"Nessuna descrizione inserita",assignedTo:"Assegnato a",notAssigned:"Non assegnato",dueDate:"Scadenza",noDueDate:"Nessuna data di scadenza",informations:"Informazioni",status:"Stato",noStatusSpecified:"Nessuno stato specificato",stage:"Fase",noStageProvided:"Nessuna fase inserita",priority:"Priorit\xE0",priorityNotDefined:"Non definita",tags:"Etichette",noTags:"Nessuna etichetta",commentButton:"Pubblica un commento",deleteText:"Stai per eliminare {name}",deleteBcfButton:"Elimina questo BCF",keepBcfButton:"Conserva questo BCF",author:"Autore"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE0",status:"Stato",title:"Titolo",creator:"Autore",date:"Data"}},BcfTopicActionsCell:{seeButton:"Visualizza"},BcfTopicComments:{commentButton:"Pubblica un commento",commentLabel:"Pubblica un commento",commentText:"Commento",cancelButton:"Annulla",publishButton:"Pubblica",commentsText:"commenti",deleteCommentText:"Eliminare questo commento?",deleteButton:"Elimina"},BcfTopicPriorityCell:{noPriority:"Nessuno"},SettingCard:{addButton:"aggiungi un elemento",cancelButton:"Annulla",validateButton:"Conferma",deleteExtensionText:"Elimina questo parametro",deleteButton:"Elimina",title:{Priority:"Priorit\xE0",Label:"Etichette",Status:"Stati",Type:"Tipi",Stage:"Fasi"},input:{Priority:"Aggiungi una nuova priorit\xE0",Label:"Aggiungi una nuova etichetta",Status:"Aggiungi un nuovo stato",Type:"Aggiungi un nuovo tipo",Stage:"Aggiungi una nuova fase"},text:{Priority:"Elenco delle priorit\xE0",Label:"Elenco delle etichette",Status:"Elenco degli stati",Type:"Elenco dei tipi",Stage:"Elenco delle fasi"}}},fPi={BcfComponents:MPi},wPi={de:cPi,en:dPi,es:pPi,fr:gPi,it:fPi},LPi=({apiClient:t,fetchUsers:e,i18nPlugin:i}={})=>({install(o){t?Yo.setup({apiClient:t,fetchUsers:e}):console.error("[BCF Components Plugin] No api client provided. You must provide an api client for the components to work properly."),i?Object.entries(wPi).forEach(([r,n])=>{i.global.mergeLocaleMessage(r,n)}):console.warn("[BCF Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(nje).forEach(([r,n])=>{o.component(r,n)})}}),mPi={title:"Building Maker",back:"Zur\xFCck",list:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",createButton:"Neues Projekt",updateButton:"Umbenennen",deleteButton:"L\xF6schen"},form:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",input:"Name des Geb\xE4udes",error:"Ung\xFCltiger Name",createButton:"Erstellen",updateButton:"Best\xE4tigen"},storeys:{addStoreyButton:"Etage",addFileButton:"Grundriss",closeButton:"Fertigstellen",submitFilesButton:"Best\xE4tigen"},storeyForm:{title:"Neue Etage",input:"Name",error:"Ung\xFCltiger Name",cancelButton:"Abbrechen",submitButton:"Best\xE4tigen"}},yPi={creationFormTitle:"Ordner erstellen",renameFormPlaceholder:"Datei- / Ordnernam",nameInputPlaceholder:"Ordnername",emptyFolder:"Dieser Ordner ist leer",newFolderSuccess:"Neuer Ordner erstellt",renameFolderSuccess:"Umbenannter Ordner",deleteFolderSuccess:"Ordner gel\xF6scht",newFileSuccess:"Datei hinzugef\xFCgt",renameFileSuccess:"Umbenannte Datei",deleteFileSuccess:"Datei gel\xF6scht",nameInputErrorMessage:"Ung\xFCltiger name",cancel:"Abbrechen",submit:"Best\xE4tigen",buttonText:"Neuer Ordner",addFileButtonText:"Datei laden",rename:"Umbenennen",view:"Sehen",download:"Herunterladen",delete:"L\xF6schen",deleteTitle:"Dateien l\xF6schen",deleteDetail:"Sie sind im Begriff, die folgenden Dateien / Ordner endg\xFCltig zu l\xF6schen"},vPi={BuildingMaker:mPi,FileManager:yPi},CPi={title:"Building",back:"Back",list:{text:"Create and edit the layers, then download your PDFs.",createButton:"New project",updateButton:"Rename",deleteButton:"Delete"},form:{text:"Create and edit the layers, then download your PDFs.",input:"Building name",error:"Invalid",createButton:"Create",updateButton:"Confirm"},storeys:{addStoreyButton:"Storey",addFileButton:"Plan",closeButton:"Finish",submitFilesButton:"Validate"},storeyForm:{title:"New storey",input:"Name",error:"Invalid name",cancelButton:"Cancel",submitButton:"Validate"}},IPi={creationFormTitle:"Create folder",renameFormPlaceholder:"Folder/File name",nameInputPlaceholder:"Folder name",emptyFolder:"This folder is empty",newFolderSuccess:"New folder created",renameFolderSuccess:"Folder renamed",deleteFolderSuccess:"Folder deleted",newFileSuccess:"File added",renameFileSuccess:"File renamed",deleteFileSuccess:"File deleted",nameInputErrorMessage:"Invalid name",cancel:"Cancel",submit:"Submit",buttonText:"New folder",addFileButtonText:"Upload a file",rename:"Rename",view:"View",download:"Download",delete:"Delete",deleteTitle:"Deleting Files",deleteDetail:"You are about to permanently delete the following files / folders",dmsRoot:"Root of the project's DMS",validate:"Validate",back:"Back",pdfPageSelectorTitle:"Select a page"},jPi={title:"Meta-Building Structure",tab:{structure:"Structure",zones:"Zones",equipments:"Equipments"},StoreySelector:{placeholder:"Select a storey"},StructureView:{search:"Search"}},bPi={BuildingMaker:CPi,FileManager:IPi,MetaBuildingStructure:jPi},xPi={title:"Building Maker",back:"Vuelta",list:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",createButton:"Nuevo proyecto",updateButton:"Renombrar",deleteButton:"Suprimir"},form:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",input:"Nombre del edificio",error:"Nombre no v\xE1lido",createButton:"Crear",updateButton:"Validar"},storeys:{addStoreyButton:"Piso",addFileButton:"Plano",closeButton:"Terminar",submitFilesButton:"Validar"},storeyForm:{title:"Nuevo piso",input:"Nombre",error:"Nombre no v\xE1lido",cancelButton:"Anular",submitButton:"Validar"}},DPi={creationFormTitle:"Crear un archivo",renameFormPlaceholder:"Nombre de archivo / carpeta",nameInputPlaceholder:"Nombre de la carpeta",emptyFolder:"Esta carpeta est\xE1 vac\xEDa",newFolderSuccess:"Nueva carpeta creada",renameFolderSuccess:"Carpeta renombrada",deleteFolderSuccess:"Carpeta eliminada",newFileSuccess:"Archivo agregado",renameFileSuccess:"Archivo renombrado",deleteFileSuccess:"Archivo eliminado",nameInputErrorMessage:"Nombre inv\xE1lida",cancel:"Cancelar",submit:"Validar",buttonText:"Carpeta nueva",addFileButtonText:"Cargar un archivo",rename:"Renombrar",view:"Ver",download:"Descargar",delete:"Borrar",deleteTitle:"Eliminar archivos",deleteDetail:"Est\xE1 a punto de eliminar permanentemente los siguientes archivos / carpetas"},NPi={BuildingMaker:xPi,FileManager:DPi},SPi={title:"Building Maker",back:"Retour",list:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",createButton:"Nouveau projet",updateButton:"Renommer",deleteButton:"Supprimer"},form:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",input:"Nom du b\xE2timent",error:"Nom invalide",createButton:"Cr\xE9er",updateButton:"Valider"},storeys:{addStoreyButton:"\xC9tage",addFileButton:"Plan",closeButton:"Terminer",submitFilesButton:"Valider"},storeyForm:{title:"Nouvel \xE9tage",input:"Nom",error:"Nom invalide",cancelButton:"Annuler",submitButton:"Valider"}},TPi={creationFormTitle:"Cr\xE9er un dossier",renameFormPlaceholder:"Nom du fichier/dosier",nameInputPlaceholder:"Nom du dossier",emptyFolder:"Ce dossier est vide",newFolderSuccess:"Nouveau dossier cr\xE9\xE9",renameFolderSuccess:"Dossier renomm\xE9",deleteFolderSuccess:"Dossier supprim\xE9",newFileSuccess:"Fichier ajout\xE9",renameFileSuccess:"Fichier renomm\xE9",deleteFileSuccess:"Fichier supprim\xE9",nameInputErrorMessage:"Nom invalide",cancel:"Annuler",submit:"Valider",buttonText:"Nouveau dossier",addFileButtonText:"Charger un fichier",rename:"Renommer",view:"Voir",download:"T\xE9l\xE9charger",delete:"Supprimer",deleteTitle:"Supression de fichiers",deleteDetail:"Vous \xEAtes sur le point de supprimer d\xE9finitivement les fichiers/dossiers suivants",dmsRoot:"Racine de la GED du projet",validate:"Valider",back:"Retour",pdfPageSelectorTitle:"S\xE9lectionner une page"},kPi={title:"Structure M\xE9ta-Building",tab:{structure:"Structure",zones:"Zones",equipments:"Equipements"},StoreySelector:{placeholder:"S\xE9lectionner un \xE9tage"},StructureView:{search:"Rechercher"}},EPi={BuildingMaker:SPi,FileManager:TPi,MetaBuildingStructure:kPi},zPi={title:"Building Maker",back:"Reso",list:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",createButton:"Nuovo progetto",updateButton:"Rinominare",deleteButton:"Eliminare"},form:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",input:"Nome della costruzione",error:"Nome non corretto",createButton:"Creare",updateButton:"Convalidare"},storeys:{addStoreyButton:"Piano",addFileButton:"Progetto",closeButton:"Finire",submitFilesButton:"Convalidare"},storeyForm:{title:"Nuovo piano",input:"Nome",error:"Nome non corretto",cancelButton:"Annullare",submitButton:"Convalidare"}},PPi={creationFormTitle:"Crea una cartella",renameFormPlaceholder:"Nome file/cartella",nameInputPlaceholder:"Nome della cartella",emptyFolder:"Questa cartella \xE8 vuota",newFolderSuccess:"Nuova cartella creata",renameFolderSuccess:"Cartella rinominata",deleteFolderSuccess:"Cartella eliminata",newFileSuccess:"File aggiunto",renameFileSuccess:"File rinominato",deleteFileSuccess:"File cancellato",nameInputErrorMessage:"Nome non valido",cancel:"Annulla",submit:"Invia",buttonText:"Nuova cartella",addFileButtonText:"Carica un file",rename:"Rinominare",view:"Vedere",download:"Scaricare",delete:"Cancellare",deleteTitle:"Eliminazione di file",deleteDetail:"Stai per eliminare definitivamente i seguenti file/cartelle"},BPi={BuildingMaker:zPi,FileManager:PPi},OPi={de:vPi,en:bPi,es:NPi,fr:EPi,it:BPi},RPi=({i18nPlugin:t}={})=>({install(e){t?Object.entries(OPi).forEach(([i,o])=>{t.global.mergeLocaleMessage(i,o)}):console.warn("[BIMData Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(cmi).forEach(([i,o])=>{e.component(i,o)})}}),UPi={beforeMount(t,e){if(typeof e.value!="function")throw Error(`click away directive needs function, got ${typeof e.value}`);t.clickAwayHandler=i=>{(i.path||i.composedPath&&i.composedPath()).find(o=>o===t)||e.value()},window.addEventListener("mousedown",t.clickAwayHandler,!0)},unmounted(t){window.removeEventListener("mousedown",t.clickAwayHandler,!0),delete t.clickAwayHandler}},FPi=Object.freeze(Object.defineProperty({__proto__:null,BIMDataClickAway:Uc,BIMDataClickInputAway:UPi},Symbol.toStringTag,{value:"Module"})),YPi=t=>({install(e){Object.entries(TMt).forEach(([i,o])=>{t&&t.excludedComponents&&t.excludedComponents.length>0&&t.excludedComponents.includes(i)||(!t||!t.includedComponents||t.includedComponents.includes(i))&&e.component(i,o)}),(!t||t.directives!==!1)&&Object.entries(FPi).forEach(([i,o])=>e.directive(i.split("BIMData")[1],o))}}),QPi={name:"LiWrapper",render(){return Vi("li",this.$slots.default())}};function GPi(t,e){var i=new Set([]);return t.forEach(o=>{e.has(o)||i.add(o)}),i}const pu=ms("id"),HPi=({contextMenu:t,objects:e=[],state:i=t.$viewer.state,pictos:o})=>[{name:"selectAll",get group(){return t.groupPositions.select},position:1,get label(){return t.$t("context_menu.select_all")},get picto(){return o.get(this.name)},execute:()=>i.selectObjects(e.filter(Tc(Wi("visible"),ku("selected"))).map(pu)),predicate:()=>e.some(Tc(Wi("visible"),ku("selected")))},{name:"deselectAll",get group(){return t.groupPositions.select},position:2,get label(){return t.$t("context_menu.deselect_all")},get picto(){return o.get(this.name)},execute:()=>i.deselectObjects(e.filter(Wi("selected")).map(pu)),predicate:()=>e.some(Wi("selected"))},{name:"selectSimilar",get group(){return t.groupPositions.select},position:3,get label(){return t.$t("context_menu.select_similar")},get picto(){return o.get(this.name)},execute(){const r=e.filter(n=>n.visible&&n.type===this.selectedObject.type&&n.id!==this.selectedObject.id).map(pu);i.selectObjects(r)},selectedObject:null,predicate(){const r=e.filter(Tc(Wi("visible"),Wi("selected")));return r.length===1&&r[0].type!==void 0?(this.selectedObject=r[0],!0):(this.selectedObject=null,!1)}},{name:"reverseSelection",get label(){return t.$t("context_menu.reverse_selection")},get group(){return t.groupPositions.select},position:4,execute:()=>{const r=new Set(e.filter(Wi("selected")).map(pu)),n=new Set(e.filter(Wi("visible")).map(pu));i.selectObjects(Array.from(GPi(n,r)),{exclusive:!0})},predicate:()=>e.some(Tc(ku("selected"),Wi("visible")))&&e.some(Tc(Wi("selected"),Wi("visible")))},{name:"showAll",get group(){return t.groupPositions.visibility},position:1,get label(){return t.$t("context_menu.show_all")},get picto(){return o.get(this.name)},execute:()=>i.showObjects(e.filter(ku("visible")).map(pu)),predicate:()=>e.some(ku("visible"))},{name:"hide",get group(){return t.groupPositions.visibility},position:2,get label(){return t.$t("context_menu.hide")},get picto(){return o.get(this.name)},objectsToHide:null,execute(){const r=this.objectsToHide.filter(Wi("selected"));r.length>0&&i.deselectObjects(r.map(pu)),i.hideObjects(this.objectsToHide.map(pu))},predicate(){return this.objectsToHide=e.filter(Tc(Wi("selected"),Wi("visible"))),this.objectsToHide.length>0}},{name:"hideAll",get group(){return t.groupPositions.visibility},position:3,get label(){return t.$t("context_menu.hide_all")},execute:()=>{const r=e.filter(Wi("visible"));r.some(Wi("selected"))&&i.deselectObjects(r.filter(Wi("selected")).map(pu)),i.hideObjects(r.map(pu))},predicate:()=>e.some(Wi("visible"))}].filter(r=>r.predicate()),VPi={components:{LiWrapper:QPi},inject:["$viewer"],data(){return{defaultPrevented:!1,displayed:!1,top:null,bottom:null,left:null,width:200,nextCommandId:1,currentCommands:[],contextCommands:[],registeredCommands:[],groupPositions:{select:10,visibility:20},asyncPredicateRunning:!1}},computed:{position(){return{top:this.top?this.top+"px":"unset",bottom:this.bottom?this.bottom+"px":"unset",left:this.left+"px",width:this.width+"px"}}},watch:{displayed(t){t?document.addEventListener("keydown",this.onKeyDown):document.removeEventListener("keydown",this.onKeyDown)}},created(){this.$viewer.contextMenu=this,this.asyncPredicates=new Set},methods:{onKeyDown(t){t.key==="Escape"&&this.away()},setPosition(t){const e=(document.fullscreenElement?document.fullscreenElement:this.$parent.$el).getBoundingClientRect();this.left=t.clientX-e.left,this.top=t.clientY-e.top,this.left+this.width>e.width&&(this.left=this.left-this.width),t.clientY>e.top+e.height/2?(this.bottom=e.height-this.top,this.top=null):this.bottom=null},typeCheckCommand(t={}){let e=null;if((!t.execute||typeof t.execute!="function")&!t.component&&(e="Cannot register context menu command. A command must have an execute function or a component property."),t.label||(e="Cannot register context menu command. A command must have a label."),e)throw console.error(e),new Error(e);return t.id=this.nextCommandId++,t},open(t){this.currentCommands=[],this.setPosition(t),this.originEvent=t,t.preventDefault(),this.setCurrentCommands(),this.groupCurrentCommands(),this.defaultPrevented=!1,this.displayed=!0,document.fullscreenElement?(this.$el.parentElement.removeChild(this.$el),this.adoptiveParent=document.fullscreenElement,this.adoptiveParent.appendChild(this.$el)):this.adoptiveParent&&this.adoptiveParent!==this.$viewer.globalContext.el&&(this.adoptiveParent.removeChild(this.$el),this.$viewer.globalContext.el.appendChild(this.$el),this.adoptiveParent=null)},setCurrentCommands(){this.asyncPredicates.clear(),this.asyncPredicateRunning=!1,this.defaultPrevented||this.registeredCommands.forEach(async t=>{if(typeof t.predicate=="function"){const e=t.predicate(this.$viewer.globalContext.activeLocalContext);if(e===!0)this.currentCommands.push(t);else if(typeof e?.then=="function"){this.asyncPredicates.add(e),this.asyncPredicateRunning=!0;const i=await e;this.asyncPredicates.has(e)&&(this.asyncPredicates.delete(e),this.asyncPredicateRunning=this.asyncPredicates.size>0,i===!0&&this.currentCommands.push(t))}}else this.currentCommands.push(t)}),this.currentCommands.push(...this.contextCommands),this.contextCommands=[]},getDefaultCommands({objects:t=[],state:e=this.$viewer.state,context:i=null}){const o=new Map;return i&&this.$viewer.shortcutManager.getShortcuts(i).forEach(r=>o.set(r.name,r.key)),HPi({contextMenu:this,objects:t,state:e,pictos:o})},executeCommand(t){if(t.execute&&(t.execute(this.originEvent),this.displayed=!1),t.component&&!t.menu)throw new Error("Command with component property must have a `menu` property")},away(){this.displayed=!1},groupCurrentCommands(){const t=new Map;this.currentCommands.forEach(i=>{(i.group===null||i.group===void 0)&&(i.group=0),t.has(i.group)?t.get(i.group).push(i):t.set(i.group,[i])}),t.forEach(i=>i.sort((o,r)=>(o.position=o.position||0,r.position=r.position||0,o.position-r.position)));const e=[...t.keys()].sort((i,o)=>i-o).map(i=>t.get(i)).flat();this.currentCommands=e},isGroupIntersection(t){if(t===0)return!1;const e=this.currentCommands[t-1],i=this.currentCommands[t];return e.group<i.group},registerContextCommand(t){const e=this.typeCheckCommand(t);return this.contextCommands.push(e),t.id},registerCommand(t){const e=this.typeCheckCommand(t);return this.registeredCommands.push(e),t.id},unregisterCommand(t){return this.registeredCommands.find(e=>e.id===t)?(this.registeredCommands=this.registeredCommands.filter(e=>e.id!==t),!0):!1},preventDefault(){this.defaultPrevented=!0}}},ZPi={key:0,class:"separator"},JPi={class:"menu-text"},WPi={key:1,class:"menu-picto"},KPi={key:0,class:"context-menu__spinner"};function _Pi(t,e,i,o,r,n){const s=z("BIMDataIconChevron"),a=z("LiWrapper"),l=z("BIMDataSpinner"),c=Hi("click-away");return r.displayed&&(r.currentCommands.length||r.asyncPredicateRunning)?kt((N(),U("ul",{key:0,class:"bimdata-list context-menu",style:Se(n.position)},[(N(!0),U(Mt,null,ii(r.currentCommands,(u,d)=>(N(),oe(a,{key:u.label,class:"context-menu__element",onClick:h=>n.executeCommand(u)},{default:J(()=>[n.isGroupIntersection(d)?(N(),U("div",ZPi)):xe("",!0),v("div",JPi,X(u.label),1),!u.component&&u.picto?(N(),U("span",WPi,X(u.picto),1)):u.component?(N(),oe(s,{key:2,size:"xxs",class:"fill-primary"})):xe("",!0)]),_:2},1032,["onClick"]))),128)),r.asyncPredicateRunning?(N(),U("li",KPi,[O(l)])):xe("",!0)],4)),[[c,n.away]]):xe("",!0)}const qPi=W(VPi,[["render",_Pi],["__scopeId","data-v-5b87d4a3"]]),XPi={name:"ViewerHeader",inject:["$viewer"],props:{visible:{type:Boolean,default:!0}},setup(){const t=Ut("$viewer"),e=rl(new Map),i=r=>{if(!r.name)throw new TypeError("[Viewer Header] Content must have a name");if(e.has(r.name))throw new Error(`[Viewer Header] Content with name ${r.name} already exists`);e.set(r.name,r)},o=r=>e.has(r)?(e.delete(r),!0):!1;return{logo:t.uiSettings.bimdataLogo!==!1,version:t.uiSettings.version!==!1?t.version:null,headerContent:e,headerRightContentComponents:At(()=>Array.from(e.values()).filter(r=>r.position==="right").sort((r,n)=>r.order-n.order).map(r=>r.component)),headerLeftContentComponents:At(()=>Array.from(e.values()).filter(r=>r.position==="left").sort((r,n)=>r.order-n.order).map(r=>r.component)),addContent:i,removeContent:o}}},$Pi={class:"viewer-header"},eBi={class:"viewer-header__content"},tBi={class:"viewer-header__content__left"},iBi={class:"viewer-header__content__right"},oBi={key:0,class:"m-l-6 flex items-center"},rBi={key:1,class:"viewer-header__version"};function sBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return kt((N(),U("div",$Pi,[v("div",eBi,[v("div",tBi,[(N(!0),U(Mt,null,ii(o.headerLeftContentComponents,a=>(N(),oe(Er(a),{key:a.name}))),128))]),v("div",iBi,[(N(!0),U(Mt,null,ii(o.headerRightContentComponents,a=>(N(),oe(Er(a),{key:a.name}))),128))])]),o.logo||o.version?(N(),U("div",oBi,[o.logo?(N(),oe(s,{key:0,name:"logo",width:"30px",height:"30px"})):xe("",!0),o.version?(N(),U("div",rBi,X(o.version),1)):xe("",!0)])):xe("",!0)],512)),[[Ai,i.visible]])}const nBi=W(XPi,[["render",sBi],["__scopeId","data-v-5c9ea6b6"]]),aBi={name:"BimdataViewer",components:{ContextMenu:qPi,ViewerHeader:nBi,ModalManager:Whe},setup(){const t=Ut("$viewer"),{globalContext:e,shortcutManager:i}=t;Oo(()=>{i&&i.destroy(),e.hub.clear()}),lo(()=>{t.pluginManager.runPluginsScripts(t)});const o=At(()=>{var d;return t.uiSettings.bimdataLogo!==!1&&(e.localContexts.length!==1||((d=e.localContexts[0].window)==null?void 0:d.logoAndVersion))}),r=At(()=>{var d;return t.uiSettings.version!==!1&&(e.localContexts.length!==1||(d=e.localContexts[0].window)!=null&&d.logoAndVersion)?t.version:null}),n=At(()=>{var d,h;return t.uiSettings.header!==!1&&!(e.localContexts.length===1&&((h=(d=e.localContexts[0])==null?void 0:d.window)==null?void 0:h.header)===!1)}),s=t.uiSettings.contextMenu!==!1,a=Qe(null);function l(d){s&&a.value.open(d)}function c(){t.shortcutManager.active=!0}function u(){t.shortcutManager.active=!1}return{Layout:t.layout.areas.component,onContextMenu:l,onMouseenter:c,onMouseleave:u,isHeaderVisible:n,viewerTemplateRef:e.templateRef,modalManagerTemplateRef:e.modalManagerTemplateRef,headerTemplateRef:e.headerTemplateRef,contextMenuTemplateRef:a,contextMenuEnabled:s,bimdataLogoOnSingleWindow:o,viewerVersionOnSingleWindow:r,version:t.version,loading:At(()=>e.loading),spinner:At(()=>e.spinner)}}},lBi={key:1,class:"global-spinner",style:{"z-index":"3"}},cBi={key:2,class:"viewer__logo"},uBi={key:1,class:"version m-t-6"};function dBi(t,e,i,o,r,n){const s=z("ModalManager"),a=z("ContextMenu"),l=z("ViewerHeader"),c=z("BIMDataSpinner"),u=z("BIMDataIllustration");return N(),U("div",{id:"bimdata-viewer",ref:"viewerTemplateRef",class:"bimdata-viewer bimdata-scrollbar",onContextmenu:e[0]||(e[0]=(...d)=>o.onContextMenu&&o.onContextMenu(...d)),onMouseenter:e[1]||(e[1]=(...d)=>o.onMouseenter&&o.onMouseenter(...d)),onMouseleave:e[2]||(e[2]=(...d)=>o.onMouseleave&&o.onMouseleave(...d))},[O(s,{ref:"modalManagerTemplateRef"},null,512),o.contextMenuEnabled?(N(),oe(a,{key:0,ref:"contextMenuTemplateRef"},null,512)):xe("",!0),O(l,{ref:"headerTemplateRef",visible:o.isHeaderVisible},null,8,["visible"]),(N(),oe(Er(o.Layout),{style:Se(o.isHeaderVisible?"height: calc(100% - var(--bimdata-viewer-header-height, 40px))":"height: 100%")},null,8,["style"])),o.loading?(N(),U("div",lBi,[o.spinner&&o.spinner.component?(N(),oe(Er(o.spinner.component),Pu(nl({key:0},o.spinner.props)),null,16)):(N(),oe(c,{key:1,size:"40px",border:"5px"}))])):xe("",!0),!o.isHeaderVisible&&(o.bimdataLogoOnSingleWindow||o.viewerVersionOnSingleWindow)?(N(),U("div",cBi,[o.bimdataLogoOnSingleWindow?(N(),oe(u,{key:0,name:"logo"})):xe("",!0),o.viewerVersionOnSingleWindow?(N(),U("div",uBi,X(o.version),1)):xe("",!0)])):xe("",!0)],544)}const hBi=W(aBi,[["render",dBi]]),pBi=["src"],ABi={class:"bimdata-models__header"},gBi={key:0,class:"bimdata-models__header__loader"},MBi={class:"bimdata-models__header__picto"},fBi={class:"bimdata-models__header__name"},wBi={key:0,class:"bimdata-models__header__name--empty"},LBi={key:1,class:"bimdata-models__header__name--empty"},mBi={key:3},yBi=["onMousemove","onClick"],e0e={__name:"Models",props:{preview:{type:Boolean,default:!1},windowPositioning:{type:Boolean,default:!0},customFilter:{type:Function,default:null},width:{type:String,default:"350px"}},setup(t){const e=t,i=Ut("$viewer"),o=Qe(),r=Qe(0),n=Qe(0),s=Qe(),a=mr([]),l=Qe(!1),c=At(()=>i.localContext.loadedModels),u=At(()=>i.localContext.loadedModelIds),d=At(()=>i.localContext.loadingModelIds),h=At(()=>i.localContext.multiModel),p=At(()=>(e.customFilter?a.value.filter(e.customFilter):a.value).map(I=>c.value.find(j=>{var b;return((b=j.document)==null?void 0:b.head_id)!=null&&j.document.head_id===I.document.id})??I)),g=I=>u.value.includes(I),A=I=>d.value.includes(I),M=At(()=>{var I;const{x:j,y:b}=((I=s.value)==null?void 0:I.getBoundingClientRect())??{x:0,y:0};return`top:${n.value-b}px; left:${r.value-j}px;`}),f=I=>{!h.value&&g(I.id)||d.value.length>0||(i.localContext.loadedModelIds.includes(I.id)?i.localContext.unloadModels([I.id]):i.localContext.loadModels([I.id]))},L=I=>{switch(I){case"C":return"success";case"E":return"failed";case"P":case"I":return"sandglass"}},w=(I,j)=>{I!=null&&I.viewer_360_file&&(r.value=j.clientX,n.value=j.clientY),o.value=I?.viewer_360_file},m=async I=>{l.value=!0;try{return(await i.api.apiClient.modelApi.getModels(i.api.cloudId,i.api.projectId,void 0,void 0,I)).filter(j=>i.state.models.some(b=>b.archived)||!j.archived).sort(Zh("updated_at",!1))}catch(j){console.error("[Models] Cannot get project models. Error: ",j)}finally{l.value=!1}return[]},C=I=>{var j;return((j=I.children)==null?void 0:j.some(b=>g(b.id)))??!1};return m(i.localContext.modelTypes).then(I=>{a.value=I}),(I,j)=>{const b=z("BIMDataSpinner"),k=z("BIMDataIconModel3D"),P=z("BIMDataTextbox"),S=z("BIMDataCheckbox"),T=z("BIMDataRadio"),R=z("BIMDataIcon"),Y=z("BIMDataDropdownList");return N(),U("div",{ref_key:"templateRef",ref:s,class:Ne(["bimdata-models",{"bimdata-models--window-positioning":t.windowPositioning}])},[o.value?(N(),U("div",{key:0,class:"bimdata-models__preview",style:Se(M.value)},[v("img",{src:o.value},null,8,pBi)],4)):xe("",!0),O(Y,{style:Se(`--bimdata-models-width: ${t.width};`),width:t.width,list:p.value,"element-key":"id","per-page":40,loading:l.value,class:"bimdata-models__list",disabled:p.value.length===0,onElementClick:f},{header:J(({isOpen:Z})=>[v("div",ABi,[l.value||d.value.length>0?(N(),U("div",gBi,[O(b)])):(N(),U(Mt,{key:1},[v("div",MBi,[O(k)]),v("div",{class:Ne(["bimdata-models__header__number bimdata-info-length",{"bimdata-models__header__number--empty":u.value.length===0}])},[v("span",null,X(u.value.length),1)],2),v("div",fBi,[p.value.length===0?(N(),U("span",wBi,X(I.$t("model.no_model")),1)):u.value.length===0?(N(),U("span",LBi,X(I.$t("model.no_loaded_model")),1)):u.value.length===1?(N(),oe(P,{key:2,text:c.value[0].name,tooltip:!Z},null,8,["text","tooltip"])):u.value.length>1?(N(),U("span",mBi,X(I.$t("model.selected_models")),1)):xe("",!0)])],64))])]),element:J(({element:Z,close:G})=>[v("div",{class:"bimdata-models__model",onMousemove:_=>t.preview&&w(Z,_),onMouseout:j[0]||(j[0]=_=>t.preview&&w()),onClick:()=>{!h.value&&!g(Z.id)&&G()}},[h.value?(N(),oe(S,{key:0,"model-value":g(Z.id)||C(Z),disabled:Z.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])):(N(),oe(T,{key:1,"model-value":g(Z.id)||C(Z),disabled:Z.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])),O(R,{margin:"0 calc(var(--spacing-unit) / 2)",name:L(Z.status),size:"xs",class:Ne({"fill-success":Z.status==="C","fill-high":Z.status==="E"})},null,8,["name","class"]),O(P,{class:Ne({"bimdata-models__model__name":!0,"bimdata-models__model__name--disabled":Z.status!=="C"||d.value.length>0}),text:Z.name,width:`calc(100% -
|
|
1871
|
+
${h.value?13:23}px - 2 * 6px - 16px)`},null,8,["class","text","width"]),Z.document&&!Z.document.is_head_version?(N(),oe(R,{key:2,name:"versioning",fill:"",color:"default",size:"xs",margin:"0 0 0 6px"})):xe("",!0)],40,yBi),A(Z.id)?(N(),oe(b,{key:0,class:"bimdata-models__model__spinner"})):xe("",!0)]),_:1},8,["style","width","list","loading","disabled"])],2)}}},vBi={data(){return{shown:!1}},mounted(){setTimeout(()=>{this.shown=!0},500)}};function CBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return N(),U("div",{class:"bimdata__no-model",style:Se({"--no-model--opacity":r.shown?1:0})},[O(s,{name:"emptyViewer",x:"90",y:"90"}),v("span",null,X(t.$t("model.select_model")),1)],4)}const t0e=W(vBi,[["render",CBi],["__scopeId","data-v-54b49e82"]]);window.BIMDataViewerVue=_Q;class IBi{constructor(e={}){var i,o;const{api:r={},ui:n}=e;this.uiCfg=n,r.apiUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `apiUrl` not set, use 'https://api.bimdata.io' by default."),r.apiUrl="https://api.bimdata.io"),r.archiveUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `archiveUrl` not set, use 'https://archive.bimdata.io' by default."),r.archiveUrl="https://archive.bimdata.io"),r.ifcIds&&(console.warn("[BIMData Viewer] DEPRECATED - Viewer config - please use the `modelIds` property instead of `ifcIds`."),r.modelIds===void 0&&(r.modelIds=r.ifcIds)),r.modelIds||(r.modelIds=[]),(i=r.offline)!=null&&i.dataFile&&(r.offline.data=r.offline.dataFile),this.$viewer=new rPi(e),(o=r.offline)!=null&&o.enabled?this.$viewer.api.enableOfflineMode(r.offline.data,r.offline.options).then(()=>this.state.loadModels(r.modelIds)):(this.$viewer.globalContext.loadingProcessStart(),this.state.loadModels(r.modelIds).finally(()=>this.$viewer.globalContext.loadingProcessEnd())),this.vueApp=null}get state(){return this.$viewer.state}get api(){return this.$viewer.api}async mount(e,i="3d"){var o;const{$viewer:r}=this;await r.api.ready;try{const d=await r.api.apiClient.collaborationApi.checkProjectAccess(r.api.cloudId,r.api.projectId);r.api.permissions=$he(d)}catch{r.api.permissions=$he()}const n=this.api.accessToken,{i18n:s}=r;s.registerTranslations(r.pluginManager.pluginTranslations),r.layout.apply(i);const a={i18n:s.i18nVuePlugin,data(){return{accessToken:n}},render(){return Vi(hBi,{style:"height: 100%"})}},l=dN(a).use(s.i18nVuePlugin).use(YPi()).use(RPi({i18nPlugin:s.i18nVuePlugin})).use(LPi({apiClient:r.api.apiClient,i18nPlugin:s.i18nVuePlugin}));l.provide("$viewer",r),l.component("BIMDataModelLoader",e0e),l.component("BIMDataNoModelWindowPlaceHolder",t0e),l.component("BIMDataStoreySelector",d7),l.component("ModelsLoader",e0e),l.component("NoModelWindowPlaceHolder",t0e);const c=e instanceof HTMLElement?e:document.querySelector(e);c&&(c.style.height="100%");const u=l.mount(e);return u.$viewer=r,sPi(u.$el,(o=this.uiCfg)==null?void 0:o.style),typeof window<"u"&&(window.bimdataViewer=u),this.vueApp=l,u}destroy(){var e;(e=this.vueApp)==null||e.unmount()}setLocale(e){if(!pG.includes(e))throw new Error(`Viewer available locales are ${pG.join(", ")}.`);this.$viewer.i18n.locale=e}registerPlugin(e){this.$viewer.registerPlugin(e)}registerWindow(e){return this.$viewer.windowManager.registerWindow(e)}unregisterWindow(e){return this.$viewer.windowManager.unregisterWindow(e)}setAccessToken(e){this.api.accessToken=e}async loadModels(e){this.$viewer.globalContext.loadingProcessStart();const i=await this.state.loadModels(e);return this.$viewer.globalContext.loadingProcessEnd(),i}loadIfcs(e){return console.warn("[BIMData Viewer] DEPRECATED - Viewer - please use the loadModels method instead of loadIfcs."),this.loadModels(e)}}const i0e=(t={})=>new IBi(t);window.makeBIMDataViewer=i0e;/*! @license DOMPurify 2.5.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.5/LICENSE */function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Qz(t,e){return Qz=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},Qz(t,e)}function jBi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ax(t,e,i){return jBi()?ax=Reflect.construct:ax=function(o,r,n){var s=[null];s.push.apply(s,r);var a=Function.bind.apply(o,s),l=new a;return n&&Qz(l,n.prototype),l},ax.apply(null,arguments)}function Mc(t){return bBi(t)||xBi(t)||DBi(t)||NBi()}function bBi(t){if(Array.isArray(t))return Gz(t)}function xBi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DBi(t,e){if(t){if(typeof t=="string")return Gz(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Gz(t,e)}}function Gz(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o}function NBi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1872
1872
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var SBi=Object.hasOwnProperty,o0e=Object.setPrototypeOf,TBi=Object.isFrozen,kBi=Object.getPrototypeOf,EBi=Object.getOwnPropertyDescriptor,Fn=Object.freeze,Il=Object.seal,zBi=Object.create,r0e=typeof Reflect<"u"&&Reflect,lx=r0e.apply,Hz=r0e.construct;lx||(lx=function(t,e,i){return t.apply(e,i)}),Fn||(Fn=function(t){return t}),Il||(Il=function(t){return t}),Hz||(Hz=function(t,e){return ax(t,Mc(e))});var PBi=jl(Array.prototype.forEach),s0e=jl(Array.prototype.pop),sv=jl(Array.prototype.push),cx=jl(String.prototype.toLowerCase),Vz=jl(String.prototype.toString),n0e=jl(String.prototype.match),fc=jl(String.prototype.replace),BBi=jl(String.prototype.indexOf),OBi=jl(String.prototype.trim),Js=jl(RegExp.prototype.test),Zz=RBi(TypeError);function jl(t){return function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return lx(t,e,o)}}function RBi(t){return function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return Hz(t,i)}}function Ui(t,e,i){var o;i=(o=i)!==null&&o!==void 0?o:cx,o0e&&o0e(t,null);for(var r=e.length;r--;){var n=e[r];if(typeof n=="string"){var s=i(n);s!==n&&(TBi(e)||(e[r]=s),n=s)}t[n]=!0}return t}function o1(t){var e=zBi(null),i;for(i in t)lx(SBi,t,[i])===!0&&(e[i]=t[i]);return e}function ux(t,e){for(;t!==null;){var i=EBi(t,e);if(i){if(i.get)return jl(i.get);if(typeof i.value=="function")return jl(i.value)}t=kBi(t)}function o(r){return console.warn("fallback value for",r),null}return o}var a0e=Fn(["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"]),Jz=Fn(["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"]),Wz=Fn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),UBi=Fn(["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"]),Kz=Fn(["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"]),FBi=Fn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),l0e=Fn(["#text"]),c0e=Fn(["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=Fn(["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"]),u0e=Fn(["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"]),dx=Fn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YBi=Il(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QBi=Il(/<%[\w\W]*|[\w\W]*%>/gm),GBi=Il(/\${[\w\W]*}/gm),HBi=Il(/^data-[\-\w.\u00B7-\uFFFF]/),VBi=Il(/^aria-[\-\w]+$/),ZBi=Il(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JBi=Il(/^(?:\w+script|data):/i),WBi=Il(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),KBi=Il(/^html$/i),_Bi=Il(/^[a-z][.\w]*(-[.\w]+)+$/i),qBi=function(){return typeof window>"u"?null:window},XBi=function(t,e){if(H0(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(o)&&(i=e.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(n){return n},createScriptURL:function(n){return n}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function d0e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qBi(),e=function(Ye){return d0e(Ye)};if(e.version="2.5.5",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var i=t.document,o=t.document,r=t.DocumentFragment,n=t.HTMLTemplateElement,s=t.Node,a=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,d=t.HTMLFormElement,h=t.DOMParser,p=t.trustedTypes,g=a.prototype,A=ux(g,"cloneNode"),M=ux(g,"nextSibling"),f=ux(g,"childNodes"),L=ux(g,"parentNode");if(typeof n=="function"){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var m=XBi(p,i),C=m?m.createHTML(""):"",I=o,j=I.implementation,b=I.createNodeIterator,k=I.createDocumentFragment,P=I.getElementsByTagName,S=i.importNode,T={};try{T=o1(o).documentMode?o.documentMode:{}}catch{}var R={};e.isSupported=typeof L=="function"&&j&&j.createHTMLDocument!==void 0&&T!==9;var Y=YBi,Z=QBi,G=GBi,_=HBi,ee=VBi,ue=JBi,de=WBi,Ee=_Bi,V=ZBi,ie=null,he=Ui({},[].concat(Mc(a0e),Mc(Jz),Mc(Wz),Mc(Kz),Mc(l0e))),te=null,ae=Ui({},[].concat(Mc(c0e),Mc(_z),Mc(u0e),Mc(dx))),fe=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}})),Ce=null,je=null,Oe=!0,Fe=!0,We=!1,ce=!0,Le=!1,Me=!0,se=!1,Ie=!1,De=!1,be=!1,q=!1,$=!1,ye=!0,ke=!1,we="user-content-",Pe=!0,Be=!1,Ze={},wt=null,at=Ui({},["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"]),rt=null,ht=Ui({},["audio","video","img","source","image","track"]),ut=null,Ft=Ui({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",st=Je,Xe=!1,St=null,It=Ui({},[Ve,et,Je],Vz),Vt,Bt=["application/xhtml+xml","text/html"],ft="text/html",Tt,Et=null,Pi=o.createElement("form"),Zi=function(Ye){return Ye instanceof RegExp||Ye instanceof Function},wi=function(Ye){Et&&Et===Ye||((!Ye||H0(Ye)!=="object")&&(Ye={}),Ye=o1(Ye),Vt=Bt.indexOf(Ye.PARSER_MEDIA_TYPE)===-1?Vt=ft:Vt=Ye.PARSER_MEDIA_TYPE,Tt=Vt==="application/xhtml+xml"?Vz:cx,ie="ALLOWED_TAGS"in Ye?Ui({},Ye.ALLOWED_TAGS,Tt):he,te="ALLOWED_ATTR"in Ye?Ui({},Ye.ALLOWED_ATTR,Tt):ae,St="ALLOWED_NAMESPACES"in Ye?Ui({},Ye.ALLOWED_NAMESPACES,Vz):It,ut="ADD_URI_SAFE_ATTR"in Ye?Ui(o1(Ft),Ye.ADD_URI_SAFE_ATTR,Tt):Ft,rt="ADD_DATA_URI_TAGS"in Ye?Ui(o1(ht),Ye.ADD_DATA_URI_TAGS,Tt):ht,wt="FORBID_CONTENTS"in Ye?Ui({},Ye.FORBID_CONTENTS,Tt):at,Ce="FORBID_TAGS"in Ye?Ui({},Ye.FORBID_TAGS,Tt):{},je="FORBID_ATTR"in Ye?Ui({},Ye.FORBID_ATTR,Tt):{},Ze="USE_PROFILES"in Ye?Ye.USE_PROFILES:!1,Oe=Ye.ALLOW_ARIA_ATTR!==!1,Fe=Ye.ALLOW_DATA_ATTR!==!1,We=Ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=Ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=Ye.SAFE_FOR_TEMPLATES||!1,Me=Ye.SAFE_FOR_XML!==!1,se=Ye.WHOLE_DOCUMENT||!1,be=Ye.RETURN_DOM||!1,q=Ye.RETURN_DOM_FRAGMENT||!1,$=Ye.RETURN_TRUSTED_TYPE||!1,De=Ye.FORCE_BODY||!1,ye=Ye.SANITIZE_DOM!==!1,ke=Ye.SANITIZE_NAMED_PROPS||!1,Pe=Ye.KEEP_CONTENT!==!1,Be=Ye.IN_PLACE||!1,V=Ye.ALLOWED_URI_REGEXP||V,st=Ye.NAMESPACE||Je,fe=Ye.CUSTOM_ELEMENT_HANDLING||{},Ye.CUSTOM_ELEMENT_HANDLING&&Zi(Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&Zi(Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&typeof Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Fe=!1),q&&(be=!0),Ze&&(ie=Ui({},Mc(l0e)),te=[],Ze.html===!0&&(Ui(ie,a0e),Ui(te,c0e)),Ze.svg===!0&&(Ui(ie,Jz),Ui(te,_z),Ui(te,dx)),Ze.svgFilters===!0&&(Ui(ie,Wz),Ui(te,_z),Ui(te,dx)),Ze.mathMl===!0&&(Ui(ie,Kz),Ui(te,u0e),Ui(te,dx))),Ye.ADD_TAGS&&(ie===he&&(ie=o1(ie)),Ui(ie,Ye.ADD_TAGS,Tt)),Ye.ADD_ATTR&&(te===ae&&(te=o1(te)),Ui(te,Ye.ADD_ATTR,Tt)),Ye.ADD_URI_SAFE_ATTR&&Ui(ut,Ye.ADD_URI_SAFE_ATTR,Tt),Ye.FORBID_CONTENTS&&(wt===at&&(wt=o1(wt)),Ui(wt,Ye.FORBID_CONTENTS,Tt)),Pe&&(ie["#text"]=!0),se&&Ui(ie,["html","head","body"]),ie.table&&(Ui(ie,["tbody"]),delete Ce.tbody),Fn&&Fn(Ye),Et=Ye)},Zo=Ui({},["mi","mo","mn","ms","mtext"]),Wt=Ui({},["foreignobject","annotation-xml"]),Es=Ui({},["title","style","font","a","script"]),gr=Ui({},Jz);Ui(gr,Wz),Ui(gr,UBi);var vo=Ui({},Kz);Ui(vo,FBi);var zo=function(Ye){var Yt=L(Ye);(!Yt||!Yt.tagName)&&(Yt={namespaceURI:st,tagName:"template"});var Nt=cx(Ye.tagName),Fi=cx(Yt.tagName);return St[Ye.namespaceURI]?Ye.namespaceURI===et?Yt.namespaceURI===Je?Nt==="svg":Yt.namespaceURI===Ve?Nt==="svg"&&(Fi==="annotation-xml"||Zo[Fi]):!!gr[Nt]:Ye.namespaceURI===Ve?Yt.namespaceURI===Je?Nt==="math":Yt.namespaceURI===et?Nt==="math"&&Wt[Fi]:!!vo[Nt]:Ye.namespaceURI===Je?Yt.namespaceURI===et&&!Wt[Fi]||Yt.namespaceURI===Ve&&!Zo[Fi]?!1:!vo[Nt]&&(Es[Nt]||!gr[Nt]):!!(Vt==="application/xhtml+xml"&&St[Ye.namespaceURI]):!1},go=function(Ye){sv(e.removed,{element:Ye});try{Ye.parentNode.removeChild(Ye)}catch{try{Ye.outerHTML=C}catch{Ye.remove()}}},Xo=function(Ye,Yt){try{sv(e.removed,{attribute:Yt.getAttributeNode(Ye),from:Yt})}catch{sv(e.removed,{attribute:null,from:Yt})}if(Yt.removeAttribute(Ye),Ye==="is"&&!te[Ye])if(be||q)try{go(Yt)}catch{}else try{Yt.setAttribute(Ye,"")}catch{}},Va=function(Ye){var Yt,Nt;if(De)Ye="<remove></remove>"+Ye;else{var Fi=n0e(Ye,/^[\r\n\t ]+/);Nt=Fi&&Fi[0]}Vt==="application/xhtml+xml"&&st===Je&&(Ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ye+"</body></html>");var Po=m?m.createHTML(Ye):Ye;if(st===Je)try{Yt=new h().parseFromString(Po,Vt)}catch{}if(!Yt||!Yt.documentElement){Yt=j.createDocument(st,"template",null);try{Yt.documentElement.innerHTML=Xe?C:Po}catch{}}var os=Yt.body||Yt.documentElement;return Ye&&Nt&&os.insertBefore(o.createTextNode(Nt),os.childNodes[0]||null),st===Je?P.call(Yt,se?"html":"body")[0]:se?Yt.documentElement:os},fn=function(Ye){return b.call(Ye.ownerDocument||Ye,Ye,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null,!1)},zs=function(Ye){return Ye instanceof d&&(typeof Ye.nodeName!="string"||typeof Ye.textContent!="string"||typeof Ye.removeChild!="function"||!(Ye.attributes instanceof u)||typeof Ye.removeAttribute!="function"||typeof Ye.setAttribute!="function"||typeof Ye.namespaceURI!="string"||typeof Ye.insertBefore!="function"||typeof Ye.hasChildNodes!="function")},lr=function(Ye){return H0(s)==="object"?Ye instanceof s:Ye&&H0(Ye)==="object"&&typeof Ye.nodeType=="number"&&typeof Ye.nodeName=="string"},cr=function(Ye,Yt,Nt){R[Ye]&&PBi(R[Ye],function(Fi){Fi.call(e,Yt,Nt,Et)})},Ks=function(Ye){var Yt;if(cr("beforeSanitizeElements",Ye,null),zs(Ye)||Js(/[\u0080-\uFFFF]/,Ye.nodeName))return go(Ye),!0;var Nt=Tt(Ye.nodeName);if(cr("uponSanitizeElement",Ye,{tagName:Nt,allowedTags:ie}),Ye.hasChildNodes()&&!lr(Ye.firstElementChild)&&(!lr(Ye.content)||!lr(Ye.content.firstElementChild))&&Js(/<[/\w]/g,Ye.innerHTML)&&Js(/<[/\w]/g,Ye.textContent)||Nt==="select"&&Js(/<template/i,Ye.innerHTML)||Ye.nodeType===7||Me&&Ye.nodeType===8&&Js(/<[/\w]/g,Ye.data))return go(Ye),!0;if(!ie[Nt]||Ce[Nt]){if(!Ce[Nt]&&_s(Nt)&&(fe.tagNameCheck instanceof RegExp&&Js(fe.tagNameCheck,Nt)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Nt)))return!1;if(Pe&&!wt[Nt]){var Fi=L(Ye)||Ye.parentNode,Po=f(Ye)||Ye.childNodes;if(Po&&Fi)for(var os=Po.length,xo=os-1;xo>=0;--xo){var wn=A(Po[xo],!0);wn.__removalCount=(Ye.__removalCount||0)+1,Fi.insertBefore(wn,M(Ye))}}return go(Ye),!0}return Ye instanceof a&&!zo(Ye)||(Nt==="noscript"||Nt==="noembed"||Nt==="noframes")&&Js(/<\/no(script|embed|frames)/i,Ye.innerHTML)?(go(Ye),!0):(Le&&Ye.nodeType===3&&(Yt=Ye.textContent,Yt=fc(Yt,Y," "),Yt=fc(Yt,Z," "),Yt=fc(Yt,G," "),Ye.textContent!==Yt&&(sv(e.removed,{element:Ye.cloneNode()}),Ye.textContent=Yt)),cr("afterSanitizeElements",Ye,null),!1)},fs=function(Ye,Yt,Nt){if(ye&&(Yt==="id"||Yt==="name")&&(Nt in o||Nt in Pi))return!1;if(!(Fe&&!je[Yt]&&Js(_,Yt))&&!(Oe&&Js(ee,Yt))){if(!te[Yt]||je[Yt]){if(!(_s(Ye)&&(fe.tagNameCheck instanceof RegExp&&Js(fe.tagNameCheck,Ye)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Ye))&&(fe.attributeNameCheck instanceof RegExp&&Js(fe.attributeNameCheck,Yt)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(Yt))||Yt==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&Js(fe.tagNameCheck,Nt)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(Nt))))return!1}else if(!ut[Yt]&&!Js(V,fc(Nt,de,""))&&!((Yt==="src"||Yt==="xlink:href"||Yt==="href")&&Ye!=="script"&&BBi(Nt,"data:")===0&&rt[Ye])&&!(We&&!Js(ue,fc(Nt,de,"")))&&Nt)return!1}return!0},_s=function(Ye){return Ye!=="annotation-xml"&&n0e(Ye,Ee)},qs=function(Ye){var Yt,Nt,Fi,Po;cr("beforeSanitizeAttributes",Ye,null);var os=Ye.attributes;if(os){var xo={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te};for(Po=os.length;Po--;){Yt=os[Po];var wn=Yt,rs=wn.name,Mr=wn.namespaceURI;if(Nt=rs==="value"?Yt.value:OBi(Yt.value),Fi=Tt(rs),xo.attrName=Fi,xo.attrValue=Nt,xo.keepAttr=!0,xo.forceKeepAttr=void 0,cr("uponSanitizeAttribute",Ye,xo),Nt=xo.attrValue,!xo.forceKeepAttr&&(Xo(rs,Ye),!!xo.keepAttr)){if(!ce&&Js(/\/>/i,Nt)){Xo(rs,Ye);continue}if(Me&&Js(/((--!?|])>)|<\/(style|title)/i,Nt)){Xo(rs,Ye);continue}Le&&(Nt=fc(Nt,Y," "),Nt=fc(Nt,Z," "),Nt=fc(Nt,G," "));var Td=Tt(Ye.nodeName);if(fs(Td,Fi,Nt)){if(ke&&(Fi==="id"||Fi==="name")&&(Xo(rs,Ye),Nt=we+Nt),m&&H0(p)==="object"&&typeof p.getAttributeType=="function"&&!Mr)switch(p.getAttributeType(Td,Fi)){case"TrustedHTML":{Nt=m.createHTML(Nt);break}case"TrustedScriptURL":{Nt=m.createScriptURL(Nt);break}}try{Mr?Ye.setAttributeNS(Mr,rs,Nt):Ye.setAttribute(rs,Nt),zs(Ye)?go(Ye):s0e(e.removed)}catch{}}}}cr("afterSanitizeAttributes",Ye,null)}},Za=function Ye(Yt){var Nt,Fi=fn(Yt);for(cr("beforeSanitizeShadowDOM",Yt,null);Nt=Fi.nextNode();)cr("uponSanitizeShadowNode",Nt,null),!Ks(Nt)&&(Nt.content instanceof r&&Ye(Nt.content),qs(Nt));cr("afterSanitizeShadowDOM",Yt,null)};return e.sanitize=function(Ye){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nt,Fi,Po,os,xo;if(Xe=!Ye,Xe&&(Ye="<!-->"),typeof Ye!="string"&&!lr(Ye))if(typeof Ye.toString=="function"){if(Ye=Ye.toString(),typeof Ye!="string")throw Zz("dirty is not a string, aborting")}else throw Zz("toString is not a function");if(!e.isSupported){if(H0(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof Ye=="string")return t.toStaticHTML(Ye);if(lr(Ye))return t.toStaticHTML(Ye.outerHTML)}return Ye}if(Ie||wi(Yt),e.removed=[],typeof Ye=="string"&&(Be=!1),Be){if(Ye.nodeName){var wn=Tt(Ye.nodeName);if(!ie[wn]||Ce[wn])throw Zz("root node is forbidden and cannot be sanitized in-place")}}else if(Ye instanceof s)Nt=Va("<!---->"),Fi=Nt.ownerDocument.importNode(Ye,!0),Fi.nodeType===1&&Fi.nodeName==="BODY"||Fi.nodeName==="HTML"?Nt=Fi:Nt.appendChild(Fi);else{if(!be&&!Le&&!se&&Ye.indexOf("<")===-1)return m&&$?m.createHTML(Ye):Ye;if(Nt=Va(Ye),!Nt)return be?null:$?C:""}Nt&&De&&go(Nt.firstChild);for(var rs=fn(Be?Ye:Nt);Po=rs.nextNode();)Po.nodeType===3&&Po===os||Ks(Po)||(Po.content instanceof r&&Za(Po.content),qs(Po),os=Po);if(os=null,Be)return Ye;if(be){if(q)for(xo=k.call(Nt.ownerDocument);Nt.firstChild;)xo.appendChild(Nt.firstChild);else xo=Nt;return(te.shadowroot||te.shadowrootmod)&&(xo=S.call(i,xo,!0)),xo}var Mr=se?Nt.outerHTML:Nt.innerHTML;return se&&ie["!doctype"]&&Nt.ownerDocument&&Nt.ownerDocument.doctype&&Nt.ownerDocument.doctype.name&&Js(KBi,Nt.ownerDocument.doctype.name)&&(Mr="<!DOCTYPE "+Nt.ownerDocument.doctype.name+`>
|
|
1873
1873
|
`+Mr),Le&&(Mr=fc(Mr,Y," "),Mr=fc(Mr,Z," "),Mr=fc(Mr,G," ")),m&&$?m.createHTML(Mr):Mr},e.setConfig=function(Ye){wi(Ye),Ie=!0},e.clearConfig=function(){Et=null,Ie=!1},e.isValidAttribute=function(Ye,Yt,Nt){Et||wi({});var Fi=Tt(Ye),Po=Tt(Yt);return fs(Fi,Po,Nt)},e.addHook=function(Ye,Yt){typeof Yt=="function"&&(R[Ye]=R[Ye]||[],sv(R[Ye],Yt))},e.removeHook=function(Ye){if(R[Ye])return s0e(R[Ye])},e.removeHooks=function(Ye){R[Ye]&&(R[Ye]=[])},e.removeAllHooks=function(){R={}},e}var $Bi=d0e();const eOi=Object.freeze(Object.defineProperty({__proto__:null,default:$Bi},Symbol.toStringTag,{value:"Module"}));var nv=function(t){return t&&t.Math===Math&&t},Gr=nv(typeof globalThis=="object"&&globalThis)||nv(typeof window=="object"&&window)||nv(typeof self=="object"&&self)||nv(typeof dr=="object"&&dr)||nv(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")(),av={},Hr=function(t){try{return!!t()}catch{return!0}},tOi=Hr,wc=!tOi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),iOi=Hr,hx=!iOi(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),oOi=hx,px=Function.prototype.call,Ws=oOi?px.bind(px):function(){return px.apply(px,arguments)},h0e={},p0e={}.propertyIsEnumerable,A0e=Object.getOwnPropertyDescriptor,rOi=A0e&&!p0e.call({1:2},1);h0e.f=rOi?function(t){var e=A0e(this,t);return!!e&&e.enumerable}:p0e;var qz=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},g0e=hx,M0e=Function.prototype,Xz=M0e.call,sOi=g0e&&M0e.bind.bind(Xz,Xz),Vr=g0e?sOi:function(t){return function(){return Xz.apply(t,arguments)}},f0e=Vr,nOi=f0e({}.toString),aOi=f0e("".slice),r1=function(t){return aOi(nOi(t),8,-1)},lOi=Vr,cOi=Hr,uOi=r1,$z=Object,dOi=lOi("".split),w0e=cOi(function(){return!$z("z").propertyIsEnumerable(0)})?function(t){return uOi(t)==="String"?dOi(t,""):$z(t)}:$z,s1=function(t){return t==null},hOi=s1,pOi=TypeError,Lc=function(t){if(hOi(t))throw new pOi("Can't call method on "+t);return t},AOi=w0e,gOi=Lc,lv=function(t){return AOi(gOi(t))},eP=typeof document=="object"&&document.all,Zr=typeof eP>"u"&&eP!==void 0?function(t){return typeof t=="function"||t===eP}:function(t){return typeof t=="function"},MOi=Zr,mc=function(t){return typeof t=="object"?t!==null:MOi(t)},tP=Gr,fOi=Zr,wOi=function(t){return fOi(t)?t:void 0},n1=function(t,e){return arguments.length<2?wOi(tP[t]):tP[t]&&tP[t][e]},LOi=Vr,Ax=LOi({}.isPrototypeOf),gx=typeof navigator<"u"&&String(navigator.userAgent)||"",L0e=Gr,iP=gx,m0e=L0e.process,y0e=L0e.Deno,v0e=m0e&&m0e.versions||y0e&&y0e.version,C0e=v0e&&v0e.v8,yc,Mx;C0e&&(yc=C0e.split("."),Mx=yc[0]>0&&yc[0]<4?1:+(yc[0]+yc[1])),!Mx&&iP&&(yc=iP.match(/Edge\/(\d+)/),(!yc||yc[1]>=74)&&(yc=iP.match(/Chrome\/(\d+)/),yc&&(Mx=+yc[1])));var oP=Mx,I0e=oP,mOi=Hr,yOi=Gr,vOi=yOi.String,j0e=!!Object.getOwnPropertySymbols&&!mOi(function(){var t=Symbol("symbol detection");return!vOi(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&I0e&&I0e<41}),COi=j0e,b0e=COi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",IOi=n1,jOi=Zr,bOi=Ax,xOi=b0e,DOi=Object,x0e=xOi?function(t){return typeof t=="symbol"}:function(t){var e=IOi("Symbol");return jOi(e)&&bOi(e.prototype,DOi(t))},NOi=String,fx=function(t){try{return NOi(t)}catch{return"Object"}},SOi=Zr,TOi=fx,kOi=TypeError,yd=function(t){if(SOi(t))return t;throw new kOi(TOi(t)+" is not a function")},EOi=yd,zOi=s1,cf=function(t,e){var i=t[e];return zOi(i)?void 0:EOi(i)},rP=Ws,sP=Zr,nP=mc,POi=TypeError,BOi=function(t,e){var i,o;if(e==="string"&&sP(i=t.toString)&&!nP(o=rP(i,t))||sP(i=t.valueOf)&&!nP(o=rP(i,t))||e!=="string"&&sP(i=t.toString)&&!nP(o=rP(i,t)))return o;throw new POi("Can't convert object to primitive value")},D0e={exports:{}},N0e=Gr,OOi=Object.defineProperty,aP=function(t,e){try{OOi(N0e,t,{value:e,configurable:!0,writable:!0})}catch{N0e[t]=e}return e},ROi=Gr,UOi=aP,S0e="__core-js_shared__",T0e=D0e.exports=ROi[S0e]||UOi(S0e,{});(T0e.versions||(T0e.versions=[])).push({version:"3.37.1",mode:"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var lP=D0e.exports,k0e=lP,cP=function(t,e){return k0e[t]||(k0e[t]=e||{})},FOi=Lc,YOi=Object,wx=function(t){return YOi(FOi(t))},QOi=Vr,GOi=wx,HOi=QOi({}.hasOwnProperty),vc=Object.hasOwn||function(t,e){return HOi(GOi(t),e)},VOi=Vr,ZOi=0,JOi=Math.random(),WOi=VOi(1 .toString),E0e=function(t){return"Symbol("+(t===void 0?"":t)+")_"+WOi(++ZOi+JOi,36)},KOi=Gr,_Oi=cP,z0e=vc,qOi=E0e,XOi=j0e,$Oi=b0e,uf=KOi.Symbol,uP=_Oi("wks"),eRi=$Oi?uf.for||uf:uf&&uf.withoutSetter||qOi,Ts=function(t){return z0e(uP,t)||(uP[t]=XOi&&z0e(uf,t)?uf[t]:eRi("Symbol."+t)),uP[t]},tRi=Ws,P0e=mc,B0e=x0e,iRi=cf,oRi=BOi,rRi=Ts,sRi=TypeError,nRi=rRi("toPrimitive"),aRi=function(t,e){if(!P0e(t)||B0e(t))return t;var i=iRi(t,nRi),o;if(i){if(e===void 0&&(e="default"),o=tRi(i,t,e),!P0e(o)||B0e(o))return o;throw new sRi("Can't convert object to primitive value")}return e===void 0&&(e="number"),oRi(t,e)},lRi=aRi,cRi=x0e,O0e=function(t){var e=lRi(t,"string");return cRi(e)?e:e+""},uRi=Gr,R0e=mc,dP=uRi.document,dRi=R0e(dP)&&R0e(dP.createElement),Lx=function(t){return dRi?dP.createElement(t):{}},hRi=wc,pRi=Hr,ARi=Lx,U0e=!hRi&&!pRi(function(){return Object.defineProperty(ARi("div"),"a",{get:function(){return 7}}).a!==7}),gRi=wc,MRi=Ws,fRi=h0e,wRi=qz,LRi=lv,mRi=O0e,yRi=vc,vRi=U0e,F0e=Object.getOwnPropertyDescriptor;av.f=gRi?F0e:function(t,e){if(t=LRi(t),e=mRi(e),vRi)try{return F0e(t,e)}catch{}if(yRi(t,e))return wRi(!MRi(fRi.f,t,e),t[e])};var vd={},CRi=wc,IRi=Hr,Y0e=CRi&&IRi(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),jRi=mc,bRi=String,xRi=TypeError,Yn=function(t){if(jRi(t))return t;throw new xRi(bRi(t)+" is not an object")},DRi=wc,NRi=U0e,SRi=Y0e,mx=Yn,Q0e=O0e,TRi=TypeError,hP=Object.defineProperty,kRi=Object.getOwnPropertyDescriptor,pP="enumerable",AP="configurable",gP="writable";vd.f=DRi?SRi?function(t,e,i){if(mx(t),e=Q0e(e),mx(i),typeof t=="function"&&e==="prototype"&&"value"in i&&gP in i&&!i[gP]){var o=kRi(t,e);o&&o[gP]&&(t[e]=i.value,i={configurable:AP in i?i[AP]:o[AP],enumerable:pP in i?i[pP]:o[pP],writable:!1})}return hP(t,e,i)}:hP:function(t,e,i){if(mx(t),e=Q0e(e),mx(i),NRi)try{return hP(t,e,i)}catch{}if("get"in i||"set"in i)throw new TRi("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var ERi=wc,zRi=vd,PRi=qz,cv=ERi?function(t,e,i){return zRi.f(t,e,PRi(1,i))}:function(t,e,i){return t[e]=i,t},G0e={exports:{}},MP=wc,BRi=vc,H0e=Function.prototype,ORi=MP&&Object.getOwnPropertyDescriptor,fP=BRi(H0e,"name"),RRi=fP&&function(){}.name==="something",URi=fP&&(!MP||MP&&ORi(H0e,"name").configurable),yx={EXISTS:fP,PROPER:RRi,CONFIGURABLE:URi},FRi=Vr,YRi=Zr,wP=lP,QRi=FRi(Function.toString);YRi(wP.inspectSource)||(wP.inspectSource=function(t){return QRi(t)});var LP=wP.inspectSource,GRi=Gr,HRi=Zr,V0e=GRi.WeakMap,VRi=HRi(V0e)&&/native code/.test(String(V0e)),ZRi=cP,JRi=E0e,Z0e=ZRi("keys"),mP=function(t){return Z0e[t]||(Z0e[t]=JRi(t))},yP={},WRi=VRi,J0e=Gr,KRi=mc,_Ri=cv,vP=vc,CP=lP,qRi=mP,XRi=yP,W0e="Object already initialized",IP=J0e.TypeError,$Ri=J0e.WeakMap,vx,uv,Cx,eUi=function(t){return Cx(t)?uv(t):vx(t,{})},tUi=function(t){return function(e){var i;if(!KRi(e)||(i=uv(e)).type!==t)throw new IP("Incompatible receiver, "+t+" required");return i}};if(WRi||CP.state){var Au=CP.state||(CP.state=new $Ri);Au.get=Au.get,Au.has=Au.has,Au.set=Au.set,vx=function(t,e){if(Au.has(t))throw new IP(W0e);return e.facade=t,Au.set(t,e),e},uv=function(t){return Au.get(t)||{}},Cx=function(t){return Au.has(t)}}else{var df=qRi("state");XRi[df]=!0,vx=function(t,e){if(vP(t,df))throw new IP(W0e);return e.facade=t,_Ri(t,df,e),e},uv=function(t){return vP(t,df)?t[df]:{}},Cx=function(t){return vP(t,df)}}var Ix={set:vx,get:uv,has:Cx,enforce:eUi,getterFor:tUi},jP=Vr,iUi=Hr,oUi=Zr,jx=vc,bP=wc,rUi=yx.CONFIGURABLE,sUi=LP,K0e=Ix,nUi=K0e.enforce,aUi=K0e.get,_0e=String,bx=Object.defineProperty,lUi=jP("".slice),cUi=jP("".replace),uUi=jP([].join),dUi=bP&&!iUi(function(){return bx(function(){},"length",{value:8}).length!==8}),hUi=String(String).split("String"),pUi=G0e.exports=function(t,e,i){lUi(_0e(e),0,7)==="Symbol("&&(e="["+cUi(_0e(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!jx(t,"name")||rUi&&t.name!==e)&&(bP?bx(t,"name",{value:e,configurable:!0}):t.name=e),dUi&&i&&jx(i,"arity")&&t.length!==i.arity&&bx(t,"length",{value:i.arity});try{i&&jx(i,"constructor")&&i.constructor?bP&&bx(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var o=nUi(t);return jx(o,"source")||(o.source=uUi(hUi,typeof e=="string"?e:"")),t};Function.prototype.toString=pUi(function(){return oUi(this)&&aUi(this).source||sUi(this)},"toString");var q0e=G0e.exports,AUi=Zr,gUi=vd,MUi=q0e,fUi=aP,a1=function(t,e,i,o){o||(o={});var r=o.enumerable,n=o.name!==void 0?o.name:e;if(AUi(i)&&MUi(i,n,o),o.global)r?t[e]=i:fUi(e,i);else{try{o.unsafe?t[e]&&(r=!0):delete t[e]}catch{}r?t[e]=i:gUi.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t},X0e={},wUi=Math.ceil,LUi=Math.floor,mUi=Math.trunc||function(t){var e=+t;return(e>0?LUi:wUi)(e)},yUi=mUi,xx=function(t){var e=+t;return e!==e||e===0?0:yUi(e)},vUi=xx,CUi=Math.max,IUi=Math.min,jUi=function(t,e){var i=vUi(t);return i<0?CUi(i+e,0):IUi(i,e)},bUi=xx,xUi=Math.min,hf=function(t){var e=bUi(t);return e>0?xUi(e,9007199254740991):0},DUi=hf,xP=function(t){return DUi(t.length)},NUi=lv,SUi=jUi,TUi=xP,$0e=function(t){return function(e,i,o){var r=NUi(e),n=TUi(r);if(n===0)return!t&&-1;var s=SUi(o,n),a;if(t&&i!==i){for(;n>s;)if(a=r[s++],a!==a)return!0}else for(;n>s;s++)if((t||s in r)&&r[s]===i)return t||s||0;return!t&&-1}},epe={includes:$0e(!0),indexOf:$0e(!1)},kUi=Vr,DP=vc,EUi=lv,zUi=epe.indexOf,PUi=yP,tpe=kUi([].push),ipe=function(t,e){var i=EUi(t),o=0,r=[],n;for(n in i)!DP(PUi,n)&&DP(i,n)&&tpe(r,n);for(;e.length>o;)DP(i,n=e[o++])&&(~zUi(r,n)||tpe(r,n));return r},NP=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BUi=ipe,OUi=NP,RUi=OUi.concat("length","prototype");X0e.f=Object.getOwnPropertyNames||function(t){return BUi(t,RUi)};var ope={};ope.f=Object.getOwnPropertySymbols;var UUi=n1,FUi=Vr,YUi=X0e,QUi=ope,GUi=Yn,HUi=FUi([].concat),VUi=UUi("Reflect","ownKeys")||function(t){var e=YUi.f(GUi(t)),i=QUi.f;return i?HUi(e,i(t)):e},rpe=vc,ZUi=VUi,JUi=av,WUi=vd,KUi=function(t,e,i){for(var o=ZUi(e),r=WUi.f,n=JUi.f,s=0;s<o.length;s++){var a=o[s];!rpe(t,a)&&!(i&&rpe(i,a))&&r(t,a,n(e,a))}},_Ui=Hr,qUi=Zr,XUi=/#|\.prototype\./,dv=function(t,e){var i=eFi[$Ui(t)];return i===iFi?!0:i===tFi?!1:qUi(e)?_Ui(e):!!e},$Ui=dv.normalize=function(t){return String(t).replace(XUi,".").toLowerCase()},eFi=dv.data={},tFi=dv.NATIVE="N",iFi=dv.POLYFILL="P",spe=dv,Dx=Gr,oFi=av.f,rFi=cv,sFi=a1,nFi=aP,aFi=KUi,lFi=spe,Qn=function(t,e){var i=t.target,o=t.global,r=t.stat,n,s,a,l,c,u;if(o?s=Dx:r?s=Dx[i]||nFi(i,{}):s=Dx[i]&&Dx[i].prototype,s)for(a in e){if(c=e[a],t.dontCallGetSet?(u=oFi(s,a),l=u&&u.value):l=s[a],n=lFi(o?a:i+(r?".":"#")+a,t.forced),!n&&l!==void 0){if(typeof c==typeof l)continue;aFi(c,l)}(t.sham||l&&l.sham)&&rFi(c,"sham",!0),sFi(s,a,c,t)}},cFi=Gr,uFi=r1,hv=uFi(cFi.process)==="process",dFi=Vr,hFi=yd,pFi=function(t,e,i){try{return dFi(hFi(Object.getOwnPropertyDescriptor(t,e)[i]))}catch{}},AFi=mc,gFi=function(t){return AFi(t)||t===null},MFi=gFi,fFi=String,wFi=TypeError,LFi=function(t){if(MFi(t))return t;throw new wFi("Can't set "+fFi(t)+" as a prototype")},mFi=pFi,yFi=mc,vFi=Lc,CFi=LFi,npe=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},i;try{i=mFi(Object.prototype,"__proto__","set"),i(e,[]),t=e instanceof Array}catch{}return function(o,r){return vFi(o),CFi(r),yFi(o)&&(t?i(o,r):o.__proto__=r),o}}():void 0),IFi=vd.f,jFi=vc,bFi=Ts,ape=bFi("toStringTag"),Nx=function(t,e,i){t&&!i&&(t=t.prototype),t&&!jFi(t,ape)&&IFi(t,ape,{configurable:!0,value:e})},lpe=q0e,xFi=vd,DFi=function(t,e,i){return i.get&&lpe(i.get,e,{getter:!0}),i.set&&lpe(i.set,e,{setter:!0}),xFi.f(t,e,i)},NFi=n1,SFi=DFi,TFi=Ts,kFi=wc,cpe=TFi("species"),EFi=function(t){var e=NFi(t);kFi&&e&&!e[cpe]&&SFi(e,cpe,{configurable:!0,get:function(){return this}})},zFi=Ax,PFi=TypeError,BFi=function(t,e){if(zFi(e,t))return t;throw new PFi("Incorrect invocation")},OFi=Ts,RFi=OFi("toStringTag"),upe={};upe[RFi]="z";var UFi=String(upe)==="[object z]",FFi=UFi,YFi=Zr,Sx=r1,QFi=Ts,GFi=QFi("toStringTag"),HFi=Object,VFi=Sx(function(){return arguments}())==="Arguments",ZFi=function(t,e){try{return t[e]}catch{}},SP=FFi?Sx:function(t){var e,i,o;return t===void 0?"Undefined":t===null?"Null":typeof(i=ZFi(e=HFi(t),GFi))=="string"?i:VFi?Sx(e):(o=Sx(e))==="Object"&&YFi(e.callee)?"Arguments":o},JFi=Vr,WFi=Hr,dpe=Zr,KFi=SP,_Fi=n1,qFi=LP,hpe=function(){},ppe=_Fi("Reflect","construct"),TP=/^\s*(?:class|function)\b/,XFi=JFi(TP.exec),$Fi=!TP.test(hpe),pv=function(t){if(!dpe(t))return!1;try{return ppe(hpe,[],t),!0}catch{return!1}},Ape=function(t){if(!dpe(t))return!1;switch(KFi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $Fi||!!XFi(TP,qFi(t))}catch{return!0}};Ape.sham=!0;var eYi=!ppe||WFi(function(){var t;return pv(pv.call)||!pv(Object)||!pv(function(){t=!0})||t})?Ape:pv,tYi=eYi,iYi=fx,oYi=TypeError,rYi=function(t){if(tYi(t))return t;throw new oYi(iYi(t)+" is not a constructor")},gpe=Yn,sYi=rYi,nYi=s1,aYi=Ts,lYi=aYi("species"),Mpe=function(t,e){var i=gpe(t).constructor,o;return i===void 0||nYi(o=gpe(i)[lYi])?e:sYi(o)},cYi=hx,fpe=Function.prototype,wpe=fpe.apply,Lpe=fpe.call,mpe=typeof Reflect=="object"&&Reflect.apply||(cYi?Lpe.bind(wpe):function(){return Lpe.apply(wpe,arguments)}),uYi=r1,dYi=Vr,Tx=function(t){if(uYi(t)==="Function")return dYi(t)},ype=Tx,hYi=yd,pYi=hx,AYi=ype(ype.bind),kP=function(t,e){return hYi(t),e===void 0?t:pYi?AYi(t,e):function(){return t.apply(e,arguments)}},gYi=n1,vpe=gYi("document","documentElement"),MYi=Vr,fYi=MYi([].slice),wYi=TypeError,LYi=function(t,e){if(t<e)throw new wYi("Not enough arguments");return t},mYi=gx,Cpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(mYi),Ha=Gr,yYi=mpe,vYi=kP,Ipe=Zr,CYi=vc,jpe=Hr,bpe=vpe,IYi=fYi,xpe=Lx,jYi=LYi,bYi=Cpe,xYi=hv,EP=Ha.setImmediate,zP=Ha.clearImmediate,DYi=Ha.process,PP=Ha.Dispatch,NYi=Ha.Function,Dpe=Ha.MessageChannel,SYi=Ha.String,BP=0,Av={},Npe="onreadystatechange",gv,l1,OP,RP;jpe(function(){gv=Ha.location});var UP=function(t){if(CYi(Av,t)){var e=Av[t];delete Av[t],e()}},FP=function(t){return function(){UP(t)}},Spe=function(t){UP(t.data)},Tpe=function(t){Ha.postMessage(SYi(t),gv.protocol+"//"+gv.host)};(!EP||!zP)&&(EP=function(t){jYi(arguments.length,1);var e=Ipe(t)?t:NYi(t),i=IYi(arguments,1);return Av[++BP]=function(){yYi(e,void 0,i)},l1(BP),BP},zP=function(t){delete Av[t]},xYi?l1=function(t){DYi.nextTick(FP(t))}:PP&&PP.now?l1=function(t){PP.now(FP(t))}:Dpe&&!bYi?(OP=new Dpe,RP=OP.port2,OP.port1.onmessage=Spe,l1=vYi(RP.postMessage,RP)):Ha.addEventListener&&Ipe(Ha.postMessage)&&!Ha.importScripts&&gv&&gv.protocol!=="file:"&&!jpe(Tpe)?(l1=Tpe,Ha.addEventListener("message",Spe,!1)):Npe in xpe("script")?l1=function(t){bpe.appendChild(xpe("script"))[Npe]=function(){bpe.removeChild(this),UP(t)}}:l1=function(t){setTimeout(FP(t),0)});var kpe={set:EP,clear:zP},Epe=Gr,TYi=wc,kYi=Object.getOwnPropertyDescriptor,EYi=function(t){if(!TYi)return Epe[t];var e=kYi(Epe,t);return e&&e.value},zpe=function(){this.head=null,this.tail=null};zpe.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Ppe=zpe,zYi=gx,PYi=/ipad|iphone|ipod/i.test(zYi)&&typeof Pebble<"u",BYi=gx,OYi=/web0s(?!.*chrome)/i.test(BYi),pf=Gr,RYi=EYi,Bpe=kP,YP=kpe.set,UYi=Ppe,FYi=Cpe,YYi=PYi,QYi=OYi,QP=hv,Ope=pf.MutationObserver||pf.WebKitMutationObserver,Rpe=pf.document,Upe=pf.process,kx=pf.Promise,GP=RYi("queueMicrotask"),Af,HP,VP,Ex,Fpe;if(!GP){var zx=new UYi,Px=function(){var t,e;for(QP&&(t=Upe.domain)&&t.exit();e=zx.get();)try{e()}catch(i){throw zx.head&&Af(),i}t&&t.enter()};!FYi&&!QP&&!QYi&&Ope&&Rpe?(HP=!0,VP=Rpe.createTextNode(""),new Ope(Px).observe(VP,{characterData:!0}),Af=function(){VP.data=HP=!HP}):!YYi&&kx&&kx.resolve?(Ex=kx.resolve(void 0),Ex.constructor=kx,Fpe=Bpe(Ex.then,Ex),Af=function(){Fpe(Px)}):QP?Af=function(){Upe.nextTick(Px)}:(YP=Bpe(YP,pf),Af=function(){YP(Px)}),GP=function(t){zx.head||Af(),zx.add(t)}}var GYi=GP,HYi=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},ZP=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},VYi=Gr,Bx=VYi.Promise,Ype=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",ZYi=Ype,JYi=hv,WYi=!ZYi&&!JYi&&typeof window=="object"&&typeof document=="object",KYi=Gr,Mv=Bx,_Yi=Zr,qYi=spe,XYi=LP,$Yi=Ts,eQi=WYi,tQi=Ype,JP=oP;Mv&&Mv.prototype;var iQi=$Yi("species"),WP=!1,Qpe=_Yi(KYi.PromiseRejectionEvent),oQi=qYi("Promise",function(){var t=XYi(Mv),e=t!==String(Mv);if(!e&&JP===66)return!0;if(!JP||JP<51||!/native code/.test(t)){var i=new Mv(function(n){n(1)}),o=function(n){n(function(){},function(){})},r=i.constructor={};if(r[iQi]=o,WP=i.then(function(){})instanceof o,!WP)return!0}return!e&&(eQi||tQi)&&!Qpe}),fv={CONSTRUCTOR:oQi,REJECTION_EVENT:Qpe,SUBCLASSING:WP},gf={},Gpe=yd,rQi=TypeError,sQi=function(t){var e,i;this.promise=new t(function(o,r){if(e!==void 0||i!==void 0)throw new rQi("Bad Promise constructor");e=o,i=r}),this.resolve=Gpe(e),this.reject=Gpe(i)};gf.f=function(t){return new sQi(t)};var nQi=Qn,Ox=hv,V0=Gr,Mf=Ws,Hpe=a1,Vpe=npe,aQi=Nx,lQi=EFi,cQi=yd,Rx=Zr,uQi=mc,dQi=BFi,hQi=Mpe,Zpe=kpe.set,KP=GYi,pQi=HYi,AQi=ZP,gQi=Ppe,Jpe=Ix,Ux=Bx,_P=fv,Wpe=gf,Fx="Promise",Kpe=_P.CONSTRUCTOR,MQi=_P.REJECTION_EVENT,fQi=_P.SUBCLASSING,qP=Jpe.getterFor(Fx),wQi=Jpe.set,ff=Ux&&Ux.prototype,c1=Ux,Yx=ff,_pe=V0.TypeError,XP=V0.document,$P=V0.process,eB=Wpe.f,LQi=eB,mQi=!!(XP&&XP.createEvent&&V0.dispatchEvent),qpe="unhandledrejection",yQi="rejectionhandled",Xpe=0,$pe=1,vQi=2,tB=1,eAe=2,Qx,tAe,CQi,iAe,oAe=function(t){var e;return uQi(t)&&Rx(e=t.then)?e:!1},rAe=function(t,e){var i=e.value,o=e.state===$pe,r=o?t.ok:t.fail,n=t.resolve,s=t.reject,a=t.domain,l,c,u;try{r?(o||(e.rejection===eAe&&jQi(e),e.rejection=tB),r===!0?l=i:(a&&a.enter(),l=r(i),a&&(a.exit(),u=!0)),l===t.promise?s(new _pe("Promise-chain cycle")):(c=oAe(l))?Mf(c,l,n,s):n(l)):s(i)}catch(d){a&&!u&&a.exit(),s(d)}},sAe=function(t,e){t.notified||(t.notified=!0,KP(function(){for(var i=t.reactions,o;o=i.get();)rAe(o,t);t.notified=!1,e&&!t.rejection&&IQi(t)}))},nAe=function(t,e,i){var o,r;mQi?(o=XP.createEvent("Event"),o.promise=e,o.reason=i,o.initEvent(t,!1,!0),V0.dispatchEvent(o)):o={promise:e,reason:i},!MQi&&(r=V0["on"+t])?r(o):t===qpe&&pQi("Unhandled promise rejection",i)},IQi=function(t){Mf(Zpe,V0,function(){var e=t.facade,i=t.value,o=aAe(t),r;if(o&&(r=AQi(function(){Ox?$P.emit("unhandledRejection",i,e):nAe(qpe,e,i)}),t.rejection=Ox||aAe(t)?eAe:tB,r.error))throw r.value})},aAe=function(t){return t.rejection!==tB&&!t.parent},jQi=function(t){Mf(Zpe,V0,function(){var e=t.facade;Ox?$P.emit("rejectionHandled",e):nAe(yQi,e,t.value)})},wf=function(t,e,i){return function(o){t(e,o,i)}},Lf=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=vQi,sAe(t,!0))},iB=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new _pe("Promise can't be resolved itself");var o=oAe(e);o?KP(function(){var r={done:!1};try{Mf(o,e,wf(iB,r,t),wf(Lf,r,t))}catch(n){Lf(r,n,t)}}):(t.value=e,t.state=$pe,sAe(t,!1))}catch(r){Lf({done:!1},r,t)}}};if(Kpe&&(c1=function(t){dQi(this,Yx),cQi(t),Mf(Qx,this);var e=qP(this);try{t(wf(iB,e),wf(Lf,e))}catch(i){Lf(e,i)}},Yx=c1.prototype,Qx=function(t){wQi(this,{type:Fx,done:!1,notified:!1,parent:!1,reactions:new gQi,rejection:!1,state:Xpe,value:void 0})},Qx.prototype=Hpe(Yx,"then",function(t,e){var i=qP(this),o=eB(hQi(this,c1));return i.parent=!0,o.ok=Rx(t)?t:!0,o.fail=Rx(e)&&e,o.domain=Ox?$P.domain:void 0,i.state===Xpe?i.reactions.add(o):KP(function(){rAe(o,i)}),o.promise}),tAe=function(){var t=new Qx,e=qP(t);this.promise=t,this.resolve=wf(iB,e),this.reject=wf(Lf,e)},Wpe.f=eB=function(t){return t===c1||t===CQi?new tAe(t):LQi(t)},Rx(Ux)&&ff!==Object.prototype)){iAe=ff.then,fQi||Hpe(ff,"then",function(t,e){var i=this;return new c1(function(o,r){Mf(iAe,i,o,r)}).then(t,e)},{unsafe:!0});try{delete ff.constructor}catch{}Vpe&&Vpe(ff,Yx)}nQi({global:!0,constructor:!0,wrap:!0,forced:Kpe},{Promise:c1}),aQi(c1,Fx,!1),lQi(Fx);var wv={},bQi=Ts,xQi=wv,DQi=bQi("iterator"),NQi=Array.prototype,SQi=function(t){return t!==void 0&&(xQi.Array===t||NQi[DQi]===t)},TQi=SP,lAe=cf,kQi=s1,EQi=wv,zQi=Ts,PQi=zQi("iterator"),cAe=function(t){if(!kQi(t))return lAe(t,PQi)||lAe(t,"@@iterator")||EQi[TQi(t)]},BQi=Ws,OQi=yd,RQi=Yn,UQi=fx,FQi=cAe,YQi=TypeError,QQi=function(t,e){var i=arguments.length<2?FQi(t):e;if(OQi(i))return RQi(BQi(i,t));throw new YQi(UQi(t)+" is not iterable")},GQi=Ws,uAe=Yn,HQi=cf,VQi=function(t,e,i){var o,r;uAe(t);try{if(o=HQi(t,"return"),!o){if(e==="throw")throw i;return i}o=GQi(o,t)}catch(n){r=!0,o=n}if(e==="throw")throw i;if(r)throw o;return uAe(o),i},ZQi=kP,JQi=Ws,WQi=Yn,KQi=fx,_Qi=SQi,qQi=xP,dAe=Ax,XQi=QQi,$Qi=cAe,hAe=VQi,eGi=TypeError,Gx=function(t,e){this.stopped=t,this.result=e},pAe=Gx.prototype,AAe=function(t,e,i){var o=i&&i.that,r=!!(i&&i.AS_ENTRIES),n=!!(i&&i.IS_RECORD),s=!!(i&&i.IS_ITERATOR),a=!!(i&&i.INTERRUPTED),l=ZQi(e,o),c,u,d,h,p,g,A,M=function(L){return c&&hAe(c,"normal",L),new Gx(!0,L)},f=function(L){return r?(WQi(L),a?l(L[0],L[1],M):l(L[0],L[1])):a?l(L,M):l(L)};if(n)c=t.iterator;else if(s)c=t;else{if(u=$Qi(t),!u)throw new eGi(KQi(t)+" is not iterable");if(_Qi(u)){for(d=0,h=qQi(t);h>d;d++)if(p=f(t[d]),p&&dAe(pAe,p))return p;return new Gx(!1)}c=XQi(t,u)}for(g=n?t.next:c.next;!(A=JQi(g,c)).done;){try{p=f(A.value)}catch(L){hAe(c,"throw",L)}if(typeof p=="object"&&p&&dAe(pAe,p))return p}return new Gx(!1)},tGi=Ts,gAe=tGi("iterator"),MAe=!1;try{var iGi=0,fAe={next:function(){return{done:!!iGi++}},return:function(){MAe=!0}};fAe[gAe]=function(){return this},Array.from(fAe,function(){throw 2})}catch{}var oGi=function(t,e){try{if(!e&&!MAe)return!1}catch{return!1}var i=!1;try{var o={};o[gAe]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch{}return i},rGi=Bx,sGi=oGi,nGi=fv.CONSTRUCTOR,wAe=nGi||!sGi(function(t){rGi.all(t).then(void 0,function(){})}),aGi=Qn,lGi=Ws,cGi=yd,uGi=gf,dGi=ZP,hGi=AAe,pGi=wAe;aGi({target:"Promise",stat:!0,forced:pGi},{all:function(t){var e=this,i=uGi.f(e),o=i.resolve,r=i.reject,n=dGi(function(){var s=cGi(e.resolve),a=[],l=0,c=1;hGi(t,function(u){var d=l++,h=!1;c++,lGi(s,e,u).then(function(p){h||(h=!0,a[d]=p,--c||o(a))},r)}),--c||o(a)});return n.error&&r(n.value),i.promise}});var AGi=Qn,gGi=fv.CONSTRUCTOR,oB=Bx,MGi=n1,fGi=Zr,wGi=a1,LAe=oB&&oB.prototype;if(AGi({target:"Promise",proto:!0,forced:gGi,real:!0},{catch:function(t){return this.then(void 0,t)}}),fGi(oB)){var mAe=MGi("Promise").prototype.catch;LAe.catch!==mAe&&wGi(LAe,"catch",mAe,{unsafe:!0})}var LGi=Qn,mGi=Ws,yGi=yd,vGi=gf,CGi=ZP,IGi=AAe,jGi=wAe;LGi({target:"Promise",stat:!0,forced:jGi},{race:function(t){var e=this,i=vGi.f(e),o=i.reject,r=CGi(function(){var n=yGi(e.resolve);IGi(t,function(s){mGi(n,e,s).then(i.resolve,o)})});return r.error&&o(r.value),i.promise}});var bGi=Qn,xGi=gf,DGi=fv.CONSTRUCTOR;bGi({target:"Promise",stat:!0,forced:DGi},{reject:function(t){var e=xGi.f(this),i=e.reject;return i(t),e.promise}});var NGi=Yn,SGi=mc,TGi=gf,kGi=function(t,e){if(NGi(t),SGi(e)&&e.constructor===t)return e;var i=TGi.f(t),o=i.resolve;return o(e),i.promise},EGi=Qn,zGi=n1,PGi=fv.CONSTRUCTOR,BGi=kGi;zGi("Promise"),EGi({target:"Promise",stat:!0,forced:PGi},{resolve:function(t){return BGi(this,t)}});function yAe(t,e,i,o,r,n,s){try{var a=t[n](s),l=a.value}catch(c){return void i(c)}a.done?e(l):Promise.resolve(l).then(o,r)}function Cd(t){return function(){var e=this,i=arguments;return new Promise(function(o,r){var n=t.apply(e,i);function s(l){yAe(n,o,r,s,a,"next",l)}function a(l){yAe(n,o,r,s,a,"throw",l)}s(void 0)})}}var OGi=SP,RGi=String,gu=function(t){if(OGi(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return RGi(t)},UGi=Yn,vAe=function(){var t=UGi(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},rB=Hr,FGi=Gr,sB=FGi.RegExp,nB=rB(function(){var t=sB("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),YGi=nB||rB(function(){return!sB("a","y").sticky}),QGi=nB||rB(function(){var t=sB("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),CAe={BROKEN_CARET:QGi,MISSED_STICKY:YGi,UNSUPPORTED_Y:nB},IAe={},GGi=ipe,HGi=NP,VGi=Object.keys||function(t){return GGi(t,HGi)},ZGi=wc,JGi=Y0e,WGi=vd,KGi=Yn,_Gi=lv,qGi=VGi;IAe.f=ZGi&&!JGi?Object.defineProperties:function(t,e){KGi(t);for(var i=_Gi(e),o=qGi(e),r=o.length,n=0,s;r>n;)WGi.f(t,s=o[n++],i[s]);return t};var XGi=Yn,$Gi=IAe,jAe=NP,eHi=yP,tHi=vpe,iHi=Lx,oHi=mP,bAe=">",xAe="<",aB="prototype",lB="script",DAe=oHi("IE_PROTO"),cB=function(){},NAe=function(t){return xAe+lB+bAe+t+xAe+"/"+lB+bAe},SAe=function(t){t.write(NAe("")),t.close();var e=t.parentWindow.Object;return t=null,e},rHi=function(){var t=iHi("iframe"),e="java"+lB+":",i;return t.style.display="none",tHi.appendChild(t),t.src=String(e),i=t.contentWindow.document,i.open(),i.write(NAe("document.F=Object")),i.close(),i.F},Hx,Vx=function(){try{Hx=new ActiveXObject("htmlfile")}catch{}Vx=typeof document<"u"?document.domain&&Hx?SAe(Hx):rHi():SAe(Hx);for(var t=jAe.length;t--;)delete Vx[aB][jAe[t]];return Vx()};eHi[DAe]=!0;var uB=Object.create||function(t,e){var i;return t!==null?(cB[aB]=XGi(t),i=new cB,cB[aB]=null,i[DAe]=t):i=Vx(),e===void 0?i:$Gi.f(i,e)},sHi=Hr,nHi=Gr,aHi=nHi.RegExp,lHi=sHi(function(){var t=aHi(".","s");return!(t.dotAll&&t.test(`
|
|
1874
1874
|
`)&&t.flags==="s")}),cHi=Hr,uHi=Gr,dHi=uHi.RegExp,hHi=cHi(function(){var t=dHi("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mf=Ws,Zx=Vr,pHi=gu,AHi=vAe,gHi=CAe,MHi=cP,fHi=uB,wHi=Ix.get,LHi=lHi,mHi=hHi,yHi=MHi("native-string-replace",String.prototype.replace),Jx=RegExp.prototype.exec,dB=Jx,vHi=Zx("".charAt),CHi=Zx("".indexOf),IHi=Zx("".replace),hB=Zx("".slice),pB=function(){var t=/a/,e=/b*/g;return mf(Jx,t,"a"),mf(Jx,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),TAe=gHi.BROKEN_CARET,AB=/()??/.exec("")[1]!==void 0,jHi=pB||AB||TAe||LHi||mHi;jHi&&(dB=function(t){var e=this,i=wHi(e),o=pHi(t),r=i.raw,n,s,a,l,c,u,d;if(r)return r.lastIndex=e.lastIndex,n=mf(dB,r,o),e.lastIndex=r.lastIndex,n;var h=i.groups,p=TAe&&e.sticky,g=mf(AHi,e),A=e.source,M=0,f=o;if(p&&(g=IHi(g,"y",""),CHi(g,"g")===-1&&(g+="g"),f=hB(o,e.lastIndex),e.lastIndex>0&&(!e.multiline||e.multiline&&vHi(o,e.lastIndex-1)!==`
|