PageSourceSearch

https://gueux.fr/wp-content/cache/min/1/wp-content/plugins/comarqu…/build/display/com-front.js?ver=1789724379

js gueux.fr collected 2026-09-24 21:53:01 UTC 128,920 bytes, 1 lines download raw bytes

1(()=>{var e={133:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var a=(0,r.default)(e),o="function"==typeof t;return a.forEach(function(e){if("declaration"===e.type){var a=e.property,r=e.value;o?t(a,r,e):r&&((n=n||{})[a]=r)}}),n};var r=a(n(788))},141:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(413),c=n(957);r(n(957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new c.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new c.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,a=new c.Element(e,t,void 0,n);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new c.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new c.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new c.Text(""),t=new c.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new c.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=i,t.default=i},210:(e,t,n)=>{"use strict";function a(e,t,n,a,r,o,c){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=c}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{r[e]=new a(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{r[e]=new a(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{r[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{r[e]=new a(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","o
1pen","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{r[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{r[e]=new a(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{r[e]=new a(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{r[e]=new a(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{r[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)});const o=/[\-\:]([a-z])/g,c=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(o,c);r[t]=new a(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(o,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(o,c);r[t]=new a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{r[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)}),r.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{r[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:l,SAME:i,possibleStandardNames:s}=n(811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),m=Object.keys(s).reduce((e,t)=>{const n=s[t];return n===i?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=m},229:function(e,t,n){"use strict";var a=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(133)),r=n(917);function o(e,t){var n={};return e&&"string"==typeof e?((0,a.default)(e,function(e,a){e&&a&&(n[(0,r.camelCase)(e,t)]=a)}),n):n}o.default=o,e.exports=o},270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{})},308:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var a=[],r="function"==typeof n.replace,s=n.transform||c.returnFirstArg,u=n.library||l,m=u.cloneElement,d=u.createElement,p=u.isValidElement,h=t.length,b=0;b<h;b++){var f=t[b];if(r){var E=n.replace(f,b);if(p(E)){h>1&&(E=m(E,{key:E.key||b})),a.push(s(E,f,b));continue}}if("text"!==f.type){var g=f,v={};i(g)?((0,c.setStyleProp)(g.attribs.style,g.attribs),v=g.attribs):g.attribs&&(v=(0,o.default)(g.attribs,g.name));var k=void 0;switch(f.type){case"script":case"style":f.children[0]&&(v.dangerouslySetInnerHTML={__html:f.children[0].data});break;case"tag":"textarea"===f.name&&f.children[0]?v.defaultValue=f.children[0].data:f.children&&f.children.length&&(k=e(f.children,n));break;default:continue}h>1&&(v.key=b),a.push(s(d(f.name,v,k),f,b))}else{var y=!f.data.trim().length;if(y&&f.parent&&!(0,c.canTextBeChildOfNode)(f.parent))continue;if(n.trim&&y)continue;a.push(s(f.data,f,b))}}return 1===a.length?a[0]:a};var r=n(594),o=a(n(840)),c=n(958),l={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function i(e){return c.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,c.isCustomComponent)(e.name,e.attribs)}},413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},442:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,c.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||i),t):[]};var r=a(n(471));t.htmlToDOM=r.default;var o=a(n(840));t.attributesToProps=o.default;var c=a(n(308));t.domToReact=c.default;var l=n(141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var i={lowerCaseAttributeNames:!1}},471:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(c),n=t?t[1]:void 0;return(0,o.formatDOM)((0,r.default)(e),null,n)};var r=a(n(496)),o=n(731),c=/<(![a-zA-Z\s]+)>/},496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,d=(e=(0,a.escapeSpecialCharacters)(e)).match(l),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case r:var h=m(e);return i.test(e)||null===(t=null==(E=h.querySelector(o))?void 0:E.parentNode)||void 0===t||t.removeChild(E),s.test(e)||null===(n=null==(E=h.querySelector(c))?void 0:E.parentNode)||void 0===n||n.removeChild(E),h.querySelectorAll(r);case o:case c:var f=u(e).querySelectorAll(p);return s.test(e)&&i.test(e)?f[0].parentNode.childNodes:f;default:return b?b(e):(E=u(e,c).querySelector(c)).childNodes;var E}};var a=n(731),r="html",o="head",c="body",l=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,s=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},m=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var p=new d;u=m=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var b,f="object"==typeof document&&document.createElement("template");f&&f.content&&(b=function(e){return f.innerHTML=e,f.content.childNodes})},594:e=>{"use strict";e.exports=React},731:(e,t,n)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.escapeSpecialCharacters=function(e){return e.replace(/\r/g,"\\r")},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,r){void 0===n&&(n=null);for(var i,s=[],u=0,m=t.length;u<m;u++){var d=t[u];switch(d.nodeType){case 1:var p=c(d.nodeName);(i=new a.Element(p,o(d.attributes))).children=e("template"===p?d.content.childNodes:d.childNodes,i);break;case 3:i=new a.Text(l(d.nodeValue));break;case 8:i=new a.Comment(d.nodeValue);break;default:continue}var h=s[u-1]||null;h&&(h.next=i),i.parent=n,i.prev=h,i.next=null,s.push(i)}return r&&((i=new a.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=s[0]||null,i.parent=n,s.unshift(i),s[1]&&(s[1].prev=s[0])),s};var a=n(141),r=n(270);function o(e){for(var t={},n=0,a=e.length;n<a;n++){var r=e[n];t[r.name]=r.value}return t}function c(e){return function(e){return r.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function l(e){return e.replace(/\\r/g,"\r")}},788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,i=/^\s+|\s+$/g,s="";function u(e){return e?e.replace(i,s):s}e.exports=function(e,i){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];i=i||{};var m=1,d=1;function p(e){var t=e.match(n);t&&(m+=t.length);var a=e.lastIndexOf("\n");d=~a?e.length-a:d+e.length}function h(){var e={line:m,column:d};return function(t){return t.position=new b(e),v(),t}}function b(e){this.start=e,this.end={line:m,column:d},this.source=i.source}b.prototype.content=e;var f=[];function E(t){var n=new Error(i.source+":"+m+":"+d+": "+t);if(n.reason=t,n.filename=i.source,n.line=m,n.column=d,n.source=e,!i.silent)throw n;f.push(n)}function g(t){var n=t.exec(e);if(n){var a=n[0];return p(a),e=e.slice(a.length),n}}function v(){g(a)}function k(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return E("End of comment missing");var a=e.slice(2,n-2);return d+=2,p(a),e=e.slice(n),d+=2,t({type:"comment",comment:a})}}function w(){var e=h(),n=g(r);if(n){if(y(),!g(o))return E("property missing ':'");var a=g(c),i=e({type:"declaration",property:u(n[0].replace(t,s)),value:a?u(a[0].replace(t,s)):s});return g(l),i}}return v(),function(){var e,t=[];for(k(t);e=w();)!1!==e&&(t.push(e),k(t));return t}()}},811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRen
1dering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xl
1inkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:a,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:c,create:l}=Object,{apply:i,construct:s}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),c||(c=function(e){return e}),i||(i=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),m=_(Array.prototype.pop),d=_(Array.prototype.push),p=_(String.prototype.toLowerCase),h=_(String.prototype.toString),b=_(String.prototype.match),f=_(String.prototype.replace),E=_(String.prototype.indexOf),g=_(String.prototype.trim),v=_(Object.prototype.hasOwnProperty),k=_(RegExp.prototype.test),y=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(w,t)});var w;function _(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return i(e,t,a)}}function N(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let o=a.length;for(;o--;){let t=a[o];if("string"==typeof t){const e=r(t);e!==t&&(n(a)||(a[o]=e),t=e)}e[t]=!0}return e}function x(e){for(let t=0;t<e.length;t++)v(e,t)||(e[t]=null);return e}function T(t){const n=l(null);for(const[a,r]of e(t))v(t,a)&&(Array.isArray(r)?n[a]=x(r):r&&"object"==typeof r&&r.constructor===Object?n[a]=T(r):n[a]=r);return n}function S(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=a(e)}return function(){return null}}const R=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),L=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),P=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=c(/<%[\w\W]*|[\w\W]*%>/gm),B=c(/\${[\w\W]*}/gm),U=c(/^data-[\-\w.\u00B7-\uFFFF]/),j=c(/^aria-[\-\w]+$/),G=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=c(/^(?:\w+script|data):/i),q=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:V,TMPLIT_EXPR:B,DATA_ATTR:U,ARIA_ATTR:j,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:q,DOCTYPE_NAME:W,CUSTOM_ELEMENT:Z});const X=1,Q=3,K=7,J=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const a=e=>t(e);if(a.version="3.1.7",a.removed=[],!n||!n.document||n.document.nodeType!==ee)return a.isSupported=!1,a;let{document:r}=n;const c=r,i=c.currentScript,{DocumentFragment:s,HTMLTemplateElement:w,Node:_,Element:x,NodeFilter:F,NamedNodeMap:V=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:U,trustedTypes:j}=n,$=x.prototype,q=S($,"cloneNode"),Z=S($,"remove"),ne=S($,"nextSibling"),ae=S($,"childNodes"),re=S($,"parentNode");if("function"==typeof w){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let oe,ce="";const{implementation:le,createNodeIterator:ie,createDocumentFragment:se,getElementsByTagName:ue}=r,{importNode:me}=c;let de={};a.isSupported="function"==typeof e&&"function"==typeof re&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:pe,ERB_EXPR:he,TMPLIT_EXPR:be,DATA_ATTR:fe,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:ke}=Y;let{IS_ALLOWED_URI:ye}=Y,we=null;const _e=N({},[...R,...C,...I,...D,...M]);let Ne=null;const xe=N({},[...O,...P,...z,...H]);let Te=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Re=null,Ce=!0,Ie=!0,Ae=!1,De=!0,Le=!1,Me=!0,Oe=!1,Pe=!1,ze=!1,He=!1,Fe=!1,Ve=!1,Be=!0,Ue=!1,je=!0,Ge=!1,$e={},qe=null;const We=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const Ye=N({},["audio","video","img","source","image","track"]);let Xe=null;const Qe=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,at=null;const rt=N({},[Ke,Je,et],h);let ot=null;const ct=["application/xhtml+xml","text/html"];let lt=null,it=null;const st=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!it||it!==e){if(e&&"object"==typeof e||(e={}
vendor: 10,062 bytes, line 1
1),e=T(e),ot=-1===ct.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===ot?h:p,we=v(e,"ALLOWED_TAGS")?N({},e.ALLOWED_TAGS,lt):_e,Ne=v(e,"ALLOWED_ATTR")?N({},e.ALLOWED_ATTR,lt):xe,at=v(e,"ALLOWED_NAMESPACES")?N({},e.ALLOWED_NAMESPACES,h):rt,Xe=v(e,"ADD_URI_SAFE_ATTR")?N(T(Qe),e.ADD_URI_SAFE_ATTR,lt):Qe,Ze=v(e,"ADD_DATA_URI_TAGS")?N(T(Ye),e.ADD_DATA_URI_TAGS,lt):Ye,qe=v(e,"FORBID_CONTENTS")?N({},e.FORBID_CONTENTS,lt):We,Se=v(e,"FORBID_TAGS")?N({},e.FORBID_TAGS,lt):{},Re=v(e,"FORBID_ATTR")?N({},e.FORBID_ATTR,lt):{},$e=!!v(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Ae=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||G,tt=e.NAMESPACE||et,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),Fe&&(He=!0),$e&&(we=N({},M),Ne=[],!0===$e.html&&(N(we,R),N(Ne,O)),!0===$e.svg&&(N(we,C),N(Ne,P),N(Ne,H)),!0===$e.svgFilters&&(N(we,I),N(Ne,P),N(Ne,H)),!0===$e.mathMl&&(N(we,D),N(Ne,z),N(Ne,H))),e.ADD_TAGS&&(we===_e&&(we=T(we)),N(we,e.ADD_TAGS,lt)),e.ADD_ATTR&&(Ne===xe&&(Ne=T(Ne)),N(Ne,e.ADD_ATTR,lt)),e.ADD_URI_SAFE_ATTR&&N(Xe,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(qe===We&&(qe=T(qe)),N(qe,e.FORBID_CONTENTS,lt)),je&&(we["#text"]=!0),Oe&&N(we,["html","head","body"]),we.table&&(N(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');oe=e.TRUSTED_TYPES_POLICY,ce=oe.createHTML("")}else void 0===oe&&(oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,i)),null!==oe&&"string"==typeof ce&&(ce=oe.createHTML(""));o&&o(e),it=e}},dt=N({},["mi","mo","mn","ms","mtext"]),pt=N({},["annotation-xml"]),ht=N({},["title","style","font","a","script"]),bt=N({},[...C,...I,...A]),ft=N({},[...D,...L]),Et=function(e){d(a.removed,{element:e});try{re(e).removeChild(e)}catch(t){Z(e)}},gt=function(e,t){try{d(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(He||Fe)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,n=null;if(ze)e="<remove></remove>"+e;else{const t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=oe?oe.createHTML(e):e;if(tt===et)try{t=(new U).parseFromString(a,ot)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ce:a}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),tt===et?ue.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:o},kt=function(e){return ie.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof V)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof _&&e instanceof _},_t=function(e,t,n){de[e]&&u(de[e],e=>{e.call(a,t,n,it)})},Nt=function(e){let t=null;if(_t("beforeSanitizeElements",e,null),yt(e))return Et(e),!0;const n=lt(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Et(e),!0;if(e.nodeType===K)return Et(e),!0;if(Me&&e.nodeType===J&&k(/<[/\w]/g,e.data))return Et(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&Tt(n)){if(Te.tagNameCheck instanceof RegExp&&k(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(je&&!qe[n]){const t=re(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let a=n.length-1;a>=0;--a){const r=q(n[a],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}return Et(e),!0}return e instanceof x&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=p(e.tagName),a=p(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===a||dt[a]):Boolean(bt[n]):e.namespaceURI===Ke?t.namespaceURI===et?"math"===n:t.namespaceURI===Je?"math"===n&&pt[a]:Boolean(ft[n]):e.namespaceURI===et?!(t.namespaceURI===Je&&!pt[a])&&!(t.namespaceURI===Ke&&!dt[a])&&!ft[n]&&(ht[n]||!bt[n]):!("application/xhtml+xml"!==ot||!at[e.namespaceURI]))}(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===Q&&(t=e.textContent,u([pe,he,be],e=>{t=f(t,e," ")}),e.textContent!==t&&(d(a.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(Et(e),!0)},xt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in st))return!1;if(Ie&&!Re[t]&&k(fe,t));else if(Ce&&k(Ee,t));else if(!Ne[t]||Re[t]){if(!(Tt(e)&&(Te.tagNameCheck instanceof RegExp&&k(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&k(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&k(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Xe[t]);else if(k(ye,f(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ze[e])if(Ae&&!k(ge,f(n,ve,"")));else if(n)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&b(e,ke)},St=function(e){_t("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};let r=t.length;for(;r--;){const o=t[r],{name:c,namespaceURI:l,value:i}=o,s=lt(c);let d="value"===c?i:g(i);if(n.attrName=s,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,_t("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(gt(c,e),!n.keepAttr)continue;if(!De&&k(/\/>/i,d)){gt(c,e);continue}Le&&u([pe,he,be],e=>{d=f(d,e," ")});const p=lt(e.nodeName);if(xt(p,s,d))if(!Ue||"id"!==s&&"name"!==s||(gt(c,e),d="user-content-"+d),Me&&k(/((--!?|])>)|<\/(style|title)/i,d))gt(c,e);else{if(oe&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(p,s)){case"TrustedHTML":d=oe.createHTML(d);break;case"TrustedScriptURL":d=oe.createScriptURL(d)}try{l?e.setAttributeNS(l,c,d):e.setAttribute(c,d),yt(e)?Et(e):m(a.removed)}catch(e){}}}_t("afterSanitizeAttributes",e,null)},Rt=function e(t){let n=null;const a=kt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=a.nextNode();)_t("uponSanitizeShadowNode",n,null),Nt(n)||(n.content instanceof s&&e(n.content),St(n));_t("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,l=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported)return e;if(Pe||mt(t),a.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=lt(e.nodeName);if(!we[t]||Se[t])throw y("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)n=vt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===X&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!He&&!Le&&!Oe&&-1===e.indexOf("<"))return oe&&Ve?oe.createHTML(e):e;if(n=vt(e),!n)return He?null:Ve?ce:""}n&&ze&&Et(n.firstChild);const i=kt(Ge?e:n);for(;o=i.nextNode();)Nt(o)||(o.content instanceof s&&Rt(o.content),St(o));if(Ge)return e;if(He){if(Fe)for(l=se.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ne.shadowroot||Ne.shadowrootmode)&&(l=me.call(c,l,!0)),l}let m=Oe?n.outerHTML:n.innerHTML;return Oe&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(W,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Le&&u([pe,he,be],e=>{m=f(m,e," ")}),oe&&Ve?oe.createHTML(m):m},a.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},a.clearConfig=function(){it=null,Pe=!1},a.isValidAttribute=function(e,t,n){it||mt({});const a=lt(e),r=lt(t);return xt(a,r,n)},a.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],d(de[e],t))},a.removeHook=function(e){if(de[e])return m(de[e])},a.removeHooks=function(e){de[e]&&(de[e]=[])},a.removeAllHooks=function(){de={}},a}()}()},840:(e,t,n)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},s=Boolean(e.type&&l[e.type]);for(var u in e){var m=e[u];if((0,a.isCustomAttribute)(u))n[u]=m;else{var d=u.toLowerCase(),p=i(d);if(p){var h=(0,a.getPropertyInfo)(p);switch(o.includes(p)&&c.includes(t)&&!s&&(p=i("default"+d)),n[p]=m,h&&h.type){case a.BOOLEAN:n[p]=!0;break;case a.OVERLOADED_BOOLEAN:""===m&&(n[p]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=m)}}return(0,r.setStyleProp)(e.style,n),n};var a=n(210),r=n(958),o=["checked","value"],c=["input","select","textarea"],l={reset:!0,submit:!0};function i(e){return a.possibleStandardNames[e]}},917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},i=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(c,i):e.replace(o,i)).replace(a,l))}},957:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var c=n(413),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=l;var i=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=i;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=c.ElementType.Text,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(i);t.Text=s;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=c.ElementType.Comment,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(i);t.Comment=u;var m=function(e){function t(t,n){var a=e.call(this,n)||this;return a.name=t,a.type=c.ElementType.Directive,a}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(i);t.ProcessingInstruction=m;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=c.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=c.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var b=function(e){function t(t,n,a,r){void 0===a&&(a=[]),void 0===r&&(r="script"===t?c.ElementType.Script:"style"===t?c.ElementType.Style:c.ElementType.Tag);var o=e.call(this,a)||this;return o.name=t,o.attribs=n,o.type=r,o}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,a;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(a=e["x-attribsPrefix"])||void 0===a?void 0:a[t]}})},enumerable:!1,configurable:!0}),t}(d);function f(e){return(0,c.isTag)(e)}function E(e){return e.type===c.ElementType.CDATA}function g(e){return e.type===c.ElementType.Text}function v(e){return e.type===c.ElementType.Comment}function k(e){return e.type===c.ElementType.Directive}function y(e){return e.type===c.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new s(e.data);else if(v(e))n=new u(e.data);else if(f(e)){var a=t?_(e.children):[],r=new b(e.name,o({},e.attribs),a);a.forEach(function(e){return e.parent=r}),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(E(e)){a=t?_(e.children):[];var c=new p(a);a.forEach(function(e){return e.parent=c}),n=c}else if(y(e)){a=t?_(e.children):[];var l=new h(a);a.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var i=new m(e.name,e.data);null!=e["x-name"]&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),n=i}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=b,t.isTag=f,t.isCDATA=E,t.isText=g,t.isComment=v,t.isDirective=k,t.isDocument=y,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},958:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!c.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,l)}catch(e){t.style={}}else t.style={}};var r=n(594),o=a(n(229)),c=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}}},t={};function n(a){var r=t[a];
1if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(594),t=n.n(e);const a=(e,t)=>{switch(e){case"arrow-right":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"}));case"arrow-left":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"M7.828 13l5.364 5.364-1.414 1.414L4 12l7.778-7.778 1.414 1.414L7.828 11H20v2H7.828Z"}));case"arrow-up":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"M11 7.828L5.636 13.192 4.222 11.778 12 4l7.778 7.778-1.414 1.414L13 7.828V20h-2V7.828Z"}));case"arrow-down":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"M13 16.172l5.364-5.364 1.414 1.414L12 20l-7.778-7.778 1.414-1.414L11 16.172V4h2v12.172z"}));case"address":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"adresse",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("title",null,"adresse"),React.createElement("path",{d:"M12 23.728l-6.364-6.364a9 9 0 1 1 12.728 0L12 23.728zm4.95-7.778a7 7 0 1 0-9.9 0L12 20.9l4.95-4.95zM12 13a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}));case"checked":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"m10 15.172 9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"}));case"document-model":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M19 22H5a3 3 0 0 1-3-3V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12h4v4a3 3 0 0 1-3 3zm-1-5v2a1 1 0 0 0 2 0v-2h-2zm-2 3V4H4v15a1 1 0 0 0 1 1h11zM6 7h8v2H6V7zm0 4h8v2H6v-2zm0 4h5v2H6v-2z"}));case"video":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM10.622 8.415l4.879 3.252a.4.4 0 0 1 0 .666l-4.88 3.252a.4.4 0 0 1-.621-.332V8.747a.4.4 0 0 1 .622-.332Z"}));case"back":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"16",height:"16"},React.createElement("path",{d:"M5.828 7l2.536 2.536L6.95 10.95 2 6l4.95-4.95 1.414 1.414L5.828 5H13a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H5.828z"}));case"simulator":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",class:"fr-mb-1w sp-icon sp-icon-ri-equalizer-line",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M6.17 18a3.001 3.001 0 0 1 5.66 0H22v2H11.83a3.001 3.001 0 0 1-5.66 0H2v-2h4.17zm6-7a3.001 3.001 0 0 1 5.66 0H22v2h-4.17a3.001 3.001 0 0 1-5.66 0H2v-2h10.17zm-6-7a3.001 3.001 0 0 1 5.66 0H22v2H11.83a3.001 3.001 0 0 1-5.66 0H2V4h4.17zM9 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-6 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}));case"help":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm-1-7v2h2v-2h-2Zm2-1.645A3.502 3.502 0 0 0 12 6.5a3.501 3.501 0 0 0-3.433 2.813l1.962.393A1.5 1.5 0 1 1 12 11.5a1 1 0 0 0-1 1V14h2v-.645Z"}));case"help-me":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",height:"32",viewBox:"0 0 24 24",width:"32"},React.createElement("path",{d:"M19.938 8H21a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-1.062A8.001 8.001 0 0 1 12 23v-2a6 6 0 0 0 6-6V9A6 6 0 1 0 6 9v7H3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1.062a8.001 8.001 0 0 1 15.876 0zM3 10v4h1v-4H3zm17 0v4h1v-4h-1zM7.76 15.785l1.06-1.696A5.972 5.972 0 0 0 12 15a5.972 5.972 0 0 0 3.18
1-.911l1.06 1.696A7.963 7.963 0 0 1 12 17a7.963 7.963 0 0 1-4.24-1.215z"}));case"external-link":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16"},React.createElement("path",{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6Zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8Z"}));case"chevron-down":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"20",height:"20"},React.createElement("path",{d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}));case"email":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"courriel",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("title",null,"Courriel")," ",React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})," ",React.createElement("path",{d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm17 4.238l-7.928 7.1L4 7.216V19h16V7.238zM4.511 5l7.55 6.662L19.502 5H4.511z"})," ");case"external-link":return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"baseocom-flex-shrink-0 baseocom-inline-block",viewBox:"0 0 24 24",width:"16",height:"16"},React.createElement("path",{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6Zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8Z"}));case"magnifying-glass":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"}));case"close":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:t||"24",height:t||"24"},React.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}));case"form":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M20 2c.552 0 1 .448 1 1v3.757l-2 2V4H5v16h14v-2.758l2-2V21c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h16zm1.778 6.808l1.414 1.414L15.414 18l-1.416-.002.002-1.412 7.778-7.778zM13 12v2H8v-2h5zm3-4v2H8V8h8z"}));case"checkbox-circle":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z"}));case"teleservice":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M16.05 12.05L21 17l-4.95 4.95-1.414-1.414 2.536-2.537L4 18v-2h13.172l-2.536-2.536 1.414-1.414zm-8.1-10l1.414 1.414L6.828 6 20 6v2H6.828l2.536 2.536L7.95 11.95 3 7l4.95-4.95z"}));case"research-tool":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm4.5-12.5L14 14l-6.5 2.5L10 10l6.5-2.5zM12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}));case"phone":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"téléphone",focusable:"false",viewBox:"0 0 24 24",width:"26",height:"26"},React.createElement("title",null,"Téléphone")," ",React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{d:"M9.366 10.682a10.556 10.556 0 0 0 3.952 3.952l.884-1.238a1 1 0 0 1 1.294-.296 11.422 11.422 0 0 0 4.583 1.364 1 1 0 0 1 .921.997v4.462a1 1 0 0 1-.898.995c-.53.055-1.064.082-1.602.082C9.94 21 3 14.06 3 5.5c0-.538.027-1.072.082-1.602A1 1 0 0 1 4.077 3h4.462a1 1 0 0 1 .997.921A11.422 11.422 0 0 0 10.9 8.504a1 1 0 0 1-.296 1.294l-1.238.884zm-2.522-.657l1.9-1.357A13.41 13.41 0 0 1 7.647 5H5.01c-.006.166-.009.333-.009.5C5 12.956 11.044 19 18.5 19c.167 0 .334-.003.5-.01v-2.637a13.41 13.41 0 0 1-3.668-1.097l-1.357 1.9a12.442 12.442 0 0 1-1.588-.75l-.058-.033a12.556 12.556 0 0 1-4.702-4.702l-.033-.058a12.442 12.442 0 0 1-.75-1.588z"})," ");case"table":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}));case"time-slots":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"horaires",focusable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("title",null,"horaires")," ",React.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-8h4v2h-6V7h2v5z"})," ");case"warning":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#FFF",viewBox:"0 0 24 24"},React.createElement("path",{d:"M19.5,2.5h-15c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2v-15C21.5,3.4,20.6,2.5,19.5,2.5z M13,17h-2v-6h2V17z M13,9h-2V7h2V9z"}));case"website":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"site internet",focu
1sable:"false",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("title",null,"site internet")," ",React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"})," ");case"list":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M3 4h18v2H3V4Zm0 15h14v2H3v-2Zm0-5h18v2H3v-2Zm0-5h14v2H3V9Z"}));case"plus":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2h6Z"}));case"minus":return React.createElement("svg",{className:"baseocom-inline-block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M5 11h14v2H5v-2Z"}));case"user-search-line":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"32",height:"32"},React.createElement("path",{d:"M12 14v2a6 6 0 0 0-6 6H4a8 8 0 0 1 8-8zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm9.446 9.032l1.504 1.504-1.414 1.414-1.504-1.504a4 4 0 1 1 1.414-1.414zM18 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}));case"user-follow-line":return React.createElement("svg",{className:"baseocom-inline-block","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",width:"32",height:"32"},React.createElement("path",{d:"M14 14.252v2.09A6 6 0 0 0 6 22l-2-.001a8 8 0 0 1 10-7.748zM12 13c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm5.793 8.914l3.535-3.535 1.415 1.414-4.95 4.95-3.536-3.536 1.415-1.414 2.12 2.121z"}));case"refresh":return React.createElement("svg",{className:"baseocom-inline-block",width:"20px",height:"20px",viewBox:"0 0 16 16"},React.createElement("g",null,React.createElement("path",{d:"M15,6V1.76l-1.7,1.7A7,7,0,1,0,14.92,9H13.51a5.63,5.63,0,1,1-1.2-4.55L10.76,6Z"})));case"fax":return React.createElement("svg",{className:"baseocom-inline-block",role:"img","aria-label":"télécopie",focusable:"false",class:" sp-text-color--red fr-mr-1w  sp-icon  sp-icon-ri-printer-line ",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{d:"M6 19H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v4h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm0-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1h2V9H4v8h2zM8 4v3h8V4H8zm0 13v3h8v-3H8zm-3-7h3v2H5v-2z"})," ");case"info-circle":return React.createElement("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("title",null,"Informations complémentaires"),React.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"}))}},r=()=>t().createElement("div",{id:"baseo_comarquage"},t().createElement("div",{className:"baseocom-flex baseocom-gap-5 baseocom-text-lg baseocom-flex-col"},"Ooops, une erreur est survenue",t().createElement("button",{onClick:()=>window.location.reload(),className:"baseocom-btn-purple baseocom-flex baseocom-items-center baseocom-fill-white baseocom-gap-3 baseocom-w-max"},a("refresh")," Actualiser la page"))),o=()=>t().createElement("div",{className:"baseocom-flex baseocom-my-8 baseocom-items-center baseocom-justify-center baseocom-w-full"},t().createElement("div",{className:"baseocom-spinner"}));var c=n(838),l=n.n(c);const i={ALLOWED_TAGS:["p","br","strong","b","em","i","u","ul","ol","li","dl","dt","dd","a","h2","h3","h4","h5","table","caption","thead","tbody","tfoot","tr","th","td","span","div","abbr","sup","sub","blockquote","cite","small"],ALLOWED_ATTR:["href","title","target","rel","class","id","colspan","rowspan","lang","scope"],ALLOW_DATA_ATTR:!1},s=e=>e?l().sanitize(e,i):"",u=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("address"),t().createElement("div",{dangerouslySetInnerHTML:{__html:s(e?.content)}}))),m={date:e=>`Publié le ${We(e)}`},d=({attributes:e})=>Object.entries(e).map(([e,n])=>{const a=m[e];return a?t().createElement("p",{className:"baseocom-small"},a(n)):null}),p=({block:n})=>{const a=(0,e.useRef)({}),[r,o]=(0,e.useState)(null),c=(0,e.useCallback)(e=>{switch(e.block){case"Cas":case"Situation":return e.childrens.filter(e=>"Titre"!==e?.block);default:return e.childrens.find(e=>"Titre"!==e?.block).childrens}},[]),l=(0,e.useCallback)(()=>{const e=n?.childrens.find(e=>e?.attributes?.id===r);return e&&c(e)||[]},[r,n?.childrens,c]);return(0,e.useEffect)(()=>{o(n?.childrens[0].attributes?.id)},[n]),n?.childrens?.length>1?t().createElement("div",{className:"baseocom-list-of-situations"},t().createElement("ul",null,n?.attributes?.elements?.map((e,n)=>t().createElement("li",{key:n},t().createElement("button",{ref:t=>a.current[e?.id]=t,onClick:()=>{return t=e?.id,o(t),void a.current[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});var t},key:e?.id,className:(r===e?.id?"situation-selected":"situations-not-selected")+" "},e?.title)))),t().createElement("div",null,t().createElement("div",null,t().createElement(Ue,{content_block:l()})))):t().createElement("div",null,t().createElement(Ue,{content_block:l()}))},h=({block:n={}})=>{const{childrens:a,attributes:r}=n,{selectedCase:o}=ot(),c=(0,e.useMemo)(()=>{const e=a?.some(e=>o?.includes(e?.attributes?.id));return Ke(o)||!e?a:a?.filter(e=>o?.includes(e?.attributes?.id))},[a,o]),l=(0,e.useMemo)(()=>
1{if(a)return a.length>1?"onglet"===r?.affichage?t().createElement(p,{block:n}):t().createElement(Ue,{content_block:c,type:"no-checked"}):t().createElement(Ue,{content_block:c,type:"checked-title"})},[r,c,n,a]);return t().createElement("div",{className:"baseocom-block-case"},l)},b=({block:n={},type:a=null})=>{const{childrens:r,attributes:{id:o,condition:c}={}}=n,l=(0,e.useMemo)(()=>Ze(r,"Titre"),[r]),{selectedCase:i,setSelectedCase:s,selectedValue:u}=ot(),m=(0,e.useCallback)(e=>{s(t=>[...t,e])},[s]),d=(0,e.useCallback)(()=>t().createElement("div",{className:"baseocom-btn-case",key:o,onClick:()=>m(o)},l?.content),[o,m,l]),p=(0,e.useCallback)(()=>!(!c||!u?.length)&&u.some(e=>c.some(t=>t.var===e.affectTrue)&&e.label===l?.content),[c,u,l]),h=(0,e.useMemo)(()=>{if("checked-title"===a)return t().createElement(Ue,{content_block:r,type:a,attributes:o});if(Ke(u))return i.includes(o)?t().createElement(Ue,{content_block:r,type:"checked",attributes:o}):d();if(p()){const e=r?.filter(e=>"Titre"!==e.block);return t().createElement(Ue,{content_block:e})}return Ke(i)||!i.includes(o)?d():t().createElement(Ue,{content_block:r,type:"checked",attributes:o})},[o,r,d,a,i,u,p]);return t().createElement("div",{className:"baseocom-case"},h)},f=({block:e})=>e?.attributes?.complement&&t().createElement("p",{className:"baseocom-content-item-list"},e?.attributes?.complement),E=({children:e,defaultOpen:n=!1,title:r,beforeIcon:o=null,onClickOpen:c,className:l,isOpen:i,index:s=null})=>{const u=t().useMemo(()=>null!==s?nt(i)?i?.index?.includes(s):i===s:i,[s,i]),m=t().useMemo(()=>({icon:u?"opening-dropdown baseocom-chevron baseocom-rotate":"baseocom-chevron",div:u||n?"baseocom-open baseocom-dropdown-content ":"baseocom-dropdown-content",btn:u||n?"baseocom-btn baseocom-dropdown-btn baseocom-dropdown-btn-open":"baseocom-btn baseocom-dropdown-btn"}),[u]);return t().createElement("div",{className:`${l} baseocom-dropdown`},t().createElement("button",{disabled:n,className:m.btn,onClick:c},t().createElement("span",{className:"baseocom-arrow-text"},o&&o(),t().createElement("span",{className:"baseocom-text"},r)),n?null:t().createElement("span",{className:m.icon},a("chevron-down"))),t().createElement("div",{className:m.div},e))},g=({block:n,index:a})=>{const r=(0,e.useMemo)(()=>Ke(n?.childrens)?n?.attributes?.original_childrens:n?.childrens,[n?.childrens]),o=Ze(r,"Texte"),c=Ze(r,"Titre"),[l,i]=t().useState(!1);return Ke(o)?null:t().createElement(E,{onClickOpen:()=>i(!l),title:c?.content,className:"baseocom-can-help-me-dropdown",isOpen:l},t().createElement("div",{className:"baseocom-content"},o&&t().createElement(Ue,{content_block:o?.childrens})))},v=({block:n})=>{const r=(0,e.useMemo)(()=>Ke(n?.childrens)?n?.attributes?.original_childrens:n?.childrens,[n?.childrens]),o=Ze(r,"RessourceWeb"),c=Ze(r,"Titre");return o?t().createElement("a",{target:"_blank",className:"baseocom-content-item-link",rel:"nofollow noopener noreferrer",href:o?.attributes?.URL},c?.content,a("external-link")):null};let k;k=window?.vendor?.React?window?.vendor?.React:n(594);const{useState:y,useCallback:w}=k,_=(e,t,n=null)=>{const[a,r]=y(null),[o,c]=y(!1),[l,i]=y(null),s=window?.baseo?.comarquage,u=w(async({url:e,method:t,body:n})=>{c(!0),i(null),r(null);let a=s.api_wp.url+e;const o={method:t,mode:"same-origin",cache:"no-cache",credentials:"include",headers:{Accept:"application/json, */*;q=0.1","X-WP-Nonce":s.api_wp.nonce||""},redirect:"follow",referrerPolicy:"no-referrer"};n&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(n));let l=null;try{const e=await fetch(a,o),t=await e.json().catch(()=>null);if(!e.ok){const n=new Error(t?.message||`HTTP ${e.status}`);return n.status=e.status,n.code=t?.code,i(n),null}l=t,r(l)}catch(e){i(e)}finally{c(!1)}return l},[e,t,n]),m=w(e=>u({url:`${s?.api_wp?.routes?.options}`,method:"POST",body:e}),[]),d=w(e=>u({url:`${s?.api_wp?.routes?.options}${e}`,method:"GET"}),[]),p=w(()=>u({url:`${s?.api_wp?.routes?.options}baseo_comarquage_global_city`,method:"DELETE"}),[]),h=w((e,t)=>{if(!(!t?.length>0))return u({url:`${s?.api_wp?.routes.select_documents}?hearing=${e}&s=${t}`,method:"GET"})},[]),b=w(e=>{if(!(!e?.length>0))return u({url:`${s.api_wp.routes.select_cities}${e}`,method:"GET"})},[]),f=w(e=>u({url:`${s.api_wp.routes.services}`,method:"POST",body:e}),[]),E=w((e,t)=>u({url:`${s.api_wp.routes.content_documents}${e}/${t}`,method:"GET"}),[]),g=w((e,t)=>{if(!(!t?.length>0))return u({url:`${s.api_wp.routes.search}${e}/${t}`,method:"GET"})},[]),v=w(()=>u({url:`${s.api_wp.routes.refresh_license}`,method:"GET"}),[]),k=w(()=>u({url:`${s?.api_wp?.routes?.clear_cache}`,method:"GET"}),[]),_=w(()=>u({url:`${s?.api_wp?.routes?.get_pages}`,method:"GET"}),[]),N=w((e,t)=>u({url:`${s.api_wp.routes.d5_fiche}?hearing=${e}&fiche=${t}`,method:"GET"}),[]),x=w((e,t,n)=>u({url:`${s.api_wp.routes.d5_actualite}?hearing=${e}&numbers=${t}&position=${n}`,method:"GET"}),[]),T=w(e=>u({url:`${s.api_wp.routes.d5_sommaire}?hearing=${e}`,method:"GET"}),[]),S=w(e=>u({url:`${s.api_wp.routes.d5_comment_faire}?hearing=${e}`,method:"GET"}),[]),R=w(e=>u({url:`${s.api_wp.routes.d5_recherche}?hearing=${e}`,method:"GET"}),[]);return{data:a,loading:o,error:l,api:{documentsContentGet:E,searchGet:g,servicesGet:f,verifyLicenceKey:w(e=>u({url:`${s.api_wp.routes.verify_licence_key}`,method:"POST",body:e}),[]),optionSave:m,documentsSelect:h,citiesSelect:b,optionDeleteCity:p,refreshLicense:v,clearCache:k,getPages:_,visualBuilderFiche:N,visualBuilderSommaire:T,visualBuilderActualite:x,visualBuilderRecherche:R,visualBuilderCommentFaire:S,optionGet:d}}},N=({block:n})=>{const{valueLocation:a}=ot(),{data:r,api:c,loading:l}=_();
1if(!n.attributes||!n.attributes.pivot_local||"Local personnalisé sur SP"!==n.attributes.type)return null;const i=(0,e.useCallback)(()=>{c.servicesGet({pivot_local:n?.attributes.pivot_local,insee_code:a.insee})},[a.insee]);return(0,e.useEffect)(()=>{a.insee&&i()},[a.insee]),(0,e.useEffect)(()=>{r&&(n.childrens=r)},[r]),l?t().createElement(o,null):!Ke(n?.childrens)&&t().createElement(Ue,{content_block:n?.childrens})},x=({block:e})=>e?.childrens?.map((e,t)=>React.createElement("div",{key:t,className:"baseocom-content-item"},React.createElement(f,{block:e}),React.createElement(g,{block:e}),React.createElement(v,{block:e}),React.createElement(N,{block:e}))),T=({block:n})=>{const[r,o]=(0,e.useState)(!1),{valueLocation:c}=ot(),{already_localized:l,is_personnalized_local:i}=n?.attributes,s=n?.childrens.filter(e=>"RechercheLocalForm"===e.block);return(0,e.useEffect)(()=>{l&&i&&o(!0)},[l,i]),t().createElement("div",{className:"baseocom-can-help-me-block"},t().createElement("div",{className:"baseocom-title"},a("help-me"),t().createElement("h3",null,"Qui peut m'aider ?")),t().createElement("p",{className:"baseocom-introduction"},"Vous avez une question ? Vous souhaitez être accompagné(e) dans vos démarches ?"),t().createElement("div",{"data-open":r,className:"baseocom-container"},t().createElement("button",{onClick:()=>o(!0)},"Trouver un interlocuteur")),t().createElement("div",{"data-open":r,className:"baseocom-content-items"},Ke(s)?t().createElement(x,{block:n}):t().createElement(t().Fragment,null,t().createElement(Ue,{content_block:s}),Ke(c)?null:t().createElement(x,{valueLocation:c,block:n}))))},S=({block:n,id:r,index:o,setOpenSubChapter:c,openSubChapter:l})=>{const i=Ze(n?.childrens,"Titre"),s=n?.childrens.filter(e=>"Titre"!==e?.block),u=(0,e.useCallback)(()=>{c({index:l?.index?.includes(r)?l?.index?.filter(e=>e!==r):[...l?.index,r]})},[r,l,c]),m=()=>"true"===n?.attributes?.numerote?t().createElement("span",{className:"baseocom-arrow-figure baseocom-w-max baseocom-h-max baseocom-text-base baseocom-inline-flex baseocom-justify-center baseocom-items-center baseocom-text-white"},o+1):t().createElement("span",{className:"baseocom-arrow"},a("arrow-right"));return(0,e.useCallback)(()=>"plain_text"===n?.style?t().createElement("div",{className:"baseocom-chapter-block-plain-text"},t().createElement(Ue,{content_block:n?.childrens})):t().createElement(E,{onClickOpen:u,beforeIcon:m,title:i?.content,index:r,className:"baseocom-chapter-item",isOpen:l},t().createElement("div",{className:"baseocom-content"},t().createElement(Ue,{content_block:s}))),[n,r,l])()},R=({block:n})=>{const{openSubChapter:a,setOpenSubChapter:r}=ot(),o=n.childrens?.some(e=>"ChapitreItem"===e.block&&"plain_text"===e.style)||!1,c=n.childrens?.map((e,t)=>e?.ID)||[],l=c.every(e=>a.index.includes(e)),i=(0,e.useCallback)(()=>{r(e=>{const t=e.index||[];if(l){const n=t.filter(e=>!c.includes(e));return{...e,index:n,expandEverything:n.length>0}}{const n=[...new Set([...t,...c])];return{...e,index:n,expandEverything:!0}}})},[c,l]);return t().createElement("div",{className:"baseocom-chapter-block"},o?null:t().createElement("button",{className:"baseocom-btn-fold-unfold",onClick:i},l?"Tout replier":"Tout déplier"),n?.childrens.map((e,n)=>t().createElement(S,{key:e.ID,block:e,id:e.ID,index:n,setOpenSubChapter:r,openSubChapter:a})))},C=({block:e,index:n})=>t().createElement("div",{className:"baseocom-sub-chapter-container"},t().createElement(Ue,{content_block:e?.childrens})),I=({url:e,targetBlank:n=!1,children:r,isIcon:o=!0,className:c})=>t().createElement("a",{className:`baseocom-text-black baseocom-no-underline !baseocom-mb-0 ${c} !baseocom-shadow-none baseocom-w-full baseocom-overflow_wrap link`,href:e,target:n?"_blank":null,rel:n?"noopener noreferrer nofollow":"nofollow"},t().createElement("span",{className:"link-text"},r),n&&o&&t().createElement("span",{className:"baseocom-ml-1"},a("external-link"))),A=({block:n})=>{const r=n?.childrens.filter(e=>"Titre"!==e?.block),o=Ze(n?.childrens,"Titre"),{openSubChapter:c}=ot(),[l,i]=t().useState(!1),{attributes:s}=n;return(0,e.useEffect)(()=>{i(c?.expandEverything)},[c]),t().createElement("div",{className:"baseocom-complement"},s?.URL?t().createElement(I,{isIcon:!0,targetBlank:!0,url:s?.URL,className:"baseocom-complement-link-external"},t().createElement("span",{className:"baseocom-footer-top-link-item-icon"},a("arrow-right","16")),n.content):n?.content?t().createElement("p",{className:"baseocom-complement-content"},n?.content):null,n?.childrens.length?t().createElement(E,{onClickOpen:()=>{i(!l)},beforeIcon:()=>t().createElement("span",{className:"baseocom-arrow"},a("info-circle")),title:o?.content,className:"baseocom-dropdown-complement",isOpen:l},t().createElement("div",{className:"baseocom-content"},t().createElement(Ue,{content_block:r}))):null)},D=({block:e})=>t().createElement("div",null,!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens})),L=({block:e})=>t().createElement("div",null,!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens})),M=({block:e})=>{const[n,r]=t().useState(!1);return t().createElement("div",{className:"block-description"},t().createElement("button",{type:"button",onClick:()=>r(!n),className:n?"baseocom-content-open":""},a("list"),"Voir la version texte de l'infographie",t().createElement("span",{className:"baseocom-icon"},a(n?"minus":"plus"))),t().createElement("div",{className:"leaflet-container "+(n?"baseocom-open":"")},t().createElement("div",{className:"baseocom-content"},!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens}))))},O=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("email"),t().createElement(I,{isIcon:!1,url:e?.attributes?.href},e?.content))),P=({block:e})=>t().createElement("div",{className:"baseocom-example"},e?.content&&t().createElement("p",null,e?.content),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens})),z=({block:e})=>t().createElement("div",null,e?.childrens?t().createElement(Ue,{content_block:e.childrens}):null),H=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("fax"),t().createElement(I,{isIcon:!1,url:e?.attributes?.href},t().createElement("div",{dangerouslySetInnerHTML:{__html:s(e?.content)}})))),F=window?.baseo?.comarquage,V=({filDAriane:e})=>React.createElement("div",{className:"baseocom-breadcrumbs"},e?.map((t,n)=>{const{title:a}=t,r=((e,t)=>{if("professionnels"===e.identifier){const e=F.options.baseo_comarquage_breadcrumb_professional_page_path;if(e)return`${F.wp.home_url}${e}`}if(0===t&&"particuliers"===e.identifier){const e=F.options.baseo_comarquage_breadcrumb_particular_page_path;if(e)return`${F.wp.home_url}${e}`}return e.url}
1)(t,n);return React.createElement("span",{key:`fildariane-${n}`},n!==e.length-1?React.createElement("a",{key:n,href:r,rel:0!==n?"nofollow":void 0},a):a,n<e.length-1&&React.createElement("span",{className:"baseocom-chevron"},">"))})),B=({block:e,parent:n})=>"Groupe"!==n?t().createElement(I,{className:"block-file",url:qe(e?.attributes.ID,e?.attributes?.audience)},t().createElement("span",null,a("arrow-right")),e.content&&t().createElement("span",{className:"block-file-text-content"},e?.content),e.childrens&&t().createElement("span",null,t().createElement(Ue,{content_block:e.childrens}))):t().createElement(t().Fragment,null,e.content&&t().createElement("p",null,e?.content),e.childrens&&t().createElement(Ue,{content_block:e.childrens})),U=({block:e})=>{const{ID:n,audience:r}=e?.attributes;return t().createElement("div",{className:"folder-block"},e?.content?t().createElement(I,{isIcon:!1,url:qe(n,r)},t().createElement("span",{className:"baseocom-mb-1 baseocom-mr-1"},a("arrow-right")),e?.content):e.childrens&&t().createElement(Ue,{content_block:e.childrens,attributes:e.attributes,type:"link-internal"}))},j=({block:e,blockType:n})=>{const r=Ze(e?.childrens,"Titre"),o=e.childrens.filter(e=>"Source"===e.block),c=e.childrens.filter(e=>"Complement"===e.block),l=e=>[{block:"Source",content:e}];return Ke(e.attributes)?t().createElement(Ue,{content_block:e?.childrens}):t().createElement("div",{className:"baseocom-footer-top-dropdown-link-item"},t().createElement("div",{className:"baseocom-footer-top-dropdown-link-item-content"},"non"!==e.attributes.important&&r?t().createElement(t().Fragment,null,t().createElement(I,{isIcon:!1,url:e?.attributes?.external_link?e?.attributes?.URL:qe(e?.attributes.ID,e?.attributes?.audience),targetBlank:!!e?.attributes?.URL},t().createElement("span",{className:"baseocom-footer-top-link-item-icon"},a("arrow-right")),r?.content),e?.attributes?.URL?a("external-link"):null):t().createElement("span",null,t().createElement(Ue,{content_block:e?.childrens}))),o&&"ServiceEnLigne"!==n?t().createElement(Ue,{content_block:o}):null,Ke(o)&&"Complement"!==n?t().createElement(Ue,{content_block:c}):null,"VoirAussi"===n&&Ke(o)?t().createElement(Ue,{content_block:l("ServicePublic")}):null,e?.attributes?.type&&"ServiceEnLigne"===n?t().createElement(Ue,{content_block:l(e?.attributes?.type)}):null)},G=({block:e,blockTitle:n})=>{const[a,r]=t().useState(!1),o=t().useMemo(()=>({VoirAussi:"Voir aussi",QuestionReponse:"Questions ? Réponses !",ServiceEnLigne:"Services en ligne et formulaires",Reference:"Textes de loi et références"}[e?.block]||""),[e]);return t().createElement(E,{title:o,className:"baseocom-footer-top-dropdown-links",isOpen:a,defaultOpen:"QuestionReponse"===e?.block,onClickOpen:()=>r(!a)},t().createElement("div",{className:"baseocom-content-in-dropdown"},e?.childrens?.map((n,a)=>t().createElement(j,{key:a,block:n,blockType:e.block}))))},$=({block:e,viewGeneralInformation:n,setViewGeneralInformation:r})=>{const{selectedValue:o}=ot();return t().createElement("div",null,void 0!==n?Ke(o)&&t().createElement("p",{className:"baseocom-general-informations",onClick:()=>r(!0)},a("arrow-right","20"),t().createElement("span",null,"Accéder aux informations générales",t().createElement("strong",null," sans renseigner la situation"))):t().createElement(Ue,{content_block:e.childrens}))},q=({block:e})=>e.childrens?t().createElement(Ue,{content_block:e.childrens,parent:e?.block}):null,W=({updateFunction:e,value:n})=>t().createElement("button",{type:"button",onClick:t=>e(t,n),className:"baseocom-update-btn"},t().createElement("span",{className:"baseocom-hidden md:baseocom-block"},"Modifier"),a("back")),Z=({block:n,hearing:r})=>{const{setAttributesGuidedResearch:o}=ot(),{validateSelection:c,setValidateSelection:l,setViewGeneralInformation:i,type:s}=ot(),u=(0,e.useCallback)(()=>{if("Recherche guidée"!==s)i(!1);else{const e=window.location.hash.substring(1),t=e.includes("?")?e.split("?")[0]:e,n=(e.includes("?")?e.split("?")[1]:"").split("idFicheParent=")[1].split("&")[0],a=qe(n,r)+"#"+t;window.location.href=a,window.location.reload()}l(!1)},[r,l,i,s]);return(0,e.useEffect)(()=>{o(n?.attributes)},[n?.attributes]),t().createElement("div",{className:"baseocom-guided-research-block"},c?t().createElement("div",{className:"baseocom-title-selected "},t().createElement("h3",null,a("user-follow-line"),"Votre situation ?"),t().createElement(W,{updateFunction:u})):t().createElement("h3",{className:""},a("user-search-line"),"Quelle est votre situation ?"),!Ke(n?.childrens)&&t().createElement(Ue,{content_block:n?.childrens}))},Y=({block:e})=>t().createElement(t().Fragment,null,e?.content&&t().createElement("p",null,e?.content),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens})),X=({block:n})=>{const a=Ze(n.childrens,"Contenu"),r=Ze(n.childrens,"Illustration"),o=n?.attributes?.positionIllustration,c=(0,e.useMemo)(()=>"gauche"===o?"baseocom-flex baseocom-flex-col lg:baseocom-flex-row":"baseocom-flex baseocom-flex-col lg:baseocom-flex-row-reverse",[o]);return t().createElement("div",{className:`${c} baseocom-justify-between`},t().createElement("img",{className:"baseocom-max-w-full baseocom-h-auto baseocom-block",src:r?.attributes?.LienPublication,alt:"Illustration de la fiche"}),t().createElement("div",null,t().createElement(Ue,{content_block:a?.childrens})))},Q=({block:e})=>{const{validateSelection:n}=ot();return!n&&t().createElement(t().Fragment,null,t().createElement("div",{className:"baseocom-image-block"},t().createElement("img",{src:e?.attributes?.LienPublication,alt:"fiche"}),t().createElement("p",null,"Crédits : Direction de l'information légale et administrative"),t().createElement(I,{targetBlank:!0,url:e?.attributes?.LienPublication,isIcon:!0},"Ouvrir l'image dans un nouvel onglet")),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens}))},K=({block:e})=>t().createElement("div",{className:"baseocom-information-container"},e?.content&&t().createElement("p",null,Qe(e?.content)),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens})),J=({dateModified:e,contributor:t})=>React.createElement("p",{className:"baseocom-verifcation-date-block"},"Vérifié le ",We(e)," - ",t),ee=({block:e,contributor:n,date:a})=>t().createElement("div",{className:"baseocom-introduction"},a&&t().createElement(J,{dateModified:a,contributor:n}),e?.content&&t().createElement("p",null," ",Qe(e?.content)),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens})),te=({block:e})=>t().createElement(t().Fragment,null,e?.content&&t().createElement("li",{className:"!baseocom-list-disc baseocom-text-base [&_a]:!baseocom-underline"},Qe(e?.content)),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens,type:"list-item",parent:"Item"})),ne=({block:e,parent:n})=>"Item"!==n?t().createElement("ul",{className:"!baseocom-ml-5 !baseocom-pl-0 baseocom-mb-5"},t().createElement(Ue,{content_block:e?.childrens})):t().createElement("li",{className:"!baseocom-ml-5 !baseocom-pl-0 baseocom-mb-5 [&_a]:!baseocom-underline"},t().createElement("ul",null,t().createElement(Ue,{content_block:e?.childrens,type:"list-item",parent:"Item"}))),ae=({searchValue:n,data:a,setSearchValue:r})=>{const{setValueLocation:o,valueLocation:c}=ot(),l=(0,e.useCallback)(e=>{o({city:e.label,insee:e.value}),r("")},[o,r]);return t().createElement("div",{className:(n.length>0&&Ke(c)?"__opened":"__closed")+" baseocom-cities-suggestions"},t().createElement("ul",null,a?.map((e,n)=>t().createElement("li",{onClick:()=>l(e),key:`item-${n}`},e?.label||e?.message))))},re=({searchValue:n,selectedCity:r,setSelectedCity:o,setSearchValue:c})=>{const{valueLocation:l,setValueLocation:i}=ot(),s=(0,e.useCallback)(e=>{c(e.target.value)},[]),u=(0,e.useCallback)(()=>{i({}),c("")},[i,c]);return t().createElement("div",{className:"baseocom-relative"},t().createElement("input",{disabled:l?.city,type:"text",value:n||l?.city||"",placeholder:"",onChange:s,className:"disabled:baseocom-opacity-100"}),t().createElement("div",{className:"baseocom-content-icon"},Ke(l)&&Ke(n)?null:t().createElement("div",{onClick:u,className:"baseocom-cursor-pointer"},a("close")),a("magnifying-glass")))},oe=({block:n})=>{const[a,r]=(0,e.useState)(""),{valueLocation:o}=ot(),{data:c,api:l}=_();return(0,e.useEffect)(()=>{l.citiesSelect(a)},[a]),(0,e.useEffect)(()=>{!Ke(o)&&r("")},[o]),t().createElement("div",{className:"baseocom-location-search"},t().createElement(Ue,{content_block:n?.childrens}),t().createElement(re,{searchValue:a,setSearchValue:r}),t().createElement(ae,{searchValue:a,data:c,setSearchValue:r}))},ce=({blocks:e,id:n})=>{const a=Ze(e,"Titre"),r=e?.filter(e=>"Titre"!==e?.block),[o,c]=t().useState(!1);return t().createElement(E,{onClickOpen:()=>c(!o),title:a?.content,className:"baseocom-can-help-me-dropdown",isOpen:o},t().createElement("div",{className:"baseocom-content"},r&&t().createElement(Ue,{content_block:r})))},le=({block:e,index:n})=>e.childrens?e.childrens.length>1?t().createElement(ce,{blocks:e.childrens,id:e?.ID}):t().createElement("div",{className:"baseocom-local-service"},t().createElement(Ue,{content_block:e.childrens})):null,ie=({block:e})=>{const n=e=>{const t=e?.filter(e=>"Introduction"!==e?.block&&"Source"!==e?.block);return t};return e.childrens&&e?.childrens?.map((e,r)=>t().createElement("a",{href:`${qe(e?.attributes?.ID,e?.attributes?.audience)}`,className:"baseocom-online-service-btn ",rel:"nofollow"},(e=>{switch(e){case"Formulaire":return a("form");case"Téléservice":return a("teleservice");case"Outil de recherche":return a("research-tool");case"Simulateur":return a("simulator");case"Modèle de document":return a("document-model")}})(e?.attributes?.type),t().createElement(Ue,{key:r,content_block:n(e.childrens)})))},se=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("phone"),t().createElement(I,{isIcon:!1,url:e?.attributes?.href},t().createElement("span",{dangerouslySetInnerHTML:{__html:s(e?.content)}})))),ue=({value:e,choice:n,title:r,onChange:o,helpBlock:c})=>{const{constructAffectTrueValue:l,constructName:i,setHelpModal:s,checked:u}=ot();return t().createElement("div",{className:"what-is-your-situation-choice "},t().createElement("input",{checked:((e,t,n)=>e.some(e=>
1e.name===t&&e.affectTrue===n))(u,i(r),l(e)),onChange:o,type:"radio",name:i(r),id:n.id,value:JSON.stringify(n)}),t().createElement("div",{className:"baseocom-content-label"},t().createElement("label",{htmlFor:n.id},n.label,c&&t().createElement("button",{onClick:()=>s(c),type:"button",className:"baseocom-btn-help-modal"},a("help")))))},me=({block:n,index:a})=>{const r=Ze(n?.childrens,"Titre"),o=Ze(n?.childrens,"Aide"),{constructAffectTrueValue:c}=ot(),l=(0,e.useCallback)(()=>{const e=Ze(n?.childrens,"Titre"),t=Ze(n?.childrens,"LienInterne"),r=c(n);return{label:e?.content,intituleSiSelectionne:e?.content,affectTrue:r,linkInternal:t,index:a,id:n.ID,helpBlock:o||null}},[n,o,c]);return t().createElement("div",{className:"baseocom-block-problematic what-is-your-situation-choice-container"},t().createElement(ue,{type:"problematic",title:r?.content,value:n,choice:l(),onChange:e=>{e.preventDefault();let t=window.location.hash.substring(1);t?t+="_"+a:t=a.toString(),window.history.pushState({},"","#"+t)},helpBlock:o}))},de=({value:e,index:n,validateSelection:r,onClickUpdatedSelection:o,setHelpModal:c})=>t().createElement("div",{key:n,className:` ${r?"baseocom-block-problematics-selected-validate":""} baseocom-block-problematics-selected`},t().createElement("p",null,t().createElement("span",{className:"baseocom-block-problematics-selected-icon"},a(r?"checked":"checkbox-circle")),e.label,e?.helpBlock&&t().createElement("button",{onClick:()=>c(e.helpBlock),type:"button",className:"baseocom-btn-help-modal"},a("help"))),!r&&t().createElement(W,{updateFunction:e=>o(e,n),value:n})),pe=({block:n={}})=>{const{constructAffectTrueValue:a,setSelectedValue:r,selectedValue:o,validateSelection:c,scrollToTop:l,attributesGuidedResearch:i,setHelpModal:s,identifier:u,setViewGeneralInformation:m,setValidateSelection:d,type:p}=ot(),[h,b]=(0,e.useState)(!1),[f,E]=(0,e.useState)([]),[g,v]=(0,e.useState)(null),k=(0,e.useCallback)(()=>{const e=window.location.hash.substring(1);e!==g&&(v(e),e?.split("_").length<g?.split("_").length?r(e=>e.slice(0,-1)):""===e&&r([]))},[g,r]);(0,e.useEffect)(()=>{const e=setInterval(k,100);return()=>clearInterval(e)},[k]);const y=(0,e.useCallback)(e=>{if(!e||!n.childrens)return n.childrens;let t=n.childrens;const o=e.split("_").map(Number);return o?.forEach(e=>{if(!t?.[e])return;const n=a(t[e]);t=t[e].childrens;const o=Ze(t,"Titre")?.content,l=Ze(t,"LienInterne"),i=Ze(t,"Aide");r(e=>e.some(e=>e.label===o)?e:[...e,{affectTrue:n,helpBlock:i,linkInternal:l,label:o}]);const s=t.some(e=>"Branche"===e.block);b(!s&&!c)}),t},[n.childrens,a,r,c]);(0,e.useEffect)(()=>{if(!p)return;const e=window.location.hash.substring(1),t="Recherche guidée"===p?e.split("?")[0]:g;v(t),E(y(t))},[y,p,g]);const w=(0,e.useCallback)(e=>{e.preventDefault(),"Problematics"===(n?.type||"Problematics")?N():_(),d(!0),l(".baseocom-block-problematics")},[o,i,u,g]),_=()=>{m(!0)},N=()=>{const e=o[o.length-1],{LienPublication:t}=e.linkInternal.attributes,{ID:n,audience:a}=i,r=`${qe(n,a)}#${g}?idFicheParent=${u}&Fiche=${t}`;window.location.href=r,window.location.href===r&&window.location.reload()},x=(0,e.useCallback)((e,t)=>{e.preventDefault();const n=g.split("_").map(Number).slice(0,t).join("_");window.location.hash=n,v(n),r(e=>e.slice(0,t)),b(!1)},[g]);return t().createElement("div",{className:"baseocom-block-problematics"},t().createElement("form",null,!Ke(o)&&o.map((e,n)=>t().createElement(de,{key:n,value:e,index:n,validateSelection:c,onClickUpdatedSelection:x,setHelpModal:s})),t().createElement(Ue,{content_block:f,type:"research-guide"}),h&&t().createElement("div",{className:"baseocom-problematics-btn-submit"},t().createElement("button",{onClick:w,type:"button"},"Afficher les informations"))))},he=t().memo(pe),be=({block:n})=>{const r=Ze(n?.childrens,"Titre"),o=n?.childrens?.filter(e=>"Titre"!==e?.block&&"Aide"!==e?.block),c=Ze(n?.childrens,"Aide"),{setSelectedValue:l,setHelpModal:i,setChecked:s,constructAffectTrueValue:u,constructName:m,selectedValue:d}=ot(),[p,h]=(0,e.useState)(null),b=(0,e.useCallback)(e=>{const t=Ze(e?.childrens,"Titre"),n=Ze(e?.childrens,"IntituleSiSelectionne"),a=Ze(n?.childrens,"Paragraphe").content,r=e?.attributes,o=u(e),c=r?.si_selectionne?.affecteFaux;return{id:e.ID,label:t?.content,intituleSiSelectionne:a,affectTrue:o,affectFalse:c}},[u]),f=(0,e.useCallback)(e=>{const{affectTrue:t,affectFalse:n,intituleSiSelectionne:a,id:r}=JSON.parse(e.target.value),o=e.target.name;l(e=>[...e.filter(e=>e.affectTrue!==n),{affectTrue:t,affectFalse:n,intituleSiSelectionne:a,name:o}]),s(e=>[...e.filter(e=>e.name!==o),{affectTrue:t,name:o}]),h(o)},[l,s]),E=(0,e.useCallback)(e=>{e.preventDefault(),s(e=>e.filter(e=>e.name!==p)),l(e=>e.filter(e=>e.name!==p))},[s,l,d,p,m,r]);return(0,e.useEffect)(()=>{const e=m(r?.content),t=d.some(t=>t.name===e);h(t?e:null)},[d]),t().createElement("div",{className:"question-block"},t().createElement("div",{className:"baseocom-question-block-title"},t().createElement("h4",null,r?.content),c&&t().createElement("button",{onClick:()=>i(c),type:"button",className:"baseocom-btn-help-modal"},a("help"))),t().createElement("div",{className:"what-is-your-situation-choice-container"},o?.map((e,n)=>{const a=b(e);return t().createElement(ue,{key:a?.id,type:"quiz",title:r?.content,value:e,onCh
1ange:f,choice:a})})),p?t().createElement("button",{onClick:E,className:"clear-selection-btn"},"Effacer la selection"):null)},fe=({block:n})=>{const{validateSelection:r,setValidateSelection:o,selectedValue:c,viewGeneralInformation:l,setViewGeneralInformation:i,scrollToTop:s}=ot();return(0,e.useEffect)(()=>{Ke(c)&&!l&&o(!1)},[c,l]),t().createElement("div",{className:"quiz-block"},t().createElement("form",{onSubmit:e=>{e.preventDefault(),o(!0),i(!0),s(".quiz-block")}},r?t().createElement("div",{className:"selected-title "},t().createElement("div",{className:"selected-title-container "},t().createElement("h3",null,a("user-follow-line"),"Votre situation ?"),t().createElement(W,{updateFunction:()=>{o(!1),i(!1)}})),Ke(c)?t().createElement("p",null,"Vous n'avez pas précisé votre situation."):c.map(e=>t().createElement("div",{className:"titled",key:e?.IntituleSiSelectionne},a("checked"),t().createElement("p",null,e?.intituleSiSelectionne)))):t().createElement("div",{className:"quiz-block-header"},t().createElement("h3",null,a("user-search-line"),"Quelle est votre situation ?"),!Ke(n?.childrens)&&t().createElement(Ue,{content_block:n?.childrens}),t().createElement("div",{className:"baseocom-quiz-btn-submit"},t().createElement("button",{type:"submit"},"Afficher les informations")))))},Ee=({block:e})=>t().createElement("div",{className:"related-file-block"},t().createElement("h2",null,"Pour toute explication, consulter les fiches pratiques :"),e?.content&&t().createElement("p",null,e?.content),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens})),ge=({block:e})=>{const n=e.childrens.filter(e=>"Titre"===e.block);return t().createElement(I,{url:qe(e?.attributes.ID,e?.attributes?.audience)},a("arrow-right"),t().createElement(Ue,{content_block:n,type:"link"}))},ve=({block:e})=>{return t().createElement(t().Fragment,null,e?.content&&t().createElement("p",{className:"baseocom-source-block"},(n=e?.content,{Téléservice:"Service en ligne",ServicePublic:"Service-Public.fr"}[n]||n)),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens}));var n},ke=({block:e})=>t().createElement("div",{className:"subfolder-block"},e.childrens&&t().createElement(Ue,{content_block:e?.childrens})),ye=({block:e})=>{const t=Ze(e.childrens,"Titre"),n=e?.childrens?.find(e=>"header"===e.attributes.type).childrens,r=e?.childrens?.filter(e=>"normal"===e.attributes.type);return React.createElement("div",{className:"table baseocom-block-table baseocom-my-10"},t&&React.createElement("h4",{className:"baseocom-title"},React.createElement("span",null,a("table")),"Tableau - ",t?.content),React.createElement("div",{className:"baseocom-container baseocom-my-5"},React.createElement("table",null,React.createElement("thead",null,React.createElement("tr",null,n?.map((e,t)=>React.createElement("th",{key:e?.ID},Qe(e?.content))))),React.createElement("tbody",null,r?.map((e,t)=>React.createElement("tr",{key:t},e.childrens.map((e,t)=>React.createElement("td",{colSpan:e.attributes.fusionHorizontale||1,key:t},null!==e?.content?Qe(e?.content):React.createElement(Ue,{content_block:e?.childrens})))))))))},we=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("time-slots"),t().createElement("p",null,e?.content))),_e=({block:e})=>t().createElement("div",{className:"block-under-theme"},!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens})),Ne=({block:n})=>{const r=n.attributes.URL.split("/"),o=r[r.length-1],c=Ze(n?.childrens,"Titre"),l=Ze(n?.childrens,"Credits"),i=n?.childrens.filter(e=>"Titre"!==e.block&&"Credits"!==e.block&&"Source"!==e.block),[s,u]=(0,e.useState)(null);return(0,e.useEffect)(()=>{n.attributes.URL.includes("youtu")?u(`https://www.youtube.com/embed/${o}`):n.attributes.URL.includes("dailymotion")&&u(`https://www.dailymotion.com/embed/video/${o}`)},[n.attributes.URL,o]),t().createElement("div",{className:"baseocom-video-block"},t().createElement("h4",null,a("video")," Vidéo - ",c?.content),t().createElement("iframe",{width:"560",height:"400",src:s,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),t().createElement("p",null,"Crédits: ",l?.childrens[0]?.content),t().createElement(Ue,{content_block:i}))},xe=({block:e})=>t().createElement("div",{className:"baseocom-warning-block"},t().createElement("div",{className:"baseocom-icon"},a("warning")),t().createElement("div",{className:"baseocom-content-text"},e?.content&&t().createElement("p",null,e?.content),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens,attributes:e?.attributes}))),Te=({block:e,date:n,contributor:r})=>t().createElement("div",{className:"web-link-block"},e?.content&&t().createElement("p",null,e?.content),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e.childrens}),t().createElement("div",{className:"baseocom-flex-row-center baseocom-mb-8"},t().createElement(I,{url:e.attributes?.URL,targetBlank:!0,isIcon:!1},a("teleservice"),t().createElement("span",null,"Accéder à la démarche en ligne"))),n&&t().createElement(J,{dateModified:n,contributor:r})),Se=({block:e})=>t().createElement("div",{className:"baseocom-mb-4"},e?.content&&t().createElement("div",{className:"baseocom-block-item"},a("website"),t().createElement(I,{targetBlank:!0,isIcon:!1,url:e?.attributes?.href},e?.content))),Re=()=>{const{helpModal:e,setHelpModal:n}=ot();return t().createElement("div",{onClick:()=>n(!1),className:(e?"baseocom-modal-visible ":"baseocom-modal-invisible")+" baseocom-help-modal  "},t().createElement("div",{onClick:e=>e.stopPropagation(),className:`  ${e?"baseocom-modal-container-visible":"baseocom-modal-container-invisible"} baseocom-help-modal-container`},t().createElement("div",{className:"baseocom-btn-close-modal"},t().createElement("button",{onClick:()=>n(!1)},"Fermer",a("close","20"))),t().createElement("div",{className:"baseocom-modal-contains"},t().createElement(Ue,{content_block:e?.childrens}))))},Ce=({block:e})=>{const{valueLocation:n}=ot(),a=e?.childrens.filter(e=>"RechercheLocalForm"===e.block),r=e?.childrens.filter(e=>"RechercheLocalForm"!==e.block);return t().createElement("div",{className:"baseocom-where-to-contact"},t().createElement("h2",null,"Où s'adresser ?"),Ke(a)?t().createElement(Ue,{content_block:e?.childrens}):t().createElement(t().Fragment,null,t().createElement(Ue,{content_block:a}),Ke(n)?null:t().createElement(Ue,{content_block:r})))},Ie=({block:e})=>{const n=Ze(e?.childrens||e,"RessourceWeb"),r=Ze(e?.childrens||e,"Titre");return t().createElement("a",{target:"_blank",rel:"noopener noreferrer nofollow",title:`${r?.content} - ${n?.attributes?.URL} - Nouvelle fenêtre`,href:n?.attributes?.URL,className:"baseocom-where-to-contact-external-link"},t().createElement("p",null,r.content),a("external-link"))},Ae=({block:n})=>{const{valueLocation:a}=ot(),{data:r,api:c,loading:l}=_(),i=Ye(n?.attributes.original_childrens,"RessourceWeb"),s=(0,e.useCallback)(()=>{c.servicesGet({pivot_local:n?.attributes.pivot_local,insee_code:a.insee})},[a.insee]);return(0,e.useEffect)(()=>{a.insee&&s()},[a.insee]),(0,e.useEffect)(()=>{r&&(n.childrens=r)},[r]),l?t().createElement(o,null):Ke(n?.childrens)?i?t().createElement(Ie,{block:n?.attributes.original_childrens}):t().createElement(Ue,{content_block:n?.attributes.original_childrens}):t().createElement(Ue,{content_block:n?.childrens})},De=({block:n,isPersonnalizedLocal:a})=>{const r=Ye(n?.childrens,"RessourceWeb"),o=["Centre de contact","National"].includes(n?.attributes?.type);return(0,e.useMemo)(()=>r&&!a?t().createElement(Ie,{block:n}):n.attributes.pivot_local&&"Local personnalisé sur SP"===n.attributes.type?t().createElement("div",{className:"baseocom-where-to-contact-location"},t().createElement(Ae,{block:n})):Ke(n?.childrens)?t().createElement("div",{className:o?"baseocom-where-to-contact-item-contact-center-block":""},t().createElement(Ue,{content_block:n?.attributes?.original_childrens,attributes:n?.attributes})):t().createElement("div",{className:o?"baseocom-where-to-contact-item-contact-center-block":""},t().createElement(Ue,{content_block:n?.childrens,attributes:n?.attributes})),[n,a,r,o])},Le=({block:e})=>t().createElement(t().Fragment,null,e.content&&t().createElement("p",null,e.content),e.childrens&&t().createElement(Ue,{content_block:e.childrens})),Me=({block:e})=>!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens}),Oe=({block:e})=>t().createElement("p",{class:"baseocom-date"},e?.content),Pe=({block:e,position:n})=>{const[a,r]=t().useState(!1);return t().createElement("div",{className:`${a&&"baseocom-image-content-error"}  baseocom-image-content`},t().createElement("img",{src:e?.attributes?.LienPublication,alt:"Image Illustration",onError:e=>{r(!0)}}),Ke(e?.childrens)||"horizontal"!==n?null:t().createElement(Ue,{content_block:e?.childrens}))},ze=({block:e})=>
1e?.content&&t().createElement("div",{class:"baseocom-sur-titre"},t().createElement("p",null,e?.content)),He=({block:n,position:r})=>{const o=(0,e.useCallback)(()=>{const e=n.childrens.filter(e=>"ImageIllustration"===e.block);switch(r){case"vertical":const o=n.childrens.filter(e=>"ImageIllustration"!==e.block),c=["SurTitre","Titre","Date","Introduction"];return o.sort((e,t)=>c.indexOf(e.block)-c.indexOf(t.block)),t().createElement("div",{class:"baseocom-actualite-content"},t().createElement("a",{href:n?.attributes.post_url,target:"_blank",rel:"noopener noreferrer nofollow",class:"baseocom-link-actualite"}),t().createElement(Ue,{content_block:e,position:r}),t().createElement("div",{class:"baseocom-text-content"},t().createElement(Ue,{content_block:o,position:r}),t().createElement("span",{className:"baseocom-icon-arrow-right"},a("arrow-right"))));case"horizontal":const l=n.childrens.filter(e=>"SurTitre"===e.block||"Titre"===e.block),i=n.childrens.filter(e=>"Date"===e.block);return t().createElement("div",{class:"baseocom-actualite-content"},t().createElement("a",{href:n?.attributes.post_url,target:"_blank",rel:"noopener noreferrer nofollow",class:"baseocom-link-actualite"}),t().createElement(Ue,{content_block:e,position:r}),t().createElement("div",{class:"baseocom-text-content"},t().createElement(Ue,{content_block:l,position:r}),t().createElement("div",null,t().createElement(Ue,{content_block:i,position:r}),t().createElement("span",{className:"baseocom-icon-arrow-right"},a("arrow-right")))))}},[n,r]);return t().createElement(t().Fragment,null,n?.content&&t().createElement("p",null,n?.content),o())},Fe=({block:e})=>e?.content&&t().createElement("h4",{class:"baseocom-titre"},e?.content),Ve=({block:e})=>t().createElement("div",{className:"title-floating-block"},e?.content?t().createElement("h3",{className:"baseocom-text-xl !baseocom-mb-0"},e?.content):null,!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens})),Be=({block:e,attributes:n,type:r})=>{const{setSelectedCase:o}=ot(),c=()=>{o(e=>{const t=e.findIndex(e=>e===n);return-1!==t?e.slice(0,t):e})};return t().createElement(t().Fragment,null,e?.content&&(()=>{switch(r){case"research-guide":return;case"link-internal":return t().createElement(I,{isIcon:!1,url:qe(n?.ID,n.audience)},t().createElement("span",{className:"baseocom-block-title-link-internal"},a("arrow-right")),e?.content);case"link":return t().createElement("span",{className:"baseocom-title-whith-attributes"},e?.content);case"checked":return t().createElement("div",{className:"baseocom-block-title-checked"},t().createElement("div",null,a("checked","16"),t().createElement("h3",null,e?.content)),t().createElement("button",{onClick:c},t().createElement("span",null,"Modifier"),a("back","16")));default:return Ke(n)?t().createElement("span",{className:"baseocom-title-whith-attributes"},e?.content):t().createElement("h3",{className:"baseocom-title-not-attributes "},e?.content)}})(),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens}),!Ke(n)&&t().createElement(d,{attributes:n}))},Ue=({type:n,isPersonnalizedLocal:a,content_block:r=[],attributes:o,verification_date:c,contributor:l,viewGeneralInformation:i,setViewGeneralInformation:s,parent:m,position:d})=>{const[f,E]=(0,e.useState)(null);return t().useMemo(()=>Ke(r)?[]:r.map((e,r)=>{switch("ID"in e||(e.ID=`block-${e.block}-${r}`),e.block){case"Paragraphe":case"Texte":return t().createElement(je,{key:e?.ID,attributes:o,type:n,block:e});case"RefActualite":return t().createElement(He,{key:e?.ID,block:e,position:d});case"ImageIllustration":return t().createElement(Pe,{key:e?.ID,block:e,position:d});case"SurTitre":return t().createElement(ze,{key:e?.ID,block:e});case"Credits":return t().createElement(Me,{key:e?.ID,block:e});case"Date":return t().createElement(Oe,{key:e?.ID,block:e});case"FragmentConditionne":return t().createElement(D,{key:e?.ID,block:e});case"Groupe":return t().createElement(q,{key:e?.ID,attributes:o,block:e});case"Introduction":return"root"===e?.style?t().createElement(ee,{key:e?.ID,contributor:l,date:c,block:e}):t().createElement(ee,{key:e?.ID,attributes:o,block:e});case"Titre":return d?t().createElement(Fe,{key:e?.ID,block:e}):t().createElement(Be,{type:n,key:e?.ID,attributes:o,block:e});case"TitreFlottant":return t().createElement(Ve,{key:e?.ID,block:e});case"ContenuIndisponible":return t().createElement(L,{key:e?.ID,block:e});case"Chapitre":return t().createElement(R,{key:e?.ID,block:e});case"SousChapitre":return t().createElement(C,{key:e?.ID,block:e});case"SousTheme":return t().createElement(_e,{key:e?.ID,block:e});case"Dossier":return t().createElement(U,{key:e?.ID,block:e});case"Avertissement":return t().createElement(xe,{key:e?.ID,block:e});case"QuiPeutMAider":return t().createElement(T,{key:e?.ID,block:e});case"VoirAussi":case"QuestionReponse":case"Reference":return t().createElement(G,{key:e?.ID,block:e,index:r});case"FicheLiee":return t().createElement(Ee,{key:e?.ID,block:e});case"FicheLieeItem":return t().createElement(ge,{key:e?.ID,block:e});case"ServiceEnLigne":return"card"===e.style?t().createElement(G,{key:e?.ID,block:e,index:r}):t().createElement(ie,{key:e?.ID,block:e});case"Liste":return t().createElement(ne,{key:e?.ID,block:e,parent:m});case"Definition":return t().createElement(Le,{key:e?.ID,block:e});case"Video":return t().createElement(Ne,{key:e?.ID,block:e});case"RechercheGuidee":return t().createElement(Z,{key:e?.ID,block:e});case"Problematiques":return t().createElement(he,{key:e?.ID,block:e,index:r});case"Problematique":case"Branche":return t().createElement(me,{key:e?.ID,block:e,index:r});case"Item":return t().createElement(te,{key:e?.ID,block:e});case"Complement":case"LienExterne":return t().createElement(A,{key:e?.ID,block:e});case"LienExterneCommente":return t().createElement(z,{key:e?.ID,block:e});
1case"ANoter":case"ASavoir":case"Attention":case"Rappel":return t().createElement(K,{key:e?.ID,block:e});case"Tableau":return t().createElement(ye,{key:e?.ID,block:e});case"Exemple":return t().createElement(P,{key:e?.ID,block:e});case"ListeSituations":return t().createElement(p,{key:e?.ID,block:e});case"BlocCas":return t().createElement(h,{key:e?.ID,block:e});case"Cas":return t().createElement(b,{key:e?.ID,block:e,type:n});case"OuSAdresser":return t().createElement(Ce,{key:e?.ID,block:e});case"OuSAdresserItem":return t().createElement(De,{isPersonnalizedLocal:a,key:e?.ID,block:e});case"ServiceLocal":return t().createElement(le,{key:e?.ID,block:e,index:r});case"RechercheLocalForm":return t().createElement(oe,{key:e?.ID,block:e,attributes:o});case"Adresse":return t().createElement(u,{key:e?.ID,block:e});case"Telephone":return t().createElement(se,{key:e?.ID,block:e});case"Horaire":return t().createElement(Y,{key:e?.ID,block:e});case"Telecopie":return t().createElement(H,{key:e?.ID,block:e});case"PlageHoraire":return t().createElement(we,{key:e?.ID,block:e});case"SiteInternet":return t().createElement(Se,{key:e?.ID,block:e});case"LienWeb":return t().createElement(Te,{key:e?.ID,block:e,date:c,contributor:l});case"AdresseCourriel":return t().createElement(O,{key:e?.ID,block:e});case"ContenuIllustre":return t().createElement(X,{key:e?.ID,block:e});case"Image":return t().createElement(Q,{key:e?.ID,block:e});case"Description":return t().createElement(M,{key:e?.ID,block:e});case"SousDossier":return t().createElement(ke,{key:e.ID,block:e});case"Fiche":return t().createElement(B,{key:e?.ID,block:e,parent:m});case"Source":return t().createElement(ve,{key:e?.ID,block:e});case"Questionnaire":if(g=e?.childrens,g.every(e=>"Branche"===e.block)){e.block="RechercheGuidee";const n=[{ID:tt("__problematiques-"),block:"Problematiques",type:"Quiz-problematics",childrens:e.childrens}];return e.childrens=n,t().createElement(Z,{key:e?.ID,block:e})}return t().createElement(fe,{key:e?.ID,block:e});case"Question":return t().createElement(be,{key:e?.ID,block:e,setChoice:E,choice:f});case"InformationsGenerales":return t().createElement($,{key:e?.ID,viewGeneralInformation:i,setViewGeneralInformation:s,block:e});default:return null}var g}),[r,o,c,l,i,s,m,d,f])},je=({block:e,type:n})=>{const a="list-item"===n?"li":"div",r="list-item"===n?"!baseocom-list-disc baseocom-text-base [&_p]:!baseocom-mb-0 [&_a]:!baseocom-underline":"baseocom-paragraph-block";return t().createElement(a,{className:r},e?.content&&t().createElement("p",{className:"muted"===e?.style?"baseocom-small":"baseocom-text"},Qe(e?.content)),!Ke(e?.childrens)&&t().createElement(Ue,{content_block:e?.childrens}))},Ge=({title:e,level:t=2})=>{let n=`h${t}`;return React.createElement(n,{className:`baseocom-title_niv_${t}`},e)},$e=(0,e.memo)(({title:t,children:n})=>{const[a,r]=(0,e.useState)(!1),o=(0,e.useRef)(null),c=(0,e.useRef)(null),l=(0,e.useCallback)(()=>{if(!a||!o.current||!c.current)return;const e=o.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.bottom+5;c.current.style.left=`${t}px`,c.current.style.top=`${n}px`},[a]),i=(0,e.useCallback)(()=>{r(!0)},[]),s=(0,e.useCallback)(()=>{r(!1)},[]);return(0,e.useEffect)(()=>{if(a)return l(),window.addEventListener("scroll",l),window.addEventListener("resize",l),()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[a,l]),React.createElement("span",{className:"baseocom-tooltip",ref:o,onMouseEnter:i,onMouseLeave:s},n,React.createElement("span",{ref:c,className:"baseocom-tooltip-text "+(a?"baseocom-tooltip-visible":"")},t))}),qe=(e,t)=>{let n;return n=Je(e)?`/${t.toLowerCase()}`:`${t.toLowerCase()}/${e}`,F?.wp?.home_url+"sp/"+n+"/"},We=e=>new Date(e).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}),Ze=(e,t)=>{if(!e)return[]||0;if(t)return e?.find(e=>e.block===t);{let t=[];const n=e;return n?.childrens?.forEach(e=>{const n=["Complement","Titre","Texte","RessourceWeb"],a=e?.childrens?.filter(e=>!n.includes(e.block));a&&t.push(...a)}),t}},Ye=(e,t)=>e?.some(e=>e.block===t),Xe=e=>{var t=document.createElement("span");return t.innerHTML=e,t.textContent},Qe=e=>{if(!e)return;const t=e=>{const n=/(\w+)="(.*?)"/g,a=e.split(/\[(\w+)(.*?)\](.*?)\[\/\1\]/g),r=a.map((e,r)=>{if(r%4==0)return e;if(r%4==1){const o=a[r+1],c={};let l;for(;null!==(l=n.exec(o));)c[l[1]]=l[2];return((e,t,n)=>{const a=["Acronyme","Sigle"];
1switch(e){case"LienInterne":return a.includes(n.type)?React.createElement($e,{title:Xe(n.tooltip)},React.createElement("span",{className:"baseocom-link-internal-tooltip"},t)):React.createElement(I,{url:qe(n?.LienPublication,n?.audience)},t);case"LienExterne":return React.createElement(I,{targetBlank:!0,url:n.URL},t);case"Expression":return React.createElement("span",{className:"baseocom-expression"},t);case"LienIntra":return React.createElement($e,{title:Xe(n.tooltip)},React.createElement("span",{className:"baseocom-link-intra-tooltip"},t));case"Exposant":return React.createElement("span",{className:"baseocom-exponent"},t);case"Valeur":case"MiseEnEvidence":return React.createElement("strong",{className:"baseocom-highlight"},t);default:return t}})(e,t(a[r+2]),c)}});return React.createElement(React.Fragment,null,r)};return t(e)},Ke=e=>null==e||("string"==typeof e||Array.isArray(e)?0===e.length:0===Object.keys(e).length),Je=e=>null==e||""===e;let et=0;const tt=(e="")=>{let t=++et;return String(e)+t},nt=e=>{const t=typeof e;return null!=e&&("object"===t||"function"===t)},at=(0,e.createContext)(),rt=({children:n})=>{const[a,r]=(0,e.useState)([]),[o,c]=(0,e.useState)([]),[l,i]=(0,e.useState)([]),[s,u]=(0,e.useState)(()=>"true"===localStorage.getItem("validate_selection")),[m,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[b,f]=(0,e.useState)({}),[E,g]=(0,e.useState)({}),[v,k]=(0,e.useState)(null),[y,w]=(0,e.useState)(null),[_,N]=(0,e.useState)({index:[],expandEverything:!1}),x=(0,e.useCallback)(e=>{if(e)return`quiz-${(e=>{const t=" ".replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(t+"|\\u00A0","g");return e.replace(n,"-")})(e)}`},[]),T=(0,e.useCallback)(e=>{const t=e?.attributes?.si_selectionne?.affecteVrai;return t},[]);return(0,e.useEffect)(()=>{const e=()=>{localStorage.removeItem("validate_selection")};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[]),(0,e.useEffect)(()=>{localStorage.setItem("validate_selection",s)},[s]),(0,e.useEffect)(()=>{const e=window.location.href;e.includes("#")&&!e.includes("idFicheParent")&&u(!1)},[]),t().createElement(at.Provider,{value:{type:y,setType:w,identifier:v,setIdentifier:k,attributesGuidedResearch:E,setAttributesGuidedResearch:g,valueLocation:b,setValueLocation:f,selectedCase:o,setSelectedCase:c,selectedValue:a,setSelectedValue:r,setChecked:i,checked:l,validateSelection:s,setValidateSelection:u,viewGeneralInformation:m,setViewGeneralInformation:d,constructName:x,constructAffectTrueValue:T,scrollToTop:e=>{const t=document.querySelector(e);t&&window.scrollTo({top:t.offsetTop-100,behavior:"smooth"})},helpModal:p,setHelpModal:h,openSubChapter:_,setOpenSubChapter:N}},n)},ot=()=>(0,e.useContext)(at),ct=()=>{const{api:t,loading:n,error:a}=_(),r=(0,e.useRef)(!1),[o,c]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{if(!t||r.current)return;r.current=!0;const e=window.self!==window.top?"true":"false",n=window?.ElementorInlineEditor,a=F.wp?.is_admin,o=new URLSearchParams(window.location.search),l=void 0!==window.ETBuilderBackend||void 0!==window.et_fb||"1"===o.get("et_fb")||document.body?.classList.contains("et-fb");let i="false";n||l||a?i="false":n||"true"!==e||(i=e),c(i)},[t]),{loading:n,error:a,isIframe:o}},lt=["qui_peut_m_aider_blocks","reference_blocks","service_en_ligne_blocks","question_reponse_blocks","voir_aussi_blocks"],it=({ficheId:t,hearing:n})=>{const[a,r]=(0,e.useState)(null),[c,l]=(0,e.useState)(!0),[i,s]=(0,e.useState)(null),[u,m]=(0,e.useState)([]),{selectedValue:d,viewGeneralInformation:p,setViewGeneralInformation:h,validateSelection:b,setIdentifier:f,setType:E,type:g}=ot(),{data:v,api:k,loading:y}=_(),{isIframe:w}=ct(),N=(0,e.useCallback)(async()=>{const e=document.getElementById(`comarquage_fiche_${n}_${t}`);if(e)try{const t=JSON.parse(e.textContent),n=await x(t);r(n)}catch(e){s(!0)}else s(!0)},[t,n]);(0,e.useEffect)(()=>{w?l(!1):N()},[t,n,w]);const x=(0,e.useCallback)(async e=>{const t=e?.dc_type;switch(t){case"Dossier":const t={...e};return t.content_blocks=t.content_blocks.filter(e=>"OuSAdresser"!==e.block),l(!1),t;case"Recherche guidée":const a=window.location.hash.substring(1),r=new 
1URLSearchParams(a).get("Fiche");return r&&n&&"true"!==w?await k.documentsContentGet(n,r):l(!1),e;default:return l(!1),e}},[k,w]),T=(0,e.useCallback)(()=>{if(!v||!a)return;const e={...a};e.content_blocks=e.content_blocks.filter(e=>"Introduction"!==e.block);const t=e.content_blocks.find(e=>"RechercheGuidee"===e.block);e.content_blocks=e.content_blocks.filter(e=>"RechercheGuidee"!==e.block),e.search_guide=t,e.dc_title=v.dc_title,e.content_blocks.push(...v.content_blocks),e&&l(!1),r(e)},[v,a]);(0,e.useEffect)(()=>{T()},[v]),(0,e.useEffect)(()=>{a&&(f(a?.dc_identifier),E(a?.dc_type))},[a]),(0,e.useEffect)(()=>{if(a){let e=((e,t)=>{const n=t.map(e=>e.affectTrue),a=t.map(e=>e.affectFalse),r=a.includes(void 0);if(Ke(t))return e;const o=e=>e?e.filter(e=>{const t=e?.attributes,o=t?.condition;return!t||!o||!o.some(e=>"ou"===e.type&&!r&&e.var.some(e=>"estFaux"===e.type&&a.includes(e.var))||"estVrai"===e.type&&!n.includes(e.var))}).map(e=>{const t={...e};return t?.childrens&&(t.childrens=o(t.childrens)),t}):[];return o(e)})(a?.content_blocks||[],d||[]);m(e)}},[d,a]);const S=Ye(a?.content_blocks,"InformationsGenerales");if((0,e.useEffect)(()=>{a&&!S&&h(!0)},[S,a]),"true"===w)return null;if(c||y)return React.createElement(o,null);if(i)return null;if(!a)return React.createElement("div",{className:"baseo-comarquage-info-block"},"Impossible de récupérer les données Service-public");if(a&&!c){const{fildariane:e,dc_title:t,dc_title_show:n,dc_date:r,dc_contributor:o,audience:c,search_guide:l,avertissement_blocks:i}=a;return React.createElement("div",{id:"baseo_comarquage"},React.createElement(V,{filDAriane:e}),"Recherche guidée"===g&&l?React.createElement(Z,{hearing:c,block:l}):null,n&&React.createElement(Ge,{title:t}),p?React.createElement(React.Fragment,null,b&&React.createElement("div",{className:"!baseocom-mt-10"},React.createElement(Ue,{type:"fiche",content_block:i})),React.createElement(Ue,{type:"fiche",content_block:u,verification_date:r,contributor:o}),!b&&React.createElement(Ue,{content_block:i}),lt?.map(e=>React.createElement(Ue,{key:e,content_block:a[e]}))):React.createElement(Ue,{type:"fiche",content_block:u,verification_date:r,contributor:o,viewGeneralInformation:p,setViewGeneralInformation:h}),React.createElement(Re,null))}},st=({hearing:t,position:n,numbers:a})=>{const[c,l]=(0,e.useState)(null),[i,s]=(0,e.useState)(!0),[u,m]=(0,e.useState)(null),{isIframe:d}=ct();return(0,e.useEffect)(()=>{"true"!==d?(async()=>{const e=document.getElementById("comarquage_news_"+t+"_"+a+"_"+n);if(e)try{const t=JSON.parse(e.textContent),n=t?.results?.flat();l(n),s(!1)}catch(e){m(!0)}else m(!0)})():s(!1)},[t,n,a,d]),"true"===d?null:i?React.createElement(o,null):u?React.createElement(r,null):React.createElement("div",{id:"baseocom-actualites"},React.createElement("div",{className:`baseocom-actualites-cards baseocom-style-${n}`},React.createElement(Ue,{content_block:c,position:n})))},ut=({hearing:n,value:r,setValue:o,api:c})=>{const[l,i]=(0,e.useState)(""),s=new URLSearchParams(window.location.search).get("q"),u=F?.wp?.home_url,m=(0,e.useCallback)(e=>{e.preventDefault(),Je(r)?i("Veuillez saisir une recherche"):window.location.href=`${u}/sp/${n}/recherche?q=${r}`},[r,u,n]),d=(0,e.useCallback)(e=>{c.searchGet(n,e)},[n,r,c]);return(0,e.useEffect)(()=>{s&&(o(s),d(s))},[s]),t().createElement("div",null,t().createElement("form",{className:"baseocom-input-search",onSubmit:m},t().createElement("input",{value:r||"",placeholder:"Rechercher une fiche pratique, une démarche, ...",onChange:e=>o(e.target.value)}),t().createElement("button",{type:"submit"},a("magnifying-glass","20"))),t().createElement("div",{className:"baseocom-error"},l))};var mt=n(442);const dt=mt.default||mt,pt={"fiches-pratiques":"Fiches Pratiques","demarches-outils":"Démarches et outils",actualites:"Actualités"},ht=({data:t,value:n,hearing:r})=>{const[o,c]=(0,e.useState)(0),[i,s]=(0,e.useState)("résultat(s)"),[u,m]=(0,e.useState)(null),[d,p]=(0,e.useState)(t);(0,e.useEffect)(()=>{const e=d?Object.values(d).flat().length:0;c(e)},[d]),(0,e.useEffect)(()=>{if(u){const e={[u]:t[u]},n=pt[u];p(e),s(n)}else p(t),s("résultat(s)")},[u,t]);const h=e=>{m(u?null:e)},b=(()=>{let e=null,t="Accueil",a="particuliers";return"particuliers"===r?(e=F.options.baseo_comarquage_breadcrumb_particular_page,t="Accueil Particulier",a="particuliers"):"professionnels"===r&&(e=F.options.baseo_comarquage_breadcrumb_professional_page,t="Accueil Professionnel",a="professionnels"),e&&""!==e?[{title:t,url:e,identifier:a},{title:"Recherche",url:"#"},{title:`Résultats pour "${n}"`}]:null})();return React.createElement("div",{className:"baseocom-search-results"},b&&React.createElement(V,{filDAriane:b}),React.createElement("h2",null,React.createElement("strong",null,o," ",i)," ","pour ",React.createElement("strong",null,"
1: « ",n," »")),React.createElement("div",{className:"baseocom-results-content"},Object.entries(d).map(([e,t])=>{const n=pt[e],r=t.length,o=u?t:t.slice(0,10);return 0!==r&&React.createElement("div",{key:e,className:"baseocom-result-by-category"},React.createElement("h3",null,n," (",r,")"),React.createElement("div",{className:"baseocom-flex baseocom-flex-col baseocom-gap-2"},o.map((e,t)=>React.createElement(I,{key:t,isIcon:!1,url:e?.url?e?.url:qe(e?.identifier,e?.audience)},React.createElement("span",{className:"baseocom-mb-1 baseocom-mr-1"},a("arrow-right",16)),dt(l().sanitize(e?.title))))),u?React.createElement("div",{className:"baseo-button-view-more"},React.createElement("button",{type:"button",onClick:()=>h(e)},React.createElement("span",{className:"baseocom-mb-1 baseocom-mr-1"},a("arrow-left",16)),React.createElement("span",null,"Retour"))):r>o.length&&React.createElement("div",{className:"baseo-button-view-more"},React.createElement("button",{type:"button",onClick:()=>h(e)},"Voir tous les résultats dans les ",n,React.createElement("span",{className:"baseocom-mb-1 baseocom-ml-1"},a("arrow-right",16)))))})))},bt=({hearing:t})=>{const{data:n,loading:a,api:r}=_(),[c,l]=(0,e.useState)(""),{isIframe:i}=ct();return"true"===i?null:React.createElement(React.Fragment,null,React.createElement(ut,{hearing:t,value:c,api:r,setValue:l}),a?React.createElement("div",{className:"baseocom-h-96 baseocom-mt-20 baseocom-flex-row-center"},React.createElement(o,null)):n?React.createElement(ht,{data:n,value:c,hearing:t}):null)},ft=new WeakMap;function Et(e,t){let n=ft.get(t);n||(n=ReactDOM.createRoot(t),ft.set(t,n)),n.render(e)}function gt(e){const t=e.attributes["data-comarquage-fiche-id"].value,n=e.attributes["data-comarquage-hearing"].value;Et(React.createElement(rt,null,React.createElement(it,{ficheId:t,hearing:n})),e)}function vt(e){const t=e.attributes["data-comarquage-hearing"].value,n=e.attributes["data-comarquage-position"].value,a=e.attributes["data-comarquage-numbers"].value;Et(React.createElement(st,{position:n,hearing:t,numbers:a}),e)}function kt(e){const t=e.attributes["data-comarquage-hearing"].value;Et(React.createElement(bt,{hearing:t}),e)}function yt(e,t){"1"!==e.dataset.comarquageMounted&&(e.dataset.comarquageMounted="1",t(e))}document.addEventListener("DOMContentLoaded",()=>{var e;!function(e){if(e)return;const t=document.querySelectorAll(".baseo-comarquage-fiche-block"),n=document.querySelectorAll(".baseo-comarquage-news-block"),a=document.querySelectorAll(".baseo-comarquage-search-block");t.forEach(e=>{yt(e,gt)}),n.forEach(e=>{yt(e,vt)}),a.forEach(e=>{yt(e,kt)})}((e=!!window?.ElementorInlineEditor,!(e||void 0!==window.ETBuilderBackend||void 0!==window.et_fb||"1"===new URLSearchParams(window.location.search).get("et_fb")||document.body&&document.body.classList.contains("et-fb")||!function(){try{return window.self!==window.top}catch(e){return!0}}())))})})()})()

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.