@hublo/mstaff-client-sdk 0.2.67 → 0.2.68
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 +1 -1
- package/dist/core.js +2 -2
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
`)>=0,B+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?S[0]+(w===""?"":w+`
|
|
14
14
|
`)+" "+m.join(`,
|
|
15
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;
|
|
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()?sessionStorage: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.67";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;
|
package/dist/core.js
CHANGED
|
@@ -3673,7 +3673,7 @@ function Ke(e = {
|
|
|
3673
3673
|
auth: "token",
|
|
3674
3674
|
refresh: "refresh_token",
|
|
3675
3675
|
expiration: "token_expiration_date"
|
|
3676
|
-
}, t = Xo.isNode() ?
|
|
3676
|
+
}, t = Xo.isNode() ? sessionStorage : xr()) {
|
|
3677
3677
|
if (Le)
|
|
3678
3678
|
return Le;
|
|
3679
3679
|
function n() {
|
|
@@ -5187,7 +5187,7 @@ const At = (e) => {
|
|
|
5187
5187
|
childList: !0,
|
|
5188
5188
|
subtree: !0
|
|
5189
5189
|
});
|
|
5190
|
-
}, Pc = "0.2.
|
|
5190
|
+
}, Pc = "0.2.67";
|
|
5191
5191
|
export {
|
|
5192
5192
|
bc as Analytics,
|
|
5193
5193
|
kt as BaseLogger,
|