1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9812],{8301:()=>{},8592:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71716),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=RegExp(i.source,"g");function a(t,e){var n,a,u,s,l,c=i.lastIndex=o.lastIndex=0,h=-1,f=[],d=[];for(t+="",e+="";(u=i.exec(t))&&(s=o.exec(e));)(l=s.index)>c&&(l=e.slice(c,l),f[h]?f[h]+=l:f[++h]=l),(u=u[0])===(s=s[0])?f[h]?f[h]+=s:f[++h]=s:(f[++h]=null,d.push({i:h,x:(0,r.A)(u,s)})),c=o.lastIndex;return c<e.length&&(l=e.slice(c),f[h]?f[h]+=l:f[++h]=l),f.length<2?d[0]?(n=d[0].x,function(t){return n(t)+""}):(a=e,function(){return a}):(e=d.length,function(t){for(var n,r=0;r<e;++r)f[(n=d[r]).i]=n.x(t);return f.join("")})}},8828:(t,e,n)=>{"use strict";t.exports=n(83654)},14806:(t,e,n)=>{"use strict";t.exports=n(30125)},23311:(t,e,n)=>{"use strict";n.d(e,{$E:()=>J,YI:()=>Z});let r=(()=>{let t=0;return()=>(t+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${t}`)})();function i(t){let e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n]);return e}let o=null;function a(t={}){return o||(o=t.includeStyleProperties?t.includeStyleProperties:i(window.getComputedStyle(document.documentElement)))}function u(t,e){let n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function s(t,e={}){return{width:e.width||function(t){let e=u(t,"border-left-width"),n=u(t,"border-right-width");return t.clientWidth+e+n}(t),height:e.height||function(t){let e=u(t,"border-top-width"),n=u(t,"border-bottom-width");return t.clientHeight+e+n}(t)}}function l(t){return new Promise((e,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function c(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function h(t,e,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(t),c(i)}let f=(t,e)=>{if(t instanceof e)return!0;let n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||f(n,e))};function d(t,e,n,i){let o=window.getComputedStyle(t,n),u=o.getPropertyValue("content");if(""===u||"none"===u)return;let s=r();try{e.className=`${e.className} ${s}`}catch(t){return}let l=document.createElement("style");l.appendChild(function(t,e,n,r){let i=`.${t}:${e}`,o=n.cssText?function(t){let e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}(n):a(r).map(t=>{let e=n.getPropertyValue(t),r=n.getPropertyPriority(t);return`${t}: ${e}${r?" !important":""};`}).join(" ");return document.createTextNode(`${i}{${o}}`)}(s,n,o,i)),e.appendChild(l)}let p="application/font-woff",y="image/jpeg",m={woff:p,woff2:p,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:y,jpeg:y,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function g(t){return m[(function(t){let e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""})(t).toLowerCase()]||""}function v(t){return -1!==t.search(/^(data:)/)}function x(t,e){return`data:${e};base64,${t}`}async function w(t,e,n){let r=await fetch(t,e);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((t,e)=>{let o=new FileReader;o.onerror=e,o.onloadend=()=>{try{t(n({res:r,result:o.result}))}catch(t){e(t)}},o.readAsDataURL(i)})}let _={};async function b(t,e,n){var r,i,o;let a,u,s=(r=t,i=e,o=n.includeQueryParams,u=r.replace(/\?.*/,""),o&&(u=r),/ttf|otf|eot|woff2?/i.test(u)&&(u=u.replace(/.*\//,"")),i?`[${i}]${u}`:u);if(null!=_[s])return _[s];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());try{let r=await w(t,n.fetchRequestInit,({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),n.split(/,/)[1]));a=x(r,e)}catch(r){a=n.imagePlaceholder||"";let e=`Failed to fetch resource: ${t}`;r&&(e="string"==typeof r?r:r.message),e&&console.warn(e)}return _[s]=a,a}async function S(t){let e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):l(e)}async function E(t,e){if(t.currentSrc){let e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.clientWidth,e.height=t.clientHeight,null==n||n.drawImage(t,0,0,e.width,e.height),l(e.toDataURL())}let n=t.poster,r=g(n);return l(await b(n,r,e))}async function M(t,e){var n;try{if(null==(n=null==t?void 0:t.contentDocument)?void 0:n.body)return await N(t.contentDocument.body,e,!0)}catch(t){}return t.cloneNode(!1)}async function A(t,e){return f(t,HTMLCanvasElement)?S(t):f(t,HTMLVideoElement)?E(t,e):f(t,HTMLIFrameElement)?M(t,e):t.cloneNode($(t))}let $=t=>null!=t.tagName&&"SVG"===t.tagName.toUpperCase();async function k(t,e,n){var r,o;
1if($(e))return e;let a=[];return 0===(a=null!=t.tagName&&"SLOT"===t.tagName.toUpperCase()&&t.assignedNodes?i(t.assignedNodes()):f(t,HTMLIFrameElement)&&(null==(r=t.contentDocument)?void 0:r.body)?i(t.contentDocument.body.childNodes):i((null!=(o=t.shadowRoot)?o:t).childNodes)).length||f(t,HTMLVideoElement)||await a.reduce((t,r)=>t.then(()=>N(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}async function z(t,e){let n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;let r={};for(let i=0;i<n.length;i++){let o=n[i].getAttribute("xlink:href");if(o){let n=t.querySelector(o),i=document.querySelector(o);n||!i||r[o]||(r[o]=await N(i,e,!0))}}let i=Object.values(r);if(i.length){let e="http://www.w3.org/1999/xhtml",n=document.createElementNS(e,"svg");n.setAttribute("xmlns",e),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";let r=document.createElementNS(e,"defs");n.appendChild(r);for(let t=0;t<i.length;t++)r.appendChild(i[t]);t.appendChild(n)}return t}async function N(t,e,n){return n||!e.filter||e.filter(t)?Promise.resolve(t).then(t=>A(t,e)).then(n=>k(t,n,e)).then(n=>(function(t,e,n){if(f(e,Element)&&(!function(t,e,n){let r=e.style;if(!r)return;let i=window.getComputedStyle(t);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):a(n).forEach(n=>{let o=i.getPropertyValue(n);if("font-size"===n&&o.endsWith("px")){let t=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${t}px`}f(t,HTMLIFrameElement)&&"display"===n&&"inline"===o&&(o="block"),"d"===n&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),r.setProperty(n,o,i.getPropertyPriority(n))})}(t,e,n),d(t,e,":before",n),d(t,e,":after",n),f(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),f(t,HTMLInputElement)&&e.setAttribute("value",t.value),f(t,HTMLSelectElement))){let n=Array.from(e.children).find(e=>t.value===e.getAttribute("value"));n&&n.setAttribute("selected","")}return e})(t,n,e)).then(t=>z(t,e)):null}let T=/url\((['"]?)([^'"]+?)\1\)/g,P=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,C=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function R(t,e,n,r,i){try{let o,a=n?function(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}(e,n):e,u=g(e);if(i){let t=await i(a);o=x(t,u)}else o=await b(a,u,r);return t.replace(function(t){let e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}(e),`$1${o}$3`)}catch(t){}return t}function I(t){return -1!==t.search(T)}async function H(t,e,n){if(!I(t))return t;let r=function(t,{preferredFontFormat:e}){return e?t.replace(C,t=>{for(;;){let[n,,r]=P.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}}):t}(t,n);return(function(t){let e=[];return t.replace(T,(t,n,r)=>(e.push(r),t)),e.filter(t=>!v(t))})(r).reduce((t,r)=>t.then(t=>R(t,r,e,n)),Promise.resolve(r))}async function L(t,e,n){var r;let i=null==(r=e.style)?void 0:r.getPropertyValue(t);if(i){let r=await H(i,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function O(t,e){await L("background",t,e)||await L("background-image",t,e),await L("mask",t,e)||await L("-webkit-mask",t,e)||await L("mask-image",t,e)||await L("-webkit-mask-image",t,e)}async function j(t,e){let n=f(t,HTMLImageElement);if(!(n&&!v(t.src))&&!(f(t,SVGImageElement)&&!v(t.href.baseVal)))return;let r=n?t.src:t.href.baseVal,i=await b(r,g(r),e);await new Promise((r,o)=>{t.onload=r,t.onerror=e.onImageErrorHandler?(...t)=>{try{r(e.onImageErrorHandler(...t))}catch(t){o(t)}}:o,t.decode&&(t.decode=r),"lazy"===t.loading&&(t.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}async function F(t,e){let n=i(t.childNodes).map(t=>B(t,e));await Promise.all(n).then(()=>t)}async function B(t,e){f(t,Element)&&(await O(t,e),await j(t,e),await F(t,e))}let D={};async function V(t){let e=D[t];if(null!=e)return e;let n=await fetch(t);return e={url:t,cssText:await n.text()},D[t]=e,e}async function q(t,e){let n=t.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),w(o,e.fetchRequestInit,({result:t})=>(n=n.replace(i,`url(${t})`),[i,t]))})).then(()=>n)}function X(t){if(null==t)return[];let e=[],n=t.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
1)","gi");for(;;){let t=r.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=i.exec(n);if(null===t){if(null===(t=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;e.push(t[0])}return e}async function Y(t,e){let n=[],r=[];return t.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((t,i)=>{if(t.type===CSSRule.IMPORT_RULE){let o=i+1,a=t.href,u=V(a).then(t=>q(t,e)).then(t=>X(t).forEach(t=>{try{n.insertRule(t,t.startsWith("@import")?o+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});r.push(u)}})}catch(o){let i=t.find(t=>null==t.href)||document.styleSheets[0];null!=n.href&&r.push(V(n.href).then(t=>q(t,e)).then(t=>X(t).forEach(t=>{i.insertRule(t,i.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(t.forEach(t=>{if("cssRules"in t)try{i(t.cssRules||[]).forEach(t=>{n.push(t)})}catch(e){console.error(`Error while reading CSS rules from ${t.href}`,e)}}),n))}async function U(t,e){if(null==t.ownerDocument)throw Error("Provided element is not within a Document");let n=i(t.ownerDocument.styleSheets);return(await Y(n,e)).filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>I(t.style.getPropertyValue("src")))}function W(t){return t.trim().replace(/["']/g,"")}async function K(t,e){let n=await U(t,e),r=function(t){let e=new Set;return!function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(t=>{e.add(W(t))}),Array.from(n.children).forEach(e=>{e instanceof HTMLElement&&t(e)})}(t),e}(t);return(await Promise.all(n.filter(t=>r.has(W(t.style.fontFamily))).map(t=>{let n=t.parentStyleSheet?t.parentStyleSheet.href:null;return H(t.cssText,n,e)}))).join("\n")}async function Q(t,e){let n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await K(t,e);if(n){let e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function Z(t,e={}){let{width:n,height:r}=s(t,e),i=await N(t,e,!0);return await Q(i,e),await B(i,e),!function(t,e){let{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);let r=e.style;null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]})}(i,e),await h(i,n,r)}async function G(t,e={}){let{width:n,height:r}=s(t,e),i=await Z(t,e),o=await l(i),a=document.createElement("canvas"),u=a.getContext("2d"),c=e.pixelRatio||function(){let t,e;try{e=process}catch(t){}let n=e&&e.env?e.env.devicePixelRatio:null;return n&&Number.isNaN(t=parseInt(n,10))&&(t=1),t||window.devicePixelRatio||1}(),h=e.canvasWidth||n,f=e.canvasHeight||r;return a.width=h*c,a.height=f*c,!e.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${h}`,a.style.height=`${f}`,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,a.width,a.height)),u.drawImage(o,0,0,a.width,a.height),a}async function J(t,e={}){return(await G(t,e)).toDataURL()}},23493:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=t=>()=>t},23718:(t,e,n)=>{"use strict";n.d(e,{h:()=>h,n:()=>l});var r=n(12115),i=n(8828);let o=t=>{let e,n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},e,i),n.forEach(n=>n(e,t))}},i=()=>e,o={setState:r,getState:i,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=e=t(r,i,o);return o},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:u}=i,s=t=>t;function l(t,e=s,n){let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r}let c=(t,e)=>{let n=(t=>t?o(t):o)(t),r=(t,r=e)=>l(n,t,r);return Object.assign(r,n),r},h=(t,e)=>t?c(t,e):c},23767:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u});var r=n(73690);function i(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var o=n(23493);function a(t,e){var n=e-t;return n?function(e){return t+e*n}:(0,o.A)(isNaN(t)?e:t)}let u=function t(e){var n,i=1==(n=+e)?a:function(t,e){var r,i,a;
1return e-t?(r=t,i=e,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(t){return Math.pow(r+t*i,a)}):(0,o.A)(isNaN(t)?e:t)};function u(t,e){var n=i((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),o=i(t.g,e.g),u=i(t.b,e.b),s=a(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=u(e),t.opacity=s(e),t+""}}return u.gamma=t,u}(1);function s(t){return function(e){var n,i,o=e.length,a=Array(o),u=Array(o),s=Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(e[n]),a[n]=i.r||0,u[n]=i.g||0,s[n]=i.b||0;return a=t(a),u=t(u),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=s(t),i+""}}}s(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],u=r>0?t[r-1]:2*o-a,s=r<e-1?t[r+2]:2*a-o;return i((n-r/e)*e,u,o,a,s)}}),s(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],u=t[(r+1)%e],s=t[(r+2)%e];return i((n-r/e)*e,o,a,u,s)}})},30125:(t,e,n)=>{"use strict";var r=n(12115),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,a=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,c=r[1];return u(function(){i.value=n,i.getSnapshot=e,l(i)&&c({inst:i})},[t,n,e]),a(function(){return l(i)&&c({inst:i}),t(function(){l(i)&&c({inst:i})})},[t]),s(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43621:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)""!==(i=t(e[r]))&&(n+=(n&&" ")+i);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}})},45688:(t,e,n)=>{"use strict";var r=n(95704);n(86340);var i=n(12115),o=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(i),a=void 0!==r&&r.env&&!0,u=function(t){return"[object String]"===Object.prototype.toString.call(t)},s=function(){function t(t){var e=void 0===t?{}:t,n=e.name,r=void 0===n?"stylesheet":n,i=e.optimizeForSpeed,o=void 0===i?a:i;l(u(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",l("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var s="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=s?s.getAttribute("content"):null}var e,n=t.prototype;return n.setOptimizeForSpeed=function(t){l("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var t=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,n){return"number"==typeof n?t._serverSheet.cssRules[n]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),n},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},n.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(t,e){if(l(u(t),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;
1if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof e&&(e=n.cssRules.length);try{n.insertRule(t,e)}catch(e){return a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,r))}return this._rulesCount++},n.replaceRule=function(t,e){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!n.cssRules[t])return t;n.deleteRule(t);try{n.insertRule(e,t)}catch(r){a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,t)}}else{var r=this._tags[t];l(r,"old rule at index `"+t+"` not found"),r.textContent=e}return t},n.deleteRule=function(t){if("undefined"==typeof window)return void this._serverSheet.deleteRule(t);if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];l(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var t=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(e,n){return n?e=e.concat(Array.prototype.map.call(t.getSheetForTag(n).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},n.makeStyleTag=function(t,e,n){e&&l(u(e),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+t,""),e&&r.appendChild(document.createTextNode(e));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},e=[{key:"length",get:function(){return this._rulesCount}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}();function l(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var c=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0},h={};function f(t,e){if(!e)return"jsx-"+t;var n=String(e),r=t+n;return h[r]||(h[r]="jsx-"+c(t+"-"+n)),h[r]}function d(t,e){"undefined"==typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var n=t+e;return h[n]||(h[n]=e.replace(/__jsx-style-dynamic-selector/g,t)),h[n]}var p=function(){function t(t){var e=void 0===t?{}:t,n=e.styleSheet,r=void 0===n?null:n,i=e.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new s({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var n=this.getIdAndRules(t),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[r]=o,this._instancesCounts[r]=1},e.remove=function(t){var e=this,n=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(t){return e._sheet.deleteRule(t)}),delete this._indices[n]),delete this._instancesCounts[n]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],n=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return n[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,n;return e=this.cssRules(),void 0===(n=t)&&(n={}),e.map(function(t){var e=t[0],r=t[1];return o.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},e.getIdAndRules=function(t){var e=t.children,n=t.dynamic,r=t.id;if(n){var i=f(r,n);return{styleId:i,rules:Array.isArray(e)?e.map(function(t){return d(i,t)}):[d(i,e)]}}return{styleId:f(r),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),y=i.createContext(null);y.displayName="StyleSheetContext";var m=o.default.useInsertionEffect||o.default.useLayoutEffect,g="undefined"!=typeof window?new p:void 0;function v(t){var e=g||i.useContext(y);return e&&("undefined"==typeof window?e.add(t):m(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)])),null}v.dynamic=function(t){return t.map(function(t){return f(t[0],t[1])}).join(" ")},e.style=v},46753:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(e,n){var s,l,c=typeof n;return null==n||"boolean"===c?(0,u.A)(n):("number"===c?o.A:"string"===c?(l=(0,r.Ay)(n))?(n=l,i.Ay):a.A:n instanceof r.Ay?i.Ay:n instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(s=n)||s instanceof DataView?Array.isArray(n)?function(e,n){var r,i=n?n.length:0,o=e?Math.min(i,e.length):0,a=Array(o),u=Array(i);for(r=0;r<o;++r)a[r]=t(e[r],n[r]);for(;r<i;++r)u[r]=n[r];return function(t){for(r=0;r<o;++r)u[r]=a[r](t);return u}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(e,n){var r,i={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)r in e?i[r]=t(e[r],n[r]):o[r]=n[r];return function(t){for(r in i)o[r]=i[r](t);return o}}:o.A:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}})(e,n)}});var r=n(73690),i=n(23767),o=n(71716),a=n(8592),u=n(23493)},49799:(t,e,n)=>{"use strict";n.d(e,{Do:()=>u,WZ:()=>i,TG:()=>s,ny:()=>o,yX:()=>l,xN:()=>c,Qc:()=>a,I$:()=>nL,aQ:()=>nD,di:()=>nV,kO:()=>nZ,rN:()=>nl,bi:()=>n$,_s:()=>e0,aE:()=>e$,Hm:()=>n_,tM:()=>ey,KE:()=>eV,tn:()=>ep,xc:()=>ef,us:()=>eJ,IO:()=>eA,e_:()=>ne,Fp:()=>ni,Mi:()=>ej,HF:()=>ev,Eo:()=>e3,b5:()=>nm,Tq:()=>
1ek,qX:()=>na,q1:()=>e7,M_:()=>nv,oj:()=>e8,aZ:()=>eE,aW:()=>nw,uD:()=>eZ,Jo:()=>eS,U$:()=>eM,X6:()=>eF,oN:()=>np,ah:()=>nc,R4:()=>eW,r8:()=>nN,ZO:()=>ed,bK:()=>em,b$:()=>ex,uj:()=>nu,v5:()=>e6,Ue:()=>eK,Er:()=>e9,oB:()=>ew,kf:()=>eD,mW:()=>eB,Q6:()=>e2,QE:()=>eG,kM:()=>eL,No:()=>nP,Ff:()=>eX,zj:()=>eY,s_:()=>eq,vS:()=>nM,qn:()=>nR,uL:()=>nT,YN:()=>e1});var r,i,o,a,u,s,l,c,h={value:()=>{}};function f(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new d(r)}function d(t){this._=t}function p(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=h,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function y(){}function m(t){return null==t?y:function(){return this.querySelector(t)}}function g(){return[]}function v(t){return null==t?g:function(){return this.querySelectorAll(t)}}function x(t){return function(){return this.matches(t)}}function w(t){return function(e){return e.matches(t)}}d.prototype=f.prototype={constructor:d,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<a;)if(n=(t=i[o]).type)r[n]=p(r[n],t.name,e);else if(null==e)for(n in r)r[n]=p(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new d(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var _=Array.prototype.find;function b(){return this.firstElementChild}var S=Array.prototype.filter;function E(){return Array.from(this.children)}function M(t){return Array(t.length)}function A(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function $(t,e,n,r,i,o){for(var a,u=0,s=e.length,l=o.length;u<l;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new A(t,o[u]);for(;u<s;++u)(a=e[u])&&(i[u]=a)}function k(t,e,n,r,i,o,a){var u,s,l,c=new Map,h=e.length,f=o.length,d=Array(h);for(u=0;u<h;++u)(s=e[u])&&(d[u]=l=a.call(s,s.__data__,u,e)+"",c.has(l)?i[u]=s:c.set(l,s));for(u=0;u<f;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(r[u]=s,s.__data__=o[u],c.delete(l)):n[u]=new A(t,o[u]);for(u=0;u<h;++u)(s=e[u])&&c.get(d[u])===s&&(i[u]=s)}function z(t){return t.__data__}function N(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}A.prototype={constructor:A,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var T="http://www.w3.org/1999/xhtml";let P={svg:"http://www.w3.org/2000/svg",xhtml:T,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),P.hasOwnProperty(e)?{space:P[e],local:t}:t}function R(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function I(t,e){return t.style.getPropertyValue(e)||R(t).getComputedStyle(t,null).getPropertyValue(e)}function H(t){return t.trim().split(/^|\s+/)}function L(t){return t.classList||new O(t)}function O(t){this._node=t,this._names=H(t.getAttribute("class")||"")}function j(t,e){for(var n=L(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function F(t,e){for(var n=L(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function B(){this.textContent=""}function D(){this.innerHTML=""}function V(){this.nextSibling&&this.parentNode.appendChild(this)}function q(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function X(t){var e=C(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===T&&e.documentElement.namespaceURI===T?e.createElement(t):e.createElementNS(n,t)}})(e)}function Y(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function W(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function K(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Q(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Z(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function G(t,e,n){var r=R(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dis
1patchEvent(i)}O.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var J=[null];function tt(t,e){this._groups=t,this._parents=e}function te(){return new tt([[document.documentElement]],J)}function tn(t){return"string"==typeof t?new tt([[document.querySelector(t)]],[document.documentElement]):new tt([[t]],J)}function tr(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}tt.prototype=te.prototype={constructor:tt,select:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a,u=e[i],s=u.length,l=r[i]=Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new tt(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=v(t);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var u,s=n[a],l=s.length,c=0;c<l;++c)(u=s[c])&&(i.push(t.call(u,u.__data__,c,s)),o.push(u));return new tt(i,o)},selectChild:function(t){var e;return this.select(null==t?b:(e="function"==typeof t?t:w(t),function(){return _.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?E:(e="function"==typeof t?t:w(t),function(){return S.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=x(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new tt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,z);var n=e?k:$,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var o=i.length,a=Array(o),u=Array(o),s=Array(o),l=0;l<o;++l){var c=r[l],h=i[l],f=h.length,d="object"==typeof(g=t.call(c,c&&c.__data__,l,r))&&"length"in g?g:Array.from(g),p=d.length,y=u[l]=Array(p),m=a[l]=Array(p);n(c,h,y,m,s[l]=Array(f),d,e);for(var g,v,x,w,_=0,b=0;_<p;++_)if(x=y[_]){for(_>=b&&(b=_+1);!(w=m[b])&&++b<p;);x._next=w||null}}return(a=new tt(a,r))._enter=u,a._exit=s,a},enter:function(){return new tt(this._enter||this._groups.map(M),this._parents)},exit:function(){return new tt(this._exit||this._groups.map(M),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=Array(i),s=0;s<a;++s)for(var l,c=n[s],h=r[s],f=c.length,d=u[s]=Array(f),p=0;p<f;++p)(l=c[p]||h[p])&&(d[p]=l);for(;s<i;++s)u[s]=n[s];return new tt(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=N);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,l=i[o]=Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(e)}return new tt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=C(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):I(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=H(t+"");
1if(arguments.length<2){for(var r=L(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?j:F)(this,t)}}:e?function(t){return function(){j(this,t)}}:function(t){return function(){F(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?B:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?D:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(V)},lower:function(){return this.each(q)},append:function(t){var e="function"==typeof t?t:X(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:X(t),r=null==e?Y:"function"==typeof e?e:m(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(U)},clone:function(t){return this.select(t?K:W)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var u=this.node().__on;if(u){for(var s,l=0,c=u.length;l<c;++l)for(r=0,s=u[l];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}return}for(r=0,u=e?Z:Q;r<a;++r)this.each(u(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return G(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return G(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};let ti={passive:!1},to={capture:!0,passive:!1};function ta(t){t.stopImmediatePropagation()}function tu(t){t.preventDefault(),t.stopImmediatePropagation()}function ts(t){var e=t.document.documentElement,n=tn(t).on("dragstart.drag",tu,to);"onselectstart"in e?n.on("selectstart.drag",tu,to):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function tl(t,e){var n=t.document.documentElement,r=tn(t).on("dragstart.drag",null);e&&(r.on("click.drag",tu,to),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let tc=t=>()=>t;function th(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:s,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}function tf(t){return!t.ctrlKey&&!t.button}function td(){return this.parentNode}function tp(t,e){return null==e?{x:t.x,y:t.y}:e}function ty(){return navigator.maxTouchPoints||"ontouchstart"in this}function tm(t){return((t=Math.exp(t))+1/t)/2}th.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};let tg=function t(e,n,r){function i(t,i){var o,a,u=t[0],s=t[1],l=t[2],c=i[0],h=i[1],f=i[2],d=c-u,p=h-s,y=d*d+p*p;if(y<1e-12)a=Math.log(f/l)/e,o=function(t){return[u+t*d,s+t*p,l*Math.exp(e*t*a)]};else{var m=Math.sqrt(y),g=(f*f-l*l+r*y)/(2*l*n*m),v=(f*f-l*l-r*y)/(2*f*n*m),x=Math.log(Math.sqrt(g*g+1)-g);a=(Math.log(Math.sqrt(v*v+1)-v)-x)/e,o=function(t){var r,i,o=t*a,c=tm(x),h=l/(n*m)*(c*(((r=Math.exp(2*(r=e*o+x)))-1)/(r+1))-((i=Math.exp(i=x))-1/i)/2);return[u+h*d,s+h*p,l*c/tm(e*o+x)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);var tv,tx,tw=0,t_=0,tb=0,tS=0,tE=0,tM=0,tA="object"==typeof performance&&performance.now?performance:Date,t$="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tk(){return tE||(t$(tz),tE=tA.now()+tM)}function tz(){tE=0}function tN(){this._call=this._time=this._next=null}function tT(t,e,n){var r=new tN;return r.restart(t,e,n),r}function tP(){tE=(tS=tA.now())+tM,tw=t_=0;try{tk(),++tw;for(var t,e=tv;e;)(t=tE-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tw}finally{tw=0,function(){for(var t,e,n=tv,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tv=e);tx=t,tR(r)}(),tE=0}}function tC(){var t=tA.now(),e=t-tS;e>1e3&&(tM-=e,tS=t)}function tR(t){!tw&&(t_&&(t_=clearTimeout(t_)),t-tE>24?(t<1/0&&(t_=setTimeout(tP,t-tA.now()-tM)),tb&&(tb=clearInterval(tb))):(tb||(tS=tA.now(),tb=setInterval(tC,1e3)),tw=1,t$(tP)))}function tI(t,e,n){var r=new tN;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tN.prototype=tT.prototype={constructor:tN,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tk():+n)+(null==e?0:+e),this._next||tx===this||(tx?tx._next=this:tv=this,tx=this),this._call=t,this._time=n,tR()},stop:function(){this._call&&(this._call=null,this._time=1/0,tR())}};var tH=f("start","end","cancel","interrupt"),tL=[];function tO(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(s){var l,c,h,f;if(1!==n.state)return u();for(l in i)if((f=i[l]).name===n.name){if(3===f.state)return tI(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(tI(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(l=0,n.state=3,r=Array(h=n.tween.length),c=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1
1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=tT(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:tH,tween:tL,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tj(t,e){var n=tB(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tF(t,e){var n=tB(t,e);if(n.state>3)throw Error("too late; already running");return n}function tB(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tD(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}a&&delete t.__transition}}var tV=n(71716),tq=180/Math.PI,tX={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tY(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*tq,skewX:Math.atan(s)*tq,scaleX:a,scaleY:u}}function tU(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u,s,l,c,h=[],f=[];return o=t(o),a=t(a),!function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:(0,tV.A)(t,i)},{i:s-2,x:(0,tV.A)(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,h,f),u=o.rotate,s=a.rotate,u!==s?(u-s>180?s+=360:s-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:(0,tV.A)(u,s)})):s&&h.push(i(h)+"rotate("+s+r),l=o.skewX,c=a.skewX,l!==c?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:(0,tV.A)(l,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,tV.A)(t,n)},{i:u-2,x:(0,tV.A)(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,h,f),o=a=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var tW=tU(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tX:tY(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tK=tU(function(t){return null==t?tX:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?tY((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tX},", ",")",")");function tQ(t,e,n){var r=t._id;return t.each(function(){var t=tF(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tB(t,r).value[e]}}var tZ=n(73690),tG=n(23767),tJ=n(8592);function t0(t,e){var n;return("number"==typeof e?tV.A:e instanceof tZ.Ay?tG.Ay:(n=(0,tZ.Ay)(e))?(e=n,tG.Ay):tJ.A)(t,e)}var t1=te.prototype.constructor;function t2(t){return function(){this.style.removeProperty(t)}}var t5=0;function t3(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var t8=te.prototype;t3.prototype=(function(t){return te().transition(t)}).prototype={constructor:t3,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=m(t));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,h=o[a]=Array(c),f=0;f<c;++f)(u=l[f])&&(s=t.call(u,u.__data__,f,l))&&("__data__"in u&&(s.__data__=u.__data__),h[f]=s,tO(h[f],e,n,f,h,tB(u,n)));return new t3(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=v(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,h=0;h<c;++h)if(s=l[h]){for(var f,d=t.call(s,s.__data__,h,l),p=tB(s,n),y=0,m=d.length;y<m;++y)(f=d[y])&&tO(f,e,n,y,d,p);o.push(d),a.push(s)}return new t3(o,a,e,n)},selectChild:t8.selectChild,selectChildren:t8.selectChildren,filter:function(t){"function"!=typeof t&&(t=x(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new t3(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=Array(r),u=0;u<o;++u)for(var s,l=e[u],c=n[u],h=l.length,f=a[u]=Array(h),d=0;d<h;++d)(s=l[d]||c[d])&&(f[d]=s);for(;u<r;++u)a[u]=e[u];return new t3(a,this._parents,this._name,this._id)},selection:function(){return new t1(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++t5,r=this._groups,i=r.length,o=0;o<i;
1++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=tB(a,e);tO(a,t,n,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new t3(r,this._parents,t,n)},call:t8.call,nodes:t8.nodes,node:t8.node,size:t8.size,empty:t8.empty,each:t8.each,on:function(t,e){var n,r,i,o,a,u,s=this._id;return arguments.length<2?tB(this.node(),s).on.on(t):this.each((n=s,r=t,i=e,u=(r+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tj:tF,function(){var t=u(this,n),e=t.on;e!==o&&(a=(o=e).copy()).on(r,i),t.on=a}))},attr:function(t,e){var n=C(t),r="transform"===n?tK:t0;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var a,u,s=n(this);return null==s?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}:function(t,e,n){var r,i,o;return function(){var a,u,s=n(this);return null==s?void this.removeAttribute(t):(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}})(n,r,tQ(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}:function(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=C(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,o,a,u,s,l,c,h,f,d,p,y,m,g,v,x,w,_,b,S,E="transform"==(t+="")?tW:t0;return null==e?this.styleTween(t,(r=t,function(){var t=I(this,r),e=(this.style.removeProperty(r),I(this,r));return t===e?null:t===i&&e===o?a:a=E(i=t,o=e)})).on("end.style."+t,t2(t)):"function"==typeof e?this.styleTween(t,(u=t,s=tQ(this,"style."+t,e),function(){var t=I(this,u),e=s(this),n=e+"";return null==e&&(this.style.removeProperty(u),n=e=I(this,u)),t===n?null:t===l&&n===c?h:(c=n,h=E(l=t,e))})).each((f=this._id,x="end."+(v="style."+(d=t)),function(){var t=tF(this,f),e=t.on,n=null==t.value[v]?g||(g=t2(d)):void 0;(e!==p||m!==n)&&(y=(p=e).copy()).on(x,m=n),t.on=y})):this.styleTween(t,(w=t,S=e+"",function(){var t=I(this,w);return t===S?null:t===_?b:b=E(_=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=tQ(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=tB(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=tF(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=tF(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,l=i.length;s<l;++s)if(i[s].name===e){i[s]=u;break}s===l&&i.push(u)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tj(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tj(this,t).delay=e}})(e,t)):tB(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tF(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tF(this,t).duration=e}})(e,t)):tB(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tF(this,t).ease=e}}(e,t)):tB(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tF(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var u={value:a},s={value:function(){0==--i&&o()}};n.each(function(){var n=tF(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e}),0===i&&o()})},[Symbol.iterator]:t8[Symbol.iterator]};var t4={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};te.prototype.interrupt=function(t){return this.each(function(){tD(this,t)})},te.prototype.transition=function(t){var e,n;t instanceof t3?(e=t._id,t=t._name):(e=++t5,(n=t4).time=tk(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;
vendor: 8,220 bytes, line 1
1++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&tO(a,t,e,l,u,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(a,e));return new t3(r,this._parents,t,e)};let t6=t=>()=>t;function t9(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function t7(t,e,n){this.k=t,this.x=e,this.y=n}t7.prototype={constructor:t7,scale:function(t){return 1===t?this:new t7(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new t7(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var et=new t7(1,0,0);function ee(t){for(;!t.__zoom;)if(!(t=t.parentNode))return et;return t.__zoom}function en(t){t.stopImmediatePropagation()}function er(t){t.preventDefault(),t.stopImmediatePropagation()}function ei(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eo(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function ea(){return this.__zoom||et}function eu(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function es(){return navigator.maxTouchPoints||"ontouchstart"in this}function el(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function ec(){var t,e,n,r=ei,i=eo,o=el,a=eu,u=es,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,h=tg,d=f("start","zoom","end"),p=0,y=10;function m(t){t.property("__zoom",ea).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",M).filter(u).on("touchstart.zoom",A).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new t7(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new t7(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n,r){t.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,o=_(this,t).event(r),a=i.apply(this,t),u=null==n?x(a):"function"==typeof n?n.apply(this,t):n,s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=this.__zoom,c="function"==typeof e?e.apply(this,t):e,f=h(l.invert(u).concat(s/l.k),c.invert(u).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=s/e[2];t=new t7(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}})}function _(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function S(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,u=Math.max(s[0],Math.min(s[1],i.k*Math.pow(2,a.apply(this,arguments)))),c=tr(t);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[c,i.invert(c)],tD(this),n.start()}er(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(v(g(i,u),n.mouse[0],n.mouse[1]),n.extent,l))}}function E(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=_(this,e,!0).event(t),u=tn(t.view).on("mousemove.zoom",function(t){if(er(t),!a.moved){var e=t.clientX-c,n=t.clientY-h;a.moved=e*e+n*n>p}a.event(t).zoom("mouse",o(v(a.that.__zoom,a.mouse[0]=tr(t,i),a.mouse[1]),a.extent,l))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),tl(t.view,a.moved),er(t),a.event(t).end()},!0),s=tr(t,i),c=t.clientX,h=t.clientY;ts(t.view),en(t),a.mouse=[s,this.__zoom.invert(s)],tD(this),a.start()}}function M(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=tr(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),s=n.k*(t.shiftKey?.5:2),h=o(v(g(n,s),a,u),i.apply(this,e),l);er(t),c>0?tn(this).transition().duration(c).call(w,h,a,t):tn(this).call(m.transform,h,a,t)}}function A(n,...i){if(r.apply(this,arguments)){var o,a,u,s,l=n.touches,c=l.length,h=_(this,i,n.changedTouches.length===c).event(n);for(en(n),a=0;a<c;++a)s=[s=tr(u=l[a],this),this.__zoom.invert(s),u.identifier],h.touch0?h.touch1||h.touch0[2]===s[2]||(h.touch1=s,h.taps=0):(h.touch0=s,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=s[0],t=setTimeout(function(){t=null},500)),tD(this),h.start())}}function $(t,...e){if(this.__zooming){var n,r,i,a,u=_(this,e).event(t),s=t.changedTouches,c=s.length;for(er(t),n=0;n<c;++n)i=tr(r=s[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var h=u.touch0[0],f=u.touch0[1],d=u.touch1[0],p=u.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,m=(m=p[0]-f[0])*m+(m=p[1]-f[1])*m;r=g(r,Math.sqrt(y/m)),i=[(h[0]+d[0])/2,(h[1]+d[1])/2],a=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(v(r,i,a),u.extent,l))}}function k(t,...r){if(this.__zooming){var i,o,a=_(this,r).event(t),u=t.changedTouches,s=u.length;for(en(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<s;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=tr(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<y)){var l=tn(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return m.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",ea),t!==i?w(t,e,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},m.scaleBy=function(t,e,n,r){m.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},m.scaleTo=function(t,e,n,r){m.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return o(v(g(r,s),a,u),t,l)},n,r)},m.translateBy=function(t,e,n,r){m.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)},null,r)},m.translateTo=function(t,e,n,r,a){m.transform(t,function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?x(t):"function"==typeof r?r.apply(this,arguments):r;return o(et.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)},r,a)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit
1("end")),this},emit:function(t){var e=tn(this.that).datum();d.call(t,this.that,new t9(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:d}),e)}},m.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:t6(+t),m):a},m.filter=function(t){return arguments.length?(r="function"==typeof t?t:t6(!!t),m):r},m.touchable=function(t){return arguments.length?(u="function"==typeof t?t:t6(!!t),m):u},m.extent=function(t){return arguments.length?(i="function"==typeof t?t:t6([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):i},m.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],m):[s[0],s[1]]},m.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],m):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},m.constrain=function(t){return arguments.length?(o=t,m):o},m.duration=function(t){return arguments.length?(c=+t,m):c},m.interpolate=function(t){return arguments.length?(h=t,m):h},m.on=function(){var t=d.on.apply(d,arguments);return t===d?m:t},m.clickDistance=function(t){return arguments.length?(p=(t*=1)*t,m):Math.sqrt(p)},m.tapDistance=function(t){return arguments.length?(y=+t,m):y},m}ee.prototype=t7.prototype;var eh=n(46753);let ef={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},ed=[[-1/0,-1/0],[1/0,1/0]],ep=["Enter"," ","Escape"],ey={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};!function(t){t.Strict="strict",t.Loose="loose"}(i||(i={})),function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"}(o||(o={})),function(t){t.Partial="partial",t.Full="full"}(a||(a={}));let em={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};
1!function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"}(u||(u={})),function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"}(s||(s={})),function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"}(l||(l={}));let eg={[l.Left]:l.Right,[l.Right]:l.Left,[l.Top]:l.Bottom,[l.Bottom]:l.Top};function ev(t){return null===t?null:t?"valid":"invalid"}let ex=t=>"id"in t&&"source"in t&&"target"in t,ew=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),e_=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),eb=(t,e=[0,0])=>{let{width:n,height:r}=eZ(t),i=t.origin??e,o=n*i[0],a=r*i[1];return{x:t.position.x-o,y:t.position.y-a}},eS=(t,e={nodeOrigin:[0,0]})=>0===t.length?{x:0,y:0,width:0,height:0}:eH(t.reduce((t,n)=>{let r="string"==typeof n,i=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(i=r?e.nodeLookup.get(n):e_(n)?n:e.nodeLookup.get(n.id)),eR(t,i?eO(i,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),eE=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(t=>{(void 0===e.filter||e.filter(t))&&(n=eR(n,eO(t)),r=!0)}),r?eH(n):{x:0,y:0,width:0,height:0}},eM=(t,e,[n,r,i]=[0,0,1],o=!1,a=!1)=>{let u={...eX(e,[n,r,i]),width:e.width/i,height:e.height/i},s=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(a&&!n||r)continue;let i=t.width??e.width??e.initialWidth??null,l=t.height??e.height??e.initialHeight??null,c=eF(u,eL(e)),h=(i??0)*(l??0),f=o&&c>0;(!e.internals.handleBounds||f||c>=h||e.dragging)&&s.push(e)}return s};
1async function eA({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:o},a){if(0===t.size)return Promise.resolve(!0);let u=eW(eE(function(t,e){let n=new Map,r=e?.nodes?new Set(e.nodes.map(t=>t.id)):null;return t.forEach(t=>{t.measured.width&&t.measured.height&&(e?.includeHiddenNodes||!t.hidden)&&(!r||r.has(t.id))&&n.set(t.id,t)}),n}(t,a)),e,n,a?.minZoom??i,a?.maxZoom??o,a?.padding??.1);return await r.setViewport(u,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),Promise.resolve(!0)}function e$({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let a=n.get(t),u=a.parentId?n.get(a.parentId):void 0,{x:s,y:l}=u?u.internals.positionAbsolute:{x:0,y:0},c=a.origin??r,h=a.extent||i;if("parent"!==a.extent||a.expandParent)u&&eQ(a.extent)&&(h=[[a.extent[0][0]+s,a.extent[0][1]+l],[a.extent[1][0]+s,a.extent[1][1]+l]]);else if(u){let t=u.measured.width,e=u.measured.height;t&&e&&(h=[[s,l],[s+t,l+e]])}else o?.("005",ef.error005());let f=eQ(h)?eN(e,h,a.measured):e;return(void 0===a.measured.width||void 0===a.measured.height)&&o?.("015",ef.error015()),{position:{x:f.x-s+(a.measured.width??0)*c[0],y:f.y-l+(a.measured.height??0)*c[1]},positionAbsolute:f}}async function ek({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){let o=new Set(t.map(t=>t.id)),a=[];for(let t of n){if(!1===t.deletable)continue;let e=o.has(t.id),n=!e&&t.parentId&&a.find(e=>e.id===t.parentId);(e||n)&&a.push(t)}let u=new Set(e.map(t=>t.id)),s=r.filter(t=>!1!==t.deletable),l=((t,e)=>{let n=new Set;return t.forEach(t=>{n.add(t.id)}),e.filter(t=>n.has(t.source)||n.has(t.target))})(a,s);for(let t of s)u.has(t.id)&&!l.find(e=>e.id===t.id)&&l.push(t);if(!i)return{edges:l,nodes:a};let c=await i({nodes:a,edges:l});return"boolean"==typeof c?c?{edges:l,nodes:a}:{edges:[],nodes:[]}:c}let ez=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),eN=(t={x:0,y:0},e,n)=>({x:ez(t.x,e[0][0],e[1][0]-(n?.width??0)),y:ez(t.y,e[0][1],e[1][1]-(n?.height??0))});function eT(t,e,n){let{width:r,height:i}=eZ(n),{x:o,y:a}=n.internals.positionAbsolute;return eN(t,[[o,a],[o+r,a+i]],e)}let eP=(t,e,n)=>t<e?ez(Math.abs(t-e),1,e)/e:t>n?-ez(Math.abs(t-n),1,e)/e:0,eC=(t,e,n=15,r=40)=>[eP(t.x,r,e.width-r)*n,eP(t.y,r,e.height-r)*n],eR=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),eI=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),eH=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),eL=(t,e=[0,0])=>{let{x:n,y:r}=e_(t)?t.internals.positionAbsolute:eb(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},eO=(t,e=[0,0])=>{let{x:n,y:r}=e_(t)?t.internals.positionAbsolute:eb(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},ej=(t,e)=>eH(eR(eI(t),eI(e))),eF=(t,e)=>Math.ceil(Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y))),eB=t=>eD(t.width)&&eD(t.height)&&eD(t.x)&&eD(t.y),eD=t=>!isNaN(t)&&isFinite(t),eV=(t,e)=>{},eq=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),eX=({x:t,y:e},[n,r,i],o=!1,a=[1,1])=>{let u={x:(t-n)/i,y:(e-r)/i};return o?eq(u,a):u},eY=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r});function eU(t,e){if("number"==typeof t)return Math.floor((e-e/(1+t))*.5);if("string"==typeof t&&t.endsWith("px")){let e=parseFloat(t);if(!Number.isNaN(e))return Math.floor(e)}if("string"==typeof t&&t.endsWith("%")){let n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`[React Flow] The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let eW=(t,e,n,r,i,o)=>{let a=function(t,e,n){if("string"==typeof t||"number"==typeof t){let r=eU(t,n),i=eU(t,e);return{top:r,right:i,bottom:r,left:i,x:2*i,y:2*r}}if("object"==typeof t){let r=eU(t.top??t.y??0,n),i=eU(t.bottom??t.y??0,n),o=eU(t.left??t.x??0,e),a=eU(t.right??t.x??0,e);return{top:r,right:a,bottom:i,left:o,x:o+a,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,e,n),u=ez(Math.min((e-a.x)/t.width,(n-a.y)/t.height),r,i),s=t.x+t.width/2,l=t.y+t.height/2,c=e/2-s*u,h=n/2-l*u,f=function(t,e,n,r,i,o){let{x:a,y:u}=eY(t,[e,n,r]),{x:s,y:l}=eY({x:t.x+t.width,y:t.y+t.height},[e,n,r]);return{left:Math.floor(a),top:Math.floor(u),right:Math.floor(i-s),bottom:Math.floor(o-l)}}(t,c,h,u,e,n),d={left:Math.min(f.left-a.left,0),top:Math.min(f.top-a.top,0),right:Math.min(f.right-a.right,0),bottom:Math.min(f.bottom-a.bottom,0)};return{x:c-d.left+d.right,y:h-d.top+d.bottom,zoom:u}},eK=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function eQ(t){return null!=t&&"parent"!==t}function eZ(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function eG(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function eJ(t,e={width:0,height:0},n,r,i){let o={...t},a=r.get(n);if(a){let t=a.origin||i;o.x+=a.internals.positionAbsolute.x-(e.width??0)*t[0],o.y+=a.internals.positionAbsolute.y-(e.height??0)*t[1]}return o}function e0(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function e1(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function e2(t){return{...ey,...t||{}}}
1function e5(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:a}=e7(t),u=eX({x:o-(i?.left??0),y:a-(i?.top??0)},r),{x:s,y:l}=n?eq(u,e):u;return{xSnapped:s,ySnapped:l,...u}}let e3=t=>({width:t.offsetWidth,height:t.offsetHeight}),e8=t=>t?.getRootNode?.()||window?.document,e4=["INPUT","SELECT","TEXTAREA"];function e6(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(e4.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let e9=t=>"clientX"in t,e7=(t,e)=>{let n=e9(t),r=n?t.clientX:t.touches?.[0].clientX,i=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:i-(e?.top??0)}},nt=(t,e,n,r,i)=>{let o=e.querySelectorAll(`.${t}`);return o&&o.length?Array.from(o).map(e=>{let o=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:i,position:e.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...e3(e)}}):null};function ne({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:a,targetControlY:u}){let s=.125*t+.375*i+.375*a+.125*n,l=.125*e+.375*o+.375*u+.125*r,c=Math.abs(s-t),h=Math.abs(l-e);return[s,l,c,h]}function nn(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nr({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){switch(t){case l.Left:return[e-nn(e-r,o),n];case l.Right:return[e+nn(r-e,o),n];case l.Top:return[e,n-nn(n-i,o)];case l.Bottom:return[e,n+nn(i-n,o)]}}function ni({sourceX:t,sourceY:e,sourcePosition:n=l.Bottom,targetX:r,targetY:i,targetPosition:o=l.Top,curvature:a=.25}){let[u,s]=nr({pos:n,x1:t,y1:e,x2:r,y2:i,c:a}),[c,h]=nr({pos:o,x1:r,y1:i,x2:t,y2:e,c:a}),[f,d,p,y]=ne({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:u,sourceControlY:s,targetControlX:c,targetControlY:h});return[`M${t},${e} C${u},${s} ${c},${h} ${r},${i}`,f,d,p,y]}function no({sourceX:t,sourceY:e,targetX:n,targetY:r}){let i=Math.abs(n-t)/2,o=Math.abs(r-e)/2;return[n<t?n+i:n-i,r<e?r+o:r-o,i,o]}function na({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if("manual"===o)return r;let a=Math.max(t.parentId||i&&t.selected?t.internals.z:0,e.parentId||i&&e.selected?e.internals.z:0);return(i&&n?r+1e3:r)+a}function nu({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){let o=eR(eO(t),eO(e));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),eF({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},eH(o))>0}let ns=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,nl=(t,e,n={})=>{let r;if(!t.source||!t.target)return eV("006",ef.error006()),e;let i=n.getEdgeId||ns;return((t,e)=>e.some(e=>e.source===t.source&&e.target===t.target&&(e.sourceHandle===t.sourceHandle||!e.sourceHandle&&!t.sourceHandle)&&(e.targetHandle===t.targetHandle||!e.targetHandle&&!t.targetHandle)))(r=ex(t)?{...t}:{...t,id:i(t)},e)?e:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,e.concat(r))};function nc({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[i,o,a,u]=no({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,o,a,u]}let nh={[l.Left]:{x:-1,y:0},[l.Right]:{x:1,y:0},[l.Top]:{x:0,y:-1},[l.Bottom]:{x:0,y:1}},nf=({source:t,sourcePosition:e=l.Bottom,target:n})=>e===l.Left||e===l.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},nd=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function np({sourceX:t,sourceY:e,sourcePosition:n=l.Bottom,targetX:r,targetY:i,targetPosition:o=l.Top,borderRadius:a=5,centerX:u,centerY:s,offset:c=20,stepPosition:h=.5}){let[f,d,p,y,m]=function({source:t,sourcePosition:e=l.Bottom,target:n,targetPosition:r=l.Top,center:i,offset:o,stepPosition:a}){let u,s,c=nh[e],h=nh[r],f={x:t.x+c.x*o,y:t.y+c.y*o},d={x:n.x+h.x*o,y:n.y+h.y*o},p=nf({source:f,sourcePosition:e,target:d}),y=0!==p.x?"x":"y",m=p[y],g=[],v={x:0,y:0},x={x:0,y:0},[,,w,_]=no({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(c[y]*h[y]==-1){"x"===y?(u=i.x??f.x+(d.x-f.x)*a,s=i.y??(f.y+d.y)/2):(u=i.x??(f.x+d.x)/2,s=i.y??f.y+(d.y-f.y)*a);let t=[{x:u,y:f.y},{x:u,y:d.y}],e=[{x:f.x,y:s},{x:d.x,y:s}];g=c[y]===m?"x"===y?t:e:"x"===y?e:t}else{let i=[{x:f.x,y:d.y}],a=[{x:d.x,y:f.y}];if(g="x"===y?c.x===m?a:i:c.y===m?i:a,e===r){let e=Math.abs(t[y]-n[y]);if(e<=o){let r=Math.min(o-1,o-e);c[y]===m?v[y]=(f[y]>t[y]?-1:1)*r:x[y]=(d[y]>n[y]?-1:1)*r}}if(e!==r){let t="x"===y?"y":"x",e=c[y]===h[t],n=f[t]>d[t],r=f[t]<d[t];(1===c[y]&&(!e&&n||e&&r)||1!==c[y]&&(!e&&r||e&&n))&&(g="x"===y?i:a)}let l={x:f.x+v.x,y:f.y+v.y},p={x:d.x+x.x,y:d.y+x.y};Math.max(Math.abs(l.x-g[0].x),Math.abs(p.x-g[0].x))>
1=Math.max(Math.abs(l.y-g[0].y),Math.abs(p.y-g[0].y))?(u=(l.x+p.x)/2,s=g[0].y):(u=g[0].x,s=(l.y+p.y)/2)}let b={x:f.x+v.x,y:f.y+v.y},S={x:d.x+x.x,y:d.y+x.y};return[[t,...b.x!==g[0].x||b.y!==g[0].y?[b]:[],...g,...S.x!==g[g.length-1].x||S.y!==g[g.length-1].y?[S]:[],n],u,s,w,_]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:u,y:s},offset:c,stepPosition:h}),g=`M${f[0].x} ${f[0].y}`;for(let t=1;t<f.length-1;t++)g+=function(t,e,n,r){let i=Math.min(nd(t,e)/2,nd(e,n)/2,r),{x:o,y:a}=e;if(t.x===o&&o===n.x||t.y===a&&a===n.y)return`L${o} ${a}`;if(t.y===a){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${o+i*e},${a}Q ${o},${a} ${o},${a+i*r}`}let u=t.x<n.x?1:-1,s=t.y<n.y?-1:1;return`L ${o},${a+i*s}Q ${o},${a} ${o+i*u},${a}`}(f[t-1],f[t],f[t+1],a);return[g+=`L${f[f.length-1].x} ${f[f.length-1].y}`,d,p,y,m]}function ny(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function nm(t){let{sourceNode:e,targetNode:n}=t;if(!ny(e)||!ny(n))return null;let r=e.internals.handleBounds||ng(e.handles),o=n.internals.handleBounds||ng(n.handles),a=nx(r?.source??[],t.sourceHandle),u=nx(t.connectionMode===i.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),t.targetHandle);if(!a||!u)return t.onError?.("008",ef.error008(!a?"source":"target",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let s=a?.position||l.Bottom,c=u?.position||l.Top,h=nv(e,a,s),f=nv(n,u,c);return{sourceX:h.x,sourceY:h.y,targetX:f.x,targetY:f.y,sourcePosition:s,targetPosition:c}}function ng(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function nv(t,e,n=l.Left,r=!1){let i=(e?.x??0)+t.internals.positionAbsolute.x,o=(e?.y??0)+t.internals.positionAbsolute.y,{width:a,height:u}=e??eZ(t);if(r)return{x:i+a/2,y:o+u/2};switch(e?.position??n){case l.Top:return{x:i+a/2,y:o};case l.Right:return{x:i+a,y:o+u/2};case l.Bottom:return{x:i+a/2,y:o+u};case l.Left:return{x:i,y:o+u/2}}}function nx(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function nw(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function n_(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return t.reduce((t,a)=>([a.markerStart||r,a.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=nw(r,e);o.has(i)||(t.push({id:i,color:r.color||n,...r}),o.add(i))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let nb={nodeOrigin:[0,0],nodeExtent:ed,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},nS={...nb,checkEquality:!0};function nE(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function nM(t,e,n){let r=nE(nb,n);for(let n of t.values())if(n.parentId)nk(n,t,e,r);else{let t=eN(eb(n,r.nodeOrigin),eQ(n.extent)?n.extent:r.nodeExtent,eZ(n));n.internals.positionAbsolute=t}}function nA(t){return"manual"===t}function n$(t,e,n,r={}){let i=nE(nS,r),o={i:0},a=new Map(e),u=i?.elevateNodesOnSelect&&!nA(i.zIndexMode)?1e3:0,s=t.length>0,l=!1;for(let c of(e.clear(),n.clear(),t)){let t=a.get(c.id);if(i.checkEquality&&c===t?.internals.userNode)e.set(c.id,t);else{let n=eN(eb(c,i.nodeOrigin),eQ(c.extent)?c.extent:i.nodeExtent,eZ(c));t={...i.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:n,handleBounds:function(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;let n=[],r=[];for(let e of t.handles){let i={id:e.id,width:e.width??1,height:e.height??1,nodeId:t.id,x:e.x,y:e.y,position:e.position,type:e.type};"source"===e.type?n.push(i):"target"===e.type&&r.push(i)}return{source:n,target:r}}(c,t),z:nz(c,u,i.zIndexMode),userNode:c}},e.set(c.id,t)}void 0!==t.measured&&void 0!==t.measured.width&&void 0!==t.measured.height||t.hidden||(s=!1),c.parentId&&nk(t,e,n,r,o),l||=c.selected??!1}return{nodesInitialized:s,hasSelectedNodes:l}}function nk(t,e,n,r,i){let{elevateNodesOnSelect:o,nodeOrigin:a,nodeExtent:u,zIndexMode:s}=nE(nb,r),l=t.parentId,c=e.get(l);if(!c)return void console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n),i&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===s&&(c.internals.rootParentIndex=++i.i,c.internals.z=c.internals.z+10*i.i),i&&void 0!==c.internals.rootParentIndex&&(i.i=c.internals.rootParentIndex);let{x:h,y:f,z:d}=function(t,e,n,r,i,o){let{x:a,y:u}=e.internals.positionAbsolute,s=eZ(t),l=eb(t,n),c=eQ(t.extent)?eN(l,t.extent,s):l,h=eN({x:a+c.x,y:u+c.y},r,s);"parent"===t.extent&&(h=eT(h,s,e));let f=nz(t,i,o),d=e.internals.z??0;return{x:h.x,y:h.y,z:d>=f?d+1:f}}(t,c,a,u,o&&!nA(s)?1e3:0,s),{positionAbsolute:p}=t.internals,y=h!==p.x||f!==p.y;
1(y||d!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:y?{x:h,y:f}:p,z:d}})}function nz(t,e,n){let r=eD(t.zIndex)?t.zIndex:0;return nA(n)?r:r+(t.selected?e:0)}function nN(t,e,n,r=[0,0]){let i=[],o=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=ej(o.get(n.parentId)?.expandedRect??eL(t),n.rect);o.set(n.parentId,{expandedRect:r,parent:t})}return o.size>0&&o.forEach(({expandedRect:e,parent:o},a)=>{let u=o.internals.positionAbsolute,s=eZ(o),l=o.origin??r,c=e.x<u.x?Math.round(Math.abs(u.x-e.x)):0,h=e.y<u.y?Math.round(Math.abs(u.y-e.y)):0,f=Math.max(s.width,Math.round(e.width)),d=Math.max(s.height,Math.round(e.height)),p=(f-s.width)*l[0],y=(d-s.height)*l[1];(c>0||h>0||p||y)&&(i.push({id:a,type:"position",position:{x:o.position.x-c+p,y:o.position.y-h+y}}),n.get(a)?.forEach(e=>{t.some(t=>t.id===e.id)||i.push({id:e.id,type:"position",position:{x:e.position.x+c,y:e.position.y+h}})})),(s.width<e.width||s.height<e.height||c||h)&&i.push({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:f+(c?l[0]*c-p:0),height:d+(h?l[1]*h-y:0)}})}),i}function nT(t,e,n,r,i,o,a){let u=r?.querySelector(".xyflow__viewport"),s=!1;if(!u)return{changes:[],updatedInternals:s};let l=[],c=window.getComputedStyle(u),{m22:h}=new window.DOMMatrixReadOnly(c.transform),f=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),s=!0;continue}let u=e3(r.nodeElement),c=t.measured.width!==u.width||t.measured.height!==u.height;if(u.width&&u.height&&(c||!t.internals.handleBounds||r.force)){let d=r.nodeElement.getBoundingClientRect(),p=eQ(t.extent)?t.extent:o,{positionAbsolute:y}=t.internals;t.parentId&&"parent"===t.extent?y=eT(y,u,e.get(t.parentId)):p&&(y=eN(y,p,u));let m={...t,measured:u,internals:{...t.internals,positionAbsolute:y,handleBounds:{source:nt("source",r.nodeElement,d,h,t.id),target:nt("target",r.nodeElement,d,h,t.id)}}};e.set(t.id,m),t.parentId&&nk(m,e,n,{nodeOrigin:i,zIndexMode:a}),s=!0,c&&(l.push({id:t.id,type:"dimensions",dimensions:u}),t.expandParent&&t.parentId&&f.push({id:t.id,parentId:t.parentId,rect:eL(m,i)}))}}if(f.length>0){let t=nN(f,e,n,i);l.push(...t)}return{changes:l,updatedInternals:s}}async function nP({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:o}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);let a=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,o]],r);return Promise.resolve(!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]))}function nC(t,e,n,r,i,o){let a=i,u=r.get(a)||new Map;r.set(a,u.set(n,e)),a=`${i}-${t}`;let s=r.get(a)||new Map;if(r.set(a,s.set(n,e)),o){a=`${i}-${t}-${o}`;let u=r.get(a)||new Map;r.set(a,u.set(n,e))}}function nR(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:a=null}=r,u={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:a},s=`${n}-${o}--${i}-${a}`;nC("source",u,`${i}-${a}--${n}-${o}`,t,n,o),nC("target",u,s,t,i,a),e.set(r.id,r)}}function nI(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function nH({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let i=[];for(let[t,o]of e){let e=n.get(t)?.internals.userNode;e&&i.push({...e,position:o.position,dragging:r})}if(!t)return[i[0],i];let o=n.get(t)?.internals.userNode;return[o?{...o,position:e.get(t)?.position||o.position,dragging:r}:i[0],i]}function nL({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},a=0,u=new Map,s=!1,l={x:0,y:0},c=null,h=!1,d=null,p=!1,y=!1,m=null;return{update:function({noDragClassName:g,handleSelector:v,domNode:x,isSelectable:w,nodeId:_,nodeClickDistance:b=0}){function S({x:t,y:n}
1){let{nodeLookup:i,nodeExtent:a,snapGrid:s,snapToGrid:l,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:f,onError:d,updateNodePositions:p}=e();o={x:t,y:n};let g=!1,v=u.size>1,x=v&&a?eI(eE(u)):null,w=v&&l?function({dragItems:t,snapGrid:e,x:n,y:r}){let i=t.values().next().value;if(!i)return null;let o={x:n-i.distance.x,y:r-i.distance.y},a=eq(o,e);return{x:a.x-o.x,y:a.y-o.y}}({dragItems:u,snapGrid:s,x:t,y:n}):null;for(let[e,r]of u){if(!i.has(e))continue;let o={x:t-r.distance.x,y:n-r.distance.y};l&&(o=w?{x:Math.round(o.x+w.x),y:Math.round(o.y+w.y)}:eq(o,s));let u=null;if(v&&a&&!r.extent&&x){let{positionAbsolute:t}=r.internals,e=t.x-x.x+a[0][0],n=t.x+r.measured.width-x.x2+a[1][0];u=[[e,t.y-x.y+a[0][1]],[n,t.y+r.measured.height-x.y2+a[1][1]]]}let{position:h,positionAbsolute:f}=e$({nodeId:e,nextPosition:o,nodeLookup:i,nodeExtent:u||a,nodeOrigin:c,onError:d});g=g||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=f}if(y=y||g,g&&(p(u,!0),m&&(r||h||!_&&f))){let[t,e]=nH({nodeId:_,dragItems:u,nodeLookup:i});r?.(m,u,t,e),h?.(m,t,e),_||f?.(m,e)}}async function E(){if(!c)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=e();if(!i){s=!1,cancelAnimationFrame(a);return}let[u,h]=eC(l,c,r);(0!==u||0!==h)&&(o.x=(o.x??0)-u/t[2],o.y=(o.y??0)-h/t[2],await n({x:u,y:h})&&S(o)),a=requestAnimationFrame(E)}function M(r){let{nodeLookup:i,multiSelectionActive:a,nodesDraggable:s,transform:l,snapGrid:f,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:y,onSelectionDragStart:m,unselectNodesAndEdges:g}=e();h=!0,p&&w||a||!_||i.get(_)?.selected||g(),w&&p&&_&&t?.(_);let v=e5(r.sourceEvent,{transform:l,snapGrid:f,snapToGrid:d,containerBounds:c});if(o=v,(u=function(t,e,n,r){let i=new Map;for(let[o,a]of t)if((a.selected||a.id===r)&&(!a.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(a,t))&&(a.draggable||e&&void 0===a.draggable)){let e=t.get(o);e&&i.set(o,{id:o,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return i}(i,s,v,_)).size>0&&(n||y||!_&&m)){let[t,e]=nH({nodeId:_,dragItems:u,nodeLookup:i});n?.(r.sourceEvent,u,t,e),y?.(r.sourceEvent,t,e),_||m?.(r.sourceEvent,e)}}d=tn(x);let A=(function(){var t,e,n,r,i=tf,o=td,a=tp,u=ty,s={},l=f("start","drag","end"),c=0,h=0;function d(t){t.on("mousedown.drag",p).filter(u).on("touchstart.drag",g).on("touchmove.drag",v,ti).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,u){if(!r&&i.call(this,a,u)){var s=w(this,o.call(this,a,u),a,u,"mouse");s&&(tn(a.view).on("mousemove.drag",y,to).on("mouseup.drag",m,to),ts(a.view),ta(a),n=!1,t=a.clientX,e=a.clientY,s("start",a))}}function y(r){if(tu(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>h}s.mouse("drag",r)}function m(t){tn(t.view).on("mousemove.drag mouseup.drag",null),tl(t.view,n),tu(t),s.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),s=a.length;for(n=0;n<s;++n)(r=w(this,u,t,e,a[n].identifier,a[n]))&&(ta(t),r("start",t,a[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=s[r[e].identifier])&&(tu(t),n("drag",t,r[e]))}function x(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=s[i[e].identifier])&&(ta(t),n("end",t,i[e]))}function w(t,e,n,r,i,o){var u,h,f,p=l.copy(),y=tr(o||n,e);if(null!=(f=a.call(t,new th("beforestart",{sourceEvent:n,target:d,identifier:i,active:c,x:y[0],y:y[1],dx:0,dy:0,dispatch:p}),r)))return u=f.x-y[0]||0,h=f.y-y[1]||0,function n(o,a,l){var m,g=y;switch(o){case"start":s[i]=n,m=c++;break;case"end":delete s[i],--c;case"drag":y=tr(l||a,e),m=c}p.call(o,t,new th(o,{sourceEvent:a,subject:f,target:d,identifier:i,active:m,x:y[0]+u,y:y[1]+h,dx:y[0]-g[0],dy:y[1]-g[1],dispatch:p}),r)}}return d.filter=function(t){return arguments.length?(i="function"==typeof t?t:tc(!!t),d):i},d.container=function(t){return arguments.length?(o="function"==typeof t?t:tc(t),d):o},d.subject=function(t){return arguments.length?(a="function"==typeof t?t:tc(t),d):a},d.touchable=function(t){return arguments.length?(u="function"==typeof t?t:tc(!!t),d):u},d.on=function(){var t=l.on.apply(l,arguments);return t===l?d:t},d.clickDistance=function(t){return arguments.length?(h=(t*=1)*t,d):Math.sqrt(h)},d})().clickDistance(b).on("start",t=>
1{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:a,snapToGrid:u}=e();c=n?.getBoundingClientRect()||null,p=!1,y=!1,m=t.sourceEvent,0===r&&M(t),o=e5(t.sourceEvent,{transform:i,snapGrid:a,snapToGrid:u,containerBounds:c}),l=e7(t.sourceEvent,c)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:a,nodeDragThreshold:f,nodeLookup:d}=e(),y=e5(t.sourceEvent,{transform:r,snapGrid:i,snapToGrid:a,containerBounds:c});if(m=t.sourceEvent,("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||_&&!d.has(_))&&(p=!0),!p){if(!s&&n&&h&&(s=!0,E()),!h){let e=e7(t.sourceEvent,c),n=e.x-l.x,r=e.y-l.y;Math.sqrt(n*n+r*r)>f&&M(t)}(o.x!==y.xSnapped||o.y!==y.ySnapped)&&u&&h&&(l=e7(t.sourceEvent,c),S(y))}}).on("end",t=>{if(h&&!p&&(s=!1,h=!1,cancelAnimationFrame(a),u.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:a}=e();if(y&&(r(u,!1),y=!1),i||o||!_&&a){let[e,r]=nH({nodeId:_,dragItems:u,nodeLookup:n,dragging:!1});i?.(t.sourceEvent,u,e,r),o?.(t.sourceEvent,e,r),_||a?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!g||!nI(e,`.${g}`,x))&&(!v||nI(e,v,x))});d.call(A)},destroy:function(){d?.on(".drag",null)}}}function nO(t,e,n,r,i,o=!1){let a=r.get(t);if(!a)return null;let u="strict"===i?a.internals.handleBounds?.[e]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],s=(n?u?.find(t=>t.id===n):u?.[0])??null;return s&&o?{...s,...nv(a,s,s.position,!0)}:s}function nj(t,e){return t?t:e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null}let nF=()=>!0;function nB(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:a,doc:u,lib:s,flowId:l,isValidConnection:c=nF,nodeLookup:h}){let f="target"===a,d=e?u.querySelector(`.${s}-flow__handle[data-id="${l}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y}=e7(t),m=u.elementFromPoint(p,y),g=m?.classList.contains(`${s}-flow__handle`)?m:d,v={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let t=nj(void 0,g),e=g.getAttribute("data-nodeid"),a=g.getAttribute("data-handleid"),u=g.classList.contains("connectable"),s=g.classList.contains("connectableend");if(!e||!t)return v;let l={source:f?e:r,sourceHandle:f?a:o,target:f?r:e,targetHandle:f?o:a};v.connection=l,v.isValid=u&&s&&(n===i.Strict?f&&"source"===t||!f&&"target"===t:e!==r||a!==o)&&c(l),v.toHandle=nO(e,t,a,h,n,!0)}return v}let nD={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:a,domNode:u,nodeLookup:s,lib:c,autoPanOnConnect:h,flowId:f,panBy:d,cancelConnection:p,onConnectStart:y,onConnect:m,onConnectEnd:g,isValidConnection:v=nF,onReconnectEnd:x,updateConnection:w,getTransform:_,getFromHandle:b,autoPanSpeed:S,dragThreshold:E=1,handleDomNode:M}){let A,$=e8(t.target),k=0,{x:z,y:N}=e7(t),T=nj(o,M),P=u?.getBoundingClientRect(),C=!1;if(!P||!T)return;let R=nO(i,T,r,s,e);if(!R)return;let I=e7(t,P),H=!1,L=null,O=!1,j=null,F={...R,nodeId:i,type:T,position:R.position},B=s.get(i),D={inProgress:!0,isValid:null,from:nv(B,F,l.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:B,to:I,toHandle:null,toPosition:eg[F.position],toNode:null,pointer:I};function V(){C=!0,w(D),y?.(t,{nodeId:i,handleId:r,handleType:T})}function q(t){var o,u;let p;if(!C){let{x:e,y:n}=e7(t),r=e-z,i=n-N;if(!(r*r+i*i>E*E))return;V()}if(!b()||!F)return void X(t);let y=_();A=function(t,e,n,r){let i=[],o=1/0;for(let a of function(t,e,n){let r=[],i={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())eF(i,eL(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:u,y:s}=nv(a,n,n.position,!0),l=Math.sqrt(Math.pow(u-t.x,2)+Math.pow(s-t.y,2));l>e||(l<o?(i=[{...n,x:u,y:s}],o=l):l===o&&i.push({...n,x:u,y:s}))}if(!i.length)return null;if(i.length>1){let t="source"===r.type?"target":"source";return i.find(e=>e.type===t)??i[0]}return i[0]}(eX(I=e7(t,P),y,!1,[1,1]),n,s,F),H||(!function t(){if(!h||!P)return;let[e,n]=eC(I,P,S);d({x:e,y:n}),k=requestAnimationFrame(t)}(),H=!0);let m=nB(t,{handle:A,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:a?"target":"source",isValidConnection:v,doc:$,lib:c,flowId:f,nodeLookup:s});
1j=m.handleDomNode,L=m.connection,o=!!A,u=m.isValid,p=null,u?p=!0:o&&!u&&(p=!1),O=p;let g=s.get(i),x=g?nv(g,F,l.Left,!0):D.from,M={...D,from:x,isValid:O,to:m.toHandle&&O?eY({x:m.toHandle.x,y:m.toHandle.y},y):I,toHandle:m.toHandle,toPosition:O&&m.toHandle?m.toHandle.position:eg[F.position],toNode:m.toHandle?s.get(m.toHandle.nodeId):null,pointer:I};w(M),D=M}function X(t){if(!("touches"in t)||!(t.touches.length>0)){if(C){(A||j)&&L&&O&&m?.(L);let{inProgress:e,...n}=D,r={...n,toPosition:D.toHandle?D.toPosition:null};g?.(t,r),o&&x?.(t,r)}p(),cancelAnimationFrame(k),H=!1,O=!1,L=null,j=null,$.removeEventListener("mousemove",q),$.removeEventListener("mouseup",X),$.removeEventListener("touchmove",q),$.removeEventListener("touchend",X)}}0===E&&V(),$.addEventListener("mousemove",q),$.addEventListener("mouseup",X),$.addEventListener("touchmove",q),$.addEventListener("touchend",X)},isValid:nB};function nV({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let i=tn(t);return{update:function({translateExtent:t,width:o,height:a,zoomStep:u=1,pannable:s=!0,zoomable:l=!0,inversePan:c=!1}){let h=[0,0],f=ec().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(h=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",s?i=>{let u=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!e)return;let s=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],l=[s[0]-h[0],s[1]-h[1]];h=s;let f=r()*Math.max(u[2],Math.log(u[2]))*(c?-1:1),d={x:u[0]-l[0]*f,y:u[1]-l[1]*f};e.setViewportConstrained({x:d.x,y:d.y,zoom:u[2]},[[0,0],[o,a]],t)}:null).on("zoom.wheel",l?t=>{if("wheel"!==t.sourceEvent.type||!e)return;let r=n(),i=t.sourceEvent.ctrlKey&&eK()?10:1,o=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*u,a=r[2]*Math.pow(2,o*i);e.scaleTo(a)}:null);i.call(f,{})},destroy:function(){i.on("zoom",null)},pointer:tr}}let nq=t=>({x:t.x,y:t.y,zoom:t.k}),nX=({x:t,y:e,zoom:n})=>et.translate(t,e).scale(n),nY=(t,e)=>t.target.closest(`.${e}`),nU=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),nW=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,nK=(t,e=0,n=nW,r=()=>{})=>{let i="number"==typeof e&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t},nQ=t=>{let e=t.ctrlKey&&eK()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function nZ({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:u,onPanZoomEnd:s,onDraggingChange:l}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=t.getBoundingClientRect(),f=ec().scaleExtent([e,n]).translateExtent(r),d=tn(t).call(f);v({x:i.x,y:i.y,zoom:ez(i.zoom,e,n)},[[0,0],[h.width,h.height]],r);let p=d.on("wheel.zoom"),y=d.on("dblclick.zoom");function m(t,e){return d?new Promise(n=>{f?.interpolate(e?.interpolate==="linear"?eh.A:tg).transform(nK(d,e?.duration,e?.ease,()=>n(!0)),t)}):Promise.resolve(!1)}function g(){f.on("zoom",null)}async function v(t,e,n){let r=nX(t),i=f?.constrain()(r,e,n);return i&&await m(i),new Promise(t=>t(i))}return f.wheelDelta(nQ),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:h,panOnScrollMode:m,panOnScrollSpeed:v,preventScrolling:x,zoomOnPinch:w,zoomOnScroll:_,zoomOnDoubleClick:b,zoomActivationKeyPressed:S,lib:E,onTransformChange:M,connectionInProgress:A,paneClickDistance:$,selectionOnDrag:k}){r&&!c.isZoomingOrPanning&&g();let z=i&&!S&&!r;f.clickDistance(k?1/0:!eD($)||$<0?0:$);let N=z?function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:u,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}){return h=>{if(nY(h,e))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();let f=n.property("__zoom").k||1;if(h.ctrlKey&&u){let t=tr(h),e=f*Math.pow(2,nQ(h));r.scaleTo(n,e,t,h);return}
1let d=1===h.deltaMode?20:1,p=i===o.Vertical?0:h.deltaX*d,y=i===o.Horizontal?0:h.deltaY*d;!eK()&&h.shiftKey&&i!==o.Vertical&&(p=h.deltaY*d,y=0),r.translateBy(n,-(p/f)*a,-(y/f)*a,{internal:!0});let m=nq(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?(l?.(h,m),t.panScrollTimeout=setTimeout(()=>{c?.(h,m),t.isPanScrolling=!1},150)):(t.isPanScrolling=!0,s?.(h,m))}}({zoomPanValues:c,noWheelClassName:t,d3Selection:d,d3Zoom:f,panOnScrollMode:m,panOnScrollSpeed:v,zoomOnPinch:w,onPanZoomStart:u,onPanZoom:a,onPanZoomEnd:s}):function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){let o="wheel"===r.type,a=!e&&o&&!r.ctrlKey,u=nY(r,t);if(r.ctrlKey&&o&&u&&r.preventDefault(),a||u)return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:t,preventScrolling:x,d3ZoomHandler:p});if(d.on("wheel.zoom",N,{passive:!1}),!r){let t=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=nq(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=i,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:c,onDraggingChange:l,onPanZoomStart:u});f.on("start",t);let e=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{t.usedRightMouseButton=!!(n&&nU(e,t.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,nq(o.transform))}}({zoomPanValues:c,panOnDrag:h,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:M});f.on("zoom",e);let r=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return a=>{if(!a.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,o&&nU(e,t.mouseButton??0)&&!t.usedRightMouseButton&&a.sourceEvent&&o(a.sourceEvent),t.usedRightMouseButton=!1,r(!1),i)){let e=nq(a.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i?.(a.sourceEvent,e)},150*!!n)}}}({zoomPanValues:c,panOnDrag:h,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:l});f.on("end",r)}let T=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:a,noWheelClassName:u,noPanClassName:s,lib:l,connectionInProgress:c}){return h=>{let f=t||e,d=n&&h.ctrlKey,p="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(nY(h,`${l}-flow__node`)||nY(h,`${l}-flow__edge`)))return!0;if(!r&&!f&&!i&&!o&&!n||a||c&&!p||nY(h,u)&&p||nY(h,s)&&(!p||i&&p&&!t)||!n&&h.ctrlKey&&p)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!f&&!i&&!d&&p||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let y=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||p)&&y}}({zoomActivationKeyPressed:S,panOnDrag:h,zoomOnScroll:_,panOnScroll:i,zoomOnDoubleClick:b,zoomOnPinch:w,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:E,connectionInProgress:A});f.filter(T),b?d.on("dblclick.zoom",y):d.on("dblclick.zoom",null)},destroy:g,setViewport:async function t(t,e){let n=nX(t);return await m(n,e),new Promise(t=>t(n))},setViewportConstrained:v,getViewport:function(){let t=d?ee(d.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:function(t,e){return d?new Promise(n=>{f?.interpolate(e?.interpolate==="linear"?eh.A:tg).scaleTo(nK(d,e?.duration,e?.ease,()=>n(!0)),t)}):Promise.resolve(!1)},scaleBy:function(t,e){return d?new Promise(n=>{f?.interpolate(e?.interpolate==="linear"?eh.A:tg).scaleBy(nK(d,e?.duration,e?.ease,()=>n(!0)),t)}):Promise.resolve(!1)},setScaleExtent:function(t){f?.scaleExtent(t)},setTranslateExtent:function(t){f?.translateExtent(t)},syncViewport:function(t){if(d){let e=nX(t),n=d.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&f?.transform(d,e,null,{sync:!0})}},setClickDistance:function(t){let e=!eD(t)||t<0?0:t;f?.clickDistance(e)}}}!function(t){t.Line="line",t.Handle="handle"}(c||(c={}))},57459:(t,e,n)=>{"use strict";function r(t,e){if(Object.is(t,e))return!0;
1if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}n.d(e,{x:()=>r})},71716:(t,e,n)=>{"use strict";function r(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}n.d(e,{A:()=>r})},73690:(t,e,n)=>{"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{Ay:()=>x,Qh:()=>b});var a="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${a},${a},${a}\\)$`),h=RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=RegExp(`^rgba\\(${a},${a},${a},${u}\\)$`),d=RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),p=RegExp(`^hsl\\(${u},${s},${s}\\)$`),y=RegExp(`^hsla\\(${u},${s},${s},${u}\\)$`),m={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function g(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?
1new S(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=c.exec(t))?new S(e[1],e[2],e[3],1):(e=h.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?_(e[1],e[2],e[3],e[4]):(e=d.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?z(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?z(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function w(t){return new S(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function b(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof o||(i=x(i)),i)?new S((i=i.rgb()).r,i.g,i.b,i.opacity):new S:new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return`#${k(this.r)}${k(this.g)}${k(this.b)}`}function M(){let t=A(this.opacity);return`${1===t?"rgb(":"rgba("}${$(this.r)}, ${$(this.g)}, ${$(this.b)}${1===t?")":`, ${t})`}`}function A(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function $(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function k(t){return((t=$(t))<16?"0":"")+t.toString(16)}function z(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new T(t,e,n,r)}function N(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=x(t)),!t)return new T;if(t instanceof T)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),u=NaN,s=a-i,l=(a+i)/2;return s?(u=e===a?(n-r)/s+(n<r)*6:n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,u*=60):s=l>0&&l<1?0:u,new T(u,s,l,t.opacity)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function P(t){return(t=(t||0)%360)<0?t+360:t}function C(t){return Math.max(0,Math.min(1,t||0))}function R(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}r(o,x,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:g,formatHex:g,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return N(this).formatHsl()},formatRgb:v,toString:v}),r(S,b,i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new S($(this.r),$(this.g),$(this.b),A(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatHex8:function(){return`#${k(this.r)}${k(this.g)}${k(this.b)}${k((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:M,toString:M})),r(T,function(t,e,n,r){return 1==arguments.length?N(t):new T(t,e,n,null==r?1:r)},i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new T(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(R(t>=240?t-240:t+120,i,r),R(t,i,r),R(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new T(P(this.h),C(this.s),C(this.l),A(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=A(this.opacity);return`${1===t?"hsl(":"hsla("}${P(this.h)}, ${100*C(this.s)}%, ${100*C(this.l)}%${1===t?")":`, ${t})`}`}}))},83654:(t,e,n)=>{"use strict";var r=n(12115),i=n(14806),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=i.useSyncExternalStore,u=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=u(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;var d=a(t,(h=l(function(){function t(t){if(!s){if(s=!0,a=t,t=r(t),void 0!==i&&f.hasValue){var e=f.value;if(i(e,t))return u=e}return u=t}if(e=u,o(a,t))return e;var n=r(t);return void 0!==i&&i(e,n)?(a=t,e):(a=t,u=n)}var a,u,s=!1,l=void 0===n?null:n;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]},[e,n,r,i]))[0],h[1]);return s(function(){f.hasValue=!0,f.value=d},[d]),c(d),d}},86340:()=>{},88661:(t,e,n)=>{"use strict";
1t.exports=n(45688).style}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.