@ylzcc/editor 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.es.js +14 -2
- package/dist/editor.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -86307,7 +86307,13 @@ const upload = async (Ff) => {
|
|
|
86307
86307
|
duration: [300, 300],
|
|
86308
86308
|
interactiveBorder: 10,
|
|
86309
86309
|
interactiveDebounce: 75,
|
|
86310
|
-
maxWidth: 500
|
|
86310
|
+
maxWidth: 500,
|
|
86311
|
+
onTrigger(gme, vme) {
|
|
86312
|
+
$_.classList.add("tiptap-menu-item-list-item-light");
|
|
86313
|
+
},
|
|
86314
|
+
onHide(gme) {
|
|
86315
|
+
$_.classList.remove("tiptap-menu-item-list-item-light");
|
|
86316
|
+
}
|
|
86311
86317
|
// getReferenceClientRect: tableDom.getBoundingClientRect
|
|
86312
86318
|
});
|
|
86313
86319
|
}, [$_, zP]);
|
|
@@ -86952,7 +86958,13 @@ const normalClass = "tiptap-menu-item-menus-item", lighClass = "tiptap-menu-item
|
|
|
86952
86958
|
duration: [300, 300],
|
|
86953
86959
|
interactiveBorder: 10,
|
|
86954
86960
|
interactiveDebounce: 75,
|
|
86955
|
-
maxWidth: 500
|
|
86961
|
+
maxWidth: 500,
|
|
86962
|
+
onTrigger(Eme, Sme) {
|
|
86963
|
+
$_.classList.add("tiptap-menu-item-list-item-light");
|
|
86964
|
+
},
|
|
86965
|
+
onHide(Eme) {
|
|
86966
|
+
$_.classList.remove("tiptap-menu-item-list-item-light");
|
|
86967
|
+
}
|
|
86956
86968
|
// getReferenceClientRect: tableDom.getBoundingClientRect
|
|
86957
86969
|
});
|
|
86958
86970
|
}, [$_, zP]);
|
package/dist/editor.umd.js
CHANGED
|
@@ -408,7 +408,7 @@ html body {
|
|
|
408
408
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(kh){return kh instanceof this?kh:new this(kh)}static concat(kh,...x_){const B_=new this(kh);return x_.forEach($_=>B_.set($_)),B_}static accessor(kh){const B_=(this[$internals]=this[$internals]={accessors:{}}).accessors,$_=this.prototype;function $P(zP){const eme=normalizeHeader(zP);B_[eme]||(buildAccessors($_,zP),B_[eme]=!0)}return utils$1.isArray(kh)?kh.forEach($P):$P(kh),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:Ff},kh)=>{let x_=kh[0].toUpperCase()+kh.slice(1);return{get:()=>Ff,set(B_){this[x_]=B_}}}),utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(Ff,kh){const x_=this||defaults$2,B_=kh||x_,$_=AxiosHeaders$1.from(B_.headers);let $P=B_.data;return utils$1.forEach(Ff,function(eme){$P=eme.call(x_,$P,$_.normalize(),kh?kh.status:void 0)}),$_.normalize(),$P}function isCancel(Ff){return!!(Ff&&Ff.__CANCEL__)}function CanceledError(Ff,kh,x_){AxiosError.call(this,Ff??"canceled",AxiosError.ERR_CANCELED,kh,x_),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ff,kh,x_){const B_=x_.config.validateStatus;!x_.status||!B_||B_(x_.status)?Ff(x_):kh(new AxiosError("Request failed with status code "+x_.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(x_.status/100)-4],x_.config,x_.request,x_))}const cookies=platform.hasStandardBrowserEnv?{write(Ff,kh,x_,B_,$_,$P){const zP=[Ff+"="+encodeURIComponent(kh)];utils$1.isNumber(x_)&&zP.push("expires="+new Date(x_).toGMTString()),utils$1.isString(B_)&&zP.push("path="+B_),utils$1.isString($_)&&zP.push("domain="+$_),$P===!0&&zP.push("secure"),document.cookie=zP.join("; ")},read(Ff){const kh=document.cookie.match(new RegExp("(^|;\\s*)("+Ff+")=([^;]*)"));return kh?decodeURIComponent(kh[3]):null},remove(Ff){this.write(Ff,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ff){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ff)}function combineURLs(Ff,kh){return kh?Ff.replace(/\/?\/$/,"")+"/"+kh.replace(/^\/+/,""):Ff}function buildFullPath(Ff,kh){return Ff&&!isAbsoluteURL(kh)?combineURLs(Ff,kh):kh}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const kh=/(msie|trident)/i.test(navigator.userAgent),x_=document.createElement("a");let B_;function $_($P){let zP=$P;return kh&&(x_.setAttribute("href",zP),zP=x_.href),x_.setAttribute("href",zP),{href:x_.href,protocol:x_.protocol?x_.protocol.replace(/:$/,""):"",host:x_.host,search:x_.search?x_.search.replace(/^\?/,""):"",hash:x_.hash?x_.hash.replace(/^#/,""):"",hostname:x_.hostname,port:x_.port,pathname:x_.pathname.charAt(0)==="/"?x_.pathname:"/"+x_.pathname}}return B_=$_(window.location.href),function(zP){const eme=utils$1.isString(zP)?$_(zP):zP;return eme.protocol===B_.protocol&&eme.host===B_.host}}():function(){return function(){return!0}}();function parseProtocol(Ff){const kh=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ff);return kh&&kh[1]||""}function speedometer(Ff,kh){Ff=Ff||10;const x_=new Array(Ff),B_=new Array(Ff);let $_=0,$P=0,zP;return kh=kh!==void 0?kh:1e3,function(tme){const nme=Date.now(),rme=B_[$P];zP||(zP=nme),x_[$_]=tme,B_[$_]=nme;let ime=$P,ome=0;for(;ime!==$_;)ome+=x_[ime++],ime=ime%Ff;if($_=($_+1)%Ff,$_===$P&&($P=($P+1)%Ff),nme-zP<kh)return;const ame=rme&&nme-rme;return ame?Math.round(ome*1e3/ame):void 0}}function progressEventReducer(Ff,kh){let x_=0;const B_=speedometer(50,250);return $_=>{const $P=$_.loaded,zP=$_.lengthComputable?$_.total:void 0,eme=$P-x_,tme=B_(eme),nme=$P<=zP;x_=$P;const rme={loaded:$P,total:zP,progress:zP?$P/zP:void 0,bytes:eme,rate:tme||void 0,estimated:tme&&zP&&nme?(zP-$P)/tme:void 0,event:$_};rme[kh?"download":"upload"]=!0,Ff(rme)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(Ff){return new Promise(function(x_,B_){let $_=Ff.data;const $P=AxiosHeaders$1.from(Ff.headers).normalize();let{responseType:zP,withXSRFToken:eme}=Ff,tme;function nme(){Ff.cancelToken&&Ff.cancelToken.unsubscribe(tme),Ff.signal&&Ff.signal.removeEventListener("abort",tme)}let rme;if(utils$1.isFormData($_)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)$P.setContentType(!1);else if((rme=$P.getContentType())!==!1){const[ume,...sme]=rme?rme.split(";").map(lme=>lme.trim()).filter(Boolean):[];$P.setContentType([ume||"multipart/form-data",...sme].join("; "))}}let ime=new XMLHttpRequest;if(Ff.auth){const ume=Ff.auth.username||"",sme=Ff.auth.password?unescape(encodeURIComponent(Ff.auth.password)):"";$P.set("Authorization","Basic "+btoa(ume+":"+sme))}const ome=buildFullPath(Ff.baseURL,Ff.url);ime.open(Ff.method.toUpperCase(),buildURL(ome,Ff.params,Ff.paramsSerializer),!0),ime.timeout=Ff.timeout;function ame(){if(!ime)return;const ume=AxiosHeaders$1.from("getAllResponseHeaders"in ime&&ime.getAllResponseHeaders()),lme={data:!zP||zP==="text"||zP==="json"?ime.responseText:ime.response,status:ime.status,statusText:ime.statusText,headers:ume,config:Ff,request:ime};settle(function(fme){x_(fme),nme()},function(fme){B_(fme),nme()},lme),ime=null}if("onloadend"in ime?ime.onloadend=ame:ime.onreadystatechange=function(){!ime||ime.readyState!==4||ime.status===0&&!(ime.responseURL&&ime.responseURL.indexOf("file:")===0)||setTimeout(ame)},ime.onabort=function(){ime&&(B_(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Ff,ime)),ime=null)},ime.onerror=function(){B_(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ff,ime)),ime=null},ime.ontimeout=function(){let sme=Ff.timeout?"timeout of "+Ff.timeout+"ms exceeded":"timeout exceeded";const lme=Ff.transitional||transitionalDefaults;Ff.timeoutErrorMessage&&(sme=Ff.timeoutErrorMessage),B_(new AxiosError(sme,lme.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Ff,ime)),ime=null},platform.hasStandardBrowserEnv&&(eme&&utils$1.isFunction(eme)&&(eme=eme(Ff)),eme||eme!==!1&&isURLSameOrigin(ome))){const ume=Ff.xsrfHeaderName&&Ff.xsrfCookieName&&cookies.read(Ff.xsrfCookieName);ume&&$P.set(Ff.xsrfHeaderName,ume)}$_===void 0&&$P.setContentType(null),"setRequestHeader"in ime&&utils$1.forEach($P.toJSON(),function(sme,lme){ime.setRequestHeader(lme,sme)}),utils$1.isUndefined(Ff.withCredentials)||(ime.withCredentials=!!Ff.withCredentials),zP&&zP!=="json"&&(ime.responseType=Ff.responseType),typeof Ff.onDownloadProgress=="function"&&ime.addEventListener("progress",progressEventReducer(Ff.onDownloadProgress,!0)),typeof Ff.onUploadProgress=="function"&&ime.upload&&ime.upload.addEventListener("progress",progressEventReducer(Ff.onUploadProgress)),(Ff.cancelToken||Ff.signal)&&(tme=ume=>{ime&&(B_(!ume||ume.type?new CanceledError(null,Ff,ime):ume),ime.abort(),ime=null)},Ff.cancelToken&&Ff.cancelToken.subscribe(tme),Ff.signal&&(Ff.signal.aborted?tme():Ff.signal.addEventListener("abort",tme)));const cme=parseProtocol(ome);if(cme&&platform.protocols.indexOf(cme)===-1){B_(new AxiosError("Unsupported protocol "+cme+":",AxiosError.ERR_BAD_REQUEST,Ff));return}ime.send($_||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(Ff,kh)=>{if(Ff){try{Object.defineProperty(Ff,"name",{value:kh})}catch{}Object.defineProperty(Ff,"adapterName",{value:kh})}});const renderReason=Ff=>`- ${Ff}`,isResolvedHandle=Ff=>utils$1.isFunction(Ff)||Ff===null||Ff===!1,adapters={getAdapter:Ff=>{Ff=utils$1.isArray(Ff)?Ff:[Ff];const{length:kh}=Ff;let x_,B_;const $_={};for(let $P=0;$P<kh;$P++){x_=Ff[$P];let zP;if(B_=x_,!isResolvedHandle(x_)&&(B_=knownAdapters[(zP=String(x_)).toLowerCase()],B_===void 0))throw new AxiosError(`Unknown adapter '${zP}'`);if(B_)break;$_[zP||"#"+$P]=B_}if(!B_){const $P=Object.entries($_).map(([eme,tme])=>`adapter ${eme} `+(tme===!1?"is not supported by the environment":"is not available in the build"));let zP=kh?$P.length>1?`since :
|
|
409
409
|
`+$P.map(renderReason).join(`
|
|
410
410
|
`):" "+renderReason($P[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+zP,"ERR_NOT_SUPPORT")}return B_},adapters:knownAdapters};function throwIfCancellationRequested(Ff){if(Ff.cancelToken&&Ff.cancelToken.throwIfRequested(),Ff.signal&&Ff.signal.aborted)throw new CanceledError(null,Ff)}function dispatchRequest(Ff){return throwIfCancellationRequested(Ff),Ff.headers=AxiosHeaders$1.from(Ff.headers),Ff.data=transformData.call(Ff,Ff.transformRequest),["post","put","patch"].indexOf(Ff.method)!==-1&&Ff.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ff.adapter||defaults$2.adapter)(Ff).then(function(B_){return throwIfCancellationRequested(Ff),B_.data=transformData.call(Ff,Ff.transformResponse,B_),B_.headers=AxiosHeaders$1.from(B_.headers),B_},function(B_){return isCancel(B_)||(throwIfCancellationRequested(Ff),B_&&B_.response&&(B_.response.data=transformData.call(Ff,Ff.transformResponse,B_.response),B_.response.headers=AxiosHeaders$1.from(B_.response.headers))),Promise.reject(B_)})}const headersToObject=Ff=>Ff instanceof AxiosHeaders$1?Ff.toJSON():Ff;function mergeConfig(Ff,kh){kh=kh||{};const x_={};function B_(nme,rme,ime){return utils$1.isPlainObject(nme)&&utils$1.isPlainObject(rme)?utils$1.merge.call({caseless:ime},nme,rme):utils$1.isPlainObject(rme)?utils$1.merge({},rme):utils$1.isArray(rme)?rme.slice():rme}function $_(nme,rme,ime){if(utils$1.isUndefined(rme)){if(!utils$1.isUndefined(nme))return B_(void 0,nme,ime)}else return B_(nme,rme,ime)}function $P(nme,rme){if(!utils$1.isUndefined(rme))return B_(void 0,rme)}function zP(nme,rme){if(utils$1.isUndefined(rme)){if(!utils$1.isUndefined(nme))return B_(void 0,nme)}else return B_(void 0,rme)}function eme(nme,rme,ime){if(ime in kh)return B_(nme,rme);if(ime in Ff)return B_(void 0,nme)}const tme={url:$P,method:$P,data:$P,baseURL:zP,transformRequest:zP,transformResponse:zP,paramsSerializer:zP,timeout:zP,timeoutMessage:zP,withCredentials:zP,withXSRFToken:zP,adapter:zP,responseType:zP,xsrfCookieName:zP,xsrfHeaderName:zP,onUploadProgress:zP,onDownloadProgress:zP,decompress:zP,maxContentLength:zP,maxBodyLength:zP,beforeRedirect:zP,transport:zP,httpAgent:zP,httpsAgent:zP,cancelToken:zP,socketPath:zP,responseEncoding:zP,validateStatus:eme,headers:(nme,rme)=>$_(headersToObject(nme),headersToObject(rme),!0)};return utils$1.forEach(Object.keys(Object.assign({},Ff,kh)),function(rme){const ime=tme[rme]||$_,ome=ime(Ff[rme],kh[rme],rme);utils$1.isUndefined(ome)&&ime!==eme||(x_[rme]=ome)}),x_}const VERSION="1.6.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ff,kh)=>{validators$1[Ff]=function(B_){return typeof B_===Ff||"a"+(kh<1?"n ":" ")+Ff}});const deprecatedWarnings={};validators$1.transitional=function(kh,x_,B_){function $_($P,zP){return"[Axios v"+VERSION+"] Transitional option '"+$P+"'"+zP+(B_?". "+B_:"")}return($P,zP,eme)=>{if(kh===!1)throw new AxiosError($_(zP," has been removed"+(x_?" in "+x_:"")),AxiosError.ERR_DEPRECATED);return x_&&!deprecatedWarnings[zP]&&(deprecatedWarnings[zP]=!0,console.warn($_(zP," has been deprecated since v"+x_+" and will be removed in the near future"))),kh?kh($P,zP,eme):!0}};function assertOptions(Ff,kh,x_){if(typeof Ff!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const B_=Object.keys(Ff);let $_=B_.length;for(;$_-- >0;){const $P=B_[$_],zP=kh[$P];if(zP){const eme=Ff[$P],tme=eme===void 0||zP(eme,$P,Ff);if(tme!==!0)throw new AxiosError("option "+$P+" must be "+tme,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(x_!==!0)throw new AxiosError("Unknown option "+$P,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(kh){this.defaults=kh,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(kh,x_){try{return await this._request(kh,x_)}catch(B_){if(B_ instanceof Error){let $_;Error.captureStackTrace?Error.captureStackTrace($_={}):$_=new Error;const $P=$_.stack?$_.stack.replace(/^.+\n/,""):"";B_.stack?$P&&!String(B_.stack).endsWith($P.replace(/^.+\n.+\n/,""))&&(B_.stack+=`
|
|
411
|
-
`+$P):B_.stack=$P}throw B_}}_request(kh,x_){typeof kh=="string"?(x_=x_||{},x_.url=kh):x_=kh||{},x_=mergeConfig(this.defaults,x_);const{transitional:B_,paramsSerializer:$_,headers:$P}=x_;B_!==void 0&&validator.assertOptions(B_,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),$_!=null&&(utils$1.isFunction($_)?x_.paramsSerializer={serialize:$_}:validator.assertOptions($_,{encode:validators.function,serialize:validators.function},!0)),x_.method=(x_.method||this.defaults.method||"get").toLowerCase();let zP=$P&&utils$1.merge($P.common,$P[x_.method]);$P&&utils$1.forEach(["delete","get","head","post","put","patch","common"],cme=>{delete $P[cme]}),x_.headers=AxiosHeaders$1.concat(zP,$P);const eme=[];let tme=!0;this.interceptors.request.forEach(function(ume){typeof ume.runWhen=="function"&&ume.runWhen(x_)===!1||(tme=tme&&ume.synchronous,eme.unshift(ume.fulfilled,ume.rejected))});const nme=[];this.interceptors.response.forEach(function(ume){nme.push(ume.fulfilled,ume.rejected)});let rme,ime=0,ome;if(!tme){const cme=[dispatchRequest.bind(this),void 0];for(cme.unshift.apply(cme,eme),cme.push.apply(cme,nme),ome=cme.length,rme=Promise.resolve(x_);ime<ome;)rme=rme.then(cme[ime++],cme[ime++]);return rme}ome=eme.length;let ame=x_;for(ime=0;ime<ome;){const cme=eme[ime++],ume=eme[ime++];try{ame=cme(ame)}catch(sme){ume.call(this,sme);break}}try{rme=dispatchRequest.call(this,ame)}catch(cme){return Promise.reject(cme)}for(ime=0,ome=nme.length;ime<ome;)rme=rme.then(nme[ime++],nme[ime++]);return rme}getUri(kh){kh=mergeConfig(this.defaults,kh);const x_=buildFullPath(kh.baseURL,kh.url);return buildURL(x_,kh.params,kh.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(kh){Axios.prototype[kh]=function(x_,B_){return this.request(mergeConfig(B_||{},{method:kh,url:x_,data:(B_||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(kh){function x_(B_){return function($P,zP,eme){return this.request(mergeConfig(eme||{},{method:kh,headers:B_?{"Content-Type":"multipart/form-data"}:{},url:$P,data:zP}))}}Axios.prototype[kh]=x_(),Axios.prototype[kh+"Form"]=x_(!0)});const Axios$1=Axios;class CancelToken{constructor(kh){if(typeof kh!="function")throw new TypeError("executor must be a function.");let x_;this.promise=new Promise(function($P){x_=$P});const B_=this;this.promise.then($_=>{if(!B_._listeners)return;let $P=B_._listeners.length;for(;$P-- >0;)B_._listeners[$P]($_);B_._listeners=null}),this.promise.then=$_=>{let $P;const zP=new Promise(eme=>{B_.subscribe(eme),$P=eme}).then($_);return zP.cancel=function(){B_.unsubscribe($P)},zP},kh(function($P,zP,eme){B_.reason||(B_.reason=new CanceledError($P,zP,eme),x_(B_.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(kh){if(this.reason){kh(this.reason);return}this._listeners?this._listeners.push(kh):this._listeners=[kh]}unsubscribe(kh){if(!this._listeners)return;const x_=this._listeners.indexOf(kh);x_!==-1&&this._listeners.splice(x_,1)}static source(){let kh;return{token:new CancelToken(function($_){kh=$_}),cancel:kh}}}const CancelToken$1=CancelToken;function spread(Ff){return function(x_){return Ff.apply(null,x_)}}function isAxiosError(Ff){return utils$1.isObject(Ff)&&Ff.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([Ff,kh])=>{HttpStatusCode[kh]=Ff});const HttpStatusCode$1=HttpStatusCode;function createInstance(Ff){const kh=new Axios$1(Ff),x_=bind(Axios$1.prototype.request,kh);return utils$1.extend(x_,Axios$1.prototype,kh,{allOwnKeys:!0}),utils$1.extend(x_,kh,null,{allOwnKeys:!0}),x_.create=function($_){return createInstance(mergeConfig(Ff,$_))},x_}const axios=createInstance(defaults$2);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(kh){return Promise.all(kh)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=Ff=>formDataToJSON(utils$1.isHTMLForm(Ff)?new FormData(Ff):Ff),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const upload=async Ff=>{try{return(await axios.post(`${Ff==null?void 0:Ff.url}/oss/upload?ext=${Ff==null?void 0:Ff.ext}`,Ff==null?void 0:Ff.file,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(kh){return kh}},base64ToText$1=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}},textToBase64=Ff=>{const x_=new TextEncoder().encode(Ff),B_=String.fromCharCode(...x_);return btoa(B_)},getFileSuffix=Ff=>{const kh=Ff.indexOf(".")>-1?Ff.split("."):[];return kh.length>0?kh[kh.length-1]:""},marks={strong:"bold",emphasis:"italic",delete:"strike",link:"link"},toNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"linkReference":x_.type="paragraph";break;case"text":x_.text=Ff==null?void 0:Ff.value,B_!=null&&B_.length&&(x_.marks=B_);break;case"heading":x_.attrs={level:Ff==null?void 0:Ff.depth};break;case"list":x_.type=Ff!=null&&Ff.ordered?"orderedList":"bulletList";break;case"listItem":($_=Ff.children)!=null&&$_.length||(x_.content=[{type:"paragraph"}]);break;case"thematicBreak":x_.type="horizontalRule";break;case"image":x_.attrs={src:Ff==null?void 0:Ff.url,alt:Ff==null?void 0:Ff.alt,title:Ff==null?void 0:Ff.title},B_!=null&&B_.length&&(x_.marks=B_);break;case"html":x_.type="text",x_.text=" ";break;case"code":(Ff==null?void 0:Ff.props)==="active"?(x_.type="active",x_.attrs={language:Ff==null?void 0:Ff.lang,id:Ff==null?void 0:Ff.value}):(Ff==null?void 0:Ff.props)==="exec"?(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang,exec:!0},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]):(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]);break;case"inlineCode":x_.type="text",x_.text=Ff==null?void 0:Ff.value,x_.marks=[{type:"code"}];break;default:{const nme=Object.keys(marks);if(nme!=null&&nme.includes(Ff==null?void 0:Ff.type))if(Ff.type==="link"&&/\.pdf$/i.test(Ff.url))x_.type="pdf",x_.attrs={pdfUrl:Ff==null?void 0:Ff.url};else{const rme={type:marks[Ff==null?void 0:Ff.type]};Ff.type==="link"&&(rme.attrs={href:Ff==null?void 0:Ff.url,target:"_blank"});const ime=Ff==null?void 0:Ff.children;(ime==null?void 0:ime.length)===1&&ime[0].type==="text"?(x_.type="text",x_.text=ime[0].value,x_.marks=[...B_,rme]):(x_.type="fragment",B_.push(rme))}}break}if(($P=Ff==null?void 0:Ff.children)!=null&&$P.length)if((Ff==null?void 0:Ff.type)==="paragraph"&&((zP=Ff==null?void 0:Ff.children)==null?void 0:zP.length)===1&&((eme=Ff==null?void 0:Ff.children[0])==null?void 0:eme.type)==="image"){x_.type="image";const nme=Ff==null?void 0:Ff.children[0];x_.attrs={src:nme==null?void 0:nme.url,alt:nme==null?void 0:nme.alt,title:nme==null?void 0:nme.title}}else x_.content=(tme=Ff==null?void 0:Ff.children)==null?void 0:tme.map(nme=>toNodeObj(nme,B_));return x_.type==="text"&&(x_!=null&&x_.content)&&(x_==null||delete x_.content),x_},toEditorJSON=Ff=>{var x_,B_,$_;const kh={};return kh.type="document",(x_=Ff==null?void 0:Ff.children)!=null&&x_.length&&(kh.content=($_=(B_=Ff==null?void 0:Ff.children)==null?void 0:B_.filter($P=>($P==null?void 0:$P.type)!=="definition"))==null?void 0:$_.map($P=>toNodeObj($P))),kh},marksMD={bold:"strong",italic:"emphasis",strike:"delete",link:"link"},toMDNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme,nme,rme,ime,ome,ame,cme,ume,sme,lme,dme,fme,pme,hme,mme,_me,gme,vme,Eme,Sme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"text":{const bme=($_=Ff==null?void 0:Ff.marks)==null?void 0:$_.length;if(!bme)x_.value=Ff==null?void 0:Ff.text;else if(bme===1){const Rme=Ff==null?void 0:Ff.marks[0];(Rme==null?void 0:Rme.type)==="code"?(x_.type="inlineCode",x_.value=Ff==null?void 0:Ff.text):(Rme==null?void 0:Rme.type)==="link"?(x_.type="link",x_.url=($P=Rme==null?void 0:Rme.attrs)==null?void 0:$P.href,x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):(B_==null?void 0:B_.length)===0&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text}else(zP=Ff==null?void 0:Ff.marks)==null||zP.forEach(Rme=>{!B_.includes(Rme==null?void 0:Rme.type)&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text})}break;case"fragment":if((eme=Ff==null?void 0:Ff.content)!=null&&eme.length&&((nme=(tme=Ff==null?void 0:Ff.content[0])==null?void 0:tme.marks)!=null&&nme.length)){const bme=(rme=Ff==null?void 0:Ff.content[0])==null?void 0:rme.marks,Rme=bme==null?void 0:bme.find(Mme=>!(B_!=null&&B_.includes(Mme==null?void 0:Mme.type))),wme=Rme==null?void 0:Rme.type;x_.type=marksMD[wme],wme==="link"&&(x_.url=(ime=Rme==null?void 0:Rme.attrs)==null?void 0:ime.href),B_.push(wme)}else x_.type="paragraph";break;case"heading":x_.depth=(ome=Ff==null?void 0:Ff.attrs)==null?void 0:ome.level;break;case"bulletList":x_.type="list",x_.ordered=!1;break;case"orderedList":x_.type="list",x_.ordered=!0;break;case"horizontalRule":x_.type="thematicBreak";break;case"image":B_!=null&&B_.length?(x_.url=(ame=Ff==null?void 0:Ff.attrs)==null?void 0:ame.src,x_.alt=(cme=Ff==null?void 0:Ff.attrs)==null?void 0:cme.alt,x_.title=(ume=Ff==null?void 0:Ff.attrs)==null?void 0:ume.title):(x_.type="paragraph",x_.children=[{type:"image",url:(sme=Ff==null?void 0:Ff.attrs)==null?void 0:sme.src,alt:(lme=Ff==null?void 0:Ff.attrs)==null?void 0:lme.alt,title:(dme=Ff==null?void 0:Ff.attrs)==null?void 0:dme.title}]);break;case"codeBlock":x_.type="code",x_.lang=(fme=Ff==null?void 0:Ff.attrs)==null?void 0:fme.language,x_.value=(pme=Ff==null?void 0:Ff.content)!=null&&pme.length?(hme=Ff==null?void 0:Ff.content[0])==null?void 0:hme.text:"",(mme=Ff==null?void 0:Ff.attrs)!=null&&mme.exec&&(x_.props="exec");break;case"active":x_.type="code",x_.lang=(_me=Ff==null?void 0:Ff.attrs)==null?void 0:_me.language,x_.value=(gme=Ff==null?void 0:Ff.attrs)==null?void 0:gme.id,x_.props="active";break;case"pdf":x_.type="paragraph",x_.children=[{type:"link",url:(vme=Ff==null?void 0:Ff.attrs)==null?void 0:vme.pdfUrl}];break}return(Eme=Ff==null?void 0:Ff.content)!=null&&Eme.length&&(x_.children=(Sme=Ff==null?void 0:Ff.content)==null?void 0:Sme.map(bme=>toMDNodeObj(bme,B_))),x_.type==="code"&&(x_!=null&&x_.children)&&(x_==null||delete x_.children),x_},toMarkdownJson=Ff=>{var x_,B_;const kh={};return kh.type="root",(x_=Ff==null?void 0:Ff.content)!=null&&x_.length&&(kh.children=(B_=Ff==null?void 0:Ff.content)==null?void 0:B_.map($_=>toMDNodeObj($_))),kh},normalClass$1="tiptap-menu-item-menus-item",lighClass$1="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",Menu=Ff=>{const kh=React.useContext(shareData),{editor:x_,data:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),tme=(B_==null?void 0:B_.pos)+1||0,nme=()=>{x_==null||x_.chain().focus(tme).setParagraph().hideTip().run()},rme=gme=>{x_==null||x_.chain().focus(tme).setHeading({level:gme}).hideTip().run()},ime=()=>{x_==null||x_.chain().focus(tme).setCodeBlock().hideTip().run()},ome=()=>{const gme=document.createElement("input");gme.type="file",gme.accept="image/*",gme.addEventListener("change",vme=>{const Eme=vme.target.files[0],Sme=Eme.size,bme=512*1024;if(Sme>bme)staticMethods.warning("图片大小不能超过512kb!");else{const Rme=new FormData;Rme.append("file",Eme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:Eme==null?void 0:Eme.name}).then(wme=>{wme!=null&&wme.url&&(x_==null||x_.chain().focus(tme).setImage({src:wme==null?void 0:wme.url}).hideTip().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),gme.click()},ame=gme=>{x_==null||x_.chain().focus(tme).insertTable({rows:gme.row,cols:gme.col,withHeaderRow:!0}).hideTip().run()},cme=(gme=!1)=>{gme?x_==null||x_.chain().focus(tme).toggleOrderedList().hideTip().run():x_==null||x_.chain().focus(tme).toggleBulletList().hideTip().run()},ume=()=>{x_==null||x_.chain().focus(tme).showBubbleMenu({from:tme,to:tme}).hideTip().run()},sme=gme=>{window.postMessage({type:gme,value:{pos:tme}}),x_==null||x_.commands.hideTip()},lme=()=>{hme()},dme=()=>{x_==null||x_.chain().focus(tme).setHorizontalRule().hideTip().run()},fme=()=>{x_==null||x_.chain().focus(tme).setBlockquote().hideTip().run()},pme=gme=>{var vme,Eme;return((Eme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Eme.name)===gme},hme=()=>{const gme=document.createElement("input");gme.type="file",gme.accept=".pdf",gme.addEventListener("change",vme=>{const Eme=vme.target.files[0];if((Eme==null?void 0:Eme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((Eme==null?void 0:Eme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Sme=new FormData;Sme.append("file",Eme),upload({url:kh==null?void 0:kh.apiUrl,file:Sme,ext:getFileSuffix(Eme==null?void 0:Eme.name)}).then(bme=>{var Rme,wme;(wme=(Rme=x_==null?void 0:x_.chain().focus(tme))==null?void 0:Rme.setPdf({pdfUrl:bme==null?void 0:bme.url}))==null||wme.hideTip().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),gme.click()},mme=gme=>{var vme,Eme,Sme,bme;return pme((Eme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Eme.name)&&((bme=(Sme=B_==null?void 0:B_.node)==null?void 0:Sme.attrs)==null?void 0:bme.level)===gme};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const _me=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:_me,overflowY:"auto"},children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:pme("paragraph")?lighClass$1:normalClass$1,"data-tip":"正文",onClick:nme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(1)?lighClass$1:normalClass$1,"data-tip":"一级标题",onClick:()=>{rme(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(2)?lighClass$1:normalClass$1,"data-tip":"二级标题",onClick:()=>{rme(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(3)?lighClass$1:normalClass$1,"data-tip":"三级标题",onClick:()=>{rme(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(4)?lighClass$1:normalClass$1,"data-tip":"四级标题",onClick:()=>{rme(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(5)?lighClass$1:normalClass$1,"data-tip":"五级标题",onClick:()=>{rme(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(6)?lighClass$1:normalClass$1,"data-tip":"六级标题",onClick:()=>{rme(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("bulletList")?lighClass$1:normalClass$1,"data-tip":"无序列表",onClick:()=>{cme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"有序列表",onClick:()=>{cme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("link")?lighClass$1:normalClass$1,"data-tip":"链接",onClick:ume,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"分割线",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"引用",onClick:fme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ime,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ome,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:ame})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:lme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"编码测验"})]})]})]})]})},ChangeMenu=Ff=>{const{editor:kh,data:x_}=Ff;x_.pos+1;const B_=()=>{const{range:$P}=x_;kh==null||kh.chain().deleteRange($P).hideTip().run()},$_=()=>{const $P=kh==null?void 0:kh.view.nodeDOM(x_.pos),zP="text/html",eme=new Blob([$P==null?void 0:$P.outerHTML],{type:zP}),tme=[new ClipboardItem({[zP]:eme})];navigator.clipboard.write(tme),kh==null||kh.commands.hideTip()};return jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item tiptap-changemenu-item-del",onClick:B_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.332 3.99967H14.6654V5.33301H13.332V13.9997C13.332 14.3679 13.0336 14.6663 12.6654 14.6663H3.33203C2.96384 14.6663 2.66536 14.3679 2.66536 13.9997V5.33301H1.33203V3.99967H4.66536V1.99967C4.66536 1.63149 4.96384 1.33301 5.33203 1.33301H10.6654C11.0336 1.33301 11.332 1.63149 11.332 1.99967V3.99967ZM11.9987 5.33301H3.9987V13.333H11.9987V5.33301ZM5.9987 7.33301H7.33203V11.333H5.9987V7.33301ZM8.66537 7.33301H9.9987V11.333H8.66537V7.33301ZM5.9987 2.66634V3.99967H9.9987V2.66634H5.9987Z"})}),jsxRuntimeExports.jsx("span",{children:"删除"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item",onClick:$_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.66653 3.99967V1.99967C4.66653 1.63149 4.96501 1.33301 5.3332 1.33301H13.3332C13.7014 1.33301 13.9999 1.63149 13.9999 1.99967V11.333C13.9999 11.7012 13.7014 11.9997 13.3332 11.9997H11.3332V13.9991C11.3332 14.3676 11.0333 14.6663 10.662 14.6663H2.67111C2.30039 14.6663 2 14.3699 2 13.9991L2.00173 4.66692C2.0018 4.29841 2.30176 3.99967 2.67295 3.99967H4.66653ZM3.33495 5.33301L3.33346 13.333H9.99987V5.33301H3.33495ZM5.99987 3.99967H11.3332V10.6663H12.6665V2.66634H5.99987V3.99967Z",fill:"#999999"})}),jsxRuntimeExports.jsx("span",{children:"复制"})]})]})},Tip=Ff=>{const{editor:kh,emitter:x_}=Ff,[B_,$_]=React.useState(null),[$P,zP]=React.useState(null),[eme,tme]=React.useState(null),[nme,rme]=React.useState(null),[ime,ome]=React.useState({}),[ame,cme]=React.useState("add");return React.useEffect(()=>{if(!B_||!$P)return;const ume=tippy(B_,{placement:"bottom-start",content:$P,interactive:!0,trigger:"mouseenter focus click focusin",onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[B_,$P]),React.useEffect(()=>{if(!eme||!nme)return;const ume=tippy(eme,{placement:"bottom-start",content:nme,interactive:!0,duration:[300,300],onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[eme,nme]),React.useEffect(()=>{x_==null||x_.on("hover",ume=>{ome({...ume})}),x_==null||x_.on("type",({type:ume})=>{ume==="add"?cme("add"):ume==="content"&&cme("content")})},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ame==="add"?jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:$_,children:[jsxRuntimeExports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M6.5625 6.5625V9.9375C6.5625 10.0867 6.50324 10.2298 6.39775 10.3352C6.29226 10.4407 6.14918 10.5 6 10.5C5.85082 10.5 5.70774 10.4407 5.60225 10.3352C5.49676 10.2298 5.4375 10.0867 5.4375 9.9375V6.5625H2.0625C1.91332 6.5625 1.77024 6.50324 1.66475 6.39775C1.55926 6.29226 1.5 6.14918 1.5 6C1.5 5.85082 1.55926 5.70774 1.66475 5.60225C1.77024 5.49676 1.91332 5.4375 2.0625 5.4375H5.4375V2.0625C5.4375 1.91332 5.49676 1.77024 5.60225 1.66475C5.70774 1.55926 5.85082 1.5 6 1.5C6.14918 1.5 6.29226 1.55926 6.39775 1.66475C6.50324 1.77024 6.5625 1.91332 6.5625 2.0625V5.4375H9.9375C10.0867 5.4375 10.2298 5.49676 10.3352 5.60225C10.4407 5.70774 10.5 5.85082 10.5 6C10.5 6.14918 10.4407 6.29226 10.3352 6.39775C10.2298 6.50324 10.0867 6.5625 9.9375 6.5625H6.5625Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:zP,children:jsxRuntimeExports.jsx(Menu,{editor:kh,data:ime})})]}):jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:tme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.07432 2.59277C5.40059 2.59277 5.72366 2.65704 6.02509 2.78189C6.32652 2.90675 6.60041 3.08975 6.83111 3.32046C7.06181 3.55116 7.24482 3.82505 7.36968 4.12648C7.49453 4.42791 7.5588 4.75098 7.5588 5.07725V7.56173H5.07432C4.74805 7.56173 4.42498 7.49746 4.12355 7.37261C3.82212 7.24775 3.54824 7.06474 3.31753 6.83404C3.08683 6.60333 2.90382 6.32945 2.77896 6.02802C2.65411 5.72659 2.58984 5.40352 2.58984 5.07725C2.58984 4.75098 2.65411 4.42791 2.77896 4.12648C2.90382 3.82505 3.08683 3.55116 3.31753 3.32046C3.54824 3.08975 3.82212 2.90675 4.12355 2.78189C4.42498 2.65704 4.74805 2.59277 5.07432 2.59277ZM6.68192 6.68485V5.07725C6.68192 4.7593 6.58764 4.44848 6.41099 4.18411C6.23435 3.91974 5.98327 3.71369 5.68952 3.59202C5.39577 3.47034 5.07254 3.43851 4.76069 3.50054C4.44885 3.56257 4.1624 3.71568 3.93757 3.9405C3.71275 4.16533 3.55964 4.45178 3.49761 4.76362C3.43558 5.07547 3.46741 5.3987 3.58909 5.69245C3.71076 5.9862 3.91682 6.23728 4.18118 6.41392C4.44555 6.59057 4.75637 6.68485 5.07432 6.68485H6.68192ZM10.9201 2.59277C11.2464 2.59277 11.5695 2.65704 11.8709 2.78189C12.1723 2.90675 12.4462 3.08975 12.6769 3.32046C12.9076 3.55116 13.0906 3.82505 13.2155 4.12648C13.3404 4.42791 13.4046 4.75098 13.4046 5.07725C13.4046 5.40352 13.3404 5.72659 13.2155 6.02802C13.0906 6.32945 12.9076 6.60333 12.6769 6.83404C12.4462 7.06474 12.1723 7.24775 11.8709 7.37261C11.5695 7.49746 11.2464 7.56173 10.9201 7.56173H8.43567V5.07725C8.43567 4.75098 8.49993 4.42791 8.62479 4.12648C8.74965 3.82505 8.93265 3.55116 9.16336 3.32046C9.39406 3.08975 9.66795 2.90675 9.96938 2.78189C10.2708 2.65704 10.5939 2.59277 10.9201 2.59277ZM9.31254 6.68485H10.9201C11.2381 6.68485 11.5489 6.59057 11.8133 6.41392C12.0777 6.23728 12.2837 5.9862 12.4054 5.69245C12.5271 5.3987 12.5589 5.07547 12.4969 4.76362C12.4348 4.45178 12.2817 4.16533 12.0569 3.9405C11.8321 3.71568 11.5456 3.56257 11.2338 3.50054C10.9219 3.43851 10.5987 3.47034 10.3049 3.59202C10.0112 3.71369 9.76012 3.91974 9.58347 4.18411C9.40683 4.44848 9.31254 4.7593 9.31254 5.07725V6.68485ZM5.07432 13.4076C4.4154 13.4076 3.78346 13.1458 3.31753 12.6799C2.8516 12.2139 2.58984 11.582 2.58984 10.9231C2.58984 10.2642 2.8516 9.63222 3.31753 9.16629C3.78346 8.70036 4.4154 8.4386 5.07432 8.4386H7.5588V10.9231C7.5588 11.2493 7.49453 11.5724 7.36968 11.8738C7.24482 12.1753 7.06181 12.4492 6.83111 12.6799C6.60041 12.9106 6.32652 13.0936 6.02509 13.2184C5.72366 13.3433 5.40059 13.4076 5.07432 13.4076ZM6.68192 9.31547H5.07432C4.75637 9.31547 4.44555 9.40976 4.18118 9.5864C3.91682 9.76305 3.71076 10.0141 3.58909 10.3079C3.46741 10.6016 3.43558 10.9249 3.49761 11.2367C3.55964 11.5485 3.71275 11.835 3.93757 12.0598C4.1624 12.2847 4.44885 12.4378 4.76069 12.4998C5.07254 12.5618 5.39577 12.53 5.68952 12.4083C5.98327 12.2866 6.23435 12.0806 6.41099 11.8162C6.58764 11.5518 6.68192 11.241 6.68192 10.9231V9.31547ZM10.9201 13.4076C10.5939 13.4076 10.2708 13.3433 9.96938 13.2184C9.66795 13.0936 9.39406 12.9106 9.16336 12.6799C8.93265 12.4492 8.74965 12.1753 8.62479 11.8738C8.49993 11.5724 8.43567 11.2493 8.43567 10.9231V8.4386H10.9201C11.5791 8.4386 12.211 8.70036 12.6769 9.16629C13.1429 9.63222 13.4046 10.2642 13.4046 10.9231C13.4046 11.582 13.1429 12.2139 12.6769 12.6799C12.211 13.1458 11.5791 13.4076 10.9201 13.4076ZM9.31254 9.31547V10.9231C9.31254 11.241 9.40683 11.5518 9.58347 11.8162C9.76012 12.0806 10.0112 12.2866 10.3049 12.4083C10.5987 12.53 10.9219 12.5618 11.2338 12.4998C11.5456 12.4378 11.8321 12.2847 12.0569 12.0598C12.2817 11.835 12.4348 11.5485 12.4969 11.2367C12.5589 10.9249 12.5271 10.6016 12.4054 10.3079C12.2837 10.0141 12.0777 9.76305 11.8133 9.5864C11.5489 9.40976 11.2381 9.31547 10.9201 9.31547H9.31254Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:rme,children:jsxRuntimeExports.jsx(ChangeMenu,{editor:kh,data:ime})})]})})};class EventEmitter{constructor(){p0e(this,"callbacks",{})}on(kh,x_){return this.callbacks[kh]||(this.callbacks[kh]=[]),this.callbacks[kh].push(x_),this}emit(kh,...x_){const B_=this.callbacks[kh];return B_&&B_.forEach($_=>$_.apply(this,x_)),this}off(kh,x_){const B_=this.callbacks[kh];return B_&&(x_?this.callbacks[kh]=B_.filter($_=>$_!==x_):delete this.callbacks[kh]),this}removeAllListeners(){this.callbacks={}}}const allowTypes=["paragraph","heading","horizontalRule","blockquote","codeBlock","image","table"];class Handle{constructor(kh,x_,B_,$_=[]){p0e(this,"editor");p0e(this,"tippy");p0e(this,"component");p0e(this,"tippyOptions");p0e(this,"ignoreType");p0e(this,"isShow");p0e(this,"emitter");p0e(this,"lastPos",null);p0e(this,"prevent",!1);this.editor=kh,this.tippy=null,this.component=x_,this.tippyOptions=B_,this.ignoreType=$_,this.isShow=!1,this.emitter=new EventEmitter}build(){return new ReactRenderer(this.component,{editor:this.editor,props:{editor:this.editor,emitter:this.emitter}}).element}createTippy(kh=!1){var B_,$_,$P;if(!kh&&this.tippy)return;const x_=this.build();this.tippy=tippy(document.body,{duration:0,getReferenceClientRect:null,content:x_,interactive:!0,trigger:"manual",placement:"left-start",hideOnClick:"toggle",...this.tippyOptions}),($P=($_=(B_=this.editor)==null?void 0:B_.view)==null?void 0:$_.dom.parentElement)==null||$P.addEventListener("mouseleave",this.mouseLeave.bind(this))}mouseLeave(){setTimeout(()=>{this.hide()},10)}show(){var kh;this.prevent||((kh=this.tippy)==null||kh.show(),this.isShow=!0)}hide(){var kh;this.prevent||((kh=this.tippy)==null||kh.hide(),this.lastPos=null,this.isShow=!1)}setProps(kh){var x_;(x_=this.tippy)==null||x_.setProps(kh)}setPrevent(kh){this.prevent=kh}move(kh,x_){var ome;if(this.prevent)return;this.createTippy();const{state:B_}=kh,{doc:$_,selection:$P}=B_,zP=kh==null?void 0:kh.posAtCoords({left:x_==null?void 0:x_.clientX,top:x_==null?void 0:x_.clientY});if(!zP)return!1;const{pos:eme,inside:tme}=zP;let nme=!1,rme=!0;const ime=(ome=document.getElementById("ylz-editor-container"))==null?void 0:ome.getBoundingClientRect();$_.descendants((ame,cme,ume,sme)=>{if(eme>=cme&&eme<cme+ame.nodeSize){if(eme!==this.lastPos){this.lastPos=eme,this.emitter.emit("hover",{node:ame,pos:cme,range:{from:cme,to:cme+ame.nodeSize}});const lme=posToDOMRect(kh,cme,cme+ame.nodeSize);ame.type.name==="horizontalRule"?((lme.top-10<((ime==null?void 0:ime.top)||0)||lme.top+6>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top-10})})):((lme.top+6<((ime==null?void 0:ime.top)||0)||lme.top+22>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top+6})}))}else rme=!1;ame.type.name!=="paragraph"?this.emitter.emit("type",{type:"content"}):this.emitter.emit("type",{type:"add"}),allowTypes.includes(ame.type.name)||(nme=!0),this.ignoreType.includes(ame.type.name)&&(nme=!0)}return!1}),rme&&(nme?this.hide():this.show())}destroy(){var kh,x_,B_,$_;(kh=this.tippy)==null||kh.destroy(),($_=(B_=(x_=this.editor)==null?void 0:x_.view)==null?void 0:B_.dom.parentElement)==null||$_.removeEventListener("mouseleave",this.mouseLeave),this.tippy=null,this.isShow=!1,this.lastPos=null}}const FloatingMenu=Extension.create({name:"floatingMenu",addOptions(){return{pluginKey:this.name,tip:null}},onBeforeCreate(){this.options.tip=new Handle(this.editor,Tip,{},["title","pdf","active"])},addCommands(){return{showTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.show(),!0},hideTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.hide(),!0},changeTip:(Ff=!0)=>()=>{var kh;return(kh=this.options.tip)==null||kh.setPrevent(Ff),!0}}},addProseMirrorPlugins(){return[FloatingMenuPlugin({editor:this.editor,...this.options})]}}),inputRegex=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Image$1=Node$1.create({name:"image",addOptions(){return{oss:"",inline:!1,allowBase64:!1,HTMLAttributes:{class:"tiptap-image"}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:Ff}){return["img",mergeAttributes(this.options.HTMLAttributes,Ff)]},addCommands(){return{setImage:Ff=>({commands:kh})=>kh.insertContent({type:this.name,attrs:Ff})}},addKeyboardShortcuts(){return{"Mod-v":()=>{var kh,x_;const Ff=this;(x_=(kh=navigator==null?void 0:navigator.clipboard)==null?void 0:kh.read())==null||x_.then(async B_=>{var $_,$P;for(const zP of B_)if(($_=zP==null?void 0:zP.types)!=null&&$_.includes("text/html")){const eme=await(zP==null?void 0:zP.getType("text/html")),tme=new FileReader;tme.onloadend=async()=>{var rme;if(!tme.result.startsWith("<img")){for(const ime of zP==null?void 0:zP.types)if(ime!=null&&ime.includes("image")){const ome=await zP.getType(ime),ame=new Date().getTime(),cme=new File([ome],ame.toString().substring(0,4)),ume=new FormData;ume.append("file",cme),upload({url:(rme=Ff.options)==null?void 0:rme.oss,file:ume,ext:"png"}).then(sme=>{if(sme!=null&&sme.url)return Ff.editor.commands.setImage({src:sme==null?void 0:sme.url})})}}},tme.readAsText(eme)}else for(const eme of zP==null?void 0:zP.types)if(eme!=null&&eme.includes("image")){const tme=await zP.getType(eme),nme=new Date().getTime(),rme=new File([tme],nme.toString().substring(0,4)),ime=new FormData;ime.append("file",rme),upload({url:($P=Ff.options)==null?void 0:$P.oss,file:ime,ext:"png"}).then(ome=>{if(ome!=null&&ome.url)return Ff.editor.commands.setImage({src:ome==null?void 0:ome.url})})}}).catch(B_=>{console.error("获取剪切板内容失败:",B_)})}}},addInputRules(){return[nodeInputRule({find:inputRegex,type:this.type,getAttributes:Ff=>{const[,,kh,x_,B_]=Ff;return{src:x_,alt:kh,title:B_}}})]}});function findSuggestionMatch(Ff){var kh;const{char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:zP}=Ff,eme=escapeForRegEx(x_),tme=new RegExp(`\\s${eme}$`),nme=$P?"^":"",rme=B_?new RegExp(`${nme}${eme}.*?(?=\\s${eme}|$)`,"gm"):new RegExp(`${nme}(?:^)?${eme}[^\\s${eme}]*`,"gm"),ime=((kh=zP.nodeBefore)===null||kh===void 0?void 0:kh.isText)&&zP.nodeBefore.text;if(!ime)return null;const ome=zP.pos-ime.length,ame=Array.from(ime.matchAll(rme)).pop();if(!ame||ame.input===void 0||ame.index===void 0)return null;const cme=ame.input.slice(Math.max(0,ame.index-1),ame.index),ume=new RegExp(`^[${$_==null?void 0:$_.join("")}\0]?$`).test(cme);if($_!==null&&!ume)return null;const sme=ome+ame.index;let lme=sme+ame[0].length;return B_&&tme.test(ime.slice(lme-1,lme+1))&&(ame[0]+=" ",lme+=1),sme<zP.pos&&lme>=zP.pos?{range:{from:sme,to:lme},query:ame[0].slice(x_.length),text:ame[0]}:null}const SuggestionPluginKey=new PluginKey("suggestion");function Suggestion({pluginKey:Ff=SuggestionPluginKey,editor:kh,char:x_="@",allowSpaces:B_=!1,allowedPrefixes:$_=[" "],startOfLine:$P=!1,decorationTag:zP="span",decorationClass:eme="suggestion",command:tme=()=>null,items:nme=()=>[],render:rme=()=>({}),allow:ime=()=>!0,findSuggestionMatch:ome=findSuggestionMatch}){let ame;const cme=rme==null?void 0:rme(),ume=new Plugin({key:Ff,view(){return{update:async(sme,lme)=>{var dme,fme,pme,hme,mme,_me,gme;const vme=(dme=this.key)===null||dme===void 0?void 0:dme.getState(lme),Eme=(fme=this.key)===null||fme===void 0?void 0:fme.getState(sme.state),Sme=vme.active&&Eme.active&&vme.range.from!==Eme.range.from,bme=!vme.active&&Eme.active,Rme=vme.active&&!Eme.active,wme=!bme&&!Rme&&vme.query!==Eme.query,Mme=bme||Sme,Lme=wme&&!Sme,Dme=Rme||Sme;if(!Mme&&!Lme&&!Dme)return;const yme=Dme&&!Mme?vme:Eme,kme=sme.dom.querySelector(`[data-decoration-id="${yme.decorationId}"]`);ame={editor:kh,range:yme.range,query:yme.query,text:yme.text,items:[],command:Cme=>{tme({editor:kh,range:yme.range,props:Cme})},decorationNode:kme,clientRect:kme?()=>{var Cme;const{decorationId:Nme}=(Cme=this.key)===null||Cme===void 0?void 0:Cme.getState(kh.state),Fme=sme.dom.querySelector(`[data-decoration-id="${Nme}"]`);return(Fme==null?void 0:Fme.getBoundingClientRect())||null}:null},Mme&&((pme=cme==null?void 0:cme.onBeforeStart)===null||pme===void 0||pme.call(cme,ame)),Lme&&((hme=cme==null?void 0:cme.onBeforeUpdate)===null||hme===void 0||hme.call(cme,ame)),(Lme||Mme)&&(ame.items=await nme({editor:kh,query:yme.query})),Dme&&((mme=cme==null?void 0:cme.onExit)===null||mme===void 0||mme.call(cme,ame)),Lme&&((_me=cme==null?void 0:cme.onUpdate)===null||_me===void 0||_me.call(cme,ame)),Mme&&((gme=cme==null?void 0:cme.onStart)===null||gme===void 0||gme.call(cme,ame))},destroy:()=>{var sme;ame&&((sme=cme==null?void 0:cme.onExit)===null||sme===void 0||sme.call(cme,ame))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(sme,lme,dme,fme){const{isEditable:pme}=kh,{composing:hme}=kh.view,{selection:mme}=sme,{empty:_me,from:gme}=mme,vme={...lme};if(vme.composing=hme,pme&&(_me||kh.view.composing)){(gme<lme.range.from||gme>lme.range.to)&&!hme&&!lme.composing&&(vme.active=!1);const Eme=ome({char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:mme.$from}),Sme=`id_${Math.floor(Math.random()*4294967295)}`;Eme&&ime({editor:kh,state:fme,range:Eme.range})?(vme.active=!0,vme.decorationId=lme.decorationId?lme.decorationId:Sme,vme.range=Eme.range,vme.query=Eme.query,vme.text=Eme.text):vme.active=!1}else vme.active=!1;return vme.active||(vme.decorationId=null,vme.range={from:0,to:0},vme.query=null,vme.text=null),vme}},props:{handleKeyDown(sme,lme){var dme;const{active:fme,range:pme}=ume.getState(sme.state);return fme&&((dme=cme==null?void 0:cme.onKeyDown)===null||dme===void 0?void 0:dme.call(cme,{view:sme,event:lme,range:pme}))||!1},decorations(sme){const{active:lme,range:dme,decorationId:fme}=ume.getState(sme);return lme?DecorationSet.create(sme.doc,[Decoration.inline(dme.from,dme.to,{nodeName:zP,class:eme,"data-decoration-id":fme})]):null}}});return ume}const normalClass="tiptap-menu-item-menus-item",lighClass="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",SlashMenu=Ff=>{var vme;const kh=React.useContext(shareData),{editor:x_,emitter:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState({}),rme=React.useRef(null);React.useEffect(()=>{B_==null||B_.on("show",Eme=>{nme({...Eme})})},[]);const ime=((vme=tme==null?void 0:tme.range)==null?void 0:vme.from)+1||0,ome=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setParagraph().hideMenu().run()},ame=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHeading({level:Eme}).hideMenu().run()},cme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setCodeBlock().hideMenu().run()},ume=()=>{const Eme=document.createElement("input");Eme.type="file",Eme.accept="image/*",Eme.addEventListener("change",Sme=>{const bme=Sme.target.files[0],Rme=bme.size,wme=512*1024;if(Rme>wme)staticMethods.warning("图片大小不能超过512kb!");else{const Mme=new FormData;Mme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Mme,ext:bme==null?void 0:bme.name}).then(Lme=>{Lme!=null&&Lme.url&&(x_==null||x_.chain().focus(ime).deleteRange(tme.range).setImage({src:Lme==null?void 0:Lme.url}).hideMenu().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),Eme.click()},sme=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).insertTable({rows:Eme.row,cols:Eme.col,withHeaderRow:!0}).hideMenu().run()},lme=(Eme=!1)=>{Eme?x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleOrderedList().hideMenu().run():x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleBulletList().hideMenu().run()},dme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).showBubbleMenu({from:ime,to:ime}).hideMenu().run()},fme=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).hideMenu().run(),window.postMessage({type:Eme,value:{pos:ime}})},pme=()=>{hme()},hme=()=>{const Eme=document.createElement("input");Eme.type="file",Eme.accept=".pdf",Eme.addEventListener("change",Sme=>{const bme=Sme.target.files[0];if((bme==null?void 0:bme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((bme==null?void 0:bme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Rme=new FormData;Rme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:getFileSuffix(bme==null?void 0:bme.name)}).then(wme=>{var Mme,Lme;(Lme=(Mme=x_==null?void 0:x_.chain().focus(ime))==null?void 0:Mme.deleteRange(tme.range).setPdf({pdfUrl:wme==null?void 0:wme.url}))==null||Lme.hideMenu().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),Eme.click()},mme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHorizontalRule().hideMenu().run()},_me=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setBlockquote().hideMenu().run()};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500})},[$_,zP]);const gme=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:gme,overflowY:"auto"},ref:rme,children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:lighClass,"data-tip":"正文",onClick:ome,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"一级标题",onClick:()=>{ame(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"二级标题",onClick:()=>{ame(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"三级标题",onClick:()=>{ame(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"四级标题",onClick:()=>{ame(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"五级标题",onClick:()=>{ame(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"六级标题",onClick:()=>{ame(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"无序列表",onClick:()=>{lme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"有序列表",onClick:()=>{lme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"链接",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"分割线",onClick:mme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"引用",onClick:_me,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:cme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ume,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:sme})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:pme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"编码测验"})]})]})]})]})},build=(Ff,kh,x_)=>new ReactRenderer(Ff,{editor:kh,props:{editor:kh,emitter:x_}}).element,char="/",ignoreChar=["title"],Slash=Extension.create({name:"Slash",addOptions(){return{char,allowSpaces:!1,startOfLine:!0,render:void 0,tip:null,emitter:null,allow:Ff=>{const kh=Ff.editor.state.doc;let x_=!0;return Ff.editor.isFocused&&kh.nodesBetween(Ff.range.from,Ff.range.to,(B_,$_,$P)=>(ignoreChar.includes(B_.type.name)&&(x_=!1),!1)),x_}}},onBeforeCreate(){this.options.emitter=new EventEmitter,this.options.render=()=>({onBeforeStart:Ff=>{if(this.options.tip)return;const kh=build(SlashMenu,this.editor,this.options.emitter);this.options.tip=tippy(document.body,{getReferenceClientRect:null,content:kh,interactive:!0,trigger:"manual",placement:"bottom",offset:[85,10],duration:[300,300]})},onStart:Ff=>{var kh,x_,B_,$_;console.log((kh=Ff==null?void 0:Ff.clientRect)==null?void 0:kh.call(Ff)),(x_=this.options.tip)==null||x_.setProps({getReferenceClientRect:Ff.clientRect}),(B_=this.options.emitter)==null||B_.emit("show",{node:{type:{name:"paragraph"}},range:Ff.range}),this.editor.chain().hideTip().changeTip(!0).run(),($_=this.options.tip)==null||$_.show()},onExit:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null},onUpdate:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null}})},addCommands(){return{showMenu:()=>()=>{var Ff,kh;return this.editor.chain().hideTip().changeTip(!0).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideMenu:()=>()=>{var Ff,kh;return this.editor.chain().changeTip(!1).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.destroy(),this.options.tip=null,!0}}},addProseMirrorPlugins(){return[Suggestion({editor:this.editor,...this.options}),new Plugin({key:new PluginKey("slash-whell"),props:{handleDOMEvents:{wheel:()=>{this.editor.commands.hideMenu()}}}})]}});function bail(Ff){if(Ff)throw Ff}/*!
|
|
411
|
+
`+$P):B_.stack=$P}throw B_}}_request(kh,x_){typeof kh=="string"?(x_=x_||{},x_.url=kh):x_=kh||{},x_=mergeConfig(this.defaults,x_);const{transitional:B_,paramsSerializer:$_,headers:$P}=x_;B_!==void 0&&validator.assertOptions(B_,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),$_!=null&&(utils$1.isFunction($_)?x_.paramsSerializer={serialize:$_}:validator.assertOptions($_,{encode:validators.function,serialize:validators.function},!0)),x_.method=(x_.method||this.defaults.method||"get").toLowerCase();let zP=$P&&utils$1.merge($P.common,$P[x_.method]);$P&&utils$1.forEach(["delete","get","head","post","put","patch","common"],cme=>{delete $P[cme]}),x_.headers=AxiosHeaders$1.concat(zP,$P);const eme=[];let tme=!0;this.interceptors.request.forEach(function(ume){typeof ume.runWhen=="function"&&ume.runWhen(x_)===!1||(tme=tme&&ume.synchronous,eme.unshift(ume.fulfilled,ume.rejected))});const nme=[];this.interceptors.response.forEach(function(ume){nme.push(ume.fulfilled,ume.rejected)});let rme,ime=0,ome;if(!tme){const cme=[dispatchRequest.bind(this),void 0];for(cme.unshift.apply(cme,eme),cme.push.apply(cme,nme),ome=cme.length,rme=Promise.resolve(x_);ime<ome;)rme=rme.then(cme[ime++],cme[ime++]);return rme}ome=eme.length;let ame=x_;for(ime=0;ime<ome;){const cme=eme[ime++],ume=eme[ime++];try{ame=cme(ame)}catch(sme){ume.call(this,sme);break}}try{rme=dispatchRequest.call(this,ame)}catch(cme){return Promise.reject(cme)}for(ime=0,ome=nme.length;ime<ome;)rme=rme.then(nme[ime++],nme[ime++]);return rme}getUri(kh){kh=mergeConfig(this.defaults,kh);const x_=buildFullPath(kh.baseURL,kh.url);return buildURL(x_,kh.params,kh.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(kh){Axios.prototype[kh]=function(x_,B_){return this.request(mergeConfig(B_||{},{method:kh,url:x_,data:(B_||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(kh){function x_(B_){return function($P,zP,eme){return this.request(mergeConfig(eme||{},{method:kh,headers:B_?{"Content-Type":"multipart/form-data"}:{},url:$P,data:zP}))}}Axios.prototype[kh]=x_(),Axios.prototype[kh+"Form"]=x_(!0)});const Axios$1=Axios;class CancelToken{constructor(kh){if(typeof kh!="function")throw new TypeError("executor must be a function.");let x_;this.promise=new Promise(function($P){x_=$P});const B_=this;this.promise.then($_=>{if(!B_._listeners)return;let $P=B_._listeners.length;for(;$P-- >0;)B_._listeners[$P]($_);B_._listeners=null}),this.promise.then=$_=>{let $P;const zP=new Promise(eme=>{B_.subscribe(eme),$P=eme}).then($_);return zP.cancel=function(){B_.unsubscribe($P)},zP},kh(function($P,zP,eme){B_.reason||(B_.reason=new CanceledError($P,zP,eme),x_(B_.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(kh){if(this.reason){kh(this.reason);return}this._listeners?this._listeners.push(kh):this._listeners=[kh]}unsubscribe(kh){if(!this._listeners)return;const x_=this._listeners.indexOf(kh);x_!==-1&&this._listeners.splice(x_,1)}static source(){let kh;return{token:new CancelToken(function($_){kh=$_}),cancel:kh}}}const CancelToken$1=CancelToken;function spread(Ff){return function(x_){return Ff.apply(null,x_)}}function isAxiosError(Ff){return utils$1.isObject(Ff)&&Ff.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([Ff,kh])=>{HttpStatusCode[kh]=Ff});const HttpStatusCode$1=HttpStatusCode;function createInstance(Ff){const kh=new Axios$1(Ff),x_=bind(Axios$1.prototype.request,kh);return utils$1.extend(x_,Axios$1.prototype,kh,{allOwnKeys:!0}),utils$1.extend(x_,kh,null,{allOwnKeys:!0}),x_.create=function($_){return createInstance(mergeConfig(Ff,$_))},x_}const axios=createInstance(defaults$2);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(kh){return Promise.all(kh)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=Ff=>formDataToJSON(utils$1.isHTMLForm(Ff)?new FormData(Ff):Ff),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const upload=async Ff=>{try{return(await axios.post(`${Ff==null?void 0:Ff.url}/oss/upload?ext=${Ff==null?void 0:Ff.ext}`,Ff==null?void 0:Ff.file,{headers:{"Content-Type":"multipart/form-data"}})).data}catch(kh){return kh}},base64ToText$1=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}},textToBase64=Ff=>{const x_=new TextEncoder().encode(Ff),B_=String.fromCharCode(...x_);return btoa(B_)},getFileSuffix=Ff=>{const kh=Ff.indexOf(".")>-1?Ff.split("."):[];return kh.length>0?kh[kh.length-1]:""},marks={strong:"bold",emphasis:"italic",delete:"strike",link:"link"},toNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"linkReference":x_.type="paragraph";break;case"text":x_.text=Ff==null?void 0:Ff.value,B_!=null&&B_.length&&(x_.marks=B_);break;case"heading":x_.attrs={level:Ff==null?void 0:Ff.depth};break;case"list":x_.type=Ff!=null&&Ff.ordered?"orderedList":"bulletList";break;case"listItem":($_=Ff.children)!=null&&$_.length||(x_.content=[{type:"paragraph"}]);break;case"thematicBreak":x_.type="horizontalRule";break;case"image":x_.attrs={src:Ff==null?void 0:Ff.url,alt:Ff==null?void 0:Ff.alt,title:Ff==null?void 0:Ff.title},B_!=null&&B_.length&&(x_.marks=B_);break;case"html":x_.type="text",x_.text=" ";break;case"code":(Ff==null?void 0:Ff.props)==="active"?(x_.type="active",x_.attrs={language:Ff==null?void 0:Ff.lang,id:Ff==null?void 0:Ff.value}):(Ff==null?void 0:Ff.props)==="exec"?(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang,exec:!0},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]):(x_.type="codeBlock",x_.attrs={language:Ff==null?void 0:Ff.lang},x_.content=Ff!=null&&Ff.value?[{type:"text",text:Ff==null?void 0:Ff.value}]:[]);break;case"inlineCode":x_.type="text",x_.text=Ff==null?void 0:Ff.value,x_.marks=[{type:"code"}];break;default:{const nme=Object.keys(marks);if(nme!=null&&nme.includes(Ff==null?void 0:Ff.type))if(Ff.type==="link"&&/\.pdf$/i.test(Ff.url))x_.type="pdf",x_.attrs={pdfUrl:Ff==null?void 0:Ff.url};else{const rme={type:marks[Ff==null?void 0:Ff.type]};Ff.type==="link"&&(rme.attrs={href:Ff==null?void 0:Ff.url,target:"_blank"});const ime=Ff==null?void 0:Ff.children;(ime==null?void 0:ime.length)===1&&ime[0].type==="text"?(x_.type="text",x_.text=ime[0].value,x_.marks=[...B_,rme]):(x_.type="fragment",B_.push(rme))}}break}if(($P=Ff==null?void 0:Ff.children)!=null&&$P.length)if((Ff==null?void 0:Ff.type)==="paragraph"&&((zP=Ff==null?void 0:Ff.children)==null?void 0:zP.length)===1&&((eme=Ff==null?void 0:Ff.children[0])==null?void 0:eme.type)==="image"){x_.type="image";const nme=Ff==null?void 0:Ff.children[0];x_.attrs={src:nme==null?void 0:nme.url,alt:nme==null?void 0:nme.alt,title:nme==null?void 0:nme.title}}else x_.content=(tme=Ff==null?void 0:Ff.children)==null?void 0:tme.map(nme=>toNodeObj(nme,B_));return x_.type==="text"&&(x_!=null&&x_.content)&&(x_==null||delete x_.content),x_},toEditorJSON=Ff=>{var x_,B_,$_;const kh={};return kh.type="document",(x_=Ff==null?void 0:Ff.children)!=null&&x_.length&&(kh.content=($_=(B_=Ff==null?void 0:Ff.children)==null?void 0:B_.filter($P=>($P==null?void 0:$P.type)!=="definition"))==null?void 0:$_.map($P=>toNodeObj($P))),kh},marksMD={bold:"strong",italic:"emphasis",strike:"delete",link:"link"},toMDNodeObj=(Ff,kh)=>{var $_,$P,zP,eme,tme,nme,rme,ime,ome,ame,cme,ume,sme,lme,dme,fme,pme,hme,mme,_me,gme,vme,Eme,Sme;const x_={};x_.type=Ff==null?void 0:Ff.type;const B_=kh?[...kh]:[];switch(Ff==null?void 0:Ff.type){case"text":{const bme=($_=Ff==null?void 0:Ff.marks)==null?void 0:$_.length;if(!bme)x_.value=Ff==null?void 0:Ff.text;else if(bme===1){const Rme=Ff==null?void 0:Ff.marks[0];(Rme==null?void 0:Rme.type)==="code"?(x_.type="inlineCode",x_.value=Ff==null?void 0:Ff.text):(Rme==null?void 0:Rme.type)==="link"?(x_.type="link",x_.url=($P=Rme==null?void 0:Rme.attrs)==null?void 0:$P.href,x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):(B_==null?void 0:B_.length)===0&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text}else(zP=Ff==null?void 0:Ff.marks)==null||zP.forEach(Rme=>{!B_.includes(Rme==null?void 0:Rme.type)&&marksMD[Rme==null?void 0:Rme.type]?(x_.type=marksMD[Rme==null?void 0:Rme.type],x_.children=[{type:"text",value:Ff==null?void 0:Ff.text}]):x_.value=Ff==null?void 0:Ff.text})}break;case"fragment":if((eme=Ff==null?void 0:Ff.content)!=null&&eme.length&&((nme=(tme=Ff==null?void 0:Ff.content[0])==null?void 0:tme.marks)!=null&&nme.length)){const bme=(rme=Ff==null?void 0:Ff.content[0])==null?void 0:rme.marks,Rme=bme==null?void 0:bme.find(Mme=>!(B_!=null&&B_.includes(Mme==null?void 0:Mme.type))),wme=Rme==null?void 0:Rme.type;x_.type=marksMD[wme],wme==="link"&&(x_.url=(ime=Rme==null?void 0:Rme.attrs)==null?void 0:ime.href),B_.push(wme)}else x_.type="paragraph";break;case"heading":x_.depth=(ome=Ff==null?void 0:Ff.attrs)==null?void 0:ome.level;break;case"bulletList":x_.type="list",x_.ordered=!1;break;case"orderedList":x_.type="list",x_.ordered=!0;break;case"horizontalRule":x_.type="thematicBreak";break;case"image":B_!=null&&B_.length?(x_.url=(ame=Ff==null?void 0:Ff.attrs)==null?void 0:ame.src,x_.alt=(cme=Ff==null?void 0:Ff.attrs)==null?void 0:cme.alt,x_.title=(ume=Ff==null?void 0:Ff.attrs)==null?void 0:ume.title):(x_.type="paragraph",x_.children=[{type:"image",url:(sme=Ff==null?void 0:Ff.attrs)==null?void 0:sme.src,alt:(lme=Ff==null?void 0:Ff.attrs)==null?void 0:lme.alt,title:(dme=Ff==null?void 0:Ff.attrs)==null?void 0:dme.title}]);break;case"codeBlock":x_.type="code",x_.lang=(fme=Ff==null?void 0:Ff.attrs)==null?void 0:fme.language,x_.value=(pme=Ff==null?void 0:Ff.content)!=null&&pme.length?(hme=Ff==null?void 0:Ff.content[0])==null?void 0:hme.text:"",(mme=Ff==null?void 0:Ff.attrs)!=null&&mme.exec&&(x_.props="exec");break;case"active":x_.type="code",x_.lang=(_me=Ff==null?void 0:Ff.attrs)==null?void 0:_me.language,x_.value=(gme=Ff==null?void 0:Ff.attrs)==null?void 0:gme.id,x_.props="active";break;case"pdf":x_.type="paragraph",x_.children=[{type:"link",url:(vme=Ff==null?void 0:Ff.attrs)==null?void 0:vme.pdfUrl}];break}return(Eme=Ff==null?void 0:Ff.content)!=null&&Eme.length&&(x_.children=(Sme=Ff==null?void 0:Ff.content)==null?void 0:Sme.map(bme=>toMDNodeObj(bme,B_))),x_.type==="code"&&(x_!=null&&x_.children)&&(x_==null||delete x_.children),x_},toMarkdownJson=Ff=>{var x_,B_;const kh={};return kh.type="root",(x_=Ff==null?void 0:Ff.content)!=null&&x_.length&&(kh.children=(B_=Ff==null?void 0:Ff.content)==null?void 0:B_.map($_=>toMDNodeObj($_))),kh},normalClass$1="tiptap-menu-item-menus-item",lighClass$1="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",Menu=Ff=>{const kh=React.useContext(shareData),{editor:x_,data:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),tme=(B_==null?void 0:B_.pos)+1||0,nme=()=>{x_==null||x_.chain().focus(tme).setParagraph().hideTip().run()},rme=gme=>{x_==null||x_.chain().focus(tme).setHeading({level:gme}).hideTip().run()},ime=()=>{x_==null||x_.chain().focus(tme).setCodeBlock().hideTip().run()},ome=()=>{const gme=document.createElement("input");gme.type="file",gme.accept="image/*",gme.addEventListener("change",vme=>{const Eme=vme.target.files[0],Sme=Eme.size,bme=512*1024;if(Sme>bme)staticMethods.warning("图片大小不能超过512kb!");else{const Rme=new FormData;Rme.append("file",Eme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:Eme==null?void 0:Eme.name}).then(wme=>{wme!=null&&wme.url&&(x_==null||x_.chain().focus(tme).setImage({src:wme==null?void 0:wme.url}).hideTip().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),gme.click()},ame=gme=>{x_==null||x_.chain().focus(tme).insertTable({rows:gme.row,cols:gme.col,withHeaderRow:!0}).hideTip().run()},cme=(gme=!1)=>{gme?x_==null||x_.chain().focus(tme).toggleOrderedList().hideTip().run():x_==null||x_.chain().focus(tme).toggleBulletList().hideTip().run()},ume=()=>{x_==null||x_.chain().focus(tme).showBubbleMenu({from:tme,to:tme}).hideTip().run()},sme=gme=>{window.postMessage({type:gme,value:{pos:tme}}),x_==null||x_.commands.hideTip()},lme=()=>{hme()},dme=()=>{x_==null||x_.chain().focus(tme).setHorizontalRule().hideTip().run()},fme=()=>{x_==null||x_.chain().focus(tme).setBlockquote().hideTip().run()},pme=gme=>{var vme,Eme;return((Eme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Eme.name)===gme},hme=()=>{const gme=document.createElement("input");gme.type="file",gme.accept=".pdf",gme.addEventListener("change",vme=>{const Eme=vme.target.files[0];if((Eme==null?void 0:Eme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((Eme==null?void 0:Eme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Sme=new FormData;Sme.append("file",Eme),upload({url:kh==null?void 0:kh.apiUrl,file:Sme,ext:getFileSuffix(Eme==null?void 0:Eme.name)}).then(bme=>{var Rme,wme;(wme=(Rme=x_==null?void 0:x_.chain().focus(tme))==null?void 0:Rme.setPdf({pdfUrl:bme==null?void 0:bme.url}))==null||wme.hideTip().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),gme.click()},mme=gme=>{var vme,Eme,Sme,bme;return pme((Eme=(vme=B_==null?void 0:B_.node)==null?void 0:vme.type)==null?void 0:Eme.name)&&((bme=(Sme=B_==null?void 0:B_.node)==null?void 0:Sme.attrs)==null?void 0:bme.level)===gme};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500,onTrigger(gme,vme){$_.classList.add("tiptap-menu-item-list-item-light")},onHide(gme){$_.classList.remove("tiptap-menu-item-list-item-light")}})},[$_,zP]);const _me=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:_me,overflowY:"auto"},children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:pme("paragraph")?lighClass$1:normalClass$1,"data-tip":"正文",onClick:nme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(1)?lighClass$1:normalClass$1,"data-tip":"一级标题",onClick:()=>{rme(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(2)?lighClass$1:normalClass$1,"data-tip":"二级标题",onClick:()=>{rme(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(3)?lighClass$1:normalClass$1,"data-tip":"三级标题",onClick:()=>{rme(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(4)?lighClass$1:normalClass$1,"data-tip":"四级标题",onClick:()=>{rme(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(5)?lighClass$1:normalClass$1,"data-tip":"五级标题",onClick:()=>{rme(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:mme(6)?lighClass$1:normalClass$1,"data-tip":"六级标题",onClick:()=>{rme(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("bulletList")?lighClass$1:normalClass$1,"data-tip":"无序列表",onClick:()=>{cme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"有序列表",onClick:()=>{cme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("link")?lighClass$1:normalClass$1,"data-tip":"链接",onClick:ume,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"分割线",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:pme("orderedList")?lighClass$1:normalClass$1,"data-tip":"引用",onClick:fme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ime,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ome,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:ame})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:lme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{sme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"编码测验"})]})]})]})]})},ChangeMenu=Ff=>{const{editor:kh,data:x_}=Ff;x_.pos+1;const B_=()=>{const{range:$P}=x_;kh==null||kh.chain().deleteRange($P).hideTip().run()},$_=()=>{const $P=kh==null?void 0:kh.view.nodeDOM(x_.pos),zP="text/html",eme=new Blob([$P==null?void 0:$P.outerHTML],{type:zP}),tme=[new ClipboardItem({[zP]:eme})];navigator.clipboard.write(tme),kh==null||kh.commands.hideTip()};return jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item tiptap-changemenu-item-del",onClick:B_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.332 3.99967H14.6654V5.33301H13.332V13.9997C13.332 14.3679 13.0336 14.6663 12.6654 14.6663H3.33203C2.96384 14.6663 2.66536 14.3679 2.66536 13.9997V5.33301H1.33203V3.99967H4.66536V1.99967C4.66536 1.63149 4.96384 1.33301 5.33203 1.33301H10.6654C11.0336 1.33301 11.332 1.63149 11.332 1.99967V3.99967ZM11.9987 5.33301H3.9987V13.333H11.9987V5.33301ZM5.9987 7.33301H7.33203V11.333H5.9987V7.33301ZM8.66537 7.33301H9.9987V11.333H8.66537V7.33301ZM5.9987 2.66634V3.99967H9.9987V2.66634H5.9987Z"})}),jsxRuntimeExports.jsx("span",{children:"删除"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-changemenu-item",onClick:$_,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.66653 3.99967V1.99967C4.66653 1.63149 4.96501 1.33301 5.3332 1.33301H13.3332C13.7014 1.33301 13.9999 1.63149 13.9999 1.99967V11.333C13.9999 11.7012 13.7014 11.9997 13.3332 11.9997H11.3332V13.9991C11.3332 14.3676 11.0333 14.6663 10.662 14.6663H2.67111C2.30039 14.6663 2 14.3699 2 13.9991L2.00173 4.66692C2.0018 4.29841 2.30176 3.99967 2.67295 3.99967H4.66653ZM3.33495 5.33301L3.33346 13.333H9.99987V5.33301H3.33495ZM5.99987 3.99967H11.3332V10.6663H12.6665V2.66634H5.99987V3.99967Z",fill:"#999999"})}),jsxRuntimeExports.jsx("span",{children:"复制"})]})]})},Tip=Ff=>{const{editor:kh,emitter:x_}=Ff,[B_,$_]=React.useState(null),[$P,zP]=React.useState(null),[eme,tme]=React.useState(null),[nme,rme]=React.useState(null),[ime,ome]=React.useState({}),[ame,cme]=React.useState("add");return React.useEffect(()=>{if(!B_||!$P)return;const ume=tippy(B_,{placement:"bottom-start",content:$P,interactive:!0,trigger:"mouseenter focus click focusin",onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[B_,$P]),React.useEffect(()=>{if(!eme||!nme)return;const ume=tippy(eme,{placement:"bottom-start",content:nme,interactive:!0,duration:[300,300],onTrigger(sme,lme){kh==null||kh.commands.changeTip(!0)},onHide(sme){kh==null||kh.commands.changeTip(!1)}});return()=>{ume.unmount(),ume.destroy()}},[eme,nme]),React.useEffect(()=>{x_==null||x_.on("hover",ume=>{ome({...ume})}),x_==null||x_.on("type",({type:ume})=>{ume==="add"?cme("add"):ume==="content"&&cme("content")})},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ame==="add"?jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:$_,children:[jsxRuntimeExports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M6.5625 6.5625V9.9375C6.5625 10.0867 6.50324 10.2298 6.39775 10.3352C6.29226 10.4407 6.14918 10.5 6 10.5C5.85082 10.5 5.70774 10.4407 5.60225 10.3352C5.49676 10.2298 5.4375 10.0867 5.4375 9.9375V6.5625H2.0625C1.91332 6.5625 1.77024 6.50324 1.66475 6.39775C1.55926 6.29226 1.5 6.14918 1.5 6C1.5 5.85082 1.55926 5.70774 1.66475 5.60225C1.77024 5.49676 1.91332 5.4375 2.0625 5.4375H5.4375V2.0625C5.4375 1.91332 5.49676 1.77024 5.60225 1.66475C5.70774 1.55926 5.85082 1.5 6 1.5C6.14918 1.5 6.29226 1.55926 6.39775 1.66475C6.50324 1.77024 6.5625 1.91332 6.5625 2.0625V5.4375H9.9375C10.0867 5.4375 10.2298 5.49676 10.3352 5.60225C10.4407 5.70774 10.5 5.85082 10.5 6C10.5 6.14918 10.4407 6.29226 10.3352 6.39775C10.2298 6.50324 10.0867 6.5625 9.9375 6.5625H6.5625Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:zP,children:jsxRuntimeExports.jsx(Menu,{editor:kh,data:ime})})]}):jsxRuntimeExports.jsxs("div",{className:"floatingmenu-tip",ref:tme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.07432 2.59277C5.40059 2.59277 5.72366 2.65704 6.02509 2.78189C6.32652 2.90675 6.60041 3.08975 6.83111 3.32046C7.06181 3.55116 7.24482 3.82505 7.36968 4.12648C7.49453 4.42791 7.5588 4.75098 7.5588 5.07725V7.56173H5.07432C4.74805 7.56173 4.42498 7.49746 4.12355 7.37261C3.82212 7.24775 3.54824 7.06474 3.31753 6.83404C3.08683 6.60333 2.90382 6.32945 2.77896 6.02802C2.65411 5.72659 2.58984 5.40352 2.58984 5.07725C2.58984 4.75098 2.65411 4.42791 2.77896 4.12648C2.90382 3.82505 3.08683 3.55116 3.31753 3.32046C3.54824 3.08975 3.82212 2.90675 4.12355 2.78189C4.42498 2.65704 4.74805 2.59277 5.07432 2.59277ZM6.68192 6.68485V5.07725C6.68192 4.7593 6.58764 4.44848 6.41099 4.18411C6.23435 3.91974 5.98327 3.71369 5.68952 3.59202C5.39577 3.47034 5.07254 3.43851 4.76069 3.50054C4.44885 3.56257 4.1624 3.71568 3.93757 3.9405C3.71275 4.16533 3.55964 4.45178 3.49761 4.76362C3.43558 5.07547 3.46741 5.3987 3.58909 5.69245C3.71076 5.9862 3.91682 6.23728 4.18118 6.41392C4.44555 6.59057 4.75637 6.68485 5.07432 6.68485H6.68192ZM10.9201 2.59277C11.2464 2.59277 11.5695 2.65704 11.8709 2.78189C12.1723 2.90675 12.4462 3.08975 12.6769 3.32046C12.9076 3.55116 13.0906 3.82505 13.2155 4.12648C13.3404 4.42791 13.4046 4.75098 13.4046 5.07725C13.4046 5.40352 13.3404 5.72659 13.2155 6.02802C13.0906 6.32945 12.9076 6.60333 12.6769 6.83404C12.4462 7.06474 12.1723 7.24775 11.8709 7.37261C11.5695 7.49746 11.2464 7.56173 10.9201 7.56173H8.43567V5.07725C8.43567 4.75098 8.49993 4.42791 8.62479 4.12648C8.74965 3.82505 8.93265 3.55116 9.16336 3.32046C9.39406 3.08975 9.66795 2.90675 9.96938 2.78189C10.2708 2.65704 10.5939 2.59277 10.9201 2.59277ZM9.31254 6.68485H10.9201C11.2381 6.68485 11.5489 6.59057 11.8133 6.41392C12.0777 6.23728 12.2837 5.9862 12.4054 5.69245C12.5271 5.3987 12.5589 5.07547 12.4969 4.76362C12.4348 4.45178 12.2817 4.16533 12.0569 3.9405C11.8321 3.71568 11.5456 3.56257 11.2338 3.50054C10.9219 3.43851 10.5987 3.47034 10.3049 3.59202C10.0112 3.71369 9.76012 3.91974 9.58347 4.18411C9.40683 4.44848 9.31254 4.7593 9.31254 5.07725V6.68485ZM5.07432 13.4076C4.4154 13.4076 3.78346 13.1458 3.31753 12.6799C2.8516 12.2139 2.58984 11.582 2.58984 10.9231C2.58984 10.2642 2.8516 9.63222 3.31753 9.16629C3.78346 8.70036 4.4154 8.4386 5.07432 8.4386H7.5588V10.9231C7.5588 11.2493 7.49453 11.5724 7.36968 11.8738C7.24482 12.1753 7.06181 12.4492 6.83111 12.6799C6.60041 12.9106 6.32652 13.0936 6.02509 13.2184C5.72366 13.3433 5.40059 13.4076 5.07432 13.4076ZM6.68192 9.31547H5.07432C4.75637 9.31547 4.44555 9.40976 4.18118 9.5864C3.91682 9.76305 3.71076 10.0141 3.58909 10.3079C3.46741 10.6016 3.43558 10.9249 3.49761 11.2367C3.55964 11.5485 3.71275 11.835 3.93757 12.0598C4.1624 12.2847 4.44885 12.4378 4.76069 12.4998C5.07254 12.5618 5.39577 12.53 5.68952 12.4083C5.98327 12.2866 6.23435 12.0806 6.41099 11.8162C6.58764 11.5518 6.68192 11.241 6.68192 10.9231V9.31547ZM10.9201 13.4076C10.5939 13.4076 10.2708 13.3433 9.96938 13.2184C9.66795 13.0936 9.39406 12.9106 9.16336 12.6799C8.93265 12.4492 8.74965 12.1753 8.62479 11.8738C8.49993 11.5724 8.43567 11.2493 8.43567 10.9231V8.4386H10.9201C11.5791 8.4386 12.211 8.70036 12.6769 9.16629C13.1429 9.63222 13.4046 10.2642 13.4046 10.9231C13.4046 11.582 13.1429 12.2139 12.6769 12.6799C12.211 13.1458 11.5791 13.4076 10.9201 13.4076ZM9.31254 9.31547V10.9231C9.31254 11.241 9.40683 11.5518 9.58347 11.8162C9.76012 12.0806 10.0112 12.2866 10.3049 12.4083C10.5987 12.53 10.9219 12.5618 11.2338 12.4998C11.5456 12.4378 11.8321 12.2847 12.0569 12.0598C12.2817 11.835 12.4348 11.5485 12.4969 11.2367C12.5589 10.9249 12.5271 10.6016 12.4054 10.3079C12.2837 10.0141 12.0777 9.76305 11.8133 9.5864C11.5489 9.40976 11.2381 9.31547 10.9201 9.31547H9.31254Z",fill:"#999999"})}),jsxRuntimeExports.jsx("div",{ref:rme,children:jsxRuntimeExports.jsx(ChangeMenu,{editor:kh,data:ime})})]})})};class EventEmitter{constructor(){p0e(this,"callbacks",{})}on(kh,x_){return this.callbacks[kh]||(this.callbacks[kh]=[]),this.callbacks[kh].push(x_),this}emit(kh,...x_){const B_=this.callbacks[kh];return B_&&B_.forEach($_=>$_.apply(this,x_)),this}off(kh,x_){const B_=this.callbacks[kh];return B_&&(x_?this.callbacks[kh]=B_.filter($_=>$_!==x_):delete this.callbacks[kh]),this}removeAllListeners(){this.callbacks={}}}const allowTypes=["paragraph","heading","horizontalRule","blockquote","codeBlock","image","table"];class Handle{constructor(kh,x_,B_,$_=[]){p0e(this,"editor");p0e(this,"tippy");p0e(this,"component");p0e(this,"tippyOptions");p0e(this,"ignoreType");p0e(this,"isShow");p0e(this,"emitter");p0e(this,"lastPos",null);p0e(this,"prevent",!1);this.editor=kh,this.tippy=null,this.component=x_,this.tippyOptions=B_,this.ignoreType=$_,this.isShow=!1,this.emitter=new EventEmitter}build(){return new ReactRenderer(this.component,{editor:this.editor,props:{editor:this.editor,emitter:this.emitter}}).element}createTippy(kh=!1){var B_,$_,$P;if(!kh&&this.tippy)return;const x_=this.build();this.tippy=tippy(document.body,{duration:0,getReferenceClientRect:null,content:x_,interactive:!0,trigger:"manual",placement:"left-start",hideOnClick:"toggle",...this.tippyOptions}),($P=($_=(B_=this.editor)==null?void 0:B_.view)==null?void 0:$_.dom.parentElement)==null||$P.addEventListener("mouseleave",this.mouseLeave.bind(this))}mouseLeave(){setTimeout(()=>{this.hide()},10)}show(){var kh;this.prevent||((kh=this.tippy)==null||kh.show(),this.isShow=!0)}hide(){var kh;this.prevent||((kh=this.tippy)==null||kh.hide(),this.lastPos=null,this.isShow=!1)}setProps(kh){var x_;(x_=this.tippy)==null||x_.setProps(kh)}setPrevent(kh){this.prevent=kh}move(kh,x_){var ome;if(this.prevent)return;this.createTippy();const{state:B_}=kh,{doc:$_,selection:$P}=B_,zP=kh==null?void 0:kh.posAtCoords({left:x_==null?void 0:x_.clientX,top:x_==null?void 0:x_.clientY});if(!zP)return!1;const{pos:eme,inside:tme}=zP;let nme=!1,rme=!0;const ime=(ome=document.getElementById("ylz-editor-container"))==null?void 0:ome.getBoundingClientRect();$_.descendants((ame,cme,ume,sme)=>{if(eme>=cme&&eme<cme+ame.nodeSize){if(eme!==this.lastPos){this.lastPos=eme,this.emitter.emit("hover",{node:ame,pos:cme,range:{from:cme,to:cme+ame.nodeSize}});const lme=posToDOMRect(kh,cme,cme+ame.nodeSize);ame.type.name==="horizontalRule"?((lme.top-10<((ime==null?void 0:ime.top)||0)||lme.top+6>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top-10})})):((lme.top+6<((ime==null?void 0:ime.top)||0)||lme.top+22>((ime==null?void 0:ime.bottom)||0))&&(nme=!0),this.setProps({getReferenceClientRect:()=>({...lme,top:lme.top+6})}))}else rme=!1;ame.type.name!=="paragraph"?this.emitter.emit("type",{type:"content"}):this.emitter.emit("type",{type:"add"}),allowTypes.includes(ame.type.name)||(nme=!0),this.ignoreType.includes(ame.type.name)&&(nme=!0)}return!1}),rme&&(nme?this.hide():this.show())}destroy(){var kh,x_,B_,$_;(kh=this.tippy)==null||kh.destroy(),($_=(B_=(x_=this.editor)==null?void 0:x_.view)==null?void 0:B_.dom.parentElement)==null||$_.removeEventListener("mouseleave",this.mouseLeave),this.tippy=null,this.isShow=!1,this.lastPos=null}}const FloatingMenu=Extension.create({name:"floatingMenu",addOptions(){return{pluginKey:this.name,tip:null}},onBeforeCreate(){this.options.tip=new Handle(this.editor,Tip,{},["title","pdf","active"])},addCommands(){return{showTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.show(),!0},hideTip:()=>()=>{var Ff,kh,x_;return(x_=(kh=(Ff=this.options)==null?void 0:Ff.tip)==null?void 0:kh.tippy)==null||x_.hide(),!0},changeTip:(Ff=!0)=>()=>{var kh;return(kh=this.options.tip)==null||kh.setPrevent(Ff),!0}}},addProseMirrorPlugins(){return[FloatingMenuPlugin({editor:this.editor,...this.options})]}}),inputRegex=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Image$1=Node$1.create({name:"image",addOptions(){return{oss:"",inline:!1,allowBase64:!1,HTMLAttributes:{class:"tiptap-image"}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:Ff}){return["img",mergeAttributes(this.options.HTMLAttributes,Ff)]},addCommands(){return{setImage:Ff=>({commands:kh})=>kh.insertContent({type:this.name,attrs:Ff})}},addKeyboardShortcuts(){return{"Mod-v":()=>{var kh,x_;const Ff=this;(x_=(kh=navigator==null?void 0:navigator.clipboard)==null?void 0:kh.read())==null||x_.then(async B_=>{var $_,$P;for(const zP of B_)if(($_=zP==null?void 0:zP.types)!=null&&$_.includes("text/html")){const eme=await(zP==null?void 0:zP.getType("text/html")),tme=new FileReader;tme.onloadend=async()=>{var rme;if(!tme.result.startsWith("<img")){for(const ime of zP==null?void 0:zP.types)if(ime!=null&&ime.includes("image")){const ome=await zP.getType(ime),ame=new Date().getTime(),cme=new File([ome],ame.toString().substring(0,4)),ume=new FormData;ume.append("file",cme),upload({url:(rme=Ff.options)==null?void 0:rme.oss,file:ume,ext:"png"}).then(sme=>{if(sme!=null&&sme.url)return Ff.editor.commands.setImage({src:sme==null?void 0:sme.url})})}}},tme.readAsText(eme)}else for(const eme of zP==null?void 0:zP.types)if(eme!=null&&eme.includes("image")){const tme=await zP.getType(eme),nme=new Date().getTime(),rme=new File([tme],nme.toString().substring(0,4)),ime=new FormData;ime.append("file",rme),upload({url:($P=Ff.options)==null?void 0:$P.oss,file:ime,ext:"png"}).then(ome=>{if(ome!=null&&ome.url)return Ff.editor.commands.setImage({src:ome==null?void 0:ome.url})})}}).catch(B_=>{console.error("获取剪切板内容失败:",B_)})}}},addInputRules(){return[nodeInputRule({find:inputRegex,type:this.type,getAttributes:Ff=>{const[,,kh,x_,B_]=Ff;return{src:x_,alt:kh,title:B_}}})]}});function findSuggestionMatch(Ff){var kh;const{char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:zP}=Ff,eme=escapeForRegEx(x_),tme=new RegExp(`\\s${eme}$`),nme=$P?"^":"",rme=B_?new RegExp(`${nme}${eme}.*?(?=\\s${eme}|$)`,"gm"):new RegExp(`${nme}(?:^)?${eme}[^\\s${eme}]*`,"gm"),ime=((kh=zP.nodeBefore)===null||kh===void 0?void 0:kh.isText)&&zP.nodeBefore.text;if(!ime)return null;const ome=zP.pos-ime.length,ame=Array.from(ime.matchAll(rme)).pop();if(!ame||ame.input===void 0||ame.index===void 0)return null;const cme=ame.input.slice(Math.max(0,ame.index-1),ame.index),ume=new RegExp(`^[${$_==null?void 0:$_.join("")}\0]?$`).test(cme);if($_!==null&&!ume)return null;const sme=ome+ame.index;let lme=sme+ame[0].length;return B_&&tme.test(ime.slice(lme-1,lme+1))&&(ame[0]+=" ",lme+=1),sme<zP.pos&&lme>=zP.pos?{range:{from:sme,to:lme},query:ame[0].slice(x_.length),text:ame[0]}:null}const SuggestionPluginKey=new PluginKey("suggestion");function Suggestion({pluginKey:Ff=SuggestionPluginKey,editor:kh,char:x_="@",allowSpaces:B_=!1,allowedPrefixes:$_=[" "],startOfLine:$P=!1,decorationTag:zP="span",decorationClass:eme="suggestion",command:tme=()=>null,items:nme=()=>[],render:rme=()=>({}),allow:ime=()=>!0,findSuggestionMatch:ome=findSuggestionMatch}){let ame;const cme=rme==null?void 0:rme(),ume=new Plugin({key:Ff,view(){return{update:async(sme,lme)=>{var dme,fme,pme,hme,mme,_me,gme;const vme=(dme=this.key)===null||dme===void 0?void 0:dme.getState(lme),Eme=(fme=this.key)===null||fme===void 0?void 0:fme.getState(sme.state),Sme=vme.active&&Eme.active&&vme.range.from!==Eme.range.from,bme=!vme.active&&Eme.active,Rme=vme.active&&!Eme.active,wme=!bme&&!Rme&&vme.query!==Eme.query,Mme=bme||Sme,Lme=wme&&!Sme,Dme=Rme||Sme;if(!Mme&&!Lme&&!Dme)return;const yme=Dme&&!Mme?vme:Eme,kme=sme.dom.querySelector(`[data-decoration-id="${yme.decorationId}"]`);ame={editor:kh,range:yme.range,query:yme.query,text:yme.text,items:[],command:Cme=>{tme({editor:kh,range:yme.range,props:Cme})},decorationNode:kme,clientRect:kme?()=>{var Cme;const{decorationId:Nme}=(Cme=this.key)===null||Cme===void 0?void 0:Cme.getState(kh.state),Fme=sme.dom.querySelector(`[data-decoration-id="${Nme}"]`);return(Fme==null?void 0:Fme.getBoundingClientRect())||null}:null},Mme&&((pme=cme==null?void 0:cme.onBeforeStart)===null||pme===void 0||pme.call(cme,ame)),Lme&&((hme=cme==null?void 0:cme.onBeforeUpdate)===null||hme===void 0||hme.call(cme,ame)),(Lme||Mme)&&(ame.items=await nme({editor:kh,query:yme.query})),Dme&&((mme=cme==null?void 0:cme.onExit)===null||mme===void 0||mme.call(cme,ame)),Lme&&((_me=cme==null?void 0:cme.onUpdate)===null||_me===void 0||_me.call(cme,ame)),Mme&&((gme=cme==null?void 0:cme.onStart)===null||gme===void 0||gme.call(cme,ame))},destroy:()=>{var sme;ame&&((sme=cme==null?void 0:cme.onExit)===null||sme===void 0||sme.call(cme,ame))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(sme,lme,dme,fme){const{isEditable:pme}=kh,{composing:hme}=kh.view,{selection:mme}=sme,{empty:_me,from:gme}=mme,vme={...lme};if(vme.composing=hme,pme&&(_me||kh.view.composing)){(gme<lme.range.from||gme>lme.range.to)&&!hme&&!lme.composing&&(vme.active=!1);const Eme=ome({char:x_,allowSpaces:B_,allowedPrefixes:$_,startOfLine:$P,$position:mme.$from}),Sme=`id_${Math.floor(Math.random()*4294967295)}`;Eme&&ime({editor:kh,state:fme,range:Eme.range})?(vme.active=!0,vme.decorationId=lme.decorationId?lme.decorationId:Sme,vme.range=Eme.range,vme.query=Eme.query,vme.text=Eme.text):vme.active=!1}else vme.active=!1;return vme.active||(vme.decorationId=null,vme.range={from:0,to:0},vme.query=null,vme.text=null),vme}},props:{handleKeyDown(sme,lme){var dme;const{active:fme,range:pme}=ume.getState(sme.state);return fme&&((dme=cme==null?void 0:cme.onKeyDown)===null||dme===void 0?void 0:dme.call(cme,{view:sme,event:lme,range:pme}))||!1},decorations(sme){const{active:lme,range:dme,decorationId:fme}=ume.getState(sme);return lme?DecorationSet.create(sme.doc,[Decoration.inline(dme.from,dme.to,{nodeName:zP,class:eme,"data-decoration-id":fme})]):null}}});return ume}const normalClass="tiptap-menu-item-menus-item",lighClass="tiptap-menu-item-menus-item tiptap-menu-item-menus-light",SlashMenu=Ff=>{var vme;const kh=React.useContext(shareData),{editor:x_,emitter:B_}=Ff,[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState({}),rme=React.useRef(null);React.useEffect(()=>{B_==null||B_.on("show",Eme=>{nme({...Eme})})},[]);const ime=((vme=tme==null?void 0:tme.range)==null?void 0:vme.from)+1||0,ome=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setParagraph().hideMenu().run()},ame=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHeading({level:Eme}).hideMenu().run()},cme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setCodeBlock().hideMenu().run()},ume=()=>{const Eme=document.createElement("input");Eme.type="file",Eme.accept="image/*",Eme.addEventListener("change",Sme=>{const bme=Sme.target.files[0],Rme=bme.size,wme=512*1024;if(Rme>wme)staticMethods.warning("图片大小不能超过512kb!");else{const Mme=new FormData;Mme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Mme,ext:bme==null?void 0:bme.name}).then(Lme=>{Lme!=null&&Lme.url&&(x_==null||x_.chain().focus(ime).deleteRange(tme.range).setImage({src:Lme==null?void 0:Lme.url}).hideMenu().run())}).catch(()=>{staticMethods.destroy(),staticMethods.error("图片上传失败")})}}),Eme.click()},sme=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).insertTable({rows:Eme.row,cols:Eme.col,withHeaderRow:!0}).hideMenu().run()},lme=(Eme=!1)=>{Eme?x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleOrderedList().hideMenu().run():x_==null||x_.chain().focus(ime).deleteRange(tme.range).toggleBulletList().hideMenu().run()},dme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).showBubbleMenu({from:ime,to:ime}).hideMenu().run()},fme=Eme=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).hideMenu().run(),window.postMessage({type:Eme,value:{pos:ime}})},pme=()=>{hme()},hme=()=>{const Eme=document.createElement("input");Eme.type="file",Eme.accept=".pdf",Eme.addEventListener("change",Sme=>{const bme=Sme.target.files[0];if((bme==null?void 0:bme.type)!=="application/pdf"){staticMethods.destroy(),staticMethods.error("仅支持上传.pdf结尾的文件");return}if((bme==null?void 0:bme.size)>200*1024*1024){staticMethods.destroy(),staticMethods.error("上传文件不可超过200MB");return}const Rme=new FormData;Rme.append("file",bme),upload({url:kh==null?void 0:kh.apiUrl,file:Rme,ext:getFileSuffix(bme==null?void 0:bme.name)}).then(wme=>{var Mme,Lme;(Lme=(Mme=x_==null?void 0:x_.chain().focus(ime))==null?void 0:Mme.deleteRange(tme.range).setPdf({pdfUrl:wme==null?void 0:wme.url}))==null||Lme.hideMenu().run()}).catch(()=>{staticMethods.destroy(),staticMethods.error("文件上传失败")})}),Eme.click()},mme=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setHorizontalRule().hideMenu().run()},_me=()=>{x_==null||x_.chain().focus(ime).deleteRange(tme.range).setBlockquote().hideMenu().run()};React.useEffect(()=>{!$_||!zP||tippy($_,{placement:"right",content:zP,interactive:!0,duration:[300,300],interactiveBorder:10,interactiveDebounce:75,maxWidth:500,onTrigger(Eme,Sme){$_.classList.add("tiptap-menu-item-list-item-light")},onHide(Eme){$_.classList.remove("tiptap-menu-item-list-item-light")}})},[$_,zP]);const gme=window.innerHeight/2-30;return jsxRuntimeExports.jsxs("div",{className:"tiptap-menu tiptap-scroll",style:{maxHeight:gme,overflowY:"auto"},ref:rme,children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"基础"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-menus",children:[jsxRuntimeExports.jsx("div",{className:lighClass,"data-tip":"正文",onClick:ome,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 3.99984V13.9998H7.33398V3.99984H3.33398V2.6665H12.6673V3.99984H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"一级标题",onClick:()=>{ame(1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.001 5.33317V13.3332H12.6677L12.6673 6.8025L11.334 7.15984V5.77984L13.001 5.33317H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"二级标题",onClick:()=>{ame(2)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66536 2.6665V7.33317H7.33203V2.6665H8.66536V13.3332H7.33203V8.6665H2.66536V13.3332H1.33203V2.6665H2.66536ZM12.332 5.33317C13.7128 5.33317 14.832 6.45246 14.832 7.83317C14.832 8.40477 14.6402 8.93157 14.3174 9.35264L14.2188 9.4733L12.0216 11.9998H14.6654V13.3332H9.9987L9.99823 12.2958L13.2125 8.59857C13.3908 8.3937 13.4987 8.12604 13.4987 7.83317C13.4987 7.18884 12.9764 6.6665 12.332 6.6665C11.7199 6.6665 11.2179 7.1379 11.1692 7.7375L11.1654 7.83317H9.83203C9.83203 6.45246 10.9513 5.33317 12.332 5.33317Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"三级标题",onClick:()=>{ame(3)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317L14.6663 6.6665L12.9963 8.5885C14.0555 8.87877 14.834 9.84837 14.834 10.9998C14.834 12.3806 13.7147 13.4998 12.334 13.4998C11.1167 13.4998 10.1025 12.6298 9.87959 11.4776L11.1887 11.2233C11.2929 11.7607 11.7661 12.1665 12.334 12.1665C12.9783 12.1665 13.5007 11.6442 13.5007 10.9998C13.5007 10.3555 12.9783 9.83317 12.334 9.83317C12.1433 9.83317 11.9633 9.8789 11.8044 9.96004L10.9335 8.92864L12.8996 6.6665H10.0007V5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"四级标题",onClick:()=>{ame(4)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732V7.33317H7.33398V2.6665H8.66732V13.3332ZM14.6673 5.33317V10.6665H15.6673V11.9998H14.6673V13.3332H13.334V11.9998H9.66732V11.1065L13.0007 5.33317H14.6673ZM13.334 7.42184L11.4607 10.6665H13.334V7.42184Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"五级标题",onClick:()=>{ame(5)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33317V6.6665H11.7853L11.4757 8.4237C11.6963 8.36464 11.9281 8.33317 12.1673 8.33317C13.6401 8.33317 14.834 9.5271 14.834 10.9998C14.834 12.4726 13.6401 13.6665 12.1673 13.6665C10.9495 13.6665 9.92245 12.8502 9.60325 11.735L10.8854 11.3678C11.0451 11.9252 11.5586 12.3332 12.1673 12.3332C12.9037 12.3332 13.5007 11.7362 13.5007 10.9998C13.5007 10.2634 12.9037 9.6665 12.1673 9.6665C11.7469 9.6665 11.372 9.86104 11.1276 10.165L9.92085 9.56244L10.6673 5.33317H14.6673ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:normalClass,"data-tip":"六级标题",onClick:()=>{ame(6)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33317L12.3333 8.33317C13.8067 8.33317 15.0007 9.5271 15.0007 10.9998C15.0007 12.4726 13.8067 13.6665 12.334 13.6665C10.8613 13.6665 9.66732 12.4726 9.66732 10.9998C9.66732 10.5089 9.79998 10.049 10.0314 9.6539L12.526 5.33317H14.0653ZM2.66732 2.6665V7.33317H7.33398V2.6665H8.66732V13.3332H7.33398V8.6665H2.66732V13.3332H1.33398V2.6665H2.66732ZM12.334 9.6665C11.5976 9.6665 11.0007 10.2634 11.0007 10.9998C11.0007 11.7362 11.5976 12.3332 12.334 12.3332C13.0704 12.3332 13.6673 11.7362 13.6673 10.9998C13.6673 10.2634 13.0704 9.6665 12.334 9.6665Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"无序列表",onClick:()=>{lme(!1)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66683H14V4.00016H5.33333V2.66683ZM3 4.3335C2.44771 4.3335 2 3.88578 2 3.3335C2 2.78121 2.44771 2.3335 3 2.3335C3.55229 2.3335 4 2.78121 4 3.3335C4 3.88578 3.55229 4.3335 3 4.3335ZM3 9.00016C2.44771 9.00016 2 8.55243 2 8.00016C2 7.4479 2.44771 7.00016 3 7.00016C3.55229 7.00016 4 7.4479 4 8.00016C4 8.55243 3.55229 9.00016 3 9.00016ZM3 13.6002C2.44771 13.6002 2 13.1524 2 12.6002C2 12.0479 2.44771 11.6002 3 11.6002C3.55229 11.6002 4 12.0479 4 12.6002C4 13.1524 3.55229 13.6002 3 13.6002ZM5.33333 7.3335H14V8.66683H5.33333V7.3335ZM5.33333 12.0002H14V13.3335H5.33333V12.0002Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"有序列表",onClick:()=>{lme(!0)},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 2.66667H14V4H5.33333V2.66667ZM3.33333 2V4H4V4.66667H2V4H2.66667V2.66667H2V2H3.33333ZM2 9.33333V7.66667H3.33333V7.33333H2V6.66667H4V8.33333H2.66667V8.66667H4V9.33333H2ZM3.33333 13H2V12.3333H3.33333V12H2V11.3333H4V14H2V13.3333H3.33333V13ZM5.33333 7.33333H14V8.66667H5.33333V7.33333ZM5.33333 12H14V13.3333H5.33333V12Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"链接",onClick:dme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.357L11.2993 9.41423L12.2422 8.47143C13.5439 7.1697 13.5439 5.05914 12.2422 3.7574C10.9404 2.45565 8.82988 2.45565 7.52815 3.7574L6.58533 4.70021L5.64253 3.7574L6.58533 2.81459C8.40781 0.992142 11.3625 0.992142 13.185 2.81459C15.0074 4.63704 15.0074 7.59183 13.185 9.41423L12.2422 10.357ZM10.3565 12.2427L9.41375 13.1855C7.59135 15.008 4.63655 15.008 2.8141 13.1855C0.991654 11.363 0.991654 8.4083 2.8141 6.58582L3.75691 5.64302L4.69971 6.58582L3.75691 7.52863C2.45516 8.83036 2.45516 10.941 3.75691 12.2427C5.05865 13.5444 7.16921 13.5444 8.47095 12.2427L9.41375 11.2999L10.3565 12.2427ZM9.88515 5.17161L10.8279 6.11442L6.11393 10.8285L5.17112 9.88563L9.88515 5.17161Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"分割线",onClick:mme,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.33398 7.3335H2.66732V8.66683H1.33398V7.3335ZM4.00065 7.3335H12.0007V8.66683H4.00065V7.3335ZM13.334 7.3335H14.6673V8.66683H13.334V7.3335Z"})})}),jsxRuntimeExports.jsx("div",{className:"tiptap-menu-item-menus-item","data-tip":"引用",onClick:_me,children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0007 2.00049C14.3689 2.00049 14.6673 2.29897 14.6673 2.66715V12.0005C14.6673 12.3687 14.3689 12.6672 14.0007 12.6672H4.30398L1.33398 15.0005V2.66715C1.33398 2.29897 1.63246 2.00049 2.00065 2.00049H14.0007ZM13.334 3.33382H2.66732V12.2572L3.84287 11.3338H13.334V3.33382ZM7.01085 4.94156L7.30838 5.40075C6.19666 6.00229 6.2161 6.96842 6.2161 7.17682C6.3195 7.16255 6.42803 7.16069 6.53556 7.17069C7.13698 7.22642 7.61105 7.72016 7.61105 8.33382C7.61105 8.97816 7.08872 9.50049 6.44437 9.50049C6.08668 9.50049 5.74464 9.33702 5.52846 9.10749C5.18504 8.74295 5.00065 8.33382 5.00065 7.67062C5.00065 6.50411 5.81948 5.45838 7.01085 4.94156ZM10.3442 4.94156L10.6417 5.40075C9.52998 6.00229 9.54945 6.96842 9.54945 7.17682C9.65285 7.16255 9.76138 7.16069 9.86892 7.17069C10.4703 7.22642 10.9444 7.72016 10.9444 8.33382C10.9444 8.97816 10.4221 9.50049 9.77772 9.50049C9.42005 9.50049 9.07798 9.33702 8.86178 9.10749C8.51838 8.74295 8.33398 8.33382 8.33398 7.67062C8.33398 6.50411 9.15285 5.45838 10.3442 4.94156Z"})})})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"常用"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:cme,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M16 8L12.2287 11.7713L11.2859 10.8284L14.1144 8L11.2859 5.17157L12.2287 4.22877L16 8ZM1.88562 8L4.71405 10.8284L3.77123 11.7713L0 8L3.77123 4.22877L4.71405 5.17157L1.88562 8ZM6.52563 14H5.10673L9.4744 2H10.8933L6.52563 14Z",fill:"#14C3FA"})}),jsxRuntimeExports.jsx("span",{children:"可执行代码块"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:ume,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M1.99518 14C1.63002 14 1.33398 13.7034 1.33398 13.3377V2.66227C1.33398 2.29651 1.63752 2 1.99518 2H14.0061C14.3713 2 14.6673 2.29663 14.6673 2.66227V13.3377C14.6673 13.7035 14.3638 14 14.0061 14H1.99518ZM13.334 10V3.33333H2.66732V12.6667L9.33398 6L13.334 10ZM13.334 11.8856L9.33398 7.8856L4.55294 12.6667H13.334V11.8856ZM5.33398 7.33333C4.5976 7.33333 4.00065 6.7364 4.00065 6C4.00065 5.26362 4.5976 4.66667 5.33398 4.66667C6.07036 4.66667 6.66732 5.26362 6.66732 6C6.66732 6.7364 6.07036 7.33333 5.33398 7.33333Z",fill:"#FBC12D"})}),jsxRuntimeExports.jsx("span",{children:"图片"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",ref:$P,children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.33333 6.66667H6.66667V9.33333H9.33333V6.66667ZM10.6667 6.66667V9.33333H12.6667V6.66667H10.6667ZM9.33333 12.6667V10.6667H6.66667V12.6667H9.33333ZM10.6667 12.6667H12.6667V10.6667H10.6667V12.6667ZM9.33333 3.33333H6.66667V5.33333H9.33333V3.33333ZM10.6667 3.33333V5.33333H12.6667V3.33333H10.6667ZM5.33333 6.66667H3.33333V9.33333H5.33333V6.66667ZM5.33333 12.6667V10.6667H3.33333V12.6667H5.33333ZM5.33333 3.33333H3.33333V5.33333H5.33333V3.33333ZM2.66667 2H13.3333C13.7015 2 14 2.29848 14 2.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2Z",fill:"#2DDA9C"})}),jsxRuntimeExports.jsx("span",{children:"表格"}),jsxRuntimeExports.jsx("div",{ref:eme,children:jsxRuntimeExports.jsx(TableSelect,{onClick:sme})})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:pme,children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.66667 2.6H7.4V5C7.4 5.68856 7.9781 6.26667 8.66667 6.26667H11.0667V6.76667C11.0667 7.08855 11.3448 7.36667 11.6667 7.36667C11.9886 7.36667 12.2667 7.08855 12.2667 6.76667V4.66667C12.2667 4.50327 12.1865 4.34951 12.1165 4.24453L12.111 4.23629L12.104 4.22929L9.43738 1.56262C9.31201 1.43725 9.14874 1.4 9 1.4H2.66667C1.9781 1.4 1.4 1.9781 1.4 2.66667V13.3333C1.4 14.0219 1.9781 14.6 2.66667 14.6H9.1C9.4219 14.6 9.7 14.3219 9.7 14C9.7 13.6781 9.4219 13.4 9.1 13.4H2.66667C2.6394 13.4 2.62444 13.3913 2.61655 13.3835C2.60866 13.3756 2.6 13.3606 2.6 13.3333V2.66667C2.6 2.6394 2.60866 2.62444 2.61655 2.61655C2.62444 2.60866 2.6394 2.6 2.66667 2.6ZM8.75817 2.6L11.0667 4.94101V5.06667H8.66667C8.6394 5.06667 8.62444 5.05802 8.61655 5.05013C8.60866 5.04223 8.6 5.02727 8.6 5V2.6H8.75817Z",fill:"#3D79EE",stroke:"#3D79EE",strokeWidth:"0.2"}),jsxRuntimeExports.jsx("path",{d:"M5.19934 8.33301C4.99934 8.33301 4.89934 8.36635 4.79934 8.43301C4.69934 8.49968 4.66602 8.63301 4.66602 8.79968V12.033C4.66602 12.133 4.69934 12.233 4.76602 12.333C4.83267 12.3997 4.93267 12.4664 5.09934 12.4664C5.26602 12.4664 5.36602 12.3997 5.43267 12.333C5.49934 12.2664 5.53267 12.1664 5.53267 12.033V11.033H6.03267C6.93267 11.033 7.43267 10.5664 7.43267 9.66635C7.43267 9.23301 7.29934 8.86635 7.06602 8.66635C6.83267 8.43301 6.49934 8.33301 6.03267 8.33301H5.19934ZM6.56602 9.66635C6.56602 9.86635 6.53267 10.033 6.43267 10.0997C6.36602 10.1664 6.19934 10.233 5.99934 10.233H5.49934V9.13301H5.99934C6.19934 9.13301 6.33267 9.16635 6.43267 9.26635C6.53267 9.33301 6.56602 9.46635 6.56602 9.66635ZM10.4327 8.93301C10.2993 8.73301 10.0993 8.59968 9.89934 8.46635C9.66602 8.39968 9.39934 8.33301 9.09934 8.33301H8.13267C7.99934 8.33301 7.86602 8.33301 7.76602 8.46635C7.73267 8.53301 7.69934 8.63301 7.69934 8.76635V11.9997C7.69934 12.133 7.73267 12.233 7.76602 12.2997C7.86602 12.433 7.99934 12.433 8.13267 12.433H9.13267C9.43267 12.433 9.66602 12.3664 9.89934 12.2664C10.0993 12.1664 10.2993 11.9997 10.4327 11.7997C10.566 11.5997 10.666 11.3997 10.7327 11.133C10.7993 10.8997 10.8327 10.633 10.8327 10.3664C10.8327 10.0997 10.7993 9.83301 10.7327 9.59968C10.666 9.36635 10.566 9.13301 10.4327 8.93301ZM9.76602 11.333C9.63267 11.533 9.43267 11.633 9.16602 11.633H8.56602V9.13301H8.99934C9.33267 9.13301 9.59934 9.23301 9.73267 9.43301C9.89934 9.63301 9.96602 9.96635 9.96602 10.3664C9.99934 10.7997 9.89934 11.0997 9.76602 11.333ZM13.2993 8.33301H11.6327C11.4993 8.33301 11.366 8.36635 11.2993 8.43301C11.1993 8.49968 11.166 8.63301 11.166 8.76635V12.033C11.166 12.133 11.1993 12.233 11.266 12.2997C11.3327 12.3997 11.4327 12.433 11.5993 12.433C11.7327 12.433 11.866 12.3997 11.9327 12.2997C11.966 12.233 12.0327 12.1664 12.0327 11.9997V10.6664H13.166C13.366 10.6664 13.5327 10.5664 13.566 10.3997C13.5993 10.2664 13.5993 10.1664 13.566 10.133C13.5327 10.0664 13.466 9.86635 13.166 9.86635H11.9993V9.09968H13.266C13.3993 9.09968 13.4993 9.06635 13.566 9.03301C13.6327 8.99968 13.6993 8.89968 13.6993 8.69968C13.7327 8.49968 13.566 8.33301 13.2993 8.33301Z",fill:"#3D79EE"})]}),jsxRuntimeExports.jsx("span",{children:"PDF"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item",children:[jsxRuntimeExports.jsx("p",{className:"tiptap-menu-item-title",children:"实验活动"}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list",children:[jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("choiceQuestion")},children:[jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11099 7.65258H3.02108C2.20928 7.65258 1.54883 6.99213 1.54883 6.18033V3.09042C1.54883 2.27861 2.20928 1.61816 3.02108 1.61816H6.11099C6.92279 1.61816 7.58324 2.27861 7.58324 3.09042V6.18033C7.58324 6.99213 6.92279 7.65258 6.11099 7.65258ZM3.02108 2.50274C2.69703 2.50274 2.4334 2.76637 2.4334 3.09042V6.18033C2.4334 6.50437 2.69703 6.76801 3.02108 6.76801H6.11099C6.43504 6.76801 6.69867 6.50437 6.69867 6.18033V3.09042C6.69867 2.76637 6.43504 2.50274 6.11099 2.50274H3.02108ZM6.11099 14.3808H3.02108C2.20928 14.3808 1.54883 13.7204 1.54883 12.9086V9.81867C1.54883 9.00687 2.20928 8.34642 3.02108 8.34642H6.11099C6.92279 8.34642 7.58324 9.00687 7.58324 9.81867V12.9086C7.58324 13.7204 6.92279 14.3808 6.11099 14.3808ZM3.02108 9.23099C2.69703 9.23099 2.4334 9.49463 2.4334 9.81867V12.9086C2.4334 13.2326 2.69703 13.4963 3.02108 13.4963H6.11099C6.43504 13.4963 6.69867 13.2326 6.69867 12.9086V9.81867C6.69867 9.49463 6.43504 9.23099 6.11099 9.23099H3.02108ZM9.88078 7.65259H12.9707C13.7825 7.65259 14.443 6.99214 14.4429 6.18033V3.09042C14.4429 2.27862 13.7825 1.61817 12.9707 1.61817H9.88078C9.069 1.61817 8.40853 2.27862 8.40853 3.09042V6.18033C8.40853 6.99214 9.069 7.65259 9.88078 7.65259ZM9.2931 3.09042C9.2931 2.76637 9.55675 2.50274 9.88078 2.50274H12.9707C13.2947 2.50274 13.5584 2.76637 13.5584 3.09042V6.18033C13.5584 6.50438 13.2947 6.76801 12.9707 6.76801H9.88078C9.55675 6.76801 9.2931 6.50438 9.2931 6.18033V3.09042ZM12.9756 14.3812H9.88572C9.07392 14.3812 8.41347 13.7208 8.41347 12.909V9.81911C8.41347 9.00731 9.07392 8.34685 9.88572 8.34685H12.9756C13.3836 8.34685 13.7592 8.50129 14.0332 8.78173C14.3006 9.05546 14.4479 9.4239 14.4479 9.81911V12.909C14.4479 13.7208 13.7874 14.3812 12.9756 14.3812ZM10.515 13.0828C10.7097 13.2726 11.026 13.2726 11.2207 13.0828H11.2207L13.9558 10.4037C14.1505 10.2139 14.1505 9.9024 13.9558 9.7126C13.7611 9.5228 13.4448 9.5228 13.2501 9.7126L10.8679 12.0462L9.63169 10.8368C9.43699 10.647 9.12068 10.647 8.92599 10.8368C8.73129 11.0266 8.73129 11.3381 8.92599 11.5279L10.515 13.0828Z",fill:"#15DAC2"}),jsxRuntimeExports.jsx("path",{d:"M14.4429 6.18033L14.3429 6.18033L14.3429 6.18034L14.4429 6.18033ZM14.0332 8.78173L13.9616 8.85161L13.9616 8.85161L14.0332 8.78173ZM14.4479 12.909L14.3479 12.909L14.3479 12.909L14.4479 12.909ZM11.2207 13.0828V12.9828H11.18L11.1509 13.0112L11.2207 13.0828ZM10.515 13.0828L10.4451 13.1543L10.4452 13.1544L10.515 13.0828ZM11.2207 13.0828V13.1828H11.2616L11.2907 13.1542L11.2207 13.0828ZM13.9558 10.4037L13.886 10.332L13.8859 10.3322L13.9558 10.4037ZM13.9558 9.7126L14.0256 9.64099L14.0256 9.64099L13.9558 9.7126ZM13.2501 9.7126L13.1803 9.64099L13.1802 9.64116L13.2501 9.7126ZM10.8679 12.0462L10.7979 12.1177L10.8679 12.1861L10.9378 12.1176L10.8679 12.0462ZM9.63169 10.8368L9.70162 10.7653L9.70149 10.7652L9.63169 10.8368ZM8.92599 10.8368L8.85619 10.7652L8.85619 10.7652L8.92599 10.8368ZM8.92599 11.5279L8.99593 11.4564L8.99579 11.4563L8.92599 11.5279ZM3.02108 7.75258H6.11099V7.55258H3.02108V7.75258ZM1.44883 6.18033C1.44883 7.04736 2.15405 7.75258 3.02108 7.75258V7.55258C2.26451 7.55258 1.64883 6.9369 1.64883 6.18033H1.44883ZM1.44883 3.09042V6.18033H1.64883V3.09042H1.44883ZM3.02108 1.51816C2.15405 1.51816 1.44883 2.22339 1.44883 3.09042H1.64883C1.64883 2.33384 2.26451 1.71816 3.02108 1.71816V1.51816ZM6.11099 1.51816H3.02108V1.71816H6.11099V1.51816ZM7.68324 3.09042C7.68324 2.22339 6.97802 1.51816 6.11099 1.51816V1.71816C6.86756 1.71816 7.48324 2.33384 7.48324 3.09042H7.68324ZM7.68324 6.18033V3.09042H7.48324V6.18033H7.68324ZM6.11099 7.75258C6.97802 7.75258 7.68324 7.04736 7.68324 6.18033H7.48324C7.48324 6.9369 6.86756 7.55258 6.11099 7.55258V7.75258ZM2.5334 3.09042C2.5334 2.8216 2.75226 2.60274 3.02108 2.60274V2.40274C2.6418 2.40274 2.3334 2.71114 2.3334 3.09042H2.5334ZM2.5334 6.18033V3.09042H2.3334V6.18033H2.5334ZM3.02108 6.66801C2.75226 6.66801 2.5334 6.44915 2.5334 6.18033H2.3334C2.3334 6.5596 2.6418 6.86801 3.02108 6.86801V6.66801ZM6.11099 6.66801H3.02108V6.86801H6.11099V6.66801ZM6.59867 6.18033C6.59867 6.44915 6.37981 6.66801 6.11099 6.66801V6.86801C6.49027 6.86801 6.79867 6.5596 6.79867 6.18033H6.59867ZM6.59867 3.09042V6.18033H6.79867V3.09042H6.59867ZM6.11099 2.60274C6.37981 2.60274 6.59867 2.8216 6.59867 3.09042H6.79867C6.79867 2.71114 6.49027 2.40274 6.11099 2.40274V2.60274ZM3.02108 2.60274H6.11099V2.40274H3.02108V2.60274ZM3.02108 14.4808H6.11099V14.2808H3.02108V14.4808ZM1.44883 12.9086C1.44883 13.7756 2.15405 14.4808 3.02108 14.4808V14.2808C2.26451 14.2808 1.64883 13.6652 1.64883 12.9086H1.44883ZM1.44883 9.81867V12.9086H1.64883V9.81867H1.44883ZM3.02108 8.24642C2.15405 8.24642 1.44883 8.95164 1.44883 9.81867H1.64883C1.64883 9.0621 2.26451 8.44642 3.02108 8.44642V8.24642ZM6.11099 8.24642H3.02108V8.44642H6.11099V8.24642ZM7.68324 9.81867C7.68324 8.95164 6.97802 8.24642 6.11099 8.24642V8.44642C6.86756 8.44642 7.48324 9.0621 7.48324 9.81867H7.68324ZM7.68324 12.9086V9.81867H7.48324V12.9086H7.68324ZM6.11099 14.4808C6.97802 14.4808 7.68324 13.7756 7.68324 12.9086H7.48324C7.48324 13.6652 6.86756 14.2808 6.11099 14.2808V14.4808ZM2.5334 9.81867C2.5334 9.54985 2.75226 9.33099 3.02108 9.33099V9.13099C2.6418 9.13099 2.3334 9.4394 2.3334 9.81867H2.5334ZM2.5334 12.9086V9.81867H2.3334V12.9086H2.5334ZM3.02108 13.3963C2.75226 13.3963 2.5334 13.1774 2.5334 12.9086H2.3334C2.3334 13.2879 2.6418 13.5963 3.02108 13.5963V13.3963ZM6.11099 13.3963H3.02108V13.5963H6.11099V13.3963ZM6.59867 12.9086C6.59867 13.1774 6.37981 13.3963 6.11099 13.3963V13.5963C6.49027 13.5963 6.79867 13.2879 6.79867 12.9086H6.59867ZM6.59867 9.81867V12.9086H6.79867V9.81867H6.59867ZM6.11099 9.33099C6.37981 9.33099 6.59867 9.54985 6.59867 9.81867H6.79867C6.79867 9.4394 6.49027 9.13099 6.11099 9.13099V9.33099ZM3.02108 9.33099H6.11099V9.13099H3.02108V9.33099ZM12.9707 7.55259H9.88078V7.75259H12.9707V7.55259ZM14.3429 6.18034C14.343 6.93691 13.7273 7.55259 12.9707 7.55259V7.75259C13.8377 7.75259 14.543 7.04736 14.5429 6.18033L14.3429 6.18034ZM14.3429 3.09042V6.18033H14.5429V3.09042H14.3429ZM12.9707 1.71817C13.7273 1.71817 14.3429 2.33385 14.3429 3.09042H14.5429C14.5429 2.22339 13.8377 1.51817 12.9707 1.51817V1.71817ZM9.88078 1.71817H12.9707V1.51817H9.88078V1.71817ZM8.50853 3.09042C8.50853 2.33385 9.12423 1.71817 9.88078 1.71817V1.51817C9.01377 1.51817 8.30853 2.22339 8.30853 3.09042H8.50853ZM8.50853 6.18033V3.09042H8.30853V6.18033H8.50853ZM9.88078 7.55259C9.12423 7.55259 8.50853 6.93691 8.50853 6.18033H8.30853C8.30853 7.04736 9.01377 7.75259 9.88078 7.75259V7.55259ZM9.88078 2.40274C9.50152 2.40274 9.1931 2.71114 9.1931 3.09042H9.3931C9.3931 2.82161 9.61198 2.60274 9.88078 2.60274V2.40274ZM12.9707 2.40274H9.88078V2.60274H12.9707V2.40274ZM13.6584 3.09042C13.6584 2.71115 13.35 2.40274 12.9707 2.40274V2.60274C13.2395 2.60274 13.4584 2.8216 13.4584 3.09042H13.6584ZM13.6584 6.18033V3.09042H13.4584V6.18033H13.6584ZM12.9707 6.86801C13.35 6.86801 13.6584 6.55961 13.6584 6.18033H13.4584C13.4584 6.44916 13.2395 6.66801 12.9707 6.66801V6.86801ZM9.88078 6.86801H12.9707V6.66801H9.88078V6.86801ZM9.1931 6.18033C9.1931 6.55961 9.50152 6.86801 9.88078 6.86801V6.66801C9.61198 6.66801 9.3931 6.44915 9.3931 6.18033H9.1931ZM9.1931 3.09042V6.18033H9.3931V3.09042H9.1931ZM9.88572 14.4812H12.9756V14.2812H9.88572V14.4812ZM8.31347 12.909C8.31347 13.776 9.01869 14.4812 9.88572 14.4812V14.2812C9.12915 14.2812 8.51347 13.6656 8.51347 12.909H8.31347ZM8.31347 9.81911V12.909H8.51347V9.81911H8.31347ZM9.88572 8.24685C9.01869 8.24685 8.31347 8.95208 8.31347 9.81911H8.51347C8.51347 9.06254 9.12915 8.44685 9.88572 8.44685V8.24685ZM12.9756 8.24685H9.88572V8.44685H12.9756V8.24685ZM14.1047 8.71185C13.8111 8.41129 13.4093 8.24685 12.9756 8.24685V8.44685C13.3579 8.44685 13.7073 8.59129 13.9616 8.85161L14.1047 8.71185ZM14.5479 9.81911C14.5479 9.39874 14.391 9.00493 14.1047 8.71185L13.9616 8.85161C14.2102 9.10599 14.3479 9.44906 14.3479 9.81911H14.5479ZM14.5479 12.909V9.81911H14.3479V12.909H14.5479ZM12.9756 14.4812C13.8427 14.4812 14.5479 13.776 14.5479 12.909L14.3479 12.909C14.3479 13.6656 13.7322 14.2812 12.9756 14.2812V14.4812ZM11.1509 13.0112C10.995 13.1631 10.7407 13.1631 10.5848 13.0112L10.4452 13.1544C10.6787 13.3821 11.057 13.3821 11.2905 13.1544L11.1509 13.0112ZM11.2207 12.9828H11.2207V13.1828H11.2207V12.9828ZM13.8859 10.3322L11.1508 13.0114L11.2907 13.1542L14.0258 10.4751L13.8859 10.3322ZM13.886 9.7842C14.0405 9.93476 14.0405 10.1815 13.886 10.332L14.0256 10.4753C14.2606 10.2462 14.2606 9.87004 14.0256 9.64099L13.886 9.7842ZM13.3199 9.7842C13.4758 9.63226 13.7302 9.63226 13.886 9.7842L14.0256 9.64099C13.7921 9.41333 13.4139 9.41333 13.1803 9.64099L13.3199 9.7842ZM10.9378 12.1176L13.3201 9.78404L13.1802 9.64116L10.7979 11.9748L10.9378 12.1176ZM9.56176 10.9083L10.7979 12.1177L10.9378 11.9747L9.70162 10.7653L9.56176 10.9083ZM8.99579 10.9084C9.15165 10.7565 9.40603 10.7565 9.56188 10.9084L9.70149 10.7652C9.46795 10.5375 9.08971 10.5376 8.85619 10.7652L8.99579 10.9084ZM8.99579 11.4563C8.84135 11.3057 8.84136 11.059 8.99579 10.9084L8.85619 10.7652C8.62122 10.9942 8.62123 11.3704 8.85618 11.5995L8.99579 11.4563ZM10.5849 13.0113L8.99593 11.4564L8.85605 11.5993L10.4451 13.1543L10.5849 13.0113Z",fill:"#15DAC2"})]}),jsxRuntimeExports.jsx("span",{children:"选择题"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("demo")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M13.334 6V3.33333H2.66732V6H13.334ZM13.334 7.33333H2.66732V12.6667H13.334V7.33333ZM2.00065 2H14.0007C14.3689 2 14.6673 2.29848 14.6673 2.66667V13.3333C14.6673 13.7015 14.3689 14 14.0007 14H2.00065C1.63246 14 1.33398 13.7015 1.33398 13.3333V2.66667C1.33398 2.29848 1.63246 2 2.00065 2ZM3.33398 8H5.33398V11.3333H3.33398V8ZM3.33398 4H4.66732V5.33333H3.33398V4ZM6.00065 4H7.33398V5.33333H6.00065V4Z",fill:"#7251F7"})}),jsxRuntimeExports.jsx("span",{children:"示例演示"})]}),jsxRuntimeExports.jsxs("div",{className:"tiptap-menu-item-list-item",onClick:()=>{fme("codingTest")},children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10 2.66634H3.33333V13.333H12.6667V5.33301H10V2.66634ZM2 1.99421C2 1.62904 2.29833 1.33301 2.66567 1.33301H10.6667L13.9998 4.66634L14 13.9947C14 14.3656 13.7034 14.6663 13.3377 14.6663H2.66227C2.29651 14.6663 2 14.3628 2 14.0051V1.99421ZM11.7713 7.99967L9.4142 10.3567L8.4714 9.41387L9.8856 7.99967L8.4714 6.58546L9.4142 5.64265L11.7713 7.99967ZM4.22877 7.99967L6.58579 5.64265L7.5286 6.58546L6.11438 7.99967L7.5286 9.41387L6.58579 10.3567L4.22877 7.99967Z",fill:"#FB973C"})}),jsxRuntimeExports.jsx("span",{children:"编码测验"})]})]})]})]})},build=(Ff,kh,x_)=>new ReactRenderer(Ff,{editor:kh,props:{editor:kh,emitter:x_}}).element,char="/",ignoreChar=["title"],Slash=Extension.create({name:"Slash",addOptions(){return{char,allowSpaces:!1,startOfLine:!0,render:void 0,tip:null,emitter:null,allow:Ff=>{const kh=Ff.editor.state.doc;let x_=!0;return Ff.editor.isFocused&&kh.nodesBetween(Ff.range.from,Ff.range.to,(B_,$_,$P)=>(ignoreChar.includes(B_.type.name)&&(x_=!1),!1)),x_}}},onBeforeCreate(){this.options.emitter=new EventEmitter,this.options.render=()=>({onBeforeStart:Ff=>{if(this.options.tip)return;const kh=build(SlashMenu,this.editor,this.options.emitter);this.options.tip=tippy(document.body,{getReferenceClientRect:null,content:kh,interactive:!0,trigger:"manual",placement:"bottom",offset:[85,10],duration:[300,300]})},onStart:Ff=>{var kh,x_,B_,$_;console.log((kh=Ff==null?void 0:Ff.clientRect)==null?void 0:kh.call(Ff)),(x_=this.options.tip)==null||x_.setProps({getReferenceClientRect:Ff.clientRect}),(B_=this.options.emitter)==null||B_.emit("show",{node:{type:{name:"paragraph"}},range:Ff.range}),this.editor.chain().hideTip().changeTip(!0).run(),($_=this.options.tip)==null||$_.show()},onExit:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null},onUpdate:Ff=>{var kh;this.editor.chain().changeTip(!1).run(),(kh=this.options.tip)==null||kh.destroy(),this.options.tip=null}})},addCommands(){return{showMenu:()=>()=>{var Ff,kh;return this.editor.chain().hideTip().changeTip(!0).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideMenu:()=>()=>{var Ff,kh;return this.editor.chain().changeTip(!1).run(),(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.destroy(),this.options.tip=null,!0}}},addProseMirrorPlugins(){return[Suggestion({editor:this.editor,...this.options}),new Plugin({key:new PluginKey("slash-whell"),props:{handleDOMEvents:{wheel:()=>{this.editor.commands.hideMenu()}}}})]}});function bail(Ff){if(Ff)throw Ff}/*!
|
|
412
412
|
* Determine if an object is a Buffer
|
|
413
413
|
*
|
|
414
414
|
* @author Feross Aboukhadijeh <https://feross.org>
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tiptap{padding:30px 40px;max-width:1080px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode,.tiptap .tiptap-active-focus .activeMd{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#b3b3b3}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);margin-right:2px;padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}.tiptap table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.tiptap table td,.tiptap table th{border:1px solid #d9d9d9;box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-bottom:0}.tiptap table th{background:#f0f2f5;font-weight:700;text-align:left}.tiptap table th p{font-weight:600;color:#333!important}.tiptap table .selectedCell:after{background:#c8c8ff66;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap table .column-resize-handle{background-color:#1677ff;bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px;z-index:3}.tiptap table p{margin:0}.tableWrapper{margin:20px 0;overflow-x:auto}.tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tableWrapper:hover::-webkit-scrollbar{height:8px}.tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.resize-cursor{cursor:ew-resize;cursor:col-resize}
|
|
1
|
+
.tiptap{padding:30px 40px;max-width:1080px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode,.tiptap .tiptap-active-focus .activeMd{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#b3b3b3}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);margin-right:2px;padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover,.tiptap-menu-item-list-item-light{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between;margin:0!important}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}.tiptap table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}.tiptap table td,.tiptap table th{border:1px solid #d9d9d9;box-sizing:border-box;min-width:1em;padding:3px 5px;position:relative;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-bottom:0}.tiptap table th{background:#f0f2f5;font-weight:700;text-align:left}.tiptap table th p{font-weight:600;color:#333!important}.tiptap table .selectedCell:after{background:#c8c8ff66;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap table .column-resize-handle{background-color:#1677ff;bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px;z-index:3}.tiptap table p{margin:0}.tableWrapper{margin:20px 0;overflow-x:auto}.tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tableWrapper:hover::-webkit-scrollbar{height:8px}.tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.resize-cursor{cursor:ew-resize;cursor:col-resize}
|