(self.webpackChunk=self.webpackChunk||[]).push([[1953],{87169:function(rt,ct,te){"use strict";te.d(ct,{Z:function(){return Se}});var E=te(60499),xe=te(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ze=Le,ge=te(7657),me=function(Ie,Xe){return xe.createElement(ge.Z,(0,E.Z)({},Ie,{ref:Xe,icon:ze}))},Ce=xe.forwardRef(me),Se=Ce},12893:function(rt,ct,te){"use strict";te.d(ct,{Z:function(){return Se}});var E=te(60499),xe=te(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},ze=Le,ge=te(7657),me=function(Ie,Xe){return xe.createElement(ge.Z,(0,E.Z)({},Ie,{ref:Xe,icon:ze}))},Ce=xe.forwardRef(me),Se=Ce},32134:function(rt,ct,te){"use strict";te.d(ct,{Z:function(){return Se}});var E=te(60499),xe=te(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},ze=Le,ge=te(7657),me=function(Ie,Xe){return xe.createElement(ge.Z,(0,E.Z)({},Ie,{ref:Xe,icon:ze}))},Ce=xe.forwardRef(me),Se=Ce},32050:function(rt,ct,te){"use strict";te.d(ct,{Z:function(){return Se}});var E=te(60499),xe=te(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},ze=Le,ge=te(7657),me=function(Ie,Xe){return xe.createElement(ge.Z,(0,E.Z)({},Ie,{ref:Xe,icon:ze}))},Ce=xe.forwardRef(me),Se=Ce},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(rt,ct){"use strict";ct.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(rt,ct){"use strict";ct.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var rt={},ct="5.0",te={},E=null,xe=!1,Le=!1,ze=null,ge=!1,me=null,Ce=null,Se=0;Se4?parseFloat(Be):5};rt.setHTML5Codebase=function(Be,Je){Ce=Be,qe(Be,Je)},rt.setJavaCodebase=rt.setJavaCodebaseVersion=rt.isCompiledInstalled=rt.setPreCompiledScriptPath=rt.setPreCompiledResourcePath=function(){},rt.setHTML5CodebaseVersion=function(Be,Je){var tt=parseFloat(Be);if(tt!==NaN&&tt<5){console.log("The GeoGebra HTML5 codebase version "+tt+" is deprecated. Using version latest instead.");return}me=Be,ce(Be,Je)},rt.getHTML5CodebaseVersion=function(){return Pe},rt.getParameters=function(){return te},rt.setFontsCSSURL=function(Be){Ge=Be},rt.setGiacJSURL=function(Be){},rt.setJNLPFile=function(Be){Ie=Be},rt.setJNLPBaseDir=function(Be){},rt.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Je="auto",tt=te.id,at,nt=!1,yt=0;yt=5)return!0;var Be=rt.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},rt.startAnimation=function(){var Be=rt.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},rt.stopAnimation=function(){var Be=rt.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},rt.getAppletObject=function(){var Be=te.id!==void 0?te.id:"ggbApplet";return window[Be]},rt.resize=function(){};var $e=function(Be,Je,tt){var at=document.createElement("param");at.setAttribute("name",Je),at.setAttribute("value",tt),Be.appendChild(at)},Ee=function(Be){return Be&&Be!=="false"},Ze=function(Be,Je,tt){We(Pe)<=4.2&&(tt=!0);var at=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Pe||ggbHTML5LoadedCodebaseIsWebSimple&&!Fe)&&(at=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var yt=Je.width,_e=Je.height;if(Je.disableAutoScale=Je.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Je.disableAutoScale,Je.width!==void 0)if(We(Pe)<=4.4)Ee(Je.showToolBar)&&(Je.height-=7),Ee(Je.showAlgebraInput)&&(Je.height-=37),Je.width<605&&Ee(Je.showToolBar)&&(Je.width=605,yt=605);else{var gt=100;(Ee(Je.showToolBar)||Ee(Je.showMenuBar))&&(Je.hasOwnProperty("customToolBar")&&(Je.customToolbar=Je.customToolBar),gt=Ee(Je.showMenuBar)?245:155),yt=5?(Je.appletOnLoad=function(Ot){var Yt=Be.querySelector(".ggb_preview");Yt&&Yt.parentNode.removeChild(Yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(re),window.GGBT_wsf_view&&$(window).trigger("resize"),se(Ot)},ee||re.appendChild(oe)):nt.appendChild(oe),re.appendChild(nt),ee||Be.appendChild(re),setTimeout(function(){rt.resize()},1)}else{var le=document.createElement("div");le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.appendChild(nt),Be.appendChild(le),Je.appletOnLoad=function(Ot){rt.resize(),se(Ot)}}function ie(Ot,Yt){Yt&&typeof Yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ot,Yt.appletOnLoad):renderGGBElement(Ot),st("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Yt)}function ke(Ot,Yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ot,params:Yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Fn){ie(Fn.article,Fn.params)}),html5AppletsToProcess=null)},We(Pe)<5&&(Ot.className+=" geogebraweb")):ie(Ot,Yt)}if(at){scriptLoadStarted=!0;for(var Et=0;Et0?(kt.remove(),re.attr("id","fullscreencontent").show(),jQuery(se).append(re),window.dispatchEvent(new Event("resize"))):Ze(kt,Je,!1),window.GGBT_wsf_view.launchFullScreen(se)}else Ye=at,Ze(Be,Je,!1);if(!window.GGBT_wsf_view)for(_e=0;_eBe/4*3&&(kt=Be/4*3),se=kt/5.8,gt.setAttribute("src",Ae),gt.setAttribute("width",kt),gt.setAttribute("height",se);var re=(Be-kt)/2,ee=(Je-se)/2;gt.style.left=re+"px",gt.style.top=ee+"px",nt.appendChild(gt)}}return nt.appendChild(_e),nt},ut=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(Be,Je){if(Pe=Be,Je){qe(Pe,!0);return}var tt=!xe;if(tt){var at=We(Pe);!isNaN(at)&&at<4.4&&(tt=!1)}var nt,yt;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var _e=Pe.indexOf("//");_e>0?yt=Pe:_e===0?yt=nt+Pe:yt="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in he)if(Pe.slice(he[gt].length*-1)===he[gt]||Pe.slice((he[gt].length+1)*-1)===he[gt]+"/"){qe(yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Ee(te.showToolBar)&&!Ee(te.showMenuBar)&&!Ee(te.showAlgebraInput)&&!Ee(te.enableRightClick)&&(!te.appName||te.appName=="classic")?yt+="webSimple/":yt+="web3d/",qe(yt,!1)},qe=function(Be,Je){if(Be.requirejs){Xe=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),Xe=Be,Je===null&&(Je=Be.indexOf("http")===-1),Ne=Je,ve="web.nocache.js",Fe=!1;var tt=Xe.split("/");tt.length>1&&(!Je&&tt[tt.length-2]==="webSimple"?(ve="webSimple.nocache.js",Fe=!0):he.indexOf(tt[tt.length-2])>=0&&(ve=tt[tt.length-2]+".nocache.js")),tt=Be.split("/"),Pe=tt[tt.length-3],Pe.substr(0,4)==="test"?Pe=Pe.substr(4,1)+"."+Pe.substr(5,1):(Pe.substr(0,3)==="war"||Pe.substr(0,4)==="beta")&&(Pe="5.0");var at=parseFloat(Pe);at!==NaN&&at<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead."),ce("5.0",Je))},st=function(Be,Je){window.console&&window.console.log&&(!Je||typeof Je.showLogging=="undefined"||Je.showLogging&&Je.showLogging!=="false")&&console.log(Be)};te.material_id!==void 0?Te(Oe):Oe();function Oe(){var Be=ct;me!==null?Be=me:parseFloat(Be)<5&&(Be="5.0"),ce(Be,!1),Ce!==null&&qe(Ce,Ne),ge=!0}return rt},GGBAppletUtils=function(){"use strict";function rt(){return window.GGBT_wsf_edit!==void 0}function ct(ge,me){me!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+me+","+me+")",ge.style.webkitTransform="scale("+me+","+me+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function te(ge,me,Ce,Se,ye,Ie){var Xe=null;if(Ie!=null&&Ie!="")for(var Ne=ge.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Ie+" ")>-1){Xe=Ne;break}else Ne=Ne.parentNode;var Ye=0,Pe=0,ve=0,Fe=0,De=0,Ae=0,Ve=0;if(Xe)Ye=Xe.offsetWidth,Pe=Math.max(Se?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ye=Math.min(window.innerWidth,document.documentElement.clientWidth),Pe=Math.min(window.innerHeight,document.documentElement.clientHeight),ve=Ye):(Ye=window.innerWidth,Pe=window.innerHeight,ve=window.innerWidth),ge){var Ge=ge.getBoundingClientRect();Ge.left>0&&Ge.left<=Ye&&(ye===void 0||!ye)&&(document.dir==="rtl"?(De=Ye-Ge.width-Ge.left,Ae=ve<=480?10:30):(Ae=Ge.left,De=ve<=480?10:30),Fe=Ae+De)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Re=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe=40,Ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Fe=0,Ve=40)}}return ge&&((Ce===void 0||!Ce)&&me>0&&me+Fe1&&(Ie=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))ye=E(ge,me,Ie,Ce,ge.scaleContainerClass);else return Se;return Ie&&(!ge.hasOwnProperty("scale")||Se===1)?ye:Math.min(Se,ye)}function Le(ge){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),Ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=ge.getBoundingClientRect(),ye=(me-Se.width)/2,Ie=(Ce-Se.height)/2;Ie<0&&(Ie=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ye<40?ge.style.left="40px":ge.style.left=ye+"px",ge.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ge.style.top="40px":ge.style.top=Ie+"px",ge.style.left=ye+"px")}function ze(ge,me){var Ce=ge.querySelector(".appletParameters");if(Ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==Ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(Ce.parentElement&&/fullscreen/.test(Ce.parentElement.className))return;var Se=xe(me,ge);rt()&&Ce.setAttribute("data-param-scale",Se);for(var ye=null,Ie=0;Ie=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(rt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(rt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(rt){var ct=c[rt];return ct==null?null:ct},r=d,webModule.__errFn=e}function B(){function rt(ge){var me=ge.lastIndexOf(rb);me==-1&&(me=ge.length);var Ce=ge.indexOf(sb);Ce==-1&&(Ce=ge.length);var Se=ge.lastIndexOf(tb,Math.min(Ce,me));return Se>=O?ge.substring(O,Se+P):W}function ct(ge){if(!ge.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=ge+vb,ge=rt(me.src)}return ge}function te(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function E(){for(var ge=o.getElementsByTagName(_),me=O;meO?ge[ge.length-P].href:W}function Le(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var ze=te();return ze==W&&(ze=E()),ze==W&&(ze=xe()),ze==W&&Le()&&(ze=rt(o.location.href)),ze=ct(ze),ze}function C(rt){return rt.match(/^\//)||rt.match(/^[a-zA-Z]+:\/\//)?rt:webModule.__moduleBase+rt}function D(){var rt=[],ct=O,te=[],E=[];function xe(ge){var me=E[ge](),Ce=te[ge];if(me in Ce)return me;var Se=[];for(var ye in Ce)Se[Ce[ye]]=ye;throw r&&r(ge,Se,me),null}if(__gwt_isKnownPropertyValue=function(ge,me){return me in te[ge]},webModule.__getPropMap=function(){var ge={};for(var me in te)te.hasOwnProperty(me)&&(ge[me]=xe(me));return ge},webModule.__computePropValue=xe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Le;try{Le=Cb;var ze=Le.indexOf(Db);ze!=-1&&(ct=parseInt(Le.substring(ze+P),$),Le=Le.substring(O,ze))}catch(ge){}return webModule.__softPermutationId=ct,C(Le+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(rt,ct,te){"use strict";te.d(ct,{Ax:function(){return ze},Ds:function(){return ge},KI:function(){return Ce},SI:function(){return Le},f1:function(){return xe}});var E=te(14185);function xe(Se){let ye=!0;if(Se.length>0){for(let Ie=0;IeFe in ve?Le(ve,Fe,{enumerable:!0,configurable:!0,writable:!0,value:De}):ve[Fe]=De,Ie=(ve,Fe)=>{for(var De in Fe||(Fe={}))Ce.call(Fe,De)&&ye(ve,De,Fe[De]);if(me)for(var De of me(Fe))Se.call(Fe,De)&&ye(ve,De,Fe[De]);return ve},Xe=(ve,Fe)=>ze(ve,ge(Fe)),Ne=(ve,Fe)=>{var De={};for(var Ae in ve)Ce.call(ve,Ae)&&Fe.indexOf(Ae)<0&&(De[Ae]=ve[Ae]);if(ve!=null&&me)for(var Ae of me(ve))Fe.indexOf(Ae)<0&&Se.call(ve,Ae)&&(De[Ae]=ve[Ae]);return De},Ye=(ve,Fe,De)=>new Promise((Ae,Ve)=>{var Ge=Ue=>{try{We(De.next(Ue))}catch(it){Ve(it)}},Re=Ue=>{try{We(De.throw(Ue))}catch(it){Ve(it)}},We=Ue=>Ue.done?Ae(Ue.value):Promise.resolve(Ue.value).then(Ge,Re);We((De=De.apply(ve,Fe)).next())});const Pe=ve=>{var Fe=ve,{children:De}=Fe,Ae=Ne(Fe,["children"]);const[Ve,Ge]=(0,xe.useState)(!1);return xe.createElement(E.ZP,Xe(Ie({},Ae),{loading:Ve,onClick:Re=>Ye(void 0,null,function*(){try{Ge(!0),yield Ae.onClick(Re),Ge(!1)}catch(We){console.error(We),Ge(!1)}})}),De)}},74410:function(rt,ct,te){"use strict";var E=te(86204),xe=te.n(E),Le=Object.defineProperty,ze=(Se,ye,Ie)=>ye in Se?Le(Se,ye,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Se[ye]=Ie,ge=(Se,ye,Ie)=>ze(Se,typeof ye!="symbol"?ye+"":ye,Ie),me=(Se,ye,Ie)=>new Promise((Xe,Ne)=>{var Ye=Fe=>{try{ve(Ie.next(Fe))}catch(De){Ne(De)}},Pe=Fe=>{try{ve(Ie.throw(Fe))}catch(De){Ne(De)}},ve=Fe=>Fe.done?Xe(Fe.value):Promise.resolve(Fe.value).then(Ye,Pe);ve((Ie=Ie.apply(Se,ye)).next())});class Ce extends E.EventEmitter{constructor(ye,Ie){super(),ge(this,"url"),ge(this,"body"),ge(this,"fullContent",""),ge(this,"controller",null),ge(this,"buffer",""),this.url=ye,this.body=Ie}startStream(){return me(this,null,function*(){this.controller=new AbortController;const{signal:ye}=this.controller;try{const Ie=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ye});if(!Ie.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Ie.status}`);const Xe=Ie.headers.get("content-type");if(!Xe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Xe.includes("application/json")){const Pe=yield Ie.json();this.emit("error",Pe);return}if(!Xe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Ne=Ie.body.getReader(),Ye=new TextDecoder("utf-8");for(;;){const{done:Pe,value:ve}=yield Ne.read();if(Pe)break;const Fe=Ye.decode(ve,{stream:!0});this.buffer+=Fe;const De=this.buffer.split(` `);this.buffer=De.pop()||"";for(const Ae of De)if(Ae.startsWith("data:")){const Ve=Ae.slice(5).trim();if(Ve==="[DONE]")break;try{const Ge=JSON.parse(Ve);Ge.data&&this.handleData(Ge.data)}catch(Ge){this.buffer=Ae+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Ge)}}}this.emit("done",this.fullContent)}catch(Ie){Ie.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Ie.message)}})}handleData(ye){ye.content&&(this.fullContent+=ye.content,this.emit("data",{chunk:ye,full:this.fullContent}))}cancelRequest(){var ye;(ye=this.controller)==null||ye.abort()}}ct.Z=Ce},76593:function(rt,ct,te){"use strict";te.d(ct,{Z:function(){return Ye}});var E=te(59301),xe=te(36207),Le=te(77019),ze=te(5269),ge={smartWrp:"smartWrp___NjRcB"},me=te(34728),Ce=te(70467),Se=te(42075),ye=te(59301),Ie=(Pe,ve,Fe)=>new Promise((De,Ae)=>{var Ve=We=>{try{Re(Fe.next(We))}catch(Ue){Ae(Ue)}},Ge=We=>{try{Re(Fe.throw(We))}catch(Ue){Ae(Ue)}},Re=We=>We.done?De(We.value):Promise.resolve(We.value).then(Ve,Ge);Re((Fe=Fe.apply(Pe,ve)).next())});const Xe=` \u5FEB\u901F\u6392\u5E8F\u6F14\u793A

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A