balkan-orgchart-react-community 9.1.104 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.d.ts +39 -19
- package/index.es.js +2334 -2300
- package/index.umd.js +63 -63
- package/package.json +2 -2
package/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MyReactLib={},e.React,e.jsxRuntime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t);var d=l((e=>{var t=require(`react`),n=require(`react-dom`);function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.iterator;function S(e){return typeof e!=`object`||!e?null:(e=x&&e[x]||e[`@@iterator`],typeof e==`function`?e:null)}var C=Array.isArray;function w(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var T=Object.assign,E=Object.prototype.hasOwnProperty,D=RegExp(`^[: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][: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]*$`),O={},k={};function A(e){return E.call(k,e)?!0:E.call(O,e)?!1:D.test(e)?k[e]=!0:(O[e]=!0,!1)}var j=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),M=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),N=/["'&<>]/;function P(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=N.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var F=/([A-Z])/g,I=/^ms-/,L=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function R(e){return L.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},B=ee.d;ee.d={f:B.f,r:B.r,D:Ze,C:Qe,L:$e,m:et,X:nt,S:tt,M:rt};var V=[],ne=null,re=/(<\/|<)(s)(cript)/gi;function ie(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function H(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function U(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ae(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return U(2,null,r|1,null);case`select`:return U(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return U(4,null,r,null);case`picture`:return U(2,null,r|2,null);case`math`:return U(5,null,r,null);case`foreignObject`:return U(2,null,r,null);case`table`:return U(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return U(7,null,r,null);case`colgroup`:return U(9,null,r,null);case`tr`:return U(8,null,r,null);case`head`:if(2>e.insertionMode)return U(3,null,r,null);break;case`html`:if(e.insertionMode===0)return U(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?U(2,null,r,null):e.tagScope===r?e:U(e.insertionMode,e.selectedValue,r,null)}function W(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function oe(e,t){return t.tagScope&32&&(e.instructions|=128),U(t.insertionMode,t.selectedValue,t.tagScope|12,W(t.viewTransition))}function G(e,t){e=W(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),U(t.insertionMode,t.selectedValue,n,e)}var se=new Map;function ce(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=P(i);a=P((``+a).trim())}else o=se.get(i),o===void 0&&(o=P(i.replace(F,`-$1`).toLowerCase().replace(I,`-ms-`)),se.set(i,o)),a=typeof a==`number`?a===0||j.has(i)?``+a:a+`px`:P((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function le(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function ue(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,P(n),`"`)}var de=P(`javascript:throw new Error('React form unexpectedly submitted.')`);function fe(e,t){this.push(`<input type="hidden"`),pe(e),ue(this,`name`,t),ue(this,`value`,e),this.push(`/>`)}function pe(e){if(typeof e!=`string`)throw Error(r(480))}function me(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(pe),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function he(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=me(t,r);l===null?(e.push(` `,`formAction`,`="`,de,`"`),o=a=i=r=s=null,ve(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&K(e,`name`,s),r!=null&&K(e,`formAction`,r),i!=null&&K(e,`formEncType`,i),a!=null&&K(e,`formMethod`,a),o!=null&&K(e,`formTarget`,o),c}function K(e,t,n){switch(t){case`className`:ue(e,`class`,n);break;case`tabIndex`:ue(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ue(e,t,n);break;case`style`:ce(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,t,`="`,P(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:le(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,`xlink:href`,`="`,P(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,P(n),`"`);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,P(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,P(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,P(n),`"`);break;case`xlinkActuate`:ue(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ue(e,`xlink:arcrole`,n);break;case`xlinkRole`:ue(e,`xlink:role`,n);break;case`xlinkShow`:ue(e,`xlink:show`,n);break;case`xlinkTitle`:ue(e,`xlink:title`,n);break;case`xlinkType`:ue(e,`xlink:type`,n);break;case`xmlBase`:ue(e,`xml:base`,n);break;case`xmlLang`:ue(e,`xml:lang`,n);break;case`xmlSpace`:ue(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=M.get(t)||t,A(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,P(n),`"`)}}}function ge(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function _e(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function ve(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),Je(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)}}function ye(e,t){for(var n in e.push(De(`link`)),t)if(E.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:K(e,n,i)}}return e.push(`/>`),null}var be=/(<\/|<)(s)(tyle)/gi;function xe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function Se(e,t,n){for(var i in e.push(De(n)),t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:K(e,i,a)}}return e.push(`/>`),null}function Ce(e,t){e.push(De(`title`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(P(``+t)),ge(e,r,n),e.push(Ae(`title`)),null}function q(e,t){e.push(De(`script`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),typeof n==`string`&&e.push((``+n).replace(re,ie)),e.push(Ae(`script`)),null}function J(e,t,n){e.push(De(n));var r=n=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),n}function we(e,t,n){e.push(De(n));var r=n=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),typeof n==`string`?(e.push(P(n)),null):n}var Te=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ee=new Map;function De(e){var t=Ee.get(e);if(t===void 0){if(!Te.test(e))throw Error(r(65,e));t=`<`+e,Ee.set(e,t)}return t}function Oe(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(De(`a`));var u=null,d=null,f;for(f in n)if(E.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?ue(e,`href`,``):K(e,f,p);break;default:K(e,f,p)}}if(e.push(`>`),ge(e,d,u),typeof u==`string`){e.push(P(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(De(`select`));var h=null,g=null,_;for(_ in n)if(E.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:K(e,_,v)}}return e.push(`>`),ge(e,g,h),h;case`option`:var y=c.selectedValue;e.push(De(`option`));var b=null,x=null,S=null,w=null,D;for(D in n)if(E.call(n,D)){var O=n[D];if(O!=null)switch(D){case`children`:b=O;break;case`selected`:S=O;break;case`dangerouslySetInnerHTML`:w=O;break;case`value`:x=O;default:K(e,D,O)}}if(y!=null){var k=x===null?_e(b):``+x;if(C(y)){for(var j=0;j<y.length;j++)if(``+y[j]===k){e.push(` selected=""`);break}}else ``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),ge(e,w,b),b;case`textarea`:e.push(De(`textarea`));var M=null,N=null,F=null,I;for(I in n)if(E.call(n,I)){var L=n[I];if(L!=null)switch(I){case`children`:F=L;break;case`value`:M=L;break;case`defaultValue`:N=L;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:K(e,I,L)}}if(M===null&&N!==null&&(M=N),e.push(`>`),F!=null){if(M!=null)throw Error(r(92));if(C(F)){if(1<F.length)throw Error(r(93));M=``+F[0]}M=``+F}return typeof M==`string`&&M[0]===`
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MyReactLib={},e.React,e.jsxRuntime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e));t=d(t);var f=l((e=>{var t=require(`react`),n=require(`react-dom`);function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.iterator;function S(e){return typeof e!=`object`||!e?null:(e=x&&e[x]||e[`@@iterator`],typeof e==`function`?e:null)}var C=Array.isArray;function w(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var T=Object.assign,E=Object.prototype.hasOwnProperty,D=RegExp(`^[: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][: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]*$`),O={},k={};function A(e){return E.call(k,e)?!0:E.call(O,e)?!1:D.test(e)?k[e]=!0:(O[e]=!0,!1)}var j=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),M=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),N=/["'&<>]/;function P(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=N.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var F=/([A-Z])/g,I=/^ms-/,L=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function R(e){return L.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},B=ee.d;ee.d={f:B.f,r:B.r,D:Ze,C:Qe,L:$e,m:et,X:nt,S:tt,M:rt};var V=[],ne=null,re=/(<\/|<)(s)(cript)/gi;function ie(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function H(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function U(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ae(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return U(2,null,r|1,null);case`select`:return U(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return U(4,null,r,null);case`picture`:return U(2,null,r|2,null);case`math`:return U(5,null,r,null);case`foreignObject`:return U(2,null,r,null);case`table`:return U(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return U(7,null,r,null);case`colgroup`:return U(9,null,r,null);case`tr`:return U(8,null,r,null);case`head`:if(2>e.insertionMode)return U(3,null,r,null);break;case`html`:if(e.insertionMode===0)return U(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?U(2,null,r,null):e.tagScope===r?e:U(e.insertionMode,e.selectedValue,r,null)}function W(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function oe(e,t){return t.tagScope&32&&(e.instructions|=128),U(t.insertionMode,t.selectedValue,t.tagScope|12,W(t.viewTransition))}function G(e,t){e=W(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),U(t.insertionMode,t.selectedValue,n,e)}var se=new Map;function ce(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=P(i);a=P((``+a).trim())}else o=se.get(i),o===void 0&&(o=P(i.replace(F,`-$1`).toLowerCase().replace(I,`-ms-`)),se.set(i,o)),a=typeof a==`number`?a===0||j.has(i)?``+a:a+`px`:P((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function le(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function ue(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,P(n),`"`)}var de=P(`javascript:throw new Error('React form unexpectedly submitted.')`);function fe(e,t){this.push(`<input type="hidden"`),pe(e),ue(this,`name`,t),ue(this,`value`,e),this.push(`/>`)}function pe(e){if(typeof e!=`string`)throw Error(r(480))}function me(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(pe),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function he(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=me(t,r);l===null?(e.push(` `,`formAction`,`="`,de,`"`),o=a=i=r=s=null,ve(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&K(e,`name`,s),r!=null&&K(e,`formAction`,r),i!=null&&K(e,`formEncType`,i),a!=null&&K(e,`formMethod`,a),o!=null&&K(e,`formTarget`,o),c}function K(e,t,n){switch(t){case`className`:ue(e,`class`,n);break;case`tabIndex`:ue(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ue(e,t,n);break;case`style`:ce(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,t,`="`,P(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:le(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,`xlink:href`,`="`,P(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,P(n),`"`);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,P(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,P(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,P(n),`"`);break;case`xlinkActuate`:ue(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ue(e,`xlink:arcrole`,n);break;case`xlinkRole`:ue(e,`xlink:role`,n);break;case`xlinkShow`:ue(e,`xlink:show`,n);break;case`xlinkTitle`:ue(e,`xlink:title`,n);break;case`xlinkType`:ue(e,`xlink:type`,n);break;case`xmlBase`:ue(e,`xml:base`,n);break;case`xmlLang`:ue(e,`xml:lang`,n);break;case`xmlSpace`:ue(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=M.get(t)||t,A(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,P(n),`"`)}}}function ge(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(``+t)}}function _e(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function ve(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),Je(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)}}function ye(e,t){for(var n in e.push(De(`link`)),t)if(E.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:K(e,n,i)}}return e.push(`/>`),null}var be=/(<\/|<)(s)(tyle)/gi;function xe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function Se(e,t,n){for(var i in e.push(De(n)),t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:K(e,i,a)}}return e.push(`/>`),null}function Ce(e,t){e.push(De(`title`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(P(``+t)),ge(e,r,n),e.push(Ae(`title`)),null}function q(e,t){e.push(De(`script`));var n=null,r=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),typeof n==`string`&&e.push((``+n).replace(re,ie)),e.push(Ae(`script`)),null}function J(e,t,n){e.push(De(n));var r=n=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),n}function we(e,t,n){e.push(De(n));var r=n=null,i;for(i in t)if(E.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:K(e,i,a)}}return e.push(`>`),ge(e,r,n),typeof n==`string`?(e.push(P(n)),null):n}var Te=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ee=new Map;function De(e){var t=Ee.get(e);if(t===void 0){if(!Te.test(e))throw Error(r(65,e));t=`<`+e,Ee.set(e,t)}return t}function Oe(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(De(`a`));var u=null,d=null,f;for(f in n)if(E.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?ue(e,`href`,``):K(e,f,p);break;default:K(e,f,p)}}if(e.push(`>`),ge(e,d,u),typeof u==`string`){e.push(P(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(De(`select`));var h=null,g=null,_;for(_ in n)if(E.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:K(e,_,v)}}return e.push(`>`),ge(e,g,h),h;case`option`:var y=c.selectedValue;e.push(De(`option`));var b=null,x=null,S=null,w=null,D;for(D in n)if(E.call(n,D)){var O=n[D];if(O!=null)switch(D){case`children`:b=O;break;case`selected`:S=O;break;case`dangerouslySetInnerHTML`:w=O;break;case`value`:x=O;default:K(e,D,O)}}if(y!=null){var k=x===null?_e(b):``+x;if(C(y)){for(var j=0;j<y.length;j++)if(``+y[j]===k){e.push(` selected=""`);break}}else ``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),ge(e,w,b),b;case`textarea`:e.push(De(`textarea`));var M=null,N=null,F=null,I;for(I in n)if(E.call(n,I)){var L=n[I];if(L!=null)switch(I){case`children`:F=L;break;case`value`:M=L;break;case`defaultValue`:N=L;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:K(e,I,L)}}if(M===null&&N!==null&&(M=N),e.push(`>`),F!=null){if(M!=null)throw Error(r(92));if(C(F)){if(1<F.length)throw Error(r(93));M=``+F[0]}M=``+F}return typeof M==`string`&&M[0]===`
|
|
2
2
|
`&&e.push(`
|
|
3
3
|
`),M!==null&&e.push(P(``+M)),null;case`input`:e.push(De(`input`));var z=null,ee=null,te=null,B=null,ne=null,re=null,ie=null,H=null,U=null,ae;for(ae in n)if(E.call(n,ae)){var W=n[ae];if(W!=null)switch(ae){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:z=W;break;case`formAction`:ee=W;break;case`formEncType`:te=W;break;case`formMethod`:B=W;break;case`formTarget`:ne=W;break;case`defaultChecked`:U=W;break;case`defaultValue`:ie=W;break;case`checked`:H=W;break;case`value`:re=W;break;default:K(e,ae,W)}}var oe=he(e,i,a,ee,te,B,ne,z);return H===null?U!==null&&le(e,`checked`,U):le(e,`checked`,H),re===null?ie!==null&&K(e,`value`,ie):K(e,`value`,re),e.push(`/>`),oe?.forEach(fe,e),null;case`button`:e.push(De(`button`));var G=null,se=null,pe=null,Te=null,Ee=null,Oe=null,ke=null,je;for(je in n)if(E.call(n,je)){var Me=n[je];if(Me!=null)switch(je){case`children`:G=Me;break;case`dangerouslySetInnerHTML`:se=Me;break;case`name`:pe=Me;break;case`formAction`:Te=Me;break;case`formEncType`:Ee=Me;break;case`formMethod`:Oe=Me;break;case`formTarget`:ke=Me;break;default:K(e,je,Me)}}var Ne=he(e,i,a,Te,Ee,Oe,ke,pe);if(e.push(`>`),Ne?.forEach(fe,e),ge(e,se,G),typeof G==`string`){e.push(P(G));var Pe=null}else Pe=G;return Pe;case`form`:e.push(De(`form`));var Fe=null,Ie=null,Le=null,Re=null,ze=null,Be=null,Ve;for(Ve in n)if(E.call(n,Ve)){var He=n[Ve];if(He!=null)switch(Ve){case`children`:Fe=He;break;case`dangerouslySetInnerHTML`:Ie=He;break;case`action`:Le=He;break;case`encType`:Re=He;break;case`method`:ze=He;break;case`target`:Be=He;break;default:K(e,Ve,He)}}var Y=null,Ue=null;if(typeof Le==`function`){var We=me(i,Le);We===null?(e.push(` `,`action`,`="`,de,`"`),Be=ze=Re=Le=null,ve(i,a)):(Le=We.action||``,Re=We.encType,ze=We.method,Be=We.target,Y=We.data,Ue=We.name)}if(Le!=null&&K(e,`action`,Le),Re!=null&&K(e,`encType`,Re),ze!=null&&K(e,`method`,ze),Be!=null&&K(e,`target`,Be),e.push(`>`),Ue!==null&&(e.push(`<input type="hidden"`),ue(e,`name`,Ue),e.push(`/>`),Y?.forEach(fe,e)),ge(e,Ie,Fe),typeof Fe==`string`){e.push(P(Fe));var X=null}else X=Fe;return X;case`menuitem`:for(var Ge in e.push(De(`menuitem`)),n)if(E.call(n,Ge)){var Z=n[Ge];if(Z!=null)switch(Ge){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:K(e,Ge,Z)}}return e.push(`>`),null;case`object`:e.push(De(`object`));var Ke=null,qe=null,Je;for(Je in n)if(E.call(n,Je)){var Ye=n[Je];if(Ye!=null)switch(Je){case`children`:Ke=Ye;break;case`dangerouslySetInnerHTML`:qe=Ye;break;case`data`:var Xe=R(``+Ye);if(Xe===``)break;e.push(` `,`data`,`="`,P(Xe),`"`);break;default:K(e,Je,Ye)}}if(e.push(`>`),ge(e,qe,Ke),typeof Ke==`string`){e.push(P(Ke));var Q=null}else Q=Ke;return Q;case`title`:var Ze=c.tagScope&1,Qe=c.tagScope&4;if(c.insertionMode===4||Ze||n.itemProp!=null)var $e=Ce(e,n);else Qe?$e=null:(Ce(a.hoistableChunks,n),$e=void 0);return $e;case`link`:var et=c.tagScope&1,tt=c.tagScope&4,nt=n.rel,rt=n.href,ot=n.precedence;if(c.insertionMode===4||et||n.itemProp!=null||typeof nt!=`string`||typeof rt!=`string`||rt===``){ye(e,n);var st=null}else if(n.rel===`stylesheet`)if(typeof ot!=`string`||n.disabled!=null||n.onLoad||n.onError)st=ye(e,n);else{var ct=a.styles.get(ot),lt=i.styleResources.hasOwnProperty(rt)?i.styleResources[rt]:void 0;if(lt!==null){i.styleResources[rt]=null,ct||(ct={precedence:P(ot),rules:[],hrefs:[],sheets:new Map},a.styles.set(ot,ct));var ut={state:0,props:T({},n,{"data-precedence":n.precedence,precedence:null})};if(lt){lt.length===2&&it(ut.props,lt);var dt=a.preloads.stylesheets.get(rt);dt&&0<dt.length?dt.length=0:ut.state=1}ct.sheets.set(rt,ut),s&&s.stylesheets.add(ut)}else if(ct){var ft=ct.sheets.get(rt);ft&&s&&s.stylesheets.add(ft)}l&&e.push(`<!-- -->`),st=null}else n.onLoad||n.onError?st=ye(e,n):(l&&e.push(`<!-- -->`),st=tt?null:ye(a.hoistableChunks,n));return st;case`script`:var pt=c.tagScope&1,mt=n.async;if(typeof n.src!=`string`||!n.src||!mt||typeof mt==`function`||typeof mt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||pt||n.itemProp!=null)var ht=q(e,n);else{var gt=n.src;if(n.type===`module`)var _t=i.moduleScriptResources,vt=a.preloads.moduleScripts;else _t=i.scriptResources,vt=a.preloads.scripts;var yt=_t.hasOwnProperty(gt)?_t[gt]:void 0;if(yt!==null){_t[gt]=null;var bt=n;if(yt){yt.length===2&&(bt=T({},n),it(bt,yt));var xt=vt.get(gt);xt&&(xt.length=0)}var St=[];a.scripts.add(St),q(St,bt)}l&&e.push(`<!-- -->`),ht=null}return ht;case`style`:var Ct=c.tagScope&1,wt=n.precedence,Tt=n.href,Et=n.nonce;if(c.insertionMode===4||Ct||n.itemProp!=null||typeof wt!=`string`||typeof Tt!=`string`||Tt===``){e.push(De(`style`));var Dt=null,Ot=null,kt;for(kt in n)if(E.call(n,kt)){var At=n[kt];if(At!=null)switch(kt){case`children`:Dt=At;break;case`dangerouslySetInnerHTML`:Ot=At;break;default:K(e,kt,At)}}e.push(`>`);var jt=Array.isArray(Dt)?2>Dt.length?Dt[0]:null:Dt;typeof jt!=`function`&&typeof jt!=`symbol`&&jt!=null&&e.push((``+jt).replace(be,xe)),ge(e,Ot,Dt),e.push(Ae(`style`));var Mt=null}else{var Nt=a.styles.get(wt);if((i.styleResources.hasOwnProperty(Tt)?i.styleResources[Tt]:void 0)!==null){i.styleResources[Tt]=null,Nt||(Nt={precedence:P(wt),rules:[],hrefs:[],sheets:new Map},a.styles.set(wt,Nt));var Pt=a.nonce.style;if(!Pt||Pt===Et){Nt.hrefs.push(P(Tt));var Ft=Nt.rules,It=null,Lt=null,Rt;for(Rt in n)if(E.call(n,Rt)){var zt=n[Rt];if(zt!=null)switch(Rt){case`children`:It=zt;break;case`dangerouslySetInnerHTML`:Lt=zt}}var Bt=Array.isArray(It)?2>It.length?It[0]:null:It;typeof Bt!=`function`&&typeof Bt!=`symbol`&&Bt!=null&&Ft.push((``+Bt).replace(be,xe)),ge(Ft,Lt,It)}}Nt&&s&&s.styles.add(Nt),l&&e.push(`<!-- -->`),Mt=void 0}return Mt;case`meta`:var Vt=c.tagScope&1,Ht=c.tagScope&4;if(c.insertionMode===4||Vt||n.itemProp!=null)var Ut=Se(e,n,`meta`);else l&&e.push(`<!-- -->`),Ut=Ht?null:typeof n.charSet==`string`?Se(a.charsetChunks,n,`meta`):n.name===`viewport`?Se(a.viewportChunks,n,`meta`):Se(a.hoistableChunks,n,`meta`);return Ut;case`listing`:case`pre`:e.push(De(t));var Wt=null,Gt=null,$;for($ in n)if(E.call(n,$)){var Kt=n[$];if(Kt!=null)switch($){case`children`:Wt=Kt;break;case`dangerouslySetInnerHTML`:Gt=Kt;break;default:K(e,$,Kt)}}if(e.push(`>`),Gt!=null){if(Wt!=null)throw Error(r(60));if(typeof Gt!=`object`||!(`__html`in Gt))throw Error(r(61));var qt=Gt.__html;qt!=null&&(typeof qt==`string`&&0<qt.length&&qt[0]===`
|
|
4
4
|
`?e.push(`
|
|
@@ -24,7 +24,7 @@ Error generating stack: `+e.message+`
|
|
|
24
24
|
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),r.instructions&8?t.push(`$RR("`):(r.instructions|=8,t.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
25
25
|
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
26
26
|
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`))):(!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
27
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),Ye(t,n)):t.push(`"`),n=t.push(`)<\/script>`),Me(t,e)&&n}function Sr(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return br(e,t,i,a)}return o===n.rootSegmentID?br(e,t,i,a):(br(e,t,i,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var Cr=!1;function wr(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;vr=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=De(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(We,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(We,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(We,t),o.highImagePreloads.clear(),ne=o,o.styles.forEach(Z,t),ne=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(We,t),o.scripts.forEach(We,t),o.scripts.clear(),o.bulkPreloads.forEach(We,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)yr(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=Ae(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);yr(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=P(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}Me(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);E.length=0,T.preconnects.forEach(We,t),T.preconnects.clear(),T.fontPreloads.forEach(We,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(We,t),T.highImagePreloads.clear(),T.styles.forEach(qe,t),T.scripts.forEach(We,t),T.scripts.clear(),T.bulkPreloads.forEach(We,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var F=M.toString(16);if(T.push(F),T.push(`"`),N){T.push(`,`);var I=Le(N||``);T.push(I)}var L=T.push(`)<\/script>`);if(!L){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!xr(e,t,R[n])){e.destination=null,n++,R.splice(0,n);return}R.splice(0,n),Cr=!0;var z=e.partialBoundaries;for(n=0;n<z.length;n++){var ee=z[n];a:{O=e,k=t,vr=ee.byteSize;var te=ee.completedSegments;for(L=0;L<te.length;L++)if(!Sr(O,k,ee,te[L])){L++,te.splice(0,L);var B=!1;break a}te.splice(0,L);var V=ee.row;V!==null&&V.together&&ee.pendingTasks===1&&(V.pendingTasks===1?Hn(O,V,V.hoistables):V.pendingTasks--),B=Ue(k,ee.contentState,O.renderState)}if(!B){e.destination=null,n++,z.splice(0,n);return}}z.splice(0,n),Cr=!1;var re=e.completedBoundaries;for(n=0;n<re.length;n++)if(!xr(e,t,re[n])){e.destination=null,n++,re.splice(0,n);return}re.splice(0,n)}}finally{Cr=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(z=Ae(`body`),t.push(z)),n.hasHtml&&(n=Ae(`html`),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function Tr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?wr(e,t):e.flushScheduled=!1}}function Er(e,t){if(e.status===13)e.status=14,t.destroy(e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{wr(e,t)}catch(t){zn(e,t,{}),Bn(e,t)}}}function Dr(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return sr(t,e,i)}),n.clear()}e.destination!==null&&wr(e,e.destination)}catch(t){zn(e,t,{}),Bn(e,t)}}function Or(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Or(i,t[0],n)),i[2].push(e)}}function kr(){}function Ar(e,t,n,i){var a=!1,o=null,s=``,c=!1;if(t=H(t?t.identifierPrefix:void 0),e=kn(e,t,pt(t,n),U(0,null,0,null),1/0,kr,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,pr(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&cr(e,e.pendingRootTasks===0),Dr(e,i),Er(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==i)throw o;if(!c)throw Error(r(426));return s}e.renderToStaticMarkup=function(e,t){return Ar(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return Ar(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.4`})),f=l((e=>{var t=require(`react`),n=require(`react-dom`);function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.iterator;function S(e){return typeof e!=`object`||!e?null:(e=x&&e[x]||e[`@@iterator`],typeof e==`function`?e:null)}var C=Array.isArray;function w(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var T=new MessageChannel,E=[];T.port1.onmessage=function(){var e=E.shift();e&&e()};function D(e){E.push(e),T.port2.postMessage(null)}function O(e){setTimeout(function(){throw e})}var k=Promise,A=typeof queueMicrotask==`function`?queueMicrotask:function(e){k.resolve(null).then(e).catch(O)},j=null,M=0;function N(e,t){if(t.byteLength!==0)if(2048<t.byteLength)0<M&&(e.enqueue(new Uint8Array(j.buffer,0,M)),j=new Uint8Array(2048),M=0),e.enqueue(t);else{var n=j.length-M;n<t.byteLength&&(n===0?e.enqueue(j):(j.set(t.subarray(0,n),M),e.enqueue(j),t=t.subarray(n)),j=new Uint8Array(2048),M=0),j.set(t,M),M+=t.byteLength}}function P(e,t){return N(e,t),!0}function F(e){j&&0<M&&(e.enqueue(new Uint8Array(j.buffer,0,M)),j=null,M=0)}var I=new TextEncoder;function L(e){return I.encode(e)}function R(e){return I.encode(e)}function z(e){return e.byteLength}function ee(e,t){typeof e.error==`function`?e.error(t):e.close()}var te=Object.assign,B=Object.prototype.hasOwnProperty,V=RegExp(`^[: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][: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]*$`),ne={},re={};function ie(e){return B.call(re,e)?!0:B.call(ne,e)?!1:V.test(e)?re[e]=!0:(ne[e]=!0,!1)}var H=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),U=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ae=/["'&<>]/;function W(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ae.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var oe=/([A-Z])/g,G=/^ms-/,se=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ce(e){return se.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var le=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=ue.d;ue.d={f:fe.f,r:fe.r,D:sr,C:cr,L:lr,m:ur,X:fr,S:dr,M:pr};var pe=[],me=null;R(`"></template>`);var he=R(`<script`),K=R(`<\/script>`),ge=R(`<script src="`),_e=R(`<script type="module" src="`),ve=R(` nonce="`),ye=R(` integrity="`),be=R(` crossorigin="`),xe=R(` async=""><\/script>`),Se=R(`<style`),Ce=/(<\/|<)(s)(cript)/gi;function q(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var J=R(`<script type="importmap">`),we=R(`<\/script>`);function Te(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?he:R(`<script nonce="`+W(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?Se:R(`<style nonce="`+W(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),$n(u,e),u.push(Q,L((``+d).replace(Ce,q)),K)),d=[],r!==void 0&&(d.push(J),d.push(L((``+JSON.stringify(r)).replace(Ce,q))),d.push(we)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:R(l+`P:`),segmentPrefix:R(l+`S:`),boundaryPrefix:R(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:De(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],at(l,c),i.bootstrapScripts.add(l),u.push(ge,L(W(a)),Y),n&&u.push(ve,L(W(n)),Y),typeof s==`string`&&u.push(ye,L(W(s)),Y),typeof o==`string`&&u.push(be,L(W(o)),Y),$n(u,e),u.push(xe);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],at(s,o),i.bootstrapScripts.add(s),u.push(_e,L(W(f)),Y),n&&u.push(ve,L(W(n)),Y),typeof a==`string`&&u.push(ye,L(W(a)),Y),typeof r==`string`&&u.push(be,L(W(r)),Y),$n(u,e),u.push(xe);return i}function Ee(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function De(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Oe(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ke(e){return Oe(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function Ae(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return Oe(2,null,r|1,null);case`select`:return Oe(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return Oe(4,null,r,null);case`picture`:return Oe(2,null,r|2,null);case`math`:return Oe(5,null,r,null);case`foreignObject`:return Oe(2,null,r,null);case`table`:return Oe(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return Oe(7,null,r,null);case`colgroup`:return Oe(9,null,r,null);case`tr`:return Oe(8,null,r,null);case`head`:if(2>e.insertionMode)return Oe(3,null,r,null);break;case`html`:if(e.insertionMode===0)return Oe(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Oe(2,null,r,null):e.tagScope===r?e:Oe(e.insertionMode,e.selectedValue,r,null)}function je(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function Me(e,t){return t.tagScope&32&&(e.instructions|=128),Oe(t.insertionMode,t.selectedValue,t.tagScope|12,je(t.viewTransition))}function Ne(e,t){e=je(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),Oe(t.insertionMode,t.selectedValue,n,e)}var Pe=R(`<!-- -->`);function Fe(e,t,n,r){return t===``?r:(r&&e.push(Pe),e.push(L(W(t))),!0)}var Ie=new Map,Le=R(` style="`),Re=R(`:`),ze=R(`;`);function Be(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=L(W(i));a=L(W((``+a).trim()))}else o=Ie.get(i),o===void 0&&(o=R(W(i.replace(oe,`-$1`).toLowerCase().replace(G,`-ms-`))),Ie.set(i,o)),a=typeof a==`number`?a===0||H.has(i)?L(``+a):L(a+`px`):L(W((``+a).trim()));n?(n=!1,e.push(Le,o,Re,a)):e.push(ze,o,Re,a)}}n||e.push(Y)}var Ve=R(` `),He=R(`="`),Y=R(`"`),Ue=R(`=""`);function We(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),Ue)}function X(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(Ve,L(t),He,L(W(n)),Y)}var Ge=R(W(`javascript:throw new Error('React form unexpectedly submitted.')`)),Z=R(`<input type="hidden"`);function Ke(e,t){this.push(Z),qe(e),X(this,`name`,t),X(this,`value`,e),this.push(Ze)}function qe(e){if(typeof e!=`string`)throw Error(r(480))}function Je(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(qe),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Ye(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=Je(t,r);l===null?(e.push(Ve,L(`formAction`),He,Ge,Y),o=a=i=r=s=null,nt(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&Xe(e,`name`,s),r!=null&&Xe(e,`formAction`,r),i!=null&&Xe(e,`formEncType`,i),a!=null&&Xe(e,`formMethod`,a),o!=null&&Xe(e,`formTarget`,o),c}function Xe(e,t,n){switch(t){case`className`:X(e,`class`,n);break;case`tabIndex`:X(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:X(e,t,n);break;case`style`:Be(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=ce(``+n),e.push(Ve,L(t),He,L(W(n)),Y);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:We(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=ce(``+n),e.push(Ve,L(`xlink:href`),He,L(W(n)),Y);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),Ue);break;case`capture`:case`download`:!0===n?e.push(Ve,L(t),Ue):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Ve,L(t),He,L(W(n)),Y);break;case`xlinkActuate`:X(e,`xlink:actuate`,n);break;case`xlinkArcrole`:X(e,`xlink:arcrole`,n);break;case`xlinkRole`:X(e,`xlink:role`,n);break;case`xlinkShow`:X(e,`xlink:show`,n);break;case`xlinkTitle`:X(e,`xlink:title`,n);break;case`xlinkType`:X(e,`xlink:type`,n);break;case`xmlBase`:X(e,`xml:base`,n);break;case`xmlLang`:X(e,`xml:lang`,n);break;case`xmlSpace`:X(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=U.get(t)||t,ie(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(Ve,L(t),He,L(W(n)),Y)}}}var Q=R(`>`),Ze=R(`/>`);function Qe(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(L(``+t))}}function $e(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var et=R(` selected=""`),tt=R(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function nt(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),$n(r,e),r.push(Q,tt,K)):r.unshift(t.startInlineScript,Q,tt,K)}}var rt=R(`<!--F!-->`),it=R(`<!--F-->`);function at(e,t){for(var n in e.push(yt(`link`)),t)if(B.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:Xe(e,n,i)}}return e.push(Ze),null}var ot=/(<\/|<)(s)(tyle)/gi;function st(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ct(e,t,n){for(var i in e.push(yt(n)),t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:Xe(e,i,a)}}return e.push(Ze),null}function lt(e,t){e.push(yt(`title`));var n=null,r=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(L(W(``+t))),Qe(e,r,n),e.push(Ct(`title`)),null}var ut=R(`<!--head-->`),dt=R(`<!--body-->`),ft=R(`<!--html-->`);function pt(e,t){e.push(yt(`script`));var n=null,r=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),typeof n==`string`&&e.push(L((``+n).replace(Ce,q))),e.push(Ct(`script`)),null}function mt(e,t,n){e.push(yt(n));var r=n=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),n}function ht(e,t,n){e.push(yt(n));var r=n=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),typeof n==`string`?(e.push(L(W(n))),null):n}var gt=R(`
|
|
27
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),Ye(t,n)):t.push(`"`),n=t.push(`)<\/script>`),Me(t,e)&&n}function Sr(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return br(e,t,i,a)}return o===n.rootSegmentID?br(e,t,i,a):(br(e,t,i,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var Cr=!1;function wr(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;vr=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=De(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(We,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(We,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(We,t),o.highImagePreloads.clear(),ne=o,o.styles.forEach(Z,t),ne=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(We,t),o.scripts.forEach(We,t),o.scripts.clear(),o.bulkPreloads.forEach(We,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)yr(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=Ae(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);yr(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=P(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}Me(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);E.length=0,T.preconnects.forEach(We,t),T.preconnects.clear(),T.fontPreloads.forEach(We,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(We,t),T.highImagePreloads.clear(),T.styles.forEach(qe,t),T.scripts.forEach(We,t),T.scripts.clear(),T.bulkPreloads.forEach(We,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var F=M.toString(16);if(T.push(F),T.push(`"`),N){T.push(`,`);var I=Le(N||``);T.push(I)}var L=T.push(`)<\/script>`);if(!L){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!xr(e,t,R[n])){e.destination=null,n++,R.splice(0,n);return}R.splice(0,n),Cr=!0;var z=e.partialBoundaries;for(n=0;n<z.length;n++){var ee=z[n];a:{O=e,k=t,vr=ee.byteSize;var te=ee.completedSegments;for(L=0;L<te.length;L++)if(!Sr(O,k,ee,te[L])){L++,te.splice(0,L);var B=!1;break a}te.splice(0,L);var V=ee.row;V!==null&&V.together&&ee.pendingTasks===1&&(V.pendingTasks===1?Hn(O,V,V.hoistables):V.pendingTasks--),B=Ue(k,ee.contentState,O.renderState)}if(!B){e.destination=null,n++,z.splice(0,n);return}}z.splice(0,n),Cr=!1;var re=e.completedBoundaries;for(n=0;n<re.length;n++)if(!xr(e,t,re[n])){e.destination=null,n++,re.splice(0,n);return}re.splice(0,n)}}finally{Cr=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(z=Ae(`body`),t.push(z)),n.hasHtml&&(n=Ae(`html`),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function Tr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?wr(e,t):e.flushScheduled=!1}}function Er(e,t){if(e.status===13)e.status=14,t.destroy(e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{wr(e,t)}catch(t){zn(e,t,{}),Bn(e,t)}}}function Dr(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return sr(t,e,i)}),n.clear()}e.destination!==null&&wr(e,e.destination)}catch(t){zn(e,t,{}),Bn(e,t)}}function Or(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Or(i,t[0],n)),i[2].push(e)}}function kr(){}function Ar(e,t,n,i){var a=!1,o=null,s=``,c=!1;if(t=H(t?t.identifierPrefix:void 0),e=kn(e,t,pt(t,n),U(0,null,0,null),1/0,kr,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,pr(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&cr(e,e.pendingRootTasks===0),Dr(e,i),Er(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==i)throw o;if(!c)throw Error(r(426));return s}e.renderToStaticMarkup=function(e,t){return Ar(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return Ar(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.4`})),p=l((e=>{var t=require(`react`),n=require(`react-dom`);function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=Symbol.for(`react.transitional.element`),a=Symbol.for(`react.portal`),o=Symbol.for(`react.fragment`),s=Symbol.for(`react.strict_mode`),c=Symbol.for(`react.profiler`),l=Symbol.for(`react.consumer`),u=Symbol.for(`react.context`),d=Symbol.for(`react.forward_ref`),f=Symbol.for(`react.suspense`),p=Symbol.for(`react.suspense_list`),m=Symbol.for(`react.memo`),h=Symbol.for(`react.lazy`),g=Symbol.for(`react.scope`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.legacy_hidden`),y=Symbol.for(`react.memo_cache_sentinel`),b=Symbol.for(`react.view_transition`),x=Symbol.iterator;function S(e){return typeof e!=`object`||!e?null:(e=x&&e[x]||e[`@@iterator`],typeof e==`function`?e:null)}var C=Array.isArray;function w(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var T=new MessageChannel,E=[];T.port1.onmessage=function(){var e=E.shift();e&&e()};function D(e){E.push(e),T.port2.postMessage(null)}function O(e){setTimeout(function(){throw e})}var k=Promise,A=typeof queueMicrotask==`function`?queueMicrotask:function(e){k.resolve(null).then(e).catch(O)},j=null,M=0;function N(e,t){if(t.byteLength!==0)if(2048<t.byteLength)0<M&&(e.enqueue(new Uint8Array(j.buffer,0,M)),j=new Uint8Array(2048),M=0),e.enqueue(t);else{var n=j.length-M;n<t.byteLength&&(n===0?e.enqueue(j):(j.set(t.subarray(0,n),M),e.enqueue(j),t=t.subarray(n)),j=new Uint8Array(2048),M=0),j.set(t,M),M+=t.byteLength}}function P(e,t){return N(e,t),!0}function F(e){j&&0<M&&(e.enqueue(new Uint8Array(j.buffer,0,M)),j=null,M=0)}var I=new TextEncoder;function L(e){return I.encode(e)}function R(e){return I.encode(e)}function z(e){return e.byteLength}function ee(e,t){typeof e.error==`function`?e.error(t):e.close()}var te=Object.assign,B=Object.prototype.hasOwnProperty,V=RegExp(`^[: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][: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]*$`),ne={},re={};function ie(e){return B.call(re,e)?!0:B.call(ne,e)?!1:V.test(e)?re[e]=!0:(ne[e]=!0,!1)}var H=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),U=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ae=/["'&<>]/;function W(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=ae.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var oe=/([A-Z])/g,G=/^ms-/,se=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ce(e){return se.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var le=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=ue.d;ue.d={f:fe.f,r:fe.r,D:sr,C:cr,L:lr,m:ur,X:fr,S:dr,M:pr};var pe=[],me=null;R(`"></template>`);var he=R(`<script`),K=R(`<\/script>`),ge=R(`<script src="`),_e=R(`<script type="module" src="`),ve=R(` nonce="`),ye=R(` integrity="`),be=R(` crossorigin="`),xe=R(` async=""><\/script>`),Se=R(`<style`),Ce=/(<\/|<)(s)(cript)/gi;function q(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var J=R(`<script type="importmap">`),we=R(`<\/script>`);function Te(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?he:R(`<script nonce="`+W(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?Se:R(`<style nonce="`+W(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),$n(u,e),u.push(Q,L((``+d).replace(Ce,q)),K)),d=[],r!==void 0&&(d.push(J),d.push(L((``+JSON.stringify(r)).replace(Ce,q))),d.push(we)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:R(l+`P:`),segmentPrefix:R(l+`S:`),boundaryPrefix:R(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:De(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],at(l,c),i.bootstrapScripts.add(l),u.push(ge,L(W(a)),Y),n&&u.push(ve,L(W(n)),Y),typeof s==`string`&&u.push(ye,L(W(s)),Y),typeof o==`string`&&u.push(be,L(W(o)),Y),$n(u,e),u.push(xe);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],at(s,o),i.bootstrapScripts.add(s),u.push(_e,L(W(f)),Y),n&&u.push(ve,L(W(n)),Y),typeof a==`string`&&u.push(ye,L(W(a)),Y),typeof r==`string`&&u.push(be,L(W(r)),Y),$n(u,e),u.push(xe);return i}function Ee(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function De(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Oe(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function ke(e){return Oe(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function Ae(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return Oe(2,null,r|1,null);case`select`:return Oe(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return Oe(4,null,r,null);case`picture`:return Oe(2,null,r|2,null);case`math`:return Oe(5,null,r,null);case`foreignObject`:return Oe(2,null,r,null);case`table`:return Oe(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return Oe(7,null,r,null);case`colgroup`:return Oe(9,null,r,null);case`tr`:return Oe(8,null,r,null);case`head`:if(2>e.insertionMode)return Oe(3,null,r,null);break;case`html`:if(e.insertionMode===0)return Oe(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Oe(2,null,r,null):e.tagScope===r?e:Oe(e.insertionMode,e.selectedValue,r,null)}function je(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function Me(e,t){return t.tagScope&32&&(e.instructions|=128),Oe(t.insertionMode,t.selectedValue,t.tagScope|12,je(t.viewTransition))}function Ne(e,t){e=je(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),Oe(t.insertionMode,t.selectedValue,n,e)}var Pe=R(`<!-- -->`);function Fe(e,t,n,r){return t===``?r:(r&&e.push(Pe),e.push(L(W(t))),!0)}var Ie=new Map,Le=R(` style="`),Re=R(`:`),ze=R(`;`);function Be(e,t){if(typeof t!=`object`)throw Error(r(62));var n=!0,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=L(W(i));a=L(W((``+a).trim()))}else o=Ie.get(i),o===void 0&&(o=R(W(i.replace(oe,`-$1`).toLowerCase().replace(G,`-ms-`))),Ie.set(i,o)),a=typeof a==`number`?a===0||H.has(i)?L(``+a):L(a+`px`):L(W((``+a).trim()));n?(n=!1,e.push(Le,o,Re,a)):e.push(ze,o,Re,a)}}n||e.push(Y)}var Ve=R(` `),He=R(`="`),Y=R(`"`),Ue=R(`=""`);function We(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),Ue)}function X(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(Ve,L(t),He,L(W(n)),Y)}var Ge=R(W(`javascript:throw new Error('React form unexpectedly submitted.')`)),Z=R(`<input type="hidden"`);function Ke(e,t){this.push(Z),qe(e),X(this,`name`,t),X(this,`value`,e),this.push(Ze)}function qe(e){if(typeof e!=`string`)throw Error(r(480))}function Je(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(qe),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function Ye(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=Je(t,r);l===null?(e.push(Ve,L(`formAction`),He,Ge,Y),o=a=i=r=s=null,nt(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&Xe(e,`name`,s),r!=null&&Xe(e,`formAction`,r),i!=null&&Xe(e,`formEncType`,i),a!=null&&Xe(e,`formMethod`,a),o!=null&&Xe(e,`formTarget`,o),c}function Xe(e,t,n){switch(t){case`className`:X(e,`class`,n);break;case`tabIndex`:X(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:X(e,t,n);break;case`style`:Be(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=ce(``+n),e.push(Ve,L(t),He,L(W(n)),Y);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:We(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=ce(``+n),e.push(Ve,L(`xlink:href`),He,L(W(n)),Y);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),Ue);break;case`capture`:case`download`:!0===n?e.push(Ve,L(t),Ue):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(Ve,L(t),He,L(W(n)),Y);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(Ve,L(t),He,L(W(n)),Y);break;case`xlinkActuate`:X(e,`xlink:actuate`,n);break;case`xlinkArcrole`:X(e,`xlink:arcrole`,n);break;case`xlinkRole`:X(e,`xlink:role`,n);break;case`xlinkShow`:X(e,`xlink:show`,n);break;case`xlinkTitle`:X(e,`xlink:title`,n);break;case`xlinkType`:X(e,`xlink:type`,n);break;case`xmlBase`:X(e,`xml:base`,n);break;case`xmlLang`:X(e,`xml:lang`,n);break;case`xmlSpace`:X(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=U.get(t)||t,ie(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(Ve,L(t),He,L(W(n)),Y)}}}var Q=R(`>`),Ze=R(`/>`);function Qe(e,t,n){if(t!=null){if(n!=null)throw Error(r(60));if(typeof t!=`object`||!(`__html`in t))throw Error(r(61));t=t.__html,t!=null&&e.push(L(``+t))}}function $e(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var et=R(` selected=""`),tt=R(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function nt(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),$n(r,e),r.push(Q,tt,K)):r.unshift(t.startInlineScript,Q,tt,K)}}var rt=R(`<!--F!-->`),it=R(`<!--F-->`);function at(e,t){for(var n in e.push(yt(`link`)),t)if(B.call(t,n)){var i=t[n];if(i!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`link`));default:Xe(e,n,i)}}return e.push(Ze),null}var ot=/(<\/|<)(s)(tyle)/gi;function st(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ct(e,t,n){for(var i in e.push(yt(n)),t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,n));default:Xe(e,i,a)}}return e.push(Ze),null}function lt(e,t){e.push(yt(`title`));var n=null,r=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(L(W(``+t))),Qe(e,r,n),e.push(Ct(`title`)),null}var ut=R(`<!--head-->`),dt=R(`<!--body-->`),ft=R(`<!--html-->`);function pt(e,t){e.push(yt(`script`));var n=null,r=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),typeof n==`string`&&e.push(L((``+n).replace(Ce,q))),e.push(Ct(`script`)),null}function mt(e,t,n){e.push(yt(n));var r=n=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),n}function ht(e,t,n){e.push(yt(n));var r=n=null,i;for(i in t)if(B.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Xe(e,i,a)}}return e.push(Q),Qe(e,r,n),typeof n==`string`?(e.push(L(W(n))),null):n}var gt=R(`
|
|
28
28
|
`),_t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vt=new Map;function yt(e){var t=vt.get(e);if(t===void 0){if(!_t.test(e))throw Error(r(65,e));t=R(`<`+e),vt.set(e,t)}return t}var bt=R(`<!DOCTYPE html>`);function xt(e,t,n,i,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(yt(`a`));var u=null,d=null,f;for(f in n)if(B.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?X(e,`href`,``):Xe(e,f,p);break;default:Xe(e,f,p)}}if(e.push(Q),Qe(e,d,u),typeof u==`string`){e.push(L(W(u)));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(yt(`select`));var h=null,g=null,_;for(_ in n)if(B.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:Xe(e,_,v)}}return e.push(Q),Qe(e,g,h),h;case`option`:var y=c.selectedValue;e.push(yt(`option`));var b=null,x=null,S=null,w=null,T;for(T in n)if(B.call(n,T)){var E=n[T];if(E!=null)switch(T){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:w=E;break;case`value`:x=E;default:Xe(e,T,E)}}if(y!=null){var D=x===null?$e(b):``+x;if(C(y)){for(var O=0;O<y.length;O++)if(``+y[O]===D){e.push(et);break}}else ``+y===D&&e.push(et)}else S&&e.push(et);return e.push(Q),Qe(e,w,b),b;case`textarea`:e.push(yt(`textarea`));var k=null,A=null,j=null,M;for(M in n)if(B.call(n,M)){var N=n[M];if(N!=null)switch(M){case`children`:j=N;break;case`value`:k=N;break;case`defaultValue`:A=N;break;case`dangerouslySetInnerHTML`:throw Error(r(91));default:Xe(e,M,N)}}if(k===null&&A!==null&&(k=A),e.push(Q),j!=null){if(k!=null)throw Error(r(92));if(C(j)){if(1<j.length)throw Error(r(93));k=``+j[0]}k=``+j}return typeof k==`string`&&k[0]===`
|
|
29
29
|
`&&e.push(gt),k!==null&&e.push(L(W(``+k))),null;case`input`:e.push(yt(`input`));var P=null,F=null,I=null,R=null,z=null,ee=null,V=null,ne=null,re=null,H;for(H in n)if(B.call(n,H)){var U=n[H];if(U!=null)switch(H){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:P=U;break;case`formAction`:F=U;break;case`formEncType`:I=U;break;case`formMethod`:R=U;break;case`formTarget`:z=U;break;case`defaultChecked`:re=U;break;case`defaultValue`:V=U;break;case`checked`:ne=U;break;case`value`:ee=U;break;default:Xe(e,H,U)}}var ae=Ye(e,i,a,F,I,R,z,P);return ne===null?re!==null&&We(e,`checked`,re):We(e,`checked`,ne),ee===null?V!==null&&Xe(e,`value`,V):Xe(e,`value`,ee),e.push(Ze),ae?.forEach(Ke,e),null;case`button`:e.push(yt(`button`));var oe=null,G=null,se=null,le=null,ue=null,de=null,fe=null,me;for(me in n)if(B.call(n,me)){var he=n[me];if(he!=null)switch(me){case`children`:oe=he;break;case`dangerouslySetInnerHTML`:G=he;break;case`name`:se=he;break;case`formAction`:le=he;break;case`formEncType`:ue=he;break;case`formMethod`:de=he;break;case`formTarget`:fe=he;break;default:Xe(e,me,he)}}var K=Ye(e,i,a,le,ue,de,fe,se);if(e.push(Q),K?.forEach(Ke,e),Qe(e,G,oe),typeof oe==`string`){e.push(L(W(oe)));var ge=null}else ge=oe;return ge;case`form`:e.push(yt(`form`));var _e=null,ve=null,ye=null,be=null,xe=null,Se=null,Ce;for(Ce in n)if(B.call(n,Ce)){var q=n[Ce];if(q!=null)switch(Ce){case`children`:_e=q;break;case`dangerouslySetInnerHTML`:ve=q;break;case`action`:ye=q;break;case`encType`:be=q;break;case`method`:xe=q;break;case`target`:Se=q;break;default:Xe(e,Ce,q)}}var J=null,we=null;if(typeof ye==`function`){var Te=Je(i,ye);Te===null?(e.push(Ve,L(`action`),He,Ge,Y),Se=xe=be=ye=null,nt(i,a)):(ye=Te.action||``,be=Te.encType,xe=Te.method,Se=Te.target,J=Te.data,we=Te.name)}if(ye!=null&&Xe(e,`action`,ye),be!=null&&Xe(e,`encType`,be),xe!=null&&Xe(e,`method`,xe),Se!=null&&Xe(e,`target`,Se),e.push(Q),we!==null&&(e.push(Z),X(e,`name`,we),e.push(Ze),J?.forEach(Ke,e)),Qe(e,ve,_e),typeof _e==`string`){e.push(L(W(_e)));var Ee=null}else Ee=_e;return Ee;case`menuitem`:for(var De in e.push(yt(`menuitem`)),n)if(B.call(n,De)){var Oe=n[De];if(Oe!=null)switch(De){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:Xe(e,De,Oe)}}return e.push(Q),null;case`object`:e.push(yt(`object`));var ke=null,Ae=null,je;for(je in n)if(B.call(n,je)){var Me=n[je];if(Me!=null)switch(je){case`children`:ke=Me;break;case`dangerouslySetInnerHTML`:Ae=Me;break;case`data`:var Ne=ce(``+Me);if(Ne===``)break;e.push(Ve,L(`data`),He,L(W(Ne)),Y);break;default:Xe(e,je,Me)}}if(e.push(Q),Qe(e,Ae,ke),typeof ke==`string`){e.push(L(W(ke)));var Fe=null}else Fe=ke;return Fe;case`title`:var Ie=c.tagScope&1,Le=c.tagScope&4;if(c.insertionMode===4||Ie||n.itemProp!=null)var Re=lt(e,n);else Le?Re=null:(lt(a.hoistableChunks,n),Re=void 0);return Re;case`link`:var ze=c.tagScope&1,Ue=c.tagScope&4,qe=n.rel,tt=n.href,rt=n.precedence;if(c.insertionMode===4||ze||n.itemProp!=null||typeof qe!=`string`||typeof tt!=`string`||tt===``){at(e,n);var it=null}else if(n.rel===`stylesheet`)if(typeof rt!=`string`||n.disabled!=null||n.onLoad||n.onError)it=at(e,n);else{var _t=a.styles.get(rt),vt=i.styleResources.hasOwnProperty(tt)?i.styleResources[tt]:void 0;if(vt!==null){i.styleResources[tt]=null,_t||(_t={precedence:L(W(rt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(rt,_t));var xt={state:0,props:te({},n,{"data-precedence":n.precedence,precedence:null})};if(vt){vt.length===2&&mr(xt.props,vt);var St=a.preloads.stylesheets.get(tt);St&&0<St.length?St.length=0:xt.state=1}_t.sheets.set(tt,xt),s&&s.stylesheets.add(xt)}else if(_t){var wt=_t.sheets.get(tt);wt&&s&&s.stylesheets.add(wt)}l&&e.push(Pe),it=null}else n.onLoad||n.onError?it=at(e,n):(l&&e.push(Pe),it=Ue?null:at(a.hoistableChunks,n));return it;case`script`:var Tt=c.tagScope&1,Et=n.async;if(typeof n.src!=`string`||!n.src||!Et||typeof Et==`function`||typeof Et==`symbol`||n.onLoad||n.onError||c.insertionMode===4||Tt||n.itemProp!=null)var Dt=pt(e,n);else{var Ot=n.src;if(n.type===`module`)var kt=i.moduleScriptResources,At=a.preloads.moduleScripts;else kt=i.scriptResources,At=a.preloads.scripts;var jt=kt.hasOwnProperty(Ot)?kt[Ot]:void 0;if(jt!==null){kt[Ot]=null;var Mt=n;if(jt){jt.length===2&&(Mt=te({},n),mr(Mt,jt));var Nt=At.get(Ot);Nt&&(Nt.length=0)}var Pt=[];a.scripts.add(Pt),pt(Pt,Mt)}l&&e.push(Pe),Dt=null}return Dt;case`style`:var Ft=c.tagScope&1,It=n.precedence,Lt=n.href,Rt=n.nonce;if(c.insertionMode===4||Ft||n.itemProp!=null||typeof It!=`string`||typeof Lt!=`string`||Lt===``){e.push(yt(`style`));var zt=null,Bt=null,Vt;for(Vt in n)if(B.call(n,Vt)){var Ht=n[Vt];if(Ht!=null)switch(Vt){case`children`:zt=Ht;break;case`dangerouslySetInnerHTML`:Bt=Ht;break;default:Xe(e,Vt,Ht)}}e.push(Q);var Ut=Array.isArray(zt)?2>zt.length?zt[0]:null:zt;typeof Ut!=`function`&&typeof Ut!=`symbol`&&Ut!=null&&e.push(L((``+Ut).replace(ot,st))),Qe(e,Bt,zt),e.push(Ct(`style`));var Wt=null}else{var Gt=a.styles.get(It);if((i.styleResources.hasOwnProperty(Lt)?i.styleResources[Lt]:void 0)!==null){i.styleResources[Lt]=null,Gt||(Gt={precedence:L(W(It)),rules:[],hrefs:[],sheets:new Map},a.styles.set(It,Gt));var $=a.nonce.style;if(!$||$===Rt){Gt.hrefs.push(L(W(Lt)));var Kt=Gt.rules,qt=null,Jt=null,Yt;for(Yt in n)if(B.call(n,Yt)){var Xt=n[Yt];if(Xt!=null)switch(Yt){case`children`:qt=Xt;break;case`dangerouslySetInnerHTML`:Jt=Xt}}var Zt=Array.isArray(qt)?2>qt.length?qt[0]:null:qt;typeof Zt!=`function`&&typeof Zt!=`symbol`&&Zt!=null&&Kt.push(L((``+Zt).replace(ot,st))),Qe(Kt,Jt,qt)}}Gt&&s&&s.styles.add(Gt),l&&e.push(Pe),Wt=void 0}return Wt;case`meta`:var Qt=c.tagScope&1,$t=c.tagScope&4;if(c.insertionMode===4||Qt||n.itemProp!=null)var en=ct(e,n,`meta`);else l&&e.push(Pe),en=$t?null:typeof n.charSet==`string`?ct(a.charsetChunks,n,`meta`):n.name===`viewport`?ct(a.viewportChunks,n,`meta`):ct(a.hoistableChunks,n,`meta`);return en;case`listing`:case`pre`:e.push(yt(t));var tn=null,nn=null,rn;for(rn in n)if(B.call(n,rn)){var an=n[rn];if(an!=null)switch(rn){case`children`:tn=an;break;case`dangerouslySetInnerHTML`:nn=an;break;default:Xe(e,rn,an)}}if(e.push(Q),nn!=null){if(tn!=null)throw Error(r(60));if(typeof nn!=`object`||!(`__html`in nn))throw Error(r(61));var on=nn.__html;on!=null&&(typeof on==`string`&&0<on.length&&on[0]===`
|
|
30
30
|
`?e.push(gt,L(on)):e.push(L(``+on)))}return typeof tn==`string`&&tn[0]===`
|
|
@@ -50,7 +50,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
50
50
|
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
|
51
51
|
`+e;break a}n=Ai(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Ai(`SuspenseList`);case f:return Ai(`Suspense`)}return``}function Pi(e,t){return(500<t.byteSize||Cr(t.contentState))&&t.contentPreamble===null}function Fi(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`%c%s%c `+e[0],`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``):e.splice(0,0,`%c%s%c`,`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``),e.unshift(console),t=wr.apply(console.error,e),t()}else console.error(e);return null}function Ii(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=i===void 0?Fi:i,this.onPostpone=l===void 0?Hr:l,this.onAllReady=a===void 0?Hr:a,this.onShellReady=o===void 0?Hr:o,this.onShellError=s===void 0?Hr:s,this.onFatalError=c===void 0?Hr:c,this.formState=u===void 0?null:u}function Li(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Ii(t,n,r,i,a,o,s,c,l,u,d),n=Ki(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Wi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Ir,null,null),qi(e),t.pingedTasks.push(e),t}function Ri(e,t,n,r,i,a,o,s,c,l,u){return e=Li(e,t,n,r,i,a,o,s,c,l,u,void 0),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}function zi(e,t,n,r,i,a,o,s,c){return n=new Ii(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,a,o,s,c,null),n.nextSegmentId=t.nextSegmentId,typeof t.replaySlots==`number`?(r=Ki(n,0,null,t.rootFormatContext,!1,!1),r.parentFlushed=!0,e=Wi(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Ir,null,null),qi(e),n.pingedTasks.push(e),n):(e=Gi(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Ir,null,null),qi(e),n.pingedTasks.push(e),n)}function Bi(e,t,n,r,i,a,o,s,c){return e=zi(e,t,n,r,i,a,o,s,c),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}var Vi=null;function Hi(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,e.trackedPostpones!==null||e.status===10?A(function(){return Ta(e)}):D(function(){return Ta(e)}))}function Ui(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:or(),fallbackState:or(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&Sr(n.contentState,e)),n}function Wi(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return Hi(e,h)},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Gi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:function(){return Hi(e,m)},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Ki(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function qi(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function Ji(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function Yi(e){var t={};return e&&Object.defineProperty(t,`componentStack`,{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Ni(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
|
52
52
|
Error generating stack: `+e.message+`
|
|
53
|
-
`+e.stack}return Object.defineProperty(t,`componentStack`,{value:i}),i}}),t}function Xi(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function Zi(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,ee(e.destination,t))}function Qi(e,t){$i(e,t.next,t.hoistables)}function $i(e,t,n){for(;t!==null;){n!==null&&(Sr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Sr(a.contentState,n),wa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ea(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Pi(e,a)){r=!1;break}}r&&$i(e,t,t.hoistables)}}function ta(e){var t={pendingTasks:1,boundaries:null,hoistables:or(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function na(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=ta(c),t.treeContext=Lr(o,n,d);var p=l[d];typeof p==`number`?(oa(e,t,p,f,d),delete l[d]):ha(e,t,f,d),--c.pendingTasks===0&&Qi(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=ta(c),t.treeContext=Lr(o,n,u),ha(e,t,d,u),--c.pendingTasks===0&&Qi(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=ta(c),t.treeContext=Lr(o,n,i),ha(e,t,l,i),--c.pendingTasks===0&&Qi(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=ta(c),t.treeContext=Lr(o,n,d),p=Ki(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{ha(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Pe),p.status=1,Ca(e,t.blockedBoundary,p),--c.pendingTasks===0&&Qi(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function ra(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Yr={},Xr=t,Zr=e,Qr=n,ii=ri=0,ai=-1,oi=0,si=o,e=r(i,a);ni;)ni=!1,ii=ri=0,ai=-1,oi=0,li+=1,ei=null,e=r(i,a);return mi(),e}function ia(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(rt):c.push(it)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Lr(n,1,0),ha(e,t,r,-1),t.treeContext=n):s?ha(e,t,r,-1):sa(e,t,r,-1),t.keyPath=a}function aa(e,t,n,i,a,y){if(typeof i==`function`)if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var w in x={},a)w!==`ref`&&(x[w]=a[w]);var T=i.defaultProps;if(T)for(var E in x===a&&(x=te({},x,a)),T)x[E]===void 0&&(x[E]=T[E]);a=x,x=Dr,T=i.contextType,typeof T==`object`&&T&&(x=T._currentValue),x=new i(a,x);var D=x.state===void 0?null:x.state;if(x.updater=Fr,x.props=a,x.state=D,T={queue:[],replace:!1},x._reactInternals=T,y=i.contextType,x.context=typeof y==`object`&&y?y._currentValue:Dr,y=i.getDerivedStateFromProps,typeof y==`function`&&(y=y(a,D),D=y==null?D:te({},D,y),x.state=D),typeof i.getDerivedStateFromProps!=`function`&&typeof x.getSnapshotBeforeUpdate!=`function`&&(typeof x.UNSAFE_componentWillMount==`function`||typeof x.componentWillMount==`function`))if(i=x.state,typeof x.componentWillMount==`function`&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount==`function`&&x.UNSAFE_componentWillMount(),i!==x.state&&Fr.enqueueReplaceState(x,x.state,null),T.queue!==null&&0<T.queue.length)if(i=T.queue,y=T.replace,T.queue=null,T.replace=!1,y&&i.length===1)x.state=i[0];else{for(T=y?i[0]:x.state,D=!0,y=y?1:0;y<i.length;y++)E=i[y],E=typeof E==`function`?E.call(x,T,a,void 0):E,E!=null&&(D?(D=!1,T=te({},T,E)):te(T,E));x.state=T}else T.queue=null;if(i=x.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a}else{if(i=ra(e,t,n,i,a,void 0),e.status===12)throw null;ia(e,t,n,i,ri!==0,ii,ai)}else if(typeof i==`string`)if(x=t.blockedSegment,x===null)x=a.children,T=t.formatContext,D=t.keyPath,t.formatContext=Ae(T,i,a),t.keyPath=n,ha(e,t,x,-1),t.formatContext=T,t.keyPath=D;else{if(D=xt(x.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,x.lastPushedText),x.lastPushedText=!1,T=t.formatContext,y=t.keyPath,t.keyPath=n,(t.formatContext=Ae(T,i,a)).insertionMode===3){n=Ki(e,0,null,t.formatContext,!1,!1),x.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,ha(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Pe),n.status=1,Ca(e,t.blockedBoundary,n)}finally{t.blockedSegment=x}}else ha(e,t,D,-1);t.formatContext=T,t.keyPath=y;a:{switch(t=x.chunks,e=e.resumableState,i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=T.insertionMode){e.hasBody=!0;break a}break;case`html`:if(T.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=T.insertionMode)break a}t.push(Ct(i))}x.lastPushedText=!1}else{switch(i){case v:case s:case c:case o:i=t.keyPath,t.keyPath=n,sa(e,t,a.children,-1),t.keyPath=i;return;case _:i=t.blockedSegment,i===null?a.mode!==`hidden`&&(i=t.keyPath,t.keyPath=n,ha(e,t,a.children,-1),t.keyPath=i):a.mode!==`hidden`&&(i.chunks.push(kt),i.lastPushedText=!1,x=t.keyPath,t.keyPath=n,ha(e,t,a.children,-1),t.keyPath=x,i.chunks.push(At),i.lastPushedText=!1);return;case p:a:{if(i=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(C(i)){na(e,t,n,i,a);break a}if((x=S(i))&&(x=x.call(i))){if(T=x.next(),!T.done){do T=x.next();while(!T.done);na(e,t,n,i,a)}break a}}a===`together`?(a=t.keyPath,x=t.row,T=t.row=ta(null),T.boundaries=[],T.together=!0,t.keyPath=n,sa(e,t,i,-1),--T.pendingTasks===0&&Qi(e,T),t.keyPath=a,t.row=x,x!==null&&0<T.pendingTasks&&(x.pendingTasks++,T.next=x)):(a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a)}return;case b:case g:throw Error(r(343));case f:a:if(t.replay!==null){i=t.keyPath,x=t.formatContext,T=t.row,t.keyPath=n,t.formatContext=Ne(e.resumableState,x),t.row=null,n=a.children;try{ha(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=x,t.row=T}}else{i=t.keyPath,y=t.formatContext;var O=t.row;E=t.blockedBoundary,w=t.blockedPreamble;var k=t.hoistableState,A=t.blockedSegment,j=a.fallback;a=a.children;var M=new Set,N=2>t.formatContext.insertionMode?Ui(e,t.row,M,De(),De()):Ui(e,t.row,M,null,null);e.trackedPostpones!==null&&(N.trackedContentKeyPath=n);var P=Ki(e,A.chunks.length,N,t.formatContext,!1,!1);A.children.push(P),A.lastPushedText=!1;var F=Ki(e,0,null,t.formatContext,!1,!1);if(F.parentFlushed=!0,e.trackedPostpones!==null){x=t.componentStack,T=[n[0],`Suspense Fallback`,n[2]],D=[T[1],T[2],[],null],e.trackedPostpones.workingMap.set(T,D),N.trackedFallbackNode=D,t.blockedSegment=P,t.blockedPreamble=N.fallbackPreamble,t.keyPath=T,t.formatContext=Me(e.resumableState,y),t.componentStack=Ji(x),P.status=6;try{ha(e,t,j,-1),P.lastPushedText&&P.textEmbedded&&P.chunks.push(Pe),P.status=1,Ca(e,E,P)}catch(t){throw P.status=e.status===12?3:4,t}finally{t.blockedSegment=A,t.blockedPreamble=w,t.keyPath=i,t.formatContext=y}t=Wi(e,null,a,-1,N,F,N.contentPreamble,N.contentState,t.abortSet,n,Ne(e.resumableState,t.formatContext),t.context,t.treeContext,null,x),qi(t),e.pingedTasks.push(t)}else{t.blockedBoundary=N,t.blockedPreamble=N.contentPreamble,t.hoistableState=N.contentState,t.blockedSegment=F,t.keyPath=n,t.formatContext=Ne(e.resumableState,y),t.row=null,F.status=6;try{if(ha(e,t,a,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(Pe),F.status=1,Ca(e,N,F),Sa(N,F),N.pendingTasks===0&&N.status===0){if(N.status=1,!Pi(e,N)){O!==null&&--O.pendingTasks===0&&Qi(e,O),e.pendingRootTasks===0&&t.blockedPreamble&&Oa(e);break a}}else O!==null&&O.together&&ea(e,O)}catch(n){N.status=4,e.status===12?(F.status=3,x=e.fatalError):(F.status=4,x=n),T=Yi(t.componentStack),D=Xi(e,x,T),N.errorDigest=D,fa(e,N)}finally{t.blockedBoundary=E,t.blockedPreamble=w,t.hoistableState=k,t.blockedSegment=A,t.keyPath=i,t.formatContext=y,t.row=O}t=Wi(e,null,j,-1,E,P,N.fallbackPreamble,N.fallbackState,M,[n[0],`Suspense Fallback`,n[2]],Me(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Ji(t.componentStack)),qi(t),e.pingedTasks.push(t)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a)for(A in x={},a)A!==`ref`&&(x[A]=a[A]);else x=a;i=ra(e,t,n,i.render,x,y),ia(e,t,n,i,ri!==0,ii,ai);return;case m:aa(e,t,n,i.type,a,y);return;case u:if(T=a.children,x=t.keyPath,a=a.value,D=i._currentValue,i._currentValue=a,y=Or,Or=i={parent:y,depth:y===null?0:y.depth+1,context:i,parentValue:D,value:a},t.context=i,t.keyPath=n,sa(e,t,T,-1),e=Or,e===null)throw Error(r(403));e.context._currentValue=e.parentValue,e=Or=e.parent,t.context=e,t.keyPath=x;return;case l:a=a.children,i=a(i._context._currentValue),a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a;return;case h:if(x=i._init,i=x(i._payload),e.status===12)throw null;aa(e,t,n,i,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function oa(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Ki(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,ha(e,t,r,i),s.status=1,Ca(e,o,s),o===null?e.completedRootSegment=s:(Sa(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function sa(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?oa(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,qi(t),ca(e,t),t.componentStack=n)}function ca(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=Er(s),m=c??(o===-1?0:o);if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2];p=_[3],m=t.node,t.replay={nodes:v,slots:p,pendingTasks:1};try{if(aa(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Ur||typeof r.then==`function`))throw t.node===m?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,l=Yi(t.componentStack),c=e,e=t.blockedBoundary,s=r,l=Xi(c,s,l),_a(c,e,v,p,s,l)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,Er(s)||`Unknown`));b:{g=void 0,s=_[5],d=_[2],p=_[3],m=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,w=t.replay,T=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=2>t.formatContext.insertionMode?Ui(e,t.row,k,De(),De()):Ui(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=Ne(e.resumableState,b),t.row=null,t.replay={nodes:d,slots:p,pendingTasks:1};try{if(ha(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=Yi(t.componentStack),g=Xi(e,n,v),l.errorDigest=g,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=T,t.hoistableState=E,t.replay=w,t.keyPath=y,t.formatContext=b,t.row=x}v=Gi(e,null,{nodes:m,slots:_,pendingTasks:0},O,-1,T,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],Me(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Ji(t.componentStack)),qi(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else aa(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.status===12)throw null;sa(e,t,n,o);return}if(C(n)){la(e,t,n,o);return}if((v=S(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);la(e,t,l,o)}return}if(typeof n.then==`function`)return t.thenableState=null,sa(e,t,Ci(n),o);if(n.$$typeof===u)return sa(e,t,n._currentValue,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=Fe(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=Fe(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function la(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(la(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Ur||typeof r.then==`function`))throw r;t.replay.pendingTasks--,n=Yi(t.componentStack);var u=t.blockedBoundary,d=r;n=Xi(e,d,n),_a(e,u,i,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=Lr(o,s,i),u=c[i],typeof u==`number`?(oa(e,t,u,l,i),delete c[i]):ha(e,t,l,i);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)i=n[c],t.treeContext=Lr(o,s,c),ha(e,t,i,c);t.treeContext=o,t.keyPath=a}function ua(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(r(486));var i=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),Va(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function da(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=ua(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],Va(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Va(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function fa(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function pa(e,t,n){return Gi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ma(e,t,n){var r=t.blockedSegment,i=Ki(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Wi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ha(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return sa(e,t,n,r)}catch(u){if(mi(),n=u===Ur?Kr():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Ur?pi():null,e=pa(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Pr(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Ur?pi():null,n=pa(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Pr(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return sa(e,t,n,r)}catch(r){if(mi(),l.children.length=u,l.chunks.length=d,n=r===Ur?Kr():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Ur?pi():null,e=ma(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Pr(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Ur?pi():null,l=ma(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Pr(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Pr(a),n}function ga(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,wa(this,t,e.row,n))}function _a(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)_a(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Ui(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function va(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=Yi(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Xi(t,n,a),da(t,r,e,i),wa(t,null,e.row,i)):(Xi(t,n,a),Zi(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Xi(t,n,a),_a(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&ba(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return Xi(t,n,a),da(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return va(e,t,n)}),r.fallbackAbortableTasks.clear(),wa(t,r,e.row,i);r.status=4,i=Xi(t,n,a),r.status=4,r.errorDigest=i,fa(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&Qi(t,i),r.fallbackAbortableTasks.forEach(function(e){return va(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Qi(t,e),t.allPendingTasks--,t.allPendingTasks===0&&xa(t)}function ya(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=hr(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=pe,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:pe;else break b}}r(a?{Link:a}:{})}}}catch(t){Xi(e,t,{})}}function ba(e){e.trackedPostpones===null&&ya(e,!0),e.trackedPostpones===null&&Oa(e),e.onShellError=Hr,e=e.onShellReady,e()}function xa(e){ya(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),Oa(e),e=e.onAllReady,e()}function Sa(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Sa(e,n)}else e.completedSegments.push(t)}function Ca(e,t,n){if(z!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function wa(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?Qi(e,n):n.together&&ea(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&ba(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Sa(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&Sr(n.hoistables,t.contentState),Pi(e,t)||(t.fallbackAbortableTasks.forEach(ga,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Qi(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&Oa(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];ua(e,n,o),wa(e,o,null,null)}}--t.pendingTasks===0&&Qi(e,t)}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Sa(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ea(e,t);e.allPendingTasks===0&&xa(e)}function Ta(e){if(e.status!==14&&e.status!==13){var t=Or,n=le.H;le.H=Ti;var i=le.A;le.A=Di;var a=Vi;Vi=e;var o=Ei;Ei=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Pr(l.context);try{if(typeof l.replay.slots==`number`?oa(f,l,l.replay.slots,l.node,l.childIndex):ca(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),wa(f,l.blockedBoundary,l.row,null)}catch(e){mi();var p=e===Ur?Kr():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Ur?pi():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=Yi(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=Xi(g,v,h),_a(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&ba(f),f.allPendingTasks--,f.allPendingTasks===0&&xa(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Pr(l.context);var x=g.children.length,S=g.chunks.length;try{ca(u,l),g.lastPushedText&&g.textEmbedded&&g.chunks.push(Pe),l.abortSet.delete(l),g.status=1,Ca(u,l.blockedBoundary,g),wa(u,l.blockedBoundary,l.row,g)}catch(e){mi(),g.children.length=x,g.chunks.length=S;var C=e===Ur?Kr():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=Yi(l.componentStack);l.abortSet.delete(l),Xi(u,C,T),da(u,w,l,g),wa(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Ur?pi():null;var E=l.ping;C.then(E,E)}else{var D=Yi(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&Qi(u,k),u.allPendingTasks--,f=Xi(u,C,D),O===null)Zi(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,fa(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&Qi(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&Oa(u)}u.allPendingTasks===0&&xa(u)}}}}s.splice(0,c),e.destination!==null&&Ia(e,e.destination)}catch(t){Xi(e,t,{}),Zi(e,t)}finally{Ei=o,le.H=n,le.A=i,n===Ti&&Pr(t),Vi=a}}}function Ea(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Da(e,t.children[i],n)||r;return r}function Da(e,t,n){var i=t.boundary;if(i===null)return Ea(e,t,n);var a=i.contentPreamble,o=i.fallbackPreamble;if(a===null||o===null)return!1;switch(i.status){case 1:if(wt(e.renderState,a),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return Ea(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return wt(e.renderState,o),Ea(e,t,n);default:return!0}}function Oa(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=Da(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function ka(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,N(t,Dt),N(t,e.placeholderPrefix),e=L(i.toString(16)),N(t,e),P(t,Ot);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)N(t,o[s]);a=ja(e,t,a,i)}for(;s<o.length-1;s++)N(t,o[s]);return s<o.length&&(a=P(t,o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Aa=0;function ja(e,t,n,i){var a=n.boundary;if(a===null)return ka(e,t,n,i);if(a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&Qi(e,o),a=a.errorDigest,P(t,Pt),N(t,It),a&&(N(t,Rt),N(t,L(W(a))),N(t,Lt)),P(t,zt),ka(e,t,n,i)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Bt(t,e.renderState,a.rootSegmentID),i&&Sr(i,a.fallbackState),ka(e,t,n,i);else if(!Fa&&Pi(e,a)&&(Aa+a.byteSize>e.progressiveChunkSize||Cr(a.contentState)))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Bt(t,e.renderState,a.rootSegmentID),ka(e,t,n,i);else{if(Aa+=a.byteSize,i&&Sr(i,a.contentState),n=a.row,n!==null&&Pi(e,a)&&--n.pendingTasks===0&&Qi(e,n),P(t,jt),n=a.completedSegments,n.length!==1)throw Error(r(391));ja(e,t,n[0],i)}return P(t,Ft)}function Ma(e,t,n,r){return cn(t,e.renderState,n.parentFormatContext,n.id),ja(e,t,n,r),ln(t,n.parentFormatContext)}function Na(e,t,n){Aa=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)Pa(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Pi(e,n)&&--r.pendingTasks===0&&Qi(e,r),Bn(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,N(t,e.startInlineScript),N(t,Q),a?(!(r.instructions&4)&&(r.instructions|=4,N(t,Sn)),!(r.instructions&2)&&(r.instructions|=2,N(t,mn)),r.instructions&8?N(t,_n):(r.instructions|=8,N(t,gn))):(!(r.instructions&2)&&(r.instructions|=2,N(t,mn)),N(t,hn)),r=L(i.toString(16)),N(t,e.boundaryPrefix),N(t,r),N(t,vn),N(t,e.segmentPrefix),N(t,r),a?(N(t,yn),ir(t,n)):N(t,bn),n=P(t,xn),Tt(t,e)&&n}function Pa(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Ma(e,t,i,a)}return o===n.rootSegmentID?Ma(e,t,i,a):(Ma(e,t,i,a),n=e.resumableState,e=e.renderState,N(t,e.startInlineScript),N(t,Q),n.instructions&1?N(t,dn):(n.instructions|=1,N(t,un)),N(t,e.segmentPrefix),o=L(o.toString(16)),N(t,o),N(t,fn),N(t,e.placeholderPrefix),N(t,o),t=P(t,pn),t)}var Fa=!1;function Ia(e,t){j=new Uint8Array(2048),M=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Aa=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)N(t,c[u]);if(l)for(u=0;u<l.length;u++)N(t,l[u]);else N(t,yt(`head`)),N(t,Q)}else if(l)for(u=0;u<l.length;u++)N(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)N(t,d[u]);d.length=0,o.preconnects.forEach(Vn,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)N(t,f[u]);f.length=0,o.fontPreloads.forEach(Vn,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Vn,t),o.highImagePreloads.clear(),me=o,o.styles.forEach(Yn,t),me=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)N(t,p[u]);p.length=0,o.bootstrapScripts.forEach(Vn,t),o.scripts.forEach(Vn,t),o.scripts.clear(),o.bulkPreloads.forEach(Vn,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)N(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)ja(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&N(t,Ct(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)N(t,v[i]);ja(e,t,r,null),e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,N(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;N(t,Qn),N(t,L(W(x))),N(t,Y)}N(t,Q),N(t,Et),P(t,K)}}Tt(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)N(t,C[r]);C.length=0,S.preconnects.forEach(Vn,t),S.preconnects.clear(),S.fontPreloads.forEach(Vn,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(Vn,t),S.highImagePreloads.clear(),S.styles.forEach(Zn,t),S.scripts.forEach(Vn,t),S.scripts.clear(),S.bulkPreloads.forEach(Vn,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)N(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;N(S,O.startInlineScript),N(S,Q),D.instructions&4?N(S,wn):(D.instructions|=4,N(S,Cn)),N(S,O.boundaryPrefix),N(S,L(k.toString(16))),N(S,Tn),A&&(N(S,En),N(S,L(kn(A||``))));var I=P(S,Dn);if(!I){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!Na(e,t,R[n])){e.destination=null,n++,R.splice(0,n);return}R.splice(0,n),F(t),j=new Uint8Array(2048),M=0,Fa=!0;var z=e.partialBoundaries;for(n=0;n<z.length;n++){var ee=z[n];a:{T=e,E=t,Aa=ee.byteSize;var te=ee.completedSegments;for(I=0;I<te.length;I++)if(!Pa(T,E,ee,te[I])){I++,te.splice(0,I);var B=!1;break a}te.splice(0,I);var V=ee.row;V!==null&&V.together&&ee.pendingTasks===1&&(V.pendingTasks===1?$i(T,V,V.hoistables):V.pendingTasks--),B=Bn(E,ee.contentState,T.renderState)}if(!B){e.destination=null,n++,z.splice(0,n);return}}z.splice(0,n),Fa=!1;var ne=e.completedBoundaries;for(n=0;n<ne.length;n++)if(!Na(e,t,ne[n])){e.destination=null,n++,ne.splice(0,n);return}ne.splice(0,n)}}finally{Fa=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&N(t,Ct(`body`)),n.hasHtml&&N(t,Ct(`html`)),F(t),e.status=14,t.close(),e.destination=null):F(t)}}function La(e){e.flushScheduled=e.destination!==null,A(function(){return Ta(e)}),D(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&ya(e,e.pendingRootTasks===0)})}function Ra(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,D(function(){var t=e.destination;t?Ia(e,t):e.flushScheduled=!1}))}function za(e,t){if(e.status===13)e.status=14,ee(t,e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Ia(e,t)}catch(t){Xi(e,t,{}),Zi(e,t)}}}function Ba(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return va(t,e,i)}),n.clear()}e.destination!==null&&Ia(e,e.destination)}catch(t){Xi(e,t,{}),Zi(e,t)}}function Va(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Va(i,t[0],n)),i[2].push(e)}}function Ha(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;if(e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var a=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:a.resets.font},i.dnsResources=a.resets.dns,i.connectResources=a.resets.connect,i.imageResources=a.resets.image,i.styleResources=a.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=0}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Ua(){var e=t.version;if(e!==`19.2.4`)throw Error(r(527,e,`19.2.4`))}Ua(),Ua(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=Ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Ri(e,o,Te(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),ke(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(s,e)},cancel:function(e){s.destination=null,Ba(s,e)}},{highWaterMark:0});e={postponed:Ha(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)Ba(s,c.reason);else{var l=function(){Ba(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}La(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=Ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Li(e,l,Te(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),ke(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(u,e)},cancel:function(e){u.destination=null,Ba(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Ba(u,d.reason);else{var f=function(){Ba(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}La(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=zi(e,t,Te(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(c,e)},cancel:function(e){c.destination=null,Ba(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)Ba(c,l.reason);else{var u=function(){Ba(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}La(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Bi(e,t,Te(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(a,e)},cancel:function(e){a.destination=null,Ba(a,e)}},{highWaterMark:0});e={postponed:Ha(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)Ba(a,o.reason);else{var s=function(){Ba(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}La(a)})},e.version=`19.2.4`})),p=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function n(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function r(e){return typeof e!=`object`||!e?null:(e=Kn&&e[Kn]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e){return e=Object.prototype.toString.call(e),e.slice(8,e.length-1)}function a(e){var t=JSON.stringify(e);return`"`+e+`"`===t?e:t}function o(e){switch(typeof e){case`string`:return JSON.stringify(10>=e.length?e:e.slice(0,10)+`...`);case`object`:return qn(e)?`[...]`:e!==null&&e.$$typeof===Xn?`client`:(e=i(e),e===`Object`?`{...}`:e);case`function`:return e.$$typeof===Xn?`client`:(e=e.displayName||e.name)?`function `+e:`function`;default:return String(e)}}function s(e){if(typeof e==`string`)return e;switch(e){case Ln:return`Suspense`;case Rn:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case In:return s(e.render);case zn:return s(e.type);case Bn:var t=e._payload;e=e._init;try{return s(e(t))}catch{}}return``}function c(e,t){var n=i(e);if(n!==`Object`&&n!==`Array`)return n;var r=-1,l=0;if(qn(e))if(Yn.has(e)){var u=Yn.get(e);n=`<`+s(u)+`>`;for(var d=0;d<e.length;d++){var f=e[d];f=typeof f==`string`?f:typeof f==`object`&&f?`{`+c(f)+`}`:`{`+o(f)+`}`,``+d===t?(r=n.length,l=f.length,n+=f):n=15>f.length&&40>n.length+f.length?n+f:n+`{...}`}n+=`</`+s(u)+`>`}else{for(n=`[`,u=0;u<e.length;u++)0<u&&(n+=`, `),d=e[u],d=typeof d==`object`&&d?c(d):o(d),``+u===t?(r=n.length,l=d.length,n+=d):n=10>d.length&&40>n.length+d.length?n+d:n+`...`;n+=`]`}else if(e.$$typeof===kn)n=`<`+s(e.type)+`/>`;else{if(e.$$typeof===Xn)return`client`;if(Jn.has(e)){for(n=Jn.get(e),n=`<`+(s(n)||`...`),u=Object.keys(e),d=0;d<u.length;d++){n+=` `,f=u[d],n+=a(f)+`=`;var p=e[f],m=f===t&&typeof p==`object`&&p?c(p):o(p);typeof p!=`string`&&(m=`{`+m+`}`),f===t?(r=n.length,l=m.length,n+=m):n=10>m.length&&40>n.length+m.length?n+m:n+`...`}n+=`>`}else{for(n=`{`,u=Object.keys(e),d=0;d<u.length;d++)0<d&&(n+=`, `),f=u[d],n+=a(f)+`: `,p=e[f],p=typeof p==`object`&&p?c(p):o(p),f===t?(r=n.length,l=p.length,n+=p):n=10>p.length&&40>n.length+p.length?n+p:n+`...`;n+=`}`}}return t===void 0?n:-1<r&&0<l?(e=` `.repeat(r)+`^`.repeat(l),`
|
|
53
|
+
`+e.stack}return Object.defineProperty(t,`componentStack`,{value:i}),i}}),t}function Xi(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function Zi(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,ee(e.destination,t))}function Qi(e,t){$i(e,t.next,t.hoistables)}function $i(e,t,n){for(;t!==null;){n!==null&&(Sr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Sr(a.contentState,n),wa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function ea(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Pi(e,a)){r=!1;break}}r&&$i(e,t,t.hoistables)}}function ta(e){var t={pendingTasks:1,boundaries:null,hoistables:or(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function na(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=ta(c),t.treeContext=Lr(o,n,d);var p=l[d];typeof p==`number`?(oa(e,t,p,f,d),delete l[d]):ha(e,t,f,d),--c.pendingTasks===0&&Qi(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=ta(c),t.treeContext=Lr(o,n,u),ha(e,t,d,u),--c.pendingTasks===0&&Qi(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=ta(c),t.treeContext=Lr(o,n,i),ha(e,t,l,i),--c.pendingTasks===0&&Qi(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=ta(c),t.treeContext=Lr(o,n,d),p=Ki(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{ha(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Pe),p.status=1,Ca(e,t.blockedBoundary,p),--c.pendingTasks===0&&Qi(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function ra(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Yr={},Xr=t,Zr=e,Qr=n,ii=ri=0,ai=-1,oi=0,si=o,e=r(i,a);ni;)ni=!1,ii=ri=0,ai=-1,oi=0,li+=1,ei=null,e=r(i,a);return mi(),e}function ia(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(rt):c.push(it)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Lr(n,1,0),ha(e,t,r,-1),t.treeContext=n):s?ha(e,t,r,-1):sa(e,t,r,-1),t.keyPath=a}function aa(e,t,n,i,a,y){if(typeof i==`function`)if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var w in x={},a)w!==`ref`&&(x[w]=a[w]);var T=i.defaultProps;if(T)for(var E in x===a&&(x=te({},x,a)),T)x[E]===void 0&&(x[E]=T[E]);a=x,x=Dr,T=i.contextType,typeof T==`object`&&T&&(x=T._currentValue),x=new i(a,x);var D=x.state===void 0?null:x.state;if(x.updater=Fr,x.props=a,x.state=D,T={queue:[],replace:!1},x._reactInternals=T,y=i.contextType,x.context=typeof y==`object`&&y?y._currentValue:Dr,y=i.getDerivedStateFromProps,typeof y==`function`&&(y=y(a,D),D=y==null?D:te({},D,y),x.state=D),typeof i.getDerivedStateFromProps!=`function`&&typeof x.getSnapshotBeforeUpdate!=`function`&&(typeof x.UNSAFE_componentWillMount==`function`||typeof x.componentWillMount==`function`))if(i=x.state,typeof x.componentWillMount==`function`&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount==`function`&&x.UNSAFE_componentWillMount(),i!==x.state&&Fr.enqueueReplaceState(x,x.state,null),T.queue!==null&&0<T.queue.length)if(i=T.queue,y=T.replace,T.queue=null,T.replace=!1,y&&i.length===1)x.state=i[0];else{for(T=y?i[0]:x.state,D=!0,y=y?1:0;y<i.length;y++)E=i[y],E=typeof E==`function`?E.call(x,T,a,void 0):E,E!=null&&(D?(D=!1,T=te({},T,E)):te(T,E));x.state=T}else T.queue=null;if(i=x.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a}else{if(i=ra(e,t,n,i,a,void 0),e.status===12)throw null;ia(e,t,n,i,ri!==0,ii,ai)}else if(typeof i==`string`)if(x=t.blockedSegment,x===null)x=a.children,T=t.formatContext,D=t.keyPath,t.formatContext=Ae(T,i,a),t.keyPath=n,ha(e,t,x,-1),t.formatContext=T,t.keyPath=D;else{if(D=xt(x.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,x.lastPushedText),x.lastPushedText=!1,T=t.formatContext,y=t.keyPath,t.keyPath=n,(t.formatContext=Ae(T,i,a)).insertionMode===3){n=Ki(e,0,null,t.formatContext,!1,!1),x.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,ha(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Pe),n.status=1,Ca(e,t.blockedBoundary,n)}finally{t.blockedSegment=x}}else ha(e,t,D,-1);t.formatContext=T,t.keyPath=y;a:{switch(t=x.chunks,e=e.resumableState,i){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=T.insertionMode){e.hasBody=!0;break a}break;case`html`:if(T.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=T.insertionMode)break a}t.push(Ct(i))}x.lastPushedText=!1}else{switch(i){case v:case s:case c:case o:i=t.keyPath,t.keyPath=n,sa(e,t,a.children,-1),t.keyPath=i;return;case _:i=t.blockedSegment,i===null?a.mode!==`hidden`&&(i=t.keyPath,t.keyPath=n,ha(e,t,a.children,-1),t.keyPath=i):a.mode!==`hidden`&&(i.chunks.push(kt),i.lastPushedText=!1,x=t.keyPath,t.keyPath=n,ha(e,t,a.children,-1),t.keyPath=x,i.chunks.push(At),i.lastPushedText=!1);return;case p:a:{if(i=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(C(i)){na(e,t,n,i,a);break a}if((x=S(i))&&(x=x.call(i))){if(T=x.next(),!T.done){do T=x.next();while(!T.done);na(e,t,n,i,a)}break a}}a===`together`?(a=t.keyPath,x=t.row,T=t.row=ta(null),T.boundaries=[],T.together=!0,t.keyPath=n,sa(e,t,i,-1),--T.pendingTasks===0&&Qi(e,T),t.keyPath=a,t.row=x,x!==null&&0<T.pendingTasks&&(x.pendingTasks++,T.next=x)):(a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a)}return;case b:case g:throw Error(r(343));case f:a:if(t.replay!==null){i=t.keyPath,x=t.formatContext,T=t.row,t.keyPath=n,t.formatContext=Ne(e.resumableState,x),t.row=null,n=a.children;try{ha(e,t,n,-1)}finally{t.keyPath=i,t.formatContext=x,t.row=T}}else{i=t.keyPath,y=t.formatContext;var O=t.row;E=t.blockedBoundary,w=t.blockedPreamble;var k=t.hoistableState,A=t.blockedSegment,j=a.fallback;a=a.children;var M=new Set,N=2>t.formatContext.insertionMode?Ui(e,t.row,M,De(),De()):Ui(e,t.row,M,null,null);e.trackedPostpones!==null&&(N.trackedContentKeyPath=n);var P=Ki(e,A.chunks.length,N,t.formatContext,!1,!1);A.children.push(P),A.lastPushedText=!1;var F=Ki(e,0,null,t.formatContext,!1,!1);if(F.parentFlushed=!0,e.trackedPostpones!==null){x=t.componentStack,T=[n[0],`Suspense Fallback`,n[2]],D=[T[1],T[2],[],null],e.trackedPostpones.workingMap.set(T,D),N.trackedFallbackNode=D,t.blockedSegment=P,t.blockedPreamble=N.fallbackPreamble,t.keyPath=T,t.formatContext=Me(e.resumableState,y),t.componentStack=Ji(x),P.status=6;try{ha(e,t,j,-1),P.lastPushedText&&P.textEmbedded&&P.chunks.push(Pe),P.status=1,Ca(e,E,P)}catch(t){throw P.status=e.status===12?3:4,t}finally{t.blockedSegment=A,t.blockedPreamble=w,t.keyPath=i,t.formatContext=y}t=Wi(e,null,a,-1,N,F,N.contentPreamble,N.contentState,t.abortSet,n,Ne(e.resumableState,t.formatContext),t.context,t.treeContext,null,x),qi(t),e.pingedTasks.push(t)}else{t.blockedBoundary=N,t.blockedPreamble=N.contentPreamble,t.hoistableState=N.contentState,t.blockedSegment=F,t.keyPath=n,t.formatContext=Ne(e.resumableState,y),t.row=null,F.status=6;try{if(ha(e,t,a,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(Pe),F.status=1,Ca(e,N,F),Sa(N,F),N.pendingTasks===0&&N.status===0){if(N.status=1,!Pi(e,N)){O!==null&&--O.pendingTasks===0&&Qi(e,O),e.pendingRootTasks===0&&t.blockedPreamble&&Oa(e);break a}}else O!==null&&O.together&&ea(e,O)}catch(n){N.status=4,e.status===12?(F.status=3,x=e.fatalError):(F.status=4,x=n),T=Yi(t.componentStack),D=Xi(e,x,T),N.errorDigest=D,fa(e,N)}finally{t.blockedBoundary=E,t.blockedPreamble=w,t.hoistableState=k,t.blockedSegment=A,t.keyPath=i,t.formatContext=y,t.row=O}t=Wi(e,null,j,-1,E,P,N.fallbackPreamble,N.fallbackState,M,[n[0],`Suspense Fallback`,n[2]],Me(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Ji(t.componentStack)),qi(t),e.pingedTasks.push(t)}}return}if(typeof i==`object`&&i)switch(i.$$typeof){case d:if(`ref`in a)for(A in x={},a)A!==`ref`&&(x[A]=a[A]);else x=a;i=ra(e,t,n,i.render,x,y),ia(e,t,n,i,ri!==0,ii,ai);return;case m:aa(e,t,n,i.type,a,y);return;case u:if(T=a.children,x=t.keyPath,a=a.value,D=i._currentValue,i._currentValue=a,y=Or,Or=i={parent:y,depth:y===null?0:y.depth+1,context:i,parentValue:D,value:a},t.context=i,t.keyPath=n,sa(e,t,T,-1),e=Or,e===null)throw Error(r(403));e.context._currentValue=e.parentValue,e=Or=e.parent,t.context=e,t.keyPath=x;return;case l:a=a.children,i=a(i._context._currentValue),a=t.keyPath,t.keyPath=n,sa(e,t,i,-1),t.keyPath=a;return;case h:if(x=i._init,i=x(i._payload),e.status===12)throw null;aa(e,t,n,i,a,y);return}throw Error(r(130,i==null?i:typeof i,``))}}function oa(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Ki(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,ha(e,t,r,i),s.status=1,Ca(e,o,s),o===null?e.completedRootSegment=s:(Sa(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function sa(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?oa(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,qi(t),ca(e,t),t.componentStack=n)}function ca(e,t){var n=t.node,o=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case i:var s=n.type,c=n.key,l=n.props;n=l.ref;var d=n===void 0?null:n,p=Er(s),m=c??(o===-1?0:o);if(c=[t.keyPath,p,m],t.replay!==null)a:{var g=t.replay;for(o=g.nodes,n=0;n<o.length;n++){var _=o[n];if(m===_[1]){if(_.length===4){if(p!==null&&p!==_[0])throw Error(r(490,_[0],p));var v=_[2];p=_[3],m=t.node,t.replay={nodes:v,slots:p,pendingTasks:1};try{if(aa(e,t,c,s,l,d),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Ur||typeof r.then==`function`))throw t.node===m?t.replay=g:o.splice(n,1),r;t.replay.pendingTasks--,l=Yi(t.componentStack),c=e,e=t.blockedBoundary,s=r,l=Xi(c,s,l),_a(c,e,v,p,s,l)}t.replay=g}else{if(s!==f)throw Error(r(490,`Suspense`,Er(s)||`Unknown`));b:{g=void 0,s=_[5],d=_[2],p=_[3],m=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,w=t.replay,T=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=2>t.formatContext.insertionMode?Ui(e,t.row,k,De(),De()):Ui(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=Ne(e.resumableState,b),t.row=null,t.replay={nodes:d,slots:p,pendingTasks:1};try{if(ha(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=Yi(t.componentStack),g=Xi(e,n,v),l.errorDigest=g,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=T,t.hoistableState=E,t.replay=w,t.keyPath=y,t.formatContext=b,t.row=x}v=Gi(e,null,{nodes:m,slots:_,pendingTasks:0},O,-1,T,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],Me(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,Ji(t.componentStack)),qi(v),e.pingedTasks.push(v)}}o.splice(n,1);break a}}}else aa(e,t,c,s,l,d);return;case a:throw Error(r(257));case h:if(v=n._init,n=v(n._payload),e.status===12)throw null;sa(e,t,n,o);return}if(C(n)){la(e,t,n,o);return}if((v=S(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);la(e,t,l,o)}return}if(typeof n.then==`function`)return t.thenableState=null,sa(e,t,Ci(n),o);if(n.$$typeof===u)return sa(e,t,n._currentValue,o);throw o=Object.prototype.toString.call(n),Error(r(31,o===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:o))}typeof n==`string`?(o=t.blockedSegment,o!==null&&(o.lastPushedText=Fe(o.chunks,n,e.renderState,o.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(o=t.blockedSegment,o!==null&&(o.lastPushedText=Fe(o.chunks,``+n,e.renderState,o.lastPushedText)))}}function la(e,t,n,i){var a=t.keyPath;if(i!==-1&&(t.keyPath=[t.keyPath,`Fragment`,i],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===i){i=l[2],l=l[3],t.replay={nodes:i,slots:l,pendingTasks:1};try{if(la(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(r(488));t.replay.pendingTasks--}catch(r){if(typeof r==`object`&&r&&(r===Ur||typeof r.then==`function`))throw r;t.replay.pendingTasks--,n=Yi(t.componentStack);var u=t.blockedBoundary,d=r;n=Xi(e,d,n),_a(e,u,i,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(i=0;i<s;i++)l=n[i],t.treeContext=Lr(o,s,i),u=c[i],typeof u==`number`?(oa(e,t,u,l,i),delete c[i]):ha(e,t,l,i);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)i=n[c],t.treeContext=Lr(o,s,c),ha(e,t,i,c);t.treeContext=o,t.keyPath=a}function ua(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(r(486));var i=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,i,n.rootSegmentID],t.workingMap.set(e,n),Va(n,e[0],t),n):(o[4]=i,o[5]=n.rootSegmentID,o)}function da(e,t,n,i){i.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)i.id=e.nextSegmentId++,t.rootSlots=i.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=ua(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){i.id===-1&&(i.id=i.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=i.id;return}}if(i.id===-1&&(i.id=i.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=i.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],i.id],Va(n,a[0],t)):n[3]=i.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(r(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Va(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(r(491));e[n.childIndex]=i.id}}}function fa(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function pa(e,t,n){return Gi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ma(e,t,n){var r=t.blockedSegment,i=Ki(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Wi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ha(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return sa(e,t,n,r)}catch(u){if(mi(),n=u===Ur?Kr():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Ur?pi():null,e=pa(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Pr(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Ur?pi():null,n=pa(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Pr(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return sa(e,t,n,r)}catch(r){if(mi(),l.children.length=u,l.chunks.length=d,n=r===Ur?Kr():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Ur?pi():null,e=ma(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Pr(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Ur?pi():null,l=ma(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Pr(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Pr(a),n}function ga(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,wa(this,t,e.row,n))}function _a(e,t,n,i,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)_a(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Ui(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,i!==null){if(t===null)throw Error(r(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof i==`object`)for(var f in i)delete i[f]}}function va(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=Yi(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Xi(t,n,a),da(t,r,e,i),wa(t,null,e.row,i)):(Xi(t,n,a),Zi(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Xi(t,n,a),_a(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&ba(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return Xi(t,n,a),da(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return va(e,t,n)}),r.fallbackAbortableTasks.clear(),wa(t,r,e.row,i);r.status=4,i=Xi(t,n,a),r.status=4,r.errorDigest=i,fa(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&Qi(t,i),r.fallbackAbortableTasks.forEach(function(e){return va(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Qi(t,e),t.allPendingTasks--,t.allPendingTasks===0&&xa(t)}function ya(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=hr(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=pe,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:pe;else break b}}r(a?{Link:a}:{})}}}catch(t){Xi(e,t,{})}}function ba(e){e.trackedPostpones===null&&ya(e,!0),e.trackedPostpones===null&&Oa(e),e.onShellError=Hr,e=e.onShellReady,e()}function xa(e){ya(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),Oa(e),e=e.onAllReady,e()}function Sa(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Sa(e,n)}else e.completedSegments.push(t)}function Ca(e,t,n){if(z!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function wa(e,t,n,i){if(n!==null&&(--n.pendingTasks===0?Qi(e,n):n.together&&ea(e,n)),e.allPendingTasks--,t===null){if(i!==null&&i.parentFlushed){if(e.completedRootSegment!==null)throw Error(r(389));e.completedRootSegment=i}e.pendingRootTasks--,e.pendingRootTasks===0&&ba(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),i!==null&&i.parentFlushed&&(i.status===1||i.status===3)&&Sa(t,i),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&Sr(n.hoistables,t.contentState),Pi(e,t)||(t.fallbackAbortableTasks.forEach(ga,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Qi(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&Oa(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(i=a.boundaries,i!==null))for(a.boundaries=null,a=0;a<i.length;a++){var o=i[a];ua(e,n,o),wa(e,o,null,null)}}--t.pendingTasks===0&&Qi(e,t)}}else i===null||!i.parentFlushed||i.status!==1&&i.status!==3||(Sa(t,i),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&ea(e,t);e.allPendingTasks===0&&xa(e)}function Ta(e){if(e.status!==14&&e.status!==13){var t=Or,n=le.H;le.H=Ti;var i=le.A;le.A=Di;var a=Vi;Vi=e;var o=Ei;Ei=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Pr(l.context);try{if(typeof l.replay.slots==`number`?oa(f,l,l.replay.slots,l.node,l.childIndex):ca(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(r(488));l.replay.pendingTasks--,l.abortSet.delete(l),wa(f,l.blockedBoundary,l.row,null)}catch(e){mi();var p=e===Ur?Kr():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Ur?pi():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=Yi(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=Xi(g,v,h),_a(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&ba(f),f.allPendingTasks--,f.allPendingTasks===0&&xa(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Pr(l.context);var x=g.children.length,S=g.chunks.length;try{ca(u,l),g.lastPushedText&&g.textEmbedded&&g.chunks.push(Pe),l.abortSet.delete(l),g.status=1,Ca(u,l.blockedBoundary,g),wa(u,l.blockedBoundary,l.row,g)}catch(e){mi(),g.children.length=x,g.chunks.length=S;var C=e===Ur?Kr():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=Yi(l.componentStack);l.abortSet.delete(l),Xi(u,C,T),da(u,w,l,g),wa(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Ur?pi():null;var E=l.ping;C.then(E,E)}else{var D=Yi(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&Qi(u,k),u.allPendingTasks--,f=Xi(u,C,D),O===null)Zi(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,fa(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&Qi(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&Oa(u)}u.allPendingTasks===0&&xa(u)}}}}s.splice(0,c),e.destination!==null&&Ia(e,e.destination)}catch(t){Xi(e,t,{}),Zi(e,t)}finally{Ei=o,le.H=n,le.A=i,n===Ti&&Pr(t),Vi=a}}}function Ea(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Da(e,t.children[i],n)||r;return r}function Da(e,t,n){var i=t.boundary;if(i===null)return Ea(e,t,n);var a=i.contentPreamble,o=i.fallbackPreamble;if(a===null||o===null)return!1;switch(i.status){case 1:if(wt(e.renderState,a),e.byteSize+=i.byteSize,t=i.completedSegments[0],!t)throw Error(r(391));return Ea(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return wt(e.renderState,o),Ea(e,t,n);default:return!0}}function Oa(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=Da(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function ka(e,t,n,i){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return i=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,N(t,Dt),N(t,e.placeholderPrefix),e=L(i.toString(16)),N(t,e),P(t,Ot);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)N(t,o[s]);a=ja(e,t,a,i)}for(;s<o.length-1;s++)N(t,o[s]);return s<o.length&&(a=P(t,o[s])),a;case 3:return!0;default:throw Error(r(390))}}var Aa=0;function ja(e,t,n,i){var a=n.boundary;if(a===null)return ka(e,t,n,i);if(a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&Qi(e,o),a=a.errorDigest,P(t,Pt),N(t,It),a&&(N(t,Rt),N(t,L(W(a))),N(t,Lt)),P(t,zt),ka(e,t,n,i)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Bt(t,e.renderState,a.rootSegmentID),i&&Sr(i,a.fallbackState),ka(e,t,n,i);else if(!Fa&&Pi(e,a)&&(Aa+a.byteSize>e.progressiveChunkSize||Cr(a.contentState)))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Bt(t,e.renderState,a.rootSegmentID),ka(e,t,n,i);else{if(Aa+=a.byteSize,i&&Sr(i,a.contentState),n=a.row,n!==null&&Pi(e,a)&&--n.pendingTasks===0&&Qi(e,n),P(t,jt),n=a.completedSegments,n.length!==1)throw Error(r(391));ja(e,t,n[0],i)}return P(t,Ft)}function Ma(e,t,n,r){return cn(t,e.renderState,n.parentFormatContext,n.id),ja(e,t,n,r),ln(t,n.parentFormatContext)}function Na(e,t,n){Aa=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)Pa(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Pi(e,n)&&--r.pendingTasks===0&&Qi(e,r),Bn(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,N(t,e.startInlineScript),N(t,Q),a?(!(r.instructions&4)&&(r.instructions|=4,N(t,Sn)),!(r.instructions&2)&&(r.instructions|=2,N(t,mn)),r.instructions&8?N(t,_n):(r.instructions|=8,N(t,gn))):(!(r.instructions&2)&&(r.instructions|=2,N(t,mn)),N(t,hn)),r=L(i.toString(16)),N(t,e.boundaryPrefix),N(t,r),N(t,vn),N(t,e.segmentPrefix),N(t,r),a?(N(t,yn),ir(t,n)):N(t,bn),n=P(t,xn),Tt(t,e)&&n}function Pa(e,t,n,i){if(i.status===2)return!0;var a=n.contentState,o=i.id;if(o===-1){if((i.id=n.rootSegmentID)===-1)throw Error(r(392));return Ma(e,t,i,a)}return o===n.rootSegmentID?Ma(e,t,i,a):(Ma(e,t,i,a),n=e.resumableState,e=e.renderState,N(t,e.startInlineScript),N(t,Q),n.instructions&1?N(t,dn):(n.instructions|=1,N(t,un)),N(t,e.segmentPrefix),o=L(o.toString(16)),N(t,o),N(t,fn),N(t,e.placeholderPrefix),N(t,o),t=P(t,pn),t)}var Fa=!1;function Ia(e,t){j=new Uint8Array(2048),M=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Aa=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)N(t,c[u]);if(l)for(u=0;u<l.length;u++)N(t,l[u]);else N(t,yt(`head`)),N(t,Q)}else if(l)for(u=0;u<l.length;u++)N(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)N(t,d[u]);d.length=0,o.preconnects.forEach(Vn,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)N(t,f[u]);f.length=0,o.fontPreloads.forEach(Vn,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Vn,t),o.highImagePreloads.clear(),me=o,o.styles.forEach(Yn,t),me=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)N(t,p[u]);p.length=0,o.bootstrapScripts.forEach(Vn,t),o.scripts.forEach(Vn,t),o.scripts.clear(),o.bulkPreloads.forEach(Vn,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)N(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)ja(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&N(t,Ct(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)N(t,v[i]);ja(e,t,r,null),e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,N(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;N(t,Qn),N(t,L(W(x))),N(t,Y)}N(t,Q),N(t,Et),P(t,K)}}Tt(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)N(t,C[r]);C.length=0,S.preconnects.forEach(Vn,t),S.preconnects.clear(),S.fontPreloads.forEach(Vn,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(Vn,t),S.highImagePreloads.clear(),S.styles.forEach(Zn,t),S.scripts.forEach(Vn,t),S.scripts.clear(),S.bulkPreloads.forEach(Vn,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)N(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;N(S,O.startInlineScript),N(S,Q),D.instructions&4?N(S,wn):(D.instructions|=4,N(S,Cn)),N(S,O.boundaryPrefix),N(S,L(k.toString(16))),N(S,Tn),A&&(N(S,En),N(S,L(kn(A||``))));var I=P(S,Dn);if(!I){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var R=e.completedBoundaries;for(n=0;n<R.length;n++)if(!Na(e,t,R[n])){e.destination=null,n++,R.splice(0,n);return}R.splice(0,n),F(t),j=new Uint8Array(2048),M=0,Fa=!0;var z=e.partialBoundaries;for(n=0;n<z.length;n++){var ee=z[n];a:{T=e,E=t,Aa=ee.byteSize;var te=ee.completedSegments;for(I=0;I<te.length;I++)if(!Pa(T,E,ee,te[I])){I++,te.splice(0,I);var B=!1;break a}te.splice(0,I);var V=ee.row;V!==null&&V.together&&ee.pendingTasks===1&&(V.pendingTasks===1?$i(T,V,V.hoistables):V.pendingTasks--),B=Bn(E,ee.contentState,T.renderState)}if(!B){e.destination=null,n++,z.splice(0,n);return}}z.splice(0,n),Fa=!1;var ne=e.completedBoundaries;for(n=0;n<ne.length;n++)if(!Na(e,t,ne[n])){e.destination=null,n++,ne.splice(0,n);return}ne.splice(0,n)}}finally{Fa=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&N(t,Ct(`body`)),n.hasHtml&&N(t,Ct(`html`)),F(t),e.status=14,t.close(),e.destination=null):F(t)}}function La(e){e.flushScheduled=e.destination!==null,A(function(){return Ta(e)}),D(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&ya(e,e.pendingRootTasks===0)})}function Ra(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,D(function(){var t=e.destination;t?Ia(e,t):e.flushScheduled=!1}))}function za(e,t){if(e.status===13)e.status=14,ee(t,e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Ia(e,t)}catch(t){Xi(e,t,{}),Zi(e,t)}}}function Ba(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var i=t===void 0?Error(r(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(r(530)):t;e.fatalError=i,n.forEach(function(t){return va(t,e,i)}),n.clear()}e.destination!==null&&Ia(e,e.destination)}catch(t){Xi(e,t,{}),Zi(e,t)}}function Va(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Va(i,t[0],n)),i[2].push(e)}}function Ha(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;if(e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var a=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:a.resets.font},i.dnsResources=a.resets.dns,i.connectResources=a.resets.connect,i.imageResources=a.resets.image,i.styleResources=a.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=0}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Ua(){var e=t.version;if(e!==`19.2.4`)throw Error(r(527,e,`19.2.4`))}Ua(),Ua(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=Ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Ri(e,o,Te(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),ke(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(s,e)},cancel:function(e){s.destination=null,Ba(s,e)}},{highWaterMark:0});e={postponed:Ha(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)Ba(s,c.reason);else{var l=function(){Ba(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}La(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=Ee(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Li(e,l,Te(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),ke(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(u,e)},cancel:function(e){u.destination=null,Ba(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Ba(u,d.reason);else{var f=function(){Ba(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}La(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=zi(e,t,Te(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(c,e)},cancel:function(e){c.destination=null,Ba(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)Ba(c,l.reason);else{var u=function(){Ba(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}La(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Bi(e,t,Te(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){za(a,e)},cancel:function(e){a.destination=null,Ba(a,e)}},{highWaterMark:0});e={postponed:Ha(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)Ba(a,o.reason);else{var s=function(){Ba(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}La(a)})},e.version=`19.2.4`})),m=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function n(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function r(e){return typeof e!=`object`||!e?null:(e=Kn&&e[Kn]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e){return e=Object.prototype.toString.call(e),e.slice(8,e.length-1)}function a(e){var t=JSON.stringify(e);return`"`+e+`"`===t?e:t}function o(e){switch(typeof e){case`string`:return JSON.stringify(10>=e.length?e:e.slice(0,10)+`...`);case`object`:return qn(e)?`[...]`:e!==null&&e.$$typeof===Xn?`client`:(e=i(e),e===`Object`?`{...}`:e);case`function`:return e.$$typeof===Xn?`client`:(e=e.displayName||e.name)?`function `+e:`function`;default:return String(e)}}function s(e){if(typeof e==`string`)return e;switch(e){case Ln:return`Suspense`;case Rn:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case In:return s(e.render);case zn:return s(e.type);case Bn:var t=e._payload;e=e._init;try{return s(e(t))}catch{}}return``}function c(e,t){var n=i(e);if(n!==`Object`&&n!==`Array`)return n;var r=-1,l=0;if(qn(e))if(Yn.has(e)){var u=Yn.get(e);n=`<`+s(u)+`>`;for(var d=0;d<e.length;d++){var f=e[d];f=typeof f==`string`?f:typeof f==`object`&&f?`{`+c(f)+`}`:`{`+o(f)+`}`,``+d===t?(r=n.length,l=f.length,n+=f):n=15>f.length&&40>n.length+f.length?n+f:n+`{...}`}n+=`</`+s(u)+`>`}else{for(n=`[`,u=0;u<e.length;u++)0<u&&(n+=`, `),d=e[u],d=typeof d==`object`&&d?c(d):o(d),``+u===t?(r=n.length,l=d.length,n+=d):n=10>d.length&&40>n.length+d.length?n+d:n+`...`;n+=`]`}else if(e.$$typeof===kn)n=`<`+s(e.type)+`/>`;else{if(e.$$typeof===Xn)return`client`;if(Jn.has(e)){for(n=Jn.get(e),n=`<`+(s(n)||`...`),u=Object.keys(e),d=0;d<u.length;d++){n+=` `,f=u[d],n+=a(f)+`=`;var p=e[f],m=f===t&&typeof p==`object`&&p?c(p):o(p);typeof p!=`string`&&(m=`{`+m+`}`),f===t?(r=n.length,l=m.length,n+=m):n=10>m.length&&40>n.length+m.length?n+m:n+`...`}n+=`>`}else{for(n=`{`,u=Object.keys(e),d=0;d<u.length;d++)0<d&&(n+=`, `),f=u[d],n+=a(f)+`: `,p=e[f],p=typeof p==`object`&&p?c(p):o(p),f===t?(r=n.length,l=p.length,n+=p):n=10>p.length&&40>n.length+p.length?n+p:n+`...`;n+=`}`}}return t===void 0?n:-1<r&&0<l?(e=` `.repeat(r)+`^`.repeat(l),`
|
|
54
54
|
`+n+`
|
|
55
55
|
`+e):`
|
|
56
56
|
`+n}function l(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}function u(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function d(e){try{return f(e),!1}catch{return!0}}function f(e){return``+e}function p(e,t){if(d(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,u(e)),f(e)}function m(e,t){if(d(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,u(e)),f(e)}function h(e){if(d(e))return console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,u(e)),f(e)}function g(e){return Qn.call(tr,e)?!0:Qn.call(er,e)?!1:$n.test(e)?tr[e]=!0:(er[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function _(e,t){ir[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function v(e,t){if(Qn.call(or,t)&&or[t])return!0;if(cr.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=ar.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),or[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),or[t]=!0}if(sr.test(t)){if(e=t.toLowerCase(),e=ar.hasOwnProperty(e)?e:null,e==null)return or[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),or[t]=!0)}return!0}function y(e,t){var n=[],r;for(r in t)v(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function b(e,t,n,r){if(Qn.call(dr,t)&&dr[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),dr[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),dr[t]=!0;if(fr.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),dr[t]=!0}else if(fr.test(t))return pr.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),dr[t]=!0;if(mr.test(t)||hr.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dr[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dr[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),dr[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),dr[t]=!0;if(ur.hasOwnProperty(i)){if(i=ur[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),dr[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),dr[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
@@ -115,7 +115,7 @@ Check the top-level render call using <`+i+`>.`),i=``,r!=null&&a!==r&&(a=null,r.
|
|
|
115
115
|
`,Ei=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Di=new Map,Oi=new Map,ki=`requestAnimationFrame(function(){$RT=performance.now()});`,Ai=`<template id="`,ji=`"></template>`,Mi=`<!--$-->`,Ni=`<!--$?--><template id="`,Pi=`"></template>`,Fi=`<!--$!-->`,Ii=`<!--/$-->`,Li=`<template`,Ri=`"`,zi=` data-dgst="`,Bi=` data-msg="`,Vi=` data-stck="`,Hi=` data-cstck="`,Ui=`></template>`,Wi=`<div hidden id="`,Gi=`">`,Ki=`</div>`,qi=`<svg aria-hidden="true" style="display:none" id="`,Ji=`">`,Yi=`</svg>`,Xi=`<math aria-hidden="true" style="display:none" id="`,Zi=`">`,Qi=`</math>`,$i=`<table hidden id="`,ea=`">`,ta=`</table>`,na=`<table hidden><tbody id="`,ra=`">`,ia=`</tbody></table>`,aa=`<table hidden><tr id="`,oa=`">`,sa=`</tr></table>`,ca=`<table hidden><colgroup id="`,la=`">`,ua=`</colgroup></table>`,da=`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`,fa=`$RS("`,pa=`","`,ma=`")<\/script>`,ha=`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
116
116
|
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`,ga=`$RC("`,_a=`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
117
117
|
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
118
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`,va=`$RR("`,ya=`","`,ba=`",`,xa=`"`,Sa=`)<\/script>`,Ca=`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`,wa=`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`,Ta=`$RX("`,Ea=`"`,Da=`,`,Oa=`)<\/script>`,ka=/[<\u2028\u2029]/g,Aa=/[&><\u2028\u2029]/g,ja=` media="not all" data-precedence="`,Ma=`" data-href="`,Na=`">`,Pa=`</style>`,Fa=!1,Ia=!0,La=[],Ra=` data-precedence="`,za=`" data-href="`,Ba=` `,Va=`">`,Ha=`</style>`,Ua=` id="`,Wa=`[`,Ga=`,[`,Ka=`,`,qa=`]`,Ja=0,Ya=1,Xa=2,Za=3,Qa=/[<>\r\n]/g,$a=/["';,\r\n]/g,eo=``,to=Function.prototype.bind,no=Symbol.for(`react.client.reference`),ro={};Object.freeze(ro);var io={},ao=null,oo={},so={},co=new Set,lo=new Set,uo=new Set,fo=new Set,po=new Set,mo=new Set,ho=new Set,go=new Set,_o=new Set,vo={enqueueSetState:function(e,t,n){var r=e._reactInternals;r.queue===null?We(e,`setState`):(r.queue.push(t),n!=null&&Ue(n))},enqueueReplaceState:function(e,t,n){e=e._reactInternals,e.replace=!0,e.queue=[t],n!=null&&Ue(n)},enqueueForceUpdate:function(e,t){e._reactInternals.queue===null?We(e,`forceUpdate`):t!=null&&Ue(t)}},yo={id:1,overflow:``},bo=Math.clz32?Math.clz32:Ge,xo=Math.log,So=Math.LN2,Co=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),wo=null,To=typeof Object.is==`function`?Object.is:Je,Eo=null,Do=null,Oo=null,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0,Io=-1,Lo=0,Ro=null,zo=null,Bo=0,Vo=!1,Ho,Uo={readContext:$e,use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ct(e);if(e.$$typeof===Fn)return $e(e)}throw Error(`An unsupported type was passed to use(): `+String(e))},useContext:function(e){return Ho=`useContext`,Ye(),e._currentValue2},useMemo:nt,useReducer:tt,useRef:function(e){Eo=Ye(),jo=Q();var t=jo.memoizedState;return t===null?(e={current:e},Object.seal(e),jo.memoizedState=e):t},useState:function(e){return Ho=`useState`,tt(et,e)},useInsertionEffect:Z,useLayoutEffect:Z,useCallback:function(e,t){return nt(function(){return e},t)},useImperativeHandle:Z,useEffect:Z,useDebugValue:Z,useDeferredValue:function(e,t){return Ye(),t===void 0?e:t},useTransition:function(){return Ye(),[!1,at]},useId:function(){var e=Do.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-bo(e)-1)).toString(32)+t;var n=Wo;if(n===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return t=Po++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()},useOptimistic:function(e){return Ye(),[e,ot]},useActionState:st,useFormState:st,useHostTransitionStatus:function(){return Ye(),Ar},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=Wn;return t},useCacheRefresh:function(){return lt},useEffectEvent:function(){return it}},Wo=null,Go=null,Ko={getCacheForType:function(){throw Error(`Not implemented.`)},cacheSignal:function(){throw Error(`Not implemented.`)},getOwner:function(){return Go===null?null:Go.componentStack}},qo=0,Jo,Yo,Xo,Zo,Qo,$o,es;ut.__reactDisabledLog=!0;var ts,ns,rs=!1,is=new(typeof WeakMap==`function`?WeakMap:Map),as={react_stack_bottom_frame:function(e,t,n){return e(t,n)}},os=as.react_stack_bottom_frame.bind(as),ss={react_stack_bottom_frame:function(e){return e.render()}},cs=ss.react_stack_bottom_frame.bind(ss),ls={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},us=ls.react_stack_bottom_frame.bind(ls),ds=0;if(typeof performance==`object`&&typeof performance.now==`function`)var fs=performance,ps=function(){return fs.now()};else{var ms=Date;ps=function(){return ms.now()}}var hs=4,gs=0,_s=1,vs=2,ys=3,bs=4,xs=5,Ss=14,Cs=null,ws={},Ts={},Es={},Ds={},Os=!1,ks=!1,As=!1,js=0,Ms=!1;e.renderToStaticMarkup=function(e,t){return En(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return En(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.4`})()})),
|
|
118
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`,va=`$RR("`,ya=`","`,ba=`",`,xa=`"`,Sa=`)<\/script>`,Ca=`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`,wa=`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`,Ta=`$RX("`,Ea=`"`,Da=`,`,Oa=`)<\/script>`,ka=/[<\u2028\u2029]/g,Aa=/[&><\u2028\u2029]/g,ja=` media="not all" data-precedence="`,Ma=`" data-href="`,Na=`">`,Pa=`</style>`,Fa=!1,Ia=!0,La=[],Ra=` data-precedence="`,za=`" data-href="`,Ba=` `,Va=`">`,Ha=`</style>`,Ua=` id="`,Wa=`[`,Ga=`,[`,Ka=`,`,qa=`]`,Ja=0,Ya=1,Xa=2,Za=3,Qa=/[<>\r\n]/g,$a=/["';,\r\n]/g,eo=``,to=Function.prototype.bind,no=Symbol.for(`react.client.reference`),ro={};Object.freeze(ro);var io={},ao=null,oo={},so={},co=new Set,lo=new Set,uo=new Set,fo=new Set,po=new Set,mo=new Set,ho=new Set,go=new Set,_o=new Set,vo={enqueueSetState:function(e,t,n){var r=e._reactInternals;r.queue===null?We(e,`setState`):(r.queue.push(t),n!=null&&Ue(n))},enqueueReplaceState:function(e,t,n){e=e._reactInternals,e.replace=!0,e.queue=[t],n!=null&&Ue(n)},enqueueForceUpdate:function(e,t){e._reactInternals.queue===null?We(e,`forceUpdate`):t!=null&&Ue(t)}},yo={id:1,overflow:``},bo=Math.clz32?Math.clz32:Ge,xo=Math.log,So=Math.LN2,Co=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),wo=null,To=typeof Object.is==`function`?Object.is:Je,Eo=null,Do=null,Oo=null,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0,Io=-1,Lo=0,Ro=null,zo=null,Bo=0,Vo=!1,Ho,Uo={readContext:$e,use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ct(e);if(e.$$typeof===Fn)return $e(e)}throw Error(`An unsupported type was passed to use(): `+String(e))},useContext:function(e){return Ho=`useContext`,Ye(),e._currentValue2},useMemo:nt,useReducer:tt,useRef:function(e){Eo=Ye(),jo=Q();var t=jo.memoizedState;return t===null?(e={current:e},Object.seal(e),jo.memoizedState=e):t},useState:function(e){return Ho=`useState`,tt(et,e)},useInsertionEffect:Z,useLayoutEffect:Z,useCallback:function(e,t){return nt(function(){return e},t)},useImperativeHandle:Z,useEffect:Z,useDebugValue:Z,useDeferredValue:function(e,t){return Ye(),t===void 0?e:t},useTransition:function(){return Ye(),[!1,at]},useId:function(){var e=Do.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-bo(e)-1)).toString(32)+t;var n=Wo;if(n===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return t=Po++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()},useOptimistic:function(e){return Ye(),[e,ot]},useActionState:st,useFormState:st,useHostTransitionStatus:function(){return Ye(),Ar},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=Wn;return t},useCacheRefresh:function(){return lt},useEffectEvent:function(){return it}},Wo=null,Go=null,Ko={getCacheForType:function(){throw Error(`Not implemented.`)},cacheSignal:function(){throw Error(`Not implemented.`)},getOwner:function(){return Go===null?null:Go.componentStack}},qo=0,Jo,Yo,Xo,Zo,Qo,$o,es;ut.__reactDisabledLog=!0;var ts,ns,rs=!1,is=new(typeof WeakMap==`function`?WeakMap:Map),as={react_stack_bottom_frame:function(e,t,n){return e(t,n)}},os=as.react_stack_bottom_frame.bind(as),ss={react_stack_bottom_frame:function(e){return e.render()}},cs=ss.react_stack_bottom_frame.bind(ss),ls={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},us=ls.react_stack_bottom_frame.bind(ls),ds=0;if(typeof performance==`object`&&typeof performance.now==`function`)var fs=performance,ps=function(){return fs.now()};else{var ms=Date;ps=function(){return ms.now()}}var hs=4,gs=0,_s=1,vs=2,ys=3,bs=4,xs=5,Ss=14,Cs=null,ws={},Ts={},Es={},Ds={},Os=!1,ks=!1,As=!1,js=0,Ms=!1;e.renderToStaticMarkup=function(e,t){return En(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return En(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.4`})()})),h=l((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function n(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function r(e){return typeof e!=`object`||!e?null:(e=cr&&e[cr]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e){return e=Object.prototype.toString.call(e),e.slice(8,e.length-1)}function a(e){var t=JSON.stringify(e);return`"`+e+`"`===t?e:t}function o(e){switch(typeof e){case`string`:return JSON.stringify(10>=e.length?e:e.slice(0,10)+`...`);case`object`:return lr(e)?`[...]`:e!==null&&e.$$typeof===fr?`client`:(e=i(e),e===`Object`?`{...}`:e);case`function`:return e.$$typeof===fr?`client`:(e=e.displayName||e.name)?`function `+e:`function`;default:return String(e)}}function s(e){if(typeof e==`string`)return e;switch(e){case $n:return`Suspense`;case er:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case Qn:return s(e.render);case tr:return s(e.type);case nr:var t=e._payload;e=e._init;try{return s(e(t))}catch{}}return``}function c(e,t){var n=i(e);if(n!==`Object`&&n!==`Array`)return n;var r=-1,l=0;if(lr(e))if(dr.has(e)){var u=dr.get(e);n=`<`+s(u)+`>`;for(var d=0;d<e.length;d++){var f=e[d];f=typeof f==`string`?f:typeof f==`object`&&f?`{`+c(f)+`}`:`{`+o(f)+`}`,``+d===t?(r=n.length,l=f.length,n+=f):n=15>f.length&&40>n.length+f.length?n+f:n+`{...}`}n+=`</`+s(u)+`>`}else{for(n=`[`,u=0;u<e.length;u++)0<u&&(n+=`, `),d=e[u],d=typeof d==`object`&&d?c(d):o(d),``+u===t?(r=n.length,l=d.length,n+=d):n=10>d.length&&40>n.length+d.length?n+d:n+`...`;n+=`]`}else if(e.$$typeof===Gn)n=`<`+s(e.type)+`/>`;else{if(e.$$typeof===fr)return`client`;if(ur.has(e)){for(n=ur.get(e),n=`<`+(s(n)||`...`),u=Object.keys(e),d=0;d<u.length;d++){n+=` `,f=u[d],n+=a(f)+`=`;var p=e[f],m=f===t&&typeof p==`object`&&p?c(p):o(p);typeof p!=`string`&&(m=`{`+m+`}`),f===t?(r=n.length,l=m.length,n+=m):n=10>m.length&&40>n.length+m.length?n+m:n+`...`}n+=`>`}else{for(n=`{`,u=Object.keys(e),d=0;d<u.length;d++)0<d&&(n+=`, `),f=u[d],n+=a(f)+`: `,p=e[f],p=typeof p==`object`&&p?c(p):o(p),f===t?(r=n.length,l=p.length,n+=p):n=10>p.length&&40>n.length+p.length?n+p:n+`...`;n+=`}`}}return t===void 0?n:-1<r&&0<l?(e=` `.repeat(r)+`^`.repeat(l),`
|
|
119
119
|
`+n+`
|
|
120
120
|
`+e):`
|
|
121
121
|
`+n}function l(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}function u(e){mr.push(e),pr.port2.postMessage(null)}function d(e){setTimeout(function(){throw e})}function f(e,t){if(t.byteLength!==0)if(2048<t.byteLength)0<vr&&(e.enqueue(new Uint8Array(_r.buffer,0,vr)),_r=new Uint8Array(2048),vr=0),e.enqueue(t);else{var n=_r.length-vr;n<t.byteLength&&(n===0?e.enqueue(_r):(_r.set(t.subarray(0,n),vr),e.enqueue(_r),t=t.subarray(n)),_r=new Uint8Array(2048),vr=0),_r.set(t,vr),vr+=t.byteLength}}function p(e,t){return f(e,t),!0}function m(e){_r&&0<vr&&(e.enqueue(new Uint8Array(_r.buffer,0,vr)),_r=null,vr=0)}function h(e){return yr.encode(e)}function g(e){return e=yr.encode(e),2048<e.byteLength&&console.error(`precomputed chunks must be smaller than the view size configured for this host. This is a bug in React.`),e}function _(e){return e.byteLength}function v(e,t){typeof e.error==`function`?e.error(t):e.close()}function y(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function b(e){try{return x(e),!1}catch{return!0}}function x(e){return``+e}function S(e,t){if(b(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,y(e)),x(e)}function C(e,t){if(b(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,y(e)),x(e)}function w(e){if(b(e))return console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,y(e)),x(e)}function T(e){return xr.call(wr,e)?!0:xr.call(Cr,e)?!1:Sr.test(e)?wr[e]=!0:(Cr[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function E(e,t){Dr[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function D(e,t){if(xr.call(kr,t)&&kr[t])return!0;if(jr.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Or.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),kr[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),kr[t]=!0}if(Ar.test(t)){if(e=t.toLowerCase(),e=Or.hasOwnProperty(e)?e:null,e==null)return kr[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),kr[t]=!0)}return!0}function O(e,t){var n=[],r;for(r in t)D(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function k(e,t,n,r){if(xr.call(Pr,t)&&Pr[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Pr[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Pr[t]=!0;if(Fr.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Pr[t]=!0}else if(Fr.test(t))return Ir.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Pr[t]=!0;if(Lr.test(t)||Rr.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Pr[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Pr[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Pr[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Pr[t]=!0;if(Nr.hasOwnProperty(i)){if(i=Nr[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Pr[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Pr[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
@@ -186,7 +186,7 @@ H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}f
|
|
|
186
186
|
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
187
187
|
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var oo=g(`$RC("`),so=g(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
188
188
|
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
189
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),co=g(`$RR("`),lo=g(`","`),uo=g(`",`),fo=g(`"`),po=g(`)<\/script>`);g(`<template data-rci="" data-bid="`),g(`<template data-rri="" data-bid="`),g(`" data-sid="`),g(`" data-sty="`);var mo=g(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),ho=g(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),go=g(`$RX("`),_o=g(`"`),vo=g(`,`),yo=g(`)<\/script>`);g(`<template data-rxi="" data-bid="`),g(`" data-dgst="`),g(`" data-msg="`),g(`" data-stck="`),g(`" data-cstck="`);var bo=/[<\u2028\u2029]/g,xo=/[&><\u2028\u2029]/g,So=g(` media="not all" data-precedence="`),Co=g(`" data-href="`),wo=g(`">`),To=g(`</style>`),Eo=!1,Do=!0,Oo=[],ko=g(` data-precedence="`),Ao=g(`" data-href="`),jo=g(` `),Mo=g(`">`),No=g(`</style>`);g(`<link rel="expect" href="#`),g(`" blocking="render"/>`);var Po=g(` id="`),Fo=g(`[`),Io=g(`,[`),Lo=g(`,`),Ro=g(`]`),zo=0,Bo=1,Vo=2,Ho=3,Uo=/[<>\r\n]/g,Wo=/["';,\r\n]/g,Go=Function.prototype.bind,Ko=Symbol.for(`react.client.reference`),qo={};Object.freeze(qo);var Jo={},Yo=null,Xo={},Zo={},Qo=new Set,$o=new Set,es=new Set,ts=new Set,ns=new Set,rs=new Set,is=new Set,as=new Set,os=new Set,ss={enqueueSetState:function(e,t,n){var r=e._reactInternals;r.queue===null?Qe(e,`setState`):(r.queue.push(t),n!=null&&Ze(n))},enqueueReplaceState:function(e,t,n){e=e._reactInternals,e.replace=!0,e.queue=[t],n!=null&&Ze(n)},enqueueForceUpdate:function(e,t){e._reactInternals.queue===null?Qe(e,`forceUpdate`):t!=null&&Ze(t)}},cs={id:1,overflow:``},ls=Math.clz32?Math.clz32:et,us=Math.log,ds=Math.LN2,fs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),ps=null,ms=typeof Object.is==`function`?Object.is:it,hs=null,gs=null,_s=null,vs=null,ys=null,bs=null,xs=!1,Ss=!1,Cs=0,ws=0,Ts=-1,Es=0,Ds=null,Os=null,ks=0,As=!1,js,Ms={readContext:ut,use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return yt(e);if(e.$$typeof===Zn)return ut(e)}throw Error(`An unsupported type was passed to use(): `+String(e))},useContext:function(e){return js=`useContext`,at(),e._currentValue},useMemo:pt,useReducer:ft,useRef:function(e){hs=at(),bs=st();var t=bs.memoizedState;return t===null?(e={current:e},Object.seal(e),bs.memoizedState=e):t},useState:function(e){return js=`useState`,ft(dt,e)},useInsertionEffect:tt,useLayoutEffect:tt,useCallback:function(e,t){return pt(function(){return e},t)},useImperativeHandle:tt,useEffect:tt,useDebugValue:tt,useDeferredValue:function(e,t){return at(),t===void 0?e:t},useTransition:function(){return at(),[!1,gt]},useId:function(){var e=gs.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-ls(e)-1)).toString(32)+t;var n=Ns;if(n===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return t=Cs++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()},useOptimistic:function(e){return at(),[e,_t]},useActionState:vt,useFormState:vt,useHostTransitionStatus:function(){return at(),$r},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=or;return t},useCacheRefresh:function(){return bt},useEffectEvent:function(){return ht}},Ns=null,Ps=null,Fs={getCacheForType:function(){throw Error(`Not implemented.`)},cacheSignal:function(){throw Error(`Not implemented.`)},getOwner:function(){return Ps===null?null:Ps.componentStack}},Is=0,Ls,Rs,zs,Bs,Vs,Hs,Us;xt.__reactDisabledLog=!0;var Ws,Gs,Ks=!1,qs=new(typeof WeakMap==`function`?WeakMap:Map),Js={react_stack_bottom_frame:function(e,t,n){return e(t,n)}},Ys=Js.react_stack_bottom_frame.bind(Js),Xs={react_stack_bottom_frame:function(e){return e.render()}},Zs=Xs.react_stack_bottom_frame.bind(Xs),Qs={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},$s=Qs.react_stack_bottom_frame.bind(Qs),ec=0;if(typeof performance==`object`&&typeof performance.now==`function`)var tc=performance,nc=function(){return tc.now()};else{var rc=Date;nc=function(){return rc.now()}}var ic=4,ac=0,oc=1,sc=2,cc=3,lc=4,uc=5,dc=14,fc=null,pc={},mc={},hc={},gc={},_c=!1,vc=!1,yc=!1,bc=0,xc=!1;Hn(),Hn(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=I(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Nt(e,o,F(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),z(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(s,e)},cancel:function(e){s.destination=null,zn(s,e)}},{highWaterMark:0});e={postponed:Vn(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)zn(s,c.reason);else{var l=function(){zn(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}In(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=I(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Mt(e,l,F(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),z(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(u,e)},cancel:function(e){u.destination=null,zn(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)zn(u,d.reason);else{var f=function(){zn(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}In(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=Pt(e,t,F(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(c,e)},cancel:function(e){c.destination=null,zn(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)zn(c,l.reason);else{var u=function(){zn(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}In(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Ft(e,t,F(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(a,e)},cancel:function(e){a.destination=null,zn(a,e)}},{highWaterMark:0});e={postponed:Vn(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)zn(a,o.reason);else{var s=function(){zn(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}In(a)})},e.version=`19.2.4`})()}))
|
|
189
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),co=g(`$RR("`),lo=g(`","`),uo=g(`",`),fo=g(`"`),po=g(`)<\/script>`);g(`<template data-rci="" data-bid="`),g(`<template data-rri="" data-bid="`),g(`" data-sid="`),g(`" data-sty="`);var mo=g(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),ho=g(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),go=g(`$RX("`),_o=g(`"`),vo=g(`,`),yo=g(`)<\/script>`);g(`<template data-rxi="" data-bid="`),g(`" data-dgst="`),g(`" data-msg="`),g(`" data-stck="`),g(`" data-cstck="`);var bo=/[<\u2028\u2029]/g,xo=/[&><\u2028\u2029]/g,So=g(` media="not all" data-precedence="`),Co=g(`" data-href="`),wo=g(`">`),To=g(`</style>`),Eo=!1,Do=!0,Oo=[],ko=g(` data-precedence="`),Ao=g(`" data-href="`),jo=g(` `),Mo=g(`">`),No=g(`</style>`);g(`<link rel="expect" href="#`),g(`" blocking="render"/>`);var Po=g(` id="`),Fo=g(`[`),Io=g(`,[`),Lo=g(`,`),Ro=g(`]`),zo=0,Bo=1,Vo=2,Ho=3,Uo=/[<>\r\n]/g,Wo=/["';,\r\n]/g,Go=Function.prototype.bind,Ko=Symbol.for(`react.client.reference`),qo={};Object.freeze(qo);var Jo={},Yo=null,Xo={},Zo={},Qo=new Set,$o=new Set,es=new Set,ts=new Set,ns=new Set,rs=new Set,is=new Set,as=new Set,os=new Set,ss={enqueueSetState:function(e,t,n){var r=e._reactInternals;r.queue===null?Qe(e,`setState`):(r.queue.push(t),n!=null&&Ze(n))},enqueueReplaceState:function(e,t,n){e=e._reactInternals,e.replace=!0,e.queue=[t],n!=null&&Ze(n)},enqueueForceUpdate:function(e,t){e._reactInternals.queue===null?Qe(e,`forceUpdate`):t!=null&&Ze(t)}},cs={id:1,overflow:``},ls=Math.clz32?Math.clz32:et,us=Math.log,ds=Math.LN2,fs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),ps=null,ms=typeof Object.is==`function`?Object.is:it,hs=null,gs=null,_s=null,vs=null,ys=null,bs=null,xs=!1,Ss=!1,Cs=0,ws=0,Ts=-1,Es=0,Ds=null,Os=null,ks=0,As=!1,js,Ms={readContext:ut,use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return yt(e);if(e.$$typeof===Zn)return ut(e)}throw Error(`An unsupported type was passed to use(): `+String(e))},useContext:function(e){return js=`useContext`,at(),e._currentValue},useMemo:pt,useReducer:ft,useRef:function(e){hs=at(),bs=st();var t=bs.memoizedState;return t===null?(e={current:e},Object.seal(e),bs.memoizedState=e):t},useState:function(e){return js=`useState`,ft(dt,e)},useInsertionEffect:tt,useLayoutEffect:tt,useCallback:function(e,t){return pt(function(){return e},t)},useImperativeHandle:tt,useEffect:tt,useDebugValue:tt,useDeferredValue:function(e,t){return at(),t===void 0?e:t},useTransition:function(){return at(),[!1,gt]},useId:function(){var e=gs.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-ls(e)-1)).toString(32)+t;var n=Ns;if(n===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return t=Cs++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()},useOptimistic:function(e){return at(),[e,_t]},useActionState:vt,useFormState:vt,useHostTransitionStatus:function(){return at(),$r},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=or;return t},useCacheRefresh:function(){return bt},useEffectEvent:function(){return ht}},Ns=null,Ps=null,Fs={getCacheForType:function(){throw Error(`Not implemented.`)},cacheSignal:function(){throw Error(`Not implemented.`)},getOwner:function(){return Ps===null?null:Ps.componentStack}},Is=0,Ls,Rs,zs,Bs,Vs,Hs,Us;xt.__reactDisabledLog=!0;var Ws,Gs,Ks=!1,qs=new(typeof WeakMap==`function`?WeakMap:Map),Js={react_stack_bottom_frame:function(e,t,n){return e(t,n)}},Ys=Js.react_stack_bottom_frame.bind(Js),Xs={react_stack_bottom_frame:function(e){return e.render()}},Zs=Xs.react_stack_bottom_frame.bind(Xs),Qs={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},$s=Qs.react_stack_bottom_frame.bind(Qs),ec=0;if(typeof performance==`object`&&typeof performance.now==`function`)var tc=performance,nc=function(){return tc.now()};else{var rc=Date;nc=function(){return rc.now()}}var ic=4,ac=0,oc=1,sc=2,cc=3,lc=4,uc=5,dc=14,fc=null,pc={},mc={},hc={},gc={},_c=!1,vc=!1,yc=!1,bc=0,xc=!1;Hn(),Hn(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=I(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Nt(e,o,F(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),z(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(s,e)},cancel:function(e){s.destination=null,zn(s,e)}},{highWaterMark:0});e={postponed:Vn(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)zn(s,c.reason);else{var l=function(){zn(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}In(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=I(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Mt(e,l,F(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),z(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(u,e)},cancel:function(e){u.destination=null,zn(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)zn(u,d.reason);else{var f=function(){zn(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}In(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=Pt(e,t,F(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(c,e)},cancel:function(e){c.destination=null,zn(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)zn(c,l.reason);else{var u=function(){zn(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}In(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Ft(e,t,F(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Rn(a,e)},cancel:function(e){a.destination=null,zn(a,e)}},{highWaterMark:0});e={postponed:Vn(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)zn(a,o.reason);else{var s=function(){zn(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}In(a)})},e.version=`19.2.4`})()})),g=d(l((e=>{var t,n;process.env.NODE_ENV===`production`?(t=f(),n=p()):(t=m(),n=h()),e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToReadableStream=n.renderToReadableStream,e.resume=n.resume}))(),1),_=function(e,t){var n=this;Object.defineProperty(this,`element`,{get(){return e?e.querySelector(`[data-boc-content]`):null},set(e){n.mainElement=e}}),Object.defineProperty(this,`mainElement`,{get(){return e},set(t){e=t,e&&(e.innerHTML=`
|
|
190
190
|
<style>
|
|
191
191
|
.boc-dark, .boc-light{ display: flex; }
|
|
192
192
|
[data-boc-left]{ display: none; }
|
|
@@ -201,114 +201,114 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
201
201
|
<div data-boc-left></div>
|
|
202
202
|
<div data-boc-right>
|
|
203
203
|
<div data-boc-content></div>
|
|
204
|
-
</div>`)}}),Object.defineProperty(this,`leftElement`,{get(){return e.querySelector(`[data-boc-left]`)}}),n.init(e,t)};
|
|
204
|
+
</div>`)}}),Object.defineProperty(this,`leftElement`,{get(){return e.querySelector(`[data-boc-left]`)}}),n.init(e,t)};_.prototype.init=function(e,t){if(e&&!this._initCalled){this._initCalled=!0,(typeof e==`string`||e instanceof String)&&(e=document.querySelector(e)),this.element=e;var n=this;if(this.config=_.mergeDeep(_._defaultConfig(t),t),this._layoutConfigs={base:{orientation:this.config.orientation,levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:this.config.assistantSeparation,subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:this.config.siblingSeparation,layout:this.config.layout,columns:this.config.columns,collapse:this.config.collapse,partnerNodeSeparation:this.config.partnerNodeSeparation}},this.config.tags)for(var r in this.config.tags){var i=this.config.tags[r];i.subTreeConfig!=null&&(this._layoutConfigs[r]={orientation:i.subTreeConfig.orientation==null?this.config.orientation:i.subTreeConfig.orientation,levelSeparation:i.subTreeConfig.levelSeparation==null?this.config.levelSeparation:i.subTreeConfig.levelSeparation,mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation==null?this.config.mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation,assistantSeparation:i.subTreeConfig.assistantSeparation==null?this.config.assistantSeparation:i.subTreeConfig.assistantSeparation,subtreeSeparation:i.subTreeConfig.subtreeSeparation==null?this.config.subtreeSeparation:i.subTreeConfig.subtreeSeparation,siblingSeparation:i.subTreeConfig.siblingSeparation==null?this.config.siblingSeparation:i.subTreeConfig.siblingSeparation,layout:i.subTreeConfig.layout==null?this.config.layout:i.subTreeConfig.layout,columns:i.subTreeConfig.columns==null?this.config.columns:i.subTreeConfig.columns,collapse:i.subTreeConfig.collapse==null?this.config.collapse:i.subTreeConfig.collapse,partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation==null?this.config.partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation,template:i.subTreeConfig.template})}this._event_id=_._guid(),_._validateConfig(this.config)&&(this._vScroll={},this.config.ui||(this.ui=_.ui),this.config.editUI?this.editUI=this.config.editUI:this.editUI=new _.editUI,this.editUI.init(this),this.config.filterUI?this.filterUI=this.config.filterUI:this.filterUI=new _.filterUI,this.filterUI.init(this),this.manager=new _.manager(this),this._ai=new _._ai(this),this.config.searchUI?this.searchUI=this.config.searchUI:this.searchUI=new _.searchUI,this.config.aiUI?this.aiUI=this.config.aiUI:this.aiUI=new _.aiUI,this.config.orgScribeUI?this.orgScribeUI=this.config.orgScribeUI:this.orgScribeUI=new _.orgScribeUI,this.config.powerPointPreviewUI?this.powerPointPreviewUI=this.config.powerPointPreviewUI:this.powerPointPreviewUI=new _.exportUI(`pptx`),this.config.pdfPreviewUI?this.pdfPreviewUI=this.config.pdfPreviewUI:this.pdfPreviewUI=new _.exportUI(`pdf`),this.config.svgPreviewUI?this.svgPreviewUI=this.config.svgPreviewUI:this.svgPreviewUI=new _.exportUI(`svg`),this.config.pngPreviewUI?this.pngPreviewUI=this.config.pngPreviewUI:this.pngPreviewUI=new _.exportUI(`png`),this.config.nodeMenuUI?this.nodeMenuUI=this.config.nodeMenuUI:this.nodeMenuUI=new _.menuUI,this.nodeMenuUI.init(this,this.config.nodeMenu),this.config.nodeCircleMenuUI?this.nodeCircleMenuUI=this.config.nodeCircleMenuUI:this.nodeCircleMenuUI=new _.circleMenuUI,this.nodeCircleMenuUI.init(this,this.config.nodeCircleMenu),this.config.nodeContextMenuUI?this.nodeContextMenuUI=this.config.nodeContextMenuUI:this.nodeContextMenuUI=new _.menuUI,this.nodeContextMenuUI.init(this,this.config.nodeContextMenu),this.config.controlsUI?this.controlsUI=this.config.controlsUI:this.controlsUI=new _.controlsUI,this.config.toolbarUI?this.toolbarUI=this.config.toolbarUI:this.toolbarUI=new _.toolbarUI,this.config.notifierUI?this.notifierUI=this.config.notifierUI:this.notifierUI=new _.notifierUI,this.notifierUI.init(this),this.config.menuUI?this.menuUI=this.config.menuUI:this.menuUI=new _.menuUI,this.menuUI.init(this,this.config.menu),this.config.xScrollUI||(this.xScrollUI=new _.xScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,_.action.xScroll)})),this.config.yScrollUI||(this.yScrollUI=new _.yScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,_.action.xScroll)})),this.config.undoRedoUI?this.undoRedoUI=this.config.undoRedoUI:this.undoRedoUI=new _.undoRedoUI,this.mainElement.classList.add(`boc-`+this.config.mode),this._gragStartedId=null,this._timeout=null,this._touch=null,this._initialized=!1,this._loaded=!1,this._moveInterval=null,this._movePosition=null,this.response=null,this.nodes=null,this.isVisible=null,this._connectorLines={x:{},y:{}},_._intersectionObserver(this.element,function(e){n.isVisible=e,_.events.publish(`visibility-change`,[n])!==!1&&_.LAZY_LOADING&&n.isVisible&&(n._loaded?n._draw(!1,_.action.update):(n._setInitialSizeIfNotSet(),n._draw(!1,_.action.init)))}),this._resizeObserver=new ResizeObserver(e=>{for(let t of e){let{width:e,height:r}=t.contentRect;n._resizeHandler(e,r)}}),this._resizeObserver.observe(this.element))}},_.prototype.load=function(e,t){var n=this;return this.config.nodes=e,this._draw(!1,_.action.init,void 0,function(){n.filterUI.update(),t&&t()}),this},_.prototype.loadXML=function(e,t){var n=_._xml2json(e);return this.load(n,t)},_.prototype.getXML=function(){return _._json2xml(this.config.nodes)},_.prototype.on=function(e,t){return _.events.on(e,t,this._event_id),this},_.prototype.removeListener=function(e,t){return _.events.remove(e,t,this._event_id)},_.prototype.draw=function(e,t,n){e??=_.action.update,this._draw(!1,e,t,n)},_.prototype._draw=function(e,t,n,r){var i=this;if(!(_.LAZY_LOADING&&!this.isVisible)){if(!_.LAZY_LOADING&&!this._initialized&&(this._setInitialSizeIfNotSet(),this.width()==0||this.height()==0)){console.error(`Cannot load the chart with size 0! If you are using the OrgChart within tabs set OrgChart.LAZY_LOADING to true! `);return}this._hideBeforeAnimationCompleted=!1;var a=t==_.action.init?null:this.getViewBox();this.manager.read(e,this.width(),this.height(),a,t,n,function(e){if(!i.notifierUI.show(e.notif)){t!=_.action.exporting&&(i.nodes=e.nodes,i.visibleNodeIds=e.visibleNodeIds,i.roots=e.roots),i._connectorLines={x:{},y:{}},i.editUI.fields=e.allFields;var a={defs:``};_.events.publish(`renderdefs`,[i,a]);var o=i.ui.defs(a.defs),s=i.getScale(e.viewBox);o+=i.ui.pointer(i.config,t,s);var c=i.getViewBox(),l=e.viewBox,a={content:o,res:e};_.events.publish(`prerender`,[i,a]),o=a.content;var u=[];if(_.RENDER_LINKS_BEFORE_NODES)for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]];_.getRootOf(f).stParent?u.push(f.id):o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);if(_.RENDER_LINKS_BEFORE_NODES&&u.includes(f.id)&&(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),f.isTreeListItem||(o+=i.ui.node(f,p,e.animations,i.config,void 0,void 0,void 0,t,s,i)),!f.min&&f.treeList){var m=function(n){if(!f.treeList.pinnedIds.includes(n.id)){var r=i._get(n.id);o+=i.ui.node(n,r,e.animations,i.config,void 0,void 0,void 0,t,s,i),o+=i.ui.expandCollapseBtn(i,n,r,i.config,i._layoutConfigs,t,s)}for(var a of n.children)m(a)},h=_.randomId();o+=`<clipPath id="treelist_${h}">
|
|
205
205
|
<rect rx="10" ry="10" x="${f.x+f.padding[3]}" y="${f.y+f.padding[0]}" width="${f.w-f.padding[1]-f.padding[3]}" height="${f.h-f.padding[2]-f.padding[0]}">
|
|
206
|
-
</clipPath><g clip-path="url(#treelist_${
|
|
206
|
+
</clipPath><g clip-path="url(#treelist_${h})"><g data-treelist-content="${f.id}" transform="matrix(1,0,0,1,0,-${f.treeList.scrollTop})">`;for(var g of f.stChildren)m(g);for(var v of f.treeList.pinnedIds){var y=i.getNode(v),b=i._get(v);o+=i.ui.node(y,b,e.animations,i.config,void 0,void 0,void 0,t,s,i,!0),o+=i.ui.expandCollapseBtn(i,y,b,i.config,i._layoutConfigs,t,s)}var{thumbHeight:x,thumbPosition:S,scrollBarDisplay:C}=_._treeListGetTumbPositionFromScrollTop(f);o+=`</g>
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
<rect style="display: ${C}" data-treelist-scroll="${f.id}" class="boc-scroll" x="${f.x+f.w-f.padding[1]-
|
|
210
|
-
<rect style="display: ${C}" data-treelist-thumb="${f.id}" class="boc-scroll-thumb" x="${f.x+f.w-f.padding[1]-
|
|
209
|
+
<rect style="display: ${C}" data-treelist-scroll="${f.id}" class="boc-scroll" x="${f.x+f.w-f.padding[1]-_.TREELIST_SCROLLBAR_WIDTH}" y="${f.y+f.padding[0]}" width="${_.TREELIST_SCROLLBAR_WIDTH}" height="${f.h-f.padding[2]-f.padding[0]}"></rect>
|
|
210
|
+
<rect style="display: ${C}" data-treelist-thumb="${f.id}" class="boc-scroll-thumb" x="${f.x+f.w-f.padding[1]-_.TREELIST_SCROLLBAR_WIDTH}" y="${S}" width="${_.TREELIST_SCROLLBAR_WIDTH}" height="${x}"></rect>
|
|
211
211
|
|
|
212
|
-
</g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(h.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(h.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===h.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===h.action.centernode||t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update)&&(l=c),t===h.action.init&&c!=null&&(l=c),t===h.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);h.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===h.action.centerNode?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update||t===h.action.init)?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),h.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){h.events.publish(`ready`,[i,e])})}},h.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},h.prototype.width=function(){return this.element.offsetWidth},h.prototype.height=function(){return this.element.offsetHeight},h.prototype.getViewBox=function(){var e=this.getSvg();return h._getViewBox(e)},h.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},h.prototype.getScale=function(e){return e||=this.getViewBox(),h.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},h.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),h.events.publish(`redraw`,[this]),e},h.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),_=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=h.randomId();g.setAttribute(`id`,y);var b={ripple:h.t(r.templateName,r.min,this.getScale()).ripple,node:r};h.events.publish(`ripple`,[this,b]),_.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),_.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),_.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),_.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),_.setAttribute(`rx`,b.ripple.radius),_.setAttribute(`ry`,b.ripple.radius),v.setAttribute(`clip-path`,`url(#`+y+`)`),v.setAttribute(`cx`,o),v.setAttribute(`cy`,s),v.setAttribute(`r`,0),v.setAttribute(`fill`,b.ripple.color),v.setAttribute(`class`,`boc-ripple`),g.appendChild(_),m.appendChild(g),m.appendChild(v),i.appendChild(m),h.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,h.anim.outPow,function(){i.removeChild(m)})}}},h.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(h.action.update,null,function(){e&&e.call(n)})})}},h.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),g=this.height(),u=m/n[2],d=g/n[3],_=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/_,n[3]/=f/_,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(g/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(h.action.update,null,function(){t&&t.call(x)})})},h.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,h.action.centerNode,{id:e,options:c},n)},h.prototype.fit=function(e){this.config.scaleInitial=h.match.boundary,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.fitIfOutside=function(e){this.config.scaleInitial=h.match.boundaryIfOutside,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+h.attr.tlbr+`r='fullScreen']`);document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=h.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=h.toolbarUI.closeFullScreenIcon))},h.prototype.getNode=function(e){return this.nodes[e]},h.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,h.action.update)},h.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,h.action.update,void 0,function(){r.getScale(),h._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,h.action.pan),n&&n()})})},h.prototype.search=function(e,t,n){return h.isNEU(t)&&(t=this.searchUI._searchFields),h.isNEU(n)&&(n=t),h._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},h.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<h.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>h.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>h.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+h.attr.link_id+`]`);if(i.length>h.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`);if(a.length>h.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`);if(o.length>h.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},h.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+h.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},h.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},h.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},h.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join(`*`),e.min=this.manager.state.min.join(`*`),e.adjustify=this.manager.state.adjustify.x+`*`+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return``},h.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},h.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,g=s-l+this.config.padding*2,_=f/m,v=p/g,y=_>v?v:_,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,g=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+h.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case h.orientation.right:case h.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case h.orientation.left:case h.orientation.bottom_left:case h.orientation.top_left:case h.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)g=(s+l)/2-x/2;else switch(g=-(x/2-(s-l)/2),g>-this.config.padding&&(g=-this.config.padding),this.config.orientation){case h.orientation.bottom:case h.orientation.bottom_left:g=-(x/2-(l-s)/2),g<this.config.padding-x&&(g=this.config.padding-x);break;case h.orientation.left:case h.orientation.right:g=r.y-x/2+h.manager._getNodeWidth(r,this.config)/2;break}var S=[m,g,b,x];a[0]!==S[0]||a[1]!==S[1]?h.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(h.action.update,void 0,t)}):t&&t()}},h.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!h.isNEU(e.pid)&&this.getNode(e.pid)},h.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),h.events.removeForEventId(this._event_id),this.element.innerHTML=null},h.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},h.prototype._canUpdateLink=h.prototype.canUpdateLink,h.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&h.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,h.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},h.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},h.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&h.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,h.action.update,null,function(){t&&t()}),!0)},h.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},h.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},h.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&h.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,h.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},h.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!h.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},h.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,h.action.update,void 0,t)},h.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)h.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!h.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!h.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!h.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},h.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!h.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},h.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},h.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},h.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},h===void 0&&(h={}),h.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=h._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var g=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],_=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+g+` `+_);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];for(var C=``,S=0;S<x.length;S++)C+=parseInt(x[S])+`px `;e[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},h.anim={},h.anim.inPow=function(e){return e<0?0:e>1?1:e**2},h.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},h.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return h.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},h.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},h.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},h.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},h.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},h.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},h.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},h.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},h.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},h.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},h.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},h.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},h.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},h.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},h.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},h.anim.expPulse=function(e){return Math.exp(-2*e**2)},h===void 0&&(h={}),h.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),t=this;e.addEventListener(`touchstart`,function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`mousedown`,function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener(`contextmenu`,function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`dblclick`,function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=h.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},h===void 0&&(h={}),h.VERSION=`9.1.104`,h.orientation={},h.orientation.top=0,h.orientation.bottom=1,h.orientation.right=2,h.orientation.left=3,h.orientation.top_left=4,h.orientation.bottom_left=5,h.orientation.right_top=6,h.orientation.left_top=7,h.anchor={top_right:`top_right`,right_top:`right_top`,bottom_right:`bottom_right`,right_bottom:`right_bottom`,top_left:`top_left`,left_top:`left_top`,bottom_left:`bottom_left`,left_bottom:`left_bottom`,top:`top`,bottom:`bottom`,left:`left`,right:`right`},h.align={},h.align.center=h.CENTER=8,h.align.orientation=h.ORIENTATION=9,h.attr={},h.attr.l=`data-l`,h.attr.id=`data-id`,h.attr.sl=`data-sl`,h.attr.lbl=`data-lbl`,h.attr.val=`data-val`,h.attr.tlbr=`data-tlbr`,h.attr.item=`data-item`,h.attr.layout=`data-layout`,h.attr.node_id=`data-n-id`,h.attr.link_id=`data-l-id`,h.attr.field_name=`data-f-name`,h.attr.c_link_to=`data-c-l-to`,h.attr.c_link_from=`data-c-l-from`,h.attr.s_link_to=`data-s-l-to`,h.attr.s_link_from=`data-s-l-from`,h.attr.control_add=`data-ctrl-add`,h.attr.control_expcoll_id=`data-ctrl-ec-id`,h.attr.control_up_id=`data-ctrl-up-id`,h.attr.control_export_menu=`data-ctrl-menu`,h.attr.control_node_menu_id=`data-ctrl-n-menu-id`,h.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,h.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,h.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,h.attr.width=`data-width`,h.attr.text_overflow=`data-text-overflow`,h.ID=`id`,h.PID=`pid`,h.STPID=`stpid`,h.TAGS=`tags`,h.NODES=`nodes`,h.ELASTIC=`elastic`,h.ASSISTANT=`Assistant`,h.action={},h.action.expand=0,h.action.collapse=1,h.action.maximize=101,h.action.minimize=102,h.action.expandCollapse=501,h.action.edit=1,h.action.zoom=2,h.action.ctrlZoom=22,h.action.scroll=41,h.action.xScroll=3,h.action.yScroll=4,h.action.none=5,h.action.init=6,h.action.update=7,h.action.move=70,h.action.pan=8,h.action.centerNode=9,h.action.resize=10,h.action.insert=11,h.action.insertfirst=12,h.action.details=13,h.action.exporting=14,h.none=400001,h.scroll={},h.scroll.visible=!0,h.scroll.smooth=12,h.scroll.speed=120,h.scroll.safari={smooth:12,speed:250},h.match={},h.match.height=100001,h.match.width=100002,h.match.boundary=100003,h.match.boundaryIfOutside=100004,h.match.none=1,h.movable={},h.movable.node=`node`,h.movable.tree=`tree`,h.movable.detachTree=`detachTree`,h.layout={},h.layout.normal=h.normal=0,h.layout.mixed=h.mixed=1,h.layout.tree=h.tree=2,h.layout.treeLeftOffset=h.treeLeftOffset=3,h.layout.treeRightOffset=h.treeRightOffset=4,h.layout.treeLeft=5,h.layout.treeRight=6,h.layout.grid=-1,h.layout.treeList=-2,h.nodeOpenTag=`<g `+h.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+h.attr.sl+`="{sl}" `+h.attr.l+`="{level}" {lcn}>`,h.linkOpenTag=`<g `+h.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,h.expcollOpenTag=`<g `+h.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.upOpenTag=`<g `+h.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,h.grCloseTag=`</g>`,h.A5={width:420,height:595},h.A4={width:595,height:842},h.A3={width:842,height:1191},h.A2={width:1191,height:1684},h.A1={width:1684,height:2384},h.Letter={width:612,height:791},h.Legal={width:612,height:1009},h.Legal={width:612,height:1009},h.Widescreen={width:720,height:1280},h.Standard={width:720,height:960},h.COLLAPSE_PARENT_NEIGHBORS=1,h.COLLAPSE_SUB_CHILDRENS=2,h.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,h.TEXT_THRESHOLD=4e3,h.IMAGES_THRESHOLD=1e3,h.LINKS_THRESHOLD=2e3,h.BUTTONS_THRESHOLD=700,h.ANIM_THRESHOLD=500,h.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+h.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,h.RES={},h.IT_IS_LONELY_HERE_LINK=h.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,h.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,h.STRING_TAGS=!1,h.MAX_NODES_MESS=`The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,h.OFFLINE_MESS=`The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,h.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,h.SEARCH_HELP_SYMBOL=`?`,h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,h.SEARCH_RESULT_LIMIT=10,h.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,h.FIXED_POSITION_ON_CLICK=!1,h.RENDER_LINKS_BEFORE_NODES=!1,h.RENDER_CLINKS_BEFORE_NODES=!1,h.MIXED_LAYOUT_ALL_NODES=!1,h.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,h.LINK_ROUNDED_CORNERS=5,h.MOVE_STEP=5,h.CLINK_CURVE=1,h.MAX_DEPTH=200,h.SCALE_FACTOR=1.44,h.LAZY_LOADING_FACTOR=`auto`,h.LAZY_LOADING=!0,h.ARRAY_FIELDS=[`tags`],h.CSV_DELIMITER=`,`,h.EDITFORM_CLOSE_BTN=`<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>`,h.ESCAPE_HTML=!1,h.VERTICAL_CHILDREN_ASSISTANT=!1,h.EXPORT_PAGES_CUT_NODES=!1,h.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,h.FILTER_ALPHABETICALLY=!0,h.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,h.FUNC_URL_NAME=`func-url-orgchartjs`,h.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,h.AI_SYSTEM_MESSAGES=[],h.ORGSCRIBE_OFFSET=` `,h.TREELIST_WHEEL_STEP=`auto`,h.TREELIST_SCROLLBAR_WIDTH=10,h.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,h.REQUEST_CUSTOM_HEADERS={},h.SLINK_GAP=7,h._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},h._addPoint=function(e,t,n,r,i){switch(n.orientation){case h.orientation.top:case h.orientation.top_left:return h._addPointTop(e,t,n,r,i);case h.orientation.bottom:case h.orientation.bottom_left:return h._addPointBottom(e,t,n,r,i);case h.orientation.left:case h.orientation.left_top:return h._addPointLeft(e,t,n,r,i);case h.orientation.right:case h.orientation.right_top:return h._addPointRight(e,t,n,r,i)}},h._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addConnectorLines=function(e,t){h._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),h._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),h._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},h._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},h._addLineToPath=function(e,t,n){return h._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),h._addConnectorLine(t,n),n},h._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},h._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==h.orientation.top||r==h.orientation.top_left?n==`left`?o[0]-=h.SLINK_GAP:n==`right`&&(o[0]+=h.SLINK_GAP):(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(n==`right`?o[0]+=h.SLINK_GAP:n==`left`&&(o[0]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==h.orientation.top||r==h.orientation.top_left?o[1]-=h.SLINK_GAP:(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(o[1]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==h.orientation.top||n==h.orientation.top_left?a[1]-=h.SLINK_GAP:(n==h.orientation.bottom||n==h.orientation.bottom_left)&&(a[1]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==h.orientation.left||r==h.orientation.left_top?n==`top`?o[1]-=h.SLINK_GAP:n==`bottom`&&(o[1]+=h.SLINK_GAP):(r==h.orientation.right||r==h.orientation.right_top)&&(n==`bottom`?o[1]+=h.SLINK_GAP:n==`top`&&(o[1]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==h.orientation.left||r==h.orientation.left_top?o[0]-=h.SLINK_GAP:(r==h.orientation.right||r==h.orientation.right_top)&&(o[0]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==h.orientation.left||n==h.orientation.left_top?a[0]-=h.SLINK_GAP:(n==h.orientation.right||n==h.orientation.right_top)&&(a[0]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h.prototype.getSvg=function(){return this.element.querySelector(`svg`)},h.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},h.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+h.attr.node_id+`='`+e+`']`)},h.prototype.getMenuButton=function(){return this.element.querySelector(`[`+h.attr.control_export_menu+`]`)},h.notifierUI=function(){},h.notifierUI.prototype.init=function(e){this.obj=e},h.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=h.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=h.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.style,{position:`absolute`,"background-color":t,color:`#ffffff`,padding:`15px`,"border-radius":`40px`,opacity:0,overflow:`hidden`,"white-space":`nowrap`,"text-align":`center`}),this.obj.element.appendChild(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,h.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},h===void 0&&(h={}),h.icon={},h.icon.png_export=h.icon.png_preview=h.icon.pngpreview=h.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
212
|
+
</g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(_.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(_.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===_.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===_.action.centernode||t===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update)&&(l=c),t===_.action.init&&c!=null&&(l=c),t===_.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);_.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===_.action.centerNode?_.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update||t===_.action.init)?_.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),_.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){_.events.publish(`ready`,[i,e])})}},_.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},_.prototype.width=function(){return this.element.offsetWidth},_.prototype.height=function(){return this.element.offsetHeight},_.prototype.getViewBox=function(){var e=this.getSvg();return _._getViewBox(e)},_.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},_.prototype.getScale=function(e){return e||=this.getViewBox(),_.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},_.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),_.events.publish(`redraw`,[this]),e},_.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),h=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=_.randomId();h.setAttribute(`id`,y);var b={ripple:_.t(r.templateName,r.min,this.getScale()).ripple,node:r};_.events.publish(`ripple`,[this,b]),g.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),g.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),g.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),g.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),g.setAttribute(`rx`,b.ripple.radius),g.setAttribute(`ry`,b.ripple.radius),v.setAttribute(`clip-path`,`url(#`+y+`)`),v.setAttribute(`cx`,o),v.setAttribute(`cy`,s),v.setAttribute(`r`,0),v.setAttribute(`fill`,b.ripple.color),v.setAttribute(`class`,`boc-ripple`),h.appendChild(g),m.appendChild(h),m.appendChild(v),i.appendChild(m),_.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,_.anim.outPow,function(){i.removeChild(m)})}}},_.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(_.action.update,null,function(){e&&e.call(n)})})}},_.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),h=this.height(),u=m/n[2],d=h/n[3],g=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/g,n[3]/=f/g,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(h/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(_.action.update,null,function(){t&&t.call(x)})})},_.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,_.action.centerNode,{id:e,options:c},n)},_.prototype.fit=function(e){this.config.scaleInitial=_.match.boundary,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.fitIfOutside=function(e){this.config.scaleInitial=_.match.boundaryIfOutside,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+_.attr.tlbr+`r='fullScreen']`);document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=_.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=_.toolbarUI.closeFullScreenIcon))},_.prototype.getNode=function(e){return this.nodes[e]},_.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,_.action.update)},_.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,_.action.update,void 0,function(){r.getScale(),_._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,_.action.pan),n&&n()})})},_.prototype.search=function(e,t,n){return _.isNEU(t)&&(t=this.searchUI._searchFields),_.isNEU(n)&&(n=t),_._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},_.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<_.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>_.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>_.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+_.attr.link_id+`]`);if(i.length>_.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`);if(a.length>_.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`);if(o.length>_.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},_.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+_.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},_.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},_.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},_.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join(`*`),e.min=this.manager.state.min.join(`*`),e.adjustify=this.manager.state.adjustify.x+`*`+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return``},_.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},_.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,h=s-l+this.config.padding*2,g=f/m,v=p/h,y=g>v?v:g,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,h=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+_.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case _.orientation.right:case _.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case _.orientation.left:case _.orientation.bottom_left:case _.orientation.top_left:case _.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)h=(s+l)/2-x/2;else switch(h=-(x/2-(s-l)/2),h>-this.config.padding&&(h=-this.config.padding),this.config.orientation){case _.orientation.bottom:case _.orientation.bottom_left:h=-(x/2-(l-s)/2),h<this.config.padding-x&&(h=this.config.padding-x);break;case _.orientation.left:case _.orientation.right:h=r.y-x/2+_.manager._getNodeWidth(r,this.config)/2;break}var S=[m,h,b,x];a[0]!==S[0]||a[1]!==S[1]?_.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(_.action.update,void 0,t)}):t&&t()}},_.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!_.isNEU(e.pid)&&this.getNode(e.pid)},_.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),_.events.removeForEventId(this._event_id),this.element.innerHTML=null},_.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},_.prototype._canUpdateLink=_.prototype.canUpdateLink,_.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&_.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,_.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},_.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},_.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&_.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,_.action.update,null,function(){t&&t()}),!0)},_.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},_.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},_.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&_.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,_.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},_.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!_.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},_.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,_.action.update,void 0,t)},_.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)_.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!_.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!_.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!_.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},_.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!_.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},_.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},_.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},_.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},_===void 0&&(_={}),_.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=_._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var h=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],g=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+h+` `+g);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];for(var C=``,S=0;S<x.length;S++)C+=parseInt(x[S])+`px `;e[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},_.anim={},_.anim.inPow=function(e){return e<0?0:e>1?1:e**2},_.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},_.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return _.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},_.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},_.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},_.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},_.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},_.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},_.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},_.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},_.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},_.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},_.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},_.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},_.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},_.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},_.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},_.anim.expPulse=function(e){return Math.exp(-2*e**2)},_===void 0&&(_={}),_.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),t=this;e.addEventListener(`touchstart`,function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`mousedown`,function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener(`contextmenu`,function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`dblclick`,function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=_.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},_===void 0&&(_={}),_.VERSION=`9.2.1`,_.orientation={},_.orientation.top=0,_.orientation.bottom=1,_.orientation.right=2,_.orientation.left=3,_.orientation.top_left=4,_.orientation.bottom_left=5,_.orientation.right_top=6,_.orientation.left_top=7,_.anchor={top_right:`top_right`,right_top:`right_top`,bottom_right:`bottom_right`,right_bottom:`right_bottom`,top_left:`top_left`,left_top:`left_top`,bottom_left:`bottom_left`,left_bottom:`left_bottom`,top:`top`,bottom:`bottom`,left:`left`,right:`right`},_.align={},_.align.center=_.CENTER=8,_.align.orientation=_.ORIENTATION=9,_.attr={},_.attr.l=`data-l`,_.attr.id=`data-id`,_.attr.sl=`data-sl`,_.attr.lbl=`data-lbl`,_.attr.val=`data-val`,_.attr.tlbr=`data-tlbr`,_.attr.item=`data-item`,_.attr.layout=`data-layout`,_.attr.node_id=`data-n-id`,_.attr.link_id=`data-l-id`,_.attr.field_name=`data-f-name`,_.attr.c_link_to=`data-c-l-to`,_.attr.c_link_from=`data-c-l-from`,_.attr.s_link_to=`data-s-l-to`,_.attr.s_link_from=`data-s-l-from`,_.attr.control_add=`data-ctrl-add`,_.attr.control_expcoll_id=`data-ctrl-ec-id`,_.attr.control_up_id=`data-ctrl-up-id`,_.attr.control_export_menu=`data-ctrl-menu`,_.attr.control_node_menu_id=`data-ctrl-n-menu-id`,_.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,_.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,_.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,_.attr.width=`data-width`,_.attr.text_overflow=`data-text-overflow`,_.ID=`id`,_.PID=`pid`,_.STPID=`stpid`,_.TAGS=`tags`,_.NODES=`nodes`,_.ELASTIC=`elastic`,_.ASSISTANT=`Assistant`,_.action={},_.action.expand=0,_.action.collapse=1,_.action.maximize=101,_.action.minimize=102,_.action.expandCollapse=501,_.action.edit=1,_.action.zoom=2,_.action.ctrlZoom=22,_.action.scroll=41,_.action.xScroll=3,_.action.yScroll=4,_.action.none=5,_.action.init=6,_.action.update=7,_.action.move=70,_.action.pan=8,_.action.centerNode=9,_.action.resize=10,_.action.insert=11,_.action.insertfirst=12,_.action.details=13,_.action.exporting=14,_.none=400001,_.scroll={},_.scroll.visible=!0,_.scroll.smooth=12,_.scroll.speed=120,_.scroll.safari={smooth:12,speed:250},_.match={},_.match.height=100001,_.match.width=100002,_.match.boundary=100003,_.match.boundaryIfOutside=100004,_.match.none=1,_.movable={},_.movable.node=`node`,_.movable.tree=`tree`,_.movable.detachTree=`detachTree`,_.layout={},_.layout.normal=_.normal=0,_.layout.mixed=_.mixed=1,_.layout.tree=_.tree=2,_.layout.treeLeftOffset=_.treeLeftOffset=3,_.layout.treeRightOffset=_.treeRightOffset=4,_.layout.treeLeft=5,_.layout.treeRight=6,_.layout.grid=-1,_.layout.treeList=-2,_.nodeOpenTag=`<g `+_.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+_.attr.sl+`="{sl}" `+_.attr.l+`="{level}" {lcn}>`,_.linkOpenTag=`<g `+_.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,_.expcollOpenTag=`<g `+_.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.upOpenTag=`<g `+_.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,_.grCloseTag=`</g>`,_.A5={width:420,height:595},_.A4={width:595,height:842},_.A3={width:842,height:1191},_.A2={width:1191,height:1684},_.A1={width:1684,height:2384},_.Letter={width:612,height:791},_.Legal={width:612,height:1009},_.Legal={width:612,height:1009},_.Widescreen={width:720,height:1280},_.Standard={width:720,height:960},_.COLLAPSE_PARENT_NEIGHBORS=1,_.COLLAPSE_SUB_CHILDRENS=2,_.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,_.TEXT_THRESHOLD=4e3,_.IMAGES_THRESHOLD=1e3,_.LINKS_THRESHOLD=2e3,_.BUTTONS_THRESHOLD=700,_.ANIM_THRESHOLD=500,_.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+_.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,_.RES={},_.IT_IS_LONELY_HERE_LINK=_.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,_.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,_.STRING_TAGS=!1,_.MAX_NODES_MESS=`The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,_.OFFLINE_MESS=`The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,_.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,_.SEARCH_HELP_SYMBOL=`?`,_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,_.SEARCH_RESULT_LIMIT=10,_.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,_.FIXED_POSITION_ON_CLICK=!1,_.RENDER_LINKS_BEFORE_NODES=!1,_.RENDER_CLINKS_BEFORE_NODES=!1,_.MIXED_LAYOUT_ALL_NODES=!1,_.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,_.LINK_ROUNDED_CORNERS=5,_.MOVE_STEP=5,_.CLINK_CURVE=1,_.MAX_DEPTH=200,_.SCALE_FACTOR=1.44,_.LAZY_LOADING_FACTOR=`auto`,_.LAZY_LOADING=!0,_.ARRAY_FIELDS=[`tags`],_.CSV_DELIMITER=`,`,_.EDITFORM_CLOSE_BTN=`<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>`,_.ESCAPE_HTML=!1,_.VERTICAL_CHILDREN_ASSISTANT=!1,_.EXPORT_PAGES_CUT_NODES=!1,_.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,_.FILTER_ALPHABETICALLY=!0,_.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,_.FUNC_URL_NAME=`func-url-orgchartjs`,_.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,_.AI_SYSTEM_MESSAGES=[],_.ORGSCRIBE_OFFSET=` `,_.TREELIST_WHEEL_STEP=`auto`,_.TREELIST_SCROLLBAR_WIDTH=10,_.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,_.REQUEST_CUSTOM_HEADERS={},_.SLINK_GAP=7,_._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},_._addPoint=function(e,t,n,r,i){switch(n.orientation){case _.orientation.top:case _.orientation.top_left:return _._addPointTop(e,t,n,r,i);case _.orientation.bottom:case _.orientation.bottom_left:return _._addPointBottom(e,t,n,r,i);case _.orientation.left:case _.orientation.left_top:return _._addPointLeft(e,t,n,r,i);case _.orientation.right:case _.orientation.right_top:return _._addPointRight(e,t,n,r,i)}},_._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},_._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},_._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},_._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},_._addConnectorLines=function(e,t){_._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),_._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),_._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},_._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},_._addLineToPath=function(e,t,n){return _._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),_._addConnectorLine(t,n),n},_._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},_._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==_.orientation.top||r==_.orientation.top_left?n==`left`?o[0]-=_.SLINK_GAP:n==`right`&&(o[0]+=_.SLINK_GAP):(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(n==`right`?o[0]+=_.SLINK_GAP:n==`left`&&(o[0]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==_.orientation.top||r==_.orientation.top_left?o[1]-=_.SLINK_GAP:(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(o[1]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==_.orientation.top||n==_.orientation.top_left?a[1]-=_.SLINK_GAP:(n==_.orientation.bottom||n==_.orientation.bottom_left)&&(a[1]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==_.orientation.left||r==_.orientation.left_top?n==`top`?o[1]-=_.SLINK_GAP:n==`bottom`&&(o[1]+=_.SLINK_GAP):(r==_.orientation.right||r==_.orientation.right_top)&&(n==`bottom`?o[1]+=_.SLINK_GAP:n==`top`&&(o[1]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==_.orientation.left||r==_.orientation.left_top?o[0]-=_.SLINK_GAP:(r==_.orientation.right||r==_.orientation.right_top)&&(o[0]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==_.orientation.left||n==_.orientation.left_top?a[0]-=_.SLINK_GAP:(n==_.orientation.right||n==_.orientation.right_top)&&(a[0]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_.prototype.getSvg=function(){return this.element.querySelector(`svg`)},_.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},_.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+_.attr.node_id+`='`+e+`']`)},_.prototype.getMenuButton=function(){return this.element.querySelector(`[`+_.attr.control_export_menu+`]`)},_.notifierUI=function(){},_.notifierUI.prototype.init=function(e){this.obj=e},_.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=_.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=_.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.style,{position:`absolute`,"background-color":t,color:`#ffffff`,padding:`15px`,"border-radius":`40px`,opacity:0,overflow:`hidden`,"white-space":`nowrap`,"text-align":`center`}),this.obj.element.appendChild(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,_.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},_===void 0&&(_={}),_.icon={},_.icon.png_export=_.icon.png_preview=_.icon.pngpreview=_.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
213
213
|
<path fill="${n}" d="M146.747,276.708c0-13.998-9.711-22.352-26.887-22.352c-6.99,0-11.726,0.675-14.204,1.355v44.927 c2.932,0.676,6.539,0.896,11.52,0.896C135.449,301.546,146.747,292.28,146.747,276.708z"/>
|
|
214
214
|
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M234.344,335.86v45.831h-31.601V229.524h40.184 l31.611,55.759c9.025,16.031,18.064,34.983,24.825,52.154h0.675c-2.257-20.103-2.933-40.643-2.933-63.44v-44.473h31.614v152.167 h-36.117l-32.516-58.703c-9.049-16.253-18.971-35.892-26.438-53.727l-0.665,0.222C233.906,289.58,234.344,311.027,234.344,335.86z M71.556,381.691V231.56c10.613-1.804,25.516-3.159,46.506-3.159c21.215,0,36.353,4.061,46.509,12.192 c9.698,7.673,16.255,20.313,16.255,35.219c0,14.897-4.959,27.549-13.999,36.123c-11.738,11.063-29.123,16.031-49.441,16.031 c-4.522,0-8.593-0.231-11.736-0.675v54.411H71.556V381.691z M453.601,523.353H97.2V419.302h356.4V523.353z M485.652,374.688 c-10.61,3.607-30.713,8.585-50.805,8.585c-27.759,0-47.872-7.003-61.857-20.545c-13.995-13.1-21.684-32.97-21.452-55.318 c0.222-50.569,37.03-79.463,86.917-79.463c19.644,0,34.783,3.829,42.219,7.446l-7.214,27.543c-8.369-3.617-18.752-6.55-35.458-6.55 c-28.656,0-50.341,16.256-50.341,49.22c0,31.382,19.649,49.892,47.872,49.892c7.895,0,14.218-0.901,16.934-2.257v-31.835h-23.493 v-26.869h56.679V374.688z"/>
|
|
215
|
-
</svg>`},
|
|
215
|
+
</svg>`},_.icon.pdf_export=_.icon.pdf_preview=_.icon.pdfpreview=_.icon.pdf=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
216
216
|
<path fill="${n}" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>
|
|
217
217
|
<path fill="${n}" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>
|
|
218
218
|
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"/>
|
|
219
|
-
</svg>`},
|
|
219
|
+
</svg>`},_.icon.svg_export=_.icon.svg_preview=_.icon.svg=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
220
220
|
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M338.871,225.672L284.545,386.96h-42.591 l-51.69-161.288h39.967l19.617,68.196c5.508,19.143,10.531,37.567,14.36,57.67h0.717c4.061-19.385,9.089-38.527,14.592-56.953 l20.585-68.918h38.77V225.672z M68.458,379.54l7.415-30.153c9.811,5.021,24.888,10.051,40.439,10.051 c16.751,0,25.607-6.935,25.607-17.465c0-10.052-7.662-15.795-27.05-22.734c-26.8-9.328-44.263-24.168-44.263-47.611 c0-27.524,22.971-48.579,61.014-48.579c18.188,0,31.591,3.823,41.159,8.131l-8.126,29.437c-6.465-3.116-17.945-7.657-33.745-7.657 c-15.791,0-23.454,7.183-23.454,15.552c0,10.296,9.089,14.842,29.917,22.731c28.468,10.536,41.871,25.365,41.871,48.094 c0,27.042-20.812,50.013-65.09,50.013C95.731,389.349,77.538,384.571,68.458,379.54z M453.601,523.353H97.2V419.302h356.4V523.353z M488.911,379.54c-11.243,3.823-32.537,9.103-53.831,9.103c-29.437,0-50.73-7.426-65.57-21.779 c-14.839-13.875-22.971-34.942-22.738-58.625c0.253-53.604,39.255-84.235,92.137-84.235c20.81,0,36.852,4.073,44.74,7.896 l-7.657,29.202c-8.859-3.829-19.849-6.95-37.567-6.95c-30.396,0-53.357,17.233-53.357,52.173c0,33.265,20.81,52.882,50.73,52.882 c8.375,0,15.072-0.96,17.94-2.395v-33.745h-24.875v-28.471h60.049V379.54L488.911,379.54z" />
|
|
221
|
-
</svg>`},
|
|
221
|
+
</svg>`},_.icon.csv_export=_.icon.csv=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 548.29 548.291" x="${r}" y="${i}">'
|
|
222
222
|
<path fill="${n}" d="M486.2,196.121h-13.164V132.59c0-0.399-0.064-0.795-0.116-1.2c-0.021-2.52-0.824-5-2.551-6.96L364.656,3.677 c-0.031-0.034-0.064-0.044-0.085-0.075c-0.629-0.707-1.364-1.292-2.141-1.796c-0.231-0.157-0.462-0.286-0.704-0.419 c-0.672-0.365-1.386-0.672-2.121-0.893c-0.199-0.052-0.377-0.134-0.576-0.188C358.229,0.118,357.4,0,356.562,0H96.757 C84.893,0,75.256,9.649,75.256,21.502v174.613H62.093c-16.972,0-30.733,13.756-30.733,30.73v159.81 c0,16.966,13.761,30.736,30.733,30.736h13.163V526.79c0,11.854,9.637,21.501,21.501,21.501h354.777 c11.853,0,21.502-9.647,21.502-21.501V417.392H486.2c16.966,0,30.729-13.764,30.729-30.731v-159.81 C516.93,209.872,503.166,196.121,486.2,196.121z M96.757,21.502h249.053v110.006c0,5.94,4.818,10.751,10.751,10.751h94.973v53.861 H96.757V21.502z M258.618,313.18c-26.68-9.291-44.063-24.053-44.063-47.389c0-27.404,22.861-48.368,60.733-48.368 c18.107,0,31.447,3.811,40.968,8.107l-8.09,29.3c-6.43-3.107-17.862-7.632-33.59-7.632c-15.717,0-23.339,7.149-23.339,15.485 c0,10.247,9.047,14.769,29.78,22.632c28.341,10.479,41.681,25.239,41.681,47.874c0,26.909-20.721,49.786-64.792,49.786 c-18.338,0-36.449-4.776-45.497-9.77l7.38-30.016c9.772,5.014,24.775,10.006,40.264,10.006c16.671,0,25.488-6.908,25.488-17.396 C285.536,325.789,277.909,320.078,258.618,313.18z M69.474,302.692c0-54.781,39.074-85.269,87.654-85.269 c18.822,0,33.113,3.811,39.549,7.149l-7.392,28.816c-7.38-3.084-17.632-5.939-30.491-5.939c-28.822,0-51.206,17.375-51.206,53.099 c0,32.158,19.051,52.4,51.456,52.4c10.947,0,23.097-2.378,30.241-5.238l5.483,28.346c-6.672,3.34-21.674,6.919-41.208,6.919 C98.06,382.976,69.474,348.424,69.474,302.692z M451.534,520.962H96.757v-103.57h354.777V520.962z M427.518,380.583h-42.399 l-51.45-160.536h39.787l19.526,67.894c5.479,19.046,10.479,37.386,14.299,57.397h0.709c4.048-19.298,9.045-38.352,14.526-56.693 l20.487-68.598h38.599L427.518,380.583z" />'
|
|
223
|
-
</svg>`},
|
|
223
|
+
</svg>`},_.icon.json_export=_.icon.json=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 32 32" x="${r}" y="${i}">
|
|
224
224
|
<polygon fill="${n}" points="31 11 31 21 29 21 27 15 27 21 25 21 25 11 27 11 29 17 29 11 31 11"/>
|
|
225
225
|
<path fill="${n}" d="M21.3335,21h-2.667A1.6684,1.6684,0,0,1,17,19.3335v-6.667A1.6684,1.6684,0,0,1,18.6665,11h2.667A1.6684,1.6684,0,0,1,23,12.6665v6.667A1.6684,1.6684,0,0,1,21.3335,21ZM19,19h2V13H19Z"/>
|
|
226
226
|
<path fill="${n}" d="M13.3335,21H9V19h4V17H11a2.002,2.002,0,0,1-2-2V12.6665A1.6684,1.6684,0,0,1,10.6665,11H15v2H11v2h2a2.002,2.002,0,0,1,2,2v2.3335A1.6684,1.6684,0,0,1,13.3335,21Z"/>
|
|
227
227
|
<path fill="${n}" d="M5.3335,21H2.6665A1.6684,1.6684,0,0,1,1,19.3335V17H3v2H5V11H7v8.3335A1.6684,1.6684,0,0,1,5.3335,21Z"/>
|
|
228
228
|
<rect fill="${n}" id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" style="fill: none;" width="32" height="32"/>'
|
|
229
|
-
</svg>`},
|
|
229
|
+
</svg>`},_.icon.excel=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
230
230
|
<path fill="${n}" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H7C7.55228 21 8 21.4477 8 22C8 22.5523 7.55228 23 7 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM19 12C19.5523 12 20 12.4477 20 13V19H23C23.5523 19 24 19.4477 24 20C24 20.5523 23.5523 21 23 21H19C18.4477 21 18 20.5523 18 20V13C18 12.4477 18.4477 12 19 12ZM11.8137 12.4188C11.4927 11.9693 10.8682 11.8653 10.4188 12.1863C9.96935 12.5073 9.86526 13.1318 10.1863 13.5812L12.2711 16.5L10.1863 19.4188C9.86526 19.8682 9.96935 20.4927 10.4188 20.8137C10.8682 21.1347 11.4927 21.0307 11.8137 20.5812L13.5 18.2205L15.1863 20.5812C15.5073 21.0307 16.1318 21.1347 16.5812 20.8137C17.0307 20.4927 17.1347 19.8682 16.8137 19.4188L14.7289 16.5L16.8137 13.5812C17.1347 13.1318 17.0307 12.5073 16.5812 12.1863C16.1318 11.8653 15.5073 11.9693 15.1863 12.4188L13.5 14.7795L11.8137 12.4188Z" fill="#000000"/>
|
|
231
|
-
</svg>`},
|
|
231
|
+
</svg>`},_.icon.pp_export=_.icon.pp_preview=_.icon.pppreview=_.icon.powerpoint=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
232
232
|
<path fill="${n}" d="M10 1C9.73478 1 9.48043 1.10536 9.29289 1.29289L3.29289 7.29289C3.10536 7.48043 3 7.73478 3 8V20C3 21.6569 4.34315 23 6 23H11C11.5523 23 12 22.5523 12 22C12 21.4477 11.5523 21 11 21H6C5.44772 21 5 20.5523 5 20V9H10C10.5523 9 11 8.55228 11 8V3H18C18.5523 3 19 3.44772 19 4V9C19 9.55228 19.4477 10 20 10C20.5523 10 21 9.55228 21 9V4C21 2.34315 19.6569 1 18 1H10ZM9 7H6.41421L9 4.41421V7ZM15 12C14.4477 12 14 12.4477 14 13V17V20C14 20.5523 14.4477 21 15 21C15.5523 21 16 20.5523 16 20V18H19C20.6569 18 22 16.6569 22 15C22 13.3431 20.6569 12 19 12H15ZM19 16H16V14H19C19.5523 14 20 14.4477 20 15C20 15.5523 19.5523 16 19 16Z" fill="#000000"/>
|
|
233
|
-
</svg>`},
|
|
233
|
+
</svg>`},_.icon.edit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 528.899 528.899" x="${r}" y="${i}">
|
|
234
234
|
<path fill="${n}" d="M328.883,89.125l107.59,107.589l-272.34,272.34L56.604,361.465L328.883,89.125z M518.113,63.177l-47.981-47.981 c-18.543-18.543-48.653-18.543-67.259,0l-45.961,45.961l107.59,107.59l53.611-53.611 C532.495,100.753,532.495,77.559,518.113,63.177z M0.3,512.69c-1.958,8.812,5.998,16.708,14.811,14.565l119.891-29.069 L27.473,390.597L0.3,512.69z" />'
|
|
235
|
-
</svg>`},
|
|
235
|
+
</svg>`},_.icon.details=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
236
236
|
<path fill="${n}" d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008 C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237 h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931 l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278 c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239 h66.527V486.763z"/>
|
|
237
237
|
<path fill="${n}" d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>
|
|
238
238
|
<path fill="${n}" d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>
|
|
239
239
|
<path fill="${n}" d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>
|
|
240
240
|
<path fill="${n}" d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256 c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>
|
|
241
|
-
</svg>`},
|
|
241
|
+
</svg>`},_.icon.remove=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 900.5 900.5" x="${r}" y="${i}">
|
|
242
242
|
<path fill="${n}" d="M176.415,880.5c0,11.046,8.954,20,20,20h507.67c11.046,0,20-8.954,20-20V232.487h-547.67V880.5L176.415,880.5z M562.75,342.766h75v436.029h-75V342.766z M412.75,342.766h75v436.029h-75V342.766z M262.75,342.766h75v436.029h-75V342.766z"/>
|
|
243
243
|
<path fill="${n}" d="M618.825,91.911V20c0-11.046-8.954-20-20-20h-297.15c-11.046,0-20,8.954-20,20v71.911v12.5v12.5H141.874 c-11.046,0-20,8.954-20,20v50.576c0,11.045,8.954,20,20,20h34.541h547.67h34.541c11.046,0,20-8.955,20-20v-50.576 c0-11.046-8.954-20-20-20H618.825v-12.5V91.911z M543.825,112.799h-187.15v-8.389v-12.5V75h187.15v16.911v12.5V112.799z"/>
|
|
244
|
-
</svg>`},
|
|
244
|
+
</svg>`},_.icon.add=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 922 922" x="${r}" y="${i}">
|
|
245
245
|
<path fill="${n}" d="M922,453V81c0-11.046-8.954-20-20-20H410c-11.045,0-20,8.954-20,20v149h318c24.812,0,45,20.187,45,45v198h149 C913.046,473.001,922,464.046,922,453z" />
|
|
246
246
|
<path fill="${n}" d="M557,667.001h151c11.046,0,20-8.954,20-20v-174v-198c0-11.046-8.954-20-20-20H390H216c-11.045,0-20,8.954-20,20v149h194 h122c24.812,0,45,20.187,45,45v4V667.001z" />
|
|
247
247
|
<path fill="${n}" d="M0,469v372c0,11.046,8.955,20,20,20h492c11.046,0,20-8.954,20-20V692v-12.501V667V473v-4c0-11.046-8.954-20-20-20H390H196 h-12.5H171H20C8.955,449,0,457.955,0,469z" />
|
|
248
|
-
</svg>`},
|
|
248
|
+
</svg>`},_.icon.search=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 485.213 485.213" x="${r}" y="${i}">
|
|
249
249
|
<path fill="${n}" d="M471.882,407.567L360.567,296.243c-16.586,25.795-38.536,47.734-64.331,64.321l111.324,111.324 c17.772,17.768,46.587,17.768,64.321,0C489.654,454.149,489.654,425.334,471.882,407.567z" />
|
|
250
250
|
<path fill="${n}" d="M363.909,181.955C363.909,81.473,282.44,0,181.956,0C81.474,0,0.001,81.473,0.001,181.955s81.473,181.951,181.955,181.951 C282.44,363.906,363.909,282.437,363.909,181.955z M181.956,318.416c-75.252,0-136.465-61.208-136.465-136.46 c0-75.252,61.213-136.465,136.465-136.465c75.25,0,136.468,61.213,136.468,136.465 C318.424,257.208,257.206,318.416,181.956,318.416z" />
|
|
251
251
|
<path fill="${n}" d="M75.817,181.955h30.322c0-41.803,34.014-75.814,75.816-75.814V75.816C123.438,75.816,75.817,123.437,75.817,181.955z" />
|
|
252
|
-
</svg>`},
|
|
252
|
+
</svg>`},_.icon.xml_export=_.icon.xml=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
|
|
253
253
|
<path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.992L366.325,3.691 c-0.032-0.031-0.063-0.042-0.085-0.073c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422 c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542 c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87V227.89C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M369.531,374.53h-32.058l-2.156-55.519 c-0.644-17.434-1.298-38.518-1.298-59.611h-0.633c-4.514,18.516-10.547,39.166-16.137,56.162l-17.645,56.601h-25.618 l-15.494-56.157c-4.725-16.996-9.671-37.658-13.123-56.6h-0.43c-0.854,19.585-1.508,41.961-2.586,60.038l-2.576,55.086h-30.343 l9.26-145.035h43.677l14.207,48.421c4.517,16.774,9.041,34.847,12.258,51.843h0.654c4.081-16.77,9.038-35.923,13.774-52.064 l15.493-48.199h42.82L369.531,374.53z M69.992,374.53l41.955-73.385l-40.444-71.65h37.655l12.688,26.465 c4.316,8.828,7.533,15.928,10.99,24.092h0.422c3.438-9.242,6.23-15.694,9.893-24.092l12.274-26.465h37.434l-40.89,70.796 l43.044,74.239h-37.866l-13.134-26.257c-5.376-10.108-8.817-17.639-12.909-26.04h-0.433c-3.009,8.401-6.674,15.932-11.19,26.04 l-12.042,26.257H69.992z M453.601,523.353H97.2V419.302h356.4V523.353z M485.325,374.53h-90.608V229.495h32.933v117.497h57.682 v27.538H485.325z"/>
|
|
254
|
-
</svg>`},
|
|
254
|
+
</svg>`},_.icon.visio_export=_.icon.visio=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
|
|
255
255
|
<path fill="${n}" d="M24 7.609v9.556q0 .424-.302.726-.303.303-.726.303h-5.19q-.072 1.149-.556 2.135-.484.986-1.264 1.717-.78.732-1.803 1.15-1.022.417-2.159.417-1.016 0-1.96-.35-.943-.352-1.705-.969-.762-.617-1.295-1.47-.532-.852-.713-1.856H1.028q-.423 0-.726-.303Q0 18.363 0 17.94V7.609q0-.424.302-.726.303-.302.726-.302h5.238q-.072-.182-.072-.387 0-.424.302-.726L11.274.69q.303-.303.726-.303t.726.303l4.778 4.778q.302.302.302.726 0 .205-.072.387h5.238q.423 0 .726.302.302.302.302.726zM12 2.153l-4.04 4.04.387.388h3.012q.423 0 .726.302.302.302.302.726v2.238l3.653-3.653zM7.161 16.84l3.085-8.13H8.238q-.508 1.489-1.028 2.952-.52 1.464-1.004 2.964-.496-1.488-.992-2.958-.496-1.47-1.004-2.957H2.153l3.037 8.129zM12 22.065q.883 0 1.657-.333t1.355-.913q.58-.581.913-1.355.333-.774.333-1.658 0-.81-.302-1.548-.303-.738-.823-1.318-.52-.581-1.228-.944-.707-.363-1.518-.423v4.367q0 .423-.302.725-.303.303-.726.303H7.923q.206.677.593 1.246.387.568.92.98.532.41 1.185.64.653.23 1.379.23zm10.452-5.42V8.13h-6.158q-.133.133-.441.454-.309.32-.714.725-.405.406-.847.853-.441.448-.828.823-.387.375-.684.641-.296.266-.393.302v.097q.968.036 1.845.411t1.578.998q.702.623 1.186 1.446t.677 1.766Z"/>
|
|
256
|
-
</svg>`},
|
|
256
|
+
</svg>`},_.icon.link=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512.092 512.092" x="${r}" y="${i}">
|
|
257
257
|
<path fill="${n}" d="M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859 c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318 c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6 c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581 c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0 c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0 c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z" />
|
|
258
258
|
<path fill="${n}" d="M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387 c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877 l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768 l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0 c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893 c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365 c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597 c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403 l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z" />
|
|
259
|
-
</svg>`},
|
|
259
|
+
</svg>`},_.icon.happy=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
260
260
|
<path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
|
|
261
261
|
<path fill="${n}" d="M176,176c17.673,0,32,14.327,32,32h32c0-35.346-28.654-64-64-64c-35.346,0-64,28.654-64,64h32 C144,190.327,158.327,176,176,176z"/>
|
|
262
262
|
<path fill="${n}" d="M336,144c-35.346,0-64,28.654-64,64h32c0-17.673,14.327-32,32-32c17.673,0,32,14.327,32,32h32 C400,172.654,371.346,144,336,144z"/>
|
|
263
263
|
<path fill="${n}" d="M256,368c-53.019,0-96-42.981-96-96h-32c0,70.692,57.308,128,128,128s128-57.308,128-128h-32 C352,325.019,309.019,368,256,368z"/>
|
|
264
|
-
</svg>`},
|
|
264
|
+
</svg>`},_.icon.sad=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
|
|
265
265
|
<path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
|
|
266
266
|
<path fill="${n}" d="M336,192c-17.673,0-32-14.327-32-32h-32c0,35.346,28.654,64,64,64c35.346,0,64-28.654,64-64h-32 C368,177.673,353.673,192,336,192z"/>
|
|
267
267
|
<path fill="${n}" d="M176,224c35.346,0,64-28.654,64-64h-32c0,17.673-14.327,32-32,32s-32-14.327-32-32h-32C112,195.346,140.654,224,176,224z "/>
|
|
268
268
|
<path fill="${n}" d="M256,256c-70.692,0-128,57.308-128,128h32c0-53.019,42.981-96,96-96s96,42.981,96,96h32C384,313.308,326.692,256,256,256 z"/>
|
|
269
|
-
</svg>`},
|
|
269
|
+
</svg>`},_.icon.share=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
|
|
270
270
|
<path fill="${n}" d="M406,332c-29.641,0-55.761,14.581-72.167,36.755L191.99,296.124c2.355-8.027,4.01-16.346,4.01-25.124
|
|
271
271
|
c0-11.906-2.441-23.225-6.658-33.636l148.445-89.328C354.307,167.424,378.589,180,406,180c49.629,0,90-40.371,90-90
|
|
272
272
|
c0-49.629-40.371-90-90-90c-49.629,0-90,40.371-90,90c0,11.437,2.355,22.286,6.262,32.358l-148.887,89.59
|
|
273
273
|
C156.869,193.136,132.937,181,106,181c-49.629,0-90,40.371-90,90c0,49.629,40.371,90,90,90c30.13,0,56.691-15.009,73.035-37.806
|
|
274
274
|
l141.376,72.395C317.807,403.995,316,412.75,316,422c0,49.629,40.371,90,90,90c49.629,0,90-40.371,90-90
|
|
275
275
|
C496,372.371,455.629,332,406,332z"/>
|
|
276
|
-
</svg>`},
|
|
276
|
+
</svg>`},_.icon.user=function(e,t,n,r,i){return _.isNEU(r)&&(r=0),_.isNEU(i)&&(i=0),`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
277
277
|
<path fill="${n}" d="M12 11.796C14.7189 11.796 16.9231 9.60308 16.9231 6.89801C16.9231 4.19294 14.7189 2.00005 12 2.00005C9.28106 2.00005 7.07692 4.19294 7.07692 6.89801C7.07692 9.60308 9.28106 11.796 12 11.796Z" fill="#030D45"/>
|
|
278
278
|
<path fill="${n}" d="M14.5641 13.8369H9.4359C6.46154 13.8369 4 16.2859 4 19.245C4 19.9593 4.30769 20.5716 4.92308 20.8777C5.84615 21.3879 7.89744 22.0001 12 22.0001C16.1026 22.0001 18.1538 21.3879 19.0769 20.8777C19.5897 20.5716 20 19.9593 20 19.245C20 16.1838 17.5385 13.8369 14.5641 13.8369Z" fill="#030D45"/>
|
|
279
|
-
</svg>`},
|
|
279
|
+
</svg>`},_.icon.close=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
|
|
280
280
|
<path fill="${n}" d="m256 0c-141.49 0-256 114.5-256 256 0 141.49 114.5 256 256 256 141.49 0 256-114.5 256-256 0-141.49-114.5-256-256-256zm-12.284 317.397-58.121 58.132c-6.565 6.553-15.283 10.166-24.557 10.166-19.196 0-34.734-15.526-34.734-34.734 0-9.274 3.612-17.992 10.166-24.557l58.132-58.121c6.785-6.784 6.785-17.783 0-24.568l-58.132-58.121c-6.553-6.565-10.166-15.283-10.166-24.557 0-19.196 15.526-34.734 34.734-34.734 9.274 0 17.992 3.613 24.557 10.166l58.121 58.132c6.785 6.773 17.784 6.773 24.568 0l58.121-58.132c6.565-6.553 15.283-10.166 24.557-10.166 19.196 0 34.734 15.526 34.734 34.734 0 9.274-3.612 17.992-10.166 24.557l-58.132 58.121c-6.785 6.784-6.785 17.783 0 24.568l58.132 58.121c6.553 6.565 10.166 15.283 10.166 24.557 0 19.196-15.526 34.734-34.734 34.734-9.274 0-17.992-3.613-24.557-10.166l-58.121-58.132c-6.784-6.784-17.784-6.773-24.568 0z"/>
|
|
281
|
-
</svg>`},
|
|
281
|
+
</svg>`},_.icon.undo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
282
282
|
<path fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM9.25871 7.97395C9.56308 7.693 9.58205 7.21851 9.3011 6.91414C9.02015 6.60978 8.54565 6.5908 8.24129 6.87175L5.99129 8.94867C5.83748 9.09065 5.75 9.29045 5.75 9.49977C5.75 9.7091 5.83748 9.9089 5.99129 10.0509L8.24129 12.1278C8.54565 12.4088 9.02015 12.3898 9.3011 12.0854C9.58205 11.781 9.56308 11.3065 9.25871 11.0256L8.41824 10.2498H14.0385C14.7376 10.2498 15.2069 10.2506 15.5652 10.2862C15.9116 10.3205 16.0724 10.3813 16.1787 10.4501C16.3272 10.5461 16.4537 10.6726 16.5497 10.8211C16.6184 10.9274 16.6793 11.0882 16.7136 11.4345C16.7491 11.7929 16.75 12.2622 16.75 12.9613C16.75 13.6604 16.7491 14.1298 16.7136 14.4881C16.6793 14.8344 16.6185 14.9952 16.5497 15.1015C16.4537 15.2501 16.3272 15.3765 16.1787 15.4726C16.0724 15.5413 15.9116 15.6021 15.5652 15.6365C15.2069 15.672 14.7376 15.6729 14.0385 15.6729H9.5C9.08579 15.6729 8.75 16.0086 8.75 16.4229C8.75 16.8371 9.08579 17.1729 9.5 17.1729H14.0758C14.7279 17.1729 15.2721 17.1729 15.7133 17.1291C16.1748 17.0834 16.6038 16.9839 16.9931 16.7322C17.3199 16.5209 17.5981 16.2427 17.8094 15.916C18.0611 15.5266 18.1605 15.0976 18.2063 14.6361C18.25 14.195 18.25 13.6508 18.25 12.9987V12.924C18.25 12.2718 18.25 11.7276 18.2063 11.2865C18.1605 10.825 18.0611 10.396 17.8093 10.0067C17.5981 9.6799 17.3199 9.40169 16.9931 9.19042C16.6038 8.9387 16.1748 8.83927 15.7133 8.7935C15.2721 8.74975 14.7279 8.74976 14.0758 8.74977L8.41824 8.74977L9.25871 7.97395Z" />
|
|
283
283
|
<rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
|
|
284
|
-
</svg>`},
|
|
284
|
+
</svg>`},_.icon.redo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
|
|
285
285
|
<path fill="#f9f9f9" fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM15.7587 6.87273C15.4543 6.59177 14.9799 6.61075 14.6989 6.91512C14.4179 7.21948 14.4369 7.69398 14.7413 7.97493L15.5818 8.75075H9.96155C7.63558 8.75075 5.75 10.6363 5.75 12.9623C5.75 15.2883 7.63557 17.1738 9.96154 17.1738H14.5C14.9142 17.1738 15.25 16.838 15.25 16.4238C15.25 16.0096 14.9142 15.6738 14.5 15.6738H9.96154C8.464 15.6738 7.25 14.4598 7.25 12.9623C7.25 11.4647 8.464 10.2508 9.96155 10.2508H15.5818L14.7413 11.0266C14.4369 11.3075 14.4179 11.782 14.6989 12.0864C14.9799 12.3908 15.4543 12.4097 15.7587 12.1288L18.0087 10.0519C18.1625 9.90987 18.25 9.71007 18.25 9.50075C18.25 9.29143 18.1625 9.09163 18.0087 8.94965L15.7587 6.87273Z"/>
|
|
286
286
|
<rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
|
|
287
|
-
</svg>`},
|
|
287
|
+
</svg>`},_.icon.send=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
|
|
288
288
|
<path fill="none" stroke="${n}" stroke-width="2" d="M10.3009 13.6949L20.102 3.89742M10.5795 14.1355L12.8019 18.5804C13.339 19.6545 13.6075 20.1916 13.9458 20.3356C14.2394 20.4606 14.575 20.4379 14.8492 20.2747C15.1651 20.0866 15.3591 19.5183 15.7472 18.3818L19.9463 6.08434C20.2845 5.09409 20.4535 4.59896 20.3378 4.27142C20.2371 3.98648 20.013 3.76234 19.7281 3.66167C19.4005 3.54595 18.9054 3.71502 17.9151 4.05315L5.61763 8.2523C4.48114 8.64037 3.91289 8.83441 3.72478 9.15032C3.56153 9.42447 3.53891 9.76007 3.66389 10.0536C3.80791 10.3919 4.34498 10.6605 5.41912 11.1975L9.86397 13.42C10.041 13.5085 10.1295 13.5527 10.2061 13.6118C10.2742 13.6643 10.3352 13.7253 10.3876 13.7933C10.4468 13.87 10.491 13.9585 10.5795 14.1355Z" />
|
|
289
|
-
</svg>`},
|
|
289
|
+
</svg>`},_.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
290
290
|
<line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
291
291
|
<line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
292
|
-
</svg>`},
|
|
292
|
+
</svg>`},_.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
|
|
293
293
|
<line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
294
294
|
<line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
|
|
295
|
-
</svg>`},
|
|
295
|
+
</svg>`},_.icon.fit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 128 128">
|
|
296
296
|
<path fill="${n}" d="M 58.1875 4.90625 C 29.957889 4.90625 6.9375 27.957888 6.9375 56.1875 C 6.9375 84.417111 29.957889 107.4375 58.1875 107.4375 C 69.752492 107.4375 80.436703 103.56785 89.03125 97.0625 L 108.59375 120.4375 A 7.0007 7.0007 0 1 0 119.3125 111.4375 L 98.96875 87.15625 C 105.53731 78.538312 109.4375 67.814416 109.4375 56.1875 C 109.4375 27.957888 86.417111 4.90625 58.1875 4.90625 z M 58.1875 18.875 C 78.850949 18.875 95.4375 35.52405 95.4375 56.1875 C 95.4375 76.850949 78.850949 93.4375 58.1875 93.4375 C 37.524051 93.4375 20.9375 76.850949 20.9375 56.1875 C 20.9375 35.52405 37.524051 18.875 58.1875 18.875 z M 33.125 31.09375 L 33.125 36.40625 L 33.125 75.90625 L 33.125 81.21875 L 38.4375 81.21875 L 77.9375 81.21875 L 83.25 81.21875 L 83.25 75.90625 L 83.25 36.40625 L 83.25 31.09375 L 77.9375 31.09375 L 38.4375 31.09375 L 33.125 31.09375 z M 43.78125 41.75 L 72.59375 41.75 L 72.59375 70.5625 L 43.78125 70.5625 L 43.78125 41.75 z "/>
|
|
297
|
-
</svg>`},
|
|
297
|
+
</svg>`},_.icon.expand_all=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32">
|
|
298
298
|
<path fill="${n}" d="M13.816 5.989l-7.785 0.046 0.003 7.735 2.59-2.591 3.454 3.454 2.665-2.665-3.453-3.454 2.526-2.525zM12.079 17.35l-3.454 3.455-2.59-2.592-0.003 7.799 7.785-0.018-2.526-2.525 3.454-3.453-2.666-2.666zM19.922 14.633l3.453-3.454 2.59 2.591 0.004-7.735-7.785-0.046 2.526 2.525-3.454 3.454 2.666 2.665zM23.375 20.805l-3.453-3.455-2.666 2.666 3.454 3.453-2.526 2.525 7.785 0.018-0.004-7.799-2.59 2.592z"></path>
|
|
299
|
-
</svg>`},
|
|
299
|
+
</svg>`},_.icon.full_screen=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 48 48">
|
|
300
300
|
<rect width="48" height="48" fill="${n}" fill-opacity="0.01"/>
|
|
301
301
|
<path fill="none" d="M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16" stroke="${n}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
302
302
|
<rect x="24" y="24" width="20" height="16" rx="2" fill="none" stroke="${n}" stroke-width="4" stroke-linejoin="round"/>
|
|
303
|
-
</svg>`},
|
|
303
|
+
</svg>`},_.icon.zoom_in=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32" >
|
|
304
304
|
<g sketch:type="MSLayerGroup" transform="translate(-362.000000, -1037.000000)" fill="${n}">
|
|
305
305
|
<path d="M390,1049 L382,1049 L382,1041 C382,1038.79 380.209,1037 378,1037 C375.791,1037 374,1038.79 374,1041 L374,1049 L366,1049 C363.791,1049 362,1050.79 362,1053 C362,1055.21 363.791,1057 366,1057 L374,1057 L374,1065 C374,1067.21 375.791,1069 378,1069 C380.209,1069 382,1067.21 382,1065 L382,1057 L390,1057 C392.209,1057 394,1055.21 394,1053 C394,1050.79 392.209,1049 390,1049" id="plus" sketch:type="MSShapeGroup"></path>
|
|
306
306
|
</g>
|
|
307
|
-
</svg>`},
|
|
307
|
+
</svg>`},_.icon.zoom_out=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 -12 32 32" >
|
|
308
308
|
<g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-414.000000, -1049.000000)" fill="${n}">
|
|
309
309
|
<path d="M442,1049 L418,1049 C415.791,1049 414,1050.79 414,1053 C414,1055.21 415.791,1057 418,1057 L442,1057 C444.209,1057 446,1055.21 446,1053 C446,1050.79 444.209,1049 442,1049" id="minus" sketch:type="MSShapeGroup"></path>
|
|
310
310
|
</g>
|
|
311
|
-
</svg>`},
|
|
311
|
+
</svg>`},_.icon.layout_normal=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
312
312
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
313
313
|
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
314
314
|
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
@@ -316,7 +316,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
316
316
|
<line stroke="${n}" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line>
|
|
317
317
|
<line stroke="${n}" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line>
|
|
318
318
|
<line stroke="${n}" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line>
|
|
319
|
-
</svg>`},
|
|
319
|
+
</svg>`},_.icon.layout_right_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
320
320
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
321
321
|
<rect fill="${n}" x="40" y="41" width="50" height="27"></rect>
|
|
322
322
|
<rect fill="${n}" x="40" y="73" width="50" height="27"></rect>
|
|
@@ -325,7 +325,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
325
325
|
<line stroke="${n}" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line>
|
|
326
326
|
<line stroke="${n}" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line>
|
|
327
327
|
<line stroke="${n}" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line>
|
|
328
|
-
</svg>`},
|
|
328
|
+
</svg>`},_.icon.layout_left_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
329
329
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
330
330
|
<rect fill="${n}" x="30" y="41" width="50" height="27"></rect>
|
|
331
331
|
<rect fill="${n}" x="30" y="73" width="50" height="27"></rect>
|
|
@@ -334,20 +334,20 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
334
334
|
<line stroke="${n}" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line>
|
|
335
335
|
<line stroke="${n}" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line>
|
|
336
336
|
<line stroke="${n}" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line>
|
|
337
|
-
</svg>`},
|
|
337
|
+
</svg>`},_.icon.layout_mixed=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
338
338
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
339
339
|
<rect fill="${n}" x="35" y="41" width="50" height="27"></rect>
|
|
340
340
|
<rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
|
|
341
341
|
<line stroke="${n}" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line>
|
|
342
342
|
<line stroke="${n}" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line>
|
|
343
|
-
</svg>`},
|
|
343
|
+
</svg>`},_.icon.layout_tree=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
344
344
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
345
345
|
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
346
346
|
<rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
|
|
347
347
|
<rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
|
|
348
348
|
<line stroke="${n}" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line>
|
|
349
349
|
<line stroke="${n}" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line>
|
|
350
|
-
</svg>`},
|
|
350
|
+
</svg>`},_.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
351
351
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
352
352
|
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
353
353
|
<rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
|
|
@@ -360,7 +360,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
360
360
|
<line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
|
|
361
361
|
<line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
|
|
362
362
|
<line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
|
|
363
|
-
</svg>`},
|
|
363
|
+
</svg>`},_.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
|
|
364
364
|
<rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
|
|
365
365
|
<rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
|
|
366
366
|
<rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
|
|
@@ -373,16 +373,16 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
373
373
|
<line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
|
|
374
374
|
<line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
|
|
375
375
|
<line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
|
|
376
|
-
</svg>`},
|
|
376
|
+
</svg>`},_.icon.cursor=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 16 16" >
|
|
377
377
|
<path d="M8 3V0H6V3H8Z" fill="${n}"/>
|
|
378
378
|
<path d="M0.792893 2.20711L3.29289 4.70711L4.70711 3.29289L2.20711 0.792893L0.792893 2.20711Z" fill="${n}"/>
|
|
379
379
|
<path d="M6 5L5 6.00001L8 15H10L10.7172 12.1314L14.2929 15.7071L15.7071 14.2929L12.1314 10.7172L15 10V8L6 5Z" fill="${n}"/>
|
|
380
380
|
<path d="M0 6H3V8H0V6Z" fill="${n}"/>
|
|
381
|
-
</svg>`},h===void 0&&(h={}),h.events=(function(){var e={};return{on:function(t,n,r){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:n,event_id:r})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,n,r){var i=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var a=e[t].length-1;a>=0;a--)(!h.isNEU(r)&&!h.isNEU(n)&&e[t][a].event_id==r&&e[t][a].listener==n||!h.isNEU(r)&&h.isNEU(n)&&e[t][a].event_id==r||h.isNEU(r)&&!h.isNEU(n)&&e[t][a].listener==n||h.isNEU(r)&&h.isNEU(n))&&(e[t].splice(a,1),i=!0);return i},has:function(t,n){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(h.isNEU(n))return!0;for(var r=0;r<e[t].length;r++)if(e[t][r].event_id==n)return!0}return!1},removeForEventId:function(t){for(var n in e)if(Array.isArray(e[n]))for(var r=e[n].length-1;r>=0;r--)e[n][r].event_id==t&&e[n].splice(r,1)},publish:function(t,n){if(e[t]){for(var r=[],i=0;i<e[t].length;i++){var a=e[t][i];(a.event_id==null||a.event_id==n[0]._event_id)&&r.push(a.listener)}if(r.length>0){for(var o=!0,i=0;i<r.length&&(n.length==1?o=r[i](n[0])&&o:n.length==2?o=r[i](n[0],n[1])&&o:n.length==3?o=r[i](n[0],n[1],n[2])&&o:n.length==4?o=r[i](n[0],n[1],n[2],n[3])&&o:n.length==5&&(o=r[i](n[0],n[1],n[2],n[3],n[4])&&o),o!==!1);i++);return o}}}}})(),h.prototype.expand=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,h.action.expand,r,n)},h.prototype.collapse=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,h.action.collapse,r,n)},h.prototype.expandCollapse=function(e,t,n,r){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(n)||(n=[]);var i={id:e,expandIds:t,collapseIds:n,ids:t.concat(n)};this._draw(!1,h.action.collapse,i,r)},h.prototype.changeRoots=function(e,t,n){this.config.roots=t;var r={id:e,changeRoots:t};this._draw(!1,h.action.update,r,n)},h.prototype._resetMovableNodes=function(){if(h.RESET_MOVABLE_ONEXPANDCOLLAPSE&&this.config.movable!=null){for(var e=!1,t=0;t<this.config.nodes.length;t++){var n=this.config.nodes[t];n.movex!=null&&(n.movex=0,e=!0),n.movey!=null&&(n.movey=0,e=!0)}e&&(this._ai.setContext(),h.events.publish(`updated`,[this]))}},h.prototype.maximize=function(e,t,n,r){var i=this,a={id:e,options:{}};h.isNEU(a.id)&&(a.id=this.roots[0].id,a.all=!0),a.options.horizontal=!1,a.options.vertical=!1,t&&(a.options.horizontal=t),n&&(a.options.vertical=n),this._draw(!1,h.action.maximize,a,function(){i.ripple(e),r&&r()})},h.prototype.minimize=function(e,t){var n=this,r={id:e};h.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),this._draw(!1,h.action.minimize,r,function(){n.ripple(e),t&&t()})},h.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),n=this.getCollapsedIds(t);if(n.length){var r=h.events.publish(`expcollclick`,[this,!1,e,n]);if(r===!1)return!1;this.expand(e,n,!1)}else{var r=h.events.publish(`expcollclick`,[this,!0,e,t.childrenIds]);if(r===!1)return!1;this.collapse(e,t.childrenIds,!1)}},h.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(h.events.publish(`up-click`,[this,t])===!1)return!1;this.changeRoots(t.id,t.roots,!1)},h.prototype._upHandlerCreateArgs=function(e){var t=this.getNode(e),n=Object.assign([],this.config.roots),r=this.getNode(t.pid),i;if(r&&(i=r),i){if(Array.isArray(n)){var a=n.indexOf(t.id);a!=-1&&n.splice(a,1)}else n=[];n.push(i.id)}return{id:t.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,`g`),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}),String.prototype.splice||(String.prototype.splice=function(e,t,n){return this.slice(0,e)+n+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,`unique`,{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var n=t+1;n<e.length;++n)e[t]===e[n]&&e.splice(n--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,`has`,{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,`compare`,{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,`assign`,{value:function(e,t){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),h.prototype._globalMouseDownHandler=function(e,t){var n={move:`mousemove`,up:`mouseup`,leave:`mouseleave`};t.type.indexOf(`touch`)!=-1&&(t.touches.length==1?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,n={move:`touchmove`,up:`touchend`,touchstart:`touchstart`}),this._treeListUpdateInterval&&=(clearInterval(this._treeListUpdateInterval),null);for(var r=null,i=t.target;i!=e&&!i.hasAttribute(h.attr.control_node_menu_id)&&!i.hasAttribute(h.attr.control_node_circle_menu_id);){if(i.hasAttribute){var a=null;i.hasAttribute(h.attr.node_id)?a=this.getNode(i.getAttribute(h.attr.node_id)):i.hasAttribute(h.attr.control_expcoll_id)?a=this.getNode(i.getAttribute(h.attr.control_expcoll_id)):(i.hasAttribute(h.attr.control_node_menu_id)||i.hasAttribute(h.attr.control_node_menu_id))&&(a=this.getNode(i.getAttribute(h.attr.control_node_menu_id))),r||=h._getScrollableTreeListNodeInTouchEnabledDevice(a)}if(i.hasAttribute(h.attr.node_id)&&!r&&(this.config.enableDragDrop||this.config.movable)){if(t.touches==null||t.touches.length<=1){this._nodeMouseDownHandler(i,t,n);return}}else if(i.hasAttribute(h.attr.control_node_circle_menu_name)){if(t.stopPropagation(),t.touches==null||t.touches.length<=1){this._nodeCircleNodeMenuItemMouseDownHandler(e,i,t,n);return}}else if(i.hasAttribute(`data-treelist-thumb`)&&(t.stopPropagation(),t.touches==null||t.touches.length<=1)){this._treeListThumbMouseDownHandler(i,t,n);return}i=i.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,n,r)},h.prototype._globalContextHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(h.attr.node_id)){var r=n.getAttribute(h.attr.node_id),i=this.getNode(r);this._nodeContextHandler(i.id,t);return}n=n.parentNode}},h.prototype._nodeContextHandler=function(e,t){t.preventDefault(),h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.get(e),r=null;if(n!=null&&Array.isArray(n.tags))for(var i=0;i<n.tags.length;i++){var a=n.tags[i];this.config.tags[a]&&this.config.tags[a].nodeContextMenu&&(r=this.config.tags[a].nodeContextMenu)}var o=this.element.getBoundingClientRect(),s=t.clientX-o.left,c=t.clientY-o.top;this.nodeContextMenuUI.show(s,c,e,null,r)},h.prototype._globalDbClickHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(h.attr.node_id)){var r=n.getAttribute(h.attr.node_id),i=this.getNode(r);this._nodeDbClickHandler(i.id,t);return}n=n.parentNode}},h.prototype._mouseScrollHandler=function(e,t){for(var n=!1,r=t.target,i=null;r&&r.hasAttribute&&!r.hasAttribute(`data-n-id`)&&!r.hasAttribute(`data-ctrl-ec-id`);)r=r.parentNode;if(r.hasAttribute&&r.hasAttribute(`data-n-id`)){var a=r.getAttribute(`data-n-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}if(r.hasAttribute&&r.hasAttribute(`data-ctrl-ec-id`)){var a=r.getAttribute(`data-ctrl-ec-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}t.ctrlKey&&(n=!1),n?this.__mouseScrollHandlerTreeList(i,t):this.__mouseScrollHandler(this.getSvg(),t)},h.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==h.action.zoom)return}else if(this.config.mouseScrool==h.action.ctrlZoom||this.config.mouseScrool!=h.action.zoom)return;if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let r=t.deltaY/1e3;r=Math.abs(r)<.1?.1*t.deltaY/Math.abs(t.deltaY):r;var n=h._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-r,n)}else{var r=this,i=!1,a=this.config.zoom.speed,o=this.config.zoom.smooth,s=0,c=this.getScale(),n=h._centerPointInPercent(e,t.clientX,t.clientY);function d(){i=!0;var e=(s-c)/o;e>0?e++:e--,c+=e,r.zoom(1-e/12/50,n),parseInt(c)==parseInt(s)?i=!1:l(d)}var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}();t.preventDefault();var u=t.delta||t.wheelDelta;u===void 0&&(u=-t.detail),u=Math.max(-1,Math.min(1,u)),s+=-u*a,i||d()}},h.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,n,r){var i=t.parentNode.getAttribute(h.attr.control_node_circle_menu_wrraper_id),a=t.getAttribute(h.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[a];if(!o.draggable){this._clickHandler(e,n);return}var s=this,c=h._getClientXY(n),l=this.getNode(i);t._dragEventFired=!1;var u=s.getScale(),d=null,f=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var p=this.getSvg(),m={x:c.x,y:c.y},g=function(e){for(;e&&!e.hasAttribute(h.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(!e){console.error(`cannot find parent`+h.attr.control_node_circle_menu_wrraper_id);return}var t=h._getTransform(e);return{x:t[4],y:t[5]}},_=t.cloneNode(!0);p.insertBefore(_,p.firstChild);var v=h._getTransform(_),y=v[4],b=v[5],x=g(t);_.setAttribute(`transform`,`matrix(1,0,0,1,`+(y+x.x)+`,`+(b+x.y)+`)`),_.style.opacity=.7;var S=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=h.getStParentNodes(s.getNode(d)),r=0;r<n.length;r++){var i=s.getNodeElement(n[r].id);i&&(i.style.opacity=1)}}},C=function(e){if(m){var n=h._getClientXY(e),r=e.target;h.isMobile()&&(r=document.elementFromPoint(n.x,n.y)),n.x+=x.x*u,n.y+=x.y*u;var i=h._getOffsetXY(s.element,e),c={left:s.width()-(i.x+s.config.padding)<0,right:i.x-s.config.padding<0,up:s.height()-(i.y+s.config.padding)<0,down:i.y-s.config.padding<0};if(c.left||c.right||c.up||c.down){p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.add(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`));var l=v[4],g=v[5],C=m.x,T=m.y,E=n.x,D=n.y;s.moveStart(c,function(e){v[4]=l+e.x,v[5]=g+e.y,m.x=C-e.xWithoutScale,m.y=T-e.yWithoutScale,n.x=E-e.xWithoutScale,n.y=D-e.yWithoutScale,_.setAttribute(`transform`,`matrix(`+v.toString()+`)`)})}else{for(s.moveEnd(),p.classList&&(p.classList.add(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),S(d,f),d=null,f=null;r!=null&&r!=p;){if(r.hasAttribute&&r.hasAttribute(h.attr.node_id)){var O=r.getAttribute(h.attr.node_id);d=O,f=r;break}r=r.parentNode}if(d!=null){f.classList.add(`boc-drag-over`);for(var k=s.getNode(d),A=h.getStParentNodes(k),j=0;j<A.length;j++){var M=s.getNodeElement(A[j].id);M&&(M.style.opacity=.1)}p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.add(`boc-cursor-copy`),p.classList.remove(`boc-cursor-nodrop`)}var N=(n.x-m.x)/u,P=(n.y-m.y)/u;v[4]=y+N,v[5]=b+P,!t._dragEventFired&&(Math.abs(n.x-m.x)>h.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-m.y)>h.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(s._gragStartedId=t.parentNode.getAttribute(h.attr.control_node_circle_menu_wrraper_id),h.events.publish(`drag`,[s.nodeCircleMenuUI,{from:O,menuItem:o,menuItemName:a}])===!1&&w(),t._dragEventFired=!0),_.setAttribute(`transform`,`matrix(`+v.toString()+`)`)}}},w=function(e){if(s.moveEnd(),p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),p.removeEventListener(r.move,C),p.removeEventListener(r.up,w),r.leave&&p.removeEventListener(r.leave,w),l.id==d||d==null){p.removeChild(_),s._gragStartedId=null,t._dragEventFired&&h.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,menuItemName:a,menuItem:o,event:e}]);return}var n=s.getNode(d);h.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,to:n.id,menuItem:o,menuItemName:a,event:e}]),S(d,f),p.removeChild(_),s._gragStartedId=null};p.addEventListener(r.move,C),p.addEventListener(r.up,w),r.leave&&p.addEventListener(r.leave,w)},h.prototype._nodeMouseDownHandler=function(e,t,n){var r=e.getAttribute(h.attr.node_id),i=this.getNode(r);this.config.movable&&!h.getRootOf(i).stParent?this._movableHandler(e,t,n):this.config.enableDragDrop&&this._dragDropHandler(e,t,n)},h.prototype._resizeHandler=function(e,t){if(this.isVisible&&!(e==0||t==0)){var n=this.getViewBox();if(n){n=n.slice(0);var r=e/n[2],i=t/n[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?n[3]=t/r:n[2]=e/i,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(n),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,h.action.resize)}}},h.prototype._nodeDbClickHandler=function(e,t){if(h.events.publish(`dbclick`,[this,this.get(e)])===!1)return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},h.prototype._nodeClickHandler=function(e,t){if(h.events.publish(`click`,[this,{node:this.getNode(e),event:t}])===!1)return!1;if(this.powerPointPreviewUI.isVisible()&&this.powerPointPreviewUI.selectedPage!=null){this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pdfPreviewUI.isVisible()&&this.pdfPreviewUI.selectedPage!=null){this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.svgPreviewUI.isVisible()&&this.svgPreviewUI.selectedPage!=null){this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pngPreviewUI.isVisible()&&this.pngPreviewUI.selectedPage!=null){this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}var n=this.getNodeElement(e);if(n&&n._dragEventFired){n._dragEventFired=!1;return}this._commonClickHandler(e,t,this.config.nodeMouseClick)},h.prototype._nodeCircleMenuItemClickHandler=function(e,t){var n=e.parentNode.getAttribute(h.attr.control_node_circle_menu_wrraper_id),r=e.getAttribute(h.attr.control_node_circle_menu_name),i=this.nodeCircleMenuUI._menu[r];h.events.publish(`click`,[this.nodeCircleMenuUI,{nodeId:n,menuItemName:r,menuItem:i,event:t}])},h.prototype._nodeCircleMenuClickHandler=function(e){if(h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),n=null;if(Array.isArray(t.tags))for(var r=0;r<t.tags.length;r++){var i=t.tags[r];this.config.tags[i]&&this.config.tags[i].nodeCircleMenu&&(n=this.config.tags[i].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,n)}},h.prototype._commonClickHandler=function(e,t,n){if(h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),n==h.action.expandCollapse&&this.toggleExpandCollapse(e,t),n==h.action.edit){var r=this.getNode(e);r&&(this.editUI.show(r.id),this.ripple(r.id,t.clientX,t.clientY))}if(n==h.action.details){var r=this.getNode(e);r&&(this.editUI.show(r.id,!0),this.ripple(r.id,t.clientX,t.clientY))}},h.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},h.prototype._nodeMenuClickHandler=function(e,t,n){h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var r=this.getNode(e),i=null;if(Array.isArray(r.tags))for(var a=0;a<r.tags.length;a++){var o=r.tags[a];this.config.tags[o]&&this.config.tags[o].nodeMenu&&(i=this.config.tags[o].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,i)},h.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},h.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};this.addNode(e,null,!0)!==!1&&this.center(e.id)},h.prototype.toggleExpandCollapse=function(e,t){var n=this.getNode(e),r=this.getCollapsedIds(n);if(r.length){var i=h.events.publish(`expcollclick`,[this,!1,e,r]);if(i===!1)return!1;this.expand(e,r,!1)}else{var i=h.events.publish(`expcollclick`,[this,!0,e,n.childrenIds]);if(i===!1)return!1;this.collapse(e,n.childrenIds,!1)}t&&this.ripple(n.id,t.clientX,t.clientY)},h.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var n=t.target;n!=e;){if(n.hasAttribute(h.attr.control_expcoll_id)){var r=n.getAttribute(h.attr.control_expcoll_id),i=this.getNode(r);this._expCollHandler(i.id);return}if(n.hasAttribute(h.attr.node_id)){var r=n.getAttribute(h.attr.node_id),i=this.getNode(r);this._nodeClickHandler(i.id,t);return}if(n.hasAttribute(h.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(h.attr.control_node_menu_id),i=this.getNode(r);this._nodeMenuClickHandler(i.id,n,t);return}if(n.hasAttribute(h.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(h.attr.control_node_circle_menu_id);this._nodeCircleMenuClickHandler(r);return}if(n.hasAttribute(h.attr.control_node_circle_menu_name)){t.stopPropagation(),this._nodeCircleMenuItemClickHandler(n,t);return}if(n.hasAttribute(h.attr.control_add)){this._lonelyButtonHandler();return}if(n.hasAttribute(h.attr.control_up_id)){var r=n.getAttribute(h.attr.control_up_id);t.stopPropagation(),t.preventDefault(),this._upHandler(r);return}if(n.hasAttribute(h.attr.c_link_from)){h.events.publish(`clink-click`,[this,{from:n.getAttribute(h.attr.c_link_from),to:n.getAttribute(h.attr.c_link_to),event:t}]);return}if(n.hasAttribute(h.attr.s_link_from)){h.events.publish(`slink-click`,[this,{from:n.getAttribute(h.attr.s_link_from),to:n.getAttribute(h.attr.s_link_to),event:t}]);return}if(n.hasAttribute(`data-ctrl-n-dotted-close`)){var r=n.getAttribute(`data-ctrl-n-dotted-close`);this.minimize(r);return}if(n.hasAttribute(`data-ctrl-n-dotted-open`)){var r=n.getAttribute(`data-ctrl-n-dotted-open`);this.maximize(r);return}n=n.parentNode}h.events.publish(`canvas-click`,[this,{event:t}])}},h.prototype._mouseDownHandler=function(e,t,n,r){var i=this;h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var a=this.getViewBox(),o=this.getScale(),s=h._getClientTouchesXY(t,0),c=h._getClientTouchesXY(t,1),l={diffX:0,diffY:0,x0:s.x,y0:s.y,type:this.config.enablePan?`pan`:`pan-not-enabled`,viewBoxLeft:a[0],viewBoxTop:a[1],time:Date.now()};t.touches&&t.touches.length>1&&(l.type=`pinch`,l.dist=Math.sqrt((s.x-c.x)*(s.x-c.x)+(s.y-c.y)*(s.y-c.y)));var u=null;if(r){var d=r.stChildren[0].lcn?r.stChildren[0].lcn:`base`;u=i.manager.layoutConfigs[d],l.scrollTop=r.treeList.scrollTop}var f=0,p=function(e){var t=h._getClientTouchesXY(e,0);if(l&&l.type==`pan`){clearTimeout(i._timeout),l.diffX=t.x-l.x0,l.diffY=t.y-l.y0,f=Math.max(Math.abs(l.diffY),Math.abs(l.diffX));var n=-(l.diffY/o)+l.viewBoxTop,s=-(l.diffX/o)+l.viewBoxLeft;f>3&&(r?(r.treeList.scrollTop=l.scrollTop-l.diffY/o,i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdate(r,u)):(i._hideBeforeAnimation(),i._changeCursorOnPanStart(a,o,e),i._move(n,s,a)))}else if(l&&l.type==`pinch`){var c=h._getClientTouchesXY(e,1),d=Math.sqrt((t.x-c.x)*(t.x-c.x)+(t.y-c.y)*(t.y-c.y)),p=1+(d-l.dist)/(l.dist/100)/100;l.dist=d;var m=h._pinchMiddlePointInPercent(i.element,i.width(),i.height(),e);i.zoom(p,m)}},m=function(t){if(f<3&&l.type!=`pinch`&&(t.touches==null||t.touches.length<=1))i._clickHandler(e,t);else if(l.type==`pan`&&r){var a=Date.now()-l.time,o=Math.abs(f/a);if(o>.5){var s=r.treeList.scrollTop,c=s+o*400*(l.diffY>0?-1:1),d=r.stChildren[0].h;c=Math.round(c/d)*d,c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=h.animate(null,{},{},1500,h.anim.outExp,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}else{var s=r.treeList.scrollTop,d=r.stChildren[0].h,c=Math.round(r.treeList.scrollTop/d)*d;c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=h.animate(null,{},{},200,h.anim.outSin,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}}else l.type==`pan`&&!r&&f>10&&i._draw(!0,h.action.pan);l.type==`pan`&&!r&&i._changeCursorOnPanEnd(),l=null,e.removeEventListener(n.move,p),e.removeEventListener(n.up,m),n.leave&&e.removeEventListener(n.leave,m),n.touchstart&&e.removeEventListener(n.touchstart,m)};e.addEventListener(n.move,p,{passive:!0}),e.addEventListener(n.up,m),n.leave&&e.addEventListener(n.leave,m),n.touchstart&&e.addEventListener(n.touchstart,m,{passive:!0})},h.prototype._changeCursorOnPanStart=function(e,t,n){var r=this.getPointerElement();if(r){var i=h._getOffsetXY(this.element,n),a=i.x/t+e[0]-16/t,o=i.y/t+e[1]-16/t;r.style.display=`inherit`,r.setAttribute(`transform`,`matrix(0,0,0,0,`+a+`,`+o+`)`),h.animate(r,{transform:[0,0,0,0,a,o],opacity:0},{transform:[1/t,0,0,1/t,a,o],opacity:1},300,h.anim.outBack)}else this.element.style.cursor=`move`},h.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display=`none`:this.element.style.cursor=`initial`},h.prototype._move=function(e,t,n){n[0]=t,n[1]=e,this.setViewBox(n),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},h.prototype.moveStart=function(e,t,n,r){if(!e){console.error(`movePosition parameter not defined`);return}if(this._moveInterval)return;var i=this,a=this.getViewBox().slice(0),o=this.getScale(),s=0,c=0,l=10,u=1,d=1;h.isNEU(n)&&(n=h.anim.inSin),h.isNEU(r)&&(r=3e3);function f(){var f={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(s++,f.x=s*h.MOVE_STEP/o,f.xWithoutScale=s*h.MOVE_STEP):e.right&&(s++,f.x=-(s*h.MOVE_STEP)/o,f.xWithoutScale=-(s*h.MOVE_STEP)),e.up?(c++,f.y=c*h.MOVE_STEP/o,f.yWithoutScale=c*h.MOVE_STEP):e.down&&(c++,f.y=-(c*h.MOVE_STEP)/o,f.yWithoutScale=-(c*h.MOVE_STEP));var p=n((d*l-l)/r);f.x*=p,f.xWithoutScale*=p,f.y*=p,f.yWithoutScale*=p,i.setViewBox([a[0]+f.x,a[1]+f.y,a[2],a[3]]),t&&t(f),d+=u}this._moveInterval=setInterval(f,l)},h.prototype.moveEnd=function(){this._moveInterval&&=(clearInterval(this._moveInterval),null)},h===void 0&&(h={}),h.node=function(e,t,n,r){this.templateName=r,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=n,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||=[]},h===void 0&&(h={}),h.idb={version:1,dbName:`BALKAN`,tableName:`orgchart-js`,keyPath:`id`},h.idb.db=null,h.idb._open=function(e){if(h._browser().msie){e&&e(!1);return}if((navigator.userAgent.toLowerCase().indexOf(`safari`)>0||navigator.userAgent.toLowerCase().indexOf(`firefox`)>0)&&window.location!==window.parent.location){e&&e(!1);return}if(!window.indexedDB){console.error(`Your browser doesn't support a stable version of IndexedDB.`),e&&e(!1);return}if(h.idb.db!=null){e&&e(!0);return}var t=indexedDB.open(h.idb.dbName,h.idb.version);t.onerror=function(t){console.error(`Cannot open database!`),e&&e(!1)},t.onsuccess=function(t){h.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(h.idb.tableName)&&t.deleteObjectStore(h.idb.tableName),t.createObjectStore(h.idb.tableName,{keyPath:h.idb.keyPath})}},h.idb.read=function(e,t){h.idb._open(function(n){if(n){var r=h.idb.db.transaction([h.idb.tableName]).objectStore(h.idb.tableName).get(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.result?t&&t(!0,r.result):t&&t(null)}}else t&&t(!1)})},h.idb.write=function(e,t){h.idb.read(e.id,function(n){if(n==null){var r=h.idb.db.transaction([h.idb.tableName],`readwrite`).objectStore(h.idb.tableName).add(e);r.onerror=function(e){console.error(`Unable to add data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(n)})},h.idb.put=function(e,t){h.idb._open(function(n){if(n){var r=h.idb.db.transaction([h.idb.tableName],`readwrite`).objectStore(h.idb.tableName).put(e);r.onerror=function(e){console.error(`Unable to put data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},h.idb.delete=function(e,t){h.idb._open(function(n){if(n){var r=h.idb.db.transaction([h.idb.tableName],`readwrite`).objectStore(h.idb.tableName).delete(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},h===void 0&&(h={}),h.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},h.manager.prototype.read=function(e,t,n,r,i,a,o,s){var c=this;h.state._get(this.config.state,t,n,function(l){c.state=l,c.action=i,c.actionParams=a,i!=h.action.init||!c.state||a&&a.method&&a.method==`fit`?(c.viewBox=r,c.vbIsInitializedFromState=!1):(c.viewBox=c.state.vb,c.vbIsInitializedFromState=!0,Array.isArray(c.state.roots)&&(c.config.roots=c.state.roots));var u=c.maxX,d=c.maxY,f=c.minX,p=c.minY,m=c.bordersByRootIdAndLevel,g=c.roots,_=c.nodes;if(!e)_?c.oldNodes=_:c.oldNodes=null,c._read(function(e){u=e.maxX,d=e.maxY,f=e.minX,p=e.minY,m=e.bordersByRootIdAndLevel,g=e.roots,_=e.nodes;var r=h.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,g,c.action,c.actionParams,_,c.oldNodes,c.vbIsInitializedFromState);r.notif=e.limit,r.roots=g,r.bordersByRootIdAndLevel=m,r.adjustify=e.adjustify,i!=h.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=g,c.nodes=_,c.visibleNodeIds=r.visibleNodeIds,c.bordersByRootIdAndLevel=m,c.rootList=e.rootList),o(r)},s);else{var v=h.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,g,c.action,c.actionParams,_,c.oldNodes,c.vbIsInitializedFromState);i!=h.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=g,c.nodes=_,c.visibleNodeIds=v.visibleNodeIds),v.bordersByRootIdAndLevel=m,v.roots=g,v.adjustify={x:0,y:0},c.state&&(v.adjustify=c.state.adjustify),o(v)}})},h.manager.prototype._read=function(e,t){var n=this,r=h.manager._createNodes(this.instance);t(r);var i=r.nodes,a=r.roots,o=h.remote;o??=h.local,o._setPositions(a,n.layoutConfigs,function(t){var o=h.manager._doNotChangePositionOfClickedNodeIfAny(a,i,n.action,n.actionParams,n.oldNodes,n.config.orientation);n.state&&n.action==h.action.init&&(o=n.state.adjustify),n.action==h.action.exporting?o=n._fixAdjustForExport:n._fixAdjustForExport=o;for(var s={minX:null,minY:null,maxX:null,maxY:null},c={},l=[],u=0;u<a.length;u++)h.manager._setMinMaxXYAdjustifyIterate(a[u],a[u],s,0,c,o,n.config.orientation,l);for(var u=0;u<a.length;u++)h.manager._setChildCountPropsIterate(a[u],i);for(var d in l)for(var f in l[d]){var p=c[d][f],m=l[d][f];p.minX==null&&p.minY==null&&p.maxX==null&&p.maxY==null&&h._setMinMaxXY(m,p,!0)}e({minX:s.minX,minY:s.minY,maxX:s.maxX,maxY:s.maxY,bordersByRootIdAndLevel:c,nodes:i,roots:a,rootList:r.rootList,limit:t,adjustify:o})},i)},h===void 0&&(h={}),h.manager._initDinamicNode=function(e,t,n){t&&(e.lcn=t),n&&(e.isAssistant=!0);var r=h.t(e.templateName);e.w=r&&r.size?r.size[0]:0,e.h=r&&r.size?r.size[1]:0,e.isSplit=e.templateName==`split`,e.isMirror=e.templateName==`mirror`,e.isSubLevel=e.templateName==`subLevel`},h.manager._setCollpasedProperty=function(e,t,n,r,i,a,o,s){if(e.collapsed==null&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:e.collapsed??=!1,i==h.action.expand&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!1),i==h.action.collapse&&(n.expandIds||n.collapseIds)?n.expandIds&&n.expandIds.indexOf(e.id)!=-1?e.collapsed=!1:n.collapseIds&&n.collapseIds.indexOf(e.id)!=-1&&(e.collapsed=!0):i==h.action.collapse&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!0),i==h.action.expand&&n.ids==`all`&&(e.collapsed=!1),i==h.action.exporting&&(!h.isNEU(n.parentLevels)||!h.isNEU(n.childLevels))&&n.id!=null){if(n.id!=null&&(!h.isNEU(n.parentLevels)||!h.isNEU(n.childLevels))){var c=s[n.id];if(c==e)e.collapsed=!1;else{for(var l=!1,u=-1,d=!1,f=-1;c;){if(u++,c==e){l=!0;break}c=s[c.pid]}c=s[n.id];for(var p=s[e.id];p;){if(f++,p==c){d=!0;break}p=s[p.pid]}n.parentLevels!=null&&l&&u<=n.parentLevels||n.childLevels!=null&&d&&f<=n.childLevels||d&&n.expandChildren?e.collapsed=!1:e.collapsed=!0}}}else i==h.action.exporting&&n.expandChildren&&(e.collapsed=!1);i==h.action.init&&o!=null?e.collapsed=!o.exp.has(e.id):i==h.action.init?e.tags.indexOf(`left-partner`)!=-1||e.tags.indexOf(`right-partner`)!=-1||e.tags.indexOf(`partner`)!=-1||e.parentPartner?e.collapsed=t.collapse&&a>=t.collapse.level&&r.indexOf(e.id)==-1:e.collapsed=t.collapse&&a>=t.collapse.level-1&&r.indexOf(e.id)==-1:i==h.action.centerNode||i==h.action.insert||i==h.action.expand||i==h.action.collapse?r.has(e.id)&&(e.collapsed=!1):i==h.action.update&&n&&n.changeRoots&&n.changeRoots.has(e.id)&&(e.collapsed=!1)},h.manager._initNode=function(e,t,n,r,i,a,o){var s=o.manager.config,c=o.manager.layoutConfigs,l=o.manager.action,u=o.manager.actionParams,d=o.manager.state,f=c[n||`base`];e.parent??h.manager._setCollpasedProperty(e,f,u,i,l,r-1,d,t);for(var p=0;p<e.childrenIds.length;p++){var m=t[e.childrenIds[p]];if(h.manager._setCollpasedProperty(m,f,u,i,l,r,d,t),m.collapsed)e.collapsedChildCount++;else{if(m.parent=e,m.ppid!=null){var g=t[m.ppid];g&&(m.parentPartner=g)}(m.tags.indexOf(`left-partner`)!=-1||m.tags.indexOf(`right-partner`)!=-1||m.tags.indexOf(`partner`)!=-1||m.parentPartner)&&a.indexOf(e.id)==-1&&a.push(e.id),e.children.push(m)}}if(l==h.action.minimize&&!e.min?(u.all||u.id==e.id)&&(e.min=!0):l==h.action.maximize&&e.min===!0?(u.all||u.id==e.id)&&(e.min=!1):l==h.action.exporting&&u.min===!1?e.min=!1:l==h.action.init&&d!=null&&(e.min=d.min.has(e.id)),!e.min&&(!e.tags||!e.tags.has(`filter`)))for(var p=0;p<e.stChildrenIds.length;p++){var m=t[e.stChildrenIds[p]];m.stParent=e,e.stChildren.push(m)}r!=null&&(e.level=r),n&&(e.lcn=n);var _=h._getSubLevels(e.tags,s.tags);_>0&&(e.subLevels=_),e.tags.indexOf(`assistant`)!=-1&&e.parent!=null&&(e.isAssistant=!0),f.layout==h.layout.treeList&&(e.isTreeListItem=!0),f.template&&s.template==e.templateName&&(e.templateName=f.template);var v=h.t(e.templateName,e.min);if(e.w=v&&v.size?v.size[0]:0,e.h=v&&v.size?v.size[1]:0,e.padding=v&&v.padding?v.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&e.stParent.treeList==null){var y=h.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:y.treeListMaxHeight}}var b={node:e};h.events.publish(`node-initialized`,[o,b])},h.manager._iterate=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=d.manager.layoutConfigs;if(h.manager._initNode(t,n,c,r,l,u,d),t.isAssistant&&(a[t.pid]||(a[t.pid]=[]),a[t.pid].push(t.id)),t.subLevels>0&&o.push(t.id),h.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var p=[],m=0,g=0,_=0;_<t.parent.children.length;_++){var v=t.parent.children[_];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.children.length==0?p.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&g++:m++}(h.MIXED_LAYOUT_ALL_NODES&&p.length>1&&p.length==t.parent.children.length-m-g||!h.MIXED_LAYOUT_ALL_NODES&&p.length>1)&&(s[t.pid]=p)}}else if(!t.isAssistant&&t.childrenIds.length==0&&t.parent&&!s[t.pid]){for(var p=[],m=0,g=0,_=0;_<t.parent.children.length;_++){var v=t.parent.children[_];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.childrenIds.length==0?p.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&g++:m++}(h.MIXED_LAYOUT_ALL_NODES&&p.length>h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&p.length==t.parent.childrenIds.length-m-g||!h.MIXED_LAYOUT_ALL_NODES&&p.length>h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(s[t.pid]=p)}t.stChildren.length&&(e.stContainerNodes||=[],e.stContainerNodes.push(t));for(var y=0;y<t.stChildren.length;y++){for(var b=``,_=0;_<t.tags.length;_++)if(f[t.tags[_]]){b=t.tags[_];break}i.push(t.stChildren[y].id),h.manager._iterate(e,t.stChildren[y],n,0,i,a,o,s,b,l,u,d)}r++;for(var y=0;y<t.children.length;y++)t.isTreeListItem&&(t.children[y].isTreeListItem=t.isTreeListItem),h.manager._iterate(e,t.children[y],n,r,i,a,o,s,c,l,u,d)},h.manager.__createNodes=function(e,t,n,r,i,a,o,s){for(var c=[],l=h._addDottedLines(n),u=0;u<l.length;u++){var d=l[u],f=h.STRING_TAGS?d.tags?d.tags.split(`,`):[]:Array.isArray(d.tags)?d.tags.slice(0):[];s.filterUI.addFilterTag(d)&&f.unshift(`filter`);var p=s.searchUI.addMatchTag(d.id);p===!0?f.unshift(`match`):p===!1&&f.unshift(`no-match`);var m=h._getTemplate(f,n.tags,n.template);d&&d.template&&(m=d.template);var g=new h.node(d.id,d.pid,f,m);h.isNEU(d.ppid)||(g.ppid=d.ppid),h.isNEU(d.stpid)||(g.stpid=d.stpid),d.movex!=null&&(g.movex=d.movex),d.movey!=null&&(g.movey=d.movey),e[d.id]=g,c.push(d.id)}if(n.orderBy!=null){var _=h.manager._getOrderSortArray(n.orderBy);c.sort(function(e,t){var n,r;for(var i of l)if(i.id==e&&(n=i),i.id==t&&(r=i),n&&r)break;for(var a=0;a<_.length;a++){var o=n[_[a].field],s=r[_[a].field],c=o,u=s;if(c??=``,u??=``,typeof c==`string`&&typeof u==`string`){var d=c.localeCompare(u);if(_[a].desc&&(d*=-1),d!==0)return d}else{var d=o<s?-1:o>s?1:0;if(_[a].desc&&(d*=-1),d!==0)return d}}})}for(var u=0;u<c.length;u++){var v=c[u],g=e[v],y=a?a[v]:null,b=e[g.stpid],x=e[g.pid];if(b||(g.stpid=null),x||(g.pid=null),b){var S=a?a[b.id]:null;S&&(b.min=S.min),b.stChildrenIds.push(g.id)}else x?(y&&(g.collapsed=y.collapsed,g.min=y.min,g.treeList=y.treeList),x.childrenIds.push(g.id)):(y&&(g.collapsed=y.collapsed,g.min=y.min,g.treeList=y.treeList),t.push(g),o.push(g.id));r==h.action.init&&(g.min=h._getMin(g,n))}},h.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs,r=e.manager.action,i=e.manager.actionParams,a=e.manager.oldNodes,o=e.manager.state,s={},c=[],l=[];if(h.manager.__createNodes(s,c,t,r,i,a,l,e),t.roots!=null){c=[];for(var u=0;u<t.roots.length;u++){var d=s[t.roots[u]];if(d&&r==h.action.centerNode){for(var f=d;f.pid!=null||f.stpid!=null;)f=f.pid==null&&f.stpid!=null?s[f.stpid]:s[f.pid];for(var p=s[i.id];(p.pid!=null||p.stpid!=null)&&p!=d;)p=p.pid==null&&p.stpid!=null?s[p.stpid]:s[p.pid];f==p&&(d=f)}if(d){for(var m=!1,g=0;g<c.length;g++)if(c[g].id==d.id){m=!0;break}if(!m){if(!h.isNEU(d.pid)){var _=s[d.pid],v=_.childrenIds.indexOf(d.id);v>-1&&_.childrenIds.splice(v,1)}c.push(d)}}}t.roots=[];for(var u=0;u<c.length;u++)t.roots.push(c[u].id)}if(r==h.action.exporting&&i.id!=null)if(i.parentLevels){for(var _=s[i.id],y=0;y<i.parentLevels&&s[_.pid];)y++,_=s[_.pid];_.pid=null,c=[_]}else{var b=s[i.id];b&&(b.pid=null,c=[b])}var x=[];if(r==h.action.init&&t.expand&&t.expand.nodes&&o==null)for(var u=0;u<t.expand.nodes.length;u++){var b=s[t.expand.nodes[u]];for(t.expand.allChildren===!0&&h.manager._addExpandedNodeIdsIterate(b,s,x);b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid]}else if(r==h.action.expand&&i.ids&&i.ids!=`all`||r==h.action.collapse&&i&&i.expandIds)for(var S=r==h.action.expand?i.ids:i.expandIds,u=0;u<S.length;u++)for(var b=s[S[u]],_=s[b.pid];_;)x.push(_.id),_.pid==null&&_.stpid!=null?(_=s[_.stpid],_.min=!1):_=s[_.pid];else if(r==h.action.centerNode){for(var C=h._getCenterNodeFromParams(s,i);C;){if(x.push(C.id),i.options.parentState===h.COLLAPSE_PARENT_NEIGHBORS&&C)for(var u=0;u<C.childrenIds.length;u++){var w=s[C.childrenIds[u]];w.collapsed=!0}if(C.pid==null&&C.stpid!=null){if(C=s[C.stpid],C.min=!1,C.tags){var v=C.tags.indexOf(`filter`);v!=-1&&(C.tags.splice(v,1),e.filterUI._removeFilter(C.id))}}else C=s[C.pid]}if(C=h._getCenterNodeFromParams(s,i),i.options.childrenState===h.COLLAPSE_SUB_CHILDRENS)for(var u=0;u<C.childrenIds.length;u++){var T=s[C.childrenIds[u]];T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}if(i.options.parentState===h.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED){var _=s[C.pid];if(_)for(var u=0;u<_.childrenIds.length;u++){var T=s[_.childrenIds[u]];if(T!=C){T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}}}}else if(r==h.action.insert)for(var b=s[i.insertedNodeId];b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid];for(var O=[],k={},A=[],j={},M=[],u=0;u<c.length;u++)h.manager._iterate(c[u],c[u],s,0,O,k,A,j,``,x,M,e);if(r==h.action.collapse&&i&&Array.isArray(i.expandIds)&&Array.isArray(i.collapseIds))for(var u=0;u<i.ids.length;u++)if(i.expandIds.has(i.collapseIds[u]))console.error(`id ${i.collapseIds[u]} exist in both collapseIds and expandIds`);else{var b=s[i.collapseIds[u]];b&&(b.collapsed=!0)}for(var u=c.length-1;u>=0;u--)c[u].collapsed&&c.splice(u,1);for(var u=0;u<M.length;u++){for(var b=s[M[u]],N=[],P=[],F=[],I={},L=0,R=0,z=0,ee=[],te=[],E=0;E<b.children.length;E++){var w=b.children[E];w.isAssistant?N.push(w.id):w.tags.indexOf(`right-partner`)==-1?w.tags.indexOf(`left-partner`)==-1?w.tags.indexOf(`partner`)!=-1&&!(L%2)?(w.isPartner=1,w.children=[],P.push(w.id),L++):w.tags.indexOf(`partner`)!=-1&&L%2?(w.isPartner=2,w.children=[],F.push(w.id),L++):w.parentPartner?(I[w.parentPartner.id]||(I[w.parentPartner.id]=[]),I[w.parentPartner.id].push(w.id)):N.push(w.id):(w.isPartner=2,w.children=[],F.push(w.id)):(w.isPartner=1,w.children=[],P.push(w.id))}b.children=[];for(var B=[],E=0;E<P.length;E++){var w=s[P[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)B.push(w.childrenIds[V])}for(var ne=[],E=0;E<F.length;E++){var w=s[F[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)ne.push(w.childrenIds[V])}for(var E=0;E<ne.length;E++){var w=s[ne[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}for(var E=F.length-1;E>=0;E--)if(I[F[E]])for(var g=0;g<I[F[E]].length;g++)b.children.push(s[I[F[E]][g]]),R++,te.indexOf(F[E])==-1&&te.push(F[E]);for(var E=0;E<N.length;E++){var w=s[N[E]];b.children.push(w)}for(var E=0;E<P.length;E++)if(I[P[E]])for(var g=0;g<I[P[E]].length;g++)b.children.push(s[I[P[E]][g]]),z++,ee.indexOf(P[E])==-1&&ee.push(P[E]);for(var E=0;E<B.length;E++){var w=s[B[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}b.partnerSeparation=Math.max(te.length,ee.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,!N.length&&R&&!z?b.hasPartners=2:!N.length&&!R&&z?b.hasPartners=3:!N.length&&R==1&&z==1?b.hasPartners=4:!N.length&&!R&&!z?b.hasPartners=5:N.length&&!R&&!z?b.hasPartners=6:N.length&&(R||z)?b.hasPartners=7:b.hasPartners=1}for(var u=0;u<A.length;u++)for(var b=s[A[u]],re=b.lcn?b.lcn:`base`,ie=n[re],E=0;E<b.subLevels;E++){var H=new h.node(b.id+`_sub_level_index_`+E,b.pid,[],`subLevel`);h.manager._initDinamicNode(H,b.lcn);var _=b.parent;if(_){b.movex!=null&&(H.movex=b.movex),b.movey!=null&&(H.movey=b.movey);var v=_.children.indexOf(b);v>-1&&(_.children.splice(v,1),_.children.splice(v,0,H)),H.children.push(b),H.parent=_,b.parent=H,s[H.id]=H}}for(var U in k){var _=s[U];_.hasAssistants=!0;var H=new h.node(_.id+`_split_assitant_0`,_.id,[`assistant`],`split`);_.movex!=null&&(H.movex=_.movex),_.movey!=null&&(H.movey=_.movey),h.manager._initDinamicNode(H,_.lcn,!0),s[H.id]=H;for(var ae=[],E=_.children.length-1;E>=0;E--){var w=_.children[E];w.isAssistant?(w.parent=null,_.children.splice(E,1),ae.splice(0,0,w.id)):w.isPartner||(w.parent&&j[w.parent.id]&&H&&w.parent.id!=H.id&&(Object.defineProperty(j,H.id,Object.getOwnPropertyDescriptor(j,w.parent.id)),delete j[w.parent.id]),w.parent=H,H.children.unshift(w),_.children.splice(E,1))}if(ae.length%2){var W=s[ae[ae.length-1]],oe=new h.node(W.id+`_mirror`,_.pid,[],`mirror`);h.manager._initDinamicNode(oe,W.lcn,!0),oe.isAssistant=!0,oe.w=W.w,oe.h=W.h,s[oe.id]=oe,ae.splice(ae.length-1,0,oe.id)}for(var G=1,E=ae.length-1;E>=0;E--)if(E%2&&E!=ae.length-1){var se=new h.node(_.id+`_split_assitant_`+G,_.pid,[],`split`);h.manager._initDinamicNode(se,_.lcn,!0),_.movex!=null&&(se.movex=_.movex),_.movey!=null&&(se.movey=_.movey),s[se.id]=se,ae.splice(E,0,se.id),G++}else E%2&&ae.splice(E,0,H.id);for(var E=0;E<ae.length;E+=3){var ce=null;ce=E==0?_:s[ae[E-2]];var le=s[ae[E]],ue=s[ae[E+1]],de=s[ae[E+2]];le.parent=ce,ue.parent=ce,de.parent=ce,ce.children.push(le),ce.children.push(ue),ce.children.push(de)}}var fe=!1;for(var pe in n){var ie=n[pe];if(ie.layout!=0){fe=!0;break}}var me=h.events.has(`node-layout`,e._event_id);if(fe||me){var he={nodes:s,config:t,action:r,actionParams:i};if(A.length){var K=!1;for(var U in j){for(var S=j[U],u=0;u<S.length;u++){var b=s[S[u]];if(b.subLevels){K=!0;break}}if(K)break}if(K){var ge={},_e={},ve={};for(var U in j)for(var S=j[U],ye=!1,be=null,u=0;u<S.length;u++){var xe=S[u];(be===null||A.has(xe))&&(be=s[xe].parent.id,!ye&&!h.isNEU(s[xe].subLevels)&&(ye=s[xe].subLevels>0)),ge[be]||(ge[be]=[]),ge[be].push(xe),ye&&(ve[be]=U,_e[be]||(_e[be]=[]),_e[be].push(xe))}for(var U in j={},_e)if(_e[U].length>h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)for(var Se=ve[U],u=s[Se].children.length-1;u>=0;u--){var w=s[Se].children[u];_e[U].has(w.id)&&s[Se].children.splice(u,1)}for(var U in ge)ge[U].length>h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(j[U]=ge[U])}}for(var U in j){for(var _=s[U],Ce=_;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];var re=_.lcn?_.lcn:`base`,ie=n[re];if(ie.layout!=0||me){he.pnode=_,he.layout=ie.layout,he.layoutGridColumns=t.layoutGridColumns,he.childrenIds=j[U],he.lastChildrenPidIds=j,he.subLevels=0,he.layouts=[],h.events.publish(`node-layout`,[e,he]),h.events.publish(`layout`,[he]),he.layouts.length||he.layouts.push({layout:he.layout,childrenIds:he.childrenIds,subLevels:he.subLevels,layoutGridColumns:he.layoutGridColumns});for(var q=0;q<he.layouts.length;q++){var J=he.layouts[q];for(h.isNEU(J.subLevels)&&(J.subLevels=0),h.isNEU(J.layout)&&(J.layout=ie.layout),_=s[U],Ce=_;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];for(var we=_,E=0;E<J.subLevels;E++){var H=new h.node(q+`_sublevel_layout_`+E,we.id,[],`subLevel`);h.manager._initDinamicNode(H,we.lcn),H.parent=we,we.children.push(H),s[H.id]=H,we=H}if(J.subLevels){for(var E=0;E<J.childrenIds.length;E++){var w=s[J.childrenIds[E]],v=_.children.indexOf(w);v!=-1&&_.children.splice(v,1),w.parent=we,we.children.push(w)}_=we}if(J.layout==h.layout.grid&&J.childrenIds.length>2){J.layoutGridColumns==`dynamic`&&(J.layoutGridColumns=h._getDynamicGridCoulumns(J.childrenIds.length));for(var Te=_.id,u=_.children.length-1;u>=0;u--)for(var E=0;E<J.childrenIds.length;E++){var xe=J.childrenIds[E];if(_.children[u].id==xe){_.children.splice(u,1);break}}var Ee=J.layoutGridColumns;Ee%2!=0&&Ee>2&&Ee--;for(var u=0;u<J.childrenIds.length;u+=Ee)for(var De=null,E=0;E<Ee;E++){var Oe=u+Ee>=J.childrenIds.length;if(J.childrenIds.length-1<u+E)break;var xe=J.childrenIds[u+E],w=s[xe];w.parent=s[Te],s[Te].children.push(w),Oe||(Ee/2-1==E&&(De=new h.node(J.childrenIds[u+E-1]+`_grid_pseudo_node_`+J.childrenIds[u+E+1],Te,[],`subLevel`),h.manager._initDinamicNode(De,_.lcn),De.parent=s[Te],s[Te].children.push(De),s[De.id]=De),Ee-1==E&&(Te=De.id))}}if(J.layout==h.layout.mixed)for(var ke=J.childrenIds,u=ke.length-1;u>=0;u--){var w=s[ke[u]];_=w.parent,w.layout=h.layout.mixed;for(var E=_.children.length-1;E>=0;E--)if(w.id==_.children[E].id){_.children.splice(E,1);break}if(u>0){var Ae=s[ke[u-1]];w.parent=Ae,w.layout=h.layout.mixed,Ae.children.push(w)}else _.children.push(w)}else if(J.layout>1){var H=new h.node(q+`_`+_.id+`_split_0`,Ce.id,[],`split`);_.movex!=null&&(H.movex=_.movex),_.movey!=null&&(H.movey=_.movey),h.manager._initDinamicNode(H,_.lcn),s[H.id]=H,H.layout=J.layout;for(var je=[],u=J.childrenIds.length-1;u>=0;u--){for(var w=s[J.childrenIds[u]],E=0;E<_.children.length;E++)_.children[E].id==w.id&&_.children.splice(E,1);if(w.parent=null,w.layout=J.layout,(J.layout==h.layout.treeRightOffset||J.layout==h.layout.treeRight)&&je.splice(0,0,w.id),J.layout>2){var Me=new h.node(q+`_`+w.id+`_mirror`,Ce.id,[],`mirror`);h.manager._initDinamicNode(Me,w.lcn),Me.layout=J.layout,s[Me.id]=Me,je.splice(0,0,Me.id)}J.layout!=h.layout.treeRightOffset&&J.layout!=h.layout.treeRight&&je.splice(0,0,w.id)}for(var G=1,E=je.length-1;E>=0;E--)if(E%2&&E!=je.length-1){var se=new h.node(q+`_`+_.id+`_split_`+G,Ce.id,[],`split`);h.manager._initDinamicNode(se,_.lcn),_.movex!=null&&(se.movex=_.movex),_.movey!=null&&(se.movey=_.movey),se.layout=J.layout,s[se.id]=se,je.splice(E,0,se.id),G++}else E%2&&je.splice(E,0,H.id);for(var E=0;E<je.length;E+=3){var ce=null;E==0&&(ce=_);var le=s[je[E]],ue=s[je[E+1]],de=s[je[E+2]];E!=0&&(ce=s[je[E-3]]),E!=0&&!ue&&(ce=s[je[E-2]]),le.parent=ce,ce.children.push(le),ue&&(E!=0&&(ce=s[je[E-2]]),ue.parent=ce,ce.children.push(ue)),de&&(E!=0&&(ce=s[je[E-1]]),de.parent=ce,ce.children.push(de))}}}}}}if(h.VERTICAL_CHILDREN_ASSISTANT)for(var u=0;u<c.length;u++)h.manager._verticalAssistantIterate(c[u],s);var he={nodes:s,roots:c};return h.events.publish(`nodes-initialized`,[e,he]),{nodes:he.nodes,roots:he.roots,rootList:l}},h.manager._getOrderSortArray=function(e){if(typeof e==`string`)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var n of e)typeof n==`string`?t.push({field:n,desc:!1}):e instanceof Object?t.push(n):console.error(`Unseported orderBy value!`);return t}else if(e instanceof Object)return[e];else console.error(`Unseported orderBy value!`)},h.manager._getNodeWidth=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h}return 0},h.manager._isVisible=function(e,t,n,r,i,a,o){var s=0;if(h.LAZY_LOADING_FACTOR==`auto`){var c=a/i*2,l=o/i*2;s=Math.ceil(c>l?c:l)}else s=h.LAZY_LOADING_FACTOR/i;if(!(e.x==null||e.y==null)){if(h._getLazyLoading(t)&&r!==h.action.exporting){function t(e,t){var n=e.x,r=e.y,i=e.w,a=e.h,o=t[0]-s,c=t[2]+s+t[0],l=t[1]-s,u=t[3]+s+t[1],d=n+i>o&&c>n;return d&&=r+a>l&&u>r,d}if(t(e,n))return!0;for(var u=0;u<e.children.length;u++)if(t(e.children[u],n))return!0;return!1}return!0}},h.manager.getAllFields=function(e){var t=[h.TAGS];for(var n in e.nodeBinding)t.push(e.nodeBinding[n]);for(var n=0;n<e.nodes.length;n++)for(var r in e.nodes[n])r!==h.ID&&r!==h.TAGS&&r!==h.NODES&&r!==h.PID&&r!==h.STPID&&r!==`movex`&&r!==`movey`&&(e.nodeBinding[r]||t.has(r)||t.push(r));return t},h.manager._getMostDeepChild=function(e){if(!e)return;var t=e;function n(e){e.sl>t.sl&&(t=e);for(var r=0;r<e.children.length;r++)n(e.children[r])}return n(e),t},h.manager._getResponse=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var g=l[0],_=[],v={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},y=[[],[],[]],b=i-o+r.padding*2,x=a-s+r.padding*2,S=h.getScale(c,e,t,r.scaleInitial,r.scaleMax,r.scaleMin,b,x);if(v.top=s-r.padding,v.left=o-r.padding,v.bottom=a+r.padding-t/S,v.right=i+r.padding-e/S,v.maxX=i,v.minX=o,v.maxY=a,v.minY=s,l.length==0||c==null&&!m&&r.align==h.CENTER){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;if(C-r.padding*2>=i-o)switch(T=(i+o)/2-C/2,r.orientation){case h.orientation.right:case h.orientation.right_top:T=(o-i)/2-C/2;break}else switch(T=g.x-C/2+h.manager._getNodeWidth(g,r)/2,r.orientation){case h.orientation.right:case h.orientation.right_top:T=-(C/2-(o-i)/2),T<r.padding-C&&(T=r.padding-C);break;case h.orientation.left:case h.orientation.bottom_left:case h.orientation.top_left:case h.orientation.left_top:T=-(C/2-(i-o)/2),T>-r.padding&&(T=-r.padding);break}if(w-r.padding*2>=a-s)switch(E=(a+s)/2-w/2,r.orientation){case h.orientation.bottom:case h.orientation.bottom_left:E=(s-a)/2-w/2;break}else switch(E=-(w/2-(a-s)/2),E>-r.padding&&(E=-r.padding),r.orientation){case h.orientation.bottom:case h.orientation.bottom_left:E=-(w/2-(s-a)/2),E<r.padding-w&&(E=r.padding-w);break;case h.orientation.left:case h.orientation.right:E=g.y-w/2+h.manager._getNodeWidth(g,r)/2;break}c=[T,E,C,w]}else if(c==null&&!m&&r.align==h.ORIENTATION){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;switch(r.orientation){case h.orientation.top:T=g.x-C/2+h.manager._getNodeWidth(g,r)/2,E=-r.padding;break;case h.orientation.bottom:T=g.x-C/2+h.manager._getNodeWidth(g,r)/2,E=r.padding-w;break;case h.orientation.left:T=-r.padding,E=g.y-w/2+h.manager._getNodeWidth(g,r)/2;break;case h.orientation.right:T=r.padding-C,E=g.y-w/2+h.manager._getNodeWidth(g,r)/2;break;case h.orientation.top_left:T=-r.padding,E=-r.padding;break;case h.orientation.right_top:T=r.padding-C,E=-r.padding;break;case h.orientation.left_top:T=-r.padding,E=-r.padding;break;case h.orientation.bottom_left:T=-r.padding,E=r.padding-w;break}c=[T,E,C,w]}if(u==h.action.centerNode||u==h.action.maximize){var D=h._getCenterNodeFromParams(f,d);d.options.horizontal==1&&(c[0]=D.x+D.w/2-c[2]/2),d.options.vertical==1&&(c[1]=D.y+D.h/2-c[3]/2)}if(u==h.action.insert||u==h.action.expand||u==h.action.collapse||u==h.action.update||u==h.action.centerNode){var O=null;if(u==h.action.insert&&d&&d.insertedNodeId!=null&&d.insertedNodeId!=null)O=f[d.insertedNodeId];else if(u==h.action.update&&d&&d.visId!=null&&d.visId!=null)O=f[d.visId];else if((u==h.action.expand||u==h.action.collapse)&&d&&d.id!=null&&d.id!=null)O=f[d.id],O=h.manager._getMostDeepChild(O);else if(u==h.action.centerNode){switch(r.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:d.options.vertical||(O=f[d.id]);break;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:d.options.horizontal||(O=f[d.id]);break}O&&=h.manager._getMostDeepChild(O)}if(!h.FIXED_POSITION_ON_CLICK&&O){if(O.isTreeListItem){for(;!O.stParent;)O=O.parent;O=O.stParent}switch(r.orientation){case h.orientation.top:case h.orientation.top_left:var k=O.y+O.h-c[3]+r.padding;c[1]<k&&(c[1]=k);break;case h.orientation.bottom:case h.orientation.bottom_left:var k=O.y-r.padding;c[1]>k&&(c[1]=k);break;case h.orientation.right:case h.orientation.right_top:var k=O.x-r.padding;c[0]>k&&(c[0]=k);break;case h.orientation.left:case h.orientation.left_top:var k=O.x+O.w-c[2]+r.padding;c[0]<k&&(c[0]=k);break}}}for(var A=0;A<l.length;A++)h.manager._iterate2(l[A],f,r,c,u,d,_,p,n,y,S,e,t);return{animations:y,boundary:v,viewBox:c,visibleNodeIds:_,nodes:f,allFields:h.manager.getAllFields(r)}},h.manager._iterate2=function(e,t,n,r,i,a,o,s,c,l,u,d,f){if(h.manager._isVisible(e,n,r,i,u,d,f)){o.push(e.id);var p=null;if((i==h.action.expand||i==h.action.collapse||i==h.action.maximize)&&s&&s[e.id]&&a.method==`expandCollapseToLevel`){var m=s[e.id];if(p={x:m.x,y:m.y},m){p={x:m.x,y:m.y};for(var g=e,_=null;g!=null;)s[g.id]&&s[g.id].collapsed&&(_=g),g=g.parent;_&&_.parent&&(p={x:_.parent.x,y:_.parent.y})}var v=t[a.id];if(v){for(var g=e.parent;g!=null;)g=g.parent;g&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if((i==h.action.expand||i==h.action.collapse)&&s&&s[e.id]){var m=s[e.id];if(p={x:m.x,y:m.y},a.ids==`all`&&m){p={x:m.x,y:m.y};for(var g=e,_=null;g!=null;)s[g.id]&&s[g.id].collapsed&&(_=g),g=g.parent;_&&_.parent&&(p={x:_.parent.x,y:_.parent.y})}var v=t[a.id];if(v){for(var g=e.parent;g!=null&&a.ids.indexOf(e.id)==-1&&a.ids.indexOf(g.id)==-1;)g=g.parent;g&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==h.action.centerNode&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=h._getCenterNodeFromParams(t,a);if(y&&y==e){var g=e.parent;g&&g.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==h.action.maximize&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=h._getCenterNodeFromParams(t,a);if(y&&y==e){var g=e.parent;g&&g.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==h.action.minimize&&s&&s[e.id]){var m=s[e.id];p={x:m.x,y:m.y}}else if(i==h.action.insert&&a&&a.insertedNodeId==e.id&&e.parent)p={x:e.parent.x,y:e.parent.y};else if((i==h.action.update||i==h.action.insert)&&s){var m=s[e.id];if((!m||h.isNEU(m.x)&&h.isNEU(m.y))&&a){var v=t[a.id];if(v){for(var g=v;g&&g.id==e.id;)g=g.parent;g&&(p={x:v.x,y:v.y})}}else m&&(p={x:m.x,y:m.y})}else i!==h.action.exporting&&i!==h.action.init&&c.indexOf(e.id)==-1&&(l[0].push(e.id),l[1].push({opacity:0}),l[2].push({opacity:1}));p!=null&&p.x!=null&&p.y!=null&&(p.x!=e.x||p.y!=e.y)&&!(a&&a.dragNodeIdList&&a.dragNodeIdList.indexOf(e.id)!=-1)&&!e.isSplit&&(l[0].push(e.id),l[1].push({transform:[1,0,0,1,p.x,p.y]}),l[2].push({transform:[1,0,0,1,e.x,e.y]}))}for(var b=0;b<e.stChildren.length;b++)h.manager._iterate2(e.stChildren[b],t,n,r,i,a,o,s,c,l,u,d,f);for(var b=0;b<e.children.length;b++)h.manager._iterate2(e.children[b],t,n,r,i,a,o,s,c,l,u,d,f)},h.manager._addExpandedNodeIdsIterate=function(e,t,n){for(var r=0;r<e.childrenIds.length;r++)n.push(e.childrenIds[r]),h.manager._addExpandedNodeIdsIterate(t[e.childrenIds[r]],t,n)},h.manager._setChildCountPropsIterate=function(e,t){e.w===void 0&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var n=t[e.pid];n;)n.deepCollapsedChildCount+=e.collapsedChildCount,n.deepChildCount+=e.childCount,n=t[n.pid];for(var r of e.stChildrenIds)h.manager._setChildCountPropsIterate(t[r],t);for(var r of e.childrenIds)h.manager._setChildCountPropsIterate(t[r],t)},h.manager._setMinMaxXYAdjustifyIterate=function(e,t,n,r,i,a,o,s){e.x+=a.x,e.y+=a.y;for(var c of e.stChildren)h.manager._setMinMaxXYAdjustifyIterate(c,c,n,0,i,a,o,s);e.isPartner?e.sl=r-1:e.sl=r,i[t.id]??(i[t.id]={}),i[t.id][e.sl]??(i[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(s[t.id]??(s[t.id]={}),s[t.id][e.sl]??(s[t.id][e.sl]=e)):h._setMinMaxXY(e,i[t.id][e.sl],!0),e.movex!=null&&(e.x+=e.movex),e.movey!=null&&(e.y+=e.movey),h._setMinMaxXY(e,n,!0),r++;for(var c of e.children)h.manager._setMinMaxXYAdjustifyIterate(c,t,n,r,i,a,o,s)},h.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,n,r,i,a){if(n!=h.action.expand&&n!=h.action.collapse&&n!=h.action.minimize&&n!=h.action.maximize&&n!=h.action.centerNode&&n!=h.action.update&&n!=h.action.insert)return{x:0,y:0};if(n==h.action.update&&(!r||r.id==null)){if(!e||!e.length)return{x:0,y:0};r={id:e[0].id}}if(r.id==null)return{x:0,y:0};var o=r.id;(n==h.action.minimize&&t[o].parent||n==h.action.maximize&&t[o].parent)&&(o=t[o].pid);var s=t[o],c=i[o];if(!c)return{x:0,y:0};var l=c.movex==null?0:c.movex,u=c.movey==null?0:c.movey,d={x:(c.x?c.x-l:0)-s.x,y:(c.y?c.y-u:0)-s.y};return s&&s.isTreeListItem?{x:0,y:0}:d},h.manager._verticalAssistantIterate=function(e,t){for(var n=0;n<e.stChildren.length;n++)h.manager._verticalAssistantIterate(e.stChildren[n],t);if(e.children.length==3)h.manager._verticalAssistantIterate(e.children[0],t),h.manager._verticalAssistantIterate(e.children[2],t),h.manager._verticalAssistantIterate(e.children[1],t);else for(var n=0;n<e.children.length;n++)h.manager._verticalAssistantIterate(e.children[n],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var r=e.parent.children[0],i=e.parent.children[2],a=e.parent;!a.hasAssistants;)a=a.parent;var o={max:0},s={max:0};h.manager._verticalAssistantLevelCountIterate(r,0,o),h.manager._verticalAssistantLevelCountIterate(i,0,s);for(var c=Math.max(o.max,s.max),l=[],n=0;n<c;n++){var u=new h.node(e.parent.id+`_split_assitant_level_`+n,e.pid,[],`subLevel`);h.manager._initDinamicNode(u,e.lcn,!0),a.movex!=null&&(u.movex=a.movex),a.movey!=null&&(u.movey=a.movey),n>0&&(l[n-1].children.push(u),u.parent=l[n-1]),t[u.id]=u,l.push(u)}if(l.length){for(var d=l[l.length-1],f=l[0],p=e.children.length-1;p>=0;p--){var m=e.children[p];d.children.unshift(m),m.parent=d,e.children.splice(p,1)}e.children.push(f),f.parent=e}}},h.manager._verticalAssistantLevelCountIterate=function(e,t,n){n.max<t&&(n.max=t),t++;for(var r=0;r<e.children.length;r++)h.manager._verticalAssistantLevelCountIterate(e.children[r],t,n)},h._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var n=[],r=0;r<e.groupDottedLines.length;r++){var i=e.groupDottedLines[r];i.rootId??=i.to;var a=`balkan_group_dotted_${i.rootId}`;if(!n.has(a)){for(var o=0;o<t.length;o++)if(t[o].id==i.rootId){var s=JSON.parse(JSON.stringify(t[o]));s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=void 0,s.stpid=t[o].id,t.push(s),n.push(a),t[o].tags||(t[o].tags=[]),t[o].tags.push(`group-dotted-lines`),t[o].tags.push(`group-dotted-lines-`+a);break}}for(var o=0;o<t.length;o++)if(t[o].id==i.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=`balkan_group_dotted_${i.rootId}_balkan_id_${i.to}`,s.tags){var c=s.tags.indexOf(`group-dotted-lines`);c!=-1&&s.tags.splice(c,1)}if(s.tags||=[],s.tags.push(`boc-dotted-connector`),i.tags)for(var l=0;l<i.tags.length;l++)s.tags.push(i.tags[l]);t.push(s);break}}if(e.dottedLines.length)for(var r=0;r<e.dottedLines.length;r++){var u=e.dottedLines[r];u.rootId??=u.to;for(var o=0;o<t.length;o++)if(t[o].id==u.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_dotted_${u.rootId}_balkan_id_${t[o].id}`,u.rootId==u.to?s.pid=u.to:s.pid=`balkan_dotted_${u.rootId}_balkan_id_${u.to}`,s.tags||=[],s.tags.push(`boc-dotted-connector`),u.tags)for(var l=0;l<u.tags.length;l++)s.tags.push(u.tags[l]);t.push(s);break}}return t},h===void 0&&(h={}),h.templates={},h.templates.base={defs:``,size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,node:`<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`,plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
381
|
+
</svg>`},_===void 0&&(_={}),_.events=(function(){var e={};return{on:function(t,n,r){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:n,event_id:r})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,n,r){var i=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var a=e[t].length-1;a>=0;a--)(!_.isNEU(r)&&!_.isNEU(n)&&e[t][a].event_id==r&&e[t][a].listener==n||!_.isNEU(r)&&_.isNEU(n)&&e[t][a].event_id==r||_.isNEU(r)&&!_.isNEU(n)&&e[t][a].listener==n||_.isNEU(r)&&_.isNEU(n))&&(e[t].splice(a,1),i=!0);return i},has:function(t,n){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(_.isNEU(n))return!0;for(var r=0;r<e[t].length;r++)if(e[t][r].event_id==n)return!0}return!1},removeForEventId:function(t){for(var n in e)if(Array.isArray(e[n]))for(var r=e[n].length-1;r>=0;r--)e[n][r].event_id==t&&e[n].splice(r,1)},publish:function(t,n){if(e[t]){for(var r=[],i=0;i<e[t].length;i++){var a=e[t][i];(a.event_id==null||a.event_id==n[0]._event_id)&&r.push(a.listener)}if(r.length>0){for(var o=!0,i=0;i<r.length&&(n.length==1?o=r[i](n[0])&&o:n.length==2?o=r[i](n[0],n[1])&&o:n.length==3?o=r[i](n[0],n[1],n[2])&&o:n.length==4?o=r[i](n[0],n[1],n[2],n[3])&&o:n.length==5&&(o=r[i](n[0],n[1],n[2],n[3],n[4])&&o),o!==!1);i++);return o}}}}})(),_.prototype.expand=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,_.action.expand,r,n)},_.prototype.collapse=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,_.action.collapse,r,n)},_.prototype.expandCollapse=function(e,t,n,r){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(n)||(n=[]);var i={id:e,expandIds:t,collapseIds:n,ids:t.concat(n)};this._draw(!1,_.action.collapse,i,r)},_.prototype.changeRoots=function(e,t,n){this.config.roots=t;var r={id:e,changeRoots:t};this._draw(!1,_.action.update,r,n)},_.prototype._resetMovableNodes=function(){if(_.RESET_MOVABLE_ONEXPANDCOLLAPSE&&this.config.movable!=null){for(var e=!1,t=0;t<this.config.nodes.length;t++){var n=this.config.nodes[t];n.movex!=null&&(n.movex=0,e=!0),n.movey!=null&&(n.movey=0,e=!0)}e&&(this._ai.setContext(),_.events.publish(`updated`,[this]))}},_.prototype.maximize=function(e,t,n,r){var i=this,a={id:e,options:{}};_.isNEU(a.id)&&(a.id=this.roots[0].id,a.all=!0),a.options.horizontal=!1,a.options.vertical=!1,t&&(a.options.horizontal=t),n&&(a.options.vertical=n),this._draw(!1,_.action.maximize,a,function(){i.ripple(e),r&&r()})},_.prototype.minimize=function(e,t){var n=this,r={id:e};_.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),this._draw(!1,_.action.minimize,r,function(){n.ripple(e),t&&t()})},_.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),n=this.getCollapsedIds(t);if(n.length){var r=_.events.publish(`expcollclick`,[this,!1,e,n]);if(r===!1)return!1;this.expand(e,n,!1)}else{var r=_.events.publish(`expcollclick`,[this,!0,e,t.childrenIds]);if(r===!1)return!1;this.collapse(e,t.childrenIds,!1)}},_.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(_.events.publish(`up-click`,[this,t])===!1)return!1;this.changeRoots(t.id,t.roots,!1)},_.prototype._upHandlerCreateArgs=function(e){var t=this.getNode(e),n=Object.assign([],this.config.roots),r=this.getNode(t.pid),i;if(r&&(i=r),i){if(Array.isArray(n)){var a=n.indexOf(t.id);a!=-1&&n.splice(a,1)}else n=[];n.push(i.id)}return{id:t.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,`g`),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}),String.prototype.splice||(String.prototype.splice=function(e,t,n){return this.slice(0,e)+n+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,`unique`,{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var n=t+1;n<e.length;++n)e[t]===e[n]&&e.splice(n--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,`has`,{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,`compare`,{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,`assign`,{value:function(e,t){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),_.prototype._globalMouseDownHandler=function(e,t){var n={move:`mousemove`,up:`mouseup`,leave:`mouseleave`};t.type.indexOf(`touch`)!=-1&&(t.touches.length==1?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,n={move:`touchmove`,up:`touchend`,touchstart:`touchstart`}),this._treeListUpdateInterval&&=(clearInterval(this._treeListUpdateInterval),null);for(var r=null,i=t.target;i!=e&&!i.hasAttribute(_.attr.control_node_menu_id)&&!i.hasAttribute(_.attr.control_node_circle_menu_id);){if(i.hasAttribute){var a=null;i.hasAttribute(_.attr.node_id)?a=this.getNode(i.getAttribute(_.attr.node_id)):i.hasAttribute(_.attr.control_expcoll_id)?a=this.getNode(i.getAttribute(_.attr.control_expcoll_id)):(i.hasAttribute(_.attr.control_node_menu_id)||i.hasAttribute(_.attr.control_node_menu_id))&&(a=this.getNode(i.getAttribute(_.attr.control_node_menu_id))),r||=_._getScrollableTreeListNodeInTouchEnabledDevice(a)}if(i.hasAttribute(_.attr.node_id)&&!r&&(this.config.enableDragDrop||this.config.movable)){if(t.touches==null||t.touches.length<=1){this._nodeMouseDownHandler(i,t,n);return}}else if(i.hasAttribute(_.attr.control_node_circle_menu_name)){if(t.stopPropagation(),t.touches==null||t.touches.length<=1){this._nodeCircleNodeMenuItemMouseDownHandler(e,i,t,n);return}}else if(i.hasAttribute(`data-treelist-thumb`)&&(t.stopPropagation(),t.touches==null||t.touches.length<=1)){this._treeListThumbMouseDownHandler(i,t,n);return}i=i.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,n,r)},_.prototype._globalContextHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeContextHandler(i.id,t);return}n=n.parentNode}},_.prototype._nodeContextHandler=function(e,t){t.preventDefault(),_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.get(e),r=null;if(n!=null&&Array.isArray(n.tags))for(var i=0;i<n.tags.length;i++){var a=n.tags[i];this.config.tags[a]&&this.config.tags[a].nodeContextMenu&&(r=this.config.tags[a].nodeContextMenu)}var o=this.element.getBoundingClientRect(),s=t.clientX-o.left,c=t.clientY-o.top;this.nodeContextMenuUI.show(s,c,e,null,r)},_.prototype._globalDbClickHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeDbClickHandler(i.id,t);return}n=n.parentNode}},_.prototype._mouseScrollHandler=function(e,t){for(var n=!1,r=t.target,i=null;r&&r.hasAttribute&&!r.hasAttribute(`data-n-id`)&&!r.hasAttribute(`data-ctrl-ec-id`);)r=r.parentNode;if(r.hasAttribute&&r.hasAttribute(`data-n-id`)){var a=r.getAttribute(`data-n-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}if(r.hasAttribute&&r.hasAttribute(`data-ctrl-ec-id`)){var a=r.getAttribute(`data-ctrl-ec-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}t.ctrlKey&&(n=!1),n?this.__mouseScrollHandlerTreeList(i,t):this.__mouseScrollHandler(this.getSvg(),t)},_.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==_.action.zoom)return}else if(this.config.mouseScrool==_.action.ctrlZoom||this.config.mouseScrool!=_.action.zoom)return;if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let r=t.deltaY/1e3;r=Math.abs(r)<.1?.1*t.deltaY/Math.abs(t.deltaY):r;var n=_._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-r,n)}else{var r=this,i=!1,a=this.config.zoom.speed,o=this.config.zoom.smooth,s=0,c=this.getScale(),n=_._centerPointInPercent(e,t.clientX,t.clientY);function d(){i=!0;var e=(s-c)/o;e>0?e++:e--,c+=e,r.zoom(1-e/12/50,n),parseInt(c)==parseInt(s)?i=!1:l(d)}var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}();t.preventDefault();var u=t.delta||t.wheelDelta;u===void 0&&(u=-t.detail),u=Math.max(-1,Math.min(1,u)),s+=-u*a,i||d()}},_.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,n,r){var i=t.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),a=t.getAttribute(_.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[a];if(!o.draggable){this._clickHandler(e,n);return}var s=this,c=_._getClientXY(n),l=this.getNode(i);t._dragEventFired=!1;var u=s.getScale(),d=null,f=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var p=this.getSvg(),m={x:c.x,y:c.y},h=function(e){for(;e&&!e.hasAttribute(_.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(!e){console.error(`cannot find parent`+_.attr.control_node_circle_menu_wrraper_id);return}var t=_._getTransform(e);return{x:t[4],y:t[5]}},g=t.cloneNode(!0);p.insertBefore(g,p.firstChild);var v=_._getTransform(g),y=v[4],b=v[5],x=h(t);g.setAttribute(`transform`,`matrix(1,0,0,1,`+(y+x.x)+`,`+(b+x.y)+`)`),g.style.opacity=.7;var S=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=_.getStParentNodes(s.getNode(d)),r=0;r<n.length;r++){var i=s.getNodeElement(n[r].id);i&&(i.style.opacity=1)}}},C=function(e){if(m){var n=_._getClientXY(e),r=e.target;_.isMobile()&&(r=document.elementFromPoint(n.x,n.y)),n.x+=x.x*u,n.y+=x.y*u;var i=_._getOffsetXY(s.element,e),c={left:s.width()-(i.x+s.config.padding)<0,right:i.x-s.config.padding<0,up:s.height()-(i.y+s.config.padding)<0,down:i.y-s.config.padding<0};if(c.left||c.right||c.up||c.down){p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.add(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`));var l=v[4],h=v[5],C=m.x,T=m.y,E=n.x,D=n.y;s.moveStart(c,function(e){v[4]=l+e.x,v[5]=h+e.y,m.x=C-e.xWithoutScale,m.y=T-e.yWithoutScale,n.x=E-e.xWithoutScale,n.y=D-e.yWithoutScale,g.setAttribute(`transform`,`matrix(`+v.toString()+`)`)})}else{for(s.moveEnd(),p.classList&&(p.classList.add(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),S(d,f),d=null,f=null;r!=null&&r!=p;){if(r.hasAttribute&&r.hasAttribute(_.attr.node_id)){var O=r.getAttribute(_.attr.node_id);d=O,f=r;break}r=r.parentNode}if(d!=null){f.classList.add(`boc-drag-over`);for(var k=s.getNode(d),A=_.getStParentNodes(k),j=0;j<A.length;j++){var M=s.getNodeElement(A[j].id);M&&(M.style.opacity=.1)}p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.add(`boc-cursor-copy`),p.classList.remove(`boc-cursor-nodrop`)}var N=(n.x-m.x)/u,P=(n.y-m.y)/u;v[4]=y+N,v[5]=b+P,!t._dragEventFired&&(Math.abs(n.x-m.x)>_.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-m.y)>_.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(s._gragStartedId=t.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),_.events.publish(`drag`,[s.nodeCircleMenuUI,{from:O,menuItem:o,menuItemName:a}])===!1&&w(),t._dragEventFired=!0),g.setAttribute(`transform`,`matrix(`+v.toString()+`)`)}}},w=function(e){if(s.moveEnd(),p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),p.removeEventListener(r.move,C),p.removeEventListener(r.up,w),r.leave&&p.removeEventListener(r.leave,w),l.id==d||d==null){p.removeChild(g),s._gragStartedId=null,t._dragEventFired&&_.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,menuItemName:a,menuItem:o,event:e}]);return}var n=s.getNode(d);_.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,to:n.id,menuItem:o,menuItemName:a,event:e}]),S(d,f),p.removeChild(g),s._gragStartedId=null};p.addEventListener(r.move,C),p.addEventListener(r.up,w),r.leave&&p.addEventListener(r.leave,w)},_.prototype._nodeMouseDownHandler=function(e,t,n){var r=e.getAttribute(_.attr.node_id),i=this.getNode(r);this.config.movable&&!_.getRootOf(i).stParent?this._movableHandler(e,t,n):this.config.enableDragDrop&&this._dragDropHandler(e,t,n)},_.prototype._resizeHandler=function(e,t){if(this.isVisible&&!(e==0||t==0)){var n=this.getViewBox();if(n){n=n.slice(0);var r=e/n[2],i=t/n[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?n[3]=t/r:n[2]=e/i,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(n),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,_.action.resize)}}},_.prototype._nodeDbClickHandler=function(e,t){if(_.events.publish(`dbclick`,[this,this.get(e)])===!1)return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},_.prototype._nodeClickHandler=function(e,t){if(_.events.publish(`click`,[this,{node:this.getNode(e),event:t}])===!1)return!1;if(this.powerPointPreviewUI.isVisible()&&this.powerPointPreviewUI.selectedPage!=null){this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pdfPreviewUI.isVisible()&&this.pdfPreviewUI.selectedPage!=null){this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.svgPreviewUI.isVisible()&&this.svgPreviewUI.selectedPage!=null){this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pngPreviewUI.isVisible()&&this.pngPreviewUI.selectedPage!=null){this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}var n=this.getNodeElement(e);if(n&&n._dragEventFired){n._dragEventFired=!1;return}this._commonClickHandler(e,t,this.config.nodeMouseClick)},_.prototype._nodeCircleMenuItemClickHandler=function(e,t){var n=e.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),r=e.getAttribute(_.attr.control_node_circle_menu_name),i=this.nodeCircleMenuUI._menu[r];_.events.publish(`click`,[this.nodeCircleMenuUI,{nodeId:n,menuItemName:r,menuItem:i,event:t}])},_.prototype._nodeCircleMenuClickHandler=function(e){if(_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),n=null;if(Array.isArray(t.tags))for(var r=0;r<t.tags.length;r++){var i=t.tags[r];this.config.tags[i]&&this.config.tags[i].nodeCircleMenu&&(n=this.config.tags[i].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,n)}},_.prototype._commonClickHandler=function(e,t,n){if(_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),n==_.action.expandCollapse&&this.toggleExpandCollapse(e,t),n==_.action.edit){var r=this.getNode(e);r&&(this.editUI.show(r.id),this.ripple(r.id,t.clientX,t.clientY))}if(n==_.action.details){var r=this.getNode(e);r&&(this.editUI.show(r.id,!0),this.ripple(r.id,t.clientX,t.clientY))}},_.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},_.prototype._nodeMenuClickHandler=function(e,t,n){_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var r=this.getNode(e),i=null;if(Array.isArray(r.tags))for(var a=0;a<r.tags.length;a++){var o=r.tags[a];this.config.tags[o]&&this.config.tags[o].nodeMenu&&(i=this.config.tags[o].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,i)},_.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},_.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};this.addNode(e,null,!0)!==!1&&this.center(e.id)},_.prototype.toggleExpandCollapse=function(e,t){var n=this.getNode(e),r=this.getCollapsedIds(n);if(r.length){var i=_.events.publish(`expcollclick`,[this,!1,e,r]);if(i===!1)return!1;this.expand(e,r,!1)}else{var i=_.events.publish(`expcollclick`,[this,!0,e,n.childrenIds]);if(i===!1)return!1;this.collapse(e,n.childrenIds,!1)}t&&this.ripple(n.id,t.clientX,t.clientY)},_.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.control_expcoll_id)){var r=n.getAttribute(_.attr.control_expcoll_id),i=this.getNode(r);this._expCollHandler(i.id);return}if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeClickHandler(i.id,t);return}if(n.hasAttribute(_.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(_.attr.control_node_menu_id),i=this.getNode(r);this._nodeMenuClickHandler(i.id,n,t);return}if(n.hasAttribute(_.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(_.attr.control_node_circle_menu_id);this._nodeCircleMenuClickHandler(r);return}if(n.hasAttribute(_.attr.control_node_circle_menu_name)){t.stopPropagation(),this._nodeCircleMenuItemClickHandler(n,t);return}if(n.hasAttribute(_.attr.control_add)){this._lonelyButtonHandler();return}if(n.hasAttribute(_.attr.control_up_id)){var r=n.getAttribute(_.attr.control_up_id);t.stopPropagation(),t.preventDefault(),this._upHandler(r);return}if(n.hasAttribute(_.attr.c_link_from)){_.events.publish(`clink-click`,[this,{from:n.getAttribute(_.attr.c_link_from),to:n.getAttribute(_.attr.c_link_to),event:t}]);return}if(n.hasAttribute(_.attr.s_link_from)){_.events.publish(`slink-click`,[this,{from:n.getAttribute(_.attr.s_link_from),to:n.getAttribute(_.attr.s_link_to),event:t}]);return}if(n.hasAttribute(`data-ctrl-n-dotted-close`)){var r=n.getAttribute(`data-ctrl-n-dotted-close`);this.minimize(r);return}if(n.hasAttribute(`data-ctrl-n-dotted-open`)){var r=n.getAttribute(`data-ctrl-n-dotted-open`);this.maximize(r);return}n=n.parentNode}_.events.publish(`canvas-click`,[this,{event:t}])}},_.prototype._mouseDownHandler=function(e,t,n,r){var i=this;_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var a=this.getViewBox(),o=this.getScale(),s=_._getClientTouchesXY(t,0),c=_._getClientTouchesXY(t,1),l={diffX:0,diffY:0,x0:s.x,y0:s.y,type:this.config.enablePan?`pan`:`pan-not-enabled`,viewBoxLeft:a[0],viewBoxTop:a[1],time:Date.now()};t.touches&&t.touches.length>1&&(l.type=`pinch`,l.dist=Math.sqrt((s.x-c.x)*(s.x-c.x)+(s.y-c.y)*(s.y-c.y)));var u=null;if(r){var d=r.stChildren[0].lcn?r.stChildren[0].lcn:`base`;u=i.manager.layoutConfigs[d],l.scrollTop=r.treeList.scrollTop}var f=0,p=function(e){var t=_._getClientTouchesXY(e,0);if(l&&l.type==`pan`){clearTimeout(i._timeout),l.diffX=t.x-l.x0,l.diffY=t.y-l.y0,f=Math.max(Math.abs(l.diffY),Math.abs(l.diffX));var n=-(l.diffY/o)+l.viewBoxTop,s=-(l.diffX/o)+l.viewBoxLeft;f>3&&(r?(r.treeList.scrollTop=l.scrollTop-l.diffY/o,i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdate(r,u)):(i._hideBeforeAnimation(),i._changeCursorOnPanStart(a,o,e),i._move(n,s,a)))}else if(l&&l.type==`pinch`){var c=_._getClientTouchesXY(e,1),d=Math.sqrt((t.x-c.x)*(t.x-c.x)+(t.y-c.y)*(t.y-c.y)),p=1+(d-l.dist)/(l.dist/100)/100;l.dist=d;var m=_._pinchMiddlePointInPercent(i.element,i.width(),i.height(),e);i.zoom(p,m)}},m=function(t){if(f<3&&l.type!=`pinch`&&(t.touches==null||t.touches.length<=1))i._clickHandler(e,t);else if(l.type==`pan`&&r){var a=Date.now()-l.time,o=Math.abs(f/a);if(o>.5){var s=r.treeList.scrollTop,c=s+o*400*(l.diffY>0?-1:1),d=r.stChildren[0].h;c=Math.round(c/d)*d,c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=_.animate(null,{},{},1500,_.anim.outExp,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}else{var s=r.treeList.scrollTop,d=r.stChildren[0].h,c=Math.round(r.treeList.scrollTop/d)*d;c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=_.animate(null,{},{},200,_.anim.outSin,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}}else l.type==`pan`&&!r&&f>10&&i._draw(!0,_.action.pan);l.type==`pan`&&!r&&i._changeCursorOnPanEnd(),l=null,e.removeEventListener(n.move,p),e.removeEventListener(n.up,m),n.leave&&e.removeEventListener(n.leave,m),n.touchstart&&e.removeEventListener(n.touchstart,m)};e.addEventListener(n.move,p,{passive:!0}),e.addEventListener(n.up,m),n.leave&&e.addEventListener(n.leave,m),n.touchstart&&e.addEventListener(n.touchstart,m,{passive:!0})},_.prototype._changeCursorOnPanStart=function(e,t,n){var r=this.getPointerElement();if(r){var i=_._getOffsetXY(this.element,n),a=i.x/t+e[0]-16/t,o=i.y/t+e[1]-16/t;r.style.display=`inherit`,r.setAttribute(`transform`,`matrix(0,0,0,0,`+a+`,`+o+`)`),_.animate(r,{transform:[0,0,0,0,a,o],opacity:0},{transform:[1/t,0,0,1/t,a,o],opacity:1},300,_.anim.outBack)}else this.element.style.cursor=`move`},_.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display=`none`:this.element.style.cursor=`initial`},_.prototype._move=function(e,t,n){n[0]=t,n[1]=e,this.setViewBox(n),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},_.prototype.moveStart=function(e,t,n,r){if(!e){console.error(`movePosition parameter not defined`);return}if(this._moveInterval)return;var i=this,a=this.getViewBox().slice(0),o=this.getScale(),s=0,c=0,l=10,u=1,d=1;_.isNEU(n)&&(n=_.anim.inSin),_.isNEU(r)&&(r=3e3);function f(){var f={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(s++,f.x=s*_.MOVE_STEP/o,f.xWithoutScale=s*_.MOVE_STEP):e.right&&(s++,f.x=-(s*_.MOVE_STEP)/o,f.xWithoutScale=-(s*_.MOVE_STEP)),e.up?(c++,f.y=c*_.MOVE_STEP/o,f.yWithoutScale=c*_.MOVE_STEP):e.down&&(c++,f.y=-(c*_.MOVE_STEP)/o,f.yWithoutScale=-(c*_.MOVE_STEP));var p=n((d*l-l)/r);f.x*=p,f.xWithoutScale*=p,f.y*=p,f.yWithoutScale*=p,i.setViewBox([a[0]+f.x,a[1]+f.y,a[2],a[3]]),t&&t(f),d+=u}this._moveInterval=setInterval(f,l)},_.prototype.moveEnd=function(){this._moveInterval&&=(clearInterval(this._moveInterval),null)},_===void 0&&(_={}),_.node=function(e,t,n,r){this.templateName=r,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=n,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||=[]},_===void 0&&(_={}),_.idb={version:1,dbName:`BALKAN`,tableName:`orgchart-js`,keyPath:`id`},_.idb.db=null,_.idb._open=function(e){if(_._browser().msie){e&&e(!1);return}if((navigator.userAgent.toLowerCase().indexOf(`safari`)>0||navigator.userAgent.toLowerCase().indexOf(`firefox`)>0)&&window.location!==window.parent.location){e&&e(!1);return}if(!window.indexedDB){console.error(`Your browser doesn't support a stable version of IndexedDB.`),e&&e(!1);return}if(_.idb.db!=null){e&&e(!0);return}var t=indexedDB.open(_.idb.dbName,_.idb.version);t.onerror=function(t){console.error(`Cannot open database!`),e&&e(!1)},t.onsuccess=function(t){_.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(_.idb.tableName)&&t.deleteObjectStore(_.idb.tableName),t.createObjectStore(_.idb.tableName,{keyPath:_.idb.keyPath})}},_.idb.read=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName]).objectStore(_.idb.tableName).get(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.result?t&&t(!0,r.result):t&&t(null)}}else t&&t(!1)})},_.idb.write=function(e,t){_.idb.read(e.id,function(n){if(n==null){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.idb.tableName).add(e);r.onerror=function(e){console.error(`Unable to add data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(n)})},_.idb.put=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.idb.tableName).put(e);r.onerror=function(e){console.error(`Unable to put data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},_.idb.delete=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.idb.tableName).delete(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},_===void 0&&(_={}),_.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},_.manager.prototype.read=function(e,t,n,r,i,a,o,s){var c=this;_.state._get(this.config.state,t,n,function(l){c.state=l,c.action=i,c.actionParams=a,i!=_.action.init||!c.state||a&&a.method&&a.method==`fit`?(c.viewBox=r,c.vbIsInitializedFromState=!1):(c.viewBox=c.state.vb,c.vbIsInitializedFromState=!0,Array.isArray(c.state.roots)&&(c.config.roots=c.state.roots));var u=c.maxX,d=c.maxY,f=c.minX,p=c.minY,m=c.bordersByRootIdAndLevel,h=c.roots,g=c.nodes;if(!e)g?c.oldNodes=g:c.oldNodes=null,c._read(function(e){u=e.maxX,d=e.maxY,f=e.minX,p=e.minY,m=e.bordersByRootIdAndLevel,h=e.roots,g=e.nodes;var r=_.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);r.notif=e.limit,r.roots=h,r.bordersByRootIdAndLevel=m,r.adjustify=e.adjustify,i!=_.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=r.visibleNodeIds,c.bordersByRootIdAndLevel=m,c.rootList=e.rootList),o(r)},s);else{var v=_.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);i!=_.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=v.visibleNodeIds),v.bordersByRootIdAndLevel=m,v.roots=h,v.adjustify={x:0,y:0},c.state&&(v.adjustify=c.state.adjustify),o(v)}})},_.manager.prototype._read=function(e,t){var n=this,r=_.manager._createNodes(this.instance);t(r);var i=r.nodes,a=r.roots,o=_.remote;o??=_.local,o._setPositions(a,n.layoutConfigs,function(t){var o=_.manager._doNotChangePositionOfClickedNodeIfAny(a,i,n.action,n.actionParams,n.oldNodes,n.config.orientation);n.state&&n.action==_.action.init&&(o=n.state.adjustify),n.action==_.action.exporting?o=n._fixAdjustForExport:n._fixAdjustForExport=o;for(var s={minX:null,minY:null,maxX:null,maxY:null},c={},l=[],u=0;u<a.length;u++)_.manager._setMinMaxXYAdjustifyIterate(a[u],a[u],s,0,c,o,n.config.orientation,l);for(var u=0;u<a.length;u++)_.manager._setChildCountPropsIterate(a[u],i);for(var d in l)for(var f in l[d]){var p=c[d][f],m=l[d][f];p.minX==null&&p.minY==null&&p.maxX==null&&p.maxY==null&&_._setMinMaxXY(m,p,!0)}e({minX:s.minX,minY:s.minY,maxX:s.maxX,maxY:s.maxY,bordersByRootIdAndLevel:c,nodes:i,roots:a,rootList:r.rootList,limit:t,adjustify:o})},i)},_===void 0&&(_={}),_.manager._initDinamicNode=function(e,t,n){t&&(e.lcn=t),n&&(e.isAssistant=!0);var r=_.t(e.templateName);e.w=r&&r.size?r.size[0]:0,e.h=r&&r.size?r.size[1]:0,e.isSplit=e.templateName==`split`,e.isMirror=e.templateName==`mirror`,e.isSubLevel=e.templateName==`subLevel`},_.manager._setCollpasedProperty=function(e,t,n,r,i,a,o,s){if(e.collapsed==null&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:e.collapsed??=!1,i==_.action.expand&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!1),i==_.action.collapse&&(n.expandIds||n.collapseIds)?n.expandIds&&n.expandIds.indexOf(e.id)!=-1?e.collapsed=!1:n.collapseIds&&n.collapseIds.indexOf(e.id)!=-1&&(e.collapsed=!0):i==_.action.collapse&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!0),i==_.action.expand&&n.ids==`all`&&(e.collapsed=!1),i==_.action.exporting&&(!_.isNEU(n.parentLevels)||!_.isNEU(n.childLevels))&&n.id!=null){if(n.id!=null&&(!_.isNEU(n.parentLevels)||!_.isNEU(n.childLevels))){var c=s[n.id];if(c==e)e.collapsed=!1;else{for(var l=!1,u=-1,d=!1,f=-1;c;){if(u++,c==e){l=!0;break}c=s[c.pid]}c=s[n.id];for(var p=s[e.id];p;){if(f++,p==c){d=!0;break}p=s[p.pid]}n.parentLevels!=null&&l&&u<=n.parentLevels||n.childLevels!=null&&d&&f<=n.childLevels||d&&n.expandChildren?e.collapsed=!1:e.collapsed=!0}}}else i==_.action.exporting&&n.expandChildren&&(e.collapsed=!1);i==_.action.init&&o!=null?e.collapsed=!o.exp.has(e.id):i==_.action.init?e.tags.indexOf(`left-partner`)!=-1||e.tags.indexOf(`right-partner`)!=-1||e.tags.indexOf(`partner`)!=-1||e.parentPartner?e.collapsed=t.collapse&&a>=t.collapse.level&&r.indexOf(e.id)==-1:e.collapsed=t.collapse&&a>=t.collapse.level-1&&r.indexOf(e.id)==-1:i==_.action.centerNode||i==_.action.insert||i==_.action.expand||i==_.action.collapse?r.has(e.id)&&(e.collapsed=!1):i==_.action.update&&n&&n.changeRoots&&n.changeRoots.has(e.id)&&(e.collapsed=!1)},_.manager._initNode=function(e,t,n,r,i,a,o){var s=o.manager.config,c=o.manager.layoutConfigs,l=o.manager.action,u=o.manager.actionParams,d=o.manager.state,f=c[n||`base`];e.parent??_.manager._setCollpasedProperty(e,f,u,i,l,r-1,d,t);for(var p=0;p<e.childrenIds.length;p++){var m=t[e.childrenIds[p]];if(_.manager._setCollpasedProperty(m,f,u,i,l,r,d,t),m.collapsed)e.collapsedChildCount++;else{if(m.parent=e,m.ppid!=null){var h=t[m.ppid];h&&(m.parentPartner=h)}(m.tags.indexOf(`left-partner`)!=-1||m.tags.indexOf(`right-partner`)!=-1||m.tags.indexOf(`partner`)!=-1||m.parentPartner)&&a.indexOf(e.id)==-1&&a.push(e.id),e.children.push(m)}}if(l==_.action.minimize&&!e.min?(u.all||u.id==e.id)&&(e.min=!0):l==_.action.maximize&&e.min===!0?(u.all||u.id==e.id)&&(e.min=!1):l==_.action.exporting&&u.min===!1?e.min=!1:l==_.action.init&&d!=null&&(e.min=d.min.has(e.id)),!e.min&&(!e.tags||!e.tags.has(`filter`)))for(var p=0;p<e.stChildrenIds.length;p++){var m=t[e.stChildrenIds[p]];m.stParent=e,e.stChildren.push(m)}r!=null&&(e.level=r),n&&(e.lcn=n);var g=_._getSubLevels(e.tags,s.tags);g>0&&(e.subLevels=g),e.tags.indexOf(`assistant`)!=-1&&e.parent!=null&&(e.isAssistant=!0),f.layout==_.layout.treeList&&(e.isTreeListItem=!0),f.template&&s.template==e.templateName&&(e.templateName=f.template);var v=_.t(e.templateName,e.min);if(e.w=v&&v.size?v.size[0]:0,e.h=v&&v.size?v.size[1]:0,e.padding=v&&v.padding?v.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&e.stParent.treeList==null){var y=_.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:y.treeListMaxHeight}}var b={node:e};_.events.publish(`node-initialized`,[o,b])},_.manager._iterate=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=d.manager.layoutConfigs;if(_.manager._initNode(t,n,c,r,l,u,d),t.isAssistant&&(a[t.pid]||(a[t.pid]=[]),a[t.pid].push(t.id)),t.subLevels>0&&o.push(t.id),_.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var v=t.parent.children[g];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.children.length==0?p.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&h++:m++}(_.MIXED_LAYOUT_ALL_NODES&&p.length>1&&p.length==t.parent.children.length-m-h||!_.MIXED_LAYOUT_ALL_NODES&&p.length>1)&&(s[t.pid]=p)}}else if(!t.isAssistant&&t.childrenIds.length==0&&t.parent&&!s[t.pid]){for(var p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var v=t.parent.children[g];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.childrenIds.length==0?p.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&h++:m++}(_.MIXED_LAYOUT_ALL_NODES&&p.length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&p.length==t.parent.childrenIds.length-m-h||!_.MIXED_LAYOUT_ALL_NODES&&p.length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(s[t.pid]=p)}t.stChildren.length&&(e.stContainerNodes||=[],e.stContainerNodes.push(t));for(var y=0;y<t.stChildren.length;y++){for(var b=``,g=0;g<t.tags.length;g++)if(f[t.tags[g]]){b=t.tags[g];break}i.push(t.stChildren[y].id),_.manager._iterate(e,t.stChildren[y],n,0,i,a,o,s,b,l,u,d)}r++;for(var y=0;y<t.children.length;y++)t.isTreeListItem&&(t.children[y].isTreeListItem=t.isTreeListItem),_.manager._iterate(e,t.children[y],n,r,i,a,o,s,c,l,u,d)},_.manager.__createNodes=function(e,t,n,r,i,a,o,s){for(var c=[],l=_._addDottedLines(n),u=0;u<l.length;u++){var d=l[u],f=_.STRING_TAGS?d.tags?d.tags.split(`,`):[]:Array.isArray(d.tags)?d.tags.slice(0):[];s.filterUI.addFilterTag(d)&&f.unshift(`filter`);var p=s.searchUI.addMatchTag(d.id);p===!0?f.unshift(`match`):p===!1&&f.unshift(`no-match`);var m=_._getTemplate(f,n.tags,n.template);d&&d.template&&(m=d.template);var h=new _.node(d.id,d.pid,f,m);_.isNEU(d.ppid)||(h.ppid=d.ppid),_.isNEU(d.stpid)||(h.stpid=d.stpid),d.movex!=null&&(h.movex=d.movex),d.movey!=null&&(h.movey=d.movey),e[d.id]=h,c.push(d.id)}if(n.orderBy!=null){var g=_.manager._getOrderSortArray(n.orderBy);c.sort(function(e,t){var n,r;for(var i of l)if(i.id==e&&(n=i),i.id==t&&(r=i),n&&r)break;for(var a=0;a<g.length;a++){var o=n[g[a].field],s=r[g[a].field],c=o,u=s;if(c??=``,u??=``,typeof c==`string`&&typeof u==`string`){var d=c.localeCompare(u);if(g[a].desc&&(d*=-1),d!==0)return d}else{var d=o<s?-1:o>s?1:0;if(g[a].desc&&(d*=-1),d!==0)return d}}})}for(var u=0;u<c.length;u++){var v=c[u],h=e[v],y=a?a[v]:null,b=e[h.stpid],x=e[h.pid];if(b||(h.stpid=null),x||(h.pid=null),b){var S=a?a[b.id]:null;S&&(b.min=S.min),b.stChildrenIds.push(h.id)}else x?(y&&(h.collapsed=y.collapsed,h.min=y.min,h.treeList=y.treeList),x.childrenIds.push(h.id)):(y&&(h.collapsed=y.collapsed,h.min=y.min,h.treeList=y.treeList),t.push(h),o.push(h.id));r==_.action.init&&(h.min=_._getMin(h,n))}},_.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs,r=e.manager.action,i=e.manager.actionParams,a=e.manager.oldNodes,o=e.manager.state,s={},c=[],l=[];if(_.manager.__createNodes(s,c,t,r,i,a,l,e),t.roots!=null){c=[];for(var u=0;u<t.roots.length;u++){var d=s[t.roots[u]];if(d&&r==_.action.centerNode){for(var f=d;f.pid!=null||f.stpid!=null;)f=f.pid==null&&f.stpid!=null?s[f.stpid]:s[f.pid];for(var p=s[i.id];(p.pid!=null||p.stpid!=null)&&p!=d;)p=p.pid==null&&p.stpid!=null?s[p.stpid]:s[p.pid];f==p&&(d=f)}if(d){for(var m=!1,h=0;h<c.length;h++)if(c[h].id==d.id){m=!0;break}if(!m){if(!_.isNEU(d.pid)){var g=s[d.pid],v=g.childrenIds.indexOf(d.id);v>-1&&g.childrenIds.splice(v,1)}c.push(d)}}}t.roots=[];for(var u=0;u<c.length;u++)t.roots.push(c[u].id)}if(r==_.action.exporting&&i.id!=null)if(i.parentLevels){for(var g=s[i.id],y=0;y<i.parentLevels&&s[g.pid];)y++,g=s[g.pid];g.pid=null,c=[g]}else{var b=s[i.id];b&&(b.pid=null,c=[b])}var x=[];if(r==_.action.init&&t.expand&&t.expand.nodes&&o==null)for(var u=0;u<t.expand.nodes.length;u++){var b=s[t.expand.nodes[u]];for(t.expand.allChildren===!0&&_.manager._addExpandedNodeIdsIterate(b,s,x);b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid]}else if(r==_.action.expand&&i.ids&&i.ids!=`all`||r==_.action.collapse&&i&&i.expandIds)for(var S=r==_.action.expand?i.ids:i.expandIds,u=0;u<S.length;u++)for(var b=s[S[u]],g=s[b.pid];g;)x.push(g.id),g.pid==null&&g.stpid!=null?(g=s[g.stpid],g.min=!1):g=s[g.pid];else if(r==_.action.centerNode){for(var C=_._getCenterNodeFromParams(s,i);C;){if(x.push(C.id),i.options.parentState===_.COLLAPSE_PARENT_NEIGHBORS&&C)for(var u=0;u<C.childrenIds.length;u++){var w=s[C.childrenIds[u]];w.collapsed=!0}if(C.pid==null&&C.stpid!=null){if(C=s[C.stpid],C.min=!1,C.tags){var v=C.tags.indexOf(`filter`);v!=-1&&(C.tags.splice(v,1),e.filterUI._removeFilter(C.id))}}else C=s[C.pid]}if(C=_._getCenterNodeFromParams(s,i),i.options.childrenState===_.COLLAPSE_SUB_CHILDRENS)for(var u=0;u<C.childrenIds.length;u++){var T=s[C.childrenIds[u]];T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}if(i.options.parentState===_.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED){var g=s[C.pid];if(g)for(var u=0;u<g.childrenIds.length;u++){var T=s[g.childrenIds[u]];if(T!=C){T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}}}}else if(r==_.action.insert)for(var b=s[i.insertedNodeId];b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid];for(var O=[],k={},A=[],j={},M=[],u=0;u<c.length;u++)_.manager._iterate(c[u],c[u],s,0,O,k,A,j,``,x,M,e);if(r==_.action.collapse&&i&&Array.isArray(i.expandIds)&&Array.isArray(i.collapseIds))for(var u=0;u<i.ids.length;u++)if(i.expandIds.has(i.collapseIds[u]))console.error(`id ${i.collapseIds[u]} exist in both collapseIds and expandIds`);else{var b=s[i.collapseIds[u]];b&&(b.collapsed=!0)}for(var u=c.length-1;u>=0;u--)c[u].collapsed&&c.splice(u,1);for(var u=0;u<M.length;u++){for(var b=s[M[u]],N=[],P=[],F=[],I={},L=0,R=0,z=0,ee=[],te=[],E=0;E<b.children.length;E++){var w=b.children[E];w.isAssistant?N.push(w.id):w.tags.indexOf(`right-partner`)==-1?w.tags.indexOf(`left-partner`)==-1?w.tags.indexOf(`partner`)!=-1&&!(L%2)?(w.isPartner=1,w.children=[],P.push(w.id),L++):w.tags.indexOf(`partner`)!=-1&&L%2?(w.isPartner=2,w.children=[],F.push(w.id),L++):w.parentPartner?(I[w.parentPartner.id]||(I[w.parentPartner.id]=[]),I[w.parentPartner.id].push(w.id)):N.push(w.id):(w.isPartner=2,w.children=[],F.push(w.id)):(w.isPartner=1,w.children=[],P.push(w.id))}b.children=[];for(var B=[],E=0;E<P.length;E++){var w=s[P[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)B.push(w.childrenIds[V])}for(var ne=[],E=0;E<F.length;E++){var w=s[F[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var V=0;V<w.childrenIds.length;V++)ne.push(w.childrenIds[V])}for(var E=0;E<ne.length;E++){var w=s[ne[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}for(var E=F.length-1;E>=0;E--)if(I[F[E]])for(var h=0;h<I[F[E]].length;h++)b.children.push(s[I[F[E]][h]]),R++,te.indexOf(F[E])==-1&&te.push(F[E]);for(var E=0;E<N.length;E++){var w=s[N[E]];b.children.push(w)}for(var E=0;E<P.length;E++)if(I[P[E]])for(var h=0;h<I[P[E]].length;h++)b.children.push(s[I[P[E]][h]]),z++,ee.indexOf(P[E])==-1&&ee.push(P[E]);for(var E=0;E<B.length;E++){var w=s[B[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}b.partnerSeparation=Math.max(te.length,ee.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,!N.length&&R&&!z?b.hasPartners=2:!N.length&&!R&&z?b.hasPartners=3:!N.length&&R==1&&z==1?b.hasPartners=4:!N.length&&!R&&!z?b.hasPartners=5:N.length&&!R&&!z?b.hasPartners=6:N.length&&(R||z)?b.hasPartners=7:b.hasPartners=1}for(var u=0;u<A.length;u++)for(var b=s[A[u]],re=b.lcn?b.lcn:`base`,ie=n[re],E=0;E<b.subLevels;E++){var H=new _.node(b.id+`_sub_level_index_`+E,b.pid,[],`subLevel`);_.manager._initDinamicNode(H,b.lcn);var g=b.parent;if(g){b.movex!=null&&(H.movex=b.movex),b.movey!=null&&(H.movey=b.movey);var v=g.children.indexOf(b);v>-1&&(g.children.splice(v,1),g.children.splice(v,0,H)),H.children.push(b),H.parent=g,b.parent=H,s[H.id]=H}}for(var U in k){var g=s[U];g.hasAssistants=!0;var H=new _.node(g.id+`_split_assitant_0`,g.id,[`assistant`],`split`);g.movex!=null&&(H.movex=g.movex),g.movey!=null&&(H.movey=g.movey),_.manager._initDinamicNode(H,g.lcn,!0),s[H.id]=H;for(var ae=[],E=g.children.length-1;E>=0;E--){var w=g.children[E];w.isAssistant?(w.parent=null,g.children.splice(E,1),ae.splice(0,0,w.id)):w.isPartner||(w.parent&&j[w.parent.id]&&H&&w.parent.id!=H.id&&(Object.defineProperty(j,H.id,Object.getOwnPropertyDescriptor(j,w.parent.id)),delete j[w.parent.id]),w.parent=H,H.children.unshift(w),g.children.splice(E,1))}if(ae.length%2){var W=s[ae[ae.length-1]],oe=new _.node(W.id+`_mirror`,g.pid,[],`mirror`);_.manager._initDinamicNode(oe,W.lcn,!0),oe.isAssistant=!0,oe.w=W.w,oe.h=W.h,s[oe.id]=oe,ae.splice(ae.length-1,0,oe.id)}for(var G=1,E=ae.length-1;E>=0;E--)if(E%2&&E!=ae.length-1){var se=new _.node(g.id+`_split_assitant_`+G,g.pid,[],`split`);_.manager._initDinamicNode(se,g.lcn,!0),g.movex!=null&&(se.movex=g.movex),g.movey!=null&&(se.movey=g.movey),s[se.id]=se,ae.splice(E,0,se.id),G++}else E%2&&ae.splice(E,0,H.id);for(var E=0;E<ae.length;E+=3){var ce=null;ce=E==0?g:s[ae[E-2]];var le=s[ae[E]],ue=s[ae[E+1]],de=s[ae[E+2]];le.parent=ce,ue.parent=ce,de.parent=ce,ce.children.push(le),ce.children.push(ue),ce.children.push(de)}}var fe=!1;for(var pe in n){var ie=n[pe];if(ie.layout!=0){fe=!0;break}}var me=_.events.has(`node-layout`,e._event_id);if(fe||me){var he={nodes:s,config:t,action:r,actionParams:i};if(A.length){var K=!1;for(var U in j){for(var S=j[U],u=0;u<S.length;u++){var b=s[S[u]];if(b.subLevels){K=!0;break}}if(K)break}if(K){var ge={},_e={},ve={};for(var U in j)for(var S=j[U],ye=!1,be=null,u=0;u<S.length;u++){var xe=S[u];(be===null||A.has(xe))&&(be=s[xe].parent.id,!ye&&!_.isNEU(s[xe].subLevels)&&(ye=s[xe].subLevels>0)),ge[be]||(ge[be]=[]),ge[be].push(xe),ye&&(ve[be]=U,_e[be]||(_e[be]=[]),_e[be].push(xe))}for(var U in j={},_e)if(_e[U].length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)for(var Se=ve[U],u=s[Se].children.length-1;u>=0;u--){var w=s[Se].children[u];_e[U].has(w.id)&&s[Se].children.splice(u,1)}for(var U in ge)ge[U].length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(j[U]=ge[U])}}for(var U in j){for(var g=s[U],Ce=g;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];var re=g.lcn?g.lcn:`base`,ie=n[re];if(ie.layout!=0||me){he.pnode=g,he.layout=ie.layout,he.layoutGridColumns=t.layoutGridColumns,he.childrenIds=j[U],he.lastChildrenPidIds=j,he.subLevels=0,he.layouts=[],_.events.publish(`node-layout`,[e,he]),_.events.publish(`layout`,[he]),he.layouts.length||he.layouts.push({layout:he.layout,childrenIds:he.childrenIds,subLevels:he.subLevels,layoutGridColumns:he.layoutGridColumns});for(var q=0;q<he.layouts.length;q++){var J=he.layouts[q];for(_.isNEU(J.subLevels)&&(J.subLevels=0),_.isNEU(J.layout)&&(J.layout=ie.layout),g=s[U],Ce=g;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];for(var we=g,E=0;E<J.subLevels;E++){var H=new _.node(q+`_sublevel_layout_`+E,we.id,[],`subLevel`);_.manager._initDinamicNode(H,we.lcn),H.parent=we,we.children.push(H),s[H.id]=H,we=H}if(J.subLevels){for(var E=0;E<J.childrenIds.length;E++){var w=s[J.childrenIds[E]],v=g.children.indexOf(w);v!=-1&&g.children.splice(v,1),w.parent=we,we.children.push(w)}g=we}if(J.layout==_.layout.grid&&J.childrenIds.length>2){J.layoutGridColumns==`dynamic`&&(J.layoutGridColumns=_._getDynamicGridCoulumns(J.childrenIds.length));for(var Te=g.id,u=g.children.length-1;u>=0;u--)for(var E=0;E<J.childrenIds.length;E++){var xe=J.childrenIds[E];if(g.children[u].id==xe){g.children.splice(u,1);break}}var Ee=J.layoutGridColumns;Ee%2!=0&&Ee>2&&Ee--;for(var u=0;u<J.childrenIds.length;u+=Ee)for(var De=null,E=0;E<Ee;E++){var Oe=u+Ee>=J.childrenIds.length;if(J.childrenIds.length-1<u+E)break;var xe=J.childrenIds[u+E],w=s[xe];w.parent=s[Te],s[Te].children.push(w),Oe||(Ee/2-1==E&&(De=new _.node(J.childrenIds[u+E-1]+`_grid_pseudo_node_`+J.childrenIds[u+E+1],Te,[],`subLevel`),_.manager._initDinamicNode(De,g.lcn),De.parent=s[Te],s[Te].children.push(De),s[De.id]=De),Ee-1==E&&(Te=De.id))}}if(J.layout==_.layout.mixed)for(var ke=J.childrenIds,u=ke.length-1;u>=0;u--){var w=s[ke[u]];g=w.parent,w.layout=_.layout.mixed;for(var E=g.children.length-1;E>=0;E--)if(w.id==g.children[E].id){g.children.splice(E,1);break}if(u>0){var Ae=s[ke[u-1]];w.parent=Ae,w.layout=_.layout.mixed,Ae.children.push(w)}else g.children.push(w)}else if(J.layout>1){var H=new _.node(q+`_`+g.id+`_split_0`,Ce.id,[],`split`);g.movex!=null&&(H.movex=g.movex),g.movey!=null&&(H.movey=g.movey),_.manager._initDinamicNode(H,g.lcn),s[H.id]=H,H.layout=J.layout;for(var je=[],u=J.childrenIds.length-1;u>=0;u--){for(var w=s[J.childrenIds[u]],E=0;E<g.children.length;E++)g.children[E].id==w.id&&g.children.splice(E,1);if(w.parent=null,w.layout=J.layout,(J.layout==_.layout.treeRightOffset||J.layout==_.layout.treeRight)&&je.splice(0,0,w.id),J.layout>2){var Me=new _.node(q+`_`+w.id+`_mirror`,Ce.id,[],`mirror`);_.manager._initDinamicNode(Me,w.lcn),Me.layout=J.layout,s[Me.id]=Me,je.splice(0,0,Me.id)}J.layout!=_.layout.treeRightOffset&&J.layout!=_.layout.treeRight&&je.splice(0,0,w.id)}for(var G=1,E=je.length-1;E>=0;E--)if(E%2&&E!=je.length-1){var se=new _.node(q+`_`+g.id+`_split_`+G,Ce.id,[],`split`);_.manager._initDinamicNode(se,g.lcn),g.movex!=null&&(se.movex=g.movex),g.movey!=null&&(se.movey=g.movey),se.layout=J.layout,s[se.id]=se,je.splice(E,0,se.id),G++}else E%2&&je.splice(E,0,H.id);for(var E=0;E<je.length;E+=3){var ce=null;E==0&&(ce=g);var le=s[je[E]],ue=s[je[E+1]],de=s[je[E+2]];E!=0&&(ce=s[je[E-3]]),E!=0&&!ue&&(ce=s[je[E-2]]),le.parent=ce,ce.children.push(le),ue&&(E!=0&&(ce=s[je[E-2]]),ue.parent=ce,ce.children.push(ue)),de&&(E!=0&&(ce=s[je[E-1]]),de.parent=ce,ce.children.push(de))}}}}}}if(_.VERTICAL_CHILDREN_ASSISTANT)for(var u=0;u<c.length;u++)_.manager._verticalAssistantIterate(c[u],s);var he={nodes:s,roots:c};return _.events.publish(`nodes-initialized`,[e,he]),{nodes:he.nodes,roots:he.roots,rootList:l}},_.manager._getOrderSortArray=function(e){if(typeof e==`string`)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var n of e)typeof n==`string`?t.push({field:n,desc:!1}):e instanceof Object?t.push(n):console.error(`Unseported orderBy value!`);return t}else if(e instanceof Object)return[e];else console.error(`Unseported orderBy value!`)},_.manager._getNodeWidth=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.manager._isVisible=function(e,t,n,r,i,a,o){var s=0;if(_.LAZY_LOADING_FACTOR==`auto`){var c=a/i*2,l=o/i*2;s=Math.ceil(c>l?c:l)}else s=_.LAZY_LOADING_FACTOR/i;if(!(e.x==null||e.y==null)){if(_._getLazyLoading(t)&&r!==_.action.exporting){function t(e,t){var n=e.x,r=e.y,i=e.w,a=e.h,o=t[0]-s,c=t[2]+s+t[0],l=t[1]-s,u=t[3]+s+t[1],d=n+i>o&&c>n;return d&&=r+a>l&&u>r,d}if(t(e,n))return!0;for(var u=0;u<e.children.length;u++)if(t(e.children[u],n))return!0;return!1}return!0}},_.manager.getAllFields=function(e){var t=[_.TAGS];for(var n in e.nodeBinding)t.push(e.nodeBinding[n]);for(var n=0;n<e.nodes.length;n++)for(var r in e.nodes[n])r!==_.ID&&r!==_.TAGS&&r!==_.NODES&&r!==_.PID&&r!==_.STPID&&r!==`movex`&&r!==`movey`&&(e.nodeBinding[r]||t.has(r)||t.push(r));return t},_.manager._getMostDeepChild=function(e){if(!e)return;var t=e;function n(e){e.sl>t.sl&&(t=e);for(var r=0;r<e.children.length;r++)n(e.children[r])}return n(e),t},_.manager._getResponse=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var h=l[0],g=[],v={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},y=[[],[],[]],b=i-o+r.padding*2,x=a-s+r.padding*2,S=_.getScale(c,e,t,r.scaleInitial,r.scaleMax,r.scaleMin,b,x);if(v.top=s-r.padding,v.left=o-r.padding,v.bottom=a+r.padding-t/S,v.right=i+r.padding-e/S,v.maxX=i,v.minX=o,v.maxY=a,v.minY=s,l.length==0||c==null&&!m&&r.align==_.CENTER){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;if(C-r.padding*2>=i-o)switch(T=(i+o)/2-C/2,r.orientation){case _.orientation.right:case _.orientation.right_top:T=(o-i)/2-C/2;break}else switch(T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,r.orientation){case _.orientation.right:case _.orientation.right_top:T=-(C/2-(o-i)/2),T<r.padding-C&&(T=r.padding-C);break;case _.orientation.left:case _.orientation.bottom_left:case _.orientation.top_left:case _.orientation.left_top:T=-(C/2-(i-o)/2),T>-r.padding&&(T=-r.padding);break}if(w-r.padding*2>=a-s)switch(E=(a+s)/2-w/2,r.orientation){case _.orientation.bottom:case _.orientation.bottom_left:E=(s-a)/2-w/2;break}else switch(E=-(w/2-(a-s)/2),E>-r.padding&&(E=-r.padding),r.orientation){case _.orientation.bottom:case _.orientation.bottom_left:E=-(w/2-(s-a)/2),E<r.padding-w&&(E=r.padding-w);break;case _.orientation.left:case _.orientation.right:E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break}c=[T,E,C,w]}else if(c==null&&!m&&r.align==_.ORIENTATION){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;switch(r.orientation){case _.orientation.top:T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,E=-r.padding;break;case _.orientation.bottom:T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,E=r.padding-w;break;case _.orientation.left:T=-r.padding,E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break;case _.orientation.right:T=r.padding-C,E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break;case _.orientation.top_left:T=-r.padding,E=-r.padding;break;case _.orientation.right_top:T=r.padding-C,E=-r.padding;break;case _.orientation.left_top:T=-r.padding,E=-r.padding;break;case _.orientation.bottom_left:T=-r.padding,E=r.padding-w;break}c=[T,E,C,w]}if(u==_.action.centerNode||u==_.action.maximize){var D=_._getCenterNodeFromParams(f,d);d.options.horizontal==1&&(c[0]=D.x+D.w/2-c[2]/2),d.options.vertical==1&&(c[1]=D.y+D.h/2-c[3]/2)}if(u==_.action.insert||u==_.action.expand||u==_.action.collapse||u==_.action.update||u==_.action.centerNode){var O=null;if(u==_.action.insert&&d&&d.insertedNodeId!=null&&d.insertedNodeId!=null)O=f[d.insertedNodeId];else if(u==_.action.update&&d&&d.visId!=null&&d.visId!=null)O=f[d.visId];else if((u==_.action.expand||u==_.action.collapse)&&d&&d.id!=null&&d.id!=null)O=f[d.id],O=_.manager._getMostDeepChild(O);else if(u==_.action.centerNode){switch(r.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:d.options.vertical||(O=f[d.id]);break;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:d.options.horizontal||(O=f[d.id]);break}O&&=_.manager._getMostDeepChild(O)}if(!_.FIXED_POSITION_ON_CLICK&&O){if(O.isTreeListItem){for(;!O.stParent;)O=O.parent;O=O.stParent}switch(r.orientation){case _.orientation.top:case _.orientation.top_left:var k=O.y+O.h-c[3]+r.padding;c[1]<k&&(c[1]=k);break;case _.orientation.bottom:case _.orientation.bottom_left:var k=O.y-r.padding;c[1]>k&&(c[1]=k);break;case _.orientation.right:case _.orientation.right_top:var k=O.x-r.padding;c[0]>k&&(c[0]=k);break;case _.orientation.left:case _.orientation.left_top:var k=O.x+O.w-c[2]+r.padding;c[0]<k&&(c[0]=k);break}}}for(var A=0;A<l.length;A++)_.manager._iterate2(l[A],f,r,c,u,d,g,p,n,y,S,e,t);return{animations:y,boundary:v,viewBox:c,visibleNodeIds:g,nodes:f,allFields:_.manager.getAllFields(r)}},_.manager._iterate2=function(e,t,n,r,i,a,o,s,c,l,u,d,f){if(_.manager._isVisible(e,n,r,i,u,d,f)){o.push(e.id);var p=null;if((i==_.action.expand||i==_.action.collapse||i==_.action.maximize)&&s&&s[e.id]&&a.method==`expandCollapseToLevel`){var m=s[e.id];if(p={x:m.x,y:m.y},m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var v=t[a.id];if(v){for(var h=e.parent;h!=null;)h=h.parent;h&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if((i==_.action.expand||i==_.action.collapse)&&s&&s[e.id]){var m=s[e.id];if(p={x:m.x,y:m.y},a.ids==`all`&&m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var v=t[a.id];if(v){for(var h=e.parent;h!=null&&a.ids.indexOf(e.id)==-1&&a.ids.indexOf(h.id)==-1;)h=h.parent;h&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==_.action.centerNode&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=_._getCenterNodeFromParams(t,a);if(y&&y==e){var h=e.parent;h&&h.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==_.action.maximize&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=_._getCenterNodeFromParams(t,a);if(y&&y==e){var h=e.parent;h&&h.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==_.action.minimize&&s&&s[e.id]){var m=s[e.id];p={x:m.x,y:m.y}}else if(i==_.action.insert&&a&&a.insertedNodeId==e.id&&e.parent)p={x:e.parent.x,y:e.parent.y};else if((i==_.action.update||i==_.action.insert)&&s){var m=s[e.id];if((!m||_.isNEU(m.x)&&_.isNEU(m.y))&&a){var v=t[a.id];if(v){for(var h=v;h&&h.id==e.id;)h=h.parent;h&&(p={x:v.x,y:v.y})}}else m&&(p={x:m.x,y:m.y})}else i!==_.action.exporting&&i!==_.action.init&&c.indexOf(e.id)==-1&&(l[0].push(e.id),l[1].push({opacity:0}),l[2].push({opacity:1}));p!=null&&p.x!=null&&p.y!=null&&(p.x!=e.x||p.y!=e.y)&&!(a&&a.dragNodeIdList&&a.dragNodeIdList.indexOf(e.id)!=-1)&&!e.isSplit&&(l[0].push(e.id),l[1].push({transform:[1,0,0,1,p.x,p.y]}),l[2].push({transform:[1,0,0,1,e.x,e.y]}))}for(var b=0;b<e.stChildren.length;b++)_.manager._iterate2(e.stChildren[b],t,n,r,i,a,o,s,c,l,u,d,f);for(var b=0;b<e.children.length;b++)_.manager._iterate2(e.children[b],t,n,r,i,a,o,s,c,l,u,d,f)},_.manager._addExpandedNodeIdsIterate=function(e,t,n){for(var r=0;r<e.childrenIds.length;r++)n.push(e.childrenIds[r]),_.manager._addExpandedNodeIdsIterate(t[e.childrenIds[r]],t,n)},_.manager._setChildCountPropsIterate=function(e,t){e.w===void 0&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var n=t[e.pid];n;)n.deepCollapsedChildCount+=e.collapsedChildCount,n.deepChildCount+=e.childCount,n=t[n.pid];for(var r of e.stChildrenIds)_.manager._setChildCountPropsIterate(t[r],t);for(var r of e.childrenIds)_.manager._setChildCountPropsIterate(t[r],t)},_.manager._setMinMaxXYAdjustifyIterate=function(e,t,n,r,i,a,o,s){e.x+=a.x,e.y+=a.y;for(var c of e.stChildren)_.manager._setMinMaxXYAdjustifyIterate(c,c,n,0,i,a,o,s);e.isPartner?e.sl=r-1:e.sl=r,i[t.id]??(i[t.id]={}),i[t.id][e.sl]??(i[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(s[t.id]??(s[t.id]={}),s[t.id][e.sl]??(s[t.id][e.sl]=e)):_._setMinMaxXY(e,i[t.id][e.sl],!0),e.movex!=null&&(e.x+=e.movex),e.movey!=null&&(e.y+=e.movey),_._setMinMaxXY(e,n,!0),r++;for(var c of e.children)_.manager._setMinMaxXYAdjustifyIterate(c,t,n,r,i,a,o,s)},_.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,n,r,i,a){if(n!=_.action.expand&&n!=_.action.collapse&&n!=_.action.minimize&&n!=_.action.maximize&&n!=_.action.centerNode&&n!=_.action.update&&n!=_.action.insert)return{x:0,y:0};if(n==_.action.update&&(!r||r.id==null)){if(!e||!e.length)return{x:0,y:0};r={id:e[0].id}}if(r.id==null)return{x:0,y:0};var o=r.id;(n==_.action.minimize&&t[o].parent||n==_.action.maximize&&t[o].parent)&&(o=t[o].pid);var s=t[o],c=i[o];if(!c)return{x:0,y:0};var l=c.movex==null?0:c.movex,u=c.movey==null?0:c.movey,d={x:(c.x?c.x-l:0)-s.x,y:(c.y?c.y-u:0)-s.y};return s&&s.isTreeListItem?{x:0,y:0}:d},_.manager._verticalAssistantIterate=function(e,t){for(var n=0;n<e.stChildren.length;n++)_.manager._verticalAssistantIterate(e.stChildren[n],t);if(e.children.length==3)_.manager._verticalAssistantIterate(e.children[0],t),_.manager._verticalAssistantIterate(e.children[2],t),_.manager._verticalAssistantIterate(e.children[1],t);else for(var n=0;n<e.children.length;n++)_.manager._verticalAssistantIterate(e.children[n],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var r=e.parent.children[0],i=e.parent.children[2],a=e.parent;!a.hasAssistants;)a=a.parent;var o={max:0},s={max:0};_.manager._verticalAssistantLevelCountIterate(r,0,o),_.manager._verticalAssistantLevelCountIterate(i,0,s);for(var c=Math.max(o.max,s.max),l=[],n=0;n<c;n++){var u=new _.node(e.parent.id+`_split_assitant_level_`+n,e.pid,[],`subLevel`);_.manager._initDinamicNode(u,e.lcn,!0),a.movex!=null&&(u.movex=a.movex),a.movey!=null&&(u.movey=a.movey),n>0&&(l[n-1].children.push(u),u.parent=l[n-1]),t[u.id]=u,l.push(u)}if(l.length){for(var d=l[l.length-1],f=l[0],p=e.children.length-1;p>=0;p--){var m=e.children[p];d.children.unshift(m),m.parent=d,e.children.splice(p,1)}e.children.push(f),f.parent=e}}},_.manager._verticalAssistantLevelCountIterate=function(e,t,n){n.max<t&&(n.max=t),t++;for(var r=0;r<e.children.length;r++)_.manager._verticalAssistantLevelCountIterate(e.children[r],t,n)},_._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var n=[],r=0;r<e.groupDottedLines.length;r++){var i=e.groupDottedLines[r];i.rootId??=i.to;var a=`balkan_group_dotted_${i.rootId}`;if(!n.has(a)){for(var o=0;o<t.length;o++)if(t[o].id==i.rootId){var s=JSON.parse(JSON.stringify(t[o]));s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=void 0,s.stpid=t[o].id,t.push(s),n.push(a),t[o].tags||(t[o].tags=[]),t[o].tags.push(`group-dotted-lines`),t[o].tags.push(`group-dotted-lines-`+a);break}}for(var o=0;o<t.length;o++)if(t[o].id==i.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=`balkan_group_dotted_${i.rootId}_balkan_id_${i.to}`,s.tags){var c=s.tags.indexOf(`group-dotted-lines`);c!=-1&&s.tags.splice(c,1)}if(s.tags||=[],s.tags.push(`boc-dotted-connector`),i.tags)for(var l=0;l<i.tags.length;l++)s.tags.push(i.tags[l]);t.push(s);break}}if(e.dottedLines.length)for(var r=0;r<e.dottedLines.length;r++){var u=e.dottedLines[r];u.rootId??=u.to;for(var o=0;o<t.length;o++)if(t[o].id==u.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_dotted_${u.rootId}_balkan_id_${t[o].id}`,u.rootId==u.to?s.pid=u.to:s.pid=`balkan_dotted_${u.rootId}_balkan_id_${u.to}`,s.tags||=[],s.tags.push(`boc-dotted-connector`),u.tags)for(var l=0;l<u.tags.length;l++)s.tags.push(u.tags[l]);t.push(s);break}}return t},_===void 0&&(_={}),_.templates={},_.templates.base={defs:``,size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,node:`<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`,plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
382
382
|
<text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
383
|
-
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`,menuButton:`<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" `+
|
|
383
|
+
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`,menuButton:`<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" `+_.attr.control_export_menu+`=""><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"></div>`,img_0:`<clipPath id="{randId}"><circle cx="60" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="20" y="20" width="80" height="80"></image>`,link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+_.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},_.templates.ana={defs:``,size:[250,120],linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},expandCollapseSize:30,svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,node:function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
384
384
|
<text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
|
|
385
|
-
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:`<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>`,nodeMenuButton:function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:
|
|
385
|
+
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:`<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>`,nodeMenuButton:function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:_.templates.base.menuButton,img_0:function(e,t,n,r,i){var a=50,o=30,s=40,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+_.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,field_0:function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="${e.h-25}" text-anchor="middle"></text>`,e.w-20,1)},field_1:function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w-20}" y="30" text-anchor="end"></text>`,e.w-120,3)},padding:[75,5,50,5],editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},_.templates.split=Object.assign({},_.templates.ana),_.templates.split.size=[10,10],_.templates.split.node=`<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>`,_.templates.split.field_0=``,_.templates.split.field_1=``,_.templates.split.img_0=``,_.templates.dot=Object.assign({},_.templates.split),_.templates.group=Object.assign({},_.templates.ana),_.templates.group.size=[250,120],_.templates.group.padding=[50,20,35,20],_.templates.group.node=`<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>`,_.templates.group.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,_.templates.group.nodeMenuButton=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,{ew},25)"><g transform="matrix(1,0,0,1,-22,-8)"><rect x="0" y="0" fill="red" fill-opacity="0" width="18" height="22"></rect><line x1="0" y1="2" x2="9" y2="2" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="9" x2="18" y2="9" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="16" x2="22" y2="16" stroke="#aeaeae" stroke-width="1"></line></g></g>`,_.templates.group.field_0=`<text `+_.attr.width+`="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>`,_.templates.group.field_1=``,_.templates.group.ripple={radius:50,color:`#aeaeae`},_.templates.invisibleGroup=Object.assign({},_.templates.group),_.templates.invisibleGroup.node=``,_.templates.invisibleGroup.padding=[0,0,0,0],_.templates.invisibleGroup.field_0=``,_.templates.invisibleGroup.nodeMenuButton=``,_.templates.mirror={linkAdjuster:{},link:``,node:``,nodeMenuButton:``,size:[0,0]},_.templates.ula=Object.assign({},_.templates.ana),_.templates.ula.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>`,e.w-105,1)},_.templates.ula.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>`,e.w-105,3)},_.templates.ula.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#aeaeae"></rect><line x1="0" y1="0" x2="${e.w}" y2="0" stroke-width="2" stroke="#039BE5"></line>`},_.templates.ula.img_0=function(e,t,n,r,i){var a=50,o=60,s=40,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.ula.menu=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" `+_.attr.control_node_menu_id+`="{id}"><rect x="-4" y="-10" fill="#ffffff" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#039BE5"></circle><circle cx="7" cy="0" r="2" fill="#039BE5"></circle><circle cx="14" cy="0" r="2" fill="#039BE5"></circle></g>`,_.templates.ula.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},_.templates.ula.padding=[110,1,1,1],_.templates.olivia=Object.assign({},_.templates.ana),_.templates.olivia.defs=`<style>
|
|
386
386
|
#olivia_gradient {
|
|
387
387
|
--color-stop-1: #ffffff;
|
|
388
388
|
--color-stop-2: #eeeeee;
|
|
@@ -405,20 +405,20 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
405
405
|
--opacity-stop: 1;
|
|
406
406
|
}
|
|
407
407
|
</style>
|
|
408
|
-
<linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>`,h.templates.olivia.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text class="olivia-f0" x="100" y="55"></text>`,e.w-105,1)},h.templates.olivia.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text class="olivia-f1" x="100" y="76"></text>`,e.w-105,3)},h.templates.olivia.node=function(e,t,n,r){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},h.templates.olivia.img_0=`<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>`,h.templates.olivia.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},h.templates.olivia.padding=[110,15,30,15],h.templates.belinda=Object.assign({},h.templates.ana),h.templates.belinda.size=[180,180],h.templates.belinda.ripple={radius:90,color:`#e6e6e6`,rect:null},h.templates.belinda.node=function(e,t,n,r){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},h.templates.belinda.img_0=function(e,t,n,r,i){var a=e.w/2,o=45,s=40,c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.belinda.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},h.templates.belinda.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},h.templates.belinda.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,h.templates.belinda.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},h.templates.rony=Object.assign({},h.templates.ana),h.templates.rony.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,h.templates.rony.defs=`<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>`,h.templates.rony.size=[180,250],h.templates.rony.ripple={color:`#F57C00`,radius:5,rect:null},h.templates.rony.padding=[250,0,30,0],h.templates.rony.img_0=function(e,t,n,r,i){var a=e.w/2,o=160,s=60,c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.rony.node=function(e,t,n,r){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},h.templates.rony.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},h.templates.rony.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},h.templates.rony.field_2=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},h.templates.rony.link=`<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,h.templates.rony.plus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},h.templates.rony.minus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},h.templates.rony.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},h.templates.mery=Object.assign({},h.templates.ana),h.templates.mery.ripple={color:`#e6e6e6`,radius:50,rect:null},h.templates.mery.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},h.templates.mery.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,h.templates.mery.img_0=function(e,t,n,r,i){var a=e.w/2,o=e.h/2,s=24,c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.mery.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},h.templates.mery.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},h.templates.mery.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},h.templates.polina=Object.assign({},h.templates.ana),h.templates.polina.size=[300,80],h.templates.polina.padding=[80,15,30,15],h.templates.polina.ripple={color:`#e6e6e6`,radius:40,rect:null},h.templates.polina.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},h.templates.polina.img_0=`<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>`,h.templates.polina.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>`,e.w-90,1)},h.templates.polina.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>`,e.w-90,1)},h.templates.polina.link=`<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,h.templates.polina.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},h.templates.mila=Object.assign({},h.templates.ana),h.templates.mila.padding=[60,15,120,15],h.templates.mila.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},h.templates.mila.img_0=function(e,t,n,r,i){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${i}" x="20" y="${e.h-115}" width="64" height="64"></image>`},h.templates.mila.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},h.templates.mila.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},h.templates.diva=Object.assign({},h.templates.ana),h.templates.diva.size=[200,170],h.templates.diva.padding=[160,10,30,10],h.templates.diva.node=function(e,t,n,r){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},h.templates.diva.img_0=function(e,t,n,r,i){var a=e.w/2,o=50,s=45,c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.diva.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},h.templates.diva.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},h.templates.diva.pointer=`<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>`,h.templates.diva.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},h.templates.luba=Object.assign({},h.templates.ana),h.templates.luba.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,h.templates.luba.defs=`<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>`,h.templates.luba.node=function(e,t,n,r){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},h.templates.luba.padding=[70,10,60,10],h.templates.luba.img_0=function(e,t,n,r,i){var a=50,o=25,s=40,c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.luba.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},h.templates.luba.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},h.templates.luba.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},h.templates.luba.plus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>`,h.templates.luba.minus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>`,h.templates.luba.expandCollapseSize=36,h.templates.isla=Object.assign({},h.templates.ana),h.templates.isla.defs=`<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>`,h.templates.isla.size=[180,120],h.templates.isla.padding=[70,1,60,1],h.templates.isla.node=function(e,t,n,r){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},h.templates.isla.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},h.templates.isla.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},h.templates.isla.img_0=``,h.templates.isla.img_0=function(e,t,n,r,i){var a=h.randomId();return`<clipPath id="${a}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},h.templates.isla.minus=`<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>`,h.templates.isla.plus=`<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>`,h.templates.isla.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},h.templates.isla.ripple={radius:0,color:`#F57C00`,rect:{x:0,y:20,width:180,height:100}},h.templates.deborah=Object.assign({},h.templates.polina),h.templates.deborah.size=[150,150],h.templates.deborah.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},h.templates.deborah.img_0=function(e,t,n,r,i){var a=h.randomId();return`<clipPath id="${a}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},h.templates.deborah.field_0=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>`,e.w-25,1)},h.templates.deborah.field_1=function(e,t,n,r,i){return h.wrapText(i,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},h.templates.deborah.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},h.templates.subLevel=Object.assign({},h.templates.base),h.templates.subLevel.size=[0,0],h.templates.subLevel.node=``,h.templates.subLevel.plus=``,h.templates.subLevel.minus=``,h.templates.subLevel.nodeMenuButton=``,h.templates.group_dotted_lines=Object.assign({},h.templates.group),h.templates.group_dotted_lines.size=[250,120],h.templates.group_dotted_lines.padding=[50,20,35,20],h.templates.group_dotted_lines.link=`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,h.templates.group_dotted_lines.node=`<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>`,h.templates.group_dotted_lines.nodeGroupDottedCloseButton=`<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>`+h.icon.close(25,25,`#fff`,-13,8)+`</g>`,h.templates.group_dotted_lines.field_0=`<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>`,h.templates.group_dotted_lines.field_1=``,h.templates.group_dotted_lines.img_0=``,h.templates.group_dotted_lines.ripple.radius=5,h.templates.group_dotted_lines.min=Object.assign({},h.templates.olivia),h.templates.group_dotted_lines.min.nodeGroupDottedOpenButton=`<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>`,h.templates.clara=Object.assign({},h.templates.ana),h.templates.clara.size=[180,210],h.templates.clara.padding=[80,7,7,7],h.templates.clara.img_0=function(e,t,n,r,i){var a=50,o=30,s=40;e.stChildren.length||(s=60,a=e.w/2,o=70);var c=h.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},h.templates.clara.treeListMaxHeight=387,h.templates.clara.field_0=function(e,t,n,r,i){var a=65,o=e.w/2,s=`middle`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=160,c=e.w-20),h.wrapText(i,`<text style="font-size: 20px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},h.templates.clara.field_1=function(e,t,n,r,i){var a=35,o=e.w-15,s=`end`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=180,c=e.w-20),h.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},h.templates.clara.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">
|
|
408
|
+
<linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>`,_.templates.olivia.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text class="olivia-f0" x="100" y="55"></text>`,e.w-105,1)},_.templates.olivia.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text class="olivia-f1" x="100" y="76"></text>`,e.w-105,3)},_.templates.olivia.node=function(e,t,n,r){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},_.templates.olivia.img_0=`<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>`,_.templates.olivia.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},_.templates.olivia.padding=[110,15,30,15],_.templates.belinda=Object.assign({},_.templates.ana),_.templates.belinda.size=[180,180],_.templates.belinda.ripple={radius:90,color:`#e6e6e6`,rect:null},_.templates.belinda.node=function(e,t,n,r){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},_.templates.belinda.img_0=function(e,t,n,r,i){var a=e.w/2,o=45,s=40,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.belinda.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},_.templates.belinda.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},_.templates.belinda.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,_.templates.belinda.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},_.templates.rony=Object.assign({},_.templates.ana),_.templates.rony.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,_.templates.rony.defs=`<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>`,_.templates.rony.size=[180,250],_.templates.rony.ripple={color:`#F57C00`,radius:5,rect:null},_.templates.rony.padding=[250,0,30,0],_.templates.rony.img_0=function(e,t,n,r,i){var a=e.w/2,o=160,s=60,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.rony.node=function(e,t,n,r){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},_.templates.rony.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},_.templates.rony.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},_.templates.rony.field_2=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},_.templates.rony.link=`<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,_.templates.rony.plus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},_.templates.rony.minus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},_.templates.rony.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},_.templates.mery=Object.assign({},_.templates.ana),_.templates.mery.ripple={color:`#e6e6e6`,radius:50,rect:null},_.templates.mery.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},_.templates.mery.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,_.templates.mery.img_0=function(e,t,n,r,i){var a=e.w/2,o=e.h/2,s=24,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.mery.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},_.templates.mery.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},_.templates.mery.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},_.templates.polina=Object.assign({},_.templates.ana),_.templates.polina.size=[300,80],_.templates.polina.padding=[80,15,30,15],_.templates.polina.ripple={color:`#e6e6e6`,radius:40,rect:null},_.templates.polina.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},_.templates.polina.img_0=`<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>`,_.templates.polina.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>`,e.w-90,1)},_.templates.polina.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>`,e.w-90,1)},_.templates.polina.link=`<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,_.templates.polina.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},_.templates.mila=Object.assign({},_.templates.ana),_.templates.mila.padding=[60,15,120,15],_.templates.mila.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},_.templates.mila.img_0=function(e,t,n,r,i){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${i}" x="20" y="${e.h-115}" width="64" height="64"></image>`},_.templates.mila.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},_.templates.mila.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},_.templates.diva=Object.assign({},_.templates.ana),_.templates.diva.size=[200,170],_.templates.diva.padding=[160,10,30,10],_.templates.diva.node=function(e,t,n,r){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},_.templates.diva.img_0=function(e,t,n,r,i){var a=e.w/2,o=50,s=45,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.diva.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},_.templates.diva.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},_.templates.diva.pointer=`<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>`,_.templates.diva.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},_.templates.luba=Object.assign({},_.templates.ana),_.templates.luba.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,_.templates.luba.defs=`<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>`,_.templates.luba.node=function(e,t,n,r){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},_.templates.luba.padding=[70,10,60,10],_.templates.luba.img_0=function(e,t,n,r,i){var a=50,o=25,s=40,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.luba.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},_.templates.luba.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},_.templates.luba.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},_.templates.luba.plus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>`,_.templates.luba.minus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>`,_.templates.luba.expandCollapseSize=36,_.templates.isla=Object.assign({},_.templates.ana),_.templates.isla.defs=`<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>`,_.templates.isla.size=[180,120],_.templates.isla.padding=[70,1,60,1],_.templates.isla.node=function(e,t,n,r){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},_.templates.isla.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},_.templates.isla.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},_.templates.isla.img_0=``,_.templates.isla.img_0=function(e,t,n,r,i){var a=_.randomId();return`<clipPath id="${a}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},_.templates.isla.minus=`<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>`,_.templates.isla.plus=`<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>`,_.templates.isla.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},_.templates.isla.ripple={radius:0,color:`#F57C00`,rect:{x:0,y:20,width:180,height:100}},_.templates.deborah=Object.assign({},_.templates.polina),_.templates.deborah.size=[150,150],_.templates.deborah.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},_.templates.deborah.img_0=function(e,t,n,r,i){var a=_.randomId();return`<clipPath id="${a}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},_.templates.deborah.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>`,e.w-25,1)},_.templates.deborah.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},_.templates.deborah.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},_.templates.subLevel=Object.assign({},_.templates.base),_.templates.subLevel.size=[0,0],_.templates.subLevel.node=``,_.templates.subLevel.plus=``,_.templates.subLevel.minus=``,_.templates.subLevel.nodeMenuButton=``,_.templates.group_dotted_lines=Object.assign({},_.templates.group),_.templates.group_dotted_lines.size=[250,120],_.templates.group_dotted_lines.padding=[50,20,35,20],_.templates.group_dotted_lines.link=`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,_.templates.group_dotted_lines.node=`<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>`,_.templates.group_dotted_lines.nodeGroupDottedCloseButton=`<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>`+_.icon.close(25,25,`#fff`,-13,8)+`</g>`,_.templates.group_dotted_lines.field_0=`<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>`,_.templates.group_dotted_lines.field_1=``,_.templates.group_dotted_lines.img_0=``,_.templates.group_dotted_lines.ripple.radius=5,_.templates.group_dotted_lines.min=Object.assign({},_.templates.olivia),_.templates.group_dotted_lines.min.nodeGroupDottedOpenButton=`<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>`,_.templates.clara=Object.assign({},_.templates.ana),_.templates.clara.size=[180,210],_.templates.clara.padding=[80,7,7,7],_.templates.clara.img_0=function(e,t,n,r,i){var a=50,o=30,s=40;e.stChildren.length||(s=60,a=e.w/2,o=70);var c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.clara.treeListMaxHeight=387,_.templates.clara.field_0=function(e,t,n,r,i){var a=65,o=e.w/2,s=`middle`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=160,c=e.w-20),_.wrapText(i,`<text style="font-size: 20px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},_.templates.clara.field_1=function(e,t,n,r,i){var a=35,o=e.w-15,s=`end`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=180,c=e.w-20),_.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},_.templates.clara.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">
|
|
409
409
|
<rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
|
|
410
410
|
<circle cy="13" cx="6" r="2" fill="#fff"></circle>
|
|
411
411
|
<circle cy="13" cx="13" r="2" fill="#fff"></circle>
|
|
412
412
|
<circle cy="13" cx="20" r="2" fill="#fff"></circle>
|
|
413
|
-
</g>`},
|
|
413
|
+
</g>`},_.templates.clara.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},_.templates.treeListItem=Object.assign({},_.templates.ana),_.templates.treeListItem.size=[350,60],_.templates.treeListItem.field_0=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return _.wrapText(i,`<text fill="${o}" x="${a}" y="27" style="font-size:16px;"></text>`,e.w-a-70,1)},_.templates.treeListItem.field_1=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return _.wrapText(i,`<text fill="${o}" x="${a}" y="47" style="font-size:12px;"></text>`,e.w-a-70,1)},_.templates.treeListItem.img_0=function(e,t,n,r,i){var a=e.w-55,o=e.h/2,s=e.h/2-4,c=_.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},_.templates.treeListItem.expandCollapseSize=24,_.templates.treeListItem.plus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><text x="6" style="font-size: 10px;" fill="${o}" y="15.5" text-anchor="end">${e.deepCollapsedChildCount}</text><path fill="${o}" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},_.templates.treeListItem.minus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><path fill="${o}" d="M7.42,8.59L12,13.17L16.59,8.59L18,10L12,16L6,10L7.42,8.59Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},_.templates.treeListItem.nodeMenuButton=function(e,t,n,r){var i=r.mode==`dark`?`#ccc`:`#757575`;return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-36}, ${e.h/2-13})">
|
|
414
414
|
<rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
|
|
415
415
|
<circle cx="13" cy="6" r="2" fill="${i}"></circle>
|
|
416
416
|
<circle cx="13" cy="13" r="2" fill="${i}"></circle>
|
|
417
417
|
<circle cx="13" cy="20" r="2" fill="${i}"></circle>
|
|
418
|
-
</g>`},h.templates.treeListItem.node=function(e,t,n,r){var i=``,a=`#FFFFFF`;if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var o=`#E0E0E0`;r.mode==`dark`&&(o=`#444444`),i=`<line stroke="${o}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return r.mode==`dark`&&(a=`#252526`),`<rect fill="${a}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${i}`},h.ui={_defsIds:{},defs:function(e){var t=``;for(var n in h.templates){var r=h.templates[n];r.defs&&(h.ui._defsIds[n]=h.randomId(),t+=r.defs.replaceAll(`{randId}`,h.ui._defsIds[n]))}return`<defs>`+t+e+`</defs>`},lonely:function(e){return!e.nodes||!e.nodes.length?h.IT_IS_LONELY_HERE.replace(`{link}`,h.RES.IT_IS_LONELY_HERE_LINK):``},pointer:function(e,t,n){if(t===h.action.exporting)return``;var r=h.t(e.template,!1,n).pointer;return r||=``,r},aiButton:function(e){return e.enableAI?`<div data-boc-ai-button class="boc-ai-button">AI</div>`:``},node:function(e,t,n,r,i,a,o,s,c,l,u){var d=h.t(e.templateName,e.min,c),f=``;typeof d.node==`function`?f=d.node(e,t,d,r):h.isNEU(d.node)||(f=d.node,f&&=f.replaceAll(`{w}`,e.w).replaceAll(`{h}`,e.h)),d.defs&&(f=f.replaceAll(`{randId}`,h.ui._defsIds[e.templateName])),o??=r.nodeBinding;var p={node:e,data:t};for(var m in o){var g=o[m],_;t&&(_=t[g]),_??=e[g],p.element=d[m],p.value=_;var v=!1;typeof p.element==`function`&&(v=!0,p.element=p.element(e,t,d,r,p.value));var y=h._lblIsImg(r,m);if(p.name=g,p.field=m,h.events.publish(`field`,[l,p])!==!1&&p.value!=null&&p.value!=null&&p.element!=null){if(v)f+=p.element;else if(!y||y&&!h.isNEU(p.value)){if(!y&&typeof p.value==`string`){var b=p.element;b&&=b.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2),p.value=h.wrapText(p.value,b)}var x=p.element.replace(`{val}`,p.value);x=x.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2).replaceAll(`{randId}`,h.randomId()).replaceAll(`{randId2}`,h.randomId()),f+=x}}}var S=h._getPosition(n,e,i,a),C=`node`;Array.isArray(e.tags)&&e.tags.length&&(C+=` `+e.tags.join(` `)),e.layout&&(C+=` tree-layout`),u&&(C+=` treelist-pinned`);var w=``;e.lcn&&(w=`lcn="`+e.lcn+`"`);var T=h.nodeOpenTag.replace(`{lcn}`,w).replace(`{id}`,e.id).replace(`{class}`,C).replace(`{sl}`,e.sl).replace(`{level}`,e.level).replace(`{x}`,S.x).replace(`{y}`,S.y),E=h._getOpacity(n,e);return T=T.replace(`{opacity}`,E),f+=h.ui.nodeBtns(r,e,t,s,d,l),f=T+f+h.grCloseTag,f},nodeBtns:function(e,t,n,r,i,a){var o=``;return e.nodeMenu!=null&&!t.isSplit&&r!==h.action.exporting&&(typeof i.nodeMenuButton==`function`?o+=i.nodeMenuButton(t,n,i,e):h.isNEU(i.nodeMenuButton)||(o+=i.nodeMenuButton.replace(`{id}`,t.id).replace(`{cw}`,t.w/2).replace(`{ch}`,t.h/2).replace(`{ew}`,t.w-(t.padding?t.padding[1]:0)).replace(`{eh}`,t.h-(t.padding?t.padding[2]:0)))),o&&=`<g style="cursor:pointer;" ${h.attr.control_node_menu_id}="${t.id}">${o}</g>`,e.nodeCircleMenu!=null&&!t.isSplit&&r!==h.action.exporting&&(h.isNEU(i.nodeCircleMenuButton)||(o+=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,`+i.nodeCircleMenuButton.x+`,`+i.nodeCircleMenuButton.y+`)" `+h.attr.control_node_circle_menu_id+`="`+t.id+`"><circle cx="0" cy="0" fill="`+i.nodeCircleMenuButton.color+`" r="`+i.nodeCircleMenuButton.radius+`" stroke-width="1" stroke="`+i.nodeCircleMenuButton.stroke+`"></circle><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="-6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="-6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="0" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="0" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line></g>`)),o},expandCollapseBtn:function(e,t,n,r,i,a,o){var s=``;if(a!==h.action.exporting&&!t.isSplit){var c=i[t.lcn?t.lcn:`base`],l=h.t(t.templateName,t.min,o);if(t.childrenIds.length>0){if(t.hasPartners){for(var u=!1,d=0;d<t.childrenIds.length;d++){var f=e.getNode(t.childrenIds[d]);f&&!f.parentPartner&&!f.isPartner&&(u=!0)}if(!u)return``}var p=h._getDefailtPositionForExpandCollpase(c,t),m={x:p.x+t.x-l.expandCollapseSize/2,y:p.y+t.y-l.expandCollapseSize/2},g=e.getCollapsedIds(t);g.length?(typeof l.plus==`function`?(s+=h.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.plus(t,n,l,r,p)):(s+=h.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.plus),s+=h.grCloseTag):(typeof l.minus==`function`?(s+=h.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.minus(t,n,l,r,p)):(s+=h.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.minus),s+=h.grCloseTag),(g.length&&typeof l.plus!=`function`||!g.length&&typeof l.minus!=`function`)&&(s.indexOf(`{collapsed-children-count}`)!=-1&&(s=s.replace(`{collapsed-children-count}`,t.collapsedChildCount)),s.indexOf(`{collapsed-children-total-count}`)!=-1&&(s=s.replace(`{collapsed-children-total-count}`,t.deepCollapsedChildCount)),s.indexOf(`{children-count}`)!=-1&&(s=s.replace(`{children-count}`,t.childCount)),s.indexOf(`{children-total-count}`)!=-1&&(s=s.replace(`{children-total-count}`,t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(s+=h.upOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.up,s+=h.grCloseTag)}var _={html:s,node:t};return h.events.publish(`renderbuttons`,[e,_]),_.html},link:function(e,t,n,r,i,a,o){var s=e.lcn?e.lcn:`base`,c=t._layoutConfigs[s],l=h.t(e.templateName,e.min,n),u=[],d=[],f=0,p=c.levelSeparation/2;e.layout>0&&(p=c.mixedHierarchyNodesSeparation/2);var m=0,g=h.getRootOf(e).id,_=r[g][e.sl],v=void 0;if(e.hasPartners){v={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var y=0;y<e.children.length;y++){var b=e.children[y];b.parentPartner?(v.ppnodes[b.id]=b.parentPartner,v.ids.push(b.id),b.parentPartner.isPartner==1?(v.rightIds.indexOf(b.parentPartner.id)==-1&&v.rightIds.push(b.parentPartner.id),v.indexes[b.id]=v.rightIds.indexOf(b.parentPartner.id),v.firstRight||=b):b.parentPartner.isPartner==2&&(v.leftIds.indexOf(b.parentPartner.id)==-1&&v.leftIds.push(b.parentPartner.id),v.indexes[b.id]=v.leftIds.indexOf(b.parentPartner.id),v.lastLeft=b)):b.isPartner||(v.lastLeft=b,v.firstRight||=b)}v.maxSidePartnersWithChildren=Math.max(v.leftIds.length,v.rightIds.length),m=v.maxSidePartnersWithChildren==0?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+v.partnerChildrenSplitSeparation*v.maxSidePartnersWithChildren+v.partnerChildrenSplitSeparation/2}for(var y=0;y<e.children.length;y++){var b=e.children[y],x=r[g][b.sl],S={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0};l=h.t(b.templateName,b.min,n);var C=l.link;if(b.isChildOfPartner)switch(c.orientation){case h.orientation.top:case h.orientation.top_left:var w=b.layout==1?void 0:x.minY-(x.minY-_.maxY)/2;S=h.ui._linkTopToBottom(b.parentPartner,b,l,p,w,t);break;case h.orientation.bottom:case h.orientation.bottom_left:var w=b.layout==1?void 0:x.maxY-(x.maxY-_.minY)/2;S=h.ui._linkBottomToTop(b.parentPartner,b,l,p,w,t);break;case h.orientation.right:case h.orientation.right_top:var w=b.layout==1?void 0:x.maxX-(x.maxX-_.minX)/2;S=h.ui._linkRightToLeft(b.parentPartner,b,l,p,w,t);break;case h.orientation.left:case h.orientation.left_top:var w=b.layout==1?void 0:x.minX-(x.minX-_.maxX)/2;S=h.ui._linkLeftToRight(b.parentPartner,b,l,p,w,t);break}else if(v&&v.ids.indexOf(b.id)!=-1)switch(c.orientation){case h.orientation.top:case h.orientation.top_left:S=h.ui._linkPpTop(v,e,b,x,_,l);break;case h.orientation.bottom:case h.orientation.bottom_left:S=h.ui._linkPpBottom(v,e,b,x,_,l);break;case h.orientation.right:case h.orientation.right_top:S=h.ui._linkPpRight(v,e,b,x,_,l);break;case h.orientation.left:case h.orientation.left_top:S=h.ui._linkPpLeft(v,e,b,x,_,l);break}else{var T=b.isAssistant&&b.rightNeighbor&&b.rightNeighbor.isAssistant&&b.parent==b.rightNeighbor.parent,E=b.isAssistant&&b.leftNeighbor&&b.leftNeighbor.isAssistant&&b.parent==b.leftNeighbor.parent;if((T||b.layout>1)&&b.rightNeighbor&&b.rightNeighbor.isSplit)switch(c.orientation){case h.orientation.top:case h.orientation.top_left:S=h.ui._linkRightToLeft(b.rightNeighbor,b,l,p);break;case h.orientation.bottom:case h.orientation.bottom_left:S=h.ui._linkRightToLeft(b.rightNeighbor,b,l,p);break;case h.orientation.right:case h.orientation.right_top:S=h.ui._linkBottomToTop(b.rightNeighbor,b,l,p);break;case h.orientation.left:case h.orientation.left_top:S=h.ui._linkBottomToTop(b.rightNeighbor,b,l,p);break}else if((E||b.layout>1)&&b.leftNeighbor&&b.leftNeighbor.isSplit)switch(c.orientation){case h.orientation.top:case h.orientation.top_left:S=h.ui._linkLeftToRight(b.leftNeighbor,b,l,p,t);break;case h.orientation.bottom:case h.orientation.bottom_left:S=h.ui._linkLeftToRight(b.leftNeighbor,b,l,p,t);break;case h.orientation.right:case h.orientation.right_top:S=h.ui._linkTopToBottom(b.leftNeighbor,b,l,p,t);break;case h.orientation.left:case h.orientation.left_top:S=h.ui._linkTopToBottom(b.leftNeighbor,b,l,p,t);break}else switch(c.orientation){case h.orientation.top:case h.orientation.top_left:if(b.isPartner==1)S=h.ui._linkLeftToRight(e,b,l,m);else if(b.isPartner==2)S=h.ui._linkRightToLeft(e,b,l,m);else{var w=b.layout==1?void 0:x.minY-(x.minY-_.maxY)/2;S=h.ui._linkTopToBottom(e,b,l,p,w,t)}break;case h.orientation.bottom:case h.orientation.bottom_left:if(b.isPartner==1)S=h.ui._linkLeftToRight(e,b,l,m);else if(b.isPartner==2)S=h.ui._linkRightToLeft(e,b,l,m);else{var w=b.layout==1?void 0:x.maxY-(x.maxY-_.minY)/2;S=h.ui._linkBottomToTop(e,b,l,p,w,t)}break;case h.orientation.right:case h.orientation.right_top:if(b.isPartner==1)S=h.ui._linkTopToBottom(e,b,l,m);else if(b.isPartner==2)S=h.ui._linkBottomToTop(e,b,l,m);else{var w=b.layout==1?void 0:x.maxX-(x.maxX-_.minX)/2;S=h.ui._linkRightToLeft(e,b,l,p,w,t)}break;case h.orientation.left:case h.orientation.left_top:if(b.isPartner==1)S=h.ui._linkTopToBottom(e,b,l,m);else if(b.isPartner==2)S=h.ui._linkBottomToTop(e,b,l,m);else{var w=b.layout==1?void 0:x.minX-(x.minX-_.maxX)/2;S=h.ui._linkLeftToRight(e,b,l,p,w,t)}break}}var D,O=h.ui._draggableLinkPath(t,e,b,S,p,c.orientation);if(O)D=O,C=C.replaceAll(`{rounded}`,O).replaceAll(`{edge}`,O).replaceAll(`{curve}`,D);else if(C.indexOf(`{rounded}`)!=-1)if(S.xa==S.xb&&S.xa==S.xc&&S.xa==S.xd||S.ya==S.yb&&S.ya==S.yc&&S.ya==S.yd)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.xa-S.xd)<=h.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xc)<=h.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xb)<=h.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xa+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.ya-S.yd)<=h.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yc)<=h.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yb)<=h.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.ya,C=C.replaceAll(`{rounded}`,D);else{var k=h.ui._roundedEdge(S.xa,S.ya,S.xb,S.yb,S.xc,S.yc),A=h.ui._roundedEdge(S.xb,S.yb,S.xc,S.yc,S.xd,S.yd);D=`M`+k.x1+`,`+k.y1+` `+k.x2+`,`+k.y2+` Q`+k.qx1+`,`+k.qy1+` `+k.qx2+`,`+k.qy2+` L`+A.x2+`,`+A.y2+` Q`+A.qx1+`,`+A.qy1+` `+A.qx2+`,`+A.qy2+` L`+A.x3+`,`+A.y3,C=C.replaceAll(`{rounded}`,D)}else C.indexOf(`{edge}`)==-1?C.indexOf(`{curve}`)==-1?(D=C.replaceAll(`{xa}`,S.xa).replaceAll(`{ya}`,S.ya).replaceAll(`{xb}`,S.xb).replaceAll(`{yb}`,S.yb).replaceAll(`{xc}`,S.xc).replaceAll(`{yc}`,S.yc).replaceAll(`{xd}`,S.xd).replaceAll(`{yd}`,S.yd),C=D):(D=`M`+S.xa+`,`+S.ya+` C`+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` `+S.xd+`,`+S.yd,C=C.replaceAll(`{curve}`,D)):(D=`M`+S.xa+`,`+S.ya+` `+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{edge}`,D));u.push(h.linkOpenTag.replaceAll(`{id}`,e.id).replaceAll(`{class}`,`link `+b.tags.join(` `)).replaceAll(`{child-id}`,b.id));var j={node:e,cnode:b,p:S,html:C,action:a};h.events.publish(`render-link`,[t,j]),u.push(j.html),o&&d.push({id:e.id,childId:b.id,html:j.html});var M=``;for(var N in t.config.linkBinding){var P=t.config.linkBinding[N],F=t._get(b.id);F&&(j.value=F[P],j.element=l[N],j.name=P,h.events.publish(`label`,[t,j])!==!1&&!h.isNEU(j.value)&&!h.isNEU(j.element)&&(M+=j.element.replace(`{val}`,j.value)))}if(M!=``){var I=S.x,L=S.y;b.movey!=null&&(L+=b.movey),M=h.linkFieldsOpenTag.replace(`{x}`,I).replace(`{y}`,L).replace(`{rotate}`,f)+M+h.grCloseTag,u.push(M)}u.push(h.grCloseTag)}return o?d:u.join(``)},svg:function(e,t,n,r,i,a){return h.t(r.template,!1,a).svg.replace(`{w}`,e).replace(`{h}`,t).replace(`{viewBox}`,n).replace(`{randId}`,h.ui._defsIds[r.template]).replace(`{mode}`,r.mode).replace(`{template}`,r.template).replace(`{content}`,function(){return i})},menuButton:function(e){return e.menu==null?``:h.t(e.template,!1).menuButton.replaceAll(`{p}`,e.padding)},_roundedEdge:function(e,t,n,r,i,a){var o=h.LINK_ROUNDED_CORNERS,s,c,l,u=0;return e==n&&e==i||t==r&&t==a?(s=l=n,c=u=r):(e!=i&&n==i&&(s=l=n,c=r,t<a?u=r+o:t>a&&(u=r-o)),e<i&&n==i?n-=o:e>i&&n==i&&(n+=o),t!=a&&r==a&&(s=n,c=u=r,e<i?l=n+o:e>i&&(l=n-o)),t<a&&r==a?r-=o:t>a&&r==a&&(r+=o)),{x1:e,y1:t,x2:n,y2:r,x3:i,y3:a,qx1:s,qy1:c,qx2:l,qy2:u}},_linkTopToBottom:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,g=0,_=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+e.h+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y+e.rightNeighbor.h+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s+r:i??p-r,m=u,g=h.isNEU(t.parentPartner)?d+16:d;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:g,rotate:_};return a&&h._addConnectorLines(a._connectorLines,v),v},_linkBottomToTop:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,g=0,_=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+t.h+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s-r:i??p+r,m=u,g=d-14;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:g,rotate:_};return a&&h._addConnectorLines(a._connectorLines,v),v},_linkRightToLeft:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,g=0,_=0;o=e.x+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+t.w+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o-r:i??f+r,m=u-16,g=d,_=90;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:g,rotate:_};return a&&h._addConnectorLines(a._connectorLines,v),v},_linkLeftToRight:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,g=0,_=0;o=e.x+e.w+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x+e.rightNeighbor.w+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o+r:i??f-r,m=u+14,g=d,_=270;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:g,rotate:_};return a&&h._addConnectorLines(a._connectorLines,v),v},_linkPpTop:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.minY-(r.minY-i.maxY)/2,l=(r.minY-i.maxY)/e.maxSidePartnersWithChildren/4,u=h.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,h.ui._linkTopToBottom({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpBottom:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.maxY-(r.maxY-i.minY)/2,l=(r.maxY-i.minY)/e.maxSidePartnersWithChildren/4,u=h.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,h.ui._linkBottomToTop({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpLeft:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.minX-(r.minX-i.maxX)/2,c=(r.minX-i.maxX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=h.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,h.ui._linkLeftToRight({x:l,y:d,w:0,h:0},n,a,0,s)},_linkPpRight:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.maxX-(r.maxX-i.minX)/2,c=(r.maxX-i.minX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=h.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,h.ui._linkRightToLeft({x:l,y:d,w:0,h:0},n,a,0,s)},__linkPpBottomTop:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.x-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.x+e.lastLeft.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.x+a.w+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.x+e.firstRight.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{x:o,mid:r}},__linkPpLeftRight:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.y-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.y+e.lastLeft.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.y+a.h+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.y+e.firstRight.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{y:o,mid:r}},_draggableLinkPath:function(e,t,n,r,i,a){if(n.isSubLevel||t.isSubLevel||n.leftNeighbor&&n.leftNeighbor.isSplit||n.rightNeighbor&&n.rightNeighbor.isSplit||n.isPartner||n.isAssistant)return null;if(h._isMoved(n)&&!h._isMoved(t)){var o,s,c=[];switch(a){case h.orientation.top:case h.orientation.top_left:if(r.yb+i/2<r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case h.orientation.bottom:case h.orientation.bottom_left:if(r.yb-i/2>r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case h.orientation.right:case h.orientation.right_top:if(r.xb-i/2>r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case h.orientation.left:case h.orientation.left_top:if(r.xb+i/2<r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}switch(a){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:var c=[];c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return h.roundPathCorners(c,h.LINK_ROUNDED_CORNERS,!1)}else if(!h._isMoved(n)&&h._isMoved(t)){var o,s,l=!1,c=[];switch(a){case h.orientation.top:case h.orientation.top_left:if(r.ya+i/2>r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i;else if(r.yb+i/2<r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case h.orientation.bottom:case h.orientation.bottom_left:if(r.ya-i/2<r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i;else if(r.yb-i/2>r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case h.orientation.right:case h.orientation.right_top:if(r.xa-i/2<r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i;else if(r.xb-i/2>r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case h.orientation.left:case h.orientation.left_top:if(r.xa+i/2>r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i;else if(r.xb+i/2<r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}if(l)switch(a){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yc]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,r.xc,s]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break}else switch(a){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return h.roundPathCorners(c,h.LINK_ROUNDED_CORNERS,!1)}else if(h._isMoved(n)&&h._isMoved(t)){var c=[];switch(a){case h.orientation.top:case h.orientation.top_left:if(r.ya+i>r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i,u=n.y-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y+t.h+i]),c.push([`L`,r.xc,t.y+t.h+i]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.bottom:case h.orientation.bottom_left:if(r.ya-i<r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i,u=n.y+n.h+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y-i]),c.push([`L`,r.xc,t.y-i]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.right:case h.orientation.right_top:if(r.xa-i<r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i,d=n.x+n.w+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x-i,r.ya]),c.push([`L`,t.x-i,r.yc]),c.push([`L`,r.xd,r.yd]);break;case h.orientation.left:case h.orientation.left_top:if(r.xa+i>r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i,d=n.x-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x+t.w+i,r.ya]),c.push([`L`,t.x+t.w+i,r.yc]),c.push([`L`,r.xd,r.yd]);break}return h.roundPathCorners(c,h.LINK_ROUNDED_CORNERS,!1)}return null}},h===void 0&&(h={}),h._validateConfig=function(e){if(!e)console.error(`config is not defined`);else return!0;return!1},h._arrayContains=function(e,t){if(e&&Array.isArray(e)){for(var n=e.length;n--;)if(e[n]===t)return!0}return!1},h._interceptions=function(e,t){if(!e||!t)return[];var n=[];if(Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)e[r]==t[i]&&n.push(e[r]);else if(Array.isArray(e)&&!Array.isArray(t))for(var r in e)for(var i in t)e[r]==i&&n.push(e[r]);else if(!Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)r==t[i]&&n.push(t[i]);return n},h._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(`,`):e.tags&&Array.isArray(e.tags)?e.tags:[]},h._centerPointInPercent=function(e,t,n){var r=e.getBoundingClientRect(),i=t-r.left,a=n-r.top;return[i/(r.width/100),a/(r.height/100)]},h._trim=function(e){return e.replace(/^\s+|\s+$/g,``)},h._getTransform=function(e){var t=e.getAttribute(`transform`);return t=t.replace(`matrix`,``).replace(`(`,``).replace(`)`,``),h._browser().msie&&(t=t.replace(/ /g,`,`)),t=h._trim(t),t=`[`+t+`]`,t=JSON.parse(t),t},h.getScale=function(e,t,n,r,i,a,o,s){var c=1;if(!e&&(r===h.match.boundary||r===h.match.boundaryIfOutside)){var l=t/o,u=n/s;c=l>u?u:l,r===h.match.boundaryIfOutside&&c>1&&(c=1)}else if(!e&&r===h.match.width)c=t/o;else if(!e&&r===h.match.height)c=n/s;else if(!e)c=r;else{var l=t/e[2],u=n/e[3];c=l>u?u:l}return c&&c>i&&(c=i),c&&c<a&&(c=a),c},h.isObject=function(e){return e&&typeof e==`object`&&!Array.isArray(e)&&e!==null&&e.constructor&&e.constructor.name.toLowerCase()==`object`},h.fileUploadDialog=function(e){var t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.style.display=`none`,t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},h.mergeDeep=function(e,t){if(h.isObject(e)&&h.isObject(t))for(var n in t)h.isObject(t[n])?(e[n]||Object.assign(e,{[n]:{}}),h.mergeDeep(e[n],t[n])):Object.assign(e,{[n]:t[n]});return e},h._lblIsImg=function(e,t){return!!(e.nodeBinding&&typeof t==`string`&&t.indexOf(`img`)!=-1&&e.nodeBinding[t])},h._getFistImgField=function(e){if(e.nodeBinding){for(var t in e.nodeBinding)if(t.indexOf(`img`)!=-1)return e.nodeBinding[t]}return!1},h._fieldIsImg=function(e,t){if(e.nodeBinding){for(var n in e.nodeBinding)if(e.nodeBinding[n]==t)return h._lblIsImg(e,n)}return!1},h._guid=function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+`-`+e()+`-`+e()+`-`+e()+`-`+e()+e()+e()},h.htmlRipple=function(e){var t=document.createElement(`style`);t.type=`text/css`,t.innerHTML=` .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}`,document.head.appendChild(t);var n=function(e,t){var n=void 0;return function(){var r,i=this;return r=arguments,clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}},r=function(t){var n,r=this,i=document.createElement(`span`),a=r.offsetWidth,o,s,c;return n=r.getBoundingClientRect(),s=t.pageX-n.left-a/2,c=t.pageY-n.top-a/2,o=`top:`+c+`px; left: `+s+`px; height: `+a+`px; width: `+a+`px;`,e.rippleContainer.appendChild(i),i.setAttribute(`style`,o)},i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},a=document.createElement(`div`);a.className=`boc-ripple-container`,e.addEventListener(`mousedown`,r),e.addEventListener(`mouseup`,n(i,2e3)),e.rippleContainer=a,e.appendChild(a)},h._moveToBoundaryArea=function(e,t,n,r){var i=t.slice(0);t[0]<n.left&&t[0]<n.right&&(i[0]=n.left>n.right?n.right:n.left),t[0]>n.right&&t[0]>n.left&&(i[0]=n.left>n.right?n.left:n.right),t[1]<n.top&&t[1]<n.bottom&&(i[1]=n.top>n.bottom?n.bottom:n.top),t[1]>n.bottom&&t[1]>n.top&&(i[1]=n.top>n.bottom?n.top:n.bottom),t[0]!==i[0]||t[1]!==i[1]?h.animate(e,{viewBox:t},{viewBox:i},300,h.anim.outPow,function(){r&&r()}):r&&r()},h.randomId=function(){return`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4)},h._getClientXY=function(e){if(e.type.indexOf(`touch`)!=-1){if(e.changedTouches.length)return{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}}else return{x:e.clientX,y:e.clientY}},h._getClientTouchesXY=function(e,t){return e.type.indexOf(`touch`)==-1?{x:e.clientX,y:e.clientY}:e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}},h._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,h._getOffset(e.offsetParent,t))},h._getTopLeft=function(e){var t={x:0,y:0};return h._getOffset(e,t),t},h._getOffsetXY=function(e,t){if(t.type.indexOf(`touch`)!=-1){if(t.touches.length){var n=h._getTopLeft(e);return{x:t.touches[0].pageX-n.x,y:t.touches[0].pageY-n.y}}else if(t.changedTouches.length){var n=h._getTopLeft(e);return isNaN(n.x)||isNaN(n.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-n.x,y:t.changedTouches[0].pageY-n.y}}}else return{x:t.offsetX,y:t.offsetY}},h._pinchMiddlePointInPercent=function(e,t,n,r){var i=h._getTopLeft(e),a=r.touches[0].pageX-i.x,o=r.touches[0].pageY-i.y,s=r.touches[1].pageX-i.x,c=r.touches[1].pageY-i.y;return[((a-s)/2+s)/(t/100),((o-c)/2+c)/(n/100)]},h._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(` OPR/`)>=0,t=typeof InstallTrigger<`u`,n=/constructor/i.test(window.HTMLElement)||(function(e){return e.toString()===`[object SafariRemoteNotification]`})(!window.safari||window.safari!==void 0&&safari.pushNotification),r=!!document.documentMode,i=!r&&!!window.StyleMedia,a=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime);return{opera:e,firefox:t,safari:n,msie:r,edge:i,chrome:a,blink:(a||e)&&!!window.CSS}},h._menuPosition=function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.getBoundingClientRect(),o=r.left-i.left,s=r.top-i.top;return r.top+a.height>i.top+i.height&&(s-=a.height),r.left-a.width<i.left&&(o+=a.width),{x:o,y:s}},h._getTemplate=function(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=t[e[r]];if(i&&i.template)return i.template}return n},h._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var n=0;n<e.tags.length;n++){var r=t.tags[e.tags[n]];if(r&&r.min===!0)return!0}return t.min},h._getSubLevels=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=t[e[n]];if(r&&r.subLevels)return r.subLevels}return 0},h._isHTML=function(e){var t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.body.childNodes).some(e=>e.nodeType===1)},h._getTestDiv=function(){var e=document.getElementById(`orgchart_js_test_div`);return e||(e=document.createElement(`div`),e.id=`orgchart_js_test_div`,e.style.position=`fixed`,e.style.top=`-10000px`,e.style.left=`-10000px`,document.body.appendChild(e)),e},h._getLabelSize=function(e){var t=h._getTestDiv();return t.innerHTML=`<svg>`+e+`</svg>`,t.querySelector(`text`).getBoundingClientRect()},h.wrapText=function(e,t,n,r){if(n!=null&&r!=null)return h._lineClamp(t,e,n,r);var i=t,a=i.toLowerCase();if(a.indexOf(`<text`)==-1||a.indexOf(h.attr.width)==-1||a.indexOf(`foreignobject`)!=-1||i.indexOf(h.attr.width)==-1||h.ESCAPE_HTML&&typeof str==`string`&&h._isHTML(e))return h._escapeHtml(e);if(!h.ESCAPE_HTML&&h._isHTML(e))return e;var o=h._getTestDiv();i=i.replaceAll(`{cw}`,0),o.innerHTML=`<svg>`+i+`</svg>`;var s=new DOMParser().parseFromString(i,`text/xml`).getElementsByTagName(`text`)[0],c=parseFloat(s.getAttribute(`x`)),l=parseFloat(s.getAttribute(`y`)),u=s.getAttribute(`text-anchor`),n=s.getAttribute(h.attr.width),d=s.getAttribute(h.attr.text_overflow),f=`http://www.w3.org/2000/svg`,p=o.getElementsByTagName(`svg`)[0].getElementsByTagName(`text`)[0],r,m;d||=`ellipsis`;var g=d.split(`-`);if(g.length>1&&(r=parseInt(d.split(`-`)[1]),g.length>2&&g[2]==`ellipsis`&&(m=!0)),!n)return h._escapeHtml(e);if(n=parseFloat(n),c||=0,l||=0,c||(u=`start`),d==`ellipsis`){p.removeChild(p.firstChild),p.textContent=e;for(var _=p.getComputedTextLength(),v=2;_>n;)p.textContent=e.substring(0,e.length-v),p.textContent+=`...`,_=p.getComputedTextLength(),v++;return v>2?`<title>${h._escapeHtml(e)}</title>${p.textContent}`:h._escapeHtml(e)}else if(d.indexOf(`multiline`)!=-1){var y=e.split(` `),b=p.getBBox().height;p.textContent=``;var x=document.createElementNS(f,`tspan`),S=document.createTextNode(y[0]);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l),x.setAttributeNS(null,`text-anchor`,u),x.appendChild(S),p.appendChild(x);for(var v=1,C=1,w=!1,T=1;T<y.length;T++){var E=x.firstChild.data.length;if(x.firstChild.data+=` `+y[T],x.getComputedTextLength()>n){if(x.firstChild.data=x.firstChild.data.slice(0,E),C++,r&&C>r){if(m&&p.children.length==r){var D=p.children[r-1].textContent;p.children[r-1].textContent=D.substring(0,D.length-3)+`...`,w=!0}break}var x=document.createElementNS(f,`tspan`);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l+b*v),x.setAttributeNS(null,`text-anchor`,u),S=document.createTextNode(y[T]),x.appendChild(S),p.appendChild(x),v++}}var O=``;if(p.innerHTML!=null)O=p.innerHTML,p.innerHTML=``;else{for(var k=``,T=p.childNodes.length-1;T>=0;T--)k=XMLSerializer().serializeToString(p.childNodes[T])+k,p.removeChild(p.childNodes[T]);O=k}return w?`<title>${h._escapeHtml(e)}</title>${O}`:O}},h._downloadFile=function(e,t,n,r,i){var a=new Blob([t],{type:e});if(r==1){var o=URL.createObjectURL(a);window.open(o,`_blank`).focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(a,n);else{var s=document.createElement(`a`);if(s.download!==void 0){var o=URL.createObjectURL(a);s.setAttribute(`href`,o);var c=n;c.toLowerCase().endsWith(i.toLowerCase())||(c=c+`.`+i),s.setAttribute(`download`,c),s.style.visibility=`hidden`,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}},h._getPosition=function(e,t,n,r){var i={x:t.x,y:t.y};if(n!=null&&(i.x=n),r!=null&&(i.y=n),e&&e.length==3){var a=e[0].indexOf(t.id);a!=-1&&e[1][a].transform!=null&&(n??(i.x=e[1][a].transform[4]),r??(i.y=e[1][a].transform[5]))}return i},h._getOpacity=function(e,t){var n=1;if(e&&e.length==3){var r=e[0].indexOf(t.id);r!=-1&&e[1][r].opacity!=null&&(n=e[1][r].opacity)}return n},h.t=function(e,t,n){var r=h.templates[e];r??console.error(`Template "${e}" does not exist!`);var i=null;if(n!=null&&r.scaleLessThen){var a=[];for(var o in r.scaleLessThen){var s=parseFloat(o);n<s&&a.push(s)}if(a.length>0){a.sort(function(e,t){return e-t});var c=r.scaleLessThen[a[0]];for(var l in c)i??=Object.assign({},r),i[l]=c[l]}}return t?i==null?r.min?r.min:r:i.min?i.min:i:i??r},h.setNodeSize=function(e){var t=h.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},h._imgs2base64=function(e,t,n,r){var i=e.getElementsByTagName(t),a=i.length;a==0&&r();for(var o=0;o<a;o++)(function(){var e=o,t=i[e];h._getDataUri(t.getAttribute(n),function(i){i.success&&t.setAttribute(n,i.result),e==a-1&&r()})})()},h._getDataUri=function(e,t){if(e.indexOf(`base64`)!=-1)t({success:!1});else{var n=new XMLHttpRequest;n.open(`GET`,e),n.responseType=`blob`,n.onload=function(){n.status===200?r.readAsDataURL(n.response):n.status===404&&t({success:!1,result:n.status})};var r=new FileReader;r.onloadend=function(){t({success:!0,result:r.result})},n.send()}},h._convertStringToArray=function(e,t){return h.ARRAY_FIELDS.indexOf(e)==-1?t:h.isNEU(t)?[]:t.split(`,`)},h._convertArrayToString=function(e){return!h.isNEU(e)&&Array.isArray(e)?e.join():e},h._csvToArray=function(e,t){t||=h.CSV_DELIMITER;for(var n=RegExp(`(\\`+t+`|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\`+t+`\\r\\n]*))`,`gi`),r=[[]],i=null;i=n.exec(e);){var a=i[1];a.length&&a!==t&&r.push([]);var o=i[2]?i[2].replace(RegExp(`""`,`g`),`"`):i[3];r[r.length-1].push(o)}return r},h._json2xml=function(e){for(var t=document.implementation.createDocument(``,``,null),n=t.createElement(`nodes`),r=0;r<e.length;r++){var i=t.createElement(`node`),a=e[r];for(var o in a){var s=a[o];i.setAttribute(o,h._convertArrayToString(s))}n.appendChild(i)}return t.appendChild(n),`<?xml version="1.0" encoding="utf-8" ?>`+new XMLSerializer().serializeToString(t.documentElement)},h._xml2json=function(e){for(var t=new DOMParser().parseFromString(e,`text/xml`).getElementsByTagName(`node`),n=[],r=0;r<t.length;r++){for(var i=t[r],a={},o=0;o<i.attributes.length;o++){var s=i.attributes[o];a[s.name]=h._convertStringToArray(s.name,s.value)}n.push(a)}return n},h.convertNodesToCsv=function(e){return h._json2csv(e)},h._json2csv=function(e){for(var t=[],n=function(e){for(var n=``,r=0;r<t.length;r++){var i=t[r]==`reportsTo`?null:e[t[r]]==null?``:e[t[r]];i instanceof Date&&(i=i.toLocaleString()),i=i===null?``:i.toString();var a=i.replace(/"/g,`""`),o=RegExp(`("|;|
|
|
419
|
-
)`,`g`);a.search(o)>=0&&(a=`"`+a+`"`),r>0&&(n+=
|
|
420
|
-
`},r=``,i=0;i<e.length;i++)for(var a in e[i])
|
|
421
|
-
`;for(var i=0;i<e.length;i++)r+=n(e[i]);return r=r.substring(0,r.length-1),r},
|
|
418
|
+
</g>`},_.templates.treeListItem.node=function(e,t,n,r){var i=``,a=`#FFFFFF`;if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var o=`#E0E0E0`;r.mode==`dark`&&(o=`#444444`),i=`<line stroke="${o}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return r.mode==`dark`&&(a=`#252526`),`<rect fill="${a}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${i}`},_.ui={_defsIds:{},defs:function(e){var t=``;for(var n in _.templates){var r=_.templates[n];r.defs&&(_.ui._defsIds[n]=_.randomId(),t+=r.defs.replaceAll(`{randId}`,_.ui._defsIds[n]))}return`<defs>`+t+e+`</defs>`},lonely:function(e){return!e.nodes||!e.nodes.length?_.IT_IS_LONELY_HERE.replace(`{link}`,_.RES.IT_IS_LONELY_HERE_LINK):``},pointer:function(e,t,n){if(t===_.action.exporting)return``;var r=_.t(e.template,!1,n).pointer;return r||=``,r},aiButton:function(e){return e.enableAI?`<div data-boc-ai-button class="boc-ai-button">AI</div>`:``},node:function(e,t,n,r,i,a,o,s,c,l,u){var d=_.t(e.templateName,e.min,c),f=``;typeof d.node==`function`?f=d.node(e,t,d,r):_.isNEU(d.node)||(f=d.node,f&&=f.replaceAll(`{w}`,e.w).replaceAll(`{h}`,e.h)),d.defs&&(f=f.replaceAll(`{randId}`,_.ui._defsIds[e.templateName])),o??=r.nodeBinding;var p={node:e,data:t};for(var m in o){var h=o[m],g;t&&(g=t[h]),g??=e[h],p.element=d[m],p.value=g;var v=!1;typeof p.element==`function`&&(v=!0,p.element=p.element(e,t,d,r,p.value));var y=_._lblIsImg(r,m);if(p.name=h,p.field=m,_.events.publish(`field`,[l,p])!==!1&&p.value!=null&&p.value!=null&&p.element!=null){if(v)f+=p.element;else if(!y||y&&!_.isNEU(p.value)){if(!y&&typeof p.value==`string`){var b=p.element;b&&=b.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2),p.value=_.wrapText(p.value,b)}var x=p.element.replace(`{val}`,p.value);x=x.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2).replaceAll(`{randId}`,_.randomId()).replaceAll(`{randId2}`,_.randomId()),f+=x}}}var S=_._getPosition(n,e,i,a),C=`node`;Array.isArray(e.tags)&&e.tags.length&&(C+=` `+e.tags.join(` `)),e.layout&&(C+=` tree-layout`),u&&(C+=` treelist-pinned`);var w=``;e.lcn&&(w=`lcn="`+e.lcn+`"`);var T=_.nodeOpenTag.replace(`{lcn}`,w).replace(`{id}`,e.id).replace(`{class}`,C).replace(`{sl}`,e.sl).replace(`{level}`,e.level).replace(`{x}`,S.x).replace(`{y}`,S.y),E=_._getOpacity(n,e);return T=T.replace(`{opacity}`,E),f+=_.ui.nodeBtns(r,e,t,s,d,l),f=T+f+_.grCloseTag,f},nodeBtns:function(e,t,n,r,i,a){var o=``;return e.nodeMenu!=null&&!t.isSplit&&r!==_.action.exporting&&(typeof i.nodeMenuButton==`function`?o+=i.nodeMenuButton(t,n,i,e):_.isNEU(i.nodeMenuButton)||(o+=i.nodeMenuButton.replace(`{id}`,t.id).replace(`{cw}`,t.w/2).replace(`{ch}`,t.h/2).replace(`{ew}`,t.w-(t.padding?t.padding[1]:0)).replace(`{eh}`,t.h-(t.padding?t.padding[2]:0)))),o&&=`<g style="cursor:pointer;" ${_.attr.control_node_menu_id}="${t.id}">${o}</g>`,e.nodeCircleMenu!=null&&!t.isSplit&&r!==_.action.exporting&&(_.isNEU(i.nodeCircleMenuButton)||(o+=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,`+i.nodeCircleMenuButton.x+`,`+i.nodeCircleMenuButton.y+`)" `+_.attr.control_node_circle_menu_id+`="`+t.id+`"><circle cx="0" cy="0" fill="`+i.nodeCircleMenuButton.color+`" r="`+i.nodeCircleMenuButton.radius+`" stroke-width="1" stroke="`+i.nodeCircleMenuButton.stroke+`"></circle><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="-6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="-6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="0" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="0" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line></g>`)),o},expandCollapseBtn:function(e,t,n,r,i,a,o){var s=``;if(a!==_.action.exporting&&!t.isSplit){var c=i[t.lcn?t.lcn:`base`],l=_.t(t.templateName,t.min,o);if(t.childrenIds.length>0){if(t.hasPartners){for(var u=!1,d=0;d<t.childrenIds.length;d++){var f=e.getNode(t.childrenIds[d]);f&&!f.parentPartner&&!f.isPartner&&(u=!0)}if(!u)return``}var p=_._getDefailtPositionForExpandCollpase(c,t),m={x:p.x+t.x-l.expandCollapseSize/2,y:p.y+t.y-l.expandCollapseSize/2},h=e.getCollapsedIds(t);h.length?(typeof l.plus==`function`?(s+=_.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.plus(t,n,l,r,p)):(s+=_.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.plus),s+=_.grCloseTag):(typeof l.minus==`function`?(s+=_.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.minus(t,n,l,r,p)):(s+=_.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,m.x).replace(`{y}`,m.y),s+=l.minus),s+=_.grCloseTag),(h.length&&typeof l.plus!=`function`||!h.length&&typeof l.minus!=`function`)&&(s.indexOf(`{collapsed-children-count}`)!=-1&&(s=s.replace(`{collapsed-children-count}`,t.collapsedChildCount)),s.indexOf(`{collapsed-children-total-count}`)!=-1&&(s=s.replace(`{collapsed-children-total-count}`,t.deepCollapsedChildCount)),s.indexOf(`{children-count}`)!=-1&&(s=s.replace(`{children-count}`,t.childCount)),s.indexOf(`{children-total-count}`)!=-1&&(s=s.replace(`{children-total-count}`,t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(s+=_.upOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.up,s+=_.grCloseTag)}var g={html:s,node:t};return _.events.publish(`renderbuttons`,[e,g]),g.html},link:function(e,t,n,r,i,a,o){var s=e.lcn?e.lcn:`base`,c=t._layoutConfigs[s],l=_.t(e.templateName,e.min,n),u=[],d=[],f=0,p=c.levelSeparation/2;e.layout>0&&(p=c.mixedHierarchyNodesSeparation/2);var m=0,h=_.getRootOf(e).id,g=r[h][e.sl],v=void 0;if(e.hasPartners){v={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var y=0;y<e.children.length;y++){var b=e.children[y];b.parentPartner?(v.ppnodes[b.id]=b.parentPartner,v.ids.push(b.id),b.parentPartner.isPartner==1?(v.rightIds.indexOf(b.parentPartner.id)==-1&&v.rightIds.push(b.parentPartner.id),v.indexes[b.id]=v.rightIds.indexOf(b.parentPartner.id),v.firstRight||=b):b.parentPartner.isPartner==2&&(v.leftIds.indexOf(b.parentPartner.id)==-1&&v.leftIds.push(b.parentPartner.id),v.indexes[b.id]=v.leftIds.indexOf(b.parentPartner.id),v.lastLeft=b)):b.isPartner||(v.lastLeft=b,v.firstRight||=b)}v.maxSidePartnersWithChildren=Math.max(v.leftIds.length,v.rightIds.length),m=v.maxSidePartnersWithChildren==0?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+v.partnerChildrenSplitSeparation*v.maxSidePartnersWithChildren+v.partnerChildrenSplitSeparation/2}for(var y=0;y<e.children.length;y++){var b=e.children[y],x=r[h][b.sl],S={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0};l=_.t(b.templateName,b.min,n);var C=l.link;if(b.isChildOfPartner)switch(c.orientation){case _.orientation.top:case _.orientation.top_left:var w=b.layout==1?void 0:x.minY-(x.minY-g.maxY)/2;S=_.ui._linkTopToBottom(b.parentPartner,b,l,p,w,t);break;case _.orientation.bottom:case _.orientation.bottom_left:var w=b.layout==1?void 0:x.maxY-(x.maxY-g.minY)/2;S=_.ui._linkBottomToTop(b.parentPartner,b,l,p,w,t);break;case _.orientation.right:case _.orientation.right_top:var w=b.layout==1?void 0:x.maxX-(x.maxX-g.minX)/2;S=_.ui._linkRightToLeft(b.parentPartner,b,l,p,w,t);break;case _.orientation.left:case _.orientation.left_top:var w=b.layout==1?void 0:x.minX-(x.minX-g.maxX)/2;S=_.ui._linkLeftToRight(b.parentPartner,b,l,p,w,t);break}else if(v&&v.ids.indexOf(b.id)!=-1)switch(c.orientation){case _.orientation.top:case _.orientation.top_left:S=_.ui._linkPpTop(v,e,b,x,g,l);break;case _.orientation.bottom:case _.orientation.bottom_left:S=_.ui._linkPpBottom(v,e,b,x,g,l);break;case _.orientation.right:case _.orientation.right_top:S=_.ui._linkPpRight(v,e,b,x,g,l);break;case _.orientation.left:case _.orientation.left_top:S=_.ui._linkPpLeft(v,e,b,x,g,l);break}else{var T=b.isAssistant&&b.rightNeighbor&&b.rightNeighbor.isAssistant&&b.parent==b.rightNeighbor.parent,E=b.isAssistant&&b.leftNeighbor&&b.leftNeighbor.isAssistant&&b.parent==b.leftNeighbor.parent;if((T||b.layout>1)&&b.rightNeighbor&&b.rightNeighbor.isSplit)switch(c.orientation){case _.orientation.top:case _.orientation.top_left:S=_.ui._linkRightToLeft(b.rightNeighbor,b,l,p);break;case _.orientation.bottom:case _.orientation.bottom_left:S=_.ui._linkRightToLeft(b.rightNeighbor,b,l,p);break;case _.orientation.right:case _.orientation.right_top:S=_.ui._linkBottomToTop(b.rightNeighbor,b,l,p);break;case _.orientation.left:case _.orientation.left_top:S=_.ui._linkBottomToTop(b.rightNeighbor,b,l,p);break}else if((E||b.layout>1)&&b.leftNeighbor&&b.leftNeighbor.isSplit)switch(c.orientation){case _.orientation.top:case _.orientation.top_left:S=_.ui._linkLeftToRight(b.leftNeighbor,b,l,p,t);break;case _.orientation.bottom:case _.orientation.bottom_left:S=_.ui._linkLeftToRight(b.leftNeighbor,b,l,p,t);break;case _.orientation.right:case _.orientation.right_top:S=_.ui._linkTopToBottom(b.leftNeighbor,b,l,p,t);break;case _.orientation.left:case _.orientation.left_top:S=_.ui._linkTopToBottom(b.leftNeighbor,b,l,p,t);break}else switch(c.orientation){case _.orientation.top:case _.orientation.top_left:if(b.isPartner==1)S=_.ui._linkLeftToRight(e,b,l,m);else if(b.isPartner==2)S=_.ui._linkRightToLeft(e,b,l,m);else{var w=b.layout==1?void 0:x.minY-(x.minY-g.maxY)/2;S=_.ui._linkTopToBottom(e,b,l,p,w,t)}break;case _.orientation.bottom:case _.orientation.bottom_left:if(b.isPartner==1)S=_.ui._linkLeftToRight(e,b,l,m);else if(b.isPartner==2)S=_.ui._linkRightToLeft(e,b,l,m);else{var w=b.layout==1?void 0:x.maxY-(x.maxY-g.minY)/2;S=_.ui._linkBottomToTop(e,b,l,p,w,t)}break;case _.orientation.right:case _.orientation.right_top:if(b.isPartner==1)S=_.ui._linkTopToBottom(e,b,l,m);else if(b.isPartner==2)S=_.ui._linkBottomToTop(e,b,l,m);else{var w=b.layout==1?void 0:x.maxX-(x.maxX-g.minX)/2;S=_.ui._linkRightToLeft(e,b,l,p,w,t)}break;case _.orientation.left:case _.orientation.left_top:if(b.isPartner==1)S=_.ui._linkTopToBottom(e,b,l,m);else if(b.isPartner==2)S=_.ui._linkBottomToTop(e,b,l,m);else{var w=b.layout==1?void 0:x.minX-(x.minX-g.maxX)/2;S=_.ui._linkLeftToRight(e,b,l,p,w,t)}break}}var D,O=_.ui._draggableLinkPath(t,e,b,S,p,c.orientation);if(O)D=O,C=C.replaceAll(`{rounded}`,O).replaceAll(`{edge}`,O).replaceAll(`{curve}`,D);else if(C.indexOf(`{rounded}`)!=-1)if(S.xa==S.xb&&S.xa==S.xc&&S.xa==S.xd||S.ya==S.yb&&S.ya==S.yc&&S.ya==S.yd)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.xa-S.xd)<=_.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xc)<=_.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xb)<=_.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xa+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.ya-S.yd)<=_.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yc)<=_.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yb)<=_.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.ya,C=C.replaceAll(`{rounded}`,D);else{var k=_.ui._roundedEdge(S.xa,S.ya,S.xb,S.yb,S.xc,S.yc),A=_.ui._roundedEdge(S.xb,S.yb,S.xc,S.yc,S.xd,S.yd);D=`M`+k.x1+`,`+k.y1+` `+k.x2+`,`+k.y2+` Q`+k.qx1+`,`+k.qy1+` `+k.qx2+`,`+k.qy2+` L`+A.x2+`,`+A.y2+` Q`+A.qx1+`,`+A.qy1+` `+A.qx2+`,`+A.qy2+` L`+A.x3+`,`+A.y3,C=C.replaceAll(`{rounded}`,D)}else C.indexOf(`{edge}`)==-1?C.indexOf(`{curve}`)==-1?(D=C.replaceAll(`{xa}`,S.xa).replaceAll(`{ya}`,S.ya).replaceAll(`{xb}`,S.xb).replaceAll(`{yb}`,S.yb).replaceAll(`{xc}`,S.xc).replaceAll(`{yc}`,S.yc).replaceAll(`{xd}`,S.xd).replaceAll(`{yd}`,S.yd),C=D):(D=`M`+S.xa+`,`+S.ya+` C`+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` `+S.xd+`,`+S.yd,C=C.replaceAll(`{curve}`,D)):(D=`M`+S.xa+`,`+S.ya+` `+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{edge}`,D));u.push(_.linkOpenTag.replaceAll(`{id}`,e.id).replaceAll(`{class}`,`link `+b.tags.join(` `)).replaceAll(`{child-id}`,b.id));var j={node:e,cnode:b,p:S,html:C,action:a};_.events.publish(`render-link`,[t,j]),u.push(j.html),o&&d.push({id:e.id,childId:b.id,html:j.html});var M=``;for(var N in t.config.linkBinding){var P=t.config.linkBinding[N],F=t._get(b.id);F&&(j.value=F[P],j.element=l[N],j.name=P,_.events.publish(`label`,[t,j])!==!1&&!_.isNEU(j.value)&&!_.isNEU(j.element)&&(M+=j.element.replace(`{val}`,j.value)))}if(M!=``){var I=S.x,L=S.y;b.movey!=null&&(L+=b.movey),M=_.linkFieldsOpenTag.replace(`{x}`,I).replace(`{y}`,L).replace(`{rotate}`,f)+M+_.grCloseTag,u.push(M)}u.push(_.grCloseTag)}return o?d:u.join(``)},svg:function(e,t,n,r,i,a){return _.t(r.template,!1,a).svg.replace(`{w}`,e).replace(`{h}`,t).replace(`{viewBox}`,n).replace(`{randId}`,_.ui._defsIds[r.template]).replace(`{mode}`,r.mode).replace(`{template}`,r.template).replace(`{content}`,function(){return i})},menuButton:function(e){return e.menu==null?``:_.t(e.template,!1).menuButton.replaceAll(`{p}`,e.padding)},_roundedEdge:function(e,t,n,r,i,a){var o=_.LINK_ROUNDED_CORNERS,s,c,l,u=0;return e==n&&e==i||t==r&&t==a?(s=l=n,c=u=r):(e!=i&&n==i&&(s=l=n,c=r,t<a?u=r+o:t>a&&(u=r-o)),e<i&&n==i?n-=o:e>i&&n==i&&(n+=o),t!=a&&r==a&&(s=n,c=u=r,e<i?l=n+o:e>i&&(l=n-o)),t<a&&r==a?r-=o:t>a&&r==a&&(r+=o)),{x1:e,y1:t,x2:n,y2:r,x3:i,y3:a,qx1:s,qy1:c,qx2:l,qy2:u}},_linkTopToBottom:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+e.h+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y+e.rightNeighbor.h+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s+r:i??p-r,m=u,h=_.isNEU(t.parentPartner)?d+16:d;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&_._addConnectorLines(a._connectorLines,v),v},_linkBottomToTop:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+n.linkAdjuster.toY,f=u=t.x+t.w/2+n.linkAdjuster.fromX,p=t.y+t.h+n.linkAdjuster.fromY,c=o,l=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?s-r:i??p+r,m=u,h=d-14;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&_._addConnectorLines(a._connectorLines,v),v},_linkRightToLeft:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+t.w+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o-r:i??f+r,m=u-16,h=d,g=90;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&_._addConnectorLines(a._connectorLines,v),v},_linkLeftToRight:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;o=e.x+e.w+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,f=t.x+n.linkAdjuster.fromX,p=d=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=u=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x+e.rightNeighbor.w+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?f:t.templateName==`split`?o+r:i??f-r,m=u+14,h=d,g=270;var v={xa:o,ya:s,xb:c,yb:l,xc:u,yc:d,xd:f,yd:p,x:m,y:h,rotate:g};return a&&_._addConnectorLines(a._connectorLines,v),v},_linkPpTop:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.minY-(r.minY-i.maxY)/2,l=(r.minY-i.maxY)/e.maxSidePartnersWithChildren/4,u=_.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,_.ui._linkTopToBottom({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpBottom:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.maxY-(r.maxY-i.minY)/2,l=(r.maxY-i.minY)/e.maxSidePartnersWithChildren/4,u=_.ui.__linkPpBottomTop(e,t,n,c,l,o),d=u.x;return c=u.mid,_.ui._linkBottomToTop({x:d,y:s,w:0,h:0},n,a,0,c)},_linkPpLeft:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.minX-(r.minX-i.maxX)/2,c=(r.minX-i.maxX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=_.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,_.ui._linkLeftToRight({x:l,y:d,w:0,h:0},n,a,0,s)},_linkPpRight:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.maxX-(r.maxX-i.minX)/2,c=(r.maxX-i.minX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,u=_.ui.__linkPpLeftRight(e,t,n,s,c,o),d=u.y;return s=u.mid,_.ui._linkRightToLeft({x:l,y:d,w:0,h:0},n,a,0,s)},__linkPpBottomTop:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.x-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.x+e.lastLeft.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.x+a.w+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.x+e.firstRight.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{x:o,mid:r}},__linkPpLeftRight:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.y-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.y+e.lastLeft.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.y+a.h+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.y+e.firstRight.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{y:o,mid:r}},_draggableLinkPath:function(e,t,n,r,i,a){if(n.isSubLevel||t.isSubLevel||n.leftNeighbor&&n.leftNeighbor.isSplit||n.rightNeighbor&&n.rightNeighbor.isSplit||n.isPartner||n.isAssistant)return null;if(_._isMoved(n)&&!_._isMoved(t)){var o,s,c=[];switch(a){case _.orientation.top:case _.orientation.top_left:if(r.yb+i/2<r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case _.orientation.bottom:case _.orientation.bottom_left:if(r.yb-i/2>r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case _.orientation.right:case _.orientation.right_top:if(r.xb-i/2>r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case _.orientation.left:case _.orientation.left_top:if(r.xb+i/2<r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}switch(a){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:var c=[];c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return _.roundPathCorners(c,_.LINK_ROUNDED_CORNERS,!1)}else if(!_._isMoved(n)&&_._isMoved(t)){var o,s,l=!1,c=[];switch(a){case _.orientation.top:case _.orientation.top_left:if(r.ya+i/2>r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i;else if(r.yb+i/2<r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case _.orientation.bottom:case _.orientation.bottom_left:if(r.ya-i/2<r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i;else if(r.yb-i/2>r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case _.orientation.right:case _.orientation.right_top:if(r.xa-i/2<r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i;else if(r.xb-i/2>r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case _.orientation.left:case _.orientation.left_top:if(r.xa+i/2>r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i;else if(r.xb+i/2<r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}if(l)switch(a){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yc]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,r.xc,s]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break}else switch(a){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return _.roundPathCorners(c,_.LINK_ROUNDED_CORNERS,!1)}else if(_._isMoved(n)&&_._isMoved(t)){var c=[];switch(a){case _.orientation.top:case _.orientation.top_left:if(r.ya+i>r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i,u=n.y-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y+t.h+i]),c.push([`L`,r.xc,t.y+t.h+i]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.bottom:case _.orientation.bottom_left:if(r.ya-i<r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i,u=n.y+n.h+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,u]),c.push([`L`,r.xc,u]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y-i]),c.push([`L`,r.xc,t.y-i]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.right:case _.orientation.right_top:if(r.xa-i<r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i,d=n.x+n.w+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x-i,r.ya]),c.push([`L`,t.x-i,r.yc]),c.push([`L`,r.xd,r.yd]);break;case _.orientation.left:case _.orientation.left_top:if(r.xa+i>r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i,d=n.x-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,d,s]),c.push([`L`,d,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x+t.w+i,r.ya]),c.push([`L`,t.x+t.w+i,r.yc]),c.push([`L`,r.xd,r.yd]);break}return _.roundPathCorners(c,_.LINK_ROUNDED_CORNERS,!1)}return null}},_===void 0&&(_={}),_._validateConfig=function(e){if(!e)console.error(`config is not defined`);else return!0;return!1},_._arrayContains=function(e,t){if(e&&Array.isArray(e)){for(var n=e.length;n--;)if(e[n]===t)return!0}return!1},_._interceptions=function(e,t){if(!e||!t)return[];var n=[];if(Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)e[r]==t[i]&&n.push(e[r]);else if(Array.isArray(e)&&!Array.isArray(t))for(var r in e)for(var i in t)e[r]==i&&n.push(e[r]);else if(!Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)r==t[i]&&n.push(t[i]);return n},_._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(`,`):e.tags&&Array.isArray(e.tags)?e.tags:[]},_._centerPointInPercent=function(e,t,n){var r=e.getBoundingClientRect(),i=t-r.left,a=n-r.top;return[i/(r.width/100),a/(r.height/100)]},_._trim=function(e){return e.replace(/^\s+|\s+$/g,``)},_._getTransform=function(e){var t=e.getAttribute(`transform`);return t=t.replace(`matrix`,``).replace(`(`,``).replace(`)`,``),_._browser().msie&&(t=t.replace(/ /g,`,`)),t=_._trim(t),t=`[`+t+`]`,t=JSON.parse(t),t},_.getScale=function(e,t,n,r,i,a,o,s){var c=1;if(!e&&(r===_.match.boundary||r===_.match.boundaryIfOutside)){var l=t/o,u=n/s;c=l>u?u:l,r===_.match.boundaryIfOutside&&c>1&&(c=1)}else if(!e&&r===_.match.width)c=t/o;else if(!e&&r===_.match.height)c=n/s;else if(!e)c=r;else{var l=t/e[2],u=n/e[3];c=l>u?u:l}return c&&c>i&&(c=i),c&&c<a&&(c=a),c},_.isObject=function(e){return e&&typeof e==`object`&&!Array.isArray(e)&&e!==null&&e.constructor&&e.constructor.name.toLowerCase()==`object`},_.fileUploadDialog=function(e){var t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.style.display=`none`,t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},_.mergeDeep=function(e,t){if(_.isObject(e)&&_.isObject(t))for(var n in t)_.isObject(t[n])?(e[n]||Object.assign(e,{[n]:{}}),_.mergeDeep(e[n],t[n])):Object.assign(e,{[n]:t[n]});return e},_._lblIsImg=function(e,t){return!!(e.nodeBinding&&typeof t==`string`&&t.indexOf(`img`)!=-1&&e.nodeBinding[t])},_._getFistImgField=function(e){if(e.nodeBinding){for(var t in e.nodeBinding)if(t.indexOf(`img`)!=-1)return e.nodeBinding[t]}return!1},_._fieldIsImg=function(e,t){if(e.nodeBinding){for(var n in e.nodeBinding)if(e.nodeBinding[n]==t)return _._lblIsImg(e,n)}return!1},_._guid=function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+`-`+e()+`-`+e()+`-`+e()+`-`+e()+e()+e()},_.htmlRipple=function(e){var t=document.createElement(`style`);t.type=`text/css`,t.innerHTML=` .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}`,document.head.appendChild(t);var n=function(e,t){var n=void 0;return function(){var r,i=this;return r=arguments,clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}},r=function(t){var n,r=this,i=document.createElement(`span`),a=r.offsetWidth,o,s,c;return n=r.getBoundingClientRect(),s=t.pageX-n.left-a/2,c=t.pageY-n.top-a/2,o=`top:`+c+`px; left: `+s+`px; height: `+a+`px; width: `+a+`px;`,e.rippleContainer.appendChild(i),i.setAttribute(`style`,o)},i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},a=document.createElement(`div`);a.className=`boc-ripple-container`,e.addEventListener(`mousedown`,r),e.addEventListener(`mouseup`,n(i,2e3)),e.rippleContainer=a,e.appendChild(a)},_._moveToBoundaryArea=function(e,t,n,r){var i=t.slice(0);t[0]<n.left&&t[0]<n.right&&(i[0]=n.left>n.right?n.right:n.left),t[0]>n.right&&t[0]>n.left&&(i[0]=n.left>n.right?n.left:n.right),t[1]<n.top&&t[1]<n.bottom&&(i[1]=n.top>n.bottom?n.bottom:n.top),t[1]>n.bottom&&t[1]>n.top&&(i[1]=n.top>n.bottom?n.top:n.bottom),t[0]!==i[0]||t[1]!==i[1]?_.animate(e,{viewBox:t},{viewBox:i},300,_.anim.outPow,function(){r&&r()}):r&&r()},_.randomId=function(){return`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4)},_._getClientXY=function(e){if(e.type.indexOf(`touch`)!=-1){if(e.changedTouches.length)return{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}}else return{x:e.clientX,y:e.clientY}},_._getClientTouchesXY=function(e,t){return e.type.indexOf(`touch`)==-1?{x:e.clientX,y:e.clientY}:e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}},_._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,_._getOffset(e.offsetParent,t))},_._getTopLeft=function(e){var t={x:0,y:0};return _._getOffset(e,t),t},_._getOffsetXY=function(e,t){if(t.type.indexOf(`touch`)!=-1){if(t.touches.length){var n=_._getTopLeft(e);return{x:t.touches[0].pageX-n.x,y:t.touches[0].pageY-n.y}}else if(t.changedTouches.length){var n=_._getTopLeft(e);return isNaN(n.x)||isNaN(n.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-n.x,y:t.changedTouches[0].pageY-n.y}}}else return{x:t.offsetX,y:t.offsetY}},_._pinchMiddlePointInPercent=function(e,t,n,r){var i=_._getTopLeft(e),a=r.touches[0].pageX-i.x,o=r.touches[0].pageY-i.y,s=r.touches[1].pageX-i.x,c=r.touches[1].pageY-i.y;return[((a-s)/2+s)/(t/100),((o-c)/2+c)/(n/100)]},_._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(` OPR/`)>=0,t=typeof InstallTrigger<`u`,n=/constructor/i.test(window.HTMLElement)||(function(e){return e.toString()===`[object SafariRemoteNotification]`})(!window.safari||window.safari!==void 0&&safari.pushNotification),r=!!document.documentMode,i=!r&&!!window.StyleMedia,a=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime);return{opera:e,firefox:t,safari:n,msie:r,edge:i,chrome:a,blink:(a||e)&&!!window.CSS}},_._menuPosition=function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.getBoundingClientRect(),o=r.left-i.left,s=r.top-i.top;return r.top+a.height>i.top+i.height&&(s-=a.height),r.left-a.width<i.left&&(o+=a.width),{x:o,y:s}},_._getTemplate=function(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=t[e[r]];if(i&&i.template)return i.template}return n},_._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var n=0;n<e.tags.length;n++){var r=t.tags[e.tags[n]];if(r&&r.min===!0)return!0}return t.min},_._getSubLevels=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=t[e[n]];if(r&&r.subLevels)return r.subLevels}return 0},_._isHTML=function(e){var t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.body.childNodes).some(e=>e.nodeType===1)},_._getTestDiv=function(){var e=document.getElementById(`orgchart_js_test_div`);return e||(e=document.createElement(`div`),e.id=`orgchart_js_test_div`,e.style.position=`fixed`,e.style.top=`-10000px`,e.style.left=`-10000px`,document.body.appendChild(e)),e},_._getLabelSize=function(e){var t=_._getTestDiv();return t.innerHTML=`<svg>`+e+`</svg>`,t.querySelector(`text`).getBoundingClientRect()},_.wrapText=function(e,t,n,r){if(n!=null&&r!=null)return _._lineClamp(t,e,n,r);var i=t,a=i.toLowerCase();if(a.indexOf(`<text`)==-1||a.indexOf(_.attr.width)==-1||a.indexOf(`foreignobject`)!=-1||i.indexOf(_.attr.width)==-1||_.ESCAPE_HTML&&typeof str==`string`&&_._isHTML(e))return _._escapeHtml(e);if(!_.ESCAPE_HTML&&_._isHTML(e))return e;var o=_._getTestDiv();i=i.replaceAll(`{cw}`,0),o.innerHTML=`<svg>`+i+`</svg>`;var s=new DOMParser().parseFromString(i,`text/xml`).getElementsByTagName(`text`)[0],c=parseFloat(s.getAttribute(`x`)),l=parseFloat(s.getAttribute(`y`)),u=s.getAttribute(`text-anchor`),n=s.getAttribute(_.attr.width),d=s.getAttribute(_.attr.text_overflow),f=`http://www.w3.org/2000/svg`,p=o.getElementsByTagName(`svg`)[0].getElementsByTagName(`text`)[0],r,m;d||=`ellipsis`;var h=d.split(`-`);if(h.length>1&&(r=parseInt(d.split(`-`)[1]),h.length>2&&h[2]==`ellipsis`&&(m=!0)),!n)return _._escapeHtml(e);if(n=parseFloat(n),c||=0,l||=0,c||(u=`start`),d==`ellipsis`){p.removeChild(p.firstChild),p.textContent=e;for(var g=p.getComputedTextLength(),v=2;g>n;)p.textContent=e.substring(0,e.length-v),p.textContent+=`...`,g=p.getComputedTextLength(),v++;return v>2?`<title>${_._escapeHtml(e)}</title>${p.textContent}`:_._escapeHtml(e)}else if(d.indexOf(`multiline`)!=-1){var y=e.split(` `),b=p.getBBox().height;p.textContent=``;var x=document.createElementNS(f,`tspan`),S=document.createTextNode(y[0]);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l),x.setAttributeNS(null,`text-anchor`,u),x.appendChild(S),p.appendChild(x);for(var v=1,C=1,w=!1,T=1;T<y.length;T++){var E=x.firstChild.data.length;if(x.firstChild.data+=` `+y[T],x.getComputedTextLength()>n){if(x.firstChild.data=x.firstChild.data.slice(0,E),C++,r&&C>r){if(m&&p.children.length==r){var D=p.children[r-1].textContent;p.children[r-1].textContent=D.substring(0,D.length-3)+`...`,w=!0}break}var x=document.createElementNS(f,`tspan`);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l+b*v),x.setAttributeNS(null,`text-anchor`,u),S=document.createTextNode(y[T]),x.appendChild(S),p.appendChild(x),v++}}var O=``;if(p.innerHTML!=null)O=p.innerHTML,p.innerHTML=``;else{for(var k=``,T=p.childNodes.length-1;T>=0;T--)k=XMLSerializer().serializeToString(p.childNodes[T])+k,p.removeChild(p.childNodes[T]);O=k}return w?`<title>${_._escapeHtml(e)}</title>${O}`:O}},_._downloadFile=function(e,t,n,r,i){var a=new Blob([t],{type:e});if(r==1){var o=URL.createObjectURL(a);window.open(o,`_blank`).focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(a,n);else{var s=document.createElement(`a`);if(s.download!==void 0){var o=URL.createObjectURL(a);s.setAttribute(`href`,o);var c=n;c.toLowerCase().endsWith(i.toLowerCase())||(c=c+`.`+i),s.setAttribute(`download`,c),s.style.visibility=`hidden`,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}},_._getPosition=function(e,t,n,r){var i={x:t.x,y:t.y};if(n!=null&&(i.x=n),r!=null&&(i.y=n),e&&e.length==3){var a=e[0].indexOf(t.id);a!=-1&&e[1][a].transform!=null&&(n??(i.x=e[1][a].transform[4]),r??(i.y=e[1][a].transform[5]))}return i},_._getOpacity=function(e,t){var n=1;if(e&&e.length==3){var r=e[0].indexOf(t.id);r!=-1&&e[1][r].opacity!=null&&(n=e[1][r].opacity)}return n},_.t=function(e,t,n){var r=_.templates[e];r??console.error(`Template "${e}" does not exist!`);var i=null;if(n!=null&&r.scaleLessThen){var a=[];for(var o in r.scaleLessThen){var s=parseFloat(o);n<s&&a.push(s)}if(a.length>0){a.sort(function(e,t){return e-t});var c=r.scaleLessThen[a[0]];for(var l in c)i??=Object.assign({},r),i[l]=c[l]}}return t?i==null?r.min?r.min:r:i.min?i.min:i:i??r},_.setNodeSize=function(e){var t=_.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},_._imgs2base64=function(e,t,n,r){var i=e.getElementsByTagName(t),a=i.length;a==0&&r();for(var o=0;o<a;o++)(function(){var e=o,t=i[e];_._getDataUri(t.getAttribute(n),function(i){i.success&&t.setAttribute(n,i.result),e==a-1&&r()})})()},_._getDataUri=function(e,t){if(e.indexOf(`base64`)!=-1)t({success:!1});else{var n=new XMLHttpRequest;n.open(`GET`,e),n.responseType=`blob`,n.onload=function(){n.status===200?r.readAsDataURL(n.response):n.status===404&&t({success:!1,result:n.status})};var r=new FileReader;r.onloadend=function(){t({success:!0,result:r.result})},n.send()}},_._convertStringToArray=function(e,t){return _.ARRAY_FIELDS.indexOf(e)==-1?t:_.isNEU(t)?[]:t.split(`,`)},_._convertArrayToString=function(e){return!_.isNEU(e)&&Array.isArray(e)?e.join():e},_._csvToArray=function(e,t){t||=_.CSV_DELIMITER;for(var n=RegExp(`(\\`+t+`|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\`+t+`\\r\\n]*))`,`gi`),r=[[]],i=null;i=n.exec(e);){var a=i[1];a.length&&a!==t&&r.push([]);var o=i[2]?i[2].replace(RegExp(`""`,`g`),`"`):i[3];r[r.length-1].push(o)}return r},_._json2xml=function(e){for(var t=document.implementation.createDocument(``,``,null),n=t.createElement(`nodes`),r=0;r<e.length;r++){var i=t.createElement(`node`),a=e[r];for(var o in a){var s=a[o];i.setAttribute(o,_._convertArrayToString(s))}n.appendChild(i)}return t.appendChild(n),`<?xml version="1.0" encoding="utf-8" ?>`+new XMLSerializer().serializeToString(t.documentElement)},_._xml2json=function(e){for(var t=new DOMParser().parseFromString(e,`text/xml`).getElementsByTagName(`node`),n=[],r=0;r<t.length;r++){for(var i=t[r],a={},o=0;o<i.attributes.length;o++){var s=i.attributes[o];a[s.name]=_._convertStringToArray(s.name,s.value)}n.push(a)}return n},_.convertNodesToCsv=function(e){return _._json2csv(e)},_._json2csv=function(e){for(var t=[],n=function(e){for(var n=``,r=0;r<t.length;r++){var i=t[r]==`reportsTo`?null:e[t[r]]==null?``:e[t[r]];i instanceof Date&&(i=i.toLocaleString()),i=i===null?``:i.toString();var a=i.replace(/"/g,`""`),o=RegExp(`("|;|
|
|
419
|
+
)`,`g`);a.search(o)>=0&&(a=`"`+a+`"`),r>0&&(n+=_.CSV_DELIMITER),n+=a}return n+`
|
|
420
|
+
`},r=``,i=0;i<e.length;i++)for(var a in e[i])_._arrayContains(t,a)||(t.push(a),r+=a+_.CSV_DELIMITER);r=r.substring(0,r.length-1),r+=`
|
|
421
|
+
`;for(var i=0;i<e.length;i++)r+=n(e[i]);return r=r.substring(0,r.length-1),r},_.accentFold=function(e){return e=e.toString().toLowerCase(),e.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])/g,function(e,t,n,r,i,a,o,s,c,l,u){if(t)return`a`;if(n)return`c`;if(r)return`e`;if(i)return`i`;if(a)return`n`;if(o)return`o`;if(s)return`s`;if(c)return`u`;if(l)return`y`;if(u)return`ae`})},_.copy=function(e){if(typeof e!=`object`||!e||`isActiveClone`in e)return e;if(e instanceof Date)var t=new e.constructor;else var t=e.constructor();for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e.isActiveClone=null,t[n]=_.copy(e[n]),delete e.isActiveClone);return t},_._getScrollSensitivity=function(){var e=_._browser();return e.msie&&_.scroll.ie?_.scroll.ie:e.edge&&_.scroll.edge?_.scroll.edge:e.safari&&_.scroll.safari?_.scroll.safari:e.chrome&&_.scroll.chrome?_.scroll.chrome:e.firefox&&_.scroll.firefox?_.scroll.firefox:e.opera&&_.scroll.opera?_.scroll.opera:{smooth:_.scroll.smooth,speed:_.scroll.speed}},_.isMobile=function(){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),n=navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1;return t||n},_._isTouchDevice=function(){return navigator.maxTouchPoints>0},_.isTrial=function(){return _.remote!==void 0},_.childrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++)e.nodes[t.childrenIds[r]]&&n++;return n},_.childrenTotalCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&(n++,n+=_.childrenTotalCount(e,i))}return n},_.collapsedChildrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&i.collapsed===!0&&n++}return n},_.collapsedChildrenTotalCount=function(e,t,n){for(var r=0,i=0;i<t.childrenIds.length;i++){var a=e.nodes[t.childrenIds[i]];a&&((n||a.collapsed===!0)&&r++,r+=_.collapsedChildrenTotalCount(e,a,!0))}return r},_._setMinMaxXY=function(e,t,n){n&&e.isTreeListItem||((t.minX==null||e.x!=null&&e.x<t.minX)&&(t.minX=e.x),(t.minY==null||e.y!=null&&e.y<t.minY)&&(t.minY=e.y),(t.maxX==null||e.x!=null&&e.x+e.w>t.maxX)&&(t.maxX=e.x+e.w),(t.maxY==null||e.y!=null&&e.y+e.h>t.maxY)&&(t.maxY=e.y+e.h))},_.getStParentNodes=function(e,t){for(t||=[];e.parent;)e=e.parent;return e.stParent&&(t.push(e.stParent),_.getStParentNodes(e.stParent,t)),t},_.getRootOf=function(e){for(;e&&e.parent;)e=e.parent;return e},_._getViewBox=function(e){var t=null;return e?(t=e.getAttribute(`viewBox`),t=`[`+t+`]`,t=t.replace(/\ /g,`,`),t=JSON.parse(t),t):null},_.isNEU=function(e){return e==null||e===``},_.gradientCircleForDefs=function(e,t,n,r){Array.isArray(t)||(t=[t,t,t,t,t,t]);function i(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}function a(e,t,n,r,a){var o=i(e,t,n,a),s=i(e,t,n,r),c=a-r<=180?`0`:`1`;return[`M`,o.x,o.y,`A`,n,n,0,c,0,s.x,s.y].join(` `)}return`<linearGradient id="${e}_linearColors1" x1="0" y1="0" x2="1" y2="1">
|
|
422
422
|
<stop offset="0%" stop-color="${t[0]}"></stop>
|
|
423
423
|
<stop offset="100%" stop-color="${t[1]}"></stop>
|
|
424
424
|
</linearGradient>
|
|
@@ -449,15 +449,15 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
449
449
|
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors4)" d="${a(n,n,n,180,240)}" />
|
|
450
450
|
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors5)" d="${a(n,n,n,240,300)}" />
|
|
451
451
|
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors6)" d="${a(n,n,n,300,1)}"/>
|
|
452
|
-
</g>`},
|
|
452
|
+
</g>`},_._intersectionObserver=function(e,t){typeof IntersectionObserver==`function`?new IntersectionObserver(function(e,n){e.forEach(function(e){var n=e.intersectionRatio>0;e.intersectionRatio==0&&(n=e.isIntersecting),t(n)})}).observe(e):t(!0)},_.convertCsvToNodes=function(e){for(var t=_._csvToArray(e),n=t[0],r=[],i=1;i<t.length;i++){for(var a={},o=0;o<t[i].length;o++){var s=n[o],c=t[i][o];a[n[o]]=_._convertStringToArray(s,c)}a.id.trim()!=``&&r.push(a)}return r},_._escapeHtml=function(e){return _.ESCAPE_HTML&&typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):e},_._escapeDoubleQuotes=function(e){return typeof e==`string`?e.replace(/"/g,`"`):e},_._escapeGreaterLessSign=function(e){return typeof e==`string`?e.replace(/</g,`<`).replace(/>/g,`>`):e},_.roundPathCorners=function(e,t,n){function r(e,t,n){var r=t.x-e.x,a=t.y-e.y,o=Math.sqrt(r*r+a*a);return i(e,t,Math.min(1,n/o))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function a(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function o(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}Array.isArray(e)||(e=e.split(/[,\s]/).reduce(function(e,t){var n=t.match(`([a-zA-Z])(.+)`);return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]),e=e.reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]));var s=[];if(e.length>1){var c=o(e[0]),l=null;e[e.length-1][0]==`Z`&&e[0].length>2&&(l=[`L`,c.x,c.y],e[e.length-1]=l),s.push(e[0]);for(var u=1;u<e.length;u++){var d=s[s.length-1],f=e[u],p=f==l?e[1]:e[u+1];if(p&&d&&d.length>2&&f[0]==`L`&&p.length>2&&p[0]==`L`){var m=o(d),h=o(f),g=o(p),_,v;n?(_=i(h,d.origPoint||m,t),v=i(h,p.origPoint||g,t)):(_=r(h,m,t),v=r(h,g,t)),a(f,_),f.origPoint=h,s.push(f);var y=i(_,h,.5),b=i(h,v,.5),x=[`C`,y.x,y.y,b.x,b.y,v.x,v.y];x.origPoint=h,s.push(x)}else s.push(f)}if(l){var S=o(s[s.length-1]);s.push([`Z`]),a(s[0],S)}}else s=e;return s.reduce(function(e,t){return e+t.join(` `)+` `},``)},_._isMoved=function(e){return e.movex!=null||e.movey!=null},_._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&(e/t,!(e/t-t<=0));t++);return t%2!=0&&t>2&&t--,t},_._getLazyLoading=function(e){var t=e.lazyLoading;return t==`auto`&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},_._getSvgAttributes=function(e){let t=/width="([\d.]+)"/,n=/height="([\d.]+)"/,r=/x="([\d.]+)"/,i=/y="([\d.]+)"/,a=/viewBox="([^"]+)"/,o=e.match(t),s=e.match(n),c=e.match(r),l=e.match(i),u=e.match(a),d=o?parseFloat(o[1]):0,f=s?parseFloat(s[1]):0,p=c?parseFloat(c[1]):0,m=l?parseFloat(l[1]):0,h=[0,0,0,0];return u&&(h=u[1],h=JSON.parse(`[${h}]`)),{width:d,height:f,viewBox:h,x:p,y:m}},_._setSvgAttributes=function(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.viewBox.join(`,`);let s=e.match(/<svg\s+([^>]*?)>/);if(!s)return e;let c=s[0],l=s[1],u=(e,t,n)=>{if(n==null)return e;let r=RegExp(`\\s*${t}="[^"]*"`,`i`),i=` ${t}="${n}"`;return e.match(r)?e.replace(r,i):e+i};l=u(l,`x`,n),l=u(l,`y`,r),l=u(l,`width`,i),l=u(l,`height`,a),l=u(l,`viewBox`,o);let d=`<svg ${l}>`;return e.replace(c,d)},_._convertTextToNodes=function(e,t){let n=e.split(/\r?\n/).filter(e=>e.trim()!==``),r=[],i=1,a=[];for(let e of n){let n=0;for(;e.startsWith(t);)e=e.slice(t.length),n++;if(e=e.trim(),!e)continue;let o=e.match(/^\[([^\]]+)](.*)$/);if(o){let e=o[1].trim(),t=o[2].trim();a.length>0&&(a[a.length-1][e]=t);continue}let s=e.match(/^([^\(]+)\(([^)]+)\)$/),c,l=[];s?(c=s[1].trim(),l=s[2].split(`,`).map(e=>e.trim())):c=e;let u=n===0?null:a[n-1].id,d={id:i++,pid:u,name:c,tags:l};a[n]=d,a.length=n+1,r.push(d)}return r},_._convertFromNodesToText=function(e,t){let n={},r=[];e.forEach(e=>{n[e.id]={...e,children:[]}}),e.forEach(e=>{e.pid&&n[e.pid]?n[e.pid].children.push(n[e.id]):r.push(n[e.id])});function i(e,n){let r=t.repeat(n),a=r+e.name;Array.isArray(e.tags)&&e.tags.length>0&&(a+=`(`+e.tags.join(`,`)+`)`),a+=`
|
|
453
453
|
`;for(let t of Object.keys(e))[`id`,`pid`,`name`,`children`,`tags`].includes(t)||(a+=r+`[`+t+`]`+e[t]+`
|
|
454
|
-
`);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},h._onClickHandler=function(e,t,n,r,i){var a;if(n===void 0)if(t===`add`){var o={id:e.generateId(),pid:r};e.addNode(o,null,!0)}else if(t===`edit`){var s=e.getNode(r);e.editUI.show(s.id)}else if(t===`details`){var s=e.getNode(r);e.editUI.show(s.id,!0)}else if(t===`remove`)e.removeNode(r,null,!0);else if(t===`svg_export`||t===`svg`){var c={};h.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};h.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};h.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPNG(c)}else if(t===`visio_export`||t===`visio`)e.exportToVisio({nodeId:r});else if(t===`pp_export`||t===`powerpoint`)e.exportToPowerPoint();else if(t===`pp_preview`||t===`pppreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.powerPointPreviewUI.show(c)}else if(t===`pdf_preview`||t===`pdfpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pdfPreviewUI.show(c)}else if(t===`svg_preview`||t===`svgpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.svgPreviewUI.show(c)}else if(t===`png_preview`||t===`pngpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pngPreviewUI.show(c)}else t===`csv_export`||t===`csv`?e.exportToCSV({nodeId:r}):t===`xml_export`||t===`xml`?e.exportToXML({nodeId:r}):t===`json_export`||t===`json`?e.exportToJSON({nodeId:r}):t===`fit`?e.fit():t===`expand_all`?e.expand(null,`all`):t===`full_screen`?e.toggleFullScreen():t===`zoom_in`?e.zoom(!0,null,!0):t===`zoom_out`||t===`zoom_out`?e.zoom(!1,null,!0):t===`layout_mixed`?e.setLayout(h.layout.mixed):t===`layout_normal`?e.setLayout(h.layout.normal):t===`layout_right_offset`?e.setLayout(h.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(h.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(h.layout.tree):t===`layout_grid`&&e.setLayout(h.layout.grid);else a=n.call(e,r,i);return a},h._isSVG=function(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t.startsWith(`<svg`)||!t.endsWith(`</svg>`))return!1;try{let e=new DOMParser().parseFromString(t,`image/svg+xml`);return e.querySelector(`parsererror`)?!1:e.documentElement.nodeName.toLowerCase()===`svg`}catch{return!1}},h._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],h._treeListAdjustToSTNodePostition(n.children,t)},h._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],h._treeListIterate(e.stChildren,r,-1);var i=r.lastNode.y+r.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);n>0||i<0?n=0:n!=0&&n*-1>i&&(n=-i);for(var a=r.nodesByLevels.length-1;a>=0;a--)for(var o=r.nodesByLevels[a],s=o.length-1;s>=0;s--){for(var c=o[s],l=c.y,u=0,d=c.parent;d&&(u+=d.h,d.parent);)d=d.parent;if(c.children.length&&c.y+n<=u){l=-n+u;var f=o[s+1];if(f&&f.y<l+c.h&&(l=f.y-c.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var m=e.stChildren[p+1];m.y<l+c.h&&(l=m.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==h.orientation.bottom){var g=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=g-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},h._treeListIterate=function(e,t,n){n++;for(var r of e)r.y=t.y,t.y+=r.h,t.nodesByLevels[n]||(t.nodesByLevels[n]=[]),t.nodesByLevels[n].push(r),t.lastNode=r,h._treeListIterate(r.children,t,n)},h._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],n=t/((e.treeList.scrollTopMax+t)/100),r=t/100*n,i=t-r,a=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),o=e.y+e.padding[0]+i/-100*a,s=`initial`;return(isNaN(r)||isNaN(o)||r<0||n>100)&&(s=`none`,r=0,o=0),{thumbHeight:r,thumbPosition:o,scrollBarDisplay:s}},h._treeListGetScrollTopFromTumbPosition=function(e,t,n){var r=e.h-e.padding[0]-e.padding[2]-t,i=(n-(e.y+e.padding[0]))/r*100/100*e.treeList.scrollTopMax;return(isNaN(i)||i<0)&&(i=0),i>e.treeList.scrollTopMax&&(i=e.treeList.scrollTopMax),i},h._getCenterNodeFromParams=function(e,t){var n=e[t.id];if(n){if(n.isTreeListItem){for(;!n.stParent;)n=n.parent;n=n.stParent}return n}return null},h._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};h._treeListIterate(e.stChildren,n,-1);var r=null;for(var i of n.nodesByLevels){for(var a of i)if(a.id==t){r=a;break}if(r)break}if(!r)return e.treeList.scrollTop;for(var o=0,s=r.parent;s&&(o+=s.h,s.parent);)s=s.parent;var c=e.padding[0],l=e.padding[2],u=e.treeList.maxHeight-c-l,d=n.lastNode.y+n.lastNode.h-u;d<0&&(d=0);var f=e.treeList.scrollTop,p=r.y-o,m=r.y+r.h-u,g=f;return r.y<f+o?g=p:r.y+r.h>f+u&&(g=r.h>u-o?p:m),g<0?g=0:g>d&&(g=d),g},h._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case h.orientation.top:case h.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case h.orientation.bottom:case h.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case h.orientation.right:case h.orientation.right_top:n.x=0,n.y=t.h/2;break;case h.orientation.left:case h.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},h._measureCache={svg:null,text:null},h._getMeasureElement=function(){if(h._measureCache.svg)return h._measureCache.text;let e=`http://www.w3.org/2000/svg`;return h._measureCache.svg=document.createElementNS(e,`svg`),h._measureCache.svg.id=`orgchart_js_test__measure`,h._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,h._measureCache.text=document.createElementNS(e,`text`),h._measureCache.svg.appendChild(h._measureCache.text),document.body.appendChild(h._measureCache.svg),h._measureCache.text},h._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=h._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=h._getMeasureElement();s.textContent=``;for(let[e,t]of Object.entries(a))e!==`x`&&e!==`y`&&s.setAttribute(e,t);let c=e=>(s.textContent=e,s.getComputedTextLength()),l=t.split(` `),u=[],d=``,f=0;for(;f<l.length&&u.length<r;){let e=l[f],t=d?d+` `+e:e;if(c(t)<=n)d=t,f++;else if(d===``){let t=0,r=e.length,i=1;for(;t<=r;){let a=t+r>>1;c(e.slice(0,a))<=n?(i=a,t=a+1):r=a-1}u.push(e.slice(0,i)),l[f]=e.slice(i)}else u.push(d),d=``}d&&u.length<r&&u.push(d);let p=f<l.length||f===l.length&&l[f-1]===``&&t.endsWith(` `);if(p&&u.length>0){let e=u[u.length-1],t=0,r=e.length,i=``;for(;t<=r;){let a=Math.floor((t+r)/2),o=e.substring(0,a)+`...`;c(o)<=n?(i=o,t=a+1):r=a-1}u[u.length-1]=i}let m=` x="${a.x||`0`}"`,g=u.length===1?u[0]:u.map((e,t)=>`<tspan${m} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${p?`<title>${t}</title>`:``}${g}</text>`},h._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!h._isTouchDevice())return null;var t=h.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=h._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},h._convertImagesToBase64=async function(e){let t=new DOMParser;return await Promise.all(e.map(async e=>{let n=t.parseFromString(e,`image/svg+xml`),r=n.querySelectorAll(`image`);for(let e of r){let t=e.getAttribute(`href`)||e.getAttribute(`xlink:href`);if(t&&!t.startsWith(`data:`))try{let n=parseFloat(e.getAttribute(`width`))||0,r=parseFloat(e.getAttribute(`height`))||0;if(n>0&&r>0){let i=await h._resizeAndConvert(t,n,r);e.setAttribute(`href`,i),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}}catch(e){console.error(`Failed to process image:`,t,e)}}return new XMLSerializer().serializeToString(n)}))},h._resizeAndConvert=function(e,t,n){return new Promise((r,i)=>{let a=new Image;a.crossOrigin=`anonymous`,a.onload=()=>{let e=document.createElement(`canvas`),i=e.getContext(`2d`),o=Math.min(t/a.width,n/a.height),s=a.width*o,c=a.height*o;e.width=s,e.height=c,i.drawImage(a,0,0,s,c),r(e.toDataURL(`image/png`))},a.onerror=i,a.src=e})},h.prototype.zoom=function(e,t,n,r){var i=this.getViewBox().slice(0),a=i,o=i[2],s=i[3];e===!0?(i[2]/=h.SCALE_FACTOR,i[3]/=h.SCALE_FACTOR):e===!1?(i[2]*=h.SCALE_FACTOR,i[3]*=h.SCALE_FACTOR):(i[2]/=e,i[3]/=e),t||=[50,50],i[0]=a[0]-(i[2]-o)/(100/t[0]),i[1]=a[1]-(i[3]-s)/(100/t[1]);var c=this.getScale(i);if(i[2]=this.width()/c,i[3]=this.height()/c,e===!0&&c<this.config.scaleMax||e===!1&&c>this.config.scaleMin||e!=0&&e!=1&&c<this.config.scaleMax&&c>this.config.scaleMin){this._hideBeforeAnimation();var l=this;n?(clearTimeout(l._timeout),h.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:i},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,h.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,h.action.zoom,null,r)},500))}},h._ai=function(e){this.instance=e,this.sessionId=null},h._ai.prototype.prompt=function(e,t){var n=this;e=e.trim(),e&&(this.sessionId?n._prompt([{Role:`user`,Text:e}],t):this.setContext(function(){n._prompt([{Role:`user`,Text:e}],t)}))},h._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of h.AI_SYSTEM_MESSAGES)r.push({Role:`system`,Text:i});var a=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(r))}&sessionId=${this.sessionId}`;let o=new EventSource(a);o.onmessage=function(e){var r=JSON.parse(e.data),i=``;r.kind==`end`&&o.close(),r.kind==`text`&&(i+=r.text,t&&t(r.text)),r.kind==`assistant-message-with-tools`?n.toolCalls(r.message,t):r.kind==`error`&&console.error(r.text)},o.onerror=function(e){console.error(e),o.close()}},h._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+`/OrgChartJSAI/SetContext`,n=this.instance.config.aiChatTools.slice();for(var r of n)r.functionParameters??=null,r.functionParameters=JSON.stringify(r.functionParameters);fetch(t,{method:`post`,headers:{"Content-Type":`application/json`,"x-request-type":`ajax`},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:n})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},h._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};h.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,u=null,d=null,f=null,p=null;for(var m of r.toolCalls)m.FunctionResult??(m.FunctionName==`removeNode`?i.push(m):m.FunctionName==`addNode`?a.push(m):m.FunctionName==`updateNode`?o.push(m):m.FunctionName==`select`?s.push(m):m.FunctionName==`deselect`?c.push(m):m.FunctionName==`exportToPDF`?l=m:m.FunctionName==`changeTemplate`?u=m:m.FunctionName==`addSlink`?d=m:m.FunctionName==`removeSlink`?f=m:m.FunctionName==`fit`&&(p=m));var g=!1;if(u&&(g=!0,m.FunctionResult=`ok`,this.instance.config.template=m.FunctionArguments.templateName),d){var _=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!_||!v||_==v?m.FunctionResult=`Cannot add link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(g=!0,this.instance.addSlink(_.id,v.id),m.FunctionResult=`ok`)}if(f){var _=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!_||!v||_==v?m.FunctionResult=`Cannot remove link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(g=!0,this.instance.removeSlink(_.id,v.id),m.FunctionResult=`ok`)}p&&(this.instance.fit(),g=!1);for(var m of i)g=!0,m.FunctionResult=`ok`,this.instance.remove(m.FunctionArguments.id);for(var m of a){g=!0,m.FunctionResult=`ok`;var y=JSON.parse(JSON.stringify(m.FunctionArguments));y.isAssistant&&(y.tags=[`assistant`]),delete y.isAssistant,h.isNEU(y.id)&&(y.id=this.instance.generateId()),this.instance.add(y)}for(var m of o){g=!0,m.FunctionResult=`ok`;var y=this.instance.get(m.FunctionArguments.id);for(var b in m.FunctionArguments)b!=`id`&&m.FunctionArguments[b]!=null&&(y[b]=m.FunctionArguments[b]);this.instance.update(y)}for(var m of s){m.FunctionResult=`ok`;for(var x of m.FunctionArguments.ids){var S=m.FunctionArguments.color;S||=`#FFCA28`;var C=this.instance.getNodeElement(x).firstChild;C&&(C.style.stroke=m.FunctionArguments.color,C.style.strokeWidth=5)}}var w=function(){for(var e of c)if(e.FunctionResult=`ok`,e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var r=n.instance.getNodeElement(t).firstChild;r&&(r.style.stroke=`#aeaeae`,r.style.strokeWidth=1)}else g=!0};g?(this.setContext(),this.instance.draw(h.action.update,void 0,w)):w();var T=function(){var e=[];for(var i of r.toolCalls)e.push({Role:`tool`,Text:i.FunctionResult,Id:i.Id});n._prompt(e,t)};l?this.chartInstance.exportToPDF({},function(){m.FunctionResult=`ok`,h._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},h.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}})},h.aiUI.title=`AI for OrgChart JS`,h.aiUI.prototype.init=function(e){this.instance=e;var t=this,n=this.instance.element.querySelector(`[data-boc-ai-button]`);n&&n.addEventListener(`click`,function(e){t.show()})},h.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},h.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display=``,this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var n=this;t||(this.timeout&&clearInterval(this.interval),this.interval=h.animate(this.element,{opacity:0},{opacity:1},300,h.anim.outSin,function(){e||n.inputElement.focus()}))},h.aiUI.prototype._create=function(){if(!this.element){var e=this,t=`inp_`+this.instance.generateId();this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-ai-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-ai-form`),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">
|
|
455
|
-
<div data-boc-ai-close class="boc-ai-close">${
|
|
454
|
+
`);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},_._onClickHandler=function(e,t,n,r,i){var a;if(n===void 0)if(t===`add`){var o={id:e.generateId(),pid:r};e.addNode(o,null,!0)}else if(t===`edit`){var s=e.getNode(r);e.editUI.show(s.id)}else if(t===`details`){var s=e.getNode(r);e.editUI.show(s.id,!0)}else if(t===`remove`)e.removeNode(r,null,!0);else if(t===`svg_export`||t===`svg`){var c={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPNG(c)}else if(t===`visio_export`||t===`visio`)e.exportToVisio({nodeId:r});else if(t===`pp_export`||t===`powerpoint`)e.exportToPowerPoint();else if(t===`pp_preview`||t===`pppreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.powerPointPreviewUI.show(c)}else if(t===`pdf_preview`||t===`pdfpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pdfPreviewUI.show(c)}else if(t===`svg_preview`||t===`svgpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.svgPreviewUI.show(c)}else if(t===`png_preview`||t===`pngpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pngPreviewUI.show(c)}else t===`csv_export`||t===`csv`?e.exportToCSV({nodeId:r}):t===`xml_export`||t===`xml`?e.exportToXML({nodeId:r}):t===`json_export`||t===`json`?e.exportToJSON({nodeId:r}):t===`fit`?e.fit():t===`expand_all`?e.expand(null,`all`):t===`full_screen`?e.toggleFullScreen():t===`zoom_in`?e.zoom(!0,null,!0):t===`zoom_out`||t===`zoom_out`?e.zoom(!1,null,!0):t===`layout_mixed`?e.setLayout(_.layout.mixed):t===`layout_normal`?e.setLayout(_.layout.normal):t===`layout_right_offset`?e.setLayout(_.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(_.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(_.layout.tree):t===`layout_grid`&&e.setLayout(_.layout.grid);else a=n.call(e,r,i);return a},_._isSVG=function(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t.startsWith(`<svg`)||!t.endsWith(`</svg>`))return!1;try{let e=new DOMParser().parseFromString(t,`image/svg+xml`);return e.querySelector(`parsererror`)?!1:e.documentElement.nodeName.toLowerCase()===`svg`}catch{return!1}},_._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],_._treeListAdjustToSTNodePostition(n.children,t)},_._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],_._treeListIterate(e.stChildren,r,-1);var i=r.lastNode.y+r.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);n>0||i<0?n=0:n!=0&&n*-1>i&&(n=-i);for(var a=r.nodesByLevels.length-1;a>=0;a--)for(var o=r.nodesByLevels[a],s=o.length-1;s>=0;s--){for(var c=o[s],l=c.y,u=0,d=c.parent;d&&(u+=d.h,d.parent);)d=d.parent;if(c.children.length&&c.y+n<=u){l=-n+u;var f=o[s+1];if(f&&f.y<l+c.h&&(l=f.y-c.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var m=e.stChildren[p+1];m.y<l+c.h&&(l=m.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==_.orientation.bottom){var h=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=h-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},_._treeListIterate=function(e,t,n){n++;for(var r of e)r.y=t.y,t.y+=r.h,t.nodesByLevels[n]||(t.nodesByLevels[n]=[]),t.nodesByLevels[n].push(r),t.lastNode=r,_._treeListIterate(r.children,t,n)},_._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],n=t/((e.treeList.scrollTopMax+t)/100),r=t/100*n,i=t-r,a=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),o=e.y+e.padding[0]+i/-100*a,s=`initial`;return(isNaN(r)||isNaN(o)||r<0||n>100)&&(s=`none`,r=0,o=0),{thumbHeight:r,thumbPosition:o,scrollBarDisplay:s}},_._treeListGetScrollTopFromTumbPosition=function(e,t,n){var r=e.h-e.padding[0]-e.padding[2]-t,i=(n-(e.y+e.padding[0]))/r*100/100*e.treeList.scrollTopMax;return(isNaN(i)||i<0)&&(i=0),i>e.treeList.scrollTopMax&&(i=e.treeList.scrollTopMax),i},_._getCenterNodeFromParams=function(e,t){var n=e[t.id];if(n){if(n.isTreeListItem){for(;!n.stParent;)n=n.parent;n=n.stParent}return n}return null},_._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};_._treeListIterate(e.stChildren,n,-1);var r=null;for(var i of n.nodesByLevels){for(var a of i)if(a.id==t){r=a;break}if(r)break}if(!r)return e.treeList.scrollTop;for(var o=0,s=r.parent;s&&(o+=s.h,s.parent);)s=s.parent;var c=e.padding[0],l=e.padding[2],u=e.treeList.maxHeight-c-l,d=n.lastNode.y+n.lastNode.h-u;d<0&&(d=0);var f=e.treeList.scrollTop,p=r.y-o,m=r.y+r.h-u,h=f;return r.y<f+o?h=p:r.y+r.h>f+u&&(h=r.h>u-o?p:m),h<0?h=0:h>d&&(h=d),h},_._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case _.orientation.top:case _.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case _.orientation.bottom:case _.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case _.orientation.right:case _.orientation.right_top:n.x=0,n.y=t.h/2;break;case _.orientation.left:case _.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},_._measureCache={svg:null,text:null},_._getMeasureElement=function(){if(_._measureCache.svg)return _._measureCache.text;let e=`http://www.w3.org/2000/svg`;return _._measureCache.svg=document.createElementNS(e,`svg`),_._measureCache.svg.id=`orgchart_js_test__measure`,_._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,_._measureCache.text=document.createElementNS(e,`text`),_._measureCache.svg.appendChild(_._measureCache.text),document.body.appendChild(_._measureCache.svg),_._measureCache.text},_._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=_._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=_._getMeasureElement();s.textContent=``;for(let[e,t]of Object.entries(a))e!==`x`&&e!==`y`&&s.setAttribute(e,t);let c=e=>(s.textContent=e,s.getComputedTextLength()),l=t.split(` `),u=[],d=``,f=0;for(;f<l.length&&u.length<r;){let e=l[f],t=d?d+` `+e:e;if(c(t)<=n)d=t,f++;else if(d===``){let t=0,r=e.length,i=1;for(;t<=r;){let a=t+r>>1;c(e.slice(0,a))<=n?(i=a,t=a+1):r=a-1}u.push(e.slice(0,i)),l[f]=e.slice(i)}else u.push(d),d=``}d&&u.length<r&&u.push(d);let p=f<l.length||f===l.length&&l[f-1]===``&&t.endsWith(` `);if(p&&u.length>0){let e=u[u.length-1],t=0,r=e.length,i=``;for(;t<=r;){let a=Math.floor((t+r)/2),o=e.substring(0,a)+`...`;c(o)<=n?(i=o,t=a+1):r=a-1}u[u.length-1]=i}let m=` x="${a.x||`0`}"`,h=u.length===1?u[0]:u.map((e,t)=>`<tspan${m} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${p?`<title>${t}</title>`:``}${h}</text>`},_._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!_._isTouchDevice())return null;var t=_.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=_._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},_._convertImagesToBase64=async function(e){let t=new DOMParser;return await Promise.all(e.map(async e=>{let n=t.parseFromString(e,`image/svg+xml`),r=n.querySelectorAll(`image`);for(let e of r){let t=e.getAttribute(`href`)||e.getAttribute(`xlink:href`);if(t&&!t.startsWith(`data:`))try{let n=parseFloat(e.getAttribute(`width`))||0,r=parseFloat(e.getAttribute(`height`))||0;if(n>0&&r>0){let i=await _._resizeAndConvert(t,n,r);e.setAttribute(`href`,i),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}}catch(e){console.error(`Failed to process image:`,t,e)}}return new XMLSerializer().serializeToString(n)}))},_._resizeAndConvert=function(e,t,n){return new Promise((r,i)=>{let a=new Image;a.crossOrigin=`anonymous`,a.onload=()=>{let e=document.createElement(`canvas`),i=e.getContext(`2d`),o=Math.min(t/a.width,n/a.height),s=a.width*o,c=a.height*o;e.width=s,e.height=c,i.drawImage(a,0,0,s,c),r(e.toDataURL(`image/png`))},a.onerror=i,a.src=e})},_.prototype.zoom=function(e,t,n,r){var i=this.getViewBox().slice(0),a=i,o=i[2],s=i[3];e===!0?(i[2]/=_.SCALE_FACTOR,i[3]/=_.SCALE_FACTOR):e===!1?(i[2]*=_.SCALE_FACTOR,i[3]*=_.SCALE_FACTOR):(i[2]/=e,i[3]/=e),t||=[50,50],i[0]=a[0]-(i[2]-o)/(100/t[0]),i[1]=a[1]-(i[3]-s)/(100/t[1]);var c=this.getScale(i);if(i[2]=this.width()/c,i[3]=this.height()/c,e===!0&&c<this.config.scaleMax||e===!1&&c>this.config.scaleMin||e!=0&&e!=1&&c<this.config.scaleMax&&c>this.config.scaleMin){this._hideBeforeAnimation();var l=this;n?(clearTimeout(l._timeout),_.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:i},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,_.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,_.action.zoom,null,r)},500))}},_._ai=function(e){this.instance=e,this.sessionId=null},_._ai.prototype.prompt=function(e,t){var n=this;e=e.trim(),e&&(this.sessionId?n._prompt([{Role:`user`,Text:e}],t):this.setContext(function(){n._prompt([{Role:`user`,Text:e}],t)}))},_._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of _.AI_SYSTEM_MESSAGES)r.push({Role:`system`,Text:i});var a=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(r))}&sessionId=${this.sessionId}`;let o=new EventSource(a);o.onmessage=function(e){var r=JSON.parse(e.data),i=``;r.kind==`end`&&o.close(),r.kind==`text`&&(i+=r.text,t&&t(r.text)),r.kind==`assistant-message-with-tools`?n.toolCalls(r.message,t):r.kind==`error`&&console.error(r.text)},o.onerror=function(e){console.error(e),o.close()}},_._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+`/OrgChartJSAI/SetContext`,n=this.instance.config.aiChatTools.slice();for(var r of n)r.functionParameters??=null,r.functionParameters=JSON.stringify(r.functionParameters);fetch(t,{method:`post`,headers:{"Content-Type":`application/json`,"x-request-type":`ajax`},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:n})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},_._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};_.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,u=null,d=null,f=null,p=null;for(var m of r.toolCalls)m.FunctionResult??(m.FunctionName==`removeNode`?i.push(m):m.FunctionName==`addNode`?a.push(m):m.FunctionName==`updateNode`?o.push(m):m.FunctionName==`select`?s.push(m):m.FunctionName==`deselect`?c.push(m):m.FunctionName==`exportToPDF`?l=m:m.FunctionName==`changeTemplate`?u=m:m.FunctionName==`addSlink`?d=m:m.FunctionName==`removeSlink`?f=m:m.FunctionName==`fit`&&(p=m));var h=!1;if(u&&(h=!0,m.FunctionResult=`ok`,this.instance.config.template=m.FunctionArguments.templateName),d){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot add link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.addSlink(g.id,v.id),m.FunctionResult=`ok`)}if(f){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot remove link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.removeSlink(g.id,v.id),m.FunctionResult=`ok`)}p&&(this.instance.fit(),h=!1);for(var m of i)h=!0,m.FunctionResult=`ok`,this.instance.remove(m.FunctionArguments.id);for(var m of a){h=!0,m.FunctionResult=`ok`;var y=JSON.parse(JSON.stringify(m.FunctionArguments));y.isAssistant&&(y.tags=[`assistant`]),delete y.isAssistant,_.isNEU(y.id)&&(y.id=this.instance.generateId()),this.instance.add(y)}for(var m of o){h=!0,m.FunctionResult=`ok`;var y=this.instance.get(m.FunctionArguments.id);for(var b in m.FunctionArguments)b!=`id`&&m.FunctionArguments[b]!=null&&(y[b]=m.FunctionArguments[b]);this.instance.update(y)}for(var m of s){m.FunctionResult=`ok`;for(var x of m.FunctionArguments.ids){var S=m.FunctionArguments.color;S||=`#FFCA28`;var C=this.instance.getNodeElement(x).firstChild;C&&(C.style.stroke=m.FunctionArguments.color,C.style.strokeWidth=5)}}var w=function(){for(var e of c)if(e.FunctionResult=`ok`,e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var r=n.instance.getNodeElement(t).firstChild;r&&(r.style.stroke=`#aeaeae`,r.style.strokeWidth=1)}else h=!0};h?(this.setContext(),this.instance.draw(_.action.update,void 0,w)):w();var T=function(){var e=[];for(var i of r.toolCalls)e.push({Role:`tool`,Text:i.FunctionResult,Id:i.Id});n._prompt(e,t)};l?this.chartInstance.exportToPDF({},function(){m.FunctionResult=`ok`,_._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},_.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}})},_.aiUI.title=`AI for OrgChart JS`,_.aiUI.prototype.init=function(e){this.instance=e;var t=this,n=this.instance.element.querySelector(`[data-boc-ai-button]`);n&&n.addEventListener(`click`,function(e){t.show()})},_.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},_.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display=``,this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var n=this;t||(this.timeout&&clearInterval(this.interval),this.interval=_.animate(this.element,{opacity:0},{opacity:1},300,_.anim.outSin,function(){e||n.inputElement.focus()}))},_.aiUI.prototype._create=function(){if(!this.element){var e=this,t=`inp_`+this.instance.generateId();this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-ai-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-ai-form`),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">
|
|
455
|
+
<div data-boc-ai-close class="boc-ai-close">${_.icon.x(20,20,`#aeaeae`)}</div>
|
|
456
456
|
<div class="boc-ai-middle boc-ai-start">
|
|
457
457
|
<div data-boc-ai-messages class="boc-ai-messages">
|
|
458
458
|
<img src="https://orgchartjs.balkan.app/logo.svg">
|
|
459
459
|
<span>
|
|
460
|
-
${
|
|
460
|
+
${_.aiUI.title}
|
|
461
461
|
</span>
|
|
462
462
|
</div>
|
|
463
463
|
</div>
|
|
@@ -466,10 +466,10 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
466
466
|
<label for="${t}">Message OrgChart</label>
|
|
467
467
|
<input maxlength="256" id="${t}" name="${t}" type="text" value="" autocomplete="off">
|
|
468
468
|
<div data-boc-ai-send class="boc-ai-send">
|
|
469
|
-
${
|
|
469
|
+
${_.icon.send(20,20,`#aeaeae`)}
|
|
470
470
|
</div>
|
|
471
471
|
</div>
|
|
472
472
|
|
|
473
473
|
</div>
|
|
474
|
-
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,h.input.init(this.element);var n=this.instance.leftElement.querySelector(`[data-boc-ai-close] svg`);n&&n.addEventListener(`click`,function(t){e.hide()}),this.inputElement=this.element.querySelector(`#`+t),this.btnSendElement=this.inputElement.parentNode.querySelector(`[data-boc-ai-send]`),this.messagesElement=this.element.querySelector(`[data-boc-ai-messages]`),this.inputElement.addEventListener(`input`,function(e){this.value?this.parentNode.querySelector(`.boc-ai-send`).classList.add(`boc-ai-send-cansend`):this.parentNode.querySelector(`.boc-ai-send`).classList.remove(`boc-ai-send-cansend`)}),this.element.querySelector(`[data-boc-ai-send]`).addEventListener(`click`,function(t){e.sendUserInput()}),this.inputElement.addEventListener(`keyup`,function(t){var n=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),n.key){case`Enter`:e.sendUserInput();break;case`ArrowUp`:var r=h.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=r.length-1:i--,i==-1&&(i=r.length-1),e.inputElement.value=r[i]}break;case`ArrowDown`:var r=h.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=0:i++,i==r.length&&(i=0),e.inputElement.value=r[i]}break;default:}})}},h.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove(`boc-ai-send-cansend`);var t=this.element.querySelector(`.boc-ai-start`);t&&(t.classList.remove(`boc-ai-start`),this.messagesElement.innerHTML=``);var n=document.createElement(`div`);n.classList.add(`boc-ai-user-message`),n.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(n)},h.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},h.aiUI.prototype.sendUserInput=function(){var e=this;h.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement(`div`);t.classList.add(`boc-ai-assistant-message`);var n=document.createElement(`span`);n.classList.add(`boc-inner-assistant-message`),t.appendChild(n),this.messagesElement.appendChild(t);var r=``;this.instance._ai.prompt(this.inputElement.value,function(t){r+=t,n.innerHTML=marked.parse(r);var i=e.element.querySelector(`.boc-ai-middle`);i.scrollTo(0,i.scrollHeight)}),this.inputElement.value=``},h.aiUI._addSuggestion=function(e){e=e.trim();var t=h.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},h.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},h===void 0&&(h={}),h.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),h.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;h.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),h.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(h.attr.node_id)){r=n.getAttribute(h.attr.node_id);break}n=n.parentNode}if(n){var i=r?this.getNode(r):null,a={node:i,data:r?this.get(r):null,event:t};if(h.events.publish(`key-down`,[this,a])!==!1&&i){if(t.code==`KeyF`)this.searchUI.find(``);else if(t.code==`ArrowRight`||i.isAssistant&&t.code==`ArrowDown`||i.isPartner&&t.code==`ArrowDown`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s++,s<o.childrenIds.length){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowLeft`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s--,s>=0){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowUp`){var o=this.getNode(i.pid);if(o){var c=o.id;if(i.isAssistant||o.hasAssistants||i.isPartner||o.hasPartners){var s=o.childrenIds.indexOf(i.id);s--,s>=0&&(c=o.childrenIds[s])}this._keyNavigationActiveNodeId=c,this.center(c)}}else if(t.code==`ArrowDown`)i.childrenIds.length&&(this._keyNavigationActiveNodeId=i.childrenIds[0],this.center(i.childrenIds[0]));else if(t.code==`Space`){var l=n.getAttribute(h.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},h.events.on(`redraw`,function(e,t){e.config.keyNavigation&&h._keyNavigation(e)}),h.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),h._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(h.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!h.isNEU(e._keyNavigationActiveNodeId)){var n=e.getNodeElement(e._keyNavigationActiveNodeId);if(!(!n||!n.children.length)){var r=n.children[0];r.setAttribute(`tabindex`,2);var a={text:``,id:e._keyNavigationActiveNodeId};if(h.events.publish(`screen-reader-text`,[e,a]),!h.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},h.ui.css=function(){return`<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-chart-menu{opacity:0;display:inline-block;position:absolute;text-align:left;user-select:none;min-width:270px;box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif;border-radius:10px}.boc-chart-menu>div:hover img{filter:invert(100%)}.boc-chart-menu [data-item]{text-align:start;padding:7px 10px}.boc-dark .boc-chart-menu [data-item]{background-color:#252526;color:#acacac;border-bottom:1px solid #333}.boc-dark .boc-chart-menu [data-item]:hover{background-color:#094771!important;color:#fff!important}.boc-dark .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-light .boc-chart-menu [data-item]{background-color:#fff;color:#333;border-bottom:1px solid #c7c7c7}.boc-light .boc-chart-menu [data-item]:hover{background-color:#0074e8!important;color:#fff!important}.boc-light .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-chart-menu [data-item] svg{vertical-align:middle}.boc-chart-menu [data-item]:first-child{border-top-left-radius:7px;border-top-right-radius:7px}.boc-chart-menu [data-item]:last-child{border-bottom-width:0;border-bottom-style:none;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>`},h.input={},h.input._timeout=null,h.input.initWithTimeout=function(){h.input._timeout&&(clearTimeout(h.input._timeout),h.input._timeout=null),h.input._timeout=setTimeout(h.input.init,200)},h.input.init=function(e){for(var t=e?e.querySelectorAll(`[data-boc-input]`):document.querySelectorAll(`[data-boc-input]`),n=0;n<t.length;n++){var r=t[n],i=null;r.type&&r.type.toLowerCase()==`hidden`&&(i=r),i||=r.querySelector(`input`),i||=r.querySelector(`select`);var a=r.querySelector(`label`);a&&(i.value||i.type==`select-one`&&i.selectedOptions&&i.selectedOptions.length&&i.selectedOptions[0].value==``&&i.selectedOptions[0].innerHTML)&&a.classList.add(`hasval`),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`focus`,function(){this.classList.remove(`boc-validation-error`);var e=this.parentNode.querySelector(`label`);e.classList.add(`focused`);var t=e.querySelector(`.boc-validation-error-message`);t&&t.parentNode.removeChild(t)}),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`blur`,function(){h.input.blurHandler(this)})}},h.input.blurHandler=function(e){var t=e.parentNode.querySelector(`label`);t.classList.remove(`focused`),e.value||e.type==`date`?t.classList.add(`hasval`):t.classList.remove(`hasval`)},h.input.validate=function(e){var t=null;e.type&&e.type.toLowerCase()==`hidden`&&(t=e),t||=e.querySelector(`input`),t||=e.querySelector(`select`);var n=e.querySelector(`label`);if(t.classList.remove(`boc-validation-error`),n){var r=n.querySelector(`.boc-validation-error-message`);r&&r.parentNode.removeChild(r)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var i=e.getAttribute(`data-v-required`),a=e.getAttribute(`data-v-password`),o=e.getAttribute(`data-v-email`),s=e.getAttribute(`data-v-emails`);return i&&t.value==``?(n.innerHTML+=`<span class="boc-validation-error-message"> `+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!h.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!h.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!h.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},h.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];h.input.validate(i)||(n=!1)}return n?h.input.getData(e):!1},h.input.getData=function(e){for(var t=e.querySelectorAll(`[data-binding]`),n={},r=0;r<t.length;r++){var i=t[r],a=i.getAttribute(`data-binding`);if(i.type.toLowerCase()==`checkbox`)n[a]=i.checked;else if(i.selectedOptions&&i.hasAttribute(`multiple`)){var o=i.selectedOptions;n[a]=Array.from(o).map(({value:e})=>e)}else n[a]=i.value}return n},h.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},h.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!h.input.isValidEmail(r))return!1}return!0},h.input.isValidEmail=function(e){return e&&=e.trim(),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},h===void 0&&(h={}),h.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},h.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},h.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},h.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},h.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},h.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},h.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},h.prototype.onDrop=function(e){return this.on(`drop`,function(t,n,r,i,a){var o={dragId:n,dropId:r,dragNodeElement:i,event:a};return e.call(t,o)})},h.prototype.onDrag=function(e){return this.on(`drag`,function(t,n,r,i){var a={dragId:n,event:r,nodeIds:i};return e.call(t,a)})},h.prototype.onExpandCollapseButtonClick=h.prototype.onExpandCollpaseButtonClick=function(e){return this.on(`expcollclick`,function(t,n,r,i){var a={collapsing:n,id:r,ids:i};return e.call(t,a)})},h.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},h.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},h.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},h.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},h.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},h.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},h.prototype._dragDropHandler=function(e,t,n){},h.prototype._movableHandler=function(e,t,n){},h===void 0&&(h={}),h._communityMessages=[],h._communityAlert=function(){var e=[];for(var t of h._communityMessages)e.includes(t)||e.push(t);if(e.length){var n=`The following methods and options are not supported in Community Edition:\n\n${e.join(`
|
|
475
|
-
`)} \n\nDownload the Trial Edition if you want to use the features above.`;alert(n)}},h._communityMethod=function(e){h._communityMessages.push(e+` [method]`)},h.manager._community_createNodes=h.manager._createNodes,h.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs;return h._checkForUnsuportedFeatures(t,n),h.manager._community_createNodes(e)},h._checkForUnsuportedFeatures=function(e,t){for(var n of e.nodes){if(n.tags){var r=n.tags.indexOf(`assistant`);r>-1&&(h._communityMessages.push(`assistant [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`partner`),r>-1&&(h._communityMessages.push(`partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`left-partner`),r>-1&&(h._communityMessages.push(`left-partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`right-partner`),r>-1&&(h._communityMessages.push(`right-partner [tag]`),n.tags.splice(r,1))}h.isNEU(n.stpid)||(h._communityMessages.push(`stpid [property]`),n.stpid=void 0)}for(var i in e.slinks&&e.slinks.length&&(h._communityMessages.push(`slinks [option]`),e.slinks=[]),e.clinks&&e.clinks.length&&(h._communityMessages.push(`clinks [option]`),e.clinks=[]),t){var a=t[i];a.layout!=h.layout.normal&&(h._communityMessages.push(`layout [option]`),a.layout=h.layout.normal)}},h.events.on(`init`,function(e,t){setTimeout(h._communityAlert,500)}),h._defaultConfig=function(e){for(var t of[`enableDragDrop`,`enableSearch`,`enableAI`,`keyNavigation`,`miniMap`,`controls`,`nodeMenu`,`nodeCircleMenu`,`nodeContextMenu`,`menu`,`toolbar`,`showXScroll`,`showYScroll`,`searchFields`,`searchDisplayField`,`searchFieldsWeight`,`searchFieldsAbbreviation`,`movable`,`serverUrl`,`state`,`editForm`,`showYScroll`,`showYScroll`,`filterBy`,`undoRedoStorageName`])e[t]&&h._communityMessages.push(t+` [option]`);return{interactive:!0,mode:`light`,lazyLoading:`auto`,enableDragDrop:!1,enableSearch:!1,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:h.action.none,nodeMouseDbClick:h.action.none,mouseScrool:h.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:`ana`,tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:h.orientation.top,layout:h.layout.normal,layoutGridColumns:`dynamic`,scaleInitial:h.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:null,serverUrl:null,aiChatTools:[],collapse:{},expand:{},align:h.CENTER,UI:null,anim:{func:h.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},h.prototype.__mouseScrollHandlerTreeList=function(){},h.prototype._treeListUpdate=function(){},h.prototype._treeListIterate2=function(){},h.prototype._treeListSetPositions=function(){},h.prototype._treeListThumbMouseDownHandler=function(){},h.prototype._treeListExpandCollapseHandler=function(e){},h===void 0&&(h={}),h.local={},h.local._setPositions=function(e,t,n){h.local._walk(e,t),n()},h.local._walk=function(e,t){for(var n={minX:null,minY:null,maxX:null,maxY:null},r=[],i=[],a=0;a<e.length;a++){var o=h.local._getConfig(e[a],t);h.local._firstWalk(e[a],0,r,i,o)}for(var a=0;a<e.length;a++){var o=h.local._getConfig(e[a],t);h.local._secondWalk(e[a],0,0,0,r,n,o)}},h.local._firstWalk=function(e,t,n,r,i){var a=null;if(e.x=0,e.y=0,e._prelim=0,e._modifier=0,e.leftNeighbor=null,e.rightNeighbor=null,h.local._setLevelMaxNodeHeight(e,t,n,i),h.local._setNeighbors(e,t,r),!h.local._hasChildren(e)||t==h.MAX_DEPTH)if(a=h.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+h.local._nodeWithPartnersSize(a,i)+o}else e._prelim=0;else{for(var s of e.children)h.local._firstWalk(s,t+1,n,r,i);var c=h.local._fChild(e),l=e.children[e.children.length-1],u=c._prelim+(l._prelim-c._prelim)/2+h.local._leftMidPoint(l,i);if(u-=h.local._mid(e,i),a=h.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+h.local._nodeWithPartnersSize(a,i)+o,e._modifier=e._prelim-u,h.local._apportion(e,t,n,i)}else i.orientation<=3?e._prelim=u:e._prelim=0}},h.local._secondWalk=function(e,t,n,r,i,a,o){if(t<=h.MAX_DEPTH){var s=e._prelim+n,c=r,l=0,u=0;switch(l=i[t],u=h.local._getNodeHeight(e,o),e.x=s,e.y=c,o.orientation){case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:var d=e.x;e.x=e.y,e.y=d;break}switch(o.orientation){case h.orientation.bottom:case h.orientation.bottom_left:e.y=-e.y-u;break;case h.orientation.right:case h.orientation.right_top:e.x=-e.x-u;break}if(h._setMinMaxXY(e,a,!0),e.children!=0){var f=o.levelSeparation;h.local._secondWalk(e.children[0],t+1,n+e._modifier,r+l+f,i,a,o)}var p=h.local._getRightSibling(e);p!=null&&h.local._secondWalk(p,t,n,r,i,a,o)}},h.local._lastWalk=function(e,t,n,r,i){e.x+=t+i[3]-r.minX,e.y+=n+i[0]-r.minY;for(var a of e.children)h.local._lastWalk(a,t,n,r,i)},h.local._apportion=function(e,t,n,r){for(var i=h.local._fChild(e),a=i.leftNeighbor,o=1,s=h.MAX_DEPTH-t;i!=null&&a!=null&&o<=s;){for(var c=0,l=0,u=i,d=a,f=0;f<o;f++)u=u.parent,d=d.parent,c+=u._modifier,l+=d._modifier;var p=r.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&typeof e.leftNeighbor.id==`string`&&e.leftNeighbor.id.indexOf(`_sublevel_layout_`)!=-1&&(p=r.subtreeSeparation);var m=a._prelim+l+h.local._nodeWithPartnersSize(a,r)+p-(i._prelim+c);if(m>0){for(var g=e,_=0;g!=null&&g!=d;g=h.local._getLeftSibling(g))_++;if(g!=null){var v=e,y=m/_;for(typeof v.id==`string`&&v.id.indexOf(`_grid_pseudo_node_`)!=-1&&(y=0);v!=d;v=h.local._getLeftSibling(v))v._prelim+=m,v._modifier+=m,m-=y}}o++,i=h.local._hasChildren(i)?h.local._fChild(i):h.local._getLeftmost(e,0,o),i!=null&&(a=i.leftNeighbor)}},h.local._mixedTreeHeight=function(e){e.size+=h.local._getNodeHeight(e.node,e.config)+e.config.mixedHierarchyNodesSeparation;for(var t=0;t<e.node.children.length;t++)e.node=e.node.children[t],h.local._mixedTreeHeight(e)},h.local._setLevelMaxNodeHeight=function(e,t,n,r){n[t]??(n[t]=0);var i=h.local._getNodeHeight(e,r);n[t]<i&&(n[t]=i)},h.local._setNeighbors=function(e,t,n){n[t]&&n[t].id===e.id||(e.leftNeighbor=n[t],e.leftNeighbor!=null&&(e.leftNeighbor.rightNeighbor=e),n[t]=e)},h.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h}return 0},h.local._size=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h}return 0},h.local._leftMidPoint=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w/2;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h/2}return 0},h.local._rightMidPoint=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w/2;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h/2}return 0},h.local._mid=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.w/2;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.h/2}return 0},h.local._getNodeHeight=function(e,t){switch(t.orientation){case h.orientation.top:case h.orientation.top_left:case h.orientation.bottom:case h.orientation.bottom_left:return e.h;case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:return e.w}return 0},h.local._getLeftSibling=function(e){return e.leftNeighbor!=null&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},h.local._getRightSibling=function(e){return e.rightNeighbor!=null&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},h.local._getLeftmost=function(e,t,n){if(t>=n)return e;if(!h.local._hasChildren(e))return null;for(var r of e.children){var i=h.local._getLeftmost(r,t+1,n);if(i!=null)return i}return null},h.local._fChild=function(e){return e.children[0]},h.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},h.local._getConfig=function(e,t){return t[e.lcn?e.lcn:`base`]},h.editUI=function(){},h.editUI.prototype.init=function(){},h.editUI.prototype.on=function(e,t){return h._communityMethod(`editUI.on`),this},h.editUI.prototype.show=function(e,t,n){h._communityMethod(`editUI.show`)},h.editUI.prototype.setAvatar=function(e){h._communityMethod(`editUI.setAvatar`)},h.editUI.prototype.hide=function(e){},h.menuUI=function(){},h.menuUI.prototype.init=function(){},h.menuUI.prototype.showStickIn=function(){h._communityMethod(`menuUI.showStickIn`)},h.menuUI.prototype.show=function(){h._communityMethod(`menuUI.show`)},h.menuUI.prototype.isVisible=function(){h._communityMethod(`menuUI.isVisible`)},h.menuUI.prototype.hide=function(){},h.menuUI.prototype.on=function(){h._communityMethod(`menuUI.on`)},h.controlsUI=function(){},h.controlsUI.prototype.init=function(){},h.controlsUI.prototype.show=function(){h._communityMethod(`controlsUI.show`)},h.controlsUI.prototype.hide=function(){h._communityMethod(`controlsUI.hide`)},h.circleMenuUI=function(){},h.circleMenuUI.prototype.init=function(){},h.circleMenuUI.prototype.show=function(){h._communityMethod(`circleMenuUI.show`)},h.circleMenuUI.prototype.isVisible=function(){h._communityMethod(`circleMenuUI.isVisible`)},h.circleMenuUI.prototype.hide=function(){},h.circleMenuUI.prototype.on=function(){return h._communityMethod(`circleMenuUI.on`),this},h.toolbarUI=function(){},h.toolbarUI.expandAllIcon=``,h.toolbarUI.fitIcon=``,h.toolbarUI.openFullScreenIcon=``,h.toolbarUI.closeFullScreenIcon=``,h.toolbarUI.zoomInIcon=``,h.toolbarUI.zoomOutIcon=``,h.toolbarUI.layoutIcon=``,h.toolbarUI.prototype.init=function(){},h.toolbarUI.prototype.showLayout=function(){},h.toolbarUI.prototype.hideLayout=function(){},h.prototype.importCSV=function(){h._communityMethod(`importCSV`)},h.prototype.importXML=function(){h._communityMethod(`importXML`)},h.searchUI=function(){},h.searchUI.prototype.init=function(e){},h.searchUI.prototype._enterHandler=function(){h._communityMethod(`searchUI._enterHandler`)},h.searchUI.prototype.find=function(e){h._communityMethod(`searchUI.find`)},h.searchUI.prototype.addMatchTag=function(e){},h.searchUI.prototype.__search=function(){},h.searchUI.prototype._search=function(){},h.searchUI.prototype.helpView=function(){h._communityMethod(`searchUI.helpView`)},h.searchUI.createItem=function(e,t,n,r){h._communityMethod(`searchUI.createItem`)},h.searchUI.prototype.hide=function(){h._communityMethod(`searchUI.hide`)},h.searchUI.prototype.on=function(e,t){return h._communityMethod(`searchUI.on`),this},h.xScrollUI=function(e,t,n,r,i){this.config=t},h.xScrollUI.prototype.addListener=function(e){},h.xScrollUI.prototype.create=function(e){},h.xScrollUI.prototype.setPosition=function(){},h.yScrollUI=function(e,t,n,r,i){this.config=t},h.yScrollUI.prototype.addListener=function(e){},h.yScrollUI.prototype.create=function(e){},h.yScrollUI.prototype.setPosition=function(){},h===void 0&&(h={}),h.clinkLabelPosition=function(){},h.clinkCurve=function(){},h.prototype.addClink=function(){return h._communityMethod(`addClink`),this},h.prototype.removeClink=function(){return h._communityMethod(`removeClink`),this},h.clinkTemplates={},h.clinkTemplates.orange={defs:``,link:``,label:``},h.clinkTemplates.blue={defs:``,link:``,label:``},h.clinkTemplates.yellow={defs:``,link:``,label:``},h===void 0&&(h={}),h.prototype._slinks=function(){h._communityMethod(`_slinks`)},h.prototype.addSlink=function(){return h._communityMethod(`addSlink`),this},h.prototype.removeSlink=function(e,t){return h._communityMethod(`removeSlink`),this},h.slinkTemplates={},h.slinkTemplates.orange={defs:``,link:``,label:``,labelPosition:``},h.slinkTemplates.blue={defs:``,link:``,label:``,labelPosition:``},h.slinkTemplates.yellow={defs:``,link:``,label:``,labelPosition:``},h.orgScribeUI=function(){},h.orgScribeUI.prototype.init=function(e){},h.orgScribeUI.prototype.isVisible=function(){h._communityMethod(`orgScribeUI.isVisible`)},h.orgScribeUI.prototype.show=function(e,t){h._communityMethod(`orgScribeUI.show`)},h.orgScribeUI.prototype.hide=function(){h._communityMethod(`orgScribeUI.hide`)},h===void 0&&(h={}),h.prototype.undo=function(e){h._communityMethod(`undo`)},h.prototype.redo=function(e){h._communityMethod(`redo`)},h.prototype.clearRedo=function(){},h.prototype.clearUndo=function(){h._communityMethod(`clearUndo`)},h.prototype.undoStepsCount=function(){h._communityMethod(`undoStepsCount`)},h.prototype.redoStepsCount=function(){h._communityMethod(`redoStepsCount`)},h.prototype._putInUndoStack=function(){},h.prototype._putInRedoStack=function(){},h===void 0&&(h={}),h.undoRedoUI=function(){},h.undoRedoUI.prototype.init=function(e){},h.undoRedoUI.prototype.refresh=function(){h._communityMethod(`undoRedoUI.refresh`)},h.undoRedoUI.prototype.on=function(e,t){return h._communityMethod(`undoRedoUI.on`),this},h.undoRedoUI.prototype.onChange=function(e){h._communityMethod(`undoRedoUI.onChange`)},h.miniMap={},h.miniMap.colors=[],h.miniMap.selectorBackgroundColor=``,h.miniMap.backgroundColor=``,h.miniMap.focusStroke=``,h.miniMap.opacity=0,h.miniMap.border=``,h.miniMap.width=0,h.miniMap.height=0,h.miniMap.padding=0,h.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},h.miniMap.draggable=!0,h.state={},h.state._buildStateNames=function(e){return{paramScale:e+`-scale`,paramX:e+`-x`,paramY:e+`-y`,paramExp:e+`-exp`,paramMin:e+`-min`,paramRoots:e+`-roots`,paramAdjustify:e+`-adjustify`}},h.state._put=function(e,t,n,r,i,a,o,s){},h.state._get=function(e,t,n,r){r(null)},h.state.clear=function(e){},h._search={},h._search.search=function(){h._communityMethod(`searchUI.search`)},h._search.addNodeToResult=function(){h._communityMethod(`searchUI.addNodeToResult`)},h._search.searchAndComputeScore=function(){h._communityMethod(`searchUI.searchAndComputeScore`)},h._search.searchIndexesOf=function(){h._communityMethod(`searchUI.searchIndexesOf`)},h.filterUI=function(){},h.filterUI.prototype.init=function(e){},h.filterUI.prototype.addFilterTag=function(e){},h.filterUI.prototype.show=function(e){h._communityMethod(`filterUI.show`)},h.filterUI.prototype.hide=function(){},h.filterUI.prototype._removeFilter=function(e){},h.filterUI.prototype.update=function(){},h.filterUI.prototype.on=function(e,t){h._communityMethod(`filterUI.on`)},h.filterUI.textFilterBy=``,h.filterUI.all=``,h.prototype.exportToPDFProfile=function(){h._communityMethod(`exportToPDFProfile`)},h.prototype.exportToVisio=function(){h._communityMethod(`exportToVisio`)},h.prototype.exportToPDF=function(){h._communityMethod(`exportToPDF`)},h.prototype.exportToPNG=function(){h._communityMethod(`exportToPNG`)},h.prototype.exportToSVG=function(){h._communityMethod(`exportToSVG`)},h.prototype.exportToPowerPoint=function(){h._communityMethod(`exportToPowerPoint`)},h.exportUI=function(){},h.exportUI.prototype.init=function(){},h.exportUI.prototype.show=function(e){h._communityMethod(`exportUI.show`)},h.exportUI.prototype.isVisible=function(){h._communityMethod(`exportUI.isVisible`)},h.exportUI.prototype.hide=function(){},h.exportUI.prototype.refresh=function(){h._communityMethod(`exportUI.refresh`)},h.exportUI.prototype.toggleLanscape=function(){h._communityMethod(`exportUI.toggleLanscape`)},h.exportUI.prototype.addPage=function(){h._communityMethod(`exportUI.addPage`)},h.exportUI.prototype.removePage=function(){h._communityMethod(`exportUI.removePage`)},h.exportUI.prototype.toggelePrintTreeOrProfile=function(){h._communityMethod(`exportUI.toggelePrintTreeOrProfile`)},h.exportUI.prototype.selectPage=function(e){h._communityMethod(`exportUI.selectPage`)};var g=h,_={camelToKebab:function(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()},kebabToCamel:function(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())},divToEmployees:function(e){let t=[],n=1;function r(e,i){let a=n++,o={id:a};i!==void 0&&(o.pid=i),Array.from(e.attributes).forEach(e=>{let t=e.name.replace(`data-`,``),n=_.kebabToCamel(t),r=e.value;n===`assistant`||n===`partner`?r===`true`&&(o.tags||=[],o.tags.push(n)):o[n]=r}),t.push(o),Array.from(e.children).forEach(e=>{r(e,a)})}return Array.from(e.children).forEach(e=>r(e)),t}},v=function({children:e,title:t,name:r,photo:i,assistant:a,partner:o,template:s,...c}){return(0,n.jsx)(`div`,{...Object.keys(c).reduce((e,t)=>{let n=_.camelToKebab(t);return e[`data-${n}`]=c[t],e},{}),"data-title":t,"data-name":r,"data-photo":i,"data-assistant":a,"data-partner":o,"data-template":s,children:e})},y=(0,t.forwardRef)((e,r)=>{let i=(0,t.useRef)(null),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(i.current&&!a.current){let t=_.divToEmployees(i.current),n=e?.data;t&&!n&&(n=t);let o={...e,nodes:n},s=new g(i.current,o);a.current=s,typeof r==`function`?r(s):r&&(r.current=s),e.onUpdateNode&&s.onUpdateNode(e.onUpdateNode),e.onUpdated&&s.onUpdated(e.onUpdated),e.onRemoveNode&&s.onRemoveNode(e.onRemoveNode),e.onAddNode&&s.onAddNode(e.onAddNode),e.onDrag&&s.onDrag(e.onDrag),e.onDrop&&s.onDrop(e.onDrop),e.onInit&&s.onInit(e.onInit),e.onRedraw&&s.onRedraw(e.onRedraw),e.onExpandCollapseButtonClick&&s.onExpandCollapseButtonClick(e.onExpandCollapseButtonClick),e.onExportStart&&s.onExportStart(e.onExportStart),e.onExportEnd&&s.onExportEnd(e.onExportEnd),e.onNodeClick&&s.onNodeClick(e.onNodeClick),e.onCanvasClick&&s.onCanvasClick(e.onCanvasClick),e.onAIToolCalls&&s.onAIToolCalls(e.onAIToolCalls),e.onNodeDoubleClick&&s.onNodeDoubleClick(e.onNodeDoubleClick)}},[]),(0,t.useEffect)(()=>{a.current&&e.data&&e.data.length>0&&a.current.load(e.data)},[e.data]),(0,n.jsx)(`div`,{ref:i,style:{width:`100%`,height:`100%`,...e?.style},children:e?.children})});e.Employee=v,e.OrgChartReact=y});
|
|
474
|
+
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,_.input.init(this.element);var n=this.instance.leftElement.querySelector(`[data-boc-ai-close] svg`);n&&n.addEventListener(`click`,function(t){e.hide()}),this.inputElement=this.element.querySelector(`#`+t),this.btnSendElement=this.inputElement.parentNode.querySelector(`[data-boc-ai-send]`),this.messagesElement=this.element.querySelector(`[data-boc-ai-messages]`),this.inputElement.addEventListener(`input`,function(e){this.value?this.parentNode.querySelector(`.boc-ai-send`).classList.add(`boc-ai-send-cansend`):this.parentNode.querySelector(`.boc-ai-send`).classList.remove(`boc-ai-send-cansend`)}),this.element.querySelector(`[data-boc-ai-send]`).addEventListener(`click`,function(t){e.sendUserInput()}),this.inputElement.addEventListener(`keyup`,function(t){var n=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),n.key){case`Enter`:e.sendUserInput();break;case`ArrowUp`:var r=_.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=r.length-1:i--,i==-1&&(i=r.length-1),e.inputElement.value=r[i]}break;case`ArrowDown`:var r=_.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=0:i++,i==r.length&&(i=0),e.inputElement.value=r[i]}break;default:}})}},_.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove(`boc-ai-send-cansend`);var t=this.element.querySelector(`.boc-ai-start`);t&&(t.classList.remove(`boc-ai-start`),this.messagesElement.innerHTML=``);var n=document.createElement(`div`);n.classList.add(`boc-ai-user-message`),n.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(n)},_.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},_.aiUI.prototype.sendUserInput=function(){var e=this;_.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement(`div`);t.classList.add(`boc-ai-assistant-message`);var n=document.createElement(`span`);n.classList.add(`boc-inner-assistant-message`),t.appendChild(n),this.messagesElement.appendChild(t);var r=``;this.instance._ai.prompt(this.inputElement.value,function(t){r+=t,n.innerHTML=marked.parse(r);var i=e.element.querySelector(`.boc-ai-middle`);i.scrollTo(0,i.scrollHeight)}),this.inputElement.value=``},_.aiUI._addSuggestion=function(e){e=e.trim();var t=_.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},_.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},_===void 0&&(_={}),_.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),_.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;_.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),_.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(_.attr.node_id)){r=n.getAttribute(_.attr.node_id);break}n=n.parentNode}if(n){var i=r?this.getNode(r):null,a={node:i,data:r?this.get(r):null,event:t};if(_.events.publish(`key-down`,[this,a])!==!1&&i){if(t.code==`KeyF`)this.searchUI.find(``);else if(t.code==`ArrowRight`||i.isAssistant&&t.code==`ArrowDown`||i.isPartner&&t.code==`ArrowDown`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s++,s<o.childrenIds.length){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowLeft`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s--,s>=0){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowUp`){var o=this.getNode(i.pid);if(o){var c=o.id;if(i.isAssistant||o.hasAssistants||i.isPartner||o.hasPartners){var s=o.childrenIds.indexOf(i.id);s--,s>=0&&(c=o.childrenIds[s])}this._keyNavigationActiveNodeId=c,this.center(c)}}else if(t.code==`ArrowDown`)i.childrenIds.length&&(this._keyNavigationActiveNodeId=i.childrenIds[0],this.center(i.childrenIds[0]));else if(t.code==`Space`){var l=n.getAttribute(_.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},_.events.on(`redraw`,function(e,t){e.config.keyNavigation&&_._keyNavigation(e)}),_.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),_._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(_.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!_.isNEU(e._keyNavigationActiveNodeId)){var n=e.getNodeElement(e._keyNavigationActiveNodeId);if(!(!n||!n.children.length)){var r=n.children[0];r.setAttribute(`tabindex`,2);var a={text:``,id:e._keyNavigationActiveNodeId};if(_.events.publish(`screen-reader-text`,[e,a]),!_.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},_.ui.css=function(){return`<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>`},_.input={},_.input._timeout=null,_.input.initWithTimeout=function(){_.input._timeout&&(clearTimeout(_.input._timeout),_.input._timeout=null),_.input._timeout=setTimeout(_.input.init,200)},_.input.init=function(e){for(var t=e?e.querySelectorAll(`[data-boc-input]`):document.querySelectorAll(`[data-boc-input]`),n=0;n<t.length;n++){var r=t[n],i=null;r.type&&r.type.toLowerCase()==`hidden`&&(i=r),i||=r.querySelector(`input`),i||=r.querySelector(`select`);var a=r.querySelector(`label`);a&&(i.value||i.type==`select-one`&&i.selectedOptions&&i.selectedOptions.length&&i.selectedOptions[0].value==``&&i.selectedOptions[0].innerHTML)&&a.classList.add(`hasval`),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`focus`,function(){this.classList.remove(`boc-validation-error`);var e=this.parentNode.querySelector(`label`);e.classList.add(`focused`);var t=e.querySelector(`.boc-validation-error-message`);t&&t.parentNode.removeChild(t)}),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`blur`,function(){_.input.blurHandler(this)})}},_.input.blurHandler=function(e){var t=e.parentNode.querySelector(`label`);t.classList.remove(`focused`),e.value||e.type==`date`?t.classList.add(`hasval`):t.classList.remove(`hasval`)},_.input.validate=function(e){var t=null;e.type&&e.type.toLowerCase()==`hidden`&&(t=e),t||=e.querySelector(`input`),t||=e.querySelector(`select`);var n=e.querySelector(`label`);if(t.classList.remove(`boc-validation-error`),n){var r=n.querySelector(`.boc-validation-error-message`);r&&r.parentNode.removeChild(r)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var i=e.getAttribute(`data-v-required`),a=e.getAttribute(`data-v-password`),o=e.getAttribute(`data-v-email`),s=e.getAttribute(`data-v-emails`);return i&&t.value==``?(n.innerHTML+=`<span class="boc-validation-error-message"> `+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!_.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!_.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!_.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},_.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];_.input.validate(i)||(n=!1)}return n?_.input.getData(e):!1},_.input.getData=function(e){for(var t=e.querySelectorAll(`[data-binding]`),n={},r=0;r<t.length;r++){var i=t[r],a=i.getAttribute(`data-binding`);if(i.type.toLowerCase()==`checkbox`)n[a]=i.checked;else if(i.selectedOptions&&i.hasAttribute(`multiple`)){var o=i.selectedOptions;n[a]=Array.from(o).map(({value:e})=>e)}else n[a]=i.value}return n},_.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},_.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!_.input.isValidEmail(r))return!1}return!0},_.input.isValidEmail=function(e){return e&&=e.trim(),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},_===void 0&&(_={}),_.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},_.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},_.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},_.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},_.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},_.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},_.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},_.prototype.onDrop=function(e){return this.on(`drop`,function(t,n,r,i,a){var o={dragId:n,dropId:r,dragNodeElement:i,event:a};return e.call(t,o)})},_.prototype.onDrag=function(e){return this.on(`drag`,function(t,n,r,i){var a={dragId:n,event:r,nodeIds:i};return e.call(t,a)})},_.prototype.onExpandCollapseButtonClick=_.prototype.onExpandCollpaseButtonClick=function(e){return this.on(`expcollclick`,function(t,n,r,i){var a={collapsing:n,id:r,ids:i};return e.call(t,a)})},_.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},_.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},_.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},_.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},_.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},_.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},_.prototype._dragDropHandler=function(e,t,n){},_.prototype._movableHandler=function(e,t,n){},_===void 0&&(_={}),_._communityMessages=[],_._communityAlert=function(){var e=[];for(var t of _._communityMessages)e.includes(t)||e.push(t);if(e.length){var n=`The following methods and options are not supported in Community Edition:\n\n${e.join(`
|
|
475
|
+
`)} \n\nDownload the Trial Edition if you want to use the features above.`;alert(n)}},_._communityMethod=function(e){_._communityMessages.push(e+` [method]`)},_.manager._community_createNodes=_.manager._createNodes,_.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs;return _._checkForUnsuportedFeatures(t,n),_.manager._community_createNodes(e)},_._checkForUnsuportedFeatures=function(e,t){for(var n of e.nodes){if(n.tags){var r=n.tags.indexOf(`assistant`);r>-1&&(_._communityMessages.push(`assistant [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`partner`),r>-1&&(_._communityMessages.push(`partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`left-partner`),r>-1&&(_._communityMessages.push(`left-partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`right-partner`),r>-1&&(_._communityMessages.push(`right-partner [tag]`),n.tags.splice(r,1))}_.isNEU(n.stpid)||(_._communityMessages.push(`stpid [property]`),n.stpid=void 0)}for(var i in e.slinks&&e.slinks.length&&(_._communityMessages.push(`slinks [option]`),e.slinks=[]),e.clinks&&e.clinks.length&&(_._communityMessages.push(`clinks [option]`),e.clinks=[]),t){var a=t[i];a.layout!=_.layout.normal&&(_._communityMessages.push(`layout [option]`),a.layout=_.layout.normal)}},_.events.on(`init`,function(e,t){setTimeout(_._communityAlert,500)}),_._defaultConfig=function(e){for(var t of[`enableDragDrop`,`enableSearch`,`enableAI`,`keyNavigation`,`miniMap`,`controls`,`nodeMenu`,`nodeCircleMenu`,`nodeContextMenu`,`menu`,`toolbar`,`showXScroll`,`showYScroll`,`searchFields`,`searchDisplayField`,`searchFieldsWeight`,`searchFieldsAbbreviation`,`movable`,`serverUrl`,`state`,`editForm`,`showYScroll`,`showYScroll`,`filterBy`,`undoRedoStorageName`])e[t]&&_._communityMessages.push(t+` [option]`);return{interactive:!0,mode:`light`,lazyLoading:`auto`,enableDragDrop:!1,enableSearch:!1,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:_.action.none,nodeMouseDbClick:_.action.none,mouseScrool:_.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:`ana`,tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:_.orientation.top,layout:_.layout.normal,layoutGridColumns:`dynamic`,scaleInitial:_.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:null,serverUrl:null,aiChatTools:[],collapse:{},expand:{},align:_.CENTER,UI:null,anim:{func:_.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},_.prototype.__mouseScrollHandlerTreeList=function(){},_.prototype._treeListUpdate=function(){},_.prototype._treeListIterate2=function(){},_.prototype._treeListSetPositions=function(){},_.prototype._treeListThumbMouseDownHandler=function(){},_.prototype._treeListExpandCollapseHandler=function(e){},_===void 0&&(_={}),_.local={},_.local._setPositions=function(e,t,n){_.local._walk(e,t),n()},_.local._walk=function(e,t){for(var n={minX:null,minY:null,maxX:null,maxY:null},r=[],i=[],a=0;a<e.length;a++){var o=_.local._getConfig(e[a],t);_.local._firstWalk(e[a],0,r,i,o)}for(var a=0;a<e.length;a++){var o=_.local._getConfig(e[a],t);_.local._secondWalk(e[a],0,0,0,r,n,o)}},_.local._firstWalk=function(e,t,n,r,i){var a=null;if(e.x=0,e.y=0,e._prelim=0,e._modifier=0,e.leftNeighbor=null,e.rightNeighbor=null,_.local._setLevelMaxNodeHeight(e,t,n,i),_.local._setNeighbors(e,t,r),!_.local._hasChildren(e)||t==_.MAX_DEPTH)if(a=_.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+_.local._nodeWithPartnersSize(a,i)+o}else e._prelim=0;else{for(var s of e.children)_.local._firstWalk(s,t+1,n,r,i);var c=_.local._fChild(e),l=e.children[e.children.length-1],u=c._prelim+(l._prelim-c._prelim)/2+_.local._leftMidPoint(l,i);if(u-=_.local._mid(e,i),a=_.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+_.local._nodeWithPartnersSize(a,i)+o,e._modifier=e._prelim-u,_.local._apportion(e,t,n,i)}else i.orientation<=3?e._prelim=u:e._prelim=0}},_.local._secondWalk=function(e,t,n,r,i,a,o){if(t<=_.MAX_DEPTH){var s=e._prelim+n,c=r,l=0,u=0;switch(l=i[t],u=_.local._getNodeHeight(e,o),e.x=s,e.y=c,o.orientation){case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:var d=e.x;e.x=e.y,e.y=d;break}switch(o.orientation){case _.orientation.bottom:case _.orientation.bottom_left:e.y=-e.y-u;break;case _.orientation.right:case _.orientation.right_top:e.x=-e.x-u;break}if(_._setMinMaxXY(e,a,!0),e.children!=0){var f=o.levelSeparation;_.local._secondWalk(e.children[0],t+1,n+e._modifier,r+l+f,i,a,o)}var p=_.local._getRightSibling(e);p!=null&&_.local._secondWalk(p,t,n,r,i,a,o)}},_.local._lastWalk=function(e,t,n,r,i){e.x+=t+i[3]-r.minX,e.y+=n+i[0]-r.minY;for(var a of e.children)_.local._lastWalk(a,t,n,r,i)},_.local._apportion=function(e,t,n,r){for(var i=_.local._fChild(e),a=i.leftNeighbor,o=1,s=_.MAX_DEPTH-t;i!=null&&a!=null&&o<=s;){for(var c=0,l=0,u=i,d=a,f=0;f<o;f++)u=u.parent,d=d.parent,c+=u._modifier,l+=d._modifier;var p=r.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&typeof e.leftNeighbor.id==`string`&&e.leftNeighbor.id.indexOf(`_sublevel_layout_`)!=-1&&(p=r.subtreeSeparation);var m=a._prelim+l+_.local._nodeWithPartnersSize(a,r)+p-(i._prelim+c);if(m>0){for(var h=e,g=0;h!=null&&h!=d;h=_.local._getLeftSibling(h))g++;if(h!=null){var v=e,y=m/g;for(typeof v.id==`string`&&v.id.indexOf(`_grid_pseudo_node_`)!=-1&&(y=0);v!=d;v=_.local._getLeftSibling(v))v._prelim+=m,v._modifier+=m,m-=y}}o++,i=_.local._hasChildren(i)?_.local._fChild(i):_.local._getLeftmost(e,0,o),i!=null&&(a=i.leftNeighbor)}},_.local._mixedTreeHeight=function(e){e.size+=_.local._getNodeHeight(e.node,e.config)+e.config.mixedHierarchyNodesSeparation;for(var t=0;t<e.node.children.length;t++)e.node=e.node.children[t],_.local._mixedTreeHeight(e)},_.local._setLevelMaxNodeHeight=function(e,t,n,r){n[t]??(n[t]=0);var i=_.local._getNodeHeight(e,r);n[t]<i&&(n[t]=i)},_.local._setNeighbors=function(e,t,n){n[t]&&n[t].id===e.id||(e.leftNeighbor=n[t],e.leftNeighbor!=null&&(e.leftNeighbor.rightNeighbor=e),n[t]=e)},_.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.local._size=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.local._leftMidPoint=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._rightMidPoint=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._mid=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._getNodeHeight=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.h;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.w}return 0},_.local._getLeftSibling=function(e){return e.leftNeighbor!=null&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},_.local._getRightSibling=function(e){return e.rightNeighbor!=null&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},_.local._getLeftmost=function(e,t,n){if(t>=n)return e;if(!_.local._hasChildren(e))return null;for(var r of e.children){var i=_.local._getLeftmost(r,t+1,n);if(i!=null)return i}return null},_.local._fChild=function(e){return e.children[0]},_.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},_.local._getConfig=function(e,t){return t[e.lcn?e.lcn:`base`]},_.editUI=function(){},_.editUI.prototype.init=function(){},_.editUI.prototype.on=function(e,t){return _._communityMethod(`editUI.on`),this},_.editUI.prototype.show=function(e,t,n){_._communityMethod(`editUI.show`)},_.editUI.prototype.setAvatar=function(e){_._communityMethod(`editUI.setAvatar`)},_.editUI.prototype.hide=function(e){},_.menuUI=function(){},_.menuUI.prototype.init=function(){},_.menuUI.prototype.showStickIn=function(){_._communityMethod(`menuUI.showStickIn`)},_.menuUI.prototype.show=function(){_._communityMethod(`menuUI.show`)},_.menuUI.prototype.isVisible=function(){_._communityMethod(`menuUI.isVisible`)},_.menuUI.prototype.hide=function(){},_.menuUI.prototype.on=function(){_._communityMethod(`menuUI.on`)},_.controlsUI=function(){},_.controlsUI.prototype.init=function(){},_.controlsUI.prototype.show=function(){_._communityMethod(`controlsUI.show`)},_.controlsUI.prototype.hide=function(){_._communityMethod(`controlsUI.hide`)},_.circleMenuUI=function(){},_.circleMenuUI.prototype.init=function(){},_.circleMenuUI.prototype.show=function(){_._communityMethod(`circleMenuUI.show`)},_.circleMenuUI.prototype.isVisible=function(){_._communityMethod(`circleMenuUI.isVisible`)},_.circleMenuUI.prototype.hide=function(){},_.circleMenuUI.prototype.on=function(){return _._communityMethod(`circleMenuUI.on`),this},_.toolbarUI=function(){},_.toolbarUI.expandAllIcon=``,_.toolbarUI.fitIcon=``,_.toolbarUI.openFullScreenIcon=``,_.toolbarUI.closeFullScreenIcon=``,_.toolbarUI.zoomInIcon=``,_.toolbarUI.zoomOutIcon=``,_.toolbarUI.layoutIcon=``,_.toolbarUI.prototype.init=function(){},_.toolbarUI.prototype.showLayout=function(){},_.toolbarUI.prototype.hideLayout=function(){},_.prototype.importCSV=function(){_._communityMethod(`importCSV`)},_.prototype.importXML=function(){_._communityMethod(`importXML`)},_.searchUI=function(){},_.searchUI.prototype.init=function(e){},_.searchUI.prototype._enterHandler=function(){_._communityMethod(`searchUI._enterHandler`)},_.searchUI.prototype.find=function(e){_._communityMethod(`searchUI.find`)},_.searchUI.prototype.addMatchTag=function(e){},_.searchUI.prototype.__search=function(){},_.searchUI.prototype._search=function(){},_.searchUI.prototype.helpView=function(){_._communityMethod(`searchUI.helpView`)},_.searchUI.createItem=function(e,t,n,r){_._communityMethod(`searchUI.createItem`)},_.searchUI.prototype.hide=function(){_._communityMethod(`searchUI.hide`)},_.searchUI.prototype.on=function(e,t){return _._communityMethod(`searchUI.on`),this},_.xScrollUI=function(e,t,n,r,i){this.config=t},_.xScrollUI.prototype.addListener=function(e){},_.xScrollUI.prototype.create=function(e){},_.xScrollUI.prototype.setPosition=function(){},_.yScrollUI=function(e,t,n,r,i){this.config=t},_.yScrollUI.prototype.addListener=function(e){},_.yScrollUI.prototype.create=function(e){},_.yScrollUI.prototype.setPosition=function(){},_===void 0&&(_={}),_.clinkLabelPosition=function(){},_.clinkCurve=function(){},_.prototype.addClink=function(){return _._communityMethod(`addClink`),this},_.prototype.removeClink=function(){return _._communityMethod(`removeClink`),this},_.clinkTemplates={},_.clinkTemplates.orange={defs:``,link:``,label:``},_.clinkTemplates.blue={defs:``,link:``,label:``},_.clinkTemplates.yellow={defs:``,link:``,label:``},_===void 0&&(_={}),_.prototype._slinks=function(){_._communityMethod(`_slinks`)},_.prototype.addSlink=function(){return _._communityMethod(`addSlink`),this},_.prototype.removeSlink=function(e,t){return _._communityMethod(`removeSlink`),this},_.slinkTemplates={},_.slinkTemplates.orange={defs:``,link:``,label:``,labelPosition:``},_.slinkTemplates.blue={defs:``,link:``,label:``,labelPosition:``},_.slinkTemplates.yellow={defs:``,link:``,label:``,labelPosition:``},_.orgScribeUI=function(){},_.orgScribeUI.prototype.init=function(e){},_.orgScribeUI.prototype.isVisible=function(){_._communityMethod(`orgScribeUI.isVisible`)},_.orgScribeUI.prototype.show=function(e,t){_._communityMethod(`orgScribeUI.show`)},_.orgScribeUI.prototype.hide=function(){_._communityMethod(`orgScribeUI.hide`)},_===void 0&&(_={}),_.prototype.undo=function(e){_._communityMethod(`undo`)},_.prototype.redo=function(e){_._communityMethod(`redo`)},_.prototype.clearRedo=function(){},_.prototype.clearUndo=function(){_._communityMethod(`clearUndo`)},_.prototype.undoStepsCount=function(){_._communityMethod(`undoStepsCount`)},_.prototype.redoStepsCount=function(){_._communityMethod(`redoStepsCount`)},_.prototype._putInUndoStack=function(){},_.prototype._putInRedoStack=function(){},_===void 0&&(_={}),_.undoRedoUI=function(){},_.undoRedoUI.prototype.init=function(e){},_.undoRedoUI.prototype.refresh=function(){_._communityMethod(`undoRedoUI.refresh`)},_.undoRedoUI.prototype.on=function(e,t){return _._communityMethod(`undoRedoUI.on`),this},_.undoRedoUI.prototype.onChange=function(e){_._communityMethod(`undoRedoUI.onChange`)},_.miniMap={},_.miniMap.colors=[],_.miniMap.selectorBackgroundColor=``,_.miniMap.backgroundColor=``,_.miniMap.focusStroke=``,_.miniMap.opacity=0,_.miniMap.border=``,_.miniMap.width=0,_.miniMap.height=0,_.miniMap.padding=0,_.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},_.miniMap.draggable=!0,_.state={},_.state._buildStateNames=function(e){return{paramScale:e+`-scale`,paramX:e+`-x`,paramY:e+`-y`,paramExp:e+`-exp`,paramMin:e+`-min`,paramRoots:e+`-roots`,paramAdjustify:e+`-adjustify`}},_.state._put=function(e,t,n,r,i,a,o,s){},_.state._get=function(e,t,n,r){r(null)},_.state.clear=function(e){},_._search={},_._search.search=function(){_._communityMethod(`searchUI.search`)},_._search.addNodeToResult=function(){_._communityMethod(`searchUI.addNodeToResult`)},_._search.searchAndComputeScore=function(){_._communityMethod(`searchUI.searchAndComputeScore`)},_._search.searchIndexesOf=function(){_._communityMethod(`searchUI.searchIndexesOf`)},_.filterUI=function(){},_.filterUI.prototype.init=function(e){},_.filterUI.prototype.addFilterTag=function(e){},_.filterUI.prototype.show=function(e){_._communityMethod(`filterUI.show`)},_.filterUI.prototype.hide=function(){},_.filterUI.prototype._removeFilter=function(e){},_.filterUI.prototype.update=function(){},_.filterUI.prototype.on=function(e,t){_._communityMethod(`filterUI.on`)},_.filterUI.textFilterBy=``,_.filterUI.all=``,_.prototype.exportToPDFProfile=function(){_._communityMethod(`exportToPDFProfile`)},_.prototype.exportToVisio=function(){_._communityMethod(`exportToVisio`)},_.prototype.exportToPDF=function(){_._communityMethod(`exportToPDF`)},_.prototype.exportToPNG=function(){_._communityMethod(`exportToPNG`)},_.prototype.exportToSVG=function(){_._communityMethod(`exportToSVG`)},_.prototype.exportToPowerPoint=function(){_._communityMethod(`exportToPowerPoint`)},_.exportUI=function(){},_.exportUI.prototype.init=function(){},_.exportUI.prototype.show=function(e){_._communityMethod(`exportUI.show`)},_.exportUI.prototype.isVisible=function(){_._communityMethod(`exportUI.isVisible`)},_.exportUI.prototype.hide=function(){},_.exportUI.prototype.refresh=function(){_._communityMethod(`exportUI.refresh`)},_.exportUI.prototype.toggleLanscape=function(){_._communityMethod(`exportUI.toggleLanscape`)},_.exportUI.prototype.addPage=function(){_._communityMethod(`exportUI.addPage`)},_.exportUI.prototype.removePage=function(){_._communityMethod(`exportUI.removePage`)},_.exportUI.prototype.toggelePrintTreeOrProfile=function(){_._communityMethod(`exportUI.toggelePrintTreeOrProfile`)},_.exportUI.prototype.selectPage=function(e){_._communityMethod(`exportUI.selectPage`)};var v=_,y={camelToKebab:function(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()},kebabToCamel:function(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())},divToEmployees:function(e){let t=[],n=1;function r(e,i){let a=n++,o={id:a};i!==void 0&&(o.pid=i),Array.from(e.attributes).forEach(e=>{let t=e.name.replace(`data-`,``),n=y.kebabToCamel(t),r=e.value;n===`assistant`||n===`partner`?r===`true`&&(o.tags||=[],o.tags.push(n)):o[n]=r}),t.push(o),Array.from(e.children).forEach(e=>{r(e,a)})}return Array.from(e.children).forEach(e=>r(e)),t}},b=function({children:e,title:t,name:r,photo:i,assistant:a,partner:o,template:s,...c}){return(0,n.jsx)(`div`,{...Object.keys(c).reduce((e,t)=>{let n=y.camelToKebab(t);return e[`data-${n}`]=c[t],e},{}),"data-title":t,"data-name":r,"data-photo":i,"data-assistant":a,"data-partner":o,"data-template":s,children:e})},x=(0,t.forwardRef)((e,r)=>{let i=(0,t.useRef)(null),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(i.current&&!a.current){let t=y.divToEmployees(i.current),n=e?.data;t&&!n&&(n=t);let o={...e,nodes:n},s=new v(i.current,o);a.current=s,typeof r==`function`?r(s):r&&(r.current=s),e.onUpdateNode&&s.onUpdateNode(e.onUpdateNode),e.onUpdated&&s.onUpdated(e.onUpdated),e.onRemoveNode&&s.onRemoveNode(e.onRemoveNode),e.onAddNode&&s.onAddNode(e.onAddNode),e.onDrag&&s.onDrag(e.onDrag),e.onDrop&&s.onDrop(e.onDrop),e.onInit&&s.onInit(e.onInit),e.onRedraw&&s.onRedraw(e.onRedraw),e.onExpandCollapseButtonClick&&s.onExpandCollapseButtonClick(e.onExpandCollapseButtonClick),e.onExportStart&&s.onExportStart(e.onExportStart),e.onExportEnd&&s.onExportEnd(e.onExportEnd),e.onNodeClick&&s.onNodeClick(e.onNodeClick),e.onCanvasClick&&s.onCanvasClick(e.onCanvasClick),e.onAIToolCalls&&s.onAIToolCalls(e.onAIToolCalls),e.onNodeDoubleClick&&s.onNodeDoubleClick(e.onNodeDoubleClick)}},[]),(0,t.useEffect)(()=>{a.current&&e.data&&e.data.length>0&&a.current.load(e.data)},[e.data]),(0,n.jsx)(`div`,{ref:i,style:{width:`100%`,height:`100%`,...e?.style},children:e?.children})});e.Employee=b,e.OrgChartJS=v,e.OrgChartReact=x,e.Template=function({name:e,baseTemplateName:t,renderNode:r,renderPlus:i,renderMinus:a,renderNodeMenuButton:o,nodeWidth:s,nodeHeight:c,padding:l,treeListMaxHeight:u,editFormHeaderColor:d,rippleRadius:f,rippleColor:p}){if(!v.templates[e]){if(t||=`ana`,v.templates[e]=Object.assign({},v.templates[t]),s!=null&&v.templates[e].size){let t=[...v.templates[e].size];t[0]=s,v.templates[e].size=t}if(c!=null&&v.templates[e].size){let t=[...v.templates[e].size];t[1]=c,v.templates[e].size=t}l!=null&&(v.templates[e].padding=l),u!=null&&(v.templates[e].treeListMaxHeight=u),d!=null&&(v.templates[e].editFormHeaderColor=d),f!=null&&(v.templates[e].ripple||(v.templates[e].ripple={radius:0,color:`#ddd`}),v.templates[e].ripple.radius=f),p!=null&&(v.templates[e].ripple||(v.templates[e].ripple={radius:0,color:`#ddd`}),v.templates[e].ripple.color=p),r!=null&&(v.templates[e].node=function(e,t,i,a){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:r(e,t,i,a)}))}),i!=null&&(v.templates[e].plus=function(e,t,r,a){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:i(e,t,r,a)}))}),a!=null&&(v.templates[e].minus=function(e,t,r,i){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:a(e,t,r,i)}))}),o!=null&&(v.templates[e].nodeMenuButton=function(e,t,r,i){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:o(e,t,r,i)}))})}return null}});
|