Files

72 lines
472 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüTÚÆ<§https://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/8588.bd37172cb99b9949.js(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["8588"],{780542:function(e,t,r){for(var n=r(491528),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],s="AnimationFrame",a=o["request"+s],l=o["cancel"+s]||o["cancelRequest"+s],u=0;!a&&u<i.length;u++)a=o[i[u]+"Request"+s],l=o[i[u]+"Cancel"+s]||o[i[u]+"CancelRequest"+s];if(!a||!l){var c=0,d=0,h=[],p=1e3/60;a=function(e){if(0===h.length){var t=n(),r=Math.max(0,p-(t-c));c=r+t,setTimeout(function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=a,e.cancelAnimationFrame=l}},846198:function(e,t,r){"use strict";var n=r(728359);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new c(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new c(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new c(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){d[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new c(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new c(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new c(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){d[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering
`)break}return!1},Q=(e,t)=>{for(let r=t-1;r>=0&&")"!==e[r];r-=1){if("("===e[r])return r>0&&"]"===e[r-1]&&J(e,t);if(e[r]===`
`)break}return!1},ee=(e,t,r)=>{let n=0;for(let r=t-1;r>=0;r-=1)if(e[r]===`
`){n=r+1;break}let o=e.length;for(let r=t;r<e.length;r+=1)if(e[r]===`
`){o=r;break}let i=e.substring(n,o),s=0,a=!1;for(let e of i)if(e===r)s+=1;else if(" "!==e&&" "!==e){a=!0;break}return s>=3&&!a},et=(e,t,r,n)=>!!("\\"===r||e.includes("$")&&X(e,t))||("*"!==r&&"*"===n?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===r||r&&n&&q(r)&&q(n)||(!r||" "===r||" "===r||r===`
`)&&(!n||" "===n||" "===n||n===`
`))),er=e=>{let t=0,r=!1,n=e.length;for(let o=0;o<n;o+=1){if("`"===e[o]&&o+2<n&&"`"===e[o+1]&&"`"===e[o+2]){r=!r,o+=2;continue}if(r||"*"!==e[o])continue;let i=o>0?e[o-1]:"",s=o<n-1?e[o+1]:"";et(e,o,i,s)||(t+=1)}return t},en=(e,t,r,n)=>!!("\\"===r||e.includes("$")&&X(e,t)||Q(e,t)||((e,t)=>{for(let r=t-1;r>=0&&">"!==e[r];r-=1){if("<"===e[r]){let t=r+1<e.length?e[r+1]:"";return t>="a"&&t<="z"||t>="A"&&t<="Z"||"/"===t}if(e[r]===`
`)break}return!1})(e,t)||"_"===r||"_"===n||r&&n&&q(r)&&q(n)),eo=e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){r=!r,n+=2;continue}r||"*"===e[n]&&n+1<e.length&&"*"===e[n+1]&&(t+=1,n+=1)}return t},ei=e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){r=!r,n+=2;continue}r||"_"===e[n]&&n+1<e.length&&"_"===e[n+1]&&(t+=1,n+=1)}return t},es=e=>{let t=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){t=!t,r+=2;continue}if(!t&&"_"===e[r]&&"_"!==e[r-1]&&"_"!==e[r+1]&&"\\"!==e[r-1]&&!X(e,r)&&!Q(e,r)){let t=r>0?e[r-1]:"",n=r<e.length-1?e[r+1]:"";if(t&&n&&q(t)&&q(n))continue;return r}}return -1},ea=/<[a-zA-Z/][^>]*$/,el=(e,t)=>t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),eu=(e,t,r)=>{let n=t>0&&"!"===e[t-1],o=n?t-1:t;if(!e.substring(t+1).includes("]")||-1===K(e,t)){let i=e.substring(0,o);if(n)return i;if("text-only"===r){let r=((e,t)=>{for(let r=0;r<t;r++)if("["===e[r]&&!L(e,r)){if(r>0&&"!"===e[r-1])continue;let t=K(e,r);if(-1===t)return r;if(t+1<e.length&&"("===e[t+1]){let n=e.indexOf(")",t+2);-1!==n&&(r=n)}}return t})(e,t);return e.substring(0,r)+e.substring(r+1)}return`${e}](streamdown:incomplete-link)`}return null},ec=(e,t="protocol")=>{let r=e.lastIndexOf("](");if(-1!==r&&!L(e,r)){let n=((e,t,r)=>{if(e.substring(t+2).includes(")"))return null;let n=((e,t)=>{let r=1;for(let n=t-1;n>=0;n-=1)if("]"===e[n])r+=1;else if("["===e[n]&&0===(r-=1))return n;return -1})(e,t);if(-1===n||L(e,n))return null;let o=n>0&&"!"===e[n-1],i=e.substring(0,o?n-1:n);if(o)return i;let s=e.substring(n+1,t);return"text-only"===r?`${i}${s}`:`${i}[${s}](streamdown:incomplete-link)`})(e,r,t);if(null!==n)return n}for(let r=e.length-1;r>=0;r-=1)if("["===e[r]&&!L(e,r)){let n=eu(e,r,t);if(null!==n)return n}return e},ed=/^-{1,2}$/,eh=/^[\s]*-{1,2}[\s]+$/,ep=/^={1,2}$/,ef=/^[\s]*={1,2}[\s]+$/,em=RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),eg=[{handler:{name:"singleTilde",handle:e=>e&&"string"==typeof e&&e.includes("~")?e.replace(em,(t,r)=>L(e,r)?t:"\\~"):e,priority:0},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(M,(t,r,n,o)=>L(e,o)?t:`${r}\\>${n}`):e,priority:5},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(ea);return!t||void 0===t.index||L(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:10},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(`
`);if(-1===t)return e;let r=e.substring(t+1),n=e.substring(0,t),o=r.trim();if(ed.test(o)&&!r.match(eh)){let t=n.split(`
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(ep.test(o)&&!r.match(ef)){let t=n.split(`
`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:15},optionKey:"setextHeadings"},{handler:{name:"links",handle:ec,priority:20},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{let t,r;if(W.test(e))return e;let n=e.match(j);if(!n)return e;let o=n[2],i=e.lastIndexOf(n[1]);return!o||z.test(o)||L(e,i)||N(e,i)||ee(e,i,"*")?e:(e=>{let t=0,r=0,n=!1;for(let o=0;o<e.length;o+=1){if("`"===e[o]&&o+2<e.length&&"`"===e[o+1]&&"`"===e[o+2]){r>=3&&(t+=Math.floor(r/3)),r=0,n=!n,o+=2;continue}n||("*"===e[o]?r+=1:(r>=3&&(t+=Math.floor(r/3)),r=0))}return r>=3&&(t+=Math.floor(r/3)),t})(e)%2===1?(t=eo(e),r=er(e),t%2===0&&r%2===0)?e:`${e}***`:e},priority:30},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(O);if(!t)return e;let r=t[2],n=e.lastIndexOf(t[1]);return L(e,n)||N(e,n)||((e,t,r)=>{if(!t||z.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
`),o=e.substring(-1===n?0:n+1,r);return!!(V.test(o)&&t.includes(`
`))||ee(e,r,"*")})(e,r,n)?e:eo(e)%2===1?r.endsWith("*")?`${e}*`:`${e}**`:e},priority:35},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(P);if(!t){let t=e.match($);if(t){let r=e.lastIndexOf(t[1]);if(!(L(e,r)||N(e,r))&&ei(e)%2===1)return`${e}_`}return e}let r=t[2],n=e.lastIndexOf(t[1]);return L(e,n)||N(e,n)||((e,t,r)=>{if(!t||z.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
`),o=e.substring(-1===n?0:n+1,r);return!!(V.test(o)&&t.includes(`
`))||ee(e,r,"_")})(e,r,n)?e:ei(e)%2===1?`${e}__`:e},priority:40},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(F))return e;let t=(e=>{let t=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){t=!t,r+=2;continue}if(!t&&"*"===e[r]&&"*"!==e[r-1]&&"*"!==e[r+1]&&"\\"!==e[r-1]&&!X(e,r)){let t=r>0?e[r-1]:"",n=r<e.length-1?e[r+1]:"";if((!t||" "===t||" "===t||t===`
`)&&(!n||" "===n||" "===n||n===`
`)||t&&n&&q(t)&&q(n))continue;return r}}return -1})(e);if(-1===t||L(e,t)||N(e,t))return e;let r=e.substring(t+1);return!r||z.test(r)?e:er(e)%2===1?`${e}*`:e},priority:41},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(D))return e;let t=es(e);if(-1===t)return e;let r=e.substring(t+1);if(!r||z.test(r)||L(e,t)||N(e,t))return e;if((e=>{let t=0,r=!1,n=e.length;for(let o=0;o<n;o+=1){if("`"===e[o]&&o+2<n&&"`"===e[o+1]&&"`"===e[o+2]){r=!r,o+=2;continue}if(r||"_"!==e[o])continue;let i=o>0?e[o-1]:"",s=o<n-1?e[o+1]:"";en(e,o,i,s)||(t+=1)}return t})(e)%2===1){let t=(e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(eo(t)%2!==1)return null;let r=t.indexOf("**"),n=es(t);return -1!==r&&-1!==n&&r<n?`${t}_**`:null})(e);return null!==t?t:(e=>{let t=e.length;for(;t>0&&e[t-1]===`
`;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`})(e)}return e},priority:42},optionKey:"italic"},{handler:{name:"inlineCode",handle:e=>{let t=!e.match(H)||e.includes(`
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;if(null!==t)return t;let r=e.match(U);if(r&&(e.match(/```/g)||[]).length%2!==1){let t=r[2];if(!t||z.test(t))return e;if((e=>{let t=0;for(let r=0;r<e.length;r+=1){if("\\"===e[r]&&r+1<e.length&&"`"===e[r+1]){r+=1;continue}"`"!==e[r]||_(e,r)||(t+=1)}return t})(e)%2===1)return`${e}\``}return e},priority:50},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{var t,r;let n=e.match(B);if(n){let r=n[2];if(!r||z.test(r))return e;let o=e.lastIndexOf(n[1]);if(L(e,o)||N(e,o))return e;if((null==(t=e.match(Y))?void 0:t.length)%2===1)return`${e}~~`}else{let t=e.match(Z);if(t){let n=e.lastIndexOf(t[0].slice(0,2));if(L(e,n)||N(e,n))return e;if((null==(r=e.match(Y))?void 0:r.length)%2===1)return`${e}~`}}return e},priority:60},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>(e=>{let t=0,r=!1;for(let n=0;n<e.length-1;n+=1)"`"!==e[n]||el(e,n)||(r=!r),r||"$"!==e[n]||"$"!==e[n+1]||(t+=1,n+=1);return t})(e)%2===0?e:(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
`,t)||e.endsWith(`
`)?`${e}$$`:`${e}
$$`})(e),priority:70},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if("\\"===e[n]){n+=1;continue}if("`"===e[n]&&!el(e,n)){r=!r;continue}r||"$"!==e[n]||(n+1<e.length&&"$"===e[n+1]?n+=1:t+=1)}return t})(e)%2===1?`${e}$`:e,priority:75},optionKey:"inlineKatex"}],ey=r(270851);let ev=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),eb=[],ew=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=ew(e,t+1,o);if(r)return r}let i=r.validators;if(null===i)return;let s=0===t?e.join("-"):e.slice(t).join("-"),a=i.length;for(let e=0;e<a;e++){let t=i[e];if(t.validator(s))return t.classGroupId}},ex=(e,t)=>{let r=ev();for(let n in e)eS(e[n],r,n,t);return r},eS=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++)ek(e[i],t,r,n)},ek=(e,t,r,n)=>{"string"==typeof e?eE(e,t,r):"function"==typeof e?eC(e,t,r,n):eT(e,t,r,n)},eE=(e,t,r)=>{(""===e?t:eI(t,e)).classGroupId=r},eC=(e,t,r,n)=>{eA(e)?eS(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},eT=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){let[i,s]=o[e];eS(s,eI(t,i),r,n)}},eI=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let e=0;e<o;e++){let t=n[e],o=r.nextPart.get(t);o||(o=ev(),r.nextPart.set(t,o)),r=o}return r},eA=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,eR=[],eL=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),e_=/\s+/,eN=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=eN(e[n]))&&(r&&(r+=" "),r+=t);return r},eM=[],eO=e=>{let t=t=>t[e]||eM;return t.isThemeGetter=!0,t},eP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ej=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eF=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,eD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eU=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ez=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eG=e=>eF.test(e),eH=e=>!!e&&!Number.isNaN(Number(e)),eW=e=>!!e&&Number.isInteger(Number(e)),e$=e=>e.endsWith("%")&&eH(e.slice(0,-1)),eZ=e=>eD.test(e),eY=()=>!0,eq=e=>eU.test(e)&&!eB.test(e),eK=()=>!1,eX=e=>ez.test(e),eJ=e=>eV.test(e),eQ=e=>!e1(e)&&!e7(e),e0=e=>ta(e,td,eK),e1=e=>eP.test(e),e2=e=>ta(e,th,eq),e3=e=>ta(e,tp,eH),e5=e=>ta(e,tm,eY),e4=e=>ta(e,tf,eK),e9=e=>ta(e,tu,eK),e6=e=>ta(e,tc,eJ),e8=e=>ta(e,tg,eX),e7=e=>ej.test(e),te=e=>tl(e,th),tt=e=>tl(e,tf),tr=e=>tl(e,tu),tn=e=>tl(e,td),to=e=>tl(e,tc),ti=e=>tl(e,tg,!0),ts=e=>tl(e,tm,!0),ta=(e,t,r)=>{let n=eP.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},tl=(e,t,r=!1)=>{let n=ej.exec(e);return!!n&&(n[1]?t(n[1]):r)},tu=e=>"position"===e||"percentage"===e,tc=e=>"image"===e||"url"===e,td=e=>"length"===e||"size"===e||"bg-size"===e,th=e=>"length"===e,tp=e=>"number"===e,tf=e=>"family-name"===e,tm=e=>"number"===e||"weight"===e,tg=e=>"shadow"===e,ty=((e,...t)=>{let r,n,o,i,s=e=>{let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(e_),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let f=!!p,m=n(f?h.substring(0,p):h);if(!m){if(!f||!(m=n(h))){l=t+(l.length>0?" "+l:l);continue}f=!1}let g=0===c.length?"":1===c.length?c[0]:i(c).join(":"),y=d?g+"!":g,v=y+m;if(s.indexOf(v)>-1)continue;s.push(v);let b=o(m,f);for(let e=0;e<b.length;++e){let t=b[e];s.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{var l;let u;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,i)=>{r[o]=i,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t)
`:e.map((e,t)=>{let r={},n=!!e.bgColor;if(e.color&&(r["--sdm-c"]=e.color),e.bgColor&&(r["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,o]of Object.entries(e.htmlStyle))"color"===t?r["--sdm-c"]=o:"background-color"===t?(r["--sdm-tbg"]=o,n=!0):r[t]=o;return(0,tv.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",n&&"bg-[var(--sdm-tbg)]",n&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:r,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),tD=({className:e,language:t,style:r,isIncomplete:n,...o})=>{let i=tP();return(0,tv.jsx)("div",{className:i("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":n||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...o})},tU=(0,n.createContext)({code:""}),tB=()=>(0,n.useContext)(tU),tz=({language:e})=>{let t=tP();return(0,tv.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,tv.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},tV=(0,n.lazy)(()=>r.e("4895").then(r.bind(r,471474)).then(e=>({default:e.HighlightedCodeBlockBody}))),tG=({code:e,language:t,className:r,children:o,isIncomplete:i=!1,startLine:s,lineNumbers:a,...l})=>{let u=tP(),c=(0,n.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&e[t-1]===`
`;)t--;return e.slice(0,t)})(e),[e]),d=(0,n.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:c.split(`
`).map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[c]);return(0,tv.jsx)(tU.Provider,{value:{code:e},children:(0,tv.jsxs)(tD,{isIncomplete:i,language:t,children:[(0,tv.jsx)(tz,{language:t}),o?(0,tv.jsx)("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,tv.jsx)("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:o})}):null,(0,tv.jsx)(n.Suspense,{fallback:(0,tv.jsx)(tF,{className:r,language:t,lineNumbers:a,result:d,startLine:s,...l}),children:(0,tv.jsx)(tV,{className:r,code:c,language:t,lineNumbers:a,raw:d,startLine:s,...l})})]})})},tH={CheckIcon:e=>(0,tv.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,tv.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,tv.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,tv.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,tv.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,tv.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,tv.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,tv.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,tv.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,tv.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,tv.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,tv.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,tv.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,tv.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,tv.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(
`)&&(t=!0)}return t?r?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},o=Array(t.length>0?r.length+1:r.length),i=0;for(let e of(t.length>0&&(o[i]=t.map(n).join(","),i+=1),r))o[i]=e.map(n).join(","),i+=1;return o.join(`
`)},ro=e=>{let{headers:t,rows:r}=e,n=e=>{let t=!1;for(let r of e)if(" "===r||r===`
`||"\r"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)" "===t?r.push("\\t"):t===`
`?r.push("\\n"):"\r"===t?r.push("\\r"):r.push(t);return r.join("")},o=Array(t.length>0?r.length+1:r.length),i=0;for(let e of(t.length>0&&(o[i]=t.map(n).join(" "),i+=1),r))o[i]=e.map(n).join(" "),i+=1;return o.join(`
`)},ri=e=>{let t=!1;for(let r of e)if("\\"===r||"|"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)"\\"===t?r.push("\\\\"):"|"===t?r.push("\\|"):r.push(t);return r.join("")},rs=e=>{let{headers:t,rows:r}=e;if(0===t.length)return"";let n=Array(r.length+2),o=0,i=t.map(e=>ri(e));n[o]=`| ${i.join(" | ")} |`,o+=1;let s=Array(t.length);for(let e=0;e<t.length;e+=1)s[e]="---";for(let e of(n[o]=`| ${s.join(" | ")} |`,o+=1,r))if(e.length<t.length){let r=Array(t.length);for(let n=0;n<t.length;n+=1)r[n]=n<e.length?ri(e[n]):"";n[o]=`| ${r.join(" | ")} |`,o+=1}else{let t=e.map(e=>ri(e));n[o]=`| ${t.join(" | ")} |`,o+=1}return n.join(`
`)},ra=({children:e,className:t,onCopy:r,onError:o,timeout:i=2e3})=>{let s=tP(),[a,l]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),h=(0,n.useRef)(0),{isAnimating:p}=(0,n.useContext)(nT),f=tK(),m=async e=>{var t,n;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==o||o(Error("Clipboard API not available"));return}try{let t=null==(n=d.current)?void 0:n.closest('[data-streamdown="table-wrapper"]'),s=null==t?void 0:t.querySelector("table");if(!s){null==o||o(Error("Table not found"));return}let a=rr(s),u=(({csv:rn,tsv:ro,md:rs})[e]||rs)(a),p=new ClipboardItem({"text/plain":new Blob([u],{type:"text/plain"}),"text/html":new Blob([s.outerHTML],{type:"text/html"})});await navigator.clipboard.write([p]),c(!0),l(!1),null==r||r(e),h.current=window.setTimeout(()=>c(!1),i)}catch(e){null==o||o(e)}};(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(h.current)}},[]);let g=tZ(),y=u?g.CheckIcon:g.CopyIcon;return(0,tv.jsxs)("div",{className:s("relative"),ref:d,children:[(0,tv.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>l(!a),title:f.copyTable,type:"button",children:null!=e?e:(0,tv.jsx)(y,{height:14,width:14})}),a?(0,tv.jsxs)("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,tv.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),(0,tv.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),(0,tv.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},rl=({children:e,className:t,onDownload:r,onError:o})=>{let i=tP(),[s,a]=(0,n.useState)(!1),l=(0,n.useRef)(null),{isAnimating:u}=(0,n.useContext)(nT),c=tK(),d=tZ(),h=e=>{var t;try{let n=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),i=null==n?void 0:n.querySelector("table");if(!i){null==o||o(Error("Table not found"));return}let s=rr(i),u="csv"===e?rn(s):rs(s);tM(`table.${"csv"===e?"csv":"md"}`,u,"csv"===e?"text/csv":"text/markdown"),a(!1),null==r||r(e)}catch(e){null==o||o(e)}};return(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&a(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,tv.jsxs)("div",{className:i("relative"),ref:l,children:[(0,tv.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!s),title:c.downloadTable,type:"button",children:null!=e?e:(0,tv.jsx)(d.DownloadIcon,{size:14})}),s?(0,tv.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,tv.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("csv"),title:c.downloadTableAsCsv,type:"button",children:c.tableFormatCsv}),(0,tv.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("markdown"),title:c.downloadTableAsMarkdown,type:"button",children:c.tableFormatMarkdown})]}):null]})},ru=({children:e,className:t,showCopy:r=!0,showDownload:o=!0})=>{let{Maximize2Icon:i,XIcon:s}=tZ(),a=tP(),[l,u]=(0,n.useState)(!1),{isAnimating:c}=(0,n.useContext)(nT),d=tK(),h=()=>{u(!1)};return(0,n
`),r=null,n=0;for(let e of t){let t=r0.exec(e);if(null===r){if(t){let e=t[1];r=e[0],n=e.length}}else if(t){let e=t[1],o=e[0],i=e.length;o===r&&i>=n&&(r=null,n=0)}}return null!==r},r3=()=>e=>{(0,o.YR)(e,"html",(e,t,r)=>{r&&"number"==typeof t&&(r.children[t]={type:"text",value:e.value})})},r5=[],r4={allowDangerousHtml:!0},r9=new WeakMap,r6=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,o=e.remarkRehypeOptions;if(!(r||n||o)){let t="default";return this.keyCache.set(e,t),t}let i=e=>{if(!e||0===e.length)return"";let t="";for(let r=0;r<e.length;r+=1){let n=e[r];if(r>0&&(t+=","),Array.isArray(n)){let[e,r]=n;if("function"==typeof e){let r=r9.get(e);r||(r=e.name,r9.set(e,r)),t+=r}else t+=String(e);t+=":",t+=JSON.stringify(r)}else if("function"==typeof n){let e=r9.get(n);e||(e=n.name,r9.set(n,e)),t+=e}else t+=String(n)}return t},s=i(r),a=i(n),l=o?JSON.stringify(o):"",u=`${a}::${s}::${l}`;return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(r,t)}clear(){this.cache.clear()}},r8=e=>{let t=r7(e),r=e.children||"";return nr(t.runSync(t.parse(r),r),e)},r7=e=>{let t=r6.get(e);if(t)return t;let r=ne(e);return r6.set(e,r),r},ne=e=>{let t=e.rehypePlugins||r5,r=e.remarkPlugins||r5,n=t.some(e=>Array.isArray(e)?e[0]===m:e===m)?r:[...r,r3],o=e.remarkRehypeOptions?{...r4,...e.remarkRehypeOptions}:r4;return(0,tE.l)().use(tS.A).use(n).use(tk.A,o).use(t)},nt=e=>e,nr=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:i,skipHtml:s,unwrapDisallowed:a,urlTransform:l}=t;if(r||n||i||s||l){let t=l||nt;(0,o.YR)(e,(e,o,l)=>{var u;let c;return"raw"===e.type&&l&&"number"==typeof o?(u=e.value,s?l.children.splice(o,1):l.children[o]={type:"text",value:u},o):"element"===e.type&&(((e,t)=>{var r;for(let n in tx.$)if(Object.hasOwn(tx.$,n)&&Object.hasOwn(e.properties,n)){let o=e.properties[n],i=tx.$[n];(null===i||i.includes(e.tagName))&&(e.properties[n]=null!=(r=t(String(o||""),n,e))?r:void 0)}})(e,t),c=!1,n?c=!n.includes(e.tagName):i&&(c=i.includes(e.tagName)),!c&&r&&"number"==typeof o&&(c=!r(e,o,l)),c&&l&&"number"==typeof o)?(a&&e.children?l.children.splice(o,1,...e.children):l.children.splice(o,1),o):void 0})}return(0,tw.H)(e,{Fragment:tv.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:tv.jsx,jsxs:tv.jsxs,passKeys:!0,passNode:!0})},nn=/\[\^[\w-]{1,200}\](?!:)/,no=/\[\^[\w-]{1,200}\]:/,ni=/<(\w+)[\s>]/,ns=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),na=new Map,nl=new Map,nu=(e,t)=>{if(ns.has(t.toLowerCase()))return 0;let r=e.match((e=>{let t=e.toLowerCase(),r=na.get(t);if(r)return r;let n=RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return na.set(t,n),n})(t));if(!r)return 0;let n=0;for(let e of r)e.trimEnd().endsWith("/>")||(n+=1);return n},nc=(e,t)=>{let r=e.match((e=>{let t=e.toLowerCase(),r=nl.get(t);if(r)return r;let n=RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return nl.set(t,n),n})(t));return r?r.length:0},nd=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)"$"===e[r]&&"$"===e[r+1]&&(t+=1,r+=1);return t},nh=e=>{let t=nn.test(e),r=no.test(e);if(t||r)return[e];let n=tC.JG.lex(e,{gfm:!0}),o=[],i=[],s=!1;for(let e of n){let t=e.raw,r=o.length;if(i.length>0){o[r-1]+=t;let e=i.at(-1),n=nu(t,e),s=nc(t,e);for(let t=0;t<n;t+=1)i.push(e);for(let t=0;t<s;t+=1)i.length>0&&i.at(-1)===e&&i.pop();continue}if("html"===e.type&&e.block){let e=t.match(ni);if(e){let r=e[1];nu(t,r)>nc(t,r)&&i.push(r)}}if(r>0&&!s){let e=o[r-1];if(nd(e)%2===1){o[r-1]=e+t;continue}}o.push(t),"space"!==e.type&&(s="code"===e.type)}return o},np=/([\\`*_~[\]|])/g,nf=e=>e.replace(np,"\\$1"),nm=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(nm).join(""):"",ng=e=>t=>{if(!e||0===e.length)return;let r=new Set(e.map(e=>e.toLowerCas
`))return t+r+n;let o=r.replace(/\n\n/g,`
<!---->
`),i=(o.startsWith(`
`)?"":`
`)+o+(o.endsWith(`
`)?"":`
`);return`${t}${i}${n}
`})}return r})(r,z)),r},[e,t,o,w,z,T]),G=(0,n.useMemo)(()=>g(V),[V,g]),[H,W]=(0,n.useState)(G);(0,n.useEffect)(()=>{"streaming"!==t||K?W(G):j(()=>{W(G)})},[G,t]);let $="streaming"===t?H:G,Z=(0,n.useMemo)(()=>"auto"===r?$.map(rq):void 0,[$,r]),Y=(0,n.useMemo)(()=>$.map((e,t)=>`${O}-${t}`),[$.length,O]),q=(0,n.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),K=(0,n.useMemo)(()=>q?"true"===q?tL():tL(f):null,[q]),X=(0,n.useMemo)(()=>{var e,r;return{shikiTheme:null!=(r=null==(e=null==b?void 0:b.code)?void 0:e.getThemes())?r:c,controls:h,isAnimating:p,lineNumbers:S,mode:t,mermaid:d,linkSafety:x}},[c,h,p,S,t,d,x,null==b?void 0:b.code]),J=(0,n.useMemo)(()=>I?JSON.stringify(I):"",[I]),Q=(0,n.useMemo)(()=>({...tY,...I}),[J]),ee=(0,n.useMemo)(()=>{let{inlineCode:e,...t}=null!=s?s:{},r={...r$,...t};if(e){let t=r.code;r.code=r=>"data-block"in r?t?(0,n.createElement)(t,r):null:(0,n.createElement)(e,r)}return r},[s]),et=(0,n.useMemo)(()=>{let e=[];return null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsBefore]),e=[...e,...l],null!=b&&b.cjk&&(e=[...e,...b.cjk.remarkPluginsAfter]),null!=b&&b.math&&(e=[...e,b.math.remarkPlugin]),e},[l,null==b?void 0:b.math,null==b?void 0:b.cjk]),er=(0,n.useMemo)(()=>{var e;let t=a;if(C&&Object.keys(C).length>0&&a===nx){let r={...nb,tagNames:[...null!=(e=nb.tagNames)?e:[],...Object.keys(C)],attributes:{...nb.attributes,...C}};t=[nw.raw,[v,r],nw.harden]}return T&&T.length>0&&(t=[...t,[ng,T]]),null!=b&&b.math&&(t=[...t,b.math.rehypePlugin]),K&&p&&(t=[...t,K.rehypePlugin]),t},[a,null==b?void 0:b.math,K,p,C,T]),en=(0,n.useMemo)(()=>{if(!p||0===$.length)return!1;let e=$.at(-1);return r2(e)||(e=>{for(let t of e.split(`
`)){let e=t.trim();if(e.length>0&&e.includes("|")&&r1.test(e))return!0}return!1})(e)},[p,$]),eo=(0,n.useMemo)(()=>y&&p&&!en?{"--streamdown-caret":`"${nk[y]}"`}:void 0,[y,p,en]);return"static"===t?(0,tv.jsx)(tq.Provider,{value:Q,children:(0,tv.jsx)(t9.Provider,{value:null!=b?b:null,children:(0,tv.jsx)(nT.Provider,{value:X,children:(0,tv.jsx)(t$,{icons:A,children:(0,tv.jsx)(tO.Provider,{value:F,children:(0,tv.jsx)("div",{className:F("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",u),dir:"auto"===r?rq(V):r,children:(0,tv.jsx)(r8,{components:ee,rehypePlugins:er,remarkPlugins:et,...M,children:V})})})})})})}):(0,tv.jsx)(tq.Provider,{value:Q,children:(0,tv.jsx)(t9.Provider,{value:null!=b?b:null,children:(0,tv.jsx)(nT.Provider,{value:X,children:(0,tv.jsx)(t$,{icons:A,children:(0,tv.jsx)(tO.Provider,{value:F,children:(0,tv.jsxs)("div",{className:F("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",y&&!en?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,u),style:eo,children:[0===$.length&&y&&p&&(0,tv.jsx)("span",{}),$.map((e,t)=>{var n;let s=t===$.length-1,a=p&&s&&r2(e);return(0,tv.jsx)(m,{animatePlugin:K,components:ee,content:e,dir:null!=(n=null==Z?void 0:Z[t])?n:"auto"!==r?r:void 0,index:t,isIncomplete:a,rehypePlugins:er,remarkPlugins:et,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:o,...M},Y[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);nA.displayName="Streamdown";var nR=({children:e,className:t,minZoom:r=.5,maxZoom:o=3,zoomStep:i=.1,showControls:s=!0,initialZoom:a=1,fullscreen:l=!1})=>{let{RotateCcwIcon:u,ZoomInIcon:c,ZoomOutIcon:d}=tZ(),h=tP(),p=(0,n.useRef)(null),f=(0,n.useRef)(null),[m,g]=(0,n.useState)(a),[y,v]=(0,n.useState)({x:0,y:0}),[b,w]=(0,n.useState)(!1),[x,S]=(0,n.useState)({x:0,y:0}),[k,E]=(0,n.useState)({x:0,y:0}),C=(0,n.useCallback)(e=>{g(t=>Math.max(r,Math.min(o,t+e)))},[r,o]),T=(0,n.useCallback)(()=>{C(i)},[C,i]),I=(0,n.useCallback)(()=>{C(-i)},[C,i]),A=(0,n.useCallback)(()=>{g(a),v({x:0,y:0})},[a]),R=(0,n.useCallback)(e=>{e.preventDefault(),C(e.deltaY>0?-i:i)},[C,i]),L=(0,n.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;w(!0),S({x:e.clientX,y:e.clientY}),E(y);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[y]),_=(0,n.useCallback)(e=>{if(!b)return;e.preventDefault();let t=e.clientX-x.x,r=e.clientY-x.y;v({x:k.x+t,y:k.y+r})},[b,x,k]),N=(0,n.useCallback)(e=>{w(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,n.useEffect)(()=>{let e=p.current;if(e)return e.addEventListener("wheel",R,{passive:!1}),()=>{e.removeEventListener("wheel",R)}},[R]),(0,n.useEffect)(()=>{let e=f.current;if(e&&b)return document.body.style.userSelect="none",e.addEventListener("pointermove",_,{passive:!1}),e.addEventListener("pointerup",N),e.addEventListener("pointercancel",N),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",_),e.removeEventListener("pointerup",N),e.removeEventListener("pointercancel",N)}},[b,_,N]),(0,tv.jsxs)("div",{className:h("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",t),ref:p,style:{cursor:b?"grabbing":"grab"},children:[s?(0,tv.jsxs)("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,tv.jsx)("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-for
//# sourceMappingURL=8588.bd37172cb99b9949.js.mapØA
—Eoúôü¢62
GET († È"
accept-rangesbytes"
access-control-allow-origin*"
age3650"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5++mkKaJRwfj2b0jh065dzw=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:21 GMT"*
etag""fbe9a429a251c1f8f66f48e1d3ae5dcf""(
expiresSun, 08 Nov 2026 07:44:53 GMT".
last-modifiedThu, 05 Nov 2026 06:18:38 GMT")
ohc-cache-hitcz7cm57 [2], tz2ix74 [2]"
ohc-file-size126220"6
ohc-global-saved-timeThu, 05 Nov 2026 07:44:53 GMT"
server JSP3/2.0.14"
timing-allow-origin*"
x-bce-content-crc32 842441468""
x-bce-content-crc32c
2627486358".
x-bce-content-crc64ecma7597461514052049975"j