PageSourceSearch

https://www.trtrussian.com/_next/static/chunks/8746-0175c8207133d0f7.js

js trtrussian.com collected 2026-10-02 04:10:25 UTC 478,952 bytes, 16 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8746],{21407:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(t=arguments[p],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(o(i)||(u=a(i)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&o(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},16180:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:c,column:d};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=f(),n=y(i);if(n){if(b(),!y(a))return g("property missing ':'");var r=y(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(s),l}}();)!1!==e&&(n.push(e),v(n));return n}()}},6199:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83641);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...p}=e;return(0,r.createElement)("svg",{ref:t,...o,width:i,height:i,stroke:n,strokeWidth:l?24*Number(s)/Number(i):s,className:a("lucide",u),...p},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:l,...u}=n;return(0,r.createElement)(s,{ref:o,iconNode:t,className:a("lucide-".concat(i(e)),l),...u})});return n.displayName="".concat(e),n}},19929:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(6199).Z)("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},35819:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(6199).Z)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},84553:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(6199).Z)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},84963:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(6199).Z)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},18193:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(6199).Z)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.5
15 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},90796:function(e){var t=!0,n=!1,r=!1;function i(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}e.exports=function(e,a){a&&(t=!a.enabled,n=!!a.label,r=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var a=e.tokens,o=2;o<a.length;o++)(function(e,t){var n;return"inline"===e[t].type&&"paragraph_open"===e[t-1].type&&"list_item_open"===e[t-2].type&&(0===(n=e[t]).content.indexOf("[ ] ")||0===n.content.indexOf("[x] ")||0===n.content.indexOf("[X] "))})(a,o)&&(function(e,i){if(e.children.unshift(function(e,n){var r=new n("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?r.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(r.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),r}(e,i)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n){if(r){e.children.pop();var a="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+a+'">',e.children.push(function(e,t,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[{for:t}],r}(e.content,a,i))}else e.children.unshift(function(e){var t=new e("html_inline","",0);return t.content="<label>",t}(i)),e.children.push(function(e){var t=new e("html_inline","",0);return t.content="</label>",t}(i))}}(a[o],e.Token),i(a[o-2],"class","task-list-item"+(t?"":" enabled")),i(a[function(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return -1}(a,o-2)],"class","contains-task-list"))})}},1908:function(e,t,n){"use strict";var r=n(69343).lW;let i=void 0!==r,a=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function s(e,t,n){null==n&&null!==t&&"object"==typeof t&&(n=t,t=void 0),i&&r.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let s=JSON.parse(e,t);if(null===s||"object"!=typeof s)return s;let u=n&&n.protoAction||"error",c=n&&n.constructorAction||"error";if("ignore"===u&&"ignore"===c)return s;if("ignore"!==u&&"ignore"!==c){if(!1===a.test(e)&&!1===o.test(e))return s}else if("ignore"!==u&&"ignore"===c){if(!1===a.test(e))return s}else if(!1===o.test(e))return s;return l(s,{protoAction:u,constructorAction:c,safe:n&&n.safe})}function l(e,{protoAction:t="error",constructorAction:n="error",safe:r}={}){let i=[e];for(;i.length;){let e=i;for(let a of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(a,"__proto__")){if(!0===r)return null;if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete a.__proto__}if("ignore"!==n&&Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype")){if(!0===r)return null;if("error"===n)throw SyntaxError("Object contains forbidden prototype property");delete a.constructor}for(let e in a){let t=a[e];t&&"object"==typeof t&&i.push(t)}}}return e}function u(e,t,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,n)}finally{Error.stackTraceLimit=r}}e.exports=u,e.exports.default=u,e.exports.parse=u,e.exports.safeParse=function(e,t){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,{safe:!0})}catch(e){return null}finally{Error.stackTraceLimit=n}},e.exports.scan=l},75372:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(33073)),i=n(36336);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},36336:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},33073:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(16180))},67431:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=r(e).Element;return e instanceof t||e instanceof Element}function a(e){var t=r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o(e){if("undefined"==typeof ShadowRoot)return!1;var t=r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}n.d(t,{ZP:function(){return eY}});var s,l,u,c,d,p=Math.max,f=Math.min,h=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(m())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),s=1,l=1;t&&a(e)&&(s=e.offsetWidth>0&&h(o.width)/e.offsetWidth||1,l=e.offsetHeight>0&&h(o.height)/e.offsetHeight||1);var u=(i(e)?r(e):window).visualViewport,c=!g()&&n,d=(o.left+(c&&u?u.offsetLeft:0))/s,p=(o.top+(c&&u?u.offsetTop:0))/l,f=o.width/s,m=o.height/l;return{width:f,height:m,top:p,right:d+f,bottom:p+m,left:d,x:d,y:p}}function v(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return y(k(e)).left+v(e).scrollLeft}function _(e){return r(e).getComputedStyle(e)}function w(e){var t=_(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function C(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||k(e)}function A(e,t){void 0===t&&(t=[]);var n,i=function e(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:a(t)&&w(t)?t:e(E(t))}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=r(i),l=o?[s].concat(s.visualViewport||[],w(i)?i:[]):i,u=t.concat(l);return o?u:u.concat(A(E(l)))}function S(e){return a(e)&&"fixed"!==_(e).position?e.offsetParent:null}function T(e){for(var t=r(e),n=S(e);n&&["table","td","th"].indexOf(b(n))>=0&&"static"===_(n).position;)n=S(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===_(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&a(e)&&"fixed"===_(e).position)return null;var n=E(e);for(o(n)&&(n=n.host);a(n)&&0>["html","body"].indexOf(b(n));){var r=_(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var D="bottom",I="right",O="left",M="auto",F=["top",D,I,O],L="start",N="viewport",P="popper",j=F.reduce(function(e,t){return e.concat([t+"-"+L,t+"-end"])},[]),R=[].concat(F,[M]).reduce(function(e,t){return e.concat([t,t+"-"+L,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],B={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Z={passive:!0};function $(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function U(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?$(i):null,o=i?q(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:s,y:n.y-r.height};break;case D:t={x:s,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:l};break;case O:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?U(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case L:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,i,a,o,s,l,u=e.popper,c=e.popperRect,d=e.placement,p=e.variation,f=e.offsets,m=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,x=f.x,w=void 0===x?0:x,C=f.y,E=void 0===C?0:C,A="function"==typeof v?v({x:w,y:E}):{x:w,y:E};w=A.x,E=A.y;var S=f.hasOwnProperty("x"),M=f.hasOwnProperty("y"),F=O,L="top",N=window;if(y){var P=T(u),j="clientHeight",R="clientWidth";P===r(u)&&"static"!==_(P=k(u)).position&&"absolute"===m&&(j="scrollHeight",R="scrollWidth"),("top"===d||(d===O||d===I)&&"end"===p)&&(L=D,E-=(b&&P===N&&N.visualVie
vendor: 11,218 bytes, line 1
1wport?N.visualViewport.height:P[j])-c.height,E*=g?1:-1),(d===O||("top"===d||d===D)&&"end"===p)&&(F=I,w-=(b&&P===N&&N.visualViewport?N.visualViewport.width:P[R])-c.width,w*=g?1:-1)}var z=Object.assign({position:m},y&&W),B=!0===v?(t={x:w,y:E},n=r(u),i=t.x,a=t.y,{x:h(i*(o=n.devicePixelRatio||1))/o||0,y:h(a*o)/o||0}):{x:w,y:E};return(w=B.x,E=B.y,g)?Object.assign({},z,((l={})[L]=M?"0":"",l[F]=S?"0":"",l.transform=1>=(N.devicePixelRatio||1)?"translate("+w+"px, "+E+"px)":"translate3d("+w+"px, "+E+"px, 0)",l)):Object.assign({},z,((s={})[L]=M?E+"px":"",s[F]=S?w+"px":"",s.transform="",s))}var Y={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];a(i)&&b(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});a(r)&&b(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},J={left:"right",right:"left",bottom:"top",top:"bottom"};function G(e){return e.replace(/left|right|bottom|top/g,function(e){return J[e]})}var X={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return X[e]})}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){var a,o,s,l,u,c,d,f,h,m;return t===N?et(function(e,t){var n=r(e),i=k(e),a=n.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var c=g();(c||!c&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+x(e),y:u}}(e,n)):i(t)?((a=y(t,!1,"fixed"===n)).top=a.top+t.clientTop,a.left=a.left+t.clientLeft,a.bottom=a.top+t.clientHeight,a.right=a.left+t.clientWidth,a.width=t.clientWidth,a.height=t.clientHeight,a.x=a.left,a.y=a.top,a):et((o=k(e),l=k(o),u=v(o),c=null==(s=o.ownerDocument)?void 0:s.body,d=p(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),f=p(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),h=-u.scrollLeft+x(o),m=-u.scrollTop,"rtl"===_(c||l).direction&&(h+=p(l.clientWidth,c?c.clientWidth:0)-d),{width:d,height:f,x:h,y:m}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function ea(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function eo(e,t){void 0===t&&(t={});var n,r,o,s,l,u,c,d,h=t,m=h.placement,g=void 0===m?e.placement:m,v=h.strategy,x=void 0===v?e.strategy:v,w=h.boundary,C=h.rootBoundary,S=h.elementContext,O=void 0===S?P:S,M=h.altBoundary,L=h.padding,j=void 0===L?0:L,R=ei("number"!=typeof j?j:ea(j,F)),z=e.rects.popper,B=e.elements[void 0!==M&&M?O===P?"reference":P:O],H=(n=i(B)?B:B.contextElement||k(e.elements.popper),r=void 0===w?"clippingParents":w,o=void 0===C?N:C,c=(u=[].concat("clippingParents"===r?(s=A(E(n)),i(l=["absolute","fixed"].indexOf(_(n).position)>=0&&a(n)?T(n):n)?s.filter(function(e){return i(e)&&ee(e,l)&&"body"!==b(e)}):[]):[].concat(r),[o]))[0],(d=u.reduce(function(e,t){var r=en(n,t,x);return e.top=p(r.top,e.top),e.right=f(r.right,e.right),e.bottom=f(r.bottom,e.bottom),e.left=p(r.left,e.left),e},en(n,c,x))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),Z=y(e.elements.reference),$=V({reference:Z,element:z,strategy:"absolute",placement:g}),q=et(Object.assign({},z,$)),U=O===P?q:Z,W={top:H.top-U.top+R.top,bottom:U.bottom-H.bottom+R.bottom,left:H.left-U.left+R.left,right:U.right-H.right+R.right},K=e.modifiersData.offset;if(O===P&&K){var Y=K[g];Object.keys(W).forEach(function(e){var t=[I,D].indexOf(e)>=0?1:-1,n=["top",D].indexOf(e)>=0?"y":"x";W[e]+=Y[n]*t})}return W}function es(e,t,n){return p(e,f(t,n))}function el(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eu(e){return["top",I,D,O].some(function(t){return e[t]>=0})}var ec=(u=void 0===(l=(s={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,a=i.scroll,o=void 0===a||a,s=i.resize,l=void 0===s||s,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,Z)}),l&&u.addEventListener("resize",n.update,Z),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Z)}),l&&u.removeEventListener("resize",n.update,Z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=V({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,s={placement:$(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Y,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=R.reduce(function(e,n){var r,i,o,s,l,u;return e[n]=(r=t.rects,o=[O,"top"].indexOf(i=$(n))>=0?-1:1,l=(s="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=s[1],l=l||0,u=(u||0)*o,[O,I].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=$(g)===g,v=l||(y||!h?[G(g)]:function(e){if($(e)===M)return[];var t=G(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(v).reduce(function(e,n){var r,i,a,o,s,l,p,f,g,y,v,b;return e.concat($(n)===M?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}).placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,f=void 0===(p=r.allowedAutoPlacements)?R:p,0===(v=(y=(g=q(i))?l?j:j.filter(function(e){return q(e)===g}):F).filter(function(e){return f.indexOf(e)>=0})).length&&(v=y),Object.keys(b=v.reduce(function(e,n){return e[n]=eo(t,{placement:n,boundary:a,rootBoundary:o,padding:s})[$(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),k=t.rects.reference,x=t.rects.popper,_=new Map,w=!0,C=b[0],E=0;E<b.length;E++){var A=b[E],S=$(A),T=q(A)===L,N=["top",D].indexOf(S)>=0,P=N?"width":"height",z=eo(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),B=N?T?I:O:T?D:"top";k[P]>x[P]&&(B=G(B));var H=G(B),Z=[];if(a&&Z.push(z[S]<=0),s&&Z.push(z[B]<=0,z[H]<=0),Z.every(function(e){return e})){C=A,w=!1;break}_.set(A,Z)}if(w)for(var U=h?3:1,V=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},W=U;W>0&&"break"!==V(W);W--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,h=n.tetherOffset,m=void 0===h?0:h,g=eo(t,{boundary:o,rootBoundary:s,padding:u,altBoundary:l}),y=$(t.placement),v=q(t.placement),b=!v,k=U(y),x="x"===k?"y":"x",_=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(_){if(void 0===i||i){var N,P="y"===k?"top":O,j="y"===k?D:I,R="y"===k?"height":"width",z=_[k],B=z+g[P],H=z-g[j],Z=d?-E[R]/2:0,V=v===L?w[R]:E[R],W=v===L?-E[R]:-w[R],K=t.elements.arrow,Y=d&&K?C(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),G=J[P],X=J[j],Q=es(0,w[R],Y[R]),ee=b?w[R]/2-Z-Q-G-S.mainAxis:V-Q-G-S.mainAxis,et=b?-w[R]/2+Z+Q+X+S.mainAxis:W+Q+X+S.mainAxis,en=t.elements.arrow&&T(t.elements.arrow),ei=en?"y"===k?en.clientTop||0:en.clientLeft||0:0,ea=null!=(N=null==M?void 0:M[k])?N:0,el=es(d?f(B,z+ee-ea-ei):B,z,d?p(H,z+et-ea):H);_[k]=el,F[k]=el-z}if(void 0!==a&&a){var eu,ec,ed="x"===k?"top":O,ep="x"===k?D:I,ef=_[x],eh="y"===x?"height":"width",em=ef+g[ed],eg=ef-g[ep],ey=-1!==["top",O].indexOf(y),ev=null!=(ec=null==M?void 0:M[x])?ec:0,eb=ey?em:ef-w[eh]-E[eh]-ev+S.altAxis,ek=ey?ef+w[eh]+E[eh]-ev-S.altAxis:eg,ex=d&&ey?(eu=es(eb,ef,ek))>ek?ek:eu:es(d?eb:em,ef,d?ek:eg);_[x]=ex,F[x]=ex-ef}t.modifiersData[r]=F}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=$(r.placement),u=U(l),c=[O,I].indexOf(l)>=0?"height":"width";if(o&&s){var d=ei("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:ea(t,F)),p=C(o),f="y"===u?"top":O,h="y"===u?D:I,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],g=s[u]-r.rects.reference[u],y=T(o),v=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,b=d[f],k=v-p[c]-d[h],x=v/2-p[c]/2+(m/2-g/2),_=es(b,x,k);r.modifiersData[i]=((n={})[u]=_,n.centerOffset=_-x,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
1cts.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=eo(t,{elementContext:"reference"}),s=eo(t,{altBoundary:!0}),l=el(o,r),u=el(s,i,a),c=eu(l),d=eu(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:l,d=void 0===(c=s.defaultOptions)?B:c,function(e,t,n){void 0===n&&(n=d);var o,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,f={state:l,setOptions:function(n){var r,a,o,s,p,h="function"==typeof n?n(l.options):n;m(),l.options=Object.assign({},d,l.options,h),l.scrollParents={reference:i(e)?A(e):e.contextElement?A(e.contextElement):[],popper:A(t)};var g=(a=Object.keys(r=[].concat(u,l.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),o=new Map,s=new Set,p=[],a.forEach(function(e){o.set(e.name,e)}),a.forEach(function(e){s.has(e.name)||function e(t){s.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!s.has(t)){var n=o.get(t);n&&e(n)}}),p.push(t)}(e)}),z.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return l.orderedModifiers=g.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:l,name:t,instance:f,options:void 0===n?{}:n});c.push(i||function(){})}}),f.update()},forceUpdate:function(){if(!p){var e,t,n,i,o,s,u,c,d,m,g,_,E=l.elements,A=E.reference,S=E.popper;if(H(A,S)){l.rects={reference:(t=T(S),n="fixed"===l.options.strategy,i=a(t),c=a(t)&&(s=h((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=h(o.height)/t.offsetHeight||1,1!==s||1!==u),d=k(t),m=y(A,c,n),g={scrollLeft:0,scrollTop:0},_={x:0,y:0},(i||!i&&!n)&&(("body"!==b(t)||w(d))&&(g=(e=t)!==r(e)&&a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:v(e)),a(t)?(_=y(t,!0),_.x+=t.clientLeft,_.y+=t.clientTop):d&&(_.x=x(d))),{x:m.left+g.scrollLeft-_.x,y:m.top+g.scrollTop-_.y,width:m.width,height:m.height}),popper:C(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var D=0;D<l.orderedModifiers.length;D++){if(!0===l.reset){l.reset=!1,D=-1;continue}var I=l.orderedModifiers[D],O=I.fn,M=I.options,F=void 0===M?{}:M,L=I.name;"function"==typeof O&&(l=O({state:l,options:F,name:L,instance:f})||l)}}}},update:(o=function(){return new Promise(function(e){f.forceUpdate(),e(l)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(o())})})),s}),destroy:function(){m(),p=!0}};if(!H(e,t))return f;function m(){c.forEach(function(e){return e()}),c=[]}return f.setOptions(n).then(function(e){!p&&n.onFirstUpdate&&n.onFirstUpdate(e)}),f}),ed="tippy-content",ep="tippy-arrow",ef="tippy-svg-arrow",eh={passive:!0,capture:!0},em=function(){return document.body};function eg(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ey(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ev(e,t){return"function"==typeof e?e.apply(void 0,t):e}function eb(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function ek(e){return[].concat(e)}function ex(e,t){-1===e.indexOf(t)&&e.push(t)}function e_(e){return[].slice.call(e)}function ew(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function eC(){return document.createElement("div")}function eE(e){return["Element","Fragment"].some(function(t){return ey(e,t)})}function eA(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function eS(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function eT(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function eD(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode?void 0:null==(n=r.getRootNode())?void 0:n.host}return!1}var eI={isTouch:!1},eO=0;function eM(){!eI.isTouch&&(eI.isTouch=!0,window.performance&&document.addEventListener("mousemove",eF))}function eF(){var e=performance.now();e-eO<20&&(eI.isTouch=!1,document.removeEventListener("mousemove",eF)),eO=e}function eL(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eN=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,eP=Object.assign({appendTo:em,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ej=Object.keys(eP);function eR(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,a=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=eP[i])?r:a),t},{});return Object.assign({},e,t)}function ez(e,t){var n,r=Object.assign({},t,{content:ev(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(eR(Object.assign({},eP,{plugins:n}))):ej).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},eP.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function eB(e,t){e.innerHTML=t}function eH(e){var t=eC();return!0===e?t.className=ep:(t.className=ef,eE(e)?t.appendChild(e):eB(t,e)),t}function eZ(e,t){eE(t.content)?(eB(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?eB(e,t.content):e.textContent=t.content)}function e$(e){var t=e.firstElementChild,n=e_(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ed)}),arrow:n.find(function(e){return e.classList.contains(ep)||e.classList.contains(ef)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function eq(e){var t=eC(),n=eC();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=eC();function i(n,r){var i=e$(t),a=i.box,o=i.content,s=i.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"==typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&eZ(o,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(eH(r.arrow))):a.appendChild(eH(r.arrow)):s&&a.removeChild(s)}return r.className=ed,r.setAttribute("data-state","hidden"),eZ(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}eq.$$tippy=!0;var eU=1,eV=[],eW=[];function eK(e,t){void 0===t&&(t={});var n=eP.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eM,eh),window.addEventListener("blur",eL);var r=Object.assign({},t,{plugins:n}),i=(eE(e)?[e]:ey(e,"NodeList")?e_(e):Array.isArray(e)?e:e_(document.querySelectorAll(e))).reduce(function(e,t){var n=t&&function(e,t){var n,r,i,a,o,s,l,u,c=ez(e,Object.assign({},eP,eR(ew(t)))),d=!1,p=!1,f=!1,h=!1,m=[],g=eb(U,c.interactiveDebounce),y=eU++,v=(n=c.plugins).filter(function(e,t){return n.indexOf(e)===t}),b={id:y,reference:e,popper:eC(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)},setProps:function(t){if(!b.state.isDestroyed){O("onBeforeUpdate",[b,t]),$();var n=b.props,r=ez(e,Object.assign({},n,ew(t),{ignoreAttributes:!0}));b.props=r,Z(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),g=eb(U,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?ek(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),F(),I(),_&&_(n,r),b.popperInstance&&(Y(),G().forEac
1h(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),O("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var t,n,r,i=b.state.isVisible,a=b.state.isDestroyed,o=!b.state.isEnabled,s=eI.isTouch&&!b.props.touch,c=eg(b.props.duration,0,eP.duration);if(!(i||a||o||s||(u||e).hasAttribute("disabled"))&&(O("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,S()&&(x.style.visibility="visible"),I(),R(),b.state.isMounted||(x.style.transition="none"),S()){var d=e$(x);eA([d.box,d.content],0)}l=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=e$(x),n=t.box,r=t.content;eA([n,r],c),eS([n,r],"visible")}M(),F(),ex(eW,b),null==(e=b.popperInstance)||e.forceUpdate(),O("onMount",[b]),b.props.animation&&S()&&B(c,function(){b.state.isShown=!0,O("onShown",[b])})}},n=b.props.appendTo,r=u||e,(t=b.props.interactive&&n===em||"parent"===n?r.parentNode:ev(n,[r])).contains(x)||t.appendChild(x),b.state.isMounted=!0,Y()}},hide:function(){var e,t=!b.state.isVisible,n=b.state.isDestroyed,r=!b.state.isEnabled,i=eg(b.props.duration,1,eP.duration);if(!t&&!n&&!r&&(O("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,S()&&(x.style.visibility="hidden"),L(),z(),I(!0),S()){var a=e$(x),o=a.box,s=a.content;b.props.animation&&(eA([o,s],i),eS([o,s],"hidden"))}(M(),F(),b.props.animation)?S()&&(e=b.unmount,B(i,function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()})):b.unmount()}},hideWithInteractivity:function(e){T().addEventListener("mousemove",g),ex(eV,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(J(),G().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),eW=eW.filter(function(e){return e!==b}),b.state.isMounted=!1,O("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,O("onDestroy",[b]))}};if(!c.render)return b;var k=c.render(b),x=k.popper,_=k.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var w=v.map(function(e){return e.fn(b)}),C=e.hasAttribute("aria-expanded");return Z(),F(),I(),O("onCreate",[b]),c.showOnCreate&&X(),x.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",g)}),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===E()[0]}function S(){var e;return!!(null!=(e=b.props.render)&&e.$$tippy)}function T(){var t,n,r=(u||e).parentNode;return r&&null!=(n=ek(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function D(e){return b.state.isMounted&&!b.state.isVisible||eI.isTouch||o&&"focus"===o.type?0:eg(b.props.delay,e?0:1,eP.delay)}function I(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function O(e,t,n){if(void 0===n&&(n=!0),w.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=b.props)[e].apply(r,t)}}function M(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;ek(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function F(){!C&&b.props.aria.expanded&&ek(b.props.triggerTarget||e).forEach(function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===(u||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function L(){T().removeEventListener("mousemove",g),eV=eV.filter(function(e){return e!==g})}function N(t){if(!eI.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(b.props.interactive&&eD(x,n))){if(ek(b.props.triggerTarget||e).some(function(e){return eD(e,n)})){if(eI.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else O("onClickOutside",[b,t]);!0!==b.props.hideOnClick||(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout(function(){p=!1}),b.state.isMounted||z())}}}function P(){f=!0}function j(){f=!1}function R(){var e=T();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,eh),e.addEventListener("touchstart",j,eh),e.addEventListener("touchmove",P,eh)}function z(){var e=T();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,eh),e.removeEventListener("touchstart",j,eh),e.removeEventListener("touchmove",P,eh)}function B(e,t){var n=e$(x).box;function r(e){e.target===n&&(eT(n,"remove",r),t())}if(0===e)return t();eT(n,"remove",s),eT(n,"add",r),s=r}function H(t,n,r){void 0===r&&(r=!1),ek(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function Z(){A()&&(H("touchstart",q,{passive:!0}),H("touchend",V,{passive:!0}
1)),b.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(H(e,q),e){case"mouseenter":H("mouseleave",V);break;case"focus":H(eN?"focusout":"blur",W);break;case"focusin":H("focusout",W)}})}function $(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function q(e){var t,n=!1;if(!(!b.state.isEnabled||K(e))&&!p){var r=(null==(t=o)?void 0:t.type)==="focus";o=e,u=e.currentTarget,F(),!b.state.isVisible&&ey(e,"MouseEvent")&&eV.forEach(function(t){return t(e)}),"click"===e.type&&(0>b.props.trigger.indexOf("mouseenter")||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:X(e),"click"===e.type&&(d=!n),n&&!r&&Q(e)}}function U(t){var n,r,i,a=t.target,o=(u||e).contains(a)||x.contains(a);("mousemove"!==t.type||!o)&&(n=G().concat(x).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,a=e.props.interactiveBorder,o=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var l="bottom"===o?s.top.y:0,u="top"===o?s.bottom.y:0,c="right"===o?s.left.x:0,d="left"===o?s.right.x:0,p=t.top-i+l>a,f=i-t.bottom-u>a,h=t.left-r+c>a,m=r-t.right-d>a;return p||f||h||m})&&(L(),Q(t)))}function V(e){if(!(K(e)||b.props.trigger.indexOf("click")>=0&&d)){if(b.props.interactive){b.hideWithInteractivity(e);return}Q(e)}}function W(t){0>b.props.trigger.indexOf("focusin")&&t.target!==(u||e)||b.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||Q(t)}function K(e){return!!eI.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){J();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=S()?e$(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||u||e}:e,d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=e$(x).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];S()&&s&&d.push({name:"arrow",options:{element:s,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ec(c,x,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:d}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function G(){return e_(x.querySelectorAll("[data-tippy-root]"))}function X(e){b.clearDelayTimeouts(),e&&O("onTrigger",[b,e]),R();var t=D(!0),n=E(),i=n[0],a=n[1];eI.isTouch&&"hold"===i&&a&&(t=a),t?r=setTimeout(function(){b.show()},t):b.show()}function Q(e){if(b.clearDelayTimeouts(),O("onUntrigger",[b,e]),!b.state.isVisible){z();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!d){var t=D(!1);t?i=setTimeout(function(){b.state.isVisible&&b.hide()},t):a=requestAnimationFrame(function(){b.hide()})}}}(t,r);return n&&e.push(n),e},[]);return eE(e)?i[0]:i}eK.defaultProps=eP,eK.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eP[t]=e[t]})},eK.currentInput=eI,Object.assign({},Y,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),eK.setDefaultProps({render:eq});var eY=eK},95381:function(e,t,n){"use strict";var r=n(83641),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(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=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},67399:function(e,t,n){"use strict";e.exports=n(95381)},24129:function(e,t,n){"use strict";n.d(t,{gm:function(){return a}});var r=n(83641);n(74023);var i=r.createContext(void 0);function a(e){let t=r.useContext(i);return e||t||"ltr"}},15216:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(21870),i=n(65994),a=n(11996);function o(e){var t;let{char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:o,$position:s}=e,l=(0,a.Ov)(n),u=RegExp(`\\s${l}$`),c=o?"^":"",d=r?RegExp(`${c}${l}.*?(?=\\s${l}|$)`,"gm"):RegExp(`${c}(?:^)?${l}[^\\s${l}]*`,"gm"),p=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!p)return null;let f=s.pos-p.length,h=Array.from(p.matchAll(d)).pop();if(!h||void 0===h.input||void 0===h.index)return null;
1let m=h.input.slice(Math.max(0,h.index-1),h.index),g=RegExp(`^[${null==i?void 0:i.join("")}\0]?$`).test(m);if(null!==i&&!g)return null;let y=f+h.index,v=y+h[0].length;return(r&&u.test(p.slice(v-1,v+1))&&(h[0]+=" ",v+=1),y<s.pos&&v>=s.pos)?{range:{from:y,to:v},query:h[0].slice(n.length),text:h[0]}:null}let s=new r.H$("suggestion");function l({pluginKey:e=s,editor:t,char:n="@",allowSpaces:a=!1,allowedPrefixes:l=[" "],startOfLine:u=!1,decorationTag:c="span",decorationClass:d="suggestion",command:p=()=>null,items:f=()=>[],render:h=()=>({}),allow:m=()=>!0,findSuggestionMatch:g=o}){let y;let v=null==h?void 0:h(),b=new r.Sy({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s,l,u;let c=null===(r=this.key)||void 0===r?void 0:r.getState(n),d=null===(i=this.key)||void 0===i?void 0:i.getState(e.state),h=c.active&&d.active&&c.range.from!==d.range.from,m=!c.active&&d.active,g=c.active&&!d.active,b=!m&&!g&&c.query!==d.query,k=m||h&&b,x=b||h,_=g||h&&b;if(!k&&!x&&!_)return;let w=_&&!k?c:d,C=e.dom.querySelector(`[data-decoration-id="${w.decorationId}"]`);y={editor:t,range:w.range,query:w.query,text:w.text,items:[],command:e=>p({editor:t,range:w.range,props:e}),decorationNode:C,clientRect:C?()=>{var n;let{decorationId:r}=null===(n=this.key)||void 0===n?void 0:n.getState(t.state),i=e.dom.querySelector(`[data-decoration-id="${r}"]`);return(null==i?void 0:i.getBoundingClientRect())||null}:null},k&&(null===(a=null==v?void 0:v.onBeforeStart)||void 0===a||a.call(v,y)),x&&(null===(o=null==v?void 0:v.onBeforeUpdate)||void 0===o||o.call(v,y)),(x||k)&&(y.items=await f({editor:t,query:w.query})),_&&(null===(s=null==v?void 0:v.onExit)||void 0===s||s.call(v,y)),x&&(null===(l=null==v?void 0:v.onUpdate)||void 0===l||l.call(v,y)),k&&(null===(u=null==v?void 0:v.onStart)||void 0===u||u.call(v,y))},destroy:()=>{var e;y&&(null===(e=null==v?void 0:v.onExit)||void 0===e||e.call(v,y))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(e,r,i,o){let{isEditable:s}=t,{composing:c}=t.view,{selection:d}=e,{empty:p,from:f}=d,h={...r};if(h.composing=c,s&&(p||t.view.composing)){(f<r.range.from||f>r.range.to)&&!c&&!r.composing&&(h.active=!1);let e=g({char:n,allowSpaces:a,allowedPrefixes:l,startOfLine:u,$position:d.$from}),i=`id_${Math.floor(4294967295*Math.random())}`;e&&m({editor:t,state:o,range:e.range,isActive:r.active})?(h.active=!0,h.decorationId=r.decorationId?r.decorationId:i,h.range=e.range,h.query=e.query,h.text=e.text):h.active=!1}else h.active=!1;return h.active||(h.decorationId=null,h.range={from:0,to:0},h.query=null,h.text=null),h}},props:{handleKeyDown(e,t){var n;let{active:r,range:i}=b.getState(e.state);return!!r&&((null===(n=null==v?void 0:v.onKeyDown)||void 0===n?void 0:n.call(v,{view:e,event:t,range:i}))||!1)},decorations(e){let{active:t,range:n,decorationId:r}=b.getState(e);return t?i.EH.create(e.doc,[i.p.inline(n.from,n.to,{nodeName:c,class:d,"data-decoration-id":r})]):null}}});return b}},57143:function(e,t,n){"use strict";let r,i,a,o,s;n.d(t,{AICommand:function(){return pu}});var l,u,c,d,p,f,h,m,g,y,v,b,k,x,_,w,C,E,A,S,T,D,I,O,M,F,L={};n.r(L),n.d(L,{boolean:function(){return es},booleanish:function(){return el},commaOrSpaceSeparated:function(){return ef},commaSeparated:function(){return ep},number:function(){return ec},overloadedBoolean:function(){return eu},spaceSeparated:function(){return ed}});var N={};n.r(N),n.d(N,{attentionMarkers:function(){return ns},contentInitial:function(){return nt},disable:function(){return nl},document:function(){return ne},flow:function(){return nr},flowInitial:function(){return nn},insideSpan:function(){return no},string:function(){return ni},text:function(){return na}});var P={};n.r(P),n.d(P,{decode:function(){return lw},encode:function(){return lA},format:function(){return lS},parse:function(){return lR}});var j={};n.r(j),n.d(j,{Any:function(){return lH},Cc:function(){return lZ},Cf:function(){return l$},P:function(){return lz},S:function(){return lB},Z:function(){return lq}});var R={};n.r(R),n.d(R,{arrayReplaceAt:function(){return l6},assign:function(){return l4},escapeHtml:function(){return ul},escapeRE:function(){return uc},fromCodePoint:function(){return l8},has:function(){return l5},isMdAsciiPunct:function(){return uh},isPunctChar:function(){return uf},isSpace:function(){return ud},isString:function(){return l2},isValidEntityCode:function(){return l9},isWhiteSpace:function(){return up},lib:function(){return ug},normalizeReference:function(){return um},unescapeAll:function(){return ur},unescapeMd:function(){return un}});var z={};n.r(z),n.d(z,{parseLinkDestination:function(){return uv},parseLinkLabel:function(){return uy},parseLinkTitle:function(){return ub}});var B=n(11996),H=n(21870),Z=n(85925),$=n(15216),q=n(67431),U=n(74023),V=n(83641),W=n(6199);let K=(0,W.Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),Y=(0,W.Z)("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]),J=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,G=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,X={};function Q(e,t){return((t||X).jsx?G:J).test(e)}let ee=/[ \t\n\f\r]/g;function et(e){return""===e.replace(ee,"")}class en{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function er(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new en(n,r,t)}function ei(e){return e.toLowerCase()}en.prototype.normal={},en.prototype.property={},en.prototype.space=void 0;class ea{constructor(e,t){this.attribute=t,this.property=e}}ea.prototype.attribute="",ea.prototype.booleanish=!1,ea.prototype.boolean=!1,ea.prototype.commaOrSpaceSeparated=!1,ea.prototype.commaSeparated=!1,ea.prototype.defined=!1,ea.prototype.mustUseProperty=!1,ea.prototype.number=!1,ea.prototype.overloadedBoolean=!1,ea.prototype.property="",ea.prototype.spaceSeparated=!1,ea.prototype.space=void 0;let eo=0,es=eh(),el=eh(),eu=eh(),ec=eh(),ed=eh(),ep=eh(),ef=eh();function eh(){return 2**++eo}let em=Object.keys(L);class eg extends ea{constructor(e,t,n,r){var i,a;let o=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++o<em.length;){let e=em[o];i=em[o],(a=(n&L[e])===L[e])&&(this[i]=a)}}}function ey(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new eg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ei(r)]=r,n[ei(a.attribute)]=r}return new en(t,n,e.space)}eg.prototype.defined=!0;
1let ev=ey({properties:{ariaActiveDescendant:null,ariaAtomic:el,ariaAutoComplete:null,ariaBusy:el,ariaChecked:el,ariaColCount:ec,ariaColIndex:ec,ariaColSpan:ec,ariaControls:ed,ariaCurrent:null,ariaDescribedBy:ed,ariaDetails:null,ariaDisabled:el,ariaDropEffect:ed,ariaErrorMessage:null,ariaExpanded:el,ariaFlowTo:ed,ariaGrabbed:el,ariaHasPopup:null,ariaHidden:el,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ed,ariaLevel:ec,ariaLive:null,ariaModal:el,ariaMultiLine:el,ariaMultiSelectable:el,ariaOrientation:null,ariaOwns:ed,ariaPlaceholder:null,ariaPosInSet:ec,ariaPressed:el,ariaReadOnly:el,ariaRelevant:null,ariaRequired:el,ariaRoleDescription:ed,ariaRowCount:ec,ariaRowIndex:ec,ariaRowSpan:ec,ariaSelected:el,ariaSetSize:ec,ariaSort:null,ariaValueMax:ec,ariaValueMin:ec,ariaValueNow:ec,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function eb(e,t){return t in e?e[t]:t}function ek(e,t){return eb(e,t.toLowerCase())}let ex=ey({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ep,acceptCharset:ed,accessKey:ed,action:null,allow:null,allowFullScreen:es,allowPaymentRequest:es,allowUserMedia:es,alt:null,as:null,async:es,autoCapitalize:null,autoComplete:ed,autoFocus:es,autoPlay:es,blocking:ed,capture:null,charSet:null,checked:es,cite:null,className:ed,cols:ec,colSpan:null,content:null,contentEditable:el,controls:es,controlsList:ed,coords:ec|ep,crossOrigin:null,data:null,dateTime:null,decoding:null,default:es,defer:es,dir:null,dirName:null,disabled:es,download:eu,draggable:el,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:es,formTarget:null,headers:ed,height:ec,hidden:eu,high:ec,href:null,hrefLang:null,htmlFor:ed,httpEquiv:ed,id:null,imageSizes:null,imageSrcSet:null,inert:es,inputMode:null,integrity:null,is:null,isMap:es,itemId:null,itemProp:ed,itemRef:ed,itemScope:es,itemType:ed,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:es,low:ec,manifest:null,max:null,maxLength:ec,media:null,method:null,min:null,minLength:ec,multiple:es,muted:es,name:null,nonce:null,noModule:es,noValidate:es,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:es,optimum:ec,pattern:null,ping:ed,placeholder:null,playsInline:es,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:es,referrerPolicy:null,rel:ed,required:es,reversed:es,rows:ec,rowSpan:ec,sandbox:ed,scope:null,scoped:es,seamless:es,selected:es,shadowRootClonable:es,shadowRootDelegatesFocus:es,shadowRootMode:null,shape:null,size:ec,sizes:null,slot:null,span:ec,spellCheck:el,src:null,
1srcDoc:null,srcLang:null,srcSet:null,start:ec,step:null,style:null,tabIndex:ec,target:null,title:null,translate:null,type:null,typeMustMatch:es,useMap:null,value:el,width:ec,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ed,axis:null,background:null,bgColor:null,border:ec,borderColor:null,bottomMargin:ec,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:es,declare:es,event:null,face:null,frame:null,frameBorder:null,hSpace:ec,leftMargin:ec,link:null,longDesc:null,lowSrc:null,marginHeight:ec,marginWidth:ec,noResize:es,noHref:es,noShade:es,noWrap:es,object:null,profile:null,prompt:null,rev:null,rightMargin:ec,rules:null,scheme:null,scrolling:el,standby:null,summary:null,text:null,topMargin:ec,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ec,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:es,disableRemotePlayback:es,prefix:null,property:null,results:ec,security:null,unselectable:null},space:"html",transform:ek}),e_=ey({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
1-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:ef,accentHeight:ec,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ec,amplitude:ec,arabicForm:null,ascent:ec,attributeName:null,attributeType:null,azimuth:ec,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ec,by:null,calcMode:null,capHeight:ec,className:ed,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:ec,diffuseConstant:ec,direction:null,display:null,dur:null,divisor:ec,dominantBaseline:null,download:es,dx:null,dy:null,edgeMode:null,editable:null,elevation:ec,enableBackground:null,end:null,event:null,exponent:ec,externalResourcesRequired:null,fill:null,fillOpacity:ec,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:ep,g2:ep,glyphName:ep,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ec,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ec,horizOriginX:ec,horizOriginY:ec,id:null,ideographic:ec,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ec,k:ec,k1:ec,k2:ec,k3:ec,k4:ec,kernelMatrix:ef,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ec,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:ec,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,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ec,overlineThickness:ec,paintOrder:null,panose1:null,path:null,pathLength:ec,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ed,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ec,pointsAtY:ec,pointsAtZ:ec,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ef,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ef,rev:ef,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ef,requiredFeatures:ef,requiredFonts:ef,requiredFormats:ef,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:ec,specularExponent:ec,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ec,strikethroughThickness:ec,string:null,stroke:null,strokeDashArray:ef,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ec,strokeOpacity:ec,strokeWidth:null,style:null,surfaceScale:ec,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ef,tabIndex:ec,tableValues:null,target:null,targetX:ec,targetY:ec,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ef,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ec,underlineThickness:ec,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ec,values:null,vAlphabetic:ec,vMathematical:ec,vectorEffect:null,vHanging:ec,vIdeographic:ec,version:null,vertAdvY:ec,vertOriginX:ec,vertOriginY:ec,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ec,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:eb}),ew=ey({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()}),eC=ey({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ek}),eE=ey({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),eA=er([ev,ex,ew,eC,eE],"html"),eS=er([ev,e_,ew,eC,eE],"svg"),eT=/[A-Z]/g,eD=/-[a-z]/g,eI=/^data[-\w.:]+$/i;function eO(e){return"-"+e.toLowerCase()}function eM(e){return e.charAt(1).toUpperCase()}let eF={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 eL=n(75372);let eN=ej("end"),eP=ej("start");function ej(e){return function(t){let 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 eR(e){return e&&"object"==typeof e?"position"in e||"type"in e?eB(e.position):"start"in e||"end"in e?eB(e):"line"in e||"column"in e?ez(e):"":""}function ez(e){return eH(e&&e.line)+":"+eH(e&&e.column)}function eB(e){return ez(e&&e.start)+"-"+ez(e&&e.end)}function eH(e){return e&&"number"==typeof e?e:1}class eZ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=eR(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}eZ.prototype.file="",eZ.prototype.name="",eZ.prototype.reason="",eZ.prototype.message="",eZ.prototype.stack="",eZ.prototype.column=void 0,eZ.prototype.line=void 0,eZ.prototype.ancestors=void 0,eZ.prototype.cause=void 0,eZ.prototype.fatal=void 0,eZ.prototype.place=void 0,eZ.prototype.ruleId=void 0,eZ.prototype.source=void 0;let e$={}.hasOwnProperty,eq=new Map,eU=/[A-Z]/g,eV=new Set(["table","tbody","thead","tfoot","tr"]),eW=new Set(["td","th"]),eK="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eY(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=eS,e.schema=i),e.ancestors.push(t);let a=eQ(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&e$.call(t.properties,r)){let a=function(e,t,n){let r=function(e,t){let n=ei(t),r=t,i=ea;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eI.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(eD,eM);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!eD.test(e)){let n=e.replace(eT,eO);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=eg}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return eL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new eZ("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
1throw t.file=e.filePath||void 0,t.url=eK+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)e$.call(e,t)&&(n[function(e){let t=e.replace(eU,e1);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?eF[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&eW.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),s=eX(e,t);return eV.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&et(e.value):et(e))})),eJ(e,o,a,t),eG(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}e0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=eS,e.schema=i),e.ancestors.push(t);let a=null===t.name?e.Fragment:eQ(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else e0(e,t.position)}else{let i;let a=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else e0(e,t.position)}else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=eX(e,t);return eJ(e,o,a,t),eG(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,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);e0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eG(r,eX(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eJ(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eG(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eX(e,t){let n=[],r=-1,i=e.passKeys?new Map:eq;for(;++r<t.children.length;){let a;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=eY(e,o,a);void 0!==s&&n.push(s)}return n}function eQ(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=Q(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=Q(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return e$.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);e0(e)}function e0(e,t){let n=new eZ("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=eK+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e1(e){return"-"+e.toLowerCase()}let e2={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"]},e3={};function e5(e,t,n){if(e&&"object"==typeof 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 e4(e.children,t,n)}return Array.isArray(e)?e4(e,t,n):""}function e4(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=e5(e[i],t,n);return r.join("")}function e6(e,t,n,r){let i;let a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function e9(e,t){return e.length>0?(e6(e,e.length,0,t),e):t}class e8{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw 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){let 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){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&e7(this.left,n),r.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),e7(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),e7(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){let t=this.left.splice(e,Number.POSITIVE_INFINITY);e7(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);e7(this.left,t.reverse())}}}}function e7(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){let t,n,r,i,a,o,s;let l={},u=-1,c=new e8(e);for(;++u<c.length;){for(;(u in l);)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r;let i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},p=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);s.push(o),!f._tokenizer&&(n=a.sliceStream(f),f.next||n.push(null),r&&l.defineSki
1p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return e6(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}let tt={}.hasOwnProperty,tn=th(/[A-Za-z]/),tr=th(/[\dA-Za-z]/),ti=th(/[#-'*+\--9=?A-Z^-~]/);function ta(e){return null!==e&&(e<32||127===e)}let to=th(/\d/),ts=th(/[\dA-Fa-f]/),tl=th(/[!-/:-@[-`{-~]/);function tu(e){return null!==e&&e<-2}function tc(e){return null!==e&&(e<0||32===e)}function td(e){return -2===e||-1===e||32===e}let tp=th(/\p{P}|\p{S}/u),tf=th(/\s/);function th(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function tm(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return function(r){return td(r)?(e.enter(n),function r(o){return td(o)&&a++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let tg={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tm(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return tu(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ty={tokenize:function(e){let t,n,r;let i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return e6(i.events,a+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(tv,c,d)(n)}function c(e){return t&&y(),g(o),p(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,h(e)}function p(t){return i.containerState={},e.attempt(tv,f,h)(t)}function f(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return tu(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;e6(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},tv={tokenize:function(e,t,n){return tm(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},tb={partial:!0,tokenize:function(e,t,n){return function(t){return td(t)?tm(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||tu(e)?t(e):n(e)}}},tk={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?i(t):tu(t)?e.check(tx,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tx={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tm(e,i,"linePrefix")};function i(i){if(null===i||tu(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},t_={tokenize:function(e){let t=this,n=e.attempt(tb,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,tm(e,e.attempt(this.parser.constructs.flow,r,e.attempt(tk,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},tw={resolveAll:tS()},tC=tA("string"),tE=tA("text");function tA(e){return{resolveAll:tS("text"===e?tT:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tS(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tT(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let tD={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){return e.enter("thematicBreak"),r=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),td(n)?tm(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||tu(o))?(e.exit("thematicBreak"),t(o)):n(o)}(a)}}},tI={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(tb,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,tm(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!td(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
1=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tM,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,tm(e,e.attempt(tI,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:to(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tD,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return to(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(tb,r.interrupt?n:l,e.attempt(tO,c,u))}
1function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return td(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tO={partial:!0,tokenize:function(e,t,n){let r=this;return tm(e,function(e){let i=r.events[r.events.length-1];return!td(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tM={partial:!0,tokenize:function(e,t,n){let r=this;return tm(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tF={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return td(t)?tm(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tF,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let 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"),i}return n(t)};function i(n){return td(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function tL(e,t,n,r,i,a,o,s,l){let u=l||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||ta(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||tu(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(i){return!c&&(null===i||41===i||tc(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||ta(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function tN(e,t,n,r,i,a){let o;let s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):tu(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||tu(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!td(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function tP(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):tu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),tm(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||tu(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function tj(e,t){let n;return function r(i){return tu(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):td(i)?tm(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tR(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tz={partial:!0,tokenize:function(e,t,n){return function(t){return tc(t)?tj(e,r)(t):n(t)};function r(t){return tP(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return td(t)?tm(e,a,"whitespace")(t):a(t)}function a(e){return null===e||tu(e)?t(e):n(e)}}},tB={name:"codeIndented",tokenize:function(e,t,n){let r=this;
1return function(t){return e.enter("codeIndented"),tm(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):tu(n)?e.attempt(tH,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||tu(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},tH={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):tu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):tm(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):tu(e)?i(e):n(e)}}},tZ={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),td(n)?tm(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||tu(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},t$=["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"],tq=["pre","script","style","textarea"],tU={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tb,t,n)}}},tV={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return tu(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tW={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tK={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),td(t)?tm(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),td(i)?tm(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||tu(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){return function(t){let a=i.events[i.events.length-1];return o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),td(i)?tm(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(a){return null===a||tu(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(tW,c,h)(a)):(e.enter("co
1deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||tu(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):td(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tm(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||tu(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||tu(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&td(t)?tm(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||tu(t)?e.check(tW,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||tu(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},tY=document.createElement("i");function tJ(e){let t="&"+e+";";tY.innerHTML=t;let n=tY.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tG={name:"characterReference",tokenize:function(e,t,n){let r,i;let a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=tr,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ts,u):(e.enter("characterReferenceValue"),r=7,i=to,u(t))}function u(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==tr||tJ(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),u):n(s)}}},tX={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 tl(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tQ={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),tm(e,t,"linePrefix")}}};function t0(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}let t1={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&e6(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let 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[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=e9(a=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+s+3)),a=e9(a,[["enter",c,t]]),a=e9(a,t0(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=e9(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=e9(a,e.slice(i+1)),a=e9(a,[["exit",l,t]]),e6(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i;let a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes(tR(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(t2,u,i?u:c)(t):91===t?e.attempt(t3,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(t5,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},t2={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 tc(t)?tj(e,i)(t):i(t)}function i(t){return 41===t?u(t):tL(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}
1function a(t){return tc(t)?tj(e,s)(t):u(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?tP(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return tc(t)?tj(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)}}},t3={tokenize:function(e,t,n){let r=this;return function(t){return tN.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tR(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},t5={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)}}},t4={name:"labelStartImage",resolveAll:t1.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function t6(e){return null===e||tc(e)||tf(e)?1:tp(e)?2:void 0}let t9={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,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;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};t8(d,-s),t8(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[c][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=e9(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=e9(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=e9(l,t0(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=e9(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=e9(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,e6(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){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=t6(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),u=t6(s),c=!u||2===u&&a||r.includes(s),d=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(o)}}};function t8(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let t7={name:"labelStartLink",resolveAll:t1.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ne={42:tI,43:tI,45:tI,48:tI,49:tI,50:tI,51:tI,52:tI,53:tI,54:tI,55:tI,56:tI,57:tI,62:tF},nt={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),tN.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function a(t){return(r=tR(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}
1function o(t){return tc(t)?tj(e,s)(t):s(t)}function s(t){return tL(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(tz,u,u)(t)}function u(t){return td(t)?tm(e,c,"whitespace")(t):c(t)}function c(a){return null===a||tu(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},nn={[-2]:tB,[-1]:tB,32:tB},nr={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},e6(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||tc(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||tu(r)?(e.exit("atxHeading"),t(r)):td(r)?tm(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||tc(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(i)}}},42:tD,45:[tZ,tD],60:{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){let r,i,a,o,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:M):tn(o)?(e.consume(o),a=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,p):tn(i)?(e.consume(i),r=4,l.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:M):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:C:p:n(r)}function f(t){return tn(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||tc(o)){let s=47===o,u=a.toLowerCase();return!s&&!i&&tq.includes(u)?(r=1,l.interrupt?t(o):C(o)):t$.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),m):l.interrupt?t(o):C(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return td(n)?(e.consume(n),t):_(n)}(o):g(o))}return 45===o||tr(o)?(e.consume(o),a+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),_):58===t||95===t||tn(t)?(e.consume(t),y):td(t)?(e.consume(t),g):_(t)}function y(t){return 45===t||46===t||58===t||95===t||tr(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):td(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,k):td(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||tc(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===s?(e.consume(t),s=null,x):null===t||tu(t)?n(t):(e.consume(t),k)}function x(e){return 47===e||62===e||td(e)?g(e):n(e)}function _(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||tu(t)?C(t):td(t)?(e.consume(t),w):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),D):62===t&&4===r?(e.consume(t),F):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),O):tu(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tU,L,E)(t)):null===t||tu(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tV,A,L)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||tu(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),M):C(t)}function D(t){return 47===t?(e.consume(t),a="",I):C(t)}function I(t){if(62===t){let n=a.toLowerCase();return tq.includes(n)?(e.consume(t),F):C(t)}return tn(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):C(t)}function O(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),F):45===t&&2===r?(e.consume(t),M):C(t)}function F(t){return null===t||tu(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),F)}function L(n){return e.exit("htmlFlow"),t(n)}}},61:tZ,95:tD,96:tK,126:tK},ni={38:tG,92:tX},na={[-5]:tQ,[-4]:tQ,[-3]:tQ,33:t4,38:tG,42:t9,60:[{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"),i};function i(t){return tn(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||tr(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||tr(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(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||ta(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):ti(t)?(e.consume(t),s):n(t)}function l(i){return tr(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||tr(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),v):tn(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):tn(t)?(e.consume(t),y):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):tu(t)?(a=c,I(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?D(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):tu(t)?(a=h,I(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?D(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?D(t):tu(t)?(a=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):tu(t)?(a=v,I(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function k(t){return tn(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||tr(t)?(e.consume(t),x):function t(n){return tu(n)?(a=t,I(n)):td(n)?(e.consume(n),t):D(n)}(t)}function _(t){return 45===t||tr(t)?(e.consume(t),_):47===t||62===t||tc(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),D):58===t||95===t||tn(t)?(e.consume(t),C):tu(t)?(a=w,I(t)):td(t)?(e.consume(t),w):D(t)}function C(t){return 45===t||46===t||58===t||95===t||tr(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):tu(n)?(a=t,I(n)):td(n)?(e.consume(n),t):w(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):tu(t)?(a=E,I(t)):td(t)?(e.consume(t),E):(e.consume(t),S)}function A(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):tu(t)?(a=A,I(t)):(e.consume(t),A)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||tc(t)?w(t):(e.consume(t),S)}function T(e){return 47===e||62===e||tc(e)?w(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return td(t)?tm(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),a(t)}}}],91:t7,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return tu(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tX],93:t1,95:t9,96:{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,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-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,i,a=0;
1return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):tu(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||tu(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},no={null:[t9,tw]},ns={null:[42,95]},nl={null:[]},nu=/[\0\t\n\r]/g;function nc(e,t){let 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)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let nd=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function np(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return nc(n.slice(t?2:1),t?16:10)}return tJ(n)||e}let nf={}.hasOwnProperty;function nh(e){return{line:e.line,column:e.column,offset:e.offset}}function nm(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+eR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+eR({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+eR({start:t.start,end:t.end})+") is still open")}function ng(e){let t=this;t.parser=function(n){var r,i;let a,o,s,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(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:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=nc(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tJ(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=nh(e.end)},codeFenced:o(function(){let 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(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tR(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let 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(){let 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){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(nd,np),n.identifier=tR(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=nh(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
1ype)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let 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:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tR(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(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:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(nf.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,o,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=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 o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];nf.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||nm).call(o,void 0,e[0])}for(r.position={start:nh(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nh(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(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:nh(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||nm).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+eR({start:e.start,end:e.end})+"): it’s not open");n.position.end=nh(e.end)}function l(){return e5(this.stack.pop(),"boolean"!=typeof e3.includeImageAlt||e3.includeImageAlt,"boolean"!=typeof e3.includeHtml||e3.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:nh(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nh(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!te(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(tt.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){tt.call(i,r)||(i[r]=[]);let e=a[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);e6(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([N,...(e||{}).extensions||[]]),content:n(tg),defined:[],document:n(ty),flow:n(t_),lazy:{},string:n(tC),text:n(tE)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
1olumn:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){tu(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a;let o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":"	";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=e9(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=t0(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function f(e,t){t.restore()}function h(e,t){return function(n,i,a){let o,c,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(o=e,c=0,0===e.length)?a:m(e[c])}function m(e){return function(n){return(f=function(){let e=p(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,g()}}}(),d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,y,v)(n)}}function y(t){return e(d,f),i}function v(e){return(f.restore(),++c<o.length)?m(o[c]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&e6(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,s="",l=!0,function(e,t,n){let r,i,u,c,d;let p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,s="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(nu.lastIndex=u,c=(r=nu.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){s=e.slice(u);break}if(10===d&&u===c&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),p.push(-2);o++<i;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:a=!0,o=1}u=c+1}return n&&(a&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,r,!0))))}}let ny="object"==typeof self?self:globalThis,nv=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new ny[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new ny[a](o),i)};return r},nb=e=>nv(new Map,e)(0),{toString:nk}={},{keys:nx}=Object,n_=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nk.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},nw=([e,t])=>0===e&&("function"===t||"symbol"===t),nC=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=n_(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of nx(r))(e||!nw(n_(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);
1for(let[n,i]of r)(e||!(nw(n_(n))||nw(n_(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!nw(n_(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a},nE=(e,{json:t,lossy:n}={})=>{let r=[];return nC(!(t||n),!!t,new Map,r)(e),r};var nA="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?nb(nE(e,t)):structuredClone(e):(e,t)=>nb(nE(e,t));function nS(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&tr(e.charCodeAt(n+1))&&tr(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nT(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nI=function(e){if(null==e)return nM;if("function"==typeof e)return nO(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nI(e[n]);return nO(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):nO(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return nO(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function nO(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nM(){return!0}let nF=[];function nL(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let a=nI(i),o=r?-1:1;(function e(i,s,l){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,p,f=nF;if((!t||a(i,s,l[l.length-1]||void 0))&&!1===(f=Array.isArray(u=n(i,l))?u:"number"==typeof u?[!0,u]:null==u?nF:[u])[0])return f;if("children"in i&&i.children&&i.children&&"skip"!==f[0])for(d=(r?i.children.length:-1)+o,p=l.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,p)())[0])return c;d="number"==typeof c[1]?c[1]:d+o}return f}})(e,void 0,[])()}(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function nN(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nP(e){let t=e.spread;return null==t?e.children.length>1:t}function nj(e,t,n){let r=0,i=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(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nR={blockquote:function(e,t){let 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){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);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={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;
1let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=nS(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let 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){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nN(e,t);let i={src:nS(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:nS(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nN(e,t);let i={href:nS(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:nS(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let 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){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=nP(n[r])}return t}(n):nP(t),a={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];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}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=eP(t.children[1]),o=eN(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{}
1,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(nj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(nj(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nz,yaml:nz,definition:nz,footnoteDefinition:nz};function nz(){}let nB={}.hasOwnProperty,nH={};function nZ(e,t){e.position&&(t.position=function(e){let t=eP(e),n=eN(e);if(t&&n)return{start:t,end:n}}(e))}function n$(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=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&&i&&Object.assign(n.properties,nA(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nq(e,t){let n=[],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 nU(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nV(e,t){let n=function(e,t){let n=t||nH,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nU(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nU(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:n$,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nR,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(nB.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=nA(n);return r.children=a.all(e),r}return nA(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nB.call(n,"hProperties")||nB.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:nZ,wrap:nq};return nL(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nT,r=e.options.footnoteBackLabel||nD,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),u=nS(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);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]})}
1let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else a.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...nA(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function nW(e,t){return e&&"run"in e?async function(n,r){let i=nV(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nV(n,{file:r,...e||t})}}function nK(e){if(e)throw e}var nY=n(21407);function nJ(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nG={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nX(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(nX(e),0===e.length)return".";let 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)},extname:function(e){let t;nX(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)nX(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){nX(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function nX(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let nQ={cwd:function(){return"/"}};function n0(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let n1=["history","path","basename","stem","extname","dirname"];class n2{constructor(e){let t,n;t=e?n0(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":nQ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<n1.length;){let e=n1[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)n1.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nG.basename(this.path):void 0}set basename(e){n5(e,"basename"),n3(e,"basename"),this.path=nG.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nG.dirname(this.path):void 0}set dirname(e){n4(this.basename,"dirname"),this.path=nG.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?nG.extname(this.path):void 0}set extname(e){if(n3(e,"extname"),n4(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");
1if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nG.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){n0(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!n0(e)){let t=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){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),n5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nG.basename(this.path,this.extname):void 0}set stem(e){n5(e,"stem"),n3(e,"stem"),this.path=nG.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new eZ(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 n3(e,t){if(e&&e.includes(nG.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nG.sep+"`")}function n5(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function n4(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let n6=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},n9={}.hasOwnProperty;class n8 extends n6{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(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(a,...o){let s=e[++n],l=-1;if(a){r(a);return}for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a;let o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new n8,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nY(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(rn("data",this.frozen),this.namespace[e]=t,this):n9.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rn("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=ra(e),n=this.parser||this.Parser;return re("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),re("process",this.parser||this.Parser),rt("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=ra(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),re("processSync",this.parser||this.Parser),rt("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nK(e),t=r}),ri("processSync","process",n),t}
1run(e,t,n){rr(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=ra(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nK(e),n=t,r=!0}),ri("runSync","run",r),n}stringify(e,t){this.freeze();let n=ra(t),r=this.compiler||this.Compiler;return rt("stringify",r),rr(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rn("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");a(e.plugins),e.settings&&(r.settings=nY(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];nJ(o)&&nJ(r)&&(r=nY(!0,o,r)),n[i]=[e,r,...a]}}}}let n7=new n8().freeze();function re(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function rt(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function rn(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rr(e){if(!nJ(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ri(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ra(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new n2(e)}let ro=[],rs={allowDangerousHtml:!0},rl=/^(https?|ircs?|mailto|xmpp)$/i,ru=[{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:"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 rc(e){let t=function(e){let t=e.rehypePlugins||ro,n=e.remarkPlugins||ro,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rs}:rs;return n7().use(ng).use(n).use(nW,r).use(t)}(e),n=function(e){let t=e.children||"",n=new n2;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||rd;for(let e of ru)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),nL(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in e2)if(Object.hasOwn(e2,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=e2[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,a=function(e,t,r,i){let a=Array.isArray(r.children),s=eP(e);return n(t,r,i,a,{columnNumber:s?s.column-1:void 0,fileName:o,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,a=function(e,t,n,a){let o=Array.isArray(n.children)?i:r;return a?o(t,n,a):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?eS:eA,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},l=eY(s,e,void 0);return l&&"string"!=typeof l?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}(e,{Fragment:U.Fragment,components:i,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function rd(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||rl.test(e.slice(0,t))?e:""}var rp=n(90582),rf=V.useLayoutEffect,rh=function(e){var t=V.useRef(e);return rf(function(){t.current=e}),t},rm=function(e,t){if("function"==typeof e){e(t);return}e.current=t},rg=function(e,t){var n=V.useRef();return V.useCallback(function(r){e.current=r,n.current&&rm(n.current,null),n.current=t,t&&rm(t,r)},[t])},ry={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},rv=function(e){Object.keys(ry).forEach(function(t){e.style.setProperty(t,ry[t],"important")})},rb=null,rk=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},rx=function(){},r_=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],rw=!!document.documentElement.currentStyle,rC=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=r_.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;rw&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:a}};function rE(e,t,n){var r=rh(n);V.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var rA=function(e,t){rE(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},rS=function(e){rE(window,"resize",e)},rT=function(e){rE(document.fonts,"loadingdone",e)},rD=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],rI=V.forwardRef(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=void 0===a?rx:a,s=e.onHeightChange,l=void 0===s?rx:s,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,rD),c=void 0!==u.value,d=V.useRef(null),p=rg(d,t),f=V.useRef(0),h=V.useRef(),m=function(){var e,t,a,o,s,u,c,p,m,g,y,v=d.current,b=n&&h.current?h.current:rC(v);if(b){h.current=b;var k=(e=v.value||v.placeholder||"x",void 0===(t=i)&&(t=1),void 0===(a=r)&&(a=1/0),rb||((rb=document.createElement("textarea")).setAttribute("tabindex","-1"),rb.setAttribute("aria-hidden","true"),rv(rb)),null===rb.parentNode&&document.body.appendChild(rb),o=b.paddingSize,s=b.borderSize,c=(u=b.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){rb.style[e]=u[e]}),rv(rb),rb.value=e,p=rk(rb,b),rb.value=e,p=rk(rb,b),rb.value="x",g=(m=rb.scrollHeight-o)*t,"border-box"===c&&(g=g+o+s),p=Math.max(g,p),y=m*a,"border-box"===c&&(y=y+o+s),[p=Math.min(y,p),m]),x=k[0],_=k[1];f.current!==x&&(f.current=x,v.style.setProperty("height",x+"px","important"),l(x,{rowHeight:_}))}};return V.useLayoutEffect(m),rA(d,function(){if(!c){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&m()})}}),rS(m),rT(m),V.createElement("textarea",(0,rp.Z)({},u,{onChange:function(e){c||m(),o(e)},ref:p}))}
1),rO="vercel.ai.error",rM=Symbol.for(rO),rF=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[b]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,rO)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};b=rM;var rL=rF;function rN(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var rP="AI_InvalidArgumentError",rj=`vercel.ai.error.${rP}`,rR=Symbol.for(rj),rz=class extends rL{constructor({message:e,cause:t,argument:n}){super({name:rP,message:e,cause:t}),this[k]=!0,this.argument=n}static isInstance(e){return rL.hasMarker(e,rj)}};k=rR,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var rB="AI_JSONParseError",rH=`vercel.ai.error.${rB}`,rZ=Symbol.for(rH),r$=class extends rL{constructor({text:e,cause:t}){super({name:rB,message:`JSON parsing failed: Text: ${e}.
2Error message: ${rN(t)}`,cause:t}),this[x]=!0,this.text=e}static isInstance(e){return rL.hasMarker(e,rH)}};x=rZ,Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),Symbol.for("vercel.ai.error.AI_LoadSettingError"),Symbol.for("vercel.ai.error.AI_NoContentGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchModelError"),Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var rq="AI_TypeValidationError",rU=`vercel.ai.error.${rq}`,rV=Symbol.for(rU),rW=class e extends rL{constructor({value:e,cause:t}){super({name:rq,message:`Type validation failed: Value: ${JSON.stringify(e)}.
3Error message: ${rN(t)}`,cause:t}),this[_]=!0,this.value=e}static isInstance(e){return rL.hasMarker(e,rU)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};_=rV,Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");let rK=(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i--;)r+=e[Math.random()*e.length|0];return r};var rY=n(1908);n(28070),(({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=rK(n,t);if(null!=e){if(n.includes(r))throw new rz({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return t=>`${e}${r}${i(t)}`}})();var rJ=Symbol.for("vercel.ai.validator");function rG({value:e,schema:t}){let n="object"==typeof t&&null!==t&&rJ in t&&!0===t[rJ]&&"validate"in t?t:{[rJ]:!0,validate:e=>{let n=t.safeParse(e);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}};try{if(null==n.validate)return{success:!0,value:e};let t=n.validate(e);if(t.success)return t;return{success:!1,error:rW.wrap({value:e,cause:t.error})}}catch(t){return{success:!1,error:rW.wrap({value:e,cause:t})}}}function rX({text:e,schema:t}){try{let n=rY.parse(e);if(null==t)return{success:!0,value:n,rawValue:n};let r=rG({value:n,schema:t});return r.success?{...r,rawValue:n}:r}catch(t){return{success:!1,error:r$.isInstance(t)?t:new r$({text:e,cause:t})}}}var{btoa:rQ,atob:r0}=globalThis;let r1=Symbol("Let zodToJsonSchema decide on which parser to use"),r2={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},r3=e=>"string"==typeof e?{...r2,name:e}:{...r2,...e},r5=e=>{let t=r3(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}};(l=w||(w={})).assertEqual=e=>{},l.assertIs=function(e){},l.assertNever=function(e){throw Error()},l.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},l.getValidEnumValues=e=>{let t=l.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return l.objectValues(n)},l.objectValues=e=>l.objectKeys(e).map(function(t){return e[t]}),l.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];
vendor: 1,313 bytes, line 3
3for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},l.find=(e,t)=>{for(let n of e)if(t(n))return n},l.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,l.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},l.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(C||(C={})).mergeShapes=(e,t)=>({...e,...t});let r4=w.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),r6=e=>{switch(typeof e){case"undefined":return r4.undefined;case"string":return r4.string;case"number":return Number.isNaN(e)?r4.nan:r4.number;case"boolean":return r4.boolean;case"function":return r4.function;case"bigint":return r4.bigint;case"symbol":return r4.symbol;case"object":if(Array.isArray(e))return r4.array;if(null===e)return r4.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r4.promise;if("undefined"!=typeof Map&&e instanceof Map)return r4.map;if("undefined"!=typeof Set&&e instanceof Set)return r4.set;if("undefined"!=typeof Date&&e instanceof Date)return r4.date;return r4.object;default:return r4.unknown}}
3,r9=w.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class r8 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof r8))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,w.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}r8.create=e=>new r8(e);var r7=(e,t)=>{let n;switch(e.code){case r9.invalid_type:n=e.received===r4.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r9.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,w.jsonStringifyReplacer)}`;break;case r9.unrecognized_keys:n=`Unrecognized key(s) in object: ${w.joinValues(e.keys,", ")}`;break;case r9.invalid_union:n="Invalid input";break;case r9.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${w.joinValues(e.options)}`;break;case r9.invalid_enum_value:n=`Invalid enum value. Expected ${w.joinValues(e.options)}, received '${e.received}'`;break;case r9.invalid_arguments:n="Invalid function arguments";break;case r9.invalid_return_type:n="Invalid function return type";break;case r9.invalid_date:n="Invalid date";break;case r9.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:w.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r9.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r9.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r9.custom:n="Invalid input";break;
vendor: 7,215 bytes, line 3
3case r9.invalid_intersection_types:n="Intersection results could not be merged";break;case r9.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case r9.not_finite:n="Number must be finite";break;default:n=t.defaultError,w.assertNever(e)}return{message:n}};(u=E||(E={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},u.toString=e=>"string"==typeof e?e:e?.message;let ie=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function it(e,t){let n=ie({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r7,r7==r7?void 0:r7].filter(e=>!!e)});e.common.issues.push(n)}class ir{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return ii;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return ir.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return ii;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let ii=Object.freeze({status:"aborted"}),ia=e=>({status:"dirty",value:e}),io=e=>({status:"valid",value:e}),is=e=>"aborted"===e.status,il=e=>"dirty"===e.status,iu=e=>"valid"===e.status,ic=e=>"undefined"!=typeof Promise&&e instanceof Promise;class id{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let ip=(e,t)=>{if(iu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new r8(e.common.issues);return this._error=t,this._error}}};function ih(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class im{get description(){return this._def.description}_getType(e){return r6(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:r6(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ir,ctx:{common:e.parent.common,data:e.data,parsedType:r6(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ic(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r6(e)},r=this._parseSync({data:e,path:n.path,parent:n});return ip(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r6(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return iu(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>iu(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:r6(e)},r=this._parse({data:e,path:n.path,parent:n});return ip(n,await (ic(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:r9.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new i8({schema:this,typeName:A.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return i7.create(this,this._def)}nullable(){return ae.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return iU.create(this)}promise(){return i9.create(this,this._def)}or(e){return iW.create([this,e],this._def)}and(e){return iJ.create(this,e,this._def)}transform(e){return new i8({...ih(this._def),schema:this,typeName:A.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new at({...ih(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:A.ZodDefault})}brand(){return new ai({typeName:A.ZodBranded,type:this,...ih(this._def)})}catch(e){return new an({...ih(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:A.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return aa.create(this,e)}readonly(){return ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let ig=/^c[^\s-]{8,}
vendor: 25,197 bytes, line 3
3$/i,iy=/^[0-9a-z]+$/,iv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ib=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ik=/^[a-z0-9_-]{21}$/i,ix=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,i_=/^[-+]?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)?)??$/,iw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,iC=/^(?:(?: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])$/,iE=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,iA=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,iS=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,iI="((\\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])))",iO=RegExp(`^${iI}$`);function iM(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class iF extends im{_parse(e){var t,n,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==r4.string){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.string,received:t.parsedType}),ii}let s=new ir;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(it(o=this._getOrReturnCtx(e,o),{code:r9.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("max"===l.kind)e.data.length>l.value&&(it(o=this._getOrReturnCtx(e,o),{code:r9.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,n=e.data.length<l.value;(t||n)&&(o=this._getOrReturnCtx(e,o),t?it(o,{code:r9.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):n&&it(o,{code:r9.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if("email"===l.kind)iw.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"email",code:r9.invalid_string,message:l.message}),s.dirty());else if("emoji"===l.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:r9.invalid_string,message:l.message}),s.dirty());else if("uuid"===l.kind)ib.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:r9.invalid_string,message:l.message}),s.dirty());else if("nanoid"===l.kind)ik.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:r9.invalid_string,message:l.message}),s.dirty());else if("cuid"===l.kind)ig.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:r9.invalid_string,message:l.message}),s.dirty());else if("cuid2"===l.kind)iy.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:r9.invalid_string,message:l.message}),s.dirty());else if("ulid"===l.kind)iv.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:r9.invalid_string,message:l.message}),s.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{it(o=this._getOrReturnCtx(e,o),{validation:"url",code:r9.invalid_string,message:l.message}),s.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"regex",code:r9.invalid_string,message:l.message}),s.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):"datetime"===l.kind?(function(e){let t=`${iI}T${iM(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"datetime",message:l.message}),s.dirty()):"date"===l.kind?iO.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"date",message:l.message}),s.dirty()):"time"===l.kind?RegExp(`^${iM(l)}$`).test(e.data)||(it(o=this._getOrReturnCtx(e,o),{code:r9.invalid_string,validation:"time",message:l.message}),s.dirty()):"duration"===l.kind?i_.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"duration",code:r9.invalid_string,message:l.message}),s.dirty()):"ip"===l.kind?(t=e.data,("v4"===(n=l.version)||!n)&&iC.test(t)||("v6"===n||!n)&&iA.test(t)||(it(o=this._getOrReturnCtx(e,o),{validation:"ip",code:r9.invalid_string,message:l.message}),s.dirty())):"jwt"===l.kind?!function(e,t){if(!ix.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(it(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:r9.invalid_string,message:l.message}),s.dirty()):"cidr"===l.kind?(i=e.data,("v4"===(a=l.version)||!a)&&iE.test(i)||("v6"===a||!a)&&iS.test(i)||(it(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:r9.invalid_string,message:l.message}),s.dirty())):"base64"===l.kind?iT.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"base64",code:r9.invalid_string,message:l.message}),s.dirty()):"base64url"===l.kind?iD.test(e.data)||(it(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:r9.invalid_string,message:l.message}),s.dirty()):w.assertNever(l);return{status:s.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:r9.invalid_string,...E.errToObj(n)})}_addCheck(e){return new iF({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...E.errToObj(e)})}url(e){return this._addCheck({kind:"url",...E.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...E.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...E.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...E.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...E.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...E.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...E.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...E.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...E.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...E.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...E.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...E.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...E.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...E.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...E.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...E.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...E.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...E.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...E.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...E.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...E.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...E.errToObj(t)})}nonempty(e){return this.min(1,E.errToObj(e))}trim(){return new iF({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new iF({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new iF({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}iF.create=e=>new iF({checks:[],typeName:A.ZodString,coerce:e?.coerce??!1,...ih(e)});class iL extends im{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==r4.number){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.number,received:t.parsedType}),ii}let n=new ir;for(let r of this._def.checks)"int"===r.kind?w.isInteger(e.data)||(it(t=this._getOrReturnCtx(e,t),{code:r9.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(it(t=this._getOrReturnCtx(e,t),{code:r9.not_finite,message:r.message}),n.dirty()):w.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,n,r){return new iL({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:E.toString(r)}]})}_addCheck(e){return new iL({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:E.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:E.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:E.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:E.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&w.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}iL.create=e=>new iL({checks:[],typeName:A.ZodNumber,coerce:e?.coerce||!1,...ih(e)});class iN extends im{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==r4.bigint)return this._getInvalidInput(e);let n=new ir;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(it(t=this._getOrReturnCtx(e,t),{code:r9.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):w.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.bigint,received:t.parsedType}),ii}gte(e,t){return this.setLimit("min",e,!0,E.toString(t))}gt(e,t){return this.setLimit("min",e,!1,E.toString(t))}lte(e,t){return this.setLimit("max",e,!0,E.toString(t))}lt(e,t){return this.setLimit("max",e,!1,E.toString(t))}setLimit(e,t,n,r){return new iN({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:E.toString(r)}]})}_addCheck(e){return new iN({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:E.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:E.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:E.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:E.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:E.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}iN.create=e=>new iN({checks:[],typeName:A.ZodBigInt,coerce:e?.coerce??!1,...ih(e)});class iP extends im{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==r4.boolean){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.boolean,received:t.parsedType}),ii}return io(e.data)}}iP.create=e=>new iP({typeName:A.ZodBoolean,coerce:e?.coerce||!1,...ih(e)});class ij extends im{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==r4.date){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.date,received:t.parsedType}),ii}if(Number.isNaN(e.data.getTime()))return it(this._getOrReturnCtx(e),{code:r9.invalid_date}),ii;let n=new ir;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(it(t=this._getOrReturnCtx(e,t),{code:r9.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):w.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ij({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:E.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:E.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ij.create=e=>new ij({checks:[],coerce:e?.coerce||!1,typeName:A.ZodDate,...ih(e)});class iR extends im{_parse(e){if(this._getType(e)!==r4.symbol){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.symbol,received:t.parsedType}),ii}return io(e.data)}}iR.create=e=>new iR({typeName:A.ZodSymbol,...ih(e)});class iz extends im{_parse(e){if(this._getType(e)!==r4.undefined){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.undefined,received:t.parsedType}),ii}return io(e.data)}}iz.create=e=>new iz({typeName:A.ZodUndefined,...ih(e)});class iB extends im{_parse(e){if(this._getType(e)!==r4.null){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.null,received:t.parsedType}),ii}return io(e.data)}}iB.create=e=>new iB({typeName:A.ZodNull,...ih(e)});class iH extends im{constructor(){super(...arguments),this._any=!0}_parse(e){return io(e.data)}}iH.create=e=>new iH({typeName:A.ZodAny,...ih(e)});class iZ extends im{constructor(){super(...arguments),this._unknown=!0}_parse(e){return io(e.data)}}iZ.create=e=>new iZ({typeName:A.ZodUnknown,...ih(e)});class i$ extends im{_parse(e){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.never,received:t.parsedType}),ii}}i$.create=e=>new i$({typeName:A.ZodNever,...ih(e)});class iq extends im{_parse(e){if(this._getType(e)!==r4.undefined){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.void,received:t.parsedType}),ii}return io(e.data)}}iq.create=e=>new iq({typeName:A.ZodVoid,...ih(e)});class iU extends im{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==r4.array)return it(t,{code:r9.invalid_type,expected:r4.array,received:t.parsedType}),ii;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(it(t,{code:e?r9.too_big:r9.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(it(t,{code:r9.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(it(t,{code:r9.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new id(t,e,t.path,n)))).then(e=>ir.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new id(t,e,t.path,n)));return ir.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new iU({...this._def,minLength:{value:e,message:E.toString(t)}})}max(e,t){return new iU({...this._def,maxLength:{value:e,message:E.toString(t)}})}length(e,t){return new iU({...this._def,exactLength:{value:e,message:E.toString(t)}})}nonempty(e){return this.min(1,e)}}iU.create=(e,t)=>new iU({type:e,minLength:null,maxLength:null,exactLength:null,typeName:A.ZodArray,...ih(t)});class iV extends im{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=w.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==r4.object){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.object,received:t.parsedType}),ii}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof i$&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new id(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof i$){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(it(n,{code:r9.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new id(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>ir.mergeObjectSync(t,e)):ir.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return E.errToObj,new iV({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:E.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new iV({...this._def,unknownKeys:"strip"})}passthrough(){return new iV({...this._def,unknownKeys:"passthrough"})}extend(e){return new iV({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new iV({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:A.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new iV({...this._def,catchall:e})}pick(e){let t={};for(let n of w.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new iV({...this._def,shape:()=>t})}omit(e){let t={};for(let n of w.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new iV({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof iV){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=i7.create(e(i))}return new iV({...t._def,shape:()=>n})}return t instanceof iU?new iU({...t._def,type:e(t.element)}):t instanceof i7?i7.create(e(t.unwrap())):t instanceof ae?ae.create(e(t.unwrap())):t instanceof iG?iG.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};for(let n of w.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new iV({...this._def,shape:()=>t})}required(e){let t={};for(let n of w.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof i7;)e=e._def.innerType;t[n]=e}return new iV({...this._def,shape:()=>t})}keyof(){return i5(w.objectKeys(this.shape))}}iV.create=(e,t)=>
3new iV({shape:()=>e,unknownKeys:"strip",catchall:i$.create(),typeName:A.ZodObject,...ih(t)}),iV.strictCreate=(e,t)=>new iV({shape:()=>e,unknownKeys:"strict",catchall:i$.create(),typeName:A.ZodObject,...ih(t)}),iV.lazycreate=(e,t)=>new iV({shape:e,unknownKeys:"strip",catchall:i$.create(),typeName:A.ZodObject,...ih(t)});class iW extends im{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new r8(e.ctx.common.issues));return it(t,{code:r9.invalid_union,unionErrors:n}),ii});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new r8(e));return it(t,{code:r9.invalid_union,unionErrors:i}),ii}}get options(){return this._def.options}}iW.create=(e,t)=>new iW({options:e,typeName:A.ZodUnion,...ih(t)});let iK=e=>{if(e instanceof i2)return iK(e.schema);if(e instanceof i8)return iK(e.innerType());if(e instanceof i3)return[e.value];if(e instanceof i4)return e.options;if(e instanceof i6)return w.objectValues(e.enum);if(e instanceof at)return iK(e._def.innerType);if(e instanceof iz)return[void 0];else if(e instanceof iB)return[null];else if(e instanceof i7)return[void 0,...iK(e.unwrap())];else if(e instanceof ae)return[null,...iK(e.unwrap())];else if(e instanceof ai)return iK(e.unwrap());else if(e instanceof ao)return iK(e.unwrap());else if(e instanceof an)return iK(e._def.innerType);else return[]};class iY extends im{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r4.object)return it(t,{code:r9.invalid_type,expected:r4.object,received:t.parsedType}),ii;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(it(t,{code:r9.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ii)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=iK(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new iY({typeName:A.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ih(n)})}}class iJ extends im{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(is(e)||is(r))return ii;let i=function e(t,n){let r=r6(t),i=r6(n);if(t===n)return{valid:!0,data:t};if(r===r4.object&&i===r4.object){let r=w.objectKeys(n),i=w.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===r4.array&&i===r4.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===r4.date&&i===r4.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return i.valid?((il(e)||il(r))&&t.dirty(),{status:t.value,value:i.data}):(it(n,{code:r9.invalid_intersection_types}),ii)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}
3iJ.create=(e,t,n)=>new iJ({left:e,right:t,typeName:A.ZodIntersection,...ih(n)});class iG extends im{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r4.array)return it(n,{code:r9.invalid_type,expected:r4.array,received:n.parsedType}),ii;if(n.data.length<this._def.items.length)return it(n,{code:r9.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ii;!this._def.rest&&n.data.length>this._def.items.length&&(it(n,{code:r9.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new id(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>ir.mergeArray(t,e)):ir.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new iG({...this._def,rest:e})}}iG.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new iG({items:e,typeName:A.ZodTuple,rest:null,...ih(t)})};class iX extends im{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r4.object)return it(n,{code:r9.invalid_type,expected:r4.object,received:n.parsedType}),ii;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new id(n,e,n.path,e)),value:a._parse(new id(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?ir.mergeObjectAsync(t,r):ir.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new iX(t instanceof im?{keyType:e,valueType:t,typeName:A.ZodRecord,...ih(n)}:{keyType:iF.create(),valueType:e,typeName:A.ZodRecord,...ih(t)})}}class iQ extends im{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r4.map)return it(n,{code:r9.invalid_type,expected:r4.map,received:n.parsedType}),ii;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new id(n,e,n.path,[a,"key"])),value:i._parse(new id(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return ii;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return ii;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}iQ.create=(e,t,n)=>new iQ({valueType:t,keyType:e,typeName:A.ZodMap,...ih(n)});class i0 extends im{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r4.set)return it(n,{code:r9.invalid_type,expected:r4.set,received:n.parsedType}),ii;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(it(n,{code:r9.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(it(n,{code:r9.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return ii;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new id(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new i0({...this._def,minSize:{value:e,message:E.toString(t)}})}max(e,t){return new i0({...this._def,maxSize:{value:e,message:E.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}i0.create=(e,t)=>new i0({valueType:e,minSize:null,maxSize:null,typeName:A.ZodSet,...ih(t)});class i1 extends im{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);
3if(t.parsedType!==r4.function)return it(t,{code:r9.invalid_type,expected:r4.function,received:t.parsedType}),ii;function n(e,n){return ie({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r7,r7].filter(e=>!!e),issueData:{code:r9.invalid_arguments,argumentsError:n}})}function r(e,n){return ie({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r7,r7].filter(e=>!!e),issueData:{code:r9.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof i9){let e=this;return io(async function(...t){let o=new r8([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return io(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new r8([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new r8([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new i1({...this._def,args:iG.create(e).rest(iZ.create())})}returns(e){return new i1({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new i1({args:e||iG.create([]).rest(iZ.create()),returns:t||iZ.create(),typeName:A.ZodFunction,...ih(n)})}}class i2 extends im{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}i2.create=(e,t)=>new i2({getter:e,typeName:A.ZodLazy,...ih(t)});class i3 extends im{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return it(t,{received:t.data,code:r9.invalid_literal,expected:this._def.value}),ii}return{status:"valid",value:e.data}}get value(){return this._def.value}}function i5(e,t){return new i4({values:e,typeName:A.ZodEnum,...ih(t)})}i3.create=(e,t)=>new i3({value:e,typeName:A.ZodLiteral,...ih(t)});class i4 extends im{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return it(t,{expected:w.joinValues(n),received:t.parsedType,code:r9.invalid_type}),ii}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return it(t,{received:t.data,code:r9.invalid_enum_value,options:n}),ii}return io(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return i4.create(e,{...this._def,...t})}exclude(e,t=this._def){return i4.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}i4.create=i5;class i6 extends im{_parse(e){let t=w.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r4.string&&n.parsedType!==r4.number){let e=w.objectValues(t);return it(n,{expected:w.joinValues(e),received:n.parsedType,code:r9.invalid_type}),ii}if(this._cache||(this._cache=new Set(w.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=w.objectValues(t);return it(n,{received:n.data,code:r9.invalid_enum_value,options:e}),ii}return io(e.data)}get enum(){return this._def.values}}i6.create=(e,t)=>new i6({values:e,typeName:A.ZodNativeEnum,...ih(t)});class i9 extends im{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==r4.promise&&!1===t.common.async?(it(t,{code:r9.invalid_type,expected:r4.promise,received:t.parsedType}),ii):io((t.parsedType===r4.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}i9.create=(e,t)=>new i9({type:e,typeName:A.ZodPromise,...ih(t)});class i8 extends im{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===A.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{it(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return ii;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?ii:"dirty"===r.status||"dirty"===t.value?ia(r.value):r});{if("aborted"===t.value)return ii;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?ii:"dirty"===r.status||"dirty"===t.value?ia(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?ii:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?ii:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>iu(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):ii);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!iu(e))return ii;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}w.assertNever(r)}}
3i8.create=(e,t,n)=>new i8({schema:e,typeName:A.ZodEffects,effect:t,...ih(n)}),i8.createWithPreprocess=(e,t,n)=>new i8({schema:t,effect:{type:"preprocess",transform:e},typeName:A.ZodEffects,...ih(n)});class i7 extends im{_parse(e){return this._getType(e)===r4.undefined?io(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}i7.create=(e,t)=>new i7({innerType:e,typeName:A.ZodOptional,...ih(t)});class ae extends im{_parse(e){return this._getType(e)===r4.null?io(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ae.create=(e,t)=>new ae({innerType:e,typeName:A.ZodNullable,...ih(t)});class at extends im{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r4.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}at.create=(e,t)=>new at({innerType:e,typeName:A.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ih(t)});class an extends im{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ic(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new r8(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new r8(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}an.create=(e,t)=>new an({innerType:e,typeName:A.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ih(t)});class ar extends im{_parse(e){if(this._getType(e)!==r4.nan){let t=this._getOrReturnCtx(e);return it(t,{code:r9.invalid_type,expected:r4.nan,received:t.parsedType}),ii}return{status:"valid",value:e.data}}}ar.create=e=>new ar({typeName:A.ZodNaN,...ih(e)}),Symbol("zod_brand");class ai extends im{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class aa extends im{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ii:"dirty"===e.status?(t.dirty(),ia(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ii:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new aa({in:e,out:t,typeName:A.ZodPipeline})}}class ao extends im{_parse(e){let t=this._def.innerType._parse(e),n=e=>(iu(e)&&(e.value=Object.freeze(e.value)),e);return ic(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}ao.create=(e,t)=>new ao({innerType:e,typeName:A.ZodReadonly,...ih(t)}),iV.lazycreate,(c=A||(A={})).ZodString="ZodString",c.ZodNumber="ZodNumber",c.ZodNaN="ZodNaN",c.ZodBigInt="ZodBigInt",c.ZodBoolean="ZodBoolean",c.ZodDate="ZodDate",c.ZodSymbol="ZodSymbol",c.ZodUndefined="ZodUndefined",c.ZodNull="ZodNull",c.ZodAny="ZodAny",c.ZodUnknown="ZodUnknown",c.ZodNever="ZodNever",c.ZodVoid="ZodVoid",c.ZodArray="ZodArray",c.ZodObject="ZodObject",c.ZodUnion="ZodUnion",c.ZodDiscriminatedUnion="ZodDiscriminatedUnion",c.ZodIntersection="ZodIntersection",c.ZodTuple="ZodTuple",c.ZodRecord="ZodRecord",c.ZodMap="ZodMap",c.ZodSet="ZodSet",c.ZodFunction="ZodFunction",c.ZodLazy="ZodLazy",c.ZodLiteral="ZodLiteral",c.ZodEnum="ZodEnum",c.ZodEffects="ZodEffects",c.ZodNativeEnum="ZodNativeEnum",c.ZodOptional="ZodOptional",c.ZodNullable="ZodNullable",c.ZodDefault="ZodDefault",c.ZodCatch="ZodCatch",c.ZodPromise="ZodPromise",c.ZodBranded="ZodBranded",c.ZodPipeline="ZodPipeline",c.ZodReadonly="ZodReadonly";let as=iF.create;iL.create,ar.create,iN.create,iP.create,ij.create,iR.create,iz.create,iB.create;let al=iH.create;iZ.create,i$.create,iq.create;let au=iU.create,ac=iV.create;iV.strictCreate;let ad=iW.create;iY.create,iJ.create,iG.create;let ap=iX.create;iQ.create,i0.create,i1.create,i2.create;let af=i3.create;i4.create,i6.create,i9.create,i8.create,i7.create,ae.create,i8.createWithPreprocess,aa.create;let ah=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function am(e){if("openAi"!==e.target)return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:"relative"===e.$refStrategy?ah(t,e.currentPath):t.join("/")}}function ag(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}
3function ay(e,t,n,r,i){e[t]=n,ag(e,t,r,i)}function av(e,t){return aP(e.type._def,t)}let ab=(e,t)=>aP(e.innerType._def,t),ak=(e,t)=>{let n={type:"integer",format:"unix-time"};if("openApi3"===t.target)return n;for(let r of e.checks)switch(r.kind){case"min":ay(n,"minimum",r.value,r.message,t);break;case"max":ay(n,"maximum",r.value,r.message,t)}return n},ax=e=>(!("type"in e)||"string"!==e.type)&&"allOf"in e,a_={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===o&&(o=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),o),ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function aw(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":ay(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t);break;case"max":ay(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"email":switch(t.emailStrategy){case"format:email":aA(n,"email",r.message,t);break;case"format:idn-email":aA(n,"idn-email",r.message,t);break;case"pattern:zod":aS(n,a_.email,r.message,t)}break;case"url":aA(n,"uri",r.message,t);break;case"uuid":aA(n,"uuid",r.message,t);break;case"regex":aS(n,r.regex,r.message,t);break;case"cuid":aS(n,a_.cuid,r.message,t);break;case"cuid2":aS(n,a_.cuid2,r.message,t);break;case"startsWith":aS(n,RegExp(`^${aC(r.value,t)}`),r.message,t);break;case"endsWith":aS(n,RegExp(`${aC(r.value,t)}$`),r.message,t);break;case"datetime":aA(n,"date-time",r.message,t);break;case"date":aA(n,"date",r.message,t);break;case"time":aA(n,"time",r.message,t);break;case"duration":aA(n,"duration",r.message,t);break;case"length":ay(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t),ay(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"includes":aS(n,RegExp(aC(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&aA(n,"ipv4",r.message,t),"v4"!==r.version&&aA(n,"ipv6",r.message,t);break;case"base64url":aS(n,a_.base64url,r.message,t);break;case"jwt":aS(n,a_.jwt,r.message,t);break;case"cidr":"v6"!==r.version&&aS(n,a_.ipv4Cidr,r.message,t),"v4"!==r.version&&aS(n,a_.ipv6Cidr,r.message,t);break;case"emoji":aS(n,a_.emoji(),r.message,t);break;case"ulid":aS(n,a_.ulid,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":aA(n,"binary",r.message,t);break;case"contentEncoding:base64":ay(n,"contentEncoding","base64",r.message,t);break;case"pattern:zod":aS(n,a_.base64,r.message,t)}break;case"nanoid":aS(n,a_.nanoid,r.message,t)}return n}function aC(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)aE.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}let aE=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function aA(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):ay(e,"format",t,n,r)}function aS(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:aT(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):ay(e,"pattern",aT(t,r),n,r)}
3function aT(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",a=!1,o=!1,s=!1;for(let e=0;e<r.length;e++){if(a){i+=r[e],a=!1;continue}if(n.i){if(o){if(r[e].match(/[a-z]/)){s?(i+=r[e]+`${r[e-2]}-${r[e]}`.toUpperCase(),s=!1):"-"===r[e+1]&&r[e+2]?.match(/[a-z]/)?(i+=r[e],s=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if("^"===r[e]){i+=`(^|(?<=[\r
4]))`;continue}if("$"===r[e]){i+=`($|(?=[\r
5]))`;continue}}if(n.s&&"."===r[e]){i+=o?`${r[e]}\r
6`:`[${r[e]}\r
7]`;continue}i+=r[e],"\\"===r[e]?a=!0:o&&"]"===r[e]?o=!1:o||"["!==r[e]||(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function aD(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===A.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:aP(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??am(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:"object",additionalProperties:aP(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===A.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=aw(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===A.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===A.ZodBranded&&e.keyType._def.type._def.typeName===A.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=av(e.keyType._def,t);return{...n,propertyNames:i}}return n}let aI={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},aO=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>aP(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0},aM=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return aP(e.innerType._def,t);let n=aP(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:am(t)},n]}:am(t)},aF=(e,t)=>{if("input"===t.pipeStrategy)return aP(e.in._def,t);if("output"===t.pipeStrategy)return aP(e.out._def,t);let n=aP(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),r=aP(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,r].filter(e=>void 0!==e)}},aL=(e,t)=>aP(e.innerType._def,t),aN=(e,t,n)=>{switch(t){case A.ZodString:return aw(e,n);case A.ZodNumber:return function(e,t){let n={type:"number"};if(!e.checks)return n;for(let r of e.checks)switch(r.kind){case"int":n.type="integer",ag(n,"type",r.message,t);break;case"min":"jsonSchema7"===t.target?r.inclusive?ay(n,"minimum",r.value,r.message,t):ay(n,"exclusiveMinimum",r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),ay(n,"minimum",r.value,r.message,t));break;case"max":"jsonSchema7"===t.target?r.inclusive?ay(n,"maximum",r.value,r.message,t):ay(n,"exclusiveMaximum",r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),ay(n,"maximum",r.value,r.message,t));break;case"multipleOf":ay(n,"multipleOf",r.value,r.message,t)}return n}(e,n);case A.ZodObject:return function(e,t){let n="openAi"===t.target,r={type:"object",properties:{}},i=[],a=e.shape();for(let e in a){let o=a[e];if(void 0===o||void 0===o._def)continue;let s=function(e){try{return e.isOptional()}catch{return!0}}(o);s&&n&&("ZodOptional"===o._def.typeName&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);let l=aP(o._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(r.properties[e]=l,s||i.push(e))}i.length&&(r.required=i);let o=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return aP(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==o&&(r.additionalProperties=o),r}(e,n);case A.ZodBigInt:return function(e,t){let n={type:"integer",format:"int64"};if(!e.checks)return n;for(let r of e.checks)switch(r.kind){case"min":"jsonSchema7"===t.target?r.inclusive?ay(n,"minimum",r.value,r.message,t):ay(n,"exclusiveMinimum",r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),ay(n,"minimum",r.value,r.message,t));break;case"max":"jsonSchema7"===t.target?r.inclusive?ay(n,"maximum",r.value,r.message,t):ay(n,"exclusiveMaximum",r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),ay(n,"maximum",r.value,r.message,t));break;case"multipleOf":ay(n,"multipleOf",r.value,r.message,t)}return n}
7(e,n);case A.ZodBoolean:return{type:"boolean"};case A.ZodDate:return function e(t,n,r){let i=r??n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((r,i)=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ak(t,n)}}(e,n);case A.ZodUndefined:return{not:am(n)};case A.ZodNull:return"openApi3"===n.target?{enum:["null"],nullable:!0}:{type:"null"};case A.ZodArray:return function(e,t){let n={type:"array"};return e.type?._def&&e.type?._def?.typeName!==A.ZodAny&&(n.items=aP(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&ay(n,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&ay(n,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(ay(n,"minItems",e.exactLength.value,e.exactLength.message,t),ay(n,"maxItems",e.exactLength.value,e.exactLength.message,t)),n}(e,n);case A.ZodUnion:case A.ZodDiscriminatedUnion:return function(e,t){if("openApi3"===t.target)return aO(e,t);let n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(e=>e._def.typeName in aI&&(!e._def.checks||!e._def.checks.length))){let e=n.reduce((e,t)=>{let n=aI[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(n.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=n.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===n.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:n.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(n.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:n.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return aO(e,t)}(e,n);case A.ZodIntersection:return function(e,t){let n=[aP(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),aP(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(e=>!!e),r="jsonSchema2019-09"===t.target?{unevaluatedProperties:!1}:void 0,i=[];return n.forEach(e=>{if(ax(e))i.push(...e.allOf),void 0===e.unevaluatedProperties&&(r=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}else r=void 0;i.push(t)}}),i.length?{allOf:i,...r}:void 0}(e,n);case A.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>aP(e._def,{...n,currentPath:[...n.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:aP(e.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>aP(e._def,{...n,currentPath:[...n.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case A.ZodRecord:return aD(e,n);case A.ZodLiteral:return function(e,t){let n=typeof e.value;return"bigint"!==n&&"number"!==n&&"boolean"!==n&&"string"!==n?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===n?"integer":n,enum:[e.value]}:{type:"bigint"===n?"integer":n,const:e.value}}(e,n);case A.ZodEnum:return{type:"string",enum:Array.from(e.values)};case A.ZodNativeEnum:return function(e){let t=e.values,n=Object.keys(e.values).filter(e=>"number"!=typeof t[t[e]]).map(e=>t[e]),r=Array.from(new Set(n.map(e=>typeof e)));return{type:1===r.length?"string"===r[0]?"string":"number":["string","number"],enum:n}}(e);case A.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:aI[e.innerType._def.typeName],nullable:!0}:{type:[aI[e.innerType._def.typeName],"null"]};if("openApi3"===t.target){let n=aP(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let n=aP(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});
7return n&&{anyOf:[n,{type:"null"}]}}(e,n);case A.ZodOptional:return aM(e,n);case A.ZodMap:return"record"===n.mapStrategy?aD(e,n):{type:"array",maxItems:125,items:{type:"array",items:[aP(e.keyType._def,{...n,currentPath:[...n.currentPath,"items","items","0"]})||am(n),aP(e.valueType._def,{...n,currentPath:[...n.currentPath,"items","items","1"]})||am(n)],minItems:2,maxItems:2}};case A.ZodSet:return function(e,t){let n={type:"array",uniqueItems:!0,items:aP(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&ay(n,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&ay(n,"maxItems",e.maxSize.value,e.maxSize.message,t),n}(e,n);case A.ZodLazy:return()=>e.getter()._def;case A.ZodPromise:return aP(e.type._def,n);case A.ZodNaN:case A.ZodNever:return"openAi"===n.target?void 0:{not:am({...n,currentPath:[...n.currentPath,"not"]})};case A.ZodEffects:return"input"===n.effectStrategy?aP(e.schema._def,n):am(n);case A.ZodAny:case A.ZodUnknown:return am(n);case A.ZodDefault:return{...aP(e.innerType._def,n),default:e.defaultValue()};case A.ZodBranded:return av(e,n);case A.ZodReadonly:return aL(e,n);case A.ZodCatch:return ab(e,n);case A.ZodPipeline:return aF(e,n);case A.ZodFunction:case A.ZodVoid:case A.ZodSymbol:default:return}};function aP(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.(e,t,r,n);if(i!==r1)return i}if(r&&!n){let e=aj(r,t);if(void 0!==e)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=aN(e,e.typeName,t),o="function"==typeof a?aP(a(),t):a;if(o&&aR(e,t,o),t.postProcess){let n=t.postProcess(o,e,t);return i.jsonSchema=o,n}return i.jsonSchema=o,o}let aj=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ah(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),am(t);return"seen"===t.$refStrategy?am(t):void 0}},aR=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n);var az=(e,t)=>{let n=r5(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:aP(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??am(n)}),{}):void 0,i="string"==typeof t?t:t?.nameStrategy==="title"?void 0:t?.name,a=aP(e._def,void 0===i?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??am(n),o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||(r={}),r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));let s=void 0===i?r?{...a,[n.definitionPath]:r}:a:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,i].join("/"),[n.definitionPath]:{...r,[i]:a}};return"jsonSchema7"===n.target?s.$schema="http://json-schema.org/draft-07/schema#":("jsonSchema2019-09"===n.target||"openAi"===n.target)&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s},aB={code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},aH={code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},aZ={code:"4",name:"assistant_message",parse:e=>{if(null==e||"object"!=typeof e||!("id"in e)||!("role"in e)||!("content"in e)||"string"!=typeof e.id||"string"!=typeof e.role||"assistant"!==e.role||!Array.isArray(e.content)||!e.content.every(e=>null!=e&&"object"==typeof e&&"type"in e&&"text"===e.type&&"text"in e&&null!=e.text&&"object"==typeof e.text&&"value"in e.text&&"string"==typeof e.text.value))throw Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},a$={code:"5",name:"assistant_control_data",parse:e=>{if(null==e||"object"!=typeof e||!("threadId"in e)||!("messageId"in e)||"string"!=typeof e.threadId||"string"!=typeof e.messageId)throw Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},aq={code:"6",name:"data_message",parse:e=>{if(null==e||"object"!=typeof e||!("role"in e)||!("data"in e)||"string"!=typeof e.role||"data"!==e.role)throw Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}};aB.code,aH.code,aZ.code,a$.code,aq.code,aB.name,aB.code,aH.name,aH.code,aZ.name,aZ.code,a$.name,a$.code,aq.name,aq.code,[aB,aH,aZ,a$,aq].map(e=>e.code);var aU=[{code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},{code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw Error('"data" parts expect an array value.');return{type:"data",value:e}}},{code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},{code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},{code:"9",name:"tool_call",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName||!("args"in e)||"object"!=typeof e.args)throw Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},{code:"a",name:"tool_result",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("result"in e))throw Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},{code:"b",name:"tool_call_streaming_start",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName)throw Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},{code:"c",name:"tool_call_delta",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("argsTextDelta"in e)||"string"!=typeof e.argsTextDelta)throw Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},{code:"d",name:"finish_message",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_message" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}}
7,{code:"e",name:"finish_step",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_step" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&"boolean"==typeof e.isContinued&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},{code:"f",name:"start_step",parse:e=>{if(null==e||"object"!=typeof e||!("messageId"in e)||"string"!=typeof e.messageId)throw Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},{code:"g",name:"reasoning",parse:e=>{if("string"!=typeof e)throw Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},{code:"h",name:"source",parse:e=>{if(null==e||"object"!=typeof e)throw Error('"source" parts expect a Source object.');return{type:"source",value:e}}},{code:"i",name:"redacted_reasoning",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data)throw Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},{code:"j",name:"reasoning_signature",parse:e=>{if(null==e||"object"!=typeof e||!("signature"in e)||"string"!=typeof e.signature)throw Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},{code:"k",name:"file",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data||!("mimeType"in e)||"string"!=typeof e.mimeType)throw Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}}];Object.fromEntries(aU.map(e=>[e.code,e])),Object.fromEntries(aU.map(e=>[e.name,e.code])),aU.map(e=>e.code);var aV=Symbol.for("vercel.ai.schema"),aW=n(67399),aK=Object.prototype.hasOwnProperty;let aY=new WeakMap,aJ=()=>{},aG=aJ(),aX=Object,aQ=e=>e===aG,a0=e=>"function"==typeof e,a1=(e,t)=>({...e,...t}),a2=e=>a0(e.then),a3={},a5={},a4="undefined",a6=typeof window!=a4,a9=typeof document!=a4,a8=a6&&"Deno"in window,a7=()=>a6&&typeof window.requestAnimationFrame!=a4,oe=(e,t)=>{let n=aY.get(e);return[()=>!aQ(t)&&e.get(t)||a3,r=>{if(!aQ(t)){let i=e.get(t);t in a5||(a5[t]=i),n[5](t,a1(i,r),i||a3)}},n[6],()=>!aQ(t)&&t in a5?a5[t]:!aQ(t)&&e.get(t)||a3]},ot=!0,[on,or]=a6&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[aJ,aJ],oi={initFocus:e=>(a9&&document.addEventListener("visibilitychange",e),on("focus",e),()=>{a9&&document.removeEventListener("visibilitychange",e),or("focus",e)}),initReconnect:e=>{let t=()=>{ot=!0,e()},n=()=>{ot=!1};
7return on("online",t),on("offline",n),()=>{or("online",t),or("offline",n)}}},oa=!V.useId,oo=!a6||a8,os=e=>a7()?window.requestAnimationFrame(e):setTimeout(e,1),ol=oo?V.useEffect:V.useLayoutEffect,ou="undefined"!=typeof navigator&&navigator.connection,oc=!oo&&ou&&(["slow-2g","2g"].includes(ou.effectiveType)||ou.saveData),od=new WeakMap,op=e=>aX.prototype.toString.call(e),of=(e,t)=>e==="[object ".concat(t,"]"),oh=0,om=e=>{let t,n;let r=typeof e,i=op(e),a=of(i,"Date"),o=of(i,"RegExp"),s=of(i,"Object");if(aX(e)!==e||a||o)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=od.get(e))return t;if(t=++oh+"~",od.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=om(e[n])+",";od.set(e,t)}if(s){t="#";let r=aX.keys(e).sort();for(;!aQ(n=r.pop());)aQ(e[n])||(t+=n+":"+om(e[n])+",");od.set(e,t)}}return t},og=e=>{if(a0(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?om(e):"",t]},oy=0,ov=()=>++oy;async function ob(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,a,o]=t,s=a1({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),l=s.populateCache,u=s.rollbackOnError,c=s.optimisticData,d=e=>"function"==typeof u?u(e):!1!==u,p=s.throwOnError;if(a0(i)){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&i(r.get(t)._k)&&e.push(t);return Promise.all(e.map(f))}return f(i);async function f(e){let n;let[i]=og(e);if(!i)return;let[o,u]=oe(r,i),[f,h,m,g]=aY.get(r),y=()=>{let t=f[i];return(a0(s.revalidate)?s.revalidate(o().data,e):!1!==s.revalidate)&&(delete m[i],delete g[i],t&&t[0])?t[0](2).then(()=>o().data):o().data};if(t.length<3)return y();let v=a,b=!1,k=ov();h[i]=[k,0];let x=!aQ(c),_=o(),w=_.data,C=_._c,E=aQ(C)?w:C;if(x&&u({data:c=a0(c)?c(E,w):c,_c:E}),a0(v))try{v=v(E)}catch(e){n=e,b=!0}if(v&&a2(v)){if(v=await v.catch(e=>{n=e,b=!0}
7),k!==h[i][0]){if(b)throw n;return v}b&&x&&d(n)&&(l=!0,u({data:E,_c:aG}))}if(l&&!b&&(a0(l)?u({data:l(v,E),error:aG,_c:aG}):u({data:v,error:aG,_c:aG})),h[i][1]=ov(),Promise.resolve(y()).then(()=>{u({_c:aG})}),b){if(p)throw n;return}return v}}let ok=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},ox=(e,t)=>{if(!aY.has(e)){let n=a1(oi,t),r=Object.create(null),i=ob.bind(aG,e),a=aJ,o=Object.create(null),s=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!aY.has(e)&&(aY.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!oo)){let t=n.initFocus(setTimeout.bind(aG,ok.bind(aG,r,0))),i=n.initReconnect(setTimeout.bind(aG,ok.bind(aG,r,1)));a=()=>{t&&t(),i&&i(),aY.delete(e)}}};return u(),[e,i,u,a]}return[e,aY.get(e)[4]]},[o_,ow]=ox(new Map),oC=a1({onLoadingSlow:aJ,onSuccess:aJ,onError:aJ,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(aQ(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:aJ,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:oc?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:oc?5e3:3e3,compare:function e(t,n){var r,i;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((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(aK.call(t,r)&&++i&&!aK.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:o_,mutate:ow,fallback:{}},{isOnline:()=>ot,isVisible:()=>{let e=a9&&document.visibilityState;return aQ(e)||"hidden"!==e}}),oE=(e,t)=>{let n=a1(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=a1(i,o))}return n},oA=(0,V.createContext)({}),oS=a6&&window.__SWR_DEVTOOLS_USE__,oT=oS?window.__SWR_DEVTOOLS_USE__:[],oD=e=>a0(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],oI=()=>a1(oC,(0,V.useContext)(oA)),oO=oT.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=og(t),[,,,i]=aY.get(o_);if(r.startsWith("$inf$"))return n(...e);let a=i[r];return aQ(a)?n(...e):(delete i[r],a)});return e(t,i,r)}),oM=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};oS&&(window.__SWR_DEVTOOLS_REACT__=V);let oF=()=>{};oF(),new WeakMap;let oL=V.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}}),oN={dedupe:!0};aX.defineProperty(e=>{let{value:t}=e,n=(0,V.useContext)(oA),r=a0(t),i=(0,V.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,V.useMemo)(()=>r?i:oE(n,i),[r,n,i]),o=i&&i.provider,s=(0,V.useRef)(aG);o&&!s.current&&(s.current=ox(o(a.cache||o_),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),ol(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,V.createElement)(oA.Provider,a1(e,{value:a}))},"defaultValue",{value:oC});let oP=(s=(e,t,n)=>{let{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:p}=n,[f,h,m,g]=aY.get(r),[y,v]=og(e),b=(0,V.useRef)(!1),k=(0,V.useRef)(!1),x=(0,V.useRef)(y),_=(0,V.useRef)(t),w=(0,V.useRef)(n),C=()=>w.current,E=()=>C().isVisible()&&C().isOnline(),[A,S,T,D]=oe(r,y),I=(0,V.useRef)({}).current,O=aQ(o)?aQ(n.fallback)?aG:n.fallback[y]:o,M=(e,t)=>{for(let n in I)if("data"===n){if(!i(e[n],t[n])&&(!aQ(e[n])||!i(H,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},F=(0,V.useMemo)(()=>{let e=!!y&&!!t&&(aQ(s)?!C().isPaused()&&!a&&!1!==l:s),n=t=>{let n=a1(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=A(),i=D(),o=n(r),u=r===i?o:n(i),c=o;return[()=>{let e=n(A());return M(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[r,y]),L=(0,aW.useSyncExternalStore)((0,V.useCallback)(e=>T(y,(t,n)=>{M(n,t)||e()}),[r,y]),F[0],F[1]),N=!b.current,P=f[y]&&f[y].length>0,j=L.data,R=aQ(j)?O&&a2(O)?oL(O):O:j,z=L.error,B=(0,V.useRef)(R),H=p?aQ(j)?aQ(B.current)?R:B.current:j:R,Z=(!P||!!aQ(z))&&(N&&!aQ(s)?s:!C().isPaused()&&(a?!aQ(R)&&l:aQ(R)||l)),$=!!(y&&t&&N&&Z),q=aQ(L.isValidating)?$:L.isValidating,U=aQ(L.isLoading)?$:L.isLoading,W=(0,V.useCallback)(async e=>{let t,r;let a=_.current;if(!y||!a||k.current||C().isPaused())return!1;let o=!0,s=e||{},l=!m[y]||!s.dedupe,u=()=>oa?!k.current&&y===x.current&&b.current:y===x.current,c={isValidating:!1,isLoading:!1},d=()=>{S(c)},p=()=>{let e=m[y];e&&e[1]===r&&delete m[y]},g={isValidating:!0};aQ(A().data)&&(g.isLoading=!0);try{if(l&&(S(g),n.loadingTimeout&&aQ(A().data)&&setTimeout(()=>{o&&u()&&C().onLoadingSlow(y,n)},n.loadingTimeout),m[y]=[a(v),ov()]),[t,r]=m[y],t=await t,l&&setTimeout(p,n.dedupingInterval),!m[y]||m[y][1]!==r)return l&&u()&&C().onDiscarded(y),!1;c.error=aG;let e=h[y];if(!aQ(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),l&&u()&&C().onDiscarded(y),!1;let s=A().data;
7c.data=i(s,t)?s:t,l&&u()&&C().onSuccess(t,y,n)}catch(n){p();let e=C(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,l&&u()&&(e.onError(n,y,e),(!0===t||a0(t)&&t(n))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||E())&&e.onErrorRetry(n,y,e,e=>{let t=f[y];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[y,r]),K=(0,V.useCallback)((...e)=>ob(r,x.current,...e),[]);if(ol(()=>{_.current=t,w.current=n,aQ(j)||(B.current=j)}),ol(()=>{if(!y)return;let e=W.bind(aG,oN),t=0;C().revalidateOnFocus&&(t=Date.now()+C().focusThrottleInterval);let n=oM(y,f,(n,r={})=>{if(0==n){let n=Date.now();C().revalidateOnFocus&&n>t&&E()&&(t=n+C().focusThrottleInterval,e())}else if(1==n)C().revalidateOnReconnect&&E()&&e();else if(2==n)return W();else if(3==n)return W(r)});return k.current=!1,x.current=y,b.current=!0,S({_k:v}),Z&&!m[y]&&(aQ(R)||oo?e():os(e)),()=>{k.current=!0,n()}},[y]),ol(()=>{let e;function t(){let t=a0(u)?u(A().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!A().error&&(c||C().isVisible())&&(d||C().isOnline())?W(oN).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,y]),(0,V.useDebugValue)(H),a&&aQ(R)&&y){if(!oa&&oo)throw Error("Fallback data is required when using Suspense in SSR.");_.current=t,w.current=n,k.current=!1;let e=g[y];if(aQ(e)||oL(K(e)),aQ(z)){let e=W(oN);aQ(H)||(e.status="fulfilled",e.value=!0),oL(e)}else throw z}return{mutate:K,get data(){return I.data=!0,H},get error(){return I.error=!0,z},get isValidating(){return I.isValidating=!0,q},get isLoading(){return I.isLoading=!0,U}}},function(...e){let t=oI(),[n,r,i]=oD(e),a=oE(t,i),o=s,{use:l}=a,u=(l||[]).concat(oO);for(let e=u.length;e--;)o=u[e](o);return o(n,r||a.fetcher||null,a)});var oj=()=>fetch,oR=function({api:e,id:t,schema:n,initialValue:r,fetch:i,onError:a,onFinish:o,headers:s,credentials:l}){let u=(0,V.useId)(),{data:c,mutate:d}=oP([e,null!=t?t:u],null,{fallbackData:r}),[p,f]=(0,V.useState)(void 0),[h,m]=(0,V.useState)(!1),g=(0,V.useRef)(null);return{submit:async t=>{var r;try{let a;d(void 0),m(!0),f(void 0);let u=new AbortController;g.current=u;let c=null!=i?i:oj(),p=await c(e,{method:"POST",headers:{"Content-Type":"application/json",...s},credentials:l,signal:u.signal,body:JSON.stringify(t)});if(!p.ok)throw Error(null!=(r=await p.text())?r:"Failed to fetch the response.");if(null==p.body)throw Error("The response body is empty.");let h="";await p.body.pipeThrough(new TextDecoderStream).pipeTo(new WritableStream({write(e){h+=e;let{value:t}=function(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=rX({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=rX({text:function(e){let t=["ROOT"],n=-1,r=null;function i(e,i,a){switch(e){case'"':n=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=i,r=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":n=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":n=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,r){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=r,t.pop()}}function o(e,r){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=r,t.pop()}}for(let s=0;s<e.length;s++){let l=e[s];switch(t[t.length-1]){case"ROOT":i(l,s,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":n=s,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,s,"INSIDE_OBJECT_AFTER_VALUE");break;
7case"INSIDE_OBJECT_AFTER_VALUE":a(l,s);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),n=s;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=s}break;case"INSIDE_ARRAY_START":"]"===l?(n=s,t.pop()):(n=s,i(l,s,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=s,t.pop();break;default:n=s}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,s,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),n=s;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=s;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(r,s+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?n=s:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,s):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s))}}}let s=e.slice(0,n+1);for(let n=t.length-1;n>=0;n--)switch(t[n]){case"INSIDE_STRING":s+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":s+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":s+="]";break;case"INSIDE_LITERAL":{let t=e.substring(r,e.length);"true".startsWith(t)?s+="true".slice(t.length):"false".startsWith(t)?s+="false".slice(t.length):"null".startsWith(t)&&(s+="null".slice(t.length))}}return s}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}(h);!function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if("object"!=typeof t&&"object"!=typeof n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(Array.isArray(t)){if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(let a of r)if(!i.includes(a)||!e(t[a],n[a]))return!1;return!0}(a,t)&&(a=t,d(t))},close(){if(m(!1),g.current=null,null!=o){let e=rG({value:a,schema:"object"==typeof n&&null!==n&&aV in n&&!0===n[aV]&&"jsonSchema"in n&&"validate"in n?n:function(e,{validate:t}={}){return{[aV]:!0,_type:void 0,[rJ]:!0,jsonSchema:e,validate:t}}(az(n,{$refStrategy:"none",target:"jsonSchema7"}),{validate:e=>{let t=n.safeParse(e);return t.success?{success:!0,value:t.data}:{success:!1,error:t.error}}})});o(e.success?{object:e.value,error:void 0}:{object:void 0,error:e.error})}}}))}catch(e){if(e instanceof Error&&("AbortError"===e.name||"TimeoutError"===e.name))return;a&&e instanceof Error&&a(e),m(!1),f(e instanceof Error?e:Error(String(e)))}},object:c,error:p,isLoading:h,stop:(0,V.useCallback)(()=>{var e;try{null==(e=g.current)||e.abort()}catch(e){}finally{m(!1),g.current=null}},[])}},oz=n(66410);let oB=ac({type:as(),attrs:ap(al()).optional()}),oH=ac({type:as(),attrs:ap(al()).optional()}),oZ=oH.extend({text:as(),marks:au(oB).optional()}),o$=oH.extend({content:au(ad([oZ,oH.extend({content:au(ad([oZ,oH])).optional()})])).optional()}),oq=ac({type:af("doc"),content:au(o$)});var oU=n(80083);let oV=(0,W.Z)("RefreshCcwDot",[["path",{d:"M3 2v6h6",key:"18ldww"}],["path",{d:"M21 12A9 9 0 0 0 6 5.3L3 8",key:"1pbrqz"}],["path",{d:"M21 22v-6h-6",key:"usdfbe"}],["path",{d:"M3 12a9 9 0 0 0 15 6.7l3-2.7",key:"1hosoe"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]),oW=(0,W.Z)("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),oK=(0,W.Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),oY=(0,W.Z)("WrapText",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]]),oJ=(0,W.Z)("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}
7],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),oG=(0,W.Z)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),oX=(0,W.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),oQ=(0,W.Z)("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]),o0=[{value:"ar",label:"Arabic",name:"arabic"},{value:"az",label:"Azerbaijani",name:"azerbaijani"},{value:"bs",label:"Balkan Bosnian",name:"balkan_bosnian"},{value:"hr",label:"Balkan Hrvatski",name:"balkan_hrvatski"},{value:"mk",label:"Balkan Macedonian",name:"balkan_macedonian"},{value:"sr",label:"Balkan Serbian",name:"balkan_serbian"},{value:"sq",label:"Balkan Albanian",name:"balkan_albanian"},{value:"bg",label:"Bulgarian",name:"bulgarian"},{value:"zh",label:"Chinese",name:"chinese"},{value:"da",label:"Danish",name:"danish"},{value:"fa-AF",label:"Dari",name:"dari"},{value:"nl",label:"Dutch",name:"dutch"},{value:"en",label:"English",name:"english"},{value:"es",label:"Espanyol",name:"espanyol"},{value:"fi",label:"Finnish",name:"finnish"},{value:"fr",label:"Fran\xe7ais",name:"francais"},{value:"ka",label:"Georgian",name:"georgian"},{value:"el",label:"Greek",name:"greek"},{value:"ha",label:"Afrika Hausa",name:"afrika_hausa"},{value:"he",label:"Hebrew",name:"hebrew"},{value:"hi",label:"Hindi",name:"hindi"},{value:"hu",label:"Hungarian",name:"hungarian"},{value:"id",label:"Bahasa Indonesia",name:"bahasa_indonesia"},{value:"it",label:"Italian",name:"italian"},{value:"ja",label:"Japanese",name:"japanese"},{value:"kk",label:"Kazakh",name:"kazakh"},{value:"ko",label:"Korean",name:"korean"},{value:"kir",label:"Kyrgyz",name:"kyrgyz"},{value:"ms",label:"Malay",name:"malay"},{value:"fa",label:"Farsi",name:"farsi"},{value:"pl",label:"Polish",name:"polish"},{value:"pt",label:"Portuguese",name:"portuguese"},{value:"ps",label:"Pashto",name:"pashto"},{value:"ro",label:"Romanian",name:"romanian"},{value:"ru",label:"Russian",name:"russian"},{value:"so",label:"Somali",name:"somali"},{value:"sv",label:"Swedish",name:"swedish"},{value:"tat",label:"Tatar",name:"tatar"},{value:"tuk",label:"Turkmen",name:"turkmen"},{value:"ur",label:"Urdu",name:"urdu"},{value:"uig",label:"Uyghur",name:"uyghur"},{value:"uz",label:"Uzbek",name:"uzbek"},{value:"hy",label:"Armenian",name:"armenian"},{value:"sw",label:"Afrika Swahili",name:"afrika_swahili"},{value:"pcm",label:"Nigerian Pidgin",name:"nigerian_pidgin"},{value:"no",label:"Norwegian",name:"norwegian"}];var o1=n(81341),o2=n(15935),o3=n(52067),o5=n(19045);let o4=V.forwardRef(({active:e,buttonSize:t="medium",children:n,disabled:r,variant:i="primary",className:a,activeClassname:o,...s},l)=>{let u=(0,o1.cn)("flex group items-center justify-center border border-transparent gap-2 text-base font-semibold rounded-md disabled:opacity-50 whitespace-nowrap","primary"===i&&(0,o1.cn)("text-white bg-black border-black dark:text-black dark:bg-white dark:border-white",!r&&!e&&"hover:bg-neutral-800 active:bg-neutral-900 dark:hover:bg-neutral-200 dark:active:bg-neutral-300",e&&(0,o1.cn)("bg-neutral-900 dark:bg-neutral-300",o)),"secondary"===i&&(0,o1.cn)("text-neutral-900 dark:text-white",!r&&!e&&"hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-900 dark:active:bg-neutral-800",e&&"bg-neutral-200 dark:bg-neutral-800"),"tertiary"===i&&(0,o1.cn)("bg-neutral-50 text-neutral-900 dark:bg-neutral-900 dark:text-white dark:border-neutral-900",!r&&!e&&"hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-800 dark:active:bg-neutral-700",e&&(0,o1.cn)("bg-neutral-200 dark:bg-neutral-800",o)),"ghost"===i&&(0,o1.cn)("bg-transparent border-transparent text-neutral-500 dark:text-neutral-400",!r&&!e&&"hover:bg-black/5 hover:text-neutral-700 active:bg-black/10 active:text-neutral-800 dark:hover:bg-white/10 dark:hover:text-neutral-300 dark:active:text-neutral-200",e&&(0,o1.cn)("bg-black/10 text-neutral-800 dark:bg-white/20 dark:text-neutral-200",o)),"medium"===t&&"py-2 px-3","small"===t&&"py-1 px-2","icon"===t&&"w-8 h-8","iconSmall"===t&&"w-6 h-6",a);return(0,U.jsx)("span",{type:"button",ref:l,className:u,...s,children:n})});o4.displayName="SpanButton";var o6=n(96419);function o9(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var o8="undefined"!=typeof window&&"undefined"!=typeof document;function o7(e,t){e&&("function"==typeof e&&e(t),({}).hasOwnProperty.call(e,"current")&&(e.current=t))}function se(){return o8&&document.createElement("div")}var st=o8?V.useLayoutEffect:V.useEffect;
7function sn(e,t,n){n.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var sr={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){(!e.props.className||n())&&sn(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&sn(t,"remove",e.props.className)},onAfterUpdate:r}}},si=(d=q.ZP,p=function(e){var t,n,r,i=e.children,a=e.content,o=e.visible,s=e.singleton,l=e.render,u=e.reference,c=e.disabled,p=void 0!==c&&c,f=e.ignoreAttributes,h=(e.__source,e.__self,o9(e,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==o,g=void 0!==s,y=(0,V.useState)(!1),v=y[0],b=y[1],k=(0,V.useState)({}),x=k[0],_=k[1],w=(0,V.useState)(),C=w[0],E=w[1],A=(t=function(){return{container:se(),renders:1}},(n=(0,V.useRef)()).current||(n.current=t()),n.current),S=Object.assign({ignoreAttributes:void 0===f||f},h,{content:A.container});m&&(S.trigger="manual",S.hideOnClick=!1),g&&(p=!0);var T=S,D=S.plugins||[];l&&(T=Object.assign({},S,{plugins:g&&null!=s.data?[].concat(D,[{fn:function(){return{onTrigger:function(e,t){var n=s.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=n.instance,E(n.content)}}}}]):D,render:function(){return{popper:A.container}}}));var I=[u].concat(i?[i.type]:[]);return st(function(){var e=u;u&&u.hasOwnProperty("current")&&(e=u.current);var t=d(e||A.ref||se(),Object.assign({},T,{plugins:[sr].concat(S.plugins||[])}));return A.instance=t,p&&t.disable(),o&&t.show(),g&&s.hook({instance:t,content:a,props:T,setSingletonContent:E}),b(!0),function(){t.destroy(),null==s||s.cleanup(t)}},I),st(function(){if(1===A.renders){A.renders++;return}var e,t,n,r,i,l,u,c=A.instance;c.setProps((e=c.props,Object.assign({},t=T,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(i=[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]),l=[],i.forEach(function(e){l.find(function(t){return function e(t,n){if(t===n)return!0;if("object"!=typeof t||null==t||"object"!=typeof n||null==n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if(!n.hasOwnProperty(r)||!e(t[r],n[r]))return!1;return!0}(e,t)})||l.push(e)}),l)})}))),null==(u=c.popperInstance)||u.forceUpdate(),p?c.disable():c.enable(),m&&(o?c.show():c.hide()),g&&s.hook({instance:c,content:a,props:T,setSingletonContent:E})}),st(function(){if(l){var e,t=A.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return"$$tippyReact"!==e.name}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;(x.placement!==n.placement||x.referenceHidden!==(null==r?void 0:r.isReferenceHidden)||x.escaped!==(null==r?void 0:r.hasPopperEscaped))&&_({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}
7,[x.placement,x.referenceHidden,x.escaped].concat(I)),V.createElement(V.Fragment,null,i?(0,V.cloneElement)(i,{ref:function(e){A.ref=e,o7(i.ref,e)}}):null,v&&(0,o6.createPortal)(l?l((r={"data-placement":x.placement},x.referenceHidden&&(r["data-reference-hidden"]=""),x.escaped&&(r["data-escaped"]=""),r),C,A.instance):a,A.container))},(0,V.forwardRef)(function(e,t){var n=e.children,r=o9(e,["children"]);return V.createElement(p,Object.assign({},void 0,r),n?(0,V.cloneElement)(n,{ref:function(e){o7(t,e),o7(n.ref,e)}}):null)}));let sa="undefined"!=typeof window&&navigator.platform.toUpperCase().indexOf("MAC")>=0,so=e=>{let{children:t}=e,n="inline-flex items-center justify-center w-5 h-5 p-1 text-[0.625rem] rounded font-semibold leading-none border border-neutral-200 text-neutral-500 border-b-2";return"Mod"===t?(0,U.jsx)("kbd",{className:n,children:sa?"⌘":"Ctrl"}):"Shift"===t?(0,U.jsx)("kbd",{className:n,children:"⇧"}):"Alt"===t?(0,U.jsx)("kbd",{className:n,children:sa?"⌥":"Alt"}):(0,U.jsx)("kbd",{className:n,children:t})};var ss=e=>{let{children:t,enabled:n=!0,title:r,shortcut:i,tippyOptions:a={}}=e,o=(0,V.useCallback)(e=>(0,U.jsxs)("span",{className:"flex items-center gap-2 px-2.5 py-1 bg-white border border-neutral-100 rounded-lg shadow-sm z-[999]",tabIndex:-1,"data-placement":e["data-placement"],"data-reference-hidden":e["data-reference-hidden"],"data-escaped":e["data-escaped"],children:[r&&(0,U.jsx)("span",{className:"text-xs font-medium text-neutral-500",children:r}),i&&(0,U.jsx)("span",{className:"flex items-center gap-0.5",children:i.map(e=>(0,U.jsx)(so,{children:e},e))})]}),[i,r]);return n?(0,U.jsx)(si,{delay:500,offset:[0,8],touch:!1,zIndex:99999,appendTo:document.body,...a,render:o,children:(0,U.jsx)("span",{children:t})}):(0,U.jsx)(U.Fragment,{children:t})};(0,V.forwardRef)(({shouldShowContent:e=!0,children:t,isVertical:n=!1,className:r,...i},a)=>{let o=(0,o1.cn)("text-black inline-flex h-full leading-none gap-0.5",n?"flex-col p-2":"flex-row p-1 items-center",r);return e&&(0,U.jsx)(o5.T,{className:o,...i,ref:a,children:t})}).displayName="Toolbar";let sl=(0,V.forwardRef)(({horizontal:e,className:t,...n},r)=>{let i=(0,o1.cn)("bg-neutral-200 dark:bg-neutral-800",e?"w-full min-w-[1.5rem] h-[1px] my-1 first:mt-0 last:mt-0":"h-full min-h-[1.5rem] w-[1px] mx-1 first:ml-0 last:mr-0",t);return(0,U.jsx)("div",{className:i,ref:r,...n})});sl.displayName="Toolbar.Divider";let su=(0,V.forwardRef)(({children:e,buttonSize:t="icon",variant:n="ghost",className:r,tooltip:i,tooltipShortcut:a,activeClassname:o,...s},l)=>{let u=(0,o1.cn)("gap-1 min-w-[2rem] px-2 w-auto",r),c=(0,U.jsx)(o4,{activeClassname:o,className:u,variant:n,buttonSize:t,ref:l,...s,children:e});return i?(0,U.jsx)(ss,{title:i,shortcut:a,children:c}):c});su.displayName="ToolbarButton";let sc={Divider:sl,Button:su};var sd=n(82576);let sp=B.NB.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,B.P1)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),sf=/^\s*(\[([( |x])?\])\s$/,sh=B.NB.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,B.P1)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement("li"),a=document.createElement("label"),o=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div");return a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",e=>e.preventDefault()),s.addEventListener("change",t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&"function"==typeof n&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==r?void 0:r.attrs,checked:i}),!0}).run(),r.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked)}
7),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,e.attrs.checked&&s.setAttribute("checked","checked"),a.append(s,o),i.append(a,l),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)}),{dom:i,contentDOM:l,update:e=>e.type===this.type&&(i.dataset.checked=e.attrs.checked,e.attrs.checked?s.setAttribute("checked","checked"):s.removeAttribute("checked"),!0)}}},addInputRules(){return[(0,B.S0)({find:sf,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}});var sm=n(65994);let sg=B.hj.create({name:"selection",addProseMirrorPlugins(){let{editor:e}=this;return[new H.Sy({key:new H.H$("selection"),props:{decorations:t=>t.selection.empty||!0===e.isFocused?null:sm.EH.create(t.doc,[sm.p.inline(t.selection.from,t.selection.to,{class:"selection"})])}})]}});var sy=n(80780),sv=n(60707),sb=n(65302),sk=n(91414),sx=n(8136),s_=n(32732),sw=n(5162);let sC=B.hj.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){return[new H.Sy({key:new H.H$("characterCount"),filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;let a=e.selection.$head.pos;return e.deleteRange(a-(i-n),a),!(this.storage.characters({node:e.doc})>n)}})]}});var sE=n(40226),sA=n(51209),sS=n(25716);let sT=({key:e,editor:t,onPaste:n,onDrop:r,allowedMimeTypes:i})=>new H.Sy({key:e||new H.H$("fileHandler"),props:{handleDrop(e,n){var a;if(!r||!(null===(a=n.dataTransfer)||void 0===a?void 0:a.files.length))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY}),s=Array.from(n.dataTransfer.files);return i&&(s=s.filter(e=>i.includes(e.type))),0!==s.length&&(n.preventDefault(),n.stopPropagation(),r(t,s,(null==o?void 0:o.pos)||0),!0)},handlePaste(e,r){var a;if(!n||!(null===(a=r.clipboardData)||void 0===a?void 0:a.files.length))return!1;let o=Array.from(r.clipboardData.files),s=r.clipboardData.getData("text/html");return i&&(o=o.filter(e=>i.includes(e.type))),0!==o.length&&(r.preventDefault(),r.stopPropagation(),n(t,o,s),!(s.length>0))}}}),sD=B.hj.create({name:"fileHandler",addOptions:()=>({onPaste:void 0,onDrop:void 0,allowedMimeTypes:void 0}),addProseMirrorPlugins(){return[sT({key:new H.H$(this.name),editor:this.editor,allowedMimeTypes:this.options.allowedMimeTypes,onDrop:this.options.onDrop,onPaste:this.options.onPaste})]}});var sI=n(46919),sO=n(67339),sM=n(71373),sF=n(88956),sL=n(48394),sN=n(61032);let sP=B.hj.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new H.Sy({key:new H.H$("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return sm.EH.create(e,[]);let o=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((s+=1,"deepest"===this.options.mode&&o-s>0||"shallowest"===this.options.mode&&s>1)?"deepest"===this.options.mode:void a.push(sm.p.node(t,t+e.nodeSize,{class:this.options.className})))),sm.EH.create(e,a)}}})]}});var sj=n(57507);let sR=B.NB.create({name:"figcaption",addOptions:()=>({HTMLAttributes:{}}),content:"inline*",selectable:!1,draggable:!1,marks:"link",parseHTML:()=>[{tag:"figcaption"}],addKeyboardShortcuts(){return{Enter:({editor:e})=>{let{state:{selection:{$from:t,empty:n}}}=e;if(!n||t.parent.type!==this.type||t.parentOffset!==t.parent.nodeSize-2)return!1;let r=e.state.selection.$from.end();return e.chain().focus(r).insertContentAt(r,{type:"paragraph"}).run()},Backspace:({editor:e})=>{let{state:{selection:{$from:t,empty:n}}}=e;if(!n||t.parent.type!==this.type||0!==t.parentOffset)return!1;let r=e.state.doc.nodeAt(t.pos-2);return r?.type.name===sj.E.name}}},renderHTML:({HTMLAttributes:e})=>["figcaption",(0,B.P1)(e),0]});var sz=n(11782),sB=n(48920),sH=n(84963),sZ=n(5067),s$=({props:e,children:t,Icon:n,text:r})=>(0,U.jsx)(Z.T5,{className:"react-component",onClick:()=>{e.editor.commands.setNodeSelection(e.getPos())},children:(0,U.jsx)(Z.ms,{contentEditable:"false",className:"socialMediaContainer",children:e?.node.type.spec.draggable?(0,U.jsx)("div",{draggable:"true","data-drag-handle":"",style:{width:"100%"},children:e?.node?.attrs?.url??e?.node?.attrs?.src?(0,U.jsx)("div",{style:{display:"flex",justifyContent:"center"},draggable:"true","data-drag-handle":"",children:t}):(0,U.jsxs)("div",{className:"w-full bg-zinc-100 py-8 px-6 flex items-center justify-center gap-2 socialMediaCard",draggable:"true","data-drag-handle":"",children:[(0,U.jsx)(n,{size:24}),(0,U.jsx)("p",{className:"w-full flex items-center justify-start mt-0",style:{marginTop:0},children:r})]})}):null})}),sq=e=>(0,U.jsx)(s$,{props:e,Icon:sH.Z,text:"Embed a Tweet from X",children:(0,U.jsx)(sZ.XEmbed,{url:e?.node?.attrs?.url??"",width:325})});let sU=B.NB.create({name:"twitter",group:"block",content:"inline*",draggable:!0,parseHTML:()=>[{tag:'div[data-type="twitter"]'}],addAttributes:()=>({url:{default:null},src:{default:null},class:{default:null}}),addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.t
7ype.name}).focus().run()}},renderHTML:({HTMLAttributes:e})=>["div",(0,B.P1)(e,{"data-type":"twitter",class:`react-renderer node-twitter ${e.class??""}`}),["div",(0,B.P1)({class:"socialMediaContainer"}),["div",(0,B.P1)({class:"rsme-embed rsme-twitter-embed",style:"overflow: hidden; width: 325px; border-radius: 12px;"}),["blockquote",{class:"twitter-tweet"},["a",{href:sV(e.url)??e.src},""]],["script",{async:!0,src:"https://platform.twitter.com/widgets.js",charset:"utf-8"}]]]],addNodeView:()=>(0,Z.fW)(sq),addCommands:()=>({insertTwitter:(e,t)=>({commands:n,state:r})=>{let i=e;return e&&(i=sV(e)),n.insertContent({type:"twitter",attrs:{url:e,class:t,src:i}})}})});function sV(e){if(e)try{let t;let n=e.match(/(?:twitter\.com|x\.com)\/([^\/]+)\/status\/(\d+)/);if(n){let[e,r,i]=n;t=`https://twitter.com/${r}/status/${i}`}return t||void 0}catch{return}}var sW=n(84553),sK=e=>(0,U.jsx)(s$,{props:e,Icon:sW.Z,text:" Embed a Video from Tiktok",children:(0,U.jsx)(sZ.TikTokEmbed,{url:e?.node?.attrs?.url??""})});let sY=B.NB.create({name:"tiktok",group:"block",content:"inline*",draggable:!0,addAttributes:()=>({url:{default:null},class:{default:null},src:{default:null},width:{default:"328px"},height:{default:"550px"},frameborder:{default:"0"},scrolling:{default:"no"},allowtransparency:{default:"true"}}),parseHTML:()=>[{tag:'div[data-type="tiktok"]'}],renderHTML:({HTMLAttributes:e})=>["div",(0,B.P1)({"data-type":"tiktok",class:`react-renderer node-tiktok ${e.class??""}`}),["div",(0,B.P1)({class:"socialMediaContainer"}),["div",(0,B.P1)({class:"rsme-embed rsme-tiktok-embed",style:"overflow: hidden; border-radius: 8px;"}),["div",{class:"tiktok-embed-container"},["iframe",(0,B.P1)(e,{src:sJ(e.url)})]]]]],addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.t
7ype.name}).focus().run()}},addNodeView:()=>(0,Z.fW)(sK),addCommands:()=>({insertTiktok:(e,t)=>({commands:n,state:r})=>{let i;return i=e?sJ(e):void 0,n.insertContent({type:"tiktok",attrs:{url:e,class:t,src:i}})}})});function sJ(e){if(e)try{let t=new URL(e).pathname.split("/").filter(Boolean)[2];return t?`https://www.tiktok.com/embed/v3/${t}`:void 0}catch{return}}var sG=n(35819),sX=e=>(0,U.jsx)(s$,{props:e,Icon:sG.Z,text:"Embed a post from Instagram",children:(0,U.jsx)(sZ.InstagramEmbed,{className:"max-w-[328px]",url:e?.node?.attrs?.url??"",width:328,captioned:!0})});let sQ=B.NB.create({name:"instagram",group:"block",content:"inline*",draggable:!0,addAttributes:()=>({url:{default:null},class:{default:null},src:{default:null},width:{default:"328px"},height:{default:"550px"},frameborder:{default:"0"},scrolling:{default:"no"},allowtransparency:{default:"true"}}),parseHTML:()=>[{tag:'div[data-type="instagram"]'}],renderHTML:({HTMLAttributes:e})=>["div",(0,B.P1)(e,{"data-type":"instagram",class:`react-renderer node-instagram ${e.class??""}`}),["div",(0,B.P1)({class:"socialMediaContainer"}),["div",(0,B.P1)({class:"rsme-embed rsme-instagram-embed"}),["blockquote",(0,B.P1)(e,{class:"instagram-media",style:"background:#FFF; border:0; margin:1px; max-width:540px; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);","data-instgrm-captioned":!0,"data-instgrm-permalink":`${s0(e.url)}?utm_source=ig_embed&utm_campaign=loading`,"data-instgrm-version":"14"}),["div",{class:"instagram-media-pre-embed rsme-d-none"}]],["script",{async:!0,src:"https://www.instagram.com/embed.js",charset:"utf-8",onload:`() => {
8                    if (window.instgrm) {
9                      window.instgrm.Embeds.process();
10                    }
11                }`}]]]],addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.t
11ype.name}).focus().run()}},addNodeView:()=>(0,Z.fW)(sX),addCommands:()=>({insertInstagram:(e,t)=>({commands:n,state:r})=>{let i="";return e&&(i=s0(e)),n.insertContent({type:"instagram",attrs:{url:e,class:t,src:i}})}})});function s0(e){if(e)try{let t=e.split(/[?#]/)[0].replace(/\.com\/.*?\/p/,".com/p").replace(/\.com\/.*?\/reel/,".com/reel");return`${t}${t.endsWith("/")?"":"/"}`}catch{return}}var s1=n(19929),s2=e=>(0,U.jsx)(s$,{props:e,Icon:s1.Z,text:" Embed a post from Facebook",children:(0,U.jsx)(sZ.FacebookEmbed,{url:e?.node?.attrs?.url??"",width:550})});let s3=B.NB.create({name:"facebook",group:"block",content:"inline*",draggable:!0,parseHTML:()=>[{tag:'div[data-type="facebook-post"]'}],addAttributes:()=>({url:{default:null},class:{default:null},src:{default:null},width:{default:"100%"},showText:{default:!0}}),addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.type.name}).focus().run()}},renderHTML:({HTMLAttributes:e})=>["div",(0,B.P1)(e,{"data-type":"facebook",class:`react-renderer node-facebook ${e.class??""}`}),["div",(0,B.P1)({class:"socialMediaContainer"}),["div",{class:"rsme-embed rsme-facebook-embed"},["div",{class:"rsme-d-none"},["div",{id:"fb-root"}],["div",(0,B.P1)(e,{class:"fb-post","data-href":e.url,"data-width":"500","data-show-text":"true"})],["script",{async:!0,defer:!0,crossorigin:"anonymous",src:"https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v22.0"}]]]]],addNodeView:()=>(0,Z.fW)(s2),addCommands:()=>({insertFacebook:(e,t)=>({commands:n,state:r})=>n.insertContent({type:"facebook",attrs:{url:e,class:t,src:e}})})}),s5=(0,W.Z)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);var s4=e=>(0,U.jsx)(s$,{props:e,Icon:s5,text:"Embed a post from Linkedin",children:(0,U.jsx)(sZ.LinkedInEmbed,{url:"https://www.linkedin.com/embed/feed/update/urn:li:share:6898694772484112384",postUrl:"https://www.linkedin.com/posts/peterdiamandis_5-discoveries-the-james-webb-telescope-will-activity-6898694773406875648-z-D7",width:325,height:570})});let s6=B.NB.create({name:"linkedin",group:"block",content:"inline*",draggable:!0,parseHTML:()=>[{tag:"linkedin-component"}],addAttributes:()=>({url:{default:null},class:{default:null}}),addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.t
11ype.name}).focus().run()}},renderHTML:({HTMLAttributes:e})=>["linkedin-component",(0,B.P1)(e),0],addNodeView:()=>(0,Z.fW)(s4),addCommands:()=>({insertLinkedin:(e,t)=>({commands:n,state:r})=>n.insertContent({type:"linkedin",attrs:{url:e,class:t}})})});var s9=n(18193),s8=e=>(0,U.jsx)(s$,{props:e,Icon:s9.Z,text:"Embed a Youtube Video",children:(0,U.jsx)(sZ.YouTubeEmbed,{url:e?.node?.attrs?.url??""})});let s7=B.NB.create({name:"youtube",group:"block",content:"inline*",draggable:!0,parseHTML:()=>[{tag:'div[data-type="youtube"]'}],addAttributes:()=>({url:{default:null},class:{default:null},src:{default:null},width:{default:"560"},height:{default:"315"},frameborder:{default:"0"},allowfullscreen:{default:!0}}),addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.type.name}).focus().run()}},renderHTML:({HTMLAttributes:e})=>["div",(0,B.P1)(e,{"data-type":"youtube",class:`react-renderer node-youtube  ${e.class??""}`}),["div",(0,B.P1)({class:"socialMediaContainer"}),["div",(0,B.P1)({class:"rsme-embed rsme-youtube-embed",style:"overflow: hidden; border-radius: 0px;"}),["div",{class:"youtube-iframe"},["iframe",(0,B.P1)(e,{src:le(e.url)})]]]]],addNodeView:()=>(0,Z.fW)(s8),addCommands:()=>({insertYoutube:(e,t)=>({commands:n,state:r})=>{let i="";return e&&(i=le(e)),n.insertContent({type:"youtube",attrs:{url:e,class:t,src:i}})}})});function le(e){if(e)try{let t=new URL(e),n="";if("youtu.be"===t.hostname)n=t.pathname.slice(1);else if(!(n=new URLSearchParams(t.search).get("v")||"")){let e=t.pathname.match(/\/embed\/([^/?]+)/);e&&(n=e[1])}return n?`https://www.youtube.com/embed/${n}`:void 0}catch{return}}var lt=n(70408);let ln=B.NB.create({name:"insideLinks",group:"block",content:"inline*",draggable:!0,parseHTML:()=>[{tag:'div[data-type="social-media-embed"]'}],addAttributes:()=>({id:{default:null},url:{default:null},title:{default:""},thumbnail:{default:""},draggable:{default:!0},type:{default:null}}),addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.chain().insertContentAt(this.editor.state.selection.head,{type:this.t
11ype.name}).focus().run()}},renderHTML({node:e,HTMLAttributes:t}){let{id:n,url:r,title:i,thumbnail:a,draggable:o}=e.attrs;return n?["div",(0,B.P1)(t,{"data-type":"social-media-embed",class:"socialMediaContainer"}),["div",{class:"flex justify-center items-center w-full gap-x-6"},["div",{class:"flex justify-center items-center"},["div",{class:"w-[32px] h-[64px] bg-blue-400"}],["img",{src:a,width:"212",height:"120",alt:"",class:"-ml-6 !w-[212px] !h-[120px] object-cover"}]],["div",{class:"flex flex-col justify-start items-start font-trt gap-y-2"},["a",{class:"text-black dark:text-white text-lg capitalize w-full",href:r,dir:"ltr"},"Read More"],["h3",{class:"text-2xl font-bold !mt-0 w-full",dir:"ltr"},i]]]]:["div",(0,B.P1)(t,{"data-type":"social-media-embed",class:"socialMediaContainer"}),["div",{class:"w-full bg-zinc-100 py-8 px-6 flex items-center justify-center gap-2 socialMediaCard",draggable:o?"true":"false","data-drag-handle":""},["svg",{class:"h-6 w-6"}],["p",{class:"w-full flex items-center justify-start mt-0",style:"margin-top: 0;"},"Add Internal Content Links"]]]},addNodeView:()=>(0,Z.fW)(lt.Z),addCommands:()=>({insertInsideLinks:({thumbnail:e,title:t,id:n,type:r,url:i})=>({commands:a,state:o})=>a.insertContent({type:"insideLinks",attrs:{thumbnail:e,title:t,id:n,type:r,url:i}})})}),lr=(0,W.Z)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);var li=e=>{let{src:t,width:n="100%",height:r="400",title:i}=e?.node?.attrs??{};return(0,U.jsx)(s$,{props:e,Icon:lr,text:oz.ZP.t("embedIframe")||"Embed an Iframe (Flourish, Datawrapper, etc.)",children:(0,U.jsx)("div",{className:"iframe-wrapper w-full",children:(0,U.jsx)("iframe",{src:t??"",width:n,height:r,title:i??"Embedded content",allowFullScreen:!0,loading:"lazy",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-presentation",referrerPolicy:"no-referrer-when-downgrade",style:{border:"none",width:"100%",minHeight:"300px"}})})})};let la=B.NB.create({name:"iframe",inline:!1,group:"block",content:"inline*",draggable:!0,atom:!0,addOptions:()=>({allowFullscreen:!0,HTMLAttributes:{class:"iframe-wrapper"}}),addAttributes(){return{src:{default:null},frameborder:{default:0},allowfullscreen:{default:this.options.allowFullscreen,parseHTML:()=>this.options.allowFullscreen},sandbox:{default:"allow-scripts allow-same-origin allow-forms allow-popups allow-presentation"},referrerpolicy:{default:"no-referrer-when-downgrade"},width:{default:"100%"},height:{default:"auto"},title:{default:null},loading:{default:"lazy"}}},renderHTML({HTMLAttributes:e}){return["iframe",(0,B.P1)(this.options.HTMLAttributes,e)]},parseHTML:()=>[{tag:"iframe"}],addNodeView:()=>(0,Z.fW)(li),addCommands(){return{setIframe:e=>({tr:t,dispatch:n})=>{let{selection:r}=t,i={...e};if(e?.src?.includes("iframe")){let t=new DOMParser().parseFromString(e?.src,"text/html"),n=t.getElementsByTagName("iframe")?.[0]?.getAttributeNames();n?.forEach(e=>{i[e]=t.getElementsByTagName("iframe")?.[0]?.getAttribute(e)})}else if(!lo(e?.src)){let t="data:text/html;charset=utf-8,"+encodeURI(e?.src);i={...i,src:t}}let a=this.type.create(i);return n&&t.replaceRangeWith(r.from,r.to,a),!0},setHtml:e=>({commands:t,state:n})=>{console.log(e);let r={editorValue:e};if(e?.includes("youtube.com")){let t=e?.split("v=")?.[1]?.split("&")?.[0];r={...r,src:`https://www.youtube.com/embed/${t}?controls=0`,title:"YouTube video player"}}else if(e?.includes("instagram.com")){let t=e?.split("p/")?.[1]?.split("/")?.[0];r={...r,src:`https://www.instagram.com/p/${t}/embed`,title:"Instagram"}}else if(lo(e))r={...r,src:e};else if(e?.includes("iframe")){let t=new DOMParser().parseFromString(e,"text/html"),n=t.getElementsByTagName("iframe")?.[0]?.getAttributeNames();n?.forEach(e=>{r[e]=t.getElementsByTagName("iframe")?.[0]?.getAttribute(e)})}else{let t="data:text/html;charset=utf-8,"+encodeURI(e);r={...r,src:t}}return!0},insertIframe:(e,t)=>({commands:n,state:r})=>n.insertContent({type:"iframe",attrs:{src:e,class:t}})}}});function lo(e){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}var ls=n(79936),ll=n(85188),lu=n(96590),lc=n(90007),ld=n(16843),lp=n(41781);function lf(e){return/<table[\s>]/i.test(e)}function lh(e){return/<iframe[\s>]/i.test(e)}function lm(e){let t=new DOMParser().parseFromString(e,"text/html").querySelector("iframe");
11if(!t)return null;let n={};for(let e of t.getAttributeNames()){let r=t.getAttribute(e);null!==r&&(n[e]=r)}return n}function lg(e){let t=new DOMParser().parseFromString(e,"text/html").querySelector("table");if(!t)return null;let n=[];return(t.querySelectorAll("tr").forEach((e,t)=>{let r=[];e.querySelectorAll("td, th").forEach(e=>{let t="th"===e.tagName.toLowerCase(),n=e.textContent?.trim()||"",i=parseInt(e.getAttribute("colspan")||"1",10),a=parseInt(e.getAttribute("rowspan")||"1",10),o={type:t?"tableHeader":"tableCell",content:[{type:"paragraph",content:n?[{type:"text",text:n}]:[]}]};(1!==i||1!==a)&&(o.attrs={colspan:i,rowspan:a}),r.push(o)}),r.length>0&&n.push({type:"tableRow",content:r})}),0===n.length)?null:{type:"table",content:n}}let ly=B.hj.create({name:"pasteHandler",addProseMirrorPlugins(){let{editor:e}=this;return[new H.Sy({key:new H.H$("pasteHandler"),props:{handlePaste:(t,n,r)=>{let i=n.clipboardData;if(!i)return!1;let a=i.getData("text/html"),o=i.getData("text/plain");if(a&&lh(a)){let t=lm(a);if(t&&t.src)return n.preventDefault(),e.chain().focus().setIframe({src:t.src}).run(),!0}if(o&&lh(o)){let t=lm(o);if(t&&t.src)return n.preventDefault(),e.chain().focus().setIframe({src:t.src}).run(),!0}if(o&&[/flourish\.studio/i,/datawrapper\.dwcdn\.net/i,/infogram\.com/i,/public\.tableau\.com/i,/plotly\.com/i,/app\.powerbi\.com/i].some(e=>e.test(o))&&!a)return n.preventDefault(),e.chain().focus().setIframe({src:o.trim()}).run(),!0;if(o&&lf(o)&&/<\/?(?:table|tr|td|th|thead|tbody)[\s>]/i.test(o)){n.preventDefault();try{let t=lg(o);if(t)return e.chain().focus().insertContent(t).run(),!0}catch(e){console.error("Error parsing table from text:",e)}return!1}if(a&&lf(a)){n.preventDefault();try{let t=lg(a);if(t)return e.chain().focus().insertContent(t).run(),!0}catch(e){console.error("Error parsing table from HTML:",e)}return!1}if(o&&!a&&function(e){let t=e.trim().split("\n");if(t.length<2)return!1;let n=(t[0].match(/\t/g)||[]).length,r=(t[0].match(/,/g)||[]).length;if(0===n&&0===r)return!1;let i=n>0?"	":",",a=t[0].split(i).length;return t.every(e=>{let t=e.split(i).length;return t===a||t===a-1})}(o)){n.preventDefault();let t=function(e){let t=e.trim().split("\n");if(t.length<1)return null;let n=(t[0].match(/\t/g)||[]).length>0?"	":",";return{type:"table",content:t.map((e,t)=>{let r=e.split(n),i=0===t?"tableHeader":"tableCell";return{type:"tableRow",content:r.map(e=>({type:i,content:[{type:"paragraph",content:e.trim()?[{type:"text",text:e.trim()}]:[]}]}))}})}}(o);if(t)return e.chain().focus().insertContent(t).run(),!0}return!1}}})]}});var lv=n(83960),lb=n(58736),lk=n(54418);let lx={};function l_(e,t){"string"!=typeof t&&(t=l_.defaultChars);let n=function(e){let t=lx[e];if(t)return t;t=lx[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((224&a)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((192&n)==128){let e=a<<6&1984|63&n;e<128?t+="��":t+=String.fromCharCode(e),r+=3;continue}}if((240&a)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((192&n)==128&&(192&i)==128){let e=a<<12&61440|n<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),r+=6;continue}}if((248&a)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((192&n)==128&&(192&i)==128&&(192&o)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}return t})}l_.defaultChars=";/?:@&=+$,#",l_.componentChars="";var lw=l_;let lC={};function lE(e,t,n){"string"!=typeof t&&(n=t,t=lE.defaultChars),void 0===n&&(n=!0);let r=function(e){let t=lC[e];if(t)return t;t=lC[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t),i="";for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&37===o&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}lE.defaultChars=";/?:@&=+$,-_.!~*'()#",lE.componentChars="-_.!~*'()";var lA=lE;function lS(e){let t="";return t+=(e.protocol||"")+(e.slashes?"//":"")+(e.auth?e.auth+"@":""),e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=(e.port?":"+e.port:"")+(e.pathname||"")+(e.search||"")+(e.hash||"")}function lT(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let lD=/^([a-z0-9.+-]+:)/i,lI=/:[0-9]*$/,lO=/^(\/\/?(?!\/)[^\?\s]
11*)(\?[^\s]*)?$/,lM=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),lF=["/","?","#"],lL=/^[+a-z0-9A-Z_-]{0,63}$/,lN=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,lP={javascript:!0,"javascript:":!0},lj={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};lT.prototype.parse=function(e,t){let n,r,i;let a=e;if(a=a.trim(),!t&&1===e.split("#").length){let e=lO.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=lD.exec(a);if(o&&(n=(o=o[0]).toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===a.substr(0,2))&&!(o&&lP[o])&&(a=a.substr(2),this.slashes=!0),!lP[o]&&(i||o&&!lj[o])){let e,t,n=-1;for(let e=0;e<lF.length;e++)-1!==(r=a.indexOf(lF[e]))&&(-1===n||r<n)&&(n=r);-1!==(t=-1===n?a.lastIndexOf("@"):a.lastIndexOf("@",n))&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),n=-1;for(let e=0;e<lM.length;e++)-1!==(r=a.indexOf(lM[e]))&&(-1===n||r<n)&&(n=r);-1===n&&(n=a.length),":"===a[n-1]&&n--;let i=a.slice(0,n);a=a.slice(n),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(lL)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(lL)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(lN);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(".")+a),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf("#");-1!==s&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf("?");return -1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),lj[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},lT.prototype.parseHost=function(e){let t=lI.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var lR=function(e,t){if(e&&e instanceof lT)return e;let n=new lT;return n.parse(e,t),n},lz=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,lB=/[\$\+<->
11\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,lH=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lZ=/[\0-\x1F\x7F-\x9F]/,l$=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,lq=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,lU=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
11揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
11䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
11iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
11䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
11astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
11aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lV=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let lW=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),lK=null!==(S=String.fromCodePoint)&&void 0!==S?S:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function lY(e){return e>=T.ZERO&&e<=T.NINE}(f=T||(T={}))[f.NUM=35]="NUM",f[f.SEMI=59]="SEMI",f[f.EQUALS=61]="EQUALS",f[f.ZERO=48]="ZERO",f[f.NINE=57]="NINE",f[f.LOWER_A=97]="LOWER_A",f[f.LOWER_F=102]="LOWER_F",f[f.LOWER_X=120]="LOWER_X",f[f.LOWER_Z=122]="LOWER_Z",f[f.UPPER_A=65]="UPPER_A",f[f.UPPER_F=70]="UPPER_F",f[f.UPPER_Z=90]="UPPER_Z",(h=D||(D={}))[h.VALUE_LENGTH=49152]="VALUE_LENGTH",h[h.BRANCH_LENGTH=16256]="BRANCH_LENGTH",h[h.JUMP_TABLE=127]="JUMP_TABLE",(m=I||(I={}))[m.EntityStart=0]="EntityStart",m[m.NumericStart=1]="NumericStart",m[m.NumericDecimal=2]="NumericDecimal",m[m.NumericHex=3]="NumericHex",m[m.NamedEntity=4]="NamedEntity",(g=O||(O={}))[g.Legacy=0]="Legacy",g[g.Strict=1]="Strict",g[g.Attribute=2]="Attribute";class lJ{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=I.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=O.Strict}startEntity(e){this.decodeMode=e,this.state=I.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case I.EntityStart:if(e.charCodeAt(t)===T.NUM)return this.state=I.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=I.NamedEntity,this.stateNamedEntity(e,t);case I.NumericStart:return this.stateNumericStart(e,t);case I.NumericDecimal:return this.stateNumericDecimal(e,t);case I.NumericHex:return this.stateNumericHex(e,t);case I.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===T.LOWER_X?(this.state=I.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=I.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;
11this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!lY(i)&&(!((r=i)>=T.UPPER_A)||!(r<=T.UPPER_F))&&(!(r>=T.LOWER_A)||!(r<=T.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!lY(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===T.SEMI)this.consumed+=1;else if(this.decodeMode===O.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!==(i=lW.get(r))&&void 0!==i?i:r,this.consumed),this.errors&&(e!==T.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&D.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&D.BRANCH_LENGTH)>>7,a=t&D.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===O.Attribute&&(0===i||function(e){var t;return e===T.EQUALS||(t=e)>=T.UPPER_A&&t<=T.UPPER_Z||t>=T.LOWER_A&&t<=T.LOWER_Z||lY(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&D.VALUE_LENGTH)>>14)){if(a===T.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==O.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&D.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~D.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case I.NamedEntity:return 0!==this.result&&(this.decodeMode!==O.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case I.NumericDecimal:return this.emitNumericEntity(0,2);case I.NumericHex:return this.emitNumericEntity(0,3);case I.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case I.EntityStart:return 0}}}function lG(e){let t="",n=new lJ(e,e=>t+=lK(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}let lX=lG(lU);function lQ(e,t=O.Legacy){return lX(e,t)}lG(lV);let l0=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function l1(e,t){return function(n){let r;let i=0,a="";for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}function l2(e){return"[object String]"===Object.prototype.toString.call(e)}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),l1(/[&<>'"]/g,l0),l1(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),l1(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),(y=M||(M={}))[y.XML=0]="XML",y[y.HTML=1]="HTML",(v=F||(F={}))[v.UTF8=0]="UTF8",v[v.ASCII=1]="ASCII",v[v.Extensive=2]="Extensive",v[v.Attribute=3]="Attribute",v[v.Text=4]="Text";let l3=Object.prototype.hasOwnProperty;function l5(e,t){return l3.call(e,t)}
11function l4(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function l6(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l9(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)}function l8(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let l7=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ue=RegExp(l7.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),ut=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function un(e){return 0>e.indexOf("\\")?e:e.replace(l7,"$1")}function ur(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ue,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&ut.test(t)){let n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return l9(n)?l8(n):e}let n=lQ(e);return n!==e?n:e}(e,n)})}let ui=/[&<>"]/,ua=/[&<>"]/g,uo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function us(e){return uo[e]}function ul(e){return ui.test(e)?e.replace(ua,us):e}let uu=/[.?*+^$[\]\\(){}|-]/g;function uc(e){return e.replace(uu,"\\$&")}function ud(e){switch(e){case 9:case 32:return!0}return!1}function up(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function uf(e){return lz.test(e)||lB.test(e)}function uh(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function um(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let ug={mdurl:P,ucmicro:j};function uy(e,t,n){let r,i,a,o;let s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(a=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===a){if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}}let u=-1;return i&&(u=e.pos),e.pos=l,u}function uv(e,t,n){let r;let i=t,a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n&&10!==(r=e.charCodeAt(i))&&60!==r;){if(62===r){a.pos=i+1,a.str=ur(e.slice(t+1,i)),a.ok=!0;break}if(92===r&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&32!==(r=e.charCodeAt(i))&&!(r<32)&&127!==r;){if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===r&&++o>32)return a;
11if(41===r){if(0===o)break;o--}i++}return t===i||0!==o||(a.str=ur(e.slice(t,i)),a.pos=i,a.ok=!0),a}function ub(e,t,n,r){let i;let a=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(34!==r&&39!==r&&40!==r)return o;t++,a++,40===r&&(r=41),o.marker=r}for(;a<n;){if((i=e.charCodeAt(a))===o.marker)return o.pos=a+1,o.str+=ur(e.slice(t,a)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=ur(e.slice(t,a)),o}let uk={};function ux(){this.rules=l4({},uk)}function u_(){this.__rules__=[],this.__cache__=null}function uw(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function uC(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}uk.code_inline=function(e,t,n,r,i){let a=e[t];return"<code"+i.renderAttrs(a)+">"+ul(a.content)+"</code>"},uk.code_block=function(e,t,n,r,i){let a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+ul(e[t].content)+"</code></pre>\n"},uk.fence=function(e,t,n,r,i){let a;let o=e[t],s=o.info?ur(o.info).trim():"",l="",u="";if(s){let e=s.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(0===(a=n.highlight&&n.highlight(o.content,l,u)||ul(o.content)).indexOf("<pre"))return a+"\n";if(s){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];return e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l),`<pre><code${i.renderAttrs({attrs:t})}>${a}</code></pre>
12`}return`<pre><code${i.renderAttrs(o)}>${a}</code></pre>
13`},uk.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},uk.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},uk.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},uk.text=function(e,t){return ul(e[t].content)},uk.html_block=function(e,t){return e[t].content},uk.html_inline=function(e,t){return e[t].content},ux.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(t=0,r="",n=e.attrs.length;t<n;t++)r+=" "+ul(e.attrs[t][0])+'="'+ul(e.attrs[t][1])+'"';return r},ux.prototype.renderToken=function(e,t,n){let r=e[t],i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag+this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let a=!1;if(r.block&&(a=!0,1===r.nesting&&t+1<e.length)){let n=e[t+1];"inline"===n.type||n.hidden?a=!1:-1===n.nesting&&n.tag===r.tag&&(a=!1)}return i+(a?">\n":">")},ux.prototype.renderInline=function(e,t,n){let r="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;void 0!==i[o]?r+=i[o](e,a,t,n,this):r+=this.renderToken(e,a,t)}return r},ux.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},ux.prototype.render=function(e,t,n){let r="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;"inline"===o?r+=this.renderInline(e[a].children,t,n):void 0!==i[o]?r+=i[o](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r},u_.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},u_.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},u_.prototype.at=function(e,t,n){let r=this.__find__(e);if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},u_.prototype.before=function(e,t,n,r){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},u_.prototype.after=function(e,t,n,r){let i=this.__find__(e);
13if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},u_.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},u_.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},u_.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},u_.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},u_.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},uw.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return -1},uw.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},uw.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},uw.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},uw.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},uC.prototype.Token=uw;let uE=/\r\n?|\n/g,uA=/\0/g,uS=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,uT=/\((c|tm|r)\)/i,uD=/\((c|tm|r)\)/ig,uI={c:"\xa9",r:"\xae",tm:"™"};function uO(e,t){return uI[t.toLowerCase()]}let uM=/['"]/,uF=/['"]/g;function uL(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}let uN=[["normalize",function(e){let t;t=(t=e.src.replace(uE,"\n")).replace(uA,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,a=t.length;i<a;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let a=t[i].children,o=0;for(let s=a.length-1;s>=0;s--){let l=a[s];if("link_close"===l.type){for(s--;a[s].level!==l.level&&"link_open"!==a[s].type;)s--;continue}if("html_inline"===l.type){var n,r;n=l.content,/^<a[>\s]/i.test(n)&&o>0&&o--,r=l.content,/^<\/a\s*>/i.test(r)&&o++}if(!(o>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let n=l.content,r=e.md.linkify.match(n),o=[],u=l.level,c=0;r.length>0&&0===r[0].index&&s>0&&"text_special"===a[s-1].type&&(r=r.slice(1));for(let t=0;t<r.length;t++){let i=r[t].url,a=e.md.normalizeLink(i);if(!e.md.validateLink(a))continue;let s=r[t].text;s=r[t].schema?"mailto:"!==r[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");let l=r[t].index;if(l>c){let t=new e.Token("text","",0);t.content=n.slice(c,l),t.level=u,o.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",a]],d.level=u++,d.markup="linkify",d.info="auto",o.push(d);let p=new e.Token("text","",0);p.content=s,p.level=u,o.push(p);let f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",o.push(f),c=r[t].lastIndex}if(c<n.length){let t=new e.Token("text","",0);t.content=n.slice(c),t.level=u,o.push(t)}t[i].children=a=l6(a,s,o)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(uT.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"!==r.type||t||(r.content=r.content.replace(uD,uO)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children),uS.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"===r.type&&!t&&uS.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&uM.test(e.tokens[t].content)&&function(e,t){let n;let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,"text"!==a.type)continue;let s=a.content,l=0,u=s.length;e:for(;l<u;){uF.lastIndex=l;let c=uF.exec(s);if(!c)break;let d=!0,p=!0;l=c.index+1;let f="'"===c[0],h=32;if(c.index-1>=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;
13n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<u)m=s.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}let g=uh(h)||uf(String.fromCharCode(h)),y=uh(m)||uf(String.fromCharCode(m)),v=up(h),b=up(m);if(b?d=!1:y&&!(v||g)&&(d=!1),v?p=!1:g&&!(b||y)&&(p=!1),34===m&&'"'===c[0]&&h>=48&&h<=57&&(p=d=!1),d&&p&&(d=g,p=y),!d&&!p){f&&(a.content=uL(a.content,c.index,"’"));continue}if(p)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<o)break;if(d.single===f&&r[n].level===o){let o,p;d=r[n],f?(o=t.md.options.quotes[2],p=t.md.options.quotes[3]):(o=t.md.options.quotes[0],p=t.md.options.quotes[1]),a.content=uL(a.content,c.index,p),e[d.token].content=uL(e[d.token].content,d.pos,o),l+=p.length-1,d.token===i&&(l+=o.length-1),u=(s=a.content).length,r.length=n;continue e}}d?r.push({token:i,pos:c.index,single:f,level:o}):p&&f&&(a.content=uL(a.content,c.index,"’"))}}}(e.tokens[t].children,e)}],["text_join",function(e){let t,n;let r=e.tokens,i=r.length;for(let e=0;e<i;e++){if("inline"!==r[e].type)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=n=0;t<a;t++)"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}]];function uP(){this.ruler=new u_;for(let e=0;e<uN.length;e++)this.ruler.push(uN[e][0],uN[e][1])}function uj(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(ud(s)){n++,9===s?r+=4-r%4:r++;continue}o=!0}(10===s||t===a-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function uR(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function uz(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s="";for(;r<n;)124===i&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s="",o=r+1)),a=92===i,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function uB(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!ud(e.src.charCodeAt(r))?-1:r}function uH(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return -1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=r)return -1;if((a=e.src.charCodeAt(i++))>=48&&a<=57){if(i-n>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<r&&!ud(a=e.src.charCodeAt(i))?-1:i}uP.prototype.process=function(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},uP.prototype.State=uC,uj.prototype.push=function(e,t,n){let r=new uw(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},uj.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},uj.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},uj.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&ud(this.src.charCodeAt(e));e++);return e},uj.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!ud(this.src.charCodeAt(--e)))return e+1;return e},uj.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},uj.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},uj.prototype.getLines=function(e,t,n,r){if(e>=t)return"";let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e,s=0,l=this.bMarks[o],u=l;for(e=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];u<e&&s<n;
13){let e=this.src.charCodeAt(u);if(ud(e))9===e?s+=4-(s+this.bsCount[o])%4:s++;else if(u-l<this.tShift[o])s++;else break;u++}s>n?i[a]=Array(s-n+1).join(" ")+this.src.slice(u,e):i[a]=this.src.slice(u,e)}return i.join("")},uj.prototype.Token=uw;let uZ="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",u$="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",uq=RegExp("^(?:"+uZ+"|"+u$+"|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),uU=RegExp("^(?:"+uZ+"|"+u$+")"),uV=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(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)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(uU.source+"\\s*$"),/^$/,!1]],uW=[["table",function(e,t,n,r){let i;if(t+2>n)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;let s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=e.eMarks[a])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!ud(l)||45===s&&ud(l))return!1;for(;o<e.eMarks[a];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!ud(t))return!1;o++}let u=uR(e,t+1),c=u.split("|"),d=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(u=uR(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=uz(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let p=c.length;if(0===p||p!==d.length)return!1;if(r)return!0;let f=e.parentType;e.parentType="table";let h=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){let n=e.push("th_open","th",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y=0;for(a=t+2;a<n&&!(e.sCount[a]<e.blkIndent);a++){let r=!1;for(let t=0,i=h.length;t<i;t++)if(h[t](e,a,n,!0)){r=!0;break}if(r||!(u=uR(e,a).trim())||e.sCount[a]-e.blkIndent>=4||((c=uz(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(y+=p-c.length)>65536))break;a===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[a,a+1];for(let t=0;t<p;t++){let n=e.push("td_open","td",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=a),e.push("table_close","table",-1),g[1]=a,e.parentType=f,e.line=a,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){i=++r;continue}break}e.line=i;let a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=e.skipChars(i,o))-s;if(l<3)return!1;let u=e.src.slice(s,i),c=e.src.slice(i,a);if(96===o&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;!(++d>=n)&&(!((i=s=e.bMarks[d]+e.tShift[d])<(a=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));
13)if(!(e.src.charCodeAt(i)!==o||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,o))-s<l||(i=e.skipSpaces(i))<a)){p=!0;break}l=e.sCount[t],e.line=d+(p?1:0);let f=e.push("fence","code",0);return f.info=c,f.content=e.getLines(t+1,d,l,!0),f.markup=u,f.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(a))return!1;if(r)return!0;let l=[],u=[],c=[],d=[],p=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let h=!1;for(i=t;i<n;i++){let t=e.sCount[i]<e.blkIndent;if((a=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(a++)&&!t){let t,n,r=e.sCount[i]+1;32===e.src.charCodeAt(a)?(a++,r++,n=!1,t=!0):9===e.src.charCodeAt(a)?(t=!0,(e.bsCount[i]+r)%4==3?(a++,r++,n=!1):n=!0):t=!1;let s=r;for(l.push(e.bMarks[i]),e.bMarks[i]=a;a<o;){let t=e.src.charCodeAt(a);if(ud(t))9===t?s+=4-(s+e.bsCount[i]+(n?1:0))%4:s++;else break;a++}h=a>=o,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+(t?1:0),c.push(e.sCount[i]),e.sCount[i]=s-r,d.push(e.tShift[i]),e.tShift[i]=a-e.bMarks[i];continue}if(h)break;let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let y=[t,0];g.map=y,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=f,y[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=l[n],e.tShift[n+t]=d[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=u[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!ud(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,a,o,s,l,u,c;let d=t,p=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let f=!1;if(r&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(f=!0),(c=uH(e,d))>=0){if(l=!0,o=e.bMarks[d]+e.tShift[d],u=Number(e.src.slice(o,c-1)),f&&1!==u)return!1}else{if(!((c=uB(e,d))>=0))return!1;l=!1}if(f&&e.skipSpaces(c)>=e.eMarks[d])return!1;if(r)return!0;let h=e.src.charCodeAt(c-1),m=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==u&&(s.attrs=[["start",u]])):s=e.push("bullet_list_open","ul",1);let g=[d,0];s.map=g,s.markup=String.fromCharCode(h);let y=!1,v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";d<n;){let t;a=c,i=e.eMarks[d];let r=e.sCount[d]+c-(e.bMarks[d]+e.tShift[d]),u=r;for(;a<i;){let t=e.src.charCodeAt(a);if(9===t)u+=4-(u+e.bsCount[d])%4;else if(32===t)u++;else break;a++}let f=a;(t=f>=i?1:u-r)>4&&(t=1);let m=r+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(h);let g=[d,0];s.map=g,l&&(s.info=e.src.slice(o,c-1));let b=e.tight,k=e.tShift[d],x=e.sCount[d],_=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=f-e.bMarks[d],e.sCount[d]=u,f>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,d,n,!0),(!e.tight||y)&&(p=!1),y=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[d]=k,e.sCount[d]=x,e.tight=b,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(h),d=e.line,g[1]=d,d>=n||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let w=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,d,n,!0)){w=!0;break}if(w)break;if(l){if((c=uH(e,d))<0)break;o=e.bMarks[d]+e.tShift[d]}else if((c=uB(e,d))<0)break;
13if(h!==e.src.charCodeAt(c-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(h),g[1]=d,e.line=d,e.parentType=b,p&&function(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(a))return!1;function l(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let u=e.src.slice(a,o+1);o=u.length;let c=-1;for(a=1;a<o;a++){let e=u.charCodeAt(a);if(91===e)return!1;if(93===e){c=a;break}if(10===e){let e=l(s);null!==e&&(u+=e,o=u.length,s++)}else if(92===e&&++a<o&&10===u.charCodeAt(a)){let e=l(s);null!==e&&(u+=e,o=u.length,s++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(a=c+2;a<o;a++){let e=u.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(u+=e,o=u.length,s++)}else if(ud(e));else break}let d=e.md.helpers.parseLinkDestination(u,a,o);if(!d.ok)return!1;let p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;let f=a=d.pos,h=s,m=a;for(;a<o;a++){let e=u.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(u+=e,o=u.length,s++)}else if(ud(e));else break}let g=e.md.helpers.parseLinkTitle(u,a,o);for(;g.can_continue;){let t=l(s);if(null===t)break;u+=t,a=o,o=u.length,s++,g=e.md.helpers.parseLinkTitle(u,a,o,g)}for(a<o&&m!==a&&g.ok?(i=g.str,a=g.pos):(i="",a=f,s=h);a<o&&ud(u.charCodeAt(a));)a++;if(a<o&&10!==u.charCodeAt(a)&&i)for(i="",a=f,s=h;a<o&&ud(u.charCodeAt(a));)a++;if(a<o&&10!==u.charCodeAt(a))return!1;let y=um(u.slice(1,c));return!!y&&(!!r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:i,href:p}),e.line=s,!0))}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,a),s=0;for(;s<uV.length&&!uV[s][0].test(o);s++);if(s===uV.length)return!1;if(r)return uV[s][2];let l=t+1;if(!uV[s][1].test(o)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],o=e.src.slice(i,a),uV[s][1].test(o)){0!==o.length&&l++;break}}e.line=l;let u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!ud(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let l=e.skipCharsBack(a,35,i);l>i&&ud(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=e.src.slice(i,a).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){let r;let i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(45===(r=e.src.charCodeAt(t))||61===r)&&(t=e.skipChars(t,r),(t=e.skipSpaces(t))>=n)){o=61===r?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,s,n,!0)){t=!0;break}if(t)break}if(!o)return!1;let l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let u=e.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(r),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(r),e.parentType=a,!0}],["paragraph",function(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=o,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function uK(){this.ruler=new u_;for(let e=0;e<uW.length;e++)this.ruler.push(uW[e][0],uW[e][1],{alt:(uW[e][2]||[]).slice()})}function uY(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}uK.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(""),i=r.length,a=e.md.options.maxNesting,o=t,
13s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a<i;a++)if(l=r[a](e,o,n,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(o=e.line)<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},uK.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},uK.prototype.State=uj,uY.prototype.pushPending=function(){let e=new uw("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},uY.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new uw(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},uY.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32,l=uh(i)||uf(String.fromCharCode(i)),u=uh(s)||uf(String.fromCharCode(s)),c=up(i),d=up(s),p=!d&&(!u||c||l),f=!c&&(!l||d||u);return{can_open:p&&(t||!f||l),can_close:f&&(t||!p||u),length:o}},uY.prototype.Token=uw;let uJ=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,uG=[];for(let e=0;e<256;e++)uG.push(0);function uX(e,t){let n;let r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(n=e.tokens[i.token]).type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",(n=e.tokens[o.token]).type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function uQ(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(95!==n.marker&&42!==n.marker||-1===n.end)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="";let l=e.tokens[i.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){uG[e.charCodeAt(0)]=1});let u0=/^([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])?)*)$/,u1=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,u2=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,u3=/^&([a-z][a-z0-9]{1,31});/i;function u5(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],l=r-a[r]-1,u=l;for(;l>s;l-=a[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+r,a[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}let u4=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos;if(n+3>
13e.posMax||58!==e.src.charCodeAt(n)||47!==e.src.charCodeAt(n+1)||47!==e.src.charCodeAt(n+2))return!1;let r=e.pending.match(uJ);if(!r)return!1;let i=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!a)return!1;let o=a.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");let s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&32===e.pending.charCodeAt(r)){if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)}else e.push("softbreak","br",0)}for(n++;n<i&&ud(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(n)||++n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&ud(i=e.src.charCodeAt(n));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o="\\"+a;if(!t){let t=e.push("text_special","",0);i<256&&0!==uG[i]?t.content=a:t.content=o,t.markup=o,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n,r=e.pos;if(96!==e.src.charCodeAt(r))return!1;let i=r;r++;let a=e.posMax;for(;r<a&&96===e.src.charCodeAt(r);)r++;let o=e.src.slice(i,r),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let l=r;
13for(;-1!==(n=e.src.indexOf("`",l));){for(l=n+1;l<a&&96===e.src.charCodeAt(l);)l++;let i=l-n;if(i===s){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(r,n).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=n}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}],["strikethrough",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||126!==r)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;a%2&&(e.push("text","",0).content=o,a--);for(let t=0;t<a;t+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||95!==r&&42!==r)return!1;let i=e.scanDelims(e.pos,42===r);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let n,r,i,a;let o="",s="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,d=e.posMax,p=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let h=f+1;if(h<d&&40===e.src.charCodeAt(h)){for(u=!1,h++;h<d&&(ud(n=e.src.charCodeAt(h))||10===n);h++);if(h>=d)return!1;if(l=h,(i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?h=i.pos:o="",l=h;h<d&&(ud(n=e.src.charCodeAt(h))||10===n);h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&l!==h&&i.ok)for(s=i.str,h=i.pos;h<d&&(ud(n=e.src.charCodeAt(h))||10===n);h++);}(h>=d||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h<d&&91===e.src.charCodeAt(h)?(l=h+1,(h=e.md.helpers.parseLinkLabel(e,h))>=0?r=e.src.slice(l,h++):h=f+1):h=f+1,r||(r=e.src.slice(p,f)),!(a=e.env.references[um(r)]))return e.pos=c,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=f;let t=e.push("link_open","a",1),n=[["href",o]];t.attrs=n,s&&n.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){let n,r,i,a,o,s,l,u;let c="",d=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let f=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if((a=h+1)<p&&40===e.src.charCodeAt(a)){for(a++;a<p&&(ud(n=e.src.charCodeAt(a))||10===n);a++);if(a>=p)return!1;for(u=a,(s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?a=s.pos:c=""),u=a;a<p&&(ud(n=e.src.charCodeAt(a))||10===n);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&u!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(ud(n=e.src.charCodeAt(a))||10===n);a++);else l="";if(a>=p||41!==e.src.charCodeAt(a))return e.pos=d,!1;a++}else{if(void 0===e.env.references)return!1;if(a<p&&91===e.src.charCodeAt(a)?(u=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?i=e.src.slice(u,a++):a=h+1):a=h+1,i||(i=e.src.slice(f,h)),!(o=e.env.references[um(i)]))return e.pos=d,!1;c=o.href,l=o.title}if(!t){r=e.src.slice(f,h);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=a,e.posMax=p,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}let a=e.src.slice(r+1,n);if(u1.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}if(u0.test(a)){let n=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;
13let n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){let t=32|e;return t>=97&&t<=122}(i))return!1;let a=e.src.slice(r).match(uq);if(!a)return!1;if(!t){var o,s;let t=e.push("html_inline","",0);t.content=a[0],o=t.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,s=t.content,/^<\/a\s*>/i.test(s)&&e.linkLevel--}return e.pos+=a[0].length,!0}],["entity",function(e,t){let n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n)||n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){let r=e.src.slice(n).match(u2);if(r){if(!t){let t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=l9(t)?l8(t):l8(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(u3);if(r){let n=lQ(r[0]);if(n!==r[0]){if(!t){let t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],u6=[["balance_pairs",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;u5(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&u5(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;uX(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&uX(e,t[r].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;uQ(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&uQ(e,t[r].delimiters)}],["fragments_join",function(e){let t,n;let r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function u9(){this.ruler=new u_;for(let e=0;e<u4.length;e++)this.ruler.push(u4[e][0],u4[e][1]);this.ruler2=new u_;for(let e=0;e<u6.length;e++)this.ruler2.push(u6[e][0],u6[e][1])}function u8(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function u7(e){return Object.prototype.toString.call(e)}function ce(e){return"[object Function]"===u7(e)}function ct(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}u9.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t]){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,a[t]=e.pos},u9.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1)){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},u9.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let e=0;e<o;e++)a[e](i)},u9.prototype.State=uY;let cn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},cr={"http:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},ci="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ca(){return function(e,t){t.normalize(e)}}function co(e){let t=e.re=function(e){let t={};e=e||{},t.src_Any=lH.source,t.src_Cc=lZ.source,t.src_Z=lq.source,t.src_P=lz.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}
13"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");let i=[];function a(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(null===n)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===u7(n)){if("[object RegExp]"===u7(n.validate)){var o;r.validate=(o=n.validate,function(e,t){let n=e.slice(t);return o.test(n)?n.match(o)[0].length:0})}else ce(n.validate)?r.validate=n.validate:a(t,n);ce(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=ca();return}if("[object String]"===u7(n)){i.push(t);return}a(t,n)}
13),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:ca()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(ct).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function cs(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function cl(e,t){let n=new cs(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function cu(e,t){if(!(this instanceof cu))return new cu(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||cn.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=u8({},cn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=u8({},cr,e),this.__compiled__={},this.__tlds__=ci,this.__tlds_replaced__=!1,this.re={},co(this)}cu.prototype.add=function(e,t){return this.__schemas__[e]=t,co(this),this},cu.prototype.set=function(e){return this.__opts__=u8(this.__opts__,e),this},cu.prototype.test=function(e){let t,n,r,i,a,o,s,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},cu.prototype.pretest=function(e){return this.re.pretest.test(e)},cu.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},cu.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(cl(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(cl(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},cu.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,cl(this,0)):null},cu.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),co(this),this},cu.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},cu.prototype.onCompile=function(){};let cc=/^xn--/,cd=/[^\0-\x7F]/,cp=/[\x2E\u3002\uFF0E\uFF61]/g,cf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ch=Math.floor,cm=String.fromCharCode;function cg(e){throw RangeError(cf[e])}function cy(e,t){let n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+(function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n})((e=e.replace(cp,".")).split("."),t).join(".")}let cv=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},cb=function(e,t,n){let r=0;for(e=n?ch(e/700):e>>1,e+=ch(e/t);e>455;r+=36)e=ch(e/35);return ch(r+36*e/(e+38))},ck=function(e){let t=[],n=e.length,r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&cg("not-basic"),t.push(e.charCodeAt(n));for(let l=o>0?o+1:0;l<n;){let o=r;for(let t=1,i=36;;i+=36){var s;l>=n&&cg("invalid-input");let o=(s=e.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;o>=36&&cg("invalid-input"),o>
13ch((2147483647-r)/t)&&cg("overflow"),r+=o*t;let u=i<=a?1:i>=a+26?26:i-a;if(o<u)break;let c=36-u;t>ch(2147483647/c)&&cg("overflow"),t*=c}let u=t.length+1;a=cb(r-o,u,0==o),ch(r/u)>2147483647-i&&cg("overflow"),i+=ch(r/u),r%=u,t.splice(r++,0,i)}return String.fromCodePoint(...t)},cx=function(e){let t=[],n=(e=function(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,r=128,i=0,a=72;for(let n of e)n<128&&t.push(cm(n));let o=t.length,s=o;for(o&&t.push("-");s<n;){let n=2147483647;for(let t of e)t>=r&&t<n&&(n=t);let l=s+1;for(let u of(n-r>ch((2147483647-i)/l)&&cg("overflow"),i+=(n-r)*l,r=n,e))if(u<r&&++i>2147483647&&cg("overflow"),u===r){let e=i;for(let n=36;;n+=36){let r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;let i=e-r,o=36-r;t.push(cm(cv(r+i%o,0))),e=ch(i/o)}t.push(cm(cv(e,0))),a=cb(i,l,s===o),i=0,++s}++i,++r}return t.join("")};var c_={toASCII:function(e){return cy(e,function(e){return cd.test(e)?"xn--"+cx(e):e})},toUnicode:function(e){return cy(e,function(e){return cc.test(e)?ck(e.slice(4).toLowerCase()):e})}};let cw={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},cC=/^(vbscript|javascript|file|data):/,cE=/^data:image\/(gif|png|jpeg|webp);/;function cA(e){let t=e.trim().toLowerCase();return!cC.test(t)||cE.test(t)}let cS=["http:","https:","mailto:"];function cT(e){let t=lR(e,!0);if(t.hostname&&(!t.protocol||cS.indexOf(t.protocol)>=0))try{t.hostname=c_.toASCII(t.hostname)}catch(e){}return lA(lS(t))}function cD(e){let t=lR(e,!0);if(t.hostname&&(!t.protocol||cS.indexOf(t.protocol)>=0))try{t.hostname=c_.toUnicode(t.hostname)}catch(e){}return lw(lS(t),lw.defaultChars+"%")}function cI(e,t){if(!(this instanceof cI))return new cI(e,t);t||l2(e)||(t=e||{},e="default"),this.inline=new u9,this.block=new uK,this.core=new uP,this.renderer=new ux,this.linkify=new cu,this.validateLink=cA,this.normalizeLink=cT,this.normalizeLinkText=cD,this.utils=R,this.helpers=l4({},z),this.options={},this.configure(e),t&&this.set(t)}cI.prototype.set=function(e){return l4(this.options,e),this},cI.prototype.configure=function(e){let t=this;if(l2(e)){let t=e;if(!(e=cw[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[
13n].ruler2.enableOnly(e.components[n].rules2)}),this},cI.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},cI.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},cI.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},cI.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},cI.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},cI.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},cI.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let cO=new lk.V_({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class cM{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:lk.vc.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),n=t.content,r=n[n.length-1],i=this.schema.text(e,t.marks),a;r&&(a=function(e,t){if(e.isText&&t.isText&&lk.vc.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(r,i))?n[n.length-1]=a:n.push(i)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let n=e[t],r=this.tokenHandlers[n.type];if(!r)throw Error("Token type `"+n.type+"` not supported by Markdown parser");r(this,n,e,t)}}addNode(e,t,n){let r=this.top(),i=e.createAndFill(t,n,r?r.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:lk.vc.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function cF(e,t,n,r){return e.getAttrs?e.getAttrs(t,n,r):e.attrs instanceof Function?e.attrs(t):e.attrs}function cL(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function cN(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function cP(){}class cj{constructor(e,t,n){this.schema=e,this.tokenizer=t,this.tokens=n,this.tokenHandlers=function(e,t){let n=Object.create(null);for(let r in t){let i=t[r];
13if(i.block){let t=e.nodeType(i.block);cL(i,r)?n[r]=(e,n,r,a)=>{e.openNode(t,cF(i,n,r,a)),e.addText(cN(n.content)),e.closeNode()}:(n[r+"_open"]=(e,n,r,a)=>e.openNode(t,cF(i,n,r,a)),n[r+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);n[r]=(e,n,r,a)=>e.addNode(t,cF(i,n,r,a))}else if(i.mark){let t=e.marks[i.mark];cL(i,r)?n[r]=(e,n,r,a)=>{e.openMark(t.create(cF(i,n,r,a))),e.addText(cN(n.content)),e.closeMark(t)}:(n[r+"_open"]=(e,n,r,a)=>e.openMark(t.create(cF(i,n,r,a))),n[r+"_close"]=e=>e.closeMark(t))}else if(i.ignore)cL(i,r)?n[r]=cP:(n[r+"_open"]=cP,n[r+"_close"]=cP);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return n.text=(e,t)=>e.addText(t.content),n.inline=(e,t)=>e.parseTokens(t.children),n.softbreak=n.softbreak||(e=>e.addText(" ")),n}(e,n)}parse(e,t={}){let n=new cM(this.schema,this.tokenHandlers),r;n.parseTokens(this.tokenizer.parse(e,t));do r=n.closeNode();while(n.stack.length);return r||this.schema.topNodeType.createAndFill()}}function cR(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new cj(cO,cI("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:cR(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:cR(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let cz={open:"",close:"",mixable:!0};
13class cB{constructor(e,t,n={}){this.nodes=e,this.marks=t,this.options=n}serialize(e,t={}){t=Object.assign({},this.options,t);let n=new c$(this.nodes,this.marks,t);return n.renderContent(e),n.out}}let cH=new cB({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let n=t.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";e.write(r+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(r),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t,"  ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let n=t.attrs.order||1,r=String(n+t.childCount-1).length,i=e.repeat(" ",r+2);e.renderList(t,i,t=>{let i=String(n+t);return e.repeat(" ",r-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type){e.write("\\\n");return}},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,n,r)=>(e.inAutolink=function(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let r=t.child(n);return!!r.isText&&r.text==e.attrs.href&&r.marks[r.marks.length-1]==e&&(n==t.childCount-1||!e.isInSet(t.child(n+1).marks))}(t,n,r),e.inAutolink?"<":"["),close(e,t,n,r){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,n,r)=>cZ(n.child(r),-1),close:(e,t,n,r)=>cZ(n.child(r-1),1),escape:!1}});function cZ(e,t){let n=/`+/g,r,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let a=i>0&&t>0?" `":"`";for(let e=0;e<i;e++)a+="`";return i>0&&t<0&&(a+=" "),a}class c${constructor(e,t,n){this.nodes=e,this.marks=t,this.options=n,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(let n=1;n<e;n++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=cz}return t}wrapBlock(e,t,n,r){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,r(),this.delim=i,this.closeBlock(n)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let n=e.split("\n");for(let e=0;e<n.length;e++)this.write(),!t&&"["==n[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(n[e],this.atBlockStart):n[e],e!=n.length-1&&(this.out+="\n")}render(e,t,n){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,n);else{if(!1!==this.options.strict)throw Error("Token type `"+e.type.name+"` not supported by Markdown renderer");!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}renderContent(e){e.forEach((t,n,r)=>this.render(t,e,r))}renderInline(e,t=!0){this.atBlockStart=t;let n=[],r="",i=(t,i,a)=>{let o=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(o=o.filter(t=>{if(a+1==e.childCount)return!1;let n=e.child(a+1);return t.isInSet(n.marks)&&(!n.isText||/\S/.test(n.text))}));let s=r;if(r="",t&&t.isText&&o.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(n)})){let[e,r,i]=/^(\s*)(.*)$/m.exec(t.text);!r||(s+=r,(t=i?t.withText(i):null)||(o=n))}if(t&&t.isText&&o.some(t=>{let n=this.getMark(t.type.name);return n&&n.expelEnclosingWhitespace&&(a==e.childCount-1||!t.isInSet(e.child(a+1).marks))})){let[e,i,a]=/^(.*?)(\s*)$/m.exec(t.text);!a||(r=a,(t=i?t.withText(i):null)||(o=n))}let l=o.length?o[o.length-1]:null,u=l&&!1===this.getMark(l.type.n
13ame).escape,c=o.length-(u?1:0);t:for(let e=0;e<c;e++){let t=o[e];if(!this.getMark(t.type.name).mixable)break;for(let r=0;r<n.length;r++){let i=n[r];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>r?o=o.slice(0,r).concat(t).concat(o.slice(r,e)).concat(o.slice(e+1,c)):r>e&&(o=o.slice(0,e).concat(o.slice(e+1,r)).concat(t).concat(o.slice(r,c)));continue t}}}let d=0;for(;d<Math.min(n.length,c)&&o[d].eq(n[d]);)++d;for(;d<n.length;)this.text(this.markString(n.pop(),!1,e,a),!1);if(s&&this.text(s),t){for(;n.length<c;){let t=o[n.length];n.push(t),this.text(this.markString(t,!0,e,a),!1),this.atBlockStart=!1}u&&t.isText?this.text(this.markString(l,!0,e,a)+t.text+this.markString(l,!1,e,a+1),!1):this.render(t,e,a),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,n){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let r=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=r,e.forEach((i,a,o)=>{o&&r&&this.flushClose(1),this.wrapBlock(t,n(o),e,()=>this.render(i,e,o))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,n)=>"_"==t&&n>0&&n+1<e.length&&e[n-1].match(/\w/)&&e[n+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}markString(e,t,n,r){let i=this.getMark(e.type.name),a=t?i.open:i.close;return"string"==typeof a?a:a(this,e,n,r)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}var cq=n(90796),cU=Object.defineProperty,cV=(e,t,n)=>t in e?cU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cW=(e,t,n)=>(cV(e,"symbol"!=typeof t?t+"":t,n),n);let cK=B.hj.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>"true"===e.getAttribute("data-tight")||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return n=>{let{editor:r,commands:i}=n;return e.options.listTypes.some(e=>(function(e){if(!r.isActive(e))return!1;let n=r.getAttributes(e);return i.updateAttributes(e,{tight:null!=t?t:!(null!=n&&n.tight)})})(e))}}}}}),cY=cI();function cJ(e,t){return cY.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new cY.inline.State(e,null,null,[]).scanDelims(t,!0)}function cG(e,t,n,r){let i=e.substring(0,n)+e.substring(n+t.length);return i.substring(0,n+r)+t+i.substring(n+r)}class cX extends c${constructor(e,t,n){super(e,t,null!=n?n:{}),cW(this,"inTable",!1),this.inlines=[]}render(e,t,n){super.render(e,t,n);let r=this.inlines[this.inlines.length-1];if(null!=r&&r.start&&null!=r&&r.end){let e;let{delimiter:t,start:n,end:i}=this.normalizeInline(r);this.out=((e=function(e,t,n,r){let i=r,a=e;for(;i>n&&!cJ(a,i).can_close;)a=cG(a,t,i,-1),i--;return{text:a,from:n,to:i}}((e=function(e,t,n,r){let i=n,a=e;for(;i<r&&!cJ(a,i).can_open;)a=cG(a,t,i,1),i++;return{text:a,from:i,to:r}}((e={text:this.out,from:n,to:i}).text,t,e.from,e.to)).text,t,e.from,e.to)).to-e.from<t.length+1&&(e.text=e.text.substring(0,e.from)+e.text.substring(e.to+t.length)),e.text),this.inlines.pop()}}markString(e,t,n,r){let i=this.marks[e.type.name];if(i.expelEnclosingWhitespace){if(t)this.inlines.push({start:this.out.length,delimiter:i.open});else{let e=this.inlines.pop();this.inlines.push({...e,end:this.out.length})}}return super.markString(e,t,n,r)}normalizeInline(e){let{start:t,end:n}=e;for(;this.out.charAt(t).match(/\s/);)t++;return{...e,start:t}}}let cQ=B.vc.create({name:"markdownHTMLMark",addStorage:()=>({markdown:{serialize:{open(e,t){var n,r;return this.editor.storage.markdown.options.html?null!==(n=null===(r=c0(t))||void 0===r?void 0:r[0])&&void 0!==n?n:"":(console.warn(`Tiptap Markdown: "${t.type.n
13ame}" mark is only available in html mode`),"")},close(e,t){var n,r;return this.editor.storage.markdown.options.html&&null!==(n=null===(r=c0(t))||void 0===r?void 0:r[1])&&void 0!==n?n:""}},parse:{}}})});function c0(e){let t=e.type.schema,n=t.text(" ",[e]),r=(0,B.d1)(lk.HY.from(n),t).match(/^(<.*?>) (<\/.*?>)$/);return r?[r[1],r[2]]:null}function c1(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}let c2=B.NB.create({name:"markdownHTMLNode",addStorage:()=>({markdown:{serialize(e,t,n){this.editor.storage.markdown.options.html?e.write(function(e,t){let n=e.type.schema,r=(0,B.d1)(lk.HY.from(e),n);return e.isBlock&&(t instanceof lk.HY||t.type.name===n.topNodeType.name)?function(e){let t=c1(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?`
14${t.innerHTML}
15`:`
16`,t.outerHTML}(r):r}(t,n)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}})}),c3=B.NB.create({name:"blockquote"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.blockquote,parse:{}}})}),c5=B.NB.create({name:"bulletList"}).extend({addStorage:()=>({markdown:{serialize(e,t){return e.renderList(t,"  ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}})}),c4=B.NB.create({name:"codeBlock"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:null!==(t=this.options.languageClassPrefix)&&void 0!==t?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}})}),c6=B.NB.create({name:"hardBreak"}).extend({addStorage:()=>({markdown:{serialize(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type){e.write(e.inTable?c2.storage.markdown.serialize.call(this,e,t,n):"\\\n");return}},parse:{}}})}),c9=B.NB.create({name:"heading"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.heading,parse:{}}})}),c8=B.NB.create({name:"horizontalRule"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.horizontal_rule,parse:{}}})}),c7=B.NB.create({name:"image"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.image,parse:{}}})}),de=B.NB.create({name:"listItem"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.list_item,parse:{}}})}),dt=B.NB.create({name:"orderedList"}).extend({addStorage:()=>({markdown:{serialize(e,t,n,r){let i=t.attrs.start||1,a=String(i+t.childCount-1).length,o=e.repeat(" ",a+2),s=function(e,t,n){let r=0;for(;n-r>0&&t.child(n-r-1).type.name===e.type.name;r++);return r}(t,n,r)%2?") ":". ";e.renderList(t,o,t=>{let n=String(i+t);return e.repeat(" ",a-n.length)+n+s})},parse:{}}})}),dn=B.NB.create({name:"paragraph"}).extend({addStorage:()=>({markdown:{serialize:cH.nodes.paragraph,parse:{}}})});function dr(e){var t,n;return null!==(t=null==e||null===(n=e.content)||void 0===n?void 0:n.content)&&void 0!==t?t:[]}let di=B.NB.create({name:"table"}).extend({addStorage:()=>({markdown:{serialize(e,t,n){if(!function(e){let t=dr(e),n=t[0],r=t.slice(1);return!(dr(n).some(e=>"tableHeader"!==e.type.name||da(e)||e.childCount>1)||r.some(e=>dr(e).some(e=>"tableHeader"===e.type.name||da(e)||e.childCount>1)))}(t)){c2.storage.markdown.serialize.call(this,e,t,n);return}e.inTable=!0,t.forEach((t,n,r)=>{if(e.write("| "),t.forEach((t,n,r)=>{r&&e.write(" | ");let i=t.firstChild;i.textContent.trim()&&e.renderInline(i)}),e.write(" |"),e.ensureNewLine(),!r){let n=Array.from({length:t.childCount}).map(()=>"---").join(" | ");e.write(`| ${n} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1},parse:{}}})});function da(e){return e.attrs.colspan>1||e.attrs.rowspan>1}let ds=B.NB.create({name:"taskItem"}).extend({addStorage:()=>({markdown:{serialize(e,t){let n=t.attrs.checked?"[x]":"[ ]";e.write(`${n} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(e=>{let t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())})}}}})}),dl=B.NB.create({name:"taskList"}).extend({addStorage:()=>({markdown:{serialize:c5.storage.markdown.serialize,parse:{setup(e){e.use(cq)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEac
16h(e=>{e.setAttribute("data-type","taskList")})}}}})}),du=B.NB.create({name:"text"}).extend({addStorage:()=>({markdown:{serialize(e,t){var n;e.text(null==(n=t.text)?void 0:n.replace(/</g,"&lt;").replace(/>/g,"&gt;"))},parse:{}}})}),dc=B.vc.create({name:"bold"}).extend({addStorage:()=>({markdown:{serialize:cH.marks.strong,parse:{}}})}),dd=B.vc.create({name:"code"}).extend({addStorage:()=>({markdown:{serialize:cH.marks.code,parse:{}}})}),dp=[c3,c5,c4,c6,c9,c8,c2,c7,de,dt,dn,di,ds,dl,du,dc,dd,cQ,B.vc.create({name:"italic"}).extend({addStorage:()=>({markdown:{serialize:cH.marks.em,parse:{}}})}),B.vc.create({name:"link"}).extend({addStorage:()=>({markdown:{serialize:cH.marks.link,parse:{}}})}),B.vc.create({name:"strike"}).extend({addStorage:()=>({markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}})})];function df(e){var t,n;let r=null===(t=e.storage)||void 0===t?void 0:t.markdown,i=null===(n=dp.find(t=>t.name===e.name))||void 0===n?void 0:n.storage.markdown;return r||i?{...i,...r}:null}class dh{constructor(e){cW(this,"editor",null),this.editor=e}serialize(e){let t=new cX(this.nodes,this.marks,{hardBreakNodeName:c6.name});return t.renderContent(e),t.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(e=>[e,this.serializeNode(c2)])),...Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter(e=>"node"===e.type&&this.serializeNode(e)).map(e=>[e.name,this.serializeNode(e)]))&&void 0!==e?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(e=>[e,this.serializeMark(cQ)])),...Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter(e=>"mark"===e.type&&this.serializeMark(e)).map(e=>[e.name,this.serializeMark(e)]))&&void 0!==e?e:[])}}serializeNode(e){var t;return null===(t=df(e))||void 0===t||null===(t=t.serialize)||void 0===t?void 0:t.bind({editor:this.editor,options:e.options})}serializeMark(e){var t;let n=null===(t=df(e))||void 0===t?void 0:t.serialize;return n?{...n,open:"function"==typeof n.open?n.open.bind({editor:this.editor,options:e.options}):n.open,close:"function"==typeof n.close?n.close.bind({editor:this.editor,options:e.options}):n.close}:null}}class dm{constructor(e,t){cW(this,"editor",null),cW(this,"md",null);let{html:n,linkify:r,breaks:i}=t;this.editor=e,this.md=this.withPatchedRenderer(cI({html:n,linkify:r,breaks:i}))}parse(e){let{inline:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){this.editor.extensionManager.extensions.forEach(e=>{var t;return null===(t=df(e))||void 0===t||null===(t=t.parse)||void 0===t||null===(t=t.setup)||void 0===t?void 0:t.call({editor:this.editor,options:e.options},this.md)});let n=c1(this.md.render(e));return this.editor.extensionManager.extensions.forEach(e=>{var t;return null===(t=df(e))||void 0===t||null===(t=t.parse)||void 0===t||null===(t=t.updateDOM)||void 0===t?void 0:t.call({editor:this.editor,options:e.options},n)}),this.normalizeDOM(n,{inline:t,content:e}),n.innerHTML}return e}normalizeDOM(e,t){let{inline:n,content:r}=t;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(e=>{var t;(null===(t=e.nextSibling)||void 0===t?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))}),n&&this.normalizeInline(e,r),e}normalizeBlocks(e){let t=Object.values(this.editor.schema.nodes).filter(e=>e.isBlock).map(e=>{var t;return null===(t=e.spec.parseDOM)||void 0===t?void 0:t.map(e=>e.tag)}).flat().filter(Boolean).join(",");t&&[...e.querySelectorAll(t)].forEach(e=>{e.parentElement.matches("p")&&function(e){let t=e.parentElement,n=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)n.appendChild(t.firstChild);n.childNodes.length>0&&t.parentElement.insertBefore(n,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}(e)})}normalizeInline(e,t){var n,r,i,a,o;if(null!==(n=e.firstElementChild)&&void 0!==n&&n.matches("p")){let n=e.firstElementChild,{nextElementSibling:s}=n,l=null!==(r=null===(i=t.match(/^\s+/))||void 0===i?void 0:i[0])&&void 0!==r?r:"",u=s?"":null!==(a=null===(o=t.match(/\s+$/))||void 0===o?void 0:o[0])&&void 0!==a?a:"";if(t.match(/^\n\n/)){n.innerHTML=`${n.innerHTML}${u}`;return}!function(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}(n),e.innerHTML=`${l}${e.innerHTML}${u}`}}withPatchedRenderer(e){let t=e=>function(){let t=e(...arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}let dg=B.hj.create({name:"markdownClipboard",addOptions:()=>({transformPastedText:!1,transformCopiedText:!1}),addProseMirrorPlugins(){return[new H.Sy({key:new H.H$("markdownClipboard"),props:{clipboardTextParser:(e,t,n)=>{if(n||!this.options.transformPastedText)return null;let r=this.editor.storage.markdown.parser.parse(e,{inline:!0});
16return lk.aw.fromSchema(this.editor.schema).parseSlice(c1(r),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),dy=B.hj.create({name:"markdown",priority:50,addOptions:()=>({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}),addCommands(){let e=B.Rw.Commands.config.addCommands();return{setContent:(t,n,r)=>i=>e.setContent(i.editor.storage.markdown.parser.parse(t),n,r)(i),insertContentAt:(t,n,r)=>i=>e.insertContentAt(t,i.editor.storage.markdown.parser.parse(n,{inline:!0}),r)(i)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new dm(this.editor,this.options),serializer:new dh(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:()=>({}),addExtensions(){return[cK.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),dg.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}});class dv{static uploadImage=async()=>(await new Promise(e=>setTimeout(e,500)),"/placeholder-image.jpg")}var db=n(78024),dk=({dir:e="ltr",openAssetHQHandler:t})=>[dy,sd.B,sp,sh.configure({nested:!0}),sg,sy.X.configure({levels:[1,2,3,4,5,6]}),sv.b,sb.V.configure({document:!1,dropcursor:!1,heading:!1,horizontalRule:!1,blockquote:!1,history:!1,codeBlock:!1,paragraph:!1}),sk.n,sx.p,s_.r.configure({openOnClick:!1}),sw.v,sC.configure({limit:5e4}),lv.ImageUpload.configure({openAssetHQHandler:t}),sE.ImageBlock,sA.VideoBlock,sS.AudioBlock,sD.configure({allowedMimeTypes:["image/png","image/jpeg","image/gif","image/webp"],onDrop:(e,n,r)=>{let i=n[0];(async()=>{t(t=>{let n=t.title;"en"!==oz.ZP.language&&t.title_locale[oz.ZP.language.toUpperCase()]&&(n=t.title_locale[oz.ZP.language.toUpperCase()]);let{actualHeight:i,actualWidth:a}=(0,db.i)(t);e.chain().setImageBlockAt({pos:r,src:t?.optimizedImageUrl||t.fullUrl,caption:n,actualHeight:i,actualWidth:a}).focus().run()},i,"image")})()},onPaste:(e,t)=>{t.forEach(async()=>{let t=await dv.uploadImage();return e.chain().setImageBlockAt({pos:e.state.selection.anchor,src:t}).focus().run()})}}),sI.P.extend({addKeyboardShortcuts:()=>({})}).configure({defaultAlignment:"rtl"===e?"right":"left",types:["heading","paragraph"]}),sO.a,sM.$,sF.ZT,sL.V.configure({includeChildren:!0,showOnlyCurrent:!1,placeholder:()=>""}),sN.SlashCommand,sP,sR,sz.w,sB.m.configure({width:2,class:"ProseMirror-dropcursor border-black"}),lb.Z,sU,sY,sQ,s3,s6,s7,ln,la,pu,ls.G,ll.DY,lu.i,lc.S,ld.x,lp.p,ly];let dx=e=>new B.ML({content:e,extensions:[...dk({openAssetHQHandler:()=>{}})]}).storage.markdown.getMarkdown(),d_=[{value:"improve",label:"Improve writing",icon:oV},{value:"fix",label:"Fix grammar",icon:oW},{value:"rewrite_with_guidelines",label:"Rewrite per Editorial Guidelines",icon:oK},{value:"rewrite",label:"Rewrite into Axios",icon:oY},{value:"summarize",label:"Summarize text",icon:oY},{value:"shorter",label:"Make shorter",icon:oJ},{value:"longer",label:"Make longer",icon:oY}];var dw=({messages:e,onSelect:t,editor:n})=>{let r=n?.state?.selection?.content?.()?.content?.toJSON(),i=(0,V.useMemo)(()=>{let e=n.storage?.aiCommand?.language;return o0.sort((t,n)=>e?.includes(t.value)?-1:e?.includes(n.value)?1:0)},[o0,n.storage?.aiCommand?.language]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(o2.V,{children:"Edit or review selection"}),r&&(0,U.jsxs)(oU.fC,{children:[(0,U.jsx)(oU.xz,{asChild:!0,children:(0,U.jsxs)(sc.Button,{className:"gap-2 px-4 w-full flex justify-start ",type:"button",tooltip:oz.ZP.t("highlightText")||"Highlight text",children:[(0,U.jsx)(o3.J,{icon:oG,className:"h-4 w-4 text-blue-500"}),"Translate text",(0,U.jsx)("span",{className:"text-xs ml-1 px-2 py-0.5 bg-blue-100 text-blue-700 rounded-full dark:bg-blue-700 dark:text-blue-100 align-baseline",children:"Beta"}),(0,U.jsx)(o3.J,{icon:oX,className:"h-4 w-4 text-blue-500"})]})}),(0,U.jsx)(oU.VY,{side:"right",align:"start",sideOffset:8,asChild:!0,children:(0,U.jsxs)(o5.T,{className:"flex flex-col min-w-[15rem] p-2 max-h-[20rem] overflow-auto",children:[(0,U.jsx)(o2.V,{children:"Languages"}),i.map(e=>(0,U.jsx)(sc.Button,{onClick:()=>{let r=n.state.selection.content().content.toJSON();t("",{option:"translate",language:e.value,selection:r})},className:"gap-2 px-4 w-full flex justify-start ",children:e.label},e.value))]})})]}),d_.map(r=>(0,U.jsxs)(sc.Button,{onClick:()=>{let{from:i,to:a,empty:o}=n.state.selection;n.state.selection.content().content.toJSON(),t(e?dx(e)??"":n.state.doc.textBetween(i,a," "),{option:r.value,language:n?.storage?.aiCommand?.language})},className:" gap-2 px-4 w-full flex justify-start",value:r.value,children:[(0,U.jsx)(r.icon,{className:"h-4 w-4 text-blue-500"}),r.label,(0,U.jsx)("span",{className:"text-xs ml-1 px-2 py-0.5 bg-blue-100 text-blue-700 rounded-full dark:bg-blue-700 dark:text-blue-100 align-baseline",children:"Beta"})]},r.value)),(0,U.jsx)(sc.Divider,{horizontal:!0}),(0,U.jsx)(o2.V,{children:"Use AI to do more"}),(0,U.jsxs)(sc.Button,{onClick:()=>{n.state.selection.content().content.toJSON(),t(e?dx(e)??"":(0,o1.S3)(n,{chars:5e3}),{option:"continue",language:n?.storage?.aiCommand?.language})},value:"continue",className:"gap-2 px-4 w-full flex justify-start",children:[(0,U.jsx)(oQ,{className:"h-4 w-4 text-blue-500"}),"Continue writing",(0,U.jsx)("span",{className:"text-xs ml-1 px-2 py-0.5 bg-blue-100 text-blue-700 rounded-full dark:bg-blue-700 dark:text-blue-100 align-baseline",children:"Beta"})]})]})},dC=()=>(0,U.jsxs)("div",{className:"flex items-center justify-center gap-0.5",children:[(0,U.jsx)("div",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-blue-500 [animation-delay:-0.3s]"}),(0,U.jsx)("div",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-blue-500 [animation-delay:-0.15s]"}),(0,U.jsx)("div",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-blue-500"})]}),dE=n(98129),dA=n(5698),dS=n(37331),dT=n(20342),dD=n(57912),dI=n(24129),dO=n(53066),dM=n(42359),dF="ScrollArea",[dL,dN]=(0,dS.b)(dF),[dP,dj]=dL(dF),dR=V.forwardRef((e,t)=>
16{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=V.useState(null),[u,c]=V.useState(null),[d,p]=V.useState(null),[f,h]=V.useState(null),[m,g]=V.useState(null),[y,v]=V.useState(0),[b,k]=V.useState(0),[x,_]=V.useState(!1),[w,C]=V.useState(!1),E=(0,dT.e)(t,e=>l(e)),A=(0,dI.gm)(i);return(0,U.jsx)(dP,{scope:n,type:r,dir:A,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:p,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:x,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:k,children:(0,U.jsx)(dE.WV.div,{dir:A,...o,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});dR.displayName=dF;var dz="ScrollAreaViewport",dB=V.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=dj(dz,n),s=V.useRef(null),l=(0,dT.e)(t,s,o.onViewportChange);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,U.jsx)(dE.WV.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,U.jsx)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});dB.displayName=dz;var dH="ScrollAreaScrollbar",dZ=V.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=dj(dH,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return V.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?(0,U.jsx)(d$,{...r,ref:t,forceMount:n}):"scroll"===i.type?(0,U.jsx)(dq,{...r,ref:t,forceMount:n}):"auto"===i.type?(0,U.jsx)(dU,{...r,ref:t,forceMount:n}):"always"===i.type?(0,U.jsx)(dV,{...r,ref:t}):null});dZ.displayName=dH;var d$=V.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=dj(dH,e.__scopeScrollArea),[a,o]=V.useState(!1);return V.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,U.jsx)(dA.z,{present:n||a,children:(0,U.jsx)(dU,{"data-state":a?"visible":"hidden",...r,ref:t})})}),dq=V.forwardRef((e,t)=>{var n,r;let{forceMount:i,...a}=e,o=dj(dH,e.__scopeScrollArea),s="horizontal"===e.orientation,l=pe(()=>c("SCROLL_END"),100),[u,c]=(n="hidden",r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},V.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},n));return V.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,o.scrollHideDelay,c]),V.useEffect(()=>{let e=o.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,s,c,l]),(0,U.jsx)(dA.z,{present:i||"hidden"!==u,children:(0,U.jsx)(dV,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:t,onPointerEnter:(0,dM.M)(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:(0,dM.M)(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),dU=V.forwardRef((e,t)=>{let n=dj(dH,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=V.useState(!1),s="horizontal"===e.orientation,l=pe(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return pt(n.viewport,l),pt(n.content,l),(0,U.jsx)(dA.z,{present:r||a,children:(0,U.jsx)(dV,{"data-state":a?"visible":"hidden",...i,ref:t})})}),dV=V.forwardRef((e,t)=>
16{let{orientation:n="vertical",...r}=e,i=dj(dH,e.__scopeScrollArea),a=V.useRef(null),o=V.useRef(0),[s,l]=V.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=d4(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=d6(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return d8([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,o.current,s,t)}return"horizontal"===n?(0,U.jsx)(dW,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=d9(i.viewport.scrollLeft,s,i.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):"vertical"===n?(0,U.jsx)(dK,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=d9(i.viewport.scrollTop,s);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),dW=V.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=dj(dH,e.__scopeScrollArea),[o,s]=V.useState(),l=V.useRef(null),u=(0,dT.e)(t,l,a.onScrollbarXChange);return V.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,U.jsx)(dG,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":d6(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r<n&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:d5(o.paddingLeft),paddingEnd:d5(o.paddingRight)}})}})}),dK=V.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=dj(dH,e.__scopeScrollArea),[o,s]=V.useState(),l=V.useRef(null),u=(0,dT.e)(t,l,a.onScrollbarYChange);return V.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,U.jsx)(dG,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":d6(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r<n&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:
16a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:d5(o.paddingTop),paddingEnd:d5(o.paddingBottom)}})}})}),[dY,dJ]=dL(dH),dG=V.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...p}=e,f=dj(dH,n),[h,m]=V.useState(null),g=(0,dT.e)(t,e=>m(e)),y=V.useRef(null),v=V.useRef(""),b=f.viewport,k=r.content-r.viewport,x=(0,dD.W)(c),_=(0,dD.W)(l),w=pe(d,10);function C(e){y.current&&u({x:e.clientX-y.current.left,y:e.clientY-y.current.top})}return V.useEffect(()=>{let e=e=>{let t=e.target;(null==h?void 0:h.contains(t))&&x(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,h,k,x]),V.useEffect(_,[r,_]),pt(h,w),pt(f.content,w),(0,U.jsx)(dY,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:(0,dD.W)(a),onThumbPointerUp:(0,dD.W)(o),onThumbPositionChange:_,onThumbPointerDown:(0,dD.W)(s),children:(0,U.jsx)(dE.WV.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:(0,dM.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),C(e))}),onPointerMove:(0,dM.M)(e.onPointerMove,C),onPointerUp:(0,dM.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null})})})}),dX="ScrollAreaThumb",dQ=V.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=dJ(dX,e.__scopeScrollArea);return(0,U.jsx)(dA.z,{present:n||i.hasThumb,children:(0,U.jsx)(d0,{ref:t,...r})})}),d0=V.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=dj(dX,n),o=dJ(dX,n),{onThumbPositionChange:s}=o,l=(0,dT.e)(t,e=>o.onThumbChange(e)),u=V.useRef(void 0),c=pe(()=>{u.current&&(u.current(),u.current=void 0)},100);return V.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=d7(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),(0,U.jsx)(dE.WV.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,dM.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,dM.M)(e.onPointerUp,o.onThumbPointerUp)})});dQ.displayName=dX;var d1="ScrollAreaCorner",d2=V.forwardRef((e,t)=>{let n=dj(d1,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,U.jsx)(d3,{...e,ref:t}):null});d2.displayName=d1;var d3=V.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=dj(d1,n),[a,o]=V.useState(0),[s,l]=V.useState(0),u=!!(a&&s);return pt(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),pt(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),u?(0,U.jsx)(dE.WV.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function d5(e){return e?parseInt(e,10):0}function d4(e,t){let n=e/t;return isNaN(n)?0:n}function d6(e){let t=d4(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function d9(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=d6(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return d8([0,o],[0,a-r])(s)}function d8(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var d7=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function pe(e,t){let n=(0,dD.W)(e),r=V.useRef(0);return V.useEffect(()=>()=>window.clearTimeout(r.current),[]),V.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function pt(e,t){let n=(0,dD.W)(t);(0,dO.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let pn=V.forwardRef((e,t)=>
16{let{className:n,children:r,...i}=e;return(0,U.jsxs)(dR,{ref:t,className:(0,o1.cn)("relative overflow-hidden",n),...i,children:[(0,U.jsx)(dB,{className:"h-full w-full rounded-[inherit]",children:r}),(0,U.jsx)(pr,{}),(0,U.jsx)(d2,{})]})});pn.displayName=dR.displayName;let pr=V.forwardRef((e,t)=>{let{className:n,orientation:r="vertical",...i}=e;return(0,U.jsx)(dZ,{ref:t,orientation:r,className:(0,o1.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n),...i,children:(0,U.jsx)(dQ,{className:"relative flex-1 rounded-full bg-border"})})});pr.displayName=dZ.displayName;let pi=e=>{let t=(0,V.useRef)(""),n=(0,V.useCallback)(()=>{let n=JSON.parse(JSON.stringify(e));e&&(n=pa(e));let r=dx(n);r&&"string"==typeof r&&(t.current=r)},[e]);return(0,V.useEffect)(()=>{e&&e?.content?.length>0?n():t.current=""},[e]),{markdown:t.current}},pa=e=>{if(!e||!e?.type&&!e?.attrs||["tiktok","twitter","instagram","facebook","linkedin","youtube","insideLinks","iframe","videoBlock","imageBlock","linkPreview"].includes(e?.type))return null;if(Array.isArray(e.content)){let t=e.content.map(pa).filter(Boolean);return 0===t.length?null:{...e,content:t}}return e},po=(0,V.forwardRef)((e,t)=>{var n,r;let{editor:i,onOpenChange:a,userPrompt:o,items:s,...l}=e,[u,c]=(0,V.useState)(null!=o?o:""),{view:d}=i,p=(0,V.useRef)(null),f=(0,V.useRef)(null),[h,m]=(0,V.useState)(0),[g,y]=(0,V.useState)(0),v=d.dom.getBoundingClientRect(),b=(0,V.useRef)(null),{object:k,submit:x,isLoading:_}=oR({api:"/api/generate",schema:oq}),{markdown:w}=pi(k),C=!!k,E=(0,V.useCallback)(()=>{var e,t,n,r;if(k){x({prompt:"",body:{option:"zap",command:u,language:null==i?void 0:null===(r=i.storage)||void 0===r?void 0:null===(n=r.aiCommand)||void 0===n?void 0:n.language,selection:k}}),c("");return}x({prompt:"",body:{option:"zap",command:u,language:null==i?void 0:null===(t=i.storage)||void 0===t?void 0:null===(e=t.aiCommand)||void 0===e?void 0:e.language}}),c("")},[null==i?void 0:null===(r=i.storage)||void 0===r?void 0:null===(n=r.aiCommand)||void 0===n?void 0:n.language,u,k,x]);(0,V.useEffect)(()=>{o&&c(o)},[o]),(0,V.useEffect)(()=>{if(C){var e;i.storage.aiCommand.completion=null!==(e=null==k?void 0:k.content)&&void 0!==e?e:[]}},[w,_]),(0,V.useEffect)(()=>{m(0),y(0)},[s]);let A=(0,V.useCallback)((e,t)=>{c(s[e].commands[t].action(i))},[s,i]);(0,V.useImperativeHandle)(t,()=>({onKeyDown:e=>{let{event:t}=e;if("ArrowDown"===t.key){if(!s.length)return!1;let e=s[h].commands,t=g+1,n=h;return e.length-1<t&&(t=0,n=h+1),s.length-1<n&&(n=0),y(t),m(n),!0}if("ArrowUp"===t.key){if(!s.length)return!1;let e=g-1,t=h;if(e<0){var n;e=(null===(n=s[t=h-1])||void 0===n?void 0:n.commands.length)-1||0}return t<0&&(t=s.length-1,e=s[t].commands.length-1),y(e),m(t),!0}return"Enter"===t.key&&!!s.length&&-1!==h&&-1!==g&&(A(h,g),!0)}})),(0,V.useEffect)(()=>{if(f.current&&p.current){let e=f.current.offsetTop,t=f.current.offsetHeight;p.current.scrollTop=e-t}},[g,h]);let S=(0,V.useCallback)((e,t)=>()=>{A(e,t)},[A]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(o5.T,{className:"p-2 min-w-[20rem] flex  flex-col gap-2 w-full ".concat(C?"-mt-72":""),style:{width:null==v?void 0:v.width},children:(0,U.jsxs)(U.Fragment,{children:[w&&(0,U.jsx)("div",{className:"flex  w-full",children:(0,U.jsx)(pn,{className:"prose p-2 px-4 prose-sm max-h-96",dir:oz.ZP.dir(),children:(0,U.jsx)(rc,{children:w})})}),_&&(0,U.jsxs)("div",{className:"flex h-12 w-full items-center px-4 text-sm font-medium text-muted-foreground text-blue-500",style:{width:null==v?void 0:v.width},children:[(0,U.jsx)(K,{className:"mr-2 h-4 w-4 shrink-0  "}),"AI (Beta) is thinking",(0,U.jsx)("div",{className:"ml-2 mt-1",children:(0,U.jsx)(dC,{})})]}),!_&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"flex justify-between items-center ",children:[(0,U.jsx)(K,{className:"mr-2 h-4 w-4 shrink-0 text-blue-500 "}),(0,U.jsx)(rI,{ref:b,style:{resize:"none"},className:"w-full p-2 text-black bg-white  rounded dark:bg-black dark:text-white focus:outline-none outline-none border-0 ",value:u,onChange:e=>{i.storage.aiCommand.userPrompt=e.target.value,c(e.target.value)},placeholder:C?oz.ZP.t("tellAiPlaceholder")||"Tell AI (Beta) what to do next":oz.ZP.t("askAiPlaceholder")||"Ask AI (Beta) to edit or generate...",autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&E()}}),(0,U.jsx)(sc.Button,{onClick:E,children:(0,U.jsx)(Y,{})})]})})]})}),!_&&(0,U.jsx)(o5.T,{ref:p,className:"text-black max-h-[min(80vh,24rem)] overflow-auto flex-wrap mb-8 p-2",children:(0,U.jsx)("div",{className:"grid grid-cols-1 gap-0.5",children:C?(0,U.jsx)(dw,{editor:i,messages:k,onSelect:(e,t)=>
16{if((null==t?void 0:t.option)==="translate")x({prompt:e,body:t});else{var n,r;x({prompt:e,body:{...t,source:null==i?void 0:null===(r=i.storage)||void 0===r?void 0:null===(n=r.aiCommand)||void 0===n?void 0:n.language}})}}}):s.map((e,t)=>(0,U.jsxs)(V.Fragment,{children:[(0,U.jsx)("div",{className:"text-neutral-500 text-[0.65rem] col-[1/-1] mx-2 mt-4 font-semibold tracking-wider select-none uppercase first:mt-0.5",children:e.title},"".concat(e.title)),e.commands.map((e,n)=>(0,U.jsxs)(o2.P,{isActive:h===t&&g===n,onClick:S(t,n),children:[(0,U.jsx)(o3.J,{icon:e.icon,className:"mr-1"}),e.label]},"".concat(e.label)))]},"".concat(e.title,"-wrapper")))})})]})}),ps=V.forwardRef((e,t)=>{let[n,r]=(0,V.useState)("");return e.items.length?(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(po,{editor:e?.editor,onOpenChange:()=>{},userPrompt:n,items:e?.items,ref:t})}):null});ps.displayName="AIMenuList";let pl="aiCommand",pu=B.hj.create({name:pl,priority:200,onCreate(){},addProseMirrorPlugins(){return[(0,$.ZP)({editor:this.editor,char:" ",allowSpaces:!1,startOfLine:!0,pluginKey:new H.H$(pl),allow:e=>{var t,n,r,i;let{state:a,range:o}=e,s=a.doc.resolve(o.from),l=1===s.depth,u="paragraph"===s.parent.type.name,c=(null===(t=s.parent.textContent)||void 0===t?void 0:t.charAt(0))===" ",d=null===(n=s.parent.textContent)||void 0===n?void 0:n.length,p=this.editor.isActive("column"),f=null===(i=s.parent.textContent)||void 0===i?void 0:i.substring(null===(r=s.parent.textContent)||void 0===r?void 0:r.indexOf(" ")),h=!(null==f?void 0:f.endsWith("  "));return(l&&u&&c||p&&u&&c)&&h&&1===d},command:e=>{let{editor:t,props:n}=e;n.action(t)},items:async e=>{let{query:t}=e;return(await n.e(6707).then(n.bind(n,26707))).default.map(e=>({...e,commands:e.commands.filter(e=>{let n=e.label.toLowerCase().trim(),r=t.toLowerCase().trim();if(e.aliases){let t=e.aliases.map(e=>e.toLowerCase().trim());return n.includes(r)||t.includes(r)}return n.includes(r)}).filter(e=>!e.shouldBeHidden||!e.shouldBeHidden(this.editor))})).filter(e=>e.commands.length>0).map(e=>({...e,commands:e.commands.map(e=>({...e,isEnabled:!0}))}))},render:()=>{let e;let t=null;return{onStart:n=>{var r,o,s;let l=n.editor;i=(0,q.ZP)("body",{interactive:!0,trigger:"manual",placement:"bottom-start",theme:"slash-command",offset:[0,-16],popperOptions:{strategy:"fixed",modifiers:[{name:"flip",enabled:!1}]},editor:l,onHide(e){try{var t,r,i,o;let s=e.props.editor,l=null!==(o=null==s?void 0:null===(r=s.storage)||void 0===r?void 0:null===(t=r.aiCommand)||void 0===t?void 0:t.completion)&&void 0!==o?o:[];if(null==s||null===(i=s.state)||void 0===i||i.selection,!l||""===l)return;null==s||s.chain().focus().insertContentAt({from:a.from-1,to:a.to}," ").insertContentAt(a.to,l).run(),n.editor.storage.aiCommand.completion=""}catch(e){}}}),e=new Z.M_(ps,{props:n,editor:n.editor}),n.editor.storage.aiCommand.active=!0;let{view:u}=n.editor,c=u.dom,d=()=>{if(!n.clientRect)return n.editor.storage[pl].rect;let t=n.clientRect();if(!t)return n.editor.storage[pl].rect;let r=t.y;if(t.top+e.element.offsetHeight+40>window.innerHeight){let n=t.top+e.element.offsetHeight-window.innerHeight+40;r=t.y-n}c.getBoundingClientRect().x;let i=c.getBoundingClientRect();return new DOMRect(t.x,r,i.width,t.height)};t=()=>{null==i||i[0].setProps({getReferenceClientRect:d})},null===(r=u.dom.parentElement)||void 0===r||r.addEventListener("scroll",t),null==i||i[0].setProps({getReferenceClientRect:d,appendTo:()=>document.body,content:null==e?void 0:e.element});let p=null===this||void 0===this?void 0:null===(s=this.editor)||void 0===s?void 0:null===(o=s.state)||void 0===o?void 0:o.selection;a={from:null==p?void 0:p.from,to:null==p?void 0:p.to},null==i||i[0].show()},onUpdate:t=>{var n;null==e||e.updateProps(t);let{view:r}=t.editor;r.dom;let a=()=>{if(!t.clientRect)return t.editor.storage[pl].rect;let e=t.clientRect();return e?new DOMRect(e.x,e.y,e.width,e.height):t.editor.storage[pl].rect};null===(n=r.dom.parentElement)||void 0===n||n.addEventListener("scroll",()=>{null==i||i[0].setProps({getReferenceClientRect:a})}),t.editor.storage[pl].rect=t.clientRect?a():{width:0,height:0,left:0,top:0,right:0,bottom:0},null==i||i[0].setProps({getReferenceClientRect:a})},onKeyDown:t=>{var n;return"Escape"===t.event.key?(null==i||i[0].hide(),!0):((null==i?void 0:i[0].state.isShown)||null==i||i[0].show(),null==e?void 0:null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t))},onExit:n=>{if(t){var r;let{view:e}=n.editor;null===(r=e.dom.parentElement)||void 0===r||r.removeEventListener("scroll",t)}n.editor.storage.aiCommand.active=!1,n.editor.storage.aiCommand.userPrompt="",n.editor.storage.aiCommand.completion="",null==e||e.destroy()}}}})]},addStorage:()=>({rect:{width:0,height:0,left:0,top:0,right:0,bottom:0},userPrompt:"",completion:"",title:"",active:!1})})},25716:function(e,t,n){"use strict";n.d(t,{AudioBlock:function(){return c}});var r=n(85925),i=n(11996),a=n(74023),o=n(83641),s=n(81341);let l=e=>{let{editor:t,getPos:n,node:i}=e,l=(0,o.useRef)(null),{src:u,caption:c}
16=i.attrs,d=(0,s.cn)("left"===i.attrs.align?"ml-0":"ml-auto","right"===i.attrs.align?"mr-0":"mr-auto","center"===i.attrs.align&&"mx-auto"),p=(0,o.useCallback)(()=>{t.commands.setNodeSelection(n())},[n,t.commands]);return(0,a.jsx)(r.T5,{children:(0,a.jsx)("div",{className:d,style:{width:i.attrs.width},children:(0,a.jsx)("div",{ref:l,children:(0,a.jsx)("audio",{controls:!0,className:"block",src:u,title:"",onClick:p})})})})},u=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,c=i.NB.create({name:"audio",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},poster:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"audio[src]":'audio[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["audio",(0,i.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setAudio:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,i.x2)({find:u,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}).extend({name:"audioBlock",group:"block",defining:!0,isolating:!0,addAttributes:()=>({src:{default:"",parseHTML:e=>e.getAttribute("src"),renderHTML:e=>({src:e.src})},poster:{default:"",parseHTML:e=>e.getAttribute("poster"),renderHTML:e=>({poster:e.poster})},playlistUrl:{default:"",parseHTML:e=>e.getAttribute("data-playlist-url"),renderHTML:e=>({"data-playlist-url":e.playlistUrl})},width:{default:"100%",parseHTML:e=>e.getAttribute("data-width"),renderHTML:e=>({"data-width":e.width})},align:{default:"center",parseHTML:e=>e.getAttribute("data-align"),renderHTML:e=>({"data-align":e.align})},alt:{default:void 0,parseHTML:e=>e.getAttribute("alt"),renderHTML:e=>({alt:e.alt})},caption:{default:!0,parseHTML:e=>"true"===e.getAttribute("data-caption"),renderHTML:e=>({"data-caption":e.caption})}}),parseHTML:()=>[{tag:'audio[src*="tiptap.dev"]:not([src^="data:"]), audio[src*="windows.net"]:not([src^="data:"])'}],renderHTML(e){let{HTMLAttributes:t}=e;return["audio",(0,i.P1)(this.options.HTMLAttributes,t)]},addCommands:()=>({setAudioBlock:e=>t=>{let{commands:n}=t;return n.insertContent({type:"audioBlock",attrs:{src:e.src,poster:e.poster,assetId:e.assetId,playlistUrl:e.playlistUrl}})},setAudioBlockAt:e=>t=>{let{commands:n}=t;return n.insertContentAt(e.pos,{type:"audioBlock",attrs:{src:e.src,poster:e.poster,assetId:e.assetId,playlistUrl:e.playlistUrl}})},setAudioBlockAlign:e=>t=>{let{commands:n}=t;return n.updateAttributes("audioBlock",{align:e})},setAudioBlockWidth:e=>t=>{let{commands:n}=t;return n.updateAttributes("audioBlock",{width:"".concat(Math.max(0,Math.min(100,e)),"%")})},setAudioBlockCaption:e=>t=>{let{commands:n}=t;return n.updateAttributes("audioBlock",{caption:e})}}),addNodeView:()=>(0,r.fW)(l)})},57507:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(11996);let i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,a=r.NB.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}
16,addInputRules(){return[(0,r.x2)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}).extend({group:"block"})},40226:function(e,t,n){"use strict";n.d(t,{ImageBlock:function(){return u}});var r=n(85925),i=n(11996),a=n(74023),o=n(83641),s=n(81341);let l=e=>{let{editor:t,getPos:n,node:i}=e,l=(0,o.useRef)(null),{src:u,caption:c}=i.attrs,d=(0,s.cn)("left"===i.attrs.align?"ml-0":"ml-auto","right"===i.attrs.align?"mr-0":"mr-auto","center"===i.attrs.align&&"mx-auto"),p=(0,o.useCallback)(()=>{t.commands.setNodeSelection(n())},[n,t.commands]),f=(0,o.useCallback)(e=>{let n=e.target.value;t.chain().focus(void 0,{scrollIntoView:!1}).setImageCaption(n).run()},[t]);return(0,a.jsx)(r.T5,{children:(0,a.jsx)("div",{className:d,style:{width:i.attrs.width},children:(0,a.jsxs)("div",{ref:l,children:[(0,a.jsx)("img",{className:"block",src:u,alt:"",onClick:p}),(0,a.jsx)("textarea",{className:"w-full h-16 mb-2 placeholder-black p-1 text-sm focus:border focus:border-gray-300 text-gray-400 border-0 rounded appearance-none",onBlur:f,defaultValue:c,onClick:p})]})})})},u=n(57507).E.extend({name:"imageBlock",group:"block",defining:!0,isolating:!0,addAttributes:()=>({src:{default:"",parseHTML:e=>e.getAttribute("src"),renderHTML:e=>({src:e.src})},width:{default:"100%",parseHTML:e=>e.getAttribute("data-width"),renderHTML:e=>({"data-width":e.width})},actualWidth:{default:0,parseHTML:e=>e.getAttribute("data-actual-width"),renderHTML:e=>({"data-actual-width":e.actualWidth})},actualHeight:{default:0,parseHTML:e=>e.getAttribute("data-actual-height"),renderHTML:e=>({"data-actual-height":e.actualHeight})},align:{default:"center",parseHTML:e=>e.getAttribute("data-align"),renderHTML:e=>({"data-align":e.align})},alt:{default:"",parseHTML:e=>e.getAttribute("alt"),renderHTML:e=>({alt:e.alt})},caption:{default:"",parseHTML:e=>e.getAttribute("caption"),renderHTML:e=>({caption:e.caption})}}),parseHTML:()=>[{tag:'img[src*="tiptap.dev"]:not([src^="data:"]), img[src*="windows.net"]:not([src^="data:"])'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",{class:"imageBlock"},["img",(0,i.P1)(this.options.HTMLAttributes,t)],["textarea",(0,i.P1)({class:"w-full  text-gray-400 h-16 mb-2 placeholder-black p-1 text-sm  text-gray-400 border-0 rounded appearance-none"},{defaultValue:t.caption}),t.caption]]},addCommands:()=>({setImageBlock:e=>t=>{let{commands:n}=t;return n.insertContent({type:"imageBlock",attrs:{src:e.src,caption:e.caption,actualWidth:e.actualWidth,actualHeight:e.actualHeight}})},setImageBlockAt:e=>t=>{let{commands:n}=t;return n.insertContentAt(e.pos,{type:"imageBlock",attrs:{src:e.src,caption:e.caption,actualWidth:e.actualWidth,actualHeight:e.actualHeight}})},setImageCaption:e=>t=>{let{commands:n}=t;return n.updateAttributes("imageBlock",{caption:e})},setImageBlockAlign:e=>t=>{let{commands:n}=t;return n.updateAttributes("imageBlock",{align:e})},setImageBlockWidth:e=>t=>{let{commands:n}=t;return n.updateAttributes("imageBlock",{width:"".concat(Math.max(0,Math.min(100,e)),"%")})}}),addNodeView:()=>(0,r.fW)(l)})},83960:function(e,t,n){"use strict";n.d(t,{ImageUpload:function(){return d}});var r=n(11996),i=n(85925),a=n(74023),o=n(66410);let s=(0,n(6199).Z)("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);var l=n(83641),u=n(78024);let c=e=>t=>{let{getPos:n,editor:r,node:c}=t,[d,p]=(0,l.useState)(!1),f=(0,l.useCallback)(e=>{if(e&&!d){let t=e.title;"en"!==o.ZP.language&&e.title_locale[o.ZP.language.toUpperCase()]&&(t=e.title_locale[o.ZP.language.toUpperCase()]);let{actualWidth:i,actualHeight:a}=(0,u.i)(e);if("IMAGE"===e.type)r.chain().focus().setImageBlock({src:(null==e?void 0:e.optimizedImageUrl)||e.fullUrl,assetId:e.id,caption:t,actualWidth:i,actualHeight:a}).deleteRange({from:n(),to:n()}).focus().run(),p(!0);else{let{actualHeight:i,actualWidth:a}=(0,u.i)(e);r.chain().focus().setVideoBlock({src:e.videoUrl,poster:e.fullUrl,assetId:e.id,playlistUrl:e.playlistUrl,title:t,actualHeight:i,actualWidth:a}).deleteRange({from:n(),to:n()}).focus().run(),p(!0)}}},[n,r]);return(0,a.jsx)(i.T5,{children:(0,a.jsx)("div",{className:"p-0 m-0","data-drag-handle":!0,children:(0,a.jsxs)("a",{href:"#",className:"text-black text-sm font-medium uppercase hover:cursor-pointer p-2.5 bg-white rounded-[7px] transition ease-in-out delay-150 hover:scale-110 hover:bg-amber-600 shadow justify-between items-center flex flex-row",onClick:t=>{var n,r;t.preventDefault(),e(f,null,null!==(r=null==c?void 0:null===(n=c.attrs)||void 0===n?void 0:n.type)&&void 0!==r?r:"image")},children:[(0,a.jsx)(s,{className:"mr-2"}),"Select an asset"]})})})},d=r.NB.create({name:"imageUpload",isolating:!0,defining:!0,group:"block",draggable:!0,selectable:!0,inline:!1,parseHTML(){return[{tag:'div[data-type="'.concat(this.name,'"]')}]},renderHTML(){return["div",{"data-type":this.name}]},addAttributes:()=>({type:{default:null}}),addCommands:()=>({setImageUpload:e=>t=>{let{commands:n}=t;return n.insertContent({type:"imageUpload",attrs:{type:e}})}}),addNodeView(){let e=this.options.openAssetHQHandler;return(0,i.fW)(c(e))}})},78024:function(e,t,n){"use strict";function r(e){return e.width&&e.height?{actualWidth:e.width,actualHeight:e.height}:{actualWidth:0,actualHeight:0}}n.d(t,{i:function(){return r}})},61032:function(e,t,n){"use strict";let r;n.d(t,{SlashCommand:function(){return g}});var i=n(11996),a=n(85925),o=n(15216),s=n(21870),l=n(67431),u=n(74023),c=n(83641),d=n(15935),p=n(19045),f=n(52067);let h=c.forwardRef((e,t)=>
16{let n=(0,c.useRef)(null),r=(0,c.useRef)(null),[i,a]=(0,c.useState)(0),[o,s]=(0,c.useState)(0);(0,c.useEffect)(()=>{a(0),s(0)},[e.items]);let l=(0,c.useCallback)((t,n)=>{let r=e.items[t].commands[n];e.command(r)},[e]);c.useImperativeHandle(t,()=>({onKeyDown:({event:t})=>{if("ArrowDown"===t.key){if(!e.items.length)return!1;let t=e.items[i].commands,n=o+1,r=i;return t.length-1<n&&(n=0,r=i+1),e.items.length-1<r&&(r=0),s(n),a(r),!0}if("ArrowUp"===t.key){if(!e.items.length)return!1;let t=o-1,n=i;return t<0&&(n=i-1,t=e.items[n]?.commands.length-1||0),n<0&&(n=e.items.length-1,t=e.items[n].commands.length-1),s(t),a(n),!0}return"Enter"===t.key&&!!e.items.length&&-1!==i&&-1!==o&&(l(i,o),!0)}})),(0,c.useEffect)(()=>{if(r.current&&n.current){let e=r.current.offsetTop,t=r.current.offsetHeight;n.current.scrollTop=e-t}},[o,i]);let h=(0,c.useCallback)((e,t)=>()=>{l(e,t)},[l]);return e.items.length?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(p.T,{ref:n,className:"text-black max-h-[min(80vh,24rem)] overflow-auto flex-wrap mb-8 p-2",children:(0,u.jsx)("div",{className:"grid grid-cols-1 gap-0.5",children:e.items.map((e,t)=>(0,u.jsxs)(c.Fragment,{children:[(0,u.jsx)("div",{className:"text-neutral-500 text-[0.65rem] col-[1/-1] mx-2 mt-4 font-semibold tracking-wider select-none uppercase first:mt-0.5",children:e.title},`${e.title}`),e.commands.map((e,n)=>(0,u.jsxs)(d.P,{isActive:i===t&&o===n,onClick:h(t,n),children:[(0,u.jsx)(f.J,{icon:e.icon,className:"mr-1"}),e.label]},`${e.label}`))]},`${e.title}-wrapper`))})})}):null});h.displayName="MenuList";let m="slashCommand",g=i.hj.create({name:m,priority:200,onCreate(){r=(0,l.ZP)("body",{interactive:!0,trigger:"manual",placement:"bottom-start",theme:"slash-command",maxWidth:"16rem",offset:[16,8],popperOptions:{strategy:"fixed",modifiers:[{name:"flip",enabled:!1}]}})},addProseMirrorPlugins(){return[(0,o.ZP)({editor:this.editor,char:"/",allowSpaces:!0,startOfLine:!0,pluginKey:new s.H$(m),allow:e=>{var t,n,r;let{state:i,range:a}=e,o=i.doc.resolve(a.from),s=1===o.depth,l="paragraph"===o.parent.type.name,u=(null===(t=o.parent.textContent)||void 0===t?void 0:t.charAt(0))==="/",c=this.editor.isActive("column"),d=null===(r=o.parent.textContent)||void 0===r?void 0:r.substring(null===(n=o.parent.textContent)||void 0===n?void 0:n.indexOf("/")),p=!(null==d?void 0:d.endsWith("  "));return(s&&l&&u||c&&l&&u)&&p},command:e=>{var t,n,r;let{editor:i,props:a}=e,{view:o,state:s}=i,{$head:l,$from:u}=o.state.selection,c=u.pos,d=(null==l?void 0:l.nodeBefore)?c-(null!==(r=null===(n=l.nodeBefore.text)||void 0===n?void 0:n.substring(null===(t=l.nodeBefore.text)||void 0===t?void 0:t.indexOf("/")).length)&&void 0!==r?r:0):u.start(),p=s.tr.deleteRange(d,c);o.dispatch(p),a.action(i),o.focus()},items:async e=>{let{query:t}=e;return(await n.e(6268).then(n.bind(n,6268))).default.map(e=>({...e,commands:e.commands.filter(e=>{let n=e.label.toLowerCase().trim(),r=t.toLowerCase().trim();if(e.aliases){let t=e.aliases.map(e=>e.toLowerCase().trim());return n.includes(r)||t.includes(r)}return n.includes(r)}).filter(e=>!e.shouldBeHidden||!e.shouldBeHidden(this.editor))})).filter(e=>e.commands.length>0).map(e=>({...e,commands:e.commands.map(e=>({...e,isEnabled:!0}))}))},render:()=>{let e;let t=null;return{onStart:n=>{var i;e=new a.M_(h,{props:n,editor:n.editor});let{view:o}=n.editor,s=o.dom,l=()=>{if(!n.clientRect)return n.editor.storage[m].rect;let t=n.clientRect();if(!t)return n.editor.storage[m].rect;let r=t.y;if(t.top+e.element.offsetHeight+40>window.innerHeight){let n=t.top+e.element.offsetHeight-window.innerHeight+40;r=t.y-n}return s.getBoundingClientRect().x,new DOMRect(t.x,r,t.width,t.height)};t=()=>{null==r||r[0].setProps({getReferenceClientRect:l})},null===(i=o.dom.parentElement)||void 0===i||i.addEventListener("scroll",t),null==r||r[0].setProps({getReferenceClientRect:l,appendTo:()=>document.body,content:e.element}),null==r||r[0].show()},onUpdate(t){var n;e.updateProps(t);let{view:i}=t.editor;i.dom;let a=()=>{if(!t.clientRect)return t.editor.storage[m].rect;let e=t.clientRect();return e?new DOMRect(e.x,e.y,e.width,e.height):t.editor.storage[m].rect};null===(n=i.dom.parentElement)||void 0===n||n.addEventListener("scroll",()=>{null==r||r[0].setProps({getReferenceClientRect:a})}),t.editor.storage[m].rect=t.clientRect?a():{width:0,height:0,left:0,top:0,right:0,bottom:0},null==r||r[0].setProps({getReferenceClientRect:a})},onKeyDown(t){var n;return"Escape"===t.event.key?(null==r||r[0].hide(),!0):((null==r?void 0:r[0].state.isShown)||null==r||r[0].show(),null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t))},onExit(n){if(null==r||r[0].hide(),t){var i;let{view:e}=n.editor;null===(i=e.dom.parentElement)||void 0===i||i.removeEventListener("scroll",t)}e.destroy()}}}})]},addStorage:()=>({rect:{width:0,height:0,left:0,top:0,right:0,bottom:0}})})},51209:function(e,t,n){"use strict";n.d(t,{VideoBlock:function(){return f}});var r=n(85925),i=n(11996),a=n(74023),o=n(83641),s=n(81341),l=n(48698),u=e=>{let{editor:t,getPos:n,node:i}=e,u=(0,o.useRef)(null),{src:c,poster:d,optimizedImageUrl:p,playlistUrl:f,caption:h,title:m}
16=i.attrs,[g,y]=o.useState(""),v=(0,s.cn)("left"===i.attrs.align?"ml-0":"ml-auto","right"===i.attrs.align?"mr-0":"mr-auto","center"===i.attrs.align&&"mx-auto");(0,o.useCallback)(()=>{t.commands.setNodeSelection(n())},[n,t.commands]);let b=(0,o.useMemo)(()=>({sources:f,...(d||p)&&{poster:d||p}}),[]);return(0,a.jsx)(r.T5,{children:(0,a.jsx)("div",{className:v,style:{width:i.attrs.width},children:(0,a.jsxs)("div",{ref:u,children:[g&&(0,a.jsx)("div",{children:g}),f&&(0,a.jsx)(l.Z,{options:b}),h&&(0,a.jsx)("caption",{className:"text-center block text-sm text-gray-500",children:m||h})]})})})},c=e=>{let{editor:t,getPos:n,node:i}=e,u=(0,o.useRef)(null),{src:c,poster:d,playlistUrl:p,caption:f,title:h}=i.attrs,[m,g]=o.useState(),[y,v]=o.useState("");(0,o.useEffect)(()=>{async function e(){try{let e=await fetch(p,{cache:"no-cache"});return await e.json()}catch{v("Issue with getting asset info");return}}if(p)try{e().then(e=>{g(e)}).catch(e=>{v(e)})}catch(e){v(e)}},[p]);let b=(0,s.cn)("left"===i.attrs.align?"ml-0":"ml-auto","right"===i.attrs.al
16ign?"mr-0":"mr-auto","center"===i.attrs.align&&"mx-auto");(0,o.useCallback)(()=>{t.commands.setNodeSelection(n())},[n,t.commands]);let k=(0,o.useMemo)(()=>void 0==m?{}:m.items.some(e=>"application/x-mpegURL"===e.type||"application/vnd.apple.mpegurl"===e.type)?{sources:m.items.filter(e=>"application/x-mpegURL"===e.type||"application/vnd.apple.mpegurl"===e.type).map(e=>({src:e.src,type:e.type,label:e.label})),poster:m.poster}:{sources:m.items.map(e=>({src:e.src,type:e.type,label:e.label})),poster:m.poster},[m]);return(0,a.jsx)(r.T5,{children:(0,a.jsx)("div",{className:b,style:{width:i.attrs.width},children:(0,a.jsxs)("div",{ref:u,children:[y&&(0,a.jsx)("div",{children:y}),m&&(0,a.jsx)(l.Z,{options:k}),f&&m?.title&&(0,a.jsx)("caption",{className:"text-center block text-sm text-gray-500",children:h||m?.title})]})})})};let d=e=>e.node.attrs.playlistUrl.includes(".json")?(0,a.jsx)(c,{...e}):(0,a.jsx)(u,{...e}),p=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,f=i.NB.create({name:"video",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},poster:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"video[src]":'video[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["video",(0,i.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setVideo:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}
16,addInputRules(){return[(0,i.x2)({find:p,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}).extend({name:"videoBlock",group:"block",defining:!0,isolating:!0,addAttributes:()=>({src:{default:"",parseHTML:e=>e.getAttribute("src"),renderHTML:e=>({src:e.src})},title:{default:"",parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})},poster:{default:"",parseHTML:e=>e.getAttribute("poster"),renderHTML:e=>({poster:e.poster})},playlistUrl:{default:"",parseHTML:e=>e.getAttribute("data-playlist-url"),renderHTML:e=>({"data-playlist-url":e.playlistUrl})},width:{default:"100%",parseHTML:e=>e.getAttribute("data-width"),renderHTML:e=>({"data-width":e.width})},actualWidth:{default:0,parseHTML:e=>e.getAttribute("data-actual-width"),renderHTML:e=>({"data-actual-width":e.actualWidth})},actualHeight:{default:0,parseHTML:e=>e.getAttribute("data-actual-height"),renderHTML:e=>({"data-actual-height":e.actualHeight})},align:{default:"center",parseHTML:e=>e.getAttribute("data-align"),renderHTML:e=>({"data-align":e.align})},alt:{default:void 0,parseHTML:e=>e.getAttribute("alt"),renderHTML:e=>({alt:e.alt})},caption:{default:!0,parseHTML:e=>"true"===e.getAttribute("data-caption"),renderHTML:e=>({"data-caption":e.caption})}}),parseHTML:()=>[{tag:'video[src*="tiptap.dev"]:not([src^="data:"]), video[src*="windows.net"]:not([src^="data:"])'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",{class:"imageBlock"},["video",(0,i.P1)(this.options.HTMLAttributes,t)],["caption",(0,i.P1)({class:"text-center text-gray-400 w-full h-16 mb-2 placeholder-black p-1 text-sm  border-0 rounded appearance-none"},{defaultValue:t.title||t.caption}),t.title||t.caption]]},addCommands:()=>({setVideoBlock:e=>t=>{let{commands:n}=t;return n.insertContent({type:"videoBlock",attrs:{src:e.src,poster:e.poster,assetId:e.assetId,playlistUrl:e.playlistUrl,title:e.title,actualWidth:e.actualWidth,actualHeight:e.actualHeight}})},setVideoBlockAt:e=>t=>{let{commands:n}=t;return n.insertContentAt(e.pos,{type:"videoBlock",attrs:{src:e.src,poster:e.poster,assetId:e.assetId,playlistUrl:e.playlistUrl,title:e.title,actualWidth:e.actualWidth,actualHeight:e.actualHeight}})},setVideoBlockAlign:e=>t=>{let{commands:n}=t;return n.updateAttributes("videoBlock",{align:e})},setVideoBlockWidth:e=>t=>{let{commands:n}=t;return n.updateAttributes("videoBlock",{width:"".concat(Math.max(0,Math.min(100,e)),"%")})},setVideoBlockCaption:e=>t=>{let{commands:n}=t;return n.updateAttributes("videoBlock",{caption:e})}}),addNodeView:()=>(0,r.fW)(d)})},64481:function(e,t,n){"use strict";n.r(t),n.d(t,{EmbedContentSideRenderer:function(){return l}});var r=n(74023),i=n(11300),a=n(83641),o=n(37603);let s=(0,a.memo)(e=>{let{content:t,getVideoAspect:n,...s}=e;return(0,a.useEffect)(()=>{},[]),(0,r.jsx)(i.h,{...s,children:(0,o.e)(t,n)})});function l(e){let{body:t,getVideoAspect:n}=e,[i,o]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{o(!0)},[]),i)?(0,r.jsx)(r.Fragment,{children:t.content.filter(e=>{var t,n;return"number"==typeof(null==e?void 0:null===(t=e.attrs)||void 0===t?void 0:t["data-id"])||"string"==typeof(null==e?void 0:null===(n=e.attrs)||void 0===n?void 0:n["data-id"])}).filter(e=>{var t;return null==e?void 0:null===(t=e.attrs)||void 0===t?void 0:t.side}).map(e=>{var t;return(0,r.jsx)(s,{container:null===(t=document)||void 0===t?void 0:t.querySelector("[data-id='".concat(e.attrs["data-id"],"']")),content:e,getVideoAspect:n},"embed-content-side-".concat(e.attrs["data-id"],"-").concat(e.attrs.key))})}):null}},64230:function(e,t,n){"use strict";n.r(t),n.d(t,{EmbedContentSidebarRenderer:function(){return s}});var r=n(74023),i=n(83641),a=n(37603);function o(e){return"undefined"!=typeof window&&e?document.getElementById(e):null}function s(e){var t,n;let{body:s,containerId:l,getVideoAspect:u}=e,[c,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{setTimeout(()=>{d(!0)},200)},[]);let p=(0,i.useRef)(o(l));if(!c||"undefined"==typeof window)return null;p.current||(p.current=o(l));let f=(null===(n=p.current)||void 0===n?void 0:null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.top)+window.scrollY||window.innerHeight;return(0,r.jsx)(r.Fragment,{children:s.content.filter(e=>{var t;return null==e?void 0:null===(t=e.attrs)||void 0===t?void 0:t["data-id"]}).filter(e=>{var t;return null==e?void 0:null===(t=e.attrs)||void 0===t?void 0:t.side}).map(e=>{var t;let n=(null===(t=document)||void 0===t?void 0:t.querySelector("[data-id='".concat(e.attrs["data-id"],"']"))).getBoundingClientRect().top+window.scrollY,i=f;return f=n+320,(0,r.jsx)("div",{className:"w-full",style:{marginTop:Math.max(8,n-i-160)},children:(0,a.e)(e,u)},"embed-content-sidebar-".concat(e.attrs["data-id"],"-").concat(e.attrs.key))})})}},15935:function(e,t,n){"use strict";n.d(t,{P:function(){return o},V:function(){return a}});var r=n(74023);n(83641);var i=n(81341);let a=({children:e})=>(0,r.jsx)("div",{className:"text-[.65rem] font-semibold mb-1 uppercase text-neutral-500 dark:text-neutral-400 px-1.5",children:e}),o=({children:e,isActive:t,onClick:n,disabled:a,className:o})=>{let s=(0,i.cn)("flex items-center gap-2 p-1.5 text-sm font-medium text-neutral-500 dark:text-neutral-400 text-left bg-transparent w-full rounded outline-none cursor-pointer",!t&&!a,"hover:bg-neutral-100 hover:text-neutral-800 dark:hover:bg-neutral-900 dark:hover:text-neutral-200",t&&!a&&"bg-neutral-100 text-neutral-800 dark:bg-neutral-900 dark:text-neutral-200",a&&"text-neutral-400 cursor-not-allowed dark:text-neutral-600",o);return(0,r.jsx)("span",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},children:e})}},52067:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(74023),i=n(83641),a=n(81341);let o=(0,i.memo)(({icon:e,className:t,strokeWidth:n})=>e?(0,r.jsx)(e,{className:(0,a.cn)("w-4 h-4",t),strokeWidth:n||2.5}):null);o.displayName="Icon"},19045:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(74023),i=n(83641),a=n(81341);let o=(0,i.forwardRef)(({children:e,className:t,withShadow:n=!0,withBorder:i=!0,...o},s)=>{let l=(0,a.cn)(t,"bg-white rounded-lg dark:bg-black",n?"shadow-sm":"",i?"border border-neutral-200 dark:border-neutral-800":"");return(0,r.jsx)("div",{className:l,...o,ref:s,children:e})});o.displayName="Surface"}}]);

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