@hublo/mstaff-client-sdk 0.2.65 → 0.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +12 -2
- package/dist/core.js +4656 -1292
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Cr=Object.defineProperty;var Or=(e,t,n)=>t in e?Cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ne=(e,t,n)=>(Or(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ie=require("vue"),_r=require("axios"),kr=require("pinia"),Fr=require("@vueuse/core");function Mr(e){return Ie.getCurrentScope()?(Ie.onScopeDispose(e),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*!
|
|
2
2
|
* cookie
|
|
3
3
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
4
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
5
|
* MIT Licensed
|
|
6
|
-
*/var ae=Xe,te=Ye,Ze=Object.prototype.toString,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Xe(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var i={},n=t||{},s=n.decode||et,c=0;c<e.length;){var l=e.indexOf("=",c);if(l===-1)break;var m=e.indexOf(";",c);if(m===-1)m=e.length;else if(m<l){c=e.lastIndexOf(";",l-1)+1;continue}var u=e.slice(c,l).trim();if(i[u]===void 0){var r=e.slice(l+1,m).trim();r.charCodeAt(0)===34&&(r=r.slice(1,-1)),i[u]=it(r,s)}c=m+1}return i}function Ye(e,t,i){var n=i||{},s=n.encode||tt;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!x.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!x.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(n.maxAge!=null){var m=n.maxAge-0;if(isNaN(m)||!isFinite(m))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(m)}if(n.domain){if(!x.test(n.domain))throw new TypeError("option domain is invalid");l+="; Domain="+n.domain}if(n.path){if(!x.test(n.path))throw new TypeError("option path is invalid");l+="; Path="+n.path}if(n.expires){var u=n.expires;if(!nt(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+u.toUTCString()}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.partitioned&&(l+="; Partitioned"),n.priority){var r=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(r){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var a=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(a){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l}function et(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function tt(e){return encodeURIComponent(e)}function nt(e){return Ze.call(e)==="[object Date]"||e instanceof Date}function it(e,t){try{return t(e)}catch{return e}}function st(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function rt(e){return typeof e=="string"?ae(e):typeof e=="object"&&e!==null?e:{}}function H(e,t={}){const i=ot(e);if(!t.doNotParse)try{return JSON.parse(i)}catch{}return e}function ot(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class at{constructor(t,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=ae(document.cookie),this._checkChanges(s)};const n=typeof document>"u"?"":document.cookie;this.cookies=rt(t||n),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=st()}_emitChange(t){for(let i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:H(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,i={}){return i.doNotUpdate||this.update(),H(this.cookies[t],i)}getAll(t={}){t.doNotUpdate||this.update();const i={};for(let n in this.cookies)i[n]=H(this.cookies[n],t);return i}set(t,i,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const s=typeof i=="string"?i:JSON.stringify(i);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=te(t,s,n)),this._emitChange({name:t,value:i,options:n})}remove(t,i){const n=i=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=te(t,"",n)),this._emitChange({name:t,value:void 0,options:i})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const i=this.changeListeners.indexOf(t);i>=0&&this.changeListeners.splice(i,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function ct(e,{doNotParse:t=!1,autoUpdateDependencies:i=!1}={},n=new at){const s=i?[...e||[]]:e;let c=n.getAll({doNotParse:!0});const l=$.ref(0),m=()=>{const u=n.getAll({doNotParse:!0});ut(s||null,u,c)&&l.value++,c=u};return n.addChangeListener(m),Je(()=>{n.removeChangeListener(m)}),{get:(...u)=>(i&&s&&!s.includes(u[0])&&s.push(u[0]),l.value,n.get(u[0],{doNotParse:t,...u[1]})),getAll:(...u)=>(l.value,n.getAll({doNotParse:t,...u[0]})),set:(...u)=>n.set(...u),remove:(...u)=>n.remove(...u),addChangeListener:(...u)=>n.addChangeListener(...u),removeChangeListener:(...u)=>n.removeChangeListener(...u)}}function ut(e,t,i){if(!e)return!0;for(const n of e)if(t[n]!==i[n])return!0;return!1}const lt=()=>{let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},dt=()=>typeof window<"u"&&typeof window.document<"u",T=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,L=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t];let s=e;const c=m=>m!=null,l=m=>typeof m=="object";for(const[m,u]of n.entries()){if(!c(s))return i;if(m===n.length-1)return c(s[u])?s[u]:i;if(!l(s[u]))return i;s=s[u]}return i},G=(e,t,i)=>{const n=typeof t=="string"?t.split("."):[t],s=m=>typeof m=="number"||/^\d$/g.test(m),c=m=>parseInt(m,10);let l=e;return n.forEach((m,u)=>{if(u===n.length-1)l[m]=i;else{const r=s(n[u+1])?[]:{};m=s(m)?c(m):m,l[m]=l[m]??r,l=l[m]}}),e},ce=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},Z=(e,t)=>{const i={...e};for(const[n,s]of Object.entries(t))n in i&&typeof i[n]=="object"&&typeof s=="object"?i[n]=Z(i[n],s):i[n]=ce(s);return i},mt=e=>typeof e=="boolean",pt=e=>typeof e=="number",ft=e=>typeof e=="string",X=e=>Array.isArray(e),ue=e=>typeof e=="object"&&!X(e)&&e!==null,ht=e=>e instanceof Date,yt=e=>typeof e=="function",le=e=>e===null,de=e=>e===void 0,me=e=>le(e)||de(e),gt=e=>!me(e),bt=e=>!!e,wt=e=>!e,At=(e,t)=>X(e)&&e.every(i=>t(i)),vt=(e,t)=>ue(e)&&Object.values(e).every(i=>t(i)),Rt=e=>e.startsWith("http:")?e.replace("http:","https:"):e,Pt=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,pe=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,ne=()=>{const e=pe();return!e||e==="localhost"?e:`.${e}`},kt=()=>({path:"/"}),Et=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),q=e=>{if(!(T()||!e))return e.startsWith("localhost")?kt():Et(e)};function fe(){const e=ct(),t=c=>e.get(c),i=(c,l)=>e.set(c,l,q(ne())),n=c=>{e.remove(c),e.remove(c,q(pe())),e.remove(c,q(ne()))};return{getItem:t,setItem:i,removeItem:n,clear:()=>Object.keys(e.getAll()).forEach(c=>n(c))}}let _=null;function j(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=fe()){if(_)return _;function i(){return t.getItem(e.auth)}function n(){return t.getItem(e.refresh)}function s(){return t.getItem(e.expiration)}function c(f,h){const b=a(f);if(!b.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,f),t.setItem(e.refresh,h),t.setItem(e.expiration,((b.exp-60)*1e3).toString())}function l(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function m(){return u()&&!r()}function u(){return!!i()}function r(){const f=s();return f?new Date(f)<new Date:!0}function a(f){return JSON.parse(atob(f.split(".")[1]))}function p(){return t}return _={keys:e,getAuthToken:i,getRefreshToken:n,getExpiration:s,authenticate:c,clear:l,isAuthenticated:m,hasAuth:u,isExpired:r,getStorage:p},_}function It(e){let t={"Content-Type":"application/json"};e&&i(e);function i(b,w=!1){return t=w?b:{...t,...b},this}function n(){return t}function s(b,w){return t[b]=w,this}function c(b){return t[b]}function l(b){return t[b]&&delete t[b],this}function m(b){return s("Authorization","Bearer "+b),this}function u(){return l("Authorization"),this}function r(){return!!c("Authorization")}function a(){return s("Content-Type","multipart/form-data"),this}function p(){return s("Content-Type","application/json"),this}function f(){return c("Content-Type")==="multipart/form-data"}function h(){return c("Content-Type")==="application/json"}return{setHeaders:i,getHeaders:n,setHeader:s,getHeader:c,removeHeader:l,setAuthorization:m,removeAuthorization:u,hasAuthorization:r,setFormData:a,setJson:p,isFormData:f,isJson:h}}function Ct(e){let t=null;e&&i(e);function i(s){if(s=s.toLowerCase(),!["get","post","put","patch","delete"].includes(s))throw new Error("Invalid method.");return t=s,this}function n(){return t}return{setMethod:i,getMethod:n}}function St(e,t,i){let n=null;i&&s(i);function s(r){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return r instanceof FormData?t.setFormData():l(r)&&(r=m(r),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),r.append("_method","PUT")),n=r,this}function c(){return n}function l(r){for(const a in r){const p=r[a];if(u(p))return!0;if(typeof p=="object"&&l(p))return!0}return!1}function m(r,a=null,p=0){const f=!a;f&&(a=new FormData);for(const h in r){const b=r[h];u(b)?(r[h]="<<FileIndex:"+p+">>",a.append(p,b,b.name),p++):typeof b=="object"&&(r[h]=m(r[h],a,p))}return f?(a.append("payload",JSON.stringify(r)),a):r}function u(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob}return{setPayload:s,getPayload:c}}const E=class E{constructor(t={}){C(this,"level",3);C(this,"logger");C(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=E.LEVEL_DEBUG&&B(this.logger.debug,this.prefix,t)}info(...t){this.level<=E.LEVEL_INFO&&B(this.logger.info,this.prefix,t)}warn(...t){this.level<=E.LEVEL_WARN&&B(this.logger.warn,this.prefix,t)}error(...t){this.level<=E.LEVEL_ERROR&&B(this.logger.error,this.prefix,t)}};C(E,"LEVEL_DEBUG",0),C(E,"LEVEL_INFO",1),C(E,"LEVEL_WARN",2),C(E,"LEVEL_ERROR",3),C(E,"LEVEL_OFF",4);let F=E;const B=(e,t,i)=>{t?e(t,...i):e(...i)},A=new F({prefix:"[SDK]"});let he=null,ye=null,ge=null,be="/",we=null;const Ot=()=>he,Tt=e=>{if(A.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");he=e},Lt=()=>ye,$t=e=>{if(A.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");ye=e},Mt=()=>we,Nt=e=>{we=e},Dt=()=>ge,jt=e=>{if(A.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");ge=e},xt=e=>{A.info("[Config] Base Assets Urls:",e),be=e},_t=()=>be,O={getEnvironment:Ot,getApiHost:Lt,getErrorHandler:Mt,setEnvironment:Tt,setApiHost:$t,setErrorHandler:Nt,getMainAppHost:Dt,setMainAppHost:jt,setBaseAssetsUrl:xt,getBaseAssetsUrl:_t};function Bt(e){const t=O.getApiHost().replace(/\/$/g,"");let i=null,n={},s={};e&&m(e);function c(){return t+u()+h()}function l(){return u(!0,!0)}function m(d){return i="/"+d.replace(/^\//g,""),this}function u(d=!0,P=!1){return d?i.replace(/:(\w+)/g,(k,I)=>P?"*":s[I]||":"+I):i}function r(d){return n=d,this}function a(d,P){return n[d]=P,this}function p(d){return n[d]&&delete n[d],this}function f(){return Object.keys(n).length>0}function h(d=!0){if(!f())return"";let P="";for(const k in n)if(Array.isArray(n[k]))for(const I of n[k])P+=(P.length?"&":"")+`${k}[]=`+I;else P+=(P.length?"&":"")+k+"="+n[k];return(d?"?":"")+P}function b(d){return s=d,this}function w(d,P){return s[d]=P,this}function S(d){return s[d]&&delete s[d],this}return{setPath:m,getPath:u,getUri:c,getMockUri:l,setQueryParams:r,setQueryParam:a,removeQueryParam:p,hasQuery:f,getQueryString:h,setRouteParams:b,setRouteParam:w,removeRouteParam:S}}function Ut(e){let t=[];function i(){return t=r(arguments),l(),this}function n(){return t.length>0}function s(a){return t.includes(a.trim())?this:(t.push(a.trim()),l(),this)}function c(a){const p=t.indexOf(a.trim());return p===-1?this:(t.splice(p,1),l(),this)}function l(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function m(a){return a.split(",").map(p=>p.trim())}function u(a){return a.join(",")}function r(a){let p=[];return a.length===1?typeof a[0]=="string"?p=m(a[0]):Array.isArray(a[0])&&(p=a[0]):p=Array.from(a),p}return{setGroups:i,hasGroups:n,addGroup:s,removeGroup:c}}function zt(e){let t=!1,i=!1,n=1,s=10;function c(){return t=!0,l(),this}function l(){i=!0;const h=f(arguments);return r(h.page||1,!1),a(h.perPage||s,!1),p(),this}function m(){return i=!1,p(),this}function u(){return i}function r(h,b=!0){return t=!0,i=!0,n=h,b&&p(),this}function a(h,b=!0){return t=!0,i=!0,s=h,b&&p(),this}function p(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",n),e.setQueryParam("nbResultPerPage",s)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function f(h){if(h.length===1&&typeof h[0]=="object")return h[0];const b={};return h.length>=1&&(b.page=h[0]),h.length>=2&&(b.perPage=h[1]),b}return{isList:c,paginate:l,disablePagination:m,hasPagination:u,setPage:r,setPerPage:a}}function Ft(e){let t=!1,i="id",n="ASC";function s(){t=!0;const a=r(arguments);return a.orderBy&&l(a.orderBy,!1),a.orderDir&&m(a.orderDir,!1),u(),this}function c(){return t}function l(a,p=!0){return t=!0,i=a,p&&u(),this}function m(a,p=!0){if(a=a.toUpperCase(),["ASC","DESC"].indexOf(a)===-1)throw new Error("Invalid order direction");return t=!0,n=a,p&&u(),this}function u(){c()&&(e.setQueryParam("orderBy",i),e.setQueryParam("orderDirection",n))}function r(a){if(a.length===1&&typeof a[0]=="object")return a[0];const p={};return a.length>=1&&(p.orderBy=a[0]),a.length>=2&&(p.orderDir=a[1]),p}return{setOrder:s,hasOrder:c,setOrderBy:l,setOrderDir:m}}function Vt(){let e=!1;function t(){return e=!0,this}function i(){return e}return{setSilent:t,isSilent:i}}function Ht(){let e="json";function t(n="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(n)===-1)throw new Error("Invalid response type");return e=n,this}function i(){return e}return{setResponseType:t,getResponseType:i}}function qt(e){function t(){return e}function i(){return e.data}function n(){return e.data}return{getResponse:t,getData:i,getPayload:n}}function Qt(e,t=!1){let i=!1,n=!1;return e.response?(i=!0,n=!0):e.request&&(i=!0),!t&&O.getErrorHandler()&&O.getErrorHandler()(e),{sent:i,responded:n,error:e}}function Gt(e){function t(){return e}function i(){return e.data}function n(){return e.data}function s(){return e.data["@type"]==="hydra:Collection"}function c(){return s()?e.data["hydra:member"]:null}function l(){return s()?e.data["hydra:totalItems"]:null}function m(){return s()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function r(){return!s()||!m()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:i,getPayload:n,isCollection:s,getCollection:c,getTotal:l,hasPagination:m,getPage:u,getPages:r}}function Kt(e,t,i,n,s,c){async function l(){const u=i.getMethod(),r=t.getUri(),a=e.getHeaders(),p=n.getPayload(),f=[r];["post","put","patch"].includes(u)&&f.push(p||{}),f.push({headers:a,responseType:c.getResponseType()}),A.info("[Request] Sending request:",`[${u.toUpperCase()}]`,r);try{const h=await Ge[u](...f);return m(h)}catch(h){throw Qt(h,s.isSilent())}}function m(u){if(u.headers){const r=Object.keys(u.headers),a=r.map(p=>p.toLowerCase()).indexOf("content-type");if(a!==-1&&u.headers[r[a]].includes("application/ld+json"))return Gt(u)}return qt(u)}return{send:l}}function R(e,t="get",i=null){const n=It(),s=Bt(e),c=Ct(t),l=St(c,n,i),m=Ut(s),u=zt(s),r=Ft(s),a=Vt(),p=Ht(),f=Kt(n,s,c,l,a,p);return{...n,...s,...c,...l,...m,...u,...r,...a,...p,...f}}function y(e,t="get",i=null){const n=R(e,t,i),s=j();s.isAuthenticated()&&n.setAuthorization(s.getAuthToken());const c=n.send;return n.send=async function(){if(!n.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return c()},n}const Wt=(e,t)=>y("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Jt=()=>({listByCandidateAndEstablishment:Wt}),Zt=(e,t,i)=>y("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(i),Xt=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Yt=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),en=(e,t)=>y("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),tn=(e,t)=>y("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),nn=(e,t)=>y("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),sn=(e,t,i)=>y("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(i),rn=e=>y("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),on=e=>y("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),an=(e,t)=>y("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),cn=()=>({share:Zt,isArchived:Xt,archive:Yt,unarchive:en,lookupCandidate:tn,createCandidate:nn,updateCandidate:sn,closeIncompleteRegistration:rn,openNewRegistration:on,updateInvitation:an}),un=(e,t)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),ln=(e,t,i)=>y("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(i),dn=(e,t)=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),mn=e=>y("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),pn=()=>({getForEstablishmentCandidate:un,postForEstablishmentCandidate:ln,update:dn,remove:mn}),fn=()=>R("contractType").isList().addGroup("Term:id").addGroup("Term:name"),hn=(e,t=!0)=>y("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),yn=()=>({list:fn,listByEstablishment:hn}),gn=e=>y("/v2/talents").isList().setQueryParam("establishment-id",e),bn=e=>y("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),wn=()=>({list:gn,markAsSeen:bn}),An=(e,t,i)=>y("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(i),vn=()=>({syncCandidateLabels:An}),Rn=()=>R("diploma").isList().addGroup("Term:id").addGroup("Term:name"),Pn=()=>({list:Rn}),kn=e=>y("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),En=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),In=(e,t)=>y("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),Cn=e=>y("document/recruiter").setMethod("post").setPayload(e),Sn=e=>y("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),On=()=>({listByCandidate:kn,listByCandidateAndEstablishmentFromRecruiter:En,listByCandidateAndEstablishmentFromCandidate:In,addFromRecruiter:Cn,remove:Sn}),Tn=(e,t)=>y("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),Ln=()=>({listByCandidateAndEstablishment:Tn}),$n=(e,t)=>y("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Mn=(e,t)=>y("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Nn=()=>({sendToCandidate:$n,sendToRecipients:Mn}),Dn=(e,t=!0)=>{const i=y("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&i.setQueryParam("global",!0),i},jn=()=>y("/v2/self/email-templates").isList().disablePagination(),xn=()=>({listByEstablishment:Dn,listSelf:jn}),_n=(e,t)=>y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Bn=(e,t="published")=>y("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Un=(e,t,i=null)=>{const n=i!==null?y("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:i}):y("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return n.setMethod("post").setPayload(t),n},zn=(e,t)=>y("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Fn=(e,t,i)=>y("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(i),Vn=()=>({readById:_n,readByState:Bn,upsert:Un,uploadLogoAndBanner:zn,publish:Fn}),Hn=e=>R("establishment/:establishmentId").setRouteParams({establishmentId:e}),qn=e=>y("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Y=()=>({read:Hn,authorizations:qn}),Qn=e=>R("feature-flag/maintenance").setMethod("post").setPayload(e),Gn=(e,t)=>R("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Kn=()=>({maintenanceModeEnabled:Qn,forEstablishment:Gn}),Wn=()=>R("job").isList().addGroup("Term:id").addGroup("Term:name"),Jn=(e,t=!0)=>y("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Zn=()=>({list:Wn,listByEstablishment:Jn}),Xn=e=>y("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Yn=(e,t)=>y("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),ei=(e,t)=>y("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),ti=e=>y("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),ni=(e,t,i)=>y("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({establishmentId:e,candidateId:t}),ii=()=>({listByEstablishment:Xn,addToEstablishment:Yn,update:ei,remove:ti,syncForCandidate:ni}),si=e=>R("offer/:offerId").setRouteParams({offerId:e}),ri=()=>({read:si}),oi=(e,t=!1)=>{const i=y("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&i.setQueryParam("exclude-me",1),i},ai=()=>({listByEstablishment:oi}),ci=e=>y("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),ui=e=>y("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),li=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),di=(e,t)=>y("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),mi=(e,t)=>y("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),pi=(e,t)=>y("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),fi=(e,t)=>y("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),hi=()=>({read:ci,mineByEstablishment:ui,mineWithoutCandidate:li,mineWithCandidate:di,withCandidate:mi,addCandidates:pi,removeCandidate:fi}),yi=(e,t,i,n=null)=>{const s=R("candidate/register/open").setMethod("post"),c={email:e};return t==="establishment"&&(c.establishmentId=i),t==="offer"&&(c.offerId=i),n&&(c.referer=n),s.setPayload(c),s},gi=(e,t)=>R("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),bi=e=>R("candidate/register/read/:token").setRouteParams({token:e}),wi=e=>R("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),Ai=()=>({open:yi,update:gi,read:bi,close:wi}),vi=(e,t)=>y("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Ri=()=>({lookupEstablishment:vi}),Pi=()=>R("speciality").isList().addGroup("Term:id").addGroup("Term:name"),ki=(e,t=!0)=>y("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ei=()=>({list:Pi,listByEstablishment:ki}),Ii=e=>y("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Ci=()=>({listByEstablishment:Ii}),Si=(e,t)=>y("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),Oi=e=>y("/v2/talents/index").setMethod("post").setPayload(e),Ti=()=>({lookupTalent:Si,addCandidateToTalentPool:Oi}),Li=e=>R("user/email/isset/:email").setRouteParams({email:e}),$i=()=>y("user/self").addGroup("user:self"),Mi=e=>y("/user/:uuid").setRouteParams({uuid:e}),Ni=e=>R("/user/:uuid").setRouteParams({uuid:e}),Di=e=>y("/user/:id/uuid").setRouteParams({id:e}),ee=()=>({emailExists:Li,self:$i,byUuidPrivate:Mi,byUuid:Ni,fetchUuid:Di});let U;function Ae(){if(U)return U;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!j().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const r=(await ee().self().send()).getData();e.user={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,avatar:r.avatar},e.roles=r.roles},i=async r=>{if(!j().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[r]=(await Y().authorizations(r).send()).getData()},n=r=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(r)};return U={fetchSelf:t,fetchPermission:i,hasRole:n,hasRoleRH:()=>n("ROLE_RH"),hasRoleCandidate:()=>n("ROLE_CANDIDATE"),hasRoleAdmin:()=>n("ROLE_ADMIN"),hasPermission:(r,...a)=>{const p=e.establishments[r];if(p===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${r}`);return a.every(f=>p[f]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},U}async function ji(e,...t){if(!j().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const n=Ae();await Promise.all([n.fetchSelf(),n.fetchPermission(e)]);for(let s=0;s<t.length;s++){const c=t[s];if(!n.hasPermission(e,c))throw"ERR_MISSING_PERMISSION"}}const xi=Ke.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await ee().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const i=await Y().authorizations(e).send();this.establishments[e]=i.getData()}},hasPermission(e,...t){const i=this.establishments[e];return i===void 0?!1:t.every(n=>i[n]===!0)}}});let N=null;function g(){if(N)return N;const e=O.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),i=!!t,n=e!=="prod"&&e!=="production";let s=null;function c(){return i}function l(){const f=window.analytics=window.analytics||[];if(!f.initialize&&f.invoked)A.error("Segment snippet included twice.");else{f.invoked=!0,f.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],f.factory=function(h){return function(){if(window.analytics.initialized)return window.analytics[h].apply(window.analytics,arguments);const b=Array.prototype.slice.call(arguments);return b.unshift(h),f.push(b),f}};for(let h=0;h<f.methods.length;h++){const b=f.methods[h];f[b]=f.factory(b)}f.load=function(h,b){const w=document.createElement("script");w.id="analytics-script",w.type="text/javascript",w.async=!0,w.src="https://cdn.segment.com/analytics.js/v1/"+h+"/analytics.min.js",w.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const S=document.getElementsByTagName("script")[0];S.parentNode.insertBefore(w,S),f._loadOptions=b},f._writeKey=t,f.SNIPPET_VERSION="4.16.1",f.load(t),f.page(),f.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function m(){return s!==null||(s=new Promise((f,h)=>{if(!c())return p("Analytics is disabled."),f();if(window.addEventListener("analytics-ready",()=>{p("Analytics script loaded successfully."),f()}),window.addEventListener("analytics-error",()=>{p("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),h()}),p("Loading Analytics script."),window.analytics)return f();l()})),s}async function u(f,h){if(!T())try{if(await this.analyticsScriptReady(),p("[identify]",[f,h]),c())return window.analytics.identify(f,h)}catch{p("[identify]",[f,h],"error")}}async function r(f,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),p("[page]",[f,h,b]),c())return window.analytics.page(f,{category:h,...b})}catch(w){console.log(w),p("[page]",[f,h,b],"error")}}}async function a(f,h,b){if(!T()){typeof b!="object"&&(b={});try{if(await this.analyticsScriptReady(),p("[track]",[f,h,b]),c())return window.analytics.track(f,{category:h,...b})}catch{p("[track]",[f,h,b],"error")}}}function p(f,h=[],b="info"){h||(h=[]),n&&A[b](`::SDK Analytics:: ${f}`,...h)}return N={analyticsScriptReady:m,isEnabled:c,identify:u,page:r,track:a,consoleMessage:p},N}g.destroy=()=>N=null;function ve(){const e="Hubler Application";function t(r){if(!r)throw new Error(`Missing arguments for domain "${e}"`);const a=!!r.offerId;if(a&&!r.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:r.establishmentId?r.establishmentId.toString():null,jobOfferId:a?r.offerId.toString():null,recruitmentId:a?r.recruitmentId.toString():null,selections:[a?"Application":"Spontaneous Application"]}}async function i(r){return g().page("Application Authentication Viewed",e,t(r))}async function n(r){return g().page("Application Magic Link Viewed",e,t(r))}async function s(r){return g().page("Application Job Viewed",e,t(r))}async function c(r){return g().page("Application Information Viewed",e,t(r))}async function l(r){return g().page("Application Document Viewed",e,t(r))}async function m(r){return g().page("Application Success Viewed",e,t(r))}async function u(r){if(!r.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return g().track("Application Form Failed",e,{...t(r),error:r.error})}return{applicationAuthenticationViewed:i,applicationMagicLinkViewed:n,applicationJobViewed:s,applicationInformationViewed:c,applicationDocumentViewed:l,applicationSuccessViewed:m,applicationFormFailed:u}}function Re(){const e="Profile";function t(d,P){var I;if(!d)throw new Error(`Missing arguments for domain "${e}"`);const k={companyId:d.companyId?d.companyId.toString():null,hublerId:(I=d.hublerId)==null?void 0:I.toString()};return P&&(k.productId=d.companyId?d.companyId+"_2":null),d.recruitmentId&&(k.recruitmentId=d.recruitmentId.toString()),d.selections&&(k.selections=d.selections),d.institutionId&&(k.institutionId=d.institutionId.map(String)),k}async function i(d){return g().track(d.name,e,t(d.properties),!0)}async function n(d){return g().track(d.name,e,t(d.properties,!0))}async function s(d){return g().track(d.name,e,t(d.properties,!0))}async function c(d){return g().track(d.name,e,t(d.properties,!0))}async function l(d){return g().track(d.name,e,t(d.properties,!0))}async function m(d){return g().track(d.name,e,t(d.properties,!0))}async function u(d){return g().track(d.name,e,t(d.properties,!0))}async function r(d){return g().track(d.name,e,t(d.properties,!0))}async function a(d){return g().track(d.name,e,t(d.properties,!0))}async function p(d){return g().track(d.name,e,t(d.properties,!0))}async function f(d){return g().track(d.name,e,t(d.properties,!0))}async function h(d){return g().track(d.name,e,t(d.properties,!0))}async function b(d){return g().track(d.name,e,t(d.properties,!0))}async function w(d){return g().page(d.name,d.properties.category,t(d.properties,!1))}async function S(d){return g().track(d.name,e,t(d.properties,!1))}return{profileDocumentDeleted:i,profileLabelAdded:n,profileLabelRemoved:s,profileShared:c,profileArchived:l,profileCandidateAdded:m,profileCommentAdded:u,profileDocumentAdded:r,profileDocumentDownloaded:a,profileDocumentRequested:p,profileRecruitmentAdded:f,profileRecruitmentRemoved:h,profileTabSelected:b,profileViewed:w,profileEmailSent:S}}function Pe(){const e="Recruitment";function t(n){if(!n)throw new Error(`Missing arguments for domain "${e}"`);const s={companyId:n.companyId?n.companyId.toString():null};return n.institutionId&&(s.institutionId=[n.institutionId.toString()]),n.origin&&(s.origin=n.origin.toString()),s}async function i(n){return g().track(n.name,e,{...t(n),recruitmentId:n.recruitmentId.toString(),count:parseInt(n.count)})}return{candidateAdded:i}}function ke(){const e="Visual Builder";function t(o,He){if(!o)throw new Error(`Missing arguments for domain "${e}"`);const M={companyId:o.companyId?o.companyId.toString():null};return He&&(M.productId=o.companyId?o.companyId+"_2":null),o.selections&&(M.selections=o.selections),o.error&&(M.error=o.error),o.institutionId&&(M.institutionId=[o.institutionId.toString()]),M}async function i(o){return g().page(o.name,e,t(o.properties,!0))}async function n(o){return g().track(o.name,e,t(o.properties),!0)}async function s(o){return g().track(o.name,e,t(o.properties,!0))}async function c(o){return g().page(o.name,e,t(o.properties,!0))}async function l(o){return g().page(o.name,e,t(o.properties,!0))}async function m(o){return g().track(o.name,e,t(o.properties,!0))}async function u(o){return g().page(o.name,e,t(o.properties,!0))}async function r(o){return g().page(o.name,e,t(o.properties,!0))}async function a(o){return g().page(o.name,e,t(o.properties,!0))}async function p(o){return g().track(o.name,e,t(o.properties,!0))}async function f(o){return g().page(o.name,e,t(o.properties,!0))}async function h(o){return g().page(o.name,e,t(o.properties,!0))}async function b(o){return g().track(o.name,e,t(o.properties,!0))}async function w(o){return g().track(o.name,e,t(o.properties,!0))}async function S(o){return g().page(o.name,e,t(o.properties,!0))}async function d(o){return g().page(o.name,e,t(o.properties,!0))}async function P(o){return g().page(o.name,e,t(o.properties,!0))}async function k(o){return g().page(o.name,e,t(o.properties,!0))}async function I(o){return g().page(o.name,e,t(o.properties,!1))}async function Te(o){return g().track(o.name,e,t(o.properties,!0))}async function Le(o){return g().track(o.name,e,t(o.properties,!0))}async function $e(o){return g().track(o.name,e,t(o.properties,!0))}async function Me(o){return g().track(o.name,e,t(o.properties,!0))}async function Ne(o){return g().track(o.name,e,t(o.properties,!0))}async function De(o){return g().track(o.name,e,t(o.properties,!0))}async function je(o){return g().track(o.name,e,t(o.properties,!0))}async function xe(o){return g().track(o.name,e,t(o.properties,!0))}async function _e(o){return g().track(o.name,e,t(o.properties,!0))}async function Be(o){return g().track(o.name,e,t(o.properties,!0))}async function Ue(o){return g().track(o.name,e,t(o.properties,!0))}async function ze(o){return g().track(o.name,e,t(o.properties,!0))}async function Fe(o){return g().track(o.name,e,t(o.properties,!0))}async function Ve(o){return g().page(o.name,e,t(o.properties,!1))}return{careerSitePreviewViewed:i,careerSitePublished:n,setupBenefitCustomAdded:s,setupBenefitViewed:c,setupCandidateInformationViewed:l,setupContactAdded:m,setupContactViewed:u,setupEditionDoneViewed:r,setupExternalLinkViewed:a,setupImageUploaded:p,setupImageViewed:f,setupLocationViewed:h,setupPresentationContentAdded:b,setupPresentationNewTabAdded:w,setupPresentationViewed:S,setupSettingsDoneViewed:d,setupSocialNetworkViewed:P,setupThemeViewed:k,visualBuilderViewed:I,setupImageUploadFailed:Te,fastCopyLinkClicked:Le,setupBenefitCustomDeleted:$e,setupBenefitCustomEdited:Me,setupContactDeleted:Ne,setupContactEdited:De,setupContactNewClicked:je,setupPresentationContentDeleted:xe,setupPresentationContentDuplicated:_e,setupPresentationContentMoved:Be,setupPresentationTabDeleted:Ue,setupPresentationTabEdited:ze,setupPresentationTabMoved:Fe,setupSEOViewed:Ve}}const ie=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:ve,useAnalyticsProfile:Re,useAnalyticsRecruitment:Pe,useAnalyticsVisualBuilder:ke},Symbol.toStringTag,{value:"Module"}));function _i(){function e(i){return g().identify(i.id,{email:i.email,firstName:i.firstname,lastName:i.lastname,createdAt:i.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let i=!1;return function(n){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(i=!0)}(navigator.userAgent||navigator.vendor||window.opera),i}return{identifyCandidate:e}}let z=null;const Bi=async(e,t)=>{try{return await V(),A.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{A.error("[identify]",[e,t])}},Ui=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await V(),A.info("[page]",[e,t,i]),window.analytics.page(e,{category:t,...i})}catch{A.error("[page]",[e,t,i])}},zi=async(e,t,i)=>{typeof i!="object"&&(i={});try{return await V(),A.info("[track]",[e,t,i]),window.analytics.track(e,{category:t,...i})}catch{A.error("[track]",[e,t,i])}},K=()=>{const e=O.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Ee=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)A.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const i=Array.prototype.slice.call(arguments);return i.unshift(t),e.push(i),e}};for(let t=0;t<e.methods.length;t++){const i=e.methods[t];e[i]=e.factory(i)}e.load=function(t,i){const n=document.createElement("script");n.id="analytics-script",n.type="text/javascript",n.async=!0,n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",n.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(n,s),e._loadOptions=i},e._writeKey=K(),e.SNIPPET_VERSION="4.16.1",e.load(K()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},V=()=>(z!==null||(z=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{A.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{A.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),A.info("Loading Analytics script."),window.analytics)return e();Ee()})),z),Fi={key:K,appendScript:Ee,ready:V,identify:Bi,page:Ui,track:zi},Vi="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let Ie=!1;const Ce=()=>new Promise(e=>{T()||Ie||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),Qi())}),Hi=(e,t)=>Ce().then(()=>{T()||qi(e,t)}),qi=(e,t)=>{const i=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(i,"place_changed",()=>{const n=i.getPlace();n.formatted_address&&t&&t(n.formatted_address,n)})},Qi=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+Vi+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),Ie=!0},Gi={scriptReady:Ce,autocompleteInput:Hi},Ki={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},Wi={fr:Ki};let W=null;const Se=()=>W,Ji=(e={})=>{let t=e.locale||"fr";const i=u=>t=u,n=()=>t,s=Z(Wi,(e==null?void 0:e.messages)||{}),c=(u,r)=>{const a=L(s,`${t}.${u}`);return a?r?Zi(a,r):a:u},l=(u,r)=>{const a=L(s,`${t}.${u}`);return a?Xi(a,r):u};return W={t:c,tNode:l,setLocale:i,getLocale:n,install:u=>{u.config.globalProperties.$t=c,u.config.globalProperties.$tNode=l}},W},Zi=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(i,n)=>L(t,n)):null,Xi=(e,t)=>{if(!e)return null;const i=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(n=>n!=="").map(n=>{const s=n.startsWith("{%")&&n.endsWith("%}")?"slot":n.startsWith("{{")&&n.endsWith("}}")?"variable":"text";if(s==="text")return()=>se.text(n);n=n.replace(/[{}%]/g,"").trim();const c=n.match(/^[a-zA-Z_.]+/)[0];n=n.replace(c,"").trim();const l={};return n!==""&&([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((r,a)=>(a[3]===void 0?G(r,a[1],L(t,a[1])):G(r,a[1],L(t,a[3])),r),l),[...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((r,a)=>{let p=a[2];return new RegExp(/^[0-9]*$/).exec(a[2])?p=parseInt(a[2]):new RegExp(/^(true|false)$/).exec(a[2])&&(p=a[2]==="true"),r[a[1]]=p,r},l)),m=>se[s](c,t,m,l)});return{setup:(n,{slots:s})=>()=>i.map(c=>c(s))}},se={slot:(e,t,i,n)=>$.h("span",{class:"node node--slot"},i[e.trim()](n)),variable:(e,t)=>$.h("span",{class:"node node--variable"},L(t,e.trim())),text:e=>$.h("span",{class:"node node--text"},e)};function Yi(e){const{t}=Se(),i={justNow:t("timeAgo.just-now"),past:n=>n.match(/\d/)?t("timeAgo.ago",[n]):n,future:n=>n.match(/\d/)?t("timeAgo.in",[n]):n,month:(n,s)=>n===1?t(s?"timeAgo.last-month":"timeAgo.next-month"):`${n} ${t("timeAgo.month",n)}`,year:(n,s)=>n===1?t(s?"timeAgo.last-year":"timeAgo.next-year"):`${n} ${t("timeAgo.year",n)}`,day:(n,s)=>n===1?t(s?"timeAgo.yesterday":"timeAgo.tomorrow"):`${n} ${t("timeAgo.day",n)}`,week:(n,s)=>n===1?t(s?"timeAgo.last-week":"timeAgo.next-week"):`${n} ${t("timeAgo.week",n)}`,hour:n=>`${n} ${t("timeAgo.hour",n)}`,minute:n=>`${n} ${t("timeAgo.minute",n)}`,second:n=>`${n} ${t("timeAgo.second",n)}`,invalid:""};return We.useTimeAgo(e,{fullDateFormatter:n=>n.toLocaleDateString(),messages:i})}function es(){let e=null;function t(){return e}function i(){return e.controller}function n(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function s(){return e.action}function c(){return e.arguments}function l(){return!!(e&&e.controller&&e.action)}function m(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,r)=>{const a=r.split("=");return a[0]==="controller"||a[0]==="action"?u[a[0]]=decodeURIComponent(a[1]):u.arguments[a[0]]=decodeURIComponent(a[1]),u},{controller:null,action:null,arguments:{}}))}return m(),{getParams:t,getController:i,getControllerComposableName:n,getAction:s,getArguments:c,hasAction:l}}function ts(){async function e({domain:n,event:s,...c}){const l="useAnalytics"+n.charAt(0).toUpperCase()+n.slice(1);if(!t(l))throw new Error(`Domain ${n} is not defined`);const m=ie[l]();if(!i(m,s))throw new Error(`Event ${s} is not defined in domain ${n}`);return m[s](c)}function t(n){return!!ie[n]}function i(n,s){return!!n[s]}return{call:e}}const re=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:ts},Symbol.toStringTag,{value:"Module"}));function ns(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!i())throw new Error(`Controller ${e.getController()} not found`);const s=re[e.getControllerComposableName()]();if(!n(s))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return s[e.getAction()](e.getArguments())}function i(){return e.getControllerComposableName()in re}function n(s){return e.getAction()in s}return{dispatch:t}}function is(){let e=!1;function t(s,c,l){n(),l()}function i(s,c,l){if(!e)return e=!0,t(s,c,l);l()}function n(){const s=es();if(!s.hasAction())return;ns(s).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:i,handle:n}}const ss=()=>({getAssetUrl:t=>`${O.getBaseAssetsUrl()}${t}`}),v=()=>O.getMainAppHost(),rs=()=>`${v()}/rh/establishments`,os=e=>`${v()}/rh/establishment/${e}`,as=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},cs=()=>`${v()}/rh/dashboard`,us=e=>`${v()}/candidate-invite/establishment/${e}`,ls=(e,t=!1)=>t?`${v()}/cvbank/${e}`:`${v()}/rh/establishment/${e}/cvtheque`,ds=(e,t)=>`${v()}/user-profile/establishment/${e}/user/${t}`,ms=e=>`${v()}/rh/establishment/${e}/recruitment`,ps=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}`,fs=(e,t)=>`${v()}/rh/establishment/${e}/recruitment/${t}/kanban`,hs=e=>`${v()}/rh/establishment/${e}/career-configuration`,ys=(e,t=null)=>t?`${v()}/career-website/${e}/${t}`:`${v()}/career-website/${e}`,gs=(e,t)=>`${v()}/career-website-preview/${e}/${t}`,bs=(e,t=null)=>{const i=v().replace("://",`://${e}.`);return t?`${i}?_version=${t}`:`${i}`},ws=e=>`${v()}/rh/establishment/${e}/stats`,As=e=>`${v()}/rh/establishment/${e}/backoffice`,vs=()=>`${v()}/rh/settings/general`;function Rs(){return{root:v,establishments:rs,establishment:os,img:as,dashboard:cs,candidateInvite:us,cvtheque:ls,userProfile:ds,recruitments:ms,recruitment:ps,recruitmentKanban:fs,career:hs,careerConfig:ys,careerPreview:gs,careerWebsite:bs,statistics:ws,backoffice:As,userSettings:vs}}const oe=new Set;let D,J={ignore:e=>e.startsWith("Ui")};const Q=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)D.has(t)||oe.has(t)||J.ignore(t)||(oe.add(t),A.error(`Undefined CSS class: ${t}`))}},Oe=e=>{var t;for(const i of e)if(i!=null&&i.cssRules&&(i==null?void 0:i.cssRules.length)>0)Oe(i.cssRules);else if(i.selectorText){const n=(t=i.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(n)for(const s of n)D.add(s.substr(1))}},Ps=(e={})=>{if(D)return D;D=new Set,J={...J,...e},Oe(document.styleSheets),new MutationObserver(i=>{for(const n of i)if(n.type==="childList"&&(n!=null&&n.addedNodes)){for(const s of n.addedNodes)if(!(s.nodeType===3||s.nodeType===8)){Q(s);for(const c of s.querySelectorAll("*"))Q(c)}}else(n==null?void 0:n.attributeName)==="class"&&Q(n.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},ks="0.2.64";exports.Analytics=Fi;exports.BaseLogger=F;exports.Gmap=Gi;exports.SDKConfig=O;exports.SDKLogger=A;exports.VERSION=ks;exports._clone=ce;exports._get=L;exports._merge=Z;exports._set=G;exports.createI18n=Ji;exports.ensureScheme=Pt;exports.inBrowser=dt;exports.inNode=T;exports.isArray=X;exports.isArrayOf=At;exports.isBoolean=mt;exports.isDate=ht;exports.isFalsy=wt;exports.isFunction=yt;exports.isMobile=lt;exports.isNotNullOrUndefined=gt;exports.isNull=le;exports.isNullOrUndefined=me;exports.isNumber=pt;exports.isObject=ue;exports.isObjectOf=vt;exports.isString=ft;exports.isTruthy=bt;exports.isUndefined=de;exports.secureScheme=Rt;exports.useActivityRepository=Jt;exports.useAnalyticsHublerApplication=ve;exports.useAnalyticsIdentify=_i;exports.useAnalyticsProfile=Re;exports.useAnalyticsRecruitment=Pe;exports.useAnalyticsVisualBuilder=ke;exports.useAssetUrls=ss;exports.useAuthentication=j;exports.useAuthorization=Ae;exports.useAuthorizationStore=xi;exports.useCanAccessEstablishmentMiddleware=ji;exports.useCandidateRepository=cn;exports.useCommentRepository=pn;exports.useContractTypeRepository=yn;exports.useCookieStorage=fe;exports.useCvbankRepository=wn;exports.useCvthequeRepository=vn;exports.useDiplomaRepository=Pn;exports.useDocumentRepository=On;exports.useDomainUrls=Rs;exports.useEmailHistoryRepository=Ln;exports.useEmailRepository=Nn;exports.useEmailTemplateRepository=xn;exports.useEstablishmentCareerRepository=Vn;exports.useEstablishmentRepository=Y;exports.useFeatureFlagRepository=Kn;exports.useI18n=Se;exports.useJobRepository=Zn;exports.useLabelRepository=ii;exports.useLocaleTimeAgo=Yi;exports.useOfferRepository=ri;exports.usePrivateRequest=y;exports.useQSAction=is;exports.useRecruiterRepository=ai;exports.useRecruitmentRepository=hi;exports.useRegisterRepository=Ai;exports.useRegistrationRepository=Ri;exports.useRequest=R;exports.useSpecialityRepository=Ei;exports.useTagRepository=Ci;exports.useTalentRepository=Ti;exports.useUndefinedCssClasses=Ps;exports.useUserRepository=ee;
|
|
6
|
+
*/var vn=Br,Zt=Dr,$r=Object.prototype.toString,Le=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Br(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},i=r.decode||Lr,a=0;a<e.length;){var l=e.indexOf("=",a);if(l===-1)break;var y=e.indexOf(";",a);if(y===-1)y=e.length;else if(y<l){a=e.lastIndexOf(";",l-1)+1;continue}var u=e.slice(a,l).trim();if(n[u]===void 0){var d=e.slice(l+1,y).trim();d.charCodeAt(0)===34&&(d=d.slice(1,-1)),n[u]=Vr(d,i)}a=y+1}return n}function Dr(e,t,n){var r=n||{},i=r.encode||jr;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Le.test(e))throw new TypeError("argument name is invalid");var a=i(t);if(a&&!Le.test(a))throw new TypeError("argument val is invalid");var l=e+"="+a;if(r.maxAge!=null){var y=r.maxAge-0;if(isNaN(y)||!isFinite(y))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(y)}if(r.domain){if(!Le.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!Le.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){var u=r.expires;if(!Ur(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+u.toUTCString()}if(r.httpOnly&&(l+="; HttpOnly"),r.secure&&(l+="; Secure"),r.partitioned&&(l+="; Partitioned"),r.priority){var d=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(d){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var p=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(p){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l}function Lr(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function jr(e){return encodeURIComponent(e)}function Ur(e){return $r.call(e)==="[object Date]"||e instanceof Date}function Vr(e,t){try{return t(e)}catch{return e}}function Gr(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Wr(e){return typeof e=="string"?vn(e):typeof e=="object"&&e!==null?e:{}}function ot(e,t={}){const n=zr(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function zr(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Hr{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=vn(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=Wr(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Gr()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:ot(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),ot(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=ot(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Zt(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Zt(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function qr(e,{doNotParse:t=!1,autoUpdateDependencies:n=!1}={},r=new Hr){const i=n?[...e||[]]:e;let a=r.getAll({doNotParse:!0});const l=Ie.ref(0),y=()=>{const u=r.getAll({doNotParse:!0});xr(i||null,u,a)&&l.value++,a=u};return r.addChangeListener(y),Mr(()=>{r.removeChangeListener(y)}),{get:(...u)=>(n&&i&&!i.includes(u[0])&&i.push(u[0]),l.value,r.get(u[0],{doNotParse:t,...u[1]})),getAll:(...u)=>(l.value,r.getAll({doNotParse:t,...u[0]})),set:(...u)=>r.set(...u),remove:(...u)=>r.remove(...u),addChangeListener:(...u)=>r.addChangeListener(...u),removeChangeListener:(...u)=>r.removeChangeListener(...u)}}function xr(e,t,n){if(!e)return!0;for(const r of e)if(t[r]!==n[r])return!0;return!1}const Qr=()=>{let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},Jr=()=>typeof window<"u"&&typeof window.document<"u",de=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null,he=(e,t,n)=>{const r=typeof t=="string"?t.split("."):[t];let i=e;const a=y=>y!=null,l=y=>typeof y=="object";for(const[y,u]of r.entries()){if(!a(i))return n;if(y===r.length-1)return a(i[u])?i[u]:n;if(!l(i[u]))return n;i=i[u]}return n},Tt=(e,t,n)=>{const r=typeof t=="string"?t.split("."):[t],i=y=>typeof y=="number"||/^\d$/g.test(y),a=y=>parseInt(y,10);let l=e;return r.forEach((y,u)=>{if(u===r.length-1)l[y]=n;else{const d=i(r[u+1])?[]:{};y=i(y)?a(y):y,l[y]=l[y]??d,l=l[y]}}),e},Sn=e=>{if(typeof e=="object"){if(Array.isArray(e))return[...e];if(Object(e)===e)return{...e}}return e},Lt=(e,t)=>{const n={...e};for(const[r,i]of Object.entries(t))r in n&&typeof n[r]=="object"&&typeof i=="object"?n[r]=Lt(n[r],i):n[r]=Sn(i);return n},Kr=e=>typeof e=="boolean",Xr=e=>typeof e=="number",Zr=e=>typeof e=="string",jt=e=>Array.isArray(e),Ut=e=>typeof e=="object"&&!jt(e)&&e!==null,Yr=e=>e instanceof Date,ei=e=>typeof e=="function",An=e=>e===null,En=e=>e===void 0,In=e=>An(e)||En(e),ti=e=>!In(e),ni=e=>!!e,ri=e=>!e,ii=(e,t)=>jt(e)&&e.every(n=>t(n)),oi=(e,t)=>Ut(e)&&Object.values(e).every(n=>t(n)),si=(e,t)=>Ut(e)&&Object.entries(t).every(([n,r])=>r(e[n])),ai=e=>e.startsWith("http:")?e.replace("http:","https:"):e,ui=(e,t=!1)=>e.startsWith("http:")||e.startsWith("https:")?e:t?`https://${e}`:`http://${e}`,Tn=()=>typeof window<"u"&&(window!=null&&window.location)?new URL(window.location).hostname:void 0,Yt=()=>{const e=Tn();return!e||e==="localhost"?e:`.${e}`},ci=()=>({path:"/"}),li=e=>({path:"/",domain:e,sameSite:"none",secure:!0}),st=e=>{if(!(de()||!e))return e.startsWith("localhost")?ci():li(e)};function Pn(){const e=qr(),t=a=>e.get(a),n=(a,l)=>e.set(a,l,st(Yt())),r=a=>{e.remove(a),e.remove(a,st(Tn())),e.remove(a,st(Yt()))};return{getItem:t,setItem:n,removeItem:r,clear:()=>Object.keys(e.getAll()).forEach(a=>r(a))}}var Rn=Object.freeze({ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}),Me={},fi=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,n){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=n}},di=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16});const en=Symbol(),tn=Symbol(),se=Symbol(),nn=Symbol();let ie=class{constructor(t,n,r,i){this[en]=t,this[tn]=n,this[se]=r,this[nn]=i}next(){const t=this[en],n=this[nn],r=this[tn];if(!this[se])return{done:!0,value:r};const i=this[se];return n===1?this[se]=t._node(i).previousSibling:n===2?this[se]=t._node(i).nextSibling:n===3?this[se]=t._node(i).parent:n===4?this[se]=t.preceding(i,{root:r}):this[se]=t.following(i,{root:r}),{done:!1,value:i}}};Object.defineProperty(ie.prototype,Symbol.iterator,{value:function(){return this},writable:!1});ie.PREV=1;ie.NEXT=2;ie.PARENT=3;ie.PRECEDING=4;ie.FOLLOWING=5;Object.freeze(ie);Object.freeze(ie.prototype);var pi=ie;const yi=fi,ae=di,J=pi;function at(){return!0}function ve(e,t){return e[e.length-1-t]}let Nn=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;const n=t[this.symbol];return n||(t[this.symbol]=new yi)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let n,r=t;for(;n=this._node(r).lastChild;)r=n;return r}preceding(t,n){const r=n&&n.root;if(t===r)return null;const i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,n){const r=n&&n.root,a=!(n&&n.skipChildren)&&this._node(t).firstChild;if(a)return a;let l=t;do{if(l===r)return null;const y=this._node(l).nextSibling;if(y)return y;l=this._node(l).parent}while(l);return null}childrenToArray(t,n){const r=n&&n.array||[],i=n&&n.filter||at,a=n&&n.thisArg||void 0,l=this._node(t);let y=l.firstChild,u=0;for(;y;){const d=this._node(y);d.setCachedIndex(l,u),i.call(a,y)&&r.push(y),y=d.nextSibling,++u}return r}ancestorsToArray(t,n){const r=n&&n.array||[],i=n&&n.filter||at,a=n&&n.thisArg||void 0;let l=t;for(;l;)i.call(a,l)&&r.push(l),l=this._node(l).parent;return r}treeToArray(t,n){const r=n&&n.array||[],i=n&&n.filter||at,a=n&&n.thisArg||void 0;let l=t;for(;l;)i.call(a,l)&&r.push(l),l=this.following(l,{root:t});return r}childrenIterator(t,n){const r=n&&n.reverse,i=this._node(t);return new J(this,t,r?i.lastChild:i.firstChild,r?J.PREV:J.NEXT)}previousSiblingsIterator(t){return new J(this,t,this._node(t).previousSibling,J.PREV)}nextSiblingsIterator(t){return new J(this,t,this._node(t).nextSibling,J.NEXT)}ancestorsIterator(t){return new J(this,t,t,J.PARENT)}treeIterator(t,n){const r=n&&n.reverse;return new J(this,t,r?this.lastInclusiveDescendant(t):t,r?J.PRECEDING:J.FOLLOWING)}index(t){const n=this._node(t),r=this._node(n.parent);if(!r)return-1;let i=n.getCachedIndex(r);if(i>=0)return i;i=0;let a=r.firstChild;if(r.childIndexCachedUpTo){const l=this._node(r.childIndexCachedUpTo);a=l.nextSibling,i=l.getCachedIndex(r)+1}for(;a;){const l=this._node(a);if(l.setCachedIndex(r,i),a===t)break;++i,a=l.nextSibling}return r.childIndexCachedUpTo=t,i}childrenCount(t){const n=this._node(t);return n.lastChild?this.index(n.lastChild)+1:0}compareTreePosition(t,n){if(t===n)return 0;const r=[];{let p=t;for(;p;){if(p===n)return ae.CONTAINS|ae.PRECEDING;r.push(p),p=this.parent(p)}}const i=[];{let p=n;for(;p;){if(p===t)return ae.CONTAINED_BY|ae.FOLLOWING;i.push(p),p=this.parent(p)}}const a=ve(r,0);if(!a||a!==ve(i,0))return ae.DISCONNECTED;let l=0;const y=Math.min(r.length,i.length);for(let p=0;p<y;++p){const h=ve(r,p),o=ve(i,p);if(h!==o)break;l=p}const u=this.index(ve(r,l+1));return this.index(ve(i,l+1))<u?ae.PRECEDING:ae.FOLLOWING}remove(t){const n=this._node(t),r=this._node(n.parent),i=this._node(n.previousSibling),a=this._node(n.nextSibling);return r&&(r.firstChild===t&&(r.firstChild=n.nextSibling),r.lastChild===t&&(r.lastChild=n.previousSibling)),i&&(i.nextSibling=n.nextSibling),a&&(a.previousSibling=n.previousSibling),n.parent=null,n.previousSibling=null,n.nextSibling=null,n.cachedIndex=-1,n.cachedIndexVersion=NaN,r&&r.childrenChanged(),t}insertBefore(t,n){const r=this._node(t),i=this._node(r.previousSibling),a=this._node(n),l=this._node(r.parent);if(a.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return a.parent=r.parent,a.previousSibling=r.previousSibling,a.nextSibling=t,r.previousSibling=n,i&&(i.nextSibling=n),l&&l.firstChild===t&&(l.firstChild=n),l&&l.childrenChanged(),n}insertAfter(t,n){const r=this._node(t),i=this._node(r.nextSibling),a=this._node(n),l=this._node(r.parent);if(a.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return a.parent=r.parent,a.previousSibling=t,a.nextSibling=r.nextSibling,r.nextSibling=n,i&&(i.previousSibling=n),l&&l.lastChild===t&&(l.lastChild=n),l&&l.childrenChanged(),n}prependChild(t,n){const r=this._node(t),i=this._node(n);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return r.hasChildren?this.insertBefore(r.firstChild,n):(i.parent=t,r.firstChild=n,r.lastChild=n,r.childrenChanged()),n}appendChild(t,n){const r=this._node(t),i=this._node(n);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return r.hasChildren?this.insertAfter(r.lastChild,n):(i.parent=t,r.firstChild=n,r.lastChild=n,r.childrenChanged()),n}};var hi=Nn;Nn.TreePosition=ae;const mi=hi;Me.cloningSteps=Symbol("cloning steps");Me.domSymbolTree=new mi("DOM SymbolTree");const je=Rn,{domSymbolTree:_e}=Me;function gi(e){switch(e.nodeType){case je.DOCUMENT_TYPE_NODE:return 0;case je.TEXT_NODE:case je.PROCESSING_INSTRUCTION_NODE:case je.COMMENT_NODE:return e.data.length;default:return _e.childrenCount(e)}}function bi(e){for(;_e.parent(e);)e=_e.parent(e);return e}function wi(e,t){for(;t;){if(e===t)return!0;t=_e.parent(t)}return!1}function vi(e,t){if(e===t)return!1;let n=t;for(;n;){if(n===e)return!0;n=_e.following(n)}return!1}var Si={nodeLength:gi,nodeRoot:bi,isInclusiveAncestor:wi,isFollowing:vi},ge={};ge.HTML_NS="http://www.w3.org/1999/xhtml";ge.MATHML_NS="http://www.w3.org/1998/Math/MathML";ge.SVG_NS="http://www.w3.org/2000/svg";ge.XLINK_NS="http://www.w3.org/1999/xlink";ge.XML_NS="http://www.w3.org/XML/1998/namespace";ge.XMLNS_NS="http://www.w3.org/2000/xmlns/";var Cn={},On={},_n=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,n);if(l.value!==i||l.enumerable!==!0)return!1}return!0},Ai=_n,Ye=function(){return Ai()&&!!Symbol.toStringTag},rn=typeof Symbol<"u"&&Symbol,Ei=_n,Ii=function(){return typeof rn!="function"||typeof Symbol!="function"||typeof rn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ei()},on={foo:{}},Ti=Object,Pi=function(){return{__proto__:on}.foo===on.foo&&!({__proto__:null}instanceof Ti)},Ri="Function.prototype.bind called on incompatible ",ut=Array.prototype.slice,Ni=Object.prototype.toString,Ci="[object Function]",Oi=function(t){var n=this;if(typeof n!="function"||Ni.call(n)!==Ci)throw new TypeError(Ri+n);for(var r=ut.call(arguments,1),i,a=function(){if(this instanceof i){var p=n.apply(this,r.concat(ut.call(arguments)));return Object(p)===p?p:this}else return n.apply(t,r.concat(ut.call(arguments)))},l=Math.max(0,n.length-r.length),y=[],u=0;u<l;u++)y.push("$"+u);if(i=Function("binder","return function ("+y.join(",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var d=function(){};d.prototype=n.prototype,i.prototype=new d,d.prototype=null}return i},_i=Oi,Vt=Function.prototype.bind||_i,ki=Vt,Fi=ki.call(Function.call,Object.prototype.hasOwnProperty),F,Pe=SyntaxError,kn=Function,Te=TypeError,ct=function(e){try{return kn('"use strict"; return ('+e+").constructor;")()}catch{}},pe=Object.getOwnPropertyDescriptor;if(pe)try{pe({},"")}catch{pe=null}var lt=function(){throw new Te},Mi=pe?function(){try{return arguments.callee,lt}catch{try{return pe(arguments,"callee").get}catch{return lt}}}():lt,Se=Ii(),$i=Pi(),W=Object.getPrototypeOf||($i?function(e){return e.__proto__}:null),Ae={},Bi=typeof Uint8Array>"u"||!W?F:W(Uint8Array),ye={"%AggregateError%":typeof AggregateError>"u"?F:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?F:ArrayBuffer,"%ArrayIteratorPrototype%":Se&&W?W([][Symbol.iterator]()):F,"%AsyncFromSyncIteratorPrototype%":F,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":typeof Atomics>"u"?F:Atomics,"%BigInt%":typeof BigInt>"u"?F:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?F:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?F:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?F:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?F:Float32Array,"%Float64Array%":typeof Float64Array>"u"?F:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?F:FinalizationRegistry,"%Function%":kn,"%GeneratorFunction%":Ae,"%Int8Array%":typeof Int8Array>"u"?F:Int8Array,"%Int16Array%":typeof Int16Array>"u"?F:Int16Array,"%Int32Array%":typeof Int32Array>"u"?F:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Se&&W?W(W([][Symbol.iterator]())):F,"%JSON%":typeof JSON=="object"?JSON:F,"%Map%":typeof Map>"u"?F:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Se||!W?F:W(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?F:Promise,"%Proxy%":typeof Proxy>"u"?F:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?F:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?F:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Se||!W?F:W(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?F:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Se&&W?W(""[Symbol.iterator]()):F,"%Symbol%":Se?Symbol:F,"%SyntaxError%":Pe,"%ThrowTypeError%":Mi,"%TypedArray%":Bi,"%TypeError%":Te,"%Uint8Array%":typeof Uint8Array>"u"?F:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?F:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?F:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?F:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?F:WeakMap,"%WeakRef%":typeof WeakRef>"u"?F:WeakRef,"%WeakSet%":typeof WeakSet>"u"?F:WeakSet};if(W)try{null.error}catch(e){var Di=W(W(e));ye["%Error.prototype%"]=Di}var Li=function e(t){var n;if(t==="%AsyncFunction%")n=ct("async function () {}");else if(t==="%GeneratorFunction%")n=ct("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ct("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&W&&(n=W(i.prototype))}return ye[t]=n,n},sn={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$e=Vt,Je=Fi,ji=$e.call(Function.call,Array.prototype.concat),Ui=$e.call(Function.apply,Array.prototype.splice),an=$e.call(Function.call,String.prototype.replace),Ke=$e.call(Function.call,String.prototype.slice),Vi=$e.call(Function.call,RegExp.prototype.exec),Gi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Wi=/\\(\\)?/g,zi=function(t){var n=Ke(t,0,1),r=Ke(t,-1);if(n==="%"&&r!=="%")throw new Pe("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Pe("invalid intrinsic syntax, expected opening `%`");var i=[];return an(t,Gi,function(a,l,y,u){i[i.length]=y?an(u,Wi,"$1"):l||a}),i},Hi=function(t,n){var r=t,i;if(Je(sn,r)&&(i=sn[r],r="%"+i[0]+"%"),Je(ye,r)){var a=ye[r];if(a===Ae&&(a=Li(r)),typeof a>"u"&&!n)throw new Te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:a}}throw new Pe("intrinsic "+t+" does not exist!")},Gt=function(t,n){if(typeof t!="string"||t.length===0)throw new Te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Te('"allowMissing" argument must be a boolean');if(Vi(/^%?[^%]*%?$/,t)===null)throw new Pe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=zi(t),i=r.length>0?r[0]:"",a=Hi("%"+i+"%",n),l=a.name,y=a.value,u=!1,d=a.alias;d&&(i=d[0],Ui(r,ji([0,1],d)));for(var p=1,h=!0;p<r.length;p+=1){var o=r[p],c=Ke(o,0,1),f=Ke(o,-1);if((c==='"'||c==="'"||c==="`"||f==='"'||f==="'"||f==="`")&&c!==f)throw new Pe("property names with quotes must have matching quotes");if((o==="constructor"||!h)&&(u=!0),i+="."+o,l="%"+i+"%",Je(ye,l))y=ye[l];else if(y!=null){if(!(o in y)){if(!n)throw new Te("base intrinsic for "+t+" exists, but the property is not available.");return}if(pe&&p+1>=r.length){var E=pe(y,o);h=!!E,h&&"get"in E&&!("originalValue"in E.get)?y=E.get:y=y[o]}else h=Je(y,o),y=y[o];h&&!u&&(ye[l]=y)}}return y},Fn={exports:{}};(function(e){var t=Vt,n=Gt,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(i,r),l=n("%Object.getOwnPropertyDescriptor%",!0),y=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(y)try{y({},"a",{value:1})}catch{y=null}e.exports=function(h){var o=a(t,i,arguments);if(l&&y){var c=l(o,"length");c.configurable&&y(o,"length",{value:1+u(0,h.length-(arguments.length-1))})}return o};var d=function(){return a(t,r,arguments)};y?y(e.exports,"apply",{value:d}):e.exports.apply=d})(Fn);var qi=Fn.exports,Mn=Gt,$n=qi,xi=$n(Mn("String.prototype.indexOf")),Wt=function(t,n){var r=Mn(t,!!n);return typeof r=="function"&&xi(t,".prototype.")>-1?$n(r):r},Qi=Ye(),Ji=Wt,Pt=Ji("Object.prototype.toString"),et=function(t){return Qi&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Pt(t)==="[object Arguments]"},Bn=function(t){return et(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Pt(t)!=="[object Array]"&&Pt(t.callee)==="[object Function]"},Ki=function(){return et(arguments)}();et.isLegacyArguments=Bn;var Xi=Ki?et:Bn,Zi=Object.prototype.toString,Yi=Function.prototype.toString,eo=/^\s*(?:function)?\*/,Dn=Ye(),ft=Object.getPrototypeOf,to=function(){if(!Dn)return!1;try{return Function("return function*() {}")()}catch{}},dt,no=function(t){if(typeof t!="function")return!1;if(eo.test(Yi.call(t)))return!0;if(!Dn){var n=Zi.call(t);return n==="[object GeneratorFunction]"}if(!ft)return!1;if(typeof dt>"u"){var r=to();dt=r?ft(r):!1}return ft(t)===dt},Ln=Function.prototype.toString,Ee=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Rt,ze;if(typeof Ee=="function"&&typeof Object.defineProperty=="function")try{Rt=Object.defineProperty({},"length",{get:function(){throw ze}}),ze={},Ee(function(){throw 42},null,Rt)}catch(e){e!==ze&&(Ee=null)}else Ee=null;var ro=/^\s*class\b/,Nt=function(t){try{var n=Ln.call(t);return ro.test(n)}catch{return!1}},pt=function(t){try{return Nt(t)?!1:(Ln.call(t),!0)}catch{return!1}},He=Object.prototype.toString,io="[object Object]",oo="[object Function]",so="[object GeneratorFunction]",ao="[object HTMLAllCollection]",uo="[object HTML document.all class]",co="[object HTMLCollection]",lo=typeof Symbol=="function"&&!!Symbol.toStringTag,fo=!(0 in[,]),Ct=function(){return!1};if(typeof document=="object"){var po=document.all;He.call(po)===He.call(document.all)&&(Ct=function(t){if((fo||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=He.call(t);return(n===ao||n===uo||n===co||n===io)&&t("")==null}catch{}return!1})}var yo=Ee?function(t){if(Ct(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ee(t,null,Rt)}catch(n){if(n!==ze)return!1}return!Nt(t)&&pt(t)}:function(t){if(Ct(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(lo)return pt(t);if(Nt(t))return!1;var n=He.call(t);return n!==oo&&n!==so&&!/^\[object HTML/.test(n)?!1:pt(t)},ho=yo,mo=Object.prototype.toString,jn=Object.prototype.hasOwnProperty,go=function(t,n,r){for(var i=0,a=t.length;i<a;i++)jn.call(t,i)&&(r==null?n(t[i],i,t):n.call(r,t[i],i,t))},bo=function(t,n,r){for(var i=0,a=t.length;i<a;i++)r==null?n(t.charAt(i),i,t):n.call(r,t.charAt(i),i,t)},wo=function(t,n,r){for(var i in t)jn.call(t,i)&&(r==null?n(t[i],i,t):n.call(r,t[i],i,t))},vo=function(t,n,r){if(!ho(n))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),mo.call(t)==="[object Array]"?go(t,n,i):typeof t=="string"?bo(t,n,i):wo(t,n,i)},Un=vo,yt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],So=typeof globalThis>"u"?Dt:globalThis,Vn=function(){for(var t=[],n=0;n<yt.length;n++)typeof So[yt[n]]=="function"&&(t[t.length]=yt[n]);return t},Ao=Gt,qe=Ao("%Object.getOwnPropertyDescriptor%",!0);if(qe)try{qe([],"length")}catch{qe=null}var Gn=qe,Wn=Un,Eo=Vn,zt=Wt,Io=zt("Object.prototype.toString"),zn=Ye(),xe=Gn,To=typeof globalThis>"u"?Dt:globalThis,Hn=Eo(),Po=zt("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},Ro=zt("String.prototype.slice"),qn={},ht=Object.getPrototypeOf;zn&&xe&&ht&&Wn(Hn,function(e){var t=new To[e];if(Symbol.toStringTag in t){var n=ht(t),r=xe(n,Symbol.toStringTag);if(!r){var i=ht(n);r=xe(i,Symbol.toStringTag)}qn[e]=r.get}});var No=function(t){var n=!1;return Wn(qn,function(r,i){if(!n)try{n=r.call(t)===i}catch{}}),n},xn=function(t){if(!t||typeof t!="object")return!1;if(!zn||!(Symbol.toStringTag in t)){var n=Ro(Io(t),8,-1);return Po(Hn,n)>-1}return xe?No(t):!1},Qn=Un,Co=Vn,Jn=Wt,mt=Gn,Oo=Jn("Object.prototype.toString"),Kn=Ye(),un=typeof globalThis>"u"?Dt:globalThis,_o=Co(),ko=Jn("String.prototype.slice"),Xn={},gt=Object.getPrototypeOf;Kn&&mt&>&&Qn(_o,function(e){if(typeof un[e]=="function"){var t=new un[e];if(Symbol.toStringTag in t){var n=gt(t),r=mt(n,Symbol.toStringTag);if(!r){var i=gt(n);r=mt(i,Symbol.toStringTag)}Xn[e]=r.get}}});var Fo=function(t){var n=!1;return Qn(Xn,function(r,i){if(!n)try{var a=r.call(t);a===i&&(n=a)}catch{}}),n},Mo=xn,$o=function(t){return Mo(t)?!Kn||!(Symbol.toStringTag in t)?ko(Oo(t),8,-1):Fo(t):!1};(function(e){var t=Xi,n=no,r=$o,i=xn;function a(v){return v.call.bind(v)}var l=typeof BigInt<"u",y=typeof Symbol<"u",u=a(Object.prototype.toString),d=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(l)var o=a(BigInt.prototype.valueOf);if(y)var c=a(Symbol.prototype.valueOf);function f(v,Nr){if(typeof v!="object")return!1;try{return Nr(v),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function E(v){return typeof Promise<"u"&&v instanceof Promise||v!==null&&typeof v=="object"&&typeof v.then=="function"&&typeof v.catch=="function"}e.isPromise=E;function P(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):i(v)||w(v)}e.isArrayBufferView=P;function s(v){return r(v)==="Uint8Array"}e.isUint8Array=s;function g(v){return r(v)==="Uint8ClampedArray"}e.isUint8ClampedArray=g;function A(v){return r(v)==="Uint16Array"}e.isUint16Array=A;function I(v){return r(v)==="Uint32Array"}e.isUint32Array=I;function M(v){return r(v)==="Int8Array"}e.isInt8Array=M;function G(v){return r(v)==="Int16Array"}e.isInt16Array=G;function L(v){return r(v)==="Int32Array"}e.isInt32Array=L;function _(v){return r(v)==="Float32Array"}e.isFloat32Array=_;function C(v){return r(v)==="Float64Array"}e.isFloat64Array=C;function x(v){return r(v)==="BigInt64Array"}e.isBigInt64Array=x;function K(v){return r(v)==="BigUint64Array"}e.isBigUint64Array=K;function q(v){return u(v)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function ce(v){return typeof Map>"u"?!1:q.working?q(v):v instanceof Map}e.isMap=ce;function Q(v){return u(v)==="[object Set]"}Q.working=typeof Set<"u"&&Q(new Set);function te(v){return typeof Set>"u"?!1:Q.working?Q(v):v instanceof Set}e.isSet=te;function Z(v){return u(v)==="[object WeakMap]"}Z.working=typeof WeakMap<"u"&&Z(new WeakMap);function le(v){return typeof WeakMap>"u"?!1:Z.working?Z(v):v instanceof WeakMap}e.isWeakMap=le;function Y(v){return u(v)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function b(v){return Y(v)}e.isWeakSet=b;function ee(v){return u(v)==="[object ArrayBuffer]"}ee.working=typeof ArrayBuffer<"u"&&ee(new ArrayBuffer);function N(v){return typeof ArrayBuffer>"u"?!1:ee.working?ee(v):v instanceof ArrayBuffer}e.isArrayBuffer=N;function m(v){return u(v)==="[object DataView]"}m.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&m(new DataView(new ArrayBuffer(1),0,1));function w(v){return typeof DataView>"u"?!1:m.working?m(v):v instanceof DataView}e.isDataView=w;var S=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function O(v){return u(v)==="[object SharedArrayBuffer]"}function B(v){return typeof S>"u"?!1:(typeof O.working>"u"&&(O.working=O(new S)),O.working?O(v):v instanceof S)}e.isSharedArrayBuffer=B;function D(v){return u(v)==="[object AsyncFunction]"}e.isAsyncFunction=D;function k(v){return u(v)==="[object Map Iterator]"}e.isMapIterator=k;function $(v){return u(v)==="[object Set Iterator]"}e.isSetIterator=$;function j(v){return u(v)==="[object Generator]"}e.isGeneratorObject=j;function H(v){return u(v)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=H;function fe(v){return f(v,d)}e.isNumberObject=fe;function Be(v){return f(v,p)}e.isStringObject=Be;function we(v){return f(v,h)}e.isBooleanObject=we;function De(v){return l&&f(v,o)}e.isBigIntObject=De;function Xt(v){return y&&f(v,c)}e.isSymbolObject=Xt;function Pr(v){return fe(v)||Be(v)||we(v)||De(v)||Xt(v)}e.isBoxedPrimitive=Pr;function Rr(v){return typeof Uint8Array<"u"&&(N(v)||B(v))}e.isAnyArrayBuffer=Rr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(e,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})})(On);var Bo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},Ot={exports:{}};typeof Object.create=="function"?Ot.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ot.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Do=Ot.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function(w){for(var S=Object.keys(w),O={},B=0;B<S.length;B++)O[S[B]]=Object.getOwnPropertyDescriptor(w,S[B]);return O},n=/%[sdj%]/g;e.format=function(m){if(!M(m)){for(var w=[],S=0;S<arguments.length;S++)w.push(l(arguments[S]));return w.join(" ")}for(var S=1,O=arguments,B=O.length,D=String(m).replace(n,function($){if($==="%%")return"%";if(S>=B)return $;switch($){case"%s":return String(O[S++]);case"%d":return Number(O[S++]);case"%j":try{return JSON.stringify(O[S++])}catch{return"[Circular]"}default:return $}}),k=O[S];S<B;k=O[++S])g(k)||!C(k)?D+=" "+k:D+=" "+l(k);return D},e.deprecate=function(m,w){if(typeof process<"u"&&process.noDeprecation===!0)return m;if(typeof process>"u")return function(){return e.deprecate(m,w).apply(this,arguments)};var S=!1;function O(){if(!S){if(process.throwDeprecation)throw new Error(w);process.traceDeprecation?console.trace(w):console.error(w),S=!0}return m.apply(this,arguments)}return O};var r={},i=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+a+"$","i")}e.debuglog=function(m){if(m=m.toUpperCase(),!r[m])if(i.test(m)){var w=process.pid;r[m]=function(){var S=e.format.apply(e,arguments);console.error("%s %d: %s",m,w,S)}}else r[m]=function(){};return r[m]};function l(m,w){var S={seen:[],stylize:u};return arguments.length>=3&&(S.depth=arguments[2]),arguments.length>=4&&(S.colors=arguments[3]),s(w)?S.showHidden=w:w&&e._extend(S,w),L(S.showHidden)&&(S.showHidden=!1),L(S.depth)&&(S.depth=2),L(S.colors)&&(S.colors=!1),L(S.customInspect)&&(S.customInspect=!0),S.colors&&(S.stylize=y),p(S,m,S.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(m,w){var S=l.styles[w];return S?"\x1B["+l.colors[S][0]+"m"+m+"\x1B["+l.colors[S][1]+"m":m}function u(m,w){return m}function d(m){var w={};return m.forEach(function(S,O){w[S]=!0}),w}function p(m,w,S){if(m.customInspect&&w&&q(w.inspect)&&w.inspect!==e.inspect&&!(w.constructor&&w.constructor.prototype===w)){var O=w.inspect(S,m);return M(O)||(O=p(m,O,S)),O}var B=h(m,w);if(B)return B;var D=Object.keys(w),k=d(D);if(m.showHidden&&(D=Object.getOwnPropertyNames(w)),K(w)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return o(w);if(D.length===0){if(q(w)){var $=w.name?": "+w.name:"";return m.stylize("[Function"+$+"]","special")}if(_(w))return m.stylize(RegExp.prototype.toString.call(w),"regexp");if(x(w))return m.stylize(Date.prototype.toString.call(w),"date");if(K(w))return o(w)}var j="",H=!1,fe=["{","}"];if(P(w)&&(H=!0,fe=["[","]"]),q(w)){var Be=w.name?": "+w.name:"";j=" [Function"+Be+"]"}if(_(w)&&(j=" "+RegExp.prototype.toString.call(w)),x(w)&&(j=" "+Date.prototype.toUTCString.call(w)),K(w)&&(j=" "+o(w)),D.length===0&&(!H||w.length==0))return fe[0]+j+fe[1];if(S<0)return _(w)?m.stylize(RegExp.prototype.toString.call(w),"regexp"):m.stylize("[Object]","special");m.seen.push(w);var we;return H?we=c(m,w,S,k,D):we=D.map(function(De){return f(m,w,S,k,De,H)}),m.seen.pop(),E(we,j,fe)}function h(m,w){if(L(w))return m.stylize("undefined","undefined");if(M(w)){var S="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return m.stylize(S,"string")}if(I(w))return m.stylize(""+w,"number");if(s(w))return m.stylize(""+w,"boolean");if(g(w))return m.stylize("null","null")}function o(m){return"["+Error.prototype.toString.call(m)+"]"}function c(m,w,S,O,B){for(var D=[],k=0,$=w.length;k<$;++k)Y(w,String(k))?D.push(f(m,w,S,O,String(k),!0)):D.push("");return B.forEach(function(j){j.match(/^\d+$/)||D.push(f(m,w,S,O,j,!0))}),D}function f(m,w,S,O,B,D){var k,$,j;if(j=Object.getOwnPropertyDescriptor(w,B)||{value:w[B]},j.get?j.set?$=m.stylize("[Getter/Setter]","special"):$=m.stylize("[Getter]","special"):j.set&&($=m.stylize("[Setter]","special")),Y(O,B)||(k="["+B+"]"),$||(m.seen.indexOf(j.value)<0?(g(S)?$=p(m,j.value,null):$=p(m,j.value,S-1),$.indexOf(`
|
|
7
|
+
`)>-1&&(D?$=$.split(`
|
|
8
|
+
`).map(function(H){return" "+H}).join(`
|
|
9
|
+
`).slice(2):$=`
|
|
10
|
+
`+$.split(`
|
|
11
|
+
`).map(function(H){return" "+H}).join(`
|
|
12
|
+
`))):$=m.stylize("[Circular]","special")),L(k)){if(D&&B.match(/^\d+$/))return $;k=JSON.stringify(""+B),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=m.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=m.stylize(k,"string"))}return k+": "+$}function E(m,w,S){var O=m.reduce(function(B,D){return D.indexOf(`
|
|
13
|
+
`)>=0,B+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?S[0]+(w===""?"":w+`
|
|
14
|
+
`)+" "+m.join(`,
|
|
15
|
+
`)+" "+S[1]:S[0]+w+" "+m.join(", ")+" "+S[1]}e.types=On;function P(m){return Array.isArray(m)}e.isArray=P;function s(m){return typeof m=="boolean"}e.isBoolean=s;function g(m){return m===null}e.isNull=g;function A(m){return m==null}e.isNullOrUndefined=A;function I(m){return typeof m=="number"}e.isNumber=I;function M(m){return typeof m=="string"}e.isString=M;function G(m){return typeof m=="symbol"}e.isSymbol=G;function L(m){return m===void 0}e.isUndefined=L;function _(m){return C(m)&&Q(m)==="[object RegExp]"}e.isRegExp=_,e.types.isRegExp=_;function C(m){return typeof m=="object"&&m!==null}e.isObject=C;function x(m){return C(m)&&Q(m)==="[object Date]"}e.isDate=x,e.types.isDate=x;function K(m){return C(m)&&(Q(m)==="[object Error]"||m instanceof Error)}e.isError=K,e.types.isNativeError=K;function q(m){return typeof m=="function"}e.isFunction=q;function ce(m){return m===null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||typeof m=="symbol"||typeof m>"u"}e.isPrimitive=ce,e.isBuffer=Bo;function Q(m){return Object.prototype.toString.call(m)}function te(m){return m<10?"0"+m.toString(10):m.toString(10)}var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var m=new Date,w=[te(m.getHours()),te(m.getMinutes()),te(m.getSeconds())].join(":");return[m.getDate(),Z[m.getMonth()],w].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=Do,e._extend=function(m,w){if(!w||!C(w))return m;for(var S=Object.keys(w),O=S.length;O--;)m[S[O]]=w[S[O]];return m};function Y(m,w){return Object.prototype.hasOwnProperty.call(m,w)}var b=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');if(b&&w[b]){var S=w[b];if(typeof S!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(S,b,{value:S,enumerable:!1,writable:!1,configurable:!0}),S}function S(){for(var O,B,D=new Promise(function(j,H){O=j,B=H}),k=[],$=0;$<arguments.length;$++)k.push(arguments[$]);k.push(function(j,H){j?B(j):O(H)});try{w.apply(this,k)}catch(j){B(j)}return D}return Object.setPrototypeOf(S,Object.getPrototypeOf(w)),b&&Object.defineProperty(S,b,{value:S,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(S,t(w))},e.promisify.custom=b;function ee(m,w){if(!m){var S=new Error("Promise was rejected with a falsy value");S.reason=m,m=S}return w(m)}function N(m){if(typeof m!="function")throw new TypeError('The "original" argument must be of type Function');function w(){for(var S=[],O=0;O<arguments.length;O++)S.push(arguments[O]);var B=S.pop();if(typeof B!="function")throw new TypeError("The last argument must be of type Function");var D=this,k=function(){return B.apply(D,arguments)};m.apply(this,S).then(function($){process.nextTick(k.bind(null,null,$))},function($){process.nextTick(ee.bind(null,$,k))})}return Object.setPrototypeOf(w,Object.getPrototypeOf(m)),Object.defineProperties(w,t(m)),w}e.callbackify=N})(Cn);var Zn={exports:{}};(function(e,t){function n(N){return typeof N=="object"&&N!==null||typeof N=="function"}const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty);function i(N,m){for(const w of Reflect.ownKeys(m)){const S=Reflect.getOwnPropertyDescriptor(m,w);if(S&&!Reflect.defineProperty(N,w,S))throw new TypeError(`Cannot redefine property: ${String(w)}`)}}function a(N,m){const w=h(N);return Object.defineProperties(Object.create(w["%Object.prototype%"]),Object.getOwnPropertyDescriptors(m))}const l=Symbol("wrapper"),y=Symbol("impl"),u=Symbol("SameObject caches"),d=Symbol.for("[webidl2js] constructor registry"),p=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);function h(N){if(r(N,d))return N[d];const m=Object.create(null);m["%Object.prototype%"]=N.Object.prototype,m["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new N.Array()[Symbol.iterator]()));try{m["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(N.eval("(async function* () {})").prototype))}catch{m["%AsyncIteratorPrototype%"]=p}return N[d]=m,m}function o(N,m,w){return N[u]||(N[u]=Object.create(null)),m in N[u]||(N[u][m]=w()),N[u][m]}function c(N){return N?N[l]:null}function f(N){return N?N[y]:null}function E(N){const m=c(N);return m||N}function P(N){const m=f(N);return m||N}const s=Symbol("internal");function g(N){if(typeof N!="string")return!1;const m=N>>>0;if(m===2**32-1)return!1;const w=`${m}`;return N===w}const A=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;function I(N){try{return A.call(N),!0}catch{return!1}}function M([N,m],w){let S;switch(w){case"key":S=N;break;case"value":S=m;break;case"key+value":S=[N,m];break}return{value:S,done:!1}}const G=Symbol("supports property index"),L=Symbol("supported property indices"),_=Symbol("supports property name"),C=Symbol("supported property names"),x=Symbol("indexed property get"),K=Symbol("indexed property set new"),q=Symbol("indexed property set existing"),ce=Symbol("named property get"),Q=Symbol("named property set new"),te=Symbol("named property set existing"),Z=Symbol("named property delete"),le=Symbol("async iterator get the next iteration result"),Y=Symbol("async iterator return steps"),b=Symbol("async iterator initialization steps"),ee=Symbol("async iterator end of iteration");e.exports={isObject:n,hasOwn:r,define:i,newObjectInRealm:a,wrapperSymbol:l,implSymbol:y,getSameObject:o,ctorRegistrySymbol:d,initCtorRegistry:h,wrapperForImpl:c,implForWrapper:f,tryWrapperForImpl:E,tryImplForWrapper:P,iterInternalSymbol:s,isArrayBuffer:I,isArrayIndexPropName:g,supportsPropertyIndex:G,supportedPropertyIndices:L,supportsPropertyName:_,supportedPropertyNames:C,indexedGet:x,indexedSetNew:K,indexedSetExisting:q,namedGet:ce,namedSetNew:Q,namedSetExisting:te,namedDelete:Z,asyncIteratorNext:le,asyncIteratorReturn:Y,asyncIteratorInit:b,asyncIteratorEOI:ee,iteratorResult:M}})(Zn);var oe=Zn.exports,Yn={},Ne={};(function(e){function t(s,g,A){return A.globals&&(s=A.globals[s.name]),new s(`${A.context?A.context:"Value"} ${g}.`)}function n(s,g){if(typeof s=="bigint")throw t(TypeError,"is a BigInt which cannot be converted to a number",g);return g.globals?g.globals.Number(s):Number(s)}function r(s){return s>0&&s%1===.5&&!(s&1)||s<0&&s%1===-.5&&(s&1)===1?y(Math.floor(s)):y(Math.round(s))}function i(s){return y(Math.trunc(s))}function a(s){return s<0?-1:1}function l(s,g){const A=s%g;return a(g)!==a(A)?A+g:A}function y(s){return s===0?0:s}function u(s,{unsigned:g}){let A,I;g?(A=0,I=2**s-1):(A=-(2**(s-1)),I=2**(s-1)-1);const M=2**s,G=2**(s-1);return(L,_={})=>{let C=n(L,_);if(C=y(C),_.enforceRange){if(!Number.isFinite(C))throw t(TypeError,"is not a finite number",_);if(C=i(C),C<A||C>I)throw t(TypeError,`is outside the accepted range of ${A} to ${I}, inclusive`,_);return C}return!Number.isNaN(C)&&_.clamp?(C=Math.min(Math.max(C,A),I),C=r(C),C):!Number.isFinite(C)||C===0?0:(C=i(C),C>=A&&C<=I?C:(C=l(C,M),!g&&C>=G?C-M:C))}}function d(s,{unsigned:g}){const A=Number.MAX_SAFE_INTEGER,I=g?0:Number.MIN_SAFE_INTEGER,M=g?BigInt.asUintN:BigInt.asIntN;return(G,L={})=>{let _=n(G,L);if(_=y(_),L.enforceRange){if(!Number.isFinite(_))throw t(TypeError,"is not a finite number",L);if(_=i(_),_<I||_>A)throw t(TypeError,`is outside the accepted range of ${I} to ${A}, inclusive`,L);return _}if(!Number.isNaN(_)&&L.clamp)return _=Math.min(Math.max(_,I),A),_=r(_),_;if(!Number.isFinite(_)||_===0)return 0;let C=BigInt(i(_));return C=M(s,C),Number(C)}}e.any=s=>s,e.undefined=()=>{},e.boolean=s=>!!s,e.byte=u(8,{unsigned:!1}),e.octet=u(8,{unsigned:!0}),e.short=u(16,{unsigned:!1}),e["unsigned short"]=u(16,{unsigned:!0}),e.long=u(32,{unsigned:!1}),e["unsigned long"]=u(32,{unsigned:!0}),e["long long"]=d(64,{unsigned:!1}),e["unsigned long long"]=d(64,{unsigned:!0}),e.double=(s,g={})=>{const A=n(s,g);if(!Number.isFinite(A))throw t(TypeError,"is not a finite floating-point value",g);return A},e["unrestricted double"]=(s,g={})=>n(s,g),e.float=(s,g={})=>{const A=n(s,g);if(!Number.isFinite(A))throw t(TypeError,"is not a finite floating-point value",g);if(Object.is(A,-0))return A;const I=Math.fround(A);if(!Number.isFinite(I))throw t(TypeError,"is outside the range of a single-precision floating-point value",g);return I},e["unrestricted float"]=(s,g={})=>{const A=n(s,g);return isNaN(A)||Object.is(A,-0)?A:Math.fround(A)},e.DOMString=(s,g={})=>{if(g.treatNullAsEmptyString&&s===null)return"";if(typeof s=="symbol")throw t(TypeError,"is a symbol, which cannot be converted to a string",g);return(g.globals?g.globals.String:String)(s)},e.ByteString=(s,g={})=>{const A=e.DOMString(s,g);let I;for(let M=0;(I=A.codePointAt(M))!==void 0;++M)if(I>255)throw t(TypeError,"is not a valid ByteString",g);return A},e.USVString=(s,g={})=>{const A=e.DOMString(s,g),I=A.length,M=[];for(let G=0;G<I;++G){const L=A.charCodeAt(G);if(L<55296||L>57343)M.push(String.fromCodePoint(L));else if(56320<=L&&L<=57343)M.push(String.fromCodePoint(65533));else if(G===I-1)M.push(String.fromCodePoint(65533));else{const _=A.charCodeAt(G+1);if(56320<=_&&_<=57343){const C=L&1023,x=_&1023;M.push(String.fromCodePoint(65536+1024*C+x)),++G}else M.push(String.fromCodePoint(65533))}}return M.join("")},e.object=(s,g={})=>{if(s===null||typeof s!="object"&&typeof s!="function")throw t(TypeError,"is not an object",g);return s};const p=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,h=typeof SharedArrayBuffer=="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function o(s){try{return p.call(s),!0}catch{return!1}}function c(s){try{return h.call(s),!0}catch{return!1}}function f(s){try{return new Uint8Array(s),!1}catch{return!0}}e.ArrayBuffer=(s,g={})=>{if(!o(s))throw g.allowShared&&!c(s)?t(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",g):t(TypeError,"is not an ArrayBuffer",g);if(f(s))throw t(TypeError,"is a detached ArrayBuffer",g);return s};const E=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;e.DataView=(s,g={})=>{try{E.call(s)}catch{throw t(TypeError,"is not a DataView",g)}if(!g.allowShared&&c(s.buffer))throw t(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",g);if(f(s.buffer))throw t(TypeError,"is backed by a detached ArrayBuffer",g);return s};const P=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(s=>{const{name:g}=s,A=/^[AEIOU]/u.test(g)?"an":"a";e[g]=(I,M={})=>{if(!ArrayBuffer.isView(I)||P.call(I)!==g)throw t(TypeError,`is not ${A} ${g} object`,M);if(!M.allowShared&&c(I.buffer))throw t(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",M);if(f(I.buffer))throw t(TypeError,"is a view on a detached ArrayBuffer",M);return I}}),e.ArrayBufferView=(s,g={})=>{if(!ArrayBuffer.isView(s))throw t(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",g);if(!g.allowShared&&c(s.buffer))throw t(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",g);if(f(s.buffer))throw t(TypeError,"is a view on a detached ArrayBuffer",g);return s},e.BufferSource=(s,g={})=>{if(ArrayBuffer.isView(s)){if(!g.allowShared&&c(s.buffer))throw t(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",g);if(f(s.buffer))throw t(TypeError,"is a view on a detached ArrayBuffer",g);return s}if(!g.allowShared&&!o(s))throw t(TypeError,"is not an ArrayBuffer or a view on one",g);if(g.allowShared&&!c(s)&&!o(s))throw t(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",g);if(f(s))throw t(TypeError,"is a detached ArrayBuffer",g);return s},e.DOMTimeStamp=e["unsigned long long"]})(Ne);var Ht={},tt={};(function(e){const t=Ne;e._convertInherit=(n,r,i,{context:a="The provided value"}={})=>{{const l="bubbles";let y=r==null?void 0:r[l];y!==void 0?(y=t.boolean(y,{context:a+" has member 'bubbles' that",globals:n}),i[l]=y):i[l]=!1}{const l="cancelable";let y=r==null?void 0:r[l];y!==void 0?(y=t.boolean(y,{context:a+" has member 'cancelable' that",globals:n}),i[l]=y):i[l]=!1}{const l="composed";let y=r==null?void 0:r[l];y!==void 0?(y=t.boolean(y,{context:a+" has member 'composed' that",globals:n}),i[l]=y):i[l]=!1}},e.convert=(n,r,{context:i="The provided value"}={})=>{if(r!==void 0&&typeof r!="object"&&typeof r!="function")throw new n.TypeError(`${i} is not an object.`);const a=Object.create(null);return e._convertInherit(n,r,a,{context:i}),a}})(tt);(function(e){const t=Ne,n=tt;e._convertInherit=(r,i,a,{context:l="The provided value"}={})=>{n._convertInherit(r,i,a,{context:l});{const y="colno";let u=i==null?void 0:i[y];u!==void 0?(u=t["unsigned long"](u,{context:l+" has member 'colno' that",globals:r}),a[y]=u):a[y]=0}{const y="error";let u=i==null?void 0:i[y];u!==void 0?(u=t.any(u,{context:l+" has member 'error' that",globals:r}),a[y]=u):a[y]=null}{const y="filename";let u=i==null?void 0:i[y];u!==void 0?(u=t.USVString(u,{context:l+" has member 'filename' that",globals:r}),a[y]=u):a[y]=""}{const y="lineno";let u=i==null?void 0:i[y];u!==void 0?(u=t["unsigned long"](u,{context:l+" has member 'lineno' that",globals:r}),a[y]=u):a[y]=0}{const y="message";let u=i==null?void 0:i[y];u!==void 0?(u=t.DOMString(u,{context:l+" has member 'message' that",globals:r}),a[y]=u):a[y]=""}},e.convert=(r,i,{context:a="The provided value"}={})=>{if(i!==void 0&&typeof i!="object"&&typeof i!="function")throw new r.TypeError(`${a} is not an object.`);const l=Object.create(null);return e._convertInherit(r,i,l,{context:a}),l}})(Ht);var nt={},bt,cn;function er(){if(cn)return bt;cn=1;const e=oe,t=tt;class n{constructor(i,a,l){const[y,u=this.constructor.defaultInit]=a;this.type=y,this.bubbles=!1,this.cancelable=!1;for(const d in u)d in this.constructor.defaultInit&&(this[d]=u[d]);for(const d in this.constructor.defaultInit)d in this||(this[d]=this.constructor.defaultInit[d]);this.target=null,this.currentTarget=null,this.eventPhase=0,this._globalObject=i,this._initializedFlag=!0,this._stopPropagationFlag=!1,this._stopImmediatePropagationFlag=!1,this._canceledFlag=!1,this._inPassiveListenerFlag=!1,this._dispatchFlag=!1,this._path=[],this.isTrusted=l.isTrusted||!1,this.timeStamp=Date.now()}_setTheCanceledFlag(){this.cancelable&&!this._inPassiveListenerFlag&&(this._canceledFlag=!0)}get srcElement(){return this.target}get returnValue(){return!this._canceledFlag}set returnValue(i){i===!1&&this._setTheCanceledFlag()}get defaultPrevented(){return this._canceledFlag}stopPropagation(){this._stopPropagationFlag=!0}get cancelBubble(){return this._stopPropagationFlag}set cancelBubble(i){i&&(this._stopPropagationFlag=!0)}stopImmediatePropagation(){this._stopPropagationFlag=!0,this._stopImmediatePropagationFlag=!0}preventDefault(){this._setTheCanceledFlag()}composedPath(){const i=[],{currentTarget:a,_path:l}=this;if(l.length===0)return i;i.push(a);let y=0,u=0;for(let h=l.length-1;h>=0;h--){const{item:o,rootOfClosedTree:c,slotInClosedTree:f}=l[h];if(c&&u++,o===e.implForWrapper(a)){y=h;break}f&&u--}let d=u,p=u;for(let h=y-1;h>=0;h--){const{item:o,rootOfClosedTree:c,slotInClosedTree:f}=l[h];c&&d++,d<=p&&i.unshift(e.wrapperForImpl(o)),f&&(d--,d<p&&(p=d))}d=u,p=u;for(let h=y+1;h<l.length;h++){const{item:o,rootOfClosedTree:c,slotInClosedTree:f}=l[h];f&&d++,d<=p&&i.push(e.wrapperForImpl(o)),c&&(d--,d<p&&(p=d))}return i}_initialize(i,a,l){this.type=i,this._initializedFlag=!0,this._stopPropagationFlag=!1,this._stopImmediatePropagationFlag=!1,this._canceledFlag=!1,this.isTrusted=!1,this.target=null,this.bubbles=a,this.cancelable=l}initEvent(i,a,l){this._dispatchFlag||this._initialize(i,a,l)}}return n.defaultInit=t.convert(void 0,void 0),bt={implementation:n},bt}(function(e){const t=Ne,n=oe,r=tt,i=n.implSymbol,a=n.ctorRegistrySymbol,l="Event";e.is=o=>n.isObject(o)&&n.hasOwn(o,i)&&o[i]instanceof h.implementation,e.isImpl=o=>n.isObject(o)&&o instanceof h.implementation,e.convert=(o,c,{context:f="The provided value"}={})=>{if(e.is(c))return n.implForWrapper(c);throw new o.TypeError(`${f} is not of type 'Event'.`)};function y(o,c){let f;return c!==void 0&&(f=c.prototype),n.isObject(f)||(f=o[a].Event.prototype),Object.create(f)}e.create=(o,c,f)=>{const E=y(o);return e.setup(E,o,c,f)},e.createImpl=(o,c,f)=>{const E=e.create(o,c,f);return n.implForWrapper(E)};function u(o){let c=d.get(o);return c===void 0&&(c=Object.create(null),n.define(c,{get isTrusted(){const f=this!==null&&this!==void 0?this:o;if(!e.is(f))throw new o.TypeError("'get isTrusted' called on an object that is not a valid instance of Event.");return f[i].isTrusted}}),Object.defineProperties(c,{isTrusted:{configurable:!1}}),d.set(o,c)),c}e._internalSetup=(o,c)=>{n.define(o,u(c))},e.setup=(o,c,f=[],E={})=>(E.wrapper=o,e._internalSetup(o,c),Object.defineProperty(o,i,{value:new h.implementation(c,f,E),configurable:!0}),o[i][n.wrapperSymbol]=o,h.init&&h.init(o[i]),o),e.new=(o,c)=>{const f=y(o,c);return e._internalSetup(f,o),Object.defineProperty(f,i,{value:Object.create(h.implementation.prototype),configurable:!0}),f[i][n.wrapperSymbol]=f,h.init&&h.init(f[i]),f[i]};const d=new WeakMap,p=new Set(["Window","Worker","AudioWorklet"]);e.install=(o,c)=>{if(!c.some(P=>p.has(P)))return;const f=n.initCtorRegistry(o);class E{constructor(s){if(arguments.length<1)throw new o.TypeError(`Failed to construct 'Event': 1 argument required, but only ${arguments.length} present.`);const g=[];{let A=arguments[0];A=t.DOMString(A,{context:"Failed to construct 'Event': parameter 1",globals:o}),g.push(A)}{let A=arguments[1];A=r.convert(o,A,{context:"Failed to construct 'Event': parameter 2"}),g.push(A)}return e.setup(Object.create(new.target.prototype),o,g)}composedPath(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'composedPath' called on an object that is not a valid instance of Event.");return n.tryWrapperForImpl(s[i].composedPath())}stopPropagation(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'stopPropagation' called on an object that is not a valid instance of Event.");return s[i].stopPropagation()}stopImmediatePropagation(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'stopImmediatePropagation' called on an object that is not a valid instance of Event.");return s[i].stopImmediatePropagation()}preventDefault(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'preventDefault' called on an object that is not a valid instance of Event.");return s[i].preventDefault()}initEvent(s){const g=this!==null&&this!==void 0?this:o;if(!e.is(g))throw new o.TypeError("'initEvent' called on an object that is not a valid instance of Event.");if(arguments.length<1)throw new o.TypeError(`Failed to execute 'initEvent' on 'Event': 1 argument required, but only ${arguments.length} present.`);const A=[];{let I=arguments[0];I=t.DOMString(I,{context:"Failed to execute 'initEvent' on 'Event': parameter 1",globals:o}),A.push(I)}{let I=arguments[1];I!==void 0?I=t.boolean(I,{context:"Failed to execute 'initEvent' on 'Event': parameter 2",globals:o}):I=!1,A.push(I)}{let I=arguments[2];I!==void 0?I=t.boolean(I,{context:"Failed to execute 'initEvent' on 'Event': parameter 3",globals:o}):I=!1,A.push(I)}return g[i].initEvent(...A)}get type(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get type' called on an object that is not a valid instance of Event.");return s[i].type}get target(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get target' called on an object that is not a valid instance of Event.");return n.tryWrapperForImpl(s[i].target)}get srcElement(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get srcElement' called on an object that is not a valid instance of Event.");return n.tryWrapperForImpl(s[i].srcElement)}get currentTarget(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get currentTarget' called on an object that is not a valid instance of Event.");return n.tryWrapperForImpl(s[i].currentTarget)}get eventPhase(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get eventPhase' called on an object that is not a valid instance of Event.");return s[i].eventPhase}get cancelBubble(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get cancelBubble' called on an object that is not a valid instance of Event.");return s[i].cancelBubble}set cancelBubble(s){const g=this!==null&&this!==void 0?this:o;if(!e.is(g))throw new o.TypeError("'set cancelBubble' called on an object that is not a valid instance of Event.");s=t.boolean(s,{context:"Failed to set the 'cancelBubble' property on 'Event': The provided value",globals:o}),g[i].cancelBubble=s}get bubbles(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get bubbles' called on an object that is not a valid instance of Event.");return s[i].bubbles}get cancelable(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get cancelable' called on an object that is not a valid instance of Event.");return s[i].cancelable}get returnValue(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get returnValue' called on an object that is not a valid instance of Event.");return s[i].returnValue}set returnValue(s){const g=this!==null&&this!==void 0?this:o;if(!e.is(g))throw new o.TypeError("'set returnValue' called on an object that is not a valid instance of Event.");s=t.boolean(s,{context:"Failed to set the 'returnValue' property on 'Event': The provided value",globals:o}),g[i].returnValue=s}get defaultPrevented(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get defaultPrevented' called on an object that is not a valid instance of Event.");return s[i].defaultPrevented}get composed(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get composed' called on an object that is not a valid instance of Event.");return s[i].composed}get timeStamp(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get timeStamp' called on an object that is not a valid instance of Event.");return s[i].timeStamp}}Object.defineProperties(E.prototype,{composedPath:{enumerable:!0},stopPropagation:{enumerable:!0},stopImmediatePropagation:{enumerable:!0},preventDefault:{enumerable:!0},initEvent:{enumerable:!0},type:{enumerable:!0},target:{enumerable:!0},srcElement:{enumerable:!0},currentTarget:{enumerable:!0},eventPhase:{enumerable:!0},cancelBubble:{enumerable:!0},bubbles:{enumerable:!0},cancelable:{enumerable:!0},returnValue:{enumerable:!0},defaultPrevented:{enumerable:!0},composed:{enumerable:!0},timeStamp:{enumerable:!0},[Symbol.toStringTag]:{value:"Event",configurable:!0},NONE:{value:0,enumerable:!0},CAPTURING_PHASE:{value:1,enumerable:!0},AT_TARGET:{value:2,enumerable:!0},BUBBLING_PHASE:{value:3,enumerable:!0}}),Object.defineProperties(E,{NONE:{value:0,enumerable:!0},CAPTURING_PHASE:{value:1,enumerable:!0},AT_TARGET:{value:2,enumerable:!0},BUBBLING_PHASE:{value:3,enumerable:!0}}),f[l]=E,Object.defineProperty(o,l,{configurable:!0,writable:!0,value:E})};const h=er()})(nt);var wt,ln;function Lo(){if(ln)return wt;ln=1;const e=er().implementation,t=Ht;class n extends e{}return n.defaultInit=t.convert(void 0,void 0),wt={implementation:n},wt}(function(e){const t=Ne,n=oe,r=Ht,i=n.implSymbol,a=n.ctorRegistrySymbol,l=nt,y="ErrorEvent";e.is=h=>n.isObject(h)&&n.hasOwn(h,i)&&h[i]instanceof p.implementation,e.isImpl=h=>n.isObject(h)&&h instanceof p.implementation,e.convert=(h,o,{context:c="The provided value"}={})=>{if(e.is(o))return n.implForWrapper(o);throw new h.TypeError(`${c} is not of type 'ErrorEvent'.`)};function u(h,o){let c;return o!==void 0&&(c=o.prototype),n.isObject(c)||(c=h[a].ErrorEvent.prototype),Object.create(c)}e.create=(h,o,c)=>{const f=u(h);return e.setup(f,h,o,c)},e.createImpl=(h,o,c)=>{const f=e.create(h,o,c);return n.implForWrapper(f)},e._internalSetup=(h,o)=>{l._internalSetup(h,o)},e.setup=(h,o,c=[],f={})=>(f.wrapper=h,e._internalSetup(h,o),Object.defineProperty(h,i,{value:new p.implementation(o,c,f),configurable:!0}),h[i][n.wrapperSymbol]=h,p.init&&p.init(h[i]),h),e.new=(h,o)=>{const c=u(h,o);return e._internalSetup(c,h),Object.defineProperty(c,i,{value:Object.create(p.implementation.prototype),configurable:!0}),c[i][n.wrapperSymbol]=c,p.init&&p.init(c[i]),c[i]};const d=new Set(["Window","Worker"]);e.install=(h,o)=>{if(!o.some(E=>d.has(E)))return;const c=n.initCtorRegistry(h);class f extends h.Event{constructor(P){if(arguments.length<1)throw new h.TypeError(`Failed to construct 'ErrorEvent': 1 argument required, but only ${arguments.length} present.`);const s=[];{let g=arguments[0];g=t.DOMString(g,{context:"Failed to construct 'ErrorEvent': parameter 1",globals:h}),s.push(g)}{let g=arguments[1];g=r.convert(h,g,{context:"Failed to construct 'ErrorEvent': parameter 2"}),s.push(g)}return e.setup(Object.create(new.target.prototype),h,s)}get message(){const P=this!==null&&this!==void 0?this:h;if(!e.is(P))throw new h.TypeError("'get message' called on an object that is not a valid instance of ErrorEvent.");return P[i].message}get filename(){const P=this!==null&&this!==void 0?this:h;if(!e.is(P))throw new h.TypeError("'get filename' called on an object that is not a valid instance of ErrorEvent.");return P[i].filename}get lineno(){const P=this!==null&&this!==void 0?this:h;if(!e.is(P))throw new h.TypeError("'get lineno' called on an object that is not a valid instance of ErrorEvent.");return P[i].lineno}get colno(){const P=this!==null&&this!==void 0?this:h;if(!e.is(P))throw new h.TypeError("'get colno' called on an object that is not a valid instance of ErrorEvent.");return P[i].colno}get error(){const P=this!==null&&this!==void 0?this:h;if(!e.is(P))throw new h.TypeError("'get error' called on an object that is not a valid instance of ErrorEvent.");return P[i].error}}Object.defineProperties(f.prototype,{message:{enumerable:!0},filename:{enumerable:!0},lineno:{enumerable:!0},colno:{enumerable:!0},error:{enumerable:!0},[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0}}),c[y]=f,Object.defineProperty(h,y,{configurable:!0,writable:!0,value:f})};const p=Lo()})(Yn);const jo=nt,{tryImplForWrapper:Uo}=oe;function tr(e,t,n=jo,r={}){return n.createImpl(t,[e,r],{isTrusted:r.isTrusted!==!1})}function Vo(e,t,n,r,i){const a=tr(e,t._globalObject,n,r);return Uo(t)._dispatch(a,i)}var Go={createAnEvent:tr,fireAnEvent:Vo};const nr=Cn,Wo=oe,zo=Yn,{createAnEvent:Ho}=Go,vt=Symbol("error reporting mode");function qo(e,t,n,r,i,a){if(n[vt])return!1;n[vt]=!0,typeof i!="string"&&(i="uncaught exception: "+nr.inspect(r));const l=Ho("error",n._globalObject,zo,{cancelable:!0,message:i,filename:a,lineno:e,colno:t,error:r});try{n._dispatch(l)}finally{return n[vt]=!1,l.defaultPrevented}}var xo=function(t,n,r){const i=n&&n.stack,a=i&&i.split(`
|
|
16
|
+
`);let l;if(a)for(let o=1;o<a.length&&!l;++o)l=a[o].match(/at (?:(.+)\s+)?\(?(?:(.+?):(\d+):(\d+)|([^)]+))\)?/);const y=l&&l[2]||r||t._document.URL,u=l&&parseInt(l[3])||0,d=l&&parseInt(l[4])||0,p=Wo.implForWrapper(t);if(!qo(u,d,p,n,n&&n.message,y)){const o=Qo(n)?`[${n.name}: ${n.message}]`:nr.inspect(n),c=new Error(`Uncaught ${o}`);c.detail=n,c.type="unhandled exception",t._virtualConsole.emit("jsdomError",c)}};function Qo(e){return e&&e.name&&e.message!==void 0&&e.stack}var rr={},St={},At={},fn;function Jo(){if(fn)return At;fn=1;const e=oe;return At.implementation=class{constructor(n,r,i){i.nodes?(this._list=[...i.nodes],this._isLive=!1):(this._list=[],this._isLive=!0,this._version=-1,this._element=i.element,this._query=i.query,this._update())}get length(){return this._update(),this._list.length}item(n){return this._update(),this._list[n]||null}_update(){if(this._isLive&&this._version<this._element._version){const n=this._query();for(let r=0;r<n.length;r++)this._list[r]=n[r];this._list.length=n.length,this._version=this._element._version}}get[e.supportedPropertyIndices](){return this._update(),this._list.keys()}},At}var dn;function Ko(){return dn||(dn=1,function(e){const t=Ne,n=oe,r=n.implSymbol,i=n.ctorRegistrySymbol,a="NodeList";e.is=o=>n.isObject(o)&&n.hasOwn(o,r)&&o[r]instanceof h.implementation,e.isImpl=o=>n.isObject(o)&&o instanceof h.implementation,e.convert=(o,c,{context:f="The provided value"}={})=>{if(e.is(c))return n.implForWrapper(c);throw new o.TypeError(`${f} is not of type 'NodeList'.`)};function l(o,c){let f;return c!==void 0&&(f=c.prototype),n.isObject(f)||(f=o[i].NodeList.prototype),Object.create(f)}function y(o,c){let f=d.get(c);return f===void 0&&(f=new p(c),d.set(c,f)),new Proxy(o,f)}e.create=(o,c,f)=>{const E=l(o);return e.setup(E,o,c,f)},e.createImpl=(o,c,f)=>{const E=e.create(o,c,f);return n.implForWrapper(E)},e._internalSetup=(o,c)=>{},e.setup=(o,c,f=[],E={})=>(E.wrapper=o,e._internalSetup(o,c),Object.defineProperty(o,r,{value:new h.implementation(c,f,E),configurable:!0}),o=y(o,c),o[r][n.wrapperSymbol]=o,h.init&&h.init(o[r]),o),e.new=(o,c)=>{let f=l(o,c);return e._internalSetup(f,o),Object.defineProperty(f,r,{value:Object.create(h.implementation.prototype),configurable:!0}),f=y(f,o),f[r][n.wrapperSymbol]=f,h.init&&h.init(f[r]),f[r]};const u=new Set(["Window"]);e.install=(o,c)=>{if(!c.some(P=>u.has(P)))return;const f=n.initCtorRegistry(o);class E{constructor(){throw new o.TypeError("Illegal constructor")}item(s){const g=this!==null&&this!==void 0?this:o;if(!e.is(g))throw new o.TypeError("'item' called on an object that is not a valid instance of NodeList.");if(arguments.length<1)throw new o.TypeError(`Failed to execute 'item' on 'NodeList': 1 argument required, but only ${arguments.length} present.`);const A=[];{let I=arguments[0];I=t["unsigned long"](I,{context:"Failed to execute 'item' on 'NodeList': parameter 1",globals:o}),A.push(I)}return n.tryWrapperForImpl(g[r].item(...A))}get length(){const s=this!==null&&this!==void 0?this:o;if(!e.is(s))throw new o.TypeError("'get length' called on an object that is not a valid instance of NodeList.");return s[r].length}}Object.defineProperties(E.prototype,{item:{enumerable:!0},length:{enumerable:!0},[Symbol.toStringTag]:{value:"NodeList",configurable:!0},[Symbol.iterator]:{value:o.Array.prototype[Symbol.iterator],configurable:!0,writable:!0},keys:{value:o.Array.prototype.keys,configurable:!0,enumerable:!0,writable:!0},values:{value:o.Array.prototype.values,configurable:!0,enumerable:!0,writable:!0},entries:{value:o.Array.prototype.entries,configurable:!0,enumerable:!0,writable:!0},forEach:{value:o.Array.prototype.forEach,configurable:!0,enumerable:!0,writable:!0}}),f[a]=E,Object.defineProperty(o,a,{configurable:!0,writable:!0,value:E})};const d=new WeakMap;class p{constructor(c){this._globalObject=c}get(c,f,E){if(typeof f=="symbol")return Reflect.get(c,f,E);const P=this.getOwnPropertyDescriptor(c,f);if(P===void 0)return Object.getPrototypeOf(c)===null?void 0:Reflect.get(c,f,E);if(!P.get&&!P.set)return P.value;const s=P.get;if(s!==void 0)return Reflect.apply(s,E,[])}has(c,f){if(typeof f=="symbol")return Reflect.has(c,f);if(this.getOwnPropertyDescriptor(c,f)!==void 0)return!0;const P=Object.getPrototypeOf(c);return P!==null?Reflect.has(P,f):!1}ownKeys(c){const f=new Set;for(const E of c[r][n.supportedPropertyIndices])f.add(`${E}`);for(const E of Reflect.ownKeys(c))f.add(E);return[...f]}getOwnPropertyDescriptor(c,f){if(typeof f=="symbol")return Reflect.getOwnPropertyDescriptor(c,f);if(n.isArrayIndexPropName(f)){const E=f>>>0,P=c[r].item(E);if(P!==null)return{writable:!1,enumerable:!0,configurable:!0,value:n.tryWrapperForImpl(P)}}return Reflect.getOwnPropertyDescriptor(c,f)}set(c,f,E,P){if(typeof f=="symbol")return Reflect.set(c,f,E,P);c[r][n.wrapperSymbol]===P&&this._globalObject;let s;if(n.isArrayIndexPropName(f)){const I=f>>>0,M=c[r].item(I);M!==null&&(s={writable:!1,enumerable:!0,configurable:!0,value:n.tryWrapperForImpl(M)})}if(s===void 0&&(s=Reflect.getOwnPropertyDescriptor(c,f)),s===void 0){const I=Reflect.getPrototypeOf(c);if(I!==null)return Reflect.set(I,f,E,P);s={writable:!0,enumerable:!0,configurable:!0,value:void 0}}if(!s.writable||!n.isObject(P))return!1;const g=Reflect.getOwnPropertyDescriptor(P,f);let A;if(g!==void 0){if(g.get||g.set||!g.writable)return!1;A={value:E}}else A={writable:!0,enumerable:!0,configurable:!0,value:E};return Reflect.defineProperty(P,f,A)}defineProperty(c,f,E){return typeof f=="symbol"?Reflect.defineProperty(c,f,E):(this._globalObject,n.isArrayIndexPropName(f)?!1:Reflect.defineProperty(c,f,E))}deleteProperty(c,f){if(typeof f=="symbol")return Reflect.deleteProperty(c,f);if(this._globalObject,n.isArrayIndexPropName(f)){const E=f>>>0;return c[r].item(E)===null}return Reflect.deleteProperty(c,f)}preventExtensions(){return!1}}const h=Jo()}(St)),St}var Et,pn;function Xo(){if(pn)return Et;pn=1;const e=Ko();class t{constructor(r,i,a){this._globalObject=r,this.type=a.type,this.target=a.target,this.previousSibling=a.previousSibling,this.nextSibling=a.nextSibling,this.attributeName=a.attributeName,this.attributeNamespace=a.attributeNamespace,this.oldValue=a.oldValue,this._addedNodes=a.addedNodes,this._removedNodes=a.removedNodes}get addedNodes(){return e.createImpl(this._globalObject,[],{nodes:this._addedNodes})}get removedNodes(){return e.createImpl(this._globalObject,[],{nodes:this._removedNodes})}}return Et={implementation:t},Et}(function(e){const t=oe,n=t.implSymbol,r=t.ctorRegistrySymbol,i="MutationRecord";e.is=u=>t.isObject(u)&&t.hasOwn(u,n)&&u[n]instanceof y.implementation,e.isImpl=u=>t.isObject(u)&&u instanceof y.implementation,e.convert=(u,d,{context:p="The provided value"}={})=>{if(e.is(d))return t.implForWrapper(d);throw new u.TypeError(`${p} is not of type 'MutationRecord'.`)};function a(u,d){let p;return d!==void 0&&(p=d.prototype),t.isObject(p)||(p=u[r].MutationRecord.prototype),Object.create(p)}e.create=(u,d,p)=>{const h=a(u);return e.setup(h,u,d,p)},e.createImpl=(u,d,p)=>{const h=e.create(u,d,p);return t.implForWrapper(h)},e._internalSetup=(u,d)=>{},e.setup=(u,d,p=[],h={})=>(h.wrapper=u,e._internalSetup(u,d),Object.defineProperty(u,n,{value:new y.implementation(d,p,h),configurable:!0}),u[n][t.wrapperSymbol]=u,y.init&&y.init(u[n]),u),e.new=(u,d)=>{const p=a(u,d);return e._internalSetup(p,u),Object.defineProperty(p,n,{value:Object.create(y.implementation.prototype),configurable:!0}),p[n][t.wrapperSymbol]=p,y.init&&y.init(p[n]),p[n]};const l=new Set(["Window"]);e.install=(u,d)=>{if(!d.some(o=>l.has(o)))return;const p=t.initCtorRegistry(u);class h{constructor(){throw new u.TypeError("Illegal constructor")}get type(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get type' called on an object that is not a valid instance of MutationRecord.");return c[n].type}get target(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get target' called on an object that is not a valid instance of MutationRecord.");return t.getSameObject(this,"target",()=>t.tryWrapperForImpl(c[n].target))}get addedNodes(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get addedNodes' called on an object that is not a valid instance of MutationRecord.");return t.getSameObject(this,"addedNodes",()=>t.tryWrapperForImpl(c[n].addedNodes))}get removedNodes(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get removedNodes' called on an object that is not a valid instance of MutationRecord.");return t.getSameObject(this,"removedNodes",()=>t.tryWrapperForImpl(c[n].removedNodes))}get previousSibling(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get previousSibling' called on an object that is not a valid instance of MutationRecord.");return t.tryWrapperForImpl(c[n].previousSibling)}get nextSibling(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get nextSibling' called on an object that is not a valid instance of MutationRecord.");return t.tryWrapperForImpl(c[n].nextSibling)}get attributeName(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get attributeName' called on an object that is not a valid instance of MutationRecord.");return c[n].attributeName}get attributeNamespace(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get attributeNamespace' called on an object that is not a valid instance of MutationRecord.");return c[n].attributeNamespace}get oldValue(){const c=this!==null&&this!==void 0?this:u;if(!e.is(c))throw new u.TypeError("'get oldValue' called on an object that is not a valid instance of MutationRecord.");return c[n].oldValue}}Object.defineProperties(h.prototype,{type:{enumerable:!0},target:{enumerable:!0},addedNodes:{enumerable:!0},removedNodes:{enumerable:!0},previousSibling:{enumerable:!0},nextSibling:{enumerable:!0},attributeName:{enumerable:!0},attributeNamespace:{enumerable:!0},oldValue:{enumerable:!0},[Symbol.toStringTag]:{value:"MutationRecord",configurable:!0}}),p[i]=h,Object.defineProperty(u,i,{configurable:!0,writable:!0,value:h})};const y=Xo()})(rr);const{domSymbolTree:Zo}=Me,Yo=xo,es=nt,yn=oe,ts=rr,re={ATTRIBUTES:"attributes",CHARACTER_DATA:"characterData",CHILD_LIST:"childList"};let _t=!1;const kt=new Set,Qe=[];function qt(e,t,n,r,i,a,l,y,u){const d=new Map,p=Zo.ancestorsToArray(t);for(const h of p)for(const o of h._registeredObserverList){const{options:c,observer:f}=o;!(h!==t&&c.subtree===!1)&&!(e===re.ATTRIBUTES&&c.attributes!==!0)&&!(e===re.ATTRIBUTES&&c.attributeFilter&&!c.attributeFilter.some(E=>E===n||E===r))&&!(e===re.CHARACTER_DATA&&c.characterData!==!0)&&!(e===re.CHILD_LIST&&c.childList===!1)&&(d.has(f)||d.set(f,null),(e===re.ATTRIBUTES&&c.attributeOldValue===!0||e===re.CHARACTER_DATA&&c.characterDataOldValue===!0)&&d.set(f,i))}for(const[h,o]of d.entries()){const c=ts.createImpl(t._globalObject,[],{type:e,target:t,attributeName:n,attributeNamespace:r,oldValue:o,addedNodes:a,removedNodes:l,previousSibling:y,nextSibling:u});h._recordQueue.push(c),kt.add(h)}ir()}function ns(e,t,n,r,i){qt(re.CHILD_LIST,e,null,null,null,t,n,r,i)}function rs(e,t,n,r){qt(re.ATTRIBUTES,e,t,n,r,[],[],null,null)}function ir(){_t||(_t=!0,Promise.resolve().then(()=>{is()}))}function is(){_t=!1;const e=[...kt].sort((n,r)=>n._id-r._id);kt.clear();const t=[...Qe];Qe.splice(0,Qe.length);for(const n of e){const r=[...n._recordQueue];n._recordQueue=[];for(const i of n._nodeList)i._registeredObserverList=i._registeredObserverList.filter(a=>a.source!==n);if(r.length>0)try{const i=yn.wrapperForImpl(n);n._callback.call(i,r.map(yn.wrapperForImpl),i)}catch(i){const{target:a}=r[0],l=a._ownerDocument._defaultView;Yo(l,i)}}for(const n of t){const r=es.createImpl(n._globalObject,["slotchange",{bubbles:!0}],{isTrusted:!0});n._dispatch(r)}}var os={MUTATION_TYPE:re,queueMutationRecord:qt,queueTreeMutationRecord:ns,queueAttributeMutationRecord:rs,queueMutationObserverMicrotask:ir,signalSlotList:Qe};const Ft=Rn,{nodeRoot:Re}=Si,{HTML_NS:ss}=ge,{domSymbolTree:be}=Me,{signalSlotList:hn,queueMutationObserverMicrotask:as}=os,us=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]);function cs(e){return us.has(e)}function Xe(e){return!!(e&&"nodeType"in e)}function me(e){return!!(e&&e.nodeType===Ft.DOCUMENT_FRAGMENT_NODE&&"host"in e)}function or(e){return e&&(e.nodeType===Ft.ELEMENT_NODE||e.nodeType===Ft.TEXT_NODE)}function rt(e){return e&&e.localName==="slot"&&e._namespaceURI===ss}function sr(e,t){for(;Xe(t);){if(t===e)return!0;me(t)?t=t.host:t=be.parent(t)}return!1}function ls(e,t){for(;;){if(!Xe(e))return e;const n=Re(e);if(!me(n)||Xe(t)&&sr(n,t))return e;e=Re(e).host}}function fs(e,t){return e._getTheParent?e._getTheParent(t):null}function ar(e){const t=Re(e);return me(t)?ar(t.host):t}function ds(e){const t=Qt(e);t&&xt(t)}function xt(e){const t=ur(e);let n=!1;if(t.length!==e._assignedNodes.length)n=!0;else for(let r=0;r<t.length;r++)if(t[r]!==e._assignedNodes[r]){n=!0;break}n&&lr(e),e._assignedNodes=t;for(const r of t)r._assignedSlot=e}function ps(e){for(const t of be.treeIterator(e))rt(t)&&xt(t)}function ur(e){const t=[],n=Re(e);if(!me(n))return t;for(const r of be.treeIterator(n.host))Qt(r)===e&&t.push(r);return t}function cr(e){const t=[],n=Re(e);if(!me(n))return t;const r=ur(e);if(r.length===0)for(const i of be.childrenIterator(e))or(i)&&r.push(i);for(const i of r)if(rt(i)&&me(Re(i))){const a=cr(i);t.push(...a)}else t.push(i);return t}function Qt(e,t){const{parentNode:n}=e;if(!n)return null;const r=n._shadowRoot;if(!r||t&&r.mode!=="open")return null;for(const i of be.treeIterator(r))if(rt(i)&&i.name===e._slotableName)return i;return null}function lr(e){hn.some(t=>t===e)||hn.push(e),as()}function*ke(e){yield e,e._shadowRoot&&(yield*ke(e._shadowRoot));for(const t of be.childrenIterator(e))yield*ke(t)}function*ys(e){e._shadowRoot&&(yield*ke(e._shadowRoot));for(const t of be.childrenIterator(e))yield*ke(t)}var hs={isValidHostElementName:cs,isNode:Xe,isSlotable:or,isSlot:rt,isShadowRoot:me,isShadowInclusiveAncestor:sr,retarget:ls,getEventTargetParent:fs,shadowIncludingRoot:ar,assignSlot:ds,assignSlotable:xt,assignSlotableForTree:ps,findSlot:Qt,findFlattenedSlotables:cr,signalSlotChange:lr,shadowIncludingInclusiveDescendantsIterator:ke,shadowIncludingDescendantsIterator:ys};let Ue=null;function Fe(e={auth:"token",refresh:"refresh_token",expiration:"token_expiration_date"},t=hs.isNode()?localStorage:Pn()){if(Ue)return Ue;function n(){return t.getItem(e.auth)}function r(){return t.getItem(e.refresh)}function i(){return t.getItem(e.expiration)}function a(o,c){const f=p(o);if(!f.exp)throw new Error("Invalid JWT token.");t.setItem(e.auth,o),t.setItem(e.refresh,c),t.setItem(e.expiration,((f.exp-60)*1e3).toString())}function l(){t.removeItem(e.auth),t.removeItem(e.refresh),t.removeItem(e.expiration)}function y(){return u()&&!d()}function u(){return!!n()}function d(){const o=i();return o?new Date(o)<new Date:!0}function p(o){return JSON.parse(atob(o.split(".")[1]))}function h(){return t}return Ue={keys:e,getAuthToken:n,getRefreshToken:r,getExpiration:i,authenticate:a,clear:l,isAuthenticated:y,hasAuth:u,isExpired:d,getStorage:h},Ue}function ms(e){let t={"Content-Type":"application/json"};e&&n(e);function n(f,E=!1){return t=E?f:{...t,...f},this}function r(){return t}function i(f,E){return t[f]=E,this}function a(f){return t[f]}function l(f){return t[f]&&delete t[f],this}function y(f){return i("Authorization","Bearer "+f),this}function u(){return l("Authorization"),this}function d(){return!!a("Authorization")}function p(){return i("Content-Type","multipart/form-data"),this}function h(){return i("Content-Type","application/json"),this}function o(){return a("Content-Type")==="multipart/form-data"}function c(){return a("Content-Type")==="application/json"}return{setHeaders:n,getHeaders:r,setHeader:i,getHeader:a,removeHeader:l,setAuthorization:y,removeAuthorization:u,hasAuthorization:d,setFormData:p,setJson:h,isFormData:o,isJson:c}}function gs(e){let t=null;e&&n(e);function n(i){if(i=i.toLowerCase(),!["get","post","put","patch","delete"].includes(i))throw new Error("Invalid method.");return t=i,this}function r(){return t}return{setMethod:n,getMethod:r}}function bs(e,t,n){let r=null;n&&i(n);function i(d){if(!["post","put","patch"].includes(e.getMethod()))throw new Error("Payload can only be set for POST, PUT and PATCH requests.");return d instanceof FormData?t.setFormData():l(d)&&(d=y(d),t.setFormData()),t.isFormData()&&e.getMethod()==="put"&&(e.setMethod("post"),d.append("_method","PUT")),r=d,this}function a(){return r}function l(d){for(const p in d){const h=d[p];if(u(h))return!0;if(typeof h=="object"&&l(h))return!0}return!1}function y(d,p=null,h=0){const o=!p;o&&(p=new FormData);for(const c in d){const f=d[c];u(f)?(d[c]="<<FileIndex:"+h+">>",p.append(h,f,f.name),h++):typeof f=="object"&&(d[c]=y(d[c],p,h))}return o?(p.append("payload",JSON.stringify(d)),p):d}function u(d){return typeof File<"u"&&d instanceof File||typeof Blob<"u"&&d instanceof Blob}return{setPayload:i,getPayload:a}}const X=class X{constructor(t={}){ne(this,"level",3);ne(this,"logger");ne(this,"prefix");this.logger=t.logger||console,this.prefix=t.prefix||""}setLevel(t){this.level=t}debug(...t){this.level<=X.LEVEL_DEBUG&&Ve(this.logger.debug,this.prefix,t)}info(...t){this.level<=X.LEVEL_INFO&&Ve(this.logger.info,this.prefix,t)}warn(...t){this.level<=X.LEVEL_WARN&&Ve(this.logger.warn,this.prefix,t)}error(...t){this.level<=X.LEVEL_ERROR&&Ve(this.logger.error,this.prefix,t)}};ne(X,"LEVEL_DEBUG",0),ne(X,"LEVEL_INFO",1),ne(X,"LEVEL_WARN",2),ne(X,"LEVEL_ERROR",3),ne(X,"LEVEL_OFF",4);let Ze=X;const Ve=(e,t,n)=>{t?e(t,...n):e(...n)},U=new Ze({prefix:"[SDK]"});let fr=null,dr=null,pr=null,yr="/",hr=null;const ws=()=>fr,vs=e=>{if(U.info("[Config] Environment:",e),!e)throw new Error("Invalid environment.");fr=e},Ss=()=>dr,As=e=>{if(U.info("[Config] API Host:",e),!e)throw new Error("Invalid API host.");dr=e},Es=()=>hr,Is=e=>{hr=e},Ts=()=>pr,Ps=e=>{if(U.info("[Config] Main App Host:",e),!e)throw new Error("Invalid main app host.");pr=e},Rs=e=>{U.info("[Config] Base Assets Urls:",e),yr=e},Ns=()=>yr,ue={getEnvironment:ws,getApiHost:Ss,getErrorHandler:Es,setEnvironment:vs,setApiHost:As,setErrorHandler:Is,getMainAppHost:Ts,setMainAppHost:Ps,setBaseAssetsUrl:Rs,getBaseAssetsUrl:Ns};function Cs(e){const t=ue.getApiHost().replace(/\/$/g,"");let n=null,r={},i={};e&&y(e);function a(){return t+u()+c()}function l(){return u(!0,!0)}function y(s){return n="/"+s.replace(/^\//g,""),this}function u(s=!0,g=!1){return s?n.replace(/:(\w+)/g,(A,I)=>g?"*":i[I]||":"+I):n}function d(s){return r=s,this}function p(s,g){return r[s]=g,this}function h(s){return r[s]&&delete r[s],this}function o(){return Object.keys(r).length>0}function c(s=!0){if(!o())return"";let g="";for(const A in r)if(Array.isArray(r[A]))for(const I of r[A])g+=(g.length?"&":"")+`${A}[]=`+I;else g+=(g.length?"&":"")+A+"="+r[A];return(s?"?":"")+g}function f(s){return i=s,this}function E(s,g){return i[s]=g,this}function P(s){return i[s]&&delete i[s],this}return{setPath:y,getPath:u,getUri:a,getMockUri:l,setQueryParams:d,setQueryParam:p,removeQueryParam:h,hasQuery:o,getQueryString:c,setRouteParams:f,setRouteParam:E,removeRouteParam:P}}function Os(e){let t=[];function n(){return t=d(arguments),l(),this}function r(){return t.length>0}function i(p){return t.includes(p.trim())?this:(t.push(p.trim()),l(),this)}function a(p){const h=t.indexOf(p.trim());return h===-1?this:(t.splice(h,1),l(),this)}function l(){t.length?e.setQueryParam("groups",u(t)):e.removeQueryParam("groups")}function y(p){return p.split(",").map(h=>h.trim())}function u(p){return p.join(",")}function d(p){let h=[];return p.length===1?typeof p[0]=="string"?h=y(p[0]):Array.isArray(p[0])&&(h=p[0]):h=Array.from(p),h}return{setGroups:n,hasGroups:r,addGroup:i,removeGroup:a}}function _s(e){let t=!1,n=!1,r=1,i=10;function a(){return t=!0,l(),this}function l(){n=!0;const c=o(arguments);return d(c.page||1,!1),p(c.perPage||i,!1),h(),this}function y(){return n=!1,h(),this}function u(){return n}function d(c,f=!0){return t=!0,n=!0,r=c,f&&h(),this}function p(c,f=!0){return t=!0,n=!0,i=c,f&&h(),this}function h(){t?u()?(e.removeQueryParam("pagination"),e.setQueryParam("page",r),e.setQueryParam("nbResultPerPage",i)):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.setQueryParam("pagination","false")):(e.removeQueryParam("page"),e.removeQueryParam("nbResultPerPage"),e.removeQueryParam("pagination"))}function o(c){if(c.length===1&&typeof c[0]=="object")return c[0];const f={};return c.length>=1&&(f.page=c[0]),c.length>=2&&(f.perPage=c[1]),f}return{isList:a,paginate:l,disablePagination:y,hasPagination:u,setPage:d,setPerPage:p}}function ks(e){let t=!1,n="id",r="ASC";function i(){t=!0;const p=d(arguments);return p.orderBy&&l(p.orderBy,!1),p.orderDir&&y(p.orderDir,!1),u(),this}function a(){return t}function l(p,h=!0){return t=!0,n=p,h&&u(),this}function y(p,h=!0){if(p=p.toUpperCase(),["ASC","DESC"].indexOf(p)===-1)throw new Error("Invalid order direction");return t=!0,r=p,h&&u(),this}function u(){a()&&(e.setQueryParam("orderBy",n),e.setQueryParam("orderDirection",r))}function d(p){if(p.length===1&&typeof p[0]=="object")return p[0];const h={};return p.length>=1&&(h.orderBy=p[0]),p.length>=2&&(h.orderDir=p[1]),h}return{setOrder:i,hasOrder:a,setOrderBy:l,setOrderDir:y}}function Fs(){let e=!1;function t(){return e=!0,this}function n(){return e}return{setSilent:t,isSilent:n}}function Ms(){let e="json";function t(r="json"){if(["arraybuffer","document","json","text","stream","blob"].indexOf(r)===-1)throw new Error("Invalid response type");return e=r,this}function n(){return e}return{setResponseType:t,getResponseType:n}}function $s(e){function t(){return e}function n(){return e.data}function r(){return e.data}return{getResponse:t,getData:n,getPayload:r}}function Bs(e,t=!1){let n=!1,r=!1;return e.response?(n=!0,r=!0):e.request&&(n=!0),!t&&ue.getErrorHandler()&&ue.getErrorHandler()(e),{sent:n,responded:r,error:e}}function Ds(e){function t(){return e}function n(){return e.data}function r(){return e.data}function i(){return e.data["@type"]==="hydra:Collection"}function a(){return i()?e.data["hydra:member"]:null}function l(){return i()?e.data["hydra:totalItems"]:null}function y(){return i()?e.data["hydra:view"]&&e.data["hydra:view"]["hydra:last"]:!1}function u(){return!i()||!y()?null:parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1])}function d(){return!i()||!y()?null:parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1])}return{getResponse:t,getData:n,getPayload:r,isCollection:i,getCollection:a,getTotal:l,hasPagination:y,getPage:u,getPages:d}}function Ls(e,t,n,r,i,a){async function l(){const u=n.getMethod(),d=t.getUri(),p=e.getHeaders(),h=r.getPayload(),o=[d];["post","put","patch"].includes(u)&&o.push(h||{}),o.push({headers:p,responseType:a.getResponseType()}),U.info("[Request] Sending request:",`[${u.toUpperCase()}]`,d);try{const c=await _r[u](...o);return y(c)}catch(c){throw Bs(c,i.isSilent())}}function y(u){if(u.headers){const d=Object.keys(u.headers),p=d.map(h=>h.toLowerCase()).indexOf("content-type");if(p!==-1&&u.headers[d[p]].includes("application/ld+json"))return Ds(u)}return $s(u)}return{send:l}}function z(e,t="get",n=null){const r=ms(),i=Cs(e),a=gs(t),l=bs(a,r,n),y=Os(i),u=_s(i),d=ks(i),p=Fs(),h=Ms(),o=Ls(r,i,a,l,p,h);return{...r,...i,...a,...l,...y,...u,...d,...p,...h,...o}}function T(e,t="get",n=null){const r=z(e,t,n),i=Fe();i.isAuthenticated()&&r.setAuthorization(i.getAuthToken());const a=r.send;return r.send=async function(){if(!r.hasAuthorization())throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");return a()},r}const js=(e,t)=>T("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Us=()=>({listByCandidateAndEstablishment:js}),Vs=(e,t,n)=>T("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}).setPayload(n),Gs=(e,t)=>T("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({candidateId:e,establishmentId:t}),Ws=(e,t)=>T("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({candidateId:e,establishmentId:t}),zs=(e,t)=>T("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({candidateId:e,establishmentId:t}),Hs=(e,t)=>T("/v2/candidates/lookup").setQueryParam("email",e).setQueryParam("establishment-id",t),qs=(e,t)=>T("/v2/candidates").setMethod("post").setQueryParam("establishment-id",e).setPayload(t),xs=(e,t,n)=>T("/v2/candidates/:candidateId").setQueryParam("establishment-id",t).setRouteParams({candidateId:e}).setMethod("put").setPayload(n),Qs=e=>T("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({registrationToken:e}),Js=e=>T("/candidate/register/open").setMethod("post").setQueryParam("groups","register:token").setPayload(e),Ks=(e,t)=>T("/establishment/:establishmentId:/candidate/invitation").setRouteParams({establishmentId:e}).setMethod("post").setPayload(t),Xs=()=>({share:Vs,isArchived:Gs,archive:Ws,unarchive:zs,lookupCandidate:Hs,createCandidate:qs,updateCandidate:xs,closeIncompleteRegistration:Qs,openNewRegistration:Js,updateInvitation:Ks}),Zs=(e,t)=>T("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}),Ys=(e,t,n)=>T("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({establishmentId:e,userId:t}).setMethod("post").setPayload(n),ea=(e,t)=>T("/comment/:commentId").setRouteParams({commentId:e}).setMethod("put").setPayload(t),ta=e=>T("/comment/:commentId").setRouteParams({commentId:e}).setMethod("delete"),na=()=>({getForEstablishmentCandidate:Zs,postForEstablishmentCandidate:Ys,update:ea,remove:ta}),ra=()=>z("contractType").isList().addGroup("Term:id").addGroup("Term:name"),ia=(e,t=!0)=>T("contractType/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),oa=()=>({list:ra,listByEstablishment:ia}),sa=e=>T("/v2/talents").isList().setQueryParam("establishment-id",e),aa=e=>T("/v2/talent/mark-as-seen/:talentId").setRouteParams({talentId:e}).setMethod("post"),ua=()=>({list:sa,markAsSeen:aa}),ca=(e,t,n)=>T("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({establishmentId:e,candidateId:t}).setMethod("post").setPayload(n),la=()=>({syncCandidateLabels:ca}),fa=()=>z("diploma").isList().addGroup("Term:id").addGroup("Term:name"),da=()=>({list:fa}),pa=e=>T("document/candidate/:candidateId").setRouteParams({candidateId:e}).isList().disablePagination(),ya=(e,t)=>T("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ha=(e,t)=>T("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({candidateId:e,establishmentId:t}).isList().disablePagination(),ma=e=>T("document/recruiter").setMethod("post").setPayload(e),ga=e=>T("document/:documentId").setRouteParams({documentId:e}).setMethod("delete"),ba=()=>({listByCandidate:pa,listByCandidateAndEstablishmentFromRecruiter:ya,listByCandidateAndEstablishmentFromCandidate:ha,addFromRecruiter:ma,remove:ga}),wa=(e,t)=>T("/v2/establishments/:establishmentId/email-history").setRouteParams({establishmentId:t}).setQueryParam("receiverId",e).isList().disablePagination(),va=()=>({listByCandidateAndEstablishment:wa}),Sa=(e,t)=>T("/email/candidate/:candidateId").setMethod("post").setRouteParams({candidateId:e}).setPayload(t),Aa=(e,t)=>T("/v2/emails/send").setMethod("post").setPayload({recipientIds:e,...t}),Ea=()=>({sendToCandidate:Sa,sendToRecipients:Aa}),Ia=(e,t=!0)=>{const n=T("/v2/establishments/:establishmentId/email-templates").setRouteParams({establishmentId:e}).isList().disablePagination();return t&&n.setQueryParam("global",!0),n},Ta=()=>T("/v2/self/email-templates").isList().disablePagination(),Pa=()=>({listByEstablishment:Ia,listSelf:Ta}),Ra=(e,t)=>T("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:t}),Na=(e,t="published")=>T("establishment-career/:establishmentId/state/:state").setRouteParams({establishmentId:e,state:t}),Ca=(e,t,n=null)=>{const r=n!==null?T("establishment-career/:establishmentId/:versionId").setRouteParams({establishmentId:e,versionId:n}):T("establishment-career/:establishmentId").setRouteParams({establishmentId:e});return r.setMethod("post").setPayload(t),r},Oa=(e,t)=>T("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),_a=(e,t,n)=>T("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({establishmentId:e,versionId:t}).setPayload(n),ka=()=>({readById:Ra,readByState:Na,upsert:Ca,uploadLogoAndBanner:Oa,publish:_a}),Fa=e=>z("establishment/:establishmentId").setRouteParams({establishmentId:e}),Ma=e=>T("establishment/:establishmentId/authorizations").setRouteParams({establishmentId:e}),Jt=()=>({read:Fa,authorizations:Ma}),$a=e=>z("feature-flag/maintenance").setMethod("post").setPayload(e),Ba=(e,t)=>z("feature-flag/establishment").setMethod("post").setPayload({establishment:e,flagName:t}),Da=()=>({maintenanceModeEnabled:$a,forEstablishment:Ba}),La=()=>z("job").isList().addGroup("Term:id").addGroup("Term:name"),ja=(e,t=!0)=>T("job/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),Ua=()=>({list:La,listByEstablishment:ja}),Va=e=>T("/label/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Ga=(e,t)=>T("/label/establishment/:establishmentId").setMethod("post").setRouteParams({establishmentId:e}).setPayload(t),Wa=(e,t)=>T("/label/:labelId").setMethod("put").setRouteParams({labelId:e}).setPayload(t),za=e=>T("/label/:labelId").setMethod("delete").setRouteParams({labelId:e}),Ha=(e,t,n)=>T("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(n).setRouteParams({establishmentId:e,candidateId:t}),qa=()=>({listByEstablishment:Va,addToEstablishment:Ga,update:Wa,remove:za,syncForCandidate:Ha}),xa=e=>z("offer/:offerId").setRouteParams({offerId:e}),Qa=()=>({read:xa}),Ja=(e,t=!1)=>{const n=T("/recruiter/establishment/:establishmentId").isList().setRouteParams({establishmentId:e});return t&&n.setQueryParam("exclude-me",1),n},Ka=()=>({listByEstablishment:Ja}),Xa=e=>T("/recruitment/:recruitmentId").setRouteParams({recruitmentId:e}),Za=e=>T("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),Ya=(e,t)=>T("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),eu=(e,t)=>T("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),tu=(e,t)=>T("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({establishmentId:e,candidateId:t}),nu=(e,t)=>T("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({recruitmentId:e}).setPayload(t),ru=(e,t)=>T("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({recruitmentId:e,candidateId:t}),iu=()=>({read:Xa,mineByEstablishment:Za,mineWithoutCandidate:Ya,mineWithCandidate:eu,withCandidate:tu,addCandidates:nu,removeCandidate:ru}),ou=(e,t,n,r=null)=>{const i=z("candidate/register/open").setMethod("post"),a={email:e};return t==="establishment"&&(a.establishmentId=n),t==="offer"&&(a.offerId=n),r&&(a.referer=r),i.setPayload(a),i},su=(e,t)=>z("candidate/register/update/:token").setMethod("post").setRouteParams({token:e}).setPayload(t),au=e=>z("candidate/register/read/:token").setRouteParams({token:e}),uu=e=>z("candidate/register/close/:token").setMethod("post").setRouteParams({token:e}),cu=()=>({open:ou,update:su,read:au,close:uu}),lu=(e,t)=>T("/v2/registrations/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),fu=()=>({lookupEstablishment:lu}),du=()=>z("speciality").isList().addGroup("Term:id").addGroup("Term:name"),pu=(e,t=!0)=>T("speciality/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}).setQueryParam("all",t).addGroup("Term:id").addGroup("Term:name"),yu=()=>({list:du,listByEstablishment:pu}),hu=e=>T("/tag/public/establishment/:establishmentId").isList().setRouteParams({establishmentId:e}),mu=()=>({listByEstablishment:hu}),gu=(e,t)=>T("/v2/talents/lookup").setQueryParam("candidate-id",e).setQueryParam("establishment-id",t),bu=e=>T("/v2/talents/index").setMethod("post").setPayload(e),wu=()=>({lookupTalent:gu,addCandidateToTalentPool:bu}),vu=e=>z("user/email/isset/:email").setRouteParams({email:e}),Su=()=>T("user/self").addGroup("user:self"),Au=e=>T("/user/:uuid").setRouteParams({uuid:e}),Eu=e=>z("/user/:uuid").setRouteParams({uuid:e}),Iu=e=>T("/user/:id/uuid").setRouteParams({id:e}),Kt=()=>({emailExists:vu,self:Su,byUuidPrivate:Au,byUuid:Eu,fetchUuid:Iu});let Ge;function mr(){if(Ge)return Ge;const e={user:void 0,roles:[],establishments:{}},t=async()=>{if(!Fe().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");const d=(await Kt().self().send()).getData();e.user={id:d.id,email:d.email,firstName:d.firstName,lastName:d.lastName,avatar:d.avatar},e.roles=d.roles},n=async d=>{if(!Fe().isAuthenticated())throw new Error("::SDK Authorization:: User not authenticated");e.establishments[d]=(await Jt().authorizations(d).send()).getData()},r=d=>{if(e.user===void 0)throw new Error("::SDK Authorization:: User not fetched");return e.roles.includes(d)};return Ge={fetchSelf:t,fetchPermission:n,hasRole:r,hasRoleRH:()=>r("ROLE_RH"),hasRoleCandidate:()=>r("ROLE_CANDIDATE"),hasRoleAdmin:()=>r("ROLE_ADMIN"),hasPermission:(d,...p)=>{const h=e.establishments[d];if(h===void 0)throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${d}`);return p.every(o=>h[o]===!0)},clear:()=>{e.user=void 0,e.roles=[],e.establishments={}}},Ge}async function Tu(e,...t){if(!Fe().isAuthenticated())throw"ERR_NOT_AUTHENTICATED";const r=mr();await Promise.all([r.fetchSelf(),r.fetchPermission(e)]);for(let i=0;i<t.length;i++){const a=t[i];if(!r.hasPermission(e,a))throw"ERR_MISSING_PERMISSION"}}const Pu=kr.defineStore("authorization",{state:()=>({user:void 0,establishments:{}}),getters:{roles:e=>e.user.roles??[],isRH(){return this.roles.includes("ROLE_RH")},isCandidate(){return this.roles.includes("ROLE_CANDIDATE")},isAdmin(){return this.roles.includes("ROLE_ADMIN")}},actions:{async fetchSelf(e){if(this.user===void 0||e){const t=await Kt().self().send();this.user=t.getData()}},async fetchPermission(e,t){if(!this.establishments[e]||t){const n=await Jt().authorizations(e).send();this.establishments[e]=n.getData()}},hasPermission(e,...t){const n=this.establishments[e];return n===void 0?!1:t.every(r=>n[r]===!0)}}});let Ce=null;function R(){if(Ce)return Ce;const e=ue.getEnvironment(),t=(()=>e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(),n=!!t,r=e!=="prod"&&e!=="production";let i=null;function a(){return n}function l(){const o=window.analytics=window.analytics||[];if(!o.initialize&&o.invoked)U.error("Segment snippet included twice.");else{o.invoked=!0,o.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],o.factory=function(c){return function(){if(window.analytics.initialized)return window.analytics[c].apply(window.analytics,arguments);const f=Array.prototype.slice.call(arguments);return f.unshift(c),o.push(f),o}};for(let c=0;c<o.methods.length;c++){const f=o.methods[c];o[f]=o.factory(f)}o.load=function(c,f){const E=document.createElement("script");E.id="analytics-script",E.type="text/javascript",E.async=!0,E.src="https://cdn.segment.com/analytics.js/v1/"+c+"/analytics.min.js",E.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const P=document.getElementsByTagName("script")[0];P.parentNode.insertBefore(E,P),o._loadOptions=f},o._writeKey=t,o.SNIPPET_VERSION="4.16.1",o.load(t),o.page(),o.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}}async function y(){return i!==null||(i=new Promise((o,c)=>{if(!a())return h("Analytics is disabled."),o();if(window.addEventListener("analytics-ready",()=>{h("Analytics script loaded successfully."),o()}),window.addEventListener("analytics-error",()=>{h("Analytics script failed to load. Consider disabling your AdBlocker.",null,"error"),c()}),h("Loading Analytics script."),window.analytics)return o();l()})),i}async function u(o,c){if(!de())try{if(await this.analyticsScriptReady(),h("[identify]",[o,c]),a())return window.analytics.identify(o,c)}catch{h("[identify]",[o,c],"error")}}async function d(o,c,f){if(!de()){typeof f!="object"&&(f={});try{if(await this.analyticsScriptReady(),h("[page]",[o,c,f]),a())return window.analytics.page(o,{category:c,...f})}catch(E){console.log(E),h("[page]",[o,c,f],"error")}}}async function p(o,c,f){if(!de()){typeof f!="object"&&(f={});try{if(await this.analyticsScriptReady(),h("[track]",[o,c,f]),a())return window.analytics.track(o,{category:c,...f})}catch{h("[track]",[o,c,f],"error")}}}function h(o,c=[],f="info"){c||(c=[]),r&&U[f](`::SDK Analytics:: ${o}`,...c)}return Ce={analyticsScriptReady:y,isEnabled:a,identify:u,page:d,track:p,consoleMessage:h},Ce}R.destroy=()=>Ce=null;function gr(){const e="Hubler Application";function t(d){if(!d)throw new Error(`Missing arguments for domain "${e}"`);const p=!!d.offerId;if(p&&!d.recruitmentId)throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);return{companyId:d.establishmentId?d.establishmentId.toString():null,jobOfferId:p?d.offerId.toString():null,recruitmentId:p?d.recruitmentId.toString():null,selections:[p?"Application":"Spontaneous Application"]}}async function n(d){return R().page("Application Authentication Viewed",e,t(d))}async function r(d){return R().page("Application Magic Link Viewed",e,t(d))}async function i(d){return R().page("Application Job Viewed",e,t(d))}async function a(d){return R().page("Application Information Viewed",e,t(d))}async function l(d){return R().page("Application Document Viewed",e,t(d))}async function y(d){return R().page("Application Success Viewed",e,t(d))}async function u(d){if(!d.error)throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);return R().track("Application Form Failed",e,{...t(d),error:d.error})}return{applicationAuthenticationViewed:n,applicationMagicLinkViewed:r,applicationJobViewed:i,applicationInformationViewed:a,applicationDocumentViewed:l,applicationSuccessViewed:y,applicationFormFailed:u}}function br(){const e="Profile";function t(s,g){var I;if(!s)throw new Error(`Missing arguments for domain "${e}"`);const A={companyId:s.companyId?s.companyId.toString():null,hublerId:(I=s.hublerId)==null?void 0:I.toString()};return g&&(A.productId=s.companyId?s.companyId+"_2":null),s.recruitmentId&&(A.recruitmentId=s.recruitmentId.toString()),s.selections&&(A.selections=s.selections),s.institutionId&&(A.institutionId=s.institutionId.map(String)),A}async function n(s){return R().track(s.name,e,t(s.properties),!0)}async function r(s){return R().track(s.name,e,t(s.properties,!0))}async function i(s){return R().track(s.name,e,t(s.properties,!0))}async function a(s){return R().track(s.name,e,t(s.properties,!0))}async function l(s){return R().track(s.name,e,t(s.properties,!0))}async function y(s){return R().track(s.name,e,t(s.properties,!0))}async function u(s){return R().track(s.name,e,t(s.properties,!0))}async function d(s){return R().track(s.name,e,t(s.properties,!0))}async function p(s){return R().track(s.name,e,t(s.properties,!0))}async function h(s){return R().track(s.name,e,t(s.properties,!0))}async function o(s){return R().track(s.name,e,t(s.properties,!0))}async function c(s){return R().track(s.name,e,t(s.properties,!0))}async function f(s){return R().track(s.name,e,t(s.properties,!0))}async function E(s){return R().page(s.name,s.properties.category,t(s.properties,!1))}async function P(s){return R().track(s.name,e,t(s.properties,!1))}return{profileDocumentDeleted:n,profileLabelAdded:r,profileLabelRemoved:i,profileShared:a,profileArchived:l,profileCandidateAdded:y,profileCommentAdded:u,profileDocumentAdded:d,profileDocumentDownloaded:p,profileDocumentRequested:h,profileRecruitmentAdded:o,profileRecruitmentRemoved:c,profileTabSelected:f,profileViewed:E,profileEmailSent:P}}function wr(){const e="Recruitment";function t(r){if(!r)throw new Error(`Missing arguments for domain "${e}"`);const i={companyId:r.companyId?r.companyId.toString():null};return r.institutionId&&(i.institutionId=[r.institutionId.toString()]),r.origin&&(i.origin=r.origin.toString()),i}async function n(r){return R().track(r.name,e,{...t(r),recruitmentId:r.recruitmentId.toString(),count:parseInt(r.count)})}return{candidateAdded:n}}function vr(){const e="Visual Builder";function t(b,ee){if(!b)throw new Error(`Missing arguments for domain "${e}"`);const N={companyId:b.companyId?b.companyId.toString():null};return ee&&(N.productId=b.companyId?b.companyId+"_2":null),b.selections&&(N.selections=b.selections),b.error&&(N.error=b.error),b.institutionId&&(N.institutionId=[b.institutionId.toString()]),N}async function n(b){return R().page(b.name,e,t(b.properties,!0))}async function r(b){return R().track(b.name,e,t(b.properties),!0)}async function i(b){return R().track(b.name,e,t(b.properties,!0))}async function a(b){return R().page(b.name,e,t(b.properties,!0))}async function l(b){return R().page(b.name,e,t(b.properties,!0))}async function y(b){return R().track(b.name,e,t(b.properties,!0))}async function u(b){return R().page(b.name,e,t(b.properties,!0))}async function d(b){return R().page(b.name,e,t(b.properties,!0))}async function p(b){return R().page(b.name,e,t(b.properties,!0))}async function h(b){return R().track(b.name,e,t(b.properties,!0))}async function o(b){return R().page(b.name,e,t(b.properties,!0))}async function c(b){return R().page(b.name,e,t(b.properties,!0))}async function f(b){return R().track(b.name,e,t(b.properties,!0))}async function E(b){return R().track(b.name,e,t(b.properties,!0))}async function P(b){return R().page(b.name,e,t(b.properties,!0))}async function s(b){return R().page(b.name,e,t(b.properties,!0))}async function g(b){return R().page(b.name,e,t(b.properties,!0))}async function A(b){return R().page(b.name,e,t(b.properties,!0))}async function I(b){return R().page(b.name,e,t(b.properties,!1))}async function M(b){return R().track(b.name,e,t(b.properties,!0))}async function G(b){return R().track(b.name,e,t(b.properties,!0))}async function L(b){return R().track(b.name,e,t(b.properties,!0))}async function _(b){return R().track(b.name,e,t(b.properties,!0))}async function C(b){return R().track(b.name,e,t(b.properties,!0))}async function x(b){return R().track(b.name,e,t(b.properties,!0))}async function K(b){return R().track(b.name,e,t(b.properties,!0))}async function q(b){return R().track(b.name,e,t(b.properties,!0))}async function ce(b){return R().track(b.name,e,t(b.properties,!0))}async function Q(b){return R().track(b.name,e,t(b.properties,!0))}async function te(b){return R().track(b.name,e,t(b.properties,!0))}async function Z(b){return R().track(b.name,e,t(b.properties,!0))}async function le(b){return R().track(b.name,e,t(b.properties,!0))}async function Y(b){return R().page(b.name,e,t(b.properties,!1))}return{careerSitePreviewViewed:n,careerSitePublished:r,setupBenefitCustomAdded:i,setupBenefitViewed:a,setupCandidateInformationViewed:l,setupContactAdded:y,setupContactViewed:u,setupEditionDoneViewed:d,setupExternalLinkViewed:p,setupImageUploaded:h,setupImageViewed:o,setupLocationViewed:c,setupPresentationContentAdded:f,setupPresentationNewTabAdded:E,setupPresentationViewed:P,setupSettingsDoneViewed:s,setupSocialNetworkViewed:g,setupThemeViewed:A,visualBuilderViewed:I,setupImageUploadFailed:M,fastCopyLinkClicked:G,setupBenefitCustomDeleted:L,setupBenefitCustomEdited:_,setupContactDeleted:C,setupContactEdited:x,setupContactNewClicked:K,setupPresentationContentDeleted:q,setupPresentationContentDuplicated:ce,setupPresentationContentMoved:Q,setupPresentationTabDeleted:te,setupPresentationTabEdited:Z,setupPresentationTabMoved:le,setupSEOViewed:Y}}const mn=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsHublerApplication:gr,useAnalyticsProfile:br,useAnalyticsRecruitment:wr,useAnalyticsVisualBuilder:vr},Symbol.toStringTag,{value:"Module"}));function Ru(){function e(n){return R().identify(n.id,{email:n.email,firstName:n.firstname,lastName:n.lastname,createdAt:n.createdAt,type:"Hubler",lang:"fr",medium:t()?"MOBILE_DEVICE":"WEB_BROWSER"})}function t(){let n=!1;return function(r){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n}return{identifyCandidate:e}}let We=null;const Nu=async(e,t)=>{try{return await it(),U.info("[identify]",[e,t]),window.analytics.identify(e,t)}catch{U.error("[identify]",[e,t])}},Cu=async(e,t,n)=>{typeof n!="object"&&(n={});try{return await it(),U.info("[page]",[e,t,n]),window.analytics.page(e,{category:t,...n})}catch{U.error("[page]",[e,t,n])}},Ou=async(e,t,n)=>{typeof n!="object"&&(n={});try{return await it(),U.info("[track]",[e,t,n]),window.analytics.track(e,{category:t,...n})}catch{U.error("[track]",[e,t,n])}},Mt=()=>{const e=ue.getEnvironment();return e==="prod"||e==="production"?"pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp":e==="staging"?"823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF":"TMZX6evFnu87JrBHV5qLwHsld5C6hilZ"},Sr=()=>{const e=window.analytics=window.analytics||[];if(!e.initialize&&e.invoked)U.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){if(window.analytics.initialized)return window.analytics[t].apply(window.analytics,arguments);const n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(let t=0;t<e.methods.length;t++){const n=e.methods[t];e[n]=e.factory(n)}e.load=function(t,n){const r=document.createElement("script");r.id="analytics-script",r.type="text/javascript",r.async=!0,r.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js",r.onerror=()=>window.dispatchEvent(new Event("analytics-error"));const i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),e._loadOptions=n},e._writeKey=Mt(),e.SNIPPET_VERSION="4.16.1",e.load(Mt()),e.page(),e.ready(()=>window.dispatchEvent(new Event("analytics-ready")))}},it=()=>(We!==null||(We=new Promise((e,t)=>{if(window.addEventListener("analytics-ready",()=>{U.info("Analytics script loaded successfully."),e()}),window.addEventListener("analytics-error",()=>{U.error("Analytics script failed to load. Consider disabling your AdBlocker."),t()}),U.info("Loading Analytics script."),window.analytics)return e();Sr()})),We),_u={key:Mt,appendScript:Sr,ready:it,identify:Nu,page:Cu,track:Ou},ku="AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";let Ar=!1;const Er=()=>new Promise(e=>{de()||Ar||window.google&&window.google.maps?e():(window.addEventListener("gmap-ready",()=>e()),$u())}),Fu=(e,t)=>Er().then(()=>{de()||Mu(e,t)}),Mu=(e,t)=>{const n=new window.google.maps.places.Autocomplete(e,{componentRestrictions:{country:["fr","re","yt","gp","mq"]}});window.google.maps.event.addListener(n,"place_changed",()=>{const r=n.getPlace();r.formatted_address&&t&&t(r.formatted_address,r)})},$u=()=>{window.onGmapScriptReady=()=>{};const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+ku+"&libraries=places&callback=onGmapScriptReady",e.async=!0,e.defer=!0,e.onload=()=>window.dispatchEvent(new Event("gmap-ready")),document.body.appendChild(e),Ar=!0},Bu={scriptReady:Er,autocompleteInput:Fu},Du={common:{the:"le",from:"de"},timeAgo:{"just-now":"à l'instant",ago:"il y a {0}",in:"dans {0}","last-month":"le mois dernier","next-month":"le mois prochain",month:"mois | mois","last-year":"l'année dernière","next-year":"l'année prochaine",year:"an | ans",yesterday:"hier",tomorrow:"demain",day:"jour | jours","last-week":"la semaine dernière","next-week":"la semaine prochaine",week:"semaine | semaines",hour:"heure | heures",minute:"minute | minutes",second:"seconde | secondes"}},Lu={fr:Du};let $t=null;const Ir=()=>$t,ju=(e={})=>{let t=e.locale||"fr";const n=u=>t=u,r=()=>t,i=Lt(Lu,(e==null?void 0:e.messages)||{}),a=(u,d)=>{const p=he(i,`${t}.${u}`);return p?d?Uu(p,d):p:u},l=(u,d)=>{const p=he(i,`${t}.${u}`);return p?Vu(p,d):u};return $t={t:a,tNode:l,setLocale:n,getLocale:r,install:u=>{u.config.globalProperties.$t=a,u.config.globalProperties.$tNode=l}},$t},Uu=(e,t)=>e?e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g,(n,r)=>he(t,r)):null,Vu=(e,t)=>{if(!e)return null;const n=e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter(r=>r!=="").map(r=>{const i=r.startsWith("{%")&&r.endsWith("%}")?"slot":r.startsWith("{{")&&r.endsWith("}}")?"variable":"text";if(i==="text")return()=>gn.text(r);r=r.replace(/[{}%]/g,"").trim();const a=r.match(/^[a-zA-Z_.]+/)[0];r=r.replace(a,"").trim();const l={};return r!==""&&([...r.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((d,p)=>(p[3]===void 0?Tt(d,p[1],he(t,p[1])):Tt(d,p[1],he(t,p[3])),d),l),[...r.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((d,p)=>{let h=p[2];return new RegExp(/^[0-9]*$/).exec(p[2])?h=parseInt(p[2]):new RegExp(/^(true|false)$/).exec(p[2])&&(h=p[2]==="true"),d[p[1]]=h,d},l)),y=>gn[i](a,t,y,l)});return{setup:(r,{slots:i})=>()=>n.map(a=>a(i))}},gn={slot:(e,t,n,r)=>Ie.h("span",{class:"node node--slot"},n[e.trim()](r)),variable:(e,t)=>Ie.h("span",{class:"node node--variable"},he(t,e.trim())),text:e=>Ie.h("span",{class:"node node--text"},e)};function Gu(e){const{t}=Ir(),n={justNow:t("timeAgo.just-now"),past:r=>r.match(/\d/)?t("timeAgo.ago",[r]):r,future:r=>r.match(/\d/)?t("timeAgo.in",[r]):r,month:(r,i)=>r===1?t(i?"timeAgo.last-month":"timeAgo.next-month"):`${r} ${t("timeAgo.month",r)}`,year:(r,i)=>r===1?t(i?"timeAgo.last-year":"timeAgo.next-year"):`${r} ${t("timeAgo.year",r)}`,day:(r,i)=>r===1?t(i?"timeAgo.yesterday":"timeAgo.tomorrow"):`${r} ${t("timeAgo.day",r)}`,week:(r,i)=>r===1?t(i?"timeAgo.last-week":"timeAgo.next-week"):`${r} ${t("timeAgo.week",r)}`,hour:r=>`${r} ${t("timeAgo.hour",r)}`,minute:r=>`${r} ${t("timeAgo.minute",r)}`,second:r=>`${r} ${t("timeAgo.second",r)}`,invalid:""};return Fr.useTimeAgo(e,{fullDateFormatter:r=>r.toLocaleDateString(),messages:n})}function Wu(){let e=null;function t(){return e}function n(){return e.controller}function r(){return"use"+e.controller.charAt(0).toUpperCase()+e.controller.slice(1)+"QSController"}function i(){return e.action}function a(){return e.arguments}function l(){return!!(e&&e.controller&&e.action)}function y(){window.location.search.length!==0&&(e=window.location.search.substring(1).split("&").reduce((u,d)=>{const p=d.split("=");return p[0]==="controller"||p[0]==="action"?u[p[0]]=decodeURIComponent(p[1]):u.arguments[p[0]]=decodeURIComponent(p[1]),u},{controller:null,action:null,arguments:{}}))}return y(),{getParams:t,getController:n,getControllerComposableName:r,getAction:i,getArguments:a,hasAction:l}}function zu(){async function e({domain:r,event:i,...a}){const l="useAnalytics"+r.charAt(0).toUpperCase()+r.slice(1);if(!t(l))throw new Error(`Domain ${r} is not defined`);const y=mn[l]();if(!n(y,i))throw new Error(`Event ${i} is not defined in domain ${r}`);return y[i](a)}function t(r){return!!mn[r]}function n(r,i){return!!r[i]}return{call:e}}const bn=Object.freeze(Object.defineProperty({__proto__:null,useAnalyticsQSController:zu},Symbol.toStringTag,{value:"Module"}));function Hu(e){if(!e.hasAction())throw new Error("No action found in router");function t(){if(!n())throw new Error(`Controller ${e.getController()} not found`);const i=bn[e.getControllerComposableName()]();if(!r(i))throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);return i[e.getAction()](e.getArguments())}function n(){return e.getControllerComposableName()in bn}function r(i){return e.getAction()in i}return{dispatch:t}}function qu(){let e=!1;function t(i,a,l){r(),l()}function n(i,a,l){if(!e)return e=!0,t(i,a,l);l()}function r(){const i=Wu();if(!i.hasAction())return;Hu(i).dispatch()}return{vueRouterBeforeEach:t,vueRouterBeforeFirst:n,handle:r}}const xu=()=>({getAssetUrl:t=>`${ue.getBaseAssetsUrl()}${t}`}),V=()=>ue.getMainAppHost(),Qu=()=>`${V()}/rh/establishments`,Ju=e=>`${V()}/rh/establishment/${e}`,Ku=e=>{var t;return typeof e=="string"?e:typeof e=="object"&&((t=e==null?void 0:e.urls)!=null&&t.display)?e.urls.display:null},Xu=()=>`${V()}/rh/dashboard`,Zu=e=>`${V()}/candidate-invite/establishment/${e}`,Yu=(e,t=!1)=>t?`${V()}/cvbank/${e}`:`${V()}/rh/establishment/${e}/cvtheque`,ec=(e,t)=>`${V()}/user-profile/establishment/${e}/user/${t}`,tc=e=>`${V()}/rh/establishment/${e}/recruitment`,nc=(e,t)=>`${V()}/rh/establishment/${e}/recruitment/${t}`,rc=(e,t)=>`${V()}/rh/establishment/${e}/recruitment/${t}/kanban`,ic=e=>`${V()}/rh/establishment/${e}/career-configuration`,oc=(e,t=null)=>t?`${V()}/career-website/${e}/${t}`:`${V()}/career-website/${e}`,sc=(e,t)=>`${V()}/career-website-preview/${e}/${t}`,ac=(e,t=null)=>{const n=V().replace("://",`://${e}.`);return t?`${n}?_version=${t}`:`${n}`},uc=e=>`${V()}/rh/establishment/${e}/stats`,cc=e=>`${V()}/rh/establishment/${e}/backoffice`,lc=()=>`${V()}/rh/settings/general`;function fc(){return{root:V,establishments:Qu,establishment:Ju,img:Ku,dashboard:Xu,candidateInvite:Zu,cvtheque:Yu,userProfile:ec,recruitments:tc,recruitment:nc,recruitmentKanban:rc,career:ic,careerConfig:oc,careerPreview:sc,careerWebsite:ac,statistics:uc,backoffice:cc,userSettings:lc}}const wn=new Set;let Oe,Bt={ignore:e=>e.startsWith("Ui")};const It=e=>{if(e!=null&&e.classList){e._cssChecked=!0;for(const t of e.classList)Oe.has(t)||wn.has(t)||Bt.ignore(t)||(wn.add(t),U.error(`Undefined CSS class: ${t}`))}},Tr=e=>{var t;for(const n of e)if(n!=null&&n.cssRules&&(n==null?void 0:n.cssRules.length)>0)Tr(n.cssRules);else if(n.selectorText){const r=(t=n.selectorText)==null?void 0:t.match(/\.[\w-]+/g);if(r)for(const i of r)Oe.add(i.substr(1))}},dc=(e={})=>{if(Oe)return Oe;Oe=new Set,Bt={...Bt,...e},Tr(document.styleSheets),new MutationObserver(n=>{for(const r of n)if(r.type==="childList"&&(r!=null&&r.addedNodes)){for(const i of r.addedNodes)if(!(i.nodeType===3||i.nodeType===8)){It(i);for(const a of i.querySelectorAll("*"))It(a)}}else(r==null?void 0:r.attributeName)==="class"&&It(r.target)}).observe(document,{attributes:!0,childList:!0,subtree:!0})},pc="0.2.66";exports.Analytics=_u;exports.BaseLogger=Ze;exports.Gmap=Bu;exports.SDKConfig=ue;exports.SDKLogger=U;exports.VERSION=pc;exports._clone=Sn;exports._get=he;exports._merge=Lt;exports._set=Tt;exports.createI18n=ju;exports.ensureScheme=ui;exports.inBrowser=Jr;exports.inNode=de;exports.isArray=jt;exports.isArrayOf=ii;exports.isBoolean=Kr;exports.isDate=Yr;exports.isFalsy=ri;exports.isFunction=ei;exports.isMobile=Qr;exports.isNotNullOrUndefined=ti;exports.isNull=An;exports.isNullOrUndefined=In;exports.isNumber=Xr;exports.isObject=Ut;exports.isObjectOf=oi;exports.isString=Zr;exports.isTruthy=ni;exports.isUndefined=En;exports.objectPropsAre=si;exports.secureScheme=ai;exports.useActivityRepository=Us;exports.useAnalyticsHublerApplication=gr;exports.useAnalyticsIdentify=Ru;exports.useAnalyticsProfile=br;exports.useAnalyticsRecruitment=wr;exports.useAnalyticsVisualBuilder=vr;exports.useAssetUrls=xu;exports.useAuthentication=Fe;exports.useAuthorization=mr;exports.useAuthorizationStore=Pu;exports.useCanAccessEstablishmentMiddleware=Tu;exports.useCandidateRepository=Xs;exports.useCommentRepository=na;exports.useContractTypeRepository=oa;exports.useCookieStorage=Pn;exports.useCvbankRepository=ua;exports.useCvthequeRepository=la;exports.useDiplomaRepository=da;exports.useDocumentRepository=ba;exports.useDomainUrls=fc;exports.useEmailHistoryRepository=va;exports.useEmailRepository=Ea;exports.useEmailTemplateRepository=Pa;exports.useEstablishmentCareerRepository=ka;exports.useEstablishmentRepository=Jt;exports.useFeatureFlagRepository=Da;exports.useI18n=Ir;exports.useJobRepository=Ua;exports.useLabelRepository=qa;exports.useLocaleTimeAgo=Gu;exports.useOfferRepository=Qa;exports.usePrivateRequest=T;exports.useQSAction=qu;exports.useRecruiterRepository=Ka;exports.useRecruitmentRepository=iu;exports.useRegisterRepository=cu;exports.useRegistrationRepository=fu;exports.useRequest=z;exports.useSpecialityRepository=yu;exports.useTagRepository=mu;exports.useTalentRepository=wu;exports.useUndefinedCssClasses=dc;exports.useUserRepository=Kt;
|