0x1998 - MANAGER
Düzenlenen Dosya: extendify-vendors-977883f3d768e0d8e8eb.js
(globalThis.webpackChunkextendify=globalThis.webpackChunkextendify||[]).push([[65],{5413(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(5413),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(b(e))n=new c(e.data);else if(g(e)){var r=t?k(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?k(e.children):[];var s=new f(r);r.forEach(function(e){return e.parent=s}),n=s}else if(x(e)){r=t?k(e.children):[];var a=new h(r);r.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map(function(e){return S(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},2849(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(s(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&s(r)?r:{},a(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&a(d,{name:n,newValue:o}));return d}},5270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5496(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,c,d,p,h;e=(0,r.escapeSpecialCharacters)(e);var g=a.exec(e),v=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(v){case o:var y=u(e);return(0,r.hasOpenTag)(e,i)||null===(n=null==(w=y.querySelector(i))?void 0:w.parentNode)||void 0===n||n.removeChild(w),(0,r.hasOpenTag)(e,s)||null===(c=null==(w=y.querySelector(s))?void 0:w.parentNode)||void 0===c||c.removeChild(w),y.querySelectorAll(o);case i:case s:var b=l(e).querySelectorAll(v);return(0,r.hasOpenTag)(e,s)&&(0,r.hasOpenTag)(e,i)?null!==(p=null===(d=b[0].parentNode)||void 0===d?void 0:d.childNodes)&&void 0!==p?p:m():b;default:return f?f(e):null!==(h=null==(w=l(e,s).querySelector(s))?void 0:w.childNodes)&&void 0!==h?h:m();var w}};var r=n(7731),o="html",i="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;l=u=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes});var m=function(){return document.createDocumentFragment().childNodes}},2471(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=s.exec(e),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/},7731(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,o){var l,u,c,d;void 0===n&&(n=null);for(var p,f=[],h=0,m=t.length;h<m;h++){var g=t[h];switch(g.nodeType){case 1:var v=s(g.nodeName);(p=new r.Element(v,i(g.attributes))).children=e("template"===v?g.content.childNodes:g.childNodes,p);break;case 3:p=new r.Text(a(null!==(l=g.nodeValue)&&void 0!==l?l:""));break;case 8:p=new r.Comment(null!==(u=g.nodeValue)&&void 0!==u?u:"");break;default:continue}var y=null!==(c=f[h-1])&&void 0!==c?c:null;y&&(y.next=p),p.parent=n,p.prev=y,p.next=null,f.push(p)}return o&&((p=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=null!==(d=f[0])&&void 0!==d?d:null,p.parent=n,f.unshift(p),f[1]&&(f[1].prev=f[0])),f};var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function s(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function a(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},840(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},u=Boolean(e.type&&a[e.type]);for(var c in e){var d=e[c];if((0,r.isCustomAttribute)(c))n[c]=d;else{var p=c.toLowerCase(),f=l(p);if(f){var h=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!u&&(f=l("default"+p)),n[f]=d,null==h?void 0:h.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(4210),o=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},308(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){var r,o,u,c,d;void 0===n&&(n={});for(var p=[],f="function"==typeof n.replace,h=null!==(r=n.transform)&&void 0!==r?r:s.returnFirstArg,m=null!==(o=n.library)&&void 0!==o?o:a,g=m.cloneElement,v=m.createElement,y=m.isValidElement,b=t.length,w=0;w<b;w++){var x=t[w];if(f){var S=null===(u=n.replace)||void 0===u?void 0:u.call(n,x,w);if(y(S)){b>1&&(S=g(S,{key:null!==(c=S.key)&&void 0!==c?c:w})),p.push(h(S,x,w));continue}}if("text"!==x.type){var k=x,E={};l(k)?((0,s.setStyleProp)(k.attribs.style,k.attribs),E=k.attribs):k.attribs&&(E=(0,i.default)(k.attribs,k.name));var T=void 0;switch(x.type){case"script":case"style":x.children[0]&&(E.dangerouslySetInnerHTML={__html:x.children[0].data});break;case"tag":"textarea"===x.name&&x.children[0]?E.defaultValue=x.children[0].data:(null===(d=x.children)||void 0===d?void 0:d.length)&&(T=e(x.children,n));break;default:continue}b>1&&(E.key=w),p.push(h(v(x.name,E,T),x,w))}else{var P=!x.data.trim().length;if(P&&x.parent&&!(0,s.canTextBeChildOfNode)(x.parent))continue;if(n.trim&&P)continue;p.push(h(x.data,x,w))}}return 1===p.length?p[0]:p};var o=n(1609),i=r(n(840)),s=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},442(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,o.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:l),t):[]};var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var s=r(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},4958(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}};var o=n(1609),i=r(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5077(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}function g(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(){v(r)}function b(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=v(o);if(n){if(w(),!v(i))return g("property missing ':'");var r=v(s),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return v(a),l}}return m.prototype.content=e,y(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()}},9594(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(1609),o=n.n(r);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends o().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=o().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),s=100/r.length+"%";let l=n;l&&"string"!=typeof l&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===l&&(l="my-masonry-grid_column"));const u=a(a(a({},e),t),{},{style:a(a({},t.style),{},{width:s}),className:l});return r.map((e,t)=>o().createElement("div",i({},u,{key:t}),e))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:s,column:a,className:l}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=l;return"string"!=typeof l&&(this.logDeprecated('The property "className" requires a string'),void 0===l&&(c="my-masonry-grid")),o().createElement("div",i({},u,{className:c}),this.renderColumns())}}u.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};const c=u},4210(e,t,n){"use strict";function r(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:a,SAME:l,possibleStandardNames:u}=n(6811),c=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(u).reduce((e,t)=>{const n=u[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},6811(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},8917(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(r,a))}},1133(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n(5077))},8493(e,t,n){"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),s(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2162(e,t,n){"use strict";var r=n(1609),o=n(9888),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(s=e,t):(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,o]);var f=s(e,d[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}},5160(e,t,n){"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,s=n)}var i,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]);var f=i(e,d[0],d[1]);return a(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},9888(e,t,n){"use strict";e.exports=n(8493)},9242(e,t,n){"use strict";e.exports=n(2162)},8418(e,t,n){"use strict";e.exports=n(5160)},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9124(e,t,n){"use strict";n.d(t,{MM:()=>p,VY:()=>m,rU:()=>f});var r=n(1609),o=n(5015),i=n(6339),s=n(5451),a=n(8975),l=n(5448),u=n(6206);let c=(0,r.createContext)(null);function d(){let e=(0,r.useContext)(c);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,d),e}return e}function p(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:i},e.children)},[t])]}c.displayName="DescriptionContext";let h=(0,u.FX)(function(e,t){let n=(0,r.useId)(),o=(0,l._)(),{id:c=`headlessui-description-${n}`,...p}=e,f=d(),h=(0,a.P)(t);(0,i.s)(()=>f.register(c),[c,f.register]);let m=(0,s._)({...f.slot,disabled:o||!1}),g={ref:h,...f.props,id:c};return(0,u.Ci)()({ourProps:g,theirProps:p,slot:m,defaultTag:"p",name:f.name||"Description"})}),m=Object.assign(h,{})},8971(e,t,n){"use strict";n.d(t,{lG:()=>qe,L3:()=>Ge});var r=n(1609),o=n(4586),i=n(4424);function s(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{function n(e){s.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}class a extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var l,u,c,d=n(2599),p=n(9851),f=Object.defineProperty,h=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},m=(e,t,n)=>(h(e,t,"read from private field"),n?n.call(e):t.get(e)),g=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,r)=>(h(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class y{constructor(e){g(this,l,{}),g(this,u,new a(()=>new Set)),g(this,c,new Set),((e,t,n)=>{((e,t,n)=>{t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"disposables",(0,d.e)()),v(this,l,e),p._.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return m(this,l)}subscribe(e,t){if(p._.isServer)return()=>{};let n={selector:e,callback:t,current:e(m(this,l))};return m(this,c).add(n),this.disposables.add(()=>{m(this,c).delete(n)})}on(e,t){return p._.isServer?()=>{}:(m(this,u).get(e).add(t),this.disposables.add(()=>{m(this,u).get(e).delete(t)}))}send(e){let t=this.reduce(m(this,l),e);if(t!==m(this,l)){v(this,l,t);for(let e of m(this,c)){let t=e.selector(m(this,l));b(e.current,t)||(e.current=t,e.callback(t))}for(let t of m(this,u).get(e.type))t(m(this,l),e)}}}function b(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&w(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&w(e.entries(),t.entries()):!(!x(e)||!x(t))&&w(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function w(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function x(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}l=new WeakMap,u=new WeakMap,c=new WeakMap;var S=n(5897),k=Object.defineProperty,E=(e,t,n)=>(((e,t,n)=>{t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),T=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(T||{});let P={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class _ extends y{constructor(){super(...arguments),E(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),E(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new _({stack:[]})}reduce(e,t){return(0,S.Y)(t.type,P,e,t)}}const A=new a(()=>_.new());var C=n(8418),O=n(5015);function z(e,t,n=b){return(0,C.useSyncExternalStoreWithSelector)((0,O._)(t=>e.subscribe(R,t)),(0,O._)(()=>e.state),(0,O._)(()=>e.state),(0,O._)(t),n)}function R(e){return e}var I=n(6339);function M(e,t){let n=(0,r.useId)(),o=A.get(t),[i,s]=z(o,(0,r.useCallback)(e=>[o.selectors.isTop(e,n),o.selectors.inStack(e,n)],[o,n]));return(0,I.s)(()=>{if(e)return o.actions.push(n),()=>o.actions.pop(n)},[o,e,n]),!!e&&(!s||i)}function j(e,t=("undefined"!=typeof document?document.defaultView:null),n){let r=M(e,"escape");s(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===o.D.Escape&&n(e))})}var D=n(2211);let L=new Map,N=new Map;function F(e){var t;let n=null!=(t=N.get(e))?t:0;return N.set(e,n+1),0!==n||(L.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=N.get(e))?t:1;if(1===n?N.delete(e):N.set(e,n-1),1!==n)return;let r=L.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,L.delete(e))}(e)}function V(e,{allowed:t,disallowed:n}={}){let r=M(e,"inert-others");(0,I.s)(()=>{var e,o;if(!r)return;let i=(0,d.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(F(t));let s=null!=(o=null==t?void 0:t())?o:[];for(let e of s){if(!e)continue;let t=(0,D.TW)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||i.add(F(e));n=n.parentElement}}return i.dispose},[r,t,n])}var B=n(7280),$=n(4122);function U(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Z(){return U()||/Android/gi.test(window.navigator.userAgent)}function H(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){s.current(e)}},[e,t,o])}function W(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{if(e)return window.addEventListener(t,n,o),()=>window.removeEventListener(t,n,o);function n(e){s.current(e)}},[e,t,o])}function G(...e){return(0,r.useMemo)(()=>(0,D.TW)(...e),[...e])}var q=n(9528);let K=(0,r.createContext)(null);function J({children:e,node:t}){let[n,o]=(0,r.useState)(null),i=X(null!=t?t:n);return r.createElement(K.Provider,{value:i},e,null===i&&r.createElement(q.j,{features:q.u.Hidden,ref:e=>{var t,n;if(e)for(let r of null!=(n=null==(t=(0,D.TW)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&B.vq(r)&&null!=r&&r.contains(e)){o(r);break}}}))}function X(e=null){var t;return null!=(t=(0,r.useContext)(K))?t:e}function Y(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Q(){return U()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,d.e)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(B.Lk(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),s=e.querySelector(o);B.Lk(s)&&!r(s)&&(i=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),B.Lk(e.target)&&B.pv(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(B.Lk(e.target)){if(B.A3(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function ee(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let te=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach(e=>e()))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,d.e)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=ee(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=ee(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[Q(),Y(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function ne(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let o=function(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(te),i=t?o.get(t):void 0,s=!!i&&i.count>0;(0,I.s)(()=>{if(t&&e)return te.dispatch("PUSH",t,n),()=>te.dispatch("POP",t,n)},[e,t])}(M(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}te.subscribe(()=>{let e=te.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&te.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&te.dispatch("TEARDOWN",n)}});var re=n(4335),oe=n(5451),ie=n(8975),se=n(7442),ae=n(3149);let le=(0,r.createContext)(!1);function ue(){return(0,r.useContext)(le)}function ce(e){return r.createElement(le.Provider,{value:e.force},e.children)}var de=n(6206),pe=n(9124),fe=n(6992),he=n(4610),me=n(2924);function ge(e){let t=(0,O._)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,me._)(()=>{n.current&&t()})}),[t])}var ve,ye=((ve=ye||{})[ve.Forwards=0]="Forwards",ve[ve.Backwards=1]="Backwards",ve);function be(e,t){let n=(0,r.useRef)([]),o=(0,O._)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,i]of t.entries())if(n.current[r]!==i){let r=o(t,e);return n.current=t,r}},[o,...t])}let we=[];function xe(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)B.vq(n.current)&&t.add(n.current);return t}!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){if(!B.Lk(e.target)||e.target===document.body||we[0]===e.target)return;let t=e.target;t=t.closest($.Uo),we.unshift(null!=t?t:e.target),we=we.filter(e=>null!=e&&e.isConnected),we.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var Se=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Se||{});let ke=(0,de.FX)(function(e,t){let n=(0,r.useRef)(null),o=(0,ie.P)(n,t),{initialFocus:i,initialFocusFallback:a,containers:l,features:u=15,...c}=e;(0,re.g)()||(u=0);let d=G(n.current);!function(e,{ownerDocument:t}){let n=!!(8&e),o=function(e=!0){let t=(0,r.useRef)(we.slice());return be(([e],[n])=>{!0===n&&!1===e&&(0,me._)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=we.slice())},[e,we,t]),(0,O._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);be(()=>{n||(0,D.X7)(null==t?void 0:t.body)&&(0,$.pW)(o())},[n]),ge(()=>{n&&(0,$.pW)(o())})}(u,{ownerDocument:d});let p=function(e,{ownerDocument:t,container:n,initialFocus:o,initialFocusFallback:i}){let s=(0,r.useRef)(null),a=M(!!(1&e),"focus-trap#initial-focus"),l=(0,he.a)();return be(()=>{if(0===e)return;if(!a)return void(null!=i&&i.current&&(0,$.pW)(i.current));let r=n.current;r&&(0,me._)(()=>{if(!l.current)return;let n=null==t?void 0:t.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===n)return void(s.current=n)}else if(r.contains(n))return void(s.current=n);if(null!=o&&o.current)(0,$.pW)(o.current);else{if(16&e){if((0,$.CU)(r,$.BD.First|$.BD.AutoFocus)!==$.Me.Error)return}else if((0,$.CU)(r,$.BD.First)!==$.Me.Error)return;if(null!=i&&i.current&&((0,$.pW)(i.current),(null==t?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}s.current=null==t?void 0:t.activeElement})},[i,a,e]),s}(u,{ownerDocument:d,container:n,initialFocus:i,initialFocusFallback:a});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=(0,he.a)(),a=!!(4&e);s(null==t?void 0:t.defaultView,"focus",e=>{if(!a||!i.current)return;let t=xe(r);B.sb(n.current)&&t.add(n.current);let s=o.current;if(!s)return;let l=e.target;B.sb(l)?Te(t,l)?(o.current=l,(0,$.pW)(l)):(e.preventDefault(),e.stopPropagation(),(0,$.pW)(s)):(0,$.pW)(o.current)},!0)}(u,{ownerDocument:d,container:n,containers:l,previousActiveElement:p});let f=function(){let e=(0,r.useRef)(0);return W(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}(),h=(0,O._)(e=>{if(!B.sb(n.current))return;let t=n.current;(0,S.Y)(f.current,{[ye.Forwards]:()=>{(0,$.CU)(t,$.BD.First,{skipElements:[e.relatedTarget,a]})},[ye.Backwards]:()=>{(0,$.CU)(t,$.BD.Last,{skipElements:[e.relatedTarget,a]})}})}),m=M(!!(2&u),"focus-trap#tab-lock"),g=(0,fe.L)(),v=(0,r.useRef)(!1),y={ref:o,onKeyDown(e){"Tab"==e.key&&(v.current=!0,g.requestAnimationFrame(()=>{v.current=!1}))},onBlur(e){if(!(4&u))return;let t=xe(l);B.sb(n.current)&&t.add(n.current);let r=e.relatedTarget;B.Lk(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(Te(t,r)||(v.current?(0,$.CU)(n.current,(0,S.Y)(f.current,{[ye.Forwards]:()=>$.BD.Next,[ye.Backwards]:()=>$.BD.Previous})|$.BD.WrapAround,{relativeTo:e.target}):B.Lk(e.target)&&(0,$.pW)(e.target)))}},b=(0,de.Ci)();return r.createElement(r.Fragment,null,m&&r.createElement(q.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:q.u.Focusable}),b({ourProps:y,theirProps:c,defaultTag:"div",name:"FocusTrap"}),m&&r.createElement(q.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:q.u.Focusable}))}),Ee=Object.assign(ke,{features:Se});function Te(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var Pe=n(5795);let _e=r.Fragment,Ae=(0,de.FX)(function(e,t){let{ownerDocument:n=null,...o}=e,i=(0,r.useRef)(null),s=(0,ie.P)((0,ie.a)(e=>{i.current=e}),t),a=G(i.current),l=function(e){let t=ue(),n=(0,r.useContext)(Oe),[o,i]=(0,r.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(p._.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,r.useEffect)(()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))},[o,e]),(0,r.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),o}(null!=n?n:a),u=(0,r.useContext)(ze),c=(0,fe.L)(),d=(0,de.Ci)();return ge(()=>{var e;l&&l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l))}),l?(0,Pe.createPortal)(r.createElement("div",{"data-headlessui-portal":"",ref:e=>{c.dispose(),u&&e&&c.add(u.register(e))}},d({ourProps:{ref:s},theirProps:o,slot:{},defaultTag:_e,name:"Portal"})),l):null}),Ce=r.Fragment,Oe=(0,r.createContext)(null),ze=(0,r.createContext)(null),Re=(0,de.FX)(function(e,t){let n=(0,ie.P)(t),{enabled:o=!0,ownerDocument:i,...s}=e,a=(0,de.Ci)();return o?r.createElement(Ae,{...s,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:_e,name:"Portal"})}),Ie=(0,de.FX)(function(e,t){let{target:n,...o}=e,i={ref:(0,ie.P)(t)},s=(0,de.Ci)();return r.createElement(Oe.Provider,{value:n},s({ourProps:i,theirProps:o,defaultTag:Ce,name:"Popover.Group"}))}),Me=Object.assign(Re,{Group:Ie});var je=n(7832),De=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(De||{}),Le=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Le||{});let Ne={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Fe=(0,r.createContext)(null);function Ve(e){let t=(0,r.useContext)(Fe);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ve),t}return t}function Be(e,t){return(0,S.Y)(t.type,Ne,e,t)}Fe.displayName="DialogContext";let $e=(0,de.FX)(function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-dialog-${n}`,open:s,onClose:a,initialFocus:l,role:u="dialog",autoFocus:c=!0,__demoMode:p=!1,unmount:f=!1,...h}=e,m=(0,r.useRef)(!1);u="dialog"===u||"alertdialog"===u?u:(m.current||(m.current=!0,console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let g=(0,ae.O_)();void 0===s&&null!==g&&(s=(g&ae.Uw.Open)===ae.Uw.Open);let v=(0,r.useRef)(null),y=(0,ie.P)(v,t),b=G(v.current),w=s?0:1,[x,S]=(0,r.useReducer)(Be,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),k=(0,O._)(()=>a(!1)),E=(0,O._)(e=>S({type:0,id:e})),T=!!(0,re.g)()&&0===w,[P,_]=function(){let e=(0,r.useContext)(ze),t=(0,r.useRef)([]),n=(0,O._)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,O._)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),i=(0,r.useMemo)(()=>({register:n,unregister:o,portals:t}),[n,o,t]);return[t,(0,r.useMemo)(()=>function({children:e}){return r.createElement(ze.Provider,{value:i},e)},[i])]}(),C={get current(){var e;return null!=(e=x.panelRef.current)?e:v.current}},R=X(),{resolveContainers:M}=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=(0,O._)(()=>{var r,o;let i=(0,D.TW)(n),s=[];for(let t of e)null!==t&&(B.vq(t)?s.push(t):"current"in t&&B.vq(t.current)&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(r=null==i?void 0:i.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&B.vq(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(o=null==n?void 0:n.getRootNode())?void 0:o.host))||s.some(t=>e.contains(t))||s.push(e));return s});return{resolveContainers:r,contains:(0,O._)(e=>r().some(t=>t.contains(e)))}}({mainTreeNode:R,portals:P,defaultContainers:[C]}),L=null!==g&&(g&ae.Uw.Closing)===ae.Uw.Closing;V(!p&&!L&&T,{allowed:(0,O._)(()=>{var e,t;return[null!=(t=null==(e=v.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,O._)(()=>{var e;return[null!=(e=null==R?void 0:R.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let N=A.get(null);(0,I.s)(()=>{if(T)return N.actions.push(o),()=>N.actions.pop(o)},[N,o,T]);let F=z(N,(0,r.useCallback)(e=>N.selectors.isTop(e,o),[N,o]));(function(e,t,n){let o=(0,i.Y)(n),s=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!(0,$.Bm)(r,$.MZ.Loose)&&-1!==r.tabIndex&&e.preventDefault(),o.current(e,r)},[o,t]),a=(0,r.useRef)(null);H(e,"pointerdown",e=>{var t,n;Z()||(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),H(e,"pointerup",e=>{if(Z()||!a.current)return;let t=a.current;return a.current=null,s(e,()=>t)},!0);let l=(0,r.useRef)({x:0,y:0});H(e,"touchstart",e=>{l.current.x=e.touches[0].clientX,l.current.y=e.touches[0].clientY},!0),H(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-l.current.x)>=30||Math.abs(n-l.current.y)>=30))return s(e,()=>B.Lk(e.target)?e.target:null)},!0),W(e,"blur",e=>s(e,()=>B.Gu(window.document.activeElement)?window.document.activeElement:null),!0)})(F,M,e=>{e.preventDefault(),k()}),j(F,null==b?void 0:b.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),k()}),ne(!p&&!L&&T,b,M),function(e,t,n){let o=(0,i.Y)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:B.sb(t)?t:t.current;if(!n)return;let r=(0,d.e)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>o.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>o.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,o,e])}(T,v,k);let[U,q]=(0,pe.rU)(),K=(0,r.useMemo)(()=>[{dialogState:w,close:k,setTitleId:E,unmount:f},x],[w,k,E,f,x]),J=(0,oe._)({open:0===w}),Y={ref:y,id:o,role:u,tabIndex:-1,"aria-modal":p?void 0:0===w||void 0,"aria-labelledby":x.titleId,"aria-describedby":U,unmount:f},Q=!function(){var e;let[t]=(0,r.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,o]=(0,r.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,I.s)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){o(e.matches)}},[t]),n}(),ee=Se.None;T&&!p&&(ee|=Se.RestoreFocus,ee|=Se.TabLock,c&&(ee|=Se.AutoFocus),Q&&(ee|=Se.InitialFocus));let te=(0,de.Ci)();return r.createElement(ae.$x,null,r.createElement(ce,{force:!0},r.createElement(Me,null,r.createElement(Fe.Provider,{value:K},r.createElement(Ie,{target:v},r.createElement(ce,{force:!1},r.createElement(q,{slot:J},r.createElement(_,null,r.createElement(Ee,{initialFocus:l,initialFocusFallback:v,containers:M,features:ee},r.createElement(se.e,{value:k},te({ourProps:Y,theirProps:h,slot:J,defaultTag:Ue,features:Ze,visible:0===w,name:"Dialog"})))))))))))}),Ue="div",Ze=de.Ac.RenderStrategy|de.Ac.Static,He=(0,de.FX)(function(e,t){let{transition:n=!1,open:o,...i}=e,s=(0,ae.O_)(),a=e.hasOwnProperty("open")||null!==s,l=e.hasOwnProperty("onClose");if(!a&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!s&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===o&&!n||i.static?r.createElement(J,null,r.createElement($e,{ref:t,open:o,...i})):r.createElement(J,null,r.createElement(je.e,{show:o,transition:n,unmount:i.unmount},r.createElement($e,{ref:t,...i})))}),We=(0,de.FX)(function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-dialog-panel-${n}`,transition:i=!1,...s}=e,[{dialogState:a,unmount:l},u]=Ve("Dialog.Panel"),c=(0,ie.P)(t,u.panelRef),d=(0,oe._)({open:0===a}),p=(0,O._)(e=>{e.stopPropagation()}),f={ref:c,id:o,onClick:p},h=i?je._:r.Fragment,m=i?{unmount:l}:{},g=(0,de.Ci)();return r.createElement(h,{...m},g({ourProps:f,theirProps:s,slot:d,defaultTag:"div",name:"Dialog.Panel"}))}),Ge=((0,de.FX)(function(e,t){let{transition:n=!1,...o}=e,[{dialogState:i,unmount:s}]=Ve("Dialog.Backdrop"),a=(0,oe._)({open:0===i}),l={ref:t,"aria-hidden":!0},u=n?je._:r.Fragment,c=n?{unmount:s}:{},d=(0,de.Ci)();return r.createElement(u,{...c},d({ourProps:l,theirProps:o,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,de.FX)(function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:s,setTitleId:a}]=Ve("Dialog.Title"),l=(0,ie.P)(t);(0,r.useEffect)(()=>(a(o),()=>a(null)),[o,a]);let u=(0,oe._)({open:0===s}),c={ref:l,id:o};return(0,de.Ci)()({ourProps:c,theirProps:i,slot:u,defaultTag:"h2",name:"Dialog.Title"})})),qe=Object.assign(He,{Panel:We,Title:Ge,Description:pe.VY})},7651(e,t,n){"use strict";n.d(t,{EN:()=>L});var r=n(4215),o=n(6638),i=n(1609),s=n(4867),a=n(5015),l=n(9821),u=n(5451),c=n(8975),d=n(2888),p=n(7442),f=n(3149),h=n(7280);var m,g=n(5897),v=n(2211),y=n(6206);let b=null!=(m=i.startTransition)?m:function(e){e()};var w,x,S=n(4586),k=((x=k||{})[x.Open=0]="Open",x[x.Closed=1]="Closed",x),E=((w=E||{})[w.ToggleDisclosure=0]="ToggleDisclosure",w[w.CloseDisclosure=1]="CloseDisclosure",w[w.SetButtonId=2]="SetButtonId",w[w.SetPanelId=3]="SetPanelId",w[w.SetButtonElement=4]="SetButtonElement",w[w.SetPanelElement=5]="SetPanelElement",w);let T={0:e=>({...e,disclosureState:(0,g.Y)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},P=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(P);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}P.displayName="DisclosureContext";let A=(0,i.createContext)(null);function C(e){let t=(0,i.useContext)(A);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,C),t}return t}A.displayName="DisclosureAPIContext";let O=(0,i.createContext)(null);function z(e,t){return(0,g.Y)(t.type,T,e,t)}O.displayName="DisclosurePanelContext";let R=i.Fragment,I=y.Ac.RenderStrategy|y.Ac.Static,M=(0,y.FX)(function(e,t){let{defaultOpen:n=!1,...r}=e,o=(0,i.useRef)(null),s=(0,c.P)(t,(0,c.a)(e=>{o.current=e},void 0===e.as||(0,y.zv)(e.as))),l=(0,i.useReducer)(z,{disclosureState:n?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:m},b]=l,w=(0,a._)(e=>{b({type:1});let t=(0,v.TW)(o.current);if(!t||!m)return;let n=e?h.Lk(e)?e:"current"in e&&h.Lk(e.current)?e.current:t.getElementById(m):t.getElementById(m);null==n||n.focus()}),x=(0,i.useMemo)(()=>({close:w}),[w]),S=(0,u._)({open:0===d,close:w}),k={ref:s},E=(0,y.Ci)();return i.createElement(P.Provider,{value:l},i.createElement(A.Provider,{value:x},i.createElement(p.e,{value:w},i.createElement(f.El,{value:(0,g.Y)(d,{0:f.Uw.Open,1:f.Uw.Closed})},E({ourProps:k,theirProps:r,slot:S,defaultTag:R,name:"Disclosure"})))))}),j=(0,y.FX)(function(e,t){let n=(0,i.useId)(),{id:d=`headlessui-disclosure-button-${n}`,disabled:p=!1,autoFocus:f=!1,...m}=e,[g,v]=_("Disclosure.Button"),b=(0,i.useContext)(O),w=null!==b&&b===g.panelId,x=(0,i.useRef)(null),k=(0,c.P)(x,t,(0,a._)(e=>{if(!w)return v({type:4,element:e})}));(0,i.useEffect)(()=>{if(!w)return v({type:2,buttonId:d}),()=>{v({type:2,buttonId:null})}},[d,v,w]);let E=(0,a._)(e=>{var t;if(w){if(1===g.disclosureState)return;switch(e.key){case S.D.Space:case S.D.Enter:e.preventDefault(),e.stopPropagation(),v({type:0}),null==(t=g.buttonElement)||t.focus()}}else switch(e.key){case S.D.Space:case S.D.Enter:e.preventDefault(),e.stopPropagation(),v({type:0})}}),T=(0,a._)(e=>{e.key===S.D.Space&&e.preventDefault()}),P=(0,a._)(e=>{var t;(function(e){let t=e.parentElement,n=null;for(;t&&!h.Er(t);)h.Jb(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(h.Jb(t))return!1;t=t.previousElementSibling}return!0}(n))&&r})(e.currentTarget)||p||(w?(v({type:0}),null==(t=g.buttonElement)||t.focus()):v({type:0}))}),{isFocusVisible:A,focusProps:C}=(0,r.o)({autoFocus:f}),{isHovered:z,hoverProps:R}=(0,o.M)({isDisabled:p}),{pressed:I,pressProps:M}=(0,s.Z)({disabled:p}),j=(0,u._)({open:0===g.disclosureState,hover:z,active:I,disabled:p,focus:A,autofocus:f}),D=(0,l.c)(e,g.buttonElement),L=w?(0,y.v6)({ref:k,type:D,disabled:p||void 0,autoFocus:f,onKeyDown:E,onClick:P},C,R,M):(0,y.v6)({ref:k,id:d,type:D,"aria-expanded":0===g.disclosureState,"aria-controls":g.panelElement?g.panelId:void 0,disabled:p||void 0,autoFocus:f,onKeyDown:E,onKeyUp:T,onClick:P},C,R,M);return(0,y.Ci)()({ourProps:L,theirProps:m,slot:j,defaultTag:"button",name:"Disclosure.Button"})}),D=(0,y.FX)(function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-disclosure-panel-${n}`,transition:o=!1,...s}=e,[l,p]=_("Disclosure.Panel"),{close:h}=C("Disclosure.Panel"),[m,g]=(0,i.useState)(null),v=(0,c.P)(t,(0,a._)(e=>{b(()=>p({type:5,element:e}))}),g);(0,i.useEffect)(()=>(p({type:3,panelId:r}),()=>{p({type:3,panelId:null})}),[r,p]);let w=(0,f.O_)(),[x,S]=(0,d.p)(o,m,null!==w?(w&f.Uw.Open)===f.Uw.Open:0===l.disclosureState),k=(0,u._)({open:0===l.disclosureState,close:h}),E={ref:v,id:r,...(0,d.B)(S)},T=(0,y.Ci)();return i.createElement(f.$x,null,i.createElement(O.Provider,{value:l.panelId},T({ourProps:E,theirProps:s,slot:k,defaultTag:"div",features:I,visible:x,name:"Disclosure.Panel"})))}),L=Object.assign(M,{Button:j,Panel:D})},4611(e,t,n){"use strict";n.d(t,{D:()=>f});var r=n(1609),o=n(5451),i=n(5448),s=(n(5795),n(9528));let a=(0,r.createContext)(null);function l(e){let[t,n]=(0,r.useState)(null);return r.createElement(a.Provider,{value:{target:t}},e.children,r.createElement(s.j,{features:s.u.Hidden,ref:n}))}var u=n(5953),c=n(6206),d=n(9124),p=n(540);let f=(0,c.FX)(function(e,t){let n=`headlessui-control-${(0,r.useId)()}`,[s,a]=(0,p.b0)(),[f,h]=(0,d.rU)(),m=(0,i._)(),{disabled:g=m||!1,...v}=e,y=(0,o._)({disabled:g}),b={ref:t,disabled:g||void 0,"aria-disabled":g||void 0},w=(0,c.Ci)();return r.createElement(i.S,{value:g},r.createElement(a,{value:s},r.createElement(h,{value:f},r.createElement(u.J,{id:n},w({ourProps:b,theirProps:{...v,children:r.createElement(l,null,"function"==typeof v.children?v.children(y):v.children)},slot:y,defaultTag:"div",name:"Field"})))))})},4586(e,t,n){"use strict";n.d(t,{D:()=>o});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},540(e,t,n){"use strict";n.d(t,{JU:()=>v,b0:()=>m,o2:()=>h});var r=n(1609),o=n(5015),i=n(6339),s=n(5451),a=n(8975),l=n(5448),u=n(5953),c=n(7280),d=n(6206);let p=(0,r.createContext)(null);function f(){let e=(0,r.useContext)(p);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,f),e}return e}function h(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(p))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function m({inherit:e=!1}={}){let t=h(),[n,i]=(0,r.useState)([]),s=e?[t,...n].filter(Boolean):n;return[s.length>0?s.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o._)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(p.Provider,{value:n},e.children)},[i])]}p.displayName="LabelContext";let g=(0,d.FX)(function(e,t){var n;let p=(0,r.useId)(),h=f(),m=(0,u.q)(),g=(0,l._)(),{id:v=`headlessui-label-${p}`,htmlFor:y=(null!=m?m:null==(n=h.props)?void 0:n.htmlFor),passive:b=!1,...w}=e,x=(0,a.P)(t);(0,i.s)(()=>h.register(v),[v,h.register]);let S=(0,o._)(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!c.H5(e.target))&&(c.kS(t)&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),c.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(c.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),k=(0,s._)({...h.slot,disabled:g||!1}),E={ref:x,...h.props,id:v,htmlFor:y,onClick:S};return b&&("onClick"in E&&(delete E.htmlFor,delete E.onClick),"onClick"in w&&delete w.onClick),(0,d.Ci)()({ourProps:E,theirProps:w,slot:k,defaultTag:y?"label":"div",name:h.name||"Label"})}),v=Object.assign(g,{})},1848(e,t,n){"use strict";n.d(t,{oz:()=>U,fu:()=>F,wb:()=>V,Kp:()=>$,T2:()=>B});var r=n(4215),o=n(6638),i=n(1609),s=n(4867),a=n(5015),l=n(6339),u=n(4424),c=n(9821),d=n(5451),p=n(8975),f=n(4610),h=n(9528);function m({onFocus:e}){let[t,n]=(0,i.useState)(!0),r=(0,f.a)();return t?i.createElement(h.j,{as:"button",type:"button",features:h.u.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame(function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)})}}):null}var g=n(4122),v=n(5897),y=n(2924),b=n(2211),w=n(6206);const x=i.createContext(null);function S({children:e}){let t=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(x.Provider,{value:t},e)}function k(e){let t=i.useContext(x);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=i.useId(),[r,o]=t.current.get(e,n);return i.useEffect(()=>o,[]),r}var E,T,P,_=n(4586),A=((P=A||{})[P.Forwards=0]="Forwards",P[P.Backwards=1]="Backwards",P),C=((T=C||{})[T.Less=-1]="Less",T[T.Equal=0]="Equal",T[T.Greater=1]="Greater",T),O=((E=O||{})[E.SetSelectedIndex=0]="SetSelectedIndex",E[E.RegisterTab=1]="RegisterTab",E[E.UnregisterTab=2]="UnregisterTab",E[E.RegisterPanel=3]="RegisterPanel",E[E.UnregisterPanel=4]="UnregisterPanel",E);let z={0(e,t){var n;let r=(0,g.wl)(e.tabs,e=>e.current),o=(0,g.wl)(e.panels,e=>e.current),i=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),s={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,v.Y)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,v.Y)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return s;let o=(0,v.Y)(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...s,selectedIndex:-1===o?e.selectedIndex:o}}let a=r.slice(0,t.index),l=[...r.slice(t.index),...a].find(e=>i.includes(e));if(!l)return s;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===u&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,g.wl)([...e.tabs,t.tab],e=>e.current),o=e.selectedIndex;return e.info.current.isControlled||(o=r.indexOf(n),-1===o&&(o=e.selectedIndex)),{...e,tabs:r,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,g.wl)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},R=(0,i.createContext)(null);function I(e){let t=(0,i.useContext)(R);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,I),t}return t}R.displayName="TabsDataContext";let M=(0,i.createContext)(null);function j(e){let t=(0,i.useContext)(M);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,j),t}return t}function D(e,t){return(0,v.Y)(t.type,z,e,t)}M.displayName="TabsActionsContext";let L=w.Ac.RenderStrategy|w.Ac.Static,N=(0,w.FX)(function(e,t){var n,u;let f=(0,i.useId)(),{id:h=`headlessui-tabs-tab-${f}`,disabled:m=!1,autoFocus:x=!1,...S}=e,{orientation:E,activation:T,selectedIndex:P,tabs:A,panels:C}=I("Tab"),O=j("Tab"),z=I("Tab"),[R,M]=(0,i.useState)(null),D=(0,i.useRef)(null),L=(0,p.P)(D,t,M);(0,l.s)(()=>O.registerTab(D),[O,D]);let N=k("tabs"),F=A.indexOf(D);-1===F&&(F=N);let V=F===P,B=(0,a._)(e=>{let t=e();if(t===g.Me.Success&&"auto"===T){let e=(0,b.bq)(D.current),t=z.tabs.findIndex(t=>t.current===e);-1!==t&&O.change(t)}return t}),$=(0,a._)(e=>{let t=A.map(e=>e.current).filter(Boolean);if(e.key===_.D.Space||e.key===_.D.Enter)return e.preventDefault(),e.stopPropagation(),void O.change(F);switch(e.key){case _.D.Home:case _.D.PageUp:return e.preventDefault(),e.stopPropagation(),B(()=>(0,g.CU)(t,g.BD.First));case _.D.End:case _.D.PageDown:return e.preventDefault(),e.stopPropagation(),B(()=>(0,g.CU)(t,g.BD.Last))}return B(()=>(0,v.Y)(E,{vertical:()=>e.key===_.D.ArrowUp?(0,g.CU)(t,g.BD.Previous|g.BD.WrapAround):e.key===_.D.ArrowDown?(0,g.CU)(t,g.BD.Next|g.BD.WrapAround):g.Me.Error,horizontal:()=>e.key===_.D.ArrowLeft?(0,g.CU)(t,g.BD.Previous|g.BD.WrapAround):e.key===_.D.ArrowRight?(0,g.CU)(t,g.BD.Next|g.BD.WrapAround):g.Me.Error}))===g.Me.Success?e.preventDefault():void 0}),U=(0,i.useRef)(!1),Z=(0,a._)(()=>{var e;U.current||(U.current=!0,null==(e=D.current)||e.focus({preventScroll:!0}),O.change(F),(0,y._)(()=>{U.current=!1}))}),H=(0,a._)(e=>{e.preventDefault()}),{isFocusVisible:W,focusProps:G}=(0,r.o)({autoFocus:x}),{isHovered:q,hoverProps:K}=(0,o.M)({isDisabled:m}),{pressed:J,pressProps:X}=(0,s.Z)({disabled:m}),Y=(0,d._)({selected:V,hover:q,active:J,focus:W,autofocus:x,disabled:m}),Q=(0,w.v6)({ref:L,onKeyDown:$,onMouseDown:H,onClick:Z,id:h,role:"tab",type:(0,c.c)(e,R),"aria-controls":null==(u=null==(n=C[F])?void 0:n.current)?void 0:u.id,"aria-selected":V,tabIndex:V?0:-1,disabled:m||void 0,autoFocus:x},G,K,X);return(0,w.Ci)()({ourProps:Q,theirProps:S,slot:Y,defaultTag:"button",name:"Tabs.Tab"})}),F=(0,w.FX)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:s,selectedIndex:c=null,...f}=e;const h=r?"vertical":"horizontal",v=o?"manual":"auto";let y=null!==c,b=(0,u.Y)({isControlled:y}),x=(0,p.P)(t),[k,E]=(0,i.useReducer)(D,{info:b,selectedIndex:null!=c?c:n,tabs:[],panels:[]}),T=(0,d._)({selectedIndex:k.selectedIndex}),P=(0,u.Y)(s||(()=>{})),_=(0,u.Y)(k.tabs),A=(0,i.useMemo)(()=>({orientation:h,activation:v,...k}),[h,v,k]),C=(0,a._)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),O=(0,a._)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),z=(0,a._)(e=>{I.current!==e&&P.current(e),y||E({type:0,index:e})}),I=(0,u.Y)(y?e.selectedIndex:k.selectedIndex),j=(0,i.useMemo)(()=>({registerTab:C,registerPanel:O,change:z}),[]);(0,l.s)(()=>{E({type:0,index:null!=c?c:n})},[c]),(0,l.s)(()=>{if(void 0===I.current||k.tabs.length<=0)return;let e=(0,g.wl)(k.tabs,e=>e.current);e.some((e,t)=>k.tabs[t]!==e)&&z(e.indexOf(k.tabs[I.current]))});let L={ref:x},N=(0,w.Ci)();return i.createElement(S,null,i.createElement(M.Provider,{value:j},i.createElement(R.Provider,{value:A},A.tabs.length<=0&&i.createElement(m,{onFocus:()=>{var e,t;for(let n of _.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),N({ourProps:L,theirProps:f,slot:T,defaultTag:"div",name:"Tabs"}))))}),V=(0,w.FX)(function(e,t){let{orientation:n,selectedIndex:r}=I("Tab.List"),o=(0,p.P)(t),i=(0,d._)({selectedIndex:r}),s=e,a={ref:o,role:"tablist","aria-orientation":n};return(0,w.Ci)()({ourProps:a,theirProps:s,slot:i,defaultTag:"div",name:"Tabs.List"})}),B=(0,w.FX)(function(e,t){let{selectedIndex:n}=I("Tab.Panels"),r=(0,p.P)(t),o=(0,d._)({selectedIndex:n}),i=e,s={ref:r};return(0,w.Ci)()({ourProps:s,theirProps:i,slot:o,defaultTag:"div",name:"Tabs.Panels"})}),$=(0,w.FX)(function(e,t){var n,o,s,a;let u=(0,i.useId)(),{id:c=`headlessui-tabs-panel-${u}`,tabIndex:f=0,...m}=e,{selectedIndex:g,tabs:v,panels:y}=I("Tab.Panel"),b=j("Tab.Panel"),x=(0,i.useRef)(null),S=(0,p.P)(x,t);(0,l.s)(()=>b.registerPanel(x),[b,x]);let E=k("panels"),T=y.indexOf(x);-1===T&&(T=E);let P=T===g,{isFocusVisible:_,focusProps:A}=(0,r.o)(),C=(0,d._)({selected:P,focus:_}),O=(0,w.v6)({ref:S,id:c,role:"tabpanel","aria-labelledby":null==(o=null==(n=v[T])?void 0:n.current)?void 0:o.id,tabIndex:P?f:-1},A),z=(0,w.Ci)();return P||null!=(s=m.unmount)&&!s||null!=(a=m.static)&&a?z({ourProps:O,theirProps:m,slot:C,defaultTag:"div",features:L,visible:P,name:"Tabs.Panel"}):i.createElement(h.j,{"aria-hidden":"true",...O})}),U=Object.assign(N,{Group:F,List:V,Panels:B,Panel:$})},1062(e,t,n){"use strict";n.d(t,{T:()=>p});var r=n(4215),o=n(6638),i=n(1609),s=n(5451),a=n(5448),l=n(5953),u=n(6206),c=n(9124),d=n(540);let p=(0,u.FX)(function(e,t){let n=(0,i.useId)(),p=(0,l.q)(),f=(0,a._)(),{id:h=p||`headlessui-textarea-${n}`,disabled:m=f||!1,autoFocus:g=!1,invalid:v=!1,...y}=e,b=(0,d.o2)(),w=(0,c.MM)(),{isFocused:x,focusProps:S}=(0,r.o)({autoFocus:g}),{isHovered:k,hoverProps:E}=(0,o.M)({isDisabled:m}),T=(0,u.v6)({ref:t,id:h,"aria-labelledby":b,"aria-describedby":w,"aria-invalid":v?"true":void 0,disabled:m||void 0,autoFocus:g},S,E),P=(0,s._)({disabled:m,invalid:v,hover:k,focus:x,autofocus:g});return(0,u.Ci)()({ourProps:T,theirProps:y,slot:P,defaultTag:"textarea",name:"Textarea"})})},7832(e,t,n){"use strict";n.d(t,{_:()=>_,e:()=>A});var r=n(1609),o=n(6992),i=n(5015),s=n(4610),a=n(6339),l=n(4424),u=n(4335),c=n(8975),d=n(2888),p=n(3149),f=n(6421),h=n(5897),m=n(6206);function g(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!(0,m.zv)(null!=(t=e.as)?t:k)||1===r.Children.count(e.children)}let v=(0,r.createContext)(null);v.displayName="TransitionContext";var y,b=((y=b||{}).Visible="visible",y.Hidden="hidden",y);let w=(0,r.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function S(e,t){let n=(0,l.Y)(e),a=(0,r.useRef)([]),u=(0,s.a)(),c=(0,o.L)(),d=(0,i._)((e,t=m.mK.Hidden)=>{let r=a.current.findIndex(({el:t})=>t===e);-1!==r&&((0,h.Y)(t,{[m.mK.Unmount](){a.current.splice(r,1)},[m.mK.Hidden](){a.current[r].state="hidden"}}),c.microTask(()=>{var e;!x(a)&&u.current&&(null==(e=n.current)||e.call(n))}))}),p=(0,i._)(e=>{let t=a.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>d(e,m.mK.Unmount)}),f=(0,r.useRef)([]),g=(0,r.useRef)(Promise.resolve()),v=(0,r.useRef)({enter:[],leave:[]}),y=(0,i._)((e,n,r)=>{f.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{f.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(v.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),b=(0,i._)((e,t,n)=>{Promise.all(v.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=f.current.shift())||e()}).then(()=>n(t))});return(0,r.useMemo)(()=>({children:a,register:p,unregister:d,onStart:y,onStop:b,wait:g,chains:v}),[p,d,a,y,b,v,g])}w.displayName="NestingContext";let k=r.Fragment,E=m.Ac.RenderStrategy,T=(0,m.FX)(function(e,t){let{show:n,appear:o=!1,unmount:s=!0,...l}=e,d=(0,r.useRef)(null),f=g(e),h=(0,c.P)(...f?[d,t]:null===t?[]:[t]);(0,u.g)();let y=(0,p.O_)();if(void 0===n&&null!==y&&(n=(y&p.Uw.Open)===p.Uw.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[b,k]=(0,r.useState)(n?"visible":"hidden"),T=S(()=>{n||k("hidden")}),[_,A]=(0,r.useState)(!0),C=(0,r.useRef)([n]);(0,a.s)(()=>{!1!==_&&C.current[C.current.length-1]!==n&&(C.current.push(n),A(!1))},[C,n]);let O=(0,r.useMemo)(()=>({show:n,appear:o,initial:_}),[n,o,_]);(0,a.s)(()=>{n?k("visible"):!x(T)&&null!==d.current&&k("hidden")},[n,T]);let z={unmount:s},R=(0,i._)(()=>{var t;_&&A(!1),null==(t=e.beforeEnter)||t.call(e)}),I=(0,i._)(()=>{var t;_&&A(!1),null==(t=e.beforeLeave)||t.call(e)}),M=(0,m.Ci)();return r.createElement(w.Provider,{value:T},r.createElement(v.Provider,{value:O},M({ourProps:{...z,as:r.Fragment,children:r.createElement(P,{ref:h,...z,...l,beforeEnter:R,beforeLeave:I})},theirProps:{},defaultTag:r.Fragment,features:E,visible:"visible"===b,name:"Transition"})))}),P=(0,m.FX)(function(e,t){var n,o;let{transition:s=!0,beforeEnter:l,afterEnter:y,beforeLeave:b,afterLeave:T,enter:P,enterFrom:_,enterTo:A,entered:C,leave:O,leaveFrom:z,leaveTo:R,...I}=e,[M,j]=(0,r.useState)(null),D=(0,r.useRef)(null),L=g(e),N=(0,c.P)(...L?[D,t,j]:null===t?[]:[t]),F=null==(n=I.unmount)||n?m.mK.Unmount:m.mK.Hidden,{show:V,appear:B,initial:$}=function(){let e=(0,r.useContext)(v);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[U,Z]=(0,r.useState)(V?"visible":"hidden"),H=function(){let e=(0,r.useContext)(w);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:W,unregister:G}=H;(0,a.s)(()=>W(D),[W,D]),(0,a.s)(()=>{if(F===m.mK.Hidden&&D.current)return V&&"visible"!==U?void Z("visible"):(0,h.Y)(U,{hidden:()=>G(D),visible:()=>W(D)})},[U,D,W,G,V,F]);let q=(0,u.g)();(0,a.s)(()=>{if(L&&q&&"visible"===U&&null===D.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[D,U,q,L]);let K=$&&!B,J=B&&V&&$,X=(0,r.useRef)(!1),Y=S(()=>{X.current||(Z("hidden"),G(D))},H),Q=(0,i._)(e=>{X.current=!0;let t=e?"enter":"leave";Y.onStart(D,t,e=>{"enter"===e?null==l||l():"leave"===e&&(null==b||b())})}),ee=(0,i._)(e=>{let t=e?"enter":"leave";X.current=!1,Y.onStop(D,t,e=>{"enter"===e?null==y||y():"leave"===e&&(null==T||T())}),"leave"===t&&!x(Y)&&(Z("hidden"),G(D))});(0,r.useEffect)(()=>{L&&s||(Q(V),ee(V))},[V,L,s]);let te=!(!s||!L||!q||K),[,ne]=(0,d.p)(te,M,V,{start:Q,end:ee}),re=(0,m.oE)({ref:N,className:(null==(o=(0,f.x)(I.className,J&&P,J&&_,ne.enter&&P,ne.enter&&ne.closed&&_,ne.enter&&!ne.closed&&A,ne.leave&&O,ne.leave&&!ne.closed&&z,ne.leave&&ne.closed&&R,!ne.transition&&V&&C))?void 0:o.trim())||void 0,...(0,d.B)(ne)}),oe=0;"visible"===U&&(oe|=p.Uw.Open),"hidden"===U&&(oe|=p.Uw.Closed),V&&"hidden"===U&&(oe|=p.Uw.Opening),!V&&"visible"===U&&(oe|=p.Uw.Closing);let ie=(0,m.Ci)();return r.createElement(w.Provider,{value:Y},r.createElement(p.El,{value:oe},ie({ourProps:re,theirProps:I,defaultTag:k,features:E,visible:"visible"===U,name:"Transition.Child"})))}),_=(0,m.FX)(function(e,t){let n=null!==(0,r.useContext)(v),o=null!==(0,p.O_)();return r.createElement(r.Fragment,null,!n&&o?r.createElement(T,{ref:t,...e}):r.createElement(P,{ref:t,...e}))}),A=Object.assign(T,{Child:_,Root:T})},4867(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(1609),o=n(2211),i=n(6992),s=n(5015);function a({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,a]=(0,r.useState)(!1),l=(0,i.L)(),u=(0,s._)(()=>{t.current=null,a(!1),l.dispose()}),c=(0,s._)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let n=(0,o.TW)(e.currentTarget);l.addEventListener(n,"pointerup",u,!1),l.addEventListener(n,"pointermove",e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);a(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),l.addEventListener(n,"pointercancel",u,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},6992(e,t,n){"use strict";n.d(t,{L:()=>i});var r=n(1609),o=n(2599);function i(){let[e]=(0,r.useState)(o.e);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},5015(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(1609),o=n(4424);let i=function(e){let t=(0,o.Y)(e);return r.useCallback((...e)=>t.current(...e),[t])}},4610(e,t,n){"use strict";n.d(t,{a:()=>i});var r=n(1609),o=n(6339);function i(){let e=(0,r.useRef)(!1);return(0,o.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},6339(e,t,n){"use strict";n.d(t,{s:()=>i});var r=n(1609),o=n(9851);let i=(e,t)=>{o._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},4424(e,t,n){"use strict";n.d(t,{Y:()=>i});var r=n(1609),o=n(6339);function i(e){let t=(0,r.useRef)(e);return(0,o.s)(()=>{t.current=e},[e]),t}},9821(e,t,n){"use strict";n.d(t,{c:()=>o});var r=n(1609);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}},4335(e,t,n){"use strict";var r;n.d(t,{g:()=>s});var o=n(1609),i=n(9851);function s(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in(r||(r=n.t(o,2)))&&(r||(r=n.t(o,2))).useSyncExternalStore(()=>()=>{},()=>!1,()=>!e)}(),[t,s]=o.useState(i._.isHandoffComplete);return t&&!1===i._.isHandoffComplete&&s(!1),o.useEffect(()=>{!0!==t&&s(!0)},[t]),o.useEffect(()=>i._.handoff(),[]),!e&&t}},5451(e,t,n){"use strict";n.d(t,{_:()=>o});var r=n(1609);function o(e){return(0,r.useMemo)(()=>e,Object.values(e))}},8975(e,t,n){"use strict";n.d(t,{P:()=>a,a:()=>s});var r=n(1609),o=n(5015);let i=Symbol();function s(e,t=!0){return Object.assign(e,{[i]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o._)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:n}},2888(e,t,n){"use strict";n.d(t,{B:()=>d,p:()=>p});var r,o,i=n(1609),s=n(2599),a=n(6992),l=n(6339);"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(r=null==process?void 0:process.env)?void 0:r.NODE_ENV)&&void 0===(null==(o=null==Element?void 0:Element.prototype)?void 0:o.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var u,c=((u=c||{})[u.None=0]="None",u[u.Closed=1]="Closed",u[u.Enter=2]="Enter",u[u.Leave=4]="Leave",u);function d(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function p(e,t,n,r){let[o,u]=(0,i.useState)(n),{hasFlag:c,addFlag:d,removeFlag:p}=function(e=0){let[t,n]=(0,i.useState)(e),r=(0,i.useCallback)(e=>n(e),[]),o=(0,i.useCallback)(e=>n(t=>t|e),[]),s=(0,i.useCallback)(e=>(t&e)===e,[t]),a=(0,i.useCallback)(e=>n(t=>t&~e),[]),l=(0,i.useCallback)(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:s,removeFlag:a,toggleFlag:l}}(e&&o?3:0),f=(0,i.useRef)(!1),h=(0,i.useRef)(!1),m=(0,a.L)();return(0,l.s)(()=>{var o;if(e)return n&&u(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=(0,s.e)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(function(e,t){var n,r;let o=(0,s.e)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map(e=>e.finished)).then(()=>{i||t()}),o.dispose)}(e,r))})}),i.dispose}(t,{inFlight:f,prepare(){h.current?h.current=!1:h.current=f.current,f.current=!0,!h.current&&(n?(d(3),p(4)):(d(4),p(2)))},run(){h.current?n?(p(3),d(4)):(p(4),d(3)):n?p(1):d(1)},done(){var e;h.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(f.current=!1,p(7),n||u(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&d(3))},[e,n,t,m]),e?[o,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},7442(e,t,n){"use strict";n.d(t,{e:()=>i});var r=n(1609);let o=(0,r.createContext)(()=>{});function i({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},5448(e,t,n){"use strict";n.d(t,{S:()=>s,_:()=>i});var r=n(1609);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function s({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},9528(e,t,n){"use strict";n.d(t,{j:()=>s,u:()=>i});var r,o=n(6206),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let s=(0,o.FX)(function(e,t){var n;let{features:r=1,...i}=e,s={ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return(0,o.Ci)()({ourProps:s,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},5953(e,t,n){"use strict";n.d(t,{J:()=>s,q:()=>i});var r=n(1609);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function s({id:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},3149(e,t,n){"use strict";n.d(t,{$x:()=>u,El:()=>l,O_:()=>a,Uw:()=>s});var r=n(1609);let o=(0,r.createContext)(null);o.displayName="OpenClosedContext";var i,s=((i=s||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i);function a(){return(0,r.useContext)(o)}function l({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}function u({children:e}){return r.createElement(o.Provider,{value:null},e)}},6421(e,t,n){"use strict";function r(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{x:()=>r})},2599(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(2924);function o(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return(0,r._)(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=o();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},7280(e,t,n){"use strict";function r(e){return function(e){return"object"==typeof e&&null!==e&&"nodeType"in e}(e)&&"tagName"in e}function o(e){return r(e)&&"accessKey"in e}function i(e){return r(e)&&"tabIndex"in e}function s(e){return r(e)&&"style"in e}function a(e){return o(e)&&"IFRAME"===e.nodeName}function l(e){return o(e)&&"INPUT"===e.nodeName}function u(e){return o(e)&&"LABEL"===e.nodeName}function c(e){return o(e)&&"FIELDSET"===e.nodeName}function d(e){return o(e)&&"LEGEND"===e.nodeName}function p(e){return!!r(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}n.d(t,{A3:()=>l,Er:()=>c,Gu:()=>a,H5:()=>p,Jb:()=>d,Lk:()=>i,kS:()=>u,pv:()=>s,sb:()=>o,vq:()=>r})},9851(e,t,n){"use strict";n.d(t,{_:()=>i});var r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let i=new class{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},4122(e,t,n){"use strict";n.d(t,{BD:()=>c,Bm:()=>h,CU:()=>b,MZ:()=>f,Me:()=>d,Uo:()=>i,pW:()=>g,wl:()=>y});var r=n(5897),o=n(2211);let i=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),s=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var a,l,u,c=((u=c||{})[u.First=1]="First",u[u.Previous=2]="Previous",u[u.Next=4]="Next",u[u.Last=8]="Last",u[u.WrapAround=16]="WrapAround",u[u.NoScroll=32]="NoScroll",u[u.AutoFocus=64]="AutoFocus",u),d=((l=d||{})[l.Error=0]="Error",l[l.Overflow=1]="Overflow",l[l.Success=2]="Success",l[l.Underflow=3]="Underflow",l),p=((a=p||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);var f=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(f||{});function h(e,t=0){var n;return e!==(null==(n=(0,o.TW)(e))?void 0:n.body)&&(0,r.Y)(t,{0:()=>e.matches(i),1(){let t=e;for(;null!==t;){if(t.matches(i))return!0;t=t.parentElement}return!1}})}var m=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(m||{});function g(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let v=["textarea","input"].join(",");function y(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:a=[]}={}){let l=Array.isArray(e)?e.length>0?(0,o.zm)(e[0]):document:(0,o.zm)(e),u=Array.isArray(e)?n?y(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(i)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==l?void 0:l.activeElement;let c,d=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(r))-1;if(4&t)return Math.max(0,u.indexOf(r))+1;if(8&t)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,m=u.length;do{if(h>=m||h+m<=0)return 0;let e=p+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}c=u[e],null==c||c.focus(f),h+=d}while(c!==(0,o.bq)(c));return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,v))&&n}(c)&&c.select(),2}},5897(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{Y:()=>r})},2924(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{_:()=>r})},2211(e,t,n){"use strict";n.d(t,{TW:()=>o,X7:()=>a,bq:()=>s,zm:()=>i});var r=n(9851);function o(e){var t;return r._.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function i(e){var t,n;return r._.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function s(e){var t,n;return null!=(n=null==(t=i(e))?void 0:t.activeElement)?n:null}function a(e){return s(e)===e}},6206(e,t,n){"use strict";n.d(t,{Ac:()=>l,Ci:()=>c,FX:()=>m,mK:()=>u,oE:()=>g,v6:()=>h,zv:()=>b});var r,o,i=n(1609),s=n(6421),a=n(5897),l=((o=l||{})[o.None=0]="None",o[o.RenderStrategy=1]="RenderStrategy",o[o.Static=2]="Static",o),u=((r=u||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function c(){let e=function(){let e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,i.useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:l}){l=null!=l?l:p;let u=f(t,e);if(i)return d(u,n,r,s,l);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=u;if(e)return d(t,n,r,s,l)}if(1&c){let{unmount:e=!0,...t}=u;return(0,a.Y)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,r,s,l)})}return d(u,n,r,s,l)}({mergeRefs:e,...t}),[e])}function d(e,t={},n,r,o){let{as:a=n,children:l,refName:u="ref",...c}=v(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},p="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){h["data-headlessui-state"]=n.join(" ");for(let e of n)h[`data-${e}`]=""}}if(b(a)&&(Object.keys(g(c)).length>0||Object.keys(g(h)).length>0)){if(!(!(0,i.isValidElement)(p)||Array.isArray(p)&&p.length>1||function(e){return b(e.type)}(p))){let e=p.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,s.x)(t(...e),c.className):(0,s.x)(t,c.className),r=n?{className:n}:{},a=f(p.props,g(v(c,["ref"])));for(let e in h)e in a&&delete h[e];return(0,i.cloneElement)(p,Object.assign({},a,h,d,{ref:o(y(p),d.ref)},r))}if(Object.keys(g(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(g(c)).concat(Object.keys(g(h))).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"))}return(0,i.createElement)(a,Object.assign({},v(c,["ref"]),!b(a)&&d,!b(a)&&h),p)}function p(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function f(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function y(e){return i.version.split(".")[0]>="19"?e.props.ref:e.ref}function b(e){return e===i.Fragment||e===Symbol.for("react.fragment")}},4215(e,t,n){"use strict";n.d(t,{o:()=>B});var r=n(1609);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{};function i(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function s(e){let t=(0,r.useRef)({isFocused:!1,observer:null});return o(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,r.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=n=>{if(t.current.isFocused=!1,r.disabled){let t=i(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function a(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function u(e){let t=null;return()=>(null==t&&(t=e()),t)}const c=u(function(){return l(/^Mac/i)}),d=u(function(){return l(/^iPhone/i)}),p=u(function(){return l(/^iPad/i)||c()&&navigator.maxTouchPoints>1}),f=u(function(){return d()||p()}),h=(u(function(){return c()||f()}),u(function(){return a(/AppleWebKit/i)&&!m()})),m=u(function(){return a(/Chrome/i)}),g=u(function(){return a(/Android/i)}),v=u(function(){return a(/Firefox/i)});let y=null;function b(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;v()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(c()?i=!0:s=!0);let u=h()&&c()&&!p()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});b.isOpening=n,function(e){if(function(){if(null==y){y=!1;try{document.createElement("div").focus({get preventScroll(){return y=!0,!0}})}catch{}}return y}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(u),b.isOpening=!1}b.isOpening=!1;var w=n(4836);let x=null,S="keyboard";const k=new Set;let E=new Map,T=!1,P=!1;const _={Tab:!0,Escape:!0};function A(e,t){for(let n of k)n(e,t)}function C(e){T=!0,!b.isOpening&&function(e){return!(e.metaKey||!c()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(x="keyboard",S="keyboard",A("keyboard",e))}function O(e){x="pointer",S="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(T=!0,A("pointer",e))}function z(e){var t;!b.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(g()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(T=!0,x="virtual",S="virtual")}function R(e){e.target!==window&&e.target!==document&&e.isTrusted&&(T||P||(x="virtual",S="virtual",A("virtual",e)),T=!1,P=!1)}function I(){T=!1,P=!0}function M(e){if("undefined"==typeof window||"undefined"==typeof document||E.get((0,w.mD)(e)))return;const t=(0,w.mD)(e),n=(0,w.TW)(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){T=!0,r.apply(this,arguments)},n.addEventListener("keydown",C,!0),n.addEventListener("keyup",C,!0),n.addEventListener("click",z,!0),t.addEventListener("focus",R,!0),t.addEventListener("blur",I,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",O,!0),n.addEventListener("pointermove",O,!0),n.addEventListener("pointerup",O,!0)),t.addEventListener("beforeunload",()=>{j(e)},{once:!0}),E.set(t,{focus:r})}const j=(e,t)=>{const n=(0,w.mD)(e),r=(0,w.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),E.has(n)&&(n.HTMLElement.prototype.focus=E.get(n).focus,r.removeEventListener("keydown",C,!0),r.removeEventListener("keyup",C,!0),r.removeEventListener("click",z,!0),n.removeEventListener("focus",R,!0),n.removeEventListener("blur",I,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",O,!0),r.removeEventListener("pointermove",O,!0),r.removeEventListener("pointerup",O,!0)),E.delete(n))};function D(){return"pointer"!==x}"undefined"!=typeof document&&function(e){const t=(0,w.TW)(e);let n;"loading"!==t.readyState?M(e):(n=()=>{M(e)},t.addEventListener("DOMContentLoaded",n))}();const L=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var N=n(1619);var F=n(6948);function V(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:a}=e,l=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:c}=(0,F.A)(),d=(0,r.useCallback)(e=>{(0,N.sD)(e.currentTarget,e.target)&&l.current.isFocusWithin&&!(0,N.sD)(e.currentTarget,e.relatedTarget)&&(l.current.isFocusWithin=!1,c(),n&&n(e),a&&a(!1))},[n,a,l,c]),p=s(d),f=(0,r.useCallback)(e=>{if(!(0,N.sD)(e.currentTarget,e.target))return;const t=(0,w.TW)(e.target),n=(0,N.bq)(t);if(!l.current.isFocusWithin&&n===(0,N.wt)(e.nativeEvent)){o&&o(e),a&&a(!0),l.current.isFocusWithin=!0,p(e);let n=e.currentTarget;u(t,"focus",e=>{if(l.current.isFocusWithin&&!(0,N.sD)(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let o=i(r);d(o)}},{capture:!0})}},[o,a,p,u,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:d}}}function B(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||D()}),[a,l]=(0,r.useState)(!1),[u,c]=(0,r.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),d=(0,r.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),p=(0,r.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=D(),l(e),d()},[d]);var f,h,m;f=e=>{i.current.isFocusVisible=e,d()},h=[n,a],m={enabled:a,isTextInput:n},M(),(0,r.useEffect)(()=>{if(!1===(null==m?void 0:m.enabled))return;let e=(e,t)=>{(function(e,t,n){let r=(0,w.TW)(null==n?void 0:n.target);const o="undefined"!=typeof window?(0,w.mD)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?(0,w.mD)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,w.mD)(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?(0,w.mD)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!L.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!_[n.key])})(!!(null==m?void 0:m.isTextInput),e,t)&&f(D())};return k.add(e),()=>{k.delete(e)}},h);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)(e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0},[o,i]),l=s(a),u=(0,r.useCallback)(e=>{const t=(0,w.TW)(e.target),r=t?(0,N.bq)(t):(0,N.bq)();e.target===e.currentTarget&&r===(0,N.wt)(e.nativeEvent)&&(n&&n(e),i&&i(!0),l(e))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||o)?u:void 0,onBlur:t||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:p}),{focusWithinProps:v}=V({isDisabled:!o,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:u,focusProps:o?v:g}}},6638(e,t,n){"use strict";n.d(t,{M:()=>d});var r=n(1619),o=n(4836),i=n(6948),s=n(1609);let a=!1,l=0;function u(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},50))}function c(){if("undefined"!=typeof document)return 0===l&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{l--,l>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:l,isDisabled:u}=e,[d,p]=(0,s.useState)(!1),f=(0,s.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,s.useEffect)(c,[]);let{addGlobalListener:h,removeAllGlobalListeners:m}=(0,i.A)(),{hoverProps:g,triggerHoverEnd:v}=(0,s.useMemo)(()=>{let e=(e,t)=>{let r=f.target;f.pointerType="",f.target=null,"touch"!==t&&f.isHovered&&r&&(f.isHovered=!1,m(),l&&l({type:"hoverend",target:r,pointerType:t}),n&&n(!1),p(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=i=>{a&&"mouse"===i.pointerType||((i,s)=>{if(f.pointerType=s,u||"touch"===s||f.isHovered||!(0,r.sD)(i.currentTarget,i.target))return;f.isHovered=!0;let a=i.currentTarget;f.target=a,h((0,o.TW)(i.target),"pointerover",t=>{f.isHovered&&f.target&&!(0,r.sD)(f.target,t.target)&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:s}),n&&n(!0),p(!0)})(i,i.pointerType)},i.onPointerLeave=t=>{!u&&(0,r.sD)(t.currentTarget,t.target)&&e(0,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,l,u,f,h,m]);return(0,s.useEffect)(()=>{u&&v({currentTarget:f.target},f.pointerType)},[u]),{hoverProps:g,isHovered:d}}},1619(e,t,n){"use strict";n.d(t,{bq:()=>o,wt:()=>i,sD:()=>r});n(4836);function r(e,t){return!(!t||!e)&&e.contains(t)}const o=(e=document)=>e.activeElement;function i(e){return e.target}},4836(e,t,n){"use strict";n.d(t,{Ng:()=>i,TW:()=>r,mD:()=>o});const r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function i(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},6948(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(1609);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{var i;let s=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,s,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},319(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6087),o=(0,r.forwardRef)(({icon:e,size:t=24,...n},o)=>(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o}))},1502(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})})},586(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})})},8763(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})})},1573(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})})},6706(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})})},8557(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})})},4794(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})})},9703(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})})},7516(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},6963(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},9383(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},3198(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})})},5492(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},2349(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})})},5367(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},3801(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"})})},1152(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},1037(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},2023(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},974(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})})},6230(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})})},1187(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})})},3488(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})})},2041(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"})})},2762(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"})})},4695(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"})})},8482(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},2344(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},9123(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"})})},6656(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})})},2368(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})})},1284(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})})},7777(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})})},8240(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})})},302(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})})},2189(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.8 12.5h-1.5V15h1.5v1.5Zm2.1-5.6c-.1.5-.4 1.1-.8 1.5-.4.4-.9.7-1.4.8v.8h-1.5v-1.2c0-.6.5-1 .9-1s.7-.2 1-.5c.2-.3.4-.7.4-1 0-.4-.2-.7-.5-1-.3-.3-.6-.4-1-.4s-.8.2-1.1.4c-.3.3-.4.7-.4 1.1H9c0-.6.2-1.1.5-1.6s.7-.9 1.2-1.1c.5-.2 1.1-.3 1.6-.3s1.1.3 1.5.6c.4.3.8.8 1 1.3.2.5.2 1.1.1 1.6Z"})})},6568(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})})},3560(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})})},3473(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},4275(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z"})})},6527(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z"})})},7611(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})})},5974(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",d:"M17.375 15.656A6.47 6.47 0 0018.5 12a6.47 6.47 0 00-.943-3.374l-1.262.813c.448.749.705 1.625.705 2.561a4.977 4.977 0 01-.887 2.844l1.262.813zm-1.951 1.87l-.813-1.261A4.976 4.976 0 0112 17c-.958 0-1.852-.27-2.613-.736l-.812 1.261A6.47 6.47 0 0012 18.5a6.47 6.47 0 003.424-.974zm-8.8-1.87A6.47 6.47 0 015.5 12c0-1.235.344-2.39.943-3.373l1.261.812A4.977 4.977 0 007 12c0 1.056.328 2.036.887 2.843l-1.262.813zm2.581-7.803A4.977 4.977 0 0112 7c1.035 0 1.996.314 2.794.853l.812-1.262A6.47 6.47 0 0012 5.5a6.47 6.47 0 00-3.607 1.092l.812 1.261zM12 20a8 8 0 100-16 8 8 0 000 16zm0-4.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",clipRule:"evenodd"})})},6949(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M5 11.25h14v1.5H5z"})})},7181(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})})},3897(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})})},781(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})},4471(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})})},6039(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"})})},7884(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.jsx)(r.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,o.jsx)(r.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]})},8237(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})})},1450(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},9023(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})})},7809(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})})},9342(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})})},7947(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})})},227(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})})},3725(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},6771(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})})},9533(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"})})},4951(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M16 10h4c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1zm-8 4H4c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h4c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm10-2.6L14.5 15l1.1 1.1 1.7-1.7c-.1 1.1-.3 2.3-.9 2.9-.3.3-.7.5-1.3.5h-4.5v1.5H15c.9 0 1.7-.3 2.3-.9 1-1 1.3-2.7 1.4-4l1.8 1.8 1.1-1.1-3.6-3.7zM6.8 9.7c.1-1.1.3-2.3.9-2.9.4-.4.8-.6 1.3-.6h4.5V4.8H9c-.9 0-1.7.3-2.3.9-1 1-1.3 2.7-1.4 4L3.5 8l-1 1L6 12.6 9.5 9l-1-1-1.7 1.7z"})})},4734(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M7 11.5h10V13H7z"})})},4834(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})})},3518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})})},5069(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},6101(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})})},1844(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})})},8972(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})})},3802(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})})},4891(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})})},1709(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M7.1 5.7 8 6.9c.4-.3.9-.6 1.5-.8l-.6-1.4c-.7.3-1.3.6-1.8 1ZM4.6 8.9l1.4.6c.2-.5.5-1 .8-1.5l-1.2-.9c-.4.6-.8 1.2-1 1.8Zm14.8 0c-.3-.7-.6-1.3-1-1.8l-1.2.9c.3.4.6.9.8 1.5l1.4-.6ZM7.1 18.3c.6.4 1.2.8 1.8 1l.6-1.4c-.5-.2-1-.5-1.5-.8l-.9 1.2ZM5.5 12v-.9h-.7l-.7-.2v2l1.5-.2v-.9Zm-.7 3h-.2c.3.7.6 1.3 1 1.9l1.2-.9c-.3-.4-.6-.9-.8-1.5l-1.2.5Zm9.7 3 .5 1.2v.2c.7-.3 1.3-.6 1.9-1l-.9-1.2c-.4.3-.9.6-1.5.8Zm-2.5.5h-.9l-.2 1.3v.2h2l-.2-1.5h-.9Zm7.9-7.5-1.5.2V13h.7l.7.2v-2ZM18 14.5c-.2.5-.5 1-.8 1.5l1.2.9c.4-.6.8-1.2 1-1.8h-.2l-1.2-.6ZM11 4.1l.2 1.5H13V4.2h-1.9ZM14.5 6c.5.2 1 .5 1.5.8l.9-1.2c-.6-.4-1.2-.8-1.8-1L14.5 6Z"})})},3406(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})})},2097(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})})},34(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"m8.6 7 3.9 10.8h-1.7l-1-2.8H5.7l-1 2.8H3L6.9 7h1.7Zm-2.4 6.6h3L7.7 9.3l-1.5 4.3ZM17.691 8.879c.473 0 .88.055 1.221.165.352.1.643.264.875.495.274.253.456.572.544.957.088.374.132.83.132 1.37v4.554c0 .274.033.472.099.593.077.11.198.166.363.166.11 0 .215-.028.313-.083.11-.055.237-.137.38-.247l.165.28a3.304 3.304 0 0 1-.71.446c-.23.11-.527.165-.89.165-.352 0-.639-.055-.858-.165-.22-.11-.386-.27-.495-.479-.1-.209-.149-.468-.149-.775-.286.462-.627.814-1.023 1.056-.396.242-.858.363-1.386.363-.462 0-.858-.088-1.188-.264a1.752 1.752 0 0 1-.742-.726 2.201 2.201 0 0 1-.248-1.056c0-.484.11-.875.33-1.172.22-.308.5-.556.841-.742.352-.187.721-.341 1.106-.462.396-.132.765-.253 1.106-.363.351-.121.637-.259.857-.413.232-.154.347-.357.347-.61V10.81c0-.396-.066-.71-.198-.941a1.05 1.05 0 0 0-.511-.511 1.763 1.763 0 0 0-.76-.149c-.253 0-.522.039-.808.116a1.165 1.165 0 0 0-.677.412 1.1 1.1 0 0 1 .595.396c.165.187.247.424.247.71 0 .307-.104.55-.313.726-.198.176-.451.263-.76.263-.34 0-.594-.104-.758-.313a1.231 1.231 0 0 1-.248-.759c0-.297.072-.539.214-.726.154-.187.352-.363.595-.528.264-.176.6-.324 1.006-.445.418-.121.88-.182 1.386-.182Zm.99 3.729a1.57 1.57 0 0 1-.528.462c-.231.121-.479.248-.742.38a5.377 5.377 0 0 0-.76.462c-.23.165-.423.38-.577.643-.154.264-.231.6-.231 1.007 0 .429.11.77.33 1.023.22.242.517.363.891.363.308 0 .594-.088.858-.264.275-.176.528-.44.759-.792v-3.284Z"})})},6123(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})})},5506(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})})},9474(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5573),o=n(790),i=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,o.jsx)(r.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})})},1083(e,t,n){"use strict";n.d(t,{A:()=>gt});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>fe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>pe,origin:()=>me});const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:l}=Symbol,u=(c=Object.create(null),e=>{const t=i.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const d=e=>(e=e.toLowerCase(),t=>u(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,h=p("undefined");function m(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=d("ArrayBuffer"),v=p("string"),y=p("function"),b=p("number"),w=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==u(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||a in e)},S=d("Date"),k=d("File"),E=d("Blob"),T=d("FileList"),P=d("URLSearchParams"),[_,A,C,O]=["ReadableStream","Request","Response","Headers"].map(d);function z(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),f(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(m(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function R(e,t){if(m(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,M=e=>!h(e)&&e!==I,j=(D="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>D&&e instanceof D);var D;const L=d("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=d("RegExp"),V=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},B=d("AsyncFunction"),$=(U="function"==typeof setImmediate,Z=y(I.postMessage),U?setImmediate:Z?(H=`axios@${Math.random()}`,W=[],I.addEventListener("message",({source:e,data:t})=>{e===I&&t===H&&W.length&&W.shift()()},!1),e=>{W.push(e),I.postMessage(H,"*")}):e=>setTimeout(e));var U,Z,H,W;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||$,q={isArray:f,isArrayBuffer:g,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:v,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:x,isEmptyObject:e=>{if(!w(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:A,isResponse:C,isHeaders:O,isUndefined:h,isDate:S,isFile:k,isBlob:E,isRegExp:F,isFunction:y,isStream:e=>w(e)&&y(e.pipe),isURLSearchParams:P,isTypedArray:j,isFileList:T,forEach:z,merge:function e(){const{caseless:t,skipUndefined:n}=M(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&R(r,i)||i;x(r[s])&&x(o)?r[s]=e(r[s],o):x(o)?r[s]=e({},o):f(o)?r[s]=o.slice():n&&h(o)||(r[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&y(t)?Object.defineProperty(e,r,{value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:V,freezeMethods:e=>{V(e,(t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:I,isContextDefined:M,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[l]&&e[a])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[r]=e;const o=f(e)?[]:{};return z(e,(e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(w(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:$,asap:G,isIterable:e=>null!=e&&y(e[a])};class K extends Error{static from(e,t,n,r,o,i){const s=new K(e.message,t||e.code,n,r,o);return s.cause=e,s.name=e.name,i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}}K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",K.ERR_BAD_OPTION="ERR_BAD_OPTION",K.ECONNABORTED="ECONNABORTED",K.ETIMEDOUT="ETIMEDOUT",K.ERR_NETWORK="ERR_NETWORK",K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",K.ERR_DEPRECATED="ERR_DEPRECATED",K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",K.ERR_BAD_REQUEST="ERR_BAD_REQUEST",K.ERR_CANCELED="ERR_CANCELED",K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",K.ERR_INVALID_URL="ERR_INVALID_URL";const J=K;function X(e){return q.isPlainObject(e)||q.isArray(e)}function Y(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map(function(e,t){return e=Y(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ee=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)}),te=function(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!q.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(q.isBoolean(e))return e.toString();if(!a&&q.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(X)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(a=q.toArray(e)))return n=Y(n),a.forEach(function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===s?Q([n],r,i):null===s?n:n+"[]",l(e))}),!1;return!!X(e)||(t.append(Q(o,n,i),l(e)),!1)}const c=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:l,isVisitable:X});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),q.forEach(n,function(n,i){!0===(!(q.isUndefined(n)||null===n)&&o.call(t,n,q.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),c.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ie=re;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ae(e,t,n){if(!t)return e;const r=n&&n.encode||se,o=q.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let s;if(s=i?i(t,o):q.isURLSearchParams(t)?t.toString():new ie(t,o).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,function(t){null!==t&&e(t)})}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,fe=de&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ce},ve=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&q.isArray(r)?r.length:i,a?(q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&q.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&q.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(e,r)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},ye={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r?JSON.stringify(ve(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,{visitor:function(e,t,n,r){return ge.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});const be=ye,we=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:q.isArray(e)?e.map(ke):String(e)}function Ee(e,t,n,r,o){return q.isFunction(r)?r.call(this,t,n):(o&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Se(t);if(!o)throw new Error("header name must be a non-empty string");const i=q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ke(e))}const i=(e,t)=>q.forEach(e,(e,n)=>o(e,n,t));if(q.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(q.isObject(e)&&q.isIterable(e)){let n,r,o={};for(const t of e){if(!q.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?q.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Se(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Se(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Se(e)){const o=q.findKey(n,e);!o||t&&!Ee(0,n[o],o,t)||(delete n[o],r=!0)}}return q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ee(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return q.forEach(this,(r,o)=>{const i=q.findKey(n,o);if(i)return t[i]=ke(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=ke(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Se(e);t[r]||(function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),q.freezeMethods(Te);const Pe=Te;function _e(e,t){const n=this||be,r=t||n,o=Pe.from(r.headers);let i=r.data;return q.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}const Ce=class extends J{constructor(e,t,n){super(null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Oe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ze=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=r[s];o||(o=l),n[i]=a,r[i]=l;let c=s,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},i-a)))},()=>n&&s(n)]}(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,l=o(a);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Re=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ie=e=>(...t)=>q.asap(()=>e(...t)),Me=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,je=ge.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];q.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),q.isString(r)&&a.push(`path=${r}`),q.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),q.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function De(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Pe?{...e}:e;function Ne(e,t){t=t||{};const n={};function r(e,t,n,r){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:r},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,n,o){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!q.isUndefined(t))return r(void 0,t)}function s(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(Le(e),Le(t),0,!0)};return q.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=q.hasOwnProp(l,r)?l[r]:o,s=i(e[r],t[r],r);q.isUndefined(s)&&i!==a||(n[r]=s)}),n}const Fe=e=>{const t=Ne({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Pe.from(s),t.url=ae(De(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),q.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(q.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(ge.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(t)),r||!1!==r&&Me(t.url))){const e=o&&i&&je.read(i);e&&s.set(o,e)}return t},Ve="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Fe(e);let o=r.data;const i=Pe.from(r.headers).normalize();let s,a,l,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Pe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Oe(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new J(r,J.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&q.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),q.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,c]=ze(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,u]=ze(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new J("Unsupported protocol "+v+":",J.ERR_BAD_REQUEST,e)):m.send(o||null)})},Be=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new Ce(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>q.asap(s),a}},$e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ue=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*$e(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Ze}=q,He=(({Request:e,Response:t})=>({Request:e,Response:t}))(q.global),{ReadableStream:We,TextEncoder:Ge}=q.global,qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=e=>{e=q.merge.call({skipUndefined:!0},He,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ze(t):"function"==typeof fetch,i=Ze(n),s=Ze(r);if(!o)return!1;const a=o&&Ze(We),l=o&&("function"==typeof Ge?(u=new Ge,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const c=i&&a&&qe(()=>{let e=!1;const t=new n(ge.origin,{body:new We,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&qe(()=>q.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:s,data:a,signal:u,cancelToken:f,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:w}=Fe(e),x=t||fetch;v=v?(v+"").toLowerCase():"text";let S=Be([u,f&&f.toAbortSignal()],h),k=null;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let T;try{if(g&&c&&"get"!==s&&"head"!==s&&0!==(T=await(async(e,t)=>{const r=q.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new n(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await l(e)).byteLength:void 0)})(t):r})(y,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(q.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Re(T,ze(Ie(g)));a=Ue(t.body,65536,e,n)}}q.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,u={...w,signal:S,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};k=i&&new n(o,u);let f=await(i?x(k,w):x(o,u));const h=d&&("stream"===v||"response"===v);if(d&&(m||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=q.toFiniteNumber(f.headers.get("content-length")),[n,o]=m&&Re(t,ze(Ie(m),!0))||[];f=new r(Ue(f.body,65536,n,()=>{o&&o(),E&&E()}),e)}v=v||"text";let P=await p[q.findKey(p,v)||"text"](f,e);return!h&&E&&E(),await new Promise((t,n)=>{Oe(t,n,{data:P,headers:Pe.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:k})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,k,t&&t.response),{cause:t.cause||t});throw J.from(t,t&&t.code,e,k,t&&t.response)}}},Je=new Map,Xe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s,a,l=i.length,u=Je;for(;l--;)s=i[l],a=u.get(s),void 0===a&&u.set(s,a=l?new Map:Ke(t)),u=a;return a},Ye=(Xe(),{http:null,xhr:Ve,fetch:{get:Xe}});q.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,et=e=>q.isFunction(e)||null===e||!1===e,tt=function(e,t){e=q.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=e[s],o=r,!et(r)&&(o=Ye[(n=String(r)).toLowerCase()],void 0===o))throw new J(`Unknown adapter '${n}'`);if(o&&(q.isFunction(o)||(o=o.get(t))))break;i[n||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function rt(e){return nt(e),e.headers=Pe.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter,e)(e).then(function(t){return nt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t},function(t){return Ae(t)||(nt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)})}const ot="1.13.5",it={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{it[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const st={};it.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new J(r(o," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!st[o]&&(st[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},it.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const at={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:it},lt=at.validators;class ut{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ne(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&at.assertOptions(n,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean),legacyInterceptorReqResOrdering:lt.transitional(lt.boolean)},!1),null!=r&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:at.assertOptions(r,{encode:lt.function,serialize:lt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),at.assertOptions(t,{baseUrl:lt.spelling("baseURL"),withXsrfToken:lt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Pe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ue;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=s.length;let p=t;for(;d<c;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rt.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return ae(De((e=Ne(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],function(e){ut.prototype[e]=function(t,n){return this.request(Ne(n||{},{method:e,url:t,data:(n||{}).data}))}}),q.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ne(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),ut.prototype[e+"Form"]=t(!0)});const ct=ut;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Ce(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}const pt=dt,ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ft).forEach(([e,t])=>{ft[t]=e});const ht=ft,mt=function e(t){const n=new ct(t),r=o(ct.prototype.request,n);return q.extend(r,ct.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ne(t,n))},r}(be);mt.Axios=ct,mt.CanceledError=Ce,mt.CancelToken=pt,mt.isCancel=Ae,mt.VERSION=ot,mt.toFormData=te,mt.AxiosError=J,mt.Cancel=mt.CanceledError,mt.all=function(e){return Promise.all(e)},mt.spread=function(e){return function(t){return e.apply(null,t)}},mt.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},mt.mergeConfig=Ne,mt.AxiosHeaders=Pe,mt.formToJSON=e=>ve(q.isHTMLForm(e)?new FormData(e):e),mt.getAdapter=tt,mt.HttpStatusCode=ht,mt.default=mt;const gt=mt},4685(e,t,n){"use strict";n.d(t,{A:()=>o});var r={};!function e(t,n,r,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s="function"==typeof Path2D&&"function"==typeof DOMMatrix,a=function(){if(!t.OffscreenCanvas)return!1;try{var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var r=e.transferToImageBitmap();n.createPattern(r,"no-repeat")}catch(e){return!1}return!0}();function l(){}function u(e){var r=n.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(e):(e(l,l),null)}var c,d,p,f,h,m,g,v,y,b,w,x=(c=a,d=new Map,{transform:function(e){if(c)return e;if(d.has(e))return d.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),d.set(e,t),t},clear:function(){d.clear()}}),S=(h=Math.floor(1e3/60),m={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(e){var t=Math.random();return m[t]=requestAnimationFrame(function n(r){g===r||g+h-1<r?(g=r,delete m[t],e()):m[t]=requestAnimationFrame(n)}),t},f=function(e){m[e]&&cancelAnimationFrame(m[e])}):(p=function(e){return setTimeout(e,h)},f=function(e){return clearTimeout(e)}),{frame:p,cancel:f}),k=(b={},function(){if(v)return v;if(!r&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{v=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,o){if(y)return t(n,null),y;var i=Math.random().toString(36).slice(2);return y=u(function(r){function s(t){t.data.callback===i&&(delete b[i],e.removeEventListener("message",s),y=null,x.clear(),o(),r())}e.addEventListener("message",s),t(n,i),b[i]=s.bind(null,{data:{callback:i}})})},e.reset=function(){for(var t in e.postMessage({reset:!0}),b)b[t](),delete b[t]}}(v)}return v}),E={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function T(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:E[t],n)}function P(e){return e<0?0:Math.floor(e)}function _(e,t){return Math.floor(Math.random()*(t-e))+e}function A(e){return parseInt(e,16)}function C(e){return e.map(O)}function O(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:A(t.substring(0,2)),g:A(t.substring(2,4)),b:A(t.substring(4,6))}}function z(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function R(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function I(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar,flat:e.flat}}function M(e,n){var a,l=!e,c=!!T(n||{},"resize"),d=!1,p=T(n,"disableForReducedMotion",Boolean),f=i&&T(n||{},"useWorker")?k():null,h=l?z:R,m=!(!e||!f||!e.__confetti_initialized),g="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function v(t,n,i){for(var l=T(t,"particleCount",P),c=T(t,"angle",Number),d=T(t,"spread",Number),p=T(t,"startVelocity",Number),f=T(t,"decay",Number),m=T(t,"gravity",Number),g=T(t,"drift",Number),v=T(t,"colors",C),y=T(t,"ticks",Number),b=T(t,"shapes"),w=T(t,"scalar"),k=!!T(t,"flat"),E=function(e){var t=T(e,"origin",Object);return t.x=T(t,"x",Number),t.y=T(t,"y",Number),t}(t),A=l,O=[],z=e.width*E.x,R=e.height*E.y;A--;)O.push(I({x:z,y:R,angle:c,spread:d,startVelocity:p,color:v[A%v.length],shape:b[_(0,b.length)],ticks:y,decay:f,gravity:m,drift:g,scalar:w,flat:k}));return a?a.addFettis(O):(a=function(e,t,n,i,a){var l,c,d=t.slice(),p=e.getContext("2d"),f=u(function(t){function u(){l=c=null,p.clearRect(0,0,i.width,i.height),x.clear(),a(),t()}l=S.frame(function t(){!r||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(n(e),i.width=e.width,i.height=e.height),p.clearRect(0,0,i.width,i.height),(d=d.filter(function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),s&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,n,r,o,i,s){var a=new Path2D(e),l=new Path2D;l.addPath(a,new DOMMatrix(t));var u=new Path2D;return u.addPath(l,new DOMMatrix([Math.cos(s)*o,Math.sin(s)*o,-Math.sin(s)*i,Math.cos(s)*i,n,r])),u}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(i-r),.1*Math.abs(a-o),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var l=Math.PI/10*t.wobble,u=.1*Math.abs(i-r),c=.1*Math.abs(a-o),d=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,f=new DOMMatrix([Math.cos(l)*u,Math.sin(l)*u,-Math.sin(l)*c,Math.cos(l)*c,t.x,t.y]);f.multiplySelf(new DOMMatrix(t.shape.matrix));var h=e.createPattern(x.transform(t.shape.bitmap),"no-repeat");h.setTransform(f),e.globalAlpha=1-n,e.fillStyle=h,e.fillRect(t.x-d/2,t.y-p/2,d,p),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,o,i,s,a){e.save(),e.translate(t,n),e.rotate(i),e.scale(r,o),e.arc(0,0,1,0,a,void 0),e.restore()}(e,t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var m=Math.PI/2*3,g=4*t.scalar,v=8*t.scalar,y=t.x,b=t.y,w=5,S=Math.PI/w;w--;)y=t.x+Math.cos(m)*v,b=t.y+Math.sin(m)*v,e.lineTo(y,b),m+=S,y=t.x+Math.cos(m)*g,b=t.y+Math.sin(m)*g,e.lineTo(y,b),m+=S;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(i),Math.floor(a)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(p,e)})).length?l=S.frame(t):u()}),c=u});return{addFettis:function(e){return d=d.concat(e),f},canvas:e,promise:f,reset:function(){l&&S.cancel(l),c&&c()}}}(e,O,h,n,i),a.promise)}function y(n){var r=p||T(n,"disableForReducedMotion",Boolean),o=T(n,"zIndex",Number);if(r&&g)return u(function(e){e()});l&&a?e=a.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(o),document.body.appendChild(e)),c&&!m&&h(e);var i={width:e.width,height:e.height};function s(){if(f){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return h(t),void f.postMessage({resize:{width:t.width,height:t.height}})}i.width=i.height=null}function y(){a=null,c&&(d=!1,t.removeEventListener("resize",s)),l&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,m=!1)}return f&&!m&&f.init(e),m=!0,f&&(e.__confetti_initialized=!0),c&&!d&&(d=!0,t.addEventListener("resize",s,!1)),f?f.fire(n,i,y):v(n,i,y)}return y.reset=function(){f&&f.reset(),a&&a.reset()},y}function j(){return w||(w=M(null,{useWorker:!0,resize:!0})),w}n.exports=function(){return j().apply(this,arguments)},n.exports.reset=function(){j().reset()},n.exports.create=M,n.exports.shapeFromPath=function(e){if(!s)throw new Error("path confetti are not supported in this browser");var t,n;"string"==typeof e?t=e:(t=e.path,n=e.matrix);var r=new Path2D(t),o=document.createElement("canvas").getContext("2d");if(!n){for(var i,a,l=1e3,u=l,c=l,d=0,p=0,f=0;f<l;f+=2)for(var h=0;h<l;h+=2)o.isPointInPath(r,f,h,"nonzero")&&(u=Math.min(u,f),c=Math.min(c,h),d=Math.max(d,f),p=Math.max(p,h));i=d-u,a=p-c;var m=Math.min(10/i,10/a);n=[m,0,0,m,-Math.round(i/2+u)*m,-Math.round(a/2+c)*m]}return{type:"path",path:t,matrix:n}},n.exports.shapeFromText=function(e){var t,n=1,r="#000000",o='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,o="fontFamily"in e?e.fontFamily:o,r="color"in e?e.color:r);var i=10*n,s=i+"px "+o,a=new OffscreenCanvas(i,i),l=a.getContext("2d");l.font=s;var u=l.measureText(t),c=Math.ceil(u.actualBoundingBoxRight+u.actualBoundingBoxLeft),d=Math.ceil(u.actualBoundingBoxAscent+u.actualBoundingBoxDescent),p=u.actualBoundingBoxLeft+2,f=u.actualBoundingBoxAscent+2;c+=4,d+=4,(l=(a=new OffscreenCanvas(c,d)).getContext("2d")).font=s,l.fillStyle=r,l.fillText(t,p,f);var h=1/n;return{type:"bitmap",bitmap:a.transferToImageBitmap(),matrix:[h,0,0,h,-c*h/2,-d*h/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),r,!1);const o=r.exports;r.exports.create},3640(e,t,n){"use strict";n.d(t,{Mj:()=>A});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},s=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:s(e.r,0,255),g:s(e.g,0,255),b:s(e.b,0,255),a:s(e.a)}},u=function(e){return{r:i(e.r),g:i(e.g),b:i(e.b),a:i(e.a,3)}},c=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},p=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},f=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,a,s,s,l,r][u],g:255*[l,r,r,a,s,s][u],b:255*[s,s,l,r,r,a][u],a:o}},h=function(e){return{h:a(e.h),s:s(e.s,0,100),l:s(e.l,0,100),a:s(e.a)}},m=function(e){return{h:i(e.h),s:i(e.s),l:i(e.l),a:i(e.a,3)}},g=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},v=function(e){return{h:(t=p(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=c.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?i(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?i(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=w.exec(e)||x.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=y.exec(e)||b.exec(e);if(!t)return null;var n,o,i=h({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(r[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return g(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,s=void 0===i?1:i;return o(t)&&o(n)&&o(r)?l({r:Number(t),g:Number(n),b:Number(r),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,s=void 0===i?1:i;if(!o(t)||!o(n)||!o(r))return null;var a=h({h:Number(t),s:Number(n),l:Number(r),a:Number(s)});return g(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,l=void 0===i?1:i;if(!o(t)||!o(n)||!o(r))return null;var u=function(e){return{h:a(e.h),s:s(e.s,0,100),v:s(e.v,0,100),a:s(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(l)});return f(u)},"hsv"]]},k=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},E=function(e,t){var n=v(e);return{h:n.h,s:s(n.s+100*t,0,100),l:n.l,a:n.a}},T=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},P=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:s(n.l+100*t,0,100),a:n.a}},_=function(){function e(e){this.parsed=function(e){return"string"==typeof e?k(e.trim(),S.string):"object"==typeof e&&null!==e?k(e,S.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return i(T(this.rgba),2)},e.prototype.isDark=function(){return T(this.rgba)<.5},e.prototype.isLight=function(){return T(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,s=(o=e.a)<1?d(i(255*o)):"","#"+d(t)+d(n)+d(r)+s;var e,t,n,r,o,s},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return m(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(v(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=p(this.rgba),{h:i(e.h),s:i(e.s),v:i(e.v),a:i(e.a,3)};var e},e.prototype.invert=function(){return A({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),A(E(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),A(E(this.rgba,-e))},e.prototype.grayscale=function(){return A(E(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),A(P(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),A(P(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?A({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):i(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?A({h:e,s:t.s,l:t.l,a:t.a}):i(t.h)},e.prototype.isEqual=function(e){return this.toHex()===A(e).toHex()},e}(),A=function(e){return e instanceof _?e:new _(e)}},6221(e,t,n){"use strict";n.d(t,{N:()=>v});var r=n(790),o=n(1609),i=n(9473),s=n(8601),a=n(6719),l=n(5446);class u extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){const n=(0,o.useId)(),i=(0,o.useRef)(null),s=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,o.useContext)(l.Q);return(0,o.useInsertionEffect)(()=>{const{width:e,height:r,top:o,left:l}=s.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${o}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(u)}},[t]),(0,r.jsx)(u,{isPresent:t,childRef:i,sizeRef:s,children:o.cloneElement(e,{ref:i})})}const d=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:l,presenceAffectsLayout:u,mode:d})=>{const f=(0,s.M)(p),h=(0,o.useId)(),m=(0,o.useCallback)(e=>{f.set(e,!0);for(const e of f.values())if(!e)return;i&&i()},[f,i]),g=(0,o.useMemo)(()=>({id:h,initial:t,isPresent:n,custom:l,onExitComplete:m,register:e=>(f.set(e,!1),()=>f.delete(e))}),u?[Math.random(),m]:[n,m]);return(0,o.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),o.useEffect(()=>{!n&&!f.size&&i&&i()},[n]),"popLayout"===d&&(e=(0,r.jsx)(c,{isPresent:n,children:e})),(0,r.jsx)(a.t.Provider,{value:g,children:e})};function p(){return new Map}var f=n(9120);const h=e=>e.key||"";function m(e){const t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var g=n(5128);const v=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1})=>{const[p,v]=(0,f.xQ)(c),y=(0,o.useMemo)(()=>m(e),[e]),b=c&&!p?[]:y.map(h),w=(0,o.useRef)(!0),x=(0,o.useRef)(y),S=(0,s.M)(()=>new Map),[k,E]=(0,o.useState)(y),[T,P]=(0,o.useState)(y);(0,g.E)(()=>{w.current=!1,x.current=y;for(let e=0;e<T.length;e++){const t=h(T[e]);b.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[T,b.length,b.join("-")]);const _=[];if(y!==k){let e=[...y];for(let t=0;t<T.length;t++){const n=T[t],r=h(n);b.includes(r)||(e.splice(t,0,n),_.push(n))}return"wait"===u&&_.length&&(e=_),P(m(e)),void E(y)}const{forceRender:A}=(0,o.useContext)(i.L);return(0,r.jsx)(r.Fragment,{children:T.map(e=>{const o=h(e),i=!(c&&!p)&&(y===T||b.includes(o));return(0,r.jsx)(d,{isPresent:i,initial:!(w.current&&!n)&&void 0,custom:i?void 0:t,presenceAffectsLayout:l,mode:u,onExitComplete:i?void 0:()=>{if(!S.has(o))return;S.set(o,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==A||A(),P(x.current),c&&(null==v||v()),a&&a())},children:e},o)})})}},9120(e,t,n){"use strict";n.d(t,{xQ:()=>i});var r=n(1609),o=n(6719);function i(e=!0){const t=(0,r.useContext)(o.t);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{e&&s(a)},[e]);const l=(0,r.useCallback)(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,l]:[!0]}},9473(e,t,n){"use strict";n.d(t,{L:()=>r});const r=(0,n(1609).createContext)({})},5446(e,t,n){"use strict";n.d(t,{Q:()=>r});const r=(0,n(1609).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},6719(e,t,n){"use strict";n.d(t,{t:()=>r});const r=(0,n(1609).createContext)(null)},8530(e,t,n){"use strict";n.d(t,{I:()=>i});var r=n(4668);const o=["read","resolveKeyframes","update","preRender","render","postRender"];function i(e,t){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=o.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(a),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:p,render:f,postRender:h}=l,m=()=>{const o=r.W.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,u.process(s),c.process(s),d.process(s),p.process(s),f.process(s),h.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(m))};return{schedule:o.reduce((t,r)=>{const o=l[r];return t[r]=(t,r=!1,a=!1)=>(n||(n=!0,i=!0,s.isProcessing||e(m)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<o.length;t++)l[o[t]].cancel(e)},state:s,steps:l}}},104(e,t,n){"use strict";n.d(t,{Gt:()=>i,PP:()=>l,WG:()=>s,uv:()=>a});var r=n(1533),o=n(8530);const{schedule:i,cancel:s,state:a,steps:l}=(0,o.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},4582(e,t,n){"use strict";n.d(t,{k:()=>a});var r=n(4668),o=n(104);let i;function s(){i=void 0}const a={now:()=>(void 0===i&&a.set(o.uv.isProcessing||r.W.useManualTiming?o.uv.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(s)}}},8845(e,t,n){"use strict";function r(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function o(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{P:()=>Ni});const i=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,r){if("function"==typeof t){const[o,i]=l(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=l(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function c(e,t,n){const r=e.getProps();return u(r,t,void 0!==n?n:r.custom,e)}const d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...d];function f(e){let t;return()=>(void 0===t&&(t=e()),t)}const h=f(()=>void 0!==window.ScrollTimeline);class m{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>h()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g extends m{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function v(e,t){return e?e[t]||e.default||e:void 0}const y=2e4;function b(e){let t=0,n=e.next(t);for(;!n.done&&t<y;)t+=50,n=e.next(t);return t>=y?1/0:t}function w(e){return"function"==typeof e}function x(e,t){e.timeline=t,e.onfinish=null}const S=e=>Array.isArray(e)&&"number"==typeof e[0],k={linearEasing:void 0};function E(e,t){const n=f(e);return()=>{var e;return null!==(e=k[t])&&void 0!==e?e:n()}}const T=E(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var P=n(6896);const _=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e((0,P.q)(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function A(e){return Boolean("function"==typeof e&&T()||!e||"string"==typeof e&&(e in O||T())||S(e)||Array.isArray(e)&&e.every(A))}const C=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,O={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:C([0,.65,.55,1]),circOut:C([.55,0,1,.45]),backIn:C([.31,.01,.66,-.59]),backOut:C([.33,1.53,.69,.99])};function z(e,t){return e?"function"==typeof e&&T()?_(e,t):S(e)?C(e):Array.isArray(e)?e.map(e=>z(e,t)||O.easeOut):O[e]:void 0}const R={x:!1,y:!1};function I(){return R.x||R.y}function M(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function j(e){return t=>{"touch"===t.pointerType||I()||e(t)}}const D=(e,t)=>!!t&&(e===t||D(e,t.parentElement)),L=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,N=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),F=new WeakSet;function V(e){return t=>{"Enter"===t.key&&e(t)}}function B(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function $(e){return L(e)&&!I()}const U=e=>1e3*e,Z=e=>e/1e3;var H=n(1533);const W=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],G=new Set(W),q=new Set(["width","height","top","left","right","bottom",...W]),K=e=>i(e)?e[e.length-1]||0:e;var J=n(4785);function X(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,J.OQ)(n))}const Y=e=>Boolean(e&&e.getVelocity);function Q(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Y(r)&&r.add))return n.add(t);var r}const ee=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),te="data-"+ee("framerAppearId");function ne(e){return e.props[te]}var re=n(104),oe=n(4668);const ie=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function se(e,t,n,r){if(e===t&&n===r)return H.l;return o=>0===o||1===o?o:ie(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=ie(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const ae=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,le=e=>t=>1-e(1-t),ue=se(.33,1.53,.69,.99),ce=le(ue),de=ae(ce),pe=e=>(e*=2)<1?.5*ce(e):.5*(2-Math.pow(2,-10*(e-1))),fe=e=>1-Math.sin(Math.acos(e)),he=le(fe),me=ae(fe),ge=e=>/^0[^.\s]+$/u.test(e);function ve(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||ge(e)}var ye=n(4552),be=n(849);const we=new Set(["brightness","contrast","saturate","opacity"]);function xe(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(be.S)||[];if(!r)return e;const o=n.replace(r,"");let i=we.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Se=/\b([a-z-]*)\(.*?\)/gu,ke={...ye.f,getAnimatableNone:e=>{const t=e.match(Se);return t?t.map(xe).join(" "):e}};var Ee=n(7739),Te=n(2944),Pe=n(5269);const _e={borderWidth:Pe.px,borderTopWidth:Pe.px,borderRightWidth:Pe.px,borderBottomWidth:Pe.px,borderLeftWidth:Pe.px,borderRadius:Pe.px,radius:Pe.px,borderTopLeftRadius:Pe.px,borderTopRightRadius:Pe.px,borderBottomRightRadius:Pe.px,borderBottomLeftRadius:Pe.px,width:Pe.px,maxWidth:Pe.px,height:Pe.px,maxHeight:Pe.px,top:Pe.px,right:Pe.px,bottom:Pe.px,left:Pe.px,padding:Pe.px,paddingTop:Pe.px,paddingRight:Pe.px,paddingBottom:Pe.px,paddingLeft:Pe.px,margin:Pe.px,marginTop:Pe.px,marginRight:Pe.px,marginBottom:Pe.px,marginLeft:Pe.px,backgroundPositionX:Pe.px,backgroundPositionY:Pe.px},Ae={rotate:Pe.uj,rotateX:Pe.uj,rotateY:Pe.uj,rotateZ:Pe.uj,scale:Te.hs,scaleX:Te.hs,scaleY:Te.hs,scaleZ:Te.hs,skew:Pe.uj,skewX:Pe.uj,skewY:Pe.uj,distance:Pe.px,translateX:Pe.px,translateY:Pe.px,translateZ:Pe.px,x:Pe.px,y:Pe.px,z:Pe.px,perspective:Pe.px,transformPerspective:Pe.px,opacity:Te.X4,originX:Pe.gQ,originY:Pe.gQ,originZ:Pe.px},Ce={...Te.ai,transform:Math.round},Oe={..._e,...Ae,zIndex:Ce,size:Pe.px,fillOpacity:Te.X4,strokeOpacity:Te.X4,numOctaves:Ce},ze={...Oe,color:Ee.y,backgroundColor:Ee.y,outlineColor:Ee.y,fill:Ee.y,stroke:Ee.y,borderColor:Ee.y,borderTopColor:Ee.y,borderRightColor:Ee.y,borderBottomColor:Ee.y,borderLeftColor:Ee.y,filter:ke,WebkitFilter:ke},Re=e=>ze[e];function Ie(e,t){let n=Re(e);return n!==ke&&(n=ye.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Me=new Set(["auto","none","0"]),je=e=>e===Te.ai||e===Pe.px,De=(e,t)=>parseFloat(e.split(", ")[t]),Le=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return De(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?De(t[1],e):0}},Ne=new Set(["x","y","z"]),Fe=W.filter(e=>!Ne.has(e)),Ve={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Le(4,13),y:Le(5,14)};Ve.translateX=Ve.x,Ve.translateY=Ve.y;const Be=new Set;let $e=!1,Ue=!1;function Ze(){if(Ue){const e=Array.from(Be).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return Fe.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Ue=!1,$e=!1,Be.forEach(e=>e.complete()),Be.clear()}function He(){Be.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ue=!0)})}class We{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Be.add(this),$e||($e=!0,re.Gt.read(He),re.Gt.resolveKeyframes(Ze))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Be.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Be.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var Ge=n(8104);const qe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Ke=n(568);const Je=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xe(e,t,n=1){(0,Ge.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Je.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return qe(e)?parseFloat(e):e}return(0,Ke.p)(o)?Xe(o,t,n+1):o}const Ye=e=>t=>t.test(e),Qe=[Te.ai,Pe.px,Pe.KN,Pe.uj,Pe.vw,Pe.vh,{test:e=>"auto"===e,parse:e=>e}],et=e=>Qe.find(Ye(e));class tt extends We{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,Ke.p)(r))){const o=Xe(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!q.has(n)||2!==e.length)return;const[r,o]=e,i=et(r),s=et(o);if(i!==s)if(je(i)&&je(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)ve(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Me.has(t)&&(0,ye.V)(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Ie(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ve[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Ve[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}var nt=n(4582);const rt=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!ye.f.test(e)&&"0"!==e||e.startsWith("url(")));function ot(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=rt(o,t),a=rt(i,t);return(0,Ge.$)(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||w(n))&&r)}const it=e=>null!==e;function st(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(it),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class at{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=nt.k.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(He(),Ze()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=nt.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!ot(e,n,r,o)){if(!i)return a&&a(st(e,this.options,t)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var lt=n(2464),ut=n(8799),ct=n(1339),dt=n(7177);function pt(e,t,n){const r=Math.max(t-5,0);return(0,dt.f)(n-e(r),t-r)}const ft=.01,ht=2,mt=.005,gt=.5;function vt(e,t){return e*Math.sqrt(1-t*t)}const yt=["duration","bounce"],bt=["stiffness","damping","mass"];function wt(e,t){return t.some(t=>void 0!==e[t])}function xt(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wt(e,bt)&&wt(e,yt))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*(0,lt.q)(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;(0,Ge.$)(e<=U(10),"Spring duration must be 10 seconds or less");let s=1-t;s=(0,lt.q)(.05,1,s),e=(0,lt.q)(.01,10,Z(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/vt(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=vt(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=U(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Z(n.velocity||0)}),h=p||0,m=u/(2*Math.sqrt(l*c)),g=s-i,v=Z(Math.sqrt(l/c)),w=Math.abs(g)<5;let x;if(r||(r=w?ft:ht),o||(o=w?mt:gt),m<1){const e=vt(v,m);x=t=>{const n=Math.exp(-m*v*t);return s-n*((h+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)x=e=>s-Math.exp(-v*e)*(g+(h+v*g)*e);else{const e=v*Math.sqrt(m*m-1);x=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return s-n*((h+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const S={calculatedDuration:f&&d||null,next:e=>{const t=x(e);if(f)a.done=e>=d;else{let n=0;m<1&&(n=0===e?U(h):pt(x,e,t));const i=Math.abs(n)<=r,l=Math.abs(s-t)<=o;a.done=i&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(b(S),y),t=_(t=>S.next(e*t).value,e,30);return e+"ms "+t}};return S}function St({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,g=void 0===s?m:s(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let w,x;const S=e=>{var t;t=p.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(w=e,x=xt({keyframes:[p.value,f(p.value)],velocity:pt(y,e,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),S(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),p)}}}const kt=se(.42,0,1,1),Et=se(0,0,.58,1),Tt=se(.42,0,.58,1),Pt={linear:H.l,easeIn:kt,easeInOut:Tt,easeOut:Et,circIn:fe,circInOut:me,circOut:he,backIn:ce,backInOut:de,backOut:ue,anticipate:pe},_t=e=>{if(S(e)){(0,Ge.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return se(t,n,r,o)}return"string"==typeof e?((0,Ge.V)(void 0!==Pt[e],`Invalid easing type '${e}'`),Pt[e]):e};var At=n(8844),Ct=n(9713);function Ot({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(_t):_t(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=(0,P.q)(0,t,r);e.push((0,Ct.k)(n,1,o))}}(t,e.length-1),t}(t),e),a=(0,At.G)(s,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map(()=>u||Tt).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const zt=e=>{const t=({timestamp:t})=>e(t);return{start:()=>re.Gt.update(t,!0),stop:()=>(0,re.WG)(t),now:()=>re.uv.isProcessing?re.uv.timestamp:nt.k.now()}},Rt={decay:St,inertia:St,tween:Ot,keyframes:Ot,spring:xt},It=e=>e/100;class Mt extends at{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||We;this.resolver=new i(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=w(t)?t:Rt[t]||Ot;let a,l;s!==Ot&&"number"!=typeof e[0]&&(a=(0,ct.F)(It,(0,ut.j)(e[0],e[1])),e=[0,100]);const u=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=b(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=o;if(p){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1),Boolean(t%2)&&("reverse"===f?(n=1-n,h&&(n-=h/c)):"mirror"===f&&(b=i)),y=(0,lt.q)(0,1,n)*c}const w=v?{done:!1,value:a[0]}:b.next(y);s&&(w.value=s(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==r&&(w.value=st(a,this.options,r)),m&&m(w.value),S&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Z(e.calculatedDuration):0}get time(){return Z(this.currentTime)}set time(e){e=U(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=zt,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const jt=new Set(["opacity","clipPath","filter","transform"]),Dt=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lt={anticipate:pe,backInOut:de,circInOut:me};class Nt extends at{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new tt(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var u;if("string"==typeof o&&T()&&o in Lt&&(o=Lt[o]),w((u=this.options).type)||"spring"===u.type||!A(u.ease)){const{onComplete:t,onUpdate:s,motionValue:a,element:l,...u}=this.options,c=function(e,t){const n=new Mt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,r=c.times,o=c.ease,i="keyframes"}const c=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=z(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(x(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;s.set(st(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Z(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Z(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=U(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return H.l;const{animation:n}=t;x(n,e)}else this.pendingTimeline=e;return H.l}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new Mt({...u,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=U(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return Dt()&&n&&jt.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const Ft={type:"spring",stiffness:500,damping:25,restSpeed:10},Vt={type:"keyframes",duration:.8},Bt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$t=(e,{keyframes:t})=>t.length>2?Vt:G.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ft:Bt,Ut=(e,t,n,r={},o,i)=>s=>{const a=v(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u-=U(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...$t(e,c)}),c.duration&&(c.duration=U(c.duration)),c.repeatDelay&&(c.repeatDelay=U(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),oe.W.skipAnimations&&(d=!0,c.duration=0,c.delay=0),d&&!i&&void 0!==t.get()){const e=st(c.keyframes,a);if(void 0!==e)return re.Gt.update(()=>{c.onUpdate(e),c.onComplete()}),new g([])}return!i&&Nt.supports(c)?new Nt(c):new Mt(c)};function Zt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ht(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&Zt(d,t))continue;const a={delay:n,...v(s||{},t)};let c=!1;if(window.MotionHandoffAnimation){const n=ne(e);if(n){const e=window.MotionHandoffAnimation(n,t,re.Gt);null!==e&&(a.startTime=e,c=!0)}}Q(e,t),r.start(Ut(t,r,o,e.shouldReduceMotion&&q.has(t)?{type:!1}:a,e,c));const p=r.animation;p&&u.push(p)}return a&&Promise.all(u).then(()=>{re.Gt.update(()=>{a&&function(e,t){const n=c(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)X(e,t,K(i[t]))}(e,a)})}),u}function Wt(e,t,n={}){var r;const o=c(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Ht(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Gt).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Wt(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}return Promise.all([s(),a(n.delay)])}function Gt(e,t){return e.sortNodePosition(t)}const qt=p.length;function Kt(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Kt(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<qt;n++){const r=p[n],o=e.props[r];(a(o)||!1===o)&&(t[r]=o)}return t}const Jt=[...d].reverse(),Xt=d.length;function Yt(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Wt(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Wt(e,t,n);else{const o="function"==typeof t?c(e,t,n.custom):t;r=Promise.all(Ht(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=tn(),r=!0;const l=t=>(n,r)=>{var o;const i=c(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function u(u){const{props:c}=e,d=Kt(e.parent)||{},p=[],f=new Set;let h={},m=1/0;for(let t=0;t<Xt;t++){const g=Jt[t],v=n[g],y=void 0!==c[g]?c[g]:d[g],b=a(y),w=g===u?v.isActive:null;!1===w&&(m=t);let x=y===d[g]&&y!==c[g]&&b;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...h},!v.isActive&&null===w||!y&&!v.prevProp||o(y)||"boolean"==typeof y)continue;const S=Qt(v.prevProp,y);let k=S||g===u&&v.isActive&&!x&&b||t>m&&b,E=!1;const T=Array.isArray(y)?y:[y];let P=T.reduce(l(g),{});!1===w&&(P={});const{prevResolvedValues:_={}}=v,A={..._,...P},C=t=>{k=!0,f.has(t)&&(E=!0,f.delete(t)),v.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in A){const t=P[e],n=_[e];if(h.hasOwnProperty(e))continue;let r=!1;r=i(t)&&i(n)?!s(t,n):t!==n,r?null!=t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0}v.prevProp=y,v.prevResolvedValues=P,v.isActive&&(h={...h,...P}),r&&e.blockInitialAnimation&&(k=!1),k&&(!x||!S||E)&&p.push(...T.map(e=>({animation:e,options:{type:g}})))}if(f.size){const t={};f.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null}),p.push({animation:t})}let g=Boolean(p.length);return!r||!1!==c.initial&&c.initial!==c.animate||e.manuallyAnimateOnMount||(g=!1),r=!1,g?t(p):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const i=u(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=tn(),r=!0}}}function Qt(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!s(t,e)}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tn(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class nn{constructor(e){this.isMounted=!1,this.node=e}update(){}}let rn=0;const on={animation:{Feature:class extends nn{constructor(e){super(e),e.animationState||(e.animationState=Yt(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();o(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends nn{constructor(){super(...arguments),this.id=rn++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function sn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function an(e){return{point:{x:e.pageX,y:e.pageY}}}function ln(e,t,n,r){return sn(e,t,(e=>t=>L(t)&&e(t,an(t)))(n),r)}const un=(e,t)=>Math.abs(e-t);class cn{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=fn(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=un(e.x,t.x),r=un(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=re.uv;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=dn(t,this.transformPagePoint),re.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=fn("pointercancel"===e.type?this.lastMoveEventInfo:dn(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!L(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=dn(an(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=re.uv;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,fn(i,this.history)),this.removeListeners=(0,ct.F)(ln(this.contextWindow,"pointermove",this.handlePointerMove),ln(this.contextWindow,"pointerup",this.handlePointerUp),ln(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,re.WG)(this.updatePoint)}}function dn(e,t){return t?{point:t(e.point)}:e}function pn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fn({point:e},t){return{point:e,delta:pn(e,mn(t)),offset:pn(e,hn(t)),velocity:gn(t,.1)}}function hn(e){return e[0]}function mn(e){return e[e.length-1]}function gn(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=mn(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>U(t)));)n--;if(!r)return{x:0,y:0};const i=Z(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vn(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function yn(e){return e.max-e.min}function bn(e,t,n,r=.5){e.origin=r,e.originPoint=(0,Ct.k)(t.min,t.max,e.origin),e.scale=yn(n)/yn(t),e.translate=(0,Ct.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function wn(e,t,n,r){bn(e.x,t.x,n.x,r?r.originX:void 0),bn(e.y,t.y,n.y,r?r.originY:void 0)}function xn(e,t,n){e.min=n.min+t.min,e.max=e.min+yn(t)}function Sn(e,t,n){e.min=t.min-n.min,e.max=e.min+yn(t)}function kn(e,t,n){Sn(e.x,t.x,n.x),Sn(e.y,t.y,n.y)}function En(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Tn(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Pn=.35;function An(e,t,n){return{min:Cn(e,t),max:Cn(e,n)}}function Cn(e,t){return"number"==typeof e?e:e[t]||0}const On=()=>({x:{min:0,max:0},y:{min:0,max:0}});function zn(e){return[e("x"),e("y")]}function Rn({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function In(e){return void 0===e||1===e}function Mn({scale:e,scaleX:t,scaleY:n}){return!In(e)||!In(t)||!In(n)}function jn(e){return Mn(e)||Dn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Dn(e){return Ln(e.x)||Ln(e.y)}function Ln(e){return e&&"0%"!==e}function Nn(e,t,n){return n+t*(e-n)}function Fn(e,t,n,r,o){return void 0!==o&&(e=Nn(e,o,r)),Nn(e,n,r)+t}function Vn(e,t=0,n=1,r,o){e.min=Fn(e.min,t,n,r,o),e.max=Fn(e.max,t,n,r,o)}function Bn(e,{x:t,y:n}){Vn(e.x,t.translate,t.scale,t.originPoint),Vn(e.y,n.translate,n.scale,n.originPoint)}const $n=.999999999999,Un=1.0000000000001;function Zn(e,t){e.min=e.min+t,e.max=e.max+t}function Hn(e,t,n,r,o=.5){Vn(e,t,n,(0,Ct.k)(e.min,e.max,o),r)}function Wn(e,t){Hn(e.x,t.x,t.scaleX,t.scale,t.originX),Hn(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gn(e,t){return Rn(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const qn=({current:e})=>e?e.ownerDocument.defaultView:null,Kn=new WeakMap;class Jn{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new cn(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(an(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?R[i]?null:(R[i]=!0,()=>{R[i]=!1}):R.x||R.y?null:(R.x=R.y=!0,()=>{R.x=R.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Pe.KN.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=yn(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&re.Gt.postRender(()=>o(e,t)),Q(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>zn(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:qn(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&re.Gt.postRender(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Xn(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,Ct.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,Ct.k)(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&vn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:En(e.x,n,o),y:En(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Pn){return!1===e?e=0:!0===e&&(e=Pn),{x:An(e,"left","right"),y:An(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&zn(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!vn(e))return!1;const n=e.current;(0,Ge.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Gn(e,n),{scroll:o}=t;return o&&(Zn(r.x,o.offset.x),Zn(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Tn(e.x,t.x),y:Tn(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Rn(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=zn(s=>{if(!Xn(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Q(this.visualElement,e),n.start(Ut(e,n,0,t,this.visualElement,!1))}stopAnimation(){zn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){zn(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){zn(t=>{const{drag:n}=this.getProps();if(!Xn(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-(0,Ct.k)(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!vn(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};zn(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=yn(e),o=yn(t);return o>r?n=(0,P.q)(t.min,t.max-r,e.min):r>o&&(n=(0,P.q)(e.min,e.max-o,t.min)),(0,lt.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),zn(t=>{if(!Xn(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set((0,Ct.k)(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Kn.set(this.visualElement,this);const e=ln(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();vn(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),re.Gt.read(t);const o=sn(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(zn(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Pn,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Xn(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Yn=e=>(t,n)=>{e&&re.Gt.postRender(()=>e(t,n))};var Qn=n(790),er=n(1609),tr=n(9120),nr=n(9473);const rr=(0,er.createContext)({}),or={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ir(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sr={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Pe.px.test(e))return e;e=parseFloat(e)}return`${ir(e,t.target.x)}% ${ir(e,t.target.y)}%`}},ar={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ye.f.parse(e);if(o.length>5)return r;const i=ye.f.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=(0,Ct.k)(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=u),"number"==typeof o[3+s]&&(o[3+s]/=u),i(o)}},lr={};var ur=n(8530);const{schedule:cr,cancel:dr}=(0,ur.I)(queueMicrotask,!1);class pr extends er.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=hr,Object.assign(lr,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),or.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||re.Gt.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),cr.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fr(e){const[t,n]=(0,tr.xQ)(),r=(0,er.useContext)(nr.L);return(0,Qn.jsx)(pr,{...e,layoutGroup:r,switchLayoutGroup:(0,er.useContext)(rr),isPresent:t,safeToRemove:n})}const hr={borderRadius:{...sr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sr,borderTopRightRadius:sr,borderBottomLeftRadius:sr,borderBottomRightRadius:sr,boxShadow:ar};var mr=n(2358);const gr=(e,t)=>e.depth-t.depth;class vr{constructor(){this.children=[],this.isDirty=!1}add(e){(0,mr.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,mr.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gr),this.isDirty=!1,this.children.forEach(e)}}var yr=n(2606);function br(e){const t=Y(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const wr=["TopLeft","TopRight","BottomLeft","BottomRight"],xr=wr.length,Sr=e=>"string"==typeof e?parseFloat(e):e,kr=e=>"number"==typeof e||Pe.px.test(e);function Er(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Tr=_r(0,.5,he),Pr=_r(.5,.95,H.l);function _r(e,t,n){return r=>r<e?0:r>t?1:n((0,P.q)(e,t,r))}function Ar(e,t){e.min=t.min,e.max=t.max}function Cr(e,t){Ar(e.x,t.x),Ar(e.y,t.y)}function Or(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zr(e,t,n,r,o){return e=Nn(e-=t,1/n,r),void 0!==o&&(e=Nn(e,1/o,r)),e}function Rr(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(Pe.KN.test(t)&&(t=parseFloat(t),t=(0,Ct.k)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=(0,Ct.k)(i.min,i.max,r);e===i&&(a-=t),e.min=zr(e.min,t,n,a,o),e.max=zr(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Ir=["x","scaleX","originX"],Mr=["y","scaleY","originY"];function jr(e,t,n,r){Rr(e.x,t,Ir,n?n.x:void 0,r?r.x:void 0),Rr(e.y,t,Mr,n?n.y:void 0,r?r.y:void 0)}function Dr(e){return 0===e.translate&&1===e.scale}function Lr(e){return Dr(e.x)&&Dr(e.y)}function Nr(e,t){return e.min===t.min&&e.max===t.max}function Fr(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vr(e,t){return Fr(e.x,t.x)&&Fr(e.y,t.y)}function Br(e){return yn(e.x)/yn(e.y)}function $r(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ur{constructor(){this.members=[]}add(e){(0,mr.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,mr.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Zr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hr="undefined"!=typeof window&&void 0!==window.MotionDebug,Wr=["","X","Y","Z"],Gr={visibility:"hidden"};let qr=0;function Kr(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jr(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ne(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re.Gt,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jr(r)}function Xr({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=qr++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Hr&&(Zr.totalNodes=Zr.resolvedTargetDeltas=Zr.recalculatedProjection=0),this.nodes.forEach(eo),this.nodes.forEach(ao),this.nodes.forEach(lo),this.nodes.forEach(to),Hr&&window.MotionDebug.record(Zr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new vr)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yr.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=nt.k.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&((0,re.WG)(r),e(i-t))};return re.Gt.read(r,!0),()=>(0,re.WG)(r)}(r,250),or.hasAnimatedSinceResize&&(or.hasAnimatedSinceResize=!1,this.nodes.forEach(so))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||mo,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Vr(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...v(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||so(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,re.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uo),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ro);this.isUpdating||this.nodes.forEach(oo),this.isUpdating=!1,this.nodes.forEach(io),this.nodes.forEach(Yr),this.nodes.forEach(Qr),this.clearAllSnapshots();const e=nt.k.now();re.uv.delta=(0,lt.q)(0,1e3/60,e-re.uv.timestamp),re.uv.timestamp=e,re.uv.isProcessing=!0,re.PP.update.process(re.uv),re.PP.preRender.process(re.uv),re.PP.render.process(re.uv),re.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(no),this.sharedNodes.forEach(co)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Lr(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||jn(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),yo((r=n).x),yo(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(wo)){const{scroll:e}=this.root;e&&(Zn(n.x,e.offset.x),Zn(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Cr(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Cr(n,e),Zn(n.x,o.offset.x),Zn(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Cr(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Wn(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),jn(r.latestValues)&&Wn(n,r.latestValues)}return jn(this.latestValues)&&Wn(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Cr(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!jn(n.latestValues))continue;Mn(n.latestValues)&&n.updateSnapshot();const r=On();Cr(r,n.measurePageBox()),jr(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return jn(this.latestValues)&&jr(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==re.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=re.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},kn(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,xn(s.x,a.x,l.x),xn(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Cr(this.target,this.layout.layoutBox),Bn(this.target,this.targetDelta)):Cr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},kn(this.relativeTargetOrigin,this.target,e.target),Cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hr&&Zr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Mn(this.parent.latestValues)&&!Dn(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===re.uv.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Cr(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Wn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Bn(e,s)),r&&jn(i.latestValues)&&Wn(e,i.latestValues))}t.x<Un&&t.x>$n&&(t.x=1),t.y<Un&&t.y>$n&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Or(this.prevProjectionDelta.x,this.projectionDelta.x),Or(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),wn(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&$r(this.projectionDelta.x,this.prevProjectionDelta.x)&&$r(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Hr&&Zr.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(ho));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,f,h,m,g;po(i.x,e.x,n),po(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kn(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=s,g=n,fo(f.x,h.x,m.x,g),fo(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,Nr(l.x,p.x)&&Nr(l.y,p.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Cr(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=(0,Ct.k)(0,void 0!==n.opacity?n.opacity:1,Tr(r)),e.opacityExit=(0,Ct.k)(void 0!==t.opacity?t.opacity:1,0,Pr(r))):i&&(e.opacity=(0,Ct.k)(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<xr;o++){const i=`border${wr[o]}Radius`;let s=Er(t,i),a=Er(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||kr(s)===kr(a)?(e[i]=Math.max((0,Ct.k)(Sr(s),Sr(a),r),0),(Pe.KN.test(a)||Pe.KN.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=(0,Ct.k)(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,re.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.Gt.update(()=>{or.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Y(0)?0:(0,J.OQ)(0);return r.start(Ut("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&bo(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=yn(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=yn(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Cr(t,n),Wn(t,o),wn(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ur),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Kr("z",e,r,this.animationValues);for(let t=0;t<Wr.length;t++)Kr(`rotate${Wr[t]}`,e,r,this.animationValues),Kr(`skew${Wr[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Gr;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=br(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=br(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!jn(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in lr){if(void 0===s[e])continue;const{correct:t,applyTo:n}=lr[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?br(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ro),this.root.sharedNodes.clear()}}}function Yr(e){e.updateLayout()}function Qr(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?zn(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=yn(r);r.min=t[e].min,r.max=r.min+o}):bo(o,n.layoutBox,t)&&zn(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=yn(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};wn(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?wn(a,e.applyTransform(r,!0),n.measuredBox):wn(a,t,n.layoutBox);const l=!Lr(s);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};kn(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};kn(a,t,i.layoutBox),Vr(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function eo(e){Hr&&Zr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function to(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function no(e){e.clearSnapshot()}function ro(e){e.clearMeasurements()}function oo(e){e.isLayoutDirty=!1}function io(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function so(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ao(e){e.resolveTargetDelta()}function lo(e){e.calcProjection()}function uo(e){e.resetSkewAndRotation()}function co(e){e.removeLeadSnapshot()}function po(e,t,n){e.translate=(0,Ct.k)(t.translate,0,n),e.scale=(0,Ct.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fo(e,t,n,r){e.min=(0,Ct.k)(t.min,n.min,r),e.max=(0,Ct.k)(t.max,n.max,r)}function ho(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const mo={duration:.45,ease:[.4,0,.1,1]},go=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vo=go("applewebkit/")&&!go("chrome/")?Math.round:H.l;function yo(e){e.min=vo(e.min),e.max=vo(e.max)}function bo(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Br(t),o=Br(n),!(Math.abs(r-o)<=.2));var r,o}function wo(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const xo=Xr({attachResizeListener:(e,t)=>sn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),So={current:void 0},ko=Xr({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!So.current){const e=new xo({});e.mount(window),e.setOptions({layoutScroll:!0}),So.current=e}return So.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Eo={pan:{Feature:class extends nn{constructor(){super(...arguments),this.removePointerDownListener=H.l}onPointerDown(e){this.session=new cn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yn(e),onStart:Yn(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&re.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ln(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nn{constructor(e){super(e),this.removeGroupControls=H.l,this.removeListeners=H.l,this.controls=new Jn(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||H.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ko,MeasureLayout:fr}};function To(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&re.Gt.postRender(()=>o(t,an(t)))}function Po(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&re.Gt.postRender(()=>o(t,an(t)))}const _o=new WeakMap,Ao=new WeakMap,Co=e=>{const t=_o.get(e.target);t&&t(e)},Oo=e=>{e.forEach(Co)};const zo={some:0,all:1},Ro={inView:{Feature:class extends nn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:zo[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Ao.has(n)||Ao.set(n,{});const r=Ao.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Oo,{root:e,...t})),r[o]}(t);return _o.set(e,n),r.observe(e),()=>{_o.delete(e),r.unobserve(e)}}(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nn{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=M(e,n),s=e=>{const r=e.currentTarget;if(!$(e)||F.has(r))return;F.add(r);const i=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),$(e)&&F.has(r)&&(F.delete(r),"function"==typeof i&&i(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||D(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach(e=>{(function(e){return N.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=V(()=>{if(F.has(n))return;B(n,"down");const e=V(()=>{B(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>B(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o),o)}),i}(e,e=>(Po(this.node,e,"Start"),(e,{success:t})=>Po(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends nn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,ct.F)(sn(this.node.current,"focus",()=>this.onFocus()),sn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nn{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=M(e,n),s=j(e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=j(e=>{r(e),n.removeEventListener("pointerleave",i)});n.addEventListener("pointerleave",i,o)});return r.forEach(e=>{e.addEventListener("pointerenter",s,o)}),i}(e,e=>(To(this.node,e,"Start"),e=>To(this.node,e,"End"))))}unmount(){}}}},Io={layout:{ProjectionNode:ko,MeasureLayout:fr}},Mo=(0,er.createContext)({strict:!1});var jo=n(5446);const Do=(0,er.createContext)({});function Lo(e){return o(e.animate)||p.some(t=>a(e[t]))}function No(e){return Boolean(Lo(e)||e.variants)}function Fo(e){return Array.isArray(e)?e.join(" "):e}var Vo=n(8288);const Bo={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$o={};for(const e in Bo)$o[e]={isEnabled:t=>Bo[e].some(e=>!!t[e])};const Uo=Symbol.for("motionComponentSymbol");function Zo(e,t,n){return(0,er.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):vn(n)&&(n.current=r))},[t])}var Ho=n(6719),Wo=n(5128);function Go(e,t,n,r,o){var i,s;const{visualElement:a}=(0,er.useContext)(Do),l=(0,er.useContext)(Mo),u=(0,er.useContext)(Ho.t),c=(0,er.useContext)(jo.Q).reducedMotion,d=(0,er.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const p=d.current,f=(0,er.useContext)(rr);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qo(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&vn(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,o,f);const h=(0,er.useRef)(!1);(0,er.useInsertionEffect)(()=>{p&&h.current&&p.update(n,u)});const m=n[te],g=(0,er.useRef)(Boolean(m)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return(0,Wo.E)(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),cr.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,er.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)}),g.current=!1))}),p}function qo(e){if(e)return!1!==e.options.allowProjection?e.projection:qo(e.parent)}function Ko({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;function l(e,i){let s;const l={...(0,er.useContext)(jo.Q),...e,layoutId:Jo(e)},{isStatic:u}=l,c=function(e){const{initial:t,animate:n}=function(e,t){if(Lo(e)){const{initial:t,animate:n}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,er.useContext)(Do));return(0,er.useMemo)(()=>({initial:t,animate:n}),[Fo(t),Fo(n)])}(e),d=r(e,u);if(!u&&Vo.B){(0,er.useContext)(Mo).strict;const e=function(e){const{drag:t,layout:n}=$o;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,c.visualElement=Go(o,d,l,t,e.ProjectionNode)}return(0,Qn.jsxs)(Do.Provider,{value:c,children:[s&&c.visualElement?(0,Qn.jsx)(s,{visualElement:c.visualElement,...l}):null,n(o,e,Zo(d,c.visualElement,i),d,u,c.visualElement)]})}e&&function(e){for(const t in e)$o[t]={...$o[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(s=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==s?s:""})`}`;const u=(0,er.forwardRef)(l);return u[Uo]=o,u}function Jo({layoutId:e}){const t=(0,er.useContext)(nr.L).id;return t&&void 0!==e?t+"-"+e:e}const Xo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yo(e){return"string"==typeof e&&!e.includes("-")&&!!(Xo.indexOf(e)>-1||/[A-Z]/u.test(e))}var Qo=n(8601);const ei=e=>(t,n)=>{const r=(0,er.useContext)(Do),o=(0,er.useContext)(Ho.t),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:ti(r,o,i,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s}(e,t,r,o);return n?i():(0,Qo.M)(i)};function ti(e,t,n,r){const i={},s=r(e,{});for(const e in s)i[e]=br(s[e]);let{initial:a,animate:l}=e;const c=Lo(e),d=No(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let p=!!n&&!1===n.initial;p=p||!1===a;const f=p?l:a;if(f&&"boolean"!=typeof f&&!o(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const r=u(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[p?t.length-1:0]),null!==t&&(i[e]=t)}for(const t in e)i[t]=e[t]}}}return i}const ni=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ri={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oi=W.length;function ii(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(G.has(e))s=!0;else if((0,Ke.j)(e))o[e]=n;else{const t=ni(n,Oe[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<oi;i++){const s=W[i],a=e[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=ni(a,Oe[s]);l||(o=!1,r+=`${ri[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const si={offset:"stroke-dashoffset",array:"stroke-dasharray"},ai={offset:"strokeDashoffset",array:"strokeDasharray"};function li(e,t,n){return"string"==typeof e?e:Pe.px.transform(t+n*e)}function ui(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(ii(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:h}=e;p.transform&&(h&&(f.transform=p.transform),delete p.transform),h&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${li(t,e.x,e.width)} ${li(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?si:ai;e[i.offset]=Pe.px.transform(-r);const s=Pe.px.transform(t),a=Pe.px.transform(n);e[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const ci=e=>"string"==typeof e&&"svg"===e.toLowerCase();function di(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const pi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function fi(e,t,n,r){di(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(pi.has(n)?n:ee(n),t.attrs[n])}function hi(e,{layout:t,layoutId:n}){return G.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!lr[e]||"opacity"===e)}function mi(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Y(o[s])||t.style&&Y(t.style[s])||hi(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function gi(e,t,n){const r=mi(e,t,n);for(const n in e)(Y(e[n])||Y(t[n]))&&(r[-1!==W.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const vi=["x","y","width","height","cx","cy","r"],yi={useVisualState:ei({scrapeMotionValuesFromProps:gi,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(G.has(e)){i=!0;break}if(!i)return;let s=!t;if(t)for(let n=0;n<vi.length;n++){const r=vi[n];e[r]!==t[r]&&(s=!0)}s&&re.Gt.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),re.Gt.render(()=>{ui(r,o,ci(n.tagName),e.transformTemplate),fi(n,r)})})}})},bi={useVisualState:ei({scrapeMotionValuesFromProps:mi,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function wi(e,t,n){for(const r in t)Y(t[r])||hi(r,n)||(e[r]=t[r])}function xi(e,t){const n={},r=function(e,t){const n={};return wi(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,er.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return ii(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Si=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ki(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Si.has(e)}let Ei=e=>!ki(e);try{(Ti=require("@emotion/is-prop-valid").default)&&(Ei=e=>e.startsWith("on")?!ki(e):Ti(e))}catch(e){}var Ti;function Pi(e,t,n,r){const o=(0,er.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ui(n,t,ci(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};wi(t,e.style,e),o.style={...t,...o.style}}return o}function _i(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(Yo(t)?Pi:xi)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Ei(o)||!0===n&&ki(o)||!t&&!ki(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==er.Fragment?{...a,...s,ref:r}:{},{children:u}=n,c=(0,er.useMemo)(()=>Y(u)?u.get():u,[u]);return(0,er.createElement)(t,{...l,children:c})}}function Ai(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Ko({...Yo(n)?yi:bi,preloadedFeatures:e,useRender:_i(r),createVisualElement:t,Component:n})}}var Ci=n(2743),Oi=n(8452);const zi=[...Qe,Ee.y,ye.f],Ri=new WeakMap,Ii=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Mi{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=We,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=nt.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,re.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=i;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Lo(t),this.isVariantNode=No(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==a[e]&&Y(t)&&t.set(a[e],!1)}}mount(e){this.current=e,Ri.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Oi.r.current||(0,Ci.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Oi.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ri.delete(this.current),this.projection&&this.projection.unmount(),(0,re.WG)(this.notifyUpdate),(0,re.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=G.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&re.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in $o){const t=$o[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ii.length;t++){const n=Ii[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Y(o))e.addValue(r,o);else if(Y(i))e.addValue(r,(0,J.OQ)(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,(0,J.OQ)(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,J.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=r&&("string"==typeof r&&(qe(r)||ge(r))?r=parseFloat(r):(o=r,!zi.find(Ye(o))&&ye.f.test(t)&&(r=Ie(e,t))),this.setBaseTarget(e,Y(r)?r.get():r)),Y(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=u(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Y(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new yr.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ji extends Mi{constructor(){super(...arguments),this.KeyframeResolver=tt}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Y(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class Di extends ji{constructor(){super(...arguments),this.type="html",this.renderInstance=di}readValueFromInstance(e,t){if(G.has(t)){const e=Re(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=((0,Ke.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Gn(e,t)}build(e,t,n){ii(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return mi(e,t,n)}}class Li extends ji{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=On}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(G.has(t)){const e=Re(t);return e&&e.default||0}return t=pi.has(t)?t:ee(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return gi(e,t,n)}build(e,t,n){ui(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){fi(e,t,0,r)}mount(e){this.isSVGTag=ci(e.tagName),super.mount(e)}}const Ni=r(Ai({...on,...Ro,...Eo,...Io},(e,t)=>Yo(e)?new Li(t):new Di(t,{allowProjection:e!==er.Fragment})))},568(e,t,n){"use strict";n.d(t,{j:()=>o,p:()=>s});const r=e=>t=>"string"==typeof t&&t.startsWith(e),o=r("--"),i=r("var(--"),s=e=>!!i(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},4668(e,t,n){"use strict";n.d(t,{W:()=>r});const r={skipAnimations:!1,useManualTiming:!1}},2358(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function o(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>o,Kq:()=>r})},2464(e,t,n){"use strict";n.d(t,{q:()=>r});const r=(e,t,n)=>n>t?t:n<e?e:n},8844(e,t,n){"use strict";n.d(t,{G:()=>u});var r=n(8104),o=n(1533),i=n(6896),s=n(2464),a=n(8799),l=n(1339);function u(e,t,{clamp:n=!0,ease:u,mixer:c}={}){const d=e.length;if((0,r.V)(d===t.length,"Both input and output ranges must be the same length"),1===d)return()=>t[0];if(2===d&&t[0]===t[1])return()=>t[1];const p=e[0]===e[1];e[0]>e[d-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=function(e,t,n){const r=[],i=n||a.j,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||o.l:t;s=(0,l.F)(e,s)}r.push(s)}return r}(t,u,c),h=f.length,m=n=>{if(p&&n<e[0])return t[0];let r=0;if(h>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=(0,i.q)(e[r],e[r+1],n);return f[r](o)};return n?t=>m((0,s.q)(e[0],e[d-1],t)):m}},8288(e,t,n){"use strict";n.d(t,{B:()=>r});const r="undefined"!=typeof window},8799(e,t,n){"use strict";n.d(t,{j:()=>E});var r=n(9713),o=n(8104);function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var s=n(5252),a=n(3735),l=n(2027);function u(e,t){return n=>n>0?t:e}const c=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},d=[s.u,a.B,l.V];function p(e){const t=(n=e,d.find(e=>e.test(n)));var n;if((0,o.$)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===l.V&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,s=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;o=i(l,r,e+1/3),s=i(l,r,e),a=i(l,r,e-1/3)}else o=s=a=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(r)),r}const f=(e,t)=>{const n=p(e),o=p(t);if(!n||!o)return u(e,t);const i={...n};return e=>(i.red=c(n.red,o.red,e),i.green=c(n.green,o.green,e),i.blue=c(n.blue,o.blue,e),i.alpha=(0,r.k)(n.alpha,o.alpha,e),a.B.transform(i))};var h=n(1339),m=n(7739),g=n(4552),v=n(568);const y=new Set(["none","hidden"]);function b(e,t){return n=>(0,r.k)(e,t,n)}function w(e){return"number"==typeof e?b:"string"==typeof e?(0,v.p)(e)?u:m.y.test(e)?f:k:Array.isArray(e)?x:"object"==typeof e?m.y.test(e)?f:S:u}function x(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>w(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function S(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=w(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const k=(e,t)=>{const n=g.f.createTransformer(t),r=(0,g.V)(e),i=(0,g.V)(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?y.has(e)&&!i.values.length||y.has(t)&&!r.values.length?function(e,t){return y.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,h.F)(x(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,i),i.values),n):((0,o.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(e,t))};function E(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,r.k)(e,t,n):w(e)(e,t)}},9713(e,t,n){"use strict";n.d(t,{k:()=>r});const r=(e,t,n)=>e+(t-e)*n},1339(e,t,n){"use strict";n.d(t,{F:()=>o});const r=(e,t)=>n=>t(e(n)),o=(...e)=>e.reduce(r)},2743(e,t,n){"use strict";n.d(t,{U:()=>i});var r=n(8288),o=n(8452);function i(){if(o.r.current=!0,r.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>o.O.current=e.matches;e.addListener(t),t()}else o.O.current=!1}},8452(e,t,n){"use strict";n.d(t,{O:()=>r,r:()=>o});const r={current:null},o={current:!1}},8638(e,t,n){"use strict";n.d(t,{I:()=>s});var r=n(1609),o=n(2743),i=n(8452);function s(){!i.r.current&&(0,o.U)();const[e]=(0,r.useState)(i.O.current);return e}},2606(e,t,n){"use strict";n.d(t,{v:()=>o});var r=n(2358);class o{constructor(){this.subscriptions=[]}add(e){return(0,r.Kq)(this.subscriptions,e),()=>(0,r.Ai)(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},8601(e,t,n){"use strict";n.d(t,{M:()=>o});var r=n(1609);function o(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5128(e,t,n){"use strict";n.d(t,{E:()=>o});var r=n(1609);const o=n(8288).B?r.useLayoutEffect:r.useEffect},7177(e,t,n){"use strict";function r(e,t){return t?e*(1e3/t):0}n.d(t,{f:()=>r})},4785(e,t,n){"use strict";n.d(t,{OQ:()=>u,bt:()=>a});var r=n(4582),o=n(2606),i=n(7177),s=n(104);const a={current:void 0};class l{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=r.k.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new o.v);const n=this.events[e].add(t);return"change"===e?()=>{n(),s.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(e,t){return new l(e,t)}},5252(e,t,n){"use strict";n.d(t,{u:()=>o});var r=n(3735);const o={test:(0,n(3259).$)("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.B.transform}},2027(e,t,n){"use strict";n.d(t,{V:()=>a});var r=n(2944),o=n(5269),i=n(6046),s=n(3259);const a={test:(0,s.$)("hsl","hue"),parse:(0,s.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+o.KN.transform((0,i.a)(t))+", "+o.KN.transform((0,i.a)(n))+", "+(0,i.a)(r.X4.transform(s))+")"}},7739(e,t,n){"use strict";n.d(t,{y:()=>s});var r=n(5252),o=n(2027),i=n(3735);const s={test:e=>i.B.test(e)||r.u.test(e)||o.V.test(e),parse:e=>i.B.test(e)?i.B.parse(e):o.V.test(e)?o.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?i.B.transform(e):o.V.transform(e)}},3735(e,t,n){"use strict";n.d(t,{B:()=>l});var r=n(2464),o=n(2944),i=n(6046),s=n(3259);const a={...o.ai,transform:e=>Math.round((e=>(0,r.q)(0,255,e))(e))},l={test:(0,s.$)("rgb","red"),parse:(0,s.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+a.transform(e)+", "+a.transform(t)+", "+a.transform(n)+", "+(0,i.a)(o.X4.transform(r))+")"}},3259(e,t,n){"use strict";n.d(t,{$:()=>i,q:()=>s});var r=n(849);const o=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i=(e,t)=>n=>Boolean("string"==typeof n&&o.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),s=(e,t,n)=>o=>{if("string"!=typeof o)return o;const[i,s,a,l]=o.match(r.S);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},4552(e,t,n){"use strict";n.d(t,{V:()=>c,f:()=>h});var r=n(7739);const o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var i=n(849),s=n(6046);const a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},i=[];let s=0;const c=t.replace(u,e=>(r.y.test(e)?(o.color.push(s),i.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(o.var.push(s),i.push("var"),n.push(e)):(o.number.push(s),i.push(a),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:c,indexes:o,types:i}}function d(e){return c(e).values}function p(e){const{split:t,types:n}=c(e),o=t.length;return e=>{let i="";for(let u=0;u<o;u++)if(i+=t[u],void 0!==e[u]){const t=n[u];i+=t===a?(0,s.a)(e[u]):t===l?r.y.transform(e[u]):e[u]}return i}}const f=e=>"number"==typeof e?0:e,h={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(i.S))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(o))||void 0===n?void 0:n.length)||0)>0},parse:d,createTransformer:p,getAnimatableNone:function(e){const t=d(e);return p(e)(t.map(f))}}},2944(e,t,n){"use strict";n.d(t,{X4:()=>i,ai:()=>o,hs:()=>s});var r=n(2464);const o={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,r.q)(0,1,e)},s={...o,default:1}},5269(e,t,n){"use strict";n.d(t,{KN:()=>i,gQ:()=>u,px:()=>s,uj:()=>o,vh:()=>a,vw:()=>l});const r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=r("deg"),i=r("%"),s=r("px"),a=r("vh"),l=r("vw"),u={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},849(e,t,n){"use strict";n.d(t,{S:()=>r});const r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6046(e,t,n){"use strict";n.d(t,{a:()=>r});const r=e=>Math.round(1e5*e)/1e5},3295(e,t,n){"use strict";n.d(t,{d:()=>a});var r=n(1609),o=n(4785),i=n(5446),s=n(8601);function a(e){const t=(0,s.M)(()=>(0,o.OQ)(e)),{isStatic:n}=(0,r.useContext)(i.Q);if(n){const[,n]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",n),[])}return t}},9384(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(1609),o=n(5446),i=n(104),s=n(3295);function a(){const e=(0,s.d)(0);return function(e){const t=(0,r.useRef)(0),{isStatic:n}=(0,r.useContext)(o.Q);(0,r.useEffect)(()=>{if(n)return;const r=({timestamp:n,delta:r})=>{t.current||(t.current=n),e(n-t.current)};return i.Gt.update(r,!0),()=>(0,i.WG)(r)},[e])}(t=>e.set(t)),e}},5979(e,t,n){"use strict";n.d(t,{G:()=>c});var r=n(8844),o=n(3295),i=n(5128),s=n(104);function a(e,t){const n=(0,o.d)(t()),r=()=>n.set(t());return r(),(0,i.E)(()=>{const t=()=>s.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,s.WG)(r)}}),n}var l=n(8601),u=n(4785);function c(e,t,n,o){if("function"==typeof e)return function(e){u.bt.current=[],e();const t=a(u.bt.current,e);return u.bt.current=void 0,t}(e);const i="function"==typeof t?t:function(...e){const t=!Array.isArray(e[0]),n=t?0:-1,o=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],l=(0,r.G)(i,s,{mixer:(u=s[0],(e=>e&&"object"==typeof e&&e.mix)(u)?u.mix:void 0),...a});var u;return t?l(o):l}(t,n,o);return Array.isArray(e)?d(e,i):d([e],([e])=>i(e))}function d(e,t){const n=(0,l.M)(()=>[]);return a(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}},900(e,t,n){"use strict";n.d(t,{Ay:()=>o});var r=n(442);const o=r.default||r},8104(e,t,n){"use strict";n.d(t,{$:()=>o,V:()=>i});var r=n(1533);let o=r.l,i=r.l},1533(e,t,n){"use strict";n.d(t,{l:()=>r});const r=e=>e},6896(e,t,n){"use strict";n.d(t,{q:()=>r});const r=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r}},5692(e,t,n){"use strict";var r;n.d(t,{Wx:()=>c});var o,i=n(1609),s=(Object.defineProperty,new Map),a=new WeakMap,l=0;function u(e,t,n={},r=void 0){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(n=e.root,n?(a.has(n)||(l+=1,a.set(n,l.toString())),a.get(n)):"0"):e[t]}`;var n}).toString()}(e);let n=s.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(t=>{t.forEach(t=>{var n;const i=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach(e=>{e(i,t)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},s.set(t,n)}return n}(n),c=u.get(e)||[];return u.has(e)||u.set(e,c),c.push(t),i.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(u.delete(e),i.unobserve(e)),0===u.size&&(i.disconnect(),s.delete(o))}}function c({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:s,skip:a,initialInView:l,fallbackInView:c,onChange:d}={}){var p;const[f,h]=i.useState(null),m=i.useRef(d),g=i.useRef(l),[v,y]=i.useState({inView:!!l,entry:void 0});m.current=d,i.useEffect(()=>{if(void 0===g.current&&(g.current=l),a||!f)return;let i;return i=u(f,(e,t)=>{const n=g.current;g.current=e,(void 0!==n||e)&&(y({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&s&&i&&(i(),i=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,f,o,r,s,a,n,c,t]);const b=null==(p=v.entry)?void 0:p.target,w=i.useRef(void 0);f||!b||s||a||w.current===b||(w.current=b,y({inView:!!l,entry:void 0}),g.current=l);const x=[h,v.inView,v.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}i.Component,null!=(null!=(o="useInsertionEffect"in(r||(r=n.t(i,2)))?i.useInsertionEffect:void 0)?o:i.useLayoutEffect)||i.useEffect},8334(e,t,n){"use strict";n.d(t,{oz:()=>kr});var r={};n.r(r),n.d(r,{boolean:()=>y,booleanish:()=>b,commaOrSpaceSeparated:()=>E,commaSeparated:()=>k,number:()=>x,overloadedBoolean:()=>w,spaceSeparated:()=>S});var o={};function i(){}function s(){}n.r(o),n.d(o,{attentionMarkers:()=>Yt,contentInitial:()=>Wt,disable:()=>Qt,document:()=>Ht,flow:()=>qt,flowInitial:()=>Gt,insideSpan:()=>Xt,string:()=>Kt,text:()=>Jt});const a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,u={};function c(e,t){return((t||u).jsx?l:a).test(e)}const d=/[ \t\n\f\r]/g;function p(e){return""===e.replace(d,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function h(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function m(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class g{constructor(e,t){this.attribute=t,this.property=e}}g.prototype.attribute="",g.prototype.booleanish=!1,g.prototype.boolean=!1,g.prototype.commaOrSpaceSeparated=!1,g.prototype.commaSeparated=!1,g.prototype.defined=!1,g.prototype.mustUseProperty=!1,g.prototype.number=!1,g.prototype.overloadedBoolean=!1,g.prototype.property="",g.prototype.spaceSeparated=!1,g.prototype.space=void 0;let v=0;const y=T(),b=T(),w=T(),x=T(),S=T(),k=T(),E=T();function T(){return 2**++v}const P=Object.keys(r);class _ extends g{constructor(e,t,n,o){let i=-1;if(super(e,t),A(this,"space",o),"number"==typeof n)for(;++i<P.length;){const e=P[i];A(this,P[i],(n&r[e])===r[e])}}}function A(e,t,n){n&&(e[t]=n)}function C(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new _(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[m(r)]=r,n[m(i.attribute)]=r}return new f(t,n,e.space)}_.prototype.defined=!0;const O=C({properties:{ariaActiveDescendant:null,ariaAtomic:b,ariaAutoComplete:null,ariaBusy:b,ariaChecked:b,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:S,ariaCurrent:null,ariaDescribedBy:S,ariaDetails:null,ariaDisabled:b,ariaDropEffect:S,ariaErrorMessage:null,ariaExpanded:b,ariaFlowTo:S,ariaGrabbed:b,ariaHasPopup:null,ariaHidden:b,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:S,ariaLevel:x,ariaLive:null,ariaModal:b,ariaMultiLine:b,ariaMultiSelectable:b,ariaOrientation:null,ariaOwns:S,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:b,ariaReadOnly:b,ariaRelevant:null,ariaRequired:b,ariaRoleDescription:S,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:b,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function z(e,t){return t in e?e[t]:t}function R(e,t){return z(e,t.toLowerCase())}const I=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:k,acceptCharset:S,accessKey:S,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:S,autoFocus:y,autoPlay:y,blocking:S,capture:null,charSet:null,checked:y,cite:null,className:S,cols:x,colSpan:null,content:null,contentEditable:b,controls:y,controlsList:S,coords:x|k,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:w,draggable:b,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:S,height:x,hidden:w,high:x,href:null,hrefLang:null,htmlFor:S,httpEquiv:S,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:S,itemRef:S,itemScope:y,itemType:S,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:x,pattern:null,ping:S,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:S,required:y,reversed:y,rows:x,rowSpan:x,sandbox:S,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:b,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:b,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:S,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:b,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:R}),M=C({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:E,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:S,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:k,g2:k,glyphName:k,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:S,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:E,rev:E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:E,requiredFeatures:E,requiredFonts:E,requiredFormats:E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:E,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:z}),j=C({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),D=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R}),L=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),N=h([O,I,j,D,L],"html"),F=h([O,M,j,D,L],"svg"),V=/[A-Z]/g,B=/-[a-z]/g,$=/^data[-\w.:]+$/i;function U(e){return"-"+e.toLowerCase()}function Z(e){return e.charAt(1).toUpperCase()}const H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var W=n(5229);const G=K("end"),q=K("start");function K(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?Y(e.position):"start"in e||"end"in e?Y(e):"line"in e||"column"in e?X(e):"":""}function X(e){return Q(e&&e.line)+":"+Q(e&&e.column)}function Y(e){return X(e&&e.start)+"-"+X(e&&e.end)}function Q(e){return e&&"number"==typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=J(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;const te={}.hasOwnProperty,ne=new Map,re=/[A-Z]/g,oe=new Set(["table","tbody","thead","tfoot","tr"]),ie=new Set(["td","th"]),se="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ae(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=F,e.schema=o),e.ancestors.push(t);const i=pe(e,t.tagName,!1),s=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&te.call(t.properties,o)){const i=de(e,o,t.properties[o]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof s&&ie.has(t.tagName)?r=s:n[o]=s}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let a=ce(e,t);return oe.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&p(t.value):p(t));var t})),le(e,s,i,t),ue(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fe(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=F,e.schema=o),e.ancestors.push(t);const s=null===t.name?e.Fragment:pe(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];i(t.type);const o=t.expression;i(o.type);const s=o.properties[0];i(s.type),Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else fe(e,t.position);else{const o=r.name;let s;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];i(t.type),s=e.evaluater.evaluateExpression(t.expression)}else fe(e,t.position);else s=null===r.value||r.value;n[o]=s}return n}(e,t),l=ce(e,t);return le(e,a,s,t),ue(a,l),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fe(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return ue(r,ce(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function le(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ue(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ce(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ne;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;s=e+"-"+t,o.set(e,t+1)}}const a=ae(e,i,s);void 0!==a&&n.push(a)}return n}function de(e,t,n){const r=function(e,t){const n=m(t);let r=t,o=g;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&$.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(B,Z);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!B.test(e)){let n=e.replace(V,U);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=_}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return W(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=se+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)te.call(e,n)&&(t[he(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}function pe(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=c(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=c(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return te.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fe(e)}function fe(e,t){const n=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=se+"#cannot-handle-mdx-estrees-without-createevaluater",n}function he(e){let t=e.replace(re,me);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function me(e){return"-"+e.toLowerCase()}const ge={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ve=n(790);n(1609);const ye={};function be(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return we(e.children,t,n)}return Array.isArray(e)?we(e,t,n):""}function we(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=be(e[o],t,n);return r.join("")}function xe(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function Se(e,t){return e.length>0?(xe(e,e.length,0,t),e):t}class ke{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ee(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ee(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ee(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ee(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ee(this.left,t.reverse())}}}function Ee(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Te(e){const t={};let n,r,o,i,s,a,l,u=-1;const c=new ke(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Pe(c,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},s=c.slice(r,u),s.unshift(n),c.splice(r,u-r+1,s))}}return xe(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Pe(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=a.slice(g[p],g[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)u[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return u}const _e={}.hasOwnProperty;function Ae(e,t){let n;for(n in t){const r=(_e.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){_e.call(r,i)||(r[i]=[]);const e=o[i];Ce(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ce(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);xe(e,0,0,r)}const Oe=$e(/[A-Za-z]/),ze=$e(/[\dA-Za-z]/),Re=$e(/[#-'*+\--9=?A-Z^-~]/);function Ie(e){return null!==e&&(e<32||127===e)}const Me=$e(/\d/),je=$e(/[\dA-Fa-f]/),De=$e(/[!-/:-@[-`{-~]/);function Le(e){return null!==e&&e<-2}function Ne(e){return null!==e&&(e<0||32===e)}function Fe(e){return-2===e||-1===e||32===e}const Ve=$e(/\p{P}|\p{S}/u),Be=$e(/\s/);function $e(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ue(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return Fe(r)?(e.enter(n),s(r)):t(r)};function s(r){return Fe(r)&&i++<o?(e.consume(r),s):(e.exit(n),t(r))}}const Ze={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ue(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Le(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},He={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return a;function a(r){if(s<n.length){const o=n[s];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return xe(t.events,i+1,0,t.events.slice(n)),t.events.length=a,u(e)}return a(e)}function u(o){if(s===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(We,c,d)(o)}function c(e){return r&&y(),v(s),p(e)}function d(e){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(We,f,h)(n)}function f(e){return s++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Le(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){a=t.events[l][1].end;break}o=!0}for(v(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;xe(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},We={tokenize:function(e,t,n){return Ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Ge={partial:!0,tokenize:function(e,t,n){return function(t){return Fe(t)?Ue(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Le(e)?t(e):n(e)}}},qe={resolve:function(e){return Te(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Le(t)?e.check(Ke,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ke={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ue(e,o,"linePrefix")};function o(o){if(null===o||Le(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},Je={tokenize:function(e){const t=this,n=e.attempt(Ge,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Ue(e,e.attempt(this.parser.constructs.flow,r,e.attempt(qe,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Xe={resolveAll:tt()},Ye=et("string"),Qe=et("text");function et(e){return{resolveAll:tt("text"===e?nt:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(e){return l(e)?o(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tt(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function nt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,a=-1,l=0;for(;s--;){const e=o[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)i=!0,l++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const rt={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),s(i)):o>=3&&(null===i||Le(i))?(e.exit("thematicBreak"),t(i)):n(i)}function s(t){return t===r?(e.consume(t),o++,s):(e.exit("thematicBreakSequence"),Fe(t)?Ue(e,i,"whitespace")(t):i(t))}}},ot={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ue(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Fe(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(st,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ue(e,e.attempt(ot,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Me(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(rt,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Me(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ge,r.interrupt?n:u,e.attempt(it,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return Fe(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},it={partial:!0,tokenize:function(e,t,n){const r=this;return Ue(e,function(e){const o=r.events[r.events.length-1];return!Fe(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},st={partial:!0,tokenize:function(e,t,n){const r=this;return Ue(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},at={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Fe(t)?Ue(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(at,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Fe(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function lt(e,t,n,r,o,i,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||Ie(t)?n(t):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||Le(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return c||null!==o&&41!==o&&!Ne(o)?c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||Ie(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function ut(e,t,n,r,o,i){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Le(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||Le(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!Fe(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function ct(e,t,n,r,o,i){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),s=40===t?41:t,a):n(t)};function a(n){return n===s?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===s?(e.exit(i),a(s)):null===t?n(t):Le(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ue(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||Le(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function dt(e,t){let n;return function r(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Fe(o)?Ue(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function pt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ft={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return ut.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Ne(t)?dt(e,a)(t):a(t)}function a(t){return lt(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ht,u,u)(t)}function u(t){return Fe(t)?Ue(e,c,"whitespace")(t):c(t)}function c(i){return null===i||Le(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},ht={partial:!0,tokenize:function(e,t,n){return function(t){return Ne(t)?dt(e,r)(t):n(t)};function r(t){return ct(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Fe(t)?Ue(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Le(e)?t(e):n(e)}}},mt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ue(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):Le(t)?e.attempt(gt,i,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Le(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},gt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Le(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ue(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Le(e)?o(e):n(e)}}},vt={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},xe(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Ne(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||Le(n)?(e.exit("atxHeading"),t(n)):Fe(n)?Ue(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||Ne(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}},yt={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!s?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Fe(t)?Ue(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||Le(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},bt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wt=["pre","script","style","textarea"],xt={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),o=3,r.interrupt?t:M):Oe(a)?(e.consume(a),s=String.fromCharCode(a),h):n(a)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,a=0,p):Oe(i)?(e.consume(i),o=4,r.interrupt?t:M):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:M):n(o)}function p(o){return o==="CDATA[".charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:P:p):n(o)}function f(t){return Oe(t)?(e.consume(t),s=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||Ne(a)){const l=47===a,u=s.toLowerCase();return l||i||!wt.includes(u)?bt.includes(s.toLowerCase())?(o=6,l?(e.consume(a),m):r.interrupt?t(a):P(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?g(a):v(a)):(o=1,r.interrupt?t(a):P(a))}return 45===a||ze(a)?(e.consume(a),s+=String.fromCharCode(a),h):n(a)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:P):n(o)}function g(t){return Fe(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||Oe(t)?(e.consume(t),y):Fe(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||ze(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):Fe(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Fe(t)?(e.consume(t),w):S(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||Le(t)?n(t):(e.consume(t),x)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ne(t)?b(t):(e.consume(t),S)}function k(e){return 47===e||62===e||Fe(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||Le(t)?P(t):Fe(t)?(e.consume(t),T):n(t)}function P(t){return 45===t&&2===o?(e.consume(t),O):60===t&&1===o?(e.consume(t),z):62===t&&4===o?(e.consume(t),j):63===t&&3===o?(e.consume(t),M):93===t&&5===o?(e.consume(t),I):!Le(t)||6!==o&&7!==o?null===t||Le(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(St,D,_)(t))}function _(t){return e.check(kt,A,D)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||Le(t)?_(t):(e.enter("htmlFlowData"),P(t))}function O(t){return 45===t?(e.consume(t),M):P(t)}function z(t){return 47===t?(e.consume(t),s="",R):P(t)}function R(t){if(62===t){const n=s.toLowerCase();return wt.includes(n)?(e.consume(t),j):P(t)}return Oe(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),R):P(t)}function I(t){return 93===t?(e.consume(t),M):P(t)}function M(t){return 62===t?(e.consume(t),j):45===t&&2===o?(e.consume(t),M):P(t)}function j(t){return null===t||Le(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),j)}function D(n){return e.exit("htmlFlow"),t(n)}}},St={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ge,t,n)}}},kt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Le(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Et={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Tt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),Fe(t)?Ue(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=a?(e.exit("codeFencedFenceSequence"),Fe(t)?Ue(e,c,"whitespace")(t):c(t)):n(t)}function c(r){return null===r||Le(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),Fe(t)?Ue(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Le(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Et,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Le(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):Fe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||Le(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Le(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Fe(t)?Ue(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||Le(t)?e.check(Et,f,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Le(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}},Pt=document.createElement("i");function _t(e){const t="&"+e+";";Pt.innerHTML=t;const n=Pt.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const At={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=ze,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=je,u):(e.enter("characterReferenceValue"),o=7,i=Me,u(t))}function u(a){if(59===a&&s){const o=e.exit("characterReferenceValue");return i!==ze||_t(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&s++<o?(e.consume(a),u):n(a)}}},Ct={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return De(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Ot={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ue(e,t,"linePrefix")}}};function zt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Rt={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&xe(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=Se(i,e.slice(r+1,r+a+3)),i=Se(i,[["enter",c,t]]),i=Se(i,zt(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Se(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=Se(i,e.slice(o+1)),i=Se(i,[["exit",l,t]]),xe(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(t){return o?o._inactive?c(t):(i=r.parser.defined.includes(pt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(It,u,i?u:c)(t):91===t?e.attempt(Mt,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(jt,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},It={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ne(t)?dt(e,o)(t):o(t)}function o(t){return 41===t?u(t):lt(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ne(t)?dt(e,a)(t):u(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?ct(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return Ne(t)?dt(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Mt={tokenize:function(e,t,n){const r=this;return function(t){return ut.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},jt={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Dt={name:"labelStartImage",resolveAll:Rt.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Lt(e){return null===e||Ne(e)||Be(e)?1:Ve(e)?2:void 0}const Nt={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,a,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[c][1].start};Ft(d,-a),Ft(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[c][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Se(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Se(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=Se(l,zt(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=Se(l,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=Se(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,xe(e,n-1,c-n+3,l),c=n+l.length-u-2;break}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lt(r);let i;return function(t){return i=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===i)return e.consume(a),s;const l=e.exit("attentionSequence"),u=Lt(a),c=!u||2===u&&o||n.includes(a),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(a)}}};function Ft(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Vt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Oe(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||ze(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||ze(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Ie(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),u):Re(t)?(e.consume(t),l):n(t)}function u(e){return ze(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||ze(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}},Bt={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):Oe(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):Oe(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):Le(t)?(s=c,R(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?z(e):45===e?d(e):c(e)}function f(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Le(t)?(s=h,R(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?z(t):93===t?(e.consume(t),g):h(t)}function v(t){return null===t||62===t?z(t):Le(t)?(s=v,R(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):Le(t)?(s=y,R(t)):(e.consume(t),y)}function b(e){return 62===e?z(e):y(e)}function w(t){return Oe(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||ze(t)?(e.consume(t),x):S(t)}function S(t){return Le(t)?(s=S,R(t)):Fe(t)?(e.consume(t),S):z(t)}function k(t){return 45===t||ze(t)?(e.consume(t),k):47===t||62===t||Ne(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),z):58===t||95===t||Oe(t)?(e.consume(t),T):Le(t)?(s=E,R(t)):Fe(t)?(e.consume(t),E):z(t)}function T(t){return 45===t||46===t||58===t||95===t||ze(t)?(e.consume(t),T):P(t)}function P(t){return 61===t?(e.consume(t),_):Le(t)?(s=P,R(t)):Fe(t)?(e.consume(t),P):E(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):Le(t)?(s=_,R(t)):Fe(t)?(e.consume(t),_):(e.consume(t),C)}function A(t){return t===o?(e.consume(t),o=void 0,O):null===t?n(t):Le(t)?(s=A,R(t)):(e.consume(t),A)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ne(t)?E(t):(e.consume(t),C)}function O(e){return 47===e||62===e||Ne(e)?E(e):n(e)}function z(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Fe(t)?Ue(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),s(t)}}},$t={name:"labelStartLink",resolveAll:Rt.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Ut={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Le(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Zt={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),i++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):Le(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Le(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}},Ht={42:ot,43:ot,45:ot,48:ot,49:ot,50:ot,51:ot,52:ot,53:ot,54:ot,55:ot,56:ot,57:ot,62:at},Wt={91:ft},Gt={[-2]:mt,[-1]:mt,32:mt},qt={35:vt,42:rt,45:[yt,rt],60:xt,61:yt,95:rt,96:Tt,126:Tt},Kt={38:At,92:Ct},Jt={[-5]:Ot,[-4]:Ot,[-3]:Ot,33:Dt,38:At,42:Nt,60:[Vt,Bt],91:$t,92:[Ut,Ct],93:Rt,95:Nt,96:Zt},Xt={null:[Nt,Xe]},Yt={null:[42,95]},Qt={null:[]};function en(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[],l=!0;const u={attempt:v(function(e,t){y(e,t.from)}),check:v(g),consume:function(e){Le(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:v(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&o)continue;s=" ";break;default:s=String.fromCharCode(i)}o=-2===i,r.push(s)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){return s=Se(s,e),function(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}(),null!==s[s.length-1]?[]:(y(t,0),c.events=zt(i,c.events,c),c.events)}};let d,p=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}(s,e)}function h(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function m(e){l=void 0,d=e,p=p(e)}function g(e,t){t.restore()}function v(e,t){return function(n,o,i){let s,d,p,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(m=n,function(e){const t=null!==e&&m[e],n=null!==e&&m.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var m;function g(e){return s=e,d=0,0===e.length?i:v(e[d])}function v(e){return function(n){return f=function(){const e=h(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(a);return{from:o,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,a=i,b()}}}(),p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?w():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,w)(n)}}function y(t){return l=!0,e(p,f),o}function w(e){return l=!0,f.restore(),++d<s.length?v(s[d]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&xe(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const tn=/[\0\t\n\r]/g;function nn(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const rn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function on(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return nn(n.slice(t?2:1),t?16:10)}return _t(n)||e}const sn={}.hasOwnProperty;function an(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:o(m),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:o(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(h,i),codeText:o(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(g),hardBreakTrailing:o(g),htmlFlow:o(v,i),htmlFlowData:c,htmlText:o(v,i),htmlTextData:c,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:o(y),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(b),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(m),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=nn(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=_t(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=ln(e.end)},codeFenced:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:a(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(p),hardBreakTrailing:a(p),htmlFlow:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(rn,on)}(t),n.identifier=pt(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=ln(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};un(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const a={stack:[o],tokenStack:[],config:t,enter:s,exit:l,buffer:i,resume:u,data:n},c=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?c.push(d):d=r(e,c.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];sn.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||dn).call(a,void 0,e[0])}for(o.position={start:ln(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ln(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,i,s,a=t-1,l=-1,u=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||i||(i=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(o=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,s=!0}}}return e[t][1]._spread=u,n}function o(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ln(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||dn).call(this,e,r[0])),n.position.end=ln(e.end)}function u(){return function(e){return be(e,"boolean"!=typeof ye.includeImageAlt||ye.includeImageAlt,"boolean"!=typeof ye.includeHtml||ye.includeHtml)}(this.stack.pop())}function c(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:ln(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ln(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!Te(e););return e}(function(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)Ae(t,e[n]);return t}([o,...(e||{}).extensions||[]]),n={constructs:t,content:r(Ze),defined:[],document:r(He),flow:r(Je),lazy:{},string:r(Ye),text:r(Qe)};return n;function r(e){return function(t){return en(n,e,t)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,s){const a=[];let l,u,c,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(tn.lastIndex=c,l=tn.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===p&&c===d&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),c<d&&(a.push(o.slice(c,d)),t+=d-c),p){case 0:a.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),a.push(-2);t++<u;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function ln(e){return{line:e.line,column:e.column,offset:e.offset}}function un(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?un(e,r):cn(e,r)}}function cn(e,t){let n;for(n in t)if(sn.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function dn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function pn(e){const t=this;t.parser=function(n){return an(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const fn="object"==typeof self?self:globalThis,hn=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,s]=t[o];switch(i){case 0:case-1:return n(s,o);case 1:{const e=n([],o);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),o);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new fn[e](t),o)}case 8:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new fn[i](s),o)};return r})(new Map,e)(0),mn="",{toString:gn}={},{keys:vn}=Object,yn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=gn.call(e).slice(8,-1);switch(n){case"Array":return[1,mn];case"Object":return[2,mn];case"Date":return[3,mn];case"RegExp":return[4,mn];case"Map":return[5,mn];case"Set":return[6,mn];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},bn=([e,t])=>0===e&&("function"===t||"symbol"===t),wn=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[s,a]=yn(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),o([a,[...e]],r)}const e=[],t=o([s,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([s,n],r);for(const t of vn(r))!e&&bn(yn(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([s,{source:e,flags:t}],r)}case 5:{const t=[],n=o([s,t],r);for(const[n,o]of r)(e||!bn(yn(n))&&!bn(yn(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([s,t],r);for(const n of r)!e&&bn(yn(n))||t.push(i(n));return n}}const{message:l}=r;return o([s,{name:a,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},xn="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?hn(wn(e,t)):structuredClone(e):(e,t)=>hn(wn(e,t));function Sn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(37===i&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(s=String.fromCharCode(i,t),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function kn(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function En(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Tn=function(e){if(null==e)return An;if("function"==typeof e)return Pn(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tn(e[n]);return Pn(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return Pn(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return t=e,Pn(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function Pn(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function An(){return!0}const Cn=[],On=!1;function zn(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),function(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Tn(o),s=r?-1:1;!function e(o,a,l){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,p=Cn;if((!t||i(o,a,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?Cn:[e]}(n(o,l)),p[0]===On))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(c=(r?t.children.length:-1)+s,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(u=e(n,c,d)(),u[0]===On)return u;c="number"==typeof u[1]?u[1]:c+s}}return p}}(e,void 0,[])()}(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}function Rn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&"text"===s.type?s.value+=r:o.push({type:"text",value:r}),o}function In(e){const t=e.spread;return null==t?e.children.length>1:t}function Mn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(jn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(jn(t.slice(o),o>0,!1)),i.join("")}function jn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Dn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Sn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rn(e,t);const o={src:Sn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Sn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rn(e,t);const o={href:Sn(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Sn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=In(n[r])}return t}(n):In(t),i={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?s.push(e):s.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=q(t.children[1]),s=G(t.children[t.children.length-1]);i&&s&&(r.position={start:i,end:s}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,s=i?i.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const n=t.children[a],r={},s=i?i[a]:void 0;s&&(r.align=s);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Mn(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ln,yaml:Ln,definition:Ln,footnoteDefinition:Ln};function Ln(){}const Nn={}.hasOwnProperty,Fn={};function Vn(e,t){e.position&&(t.position=function(e){const t=q(e),n=G(e);if(t&&n)return{start:t,end:n}}(e))}function Bn(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,xn(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function $n(e,t){const n=t.data||{},r=!("value"in t)||Nn.call(n,"hProperties")||Nn.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Un(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Zn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Hn(e,t){const n=function(e,t){const n=t||Fn,r=new Map,o=new Map,i=new Map,s={...Dn,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Zn(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Zn(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Bn,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(Nn.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=xn(n);return r.children=a.all(e),r}return xn(e)}return(a.options.unknownHandler||$n)(a,e,t)},options:n,patch:Vn,wrap:Un};return zn(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||kn,r=e.options.footnoteBackLabel||En,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),s=String(o.identifier).toUpperCase(),u=Sn(s.toLowerCase());let c=0;const d=[],p=e.footnoteCounts.get(s);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xn(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Wn(e,t){return e&&"run"in e?async function(n,r){const o=Hn(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Hn(n,{file:r,...e||t})}}function Gn(e){if(e)throw e}var qn=n(2849);function Kn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Jn=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');tr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},Xn=function(e){if(tr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},Yn=function(e){tr(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)},Qn=function(...e){let t,n=-1;for(;++n<e.length;)tr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=l,a=0;continue}}else if(o.length>0){o="",i=0,s=l,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,l):o=e.slice(s+1,l),i=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},er="/";function tr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nr=function(){return"/"};function rr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const or=["history","path","basename","stem","extname","dirname"];class ir{constructor(e){let t;t=e?rr(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nr(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<or.length;){const e=or[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)or.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Jn(this.path):void 0}set basename(e){ar(e,"basename"),sr(e,"basename"),this.path=Qn(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Xn(this.path):void 0}set dirname(e){lr(this.basename,"dirname"),this.path=Qn(e||"",this.basename)}get extname(){return"string"==typeof this.path?Yn(this.path):void 0}set extname(e){if(sr(e,"extname"),lr(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qn(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rr(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!rr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ar(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Jn(this.path,this.extname):void 0}set stem(e){ar(e,"stem"),sr(e,"stem"),this.path=Qn(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new ee(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function sr(e,t){if(e&&e.includes(er))throw new Error("`"+t+"` cannot be a path: did not expect `"+er+"`")}function ar(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ur=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},cr={}.hasOwnProperty;class dr extends ur{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const a=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==s[l]&&void 0!==s[l]||(s[l]=t[l]);t=s,a?function(e,t){let n;return function(...t){const i=e.length>t.length;let s;i&&t.push(r);try{s=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(s&&s.then&&"function"==typeof s.then?s.then(o,r):s instanceof Error?r(s):o(s))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(a,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new dr;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(qn(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(mr("data",this.frozen),this.namespace[e]=t,this):cr.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mr("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=yr(e),n=this.parser||this.Parser;return fr("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fr("process",this.parser||this.Parser),hr("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=yr(e),s=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var s;"string"==typeof(s=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fr("processSync",this.parser||this.Parser),hr("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Gn(e),t=r}),vr("processSync","process",n),t}run(e,t,n){gr(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=yr(t);r.run(e,s,function(t,r,s){const a=r||e;t?i(t):o?o(a):n(void 0,a,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Gn(e),n=t,r=!0}),vr("runSync","run",r),n}stringify(e,t){this.freeze();const n=yr(t),r=this.compiler||this.Compiler;return hr("stringify",r),gr(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(mr("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=qn(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function a(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];Kn(s)&&Kn(r)&&(r=qn(!0,s,r)),n[o]=[e,r,...i]}}}}const pr=(new dr).freeze();function fr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function hr(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function mr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gr(e){if(!Kn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function vr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yr(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ir(e)}const br=[],wr={allowDangerousHtml:!0},xr=/^(https?|ircs?|mailto|xmpp)$/i,Sr=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kr(e){const t=function(e){const t=e.rehypePlugins||br,n=e.remarkPlugins||br,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wr}:wr;return pr().use(pn).use(n).use(Wn,r).use(t)}(e),n=function(e){const t=e.children||"",n=new ir;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||Er;for(const e of Sr)Object.hasOwn(t,e.from)&&s((e.from,e.to&&e.to,e.id));return zn(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ge)if(Object.hasOwn(ge,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ge[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"==typeof t&&(s=!r(e,t,o)),s&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const s=Array.isArray(o.children),a=q(n);return t(r,o,i,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const s=Array.isArray(n.children)?i:o;return r?s(t,n,r):s(t,n)}}var o,i;const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:N,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=ae(s,e,void 0);return a&&"string"!=typeof a?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}(e,{Fragment:ve.Fragment,components:o,ignoreInvalidStyle:!0,jsx:ve.jsx,jsxs:ve.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function Er(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||xr.test(e.slice(0,t))?e:""}},9700(e,t,n){"use strict";n.d(t,{A:()=>a,B:()=>f,I:()=>_,O:()=>u,S:()=>W,U:()=>l,a:()=>d,b:()=>s,c:()=>$,d:()=>Z,e:()=>c,f:()=>H,g:()=>G,i:()=>v,m:()=>p,n:()=>F,o:()=>N,r:()=>P,s:()=>D,t:()=>A,u:()=>C,z:()=>w});var r=n(1609),o=n(1496),i=Object.prototype.hasOwnProperty;const s=new WeakMap,a=()=>{},l=a(),u=Object,c=e=>e===l,d=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),f=e=>d(e.then),h={},m={},g="undefined",v=typeof window!=g,y=typeof document!=g,b=v&&"Deno"in window,w=(e,t)=>{const n=s.get(e);return[()=>!c(t)&&e.get(t)||h,r=>{if(!c(t)){const o=e.get(t);t in m||(m[t]=o),n[5](t,p(o,r),o||h)}},n[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||h]};let x=!0;const[S,k]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],E={isOnline:()=>x,isVisible:()=>{const e=y&&document.visibilityState;return c(e)||"hidden"!==e}},T={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),k("focus",e)}),initReconnect:e=>{const t=()=>{x=!0,e()},n=()=>{x=!1};return S("online",t),S("offline",n),()=>{k("online",t),k("offline",n)}}},P=!r.useId,_=!v||b,A=e=>v&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),C=_?r.useEffect:r.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,z=!_&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),R=new WeakMap,I=(e,t)=>e===`[object ${t}]`;let M=0;const j=e=>{const t=typeof e,n=(r=e,u.prototype.toString.call(r));var r;const o=I(n,"Date"),i=I(n,"RegExp"),s=I(n,"Object");let a,l;if(u(e)!==e||o||i)a=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=R.get(e),a)return a;if(a=++M+"~",R.set(e,a),Array.isArray(e)){for(a="@",l=0;l<e.length;l++)a+=j(e[l])+",";R.set(e,a)}if(s){a="#";const t=u.keys(e).sort();for(;!c(l=t.pop());)c(e[l])||(a+=l+":"+j(e[l])+",");R.set(e,a)}}return a},D=e=>{if(d(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]};let L=0;const N=()=>++L;async function F(...e){const[t,n,r,i]=e,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let u=a.populateCache;const h=a.rollbackOnError;let m=a.optimisticData;const g=a.throwOnError;if(d(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(v))}return v(n);async function v(n){const[i]=D(n);if(!i)return;const[p,v]=w(t,i),[y,b,x,S]=s.get(t),k=()=>{const e=y[i];return(d(a.revalidate)?a.revalidate(p().data,n):!1!==a.revalidate)&&(delete x[i],delete S[i],e&&e[0])?e[0](o.q2).then(()=>p().data):p().data};if(e.length<3)return k();let E,T=r,P=!1;const _=N();b[i]=[_,0];const A=!c(m),C=p(),O=C.data,z=C._c,R=c(z)?O:z;if(A&&(m=d(m)?m(R,O):m,v({data:m,_c:R})),d(T))try{T=T(R)}catch(e){E=e,P=!0}if(T&&f(T)){if(T=await T.catch(e=>{E=e,P=!0}),_!==b[i][0]){if(P)throw E;return T}P&&A&&(e=>"function"==typeof h?h(e):!1!==h)(E)&&(u=!0,v({data:R,_c:l}))}if(u&&!P)if(d(u)){const e=u(T,R);v({data:e,error:l,_c:l})}else v({data:T,error:l,_c:l});if(b[i][1]=N(),Promise.resolve(k()).then(()=>{v({_c:l})}),!P)return T;if(g)throw E}}const V=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!s.has(e)){const n=p(T,t),r=Object.create(null),i=F.bind(l,e);let u=a;const c=Object.create(null),d=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);const o=c[t];if(o)for(const e of o)e(n,r)},h=()=>{if(!s.has(e)&&(s.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,f,d]),!_)){const t=n.initFocus(setTimeout.bind(l,V.bind(l,r,o.CC))),i=n.initReconnect(setTimeout.bind(l,V.bind(l,r,o.jB)));u=()=>{t&&t(),i&&i(),s.delete(e)}}};return h(),[e,i,h,u]}return[e,s.get(e)[4]]},[$,U]=B(new Map),Z=p({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!c(o)&&i>o||setTimeout(n,s,r)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:function e(t,n){var r,o;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((o=t.length)===n.length)for(;o--&&e(t[o],n[o]););return-1===o}if(!r||"object"==typeof t){for(r in o=0,t){if(i.call(t,r)&&++o&&!i.call(n,r))return!1;if(!(r in n)||!e(t[r],n[r]))return!1}return Object.keys(n).length===o}}return t!=t&&n!=n},isPaused:()=>!1,cache:$,mutate:U,fallback:{}},E),H=(e,t)=>{const n=p(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=p(o,s))}return n},W=(0,r.createContext)({}),G=e=>{const{value:t}=e,n=(0,r.useContext)(W),o=d(t),i=(0,r.useMemo)(()=>o?t(n):t,[o,n,t]),s=(0,r.useMemo)(()=>o?i:H(n,i),[o,n,i]),a=i&&i.provider,u=(0,r.useRef)(l);a&&!u.current&&(u.current=B(a(s.cache||$),i));const c=u.current;return c&&(s.cache=c[0],s.mutate=c[1]),C(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,r.createElement)(W.Provider,p(e,{value:s}))}},5430(e,t,n){"use strict";n.d(t,{q:()=>r});const r="$inf$"},1496(e,t,n){"use strict";n.d(t,{CC:()=>r,I0:()=>s,jB:()=>o,q2:()=>i});const r=0,o=1,i=2,s=3},4993(e,t,n){"use strict";n.d(t,{Ht:()=>f,aw:()=>p,iX:()=>u,qm:()=>d});var r=n(9700),o=n(5430),i=n(1609);const s=r.i&&window.__SWR_DEVTOOLS_USE__,a=s?window.__SWR_DEVTOOLS_USE__:[],l=e=>(0,r.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],u=()=>{const e=(0,i.useContext)(r.S);return(0,i.useMemo)(()=>(0,r.m)(r.d,e),[e])},c=a.concat(e=>(t,n,i)=>e(t,n&&((...e)=>{const[i]=(0,r.s)(t),[,,,s]=r.b.get(r.c);if(i.startsWith(o.q))return n(...e);const a=s[i];return(0,r.e)(a)?n(...e):(delete s[i],a)}),i)),d=e=>function(...t){const n=u(),[o,i,s]=l(t),a=(0,r.f)(n,s);let d=e;const{use:p}=a,f=(p||[]).concat(c);for(let e=f.length;e--;)d=f[e](d);return d(o,i||a.fetcher||null,a)},p=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},f=(e,t)=>(...n)=>{const[r,o,i]=l(n),s=(i.use||[]).concat(t);return e(r,o,{...i,use:s})};s&&(window.__SWR_DEVTOOLS_REACT__=i)},4225(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2177);const o=(0,n(4993).Ht)(r.Ay,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,r.refreshInterval=0,e(t,n,r)))},2177(e,t,n){"use strict";n.d(t,{Ay:()=>h,BE:()=>f});var r=n(1609),o=n(9888),i=n(4993),s=n(9700),a=n(1496);const l=()=>{};l(),new WeakMap;const u=r.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),c={dedupe:!0},d=Promise.resolve(s.U),p=()=>s.A,f=s.O.defineProperty(s.g,"defaultValue",{value:s.d}),h=(0,i.qm)((e,t,n)=>{const{cache:l,compare:f,suspense:h,fallbackData:m,revalidateOnMount:g,revalidateIfStale:v,refreshInterval:y,refreshWhenHidden:b,refreshWhenOffline:w,keepPreviousData:x,strictServerPrefetchWarning:S}=n,[k,E,T,P]=s.b.get(l),[_,A]=(0,s.s)(e),C=(0,r.useRef)(!1),O=(0,r.useRef)(!1),z=(0,r.useRef)(_),R=(0,r.useRef)(t),I=(0,r.useRef)(n),M=()=>I.current,j=()=>M().isVisible()&&M().isOnline(),[D,L,N,F]=(0,s.z)(l,_),V=(0,r.useRef)({}).current,B=(0,s.e)(m)?(0,s.e)(n.fallback)?s.U:n.fallback[_]:m,$=(e,t)=>{for(const n in V){const r=n;if("data"===r){if(!f(e[r],t[r])){if(!(0,s.e)(e[r]))return!1;if(!f(X,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},U=!C.current,Z=(0,r.useMemo)(()=>{const e=D(),n=F(),r=e=>{const n=(0,s.m)(e);delete n._k;const r=(()=>{if(!_)return!1;if(!t)return!1;if(M().isPaused())return!1;if(U&&!(0,s.e)(g))return g;const e=(0,s.e)(B)?n.data:B;return(0,s.e)(e)||v})();return r?{isValidating:!0,isLoading:!0,...n}:n},o=r(e),i=e===n?o:r(n);let a=o;return[()=>{const e=r(D());return $(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>i]},[l,_]),H=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>N(_,(t,n)=>{$(n,t)||e()}),[l,_]),Z[0],Z[1]),W=k[_]&&k[_].length>0,G=H.data,q=(0,s.e)(G)?B&&(0,s.B)(B)?u(B):B:G,K=H.error,J=(0,r.useRef)(q),X=x?(0,s.e)(G)?(0,s.e)(J.current)?q:J.current:G:q,Y=_&&(0,s.e)(q),Q=(0,r.useRef)(null);!s.I&&(0,o.useSyncExternalStore)(p,()=>(Q.current=!1,Q),()=>(Q.current=!0,Q));const ee=Q.current;S&&ee&&!h&&Y&&console.warn(`Missing pre-initiated data for serialized key "${_}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const te=!(!_||!t)&&!M().isPaused()&&!(W&&!(0,s.e)(K))&&(U&&!(0,s.e)(g)?g:h?!(0,s.e)(q)&&v:(0,s.e)(q)||v),ne=(0,s.e)(H.isValidating)?te:H.isValidating,re=(0,s.e)(H.isLoading)?te:H.isLoading,oe=(0,r.useCallback)(async e=>{const t=R.current;if(!_||!t||O.current||M().isPaused())return!1;let r,o,i=!0;const l=e||{},u=!T[_]||!l.dedupe,c=()=>s.r?!O.current&&_===z.current&&C.current:_===z.current,d={isValidating:!1,isLoading:!1},p=()=>{L(d)},h=()=>{const e=T[_];e&&e[1]===o&&delete T[_]},m={isValidating:!0};(0,s.e)(D().data)&&(m.isLoading=!0);try{if(u&&(L(m),n.loadingTimeout&&(0,s.e)(D().data)&&setTimeout(()=>{i&&c()&&M().onLoadingSlow(_,n)},n.loadingTimeout),T[_]=[t(A),(0,s.o)()]),[r,o]=T[_],r=await r,u&&setTimeout(h,n.dedupingInterval),!T[_]||T[_][1]!==o)return u&&c()&&M().onDiscarded(_),!1;d.error=s.U;const e=E[_];if(!(0,s.e)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return p(),u&&c()&&M().onDiscarded(_),!1;const a=D().data;d.data=f(a,r)?a:r,u&&c()&&M().onSuccess(r,_,n)}catch(e){h();const t=M(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,u&&c()&&(t.onError(e,_,t),(!0===n||(0,s.a)(n)&&n(e))&&(M().revalidateOnFocus&&M().revalidateOnReconnect&&!j()||t.onErrorRetry(e,_,t,e=>{const t=k[_];t&&t[0]&&t[0](a.I0,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return i=!1,p(),!0},[_,l]),ie=(0,r.useCallback)((...e)=>(0,s.n)(l,z.current,...e),[]);if((0,s.u)(()=>{R.current=t,I.current=n,(0,s.e)(G)||(J.current=G)}),(0,s.u)(()=>{if(!_)return;const e=oe.bind(s.U,c);let t=0;if(M().revalidateOnFocus){const e=Date.now();t=e+M().focusThrottleInterval}const n=(0,i.aw)(_,k,(n,r={})=>{if(n==a.CC){const n=Date.now();M().revalidateOnFocus&&n>t&&j()&&(t=n+M().focusThrottleInterval,e())}else if(n==a.jB)M().revalidateOnReconnect&&j()&&e();else{if(n==a.q2)return oe();if(n==a.I0)return oe(r)}});return O.current=!1,z.current=_,C.current=!0,L({_k:A}),te&&(T[_]||((0,s.e)(q)||s.I?e():(0,s.t)(e))),()=>{O.current=!0,n()}},[_]),(0,s.u)(()=>{let e;function t(){const t=(0,s.a)(y)?y(D().data):y;t&&-1!==e&&(e=setTimeout(n,t))}function n(){D().error||!b&&!M().isVisible()||!w&&!M().isOnline()?t():oe(c).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,b,w,_]),(0,r.useDebugValue)(X),h){if(!s.r&&s.I&&Y)throw new Error("Fallback data is required when using Suspense in SSR.");Y&&(R.current=t,I.current=n,O.current=!1);const e=P[_],r=!(0,s.e)(e)&&Y?ie(e):d;if(u(r),!(0,s.e)(K)&&Y)throw K;const o=Y?oe(c):d;!(0,s.e)(X)&&Y&&(o.status="fulfilled",o.value=!0),u(o)}return{mutate:ie,get data(){return V.data=!0,X},get error(){return V.error=!0,K},get isValidating(){return V.isValidating=!0,ne},get isLoading(){return V.isLoading=!0,re}}})},3041(e,t,n){"use strict";n.d(t,{Ay:()=>y});var r=n(1609),o=n(2177),i=n(4993),s=n(9700),a=n(5430),l=n(9888);const u=()=>{},c=u(),d=Object,p=e=>e===c,f=new WeakMap,h=(e,t)=>e===`[object ${t}]`;let m=0;const g=e=>{const t=typeof e,n=(r=e,d.prototype.toString.call(r));var r;const o=h(n,"Date"),i=h(n,"RegExp"),s=h(n,"Object");let a,l;if(d(e)!==e||o||i)a=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=f.get(e),a)return a;if(a=++m+"~",f.set(e,a),Array.isArray(e)){for(a="@",l=0;l<e.length;l++)a+=g(e[l])+",";f.set(e,a)}if(s){a="#";const t=d.keys(e).sort();for(;!p(l=t.pop());)p(e[l])||(a+=l+":"+g(e[l])+",");f.set(e,a)}}return a},v=Promise.resolve(),y=(0,i.Ht)(o.Ay,e=>(t,n,o)=>{const i=(0,r.useRef)(!1),{cache:u,initialSize:c=1,revalidateAll:d=!1,persistSize:p=!1,revalidateFirstPage:f=!0,revalidateOnMount:h=!1,parallel:m=!1}=o,[,,,y]=s.b.get(s.c);let b;try{b=(e=>(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]})(e?e(0,null):null)[0])(t),b&&(b=a.q+b)}catch(e){}const[w,x,S]=(0,s.z)(u,b),k=(0,r.useCallback)(()=>(0,s.e)(w()._l)?c:w()._l,[u,b,c]);(0,l.useSyncExternalStore)((0,r.useCallback)(e=>b?S(b,()=>{e()}):()=>{},[u,b]),k,k);const E=(0,r.useCallback)(()=>{const e=w()._l;return(0,s.e)(e)?c:e},[b,c]),T=(0,r.useRef)(E());(0,s.u)(()=>{i.current?b&&x({_l:p?T.current:E()}):i.current=!0},[b,u]);const P=h&&!i.current,_=e(b,async e=>{const r=w()._i,i=w()._r;x({_r:s.U});const a=[],l=E(),[c]=(0,s.z)(u,e),p=c().data,h=[];let g=null;for(let e=0;e<l;++e){const[l,c]=(0,s.s)(t(e,m?null:g));if(!l)break;const[v,b]=(0,s.z)(u,l);let w=v().data;const x=d||r||(0,s.e)(w)||f&&!e&&!(0,s.e)(p)||P||p&&!(0,s.e)(p[e])&&!o.compare(p[e],w);if(n&&("function"==typeof i?i(w,c):x)){const t=async()=>{if(l in y){const e=y[l];delete y[l],w=await e}else w=await n(c);b({data:w,_k:c}),a[e]=w};m?h.push(t):await t()}else a[e]=w;m||(g=w)}return m&&await Promise.all(h.map(e=>e())),x({_i:s.U}),a},o),A=(0,r.useCallback)(function(e,t){const n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return b?(r&&((0,s.e)(e)?x({_i:!0,_r:n.revalidate}):x({_i:!1,_r:n.revalidate})),arguments.length?_.mutate(e,{...n,revalidate:r}):_.mutate()):v},[b,u]),C=(0,r.useCallback)(e=>{if(!b)return v;const[,n]=(0,s.z)(u,b);let r;if((0,s.a)(e)?r=e(E()):"number"==typeof e&&(r=e),"number"!=typeof r)return v;n({_l:r}),T.current=r;const o=[],[i]=(0,s.z)(u,b);let a=null;for(let e=0;e<r;++e){const[n]=(0,s.s)(t(e,a)),[r]=(0,s.z)(u,n),l=n?r().data:s.U;if((0,s.e)(l))return A(i().data);o.push(l),a=l}return A(o)},[b,u,A,E]);return{size:E(),setSize:C,mutate:A,get data(){return _.data},get error(){return _.error},get isValidating(){return _.isValidating},get isLoading(){return _.isLoading}}})},6001(e,t,n){"use strict";n.d(t,{YOg:()=>Fs,zMY:()=>gs,euz:()=>fa,_H3:()=>Zs,Ikc:()=>$s,YjP:()=>ci,KCZ:()=>Ws,OZ5:()=>Si});var r={};n.r(r),n.d(r,{base64:()=>Ie,base64url:()=>Me,bigint:()=>Ze,boolean:()=>Ge,browserEmail:()=>Pe,cidrv4:()=>ze,cidrv6:()=>Re,cuid:()=>le,cuid2:()=>ue,date:()=>Fe,datetime:()=>$e,domain:()=>De,duration:()=>he,e164:()=>Le,email:()=>xe,emoji:()=>_e,extendedDuration:()=>me,guid:()=>ge,hex:()=>Ye,hostname:()=>je,html5Email:()=>Se,idnEmail:()=>Te,integer:()=>He,ipv4:()=>Ae,ipv6:()=>Ce,ksuid:()=>pe,lowercase:()=>Je,mac:()=>Oe,md5_base64:()=>nt,md5_base64url:()=>rt,md5_hex:()=>tt,nanoid:()=>fe,null:()=>qe,number:()=>We,rfc5322Email:()=>ke,sha1_base64:()=>it,sha1_base64url:()=>st,sha1_hex:()=>ot,sha256_base64:()=>lt,sha256_base64url:()=>ut,sha256_hex:()=>at,sha384_base64:()=>dt,sha384_base64url:()=>pt,sha384_hex:()=>ct,sha512_base64:()=>ht,sha512_base64url:()=>mt,sha512_hex:()=>ft,string:()=>Ue,time:()=>Be,ulid:()=>ce,undefined:()=>Ke,unicodeEmail:()=>Ee,uppercase:()=>Xe,uuid:()=>ve,uuid4:()=>ye,uuid6:()=>be,uuid7:()=>we,xid:()=>de});var o={};n.r(o),n.d(o,{endsWith:()=>wo,gt:()=>to,gte:()=>no,includes:()=>yo,length:()=>ho,lowercase:()=>go,lt:()=>Qr,lte:()=>eo,maxLength:()=>po,maxSize:()=>lo,mime:()=>So,minLength:()=>fo,minSize:()=>uo,multipleOf:()=>ao,negative:()=>oo,nonnegative:()=>so,nonpositive:()=>io,normalize:()=>Eo,overwrite:()=>ko,positive:()=>ro,property:()=>xo,regex:()=>mo,size:()=>co,slugify:()=>Ao,startsWith:()=>bo,toLowerCase:()=>Po,toUpperCase:()=>_o,trim:()=>To,uppercase:()=>vo});var i={};n.r(i),n.d(i,{ZodISODate:()=>Bo,ZodISODateTime:()=>Fo,ZodISODuration:()=>Ho,ZodISOTime:()=>Uo,date:()=>$o,datetime:()=>Vo,duration:()=>Wo,time:()=>Zo});var s={};function a(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:s,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);const o=s.prototype,i=Object.keys(o);for(let e=0;e<i.length;e++){const t=i[e];t in n||(n[t]=o[t].bind(n))}}const o=n?.Parent??Object;class i extends o{}function s(e){var t;const o=n?.Parent?new i:this;r(o,e),(t=o._zod).deferred??(t.deferred=[]);for(const e of o._zod.deferred)e();return o}return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}n.r(s),n.d(s,{ZodAny:()=>As,ZodArray:()=>Ns,ZodBase64:()=>qi,ZodBase64URL:()=>Ji,ZodBigInt:()=>vs,ZodBigIntFormat:()=>bs,ZodBoolean:()=>ms,ZodCIDRv4:()=>Zi,ZodCIDRv6:()=>Wi,ZodCUID:()=>Ai,ZodCUID2:()=>Oi,ZodCatch:()=>Ia,ZodCodec:()=>Fa,ZodCustom:()=>Xa,ZodCustomStringFormat:()=>ns,ZodDate:()=>Ds,ZodDefault:()=>Ta,ZodDiscriminatedUnion:()=>Ks,ZodE164:()=>Yi,ZodEmail:()=>pi,ZodEmoji:()=>Ei,ZodEnum:()=>ua,ZodExactOptional:()=>wa,ZodFile:()=>ha,ZodFunction:()=>Ka,ZodGUID:()=>hi,ZodIPv4:()=>Ni,ZodIPv6:()=>$i,ZodIntersection:()=>Xs,ZodJWT:()=>es,ZodKSUID:()=>Di,ZodLazy:()=>Ha,ZodLiteral:()=>pa,ZodMAC:()=>Vi,ZodMap:()=>ia,ZodNaN:()=>ja,ZodNanoID:()=>Pi,ZodNever:()=>Rs,ZodNonOptional:()=>Ca,ZodNull:()=>Ps,ZodNullable:()=>Sa,ZodNumber:()=>as,ZodNumberFormat:()=>us,ZodObject:()=>Bs,ZodOptional:()=>ya,ZodPipe:()=>La,ZodPrefault:()=>_a,ZodPromise:()=>Ga,ZodReadonly:()=>Ba,ZodRecord:()=>ta,ZodSet:()=>aa,ZodString:()=>ui,ZodStringFormat:()=>di,ZodSuccess:()=>za,ZodSymbol:()=>Ss,ZodTemplateLiteral:()=>Ua,ZodTransform:()=>ga,ZodTuple:()=>Qs,ZodType:()=>ai,ZodULID:()=>Ri,ZodURL:()=>xi,ZodUUID:()=>gi,ZodUndefined:()=>Es,ZodUnion:()=>Hs,ZodUnknown:()=>Os,ZodVoid:()=>Ms,ZodXID:()=>Mi,ZodXor:()=>Gs,_ZodString:()=>li,_default:()=>Pa,_function:()=>Ja,any:()=>Cs,array:()=>Fs,base64:()=>Ki,base64url:()=>Xi,bigint:()=>ys,boolean:()=>gs,catch:()=>Ma,check:()=>Ya,cidrv4:()=>Hi,cidrv6:()=>Gi,codec:()=>Va,cuid:()=>Ci,cuid2:()=>zi,custom:()=>Qa,date:()=>Ls,describe:()=>nl,discriminatedUnion:()=>Js,e164:()=>Qi,email:()=>fi,emoji:()=>Ti,enum:()=>ca,exactOptional:()=>xa,file:()=>ma,float32:()=>ds,float64:()=>ps,function:()=>Ja,guid:()=>mi,hash:()=>ss,hex:()=>is,hostname:()=>os,httpUrl:()=>ki,instanceof:()=>ol,int:()=>cs,int32:()=>fs,int64:()=>ws,intersection:()=>Ys,ipv4:()=>Fi,ipv6:()=>Ui,json:()=>sl,jwt:()=>ts,keyof:()=>Vs,ksuid:()=>Li,lazy:()=>Wa,literal:()=>fa,looseObject:()=>Zs,looseRecord:()=>oa,mac:()=>Bi,map:()=>sa,meta:()=>rl,nan:()=>Da,nanoid:()=>_i,nativeEnum:()=>da,never:()=>Is,nonoptional:()=>Oa,null:()=>_s,nullable:()=>ka,nullish:()=>Ea,number:()=>ls,object:()=>$s,optional:()=>ba,partialRecord:()=>ra,pipe:()=>Na,prefault:()=>Aa,preprocess:()=>al,promise:()=>qa,readonly:()=>$a,record:()=>na,refine:()=>el,set:()=>la,strictObject:()=>Us,string:()=>ci,stringFormat:()=>rs,stringbool:()=>il,success:()=>Ra,superRefine:()=>tl,symbol:()=>ks,templateLiteral:()=>Za,transform:()=>va,tuple:()=>ea,uint32:()=>hs,uint64:()=>xs,ulid:()=>Ii,undefined:()=>Ts,union:()=>Ws,unknown:()=>zs,url:()=>Si,uuid:()=>vi,uuidv4:()=>yi,uuidv6:()=>bi,uuidv7:()=>wi,void:()=>js,xid:()=>ji,xor:()=>qs}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class u extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const c={};function d(e){return e&&Object.assign(c,e),c}function p(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function f(e,t="|"){return e.map(e=>I(e)).join(t)}function h(e,t){return"bigint"==typeof t?t.toString():t}function m(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g(e){return null==e}function v(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const y=Symbol("evaluating");function b(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==y)return void 0===r&&(r=y,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function w(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function x(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function S(e){return JSON.stringify(e)}const k="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function E(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const T=m(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function P(e){if(!1===E(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const n=t.prototype;return!1!==E(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function _(e){return P(e)?{...e}:Array.isArray(e)?[...e]:e}const A=new Set(["string","number","symbol"]),C=new Set(["string","number","bigint","boolean","symbol","undefined"]);function O(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function R(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function I(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}const M={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},j={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function D(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function L(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function N(e){return"string"==typeof e?e:e?.message}function F(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=N(e.inst?._zod.def?.error?.(e))??N(t?.error?.(e))??N(n.customError?.(e))??N(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function V(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function B(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function $(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}const U=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,h,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Z=a("$ZodError",U),H=a("$ZodError",U,{Parent:Error}),W=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new l;if(s.issues.length){const t=new(o?.Err??e)(s.issues.map(e=>F(e,i,d())));throw k(t,o?.callee),t}return s.value},G=W(H),q=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const t=new(o?.Err??e)(s.issues.map(e=>F(e,i,d())));throw k(t,o?.callee),t}return s.value},K=q(H),J=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new l;return i.issues.length?{success:!1,error:new(e??Z)(i.issues.map(e=>F(e,o,d())))}:{success:!0,data:i.value}},X=J(H),Y=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(e=>F(e,o,d())))}:{success:!0,data:i.value}},Q=Y(H),ee=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return W(e)(t,n,o)},te=e=>(t,n,r)=>W(e)(t,n,r),ne=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return q(e)(t,n,o)},re=e=>async(t,n,r)=>q(e)(t,n,r),oe=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return J(e)(t,n,o)},ie=e=>(t,n,r)=>J(e)(t,n,r),se=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Y(e)(t,n,o)},ae=e=>async(t,n,r)=>Y(e)(t,n,r),le=/^[cC][^\s-]{8,}$/,ue=/^[0-9a-z]+$/,ce=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,de=/^[0-9a-vA-V]{20}$/,pe=/^[A-Za-z0-9]{27}$/,fe=/^[a-zA-Z0-9_-]{21}$/,he=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,me=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ge=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ve=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ye=ve(4),be=ve(6),we=ve(7),xe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Se=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ke=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ee=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Te=Ee,Pe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function _e(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}const Ae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ce=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Oe=e=>{const t=O(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ze=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Re=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ie=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Me=/^[A-Za-z0-9_-]*$/,je=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,De=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Le=/^\+[1-9]\d{6,14}$/,Ne="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Fe=new RegExp(`^${Ne}$`);function Ve(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Be(e){return new RegExp(`^${Ve(e)}$`)}function $e(e){const t=Ve({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Ne}T(?:${r})$`)}const Ue=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),Ze=/^-?\d+n?$/,He=/^-?\d+$/,We=/^-?\d+(?:\.\d+)?$/,Ge=/^(?:true|false)$/i,qe=/^null$/i,Ke=/^undefined$/i,Je=/^[^A-Z]*$/,Xe=/^[^a-z]*$/,Ye=/^[0-9a-fA-F]*$/;function Qe(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function et(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const tt=/^[0-9a-fA-F]{32}$/,nt=Qe(22,"=="),rt=et(22),ot=/^[0-9a-fA-F]{40}$/,it=Qe(27,"="),st=et(27),at=/^[0-9a-fA-F]{64}$/,lt=Qe(43,"="),ut=et(43),ct=/^[0-9a-fA-F]{96}$/,dt=Qe(64,""),pt=et(64),ft=/^[0-9a-fA-F]{128}$/,ht=Qe(86,"=="),mt=et(86),gt=a("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),vt={number:"number",bigint:"bigint",object:"date"},yt=a("$ZodCheckLessThan",(e,t)=>{gt.init(e,t);const n=vt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bt=a("$ZodCheckGreaterThan",(e,t)=>{gt.init(e,t);const n=vt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wt=a("$ZodCheckMultipleOf",(e,t)=>{gt.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===function(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(0===o&&/\d?e-\d?/.test(r)){const e=r.match(/\d?e-(\d?)/);e?.[1]&&(o=Number.parseInt(e[1]))}const i=n>o?n:o;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),xt=a("$ZodCheckNumberFormat",(e,t)=>{gt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,i]=M[t.format];e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,r.minimum=o,r.maximum=i,n&&(r.pattern=He)}),e._zod.check=s=>{const a=s.value;if(n){if(!Number.isInteger(a))return void s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),St=a("$ZodCheckBigIntFormat",(e,t)=>{gt.init(e,t);const[n,r]=j[t.format];e._zod.onattach.push(e=>{const o=e._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=o=>{const i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),kt=a("$ZodCheckMaxSize",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;r.size<=t.maximum||n.issues.push({origin:V(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Et=a("$ZodCheckMinSize",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;r.size>=t.minimum||n.issues.push({origin:V(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Tt=a("$ZodCheckSizeEquals",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{const r=n.value,o=r.size;if(o===t.size)return;const i=o>t.size;n.issues.push({origin:V(r),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Pt=a("$ZodCheckMaxLength",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const o=B(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_t=a("$ZodCheckMinLength",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const o=B(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),At=a("$ZodCheckLengthEquals",(e,t)=>{var n;gt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{const r=n.value,o=r.length;if(o===t.length)return;const i=B(r),s=o>t.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ct=a("$ZodCheckStringFormat",(e,t)=>{var n,r;gt.init(e,t),e._zod.onattach.push(e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ot=a("$ZodCheckRegex",(e,t)=>{Ct.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zt=a("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Je),Ct.init(e,t)}),Rt=a("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Xe),Ct.init(e,t)}),It=a("$ZodCheckIncludes",(e,t)=>{gt.init(e,t);const n=O(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Mt=a("$ZodCheckStartsWith",(e,t)=>{gt.init(e,t);const n=new RegExp(`^${O(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),jt=a("$ZodCheckEndsWith",(e,t)=>{gt.init(e,t);const n=new RegExp(`.*${O(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Dt(e,t,n){e.issues.length&&t.issues.push(...L(n,e.issues))}const Lt=a("$ZodCheckProperty",(e,t)=>{gt.init(e,t),e._zod.check=e=>{const n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Dt(n,e,t.property));Dt(n,e,t.property)}}),Nt=a("$ZodCheckMimeType",(e,t)=>{gt.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Ft=a("$ZodCheckOverwrite",(e,t)=>{gt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class Vt{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const Bt={major:4,minor:3,patch:6},$t=a("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Bt;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let r,o=D(e);for(const i of t){if(i._zod.def.when){if(!i._zod.def.when(e))continue}else if(o)continue;const t=e.issues.length,s=i._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new l;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=D(e,t)))});else{if(e.issues.length===t)continue;o||(o=D(e,t))}}return r?r.then(()=>e):e},n=(n,o,i)=>{if(D(n))return n.aborted=!0,n;const s=t(o,r,i);if(s instanceof Promise){if(!1===i.async)throw new l;return s.then(t=>e._zod.parse(t,i))}return e._zod.parse(s,i)};e._zod.run=(o,i)=>{if(i.skipChecks)return e._zod.parse(o,i);if("backward"===i.direction){const t=e._zod.parse({value:o.value,issues:[]},{...i,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,o,i)):n(t,o,i)}const s=e._zod.parse(o,i);if(s instanceof Promise){if(!1===i.async)throw new l;return s.then(e=>t(e,r,i))}return t(s,r,i)}}b(e,"~standard",()=>({validate:t=>{try{const n=X(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return Q(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),Ut=a("$ZodString",(e,t)=>{$t.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ue(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Zt=a("$ZodStringFormat",(e,t)=>{Ct.init(e,t),Ut.init(e,t)}),Ht=a("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ge),Zt.init(e,t)}),Wt=a("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ve(e))}else t.pattern??(t.pattern=ve());Zt.init(e,t)}),Gt=a("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xe),Zt.init(e,t)}),qt=a("$ZodURL",(e,t)=>{Zt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=o.href:n.value=r)}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Kt=a("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_e()),Zt.init(e,t)}),Jt=a("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=fe),Zt.init(e,t)}),Xt=a("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=le),Zt.init(e,t)}),Yt=a("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ue),Zt.init(e,t)}),Qt=a("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ce),Zt.init(e,t)}),en=a("$ZodXID",(e,t)=>{t.pattern??(t.pattern=de),Zt.init(e,t)}),tn=a("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=pe),Zt.init(e,t)}),nn=a("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=$e(t)),Zt.init(e,t)}),rn=a("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Fe),Zt.init(e,t)}),on=a("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Be(t)),Zt.init(e,t)}),sn=a("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=he),Zt.init(e,t)}),an=a("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ae),Zt.init(e,t),e._zod.bag.format="ipv4"}),ln=a("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ce),Zt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),un=a("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Oe(t.delimiter)),Zt.init(e,t),e._zod.bag.format="mac"}),cn=a("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ze),Zt.init(e,t)}),dn=a("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Re),Zt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(2!==r.length)throw new Error;const[e,t]=r;if(!t)throw new Error;const n=Number(t);if(`${n}`!==t)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function pn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const fn=a("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ie),Zt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{pn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),hn=a("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Me),Zt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function(e){if(!Me.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return pn(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),mn=a("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Le),Zt.init(e,t)}),gn=a("$ZodJWT",(e,t)=>{Zt.init(e,t),e._zod.check=n=>{(function(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&"JWT"!==o?.typ||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),vn=a("$ZodCustomStringFormat",(e,t)=>{Zt.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),yn=a("$ZodNumber",(e,t)=>{$t.init(e,t),e._zod.pattern=e._zod.bag.pattern??We,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const o=n.value;if("number"==typeof o&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i="number"==typeof o?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),bn=a("$ZodNumberFormat",(e,t)=>{xt.init(e,t),yn.init(e,t)}),wn=a("$ZodBoolean",(e,t)=>{$t.init(e,t),e._zod.pattern=Ge,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const o=n.value;return"boolean"==typeof o||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),xn=a("$ZodBigInt",(e,t)=>{$t.init(e,t),e._zod.pattern=Ze,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Sn=a("$ZodBigIntFormat",(e,t)=>{St.init(e,t),xn.init(e,t)}),kn=a("$ZodSymbol",(e,t)=>{$t.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),En=a("$ZodUndefined",(e,t)=>{$t.init(e,t),e._zod.pattern=Ke,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),Tn=a("$ZodNull",(e,t)=>{$t.init(e,t),e._zod.pattern=qe,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),Pn=a("$ZodAny",(e,t)=>{$t.init(e,t),e._zod.parse=e=>e}),An=a("$ZodUnknown",(e,t)=>{$t.init(e,t),e._zod.parse=e=>e}),Cn=a("$ZodNever",(e,t)=>{$t.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),On=a("$ZodVoid",(e,t)=>{$t.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),zn=a("$ZodDate",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}const o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Rn(e,t,n){e.issues.length&&t.issues.push(...L(n,e.issues)),t.value[n]=e.value}const In=a("$ZodArray",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let e=0;e<o.length;e++){const s=o[e],a=t.element._zod.run({value:s,issues:[]},r);a instanceof Promise?i.push(a.then(t=>Rn(t,n,e))):Rn(a,n,e)}return i.length?Promise.all(i).then(()=>n):n}});function Mn(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...L(n,e.issues))}void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function jn(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(r=e.shape,Object.keys(r).filter(e=>"optional"===r[e]._zod.optin&&"optional"===r[e]._zod.optout));var r;return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Dn(e,t,n,r,o,i){const s=[],a=o.keySet,l=o.catchall._zod,u=l.def.type,c="optional"===l.optout;for(const o in t){if(a.has(o))continue;if("never"===u){s.push(o);continue}const i=l.run({value:t[o],issues:[]},r);i instanceof Promise?e.push(i.then(e=>Mn(e,n,o,t,c))):Mn(i,n,o,t,c)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Ln=a("$ZodObject",(e,t)=>{$t.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}const r=m(()=>jn(t));b(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n});const o=E,i=t.catchall;let s;e._zod.parse=(t,n)=>{s??(s=r.value);const a=t.value;if(!o(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};const l=[],u=s.shape;for(const e of s.keys){const r=u[e],o="optional"===r._zod.optout,i=r._zod.run({value:a[e],issues:[]},n);i instanceof Promise?l.push(i.then(n=>Mn(n,t,e,a,o))):Mn(i,t,e,a,o)}return i?Dn(l,a,t,n,r.value,e):l.length?Promise.all(l).then(()=>t):t}}),Nn=a("$ZodObjectJIT",(e,t)=>{Ln.init(e,t);const n=e._zod.parse,r=m(()=>jn(t));let o;const i=E,s=!c.jitless,a=s&&T.value,l=t.catchall;let u;e._zod.parse=(c,d)=>{u??(u=r.value);const p=c.value;return i(p)?s&&a&&!1===d?.async&&!0!==d.jitless?(o||(o=(e=>{const t=new Vt(["shape","payload","ctx"]),n=r.value,o=e=>{const t=S(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const i=Object.create(null);let s=0;for(const e of n.keys)i[e]="key_"+s++;t.write("const newResult = {};");for(const r of n.keys){const n=i[r],s=S(r),a=e[r],l="optional"===a?._zod?.optout;t.write(`const ${n} = ${o(r)};`),l?t.write(`\n if (${n}.issues.length) {\n if (${s} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${s}, ...iss.path] : [${s}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${s} in input) {\n newResult[${s}] = undefined;\n }\n } else {\n newResult[${s}] = ${n}.value;\n }\n \n `):t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${s}, ...iss.path] : [${s}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${s} in input) {\n newResult[${s}] = undefined;\n }\n } else {\n newResult[${s}] = ${n}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");const a=t.compile();return(t,n)=>a(e,t,n)})(t.shape)),c=o(c,d),l?Dn([],p,c,d,u,e):c):n(c,d):(c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),c)}});function Fn(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const o=e.filter(e=>!D(e));return 1===o.length?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>F(e,r,d())))}),t)}const Vn=a("$ZodUnion",(e,t)=>{$t.init(e,t),b(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),b(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),b(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),b(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>v(e.source)).join("|")})$`)}});const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:o.value,issues:[]},i);if(t instanceof Promise)a.push(t),s=!0;else{if(0===t.issues.length)return t;a.push(t)}}return s?Promise.all(a).then(t=>Fn(t,o,e,i)):Fn(a,o,e,i)}});function Bn(e,t,n,r){const o=e.filter(e=>0===e.issues.length);return 1===o.length?(t.value=o[0].value,t):(0===o.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>F(e,r,d())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const $n=a("$ZodXor",(e,t)=>{Vn.init(e,t),t.inclusive=!1;const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let s=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:o.value,issues:[]},i);t instanceof Promise?(a.push(t),s=!0):a.push(t)}return s?Promise.all(a).then(t=>Bn(t,o,e,i)):Bn(a,o,e,i)}}),Un=a("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Vn.init(e,t);const n=e._zod.parse;b(e._zod,"propValues",()=>{const e={};for(const n of t.options){const r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(const r of n)e[t].add(r)}}return e});const r=m(()=>{const e=t.options,n=new Map;for(const r of e){const e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const t of e){if(n.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(o,i)=>{const s=o.value;if(!E(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;const a=r.value.get(s?.[t.discriminator]);return a?a._zod.run(o,i):t.unionFallback?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}}),Zn=a("$ZodIntersection",(e,t)=>{$t.init(e,t),e._zod.parse=(e,n)=>{const r=e.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([t,n])=>Wn(e,t,n)):Wn(e,o,i)}});function Hn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(P(e)&&P(t)){const n=Object.keys(t),r=Object.keys(e).filter(e=>-1!==n.indexOf(e)),o={...e,...t};for(const n of r){const r=Hn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};o[n]=r.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=Hn(e[r],t[r]);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Wn(e,t,n){const r=new Map;let o;for(const n of t.issues)if("unrecognized_keys"===n.code){o??(o=n);for(const e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(const t of n.issues)if("unrecognized_keys"===t.code)for(const e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);const i=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length&&o&&e.issues.push({...o,keys:i}),D(e))return e;const s=Hn(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const Gn=a("$ZodTuple",(e,t)=>{$t.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const s=[],a=[...n].reverse().findIndex(e=>"optional"!==e._zod.optin),l=-1===a?0:n.length-a;if(!t.rest){const t=i.length>n.length,o=i.length<l-1;if(t||o)return r.issues.push({...t?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),r}let u=-1;for(const e of n){if(u++,u>=i.length&&u>=l)continue;const t=e._zod.run({value:i[u],issues:[]},o);t instanceof Promise?s.push(t.then(e=>qn(e,r,u))):qn(t,r,u)}if(t.rest){const e=i.slice(n.length);for(const n of e){u++;const e=t.rest._zod.run({value:n,issues:[]},o);e instanceof Promise?s.push(e.then(e=>qn(e,r,u))):qn(e,r,u)}}return s.length?Promise.all(s).then(()=>r):r}});function qn(e,t,n){e.issues.length&&t.issues.push(...L(n,e.issues)),t.value[n]=e.value}const Kn=a("$ZodRecord",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!P(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[],s=t.keyType._zod.values;if(s){n.value={};const a=new Set;for(const e of s)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){a.add("number"==typeof e?e.toString():e);const s=t.valueType._zod.run({value:o[e],issues:[]},r);s instanceof Promise?i.push(s.then(t=>{t.issues.length&&n.issues.push(...L(e,t.issues)),n.value[e]=t.value})):(s.issues.length&&n.issues.push(...L(e,s.issues)),n.value[e]=s.value)}let l;for(const e in o)a.has(e)||(l=l??[],l.push(e));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{n.value={};for(const s of Reflect.ownKeys(o)){if("__proto__"===s)continue;let a=t.keyType._zod.run({value:s,issues:[]},r);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof s&&We.test(s)&&a.issues.length){const e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===e.issues.length&&(a=e)}if(a.issues.length){"loose"===t.mode?n.value[s]=o[s]:n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(e=>F(e,r,d())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:o[s],issues:[]},r);l instanceof Promise?i.push(l.then(e=>{e.issues.length&&n.issues.push(...L(s,e.issues)),n.value[a.value]=e.value})):(l.issues.length&&n.issues.push(...L(s,l.issues)),n.value[a.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Jn=a("$ZodMap",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),n;const i=[];n.value=new Map;for(const[s,a]of o){const l=t.keyType._zod.run({value:s,issues:[]},r),u=t.valueType._zod.run({value:a,issues:[]},r);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([t,i])=>{Xn(t,i,n,s,o,e,r)})):Xn(l,u,n,s,o,e,r)}return i.length?Promise.all(i).then(()=>n):n}});function Xn(e,t,n,r,o,i,s){e.issues.length&&(A.has(typeof r)?n.issues.push(...L(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(e=>F(e,s,d()))})),t.issues.length&&(A.has(typeof r)?n.issues.push(...L(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(e=>F(e,s,d()))})),n.value.set(e.value,t.value)}const Yn=a("$ZodSet",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!(o instanceof Set))return n.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),n;const i=[];n.value=new Set;for(const e of o){const o=t.valueType._zod.run({value:e,issues:[]},r);o instanceof Promise?i.push(o.then(e=>Qn(e,n))):Qn(o,n)}return i.length?Promise.all(i).then(()=>n):n}});function Qn(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const er=a("$ZodEnum",(e,t)=>{$t.init(e,t);const n=p(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(e=>A.has(typeof e)).map(e=>"string"==typeof e?O(e):e.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const i=t.value;return r.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}}),tr=a("$ZodLiteral",(e,t)=>{if($t.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?O(e):e?O(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),nr=a("$ZodFile",(e,t)=>{$t.init(e,t),e._zod.parse=(t,n)=>{const r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),rr=a("$ZodTransform",(e,t)=>{$t.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new u(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(n.value=e,n));if(o instanceof Promise)throw new l;return n.value=o,n}});function or(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const ir=a("$ZodOptional",(e,t)=>{$t.init(e,t),e._zod.optin="optional",e._zod.optout="optional",b(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),b(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${v(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>or(t,e.value)):or(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),sr=a("$ZodExactOptional",(e,t)=>{ir.init(e,t),b(e._zod,"values",()=>t.innerType._zod.values),b(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ar=a("$ZodNullable",(e,t)=>{$t.init(e,t),b(e._zod,"optin",()=>t.innerType._zod.optin),b(e._zod,"optout",()=>t.innerType._zod.optout),b(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${v(e.source)}|null)$`):void 0}),b(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),lr=a("$ZodDefault",(e,t)=>{$t.init(e,t),e._zod.optin="optional",b(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ur(e,t)):ur(r,t)}});function ur(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const cr=a("$ZodPrefault",(e,t)=>{$t.init(e,t),e._zod.optin="optional",b(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),dr=a("$ZodNonOptional",(e,t)=>{$t.init(e,t),b(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(t=>pr(t,e)):pr(o,e)}});function pr(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const fr=a("$ZodSuccess",(e,t)=>{$t.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new u("ZodSuccess");const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),hr=a("$ZodCatch",(e,t)=>{$t.init(e,t),b(e._zod,"optin",()=>t.innerType._zod.optin),b(e._zod,"optout",()=>t.innerType._zod.optout),b(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>F(e,n,d()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>F(e,n,d()))},input:e.value}),e.issues=[]),e)}}),mr=a("$ZodNaN",(e,t)=>{$t.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),gr=a("$ZodPipe",(e,t)=>{$t.init(e,t),b(e._zod,"values",()=>t.in._zod.values),b(e._zod,"optin",()=>t.in._zod.optin),b(e._zod,"optout",()=>t.out._zod.optout),b(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){const r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vr(e,t.in,n)):vr(r,t.in,n)}const r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vr(e,t.out,n)):vr(r,t.out,n)}});function vr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const yr=a("$ZodCodec",(e,t)=>{$t.init(e,t),b(e._zod,"values",()=>t.in._zod.values),b(e._zod,"optin",()=>t.in._zod.optin),b(e._zod,"optout",()=>t.out._zod.optout),b(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){const r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>br(e,t,n)):br(r,t,n)}{const r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>br(e,t,n)):br(r,t,n)}}});function br(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){const r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>wr(e,r,t.out,n)):wr(e,r,t.out,n)}{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>wr(e,r,t.in,n)):wr(e,r,t.in,n)}}function wr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}const xr=a("$ZodReadonly",(e,t)=>{$t.init(e,t),b(e._zod,"propValues",()=>t.innerType._zod.propValues),b(e._zod,"values",()=>t.innerType._zod.values),b(e._zod,"optin",()=>t.innerType?._zod?.optin),b(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Sr):Sr(r)}});function Sr(e){return e.value=Object.freeze(e.value),e}const kr=a("$ZodTemplateLiteral",(e,t)=>{$t.init(e,t);const n=[];for(const e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const r=t.startsWith("^")?1:0,o=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,o))}else{if(null!==e&&!C.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);n.push(O(`${e}`))}e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>"string"!=typeof n.value?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Er=a("$ZodFunction",(e,t)=>($t.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return function(...n){const r=e._def.input?G(e._def.input,n):n,o=Reflect.apply(t,this,r);return e._def.output?G(e._def.output,o):o}},e.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return async function(...n){const r=e._def.input?await K(e._def.input,n):n,o=await Reflect.apply(t,this,r);return e._def.output?await K(e._def.output,o):o}},e._zod.parse=(t,n)=>{if("function"!=typeof t.value)return t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}),t;const r=e._def.output&&"promise"===e._def.output._zod.def.type;return t.value=r?e.implementAsync(t.value):e.implement(t.value),t},e.input=(...t)=>{const n=e.constructor;return Array.isArray(t[0])?new n({type:"function",input:new Gn({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}):new n({type:"function",input:t[0],output:e._def.output})},e.output=t=>new(0,e.constructor)({type:"function",input:e._def.input,output:t}),e)),Tr=a("$ZodPromise",(e,t)=>{$t.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Pr=a("$ZodLazy",(e,t)=>{$t.init(e,t),b(e._zod,"innerType",()=>t.getter()),b(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),b(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),b(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),b(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),_r=a("$ZodCustom",(e,t)=>{gt.init(e,t),$t.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(t=>Ar(t,n,r,e));Ar(o,n,r,e)}});function Ar(e,t,n,r){if(!e){const e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push($(e))}}var Cr;Symbol("ZodOutput"),Symbol("ZodInput");(Cr=globalThis).__zod_globalRegistry??(Cr.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});const Or=globalThis.__zod_globalRegistry;function zr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(t)})}function Rr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(t)})}function Ir(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(t)})}function Mr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(t)})}function jr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(t)})}function Dr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(t)})}function Lr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(t)})}function Nr(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(t)})}function Fr(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(t)})}function Vr(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(t)})}function Br(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(t)})}function $r(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(t)})}function Ur(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(t)})}function Zr(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(t)})}function Hr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(t)})}function Wr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(t)})}function Gr(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(t)})}function qr(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(t)})}function Kr(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(t)})}function Jr(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(t)})}function Xr(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(t)})}function Yr(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(t)})}function Qr(e,t){return new yt({check:"less_than",...R(t),value:e,inclusive:!1})}function eo(e,t){return new yt({check:"less_than",...R(t),value:e,inclusive:!0})}function to(e,t){return new bt({check:"greater_than",...R(t),value:e,inclusive:!1})}function no(e,t){return new bt({check:"greater_than",...R(t),value:e,inclusive:!0})}function ro(e){return to(0,e)}function oo(e){return Qr(0,e)}function io(e){return eo(0,e)}function so(e){return no(0,e)}function ao(e,t){return new wt({check:"multiple_of",...R(t),value:e})}function lo(e,t){return new kt({check:"max_size",...R(t),maximum:e})}function uo(e,t){return new Et({check:"min_size",...R(t),minimum:e})}function co(e,t){return new Tt({check:"size_equals",...R(t),size:e})}function po(e,t){return new Pt({check:"max_length",...R(t),maximum:e})}function fo(e,t){return new _t({check:"min_length",...R(t),minimum:e})}function ho(e,t){return new At({check:"length_equals",...R(t),length:e})}function mo(e,t){return new Ot({check:"string_format",format:"regex",...R(t),pattern:e})}function go(e){return new zt({check:"string_format",format:"lowercase",...R(e)})}function vo(e){return new Rt({check:"string_format",format:"uppercase",...R(e)})}function yo(e,t){return new It({check:"string_format",format:"includes",...R(t),includes:e})}function bo(e,t){return new Mt({check:"string_format",format:"starts_with",...R(t),prefix:e})}function wo(e,t){return new jt({check:"string_format",format:"ends_with",...R(t),suffix:e})}function xo(e,t,n){return new Lt({check:"property",property:e,schema:t,...R(n)})}function So(e,t){return new Nt({check:"mime_type",mime:e,...R(t)})}function ko(e){return new Ft({check:"overwrite",tx:e})}function Eo(e){return ko(t=>t.normalize(e))}function To(){return ko(e=>e.trim())}function Po(){return ko(e=>e.toLowerCase())}function _o(){return ko(e=>e.toUpperCase())}function Ao(){return ko(e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))}function Co(e,t,n,r={}){const o=R(r),i={...R(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Oo(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Or,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function zo(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,r);else{const n=s.schema,i=t.processors[o.type];if(!i)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);i(e,t,n,r)}const i=e._zod.parent;i&&(s.ref||(s.ref=i),zo(i,t,r),t.seen.get(i).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),"input"===t.io&&Mo(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ro(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const t of e.seen.entries()){const n=e.metadataRegistry.get(t[0])?.id;if(n){const e=r.get(n);if(e&&e!==t[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}const o=t=>{if(t[1].schema.$ref)return;const r=t[1],{ref:o,defId:i}=(t=>{const r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const n=e.external.registry.get(t[0])?.id,o=e.external.uri??(e=>e);if(n)return{ref:o(n)};const i=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=i,{defId:i,ref:`${o("__shared")}#/${r}/${i}`}}if(t[1]===n)return{ref:"#"};const o=`#/${r}/`,i=t[1].schema.id??"__schema"+e.counter++;return{defId:i,ref:o+i}})(t);r.def={...r.schema},i&&(r.defId=i);const s=r.schema;for(const e in s)delete s[e];s.$ref=o};if("throw"===e.cycles)for(const t of e.seen.entries()){const e=t[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const r=n[1];if(t===n[0]){o(n);continue}if(e.external){const r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){o(n);continue}}const i=e.metadataRegistry.get(n[0])?.id;(i||r.cycle||r.count>1&&"ref"===e.reused)&&o(n)}}function Io(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=t=>{const n=e.seen.get(t);if(null===n.ref)return;const o=n.def??n.schema,i={...o},s=n.ref;if(n.ref=null,s){r(s);const n=e.seen.get(s),a=n.schema;if(!a.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(o,a):(o.allOf=o.allOf??[],o.allOf.push(a)),Object.assign(o,i),t._zod.parent===s)for(const e in o)"$ref"!==e&&"allOf"!==e&&(e in i||delete o[e]);if(a.$ref&&n.def)for(const e in o)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(o[e])===JSON.stringify(n.def[e])&&delete o[e]}const a=t._zod.parent;if(a&&a!==s){r(a);const t=e.seen.get(a);if(t?.schema.$ref&&(o.$ref=t.schema.$ref,t.def))for(const e in o)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(o[e])===JSON.stringify(t.def[e])&&delete o[e]}e.override({zodSchema:t,jsonSchema:o,path:n.path??[]})};for(const t of[...e.seen.entries()].reverse())r(t[0]);const o={};if("draft-2020-12"===e.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(n)}Object.assign(o,n.def??n.schema);const i=e.external?.defs??{};for(const t of e.seen.entries()){const e=t[1];e.def&&e.defId&&(i[e.defId]=e.def)}e.external||Object.keys(i).length>0&&("draft-2020-12"===e.target?o.$defs=i:o.definitions=i);try{const n=JSON.parse(JSON.stringify(o));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:jo(t,"input",e.processors),output:jo(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw new Error("Error converting schema to JSON.")}}function Mo(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if("transform"===r.type)return!0;if("array"===r.type)return Mo(r.element,n);if("set"===r.type)return Mo(r.valueType,n);if("lazy"===r.type)return Mo(r.getter(),n);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type)return Mo(r.innerType,n);if("intersection"===r.type)return Mo(r.left,n)||Mo(r.right,n);if("record"===r.type||"map"===r.type)return Mo(r.keyType,n)||Mo(r.valueType,n);if("pipe"===r.type)return Mo(r.in,n)||Mo(r.out,n);if("object"===r.type){for(const e in r.shape)if(Mo(r.shape[e],n))return!0;return!1}if("union"===r.type){for(const e of r.options)if(Mo(e,n))return!0;return!1}if("tuple"===r.type){for(const e of r.items)if(Mo(e,n))return!0;return!(!r.rest||!Mo(r.rest,n))}return!1}const jo=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},s=Oo({...o??{},target:i,io:t,processors:n});return zo(e,s),Ro(s,e),Io(s,e)},Do={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Lo=(e,t,n,r)=>{const o=e._zod.def,i=!1===o.inclusive,s=o.options.map((e,n)=>zo(e,t,{...r,path:[...r.path,i?"oneOf":"anyOf",n]}));i?n.oneOf=s:n.anyOf=s},No=(e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType},Fo=a("ZodISODateTime",(e,t)=>{nn.init(e,t),di.init(e,t)});function Vo(e){return function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(t)})}(Fo,e)}const Bo=a("ZodISODate",(e,t)=>{rn.init(e,t),di.init(e,t)});function $o(e){return function(e,t){return new e({type:"string",format:"date",check:"string_format",...R(t)})}(Bo,e)}const Uo=a("ZodISOTime",(e,t)=>{on.init(e,t),di.init(e,t)});function Zo(e){return function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(t)})}(Uo,e)}const Ho=a("ZodISODuration",(e,t)=>{sn.init(e,t),di.init(e,t)});function Wo(e){return function(e,t){return new e({type:"string",format:"duration",check:"string_format",...R(t)})}(Ho,e)}const Go=(e,t)=>{Z.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){const n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e}));else if("invalid_key"===o.code)r({issues:o.issues});else if("invalid_element"===o.code)r({issues:o.issues});else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,h,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,h,2)}},isEmpty:{get:()=>0===e.issues.length}})},qo=(a("ZodError",Go),a("ZodError",Go,{Parent:Error})),Ko=W(qo),Jo=q(qo),Xo=J(qo),Yo=Y(qo),Qo=ee(qo),ei=te(qo),ti=ne(qo),ni=re(qo),ri=oe(qo),oi=ie(qo),ii=se(qo),si=ae(qo),ai=a("ZodType",(e,t)=>($t.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jo(e,"input"),output:jo(e,"output")}}),e.toJSONSchema=((e,t={})=>n=>{const r=Oo({...n,processors:t});return zo(e,r),Ro(r,e),Io(r,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(x(t,{checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>z(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Ko(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Xo(e,t,n),e.parseAsync=async(t,n)=>Jo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Yo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Qo(e,t,n),e.decode=(t,n)=>ei(e,t,n),e.encodeAsync=async(t,n)=>ti(e,t,n),e.decodeAsync=async(t,n)=>ni(e,t,n),e.safeEncode=(t,n)=>ri(e,t,n),e.safeDecode=(t,n)=>oi(e,t,n),e.safeEncodeAsync=async(t,n)=>ii(e,t,n),e.safeDecodeAsync=async(t,n)=>si(e,t,n),e.refine=(t,n)=>e.check(el(t,n)),e.superRefine=t=>e.check(tl(t)),e.overwrite=t=>e.check(ko(t)),e.optional=()=>ba(e),e.exactOptional=()=>xa(e),e.nullable=()=>ka(e),e.nullish=()=>ba(ka(e)),e.nonoptional=t=>Oa(e,t),e.array=()=>Fs(e),e.or=t=>Ws([e,t]),e.and=t=>Ys(e,t),e.transform=t=>Na(e,va(t)),e.default=t=>Pa(e,t),e.prefault=t=>Aa(e,t),e.catch=t=>Ma(e,t),e.pipe=t=>Na(e,t),e.readonly=()=>$a(e),e.describe=t=>{const n=e.clone();return Or.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>Or.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return Or.get(e);const n=e.clone();return Or.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),li=a("_ZodString",(e,t)=>{Ut.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=n;r.type="string";const{minimum:o,maximum:i,format:s,patterns:a,contentEncoding:l}=e._zod.bag;if("number"==typeof o&&(r.minLength=o),"number"==typeof i&&(r.maxLength=i),s&&(r.format=Do[s]??s,""===r.format&&delete r.format,"time"===s&&delete r.format),l&&(r.contentEncoding=l),a&&a.size>0){const e=[...a];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(mo(...t)),e.includes=(...t)=>e.check(yo(...t)),e.startsWith=(...t)=>e.check(bo(...t)),e.endsWith=(...t)=>e.check(wo(...t)),e.min=(...t)=>e.check(fo(...t)),e.max=(...t)=>e.check(po(...t)),e.length=(...t)=>e.check(ho(...t)),e.nonempty=(...t)=>e.check(fo(1,...t)),e.lowercase=t=>e.check(go(t)),e.uppercase=t=>e.check(vo(t)),e.trim=()=>e.check(To()),e.normalize=(...t)=>e.check(Eo(...t)),e.toLowerCase=()=>e.check(Po()),e.toUpperCase=()=>e.check(_o()),e.slugify=()=>e.check(Ao())}),ui=a("ZodString",(e,t)=>{Ut.init(e,t),li.init(e,t),e.email=t=>e.check(zr(pi,t)),e.url=t=>e.check(Lr(xi,t)),e.jwt=t=>e.check(Yr(es,t)),e.emoji=t=>e.check(Nr(Ei,t)),e.guid=t=>e.check(Rr(hi,t)),e.uuid=t=>e.check(Ir(gi,t)),e.uuidv4=t=>e.check(Mr(gi,t)),e.uuidv6=t=>e.check(jr(gi,t)),e.uuidv7=t=>e.check(Dr(gi,t)),e.nanoid=t=>e.check(Fr(Pi,t)),e.guid=t=>e.check(Rr(hi,t)),e.cuid=t=>e.check(Vr(Ai,t)),e.cuid2=t=>e.check(Br(Oi,t)),e.ulid=t=>e.check($r(Ri,t)),e.base64=t=>e.check(Kr(qi,t)),e.base64url=t=>e.check(Jr(Ji,t)),e.xid=t=>e.check(Ur(Mi,t)),e.ksuid=t=>e.check(Zr(Di,t)),e.ipv4=t=>e.check(Hr(Ni,t)),e.ipv6=t=>e.check(Wr($i,t)),e.cidrv4=t=>e.check(Gr(Zi,t)),e.cidrv6=t=>e.check(qr(Wi,t)),e.e164=t=>e.check(Xr(Yi,t)),e.datetime=t=>e.check(Vo(t)),e.date=t=>e.check($o(t)),e.time=t=>e.check(Zo(t)),e.duration=t=>e.check(Wo(t))});function ci(e){return function(e,t){return new e({type:"string",...R(t)})}(ui,e)}const di=a("ZodStringFormat",(e,t)=>{Zt.init(e,t),li.init(e,t)}),pi=a("ZodEmail",(e,t)=>{Gt.init(e,t),di.init(e,t)});function fi(e){return zr(pi,e)}const hi=a("ZodGUID",(e,t)=>{Ht.init(e,t),di.init(e,t)});function mi(e){return Rr(hi,e)}const gi=a("ZodUUID",(e,t)=>{Wt.init(e,t),di.init(e,t)});function vi(e){return Ir(gi,e)}function yi(e){return Mr(gi,e)}function bi(e){return jr(gi,e)}function wi(e){return Dr(gi,e)}const xi=a("ZodURL",(e,t)=>{qt.init(e,t),di.init(e,t)});function Si(e){return Lr(xi,e)}function ki(e){return Lr(xi,{protocol:/^https?$/,hostname:De,...R(e)})}const Ei=a("ZodEmoji",(e,t)=>{Kt.init(e,t),di.init(e,t)});function Ti(e){return Nr(Ei,e)}const Pi=a("ZodNanoID",(e,t)=>{Jt.init(e,t),di.init(e,t)});function _i(e){return Fr(Pi,e)}const Ai=a("ZodCUID",(e,t)=>{Xt.init(e,t),di.init(e,t)});function Ci(e){return Vr(Ai,e)}const Oi=a("ZodCUID2",(e,t)=>{Yt.init(e,t),di.init(e,t)});function zi(e){return Br(Oi,e)}const Ri=a("ZodULID",(e,t)=>{Qt.init(e,t),di.init(e,t)});function Ii(e){return $r(Ri,e)}const Mi=a("ZodXID",(e,t)=>{en.init(e,t),di.init(e,t)});function ji(e){return Ur(Mi,e)}const Di=a("ZodKSUID",(e,t)=>{tn.init(e,t),di.init(e,t)});function Li(e){return Zr(Di,e)}const Ni=a("ZodIPv4",(e,t)=>{an.init(e,t),di.init(e,t)});function Fi(e){return Hr(Ni,e)}const Vi=a("ZodMAC",(e,t)=>{un.init(e,t),di.init(e,t)});function Bi(e){return function(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(t)})}(Vi,e)}const $i=a("ZodIPv6",(e,t)=>{ln.init(e,t),di.init(e,t)});function Ui(e){return Wr($i,e)}const Zi=a("ZodCIDRv4",(e,t)=>{cn.init(e,t),di.init(e,t)});function Hi(e){return Gr(Zi,e)}const Wi=a("ZodCIDRv6",(e,t)=>{dn.init(e,t),di.init(e,t)});function Gi(e){return qr(Wi,e)}const qi=a("ZodBase64",(e,t)=>{fn.init(e,t),di.init(e,t)});function Ki(e){return Kr(qi,e)}const Ji=a("ZodBase64URL",(e,t)=>{hn.init(e,t),di.init(e,t)});function Xi(e){return Jr(Ji,e)}const Yi=a("ZodE164",(e,t)=>{mn.init(e,t),di.init(e,t)});function Qi(e){return Xr(Yi,e)}const es=a("ZodJWT",(e,t)=>{gn.init(e,t),di.init(e,t)});function ts(e){return Yr(es,e)}const ns=a("ZodCustomStringFormat",(e,t)=>{vn.init(e,t),di.init(e,t)});function rs(e,t,n={}){return Co(ns,e,t,n)}function os(e){return Co(ns,"hostname",je,e)}function is(e){return Co(ns,"hex",Ye,e)}function ss(e,t){const n=`${e}_${t?.enc??"hex"}`,o=r[n];if(!o)throw new Error(`Unrecognized hash format: ${n}`);return Co(ns,n,o,t)}const as=a("ZodNumber",(e,t)=>{yn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=n,{minimum:o,maximum:i,format:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof s&&s.includes("int")?r.type="integer":r.type="number","number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),"number"==typeof o&&(r.minimum=o,"number"==typeof u&&"draft-04"!==t.target&&(u>=o?delete r.minimum:delete r.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),"number"==typeof i&&(r.maximum=i,"number"==typeof l&&"draft-04"!==t.target&&(l<=i?delete r.maximum:delete r.exclusiveMaximum)),"number"==typeof a&&(r.multipleOf=a)})(e,t,n),e.gt=(t,n)=>e.check(to(t,n)),e.gte=(t,n)=>e.check(no(t,n)),e.min=(t,n)=>e.check(no(t,n)),e.lt=(t,n)=>e.check(Qr(t,n)),e.lte=(t,n)=>e.check(eo(t,n)),e.max=(t,n)=>e.check(eo(t,n)),e.int=t=>e.check(cs(t)),e.safe=t=>e.check(cs(t)),e.positive=t=>e.check(to(0,t)),e.nonnegative=t=>e.check(no(0,t)),e.negative=t=>e.check(Qr(0,t)),e.nonpositive=t=>e.check(eo(0,t)),e.multipleOf=(t,n)=>e.check(ao(t,n)),e.step=(t,n)=>e.check(ao(t,n)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function ls(e){return function(e,t){return new e({type:"number",checks:[],...R(t)})}(as,e)}const us=a("ZodNumberFormat",(e,t)=>{bn.init(e,t),as.init(e,t)});function cs(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(t)})}(us,e)}function ds(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(t)})}(us,e)}function ps(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(t)})}(us,e)}function fs(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(t)})}(us,e)}function hs(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(t)})}(us,e)}const ms=a("ZodBoolean",(e,t)=>{wn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{n.type="boolean"})(0,0,t)});function gs(e){return function(e,t){return new e({type:"boolean",...R(t)})}(ms,e)}const vs=a("ZodBigInt",(e,t)=>{xn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema")})(0,e),e.gte=(t,n)=>e.check(no(t,n)),e.min=(t,n)=>e.check(no(t,n)),e.gt=(t,n)=>e.check(to(t,n)),e.gte=(t,n)=>e.check(no(t,n)),e.min=(t,n)=>e.check(no(t,n)),e.lt=(t,n)=>e.check(Qr(t,n)),e.lte=(t,n)=>e.check(eo(t,n)),e.max=(t,n)=>e.check(eo(t,n)),e.positive=t=>e.check(to(BigInt(0),t)),e.negative=t=>e.check(Qr(BigInt(0),t)),e.nonpositive=t=>e.check(eo(BigInt(0),t)),e.nonnegative=t=>e.check(no(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(ao(t,n));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function ys(e){return function(e,t){return new e({type:"bigint",...R(t)})}(vs,e)}const bs=a("ZodBigIntFormat",(e,t)=>{Sn.init(e,t),vs.init(e,t)});function ws(e){return function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(t)})}(bs,e)}function xs(e){return function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(t)})}(bs,e)}const Ss=a("ZodSymbol",(e,t)=>{kn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema")})(0,e)});function ks(e){return function(e,t){return new e({type:"symbol",...R(t)})}(Ss,e)}const Es=a("ZodUndefined",(e,t)=>{En.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema")})(0,e)});function Ts(e){return function(e,t){return new e({type:"undefined",...R(t)})}(Es,e)}const Ps=a("ZodNull",(e,t)=>{Tn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"})(0,e,t)});function _s(e){return function(e,t){return new e({type:"null",...R(t)})}(Ps,e)}const As=a("ZodAny",(e,t)=>{Pn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Cs(){return new As({type:"any"})}const Os=a("ZodUnknown",(e,t)=>{An.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function zs(){return new Os({type:"unknown"})}const Rs=a("ZodNever",(e,t)=>{Cn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{n.not={}})(0,0,t)});function Is(e){return function(e,t){return new e({type:"never",...R(t)})}(Rs,e)}const Ms=a("ZodVoid",(e,t)=>{On.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Void cannot be represented in JSON Schema")})(0,e)});function js(e){return function(e,t){return new e({type:"void",...R(t)})}(Ms,e)}const Ds=a("ZodDate",(e,t)=>{zn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Date cannot be represented in JSON Schema")})(0,e),e.min=(t,n)=>e.check(no(t,n)),e.max=(t,n)=>e.check(eo(t,n));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Ls(e){return function(e,t){return new e({type:"date",...R(t)})}(Ds,e)}const Ns=a("ZodArray",(e,t)=>{In.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;"number"==typeof s&&(o.minItems=s),"number"==typeof a&&(o.maxItems=a),o.type="array",o.items=zo(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(fo(t,n)),e.nonempty=t=>e.check(fo(1,t)),e.max=(t,n)=>e.check(po(t,n)),e.length=(t,n)=>e.check(ho(t,n)),e.unwrap=()=>e.element});function Fs(e,t){return function(e,t,n){return new e({type:"array",element:t,...R(n)})}(Ns,e,t)}function Vs(e){const t=e._zod.def.shape;return ca(Object.keys(t))}const Bs=a("ZodObject",(e,t)=>{Nn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const e in s)o.properties[e]=zo(s[e],t,{...r,path:[...r.path,"properties",e]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(e=>{const n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));l.size>0&&(o.required=Array.from(l)),"never"===i.catchall?._zod.def.type?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=zo(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(o.additionalProperties=!1)})(e,t,n,r),b(e,"shape",()=>t.shape),e.keyof=()=>ca(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:zs()}),e.loose=()=>e.clone({...e._zod.def,catchall:zs()}),e.strict=()=>e.clone({...e._zod.def,catchall:Is()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!P(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const n=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=x(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return w(this,"shape",n),n}});return z(e,r)}(e,t),e.safeExtend=t=>function(e,t){if(!P(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=x(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return w(this,"shape",n),n}});return z(e,n)}(e,t),e.merge=t=>function(e,t){const n=x(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return w(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return z(e,n)}(e,t),e.pick=t=>function(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return z(e,x(e._zod.def,{get shape(){const e={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return w(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=x(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return w(this,"shape",r),r},checks:[]});return z(e,o)}(e,t),e.partial=(...t)=>function(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=x(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(const t in r)o[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return w(this,"shape",o),o},checks:[]});return z(t,o)}(ya,e,t[0]),e.required=(...t)=>function(e,t,n){const r=x(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const t in n){if(!(t in o))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(o[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(const t in r)o[t]=new e({type:"nonoptional",innerType:r[t]});return w(this,"shape",o),o}});return z(t,r)}(Ca,e,t[0])});function $s(e,t){const n={type:"object",shape:e??{},...R(t)};return new Bs(n)}function Us(e,t){return new Bs({type:"object",shape:e,catchall:Is(),...R(t)})}function Zs(e,t){return new Bs({type:"object",shape:e,catchall:zs(),...R(t)})}const Hs=a("ZodUnion",(e,t)=>{Vn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.options=t.options});function Ws(e,t){return new Hs({type:"union",options:e,...R(t)})}const Gs=a("ZodXor",(e,t)=>{Hs.init(e,t),$n.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.options=t.options});function qs(e,t){return new Gs({type:"union",options:e,inclusive:!1,...R(t)})}const Ks=a("ZodDiscriminatedUnion",(e,t)=>{Hs.init(e,t),Un.init(e,t)});function Js(e,t,n){return new Ks({type:"union",options:t,discriminator:e,...R(n)})}const Xs=a("ZodIntersection",(e,t)=>{Zn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=zo(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=zo(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l})(e,t,n,r)});function Ys(e,t){return new Xs({type:"intersection",left:e,right:t})}const Qs=a("ZodTuple",(e,t)=>{Gn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def;o.type="array";const s="draft-2020-12"===t.target?"prefixItems":"items",a="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",l=i.items.map((e,n)=>zo(e,t,{...r,path:[...r.path,s,n]})),u=i.rest?zo(i.rest,t,{...r,path:[...r.path,a,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(o.prefixItems=l,u&&(o.items=u)):"openapi-3.0"===t.target?(o.items={anyOf:l},u&&o.items.anyOf.push(u),o.minItems=l.length,u||(o.maxItems=l.length)):(o.items=l,u&&(o.additionalItems=u));const{minimum:c,maximum:d}=e._zod.bag;"number"==typeof c&&(o.minItems=c),"number"==typeof d&&(o.maxItems=d)})(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function ea(e,t,n){const r=t instanceof $t;return new Qs({type:"tuple",items:e,rest:r?t:null,...R(r?n:t)})}const ta=a("ZodRecord",(e,t)=>{Kn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object";const s=i.keyType,a=s._zod.bag,l=a?.patterns;if("loose"===i.mode&&l&&l.size>0){const e=zo(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const t of l)o.patternProperties[t.source]=e}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(o.propertyNames=zo(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=zo(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=s._zod.values;if(u){const e=[...u].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(o.required=e)}})(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function na(e,t,n){return new ta({type:"record",keyType:e,valueType:t,...R(n)})}function ra(e,t,n){const r=z(e);return r._zod.values=void 0,new ta({type:"record",keyType:r,valueType:t,...R(n)})}function oa(e,t,n){return new ta({type:"record",keyType:e,valueType:t,mode:"loose",...R(n)})}const ia=a("ZodMap",(e,t)=>{Jn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Map cannot be represented in JSON Schema")})(0,e),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(uo(...t)),e.nonempty=t=>e.check(uo(1,t)),e.max=(...t)=>e.check(lo(...t)),e.size=(...t)=>e.check(co(...t))});function sa(e,t,n){return new ia({type:"map",keyType:e,valueType:t,...R(n)})}const aa=a("ZodSet",(e,t)=>{Yn.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Set cannot be represented in JSON Schema")})(0,e),e.min=(...t)=>e.check(uo(...t)),e.nonempty=t=>e.check(uo(1,t)),e.max=(...t)=>e.check(lo(...t)),e.size=(...t)=>e.check(co(...t))});function la(e,t){return new aa({type:"set",valueType:e,...R(t)})}const ua=a("ZodEnum",(e,t)=>{er.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=p(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(n.type="number"),r.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=r})(e,0,n),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{const o={};for(const r of e){if(!n.has(r))throw new Error(`Key ${r} not found in enum`);o[r]=t.entries[r]}return new ua({...t,checks:[],...R(r),entries:o})},e.exclude=(e,r)=>{const o={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete o[t]}return new ua({...t,checks:[],...R(r),entries:o})}});function ca(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new ua({type:"enum",entries:n,...R(t)})}function da(e,t){return new ua({type:"enum",entries:e,...R(t)})}const pa=a("ZodLiteral",(e,t)=>{tr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=e._zod.def,o=[];for(const e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===t.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(e))}else o.push(e);if(0===o.length);else if(1===o.length){const e=o[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else o.every(e=>"number"==typeof e)&&(n.type="number"),o.every(e=>"string"==typeof e)&&(n.type="string"),o.every(e=>"boolean"==typeof e)&&(n.type="boolean"),o.every(e=>null===e)&&(n.type="null"),n.enum=o})(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function fa(e,t){return new pa({type:"literal",values:Array.isArray(e)?e:[e],...R(t)})}const ha=a("ZodFile",(e,t)=>{nr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:a}=e._zod.bag;void 0!==i&&(o.minLength=i),void 0!==s&&(o.maxLength=s),a?1===a.length?(o.contentMediaType=a[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=a.map(e=>({contentMediaType:e}))):Object.assign(r,o)})(e,0,n),e.min=(t,n)=>e.check(uo(t,n)),e.max=(t,n)=>e.check(lo(t,n)),e.mime=(t,n)=>e.check(So(Array.isArray(t)?t:[t],n))});function ma(e){return function(e,t){return new e({type:"file",...R(t)})}(ha,e)}const ga=a("ZodTransform",(e,t)=>{rr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")})(0,e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new u(e.constructor.name);n.addIssue=r=>{if("string"==typeof r)n.issues.push($(r,n.value,t));else{const t=r;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push($(t))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(e=>(n.value=e,n)):(n.value=o,n)}});function va(e){return new ga({type:"transform",transform:e})}const ya=a("ZodOptional",(e,t)=>{ir.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,0,r),e.unwrap=()=>e._zod.def.innerType});function ba(e){return new ya({type:"optional",innerType:e})}const wa=a("ZodExactOptional",(e,t)=>{sr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,0,r),e.unwrap=()=>e._zod.def.innerType});function xa(e){return new wa({type:"optional",innerType:e})}const Sa=a("ZodNullable",(e,t)=>{ar.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i=zo(o.innerType,t,r),s=t.seen.get(e);"openapi-3.0"===t.target?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ka(e){return new Sa({type:"nullable",innerType:e})}function Ea(e){return ba(ka(e))}const Ta=a("ZodDefault",(e,t)=>{lr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Pa(e,t){return new Ta({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():_(t)}})}const _a=a("ZodPrefault",(e,t)=>{cr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Aa(e,t){return new _a({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():_(t)}})}const Ca=a("ZodNonOptional",(e,t)=>{dr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType})(e,t,0,r),e.unwrap=()=>e._zod.def.innerType});function Oa(e,t){return new Ca({type:"nonoptional",innerType:e,...R(t)})}const za=a("ZodSuccess",(e,t)=>{fr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t,n)=>{n.type="boolean"})(0,0,t),e.unwrap=()=>e._zod.def.innerType});function Ra(e){return new za({type:"success",innerType:e})}const Ia=a("ZodCatch",(e,t)=>{hr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;let i;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ma(e,t){return new Ia({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}const ja=a("ZodNaN",(e,t)=>{mr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema")})(0,e)});function Da(e){return function(e,t){return new e({type:"nan",...R(t)})}(ja,e)}const La=a("ZodPipe",(e,t)=>{gr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def,i="input"===t.io?"transform"===o.in._zod.def.type?o.out:o.in:o.out;zo(i,t,r),t.seen.get(e).ref=i})(e,t,0,r),e.in=t.in,e.out=t.out});function Na(e,t){return new La({type:"pipe",in:e,out:t})}const Fa=a("ZodCodec",(e,t)=>{La.init(e,t),yr.init(e,t)});function Va(e,t,n){return new Fa({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const Ba=a("ZodReadonly",(e,t)=>{xr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType,n.readOnly=!0})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $a(e){return new Ba({type:"readonly",innerType:e})}const Ua=a("ZodTemplateLiteral",(e,t)=>{kr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{const r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source})(e,0,n)});function Za(e,t){return new Ua({type:"template_literal",parts:e,...R(t)})}const Ha=a("ZodLazy",(e,t)=>{Pr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.innerType;zo(o,t,r),t.seen.get(e).ref=o})(e,t,0,r),e.unwrap=()=>e._zod.def.getter()});function Wa(e){return new Ha({type:"lazy",getter:e})}const Ga=a("ZodPromise",(e,t)=>{Tr.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{const o=e._zod.def;zo(o.innerType,t,r),t.seen.get(e).ref=o.innerType})(e,t,0,r),e.unwrap=()=>e._zod.def.innerType});function qa(e){return new Ga({type:"promise",innerType:e})}const Ka=a("ZodFunction",(e,t)=>{Er.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Function types cannot be represented in JSON Schema")})(0,e)});function Ja(e){return new Ka({type:"function",input:Array.isArray(e?.input)?ea(e?.input):e?.input??Fs(zs()),output:e?.output??zs()})}const Xa=a("ZodCustom",(e,t)=>{_r.init(e,t),ai.init(e,t),e._zod.processJSONSchema=(e,t,n)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")})(0,e)});function Ya(e){const t=new gt({check:"custom"});return t._zod.check=e,t}function Qa(e,t){return function(e,t,n){const r=R(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}(Xa,e??(()=>!0),t)}function el(e,t={}){return function(e,t,n){return new e({type:"custom",check:"custom",fn:t,...R(n)})}(Xa,e,t)}function tl(e){return function(e){const t=function(e){const t=new gt({check:"custom",...R(void 0)});return t._zod.check=e,t}(n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push($(e,n.value,t._zod.def));else{const r=e;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push($(r))}},e(n.value,n)));return t}(e)}const nl=function(e){const t=new gt({check:"describe"});return t._zod.onattach=[t=>{const n=Or.get(t)??{};Or.add(t,{...n,description:e})}],t._zod.check=()=>{},t},rl=function(e){const t=new gt({check:"meta"});return t._zod.onattach=[t=>{const n=Or.get(t)??{};Or.add(t,{...n,...e})}],t._zod.check=()=>{},t};function ol(e,t={}){const n=new Xa({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...R(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}const il=(...e)=>function(e,t){const n=R(t);let r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),o=o.map(e=>"string"==typeof e?e.toLowerCase():e));const i=new Set(r),s=new Set(o),a=e.Codec??yr,l=e.Boolean??wn,u=new a({type:"pipe",in:new(e.String??Ut)({type:"string",error:n.error}),out:new l({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!i.has(r)||!s.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":o[0]||"false",error:n.error});return u}({Codec:Fa,Boolean:ms,String:ui},...e);function sl(e){const t=Wa(()=>Ws([ci(e),ls(),gs(),_s(),Fs(t),na(ci(),t)]));return t}function al(e,t){return Na(va(e),t)}var ll;ll||(ll={}),new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]),d({localeError:(()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=r[e.expected]??e.expected,n=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";const t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return t}(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case"invalid_value":return 1===e.values.length?`Invalid input: expected ${I(e.values[0])}`:`Invalid option: expected one of ${f(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Too big: expected ${e.origin??"value"} to have ${n}${e.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}})()})},1621(e,t,n){"use strict";n.d(t,{vt:()=>d});const r=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),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()}},s=t=e(r,o,i);return i};var o=n(1609),i=n(9242);const{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:a}=i;let l=!1;const u=e=>e,c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?r(e):r)(e):e,n=(e,n)=>function(e,t=u,n){n&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const r=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}(t,e,n);return Object.assign(n,t),n},d=e=>e?c(e):c},7134(e,t,n){"use strict";n.d(t,{KU:()=>a,Zr:()=>u,lt:()=>i});const r=new Map,o=e=>{const t=r.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},i=(e,t={})=>(n,i,a)=>{const{enabled:l,anonymousActionType:u,store:c,...d}=t;let p;try{p=(null==l||l)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!p)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,i,a);const{connection:f,...h}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const o=r.get(n.name);if(o)return{type:"tracked",store:e,...o};const i={connection:t.connect(n),stores:{}};return r.set(n.name,i),{type:"tracked",store:e,...i}})(c,p,d);let m=!0;a.setState=(e,t,r)=>{const s=n(e,t);if(!m)return s;const l=void 0===r?{type:u||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===c?(null==f||f.send(l,i()),s):(null==f||f.send({...l,type:`${c}/${l.type}`},{...o(d.name),[c]:a.getState()}),s)};const g=(...e)=>{const t=m;m=!1,n(...e),m=t},v=e(a.setState,i,a);if("untracked"===h.type?null==f||f.init(v):(h.stores[h.store]=a,null==f||f.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?v:t.getState()])))),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return f.subscribe(e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):s(e.payload,e=>{if("__setState"===e.type){if(void 0===c)return void g(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[c];if(null==t)return;return void(JSON.stringify(a.getState())!==JSON.stringify(t)&&g(t))}a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":return g(v),void 0===c?null==f?void 0:f.init(a.getState()):null==f?void 0:f.init(o(d.name));case"COMMIT":return void 0===c?void(null==f||f.init(a.getState())):null==f?void 0:f.init(o(d.name));case"ROLLBACK":return s(e.state,e=>{if(void 0===c)return g(e),void(null==f||f.init(a.getState()));g(e[c]),null==f||f.init(o(d.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,e=>{void 0!==c?JSON.stringify(a.getState())!==JSON.stringify(e[c])&&g(e[c]):g(e)});case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return g(void 0===c?r:r[c]),void(null==f||f.send(null,n))}case"PAUSE_RECORDING":return m=!m}return}}),v},s=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function a(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(o):o(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const l=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>l(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>l(t)(e)}}},u=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const a=new Set,u=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)},r,o);const d=l(i.serialize),p=()=>{const e=i.partialize({...r()});let t;const n=d({state:e,version:i.version}).then(e=>c.setItem(i.name,e)).catch(e=>{t=e});if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),p()};const h=e((...e)=>{n(...e),p()},r,o);let m;const g=()=>{var e;if(!c)return;s=!1,a.forEach(e=>e(r()));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return l(c.getItem.bind(c))(i.name).then(e=>{if(e)return i.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return m=i.merge(e,null!=(t=r())?t:h),n(m,!0),p()}).then(()=>{null==t||t(m,void 0),s=!0,u.forEach(e=>e(m))}).catch(e=>{null==t||t(void 0,e)})};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},g(),m||h})(e,t)):((e,t)=>(n,r,o)=>{let i={storage:a(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const u=new Set,c=new Set;let d=i.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)},r,o);const p=()=>{const e=i.partialize({...r()});return d.setItem(i.name,{state:e,version:i.version})},f=o.setState;o.setState=(e,t)=>{f(e,t),p()};const h=e((...e)=>{n(...e),p()},r,o);let m;o.getInitialState=()=>h;const g=()=>{var e,t;if(!d)return;s=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:h)});const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:h))||void 0;return l(d.getItem.bind(d))(i.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];if(i.migrate)return[!0,i.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;const[o,s]=e;if(m=i.merge(s,null!=(t=r())?t:h),n(m,!0),o)return p()}).then(()=>{null==o||o(m,void 0),m=r(),s=!0,c.forEach(e=>e(m))}).catch(e=>{null==o||o(void 0,e)})};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},i.skipHydration||g(),m||h})(e,t)}}]);
geri dön