| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782 |
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pptxgen.es-B4Lmziee.js","assets/jszip.min-DFyRfgcg.js"])))=>i.map(i=>d[i]);
- function Pke(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
- * @vue/shared v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **//*! #__NO_SIDE_EFFECTS__ */function Aj(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ei={},H1=[],go=()=>{},Nke=()=>!1,b_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cj=e=>e.startsWith("onUpdate:"),Ja=Object.assign,xj=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rke=Object.prototype.hasOwnProperty,Zr=(e,t)=>Rke.call(e,t),qt=Array.isArray,W1=e=>pC(e)==="[object Map]",Ab=e=>pC(e)==="[object Set]",Zh=e=>pC(e)==="[object Date]",Pn=e=>typeof e=="function",In=e=>typeof e=="string",Pc=e=>typeof e=="symbol",ar=e=>e!==null&&typeof e=="object",Av=e=>(ar(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),S0e=Object.prototype.toString,pC=e=>S0e.call(e),Bke=e=>pC(e).slice(8,-1),k3=e=>pC(e)==="[object Object]",Sj=e=>In(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,N4=Aj(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),w_=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Lke=/-(\w)/g,sl=w_(e=>e.replace(Lke,(t,n)=>n?n.toUpperCase():"")),Fke=/\B([A-Z])/g,cp=w_(e=>e.replace(Fke,"-$1").toLowerCase()),hC=w_(e=>e.charAt(0).toUpperCase()+e.slice(1)),R4=w_(e=>e?`on${hC(e)}`:""),Th=(e,t)=>!Object.is(e,t),iS=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},UB=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},K8=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uke=e=>{const t=In(e)?Number(e):NaN;return isNaN(t)?e:t};let PY;const A_=()=>PY||(PY=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xt(e){if(qt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=In(r)?Hke(r):Xt(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(In(e)||ar(e))return e}const $ke=/;(?![^(]*\))/g,zke=/:([^]+)/,jke=/\/\*[^]*?\*\//g;function Hke(e){const t={};return e.replace(jke,"").split($ke).forEach(n=>{if(n){const r=n.split(zke);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function re(e){let t="";if(In(e))t=e;else if(qt(e))for(let n=0;n<e.length;n++){const r=re(e[n]);r&&(t+=r+" ")}else if(ar(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Sl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!In(t)&&(e.class=re(t)),n&&(e.style=Xt(n)),e}const Wke="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vke=Aj(Wke);function E0e(e){return!!e||e===""}function qke(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Cv(e[r],t[r]);return n}function Cv(e,t){if(e===t)return!0;let n=Zh(e),r=Zh(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Pc(e),r=Pc(t),n||r)return e===t;if(n=qt(e),r=qt(t),n||r)return n&&r?qke(e,t):!1;if(n=ar(e),r=ar(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!Cv(e[a],t[a]))return!1}}return String(e)===String(t)}function Ej(e,t){return e.findIndex(n=>Cv(n,t))}const k0e=e=>!!(e&&e.__v_isRef===!0),We=e=>In(e)?e:e==null?"":qt(e)||ar(e)&&(e.toString===S0e||!Pn(e.toString))?k0e(e)?We(e.value):JSON.stringify(e,T0e,2):String(e),T0e=(e,t)=>k0e(t)?T0e(e,t.value):W1(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[z9(r,i)+" =>"]=o,n),{})}:Ab(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>z9(n))}:Pc(t)?z9(t):ar(t)&&!qt(t)&&!k3(t)?String(t):t,z9=(e,t="")=>{var n;return Pc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
- * @vue/reactivity v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Ms;class _0e{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ms,!t&&Ms&&(this.index=(Ms.scopes||(Ms.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ms;try{return Ms=this,t()}finally{Ms=n}}}on(){++this._on===1&&(this.prevScope=Ms,Ms=this)}off(){this._on>0&&--this._on===0&&(Ms=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function D0e(e){return new _0e(e)}function I0e(){return Ms}function O0e(e,t=!1){Ms&&Ms.cleanups.push(e)}let Pi;const j9=new WeakSet;class M0e{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ms&&Ms.active&&Ms.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,j9.has(this)&&(j9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||N0e(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,NY(this),R0e(this);const t=Pi,n=Sc;Pi=this,Sc=!0;try{return this.fn()}finally{B0e(this),Pi=t,Sc=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_j(t);this.deps=this.depsTail=void 0,NY(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?j9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$B(this)&&this.run()}get dirty(){return $B(this)}}let P0e=0,B4,L4;function N0e(e,t=!1){if(e.flags|=8,t){e.next=L4,L4=e;return}e.next=B4,B4=e}function kj(){P0e++}function Tj(){if(--P0e>0)return;if(L4){let t=L4;for(L4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;B4;){let t=B4;for(B4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function R0e(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function B0e(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),_j(r),Gke(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function $B(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(L0e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function L0e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===T3)||(e.globalVersion=T3,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$B(e))))return;e.flags|=2;const t=e.dep,n=Pi,r=Sc;Pi=e,Sc=!0;try{R0e(e);const o=e.fn(e._value);(t.version===0||Th(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Pi=n,Sc=r,B0e(e),e.flags&=-3}}function _j(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)_j(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Gke(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Sc=!0;const F0e=[];function Wf(){F0e.push(Sc),Sc=!1}function Vf(){const e=F0e.pop();Sc=e===void 0?!0:e}function NY(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Pi;Pi=void 0;try{t()}finally{Pi=n}}}let T3=0,Kke=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class C_{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Pi||!Sc||Pi===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Pi)n=this.activeLink=new Kke(Pi,this),Pi.deps?(n.prevDep=Pi.depsTail,Pi.depsTail.nextDep=n,Pi.depsTail=n):Pi.deps=Pi.depsTail=n,U0e(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Pi.depsTail,n.nextDep=void 0,Pi.depsTail.nextDep=n,Pi.depsTail=n,Pi.deps===n&&(Pi.deps=r)}return n}trigger(t){this.version++,T3++,this.notify(t)}notify(t){kj();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Tj()}}}function U0e(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)U0e(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Q8=new WeakMap,Wg=Symbol(""),zB=Symbol(""),_3=Symbol("");function Rs(e,t,n){if(Sc&&Pi){let r=Q8.get(e);r||Q8.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new C_),o.map=r,o.key=n),o.track()}}function Sf(e,t,n,r,o,i){const a=Q8.get(e);if(!a){T3++;return}const s=l=>{l&&l.trigger()};if(kj(),t==="clear")a.forEach(s);else{const l=qt(e),u=l&&Sj(n);if(l&&n==="length"){const d=Number(r);a.forEach((c,f)=>{(f==="length"||f===_3||!Pc(f)&&f>=d)&&s(c)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(_3)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Wg)),W1(e)&&s(a.get(zB)));break;case"delete":l||(s(a.get(Wg)),W1(e)&&s(a.get(zB)));break;case"set":W1(e)&&s(a.get(Wg));break}}Tj()}function Qke(e,t){const n=Q8.get(e);return n&&n.get(t)}function _m(e){const t=Oo(e);return t===e?t:(Rs(t,"iterate",_3),Fu(e)?t:t.map(ys))}function x_(e){return Rs(e=Oo(e),"iterate",_3),e}const Yke={__proto__:null,[Symbol.iterator](){return H9(this,Symbol.iterator,ys)},concat(...e){return _m(this).concat(...e.map(t=>qt(t)?_m(t):t))},entries(){return H9(this,"entries",e=>(e[1]=ys(e[1]),e))},every(e,t){return af(this,"every",e,t,void 0,arguments)},filter(e,t){return af(this,"filter",e,t,n=>n.map(ys),arguments)},find(e,t){return af(this,"find",e,t,ys,arguments)},findIndex(e,t){return af(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return af(this,"findLast",e,t,ys,arguments)},findLastIndex(e,t){return af(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return af(this,"forEach",e,t,void 0,arguments)},includes(...e){return W9(this,"includes",e)},indexOf(...e){return W9(this,"indexOf",e)},join(e){return _m(this).join(e)},lastIndexOf(...e){return W9(this,"lastIndexOf",e)},map(e,t){return af(this,"map",e,t,void 0,arguments)},pop(){return b2(this,"pop")},push(...e){return b2(this,"push",e)},reduce(e,...t){return RY(this,"reduce",e,t)},reduceRight(e,...t){return RY(this,"reduceRight",e,t)},shift(){return b2(this,"shift")},some(e,t){return af(this,"some",e,t,void 0,arguments)},splice(...e){return b2(this,"splice",e)},toReversed(){return _m(this).toReversed()},toSorted(e){return _m(this).toSorted(e)},toSpliced(...e){return _m(this).toSpliced(...e)},unshift(...e){return b2(this,"unshift",e)},values(){return H9(this,"values",ys)}};function H9(e,t,n){const r=x_(e),o=r[t]();return r!==e&&!Fu(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const Zke=Array.prototype;function af(e,t,n,r,o,i){const a=x_(e),s=a!==e&&!Fu(e),l=a[t];if(l!==Zke[t]){const c=l.apply(e,i);return s?ys(c):c}let u=n;a!==e&&(s?u=function(c,f){return n.call(this,ys(c),f,e)}:n.length>2&&(u=function(c,f){return n.call(this,c,f,e)}));const d=l.call(a,u,r);return s&&o?o(d):d}function RY(e,t,n,r){const o=x_(e);let i=n;return o!==e&&(Fu(e)?n.length>3&&(i=function(a,s,l){return n.call(this,a,s,l,e)}):i=function(a,s,l){return n.call(this,a,ys(s),l,e)}),o[t](i,...r)}function W9(e,t,n){const r=Oo(e);Rs(r,"iterate",_3);const o=r[t](...n);return(o===-1||o===!1)&&Oj(n[0])?(n[0]=Oo(n[0]),r[t](...n)):o}function b2(e,t,n=[]){Wf(),kj();const r=Oo(e)[t].apply(e,n);return Tj(),Vf(),r}const Xke=Aj("__proto__,__v_isRef,__isVue"),$0e=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pc));function Jke(e){Pc(e)||(e=String(e));const t=Oo(this);return Rs(t,"has",e),t.hasOwnProperty(e)}class z0e{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?uTe:V0e:i?W0e:H0e).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=qt(t);if(!o){let l;if(a&&(l=Yke[n]))return l;if(n==="hasOwnProperty")return Jke}const s=Reflect.get(t,n,Ro(t)?t:r);return(Pc(n)?$0e.has(n):Xke(n))||(o||Rs(t,"get",n),i)?s:Ro(s)?a&&Sj(n)?s:s.value:ar(s)?o?Cb(s):Ur(s):s}}class j0e extends z0e{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=Xh(i);if(!Fu(r)&&!Xh(r)&&(i=Oo(i),r=Oo(r)),!qt(t)&&Ro(i)&&!Ro(r))return l?!1:(i.value=r,!0)}const a=qt(t)&&Sj(n)?Number(n)<t.length:Zr(t,n),s=Reflect.set(t,n,r,Ro(t)?t:o);return t===Oo(o)&&(a?Th(r,i)&&Sf(t,"set",n,r):Sf(t,"add",n,r)),s}deleteProperty(t,n){const r=Zr(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Sf(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Pc(n)||!$0e.has(n))&&Rs(t,"has",n),r}ownKeys(t){return Rs(t,"iterate",qt(t)?"length":Wg),Reflect.ownKeys(t)}}class eTe extends z0e{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tTe=new j0e,nTe=new eTe,rTe=new j0e(!0);const jB=e=>e,rx=e=>Reflect.getPrototypeOf(e);function oTe(e,t,n){return function(...r){const o=this.__v_raw,i=Oo(o),a=W1(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),d=n?jB:t?Y8:ys;return!t&&Rs(i,"iterate",l?zB:Wg),{next(){const{value:c,done:f}=u.next();return f?{value:c,done:f}:{value:s?[d(c[0]),d(c[1])]:d(c),done:f}},[Symbol.iterator](){return this}}}}function ox(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function iTe(e,t){const n={get(o){const i=this.__v_raw,a=Oo(i),s=Oo(o);e||(Th(o,s)&&Rs(a,"get",o),Rs(a,"get",s));const{has:l}=rx(a),u=t?jB:e?Y8:ys;if(l.call(a,o))return u(i.get(o));if(l.call(a,s))return u(i.get(s));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Rs(Oo(o),"iterate",Wg),Reflect.get(o,"size",o)},has(o){const i=this.__v_raw,a=Oo(i),s=Oo(o);return e||(Th(o,s)&&Rs(a,"has",o),Rs(a,"has",s)),o===s?i.has(o):i.has(o)||i.has(s)},forEach(o,i){const a=this,s=a.__v_raw,l=Oo(s),u=t?jB:e?Y8:ys;return!e&&Rs(l,"iterate",Wg),s.forEach((d,c)=>o.call(i,u(d),u(c),a))}};return Ja(n,e?{add:ox("add"),set:ox("set"),delete:ox("delete"),clear:ox("clear")}:{add(o){!t&&!Fu(o)&&!Xh(o)&&(o=Oo(o));const i=Oo(this);return rx(i).has.call(i,o)||(i.add(o),Sf(i,"add",o,o)),this},set(o,i){!t&&!Fu(i)&&!Xh(i)&&(i=Oo(i));const a=Oo(this),{has:s,get:l}=rx(a);let u=s.call(a,o);u||(o=Oo(o),u=s.call(a,o));const d=l.call(a,o);return a.set(o,i),u?Th(i,d)&&Sf(a,"set",o,i):Sf(a,"add",o,i),this},delete(o){const i=Oo(this),{has:a,get:s}=rx(i);let l=a.call(i,o);l||(o=Oo(o),l=a.call(i,o)),s&&s.call(i,o);const u=i.delete(o);return l&&Sf(i,"delete",o,void 0),u},clear(){const o=Oo(this),i=o.size!==0,a=o.clear();return i&&Sf(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=oTe(o,e,t)}),n}function Dj(e,t){const n=iTe(e,t);return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Zr(n,o)&&o in r?n:r,o,i)}const aTe={get:Dj(!1,!1)},sTe={get:Dj(!1,!0)},lTe={get:Dj(!0,!1)};const H0e=new WeakMap,W0e=new WeakMap,V0e=new WeakMap,uTe=new WeakMap;function cTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dTe(e){return e.__v_skip||!Object.isExtensible(e)?0:cTe(Bke(e))}function Ur(e){return Xh(e)?e:Ij(e,!1,tTe,aTe,H0e)}function S_(e){return Ij(e,!1,rTe,sTe,W0e)}function Cb(e){return Ij(e,!0,nTe,lTe,V0e)}function Ij(e,t,n,r,o){if(!ar(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=dTe(e);if(i===0)return e;const a=o.get(e);if(a)return a;const s=new Proxy(e,i===2?r:n);return o.set(e,s),s}function V1(e){return Xh(e)?V1(e.__v_raw):!!(e&&e.__v_isReactive)}function Xh(e){return!!(e&&e.__v_isReadonly)}function Fu(e){return!!(e&&e.__v_isShallow)}function Oj(e){return e?!!e.__v_raw:!1}function Oo(e){const t=e&&e.__v_raw;return t?Oo(t):e}function Id(e){return!Zr(e,"__v_skip")&&Object.isExtensible(e)&&UB(e,"__v_skip",!0),e}const ys=e=>ar(e)?Ur(e):e,Y8=e=>ar(e)?Cb(e):e;function Ro(e){return e?e.__v_isRef===!0:!1}function Q(e){return q0e(e,!1)}function Uo(e){return q0e(e,!0)}function q0e(e,t){return Ro(e)?e:new fTe(e,t)}class fTe{constructor(t,n){this.dep=new C_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Oo(t),this._value=n?t:ys(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Fu(t)||Xh(t);t=r?t:Oo(t),Th(t,n)&&(this._rawValue=t,this._value=r?t:ys(t),this.dep.trigger())}}function aS(e){e.dep&&e.dep.trigger()}function C(e){return Ro(e)?e.value:e}const pTe={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ro(o)&&!Ro(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function G0e(e){return V1(e)?e:new Proxy(e,pTe)}class hTe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new C_,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function gTe(e){return new hTe(e)}function _a(e){const t=qt(e)?new Array(e.length):{};for(const n in e)t[n]=K0e(e,n);return t}class vTe{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Qke(Oo(this._object),this._key)}}class mTe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ao(e,t,n){return Ro(e)?e:Pn(e)?new mTe(e):ar(e)&&arguments.length>1?K0e(e,t,n):Q(e)}function K0e(e,t,n){const r=e[t];return Ro(r)?r:new vTe(e,t,n)}class yTe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new C_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T3-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Pi!==this)return N0e(this,!0),!0}get value(){const t=this.dep.track();return L0e(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bTe(e,t,n=!1){let r,o;return Pn(e)?r=e:(r=e.get,o=e.set),new yTe(r,o,n)}const ix={},Z8=new WeakMap;let gg;function wTe(e,t=!1,n=gg){if(n){let r=Z8.get(n);r||Z8.set(n,r=[]),r.push(e)}}function ATe(e,t,n=Ei){const{immediate:r,deep:o,once:i,scheduler:a,augmentJob:s,call:l}=n,u=w=>o?w:Fu(w)||o===!1||o===0?Ef(w,1):Ef(w);let d,c,f,p,v=!1,h=!1;if(Ro(e)?(c=()=>e.value,v=Fu(e)):V1(e)?(c=()=>u(e),v=!0):qt(e)?(h=!0,v=e.some(w=>V1(w)||Fu(w)),c=()=>e.map(w=>{if(Ro(w))return w.value;if(V1(w))return u(w);if(Pn(w))return l?l(w,2):w()})):Pn(e)?t?c=l?()=>l(e,2):e:c=()=>{if(f){Wf();try{f()}finally{Vf()}}const w=gg;gg=d;try{return l?l(e,3,[p]):e(p)}finally{gg=w}}:c=go,t&&o){const w=c,A=o===!0?1/0:o;c=()=>Ef(w(),A)}const g=I0e(),y=()=>{d.stop(),g&&g.active&&xj(g.effects,d)};if(i&&t){const w=t;t=(...A)=>{w(...A),y()}}let m=h?new Array(e.length).fill(ix):ix;const b=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const A=d.run();if(o||v||(h?A.some((S,k)=>Th(S,m[k])):Th(A,m))){f&&f();const S=gg;gg=d;try{const k=[A,m===ix?void 0:h&&m[0]===ix?[]:m,p];m=A,l?l(t,3,k):t(...k)}finally{gg=S}}}else d.run()};return s&&s(b),d=new M0e(c),d.scheduler=a?()=>a(b,!1):b,p=w=>wTe(w,!1,d),f=d.onStop=()=>{const w=Z8.get(d);if(w){if(l)l(w,4);else for(const A of w)A();Z8.delete(d)}},t?r?b(!0):m=d.run():a?a(b.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Ef(e,t=1/0,n){if(t<=0||!ar(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ro(e))Ef(e.value,t,n);else if(qt(e))for(let r=0;r<e.length;r++)Ef(e[r],t,n);else if(Ab(e)||W1(e))e.forEach(r=>{Ef(r,t,n)});else if(k3(e)){for(const r in e)Ef(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ef(e[r],t,n)}return e}/**
- * @vue/runtime-core v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function gC(e,t,n,r){try{return r?e(...r):e()}catch(o){E_(o,t,n)}}function Nc(e,t,n,r){if(Pn(e)){const o=gC(e,t,n,r);return o&&Av(o)&&o.catch(i=>{E_(i,t,n)}),o}if(qt(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Nc(e[i],t,n,r));return o}}function E_(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ei;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,l,u)===!1)return}s=s.parent}if(i){Wf(),gC(i,null,10,[e,l,u]),Vf();return}}CTe(e,n,o,r,a)}function CTe(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const el=[];let sd=-1;const q1=[];let rh=null,x1=0;const Q0e=Promise.resolve();let X8=null;function Vt(e){const t=X8||Q0e;return e?t.then(this?e.bind(this):e):t}function xTe(e){let t=sd+1,n=el.length;for(;t<n;){const r=t+n>>>1,o=el[r],i=D3(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Mj(e){if(!(e.flags&1)){const t=D3(e),n=el[el.length-1];!n||!(e.flags&2)&&t>=D3(n)?el.push(e):el.splice(xTe(t),0,e),e.flags|=1,Y0e()}}function Y0e(){X8||(X8=Q0e.then(X0e))}function STe(e){qt(e)?q1.push(...e):rh&&e.id===-1?rh.splice(x1+1,0,e):e.flags&1||(q1.push(e),e.flags|=1),Y0e()}function BY(e,t,n=sd+1){for(;n<el.length;n++){const r=el[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;el.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Z0e(e){if(q1.length){const t=[...new Set(q1)].sort((n,r)=>D3(n)-D3(r));if(q1.length=0,rh){rh.push(...t);return}for(rh=t,x1=0;x1<rh.length;x1++){const n=rh[x1];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}rh=null,x1=0}}const D3=e=>e.id==null?e.flags&2?-1:1/0:e.id;function X0e(e){try{for(sd=0;sd<el.length;sd++){const t=el[sd];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gC(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;sd<el.length;sd++){const t=el[sd];t&&(t.flags&=-2)}sd=-1,el.length=0,Z0e(),X8=null,(el.length||q1.length)&&X0e()}}let ws=null,J0e=null;function J8(e){const t=ws;return ws=e,J0e=e&&e.type.__scopeId||null,t}function nt(e,t=ws,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&YY(-1);const i=J8(t);let a;try{a=e(...o)}finally{J8(i),r._d&&YY(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ln(e,t){if(ws===null)return e;const n=O_(ws),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,s,l=Ei]=t[o];i&&(Pn(i)&&(i={mounted:i,updated:i}),i.deep&&Ef(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function j0(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(Wf(),Nc(l,n,8,[e.el,s,e,t]),Vf())}}const ege=Symbol("_vte"),tge=e=>e.__isTeleport,F4=e=>e&&(e.disabled||e.disabled===""),LY=e=>e&&(e.defer||e.defer===""),FY=e=>typeof SVGElement<"u"&&e instanceof SVGElement,UY=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,HB=(e,t)=>{const n=e&&e.to;return In(n)?t?t(n):null:n},nge={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:d,pc:c,pbc:f,o:{insert:p,querySelector:v,createText:h,createComment:g}}=u,y=F4(t.props);let{shapeFlag:m,children:b,dynamicChildren:w}=t;if(e==null){const A=t.el=h(""),S=t.anchor=h("");p(A,n,r),p(S,n,r);const k=(D,P)=>{m&16&&(o&&o.isCE&&(o.ce._teleportTarget=D),d(b,D,P,o,i,a,s,l))},M=()=>{const D=t.target=HB(t.props,v),P=rge(D,t,h,p);D&&(a!=="svg"&&FY(D)?a="svg":a!=="mathml"&&UY(D)&&(a="mathml"),y||(k(D,P),sS(t,!1)))};y&&(k(n,S),sS(t,!0)),LY(t.props)?(t.el.__isMounted=!1,Js(()=>{M(),delete t.el.__isMounted},i)):M()}else{if(LY(t.props)&&e.el.__isMounted===!1){Js(()=>{nge.process(e,t,n,r,o,i,a,s,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,S=t.target=e.target,k=t.targetAnchor=e.targetAnchor,M=F4(e.props),D=M?n:S,P=M?A:k;if(a==="svg"||FY(S)?a="svg":(a==="mathml"||UY(S))&&(a="mathml"),w?(f(e.dynamicChildren,w,D,o,i,a,s),Uj(e,t,!0)):l||c(e,t,D,P,o,i,a,s,!1),y)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ax(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=HB(t.props,v);O&&ax(t,O,null,u,0)}else M&&ax(t,S,k,u,1);sS(t,y)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:d,target:c,props:f}=e;if(c&&(o(u),o(d)),i&&o(l),a&16){const p=i||!F4(f);for(let v=0;v<s.length;v++){const h=s[v];r(h,t,n,p,!!h.dynamicChildren)}}},move:ax,hydrate:ETe};function ax(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:d}=e,c=i===2;if(c&&r(a,t,n),(!c||F4(d))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);c&&r(s,t,n)}function ETe(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:d}},c){const f=t.target=HB(t.props,l);if(f){const p=F4(t.props),v=f._lpa||f.firstChild;if(t.shapeFlag&16)if(p)t.anchor=c(a(e),t,s(e),n,r,o,i),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let h=v;for(;h;){if(h&&h.nodeType===8){if(h.data==="teleport start anchor")t.targetStart=h;else if(h.data==="teleport anchor"){t.targetAnchor=h,f._lpa=t.targetAnchor&&a(t.targetAnchor);break}}h=a(h)}t.targetAnchor||rge(f,t,d,u),c(v&&a(v),t,f,n,r,o,i)}sS(t,p)}return t.anchor&&a(t.anchor)}const WB=nge;function sS(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function rge(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[ege]=i,e&&(r(o,e),r(i,e)),i}const oh=Symbol("_leaveCb"),sx=Symbol("_enterCb");function oge(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jn(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}const Cu=[Function,Array],ige={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cu,onEnter:Cu,onAfterEnter:Cu,onEnterCancelled:Cu,onBeforeLeave:Cu,onLeave:Cu,onAfterLeave:Cu,onLeaveCancelled:Cu,onBeforeAppear:Cu,onAppear:Cu,onAfterAppear:Cu,onAppearCancelled:Cu},age=e=>{const t=e.subTree;return t.component?age(t.component):t},kTe={name:"BaseTransition",props:ige,setup(e,{slots:t}){const n=vr(),r=oge();return()=>{const o=t.default&&Pj(t.default(),!0);if(!o||!o.length)return;const i=sge(o),a=Oo(e),{mode:s}=a;if(r.isLeaving)return V9(i);const l=$Y(i);if(!l)return V9(i);let u=I3(l,a,r,n,c=>u=c);l.type!==la&&xv(l,u);let d=n.subTree&&$Y(n.subTree);if(d&&d.type!==la&&!xg(l,d)&&age(n).type!==la){let c=I3(d,a,r,n);if(xv(d,c),s==="out-in"&&l.type!==la)return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete c.afterLeave,d=void 0},V9(i);s==="in-out"&&l.type!==la?c.delayLeave=(f,p,v)=>{const h=lge(r,d);h[String(d.key)]=d,f[oh]=()=>{p(),f[oh]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function sge(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==la){t=n;break}}return t}const TTe=kTe;function lge(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function I3(e,t,n,r,o){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:f,onLeave:p,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:g,onAppear:y,onAfterAppear:m,onAppearCancelled:b}=t,w=String(e.key),A=lge(n,e),S=(D,P)=>{D&&Nc(D,r,9,P)},k=(D,P)=>{const O=P[1];S(D,P),qt(D)?D.every(_=>_.length<=1)&&O():D.length<=1&&O()},M={mode:a,persisted:s,beforeEnter(D){let P=l;if(!n.isMounted)if(i)P=g||l;else return;D[oh]&&D[oh](!0);const O=A[w];O&&xg(e,O)&&O.el[oh]&&O.el[oh](),S(P,[D])},enter(D){let P=u,O=d,_=c;if(!n.isMounted)if(i)P=y||u,O=m||d,_=b||c;else return;let B=!1;const N=D[sx]=q=>{B||(B=!0,q?S(_,[D]):S(O,[D]),M.delayedLeave&&M.delayedLeave(),D[sx]=void 0)};P?k(P,[D,N]):N()},leave(D,P){const O=String(e.key);if(D[sx]&&D[sx](!0),n.isUnmounting)return P();S(f,[D]);let _=!1;const B=D[oh]=N=>{_||(_=!0,P(),N?S(h,[D]):S(v,[D]),D[oh]=void 0,A[O]===e&&delete A[O])};A[O]=e,p?k(p,[D,B]):B()},clone(D){const P=I3(D,t,n,r,o);return o&&o(P),P}};return M}function V9(e){if(k_(e))return e=qf(e),e.children=null,e}function $Y(e){if(!k_(e))return tge(e.type)&&e.children?sge(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Pn(n.default))return n.default()}}function xv(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xv(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pj(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Pt?(a.patchFlag&128&&o++,r=r.concat(Pj(a.children,t,s))):(t||a.type!==la)&&r.push(s!=null?qf(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function tt(e,t){return Pn(e)?Ja({name:e.name},t,{setup:e}):e}function uge(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function U4(e,t,n,r,o=!1){if(qt(e)){e.forEach((v,h)=>U4(v,t&&(qt(t)?t[h]:t),n,r,o));return}if(G1(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&U4(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?O_(r.component):r.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Ei?s.refs={}:s.refs,c=s.setupState,f=Oo(c),p=c===Ei?()=>!1:v=>Zr(f,v);if(u!=null&&u!==l&&(In(u)?(d[u]=null,p(u)&&(c[u]=null)):Ro(u)&&(u.value=null)),Pn(l))gC(l,s,12,[a,d]);else{const v=In(l),h=Ro(l);if(v||h){const g=()=>{if(e.f){const y=v?p(l)?c[l]:d[l]:l.value;o?qt(y)&&xj(y,i):qt(y)?y.includes(i)||y.push(i):v?(d[l]=[i],p(l)&&(c[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else v?(d[l]=a,p(l)&&(c[l]=a)):h&&(l.value=a,e.k&&(d[e.k]=a))};a?(g.id=-1,Js(g,n)):g()}}}A_().requestIdleCallback;A_().cancelIdleCallback;const G1=e=>!!e.type.__asyncLoader,k_=e=>e.type.__isKeepAlive;function xb(e,t){dge(e,"a",t)}function cge(e,t){dge(e,"da",t)}function dge(e,t,n=Ls){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(T_(t,r,n),n){let o=n.parent;for(;o&&o.parent;)k_(o.parent.vnode)&&_Te(r,t,n,o),o=o.parent}}function _Te(e,t,n,r){const o=T_(t,e,r,!0);hl(()=>{xj(r[t],o)},n)}function T_(e,t,n=Ls,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Wf();const s=vC(n),l=Nc(t,n,e,a);return s(),Vf(),l});return r?o.unshift(i):o.push(i),i}}const dp=e=>(t,n=Ls)=>{(!M3||e==="sp")&&T_(e,(...r)=>t(...r),n)},__=dp("bm"),jn=dp("m"),Nj=dp("bu"),Wc=dp("u"),Qr=dp("bum"),hl=dp("um"),DTe=dp("sp"),ITe=dp("rtg"),OTe=dp("rtc");function MTe(e,t=Ls){T_("ec",e,t)}const Rj="components",PTe="directives";function sr(e,t){return Bj(Rj,e,!0,t)||e}const fge=Symbol.for("v-ndc");function hr(e){return In(e)?Bj(Rj,e,!1)||e:e||fge}function D_(e){return Bj(PTe,e)}function Bj(e,t,n=!0,r=!1){const o=ws||Ls;if(o){const i=o.type;if(e===Rj){const s=m_e(i,!1);if(s&&(s===t||s===sl(t)||s===hC(sl(t))))return i}const a=zY(o[e]||i[e],t)||zY(o.appContext[e],t);return!a&&r?i:a}}function zY(e,t){return e&&(e[t]||e[sl(t)]||e[hC(sl(t))])}function an(e,t,n,r){let o;const i=n,a=qt(e);if(a||In(e)){const s=a&&V1(e);let l=!1,u=!1;s&&(l=!Fu(e),u=Xh(e),e=x_(e)),o=new Array(e.length);for(let d=0,c=e.length;d<c;d++)o[d]=t(l?u?Y8(ys(e[d])):ys(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i)}else if(ar(e))if(e[Symbol.iterator])o=Array.from(e,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const d=s[l];o[l]=t(e[d],d,l,i)}}else o=[];return o}function Ll(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(qt(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function ft(e,t,n={},r,o){if(ws.ce||ws.parent&&G1(ws.parent)&&ws.parent.ce)return t!=="default"&&(n.name=t),F(),mt(Pt,null,[Ve("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),F();const a=i&&pge(i(n)),s=n.key||a&&a.key,l=mt(Pt,{key:(s&&!Pc(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function pge(e){return e.some(t=>jo(t)?!(t.type===la||t.type===Pt&&!pge(t.children)):!0)?e:null}function NTe(e,t){const n={};for(const r in e)n[R4(r)]=e[r];return n}const VB=e=>e?Mge(e)?O_(e):VB(e.parent):null,$4=Ja(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>VB(e.parent),$root:e=>VB(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>vge(e),$forceUpdate:e=>e.f||(e.f=()=>{Mj(e.update)}),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>t_e.bind(e)}),q9=(e,t)=>e!==Ei&&!e.__isScriptSetup&&Zr(e,t),RTe={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(q9(r,t))return a[t]=1,r[t];if(o!==Ei&&Zr(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&Zr(u,t))return a[t]=3,i[t];if(n!==Ei&&Zr(n,t))return a[t]=4,n[t];qB&&(a[t]=0)}}const d=$4[t];let c,f;if(d)return t==="$attrs"&&Rs(e.attrs,"get",""),d(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==Ei&&Zr(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Zr(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return q9(o,t)?(o[t]=n,!0):r!==Ei&&Zr(r,t)?(r[t]=n,!0):Zr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Ei&&Zr(e,a)||q9(t,a)||(s=i[0])&&Zr(s,a)||Zr(r,a)||Zr($4,a)||Zr(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Zr(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function pa(){return hge().slots}function fp(){return hge().attrs}function hge(e){const t=vr();return t.setupContext||(t.setupContext=Nge(t))}function jY(e){return qt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let qB=!0;function BTe(e){const t=vge(e),n=e.proxy,r=e.ctx;qB=!1,t.beforeCreate&&HY(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:c,mounted:f,beforeUpdate:p,updated:v,activated:h,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:w,render:A,renderTracked:S,renderTriggered:k,errorCaptured:M,serverPrefetch:D,expose:P,inheritAttrs:O,components:_,directives:B,filters:N}=t;if(u&<e(u,r,null),a)for(const j in a){const H=a[j];Pn(H)&&(r[j]=H.bind(n))}if(o){const j=o.call(n,n);ar(j)&&(e.data=Ur(j))}if(qB=!0,i)for(const j in i){const H=i[j],G=Pn(H)?H.bind(n,n):Pn(H.get)?H.get.bind(n,n):go,Z=!Pn(H)&&Pn(H.set)?H.set.bind(n):go,$=J({get:G,set:Z});Object.defineProperty(r,j,{enumerable:!0,configurable:!0,get:()=>$.value,set:L=>$.value=L})}if(s)for(const j in s)gge(s[j],r,n,j);if(l){const j=Pn(l)?l.call(n):l;Reflect.ownKeys(j).forEach(H=>{Sr(H,j[H])})}d&&HY(d,e,"c");function U(j,H){qt(H)?H.forEach(G=>j(G.bind(n))):H&&j(H.bind(n))}if(U(__,c),U(jn,f),U(Nj,p),U(Wc,v),U(xb,h),U(cge,g),U(MTe,M),U(OTe,S),U(ITe,k),U(Qr,m),U(hl,w),U(DTe,D),qt(P))if(P.length){const j=e.exposed||(e.exposed={});P.forEach(H=>{Object.defineProperty(j,H,{get:()=>n[H],set:G=>n[H]=G,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===go&&(e.render=A),O!=null&&(e.inheritAttrs=O),_&&(e.components=_),B&&(e.directives=B),D&&uge(e)}function LTe(e,t,n=go){qt(e)&&(e=GB(e));for(const r in e){const o=e[r];let i;ar(o)?"default"in o?i=cn(o.from||r,o.default,!0):i=cn(o.from||r):i=cn(o),Ro(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function HY(e,t,n){Nc(qt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gge(e,t,n,r){let o=r.includes(".")?Tge(n,r):()=>n[r];if(In(e)){const i=t[e];Pn(i)&&St(o,i)}else if(Pn(e))St(o,e.bind(n));else if(ar(e))if(qt(e))e.forEach(i=>gge(i,t,n,r));else{const i=Pn(e.handler)?e.handler.bind(n):t[e.handler];Pn(i)&&St(o,i,e)}}function vge(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>eE(l,u,a,!0)),eE(l,t,a)),ar(t)&&i.set(t,l),l}function eE(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&eE(e,i,n,!0),o&&o.forEach(a=>eE(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=FTe[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const FTe={data:WY,props:VY,emits:VY,methods:g4,computed:g4,beforeCreate:Xs,created:Xs,beforeMount:Xs,mounted:Xs,beforeUpdate:Xs,updated:Xs,beforeDestroy:Xs,beforeUnmount:Xs,destroyed:Xs,unmounted:Xs,activated:Xs,deactivated:Xs,errorCaptured:Xs,serverPrefetch:Xs,components:g4,directives:g4,watch:$Te,provide:WY,inject:UTe};function WY(e,t){return t?e?function(){return Ja(Pn(e)?e.call(this,this):e,Pn(t)?t.call(this,this):t)}:t:e}function UTe(e,t){return g4(GB(e),GB(t))}function GB(e){if(qt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xs(e,t){return e?[...new Set([].concat(e,t))]:t}function g4(e,t){return e?Ja(Object.create(null),e,t):t}function VY(e,t){return e?qt(e)&&qt(t)?[...new Set([...e,...t])]:Ja(Object.create(null),jY(e),jY(t??{})):t}function $Te(e,t){if(!e)return t;if(!t)return e;const n=Ja(Object.create(null),e);for(const r in t)n[r]=Xs(e[r],t[r]);return n}function mge(){return{app:null,config:{isNativeTag:Nke,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zTe=0;function jTe(e,t){return function(r,o=null){Pn(r)||(r=Ja({},r)),o!=null&&!ar(o)&&(o=null);const i=mge(),a=new WeakSet,s=[];let l=!1;const u=i.app={_uid:zTe++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:b_e,get config(){return i.config},set config(d){},use(d,...c){return a.has(d)||(d&&Pn(d.install)?(a.add(d),d.install(u,...c)):Pn(d)&&(a.add(d),d(u,...c))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,c){return c?(i.components[d]=c,u):i.components[d]},directive(d,c){return c?(i.directives[d]=c,u):i.directives[d]},mount(d,c,f){if(!l){const p=u._ceVNode||Ve(r,o);return p.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(p,d,f),l=!0,u._container=d,d.__vue_app__=u,O_(p.component)}},onUnmount(d){s.push(d)},unmount(){l&&(Nc(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,c){return i.provides[d]=c,u},runWithContext(d){const c=K1;K1=u;try{return d()}finally{K1=c}}};return u}}let K1=null;function Sr(e,t){if(Ls){let n=Ls.provides;const r=Ls.parent&&Ls.parent.provides;r===n&&(n=Ls.provides=Object.create(r)),n[e]=t}}function cn(e,t,n=!1){const r=vr();if(r||K1){let o=K1?K1._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Pn(t)?t.call(r&&r.proxy):t}}const yge={},bge=()=>Object.create(yge),wge=e=>Object.getPrototypeOf(e)===yge;function HTe(e,t,n,r=!1){const o={},i=bge();e.propsDefaults=Object.create(null),Age(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:S_(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function WTe(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Oo(o),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c<d.length;c++){let f=d[c];if(I_(e.emitsOptions,f))continue;const p=t[f];if(l)if(Zr(i,f))p!==i[f]&&(i[f]=p,u=!0);else{const v=sl(f);o[v]=KB(l,s,v,p,e,!1)}else p!==i[f]&&(i[f]=p,u=!0)}}}else{Age(e,t,o,i)&&(u=!0);let d;for(const c in s)(!t||!Zr(t,c)&&((d=cp(c))===c||!Zr(t,d)))&&(l?n&&(n[c]!==void 0||n[d]!==void 0)&&(o[c]=KB(l,s,c,void 0,e,!0)):delete o[c]);if(i!==s)for(const c in i)(!t||!Zr(t,c))&&(delete i[c],u=!0)}u&&Sf(e.attrs,"set","")}function Age(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(N4(l))continue;const u=t[l];let d;o&&Zr(o,d=sl(l))?!i||!i.includes(d)?n[d]=u:(s||(s={}))[d]=u:I_(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(i){const l=Oo(n),u=s||Ei;for(let d=0;d<i.length;d++){const c=i[d];n[c]=KB(o,l,c,u[c],e,!Zr(u,c))}}return a}function KB(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=Zr(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Pn(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const d=vC(o);r=u[n]=l.call(null,t),d()}}else r=l;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===cp(n))&&(r=!0))}return r}const VTe=new WeakMap;function Cge(e,t,n=!1){const r=n?VTe:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!Pn(e)){const d=c=>{l=!0;const[f,p]=Cge(c,t,!0);Ja(a,f),p&&s.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return ar(e)&&r.set(e,H1),H1;if(qt(i))for(let d=0;d<i.length;d++){const c=sl(i[d]);qY(c)&&(a[c]=Ei)}else if(i)for(const d in i){const c=sl(d);if(qY(c)){const f=i[d],p=a[c]=qt(f)||Pn(f)?{type:f}:Ja({},f),v=p.type;let h=!1,g=!0;if(qt(v))for(let y=0;y<v.length;++y){const m=v[y],b=Pn(m)&&m.name;if(b==="Boolean"){h=!0;break}else b==="String"&&(g=!1)}else h=Pn(v)&&v.name==="Boolean";p[0]=h,p[1]=g,(h||Zr(p,"default"))&&s.push(c)}}const u=[a,s];return ar(e)&&r.set(e,u),u}function qY(e){return e[0]!=="$"&&!N4(e)}const Lj=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",Fj=e=>qt(e)?e.map(dd):[dd(e)],qTe=(e,t,n)=>{if(t._n)return t;const r=nt((...o)=>Fj(t(...o)),n);return r._c=!1,r},xge=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Lj(o))continue;const i=e[o];if(Pn(i))t[o]=qTe(o,i,r);else if(i!=null){const a=Fj(i);t[o]=()=>a}}},Sge=(e,t)=>{const n=Fj(t);e.slots.default=()=>n},Ege=(e,t,n)=>{for(const r in t)(n||!Lj(r))&&(e[r]=t[r])},GTe=(e,t,n)=>{const r=e.slots=bge();if(e.vnode.shapeFlag&32){const o=t.__;o&&UB(r,"__",o,!0);const i=t._;i?(Ege(r,t,n),n&&UB(r,"_",i,!0)):xge(t,r)}else t&&Sge(e,t)},KTe=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Ei;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:Ege(o,t,n):(i=!t.$stable,xge(t,o)),a=t}else t&&(Sge(e,t),a={default:1});if(i)for(const s in o)!Lj(s)&&a[s]==null&&delete o[s]},Js=l_e;function QTe(e){return YTe(e)}function YTe(e,t){const n=A_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:c,nextSibling:f,setScopeId:p=go,insertStaticContent:v}=e,h=(he,Te,Y,be=null,De=null,pe=null,oe=void 0,ce=null,Re=!!Te.dynamicChildren)=>{if(he===Te)return;he&&!xg(he,Te)&&(be=X(he),L(he,De,pe,!0),he=null),Te.patchFlag===-2&&(Re=!1,Te.dynamicChildren=null);const{type:Ee,ref:Le,shapeFlag:Fe}=Te;switch(Ee){case Sb:g(he,Te,Y,be);break;case la:y(he,Te,Y,be);break;case lS:he==null&&m(Te,Y,be,oe);break;case Pt:_(he,Te,Y,be,De,pe,oe,ce,Re);break;default:Fe&1?A(he,Te,Y,be,De,pe,oe,ce,Re):Fe&6?B(he,Te,Y,be,De,pe,oe,ce,Re):(Fe&64||Fe&128)&&Ee.process(he,Te,Y,be,De,pe,oe,ce,Re,Me)}Le!=null&&De?U4(Le,he&&he.ref,pe,Te||he,!Te):Le==null&&he&&he.ref!=null&&U4(he.ref,null,pe,he,!0)},g=(he,Te,Y,be)=>{if(he==null)r(Te.el=s(Te.children),Y,be);else{const De=Te.el=he.el;Te.children!==he.children&&u(De,Te.children)}},y=(he,Te,Y,be)=>{he==null?r(Te.el=l(Te.children||""),Y,be):Te.el=he.el},m=(he,Te,Y,be)=>{[he.el,he.anchor]=v(he.children,Te,Y,be,he.el,he.anchor)},b=({el:he,anchor:Te},Y,be)=>{let De;for(;he&&he!==Te;)De=f(he),r(he,Y,be),he=De;r(Te,Y,be)},w=({el:he,anchor:Te})=>{let Y;for(;he&&he!==Te;)Y=f(he),o(he),he=Y;o(Te)},A=(he,Te,Y,be,De,pe,oe,ce,Re)=>{Te.type==="svg"?oe="svg":Te.type==="math"&&(oe="mathml"),he==null?S(Te,Y,be,De,pe,oe,ce,Re):D(he,Te,De,pe,oe,ce,Re)},S=(he,Te,Y,be,De,pe,oe,ce)=>{let Re,Ee;const{props:Le,shapeFlag:Fe,transition:Pe,dirs:Ne}=he;if(Re=he.el=a(he.type,pe,Le&&Le.is,Le),Fe&8?d(Re,he.children):Fe&16&&M(he.children,Re,null,be,De,G9(he,pe),oe,ce),Ne&&j0(he,null,be,"created"),k(Re,he,he.scopeId,oe,be),Le){for(const Rt in Le)Rt!=="value"&&!N4(Rt)&&i(Re,Rt,null,Le[Rt],pe,be);"value"in Le&&i(Re,"value",null,Le.value,pe),(Ee=Le.onVnodeBeforeMount)&&ed(Ee,be,he)}Ne&&j0(he,null,be,"beforeMount");const pt=ZTe(De,Pe);pt&&Pe.beforeEnter(Re),r(Re,Te,Y),((Ee=Le&&Le.onVnodeMounted)||pt||Ne)&&Js(()=>{Ee&&ed(Ee,be,he),pt&&Pe.enter(Re),Ne&&j0(he,null,be,"mounted")},De)},k=(he,Te,Y,be,De)=>{if(Y&&p(he,Y),be)for(let pe=0;pe<be.length;pe++)p(he,be[pe]);if(De){let pe=De.subTree;if(Te===pe||Dge(pe.type)&&(pe.ssContent===Te||pe.ssFallback===Te)){const oe=De.vnode;k(he,oe,oe.scopeId,oe.slotScopeIds,De.parent)}}},M=(he,Te,Y,be,De,pe,oe,ce,Re=0)=>{for(let Ee=Re;Ee<he.length;Ee++){const Le=he[Ee]=ce?ih(he[Ee]):dd(he[Ee]);h(null,Le,Te,Y,be,De,pe,oe,ce)}},D=(he,Te,Y,be,De,pe,oe)=>{const ce=Te.el=he.el;let{patchFlag:Re,dynamicChildren:Ee,dirs:Le}=Te;Re|=he.patchFlag&16;const Fe=he.props||Ei,Pe=Te.props||Ei;let Ne;if(Y&&H0(Y,!1),(Ne=Pe.onVnodeBeforeUpdate)&&ed(Ne,Y,Te,he),Le&&j0(Te,he,Y,"beforeUpdate"),Y&&H0(Y,!0),(Fe.innerHTML&&Pe.innerHTML==null||Fe.textContent&&Pe.textContent==null)&&d(ce,""),Ee?P(he.dynamicChildren,Ee,ce,Y,be,G9(Te,De),pe):oe||H(he,Te,ce,null,Y,be,G9(Te,De),pe,!1),Re>0){if(Re&16)O(ce,Fe,Pe,Y,De);else if(Re&2&&Fe.class!==Pe.class&&i(ce,"class",null,Pe.class,De),Re&4&&i(ce,"style",Fe.style,Pe.style,De),Re&8){const pt=Te.dynamicProps;for(let Rt=0;Rt<pt.length;Rt++){const Bt=pt[Rt],en=Fe[Bt],Wt=Pe[Bt];(Wt!==en||Bt==="value")&&i(ce,Bt,en,Wt,De,Y)}}Re&1&&he.children!==Te.children&&d(ce,Te.children)}else!oe&&Ee==null&&O(ce,Fe,Pe,Y,De);((Ne=Pe.onVnodeUpdated)||Le)&&Js(()=>{Ne&&ed(Ne,Y,Te,he),Le&&j0(Te,he,Y,"updated")},be)},P=(he,Te,Y,be,De,pe,oe)=>{for(let ce=0;ce<Te.length;ce++){const Re=he[ce],Ee=Te[ce],Le=Re.el&&(Re.type===Pt||!xg(Re,Ee)||Re.shapeFlag&198)?c(Re.el):Y;h(Re,Ee,Le,null,be,De,pe,oe,!0)}},O=(he,Te,Y,be,De)=>{if(Te!==Y){if(Te!==Ei)for(const pe in Te)!N4(pe)&&!(pe in Y)&&i(he,pe,Te[pe],null,De,be);for(const pe in Y){if(N4(pe))continue;const oe=Y[pe],ce=Te[pe];oe!==ce&&pe!=="value"&&i(he,pe,ce,oe,De,be)}"value"in Y&&i(he,"value",Te.value,Y.value,De)}},_=(he,Te,Y,be,De,pe,oe,ce,Re)=>{const Ee=Te.el=he?he.el:s(""),Le=Te.anchor=he?he.anchor:s("");let{patchFlag:Fe,dynamicChildren:Pe,slotScopeIds:Ne}=Te;Ne&&(ce=ce?ce.concat(Ne):Ne),he==null?(r(Ee,Y,be),r(Le,Y,be),M(Te.children||[],Y,Le,De,pe,oe,ce,Re)):Fe>0&&Fe&64&&Pe&&he.dynamicChildren?(P(he.dynamicChildren,Pe,Y,De,pe,oe,ce),(Te.key!=null||De&&Te===De.subTree)&&Uj(he,Te,!0)):H(he,Te,Y,Le,De,pe,oe,ce,Re)},B=(he,Te,Y,be,De,pe,oe,ce,Re)=>{Te.slotScopeIds=ce,he==null?Te.shapeFlag&512?De.ctx.activate(Te,Y,be,oe,Re):N(Te,Y,be,De,pe,oe,Re):q(he,Te,Re)},N=(he,Te,Y,be,De,pe,oe)=>{const ce=he.component=p_e(he,be,De);if(k_(he)&&(ce.ctx.renderer=Me),h_e(ce,!1,oe),ce.asyncDep){if(De&&De.registerDep(ce,U,oe),!he.el){const Re=ce.subTree=Ve(la);y(null,Re,Te,Y),he.placeholder=Re.el}}else U(ce,he,Te,Y,De,pe,oe)},q=(he,Te,Y)=>{const be=Te.component=he.component;if(a_e(he,Te,Y))if(be.asyncDep&&!be.asyncResolved){j(be,Te,Y);return}else be.next=Te,be.update();else Te.el=he.el,be.vnode=Te},U=(he,Te,Y,be,De,pe,oe)=>{const ce=()=>{if(he.isMounted){let{next:Fe,bu:Pe,u:Ne,parent:pt,vnode:Rt}=he;{const ct=kge(he);if(ct){Fe&&(Fe.el=Rt.el,j(he,Fe,oe)),ct.asyncDep.then(()=>{he.isUnmounted||ce()});return}}let Bt=Fe,en;H0(he,!1),Fe?(Fe.el=Rt.el,j(he,Fe,oe)):Fe=Rt,Pe&&iS(Pe),(en=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&ed(en,pt,Fe,Rt),H0(he,!0);const Wt=KY(he),Ut=he.subTree;he.subTree=Wt,h(Ut,Wt,c(Ut.el),X(Ut),he,De,pe),Fe.el=Wt.el,Bt===null&&s_e(he,Wt.el),Ne&&Js(Ne,De),(en=Fe.props&&Fe.props.onVnodeUpdated)&&Js(()=>ed(en,pt,Fe,Rt),De)}else{let Fe;const{el:Pe,props:Ne}=Te,{bm:pt,m:Rt,parent:Bt,root:en,type:Wt}=he,Ut=G1(Te);H0(he,!1),pt&&iS(pt),!Ut&&(Fe=Ne&&Ne.onVnodeBeforeMount)&&ed(Fe,Bt,Te),H0(he,!0);{en.ce&&en.ce._def.shadowRoot!==!1&&en.ce._injectChildStyle(Wt);const ct=he.subTree=KY(he);h(null,ct,Y,be,he,De,pe),Te.el=ct.el}if(Rt&&Js(Rt,De),!Ut&&(Fe=Ne&&Ne.onVnodeMounted)){const ct=Te;Js(()=>ed(Fe,Bt,ct),De)}(Te.shapeFlag&256||Bt&&G1(Bt.vnode)&&Bt.vnode.shapeFlag&256)&&he.a&&Js(he.a,De),he.isMounted=!0,Te=Y=be=null}};he.scope.on();const Re=he.effect=new M0e(ce);he.scope.off();const Ee=he.update=Re.run.bind(Re),Le=he.job=Re.runIfDirty.bind(Re);Le.i=he,Le.id=he.uid,Re.scheduler=()=>Mj(Le),H0(he,!0),Ee()},j=(he,Te,Y)=>{Te.component=he;const be=he.vnode.props;he.vnode=Te,he.next=null,WTe(he,Te.props,be,Y),KTe(he,Te.children,Y),Wf(),BY(he),Vf()},H=(he,Te,Y,be,De,pe,oe,ce,Re=!1)=>{const Ee=he&&he.children,Le=he?he.shapeFlag:0,Fe=Te.children,{patchFlag:Pe,shapeFlag:Ne}=Te;if(Pe>0){if(Pe&128){Z(Ee,Fe,Y,be,De,pe,oe,ce,Re);return}else if(Pe&256){G(Ee,Fe,Y,be,De,pe,oe,ce,Re);return}}Ne&8?(Le&16&&te(Ee,De,pe),Fe!==Ee&&d(Y,Fe)):Le&16?Ne&16?Z(Ee,Fe,Y,be,De,pe,oe,ce,Re):te(Ee,De,pe,!0):(Le&8&&d(Y,""),Ne&16&&M(Fe,Y,be,De,pe,oe,ce,Re))},G=(he,Te,Y,be,De,pe,oe,ce,Re)=>{he=he||H1,Te=Te||H1;const Ee=he.length,Le=Te.length,Fe=Math.min(Ee,Le);let Pe;for(Pe=0;Pe<Fe;Pe++){const Ne=Te[Pe]=Re?ih(Te[Pe]):dd(Te[Pe]);h(he[Pe],Ne,Y,null,De,pe,oe,ce,Re)}Ee>Le?te(he,De,pe,!0,!1,Fe):M(Te,Y,be,De,pe,oe,ce,Re,Fe)},Z=(he,Te,Y,be,De,pe,oe,ce,Re)=>{let Ee=0;const Le=Te.length;let Fe=he.length-1,Pe=Le-1;for(;Ee<=Fe&&Ee<=Pe;){const Ne=he[Ee],pt=Te[Ee]=Re?ih(Te[Ee]):dd(Te[Ee]);if(xg(Ne,pt))h(Ne,pt,Y,null,De,pe,oe,ce,Re);else break;Ee++}for(;Ee<=Fe&&Ee<=Pe;){const Ne=he[Fe],pt=Te[Pe]=Re?ih(Te[Pe]):dd(Te[Pe]);if(xg(Ne,pt))h(Ne,pt,Y,null,De,pe,oe,ce,Re);else break;Fe--,Pe--}if(Ee>Fe){if(Ee<=Pe){const Ne=Pe+1,pt=Ne<Le?Te[Ne].el:be;for(;Ee<=Pe;)h(null,Te[Ee]=Re?ih(Te[Ee]):dd(Te[Ee]),Y,pt,De,pe,oe,ce,Re),Ee++}}else if(Ee>Pe)for(;Ee<=Fe;)L(he[Ee],De,pe,!0),Ee++;else{const Ne=Ee,pt=Ee,Rt=new Map;for(Ee=pt;Ee<=Pe;Ee++){const Ot=Te[Ee]=Re?ih(Te[Ee]):dd(Te[Ee]);Ot.key!=null&&Rt.set(Ot.key,Ee)}let Bt,en=0;const Wt=Pe-pt+1;let Ut=!1,ct=0;const _t=new Array(Wt);for(Ee=0;Ee<Wt;Ee++)_t[Ee]=0;for(Ee=Ne;Ee<=Fe;Ee++){const Ot=he[Ee];if(en>=Wt){L(Ot,De,pe,!0);continue}let Ae;if(Ot.key!=null)Ae=Rt.get(Ot.key);else for(Bt=pt;Bt<=Pe;Bt++)if(_t[Bt-pt]===0&&xg(Ot,Te[Bt])){Ae=Bt;break}Ae===void 0?L(Ot,De,pe,!0):(_t[Ae-pt]=Ee+1,Ae>=ct?ct=Ae:Ut=!0,h(Ot,Te[Ae],Y,null,De,pe,oe,ce,Re),en++)}const st=Ut?XTe(_t):H1;for(Bt=st.length-1,Ee=Wt-1;Ee>=0;Ee--){const Ot=pt+Ee,Ae=Te[Ot],je=Te[Ot+1],at=Ot+1<Le?je.el||je.placeholder:be;_t[Ee]===0?h(null,Ae,Y,at,De,pe,oe,ce,Re):Ut&&(Bt<0||Ee!==st[Bt]?$(Ae,Y,at,2):Bt--)}}},$=(he,Te,Y,be,De=null)=>{const{el:pe,type:oe,transition:ce,children:Re,shapeFlag:Ee}=he;if(Ee&6){$(he.component.subTree,Te,Y,be);return}if(Ee&128){he.suspense.move(Te,Y,be);return}if(Ee&64){oe.move(he,Te,Y,Me);return}if(oe===Pt){r(pe,Te,Y);for(let Fe=0;Fe<Re.length;Fe++)$(Re[Fe],Te,Y,be);r(he.anchor,Te,Y);return}if(oe===lS){b(he,Te,Y);return}if(be!==2&&Ee&1&&ce)if(be===0)ce.beforeEnter(pe),r(pe,Te,Y),Js(()=>ce.enter(pe),De);else{const{leave:Fe,delayLeave:Pe,afterLeave:Ne}=ce,pt=()=>{he.ctx.isUnmounted?o(pe):r(pe,Te,Y)},Rt=()=>{Fe(pe,()=>{pt(),Ne&&Ne()})};Pe?Pe(pe,pt,Rt):Rt()}else r(pe,Te,Y)},L=(he,Te,Y,be=!1,De=!1)=>{const{type:pe,props:oe,ref:ce,children:Re,dynamicChildren:Ee,shapeFlag:Le,patchFlag:Fe,dirs:Pe,cacheIndex:Ne}=he;if(Fe===-2&&(De=!1),ce!=null&&(Wf(),U4(ce,null,Y,he,!0),Vf()),Ne!=null&&(Te.renderCache[Ne]=void 0),Le&256){Te.ctx.deactivate(he);return}const pt=Le&1&&Pe,Rt=!G1(he);let Bt;if(Rt&&(Bt=oe&&oe.onVnodeBeforeUnmount)&&ed(Bt,Te,he),Le&6)ee(he.component,Y,be);else{if(Le&128){he.suspense.unmount(Y,be);return}pt&&j0(he,null,Te,"beforeUnmount"),Le&64?he.type.remove(he,Te,Y,Me,be):Ee&&!Ee.hasOnce&&(pe!==Pt||Fe>0&&Fe&64)?te(Ee,Te,Y,!1,!0):(pe===Pt&&Fe&384||!De&&Le&16)&&te(Re,Te,Y),be&&W(he)}(Rt&&(Bt=oe&&oe.onVnodeUnmounted)||pt)&&Js(()=>{Bt&&ed(Bt,Te,he),pt&&j0(he,null,Te,"unmounted")},Y)},W=he=>{const{type:Te,el:Y,anchor:be,transition:De}=he;if(Te===Pt){ie(Y,be);return}if(Te===lS){w(he);return}const pe=()=>{o(Y),De&&!De.persisted&&De.afterLeave&&De.afterLeave()};if(he.shapeFlag&1&&De&&!De.persisted){const{leave:oe,delayLeave:ce}=De,Re=()=>oe(Y,pe);ce?ce(he.el,pe,Re):Re()}else pe()},ie=(he,Te)=>{let Y;for(;he!==Te;)Y=f(he),o(he),he=Y;o(Te)},ee=(he,Te,Y)=>{const{bum:be,scope:De,job:pe,subTree:oe,um:ce,m:Re,a:Ee,parent:Le,slots:{__:Fe}}=he;GY(Re),GY(Ee),be&&iS(be),Le&&qt(Fe)&&Fe.forEach(Pe=>{Le.renderCache[Pe]=void 0}),De.stop(),pe&&(pe.flags|=8,L(oe,he,Te,Y)),ce&&Js(ce,Te),Js(()=>{he.isUnmounted=!0},Te),Te&&Te.pendingBranch&&!Te.isUnmounted&&he.asyncDep&&!he.asyncResolved&&he.suspenseId===Te.pendingId&&(Te.deps--,Te.deps===0&&Te.resolve())},te=(he,Te,Y,be=!1,De=!1,pe=0)=>{for(let oe=pe;oe<he.length;oe++)L(he[oe],Te,Y,be,De)},X=he=>{if(he.shapeFlag&6)return X(he.component.subTree);if(he.shapeFlag&128)return he.suspense.next();const Te=f(he.anchor||he.el),Y=Te&&Te[ege];return Y?f(Y):Te};let ue=!1;const ve=(he,Te,Y)=>{he==null?Te._vnode&&L(Te._vnode,null,null,!0):h(Te._vnode||null,he,Te,null,null,null,Y),Te._vnode=he,ue||(ue=!0,BY(),Z0e(),ue=!1)},Me={p:h,um:L,m:$,r:W,mt:N,mc:M,pc:H,pbc:P,n:X,o:e};return{render:ve,hydrate:void 0,createApp:jTe(ve)}}function G9({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function H0({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ZTe(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uj(e,t,n=!1){const r=e.children,o=t.children;if(qt(r)&&qt(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=ih(o[i]),s.el=a.el),!n&&s.patchFlag!==-2&&Uj(a,s)),s.type===Sb&&(s.el=a.el),s.type===la&&!s.el&&(s.el=a.el)}}function XTe(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function kge(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kge(t)}function GY(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const JTe=Symbol.for("v-scx"),e_e=()=>cn(JTe);function Cs(e,t){return $j(e,null,t)}function St(e,t,n){return $j(e,t,n)}function $j(e,t,n=Ei){const{immediate:r,deep:o,flush:i,once:a}=n,s=Ja({},n),l=t&&r||!t&&i!=="post";let u;if(M3){if(i==="sync"){const p=e_e();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=go,p.resume=go,p.pause=go,p}}const d=Ls;s.call=(p,v,h)=>Nc(p,d,v,h);let c=!1;i==="post"?s.scheduler=p=>{Js(p,d&&d.suspense)}:i!=="sync"&&(c=!0,s.scheduler=(p,v)=>{v?p():Mj(p)}),s.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=ATe(e,t,s);return M3&&(u?u.push(f):l&&f()),f}function t_e(e,t,n){const r=this.proxy,o=In(e)?e.includes(".")?Tge(r,e):()=>r[e]:e.bind(r,r);let i;Pn(t)?i=t:(i=t.handler,n=t);const a=vC(this),s=$j(o,i.bind(r),n);return a(),s}function Tge(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const n_e=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sl(t)}Modifiers`]||e[`${cp(t)}Modifiers`];function r_e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ei;let o=n;const i=t.startsWith("update:"),a=i&&n_e(r,t.slice(7));a&&(a.trim&&(o=n.map(d=>In(d)?d.trim():d)),a.number&&(o=n.map(K8)));let s,l=r[s=R4(t)]||r[s=R4(sl(t))];!l&&i&&(l=r[s=R4(cp(t))]),l&&Nc(l,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Nc(u,e,6,o)}}function _ge(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Pn(e)){const l=u=>{const d=_ge(u,t,!0);d&&(s=!0,Ja(a,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(ar(e)&&r.set(e,null),null):(qt(i)?i.forEach(l=>a[l]=null):Ja(a,i),ar(e)&&r.set(e,a),a)}function I_(e,t){return!e||!b_(t)?!1:(t=t.slice(2).replace(/Once$/,""),Zr(e,t[0].toLowerCase()+t.slice(1))||Zr(e,cp(t))||Zr(e,t))}function KY(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:u,renderCache:d,props:c,data:f,setupState:p,ctx:v,inheritAttrs:h}=e,g=J8(e);let y,m;try{if(n.shapeFlag&4){const w=o||r,A=w;y=dd(u.call(A,w,d,c,p,f,v)),m=s}else{const w=t;y=dd(w.length>1?w(c,{attrs:s,slots:a,emit:l}):w(c,null)),m=t.props?s:o_e(s)}}catch(w){z4.length=0,E_(w,e,1),y=Ve(la)}let b=y;if(m&&h!==!1){const w=Object.keys(m),{shapeFlag:A}=b;w.length&&A&7&&(i&&w.some(Cj)&&(m=i_e(m,i)),b=qf(b,m,!1,!0))}return n.dirs&&(b=qf(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&xv(b,n.transition),y=b,J8(g),y}const o_e=e=>{let t;for(const n in e)(n==="class"||n==="style"||b_(n))&&((t||(t={}))[n]=e[n]);return t},i_e=(e,t)=>{const n={};for(const r in e)(!Cj(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function a_e(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?QY(r,a,u):!!a;if(l&8){const d=t.dynamicProps;for(let c=0;c<d.length;c++){const f=d[c];if(a[f]!==r[f]&&!I_(u,f))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?QY(r,a,u):!0:!!a;return!1}function QY(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!I_(n,i))return!0}return!1}function s_e({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Dge=e=>e.__isSuspense;function l_e(e,t){t&&t.pendingBranch?qt(e)?t.effects.push(...e):t.effects.push(e):STe(e)}const Pt=Symbol.for("v-fgt"),Sb=Symbol.for("v-txt"),la=Symbol.for("v-cmt"),lS=Symbol.for("v-stc"),z4=[];let nu=null;function F(e=!1){z4.push(nu=e?null:[])}function u_e(){z4.pop(),nu=z4[z4.length-1]||null}let O3=1;function YY(e,t=!1){O3+=e,e<0&&nu&&t&&(nu.hasOnce=!0)}function Ige(e){return e.dynamicChildren=O3>0?nu||H1:null,u_e(),O3>0&&nu&&nu.push(e),e}function K(e,t,n,r,o,i){return Ige(x(e,t,n,r,o,i,!0))}function mt(e,t,n,r,o){return Ige(Ve(e,t,n,r,o,!0))}function jo(e){return e?e.__v_isVNode===!0:!1}function xg(e,t){return e.type===t.type&&e.key===t.key}const Oge=({key:e})=>e??null,uS=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?In(e)||Ro(e)||Pn(e)?{i:ws,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,o=null,i=e===Pt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Oge(t),ref:t&&uS(t),scopeId:J0e,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ws};return s?(zj(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=In(n)?8:16),O3>0&&!a&&nu&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&nu.push(l),l}const Ve=c_e;function c_e(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===fge)&&(e=la),jo(e)){const s=qf(e,t,!0);return n&&zj(s,n),O3>0&&!i&&nu&&(s.shapeFlag&6?nu[nu.indexOf(e)]=s:nu.push(s)),s.patchFlag=-2,s}if(y_e(e)&&(e=e.__vccOpts),t){t=Bd(t);let{class:s,style:l}=t;s&&!In(s)&&(t.class=re(s)),ar(l)&&(Oj(l)&&!qt(l)&&(l=Ja({},l)),t.style=Xt(l))}const a=In(e)?1:Dge(e)?128:tge(e)?64:ar(e)?4:Pn(e)?2:0;return x(e,t,n,r,o,a,i,!0)}function Bd(e){return e?Oj(e)||wge(e)?Ja({},e):e:null}function qf(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,u=t?pr(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Oge(u),ref:t&&t.ref?n&&i?qt(i)?i.concat(uS(t)):[i,uS(t)]:uS(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qf(e.ssContent),ssFallback:e.ssFallback&&qf(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&xv(d,l.clone(d)),d}function xn(e=" ",t=0){return Ve(Sb,null,e,t)}function ki(e,t){const n=Ve(lS,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(F(),mt(la,null,e)):Ve(la,null,e)}function dd(e){return e==null||typeof e=="boolean"?Ve(la):qt(e)?Ve(Pt,null,e.slice()):jo(e)?ih(e):Ve(Sb,null,String(e))}function ih(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qf(e)}function zj(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(qt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),zj(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!wge(t)?t._ctx=ws:o===3&&ws&&(ws.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pn(t)?(t={default:t,_ctx:ws},n=32):(t=String(t),r&64?(n=16,t=[xn(t)]):n=8);e.children=t,e.shapeFlag|=n}function pr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=re([t.class,r.class]));else if(o==="style")t.style=Xt([t.style,r.style]);else if(b_(o)){const i=t[o],a=r[o];a&&i!==a&&!(qt(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function ed(e,t,n,r=null){Nc(e,t,7,[n,r])}const d_e=mge();let f_e=0;function p_e(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||d_e,i={uid:f_e++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new _0e(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cge(r,o),emitsOptions:_ge(r,o),emit:null,emitted:null,propsDefaults:Ei,inheritAttrs:r.inheritAttrs,ctx:Ei,data:Ei,props:Ei,attrs:Ei,slots:Ei,refs:Ei,setupState:Ei,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=r_e.bind(null,i),e.ce&&e.ce(i),i}let Ls=null;const vr=()=>Ls||ws;let tE,QB;{const e=A_(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};tE=t("__VUE_INSTANCE_SETTERS__",n=>Ls=n),QB=t("__VUE_SSR_SETTERS__",n=>M3=n)}const vC=e=>{const t=Ls;return tE(e),e.scope.on(),()=>{e.scope.off(),tE(t)}},ZY=()=>{Ls&&Ls.scope.off(),tE(null)};function Mge(e){return e.vnode.shapeFlag&4}let M3=!1;function h_e(e,t=!1,n=!1){t&&QB(t);const{props:r,children:o}=e.vnode,i=Mge(e);HTe(e,r,i,t),GTe(e,o,n||t);const a=i?g_e(e,t):void 0;return t&&QB(!1),a}function g_e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,RTe);const{setup:r}=n;if(r){Wf();const o=e.setupContext=r.length>1?Nge(e):null,i=vC(e),a=gC(r,e,0,[e.props,o]),s=Av(a);if(Vf(),i(),(s||e.sp)&&!G1(e)&&uge(e),s){if(a.then(ZY,ZY),t)return a.then(l=>{XY(e,l)}).catch(l=>{E_(l,e,0)});e.asyncDep=a}else XY(e,a)}else Pge(e)}function XY(e,t,n){Pn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ar(t)&&(e.setupState=G0e(t)),Pge(e)}function Pge(e,t,n){const r=e.type;e.render||(e.render=r.render||go);{const o=vC(e);Wf();try{BTe(e)}finally{Vf(),o()}}}const v_e={get(e,t){return Rs(e,"get",""),e[t]}};function Nge(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,v_e),slots:e.slots,emit:e.emit,expose:t}}function O_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(G0e(Id(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $4)return $4[n](e)},has(t,n){return n in t||n in $4}})):e.proxy}function m_e(e,t=!0){return Pn(e)?e.displayName||e.name:e.name||t&&e.__name}function y_e(e){return Pn(e)&&"__vccOpts"in e}const J=(e,t)=>bTe(e,t,M3);function Fn(e,t,n){const r=arguments.length;return r===2?ar(t)&&!qt(t)?jo(t)?Ve(e,null,[t]):Ve(e,t):Ve(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&jo(n)&&(n=[n]),Ve(e,t,n))}const b_e="3.5.18",w_e=go;/**
- * @vue/runtime-dom v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let YB;const JY=typeof window<"u"&&window.trustedTypes;if(JY)try{YB=JY.createPolicy("vue",{createHTML:e=>e})}catch{}const Rge=YB?e=>YB.createHTML(e):e=>e,A_e="http://www.w3.org/2000/svg",C_e="http://www.w3.org/1998/Math/MathML",yf=typeof document<"u"?document:null,eZ=yf&&yf.createElement("template"),x_e={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?yf.createElementNS(A_e,e):t==="mathml"?yf.createElementNS(C_e,e):n?yf.createElement(e,{is:n}):yf.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>yf.createTextNode(e),createComment:e=>yf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{eZ.innerHTML=Rge(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=eZ.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tp="transition",w2="animation",wy=Symbol("_vtc"),Bge={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Lge=Ja({},ige,Bge),S_e=e=>(e.displayName="Transition",e.props=Lge,e),Wi=S_e((e,{slots:t})=>Fn(TTe,Fge(e),t)),W0=(e,t=[])=>{qt(e)?e.forEach(n=>n(...t)):e&&e(...t)},tZ=e=>e?qt(e)?e.some(t=>t.length>1):e.length>1:!1;function Fge(e){const t={};for(const _ in e)_ in Bge||(t[_]=e[_]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=E_e(o),h=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:w,onLeaveCancelled:A,onBeforeAppear:S=y,onAppear:k=m,onAppearCancelled:M=b}=t,D=(_,B,N,q)=>{_._enterCancelled=q,eh(_,B?d:s),eh(_,B?u:a),N&&N()},P=(_,B)=>{_._isLeaving=!1,eh(_,c),eh(_,p),eh(_,f),B&&B()},O=_=>(B,N)=>{const q=_?k:m,U=()=>D(B,_,N);W0(q,[B,U]),nZ(()=>{eh(B,_?l:i),od(B,_?d:s),tZ(q)||rZ(B,r,h,U)})};return Ja(t,{onBeforeEnter(_){W0(y,[_]),od(_,i),od(_,a)},onBeforeAppear(_){W0(S,[_]),od(_,l),od(_,u)},onEnter:O(!1),onAppear:O(!0),onLeave(_,B){_._isLeaving=!0;const N=()=>P(_,B);od(_,c),_._enterCancelled?(od(_,f),ZB()):(ZB(),od(_,f)),nZ(()=>{_._isLeaving&&(eh(_,c),od(_,p),tZ(w)||rZ(_,r,g,N))}),W0(w,[_,N])},onEnterCancelled(_){D(_,!1,void 0,!0),W0(b,[_])},onAppearCancelled(_){D(_,!0,void 0,!0),W0(M,[_])},onLeaveCancelled(_){P(_),W0(A,[_])}})}function E_e(e){if(e==null)return null;if(ar(e))return[K9(e.enter),K9(e.leave)];{const t=K9(e);return[t,t]}}function K9(e){return Uke(e)}function od(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wy]||(e[wy]=new Set)).add(t)}function eh(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[wy];n&&(n.delete(t),n.size||(e[wy]=void 0))}function nZ(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let k_e=0;function rZ(e,t,n,r){const o=e._endId=++k_e,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=Uge(e,t);if(!a)return r();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,f),i()},f=p=>{p.target===e&&++d>=l&&c()};setTimeout(()=>{d<l&&c()},s+1),e.addEventListener(u,f)}function Uge(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Tp}Delay`),i=r(`${Tp}Duration`),a=oZ(o,i),s=r(`${w2}Delay`),l=r(`${w2}Duration`),u=oZ(s,l);let d=null,c=0,f=0;t===Tp?a>0&&(d=Tp,c=a,f=i.length):t===w2?u>0&&(d=w2,c=u,f=l.length):(c=Math.max(a,u),d=c>0?a>u?Tp:w2:null,f=d?d===Tp?i.length:l.length:0);const p=d===Tp&&/\b(transform|all)(,|$)/.test(r(`${Tp}Property`).toString());return{type:d,timeout:c,propCount:f,hasTransform:p}}function oZ(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>iZ(n)+iZ(e[r])))}function iZ(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ZB(){return document.body.offsetHeight}function T_e(e,t,n){const r=e[wy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const nE=Symbol("_vod"),$ge=Symbol("_vsh"),Ar={beforeMount(e,{value:t},{transition:n}){e[nE]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):A2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),A2(e,!0),r.enter(e)):r.leave(e,()=>{A2(e,!1)}):A2(e,t))},beforeUnmount(e,{value:t}){A2(e,t)}};function A2(e,t){e.style.display=t?e[nE]:"none",e[$ge]=!t}const __e=Symbol(""),D_e=/(^|;)\s*display\s*:/;function I_e(e,t,n){const r=e.style,o=In(n);let i=!1;if(n&&!o){if(t)if(In(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&cS(r,s,"")}else for(const a in t)n[a]==null&&cS(r,a,"");for(const a in n)a==="display"&&(i=!0),cS(r,a,n[a])}else if(o){if(t!==n){const a=r[__e];a&&(n+=";"+a),r.cssText=n,i=D_e.test(n)}}else t&&e.removeAttribute("style");nE in e&&(e[nE]=i?r.display:"",e[$ge]&&(r.display="none"))}const aZ=/\s*!important$/;function cS(e,t,n){if(qt(n))n.forEach(r=>cS(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=O_e(e,t);aZ.test(n)?e.setProperty(cp(r),n.replace(aZ,""),"important"):e[r]=n}}const sZ=["Webkit","Moz","ms"],Q9={};function O_e(e,t){const n=Q9[t];if(n)return n;let r=sl(t);if(r!=="filter"&&r in e)return Q9[t]=r;r=hC(r);for(let o=0;o<sZ.length;o++){const i=sZ[o]+r;if(i in e)return Q9[t]=i}return t}const lZ="http://www.w3.org/1999/xlink";function uZ(e,t,n,r,o,i=Vke(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(lZ,t.slice(6,t.length)):e.setAttributeNS(lZ,t,n):n==null||i&&!E0e(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Pc(n)?String(n):n)}function cZ(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Rge(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=E0e(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function kf(e,t,n,r){e.addEventListener(t,n,r)}function M_e(e,t,n,r){e.removeEventListener(t,n,r)}const dZ=Symbol("_vei");function P_e(e,t,n,r,o=null){const i=e[dZ]||(e[dZ]={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=N_e(t);if(r){const u=i[t]=L_e(r,o);kf(e,s,u,l)}else a&&(M_e(e,s,a,l),i[t]=void 0)}}const fZ=/(?:Once|Passive|Capture)$/;function N_e(e){let t;if(fZ.test(e)){t={};let r;for(;r=e.match(fZ);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):cp(e.slice(2)),t]}let Y9=0;const R_e=Promise.resolve(),B_e=()=>Y9||(R_e.then(()=>Y9=0),Y9=Date.now());function L_e(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nc(F_e(r,n.value),t,5,[r])};return n.value=e,n.attached=B_e(),n}function F_e(e,t){if(qt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const pZ=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,U_e=(e,t,n,r,o,i)=>{const a=o==="svg";t==="class"?T_e(e,r,a):t==="style"?I_e(e,n,r):b_(t)?Cj(t)||P_e(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$_e(e,t,r,a))?(cZ(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&uZ(e,t,r,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!In(r))?cZ(e,sl(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),uZ(e,t,r,a))};function $_e(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&pZ(t)&&Pn(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return pZ(t)&&In(n)?!1:t in e}const zge=new WeakMap,jge=new WeakMap,rE=Symbol("_moveCb"),hZ=Symbol("_enterCb"),z_e=e=>(delete e.props.mode,e),j_e=z_e({name:"TransitionGroup",props:Ja({},Lge,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vr(),r=oge();let o,i;return Wc(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!q_e(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(H_e),o.forEach(W_e);const s=o.filter(V_e);ZB(),s.forEach(l=>{const u=l.el,d=u.style;od(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[rE]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",c),u[rE]=null,eh(u,a))};u.addEventListener("transitionend",c)}),o=[]}),()=>{const a=Oo(e),s=Fge(a);let l=a.tag||Pt;if(o=[],i)for(let u=0;u<i.length;u++){const d=i[u];d.el&&d.el instanceof Element&&(o.push(d),xv(d,I3(d,s,r,n)),zge.set(d,d.el.getBoundingClientRect()))}i=t.default?Pj(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&xv(d,I3(d,s,r,n))}return Ve(l,null,i)}}}),Hge=j_e;function H_e(e){const t=e.el;t[rE]&&t[rE](),t[hZ]&&t[hZ]()}function W_e(e){jge.set(e,e.el.getBoundingClientRect())}function V_e(e){const t=zge.get(e),n=jge.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function q_e(e,t,n){const r=e.cloneNode(),o=e[wy];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=Uge(r);return i.removeChild(r),a}const Jh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qt(t)?n=>iS(t,n):t};function G_e(e){e.target.composing=!0}function gZ(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Uu=Symbol("_assign"),jr={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Uu]=Jh(o);const i=r||o.props&&o.props.type==="number";kf(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=K8(s)),e[Uu](s)}),n&&kf(e,"change",()=>{e.value=e.value.trim()}),t||(kf(e,"compositionstart",G_e),kf(e,"compositionend",gZ),kf(e,"change",gZ))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){if(e[Uu]=Jh(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?K8(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},oE={deep:!0,created(e,t,n){e[Uu]=Jh(n),kf(e,"change",()=>{const r=e._modelValue,o=Ay(e),i=e.checked,a=e[Uu];if(qt(r)){const s=Ej(r,o),l=s!==-1;if(i&&!l)a(r.concat(o));else if(!i&&l){const u=[...r];u.splice(s,1),a(u)}}else if(Ab(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(Vge(e,i))})},mounted:vZ,beforeUpdate(e,t,n){e[Uu]=Jh(n),vZ(e,t,n)}};function vZ(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(qt(t))o=Ej(t,r.props.value)>-1;else if(Ab(t))o=t.has(r.props.value);else{if(t===n)return;o=Cv(t,Vge(e,!0))}e.checked!==o&&(e.checked=o)}const Wge={created(e,{value:t},n){e.checked=Cv(t,n.props.value),e[Uu]=Jh(n),kf(e,"change",()=>{e[Uu](Ay(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Uu]=Jh(r),t!==n&&(e.checked=Cv(t,r.props.value))}},C2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Ab(t);kf(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?K8(Ay(a)):Ay(a));e[Uu](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Vt(()=>{e._assigning=!1})}),e[Uu]=Jh(r)},mounted(e,{value:t}){mZ(e,t)},beforeUpdate(e,t,n){e[Uu]=Jh(n)},updated(e,{value:t}){e._assigning||mZ(e,t)}};function mZ(e,t){const n=e.multiple,r=qt(t);if(!(n&&!r&&!Ab(t))){for(let o=0,i=e.options.length;o<i;o++){const a=e.options[o],s=Ay(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=Ej(t,s)>-1}else a.selected=t.has(s);else if(Cv(Ay(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ay(e){return"_value"in e?e._value:e.value}function Vge(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const K_e=["ctrl","shift","alt","meta"],Q_e={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>K_e.some(n=>e[`${n}Key`]&&!t.includes(n))},Qt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a<t.length;a++){const s=Q_e[t[a]];if(s&&s(o,t))return}return e(o,...i)})},Y_e={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Lr=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=cp(o.key);if(t.some(a=>a===i||Y_e[a]===i))return e(o)})},Z_e=Ja({patchProp:U_e},x_e);let yZ;function qge(){return yZ||(yZ=QTe(Z_e))}const e0=(...e)=>{qge().render(...e)},Gge=(...e)=>{const t=qge().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=J_e(r);if(!o)return;const i=t._component;!Pn(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,X_e(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function X_e(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function J_e(e){return In(e)?document.querySelector(e):e}/*!
- * pinia v3.0.3
- * (c) 2025 Eduardo San Martin Morote
- * @license MIT
- */const eDe=Symbol();var bZ;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bZ||(bZ={}));function tDe(){const e=D0e(!0),t=e.run(()=>Q({}));let n=[],r=[];const o=Id({install(i){o._a=i,i.provide(eDe,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}/*!
- * vue-router v4.5.1
- * (c) 2025 Eduardo San Martin Morote
- * @license MIT
- */const S1=typeof document<"u";function Kge(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nDe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kge(e.default)}const si=Object.assign;function Z9(e,t){const n={};for(const r in t){const o=t[r];n[r]=Rc(o)?o.map(e):e(o)}return n}const j4=()=>{},Rc=Array.isArray,Qge=/#/g,rDe=/&/g,oDe=/\//g,iDe=/=/g,aDe=/\?/g,Yge=/\+/g,sDe=/%5B/g,lDe=/%5D/g,Zge=/%5E/g,uDe=/%60/g,Xge=/%7B/g,cDe=/%7C/g,Jge=/%7D/g,dDe=/%20/g;function jj(e){return encodeURI(""+e).replace(cDe,"|").replace(sDe,"[").replace(lDe,"]")}function fDe(e){return jj(e).replace(Xge,"{").replace(Jge,"}").replace(Zge,"^")}function XB(e){return jj(e).replace(Yge,"%2B").replace(dDe,"+").replace(Qge,"%23").replace(rDe,"%26").replace(uDe,"`").replace(Xge,"{").replace(Jge,"}").replace(Zge,"^")}function pDe(e){return XB(e).replace(iDe,"%3D")}function hDe(e){return jj(e).replace(Qge,"%23").replace(aDe,"%3F")}function gDe(e){return e==null?"":hDe(e).replace(oDe,"%2F")}function P3(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vDe=/\/$/,mDe=e=>e.replace(vDe,"");function X9(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=ADe(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:P3(a)}}function yDe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function wZ(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bDe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Cy(t.matched[r],n.matched[o])&&eve(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Cy(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eve(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wDe(e[n],t[n]))return!1;return!0}function wDe(e,t){return Rc(e)?AZ(e,t):Rc(t)?AZ(t,e):e===t}function AZ(e,t){return Rc(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ADe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}const _p={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var N3;(function(e){e.pop="pop",e.push="push"})(N3||(N3={}));var H4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(H4||(H4={}));function CDe(e){if(!e)if(S1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mDe(e)}const xDe=/^[^#]+#/;function SDe(e,t){return e.replace(xDe,"#")+t}function EDe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const M_=()=>({left:window.scrollX,top:window.scrollY});function kDe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=EDe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function CZ(e,t){return(history.state?history.state.position-t:-1)+e}const JB=new Map;function TDe(e,t){JB.set(e,t)}function _De(e){const t=JB.get(e);return JB.delete(e),t}let DDe=()=>location.protocol+"//"+location.host;function tve(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),wZ(l,"")}return wZ(n,e)+r+o}function IDe(e,t,n,r){let o=[],i=[],a=null;const s=({state:f})=>{const p=tve(e,location),v=n.value,h=t.value;let g=0;if(f){if(n.value=p,t.value=f,a&&a===v){a=null;return}g=h?f.position-h.position:0}else r(p);o.forEach(y=>{y(n.value,v,{delta:g,type:N3.pop,direction:g?g>0?H4.forward:H4.back:H4.unknown})})};function l(){a=n.value}function u(f){o.push(f);const p=()=>{const v=o.indexOf(f);v>-1&&o.splice(v,1)};return i.push(p),p}function d(){const{history:f}=window;f.state&&f.replaceState(si({},f.state,{scroll:M_()}),"")}function c(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function xZ(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?M_():null}}function ODe(e){const{history:t,location:n}=window,r={value:tve(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,d){const c=e.indexOf("#"),f=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+l:DDe()+e+l;try{t[d?"replaceState":"pushState"](u,"",f),o.value=u}catch(p){console.error(p),n[d?"replace":"assign"](f)}}function a(l,u){const d=si({},t.state,xZ(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,d,!0),r.value=l}function s(l,u){const d=si({},o.value,t.state,{forward:l,scroll:M_()});i(d.current,d,!0);const c=si({},xZ(r.value,l,null),{position:d.position+1},u);i(l,c,!1),r.value=l}return{location:r,state:o,push:s,replace:a}}function MDe(e){e=CDe(e);const t=ODe(e),n=IDe(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=si({location:"",base:e,go:r,createHref:SDe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function PDe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),MDe(e)}function NDe(e){return typeof e=="string"||e&&typeof e=="object"}function nve(e){return typeof e=="string"||typeof e=="symbol"}const rve=Symbol("");var SZ;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(SZ||(SZ={}));function xy(e,t){return si(new Error,{type:e,[rve]:!0},t)}function sf(e,t){return e instanceof Error&&rve in e&&(t==null||!!(e.type&t))}const EZ="[^/]+?",RDe={sensitive:!1,strict:!1,start:!0,end:!0},BDe=/[.+*?^${}()[\]/\\]/g;function LDe(e,t){const n=si({},RDe,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let c=0;c<u.length;c++){const f=u[c];let p=40+(n.sensitive?.25:0);if(f.type===0)c||(o+="/"),o+=f.value.replace(BDe,"\\$&"),p+=40;else if(f.type===1){const{value:v,repeatable:h,optional:g,regexp:y}=f;i.push({name:v,repeatable:h,optional:g});const m=y||EZ;if(m!==EZ){p+=10;try{new RegExp(`(${m})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${m}): `+w.message)}}let b=h?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(b=g&&u.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),o+=b,p+=20,g&&(p+=-8),h&&(p+=-20),m===".*"&&(p+=-50)}d.push(p)}r.push(d)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const d=u.match(a),c={};if(!d)return null;for(let f=1;f<d.length;f++){const p=d[f]||"",v=i[f-1];c[v.name]=p&&v.repeatable?p.split("/"):p}return c}function l(u){let d="",c=!1;for(const f of e){(!c||!d.endsWith("/"))&&(d+="/"),c=!1;for(const p of f)if(p.type===0)d+=p.value;else if(p.type===1){const{value:v,repeatable:h,optional:g}=p,y=v in u?u[v]:"";if(Rc(y)&&!h)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const m=Rc(y)?y.join("/"):y;if(!m)if(g)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);d+=m}}return d||"/"}return{re:a,score:r,keys:i,parse:s,stringify:l}}function FDe(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ove(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=FDe(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(kZ(r))return 1;if(kZ(o))return-1}return o.length-r.length}function kZ(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const UDe={type:0,value:""},$De=/[a-zA-Z0-9_]/;function zDe(e){if(!e)return[[]];if(e==="/")return[[UDe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,l,u="",d="";function c(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&c(),a()):l===":"?(c(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:$De.test(l)?f():(c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),a(),o}function jDe(e,t,n){const r=LDe(zDe(e.path),n),o=si(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function HDe(e,t){const n=[],r=new Map;t=IZ({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function i(c,f,p){const v=!p,h=_Z(c);h.aliasOf=p&&p.record;const g=IZ(t,c),y=[h];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const A of w)y.push(_Z(si({},h,{components:p?p.record.components:h.components,path:A,aliasOf:p?p.record:h})))}let m,b;for(const w of y){const{path:A}=w;if(f&&A[0]!=="/"){const S=f.record.path,k=S[S.length-1]==="/"?"":"/";w.path=f.record.path+(A&&k+A)}if(m=jDe(w,f,g),p?p.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),v&&c.name&&!DZ(m)&&a(c.name)),ive(m)&&l(m),h.children){const S=h.children;for(let k=0;k<S.length;k++)i(S[k],m,p&&p.children[k])}p=p||m}return b?()=>{a(b)}:j4}function a(c){if(nve(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function s(){return n}function l(c){const f=qDe(c,n);n.splice(f,0,c),c.record.name&&!DZ(c)&&r.set(c.record.name,c)}function u(c,f){let p,v={},h,g;if("name"in c&&c.name){if(p=r.get(c.name),!p)throw xy(1,{location:c});g=p.record.name,v=si(TZ(f.params,p.keys.filter(b=>!b.optional).concat(p.parent?p.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&TZ(c.params,p.keys.map(b=>b.name))),h=p.stringify(v)}else if(c.path!=null)h=c.path,p=n.find(b=>b.re.test(h)),p&&(v=p.parse(h),g=p.record.name);else{if(p=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!p)throw xy(1,{location:c,currentLocation:f});g=p.record.name,v=si({},f.params,c.params),h=p.stringify(v)}const y=[];let m=p;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:h,params:v,matched:y,meta:VDe(y)}}e.forEach(c=>i(c));function d(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function TZ(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function _Z(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:WDe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function WDe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function DZ(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function VDe(e){return e.reduce((t,n)=>si(t,n.meta),{})}function IZ(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function qDe(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;ove(e,t[i])<0?r=i:n=i+1}const o=GDe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function GDe(e){let t=e;for(;t=t.parent;)if(ive(t)&&ove(e,t)===0)return t}function ive({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function KDe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Yge," "),a=i.indexOf("="),s=P3(a<0?i:i.slice(0,a)),l=a<0?null:P3(i.slice(a+1));if(s in t){let u=t[s];Rc(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function OZ(e){let t="";for(let n in e){const r=e[n];if(n=pDe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Rc(r)?r.map(i=>i&&XB(i)):[r&&XB(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function QDe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Rc(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const YDe=Symbol(""),MZ=Symbol(""),P_=Symbol(""),Hj=Symbol(""),eL=Symbol("");function x2(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ah(e,t,n,r,o,i=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(xy(4,{from:n,to:t})):f instanceof Error?l(f):NDe(f)?l(xy(2,{from:t,to:f})):(a&&r.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),s())},d=i(()=>e.call(r&&r.instances[o],t,n,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(f=>l(f))})}function J9(e,t,n,r,o=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(Kge(l)){const d=(l.__vccOpts||l)[t];d&&i.push(ah(d,n,r,a,s,o))}else{let u=l();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const c=nDe(d)?d.default:d;a.mods[s]=d,a.components[s]=c;const p=(c.__vccOpts||c)[t];return p&&ah(p,n,r,a,s,o)()}))}}return i}function PZ(e){const t=cn(P_),n=cn(Hj),r=J(()=>{const l=C(e.to);return t.resolve(l)}),o=J(()=>{const{matched:l}=r.value,{length:u}=l,d=l[u-1],c=n.matched;if(!d||!c.length)return-1;const f=c.findIndex(Cy.bind(null,d));if(f>-1)return f;const p=NZ(l[u-2]);return u>1&&NZ(d)===p&&c[c.length-1].path!==p?c.findIndex(Cy.bind(null,l[u-2])):f}),i=J(()=>o.value>-1&&t7e(n.params,r.value.params)),a=J(()=>o.value>-1&&o.value===n.matched.length-1&&eve(n.params,r.value.params));function s(l={}){if(e7e(l)){const u=t[C(e.replace)?"replace":"push"](C(e.to)).catch(j4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}function ZDe(e){return e.length===1?e[0]:e}const XDe=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:PZ,setup(e,{slots:t}){const n=Ur(PZ(e)),{options:r}=cn(P_),o=J(()=>({[RZ(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[RZ(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&ZDe(t.default(n));return e.custom?i:Fn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),JDe=XDe;function e7e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function t7e(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Rc(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function NZ(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const RZ=(e,t,n)=>e??t??n,n7e=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=cn(eL),o=J(()=>e.route||r.value),i=cn(MZ,0),a=J(()=>{let u=C(i);const{matched:d}=o.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),s=J(()=>o.value.matched[a.value]);Sr(MZ,J(()=>a.value+1)),Sr(YDe,s),Sr(eL,o);const l=Q();return St(()=>[l.value,s.value,e.name],([u,d,c],[f,p,v])=>{d&&(d.instances[c]=u,p&&p!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),u&&d&&(!p||!Cy(d,p)||!f)&&(d.enterCallbacks[c]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,c=s.value,f=c&&c.components[d];if(!f)return BZ(n.default,{Component:f,route:u});const p=c.props[d],v=p?p===!0?u.params:typeof p=="function"?p(u):p:null,g=Fn(f,si({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[d]=null)},ref:l}));return BZ(n.default,{Component:g,route:u})||g}}});function BZ(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ave=n7e;function r7e(e){const t=HDe(e.routes,e),n=e.parseQuery||KDe,r=e.stringifyQuery||OZ,o=e.history,i=x2(),a=x2(),s=x2(),l=Uo(_p);let u=_p;S1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Z9.bind(null,X=>""+X),c=Z9.bind(null,gDe),f=Z9.bind(null,P3);function p(X,ue){let ve,Me;return nve(X)?(ve=t.getRecordMatcher(X),Me=ue):Me=X,t.addRoute(Me,ve)}function v(X){const ue=t.getRecordMatcher(X);ue&&t.removeRoute(ue)}function h(){return t.getRoutes().map(X=>X.record)}function g(X){return!!t.getRecordMatcher(X)}function y(X,ue){if(ue=si({},ue||l.value),typeof X=="string"){const Y=X9(n,X,ue.path),be=t.resolve({path:Y.path},ue),De=o.createHref(Y.fullPath);return si(Y,be,{params:f(be.params),hash:P3(Y.hash),redirectedFrom:void 0,href:De})}let ve;if(X.path!=null)ve=si({},X,{path:X9(n,X.path,ue.path).path});else{const Y=si({},X.params);for(const be in Y)Y[be]==null&&delete Y[be];ve=si({},X,{params:c(Y)}),ue.params=c(ue.params)}const Me=t.resolve(ve,ue),we=X.hash||"";Me.params=d(f(Me.params));const he=yDe(r,si({},X,{hash:fDe(we),path:Me.path})),Te=o.createHref(he);return si({fullPath:he,hash:we,query:r===OZ?QDe(X.query):X.query||{}},Me,{redirectedFrom:void 0,href:Te})}function m(X){return typeof X=="string"?X9(n,X,l.value.path):si({},X)}function b(X,ue){if(u!==X)return xy(8,{from:ue,to:X})}function w(X){return k(X)}function A(X){return w(si(m(X),{replace:!0}))}function S(X){const ue=X.matched[X.matched.length-1];if(ue&&ue.redirect){const{redirect:ve}=ue;let Me=typeof ve=="function"?ve(X):ve;return typeof Me=="string"&&(Me=Me.includes("?")||Me.includes("#")?Me=m(Me):{path:Me},Me.params={}),si({query:X.query,hash:X.hash,params:Me.path!=null?{}:X.params},Me)}}function k(X,ue){const ve=u=y(X),Me=l.value,we=X.state,he=X.force,Te=X.replace===!0,Y=S(ve);if(Y)return k(si(m(Y),{state:typeof Y=="object"?si({},we,Y.state):we,force:he,replace:Te}),ue||ve);const be=ve;be.redirectedFrom=ue;let De;return!he&&bDe(r,Me,ve)&&(De=xy(16,{to:be,from:Me}),$(Me,Me,!0,!1)),(De?Promise.resolve(De):P(be,Me)).catch(pe=>sf(pe)?sf(pe,2)?pe:Z(pe):H(pe,be,Me)).then(pe=>{if(pe){if(sf(pe,2))return k(si({replace:Te},m(pe.to),{state:typeof pe.to=="object"?si({},we,pe.to.state):we,force:he}),ue||be)}else pe=_(be,Me,!0,Te,we);return O(be,Me,pe),pe})}function M(X,ue){const ve=b(X,ue);return ve?Promise.reject(ve):Promise.resolve()}function D(X){const ue=ie.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(X):X()}function P(X,ue){let ve;const[Me,we,he]=o7e(X,ue);ve=J9(Me.reverse(),"beforeRouteLeave",X,ue);for(const Y of Me)Y.leaveGuards.forEach(be=>{ve.push(ah(be,X,ue))});const Te=M.bind(null,X,ue);return ve.push(Te),te(ve).then(()=>{ve=[];for(const Y of i.list())ve.push(ah(Y,X,ue));return ve.push(Te),te(ve)}).then(()=>{ve=J9(we,"beforeRouteUpdate",X,ue);for(const Y of we)Y.updateGuards.forEach(be=>{ve.push(ah(be,X,ue))});return ve.push(Te),te(ve)}).then(()=>{ve=[];for(const Y of he)if(Y.beforeEnter)if(Rc(Y.beforeEnter))for(const be of Y.beforeEnter)ve.push(ah(be,X,ue));else ve.push(ah(Y.beforeEnter,X,ue));return ve.push(Te),te(ve)}).then(()=>(X.matched.forEach(Y=>Y.enterCallbacks={}),ve=J9(he,"beforeRouteEnter",X,ue,D),ve.push(Te),te(ve))).then(()=>{ve=[];for(const Y of a.list())ve.push(ah(Y,X,ue));return ve.push(Te),te(ve)}).catch(Y=>sf(Y,8)?Y:Promise.reject(Y))}function O(X,ue,ve){s.list().forEach(Me=>D(()=>Me(X,ue,ve)))}function _(X,ue,ve,Me,we){const he=b(X,ue);if(he)return he;const Te=ue===_p,Y=S1?history.state:{};ve&&(Me||Te?o.replace(X.fullPath,si({scroll:Te&&Y&&Y.scroll},we)):o.push(X.fullPath,we)),l.value=X,$(X,ue,ve,Te),Z()}let B;function N(){B||(B=o.listen((X,ue,ve)=>{if(!ee.listening)return;const Me=y(X),we=S(Me);if(we){k(si(we,{replace:!0,force:!0}),Me).catch(j4);return}u=Me;const he=l.value;S1&&TDe(CZ(he.fullPath,ve.delta),M_()),P(Me,he).catch(Te=>sf(Te,12)?Te:sf(Te,2)?(k(si(m(Te.to),{force:!0}),Me).then(Y=>{sf(Y,20)&&!ve.delta&&ve.type===N3.pop&&o.go(-1,!1)}).catch(j4),Promise.reject()):(ve.delta&&o.go(-ve.delta,!1),H(Te,Me,he))).then(Te=>{Te=Te||_(Me,he,!1),Te&&(ve.delta&&!sf(Te,8)?o.go(-ve.delta,!1):ve.type===N3.pop&&sf(Te,20)&&o.go(-1,!1)),O(Me,he,Te)}).catch(j4)}))}let q=x2(),U=x2(),j;function H(X,ue,ve){Z(X);const Me=U.list();return Me.length?Me.forEach(we=>we(X,ue,ve)):console.error(X),Promise.reject(X)}function G(){return j&&l.value!==_p?Promise.resolve():new Promise((X,ue)=>{q.add([X,ue])})}function Z(X){return j||(j=!X,N(),q.list().forEach(([ue,ve])=>X?ve(X):ue()),q.reset()),X}function $(X,ue,ve,Me){const{scrollBehavior:we}=e;if(!S1||!we)return Promise.resolve();const he=!ve&&_De(CZ(X.fullPath,0))||(Me||!ve)&&history.state&&history.state.scroll||null;return Vt().then(()=>we(X,ue,he)).then(Te=>Te&&kDe(Te)).catch(Te=>H(Te,X,ue))}const L=X=>o.go(X);let W;const ie=new Set,ee={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:y,options:e,push:w,replace:A,go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:U.add,isReady:G,install(X){const ue=this;X.component("RouterLink",JDe),X.component("RouterView",ave),X.config.globalProperties.$router=ue,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),S1&&!W&&l.value===_p&&(W=!0,w(o.location).catch(we=>{}));const ve={};for(const we in _p)Object.defineProperty(ve,we,{get:()=>l.value[we],enumerable:!0});X.provide(P_,ue),X.provide(Hj,S_(ve)),X.provide(eL,l);const Me=X.unmount;ie.add(X),X.unmount=function(){ie.delete(X),ie.size<1&&(u=_p,B&&B(),B=null,l.value=_p,W=!1,j=!1),Me()}}};function te(X){return X.reduce((ue,ve)=>ue.then(()=>D(ve)),Promise.resolve())}return ee}function o7e(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>Cy(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Cy(u,l))||o.push(l))}return[n,r,o]}function Hl(){return cn(P_)}function N_(e){return cn(Hj)}const W4=()=>{const e=navigator.userAgent.toLowerCase(),t=["mobile","android","iphone","ipad","ipod","blackberry","windows phone","opera mini"],n=window.innerWidth,r=window.innerHeight,o="ontouchstart"in window||navigator.maxTouchPoints>0,i=t.some(s=>e.includes(s)),a=n<=768||n<=1024&&r<=768;return i||a&&o},i7e={class:"app"},a7e={key:0,class:"loading-container"},s7e={__name:"App",setup(e){const t=Q(!0);return jn(()=>{W4()?setTimeout(()=>{t.value=!1},500):t.value=!1}),(n,r)=>(F(),K("div",i7e,[t.value?(F(),K("div",a7e,r[0]||(r[0]=[x("div",{class:"loading-spinner"},[x("div",{class:"spinner"}),x("div",{class:"loading-text"},"加载中...")],-1)]))):(F(),mt(C(ave),{key:1}))]))}},Wj="/assets/1-BusD92L7.png",sve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW/SURBVHic7Z1NaBtHFMf/b1ZKpMhtLQoWykkWOBCDnZScTC4OzTHgGHoLpb40t5a2h96KMTm0vaSB9uRLEkJPLdgG01Mgvhj3UnAcsMGm8p4i7IsEkSrH3t3Xgz6sr9Xs2vuhlfd3EVqNdp/+zHvz5s0wIthkv8DD2ntjjoS4weAMMzJEGAYwbPdefsMMlQgqCEXWjBUdytr1NKl27kFWG+7mtTlSxBcApm3aGTTWWDeeX0tHnllpLBVwL8/TUHgegy9cC8xQYRgLMiFNBdwv8LB2YswD9I3j1gUKfjI2onxr9mlXAXfynIkovATgpmt2BYtNTafZbvGxQ8CdPGcUwa+IkPHCsqDADFU36E67iKK9YUThpVC8ToiQiSi8tF/glmyjRcC9Q/0XhG7bi5vVceGUhgvX0pSn3tsUQHS6M5amNaC5Bwoxb9Y+pI1qWgegJuBuXpsL454tpnfz2hxQE7A2wwixQV0zquV8+34bFEQiUUoKBfq034YEFe29MScoImb8NiSokBA3BDh4Zah+gcEZwRyOvmeFGRkRpi9nhwjDHXPhEFuEAp6XiN8GWGUrd4LDgtF4n00ryF7133z/LZBQqjC++rWIgybx6kxko/j5yw99sOqUvnfhlfVKV/EA4E3uBC//ee+xRa30vYBbuZOen/+b1zyypDuuuHCpwigfVXtNKqm48YgG5Qr3tMHt5zsu4OJqGcvrR433qaTAD59/gGza/XC7uFrGVu4EubzeuJaIER7cjeP+7bgrz3TUhZfXKy3iAcBBwcCjF+9QMukpTvH4jxKW149axAOA8hFjcfU/HBR0k2+eD0cFfJPrHo8OCgZyLseqje3jnp+b2XZeHBWwVOk+WvYDgeiBfpJK9v4ppSN3QogvifTG9jFyb7u7VCIuMDUetT16JmK9t/kcmuSS58VzAR+9eCeNV7+/JPz29Ue2RByKS3qgS+HFUxfOvdWk4gGnI6cdRiQufFgcBAHz1gO53aA/JHFht9Kovh1EyjaDvszdy0fsioieCpiIW94QKx0U2pG5MIDG9NJJPB1EpsYv4a8fP3bl3jIXBqoJvdNz4751YbuMWBDGbliwgqc9sLlKIyMRExiy4fJW2prVFc+DpwL+vX2Mx3+WLLVNJQWefp+0df9UUvQUqexCLjgwLgwAI5I1Mjd64EAJKMONgsJACWglF3SaAROw988JBZSQkBQUwhgoQdYDAefj4EAJaGX6Z7aKd1YGSkArPdDpyvSACSifzjldmR4oAQG5G4cxUILXi0uezoUnshF899mQpbZ2aoct3/N4cclTAVNJBalb7u5V8XpxaeBc2OvFJU974Mb2MRZXy5bappIKfjrD5kmvF5c8FbBcYVemU81YXVyyU6ztxYVzYcDZxSVHe2CvAG5lltBMfY1DNii0bzS3sriUiDnXbxztgQ/vXel6fSJb3esymY1aFvL+7RgAYKb22o1EjDA1Hm25lr0a6fmMB5/GHXNfAKC9Q8PRqLpV2/hdz/gns1HM3D41ulRhrKxXTPc+D8UFpsYv4e6ty6b3rLd7eO9K15jX/IyhuEAiRkglBSayUUxmox3tz4PjAl40Bm4Q8RoBoOi3EUFGMIcCnhVmqIIIqt+GBBUiqIJg78DBkCYIRcGG8dpvO4IKa8YKVc8J5ILfxgQRTadRMZqkIoA1v40JIGvX06QKAGDdeO63NUGjrlljUrh3aLzCBTsn9awwQ72WEqNA80xEpwXfLAoahtHQqiFg9Tw8fuKLQYGCnzSf7NtS16mNyK8QnmJpxubYiPik+UJLMWE0SUVNp1nmcHbSDjNUTafZ9usd1ZjraVJ1g+4A2PTEsmCw2e0EX0Byknn1UNrwIO5IVCzU8uUOpLXt3bw2ByHmL+AZW2vQaaF+2KwZ4Z8RdOLsnxG0s5PnjAJ9miJiBozh2t9hZOzepw8oMqNIBJVAKhvG68hl8czMVc34H65WJ///e8gfAAAAAElFTkSuQmCC",lve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABQCAYAAACK5CKQAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAATuSURBVHic7Z0xTBtXGMf/77BdAqQycTtYpdJlgIVGxExsxWtBiiJlYKnC0FSiE1mQuhSxdsFZWjVLE3VhiBRFamZDpyy1IYUFD7khqofG8qVBIb3D93U4gw32ge/u3b175n6jfffuz4/37t69sz8zeITq5TSOkotQ2BSIVDCmApQGWNprmwLRQKRBYTosPINpbLJsTnPTAHN7RHqztwjQXTA263ZfqSDaBNhj9snko14271kk/fPXLBhb7XuBnWggrF0k9EKRVC+nYSVXAbbMLZqUUIFlvrjv9O65IqlaVpFKPQVwk3suOdmGYdzudv50FNmUWASgBhhMRjQYRv6sTMVxc7snqsFmkhIVqdRTqpdPzU66iqTa7jri4XweN+3rRouOoU1v9hbB8Gt4mSTGsvLs0xubQLceybDa8VpMdxg7cXVKpD3Zjs+LPcPYbNPZ2R5JdwXEkRzb2ck5sjndeSUukMQoxmirRyZTs+KSSM5RcrElUsEtgVHkRmFTLZEWybj8FQ2I1JZIxlRhQWSHMbX9qq2KyiE/lHa+145xAUsnRBzWrJTw4cXvMPZLPW0/cuc+Ppr6MuBU/ghVJB2+w9tfVmBWehPYvt8xZqUE5VoWA5ks73i+CHVo64XvXEs8S6P2N/QHS2jUqpxS8SE0kYfFDRy93ufSllWrRk5maCLfFze4thc1maGIbNSqsAL4g6MkU/rpT1RkSi8SiIbMvhAJiJfZNyIBsTL7SiQgTmbfiQTEyOxLkUD4MvtWJBCuTClE0uGB533DkilkGc0tRqWEK/kFAMDgzDzMSsm1mMPiBkbuOH4qzzdSiDT3/0SjVj1ZOrv69Q+CE3UizdD+9+GK8NvA85CiRwLA0et96A+WMJRfwMDYBAaueVvYDWpBWBqRgH3hOHiy7quN0e9/Q2JsglOiFlIMbZ5YPmYA53HpRAZFLJITkTlHJsenkRyf9tWG8fIPbs+F3BIJkYmxCaSXf/bdzvDcPeiFJd9PKr0QiaHNrozwa2voKre23BCJHmlWSjh4so7E2Livdhq1KoydLU6p3BEJkYB9LywzkRja/UAskhOxSE5E5hw5ODPnex5pf1zwOadE7oiEyOT4NJc1xsGZeTRq1cs7j+wHItEjzUoJbx+uIPGZv3mkWSkJ6Y1AREQCgLGzJWwyzYN4aHMiFsmJSyfS67OeiwhF5EAmy3WFxytKJrhvQ4TWI48f8ItkcGY+sLZDEzk8dy+Qp3e9khibwPBX3wTWfqjnyI+//dH3baAXkuPTSC//FOgxWhUEarv1sCrtfXjxHP+93IJVq8J6/+7iHTyS+HwCQ/mFUP55bSL3XiH+hqxXtNbQJtLE5ZAcojaRjGnikkiOwvT2Ugw7AqPIjYVnrXNkvZyGlaqLzCMthnH9pEey0Zxul0ONcQXRJsvmtDPzSPZYTBqZsZ11qda3W7yEdXS9orHM5HWg250N0VrocWSFcOKqQ6RdD5EKoQaSEiq0V4LuWmO3eQUvIq5q6sQ2y0zm2l/oumjBRnM6DOM2AC2MVJKhNd2cwnH1h2VzGgwjD2A70Fhysd2t4jPQY2V8u3hxXNAdirnGRnN6t3d7/4kBu4jxKi7bChHRJojWjosSOxH/6IUTQf3oRcdxqmUVydQsFNyCRelm2UTVa3viIB1gOog0MKbBoh0kzEdOQ9iJ/wFAOtbkVcEcNAAAAABJRU5ErkJggg==",uve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXxSURBVHic7Z1faFNXHMe/v5smrraDyIoaiCOZ6zJB0eRJKCsV50sFiwjqW4t9VHB7cAoTuoIPYz7YQfcYp2/zSVqwPmzOoBTcS1ux4GK196KFqGQ00H9bbnLPHpKGmzS3yU1ycu+p9/PW3n8/PpzfOb97zuWEYBKZyd6Mum2AJDoIhgAIAYB5AfKavZcNUMCggCilaZmxbNYV29fqU8zcgKo98UV6YUCSXP0AekwGKRYMMY1lb3/h8d+q5vSKAufURA8RhrDVxW1E0bTscCWRhgJlJnu1TOsQI/ZNw0MTCGI0ste9+1vD4+X++XwtEfB46C5j7BC/0MSBiGbSaXayXP+4QeDztUTA7cZDAIEmxCYSiqriSKlEqfQsj4fuwpFXjoDHQ3dlJhdVG0UCX6lvbzhpawxj7JCWaR3S/6+Qwvky5dfmhyUejOFIp9sXA3QtUJJcQ4ZXOBSRL+sA5AW+SC8MwOn3zNCTd5YTKJGr39JwBCT/VgbKly2y1QGJiMv17w7J5cr2WB2IqGTUbQOSJLX0WR2IqJBEByUwJuI0lD1gCEi5+TyHmiAEJDjlSx0w74Z3YQczkCOwXhyBddJidQCNZGJ+ElPv42j3bMeZ0NfwtXVwfya9zCQY96c0geizcURnxwp/+9o6cDFyFt3+MNfnbgmBpfL0DO7vw+CBE9yeLXwfuJk8AIjOjiH6bJzb84UW+GhhelN560Rnx3An/juXGIQW2O0PozfYVdW5jxamucQgpMDos/FCWl49fK4qicvpVS6xCFfGlPZ5gwdO4OrhcwCACXnS8Lpuf4RLPEIJvPbkZpGkdZGVJPYGu7iNxMKkcKm8dfSjbLl07g12FeTyQAiBRvLWic6O4V7+uF4ib3mAAIV0JXl6vj98Dsfz8u7NT+L4Z9WN0PVga4Fm5K2jl9gMbJvCtcizAlsKrFXe4P6+prY+wIYC65HHc9LACFsJFE0eYJNCeim9ip+nfhNOHmADgUvpVVz48yfMLb4xfa3V8gCLU1h0eYCFAreCPMAigVtFHmBBH9goeXOLr3En/kdV10V2hvCVP4yPPdtNP7MSTX2Va2TL67//A+ZS1d/nYuQszoSOmX5uJZqWwo1O214TEwWd3j3cljeb1gKvPB6taV3Cbn1eKU1rgRcjZ01/KWB3eUATBCZWkkisJOFr68Do0Utod1fXkYsgD2hCCl97chPT7+MYPXoJvrYOzC2+xvkH17GsGq+SlZO3lF6teWnS19aByK5QTddWgrvAU+OXi1pgJYlG0/D1zg+OHv0OkZ2Nl8g1hSfmJ5FYSQLIpfKFB9eRWEmic8en+KVMOm+2htFebw3HqZlwbYHlRl59S3y0MI0rj0cBVLcANPUuXlMcnTv2cCmiAY4CEytJnBq/XPaYXuI9eRLT7+LcV894wU3gxPwkrv110/C4XqLIcHsXjs4af1IW3hlCtz+8aUmzlF7ddKQ2Q7t7O7cU5iJwbvFNYfDQ0+0P43ToWMXRMLGSRP/94YYK/LH7ApdRmItA/bd47e7c98qnQ8eqbgXL6bWGyQOAZXUVb5eTAAeBXPrAU+OXsbvtExwPdtU8jTT1Lo7p9383JJ7wri+5tD6Ag8Dcq9s/3AK2G7b+tEMEbLUuLCISwFJWByEyEkCOwNpRJDAoVkchLAyKBHIE1gxRSmIae2p1HKKiaZkxkpnszWY/WrQ6GBFRVQSlIAVTAGJWByMcDLF9rT5FAgBNy962Oh7R0FjOWWH3tpeZxEN8ePuk1oryeYsvCOjeRBjDsHXxiIWmZQuuCgI73b4YMRqxJiRxIEYj+p19i/ZQlZns1bTWh84uluUhopm9rt1FH9kUTSYEKZhKp9lJwCmuy6Dk3RSxYTZmX6tPUVUcIaKZ5sRlf4hoptwOvkCFncxfqW9vOBtx04jUsjacr5c3Hq90g/zmtEP48PbYijGG4fXNZo0w92ME5OoHbflaMaZpDfwxglKeryUCLle2R5Ja+sCYN799XsDsfayHpQBK5X4OAwrT2NMW93+3jFLViP8B4NqjdRi5iMEAAAAASUVORK5CYII=",cve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABQCAYAAACK5CKQAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZcSURBVHic7Z09TBtJFMf/4y8gXiJDQUyDTI4KiYRrUJAoQKJIdb5IV12KUFFdcVyVLoruilQHxVVX3CUFaXNclYIECiSiqxyQUvnAovFHgX14N8Di9bvC3sU2609mdrzBPwkJ2d6Z57/fzLx5MzvL0CHZQwp5+rDk9eI+FREhhggDQij9uQoCEoyQAEOOCBsGsD00yhLtlMHarfQkSUuM4QmA+XavdRWEbQJe3R5lL1v5eMtC5pM0D4Zn+NIFrIGABAjPmwnaVMjsIYV8A3gG4EdexrmUtcEwW6n3ZkMhs0mK+BjeAJjmbpY7iRUIj+z6z7pCZpMU8TJsMSAi0jK3QUDCICzUiumpd4GP4U1PxKswIOJjeJM9pKroxFbIfIpW0WvOjZgujxsWV5p2Obz50zmbXAxhYXCUbQN2Hsmqle7RgAqtqoQ8SdJSr19si/mTJC0BNUIy4IkUc1xMeZZ32UeWY8ZDeSa5l8IphiyP9N6wqR9PPH1YsoRkDFGZxrgZrxf3L/tIcl/6q1ugIiKWkMR6o3WnEKsQshf2dA4DQnXn2j3aoickL3yyDWgHXSOoaQO6WgQABBQPAkEG5Y5XsmUuEPJo9xxHH3QcHxRwfFCo+7nwlB/hKT/GZvswfNf5r2XNbPIpIsdrb0B88wyxdQ1qptj2teEpP6YfBxGe8guwzJ6uE1JNG3j7NNeRgLWEp/yYWxl0pOl3lZCxdQ2x15+5lqmMeDD3023h3tk1QooQsZKZZQWT0QFh5XdF+PPP76pQEc06jnbPhZUvXchPG6f4tHHqSF07q3moaUNI2VKFVNMGYuuaY/XpGuHt05yQsqUKubOah6452zWrmSLim2fcy5UmZGr/Aqn9Cyl1i2gF0oQU2fE3Q80UkdrTuZYpTUgRzaut+t/x/SGlCHl8UHC8b6yFt0c6Ors/PihAV4tcpn/XRc0UoWuEQLDtvba2OOaRatrA+5//Q0DxCIvl2oWnHY4IaSYidI0wfNfXFR4JwMpr8sARId//cgI1U7SaEa/mdF149tPChYxvnlkJ2YBSqq5bhOSZXhMuZGXwazalblgaAPj+oEKFPNo9r+oPzf+VEem5EigjHvd45NGHq7GamjYQvheQLmb4XoBrecI9shbTK3l/kXaZWOznWp4wIXWNbEdFc2o49kCekIEg4770IEzI43/tMzuml47N9jm6ylfJzLLCvUzHOypdI8sr51YGna4e4Sk/92YNSEpaxNY16BpBuePF9Pe3HK1b1AKYMCEbhRZqpohPf5UWu5xeyBcVwwoVslHAG3v92cqQz60MOhYONdr2ch2EWt9sD87OrydQ0waUO15889uwI54pKqEsVMix2b6G76uZYml7StpAIMjw8EVI6CI+AGHrREKFnFjsbzqfNcU0v+DMsoLv/riedyojnoZdBe/sOODAlpV2tqJMRgcwGR2wBoTU/gVSezrim2dNc5jDd31WaGN2KWraQHzz7Mr1k9EB7rGkcCF1jfD3D8ctJ3OVEQ8mv72FsQeBqhFWTRvWWo+Z2Q4oHgyPezH8lb+p56f2L3C0e4745hnGZvu4x7CObKLaWc131MmbHmZmauyETe1fQNcIM8uK1DynI4tfna6N2G0iCARZ1RxeGfHg4YuQ9GSxI8Ebz5HSTsRuSBQL90hRAfBkdADTj4PSPdFEuJC8l15l7A9vBeFC2vVxE4v9Vhottacj/u4cqT297shu3rEwsdjfFc3YDsc80rx1ozZID98LVGXL1bRRmul00T00rSA8/FHTBtRMseuaIm8qhczChSftdQuXtxkDYvYE3wAISFzeZkxISLTF1TCqFNLTE7JjGHKWkIaBjzJtcTNE2Lg8rqZ0TmRWpkFupUAYtzxyaJzlAGzLM8elUOk83qqkBRFeybLHrRBKml2Z8edTtIXeYUotQUDidpiNA3ZpNMJzxy1yKxVaXRGyfB7impP2uJS1ypOgbZN55RF8C71TTesRGwyzrytfsM2QD42zXIHwiNAL0mshIFEgPKp9ve5Sw9AoSxiEBQAxoZa5i5jdic9AkzWboVGWKLtwr88E1gqn9iICbTxi4CRJS2B4dgPPUNsG4bl5KHE9OnvoBfAE7IuPNbeJBDz0opZskiJeYJ4xREEIlR/DEum0PInkCMgxQoJ5kDAMfCye42V5ytwy/wMbVofitEYl7gAAAABJRU5ErkJggg==",iE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAP6SURBVHic7ZpPctpIFIe/bqSsmRvIJxjnBvgEQetgD6oxVHllcwLgBPGsqDKeEjGedWdOEHKCcAPrCCynSkI9C4SDDdggWojE+nb86X7v/fp1q/W6oaCgoKDg7SL2Zag/VBUBvwNVoIymjMABQBMgmAABMIol35of3fE+/MpUgJ6vHKtEVUgu0UmwmzPRcfyXFctrz3MnWfgHGQrQH6qOgLaBrjIVwrgAPV85ts3XFCP+GpNY02qeuQOTnUqTnfWHqmNbPGQQPEBZCvy/79Unk50aywCDKb8J4/NT972JjoxkwM2dqu8xeIDj23vlm+ho5wzo+cqxLb4DZQP+bIUQXP9Zc1u79LFzBtgWPjkED6A1V/2hquzSx04C3NypOrCTA7siBL7vq9QDkFoA31dlKTC6IqdC40QWV2mbpxKgP1SVqZ3PvF+FEPyRuu0mf/J9VQ5LVOXMUCWtsSyJNV6aTZL10o89XznvbC6nmro8kNFeRzI4g23brc2AmztVl5J2Rru6TAgjji48N9imzVIG+L4qxzZtrblCG/NtL5RKVNgyC5YWwamF0jr9qroFX8KIo1LEb4jtU3cVUm6/G30yBW7vlY+mbsKZV6wOzmuul5HtEUIPSqH4d5PX50cB+nfqSuzjub4i+DmGB2ACjDV0G6fuaL07zOb91OKBrFf6F4Kfk1EWjuKIVtNbLrNJgKnNJw4geIDzmuuZWhMWqEiL7/2h6iy5tZfR3zD4RbJaj5Ip0Zl/llNbf+DAgofMMgEB7cVMkCAqpo0sWFsZ/KpixqrvshSh5ysHQKI5Nm0gsbI++FWpramvFQG+mHbPtvkKMwEySf9SyFKl5tV5vUaEMFrua2c0zs0/6lg+ns4Y5r9n68rGi9oaEbJAai4tZhsG41lgW/g9X3mld5RlTBtNdePGmvrtUJXDiFbSPpsNmsaxmJ3HZbEOVGyLB+LU7au2RXWH9q+jcSSzDHibCBwZaz7n7UduaAI5nTLK24/cEExkUkEZ5exKPgjGEiCWGTxnfwK05rMEaH50x1lsOQ+ciRUlGQAQhnQRBDk6tFe0put57uRRgAvPDcKQkzciwqhx5l7Ds6LohecGcYjLr7w3EARhxONL2lJVuOm54zDiPb/ik0EQhCEni2cHK0+Gkj+cJIXSNgd+KrQJGrqN2o9K0JwXD0cbZ+51KeJIx3EX2Mu9PaMIAgSDMOJosQy2yItngwBJbb0DdJLbIB8QHKNx0DgIyhxChvy4bDnRcfwNKUeN2vpy+Jy93RR9zu1QPTl4Oz91c/HF6DW5n5FCgLwdyJtCgLwdyJtCgLwdyJv8BHj61pnby1d+AmhawCQRYuvD04KCgoKCgt35H0DpfMjXqkFEAAAAAElFTkSuQmCC",dve="/assets/15-5aSMwcYf.png",fve="/assets/16-CdNGEq1M.png";function pve(e,t){return function(){return e.apply(t,arguments)}}const{toString:l7e}=Object.prototype,{getPrototypeOf:Vj}=Object,{iterator:R_,toStringTag:hve}=Symbol,B_=(e=>t=>{const n=l7e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vc=e=>(e=e.toLowerCase(),t=>B_(t)===e),L_=e=>t=>typeof t===e,{isArray:Eb}=Array,R3=L_("undefined");function mC(e){return e!==null&&!R3(e)&&e.constructor!==null&&!R3(e.constructor)&&_l(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gve=Vc("ArrayBuffer");function u7e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gve(e.buffer),t}const c7e=L_("string"),_l=L_("function"),vve=L_("number"),yC=e=>e!==null&&typeof e=="object",d7e=e=>e===!0||e===!1,dS=e=>{if(B_(e)!=="object")return!1;const t=Vj(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(hve in e)&&!(R_ in e)},f7e=e=>{if(!yC(e)||mC(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},p7e=Vc("Date"),h7e=Vc("File"),g7e=Vc("Blob"),v7e=Vc("FileList"),m7e=e=>yC(e)&&_l(e.pipe),y7e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_l(e.append)&&((t=B_(e))==="formdata"||t==="object"&&_l(e.toString)&&e.toString()==="[object FormData]"))},b7e=Vc("URLSearchParams"),[w7e,A7e,C7e,x7e]=["ReadableStream","Request","Response","Headers"].map(Vc),S7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bC(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Eb(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(mC(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function mve(e,t){if(mC(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yve=e=>!R3(e)&&e!==Pg;function tL(){const{caseless:e}=yve(this)&&this||{},t={},n=(r,o)=>{const i=e&&mve(t,o)||o;dS(t[i])&&dS(r)?t[i]=tL(t[i],r):dS(r)?t[i]=tL({},r):Eb(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&bC(arguments[r],n);return t}const E7e=(e,t,n,{allOwnKeys:r}={})=>(bC(t,(o,i)=>{n&&_l(o)?e[i]=pve(o,n):e[i]=o},{allOwnKeys:r}),e),k7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T7e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_7e=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Vj(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},D7e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},I7e=e=>{if(!e)return null;if(Eb(e))return e;let t=e.length;if(!vve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},O7e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vj(Uint8Array)),M7e=(e,t)=>{const r=(e&&e[R_]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},P7e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},N7e=Vc("HTMLFormElement"),R7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),LZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B7e=Vc("RegExp"),bve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};bC(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},L7e=e=>{bve(e,(t,n)=>{if(_l(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_l(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},F7e=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Eb(e)?r(e):r(String(e).split(t)),n},U7e=()=>{},$7e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function z7e(e){return!!(e&&_l(e.append)&&e[hve]==="FormData"&&e[R_])}const j7e=e=>{const t=new Array(10),n=(r,o)=>{if(yC(r)){if(t.indexOf(r)>=0)return;if(mC(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Eb(r)?[]:{};return bC(r,(a,s)=>{const l=n(a,o+1);!R3(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},H7e=Vc("AsyncFunction"),W7e=e=>e&&(yC(e)||_l(e))&&_l(e.then)&&_l(e.catch),wve=((e,t)=>e?setImmediate:t?((n,r)=>(Pg.addEventListener("message",({source:o,data:i})=>{o===Pg&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_l(Pg.postMessage)),V7e=typeof queueMicrotask<"u"?queueMicrotask.bind(Pg):typeof process<"u"&&process.nextTick||wve,q7e=e=>e!=null&&_l(e[R_]),hn={isArray:Eb,isArrayBuffer:gve,isBuffer:mC,isFormData:y7e,isArrayBufferView:u7e,isString:c7e,isNumber:vve,isBoolean:d7e,isObject:yC,isPlainObject:dS,isEmptyObject:f7e,isReadableStream:w7e,isRequest:A7e,isResponse:C7e,isHeaders:x7e,isUndefined:R3,isDate:p7e,isFile:h7e,isBlob:g7e,isRegExp:B7e,isFunction:_l,isStream:m7e,isURLSearchParams:b7e,isTypedArray:O7e,isFileList:v7e,forEach:bC,merge:tL,extend:E7e,trim:S7e,stripBOM:k7e,inherits:T7e,toFlatObject:_7e,kindOf:B_,kindOfTest:Vc,endsWith:D7e,toArray:I7e,forEachEntry:M7e,matchAll:P7e,isHTMLForm:N7e,hasOwnProperty:LZ,hasOwnProp:LZ,reduceDescriptors:bve,freezeMethods:L7e,toObjectSet:F7e,toCamelCase:R7e,noop:U7e,toFiniteNumber:$7e,findKey:mve,global:Pg,isContextDefined:yve,isSpecCompliantForm:z7e,toJSONObject:j7e,isAsyncFn:H7e,isThenable:W7e,setImmediate:wve,asap:V7e,isIterable:q7e};function yo(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}hn.inherits(yo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hn.toJSONObject(this.config),code:this.code,status:this.status}}});const Ave=yo.prototype,Cve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cve[e]={value:e}});Object.defineProperties(yo,Cve);Object.defineProperty(Ave,"isAxiosError",{value:!0});yo.from=(e,t,n,r,o,i)=>{const a=Object.create(Ave);return hn.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yo.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const G7e=null;function nL(e){return hn.isPlainObject(e)||hn.isArray(e)}function xve(e){return hn.endsWith(e,"[]")?e.slice(0,-2):e}function FZ(e,t,n){return e?e.concat(t).map(function(o,i){return o=xve(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function K7e(e){return hn.isArray(e)&&!e.some(nL)}const Q7e=hn.toFlatObject(hn,{},null,function(t){return/^is[A-Z]/.test(t)});function F_(e,t,n){if(!hn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=hn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!hn.isUndefined(g[h])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&hn.isSpecCompliantForm(t);if(!hn.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(hn.isDate(v))return v.toISOString();if(hn.isBoolean(v))return v.toString();if(!l&&hn.isBlob(v))throw new yo("Blob is not supported. Use a Buffer instead.");return hn.isArrayBuffer(v)||hn.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,h,g){let y=v;if(v&&!g&&typeof v=="object"){if(hn.endsWith(h,"{}"))h=r?h:h.slice(0,-2),v=JSON.stringify(v);else if(hn.isArray(v)&&K7e(v)||(hn.isFileList(v)||hn.endsWith(h,"[]"))&&(y=hn.toArray(v)))return h=xve(h),y.forEach(function(b,w){!(hn.isUndefined(b)||b===null)&&t.append(a===!0?FZ([h],w,i):a===null?h:h+"[]",u(b))}),!1}return nL(v)?!0:(t.append(FZ(g,h,i),u(v)),!1)}const c=[],f=Object.assign(Q7e,{defaultVisitor:d,convertValue:u,isVisitable:nL});function p(v,h){if(!hn.isUndefined(v)){if(c.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(v),hn.forEach(v,function(y,m){(!(hn.isUndefined(y)||y===null)&&o.call(t,y,hn.isString(m)?m.trim():m,h,f))===!0&&p(y,h?h.concat(m):[m])}),c.pop()}}if(!hn.isObject(e))throw new TypeError("data must be an object");return p(e),t}function UZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function qj(e,t){this._pairs=[],e&&F_(e,this,t)}const Sve=qj.prototype;Sve.append=function(t,n){this._pairs.push([t,n])};Sve.toString=function(t){const n=t?function(r){return t.call(this,r,UZ)}:UZ;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Y7e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Eve(e,t,n){if(!t)return e;const r=n&&n.encode||Y7e;hn.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=hn.isURLSearchParams(t)?t.toString():new qj(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $Z{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){hn.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z7e=typeof URLSearchParams<"u"?URLSearchParams:qj,X7e=typeof FormData<"u"?FormData:null,J7e=typeof Blob<"u"?Blob:null,e9e={isBrowser:!0,classes:{URLSearchParams:Z7e,FormData:X7e,Blob:J7e},protocols:["http","https","file","blob","url","data"]},Gj=typeof window<"u"&&typeof document<"u",rL=typeof navigator=="object"&&navigator||void 0,t9e=Gj&&(!rL||["ReactNative","NativeScript","NS"].indexOf(rL.product)<0),n9e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r9e=Gj&&window.location.href||"http://localhost",o9e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gj,hasStandardBrowserEnv:t9e,hasStandardBrowserWebWorkerEnv:n9e,navigator:rL,origin:r9e},Symbol.toStringTag,{value:"Module"})),Fs={...o9e,...e9e};function i9e(e,t){return F_(e,new Fs.classes.URLSearchParams,{visitor:function(n,r,o,i){return Fs.isNode&&hn.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function a9e(e){return hn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function s9e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Tve(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&hn.isArray(o)?o.length:a,l?(hn.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!hn.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&hn.isArray(o[a])&&(o[a]=s9e(o[a])),!s)}if(hn.isFormData(e)&&hn.isFunction(e.entries)){const n={};return hn.forEachEntry(e,(r,o)=>{t(a9e(r),o,n,0)}),n}return null}function l9e(e,t,n){if(hn.isString(e))try{return(t||JSON.parse)(e),hn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wC={transitional:kve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=hn.isObject(t);if(i&&hn.isHTMLForm(t)&&(t=new FormData(t)),hn.isFormData(t))return o?JSON.stringify(Tve(t)):t;if(hn.isArrayBuffer(t)||hn.isBuffer(t)||hn.isStream(t)||hn.isFile(t)||hn.isBlob(t)||hn.isReadableStream(t))return t;if(hn.isArrayBufferView(t))return t.buffer;if(hn.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return i9e(t,this.formSerializer).toString();if((s=hn.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return F_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),l9e(t)):t}],transformResponse:[function(t){const n=this.transitional||wC.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(hn.isResponse(t)||hn.isReadableStream(t))return t;if(t&&hn.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yo.from(s,yo.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fs.classes.FormData,Blob:Fs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hn.forEach(["delete","get","head","post","put","patch"],e=>{wC.headers[e]={}});const u9e=hn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),c9e=e=>{const t={};let n,r,o;return e&&e.split(`
- `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&u9e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zZ=Symbol("internals");function S2(e){return e&&String(e).trim().toLowerCase()}function fS(e){return e===!1||e==null?e:hn.isArray(e)?e.map(fS):String(e)}function d9e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const f9e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eI(e,t,n,r,o){if(hn.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!hn.isString(t)){if(hn.isString(r))return t.indexOf(r)!==-1;if(hn.isRegExp(r))return r.test(t)}}function p9e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function h9e(e,t){const n=hn.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Dl=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const d=S2(l);if(!d)throw new Error("header name must be a non-empty string");const c=hn.findKey(o,d);(!c||o[c]===void 0||u===!0||u===void 0&&o[c]!==!1)&&(o[c||l]=fS(s))}const a=(s,l)=>hn.forEach(s,(u,d)=>i(u,d,l));if(hn.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(hn.isString(t)&&(t=t.trim())&&!f9e(t))a(c9e(t),n);else if(hn.isObject(t)&&hn.isIterable(t)){let s={},l,u;for(const d of t){if(!hn.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(l=s[u])?hn.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=S2(t),t){const r=hn.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return d9e(o);if(hn.isFunction(n))return n.call(this,o,r);if(hn.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=S2(t),t){const r=hn.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||eI(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=S2(a),a){const s=hn.findKey(r,a);s&&(!n||eI(r,r[s],s,n))&&(delete r[s],o=!0)}}return hn.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||eI(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return hn.forEach(this,(o,i)=>{const a=hn.findKey(r,i);if(a){n[a]=fS(o),delete n[i];return}const s=t?p9e(i):String(i).trim();s!==i&&delete n[i],n[s]=fS(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return hn.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&hn.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zZ]=this[zZ]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=S2(a);r[s]||(h9e(o,a),r[s]=!0)}return hn.isArray(t)?t.forEach(i):i(t),this}};Dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);hn.reduceDescriptors(Dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});hn.freezeMethods(Dl);function tI(e,t){const n=this||wC,r=t||n,o=Dl.from(r.headers);let i=r.data;return hn.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _ve(e){return!!(e&&e.__CANCEL__)}function kb(e,t,n){yo.call(this,e??"canceled",yo.ERR_CANCELED,t,n),this.name="CanceledError"}hn.inherits(kb,yo,{__CANCEL__:!0});function Dve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yo("Request failed with status code "+n.status,[yo.ERR_BAD_REQUEST,yo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function g9e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function v9e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let c=i,f=0;for(;c!==o;)f+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const p=d&&u-d;return p?Math.round(f*1e3/p):void 0}}function m9e(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),c=d-n;c>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-c)))},()=>o&&a(o)]}const aE=(e,t,n=3)=>{let r=0;const o=v9e(50,250);return m9e(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=s;r=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},jZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},HZ=e=>(...t)=>hn.asap(()=>e(...t)),y9e=Fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Fs.origin),Fs.navigator&&/(msie|trident)/i.test(Fs.navigator.userAgent)):()=>!0,b9e=Fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];hn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),hn.isString(r)&&a.push("path="+r),hn.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w9e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function A9e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ive(e,t,n){let r=!w9e(t);return e&&(r||n==!1)?A9e(e,t):t}const WZ=e=>e instanceof Dl?{...e}:e;function Sv(e,t){t=t||{};const n={};function r(u,d,c,f){return hn.isPlainObject(u)&&hn.isPlainObject(d)?hn.merge.call({caseless:f},u,d):hn.isPlainObject(d)?hn.merge({},d):hn.isArray(d)?d.slice():d}function o(u,d,c,f){if(hn.isUndefined(d)){if(!hn.isUndefined(u))return r(void 0,u,c,f)}else return r(u,d,c,f)}function i(u,d){if(!hn.isUndefined(d))return r(void 0,d)}function a(u,d){if(hn.isUndefined(d)){if(!hn.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,c){if(c in t)return r(u,d);if(c in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,d,c)=>o(WZ(u),WZ(d),c,!0)};return hn.forEach(Object.keys({...e,...t}),function(d){const c=l[d]||o,f=c(e[d],t[d],d);hn.isUndefined(f)&&c!==s||(n[d]=f)}),n}const Ove=e=>{const t=Sv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Dl.from(a),t.url=Eve(Ive(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(hn.isFormData(n)){if(Fs.hasStandardBrowserEnv||Fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Fs.hasStandardBrowserEnv&&(r&&hn.isFunction(r)&&(r=r(t)),r||r!==!1&&y9e(t.url))){const u=o&&i&&b9e.read(i);u&&a.set(o,u)}return t},C9e=typeof XMLHttpRequest<"u",x9e=C9e&&function(e){return new Promise(function(n,r){const o=Ove(e);let i=o.data;const a=Dl.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,d,c,f,p,v;function h(){p&&p(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function y(){if(!g)return;const b=Dl.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};Dve(function(k){n(k),h()},function(k){r(k),h()},A),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new yo("Request aborted",yo.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new yo("Network Error",yo.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||kve;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new yo(w,A.clarifyTimeoutError?yo.ETIMEDOUT:yo.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&hn.forEach(a.toJSON(),function(w,A){g.setRequestHeader(A,w)}),hn.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),s&&s!=="json"&&(g.responseType=o.responseType),u&&([f,v]=aE(u,!0),g.addEventListener("progress",f)),l&&g.upload&&([c,p]=aE(l),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(d=b=>{g&&(r(!b||b.type?new kb(null,e,g):b),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const m=g9e(o.url);if(m&&Fs.protocols.indexOf(m)===-1){r(new yo("Unsupported protocol "+m+":",yo.ERR_BAD_REQUEST,e));return}g.send(i||null)})},S9e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof yo?d:new kb(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new yo(`timeout ${t} of ms exceeded`,yo.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>hn.asap(s),l}},E9e=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},k9e=async function*(e,t){for await(const n of T9e(e))yield*E9e(n,t)},T9e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},VZ=(e,t,n,r)=>{const o=k9e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){s(),l.close();return}let c=d.byteLength;if(n){let f=i+=c;n(f)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},U_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Mve=U_&&typeof ReadableStream=="function",_9e=U_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},D9e=Mve&&Pve(()=>{let e=!1;const t=new Request(Fs.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qZ=64*1024,oL=Mve&&Pve(()=>hn.isReadableStream(new Response("").body)),sE={stream:oL&&(e=>e.body)};U_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sE[t]&&(sE[t]=hn.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new yo(`Response type '${t}' is not supported`,yo.ERR_NOT_SUPPORT,r)})})})(new Response);const I9e=async e=>{if(e==null)return 0;if(hn.isBlob(e))return e.size;if(hn.isSpecCompliantForm(e))return(await new Request(Fs.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(hn.isArrayBufferView(e)||hn.isArrayBuffer(e))return e.byteLength;if(hn.isURLSearchParams(e)&&(e=e+""),hn.isString(e))return(await _9e(e)).byteLength},O9e=async(e,t)=>{const n=hn.toFiniteNumber(e.getContentLength());return n??I9e(t)},M9e=U_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:d,withCredentials:c="same-origin",fetchOptions:f}=Ove(e);u=u?(u+"").toLowerCase():"text";let p=S9e([o,i&&i.toAbortSignal()],a),v;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&D9e&&n!=="get"&&n!=="head"&&(g=await O9e(d,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(hn.isFormData(r)&&(S=A.headers.get("content-type"))&&d.setContentType(S),A.body){const[k,M]=jZ(g,aE(HZ(l)));r=VZ(A.body,qZ,k,M)}}hn.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?c:void 0});let m=await fetch(v,f);const b=oL&&(u==="stream"||u==="response");if(oL&&(s||b&&h)){const A={};["status","statusText","headers"].forEach(D=>{A[D]=m[D]});const S=hn.toFiniteNumber(m.headers.get("content-length")),[k,M]=s&&jZ(S,aE(HZ(s),!0))||[];m=new Response(VZ(m.body,qZ,k,()=>{M&&M(),h&&h()}),A)}u=u||"text";let w=await sE[hn.findKey(sE,u)||"text"](m,e);return!b&&h&&h(),await new Promise((A,S)=>{Dve(A,S,{data:w,headers:Dl.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(y){throw h&&h(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new yo("Network Error",yo.ERR_NETWORK,e,v),{cause:y.cause||y}):yo.from(y,y&&y.code,e,v)}}),iL={http:G7e,xhr:x9e,fetch:M9e};hn.forEach(iL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const GZ=e=>`- ${e}`,P9e=e=>hn.isFunction(e)||e===null||e===!1,Nve={getAdapter:e=>{e=hn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!P9e(n)&&(r=iL[(a=String(n)).toLowerCase()],r===void 0))throw new yo(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
- `+i.map(GZ).join(`
- `):" "+GZ(i[0]):"as no adapter specified";throw new yo("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:iL};function nI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kb(null,e)}function KZ(e){return nI(e),e.headers=Dl.from(e.headers),e.data=tI.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nve.getAdapter(e.adapter||wC.adapter)(e).then(function(r){return nI(e),r.data=tI.call(e,e.transformResponse,r),r.headers=Dl.from(r.headers),r},function(r){return _ve(r)||(nI(e),r&&r.response&&(r.response.data=tI.call(e,e.transformResponse,r.response),r.response.headers=Dl.from(r.response.headers))),Promise.reject(r)})}const Rve="1.11.0",$_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const QZ={};$_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Rve+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new yo(o(a," has been removed"+(n?" in "+n:"")),yo.ERR_DEPRECATED);return n&&!QZ[a]&&(QZ[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};$_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function N9e(e,t,n){if(typeof e!="object")throw new yo("options must be an object",yo.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new yo("option "+i+" must be "+l,yo.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yo("Unknown option "+i,yo.ERR_BAD_OPTION)}}const pS={assertOptions:N9e,validators:$_},td=pS.validators;let Vg=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $Z,response:new $Z}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sv(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&pS.assertOptions(r,{silentJSONParsing:td.transitional(td.boolean),forcedJSONParsing:td.transitional(td.boolean),clarifyTimeoutError:td.transitional(td.boolean)},!1),o!=null&&(hn.isFunction(o)?n.paramsSerializer={serialize:o}:pS.assertOptions(o,{encode:td.function,serialize:td.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),pS.assertOptions(n,{baseUrl:td.spelling("baseURL"),withXsrfToken:td.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&hn.merge(i.common,i[n.method]);i&&hn.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Dl.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,c=0,f;if(!l){const v=[KZ.bind(this),void 0];for(v.unshift(...s),v.push(...u),f=v.length,d=Promise.resolve(n);c<f;)d=d.then(v[c++],v[c++]);return d}f=s.length;let p=n;for(c=0;c<f;){const v=s[c++],h=s[c++];try{p=v(p)}catch(g){h.call(this,g);break}}try{d=KZ.call(this,p)}catch(v){return Promise.reject(v)}for(c=0,f=u.length;c<f;)d=d.then(u[c++],u[c++]);return d}getUri(t){t=Sv(this.defaults,t);const n=Ive(t.baseURL,t.url,t.allowAbsoluteUrls);return Eve(n,t.params,t.paramsSerializer)}};hn.forEach(["delete","get","head","options"],function(t){Vg.prototype[t]=function(n,r){return this.request(Sv(r||{},{method:t,url:n,data:(r||{}).data}))}});hn.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Sv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Vg.prototype[t]=n(),Vg.prototype[t+"Form"]=n(!0)});let R9e=class Bve{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new kb(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Bve(function(o){t=o}),cancel:t}}};function B9e(e){return function(n){return e.apply(null,n)}}function L9e(e){return hn.isObject(e)&&e.isAxiosError===!0}const aL={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(aL).forEach(([e,t])=>{aL[t]=e});function Lve(e){const t=new Vg(e),n=pve(Vg.prototype.request,t);return hn.extend(n,Vg.prototype,t,{allOwnKeys:!0}),hn.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lve(Sv(e,o))},n}const da=Lve(wC);da.Axios=Vg;da.CanceledError=kb;da.CancelToken=R9e;da.isCancel=_ve;da.VERSION=Rve;da.toFormData=F_;da.AxiosError=yo;da.Cancel=da.CanceledError;da.all=function(t){return Promise.all(t)};da.spread=B9e;da.isAxiosError=L9e;da.mergeConfig=Sv;da.AxiosHeaders=Dl;da.formToJSON=e=>Tve(hn.isHTMLForm(e)?new FormData(e):e);da.getAdapter=Nve.getAdapter;da.HttpStatusCode=aL;da.default=da;const{Axios:Ifn,AxiosError:Ofn,CanceledError:Mfn,isCancel:Pfn,CancelToken:Nfn,VERSION:Rfn,all:Bfn,Cancel:Lfn,isAxiosError:Ffn,spread:Ufn,toFormData:$fn,AxiosHeaders:zfn,HttpStatusCode:jfn,formToJSON:Hfn,getAdapter:Wfn,mergeConfig:Vfn}=da,z_="shudao_refresh_token",Kj="shudao_token_type";function t0(){return localStorage.getItem(z_)}function F9e(){return localStorage.getItem(z_)}function Sy(){return localStorage.getItem(Kj)||"bearer"}function Fve(){return localStorage.getItem("shudao_username")||null}function U9e(e,t="bearer"){localStorage.setItem(z_,e),localStorage.setItem(Kj,t)}function hS(){localStorage.removeItem(z_),localStorage.removeItem(Kj),localStorage.removeItem("shudao_username")}const io=da.create({baseURL:window.location.origin+"/apiv1",timeout:6e5});async function $9e(e,t){try{if(e&&(e.includes("/tracking/")||e.includes("/auth/"))){console.log("ℹ️ 跳过埋点接口的埋点记录:",e);return}const n={api_path:e,method:t||"GET",extra_data:""};console.log("📊 记录埋点:",n);const r=t0(),o={"Content-Type":"application/json"};r&&(o.Authorization=`Bearer ${r}`),fetch(window.location.origin+"/apiv1/tracking/record",{method:"POST",headers:o,body:JSON.stringify(n)}).then(i=>{i.ok?console.log("✅ 埋点记录成功"):console.warn("⚠️ 埋点记录返回非200状态码:",i.status)}).catch(i=>{console.error("❌ 埋点记录失败:",i)})}catch(n){console.error("❌ 埋点记录异常:",n)}}io.interceptors.request.use(e=>{console.log(e,"config");const t=t0(),n=Sy();t&&(e.headers.Authorization=`${n.charAt(0).toUpperCase()+n.slice(1)} ${t}`,console.log("🔑 已添加 Authorization 头:",`${n} ${t.substring(0,50)}...`)),e.method==="get"?e.headers["Content-Type"]="application/x-www-form-urlencoded":e.method==="post"&&(e.data instanceof FormData||(e.headers["Content-Type"]="application/json"));const r=e.baseURL||window.location.origin+"/apiv1",o=e.url,i=o.startsWith("http")?o:r.replace(/\/$/,"")+(o.startsWith("/")?o:"/"+o),a=(e.method||"GET").toUpperCase();return $9e(i,a),e},e=>Promise.reject(e));io.interceptors.response.use(e=>e.data.statusCode===200||e.data.code===200?e.data:Promise.reject(e.data),e=>{if(e.response&&e.response.status===401)return console.error("❌ Token 过期或无效,需要重新登录"),hS(),window.location.href="/#/404?reason=token_expired",Promise.reject(e);let t="";switch(e.response?.status){case 401:t="TOKEN过期或无效";break;case 403:t="无权访问";break;case 404:t="请求路径错误";break;case 500:t="服务器出错";break;default:t="未知错误";break}return console.error("📡 请求错误:",t,e.response?.status),Promise.reject(e)});const Bn={getRecommendQuestion:e=>io.get("/recommend_question",{params:e}),submitFeedback:e=>io.post("/submit_feedback",e),getPolicyFile:e=>io.get("/get_policy_file",{params:e}),sendDeepseekMessage:e=>io.post("/send_deepseek_message",e),saveExam:e=>io.post("/save_exam",e),getExamHistory:()=>io.get("/get_exam_history"),getExamById:e=>io.get(`/get_exam/${e}`),uploadOss:e=>io.post("/oss/upload",e),getFunctionCard:e=>io.get("/get_function_card",{params:e}),getHotQuestion:e=>io.get("/get_hot_question",{params:e}),getHistoryRecord:e=>io.get("/get_history_record",{params:e}),generatePPTOutline:e=>io.post("/send_deepseek_message",e),uploadImage:e=>io.post("/oss/shudao/upload_image",e),uploadJson:e=>io.post("/oss/shudao/upload_json",e),saveQuestionModification:e=>io.post("/save_question_modification",e),reModifyQuestion:e=>io.post("/re_modify_question",e),reProduceSingleQuestion:e=>io.post("/re_produce_single_question",e),hazardDetection:e=>io.post("/hazard",e),likeAndDislike:e=>io.post("/like_and_dislike",e),getHazardHistory:e=>io.get("/get_history_recognition_record",{params:e}),getRecognitionRecordDetail:e=>io.get("/get_recognition_record_detail",{params:e}),getFileLink:e=>io.get("/get_file_link",{params:e}),getUserRecommendQuestion:e=>io.get("/get_user_recommend_question",{params:e}),deleteConversation:e=>io.post("/delete_conversation",e),deleteHistoryRecord:e=>io.post("/delete_history_record",e),deleteRecognitionRecord:e=>io.post("/delete_recognition_record",e),saveStep:e=>io.post("/save_step",e),getPPTJson:e=>io.post("/get_ppt_json",e),getThirdSceneExampleImage:e=>io.get("/get_third_scene_example_image",{params:e}),savePPTOutline:e=>io.post("/save_ppt_outline",e),submitEvaluation:e=>io.post("/submit_evaluation",e),getLatestRecognitionRecord:e=>io.get("/get_latest_recognition_record",{params:e}),saveEditDocument:e=>io.post("/save_edit_document",e),onlineSearch:e=>io.get("/online_search",{params:e}),saveOnlineSearchResult:e=>io.post("/save_online_search_result",e),intentRecognition:e=>io.post("/intent_recognition",e),streamChatWithDB:e=>io.post("/stream/chat-with-db",e),updatePolicyFileCount:e=>io.post("/policy_file_count",e),guessYouWant:e=>io.post("/guess_you_want",e),getUserDataId:e=>io.get("/get_user_data_id",{params:e}),recordTracking:e=>io.post("/tracking/record",e),getTrackingRecords:e=>io.get("/tracking/records",{params:e}),addApiMapping:e=>io.post("/tracking/api_mapping",e),getApiMappings:()=>io.get("/tracking/api_mappings")},z9e="2.11.1",YZ=Symbol("INSTALLED_KEY"),Uve=Symbol(),V4="el",j9e="is-",V0=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},$ve=Symbol("namespaceContextKey"),Qj=e=>{const t=e||(vr()?cn($ve,Q(V4)):Q(V4));return J(()=>C(t)||V4)},zt=(e,t)=>{const n=Qj(t);return{namespace:n,b:(h="")=>V0(n.value,e,h,"",""),e:h=>h?V0(n.value,e,"",h,""):"",m:h=>h?V0(n.value,e,"","",h):"",be:(h,g)=>h&&g?V0(n.value,e,h,g,""):"",em:(h,g)=>h&&g?V0(n.value,e,"",h,g):"",bm:(h,g)=>h&&g?V0(n.value,e,h,"",g):"",bem:(h,g,y)=>h&&g&&y?V0(n.value,e,h,g,y):"",is:(h,...g)=>{const y=g.length>=1?g[0]:!0;return h&&y?`${j9e}${h}`:""},cssVar:h=>{const g={};for(const y in h)h[y]&&(g[`--${n.value}-${y}`]=h[y]);return g},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const g={};for(const y in h)h[y]&&(g[`--${n.value}-${e}-${y}`]=h[y]);return g},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}};var zve=typeof global=="object"&&global&&global.Object===Object&&global,H9e=typeof self=="object"&&self&&self.Object===Object&&self,qc=zve||H9e||Function("return this")(),qu=qc.Symbol,jve=Object.prototype,W9e=jve.hasOwnProperty,V9e=jve.toString,E2=qu?qu.toStringTag:void 0;function q9e(e){var t=W9e.call(e,E2),n=e[E2];try{e[E2]=void 0;var r=!0}catch{}var o=V9e.call(e);return r&&(t?e[E2]=n:delete e[E2]),o}var G9e=Object.prototype,K9e=G9e.toString;function Q9e(e){return K9e.call(e)}var Y9e="[object Null]",Z9e="[object Undefined]",ZZ=qu?qu.toStringTag:void 0;function Jv(e){return e==null?e===void 0?Z9e:Y9e:ZZ&&ZZ in Object(e)?q9e(e):Q9e(e)}function Ld(e){return e!=null&&typeof e=="object"}var X9e="[object Symbol]";function j_(e){return typeof e=="symbol"||Ld(e)&&Jv(e)==X9e}function Yj(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ll=Array.isArray,XZ=qu?qu.prototype:void 0,JZ=XZ?XZ.toString:void 0;function Hve(e){if(typeof e=="string")return e;if(ll(e))return Yj(e,Hve)+"";if(j_(e))return JZ?JZ.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var J9e=/\s/;function eIe(e){for(var t=e.length;t--&&J9e.test(e.charAt(t)););return t}var tIe=/^\s+/;function nIe(e){return e&&e.slice(0,eIe(e)+1).replace(tIe,"")}function ul(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eX=NaN,rIe=/^[-+]0x[0-9a-f]+$/i,oIe=/^0b[01]+$/i,iIe=/^0o[0-7]+$/i,aIe=parseInt;function tX(e){if(typeof e=="number")return e;if(j_(e))return eX;if(ul(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ul(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nIe(e);var n=oIe.test(e);return n||iIe.test(e)?aIe(e.slice(2),n?2:8):rIe.test(e)?eX:+e}function Zj(e){return e}var sIe="[object AsyncFunction]",lIe="[object Function]",uIe="[object GeneratorFunction]",cIe="[object Proxy]";function Xj(e){if(!ul(e))return!1;var t=Jv(e);return t==lIe||t==uIe||t==sIe||t==cIe}var rI=qc["__core-js_shared__"],nX=(function(){var e=/[^.]+$/.exec(rI&&rI.keys&&rI.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function dIe(e){return!!nX&&nX in e}var fIe=Function.prototype,pIe=fIe.toString;function em(e){if(e!=null){try{return pIe.call(e)}catch{}try{return e+""}catch{}}return""}var hIe=/[\\^$.*+?()[\]{}|]/g,gIe=/^\[object .+?Constructor\]$/,vIe=Function.prototype,mIe=Object.prototype,yIe=vIe.toString,bIe=mIe.hasOwnProperty,wIe=RegExp("^"+yIe.call(bIe).replace(hIe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AIe(e){if(!ul(e)||dIe(e))return!1;var t=Xj(e)?wIe:gIe;return t.test(em(e))}function CIe(e,t){return e?.[t]}function tm(e,t){var n=CIe(e,t);return AIe(n)?n:void 0}var sL=tm(qc,"WeakMap"),rX=Object.create,xIe=(function(){function e(){}return function(t){if(!ul(t))return{};if(rX)return rX(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function SIe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function EIe(){}function Wve(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kIe=800,TIe=16,_Ie=Date.now;function DIe(e){var t=0,n=0;return function(){var r=_Ie(),o=TIe-(r-n);if(n=r,o>0){if(++t>=kIe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function IIe(e){return function(){return e}}var lE=(function(){try{var e=tm(Object,"defineProperty");return e({},"",{}),e}catch{}})(),OIe=lE?function(e,t){return lE(e,"toString",{configurable:!0,enumerable:!1,value:IIe(t),writable:!0})}:Zj,Vve=DIe(OIe);function MIe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function qve(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function PIe(e){return e!==e}function NIe(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function RIe(e,t,n){return t===t?NIe(e,t,n):qve(e,PIe,n)}function BIe(e,t){var n=e==null?0:e.length;return!!n&&RIe(e,t,0)>-1}var LIe=9007199254740991,FIe=/^(?:0|[1-9]\d*)$/;function H_(e,t){var n=typeof e;return t=t??LIe,!!t&&(n=="number"||n!="symbol"&&FIe.test(e))&&e>-1&&e%1==0&&e<t}function Jj(e,t,n){t=="__proto__"&&lE?lE(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function AC(e,t){return e===t||e!==e&&t!==t}var UIe=Object.prototype,$Ie=UIe.hasOwnProperty;function eH(e,t,n){var r=e[t];(!($Ie.call(e,t)&&AC(r,n))||n===void 0&&!(t in e))&&Jj(e,t,n)}function Tb(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?Jj(n,s,l):eH(n,s,l)}return n}var oX=Math.max;function Gve(e,t,n){return t=oX(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=oX(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),SIe(e,this,s)}}function Kve(e,t){return Vve(Gve(e,t,Zj),e+"")}var zIe=9007199254740991;function tH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zIe}function _b(e){return e!=null&&tH(e.length)&&!Xj(e)}function jIe(e,t,n){if(!ul(n))return!1;var r=typeof t;return(r=="number"?_b(n)&&H_(t,n.length):r=="string"&&t in n)?AC(n[t],e):!1}function HIe(e){return Kve(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&jIe(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var WIe=Object.prototype;function nH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||WIe;return e===n}function VIe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var qIe="[object Arguments]";function iX(e){return Ld(e)&&Jv(e)==qIe}var Qve=Object.prototype,GIe=Qve.hasOwnProperty,KIe=Qve.propertyIsEnumerable,B3=iX((function(){return arguments})())?iX:function(e){return Ld(e)&&GIe.call(e,"callee")&&!KIe.call(e,"callee")};function QIe(){return!1}var Yve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aX=Yve&&typeof module=="object"&&module&&!module.nodeType&&module,YIe=aX&&aX.exports===Yve,sX=YIe?qc.Buffer:void 0,ZIe=sX?sX.isBuffer:void 0,L3=ZIe||QIe,XIe="[object Arguments]",JIe="[object Array]",eOe="[object Boolean]",tOe="[object Date]",nOe="[object Error]",rOe="[object Function]",oOe="[object Map]",iOe="[object Number]",aOe="[object Object]",sOe="[object RegExp]",lOe="[object Set]",uOe="[object String]",cOe="[object WeakMap]",dOe="[object ArrayBuffer]",fOe="[object DataView]",pOe="[object Float32Array]",hOe="[object Float64Array]",gOe="[object Int8Array]",vOe="[object Int16Array]",mOe="[object Int32Array]",yOe="[object Uint8Array]",bOe="[object Uint8ClampedArray]",wOe="[object Uint16Array]",AOe="[object Uint32Array]",ji={};ji[pOe]=ji[hOe]=ji[gOe]=ji[vOe]=ji[mOe]=ji[yOe]=ji[bOe]=ji[wOe]=ji[AOe]=!0;ji[XIe]=ji[JIe]=ji[dOe]=ji[eOe]=ji[fOe]=ji[tOe]=ji[nOe]=ji[rOe]=ji[oOe]=ji[iOe]=ji[aOe]=ji[sOe]=ji[lOe]=ji[uOe]=ji[cOe]=!1;function COe(e){return Ld(e)&&tH(e.length)&&!!ji[Jv(e)]}function rH(e){return function(t){return e(t)}}var Zve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,q4=Zve&&typeof module=="object"&&module&&!module.nodeType&&module,xOe=q4&&q4.exports===Zve,oI=xOe&&zve.process,Ey=(function(){try{var e=q4&&q4.require&&q4.require("util").types;return e||oI&&oI.binding&&oI.binding("util")}catch{}})(),lX=Ey&&Ey.isTypedArray,oH=lX?rH(lX):COe,SOe=Object.prototype,EOe=SOe.hasOwnProperty;function Xve(e,t){var n=ll(e),r=!n&&B3(e),o=!n&&!r&&L3(e),i=!n&&!r&&!o&&oH(e),a=n||r||o||i,s=a?VIe(e.length,String):[],l=s.length;for(var u in e)(t||EOe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||H_(u,l)))&&s.push(u);return s}function Jve(e,t){return function(n){return e(t(n))}}var kOe=Jve(Object.keys,Object),TOe=Object.prototype,_Oe=TOe.hasOwnProperty;function DOe(e){if(!nH(e))return kOe(e);var t=[];for(var n in Object(e))_Oe.call(e,n)&&n!="constructor"&&t.push(n);return t}function CC(e){return _b(e)?Xve(e):DOe(e)}function IOe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var OOe=Object.prototype,MOe=OOe.hasOwnProperty;function POe(e){if(!ul(e))return IOe(e);var t=nH(e),n=[];for(var r in e)r=="constructor"&&(t||!MOe.call(e,r))||n.push(r);return n}function xC(e){return _b(e)?Xve(e,!0):POe(e)}var NOe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ROe=/^\w*$/;function iH(e,t){if(ll(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||j_(e)?!0:ROe.test(e)||!NOe.test(e)||t!=null&&e in Object(t)}var F3=tm(Object,"create");function BOe(){this.__data__=F3?F3(null):{},this.size=0}function LOe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FOe="__lodash_hash_undefined__",UOe=Object.prototype,$Oe=UOe.hasOwnProperty;function zOe(e){var t=this.__data__;if(F3){var n=t[e];return n===FOe?void 0:n}return $Oe.call(t,e)?t[e]:void 0}var jOe=Object.prototype,HOe=jOe.hasOwnProperty;function WOe(e){var t=this.__data__;return F3?t[e]!==void 0:HOe.call(t,e)}var VOe="__lodash_hash_undefined__";function qOe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F3&&t===void 0?VOe:t,this}function Ev(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ev.prototype.clear=BOe;Ev.prototype.delete=LOe;Ev.prototype.get=zOe;Ev.prototype.has=WOe;Ev.prototype.set=qOe;function GOe(){this.__data__=[],this.size=0}function W_(e,t){for(var n=e.length;n--;)if(AC(e[n][0],t))return n;return-1}var KOe=Array.prototype,QOe=KOe.splice;function YOe(e){var t=this.__data__,n=W_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():QOe.call(t,n,1),--this.size,!0}function ZOe(e){var t=this.__data__,n=W_(t,e);return n<0?void 0:t[n][1]}function XOe(e){return W_(this.__data__,e)>-1}function JOe(e,t){var n=this.__data__,r=W_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pp.prototype.clear=GOe;pp.prototype.delete=YOe;pp.prototype.get=ZOe;pp.prototype.has=XOe;pp.prototype.set=JOe;var U3=tm(qc,"Map");function eMe(){this.size=0,this.__data__={hash:new Ev,map:new(U3||pp),string:new Ev}}function tMe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function V_(e,t){var n=e.__data__;return tMe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function nMe(e){var t=V_(this,e).delete(e);return this.size-=t?1:0,t}function rMe(e){return V_(this,e).get(e)}function oMe(e){return V_(this,e).has(e)}function iMe(e,t){var n=V_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function hp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hp.prototype.clear=eMe;hp.prototype.delete=nMe;hp.prototype.get=rMe;hp.prototype.has=oMe;hp.prototype.set=iMe;var aMe="Expected a function";function q_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(aMe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(q_.Cache||hp),n}q_.Cache=hp;var sMe=500;function lMe(e){var t=q_(e,function(r){return n.size===sMe&&n.clear(),r}),n=t.cache;return t}var uMe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cMe=/\\(\\)?/g,dMe=lMe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uMe,function(n,r,o,i){t.push(o?i.replace(cMe,"$1"):r||n)}),t});function fMe(e){return e==null?"":Hve(e)}function Db(e,t){return ll(e)?e:iH(e,t)?[e]:dMe(fMe(e))}function Ib(e){if(typeof e=="string"||j_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function G_(e,t){t=Db(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ib(t[n++])];return n&&n==r?e:void 0}function Qi(e,t,n){var r=e==null?void 0:G_(e,t);return r===void 0?n:r}function aH(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var uX=qu?qu.isConcatSpreadable:void 0;function pMe(e){return ll(e)||B3(e)||!!(uX&&e&&e[uX])}function SC(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=pMe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?SC(s,t-1,n,r,o):aH(o,s):r||(o[o.length]=s)}return o}function eme(e){var t=e==null?0:e.length;return t?SC(e,1):[]}function tme(e){return Vve(Gve(e,void 0,eme),e+"")}var sH=Jve(Object.getPrototypeOf,Object),hMe="[object Object]",gMe=Function.prototype,vMe=Object.prototype,nme=gMe.toString,mMe=vMe.hasOwnProperty,yMe=nme.call(Object);function rme(e){if(!Ld(e)||Jv(e)!=hMe)return!1;var t=sH(e);if(t===null)return!0;var n=mMe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nme.call(n)==yMe}function bMe(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Ka(){if(!arguments.length)return[];var e=arguments[0];return ll(e)?e:[e]}function wMe(){this.__data__=new pp,this.size=0}function AMe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function CMe(e){return this.__data__.get(e)}function xMe(e){return this.__data__.has(e)}var SMe=200;function EMe(e,t){var n=this.__data__;if(n instanceof pp){var r=n.__data__;if(!U3||r.length<SMe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hp(r)}return n.set(e,t),this.size=n.size,this}function Ec(e){var t=this.__data__=new pp(e);this.size=t.size}Ec.prototype.clear=wMe;Ec.prototype.delete=AMe;Ec.prototype.get=CMe;Ec.prototype.has=xMe;Ec.prototype.set=EMe;function kMe(e,t){return e&&Tb(t,CC(t),e)}function TMe(e,t){return e&&Tb(t,xC(t),e)}var ome=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cX=ome&&typeof module=="object"&&module&&!module.nodeType&&module,_Me=cX&&cX.exports===ome,dX=_Me?qc.Buffer:void 0,fX=dX?dX.allocUnsafe:void 0;function ime(e,t){if(t)return e.slice();var n=e.length,r=fX?fX(n):new e.constructor(n);return e.copy(r),r}function DMe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function ame(){return[]}var IMe=Object.prototype,OMe=IMe.propertyIsEnumerable,pX=Object.getOwnPropertySymbols,lH=pX?function(e){return e==null?[]:(e=Object(e),DMe(pX(e),function(t){return OMe.call(e,t)}))}:ame;function MMe(e,t){return Tb(e,lH(e),t)}var PMe=Object.getOwnPropertySymbols,sme=PMe?function(e){for(var t=[];e;)aH(t,lH(e)),e=sH(e);return t}:ame;function NMe(e,t){return Tb(e,sme(e),t)}function lme(e,t,n){var r=t(e);return ll(e)?r:aH(r,n(e))}function lL(e){return lme(e,CC,lH)}function ume(e){return lme(e,xC,sme)}var uL=tm(qc,"DataView"),cL=tm(qc,"Promise"),Q1=tm(qc,"Set"),hX="[object Map]",RMe="[object Object]",gX="[object Promise]",vX="[object Set]",mX="[object WeakMap]",yX="[object DataView]",BMe=em(uL),LMe=em(U3),FMe=em(cL),UMe=em(Q1),$Me=em(sL),gc=Jv;(uL&&gc(new uL(new ArrayBuffer(1)))!=yX||U3&&gc(new U3)!=hX||cL&&gc(cL.resolve())!=gX||Q1&&gc(new Q1)!=vX||sL&&gc(new sL)!=mX)&&(gc=function(e){var t=Jv(e),n=t==RMe?e.constructor:void 0,r=n?em(n):"";if(r)switch(r){case BMe:return yX;case LMe:return hX;case FMe:return gX;case UMe:return vX;case $Me:return mX}return t});var zMe=Object.prototype,jMe=zMe.hasOwnProperty;function HMe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&jMe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var uE=qc.Uint8Array;function uH(e){var t=new e.constructor(e.byteLength);return new uE(t).set(new uE(e)),t}function WMe(e,t){var n=t?uH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var VMe=/\w*$/;function qMe(e){var t=new e.constructor(e.source,VMe.exec(e));return t.lastIndex=e.lastIndex,t}var bX=qu?qu.prototype:void 0,wX=bX?bX.valueOf:void 0;function GMe(e){return wX?Object(wX.call(e)):{}}function cme(e,t){var n=t?uH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var KMe="[object Boolean]",QMe="[object Date]",YMe="[object Map]",ZMe="[object Number]",XMe="[object RegExp]",JMe="[object Set]",ePe="[object String]",tPe="[object Symbol]",nPe="[object ArrayBuffer]",rPe="[object DataView]",oPe="[object Float32Array]",iPe="[object Float64Array]",aPe="[object Int8Array]",sPe="[object Int16Array]",lPe="[object Int32Array]",uPe="[object Uint8Array]",cPe="[object Uint8ClampedArray]",dPe="[object Uint16Array]",fPe="[object Uint32Array]";function pPe(e,t,n){var r=e.constructor;switch(t){case nPe:return uH(e);case KMe:case QMe:return new r(+e);case rPe:return WMe(e,n);case oPe:case iPe:case aPe:case sPe:case lPe:case uPe:case cPe:case dPe:case fPe:return cme(e,n);case YMe:return new r;case ZMe:case ePe:return new r(e);case XMe:return qMe(e);case JMe:return new r;case tPe:return GMe(e)}}function dme(e){return typeof e.constructor=="function"&&!nH(e)?xIe(sH(e)):{}}var hPe="[object Map]";function gPe(e){return Ld(e)&&gc(e)==hPe}var AX=Ey&&Ey.isMap,vPe=AX?rH(AX):gPe,mPe="[object Set]";function yPe(e){return Ld(e)&&gc(e)==mPe}var CX=Ey&&Ey.isSet,bPe=CX?rH(CX):yPe,wPe=1,APe=2,CPe=4,fme="[object Arguments]",xPe="[object Array]",SPe="[object Boolean]",EPe="[object Date]",kPe="[object Error]",pme="[object Function]",TPe="[object GeneratorFunction]",_Pe="[object Map]",DPe="[object Number]",hme="[object Object]",IPe="[object RegExp]",OPe="[object Set]",MPe="[object String]",PPe="[object Symbol]",NPe="[object WeakMap]",RPe="[object ArrayBuffer]",BPe="[object DataView]",LPe="[object Float32Array]",FPe="[object Float64Array]",UPe="[object Int8Array]",$Pe="[object Int16Array]",zPe="[object Int32Array]",jPe="[object Uint8Array]",HPe="[object Uint8ClampedArray]",WPe="[object Uint16Array]",VPe="[object Uint32Array]",Mi={};Mi[fme]=Mi[xPe]=Mi[RPe]=Mi[BPe]=Mi[SPe]=Mi[EPe]=Mi[LPe]=Mi[FPe]=Mi[UPe]=Mi[$Pe]=Mi[zPe]=Mi[_Pe]=Mi[DPe]=Mi[hme]=Mi[IPe]=Mi[OPe]=Mi[MPe]=Mi[PPe]=Mi[jPe]=Mi[HPe]=Mi[WPe]=Mi[VPe]=!0;Mi[kPe]=Mi[pme]=Mi[NPe]=!1;function Y1(e,t,n,r,o,i){var a,s=t&wPe,l=t&APe,u=t&CPe;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!ul(e))return e;var d=ll(e);if(d){if(a=HMe(e),!s)return Wve(e,a)}else{var c=gc(e),f=c==pme||c==TPe;if(L3(e))return ime(e,s);if(c==hme||c==fme||f&&!o){if(a=l||f?{}:dme(e),!s)return l?NMe(e,TMe(a,e)):MMe(e,kMe(a,e))}else{if(!Mi[c])return o?e:{};a=pPe(e,c,s)}}i||(i=new Ec);var p=i.get(e);if(p)return p;i.set(e,a),bPe(e)?e.forEach(function(g){a.add(Y1(g,t,n,g,e,i))}):vPe(e)&&e.forEach(function(g,y){a.set(y,Y1(g,t,n,y,e,i))});var v=u?l?ume:lL:l?xC:CC,h=d?void 0:v(e);return MIe(h||e,function(g,y){h&&(y=g,g=e[y]),eH(a,y,Y1(g,t,n,y,e,i))}),a}var qPe=4;function xX(e){return Y1(e,qPe)}var GPe=1,KPe=4;function cE(e){return Y1(e,GPe|KPe)}var QPe="__lodash_hash_undefined__";function YPe(e){return this.__data__.set(e,QPe),this}function ZPe(e){return this.__data__.has(e)}function $3(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new hp;++t<n;)this.add(e[t])}$3.prototype.add=$3.prototype.push=YPe;$3.prototype.has=ZPe;function XPe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function gme(e,t){return e.has(t)}var JPe=1,eNe=2;function vme(e,t,n,r,o,i){var a=n&JPe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,f=!0,p=n&eNe?new $3:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var v=e[c],h=t[c];if(r)var g=a?r(h,v,c,t,e,i):r(v,h,c,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!XPe(t,function(y,m){if(!gme(p,m)&&(v===y||o(v,y,n,r,i)))return p.push(m)})){f=!1;break}}else if(!(v===h||o(v,h,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function tNe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function cH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var nNe=1,rNe=2,oNe="[object Boolean]",iNe="[object Date]",aNe="[object Error]",sNe="[object Map]",lNe="[object Number]",uNe="[object RegExp]",cNe="[object Set]",dNe="[object String]",fNe="[object Symbol]",pNe="[object ArrayBuffer]",hNe="[object DataView]",SX=qu?qu.prototype:void 0,iI=SX?SX.valueOf:void 0;function gNe(e,t,n,r,o,i,a){switch(n){case hNe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pNe:return!(e.byteLength!=t.byteLength||!i(new uE(e),new uE(t)));case oNe:case iNe:case lNe:return AC(+e,+t);case aNe:return e.name==t.name&&e.message==t.message;case uNe:case dNe:return e==t+"";case sNe:var s=tNe;case cNe:var l=r&nNe;if(s||(s=cH),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=rNe,a.set(e,t);var d=vme(s(e),s(t),r,o,i,a);return a.delete(e),d;case fNe:if(iI)return iI.call(e)==iI.call(t)}return!1}var vNe=1,mNe=Object.prototype,yNe=mNe.hasOwnProperty;function bNe(e,t,n,r,o,i){var a=n&vNe,s=lL(e),l=s.length,u=lL(t),d=u.length;if(l!=d&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in t:yNe.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var g=a;++c<l;){f=s[c];var y=e[f],m=t[f];if(r)var b=a?r(m,y,f,t,e,i):r(y,m,f,e,t,i);if(!(b===void 0?y===m||o(y,m,n,r,i):b)){h=!1;break}g||(g=f=="constructor")}if(h&&!g){var w=e.constructor,A=t.constructor;w!=A&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof A=="function"&&A instanceof A)&&(h=!1)}return i.delete(e),i.delete(t),h}var wNe=1,EX="[object Arguments]",kX="[object Array]",lx="[object Object]",ANe=Object.prototype,TX=ANe.hasOwnProperty;function CNe(e,t,n,r,o,i){var a=ll(e),s=ll(t),l=a?kX:gc(e),u=s?kX:gc(t);l=l==EX?lx:l,u=u==EX?lx:u;var d=l==lx,c=u==lx,f=l==u;if(f&&L3(e)){if(!L3(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new Ec),a||oH(e)?vme(e,t,n,r,o,i):gNe(e,t,l,n,r,o,i);if(!(n&wNe)){var p=d&&TX.call(e,"__wrapped__"),v=c&&TX.call(t,"__wrapped__");if(p||v){var h=p?e.value():e,g=v?t.value():t;return i||(i=new Ec),o(h,g,n,r,i)}}return f?(i||(i=new Ec),bNe(e,t,n,r,o,i)):!1}function K_(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ld(e)&&!Ld(t)?e!==e&&t!==t:CNe(e,t,n,r,K_,o)}var xNe=1,SNe=2;function ENe(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var s=a[0],l=e[s],u=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var d=new Ec,c;if(!(c===void 0?K_(u,l,xNe|SNe,r,d):c))return!1}}return!0}function mme(e){return e===e&&!ul(e)}function kNe(e){for(var t=CC(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,mme(o)]}return t}function yme(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function TNe(e){var t=kNe(e);return t.length==1&&t[0][2]?yme(t[0][0],t[0][1]):function(n){return n===e||ENe(n,e,t)}}function _Ne(e,t){return e!=null&&t in Object(e)}function DNe(e,t,n){t=Db(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ib(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&tH(o)&&H_(a,o)&&(ll(e)||B3(e)))}function bme(e,t){return e!=null&&DNe(e,t,_Ne)}var INe=1,ONe=2;function MNe(e,t){return iH(e)&&mme(t)?yme(Ib(e),t):function(n){var r=Qi(n,e);return r===void 0&&r===t?bme(n,e):K_(t,r,INe|ONe)}}function PNe(e){return function(t){return t?.[e]}}function NNe(e){return function(t){return G_(t,e)}}function RNe(e){return iH(e)?PNe(Ib(e)):NNe(e)}function wme(e){return typeof e=="function"?e:e==null?Zj:typeof e=="object"?ll(e)?MNe(e[0],e[1]):TNe(e):RNe(e)}function BNe(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}}var Ame=BNe();function LNe(e,t){return e&&Ame(e,t,CC)}function FNe(e,t){return function(n,r){if(n==null)return n;if(!_b(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var UNe=FNe(LNe),aI=function(){return qc.Date.now()},$Ne="Expected a function",zNe=Math.max,jNe=Math.min;function Fl(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError($Ne);t=tX(t)||0,ul(n)&&(d=!!n.leading,c="maxWait"in n,i=c?zNe(tX(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(S){var k=r,M=o;return r=o=void 0,u=S,a=e.apply(M,k),a}function v(S){return u=S,s=setTimeout(y,t),d?p(S):a}function h(S){var k=S-l,M=S-u,D=t-k;return c?jNe(D,i-M):D}function g(S){var k=S-l,M=S-u;return l===void 0||k>=t||k<0||c&&M>=i}function y(){var S=aI();if(g(S))return m(S);s=setTimeout(y,h(S))}function m(S){return s=void 0,f&&r?p(S):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function w(){return s===void 0?a:m(aI())}function A(){var S=aI(),k=g(S);if(r=arguments,o=this,l=S,k){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),a}return A.cancel=b,A.flush=w,A}function dL(e,t,n){(n!==void 0&&!AC(e[t],n)||n===void 0&&!(t in e))&&Jj(e,t,n)}function Cme(e){return Ld(e)&&_b(e)}function fL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function HNe(e){return Tb(e,xC(e))}function WNe(e,t,n,r,o,i,a){var s=fL(e,n),l=fL(t,n),u=a.get(l);if(u){dL(e,n,u);return}var d=i?i(s,l,n+"",e,t,a):void 0,c=d===void 0;if(c){var f=ll(l),p=!f&&L3(l),v=!f&&!p&&oH(l);d=l,f||p||v?ll(s)?d=s:Cme(s)?d=Wve(s):p?(c=!1,d=ime(l,!0)):v?(c=!1,d=cme(l,!0)):d=[]:rme(l)||B3(l)?(d=s,B3(s)?d=HNe(s):(!ul(s)||Xj(s))&&(d=dme(l))):c=!1}c&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),dL(e,n,d)}function xme(e,t,n,r,o){e!==t&&Ame(t,function(i,a){if(o||(o=new Ec),ul(i))WNe(e,t,a,n,xme,r,o);else{var s=r?r(fL(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),dL(e,a,s)}},xC)}function VNe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Sme(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return qve(e,wme(t),o,!0)}function qNe(e,t){var n=-1,r=_b(e)?Array(e.length):[];return UNe(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function GNe(e,t){var n=ll(e)?Yj:qNe;return n(e,wme(t))}function Eme(e,t){return SC(GNe(e,t),1)}var KNe=1/0;function QNe(e){var t=e==null?0:e.length;return t?SC(e,KNe):[]}function z3(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function YNe(e,t){return t.length<2?e:G_(e,bMe(t,0,-1))}function ua(e,t){return K_(e,t)}function Zi(e){return e==null}function EC(e){return e===null}function ZNe(e){return e===void 0}var kme=HIe(function(e,t,n){xme(e,t,n)});function XNe(e,t){return t=Db(t,e),e=YNe(e,t),e==null||delete e[Ib(VNe(t))]}function JNe(e){return rme(e)?void 0:e}var eRe=1,tRe=2,nRe=4,Tme=tme(function(e,t){var n={};if(e==null)return n;var r=!1;t=Yj(t,function(i){return i=Db(i,e),r||(r=i.length>1),i}),Tb(e,ume(e),n),r&&(n=Y1(n,eRe|tRe|nRe,JNe));for(var o=t.length;o--;)XNe(n,t[o]);return n});function _me(e,t,n,r){if(!ul(e))return e;t=Db(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Ib(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var d=s[l];u=void 0,u===void 0&&(u=ul(d)?d:H_(t[o+1])?[]:{})}eH(s,l,u),s=s[l]}return e}function rRe(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=G_(e,a);n(s,a)&&_me(i,Db(a,e),s)}return i}function oRe(e,t){return rRe(e,t,function(n,r){return bme(e,r)})}var ru=tme(function(e,t){return e==null?{}:oRe(e,t)});function iRe(e,t,n){return e==null?e:_me(e,t,n)}var aRe="Expected a function";function qg(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(aRe);return ul(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Fl(e,t,{leading:r,maxWait:t,trailing:o})}var sRe=1/0,lRe=Q1&&1/cH(new Q1([,-0]))[1]==sRe?function(e){return new Q1(e)}:EIe,uRe=200;function cRe(e,t,n){var r=-1,o=BIe,i=e.length,a=!0,s=[],l=s;if(i>=uRe){var u=lRe(e);if(u)return cH(u);a=!1,o=gme,l=new $3}else l=s;e:for(;++r<i;){var d=e[r],c=d;if(d=d!==0?d:0,a&&c===c){for(var f=l.length;f--;)if(l[f]===c)continue e;s.push(d)}else o(l,c,n)||(l!==s&&l.push(c),s.push(d))}return s}var sI=Kve(function(e){return cRe(SC(e,1,Cme,!0))});const $r=e=>e===void 0,Co=e=>typeof e=="boolean",Ln=e=>typeof e=="number",Jl=e=>!e&&e!==0||qt(e)&&e.length===0||ar(e)&&!Object.keys(e).length,al=e=>typeof Element>"u"?!1:e instanceof Element,Il=e=>Zi(e),dRe=e=>In(e)?!Number.isNaN(Number(e)):!1,kC=e=>e===window;var fRe=Object.defineProperty,pRe=Object.defineProperties,hRe=Object.getOwnPropertyDescriptors,_X=Object.getOwnPropertySymbols,gRe=Object.prototype.hasOwnProperty,vRe=Object.prototype.propertyIsEnumerable,DX=(e,t,n)=>t in e?fRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mRe=(e,t)=>{for(var n in t||(t={}))gRe.call(t,n)&&DX(e,n,t[n]);if(_X)for(var n of _X(t))vRe.call(t,n)&&DX(e,n,t[n]);return e},yRe=(e,t)=>pRe(e,hRe(t));function dE(e,t){var n;const r=Uo();return Cs(()=>{r.value=e()},yRe(mRe({},t),{flush:(n=void 0)!=null?n:"sync"})),Cb(r)}var IX;const Kr=typeof window<"u",bRe=e=>typeof e<"u",pL=e=>typeof e=="function",wRe=e=>typeof e=="string",Bf=()=>{},fE=Kr&&((IX=window?.navigator)==null?void 0:IX.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function n0(e){return typeof e=="function"?e():C(e)}function Dme(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function ARe(e,t={}){let n,r,o=Bf;const i=s=>{clearTimeout(s),o(),o=Bf};return s=>{const l=n0(e),u=n0(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((d,c)=>{o=t.rejectOnCancel?c:d,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,d(s())},l)})}}function CRe(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=Bf,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Bf)};return c=>{const f=n0(e),p=Date.now()-o,v=()=>l=c();return u(),f<=0?(o=Date.now(),v()):(p>f&&(n||!a)?(o=Date.now(),v()):t&&(l=new Promise((h,g)=>{s=r?g:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(v()),u()},Math.max(0,f-p))})),!n&&!i&&(i=setTimeout(()=>a=!0,f)),a=!1,l)}}function xRe(e){return e}function SRe(e,t){let n,r,o;const i=Q(!0),a=()=>{i.value=!0,o()};St(e,a,{flush:"sync"});const s=pL(t)?t:t.get,l=pL(t)?void 0:t.set,u=gTe((d,c)=>(r=d,o=c,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(f){l?.(f)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Ob(e){return I0e()?(O0e(e),!0):!1}function ERe(e){if(!Ro(e))return Ur(e);const t=new Proxy({},{get(n,r,o){return C(Reflect.get(e.value,r,o))},set(n,r,o){return Ro(e.value[r])&&!Ro(o)?e.value[r].value=o:e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Ur(t)}function kRe(e){return ERe(J(e))}function TRe(e,t=200,n={}){return Dme(ARe(t,n),e)}function _Re(e,t=200,n={}){const r=Q(e.value),o=TRe(()=>{r.value=e.value},t,n);return St(e,()=>o()),r}function Ime(e,t=200,n=!1,r=!0,o=!1){return Dme(CRe(t,n,r,o),e)}function dH(e,t=!0){vr()?jn(e):t?e():Vt(e)}function kv(e,t,n={}){const{immediate:r=!0}=n,o=Q(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...u){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},n0(t))}return r&&(o.value=!0,Kr&&l()),Ob(s),{isPending:Cb(o),start:l,stop:s}}function Sa(e){var t;const n=n0(e);return(t=n?.$el)!=null?t:n}const Kd=Kr?window:void 0,DRe=Kr?window.document:void 0;function Mo(...e){let t,n,r,o;if(wRe(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Kd):[t,n,r,o]=e,!t)return Bf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},s=(d,c,f,p)=>(d.addEventListener(c,f,p),()=>d.removeEventListener(c,f,p)),l=St(()=>[Sa(t),n0(o)],([d,c])=>{a(),d&&i.push(...n.flatMap(f=>r.map(p=>s(d,f,p,c))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Ob(u),u}let OX=!1;function fH(e,t,n={}){const{window:r=Kd,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;fE&&!OX&&(OX=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Bf)));let s=!0;const l=f=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(v=>v===f.target||f.composedPath().includes(v));{const v=Sa(p);return v&&(f.target===v||f.composedPath().includes(v))}}),d=[Mo(r,"click",f=>{const p=Sa(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(s=!l(f)),!s){s=!0;return}t(f)}},{passive:!0,capture:i}),Mo(r,"pointerdown",f=>{const p=Sa(e);p&&(s=!f.composedPath().includes(p)&&!l(f))},{passive:!0}),a&&Mo(r,"blur",f=>{var p;const v=Sa(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(f)})].filter(Boolean);return()=>d.forEach(f=>f())}function IRe(e={}){var t;const{window:n=Kd}=e,r=(t=e.document)!=null?t:n?.document,o=SRe(()=>null,()=>r?.activeElement);return n&&(Mo(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),Mo(n,"focus",o.trigger,!0)),o}function pH(e,t=!1){const n=Q(),r=()=>n.value=!!e();return r(),dH(r,t),n}function ORe(e){return JSON.parse(JSON.stringify(e))}const MX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},PX="__vueuse_ssr_handlers__";MX[PX]=MX[PX]||{};function MRe(e,t,{window:n=Kd,initialValue:r=""}={}){const o=Q(r),i=J(()=>{var a;return Sa(t)||((a=n?.document)==null?void 0:a.documentElement)});return St([i,()=>n0(e)],([a,s])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();o.value=u||r}},{immediate:!0}),St(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(n0(e),a)}),o}function PRe({document:e=DRe}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Mo(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var NX=Object.getOwnPropertySymbols,NRe=Object.prototype.hasOwnProperty,RRe=Object.prototype.propertyIsEnumerable,BRe=(e,t)=>{var n={};for(var r in e)NRe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&NX)for(var r of NX(e))t.indexOf(r)<0&&RRe.call(e,r)&&(n[r]=e[r]);return n};function li(e,t,n={}){const r=n,{window:o=Kd}=r,i=BRe(r,["window"]);let a;const s=pH(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=St(()=>Sa(e),c=>{l(),s.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Ob(d),{isSupported:s,stop:d}}function RX(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=Q(0),s=Q(0),l=Q(0),u=Q(0),d=Q(0),c=Q(0),f=Q(0),p=Q(0);function v(){const h=Sa(e);if(!h){n&&(a.value=0,s.value=0,l.value=0,u.value=0,d.value=0,c.value=0,f.value=0,p.value=0);return}const g=h.getBoundingClientRect();a.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,d.value=g.top,c.value=g.width,f.value=g.x,p.value=g.y}return li(e,v),St(()=>Sa(e),h=>!h&&v()),o&&Mo("scroll",v,{capture:!0,passive:!0}),r&&Mo("resize",v,{passive:!0}),dH(()=>{i&&v()}),{height:a,bottom:s,left:l,right:u,top:d,width:c,x:f,y:p,update:v}}function LRe(e,t={width:0,height:0},n={}){const{window:r=Kd,box:o="content-box"}=n,i=J(()=>{var l,u;return(u=(l=Sa(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),a=Q(t.width),s=Q(t.height);return li(e,([l])=>{const u=o==="border-box"?l.borderBoxSize:o==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const d=Sa(e);if(d){const c=r.getComputedStyle(d);a.value=parseFloat(c.width),s.value=parseFloat(c.height)}}else if(u){const d=Array.isArray(u)?u:[u];a.value=d.reduce((c,{inlineSize:f})=>c+f,0),s.value=d.reduce((c,{blockSize:f})=>c+f,0)}else a.value=l.contentRect.width,s.value=l.contentRect.height},n),St(()=>Sa(e),l=>{a.value=l?t.width:0,s.value=l?t.height:0}),{width:a,height:s}}function FRe(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:i=.1,window:a=Kd}=n,s=pH(()=>a&&"IntersectionObserver"in a);let l=Bf;const u=s.value?St(()=>({el:Sa(e),root:Sa(r)}),({el:c,root:f})=>{if(l(),!c)return;const p=new IntersectionObserver(t,{root:f,rootMargin:o,threshold:i});p.observe(c),l=()=>{p.disconnect(),l=Bf}},{immediate:!0,flush:"post"}):Bf,d=()=>{l(),u()};return Ob(d),{isSupported:s,stop:d}}var BX=Object.getOwnPropertySymbols,URe=Object.prototype.hasOwnProperty,$Re=Object.prototype.propertyIsEnumerable,zRe=(e,t)=>{var n={};for(var r in e)URe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&BX)for(var r of BX(e))t.indexOf(r)<0&&$Re.call(e,r)&&(n[r]=e[r]);return n};function Ome(e,t,n={}){const r=n,{window:o=Kd}=r,i=zRe(r,["window"]);let a;const s=pH(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=St(()=>Sa(e),c=>{l(),s.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,i))},{immediate:!0}),d=()=>{l(),u()};return Ob(d),{isSupported:s,stop:d}}var LX;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(LX||(LX={}));var jRe=Object.defineProperty,FX=Object.getOwnPropertySymbols,HRe=Object.prototype.hasOwnProperty,WRe=Object.prototype.propertyIsEnumerable,UX=(e,t,n)=>t in e?jRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VRe=(e,t)=>{for(var n in t||(t={}))HRe.call(t,n)&&UX(e,n,t[n]);if(FX)for(var n of FX(t))WRe.call(t,n)&&UX(e,n,t[n]);return e};const qRe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};VRe({linear:xRe},qRe);function Mme(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:c}=r,f=vr(),p=n||f?.emit||((o=f?.$emit)==null?void 0:o.bind(f))||((a=(i=f?.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(f?.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const h=y=>s?pL(s)?s(y):ORe(y):y,g=()=>bRe(e[t])?h(e[t]):c;if(l){const y=g(),m=Q(y);return St(()=>e[t],b=>m.value=h(b)),St(m,b=>{(b!==e[t]||d)&&p(v,b)},{deep:d}),m}else return J({get(){return g()},set(y){p(v,y)}})}function GRe({window:e=Kd}={}){if(!e)return Q(!1);const t=Q(e.document.hasFocus());return Mo(e,"blur",()=>{t.value=!1}),Mo(e,"focus",()=>{t.value=!0}),t}function KRe(e={}){const{window:t=Kd,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=Q(n),s=Q(r),l=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),dH(l),Mo("resize",l,{passive:!0}),o&&Mo("orientationchange",l,{passive:!0}),{width:a,height:s}}const $X={current:0},zX=Q(0),Pme=2e3,jX=Symbol("elZIndexContextKey"),Nme=Symbol("zIndexContextKey"),Mb=e=>{const t=vr()?cn(jX,$X):$X,n=e||(vr()?cn(Nme,void 0):void 0),r=J(()=>{const a=C(n);return Ln(a)?a:Pme}),o=J(()=>r.value+zX.value),i=()=>(t.current++,zX.value=t.current,o.value);return!Kr&&cn(jX),{initialZIndex:r,currentZIndex:o,nextZIndex:i}};var QRe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const YRe=e=>(t,n)=>ZRe(t,n,C(e)),ZRe=(e,t,n)=>Qi(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t?.[o])!=null?i:`{${o}}`}`}),XRe=e=>{const t=J(()=>C(e).name),n=Ro(e)?e:Q(e);return{lang:t,locale:n,t:YRe(e)}},Rme=Symbol("localeContextKey"),Hr=e=>{const t=e||cn(Rme,Q());return XRe(J(()=>t.value||QRe))},Bme="__epPropKey",it=e=>e,JRe=e=>ar(e)&&!!e[Bme],Gc=(e,t)=>{if(!ar(e)||JRe(e))return e;const{values:n,required:r,default:o,type:i,validator:a}=e,l={type:i,required:!!r,validator:n||a?u=>{let d=!1,c=[];if(n&&(c=Array.from(n),Zr(e,"default")&&c.push(o),d||(d=c.includes(u))),a&&(d||(d=a(u))),!d&&c.length>0){const f=[...new Set(c)].map(p=>JSON.stringify(p)).join(", ");w_e(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[Bme]:!0};return Zr(e,"default")&&(l.default=o),l},Kt=e=>z3(Object.entries(e).map(([t,n])=>[t,Gc(n,t)])),Qd=["","default","small","large"],ba=Gc({type:String,values:Qd,required:!1}),Lme=Symbol("size"),Fme=()=>{const e=cn(Lme,{});return J(()=>C(e.size)||"")},Ume=Symbol("emptyValuesContextKey"),eBe=["",void 0,null],tBe=void 0,nm=Kt({emptyValues:Array,valueOnClear:{type:it([String,Number,Boolean,Function]),default:void 0,validator:e=>Pn(e)?!e():!e}}),TC=(e,t)=>{const n=vr()?cn(Ume,Q({})):Q({}),r=J(()=>e.emptyValues||n.value.emptyValues||eBe),o=J(()=>Pn(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Pn(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:tBe),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},ky=e=>Object.keys(e),$me=e=>Object.entries(e),G4=(e,t,n)=>({get value(){return Qi(e,t,n)},set value(r){iRe(e,t,r)}}),pE=Q();function Pb(e,t=void 0){const n=vr()?cn(Uve,pE):pE;return e?J(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function Q_(e,t){const n=Pb(),r=zt(e,J(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||V4})),o=Hr(J(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Mb(J(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||Pme})),a=J(()=>{var s;return C(t)||((s=n.value)==null?void 0:s.size)||""});return hH(J(()=>C(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const hH=(e,t,n=!1)=>{var r;const o=!!vr(),i=o?Pb():void 0,a=(r=t?.provide)!=null?r:o?Sr:void 0;if(!a)return;const s=J(()=>{const l=C(e);return i?.value?nBe(i.value,l):l});return a(Uve,s),a(Rme,J(()=>s.value.locale)),a($ve,J(()=>s.value.namespace)),a(Nme,J(()=>s.value.zIndex)),a(Lme,{size:J(()=>s.value.size||"")}),a(Ume,J(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!pE.value)&&(pE.value=s.value),s},nBe=(e,t)=>{const n=[...new Set([...ky(e),...ky(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},rBe=(e=[])=>({version:z9e,install:(n,r)=>{n[YZ]||(n[YZ]=!0,e.forEach(o=>n.use(o)),r&&hH(r,n,!0))}}),Gn="update:modelValue",Tr="change",ma="input",oBe=Kt({zIndex:{type:it([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),iBe={scroll:({scrollTop:e,fixed:t})=>Ln(e)&&Co(t),[Tr]:e=>Co(e)};var Jt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function aBe(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const r0=e=>Kr?window.requestAnimationFrame(e):setTimeout(e,16),Tv=e=>Kr?window.cancelAnimationFrame(e):clearTimeout(e),zme=(e="")=>e.split(" ").filter(t=>!!t.trim()),El=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Nu=(e,t)=>{!e||!t.trim()||e.classList.add(...zme(t))},zs=(e,t)=>{!e||!t.trim()||e.classList.remove(...zme(t))},Tf=(e,t)=>{var n;if(!Kr||!e||!t)return"";let r=sl(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}},jme=(e,t,n)=>{if(!(!e||!t))if(ar(t))$me(t).forEach(([r,o])=>jme(e,r,o));else{const r=sl(t);e.style[r]=n}};function _i(e,t="px"){if(!e)return"";if(Ln(e)||dRe(e))return`${e}${t}`;if(In(e))return e}const sBe=(e,t)=>{if(!Kr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Tf(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},gH=(e,t)=>{if(!Kr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(sBe(n,t))return n;n=n.parentNode}return n};let ux;const Hme=e=>{var t;if(!Kr)return 0;if(ux!==void 0)return ux;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ux=r-i,ux};function vH(e,t){if(!Kr)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=o+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;o<a?e.scrollTop=o:i>s&&(e.scrollTop=i-e.clientHeight)}function lBe(e,t,n,r,o){const i=Date.now();let a;const s=()=>{const u=Date.now()-i,d=aBe(u>r?r:u,t,n,r);kC(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u<r?a=r0(s):Pn(o)&&o()};return s(),()=>{a&&Tv(a)}}const HX=(e,t)=>kC(t)?e.ownerDocument.documentElement:t,WX=e=>kC(e)?window.scrollY:e.scrollTop;class uBe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Xi(e,t){throw new uBe(`[${e}] ${t}`)}const Wme="ElAffix",cBe=tt({name:Wme}),dBe=tt({...cBe,props:oBe,emits:iBe,setup(e,{expose:t,emit:n}){const r=e,o=zt("affix"),i=Uo(),a=Uo(),s=Uo(),{height:l}=KRe(),{height:u,width:d,top:c,bottom:f,update:p}=RX(a,{windowScroll:!1}),v=RX(i),h=Q(!1),g=Q(0),y=Q(0),m=J(()=>({height:h.value?`${u.value}px`:"",width:h.value?`${d.value}px`:""})),b=J(()=>{if(!h.value)return{};const k=r.offset?_i(r.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:r.position==="top"?k:"",bottom:r.position==="bottom"?k:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(!s.value)return;g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0;const{position:k,target:M,offset:D}=r,P=D+u.value;if(k==="top")if(M){const O=v.bottom.value-P;h.value=D>c.value&&v.bottom.value>0,y.value=O<0?O:0}else h.value=D>c.value;else if(M){const O=l.value-v.top.value-P;h.value=l.value-D<f.value&&l.value>v.top.value,y.value=O<0?-O:0}else h.value=l.value-D<f.value},A=async()=>{if(!h.value){p();return}h.value=!1,await Vt(),p(),h.value=!0},S=async()=>{p(),await Vt(),n("scroll",{scrollTop:g.value,fixed:h.value})};return St(h,k=>n(Tr,k)),jn(()=>{var k;r.target?(i.value=(k=document.querySelector(r.target))!=null?k:void 0,i.value||Xi(Wme,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=gH(a.value,!0),p()}),Mo(s,"scroll",S),Cs(w),t({update:w,updateRoot:A}),(k,M)=>(F(),K("div",{ref_key:"root",ref:a,class:re(C(o).b()),style:Xt(C(m))},[x("div",{class:re({[C(o).m("fixed")]:h.value}),style:Xt(C(b))},[ft(k.$slots,"default")],6)],6))}});var fBe=Jt(dBe,[["__file","affix.vue"]]);const er=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Vme=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),pBe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),vi=e=>(e.install=go,e),hBe=er(fBe),gBe=Kt({size:{type:it([Number,String])},color:{type:String}}),vBe=tt({name:"ElIcon",inheritAttrs:!1}),mBe=tt({...vBe,props:gBe,setup(e){const t=e,n=zt("icon"),r=J(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:$r(o)?void 0:_i(o),"--color":i}});return(o,i)=>(F(),K("i",pr({class:C(n).b(),style:C(r)},o.$attrs),[ft(o.$slots,"default")],16))}});var yBe=Jt(mBe,[["__file","icon.vue"]]);const Dn=er(yBe);function VX(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Ob(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qme=Kt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Gme=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=VX(),{registerTimeout:a,cancelTimeout:s}=VX();return{onOpen:d=>{i(()=>{r(d);const c=C(n);Ln(c)&&c>0&&a(()=>{o(d)},c)},C(e))},onClose:d=>{s(),i(()=>{o(d)},C(t))}}};/*! Element Plus Icons Vue v2.3.2 */var bBe=tt({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Kc=bBe,wBe=tt({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Gf=wBe,ABe=tt({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ka=ABe,CBe=tt({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Y_=CBe,xBe=tt({name:"Back",__name:"back",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),x("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),SBe=xBe,EBe=tt({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),kBe=EBe,TBe=tt({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Kme=TBe,_Be=tt({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),DBe=_Be,IBe=tt({name:"Check",__name:"check",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),_C=IBe,OBe=tt({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),MBe=OBe,PBe=tt({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),mH=PBe,NBe=tt({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),yH=NBe,RBe=tt({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Yd=RBe,BBe=tt({name:"Clock",__name:"clock",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),x("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Qme=BBe,LBe=tt({name:"Close",__name:"close",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),cu=LBe,FBe=tt({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),x("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),UBe=FBe,$Be=tt({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),o0=$Be,zBe=tt({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),i0=zBe,jBe=tt({name:"Delete",__name:"delete",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),HBe=jBe,WBe=tt({name:"Document",__name:"document",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Ty=WBe,VBe=tt({name:"Download",__name:"download",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),qBe=VBe,GBe=tt({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),KBe=GBe,QBe=tt({name:"Hide",__name:"hide",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),x("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),YBe=QBe,ZBe=tt({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),j3=ZBe,XBe=tt({name:"Link",__name:"link",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),Yme=XBe,JBe=tt({name:"Loading",__name:"loading",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Bc=JBe,eLe=tt({name:"Minus",__name:"minus",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),tLe=eLe,nLe=tt({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),qX=nLe,rLe=tt({name:"More",__name:"more",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),oLe=rLe,iLe=tt({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),aLe=iLe,sLe=tt({name:"Plus",__name:"plus",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Zme=sLe,lLe=tt({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),uLe=lLe,cLe=tt({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),dLe=cLe,fLe=tt({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),pLe=fLe,hLe=tt({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),gLe=hLe,vLe=tt({name:"Search",__name:"search",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),mLe=vLe,yLe=tt({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),bLe=yLe,wLe=tt({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),ALe=wLe,CLe=tt({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),cx=CLe,xLe=tt({name:"Star",__name:"star",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),SLe=xLe,ELe=tt({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Xme=ELe,kLe=tt({name:"View",__name:"view",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Jme=kLe,TLe=tt({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Nb=TLe,_Le=tt({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),e1e=_Le,DLe=tt({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(F(),K("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),ILe=DLe;const vo=it([String,Object,Function]),t1e={Close:cu},bH={Close:cu,SuccessFilled:Xme,InfoFilled:j3,WarningFilled:Nb,CircleCloseFilled:yH},a0={primary:j3,success:Xme,warning:Nb,error:yH,info:j3},Z_={validating:Bc,success:mH,error:Yd},OLe=["light","dark"],MLe=Kt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ky(a0),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:OLe,default:"light"},...qme}),PLe={open:()=>!0,close:e=>$r(e)||e instanceof Event},NLe=tt({name:"ElAlert"}),RLe=tt({...NLe,props:MLe,emits:PLe,setup(e,{emit:t}){const n=e,{Close:r}=bH,o=pa(),i=zt("alert"),a=Q(!1),s=J(()=>a0[n.type]),l=J(()=>!!(n.description||o.default)),u=()=>{a.value=!0,t("open")},d=p=>{a.value=!1,t("close",p)},{onOpen:c,onClose:f}=Gme({showAfter:ao(n,"showAfter"),hideAfter:ao(n,"hideAfter"),autoClose:ao(n,"autoClose"),open:u,close:d});return Kr&&c(),(p,v)=>(F(),mt(Wi,{name:C(i).b("fade"),persisted:""},{default:nt(()=>[ln(x("div",{class:re([C(i).b(),C(i).m(p.type),C(i).is("center",p.center),C(i).is(p.effect)]),role:"alert"},[p.showIcon&&(p.$slots.icon||C(s))?(F(),mt(C(Dn),{key:0,class:re([C(i).e("icon"),{[C(i).is("big")]:C(l)}])},{default:nt(()=>[ft(p.$slots,"icon",{},()=>[(F(),mt(hr(C(s))))])]),_:3},8,["class"])):xe("v-if",!0),x("div",{class:re(C(i).e("content"))},[p.title||p.$slots.title?(F(),K("span",{key:0,class:re([C(i).e("title"),{"with-description":C(l)}])},[ft(p.$slots,"title",{},()=>[xn(We(p.title),1)])],2)):xe("v-if",!0),C(l)?(F(),K("p",{key:1,class:re(C(i).e("description"))},[ft(p.$slots,"default",{},()=>[xn(We(p.description),1)])],2)):xe("v-if",!0),p.closable?(F(),K(Pt,{key:2},[p.closeText?(F(),K("div",{key:0,class:re([C(i).e("close-btn"),C(i).is("customed")]),onClick:d},We(p.closeText),3)):(F(),mt(C(Dn),{key:1,class:re(C(i).e("close-btn")),onClick:C(f)},{default:nt(()=>[Ve(C(r))]),_:1},8,["class","onClick"]))],64)):xe("v-if",!0)],2)],2),[[Ar,a.value]])]),_:3},8,["name"]))}});var BLe=Jt(RLe,[["__file","alert.vue"]]);const LLe=er(BLe),wH=()=>Kr&&/firefox/i.test(window.navigator.userAgent);let yl;const FLe={height:"0",visibility:"hidden",overflow:wH()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},ULe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function $Le(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ULe.map(a=>[a,t.getPropertyValue(a)]),paddingSize:r,borderSize:o,boxSizing:n}}function GX(e,t=1,n){var r,o;yl||(yl=document.createElement("textarea"),((r=e.parentNode)!=null?r:document.body).appendChild(yl));const{paddingSize:i,borderSize:a,boxSizing:s,contextStyle:l}=$Le(e);l.forEach(([f,p])=>yl?.style.setProperty(f,p)),Object.entries(FLe).forEach(([f,p])=>yl?.style.setProperty(f,p,"important")),yl.value=e.value||e.placeholder||"";let u=yl.scrollHeight;const d={};s==="border-box"?u=u+a:s==="content-box"&&(u=u-i),yl.value="";const c=yl.scrollHeight-i;if(Ln(t)){let f=c*t;s==="border-box"&&(f=f+i+a),u=Math.max(f,u),d.minHeight=`${f}px`}if(Ln(n)){let f=c*n;s==="border-box"&&(f=f+i+a),u=Math.min(f,u)}return d.height=`${u}px`,(o=yl.parentNode)==null||o.removeChild(yl),yl=void 0,d}const fi=e=>e,zLe=Kt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Es=e=>ru(zLe,e),DC=Kt({id:{type:String,default:void 0},size:ba,disabled:Boolean,modelValue:{type:it([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:it([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:vo,default:Yd},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:vo},prefixIcon:{type:vo},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:it([Object,Array,String]),default:()=>fi({})},autofocus:Boolean,rows:{type:Number,default:2},...Es(["ariaLabel"]),inputmode:{type:it(String),default:void 0},name:String}),jLe={[Gn]:e=>In(e),input:e=>In(e),change:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},HLe=["class","style"],WLe=/^on[A-Z]/,X_=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=J(()=>(n?.value||[]).concat(HLe)),o=vr();return J(o?()=>{var i;return z3(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&WLe.test(a))))}:()=>({}))},KX={prefix:Math.floor(Math.random()*1e4),current:0},VLe=Symbol("elIdInjection"),AH=()=>vr()?cn(VLe,KX):KX,fs=e=>{const t=AH(),n=Qj();return dE(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},rm=Symbol("formContextKey"),Fd=Symbol("formItemContextKey"),ks=()=>{const e=cn(rm,void 0),t=cn(Fd,void 0);return{form:e,formItem:t}},ac=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Q(!1)),r||(r=Q(!1));const o=vr(),i=()=>{let u=o?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},a=Q();let s;const l=J(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return jn(()=>{s=St([ao(e,"id"),n],([u,d])=>{const c=u??(d?void 0:fs().value);c!==a.value&&(t?.removeInputId&&!i()&&(a.value&&t.removeInputId(a.value),!r?.value&&!d&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),hl(()=>{s&&s(),t?.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:l,inputId:a}},n1e=e=>{const t=vr();return J(()=>{var n,r;return(r=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},fa=(e,t={})=>{const n=Q(void 0),r=t.prop?n:n1e("size"),o=t.global?n:Fme(),i=t.form?{size:void 0}:cn(rm,void 0),a=t.formItem?{size:void 0}:cn(Fd,void 0);return J(()=>r.value||C(e)||a?.size||i?.size||o.value||"")},Wa=e=>{const t=n1e("disabled"),n=cn(rm,void 0);return J(()=>t.value||C(e)||n?.disabled||!1)},qLe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',GLe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,QX=e=>Array.from(e.querySelectorAll(qLe)).filter(t=>H3(t)&&GLe(t)),H3=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},gS=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},r1e=e=>!e.getAttribute("aria-owns"),o1e=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},vS=e=>{e&&(e.focus(),!r1e(e)&&e.click())};function gp(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:o,afterBlur:i}={}){const a=vr(),{emit:s}=a,l=Uo(),u=Q(!1),d=p=>{const v=Pn(n)?n(p):!1;C(t)||u.value||v||(u.value=!0,s("focus",p),r?.())},c=p=>{var v;const h=Pn(o)?o(p):!1;C(t)||p.relatedTarget&&((v=l.value)!=null&&v.contains(p.relatedTarget))||h||(u.value=!1,s("blur",p),i?.())},f=p=>{var v,h;C(t)||H3(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(h=e.value)==null||h.focus()};return St([l,()=>C(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),Mo(l,"focus",d,!0),Mo(l,"blur",c,!0),Mo(l,"click",f,!0),{isFocused:u,wrapperRef:l,handleFocus:d,handleBlur:c}}const KLe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function IC({afterComposition:e,emit:t}){const n=Q(!1),r=s=>{t?.("compositionstart",s),n.value=!0},o=s=>{var l;t?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,d=u[u.length-1]||"";n.value=!KLe(d)},i=s=>{t?.("compositionend",s),n.value&&(n.value=!1,Vt(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):o(s)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:i}}function QLe(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:a}=e.value;if(o==null||i==null)return;const s=a.slice(0,Math.max(0,o)),l=a.slice(Math.max(0,i));t={selectionStart:o,selectionEnd:i,value:a,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:s}=t;if(i==null||a==null||s==null)return;let l=o.length;if(o.endsWith(a))l=o.length-a.length;else if(o.startsWith(i))l=i.length;else{const u=i[s-1],d=o.indexOf(u,s-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,r]}const YLe="ElInput",ZLe=tt({name:YLe,inheritAttrs:!1}),XLe=tt({...ZLe,props:DC,emits:jLe,setup(e,{expose:t,emit:n}){const r=e,o=fp(),i=X_(),a=pa(),s=J(()=>[r.type==="textarea"?h.b():v.b(),v.m(f.value),v.is("disabled",p.value),v.is("exceed",L.value),{[v.b("group")]:a.prepend||a.append,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:H.value&&G.value,[v.b("hidden")]:r.type==="hidden"},o.class]),l=J(()=>[v.e("wrapper"),v.is("focus",M.value)]),{form:u,formItem:d}=ks(),{inputId:c}=ac(r,{formItemContext:d}),f=fa(),p=Wa(),v=zt("input"),h=zt("textarea"),g=Uo(),y=Uo(),m=Q(!1),b=Q(!1),w=Q(),A=Uo(r.inputStyle),S=J(()=>g.value||y.value),{wrapperRef:k,isFocused:M,handleFocus:D,handleBlur:P}=gp(S,{disabled:p,afterBlur(){var Pe;r.validateEvent&&((Pe=d?.validate)==null||Pe.call(d,"blur").catch(Ne=>void 0))}}),O=J(()=>{var Pe;return(Pe=u?.statusIcon)!=null?Pe:!1}),_=J(()=>d?.validateState||""),B=J(()=>_.value&&Z_[_.value]),N=J(()=>b.value?Jme:YBe),q=J(()=>[o.style]),U=J(()=>[r.inputStyle,A.value,{resize:r.resize}]),j=J(()=>Zi(r.modelValue)?"":String(r.modelValue)),H=J(()=>r.clearable&&!p.value&&!r.readonly&&!!j.value&&(M.value||m.value)),G=J(()=>r.showPassword&&!p.value&&!!j.value),Z=J(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),$=J(()=>j.value.length),L=J(()=>!!Z.value&&$.value>Number(r.maxlength)),W=J(()=>!!a.suffix||!!r.suffixIcon||H.value||r.showPassword||Z.value||!!_.value&&O.value),[ie,ee]=QLe(g);li(y,Pe=>{if(ue(),!Z.value||r.resize!=="both")return;const Ne=Pe[0],{width:pt}=Ne.contentRect;w.value={right:`calc(100% - ${pt+15+6}px)`}});const te=()=>{const{type:Pe,autosize:Ne}=r;if(!(!Kr||Pe!=="textarea"||!y.value))if(Ne){const pt=ar(Ne)?Ne.minRows:void 0,Rt=ar(Ne)?Ne.maxRows:void 0,Bt=GX(y.value,pt,Rt);A.value={overflowY:"hidden",...Bt},Vt(()=>{y.value.offsetHeight,A.value=Bt})}else A.value={minHeight:GX(y.value).minHeight}},ue=(Pe=>{let Ne=!1;return()=>{var pt;if(Ne||!r.autosize)return;((pt=y.value)==null?void 0:pt.offsetParent)===null||(Pe(),Ne=!0)}})(te),ve=()=>{const Pe=S.value,Ne=r.formatter?r.formatter(j.value):j.value;!Pe||Pe.value===Ne||(Pe.value=Ne)},Me=async Pe=>{ie();let{value:Ne}=Pe.target;if(r.formatter&&r.parser&&(Ne=r.parser(Ne)),!he.value){if(Ne===j.value){ve();return}n(Gn,Ne),n(ma,Ne),await Vt(),ve(),ee()}},we=Pe=>{let{value:Ne}=Pe.target;r.formatter&&r.parser&&(Ne=r.parser(Ne)),n(Tr,Ne)},{isComposing:he,handleCompositionStart:Te,handleCompositionUpdate:Y,handleCompositionEnd:be}=IC({emit:n,afterComposition:Me}),De=()=>{ie(),b.value=!b.value,setTimeout(ee)},pe=()=>{var Pe;return(Pe=S.value)==null?void 0:Pe.focus()},oe=()=>{var Pe;return(Pe=S.value)==null?void 0:Pe.blur()},ce=Pe=>{m.value=!1,n("mouseleave",Pe)},Re=Pe=>{m.value=!0,n("mouseenter",Pe)},Ee=Pe=>{n("keydown",Pe)},Le=()=>{var Pe;(Pe=S.value)==null||Pe.select()},Fe=()=>{n(Gn,""),n(Tr,""),n("clear"),n(ma,"")};return St(()=>r.modelValue,()=>{var Pe;Vt(()=>te()),r.validateEvent&&((Pe=d?.validate)==null||Pe.call(d,"change").catch(Ne=>void 0))}),St(j,()=>ve()),St(()=>r.type,async()=>{await Vt(),ve(),te()}),jn(()=>{!r.formatter&&r.parser,ve(),Vt(te)}),t({input:g,textarea:y,ref:S,textareaStyle:U,autosize:ao(r,"autosize"),isComposing:he,focus:pe,blur:oe,select:Le,clear:Fe,resizeTextarea:te}),(Pe,Ne)=>(F(),K("div",{class:re([C(s),{[C(v).bm("group","append")]:Pe.$slots.append,[C(v).bm("group","prepend")]:Pe.$slots.prepend}]),style:Xt(C(q)),onMouseenter:Re,onMouseleave:ce},[xe(" input "),Pe.type!=="textarea"?(F(),K(Pt,{key:0},[xe(" prepend slot "),Pe.$slots.prepend?(F(),K("div",{key:0,class:re(C(v).be("group","prepend"))},[ft(Pe.$slots,"prepend")],2)):xe("v-if",!0),x("div",{ref_key:"wrapperRef",ref:k,class:re(C(l))},[xe(" prefix slot "),Pe.$slots.prefix||Pe.prefixIcon?(F(),K("span",{key:0,class:re(C(v).e("prefix"))},[x("span",{class:re(C(v).e("prefix-inner"))},[ft(Pe.$slots,"prefix"),Pe.prefixIcon?(F(),mt(C(Dn),{key:0,class:re(C(v).e("icon"))},{default:nt(()=>[(F(),mt(hr(Pe.prefixIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],2)):xe("v-if",!0),x("input",pr({id:C(c),ref_key:"input",ref:g,class:C(v).e("inner")},C(i),{name:Pe.name,minlength:Pe.minlength,maxlength:Pe.maxlength,type:Pe.showPassword?b.value?"text":"password":Pe.type,disabled:C(p),readonly:Pe.readonly,autocomplete:Pe.autocomplete,tabindex:Pe.tabindex,"aria-label":Pe.ariaLabel,placeholder:Pe.placeholder,style:Pe.inputStyle,form:Pe.form,autofocus:Pe.autofocus,role:Pe.containerRole,inputmode:Pe.inputmode,onCompositionstart:C(Te),onCompositionupdate:C(Y),onCompositionend:C(be),onInput:Me,onChange:we,onKeydown:Ee}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),xe(" suffix slot "),C(W)?(F(),K("span",{key:1,class:re(C(v).e("suffix"))},[x("span",{class:re(C(v).e("suffix-inner"))},[!C(H)||!C(G)||!C(Z)?(F(),K(Pt,{key:0},[ft(Pe.$slots,"suffix"),Pe.suffixIcon?(F(),mt(C(Dn),{key:0,class:re(C(v).e("icon"))},{default:nt(()=>[(F(),mt(hr(Pe.suffixIcon)))]),_:1},8,["class"])):xe("v-if",!0)],64)):xe("v-if",!0),C(H)?(F(),mt(C(Dn),{key:1,class:re([C(v).e("icon"),C(v).e("clear")]),onMousedown:Qt(C(go),["prevent"]),onClick:Fe},{default:nt(()=>[(F(),mt(hr(Pe.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0),C(G)?(F(),mt(C(Dn),{key:2,class:re([C(v).e("icon"),C(v).e("password")]),onClick:De},{default:nt(()=>[(F(),mt(hr(C(N))))]),_:1},8,["class"])):xe("v-if",!0),C(Z)?(F(),K("span",{key:3,class:re(C(v).e("count"))},[x("span",{class:re(C(v).e("count-inner"))},We(C($))+" / "+We(Pe.maxlength),3)],2)):xe("v-if",!0),C(_)&&C(B)&&C(O)?(F(),mt(C(Dn),{key:4,class:re([C(v).e("icon"),C(v).e("validateIcon"),C(v).is("loading",C(_)==="validating")])},{default:nt(()=>[(F(),mt(hr(C(B))))]),_:1},8,["class"])):xe("v-if",!0)],2)],2)):xe("v-if",!0)],2),xe(" append slot "),Pe.$slots.append?(F(),K("div",{key:1,class:re(C(v).be("group","append"))},[ft(Pe.$slots,"append")],2)):xe("v-if",!0)],64)):(F(),K(Pt,{key:1},[xe(" textarea "),x("textarea",pr({id:C(c),ref_key:"textarea",ref:y,class:[C(h).e("inner"),C(v).is("focus",C(M))]},C(i),{minlength:Pe.minlength,maxlength:Pe.maxlength,tabindex:Pe.tabindex,disabled:C(p),readonly:Pe.readonly,autocomplete:Pe.autocomplete,style:C(U),"aria-label":Pe.ariaLabel,placeholder:Pe.placeholder,form:Pe.form,autofocus:Pe.autofocus,rows:Pe.rows,role:Pe.containerRole,onCompositionstart:C(Te),onCompositionupdate:C(Y),onCompositionend:C(be),onInput:Me,onFocus:C(D),onBlur:C(P),onChange:we,onKeydown:Ee}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),C(Z)?(F(),K("span",{key:0,style:Xt(w.value),class:re(C(v).e("count"))},We(C($))+" / "+We(Pe.maxlength),7)):xe("v-if",!0)],64))],38))}});var JLe=Jt(XLe,[["__file","input.vue"]]);const Us=er(JLe),Dm=4,i1e={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},eFe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),CH=Symbol("scrollbarContextKey"),tFe=Kt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),nFe="Thumb",rFe=tt({__name:"thumb",props:tFe,setup(e){const t=e,n=cn(CH),r=zt("scrollbar");n||Xi(nFe,"can not inject scrollbar context");const o=Q(),i=Q(),a=Q({}),s=Q(!1);let l=!1,u=!1,d=0,c=0,f=Kr?document.onselectstart:null;const p=J(()=>i1e[t.vertical?"vertical":"horizontal"]),v=J(()=>eFe({size:t.size,move:t.move,bar:p.value})),h=J(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),g=M=>{var D;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(D=window.getSelection())==null||D.removeAllRanges(),m(M);const P=M.currentTarget;P&&(a.value[p.value.axis]=P[p.value.offset]-(M[p.value.client]-P.getBoundingClientRect()[p.value.direction]))},y=M=>{if(!i.value||!o.value||!n.wrapElement)return;const D=Math.abs(M.target.getBoundingClientRect()[p.value.direction]-M[p.value.client]),P=i.value[p.value.offset]/2,O=(D-P)*100*h.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=O*n.wrapElement[p.value.scrollSize]/100},m=M=>{M.stopImmediatePropagation(),l=!0,d=n.wrapElement.scrollHeight,c=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),f=document.onselectstart,document.onselectstart=()=>!1},b=M=>{if(!o.value||!i.value||l===!1)return;const D=a.value[p.value.axis];if(!D)return;const P=(o.value.getBoundingClientRect()[p.value.direction]-M[p.value.client])*-1,O=i.value[p.value.offset]-D,_=(P-O)*100*h.value/o.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=_*c/100:n.wrapElement[p.value.scroll]=_*d/100},w=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w),k(),u&&(s.value=!1)},A=()=>{u=!1,s.value=!!t.size},S=()=>{u=!0,s.value=l};Qr(()=>{k(),document.removeEventListener("mouseup",w)});const k=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Mo(ao(n,"scrollbarElement"),"mousemove",A),Mo(ao(n,"scrollbarElement"),"mouseleave",S),(M,D)=>(F(),mt(Wi,{name:C(r).b("fade"),persisted:""},{default:nt(()=>[ln(x("div",{ref_key:"instance",ref:o,class:re([C(r).e("bar"),C(r).is(C(p).key)]),onMousedown:y,onClick:Qt(()=>{},["stop"])},[x("div",{ref_key:"thumb",ref:i,class:re(C(r).e("thumb")),style:Xt(C(v)),onMousedown:g},null,38)],42,["onClick"]),[[Ar,M.always||s.value]])]),_:1},8,["name"]))}});var YX=Jt(rFe,[["__file","thumb.vue"]]);const oFe=Kt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),iFe=tt({__name:"bar",props:oFe,setup(e,{expose:t}){const n=e,r=cn(CH),o=Q(0),i=Q(0),a=Q(""),s=Q(""),l=Q(1),u=Q(1);return t({handleScroll:f=>{if(f){const p=f.offsetHeight-Dm,v=f.offsetWidth-Dm;i.value=f.scrollTop*100/p*l.value,o.value=f.scrollLeft*100/v*u.value}},update:()=>{const f=r?.wrapElement;if(!f)return;const p=f.offsetHeight-Dm,v=f.offsetWidth-Dm,h=p**2/f.scrollHeight,g=v**2/f.scrollWidth,y=Math.max(h,n.minSize),m=Math.max(g,n.minSize);l.value=h/(p-h)/(y/(p-y)),u.value=g/(v-g)/(m/(v-m)),s.value=y+Dm<p?`${y}px`:"",a.value=m+Dm<v?`${m}px`:""}}),(f,p)=>(F(),K(Pt,null,[Ve(YX,{move:o.value,ratio:u.value,size:a.value,always:f.always},null,8,["move","ratio","size","always"]),Ve(YX,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var aFe=Jt(iFe,[["__file","bar.vue"]]);const sFe=Kt({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:it([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Es(["ariaLabel","ariaOrientation"])}),a1e={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ln)},lFe="ElScrollbar",uFe=tt({name:lFe}),cFe=tt({...uFe,props:sFe,emits:a1e,setup(e,{expose:t,emit:n}){const r=e,o=zt("scrollbar");let i,a,s,l=0,u=0,d="";const c={bottom:!1,top:!1,right:!1,left:!1},f=Q(),p=Q(),v=Q(),h=Q(),g=J(()=>{const O={};return r.height&&(O.height=_i(r.height)),r.maxHeight&&(O.maxHeight=_i(r.maxHeight)),[r.wrapStyle,O]}),y=J(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),m=J(()=>[o.e("view"),r.viewClass]),b=O=>{var _;return(_=c[O])!=null?_:!1},w={top:"bottom",bottom:"top",left:"right",right:"left"},A=O=>{const _=w[d];if(!_)return;const B=O[d],N=O[_];B&&!c[d]&&(c[d]=!0),!N&&c[_]&&(c[_]=!1)},S=()=>{var O;if(p.value){(O=h.value)==null||O.handleScroll(p.value);const _=l,B=u;l=p.value.scrollTop,u=p.value.scrollLeft;const N={bottom:l+p.value.clientHeight>=p.value.scrollHeight-r.distance,top:l<=r.distance&&_!==0,right:u+p.value.clientWidth>=p.value.scrollWidth-r.distance&&B!==u,left:u<=r.distance&&B!==0};if(n("scroll",{scrollTop:l,scrollLeft:u}),_!==l&&(d=l>_?"bottom":"top"),B!==u&&(d=u>B?"right":"left"),r.distance>0){if(b(d))return;A(N)}N[d]&&n("end-reached",d)}};function k(O,_){ar(O)?p.value.scrollTo(O):Ln(O)&&Ln(_)&&p.value.scrollTo(O,_)}const M=O=>{Ln(O)&&(p.value.scrollTop=O)},D=O=>{Ln(O)&&(p.value.scrollLeft=O)},P=()=>{var O;(O=h.value)==null||O.update(),c[d]=!1};return St(()=>r.noresize,O=>{O?(i?.(),a?.(),s?.()):({stop:i}=li(v,P),{stop:a}=li(p,P),s=Mo("resize",P))},{immediate:!0}),St(()=>[r.maxHeight,r.height],()=>{r.native||Vt(()=>{var O;P(),p.value&&((O=h.value)==null||O.handleScroll(p.value))})}),Sr(CH,Ur({scrollbarElement:f,wrapElement:p})),xb(()=>{p.value&&(p.value.scrollTop=l,p.value.scrollLeft=u)}),jn(()=>{r.native||Vt(()=>{P()})}),Wc(()=>P()),t({wrapRef:p,update:P,scrollTo:k,setScrollTop:M,setScrollLeft:D,handleScroll:S}),(O,_)=>(F(),K("div",{ref_key:"scrollbarRef",ref:f,class:re(C(o).b())},[x("div",{ref_key:"wrapRef",ref:p,class:re(C(y)),style:Xt(C(g)),tabindex:O.tabindex,onScroll:S},[(F(),mt(hr(O.tag),{id:O.id,ref_key:"resizeRef",ref:v,class:re(C(m)),style:Xt(O.viewStyle),role:O.role,"aria-label":O.ariaLabel,"aria-orientation":O.ariaOrientation},{default:nt(()=>[ft(O.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),O.native?xe("v-if",!0):(F(),mt(aFe,{key:0,ref_key:"barRef",ref:h,always:O.always,"min-size":O.minSize},null,8,["always","min-size"]))],2))}});var dFe=Jt(cFe,[["__file","scrollbar.vue"]]);const Lc=er(dFe),xH=Symbol("popper"),s1e=Symbol("popperContent"),l1e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],u1e=Kt({role:{type:String,values:l1e,default:"tooltip"}}),fFe=tt({name:"ElPopper",inheritAttrs:!1}),pFe=tt({...fFe,props:u1e,setup(e,{expose:t}){const n=e,r=Q(),o=Q(),i=Q(),a=Q(),s=J(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),Sr(xH,l),(u,d)=>ft(u.$slots,"default")}});var hFe=Jt(pFe,[["__file","popper.vue"]]);const gFe=tt({name:"ElPopperArrow",inheritAttrs:!1}),vFe=tt({...gFe,setup(e,{expose:t}){const n=zt("popper"),{arrowRef:r,arrowStyle:o}=cn(s1e,void 0);return Qr(()=>{r.value=void 0}),t({arrowRef:r}),(i,a)=>(F(),K("span",{ref_key:"arrowRef",ref:r,class:re(C(n).e("arrow")),style:Xt(C(o)),"data-popper-arrow":""},null,6))}});var mFe=Jt(vFe,[["__file","arrow.vue"]]);const c1e=Kt({virtualRef:{type:it(Object)},virtualTriggering:Boolean,onMouseenter:{type:it(Function)},onMouseleave:{type:it(Function)},onClick:{type:it(Function)},onKeydown:{type:it(Function)},onFocus:{type:it(Function)},onBlur:{type:it(Function)},onContextmenu:{type:it(Function)},id:String,open:Boolean}),d1e=Symbol("elForwardRef"),yFe=e=>{Sr(d1e,{setForwardRef:n=>{e.value=n}})},bFe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),wFe="ElOnlyChild",f1e=tt({name:wFe,setup(e,{slots:t,attrs:n}){var r;const o=cn(d1e),i=bFe((r=o?.setForwardRef)!=null?r:go);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=p1e(s);return l?ln(qf(l,n),[[i]]):null}}});function p1e(e){if(!e)return null;const t=e;for(const n of t){if(ar(n))switch(n.type){case la:continue;case Sb:case"svg":return ZX(n);case Pt:return p1e(n.children);default:return n}return ZX(n)}return null}function ZX(e){const t=zt("only-child");return Ve("span",{class:t.e("content")},[e])}const AFe=tt({name:"ElPopperTrigger",inheritAttrs:!1}),CFe=tt({...AFe,props:c1e,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=cn(xH,void 0);yFe(o);const i=J(()=>s.value?n.id:void 0),a=J(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=J(()=>{if(r&&r.value!=="tooltip")return r.value}),l=J(()=>s.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return jn(()=>{St(()=>n.virtualRef,c=>{c&&(o.value=Sa(c))},{immediate:!0}),St(o,(c,f)=>{u?.(),u=void 0,al(c)&&(d.forEach(p=>{var v;const h=n[p];h&&(c.addEventListener(p.slice(2).toLowerCase(),h),(v=f?.removeEventListener)==null||v.call(f,p.slice(2).toLowerCase(),h))}),H3(c)&&(u=St([i,a,s,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,h)=>{Zi(p[h])?c.removeAttribute(v):c.setAttribute(v,p[h])})},{immediate:!0}))),al(f)&&H3(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),Qr(()=>{if(u?.(),u=void 0,o.value&&al(o.value)){const c=o.value;d.forEach(f=>{const p=n[f];p&&c.removeEventListener(f.slice(2).toLowerCase(),p)}),o.value=void 0}}),t({triggerRef:o}),(c,f)=>c.virtualTriggering?xe("v-if",!0):(F(),mt(C(f1e),pr({key:0},c.$attrs,{"aria-controls":C(i),"aria-describedby":C(a),"aria-expanded":C(l),"aria-haspopup":C(s)}),{default:nt(()=>[ft(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var xFe=Jt(CFe,[["__file","trigger.vue"]]);const lI="focus-trap.focus-after-trapped",uI="focus-trap.focus-after-released",SFe="focus-trap.focusout-prevented",XX={cancelable:!0,bubbles:!1},EFe={cancelable:!0,bubbles:!1},JX="focusAfterTrapped",eJ="focusAfterReleased",SH=Symbol("elFocusTrap"),EH=Q(),J_=Q(0),kH=Q(0);let dx=0;const h1e=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},tJ=(e,t)=>{for(const n of e)if(!kFe(n,t))return n},kFe=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},TFe=e=>{const t=h1e(e),n=tJ(t,e),r=tJ(t.reverse(),e);return[n,r]},_Fe=e=>e instanceof HTMLInputElement&&"select"in e,bf=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;al(e)&&!H3(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),kH.value=window.performance.now(),e!==n&&_Fe(e)&&t&&e.select(),al(e)&&r&&e.removeAttribute("tabindex")}};function nJ(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const DFe=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=nJ(e,r),e.unshift(r)},remove:r=>{var o,i;e=nJ(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},IFe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(bf(r,t),document.activeElement!==n)return},rJ=DFe(),OFe=()=>J_.value>kH.value,fx=()=>{EH.value="pointer",J_.value=window.performance.now()},oJ=()=>{EH.value="keyboard",J_.value=window.performance.now()},MFe=()=>(jn(()=>{dx===0&&(document.addEventListener("mousedown",fx),document.addEventListener("touchstart",fx),document.addEventListener("keydown",oJ)),dx++}),Qr(()=>{dx--,dx<=0&&(document.removeEventListener("mousedown",fx),document.removeEventListener("touchstart",fx),document.removeEventListener("keydown",oJ))}),{focusReason:EH,lastUserFocusTimestamp:J_,lastAutomatedFocusTimestamp:kH}),px=e=>new CustomEvent(SFe,{...EFe,detail:e}),gn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let E1=[];const iJ=e=>{e.code===gn.esc&&E1.forEach(t=>t(e))},PFe=e=>{jn(()=>{E1.length===0&&document.addEventListener("keydown",iJ),Kr&&E1.push(e)}),Qr(()=>{E1=E1.filter(t=>t!==e),E1.length===0&&Kr&&document.removeEventListener("keydown",iJ)})},NFe=tt({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[JX,eJ,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Q();let r,o;const{focusReason:i}=MFe();PFe(v=>{e.trapped&&!a.paused&&t("release-requested",v)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||a.paused)return;const{code:h,altKey:g,ctrlKey:y,metaKey:m,currentTarget:b,shiftKey:w}=v,{loop:A}=e,S=h===gn.tab&&!g&&!y&&!m,k=document.activeElement;if(S&&k){const M=b,[D,P]=TFe(M);if(D&&P){if(!w&&k===P){const _=px({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||(v.preventDefault(),A&&bf(D,!0))}else if(w&&[D,M].includes(k)){const _=px({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||(v.preventDefault(),A&&bf(P,!0))}}else if(k===M){const _=px({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||v.preventDefault()}}};Sr(SH,{focusTrapRef:n,onKeydown:s}),St(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),St([n],([v],[h])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",d),v.addEventListener("focusout",c)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",d),h.removeEventListener("focusout",c))});const l=v=>{t(JX,v)},u=v=>t(eJ,v),d=v=>{const h=C(n);if(!h)return;const g=v.target,y=v.relatedTarget,m=g&&h.contains(g);e.trapped||y&&h.contains(y)||(r=y),m&&t("focusin",v),!a.paused&&e.trapped&&(m?o=g:bf(o,!0))},c=v=>{const h=C(n);if(!(a.paused||!h))if(e.trapped){const g=v.relatedTarget;!Zi(g)&&!h.contains(g)&&setTimeout(()=>{if(!a.paused&&e.trapped){const y=px({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||bf(o,!0)}},0)}else{const g=v.target;g&&h.contains(g)||t("focusout",v)}};async function f(){await Vt();const v=C(n);if(v){rJ.push(a);const h=v.contains(document.activeElement)?r:document.activeElement;if(r=h,!v.contains(h)){const y=new Event(lI,XX);v.addEventListener(lI,l),v.dispatchEvent(y),y.defaultPrevented||Vt(()=>{let m=e.focusStartEl;In(m)||(bf(m),document.activeElement!==m&&(m="first")),m==="first"&&IFe(h1e(v),!0),(document.activeElement===h||m==="container")&&bf(v)})}}}function p(){const v=C(n);if(v){v.removeEventListener(lI,l);const h=new CustomEvent(uI,{...XX,detail:{focusReason:i.value}});v.addEventListener(uI,u),v.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!OFe()||v.contains(document.activeElement))&&bf(r??document.body),v.removeEventListener(uI,u),rJ.remove(a)}}return jn(()=>{e.trapped&&f(),St(()=>e.trapped,v=>{v?f():p()})}),Qr(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",c),n.value=void 0)}),{onKeydown:s}}});function RFe(e,t,n,r,o,i){return ft(e.$slots,"default",{handleKeydown:e.onKeydown})}var Rb=Jt(NFe,[["render",RFe],["__file","focus-trap.vue"]]),Ol="top",Gu="bottom",Ku="right",Ml="left",TH="auto",OC=[Ol,Gu,Ku,Ml],_y="start",W3="end",BFe="clippingParents",g1e="viewport",k2="popper",LFe="reference",aJ=OC.reduce(function(e,t){return e.concat([t+"-"+_y,t+"-"+W3])},[]),vp=[].concat(OC,[TH]).reduce(function(e,t){return e.concat([t,t+"-"+_y,t+"-"+W3])},[]),FFe="beforeRead",UFe="read",$Fe="afterRead",zFe="beforeMain",jFe="main",HFe="afterMain",WFe="beforeWrite",VFe="write",qFe="afterWrite",GFe=[FFe,UFe,$Fe,zFe,jFe,HFe,WFe,VFe,qFe];function Ud(e){return e?(e.nodeName||"").toLowerCase():null}function Qc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dy(e){var t=Qc(e).Element;return e instanceof t||e instanceof Element}function $u(e){var t=Qc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _H(e){if(typeof ShadowRoot>"u")return!1;var t=Qc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KFe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!$u(i)||!Ud(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function QFe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!$u(o)||!Ud(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var v1e={name:"applyStyles",enabled:!0,phase:"write",fn:KFe,effect:QFe,requires:["computeStyles"]};function Od(e){return e.split("-")[0]}var Gg=Math.max,hE=Math.min,Iy=Math.round;function Oy(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if($u(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Iy(n.width)/a||1),i>0&&(o=Iy(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function DH(e){var t=Oy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function m1e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_H(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kf(e){return Qc(e).getComputedStyle(e)}function YFe(e){return["table","td","th"].indexOf(Ud(e))>=0}function k0(e){return((Dy(e)?e.ownerDocument:e.document)||window.document).documentElement}function eD(e){return Ud(e)==="html"?e:e.assignedSlot||e.parentNode||(_H(e)?e.host:null)||k0(e)}function sJ(e){return!$u(e)||Kf(e).position==="fixed"?null:e.offsetParent}function ZFe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&$u(e)){var r=Kf(e);if(r.position==="fixed")return null}var o=eD(e);for(_H(o)&&(o=o.host);$u(o)&&["html","body"].indexOf(Ud(o))<0;){var i=Kf(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function MC(e){for(var t=Qc(e),n=sJ(e);n&&YFe(n)&&Kf(n).position==="static";)n=sJ(n);return n&&(Ud(n)==="html"||Ud(n)==="body"&&Kf(n).position==="static")?t:n||ZFe(e)||t}function IH(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K4(e,t,n){return Gg(e,hE(t,n))}function XFe(e,t,n){var r=K4(e,t,n);return r>n?n:r}function y1e(){return{top:0,right:0,bottom:0,left:0}}function b1e(e){return Object.assign({},y1e(),e)}function w1e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var JFe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,b1e(typeof e!="number"?e:w1e(e,OC))};function eUe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Od(n.placement),l=IH(s),u=[Ml,Ku].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var c=JFe(o.padding,n),f=DH(i),p=l==="y"?Ol:Ml,v=l==="y"?Gu:Ku,h=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],g=a[l]-n.rects.reference[l],y=MC(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=h/2-g/2,w=c[p],A=m-f[d]-c[v],S=m/2-f[d]/2+b,k=K4(w,S,A),M=l;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-S,t)}}function tUe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!m1e(t.elements.popper,o)||(t.elements.arrow=o))}var nUe={name:"arrow",enabled:!0,phase:"main",fn:eUe,effect:tUe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function My(e){return e.split("-")[1]}var rUe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oUe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Iy(t*o)/o||0,y:Iy(n*o)/o||0}}function lJ(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,c=e.isFixed,f=a.x,p=f===void 0?0:f,v=a.y,h=v===void 0?0:v,g=typeof d=="function"?d({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var y=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=Ml,w=Ol,A=window;if(u){var S=MC(n),k="clientHeight",M="clientWidth";if(S===Qc(n)&&(S=k0(n),Kf(S).position!=="static"&&s==="absolute"&&(k="scrollHeight",M="scrollWidth")),S=S,o===Ol||(o===Ml||o===Ku)&&i===W3){w=Gu;var D=c&&S===A&&A.visualViewport?A.visualViewport.height:S[k];h-=D-r.height,h*=l?1:-1}if(o===Ml||(o===Ol||o===Gu)&&i===W3){b=Ku;var P=c&&S===A&&A.visualViewport?A.visualViewport.width:S[M];p-=P-r.width,p*=l?1:-1}}var O=Object.assign({position:s},u&&rUe),_=d===!0?oUe({x:p,y:h}):{x:p,y:h};if(p=_.x,h=_.y,l){var B;return Object.assign({},O,(B={},B[w]=m?"0":"",B[b]=y?"0":"",B.transform=(A.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",B))}return Object.assign({},O,(t={},t[w]=m?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}function iUe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Od(t.placement),variation:My(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lJ(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lJ(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var A1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iUe,data:{}},hx={passive:!0};function aUe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Qc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,hx)}),s&&l.addEventListener("resize",n.update,hx),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,hx)}),s&&l.removeEventListener("resize",n.update,hx)}}var C1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aUe,data:{}},sUe={left:"right",right:"left",bottom:"top",top:"bottom"};function mS(e){return e.replace(/left|right|bottom|top/g,function(t){return sUe[t]})}var lUe={start:"end",end:"start"};function uJ(e){return e.replace(/start|end/g,function(t){return lUe[t]})}function OH(e){var t=Qc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function MH(e){return Oy(k0(e)).left+OH(e).scrollLeft}function uUe(e){var t=Qc(e),n=k0(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+MH(e),y:s}}function cUe(e){var t,n=k0(e),r=OH(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Gg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+MH(e),l=-r.scrollTop;return Kf(o||n).direction==="rtl"&&(s+=Gg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function PH(e){var t=Kf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function x1e(e){return["html","body","#document"].indexOf(Ud(e))>=0?e.ownerDocument.body:$u(e)&&PH(e)?e:x1e(eD(e))}function Q4(e,t){var n;t===void 0&&(t=[]);var r=x1e(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Qc(r),a=o?[i].concat(i.visualViewport||[],PH(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Q4(eD(a)))}function hL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dUe(e){var t=Oy(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function cJ(e,t){return t===g1e?hL(uUe(e)):Dy(t)?dUe(t):hL(cUe(k0(e)))}function fUe(e){var t=Q4(eD(e)),n=["absolute","fixed"].indexOf(Kf(e).position)>=0,r=n&&$u(e)?MC(e):e;return Dy(r)?t.filter(function(o){return Dy(o)&&m1e(o,r)&&Ud(o)!=="body"}):[]}function pUe(e,t,n){var r=t==="clippingParents"?fUe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=cJ(e,l);return s.top=Gg(u.top,s.top),s.right=hE(u.right,s.right),s.bottom=hE(u.bottom,s.bottom),s.left=Gg(u.left,s.left),s},cJ(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function S1e(e){var t=e.reference,n=e.element,r=e.placement,o=r?Od(r):null,i=r?My(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ol:l={x:a,y:t.y-n.height};break;case Gu:l={x:a,y:t.y+t.height};break;case Ku:l={x:t.x+t.width,y:s};break;case Ml:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?IH(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case _y:l[u]=l[u]-(t[d]/2-n[d]/2);break;case W3:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function V3(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,a=i===void 0?BFe:i,s=n.rootBoundary,l=s===void 0?g1e:s,u=n.elementContext,d=u===void 0?k2:u,c=n.altBoundary,f=c===void 0?!1:c,p=n.padding,v=p===void 0?0:p,h=b1e(typeof v!="number"?v:w1e(v,OC)),g=d===k2?LFe:k2,y=e.rects.popper,m=e.elements[f?g:d],b=pUe(Dy(m)?m:m.contextElement||k0(e.elements.popper),a,l),w=Oy(e.elements.reference),A=S1e({reference:w,element:y,placement:o}),S=hL(Object.assign({},y,A)),k=d===k2?S:w,M={top:b.top-k.top+h.top,bottom:k.bottom-b.bottom+h.bottom,left:b.left-k.left+h.left,right:k.right-b.right+h.right},D=e.modifiersData.offset;if(d===k2&&D){var P=D[o];Object.keys(M).forEach(function(O){var _=[Ku,Gu].indexOf(O)>=0?1:-1,B=[Ol,Gu].indexOf(O)>=0?"y":"x";M[O]+=P[B]*_})}return M}function hUe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?vp:l,d=My(r),c=d?s?aJ:aJ.filter(function(v){return My(v)===d}):OC,f=c.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=c);var p=f.reduce(function(v,h){return v[h]=V3(e,{placement:h,boundary:o,rootBoundary:i,padding:a})[Od(h)],v},{});return Object.keys(p).sort(function(v,h){return p[v]-p[h]})}function gUe(e){if(Od(e)===TH)return[];var t=mS(e);return[uJ(e),t,uJ(t)]}function vUe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,y=Od(g),m=y===g,b=l||(m||!v?[mS(g)]:gUe(g)),w=[g].concat(b).reduce(function(ie,ee){return ie.concat(Od(ee)===TH?hUe(t,{placement:ee,boundary:d,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:h}):ee)},[]),A=t.rects.reference,S=t.rects.popper,k=new Map,M=!0,D=w[0],P=0;P<w.length;P++){var O=w[P],_=Od(O),B=My(O)===_y,N=[Ol,Gu].indexOf(_)>=0,q=N?"width":"height",U=V3(t,{placement:O,boundary:d,rootBoundary:c,altBoundary:f,padding:u}),j=N?B?Ku:Ml:B?Gu:Ol;A[q]>S[q]&&(j=mS(j));var H=mS(j),G=[];if(i&&G.push(U[_]<=0),s&&G.push(U[j]<=0,U[H]<=0),G.every(function(ie){return ie})){D=O,M=!1;break}k.set(O,G)}if(M)for(var Z=v?3:1,$=function(ie){var ee=w.find(function(te){var X=k.get(te);if(X)return X.slice(0,ie).every(function(ue){return ue})});if(ee)return D=ee,"break"},L=Z;L>0;L--){var W=$(L);if(W==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}var mUe={name:"flip",enabled:!0,phase:"main",fn:vUe,requiresIfExists:["offset"],data:{_skip:!1}};function dJ(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fJ(e){return[Ol,Ku,Gu,Ml].some(function(t){return e[t]>=0})}function yUe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=V3(t,{elementContext:"reference"}),s=V3(t,{altBoundary:!0}),l=dJ(a,r),u=dJ(s,o,i),d=fJ(l),c=fJ(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}var bUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yUe};function wUe(e,t,n){var r=Od(e),o=[Ml,Ol].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ml,Ku].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function AUe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=vp.reduce(function(d,c){return d[c]=wUe(c,t.rects,i),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var CUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AUe};function xUe(e){var t=e.state,n=e.name;t.modifiersData[n]=S1e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var E1e={name:"popperOffsets",enabled:!0,phase:"read",fn:xUe,data:{}};function SUe(e){return e==="x"?"y":"x"}function EUe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,c=n.padding,f=n.tether,p=f===void 0?!0:f,v=n.tetherOffset,h=v===void 0?0:v,g=V3(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:d}),y=Od(t.placement),m=My(t.placement),b=!m,w=IH(y),A=SUe(w),S=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,D=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,P=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(S){if(i){var B,N=w==="y"?Ol:Ml,q=w==="y"?Gu:Ku,U=w==="y"?"height":"width",j=S[w],H=j+g[N],G=j-g[q],Z=p?-M[U]/2:0,$=m===_y?k[U]:M[U],L=m===_y?-M[U]:-k[U],W=t.elements.arrow,ie=p&&W?DH(W):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:y1e(),te=ee[N],X=ee[q],ue=K4(0,k[U],ie[U]),ve=b?k[U]/2-Z-ue-te-P.mainAxis:$-ue-te-P.mainAxis,Me=b?-k[U]/2+Z+ue+X+P.mainAxis:L+ue+X+P.mainAxis,we=t.elements.arrow&&MC(t.elements.arrow),he=we?w==="y"?we.clientTop||0:we.clientLeft||0:0,Te=(B=O?.[w])!=null?B:0,Y=j+ve-Te-he,be=j+Me-Te,De=K4(p?hE(H,Y):H,j,p?Gg(G,be):G);S[w]=De,_[w]=De-j}if(s){var pe,oe=w==="x"?Ol:Ml,ce=w==="x"?Gu:Ku,Re=S[A],Ee=A==="y"?"height":"width",Le=Re+g[oe],Fe=Re-g[ce],Pe=[Ol,Ml].indexOf(y)!==-1,Ne=(pe=O?.[A])!=null?pe:0,pt=Pe?Le:Re-k[Ee]-M[Ee]-Ne+P.altAxis,Rt=Pe?Re+k[Ee]+M[Ee]-Ne-P.altAxis:Fe,Bt=p&&Pe?XFe(pt,Re,Rt):K4(p?pt:Le,Re,p?Rt:Fe);S[A]=Bt,_[A]=Bt-Re}t.modifiersData[r]=_}}var kUe={name:"preventOverflow",enabled:!0,phase:"main",fn:EUe,requiresIfExists:["offset"]};function TUe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _Ue(e){return e===Qc(e)||!$u(e)?OH(e):TUe(e)}function DUe(e){var t=e.getBoundingClientRect(),n=Iy(t.width)/e.offsetWidth||1,r=Iy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function IUe(e,t,n){n===void 0&&(n=!1);var r=$u(t),o=$u(t)&&DUe(t),i=k0(t),a=Oy(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ud(t)!=="body"||PH(i))&&(s=_Ue(t)),$u(t)?(l=Oy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=MH(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function OUe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function MUe(e){var t=OUe(e);return GFe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function PUe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function NUe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var pJ={placement:"bottom",modifiers:[],strategy:"absolute"};function hJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function NH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?pJ:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pJ,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},d=[],c=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Dy(a)?Q4(a):a.contextElement?Q4(a.contextElement):[],popper:Q4(s)};var y=MUe(NUe([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(m){return m.enabled}),p(),f.update()},forceUpdate:function(){if(!c){var h=u.elements,g=h.reference,y=h.popper;if(hJ(g,y)){u.rects={reference:IUe(g,MC(y),u.options.strategy==="fixed"),popper:DH(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var m=0;m<u.orderedModifiers.length;m++){if(u.reset===!0){u.reset=!1,m=-1;continue}var b=u.orderedModifiers[m],w=b.fn,A=b.options,S=A===void 0?{}:A,k=b.name;typeof w=="function"&&(u=w({state:u,options:S,name:k,instance:f})||u)}}}},update:PUe(function(){return new Promise(function(h){f.forceUpdate(),h(u)})}),destroy:function(){v(),c=!0}};if(!hJ(a,s))return f;f.setOptions(l).then(function(h){!c&&l.onFirstUpdate&&l.onFirstUpdate(h)});function p(){u.orderedModifiers.forEach(function(h){var g=h.name,y=h.options,m=y===void 0?{}:y,b=h.effect;if(typeof b=="function"){var w=b({state:u,name:g,instance:f,options:m}),A=function(){};d.push(w||A)}})}function v(){d.forEach(function(h){return h()}),d=[]}return f}}NH();var RUe=[C1e,E1e,A1e,v1e];NH({defaultModifiers:RUe});var BUe=[C1e,E1e,A1e,v1e,CUe,mUe,kUe,nUe,bUe],LUe=NH({defaultModifiers:BUe});const k1e=Kt({arrowOffset:{type:Number,default:5}}),FUe=["fixed","absolute"],UUe=Kt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:it(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:vp,default:"bottom"},popperOptions:{type:it(Object),default:()=>({})},strategy:{type:String,values:FUe,default:"absolute"}}),T1e=Kt({...UUe,...k1e,id:String,style:{type:it([String,Array,Object])},className:{type:it([String,Array,Object])},effect:{type:it(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:it([String,Array,Object])},popperStyle:{type:it([String,Array,Object])},referenceEl:{type:it(Object)},triggerTargetEl:{type:it(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Es(["ariaLabel"])}),$Ue={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},zUe=(e,t)=>{const n=Q(!1),r=Q();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},jUe=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...WUe(e),...t]};return VUe(i,o?.modifiers),i},HUe=e=>{if(Kr)return Sa(e)};function WUe(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function VUe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const qUe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=GUe(l);Object.assign(a.value,u)},requires:["computeStyles"]},o=J(()=>{const{onFirstUpdate:l,placement:u,strategy:d,modifiers:c}=C(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:d||"absolute",modifiers:[...c||[],r,{name:"applyStyles",enabled:!1}]}}),i=Uo(),a=Q({styles:{popper:{position:C(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return St(o,l=>{const u=C(i);u&&u.setOptions(l)},{deep:!0}),St([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=LUe(l,u,C(o)))}),Qr(()=>{s()}),{state:J(()=>{var l;return{...((l=C(i))==null?void 0:l.state)||{}}}),styles:J(()=>C(a).styles),attributes:J(()=>C(a).attributes),update:()=>{var l;return(l=C(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=C(i))==null?void 0:l.forceUpdate()},instanceRef:J(()=>C(i))}};function GUe(e){const t=Object.keys(e.elements),n=z3(t.map(o=>[o,e.styles[o]||{}])),r=z3(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const KUe=0,QUe=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=cn(xH,void 0),i=Q(),a=J(()=>e.arrowOffset),s=J(()=>({name:"eventListeners",enabled:!!e.visible})),l=J(()=>{var y;const m=C(i),b=(y=C(a))!=null?y:KUe;return{name:"arrow",enabled:!ZNe(m),options:{element:m,padding:b}}}),u=J(()=>({onFirstUpdate:()=>{v()},...jUe(e,[C(l),C(s)])})),d=J(()=>HUe(e.referenceEl)||C(r)),{attributes:c,state:f,styles:p,update:v,forceUpdate:h,instanceRef:g}=qUe(d,n,u);return St(g,y=>t.value=y,{flush:"sync"}),jn(()=>{St(()=>{var y;return(y=C(d))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:c,arrowRef:i,contentRef:n,instanceRef:g,state:f,styles:p,role:o,forceUpdate:h,update:v}},YUe=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Mb(),i=zt("popper"),a=J(()=>C(t).popper),s=Q(Ln(e.zIndex)?e.zIndex:o()),l=J(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=J(()=>[{zIndex:C(s)},C(n).popper,e.popperStyle||{}]),d=J(()=>r.value==="dialog"?"false":void 0),c=J(()=>C(n).arrow||{});return{ariaModal:d,arrowStyle:c,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=Ln(e.zIndex)?e.zIndex:o()}}},ZUe=tt({name:"ElPopperContent"}),XUe=tt({...ZUe,props:T1e,emits:$Ue,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=zUe(r,n),{attributes:c,arrowRef:f,contentRef:p,styles:v,instanceRef:h,role:g,update:y}=QUe(r),{ariaModal:m,arrowStyle:b,contentAttrs:w,contentClass:A,contentStyle:S,updateZIndex:k}=YUe(r,{styles:v,attributes:c,role:g}),M=cn(Fd,void 0);Sr(s1e,{arrowStyle:b,arrowRef:f}),M&&Sr(Fd,{...M,addInputId:go,removeInputId:go});let D;const P=(_=!0)=>{y(),_&&k()},O=()=>{P(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return jn(()=>{St(()=>r.triggerTargetEl,(_,B)=>{D?.(),D=void 0;const N=C(_||p.value),q=C(B||p.value);al(N)&&(D=St([g,()=>r.ariaLabel,m,()=>r.id],U=>{["role","aria-label","aria-modal","id"].forEach((j,H)=>{Zi(U[H])?N.removeAttribute(j):N.setAttribute(j,U[H])})},{immediate:!0})),q!==N&&al(q)&&["role","aria-label","aria-modal","id"].forEach(U=>{q.removeAttribute(U)})},{immediate:!0}),St(()=>r.visible,O,{immediate:!0})}),Qr(()=>{D?.(),D=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:P,contentStyle:S}),(_,B)=>(F(),K("div",pr({ref_key:"contentRef",ref:p},C(w),{style:C(S),class:C(A),tabindex:"-1",onMouseenter:N=>_.$emit("mouseenter",N),onMouseleave:N=>_.$emit("mouseleave",N)}),[Ve(C(Rb),{trapped:C(i),"trap-on-focus-in":!0,"focus-trap-el":C(p),"focus-start-el":C(o),onFocusAfterTrapped:C(s),onFocusAfterReleased:C(a),onFocusin:C(l),onFocusoutPrevented:C(u),onReleaseRequested:C(d)},{default:nt(()=>[ft(_.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var JUe=Jt(XUe,[["__file","content.vue"]]);const _1e=er(hFe),RH=Symbol("elTooltip"),tD=Kt({to:{type:it([String,Object]),required:!0},disabled:Boolean}),oi=Kt({...qme,...T1e,appendTo:{type:tD.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:it(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Es(["ariaLabel"])}),Z1=Kt({...c1e,disabled:Boolean,trigger:{type:it([String,Array]),default:"hover"},triggerKeys:{type:it(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space]}}),e$e=Gc({type:it(Boolean),default:null}),t$e=Gc({type:it(Function)}),n$e=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:e$e,[n]:t$e};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:c})=>{const f=vr(),{emit:p}=f,v=f.props,h=J(()=>Pn(v[n])),g=J(()=>v[e]===null),y=k=>{a.value!==!0&&(a.value=!0,s&&(s.value=k),Pn(d)&&d(k))},m=k=>{a.value!==!1&&(a.value=!1,s&&(s.value=k),Pn(c)&&c(k))},b=k=>{if(v.disabled===!0||Pn(u)&&!u())return;const M=h.value&&Kr;M&&p(t,!0),(g.value||!M)&&y(k)},w=k=>{if(v.disabled===!0||!Kr)return;const M=h.value&&Kr;M&&p(t,!1),(g.value||!M)&&m(k)},A=k=>{Co(k)&&(v.disabled&&k?h.value&&p(t,!1):a.value!==k&&(k?y():m()))},S=()=>{a.value?w():b()};return St(()=>v[e],A),l&&f.appContext.config.globalProperties.$route!==void 0&&St(()=>({...f.proxy.$route}),()=>{l.value&&a.value&&w()}),jn(()=>{A(v[e])}),{hide:w,show:b,toggle:S,hasUpdateHandler:h}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:r$e,useModelToggleEmits:o$e,useModelToggle:i$e}=n$e("visible"),a$e=Kt({...u1e,...r$e,...oi,...Z1,...k1e,showArrow:{type:Boolean,default:!0}}),s$e=[...o$e,"before-show","before-hide","show","hide","open","close"],l$e=(e,t)=>qt(e)?e.includes(t):e===t,Im=(e,t,n)=>r=>{l$e(C(e),t)&&n(r)},Ni=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=e?.(o);if(n===!1||!i)return t?.(o)},gJ=e=>t=>t.pointerType==="mouse"?e(t):void 0,u$e=tt({name:"ElTooltipTrigger"}),c$e=tt({...u$e,props:Z1,setup(e,{expose:t}){const n=e,r=zt("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=cn(RH,void 0),d=Q(null),c=()=>{if(C(o)||n.disabled)return!0},f=ao(n,"trigger"),p=Ni(c,Im(f,"hover",s)),v=Ni(c,Im(f,"hover",l)),h=Ni(c,Im(f,"click",w=>{w.button===0&&u(w)})),g=Ni(c,Im(f,"focus",s)),y=Ni(c,Im(f,"focus",l)),m=Ni(c,Im(f,"contextmenu",w=>{w.preventDefault(),u(w)})),b=Ni(c,w=>{const{code:A}=w;n.triggerKeys.includes(A)&&(w.preventDefault(),u(w))});return t({triggerRef:d}),(w,A)=>(F(),mt(C(xFe),{id:C(i),"virtual-ref":w.virtualRef,open:C(a),"virtual-triggering":w.virtualTriggering,class:re(C(r).e("trigger")),onBlur:C(y),onClick:C(h),onContextmenu:C(m),onFocus:C(g),onMouseenter:C(p),onMouseleave:C(v),onKeydown:C(b)},{default:nt(()=>[ft(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var d$e=Jt(c$e,[["__file","trigger.vue"]]);const f$e=tt({__name:"teleport",props:tD,setup(e){return(t,n)=>t.disabled?ft(t.$slots,"default",{key:0}):(F(),mt(WB,{key:1,to:t.to},[ft(t.$slots,"default")],8,["to"]))}});var p$e=Jt(f$e,[["__file","teleport.vue"]]);const Bb=er(p$e),D1e=()=>{const e=Qj(),t=AH(),n=J(()=>`${e.value}-popper-container-${t.prefix}`),r=J(()=>`#${n.value}`);return{id:n,selector:r}},h$e=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},g$e=()=>{const{id:e,selector:t}=D1e();return __(()=>{Kr&&(document.body.querySelector(t.value)||h$e(e.value))}),{id:e,selector:t}},v$e=tt({name:"ElTooltipContent",inheritAttrs:!1}),m$e=tt({...v$e,props:oi,setup(e,{expose:t}){const n=e,{selector:r}=D1e(),o=zt("tooltip"),i=Q(),a=dE(()=>{var H;return(H=i.value)==null?void 0:H.popperContentRef});let s;const{controlled:l,id:u,open:d,trigger:c,onClose:f,onOpen:p,onShow:v,onHide:h,onBeforeShow:g,onBeforeHide:y}=cn(RH,void 0),m=J(()=>n.transition||`${o.namespace.value}-fade-in-linear`),b=J(()=>n.persistent);Qr(()=>{s?.()});const w=J(()=>C(b)?!0:C(d)),A=J(()=>n.disabled?!1:C(d)),S=J(()=>n.appendTo||r.value),k=J(()=>{var H;return(H=n.style)!=null?H:{}}),M=Q(!0),D=()=>{h(),j()&&bf(document.body),M.value=!0},P=()=>{if(C(l))return!0},O=Ni(P,()=>{n.enterable&&C(c)==="hover"&&p()}),_=Ni(P,()=>{C(c)==="hover"&&f()}),B=()=>{var H,G;(G=(H=i.value)==null?void 0:H.updatePopper)==null||G.call(H),g?.()},N=()=>{y?.()},q=()=>{v()},U=()=>{n.virtualTriggering||f()},j=H=>{var G;const Z=(G=i.value)==null?void 0:G.popperContentRef,$=H?.relatedTarget||document.activeElement;return Z?.contains($)};return St(()=>C(d),H=>{H?(M.value=!1,s=fH(a,()=>{if(C(l))return;C(c)!=="hover"&&f()})):s?.()},{flush:"post"}),St(()=>n.content,()=>{var H,G;(G=(H=i.value)==null?void 0:H.updatePopper)==null||G.call(H)}),t({contentRef:i,isFocusInsideContent:j}),(H,G)=>(F(),mt(C(Bb),{disabled:!H.teleported,to:C(S)},{default:nt(()=>[C(w)||!M.value?(F(),mt(Wi,{key:0,name:C(m),appear:!C(b),onAfterLeave:D,onBeforeEnter:B,onAfterEnter:q,onBeforeLeave:N,persisted:""},{default:nt(()=>[ln(Ve(C(JUe),pr({id:C(u),ref_key:"contentRef",ref:i},H.$attrs,{"aria-label":H.ariaLabel,"aria-hidden":M.value,"boundaries-padding":H.boundariesPadding,"fallback-placements":H.fallbackPlacements,"gpu-acceleration":H.gpuAcceleration,offset:H.offset,placement:H.placement,"popper-options":H.popperOptions,"arrow-offset":H.arrowOffset,strategy:H.strategy,effect:H.effect,enterable:H.enterable,pure:H.pure,"popper-class":H.popperClass,"popper-style":[H.popperStyle,C(k)],"reference-el":H.referenceEl,"trigger-target-el":H.triggerTargetEl,visible:C(A),"z-index":H.zIndex,onMouseenter:C(O),onMouseleave:C(_),onBlur:U,onClose:C(f)}),{default:nt(()=>[ft(H.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[Ar,C(A)]])]),_:3},8,["name","appear"])):xe("v-if",!0)]),_:3},8,["disabled","to"]))}});var y$e=Jt(m$e,[["__file","content.vue"]]);const b$e=tt({name:"ElTooltip"}),w$e=tt({...b$e,props:a$e,emits:s$e,setup(e,{expose:t,emit:n}){const r=e;g$e();const o=zt("tooltip"),i=fs(),a=Q(),s=Q(),l=()=>{var b;const w=C(a);w&&((b=w.popperInstanceRef)==null||b.update())},u=Q(!1),d=Q(),{show:c,hide:f,hasUpdateHandler:p}=i$e({indicator:u,toggleReason:d}),{onOpen:v,onClose:h}=Gme({showAfter:ao(r,"showAfter"),hideAfter:ao(r,"hideAfter"),autoClose:ao(r,"autoClose"),open:c,close:f}),g=J(()=>Co(r.visible)&&!p.value),y=J(()=>[o.b(),r.popperClass]);Sr(RH,{controlled:g,id:i,open:Cb(u),trigger:ao(r,"trigger"),onOpen:v,onClose:h,onToggle:b=>{C(u)?h(b):v(b)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:l}),St(()=>r.disabled,b=>{b&&u.value&&(u.value=!1)});const m=b=>{var w;return(w=s.value)==null?void 0:w.isFocusInsideContent(b)};return cge(()=>u.value&&f()),t({popperRef:a,contentRef:s,isFocusInsideContent:m,updatePopper:l,onOpen:v,onClose:h,hide:f}),(b,w)=>(F(),mt(C(_1e),{ref_key:"popperRef",ref:a,role:b.role},{default:nt(()=>[Ve(d$e,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:nt(()=>[b.$slots.default?ft(b.$slots,"default",{key:0}):xe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Ve(y$e,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":C(y),"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,"arrow-offset":b.arrowOffset,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:nt(()=>[ft(b.$slots,"content",{},()=>[b.rawContent?(F(),K("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(F(),K("span",{key:1},We(b.content),1))]),b.showArrow?(F(),mt(C(mFe),{key:0})):xe("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var A$e=Jt(w$e,[["__file","tooltip.vue"]]);const ps=er(A$e),C$e=Kt({...DC,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:it(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:it([Function,Array]),default:go},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:oi.teleported,appendTo:oi.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean}),x$e={[Gn]:e=>In(e),[ma]:e=>In(e),[Tr]:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ar(e)},I1e="ElAutocomplete",S$e=tt({name:I1e,inheritAttrs:!1}),E$e=tt({...S$e,props:C$e,emits:x$e,setup(e,{expose:t,emit:n}){const r=e,o=J(()=>ru(r,Object.keys(DC))),i=fp(),a=Wa(),s=zt("autocomplete"),l=Q(),u=Q(),d=Q(),c=Q();let f=!1,p=!1;const v=Q([]),h=Q(-1),g=Q(""),y=Q(!1),m=Q(!1),b=Q(!1),w=fs(),A=J(()=>i.style),S=J(()=>(v.value.length>0||b.value)&&y.value),k=J(()=>!r.hideLoading&&b.value),M=J(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),D=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},P=()=>{h.value=-1},O=async X=>{if(m.value)return;const ue=ve=>{b.value=!1,!m.value&&(qt(ve)?(v.value=ve,h.value=r.highlightFirstItem?0:-1):Xi(I1e,"autocomplete suggestions must be an array"))};if(b.value=!0,qt(r.fetchSuggestions))ue(r.fetchSuggestions);else{const ve=await r.fetchSuggestions(X,ue);qt(ve)&&ue(ve)}},_=Fl(O,r.debounce),B=X=>{const ue=!!X;if(n(ma,X),n(Gn,X),m.value=!1,y.value||(y.value=ue),!r.triggerOnFocus&&!X){m.value=!0,v.value=[];return}_(X)},N=X=>{var ue;a.value||(((ue=X.target)==null?void 0:ue.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(y.value=!0)},q=X=>{n(Tr,X)},U=X=>{var ue;if(p)p=!1;else{y.value=!0,n("focus",X);const ve=(ue=r.modelValue)!=null?ue:"";r.triggerOnFocus&&!f&&_(String(ve))}},j=X=>{setTimeout(()=>{var ue;if((ue=d.value)!=null&&ue.isFocusInsideContent()){p=!0;return}y.value&&$(),n("blur",X)})},H=()=>{y.value=!1,n(Gn,""),n("clear")},G=async()=>{S.value&&h.value>=0&&h.value<v.value.length?ie(v.value[h.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],h.value=-1)},Z=X=>{S.value&&(X.preventDefault(),X.stopPropagation(),$())},$=()=>{y.value=!1},L=()=>{var X;(X=l.value)==null||X.focus()},W=()=>{var X;(X=l.value)==null||X.blur()},ie=async X=>{n(ma,X[r.valueKey]),n(Gn,X[r.valueKey]),n("select",X),v.value=[],h.value=-1},ee=X=>{if(!S.value||b.value)return;if(X<0){h.value=-1;return}X>=v.value.length&&(X=v.value.length-1);const ue=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Me=ue.querySelectorAll(`.${s.be("suggestion","list")} li`)[X],we=ue.scrollTop,{offsetTop:he,scrollHeight:Te}=Me;he+Te>we+ue.clientHeight&&(ue.scrollTop+=Te),he<we&&(ue.scrollTop-=Te),h.value=X,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${h.value}`)},te=fH(c,()=>{var X;(X=d.value)!=null&&X.isFocusInsideContent()||S.value&&$()});return Qr(()=>{te?.()}),jn(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${h.value}`),f=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:h,activated:y,loading:b,inputRef:l,popperRef:d,suggestions:v,handleSelect:ie,handleKeyEnter:G,focus:L,blur:W,close:$,highlight:ee,getData:O}),(X,ue)=>(F(),mt(C(ps),{ref_key:"popperRef",ref:d,visible:C(S),placement:X.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[C(s).e("popper"),X.popperClass],teleported:X.teleported,"append-to":X.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${C(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:D,onHide:P},{content:nt(()=>[x("div",{ref_key:"regionRef",ref:u,class:re([C(s).b("suggestion"),C(s).is("loading",C(k))]),style:Xt({[X.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[X.$slots.header?(F(),K("div",{key:0,class:re(C(s).be("suggestion","header")),onClick:Qt(()=>{},["stop"])},[ft(X.$slots,"header")],10,["onClick"])):xe("v-if",!0),Ve(C(Lc),{id:C(w),tag:"ul","wrap-class":C(s).be("suggestion","wrap"),"view-class":C(s).be("suggestion","list"),role:"listbox"},{default:nt(()=>[C(k)?(F(),K("li",{key:0},[ft(X.$slots,"loading",{},()=>[Ve(C(Dn),{class:re(C(s).is("loading"))},{default:nt(()=>[Ve(C(Bc))]),_:1},8,["class"])])])):(F(!0),K(Pt,{key:1},an(v.value,(ve,Me)=>(F(),K("li",{id:`${C(w)}-item-${Me}`,key:Me,class:re({highlighted:h.value===Me}),role:"option","aria-selected":h.value===Me,onClick:we=>ie(ve)},[ft(X.$slots,"default",{item:ve},()=>[xn(We(ve[X.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),X.$slots.footer?(F(),K("div",{key:1,class:re(C(s).be("suggestion","footer")),onClick:Qt(()=>{},["stop"])},[ft(X.$slots,"footer")],10,["onClick"])):xe("v-if",!0)],6)]),default:nt(()=>[x("div",{ref_key:"listboxRef",ref:c,class:re([C(s).b(),X.$attrs.class]),style:Xt(C(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":C(S),"aria-owns":C(w)},[Ve(C(Us),pr({ref_key:"inputRef",ref:l},pr(C(o),X.$attrs),{"model-value":X.modelValue,disabled:C(a),onInput:B,onChange:q,onFocus:U,onBlur:j,onClear:H,onKeydown:[Lr(Qt(ve=>ee(h.value-1),["prevent"]),["up"]),Lr(Qt(ve=>ee(h.value+1),["prevent"]),["down"]),Lr(G,["enter"]),Lr($,["tab"]),Lr(Z,["esc"])],onMousedown:N}),Ll({_:2},[X.$slots.prepend?{name:"prepend",fn:nt(()=>[ft(X.$slots,"prepend")])}:void 0,X.$slots.append?{name:"append",fn:nt(()=>[ft(X.$slots,"append")])}:void 0,X.$slots.prefix?{name:"prefix",fn:nt(()=>[ft(X.$slots,"prefix")])}:void 0,X.$slots.suffix?{name:"suffix",fn:nt(()=>[ft(X.$slots,"suffix")])}:void 0]),1040,["model-value","disabled","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var k$e=Jt(E$e,[["__file","autocomplete.vue"]]);const T$e=er(k$e),_$e=Kt({size:{type:[Number,String],values:Qd,default:"",validator:e=>Ln(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:vo},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:it(String),default:"cover"}}),D$e={error:e=>e instanceof Event},I$e=tt({name:"ElAvatar"}),O$e=tt({...I$e,props:_$e,emits:D$e,setup(e,{emit:t}){const n=e,r=zt("avatar"),o=Q(!1),i=J(()=>{const{size:u,icon:d,shape:c}=n,f=[r.b()];return In(u)&&f.push(r.m(u)),d&&f.push(r.m("icon")),c&&f.push(r.m(c)),f}),a=J(()=>{const{size:u}=n;return Ln(u)?r.cssVarBlock({size:_i(u)||""}):void 0}),s=J(()=>({objectFit:n.fit}));St(()=>n.src,()=>o.value=!1);function l(u){o.value=!0,t("error",u)}return(u,d)=>(F(),K("span",{class:re(C(i)),style:Xt(C(a))},[(u.src||u.srcSet)&&!o.value?(F(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Xt(C(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(F(),mt(C(Dn),{key:1},{default:nt(()=>[(F(),mt(hr(u.icon)))]),_:1})):ft(u.$slots,"default",{key:2})],6))}});var M$e=Jt(O$e,[["__file","avatar.vue"]]);const P$e=er(M$e),N$e={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},R$e={click:e=>e instanceof MouseEvent},B$e=(e,t,n)=>{const r=Uo(),o=Uo(),i=Q(!1),a=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var d;(d=r.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=Ime(a,300,!0);return Mo(o,"scroll",l),jn(()=>{var u;o.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||Xi(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},O1e="ElBacktop",L$e=tt({name:O1e}),F$e=tt({...L$e,props:N$e,emits:R$e,setup(e,{emit:t}){const n=e,r=zt("backtop"),{handleClick:o,visible:i}=B$e(n,t,O1e),a=J(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(F(),mt(Wi,{name:`${C(r).namespace.value}-fade-in`},{default:nt(()=>[C(i)?(F(),K("div",{key:0,style:Xt(C(a)),class:re(C(r).b()),onClick:Qt(C(o),["stop"])},[ft(s.$slots,"default",{},()=>[Ve(C(Dn),{class:re(C(r).e("icon"))},{default:nt(()=>[Ve(C(DBe))]),_:1},8,["class"])])],14,["onClick"])):xe("v-if",!0)]),_:3},8,["name"]))}});var U$e=Jt(F$e,[["__file","backtop.vue"]]);const $$e=er(U$e),z$e=Kt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:it([String,Object,Array])},offset:{type:it(Array),default:[0,0]},badgeClass:{type:String}}),j$e=tt({name:"ElBadge"}),H$e=tt({...j$e,props:z$e,setup(e,{expose:t}){const n=e,r=zt("badge"),o=J(()=>n.isDot?"":Ln(n.value)&&Ln(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=J(()=>{var a,s,l,u,d;return[{backgroundColor:n.color,marginRight:_i(-((s=(a=n.offset)==null?void 0:a[0])!=null?s:0)),marginTop:_i((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(a,s)=>(F(),K("div",{class:re(C(r).b())},[ft(a.$slots,"default"),Ve(Wi,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:nt(()=>[ln(x("sup",{class:re([C(r).e("content"),C(r).em("content",a.type),C(r).is("fixed",!!a.$slots.default),C(r).is("dot",a.isDot),C(r).is("hide-zero",!a.showZero&&n.value===0),a.badgeClass]),style:Xt(C(i))},[ft(a.$slots,"content",{value:C(o)},()=>[xn(We(C(o)),1)])],6),[[Ar,!a.hidden&&(C(o)||a.isDot||a.$slots.content)]])]),_:3},8,["name"])],2))}});var W$e=Jt(H$e,[["__file","badge.vue"]]);const M1e=er(W$e),P1e=Symbol("breadcrumbKey"),V$e=Kt({separator:{type:String,default:"/"},separatorIcon:{type:vo}}),q$e=tt({name:"ElBreadcrumb"}),G$e=tt({...q$e,props:V$e,setup(e){const t=e,{t:n}=Hr(),r=zt("breadcrumb"),o=Q();return Sr(P1e,t),jn(()=>{const i=o.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(F(),K("div",{ref_key:"breadcrumb",ref:o,class:re(C(r).b()),"aria-label":C(n)("el.breadcrumb.label"),role:"navigation"},[ft(i.$slots,"default")],10,["aria-label"]))}});var K$e=Jt(G$e,[["__file","breadcrumb.vue"]]);const Q$e=Kt({to:{type:it([String,Object]),default:""},replace:Boolean}),Y$e=tt({name:"ElBreadcrumbItem"}),Z$e=tt({...Y$e,props:Q$e,setup(e){const t=e,n=vr(),r=cn(P1e,void 0),o=zt("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=Q(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var d,c;return F(),K("span",{class:re(C(o).e("item"))},[x("span",{ref_key:"link",ref:a,class:re([C(o).e("inner"),C(o).is("link",!!l.to)]),role:"link",onClick:s},[ft(l.$slots,"default")],2),(d=C(r))!=null&&d.separatorIcon?(F(),mt(C(Dn),{key:0,class:re(C(o).e("separator"))},{default:nt(()=>[(F(),mt(hr(C(r).separatorIcon)))]),_:1},8,["class"])):(F(),K("span",{key:1,class:re(C(o).e("separator")),role:"presentation"},We((c=C(r))==null?void 0:c.separator),3))],2)}}});var N1e=Jt(Z$e,[["__file","breadcrumb-item.vue"]]);const X$e=er(K$e,{BreadcrumbItem:N1e}),J$e=vi(N1e),R1e=Symbol("buttonGroupContextKey"),Lf=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{St(()=>C(a),s=>{},{immediate:!0})},eze=(e,t)=>{Lf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},J(()=>e.type==="text"));const n=cn(R1e,void 0),r=Pb("button"),{form:o}=ks(),i=fa(J(()=>n?.size)),a=Wa(),s=Q(),l=pa(),u=J(()=>{var y;return e.type||n?.type||((y=r.value)==null?void 0:y.type)||""}),d=J(()=>{var y,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?b:!1}),c=J(()=>{var y,m,b;return(b=(m=e.plain)!=null?m:(y=r.value)==null?void 0:y.plain)!=null?b:!1}),f=J(()=>{var y,m,b;return(b=(m=e.round)!=null?m:(y=r.value)==null?void 0:y.round)!=null?b:!1}),p=J(()=>{var y,m,b;return(b=(m=e.text)!=null?m:(y=r.value)==null?void 0:y.text)!=null?b:!1}),v=J(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=J(()=>{var y;const m=(y=l.default)==null?void 0:y.call(l);if(d.value&&m?.length===1){const b=m[0];if(b?.type===Sb){const w=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(w.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:s,_props:v,_plain:c,_round:f,_text:p,shouldAddSpace:h,handleClick:y=>{if(a.value||e.loading){y.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",y)}}},gL=["default","primary","success","warning","info","danger","text",""],tze=["button","submit","reset"],vL=Kt({size:ba,disabled:Boolean,type:{type:String,values:gL,default:""},icon:{type:vo},nativeType:{type:String,values:tze,default:"button"},loading:Boolean,loadingIcon:{type:vo,default:()=>Bc},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:it([String,Object]),default:"button"}}),nze={click:e=>e instanceof MouseEvent};function xs(e,t){rze(e)&&(e="100%");var n=oze(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gx(e){return Math.min(1,Math.max(0,e))}function rze(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function oze(e){return typeof e=="string"&&e.indexOf("%")!==-1}function B1e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ng(e){return e.length===1?"0"+e:String(e)}function ize(e,t,n){return{r:xs(e,255)*255,g:xs(t,255)*255,b:xs(n,255)*255}}function vJ(e,t,n){e=xs(e,255),t=xs(t,255),n=xs(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function cI(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aze(e,t,n){var r,o,i;if(e=xs(e,360),t=xs(t,100),n=xs(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=cI(s,a,e+1/3),o=cI(s,a,e),i=cI(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function mJ(e,t,n){e=xs(e,255),t=xs(t,255),n=xs(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function sze(e,t,n){e=xs(e,360)*6,t=xs(t,100),n=xs(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],c=[i,i,s,n,n,a][l];return{r:u*255,g:d*255,b:c*255}}function yJ(e,t,n,r){var o=[Ng(Math.round(e).toString(16)),Ng(Math.round(t).toString(16)),Ng(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function lze(e,t,n,r,o){var i=[Ng(Math.round(e).toString(16)),Ng(Math.round(t).toString(16)),Ng(Math.round(n).toString(16)),Ng(uze(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function uze(e){return Math.round(parseFloat(e)*255).toString(16)}function bJ(e){return Ql(e)/255}function Ql(e){return parseInt(e,16)}function cze(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var mL={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function dze(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=hze(e)),typeof e=="object"&&(lf(e.r)&&lf(e.g)&&lf(e.b)?(t=ize(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):lf(e.h)&&lf(e.s)&&lf(e.v)?(r=vx(e.s),o=vx(e.v),t=sze(e.h,r,o),a=!0,s="hsv"):lf(e.h)&&lf(e.s)&&lf(e.l)&&(r=vx(e.s),i=vx(e.l),t=aze(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=B1e(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var fze="[-\\+]?\\d+%?",pze="[-\\+]?\\d*\\.\\d+%?",hh="(?:".concat(pze,")|(?:").concat(fze,")"),dI="[\\s|\\(]+(".concat(hh,")[,|\\s]+(").concat(hh,")[,|\\s]+(").concat(hh,")\\s*\\)?"),fI="[\\s|\\(]+(".concat(hh,")[,|\\s]+(").concat(hh,")[,|\\s]+(").concat(hh,")[,|\\s]+(").concat(hh,")\\s*\\)?"),dc={CSS_UNIT:new RegExp(hh),rgb:new RegExp("rgb"+dI),rgba:new RegExp("rgba"+fI),hsl:new RegExp("hsl"+dI),hsla:new RegExp("hsla"+fI),hsv:new RegExp("hsv"+dI),hsva:new RegExp("hsva"+fI),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function hze(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mL[e])e=mL[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=dc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=dc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=dc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=dc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=dc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=dc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=dc.hex8.exec(e),n?{r:Ql(n[1]),g:Ql(n[2]),b:Ql(n[3]),a:bJ(n[4]),format:t?"name":"hex8"}:(n=dc.hex6.exec(e),n?{r:Ql(n[1]),g:Ql(n[2]),b:Ql(n[3]),format:t?"name":"hex"}:(n=dc.hex4.exec(e),n?{r:Ql(n[1]+n[1]),g:Ql(n[2]+n[2]),b:Ql(n[3]+n[3]),a:bJ(n[4]+n[4]),format:t?"name":"hex8"}:(n=dc.hex3.exec(e),n?{r:Ql(n[1]+n[1]),g:Ql(n[2]+n[2]),b:Ql(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function lf(e){return!!dc.CSS_UNIT.exec(String(e))}var N1=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=cze(t)),this.originalInput=t;var o=dze(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=B1e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=mJ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=mJ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=vJ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=vJ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),yJ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),lze(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xs(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xs(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+yJ(this.r,this.g,this.b,!1),n=0,r=Object.entries(mL);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gx(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gx(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gx(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gx(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Dp(e,t=20){return e.mix("#141414",t).toString()}function gze(e){const t=Wa(),n=zt("button");return J(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new N1(o),s=e.dark?a.tint(20).toString():Dp(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Dp(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Dp(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Dp(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Dp(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Dp(a,80):a.tint(80).toString());else{const l=e.dark?Dp(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?Dp(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=d}}}return r})}const vze=tt({name:"ElButton"}),mze=tt({...vze,props:vL,emits:nze,setup(e,{expose:t,emit:n}){const r=e,o=gze(r),i=zt("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:d,_plain:c,_round:f,_text:p,shouldAddSpace:v,handleClick:h}=eze(r,n),g=J(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",c.value),i.is("round",f.value),i.is("circle",r.circle),i.is("text",p.value),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:v}),(y,m)=>(F(),mt(hr(y.tag),pr({ref_key:"_ref",ref:a},C(d),{class:C(g),style:C(o),onClick:C(h)}),{default:nt(()=>[y.loading?(F(),K(Pt,{key:0},[y.$slots.loading?ft(y.$slots,"loading",{key:0}):(F(),mt(C(Dn),{key:1,class:re(C(i).is("loading"))},{default:nt(()=>[(F(),mt(hr(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(F(),mt(C(Dn),{key:1},{default:nt(()=>[y.icon?(F(),mt(hr(y.icon),{key:0})):ft(y.$slots,"icon",{key:1})]),_:3})):xe("v-if",!0),y.$slots.default?(F(),K("span",{key:2,class:re({[C(i).em("text","expand")]:C(v)})},[ft(y.$slots,"default")],2)):xe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var yze=Jt(mze,[["__file","button.vue"]]);const bze={size:vL.size,type:vL.type},wze=tt({name:"ElButtonGroup"}),Aze=tt({...wze,props:bze,setup(e){const t=e;Sr(R1e,Ur({size:ao(t,"size"),type:ao(t,"type")}));const n=zt("button");return(r,o)=>(F(),K("div",{class:re(C(n).b("group"))},[ft(r.$slots,"default")],2))}});var L1e=Jt(Aze,[["__file","button-group.vue"]]);const Za=er(yze,{ButtonGroup:L1e}),F1e=vi(L1e);var $s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cze(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var yS={exports:{}},xze=yS.exports,wJ;function Sze(){return wJ||(wJ=1,(function(e,t){(function(n,r){e.exports=r()})(xze,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",d="week",c="month",f="quarter",p="year",v="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var q=["th","st","nd","rd"],U=N%100;return"["+N+(q[(U-20)%10]||q[U]||q[0])+"]"}},b=function(N,q,U){var j=String(N);return!j||j.length>=q?N:""+Array(q+1-j.length).join(U)+N},w={s:b,z:function(N){var q=-N.utcOffset(),U=Math.abs(q),j=Math.floor(U/60),H=U%60;return(q<=0?"+":"-")+b(j,2,"0")+":"+b(H,2,"0")},m:function N(q,U){if(q.date()<U.date())return-N(U,q);var j=12*(U.year()-q.year())+(U.month()-q.month()),H=q.clone().add(j,c),G=U-H<0,Z=q.clone().add(j+(G?-1:1),c);return+(-(j+(U-H)/(G?H-Z:Z-H))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:c,y:p,w:d,d:u,D:v,h:l,m:s,s:a,ms:i,Q:f}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},A="en",S={};S[A]=m;var k="$isDayjsObject",M=function(N){return N instanceof _||!(!N||!N[k])},D=function N(q,U,j){var H;if(!q)return A;if(typeof q=="string"){var G=q.toLowerCase();S[G]&&(H=G),U&&(S[G]=U,H=G);var Z=q.split("-");if(!H&&Z.length>1)return N(Z[0])}else{var $=q.name;S[$]=q,H=$}return!j&&H&&(A=H),H||!j&&A},P=function(N,q){if(M(N))return N.clone();var U=typeof q=="object"?q:{};return U.date=N,U.args=arguments,new _(U)},O=w;O.l=D,O.i=M,O.w=function(N,q){return P(N,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var _=(function(){function N(U){this.$L=D(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[k]=!0}var q=N.prototype;return q.parse=function(U){this.$d=(function(j){var H=j.date,G=j.utc;if(H===null)return new Date(NaN);if(O.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var Z=H.match(g);if(Z){var $=Z[2]-1||0,L=(Z[7]||"0").substring(0,3);return G?new Date(Date.UTC(Z[1],$,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,L)):new Date(Z[1],$,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,L)}}return new Date(H)})(U),this.init()},q.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},q.$utils=function(){return O},q.isValid=function(){return this.$d.toString()!==h},q.isSame=function(U,j){var H=P(U);return this.startOf(j)<=H&&H<=this.endOf(j)},q.isAfter=function(U,j){return P(U)<this.startOf(j)},q.isBefore=function(U,j){return this.endOf(j)<P(U)},q.$g=function(U,j,H){return O.u(U)?this[j]:this.set(H,U)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(U,j){var H=this,G=!!O.u(j)||j,Z=O.p(U),$=function(ve,Me){var we=O.w(H.$u?Date.UTC(H.$y,Me,ve):new Date(H.$y,Me,ve),H);return G?we:we.endOf(u)},L=function(ve,Me){return O.w(H.toDate()[ve].apply(H.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(Me)),H)},W=this.$W,ie=this.$M,ee=this.$D,te="set"+(this.$u?"UTC":"");switch(Z){case p:return G?$(1,0):$(31,11);case c:return G?$(1,ie):$(0,ie+1);case d:var X=this.$locale().weekStart||0,ue=(W<X?W+7:W)-X;return $(G?ee-ue:ee+(6-ue),ie);case u:case v:return L(te+"Hours",0);case l:return L(te+"Minutes",1);case s:return L(te+"Seconds",2);case a:return L(te+"Milliseconds",3);default:return this.clone()}},q.endOf=function(U){return this.startOf(U,!1)},q.$set=function(U,j){var H,G=O.p(U),Z="set"+(this.$u?"UTC":""),$=(H={},H[u]=Z+"Date",H[v]=Z+"Date",H[c]=Z+"Month",H[p]=Z+"FullYear",H[l]=Z+"Hours",H[s]=Z+"Minutes",H[a]=Z+"Seconds",H[i]=Z+"Milliseconds",H)[G],L=G===u?this.$D+(j-this.$W):j;if(G===c||G===p){var W=this.clone().set(v,1);W.$d[$](L),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d}else $&&this.$d[$](L);return this.init(),this},q.set=function(U,j){return this.clone().$set(U,j)},q.get=function(U){return this[O.p(U)]()},q.add=function(U,j){var H,G=this;U=Number(U);var Z=O.p(j),$=function(ie){var ee=P(G);return O.w(ee.date(ee.date()+Math.round(ie*U)),G)};if(Z===c)return this.set(c,this.$M+U);if(Z===p)return this.set(p,this.$y+U);if(Z===u)return $(1);if(Z===d)return $(7);var L=(H={},H[s]=r,H[l]=o,H[a]=n,H)[Z]||1,W=this.$d.getTime()+U*L;return O.w(W,this)},q.subtract=function(U,j){return this.add(-1*U,j)},q.format=function(U){var j=this,H=this.$locale();if(!this.isValid())return H.invalidDate||h;var G=U||"YYYY-MM-DDTHH:mm:ssZ",Z=O.z(this),$=this.$H,L=this.$m,W=this.$M,ie=H.weekdays,ee=H.months,te=H.meridiem,X=function(Me,we,he,Te){return Me&&(Me[we]||Me(j,G))||he[we].slice(0,Te)},ue=function(Me){return O.s($%12||12,Me,"0")},ve=te||function(Me,we,he){var Te=Me<12?"AM":"PM";return he?Te.toLowerCase():Te};return G.replace(y,(function(Me,we){return we||(function(he){switch(he){case"YY":return String(j.$y).slice(-2);case"YYYY":return O.s(j.$y,4,"0");case"M":return W+1;case"MM":return O.s(W+1,2,"0");case"MMM":return X(H.monthsShort,W,ee,3);case"MMMM":return X(ee,W);case"D":return j.$D;case"DD":return O.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return X(H.weekdaysMin,j.$W,ie,2);case"ddd":return X(H.weekdaysShort,j.$W,ie,3);case"dddd":return ie[j.$W];case"H":return String($);case"HH":return O.s($,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return ve($,L,!0);case"A":return ve($,L,!1);case"m":return String(L);case"mm":return O.s(L,2,"0");case"s":return String(j.$s);case"ss":return O.s(j.$s,2,"0");case"SSS":return O.s(j.$ms,3,"0");case"Z":return Z}return null})(Me)||Z.replace(":","")}))},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(U,j,H){var G,Z=this,$=O.p(j),L=P(U),W=(L.utcOffset()-this.utcOffset())*r,ie=this-L,ee=function(){return O.m(Z,L)};switch($){case p:G=ee()/12;break;case c:G=ee();break;case f:G=ee()/3;break;case d:G=(ie-W)/6048e5;break;case u:G=(ie-W)/864e5;break;case l:G=ie/o;break;case s:G=ie/r;break;case a:G=ie/n;break;default:G=ie}return H?G:O.a(G)},q.daysInMonth=function(){return this.endOf(c).$D},q.$locale=function(){return S[this.$L]},q.locale=function(U,j){if(!U)return this.$L;var H=this.clone(),G=D(U,j,!0);return G&&(H.$L=G),H},q.clone=function(){return O.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},N})(),B=_.prototype;return P.prototype=B,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",c],["$y",p],["$D",v]].forEach((function(N){B[N[1]]=function(q){return this.$g(q,N[0],N[1])}})),P.extend=function(N,q){return N.$i||(N(q,_,P),N.$i=!0),P},P.locale=D,P.isDayjs=M,P.unix=function(N){return P(1e3*N)},P.en=S[A],P.Ls=S,P.p={},P}))})(yS)),yS.exports}var Eze=Sze();const rr=mu(Eze),pI=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],_h=e=>Array.from(Array.from({length:e}).keys()),U1e=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),$1e=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),AJ=function(e,t){const n=Zh(e),r=Zh(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},z1e=function(e,t){const n=qt(e),r=qt(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>AJ(o,t[i])):!n&&!r?AJ(e,t):!1},CJ=function(e,t,n){const r=Jl(t)||t==="x"?rr(e).locale(n):rr(e,t).locale(n);return r.isValid()?r:void 0},xJ=function(e,t,n){return Jl(t)?e:t==="x"?+e:rr(e).locale(n).format(t)},hI=(e,t)=>{var n;const r=[],o=t?.();for(let i=0;i<e;i++)r.push((n=o?.includes(i))!=null?n:!1);return r},bS=e=>qt(e)?e.map(t=>t.toDate()):e.toDate(),kze=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return _h(t).map((r,o)=>n-(t-o-1))},Tze=e=>{const t=e.daysInMonth();return _h(t).map((n,r)=>r+1)},_ze=e=>_h(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Dze=Kt({selectedDay:{type:it(Object)},range:{type:it(Array)},date:{type:it(Object),required:!0},hideHeader:{type:Boolean}}),Ize={pick:e=>ar(e)};var wS={exports:{}},Oze=wS.exports,SJ;function Mze(){return SJ||(SJ=1,(function(e,t){(function(n,r){e.exports=r()})(Oze,(function(){return function(n,r,o){var i=r.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,f,p,v,h){var g=c.name?c:c.$locale(),y=a(g[f]),m=a(g[p]),b=y||m.map((function(A){return A.slice(0,v)}));if(!h)return b;var w=g.weekStart;return b.map((function(A,S){return b[(S+(w||0))%7]}))},l=function(){return o.Ls[o.locale()]},u=function(c,f){return c.formats[f]||(function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,h,g){return h||g.slice(1)}))})(c.formats[f.toUpperCase()])},d=function(){var c=this;return{months:function(f){return f?f.format("MMMM"):s(c,"months")},monthsShort:function(f){return f?f.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(c,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(c.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},o.localeData=function(){var c=l();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(f){return u(c,f)},meridiem:c.meridiem,ordinal:c.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(c){return s(l(),"weekdays",null,null,c)},o.weekdaysShort=function(c){return s(l(),"weekdaysShort","weekdays",3,c)},o.weekdaysMin=function(c){return s(l(),"weekdaysMin","weekdays",2,c)}}}))})(wS)),wS.exports}var Pze=Mze();const j1e=mu(Pze),Nze=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],gI=["sun","mon","tue","wed","thu","fri","sat"],Rze=(e,t)=>{rr.extend(j1e);const n=rr.localeData().firstDayOfWeek(),{t:r,lang:o}=Hr(),i=rr().locale(o.value),a=J(()=>!!e.range&&!!e.range.length),s=J(()=>{let f=[];if(a.value){const[p,v]=e.range,h=_h(v.date()-p.date()+1).map(m=>({text:p.date()+m,type:"current"}));let g=h.length%7;g=g===0?0:7-g;const y=_h(g).map((m,b)=>({text:b+1,type:"next"}));f=h.concat(y)}else{const p=e.date.startOf("month").day(),v=kze(e.date,(p-n+7)%7).map(m=>({text:m,type:"prev"})),h=Tze(e.date).map(m=>({text:m,type:"current"}));f=[...v,...h];const g=7-(f.length%7||7),y=_h(g).map((m,b)=>({text:b+1,type:"next"}));f=f.concat(y)}return _ze(f)}),l=J(()=>{const f=n;return f===0?gI.map(p=>r(`el.datepicker.weeks.${p}`)):gI.slice(f).concat(gI.slice(0,f)).map(p=>r(`el.datepicker.weeks.${p}`))}),u=(f,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(f);case"next":return e.date.startOf("month").add(1,"month").date(f);case"current":return e.date.date(f)}};return{now:i,isInRange:a,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:f,type:p})=>{const v=u(f,p);t("pick",v)},getSlotData:({text:f,type:p})=>{const v=u(f,p);return{isSelected:v.isSame(e.selectedDay),type:`${p}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Bze=tt({name:"DateTable"}),Lze=tt({...Bze,props:Dze,emits:Ize,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:d}=Rze(r,n),c=zt("calendar-table"),f=zt("calendar-day"),p=({text:v,type:h})=>{const g=[h];if(h==="current"){const y=l(v,h);y.isSame(r.selectedDay,"day")&&g.push(f.is("selected")),y.isSame(i,"day")&&g.push(f.is("today"))}return g};return t({getFormattedDate:l}),(v,h)=>(F(),K("table",{class:re([C(c).b(),C(c).is("range",C(o))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?xe("v-if",!0):(F(),K("thead",{key:0},[x("tr",null,[(F(!0),K(Pt,null,an(C(s),g=>(F(),K("th",{key:g,scope:"col"},We(g),1))),128))])])),x("tbody",null,[(F(!0),K(Pt,null,an(C(a),(g,y)=>(F(),K("tr",{key:y,class:re({[C(c).e("row")]:!0,[C(c).em("row","hide-border")]:y===0&&v.hideHeader})},[(F(!0),K(Pt,null,an(g,(m,b)=>(F(),K("td",{key:b,class:re(p(m)),onClick:w=>C(u)(m)},[x("div",{class:re(C(f).b())},[ft(v.$slots,"date-cell",{data:C(d)(m)},()=>[x("span",null,We(m.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var EJ=Jt(Lze,[["__file","date-table.vue"]]);const Fze=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},Uze=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,i=o.endOf("month"),a=t.startOf("month"),s=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),i],[s.startOf("week"),t]]},$ze=(e,t,n)=>{const{lang:r}=Hr(),o=Q(),i=rr().locale(r.value),a=J({get(){return e.modelValue?l.value:o.value},set(g){if(!g)return;o.value=g;const y=g.toDate();t(ma,y),t(Gn,y)}}),s=J(()=>{if(!e.range||!qt(e.range)||e.range.length!==2||e.range.some(b=>!Zh(b)))return[];const g=e.range.map(b=>rr(b).locale(r.value)),[y,m]=g;return y.isAfter(m)?[]:y.isSame(m,"month")?p(y,m):y.add(1,"month").month()!==m.month()?[]:p(y,m)}),l=J(()=>e.modelValue?rr(e.modelValue).locale(r.value):a.value||(s.value.length?s.value[0][0]:i)),u=J(()=>l.value.subtract(1,"month").date(1)),d=J(()=>l.value.add(1,"month").date(1)),c=J(()=>l.value.subtract(1,"year").date(1)),f=J(()=>l.value.add(1,"year").date(1)),p=(g,y)=>{const m=g.startOf("week"),b=y.endOf("week"),w=m.get("month"),A=b.get("month");return w===A?[[m,b]]:(w+1)%12===A?Fze(m,b):w+2===A||(w+1)%11===A?Uze(m,b):[]},v=g=>{a.value=g};return{calculateValidatedDateRange:p,date:l,realSelectedDay:a,pickDay:v,selectDate:g=>{const m={"prev-month":u.value,"next-month":d.value,"prev-year":c.value,"next-year":f.value,today:i}[g];m.isSame(l.value,"day")||v(m)},validatedRange:s}},zze=e=>qt(e)&&e.length===2&&e.every(t=>Zh(t)),jze=Kt({modelValue:{type:Date},range:{type:it(Array),validator:zze}}),Hze={[Gn]:e=>Zh(e),[ma]:e=>Zh(e)},Wze="ElCalendar",Vze=tt({name:Wze}),qze=tt({...Vze,props:jze,emits:Hze,setup(e,{expose:t,emit:n}){const r=e,o=zt("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:d}=$ze(r,n),{t:c}=Hr(),f=J(()=>{const p=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${c("el.datepicker.year")} ${c(p)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(p,v)=>(F(),K("div",{class:re(C(o).b())},[x("div",{class:re(C(o).e("header"))},[ft(p.$slots,"header",{date:C(f)},()=>[x("div",{class:re(C(o).e("title"))},We(C(f)),3),C(d).length===0?(F(),K("div",{key:0,class:re(C(o).e("button-group"))},[Ve(C(F1e),null,{default:nt(()=>[Ve(C(Za),{size:"small",onClick:h=>C(u)("prev-month")},{default:nt(()=>[xn(We(C(c)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),Ve(C(Za),{size:"small",onClick:h=>C(u)("today")},{default:nt(()=>[xn(We(C(c)("el.datepicker.today")),1)]),_:1},8,["onClick"]),Ve(C(Za),{size:"small",onClick:h=>C(u)("next-month")},{default:nt(()=>[xn(We(C(c)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):xe("v-if",!0)])],2),C(d).length===0?(F(),K("div",{key:0,class:re(C(o).e("body"))},[Ve(EJ,{date:C(a),"selected-day":C(l),onPick:C(s)},Ll({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:nt(h=>[ft(p.$slots,"date-cell",Sl(Bd(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(F(),K("div",{key:1,class:re(C(o).e("body"))},[(F(!0),K(Pt,null,an(C(d),(h,g)=>(F(),mt(EJ,{key:g,date:h[0],"selected-day":C(l),range:h,"hide-header":g!==0,onPick:C(s)},Ll({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:nt(y=>[ft(p.$slots,"date-cell",Sl(Bd(y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Gze=Jt(qze,[["__file","calendar.vue"]]);const Kze=er(Gze),Qze=Kt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:it([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),Yze=tt({name:"ElCard"}),Zze=tt({...Yze,props:Qze,setup(e){const t=Pb("card"),n=zt("card");return(r,o)=>{var i;return F(),K("div",{class:re([C(n).b(),C(n).is(`${r.shadow||((i=C(t))==null?void 0:i.shadow)||"always"}-shadow`)])},[r.$slots.header||r.header?(F(),K("div",{key:0,class:re([C(n).e("header"),r.headerClass])},[ft(r.$slots,"header",{},()=>[xn(We(r.header),1)])],2)):xe("v-if",!0),x("div",{class:re([C(n).e("body"),r.bodyClass]),style:Xt(r.bodyStyle)},[ft(r.$slots,"default")],6),r.$slots.footer||r.footer?(F(),K("div",{key:1,class:re([C(n).e("footer"),r.footerClass])},[ft(r.$slots,"footer",{},()=>[xn(We(r.footer),1)])],2)):xe("v-if",!0)],2)}}});var Xze=Jt(Zze,[["__file","card.vue"]]);const Jze=er(Xze),eje=Kt({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),tje={change:(e,t)=>[e,t].every(Ln)},H1e=Symbol("carouselContextKey"),yL="ElCarouselItem";var _u=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(_u||{});function bL(e){return jo(e)&&e.type===Pt}function nje(e){return jo(e)&&e.type===la}function rje(e){return jo(e)&&!bL(e)&&!nje(e)}const oje=e=>{if(!jo(e))return{};const t=e.props||{},n=(jo(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{Zr(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[sl(o)]=t[o]}),r},ije=e=>{if(!qt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},bd=e=>{const t=qt(e)?e:[e],n=[];return t.forEach(r=>{var o;qt(r)?n.push(...bd(r)):jo(r)&&((o=r.component)!=null&&o.subTree)?n.push(r,...bd(r.component.subTree)):jo(r)&&qt(r.children)?n.push(...bd(r.children)):jo(r)&&r.shapeFlag===2?n.push(...bd(r.type())):n.push(r)}),n},aje=(e,t,n)=>bd(e.subTree).filter(i=>{var a;return jo(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),nD=(e,t)=>{const n=Uo({}),r=Uo([]),o=new WeakMap,i=d=>{n.value[d.uid]=d,aS(n),jn(()=>{const c=d.getVnode().el,f=c.parentNode;if(!o.has(f)){o.set(f,[]);const p=f.insertBefore.bind(f);f.insertBefore=(v,h)=>(o.get(f).some(y=>v===y||h===y)&&aS(n),p(v,h))}o.get(f).push(c)})},a=d=>{delete n.value[d.uid],aS(n);const c=d.getVnode().el,f=c.parentNode,p=o.get(f),v=p.indexOf(c);p.splice(v,1)},s=()=>{r.value=aje(e,t,n.value)},l=d=>d.render();return{children:r,addChild:i,removeChild:a,ChildrenSorter:tt({setup(d,{slots:c}){return()=>(s(),c.default?Fn(l,{render:c.default}):null)}})}},kJ=300,sje=(e,t,n)=>{const{children:r,addChild:o,removeChild:i,ChildrenSorter:a}=nD(vr(),yL),s=pa(),l=Q(-1),u=Q(null),d=Q(!1),c=Q(),f=Q(0),p=Q(!0),v=J(()=>e.arrow!=="never"&&!C(y)),h=J(()=>r.value.some(ee=>ee.props.label.toString().length>0)),g=J(()=>e.type==="card"),y=J(()=>e.direction==="vertical"),m=J(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=qg(ee=>{D(ee)},kJ,{trailing:!0}),w=qg(ee=>{j(ee)},kJ),A=ee=>p.value?l.value<=1?ee<=1:ee>1:!0;function S(){u.value&&(clearInterval(u.value),u.value=null)}function k(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>M(),e.interval))}const M=()=>{l.value<r.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function D(ee){if(In(ee)){const ue=r.value.filter(ve=>ve.props.name===ee);ue.length>0&&(ee=r.value.indexOf(ue[0]))}if(ee=Number(ee),Number.isNaN(ee)||ee!==Math.floor(ee))return;const te=r.value.length,X=l.value;ee<0?l.value=e.loop?te-1:0:ee>=te?l.value=e.loop?0:te-1:l.value=ee,X===l.value&&P(X),Z()}function P(ee){r.value.forEach((te,X)=>{te.translateItem(X,l.value,ee)})}function O(ee,te){var X,ue,ve,Me;const we=C(r),he=we.length;if(he===0||!ee.states.inStage)return!1;const Te=te+1,Y=te-1,be=he-1,De=we[be].states.active,pe=we[0].states.active,oe=(ue=(X=we[Te])==null?void 0:X.states)==null?void 0:ue.active,ce=(Me=(ve=we[Y])==null?void 0:ve.states)==null?void 0:Me.active;return te===be&&pe||oe?"left":te===0&&De||ce?"right":!1}function _(){d.value=!0,e.pauseOnHover&&S()}function B(){d.value=!1,k()}function N(ee){C(y)||r.value.forEach((te,X)=>{ee===O(te,X)&&(te.states.hover=!0)})}function q(){C(y)||r.value.forEach(ee=>{ee.states.hover=!1})}function U(ee){l.value=ee}function j(ee){e.trigger==="hover"&&ee!==l.value&&(l.value=ee)}function H(){D(l.value-1)}function G(){D(l.value+1)}function Z(){S(),e.pauseOnHover||k()}function $(ee){e.height==="auto"&&(f.value=ee)}function L(){var ee;const te=(ee=s.default)==null?void 0:ee.call(s);if(!te)return null;const ue=bd(te).filter(ve=>jo(ve)&&ve.type.name===yL);return ue?.length===2&&e.loop&&!g.value?(p.value=!0,ue):(p.value=!1,null)}St(()=>l.value,(ee,te)=>{P(te),p.value&&(ee=ee%2,te=te%2),te>-1&&t(Tr,ee,te)});const W=J({get:()=>p.value?l.value%2:l.value,set:ee=>l.value=ee});St(()=>e.autoplay,ee=>{ee?k():S()}),St(()=>e.loop,()=>{D(l.value)}),St(()=>e.interval,()=>{Z()});const ie=Uo();return jn(()=>{St(()=>r.value,()=>{r.value.length>0&&D(e.initialIndex)},{immediate:!0}),ie.value=li(c.value,()=>{P()}),k()}),Qr(()=>{S(),c.value&&ie.value&&ie.value.stop()}),Sr(H1e,{root:c,isCardType:g,isVertical:y,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:D,setContainerHeight:$}),{root:c,activeIndex:l,exposeActiveIndex:W,arrowDisplay:v,hasLabel:h,hover:d,isCardType:g,items:r,isVertical:y,containerStyle:m,isItemsTwoLength:p,handleButtonEnter:N,handleButtonLeave:q,handleIndicatorClick:U,handleMouseEnter:_,handleMouseLeave:B,setActiveItem:D,prev:H,next:G,PlaceholderItem:L,isTwoLengthShow:A,ItemsSorter:a,throttledArrowClick:b,throttledIndicatorHover:w}},lje="ElCarousel",uje=tt({name:lje}),cje=tt({...uje,props:eje,emits:tje,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:i,exposeActiveIndex:a,arrowDisplay:s,hasLabel:l,hover:u,isCardType:d,items:c,isVertical:f,containerStyle:p,handleButtonEnter:v,handleButtonLeave:h,handleIndicatorClick:g,handleMouseEnter:y,handleMouseLeave:m,setActiveItem:b,prev:w,next:A,PlaceholderItem:S,isTwoLengthShow:k,ItemsSorter:M,throttledArrowClick:D,throttledIndicatorHover:P}=sje(r,n),O=zt("carousel"),{t:_}=Hr(),B=J(()=>{const j=[O.b(),O.m(r.direction)];return C(d)&&j.push(O.m("card")),j}),N=J(()=>{const j=[O.e("indicators"),O.em("indicators",r.direction)];return C(l)&&j.push(O.em("indicators","labels")),r.indicatorPosition==="outside"&&j.push(O.em("indicators","outside")),C(f)&&j.push(O.em("indicators","right")),j});function q(j){if(!r.motionBlur)return;const H=C(f)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;j.currentTarget.classList.add(H)}function U(j){if(!r.motionBlur)return;const H=C(f)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;j.currentTarget.classList.remove(H)}return t({activeIndex:a,setActiveItem:b,prev:w,next:A}),(j,H)=>(F(),K("div",{ref_key:"root",ref:o,class:re(C(B)),onMouseenter:Qt(C(y),["stop"]),onMouseleave:Qt(C(m),["stop"])},[C(s)?(F(),mt(Wi,{key:0,name:"carousel-arrow-left",persisted:""},{default:nt(()=>[ln(x("button",{type:"button",class:re([C(O).e("arrow"),C(O).em("arrow","left")]),"aria-label":C(_)("el.carousel.leftArrow"),onMouseenter:G=>C(v)("left"),onMouseleave:C(h),onClick:Qt(G=>C(D)(C(i)-1),["stop"])},[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Ar,(j.arrow==="always"||C(u))&&(r.loop||C(i)>0)]])]),_:1})):xe("v-if",!0),C(s)?(F(),mt(Wi,{key:1,name:"carousel-arrow-right",persisted:""},{default:nt(()=>[ln(x("button",{type:"button",class:re([C(O).e("arrow"),C(O).em("arrow","right")]),"aria-label":C(_)("el.carousel.rightArrow"),onMouseenter:G=>C(v)("right"),onMouseleave:C(h),onClick:Qt(G=>C(D)(C(i)+1),["stop"])},[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Ar,(j.arrow==="always"||C(u))&&(r.loop||C(i)<C(c).length-1)]])]),_:1})):xe("v-if",!0),x("div",{class:re(C(O).e("container")),style:Xt(C(p)),onTransitionstart:q,onTransitionend:U},[Ve(C(S)),ft(j.$slots,"default")],38),Ve(C(M),null,{default:nt(()=>[j.indicatorPosition!=="none"?(F(),K("ul",{key:0,class:re(C(N))},[(F(!0),K(Pt,null,an(C(c),(G,Z)=>ln((F(),K("li",{key:Z,class:re([C(O).e("indicator"),C(O).em("indicator",j.direction),C(O).is("active",Z===C(i))]),onMouseenter:$=>C(P)(Z),onClick:Qt($=>C(g)(Z),["stop"])},[x("button",{class:re(C(O).e("button")),"aria-label":C(_)("el.carousel.indicator",{index:Z+1})},[C(l)?(F(),K("span",{key:0},We(G.props.label),1)):xe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[Ar,C(k)(Z)]])),128))],2)):xe("v-if",!0)]),_:1}),r.motionBlur?(F(),K("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[x("defs",null,[x("filter",{id:"elCarouselHorizontal"},[x("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),x("filter",{id:"elCarouselVertical"},[x("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):xe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var dje=Jt(cje,[["__file","carousel.vue"]]);const fje=Kt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),pje=e=>{const t=cn(H1e),n=vr(),r=Q(),o=Q(!1),i=Q(0),a=Q(1),s=Q(!1),l=Q(!1),u=Q(!1),d=Q(!1),{isCardType:c,isVertical:f,cardScale:p}=t;function v(w,A,S){const k=S-1,M=A-1,D=A+1,P=S/2;return A===0&&w===k?-1:A===k&&w===0?S:w<M&&A-w>=P?S+1:w>D&&w-A>=P?-2:w}function h(w,A){var S,k;const M=C(f)?((S=t.root.value)==null?void 0:S.offsetHeight)||0:((k=t.root.value)==null?void 0:k.offsetWidth)||0;return u.value?M*((2-p)*(w-A)+1)/4:w<A?-(1+p)*M/4:(3+p)*M/4}function g(w,A,S){const k=t.root.value;return k?((S?k.offsetHeight:k.offsetWidth)||0)*(w-A):0}const y=(w,A,S)=>{var k;const M=C(c),D=(k=t.items.value.length)!=null?k:Number.NaN,P=w===A;!M&&!$r(S)&&(d.value=P||w===S),!P&&D>2&&t.loop&&(w=v(w,A,D));const O=C(f);s.value=P,M?(u.value=Math.round(Math.abs(w-A))<=1,i.value=h(w,A),a.value=C(s)?1:p):i.value=g(w,A,O),l.value=!0,P&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function m(){if(t&&C(c)){const w=t.items.value.findIndex(({uid:A})=>A===n.uid);t.setActiveItem(w)}}const b={props:e,states:Ur({hover:o,translate:i,scale:a,active:s,ready:l,inStage:u,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(b),Qr(()=>{t.removeItem(b)}),{carouselItemRef:r,active:s,animating:d,hover:o,inStage:u,isVertical:f,translate:i,isCardType:c,scale:a,ready:l,handleItemClick:m}},hje=tt({name:yL}),gje=tt({...hje,props:fje,setup(e){const t=e,n=zt("carousel"),{carouselItemRef:r,active:o,animating:i,hover:a,inStage:s,isVertical:l,translate:u,isCardType:d,scale:c,ready:f,handleItemClick:p}=pje(t),v=J(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&l.value}]),h=J(()=>{const y=`${`translate${C(l)?"Y":"X"}`}(${C(u)}px)`,m=`scale(${C(c)})`;return{transform:[y,m].join(" ")}});return(g,y)=>ln((F(),K("div",{ref_key:"carouselItemRef",ref:r,class:re(C(v)),style:Xt(C(h)),onClick:C(p)},[C(d)?ln((F(),K("div",{key:0,class:re(C(n).e("mask"))},null,2)),[[Ar,!C(o)]]):xe("v-if",!0),ft(g.$slots,"default")],14,["onClick"])),[[Ar,C(f)]])}});var W1e=Jt(gje,[["__file","carousel-item.vue"]]);const vje=er(dje,{CarouselItem:W1e}),mje=vi(W1e),V1e={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ba,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Es(["ariaControls"])},q1e={[Gn]:e=>In(e)||Ln(e)||Co(e),change:e=>In(e)||Ln(e)||Co(e)},Lb=Symbol("checkboxGroupContextKey"),yje=({model:e,isChecked:t})=>{const n=cn(Lb,void 0),r=J(()=>{var i,a;const s=(i=n?.max)==null?void 0:i.value,l=(a=n?.min)==null?void 0:a.value;return!$r(s)&&e.value.length>=s&&!t.value||!$r(l)&&e.value.length<=l&&t.value});return{isDisabled:Wa(J(()=>n?.disabled.value||r.value)),isLimitDisabled:r}},bje=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=cn(Lb,void 0),{formItem:s}=ks(),{emit:l}=vr();function u(v){var h,g,y,m;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(h=e.trueValue)!=null?h:e.trueLabel)!=null?g:!0:(m=(y=e.falseValue)!=null?y:e.falseLabel)!=null?m:!1}function d(v,h){l(Tr,u(v),h)}function c(v){if(n.value)return;const h=v.target;l(Tr,u(h.checked),v)}async function f(v){n.value||!r.value&&!o.value&&i.value&&(v.composedPath().some(y=>y.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await Vt(),d(t.value,v)))}const p=J(()=>a?.validateEvent||e.validateEvent);return St(()=>e.modelValue,()=>{p.value&&s?.validate("change").catch(v=>void 0)}),{handleChange:c,onClickRoot:f}},wje=e=>{const t=Q(!1),{emit:n}=vr(),r=cn(Lb,void 0),o=J(()=>$r(r)===!1),i=Q(!1),a=J({get(){var s,l;return o.value?(s=r?.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;o.value&&qt(s)?(i.value=((l=r?.max)==null?void 0:l.value)!==void 0&&s.length>r?.max.value&&s.length>a.value.length,i.value===!1&&((u=r?.changeEvent)==null||u.call(r,s))):(n(Gn,s),t.value=s)}});return{model:a,isGroup:o,isLimitExceeded:i}},Aje=(e,t,{model:n})=>{const r=cn(Lb,void 0),o=Q(!1),i=J(()=>Il(e.value)?e.label:e.value),a=J(()=>{const d=n.value;return Co(d)?d:qt(d)?ar(i.value)?d.map(Oo).some(c=>ua(c,i.value)):d.map(Oo).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),s=fa(J(()=>{var d;return(d=r?.size)==null?void 0:d.value}),{prop:!0}),l=fa(J(()=>{var d;return(d=r?.size)==null?void 0:d.value})),u=J(()=>!!t.default||!Il(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},G1e=(e,t)=>{const{formItem:n}=ks(),{model:r,isGroup:o,isLimitExceeded:i}=wje(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:c}=Aje(e,t,{model:r}),{isDisabled:f}=yje({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:v}=ac(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:h,onClickRoot:g}=bje(e,{model:r,isLimitExceeded:i,hasOwnLabel:d,isDisabled:f,isLabeledByFormItem:v});return(()=>{function m(){var b,w;qt(r.value)&&!r.value.includes(c.value)?r.value.push(c.value):r.value=(w=(b=e.trueValue)!=null?b:e.trueLabel)!=null?w:!0}e.checked&&m()})(),Lf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},J(()=>o.value&&Il(e.value))),Lf({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},J(()=>!!e.trueLabel)),Lf({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},J(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:s,isDisabled:f,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:c,handleChange:h,onClickRoot:g}},Cje=tt({name:"ElCheckbox"}),xje=tt({...Cje,props:V1e,emits:q1e,setup(e){const t=e,n=pa(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:d,actualValue:c,handleChange:f,onClickRoot:p}=G1e(t,n),v=zt("checkbox"),h=J(()=>[v.b(),v.m(l.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",i.value)]),g=J(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",i.value),v.is("indeterminate",t.indeterminate),v.is("focus",s.value)]);return(y,m)=>(F(),mt(hr(!C(u)&&C(o)?"span":"label"),{class:re(C(h)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:C(p)},{default:nt(()=>{var b,w,A,S;return[x("span",{class:re(C(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?ln((F(),K("input",{key:0,id:C(r),"onUpdate:modelValue":k=>Ro(d)?d.value=k:null,class:re(C(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:C(a),"true-value":(w=(b=y.trueValue)!=null?b:y.trueLabel)!=null?w:!0,"false-value":(S=(A=y.falseValue)!=null?A:y.falseLabel)!=null?S:!1,onChange:C(f),onFocus:k=>s.value=!0,onBlur:k=>s.value=!1,onClick:Qt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[oE,C(d)]]):ln((F(),K("input",{key:1,id:C(r),"onUpdate:modelValue":k=>Ro(d)?d.value=k:null,class:re(C(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:C(a),value:C(c),name:y.name,tabindex:y.tabindex,onChange:C(f),onFocus:k=>s.value=!0,onBlur:k=>s.value=!1,onClick:Qt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[oE,C(d)]]),x("span",{class:re(C(v).e("inner"))},null,2)],2),C(u)?(F(),K("span",{key:0,class:re(C(v).e("label"))},[ft(y.$slots,"default"),y.$slots.default?xe("v-if",!0):(F(),K(Pt,{key:0},[xn(We(y.label),1)],64))],2)):xe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Sje=Jt(xje,[["__file","checkbox.vue"]]);const Eje=tt({name:"ElCheckboxButton"}),kje=tt({...Eje,props:V1e,emits:q1e,setup(e){const t=e,n=pa(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=G1e(t,n),d=cn(Lb,void 0),c=zt("checkbox"),f=J(()=>{var v,h,g,y;const m=(h=(v=d?.fill)==null?void 0:v.value)!=null?h:"";return{backgroundColor:m,borderColor:m,color:(y=(g=d?.textColor)==null?void 0:g.value)!=null?y:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),p=J(()=>[c.b("button"),c.bm("button",a.value),c.is("disabled",i.value),c.is("checked",o.value),c.is("focus",r.value)]);return(v,h)=>{var g,y,m,b;return F(),K("label",{class:re(C(p))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?ln((F(),K("input",{key:0,"onUpdate:modelValue":w=>Ro(s)?s.value=w:null,class:re(C(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:C(i),"true-value":(y=(g=v.trueValue)!=null?g:v.trueLabel)!=null?y:!0,"false-value":(b=(m=v.falseValue)!=null?m:v.falseLabel)!=null?b:!1,onChange:C(u),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:Qt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[oE,C(s)]]):ln((F(),K("input",{key:1,"onUpdate:modelValue":w=>Ro(s)?s.value=w:null,class:re(C(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:C(i),value:C(l),onChange:C(u),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:Qt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[oE,C(s)]]),v.$slots.default||v.label?(F(),K("span",{key:2,class:re(C(c).be("button","inner")),style:Xt(C(o)?C(f):void 0)},[ft(v.$slots,"default",{},()=>[xn(We(v.label),1)])],6)):xe("v-if",!0)],2)}}});var K1e=Jt(kje,[["__file","checkbox-button.vue"]]);const Tje=Kt({modelValue:{type:it(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ba,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Es(["ariaLabel"])}),_je={[Gn]:e=>qt(e),change:e=>qt(e)},Dje=tt({name:"ElCheckboxGroup"}),Ije=tt({...Dje,props:Tje,emits:_je,setup(e,{emit:t}){const n=e,r=zt("checkbox"),{formItem:o}=ks(),{inputId:i,isLabeledByFormItem:a}=ac(n,{formItemContext:o}),s=async u=>{t(Gn,u),await Vt(),t(Tr,u)},l=J({get(){return n.modelValue},set(u){s(u)}});return Sr(Lb,{...ru(_a(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),St(()=>n.modelValue,(u,d)=>{n.validateEvent&&!ua(u,d)&&o?.validate("change").catch(c=>void 0)}),(u,d)=>{var c;return F(),mt(hr(u.tag),{id:C(i),class:re(C(r).b("group")),role:"group","aria-label":C(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":C(a)?(c=C(o))==null?void 0:c.labelId:void 0},{default:nt(()=>[ft(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Q1e=Jt(Ije,[["__file","checkbox-group.vue"]]);const Qu=er(Sje,{CheckboxButton:K1e,CheckboxGroup:Q1e}),Oje=vi(K1e),Y1e=vi(Q1e),Z1e=Kt({modelValue:{type:[String,Number,Boolean],default:void 0},size:ba,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Mje=Kt({...Z1e,border:Boolean}),X1e={[Gn]:e=>In(e)||Ln(e)||Co(e),[Tr]:e=>In(e)||Ln(e)||Co(e)},J1e=Symbol("radioGroupKey"),eye=(e,t)=>{const n=Q(),r=cn(J1e,void 0),o=J(()=>!!r),i=J(()=>Il(e.value)?e.label:e.value),a=J({get(){return o.value?r.modelValue:e.modelValue},set(c){o.value?r.changeEvent(c):t&&t(Gn,c),n.value.checked=e.modelValue===i.value}}),s=fa(J(()=>r?.size)),l=Wa(J(()=>r?.disabled)),u=Q(!1),d=J(()=>l.value||o.value&&a.value!==i.value?-1:0);return Lf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},J(()=>o.value&&Il(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:d,modelValue:a,actualValue:i}},Pje=tt({name:"ElRadio"}),Nje=tt({...Pje,props:Mje,emits:X1e,setup(e,{emit:t}){const n=e,r=zt("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:d}=eye(n,t);function c(){Vt(()=>t(Tr,u.value))}return(f,p)=>{var v;return F(),K("label",{class:re([C(r).b(),C(r).is("disabled",C(l)),C(r).is("focus",C(a)),C(r).is("bordered",f.border),C(r).is("checked",C(u)===C(d)),C(r).m(C(s))])},[x("span",{class:re([C(r).e("input"),C(r).is("disabled",C(l)),C(r).is("checked",C(u)===C(d))])},[ln(x("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h=>Ro(u)?u.value=h:null,class:re(C(r).e("original")),value:C(d),name:f.name||((v=C(i))==null?void 0:v.name),disabled:C(l),checked:C(u)===C(d),type:"radio",onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onChange:c,onClick:Qt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Wge,C(u)]]),x("span",{class:re(C(r).e("inner"))},null,2)],2),x("span",{class:re(C(r).e("label")),onKeydown:Qt(()=>{},["stop"])},[ft(f.$slots,"default",{},()=>[xn(We(f.label),1)])],42,["onKeydown"])],2)}}});var Rje=Jt(Nje,[["__file","radio.vue"]]);const Bje=Kt({...Z1e}),Lje=tt({name:"ElRadioButton"}),Fje=tt({...Lje,props:Bje,setup(e){const t=e,n=zt("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=eye(t),d=J(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(c,f)=>{var p;return F(),K("label",{class:re([C(n).b("button"),C(n).is("active",C(s)===C(u)),C(n).is("disabled",C(a)),C(n).is("focus",C(o)),C(n).bm("button",C(i))])},[ln(x("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>Ro(s)?s.value=v:null,class:re(C(n).be("button","original-radio")),value:C(u),type:"radio",name:c.name||((p=C(l))==null?void 0:p.name),disabled:C(a),onFocus:v=>o.value=!0,onBlur:v=>o.value=!1,onClick:Qt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Wge,C(s)]]),x("span",{class:re(C(n).be("button","inner")),style:Xt(C(s)===C(u)?C(d):{}),onKeydown:Qt(()=>{},["stop"])},[ft(c.$slots,"default",{},()=>[xn(We(c.label),1)])],46,["onKeydown"])],2)}}});var tye=Jt(Fje,[["__file","radio-button.vue"]]);const Uje=Kt({id:{type:String,default:void 0},size:ba,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Es(["ariaLabel"])}),$je=X1e,zje=tt({name:"ElRadioGroup"}),jje=tt({...zje,props:Uje,emits:$je,setup(e,{emit:t}){const n=e,r=zt("radio"),o=fs(),i=Q(),{formItem:a}=ks(),{inputId:s,isLabeledByFormItem:l}=ac(n,{formItemContext:a}),u=c=>{t(Gn,c),Vt(()=>t(Tr,c))};jn(()=>{const c=i.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(p=>p.checked)&&f&&(f.tabIndex=0)});const d=J(()=>n.name||o.value);return Sr(J1e,Ur({..._a(n),changeEvent:u,name:d})),St(()=>n.modelValue,(c,f)=>{n.validateEvent&&!ua(c,f)&&a?.validate("change").catch(p=>void 0)}),(c,f)=>(F(),K("div",{id:C(s),ref_key:"radioGroupRef",ref:i,class:re(C(r).b("group")),role:"radiogroup","aria-label":C(l)?void 0:c.ariaLabel||"radio-group","aria-labelledby":C(l)?C(a).labelId:void 0},[ft(c.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var nye=Jt(jje,[["__file","radio-group.vue"]]);const rye=er(Rje,{RadioButton:tye,RadioGroup:nye}),Hje=vi(nye),Wje=vi(tye),rD=Symbol();function Vje(e){return!!(qt(e)?e.every(({type:t})=>t===la):e?.type===la)}var qje=tt({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=zt("cascader-node"),{renderLabelFn:n}=cn(rD),{node:r}=e,{data:o,label:i}=r,a=()=>{const s=n?.({node:r,data:o});return Vje(s)?i:s??i};return()=>Ve("span",{class:t.e("label")},[a()])}});const Gje=tt({name:"ElCascaderNode"}),Kje=tt({...Gje,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,r=cn(rD),o=zt("cascader-node"),i=J(()=>r.isHoverMenu),a=J(()=>r.config.multiple),s=J(()=>r.config.checkStrictly),l=J(()=>r.config.showPrefix),u=J(()=>{var M;return(M=r.checkedNodes[0])==null?void 0:M.uid}),d=J(()=>n.node.isDisabled),c=J(()=>n.node.isLeaf),f=J(()=>s.value&&!c.value||!d.value),p=J(()=>h(r.expandingNode)),v=J(()=>s.value&&r.checkedNodes.some(h)),h=M=>{var D;const{level:P,uid:O}=n.node;return((D=M?.pathNodes[P-1])==null?void 0:D.uid)===O},g=()=>{p.value||r.expandNode(n.node)},y=M=>{const{node:D}=n;M!==D.checked&&r.handleCheckChange(D,M)},m=()=>{r.lazyLoad(n.node,()=>{c.value||g()})},b=M=>{i.value&&(w(),!c.value&&t("expand",M))},w=()=>{const{node:M}=n;!f.value||M.loading||(M.loaded?g():m())},A=()=>{i.value||(c.value&&!d.value&&!s.value&&!a.value?k(!0):(r.config.checkOnClickNode||c.value&&r.config.checkOnClickLeaf)&&!d.value?S(!n.node.checked):w())},S=M=>{s.value?(y(M),n.node.loaded&&g()):k(M)},k=M=>{n.node.loaded?(y(M),!s.value&&g()):m()};return(M,D)=>(F(),K("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!C(c),"aria-owns":C(c)?void 0:e.menuId,"aria-expanded":C(p),tabindex:C(f)?-1:void 0,class:re([C(o).b(),C(o).is("selectable",C(s)),C(o).is("active",e.node.checked),C(o).is("disabled",!C(f)),C(p)&&"in-active-path",C(v)&&"in-checked-path"]),onMouseenter:b,onFocus:b,onClick:A},[xe(" prefix "),C(a)&&C(l)?(F(),mt(C(Qu),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:C(d),onClick:Qt(()=>{},["stop"]),"onUpdate:modelValue":S},null,8,["model-value","indeterminate","disabled","onClick"])):C(s)&&C(l)?(F(),mt(C(rye),{key:1,"model-value":C(u),label:e.node.uid,disabled:C(d),"onUpdate:modelValue":S,onClick:Qt(()=>{},["stop"])},{default:nt(()=>[xe(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),x("span")]),_:1},8,["model-value","label","disabled","onClick"])):C(c)&&e.node.checked?(F(),mt(C(Dn),{key:2,class:re(C(o).e("prefix"))},{default:nt(()=>[Ve(C(_C))]),_:1},8,["class"])):xe("v-if",!0),xe(" content "),Ve(C(qje),{node:e.node},null,8,["node"]),xe(" postfix "),C(c)?xe("v-if",!0):(F(),K(Pt,{key:3},[e.node.loading?(F(),mt(C(Dn),{key:0,class:re([C(o).is("loading"),C(o).e("postfix")])},{default:nt(()=>[Ve(C(Bc))]),_:1},8,["class"])):(F(),mt(C(Dn),{key:1,class:re(["arrow-right",C(o).e("postfix")])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex"]))}});var Qje=Jt(Kje,[["__file","node.vue"]]);const Yje=tt({name:"ElCascaderMenu"}),Zje=tt({...Yje,props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=vr(),r=zt("cascader-menu"),{t:o}=Hr(),i=fs();let a,s;const l=cn(rD),u=Q(),d=J(()=>!t.nodes.length),c=J(()=>!l.initialLoaded),f=J(()=>`${i.value}-${t.index}`),p=y=>{a=y.target},v=y=>{if(!(!l.isHoverMenu||!a||!u.value))if(a.contains(y.target)){h();const m=n.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:w,offsetHeight:A}=m,S=y.clientX-b,k=a.offsetTop,M=k+a.offsetHeight;u.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${S} ${k} L${w} 0 V${k} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${S} ${M} L${w} ${A} V${M} Z" />
- `}else s||(s=window.setTimeout(g,l.config.hoverThreshold))},h=()=>{s&&(clearTimeout(s),s=void 0)},g=()=>{u.value&&(u.value.innerHTML="",h())};return(y,m)=>(F(),mt(C(Lc),{key:C(f),tag:"ul",role:"menu",class:re(C(r).b()),"wrap-class":C(r).e("wrap"),"view-class":[C(r).e("list"),C(r).is("empty",C(d))],onMousemove:v,onMouseleave:g},{default:nt(()=>{var b;return[(F(!0),K(Pt,null,an(e.nodes,w=>(F(),mt(Qje,{key:w.uid,node:w,"menu-id":C(f),onExpand:p},null,8,["node","menu-id"]))),128)),C(c)?(F(),K("div",{key:0,class:re(C(r).e("empty-text"))},[Ve(C(Dn),{size:"14",class:re(C(r).is("loading"))},{default:nt(()=>[Ve(C(Bc))]),_:1},8,["class"]),xn(" "+We(C(o)("el.cascader.loading")),1)],2)):C(d)?(F(),K("div",{key:1,class:re(C(r).e("empty-text"))},[ft(y.$slots,"empty",{},()=>[xn(We(C(o)("el.cascader.noData")),1)])],2)):(b=C(l))!=null&&b.isHoverMenu?(F(),K(Pt,{key:2},[xe(" eslint-disable-next-line vue/html-self-closing "),(F(),K("svg",{ref_key:"hoverZone",ref:u,class:re(C(r).e("hover-zone"))},null,2))],2112)):xe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class"]))}});var Xje=Jt(Zje,[["__file","menu.vue"]]);let Jje=0;const eHe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let wL=class AL{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=Jje++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=eHe(this);this.level=o?0:r?r.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new AL(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!Jl(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:i}=r;return(Pn(o)?o(t,this):!!t[o])||!i&&!!n?.isDisabled}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:i,leaf:a}=n,s=Pn(a)?a(t,this):t[a];return $r(s)?i&&!o?!1:!(qt(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new AL(t,this.config,this);return qt(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t){this.children.forEach(n=>{var r;n&&(n.broadcast(t),(r=n.onParentCheck)==null||r.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,i)=>{const a=i.checked?1:i.indeterminate?.5:0;return o+a},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const CL=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(CL(r.children,t))),n),[]);class TJ{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new wL(o,this.config));this.nodes=r,this.allNodes=CL(r,!1),this.leafNodes=CL(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new wL(t,this.config);n||this.nodes.push(r),this.appendAllNodesAndLeafNodes(r)}appendNodes(t,n){t.length>0?t.forEach(r=>this.appendNode(r,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return Il(t)?null:this.getFlattedNodes(n).find(o=>ua(o.value,t)||ua(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>ua(t.value,r)&&t.level===o)||null}}const oye=Kt({modelValue:{type:it([Number,String,Array])},options:{type:it(Array),default:()=>[]},props:{type:it(Object),default:()=>({})}}),tHe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:go,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},nHe=Kt({...oye,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),_J=e=>!0,rHe={[Gn]:_J,[Tr]:_J,close:()=>!0,"expand-change":e=>e},oHe=e=>J(()=>({...tHe,...e.props})),DJ=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},iHe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():r1e(e)&&e.click()},aHe=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),o=e.reduce((i,a)=>{const s=r.indexOf(a.uid);return s>-1&&(i.push(a),n.splice(s,1),r.splice(s,1)),i},[]);return o.push(...n),o},IJ=e=>[...new Set(e)],rl=e=>!e&&e!==0?[]:qt(e)?e:[e],sHe=tt({name:"ElCascaderPanel",inheritAttrs:!1}),lHe=tt({...sHe,props:nHe,emits:rHe,setup(e,{expose:t,emit:n}){const r=e;let o=!1;const i=zt("cascader"),a=oHe(r),s=pa();let l;const u=Q(!0),d=Q([]),c=Q(),f=Q([]),p=Q(),v=Q([]),h=J(()=>a.value.expandTrigger==="hover"),g=J(()=>r.renderLabel||s.default),y=()=>{const{options:N}=r,q=a.value;o=!1,l=new TJ(N,q),f.value=[l.getNodes()],q.lazy&&Jl(r.options)?(u.value=!1,m(void 0,U=>{U&&(l=new TJ(U,q),f.value=[l.getNodes()]),u.value=!0,P(!1,!0)})):P(!1,!0)},m=(N,q)=>{const U=a.value;N=N||new wL({},U,void 0,!0),N.loading=!0;const j=H=>{const G=N,Z=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],H&&l?.appendNodes(H,Z),H&&q?.(H)};U.lazyLoad(N,j)},b=(N,q)=>{var U;const{level:j}=N,H=f.value.slice(0,j);let G;N.isLeaf?G=N.pathNodes[j-2]:(G=N,H.push(N.children)),((U=p.value)==null?void 0:U.uid)!==G?.uid&&(p.value=N,f.value=H,!q&&n("expand-change",N?.pathValues||[]))},w=(N,q,U=!0)=>{const{checkStrictly:j,multiple:H}=a.value,G=v.value[0];o=!0,!H&&G?.doCheck(!1),N.doCheck(q),D(),U&&!H&&!j&&n("close"),!U&&!H&&!j&&A(N)},A=N=>{N&&(N=N.parent,A(N),N&&b(N))},S=N=>l?.getFlattedNodes(N),k=N=>{var q;return(q=S(N))==null?void 0:q.filter(({checked:U})=>U!==!1)},M=()=>{v.value.forEach(N=>N.doCheck(!1)),D(),f.value=f.value.slice(0,1),p.value=void 0,n("expand-change",[])},D=()=>{var N;const{checkStrictly:q,multiple:U}=a.value,j=v.value,H=k(!q),G=aHe(j,H),Z=G.map($=>$.valueByOption);v.value=G,c.value=U?Z:(N=Z[0])!=null?N:null},P=(N=!1,q=!1)=>{const{modelValue:U}=r,{lazy:j,multiple:H,checkStrictly:G}=a.value,Z=!G;if(!(!u.value||o||!q&&ua(U,c.value)))if(j&&!N){const L=IJ(QNe(rl(U))).map(W=>l?.getNodeByValue(W)).filter(W=>!!W&&!W.loaded&&!W.loading);L.length?L.forEach(W=>{m(W,()=>P(!1,q))}):P(!0,q)}else{const $=H?rl(U):[U],L=IJ($.map(W=>l?.getNodeByValue(W,Z)));O(L,q),c.value=cE(U??void 0)}},O=(N,q=!0)=>{const{checkStrictly:U}=a.value,j=v.value,H=N.filter($=>!!$&&(U||$.isLeaf)),G=l?.getSameNode(p.value),Z=q&&G||H[0];Z?Z.pathNodes.forEach($=>b($,!0)):p.value=void 0,j.forEach($=>$.doCheck(!1)),Ur(H).forEach($=>$.doCheck(!0)),v.value=H,Vt(_)},_=()=>{Kr&&d.value.forEach(N=>{const q=N?.$el;if(q){const U=q.querySelector(`.${i.namespace.value}-scrollbar__wrap`),j=q.querySelector(`.${i.b("node")}.${i.is("active")}:last-child`)||q.querySelector(`.${i.b("node")}.in-active-path`);vH(U,j)}})},B=N=>{const q=N.target,{code:U}=N;switch(U){case gn.up:case gn.down:{N.preventDefault();const j=U===gn.up?-1:1;vS(o1e(q,j,`.${i.b("node")}[tabindex="-1"]`));break}case gn.left:{N.preventDefault();const j=d.value[DJ(q)-1],H=j?.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);vS(H);break}case gn.right:{N.preventDefault();const j=d.value[DJ(q)+1],H=j?.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);vS(H);break}case gn.enter:case gn.numpadEnter:iHe(q);break}};return Sr(rD,Ur({config:a,expandingNode:p,checkedNodes:v,isHoverMenu:h,initialLoaded:u,renderLabelFn:g,lazyLoad:m,expandNode:b,handleCheckChange:w})),St(a,(N,q)=>{ua(N,q)||y()},{immediate:!0}),St(()=>r.options,y,{deep:!0}),St(()=>r.modelValue,()=>{o=!1,P()},{deep:!0}),St(()=>c.value,N=>{ua(N,r.modelValue)||(n(Gn,N),n(Tr,N))}),Nj(()=>d.value=[]),jn(()=>!Jl(r.modelValue)&&P()),t({menuList:d,menus:f,checkedNodes:v,handleKeyDown:B,handleCheckChange:w,getFlattedNodes:S,getCheckedNodes:k,clearCheckedNodes:M,calculateCheckedValue:D,scrollToExpandingNode:_}),(N,q)=>(F(),K("div",{class:re([C(i).b("panel"),C(i).is("bordered",N.border)]),onKeydown:B},[(F(!0),K(Pt,null,an(f.value,(U,j)=>(F(),mt(Xje,{key:j,ref_for:!0,ref:H=>d.value[j]=H,index:j,nodes:[...U]},{empty:nt(()=>[ft(N.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],34))}});var uHe=Jt(lHe,[["__file","index.vue"]]);const iye=er(uHe),Qf=Kt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Qd},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),cHe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},dHe=tt({name:"ElTag"}),fHe=tt({...dHe,props:Qf,emits:cHe,setup(e,{emit:t}){const n=e,r=fa(),o=zt("tag"),i=J(()=>{const{type:u,hit:d,effect:c,closable:f,round:p}=n;return[o.b(),o.is("closable",f),o.m(u||"primary"),o.m(r.value),o.m(c),o.is("hit",d),o.is("round",p)]}),a=u=>{t("close",u)},s=u=>{t("click",u)},l=u=>{var d,c,f;(f=(c=(d=u?.component)==null?void 0:d.subTree)==null?void 0:c.component)!=null&&f.bum&&(u.component.subTree.component.bum=null)};return(u,d)=>u.disableTransitions?(F(),K("span",{key:0,class:re(C(i)),style:Xt({backgroundColor:u.color}),onClick:s},[x("span",{class:re(C(o).e("content"))},[ft(u.$slots,"default")],2),u.closable?(F(),mt(C(Dn),{key:0,class:re(C(o).e("close")),onClick:Qt(a,["stop"])},{default:nt(()=>[Ve(C(cu))]),_:1},8,["class","onClick"])):xe("v-if",!0)],6)):(F(),mt(Wi,{key:1,name:`${C(o).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:nt(()=>[x("span",{class:re(C(i)),style:Xt({backgroundColor:u.color}),onClick:s},[x("span",{class:re(C(o).e("content"))},[ft(u.$slots,"default")],2),u.closable?(F(),mt(C(Dn),{key:0,class:re(C(o).e("close")),onClick:Qt(a,["stop"])},{default:nt(()=>[Ve(C(cu))]),_:1},8,["class","onClick"])):xe("v-if",!0)],6)]),_:3},8,["name"]))}});var pHe=Jt(fHe,[["__file","tag.vue"]]);const Dh=er(pHe),hHe=Kt({...oye,size:ba,placeholder:String,disabled:Boolean,clearable:Boolean,clearIcon:{type:vo,default:Yd},filterable:Boolean,filterMethod:{type:it(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:it(Function),default:()=>!0},placement:{type:it(String),values:vp,default:"bottom-start"},fallbackPlacements:{type:it(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:oi.popperClass,popperStyle:oi.popperStyle,teleported:oi.teleported,effect:{type:it(String),default:"light"},tagType:{...Qf.type,default:"info"},tagEffect:{...Qf.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...nm}),OJ=e=>!0,gHe={[Gn]:OJ,[Tr]:OJ,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Co(e),expandChange:e=>!!e,removeTag:e=>!!e},th=new Map;if(Kr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of th.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function MJ(e,t){let n=[];return qt(t.arg)?n=t.arg:al(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=o?.target,l=!t||!t.instance,u=!a||!s,d=e.contains(a)||e.contains(s),c=e===a,f=n.length&&n.some(v=>v?.contains(a))||n.length&&n.includes(s),p=i&&(i.contains(a)||i.contains(s));l||u||d||c||f||p||t.value(r,o)}}const Yf={beforeMount(e,t){th.has(e)||th.set(e,[]),th.get(e).push({documentHandler:MJ(e,t),bindingFn:t.value})},updated(e,t){th.has(e)||th.set(e,[]);const n=th.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:MJ(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){th.delete(e)}},vHe="ElCascader",mHe=tt({name:vHe}),yHe=tt({...mHe,props:hHe,emits:gHe,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Ae})=>{const{modifiersData:je,placement:at}=Ae;["right","left","bottom","top"].includes(at)||je.arrow&&(je.arrow.x=35)},requires:["arrow"]}]},i=fp();let a=0,s=0;const l=zt("cascader"),u=zt("input"),{t:d}=Hr(),{formItem:c}=ks(),f=Wa(),{valueOnClear:p}=TC(r),{isComposing:v,handleComposition:h}=IC({afterComposition(Ae){var je;const at=(je=Ae.target)==null?void 0:je.value;st(at)}}),g=Q(null),y=Q(),m=Q(),b=Q(null),w=Q(null),A=Q(null),S=Q(!1),k=Q(!1),M=Q(!1),D=Q(""),P=Q(""),O=Q([]),_=Q([]),B=Q([]),N=J(()=>i.style),q=J(()=>{var Ae;return(Ae=r.placeholder)!=null?Ae:d("el.cascader.placeholder")}),U=J(()=>P.value||O.value.length>0||v.value?"":q.value),j=fa(),H=J(()=>j.value==="small"?"small":"default"),G=J(()=>!!r.props.multiple),Z=J(()=>!r.filterable||G.value),$=J(()=>G.value?P.value:D.value),L=J(()=>{var Ae;return((Ae=w.value)==null?void 0:Ae.checkedNodes)||[]}),{wrapperRef:W,isFocused:ie,handleBlur:ee}=gp(m,{disabled:f,beforeBlur(Ae){var je,at,gt;return((je=g.value)==null?void 0:je.isFocusInsideContent(Ae))||((gt=(at=y.value)==null?void 0:at[0])==null?void 0:gt.isFocusInsideContent(Ae))},afterBlur(){var Ae;S.value=!1,r.validateEvent&&((Ae=c?.validate)==null||Ae.call(c,"blur").catch(je=>void 0))}}),te=J(()=>!r.clearable||f.value||M.value||!k.value&&!ie.value?!1:!!L.value.length),X=J(()=>{const{showAllLevels:Ae,separator:je}=r,at=L.value;return at.length?G.value?"":at[0].calcText(Ae,je):""}),ue=J(()=>c?.validateState||""),ve=J({get(){return cE(r.modelValue)},set(Ae){const je=Ae??p.value;n(Gn,je),n(Tr,je),r.validateEvent&&c?.validate("change").catch(at=>void 0)}}),Me=J(()=>[l.b(),l.m(j.value),l.is("disabled",f.value),i.class]),we=J(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",S.value)]),he=J(()=>l.is("focus",ie.value)),Te=J(()=>{var Ae,je;return(je=(Ae=g.value)==null?void 0:Ae.popperRef)==null?void 0:je.contentRef}),Y=Ae=>{if(ie.value){const je=new FocusEvent("blur",Ae);ee(je)}be(!1)},be=Ae=>{var je,at,gt;f.value||(Ae=Ae??!S.value,Ae!==S.value&&(S.value=Ae,(at=(je=m.value)==null?void 0:je.input)==null||at.setAttribute("aria-expanded",`${Ae}`),Ae?(De(),Vt((gt=w.value)==null?void 0:gt.scrollToExpandingNode)):r.filterable&&en(),n("visibleChange",Ae)))},De=()=>{Vt(()=>{var Ae;(Ae=g.value)==null||Ae.updatePopper()})},pe=()=>{M.value=!1},oe=Ae=>{const{showAllLevels:je,separator:at}=r;return{node:Ae,key:Ae.uid,text:Ae.calcText(je,at),hitState:!1,closable:!f.value&&!Ae.isDisabled,isCollapseTag:!1}},ce=Ae=>{var je;const at=Ae.node;at.doCheck(!1),(je=w.value)==null||je.calculateCheckedValue(),n("removeTag",at.valueByOption)},Re=()=>{switch(r.showCheckedStrategy){case"child":return L.value;case"parent":{const Ae=Ne(!1),je=Ae.map(gt=>gt.value);return Ae.filter(gt=>!gt.parent||!je.includes(gt.parent.value))}default:return[]}},Ee=()=>{if(!G.value)return;const Ae=Re(),je=[],at=[];if(Ae.forEach(gt=>at.push(oe(gt))),_.value=at,Ae.length){Ae.slice(0,r.maxCollapseTags).forEach(Tn=>je.push(oe(Tn)));const gt=Ae.slice(r.maxCollapseTags),nn=gt.length;nn&&(r.collapseTags?je.push({key:-1,text:`+ ${nn}`,closable:!1,isCollapseTag:!0}):gt.forEach(Tn=>je.push(oe(Tn))))}O.value=je},Le=()=>{var Ae,je;const{filterMethod:at,showAllLevels:gt,separator:nn}=r,Tn=(je=(Ae=w.value)==null?void 0:Ae.getFlattedNodes(!r.props.checkStrictly))==null?void 0:je.filter(He=>He.isDisabled?!1:(He.calcText(gt,nn),at(He,$.value)));G.value&&(O.value.forEach(He=>{He.hitState=!1}),_.value.forEach(He=>{He.hitState=!1})),M.value=!0,B.value=Tn,De()},Fe=()=>{var Ae;let je;M.value&&A.value?je=A.value.$el.querySelector(`.${l.e("suggestion-item")}`):je=(Ae=w.value)==null?void 0:Ae.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),je&&(je.focus(),!M.value&&je.click())},Pe=()=>{var Ae,je;const at=(Ae=m.value)==null?void 0:Ae.input,gt=b.value,nn=(je=A.value)==null?void 0:je.$el;if(!(!Kr||!at)){if(nn){const Tn=nn.querySelector(`.${l.e("suggestion-list")}`);Tn.style.minWidth=`${at.offsetWidth}px`}if(gt){const{offsetHeight:Tn}=gt,He=O.value.length>0?`${Math.max(Tn,a)-2}px`:`${a}px`;at.style.height=He,De()}}},Ne=Ae=>{var je;return(je=w.value)==null?void 0:je.getCheckedNodes(Ae)},pt=Ae=>{De(),n("expandChange",Ae)},Rt=Ae=>{if(!v.value)switch(Ae.code){case gn.enter:case gn.numpadEnter:be();break;case gn.down:be(!0),Vt(Fe),Ae.preventDefault();break;case gn.esc:S.value===!0&&(Ae.preventDefault(),Ae.stopPropagation(),be(!1));break;case gn.tab:be(!1);break}},Bt=()=>{var Ae;(Ae=w.value)==null||Ae.clearCheckedNodes(),!S.value&&r.filterable&&en(),be(!1),n("clear")},en=()=>{const{value:Ae}=X;D.value=Ae,P.value=Ae},Wt=Ae=>{var je,at;const{checked:gt}=Ae;G.value?(je=w.value)==null||je.handleCheckChange(Ae,!gt,!1):(!gt&&((at=w.value)==null||at.handleCheckChange(Ae,!0,!1)),be(!1))},Ut=Ae=>{const je=Ae.target,{code:at}=Ae;switch(at){case gn.up:case gn.down:{Ae.preventDefault();const gt=at===gn.up?-1:1;vS(o1e(je,gt,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case gn.enter:case gn.numpadEnter:je.click();break}},ct=()=>{const Ae=O.value,je=Ae[Ae.length-1];s=P.value?0:s+1,!(!je||!s||r.collapseTags&&Ae.length>1)&&(je.hitState?ce(je):je.hitState=!0)},_t=Fl(()=>{const{value:Ae}=$;if(!Ae)return;const je=r.beforeFilter(Ae);Av(je)?je.then(Le).catch(()=>{}):je!==!1?Le():pe()},r.debounce),st=(Ae,je)=>{!S.value&&be(!0),!je?.isComposing&&(Ae?_t():pe())},Ot=Ae=>Number.parseFloat(MRe(u.cssVarName("input-height"),Ae).value)-2;return St(M,De),St([L,f,()=>r.collapseTags],Ee),St(O,()=>{Vt(()=>Pe())}),St(j,async()=>{await Vt();const Ae=m.value.input;a=Ot(Ae)||a,Pe()}),St(X,en,{immediate:!0}),jn(()=>{const Ae=m.value.input,je=Ot(Ae);a=Ae.offsetHeight||je,li(Ae,Pe)}),t({getCheckedNodes:Ne,cascaderPanelRef:w,togglePopperVisible:be,contentRef:Te,presentText:X}),(Ae,je)=>(F(),mt(C(ps),{ref_key:"tooltipRef",ref:g,visible:S.value,teleported:Ae.teleported,"popper-class":[C(l).e("dropdown"),Ae.popperClass],"popper-style":Ae.popperStyle,"popper-options":o,"fallback-placements":Ae.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:Ae.placement,transition:`${C(l).namespace.value}-zoom-in-top`,effect:Ae.effect,pure:"",persistent:Ae.persistent,onHide:pe},{default:nt(()=>[ln((F(),K("div",{ref_key:"wrapperRef",ref:W,class:re(C(Me)),style:Xt(C(N)),onClick:()=>be(C(Z)?void 0:!0),onKeydown:Rt,onMouseenter:at=>k.value=!0,onMouseleave:at=>k.value=!1},[Ve(C(Us),{ref_key:"inputRef",ref:m,modelValue:D.value,"onUpdate:modelValue":at=>D.value=at,placeholder:C(U),readonly:C(Z),disabled:C(f),"validate-event":!1,size:C(j),class:re(C(he)),tabindex:C(G)&&Ae.filterable&&!C(f)?-1:void 0,onCompositionstart:C(h),onCompositionupdate:C(h),onCompositionend:C(h),onInput:st},Ll({suffix:nt(()=>[C(te)?(F(),mt(C(Dn),{key:"clear",class:re([C(u).e("icon"),"icon-circle-close"]),onClick:Qt(Bt,["stop"])},{default:nt(()=>[(F(),mt(hr(Ae.clearIcon)))]),_:1},8,["class","onClick"])):(F(),mt(C(Dn),{key:"arrow-down",class:re(C(we)),onClick:Qt(at=>be(),["stop"])},{default:nt(()=>[Ve(C(Kc))]),_:1},8,["class","onClick"]))]),_:2},[Ae.$slots.prefix?{name:"prefix",fn:nt(()=>[ft(Ae.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),C(G)?(F(),K("div",{key:0,ref_key:"tagWrapper",ref:b,class:re([C(l).e("tags"),C(l).is("validate",!!C(ue))])},[ft(Ae.$slots,"tag",{data:_.value,deleteTag:ce},()=>[(F(!0),K(Pt,null,an(O.value,at=>(F(),mt(C(Dh),{key:at.key,type:Ae.tagType,size:C(H),effect:Ae.tagEffect,hit:at.hitState,closable:at.closable,"disable-transitions":"",onClose:gt=>ce(at)},{default:nt(()=>[at.isCollapseTag===!1?(F(),K("span",{key:0},We(at.text),1)):(F(),mt(C(ps),{key:1,ref_for:!0,ref_key:"tagTooltipRef",ref:y,disabled:S.value||!Ae.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":Ae.popperClass,"popper-style":Ae.popperStyle,effect:Ae.effect},{default:nt(()=>[x("span",null,We(at.text),1)]),content:nt(()=>[Ve(C(Lc),{"max-height":Ae.maxCollapseTagsTooltipHeight},{default:nt(()=>[x("div",{class:re(C(l).e("collapse-tags"))},[(F(!0),K(Pt,null,an(_.value.slice(Ae.maxCollapseTags),(gt,nn)=>(F(),K("div",{key:nn,class:re(C(l).e("collapse-tag"))},[(F(),mt(C(Dh),{key:gt.key,class:"in-tooltip",type:Ae.tagType,size:C(H),effect:Ae.tagEffect,hit:gt.hitState,closable:gt.closable,"disable-transitions":"",onClose:Tn=>ce(gt)},{default:nt(()=>[x("span",null,We(gt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:2},1032,["disabled","popper-class","popper-style","effect"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),Ae.filterable&&!C(f)?ln((F(),K("input",{key:0,"onUpdate:modelValue":at=>P.value=at,type:"text",class:re(C(l).e("search-input")),placeholder:C(X)?"":C(q),onInput:at=>st(P.value,at),onClick:Qt(at=>be(!0),["stop"]),onKeydown:Lr(ct,["delete"]),onCompositionstart:C(h),onCompositionupdate:C(h),onCompositionend:C(h)},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[jr,P.value]]):xe("v-if",!0)],2)):xe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[C(Yf),Y,C(Te)]])]),content:nt(()=>[Ae.$slots.header?(F(),K("div",{key:0,class:re(C(l).e("header")),onClick:Qt(()=>{},["stop"])},[ft(Ae.$slots,"header")],10,["onClick"])):xe("v-if",!0),ln(Ve(C(iye),{ref_key:"cascaderPanelRef",ref:w,modelValue:C(ve),"onUpdate:modelValue":at=>Ro(ve)?ve.value=at:null,options:Ae.options,props:r.props,border:!1,"render-label":Ae.$slots.default,onExpandChange:pt,onClose:at=>Ae.$nextTick(()=>be(!1))},{empty:nt(()=>[ft(Ae.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[Ar,!M.value]]),Ae.filterable?ln((F(),mt(C(Lc),{key:1,ref_key:"suggestionPanel",ref:A,tag:"ul",class:re(C(l).e("suggestion-panel")),"view-class":C(l).e("suggestion-list"),onKeydown:Ut},{default:nt(()=>[B.value.length?(F(!0),K(Pt,{key:0},an(B.value,at=>(F(),K("li",{key:at.uid,class:re([C(l).e("suggestion-item"),C(l).is("checked",at.checked)]),tabindex:-1,onClick:gt=>Wt(at)},[ft(Ae.$slots,"suggestion-item",{item:at},()=>[x("span",null,We(at.text),1),at.checked?(F(),mt(C(Dn),{key:0},{default:nt(()=>[Ve(C(_C))]),_:1})):xe("v-if",!0)])],10,["onClick"]))),128)):ft(Ae.$slots,"empty",{key:1},()=>[x("li",{class:re(C(l).e("empty-text"))},We(C(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Ar,M.value]]):xe("v-if",!0),Ae.$slots.footer?(F(),K("div",{key:2,class:re(C(l).e("footer")),onClick:Qt(()=>{},["stop"])},[ft(Ae.$slots,"footer")],10,["onClick"])):xe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var bHe=Jt(yHe,[["__file","cascader.vue"]]);const wHe=er(bHe),AHe=Kt({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),CHe={"update:checked":e=>Co(e),[Tr]:e=>Co(e)},xHe=tt({name:"ElCheckTag"}),SHe=tt({...xHe,props:AHe,emits:CHe,setup(e,{emit:t}){const n=e,r=zt("check-tag"),o=J(()=>n.disabled),i=J(()=>[r.b(),r.is("checked",n.checked),r.is("disabled",o.value),r.m(n.type||"primary")]),a=()=>{if(o.value)return;const s=!n.checked;t(Tr,s),t("update:checked",s)};return(s,l)=>(F(),K("span",{class:re(C(i)),onClick:a},[ft(s.$slots,"default")],2))}});var EHe=Jt(SHe,[["__file","check-tag.vue"]]);const kHe=er(EHe),THe=Kt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:it([Number,Object]),default:()=>fi({})},sm:{type:it([Number,Object]),default:()=>fi({})},md:{type:it([Number,Object]),default:()=>fi({})},lg:{type:it([Number,Object]),default:()=>fi({})},xl:{type:it([Number,Object]),default:()=>fi({})}}),aye=Symbol("rowContextKey"),_He=tt({name:"ElCol"}),DHe=tt({..._He,props:THe,setup(e){const t=e,{gutter:n}=cn(aye,{gutter:J(()=>0)}),r=zt("col"),o=J(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=J(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];Ln(d)&&(u==="span"?a.push(r.b(`${t[u]}`)):d>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Ln(t[u])?a.push(r.b(`${u}-${t[u]}`)):ar(t[u])&&Object.entries(t[u]).forEach(([d,c])=>{a.push(d!=="span"?r.b(`${u}-${d}-${c}`):r.b(`${u}-${c}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,s)=>(F(),mt(hr(a.tag),{class:re(C(i)),style:Xt(C(o))},{default:nt(()=>[ft(a.$slots,"default")]),_:3},8,["class","style"]))}});var IHe=Jt(DHe,[["__file","col.vue"]]);const OHe=er(IHe),PJ=e=>Ln(e)||In(e)||qt(e),MHe=Kt({accordion:Boolean,modelValue:{type:it([Array,String,Number]),default:()=>fi([])},expandIconPosition:{type:it([String]),default:"right"},beforeCollapse:{type:it(Function)}}),PHe={[Gn]:PJ,[Tr]:PJ},sye=Symbol("collapseContextKey"),NHe="ElCollapse",RHe=(e,t)=>{const n=Q(Ka(e.modelValue)),r=a=>{n.value=a;const s=e.accordion?n.value[0]:n.value;t(Gn,s),t(Tr,s)},o=a=>{if(e.accordion)r([n.value[0]===a?"":a]);else{const s=[...n.value],l=s.indexOf(a);l>-1?s.splice(l,1):s.push(a),r(s)}},i=async a=>{const{beforeCollapse:s}=e;if(!s){o(a);return}const l=s(a);[Av(l),Co(l)].includes(!0)||Xi(NHe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Av(l)?l.then(d=>{d!==!1&&o(a)}).catch(d=>{}):l&&o(a)};return St(()=>e.modelValue,()=>n.value=Ka(e.modelValue),{deep:!0}),Sr(sye,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},BHe=e=>{const t=zt("collapse");return{rootKls:J(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},LHe=tt({name:"ElCollapse"}),FHe=tt({...LHe,props:MHe,emits:PHe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=RHe(r,n),{rootKls:a}=BHe(r);return t({activeNames:o,setActiveNames:i}),(s,l)=>(F(),K("div",{class:re(C(a))},[ft(s.$slots,"default")],2))}});var UHe=Jt(FHe,[["__file","collapse.vue"]]);const $He=tt({name:"ElCollapseTransition"}),zHe=tt({...$He,setup(e){const t=zt("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,i)=>(F(),mt(Wi,pr({name:C(t).b()},NTe(r)),{default:nt(()=>[ft(o.$slots,"default")]),_:3},16,["name"]))}});var jHe=Jt(zHe,[["__file","collapse-transition.vue"]]);const oD=er(jHe),HHe=Kt({title:{type:String,default:""},name:{type:it([String,Number]),default:void 0},icon:{type:vo,default:ka},disabled:Boolean}),WHe=e=>{const t=cn(sye),{namespace:n}=zt("collapse"),r=Q(!1),o=Q(!1),i=AH(),a=J(()=>i.current++),s=J(()=>{var f;return(f=e.name)!=null?f:`${n.value}-id-${i.prefix}-${C(a)}`}),l=J(()=>t?.activeNames.value.includes(C(s)));return{focusing:r,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:r.value=!0},50)},handleHeaderClick:f=>{if(e.disabled)return;const p=f.target;p?.closest("input, textarea, select")||(t?.handleItemClick(C(s)),r.value=!1,o.value=!0)},handleEnterClick:f=>{const p=f.target;p?.closest("input, textarea, select")||(f.preventDefault(),t?.handleItemClick(C(s)))}}},VHe=(e,{focusing:t,isActive:n,id:r})=>{const o=zt("collapse"),i=J(()=>[o.b("item"),o.is("active",C(n)),o.is("disabled",e.disabled)]),a=J(()=>[o.be("item","header"),o.is("active",C(n)),{focusing:C(t)&&!e.disabled}]),s=J(()=>[o.be("item","arrow"),o.is("active",C(n))]),l=J(()=>[o.be("item","title")]),u=J(()=>o.be("item","wrap")),d=J(()=>o.be("item","content")),c=J(()=>o.b(`content-${C(r)}`)),f=J(()=>o.b(`head-${C(r)}`));return{itemTitleKls:l,arrowKls:s,headKls:a,rootKls:i,itemWrapperKls:u,itemContentKls:d,scopedContentId:c,scopedHeadId:f}},qHe=tt({name:"ElCollapseItem"}),GHe=tt({...qHe,props:HHe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=WHe(n),{arrowKls:u,headKls:d,rootKls:c,itemTitleKls:f,itemWrapperKls:p,itemContentKls:v,scopedContentId:h,scopedHeadId:g}=VHe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(y,m)=>(F(),K("div",{class:re(C(c))},[x("div",{id:C(g),class:re(C(d)),"aria-expanded":C(i),"aria-controls":C(h),"aria-describedby":C(h),tabindex:y.disabled?-1:0,role:"button",onClick:C(s),onKeydown:Lr(Qt(C(l),["stop"]),["space","enter"]),onFocus:C(a),onBlur:b=>r.value=!1},[x("span",{class:re(C(f))},[ft(y.$slots,"title",{isActive:C(i)},()=>[xn(We(y.title),1)])],2),ft(y.$slots,"icon",{isActive:C(i)},()=>[Ve(C(Dn),{class:re(C(u))},{default:nt(()=>[(F(),mt(hr(y.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),Ve(C(oD),null,{default:nt(()=>[ln(x("div",{id:C(h),role:"region",class:re(C(p)),"aria-hidden":!C(i),"aria-labelledby":C(g)},[x("div",{class:re(C(v))},[ft(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[Ar,C(i)]])]),_:3})],2))}});var lye=Jt(GHe,[["__file","collapse-item.vue"]]);const KHe=er(UHe,{CollapseItem:lye}),QHe=vi(lye),YHe=Kt({color:{type:it(Object),required:!0},vertical:Boolean,disabled:Boolean});let vI=!1;function q3(e,t){if(!Kr)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},r=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,vI=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;vI||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),vI=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const NJ=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},xL=(e,t)=>Math.abs(NJ(e)-NJ(t)),BH=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},ZHe=e=>{const t=vr(),{t:n}=Hr(),r=Uo(),o=Uo(),i=J(()=>e.color.get("alpha")),a=J(()=>n("el.colorpicker.alphaLabel"));function s(c){var f;if(e.disabled)return;c.target!==r.value&&l(c),(f=r.value)==null||f.focus()}function l(c){if(!o.value||!r.value||e.disabled)return;const p=t.vnode.el.getBoundingClientRect(),{clientX:v,clientY:h}=BH(c);if(e.vertical){let g=h-p.top;g=Math.max(r.value.offsetHeight/2,g),g=Math.min(g,p.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((g-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*100))}else{let g=v-p.left;g=Math.max(r.value.offsetWidth/2,g),g=Math.min(g,p.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((g-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*100))}}function u(c){if(e.disabled)return;const{code:f,shiftKey:p}=c,v=p?10:1;switch(f){case gn.left:case gn.down:c.preventDefault(),c.stopPropagation(),d(-v);break;case gn.right:case gn.up:c.preventDefault(),c.stopPropagation(),d(v);break}}function d(c){let f=i.value+c;f=f<0?0:f>100?100:f,e.color.set("alpha",f)}return{thumb:r,bar:o,alpha:i,alphaLabel:a,handleDrag:l,handleClick:s,handleKeydown:u}},XHe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=vr(),i=zt("color-alpha-slider"),a=Q(0),s=Q(0),l=Q();function u(){if(!n.value||e.vertical)return 0;const m=o.vnode.el,b=e.color.get("alpha");return m?Math.round(b*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const m=o.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return m?Math.round(b*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:m,g:b,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${b}, ${w}, 0) 0%, rgba(${m}, ${b}, ${w}, 1) 100%)`}return""}function f(){a.value=u(),s.value=d(),l.value=c()}jn(()=>{if(!t.value||!n.value)return;const m={drag:b=>{r(b)},end:b=>{r(b)}};q3(t.value,m),q3(n.value,m),f()}),St(()=>e.color.get("alpha"),()=>f()),St(()=>e.color.value,()=>f());const p=J(()=>[i.b(),i.is("vertical",e.vertical),i.is("disabled",e.disabled)]),v=J(()=>i.e("bar")),h=J(()=>i.e("thumb")),g=J(()=>({background:l.value})),y=J(()=>({left:_i(a.value),top:_i(s.value)}));return{rootKls:p,barKls:v,barStyle:g,thumbKls:h,thumbStyle:y,update:f}},JHe="ElColorAlphaSlider",eWe=tt({name:JHe}),tWe=tt({...eWe,props:YHe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=ZHe(n),{rootKls:d,barKls:c,barStyle:f,thumbKls:p,thumbStyle:v,update:h}=XHe(n,{bar:i,thumb:a,handleDrag:s});return t({update:h,bar:i,thumb:a}),(g,y)=>(F(),K("div",{class:re(C(d))},[x("div",{ref_key:"bar",ref:i,class:re(C(c)),style:Xt(C(f)),onClick:C(l)},null,14,["onClick"]),x("div",{ref_key:"thumb",ref:a,class:re(C(p)),style:Xt(C(v)),"aria-label":C(o),"aria-valuenow":C(r),"aria-orientation":g.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:C(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var nWe=Jt(tWe,[["__file","alpha-slider.vue"]]);const rWe=tt({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean},setup(e){const t=zt("color-hue-slider"),n=vr(),r=Q(),o=Q(),i=Q(0),a=Q(0),s=J(()=>e.color.get("hue"));St(()=>s.value,()=>{f()});function l(p){if(e.disabled)return;p.target!==r.value&&u(p)}function u(p){if(!o.value||!r.value||e.disabled)return;const h=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=BH(p);let m;if(e.vertical){let b=y-h.top;b=Math.min(b,h.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),m=Math.round((b-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*360)}else{let b=g-h.left;b=Math.min(b,h.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),m=Math.round((b-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*360)}e.color.set("hue",m)}function d(){if(!r.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return p?Math.round(v*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function c(){if(!r.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return p?Math.round(v*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){i.value=d(),a.value=c()}return jn(()=>{if(!o.value||!r.value||e.disabled)return;const p={drag:v=>{u(v)},end:v=>{u(v)}};q3(o.value,p),q3(r.value,p),f()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:f,ns:t}}});function oWe(e,t,n,r,o,i){return F(),K("div",{class:re([e.ns.b(),e.ns.is("vertical",e.vertical)])},[x("div",{ref:"bar",class:re(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),x("div",{ref:"thumb",class:re(e.ns.e("thumb")),style:Xt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var iWe=Jt(rWe,[["render",oWe],["__file","hue-slider.vue"]]);const uye=Kt({modelValue:{type:it(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:it(Array)}}),aWe={[Gn]:e=>In(e)||Zi(e)},cye=Symbol("colorCommonPickerKey"),dye=Symbol("colorPickerPanelContextKey");class gE{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new N1,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)Zr(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)Zr(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new N1(t);if(this._isValid=n.isValid,n.isValid){const{h:r,s:o,v:i,a}=n.toHsv();this._hue=r,this._saturation=o*100,this._value=i*100,this._alpha=a*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(t){const n=new N1({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:o,format:i,enableAlpha:a}=this;let s=i||(a?"rgb":"hex");i==="hex"&&a&&(s="hex8"),this._tiny=new N1({h:t,s:n/100,v:r/100,a:o/100}),this.value=this._isValid?this._tiny.toString(s):""}}const sWe=tt({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean},setup(e){const t=zt("color-predefine"),{currentColor:n}=cn(dye),r=Q(i(e.colors,e.color));St(()=>n.value,a=>{const s=new gE({value:a});r.value.forEach(l=>{l.selected=s.compare(l)})}),Cs(()=>{r.value=i(e.colors,e.color)});function o(a){e.disabled||e.color.fromString(e.colors[a])}function i(a,s){return a.map(l=>{const u=new gE({value:l});return u.selected=u.compare(s),u})}return{rgbaColors:r,handleSelect:o,ns:t}}});function lWe(e,t,n,r,o,i){return F(),K("div",{class:re(e.ns.b())},[x("div",{class:re(e.ns.e("colors"))},[(F(!0),K(Pt,null,an(e.rgbaColors,(a,s)=>(F(),K("div",{key:e.colors[s],class:re([e.ns.e("color-selector"),e.ns.is("alpha",a.get("alpha")<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[x("div",{style:Xt({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var uWe=Jt(sWe,[["render",lWe],["__file","predefine.vue"]]);const cWe=tt({name:"ElSlPanel",props:{color:{type:Object,required:!0},disabled:Boolean},setup(e){const t=zt("color-svpanel"),n=vr(),r=Q(0),o=Q(0),i=Q("hsl(0, 100%, 50%)"),a=J(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function s(){const u=e.color.get("saturation"),d=e.color.get("value"),c=n.vnode.el,{clientWidth:f,clientHeight:p}=c;o.value=u*f/100,r.value=(100-d)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){if(e.disabled)return;const c=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:p}=BH(u);let v=f-c.left,h=p-c.top;v=Math.max(0,v),v=Math.min(v,c.width),h=Math.max(0,h),h=Math.min(h,c.height),o.value=v,r.value=h,e.color.set({saturation:v/c.width*100,value:100-h/c.height*100})}return St(()=>a.value,()=>{s()}),jn(()=>{q3(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:i,colorValue:a,handleDrag:l,update:s,ns:t}}});function dWe(e,t,n,r,o,i){return F(),K("div",{class:re(e.ns.b()),style:Xt({backgroundColor:e.background})},[x("div",{class:re(e.ns.e("white"))},null,2),x("div",{class:re(e.ns.e("black"))},null,2),x("div",{class:re(e.ns.e("cursor")),style:Xt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[x("div")],6)],6)}var fWe=Jt(cWe,[["render",dWe],["__file","sv-panel.vue"]]);const fye=(e,t)=>{const n=Ur(new gE({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return St(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(Gn,n.value)}),{color:n}},pWe=tt({name:"ElColorPickerPanel"}),hWe=tt({...pWe,props:uye,emits:aWe,setup(e,{expose:t,emit:n}){const r=e,o=zt("color-picker-panel"),i=Wa(),a=Q(),s=Q(),l=Q(),u=Q(),d=Q(""),{color:c}=cn(cye,()=>fye(r,n),!0);function f(){c.fromString(d.value),c.value!==d.value&&(d.value=c.value)}return jn(()=>{r.modelValue&&(d.value=c.value),Vt(()=>{var p,v,h;(p=a.value)==null||p.update(),(v=s.value)==null||v.update(),(h=l.value)==null||h.update()})}),St(()=>r.modelValue,p=>{p&&p!==c.value&&c.fromString(p)}),St(()=>c.value,p=>{n(Gn,p),d.value=p}),Sr(dye,{currentColor:J(()=>c.value)}),t({color:c,inputRef:u}),(p,v)=>(F(),K("div",{class:re([C(o).b(),C(o).is("disabled",C(i)),C(o).is("border",p.border)])},[x("div",{class:re(C(o).e("wrapper"))},[Ve(iWe,{ref_key:"hue",ref:a,class:"hue-slider",color:C(c),vertical:"",disabled:C(i)},null,8,["color","disabled"]),Ve(fWe,{ref_key:"sv",ref:s,color:C(c),disabled:C(i)},null,8,["color","disabled"])],2),p.showAlpha?(F(),mt(nWe,{key:0,ref_key:"alpha",ref:l,color:C(c),disabled:C(i)},null,8,["color","disabled"])):xe("v-if",!0),p.predefine?(F(),mt(uWe,{key:1,ref:"predefine","enable-alpha":p.showAlpha,color:C(c),colors:p.predefine,disabled:C(i)},null,8,["enable-alpha","color","colors","disabled"])):xe("v-if",!0),x("div",{class:re(C(o).e("footer"))},[Ve(C(Us),{ref_key:"inputRef",ref:u,modelValue:d.value,"onUpdate:modelValue":h=>d.value=h,"validate-event":!1,size:"small",disabled:C(i),onChange:f},null,8,["modelValue","onUpdate:modelValue","disabled"]),ft(p.$slots,"footer")],2)],2))}});var gWe=Jt(hWe,[["__file","color-picker-panel.vue"]]);const pye=er(gWe),vWe=Kt({persistent:{type:Boolean,default:!0},modelValue:{type:it(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ba,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:oi.teleported,appendTo:oi.appendTo,predefine:{type:it(Array)},validateEvent:{type:Boolean,default:!0},...nm,...Es(["ariaLabel"])}),mWe={[Gn]:e=>In(e)||Zi(e),[Tr]:e=>In(e)||Zi(e),activeChange:e=>In(e)||Zi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},yWe=tt({name:"ElColorPicker"}),bWe=tt({...yWe,props:vWe,emits:mWe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=zt("color"),{formItem:a}=ks(),s=fa(),l=Wa(),{valueOnClear:u,isEmptyValue:d}=TC(r,null),c=fye(r,n),{inputId:f,isLabeledByFormItem:p}=ac(r,{formItemContext:a}),v=Q(),h=Q(),g=Q(),y=Q(!1),m=Q(!1);let b=!0;const{isFocused:w,handleFocus:A,handleBlur:S}=gp(h,{disabled:l,beforeBlur(ue){var ve;return(ve=v.value)==null?void 0:ve.isFocusInsideContent(ue)},afterBlur(){q(!1),G()}}),k=kRe(()=>{var ue,ve;return(ve=(ue=g.value)==null?void 0:ue.color)!=null?ve:c.color}),M=J(()=>ru(r,Object.keys(uye))),D=J(()=>!r.modelValue&&!m.value?"transparent":N(k,r.showAlpha)),P=J(()=>!r.modelValue&&!m.value?"":k.value),O=J(()=>p.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),_=J(()=>p.value?a?.labelId:void 0),B=J(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",w.value)]);function N(ue,ve){const{r:Me,g:we,b:he,a:Te}=ue.toRgb();return ve?`rgba(${Me}, ${we}, ${he}, ${Te})`:`rgb(${Me}, ${we}, ${he})`}function q(ue){y.value=ue}const U=Fl(q,100,{leading:!0});function j(){l.value||q(!0)}function H(){U(!1),G()}function G(){Vt(()=>{r.modelValue?k.fromString(r.modelValue):(k.value="",Vt(()=>{m.value=!1}))})}function Z(){l.value||(y.value&&G(),U(!y.value))}function $(){const ue=d(k.value)?u.value:k.value;n(Gn,ue),n(Tr,ue),r.validateEvent&&a?.validate("change").catch(ve=>void 0),U(!1),Vt(()=>{const ve=new gE({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});k.compare(ve)||G()})}function L(){U(!1),n(Gn,u.value),n(Tr,u.value),r.modelValue!==u.value&&r.validateEvent&&a?.validate("change").catch(ue=>void 0),G()}function W(){y.value&&(H(),w.value&&te())}function ie(ue){ue.preventDefault(),ue.stopPropagation(),q(!1),G()}function ee(ue){var ve,Me;switch(ue.code){case gn.enter:case gn.numpadEnter:case gn.space:ue.preventDefault(),ue.stopPropagation(),j(),(Me=(ve=g?.value)==null?void 0:ve.inputRef)==null||Me.focus();break;case gn.esc:ie(ue);break}}function te(){h.value.focus()}function X(){h.value.blur()}return St(()=>P.value,ue=>{b&&n("activeChange",ue),b=!0}),St(()=>k.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),St(()=>r.modelValue,ue=>{ue?ue&&ue!==k.value&&(b=!1,k.fromString(ue)):m.value=!1}),Sr(cye,c),t({color:k,show:j,hide:H,focus:te,blur:X}),(ue,ve)=>(F(),mt(C(ps),{ref_key:"popper",ref:v,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[C(i).be("picker","panel"),ue.popperClass],"stop-popper-mouse-event":!1,pure:"",effect:"light",trigger:"click",teleported:ue.teleported,transition:`${C(i).namespace.value}-zoom-in-top`,persistent:ue.persistent,"append-to":ue.appendTo,onHide:Me=>q(!1)},{content:nt(()=>[ln((F(),mt(C(pye),pr({ref_key:"pickerPanelRef",ref:g},C(M),{border:!1,onKeydown:Lr(ie,["esc"])}),{footer:nt(()=>[x("div",null,[Ve(C(Za),{class:re(C(i).be("footer","link-btn")),text:"",size:"small",onClick:L},{default:nt(()=>[xn(We(C(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),Ve(C(Za),{plain:"",size:"small",class:re(C(i).be("footer","btn")),onClick:$},{default:nt(()=>[xn(We(C(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16,["onKeydown"])),[[C(Yf),W,h.value]])]),default:nt(()=>[x("div",pr({id:C(f),ref_key:"triggerRef",ref:h},ue.$attrs,{class:C(B),role:"button","aria-label":C(O),"aria-labelledby":C(_),"aria-description":C(o)("el.colorpicker.description",{color:ue.modelValue||""}),"aria-disabled":C(l),tabindex:C(l)?void 0:ue.tabindex,onKeydown:ee,onFocus:C(A),onBlur:C(S)}),[x("div",{class:re(C(i).be("picker","trigger")),onClick:Z},[x("span",{class:re([C(i).be("picker","color"),C(i).is("alpha",ue.showAlpha)])},[x("span",{class:re(C(i).be("picker","color-inner")),style:Xt({backgroundColor:C(D)})},[ln(Ve(C(Dn),{class:re([C(i).be("picker","icon"),C(i).is("icon-arrow-down")])},{default:nt(()=>[Ve(C(Kc))]),_:1},8,["class"]),[[Ar,ue.modelValue||m.value]]),ln(Ve(C(Dn),{class:re([C(i).be("picker","empty"),C(i).is("icon-close")])},{default:nt(()=>[Ve(C(cu))]),_:1},8,["class"]),[[Ar,!ue.modelValue&&!m.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","persistent","append-to","onHide"]))}});var wWe=Jt(bWe,[["__file","color-picker.vue"]]);const AWe=er(wWe),CWe=Kt({a11y:{type:Boolean,default:!0},locale:{type:it(Object)},size:ba,button:{type:it(Object)},card:{type:it(Object)},dialog:{type:it(Object)},link:{type:it(Object)},experimentalFeatures:{type:it(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:it(Object)},zIndex:Number,namespace:{type:String,default:"el"},...nm}),Ps={placement:"top"},xWe=tt({name:"ElConfigProvider",props:CWe,setup(e,{slots:t}){const n=hH(e);return St(()=>e.message,r=>{var o,i;Object.assign(Ps,(i=(o=n?.value)==null?void 0:o.message)!=null?i:{},r??{})},{immediate:!0,deep:!0}),()=>ft(t,"default",{config:n?.value})}}),SWe=er(xWe),EWe=tt({name:"ElContainer"}),kWe=tt({...EWe,props:{direction:{type:String}},setup(e){const t=e,n=pa(),r=zt("container"),o=J(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const s=a.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,a)=>(F(),K("section",{class:re([C(r).b(),C(r).is("vertical",C(o))])},[ft(i.$slots,"default")],2))}});var TWe=Jt(kWe,[["__file","container.vue"]]);const _We=tt({name:"ElAside"}),DWe=tt({..._We,props:{width:{type:String,default:null}},setup(e){const t=e,n=zt("aside"),r=J(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,i)=>(F(),K("aside",{class:re(C(n).b()),style:Xt(C(r))},[ft(o.$slots,"default")],6))}});var hye=Jt(DWe,[["__file","aside.vue"]]);const IWe=tt({name:"ElFooter"}),OWe=tt({...IWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=zt("footer"),r=J(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(F(),K("footer",{class:re(C(n).b()),style:Xt(C(r))},[ft(o.$slots,"default")],6))}});var gye=Jt(OWe,[["__file","footer.vue"]]);const MWe=tt({name:"ElHeader"}),PWe=tt({...MWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=zt("header"),r=J(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(F(),K("header",{class:re(C(n).b()),style:Xt(C(r))},[ft(o.$slots,"default")],6))}});var vye=Jt(PWe,[["__file","header.vue"]]);const NWe=tt({name:"ElMain"}),RWe=tt({...NWe,setup(e){const t=zt("main");return(n,r)=>(F(),K("main",{class:re(C(t).b())},[ft(n.$slots,"default")],2))}});var mye=Jt(RWe,[["__file","main.vue"]]);const BWe=er(TWe,{Aside:hye,Footer:gye,Header:vye,Main:mye}),LWe=vi(hye),FWe=vi(gye),UWe=vi(vye),$We=vi(mye);var AS={exports:{}},zWe=AS.exports,RJ;function jWe(){return RJ||(RJ=1,(function(e,t){(function(n,r){e.exports=r()})(zWe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(y){this[g]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var m=y.match(/([+-]|\d\d)/g),b=60*m[1]+(+m[2]||0);return b===0?0:m[0]==="+"?-b:b})(g)}],f=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(g,y){var m,b=l.meridiem;if(b){for(var w=1;w<=24;w+=1)if(g.indexOf(b(w,0,y))>-1){m=w>12;break}}else m=g===(y?"pm":"PM");return m},v={A:[s,function(g){this.afternoon=p(g,!1)}],a:[s,function(g){this.afternoon=p(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[s,function(g){var y=l.ordinal,m=g.match(/\d+/);if(this.day=m[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[s,function(g){var y=f("months"),m=(f("monthsShort")||y.map((function(b){return b.slice(0,3)}))).indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function h(g){var y,m;y=g,m=l&&l.formats;for(var b=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,O,_){var B=_&&_.toUpperCase();return O||m[_]||n[_]||m[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,q,U){return q||U.slice(1)}))}))).match(r),w=b.length,A=0;A<w;A+=1){var S=b[A],k=v[S],M=k&&k[0],D=k&&k[1];b[A]=D?{regex:M,parser:D}:S.replace(/^\[|\]$/g,"")}return function(P){for(var O={},_=0,B=0;_<w;_+=1){var N=b[_];if(typeof N=="string")B+=N.length;else{var q=N.regex,U=N.parser,j=P.slice(B),H=q.exec(j)[0];U.call(O,H),P=P.replace(H,"")}}return(function(G){var Z=G.afternoon;if(Z!==void 0){var $=G.hours;Z?$<12&&(G.hours+=12):$===12&&(G.hours=0),delete G.afternoon}})(O),O}}return function(g,y,m){m.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var b=y.prototype,w=b.parse;b.parse=function(A){var S=A.date,k=A.utc,M=A.args;this.$u=k;var D=M[1];if(typeof D=="string"){var P=M[2]===!0,O=M[3]===!0,_=P||O,B=M[2];O&&(B=M[2]),l=this.$locale(),!P&&B&&(l=m.Ls[B]),this.$d=(function(j,H,G,Z){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*j);var $=h(H)(j),L=$.year,W=$.month,ie=$.day,ee=$.hours,te=$.minutes,X=$.seconds,ue=$.milliseconds,ve=$.zone,Me=$.week,we=new Date,he=ie||(L||W?1:we.getDate()),Te=L||we.getFullYear(),Y=0;L&&!W||(Y=W>0?W-1:we.getMonth());var be,De=ee||0,pe=te||0,oe=X||0,ce=ue||0;return ve?new Date(Date.UTC(Te,Y,he,De,pe,oe,ce+60*ve.offset*1e3)):G?new Date(Date.UTC(Te,Y,he,De,pe,oe,ce)):(be=new Date(Te,Y,he,De,pe,oe,ce),Me&&(be=Z(be).week(Me).toDate()),be)}catch{return new Date("")}})(S,D,k,m),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),_&&S!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var N=D.length,q=1;q<=N;q+=1){M[1]=D[q-1];var U=m.apply(this,M);if(U.isValid()){this.$d=U.$d,this.$L=U.$L,this.init();break}q===N&&(this.$d=new Date(""))}else w.call(this,A)}}}))})(AS)),AS.exports}var HWe=jWe();const LH=mu(HWe),BJ=["hours","minutes","seconds"],Fc="EP_PICKER_BASE",FH="ElPopperOptions",yye=Symbol("commonPickerContextKey"),Py="HH:mm:ss",lh="YYYY-MM-DD",WWe={date:lh,dates:lh,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${lh} ${Py}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:lh,datetimerange:`${lh} ${Py}`},bye=(e,t)=>{const{lang:n}=Hr(),r=Q(!1),o=Q(!1),i=Q(null),a=J(()=>{const{modelValue:v}=e;return!v||qt(v)&&!v.filter(Boolean).length}),s=v=>{if(!z1e(e.modelValue,v)){let h;qt(v)?h=v.map(y=>xJ(y,e.valueFormat,n.value)):v&&(h=xJ(v,e.valueFormat,n.value)),t(Gn,v&&h,n.value)}},l=J(()=>{var v;let h;if(a.value?u.value.getDefaultValue&&(h=u.value.getDefaultValue()):qt(e.modelValue)?h=e.modelValue.map(g=>CJ(g,e.valueFormat,n.value)):h=CJ((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),u.value.getRangeAvailableTime){const g=u.value.getRangeAvailableTime(h);ua(g,h)||(h=g,a.value||s(bS(h)))}return qt(h)&&h.some(g=>!g)&&(h=[]),h}),u=Q({});return{parsedValue:l,pickerActualVisible:o,pickerOptions:u,pickerVisible:r,userInput:i,valueIsEmpty:a,emitInput:s,onCalendarChange:v=>{t("calendar-change",v)},onPanelChange:(v,h,g)=>{t("panel-change",v,h,g)},onPick:(v="",h=!1)=>{r.value=h;let g;qt(v)?g=v.map(y=>y.toDate()):g=v&&v.toDate(),i.value=null,s(g)},onSetPickerOption:v=>{u.value[v[0]]=v[1],u.value.panelReady=!0}}},UH=Kt({disabledHours:{type:it(Function)},disabledMinutes:{type:it(Function)},disabledSeconds:{type:it(Function)}}),wye=Kt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),$H=Kt({id:{type:it([Array,String])},name:{type:it([Array,String])},popperClass:oi.popperClass,popperStyle:oi.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:it([String,Object]),default:Yd},editable:{type:Boolean,default:!0},prefixIcon:{type:it([String,Object]),default:""},size:ba,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:it(Object),default:()=>({})},modelValue:{type:it([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:it([Date,Array])},defaultTime:{type:it([Date,Array])},isRange:Boolean,...UH,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:it([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:it(String),values:vp,default:"bottom"},fallbackPlacements:{type:it(Array),default:["bottom","top","right","left"]},...nm,...Es(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),VWe=Kt({id:{type:it(Array)},name:{type:it(Array)},modelValue:{type:it([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),qWe=tt({name:"PickerRangeTrigger",inheritAttrs:!1}),GWe=tt({...qWe,props:VWe,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=e,o=X_(),i=zt("date"),a=zt("range"),s=Q(),l=Q(),{wrapperRef:u,isFocused:d}=gp(s,{disabled:J(()=>r.disabled)}),c=A=>{n("click",A)},f=A=>{n("mouseenter",A)},p=A=>{n("mouseleave",A)},v=A=>{n("touchstart",A)},h=A=>{n("startInput",A)},g=A=>{n("endInput",A)},y=A=>{n("startChange",A)},m=A=>{n("endChange",A)};return t({focus:()=>{var A;(A=s.value)==null||A.focus()},blur:()=>{var A,S;(A=s.value)==null||A.blur(),(S=l.value)==null||S.blur()}}),(A,S)=>(F(),K("div",{ref_key:"wrapperRef",ref:u,class:re([C(i).is("active",C(d)),A.$attrs.class]),style:Xt(A.$attrs.style),onClick:c,onMouseenter:f,onMouseleave:p,onTouchstartPassive:v},[ft(A.$slots,"prefix"),x("input",pr(C(o),{id:A.id&&A.id[0],ref_key:"inputRef",ref:s,name:A.name&&A.name[0],placeholder:A.startPlaceholder,value:A.modelValue&&A.modelValue[0],class:C(a).b("input"),disabled:A.disabled,onInput:h,onChange:y}),null,16,["id","name","placeholder","value","disabled"]),ft(A.$slots,"range-separator"),x("input",pr(C(o),{id:A.id&&A.id[1],ref_key:"endInputRef",ref:l,name:A.name&&A.name[1],placeholder:A.endPlaceholder,value:A.modelValue&&A.modelValue[1],class:C(a).b("input"),disabled:A.disabled,onInput:g,onChange:m}),null,16,["id","name","placeholder","value","disabled"]),ft(A.$slots,"suffix")],38))}});var KWe=Jt(GWe,[["__file","picker-range-trigger.vue"]]);const QWe=tt({name:"Picker"}),YWe=tt({...QWe,props:$H,emits:[Gn,Tr,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=fp(),i=zt("date"),a=zt("input"),s=zt("range"),{formItem:l}=ks(),u=cn(FH,{}),{valueOnClear:d}=TC(r,null),c=Q(),f=Q(),p=Q(null);let v=!1;const h=Wa(),g=bye(r,n),{parsedValue:y,pickerActualVisible:m,userInput:b,pickerVisible:w,pickerOptions:A,valueIsEmpty:S,emitInput:k,onPick:M,onSetPickerOption:D,onCalendarChange:P,onPanelChange:O}=g,{isFocused:_,handleFocus:B,handleBlur:N}=gp(f,{disabled:h,beforeFocus(){return r.readonly},afterFocus(){w.value=!0},beforeBlur(Ae){var je;return!v&&((je=c.value)==null?void 0:je.isFocusInsideContent(Ae))},afterBlur(){Pe(),w.value=!1,v=!1,r.validateEvent&&l?.validate("blur").catch(Ae=>void 0)}}),q=Q(!1),U=J(()=>[i.b("editor"),i.bm("editor",r.type),a.e("wrapper"),i.is("disabled",h.value),i.is("active",w.value),s.b("editor"),Ee?s.bm("editor",Ee.value):"",o.class]),j=J(()=>[a.e("icon"),s.e("close-icon"),Y.value?"":s.e("close-icon--hidden")]);St(w,Ae=>{Ae?Vt(()=>{Ae&&(p.value=r.modelValue)}):(b.value=null,Vt(()=>{H(r.modelValue)}))});const H=(Ae,je)=>{(je||!z1e(Ae,p.value))&&(n(Tr,Ae),je&&(p.value=Ae),r.validateEvent&&l?.validate("change").catch(at=>void 0))},G=Ae=>{n("keydown",Ae)},Z=J(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),$=(Ae,je,at)=>{const gt=Z.value;gt.length&&(!at||at==="min"?(gt[0].setSelectionRange(Ae,je),gt[0].focus()):at==="max"&&(gt[1].setSelectionRange(Ae,je),gt[1].focus()))},L=()=>{m.value=!0},W=()=>{n("visible-change",!0)},ie=()=>{m.value=!1,w.value=!1,n("visible-change",!1)},ee=()=>{w.value=!0},te=()=>{w.value=!1},X=J(()=>{if(!A.value.panelReady)return"";const Ae=pt(y.value);return qt(b.value)?[b.value[0]||Ae&&Ae[0]||"",b.value[1]||Ae&&Ae[1]||""]:b.value!==null?b.value:!ve.value&&S.value||!w.value&&S.value?"":Ae?Me.value||we.value||he.value?Ae.join(", "):Ae:""}),ue=J(()=>r.type.includes("time")),ve=J(()=>r.type.startsWith("time")),Me=J(()=>r.type==="dates"),we=J(()=>r.type==="months"),he=J(()=>r.type==="years"),Te=J(()=>r.prefixIcon||(ue.value?Qme:kBe)),Y=J(()=>r.clearable&&!h.value&&!r.readonly&&!S.value&&(q.value||_.value)),be=Ae=>{r.readonly||h.value||(Y.value&&(Ae.stopPropagation(),A.value.handleClear?A.value.handleClear():k(d.value),H(d.value,!0),ie()),n("clear"))},De=async Ae=>{var je;r.readonly||h.value||(((je=Ae.target)==null?void 0:je.tagName)!=="INPUT"||_.value)&&(w.value=!0)},pe=()=>{r.readonly||h.value||!S.value&&r.clearable&&(q.value=!0)},oe=()=>{q.value=!1},ce=Ae=>{var je;r.readonly||h.value||(((je=Ae.touches[0].target)==null?void 0:je.tagName)!=="INPUT"||_.value)&&(w.value=!0)},Re=J(()=>r.type.includes("range")),Ee=fa(),Le=J(()=>{var Ae,je;return(je=(Ae=C(c))==null?void 0:Ae.popperRef)==null?void 0:je.contentRef}),Fe=fH(f,Ae=>{const je=C(Le),at=Sa(f);je&&(Ae.target===je||Ae.composedPath().includes(je))||Ae.target===at||at&&Ae.composedPath().includes(at)||(w.value=!1)});Qr(()=>{Fe?.()});const Pe=()=>{if(b.value){const Ae=Ne(X.value);Ae&&Rt(Ae)&&(k(bS(Ae)),b.value=null)}b.value===""&&(k(d.value),H(d.value,!0),b.value=null)},Ne=Ae=>Ae?A.value.parseUserInput(Ae):null,pt=Ae=>Ae?A.value.formatToString(Ae):null,Rt=Ae=>A.value.isValidValue(Ae),Bt=async Ae=>{if(r.readonly||h.value)return;const{code:je}=Ae;if(G(Ae),je===gn.esc){w.value===!0&&(w.value=!1,Ae.preventDefault(),Ae.stopPropagation());return}if(je===gn.down&&(A.value.handleFocusPicker&&(Ae.preventDefault(),Ae.stopPropagation()),w.value===!1&&(w.value=!0,await Vt()),A.value.handleFocusPicker)){A.value.handleFocusPicker();return}if(je===gn.tab){v=!0;return}if(je===gn.enter||je===gn.numpadEnter){(b.value===null||b.value===""||Rt(Ne(X.value)))&&(Pe(),w.value=!1),Ae.stopPropagation();return}if(b.value){Ae.stopPropagation();return}A.value.handleKeydownInput&&A.value.handleKeydownInput(Ae)},en=Ae=>{b.value=Ae,w.value||(w.value=!0)},Wt=Ae=>{const je=Ae.target;b.value?b.value=[je.value,b.value[1]]:b.value=[je.value,null]},Ut=Ae=>{const je=Ae.target;b.value?b.value=[b.value[0],je.value]:b.value=[null,je.value]},ct=()=>{var Ae;const je=b.value,at=Ne(je&&je[0]),gt=C(y);if(at&&at.isValid()){b.value=[pt(at),((Ae=X.value)==null?void 0:Ae[1])||null];const nn=[at,gt&&(gt[1]||null)];Rt(nn)&&(k(bS(nn)),b.value=null)}},_t=()=>{var Ae;const je=C(b),at=Ne(je&&je[1]),gt=C(y);if(at&&at.isValid()){b.value=[((Ae=C(X))==null?void 0:Ae[0])||null,pt(at)];const nn=[gt&>[0],at];Rt(nn)&&(k(bS(nn)),b.value=null)}},st=()=>{var Ae;(Ae=f.value)==null||Ae.focus()},Ot=()=>{var Ae;(Ae=f.value)==null||Ae.blur()};return Sr(Fc,{props:r}),Sr(yye,g),t({focus:st,blur:Ot,handleOpen:ee,handleClose:te,onPick:M}),(Ae,je)=>(F(),mt(C(ps),pr({ref_key:"refPopper",ref:c,visible:C(w),effect:"light",pure:"",trigger:"click"},Ae.$attrs,{role:"dialog",teleported:"",transition:`${C(i).namespace.value}-zoom-in-top`,"popper-class":[`${C(i).namespace.value}-picker__popper`,Ae.popperClass],"popper-style":Ae.popperStyle,"popper-options":C(u),"fallback-placements":Ae.fallbackPlacements,"gpu-acceleration":!1,placement:Ae.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:L,onShow:W,onHide:ie}),{default:nt(()=>[C(Re)?(F(),mt(KWe,{key:1,id:Ae.id,ref_key:"inputRef",ref:f,"model-value":C(X),name:Ae.name,disabled:C(h),readonly:!Ae.editable||Ae.readonly,"start-placeholder":Ae.startPlaceholder,"end-placeholder":Ae.endPlaceholder,class:re(C(U)),style:Xt(Ae.$attrs.style),"aria-label":Ae.ariaLabel,tabindex:Ae.tabindex,autocomplete:"off",role:"combobox",onClick:De,onFocus:C(B),onBlur:C(N),onStartInput:Wt,onStartChange:ct,onEndInput:Ut,onEndChange:_t,onMousedown:De,onMouseenter:pe,onMouseleave:oe,onTouchstartPassive:ce,onKeydown:Bt},{prefix:nt(()=>[C(Te)?(F(),mt(C(Dn),{key:0,class:re([C(a).e("icon"),C(s).e("icon")])},{default:nt(()=>[(F(),mt(hr(C(Te))))]),_:1},8,["class"])):xe("v-if",!0)]),"range-separator":nt(()=>[ft(Ae.$slots,"range-separator",{},()=>[x("span",{class:re(C(s).b("separator"))},We(Ae.rangeSeparator),3)])]),suffix:nt(()=>[Ae.clearIcon?(F(),mt(C(Dn),{key:0,class:re(C(j)),onMousedown:Qt(C(go),["prevent"]),onClick:be},{default:nt(()=>[(F(),mt(hr(Ae.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(F(),mt(C(Us),{key:0,id:Ae.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":C(X),name:Ae.name,size:C(Ee),disabled:C(h),placeholder:Ae.placeholder,class:re([C(i).b("editor"),C(i).bm("editor",Ae.type),C(i).is("focus",C(w)),Ae.$attrs.class]),style:Xt(Ae.$attrs.style),readonly:!Ae.editable||Ae.readonly||C(Me)||C(we)||C(he)||Ae.type==="week","aria-label":Ae.ariaLabel,tabindex:Ae.tabindex,"validate-event":!1,onInput:en,onFocus:C(B),onBlur:C(N),onKeydown:Bt,onChange:Pe,onMousedown:De,onMouseenter:pe,onMouseleave:oe,onTouchstartPassive:ce,onClick:Qt(()=>{},["stop"])},{prefix:nt(()=>[C(Te)?(F(),mt(C(Dn),{key:0,class:re(C(a).e("icon")),onMousedown:Qt(De,["prevent"]),onTouchstartPassive:ce},{default:nt(()=>[(F(),mt(hr(C(Te))))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),suffix:nt(()=>[C(Y)&&Ae.clearIcon?(F(),mt(C(Dn),{key:0,class:re(`${C(a).e("icon")} clear-icon`),onMousedown:Qt(C(go),["prevent"]),onClick:be},{default:nt(()=>[(F(),mt(hr(Ae.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:nt(()=>[ft(Ae.$slots,"default",{visible:C(w),actualVisible:C(m),parsedValue:C(y),format:Ae.format,dateFormat:Ae.dateFormat,timeFormat:Ae.timeFormat,unlinkPanels:Ae.unlinkPanels,type:Ae.type,defaultValue:Ae.defaultValue,showNow:Ae.showNow,showConfirm:Ae.showConfirm,showFooter:Ae.showFooter,showWeekNumber:Ae.showWeekNumber,onPick:C(M),onSelectRange:$,onSetPickerOption:C(D),onCalendarChange:C(P),onPanelChange:C(O),onMousedown:Qt(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var Aye=Jt(YWe,[["__file","picker.vue"]]);const ZWe=Kt({...wye,datetimeRole:String,parsedValue:{type:it(Object)}}),Cye=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(a,s,l,u)=>{const d={hour:e,minute:t,second:n};let c=a;return["hour","minute","second"].forEach(f=>{if(d[f]){let p;const v=d[f];switch(f){case"minute":{p=v(c.hour(),s,u);break}case"second":{p=v(c.hour(),c.minute(),s,u);break}default:{p=v(s,u);break}}if(p?.length&&!p.includes(c[f]())){const h=l?0:p.length-1;c=c[f](p[h])}}}),c},o={};return{timePickerOptions:o,getAvailableTime:r,onSetOption:([a,s])=>{o[a]=s}}},mI=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},xye=(e,t,n)=>({getHoursList:(a,s)=>hI(24,e&&(()=>e?.(a,s))),getMinutesList:(a,s,l)=>hI(60,t&&(()=>t?.(a,s,l))),getSecondsList:(a,s,l,u)=>hI(60,n&&(()=>n?.(a,s,l,u)))}),Sye=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=xye(e,t,n);return{getAvailableHours:(u,d)=>mI(r(u,d)),getAvailableMinutes:(u,d,c)=>mI(o(u,d,c)),getAvailableSeconds:(u,d,c,f)=>mI(i(u,d,c,f))}},Eye=e=>{const t=Q(e.parsedValue);return St(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},XWe=Kt({role:{type:String,required:!0},spinnerDate:{type:it(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:it(String),default:""},...UH}),JWe=100,eVe=600,vE={beforeMount(e,t){const n=t.value,{interval:r=JWe,delay:o=eVe}=Pn(n)?{}:n;let i,a;const s=()=>Pn(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{s()},r)},o))})}},tVe=tt({__name:"basic-time-spinner",props:XWe,emits:[Tr,"select-range","set-option"],setup(e,{emit:t}){const n=e,r=cn(Fc),{isRange:o,format:i}=r.props,a=zt("time"),{getHoursList:s,getMinutesList:l,getSecondsList:u}=xye(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const c=Q(),f=Q(),p=Q(),v=Q(),h={hours:f,minutes:p,seconds:v},g=J(()=>n.showSeconds?BJ:BJ.slice(0,2)),y=J(()=>{const{spinnerDate:L}=n,W=L.hour(),ie=L.minute(),ee=L.second();return{hours:W,minutes:ie,seconds:ee}}),m=J(()=>{const{hours:L,minutes:W}=C(y),{role:ie,spinnerDate:ee}=n,te=o?void 0:ee;return{hours:s(ie,te),minutes:l(L,ie,te),seconds:u(L,W,ie,te)}}),b=J(()=>{const{hours:L,minutes:W,seconds:ie}=C(y);return{hours:pI(L,23),minutes:pI(W,59),seconds:pI(ie,59)}}),w=Fl(L=>{d=!1,k(L)},200),A=L=>{if(!!!n.amPmMode)return"";const ie=n.amPmMode==="A";let ee=L<12?" am":" pm";return ie&&(ee=ee.toUpperCase()),ee},S=L=>{let W=[0,0];const ie=i||Py,ee=ie.indexOf("HH"),te=ie.indexOf("mm"),X=ie.indexOf("ss");switch(L){case"hours":ee!==-1&&(W=[ee,ee+2]);break;case"minutes":te!==-1&&(W=[te,te+2]);break;case"seconds":X!==-1&&(W=[X,X+2]);break}const[ue,ve]=W;t("select-range",ue,ve),c.value=L},k=L=>{P(L,C(y)[L])},M=()=>{k("hours"),k("minutes"),k("seconds")},D=L=>L.querySelector(`.${a.namespace.value}-scrollbar__wrap`),P=(L,W)=>{if(n.arrowControl)return;const ie=C(h[L]);ie&&ie.$el&&(D(ie.$el).scrollTop=Math.max(0,W*O(L)))},O=L=>{const W=C(h[L]),ie=W?.$el.querySelector("li");return ie&&Number.parseFloat(Tf(ie,"height"))||0},_=()=>{N(1)},B=()=>{N(-1)},N=L=>{c.value||S("hours");const W=c.value,ie=C(y)[W],ee=c.value==="hours"?24:60,te=q(W,ie,L,ee);U(W,te),P(W,te),Vt(()=>S(W))},q=(L,W,ie,ee)=>{let te=(W+ie+ee)%ee;const X=C(m)[L];for(;X[te]&&te!==W;)te=(te+ie+ee)%ee;return te},U=(L,W)=>{if(C(m)[L][W])return;const{hours:te,minutes:X,seconds:ue}=C(y);let ve;switch(L){case"hours":ve=n.spinnerDate.hour(W).minute(X).second(ue);break;case"minutes":ve=n.spinnerDate.hour(te).minute(W).second(ue);break;case"seconds":ve=n.spinnerDate.hour(te).minute(X).second(W);break}t(Tr,ve)},j=(L,{value:W,disabled:ie})=>{ie||(U(L,W),S(L),P(L,W))},H=L=>{const W=C(h[L]);if(!W)return;d=!0,w(L);const ie=Math.min(Math.round((D(W.$el).scrollTop-(G(L)*.5-10)/O(L)+3)/O(L)),L==="hours"?23:59);U(L,ie)},G=L=>C(h[L]).$el.offsetHeight,Z=()=>{const L=W=>{const ie=C(h[W]);ie&&ie.$el&&(D(ie.$el).onscroll=()=>{H(W)})};L("hours"),L("minutes"),L("seconds")};jn(()=>{Vt(()=>{!n.arrowControl&&Z(),M(),n.role==="start"&&S("hours")})});const $=(L,W)=>{h[W].value=L??void 0};return t("set-option",[`${n.role}_scrollDown`,N]),t("set-option",[`${n.role}_emitSelectRange`,S]),St(()=>n.spinnerDate,()=>{d||M()}),(L,W)=>(F(),K("div",{class:re([C(a).b("spinner"),{"has-seconds":L.showSeconds}])},[L.arrowControl?xe("v-if",!0):(F(!0),K(Pt,{key:0},an(C(g),ie=>(F(),mt(C(Lc),{key:ie,ref_for:!0,ref:ee=>$(ee,ie),class:re(C(a).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":C(a).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(ie),onMousemove:ee=>k(ie)},{default:nt(()=>[(F(!0),K(Pt,null,an(C(m)[ie],(ee,te)=>(F(),K("li",{key:te,class:re([C(a).be("spinner","item"),C(a).is("active",te===C(y)[ie]),C(a).is("disabled",ee)]),onClick:X=>j(ie,{value:te,disabled:ee})},[ie==="hours"?(F(),K(Pt,{key:0},[xn(We(("0"+(L.amPmMode?te%12||12:te)).slice(-2))+We(A(te)),1)],64)):(F(),K(Pt,{key:1},[xn(We(("0"+te).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),L.arrowControl?(F(!0),K(Pt,{key:1},an(C(g),ie=>(F(),K("div",{key:ie,class:re([C(a).be("spinner","wrapper"),C(a).is("arrow")]),onMouseenter:ee=>S(ie)},[ln((F(),mt(C(Dn),{class:re(["arrow-up",C(a).be("spinner","arrow")])},{default:nt(()=>[Ve(C(Y_))]),_:1},8,["class"])),[[C(vE),B]]),ln((F(),mt(C(Dn),{class:re(["arrow-down",C(a).be("spinner","arrow")])},{default:nt(()=>[Ve(C(Kc))]),_:1},8,["class"])),[[C(vE),_]]),x("ul",{class:re(C(a).be("spinner","list"))},[(F(!0),K(Pt,null,an(C(b)[ie],(ee,te)=>(F(),K("li",{key:te,class:re([C(a).be("spinner","item"),C(a).is("active",ee===C(y)[ie]),C(a).is("disabled",C(m)[ie][ee])])},[C(Ln)(ee)?(F(),K(Pt,{key:0},[ie==="hours"?(F(),K(Pt,{key:0},[xn(We(("0"+(L.amPmMode?ee%12||12:ee)).slice(-2))+We(A(ee)),1)],64)):(F(),K(Pt,{key:1},[xn(We(("0"+ee).slice(-2)),1)],64))],64)):xe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):xe("v-if",!0)],2))}});var SL=Jt(tVe,[["__file","basic-time-spinner.vue"]]);const nVe=tt({__name:"panel-time-pick",props:ZWe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=cn(Fc),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}=Sye(i,a,s),f=zt("time"),{t:p,lang:v}=Hr(),h=Q([0,2]),g=Eye(n),y=J(()=>$r(n.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),m=J(()=>n.format.includes("ss")),b=J(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=H=>{const G=rr(H).locale(v.value),Z=N(G);return G.isSame(Z)},A=()=>{t("pick",g.value,!1)},S=(H=!1,G=!1)=>{G||t("pick",n.parsedValue,H)},k=H=>{if(!n.visible)return;const G=N(H).millisecond(0);t("pick",G,!0)},M=(H,G)=>{t("select-range",H,G),h.value=[H,G]},D=H=>{const G=n.format,Z=G.indexOf("HH"),$=G.indexOf("mm"),L=G.indexOf("ss"),W=[],ie=[];Z!==-1&&(W.push(Z),ie.push("hours")),$!==-1&&(W.push($),ie.push("minutes")),L!==-1&&m.value&&(W.push(L),ie.push("seconds"));const te=(W.indexOf(h.value[0])+H+W.length)%W.length;O.start_emitSelectRange(ie[te])},P=H=>{const G=H.code,{left:Z,right:$,up:L,down:W}=gn;if([Z,$].includes(G)){D(G===Z?-1:1),H.preventDefault();return}if([L,W].includes(G)){const ie=G===L?-1:1;O.start_scrollDown(ie),H.preventDefault();return}},{timePickerOptions:O,onSetOption:_,getAvailableTime:B}=Cye({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}),N=H=>B(H,n.datetimeRole||"",!0),q=H=>H?rr(H,n.format).locale(v.value):null,U=H=>H?H.format(n.format):null,j=()=>rr(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",U]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["handleKeydownInput",P]),t("set-picker-option",["getRangeAvailableTime",N]),t("set-picker-option",["getDefaultValue",j]),(H,G)=>(F(),mt(Wi,{name:C(y)},{default:nt(()=>[H.actualVisible||H.visible?(F(),K("div",{key:0,class:re(C(f).b("panel"))},[x("div",{class:re([C(f).be("panel","content"),{"has-seconds":C(m)}])},[Ve(SL,{ref:"spinner",role:H.datetimeRole||"start","arrow-control":C(o),"show-seconds":C(m),"am-pm-mode":C(b),"spinner-date":H.parsedValue,"disabled-hours":C(i),"disabled-minutes":C(a),"disabled-seconds":C(s),onChange:k,onSetOption:C(_),onSelectRange:M},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),x("div",{class:re(C(f).be("panel","footer"))},[x("button",{type:"button",class:re([C(f).be("panel","btn"),"cancel"]),onClick:A},We(C(p)("el.datepicker.cancel")),3),x("button",{type:"button",class:re([C(f).be("panel","btn"),"confirm"]),onClick:Z=>S()},We(C(p)("el.datepicker.confirm")),11,["onClick"])],2)],2)):xe("v-if",!0)]),_:1},8,["name"]))}});var mE=Jt(nVe,[["__file","panel-time-pick.vue"]]);const rVe=Kt({...wye,parsedValue:{type:it(Array)}}),oVe=tt({__name:"panel-time-range",props:rVe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(we,he)=>{const Te=[];for(let Y=we;Y<=he;Y++)Te.push(Y);return Te},{t:o,lang:i}=Hr(),a=zt("time"),s=zt("picker"),l=cn(Fc),{arrowControl:u,disabledHours:d,disabledMinutes:c,disabledSeconds:f,defaultValue:p}=l.props,v=J(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),h=J(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),g=J(()=>n.parsedValue[0]),y=J(()=>n.parsedValue[1]),m=Eye(n),b=()=>{t("pick",m.value,!1)},w=J(()=>n.format.includes("ss")),A=J(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(we=!1)=>{t("pick",[g.value,y.value],we)},k=we=>{P(we.millisecond(0),y.value)},M=we=>{P(g.value,we.millisecond(0))},D=we=>{const he=we.map(Y=>rr(Y).locale(i.value)),Te=$(he);return he[0].isSame(Te[0])&&he[1].isSame(Te[1])},P=(we,he)=>{n.visible&&t("pick",[we,he],!0)},O=J(()=>g.value>y.value),_=Q([0,2]),B=(we,he)=>{t("select-range",we,he,"min"),_.value=[we,he]},N=J(()=>w.value?11:8),q=(we,he)=>{t("select-range",we,he,"max");const Te=C(N);_.value=[we+Te,he+Te]},U=we=>{const he=w.value?[0,3,6,11,14,17]:[0,3,8,11],Te=["hours","minutes"].concat(w.value?["seconds"]:[]),be=(he.indexOf(_.value[0])+we+he.length)%he.length,De=he.length/2;be<De?ee.start_emitSelectRange(Te[be]):ee.end_emitSelectRange(Te[be-De])},j=we=>{const he=we.code,{left:Te,right:Y,up:be,down:De}=gn;if([Te,Y].includes(he)){U(he===Te?-1:1),we.preventDefault();return}if([be,De].includes(he)){const pe=he===be?-1:1,oe=_.value[0]<N.value?"start":"end";ee[`${oe}_scrollDown`](pe),we.preventDefault();return}},H=(we,he)=>{const Te=d?d(we):[],Y=we==="start",De=(he||(Y?y.value:g.value)).hour(),pe=Y?r(De+1,23):r(0,De-1);return sI(Te,pe)},G=(we,he,Te)=>{const Y=c?c(we,he):[],be=he==="start",De=Te||(be?y.value:g.value),pe=De.hour();if(we!==pe)return Y;const oe=De.minute(),ce=be?r(oe+1,59):r(0,oe-1);return sI(Y,ce)},Z=(we,he,Te,Y)=>{const be=f?f(we,he,Te):[],De=Te==="start",pe=Y||(De?y.value:g.value),oe=pe.hour(),ce=pe.minute();if(we!==oe||he!==ce)return be;const Re=pe.second(),Ee=De?r(Re+1,59):r(0,Re-1);return sI(be,Ee)},$=([we,he])=>[te(we,"start",!0,he),te(he,"end",!1,we)],{getAvailableHours:L,getAvailableMinutes:W,getAvailableSeconds:ie}=Sye(H,G,Z),{timePickerOptions:ee,getAvailableTime:te,onSetOption:X}=Cye({getAvailableHours:L,getAvailableMinutes:W,getAvailableSeconds:ie}),ue=we=>we?qt(we)?we.map(he=>rr(he,n.format).locale(i.value)):rr(we,n.format).locale(i.value):null,ve=we=>we?qt(we)?we.map(he=>he.format(n.format)):we.format(n.format):null,Me=()=>{if(qt(p))return p.map(he=>rr(he).locale(i.value));const we=rr(p).locale(i.value);return[we,we.add(60,"m")]};return t("set-picker-option",["formatToString",ve]),t("set-picker-option",["parseUserInput",ue]),t("set-picker-option",["isValidValue",D]),t("set-picker-option",["handleKeydownInput",j]),t("set-picker-option",["getDefaultValue",Me]),t("set-picker-option",["getRangeAvailableTime",$]),(we,he)=>we.actualVisible?(F(),K("div",{key:0,class:re([C(a).b("range-picker"),C(s).b("panel")])},[x("div",{class:re(C(a).be("range-picker","content"))},[x("div",{class:re(C(a).be("range-picker","cell"))},[x("div",{class:re(C(a).be("range-picker","header"))},We(C(o)("el.datepicker.startTime")),3),x("div",{class:re(C(v))},[Ve(SL,{ref:"minSpinner",role:"start","show-seconds":C(w),"am-pm-mode":C(A),"arrow-control":C(u),"spinner-date":C(g),"disabled-hours":H,"disabled-minutes":G,"disabled-seconds":Z,onChange:k,onSetOption:C(X),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),x("div",{class:re(C(a).be("range-picker","cell"))},[x("div",{class:re(C(a).be("range-picker","header"))},We(C(o)("el.datepicker.endTime")),3),x("div",{class:re(C(h))},[Ve(SL,{ref:"maxSpinner",role:"end","show-seconds":C(w),"am-pm-mode":C(A),"arrow-control":C(u),"spinner-date":C(y),"disabled-hours":H,"disabled-minutes":G,"disabled-seconds":Z,onChange:M,onSetOption:C(X),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),x("div",{class:re(C(a).be("panel","footer"))},[x("button",{type:"button",class:re([C(a).be("panel","btn"),"cancel"]),onClick:Te=>b()},We(C(o)("el.datepicker.cancel")),11,["onClick"]),x("button",{type:"button",class:re([C(a).be("panel","btn"),"confirm"]),disabled:C(O),onClick:Te=>S()},We(C(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):xe("v-if",!0)}});var iVe=Jt(oVe,[["__file","panel-time-range.vue"]]);rr.extend(LH);var aVe=tt({name:"ElTimePicker",install:null,props:{...$H,isRange:Boolean},emits:[Gn],setup(e,t){const n=Q(),[r,o]=e.isRange?["timerange",iVe]:["time",mE],i=a=>t.emit(Gn,a);return Sr(FH,e.popperOptions),t.expose({focus:()=>{var a;(a=n.value)==null||a.focus()},blur:()=>{var a;(a=n.value)==null||a.blur()},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const s=(a=e.format)!=null?a:Py;return Ve(Aye,pr(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>Ve(o,l,null)})}}});const sVe=er(aVe);var CS={exports:{}},lVe=CS.exports,LJ;function uVe(){return LJ||(LJ=1,(function(e,t){(function(n,r){e.exports=r()})(lVe,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(c){switch(c){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),c==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return c}}));return i.bind(this)(d)}}}))})(CS)),CS.exports}var cVe=uVe();const dVe=mu(cVe);var xS={exports:{}},fVe=xS.exports,FJ;function pVe(){return FJ||(FJ=1,(function(e,t){(function(n,r){e.exports=r()})(fVe,(function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),c=a(this).endOf(n);if(d.isBefore(c))return 1}var f=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(xS)),xS.exports}var hVe=pVe();const gVe=mu(hVe);var SS={exports:{}},vVe=SS.exports,UJ;function mVe(){return UJ||(UJ=1,(function(e,t){(function(n,r){e.exports=r()})(vVe,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}}))})(SS)),SS.exports}var yVe=mVe();const bVe=mu(yVe);var ES={exports:{}},wVe=ES.exports,$J;function AVe(){return $J||($J=1,(function(e,t){(function(n,r){e.exports=r()})(wVe,(function(){return function(n,r,o){r.prototype.dayOfYear=function(i){var a=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})(ES)),ES.exports}var CVe=AVe();const xVe=mu(CVe);var kS={exports:{}},SVe=kS.exports,zJ;function EVe(){return zJ||(zJ=1,(function(e,t){(function(n,r){e.exports=r()})(SVe,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(kS)),kS.exports}var kVe=EVe();const TVe=mu(kVe);var TS={exports:{}},_Ve=TS.exports,jJ;function DVe(){return jJ||(jJ=1,(function(e,t){(function(n,r){e.exports=r()})(_Ve,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(TS)),TS.exports}var IVe=DVe();const OVe=mu(IVe),MVe=Kt({valueFormat:String,dateFormat:String,timeFormat:String,disabled:Boolean,modelValue:{type:it([Date,Array,String,Number]),default:""},defaultValue:{type:it([Date,Array])},defaultTime:{type:it([Date,Array])},isRange:Boolean,...UH,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:it(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0}}),zH=Symbol("rootPickerContextKey"),PC="ElIsDefaultFormat",PVe=["date","dates","year","years","month","months","week","range"],jH=Kt({cellClassName:{type:it(Function)},disabledDate:{type:it(Function)},date:{type:it(Object),required:!0},minDate:{type:it(Object)},maxDate:{type:it(Object)},parsedValue:{type:it([Object,Array])},rangeState:{type:it(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),kye=Kt({type:{type:it(String),required:!0,values:Nze},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean}),HH=Kt({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:it(Array)}}),WH=e=>({type:String,values:PVe,default:e}),NVe=Kt({...kye,parsedValue:{type:it([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),G3=e=>{if(!qt(e))return!1;const[t,n]=e;return rr.isDayjs(t)&&rr.isDayjs(n)&&rr(t).isValid()&&rr(n).isValid()&&t.isSameOrBefore(n)},iD=(e,{lang:t,step:n=1,unit:r,unlinkPanels:o})=>{let i;if(qt(e)){let[a,s]=e.map(l=>rr(l).locale(t));return o||(s=a.add(n,r)),[a,s]}else e?i=rr(e):i=rr();return i=i.locale(t),[i,i.add(n,r)]},RVe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:i,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let d=0;d<e.row;d++){const c=t[d];for(let f=0;f<e.column;f++){let p=c[f+n];p||(p={row:d,column:f,type:"normal",inRange:!1,start:!1,end:!1});const v=d*e.column+f,h=s(v);p.dayjs=h,p.date=h.toDate(),p.timestamp=h.valueOf(),p.type="normal",p.inRange=!!(r&&h.isSameOrAfter(r,a)&&o&&h.isSameOrBefore(o,a))||!!(r&&h.isSameOrBefore(r,a)&&o&&h.isSameOrAfter(o,a)),r?.isSameOrAfter(o)?(p.start=!!o&&h.isSame(o,a),p.end=r&&h.isSame(r,a)):(p.start=!!r&&h.isSame(r,a),p.end=!!o&&h.isSame(o,a)),h.isSame(i,a)&&(p.type="today"),l?.(p,{rowIndex:d,columnIndex:f}),c[f+n]=p}u?.(c)}},yE=(e,t,n,r)=>{const o=rr().locale(r).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),i=o.daysInMonth();return _h(i).map(a=>o.add(a,"day").toDate())},Ny=(e,t,n,r,o)=>{const i=rr().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),a=yE(e,t,n,r).find(s=>!o?.(s));return a?rr(a).locale(r):i.locale(r)},bE=(e,t,n)=>{const r=e.year();if(!n?.(e.toDate()))return e.locale(t);const o=e.month();if(!yE(e,r,o,t).every(n))return Ny(e,r,o,t,n);for(let i=0;i<12;i++)if(!yE(e,r,i,t).every(n))return Ny(e,r,i,t,n);return e},Ry=(e,t,n,r)=>{if(qt(e))return e.map(o=>Ry(o,t,n,r));if(In(e)){const o=r?.value?rr(e):rr(e,t);if(!o.isValid())return o}return rr(e,t).locale(n)},BVe=Kt({...jH,showWeekNumber:Boolean,selectionMode:WH("date")}),LVe=["changerange","pick","select"],EL=(e="")=>["normal","today"].includes(e),FVe=(e,t)=>{const{lang:n}=Hr(),r=Q(),o=Q(),i=Q(),a=Q(),s=Q([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(H=>H.toLowerCase()),c=J(()=>u>3?7-u:-u),f=J(()=>{const H=e.date.startOf("month");return H.subtract(H.day()||7,"day")}),p=J(()=>d.concat(d).slice(u,u+7)),v=J(()=>eme(C(w)).some(H=>H.isCurrent)),h=J(()=>{const H=e.date.startOf("month"),G=H.day()||7,Z=H.daysInMonth(),$=H.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:Z,dateCountOfLastMonth:$}}),g=J(()=>e.selectionMode==="dates"?rl(e.parsedValue):[]),y=(H,{count:G,rowIndex:Z,columnIndex:$})=>{const{startOfMonthDay:L,dateCountOfMonth:W,dateCountOfLastMonth:ie}=C(h),ee=C(c);if(Z>=0&&Z<=1){const te=L+ee<0?7+L+ee:L+ee;if($+Z*7>=te)return H.text=G,!0;H.text=ie-(te-$%7)+1+Z*7,H.type="prev-month"}else return G<=W?H.text=G:(H.text=G-W,H.type="next-month"),!0;return!1},m=(H,{columnIndex:G,rowIndex:Z},$)=>{const{disabledDate:L,cellClassName:W}=e,ie=C(g),ee=y(H,{count:$,rowIndex:Z,columnIndex:G}),te=H.dayjs.toDate();return H.selected=ie.find(X=>X.isSame(H.dayjs,"day")),H.isSelected=!!H.selected,H.isCurrent=S(H),H.disabled=L?.(te),H.customClass=W?.(te),ee},b=H=>{if(e.selectionMode==="week"){const[G,Z]=e.showWeekNumber?[1,7]:[0,6],$=j(H[G+1]);H[G].inRange=$,H[G].start=$,H[Z].inRange=$,H[Z].end=$}},w=J(()=>{const{minDate:H,maxDate:G,rangeState:Z,showWeekNumber:$}=e,L=C(c),W=C(s),ie="day";let ee=1;if(RVe({row:6,column:7},W,{startDate:H,columnIndexOffset:$?1:0,nextEndDate:Z.endDate||G||Z.selecting&&H||null,now:rr().locale(C(n)).startOf(ie),unit:ie,relativeDateGetter:te=>C(f).add(te-L,ie),setCellMetadata:(...te)=>{m(...te,ee)&&(ee+=1)},setRowMetadata:b}),$)for(let te=0;te<6;te++)W[te][1].dayjs&&(W[te][0]={type:"week",text:W[te][1].dayjs.week()});return W});St(()=>e.date,async()=>{var H;(H=C(r))!=null&&H.contains(document.activeElement)&&(await Vt(),await A())});const A=async()=>{var H;return(H=C(o))==null?void 0:H.focus()},S=H=>e.selectionMode==="date"&&EL(H.type)&&k(H,e.parsedValue),k=(H,G)=>G?rr(G).locale(C(n)).isSame(e.date.date(Number(H.text)),"day"):!1,M=(H,G)=>{const Z=H*7+(G-(e.showWeekNumber?1:0))-C(c);return C(f).add(Z,"day")},D=H=>{var G;if(!e.rangeState.selecting)return;let Z=H.target;if(Z.tagName==="SPAN"&&(Z=(G=Z.parentNode)==null?void 0:G.parentNode),Z.tagName==="DIV"&&(Z=Z.parentNode),Z.tagName!=="TD")return;const $=Z.parentNode.rowIndex-1,L=Z.cellIndex;C(w)[$][L].disabled||($!==C(i)||L!==C(a))&&(i.value=$,a.value=L,t("changerange",{selecting:!0,endDate:M($,L)}))},P=H=>{l||C(v)||e.selectionMode!=="date"||U(H,!0)},O=H=>{H.target.closest("td")&&(l=!0)},_=H=>{H.target.closest("td")&&(l=!1)},B=H=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:H,maxDate:null}),t("select",!0)):(H>=e.minDate?t("pick",{minDate:e.minDate,maxDate:H}):t("pick",{minDate:H,maxDate:e.minDate}),t("select",!1))},N=H=>{const G=H.week(),Z=`${H.year()}w${G}`;t("pick",{year:H.year(),week:G,value:Z,date:H.startOf("week")})},q=(H,G)=>{const Z=G?rl(e.parsedValue).filter($=>$?.valueOf()!==H.valueOf()):rl(e.parsedValue).concat([H]);t("pick",Z)},U=(H,G=!1)=>{if(e.disabled)return;const Z=H.target.closest("td");if(!Z)return;const $=Z.parentNode.rowIndex-1,L=Z.cellIndex,W=C(w)[$][L];if(W.disabled||W.type==="week")return;const ie=M($,L);switch(e.selectionMode){case"range":{B(ie);break}case"date":{t("pick",ie,G);break}case"week":{N(ie);break}case"dates":{q(ie,!!W.selected);break}}},j=H=>{if(e.selectionMode!=="week")return!1;let G=e.date.startOf("day");if(H.type==="prev-month"&&(G=G.subtract(1,"month")),H.type==="next-month"&&(G=G.add(1,"month")),G=G.date(Number.parseInt(H.text,10)),e.parsedValue&&!qt(e.parsedValue)){const Z=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(Z,"day").isSame(G,"day")}return!1};return{WEEKS:p,rows:w,tbodyRef:r,currentCellRef:o,focus:A,isCurrent:S,isWeekActive:j,handlePickDate:U,handleMouseUp:_,handleMouseDown:O,handleMouseMove:D,handleFocus:P}},UVe=(e,{isCurrent:t,isWeekActive:n})=>{const r=zt("date-table"),{t:o}=Hr(),i=J(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"&&!e.disabled}]),a=J(()=>o("el.datepicker.dateTablePrompt")),s=u=>{const d=[];return EL(u.type)&&!u.disabled?(d.push("available"),u.type==="today"&&d.push("today")):d.push(u.type),t(u)&&d.push("current"),u.inRange&&(EL(u.type)||e.selectionMode==="week")&&(d.push("in-range"),u.start&&d.push("start-date"),u.end&&d.push("end-date")),(u.disabled||e.disabled)&&d.push("disabled"),u.selected&&d.push("selected"),u.customClass&&d.push(u.customClass),d.join(" ")},l=u=>[r.e("row"),{current:n(u)}];return{tableKls:i,tableLabel:a,weekHeaderClass:r.e("week-header"),getCellClasses:s,getRowKls:l,t:o}},$Ve=Kt({cell:{type:it(Object)}});var VH=tt({name:"ElDatePickerCell",props:$Ve,setup(e){const t=zt("date-table-cell"),{slots:n}=cn(zH);return()=>{const{cell:r}=e;return ft(n,"default",{...r},()=>{var o;return[Ve("div",{class:t.b()},[Ve("span",{class:t.e("text")},[(o=r?.renderText)!=null?o:r?.text])])]})}}});const zVe=tt({__name:"basic-date-table",props:BVe,emits:LVe,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:o,rows:i,tbodyRef:a,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:d,handlePickDate:c,handleMouseUp:f,handleMouseDown:p,handleMouseMove:v,handleFocus:h}=FVe(r,n),{tableLabel:g,tableKls:y,getCellClasses:m,getRowKls:b,weekHeaderClass:w,t:A}=UVe(r,{isCurrent:u,isWeekActive:d});let S=!1;return Qr(()=>{S=!0}),t({focus:l}),(k,M)=>(F(),K("table",{"aria-label":C(g),class:re(C(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:C(c),onMousemove:C(v),onMousedown:C(p),onMouseup:C(f)},[x("tbody",{ref_key:"tbodyRef",ref:a},[x("tr",null,[k.showWeekNumber?(F(),K("th",{key:0,scope:"col",class:re(C(w))},null,2)):xe("v-if",!0),(F(!0),K(Pt,null,an(C(o),(D,P)=>(F(),K("th",{key:P,"aria-label":C(A)("el.datepicker.weeksFull."+D),scope:"col"},We(C(A)("el.datepicker.weeks."+D)),9,["aria-label"]))),128))]),(F(!0),K(Pt,null,an(C(i),(D,P)=>(F(),K("tr",{key:P,class:re(C(b)(D[1]))},[(F(!0),K(Pt,null,an(D,(O,_)=>(F(),K("td",{key:`${P}.${_}`,ref_for:!0,ref:B=>!C(S)&&O.isSelected&&(s.value=B),class:re(C(m)(O)),"aria-current":O.isCurrent?"date":void 0,"aria-selected":O.isCurrent,tabindex:O.isSelected?0:-1,onFocus:C(h)},[Ve(C(VH),{cell:O},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var kL=Jt(zVe,[["__file","basic-date-table.vue"]]);const jVe=Kt({...jH,selectionMode:WH("month")}),HVe=tt({__name:"basic-month-table",props:jVe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=zt("month-table"),{t:i,lang:a}=Hr(),s=Q(),l=Q(),u=Q(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),d=Q([[],[],[]]),c=Q(),f=Q(),p=J(()=>{var b,w,A;const S=d.value,k=rr().locale(a.value).startOf("month");for(let M=0;M<3;M++){const D=S[M];for(let P=0;P<4;P++){const O=D[P]||(D[P]={row:M,column:P,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});O.type="normal";const _=M*4+P,B=r.date.startOf("year").month(_),N=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;O.inRange=!!(r.minDate&&B.isSameOrAfter(r.minDate,"month")&&N&&B.isSameOrBefore(N,"month"))||!!(r.minDate&&B.isSameOrBefore(r.minDate,"month")&&N&&B.isSameOrAfter(N,"month")),(b=r.minDate)!=null&&b.isSameOrAfter(N)?(O.start=!!(N&&B.isSame(N,"month")),O.end=r.minDate&&B.isSame(r.minDate,"month")):(O.start=!!(r.minDate&&B.isSame(r.minDate,"month")),O.end=!!(N&&B.isSame(N,"month"))),k.isSame(B)&&(O.type="today");const U=B.toDate();O.text=_,O.disabled=((w=r.disabledDate)==null?void 0:w.call(r,U))||!1,O.date=U,O.customClass=(A=r.cellClassName)==null?void 0:A.call(r,U),O.dayjs=B,O.timestamp=B.valueOf(),O.isSelected=g(O)}}return S}),v=()=>{var b;(b=l.value)==null||b.focus()},h=b=>{const w={},A=r.date.year(),S=new Date,k=b.text;return w.disabled=r.disabled||(r.disabledDate?yE(r.date,A,k,a.value).every(r.disabledDate):!1),w.current=rl(r.parsedValue).findIndex(M=>rr.isDayjs(M)&&M.year()===A&&M.month()===k)>=0,w.today=S.getFullYear()===A&&S.getMonth()===k,b.customClass&&(w[b.customClass]=!0),b.inRange&&(w["in-range"]=!0,b.start&&(w["start-date"]=!0),b.end&&(w["end-date"]=!0)),w},g=b=>{const w=r.date.year(),A=b.text;return rl(r.date).findIndex(S=>S.year()===w&&S.month()===A)>=0},y=b=>{var w;if(!r.rangeState.selecting)return;let A=b.target;if(A.tagName==="SPAN"&&(A=(w=A.parentNode)==null?void 0:w.parentNode),A.tagName==="DIV"&&(A=A.parentNode),A.tagName!=="TD")return;const S=A.parentNode.rowIndex,k=A.cellIndex;p.value[S][k].disabled||(S!==c.value||k!==f.value)&&(c.value=S,f.value=k,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(S*4+k)}))},m=b=>{var w;if(r.disabled)return;const A=(w=b.target)==null?void 0:w.closest("td");if(A?.tagName!=="TD"||El(A,"disabled"))return;const S=A.cellIndex,M=A.parentNode.rowIndex*4+S,D=r.date.startOf("year").month(M);if(r.selectionMode==="months"){if(b.type==="keydown"){n("pick",rl(r.parsedValue),!1);return}const P=Ny(r.date,r.date.year(),M,a.value,r.disabledDate),O=El(A,"current")?rl(r.parsedValue).filter(_=>_?.year()!==P.year()||_?.month()!==P.month()):rl(r.parsedValue).concat([rr(P)]);n("pick",O)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&D>=r.minDate?n("pick",{minDate:r.minDate,maxDate:D}):n("pick",{minDate:D,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:D,maxDate:null}),n("select",!0)):n("pick",M)};return St(()=>r.date,async()=>{var b,w;(b=s.value)!=null&&b.contains(document.activeElement)&&(await Vt(),(w=l.value)==null||w.focus())}),t({focus:v}),(b,w)=>(F(),K("table",{role:"grid","aria-label":C(i)("el.datepicker.monthTablePrompt"),class:re(C(o).b()),onClick:m,onMousemove:y},[x("tbody",{ref_key:"tbodyRef",ref:s},[(F(!0),K(Pt,null,an(C(p),(A,S)=>(F(),K("tr",{key:S},[(F(!0),K(Pt,null,an(A,(k,M)=>(F(),K("td",{key:M,ref_for:!0,ref:D=>k.isSelected&&(l.value=D),class:re(h(k)),"aria-selected":!!k.isSelected,"aria-label":C(i)(`el.datepicker.month${+k.text+1}`),tabindex:k.isSelected?0:-1,onKeydown:[Lr(Qt(m,["prevent","stop"]),["space"]),Lr(Qt(m,["prevent","stop"]),["enter"])]},[Ve(C(VH),{cell:{...k,renderText:C(i)("el.datepicker.months."+u.value[k.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var K3=Jt(HVe,[["__file","basic-month-table.vue"]]);const WVe=Kt({...jH,selectionMode:WH("year")}),VVe=tt({__name:"basic-year-table",props:WVe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(w,A)=>{const S=rr(String(w)).locale(A).startOf("year"),M=S.endOf("year").dayOfYear();return _h(M).map(D=>S.add(D,"day").toDate())},i=zt("year-table"),{t:a,lang:s}=Hr(),l=Q(),u=Q(),d=J(()=>Math.floor(r.date.year()/10)*10),c=Q([[],[],[]]),f=Q(),p=Q(),v=J(()=>{var w,A,S;const k=c.value,M=rr().locale(s.value).startOf("year");for(let D=0;D<3;D++){const P=k[D];for(let O=0;O<4&&!(D*4+O>=10);O++){let _=P[O];_||(_={row:D,column:O,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),_.type="normal";const B=D*4+O+d.value,N=rr().year(B),q=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;_.inRange=!!(r.minDate&&N.isSameOrAfter(r.minDate,"year")&&q&&N.isSameOrBefore(q,"year"))||!!(r.minDate&&N.isSameOrBefore(r.minDate,"year")&&q&&N.isSameOrAfter(q,"year")),(w=r.minDate)!=null&&w.isSameOrAfter(q)?(_.start=!!(q&&N.isSame(q,"year")),_.end=!!(r.minDate&&N.isSame(r.minDate,"year"))):(_.start=!!(r.minDate&&N.isSame(r.minDate,"year")),_.end=!!(q&&N.isSame(q,"year"))),M.isSame(N)&&(_.type="today"),_.text=B;const j=N.toDate();_.disabled=((A=r.disabledDate)==null?void 0:A.call(r,j))||!1,_.date=j,_.customClass=(S=r.cellClassName)==null?void 0:S.call(r,j),_.dayjs=N,_.timestamp=N.valueOf(),_.isSelected=y(_),P[O]=_}}return k}),h=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const A={},S=rr().locale(s.value),k=w.text;return A.disabled=r.disabled||(r.disabledDate?o(k,s.value).every(r.disabledDate):!1),A.today=S.year()===k,A.current=rl(r.parsedValue).findIndex(M=>M.year()===k)>=0,w.customClass&&(A[w.customClass]=!0),w.inRange&&(A["in-range"]=!0,w.start&&(A["start-date"]=!0),w.end&&(A["end-date"]=!0)),A},y=w=>{const A=w.text;return rl(r.date).findIndex(S=>S.year()===A)>=0},m=w=>{var A;if(r.disabled)return;const S=(A=w.target)==null?void 0:A.closest("td");if(!S||!S.textContent||El(S,"disabled"))return;const k=S.cellIndex,D=S.parentNode.rowIndex*4+k+d.value,P=rr().year(D);if(r.selectionMode==="range")r.rangeState.selecting?(r.minDate&&P>=r.minDate?n("pick",{minDate:r.minDate,maxDate:P}):n("pick",{minDate:P,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:P,maxDate:null}),n("select",!0));else if(r.selectionMode==="years"){if(w.type==="keydown"){n("pick",rl(r.parsedValue),!1);return}const O=bE(P.startOf("year"),s.value,r.disabledDate),_=El(S,"current")?rl(r.parsedValue).filter(B=>B?.year()!==D):rl(r.parsedValue).concat([O]);n("pick",_)}else n("pick",D)},b=w=>{var A;if(!r.rangeState.selecting)return;const S=(A=w.target)==null?void 0:A.closest("td");if(!S)return;const k=S.parentNode.rowIndex,M=S.cellIndex;v.value[k][M].disabled||(k!==f.value||M!==p.value)&&(f.value=k,p.value=M,n("changerange",{selecting:!0,endDate:rr().year(d.value).add(k*4+M,"year")}))};return St(()=>r.date,async()=>{var w,A;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Vt(),(A=u.value)==null||A.focus())}),t({focus:h}),(w,A)=>(F(),K("table",{role:"grid","aria-label":C(a)("el.datepicker.yearTablePrompt"),class:re(C(i).b()),onClick:m,onMousemove:b},[x("tbody",{ref_key:"tbodyRef",ref:l},[(F(!0),K(Pt,null,an(C(v),(S,k)=>(F(),K("tr",{key:k},[(F(!0),K(Pt,null,an(S,(M,D)=>(F(),K("td",{key:`${k}_${D}`,ref_for:!0,ref:P=>M.isSelected&&(u.value=P),class:re(["available",g(M)]),"aria-selected":M.isSelected,"aria-label":String(M.text),tabindex:M.isSelected?0:-1,onKeydown:[Lr(Qt(m,["prevent","stop"]),["space"]),Lr(Qt(m,["prevent","stop"]),["enter"])]},[Ve(C(VH),{cell:M},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Q3=Jt(VVe,[["__file","basic-year-table.vue"]]);const qVe=tt({__name:"panel-date-pick",props:NVe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(st,Ot,Ae)=>!0,o=zt("picker-panel"),i=zt("date-picker"),a=fp(),s=pa(),{t:l,lang:u}=Hr(),d=cn(Fc),c=cn(PC,void 0),{shortcuts:f,disabledDate:p,cellClassName:v,defaultTime:h}=d.props,g=ao(d.props,"defaultValue"),y=Q(),m=Q(rr().locale(u.value)),b=Q(!1);let w=!1;const A=J(()=>rr(h).locale(u.value)),S=J(()=>m.value.month()),k=J(()=>m.value.year()),M=Q([]),D=Q(null),P=Q(null),O=st=>M.value.length>0?r(st,M.value,n.format||"HH:mm:ss"):!0,_=st=>h&&!De.value&&!b.value&&!w?A.value.year(st.year()).month(st.month()).date(st.date()):X.value?st.millisecond(0):st.startOf("day"),B=(st,...Ot)=>{if(!st)t("pick",st,...Ot);else if(qt(st)){const Ae=st.map(_);t("pick",Ae,...Ot)}else t("pick",_(st),...Ot);D.value=null,P.value=null,b.value=!1,w=!1},N=async(st,Ot)=>{if(Z.value==="date"){st=st;let Ae=n.parsedValue?n.parsedValue.year(st.year()).month(st.month()).date(st.date()):st;O(Ae),m.value=Ae,B(Ae,X.value||Ot)}else Z.value==="week"?B(st.date):Z.value==="dates"&&B(st,!0)},q=st=>{const Ot=st?"add":"subtract";m.value=m.value[Ot](1,"month"),_t("month")},U=st=>{const Ot=m.value,Ae=st?"add":"subtract";m.value=j.value==="year"?Ot[Ae](10,"year"):Ot[Ae](1,"year"),_t("year")},j=Q("date"),H=J(()=>{const st=l("el.datepicker.year");if(j.value==="year"){const Ot=Math.floor(k.value/10)*10;return st?`${Ot} ${st} - ${Ot+9} ${st}`:`${Ot} - ${Ot+9}`}return`${k.value} ${st}`}),G=st=>{const Ot=Pn(st.value)?st.value():st.value;if(Ot){w=!0,B(rr(Ot).locale(u.value));return}st.onClick&&st.onClick({attrs:a,slots:s,emit:t})},Z=J(()=>{const{type:st}=n;return["week","month","months","year","years","dates"].includes(st)?st:"date"}),$=J(()=>Z.value==="dates"||Z.value==="months"||Z.value==="years"),L=J(()=>Z.value==="date"?j.value:Z.value),W=J(()=>!!f.length),ie=async(st,Ot)=>{Z.value==="month"?(m.value=Ny(m.value,m.value.year(),st,u.value,p),B(m.value,!1)):Z.value==="months"?B(st,Ot??!0):(m.value=Ny(m.value,m.value.year(),st,u.value,p),j.value="date",["month","year","date","week"].includes(Z.value)&&(B(m.value,!0),await Vt(),en())),_t("month")},ee=async(st,Ot)=>{if(Z.value==="year"){const Ae=m.value.startOf("year").year(st);m.value=bE(Ae,u.value,p),B(m.value,!1)}else if(Z.value==="years")B(st,Ot??!0);else{const Ae=m.value.year(st);m.value=bE(Ae,u.value,p),j.value="month",["month","year","date","week"].includes(Z.value)&&(B(m.value,!0),await Vt(),en())}_t("year")},te=async st=>{n.disabled||(j.value=st,await Vt(),en())},X=J(()=>n.type==="datetime"||n.type==="datetimerange"),ue=J(()=>{const st=X.value||Z.value==="dates",Ot=Z.value==="years",Ae=Z.value==="months",je=j.value==="date",at=j.value==="year",gt=j.value==="month";return st&&je||Ot&&at||Ae&>}),ve=J(()=>!$.value&&n.showNow||n.showConfirm),Me=J(()=>p?n.parsedValue?qt(n.parsedValue)?p(n.parsedValue[0].toDate()):p(n.parsedValue.toDate()):!0:!1),we=()=>{if($.value)B(n.parsedValue);else{let st=n.parsedValue;if(!st){const Ot=rr(h).locale(u.value),Ae=Bt();st=Ot.year(Ae.year()).month(Ae.month()).date(Ae.date())}m.value=st,B(st)}},he=J(()=>p?p(rr().locale(u.value).toDate()):!1),Te=()=>{const Ot=rr().locale(u.value).toDate();b.value=!0,(!p||!p(Ot))&&O(Ot)&&(m.value=rr().locale(u.value),B(m.value))},Y=J(()=>n.timeFormat||$1e(n.format)||Py),be=J(()=>n.dateFormat||U1e(n.format)||lh),De=J(()=>{if(P.value)return P.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(Y.value)}),pe=J(()=>{if(D.value)return D.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(be.value)}),oe=Q(!1),ce=()=>{oe.value=!0},Re=()=>{oe.value=!1},Ee=st=>({hour:st.hour(),minute:st.minute(),second:st.second(),year:st.year(),month:st.month(),date:st.date()}),Le=(st,Ot,Ae)=>{const{hour:je,minute:at,second:gt}=Ee(st),nn=n.parsedValue?n.parsedValue.hour(je).minute(at).second(gt):st;m.value=nn,B(m.value,!0),Ae||(oe.value=Ot)},Fe=st=>{const Ot=rr(st,Y.value).locale(u.value);if(Ot.isValid()&&O(Ot)){const{year:Ae,month:je,date:at}=Ee(m.value);m.value=Ot.year(Ae).month(je).date(at),P.value=null,oe.value=!1,B(m.value,!0)}},Pe=st=>{const Ot=Ry(st,be.value,u.value,c);if(Ot.isValid()){if(p&&p(Ot.toDate()))return;const{hour:Ae,minute:je,second:at}=Ee(m.value);m.value=Ot.hour(Ae).minute(je).second(at),D.value=null,B(m.value,!0)}},Ne=st=>rr.isDayjs(st)&&st.isValid()&&(p?!p(st.toDate()):!0),pt=st=>qt(st)?st.map(Ot=>Ot.format(n.format)):st.format(n.format),Rt=st=>Ry(st,n.format,u.value,c),Bt=()=>{const st=rr(g.value).locale(u.value);if(!g.value){const Ot=A.value;return rr().hour(Ot.hour()).minute(Ot.minute()).second(Ot.second()).locale(u.value)}return st},en=()=>{var st;["week","month","year","date"].includes(Z.value)&&((st=y.value)==null||st.focus())},Wt=()=>{en(),Z.value==="week"&&ct(gn.down)},Ut=st=>{const{code:Ot}=st;[gn.up,gn.down,gn.left,gn.right,gn.home,gn.end,gn.pageUp,gn.pageDown].includes(Ot)&&(ct(Ot),st.stopPropagation(),st.preventDefault()),[gn.enter,gn.space,gn.numpadEnter].includes(Ot)&&D.value===null&&P.value===null&&(st.preventDefault(),B(m.value,!1))},ct=st=>{var Ot;const{up:Ae,down:je,left:at,right:gt,home:nn,end:Tn,pageUp:He,pageDown:ke}=gn,me={year:{[Ae]:-4,[je]:4,[at]:-1,[gt]:1,offset:(rt,ht)=>rt.setFullYear(rt.getFullYear()+ht)},month:{[Ae]:-4,[je]:4,[at]:-1,[gt]:1,offset:(rt,ht)=>rt.setMonth(rt.getMonth()+ht)},week:{[Ae]:-1,[je]:1,[at]:-1,[gt]:1,offset:(rt,ht)=>rt.setDate(rt.getDate()+ht*7)},date:{[Ae]:-7,[je]:7,[at]:-1,[gt]:1,[nn]:rt=>-rt.getDay(),[Tn]:rt=>-rt.getDay()+6,[He]:rt=>-new Date(rt.getFullYear(),rt.getMonth(),0).getDate(),[ke]:rt=>new Date(rt.getFullYear(),rt.getMonth()+1,0).getDate(),offset:(rt,ht)=>rt.setDate(rt.getDate()+ht)}},Be=m.value.toDate();for(;Math.abs(m.value.diff(Be,"year",!0))<1;){const rt=me[L.value];if(!rt)return;if(rt.offset(Be,Pn(rt[st])?rt[st](Be):(Ot=rt[st])!=null?Ot:0),p&&p(Be))break;const ht=rr(Be).locale(u.value);m.value=ht,t("pick",ht,!0);break}},_t=st=>{t("panel-change",m.value.toDate(),st,j.value)};return St(()=>Z.value,st=>{if(["month","year"].includes(st)){j.value=st;return}else if(st==="years"){j.value="year";return}else if(st==="months"){j.value="month";return}j.value="date"},{immediate:!0}),St(()=>g.value,st=>{st&&(m.value=Bt())},{immediate:!0}),St(()=>n.parsedValue,st=>{if(st){if($.value||qt(st))return;m.value=st}else m.value=Bt()},{immediate:!0}),t("set-picker-option",["isValidValue",Ne]),t("set-picker-option",["formatToString",pt]),t("set-picker-option",["parseUserInput",Rt]),t("set-picker-option",["handleFocusPicker",Wt]),(st,Ot)=>(F(),K("div",{class:re([C(o).b(),C(i).b(),C(o).is("border",st.border),C(o).is("disabled",st.disabled),{"has-sidebar":st.$slots.sidebar||C(W),"has-time":C(X)}])},[x("div",{class:re(C(o).e("body-wrapper"))},[ft(st.$slots,"sidebar",{class:re(C(o).e("sidebar"))}),C(W)?(F(),K("div",{key:0,class:re(C(o).e("sidebar"))},[(F(!0),K(Pt,null,an(C(f),(Ae,je)=>(F(),K("button",{key:je,type:"button",disabled:st.disabled,class:re(C(o).e("shortcut")),onClick:at=>G(Ae)},We(Ae.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:re(C(o).e("body"))},[C(X)?(F(),K("div",{key:0,class:re(C(i).e("time-header"))},[x("span",{class:re(C(i).e("editor-wrap"))},[Ve(C(Us),{placeholder:C(l)("el.datepicker.selectDate"),"model-value":C(pe),size:"small","validate-event":!1,disabled:st.disabled,onInput:Ae=>D.value=Ae,onChange:Pe},null,8,["placeholder","model-value","disabled","onInput"])],2),ln((F(),K("span",{class:re(C(i).e("editor-wrap"))},[Ve(C(Us),{placeholder:C(l)("el.datepicker.selectTime"),"model-value":C(De),size:"small","validate-event":!1,disabled:st.disabled,onFocus:ce,onInput:Ae=>P.value=Ae,onChange:Fe},null,8,["placeholder","model-value","disabled","onInput"]),Ve(C(mE),{visible:oe.value,format:C(Y),"parsed-value":m.value,onPick:Le},null,8,["visible","format","parsed-value"])],2)),[[C(Yf),Re]])],2)):xe("v-if",!0),ln(x("div",{class:re([C(i).e("header"),(j.value==="year"||j.value==="month")&&C(i).e("header--bordered")])},[x("span",{class:re(C(i).e("prev-btn"))},[x("button",{type:"button","aria-label":C(l)("el.datepicker.prevYear"),class:re(["d-arrow-left",C(o).e("icon-btn")]),disabled:st.disabled,onClick:Ae=>U(!1)},[ft(st.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["aria-label","disabled","onClick"]),ln(x("button",{type:"button","aria-label":C(l)("el.datepicker.prevMonth"),class:re([C(o).e("icon-btn"),"arrow-left"]),disabled:st.disabled,onClick:Ae=>q(!1)},[ft(st.$slots,"prev-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1})])],10,["aria-label","disabled","onClick"]),[[Ar,j.value==="date"]])],2),x("span",{role:"button",class:re(C(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(Ae=>te("year"),["enter"]),onClick:Ae=>te("year")},We(C(H)),43,["onKeydown","onClick"]),ln(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:re([C(i).e("header-label"),{active:j.value==="month"}]),onKeydown:Lr(Ae=>te("month"),["enter"]),onClick:Ae=>te("month")},We(C(l)(`el.datepicker.month${C(S)+1}`)),43,["onKeydown","onClick"]),[[Ar,j.value==="date"]]),x("span",{class:re(C(i).e("next-btn"))},[ln(x("button",{type:"button","aria-label":C(l)("el.datepicker.nextMonth"),class:re([C(o).e("icon-btn"),"arrow-right"]),disabled:st.disabled,onClick:Ae=>q(!0)},[ft(st.$slots,"next-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})])],10,["aria-label","disabled","onClick"]),[[Ar,j.value==="date"]]),x("button",{type:"button","aria-label":C(l)("el.datepicker.nextYear"),class:re([C(o).e("icon-btn"),"d-arrow-right"]),disabled:st.disabled,onClick:Ae=>U(!0)},[ft(st.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["aria-label","disabled","onClick"])],2)],2),[[Ar,j.value!=="time"]]),x("div",{class:re(C(o).e("content")),onKeydown:Ut},[j.value==="date"?(F(),mt(kL,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"parsed-value":st.parsedValue,"disabled-date":C(p),disabled:st.disabled,"cell-class-name":C(v),"show-week-number":st.showWeekNumber,onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):xe("v-if",!0),j.value==="year"?(F(),mt(Q3,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"disabled-date":C(p),disabled:st.disabled,"parsed-value":st.parsedValue,"cell-class-name":C(v),onPick:ee},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):xe("v-if",!0),j.value==="month"?(F(),mt(K3,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"parsed-value":st.parsedValue,"disabled-date":C(p),disabled:st.disabled,"cell-class-name":C(v),onPick:ie},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):xe("v-if",!0)],34)],2)],2),st.showFooter&&C(ue)&&C(ve)?(F(),K("div",{key:0,class:re(C(o).e("footer"))},[ln(Ve(C(Za),{text:"",size:"small",class:re(C(o).e("link-btn")),disabled:C(he),onClick:Te},{default:nt(()=>[xn(We(C(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Ar,!C($)&&st.showNow]]),st.showConfirm?(F(),mt(C(Za),{key:0,plain:"",size:"small",class:re(C(o).e("link-btn")),disabled:C(Me),onClick:we},{default:nt(()=>[xn(We(C(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var GVe=Jt(qVe,[["__file","panel-date-pick.vue"]]);const KVe=Kt({...kye,...HH}),QVe=e=>{const{emit:t}=vr(),n=fp(),r=pa();return i=>{const a=Pn(i.value)?i.value():i.value;if(a){t("pick",[rr(a[0]).locale(e.value),rr(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},qH=(e,{defaultValue:t,defaultTime:n,leftDate:r,rightDate:o,step:i,unit:a,onParsedValueChanged:s})=>{const{emit:l}=vr(),{pickerNs:u}=cn(zH),d=zt("date-range-picker"),{t:c,lang:f}=Hr(),p=QVe(f),v=Q(),h=Q(),g=Q({endDate:null,selecting:!1}),y=S=>{g.value=S},m=(S=!1)=>{const k=C(v),M=C(h);G3([k,M])&&l("pick",[k,M],S)},b=S=>{g.value.selecting=S,S||(g.value.endDate=null)},w=S=>{if(qt(S)&&S.length===2){const[k,M]=S;v.value=k,r.value=k,h.value=M,s(C(v),C(h))}else A()},A=()=>{let[S,k]=iD(C(t),{lang:C(f),step:i,unit:a,unlinkPanels:e.unlinkPanels});const M=P=>P.diff(P.startOf("d"),"ms"),D=C(n);if(D){let P=0,O=0;if(qt(D)){const[_,B]=D.map(rr);P=M(_),O=M(B)}else{const _=M(rr(D));P=_,O=_}S=S.startOf("d").add(P,"ms"),k=k.startOf("d").add(O,"ms")}v.value=void 0,h.value=void 0,r.value=S,o.value=k};return St(t,S=>{S&&A()},{immediate:!0}),St(()=>e.parsedValue,S=>{S?.length||w(S)},{immediate:!0}),St(()=>e.visible,()=>{e.visible&&w(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:h,rangeState:g,lang:f,ppNs:u,drpNs:d,handleChangeRange:y,handleRangeConfirm:m,handleShortcutClick:p,onSelect:b,onReset:w,t:c}},YVe=(e,t,n,r)=>{const o=Q("date"),i=Q(),a=Q("date"),s=Q(),l=cn(Fc),{disabledDate:u}=l.props,{t:d,lang:c}=Hr(),f=J(()=>n.value.year()),p=J(()=>n.value.month()),v=J(()=>r.value.year()),h=J(()=>r.value.month());function g(S,k){const M=d("el.datepicker.year");if(S.value==="year"){const D=Math.floor(k.value/10)*10;return M?`${D} ${M} - ${D+9} ${M}`:`${D} - ${D+9}`}return`${k.value} ${M}`}function y(S){S?.focus()}async function m(S,k){if(e.disabled)return;const M=S==="left"?o:a,D=S==="left"?i:s;M.value=k,await Vt(),y(D.value)}async function b(S,k,M){if(e.disabled)return;const D=k==="left",P=D?n:r,O=D?r:n,_=D?o:a,B=D?i:s;if(S==="year"){const N=P.value.year(M);P.value=bE(N,c.value,u)}S==="month"&&(P.value=Ny(P.value,P.value.year(),M,c.value,u)),e.unlinkPanels||(O.value=k==="left"?P.value.add(1,"month"):P.value.subtract(1,"month")),_.value=S==="year"?"month":"date",await Vt(),y(B.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),r.value.toDate()],S)}function A(S,k,M){const D=M?"add":"subtract";return S==="year"?k[D](10,"year"):k[D](1,"year")}return{leftCurrentView:o,rightCurrentView:a,leftCurrentViewRef:i,rightCurrentViewRef:s,leftYear:f,rightYear:v,leftMonth:p,rightMonth:h,leftYearLabel:J(()=>g(o,f)),rightYearLabel:J(()=>g(a,v)),showLeftPicker:S=>m("left",S),showRightPicker:S=>m("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:A}},mx="month",ZVe=tt({__name:"panel-date-range",props:KVe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=cn(Fc),o=cn(PC,void 0),{disabledDate:i,cellClassName:a,defaultTime:s,clearable:l}=r.props,u=ao(r.props,"format"),d=ao(r.props,"shortcuts"),c=ao(r.props,"defaultValue"),{lang:f}=Hr(),p=Q(rr().locale(f.value)),v=Q(rr().locale(f.value).add(1,mx));let h=!0;const{minDate:g,maxDate:y,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:A,handleRangeConfirm:S,handleShortcutClick:k,onSelect:M,onReset:D,t:P}=qH(n,{defaultValue:c,defaultTime:s,leftDate:p,rightDate:v,unit:mx,onParsedValueChanged:rt});St(()=>n.visible,ht=>{!ht&&m.value.selecting&&(D(n.parsedValue),M(!1))});const O=Q({min:null,max:null}),_=Q({min:null,max:null}),{leftCurrentView:B,rightCurrentView:N,leftCurrentViewRef:q,rightCurrentViewRef:U,leftYear:j,rightYear:H,leftMonth:G,rightMonth:Z,leftYearLabel:$,rightYearLabel:L,showLeftPicker:W,showRightPicker:ie,handleLeftYearPick:ee,handleRightYearPick:te,handleLeftMonthPick:X,handleRightMonthPick:ue,handlePanelChange:ve,adjustDateByView:Me}=YVe(n,t,p,v),we=J(()=>!!d.value.length),he=J(()=>O.value.min!==null?O.value.min:g.value?g.value.format(pe.value):""),Te=J(()=>O.value.max!==null?O.value.max:y.value||g.value?(y.value||g.value).format(pe.value):""),Y=J(()=>_.value.min!==null?_.value.min:g.value?g.value.format(De.value):""),be=J(()=>_.value.max!==null?_.value.max:y.value||g.value?(y.value||g.value).format(De.value):""),De=J(()=>n.timeFormat||$1e(u.value||"")||Py),pe=J(()=>n.dateFormat||U1e(u.value||"")||lh),oe=ht=>G3(ht)&&(i?!i(ht[0].toDate())&&!i(ht[1].toDate()):!0),ce=()=>{p.value=Me(B.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),ve("year")},Re=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),ve("month")},Ee=()=>{n.unlinkPanels?v.value=Me(N.value,v.value,!0):(p.value=Me(N.value,p.value,!0),v.value=p.value.add(1,"month")),ve("year")},Le=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),ve("month")},Fe=()=>{p.value=Me(B.value,p.value,!0),ve("year")},Pe=()=>{p.value=p.value.add(1,"month"),ve("month")},Ne=()=>{v.value=Me(N.value,v.value,!1),ve("year")},pt=()=>{v.value=v.value.subtract(1,"month"),ve("month")},Rt=J(()=>{const ht=(G.value+1)%12,rn=G.value+1>=12?1:0;return n.unlinkPanels&&new Date(j.value+rn,ht)<new Date(H.value,Z.value)}),Bt=J(()=>n.unlinkPanels&&H.value*12+Z.value-(j.value*12+G.value+1)>=12),en=J(()=>!(g.value&&y.value&&!m.value.selecting&&G3([g.value,y.value]))),Wt=J(()=>n.type==="datetime"||n.type==="datetimerange"),Ut=(ht,rn)=>{if(ht)return s?rr(s[rn]||s).locale(f.value).year(ht.year()).month(ht.month()).date(ht.date()):ht},ct=(ht,rn=!0)=>{const Ye=ht.minDate,Je=ht.maxDate,lt=Ut(Ye,0),Ue=Ut(Je,1);y.value===Ue&&g.value===lt||(t("calendar-change",[Ye.toDate(),Je&&Je.toDate()]),y.value=Ue,g.value=lt,!Wt.value&&rn&&(rn=!lt||!Ue),h=rn)};St([y,g],([ht,rn])=>{ht&&rn&&(S(h),h=!0)});const _t=Q(!1),st=Q(!1),Ot=()=>{_t.value=!1},Ae=()=>{st.value=!1},je=(ht,rn)=>{O.value[rn]=ht;const Ye=rr(ht,pe.value).locale(f.value);if(Ye.isValid()){if(i&&i(Ye.toDate()))return;rn==="min"?(p.value=Ye,g.value=(g.value||p.value).year(Ye.year()).month(Ye.month()).date(Ye.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(g.value))&&(v.value=Ye.add(1,"month"),y.value=g.value.add(1,"month"))):(v.value=Ye,y.value=(y.value||v.value).year(Ye.year()).month(Ye.month()).date(Ye.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(y.value))&&(p.value=Ye.subtract(1,"month"),g.value=y.value.subtract(1,"month")))}},at=(ht,rn)=>{O.value[rn]=null},gt=(ht,rn)=>{_.value[rn]=ht;const Ye=rr(ht,De.value).locale(f.value);Ye.isValid()&&(rn==="min"?(_t.value=!0,g.value=(g.value||p.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second())):(st.value=!0,y.value=(y.value||v.value).hour(Ye.hour()).minute(Ye.minute()).second(Ye.second()),v.value=y.value))},nn=(ht,rn)=>{_.value[rn]=null,rn==="min"?(p.value=g.value,_t.value=!1,(!y.value||y.value.isBefore(g.value))&&(y.value=g.value)):(v.value=y.value,st.value=!1,y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},Tn=(ht,rn,Ye)=>{_.value.min||(ht&&(p.value=ht,g.value=(g.value||p.value).hour(ht.hour()).minute(ht.minute()).second(ht.second())),Ye||(_t.value=rn),(!y.value||y.value.isBefore(g.value))&&(y.value=g.value,v.value=ht,Vt(()=>{D(n.parsedValue)})))},He=(ht,rn,Ye)=>{_.value.max||(ht&&(v.value=ht,y.value=(y.value||v.value).hour(ht.hour()).minute(ht.minute()).second(ht.second())),Ye||(st.value=rn),y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},ke=()=>{p.value=iD(C(c),{lang:C(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,g.value=void 0,t("pick",null)},me=ht=>qt(ht)?ht.map(rn=>rn.format(u.value)):ht.format(u.value),Be=ht=>Ry(ht,u.value||"",f.value,o);function rt(ht,rn){if(n.unlinkPanels&&rn){const Ye=ht?.year()||0,Je=ht?.month()||0,lt=rn.year(),Ue=rn.month();v.value=Ye===lt&&Je===Ue?rn.add(1,mx):rn}else v.value=p.value.add(1,mx),rn&&(v.value=v.value.hour(rn.hour()).minute(rn.minute()).second(rn.second()))}return t("set-picker-option",["isValidValue",oe]),t("set-picker-option",["parseUserInput",Be]),t("set-picker-option",["formatToString",me]),t("set-picker-option",["handleClear",ke]),(ht,rn)=>(F(),K("div",{class:re([C(b).b(),C(w).b(),C(b).is("border",ht.border),C(b).is("disabled",ht.disabled),{"has-sidebar":ht.$slots.sidebar||C(we),"has-time":C(Wt)}])},[x("div",{class:re(C(b).e("body-wrapper"))},[ft(ht.$slots,"sidebar",{class:re(C(b).e("sidebar"))}),C(we)?(F(),K("div",{key:0,class:re(C(b).e("sidebar"))},[(F(!0),K(Pt,null,an(C(d),(Ye,Je)=>(F(),K("button",{key:Je,type:"button",disabled:ht.disabled,class:re(C(b).e("shortcut")),onClick:lt=>C(k)(Ye)},We(Ye.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:re(C(b).e("body"))},[C(Wt)?(F(),K("div",{key:0,class:re(C(w).e("time-header"))},[x("span",{class:re(C(w).e("editors-wrap"))},[x("span",{class:re(C(w).e("time-picker-wrap"))},[Ve(C(Us),{size:"small",disabled:C(m).selecting||ht.disabled,placeholder:C(P)("el.datepicker.startDate"),class:re(C(w).e("editor")),"model-value":C(he),"validate-event":!1,onInput:Ye=>je(Ye,"min"),onChange:Ye=>at(Ye,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),ln((F(),K("span",{class:re(C(w).e("time-picker-wrap"))},[Ve(C(Us),{size:"small",class:re(C(w).e("editor")),disabled:C(m).selecting||ht.disabled,placeholder:C(P)("el.datepicker.startTime"),"model-value":C(Y),"validate-event":!1,onFocus:Ye=>_t.value=!0,onInput:Ye=>gt(Ye,"min"),onChange:Ye=>nn(Ye,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),Ve(C(mE),{visible:_t.value,format:C(De),"datetime-role":"start","parsed-value":p.value,onPick:Tn},null,8,["visible","format","parsed-value"])],2)),[[C(Yf),Ot]])],2),x("span",null,[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})]),x("span",{class:re([C(w).e("editors-wrap"),"is-right"])},[x("span",{class:re(C(w).e("time-picker-wrap"))},[Ve(C(Us),{size:"small",class:re(C(w).e("editor")),disabled:C(m).selecting||ht.disabled,placeholder:C(P)("el.datepicker.endDate"),"model-value":C(Te),readonly:!C(g),"validate-event":!1,onInput:Ye=>je(Ye,"max"),onChange:Ye=>at(Ye,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),ln((F(),K("span",{class:re(C(w).e("time-picker-wrap"))},[Ve(C(Us),{size:"small",class:re(C(w).e("editor")),disabled:C(m).selecting||ht.disabled,placeholder:C(P)("el.datepicker.endTime"),"model-value":C(be),readonly:!C(g),"validate-event":!1,onFocus:Ye=>C(g)&&(st.value=!0),onInput:Ye=>gt(Ye,"max"),onChange:Ye=>nn(Ye,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),Ve(C(mE),{"datetime-role":"end",visible:st.value,format:C(De),"parsed-value":v.value,onPick:He},null,8,["visible","format","parsed-value"])],2)),[[C(Yf),Ae]])],2)],2)):xe("v-if",!0),x("div",{class:re([[C(b).e("content"),C(w).e("content")],"is-left"])},[x("div",{class:re(C(w).e("header"))},[x("button",{type:"button",class:re([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(P)("el.datepicker.prevYear"),disabled:ht.disabled,onClick:ce},[ft(ht.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["aria-label","disabled"]),ln(x("button",{type:"button",class:re([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(P)("el.datepicker.prevMonth"),disabled:ht.disabled,onClick:Re},[ft(ht.$slots,"prev-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1})])],10,["aria-label","disabled"]),[[Ar,C(B)==="date"]]),ht.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(Bt)||ht.disabled,class:re([[C(b).e("icon-btn"),C(b).is("disabled",!C(Bt)||ht.disabled)],"d-arrow-right"]),"aria-label":C(P)("el.datepicker.nextYear"),onClick:Fe},[ft(ht.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),ht.unlinkPanels&&C(B)==="date"?(F(),K("button",{key:1,type:"button",disabled:!C(Rt)||ht.disabled,class:re([[C(b).e("icon-btn"),C(b).is("disabled",!C(Rt)||ht.disabled)],"arrow-right"]),"aria-label":C(P)("el.datepicker.nextMonth"),onClick:Pe},[ft(ht.$slots,"next-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("div",null,[x("span",{role:"button",class:re(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(Ye=>C(W)("year"),["enter"]),onClick:Ye=>C(W)("year")},We(C($)),43,["onKeydown","onClick"]),ln(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:re([C(w).e("header-label"),{active:C(B)==="month"}]),onKeydown:Lr(Ye=>C(W)("month"),["enter"]),onClick:Ye=>C(W)("month")},We(C(P)(`el.datepicker.month${p.value.month()+1}`)),43,["onKeydown","onClick"]),[[Ar,C(B)==="date"]])])],2),C(B)==="date"?(F(),mt(kL,{key:0,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"range",date:p.value,"min-date":C(g),"max-date":C(y),"range-state":C(m),"disabled-date":C(i),"cell-class-name":C(a),"show-week-number":ht.showWeekNumber,disabled:ht.disabled,onChangerange:C(A),onPick:ct,onSelect:C(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):xe("v-if",!0),C(B)==="year"?(F(),mt(Q3,{key:1,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"year",date:p.value,"disabled-date":C(i),"parsed-value":ht.parsedValue,disabled:ht.disabled,onPick:C(ee)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(B)==="month"?(F(),mt(K3,{key:2,ref_key:"leftCurrentViewRef",ref:q,"selection-mode":"month",date:p.value,"parsed-value":ht.parsedValue,"disabled-date":C(i),disabled:ht.disabled,onPick:C(X)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2),x("div",{class:re([[C(b).e("content"),C(w).e("content")],"is-right"])},[x("div",{class:re([C(w).e("header"),C(b).is("disabled",!C(Bt)||ht.disabled)])},[ht.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(Bt)||ht.disabled,class:re([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(P)("el.datepicker.prevYear"),onClick:Ne},[ft(ht.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),ht.unlinkPanels&&C(N)==="date"?(F(),K("button",{key:1,type:"button",disabled:!C(Rt)||ht.disabled,class:re([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(P)("el.datepicker.prevMonth"),onClick:pt},[ft(ht.$slots,"prev-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("button",{type:"button","aria-label":C(P)("el.datepicker.nextYear"),class:re([C(b).e("icon-btn"),"d-arrow-right"]),disabled:ht.disabled,onClick:Ee},[ft(ht.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["aria-label","disabled"]),ln(x("button",{type:"button",class:re([C(b).e("icon-btn"),"arrow-right"]),disabled:ht.disabled,"aria-label":C(P)("el.datepicker.nextMonth"),onClick:Le},[ft(ht.$slots,"next-month",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})])],10,["disabled","aria-label"]),[[Ar,C(N)==="date"]]),x("div",null,[x("span",{role:"button",class:re(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(Ye=>C(ie)("year"),["enter"]),onClick:Ye=>C(ie)("year")},We(C(L)),43,["onKeydown","onClick"]),ln(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:re([C(w).e("header-label"),{active:C(N)==="month"}]),onKeydown:Lr(Ye=>C(ie)("month"),["enter"]),onClick:Ye=>C(ie)("month")},We(C(P)(`el.datepicker.month${v.value.month()+1}`)),43,["onKeydown","onClick"]),[[Ar,C(N)==="date"]])])],2),C(N)==="date"?(F(),mt(kL,{key:0,ref_key:"rightCurrentViewRef",ref:U,"selection-mode":"range",date:v.value,"min-date":C(g),"max-date":C(y),"range-state":C(m),"disabled-date":C(i),"cell-class-name":C(a),"show-week-number":ht.showWeekNumber,disabled:ht.disabled,onChangerange:C(A),onPick:ct,onSelect:C(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):xe("v-if",!0),C(N)==="year"?(F(),mt(Q3,{key:1,ref_key:"rightCurrentViewRef",ref:U,"selection-mode":"year",date:v.value,"disabled-date":C(i),"parsed-value":ht.parsedValue,disabled:ht.disabled,onPick:C(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(N)==="month"?(F(),mt(K3,{key:2,ref_key:"rightCurrentViewRef",ref:U,"selection-mode":"month",date:v.value,"parsed-value":ht.parsedValue,"disabled-date":C(i),disabled:ht.disabled,onPick:C(ue)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2)],2)],2),ht.showFooter&&C(Wt)&&(ht.showConfirm||C(l))?(F(),K("div",{key:0,class:re(C(b).e("footer"))},[C(l)?(F(),mt(C(Za),{key:0,text:"",size:"small",class:re(C(b).e("link-btn")),onClick:ke},{default:nt(()=>[xn(We(C(P)("el.datepicker.clear")),1)]),_:1},8,["class"])):xe("v-if",!0),ht.showConfirm?(F(),mt(C(Za),{key:1,plain:"",size:"small",class:re(C(b).e("link-btn")),disabled:C(en),onClick:Ye=>C(S)(!1)},{default:nt(()=>[xn(We(C(P)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var XVe=Jt(ZVe,[["__file","panel-date-range.vue"]]);const JVe=Kt({...HH}),eqe=["pick","set-picker-option","calendar-change"],tqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Hr(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=J(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=J(()=>`${n.value.year()} ${r("el.datepicker.year")}`),d=J(()=>t.value.year()),c=J(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:o,rightNextYear:i,leftNextYear:a,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:d,rightYear:c}},yx="year",nqe=tt({name:"DatePickerMonthRange"}),rqe=tt({...nqe,props:JVe,emits:eqe,setup(e,{emit:t}){const n=e,{lang:r}=Hr(),o=cn(Fc),i=cn(PC,void 0),{shortcuts:a,disabledDate:s,cellClassName:l}=o.props,u=ao(o.props,"format"),d=ao(o.props,"defaultValue"),c=Q(rr().locale(r.value)),f=Q(rr().locale(r.value).add(1,yx)),{minDate:p,maxDate:v,rangeState:h,ppNs:g,drpNs:y,handleChangeRange:m,handleRangeConfirm:b,handleShortcutClick:w,onSelect:A,onReset:S}=qH(n,{defaultValue:d,leftDate:c,rightDate:f,unit:yx,onParsedValueChanged:$}),k=J(()=>!!a.length),{leftPrevYear:M,rightNextYear:D,leftNextYear:P,rightPrevYear:O,leftLabel:_,rightLabel:B,leftYear:N,rightYear:q}=tqe({unlinkPanels:ao(n,"unlinkPanels"),leftDate:c,rightDate:f}),U=J(()=>n.unlinkPanels&&q.value>N.value+1),j=(L,W=!0)=>{const ie=L.minDate,ee=L.maxDate;v.value===ee&&p.value===ie||(t("calendar-change",[ie.toDate(),ee&&ee.toDate()]),v.value=ee,p.value=ie,W&&b())},H=()=>{c.value=iD(C(d),{lang:C(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],f.value=c.value.add(1,"year"),t("pick",null)},G=L=>qt(L)?L.map(W=>W.format(u.value)):L.format(u.value),Z=L=>Ry(L,u.value,r.value,i);function $(L,W){if(n.unlinkPanels&&W){const ie=L?.year()||0,ee=W.year();f.value=ie===ee?W.add(1,yx):W}else f.value=c.value.add(1,yx)}return St(()=>n.visible,L=>{!L&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",G3]),t("set-picker-option",["formatToString",G]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["handleClear",H]),(L,W)=>(F(),K("div",{class:re([C(g).b(),C(y).b(),C(g).is("border",L.border),C(g).is("disabled",L.disabled),{"has-sidebar":!!L.$slots.sidebar||C(k)}])},[x("div",{class:re(C(g).e("body-wrapper"))},[ft(L.$slots,"sidebar",{class:re(C(g).e("sidebar"))}),C(k)?(F(),K("div",{key:0,class:re(C(g).e("sidebar"))},[(F(!0),K(Pt,null,an(C(a),(ie,ee)=>(F(),K("button",{key:ee,type:"button",class:re(C(g).e("shortcut")),disabled:L.disabled,onClick:te=>C(w)(ie)},We(ie.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:re(C(g).e("body"))},[x("div",{class:re([[C(g).e("content"),C(y).e("content")],"is-left"])},[x("div",{class:re(C(y).e("header"))},[x("button",{type:"button",class:re([C(g).e("icon-btn"),"d-arrow-left"]),disabled:L.disabled,onClick:C(M)},[ft(L.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["disabled","onClick"]),L.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(U)||L.disabled,class:re([[C(g).e("icon-btn"),{[C(g).is("disabled")]:!C(U)}],"d-arrow-right"]),onClick:C(P)},[ft(L.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,We(C(_)),1)],2),Ve(K3,{"selection-mode":"range",date:c.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:L.disabled,"cell-class-name":C(l),onChangerange:C(m),onPick:j,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:re([[C(g).e("content"),C(y).e("content")],"is-right"])},[x("div",{class:re(C(y).e("header"))},[L.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(U)||L.disabled,class:re([[C(g).e("icon-btn"),{"is-disabled":!C(U)}],"d-arrow-left"]),onClick:C(O)},[ft(L.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:re([C(g).e("icon-btn"),"d-arrow-right"]),disabled:L.disabled,onClick:C(D)},[ft(L.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["disabled","onClick"]),x("div",null,We(C(B)),1)],2),Ve(K3,{"selection-mode":"range",date:f.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:L.disabled,"cell-class-name":C(l),onChangerange:C(m),onPick:j,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var oqe=Jt(rqe,[["__file","panel-month-range.vue"]]);const iqe=Kt({...HH}),aqe=["pick","set-picker-option","calendar-change"],sqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},o=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},a=()=>{n.value=n.value.subtract(10,"year")},s=J(()=>{const c=Math.floor(t.value.year()/10)*10;return`${c}-${c+9}`}),l=J(()=>{const c=Math.floor(n.value.year()/10)*10;return`${c}-${c+9}`}),u=J(()=>Math.floor(t.value.year()/10)*10+9),d=J(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:o,leftNextYear:i,rightPrevYear:a,leftLabel:s,rightLabel:l,leftYear:u,rightYear:d}},Om=10,T2="year",lqe=tt({name:"DatePickerYearRange"}),uqe=tt({...lqe,props:iqe,emits:aqe,setup(e,{emit:t}){const n=e,{lang:r}=Hr(),o=Q(rr().locale(r.value)),i=Q(rr().locale(r.value).add(Om,T2)),a=cn(PC,void 0),s=cn(Fc),{shortcuts:l,disabledDate:u,cellClassName:d}=s.props,c=ao(s.props,"format"),f=ao(s.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:h,ppNs:g,drpNs:y,handleChangeRange:m,handleRangeConfirm:b,handleShortcutClick:w,onSelect:A,onReset:S}=qH(n,{defaultValue:f,leftDate:o,rightDate:i,step:Om,unit:T2,onParsedValueChanged:ee}),{leftPrevYear:k,rightNextYear:M,leftNextYear:D,rightPrevYear:P,leftLabel:O,rightLabel:_,leftYear:B,rightYear:N}=sqe({unlinkPanels:ao(n,"unlinkPanels"),leftDate:o,rightDate:i}),q=J(()=>!!l.length),U=J(()=>[g.b(),y.b(),g.is("border",n.border),g.is("disabled",n.disabled),{"has-sidebar":!!pa().sidebar||q.value}]),j=J(()=>({content:[g.e("content"),y.e("content"),"is-left"],arrowLeftBtn:[g.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[g.e("icon-btn"),{[g.is("disabled")]:!G.value},"d-arrow-right"]})),H=J(()=>({content:[g.e("content"),y.e("content"),"is-right"],arrowLeftBtn:[g.e("icon-btn"),{"is-disabled":!G.value},"d-arrow-left"],arrowRightBtn:[g.e("icon-btn"),"d-arrow-right"]})),G=J(()=>n.unlinkPanels&&N.value>B.value+1),Z=(te,X=!0)=>{const ue=te.minDate,ve=te.maxDate;v.value===ve&&p.value===ue||(t("calendar-change",[ue.toDate(),ve&&ve.toDate()]),v.value=ve,p.value=ue,X&&b())},$=te=>Ry(te,c.value,r.value,a),L=te=>qt(te)?te.map(X=>X.format(c.value)):te.format(c.value),W=te=>G3(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),ie=()=>{const te=iD(C(f),{lang:C(r),step:Om,unit:T2,unlinkPanels:n.unlinkPanels});o.value=te[0],i.value=te[1],t("pick",null)};function ee(te,X){if(n.unlinkPanels&&X){const ue=te?.year()||0,ve=X.year();i.value=ue+Om>ve?X.add(Om,T2):X}else i.value=o.value.add(Om,T2)}return St(()=>n.visible,te=>{!te&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",W]),t("set-picker-option",["parseUserInput",$]),t("set-picker-option",["formatToString",L]),t("set-picker-option",["handleClear",ie]),(te,X)=>(F(),K("div",{class:re(C(U))},[x("div",{class:re(C(g).e("body-wrapper"))},[ft(te.$slots,"sidebar",{class:re(C(g).e("sidebar"))}),C(q)?(F(),K("div",{key:0,class:re(C(g).e("sidebar"))},[(F(!0),K(Pt,null,an(C(l),(ue,ve)=>(F(),K("button",{key:ve,type:"button",class:re(C(g).e("shortcut")),disabled:te.disabled,onClick:Me=>C(w)(ue)},We(ue.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:re(C(g).e("body"))},[x("div",{class:re(C(j).content)},[x("div",{class:re(C(y).e("header"))},[x("button",{type:"button",class:re(C(j).arrowLeftBtn),disabled:te.disabled,onClick:C(k)},[ft(te.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["disabled","onClick"]),te.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(G)||te.disabled,class:re(C(j).arrowRightBtn),onClick:C(D)},[ft(te.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,We(C(O)),1)],2),Ve(Q3,{"selection-mode":"range",date:o.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(u),disabled:te.disabled,"cell-class-name":C(d),onChangerange:C(m),onPick:Z,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:re(C(H).content)},[x("div",{class:re(C(y).e("header"))},[te.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(G)||te.disabled,class:re(C(H).arrowLeftBtn),onClick:C(P)},[ft(te.$slots,"prev-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(o0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:re(C(H).arrowRightBtn),disabled:te.disabled,onClick:C(M)},[ft(te.$slots,"next-year",{},()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(i0))]),_:1})])],10,["disabled","onClick"]),x("div",null,We(C(_)),1)],2),Ve(Q3,{"selection-mode":"range",date:i.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(u),disabled:te.disabled,"cell-class-name":C(d),onChangerange:C(m),onPick:Z,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var cqe=Jt(uqe,[["__file","panel-year-range.vue"]]);const dqe=function(e){switch(e){case"daterange":case"datetimerange":return XVe;case"monthrange":return oqe;case"yearrange":return cqe;default:return GVe}};function fqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}rr.extend(j1e);rr.extend(dVe);rr.extend(LH);rr.extend(gVe);rr.extend(bVe);rr.extend(xVe);rr.extend(TVe);rr.extend(OVe);var pqe=tt({name:"ElDatePickerPanel",install:null,props:MVe,emits:[Gn,"calendar-change","panel-change","visible-change","pick"],setup(e,{slots:t,emit:n}){const r=zt("picker-panel"),o=cn(Fc,void 0);if($r(o)){const d=Ur({..._a(e)});Sr(Fc,{props:d})}Sr(zH,{slots:t,pickerNs:r});const{parsedValue:i,onCalendarChange:a,onPanelChange:s,onSetPickerOption:l,onPick:u}=cn(yye,()=>bye(e,n),!0);return()=>{const d=dqe(e.type);return Ve(d,pr(e,{parsedValue:i.value,"onSet-picker-option":l,"onCalendar-change":a,"onPanel-change":s,onPick:u}),fqe(t)?t:{default:()=>[t]})}}});const Tye=er(pqe),hqe=Kt({...$H,type:{type:it(String),default:"date"}});function gqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}var vqe=tt({name:"ElDatePicker",install:null,props:hqe,emits:[Gn],setup(e,{expose:t,emit:n,slots:r}){const o=J(()=>!e.format);Sr(PC,o),Sr(FH,Ur(ao(e,"popperOptions")));const i=Q();t({focus:()=>{var l;(l=i.value)==null||l.focus()},blur:()=>{var l;(l=i.value)==null||l.blur()},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n(Gn,l)};return()=>{var l;const u=(l=e.format)!=null?l:WWe[e.type]||lh;return Ve(Aye,pr(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:d=>Ve(Tye,pr({border:!1},d),gqe(r)?r:{default:()=>[r]}),"range-separator":r["range-separator"]})}}});const mqe=er(vqe),GH=Symbol("elDescriptions");var _2=tt({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:cn(GH,{})}},render(){var e;const t=oje(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(y=>{const{dir:m,arg:b,modifiers:w,value:A}=y;return[m,A,b,w]}),{border:r,direction:o}=this.descriptions,i=o==="vertical",a=()=>{var y,m,b;return((b=(m=(y=this.cell)==null?void 0:y.children)==null?void 0:m.label)==null?void 0:b.call(m))||t.label},s=()=>{var y,m,b;return(b=(m=(y=this.cell)==null?void 0:y.children)==null?void 0:m.default)==null?void 0:b.call(m)},l=t.span,u=t.rowspan,d=t.align?`is-${t.align}`:"",c=t.labelAlign?`is-${t.labelAlign}`:d,f=t.className,p=t.labelClassName,v=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,h={width:_i(v),minWidth:_i(t.minWidth)},g=zt("descriptions");switch(this.type){case"label":return ln(Fn(this.tag,{style:h,class:[g.e("cell"),g.e("label"),g.is("bordered-label",r),g.is("vertical-label",i),c,p],colSpan:i?l:1,rowspan:i?1:u},a()),n);case"content":return ln(Fn(this.tag,{style:h,class:[g.e("cell"),g.e("content"),g.is("bordered-content",r),g.is("vertical-content",i),d,f],colSpan:i?l:l*2-1,rowspan:i?u*2-1:u},s()),n);default:{const y=a(),m={},b=_i(t.labelWidth||this.descriptions.labelWidth);return b&&(m.width=b,m.display="inline-block"),ln(Fn("td",{style:h,class:[g.e("cell"),d],colSpan:l,rowspan:u},[Zi(y)?void 0:Fn("span",{style:m,class:[g.e("label"),p]},y),Fn("span",{class:[g.e("content"),f]},s())]),n)}}}});const yqe=Kt({row:{type:it(Array),default:()=>[]}}),bqe=tt({name:"ElDescriptionsRow"}),wqe=tt({...bqe,props:yqe,setup(e){const t=cn(GH,{});return(n,r)=>C(t).direction==="vertical"?(F(),K(Pt,{key:0},[x("tr",null,[(F(!0),K(Pt,null,an(n.row,(o,i)=>(F(),mt(C(_2),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),x("tr",null,[(F(!0),K(Pt,null,an(n.row,(o,i)=>(F(),mt(C(_2),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(F(),K("tr",{key:1},[(F(!0),K(Pt,null,an(n.row,(o,i)=>(F(),K(Pt,{key:`tr3-${i}`},[C(t).border?(F(),K(Pt,{key:0},[Ve(C(_2),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Ve(C(_2),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(F(),mt(C(_2),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Aqe=Jt(wqe,[["__file","descriptions-row.vue"]]);const Cqe=Kt({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ba,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),_ye="ElDescriptionsItem",xqe=tt({name:"ElDescriptions"}),Sqe=tt({...xqe,props:Cqe,setup(e){const t=e,n=zt("descriptions"),r=fa(),o=pa();Sr(GH,t);const i=J(()=>[n.b(),n.m(r.value)]),a=(l,u,d,c=!1)=>(l.props||(l.props={}),u>d&&(l.props.span=d),c&&(l.props.span=u),l),s=()=>{if(!o.default)return[];const l=bd(o.default()).filter(v=>{var h;return((h=v?.type)==null?void 0:h.name)===_ye}),u=[];let d=[],c=t.column,f=0;const p=[];return l.forEach((v,h)=>{var g,y,m;const b=((g=v.props)==null?void 0:g.span)||1,w=((y=v.props)==null?void 0:y.rowspan)||1,A=u.length;if(p[A]||(p[A]=0),w>1)for(let S=1;S<w;S++)p[m=A+S]||(p[m]=0),p[A+S]++,f++;if(p[A]>0&&(c-=p[A],p[A]=0),h<l.length-1&&(f+=b>c?c:b),h===l.length-1){const S=t.column-f%t.column;d.push(a(v,S,c,!0)),u.push(d);return}b<c?(c-=b,d.push(v)):(d.push(a(v,b,c)),u.push(d),c=t.column,d=[])}),u};return(l,u)=>(F(),K("div",{class:re(C(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(F(),K("div",{key:0,class:re(C(n).e("header"))},[x("div",{class:re(C(n).e("title"))},[ft(l.$slots,"title",{},()=>[xn(We(l.title),1)])],2),x("div",{class:re(C(n).e("extra"))},[ft(l.$slots,"extra",{},()=>[xn(We(l.extra),1)])],2)],2)):xe("v-if",!0),x("div",{class:re(C(n).e("body"))},[x("table",{class:re([C(n).e("table"),C(n).is("bordered",l.border)])},[x("tbody",null,[(F(!0),K(Pt,null,an(s(),(d,c)=>(F(),mt(Aqe,{key:c,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var Eqe=Jt(Sqe,[["__file","description.vue"]]);const HJ=["left","center","right"],kqe=Kt({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,values:HJ,default:"left"},labelAlign:{type:String,values:HJ},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Dye=tt({name:_ye,props:kqe}),Tqe=er(Eqe,{DescriptionsItem:Dye}),_qe=vi(Dye),KH=e=>{if(!e)return{onClick:go,onMousedown:go,onMouseup:go};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},Dqe=Kt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:it([String,Array,Object])},zIndex:{type:it([String,Number])}}),Iqe={click:e=>e instanceof MouseEvent},Oqe="overlay";var Mqe=tt({name:"ElOverlay",props:Dqe,emits:Iqe,setup(e,{slots:t,emit:n}){const r=zt(Oqe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=KH(e.customMaskEvent?void 0:o);return()=>e.mask?Ve("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:s},[ft(t,"default")],_u.STYLE|_u.CLASS|_u.PROPS,["onClick","onMouseup","onMousedown"]):Fn("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ft(t,"default")])}});const QH=Mqe,Iye=Symbol("dialogInjectionKey"),WJ="dialog-fade",Oye=Kt({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:vo},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Pqe={close:()=>!0},Mye=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},i=Q(!1),a=(f,p)=>{if(e.value){const{offsetX:v,offsetY:h}=o,g=e.value.getBoundingClientRect(),y=g.left,m=g.top,b=g.width,w=g.height,A=document.documentElement.clientWidth,S=document.documentElement.clientHeight,k=-y+v,M=-m+h,D=A-y-b+v,P=S-m-(w<S?w:0)+h;r?.value||(f=Math.min(Math.max(f,k),D),p=Math.min(Math.max(p,M),P)),o.offsetX=f,o.offsetY=p,e.value.style.transform=`translate(${_i(f)}, ${_i(p)})`}},s=f=>{const p=f.clientX,v=f.clientY,{offsetX:h,offsetY:g}=o,y=b=>{i.value||(i.value=!0);const w=h+b.clientX-p,A=g+b.clientY-v;a(w,A)},m=()=>{i.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",m)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",c))},u=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",c))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},c=()=>{const{offsetX:f,offsetY:p}=o;a(f,p)};return jn(()=>{Cs(()=>{n.value?l():u()})}),Qr(()=>{u()}),{isDragging:i,resetPosition:d,updatePosition:c}},aD=(...e)=>t=>{e.forEach(n=>{Pn(n)?n(t):n.value=t})},Nqe=tt({name:"ElDialogContent"}),Rqe=tt({...Nqe,props:Oye,emits:Pqe,setup(e,{expose:t}){const n=e,{t:r}=Hr(),{Close:o}=t1e,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=cn(Iye),{focusTrapRef:d}=cn(SH),c=aD(d,i),f=J(()=>!!n.draggable),p=J(()=>!!n.overflow),{resetPosition:v,updatePosition:h,isDragging:g}=Mye(i,a,f,p),y=J(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",f.value),l.is("dragging",g.value),l.is("align-center",!!n.alignCenter),{[l.m("center")]:n.center}]);return t({resetPosition:v,updatePosition:h}),(m,b)=>(F(),K("div",{ref:C(c),class:re(C(y)),style:Xt(C(u)),tabindex:"-1"},[x("header",{ref_key:"headerRef",ref:a,class:re([C(l).e("header"),m.headerClass,{"show-close":m.showClose}])},[ft(m.$slots,"header",{},()=>[x("span",{role:"heading","aria-level":m.ariaLevel,class:re(C(l).e("title"))},We(m.title),11,["aria-level"])]),m.showClose?(F(),K("button",{key:0,"aria-label":C(r)("el.dialog.close"),class:re(C(l).e("headerbtn")),type:"button",onClick:w=>m.$emit("close")},[Ve(C(Dn),{class:re(C(l).e("close"))},{default:nt(()=>[(F(),mt(hr(m.closeIcon||C(o))))]),_:1},8,["class"])],10,["aria-label","onClick"])):xe("v-if",!0)],2),x("div",{id:C(s),class:re([C(l).e("body"),m.bodyClass])},[ft(m.$slots,"default")],10,["id"]),m.$slots.footer?(F(),K("footer",{key:0,class:re([C(l).e("footer"),m.footerClass])},[ft(m.$slots,"footer")],2)):xe("v-if",!0)],6))}});var Bqe=Jt(Rqe,[["__file","dialog-content.vue"]]);const Pye=Kt({...Oye,appendToBody:Boolean,appendTo:{type:tD.to.type,default:"body"},beforeClose:{type:it(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:it([String,Object]),default:void 0}}),Nye={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Gn]:e=>Co(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},YH=(e,t={})=>{Ro(e)||Xi("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||zt("popup"),r=J(()=>n.bm("parent","hidden"));if(!Kr||El(document.body,r.value))return;let o=0,i=!1,a="0";const s=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=a,zs(document.body,r.value))},200)};St(e,l=>{if(!l){s();return}i=!El(document.body,r.value),i&&(a=document.body.style.width,Nu(document.body,r.value)),o=Hme(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Tf(document.body,"overflowY");o>0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`)}),O0e(()=>s())},Rye=(e,t)=>{var n;const o=vr().emit,{nextZIndex:i}=Mb();let a="";const s=fs(),l=fs(),u=Q(!1),d=Q(!1),c=Q(!1),f=Q((n=e.zIndex)!=null?n:i());let p,v;const h=Pb(),g=J(()=>{var $,L;return(L=($=h.value)==null?void 0:$.namespace)!=null?L:V4}),y=J(()=>{var $;return($=h.value)==null?void 0:$.dialog}),m=J(()=>{const $={},L=`--${g.value}-dialog`;return e.fullscreen||(e.top&&($[`${L}-margin-top`]=e.top),e.width&&($[`${L}-width`]=_i(e.width))),$}),b=J(()=>{var $,L,W;return((W=(L=e.draggable)!=null?L:($=y.value)==null?void 0:$.draggable)!=null?W:!1)&&!e.fullscreen}),w=J(()=>{var $,L,W;return(W=(L=e.alignCenter)!=null?L:($=y.value)==null?void 0:$.alignCenter)!=null?W:!1}),A=J(()=>{var $,L,W;return(W=(L=e.overflow)!=null?L:($=y.value)==null?void 0:$.overflow)!=null?W:!1}),S=J(()=>w.value?{display:"flex"}:{}),k=J(()=>{var $,L,W;const ie=(W=(L=e.transition)!=null?L:($=y.value)==null?void 0:$.transition)!=null?W:WJ,ee={name:ie,onAfterEnter:M,onBeforeLeave:P,onAfterLeave:D};if(ar(ie)){const te={...ie},X=(ue,ve)=>Me=>{qt(ue)?ue.forEach(we=>{Pn(we)&&we(Me)}):Pn(ue)&&ue(Me),ve()};return te.onAfterEnter=X(te.onAfterEnter,M),te.onBeforeLeave=X(te.onBeforeLeave,P),te.onAfterLeave=X(te.onAfterLeave,D),te.name||(te.name=WJ),te}return ee});function M(){o("opened")}function D(){o("closed"),o(Gn,!1),e.destroyOnClose&&(c.value=!1)}function P(){o("close")}function O(){v?.(),p?.(),e.openDelay&&e.openDelay>0?{stop:p}=kv(()=>q(),e.openDelay):q()}function _(){p?.(),v?.(),e.closeDelay&&e.closeDelay>0?{stop:v}=kv(()=>U(),e.closeDelay):U()}function B(){function $(L){L||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose($):_()}function N(){e.closeOnClickModal&&B()}function q(){Kr&&(u.value=!0)}function U(){u.value=!1}function j(){o("openAutoFocus")}function H(){o("closeAutoFocus")}function G($){var L;((L=$.detail)==null?void 0:L.focusReason)==="pointer"&&$.preventDefault()}e.lockScroll&&YH(u);function Z(){e.closeOnPressEscape&&B()}return St(()=>e.zIndex,()=>{var $;f.value=($=e.zIndex)!=null?$:i()}),St(()=>e.modelValue,$=>{var L;$?(d.value=!1,O(),c.value=!0,f.value=(L=e.zIndex)!=null?L:i(),Vt(()=>{o("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&_()}),St(()=>e.fullscreen,$=>{t.value&&($?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),jn(()=>{e.modelValue&&(u.value=!0,c.value=!0,O())}),{afterEnter:M,afterLeave:D,beforeLeave:P,handleClose:B,onModalClick:N,close:_,doClose:U,onOpenAutoFocus:j,onCloseAutoFocus:H,onCloseRequested:Z,onFocusoutPrevented:G,titleId:s,bodyId:l,closed:d,style:m,overlayDialogStyle:S,rendered:c,visible:u,zIndex:f,transitionConfig:k,_draggable:b,_alignCenter:w,_overflow:A}},Lqe=tt({name:"ElDialog",inheritAttrs:!1}),Fqe=tt({...Lqe,props:Pye,emits:Nye,setup(e,{expose:t}){const n=e,r=pa();Lf({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},J(()=>!!r.title));const o=zt("dialog"),i=Q(),a=Q(),s=Q(),{visible:l,titleId:u,bodyId:d,style:c,overlayDialogStyle:f,rendered:p,transitionConfig:v,zIndex:h,_draggable:g,_alignCenter:y,_overflow:m,handleClose:b,onModalClick:w,onOpenAutoFocus:A,onCloseAutoFocus:S,onCloseRequested:k,onFocusoutPrevented:M}=Rye(n,i);Sr(Iye,{dialogRef:i,headerRef:a,bodyId:d,ns:o,rendered:p,style:c});const D=KH(w),P=J(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPosition:()=>{var _;(_=s.value)==null||_.resetPosition()},handleClose:b}),(_,B)=>(F(),mt(C(Bb),{to:_.appendTo,disabled:_.appendTo!=="body"?!1:!_.appendToBody},{default:nt(()=>[Ve(Wi,pr(C(v),{persisted:""}),{default:nt(()=>{var N;return[ln(Ve(C(QH),{"custom-mask-event":"",mask:_.modal,"overlay-class":[(N=_.modalClass)!=null?N:"",`${C(o).namespace.value}-modal-dialog`,C(o).is("penetrable",C(P))],"z-index":C(h)},{default:nt(()=>[x("div",{role:"dialog","aria-modal":"true","aria-label":_.title||void 0,"aria-labelledby":_.title?void 0:C(u),"aria-describedby":C(d),class:re(`${C(o).namespace.value}-overlay-dialog`),style:Xt(C(f)),onClick:C(D).onClick,onMousedown:C(D).onMousedown,onMouseup:C(D).onMouseup},[Ve(C(Rb),{loop:"",trapped:C(l),"focus-start-el":"container",onFocusAfterTrapped:C(A),onFocusAfterReleased:C(S),onFocusoutPrevented:C(M),onReleaseRequested:C(k)},{default:nt(()=>[C(p)?(F(),mt(Bqe,pr({key:0,ref_key:"dialogContentRef",ref:s},_.$attrs,{center:_.center,"align-center":C(y),"close-icon":_.closeIcon,draggable:C(g),overflow:C(m),fullscreen:_.fullscreen,"header-class":_.headerClass,"body-class":_.bodyClass,"footer-class":_.footerClass,"show-close":_.showClose,title:_.title,"aria-level":_.headerAriaLevel,onClose:C(b)}),Ll({header:nt(()=>[_.$slots.title?ft(_.$slots,"title",{key:1}):ft(_.$slots,"header",{key:0,close:C(b),titleId:C(u),titleClass:C(o).e("title")})]),default:nt(()=>[ft(_.$slots,"default")]),_:2},[_.$slots.footer?{name:"footer",fn:nt(()=>[ft(_.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):xe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[Ar,C(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var Uqe=Jt(Fqe,[["__file","dialog.vue"]]);const Bye=er(Uqe),$qe=Kt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:it(String),default:"solid"}}),zqe=tt({name:"ElDivider"}),jqe=tt({...zqe,props:$qe,setup(e){const t=e,n=zt("divider"),r=J(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(F(),K("div",{class:re([C(n).b(),C(n).m(o.direction)]),style:Xt(C(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(F(),K("div",{key:0,class:re([C(n).e("text"),C(n).is(o.contentPosition)])},[ft(o.$slots,"default")],2)):xe("v-if",!0)],6))}});var Hqe=Jt(jqe,[["__file","divider.vue"]]);const Lye=er(Hqe),Wqe=Kt({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),Fye=Symbol("splitterRootContextKey");function Vqe(e){const t=Q(),{width:n,height:r}=LRe(t),o=J(()=>e.value==="horizontal"?n.value:r.value);return{containerEl:t,containerSize:o}}function ZH(e){return Number(e.slice(0,-1))/100}function XH(e){return Number(e.slice(0,-2))}function JH(e){return In(e)&&e.endsWith("%")}function eW(e){return In(e)&&e.endsWith("px")}function qqe(e,t){const n=J(()=>e.value.map(s=>s.size)),r=J(()=>e.value.length),o=Q([]);St([n,r,t],()=>{var s;let l=[],u=0;for(let c=0;c<r.value;c+=1){const f=(s=e.value[c])==null?void 0:s.size;if(JH(f))l[c]=ZH(f);else if(eW(f))l[c]=XH(f)/t.value;else if(f||f===0){const p=Number(f);Number.isNaN(p)||(l[c]=p/t.value)}else u+=1,l[c]=void 0}const d=l.reduce((c,f)=>c+(f||0),0);if(d>1||!u){const c=1/d;l=l.map(f=>f===void 0?0:f*c)}else{const c=(1-d)/u;l=l.map(f=>f===void 0?c:f)}o.value=l});const i=s=>s*t.value,a=J(()=>o.value.map(i));return{percentSizes:o,pxSizes:a}}function Gqe(e,t,n,r){const o=g=>g*t.value||0;function i(g,y){return JH(g)?o(ZH(g)):eW(g)?XH(g):g??y}const a=Q(0),s=Q(null);let l=[],u=go;const d=J(()=>e.value.map(g=>[g.min,g.max]));St(r,()=>{if(a.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const c=g=>{a.value=0,s.value={index:g,confirmed:!1},l=n.value},f=(g,y)=>{var m,b;let w=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)w=g,s.value={index:g,confirmed:!0};else for(let B=g;B>=0;B-=1)if(l[B]>0){w=B,s.value={index:B,confirmed:!0};break}}const A=(b=w??((m=s.value)==null?void 0:m.index))!=null?b:g,S=[...l],k=A+1,M=i(d.value[A][0],0),D=i(d.value[k][0],0),P=i(d.value[A][1],t.value||0),O=i(d.value[k][1],t.value||0);let _=y;S[A]+_<M&&(_=M-S[A]),S[k]-_<D&&(_=S[k]-D),S[A]+_>P&&(_=P-S[A]),S[k]-_>O&&(_=S[k]-O),S[A]+=_,S[k]-=_,a.value=_,u=()=>{e.value.forEach((B,N)=>{B.size=S[N]}),u=go},r.value||u()},p=()=>{r.value&&u(),a.value=0,s.value=null,l=[]},v=[];return{lazyOffset:a,onMoveStart:c,onMoving:f,onMoveEnd:p,movingIndex:s,onCollapse:(g,y)=>{v.length||v.push(...n.value);const m=n.value,b=y==="start"?g:g+1,w=y==="start"?g+1:g,A=m[b],S=m[w];if(A!==0&&S!==0)m[b]=0,m[w]+=A,v[g]=A;else{const k=A+S,M=v[g],D=k-M;m[w]=M,m[b]=D}e.value.forEach((k,M)=>{k.size=m[M]})}}}const Kqe=tt({name:"ElSplitter"}),Qqe=tt({...Kqe,props:Wqe,emits:["resizeStart","resize","resizeEnd","collapse"],setup(e,{emit:t}){const n=e,r=zt("splitter"),o=ao(n,"layout"),i=ao(n,"lazy"),{containerEl:a,containerSize:s}=Vqe(o),{removeChild:l,children:u,addChild:d,ChildrenSorter:c}=nD(vr(),"ElSplitterPanel");St(u,()=>{u.value.forEach((D,P)=>{D.setIndex(P)})});const{percentSizes:f,pxSizes:p}=qqe(u,s),{lazyOffset:v,movingIndex:h,onMoveStart:g,onMoving:y,onMoveEnd:m,onCollapse:b}=Gqe(u,s,p,i),w=J(()=>({[`--${r.b()}-bar-offset`]:i.value?`${v.value}px`:void 0}));return Sr(Fye,Ur({panels:u,percentSizes:f,pxSizes:p,layout:o,lazy:i,movingIndex:h,containerSize:s,onMoveStart:D=>{g(D),t("resizeStart",D,p.value)},onMoving:(D,P)=>{y(D,P),i.value||t("resize",D,p.value)},onMoveEnd:D=>{m(),t("resizeEnd",D,p.value)},onCollapse:(D,P)=>{b(D,P),t("collapse",D,P,p.value)},registerPanel:d,unregisterPanel:l})),(D,P)=>(F(),K("div",{ref_key:"containerEl",ref:a,class:re([C(r).b(),C(r).e(C(o))]),style:Xt(C(w))},[ft(D.$slots,"default"),Ve(C(c)),xe(" Prevent iframe touch events from breaking "),C(h)?(F(),K("div",{key:0,class:re([C(r).e("mask"),C(r).e(`mask-${C(o)}`)])},null,2)):xe("v-if",!0)],6))}});var Yqe=Jt(Qqe,[["__file","splitter.vue"]]);function Zqe(e){return e&&ar(e)?e:{start:!!e,end:!!e}}function VJ(e,t,n,r){return!!(e?.collapsible.end&&t>0||n?.collapsible.start&&r===0&&t>0)}const Xqe=tt({name:"ElSplitterBar"}),Jqe=tt({...Xqe,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=e,r=zt("splitter-bar"),o=J(()=>n.layout==="horizontal"),i=J(()=>o.value?{width:0}:{height:0}),a=J(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:o.value?"col-resize":"row-resize",touchAction:"none"})),s=J(()=>{const y=r.e("dragger");return{[`${y}-horizontal`]:o.value,[`${y}-vertical`]:!o.value,[`${y}-active`]:!!l.value}}),l=Q(null),u=y=>{n.resizable&&(l.value=[y.pageX,y.pageY],t("moveStart",n.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",c))},d=y=>{if(n.resizable&&y.touches.length===1){y.preventDefault();const m=y.touches[0];l.value=[m.pageX,m.pageY],t("moveStart",n.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",f)}},c=y=>{const{pageX:m,pageY:b}=y,w=m-l.value[0],A=b-l.value[1],S=o.value?w:A;t("moving",n.index,S)},f=y=>{if(y.touches.length===1){y.preventDefault();const m=y.touches[0],b=m.pageX-l.value[0],w=m.pageY-l.value[1],A=o.value?b:w;t("moving",n.index,A)}},p=()=>{l.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",c),t("moveEnd",n.index)},v=()=>{l.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",f),t("moveEnd",n.index)},h=J(()=>o.value?Gf:Y_),g=J(()=>o.value?ka:Kc);return(y,m)=>(F(),K("div",{class:re([C(r).b()]),style:Xt(C(i))},[e.startCollapsible?(F(),K("div",{key:0,class:re([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-start`)]),onClick:b=>t("collapse",e.index,"start")},[ft(y.$slots,"start-collapsible",{},()=>[(F(),mt(hr(C(h)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0),x("div",{class:re([C(r).e("dragger"),C(s),e.resizable?"":C(r).e("disable"),C(r).is("lazy",e.resizable&&e.lazy)]),style:Xt(C(a)),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(F(),K("div",{key:1,class:re([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-end`)]),onClick:b=>t("collapse",e.index,"end")},[ft(y.$slots,"end-collapsible",{},()=>[(F(),mt(hr(C(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0)],6))}});var eGe=Jt(Jqe,[["__file","split-bar.vue"]]);const tGe=Kt({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),Uye="ElSplitterPanel",nGe=tt({name:Uye}),rGe=tt({...nGe,props:tGe,emits:["update:size"],setup(e,{emit:t}){const n=e,r=zt("splitter-panel"),o=cn(Fye);o||Xi(Uye,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:a,lazy:s,containerSize:l,pxSizes:u}=_a(o),{registerPanel:d,unregisterPanel:c,onCollapse:f,onMoveEnd:p,onMoveStart:v,onMoving:h}=o,g=Q(),y=vr(),m=y.uid,b=Q(0),w=J(()=>i.value[b.value]),A=U=>{b.value=U},S=J(()=>{var U;return w.value&&(U=u.value[b.value])!=null?U:0}),k=J(()=>{var U;return w.value&&(U=u.value[b.value+1])!=null?U:0}),M=J(()=>w.value?i.value[b.value+1]:null),D=J(()=>{var U;return M.value?n.resizable&&((U=M.value)==null?void 0:U.resizable)&&(S.value!==0||!n.min)&&(k.value!==0||!M.value.min):!1}),P=J(()=>w.value?b.value!==i.value.length-1:!1),O=J(()=>VJ(w.value,S.value,M.value,k.value)),_=J(()=>VJ(M.value,k.value,w.value,S.value));function B(U){return JH(U)?ZH(U)*l.value||0:eW(U)?XH(U):U??0}let N=!1;St(()=>n.size,()=>{if(!N&&w.value){const U=B(n.size),j=B(n.max),H=B(n.min),G=Math.min(Math.max(U,H||0),j||U);G!==U&&t("update:size",G),w.value.size=G}}),St(()=>{var U;return(U=w.value)==null?void 0:U.size},U=>{U!==n.size&&(N=!0,t("update:size",U),Vt(()=>N=!1))}),St(()=>n.resizable,U=>{w.value&&(w.value.resizable=U)});const q=Ur({el:g.value,uid:m,getVnode:()=>y.vnode,setIndex:A,...n,collapsible:J(()=>Zqe(n.collapsible))});return d(q),Qr(()=>c(q)),(U,j)=>(F(),K(Pt,null,[x("div",pr({ref_key:"panelEl",ref:g,class:[C(r).b()],style:{flexBasis:`${C(S)}px`}},U.$attrs),[ft(U.$slots,"default")],16),C(P)?(F(),mt(eGe,{key:0,index:b.value,layout:C(a),lazy:C(s),resizable:C(D),"start-collapsible":C(O),"end-collapsible":C(_),onMoveStart:C(v),onMoving:C(h),onMoveEnd:C(p),onCollapse:C(f)},{"start-collapsible":nt(()=>[ft(U.$slots,"start-collapsible")]),"end-collapsible":nt(()=>[ft(U.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):xe("v-if",!0)],64))}});var $ye=Jt(rGe,[["__file","split-panel.vue"]]);const zye=er(Yqe,{SplitPanel:$ye}),_S=vi($ye),oGe=Kt({...Pye,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),iGe=Nye,aGe=tt({name:"ElDrawer",inheritAttrs:!1}),sGe=tt({...aGe,props:oGe,emits:iGe,setup(e,{expose:t}){const n=e,r=pa();Lf({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},J(()=>!!r.title));const o=Q(),i=Q(),a=zt("drawer"),{t:s}=Hr(),{afterEnter:l,afterLeave:u,beforeLeave:d,visible:c,rendered:f,titleId:p,bodyId:v,zIndex:h,onModalClick:g,onOpenAutoFocus:y,onCloseAutoFocus:m,onFocusoutPrevented:b,onCloseRequested:w,handleClose:A}=Rye(n,o),S=J(()=>n.direction==="rtl"||n.direction==="ltr"),k=J(()=>_i(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(M,D)=>(F(),mt(C(Bb),{to:M.appendTo,disabled:M.appendTo!=="body"?!1:!M.appendToBody},{default:nt(()=>[Ve(Wi,{name:C(a).b("fade"),onAfterEnter:C(l),onAfterLeave:C(u),onBeforeLeave:C(d),persisted:""},{default:nt(()=>[ln(Ve(C(QH),{mask:M.modal,"overlay-class":M.modalClass,"z-index":C(h),onClick:C(g)},{default:nt(()=>[Ve(C(Rb),{loop:"",trapped:C(c),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:C(y),onFocusAfterReleased:C(m),onFocusoutPrevented:C(b),onReleaseRequested:C(w)},{default:nt(()=>[Ve(C(zye),{class:re(C(a).b("splitter")),layout:C(S)?"horizontal":"vertical"},{default:nt(()=>[["rtl","btt"].includes(M.direction)?(F(),mt(C(_S),{key:0,onClick:C(g)},null,8,["onClick"])):xe("v-if",!0),Ve(C(_S),{resizable:M.resizable,size:C(k)},{default:nt(()=>[x("div",pr({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:C(p),"aria-describedby":C(v)},M.$attrs,{class:[C(a).b(),M.direction,C(c)&&"open"],role:"dialog",onClick:Qt(()=>{},["stop"])}),[x("span",{ref_key:"focusStartRef",ref:i,class:re(C(a).e("sr-focus")),tabindex:"-1"},null,2),M.withHeader?(F(),K("header",{key:0,class:re([C(a).e("header"),M.headerClass])},[M.$slots.title?ft(M.$slots,"title",{key:1},()=>[xe(" DEPRECATED SLOT ")]):ft(M.$slots,"header",{key:0,close:C(A),titleId:C(p),titleClass:C(a).e("title")},()=>[M.$slots.title?xe("v-if",!0):(F(),K("span",{key:0,id:C(p),role:"heading","aria-level":M.headerAriaLevel,class:re(C(a).e("title"))},We(M.title),11,["id","aria-level"]))]),M.showClose?(F(),K("button",{key:2,"aria-label":C(s)("el.drawer.close"),class:re(C(a).e("close-btn")),type:"button",onClick:C(A)},[Ve(C(Dn),{class:re(C(a).e("close"))},{default:nt(()=>[Ve(C(cu))]),_:1},8,["class"])],10,["aria-label","onClick"])):xe("v-if",!0)],2)):xe("v-if",!0),C(f)?(F(),K("div",{key:1,id:C(v),class:re([C(a).e("body"),M.bodyClass])},[ft(M.$slots,"default")],10,["id"])):xe("v-if",!0),M.$slots.footer?(F(),K("div",{key:2,class:re([C(a).e("footer"),M.footerClass])},[ft(M.$slots,"footer")],2)):xe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["resizable","size"]),["ltr","ttb"].includes(M.direction)?(F(),mt(C(_S),{key:1,onClick:C(g)},null,8,["onClick"])):xe("v-if",!0)]),_:3},8,["class","layout"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ar,C(c)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var lGe=Jt(sGe,[["__file","drawer.vue"]]);const uGe=er(lGe),cGe=tt({inheritAttrs:!1});function dGe(e,t,n,r,o,i){return ft(e.$slots,"default")}var fGe=Jt(cGe,[["render",dGe],["__file","collection.vue"]]);const pGe=tt({name:"ElCollectionItem",inheritAttrs:!1});function hGe(e,t,n,r,o,i){return ft(e.$slots,"default")}var gGe=Jt(pGe,[["render",hGe],["__file","collection-item.vue"]]);const jye="data-el-collection-item",Hye=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...fGe,name:t,setup(){const s=Q(),l=new Map;Sr(r,{itemMap:l,getItems:()=>{const d=C(s);if(!d)return[];const c=Array.from(d.querySelectorAll(`[${jye}]`));return[...l.values()].sort((p,v)=>c.indexOf(p.ref)-c.indexOf(v.ref))},collectionRef:s})}},a={...gGe,name:n,setup(s,{attrs:l}){const u=Q(),d=cn(r,void 0);Sr(o,{collectionItemRef:u}),jn(()=>{const c=C(u);c&&d.itemMap.set(c,{ref:c,...l})}),Qr(()=>{const c=C(u);d.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},vGe=Kt({style:{type:it([String,Array,Object])},currentTabId:{type:it(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:it(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:mGe,ElCollectionItem:yGe,COLLECTION_INJECTION_KEY:tW,COLLECTION_ITEM_INJECTION_KEY:bGe}=Hye("RovingFocusGroup"),nW=Symbol("elRovingFocusGroup"),Wye=Symbol("elRovingFocusGroupItem"),wGe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},AGe=(e,t)=>e,CGe=(e,t,n)=>{const r=AGe(e.code);return wGe[r]},xGe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),rW=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},qJ="currentTabIdChange",GJ="rovingFocusGroup.entryFocus",SGe={bubbles:!1,cancelable:!0},EGe=tt({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:vGe,emits:[qJ,"entryFocus"],setup(e,{emit:t}){var n;const r=Q((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=Q(!1),i=Q(!1),a=Q(),{getItems:s}=cn(tW,void 0),l=J(()=>[{outline:"none"},e.style]),u=h=>{t(qJ,h)},d=()=>{o.value=!0},c=Ni(h=>{var g;(g=e.onMousedown)==null||g.call(e,h)},()=>{i.value=!0}),f=Ni(h=>{var g;(g=e.onFocus)==null||g.call(e,h)},h=>{const g=!C(i),{target:y,currentTarget:m}=h;if(y===m&&g&&!C(o)){const b=new Event(GJ,SGe);if(m?.dispatchEvent(b),!b.defaultPrevented){const w=s().filter(D=>D.focusable),A=w.find(D=>D.active),S=w.find(D=>D.id===C(r)),M=[A,S,...w].filter(Boolean).map(D=>D.ref);rW(M)}}i.value=!1}),p=Ni(h=>{var g;(g=e.onBlur)==null||g.call(e,h)},()=>{o.value=!1}),v=(...h)=>{t("entryFocus",...h)};Sr(nW,{currentTabbedId:Cb(r),loop:ao(e,"loop"),tabIndex:J(()=>C(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:ao(e,"orientation"),dir:ao(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:p,onFocus:f,onMousedown:c}),St(()=>e.currentTabId,h=>{r.value=h??null}),Mo(a,GJ,v)}});function kGe(e,t,n,r,o,i){return ft(e.$slots,"default")}var TGe=Jt(EGe,[["render",kGe],["__file","roving-focus-group-impl.vue"]]);const _Ge=tt({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:mGe,ElRovingFocusGroupImpl:TGe}});function DGe(e,t,n,r,o,i){const a=sr("el-roving-focus-group-impl"),s=sr("el-focus-group-collection");return F(),mt(s,null,{default:nt(()=>[Ve(a,Sl(Bd(e.$attrs)),{default:nt(()=>[ft(e.$slots,"default")]),_:3},16)]),_:3})}var IGe=Jt(_Ge,[["render",DGe],["__file","roving-focus-group.vue"]]);const DS=Kt({trigger:Z1.trigger,triggerKeys:{type:it(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space,gn.down]},effect:{...oi.effect,default:"light"},type:{type:it(String)},placement:{type:it(String),default:"bottom"},popperOptions:{type:it(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:it([Number,String]),default:0},maxHeight:{type:it([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:l1e,default:"menu"},buttonProps:{type:it(Object)},teleported:oi.teleported,persistent:{type:Boolean,default:!0}}),Vye=Kt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:vo}}),OGe=Kt({onKeydown:{type:it(Function)}}),MGe=[gn.down,gn.pageDown,gn.home],qye=[gn.up,gn.pageUp,gn.end],PGe=[...MGe,...qye],{ElCollection:NGe,ElCollectionItem:RGe,COLLECTION_INJECTION_KEY:BGe,COLLECTION_ITEM_INJECTION_KEY:LGe}=Hye("Dropdown"),sD=Symbol("elDropdown"),Gye="elDropdown",{ButtonGroup:FGe}=Za,UGe=tt({name:"ElDropdown",components:{ElButton:Za,ElButtonGroup:FGe,ElScrollbar:Lc,ElDropdownCollection:NGe,ElTooltip:ps,ElRovingFocusGroup:IGe,ElOnlyChild:f1e,ElIcon:Dn,ArrowDown:Kc},props:DS,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vr(),r=zt("dropdown"),{t:o}=Hr(),i=Q(),a=Q(),s=Q(),l=Q(),u=Q(null),d=Q(null),c=Q(!1),f=J(()=>({maxHeight:_i(e.maxHeight)})),p=J(()=>[r.m(w.value)]),v=J(()=>Ka(e.trigger)),h=fs().value,g=J(()=>e.id||h);St([i,v],([U,j],[H])=>{var G,Z,$;(G=H?.$el)!=null&&G.removeEventListener&&H.$el.removeEventListener("pointerenter",S),(Z=U?.$el)!=null&&Z.removeEventListener&&U.$el.removeEventListener("pointerenter",S),($=U?.$el)!=null&&$.addEventListener&&j.includes("hover")&&U.$el.addEventListener("pointerenter",S)},{immediate:!0}),Qr(()=>{var U,j;(j=(U=i.value)==null?void 0:U.$el)!=null&&j.removeEventListener&&i.value.$el.removeEventListener("pointerenter",S)});function y(){m()}function m(){var U;(U=s.value)==null||U.onClose()}function b(){var U;(U=s.value)==null||U.onOpen()}const w=fa();function A(...U){t("command",...U)}function S(){var U,j;(j=(U=i.value)==null?void 0:U.$el)==null||j.focus({preventScroll:!0})}function k(){}function M(){const U=C(l);v.value.includes("hover")&&U?.focus({preventScroll:!0}),d.value=null}function D(U){d.value=U}function P(U){c.value||(U.preventDefault(),U.stopImmediatePropagation())}function O(){t("visible-change",!0)}function _(U){var j;U?.type==="keydown"&&((j=l.value)==null||j.focus())}function B(){t("visible-change",!1)}return Sr(sD,{contentRef:l,role:J(()=>e.role),triggerId:g,isUsingKeyboard:c,onItemEnter:k,onItemLeave:M}),Sr(Gye,{instance:n,dropdownSize:w,handleClick:y,commandHandler:A,trigger:ao(e,"trigger"),hideOnClick:ao(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:f,dropdownTriggerKls:p,dropdownSize:w,triggerId:g,currentTabId:d,handleCurrentTabIdChange:D,handlerMainButtonClick:U=>{t("click",U)},handleEntryFocus:P,handleClose:m,handleOpen:b,handleBeforeShowTooltip:O,handleShowTooltip:_,handleBeforeHideTooltip:B,onFocusAfterTrapped:U=>{var j,H;U.preventDefault(),(H=(j=l.value)==null?void 0:j.focus)==null||H.call(j,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function $Ge(e,t,n,r,o,i){var a;const s=sr("el-dropdown-collection"),l=sr("el-roving-focus-group"),u=sr("el-scrollbar"),d=sr("el-only-child"),c=sr("el-tooltip"),f=sr("el-button"),p=sr("arrow-down"),v=sr("el-icon"),h=sr("el-button-group");return F(),K("div",{class:re([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Ve(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ll({content:nt(()=>[Ve(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:nt(()=>[Ve(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:nt(()=>[Ve(s,null,{default:nt(()=>[ft(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:nt(()=>[Ve(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:nt(()=>[ft(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(F(),mt(h,{key:0},{default:nt(()=>[Ve(f,pr({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:nt(()=>[ft(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Ve(f,pr({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:nt(()=>[Ve(v,{class:re(e.ns.e("icon"))},{default:nt(()=>[Ve(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):xe("v-if",!0)],2)}var zGe=Jt(UGe,[["render",$Ge],["__file","dropdown.vue"]]);const jGe=tt({components:{ElRovingFocusCollectionItem:yGe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:i}=cn(nW,void 0),{getItems:a}=cn(tW,void 0),s=fs(),l=Q(),u=Ni(p=>{t("mousedown",p)},p=>{e.focusable?o(C(s)):p.preventDefault()}),d=Ni(p=>{t("focus",p)},()=>{o(C(s))}),c=Ni(p=>{t("keydown",p)},p=>{const{code:v,shiftKey:h,target:g,currentTarget:y}=p;if(v===gn.tab&&h){i();return}if(g!==y)return;const m=CGe(p);if(m){p.preventDefault();let w=a().filter(A=>A.focusable).map(A=>A.ref);switch(m){case"last":{w.reverse();break}case"prev":case"next":{m==="prev"&&w.reverse();const A=w.indexOf(y);w=r.value?xGe(w,A+1):w.slice(A+1);break}}Vt(()=>{rW(w)})}}),f=J(()=>n.value===C(s));return Sr(Wye,{rovingFocusGroupItemRef:l,tabIndex:J(()=>C(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:c}),{id:s,handleKeydown:c,handleFocus:d,handleMousedown:u}}});function HGe(e,t,n,r,o,i){const a=sr("el-roving-focus-collection-item");return F(),mt(a,{id:e.id,focusable:e.focusable,active:e.active},{default:nt(()=>[ft(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var WGe=Jt(jGe,[["render",HGe],["__file","roving-focus-item.vue"]]);const VGe=tt({name:"DropdownItemImpl",components:{ElIcon:Dn},props:Vye,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=zt("dropdown"),{role:r}=cn(sD,void 0),{collectionItemRef:o}=cn(LGe,void 0),{collectionItemRef:i}=cn(bGe,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:d}=cn(Wye,void 0),c=aD(o,i,a),f=J(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),p=Ni(v=>{if([gn.enter,gn.numpadEnter,gn.space].includes(v.code))return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:c,dataset:{[jye]:""},role:f,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:d}}});function qGe(e,t,n,r,o,i){const a=sr("el-icon");return F(),K(Pt,null,[e.divided?(F(),K("li",{key:0,role:"separator",class:re(e.ns.bem("menu","item","divided"))},null,2)):xe("v-if",!0),x("li",pr({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:s=>e.$emit("clickimpl",s),onFocus:e.handleFocus,onKeydown:Qt(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:s=>e.$emit("pointermove",s),onPointerleave:s=>e.$emit("pointerleave",s)}),[e.icon?(F(),mt(a,{key:0},{default:nt(()=>[(F(),mt(hr(e.icon)))]),_:1})):xe("v-if",!0),ft(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var GGe=Jt(VGe,[["render",qGe],["__file","dropdown-item-impl.vue"]]);const Kye=()=>{const e=cn(Gye,{}),t=J(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},KGe=tt({name:"ElDropdownItem",components:{ElDropdownCollectionItem:RGe,ElRovingFocusItem:WGe,ElDropdownItemImpl:GGe},inheritAttrs:!1,props:Vye,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=Kye(),o=vr(),i=Q(null),a=J(()=>{var p,v;return(v=(p=C(i))==null?void 0:p.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=cn(sD,void 0),u=Ni(p=>(t("pointermove",p),p.defaultPrevented),gJ(p=>{if(e.disabled){l(p);return}const v=p.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(p),p.defaultPrevented||v?.focus({preventScroll:!0}))})),d=Ni(p=>(t("pointerleave",p),p.defaultPrevented),gJ(l)),c=Ni(p=>{if(!e.disabled)return t("click",p),p.type!=="keydown"&&p.defaultPrevented},p=>{var v,h,g;if(e.disabled){p.stopImmediatePropagation();return}(v=r?.hideOnClick)!=null&&v.value&&((h=r.handleClick)==null||h.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,o,p)}),f=J(()=>({...e,...n}));return{handleClick:c,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:f}}});function QGe(e,t,n,r,o,i){var a;const s=sr("el-dropdown-item-impl"),l=sr("el-roving-focus-item"),u=sr("el-dropdown-collection-item");return F(),mt(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:nt(()=>[Ve(l,{focusable:!e.disabled},{default:nt(()=>[Ve(s,pr(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:nt(()=>[ft(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Qye=Jt(KGe,[["render",QGe],["__file","dropdown-item.vue"]]);const YGe=tt({name:"ElDropdownMenu",props:OGe,setup(e){const t=zt("dropdown"),{_elDropdownSize:n}=Kye(),r=n.value,{focusTrapRef:o,onKeydown:i}=cn(SH,void 0),{contentRef:a,role:s,triggerId:l}=cn(sD,void 0),{collectionRef:u,getItems:d}=cn(BGe,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:f,tabIndex:p,onBlur:v,onFocus:h,onMousedown:g}=cn(nW,void 0),{collectionRef:y}=cn(tW,void 0),m=J(()=>[t.b("menu"),t.bm("menu",r?.value)]),b=aD(a,u,o,c,y),w=Ni(S=>{var k;(k=e.onKeydown)==null||k.call(e,S)},S=>{const{currentTarget:k,code:M,target:D}=S;if(k.contains(D),gn.tab===M&&S.stopImmediatePropagation(),S.preventDefault(),D!==C(a)||!PGe.includes(M))return;const O=d().filter(_=>!_.disabled).map(_=>_.ref);qye.includes(M)&&O.reverse(),rW(O)});return{size:r,rovingFocusGroupRootStyle:f,tabIndex:p,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:h,onMousedown:g}}});function ZGe(e,t,n,r,o,i){return F(),K("ul",{ref:e.dropdownListWrapperRef,class:re(e.dropdownKls),style:Xt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:Qt(e.handleKeydown,["self"]),onMousedown:Qt(e.onMousedown,["self"])},[ft(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Yye=Jt(YGe,[["render",ZGe],["__file","dropdown-menu.vue"]]);const XGe=er(zGe,{DropdownItem:Qye,DropdownMenu:Yye}),JGe=vi(Qye),eKe=vi(Yye),tKe=tt({name:"ImgEmpty"}),nKe=tt({...tKe,setup(e){const t=zt("empty"),n=fs();return(r,o)=>(F(),K("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[x("defs",null,[x("linearGradient",{id:`linearGradient-1-${C(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),x("linearGradient",{id:`linearGradient-2-${C(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),x("rect",{id:`path-3-${C(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),x("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[x("g",{transform:"translate(-1268.000000, -535.000000)"},[x("g",{transform:"translate(1268.000000, 535.000000)"},[x("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${C(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),x("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),x("rect",{fill:`url(#linearGradient-1-${C(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),x("rect",{fill:`url(#linearGradient-2-${C(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),x("g",{transform:"translate(53.000000, 45.000000)"},[x("use",{fill:`var(${C(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${C(n)}`},null,8,["fill","xlink:href"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${C(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var rKe=Jt(nKe,[["__file","img-empty.vue"]]);const oKe=Kt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),iKe=tt({name:"ElEmpty"}),aKe=tt({...iKe,props:oKe,setup(e){const t=e,{t:n}=Hr(),r=zt("empty"),o=J(()=>t.description||n("el.table.emptyText")),i=J(()=>({width:_i(t.imageSize)}));return(a,s)=>(F(),K("div",{class:re(C(r).b())},[x("div",{class:re(C(r).e("image")),style:Xt(C(i))},[a.image?(F(),K("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):ft(a.$slots,"image",{key:1},()=>[Ve(rKe)])],6),x("div",{class:re(C(r).e("description"))},[a.$slots.description?ft(a.$slots,"description",{key:0}):(F(),K("p",{key:1},We(C(o)),1))],2),a.$slots.default?(F(),K("div",{key:0,class:re(C(r).e("bottom"))},[ft(a.$slots,"default")],2)):xe("v-if",!0)],2))}});var sKe=Jt(aKe,[["__file","empty.vue"]]);const Zye=er(sKe),lKe=Kt({size:{type:String,values:Qd},disabled:Boolean}),uKe=Kt({...lKe,model:Object,rules:{type:it(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:it([Object,Boolean]),default:!0}}),cKe={validate:(e,t,n)=>(qt(e)||In(e))&&Co(t)&&In(n)};function dKe(){const e=Q([]),t=J(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function r(i,a){if(i&&a){const s=n(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const bx=(e,t)=>{const n=Ka(t).map(r=>qt(r)?r.join("."):r);return n.length>0?e.filter(r=>r.propString&&n.includes(r.propString)):e},fKe="ElForm",pKe=tt({name:fKe}),hKe=tt({...pKe,props:uKe,emits:cKe,setup(e,{expose:t,emit:n}){const r=e,o=Q(),i=Ur([]),a=fa(),s=zt("form"),l=J(()=>{const{labelPosition:w,inline:A}=r;return[s.b(),s.m(a.value||"default"),{[s.m(`label-${w}`)]:w,[s.m("inline")]:A}]}),u=w=>bx(i,[w])[0],d=w=>{i.push(w)},c=w=>{w.prop&&i.splice(i.indexOf(w),1)},f=(w=[])=>{r.model&&bx(i,w).forEach(A=>A.resetField())},p=(w=[])=>{bx(i,w).forEach(A=>A.clearValidate())},v=J(()=>!!r.model),h=w=>{if(i.length===0)return[];const A=bx(i,w);return A.length?A:[]},g=async w=>m(void 0,w),y=async(w=[])=>{if(!v.value)return!1;const A=h(w);if(A.length===0)return!0;let S={};for(const k of A)try{await k.validate(""),k.validateState==="error"&&!k.error&&k.resetField()}catch(M){S={...S,...M}}return Object.keys(S).length===0?!0:Promise.reject(S)},m=async(w=[],A)=>{let S=!1;const k=!Pn(A);try{return S=await y(w),S===!0&&await A?.(S),S}catch(M){if(M instanceof Error)throw M;const D=M;if(r.scrollToError&&o.value){const P=o.value.querySelector(`.${s.b()}-item.is-error`);P?.scrollIntoView(r.scrollIntoViewOptions)}return!S&&await A?.(!1,D),k&&Promise.reject(D)}},b=w=>{var A;const S=u(w);S&&((A=S.$el)==null||A.scrollIntoView(r.scrollIntoViewOptions))};return St(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(w=>void 0)},{deep:!0,flush:"post"}),Sr(rm,Ur({..._a(r),emit:n,resetFields:f,clearValidate:p,validateField:m,getField:u,addField:d,removeField:c,...dKe()})),t({validate:g,validateField:m,resetFields:f,clearValidate:p,scrollToField:b,getField:u,fields:i}),(w,A)=>(F(),K("form",{ref_key:"formRef",ref:o,class:re(C(l))},[ft(w.$slots,"default")],2))}});var gKe=Jt(hKe,[["__file","form.vue"]]);function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(this,arguments)}function vKe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Y3(e,t)}function TL(e){return TL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},TL(e)}function Y3(e,t){return Y3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Y3(e,t)}function mKe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function IS(e,t,n){return mKe()?IS=Reflect.construct.bind():IS=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&Y3(u,a.prototype),u},IS.apply(null,arguments)}function yKe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _L(e){var t=typeof Map=="function"?new Map:void 0;return _L=function(r){if(r===null||!yKe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return IS(r,arguments,TL(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Y3(o,r)},_L(e)}var bKe=/%[sdj%]/g,wKe=function(){};function DL(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ou(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(bKe,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function AKe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function es(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||AKe(t)&&typeof e=="string"&&!e)}function CKe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function KJ(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function xKe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var QJ=(function(e){vKe(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t})(_L(Error));function SKe(e,t,n,r,o){if(t.first){var i=new Promise(function(f,p){var v=function(y){return r(y),y.length?p(new QJ(y,DL(y))):f(o)},h=xKe(e);KJ(h,n,v)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],c=new Promise(function(f,p){var v=function(g){if(d.push.apply(d,g),u++,u===l)return r(d),d.length?p(new QJ(d,DL(d))):f(o)};s.length||(r(d),f(o)),s.forEach(function(h){var g=e[h];a.indexOf(h)!==-1?KJ(g,n,v):CKe(g,n,v)})});return c.catch(function(f){return f}),c}function EKe(e){return!!(e&&e.message!==void 0)}function kKe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function YJ(e,t){return function(n){var r;return e.fullFields?r=kKe(t,e.fullFields):r=t[n.field||e.fullField],EKe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function ZJ(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Rg({},e[n],r):e[n]=r}}return e}var Xye=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||es(n,a||t.type))&&o.push(ou(i.messages.required,t.fullField))},TKe=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(ou(i.messages.whitespace,t.fullField))},wx,_Ke=(function(){if(wx)return wx;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
- (?:
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(b){return b&&b.exact?a:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+o+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+d+"(?:localhost|"+c+"|"+f+"|"+p+v+h+")"+g+y;return wx=new RegExp("(?:^"+m+"$)","i"),wx}),XJ={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},v4={integer:function(t){return v4.number(t)&&parseInt(t,10)===t},float:function(t){return v4.number(t)&&!v4.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!v4.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(XJ.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_Ke())},hex:function(t){return typeof t=="string"&&!!t.match(XJ.hex)}},DKe=function(t,n,r,o,i){if(t.required&&n===void 0){Xye(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?v4[s](n)||o.push(ou(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ou(i.messages.types[s],t.fullField,t.type))},IKe=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,c=null,f=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(f?c="number":p?c="string":v&&(c="array"),!c)return!1;v&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(ou(i.messages[c].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(ou(i.messages[c].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(ou(i.messages[c].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(ou(i.messages[c].range,t.fullField,t.min,t.max))},Mm="enum",OKe=function(t,n,r,o,i){t[Mm]=Array.isArray(t[Mm])?t[Mm]:[],t[Mm].indexOf(n)===-1&&o.push(ou(i.messages[Mm],t.fullField,t[Mm].join(", ")))},MKe=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ou(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(ou(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$o={required:Xye,whitespace:TKe,type:DKe,range:IKe,enum:OKe,pattern:MKe},PKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n,"string")&&!t.required)return r();$o.required(t,n,o,a,i,"string"),es(n,"string")||($o.type(t,n,o,a,i),$o.range(t,n,o,a,i),$o.pattern(t,n,o,a,i),t.whitespace===!0&&$o.whitespace(t,n,o,a,i))}r(a)},NKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&$o.type(t,n,o,a,i)}r(a)},RKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&($o.type(t,n,o,a,i),$o.range(t,n,o,a,i))}r(a)},BKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&$o.type(t,n,o,a,i)}r(a)},LKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),es(n)||$o.type(t,n,o,a,i)}r(a)},FKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&($o.type(t,n,o,a,i),$o.range(t,n,o,a,i))}r(a)},UKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&($o.type(t,n,o,a,i),$o.range(t,n,o,a,i))}r(a)},$Ke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();$o.required(t,n,o,a,i,"array"),n!=null&&($o.type(t,n,o,a,i),$o.range(t,n,o,a,i))}r(a)},zKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&$o.type(t,n,o,a,i)}r(a)},jKe="enum",HKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i),n!==void 0&&$o[jKe](t,n,o,a,i)}r(a)},WKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n,"string")&&!t.required)return r();$o.required(t,n,o,a,i),es(n,"string")||$o.pattern(t,n,o,a,i)}r(a)},VKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n,"date")&&!t.required)return r();if($o.required(t,n,o,a,i),!es(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),$o.type(t,l,o,a,i),l&&$o.range(t,l.getTime(),o,a,i)}}r(a)},qKe=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;$o.required(t,n,o,a,i,s),r(a)},yI=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(es(n,a)&&!t.required)return r();$o.required(t,n,o,s,i,a),es(n,a)||$o.type(t,n,o,s,i)}r(s)},GKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(es(n)&&!t.required)return r();$o.required(t,n,o,a,i)}r(a)},Y4={string:PKe,method:NKe,number:RKe,boolean:BKe,regexp:LKe,integer:FKe,float:UKe,array:$Ke,object:zKe,enum:HKe,pattern:WKe,date:VKe,url:yI,hex:yI,email:yI,required:qKe,any:GKe};function IL(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var OL=IL(),NC=(function(){function e(n){this.rules=null,this._messages=OL,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=ZJ(IL(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(h){var g=[],y={};function m(w){if(Array.isArray(w)){var A;g=(A=g).concat.apply(A,w)}else g.push(w)}for(var b=0;b<h.length;b++)m(h[b]);g.length?(y=DL(g),u(g,y)):u(null,s)}if(l.messages){var c=this.messages();c===OL&&(c=IL()),ZJ(c,l.messages),l.messages=c}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(h){var g=a.rules[h],y=s[h];g.forEach(function(m){var b=m;typeof b.transform=="function"&&(s===r&&(s=Rg({},s)),y=s[h]=b.transform(y)),typeof b=="function"?b={validator:b}:b=Rg({},b),b.validator=a.getValidationMethod(b),b.validator&&(b.field=h,b.fullField=b.fullField||h,b.type=a.getType(b),f[h]=f[h]||[],f[h].push({rule:b,value:y,source:s,field:h}))})});var v={};return SKe(f,l,function(h,g){var y=h.rule,m=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");m=m&&(y.required||!y.required&&h.value),y.field=h.field;function b(S,k){return Rg({},k,{fullField:y.fullField+"."+S,fullFields:y.fullFields?[].concat(y.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var k=Array.isArray(S)?S:[S];!l.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&y.message!==void 0&&(k=[].concat(y.message));var M=k.map(YJ(y,s));if(l.first&&M.length)return v[y.field]=1,g(M);if(!m)g(M);else{if(y.required&&!h.value)return y.message!==void 0?M=[].concat(y.message).map(YJ(y,s)):l.error&&(M=[l.error(y,ou(l.messages.required,y.field))]),g(M);var D={};y.defaultField&&Object.keys(h.value).map(function(_){D[_]=y.defaultField}),D=Rg({},D,h.rule.fields);var P={};Object.keys(D).forEach(function(_){var B=D[_],N=Array.isArray(B)?B:[B];P[_]=N.map(b.bind(null,_))});var O=new e(P);O.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),O.validate(h.value,h.rule.options||l,function(_){var B=[];M&&M.length&&B.push.apply(B,M),_&&_.length&&B.push.apply(B,_),g(B.length?B:null)})}}var A;if(y.asyncValidator)A=y.asyncValidator(y,h.value,w,h.source,l);else if(y.validator){try{A=y.validator(y,h.value,w,h.source,l)}catch(S){console.error?.(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}A===!0?w():A===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):A instanceof Array?w(A):A instanceof Error&&w(A.message)}A&&A.then&&A.then(function(){return w()},function(S){return w(S)})},function(h){d(h)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Y4.hasOwnProperty(r.type))throw new Error(ou("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Y4.required:Y4[this.getType(r)]||void 0},e})();NC.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Y4[t]=n};NC.warning=wKe;NC.messages=OL;NC.validators=Y4;const KKe=["","error","validating","success"],QKe=Kt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:it([String,Array])},required:{type:Boolean,default:void 0},rules:{type:it([Object,Array])},error:String,validateStatus:{type:String,values:KKe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Qd}}),JJ="ElLabelWrap";var YKe=tt({name:JJ,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=cn(rm,void 0),r=cn(Fd);r||Xi(JJ,"usage: <el-form-item><label-wrap /></el-form-item>");const o=zt("form"),i=Q(),a=Q(0),s=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const c=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(d="update")=>{Vt(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=s():d==="remove"&&n?.deregisterLabelWidth(a.value))})},u=()=>l("update");return jn(()=>{u()}),Qr(()=>{l("remove")}),Wc(()=>u()),St(a,(d,c)=>{e.updateAll&&n?.registerLabelWidth(d,c)}),li(J(()=>{var d,c;return(c=(d=i.value)==null?void 0:d.firstElementChild)!=null?c:null}),u),()=>{var d,c;if(!t)return null;const{isAutoWidth:f}=e;if(f){const p=n?.autoLabelWidth,v=r?.hasLabel,h={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-a.value),m=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(h[m]=`${g}px`)}return Ve("div",{ref:i,class:[o.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return Ve(Pt,{ref:i},[(c=t.default)==null?void 0:c.call(t)])}}});const ZKe=tt({name:"ElFormItem"}),XKe=tt({...ZKe,props:QKe,setup(e,{expose:t}){const n=e,r=pa(),o=cn(rm,void 0),i=cn(Fd,void 0),a=fa(void 0,{formItem:!1}),s=zt("form-item"),l=fs().value,u=Q([]),d=Q(""),c=_Re(d,100),f=Q(""),p=Q();let v,h=!1;const g=J(()=>n.labelPosition||o?.labelPosition),y=J(()=>{if(g.value==="top")return{};const ue=_i(n.labelWidth||o?.labelWidth||"");return ue?{width:ue}:{}}),m=J(()=>{if(g.value==="top"||o?.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const ue=_i(n.labelWidth||o?.labelWidth||"");return!n.label&&!r.label?{marginLeft:ue}:{}}),b=J(()=>[s.b(),s.m(a.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",q.value||n.required),s.is("no-asterisk",o?.hideRequiredAsterisk),o?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o?.statusIcon,[s.m(`label-${g.value}`)]:g.value}]),w=J(()=>Co(n.inlineMessage)?n.inlineMessage:o?.inlineMessage||!1),A=J(()=>[s.e("error"),{[s.em("error","inline")]:w.value}]),S=J(()=>n.prop?qt(n.prop)?n.prop.join("."):n.prop:""),k=J(()=>!!(n.label||r.label)),M=J(()=>{var ue;return(ue=n.for)!=null?ue:u.value.length===1?u.value[0]:void 0}),D=J(()=>!M.value&&k.value),P=!!i,O=J(()=>{const ue=o?.model;if(!(!ue||!n.prop))return G4(ue,n.prop).value}),_=J(()=>{const{required:ue}=n,ve=[];n.rules&&ve.push(...Ka(n.rules));const Me=o?.rules;if(Me&&n.prop){const we=G4(Me,n.prop).value;we&&ve.push(...Ka(we))}if(ue!==void 0){const we=ve.map((he,Te)=>[he,Te]).filter(([he])=>Object.keys(he).includes("required"));if(we.length>0)for(const[he,Te]of we)he.required!==ue&&(ve[Te]={...he,required:ue});else ve.push({required:ue})}return ve}),B=J(()=>_.value.length>0),N=ue=>_.value.filter(Me=>!Me.trigger||!ue?!0:qt(Me.trigger)?Me.trigger.includes(ue):Me.trigger===ue).map(({trigger:Me,...we})=>we),q=J(()=>_.value.some(ue=>ue.required)),U=J(()=>{var ue;return c.value==="error"&&n.showMessage&&((ue=o?.showMessage)!=null?ue:!0)}),j=J(()=>`${n.label||""}${o?.labelSuffix||""}`),H=ue=>{d.value=ue},G=ue=>{var ve,Me;const{errors:we,fields:he}=ue;(!we||!he)&&console.error(ue),H("error"),f.value=we?(Me=(ve=we?.[0])==null?void 0:ve.message)!=null?Me:`${n.prop} is required`:"",o?.emit("validate",n.prop,!1,f.value)},Z=()=>{H("success"),o?.emit("validate",n.prop,!0,"")},$=async ue=>{const ve=S.value;return new NC({[ve]:ue}).validate({[ve]:O.value},{firstFields:!0}).then(()=>(Z(),!0)).catch(we=>(G(we),Promise.reject(we)))},L=async(ue,ve)=>{if(h||!n.prop)return!1;const Me=Pn(ve);if(!B.value)return ve?.(!1),!1;const we=N(ue);return we.length===0?(ve?.(!0),!0):(H("validating"),$(we).then(()=>(ve?.(!0),!0)).catch(he=>{const{fields:Te}=he;return ve?.(!1,Te),Me?!1:Promise.reject(Te)}))},W=()=>{H(""),f.value="",h=!1},ie=async()=>{const ue=o?.model;if(!ue||!n.prop)return;const ve=G4(ue,n.prop);h=!0,ve.value=xX(v),await Vt(),W(),h=!1},ee=ue=>{u.value.includes(ue)||u.value.push(ue)},te=ue=>{u.value=u.value.filter(ve=>ve!==ue)};St(()=>n.error,ue=>{f.value=ue||"",H(ue?"error":"")},{immediate:!0}),St(()=>n.validateStatus,ue=>H(ue||""));const X=Ur({..._a(n),$el:p,size:a,validateMessage:f,validateState:d,labelId:l,inputIds:u,isGroup:D,hasLabel:k,fieldValue:O,addInputId:ee,removeInputId:te,resetField:ie,clearValidate:W,validate:L,propString:S});return Sr(Fd,X),jn(()=>{n.prop&&(o?.addField(X),v=xX(O.value))}),Qr(()=>{o?.removeField(X)}),t({size:a,validateMessage:f,validateState:d,validate:L,clearValidate:W,resetField:ie}),(ue,ve)=>{var Me;return F(),K("div",{ref_key:"formItemRef",ref:p,class:re(C(b)),role:C(D)?"group":void 0,"aria-labelledby":C(D)?C(l):void 0},[Ve(C(YKe),{"is-auto-width":C(y).width==="auto","update-all":((Me=C(o))==null?void 0:Me.labelWidth)==="auto"},{default:nt(()=>[C(k)?(F(),mt(hr(C(M)?"label":"div"),{key:0,id:C(l),for:C(M),class:re(C(s).e("label")),style:Xt(C(y))},{default:nt(()=>[ft(ue.$slots,"label",{label:C(j)},()=>[xn(We(C(j)),1)])]),_:3},8,["id","for","class","style"])):xe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),x("div",{class:re(C(s).e("content")),style:Xt(C(m))},[ft(ue.$slots,"default"),Ve(Hge,{name:`${C(s).namespace.value}-zoom-in-top`},{default:nt(()=>[C(U)?ft(ue.$slots,"error",{key:0,error:f.value},()=>[x("div",{class:re(C(A))},We(f.value),3)]):xe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Jye=Jt(XKe,[["__file","form-item.vue"]]);const JKe=er(gKe,{FormItem:Jye}),eQe=vi(Jye),tQe=Kt({urlList:{type:it(Array),default:()=>fi([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:it(String)}}),nQe={close:()=>!0,switch:e=>Ln(e),rotate:e=>Ln(e)},rQe=tt({name:"ElImageViewer"}),oQe=tt({...rQe,props:tQe,emits:nQe,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:Id(KBe)},ORIGINAL:{name:"original",icon:Id(gLe)}};let a,s="";const{t:l}=Hr(),u=zt("image-viewer"),{nextZIndex:d}=Mb(),c=Q(),f=Q([]),p=D0e(),v=Q(!0),h=Q(o.initialIndex),g=Uo(i.CONTAIN),y=Q({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=Q((r=o.zIndex)!=null?r:d()),b=J(()=>{const{urlList:te}=o;return te.length<=1}),w=J(()=>h.value===0),A=J(()=>h.value===o.urlList.length-1),S=J(()=>o.urlList[h.value]),k=J(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&w.value)]),M=J(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&A.value)]),D=J(()=>{const{scale:te,deg:X,offsetX:ue,offsetY:ve,enableTransition:Me}=y.value;let we=ue/te,he=ve/te;const Te=X*Math.PI/180,Y=Math.cos(Te),be=Math.sin(Te);we=we*Y+he*be,he=he*Y-ue/te*be;const De={transform:`scale(${te}) rotate(${X}deg) translate(${we}px, ${he}px)`,transition:Me?"transform .3s":""};return g.value.name===i.CONTAIN.name&&(De.maxWidth=De.maxHeight="100%"),De}),P=J(()=>`${h.value+1} / ${o.urlList.length}`);function O(){B(),a?.(),document.body.style.overflow=s,n("close")}function _(){const te=qg(ue=>{switch(ue.code){case gn.esc:o.closeOnPressEscape&&O();break;case gn.space:H();break;case gn.left:Z();break;case gn.up:L("zoomIn");break;case gn.right:$();break;case gn.down:L("zoomOut");break}}),X=qg(ue=>{const ve=ue.deltaY||ue.deltaX;L(ve<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Mo(document,"keydown",te),Mo(document,"wheel",X)})}function B(){p.stop()}function N(){v.value=!1}function q(te){v.value=!1,te.target.alt=l("el.image.error")}function U(te){if(v.value||te.button!==0||!c.value)return;y.value.enableTransition=!1;const{offsetX:X,offsetY:ue}=y.value,ve=te.pageX,Me=te.pageY,we=qg(Te=>{y.value={...y.value,offsetX:X+Te.pageX-ve,offsetY:ue+Te.pageY-Me}}),he=Mo(document,"mousemove",we);Mo(document,"mouseup",()=>{he()}),te.preventDefault()}function j(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(v.value)return;const te=ky(i),X=Object.values(i),ue=g.value.name,Me=(X.findIndex(we=>we.name===ue)+1)%te.length;g.value=i[te[Me]],j()}function G(te){const X=o.urlList.length;h.value=(te+X)%X}function Z(){w.value&&!o.infinite||G(h.value-1)}function $(){A.value&&!o.infinite||G(h.value+1)}function L(te,X={}){if(v.value)return;const{minScale:ue,maxScale:ve}=o,{zoomRate:Me,rotateDeg:we,enableTransition:he}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...X};switch(te){case"zoomOut":y.value.scale>ue&&(y.value.scale=Number.parseFloat((y.value.scale/Me).toFixed(3)));break;case"zoomIn":y.value.scale<ve&&(y.value.scale=Number.parseFloat((y.value.scale*Me).toFixed(3)));break;case"clockwise":y.value.deg+=we,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=we,n("rotate",y.value.deg);break}y.value.enableTransition=he}function W(te){var X;((X=te.detail)==null?void 0:X.focusReason)==="pointer"&&te.preventDefault()}function ie(){o.closeOnPressEscape&&O()}function ee(te){if(te.ctrlKey){if(te.deltaY<0)return te.preventDefault(),!1;if(te.deltaY>0)return te.preventDefault(),!1}}return St(S,()=>{Vt(()=>{const te=f.value[0];te?.complete||(v.value=!0)})}),St(h,te=>{j(),n("switch",te)}),jn(()=>{_(),a=Mo("wheel",ee,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:G}),(te,X)=>(F(),mt(C(Bb),{to:"body",disabled:!te.teleported},{default:nt(()=>[Ve(Wi,{name:"viewer-fade",appear:""},{default:nt(()=>[x("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:re(C(u).e("wrapper")),style:Xt({zIndex:m.value})},[Ve(C(Rb),{loop:"",trapped:"","focus-trap-el":c.value,"focus-start-el":"container",onFocusoutPrevented:W,onReleaseRequested:ie},{default:nt(()=>[x("div",{class:re(C(u).e("mask")),onClick:Qt(ue=>te.hideOnClickModal&&O(),["self"])},null,10,["onClick"]),xe(" CLOSE "),x("span",{class:re([C(u).e("btn"),C(u).e("close")]),onClick:O},[Ve(C(Dn),null,{default:nt(()=>[Ve(C(cu))]),_:1})],2),xe(" ARROW "),C(b)?xe("v-if",!0):(F(),K(Pt,{key:0},[x("span",{class:re(C(k)),onClick:Z},[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1})],2),x("span",{class:re(C(M)),onClick:$},[Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})],2)],64)),te.$slots.progress||te.showProgress?(F(),K("div",{key:1,class:re([C(u).e("btn"),C(u).e("progress")])},[ft(te.$slots,"progress",{activeIndex:h.value,total:te.urlList.length},()=>[xn(We(C(P)),1)])],2)):xe("v-if",!0),xe(" ACTIONS "),x("div",{class:re([C(u).e("btn"),C(u).e("actions")])},[x("div",{class:re(C(u).e("actions__inner"))},[ft(te.$slots,"toolbar",{actions:L,prev:Z,next:$,reset:H,activeIndex:h.value,setActiveItem:G},()=>[Ve(C(Dn),{onClick:ue=>L("zoomOut")},{default:nt(()=>[Ve(C(ILe))]),_:1},8,["onClick"]),Ve(C(Dn),{onClick:ue=>L("zoomIn")},{default:nt(()=>[Ve(C(e1e))]),_:1},8,["onClick"]),x("i",{class:re(C(u).e("actions__divider"))},null,2),Ve(C(Dn),{onClick:H},{default:nt(()=>[(F(),mt(hr(C(g).icon)))]),_:1}),x("i",{class:re(C(u).e("actions__divider"))},null,2),Ve(C(Dn),{onClick:ue=>L("anticlockwise")},{default:nt(()=>[Ve(C(dLe))]),_:1},8,["onClick"]),Ve(C(Dn),{onClick:ue=>L("clockwise")},{default:nt(()=>[Ve(C(pLe))]),_:1},8,["onClick"])])],2)],2),xe(" CANVAS "),x("div",{class:re(C(u).e("canvas"))},[(F(!0),K(Pt,null,an(te.urlList,(ue,ve)=>(F(),K(Pt,{key:ve},[ve===h.value?(F(),K("img",{key:0,ref_for:!0,ref:Me=>f.value[ve]=Me,src:ue,style:Xt(C(D)),class:re(C(u).e("img")),crossorigin:te.crossorigin,onLoad:N,onError:q,onMousedown:U},null,46,["src","crossorigin"])):xe("v-if",!0)],64))),128))],2),ft(te.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var iQe=Jt(oQe,[["__file","image-viewer.vue"]]);const ebe=er(iQe),aQe=Kt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:it([String,Object])},previewSrcList:{type:it(Array),default:()=>fi([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:it(String)}}),sQe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ln(e),close:()=>!0,show:()=>!0},lQe=tt({name:"ElImage",inheritAttrs:!1}),uQe=tt({...lQe,props:aQe,emits:sQe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=zt("image"),a=fp(),s=J(()=>z3(Object.entries(a).filter(([U])=>/^(data-|on[A-Z])/i.test(U)||["id","style"].includes(U)))),l=X_({excludeListeners:!0,excludeKeys:J(()=>Object.keys(s.value))}),u=Q(),d=Q(!1),c=Q(!0),f=Q(!1),p=Q(),v=Q(),h=Kr&&"loading"in HTMLImageElement.prototype;let g;const y=J(()=>[i.e("inner"),b.value&&i.e("preview"),c.value&&i.is("loading")]),m=J(()=>{const{fit:U}=r;return Kr&&U?{objectFit:U}:{}}),b=J(()=>{const{previewSrcList:U}=r;return qt(U)&&U.length>0}),w=J(()=>{const{previewSrcList:U,initialIndex:j}=r;let H=j;return j>U.length-1&&(H=0),H}),A=J(()=>r.loading==="eager"?!1:!h&&r.loading==="lazy"||r.lazy),S=()=>{Kr&&(c.value=!0,d.value=!1,u.value=r.src)};function k(U){c.value=!1,d.value=!1,n("load",U)}function M(U){c.value=!1,d.value=!0,n("error",U)}function D(U){U&&(S(),_())}const P=Ime(D,200,!0);async function O(){var U;if(!Kr)return;await Vt();const{scrollContainer:j}=r;if(al(j))v.value=j;else if(In(j)&&j!=="")v.value=(U=document.querySelector(j))!=null?U:void 0;else if(p.value){const G=gH(p.value);v.value=kC(G)?void 0:G}const{stop:H}=FRe(p,([G])=>{P(G.isIntersecting)},{root:v});g=H}function _(){!Kr||!P||(g?.(),v.value=void 0,g=void 0)}function B(){b.value&&(f.value=!0,n("show"))}function N(){f.value=!1,n("close")}function q(U){n("switch",U)}return St(()=>r.src,()=>{A.value?(c.value=!0,d.value=!1,_(),O()):S()}),jn(()=>{A.value?O():S()}),t({showPreview:B}),(U,j)=>(F(),K("div",pr({ref_key:"container",ref:p},C(s),{class:[C(i).b(),U.$attrs.class]}),[d.value?ft(U.$slots,"error",{key:0},()=>[x("div",{class:re(C(i).e("error"))},We(C(o)("el.image.error")),3)]):(F(),K(Pt,{key:1},[u.value!==void 0?(F(),K("img",pr({key:0},C(l),{src:u.value,loading:U.loading,style:C(m),class:C(y),crossorigin:U.crossorigin,onClick:B,onLoad:k,onError:M}),null,16,["src","loading","crossorigin"])):xe("v-if",!0),c.value?(F(),K("div",{key:1,class:re(C(i).e("wrapper"))},[ft(U.$slots,"placeholder",{},()=>[x("div",{class:re(C(i).e("placeholder"))},null,2)])],2)):xe("v-if",!0)],64)),C(b)?(F(),K(Pt,{key:2},[f.value?(F(),mt(C(ebe),{key:0,"z-index":U.zIndex,"initial-index":C(w),infinite:U.infinite,"zoom-rate":U.zoomRate,"min-scale":U.minScale,"max-scale":U.maxScale,"show-progress":U.showProgress,"url-list":U.previewSrcList,crossorigin:U.crossorigin,"hide-on-click-modal":U.hideOnClickModal,teleported:U.previewTeleported,"close-on-press-escape":U.closeOnPressEscape,onClose:N,onSwitch:q},Ll({toolbar:nt(H=>[ft(U.$slots,"toolbar",Sl(Bd(H)))]),default:nt(()=>[U.$slots.viewer?(F(),K("div",{key:0},[ft(U.$slots,"viewer")])):xe("v-if",!0)]),_:2},[U.$slots.progress?{name:"progress",fn:nt(H=>[ft(U.$slots,"progress",Sl(Bd(H)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):xe("v-if",!0)],64)):xe("v-if",!0)],16))}});var cQe=Jt(uQe,[["__file","image.vue"]]);const dQe=er(cQe),fQe=Kt({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:ba,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ln(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...Es(["ariaLabel"]),inputmode:{type:it(String),default:void 0},align:{type:it(String),default:"center"},disabledScientific:Boolean}),pQe={[Tr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ma]:e=>Ln(e)||Zi(e),[Gn]:e=>Ln(e)||Zi(e)},hQe=tt({name:"ElInputNumber"}),gQe=tt({...hQe,props:fQe,emits:pQe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=zt("input-number"),a=Q(),s=Ur({currentValue:r.modelValue,userInput:null}),{formItem:l}=ks(),u=J(()=>Ln(r.modelValue)&&r.modelValue<=r.min),d=J(()=>Ln(r.modelValue)&&r.modelValue>=r.max),c=J(()=>{const U=y(r.step);return $r(r.precision)?Math.max(y(r.modelValue),U):(U>r.precision,r.precision)}),f=J(()=>r.controls&&r.controlsPosition==="right"),p=fa(),v=Wa(),h=J(()=>{if(s.userInput!==null)return s.userInput;let U=s.currentValue;if(Zi(U))return"";if(Ln(U)){if(Number.isNaN(U))return"";$r(r.precision)||(U=U.toFixed(r.precision))}return U}),g=(U,j)=>{if($r(j)&&(j=c.value),j===0)return Math.round(U);let H=String(U);const G=H.indexOf(".");if(G===-1||!H.replace(".","").split("")[G+j])return U;const L=H.length;return H.charAt(L-1)==="5"&&(H=`${H.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(H).toFixed(j))},y=U=>{if(Zi(U))return 0;const j=U.toString(),H=j.indexOf(".");let G=0;return H!==-1&&(G=j.length-H-1),G},m=(U,j=1)=>Ln(U)?U>=Number.MAX_SAFE_INTEGER&&j===1||U<=Number.MIN_SAFE_INTEGER&&j===-1?U:g(U+r.step*j):s.currentValue,b=U=>{var j;const H=U;if(r.disabledScientific&&["e","E"].includes(H.key)){H.preventDefault();return}const G={[gn.up]:()=>{H.preventDefault(),w()},[gn.down]:()=>{H.preventDefault(),A()}};(j=G[H.key])==null||j.call(G)},w=()=>{if(r.readonly||v.value||d.value)return;const U=Number(h.value)||0,j=m(U);k(j),n(ma,s.currentValue),N()},A=()=>{if(r.readonly||v.value||u.value)return;const U=Number(h.value)||0,j=m(U,-1);k(j),n(ma,s.currentValue),N()},S=(U,j)=>{const{max:H,min:G,step:Z,precision:$,stepStrictly:L,valueOnClear:W}=r;H<G&&Xi("InputNumber","min should not be greater than max.");let ie=Number(U);if(Zi(U)||Number.isNaN(ie))return null;if(U===""){if(W===null)return null;ie=In(W)?{min:G,max:H}[W]:W}return L&&(ie=g(Math.round(ie/Z)*Z,$),ie!==U&&j&&n(Gn,ie)),$r($)||(ie=g(ie,$)),(ie>H||ie<G)&&(ie=ie>H?H:G,j&&n(Gn,ie)),ie},k=(U,j=!0)=>{var H;const G=s.currentValue,Z=S(U);if(!j){n(Gn,Z);return}G===Z&&U||(s.userInput=null,n(Gn,Z),G!==Z&&n(Tr,Z,G),r.validateEvent&&((H=l?.validate)==null||H.call(l,"change").catch($=>void 0)),s.currentValue=Z)},M=U=>{s.userInput=U;const j=U===""?null:Number(U);n(ma,j),k(j,!1)},D=U=>{const j=U!==""?Number(U):"";(Ln(j)&&!Number.isNaN(j)||U==="")&&k(j),N(),s.userInput=null},P=()=>{var U,j;(j=(U=a.value)==null?void 0:U.focus)==null||j.call(U)},O=()=>{var U,j;(j=(U=a.value)==null?void 0:U.blur)==null||j.call(U)},_=U=>{n("focus",U)},B=U=>{var j,H;s.userInput=null,s.currentValue===null&&((j=a.value)!=null&&j.input)&&(a.value.input.value=""),n("blur",U),r.validateEvent&&((H=l?.validate)==null||H.call(l,"blur").catch(G=>void 0))},N=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},q=U=>{document.activeElement===U.target&&U.preventDefault()};return St(()=>r.modelValue,(U,j)=>{const H=S(U,!0);s.userInput===null&&H!==j&&(s.currentValue=H)},{immediate:!0}),St(()=>r.precision,()=>{s.currentValue=S(r.modelValue)}),jn(()=>{var U;const{min:j,max:H,modelValue:G}=r,Z=(U=a.value)==null?void 0:U.input;if(Z.setAttribute("role","spinbutton"),Number.isFinite(H)?Z.setAttribute("aria-valuemax",String(H)):Z.removeAttribute("aria-valuemax"),Number.isFinite(j)?Z.setAttribute("aria-valuemin",String(j)):Z.removeAttribute("aria-valuemin"),Z.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),Z.setAttribute("aria-disabled",String(v.value)),!Ln(G)&&G!=null){let $=Number(G);Number.isNaN($)&&($=null),n(Gn,$)}Z.addEventListener("wheel",q,{passive:!1})}),Wc(()=>{var U,j;const H=(U=a.value)==null?void 0:U.input;H?.setAttribute("aria-valuenow",`${(j=s.currentValue)!=null?j:""}`)}),t({focus:P,blur:O}),(U,j)=>(F(),K("div",{class:re([C(i).b(),C(i).m(C(p)),C(i).is("disabled",C(v)),C(i).is("without-controls",!U.controls),C(i).is("controls-right",C(f)),C(i).is(U.align,!!U.align)]),onDragstart:Qt(()=>{},["prevent"])},[U.controls?ln((F(),K("span",{key:0,role:"button","aria-label":C(o)("el.inputNumber.decrease"),class:re([C(i).e("decrease"),C(i).is("disabled",C(u))]),onKeydown:Lr(A,["enter"])},[ft(U.$slots,"decrease-icon",{},()=>[Ve(C(Dn),null,{default:nt(()=>[C(f)?(F(),mt(C(Kc),{key:0})):(F(),mt(C(tLe),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(vE),A]]):xe("v-if",!0),U.controls?ln((F(),K("span",{key:1,role:"button","aria-label":C(o)("el.inputNumber.increase"),class:re([C(i).e("increase"),C(i).is("disabled",C(d))]),onKeydown:Lr(w,["enter"])},[ft(U.$slots,"increase-icon",{},()=>[Ve(C(Dn),null,{default:nt(()=>[C(f)?(F(),mt(C(Y_),{key:0})):(F(),mt(C(Zme),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(vE),w]]):xe("v-if",!0),Ve(C(Us),{id:U.id,ref_key:"input",ref:a,type:"number",step:U.step,"model-value":C(h),placeholder:U.placeholder,readonly:U.readonly,disabled:C(v),size:C(p),max:U.max,min:U.min,name:U.name,"aria-label":U.ariaLabel,"validate-event":!1,inputmode:U.inputmode,onKeydown:b,onBlur:B,onFocus:_,onInput:M,onChange:D},Ll({_:2},[U.$slots.prefix?{name:"prefix",fn:nt(()=>[ft(U.$slots,"prefix")])}:void 0,U.$slots.suffix?{name:"suffix",fn:nt(()=>[ft(U.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var vQe=Jt(gQe,[["__file","input-number.vue"]]);const tbe=er(vQe),mQe=Kt({modelValue:{type:it(Array)},max:Number,tagType:{...Qf.type,default:"info"},tagEffect:Qf.effect,trigger:{type:it(String),default:gn.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:ba,clearable:Boolean,clearIcon:{type:vo,default:Yd},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),yQe={[Gn]:e=>qt(e)||$r(e),[Tr]:e=>qt(e)||$r(e),[ma]:e=>In(e),"add-tag":e=>In(e)||qt(e),"remove-tag":e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function bQe({props:e,emit:t,formItem:n}){const r=Wa(),o=fa(),i=Uo(),a=Q(),s=Q(),l=J(()=>["small"].includes(o.value)?"small":"default"),u=J(()=>{var N;return(N=e.modelValue)!=null&&N.length?void 0:e.placeholder}),d=J(()=>!(e.readonly||r.value)),c=J(()=>{var N,q;return $r(e.max)?!1:((q=(N=e.modelValue)==null?void 0:N.length)!=null?q:0)>=e.max}),f=J(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(0,e.maxCollapseTags):e.modelValue}),p=J(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(e.maxCollapseTags):[]}),v=N=>{var q;const U=[...(q=e.modelValue)!=null?q:[],...Ka(N)];t(Gn,U),t(Tr,U),t("add-tag",N),a.value=void 0},h=N=>{var q,U;const j=N.split(e.delimiter).filter(H=>H&&H!==N);if(e.max){const H=e.max-((U=(q=e.modelValue)==null?void 0:q.length)!=null?U:0);j.splice(H)}return j.length===1?j[0]:j},g=N=>{if(c.value){a.value=void 0;return}if(!P.value){if(e.delimiter&&a.value){const q=h(a.value);q.length&&v(q)}t(ma,N.target.value)}},y=N=>{var q;if(!P.value)switch(N.code){case e.trigger:N.preventDefault(),N.stopPropagation(),m();break;case gn.numpadEnter:e.trigger===gn.enter&&(N.preventDefault(),N.stopPropagation(),m());break;case gn.backspace:!a.value&&((q=e.modelValue)!=null&&q.length)&&(N.preventDefault(),N.stopPropagation(),b(e.modelValue.length-1));break}},m=()=>{var N;const q=(N=a.value)==null?void 0:N.trim();!q||c.value||v(q)},b=N=>{var q;const U=((q=e.modelValue)!=null?q:[]).slice(),[j]=U.splice(N,1);t(Gn,U),t(Tr,U),t("remove-tag",j)},w=()=>{a.value=void 0,t(Gn,void 0),t(Tr,void 0),t("clear")},A=(N,q,U)=>{var j;const H=((j=e.modelValue)!=null?j:[]).slice(),[G]=H.splice(N,1),Z=q>N&&U==="before"?-1:q<N&&U==="after"?1:0;H.splice(q+Z,0,G),t(Gn,H),t(Tr,H)},S=()=>{var N;(N=i.value)==null||N.focus()},k=()=>{var N;(N=i.value)==null||N.blur()},{wrapperRef:M,isFocused:D}=gp(i,{disabled:r,beforeBlur(N){var q;return(q=s.value)==null?void 0:q.isFocusInsideContent(N)},afterBlur(){var N;e.saveOnBlur?m():a.value=void 0,e.validateEvent&&((N=n?.validate)==null||N.call(n,"blur").catch(q=>void 0))}}),{isComposing:P,handleCompositionStart:O,handleCompositionUpdate:_,handleCompositionEnd:B}=IC({afterComposition:g});return St(()=>e.modelValue,()=>{var N;e.validateEvent&&((N=n?.validate)==null||N.call(n,Tr).catch(q=>void 0))}),{inputRef:i,wrapperRef:M,tagTooltipRef:s,isFocused:D,isComposing:P,inputValue:a,size:o,tagSize:l,placeholder:u,closable:d,disabled:r,inputLimit:c,showTagList:f,collapseTagList:p,handleDragged:A,handleInput:g,handleKeydown:y,handleAddTag:m,handleRemoveTag:b,handleClear:w,handleCompositionStart:O,handleCompositionUpdate:_,handleCompositionEnd:B,focus:S,blur:k}}function wQe(){const e=Q(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}const oW=11;function iW(){const e=Uo(),t=Q(0),n=J(()=>({minWidth:`${Math.max(t.value,oW)}px`}));return li(e,()=>{var o,i;t.value=(i=(o=e.value)==null?void 0:o.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}function AQe({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=zt("input-tag"),o=Uo(),i=Q(!1);let a,s,l,u;function d(v){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${v+1})`}function c(v,h){a=h,s=e.value.querySelector(d(h)),s&&(s.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function f(v,h){if(l=h,v.preventDefault(),v.dataTransfer.dropEffect="move",$r(a)||a===h){i.value=!1;return}const g=e.value.querySelector(d(h)).getBoundingClientRect(),y=a+1!==h,m=a-1!==h,b=v.clientX-g.left,w=y?m?.5:1:-1,A=m?y?.5:0:1;b<=g.width*w?u="before":b>g.width*A?u="after":u=void 0;const S=e.value.querySelector(`.${r.e("inner")}`),k=S.getBoundingClientRect(),M=Number.parseFloat(Tf(S,"gap"))/2,D=g.top-k.top;let P=-9999;if(u==="before")P=Math.max(g.left-k.left-M,Math.floor(-M/2));else if(u==="after"){const O=g.right-k.left;P=O+(k.width===O?Math.floor(M/2):M)}jme(o.value,{top:`${D}px`,left:`${P}px`}),i.value=!!u}function p(v){v.preventDefault(),s&&(s.style.opacity=""),u&&!$r(a)&&!$r(l)&&a!==l&&t(a,l,u),i.value=!1,a=void 0,s=null,l=void 0,u=void 0,n?.()}return{dropIndicatorRef:o,showDropIndicator:i,handleDragStart:c,handleDragOver:f,handleDragEnd:p}}function CQe({props:e,isFocused:t,hovering:n,disabled:r,inputValue:o,size:i,validateState:a,validateIcon:s,needStatusIcon:l}){const u=fp(),d=pa(),c=zt("input-tag"),f=zt("input"),p=J(()=>[c.b(),c.is("focused",t.value),c.is("hovering",n.value),c.is("disabled",r.value),c.m(i.value),c.e("wrapper"),u.class]),v=J(()=>[u.style]),h=J(()=>{var m,b;return[c.e("inner"),c.is("draggable",e.draggable),c.is("left-space",!((m=e.modelValue)!=null&&m.length)&&!d.prefix),c.is("right-space",!((b=e.modelValue)!=null&&b.length)&&!y.value)]}),g=J(()=>{var m;return e.clearable&&!r.value&&!e.readonly&&(((m=e.modelValue)==null?void 0:m.length)||o.value)&&(t.value||n.value)}),y=J(()=>d.suffix||g.value||a.value&&s.value&&l.value);return{ns:c,nsInput:f,containerKls:p,containerStyle:v,innerKls:h,showClear:g,showSuffix:y}}const xQe=tt({name:"ElInputTag",inheritAttrs:!1}),SQe=tt({...xQe,props:mQe,emits:yQe,setup(e,{expose:t,emit:n}){const r=e,o=X_(),i=pa(),{form:a,formItem:s}=ks(),{inputId:l}=ac(r,{formItemContext:s}),u=J(()=>{var be;return(be=a?.statusIcon)!=null?be:!1}),d=J(()=>s?.validateState||""),c=J(()=>d.value&&Z_[d.value]),{inputRef:f,wrapperRef:p,tagTooltipRef:v,isFocused:h,inputValue:g,size:y,tagSize:m,placeholder:b,closable:w,disabled:A,showTagList:S,collapseTagList:k,handleDragged:M,handleInput:D,handleKeydown:P,handleRemoveTag:O,handleClear:_,handleCompositionStart:B,handleCompositionUpdate:N,handleCompositionEnd:q,focus:U,blur:j}=bQe({props:r,emit:n,formItem:s}),{hovering:H,handleMouseEnter:G,handleMouseLeave:Z}=wQe(),{calculatorRef:$,inputStyle:L}=iW(),{dropIndicatorRef:W,showDropIndicator:ie,handleDragStart:ee,handleDragOver:te,handleDragEnd:X}=AQe({wrapperRef:p,handleDragged:M,afterDragged:U}),{ns:ue,nsInput:ve,containerKls:Me,containerStyle:we,innerKls:he,showClear:Te,showSuffix:Y}=CQe({props:r,hovering:H,isFocused:h,inputValue:g,disabled:A,size:y,validateState:d,validateIcon:c,needStatusIcon:u});return t({focus:U,blur:j}),(be,De)=>(F(),K("div",{ref_key:"wrapperRef",ref:p,class:re(C(Me)),style:Xt(C(we)),onMouseenter:C(G),onMouseleave:C(Z)},[C(i).prefix?(F(),K("div",{key:0,class:re(C(ue).e("prefix"))},[ft(be.$slots,"prefix")],2)):xe("v-if",!0),x("div",{class:re(C(he))},[(F(!0),K(Pt,null,an(C(S),(pe,oe)=>(F(),mt(C(Dh),{key:oe,size:C(m),closable:C(w),type:be.tagType,effect:be.tagEffect,draggable:C(w)&&be.draggable,"disable-transitions":"",onClose:ce=>C(O)(oe),onDragstart:ce=>C(ee)(ce,oe),onDragover:ce=>C(te)(ce,oe),onDragend:C(X),onDrop:Qt(()=>{},["stop"])},{default:nt(()=>[ft(be.$slots,"tag",{value:pe,index:oe},()=>[xn(We(pe),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),be.collapseTags&&be.modelValue&&be.modelValue.length>be.maxCollapseTags?(F(),mt(C(ps),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!be.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:be.tagEffect,placement:"bottom"},{default:nt(()=>[Ve(C(Dh),{closable:!1,size:C(m),type:be.tagType,effect:be.tagEffect,"disable-transitions":""},{default:nt(()=>[xn(" + "+We(be.modelValue.length-be.maxCollapseTags),1)]),_:1},8,["size","type","effect"])]),content:nt(()=>[x("div",{class:re(C(ue).e("input-tag-list"))},[(F(!0),K(Pt,null,an(C(k),(pe,oe)=>(F(),mt(C(Dh),{key:oe,size:C(m),closable:C(w),type:be.tagType,effect:be.tagEffect,"disable-transitions":"",onClose:ce=>C(O)(oe+be.maxCollapseTags)},{default:nt(()=>[ft(be.$slots,"tag",{value:pe,index:oe+be.maxCollapseTags},()=>[xn(We(pe),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):xe("v-if",!0),x("div",{class:re(C(ue).e("input-wrapper"))},[ln(x("input",pr({id:C(l),ref_key:"inputRef",ref:f,"onUpdate:modelValue":pe=>Ro(g)?g.value=pe:null},C(o),{type:"text",minlength:be.minlength,maxlength:be.maxlength,disabled:C(A),readonly:be.readonly,autocomplete:be.autocomplete,tabindex:be.tabindex,placeholder:C(b),autofocus:be.autofocus,ariaLabel:be.ariaLabel,class:C(ue).e("input"),style:C(L),onCompositionstart:C(B),onCompositionupdate:C(N),onCompositionend:C(q),onInput:C(D),onKeydown:C(P)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[jr,C(g)]]),x("span",{ref_key:"calculatorRef",ref:$,"aria-hidden":"true",class:re(C(ue).e("input-calculator")),textContent:We(C(g))},null,10,["textContent"])],2),ln(x("div",{ref_key:"dropIndicatorRef",ref:W,class:re(C(ue).e("drop-indicator"))},null,2),[[Ar,C(ie)]])],2),C(Y)?(F(),K("div",{key:1,class:re(C(ue).e("suffix"))},[ft(be.$slots,"suffix"),C(Te)?(F(),mt(C(Dn),{key:0,class:re([C(ue).e("icon"),C(ue).e("clear")]),onMousedown:Qt(C(go),["prevent"]),onClick:C(_)},{default:nt(()=>[(F(),mt(hr(be.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):xe("v-if",!0),C(d)&&C(c)&&C(u)?(F(),mt(C(Dn),{key:1,class:re([C(ve).e("icon"),C(ve).e("validateIcon"),C(ve).is("loading",C(d)==="validating")])},{default:nt(()=>[(F(),mt(hr(C(c))))]),_:1},8,["class"])):xe("v-if",!0)],2)):xe("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var EQe=Jt(SQe,[["__file","input-tag.vue"]]);const kQe=er(EQe),TQe=Kt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:vo}}),_Qe={click:e=>e instanceof MouseEvent},DQe=tt({name:"ElLink"}),IQe=tt({...DQe,props:TQe,emits:_Qe,setup(e,{emit:t}){const n=e,r=Pb("link");Lf({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},J(()=>Co(n.underline)));const o=zt("link"),i=J(()=>{var l,u,d;return[o.b(),o.m((d=(u=n.type)!=null?u:(l=r.value)==null?void 0:l.type)!=null?d:"default"),o.is("disabled",n.disabled),o.is("underline",a.value==="always"),o.is("hover-underline",a.value==="hover"&&!n.disabled)]}),a=J(()=>{var l,u,d;return Co(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(l=r.value)==null?void 0:l.underline)!=null?d:"hover"});function s(l){n.disabled||t("click",l)}return(l,u)=>(F(),K("a",{class:re(C(i)),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:s},[l.icon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(l.icon)))]),_:1})):xe("v-if",!0),l.$slots.default?(F(),K("span",{key:1,class:re(C(o).e("inner"))},[ft(l.$slots,"default")],2)):xe("v-if",!0),l.$slots.icon?ft(l.$slots,"icon",{key:2}):xe("v-if",!0)],10,["href","target"]))}});var OQe=Jt(IQe,[["__file","link.vue"]]);const MQe=er(OQe);let PQe=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let o=!1;switch(r.code){case gn.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case gn.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case gn.tab:{gS(t,"mouseleave");break}case gn.enter:case gn.numpadEnter:case gn.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}},NQe=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new PQe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case gn.down:{gS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case gn.up:{gS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case gn.tab:{gS(t.currentTarget,"mouseleave");break}case gn.enter:case gn.numpadEnter:case gn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},RQe=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new NQe(r,t)})}};const BQe=tt({name:"ElMenuCollapseTransition"}),LQe=tt({...BQe,setup(e){const t=zt("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,o){Nu(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",o()},onAfterEnter(r){zs(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),El(r,t.m("collapse"))?(zs(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Nu(r,t.m("collapse"))):(Nu(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),zs(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Nu(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,o)=>(F(),mt(Wi,pr({mode:"out-in"},C(n)),{default:nt(()=>[ft(r.$slots,"default")]),_:3},16))}});var FQe=Jt(LQe,[["__file","menu-collapse-transition.vue"]]);function nbe(e,t){const n=J(()=>{let o=e.parent;const i=[t.value];for(;o.type.name!=="ElMenu";)o.props.index&&i.unshift(o.props.index),o=o.parent;return i});return{parentMenu:J(()=>{let o=e.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:n}}function UQe(e){return J(()=>{const n=e.backgroundColor;return n?new N1(n).shade(20).toString():""})}const rbe=(e,t)=>{const n=zt("menu");return J(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":UQe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},aW="rootMenu",wE="subMenu:",$Qe=Kt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:vo},expandOpenIcon:{type:vo},collapseCloseIcon:{type:vo},collapseOpenIcon:{type:vo}}),bI="ElSubMenu";var sW=tt({name:bI,props:$Qe,setup(e,{slots:t,expose:n}){const r=vr(),{indexPath:o,parentMenu:i}=nbe(r,J(()=>e.index)),a=zt("menu"),s=zt("sub-menu"),l=cn(aW);l||Xi(bI,"can not inject root menu");const u=cn(`${wE}${i.value.uid}`);u||Xi(bI,"can not inject sub menu");const d=Q({}),c=Q({});let f;const p=Q(!1),v=Q(),h=Q(),g=J(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=J(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Kc:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:ka),m=J(()=>u.level===0),b=J(()=>{const $=e.teleported;return $r($)?m.value:$}),w=J(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=J(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=J(()=>l.openedMenus.includes(e.index)),k=J(()=>[...Object.values(d.value),...Object.values(c.value)].some(({active:$})=>$)),M=J(()=>l.props.mode),D=J(()=>l.props.persistent),P=Ur({index:e.index,indexPath:o,active:k}),O=rbe(l.props,u.level+1),_=J(()=>{var $;return($=e.popperOffset)!=null?$:l.props.popperOffset}),B=J(()=>{var $;return($=e.popperClass)!=null?$:l.props.popperClass}),N=J(()=>{var $;return($=e.showTimeout)!=null?$:l.props.showTimeout}),q=J(()=>{var $;return($=e.hideTimeout)!=null?$:l.props.hideTimeout}),U=()=>{var $,L,W;return(W=(L=($=h.value)==null?void 0:$.popperRef)==null?void 0:L.popperInstanceRef)==null?void 0:W.destroy()},j=$=>{$||U()},H=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:o.value,active:k.value})},G=($,L=N.value)=>{var W;if($.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,f?.(),{stop:f}=kv(()=>{l.openMenu(e.index,o.value)},L),b.value&&((W=i.value.vnode.el)==null||W.dispatchEvent(new MouseEvent("mouseenter")))}},Z=($=!1)=>{var L;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}f?.(),u.mouseInChild.value=!1,{stop:f}=kv(()=>!p.value&&l.closeMenu(e.index,o.value),q.value),b.value&&$&&((L=u.handleMouseleave)==null||L.call(u,!0))};St(()=>l.props.collapse,$=>j(!!$));{const $=W=>{c.value[W.index]=W},L=W=>{delete c.value[W.index]};Sr(`${wE}${r.uid}`,{addSubMenu:$,removeSubMenu:L,handleMouseleave:Z,mouseInChild:p,level:u.level+1})}return n({opened:S}),jn(()=>{l.addSubMenu(P),u.addSubMenu(P)}),Qr(()=>{u.removeSubMenu(P),l.removeSubMenu(P)}),()=>{var $;const L=[($=t.title)==null?void 0:$.call(t),Fn(Dn,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>In(y.value)?Fn(r.appContext.components[y.value]):Fn(y.value)})],W=l.isMenuPopup?Fn(ps,{ref:h,visible:S.value,effect:"light",pure:!0,offset:_.value,showArrow:!1,persistent:D.value,popperClass:B.value,placement:g.value,teleported:b.value,fallbackPlacements:A.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var ie;return Fn("div",{class:[a.m(M.value),a.m("popup-container"),B.value],onMouseenter:ee=>G(ee,100),onMouseleave:()=>Z(!0),onFocus:ee=>G(ee,100)},[Fn("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${g.value}`)],style:O.value},[(ie=t.default)==null?void 0:ie.call(t)])])},default:()=>Fn("div",{class:s.e("title"),onClick:H},L)}):Fn(Pt,{},[Fn("div",{class:s.e("title"),ref:v,onClick:H},L),Fn(oD,{},{default:()=>{var ie;return ln(Fn("ul",{role:"menu",class:[a.b(),a.m("inline")],style:O.value},[(ie=t.default)==null?void 0:ie.call(t)]),[[Ar,S.value]])}})]);return Fn("li",{class:[s.b(),s.is("active",k.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:G,onMouseleave:()=>Z(),onFocus:G},[W])}}});const zQe=Kt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:it(Array),default:()=>fi([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:vo,default:()=>oLe},popperEffect:{type:it(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),wI=e=>qt(e)&&e.every(t=>In(t)),jQe={close:(e,t)=>In(e)&&wI(t),open:(e,t)=>In(e)&&wI(t),select:(e,t,n,r)=>In(e)&&wI(t)&&ar(n)&&($r(r)||r instanceof Promise)};var HQe=tt({name:"ElMenu",props:zQe,emits:jQe,setup(e,{emit:t,slots:n,expose:r}){const o=vr(),i=o.appContext.config.globalProperties.$router,a=Q(),s=Q(),l=zt("menu"),u=zt("sub-menu");let d=64;const c=Q(-1),f=Q(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=Q(e.defaultActive),v=Q({}),h=Q({}),g=J(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const j=p.value&&v.value[p.value];if(!j||e.mode==="horizontal"||e.collapse)return;j.indexPath.forEach(G=>{const Z=h.value[G];Z&&m(G,Z.indexPath)})},m=(j,H)=>{f.value.includes(j)||(e.uniqueOpened&&(f.value=f.value.filter(G=>H.includes(G))),f.value.push(j),t("open",j,H))},b=j=>{const H=f.value.indexOf(j);H!==-1&&f.value.splice(H,1)},w=(j,H)=>{b(j),t("close",j,H)},A=({index:j,indexPath:H})=>{f.value.includes(j)?w(j,H):m(j,H)},S=j=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:H,indexPath:G}=j;if(!(Zi(H)||Zi(G)))if(e.router&&i){const Z=j.route||H,$=i.push(Z).then(L=>(L||(p.value=H),L));t("select",H,G,{index:H,indexPath:G,route:Z},$)}else p.value=H,t("select",H,G,{index:H,indexPath:G})},k=j=>{var H;const G=v.value,Z=G[j]||p.value&&G[p.value]||G[e.defaultActive];p.value=(H=Z?.index)!=null?H:j},M=j=>{const H=getComputedStyle(j),G=Number.parseInt(H.marginLeft,10),Z=Number.parseInt(H.marginRight,10);return j.offsetWidth+G+Z||0},D=()=>{var j,H;if(!a.value)return-1;const G=Array.from((H=(j=a.value)==null?void 0:j.childNodes)!=null?H:[]).filter(te=>te.nodeName!=="#comment"&&(te.nodeName!=="#text"||te.nodeValue)),Z=getComputedStyle(a.value),$=Number.parseInt(Z.paddingLeft,10),L=Number.parseInt(Z.paddingRight,10),W=a.value.clientWidth-$-L;let ie=0,ee=0;return G.forEach((te,X)=>{ie+=M(te),ie<=W-d&&(ee=X+1)}),ee===G.length?-1:ee},P=j=>h.value[j].indexPath,O=(j,H=33.34)=>{let G;return()=>{G&&clearTimeout(G),G=setTimeout(()=>{j()},H)}};let _=!0;const B=()=>{const j=Sa(s);if(j&&(d=M(j)||64),c.value===D())return;const H=()=>{c.value=-1,Vt(()=>{c.value=D()})};_?H():O(H)(),_=!1};St(()=>e.defaultActive,j=>{v.value[j]||(p.value=""),k(j)}),St(()=>e.collapse,j=>{j&&(f.value=[])}),St(v.value,y);let N;Cs(()=>{e.mode==="horizontal"&&e.ellipsis?N=li(a,B).stop:N?.()});const q=Q(!1);{const j=$=>{h.value[$.index]=$},H=$=>{delete h.value[$.index]};Sr(aW,Ur({props:e,openedMenus:f,items:v,subMenus:h,activeIndex:p,isMenuPopup:g,addMenuItem:$=>{v.value[$.index]=$},removeMenuItem:$=>{delete v.value[$.index]},addSubMenu:j,removeSubMenu:H,openMenu:m,closeMenu:w,handleMenuItemClick:S,handleSubMenuClick:A})),Sr(`${wE}${o.uid}`,{addSubMenu:j,removeSubMenu:H,mouseInChild:q,level:0})}jn(()=>{e.mode==="horizontal"&&new RQe(o.vnode.el,l.namespace.value)}),r({open:H=>{const{indexPath:G}=h.value[H];G.forEach(Z=>m(Z,G))},close:b,updateActiveIndex:k,handleResize:B});const U=rbe(e,0);return()=>{var j,H;let G=(H=(j=n.default)==null?void 0:j.call(n))!=null?H:[];const Z=[];if(e.mode==="horizontal"&&a.value){const W=bd(G).filter(te=>te?.shapeFlag!==8),ie=c.value===-1?W:W.slice(0,c.value),ee=c.value===-1?[]:W.slice(c.value);ee?.length&&e.ellipsis&&(G=ie,Z.push(Fn(sW,{ref:s,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Fn(Dn,{class:u.e("icon-more")},{default:()=>Fn(e.ellipsisIcon)}),default:()=>ee})))}const $=e.closeOnClickOutside?[[Yf,()=>{f.value.length&&(q.value||(f.value.forEach(W=>t("close",W,P(W))),f.value=[]))}]]:[],L=ln(Fn("ul",{key:String(e.collapse),role:"menubar",ref:a,style:U.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...G,...Z]),$);return e.collapseTransition&&e.mode==="vertical"?Fn(FQe,()=>L):L}}});const WQe=Kt({index:{type:it([String,null]),default:null},route:{type:it([String,Object])},disabled:Boolean}),VQe={click:e=>In(e.index)&&qt(e.indexPath)},ML="ElMenuItem",qQe=tt({name:ML}),GQe=tt({...qQe,props:WQe,emits:VQe,setup(e,{expose:t,emit:n}){const r=e;Il(r.index)&&void 0;const o=vr(),i=cn(aW),a=zt("menu"),s=zt("menu-item");i||Xi(ML,"can not inject root menu");const{parentMenu:l,indexPath:u}=nbe(o,ao(r,"index")),d=cn(`${wE}${l.value.uid}`);d||Xi(ML,"can not inject sub menu");const c=J(()=>r.index===i.activeIndex),f=Ur({index:r.index,indexPath:u,active:c}),p=()=>{r.disabled||(i.handleMenuItemClick({index:r.index,indexPath:u.value,route:r.route}),n("click",f))};return jn(()=>{d.addSubMenu(f),i.addMenuItem(f)}),Qr(()=>{d.removeSubMenu(f),i.removeMenuItem(f)}),t({parentMenu:l,rootMenu:i,active:c,nsMenu:a,nsMenuItem:s,handleClick:p}),(v,h)=>(F(),K("li",{class:re([C(s).b(),C(s).is("active",C(c)),C(s).is("disabled",v.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[C(l).type.name==="ElMenu"&&C(i).props.collapse&&v.$slots.title?(F(),mt(C(ps),{key:0,effect:C(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:C(i).props.persistent},{content:nt(()=>[ft(v.$slots,"title")]),default:nt(()=>[x("div",{class:re(C(a).be("tooltip","trigger"))},[ft(v.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(F(),K(Pt,{key:1},[ft(v.$slots,"default"),ft(v.$slots,"title")],64))],2))}});var obe=Jt(GQe,[["__file","menu-item.vue"]]);const KQe={title:String},QQe=tt({name:"ElMenuItemGroup"}),YQe=tt({...QQe,props:KQe,setup(e){const t=zt("menu-item-group");return(n,r)=>(F(),K("li",{class:re(C(t).b())},[x("div",{class:re(C(t).e("title"))},[n.$slots.title?ft(n.$slots,"title",{key:1}):(F(),K(Pt,{key:0},[xn(We(n.title),1)],64))],2),x("ul",null,[ft(n.$slots,"default")])],2))}});var ibe=Jt(YQe,[["__file","menu-item-group.vue"]]);const ZQe=er(HQe,{MenuItem:obe,MenuItemGroup:ibe,SubMenu:sW}),XQe=vi(obe),JQe=vi(ibe),eYe=vi(sW),tYe=Kt({icon:{type:vo,default:()=>SBe},title:String,content:{type:String,default:""}}),nYe={back:()=>!0},rYe=tt({name:"ElPageHeader"}),oYe=tt({...rYe,props:tYe,emits:nYe,setup(e,{emit:t}){const{t:n}=Hr(),r=zt("page-header");function o(){t("back")}return(i,a)=>(F(),K("div",{class:re([C(r).b(),{[C(r).m("has-breadcrumb")]:!!i.$slots.breadcrumb,[C(r).m("has-extra")]:!!i.$slots.extra,[C(r).is("contentful")]:!!i.$slots.default}])},[i.$slots.breadcrumb?(F(),K("div",{key:0,class:re(C(r).e("breadcrumb"))},[ft(i.$slots,"breadcrumb")],2)):xe("v-if",!0),x("div",{class:re(C(r).e("header"))},[x("div",{class:re(C(r).e("left"))},[x("div",{class:re(C(r).e("back")),role:"button",tabindex:"0",onClick:o},[i.icon||i.$slots.icon?(F(),K("div",{key:0,"aria-label":i.title||C(n)("el.pageHeader.title"),class:re(C(r).e("icon"))},[ft(i.$slots,"icon",{},()=>[i.icon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(i.icon)))]),_:1})):xe("v-if",!0)])],10,["aria-label"])):xe("v-if",!0),x("div",{class:re(C(r).e("title"))},[ft(i.$slots,"title",{},()=>[xn(We(i.title||C(n)("el.pageHeader.title")),1)])],2)],2),Ve(C(Lye),{direction:"vertical"}),x("div",{class:re(C(r).e("content"))},[ft(i.$slots,"content",{},()=>[xn(We(i.content),1)])],2)],2),i.$slots.extra?(F(),K("div",{key:0,class:re(C(r).e("extra"))},[ft(i.$slots,"extra")],2)):xe("v-if",!0)],2),i.$slots.default?(F(),K("div",{key:1,class:re(C(r).e("main"))},[ft(i.$slots,"default")],2)):xe("v-if",!0)],2))}});var iYe=Jt(oYe,[["__file","page-header.vue"]]);const aYe=er(iYe),abe=Symbol("elPaginationKey"),sYe=Kt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:vo}}),lYe={click:e=>e instanceof MouseEvent},uYe=tt({name:"ElPaginationPrev"}),cYe=tt({...uYe,props:sYe,emits:lYe,setup(e){const t=e,{t:n}=Hr(),r=J(()=>t.disabled||t.currentPage<=1);return(o,i)=>(F(),K("button",{type:"button",class:"btn-prev",disabled:C(r),"aria-label":o.prevText||C(n)("el.pagination.prev"),"aria-disabled":C(r),onClick:a=>o.$emit("click",a)},[o.prevText?(F(),K("span",{key:0},We(o.prevText),1)):(F(),mt(C(Dn),{key:1},{default:nt(()=>[(F(),mt(hr(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var dYe=Jt(cYe,[["__file","prev.vue"]]);const fYe=Kt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:vo}}),pYe=tt({name:"ElPaginationNext"}),hYe=tt({...pYe,props:fYe,emits:["click"],setup(e){const t=e,{t:n}=Hr(),r=J(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,i)=>(F(),K("button",{type:"button",class:"btn-next",disabled:C(r),"aria-label":o.nextText||C(n)("el.pagination.next"),"aria-disabled":C(r),onClick:a=>o.$emit("click",a)},[o.nextText?(F(),K("span",{key:0},We(o.nextText),1)):(F(),mt(C(Dn),{key:1},{default:nt(()=>[(F(),mt(hr(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var gYe=Jt(hYe,[["__file","next.vue"]]);const lW={label:"label",value:"value",disabled:"disabled",options:"options"};function RC(e){const t=J(()=>({...lW,...e.props}));return{aliasProps:t,getLabel:a=>Qi(a,t.value.label),getValue:a=>Qi(a,t.value.value),getDisabled:a=>Qi(a,t.value.disabled),getOptions:a=>Qi(a,t.value.options)}}const sbe=Symbol("ElSelectGroup"),Fb=Symbol("ElSelect"),PL="ElOption",vYe=Kt({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),uW=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),uh=e=>hC(e);function mYe(e,t){const n=cn(Fb);n||Xi(PL,"usage: <el-select><el-option /></el-select/>");const r=cn(sbe,{disabled:!1}),o=J(()=>d(Ka(n.props.modelValue),e.value)),i=J(()=>{var p;if(n.props.multiple){const v=Ka((p=n.props.modelValue)!=null?p:[]);return!o.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=J(()=>{var p;return(p=e.label)!=null?p:ar(e.value)?"":e.value}),s=J(()=>e.value||e.label||""),l=J(()=>e.disabled||t.groupDisabled||i.value),u=vr(),d=(p=[],v)=>{if(ar(e.value)){const h=n.props.valueKey;return p&&p.some(g=>Oo(Qi(g,h))===Qi(v,h))}else return p&&p.includes(v)},c=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=p=>{const v=new RegExp(uW(p),"i");t.visible=v.test(String(a.value))||e.created};return St(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),St(()=>e.value,(p,v)=>{const{remote:h,valueKey:g}=n.props;if((h?p!==v:!ua(p,v))&&(n.onOptionDestroy(v,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!h){if(g&&ar(p)&&ar(v)&&p[g]===v[g])return;n.setSelected()}}),St(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:o,isDisabled:l,hoverItem:c,updateOption:f}}const yYe=tt({name:PL,componentName:PL,props:vYe,setup(e){const t=zt("select"),n=fs(),r=J(()=>[t.be("dropdown","item"),t.is("disabled",C(s)),t.is("selected",C(a)),t.is("hovering",C(f))]),o=Ur({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:d}=mYe(e,o),{visible:c,hover:f}=_a(o),p=vr().proxy;l.onOptionCreate(p),Qr(()=>{const h=p.value;Vt(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===p.value);l.states.cachedOptions.get(h)===p&&!y&&l.states.cachedOptions.delete(h)}),l.onOptionDestroy(h,p)});function v(){s.value||l.handleOptionSelect(p)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:a,isDisabled:s,select:l,visible:c,hover:f,states:o,hoverItem:u,updateOption:d,selectOptionClick:v}}});function bYe(e,t){return ln((F(),K("li",{id:e.id,class:re(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Qt(e.selectOptionClick,["stop"])},[ft(e.$slots,"default",{},()=>[x("span",null,We(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Ar,e.visible]])}var cW=Jt(yYe,[["render",bYe],["__file","option.vue"]]);const wYe=tt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=cn(Fb),t=zt("select"),n=J(()=>e.props.popperClass),r=J(()=>e.props.multiple),o=J(()=>e.props.fitInputWidth),i=Q("");function a(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return jn(()=>{a(),li(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function AYe(e,t,n,r,o,i){return F(),K("div",{class:re([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Xt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(F(),K("div",{key:0,class:re(e.ns.be("dropdown","header"))},[ft(e.$slots,"header")],2)):xe("v-if",!0),ft(e.$slots,"default"),e.$slots.footer?(F(),K("div",{key:1,class:re(e.ns.be("dropdown","footer"))},[ft(e.$slots,"footer")],2)):xe("v-if",!0)],6)}var CYe=Jt(wYe,[["render",AYe],["__file","select-dropdown.vue"]]);const xYe=(e,t)=>{const{t:n}=Hr(),r=fs(),o=zt("select"),i=zt("input"),a=Ur({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Q(),l=Q(),u=Q(),d=Q(),c=Q(),f=Q(),p=Q(),v=Q(),h=Q(),g=Q(),y=Q(),m=Q(!1),b=Q(),{form:w,formItem:A}=ks(),{inputId:S}=ac(e,{formItemContext:A}),{valueOnClear:k,isEmptyValue:M}=TC(e),{isComposing:D,handleCompositionStart:P,handleCompositionUpdate:O,handleCompositionEnd:_}=IC({afterComposition:xt=>Bt(xt)}),B=J(()=>e.disabled||!!w?.disabled),{wrapperRef:N,isFocused:q,handleBlur:U}=gp(c,{disabled:B,afterFocus(){e.automaticDropdown&&!m.value&&(m.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(xt){var sn,vt;return((sn=u.value)==null?void 0:sn.isFocusInsideContent(xt))||((vt=d.value)==null?void 0:vt.isFocusInsideContent(xt))},afterBlur(){var xt;m.value=!1,a.menuVisibleOnFocus=!1,e.validateEvent&&((xt=A?.validate)==null||xt.call(A,"blur").catch(sn=>void 0))}}),j=J(()=>qt(e.modelValue)?e.modelValue.length>0:!M(e.modelValue)),H=J(()=>{var xt;return(xt=w?.statusIcon)!=null?xt:!1}),G=J(()=>e.clearable&&!B.value&&j.value&&(q.value||a.inputHovering)),Z=J(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),$=J(()=>o.is("reverse",!!(Z.value&&m.value))),L=J(()=>A?.validateState||""),W=J(()=>L.value&&Z_[L.value]),ie=J(()=>e.remote?300:0),ee=J(()=>e.remote&&!a.inputValue&&a.options.size===0),te=J(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&a.inputValue&&a.options.size>0&&X.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),X=J(()=>ue.value.filter(xt=>xt.visible).length),ue=J(()=>{const xt=Array.from(a.options.values()),sn=[];return a.optionValues.forEach(vt=>{const Nt=xt.findIndex(bn=>bn.value===vt);Nt>-1&&sn.push(xt[Nt])}),sn.length>=xt.length?sn:xt}),ve=J(()=>Array.from(a.cachedOptions.values())),Me=J(()=>{const xt=ue.value.filter(sn=>!sn.created).some(sn=>sn.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!xt}),we=()=>{e.filterable&&Pn(e.filterMethod)||e.filterable&&e.remote&&Pn(e.remoteMethod)||ue.value.forEach(xt=>{var sn;(sn=xt.updateOption)==null||sn.call(xt,a.inputValue)})},he=fa(),Te=J(()=>["small"].includes(he.value)?"small":"default"),Y=J({get(){return m.value&&!ee.value},set(xt){m.value=xt}}),be=J(()=>{if(e.multiple&&!$r(e.modelValue))return Ka(e.modelValue).length===0&&!a.inputValue;const xt=qt(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||$r(xt)?!a.inputValue:!0}),De=J(()=>{var xt;const sn=(xt=e.placeholder)!=null?xt:n("el.select.placeholder");return e.multiple||!j.value?sn:a.selectedLabel}),pe=J(()=>fE?null:"mouseenter");St(()=>e.modelValue,(xt,sn)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",oe("")),Re(),!ua(xt,sn)&&e.validateEvent&&A?.validate("change").catch(vt=>void 0)},{flush:"post",deep:!0}),St(()=>m.value,xt=>{xt?oe(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",xt)}),St(()=>a.options.entries(),()=>{Kr&&(Re(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&ce())},{flush:"post"}),St([()=>a.hoveringIndex,ue],([xt])=>{Ln(xt)&&xt>-1?b.value=ue.value[xt]||{}:b.value={},ue.value.forEach(sn=>{sn.hover=b.value===sn})}),Cs(()=>{a.isBeforeHide||we()});const oe=xt=>{a.previousQuery===xt||D.value||(a.previousQuery=xt,e.filterable&&Pn(e.filterMethod)?e.filterMethod(xt):e.filterable&&e.remote&&Pn(e.remoteMethod)&&e.remoteMethod(xt),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value?Vt(ce):Vt(Le))},ce=()=>{const xt=ue.value.filter(bn=>bn.visible&&!bn.disabled&&!bn.states.groupDisabled),sn=xt.find(bn=>bn.created),vt=xt[0],Nt=ue.value.map(bn=>bn.value);a.hoveringIndex=Ae(Nt,sn||vt)},Re=()=>{if(e.multiple)a.selectedLabel="";else{const sn=qt(e.modelValue)?e.modelValue[0]:e.modelValue,vt=Ee(sn);a.selectedLabel=vt.currentLabel,a.selected=[vt];return}const xt=[];$r(e.modelValue)||Ka(e.modelValue).forEach(sn=>{xt.push(Ee(sn))}),a.selected=xt},Ee=xt=>{let sn;const vt=k3(xt);for(let Mn=a.cachedOptions.size-1;Mn>=0;Mn--){const tr=ve.value[Mn];if(vt?Qi(tr.value,e.valueKey)===Qi(xt,e.valueKey):tr.value===xt){sn={value:xt,currentLabel:tr.currentLabel,get isDisabled(){return tr.isDisabled}};break}}if(sn)return sn;const Nt=vt?xt.label:xt??"";return{value:xt,currentLabel:Nt}},Le=()=>{a.hoveringIndex=ue.value.findIndex(xt=>a.selected.some(sn=>Ye(sn)===Ye(xt)))},Fe=()=>{a.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},Pe=()=>{a.collapseItemWidth=g.value.getBoundingClientRect().width},Ne=()=>{var xt,sn;(sn=(xt=u.value)==null?void 0:xt.updatePopper)==null||sn.call(xt)},pt=()=>{var xt,sn;(sn=(xt=d.value)==null?void 0:xt.updatePopper)==null||sn.call(xt)},Rt=()=>{a.inputValue.length>0&&!m.value&&(m.value=!0),oe(a.inputValue)},Bt=xt=>{if(a.inputValue=xt.target.value,e.remote)en();else return Rt()},en=Fl(()=>{Rt()},ie.value),Wt=xt=>{ua(e.modelValue,xt)||t(Tr,xt)},Ut=xt=>Sme(xt,sn=>{const vt=a.cachedOptions.get(sn);return vt&&!vt.disabled&&!vt.states.groupDisabled}),ct=xt=>{if(e.multiple&&xt.code!==gn.delete&&xt.target.value.length<=0){const sn=Ka(e.modelValue).slice(),vt=Ut(sn);if(vt<0)return;const Nt=sn[vt];sn.splice(vt,1),t(Gn,sn),Wt(sn),t("remove-tag",Nt)}},_t=(xt,sn)=>{const vt=a.selected.indexOf(sn);if(vt>-1&&!B.value){const Nt=Ka(e.modelValue).slice();Nt.splice(vt,1),t(Gn,Nt),Wt(Nt),t("remove-tag",sn.value)}xt.stopPropagation(),He()},st=xt=>{xt.stopPropagation();const sn=e.multiple?[]:k.value;if(e.multiple)for(const vt of a.selected)vt.isDisabled&&sn.push(vt.value);t(Gn,sn),Wt(sn),a.hoveringIndex=-1,m.value=!1,t("clear"),He()},Ot=xt=>{var sn;if(e.multiple){const vt=Ka((sn=e.modelValue)!=null?sn:[]).slice(),Nt=Ae(vt,xt);Nt>-1?vt.splice(Nt,1):(e.multipleLimit<=0||vt.length<e.multipleLimit)&&vt.push(xt.value),t(Gn,vt),Wt(vt),xt.created&&oe(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Gn,xt.value),Wt(xt.value),m.value=!1;He(),!m.value&&Vt(()=>{je(xt)})},Ae=(xt,sn)=>$r(sn)?-1:ar(sn.value)?xt.findIndex(vt=>ua(Qi(vt,e.valueKey),Ye(sn))):xt.indexOf(sn.value),je=xt=>{var sn,vt,Nt,bn,Mn;const tr=qt(xt)?xt[0]:xt;let dn=null;if(tr?.value){const Ke=ue.value.filter(bt=>bt.value===tr.value);Ke.length>0&&(dn=Ke[0].$el)}if(u.value&&dn){const Ke=(bn=(Nt=(vt=(sn=u.value)==null?void 0:sn.popperRef)==null?void 0:vt.contentRef)==null?void 0:Nt.querySelector)==null?void 0:bn.call(Nt,`.${o.be("dropdown","wrap")}`);Ke&&vH(Ke,dn)}(Mn=y.value)==null||Mn.handleScroll()},at=xt=>{a.options.set(xt.value,xt),a.cachedOptions.set(xt.value,xt)},gt=(xt,sn)=>{a.options.get(xt)===sn&&a.options.delete(xt)},nn=J(()=>{var xt,sn;return(sn=(xt=u.value)==null?void 0:xt.popperRef)==null?void 0:sn.contentRef}),Tn=()=>{a.isBeforeHide=!1,Vt(()=>{var xt;(xt=y.value)==null||xt.update(),je(a.selected)})},He=()=>{var xt;(xt=c.value)==null||xt.focus()},ke=()=>{var xt;if(m.value){m.value=!1,Vt(()=>{var sn;return(sn=c.value)==null?void 0:sn.blur()});return}(xt=c.value)==null||xt.blur()},me=xt=>{st(xt)},Be=xt=>{if(m.value=!1,q.value){const sn=new FocusEvent("blur",xt);Vt(()=>U(sn))}},rt=()=>{a.inputValue.length>0?a.inputValue="":m.value=!1},ht=()=>{B.value||(fE&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:m.value=!m.value)},rn=()=>{if(!m.value)ht();else{const xt=ue.value[a.hoveringIndex];xt&&!xt.isDisabled&&Ot(xt)}},Ye=xt=>ar(xt.value)?Qi(xt.value,e.valueKey):xt.value,Je=J(()=>ue.value.filter(xt=>xt.visible).every(xt=>xt.isDisabled)),lt=J(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Ue=J(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),ze=xt=>{if(!m.value){m.value=!0;return}if(!(a.options.size===0||X.value===0||D.value)&&!Je.value){xt==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):xt==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const sn=ue.value[a.hoveringIndex];(sn.isDisabled||!sn.visible)&&ze(xt),Vt(()=>je(b.value))}},ut=()=>{if(!l.value)return 0;const xt=window.getComputedStyle(l.value);return Number.parseFloat(xt.gap||"6px")},yt=J(()=>{const xt=ut(),sn=e.filterable?xt+oW:0;return{maxWidth:`${g.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-xt-sn:a.selectionWidth-sn}px`}}),jt=J(()=>({maxWidth:`${a.selectionWidth}px`})),mn=xt=>{t("popup-scroll",xt)};li(l,Fe),li(N,Ne),li(h,pt),li(g,Pe);let Nn;return St(()=>Y.value,xt=>{xt?Nn=li(v,Ne).stop:(Nn?.(),Nn=void 0)}),jn(()=>{Re()}),{inputId:S,contentId:r,nsSelect:o,nsInput:i,states:a,isFocused:q,expanded:m,optionsArray:ue,hoverOption:b,selectSize:he,filteredOptionsCount:X,updateTooltip:Ne,updateTagTooltip:pt,debouncedOnInputChange:en,onInput:Bt,deletePrevTag:ct,deleteTag:_t,deleteSelected:st,handleOptionSelect:Ot,scrollToOption:je,hasModelValue:j,shouldShowPlaceholder:be,currentPlaceholder:De,mouseEnterEventName:pe,needStatusIcon:H,showClearBtn:G,iconComponent:Z,iconReverse:$,validateState:L,validateIcon:W,showNewOption:Me,updateOptions:we,collapseTagSize:Te,setSelected:Re,selectDisabled:B,emptyText:te,handleCompositionStart:P,handleCompositionUpdate:O,handleCompositionEnd:_,onOptionCreate:at,onOptionDestroy:gt,handleMenuEnter:Tn,focus:He,blur:ke,handleClearClick:me,handleClickOutside:Be,handleEsc:rt,toggleMenu:ht,selectOption:rn,getValueKey:Ye,navigateOptions:ze,dropdownMenuVisible:Y,showTagList:lt,collapseTagList:Ue,popupScroll:mn,tagStyle:yt,collapseTagStyle:jt,popperRef:nn,inputRef:c,tooltipRef:u,tagTooltipRef:d,prefixRef:f,suffixRef:p,selectRef:s,wrapperRef:N,selectionRef:l,scrollbarRef:y,menuRef:v,tagMenuRef:h,collapseItemRef:g}};var SYe=tt({name:"ElOptions",setup(e,{slots:t}){const n=cn(Fb);let r=[];return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];function l(u){qt(u)&&u.forEach(d=>{var c,f,p,v;const h=(c=d?.type||{})==null?void 0:c.name;h==="ElOptionGroup"?l(!In(d.children)&&!qt(d.children)&&Pn((f=d.children)==null?void 0:f.default)?(p=d.children)==null?void 0:p.default():d.children):h==="ElOption"?s.push((v=d.props)==null?void 0:v.value):qt(d.children)&&l(d.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),ua(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const EYe=Kt({name:String,id:String,modelValue:{type:it([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ba,effect:{type:it(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:it([String,Object])},popperOptions:{type:it(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:it(Function)},filterMethod:{type:it(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:oi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:vo,default:Yd},fitInputWidth:Boolean,suffixIcon:{type:vo,default:Kc},tagType:{...Qf.type,default:"info"},tagEffect:{...Qf.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:it(String),values:vp,default:"bottom-start"},fallbackPlacements:{type:it(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:oi.appendTo,options:{type:it(Array)},props:{type:it(Object),default:()=>lW},...nm,...Es(["ariaLabel"])});a1e.scroll;const kYe=tt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=zt("select"),n=Q(),r=vr(),o=Q([]);Sr(sbe,Ur({..._a(e)}));const i=J(()=>o.value.some(u=>u.visible===!0)),a=u=>{var d;return u.type.name==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},s=u=>{const d=Ka(u),c=[];return d.forEach(f=>{var p;jo(f)&&(a(f)?c.push(f.component.proxy):qt(f.children)&&f.children.length?c.push(...s(f.children)):(p=f.component)!=null&&p.subTree&&c.push(...s(f.component.subTree)))}),c},l=()=>{o.value=s(r.subTree)};return jn(()=>{l()}),Ome(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function TYe(e,t,n,r,o,i){return ln((F(),K("ul",{ref:"groupRef",class:re(e.ns.be("group","wrap"))},[x("li",{class:re(e.ns.be("group","title"))},We(e.label),3),x("li",null,[x("ul",{class:re(e.ns.b("group"))},[ft(e.$slots,"default")],2)])],2)),[[Ar,e.visible]])}var dW=Jt(kYe,[["render",TYe],["__file","option-group.vue"]]);const eee="ElSelect",_Ye=tt({name:eee,componentName:eee,components:{ElSelectMenu:CYe,ElOption:cW,ElOptions:SYe,ElOptionGroup:dW,ElTag:Dh,ElScrollbar:Lc,ElTooltip:ps,ElIcon:Dn},directives:{ClickOutside:Yf},props:EYe,emits:[Gn,Tr,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=vr();r.appContext.config.warnHandler=(...y)=>{!y[0]||y[0].includes('Slot "default" invoked outside of the render function')||console.warn(...y)};const o=J(()=>{const{modelValue:y,multiple:m}=e,b=m?[]:void 0;return qt(y)?m?y:b:m?b:y}),i=Ur({..._a(e),modelValue:o}),a=xYe(i,t),{calculatorRef:s,inputStyle:l}=iW(),{getLabel:u,getValue:d,getOptions:c,getDisabled:f}=RC(e),p=y=>({label:u(y),value:d(y),disabled:f(y)}),v=y=>y.reduce((m,b)=>(m.push(b),b.children&&b.children.length>0&&m.push(...v(b.children)),m),[]),h=y=>{bd(y||[]).forEach(b=>{var w;if(ar(b)&&(b.type.name==="ElOption"||b.type.name==="ElTree")){const A=b.type.name;if(A==="ElTree"){const S=((w=b.props)==null?void 0:w.data)||[];v(S).forEach(M=>{M.currentLabel=M.label||(ar(M.value)?"":M.value),a.onOptionCreate(M)})}else if(A==="ElOption"){const S={...b.props};S.currentLabel=S.label||(ar(S.value)?"":S.value),a.onOptionCreate(S)}}})};St(()=>{var y;return(y=n.default)==null?void 0:y.call(n)},y=>{e.persistent||h(y)},{immediate:!0}),Sr(Fb,Ur({props:i,states:a.states,selectRef:a.selectRef,optionsArray:a.optionsArray,setSelected:a.setSelected,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy}));const g=J(()=>e.multiple?a.states.selected.map(y=>y.currentLabel):a.states.selectedLabel);return Qr(()=>{r.appContext.config.warnHandler=void 0}),{...a,modelValue:o,selectedLabel:g,calculatorRef:s,inputStyle:l,getLabel:u,getValue:d,getOptions:c,getDisabled:f,getOptionProps:p}}});function DYe(e,t){const n=sr("el-tag"),r=sr("el-tooltip"),o=sr("el-icon"),i=sr("el-option"),a=sr("el-option-group"),s=sr("el-options"),l=sr("el-scrollbar"),u=sr("el-select-menu"),d=D_("click-outside");return ln((F(),K("div",{ref:"selectRef",class:re([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[R4(e.mouseEnterEventName)]:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[Ve(r,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:c=>e.states.isBeforeHide=!1},{default:nt(()=>{var c;return[x("div",{ref:"wrapperRef",class:re([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Qt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(F(),K("div",{key:0,ref:"prefixRef",class:re(e.nsSelect.e("prefix"))},[ft(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:re([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ft(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(F(!0),K(Pt,null,an(e.showTagList,f=>(F(),K("div",{key:e.getValueKey(f),class:re(e.nsSelect.e("selected-item"))},[Ve(n,{closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Xt(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))},[ft(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[xn(We(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(F(),mt(r,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:nt(()=>[x("div",{ref:"collapseItemRef",class:re(e.nsSelect.e("selected-item"))},[Ve(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Xt(e.collapseTagStyle)},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))}," + "+We(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:nt(()=>[x("div",{ref:"tagMenuRef",class:re(e.nsSelect.e("selection"))},[(F(!0),K(Pt,null,an(e.collapseTagList,f=>(F(),K("div",{key:e.getValueKey(f),class:re(e.nsSelect.e("selected-item"))},[Ve(n,{class:"in-tooltip",closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))},[ft(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[xn(We(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):xe("v-if",!0)]):xe("v-if",!0),x("div",{class:re([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ln(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,type:"text",name:e.name,class:re([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Xt(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((c=e.hoverOption)==null?void 0:c.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Lr(Qt(f=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Lr(Qt(f=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Lr(Qt(e.handleEsc,["stop","prevent"]),["esc"]),Lr(Qt(e.selectOption,["stop","prevent"]),["enter"]),Lr(Qt(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:Qt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[jr,e.states.inputValue]]),e.filterable?(F(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:re(e.nsSelect.e("input-calculator")),textContent:We(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(F(),K("div",{key:1,class:re([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ft(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,We(e.currentPlaceholder),1)]):(F(),K("span",{key:1},We(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:re(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(F(),mt(o,{key:0,class:re([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:nt(()=>[(F(),mt(hr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),e.showClearBtn&&e.clearIcon?(F(),mt(o,{key:1,class:re([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:nt(()=>[(F(),mt(hr(e.clearIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(F(),mt(o,{key:2,class:re([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:nt(()=>[(F(),mt(hr(e.validateIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],10,["onClick"])]}),content:nt(()=>[Ve(u,{ref:"menuRef"},{default:nt(()=>[e.$slots.header?(F(),K("div",{key:0,class:re(e.nsSelect.be("dropdown","header")),onClick:Qt(()=>{},["stop"])},[ft(e.$slots,"header")],10,["onClick"])):xe("v-if",!0),ln(Ve(l,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:re([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:nt(()=>[e.showNewOption?(F(),mt(i,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):xe("v-if",!0),Ve(s,null,{default:nt(()=>[ft(e.$slots,"default",{},()=>[(F(!0),K(Pt,null,an(e.options,(c,f)=>{var p;return F(),K(Pt,{key:f},[(p=e.getOptions(c))!=null&&p.length?(F(),mt(a,{key:0,label:e.getLabel(c),disabled:e.getDisabled(c)},{default:nt(()=>[(F(!0),K(Pt,null,an(e.getOptions(c),v=>(F(),mt(i,pr({key:e.getValue(v)},e.getOptionProps(v)),null,16))),128))]),_:2},1032,["label","disabled"])):(F(),mt(i,Sl(pr({key:1},e.getOptionProps(c))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Ar,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(F(),K("div",{key:1,class:re(e.nsSelect.be("dropdown","loading"))},[ft(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(F(),K("div",{key:2,class:re(e.nsSelect.be("dropdown","empty"))},[ft(e.$slots,"empty",{},()=>[x("span",null,We(e.emptyText),1)])],2)):xe("v-if",!0),e.$slots.footer?(F(),K("div",{key:3,class:re(e.nsSelect.be("dropdown","footer")),onClick:Qt(()=>{},["stop"])},[ft(e.$slots,"footer")],10,["onClick"])):xe("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var IYe=Jt(_Ye,[["render",DYe],["__file","select.vue"]]);const _v=er(IYe,{Option:cW,OptionGroup:dW}),AE=vi(cW),OYe=vi(dW),fW=()=>cn(abe,{}),MYe=Kt({pageSize:{type:Number,required:!0},pageSizes:{type:it(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Qd},appendSizeTo:String}),PYe=tt({name:"ElPaginationSizes"}),NYe=tt({...PYe,props:MYe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Hr(),o=zt("pagination"),i=fW(),a=Q(n.pageSize);St(()=>n.pageSizes,(u,d)=>{if(!ua(u,d)&&qt(u)){const c=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),St(()=>n.pageSize,u=>{a.value=u});const s=J(()=>n.pageSizes);function l(u){var d;u!==a.value&&(a.value=u,(d=i.handleSizeChange)==null||d.call(i,Number(u)))}return(u,d)=>(F(),K("span",{class:re(C(o).e("sizes"))},[Ve(C(_v),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:nt(()=>[(F(!0),K(Pt,null,an(C(s),c=>(F(),mt(C(AE),{key:c,value:c,label:c+C(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var RYe=Jt(NYe,[["__file","sizes.vue"]]);const BYe=Kt({size:{type:String,values:Qd}}),LYe=tt({name:"ElPaginationJumper"}),FYe=tt({...LYe,props:BYe,setup(e){const{t}=Hr(),n=zt("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=fW(),s=Q(),l=J(()=>{var c;return(c=s.value)!=null?c:i?.value});function u(c){s.value=c?+c:""}function d(c){c=Math.trunc(+c),a?.(c),s.value=void 0}return(c,f)=>(F(),K("span",{class:re(C(n).e("jump")),disabled:C(o)},[x("span",{class:re([C(n).e("goto")])},We(C(t)("el.pagination.goto")),3),Ve(C(Us),{size:c.size,class:re([C(n).e("editor"),C(n).is("in-pagination")]),min:1,max:C(r),disabled:C(o),"model-value":C(l),"validate-event":!1,"aria-label":C(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),x("span",{class:re([C(n).e("classifier")])},We(C(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var UYe=Jt(FYe,[["__file","jumper.vue"]]);const $Ye=Kt({total:{type:Number,default:1e3}}),zYe=tt({name:"ElPaginationTotal"}),jYe=tt({...zYe,props:$Ye,setup(e){const{t}=Hr(),n=zt("pagination"),{disabled:r}=fW();return(o,i)=>(F(),K("span",{class:re(C(n).e("total")),disabled:C(r)},We(C(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var HYe=Jt(jYe,[["__file","total.vue"]]);const WYe=Kt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),VYe=tt({name:"ElPaginationPager"}),qYe=tt({...VYe,props:WYe,emits:[Tr],setup(e,{emit:t}){const n=e,r=zt("pager"),o=zt("icon"),{t:i}=Hr(),a=Q(!1),s=Q(!1),l=Q(!1),u=Q(!1),d=Q(!1),c=Q(!1),f=J(()=>{const w=n.pagerCount,A=(w-1)/2,S=Number(n.currentPage),k=Number(n.pageCount);let M=!1,D=!1;k>w&&(S>w-A&&(M=!0),S<k-A&&(D=!0));const P=[];if(M&&!D){const O=k-(w-2);for(let _=O;_<k;_++)P.push(_)}else if(!M&&D)for(let O=2;O<w;O++)P.push(O);else if(M&&D){const O=Math.floor(w/2)-1;for(let _=S-O;_<=S+O;_++)P.push(_)}else for(let O=2;O<k;O++)P.push(O);return P}),p=J(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),v=J(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),h=J(()=>n.disabled?-1:0);St(()=>[n.pageCount,n.pagerCount,n.currentPage],([w,A,S])=>{const k=(A-1)/2;let M=!1,D=!1;w>A&&(M=S>A-k,D=S<w-k),l.value&&(l.value=M),u.value&&(u.value=D),a.value=M,s.value=D},{immediate:!0});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function y(w=!1){w?d.value=!0:c.value=!0}function m(w){const A=w.target;if(A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("number")){const S=Number(A.textContent);S!==n.currentPage&&t(Tr,S)}else A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("more")&&b(w)}function b(w){const A=w.target;if(A.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(A.textContent);const k=n.pageCount,M=n.currentPage,D=n.pagerCount-2;A.className.includes("more")&&(A.className.includes("quickprev")?S=M-D:A.className.includes("quicknext")&&(S=M+D)),Number.isNaN(+S)||(S<1&&(S=1),S>k&&(S=k)),S!==M&&t(Tr,S)}return(w,A)=>(F(),K("ul",{class:re(C(r).b()),onClick:b,onKeyup:Lr(m,["enter"])},[w.pageCount>0?(F(),K("li",{key:0,class:re([[C(r).is("active",w.currentPage===1),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":C(i)("el.pagination.currentPage",{pager:1}),tabindex:C(h)}," 1 ",10,["aria-current","aria-label","tabindex"])):xe("v-if",!0),a.value?(F(),K("li",{key:1,class:re(C(p)),tabindex:C(h),"aria-label":C(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:S=>g(!0),onMouseleave:S=>l.value=!1,onFocus:S=>y(!0),onBlur:S=>d.value=!1},[(l.value||d.value)&&!w.disabled?(F(),mt(C(o0),{key:0})):(F(),mt(C(qX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),(F(!0),K(Pt,null,an(C(f),S=>(F(),K("li",{key:S,class:re([[C(r).is("active",w.currentPage===S),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":C(i)("el.pagination.currentPage",{pager:S}),tabindex:C(h)},We(S),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(F(),K("li",{key:2,class:re(C(v)),tabindex:C(h),"aria-label":C(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:S=>g(),onMouseleave:S=>u.value=!1,onFocus:S=>y(),onBlur:S=>c.value=!1},[(u.value||c.value)&&!w.disabled?(F(),mt(C(i0),{key:0})):(F(),mt(C(qX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),w.pageCount>1?(F(),K("li",{key:3,class:re([[C(r).is("active",w.currentPage===w.pageCount),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":C(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:C(h)},We(w.pageCount),11,["aria-current","aria-label","tabindex"])):xe("v-if",!0)],42,["onKeyup"]))}});var GYe=Jt(qYe,[["__file","pager.vue"]]);const Qs=e=>typeof e!="number",KYe=Kt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ln(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:it(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:vo,default:()=>Gf},nextText:{type:String,default:""},nextIcon:{type:vo,default:()=>ka},teleported:{type:Boolean,default:!0},small:Boolean,size:ba,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),QYe={"update:current-page":e=>Ln(e),"update:page-size":e=>Ln(e),"size-change":e=>Ln(e),change:(e,t)=>Ln(e)&&Ln(t),"current-change":e=>Ln(e),"prev-click":e=>Ln(e),"next-click":e=>Ln(e)},tee="ElPagination";var YYe=tt({name:tee,props:KYe,emits:QYe,setup(e,{emit:t,slots:n}){const{t:r}=Hr(),o=zt("pagination"),i=vr().vnode.props||{},a=Fme(),s=J(()=>{var A;return e.small?"small":(A=e.size)!=null?A:a.value});Lf({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},J(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,d=J(()=>{if(Qs(e.total)&&Qs(e.pageCount)||!Qs(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Qs(e.pageCount)){if(!Qs(e.total)&&!Qs(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),c=Q(Qs(e.defaultPageSize)?10:e.defaultPageSize),f=Q(Qs(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=J({get(){return Qs(e.pageSize)?c.value:e.pageSize},set(A){Qs(e.pageSize)&&(c.value=A),u&&(t("update:page-size",A),t("size-change",A))}}),v=J(()=>{let A=0;return Qs(e.pageCount)?Qs(e.total)||(A=Math.max(1,Math.ceil(e.total/p.value))):A=e.pageCount,A}),h=J({get(){return Qs(e.currentPage)?f.value:e.currentPage},set(A){let S=A;A<1?S=1:A>v.value&&(S=v.value),Qs(e.currentPage)&&(f.value=S),l&&(t("update:current-page",S),t("current-change",S))}});St(v,A=>{h.value>A&&(h.value=A)}),St([h,p],A=>{t(Tr,...A)},{flush:"post"});function g(A){h.value=A}function y(A){p.value=A;const S=v.value;h.value>S&&(h.value=S)}function m(){e.disabled||(h.value-=1,t("prev-click",h.value))}function b(){e.disabled||(h.value+=1,t("next-click",h.value))}function w(A,S){A&&(A.props||(A.props={}),A.props.class=[A.props.class,S].join(" "))}return Sr(abe,{pageCount:v,disabled:J(()=>e.disabled),currentPage:h,changeEvent:g,handleSizeChange:y}),()=>{var A,S;if(!d.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const k=[],M=[],D=Fn("div",{class:o.e("rightwrapper")},M),P={prev:Fn(dYe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:m}),jumper:Fn(UYe,{size:s.value}),pager:Fn(GYe,{currentPage:h.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:Fn(gYe,{disabled:e.disabled,currentPage:h.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:Fn(RYe,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:(S=(A=n?.default)==null?void 0:A.call(n))!=null?S:null,total:Fn(HYe,{total:Qs(e.total)?0:e.total})},O=e.layout.split(",").map(B=>B.trim());let _=!1;return O.forEach(B=>{if(B==="->"){_=!0;return}_?M.push(P[B]):k.push(P[B])}),w(k[0],o.is("first")),w(k[k.length-1],o.is("last")),_&&M.length>0&&(w(M[0],o.is("first")),w(M[M.length-1],o.is("last")),k.push(D)),Fn("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},k)}}});const ZYe=er(YYe),XYe=Kt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:gL,default:"primary"},cancelButtonType:{type:String,values:gL,default:"text"},icon:{type:vo,default:()=>uLe},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},teleported:oi.teleported,persistent:oi.persistent,width:{type:[String,Number],default:150}}),JYe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},eZe=tt({name:"ElPopconfirm"}),tZe=tt({...eZe,props:XYe,emits:JYe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=zt("popconfirm"),a=Q(),s=J(()=>{var v;return(v=C(a))==null?void 0:v.popperRef}),l=()=>{var v,h;(h=(v=a.value)==null?void 0:v.onClose)==null||h.call(v)},u=J(()=>({width:_i(r.width)})),d=v=>{n("confirm",v),l()},c=v=>{n("cancel",v),l()},f=J(()=>r.confirmButtonText||o("el.popconfirm.confirmButtonText")),p=J(()=>r.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:s,hide:l}),(v,h)=>(F(),mt(C(ps),pr({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},v.$attrs,{"popper-class":`${C(i).namespace.value}-popover`,"popper-style":C(u),teleported:v.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":v.hideAfter,persistent:v.persistent}),{content:nt(()=>[x("div",{class:re(C(i).b())},[x("div",{class:re(C(i).e("main"))},[!v.hideIcon&&v.icon?(F(),mt(C(Dn),{key:0,class:re(C(i).e("icon")),style:Xt({color:v.iconColor})},{default:nt(()=>[(F(),mt(hr(v.icon)))]),_:1},8,["class","style"])):xe("v-if",!0),xn(" "+We(v.title),1)],2),x("div",{class:re(C(i).e("action"))},[ft(v.$slots,"actions",{confirm:d,cancel:c},()=>[Ve(C(Za),{size:"small",type:v.cancelButtonType==="text"?"":v.cancelButtonType,text:v.cancelButtonType==="text",onClick:c},{default:nt(()=>[xn(We(C(p)),1)]),_:1},8,["type","text"]),Ve(C(Za),{size:"small",type:v.confirmButtonType==="text"?"":v.confirmButtonType,text:v.confirmButtonType==="text",onClick:d},{default:nt(()=>[xn(We(C(f)),1)]),_:1},8,["type","text"])])],2)],2)]),default:nt(()=>[v.$slots.reference?ft(v.$slots,"reference",{key:0}):xe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var nZe=Jt(tZe,[["__file","popconfirm.vue"]]);const rZe=er(nZe),oZe=Kt({trigger:Z1.trigger,triggerKeys:Z1.triggerKeys,placement:DS.placement,disabled:Z1.disabled,visible:oi.visible,transition:oi.transition,popperOptions:DS.popperOptions,tabindex:DS.tabindex,content:oi.content,popperStyle:oi.popperStyle,popperClass:oi.popperClass,enterable:{...oi.enterable,default:!0},effect:{...oi.effect,default:"light"},teleported:oi.teleported,appendTo:oi.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),iZe={"update:visible":e=>Co(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},aZe="onUpdate:visible",sZe=tt({name:"ElPopover"}),lZe=tt({...sZe,props:oZe,emits:iZe,setup(e,{expose:t,emit:n}){const r=e,o=J(()=>r[aZe]),i=zt("popover"),a=Q(),s=J(()=>{var g;return(g=C(a))==null?void 0:g.popperRef}),l=J(()=>[{width:_i(r.width)},r.popperStyle]),u=J(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),d=J(()=>r.transition===`${i.namespace.value}-fade-in-linear`),c=()=>{var g;(g=a.value)==null||g.hide()},f=()=>{n("before-enter")},p=()=>{n("before-leave")},v=()=>{n("after-enter")},h=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:c}),(g,y)=>(F(),mt(C(ps),pr({ref_key:"tooltipRef",ref:a},g.$attrs,{trigger:g.trigger,"trigger-keys":g.triggerKeys,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":C(u),"popper-style":C(l),teleported:g.teleported,"append-to":g.appendTo,persistent:g.persistent,"gpu-acceleration":C(d),"onUpdate:visible":C(o),onBeforeShow:f,onBeforeHide:p,onShow:v,onHide:h}),{content:nt(()=>[g.title?(F(),K("div",{key:0,class:re(C(i).e("title")),role:"title"},We(g.title),3)):xe("v-if",!0),ft(g.$slots,"default",{},()=>[xn(We(g.content),1)])]),default:nt(()=>[g.$slots.reference?ft(g.$slots,"reference",{key:0}):xe("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var uZe=Jt(lZe,[["__file","popover.vue"]]);const nee=(e,t)=>{const n=t.arg||t.value,r=n?.popperRef;r&&(r.triggerRef=e)};var cZe={mounted(e,t){nee(e,t)},updated(e,t){nee(e,t)}};const dZe="popover",lbe=pBe(cZe,dZe),fZe=er(uZe,{directive:lbe}),pZe=Kt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:it(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:it([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:it(Function),default:e=>`${e}%`}}),hZe=tt({name:"ElProgress"}),gZe=tt({...hZe,props:pZe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=zt("progress"),o=J(()=>{const b={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},w=m(t.percentage);return w.includes("gradient")?b.background=w:b.backgroundColor=w,b}),i=J(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=J(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=J(()=>{const b=a.value,w=t.type==="dashboard";return`
- M 50 50
- m 0 ${w?"":"-"}${b}
- a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
- a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
- `}),l=J(()=>2*Math.PI*a.value),u=J(()=>t.type==="dashboard"?.75:1),d=J(()=>`${-1*l.value*(1-u.value)/2}px`),c=J(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),f=J(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=J(()=>{let b;return t.color?b=m(t.percentage):b=n[t.status]||n.default,b}),v=J(()=>t.status==="warning"?Nb:t.type==="line"?t.status==="success"?mH:Yd:t.status==="success"?_C:cu),h=J(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=J(()=>t.format(t.percentage));function y(b){const w=100/b.length;return b.map((S,k)=>In(S)?{color:S,percentage:(k+1)*w}:S).sort((S,k)=>S.percentage-k.percentage)}const m=b=>{var w;const{color:A}=t;if(Pn(A))return A(b);if(In(A))return A;{const S=y(A);for(const k of S)if(k.percentage>b)return k.color;return(w=S[S.length-1])==null?void 0:w.color}};return(b,w)=>(F(),K("div",{class:re([C(r).b(),C(r).m(b.type),C(r).is(b.status),{[C(r).m("without-text")]:!b.showText,[C(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(F(),K("div",{key:0,class:re(C(r).b("bar"))},[x("div",{class:re(C(r).be("bar","outer")),style:Xt({height:`${b.strokeWidth}px`})},[x("div",{class:re([C(r).be("bar","inner"),{[C(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[C(r).bem("bar","inner","striped")]:b.striped},{[C(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:Xt(C(o))},[(b.showText||b.$slots.default)&&b.textInside?(F(),K("div",{key:0,class:re(C(r).be("bar","innerText"))},[ft(b.$slots,"default",{percentage:b.percentage},()=>[x("span",null,We(C(g)),1)])],2)):xe("v-if",!0)],6)],6)],2)):(F(),K("div",{key:1,class:re(C(r).b("circle")),style:Xt({height:`${b.width}px`,width:`${b.width}px`})},[(F(),K("svg",{viewBox:"0 0 100 100"},[x("path",{class:re(C(r).be("circle","track")),d:C(s),stroke:`var(${C(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":C(i),fill:"none",style:Xt(C(c))},null,14,["d","stroke","stroke-linecap","stroke-width"]),x("path",{class:re(C(r).be("circle","path")),d:C(s),stroke:C(p),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":C(i),style:Xt(C(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(F(),K("div",{key:2,class:re(C(r).e("text")),style:Xt({fontSize:`${C(h)}px`})},[ft(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(F(),mt(C(Dn),{key:1},{default:nt(()=>[(F(),mt(hr(C(v))))]),_:1})):(F(),K("span",{key:0},We(C(g)),1))])],6)):xe("v-if",!0)],10,["aria-valuenow"]))}});var vZe=Jt(gZe,[["__file","progress.vue"]]);const ube=er(vZe),mZe=Kt({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:it([Array,Object]),default:()=>fi(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:it([Array,Object]),default:()=>[cx,cx,cx]},voidIcon:{type:vo,default:()=>SLe},disabledVoidIcon:{type:vo,default:()=>cx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:it(Array),default:()=>fi(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ba,clearable:Boolean,...Es(["ariaLabel"])}),yZe={[Tr]:e=>Ln(e),[Gn]:e=>Ln(e)},bZe=tt({name:"ElRate"}),wZe=tt({...bZe,props:mZe,emits:yZe,setup(e,{expose:t,emit:n}){const r=e;function o(U,j){const H=$=>ar($),G=Object.keys(j).map($=>+$).filter($=>{const L=j[$];return(H(L)?L.excluded:!1)?U<$:U<=$}).sort(($,L)=>$-L),Z=j[G[0]];return H(Z)&&Z.value||Z}const i=cn(rm,void 0),a=cn(Fd,void 0),s=fa(),l=zt("rate"),{inputId:u,isLabeledByFormItem:d}=ac(r,{formItemContext:a}),c=Q(r.modelValue),f=Q(-1),p=Q(!0),v=J(()=>[l.b(),l.m(s.value)]),h=J(()=>r.disabled||i?.disabled),g=J(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),y=J(()=>{let U="";return r.showScore?U=r.scoreTemplate.replace(/\{\s*value\s*\}/,h.value?`${r.modelValue}`:`${c.value}`):r.showText&&(U=r.texts[Math.ceil(c.value)-1]),U}),m=J(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=J(()=>qt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=J(()=>{const U=o(c.value,b.value);return ar(U)?"":U}),A=J(()=>{let U="";return h.value?U=`${m.value}%`:r.allowHalf&&(U="50%"),{color:w.value,width:U}}),S=J(()=>{let U=qt(r.icons)?[...r.icons]:{...r.icons};return U=Id(U),qt(U)?{[r.lowThreshold]:U[0],[r.highThreshold]:{value:U[1],excluded:!0},[r.max]:U[2]}:U}),k=J(()=>o(r.modelValue,S.value)),M=J(()=>h.value?In(r.disabledVoidIcon)?r.disabledVoidIcon:Id(r.disabledVoidIcon):In(r.voidIcon)?r.voidIcon:Id(r.voidIcon)),D=J(()=>o(c.value,S.value));function P(U){const j=h.value&&m.value>0&&U-1<r.modelValue&&U>r.modelValue,H=r.allowHalf&&p.value&&U-.5<=c.value&&U>c.value;return j||H}function O(U){r.clearable&&U===r.modelValue&&(U=0),n(Gn,U),r.modelValue!==U&&n(Tr,U)}function _(U){h.value||(r.allowHalf&&p.value?O(c.value):O(U))}function B(U){if(h.value)return;let j=c.value;const H=U.code;return H===gn.up||H===gn.right?(r.allowHalf?j+=.5:j+=1,U.stopPropagation(),U.preventDefault()):(H===gn.left||H===gn.down)&&(r.allowHalf?j-=.5:j-=1,U.stopPropagation(),U.preventDefault()),j=j<0?0:j,j=j>r.max?r.max:j,n(Gn,j),n(Tr,j),j}function N(U,j){if(!h.value){if(r.allowHalf&&j){let H=j.target;El(H,l.e("item"))&&(H=H.querySelector(`.${l.e("icon")}`)),(H.clientWidth===0||El(H,l.e("decimal")))&&(H=H.parentNode),p.value=j.offsetX*2<=H.clientWidth,c.value=p.value?U-.5:U}else c.value=U;f.value=U}}function q(){h.value||(r.allowHalf&&(p.value=r.modelValue!==Math.floor(r.modelValue)),c.value=r.modelValue,f.value=-1)}return St(()=>r.modelValue,U=>{c.value=U,p.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Gn,0),t({setCurrentValue:N,resetCurrentValue:q}),(U,j)=>{var H;return F(),K("div",{id:C(u),class:re([C(v),C(l).is("disabled",C(h))]),role:"slider","aria-label":C(d)?void 0:U.ariaLabel||"rating","aria-labelledby":C(d)?(H=C(a))==null?void 0:H.labelId:void 0,"aria-valuenow":c.value,"aria-valuetext":C(y)||void 0,"aria-valuemin":"0","aria-valuemax":U.max,tabindex:"0",style:Xt(C(g)),onKeydown:B},[(F(!0),K(Pt,null,an(U.max,(G,Z)=>(F(),K("span",{key:Z,class:re(C(l).e("item")),onMousemove:$=>N(G,$),onMouseleave:q,onClick:$=>_(G)},[Ve(C(Dn),{class:re([C(l).e("icon"),{hover:f.value===G},C(l).is("active",G<=c.value)])},{default:nt(()=>[P(G)?xe("v-if",!0):(F(),K(Pt,{key:0},[ln((F(),mt(hr(C(D)),null,null,512)),[[Ar,G<=c.value]]),ln((F(),mt(hr(C(M)),null,null,512)),[[Ar,!(G<=c.value)]])],64)),P(G)?(F(),K(Pt,{key:1},[(F(),mt(hr(C(M)),{class:re([C(l).em("decimal","box")])},null,8,["class"])),Ve(C(Dn),{style:Xt(C(A)),class:re([C(l).e("icon"),C(l).e("decimal")])},{default:nt(()=>[(F(),mt(hr(C(k))))]),_:1},8,["style","class"])],64)):xe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),U.showText||U.showScore?(F(),K("span",{key:0,class:re(C(l).e("text")),style:Xt({color:U.textColor})},We(C(y)),7)):xe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var AZe=Jt(wZe,[["__file","rate.vue"]]);const CZe=er(AZe),Sg={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},ree={[Sg.primary]:j3,[Sg.success]:MBe,[Sg.warning]:Nb,[Sg.error]:yH,[Sg.info]:j3},xZe=Kt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),SZe=tt({name:"ElResult"}),EZe=tt({...SZe,props:xZe,setup(e){const t=e,n=zt("result"),r=J(()=>{const o=t.icon,i=o&&Sg[o]?Sg[o]:"icon-info",a=ree[i]||ree["icon-info"];return{class:i,component:a}});return(o,i)=>(F(),K("div",{class:re(C(n).b())},[x("div",{class:re(C(n).e("icon"))},[ft(o.$slots,"icon",{},()=>[C(r).component?(F(),mt(hr(C(r).component),{key:0,class:re(C(r).class)},null,8,["class"])):xe("v-if",!0)])],2),o.title||o.$slots.title?(F(),K("div",{key:0,class:re(C(n).e("title"))},[ft(o.$slots,"title",{},()=>[x("p",null,We(o.title),1)])],2)):xe("v-if",!0),o.subTitle||o.$slots["sub-title"]?(F(),K("div",{key:1,class:re(C(n).e("subtitle"))},[ft(o.$slots,"sub-title",{},()=>[x("p",null,We(o.subTitle),1)])],2)):xe("v-if",!0),o.$slots.extra?(F(),K("div",{key:2,class:re(C(n).e("extra"))},[ft(o.$slots,"extra")],2)):xe("v-if",!0)],2))}});var kZe=Jt(EZe,[["__file","result.vue"]]);const TZe=er(kZe),_Ze=["start","center","end","space-around","space-between","space-evenly"],DZe=["top","middle","bottom"],IZe=Kt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:_Ze,default:"start"},align:{type:String,values:DZe}}),OZe=tt({name:"ElRow"}),MZe=tt({...OZe,props:IZe,setup(e){const t=e,n=zt("row"),r=J(()=>t.gutter);Sr(aye,{gutter:r});const o=J(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=J(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,s)=>(F(),mt(hr(a.tag),{class:re(C(i)),style:Xt(C(o))},{default:nt(()=>[ft(a.$slots,"default")]),_:3},8,["class","style"]))}});var PZe=Jt(MZe,[["__file","row.vue"]]);const NZe=er(PZe),RZe=tt({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:zt("select")}}});function BZe(e,t,n,r,o,i){return F(),K("div",{class:re(e.ns.be("group","title")),style:Xt({...e.style,lineHeight:`${e.height}px`})},We(e.item.label),7)}var LZe=Jt(RZe,[["render",BZe],["__file","group-item.vue"]]);function FZe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const UZe=Kt({allowCreate:Boolean,autocomplete:{type:it(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:vo,default:Yd},effect:{type:it(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:it(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:it([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:it(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:it(Array),required:!0},placeholder:{type:String},teleported:oi.teleported,persistent:{type:Boolean,default:!0},popperClass:oi.popperClass,popperStyle:oi.popperStyle,popperOptions:{type:it(Object),default:()=>({})},remote:Boolean,size:ba,props:{type:it(Object),default:()=>lW},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:it(String),values:vp,default:"bottom-start"},fallbackPlacements:{type:it(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Qf.type,default:"info"},tagEffect:{...Qf.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:oi.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Co(e)||Ln(e)}},suffixIcon:{type:vo,default:Kc},...nm,...Es(["ariaLabel"])}),$Ze=Kt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:it(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),zZe={[Gn]:e=>!0,[Tr]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jZe={hover:e=>Ln(e),select:(e,t)=>!0},pW=Symbol("ElSelectV2Injection"),HZe=tt({props:$Ze,emits:jZe,setup(e,{emit:t}){const n=cn(pW),r=zt("select"),{hoverItem:o,selectOptionClick:i}=FZe(e,{emit:t}),{getLabel:a}=RC(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function WZe(e,t,n,r,o,i){return F(),K("li",{"aria-selected":e.selected,style:Xt(e.style),class:re([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:Qt(e.selectOptionClick,["stop"])},[ft(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[x("span",null,We(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var VZe=Jt(HZe,[["render",WZe],["__file","option-item.vue"]]),oee=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function qZe(e,t){return!!(e===t||oee(e)&&oee(t))}function GZe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!qZe(e[n],t[n]))return!1;return!0}function KZe(e,t){t===void 0&&(t=GZe);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}const cbe=()=>{const t=vr().proxy.$props;return J(()=>{const n=(r,o,i)=>({});return t.perfMode?q_(n):KZe(n)})},NL=50,CE="itemRendered",xE="scroll",R1="forward",SE="backward",Ru="auto",lD="smart",Z3="start",wd="center",X3="end",By="horizontal",hW="vertical",QZe="ltr",X1="rtl",J3="negative",gW="positive-ascending",vW="positive-descending",YZe={[By]:"left",[hW]:"top"},ZZe=20,XZe={[By]:"deltaX",[hW]:"deltaY"},JZe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{Tv(o);const u=l[XZe[n.value]];a(i)&&a(i+u)||(i+=u,wH()||l.preventDefault(),o=r0(()=>{r(i),i=0}))}}},RL=Gc({type:it([Number,Function]),required:!0}),BL=Gc({type:Number}),LL=Gc({type:Number,default:2}),eXe=Gc({type:String,values:["ltr","rtl"],default:"ltr"}),FL=Gc({type:Number,default:0}),EE=Gc({type:Number,required:!0}),dbe=Gc({type:String,values:["horizontal","vertical"],default:hW}),fbe=Kt({className:{type:String,default:""},containerElement:{type:it([String,Object]),default:"div"},data:{type:it(Array),default:()=>fi([])},direction:eXe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:it([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),pbe=Kt({cache:LL,estimatedItemSize:BL,layout:dbe,initScrollOffset:FL,total:EE,itemSize:RL,...fbe}),UL={type:Number,default:6},hbe={type:Number,default:0},gbe={type:Number,default:2},Kg=Kt({columnCache:LL,columnWidth:RL,estimatedColumnWidth:BL,estimatedRowHeight:BL,initScrollLeft:FL,initScrollTop:FL,itemKey:{type:it(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:LL,rowHeight:RL,totalColumn:EE,totalRow:EE,hScrollbarSize:UL,vScrollbarSize:UL,scrollbarStartGap:hbe,scrollbarEndGap:gbe,role:String,...fbe}),vbe=Kt({alwaysOn:Boolean,class:String,layout:dbe,total:EE,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:UL,startGap:hbe,endGap:gbe,visible:Boolean}),Bg=(e,t)=>e<t?R1:SE,eA=e=>e===QZe||e===X1||e===By,iee=e=>e===X1;let Pm=null;function kE(e=!1){if(Pm===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Pm=vW:(t.scrollLeft=1,t.scrollLeft===0?Pm=J3:Pm=gW),document.body.removeChild(t),Pm}return Pm}function tXe({move:e,size:t,bar:n},r){const o={},i=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=i,r==="horizontal"?o.height="100%":o.width="100%",o}const $L=tt({name:"ElVirtualScrollBar",props:vbe,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=J(()=>e.startGap+e.endGap),r=zt("virtual-scrollbar"),o=zt("scrollbar"),i=Q(),a=Q();let s=null,l=null;const u=Ur({isDragging:!1,traveled:0}),d=J(()=>i1e[e.layout]),c=J(()=>e.clientSize-C(n)),f=J(()=>({position:"absolute",width:`${By===e.layout?c.value:e.scrollbarSize}px`,height:`${By===e.layout?e.scrollbarSize:c.value}px`,[YZe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=J(()=>{const S=e.ratio;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*c.value/100;const k=c.value/3;return Math.floor(Math.min(Math.max(S*c.value/100,ZZe),k))}),v=J(()=>{if(!Number.isFinite(p.value))return{display:"none"};const S=`${p.value}px`;return tXe({bar:d.value,size:S,move:u.traveled},e.layout)}),h=J(()=>Math.ceil(e.clientSize-p.value-C(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const S=C(a);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w,{passive:!0}),S.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const S=C(a);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",b))},m=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[d.value.axis]=S.currentTarget[d.value.offset]-(S[d.value.client]-S.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),y()},w=S=>{const{isDragging:k}=u;if(!k||!a.value||!i.value)return;const M=u[d.value.axis];if(!M)return;Tv(s);const D=(i.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,P=a.value[d.value.offset]-M,O=D-P;s=r0(()=>{u.traveled=Math.max(0,Math.min(O,h.value)),t("scroll",O,h.value)})},A=S=>{const k=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),M=a.value[d.value.offset]/2,D=k-M;u.traveled=Math.max(0,Math.min(D,h.value)),t("scroll",D,h.value)};return St(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*h.value))}),Qr(()=>{y()}),()=>Fn("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:Qt(A,["stop","prevent"]),onTouchstartPrevent:m},Fn("div",{ref:a,class:o.e("thumb"),style:v.value,onMousedown:m},[]))}}),mbe=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>tt({name:e??"ElVirtualList",props:pbe,emits:[CE,xE],setup(d,{emit:c,expose:f}){u(d);const p=vr(),v=zt("vl"),h=Q(s(d,p)),g=cbe(),y=Q(),m=Q(),b=Q(),w=Q({isScrolling:!1,scrollDir:"forward",scrollOffset:Ln(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),A=J(()=>{const{total:W,cache:ie}=d,{isScrolling:ee,scrollDir:te,scrollOffset:X}=C(w);if(W===0)return[0,0,0,0];const ue=i(d,X,C(h)),ve=a(d,ue,X,C(h)),Me=!ee||te===SE?Math.max(1,ie):1,we=!ee||te===R1?Math.max(1,ie):1;return[Math.max(0,ue-Me),Math.max(0,Math.min(W-1,ve+we)),ue,ve]}),S=J(()=>o(d,C(h))),k=J(()=>eA(d.layout)),M=J(()=>[{position:"relative",[`overflow-${k.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Ln(d.height)?`${d.height}px`:d.height,width:Ln(d.width)?`${d.width}px`:d.width},d.style]),D=J(()=>{const W=C(S),ie=C(k);return{height:ie?"100%":`${W}px`,pointerEvents:C(w).isScrolling?"none":void 0,width:ie?`${W}px`:"100%"}}),P=J(()=>k.value?d.width:d.height),{onWheel:O}=JZe({atStartEdge:J(()=>w.value.scrollOffset<=0),atEndEdge:J(()=>w.value.scrollOffset>=S.value),layout:J(()=>d.layout)},W=>{var ie,ee;(ee=(ie=b.value).onMouseUp)==null||ee.call(ie),j(Math.min(w.value.scrollOffset+W,S.value-P.value))});Mo(y,"wheel",O,{passive:!1});const _=()=>{const{total:W}=d;if(W>0){const[X,ue,ve,Me]=C(A);c(CE,X,ue,ve,Me)}const{scrollDir:ie,scrollOffset:ee,updateRequested:te}=C(w);c(xE,ie,ee,te)},B=W=>{const{clientHeight:ie,scrollHeight:ee,scrollTop:te}=W.currentTarget,X=C(w);if(X.scrollOffset===te)return;const ue=Math.max(0,Math.min(te,ee-ie));w.value={...X,isScrolling:!0,scrollDir:Bg(X.scrollOffset,ue),scrollOffset:ue,updateRequested:!1},Vt(Z)},N=W=>{const{clientWidth:ie,scrollLeft:ee,scrollWidth:te}=W.currentTarget,X=C(w);if(X.scrollOffset===ee)return;const{direction:ue}=d;let ve=ee;if(ue===X1)switch(kE()){case J3:{ve=-ee;break}case vW:{ve=te-ie-ee;break}}ve=Math.max(0,Math.min(ve,te-ie)),w.value={...X,isScrolling:!0,scrollDir:Bg(X.scrollOffset,ve),scrollOffset:ve,updateRequested:!1},Vt(Z)},q=W=>{C(k)?N(W):B(W),_()},U=(W,ie)=>{const ee=(S.value-P.value)/ie*W;j(Math.min(S.value-P.value,ee))},j=W=>{W=Math.max(W,0),W!==C(w).scrollOffset&&(w.value={...C(w),scrollOffset:W,scrollDir:Bg(C(w).scrollOffset,W),updateRequested:!0},Vt(Z))},H=(W,ie=Ru)=>{const{scrollOffset:ee}=C(w);W=Math.max(0,Math.min(W,d.total-1)),j(t(d,W,ie,ee,C(h)))},G=W=>{const{direction:ie,itemSize:ee,layout:te}=d,X=g.value(l&&ee,l&&te,l&&ie);let ue;if(Zr(X,String(W)))ue=X[W];else{const ve=r(d,W,C(h)),Me=n(d,W,C(h)),we=C(k),he=ie===X1,Te=we?ve:0;X[W]=ue={position:"absolute",left:he?void 0:`${Te}px`,right:he?`${Te}px`:void 0,top:we?0:`${ve}px`,height:we?"100%":`${Me}px`,width:we?`${Me}px`:"100%"}}return ue},Z=()=>{w.value.isScrolling=!1,Vt(()=>{g.value(-1,null,null)})},$=()=>{const W=y.value;W&&(W.scrollTop=0)};jn(()=>{if(!Kr)return;const{initScrollOffset:W}=d,ie=C(y);Ln(W)&&ie&&(C(k)?ie.scrollLeft=W:ie.scrollTop=W),_()}),Wc(()=>{const{direction:W,layout:ie}=d,{scrollOffset:ee,updateRequested:te}=C(w),X=C(y);if(te&&X)if(ie===By)if(W===X1)switch(kE()){case J3:{X.scrollLeft=-ee;break}case gW:{X.scrollLeft=ee;break}default:{const{clientWidth:ue,scrollWidth:ve}=X;X.scrollLeft=ve-ue-ee;break}}else X.scrollLeft=ee;else X.scrollTop=ee}),xb(()=>{C(y).scrollTop=C(w).scrollOffset});const L={ns:v,clientSize:P,estimatedTotalSize:S,windowStyle:M,windowRef:y,innerRef:m,innerStyle:D,itemsToRender:A,scrollbarRef:b,states:w,getItemStyle:G,onScroll:q,onScrollbarScroll:U,onWheel:O,scrollTo:j,scrollToItem:H,resetScrollTop:$};return f({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:j,scrollToItem:H,resetScrollTop:$,states:w}),L},render(d){var c;const{$slots:f,className:p,clientSize:v,containerElement:h,data:g,getItemStyle:y,innerElement:m,itemsToRender:b,innerStyle:w,layout:A,total:S,onScroll:k,onScrollbarScroll:M,states:D,useIsScrolling:P,windowStyle:O,ns:_}=d,[B,N]=b,q=hr(h),U=hr(m),j=[];if(S>0)for(let $=B;$<=N;$++)j.push(Fn(Pt,{key:$},(c=f.default)==null?void 0:c.call(f,{data:g,index:$,isScrolling:P?D.isScrolling:void 0,style:y($)})));const H=[Fn(U,{style:w,ref:"innerRef"},In(U)?j:{default:()=>j})],G=Fn($L,{ref:"scrollbarRef",clientSize:v,layout:A,onScroll:M,ratio:v*100/this.estimatedTotalSize,scrollFrom:D.scrollOffset/(this.estimatedTotalSize-v),total:S,alwaysOn:D.scrollbarAlwaysOn}),Z=Fn(q,{class:[_.e("window"),p],style:O,onScroll:k,ref:"windowRef",key:0},In(q)?[H]:{default:()=>[H]});return Fn("div",{key:0,class:[_.e("wrapper"),D.scrollbarAlwaysOn?"always-on":""]},[Z,G])}}),ybe=mbe({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,a,s)=>{const l=eA(r)?o:e,u=Math.max(0,t*n-l),d=Math.min(u,i*n),c=Math.max(0,(i+1)*n-l);switch(a===lD&&(s>=c-l&&s<=d+l?a=Ru:a=wd),a){case Z3:return d;case X3:return c;case wd:{const f=Math.round(c+(d-c)/2);return f<Math.ceil(l/2)?0:f>u+Math.floor(l/2)?u:f}case Ru:default:return s>=c&&s<=d?s:s<c?c:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},i,a)=>{const s=i*n,l=eA(r)?o:e,u=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),B1=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const s=o[i];a=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);o[s]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return o[t]},nXe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?bbe(e,t,0,o,n):rXe(e,t,Math.max(0,o),n)},bbe=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=B1(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return Math.max(0,n-1)},rXe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&B1(e,n,t).offset<r;)n+=i,i*=2;return bbe(e,t,Math.floor(n/2),Math.min(n,o-1),r)},aee=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},oXe=mbe({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>B1(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:aee,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=eA(a)?s:i,u=B1(e,t,o),d=aee(e,o),c=Math.max(0,Math.min(d-l,u.offset)),f=Math.max(0,u.offset-l+u.size);switch(n===lD&&(r>=f-l&&r<=c+l?n=Ru:n=wd),n){case Z3:return c;case X3:return f;case wd:return Math.round(f+(c-f)/2);case Ru:default:return r>=f&&r<=c?r:r<f?f:c}},getStartIndexForOffset:(e,t,n)=>nXe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=eA(a)?s:o,u=B1(e,t,r),d=n+l;let c=u.offset+u.size,f=t;for(;f<i-1&&c<d;)f++,c+=B1(e,f,r).size;return f},initCache({estimatedItemSize:e=NL},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,o=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),o&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),iXe={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var aXe=tt({name:"ElSelectDropdown",props:iXe,setup(e,{slots:t,expose:n}){const r=cn(pW),o=zt("select"),{getLabel:i,getValue:a,getDisabled:s}=RC(r.props),l=Q([]),u=Q(),d=J(()=>e.data.length);St(()=>d.value,()=>{var O,_;(_=(O=r.tooltipRef.value)==null?void 0:O.updatePopper)==null||_.call(O)});const c=J(()=>$r(r.props.estimatedOptionHeight)),f=J(()=>c.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:O=>l.value[O]}),p=(O=[],_)=>{const{props:{valueKey:B}}=r;return ar(_)?O&&O.some(N=>Oo(Qi(N,B))===Qi(_,B)):O.includes(_)},v=(O,_)=>{if(ar(_)){const{valueKey:B}=r.props;return Qi(O,B)===Qi(_,B)}else return O===_},h=(O,_)=>r.props.multiple?p(O,a(_)):v(O,a(_)),g=(O,_)=>{const{disabled:B,multiple:N,multipleLimit:q}=r.props;return B||!_&&(N?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:u,isSized:c,isItemDisabled:g,isItemHovering:y,isItemSelected:h,scrollToItem:O=>{const _=u.value;_&&_.scrollToItem(O)},resetScrollTop:()=>{const O=u.value;O&&O.resetScrollTop()}});const A=O=>{const{index:_,data:B,style:N}=O,q=C(c),{itemSize:U,estimatedSize:j}=C(f),{modelValue:H}=r.props,{onSelect:G,onHover:Z}=r,$=B[_];if($.type==="Group")return Ve(LZe,{item:$,style:N,height:q?U:j},null);const L=h(H,$),W=g(H,L),ie=y(_);return Ve(VZe,pr(O,{selected:L,disabled:s($)||W,created:!!$.created,hovering:ie,item:$,onSelect:G,onHover:Z}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Ve("span",null,[i($)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=r,M=()=>{S("forward")},D=()=>{S("backward")},P=O=>{const{code:_}=O,{tab:B,esc:N,down:q,up:U,enter:j,numpadEnter:H}=gn;switch([N,q,U,j,H].includes(_)&&(O.preventDefault(),O.stopPropagation()),_){case B:case N:break;case q:M();break;case U:D();break;case j:case H:k();break}};return()=>{var O,_,B,N;const{data:q,width:U}=e,{height:j,multiple:H,scrollbarAlwaysOn:G}=r.props,Z=J(()=>fE?!0:G),$=C(c)?ybe:oXe;return Ve("div",{class:[o.b("dropdown"),o.is("multiple",H)],style:{width:`${U}px`}},[(O=t.header)==null?void 0:O.call(t),((_=t.loading)==null?void 0:_.call(t))||((B=t.empty)==null?void 0:B.call(t))||Ve($,pr({ref:u},C(f),{className:o.be("dropdown","list"),scrollbarAlwaysOn:Z.value,data:q,height:j,width:U,total:q.length,onKeydown:P}),{default:L=>Ve(A,L,null)}),(N=t.footer)==null?void 0:N.call(t)])}}});function sXe(e,t){const{aliasProps:n,getLabel:r,getValue:o}=RC(e),i=Q(0),a=Q(),s=J(()=>e.allowCreate&&e.filterable);St(()=>e.options,p=>{const v=new Set(p.map(h=>r(h)));t.createdOptions=t.createdOptions.filter(h=>!v.has(r(h)))});function l(p){const v=h=>r(h)===p;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function u(p){s.value&&(e.multiple&&p.created?i.value++:a.value=p)}function d(p){if(s.value)if(p&&p.length>0){if(l(p)){t.createdOptions=t.createdOptions.filter(h=>r(h)!==t.previousQuery);return}const v={[n.value.value]:p,[n.value.label]:p,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=i.value;else{const v=a.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function c(p){if(!s.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===r(p))return;const v=t.createdOptions.findIndex(h=>o(h)===o(p));~v&&(t.createdOptions.splice(v,1),i.value--)}function f(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:d,removeNewOption:c,selectNewOption:u,clearAllNewOption:f}}const lXe=(e,t)=>{const{t:n}=Hr(),r=zt("select"),o=zt("input"),{form:i,formItem:a}=ks(),{inputId:s}=ac(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:c,getOptions:f}=RC(e),{valueOnClear:p,isEmptyValue:v}=TC(e),h=Ur({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),g=Q(-1),y=Q(),m=Q(),b=Q(),w=Q(),A=Q(),S=Q(),k=Q(),M=Q(),D=Q(),P=Q(),{isComposing:O,handleCompositionStart:_,handleCompositionEnd:B,handleCompositionUpdate:N}=IC({afterComposition:wt=>Mn(wt)}),q=J(()=>e.disabled||!!i?.disabled),{wrapperRef:U,isFocused:j,handleBlur:H}=gp(A,{disabled:q,afterFocus(){e.automaticDropdown&&!L.value&&(L.value=!0,h.menuVisibleOnFocus=!0)},beforeBlur(wt){var Gt,An;return((Gt=b.value)==null?void 0:Gt.isFocusInsideContent(wt))||((An=w.value)==null?void 0:An.isFocusInsideContent(wt))},afterBlur(){var wt;L.value=!1,h.menuVisibleOnFocus=!1,e.validateEvent&&((wt=a?.validate)==null||wt.call(a,"blur").catch(Gt=>void 0))}}),G=J(()=>be("")),Z=J(()=>e.loading?!1:e.options.length>0||h.createdOptions.length>0),$=Q([]),L=Q(!1),W=J(()=>{var wt;return(wt=i?.statusIcon)!=null?wt:!1}),ie=J(()=>{const wt=$.value.length*e.itemHeight;return wt>e.height?e.height:wt}),ee=J(()=>e.multiple?qt(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),te=J(()=>e.clearable&&!q.value&&ee.value&&(j.value||h.inputHovering)),X=J(()=>e.remote&&e.filterable?"":e.suffixIcon),ue=J(()=>X.value&&r.is("reverse",L.value)),ve=J(()=>a?.validateState||""),Me=J(()=>{if(ve.value)return Z_[ve.value]}),we=J(()=>e.remote?300:0),he=J(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!h.inputValue&&!Z.value?!1:e.filterable&&h.inputValue&&Z.value&&$.value.length===0?e.noMatchText||n("el.select.noMatch"):Z.value?null:e.noDataText||n("el.select.noData")),Te=J(()=>e.filterable&&Pn(e.filterMethod)),Y=J(()=>e.filterable&&e.remote&&Pn(e.remoteMethod)),be=wt=>{const Gt=new RegExp(uW(wt),"i"),An=Rn=>Te.value||Y.value?!0:wt?Gt.test(u(Rn)||""):!0;return e.loading?[]:[...h.createdOptions,...e.options].reduce((Rn,Kn)=>{const Fr=f(Kn);if(qt(Fr)){const ho=Fr.filter(An);ho.length>0&&Rn.push({label:u(Kn),type:"Group"},...ho)}else(e.remote||An(Kn))&&Rn.push(Kn);return Rn},[])},De=()=>{$.value=be(h.inputValue)},pe=J(()=>{const wt=new Map;return G.value.forEach((Gt,An)=>{wt.set(rt(d(Gt)),{option:Gt,index:An})}),wt}),oe=J(()=>{const wt=new Map;return $.value.forEach((Gt,An)=>{wt.set(rt(d(Gt)),{option:Gt,index:An})}),wt}),ce=J(()=>$.value.every(wt=>c(wt))),Re=fa(),Ee=J(()=>Re.value==="small"?"small":"default"),Le=()=>{var wt;if(Ln(e.fitInputWidth)){g.value=e.fitInputWidth;return}const Gt=((wt=y.value)==null?void 0:wt.offsetWidth)||200;!e.fitInputWidth&&Z.value?Vt(()=>{g.value=Math.max(Gt,Fe())}):g.value=Gt},Fe=()=>{var wt,Gt;const Rn=document.createElement("canvas").getContext("2d"),Kn=r.be("dropdown","item"),ho=(((Gt=(wt=M.value)==null?void 0:wt.listRef)==null?void 0:Gt.innerRef)||document).querySelector(`.${Kn}`);if(ho===null||Rn===null)return 0;const Wr=getComputedStyle(ho),bo=Number.parseFloat(Wr.paddingLeft)+Number.parseFloat(Wr.paddingRight);return Rn.font=`bold ${Wr.font.replace(new RegExp(`\\b${Wr.fontWeight}\\b`),"")}`,$.value.reduce((yr,Vr)=>{const wo=Rn.measureText(u(Vr));return Math.max(wo.width,yr)},0)+bo},Pe=()=>{if(!m.value)return 0;const wt=window.getComputedStyle(m.value);return Number.parseFloat(wt.gap||"6px")},Ne=J(()=>{const wt=Pe(),Gt=e.filterable?wt+oW:0;return{maxWidth:`${P.value&&e.maxCollapseTags===1?h.selectionWidth-h.collapseItemWidth-wt-Gt:h.selectionWidth-Gt}px`}}),pt=J(()=>({maxWidth:`${h.selectionWidth}px`})),Rt=J(()=>qt(e.modelValue)?e.modelValue.length===0&&!h.inputValue:e.filterable?!h.inputValue:!0),Bt=J(()=>{var wt;const Gt=(wt=e.placeholder)!=null?wt:n("el.select.placeholder");return e.multiple||!ee.value?Gt:h.selectedLabel}),en=J(()=>{var wt,Gt;return(Gt=(wt=b.value)==null?void 0:wt.popperRef)==null?void 0:Gt.contentRef}),Wt=J(()=>{if(e.multiple){const wt=e.modelValue.length;if(e.modelValue.length>0&&oe.value.has(e.modelValue[wt-1])){const{index:Gt}=oe.value.get(e.modelValue[wt-1]);return Gt}}else if(!v(e.modelValue)&&oe.value.has(e.modelValue)){const{index:wt}=oe.value.get(e.modelValue);return wt}return-1}),Ut=J({get(){return L.value&&he.value!==!1},set(wt){L.value=wt}}),ct=J(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(0,e.maxCollapseTags):h.cachedOptions:[]),_t=J(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:st,removeNewOption:Ot,selectNewOption:Ae,clearAllNewOption:je}=sXe(e,h),at=()=>{q.value||(h.menuVisibleOnFocus?h.menuVisibleOnFocus=!1:L.value=!L.value)},gt=()=>{h.inputValue.length>0&&!L.value&&(L.value=!0),st(h.inputValue),Vt(()=>{Tn(h.inputValue)})},nn=Fl(gt,we.value),Tn=wt=>{h.previousQuery===wt||O.value||(h.previousQuery=wt,e.filterable&&Pn(e.filterMethod)?e.filterMethod(wt):e.filterable&&e.remote&&Pn(e.remoteMethod)&&e.remoteMethod(wt),e.defaultFirstOption&&(e.filterable||e.remote)&&$.value.length?Vt(He):Vt(bn))},He=()=>{const wt=$.value.filter(Rn=>!Rn.disabled&&Rn.type!=="Group"),Gt=wt.find(Rn=>Rn.created),An=wt[0];h.hoveringIndex=Be($.value,Gt||An)},ke=wt=>{ua(e.modelValue,wt)||t(Tr,wt)},me=wt=>{t(Gn,wt),ke(wt),h.previousValue=e.multiple?String(wt):wt,Vt(()=>{if(e.multiple&&qt(e.modelValue)){const Gt=h.cachedOptions.slice(),An=e.modelValue.map(Rn=>bt(Rn,Gt));ua(h.cachedOptions,An)||(h.cachedOptions=An)}else Yt(!0)})},Be=(wt=[],Gt)=>{if(!ar(Gt))return wt.indexOf(Gt);const An=e.valueKey;let Rn=-1;return wt.some((Kn,Fr)=>Qi(Kn,An)===Qi(Gt,An)?(Rn=Fr,!0):!1),Rn},rt=wt=>ar(wt)?Qi(wt,e.valueKey):wt,ht=()=>{Le()},rn=()=>{h.selectionWidth=Number.parseFloat(window.getComputedStyle(m.value).width)},Ye=()=>{h.collapseItemWidth=P.value.getBoundingClientRect().width},Je=()=>{var wt,Gt;(Gt=(wt=b.value)==null?void 0:wt.updatePopper)==null||Gt.call(wt)},lt=()=>{var wt,Gt;(Gt=(wt=w.value)==null?void 0:wt.updatePopper)==null||Gt.call(wt)},Ue=wt=>{if(e.multiple){let Gt=e.modelValue.slice();const An=Be(Gt,d(wt));An>-1?(Gt=[...Gt.slice(0,An),...Gt.slice(An+1)],h.cachedOptions.splice(An,1),Ot(wt)):(e.multipleLimit<=0||Gt.length<e.multipleLimit)&&(Gt=[...Gt,d(wt)],h.cachedOptions.push(wt),Ae(wt)),me(Gt),wt.created&&Tn(""),e.filterable&&!e.reserveKeyword&&(h.inputValue="")}else h.selectedLabel=u(wt),me(d(wt)),L.value=!1,Ae(wt),wt.created||je();ut()},ze=(wt,Gt)=>{let An=e.modelValue.slice();const Rn=Be(An,d(Gt));Rn>-1&&!q.value&&(An=[...e.modelValue.slice(0,Rn),...e.modelValue.slice(Rn+1)],h.cachedOptions.splice(Rn,1),me(An),t("remove-tag",d(Gt)),Ot(Gt)),wt.stopPropagation(),ut()},ut=()=>{var wt;(wt=A.value)==null||wt.focus()},yt=()=>{var wt;if(L.value){L.value=!1,Vt(()=>{var Gt;return(Gt=A.value)==null?void 0:Gt.blur()});return}(wt=A.value)==null||wt.blur()},jt=()=>{h.inputValue.length>0?h.inputValue="":L.value=!1},mn=wt=>Sme(wt,Gt=>!h.cachedOptions.some(An=>d(An)===Gt&&c(An))),Nn=wt=>{if(e.multiple&&wt.code!==gn.delete&&h.inputValue.length===0){wt.preventDefault();const Gt=e.modelValue.slice(),An=mn(Gt);if(An<0)return;const Rn=Gt[An];Gt.splice(An,1);const Kn=h.cachedOptions[An];h.cachedOptions.splice(An,1),Ot(Kn),me(Gt),t("remove-tag",Rn)}},xt=()=>{let wt;qt(e.modelValue)?wt=[]:wt=p.value,h.selectedLabel="",L.value=!1,me(wt),t("clear"),je(),ut()},sn=(wt,Gt=void 0)=>{const An=$.value;if(!["forward","backward"].includes(wt)||q.value||An.length<=0||ce.value||O.value)return;if(!L.value)return at();$r(Gt)&&(Gt=h.hoveringIndex);let Rn=-1;wt==="forward"?(Rn=Gt+1,Rn>=An.length&&(Rn=0)):wt==="backward"&&(Rn=Gt-1,(Rn<0||Rn>=An.length)&&(Rn=An.length-1));const Kn=An[Rn];if(c(Kn)||Kn.type==="Group")return sn(wt,Rn);h.hoveringIndex=Rn,Ke(Rn)},vt=()=>{if(L.value)~h.hoveringIndex&&$.value[h.hoveringIndex]&&Ue($.value[h.hoveringIndex]);else return at()},Nt=wt=>{h.hoveringIndex=wt??-1},bn=()=>{e.multiple?h.hoveringIndex=$.value.findIndex(wt=>e.modelValue.some(Gt=>rt(Gt)===rt(d(wt)))):h.hoveringIndex=$.value.findIndex(wt=>rt(d(wt))===rt(e.modelValue))},Mn=wt=>{if(h.inputValue=wt.target.value,e.remote)nn();else return gt()},tr=wt=>{if(L.value=!1,j.value){const Gt=new FocusEvent("blur",wt);H(Gt)}},dn=()=>(h.isBeforeHide=!1,Vt(()=>{~Wt.value&&Ke(h.hoveringIndex)})),Ke=wt=>{M.value.scrollToItem(wt)},bt=(wt,Gt)=>{const An=rt(wt);if(pe.value.has(An)){const{option:Rn}=pe.value.get(An);return Rn}if(Gt&&Gt.length){const Rn=Gt.find(Kn=>rt(d(Kn))===An);if(Rn)return Rn}return{[l.value.value]:wt,[l.value.label]:wt}},Yt=(wt=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Gt=h.cachedOptions.slice();h.cachedOptions.length=0,h.previousValue=e.modelValue.toString();for(const An of e.modelValue){const Rn=bt(An,Gt);h.cachedOptions.push(Rn)}}else h.cachedOptions=[],h.previousValue=void 0;else if(ee.value){h.previousValue=e.modelValue;const Gt=$.value,An=Gt.findIndex(Rn=>rt(d(Rn))===rt(e.modelValue));~An?h.selectedLabel=u(Gt[An]):(!h.selectedLabel||wt)&&(h.selectedLabel=rt(e.modelValue))}else h.selectedLabel="",h.previousValue=void 0;je(),Le()};return St(()=>e.fitInputWidth,()=>{Le()}),St(L,wt=>{wt?(e.persistent||Le(),Tn("")):(h.inputValue="",h.previousQuery=null,h.isBeforeHide=!0,st("")),t("visible-change",wt)}),St(()=>e.modelValue,(wt,Gt)=>{var An;(!wt||qt(wt)&&wt.length===0||e.multiple&&!ua(wt.toString(),h.previousValue)||!e.multiple&&rt(wt)!==rt(h.previousValue))&&Yt(!0),!ua(wt,Gt)&&e.validateEvent&&((An=a?.validate)==null||An.call(a,"change").catch(Kn=>void 0))},{deep:!0}),St(()=>e.options,()=>{const wt=A.value;(!wt||wt&&document.activeElement!==wt)&&Yt()},{deep:!0,flush:"post"}),St(()=>$.value,()=>(Le(),M.value&&Vt(M.value.resetScrollTop))),Cs(()=>{h.isBeforeHide||De()}),Cs(()=>{const{valueKey:wt,options:Gt}=e,An=new Map;for(const Rn of Gt){const Kn=d(Rn);let Fr=Kn;if(ar(Fr)&&(Fr=Qi(Kn,wt)),An.get(Fr))break;An.set(Fr,!0)}}),jn(()=>{Yt()}),li(y,ht),li(m,rn),li(M,Je),li(U,Je),li(D,lt),li(P,Ye),{inputId:s,collapseTagSize:Ee,currentPlaceholder:Bt,expanded:L,emptyText:he,popupHeight:ie,debounce:we,allOptions:G,filteredOptions:$,iconComponent:X,iconReverse:ue,tagStyle:Ne,collapseTagStyle:pt,popperSize:g,dropdownMenuVisible:Ut,hasModelValue:ee,shouldShowPlaceholder:Rt,selectDisabled:q,selectSize:Re,needStatusIcon:W,showClearBtn:te,states:h,isFocused:j,nsSelect:r,nsInput:o,inputRef:A,menuRef:M,tagMenuRef:D,tooltipRef:b,tagTooltipRef:w,selectRef:y,wrapperRef:U,selectionRef:m,prefixRef:S,suffixRef:k,collapseItemRef:P,popperRef:en,validateState:ve,validateIcon:Me,showTagList:ct,collapseTagList:_t,debouncedOnInputChange:nn,deleteTag:ze,getLabel:u,getValue:d,getDisabled:c,getValueKey:rt,handleClear:xt,handleClickOutside:tr,handleDel:Nn,handleEsc:jt,focus:ut,blur:yt,handleMenuEnter:dn,handleResize:ht,resetSelectionWidth:rn,updateTooltip:Je,updateTagTooltip:lt,updateOptions:De,toggleMenu:at,scrollTo:Ke,onInput:Mn,onKeyboardNavigate:sn,onKeyboardSelect:vt,onSelect:Ue,onHover:Nt,handleCompositionStart:_,handleCompositionEnd:B,handleCompositionUpdate:N}},uXe=tt({name:"ElSelectV2",components:{ElSelectMenu:aXe,ElTag:Dh,ElTooltip:ps,ElIcon:Dn},directives:{ClickOutside:Yf},props:UZe,emits:zZe,setup(e,{emit:t}){const n=J(()=>{const{modelValue:s,multiple:l}=e,u=l?[]:void 0;return qt(s)?l?s:u:l?u:s}),r=lXe(Ur({..._a(e),modelValue:n}),t),{calculatorRef:o,inputStyle:i}=iW();Sr(pW,{props:Ur({..._a(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const a=J(()=>e.multiple?r.states.cachedOptions.map(s=>s.label):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:a,calculatorRef:o,inputStyle:i}}});function cXe(e,t,n,r,o,i){const a=sr("el-tag"),s=sr("el-tooltip"),l=sr("el-icon"),u=sr("el-select-menu"),d=D_("click-outside");return ln((F(),K("div",{ref:"selectRef",class:re([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[Ve(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:c=>e.states.isBeforeHide=!1},{default:nt(()=>[x("div",{ref:"wrapperRef",class:re([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Qt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(F(),K("div",{key:0,ref:"prefixRef",class:re(e.nsSelect.e("prefix"))},[ft(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:re([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ft(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(F(!0),K(Pt,null,an(e.showTagList,c=>(F(),K("div",{key:e.getValueKey(e.getValue(c)),class:re(e.nsSelect.e("selected-item"))},[Ve(a,{closable:!e.selectDisabled&&!e.getDisabled(c),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Xt(e.tagStyle),onClose:f=>e.deleteTag(f,c)},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))},[ft(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[xn(We(e.getLabel(c)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(F(),mt(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:nt(()=>[x("div",{ref:"collapseItemRef",class:re(e.nsSelect.e("selected-item"))},[Ve(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Xt(e.collapseTagStyle),"disable-transitions":""},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))}," + "+We(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:nt(()=>[x("div",{ref:"tagMenuRef",class:re(e.nsSelect.e("selection"))},[(F(!0),K(Pt,null,an(e.collapseTagList,c=>(F(),K("div",{key:e.getValueKey(e.getValue(c)),class:re(e.nsSelect.e("selected-item"))},[Ve(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(c),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:f=>e.deleteTag(f,c)},{default:nt(()=>[x("span",{class:re(e.nsSelect.e("tags-text"))},[ft(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[xn(We(e.getLabel(c)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):xe("v-if",!0)]):xe("v-if",!0),x("div",{class:re([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ln(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":c=>e.states.inputValue=c,style:Xt(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:re([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[Lr(Qt(c=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),Lr(Qt(c=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),Lr(Qt(e.onKeyboardSelect,["stop","prevent"]),["enter"]),Lr(Qt(e.handleEsc,["stop","prevent"]),["esc"]),Lr(Qt(e.handleDel,["stop"]),["delete"])],onClick:Qt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[jr,e.states.inputValue]]),e.filterable?(F(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:re(e.nsSelect.e("input-calculator")),textContent:We(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(F(),K("div",{key:1,class:re([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ft(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,We(e.currentPlaceholder),1)]):(F(),K("span",{key:1},We(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:re(e.nsSelect.e("suffix"))},[e.iconComponent?ln((F(),mt(l,{key:0,class:re([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:nt(()=>[(F(),mt(hr(e.iconComponent)))]),_:1},8,["class"])),[[Ar,!e.showClearBtn]]):xe("v-if",!0),e.showClearBtn&&e.clearIcon?(F(),mt(l,{key:1,class:re([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Qt(e.handleClear,["prevent","stop"])},{default:nt(()=>[(F(),mt(hr(e.clearIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(F(),mt(l,{key:2,class:re([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:nt(()=>[(F(),mt(hr(e.validateIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],10,["onClick"])]),content:nt(()=>[Ve(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Ll({default:nt(c=>[ft(e.$slots,"default",Sl(Bd(c)))]),_:2},[e.$slots.header?{name:"header",fn:nt(()=>[x("div",{class:re(e.nsSelect.be("dropdown","header")),onClick:Qt(()=>{},["stop"])},[ft(e.$slots,"header")],10,["onClick"])])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:nt(()=>[x("div",{class:re(e.nsSelect.be("dropdown","loading"))},[ft(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:nt(()=>[x("div",{class:re(e.nsSelect.be("dropdown","empty"))},[ft(e.$slots,"empty",{},()=>[x("span",null,We(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:nt(()=>[x("div",{class:re(e.nsSelect.be("dropdown","footer")),onClick:Qt(()=>{},["stop"])},[ft(e.$slots,"footer")],10,["onClick"])])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var dXe=Jt(uXe,[["render",cXe],["__file","select.vue"]]);const fXe=er(dXe),pXe=Kt({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:it([Number,Object])}}),hXe=Kt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),gXe=tt({name:"ElSkeletonItem"}),vXe=tt({...gXe,props:hXe,setup(e){const t=zt("skeleton");return(n,r)=>(F(),K("div",{class:re([C(t).e("item"),C(t).e(n.variant)])},[n.variant==="image"?(F(),mt(C(aLe),{key:0})):xe("v-if",!0)],2))}});var TE=Jt(vXe,[["__file","skeleton-item.vue"]]);const mXe=(e,t=0)=>{if(t===0)return e;const n=ar(t)&&!!t.initVal,r=Q(n);let o=null;const i=s=>{if($r(s)){r.value=e.value;return}o&&clearTimeout(o),o=setTimeout(()=>{r.value=e.value},s)},a=s=>{s==="leading"?Ln(t)?i(t):i(t.leading):ar(t)?i(t.trailing):r.value=!1};return jn(()=>a("leading")),St(()=>e.value,s=>{a(s?"leading":"trailing")}),r},yXe=tt({name:"ElSkeleton"}),bXe=tt({...yXe,props:pXe,setup(e,{expose:t}){const n=e,r=zt("skeleton"),o=mXe(ao(n,"loading"),n.throttle);return t({uiLoading:o}),(i,a)=>C(o)?(F(),K("div",pr({key:0,class:[C(r).b(),C(r).is("animated",i.animated)]},i.$attrs),[(F(!0),K(Pt,null,an(i.count,s=>(F(),K(Pt,{key:s},[C(o)?ft(i.$slots,"template",{key:s},()=>[Ve(TE,{class:re(C(r).is("first")),variant:"p"},null,8,["class"]),(F(!0),K(Pt,null,an(i.rows,l=>(F(),mt(TE,{key:l,class:re([C(r).e("paragraph"),C(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):xe("v-if",!0)],64))),128))],16)):ft(i.$slots,"default",Sl(pr({key:1},i.$attrs)))}});var wXe=Jt(bXe,[["__file","skeleton.vue"]]);const AXe=er(wXe,{SkeletonItem:TE}),CXe=vi(TE),wbe=Symbol("sliderContextKey"),xXe=Kt({modelValue:{type:it([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:ba,inputSize:ba,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:it(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:it(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:vp,default:"top"},marks:{type:it(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Es(["ariaLabel"])}),AI=e=>Ln(e)||qt(e)&&e.every(Ln),SXe={[Gn]:AI,[ma]:AI,[Tr]:AI},EXe=Kt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:vp,default:"top"}}),kXe={[Gn]:e=>Ln(e)},TXe=(e,t,n)=>{const r=Q(),o=Q(!1),i=J(()=>t.value instanceof Function),a=J(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Fl(()=>{n.value&&(o.value=!0)},50),l=Fl(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:s,hideTooltip:l}},_Xe=(e,t,n)=>{const{disabled:r,min:o,max:i,step:a,showTooltip:s,persistent:l,precision:u,sliderSize:d,formatTooltip:c,emitChange:f,resetSize:p,updateDragging:v}=cn(wbe),{tooltip:h,tooltipVisible:g,formatValue:y,displayTooltip:m,hideTooltip:b}=TXe(e,c,s),w=Q(),A=J(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),S=J(()=>e.vertical?{bottom:A.value}:{left:A.value}),k=()=>{t.hovering=!0,m()},M=()=>{t.hovering=!1,t.dragging||b()},D=W=>{r.value||(W.preventDefault(),G(W),window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),window.addEventListener("mouseup",$),window.addEventListener("touchend",$),window.addEventListener("contextmenu",$),w.value.focus())},P=W=>{r.value||(t.newPosition=Number.parseFloat(A.value)+W/(i.value-o.value)*100,L(t.newPosition),f())},O=()=>{P(-a.value)},_=()=>{P(a.value)},B=()=>{P(-a.value*4)},N=()=>{P(a.value*4)},q=()=>{r.value||(L(0),f())},U=()=>{r.value||(L(100),f())},j=W=>{let ie=!0;switch(W.code){case gn.left:case gn.down:O();break;case gn.right:case gn.up:_();break;case gn.home:q();break;case gn.end:U();break;case gn.pageDown:B();break;case gn.pageUp:N();break;default:ie=!1;break}ie&&W.preventDefault()},H=W=>{let ie,ee;return W.type.startsWith("touch")?(ee=W.touches[0].clientY,ie=W.touches[0].clientX):(ee=W.clientY,ie=W.clientX),{clientX:ie,clientY:ee}},G=W=>{t.dragging=!0,t.isClick=!0;const{clientX:ie,clientY:ee}=H(W);e.vertical?t.startY=ee:t.startX=ie,t.startPosition=Number.parseFloat(A.value),t.newPosition=t.startPosition},Z=W=>{if(t.dragging){t.isClick=!1,m(),p();let ie;const{clientX:ee,clientY:te}=H(W);e.vertical?(t.currentY=te,ie=(t.startY-t.currentY)/d.value*100):(t.currentX=ee,ie=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ie,L(t.newPosition)}},$=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||L(t.newPosition),f()},0),window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",$),window.removeEventListener("touchend",$),window.removeEventListener("contextmenu",$))},L=async W=>{if(W===null||Number.isNaN(+W))return;W<0?W=0:W>100&&(W=100);const ie=100/((i.value-o.value)/a.value);let te=Math.round(W/ie)*ie*(i.value-o.value)*.01+o.value;te=Number.parseFloat(te.toFixed(u.value)),te!==e.modelValue&&n(Gn,te),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Vt(),t.dragging&&m(),h.value.updatePopper()};return St(()=>t.dragging,W=>{v(W)}),Mo(w,"touchstart",D,{passive:!1}),{disabled:r,button:w,tooltip:h,tooltipVisible:g,showTooltip:s,persistent:l,wrapperStyle:S,formatValue:y,handleMouseEnter:k,handleMouseLeave:M,onButtonDown:D,onKeyDown:j,setPosition:L}},DXe=tt({name:"ElSliderButton"}),IXe=tt({...DXe,props:EXe,emits:kXe,setup(e,{expose:t,emit:n}){const r=e,o=zt("slider"),i=Ur({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),a=J(()=>d.value?c.value:!1),{disabled:s,button:l,tooltip:u,showTooltip:d,persistent:c,tooltipVisible:f,wrapperStyle:p,formatValue:v,handleMouseEnter:h,handleMouseLeave:g,onButtonDown:y,onKeyDown:m,setPosition:b}=_Xe(r,i,n),{hovering:w,dragging:A}=_a(i);return t({onButtonDown:y,onKeyDown:m,setPosition:b,hovering:w,dragging:A}),(S,k)=>(F(),K("div",{ref_key:"button",ref:l,class:re([C(o).e("button-wrapper"),{hover:C(w),dragging:C(A)}]),style:Xt(C(p)),tabindex:C(s)?-1:0,onMouseenter:C(h),onMouseleave:C(g),onMousedown:C(y),onFocus:C(h),onBlur:C(g),onKeydown:C(m)},[Ve(C(ps),{ref_key:"tooltip",ref:u,visible:C(f),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!C(d),persistent:C(a)},{content:nt(()=>[x("span",null,We(C(v)),1)]),default:nt(()=>[x("div",{class:re([C(o).e("button"),{hover:C(w),dragging:C(A)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var see=Jt(IXe,[["__file","button.vue"]]);const OXe=Kt({mark:{type:it([String,Object]),default:void 0}});var MXe=tt({name:"ElSliderMarker",props:OXe,setup(e){const t=zt("slider"),n=J(()=>In(e.mark)?e.mark:e.mark.label),r=J(()=>In(e.mark)?void 0:e.mark.style);return()=>Fn("div",{class:t.e("marks-text"),style:r.value},n.value)}});const PXe=(e,t,n)=>{const{form:r,formItem:o}=ks(),i=Uo(),a=Q(),s=Q(),l={firstButton:a,secondButton:s},u=J(()=>e.disabled||r?.disabled||!1),d=J(()=>Math.min(t.firstValue,t.secondValue)),c=J(()=>Math.max(t.firstValue,t.secondValue)),f=J(()=>e.range?`${100*(c.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=J(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),v=J(()=>e.vertical?{height:e.height}:{}),h=J(()=>e.vertical?{height:f.value,bottom:p.value}:{width:f.value,left:p.value}),g=()=>{if(i.value){const _=i.value.getBoundingClientRect();t.sliderSize=_[e.vertical?"height":"width"]}},y=_=>{const B=e.min+_*(e.max-e.min)/100;if(!e.range)return a;let N;return Math.abs(d.value-B)<Math.abs(c.value-B)?N=t.firstValue<t.secondValue?"firstButton":"secondButton":N=t.firstValue>t.secondValue?"firstButton":"secondButton",l[N]},m=_=>{const B=y(_);return B.value.setPosition(_),B},b=_=>{t.firstValue=_??e.min,A(e.range?[d.value,c.value]:_??e.min)},w=_=>{t.secondValue=_,e.range&&A([d.value,c.value])},A=_=>{n(Gn,_),n(ma,_)},S=async()=>{await Vt(),n(Tr,e.range?[d.value,c.value]:e.modelValue)},k=_=>{var B,N,q,U,j,H;if(u.value||t.dragging)return;g();let G=0;if(e.vertical){const Z=(q=(N=(B=_.touches)==null?void 0:B.item(0))==null?void 0:N.clientY)!=null?q:_.clientY;G=(i.value.getBoundingClientRect().bottom-Z)/t.sliderSize*100}else{const Z=(H=(j=(U=_.touches)==null?void 0:U.item(0))==null?void 0:j.clientX)!=null?H:_.clientX,$=i.value.getBoundingClientRect().left;G=(Z-$)/t.sliderSize*100}if(!(G<0||G>100))return m(G)};return{elFormItem:o,slider:i,firstButton:a,secondButton:s,sliderDisabled:u,minValue:d,maxValue:c,runwayStyle:v,barStyle:h,resetSize:g,setPosition:m,emitChange:S,onSliderWrapperPrevent:_=>{var B,N;((B=l.firstButton.value)!=null&&B.dragging||(N=l.secondButton.value)!=null&&N.dragging)&&_.preventDefault()},onSliderClick:_=>{k(_)&&S()},onSliderDown:async _=>{const B=k(_);B&&(await Vt(),B.value.onButtonDown(_))},onSliderMarkerDown:_=>{if(u.value||t.dragging)return;m(_)&&S()},setFirstValue:b,setSecondValue:w}},NXe=(e,t,n,r)=>({stops:J(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,d)=>(d+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),RXe=e=>J(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),BXe=(e,t,n,r,o,i)=>{const a=u=>{o(Gn,u),o(ma,u)},s=()=>e.range?![n.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{var u,d;e.min>e.max&&Xi("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&qt(c)?c[1]<e.min?a([e.min,e.min]):c[0]>e.max?a([e.max,e.max]):c[0]<e.min?a([e.min,c[1]]):c[1]>e.max?a([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((u=i?.validate)==null||u.call(i,"change").catch(f=>void 0)),t.oldValue=c.slice())):!e.range&&Ln(c)&&!Number.isNaN(c)&&(c<e.min?a(e.min):c>e.max?a(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((d=i?.validate)==null||d.call(i,"change").catch(f=>void 0)),t.oldValue=c)))};l(),St(()=>t.dragging,u=>{u||l()}),St(()=>e.modelValue,(u,d)=>{t.dragging||qt(u)&&qt(d)&&u.every((c,f)=>c===d[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),St(()=>[e.min,e.max],()=>{l()})},LXe=(e,t,n)=>{const r=Q();return jn(async()=>{e.range?(qt(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Ln(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mo(window,"resize",n),await Vt(),n()}),{sliderWrapper:r}},FXe=tt({name:"ElSlider"}),UXe=tt({...FXe,props:xXe,emits:SXe,setup(e,{expose:t,emit:n}){const r=e,o=zt("slider"),{t:i}=Hr(),a=Ur({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:d,sliderDisabled:c,minValue:f,maxValue:p,runwayStyle:v,barStyle:h,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:b,onSliderDown:w,onSliderMarkerDown:A,setFirstValue:S,setSecondValue:k}=PXe(r,a,n),{stops:M,getStopStyle:D}=NXe(r,a,f,p),{inputId:P,isLabeledByFormItem:O}=ac(r,{formItemContext:s}),_=fa(),B=J(()=>r.inputSize||_.value),N=J(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),q=J(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):N.value),U=J(()=>r.formatValueText?r.formatValueText(W.value):`${W.value}`),j=J(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),H=J(()=>r.formatValueText?r.formatValueText(ie.value):`${ie.value}`),G=J(()=>[o.b(),o.m(_.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),Z=RXe(r);BXe(r,a,f,p,n,s);const $=J(()=>{const X=[r.min,r.max,r.step].map(ue=>{const ve=`${ue}`.split(".")[1];return ve?ve.length:0});return Math.max.apply(null,X)}),{sliderWrapper:L}=LXe(r,a,g),{firstValue:W,secondValue:ie,sliderSize:ee}=_a(a),te=X=>{a.dragging=X};return Mo(L,"touchstart",m,{passive:!1}),Mo(L,"touchmove",m,{passive:!1}),Sr(wbe,{..._a(r),sliderSize:ee,disabled:c,precision:$,emitChange:y,resetSize:g,updateDragging:te}),t({onSliderClick:b}),(X,ue)=>{var ve,Me;return F(),K("div",{id:X.range?C(P):void 0,ref_key:"sliderWrapper",ref:L,class:re(C(G)),role:X.range?"group":void 0,"aria-label":X.range&&!C(O)?C(N):void 0,"aria-labelledby":X.range&&C(O)?(ve=C(s))==null?void 0:ve.labelId:void 0},[x("div",{ref_key:"slider",ref:l,class:re([C(o).e("runway"),{"show-input":X.showInput&&!X.range},C(o).is("disabled",C(c))]),style:Xt(C(v)),onMousedown:C(w),onTouchstartPassive:C(w)},[x("div",{class:re(C(o).e("bar")),style:Xt(C(h))},null,6),Ve(see,{id:X.range?void 0:C(P),ref_key:"firstButton",ref:u,"model-value":C(W),vertical:X.vertical,"tooltip-class":X.tooltipClass,placement:X.placement,role:"slider","aria-label":X.range||!C(O)?C(q):void 0,"aria-labelledby":!X.range&&C(O)?(Me=C(s))==null?void 0:Me.labelId:void 0,"aria-valuemin":X.min,"aria-valuemax":X.range?C(ie):X.max,"aria-valuenow":C(W),"aria-valuetext":C(U),"aria-orientation":X.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),X.range?(F(),mt(see,{key:0,ref_key:"secondButton",ref:d,"model-value":C(ie),vertical:X.vertical,"tooltip-class":X.tooltipClass,placement:X.placement,role:"slider","aria-label":C(j),"aria-valuemin":C(W),"aria-valuemax":X.max,"aria-valuenow":C(ie),"aria-valuetext":C(H),"aria-orientation":X.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(k)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):xe("v-if",!0),X.showStops?(F(),K("div",{key:1},[(F(!0),K(Pt,null,an(C(M),(we,he)=>(F(),K("div",{key:he,class:re(C(o).e("stop")),style:Xt(C(D)(we))},null,6))),128))])):xe("v-if",!0),C(Z).length>0?(F(),K(Pt,{key:2},[x("div",null,[(F(!0),K(Pt,null,an(C(Z),(we,he)=>(F(),K("div",{key:he,style:Xt(C(D)(we.position)),class:re([C(o).e("stop"),C(o).e("marks-stop")])},null,6))),128))]),x("div",{class:re(C(o).e("marks"))},[(F(!0),K(Pt,null,an(C(Z),(we,he)=>(F(),mt(C(MXe),{key:he,mark:we.mark,style:Xt(C(D)(we.position)),onMousedown:Qt(Te=>C(A)(we.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):xe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),X.showInput&&!X.range?(F(),mt(C(tbe),{key:0,ref:"input","model-value":C(W),class:re(C(o).e("input")),step:X.step,disabled:C(c),controls:X.showInputControls,min:X.min,max:X.max,precision:C($),debounce:X.debounce,size:C(B),"onUpdate:modelValue":C(S),onChange:C(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):xe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var $Xe=Jt(UXe,[["__file","slider.vue"]]);const zXe=er($Xe),jXe=Kt({prefixCls:{type:String}}),lee=tt({name:"ElSpaceItem",props:jXe,setup(e,{slots:t}){const n=zt("space"),r=J(()=>`${e.prefixCls||n.b()}__item`);return()=>Fn("div",{class:r.value},ft(t,"default"))}}),uee={small:8,default:12,large:16};function HXe(e){const t=zt("space"),n=J(()=>[t.b(),t.m(e.direction),e.class]),r=Q(0),o=Q(0),i=J(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),a=J(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Cs(()=>{const{size:s="small",wrap:l,direction:u,fill:d}=e;if(qt(s)){const[c=0,f=0]=s;r.value=c,o.value=f}else{let c;Ln(s)?c=s:c=uee[s||"small"]||uee.small,(l||d)&&u==="horizontal"?r.value=o.value=c:u==="horizontal"?(r.value=c,o.value=0):(o.value=c,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:a}}const WXe=Kt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:it([String,Object,Array]),default:""},style:{type:it([String,Array,Object]),default:""},alignment:{type:it(String),default:"center"},prefixCls:{type:String},spacer:{type:it([Object,String,Number,Array]),default:null,validator:e=>jo(e)||Ln(e)||In(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Qd,validator:e=>Ln(e)||qt(e)&&e.length===2&&e.every(Ln)}}),VXe=tt({name:"ElSpace",props:WXe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=HXe(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((d,c)=>{bL(d)?qt(d.children)&&d.children.forEach((f,p)=>{bL(f)&&qt(f.children)?i(f.children,`${s+p}-`,l):jo(f)&&f?.type===la?l.push(f):l.push(Ve(lee,{style:o.value,prefixCls:u,key:`nested-${s+p}`},{default:()=>[f]},_u.PROPS|_u.STYLE,["style","prefixCls"]))}):rje(d)&&l.push(Ve(lee,{style:o.value,prefixCls:u,key:`LoopKey${s+c}`},{default:()=>[d]},_u.PROPS|_u.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=ft(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(qt(u.children)){let d=i(u.children);if(s){const c=d.length-1;d=d.reduce((f,p,v)=>{const h=[...f,p];return v!==c&&h.push(Ve("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:v},[jo(s)?s:xn(s,_u.TEXT)],_u.STYLE)),h},[])}return Ve("div",{class:n.value,style:r.value},d,_u.STYLE|_u.CLASS)}return u.children}}}),qXe=er(VXe),GXe=Kt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:it([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:it([String,Object,Array])}}),KXe=tt({name:"ElStatistic"}),QXe=tt({...KXe,props:GXe,setup(e,{expose:t}){const n=e,r=zt("statistic"),o=J(()=>{const{value:i,formatter:a,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(Pn(a))return a(i);if(!Ln(i)||Number.isNaN(i))return i;let[d,c=""]=String(i).split(".");return c=c.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,c].join(c?l:"")});return t({displayValue:o}),(i,a)=>(F(),K("div",{class:re(C(r).b())},[i.$slots.title||i.title?(F(),K("div",{key:0,class:re(C(r).e("head"))},[ft(i.$slots,"title",{},()=>[xn(We(i.title),1)])],2)):xe("v-if",!0),x("div",{class:re(C(r).e("content"))},[i.$slots.prefix||i.prefix?(F(),K("div",{key:0,class:re(C(r).e("prefix"))},[ft(i.$slots,"prefix",{},()=>[x("span",null,We(i.prefix),1)])],2)):xe("v-if",!0),x("span",{class:re(C(r).e("number")),style:Xt(i.valueStyle)},We(C(o)),7),i.$slots.suffix||i.suffix?(F(),K("div",{key:1,class:re(C(r).e("suffix"))},[ft(i.$slots,"suffix",{},()=>[x("span",null,We(i.suffix),1)])],2)):xe("v-if",!0)],2)],2))}});var YXe=Jt(QXe,[["__file","statistic.vue"]]);const Abe=er(YXe),ZXe=Kt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:it([Number,Object]),default:0},valueStyle:{type:it([String,Object,Array])}}),XXe={finish:()=>!0,[Tr]:e=>Ln(e)},JXe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],cee=e=>Ln(e)?new Date(e).getTime():e.valueOf(),dee=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return JXe.reduce((i,[a,s])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,d=>String(u).padStart(d.length,"0"))}return i},t).replace(r,"$1")},eJe=tt({name:"ElCountdown"}),tJe=tt({...eJe,props:ZXe,emits:XXe,setup(e,{expose:t,emit:n}){const r=e;let o;const i=Q(0),a=J(()=>dee(i.value,r.format)),s=d=>dee(d,r.format),l=()=>{o&&(Tv(o),o=void 0)},u=()=>{const d=cee(r.value),c=()=>{let f=d-Date.now();n(Tr,f),f<=0?(f=0,l(),n("finish")):o=r0(c),i.value=f};o=r0(c)};return jn(()=>{i.value=cee(r.value)-Date.now(),St(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),Qr(()=>{l()}),t({displayValue:a}),(d,c)=>(F(),mt(C(Abe),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:s},Ll({_:2},[an(d.$slots,(f,p)=>({name:p,fn:nt(()=>[ft(d.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var nJe=Jt(tJe,[["__file","countdown.vue"]]);const rJe=er(nJe),oJe=Kt({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),iJe={[Tr]:(e,t)=>[e,t].every(Ln)},Cbe="ElSteps",aJe=tt({name:"ElSteps"}),sJe=tt({...aJe,props:oJe,emits:iJe,setup(e,{emit:t}){const n=e,r=zt("steps"),{children:o,addChild:i,removeChild:a,ChildrenSorter:s}=nD(vr(),"ElStep");return St(o,()=>{o.value.forEach((l,u)=>{l.setIndex(u)})}),Sr(Cbe,{props:n,steps:o,addStep:i,removeStep:a}),St(()=>n.active,(l,u)=>{t(Tr,l,u)}),(l,u)=>(F(),K("div",{class:re([C(r).b(),C(r).m(l.simple?"simple":l.direction)])},[ft(l.$slots,"default"),Ve(C(s))],2))}});var lJe=Jt(sJe,[["__file","steps.vue"]]);const uJe=Kt({title:{type:String,default:""},icon:{type:vo},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),cJe=tt({name:"ElStep"}),dJe=tt({...cJe,props:uJe,setup(e){const t=e,n=zt("step"),r=Q(-1),o=Q({}),i=Q(""),a=cn(Cbe),s=vr();jn(()=>{St([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([S])=>{w(S)},{immediate:!0})});const l=J(()=>t.status||i.value),u=J(()=>{const S=a.steps.value[r.value-1];return S?S.internalStatus.value:"wait"}),d=J(()=>a.props.alignCenter),c=J(()=>a.props.direction==="vertical"),f=J(()=>a.props.simple),p=J(()=>a.steps.value.length),v=J(()=>{var S;return((S=a.steps.value[p.value-1])==null?void 0:S.uid)===s.uid}),h=J(()=>f.value?"":a.props.space),g=J(()=>[n.b(),n.is(f.value?"simple":a.props.direction),n.is("flex",v.value&&!h.value&&!d.value),n.is("center",d.value&&!c.value&&!f.value)]),y=J(()=>{const S={flexBasis:Ln(h.value)?`${h.value}px`:h.value?h.value:`${100/(p.value-(d.value?0:1))}%`};return c.value||v.value&&(S.maxWidth=`${100/p.value}%`),S}),m=S=>{r.value=S},b=S=>{const k=S==="wait",M={transitionDelay:`${k?"-":""}${150*r.value}ms`},D=S===a.props.processStatus||k?0:100;M.borderWidth=D&&!f.value?"1px":0,M[a.props.direction==="vertical"?"height":"width"]=`${D}%`,o.value=M},w=S=>{S>r.value?i.value=a.props.finishStatus:S===r.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const k=a.steps.value[r.value-1];k&&k.calcProgress(i.value)},A={uid:s.uid,getVnode:()=>s.vnode,currentStatus:l,internalStatus:i,setIndex:m,calcProgress:b};return a.addStep(A),Qr(()=>{a.removeStep(A)}),(S,k)=>(F(),K("div",{style:Xt(C(y)),class:re(C(g))},[xe(" icon & line "),x("div",{class:re([C(n).e("head"),C(n).is(C(l))])},[C(f)?xe("v-if",!0):(F(),K("div",{key:0,class:re(C(n).e("line"))},[x("i",{class:re(C(n).e("line-inner")),style:Xt(o.value)},null,6)],2)),x("div",{class:re([C(n).e("icon"),C(n).is(S.icon||S.$slots.icon?"icon":"text")])},[ft(S.$slots,"icon",{},()=>[S.icon?(F(),mt(C(Dn),{key:0,class:re(C(n).e("icon-inner"))},{default:nt(()=>[(F(),mt(hr(S.icon)))]),_:1},8,["class"])):C(l)==="success"?(F(),mt(C(Dn),{key:1,class:re([C(n).e("icon-inner"),C(n).is("status")])},{default:nt(()=>[Ve(C(_C))]),_:1},8,["class"])):C(l)==="error"?(F(),mt(C(Dn),{key:2,class:re([C(n).e("icon-inner"),C(n).is("status")])},{default:nt(()=>[Ve(C(cu))]),_:1},8,["class"])):C(f)?xe("v-if",!0):(F(),K("div",{key:3,class:re(C(n).e("icon-inner"))},We(r.value+1),3))])],2)],2),xe(" title & description "),x("div",{class:re(C(n).e("main"))},[x("div",{class:re([C(n).e("title"),C(n).is(C(l))])},[ft(S.$slots,"title",{},()=>[xn(We(S.title),1)])],2),C(f)?(F(),K("div",{key:0,class:re(C(n).e("arrow"))},null,2)):(F(),K("div",{key:1,class:re([C(n).e("description"),C(n).is(C(l))])},[ft(S.$slots,"description",{},()=>[xn(We(S.description),1)])],2))],2)],6))}});var xbe=Jt(dJe,[["__file","item.vue"]]);const fJe=er(lJe,{Step:xbe}),pJe=vi(xbe),Sbe=e=>["",...Qd].includes(e),hJe=Kt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:Sbe},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:vo},activeActionIcon:{type:vo},activeIcon:{type:vo},inactiveIcon:{type:vo},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:it(Function)},id:String,tabindex:{type:[String,Number]},...Es(["ariaLabel"])}),gJe={[Gn]:e=>Co(e)||In(e)||Ln(e),[Tr]:e=>Co(e)||In(e)||Ln(e),[ma]:e=>Co(e)||In(e)||Ln(e)},Ebe="ElSwitch",vJe=tt({name:Ebe}),mJe=tt({...vJe,props:hJe,emits:gJe,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=ks(),i=fa(),a=zt("switch"),{inputId:s}=ac(r,{formItemContext:o}),l=Wa(J(()=>r.loading)),u=Q(r.modelValue!==!1),d=Q(),c=Q(),f=J(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",y.value)]),p=J(()=>[a.e("label"),a.em("label","left"),a.is("active",!y.value)]),v=J(()=>[a.e("label"),a.em("label","right"),a.is("active",y.value)]),h=J(()=>({width:_i(r.width)}));St(()=>r.modelValue,()=>{u.value=!0});const g=J(()=>u.value?r.modelValue:!1),y=J(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(Gn,r.inactiveValue),n(Tr,r.inactiveValue),n(ma,r.inactiveValue)),St(y,A=>{var S;d.value.checked=A,r.validateEvent&&((S=o?.validate)==null||S.call(o,"change").catch(k=>void 0))});const m=()=>{const A=y.value?r.inactiveValue:r.activeValue;n(Gn,A),n(Tr,A),n(ma,A),Vt(()=>{d.value.checked=y.value})},b=()=>{if(l.value)return;const{beforeChange:A}=r;if(!A){m();return}const S=A();[Av(S),Co(S)].includes(!0)||Xi(Ebe,"beforeChange must return type `Promise<boolean>` or `boolean`"),Av(S)?S.then(M=>{M&&m()}).catch(M=>{}):S&&m()},w=()=>{var A,S;(S=(A=d.value)==null?void 0:A.focus)==null||S.call(A)};return jn(()=>{d.value.checked=y.value}),t({focus:w,checked:y}),(A,S)=>(F(),K("div",{class:re(C(f)),onClick:Qt(b,["prevent"])},[x("input",{id:C(s),ref_key:"input",ref:d,class:re(C(a).e("input")),type:"checkbox",role:"switch","aria-checked":C(y),"aria-disabled":C(l),"aria-label":A.ariaLabel,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:C(l),tabindex:A.tabindex,onChange:m,onKeydown:Lr(b,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(F(),K("span",{key:0,class:re(C(p))},[A.inactiveIcon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(A.inactiveIcon)))]),_:1})):xe("v-if",!0),!A.inactiveIcon&&A.inactiveText?(F(),K("span",{key:1,"aria-hidden":C(y)},We(A.inactiveText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("span",{ref_key:"core",ref:c,class:re(C(a).e("core")),style:Xt(C(h))},[A.inlinePrompt?(F(),K("div",{key:0,class:re(C(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(F(),mt(C(Dn),{key:0,class:re(C(a).is("icon"))},{default:nt(()=>[(F(),mt(hr(C(y)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(F(),K("span",{key:1,class:re(C(a).is("text")),"aria-hidden":!C(y)},We(C(y)?A.activeText:A.inactiveText),11,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("div",{class:re(C(a).e("action"))},[A.loading?(F(),mt(C(Dn),{key:0,class:re(C(a).is("loading"))},{default:nt(()=>[Ve(C(Bc))]),_:1},8,["class"])):C(y)?ft(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(A.activeActionIcon)))]),_:1})):xe("v-if",!0)]):C(y)?xe("v-if",!0):ft(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(A.inactiveActionIcon)))]),_:1})):xe("v-if",!0)])],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(F(),K("span",{key:1,class:re(C(v))},[A.activeIcon?(F(),mt(C(Dn),{key:0},{default:nt(()=>[(F(),mt(hr(A.activeIcon)))]),_:1})):xe("v-if",!0),!A.activeIcon&&A.activeText?(F(),K("span",{key:1,"aria-hidden":!C(y)},We(A.activeText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0)],10,["onClick"]))}});var yJe=Jt(mJe,[["__file","switch.vue"]]);const bJe=er(yJe),CI=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},wJe=function(e,t,n,r,o){if(!t&&!r&&(!o||qt(o)&&!o.length))return e;In(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return o?Eme(Ka(o),u=>In(u)?Qi(s,u):u(s,l,e)):(t!=="$key"&&ar(s)&&"$value"in s&&(s=s.$value),[ar(s)?t?Qi(s,t):null:s])},a=function(s,l){var u,d,c,f,p,v;if(r)return r(s.value,l.value);for(let h=0,g=(d=(u=s.key)==null?void 0:u.length)!=null?d:0;h<g;h++){if(((c=s.key)==null?void 0:c[h])<((f=l.key)==null?void 0:f[h]))return-1;if(((p=s.key)==null?void 0:p[h])>((v=l.key)==null?void 0:v[h]))return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},kbe=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},AJe=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||Xi("ElTable",`No column matching with column-key: ${t}`),n},fee=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?kbe(e,r[0]):null},bs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(In(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(Pn(t))return t.call(null,e);return""},J1=function(e,t,n=!1,r="children"){const o=e||[],i={};return o.forEach((a,s)=>{if(i[bs(a,t)]={row:a,index:s},n){const l=a[r];qt(l)&&Object.assign(i,J1(l,t,!0,r))}}),i};function CJe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Zr(t,r)){const o=t[r];$r(o)||(n[r]=o)}return n}function mW(e){return e===""||$r(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Tbe(e){return e===""||$r(e)||(e=mW(e),Number.isNaN(e)&&(e=80)),e}function xJe(e){return Ln(e)?e:In(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function SJe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _E(e,t,n,r,o,i,a){let s=i??0,l=!1;const d=(()=>{if(!a)return e.indexOf(t);const h=bs(t,a);return e.findIndex(g=>bs(g,a)===h)})(),c=d!==-1,f=o?.call(null,t,s),p=h=>{h==="add"?e.push(t):e.splice(d,1),l=!0},v=h=>{let g=0;const y=r?.children&&h[r.children];return y&&qt(y)&&(g+=y.length,y.forEach(m=>{g+=v(m)})),g};return(!o||f)&&(Co(n)?n&&!c?p("add"):!n&&c&&p("remove"):p(c?"remove":"add")),!r?.checkStrictly&&r?.children&&qt(t[r.children])&&t[r.children].forEach(h=>{const g=_E(e,h,n??!c,r,o,s+1,a);s+=v(h)+1,g&&(l=g)}),l}function EJe(e,t,n="children",r="hasChildren",o=!1){const i=s=>!(qt(s)&&s.length);function a(s,l,u){t(s,l,u),l.forEach(d=>{if(d[r]&&o){t(d,null,u+1);return}const c=d[n];i(c)||a(d,c,u+1)})}e.forEach(s=>{if(s[r]&&o){t(s,null,0);return}const l=s[n];i(l)||a(s,l,0)})}const kJe=(e,t,n,r)=>{const o={strategy:"fixed",...e.popperOptions},i=Pn(r?.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:G4(n,r.property).value}):void 0;return jo(i)?{slotContent:i,content:null,...e,popperOptions:o}:{slotContent:null,content:i??t,...e,popperOptions:o}};let Os=null;function TJe(e,t,n,r,o,i){var a;const s=kJe(e,t,n,r),l={...s,slotContent:void 0};if(Os?.trigger===o){const v=(a=Os.vm)==null?void 0:a.component;kme(v?.props,l),v&&s.slotContent&&(v.slots.content=()=>[s.slotContent]);return}Os?.();const u=i?.refs.tableWrapper,d=u?.dataset.prefix,c=Ve(ps,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...l},s.slotContent?{content:()=>s.slotContent}:void 0);c.appContext={...i.appContext,...i};const f=document.createElement("div");e0(c,f),c.component.exposed.onOpen();const p=u?.querySelector(`.${d}-scrollbar__wrap`);Os=()=>{var v,h;(h=(v=c.component)==null?void 0:v.exposed)!=null&&h.onClose&&c.component.exposed.onClose(),e0(null,f);const g=Os;p?.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,Os=null},Os.trigger=o??void 0,Os.vm=c,p?.addEventListener("scroll",Os)}function _be(e){return e.children?Eme(e.children,_be):[e]}function pee(e,t){return e+t.colSpan}const Dbe=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=_be(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(pee,0),i=o+l.reduce(pee,0)-1}else o=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:i}:{}},yW=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=Dbe(t,n,r,o);if(s){const d=s==="left";a.push(`${e}-fixed-column--${s}`),d&&u+i===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function hee(e,t){return e+(EC(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const bW=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=Dbe(e,t,n,r);if(!o)return;const s={},l=o==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(hee,0):s.right=u.slice(a+1).reverse().reduce(hee,0),s},Ly=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _Je(e){const t=vr(),n=Q(!1),r=Q([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const d=J1(r.value,u);r.value=l.reduce((c,f)=>{const p=bs(f,u);return d[p]&&c.push(f),c},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{_E(r.value,l,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,c=J1(u,d);r.value=l.reduce((f,p)=>{const v=c[p];return v&&f.push(v.row),f},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!J1(r.value,u)[bs(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function DJe(e){const t=vr(),n=Q(null),r=Q(null),o=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{var d;const{data:c,rowKey:f}=e;let p=null;f.value&&(p=(d=(C(c)||[]).find(v=>bs(v,f.value)===u))!=null?d:null),r.value=p??null,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],c=r.value;if(c&&!d.includes(c)){if(u){const f=bs(c,u);a(f)}else r.value=null;EC(r.value)&&t.emit("current-change",null,c)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function IJe(e){const t=Q([]),n=Q({}),r=Q(16),o=Q(!1),i=Q({}),a=Q("hasChildren"),s=Q("children"),l=Q(!1),u=vr(),d=J(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return f(w)}),c=J(()=>{const w=e.rowKey.value,A=Object.keys(i.value),S={};return A.length&&A.forEach(k=>{if(i.value[k].length){const M={children:[]};i.value[k].forEach(D=>{const P=bs(D,w);M.children.push(P),D[a.value]&&!S[P]&&(S[P]={children:[]})}),S[k]=M}}),S}),f=w=>{const A=e.rowKey.value,S={};return EJe(w,(k,M,D)=>{const P=bs(k,A);qt(M)?S[P]={children:M.map(O=>bs(O,A)),level:D}:o.value&&(S[P]={children:[],lazy:!0,level:D})},s.value,a.value,o.value),S},p=(w=!1,A)=>{var S,k;A||(A=(S=u.store)==null?void 0:S.states.defaultExpandAll.value);const M=d.value,D=c.value,P=Object.keys(M),O={};if(P.length){const _=C(n),B=[],N=(U,j)=>{if(w)return t.value?A||t.value.includes(j):!!(A||U?.expanded);{const H=A||t.value&&t.value.includes(j);return!!(U?.expanded||H)}};P.forEach(U=>{const j=_[U],H={...M[U]};if(H.expanded=N(j,U),H.lazy){const{loaded:G=!1,loading:Z=!1}=j||{};H.loaded=!!G,H.loading=!!Z,B.push(U)}O[U]=H});const q=Object.keys(D);o.value&&q.length&&B.length&&q.forEach(U=>{var j;const H=_[U],G=D[U].children;if(B.includes(U)){if(((j=O[U].children)==null?void 0:j.length)!==0)throw new Error("[ElTable]children must be an empty array.");O[U].children=G}else{const{loaded:Z=!1,loading:$=!1}=H||{};O[U]={lazy:!0,loaded:!!Z,loading:!!$,expanded:N(H,U),children:G,level:void 0}}})}n.value=O,(k=u.store)==null||k.updateTableScrollY()};St(()=>t.value,()=>{p(!0)}),St(()=>d.value,()=>{p()}),St(()=>c.value,()=>{p()});const v=w=>{t.value=w,p()},h=w=>o.value&&w&&"loaded"in w&&!w.loaded,g=(w,A)=>{u.store.assertRowKey();const S=e.rowKey.value,k=bs(w,S),M=k&&n.value[k];if(k&&M&&"expanded"in M){const D=M.expanded;A=$r(A)?!M.expanded:A,n.value[k].expanded=A,D!==A&&u.emit("expand-change",w,A),h(M)&&m(w,k,M),u.store.updateTableScrollY()}},y=w=>{u.store.assertRowKey();const A=e.rowKey.value,S=bs(w,A),k=n.value[S];h(k)?m(w,S,k):g(w,void 0)},m=(w,A,S)=>{const{load:k}=u.props;k&&!n.value[A].loaded&&(n.value[A].loading=!0,k(w,S,M=>{if(!qt(M))throw new TypeError("[ElTable] data must be an array");n.value[A].loading=!1,n.value[A].loaded=!0,n.value[A].expanded=!0,M.length&&(i.value[A]=M),u.emit("expand-change",w,!0)}))};return{loadData:m,loadOrToggle:y,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(w,A)=>{const{lazy:S,rowKey:k}=u.props;if(S){if(!k)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[w]&&(i.value[w]=A)}},normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:s,checkStrictly:l}}}const OJe=(e,t)=>{const n=t.sortingColumn;return!n||In(n.sortable)?e:wJe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},OS=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,OS(n.children)):t.push(n)}),t};function MJe(){var e;const t=vr(),{size:n}=_a((e=t.proxy)==null?void 0:e.$props),r=Q(null),o=Q([]),i=Q([]),a=Q(!1),s=Q([]),l=Q([]),u=Q([]),d=Q([]),c=Q([]),f=Q([]),p=Q([]),v=Q([]),h=[],g=Q(0),y=Q(0),m=Q(0),b=Q(!1),w=Q([]),A=Q(!1),S=Q(!1),k=Q(null),M=Q({}),D=Q(null),P=Q(null),O=Q(null),_=Q(null),B=Q(null),N=J(()=>r.value?J1(w.value,r.value):void 0);St(o,()=>{var Ut;t.state&&(H(!1),t.props.tableLayout==="auto"&&((Ut=t.refs.tableHeaderRef)==null||Ut.updateFixedColumnStyle()))},{deep:!0});const q=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},U=Ut=>{var ct;(ct=Ut.children)==null||ct.forEach(_t=>{_t.fixed=Ut.fixed,U(_t)})},j=()=>{s.value.forEach(je=>{U(je)}),d.value=s.value.filter(je=>[!0,"left"].includes(je.fixed));const Ut=s.value.find(je=>je.type==="selection");let ct;Ut&&Ut.fixed!=="right"&&!d.value.includes(Ut)&&s.value.indexOf(Ut)===0&&d.value.length&&(d.value.unshift(Ut),ct=!0),c.value=s.value.filter(je=>je.fixed==="right");const _t=s.value.filter(je=>(ct?je.type!=="selection":!0)&&!je.fixed);l.value=Array.from(d.value).concat(_t).concat(c.value);const st=OS(_t),Ot=OS(d.value),Ae=OS(c.value);g.value=st.length,y.value=Ot.length,m.value=Ae.length,u.value=Array.from(Ot).concat(st).concat(Ae),a.value=d.value.length>0||c.value.length>0},H=(Ut,ct=!1)=>{Ut&&j(),ct?t.state.doLayout():t.state.debouncedUpdateLayout()},G=Ut=>N.value?!!N.value[bs(Ut,r.value)]:w.value.includes(Ut),Z=()=>{b.value=!1;const Ut=w.value;w.value=[],Ut.length&&t.emit("selection-change",[])},$=()=>{var Ut,ct;let _t;if(r.value){_t=[];const st=(ct=(Ut=t?.store)==null?void 0:Ut.states)==null?void 0:ct.childrenColumnName.value,Ot=J1(o.value,r.value,!0,st);for(const Ae in N.value)Zr(N.value,Ae)&&!Ot[Ae]&&_t.push(N.value[Ae].row)}else _t=w.value.filter(st=>!o.value.includes(st));if(_t.length){const st=w.value.filter(Ot=>!_t.includes(Ot));w.value=st,t.emit("selection-change",st.slice())}},L=()=>(w.value||[]).slice(),W=(Ut,ct,_t=!0,st=!1)=>{var Ot,Ae,je,at;const gt={children:(Ae=(Ot=t?.store)==null?void 0:Ot.states)==null?void 0:Ae.childrenColumnName.value,checkStrictly:(at=(je=t?.store)==null?void 0:je.states)==null?void 0:at.checkStrictly.value};if(_E(w.value,Ut,ct,gt,st?void 0:k.value,o.value.indexOf(Ut),r.value)){const Tn=(w.value||[]).slice();_t&&t.emit("select",Tn,Ut),t.emit("selection-change",Tn)}},ie=()=>{var Ut,ct;const _t=S.value?!b.value:!(b.value||w.value.length);b.value=_t;let st=!1,Ot=0;const Ae=(ct=(Ut=t?.store)==null?void 0:Ut.states)==null?void 0:ct.rowKey.value,{childrenColumnName:je}=t.store.states,at={children:je.value,checkStrictly:!1};o.value.forEach((gt,nn)=>{const Tn=nn+Ot;_E(w.value,gt,_t,at,k.value,Tn,Ae)&&(st=!0),Ot+=te(bs(gt,Ae))}),st&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",(w.value||[]).slice())},ee=()=>{var Ut;if(((Ut=o.value)==null?void 0:Ut.length)===0){b.value=!1;return}const{childrenColumnName:ct}=t.store.states;let _t=0,st=0;const Ot=je=>{var at;for(const gt of je){const nn=k.value&&k.value.call(null,gt,_t);if(G(gt))st++;else if(!k.value||nn)return!1;if(_t++,(at=gt[ct.value])!=null&&at.length&&!Ot(gt[ct.value]))return!1}return!0},Ae=Ot(o.value||[]);b.value=st===0?!1:Ae},te=Ut=>{var ct;if(!t||!t.store)return 0;const{treeData:_t}=t.store.states;let st=0;const Ot=(ct=_t.value[Ut])==null?void 0:ct.children;return Ot&&(st+=Ot.length,Ot.forEach(Ae=>{st+=te(Ae)})),st},X=(Ut,ct)=>{const _t={};return Ka(Ut).forEach(st=>{M.value[st.id]=ct,_t[st.columnKey||st.id]=ct}),_t},ue=(Ut,ct,_t)=>{P.value&&P.value!==Ut&&(P.value.order=null),P.value=Ut,O.value=ct,_.value=_t},ve=()=>{let Ut=C(i);Object.keys(M.value).forEach(ct=>{const _t=M.value[ct];if(!_t||_t.length===0)return;const st=kbe({columns:u.value},ct);st&&st.filterMethod&&(Ut=Ut.filter(Ot=>_t.some(Ae=>st.filterMethod.call(null,Ae,Ot,st))))}),D.value=Ut},Me=()=>{var Ut;o.value=OJe((Ut=D.value)!=null?Ut:[],{sortingColumn:P.value,sortProp:O.value,sortOrder:_.value})},we=(Ut=void 0)=>{Ut?.filter||ve(),Me()},he=Ut=>{const{tableHeaderRef:ct}=t.refs;if(!ct)return;const _t=Object.assign({},ct.filterPanels),st=Object.keys(_t);if(st.length)if(In(Ut)&&(Ut=[Ut]),qt(Ut)){const Ot=Ut.map(Ae=>AJe({columns:u.value},Ae));st.forEach(Ae=>{const je=Ot.find(at=>at.id===Ae);je&&(je.filteredValue=[])}),t.store.commit("filterChange",{column:Ot,values:[],silent:!0,multi:!0})}else st.forEach(Ot=>{const Ae=u.value.find(je=>je.id===Ot);Ae&&(Ae.filteredValue=[])}),M.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Te=()=>{P.value&&(ue(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Y,toggleRowExpansion:be,updateExpandRows:De,states:pe,isRowExpanded:oe}=_Je({data:o,rowKey:r}),{updateTreeExpandKeys:ce,toggleTreeExpansion:Re,updateTreeData:Ee,updateKeyChildren:Le,loadOrToggle:Fe,states:Pe}=IJe({data:o,rowKey:r}),{updateCurrentRowData:Ne,updateCurrentRow:pt,setCurrentRowKey:Rt,states:Bt}=DJe({data:o,rowKey:r});return{assertRowKey:q,updateColumns:j,scheduleLayout:H,isSelected:G,clearSelection:Z,cleanSelection:$,getSelectionRows:L,toggleRowSelection:W,_toggleAllSelection:ie,toggleAllSelection:null,updateAllSelected:ee,updateFilters:X,updateCurrentRow:pt,updateSort:ue,execFilter:ve,execSort:Me,execQuery:we,clearFilter:he,clearSort:Te,toggleRowExpansion:be,setExpandRowKeysAdapter:Ut=>{Y(Ut),ce(Ut)},setCurrentRowKey:Rt,toggleRowExpansionAdapter:(Ut,ct)=>{u.value.some(({type:st})=>st==="expand")?be(Ut,ct):Re(Ut,ct)},isRowExpanded:oe,updateExpandRows:De,updateCurrentRowData:Ne,loadOrToggle:Fe,updateTreeData:Ee,updateKeyChildren:Le,states:{tableSize:n,rowKey:r,data:o,_data:i,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:c,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:h,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:b,selection:w,reserveSelection:A,selectOnIndeterminate:S,selectable:k,filters:M,filteredData:D,sortingColumn:P,sortProp:O,sortOrder:_,hoverRow:B,...pe,...Pe,...Bt}}}function zL(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=zL(n.children,t)),n)})}function jL(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&jL(t.children)}),e.sort((t,n)=>t.no-n.no)}function PJe(){const e=vr(),t=MJe();return{ns:zt("table"),...t,mutations:{setData(a,s){const l=C(a._data)!==s;a.data.value=s,a._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),C(a.reserveSelection)?e.store.assertRowKey():l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,s,l,u){var d;const c=C(a._columns);let f=[];l?(l&&!l.children&&(l.children=[]),(d=l.children)==null||d.push(s),f=zL(c,l)):(c.push(s),f=c),jL(f),a._columns.value=f,a.updateOrderFns.push(u),s.type==="selection"&&(a.selectable.value=s.selectable,a.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(jL(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,s,l,u){var d;const c=C(a._columns)||[];if(l)(d=l.children)==null||d.splice(l.children.findIndex(p=>p.id===s.id),1),Vt(()=>{var p;((p=l.children)==null?void 0:p.length)===0&&delete l.children}),a._columns.value=zL(c,l);else{const p=c.indexOf(s);p>-1&&(c.splice(p,1),a._columns.value=c)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,s){const{prop:l,order:u,init:d}=s;if(l){const c=C(a.columns).find(f=>f.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,s){const{sortingColumn:l,sortProp:u,sortOrder:d}=a,c=C(l),f=C(u),p=C(d);EC(p)&&(a.sortingColumn.value=null,a.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:f,order:p}),e.store.updateTableScrollY()},filterChange(a,s){const{column:l,values:u,silent:d}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),d||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){var a,s;(s=(a=e.store).toggleAllSelection)==null||s.call(a)},rowSelectedChanged(a,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(a,s){a.hoverRow.value=s},setCurrentRow(a,s){e.store.updateCurrentRow(s)}},commit:function(a,...s){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states,...s]);else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){Vt(()=>e.layout.updateScrollY.apply(e.layout))}}}const wW={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function NJe(e,t){if(!e)throw new Error("Table is required.");const n=PJe();return n.toggleAllSelection=Fl(n._toggleAllSelection,10),Object.keys(wW).forEach(r=>{Ibe(Obe(t,r),r,n)}),RJe(n,t),n}function RJe(e,t){Object.keys(wW).forEach(n=>{St(()=>Obe(t,n),r=>{Ibe(r,n,e)})})}function Ibe(e,t,n){let r=e,o=wW[t];ar(o)&&(r=r||o.default,o=o.key),n.states[o].value=r}function Obe(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class BJe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Q(null),this.scrollX=Q(!1),this.scrollY=Q(!1),this.bodyWidth=Q(null),this.fixedWidth=Q(null),this.rightFixedWidth=Q(null),this.gutterWidth=0;for(const n in t)Zr(t,n)&&(Ro(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(EC(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&n?.wrapRef){let r=!0;const o=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!Kr)return;const r=this.table.vnode.el;if(t=xJe(t),this.height.value=Number(t),!r&&(t||t===0)){Vt(()=>this.setHeight(t,n));return}r&&Ln(t)?(r.style[n]=`${t}px`,this.updateElsHeight()):r&&In(t)&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!Kr)return;const n=this.fit,r=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let o=0;const i=this.getFlattenColumns(),a=i.filter(u=>!Ln(u.width));if(i.forEach(u=>{Ln(u.width)&&u.realWidth&&(u.realWidth=null)}),a.length>0&&n){if(i.forEach(u=>{o+=Number(u.width||u.minWidth||80)}),o<=r){this.scrollX.value=!1;const u=r-o;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+u;else{const d=a.reduce((p,v)=>p+Number(v.minWidth||80),0),c=u/d;let f=0;a.forEach((p,v)=>{if(v===0)return;const h=Math.floor(Number(p.minWidth||80)*c);f+=h,p.realWidth=Number(p.minWidth||80)+h}),a[0].realWidth=Number(a[0].minWidth||80)+u-f}}else this.scrollX.value=!0,a.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(o,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),o+=u.realWidth}),this.scrollX.value=o>r,this.bodyWidth.value=o;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.fixedWidth.value=u}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let u=0;l.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var o,i;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:LJe}=Qu,FJe=tt({name:"ElTableFilterPanel",components:{ElCheckbox:Qu,ElCheckboxGroup:LJe,ElScrollbar:Lc,ElTooltip:ps,ElIcon:Dn,ArrowDown:Kc,ArrowUp:Y_},directives:{ClickOutside:Yf},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:oi.appendTo},setup(e){const t=vr(),{t:n}=Hr(),r=zt("table-filter"),o=t?.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const i=Q(!1),a=Q(null),s=J(()=>e.column&&e.column.filters),l=J(()=>e.column&&e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=J({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{d.value&&(Il(A)?d.value.splice(0,1):d.value.splice(0,1,A))}}),d=J({get(){return e.column?e.column.filteredValue||[]:[]},set(A){var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filteredValue",A))}}),c=J(()=>e.column?e.column.filterMultiple:!0),f=A=>A.value===u.value,p=()=>{i.value=!1},v=A=>{A.stopPropagation(),i.value=!i.value},h=()=>{i.value=!1},g=()=>{b(d.value),p()},y=()=>{d.value=[],b(d.value),p()},m=A=>{u.value=A,Il(A)?b([]):b(d.value),p()},b=A=>{var S,k;(S=e.store)==null||S.commit("filterChange",{column:e.column,values:A}),(k=e.store)==null||k.updateAllSelected()};St(i,A=>{var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filterOpened",A))},{immediate:!0});const w=J(()=>{var A,S;return(S=(A=a.value)==null?void 0:A.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:c,filterClassName:l,filteredValue:d,filterValue:u,filters:s,handleConfirm:g,handleReset:y,handleSelect:m,isPropAbsent:Il,isActive:f,t:n,ns:r,showFilterPanel:v,hideFilterPanel:h,popperPaneRef:w,tooltip:a}}});function UJe(e,t,n,r,o,i){const a=sr("el-checkbox"),s=sr("el-checkbox-group"),l=sr("el-scrollbar"),u=sr("arrow-up"),d=sr("arrow-down"),c=sr("el-icon"),f=sr("el-tooltip"),p=D_("click-outside");return F(),mt(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:nt(()=>[e.multiple?(F(),K("div",{key:0},[x("div",{class:re(e.ns.e("content"))},[Ve(l,{"wrap-class":e.ns.e("wrap")},{default:nt(()=>[Ve(s,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:re(e.ns.e("checkbox-group"))},{default:nt(()=>[(F(!0),K(Pt,null,an(e.filters,v=>(F(),mt(a,{key:v.value,value:v.value},{default:nt(()=>[xn(We(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),x("div",{class:re(e.ns.e("bottom"))},[x("button",{class:re({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},We(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),x("button",{type:"button",onClick:e.handleReset},We(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(F(),K("ul",{key:1,class:re(e.ns.e("list"))},[x("li",{class:re([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},We(e.t("el.table.clearFilter")),11,["onClick"]),(F(!0),K(Pt,null,an(e.filters,v=>(F(),K("li",{key:v.value,class:re([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:h=>e.handleSelect(v.value)},We(v.text),11,["label","onClick"]))),128))],2))]),default:nt(()=>[ln((F(),K("span",{class:re([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[Ve(c,null,{default:nt(()=>[ft(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(F(),mt(u,{key:0})):(F(),mt(d,{key:1}))]})]),_:3})],10,["onClick"])),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var $Je=Jt(FJe,[["render",UJe],["__file","filter-panel.vue"]]);function AW(e){const t=vr();__(()=>{n.value.addObserver(t)}),jn(()=>{r(n.value),o(n.value)}),Wc(()=>{r(n.value),o(n.value)}),hl(()=>{n.value.removeObserver(t)});const n=J(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var a;const s=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(d=>{u[d.id]=d});for(let d=0,c=s.length;d<c;d++){const f=s[d],p=f.getAttribute("name"),v=u[p];v&&f.setAttribute("width",v.realWidth||v.width)}},o=i=>{var a,s;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,c=l.length;d<c;d++)l[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let d=0,c=u.length;d<c;d++){const f=u[d];f.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",f.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const Yc=Symbol("ElTable");function zJe(e,t){const n=vr(),r=cn(Yc),o=h=>{h.stopPropagation()},i=(h,g)=>{!g.filters&&g.sortable?v(h,g,!1):g.filterable&&!g.sortable&&o(h),r?.emit("header-click",g,h)},a=(h,g)=>{r?.emit("header-contextmenu",g,h)},s=Q(null),l=Q(!1),u=Q(),d=(h,g)=>{var y,m;if(Kr&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const b=r;t("set-drag-visible",!0);const w=b?.vnode.el,A=w?.getBoundingClientRect().left,S=(m=(y=n?.vnode)==null?void 0:y.el)==null?void 0:m.querySelector(`th.${g.id}`),k=S.getBoundingClientRect(),M=k.left-A+30;Nu(S,"noclick"),u.value={startMouseLeft:h.clientX,startLeft:k.right-A,startColumnLeft:k.left-A,tableLeft:A};const D=b?.refs.resizeProxy;D.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=_=>{const B=_.clientX-u.value.startMouseLeft,N=u.value.startLeft+B;D.style.left=`${Math.max(M,N)}px`},O=()=>{if(l.value){const{startColumnLeft:_,startLeft:B}=u.value,q=Number.parseInt(D.style.left,10)-_;g.width=g.realWidth=q,b?.emit("header-dragend",g.width,B-_,g,h),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{zs(S,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",O)}},c=(h,g)=>{var y;if(g.children&&g.children.length>0)return;const m=h.target;if(!al(m))return;const b=m?.closest("th");if(!(!g||!g.resizable||!b)&&!l.value&&e.border){const w=b.getBoundingClientRect(),A=document.body.style,S=((y=b.parentNode)==null?void 0:y.lastElementChild)===b,k=e.allowDragLastColumn||!S;w.width>12&&w.right-h.clientX<8&&k?(A.cursor="col-resize",El(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(A.cursor="",El(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},f=()=>{Kr&&(document.body.style.cursor="")},p=({order:h,sortOrders:g})=>{if(h==="")return g[0];const y=g.indexOf(h||null);return g[y>g.length-2?0:y+1]},v=(h,g,y)=>{var m;h.stopPropagation();const b=g.order===y?null:y||p(g),w=(m=h.target)==null?void 0:m.closest("th");if(w&&El(w,"noclick")){zs(w,"noclick");return}if(!g.sortable)return;const A=h.currentTarget;if(["ascending","descending"].some(P=>El(A,P)&&!g.sortOrders.includes(P)))return;const S=e.store.states;let k=S.sortProp.value,M;const D=S.sortingColumn.value;(D!==g||D===g&&EC(D.order))&&(D&&(D.order=null),S.sortingColumn.value=g,k=g.property),b?M=g.order=b:M=g.order=null,S.sortProp.value=k,S.sortOrder.value=M,r?.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:c,handleMouseOut:f,handleSortClick:v,handleFilterClick:o}}function jJe(e){const t=cn(Yc),n=zt("table");return{getHeaderRowStyle:s=>{const l=t?.props.headerRowStyle;return Pn(l)?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t?.props.headerRowClassName;return In(u)?l.push(u):Pn(u)&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,d)=>{var c;let f=(c=t?.props.headerCellStyle)!=null?c:{};Pn(f)&&(f=f.call(null,{rowIndex:s,columnIndex:l,row:u,column:d}));const p=bW(l,d.fixed,e.store,u);return Ly(p,"left"),Ly(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(s,l,u,d)=>{const c=yW(n.b(),l,d.fixed,e.store,u),f=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...c];d.children||f.push("is-leaf"),d.sortable&&f.push("is-sortable");const p=t?.props.headerCellClassName;return In(p)?f.push(p):Pn(p)&&f.push(p.call(null,{rowIndex:s,columnIndex:l,row:u,column:d})),f.push(n.e("cell")),f.filter(v=>!!v).join(" ")}}}const Mbe=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Mbe(n.children))):t.push(n)}),t},Pbe=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return Mbe(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function HJe(e){const t=cn(Yc),n=J(()=>Pbe(e.store.states.originColumns.value));return{isGroup:J(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:n}}var WJe=tt({name:"ElTableHeader",components:{ElCheckbox:Qu},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=vr(),r=cn(Yc),o=zt("table"),i=Q({}),{onColumnsChange:a,onScrollableChange:s}=AW(r),l=r?.props.tableLayout==="auto",u=Ur(new Map),d=Q();let c;const f=()=>{c=setTimeout(()=>{u.size>0&&(u.forEach((O,_)=>{const B=d.value.querySelector(`.${_.replace(/\s/g,".")}`);if(B){const N=B.getBoundingClientRect().width;O.width=N||O.width}}),u.clear())})};St(u,f),Qr(()=>{c&&(clearTimeout(c),c=void 0)}),jn(async()=>{await Vt(),await Vt();const{prop:O,order:_}=e.defaultSort;r?.store.commit("sort",{prop:O,order:_,init:!0}),f()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleMouseOut:y,handleSortClick:m,handleFilterClick:b}=zJe(e,t),{getHeaderRowStyle:w,getHeaderRowClass:A,getHeaderCellStyle:S,getHeaderCellClass:k}=jJe(e),{isGroup:M,toggleAllSelection:D,columnRows:P}=HJe(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:a,onScrollableChange:s,columnRows:P,getHeaderRowClass:A,getHeaderRowStyle:w,getHeaderCellClass:k,getHeaderCellStyle:S,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleMouseOut:y,handleSortClick:m,handleFilterClick:b,isGroup:M,toggleAllSelection:D,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:c,handleMouseOut:f,store:p,$parent:v,saveIndexSelection:h,isTableLayoutAuto:g}=this;let y=1;return Fn("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((m,b)=>Fn("tr",{class:i(b),key:b,style:a(b)},m.map((w,A)=>{w.rowSpan>y&&(y=w.rowSpan);const S=o(b,A,m,w);return g&&w.fixed&&h.set(S,w),Fn("th",{class:S,colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:r(b,A,m,w),onClick:k=>{var M;(M=k.currentTarget)!=null&&M.classList.contains("noclick")||s(k,w)},onContextmenu:k=>l(k,w),onMousedown:k=>u(k,w),onMousemove:k=>d(k,w),onMouseout:f},[Fn("div",{class:["cell",w.filteredValue&&w.filteredValue.length>0?"highlight":""]},[w.renderHeader?w.renderHeader({column:w,$index:A,store:p,_self:v}):w.label,w.sortable&&Fn("span",{onClick:k=>c(k,w),class:"caret-wrapper"},[Fn("i",{onClick:k=>c(k,w,"ascending"),class:"sort-caret ascending"}),Fn("i",{onClick:k=>c(k,w,"descending"),class:"sort-caret descending"})]),w.filterable&&Fn($Je,{store:p,placement:w.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:w,upDataColumn:(k,M)=>{w[k]=M}},{"filter-icon":()=>w.renderFilterIcon?w.renderFilterIcon({filterOpened:w.filterOpened}):null})])])}))))}});function xI(e,t,n=.03){return e-t>n}function VJe(e){const t=cn(Yc),n=Q(""),r=Q(Fn("div")),o=(v,h,g)=>{var y,m,b;const w=t,A=CI(v);let S=null;const k=(y=w?.vnode.el)==null?void 0:y.dataset.prefix;A&&(S=fee({columns:(b=(m=e.store)==null?void 0:m.states.columns.value)!=null?b:[]},A,k),S&&w?.emit(`cell-${g}`,h,S,A,v)),w?.emit(`row-${g}`,h,S,v)},i=(v,h)=>{o(v,h,"dblclick")},a=(v,h)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",h),o(v,h,"click")},s=(v,h)=>{o(v,h,"contextmenu")},l=Fl(v=>{var h;(h=e.store)==null||h.commit("setHoverRow",v)},30),u=Fl(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),d=v=>{const h=window.getComputedStyle(v,null),g=Number.parseInt(h.paddingLeft,10)||0,y=Number.parseInt(h.paddingRight,10)||0,m=Number.parseInt(h.paddingTop,10)||0,b=Number.parseInt(h.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:b}},c=(v,h,g)=>{var y;let m=(y=h?.target)==null?void 0:y.parentNode;for(;v>1&&(m=m?.nextSibling,!(!m||m.nodeName!=="TR"));)g(m,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(v,h,g)=>{var y,m,b,w,A,S,k,M;if(!t)return;const D=t,P=CI(v),O=(y=D?.vnode.el)==null?void 0:y.dataset.prefix;let _=null;if(P){if(_=fee({columns:(b=(m=e.store)==null?void 0:m.states.columns.value)!=null?b:[]},P,O),!_)return;P.rowSpan>1&&c(P.rowSpan,v,Nu);const ee=D.hoverState={cell:P,column:_,row:h};D?.emit("cell-mouse-enter",ee.row,ee.column,ee.cell,v)}if(!g){((w=Os)==null?void 0:w.trigger)===P&&((A=Os)==null||A());return}const B=v.target.querySelector(".cell");if(!(El(B,`${O}-tooltip`)&&B.childNodes.length))return;const N=document.createRange();N.setStart(B,0),N.setEnd(B,B.childNodes.length);const{width:q,height:U}=N.getBoundingClientRect(),{width:j,height:H}=B.getBoundingClientRect(),{top:G,left:Z,right:$,bottom:L}=d(B),W=Z+$,ie=G+L;xI(q+W,j)||xI(U+ie,H)||xI(B.scrollWidth,j)?TJe(g,(S=P?.innerText||P?.textContent)!=null?S:"",h,_,P,D):((k=Os)==null?void 0:k.trigger)===P&&((M=Os)==null||M())},handleCellMouseLeave:v=>{const h=CI(v);if(!h)return;h.rowSpan>1&&c(h.rowSpan,v,zs);const g=t?.hoverState;t?.emit("cell-mouse-leave",g?.row,g?.column,g?.cell,v)},tooltipContent:n,tooltipTrigger:r}}function qJe(e){const t=cn(Yc),n=zt("table");return{getRowStyle:(u,d)=>{const c=t?.props.rowStyle;return Pn(c)?c.call(null,{row:u,rowIndex:d}):c||null},getRowClass:(u,d)=>{var c;const f=[n.e("row")];t?.props.highlightCurrentRow&&u===((c=e.store)==null?void 0:c.states.currentRow.value)&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const p=t?.props.rowClassName;return In(p)?f.push(p):Pn(p)&&f.push(p.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,c,f)=>{const p=t?.props.cellStyle;let v=p??{};Pn(p)&&(v=p.call(null,{rowIndex:u,columnIndex:d,row:c,column:f}));const h=bW(d,e?.fixed,e.store);return Ly(h,"left"),Ly(h,"right"),Object.assign({},v,h)},getCellClass:(u,d,c,f,p)=>{const v=yW(n.b(),d,e?.fixed,e.store,void 0,p),h=[f.id,f.align,f.className,...v],g=t?.props.cellClassName;return In(g)?h.push(g):Pn(g)&&h.push(g.call(null,{rowIndex:u,columnIndex:d,row:c,column:f})),h.push(n.e("cell")),h.filter(y=>!!y).join(" ")},getSpan:(u,d,c,f)=>{let p=1,v=1;const h=t?.props.spanMethod;if(Pn(h)){const g=h({row:u,column:d,rowIndex:c,columnIndex:f});qt(g)?(p=g[0],v=g[1]):ar(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(u,d,c)=>{if(d<1)return u[c].realWidth;const f=u.map(({realWidth:p,width:v})=>p||v).slice(c,c+d);return Number(f.reduce((p,v)=>Number(p)+Number(v),-1))}}}const GJe=tt({name:"TableTdWrapper"}),KJe=tt({...GJe,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(F(),K("td",{colspan:e.colspan,rowspan:e.rowspan},[ft(t.$slots,"default")],8,["colspan","rowspan"]))}});var QJe=Jt(KJe,[["__file","td-wrapper.vue"]]);function YJe(e){const t=cn(Yc),n=zt("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:c}=VJe(e),{getRowStyle:f,getRowClass:p,getCellStyle:v,getCellClass:h,getSpan:g,getColspanRealWidth:y}=qJe(e),m=J(()=>{var k;return(k=e.store)==null?void 0:k.states.columns.value.findIndex(({type:M})=>M==="default")}),b=(k,M)=>{var D;const P=(D=t?.props)==null?void 0:D.rowKey;return P?bs(k,P):M},w=(k,M,D,P=!1)=>{const{tooltipEffect:O,tooltipOptions:_,store:B}=e,{indent:N,columns:q}=B.states,U=p(k,M);let j=!0;return D&&(U.push(n.em("row",`level-${D.level}`)),j=!!D.display),Fn("tr",{style:[j?null:{display:"none"},f(k,M)],class:U,key:b(k,M),onDblclick:G=>r(G,k),onClick:G=>o(G,k),onContextmenu:G=>i(G,k),onMouseenter:()=>a(M),onMouseleave:s},q.value.map((G,Z)=>{const{rowspan:$,colspan:L}=g(k,G,M,Z);if(!$||!L)return null;const W=Object.assign({},G);W.realWidth=y(q.value,L,Z);const ie={store:B,_self:e.context||t,column:W,row:k,$index:M,cellIndex:Z,expanded:P};Z===m.value&&D&&(ie.treeNode={indent:D.level&&D.level*N.value,level:D.level},Co(D.expanded)&&(ie.treeNode.expanded=D.expanded,"loading"in D&&(ie.treeNode.loading=D.loading),"noLazyChildren"in D&&(ie.treeNode.noLazyChildren=D.noLazyChildren)));const ee=`${b(k,M)},${Z}`,te=W.columnKey||W.rawColumnKey||"",X=G.showOverflowTooltip&&kme({effect:O},_,G.showOverflowTooltip);return Fn(QJe,{style:v(M,Z,k,G),class:h(M,Z,k,G,L-1),key:`${te}${ee}`,rowspan:$,colspan:L,onMouseenter:ue=>l(ue,k,X),onMouseleave:u},{default:()=>A(Z,G,ie)})}))},A=(k,M,D)=>M.renderCell(D);return{wrappedRowRender:(k,M)=>{const D=e.store,{isRowExpanded:P,assertRowKey:O}=D,{treeData:_,lazyTreeNodeMap:B,childrenColumnName:N,rowKey:q}=D.states,U=D.states.columns.value;if(U.some(({type:H})=>H==="expand")){const H=P(k),G=w(k,M,void 0,H),Z=t?.renderExpanded;if(!Z)return console.error("[Element Error]renderExpanded is required."),G;const $=[[G]];return(t.props.preserveExpandedContent||H)&&$[0].push(Fn("tr",{key:`expanded-row__${G.key}`,style:{display:H?"":"none"}},[Fn("td",{colspan:U.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Z({row:k,$index:M,store:D,expanded:H})])])),$}else if(Object.keys(_.value).length){O();const H=bs(k,q.value);let G=_.value[H],Z=null;G&&(Z={expanded:G.expanded,level:G.level,display:!0,noLazyChildren:void 0,loading:void 0},Co(G.lazy)&&(Z&&Co(G.loaded)&&G.loaded&&(Z.noLazyChildren=!(G.children&&G.children.length)),Z.loading=G.loading));const $=[w(k,M,Z??void 0)];if(G){let L=0;const W=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(X=>{const ue={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ve=bs(X,q.value);if(Il(ve))throw new Error("For nested data item, row-key is required.");if(G={..._.value[ve]},G&&(ue.expanded=G.expanded,G.level=G.level||ue.level,G.display=!!(G.expanded&&ue.display),Co(G.lazy)&&(Co(G.loaded)&&G.loaded&&(ue.noLazyChildren=!(G.children&&G.children.length)),ue.loading=G.loading)),L++,$.push(w(X,M+L,ue)),G){const Me=B.value[ve]||X[N.value];W(Me,G)}})};G.display=!0;const ie=B.value[H]||k[N.value];W(ie,G)}return $}else return w(k,M,void 0)},tooltipContent:d,tooltipTrigger:c}}const ZJe={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var XJe=tt({name:"ElTableBody",props:ZJe,setup(e){var t;const n=vr(),r=cn(Yc),o=zt("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:s}=YJe(e),{onColumnsChange:l,onScrollableChange:u}=AW(r),d=[];return St((t=e.store)==null?void 0:t.states.hoverRow,(c,f)=>{var p,v;const h=n?.vnode.el,g=Array.from(h?.children||[]).filter(b=>b?.classList.contains(`${o.e("row")}`));let y=c;const m=(p=g[y])==null?void 0:p.childNodes;if(m?.length){let b=0;Array.from(m).reduce((A,S,k)=>{var M,D;return((M=m[k])==null?void 0:M.colSpan)>1&&(b=(D=m[k])==null?void 0:D.colSpan),S.nodeName!=="TD"&&b===0&&A.push(k),b>0&&b--,A},[]).forEach(A=>{var S;for(y=c;y>0;){const k=(S=g[y-1])==null?void 0:S.childNodes;if(k[A]&&k[A].nodeName==="TD"&&k[A].rowSpan>1){Nu(k[A],"hover-cell"),d.push(k[A]);break}y--}})}else d.forEach(b=>zs(b,"hover-cell")),d.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!Kr||r0(()=>{const b=g[f],w=g[c];b&&!b.classList.contains("hover-fixed-row")&&zs(b,"hover-row"),w&&Nu(w,"hover-row")})}),hl(()=>{var c;(c=Os)==null||c()}),{ns:o,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t?.states.data.value||[];return Fn("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function JJe(){const e=cn(Yc),t=e?.store,n=J(()=>{var s;return(s=t?.states.fixedLeafColumnsLength.value)!=null?s:0}),r=J(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0}),o=J(()=>{var s;return(s=t?.states.columns.value.length)!=null?s:0}),i=J(()=>{var s;return(s=t?.states.fixedColumns.value.length)!=null?s:0}),a=J(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0});return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:J(()=>{var s;return(s=t?.states.columns.value)!=null?s:[]})}}function eet(e){const{columns:t}=JJe(),n=zt("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...yW(n.b(),a,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const s=bW(a,i.fixed,e.store);return Ly(s,"left"),Ly(s,"right"),s},columns:t}}var tet=tt({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=cn(Yc),n=zt("table"),{getCellClasses:r,getCellStyles:o,columns:i}=eet(e),{onScrollableChange:a,onColumnsChange:s}=AW(t);return{ns:n,onScrollableChange:a,onColumnsChange:s,getCellClasses:r,getCellStyles:o,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,i=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){a[l]=o;return}const u=i.map(p=>Number(p[s.property])),d=[];let c=!0;u.forEach(p=>{if(!Number.isNaN(+p)){c=!1;const v=`${p}`.split(".")[1];d.push(v?v.length:0)}});const f=Math.max.apply(null,d);c?a[l]="":a[l]=u.reduce((p,v)=>{const h=Number(v);return Number.isNaN(+h)?p:Number.parseFloat((p+v).toFixed(Math.min(f,20)))},0)}),Fn(Fn("tfoot",[Fn("tr",{},[...e.map((s,l)=>Fn("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[Fn("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function net(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f,p=!0)=>{e.toggleRowSelection(c,f,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})},updateKeyChildren:(c,f)=>{e.updateKeyChildren(c,f)}}}function ret(e,t,n,r){const o=Q(!1),i=Q(null),a=Q(!1),s=j=>{a.value=j},l=Q({width:null,height:null,headerHeight:null}),u=Q(!1),d={display:"inline-block",verticalAlign:"middle"},c=Q(),f=Q(0),p=Q(0),v=Q(0),h=Q(0),g=Q(0);Cs(()=>{var j;t.setHeight((j=e.height)!=null?j:null)}),Cs(()=>{var j;t.setMaxHeight((j=e.maxHeight)!=null?j:null)}),St(()=>[e.currentRowKey,n.states.rowKey],([j,H])=>{!C(H)||!C(j)||n.setCurrentRowKey(`${j}`)},{immediate:!0}),St(()=>e.data,j=>{r.store.commit("setData",j)},{immediate:!0,deep:!0}),Cs(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(j,H)=>{const{pixelX:G,pixelY:Z}=H;Math.abs(G)>=Math.abs(Z)&&(r.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},b=J(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=J(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(D)};jn(async()=>{await Vt(),n.updateColumns(),P(),requestAnimationFrame(A);const j=r.vnode.el,H=r.refs.headerWrapper;e.flexible&&j&&j.parentElement&&(j.parentElement.style.minWidth="0"),l.value={width:c.value=j.offsetWidth,height:j.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&r.store.commit("filterChange",{column:G,values:G.filteredValue,silent:!0})}),r.$ready=!0});const S=(j,H)=>{if(!j)return;const G=Array.from(j.classList).filter(Z=>!Z.startsWith("is-scrolling-"));G.push(t.scrollX.value?H:"is-scrolling-none"),j.className=G.join(" ")},k=j=>{const{tableWrapper:H}=r.refs;S(H,j)},M=j=>{const{tableWrapper:H}=r.refs;return!!(H&&H.classList.contains(j))},D=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ie="is-scrolling-none";M(ie)||k(ie);return}const j=r.refs.scrollBarRef.wrapRef;if(!j)return;const{scrollLeft:H,offsetWidth:G,scrollWidth:Z}=j,{headerWrapper:$,footerWrapper:L}=r.refs;$&&($.scrollLeft=H),L&&(L.scrollLeft=H);const W=Z-G-1;H>=W?k("is-scrolling-right"):k(H===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Mo(r.refs.scrollBarRef.wrapRef,"scroll",D,{passive:!0}),e.fit?li(r.vnode.el,O):Mo(window,"resize",O),li(r.refs.bodyWrapper,()=>{var j,H;O(),(H=(j=r.refs)==null?void 0:j.scrollBarRef)==null||H.update()}))},O=()=>{var j,H,G,Z;const $=r.vnode.el;if(!r.$ready||!$)return;let L=!1;const{width:W,height:ie,headerHeight:ee}=l.value,te=c.value=$.offsetWidth;W!==te&&(L=!0);const X=$.offsetHeight;(e.height||b.value)&&ie!==X&&(L=!0);const ue=e.tableLayout==="fixed"?r.refs.headerWrapper:(j=r.refs.tableHeaderRef)==null?void 0:j.$el;e.showHeader&&ue?.offsetHeight!==ee&&(L=!0),f.value=((H=r.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,v.value=ue?.scrollHeight||0,h.value=((G=r.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,g.value=((Z=r.refs.appendWrapper)==null?void 0:Z.offsetHeight)||0,p.value=f.value-v.value-h.value-g.value,L&&(l.value={width:te,height:X,headerHeight:e.showHeader&&ue?.offsetHeight||0},A())},_=fa(),B=J(()=>{const{bodyWidth:j,scrollY:H,gutterWidth:G}=t;return j.value?`${j.value-(H.value?G:0)}px`:""}),N=J(()=>e.maxHeight?"fixed":e.tableLayout),q=J(()=>{if(e.data&&e.data.length)return;let j="100%";e.height&&p.value&&(j=`${p.value}px`);const H=c.value;return{width:H?`${H}px`:"",height:j}}),U=J(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+h.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-h.value}px`}:{});return{isHidden:o,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:_,emptyBlockStyle:q,resizeProxyVisible:a,bodyWidth:B,resizeState:l,doLayout:A,tableBodyStyles:w,tableLayout:N,scrollbarViewStyle:d,scrollbarStyle:U}}function oet(e){const t=Q(),n=()=>{const o=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(s=>s())}),t.value.observe(o,i)};jn(()=>{n()}),hl(()=>{var r;(r=t.value)==null||r.disconnect()})}var iet={data:{type:Array,default:()=>[]},size:ba,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function Nbe(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>$r(o))&&(n=[]);const r=o=>{const i={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?i.style={width:`${o.width}px`}:i.name=o.id,i};return Fn("colgroup",{},n.map(o=>Fn("col",r(o))))}Nbe.props=["columns","tableLayout"];const aet=()=>{const e=Q(),t=(i,a)=>{const s=e.value;s&&s.scrollTo(i,a)},n=(i,a)=>{const s=e.value;s&&Ln(a)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var gee=!1,Eg,HL,WL,MS,PS,Rbe,NS,VL,qL,GL,Bbe,KL,QL,Lbe,Fbe;function bl(){if(!gee){gee=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(KL=/\b(iPhone|iP[ao]d)/.exec(e),QL=/\b(iP[ao]d)/.exec(e),GL=/Android/i.exec(e),Lbe=/FBAN\/\w+;/i.exec(e),Fbe=/Mobile/i.exec(e),Bbe=!!/Win64/.exec(e),t){Eg=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Eg&&document&&document.documentMode&&(Eg=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Rbe=r?parseFloat(r[1])+4:Eg,HL=t[2]?parseFloat(t[2]):NaN,WL=t[3]?parseFloat(t[3]):NaN,MS=t[4]?parseFloat(t[4]):NaN,MS?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),PS=t&&t[1]?parseFloat(t[1]):NaN):PS=NaN}else Eg=HL=WL=PS=MS=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);NS=o?parseFloat(o[1].replace("_",".")):!0}else NS=!1;VL=!!n[2],qL=!!n[3]}else NS=VL=qL=!1}}var YL={ie:function(){return bl()||Eg},ieCompatibilityMode:function(){return bl()||Rbe>Eg},ie64:function(){return YL.ie()&&Bbe},firefox:function(){return bl()||HL},opera:function(){return bl()||WL},webkit:function(){return bl()||MS},safari:function(){return YL.webkit()},chrome:function(){return bl()||PS},windows:function(){return bl()||VL},osx:function(){return bl()||NS},linux:function(){return bl()||qL},iphone:function(){return bl()||KL},mobile:function(){return bl()||KL||QL||GL||Fbe},nativeApp:function(){return bl()||Lbe},android:function(){return bl()||GL},ipad:function(){return bl()||QL}},set=YL,uet=!!(typeof window<"u"&&window.document&&window.document.createElement),cet={canUseDOM:uet},Ube=cet,$be;Ube.canUseDOM&&($be=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function det(e,t){if(!Ube.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r=typeof o[n]=="function"}return!r&&$be&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var fet=det,vee=10,mee=40,yee=800;function zbe(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*vee,o=n*vee,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=mee,o*=mee):(r*=yee,o*=yee)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}zbe.getEventType=function(){return set.firefox()?"DOMMouseScroll":fet("wheel")?"wheel":"mousewheel"};var pet=zbe;/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const het=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=pet(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},get={beforeMount(e,t){het(e,t.value)}};let vet=1;const met=tt({name:"ElTable",directives:{Mousewheel:get},components:{TableHeader:WJe,TableBody:XJe,TableFooter:tet,ElScrollbar:Lc,hColgroup:Nbe},props:iet,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Hr(),n=zt("table"),r=vr();Sr(Yc,r);const o=NJe(r,e);r.store=o;const i=new BJe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=J(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:c,toggleAllSelection:f,toggleRowExpansion:p,clearSort:v,sort:h,updateKeyChildren:g}=net(o),{isHidden:y,renderExpanded:m,setDragVisible:b,isGroup:w,handleMouseLeave:A,handleHeaderFooterMousewheel:S,tableSize:k,emptyBlockStyle:M,resizeProxyVisible:D,bodyWidth:P,resizeState:O,doLayout:_,tableBodyStyles:B,tableLayout:N,scrollbarViewStyle:q,scrollbarStyle:U}=ret(e,i,o,r),{scrollBarRef:j,scrollTo:H,setScrollLeft:G,setScrollTop:Z}=aet(),$=Fl(_,50),L=`${n.namespace.value}-table_${vet++}`;r.tableId=L,r.state={isGroup:w,resizeState:O,doLayout:_,debouncedUpdateLayout:$};const W=J(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),ie=J(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),ee=J(()=>Pbe(o.states.originColumns.value)[0]);return oet(r),Qr(()=>{$.cancel()}),{ns:n,layout:i,store:o,columns:ee,handleHeaderFooterMousewheel:S,handleMouseLeave:A,tableId:L,tableSize:k,isHidden:y,isEmpty:a,renderExpanded:m,resizeProxyVisible:D,resizeState:O,isGroup:w,bodyWidth:P,tableBodyStyles:B,emptyBlockStyle:M,debouncedUpdateLayout:$,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:c,toggleAllSelection:f,toggleRowExpansion:p,clearSort:v,doLayout:_,sort:h,updateKeyChildren:g,t,setDragVisible:b,context:r,computedSumText:W,computedEmptyText:ie,tableLayout:N,scrollbarViewStyle:q,scrollbarStyle:U,scrollBarRef:j,scrollTo:H,setScrollLeft:G,setScrollTop:Z,allowDragLastColumn:e.allowDragLastColumn}}});function yet(e,t,n,r,o,i){const a=sr("hColgroup"),s=sr("table-header"),l=sr("table-body"),u=sr("table-footer"),d=sr("el-scrollbar"),c=D_("mousewheel");return F(),K("div",{ref:"tableWrapper",class:re([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Xt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[x("div",{class:re(e.ns.e("inner-wrapper"))},[x("div",{ref:"hiddenColumns",class:"hidden-columns"},[ft(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ln((F(),K("div",{key:0,ref:"headerWrapper",class:re(e.ns.e("header-wrapper"))},[x("table",{ref:"tableHeader",class:re(e.ns.e("header")),style:Xt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Ve(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Ve(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):xe("v-if",!0),x("div",{ref:"bodyWrapper",class:re(e.ns.e("body-wrapper"))},[Ve(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:f=>e.$emit("scroll",f)},{default:nt(()=>[x("table",{ref:"tableBody",class:re(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Xt({width:e.bodyWidth,tableLayout:e.tableLayout})},[Ve(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(F(),mt(s,{key:0,ref:"tableHeaderRef",class:re(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):xe("v-if",!0),Ve(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(F(),mt(u,{key:1,class:re(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):xe("v-if",!0)],6),e.isEmpty?(F(),K("div",{key:0,ref:"emptyBlock",style:Xt(e.emptyBlockStyle),class:re(e.ns.e("empty-block"))},[x("span",{class:re(e.ns.e("empty-text"))},[ft(e.$slots,"empty",{},()=>[xn(We(e.computedEmptyText),1)])],2)],6)):xe("v-if",!0),e.$slots.append?(F(),K("div",{key:1,ref:"appendWrapper",class:re(e.ns.e("append-wrapper"))},[ft(e.$slots,"append")],2)):xe("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?ln((F(),K("div",{key:1,ref:"footerWrapper",class:re(e.ns.e("footer-wrapper"))},[x("table",{class:re(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Xt(e.tableBodyStyles)},[Ve(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Ve(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Ar,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):xe("v-if",!0),e.border||e.isGroup?(F(),K("div",{key:2,class:re(e.ns.e("border-left-patch"))},null,2)):xe("v-if",!0)],2),ln(x("div",{ref:"resizeProxy",class:re(e.ns.e("column-resize-proxy"))},null,2),[[Ar,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var bet=Jt(met,[["render",yet],["__file","table.vue"]]);const wet={selection:"table-column--selection",expand:"table__expand-column"},Aet={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Cet=e=>wet[e]||"",xet={selection:{renderHeader({store:e,column:t}){var n;function r(){return e.states.data.value&&e.states.data.value.length===0}return Fn(Qu,{disabled:r(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(n=e.toggleAllSelection)!=null?n:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Fn(Qu,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return Ln(r)?n=t+r:Pn(r)&&(n=r(t)),Fn("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:r}){const{ns:o}=n,i=[o.e("expand-icon")];return!e.renderExpand&&r&&i.push(o.em("expand-icon","expanded")),Fn("div",{class:i,onClick:function(s){s.stopPropagation(),n.toggleRowExpansion(t)}},{default:()=>e.renderExpand?[e.renderExpand({expanded:r})]:[Fn(Dn,null,{default:()=>[Fn(ka)]})]})},sortable:!1,resizable:!1}};function Eet({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&G4(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i?.toString)==null?void 0:r.call(i))||""}function ket({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Fn("span",{class:o.e("placeholder")})]:null;const i=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Fn("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Co(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let l=ka;t.loading&&(l=Bc),i.push(Fn("div",{class:s,onClick:a},{default:()=>[Fn(Dn,{class:{[o.is("loading")]:t.loading}},{default:()=>[Fn(l)]})]}))}else i.push(Fn("span",{class:o.e("placeholder")}));return i}function bee(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function Tet(e,t){const n=vr();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=bee(i,a);Object.keys(s).forEach(l=>{const u=a[l];Zr(t,u)&&St(()=>t[u],d=>{let c=d;u==="width"&&l==="realWidth"&&(c=mW(d)),u==="minWidth"&&l==="realMinWidth"&&(c=Tbe(d)),n.columnConfig.value[u]=c,n.columnConfig.value[l]=c;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],a=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=bee(i,s);Object.keys(l).forEach(u=>{const d=s[u];Zr(t,d)&&St(()=>t[d],c=>{n.columnConfig.value[u]=c})}),a.forEach(u=>{Zr(e.value.props,u)&&St(()=>e.value.props[u],d=>{n.columnConfig.value[u]=d})})}}}function _et(e,t,n){const r=vr(),o=Q(""),i=Q(!1),a=Q(),s=Q(),l=zt("table");Cs(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Cs(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=J(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),d=J(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:A}=w.states,S=A.value;return S&&Object.keys(S).length>0}),c=Q(mW(e.width)),f=Q(Tbe(e.minWidth)),p=w=>(c.value&&(w.width=c.value),f.value&&(w.minWidth=f.value),!c.value&&f.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number($r(w.width)?w.minWidth:w.width),w),v=w=>{const A=w.type,S=xet[A]||{};Object.keys(S).forEach(M=>{const D=S[M];M!=="className"&&!$r(D)&&(w[M]=D)});const k=Cet(A);if(k){const M=`${C(l.namespace)}-${k}`;w.className=w.className?`${w.className} ${M}`:M}return w},h=w=>{qt(w)?w.forEach(S=>A(S)):A(w);function A(S){var k;((k=S?.type)==null?void 0:k.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:o,realAlign:a,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>(r.columnConfig.value.label,ft(t,"header",S,()=>[w.label]))),t["filter-icon"]&&(w.renderFilterIcon=S=>ft(t,"filter-icon",S)),t.expand&&(w.renderExpand=S=>ft(t,"expand",S));let A=w.renderCell;return w.type==="expand"?(w.renderCell=S=>Fn("div",{class:"cell"},[A(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(A=A||Eet,w.renderCell=S=>{let k=null;if(t.default){const B=t.default(S);k=B.some(N=>N.type!==la)?B:A(S)}else k=A(S);const{columns:M}=n.value.store.states,D=M.value.findIndex(B=>B.type==="default"),P=d.value&&S.cellIndex===D,O=ket(S,P),_={class:"cell",style:{}};return w.showOverflowTooltip&&(_.class=`${_.class} ${C(l.namespace)}-tooltip`,_.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),h(k),Fn("div",_,[O,k])}),w},getPropsData:(...w)=>w.reduce((A,S)=>(qt(S)&&S.forEach(k=>{A[k]=e[k]}),A),{}),getColumnElIndex:(w,A)=>Array.prototype.indexOf.call(w,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Det={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Iet=1;var jbe=tt({name:"ElTableColumn",components:{ElCheckbox:Qu},props:Det,setup(e,{slots:t}){const n=vr(),r=Q({}),o=J(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:a}=Tet(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:c,setColumnForcedProps:f,setColumnRenders:p,getPropsData:v,getColumnElIndex:h,realAlign:g,updateColumnOrder:y}=_et(e,t,o),m=d.value;s.value=`${"tableId"in m&&m.tableId||"columnId"in m&&m.columnId}_column_${Iet++}`,__(()=>{l.value=o.value!==m;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,A=b==="selection"?!1:$r(e.showOverflowTooltip)?m.props.showOverflowTooltip:e.showOverflowTooltip,S=$r(e.tooltipFormatter)?m.props.tooltipFormatter:e.tooltipFormatter,k={...Aet[b],id:s.value,type:b,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:A,tooltipFormatter:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let _=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);_=CJe(k,_),_=SJe(p,c,f)(_),r.value=_,i(),a()}),jn(()=>{var b,w;const A=d.value,S=l.value?(b=A.vnode.el)==null?void 0:b.children:(w=A.refs.hiddenColumns)==null?void 0:w.children,k=()=>h(S||[],n.vnode.el);r.value.getColumnIndex=k,k()>-1&&o.value.store.commit("insertColumn",r.value,l.value?"columnConfig"in A&&A.columnConfig.value:null,y)}),Qr(()=>{const b=r.value.getColumnIndex;(b?b():-1)>-1&&o.value.store.commit("removeColumn",r.value,l.value?"columnConfig"in m&&m.columnConfig.value:null,y)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(qt(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?o.push(a):a.type===Pt&&qt(a.children)&&a.children.forEach(s=>{s?.patchFlag!==1024&&!In(s?.children)&&o.push(s)});return Fn("div",o)}catch{return Fn("div",[])}}});const Oet=er(bet,{TableColumn:jbe}),Met=vi(jbe);var tA=(e=>(e.ASC="asc",e.DESC="desc",e))(tA||{}),nA=(e=>(e.CENTER="center",e.RIGHT="right",e))(nA||{}),Hbe=(e=>(e.LEFT="left",e.RIGHT="right",e))(Hbe||{});const ZL={asc:"desc",desc:"asc"},rA=Symbol("placeholder"),Pet=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const i={...(r=e.style)!=null?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Net(e,t,n){const r=J(()=>C(t).map((g,y)=>{var m,b;return{...g,key:(b=(m=g.key)!=null?m:g.dataKey)!=null?b:y}})),o=J(()=>C(r).filter(g=>!g.hidden)),i=J(()=>C(o).filter(g=>g.fixed==="left"||g.fixed===!0)),a=J(()=>C(o).filter(g=>g.fixed==="right")),s=J(()=>C(o).filter(g=>!g.fixed)),l=J(()=>{const g=[];return C(i).forEach(y=>{g.push({...y,placeholderSign:rA})}),C(s).forEach(y=>{g.push(y)}),C(a).forEach(y=>{g.push({...y,placeholderSign:rA})}),g}),u=J(()=>C(i).length||C(a).length),d=J(()=>C(r).reduce((g,y)=>(g[y.key]=Pet(y,C(n),e.fixed),g),{})),c=J(()=>C(o).reduce((g,y)=>g+y.width,0)),f=g=>C(r).find(y=>y.key===g),p=g=>C(d)[g],v=(g,y)=>{g.width=y};function h(g){var y;const{key:m}=g.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:w}=e;let A=tA.ASC;ar(b)?A=ZL[b[m]]:A=ZL[w.order],(y=e.onColumnSort)==null||y.call(e,{column:f(m),key:m,order:A})}return{columns:r,columnsStyles:d,columnsTotalWidth:c,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,hasFixedColumns:u,mainColumns:l,normalColumns:s,visibleColumns:o,getColumn:f,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:h}}const Ret=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=Q({scrollLeft:0,scrollTop:0});function a(p){var v,h,g;const{scrollTop:y}=p;(v=t.value)==null||v.scrollTo(p),(h=n.value)==null||h.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(p){i.value=p,a(p)}function l(p){i.value.scrollTop=p,a(C(i))}function u(p){var v,h;i.value.scrollLeft=p,(h=(v=t.value)==null?void 0:v.scrollTo)==null||h.call(v,C(i))}function d(p){var v;s(p),(v=e.onScroll)==null||v.call(e,p)}function c({scrollTop:p}){const{scrollTop:v}=C(i);p!==v&&l(p)}function f(p,v="auto"){var h;(h=t.value)==null||h.scrollToRow(p,v)}return St(()=>C(i).scrollTop,(p,v)=>{p>v&&o()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:f,onScroll:d,onVerticalScroll:c}},Bet=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=vr(),{emit:l}=s,u=Uo(!1),d=Q(e.defaultExpandedRowKeys||[]),c=Q(-1),f=Uo(null),p=Q({}),v=Q({}),h=Uo({}),g=Uo({}),y=Uo({}),m=J(()=>Ln(e.estimatedRowHeight));function b(P){var O;(O=e.onRowsRendered)==null||O.call(e,P),P.rowCacheEnd>C(c)&&(c.value=P.rowCacheEnd)}function w({hovered:P,rowKey:O}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(O)}"]`).forEach(N=>{P?N.classList.add(i.is("hovered")):N.classList.remove(i.is("hovered"))})}function A({expanded:P,rowData:O,rowIndex:_,rowKey:B}){var N,q;const U=[...C(d)],j=U.indexOf(B);P?j===-1&&U.push(B):j>-1&&U.splice(j,1),d.value=U,l("update:expandedRowKeys",U),(N=e.onRowExpand)==null||N.call(e,{expanded:P,rowData:O,rowIndex:_,rowKey:B}),(q=e.onExpandedRowsChange)==null||q.call(e,U),o.vnode.el.querySelector(`.${i.is("hovered")}[rowkey="${String(B)}"]`)&&Vt(()=>w({hovered:!0,rowKey:B}))}const S=Fl(()=>{var P,O,_,B;u.value=!0,p.value={...C(p),...C(v)},k(C(f),!1),v.value={},f.value=null,(P=t.value)==null||P.forceUpdate(),(O=n.value)==null||O.forceUpdate(),(_=r.value)==null||_.forceUpdate(),(B=s.proxy)==null||B.$forceUpdate(),u.value=!1},0);function k(P,O=!1){C(m)&&[t,n,r].forEach(_=>{const B=C(_);B&&B.resetAfterRowIndex(P,O)})}function M(P,O,_){const B=C(f);(B===null||B>_)&&(f.value=_),v.value[P]=O}function D({rowKey:P,height:O,rowIndex:_},B){B?B===Hbe.RIGHT?y.value[P]=O:h.value[P]=O:g.value[P]=O;const N=Math.max(...[h,y,g].map(q=>q.value[P]||0));C(p)[P]!==N&&(M(P,N,_),S())}return{expandedRowKeys:d,lastRenderedRowIndex:c,isDynamic:m,isResetting:u,rowHeights:p,resetAfterIndex:k,onRowExpanded:A,onRowHovered:w,onRowsRendered:b,onRowHeightChange:D}},Let=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=Q({}),i=J(()=>{const s={},{data:l,rowKey:u}=e,d=C(t);if(!d||!d.length)return l;const c=[],f=new Set;d.forEach(v=>f.add(v));let p=l.slice();for(p.forEach(v=>s[v[u]]=0);p.length>0;){const v=p.shift();c.push(v),f.has(v[u])&&qt(v.children)&&v.children.length>0&&(p=[...v.children,...p],v.children.forEach(h=>s[h[u]]=s[v[u]]+1))}return o.value=s,c}),a=J(()=>{const{data:s,expandColumnKey:l}=e;return l?C(i):s});return St(a,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:a,depthMap:o}},Fet=(e,t)=>e+t,RS=e=>qt(e)?e.reduce(Fet,0):e,Dv=(e,t,n={})=>Pn(e)?e(t):e??n,gh=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=_i(e[t])}),e),Wbe=e=>jo(e)?t=>Fn(e,t):e,Uet=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=J(()=>{const{fixed:y,width:m,vScrollbarSize:b}=e,w=m-b;return y?Math.max(Math.round(C(t)),w):w}),a=J(()=>{const{height:y=0,maxHeight:m=0,footerHeight:b,hScrollbarSize:w}=e;if(m>0){const A=C(f),S=C(n),M=C(c)+A+S+w;return Math.min(M,m-b)}return y-b}),s=J(()=>{const{maxHeight:y}=e,m=C(a);if(Ln(y)&&y>0)return m;const b=C(n)+C(c)+C(f);return Math.min(m,b)}),l=y=>y.width,u=J(()=>RS(C(r).map(l))),d=J(()=>RS(C(o).map(l))),c=J(()=>RS(e.headerHeight)),f=J(()=>{var y;return(((y=e.fixedData)==null?void 0:y.length)||0)*e.rowHeight}),p=J(()=>C(a)-C(c)-C(f)),v=J(()=>{const{style:y={},height:m,width:b}=e;return gh({...y,height:m,width:b})}),h=J(()=>gh({height:e.footerHeight})),g=J(()=>({top:_i(C(c)),bottom:_i(e.footerHeight),width:_i(e.width)}));return{bodyWidth:i,fixedTableHeight:s,mainTableHeight:a,leftTableWidth:u,rightTableWidth:d,windowHeight:p,footerHeight:h,emptyStyle:g,rootStyle:v,headerHeight:c}};function $et(e){const t=Q(),n=Q(),r=Q(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:c}=Net(e,ao(e,"columns"),ao(e,"fixed")),{scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y,scrollPos:m}=Ret(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Te}),b=zt("table-v2"),w=vr(),A=Uo(!1),{expandedRowKeys:S,lastRenderedRowIndex:k,isDynamic:M,isResetting:D,rowHeights:P,resetAfterIndex:O,onRowExpanded:_,onRowHeightChange:B,onRowHovered:N,onRowsRendered:q}=Bet(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:w,ns:b,isScrolling:A}),{data:U,depthMap:j}=Let(e,{expandedRowKeys:S,lastRenderedRowIndex:k,resetAfterIndex:O}),H=J(()=>{const{estimatedRowHeight:Y,rowHeight:be}=e,De=C(U);return Ln(Y)?Object.values(C(P)).reduce((pe,oe)=>pe+oe,0):De.length*be}),{bodyWidth:G,fixedTableHeight:Z,mainTableHeight:$,leftTableWidth:L,rightTableWidth:W,windowHeight:ie,footerHeight:ee,emptyStyle:te,rootStyle:X,headerHeight:ue}=Uet(e,{columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,rowsHeight:H}),ve=Q(),Me=J(()=>{const Y=C(U).length===0;return qt(e.fixedData)?e.fixedData.length===0&&Y:Y});function we(Y){const{estimatedRowHeight:be,rowHeight:De,rowKey:pe}=e;return be?C(P)[C(U)[Y][pe]]||be:De}const he=Q(!1);function Te(){const{onEndReached:Y}=e;if(!Y)return;const{scrollTop:be}=C(m),De=C(H),pe=C(ie),oe=De-(be+pe)+e.hScrollbarSize;!he.value&&C(k)>=0&&De<=be+C($)-C(ue)?(he.value=!0,Y(oe)):he.value=!1}return St(()=>C(H),()=>he.value=!1),St(()=>e.expandedRowKeys,Y=>S.value=Y,{deep:!0}),{columns:o,containerRef:ve,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:M,isResetting:D,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:U,expandedRowKeys:S,depthMap:j,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:G,emptyStyle:te,rootStyle:X,footerHeight:ee,mainTableHeight:$,fixedTableHeight:Z,leftTableWidth:L,rightTableWidth:W,showEmpty:Me,getRowHeight:we,onColumnSorted:c,onRowHovered:N,onRowExpanded:_,onRowsRendered:q,onRowHeightChange:B,scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y}}const CW=Symbol("tableV2"),Vbe="tableV2GridScrollLeft",qbe=String,BC={type:it(Array),required:!0},xW={type:it(Array)},Gbe={...xW,required:!0},zet=String,wee={type:it(Array),default:()=>fi([])},kg={type:Number,required:!0},Kbe={type:it([String,Number,Symbol]),default:"id"},Aee={type:it(Object)},Lg=Kt({class:String,columns:BC,columnsStyles:{type:it(Object),required:!0},depth:Number,expandColumnKey:zet,estimatedRowHeight:{...Kg.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:it(Function)},onRowHover:{type:it(Function)},onRowHeightChange:{type:it(Function)},rowData:{type:it(Object),required:!0},rowEventHandlers:{type:it(Object)},rowIndex:{type:Number,required:!0},rowKey:Kbe,style:{type:it(Object)}}),SI={type:Number,required:!0},SW=Kt({class:String,columns:BC,fixedHeaderData:{type:it(Array)},headerData:{type:it(Array),required:!0},headerHeight:{type:it([Number,Array]),default:50},rowWidth:SI,rowHeight:{type:Number,default:50},height:SI,width:SI}),BS=Kt({columns:BC,data:Gbe,fixedData:xW,estimatedRowHeight:Lg.estimatedRowHeight,width:kg,height:kg,headerWidth:kg,headerHeight:SW.headerHeight,bodyWidth:kg,rowHeight:kg,cache:pbe.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kg.scrollbarAlwaysOn,scrollbarStartGap:Kg.scrollbarStartGap,scrollbarEndGap:Kg.scrollbarEndGap,class:qbe,style:Aee,containerStyle:Aee,getRowHeight:{type:it(Function),required:!0},rowKey:Lg.rowKey,onRowsRendered:{type:it(Function)},onScroll:{type:it(Function)}}),jet=Kt({cache:BS.cache,estimatedRowHeight:Lg.estimatedRowHeight,rowKey:Kbe,headerClass:{type:it([String,Function])},headerProps:{type:it([Object,Function])},headerCellProps:{type:it([Object,Function])},headerHeight:SW.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:it([String,Function])},rowProps:{type:it([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:it([Object,Function])},columns:BC,data:Gbe,dataGetter:{type:it(Function)},fixedData:xW,expandColumnKey:Lg.expandColumnKey,expandedRowKeys:wee,defaultExpandedRowKeys:wee,class:qbe,fixed:Boolean,style:{type:it(Object)},width:kg,height:kg,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kg.hScrollbarSize,vScrollbarSize:Kg.vScrollbarSize,scrollbarAlwaysOn:vbe.alwaysOn,sortBy:{type:it(Object),default:()=>({})},sortState:{type:it(Object),default:void 0},onColumnSort:{type:it(Function)},onExpandedRowsChange:{type:it(Function)},onEndReached:{type:it(Function)},onRowExpand:Lg.onRowExpand,onScroll:BS.onScroll,onRowsRendered:BS.onRowsRendered,rowEventHandlers:Lg.rowEventHandlers}),Het="ElTableV2Header",Wet=tt({name:Het,props:SW,setup(e,{slots:t,expose:n}){const r=zt("table-v2"),o=cn(Vbe),i=Q(),a=J(()=>gh({width:e.width,height:e.height})),s=J(()=>gh({width:e.rowWidth,height:e.height})),l=J(()=>Ka(C(e.headerHeight))),u=f=>{const p=C(i);Vt(()=>{p?.scroll&&p.scroll({left:f})})},d=()=>{const f=r.e("fixed-header-row"),{columns:p,fixedHeaderData:v,rowHeight:h}=e;return v?.map((g,y)=>{var m;const b=gh({height:h,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:p,rowData:g,rowIndex:-(y+1),style:b})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:p}=e;return C(l).map((v,h)=>{var g;const y=gh({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:f,columns:p,headerIndex:h,style:y})})};return Wc(()=>{o?.value&&u(o.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return Ve("div",{ref:i,class:e.class,style:C(a),role:"rowgroup"},[Ve("div",{style:C(s),class:r.e("header")},[c(),d()])])}}});var Vet=Wet;const qet=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let i=null,a=0,s=0;const l=(d,c)=>{const f=d<=0&&t.value||d>=0&&e.value,p=c<=0&&r.value||c>=0&&n.value;return f&&p};return{hasReachedEdge:l,onWheel:d=>{Tv(i);let c=d.deltaX,f=d.deltaY;Math.abs(c)>Math.abs(f)?f=0:c=0,d.shiftKey&&f!==0&&(c=f,f=0),!(l(a,s)&&l(a+c,s+f))&&(a+=c,s+=f,d.preventDefault(),i=r0(()=>{o(a,s),a=0,s=0}))}}},Qbe=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:c,initCache:f,injectToInstance:p,validateProps:v})=>tt({name:e??"ElVirtualList",props:Kg,emits:[CE,xE],setup(h,{emit:g,expose:y,slots:m}){const b=zt("vl");v(h);const w=vr(),A=Q(f(h,w));p?.(w,A);const S=Q(),k=Q(),M=Q(),D=Q(null),P=Q({isScrolling:!1,scrollLeft:Ln(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:Ln(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:R1,yAxisScrollDir:R1}),O=cbe(),_=J(()=>Number.parseInt(`${h.height}`,10)),B=J(()=>Number.parseInt(`${h.width}`,10)),N=J(()=>{const{totalColumn:pe,totalRow:oe,columnCache:ce}=h,{isScrolling:Re,xAxisScrollDir:Ee,scrollLeft:Le}=C(P);if(pe===0||oe===0)return[0,0,0,0];const Fe=r(h,Le,C(A)),Pe=o(h,Fe,Le,C(A)),Ne=!Re||Ee===SE?Math.max(1,ce):1,pt=!Re||Ee===R1?Math.max(1,ce):1;return[Math.max(0,Fe-Ne),Math.max(0,Math.min(pe-1,Pe+pt)),Fe,Pe]}),q=J(()=>{const{totalColumn:pe,totalRow:oe,rowCache:ce}=h,{isScrolling:Re,yAxisScrollDir:Ee,scrollTop:Le}=C(P);if(pe===0||oe===0)return[0,0,0,0];const Fe=d(h,Le,C(A)),Pe=c(h,Fe,Le,C(A)),Ne=!Re||Ee===SE?Math.max(1,ce):1,pt=!Re||Ee===R1?Math.max(1,ce):1;return[Math.max(0,Fe-Ne),Math.max(0,Math.min(oe-1,Pe+pt)),Fe,Pe]}),U=J(()=>i(h,C(A))),j=J(()=>a(h,C(A))),H=J(()=>{var pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:Ln(h.height)?`${h.height}px`:h.height,width:Ln(h.width)?`${h.width}px`:h.width},(pe=h.style)!=null?pe:{}]}),G=J(()=>{const pe=`${C(j)}px`;return{height:`${C(U)}px`,pointerEvents:C(P).isScrolling?"none":void 0,width:pe}}),Z=()=>{const{totalColumn:pe,totalRow:oe}=h;if(pe>0&&oe>0){const[Pe,Ne,pt,Rt]=C(N),[Bt,en,Wt,Ut]=C(q);g(CE,{columnCacheStart:Pe,columnCacheEnd:Ne,rowCacheStart:Bt,rowCacheEnd:en,columnVisibleStart:pt,columnVisibleEnd:Rt,rowVisibleStart:Wt,rowVisibleEnd:Ut})}const{scrollLeft:ce,scrollTop:Re,updateRequested:Ee,xAxisScrollDir:Le,yAxisScrollDir:Fe}=C(P);g(xE,{xAxisScrollDir:Le,scrollLeft:ce,yAxisScrollDir:Fe,scrollTop:Re,updateRequested:Ee})},$=pe=>{const{clientHeight:oe,clientWidth:ce,scrollHeight:Re,scrollLeft:Ee,scrollTop:Le,scrollWidth:Fe}=pe.currentTarget,Pe=C(P);if(Pe.scrollTop===Le&&Pe.scrollLeft===Ee)return;let Ne=Ee;if(iee(h.direction))switch(kE()){case J3:Ne=-Ee;break;case vW:Ne=Fe-ce-Ee;break}P.value={...Pe,isScrolling:!0,scrollLeft:Ne,scrollTop:Math.max(0,Math.min(Le,Re-oe)),updateRequested:!0,xAxisScrollDir:Bg(Pe.scrollLeft,Ne),yAxisScrollDir:Bg(Pe.scrollTop,Le)},Vt(()=>ue()),ve(),Z()},L=(pe,oe)=>{const ce=C(_),Re=(U.value-ce)/oe*pe;ee({scrollTop:Math.min(U.value-ce,Re)})},W=(pe,oe)=>{const ce=C(B),Re=(j.value-ce)/oe*pe;ee({scrollLeft:Math.min(j.value-ce,Re)})},{onWheel:ie}=qet({atXStartEdge:J(()=>P.value.scrollLeft<=0),atXEndEdge:J(()=>P.value.scrollLeft>=j.value-C(B)),atYStartEdge:J(()=>P.value.scrollTop<=0),atYEndEdge:J(()=>P.value.scrollTop>=U.value-C(_))},(pe,oe)=>{var ce,Re,Ee,Le;(Re=(ce=k.value)==null?void 0:ce.onMouseUp)==null||Re.call(ce),(Le=(Ee=M.value)==null?void 0:Ee.onMouseUp)==null||Le.call(Ee);const Fe=C(B),Pe=C(_);ee({scrollLeft:Math.min(P.value.scrollLeft+pe,j.value-Fe),scrollTop:Math.min(P.value.scrollTop+oe,U.value-Pe)})});Mo(S,"wheel",ie,{passive:!1});const ee=({scrollLeft:pe=P.value.scrollLeft,scrollTop:oe=P.value.scrollTop})=>{pe=Math.max(pe,0),oe=Math.max(oe,0);const ce=C(P);oe===ce.scrollTop&&pe===ce.scrollLeft||(P.value={...ce,xAxisScrollDir:Bg(ce.scrollLeft,pe),yAxisScrollDir:Bg(ce.scrollTop,oe),scrollLeft:pe,scrollTop:oe,updateRequested:!0},Vt(()=>ue()),ve(),Z())},te=(pe=0,oe=0,ce=Ru)=>{const Re=C(P);oe=Math.max(0,Math.min(oe,h.totalColumn-1)),pe=Math.max(0,Math.min(pe,h.totalRow-1));const Ee=Hme(b.namespace.value),Le=C(A),Fe=i(h,Le),Pe=a(h,Le);ee({scrollLeft:s(h,oe,ce,Re.scrollLeft,Le,Pe>h.width?Ee:0),scrollTop:l(h,pe,ce,Re.scrollTop,Le,Fe>h.height?Ee:0)})},X=(pe,oe)=>{const{columnWidth:ce,direction:Re,rowHeight:Ee}=h,Le=O.value(t&&ce,t&&Ee,t&&Re),Fe=`${pe},${oe}`;if(Zr(Le,Fe))return Le[Fe];{const[,Pe]=n(h,oe,C(A)),Ne=C(A),pt=iee(Re),[Rt,Bt]=u(h,pe,Ne),[en]=n(h,oe,Ne);return Le[Fe]={position:"absolute",left:pt?void 0:`${Pe}px`,right:pt?`${Pe}px`:void 0,top:`${Bt}px`,height:`${Rt}px`,width:`${en}px`},Le[Fe]}},ue=()=>{P.value.isScrolling=!1,Vt(()=>{O.value(-1,null,null)})};jn(()=>{if(!Kr)return;const{initScrollLeft:pe,initScrollTop:oe}=h,ce=C(S);ce&&(Ln(pe)&&(ce.scrollLeft=pe),Ln(oe)&&(ce.scrollTop=oe)),Z()});const ve=()=>{const{direction:pe}=h,{scrollLeft:oe,scrollTop:ce,updateRequested:Re}=C(P),Ee=C(S);if(Re&&Ee){if(pe===X1)switch(kE()){case J3:{Ee.scrollLeft=-oe;break}case gW:{Ee.scrollLeft=oe;break}default:{const{clientWidth:Le,scrollWidth:Fe}=Ee;Ee.scrollLeft=Fe-Le-oe;break}}else Ee.scrollLeft=Math.max(0,oe);Ee.scrollTop=Math.max(0,ce)}},{resetAfterColumnIndex:Me,resetAfterRowIndex:we,resetAfter:he}=w.proxy;y({windowRef:S,innerRef:D,getItemStyleCache:O,scrollTo:ee,scrollToItem:te,states:P,resetAfterColumnIndex:Me,resetAfterRowIndex:we,resetAfter:he});const Te=()=>{const{scrollbarAlwaysOn:pe,scrollbarStartGap:oe,scrollbarEndGap:ce,totalColumn:Re,totalRow:Ee}=h,Le=C(B),Fe=C(_),Pe=C(j),Ne=C(U),{scrollLeft:pt,scrollTop:Rt}=C(P),Bt=Fn($L,{ref:k,alwaysOn:pe,startGap:oe,endGap:ce,class:b.e("horizontal"),clientSize:Le,layout:"horizontal",onScroll:W,ratio:Le*100/Pe,scrollFrom:pt/(Pe-Le),total:Ee,visible:!0}),en=Fn($L,{ref:M,alwaysOn:pe,startGap:oe,endGap:ce,class:b.e("vertical"),clientSize:Fe,layout:"vertical",onScroll:L,ratio:Fe*100/Ne,scrollFrom:Rt/(Ne-Fe),total:Re,visible:!0});return{horizontalScrollbar:Bt,verticalScrollbar:en}},Y=()=>{var pe;const[oe,ce]=C(N),[Re,Ee]=C(q),{data:Le,totalColumn:Fe,totalRow:Pe,useIsScrolling:Ne,itemKey:pt}=h,Rt=[];if(Pe>0&&Fe>0)for(let Bt=Re;Bt<=Ee;Bt++)for(let en=oe;en<=ce;en++){const Wt=pt({columnIndex:en,data:Le,rowIndex:Bt});Rt.push(Fn(Pt,{key:Wt},(pe=m.default)==null?void 0:pe.call(m,{columnIndex:en,data:Le,isScrolling:Ne?C(P).isScrolling:void 0,style:X(Bt,en),rowIndex:Bt})))}return Rt},be=()=>{const pe=hr(h.innerElement),oe=Y();return[Fn(pe,{style:C(G),ref:D},In(pe)?oe:{default:()=>oe})]};return()=>{const pe=hr(h.containerElement),{horizontalScrollbar:oe,verticalScrollbar:ce}=Te(),Re=be();return Fn("div",{key:0,class:b.e("wrapper"),role:h.role},[Fn(pe,{class:h.className,style:C(H),onScroll:$,ref:S},In(pe)?Re:{default:()=>Re}),oe,ce])}}}),{max:DE,min:Ybe,floor:Zbe}=Math,Get={column:"columnWidth",row:"rowHeight"},XL={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},wf=(e,t,n,r)=>{const[o,i,a]=[n[r],e[Get[r]],n[XL[r]]];if(t>a){let s=0;if(a>=0){const l=o[a];s=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);o[l]={offset:s,size:u},s+=u}n[XL[r]]=t}return o[t]},Xbe=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+Zbe((r-n)/2),s=wf(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return DE(0,n-1)},Ket=(e,t,n,r,o)=>{const i=o==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&wf(e,n,t,o).offset<r;)n+=a,a*=2;return Xbe(e,t,Zbe(n/2),Ybe(n,i-1),r,o)},Cee=(e,t,n,r)=>{const[o,i]=[t[r],t[XL[r]]];return(i>0?o[i].offset:0)>=n?Xbe(e,t,0,i,n,r):Ket(e,t,DE(0,i),n,r)},Jbe=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];o=s.offset+s.size}const a=(e-n-1)*t;return o+a},e2e=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},Qet={column:e2e,row:Jbe},xee=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,Qet[i]],u=wf(e,t,o,i),d=l(e,o),c=DE(0,Ybe(d-s,u.offset)),f=DE(0,u.offset-s+a+u.size);switch(n===lD&&(r>=f-s&&r<=c+s?n=Ru:n=wd),n){case Z3:return c;case X3:return f;case wd:return Math.round(f+(c-f)/2);case Ru:default:return r>=f&&r<=c?r:f>c||r<f?f:c}},Yet=Qbe({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=wf(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=wf(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,i)=>xee(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>xee(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>Cee(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=wf(e,t,r,"column"),i=n+e.width;let a=o.offset+o.size,s=t;for(;s<e.totalColumn-1&&a<i;)s++,a+=wf(e,t,r,"column").size;return s},getEstimatedTotalHeight:Jbe,getEstimatedTotalWidth:e2e,getRowStartIndexForOffset:(e,t,n)=>Cee(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:i}=e,a=wf(e,t,r,"row"),s=n+i;let l=a.size+a.offset,u=t;for(;u<o-1&&l<s;)u++,l+=wf(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},s)=>{var l,u;s=$r(s)?!0:s,Ln(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),Ln(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,a)=>{n({columnIndex:i},a)},o=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=NL,estimatedRowHeight:t=NL})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Zet=Qbe({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,i,a,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),d=Math.max(0,r*t-n+s+t);switch(o==="smart"&&(i>=d-n&&i<=u+n?o=Ru:o=wd),o){case Z3:return u;case X3:return d;case wd:{const c=Math.round(d+(u-d)/2);return c<Math.ceil(n/2)?0:c>l+Math.floor(n/2)?l:c}case Ru:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,i,a,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),d=Math.max(0,r*e-t+s+e);switch(o===lD&&(i>=d-t&&i<=u+t?o=Ru:o=wd),o){case Z3:return u;case X3:return d;case wd:{const c=Math.round(d+(u-d)/2);return c<Math.ceil(t/2)?0:c>l+Math.floor(t/2)?l:c}case Ru:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Xet="ElTableV2Grid",Jet=e=>{const t=Q(),n=Q(),r=Q(0),o=J(()=>{const{data:g,rowHeight:y,estimatedRowHeight:m}=e;if(!m)return g.length*y}),i=J(()=>{const{fixedData:g,rowHeight:y}=e;return(g?.length||0)*y}),a=J(()=>RS(e.headerHeight)),s=J(()=>{const{height:g}=e;return Math.max(0,g-C(a)-C(i))}),l=J(()=>C(a)+C(i)>0),u=({data:g,rowIndex:y})=>g[y][e.rowKey];function d({rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b})}function c(g,y){var m;(m=n.value)==null||m.resetAfterRowIndex(g,y)}function f(g,y){const m=C(t),b=C(n);ar(g)?(m?.scrollToLeft(g.scrollLeft),r.value=g.scrollLeft,b?.scrollTo(g)):(m?.scrollToLeft(g),r.value=g,b?.scrollTo({scrollLeft:g,scrollTop:y}))}function p(g){var y;(y=C(n))==null||y.scrollTo({scrollTop:g})}function v(g,y){var m;(m=C(n))==null||m.scrollToItem(g,1,y)}function h(){var g,y;(g=C(n))==null||g.$forceUpdate(),(y=C(t))==null||y.$forceUpdate()}return St(()=>e.bodyWidth,()=>{var g;Ln(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:h,fixedRowHeight:i,gridHeight:s,hasHeader:l,headerHeight:a,headerRef:t,totalHeight:o,itemKey:u,onItemRendered:d,resetAfterRowIndex:c,scrollTo:f,scrollToTop:p,scrollToRow:v,scrollLeft:r}},ett=tt({name:Xet,props:BS,setup(e,{slots:t,expose:n}){const{ns:r}=cn(CW),{bodyRef:o,fixedRowHeight:i,gridHeight:a,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:d,forceUpdate:c,itemKey:f,onItemRendered:p,resetAfterRowIndex:v,scrollTo:h,scrollToTop:g,scrollToRow:y,scrollLeft:m}=Jet(e);Sr(Vbe,m),xb(async()=>{var w;await Vt();const A=(w=o.value)==null?void 0:w.states.scrollTop;A&&g(Math.round(A)+1)}),n({forceUpdate:c,totalHeight:d,scrollTo:h,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:w,columns:A,data:S,fixedData:k,useIsScrolling:M,scrollbarAlwaysOn:D,scrollbarEndGap:P,scrollbarStartGap:O,style:_,rowHeight:B,bodyWidth:N,estimatedRowHeight:q,headerWidth:U,height:j,width:H,getRowHeight:G,onScroll:Z}=e,$=Ln(q),L=$?Yet:Zet,W=C(u);return Ve("div",{role:"table",class:[r.e("table"),e.class],style:_},[Ve(L,{ref:o,data:S,useIsScrolling:M,itemKey:f,columnCache:0,columnWidth:$?b:N,totalColumn:1,totalRow:S.length,rowCache:w,rowHeight:$?G:B,width:H,height:C(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:O,scrollbarEndGap:P,scrollbarAlwaysOn:D,onScroll:Z,onItemRendered:p,perfMode:!1},{default:ie=>{var ee;const te=S[ie.rowIndex];return(ee=t.row)==null?void 0:ee.call(t,{...ie,columns:A,rowData:te})}}),C(s)&&Ve(Vet,{ref:l,class:r.e("header-wrapper"),columns:A,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:k,rowWidth:U,rowHeight:B,width:H,height:Math.min(W+C(i),j)},{dynamic:t.header,fixed:t.row})])}}});var EW=ett;function ttt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const ntt=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return Ve(EW,pr({ref:n},r),ttt(t)?t:{default:()=>[t]})};var rtt=ntt;function ott(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const itt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return Ve(EW,pr({ref:n},r),ott(t)?t:{default:()=>[t]})};var att=itt;function stt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const ltt=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return Ve(EW,pr({ref:n},r),stt(t)?t:{default:()=>[t]})};var utt=ltt;const ctt=e=>{const{isScrolling:t}=cn(CW),n=Q(!1),r=Q(),o=J(()=>Ln(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=C(r);if(!u)return;const{columns:d,onRowHeightChange:c,rowKey:f,rowIndex:p,style:v}=e,{height:h}=u.getBoundingClientRect();n.value=!0,Vt(()=>{if(l||h!==Number.parseInt(v.height)){const g=d[0],y=g?.placeholderSign===rA;c?.({rowKey:f,height:h,rowIndex:p},g&&!y&&g.fixed)}})},a=J(()=>{const{rowData:l,rowIndex:u,rowKey:d,onRowHover:c}=e,f=e.rowEventHandlers||{},p={};return Object.entries(f).forEach(([v,h])=>{Pn(h)&&(p[v]=g=>{h({event:g,rowData:l,rowIndex:u,rowKey:d})})}),c&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:h})=>{const g=p[v];p[v]=y=>{c({event:y,hovered:h,rowData:l,rowIndex:u,rowKey:d}),g?.(y)}}),p}),s=l=>{const{onRowExpand:u,rowData:d,rowIndex:c,rowKey:f}=e;u?.({expanded:l,rowData:d,rowIndex:c,rowKey:f})};return jn(()=>{C(o)&&i(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:a,onExpand:s}},dtt="ElTableV2TableRow",ftt=tt({name:dtt,props:Lg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=ctt(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:c,expandColumnKey:f,depth:p,rowData:v,rowIndex:h,style:g}=e;let y=d.map((m,b)=>{const w=qt(v.children)&&v.children.length>0&&m.key===f;return n.cell({column:m,columns:d,columnIndex:b,depth:p,style:c[m.key],rowData:v,rowIndex:h,isScrolling:C(i),expandIconProps:w?{rowData:v,rowIndex:h,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>qt(m)&&m.length===1?m[0]:m),style:g,columns:d,depth:p,rowData:v,rowIndex:h,isScrolling:C(i)})),C(a)){const{height:m,...b}=g||{},w=C(s);return Ve("div",pr({ref:l,class:e.class,style:w?g:b,role:"row"},r,C(o)),[y])}return Ve("div",pr(r,{ref:l,class:e.class,style:g,role:"row"},C(o)),[y])}}});var ptt=ftt;function htt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const gtt=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:d,style:c,isScrolling:f,rowProps:p,rowClass:v,rowKey:h,rowEventHandlers:g,ns:y,onRowHovered:m,onRowExpanded:b}=e,w=Dv(v,{columns:n,rowData:u,rowIndex:d},""),A=Dv(p,{columns:n,rowData:u,rowIndex:d}),S=u[h],k=o[S]||0,M=!!i,D=d<0,P=[y.e("row"),w,{[y.e(`row-depth-${k}`)]:M&&d>=0,[y.is("expanded")]:M&&a.includes(S),[y.is("fixed")]:!k&&D,[y.is("customized")]:!!t.row}],O=l?m:void 0,_={...A,columns:n,columnsStyles:r,class:P,depth:k,expandColumnKey:i,estimatedRowHeight:D?void 0:s,isScrolling:f,rowIndex:d,rowData:u,rowKey:S,rowEventHandlers:g,style:c};return Ve(ptt,pr(_,{onRowExpand:b,onMouseenter:q=>{O?.({hovered:!0,rowKey:S,event:q,rowData:u,rowIndex:d})},onMouseleave:q=>{O?.({hovered:!1,rowKey:S,event:q,rowData:u,rowIndex:d})},rowkey:S}),htt(t)?t:{default:()=>[t]})};var vtt=gtt;const kW=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,i=((n=r?.toString)==null?void 0:n.call(r))||"",a=ft(t,"default",e,()=>[i]);return Ve("div",{class:e.class,title:i,style:o},[a])};kW.displayName="ElTableV2Cell";kW.inheritAttrs=!1;var mtt=kW;const ytt=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:i}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return Ve(Dn,pr(a,{size:i,style:o}),{default:()=>[Ve(ka,null,null)]})};var btt=ytt;const t2e=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:i,rowData:a,rowIndex:s,style:l,expandedRowKeys:u,ns:d,cellProps:c,expandColumnKey:f,indentSize:p,iconSize:v,rowKey:h},{slots:g})=>{const y=gh(l);if(t.placeholderSign===rA)return Ve("div",{class:d.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:b,dataGetter:w}=t,A=Pn(w)?w({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:s}):Qi(a,b??""),S=Dv(c,{cellData:A,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:a}),k={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:A,isScrolling:i,rowData:a,rowIndex:s},M=Wbe(m),D=M?M(k):ft(g,"default",k,()=>[Ve(mtt,k,null)]),P=[d.e("row-cell"),t.class,t.align===nA.CENTER&&d.is("align-center"),t.align===nA.RIGHT&&d.is("align-right")],O=s>=0&&f&&t.key===f,_=s>=0&&u.includes(a[h]);let B;const N=`margin-inline-start: ${r*p}px;`;return O&&(ar(o)?B=Ve(btt,pr(o,{class:[d.e("expand-icon"),d.is("expanded",_)],size:v,expanded:_,style:N,expandable:!0}),null):B=Ve("div",{style:[N,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Ve("div",pr({class:P,style:y},S,{role:"cell"}),[B,D])};t2e.inheritAttrs=!1;var See=t2e;const wtt=Kt({class:String,columns:BC,columnsStyles:{type:it(Object),required:!0},headerIndex:Number,style:{type:it(Object)}}),Att=tt({name:"ElTableV2HeaderRow",props:wtt,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:i}=e;let a=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:o,style:r[s.key]}));return t.header&&(a=t.header({cells:a.map(s=>qt(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Ve("div",{class:e.class,style:i,role:"row"},[a])}}});var Ctt=Att;function xtt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Stt=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:i,ns:a},{slots:s})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),Dv(o,l,""),{[a.is("customized")]:!!s.header}],d={...Dv(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return Ve(Ctt,d,xtt(s)?s:{default:()=>[s]})};var Ett=Stt;const TW=(e,{slots:t})=>ft(t,"default",e,()=>{var n,r;return[Ve("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});TW.displayName="ElTableV2HeaderCell";TW.inheritAttrs=!1;var ktt=TW;const Ttt=e=>{const{sortOrder:t}=e;return Ve(Dn,{size:14,class:e.class},{default:()=>[t===tA.ASC?Ve(ALe,null,null):Ve(bLe,null,null)]})};var _tt=Ttt;const Dtt=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=gh(o);if(n.placeholderSign===rA)return Ve("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,d={...e,class:r.e("header-cell-text")},c=Wbe(s),f=c?c(d):ft(t,"default",d,()=>[Ve(ktt,d,null)]),{sortBy:p,sortState:v,headerCellProps:h}=e;let g,y;if(v){const w=v[n.key];g=!!ZL[w],y=g?w:tA.ASC}else g=n.key===p.key,y=g?p.order:tA.ASC;const m=[r.e("header-cell"),Dv(l,e,""),n.align===nA.CENTER&&r.is("align-center"),n.align===nA.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Dv(h,e),onClick:n.sortable?i:void 0,class:m,style:a,"data-key":n.key};return Ve("div",pr(b,{role:"columnheader"}),[f,u&&Ve(_tt,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])};var Eee=Dtt;const n2e=(e,{slots:t})=>{var n;return Ve("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};n2e.displayName="ElTableV2Footer";var Itt=n2e;const r2e=(e,{slots:t})=>{const n=ft(t,"default",{},()=>[Ve(Zye,null,null)]);return Ve("div",{class:e.class,style:e.style},[n])};r2e.displayName="ElTableV2Empty";var Ott=r2e;const o2e=(e,{slots:t})=>{var n;return Ve("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};o2e.displayName="ElTableV2Overlay";var Mtt=o2e;function D2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Ptt="ElTableV2",Ntt=tt({name:Ptt,props:jet,setup(e,{slots:t,expose:n}){const r=zt("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:c,data:f,depthMap:p,expandedRowKeys:v,hasFixedColumns:h,mainTableRef:g,leftTableRef:y,rightTableRef:m,isDynamic:b,isResetting:w,isScrolling:A,bodyWidth:S,emptyStyle:k,rootStyle:M,footerHeight:D,showEmpty:P,scrollTo:O,scrollToLeft:_,scrollToTop:B,scrollToRow:N,getRowHeight:q,onColumnSorted:U,onRowHeightChange:j,onRowHovered:H,onRowExpanded:G,onRowsRendered:Z,onScroll:$,onVerticalScroll:L}=$et(e);return n({scrollTo:O,scrollToLeft:_,scrollToTop:B,scrollToRow:N}),Sr(CW,{ns:r,isResetting:w,isScrolling:A}),()=>{const{cache:W,cellProps:ie,estimatedRowHeight:ee,expandColumnKey:te,fixedData:X,headerHeight:ue,headerClass:ve,headerProps:Me,headerCellProps:we,sortBy:he,sortState:Te,rowHeight:Y,rowClass:be,rowEventHandlers:De,rowKey:pe,rowProps:oe,scrollbarAlwaysOn:ce,indentSize:Re,iconSize:Ee,useIsScrolling:Le,vScrollbarSize:Fe,width:Pe}=e,Ne=C(f),pt={cache:W,class:r.e("main"),columns:C(s),data:Ne,fixedData:X,estimatedRowHeight:ee,bodyWidth:C(S),headerHeight:ue,headerWidth:C(S),height:C(l),mainTableRef:g,rowKey:pe,rowHeight:Y,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,useIsScrolling:Le,width:Pe,getRowHeight:q,onRowsRendered:Z,onScroll:$},Rt=C(d),Bt=C(u),en={cache:W,class:r.e("left"),columns:C(i),data:Ne,fixedData:X,estimatedRowHeight:ee,leftTableRef:y,rowHeight:Y,bodyWidth:Rt,headerWidth:Rt,headerHeight:ue,height:Bt,rowKey:pe,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,useIsScrolling:Le,width:Rt,getRowHeight:q,onScroll:L},Wt=C(c),Ut={cache:W,class:r.e("right"),columns:C(a),data:Ne,fixedData:X,estimatedRowHeight:ee,rightTableRef:m,rowHeight:Y,bodyWidth:Wt,headerWidth:Wt,headerHeight:ue,height:Bt,rowKey:pe,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,width:Wt,style:`--${C(r.namespace)}-table-scrollbar-size: ${Fe}px`,useIsScrolling:Le,getRowHeight:q,onScroll:L},ct=C(o),_t={ns:r,depthMap:C(p),columnsStyles:ct,expandColumnKey:te,expandedRowKeys:C(v),estimatedRowHeight:ee,hasFixedColumns:C(h),rowProps:oe,rowClass:be,rowKey:pe,rowEventHandlers:De,onRowHovered:H,onRowExpanded:G,onRowHeightChange:j},st={cellProps:ie,expandColumnKey:te,indentSize:Re,iconSize:Ee,rowKey:pe,expandedRowKeys:C(v),ns:r},Ot={ns:r,headerClass:ve,headerProps:Me,columnsStyles:ct},Ae={ns:r,sortBy:he,sortState:Te,headerCellProps:we,onColumnSorted:U},je={row:nn=>Ve(vtt,pr(nn,_t),{row:t.row,cell:Tn=>{let He;return t.cell?Ve(See,pr(Tn,st,{style:ct[Tn.column.key]}),D2(He=t.cell(Tn))?He:{default:()=>[He]}):Ve(See,pr(Tn,st,{style:ct[Tn.column.key]}),null)}}),header:nn=>Ve(Ett,pr(nn,Ot),{header:t.header,cell:Tn=>{let He;return t["header-cell"]?Ve(Eee,pr(Tn,Ae,{style:ct[Tn.column.key]}),D2(He=t["header-cell"](Tn))?He:{default:()=>[He]}):Ve(Eee,pr(Tn,Ae,{style:ct[Tn.column.key]}),null)}})},at=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:C(b)}],gt={class:r.e("footer"),style:C(D)};return Ve("div",{class:at,style:C(M)},[Ve(rtt,pt,D2(je)?je:{default:()=>[je]}),Ve(att,en,D2(je)?je:{default:()=>[je]}),Ve(utt,Ut,D2(je)?je:{default:()=>[je]}),t.footer&&Ve(Itt,gt,{default:t.footer}),C(P)&&Ve(Ott,{class:r.e("empty"),style:C(k)},{default:t.empty}),t.overlay&&Ve(Mtt,{class:r.e("overlay")},{default:t.overlay})])}}});var Rtt=Ntt;const Btt=Kt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:it(Function)}}),Ltt=e=>{const t=Q(),n=Q(0),r=Q(0);let o;return jn(()=>{o=li(t,([i])=>{const{width:a,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:d,paddingBottom:c}=getComputedStyle(i.target),f=Number.parseInt(l)||0,p=Number.parseInt(u)||0,v=Number.parseInt(d)||0,h=Number.parseInt(c)||0;n.value=a-f-p,r.value=s-v-h}).stop}),Qr(()=>{o?.()}),St([n,r],([i,a])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:a})}),{sizer:t,width:n,height:r}},Ftt=tt({name:"ElAutoResizer",props:Btt,setup(e,{slots:t}){const n=zt("auto-resizer"),{height:r,width:o,sizer:i}=Ltt(e),a={width:"100%",height:"100%"};return()=>{var s;return Ve("div",{ref:i,class:n.b(),style:a},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}});var Utt=Ftt;const $tt=er(Rtt),ztt=er(Utt),uD=Symbol("tabsRootContextKey"),jtt=Kt({tabs:{type:it(Array),default:()=>fi([])},tabRefs:{type:it(Object),default:()=>fi({})}}),i2e="ElTabBar",Htt=tt({name:i2e}),Wtt=tt({...Htt,props:jtt,setup(e,{expose:t}){const n=e,r=cn(uD);r||Xi(i2e,"<el-tabs><el-tab-bar /></el-tabs>");const o=zt("tabs"),i=Q(),a=Q(),s=()=>{let f=0,p=0;const v=["top","bottom"].includes(r.props.tabPosition)?"width":"height",h=v==="width"?"x":"y",g=h==="x"?"left":"top";return n.tabs.every(y=>{if($r(y.paneName))return!1;const m=n.tabRefs[y.paneName];if(!m)return!1;if(!y.active)return!0;f=m[`offset${uh(g)}`],p=m[`client${uh(v)}`];const b=window.getComputedStyle(m);return v==="width"&&(p-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight),f+=Number.parseFloat(b.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${uh(h)}(${f}px)`}},l=()=>a.value=s(),u=[],d=()=>{u.forEach(f=>f.stop()),u.length=0,Object.values(n.tabRefs).forEach(f=>{u.push(li(f,l))})};St(()=>n.tabs,async()=>{await Vt(),l(),d()},{immediate:!0});const c=li(i,()=>l());return Qr(()=>{u.forEach(f=>f.stop()),u.length=0,c.stop()}),t({ref:i,update:l}),(f,p)=>(F(),K("div",{ref_key:"barRef",ref:i,class:re([C(o).e("active-bar"),C(o).is(C(r).props.tabPosition)]),style:Xt(a.value)},null,6))}});var Vtt=Jt(Wtt,[["__file","tab-bar.vue"]]);const qtt=Kt({panes:{type:it(Array),default:()=>fi([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Gtt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},kee="ElTabNav",Ktt=tt({name:kee,props:qtt,emits:Gtt,setup(e,{expose:t,emit:n}){const r=cn(uD);r||Xi(kee,"<el-tabs><tab-nav /></el-tabs>");const o=zt("tabs"),i=PRe(),a=GRe(),s=Q(),l=Q(),u=Q(),d=Q({}),c=Q(),f=Q(!1),p=Q(0),v=Q(!1),h=Q(!0),g=Uo(),y=J(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),m=J(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${p.value}px)`})),b=()=>{if(!s.value)return;const _=s.value[`offset${uh(y.value)}`],B=p.value;if(!B)return;const N=B>_?B-_:0;p.value=N},w=()=>{if(!s.value||!l.value)return;const _=l.value[`offset${uh(y.value)}`],B=s.value[`offset${uh(y.value)}`],N=p.value;if(_-N<=B)return;const q=_-N>B*2?N+B:_-B;p.value=q},A=async()=>{const _=l.value;if(!f.value||!u.value||!s.value||!_)return;await Vt();const B=d.value[e.currentName];if(!B)return;const N=s.value,q=["top","bottom"].includes(r.props.tabPosition),U=B.getBoundingClientRect(),j=N.getBoundingClientRect(),H=q?_.offsetWidth-j.width:_.offsetHeight-j.height,G=p.value;let Z=G;q?(U.left<j.left&&(Z=G-(j.left-U.left)),U.right>j.right&&(Z=G+U.right-j.right)):(U.top<j.top&&(Z=G-(j.top-U.top)),U.bottom>j.bottom&&(Z=G+(U.bottom-j.bottom))),Z=Math.max(Z,0),p.value=Math.min(Z,H)},S=()=>{var _;if(!l.value||!s.value)return;e.stretch&&((_=c.value)==null||_.update());const B=l.value[`offset${uh(y.value)}`],N=s.value[`offset${uh(y.value)}`],q=p.value;N<B?(f.value=f.value||{},f.value.prev=q,f.value.next=q+N<B,B-q<N&&(p.value=B-N)):(f.value=!1,q>0&&(p.value=0))},k=_=>{let B=0;switch(_.code){case gn.left:case gn.up:B=-1;break;case gn.right:case gn.down:B=1;break;default:return}const N=Array.from(_.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let U=N.indexOf(_.target)+B;U<0?U=N.length-1:U>=N.length&&(U=0),N[U].focus({preventScroll:!0}),N[U].click(),M()},M=()=>{h.value&&(v.value=!0)},D=()=>v.value=!1,P=(_,B)=>{d.value[B]=_},O=async()=>{await Vt();const _=d.value[e.currentName];_?.focus({preventScroll:!0})};return St(i,_=>{_==="hidden"?h.value=!1:_==="visible"&&setTimeout(()=>h.value=!0,50)}),St(a,_=>{_?setTimeout(()=>h.value=!0,50):h.value=!1}),li(u,S),jn(()=>setTimeout(()=>A(),0)),Wc(()=>S()),t({scrollToActiveTab:A,removeFocus:D,focusActiveTab:O,tabListRef:l,tabBarRef:c,scheduleRender:()=>aS(g)}),()=>{const _=f.value?[Ve("span",{class:[o.e("nav-prev"),o.is("disabled",!f.value.prev)],onClick:b},[Ve(Dn,null,{default:()=>[Ve(Gf,null,null)]})]),Ve("span",{class:[o.e("nav-next"),o.is("disabled",!f.value.next)],onClick:w},[Ve(Dn,null,{default:()=>[Ve(ka,null,null)]})])]:null,B=e.panes.map((N,q)=>{var U,j,H,G;const Z=N.uid,$=N.props.disabled,L=(j=(U=N.props.name)!=null?U:N.index)!=null?j:`${q}`,W=!$&&(N.isClosable||e.editable);N.index=`${q}`;const ie=W?Ve(Dn,{class:"is-icon-close",onClick:X=>n("tabRemove",N,X)},{default:()=>[Ve(cu,null,null)]}):null,ee=((G=(H=N.slots).label)==null?void 0:G.call(H))||N.props.label,te=!$&&N.active?0:-1;return Ve("div",{ref:X=>P(X,L),class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",N.active),o.is("disabled",$),o.is("closable",W),o.is("focus",v.value)],id:`tab-${L}`,key:`tab-${Z}`,"aria-controls":`pane-${L}`,role:"tab","aria-selected":N.active,tabindex:te,onFocus:()=>M(),onBlur:()=>D(),onClick:X=>{D(),n("tabClick",N,L,X)},onKeydown:X=>{W&&(X.code===gn.delete||X.code===gn.backspace)&&n("tabRemove",N,X)}},[ee,ie])});return g.value,Ve("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!f.value),o.is(r.props.tabPosition)]},[_,Ve("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Ve("div",{class:[o.e("nav"),o.is(r.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:m.value,role:"tablist",onKeydown:k},[e.type?null:Ve(Vtt,{ref:c,tabs:[...e.panes],tabRefs:d.value},null),B]):null])])}}}),Qtt=Kt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:it(Function),default:()=>!0},stretch:Boolean}),EI=e=>In(e)||Ln(e),Ytt={[Gn]:e=>EI(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>EI(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>EI(e),tabAdd:()=>!0},Ztt=tt({name:"ElTabs",props:Qtt,emits:Ytt,setup(e,{emit:t,slots:n,expose:r}){var o;const i=zt("tabs"),a=J(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:d}=nD(vr(),"ElTabPane"),c=Q(),f=Q((o=e.modelValue)!=null?o:"0"),p=async(m,b=!1)=>{var w,A,S,k;if(!(f.value===m||$r(m)))try{let M;if(e.beforeLeave){const D=e.beforeLeave(m,f.value);M=D instanceof Promise?await D:D}else M=!0;if(M!==!1){const D=(w=s.value.find(P=>P.paneName===f.value))==null?void 0:w.isFocusInsidePane();f.value=m,b&&(t(Gn,m),t("tabChange",m)),(S=(A=c.value)==null?void 0:A.removeFocus)==null||S.call(A),D&&((k=c.value)==null||k.focusActiveTab())}}catch{}},v=(m,b,w)=>{m.props.disabled||(t("tabClick",m,w),p(b,!0))},h=(m,b)=>{m.props.disabled||$r(m.props.name)||(b.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},y=m=>{const b=m.el.firstChild,w=["bottom","right"].includes(e.tabPosition)?m.children[0].el:m.children[1].el;b!==w&&b.before(w)};return St(()=>e.modelValue,m=>p(m)),St(f,async()=>{var m;await Vt(),(m=c.value)==null||m.scrollToActiveTab()}),Sr(uD,{props:e,currentName:f,registerPane:l,unregisterPane:u,nav$:c}),r({currentName:f,get tabNavRef(){return Tme(c.value,["scheduleRender"])}}),()=>{const m=n["add-icon"],b=e.editable||e.addable?Ve("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:g,onKeydown:k=>{[gn.enter,gn.numpadEnter].includes(k.code)&&g()}},[m?ft(n,"add-icon"):Ve(Dn,{class:i.is("icon-plus")},{default:()=>[Ve(Zme,null,null)]})]):null,w=()=>Ve(Ktt,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:h},null),A=Ve("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[Ve(d,null,{default:w,$stable:!0}),b]),S=Ve("div",{class:i.e("content")},[ft(n,"default")]);return Ve("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[S,A])}}});var Xtt=Ztt;const Jtt=Kt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),a2e="ElTabPane",ent=tt({name:a2e}),tnt=tt({...ent,props:Jtt,setup(e){const t=e,n=vr(),r=pa(),o=cn(uD);o||Xi(a2e,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=zt("tab-pane"),a=Q(),s=Q(),l=J(()=>t.closable||o.props.closable),u=dE(()=>{var h;return o.currentName.value===((h=t.name)!=null?h:s.value)}),d=Q(u.value),c=J(()=>{var h;return(h=t.name)!=null?h:s.value}),f=dE(()=>!t.lazy||d.value||u.value),p=()=>{var h;return(h=a.value)==null?void 0:h.contains(document.activeElement)};St(u,h=>{h&&(d.value=!0)});const v=Ur({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:c,active:u,index:s,isClosable:l,isFocusInsidePane:p});return o.registerPane(v),Qr(()=>{o.unregisterPane(v)}),Nj(()=>{var h;r.label&&((h=o.nav$.value)==null||h.scheduleRender())}),(h,g)=>C(f)?ln((F(),K("div",{key:0,id:`pane-${C(c)}`,ref_key:"paneRef",ref:a,class:re(C(i).b()),role:"tabpanel","aria-hidden":!C(u),"aria-labelledby":`tab-${C(c)}`},[ft(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Ar,C(u)]]):xe("v-if",!0)}});var s2e=Jt(tnt,[["__file","tab-pane.vue"]]);const nnt=er(Xtt,{TabPane:s2e}),rnt=vi(s2e),ont=Kt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Qd,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),int=tt({name:"ElText"}),ant=tt({...int,props:ont,setup(e){const t=e,n=Q(),r=fa(),o=zt("text"),i=J(()=>[o.b(),o.m(t.type),o.m(r.value),o.is("truncated",t.truncated),o.is("line-clamp",!$r(t.lineClamp))]),a=()=>{var s,l,u,d,c,f,p;if(fp().title)return;let h=!1;const g=((s=n.value)==null?void 0:s.textContent)||"";if(t.truncated){const y=(l=n.value)==null?void 0:l.offsetWidth,m=(u=n.value)==null?void 0:u.scrollWidth;y&&m&&m>y&&(h=!0)}else if(!$r(t.lineClamp)){const y=(d=n.value)==null?void 0:d.offsetHeight,m=(c=n.value)==null?void 0:c.scrollHeight;y&&m&&m>y&&(h=!0)}h?(f=n.value)==null||f.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return jn(a),Wc(a),(s,l)=>(F(),mt(hr(s.tag),{ref_key:"textRef",ref:n,class:re(C(i)),style:Xt({"-webkit-line-clamp":s.lineClamp})},{default:nt(()=>[ft(s.$slots,"default")]),_:3},8,["class","style"]))}});var snt=Jt(ant,[["__file","text.vue"]]);const _W=er(snt),lnt=Kt({format:{type:String,default:"HH:mm"},modelValue:{type:it(String)},disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:it(String),default:"light"},clearable:{type:Boolean,default:!0},size:ba,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:it(String)},maxTime:{type:it(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:it([String,Object]),default:()=>Qme},clearIcon:{type:it([String,Object]),default:()=>Yd},...nm}),_f=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},kI=(e,t)=>{const n=_f(e);if(!n)return-1;const r=_f(t);if(!r)return-1;const o=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return o===i?0:o>i?1:-1},Tee=e=>`${e}`.padStart(2,"0"),k1=e=>`${Tee(e.hours)}:${Tee(e.minutes)}`,unt=(e,t)=>{const n=_f(e);if(!n)return"";const r=_f(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,k1(o)},cnt=tt({name:"ElTimeSelect"}),dnt=tt({...cnt,props:lnt,emits:[Tr,"blur","focus","clear",Gn],setup(e,{expose:t}){const n=e;rr.extend(LH);const{Option:r}=_v,o=zt("input"),i=Q(),a=Wa(),{lang:s}=Hr(),l=J(()=>n.modelValue),u=J(()=>{const y=_f(n.start);return y?k1(y):null}),d=J(()=>{const y=_f(n.end);return y?k1(y):null}),c=J(()=>{const y=_f(n.step);return y?k1(y):null}),f=J(()=>{const y=_f(n.minTime||"");return y?k1(y):null}),p=J(()=>{const y=_f(n.maxTime||"");return y?k1(y):null}),v=J(()=>{var y;const m=[],b=(w,A)=>{m.push({value:w,disabled:kI(A,f.value||"-1:-1")<=0||kI(A,p.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let w=u.value,A;for(;w&&d.value&&kI(w,d.value)<=0;)A=rr(w,"HH:mm").locale(s.value).format(n.format),b(A,w),w=unt(w,c.value);if(n.includeEndTime&&d.value&&((y=m[m.length-1])==null?void 0:y.value)!==d.value){const S=rr(d.value,"HH:mm").locale(s.value).format(n.format);b(S,d.value)}}return m});return t({blur:()=>{var y,m;(m=(y=i.value)==null?void 0:y.blur)==null||m.call(y)},focus:()=>{var y,m;(m=(y=i.value)==null?void 0:y.focus)==null||m.call(y)}}),(y,m)=>(F(),mt(C(_v),{ref_key:"select",ref:i,"model-value":C(l),disabled:C(a),clearable:y.clearable,"clear-icon":y.clearIcon,size:y.size,effect:y.effect,placeholder:y.placeholder,"default-first-option":"",filterable:y.editable,"empty-values":y.emptyValues,"value-on-clear":y.valueOnClear,"onUpdate:modelValue":b=>y.$emit(C(Gn),b),onChange:b=>y.$emit(C(Tr),b),onBlur:b=>y.$emit("blur",b),onFocus:b=>y.$emit("focus",b),onClear:()=>y.$emit("clear")},{prefix:nt(()=>[y.prefixIcon?(F(),mt(C(Dn),{key:0,class:re(C(o).e("prefix-icon"))},{default:nt(()=>[(F(),mt(hr(y.prefixIcon)))]),_:1},8,["class"])):xe("v-if",!0)]),default:nt(()=>[(F(!0),K(Pt,null,an(C(v),b=>(F(),mt(C(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var fnt=Jt(dnt,[["__file","time-select.vue"]]);const pnt=er(fnt),hnt="timeline",gnt=tt({name:"ElTimeline",setup(e,{slots:t}){const n=zt("timeline");return Sr(hnt,t),()=>Fn("ul",{class:[n.b()]},[ft(t,"default")])}}),vnt=Kt({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:vo},hollow:Boolean}),mnt=tt({name:"ElTimelineItem"}),ynt=tt({...mnt,props:vnt,setup(e){const t=e,n=zt("timeline-item"),r=J(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(o,i)=>(F(),K("li",{class:re([C(n).b(),{[C(n).e("center")]:o.center}])},[x("div",{class:re(C(n).e("tail"))},null,2),o.$slots.dot?xe("v-if",!0):(F(),K("div",{key:0,class:re(C(r)),style:Xt({backgroundColor:o.color})},[o.icon?(F(),mt(C(Dn),{key:0,class:re(C(n).e("icon"))},{default:nt(()=>[(F(),mt(hr(o.icon)))]),_:1},8,["class"])):xe("v-if",!0)],6)),o.$slots.dot?(F(),K("div",{key:1,class:re(C(n).e("dot"))},[ft(o.$slots,"dot")],2)):xe("v-if",!0),x("div",{class:re(C(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(F(),K("div",{key:0,class:re([C(n).e("timestamp"),C(n).is("top")])},We(o.timestamp),3)):xe("v-if",!0),x("div",{class:re(C(n).e("content"))},[ft(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(F(),K("div",{key:1,class:re([C(n).e("timestamp"),C(n).is("bottom")])},We(o.timestamp),3)):xe("v-if",!0)],2)],2))}});var l2e=Jt(ynt,[["__file","timeline-item.vue"]]);const bnt=er(gnt,{TimelineItem:l2e}),wnt=vi(l2e),u2e=Kt({nowrap:Boolean});var c2e=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(c2e||{});const Ant=Object.values(c2e),DW=Kt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:it(Object),default:null}}),Cnt=Kt({side:{type:it(String),values:Ant,required:!0}}),xnt=["absolute","fixed"],Snt=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],IW=Kt({arrowPadding:{type:it(Number),default:5},effect:{type:it(String),default:"light"},contentClass:String,placement:{type:it(String),values:Snt,default:"bottom"},reference:{type:it(Object),default:null},offset:{type:Number,default:8},strategy:{type:it(String),values:xnt,default:"absolute"},showArrow:Boolean,...Es(["ariaLabel"])}),OW=Kt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:it(Function)},"onUpdate:open":{type:it(Function)}}),Nm={type:it(Function)},MW=Kt({onBlur:Nm,onClick:Nm,onFocus:Nm,onMouseDown:Nm,onMouseEnter:Nm,onMouseLeave:Nm}),Ent=Kt({...OW,...DW,...MW,...IW,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:it(Object),default:null},teleported:Boolean,to:{type:it([String,Object]),default:"body"}}),cD=Symbol("tooltipV2"),d2e=Symbol("tooltipV2Content"),TI="tooltip_v2.open",knt=tt({name:"ElTooltipV2Root"}),Tnt=tt({...knt,props:OW,setup(e,{expose:t}){const n=e,r=Q(n.defaultOpen),o=Q(null),i=J({get:()=>Il(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),a=J(()=>Ln(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=kv(()=>{i.value=!0},J(()=>n.delayDuration),{immediate:!1}),u=zt("tooltip-v2"),d=fs(),c=()=>{l(),i.value=!0},f=()=>{C(a)?s():c()},p=c,v=()=>{l(),i.value=!1};return St(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(TI)),p()),(y=n.onOpenChange)==null||y.call(n,g)}),jn(()=>{document.addEventListener(TI,v)}),Qr(()=>{l(),document.removeEventListener(TI,v)}),Sr(cD,{contentId:d,triggerRef:o,ns:u,onClose:v,onDelayOpen:f,onOpen:p}),t({onOpen:p,onClose:v}),(g,y)=>ft(g.$slots,"default",{open:C(i)})}});var _nt=Jt(Tnt,[["__file","root.vue"]]);const Dnt=tt({name:"ElTooltipV2Arrow"}),Int=tt({...Dnt,props:{...DW,...Cnt},setup(e){const t=e,{ns:n}=cn(cD),{arrowRef:r}=cn(d2e),o=J(()=>{const{style:i,width:a,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(F(),K("span",{ref_key:"arrowRef",ref:r,style:Xt(C(o)),class:re(C(n).e("arrow"))},null,6))}});var _ee=Jt(Int,[["__file","arrow.vue"]]);const Fy=Math.min,Qg=Math.max,IE=Math.round,Ax=Math.floor,Md=e=>({x:e,y:e}),Ont={left:"right",right:"left",bottom:"top",top:"bottom"},Mnt={start:"end",end:"start"};function JL(e,t,n){return Qg(e,Fy(t,n))}function LC(e,t){return typeof e=="function"?e(t):e}function Iv(e){return e.split("-")[0]}function FC(e){return e.split("-")[1]}function f2e(e){return e==="x"?"y":"x"}function PW(e){return e==="y"?"height":"width"}const Pnt=new Set(["top","bottom"]);function vh(e){return Pnt.has(Iv(e))?"y":"x"}function NW(e){return f2e(vh(e))}function Nnt(e,t,n){n===void 0&&(n=!1);const r=FC(e),o=NW(e),i=PW(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=OE(a)),[a,OE(a)]}function Rnt(e){const t=OE(e);return[eF(e),t,eF(t)]}function eF(e){return e.replace(/start|end/g,t=>Mnt[t])}const Dee=["left","right"],Iee=["right","left"],Bnt=["top","bottom"],Lnt=["bottom","top"];function Fnt(e,t,n){switch(e){case"top":case"bottom":return n?t?Iee:Dee:t?Dee:Iee;case"left":case"right":return t?Bnt:Lnt;default:return[]}}function Unt(e,t,n,r){const o=FC(e);let i=Fnt(Iv(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(eF)))),i}function OE(e){return e.replace(/left|right|bottom|top/g,t=>Ont[t])}function $nt(e){return{top:0,right:0,bottom:0,left:0,...e}}function p2e(e){return typeof e!="number"?$nt(e):{top:e,right:e,bottom:e,left:e}}function ME(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Oee(e,t,n){let{reference:r,floating:o}=e;const i=vh(t),a=NW(t),s=PW(a),l=Iv(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(FC(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const znt=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=Oee(u,r,l),f=r,p={},v=0;for(let h=0;h<s.length;h++){const{name:g,fn:y}=s[h],{x:m,y:b,data:w,reset:A}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=m??d,c=b??c,p={...p,[g]:{...p[g],...w}},A&&v<=50&&(v++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:c}=Oee(u,f,l)),h=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function RW(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=LC(t,e),v=p2e(p),g=s[f?c==="floating"?"reference":"floating":c],y=ME(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),m=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},A=ME(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:l}):m);return{top:(y.top-A.top+v.top)/w.y,bottom:(A.bottom-y.bottom+v.bottom)/w.y,left:(y.left-A.left+v.left)/w.x,right:(A.right-y.right+v.right)/w.x}}const jnt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=LC(e,t)||{};if(u==null)return{};const c=p2e(d),f={x:n,y:r},p=NW(o),v=PW(p),h=await a.getDimensions(u),g=p==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[p]-f[p]-i.floating[v],A=f[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let k=S?S[b]:0;(!k||!await(a.isElement==null?void 0:a.isElement(S)))&&(k=s.floating[b]||i.floating[v]);const M=w/2-A/2,D=k/2-h[v]/2-1,P=Fy(c[y],D),O=Fy(c[m],D),_=P,B=k-h[v]-O,N=k/2-h[v]/2+M,q=JL(_,N,B),U=!l.arrow&&FC(o)!=null&&N!==q&&i.reference[v]/2-(N<_?P:O)-h[v]/2<0,j=U?N<_?N-_:N-B:0;return{[p]:f[p]+j,data:{[p]:q,centerOffset:N-q-j,...U&&{alignmentOffset:j}},reset:U}}}),Hnt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...g}=LC(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Iv(o),m=vh(s),b=Iv(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=f||(b||!h?[OE(s)]:Rnt(s)),S=v!=="none";!f&&S&&A.push(...Unt(s,h,v,w));const k=[s,...A],M=await RW(t,g),D=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&D.push(M[y]),c){const N=Nnt(o,a,w);D.push(M[N[0]],M[N[1]])}if(P=[...P,{placement:o,overflows:D}],!D.every(N=>N<=0)){var O,_;const N=(((O=i.flip)==null?void 0:O.index)||0)+1,q=k[N];if(q&&(!(c==="alignment"?m!==vh(q):!1)||P.every(H=>vh(H.placement)===m?H.overflows[0]>0:!0)))return{data:{index:N,overflows:P},reset:{placement:q}};let U=(_=P.filter(j=>j.overflows[0]<=0).sort((j,H)=>j.overflows[1]-H.overflows[1])[0])==null?void 0:_.placement;if(!U)switch(p){case"bestFit":{var B;const j=(B=P.filter(H=>{if(S){const G=vh(H.placement);return G===m||G==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(G=>G>0).reduce((G,Z)=>G+Z,0)]).sort((H,G)=>H[1]-G[1])[0])==null?void 0:B[0];j&&(U=j);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}},Wnt=new Set(["left","top"]);async function Vnt(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Iv(n),s=FC(n),l=vh(n)==="y",u=Wnt.has(a)?-1:1,d=i&&l?-1:1,c=LC(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const qnt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await Vnt(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Gnt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...l}=LC(e,t),u={x:n,y:r},d=await RW(t,l),c=vh(Iv(o)),f=f2e(c);let p=u[f],v=u[c];if(i){const g=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=p+d[g],b=p-d[y];p=JL(m,p,b)}if(a){const g=c==="y"?"top":"left",y=c==="y"?"bottom":"right",m=v+d[g],b=v-d[y];v=JL(m,v,b)}const h=s.fn({...t,[f]:p,[c]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[c]:a}}}}}};function dD(){return typeof window<"u"}function Ub(e){return h2e(e)?(e.nodeName||"").toLowerCase():"#document"}function iu(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zd(e){var t;return(t=(h2e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function h2e(e){return dD()?e instanceof Node||e instanceof iu(e).Node:!1}function Uc(e){return dD()?e instanceof Element||e instanceof iu(e).Element:!1}function $d(e){return dD()?e instanceof HTMLElement||e instanceof iu(e).HTMLElement:!1}function Mee(e){return!dD()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof iu(e).ShadowRoot}const Knt=new Set(["inline","contents"]);function UC(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$c(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Knt.has(o)}const Qnt=new Set(["table","td","th"]);function Ynt(e){return Qnt.has(Ub(e))}const Znt=[":popover-open",":modal"];function fD(e){return Znt.some(t=>{try{return e.matches(t)}catch{return!1}})}const Xnt=["transform","translate","scale","rotate","perspective"],Jnt=["transform","translate","scale","rotate","perspective","filter"],ert=["paint","layout","strict","content"];function BW(e){const t=LW(),n=Uc(e)?$c(e):e;return Xnt.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Jnt.some(r=>(n.willChange||"").includes(r))||ert.some(r=>(n.contain||"").includes(r))}function trt(e){let t=s0(e);for(;$d(t)&&!Uy(t);){if(BW(t))return t;if(fD(t))return null;t=s0(t)}return null}function LW(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nrt=new Set(["html","body","#document"]);function Uy(e){return nrt.has(Ub(e))}function $c(e){return iu(e).getComputedStyle(e)}function pD(e){return Uc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function s0(e){if(Ub(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mee(e)&&e.host||Zd(e);return Mee(t)?t.host:t}function g2e(e){const t=s0(e);return Uy(t)?e.ownerDocument?e.ownerDocument.body:e.body:$d(t)&&UC(t)?t:g2e(t)}function oA(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=g2e(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=iu(o);if(i){const s=tF(a);return t.concat(a,a.visualViewport||[],UC(o)?o:[],s&&n?oA(s):[])}return t.concat(o,oA(o,[],n))}function tF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function v2e(e){const t=$c(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$d(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=IE(n)!==i||IE(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function FW(e){return Uc(e)?e:e.contextElement}function ey(e){const t=FW(e);if(!$d(t))return Md(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=v2e(t);let a=(i?IE(n.width):n.width)/r,s=(i?IE(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const rrt=Md(0);function m2e(e){const t=iu(e);return!LW()||!t.visualViewport?rrt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ort(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==iu(e)?!1:t}function Ov(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=FW(e);let a=Md(1);t&&(r?Uc(r)&&(a=ey(r)):a=ey(e));const s=ort(i,n,r)?m2e(i):Md(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,c=o.height/a.y;if(i){const f=iu(i),p=r&&Uc(r)?iu(r):r;let v=f,h=tF(v);for(;h&&r&&p!==v;){const g=ey(h),y=h.getBoundingClientRect(),m=$c(h),b=y.left+(h.clientLeft+parseFloat(m.paddingLeft))*g.x,w=y.top+(h.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,c*=g.y,l+=b,u+=w,v=iu(h),h=tF(v)}}return ME({width:d,height:c,x:l,y:u})}function hD(e,t){const n=pD(e).scrollLeft;return t?t.left+n:Ov(Zd(e)).left+n}function y2e(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hD(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function irt(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Zd(r),s=t?fD(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Md(1);const d=Md(0),c=$d(r);if((c||!c&&!i)&&((Ub(r)!=="body"||UC(a))&&(l=pD(r)),$d(r))){const p=Ov(r);u=ey(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!i?y2e(a,l):Md(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function art(e){return Array.from(e.getClientRects())}function srt(e){const t=Zd(e),n=pD(e),r=e.ownerDocument.body,o=Qg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hD(e);const s=-n.scrollTop;return $c(r).direction==="rtl"&&(a+=Qg(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Pee=25;function lrt(e,t){const n=iu(e),r=Zd(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=LW();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=hD(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-p);v<=Pee&&(i-=v)}else u<=Pee&&(i+=u);return{width:i,height:a,x:s,y:l}}const urt=new Set(["absolute","fixed"]);function crt(e,t){const n=Ov(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$d(e)?ey(e):Md(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function Nee(e,t,n){let r;if(t==="viewport")r=lrt(e,n);else if(t==="document")r=srt(Zd(e));else if(Uc(t))r=crt(t,n);else{const o=m2e(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ME(r)}function b2e(e,t){const n=s0(e);return n===t||!Uc(n)||Uy(n)?!1:$c(n).position==="fixed"||b2e(n,t)}function drt(e,t){const n=t.get(e);if(n)return n;let r=oA(e,[],!1).filter(s=>Uc(s)&&Ub(s)!=="body"),o=null;const i=$c(e).position==="fixed";let a=i?s0(e):e;for(;Uc(a)&&!Uy(a);){const s=$c(a),l=BW(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&urt.has(o.position)||UC(a)&&!l&&b2e(e,a))?r=r.filter(d=>d!==a):o=s,a=s0(a)}return t.set(e,r),r}function frt(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?fD(t)?[]:drt(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=Nee(t,d,o);return u.top=Qg(c.top,u.top),u.right=Fy(c.right,u.right),u.bottom=Fy(c.bottom,u.bottom),u.left=Qg(c.left,u.left),u},Nee(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function prt(e){const{width:t,height:n}=v2e(e);return{width:t,height:n}}function hrt(e,t,n){const r=$d(t),o=Zd(t),i=n==="fixed",a=Ov(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Md(0);function u(){l.x=hD(o)}if(r||!r&&!i)if((Ub(t)!=="body"||UC(o))&&(s=pD(t)),r){const p=Ov(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?y2e(o,s):Md(0),c=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:a.width,height:a.height}}function _I(e){return $c(e).position==="static"}function Ree(e,t){if(!$d(e)||$c(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zd(e)===n&&(n=n.ownerDocument.body),n}function w2e(e,t){const n=iu(e);if(fD(e))return n;if(!$d(e)){let o=s0(e);for(;o&&!Uy(o);){if(Uc(o)&&!_I(o))return o;o=s0(o)}return n}let r=Ree(e,t);for(;r&&Ynt(r)&&_I(r);)r=Ree(r,t);return r&&Uy(r)&&_I(r)&&!BW(r)?n:r||trt(e)||n}const grt=async function(e){const t=this.getOffsetParent||w2e,n=this.getDimensions,r=await n(e.floating);return{reference:hrt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vrt(e){return $c(e).direction==="rtl"}const mrt={convertOffsetParentRelativeRectToViewportRelativeRect:irt,getDocumentElement:Zd,getClippingRect:frt,getOffsetParent:w2e,getElementRects:grt,getClientRects:art,getDimensions:prt,getScale:ey,isElement:Uc,isRTL:vrt};function A2e(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yrt(e,t){let n=null,r;const o=Zd(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||t(),!f||!p)return;const v=Ax(c),h=Ax(o.clientWidth-(d+f)),g=Ax(o.clientHeight-(c+p)),y=Ax(d),b={rootMargin:-v+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Qg(0,Fy(1,l))||1};let w=!0;function A(S){const k=S[0].intersectionRatio;if(k!==l){if(!w)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!A2e(u,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(A,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,b)}n.observe(e)}return a(!0),i}function brt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=FW(e),d=o||i?[...u?oA(u):[],...oA(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=u&&s?yrt(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let v,h=l?Ov(e):null;l&&g();function g(){const y=Ov(e);h&&!A2e(h,y)&&n(),h=y,v=requestAnimationFrame(g)}return n(),()=>{var y;d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const wrt=RW,C2e=qnt,Art=Gnt,Crt=Hnt,x2e=jnt,S2e=(e,t,n)=>{const r=new Map,o={platform:mrt,...n},i={...o.platform,_c:r};return znt(e,t,{...o,platform:i})},xrt=Kt({style:{type:it([String,Object,Array]),default:()=>({})}}),Srt=tt({name:"ElVisuallyHidden"}),Ert=tt({...Srt,props:xrt,setup(e){const t=e,n=J(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,o)=>(F(),K("span",pr(r.$attrs,{style:C(n)}),[ft(r.$slots,"default")],16))}});var krt=Jt(Ert,[["__file","visual-hidden.vue"]]);Kt({});const Trt=e=>{if(!Kr)return;if(!e)return e;const t=Sa(e);return t||(Ro(e)?t:e)},_rt=({middleware:e,placement:t,strategy:n})=>{const r=Q(),o=Q(),i=Q(),a=Q(),s=Q({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Kr)return;const d=Trt(r),c=Sa(o);if(!d||!c)return;const f=await S2e(d,c,{placement:C(t),strategy:C(n),middleware:C(e)});ky(l).forEach(p=>{l[p].value=f[p]})};return jn(()=>{Cs(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},Drt=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=C(e);return r?x2e({element:r,padding:t}).fn(n):{}}}),Irt=tt({name:"ElTooltipV2Content"}),Ort=tt({...Irt,props:{...IW,...u2e},setup(e){const t=e,{triggerRef:n,contentId:r}=cn(cD),o=Q(t.placement),i=Q(t.strategy),a=Q(null),{referenceRef:s,contentRef:l,middlewareData:u,x:d,y:c,update:f}=_rt({placement:o,strategy:i,middleware:J(()=>{const b=[C2e(t.offset)];return t.showArrow&&b.push(Drt({arrowRef:a})),b})}),p=Mb().nextZIndex(),v=zt("tooltip-v2"),h=J(()=>o.value.split("-")[0]),g=J(()=>({position:C(i),top:`${C(c)||0}px`,left:`${C(d)||0}px`,zIndex:p})),y=J(()=>{if(!t.showArrow)return{};const{arrow:b}=C(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${b?.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${b?.y}px`||""}}),m=J(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(C(i)),t.contentClass]);return St(a,()=>f()),St(()=>t.placement,b=>o.value=b),jn(()=>{St(()=>t.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),Sr(d2e,{arrowRef:a}),(b,w)=>(F(),K("div",{ref_key:"contentRef",ref:l,style:Xt(C(g)),"data-tooltip-v2-root":""},[b.nowrap?xe("v-if",!0):(F(),K("div",{key:0,"data-side":C(h),class:re(C(m))},[ft(b.$slots,"default",{contentStyle:C(g),contentClass:C(m)}),Ve(C(krt),{id:C(r),role:"tooltip"},{default:nt(()=>[b.ariaLabel?(F(),K(Pt,{key:0},[xn(We(b.ariaLabel),1)],64)):ft(b.$slots,"default",{key:1})]),_:3},8,["id"]),ft(b.$slots,"arrow",{style:Xt(C(y)),side:C(h)})],10,["data-side"]))],4))}});var Bee=Jt(Ort,[["__file","content.vue"]]);const Mrt=Kt({setRef:{type:it(Function),required:!0},onlyChild:Boolean});var Prt=tt({props:Mrt,setup(e,{slots:t}){const n=Q(),r=aD(n,o=>{o?e.setRef(o.nextElementSibling):e.setRef(null)});return()=>{var o;const[i]=((o=t.default)==null?void 0:o.call(t))||[],a=e.onlyChild?ije(i.children):i.children;return Ve(Pt,{ref:r},[a])}}});const Nrt=tt({name:"ElTooltipV2Trigger"}),Rrt=tt({...Nrt,props:{...u2e,...MW},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=cn(cD);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},d=Ni(t.onMouseEnter,o),c=Ni(t.onMouseLeave,n),f=Ni(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),p=Ni(t.onFocus,()=>{s||r()}),v=Ni(t.onBlur,n),h=Ni(t.onClick,m=>{m.detail===0&&n()}),g={blur:v,click:h,focus:p,mousedown:f,mouseenter:d,mouseleave:c},y=(m,b,w)=>{m&&Object.entries(b).forEach(([A,S])=>{m[w](A,S)})};return St(i,(m,b)=>{y(m,g,"addEventListener"),y(b,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",a.value)}),Qr(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,b)=>m.nowrap?(F(),mt(C(Prt),{key:0,"set-ref":l,"only-child":""},{default:nt(()=>[ft(m.$slots,"default")]),_:3})):(F(),K("button",pr({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[ft(m.$slots,"default")],16))}});var Brt=Jt(Rrt,[["__file","trigger.vue"]]);const Lrt=tt({name:"ElTooltipV2"}),Frt=tt({...Lrt,props:Ent,setup(e){const n=_a(e),r=Ur(ru(n,Object.keys(DW))),o=Ur(ru(n,Object.keys(IW))),i=Ur(ru(n,Object.keys(OW))),a=Ur(ru(n,Object.keys(MW)));return(s,l)=>(F(),mt(_nt,Sl(Bd(i)),{default:nt(({open:u})=>[Ve(Brt,pr(a,{nowrap:""}),{default:nt(()=>[ft(s.$slots,"trigger")]),_:3},16),Ve(C(Bb),{to:s.to,disabled:!s.teleported},{default:nt(()=>[s.fullTransition?(F(),mt(Wi,Sl(pr({key:0},s.transitionProps)),{default:nt(()=>[s.alwaysOn||u?(F(),mt(Bee,Sl(pr({key:0},o)),{arrow:nt(({style:d,side:c})=>[s.showArrow?(F(),mt(_ee,pr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:nt(()=>[ft(s.$slots,"default")]),_:3},16)):xe("v-if",!0)]),_:2},1040)):(F(),K(Pt,{key:1},[s.alwaysOn||u?(F(),mt(Bee,Sl(pr({key:0},o)),{arrow:nt(({style:d,side:c})=>[s.showArrow?(F(),mt(_ee,pr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:nt(()=>[ft(s.$slots,"default")]),_:3},16)):xe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Urt=Jt(Frt,[["__file","tooltip.vue"]]);const $rt=er(Urt),E2e="left-check-change",k2e="right-check-change",T1=Kt({data:{type:it(Array),default:()=>[]},titles:{type:it(Array),default:()=>[]},buttonTexts:{type:it(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:it(Function)},leftDefaultChecked:{type:it(Array),default:()=>[]},rightDefaultChecked:{type:it(Array),default:()=>[]},renderContent:{type:it(Function)},modelValue:{type:it(Array),default:()=>[]},format:{type:it(Object),default:()=>({})},filterable:Boolean,props:{type:it(Object),default:()=>fi({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),nF=(e,t)=>[e,t].every(qt)||qt(e)&&Zi(t),zrt={[Tr]:(e,t,n)=>[e,n].every(qt)&&["left","right"].includes(t),[Gn]:e=>qt(e),[E2e]:nF,[k2e]:nF},rF="checked-change",jrt=Kt({data:T1.data,optionRender:{type:it(Function)},placeholder:String,title:String,filterable:Boolean,format:T1.format,filterMethod:T1.filterMethod,defaultChecked:T1.leftDefaultChecked,props:T1.props}),Hrt={[rF]:nF},$C=e=>{const t={label:"label",key:"key",disabled:"disabled"};return J(()=>({...t,...e.props}))},Wrt=(e,t,n)=>{const r=$C(e),o=J(()=>e.data.filter(d=>Pn(e.filterMethod)?e.filterMethod(t.query,d):String(d[r.value.label]||d[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=J(()=>o.value.filter(d=>!d[r.value.disabled])),a=J(()=>{const d=t.checked.length,c=e.data.length,{noChecked:f,hasChecked:p}=e.format;return f&&p?d>0?p.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,c.toString()):f.replace(/\${total}/g,c.toString()):`${d}/${c}`}),s=J(()=>{const d=t.checked.length;return d>0&&d<i.value.length}),l=()=>{const d=i.value.map(c=>c[r.value.key]);t.allChecked=d.length>0&&d.every(c=>t.checked.includes(c))},u=d=>{t.checked=d?i.value.map(c=>c[r.value.key]):[]};return St(()=>t.checked,(d,c)=>{if(l(),t.checkChangeByUser){const f=d.concat(c).filter(p=>!d.includes(p)||!c.includes(p));n(rF,d,f)}else n(rF,d),t.checkChangeByUser=!0}),St(i,()=>{l()}),St(()=>e.data,()=>{const d=[],c=o.value.map(f=>f[r.value.key]);t.checked.forEach(f=>{c.includes(f)&&d.push(f)}),t.checkChangeByUser=!1,t.checked=d}),St(()=>e.defaultChecked,(d,c)=>{if(c&&d.length===c.length&&d.every(v=>c.includes(v)))return;const f=[],p=i.value.map(v=>v[r.value.key]);d.forEach(v=>{p.includes(v)&&f.push(v)}),t.checkChangeByUser=!1,t.checked=f},{immediate:!0}),{filteredData:o,checkableData:i,checkedSummary:a,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},Vrt=tt({name:"ElTransferPanel"}),qrt=tt({...Vrt,props:jrt,emits:Hrt,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=({option:b})=>b,{t:a}=Hr(),s=zt("transfer"),l=Ur({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=$C(r),{filteredData:d,checkedSummary:c,isIndeterminate:f,handleAllCheckedChange:p}=Wrt(r,l,n),v=J(()=>!Jl(l.query)&&Jl(d.value)),h=J(()=>!Jl(o.default()[0].children)),{checked:g,allChecked:y,query:m}=_a(l);return t({query:m}),(b,w)=>(F(),K("div",{class:re(C(s).b("panel"))},[x("p",{class:re(C(s).be("panel","header"))},[Ve(C(Qu),{modelValue:C(y),"onUpdate:modelValue":A=>Ro(y)?y.value=A:null,indeterminate:C(f),"validate-event":!1,onChange:C(p)},{default:nt(()=>[xn(We(b.title)+" ",1),x("span",null,We(C(c)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),x("div",{class:re([C(s).be("panel","body"),C(s).is("with-footer",C(h))])},[b.filterable?(F(),mt(C(Us),{key:0,modelValue:C(m),"onUpdate:modelValue":A=>Ro(m)?m.value=A:null,class:re(C(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":C(mLe),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):xe("v-if",!0),ln(Ve(C(Y1e),{modelValue:C(g),"onUpdate:modelValue":A=>Ro(g)?g.value=A:null,"validate-event":!1,class:re([C(s).is("filterable",b.filterable),C(s).be("panel","list")])},{default:nt(()=>[(F(!0),K(Pt,null,an(C(d),A=>(F(),mt(C(Qu),{key:A[C(u).key],class:re(C(s).be("panel","item")),value:A[C(u).key],disabled:A[C(u).disabled],"validate-event":!1},{default:nt(()=>{var S;return[Ve(i,{option:(S=b.optionRender)==null?void 0:S.call(b,A)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[Ar,!C(v)&&!C(Jl)(b.data)]]),ln(x("div",{class:re(C(s).be("panel","empty"))},[ft(b.$slots,"empty",{},()=>[xn(We(C(v)?C(a)("el.transfer.noMatch"):C(a)("el.transfer.noData")),1)])],2),[[Ar,C(v)||C(Jl)(b.data)]])],2),C(h)?(F(),K("p",{key:0,class:re(C(s).be("panel","footer"))},[ft(b.$slots,"default")],2)):xe("v-if",!0)],2))}});var Lee=Jt(qrt,[["__file","transfer-panel.vue"]]);const Grt=e=>{const t=$C(e),n=J(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),r=J(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),o=J(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,a)=>{const s=n.value[a];return s&&i.push(s),i},[]));return{sourceData:r,targetData:o}},Krt=(e,t,n)=>{const r=$C(e),o=(s,l,u)=>{n(Gn,s),n(Tr,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const d=u[r.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),o(s,"right",t.leftChecked)}}},Qrt=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(E2e,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(k2e,o,i)}}),Yrt=tt({name:"ElTransfer"}),Zrt=tt({...Yrt,props:T1,emits:zrt,setup(e,{expose:t,emit:n}){const r=e,o=pa(),{t:i}=Hr(),a=zt("transfer"),{formItem:s}=ks(),l=Ur({leftChecked:[],rightChecked:[]}),u=$C(r),{sourceData:d,targetData:c}=Grt(r),{onSourceCheckedChange:f,onTargetCheckedChange:p}=Qrt(l,n),{addToLeft:v,addToRight:h}=Krt(r,l,n),g=Q(),y=Q(),m=M=>{switch(M){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=J(()=>r.buttonTexts.length===2),w=J(()=>r.titles[0]||i("el.transfer.titles.0")),A=J(()=>r.titles[1]||i("el.transfer.titles.1")),S=J(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));St(()=>r.modelValue,()=>{var M;r.validateEvent&&((M=s?.validate)==null||M.call(s,"change").catch(D=>void 0))});const k=J(()=>M=>{var D;if(r.renderContent)return r.renderContent(Fn,M);const P=(((D=o.default)==null?void 0:D.call(o,{option:M}))||[]).filter(O=>O.type!==la);return P.length?P:Fn("span",M[u.value.label]||M[u.value.key])});return t({clearQuery:m,leftPanel:g,rightPanel:y}),(M,D)=>(F(),K("div",{class:re(C(a).b())},[Ve(Lee,{ref_key:"leftPanel",ref:g,data:C(d),"option-render":C(k),placeholder:C(S),title:C(w),filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,"default-checked":M.leftDefaultChecked,props:r.props,onCheckedChange:C(f)},{empty:nt(()=>[ft(M.$slots,"left-empty")]),default:nt(()=>[ft(M.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),x("div",{class:re(C(a).e("buttons"))},[Ve(C(Za),{type:"primary",class:re([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(Jl)(l.rightChecked),onClick:C(v)},{default:nt(()=>[Ve(C(Dn),null,{default:nt(()=>[Ve(C(Gf))]),_:1}),C($r)(M.buttonTexts[0])?xe("v-if",!0):(F(),K("span",{key:0},We(M.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Ve(C(Za),{type:"primary",class:re([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(Jl)(l.leftChecked),onClick:C(h)},{default:nt(()=>[C($r)(M.buttonTexts[1])?xe("v-if",!0):(F(),K("span",{key:0},We(M.buttonTexts[1]),1)),Ve(C(Dn),null,{default:nt(()=>[Ve(C(ka))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Ve(Lee,{ref_key:"rightPanel",ref:y,data:C(c),"option-render":C(k),placeholder:C(S),filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,title:C(A),"default-checked":M.rightDefaultChecked,props:r.props,onCheckedChange:C(p)},{empty:nt(()=>[ft(M.$slots,"right-empty")]),default:nt(()=>[ft(M.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Xrt=Jt(Zrt,[["__file","transfer.vue"]]);const Jrt=er(Xrt),ty="$treeNodeId",Fee=function(e,t){!t||t[ty]||Object.defineProperty(t,ty,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},UW=(e,t)=>t?.[e||ty],oF=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},iF=e=>{let t=!0,n=!0,r=!0;for(let o=0,i=e.length;o<i;o++){const a=e[o];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},m4=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=iF(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||m4(o)},Cx=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(Pn(o))return o(r,e);if(In(o))return r[o];if($r(o)){const i=r[t];return $r(i)?"":i}},aF=function(e,t){e.forEach(n=>{n.canFocus=t,aF(n.childNodes,t)})};let eot=0,sF=class LS{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=eot++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Zr(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const r=n.props;if(r&&typeof r.isLeaf<"u"){const a=Cx(this,"isLeaf");Co(a)&&(this.isLeafByUser=a)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),qt(this.data)||Fee(this,this.data),!this.data)return;const o=n.defaultExpandedKeys,i=n.key;i&&!Zi(this.key)&&o&&o.includes(this.key)&&this.expand(null,n.autoExpandParent),i&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){qt(t)||Fee(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&qt(this.data)?n=this.data:n=Cx(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return Cx(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Cx(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof LS)){if(!r){const o=this.getChildren(!0);o?.includes(t.data)||($r(n)||n<0?o?.push(t.data):o?.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ur(new LS(t)),t instanceof LS&&t.initialize()}t.level=this.level+1,$r(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),aF(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{qt(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||m4(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,aF(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=iF(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let f=0,p=u.length;f<p;f++){const v=u[f];o=o||t!==!1;const h=v.disabled?v.checked:o;v.setChecked(h,n,!0,o)}const{half:d,all:c}=iF(u);c||(this.checked=c,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),m4(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||m4(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),$r(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},o=[];t.forEach((i,a)=>{const s=i[ty];!!s&&n.findIndex(u=>u?.[ty]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i?.[ty]]||this.removeChildByData(i)}),o.forEach(({index:i,data:a})=>{this.insertChild({data:a},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},o=()=>{this.loading=!1};this.store.load(this,r,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||m4(this)}};class tot{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Zr(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new sF({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},go)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=async function(i){const a=i.root?i.root.childNodes:i.childNodes;for(const[s,l]of a.entries())l.visible=!!n?.call(l,t,l.data,l),s%80===0&&s>0&&await Vt(),await o(l);if(!i.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};o(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof sF)return t;const n=ar(t)?UW(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var r;const o=this.getNode(n);(r=o.parent)==null||r.insertBefore({data:t},o)}insertAfter(t,n){var r;const o=this.getNode(n);(r=o.parent)==null||r.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=Il(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!Zi(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const r=t.key;Zi(r)||(this.nodesMap[r]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)Zr(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let i=o.length-1;i>=0;i--){const a=o[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const o=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(r);o.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var d;i[u.data[t]]=!0,(d=u.childNodes)!=null&&d.length&&s(u)})};for(let l=0,u=o.length;l<u;l++){const d=o[l],c=d.data[t].toString();if(!a.includes(c)){d.checked&&!i[c]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&s(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(d)}}}setCheckedNodes(t,n=!1){const r=this.key,o={};t.forEach(i=>{o[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,o={};t.forEach(i=>{o[i]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const o=this.getNode(t);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var r;const o=t[this.key],i=this.nodesMap[o];this.setCurrentNode(i),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0))}setCurrentNodeKey(t,n=!0){var r;if(this.currentNodeKey=t,Il(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0)))}}const $W="RootTree",T2e="NodeInstance",Uee="TreeNodeMap",not=tt({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=zt("tree"),n=cn(T2e),r=cn($W);return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(Fn,{_self:n,node:o,data:i,store:a}):ft(r.ctx.slots,"default",{node:o,data:i},()=>[Fn(_W,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}});var rot=Jt(not,[["__file","tree-node-content.vue"]]);function _2e(e){const t=cn(Uee,null),n={treeNodeExpand:r=>{var o;e.node!==r&&((o=e.node)==null||o.collapse())},children:[]};return t&&t.children.push(n),Sr(Uee,n),{broadcastExpanded:r=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const D2e=Symbol("dragEvents");function oot({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=zt("tree"),a=Q({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Sr(D2e,{treeNodeDragStart:({event:d,treeNode:c})=>{if(d.dataTransfer){if(Pn(e.allowDrag)&&!e.allowDrag(c.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=c,t.emit("node-drag-start",c.node,d)}},treeNodeDragOver:({event:d,treeNode:c})=>{if(!d.dataTransfer)return;const f=c,p=a.value.dropNode;p&&p.node.id!==f.node.id&&zs(p.$el,i.is("drop-inner"));const v=a.value.draggingNode;if(!v||!f)return;let h=!0,g=!0,y=!0,m=!0;Pn(e.allowDrop)&&(h=e.allowDrop(v.node,f.node,"prev"),m=g=e.allowDrop(v.node,f.node,"inner"),y=e.allowDrop(v.node,f.node,"next")),d.dataTransfer.dropEffect=g||h||y?"move":"none",(h||g||y)&&p?.node.id!==f.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,d),t.emit("node-drag-enter",v.node,f.node,d)),h||g||y?a.value.dropNode=f:a.value.dropNode=null,f.node.nextSibling===v.node&&(y=!1),f.node.previousSibling===v.node&&(h=!1),f.node.contains(v.node,!1)&&(g=!1),(v.node===f.node||v.node.contains(f.node))&&(h=!1,g=!1,y=!1);const b=f.$el,w=b.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),A=n.value.getBoundingClientRect();let S;const k=h?g?.25:y?.45:1:-1,M=y?g?.75:h?.55:0:1;let D=-9999;const P=d.clientY-w.top;P<w.height*k?S="before":P>w.height*M?S="after":g?S="inner":S="none";const O=b.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),_=r.value;S==="before"?D=O.top-A.top:S==="after"&&(D=O.bottom-A.top),_.style.top=`${D}px`,_.style.left=`${O.right-A.left}px`,S==="inner"?Nu(b,i.is("drop-inner")):zs(b,i.is("drop-inner")),a.value.showDropIndicator=S==="before"||S==="after",a.value.allowDrop=a.value.showDropIndicator||m,a.value.dropType=S,t.emit("node-drag-over",v.node,f.node,d)},treeNodeDragEnd:d=>{var c,f;const{draggingNode:p,dropType:v,dropNode:h}=a.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),p?.node.data&&h){const g={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?(c=h.node.parent)==null||c.insertBefore(g,h.node):v==="after"?(f=h.node.parent)==null||f.insertAfter(g,h.node):v==="inner"&&h.node.insertChild(g),v!=="none"&&(o.value.registerNode(g),o.value.key&&p.node.eachNode(y=>{var m;(m=o.value.nodesMap[y.data[o.value.key]])==null||m.setChecked(y.checked,!o.value.checkStrictly)})),zs(h.$el,i.is("drop-inner")),t.emit("node-drag-end",p.node,h.node,v,d),v!=="none"&&t.emit("node-drop",p.node,h.node,v,d)}p&&!h&&t.emit("node-drag-end",p.node,null,v,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const iot=tt({name:"ElTreeNode",components:{ElCollapseTransition:oD,ElCheckbox:Qu,NodeContent:rot,ElIcon:Dn,Loading:Bc},props:{node:{type:sF,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=zt("tree"),{broadcastExpanded:r}=_2e(e),o=cn($W),i=Q(!1),a=Q(!1),s=Q(),l=Q(),u=Q(),d=cn(D2e),c=vr();Sr(T2e,c),e.node.expanded&&(i.value=!0,a.value=!0);const f=o.props.props.children||"children";St(()=>{var D;const P=(D=e.node.data)==null?void 0:D[f];return P&&[...P]},()=>{e.node.updateChildren()}),St(()=>e.node.indeterminate,D=>{h(e.node.checked,D)}),St(()=>e.node.checked,D=>{h(D,e.node.indeterminate)}),St(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),St(()=>e.node.expanded,D=>{Vt(()=>i.value=D),D&&(a.value=!0)});const p=D=>UW(o.props.nodeKey,D.data),v=D=>{const P=e.props.class;if(!P)return{};let O;if(Pn(P)){const{data:_}=D;O=P(_,D)}else O=P;return In(O)?{[O]:!0}:O},h=(D,P)=>{(s.value!==D||l.value!==P)&&o.ctx.emit("check-change",e.node.data,D,P),s.value=D,l.value=P},g=D=>{oF(o.store,o.ctx.emit,()=>{var P;if((P=o?.props)==null?void 0:P.nodeKey){const _=p(e.node);o.store.value.setCurrentNodeKey(_)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&m(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&b(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,c,D)},y=D=>{var P;(P=o.instance.vnode.props)!=null&&P.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),o.ctx.emit("node-contextmenu",D,e.node.data,e.node,c)},m=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,c),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,c)}))},b=D=>{e.node.setChecked(D,!o?.props.checkStrictly),Vt(()=>{const P=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:P.getCheckedNodes(),checkedKeys:P.getCheckedKeys(),halfCheckedNodes:P.getHalfCheckedNodes(),halfCheckedKeys:P.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:i,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:h,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:b,handleChildNodeExpand:(D,P,O)=>{r(P),o.ctx.emit("node-expand",D,P,O)},handleDragStart:D=>{o.props.draggable&&d.treeNodeDragStart({event:D,treeNode:e})},handleDragOver:D=>{D.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:e.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{o.props.draggable&&d.treeNodeDragEnd(D)},CaretRight:Kme}}});function aot(e,t,n,r,o,i){const a=sr("el-icon"),s=sr("el-checkbox"),l=sr("loading"),u=sr("node-content"),d=sr("el-tree-node"),c=sr("el-collapse-transition");return ln((F(),K("div",{ref:"node$",class:re([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Qt(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Qt(e.handleDragStart,["stop"]),onDragover:Qt(e.handleDragOver,["stop"]),onDragend:Qt(e.handleDragEnd,["stop"]),onDrop:Qt(e.handleDrop,["stop"])},[x("div",{class:re(e.ns.be("node","content")),style:Xt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(F(),mt(a,{key:0,class:re([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Qt(e.handleExpandIconClick,["stop"])},{default:nt(()=>[(F(),mt(hr(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.showCheckbox?(F(),mt(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Qt(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):xe("v-if",!0),e.node.loading?(F(),mt(a,{key:2,class:re([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:nt(()=>[Ve(l)]),_:1},8,["class"])):xe("v-if",!0),Ve(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Ve(c,null,{default:nt(()=>[!e.renderAfterExpand||e.childNodeRendered?ln((F(),K("div",{key:0,class:re(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:Qt(()=>{},["stop"])},[(F(!0),K(Pt,null,an(e.node.childNodes,f=>(F(),mt(d,{key:e.getNodeKey(f),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:f,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[Ar,e.expanded]]):xe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[Ar,e.node.visible]])}var sot=Jt(iot,[["render",aot],["__file","tree-node.vue"]]);function lot({el$:e},t){const n=zt("tree");jn(()=>{i()}),Wc(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(s=>{s.setAttribute("tabindex","-1")})});function r(a,s){var l,u;const d=t.value.getNode(a[s].dataset.key);return d.canFocus&&d.visible&&(((l=d.parent)==null?void 0:l.expanded)||((u=d.parent)==null?void 0:u.level)===0)}Mo(e,"keydown",a=>{const s=a.target;if(!s.className.includes(n.b("node")))return;const l=a.code,u=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=u.indexOf(s);let c;if([gn.up,gn.down].includes(l)){if(a.preventDefault(),l===gn.up){c=d===-1?0:d!==0?d-1:u.length-1;const p=c;for(;!r(u,c);){if(c--,c===p){c=-1;break}c<0&&(c=u.length-1)}}else{c=d===-1?0:d<u.length-1?d+1:0;const p=c;for(;!r(u,c);){if(c++,c===p){c=-1;break}c>=u.length&&(c=0)}}c!==-1&&u[c].focus()}[gn.left,gn.right].includes(l)&&(a.preventDefault(),s.click());const f=s.querySelector('[type="checkbox"]');[gn.enter,gn.numpadEnter,gn.space].includes(l)&&f&&(a.preventDefault(),f.click())});const i=()=>{var a;if(!e.value)return;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(a=s[0])==null||a.setAttribute("tabindex","0")}}const uot=tt({name:"ElTree",components:{ElTreeNode:sot},props:{data:{type:it(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:it(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:it(Function)},allowDrop:{type:it(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:vo}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Hr(),r=zt("tree"),o=cn(Fb,null),i=Q(new tot({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const a=Q(i.value.root),s=Q(null),l=Q(null),u=Q(null),{broadcastExpanded:d}=_2e(e),{dragState:c}=oot({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});lot({el$:l},i);const f=J(()=>{const{childNodes:H}=a.value,G=o?o.hasFilteredOptions!==0:!1;return(!H||H.length===0||H.every(({visible:Z})=>!Z))&&!G});St(()=>e.currentNodeKey,H=>{i.value.setCurrentNodeKey(H??null)}),St(()=>e.defaultCheckedKeys,(H,G)=>{ua(H,G)||i.value.setDefaultCheckedKey(H??[])}),St(()=>e.defaultExpandedKeys,H=>{i.value.setDefaultExpandedKeys(H??[])}),St(()=>e.data,H=>{i.value.setData(H)},{deep:!0}),St(()=>e.checkStrictly,H=>{i.value.checkStrictly=H});const p=H=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(H)},v=H=>UW(e.nodeKey,H.data),h=H=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const G=i.value.getNode(H);if(!G)return[];const Z=[G.data];let $=G.parent;for(;$&&$!==a.value;)Z.push($.data),$=$.parent;return Z.reverse()},g=(H,G)=>i.value.getCheckedNodes(H,G),y=H=>i.value.getCheckedKeys(H),m=()=>{const H=i.value.getCurrentNode();return H?H.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const H=m();return H?H[e.nodeKey]:null},w=(H,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(H,G)},A=(H,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(H,G)},S=(H,G,Z)=>{i.value.setChecked(H,G,Z)},k=()=>i.value.getHalfCheckedNodes(),M=()=>i.value.getHalfCheckedKeys(),D=(H,G=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");oF(i,t.emit,()=>{d(H),i.value.setUserCurrentNode(H,G)})},P=(H,G=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");oF(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(H??null,G)})},O=H=>i.value.getNode(H),_=H=>{i.value.remove(H)},B=(H,G)=>{i.value.append(H,G)},N=(H,G)=>{i.value.insertBefore(H,G)},q=(H,G)=>{i.value.insertAfter(H,G)},U=(H,G,Z)=>{d(G),t.emit("node-expand",H,G,Z)},j=(H,G)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(H,G)};return Sr($W,{ctx:t,props:e,store:i,root:a,currentNode:s,instance:vr()}),Sr(Fd,void 0),{ns:r,store:i,root:a,currentNode:s,dragState:c,el$:l,dropIndicator$:u,isEmpty:f,filter:p,getNodeKey:v,getNodePath:h,getCheckedNodes:g,getCheckedKeys:y,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:w,setCheckedKeys:A,setChecked:S,getHalfCheckedNodes:k,getHalfCheckedKeys:M,setCurrentNode:D,setCurrentKey:P,t:n,getNode:O,remove:_,append:B,insertBefore:N,insertAfter:q,handleNodeExpand:U,updateKeyChildren:j}}});function cot(e,t,n,r,o,i){const a=sr("el-tree-node");return F(),K("div",{ref:"el$",class:re([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(F(!0),K(Pt,null,an(e.root.childNodes,s=>(F(),mt(a,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(F(),K("div",{key:0,class:re(e.ns.e("empty-block"))},[ft(e.$slots,"empty",{},()=>{var s;return[x("span",{class:re(e.ns.e("empty-text"))},We((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):xe("v-if",!0),ln(x("div",{ref:"dropIndicator$",class:re(e.ns.e("drop-indicator"))},null,2),[[Ar,e.dragState.showDropIndicator]])],2)}var dot=Jt(uot,[["render",cot],["__file","tree.vue"]]);const PE=er(dot),fot=(e,{attrs:t,emit:n},{select:r,tree:o,key:i})=>{const a=zt("tree-select");return St(()=>e.data,()=>{e.filterable&&Vt(()=>{var l,u;(u=o.value)==null||u.filter((l=r.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...ru(_a(e),Object.keys(_v.props)),...t,class:J(()=>t.class),style:J(()=>t.style),"onUpdate:modelValue":l=>n(Gn,l),valueKey:i,popperClass:J(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=o.value)==null||u.filter(l)}}},pot=tt({extends:AE,setup(e,t){const n=AE.setup(e,t);delete n.selectOptionClick;const r=vr().proxy;return Vt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),St(()=>t.attrs.visible,o=>{Vt(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function lF(e){return e||e===0}function zW(e){return qt(e)&&e.length}function Rm(e){return qt(e)?e:lF(e)?[e]:[]}function FS(e,t,n,r,o){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,o))return r?r(a,i,e,o):a;{const s=n(a);if(zW(s)){const l=FS(s,t,n,r,a);if(l)return l}}}}function US(e,t,n,r){for(let o=0;o<e.length;o++){const i=e[o];t(i,o,e,r);const a=n(i);zW(a)&&US(a,t,n,i)}}const hot=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{St([()=>e.modelValue,i],()=>{e.showCheckbox&&Vt(()=>{const f=i.value;f&&!ua(f.getCheckedKeys(),Rm(e.modelValue))&&f.setCheckedKeys(Rm(e.modelValue))})},{immediate:!0,deep:!0});const s=J(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(f,p)=>{var v;const h=s.value[f];return Pn(h)?h(p,(v=i.value)==null?void 0:v.getNode(l("value",p))):p[h]},u=Rm(e.modelValue).map(f=>FS(e.data||[],p=>l("value",p)===f,p=>l("children",p),(p,v,h,g)=>g&&l("value",g))).filter(f=>lF(f)),d=J(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return US(e.data.concat(e.cacheData),p=>{const v=l("value",p);f.push({value:v,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),f}),c=()=>{var f;return(f=i.value)==null?void 0:f.getCheckedKeys().filter(p=>{var v;const h=(v=i.value)==null?void 0:v.getNode(p);return!Zi(h)&&Jl(h.childNodes)})};return{...ru(_a(e),Object.keys(PE.props)),...t,nodeKey:a,expandOnClickNode:J(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:J(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:p,data:v,store:h})=>f(pot,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:p.visible},e.renderContent?()=>e.renderContent(f,{node:p,data:v,store:h}):n.default?()=>n.default({node:p,data:v,store:h}):void 0),filterNodeMethod:(f,p,v)=>e.filterNodeMethod?e.filterNodeMethod(f,p,v):f?new RegExp(uW(f),"i").test(l("label",p)||""):!0,onNodeClick:(f,p,v)=>{var h,g,y,m;if((h=t.onNodeClick)==null||h.call(t,f,p,v),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",f)){const b=(g=o.value)==null?void 0:g.states.options.get(l("value",f));(y=o.value)==null||y.handleOptionSelect(b)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick();(m=o.value)==null||m.focus()}},onCheck:(f,p)=>{var v;if(!e.showCheckbox)return;const h=l("value",f),g={};US([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const y=p.checkedKeys,m=e.multiple?Rm(e.modelValue).filter(w=>!(w in g)&&!y.includes(w)):[],b=m.concat(y);if(e.checkStrictly)r(Gn,e.multiple?b:b.includes(h)?h:void 0);else if(e.multiple){const w=c();r(Gn,m.concat(w))}else{const w=FS([f],k=>!zW(l("children",k))&&!l("disabled",k),k=>l("children",k)),A=w?l("value",w):void 0,S=lF(e.modelValue)&&!!FS([f],k=>l("value",k)===e.modelValue,k=>l("children",k));r(Gn,A===e.modelValue||S?void 0:A)}Vt(()=>{var w;const A=Rm(e.modelValue);i.value.setCheckedKeys(A),(w=t.onCheck)==null||w.call(t,f,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(v=o.value)==null||v.focus()},onNodeExpand:(f,p,v)=>{var h;(h=t.onNodeExpand)==null||h.call(t,f,p,v),Vt(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},y=i.value.getCheckedKeys();US([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const m=Rm(e.modelValue).filter(w=>!(w in g)&&!y.includes(w)),b=c();r(Gn,m.concat(b))}})},cacheOptions:d}};var got=tt({props:{data:{type:Array,default:()=>[]}},setup(e){const t=cn(Fb);return St(()=>e.data,()=>{var n;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Kr&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const vot=tt({name:"ElTreeSelect",inheritAttrs:!1,props:{..._v.props,...PE.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=Q(),i=Q(),a=J(()=>e.nodeKey||e.valueKey||"value"),s=fot(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=hot(e,t,{select:o,tree:i,key:a}),d=Ur({});return r(d),jn(()=>{Object.assign(d,{...ru(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ru(o.value,["focus","blur","selectedLabel"])})}),()=>Fn(_v,Ur({...s,ref:c=>o.value=c}),{...n,default:()=>[Fn(got,{data:l.value}),Fn(PE,Ur({...u,ref:c=>i.value=c}))]})}});var mot=Jt(vot,[["__file","tree-select.vue"]]);const yot=er(mot),jW=Symbol(),bot={key:-1,level:-1,data:{}};var y4=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(y4||{}),uF=(e=>(e.ADD="add",e.DELETE="delete",e))(uF||{});const I2e={type:Number,default:26},wot=Kt({data:{type:it(Array),default:()=>fi([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:it(Object),default:()=>fi({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:it(Array),default:()=>fi([])},checkStrictly:Boolean,defaultExpandedKeys:{type:it(Array),default:()=>fi([])},indent:{type:Number,default:16},itemSize:I2e,icon:{type:vo},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:it([String,Number])},accordion:Boolean,filterMethod:{type:it(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Aot=Kt({node:{type:it(Object),default:()=>fi(bot)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:I2e}),Cot=Kt({node:{type:it(Object),required:!0}}),O2e="node-click",M2e="node-drop",P2e="node-expand",N2e="node-collapse",R2e="current-change",B2e="check",L2e="check-change",F2e="node-contextmenu",xot={[O2e]:(e,t,n)=>e&&t&&n,[M2e]:(e,t,n)=>e&&t&&n,[P2e]:(e,t)=>e&&t,[N2e]:(e,t)=>e&&t,[R2e]:(e,t)=>e&&t,[B2e]:(e,t)=>e&&t,[L2e]:(e,t)=>e&&Co(t),[F2e]:(e,t,n)=>e&&t&&n},Sot={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Co(t)};function Eot(e,t){const n=Q(new Set),r=Q(new Set),{emit:o}=vr();St([()=>t.value,()=>e.defaultCheckedKeys],()=>Vt(()=>{m(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=t.value,A=n.value,S=new Set;for(let k=w-1;k>=1;--k){const M=b.get(k);M&&M.forEach(D=>{const P=D.children;if(P){let O=!0,_=!1;for(const B of P){const N=B.key;if(A.has(N))_=!0;else if(S.has(N)){O=!1,_=!0;break}else O=!1}O?A.add(D.key):_?(S.add(D.key),A.delete(D.key)):(A.delete(D.key),S.delete(D.key))}})}r.value=S},a=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,w,A=!0,S=!0)=>{const k=n.value,M=(D,P)=>{k[P?uF.ADD:uF.DELETE](D.key);const O=D.children;!e.checkStrictly&&O&&O.forEach(_=>{_.disabled||M(_,P)})};M(b,w),S&&i(),A&&u(b,w)},u=(b,w)=>{const{checkedNodes:A,checkedKeys:S}=v(),{halfCheckedNodes:k,halfCheckedKeys:M}=h();o(B2e,b.data,{checkedKeys:S,checkedNodes:A,halfCheckedKeys:M,halfCheckedNodes:k}),o(L2e,b.data,w)};function d(b=!1){return v(b).checkedKeys}function c(b=!1){return v(b).checkedNodes}function f(){return h().halfCheckedKeys}function p(){return h().halfCheckedNodes}function v(b=!1){const w=[],A=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(k=>{const M=S.get(k);M&&(!b||b&&M.isLeaf)&&(A.push(k),w.push(M.data))})}return{checkedKeys:A,checkedNodes:w}}function h(){const b=[],w=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:A}=t.value;r.value.forEach(S=>{const k=A.get(S);k&&(w.push(S),b.push(k.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),r.value.clear(),Vt(()=>{m(b)})}function y(b,w){if(t?.value&&e.showCheckbox){const A=t.value.treeNodeMap.get(b);A&&l(A,w,!1)}}function m(b){if(t?.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&b?.length>0){for(const A of b){const S=w.get(A);S&&!a(S)&&l(S,!0,!1,!1)}i()}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:y,setCheckedKeys:g}}function kot(e,t){const n=Q(new Set([])),r=Q(new Set([])),o=J(()=>Pn(e.filterMethod));function i(s){var l;if(!o.value)return;const u=new Set,d=r.value,c=n.value,f=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;c.clear();function h(g){g.forEach(y=>{f.push(y),v?.(s,y.data,y)?f.forEach(b=>{u.add(b.key)}):y.isLeaf&&c.add(y.key);const m=y.children;if(m&&h(m),!y.isLeaf){if(!u.has(y.key))c.add(y.key);else if(m){let b=!0;for(const w of m)if(!c.has(w.key)){b=!1;break}b?d.add(y.key):d.delete(y.key)}}f.pop()})}return h(p),u}function a(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function Tot(e,t){const n=Q(new Set),r=Q(),o=Uo(),i=Q(),{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v}=Eot(e,o),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=kot(e,o),m=J(()=>{var we;return((we=e.props)==null?void 0:we.value)||y4.KEY}),b=J(()=>{var we;return((we=e.props)==null?void 0:we.children)||y4.CHILDREN}),w=J(()=>{var we;return((we=e.props)==null?void 0:we.disabled)||y4.DISABLED}),A=J(()=>{var we;return((we=e.props)==null?void 0:we.label)||y4.LABEL}),S=J(()=>{var we;const he=n.value,Te=g.value,Y=[],be=((we=o.value)==null?void 0:we.treeNodes)||[],De=[];for(let pe=be.length-1;pe>=0;--pe)De.push(be[pe]);for(;De.length;){const pe=De.pop();if(!Te.has(pe.key)&&(Y.push(pe),pe.children&&he.has(pe.key)))for(let oe=pe.children.length-1;oe>=0;--oe)De.push(pe.children[oe])}return Y}),k=J(()=>S.value.length>0);function M(we){const he=new Map,Te=new Map;let Y=1;function be(pe,oe=1,ce=void 0){var Re;const Ee=[];for(const Le of pe){const Fe=O(Le),Pe={level:oe,key:Fe,data:Le};Pe.label=B(Le),Pe.parent=ce;const Ne=P(Le);Pe.disabled=_(Le),Pe.isLeaf=!Ne||Ne.length===0,Pe.expanded=n.value.has(Fe),Ne&&Ne.length&&(Pe.children=be(Ne,oe+1,Pe)),Ee.push(Pe),he.set(Fe,Pe),Te.has(oe)||Te.set(oe,[]),(Re=Te.get(oe))==null||Re.push(Pe)}return oe>Y&&(Y=oe),Ee}const De=be(we);return{treeNodeMap:he,levelTreeNodeMap:Te,maxLevel:Y,treeNodes:De}}function D(we){const he=h(we);he&&(n.value=he)}function P(we){return we[b.value]}function O(we){return we?we[m.value]:""}function _(we){return we[w.value]}function B(we){return we[A.value]}function N(we){n.value.has(we.key)?$(we):Z(we)}function q(we){const he=new Set,Te=o.value.treeNodeMap;we.forEach(Y=>{let be=Te.get(Y);for(;be&&!he.has(be.key);)he.add(be.key),be.expanded=!0,be=be.parent}),n.value=he}function U(we,he){t(O2e,we.data,we,he),H(we),e.expandOnClickNode&&N(we),e.showCheckbox&&(e.checkOnClickNode||we.isLeaf&&e.checkOnClickLeaf)&&!we.disabled&&l(we,!s(we),!0)}function j(we,he){t(M2e,we.data,we,he)}function H(we){W(we)||(r.value=we.key,t(R2e,we.data,we))}function G(we,he){l(we,he)}function Z(we){const he=n.value;if(o.value&&e.accordion){const{treeNodeMap:Te}=o.value;he.forEach(Y=>{const be=Te.get(Y);we&&we.level===be?.level&&(he.delete(Y),be.expanded=!1)})}he.add(we.key),we.expanded=!0,t(P2e,we.data,we)}function $(we){n.value.delete(we.key),we.expanded=!1,t(N2e,we.data,we)}function L(we){return!!we.disabled}function W(we){const he=r.value;return he!==void 0&&he===we.key}function ie(){var we,he;if(r.value)return(he=(we=o.value)==null?void 0:we.treeNodeMap.get(r.value))==null?void 0:he.data}function ee(){return r.value}function te(we){r.value=we}function X(we){o.value=M(we)}function ue(we){var he;const Te=ar(we)?O(we):we;return(he=o.value)==null?void 0:he.treeNodeMap.get(Te)}function ve(we,he="auto"){const Te=ue(we);Te&&i.value&&i.value.scrollToItem(S.value.indexOf(Te),he)}function Me(we){var he;(he=i.value)==null||he.scrollTo(we)}return St(()=>e.currentNodeKey,we=>{r.value=we},{immediate:!0}),St(()=>e.defaultExpandedKeys,we=>{n.value=new Set(we)},{immediate:!0}),St(()=>e.data,we=>{X(we)},{immediate:!0}),{tree:o,flattenTree:S,isNotEmpty:k,listRef:i,getKey:O,getChildren:P,toggleExpand:N,toggleCheckbox:l,isChecked:s,isIndeterminate:a,isDisabled:L,isCurrent:W,isForceHiddenExpandIcon:y,handleNodeClick:U,handleNodeDrop:j,handleNodeCheck:G,getCurrentNode:ie,getCurrentKey:ee,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v,filter:D,setData:X,getNode:ue,expandNode:Z,collapseNode:$,setExpandedKeys:q,scrollToNode:ve,scrollTo:Me}}var _ot=tt({name:"ElTreeNodeContent",props:Cot,setup(e){const t=cn(jW),n=zt("tree");return()=>{const r=e.node,{data:o}=r;return t?.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Fn(_W,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[r?.label])}}});const Dot=tt({name:"ElTreeNode"}),Iot=tt({...Dot,props:Aot,emits:Sot,setup(e,{emit:t}){const n=e,r=cn(jW),o=zt("tree"),i=J(()=>{var p;return(p=r?.props.indent)!=null?p:16}),a=J(()=>{var p;return(p=r?.props.icon)!=null?p:Kme}),s=p=>{const v=r?.props.props.class;if(!v)return{};let h;if(Pn(v)){const{data:g}=p;h=v(g,p)}else h=v;return In(h)?{[h]:!0}:h},l=p=>{t("click",n.node,p)},u=p=>{t("drop",n.node,p)},d=()=>{t("toggle",n.node)},c=p=>{t("check",n.node,p)},f=p=>{var v,h,g,y;(g=(h=(v=r?.instance)==null?void 0:v.vnode)==null?void 0:h.props)!=null&&g.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),r?.ctx.emit(F2e,p,(y=n.node)==null?void 0:y.data,n.node)};return(p,v)=>{var h,g,y;return F(),K("div",{ref:"node$",class:re([C(o).b("node"),C(o).is("expanded",p.expanded),C(o).is("current",p.current),C(o).is("focusable",!p.disabled),C(o).is("checked",!p.disabled&&p.checked),s(p.node)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(h=p.node)==null?void 0:h.key,onClick:Qt(l,["stop"]),onContextmenu:f,onDragover:Qt(()=>{},["prevent"]),onDragenter:Qt(()=>{},["prevent"]),onDrop:Qt(u,["stop"])},[x("div",{class:re(C(o).be("node","content")),style:Xt({paddingLeft:`${(p.node.level-1)*C(i)}px`,height:p.itemSize+"px"})},[C(a)?(F(),mt(C(Dn),{key:0,class:re([C(o).is("leaf",!!((g=p.node)!=null&&g.isLeaf)),C(o).is("hidden",p.hiddenExpandIcon),{expanded:!((y=p.node)!=null&&y.isLeaf)&&p.expanded},C(o).be("node","expand-icon")]),onClick:Qt(d,["stop"])},{default:nt(()=>[(F(),mt(hr(C(a))))]),_:1},8,["class","onClick"])):xe("v-if",!0),p.showCheckbox?(F(),mt(C(Qu),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:c,onClick:Qt(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):xe("v-if",!0),Ve(C(_ot),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Oot=Jt(Iot,[["__file","tree-node.vue"]]);const Mot=tt({name:"ElTreeV2"}),Pot=tt({...Mot,props:wot,emits:xot,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=J(()=>r.itemSize);Sr(jW,{ctx:{emit:n,slots:o},props:r,instance:vr()}),Sr(Fd,void 0);const{t:a}=Hr(),s=zt("tree"),{flattenTree:l,isNotEmpty:u,listRef:d,toggleExpand:c,isIndeterminate:f,isChecked:p,isDisabled:v,isCurrent:h,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeDrop:m,handleNodeCheck:b,toggleCheckbox:w,getCurrentNode:A,getCurrentKey:S,setCurrentKey:k,getCheckedKeys:M,getCheckedNodes:D,getHalfCheckedKeys:P,getHalfCheckedNodes:O,setChecked:_,setCheckedKeys:B,filter:N,setData:q,getNode:U,expandNode:j,collapseNode:H,setExpandedKeys:G,scrollToNode:Z,scrollTo:$}=Tot(r,n);return t({toggleCheckbox:w,getCurrentNode:A,getCurrentKey:S,setCurrentKey:k,getCheckedKeys:M,getCheckedNodes:D,getHalfCheckedKeys:P,getHalfCheckedNodes:O,setChecked:_,setCheckedKeys:B,filter:N,setData:q,getNode:U,expandNode:j,collapseNode:H,setExpandedKeys:G,scrollToNode:Z,scrollTo:$}),(L,W)=>(F(),K("div",{class:re([C(s).b(),{[C(s).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[C(u)?(F(),mt(C(ybe),{key:0,ref_key:"listRef",ref:d,"class-name":C(s).b("virtual-list"),data:C(l),total:C(l).length,height:L.height,"item-size":C(i),"perf-mode":L.perfMode,"scrollbar-always-on":L.scrollbarAlwaysOn},{default:nt(({data:ie,index:ee,style:te})=>[(F(),mt(Oot,{key:ie[ee].key,style:Xt(te),node:ie[ee],expanded:ie[ee].expanded,"show-checkbox":L.showCheckbox,checked:C(p)(ie[ee]),indeterminate:C(f)(ie[ee]),"item-size":C(i),disabled:C(v)(ie[ee]),current:C(h)(ie[ee]),"hidden-expand-icon":C(g)(ie[ee]),onClick:C(y),onToggle:C(c),onCheck:C(b),onDrop:C(m)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(F(),K("div",{key:1,class:re(C(s).e("empty-block"))},[ft(L.$slots,"empty",{},()=>{var ie;return[x("span",{class:re(C(s).e("empty-text"))},We((ie=L.emptyText)!=null?ie:C(a)("el.tree.emptyText")),3)]})],2))],2))}});var Not=Jt(Pot,[["__file","tree.vue"]]);const Rot=er(Not),U2e=Symbol("uploadContextKey"),Bot="ElUpload";class Lot extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function $ee(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new Lot(r,n.status,t.method,e)}function Fot(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Uot=e=>{typeof XMLHttpRequest>"u"&&Xi(Bot,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))qt(a)&&a.length?r.append(i,...a):r.append(i,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError($ee(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError($ee(n,e,t));e.onSuccess(Fot(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((i,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(o))Zi(a)||t.setRequestHeader(i,String(a));return t.send(r),t},$2e=["text","picture","picture-card"];let $ot=1;const cF=()=>Date.now()+$ot++,z2e=Kt({action:{type:String,default:"#"},headers:{type:it(Object)},method:{type:String,default:"post"},data:{type:it([Object,Function,Promise]),default:()=>fi({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:it(Array),default:()=>fi([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:$2e,default:"text"},httpRequest:{type:it(Function),default:Uot},disabled:Boolean,limit:Number}),zot=Kt({...z2e,beforeUpload:{type:it(Function),default:go},beforeRemove:{type:it(Function)},onRemove:{type:it(Function),default:go},onChange:{type:it(Function),default:go},onPreview:{type:it(Function),default:go},onSuccess:{type:it(Function),default:go},onProgress:{type:it(Function),default:go},onError:{type:it(Function),default:go},onExceed:{type:it(Function),default:go},crossorigin:{type:it(String)}}),jot=Kt({files:{type:it(Array),default:()=>fi([])},disabled:Boolean,handlePreview:{type:it(Function),default:go},listType:{type:String,values:$2e,default:"text"},crossorigin:{type:it(String)}}),Hot={remove:e=>!!e},Wot=tt({name:"ElUploadList"}),Vot=tt({...Wot,props:jot,emits:Hot,setup(e,{emit:t}){const n=e,{t:r}=Hr(),o=zt("upload"),i=zt("icon"),a=zt("list"),s=Wa(),l=Q(!1),u=J(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),d=c=>{t("remove",c)};return(c,f)=>(F(),mt(Hge,{tag:"ul",class:re(C(u)),name:C(a).b()},{default:nt(()=>[(F(!0),K(Pt,null,an(c.files,(p,v)=>(F(),K("li",{key:p.uid||p.name,class:re([C(o).be("list","item"),C(o).is(p.status),{focusing:l.value}]),tabindex:"0",onKeydown:Lr(h=>!C(s)&&d(p),["delete"]),onFocus:h=>l.value=!0,onBlur:h=>l.value=!1,onClick:h=>l.value=!1},[ft(c.$slots,"default",{file:p,index:v},()=>[c.listType==="picture"||p.status!=="uploading"&&c.listType==="picture-card"?(F(),K("img",{key:0,class:re(C(o).be("list","item-thumbnail")),src:p.url,crossorigin:c.crossorigin,alt:""},null,10,["src","crossorigin"])):xe("v-if",!0),p.status==="uploading"||c.listType!=="picture-card"?(F(),K("div",{key:1,class:re(C(o).be("list","item-info"))},[x("a",{class:re(C(o).be("list","item-name")),onClick:Qt(h=>c.handlePreview(p),["prevent"])},[Ve(C(Dn),{class:re(C(i).m("document"))},{default:nt(()=>[Ve(C(Ty))]),_:1},8,["class"]),x("span",{class:re(C(o).be("list","item-file-name")),title:p.name},We(p.name),11,["title"])],10,["onClick"]),p.status==="uploading"?(F(),mt(C(ube),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Xt(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):xe("v-if",!0)],2)):xe("v-if",!0),x("label",{class:re(C(o).be("list","item-status-label"))},[c.listType==="text"?(F(),mt(C(Dn),{key:0,class:re([C(i).m("upload-success"),C(i).m("circle-check")])},{default:nt(()=>[Ve(C(mH))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(F(),mt(C(Dn),{key:1,class:re([C(i).m("upload-success"),C(i).m("check")])},{default:nt(()=>[Ve(C(_C))]),_:1},8,["class"])):xe("v-if",!0)],2),C(s)?xe("v-if",!0):(F(),mt(C(Dn),{key:2,class:re(C(i).m("close")),onClick:h=>d(p)},{default:nt(()=>[Ve(C(cu))]),_:2},1032,["class","onClick"])),xe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),xe(" This is a bug which needs to be fixed "),xe(" TODO: Fix the incorrect navigation interaction "),C(s)?xe("v-if",!0):(F(),K("i",{key:3,class:re(C(i).m("close-tip"))},We(C(r)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(F(),K("span",{key:4,class:re(C(o).be("list","item-actions"))},[x("span",{class:re(C(o).be("list","item-preview")),onClick:h=>c.handlePreview(p)},[Ve(C(Dn),{class:re(C(i).m("zoom-in"))},{default:nt(()=>[Ve(C(e1e))]),_:1},8,["class"])],10,["onClick"]),C(s)?xe("v-if",!0):(F(),K("span",{key:0,class:re(C(o).be("list","item-delete")),onClick:h=>d(p)},[Ve(C(Dn),{class:re(C(i).m("delete"))},{default:nt(()=>[Ve(C(HBe))]),_:1},8,["class"])],10,["onClick"]))],2)):xe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),ft(c.$slots,"append")]),_:3},8,["class","name"]))}});var zee=Jt(Vot,[["__file","upload-list.vue"]]);const qot=Kt({disabled:Boolean}),Got={file:e=>qt(e)},j2e="ElUploadDrag",Kot=tt({name:j2e}),Qot=tt({...Kot,props:qot,emits:Got,setup(e,{emit:t}){cn(U2e)||Xi(j2e,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=zt("upload"),o=Q(!1),i=Wa(),a=u=>{if(i.value)return;o.value=!1,u.stopPropagation();const d=Array.from(u.dataTransfer.files),c=u.dataTransfer.items||[];d.forEach((f,p)=>{var v;const h=c[p],g=(v=h?.webkitGetAsEntry)==null?void 0:v.call(h);g&&(f.isDirectory=g.isDirectory)}),t("file",d)},s=()=>{i.value||(o.value=!0)},l=u=>{u.currentTarget.contains(u.relatedTarget)||(o.value=!1)};return(u,d)=>(F(),K("div",{class:re([C(r).b("dragger"),C(r).is("dragover",o.value)]),onDrop:Qt(a,["prevent"]),onDragover:Qt(s,["prevent"]),onDragleave:Qt(l,["prevent"])},[ft(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var Yot=Jt(Qot,[["__file","upload-dragger.vue"]]);const Zot=Kt({...z2e,beforeUpload:{type:it(Function),default:go},onRemove:{type:it(Function),default:go},onStart:{type:it(Function),default:go},onSuccess:{type:it(Function),default:go},onProgress:{type:it(Function),default:go},onError:{type:it(Function),default:go},onExceed:{type:it(Function),default:go}}),Xot=tt({name:"ElUploadContent",inheritAttrs:!1}),Jot=tt({...Xot,props:Zot,setup(e,{expose:t}){const n=e,r=zt("upload"),o=Wa(),i=Uo({}),a=Uo(),s=h=>{if(h.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:b,onStart:w,onExceed:A}=n;if(y&&m.length+h.length>y){A(h,m);return}b||(h=h.slice(0,1));for(const S of h){const k=S;k.uid=cF(),w(k),g&&l(k)}},l=async h=>{if(a.value.value="",!n.beforeUpload)return d(h);let g,y={};try{const b=n.data,w=n.beforeUpload(h);y=k3(n.data)?cE(n.data):n.data,g=await w,k3(n.data)&&ua(b,y)&&(y=cE(n.data))}catch{g=!1}if(g===!1){n.onRemove(h);return}let m=h;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],h.name,{type:h.type})),d(Object.assign(m,{uid:h.uid}),y)},u=async(h,g)=>Pn(h)?h(g):h,d=async(h,g)=>{const{headers:y,data:m,method:b,withCredentials:w,name:A,action:S,onProgress:k,onSuccess:M,onError:D,httpRequest:P}=n;try{g=await u(g??m,h)}catch{n.onRemove(h);return}const{uid:O}=h,_={headers:y||{},withCredentials:w,file:h,data:g,method:b,filename:A,action:S,onProgress:N=>{k(N,h)},onSuccess:N=>{M(N,h),delete i.value[O]},onError:N=>{D(N,h),delete i.value[O]}},B=P(_);i.value[O]=B,B instanceof Promise&&B.then(_.onSuccess,_.onError)},c=h=>{const g=h.target.files;g&&s(Array.from(g))},f=()=>{o.value||(a.value.value="",a.value.click())},p=()=>{f()};return t({abort:h=>{$me(i.value).filter(h?([y])=>String(h.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(h,g)=>(F(),K("div",{class:re([C(r).b(),C(r).m(h.listType),C(r).is("drag",h.drag),C(r).is("disabled",C(o))]),tabindex:C(o)?"-1":"0",onClick:f,onKeydown:Lr(Qt(p,["self"]),["enter","space"])},[h.drag?(F(),mt(Yot,{key:0,disabled:C(o),onFile:s},{default:nt(()=>[ft(h.$slots,"default")]),_:3},8,["disabled"])):ft(h.$slots,"default",{key:1}),x("input",{ref_key:"inputRef",ref:a,class:re(C(r).e("input")),name:h.name,disabled:C(o),multiple:h.multiple,accept:h.accept,type:"file",onChange:c,onClick:Qt(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var jee=Jt(Jot,[["__file","upload-content.vue"]]);const Hee="ElUpload",Wee=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},eit=(e,t)=>{const n=Mme(e,"fileList",void 0,{passive:!0}),r=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function i(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function a(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=(p,v)=>{const h=r(v);h&&(console.error(p),h.status="fail",a(h),e.onError(p,h,n.value),e.onChange(h,n.value))},l=(p,v)=>{const h=r(v);h&&(e.onProgress(p,h,n.value),h.status="uploading",h.percentage=Math.round(p.percent))},u=(p,v)=>{const h=r(v);h&&(h.status="success",h.response=p,e.onSuccess(p,h,n.value),e.onChange(h,n.value))},d=p=>{Zi(p.uid)&&(p.uid=cF());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(h){h.message,e.onError(h,v,n.value)}n.value=[...n.value,v],e.onChange(v,n.value)},c=async p=>{const v=p instanceof File?r(p):p;v||Xi(Hee,"file to be removed not found");const h=g=>{o(g),a(g),e.onRemove(g,n.value),Wee(g)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&h(v):h(v)};function f(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return St(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:h,url:g}=v;if(!g&&h)try{v.url=URL.createObjectURL(h)}catch(y){e.onError(y,v,n.value)}return v}))}),St(n,p=>{for(const v of p)v.uid||(v.uid=cF()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:i,handleError:s,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:c,submit:f,revokeFileObjectURL:Wee}},tit=tt({name:"ElUpload"}),nit=tt({...tit,props:zot,setup(e,{expose:t}){const n=e,r=Wa(),o=Uo(),{abort:i,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:d,handleRemove:c,handleSuccess:f,handleProgress:p,revokeFileObjectURL:v}=eit(n,o),h=J(()=>n.listType==="picture-card"),g=J(()=>({...n,fileList:l.value,onStart:u,onProgress:p,onSuccess:f,onError:d,onRemove:c}));return Qr(()=>{l.value.forEach(v)}),Sr(U2e,{accept:ao(n,"accept")}),t({abort:i,submit:a,clearFiles:s,handleStart:u,handleRemove:c}),(y,m)=>(F(),K("div",null,[C(h)&&y.showFileList?(F(),mt(zee,{key:0,disabled:C(r),"list-type":y.listType,files:C(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:C(c)},Ll({append:nt(()=>[Ve(jee,pr({ref_key:"uploadRef",ref:o},C(g)),{default:nt(()=>[y.$slots.trigger?ft(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?ft(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:nt(({file:b,index:w})=>[ft(y.$slots,"file",{file:b,index:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):xe("v-if",!0),!C(h)||C(h)&&!y.showFileList?(F(),mt(jee,pr({key:1,ref_key:"uploadRef",ref:o},C(g)),{default:nt(()=>[y.$slots.trigger?ft(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?ft(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)):xe("v-if",!0),y.$slots.trigger?ft(y.$slots,"default",{key:2}):xe("v-if",!0),ft(y.$slots,"tip"),!C(h)&&y.showFileList?(F(),mt(zee,{key:3,disabled:C(r),"list-type":y.listType,files:C(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:C(c)},Ll({_:2},[y.$slots.file?{name:"default",fn:nt(({file:b,index:w})=>[ft(y.$slots,"file",{file:b,index:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):xe("v-if",!0)]))}});var rit=Jt(nit,[["__file","upload.vue"]]);const oit=er(rit),iit=Kt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:it([String,Array]),default:"Element Plus"},font:{type:it(Object)},gap:{type:it(Array),default:()=>[100,100]},offset:{type:it(Array)}});function ait(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sit(e){return Object.keys(e).map(t=>`${ait(t)}: ${e[t]};`).join(" ")}function lit(){return window.devicePixelRatio||1}const uit=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},H2e=3,cit={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function DI(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}function dit(){function e(t,n,r,o,i,a,s,l,u){const[d,c,f,p]=DI(o,i,r);if(t instanceof HTMLImageElement)d.drawImage(t,0,0,f,p);else{const{color:L,fontSize:W,fontStyle:ie,fontWeight:ee,fontFamily:te,textAlign:X,textBaseline:ue}=a,ve=Number(W)*r;d.font=`${ie} normal ${ee} ${ve}px/${i}px ${te}`,d.fillStyle=L,d.textAlign=X,d.textBaseline=ue;const Me=qt(t)?t:[t];Me?.forEach((we,he)=>{const[Te,Y]=cit[X];d.fillText(we??"",f*Te+u*Y,he*(ve+H2e*r))})}const v=Math.PI/180*Number(n),h=Math.max(o,i),[g,y,m]=DI(h,h,r);g.translate(m/2,m/2),g.rotate(v),f>0&&p>0&&g.drawImage(c,-f/2,-p/2);function b(L,W){const ie=L*Math.cos(v)-W*Math.sin(v),ee=L*Math.sin(v)+W*Math.cos(v);return[ie,ee]}let w=0,A=0,S=0,k=0;const M=f/2,D=p/2;[[0-M,0-D],[0+M,0-D],[0+M,0+D],[0-M,0+D]].forEach(([L,W])=>{const[ie,ee]=b(L,W);w=Math.min(w,ie),A=Math.max(A,ie),S=Math.min(S,ee),k=Math.max(k,ee)});const O=w+m/2,_=S+m/2,B=A-w,N=k-S,q=s*r,U=l*r,j=(B+q)*2,H=N+U,[G,Z]=DI(j,H);function $(L=0,W=0){G.drawImage(y,O,_,B,N,L,W,B,N)}return $(),$(B+q,-N/2-U/2),$(B+q,+N/2+U/2),[Z.toDataURL(),j/r,H/r]}return e}const fit=tt({name:"ElWatermark"}),pit=tt({...fit,props:iit,setup(e){const t=e,n={position:"relative"},r=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.color)!=null?O:"rgba(0,0,0,.15)"}),o=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.fontSize)!=null?O:16}),i=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.fontWeight)!=null?O:"normal"}),a=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.fontStyle)!=null?O:"normal"}),s=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.fontFamily)!=null?O:"sans-serif"}),l=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.textAlign)!=null?O:"center"}),u=J(()=>{var P,O;return(O=(P=t.font)==null?void 0:P.textBaseline)!=null?O:"hanging"}),d=J(()=>t.gap[0]),c=J(()=>t.gap[1]),f=J(()=>d.value/2),p=J(()=>c.value/2),v=J(()=>{var P,O;return(O=(P=t.offset)==null?void 0:P[0])!=null?O:f.value}),h=J(()=>{var P,O;return(O=(P=t.offset)==null?void 0:P[1])!=null?O:p.value}),g=()=>{const P={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let O=v.value-f.value,_=h.value-p.value;return O>0&&(P.left=`${O}px`,P.width=`calc(100% - ${O}px)`,O=0),_>0&&(P.top=`${_}px`,P.height=`calc(100% - ${_}px)`,_=0),P.backgroundPosition=`${O}px ${_}px`,P},y=Uo(null),m=Uo(),b=Q(!1),w=()=>{m.value&&(m.value.remove(),m.value=void 0)},A=(P,O)=>{var _;y.value&&m.value&&(b.value=!0,m.value.setAttribute("style",sit({...g(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(O)}px`})),(_=y.value)==null||_.append(m.value),setTimeout(()=>{b.value=!1}))},S=P=>{let O=120,_=64,B=0;const{image:N,content:q,width:U,height:j,rotate:H}=t;if(!N&&P.measureText){P.font=`${Number(o.value)}px ${s.value}`;const G=qt(q)?q:[q];let Z=0,$=0;G.forEach(W=>{const{width:ie,fontBoundingBoxAscent:ee,fontBoundingBoxDescent:te,actualBoundingBoxAscent:X,actualBoundingBoxDescent:ue}=P.measureText(W),ve=$r(ee)?X+ue:ee+te;ie>Z&&(Z=Math.ceil(ie)),ve>$&&($=Math.ceil(ve))}),O=Z,_=$*G.length+(G.length-1)*H2e;const L=Math.PI/180*Number(H);B=Math.ceil(Math.abs(Math.sin(L)*_)/2),O+=B}return[U??O,j??_,B]},k=dit(),M=()=>{const O=document.createElement("canvas").getContext("2d"),_=t.image,B=t.content,N=t.rotate;if(O){m.value||(m.value=document.createElement("div"));const q=lit(),[U,j,H]=S(O),G=Z=>{const[$,L]=k(Z||"",N,q,U,j,{color:r.value,fontSize:o.value,fontStyle:a.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},d.value,c.value,H);A($,L)};if(_){const Z=new Image;Z.onload=()=>{G(Z)},Z.onerror=()=>{G(B)},Z.crossOrigin="anonymous",Z.referrerPolicy="no-referrer",Z.src=_}else G(B)}};return jn(()=>{M()}),St(()=>t,()=>{M()},{deep:!0,flush:"post"}),Qr(()=>{w()}),Ome(y,P=>{b.value||P.forEach(O=>{uit(O,m.value)&&(w(),M())})},{attributes:!0,subtree:!0,childList:!0}),(P,O)=>(F(),K("div",{ref_key:"containerRef",ref:y,style:Xt([n])},[ft(P.$slots,"default")],4))}});var hit=Jt(pit,[["__file","watermark.vue"]]);const git=er(hit),vit=Kt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:it(Object)},targetAreaClickable:{type:Boolean,default:!0}}),mit=(e,t,n,r,o)=>{const i=Q(null),a=()=>{let c;return In(e.value)?c=document.querySelector(e.value):Pn(e.value)?c=e.value():c=e.value,c},s=()=>{const c=a();if(!c||!t.value){i.value=null;return}yit(c)||c.scrollIntoView(o.value);const{left:f,top:p,width:v,height:h}=c.getBoundingClientRect();i.value={left:f,top:p,width:v,height:h,radius:0}};jn(()=>{St([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Qr(()=>{window.removeEventListener("resize",s)});const l=c=>{var f;return(f=qt(n.value.offset)?n.value.offset[c]:n.value.offset)!=null?f:6},u=J(()=>{var c;if(!i.value)return i.value;const f=l(0),p=l(1),v=((c=n.value)==null?void 0:c.radius)||2;return{left:i.value.left-f,top:i.value.top-p,width:i.value.width+f*2,height:i.value.height+p*2,radius:v}}),d=J(()=>{const c=a();return!r.value||!c||!window.DOMRect?c||void 0:{getBoundingClientRect(){var f,p,v,h;return window.DOMRect.fromRect({width:((f=u.value)==null?void 0:f.width)||0,height:((p=u.value)==null?void 0:p.height)||0,x:((v=u.value)==null?void 0:v.left)||0,y:((h=u.value)==null?void 0:h.top)||0})}}});return{mergedPosInfo:u,triggerTarget:d}},gD=Symbol("ElTour");function yit(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}const bit=(e,t,n,r,o,i,a,s)=>{const l=Q(),u=Q(),d=Q({}),c={x:l,y:u,placement:r,strategy:o,middlewareData:d},f=J(()=>{const y=[C2e(C(i)),Crt(),Art(),wit()];return C(s)&&C(n)&&y.push(x2e({element:C(n)})),y}),p=async()=>{if(!Kr)return;const y=C(e),m=C(t);if(!y||!m)return;const b=await S2e(y,m,{placement:C(r),strategy:C(o),middleware:C(f)});ky(c).forEach(w=>{c[w].value=b[w]})},v=J(()=>{if(!C(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:C(a)};const{overflow:y}=C(d);return{position:C(o),zIndex:C(a),top:C(u)!=null?`${C(u)}px`:"",left:C(l)!=null?`${C(l)}px`:"",maxWidth:y?.maxWidth?`${y?.maxWidth}px`:""}}),h=J(()=>{if(!C(s))return{};const{arrow:y}=C(d);return{left:y?.x!=null?`${y?.x}px`:"",top:y?.y!=null?`${y?.y}px`:""}});let g;return jn(()=>{const y=C(e),m=C(t);y&&m&&(g=brt(y,m,p)),Cs(()=>{p()})}),Qr(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:h}},wit=()=>({name:"overflow",async fn(e){const t=await wrt(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Ait=tt({name:"ElTourMask",inheritAttrs:!1}),Cit=tt({...Ait,props:vit,setup(e){const t=e,{ns:n}=cn(gD),r=J(()=>{var l,u;return(u=(l=t.pos)==null?void 0:l.radius)!=null?u:2}),o=J(()=>{const l=r.value,u=`a${l},${l} 0 0 1`;return{topRight:`${u} ${l},${l}`,bottomRight:`${u} ${-l},${l}`,bottomLeft:`${u} ${-l},${-l}`,topLeft:`${u} ${l},${-l}`}}),i=J(()=>{const l=window.innerWidth,u=window.innerHeight,d=o.value,c=`M${l},0 L0,0 L0,${u} L${l},${u} L${l},0 Z`,f=r.value;return t.pos?`${c} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${d.topRight} v${t.pos.height-f*2} ${d.bottomRight} h${-t.pos.width+f*2} ${d.bottomLeft} v${-t.pos.height+f*2} ${d.topLeft} z`:c}),a=J(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),s=J(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return YH(ao(t,"visible"),{ns:n}),(l,u)=>l.visible?(F(),K("div",pr({key:0,class:C(n).e("mask"),style:C(a)},l.$attrs),[(F(),K("svg",{style:{width:"100%",height:"100%"}},[x("path",{class:re(C(n).e("hollow")),style:Xt(C(s)),d:C(i)},null,14,["d"])]))],16)):xe("v-if",!0)}});var xit=Jt(Cit,[["__file","mask.vue"]]);const Sit=["absolute","fixed"],Eit=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],HW=Kt({placement:{type:it(String),values:Eit,default:"bottom"},reference:{type:it(Object),default:null},strategy:{type:it(String),values:Sit,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),kit={close:()=>!0},Tit=tt({name:"ElTourContent"}),_it=tt({...Tit,props:HW,emits:kit,setup(e,{emit:t}){const n=e,r=Q(n.placement),o=Q(n.strategy),i=Q(null),a=Q(null);St(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=bit(ao(n,"reference"),i,a,r,o,ao(n,"offset"),ao(n,"zIndex"),ao(n,"showArrow")),u=J(()=>r.value.split("-")[0]),{ns:d}=cn(gD),c=()=>{t("close")},f=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(F(),K("div",{ref_key:"contentRef",ref:i,style:Xt(C(s)),class:re(C(d).e("content")),"data-side":C(u),tabindex:"-1"},[Ve(C(Rb),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:c,onFocusoutPrevented:f},{default:nt(()=>[ft(p.$slots,"default")]),_:3},8,["focus-trap-el"]),p.showArrow?(F(),K("span",{key:0,ref_key:"arrowRef",ref:a,style:Xt(C(l)),class:re(C(d).e("arrow"))},null,6)):xe("v-if",!0)],14,["data-side"]))}});var Dit=Jt(_it,[["__file","content.vue"]]),Iit=tt({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];let l=0;function u(d){qt(d)&&d.forEach(c=>{var f;((f=c?.type||{})==null?void 0:f.name)==="ElTourStep"&&(s.push(c),l+=1)})}return a.length&&u(bd((i=a[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const Oit=Kt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:vo},placement:HW.placement,contentStyle:{type:it([Object])},mask:{type:it([Boolean,Object]),default:!0},gap:{type:it(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:it([Boolean,Object]),default:()=>({block:"center"})},type:{type:it(String)},appendTo:{type:tD.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Mit={[Gn]:e=>Co(e),"update:current":e=>Ln(e),close:e=>Ln(e),finish:()=>!0,change:e=>Ln(e)},Pit=tt({name:"ElTour"}),Nit=tt({...Pit,props:Oit,emits:Mit,setup(e,{emit:t}){const n=e,r=zt("tour"),o=Q(0),i=Q(),a=Mme(n,"current",t,{passive:!0}),s=J(()=>{var D;return(D=i.value)==null?void 0:D.target}),l=J(()=>[r.b(),g.value==="primary"?r.m("primary"):""]),u=J(()=>{var D;return((D=i.value)==null?void 0:D.placement)||n.placement}),d=J(()=>{var D,P;return(P=(D=i.value)==null?void 0:D.contentStyle)!=null?P:n.contentStyle}),c=J(()=>{var D,P;return(P=(D=i.value)==null?void 0:D.mask)!=null?P:n.mask}),f=J(()=>!!c.value&&n.modelValue),p=J(()=>Co(c.value)?void 0:c.value),v=J(()=>{var D,P;return!!s.value&&((P=(D=i.value)==null?void 0:D.showArrow)!=null?P:n.showArrow)}),h=J(()=>{var D,P;return(P=(D=i.value)==null?void 0:D.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),g=J(()=>{var D,P;return(P=(D=i.value)==null?void 0:D.type)!=null?P:n.type}),{nextZIndex:y}=Mb(),m=y(),b=J(()=>{var D;return(D=n.zIndex)!=null?D:m}),{mergedPosInfo:w,triggerTarget:A}=mit(s,ao(n,"modelValue"),ao(n,"gap"),c,h);St(()=>n.modelValue,D=>{D||(a.value=0)});const S=()=>{n.closeOnPressEscape&&(t(Gn,!1),t("close",a.value))},k=D=>{o.value=D},M=pa();return Sr(gD,{currentStep:i,current:a,total:o,showClose:ao(n,"showClose"),closeIcon:ao(n,"closeIcon"),mergedType:g,ns:r,slots:M,updateModelValue(D){t(Gn,D)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t(Tr,a.value)}}),(D,P)=>(F(),K(Pt,null,[Ve(C(Bb),{to:D.appendTo},{default:nt(()=>{var O,_;return[x("div",pr({class:C(l)},D.$attrs),[Ve(xit,{visible:C(f),fill:(O=C(p))==null?void 0:O.color,style:Xt((_=C(p))==null?void 0:_.style),pos:C(w),"z-index":C(b),"target-area-clickable":D.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),D.modelValue?(F(),mt(Dit,{key:C(a),reference:C(A),placement:C(u),"show-arrow":C(v),"z-index":C(b),style:Xt(C(d)),onClose:S},{default:nt(()=>[Ve(C(Iit),{current:C(a),onUpdateTotal:k},{default:nt(()=>[ft(D.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):xe("v-if",!0)],16)]}),_:3},8,["to"]),xe(" just for IDE "),xe("v-if",!0)],64))}});var Rit=Jt(Nit,[["__file","tour.vue"]]);const Bit=Kt({target:{type:it([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:vo},showArrow:{type:Boolean,default:void 0},placement:HW.placement,mask:{type:it([Boolean,Object]),default:void 0},contentStyle:{type:it([Object])},prevButtonProps:{type:it(Object)},nextButtonProps:{type:it(Object)},scrollIntoViewOptions:{type:it([Boolean,Object]),default:void 0},type:{type:it(String)}}),Lit={close:()=>!0},Fit=tt({name:"ElTourStep"}),Uit=tt({...Fit,props:Bit,emits:Lit,setup(e,{emit:t}){const n=e,{Close:r}=t1e,{t:o}=Hr(),{currentStep:i,current:a,total:s,showClose:l,closeIcon:u,mergedType:d,ns:c,slots:f,updateModelValue:p,onClose:v,onFinish:h,onChange:g}=cn(gD);St(n,D=>{i.value=D},{immediate:!0});const y=J(()=>{var D;return(D=n.showClose)!=null?D:l.value}),m=J(()=>{var D,P;return(P=(D=n.closeIcon)!=null?D:u.value)!=null?P:r}),b=D=>{if(D)return Tme(D,["children","onClick"])},w=()=>{var D,P;a.value-=1,(D=n.prevButtonProps)!=null&&D.onClick&&((P=n.prevButtonProps)==null||P.onClick()),g()},A=()=>{var D;a.value>=s.value-1?S():a.value+=1,(D=n.nextButtonProps)!=null&&D.onClick&&n.nextButtonProps.onClick(),g()},S=()=>{k(),h()},k=()=>{p(!1),v(),t("close")},M=D=>{const P=D.target;if(P?.isContentEditable)return;const _={[gn.left]:()=>a.value>0&&w(),[gn.right]:A}[D.code];_&&(D.preventDefault(),_())};return jn(()=>{window.addEventListener("keydown",M)}),Qr(()=>{window.removeEventListener("keydown",M)}),(D,P)=>(F(),K(Pt,null,[C(y)?(F(),K("button",{key:0,"aria-label":"Close",class:re(C(c).e("closebtn")),type:"button",onClick:k},[Ve(C(Dn),{class:re(C(c).e("close"))},{default:nt(()=>[(F(),mt(hr(C(m))))]),_:1},8,["class"])],2)):xe("v-if",!0),x("header",{class:re([C(c).e("header"),{"show-close":C(l)}])},[ft(D.$slots,"header",{},()=>[x("span",{role:"heading",class:re(C(c).e("title"))},We(D.title),3)])],2),x("div",{class:re(C(c).e("body"))},[ft(D.$slots,"default",{},()=>[x("span",null,We(D.description),1)])],2),x("footer",{class:re(C(c).e("footer"))},[x("div",{class:re(C(c).b("indicators"))},[C(f).indicators?(F(),mt(hr(C(f).indicators),{key:0,current:C(a),total:C(s)},null,8,["current","total"])):(F(!0),K(Pt,{key:1},an(C(s),(O,_)=>(F(),K("span",{key:O,class:re([C(c).b("indicator"),_===C(a)?"is-active":""])},null,2))),128))],2),x("div",{class:re(C(c).b("buttons"))},[C(a)>0?(F(),mt(C(Za),pr({key:0,size:"small",type:C(d)},b(D.prevButtonProps),{onClick:w}),{default:nt(()=>{var O,_;return[xn(We((_=(O=D.prevButtonProps)==null?void 0:O.children)!=null?_:C(o)("el.tour.previous")),1)]}),_:1},16,["type"])):xe("v-if",!0),C(a)<=C(s)-1?(F(),mt(C(Za),pr({key:1,size:"small",type:C(d)==="primary"?"default":"primary"},b(D.nextButtonProps),{onClick:A}),{default:nt(()=>{var O,_;return[xn(We((_=(O=D.nextButtonProps)==null?void 0:O.children)!=null?_:C(a)===C(s)-1?C(o)("el.tour.finish"):C(o)("el.tour.next")),1)]}),_:1},16,["type"])):xe("v-if",!0)],2)],2)],64))}});var W2e=Jt(Uit,[["__file","step.vue"]]);const $it=er(Rit,{TourStep:W2e}),zit=vi(W2e),jit=Kt({container:{type:it([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:it(String),default:"default"},direction:{type:it(String),default:"vertical"},selectScrollTop:Boolean}),Hit={change:e=>In(e),click:(e,t)=>e instanceof MouseEvent&&(In(t)||$r(t))},V2e=Symbol("anchor"),xx=e=>{if(!Kr||e==="")return null;if(In(e))try{return document.querySelector(e)}catch{return null}return e};function Wit(e){let t=0;const n=(...r)=>{t&&Tv(t),t=r0(()=>{e(...r),t=0})};return n.cancel=()=>{Tv(t),t=0},n}const Vit=tt({name:"ElAnchor"}),qit=tt({...Vit,props:jit,emits:Hit,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=Q(""),a=Q({}),s=Q(null),l=Q(null),u=Q(),d={};let c=!1,f=0;const p=zt("anchor"),v=J(()=>[p.b(),r.type==="underline"?p.m("underline"):"",p.m(r.direction)]),h=P=>{d[P.href]=P.el},g=P=>{delete d[P]},y=P=>{i.value!==P&&(i.value=P,n(Tr,P))};let m=null;const b=P=>{if(!u.value)return;const O=xx(P);if(!O)return;m&&m(),c=!0;const _=HX(O,u.value),B=xL(O,_),N=_.scrollHeight-_.clientHeight,q=Math.min(B-r.offset,N);m=lBe(u.value,f,q,r.duration,()=>{setTimeout(()=>{c=!1},20)})},w=P=>{P&&(y(P),b(P))},A=(P,O)=>{n("click",P,O),w(O)},S=Wit(()=>{u.value&&(f=WX(u.value));const P=k();c||$r(P)||y(P)}),k=()=>{if(!u.value)return;const P=WX(u.value),O=[];for(const _ of Object.keys(d)){const B=xx(_);if(!B)continue;const N=HX(B,u.value),q=xL(B,N);O.push({top:q-r.offset-r.bound,href:_})}O.sort((_,B)=>_.top-B.top);for(let _=0;_<O.length;_++){const B=O[_],N=O[_+1];if(_===0&&P===0)return r.selectScrollTop?B.href:"";if(B.top<=P&&(!N||N.top>P))return B.href}},M=()=>{const P=xx(r.container);!P||kC(P)?u.value=window:u.value=P};Mo(u,"scroll",S);const D=()=>{Vt(()=>{if(!s.value||!l.value||!i.value){a.value={};return}const P=d[i.value];if(!P){a.value={};return}const O=s.value.getBoundingClientRect(),_=l.value.getBoundingClientRect(),B=P.getBoundingClientRect();if(r.direction==="horizontal"){const N=B.left-O.left;a.value={left:`${N}px`,width:`${B.width}px`,opacity:1}}else{const N=B.top-O.top+(B.height-_.height)/2;a.value={top:`${N}px`,opacity:1}}})};return St(i,D),St(()=>{var P;return(P=o.default)==null?void 0:P.call(o)},D),jn(()=>{M();const P=decodeURIComponent(window.location.hash);xx(P)?w(P):S()}),St(()=>r.container,()=>{M()}),Sr(V2e,{ns:p,direction:r.direction,currentAnchor:i,addLink:h,removeLink:g,handleClick:A}),t({scrollTo:w}),(P,O)=>(F(),K("div",{ref_key:"anchorRef",ref:s,class:re(C(v))},[P.marker?(F(),K("div",{key:0,ref_key:"markerRef",ref:l,class:re(C(p).e("marker")),style:Xt(a.value)},null,6)):xe("v-if",!0),x("div",{class:re(C(p).e("list"))},[ft(P.$slots,"default")],2)],2))}});var Git=Jt(qit,[["__file","anchor.vue"]]);const Kit=Kt({title:String,href:String}),Qit=tt({name:"ElAnchorLink"}),Yit=tt({...Qit,props:Kit,setup(e){const t=e,n=Q(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=cn(V2e),u=J(()=>[r.e("link"),r.is("active",i.value===t.href)]),d=c=>{l(c,t.href)};return St(()=>t.href,(c,f)=>{Vt(()=>{f&&s(f),c&&a({href:c,el:n.value})})}),jn(()=>{const{href:c}=t;c&&a({href:c,el:n.value})}),Qr(()=>{const{href:c}=t;c&&s(c)}),(c,f)=>(F(),K("div",{class:re(C(r).e("item"))},[x("a",{ref_key:"linkRef",ref:n,class:re(C(u)),href:c.href,onClick:d},[ft(c.$slots,"default",{},()=>[xn(We(c.title),1)])],10,["href"]),c.$slots["sub-link"]&&C(o)==="vertical"?(F(),K("div",{key:0,class:re(C(r).e("list"))},[ft(c.$slots,"sub-link")],2)):xe("v-if",!0)],2))}});var q2e=Jt(Yit,[["__file","anchor-link.vue"]]);const Zit=er(Git,{AnchorLink:q2e}),Xit=vi(q2e),G2e={label:"label",value:"value",disabled:"disabled"},Jit=Kt({direction:{type:it(String),default:"horizontal"},options:{type:it(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:it(Object),default:()=>G2e},block:Boolean,size:ba,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Es(["ariaLabel"])}),eat={[Gn]:e=>In(e)||Ln(e)||Co(e),[Tr]:e=>In(e)||Ln(e)||Co(e)},tat=tt({name:"ElSegmented"}),nat=tt({...tat,props:Jit,emits:eat,setup(e,{emit:t}){const n=e,r=zt("segmented"),o=fs(),i=fa(),a=Wa(),{formItem:s}=ks(),{inputId:l,isLabeledByFormItem:u}=ac(n,{formItemContext:s}),d=Q(null),c=IRe(),f=Ur({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=O=>{const _=g(O);t(Gn,_),t(Tr,_)},v=J(()=>({...G2e,...n.props})),h=O=>O,g=O=>ar(O)?O[v.value.value]:O,y=O=>ar(O)?O[v.value.label]:O,m=O=>!!(a.value||ar(O)&&O[v.value.disabled]),b=O=>n.modelValue===g(O),w=O=>n.options.find(_=>g(_)===O),A=O=>[r.e("item"),r.is("selected",b(O)),r.is("disabled",m(O))],S=()=>{if(!d.value)return;const O=d.value.querySelector(".is-selected"),_=d.value.querySelector(".is-selected input");if(!O||!_){f.width=0,f.height=0,f.translateX=0,f.translateY=0,f.focusVisible=!1;return}f.isInit=!0,n.direction==="vertical"?(f.height=O.offsetHeight,f.translateY=O.offsetTop):(f.width=O.offsetWidth,f.translateX=O.offsetLeft);try{f.focusVisible=_.matches(":focus-visible")}catch{}},k=J(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),M=J(()=>({width:n.direction==="vertical"?"100%":`${f.width}px`,height:n.direction==="vertical"?`${f.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${f.translateY}px)`:`translateX(${f.translateX}px)`,display:f.isInit?"block":"none"})),D=J(()=>[r.e("item-selected"),r.is("disabled",m(w(n.modelValue))),r.is("focus-visible",f.focusVisible)]),P=J(()=>n.name||o.value);return li(d,S),St(c,S),St(()=>n.modelValue,()=>{var O;S(),n.validateEvent&&((O=s?.validate)==null||O.call(s,"change").catch(_=>void 0))},{flush:"post"}),(O,_)=>O.options.length?(F(),K("div",{key:0,id:C(l),ref_key:"segmentedRef",ref:d,class:re(C(k)),role:"radiogroup","aria-label":C(u)?void 0:O.ariaLabel||"segmented","aria-labelledby":C(u)?C(s).labelId:void 0},[x("div",{class:re([C(r).e("group"),C(r).m(n.direction)])},[x("div",{style:Xt(C(M)),class:re(C(D))},null,6),(F(!0),K(Pt,null,an(O.options,(B,N)=>(F(),K("label",{key:N,class:re(A(B))},[x("input",{class:re(C(r).e("item-input")),type:"radio",name:C(P),disabled:m(B),checked:b(B),onChange:q=>p(B)},null,42,["name","disabled","checked","onChange"]),x("div",{class:re(C(r).e("item-label"))},[ft(O.$slots,"default",{item:h(B)},()=>[xn(We(y(B)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):xe("v-if",!0)}});var rat=Jt(nat,[["__file","segmented.vue"]]);const oat=er(rat),iat=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},aat=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const o=e.value,i=Ka(t);let a=-1,s;for(let l=r-1;l>=0;--l){const u=o[l];if(u===n||u===`
- `||u==="\r"){a=l;continue}if(i.includes(u)){const d=a===-1?r:a;s={pattern:o.slice(l+1,d),start:l+1,end:d,prefix:u,prefixIndex:l,splitIndex:a,selectionEnd:r};break}}return s},sat=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const f=document.querySelector("#input-textarea-caret-position-mirror-div");f?.parentNode&&f.parentNode.removeChild(f)}const a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);const s=a.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach(f=>{if(u&&f==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),h=v+Number.parseInt(l.lineHeight);p>h?s.lineHeight=`${p-v}px`:p===h?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[f]=l[f]}),wH()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",a.textContent=e.value.slice(0,Math.max(0,o)),u&&a.textContent&&(a.textContent=a.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,a.appendChild(d);const c={top:d.offsetTop+Number.parseInt(l.borderTopWidth),left:d.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(a),c.left>=e.clientWidth&&(c.left=e.clientWidth),c},lat=Kt({...DC,options:{type:it(Array),default:()=>[]},prefix:{type:it([String,Array]),default:"@",validator:e=>In(e)?e.length===1:e.every(t=>In(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:it([Boolean,Function]),default:()=>iat,validator:e=>e===!1?!0:Pn(e)},placement:{type:it(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:it(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:it(Object),default:()=>({})}}),uat={[Gn]:e=>In(e),"whole-remove":(e,t)=>In(e)&&In(t),input:e=>In(e),search:(e,t)=>In(e)&&In(t),select:(e,t)=>In(e.value)&&In(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},cat=Kt({options:{type:it(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),dat={select:e=>In(e.value)},fat=tt({name:"ElMentionDropdown"}),pat=tt({...fat,props:cat,emits:dat,setup(e,{expose:t,emit:n}){const r=e,o=zt("mention"),{t:i}=Hr(),a=Q(-1),s=Q(),l=Q(),u=Q(),d=(b,w)=>[o.be("dropdown","item"),o.is("hovering",a.value===w),o.is("disabled",b.disabled||r.disabled)],c=b=>{b.disabled||r.disabled||n("select",b)},f=b=>{a.value=b},p=J(()=>r.disabled||r.options.every(b=>b.disabled)),v=J(()=>r.options[a.value]),h=()=>{v.value&&n("select",v.value)},g=b=>{const{options:w}=r;if(w.length===0||p.value)return;b==="next"?(a.value++,a.value===w.length&&(a.value=0)):b==="prev"&&(a.value--,a.value<0&&(a.value=w.length-1));const A=w[a.value];if(A.disabled){g(b);return}Vt(()=>y(A))},y=b=>{var w,A,S,k;const{options:M}=r,D=M.findIndex(O=>O.value===b.value),P=(w=l.value)==null?void 0:w[D];if(P){const O=(S=(A=u.value)==null?void 0:A.querySelector)==null?void 0:S.call(A,`.${o.be("dropdown","wrap")}`);O&&vH(O,P)}(k=s.value)==null||k.handleScroll()};return St(()=>r.options,()=>{p.value||r.options.length===0?a.value=-1:a.value=0},{immediate:!0}),t({hoveringIndex:a,navigateOptions:g,selectHoverOption:h,hoverOption:v}),(b,w)=>(F(),K("div",{ref_key:"dropdownRef",ref:u,class:re(C(o).b("dropdown"))},[b.$slots.header?(F(),K("div",{key:0,class:re(C(o).be("dropdown","header"))},[ft(b.$slots,"header")],2)):xe("v-if",!0),ln(Ve(C(Lc),{id:b.contentId,ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":C(o).be("dropdown","wrap"),"view-class":C(o).be("dropdown","list"),role:"listbox","aria-label":b.ariaLabel,"aria-orientation":"vertical"},{default:nt(()=>[(F(!0),K(Pt,null,an(b.options,(A,S)=>(F(),K("li",{id:`${b.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S,class:re(d(A,S)),role:"option","aria-disabled":A.disabled||b.disabled||void 0,"aria-selected":a.value===S,onMousemove:k=>f(S),onClick:Qt(k=>c(A),["stop"])},[ft(b.$slots,"label",{item:A,index:S},()=>{var k;return[x("span",null,We((k=A.label)!=null?k:A.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[Ar,b.options.length>0&&!b.loading]]),b.loading?(F(),K("div",{key:1,class:re(C(o).be("dropdown","loading"))},[ft(b.$slots,"loading",{},()=>[xn(We(C(i)("el.mention.loading")),1)])],2)):xe("v-if",!0),b.$slots.footer?(F(),K("div",{key:2,class:re(C(o).be("dropdown","footer"))},[ft(b.$slots,"footer")],2)):xe("v-if",!0)],2))}});var hat=Jt(pat,[["__file","mention-dropdown.vue"]]);const gat=tt({name:"ElMention",inheritAttrs:!1}),vat=tt({...gat,props:lat,emits:uat,setup(e,{expose:t,emit:n}){const r=e,o=J(()=>ru(r,Object.keys(DC))),i=zt("mention"),a=Wa(),s=fs(),l=Q(),u=Q(),d=Q(),c=Q(!1),f=Q(),p=Q(),v=J(()=>r.showArrow?r.placement:`${r.placement}-start`),h=J(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=J(()=>{const{filterOption:_,options:B}=r;return!p.value||!_?B:B.filter(N=>_(p.value.pattern,N))}),y=J(()=>c.value&&(!!g.value.length||r.loading)),m=J(()=>{var _;return`${s.value}-${(_=d.value)==null?void 0:_.hoveringIndex}`}),b=_=>{n(Gn,_),n(ma,_),D()},w=_=>{var B,N,q,U;if(!(!("code"in _)||(B=l.value)!=null&&B.isComposing))switch(_.code){case gn.left:case gn.right:D();break;case gn.up:case gn.down:if(!c.value)return;_.preventDefault(),(N=d.value)==null||N.navigateOptions(_.code===gn.up?"prev":"next");break;case gn.enter:case gn.numpadEnter:if(!c.value)return;_.preventDefault(),(q=d.value)!=null&&q.hoverOption?(U=d.value)==null||U.selectHoverOption():c.value=!1;break;case gn.esc:if(!c.value)return;_.preventDefault(),c.value=!1;break;case gn.backspace:if(r.whole&&p.value){const{splitIndex:j,selectionEnd:H,pattern:G,prefixIndex:Z,prefix:$}=p.value,L=M();if(!L)return;const W=L.value,ie=r.options.find(te=>te.value===G);if((Pn(r.checkIsWhole)?r.checkIsWhole(G,$):ie)&&j!==-1&&j+1===H){_.preventDefault();const te=W.slice(0,Z)+W.slice(j+1);n(Gn,te),n(ma,te),n("whole-remove",G,$);const X=Z;Vt(()=>{L.selectionStart=X,L.selectionEnd=X,O()})}}}},{wrapperRef:A}=gp(l,{disabled:a,afterFocus(){D()},beforeBlur(_){var B;return(B=u.value)==null?void 0:B.isFocusInsideContent(_)},afterBlur(){c.value=!1}}),S=()=>{D()},k=_=>{if(!p.value)return;const B=M();if(!B)return;const N=B.value,{split:q}=r,U=N.slice(p.value.end),j=U.startsWith(q),H=`${_.value}${j?"":q}`,G=N.slice(0,p.value.start)+H+U;n(Gn,G),n(ma,G),n("select",_,p.value.prefix);const Z=p.value.start+H.length+(j?1:0);Vt(()=>{B.selectionStart=Z,B.selectionEnd=Z,B.focus(),O()})},M=()=>{var _,B;return r.type==="textarea"?(_=l.value)==null?void 0:_.textarea:(B=l.value)==null?void 0:B.input},D=()=>{setTimeout(()=>{P(),O(),Vt(()=>{var _;return(_=u.value)==null?void 0:_.updatePopper()})},0)},P=()=>{const _=M();if(!_)return;const B=sat(_),N=_.getBoundingClientRect(),q=l.value.$el.getBoundingClientRect();f.value={position:"absolute",width:0,height:`${B.height}px`,left:`${B.left+N.left-q.left}px`,top:`${B.top+N.top-q.top}px`}},O=()=>{const _=M();if(document.activeElement!==_){c.value=!1;return}const{prefix:B,split:N}=r;if(p.value=aat(_,B,N),p.value&&p.value.splitIndex===-1){c.value=!0,n("search",p.value.pattern,p.value.prefix);return}c.value=!1};return t({input:l,tooltip:u,dropdownVisible:y}),(_,B)=>(F(),K("div",{ref_key:"wrapperRef",ref:A,class:re(C(i).b())},[Ve(C(Us),pr(pr(C(o),_.$attrs),{ref_key:"elInputRef",ref:l,"model-value":_.modelValue,disabled:C(a),role:C(y)?"combobox":void 0,"aria-activedescendant":C(y)?C(m)||"":void 0,"aria-controls":C(y)?C(s):void 0,"aria-expanded":C(y)||void 0,"aria-label":_.ariaLabel,"aria-autocomplete":C(y)?"none":void 0,"aria-haspopup":C(y)?"listbox":void 0,onInput:b,onKeydown:w,onMousedown:S}),Ll({_:2},[an(_.$slots,(N,q)=>({name:q,fn:nt(U=>[ft(_.$slots,q,Sl(Bd(U)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Ve(C(ps),{ref_key:"tooltipRef",ref:u,visible:C(y),"popper-class":[C(i).e("popper"),_.popperClass],"popper-options":_.popperOptions,placement:C(v),"fallback-placements":C(h),effect:"light",pure:"",offset:_.offset,"show-arrow":_.showArrow},{default:nt(()=>[x("div",{style:Xt(f.value)},null,4)]),content:nt(()=>{var N;return[Ve(hat,{ref_key:"dropdownRef",ref:d,options:C(g),disabled:C(a),loading:_.loading,"content-id":C(s),"aria-label":_.ariaLabel,onSelect:k,onClick:Qt((N=l.value)==null?void 0:N.focus,["stop"])},Ll({_:2},[an(_.$slots,(q,U)=>({name:U,fn:nt(j=>[ft(_.$slots,U,Sl(Bd(j)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var mat=Jt(vat,[["__file","mention.vue"]]);const yat=er(mat);var bat=[hBe,LLe,T$e,ztt,P$e,$$e,M1e,X$e,J$e,Za,F1e,Kze,Jze,vje,mje,wHe,iye,kHe,Qu,Oje,Y1e,OHe,KHe,QHe,oD,pye,AWe,SWe,BWe,LWe,FWe,UWe,$We,mqe,Tye,Tqe,_qe,Bye,Lye,uGe,XGe,JGe,eKe,Zye,JKe,eQe,Dn,dQe,ebe,Us,tbe,kQe,MQe,ZQe,XQe,JQe,eYe,aYe,ZYe,rZe,fZe,_1e,ube,rye,Wje,Hje,CZe,TZe,NZe,Lc,_v,AE,OYe,fXe,AXe,CXe,zXe,qXe,Abe,rJe,fJe,pJe,bJe,Oet,Met,$tt,nnt,rnt,Dh,_W,sVe,pnt,bnt,wnt,ps,$rt,Jrt,PE,yot,Rot,oit,git,$it,zit,Zit,Xit,oat,yat,zye,_S];const Du="ElInfiniteScroll",wat=50,Aat=200,Cat=0,xat={delay:{type:Number,default:Aat},distance:{type:Number,default:Cat},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},WW=(e,t)=>Object.entries(xat).reduce((n,[r,o])=>{var i,a;const{type:s,default:l}=o,u=e.getAttribute(`infinite-scroll-${r}`);let d=(a=(i=t[u])!=null?i:u)!=null?a:l;return d=d==="false"?!1:d,d=s(d),n[r]=Number.isNaN(d)?l:d,n},{}),K2e=e=>{const{observer:t}=e[Du];t&&(t.disconnect(),delete e[Du].observer)},Sat=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[Du],{disabled:s,distance:l}=WW(e,o),{clientHeight:u,scrollHeight:d,scrollTop:c}=r,f=c-a;if(e[Du].lastScrollTop=c,i||s||f<0)return;let p=!1;if(n===e)p=d-(u+c)<=l;else{const{clientTop:v,scrollHeight:h}=e,g=xL(e,r);p=c+u>=g+v+h-l}p&&t.call(o)};function II(e,t){const{containerEl:n,instance:r}=e[Du],{disabled:o}=WW(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):K2e(e))}const Eat={async mounted(e,t){const{instance:n,value:r}=t;Pn(r)||Xi(Du,"'v-infinite-scroll' binding value must be a function"),await Vt();const{delay:o,immediate:i}=WW(e,n),a=gH(e,!0),s=a===window?document.documentElement:a,l=qg(Sat.bind(null,e,r),o);if(a){if(e[Du]={instance:n,container:a,containerEl:s,delay:o,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(qg(II.bind(null,e,r),wat));e[Du].observer=u,u.observe(e,{childList:!0,subtree:!0}),II(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[Du])return;const{container:t,onScroll:n}=e[Du];t?.removeEventListener("scroll",n),K2e(e)},async updated(e){if(!e[Du])await Vt();else{const{containerEl:t,cb:n,observer:r}=e[Du];t.clientHeight&&r&&II(e,n)}}},dF=Eat;dF.install=e=>{e.directive("InfiniteScroll",dF)};const kat=dF;function Tat(e,t){let n;const r=Q(!1),o=Ur({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(p){o.text=p}function a(){const p=o.parent,v=f.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(zs(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),zs(p,v.bm("parent","hidden"))}s(),c.unmount()}function s(){var p,v;(v=(p=f.$el)==null?void 0:p.parentNode)==null||v.removeChild(f.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(n),n=setTimeout(u,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function u(){if(!r.value)return;const p=o.parent;r.value=!1,p.vLoadingAddClassList=void 0,a()}const c=Gge(tt({name:"ElLoading",setup(p,{expose:v}){const{ns:h,zIndex:g}=Q_("loading");return v({ns:h,zIndex:g}),()=>{const y=o.spinner||o.svg,m=Fn("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Fn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?Fn("p",{class:h.b("text")},[o.text]):void 0;return Fn(Wi,{name:h.b("fade"),onAfterLeave:u},{default:nt(()=>[ln(Ve("div",{style:{backgroundColor:o.background||""},class:[h.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[Fn("div",{class:h.b("spinner")},[m,b])]),[[Ar,o.visible]])])})}}}));Object.assign(c._context,t??{});const f=c.mount(document.createElement("div"));return{..._a(o),setText:i,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let Sx;const ny=function(e={}){if(!Kr)return;const t=_at(e);if(t.fullscreen&&Sx)return Sx;const n=Tat({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(Sx=void 0)}},ny._context);Dat(t,t.parent,n),Vee(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Vee(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Vt(()=>n.visible.value=t.visible),t.fullscreen&&(Sx=n),n},_at=e=>{var t,n,r,o;let i;return In(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Dat=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Tf(document.body,"position"),n.originalOverflow.value=Tf(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Tf(document.body,"position"),await Vt();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(Tf(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Tf(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},Vee=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?zs(t,r.bm("parent","relative")):Nu(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Nu(t,r.bm("parent","hidden")):zs(t,r.bm("parent","hidden"))};ny._context=null;const b4=Symbol("ElLoading"),vg=e=>`element-loading-${cp(e)}`,qee=(e,t)=>{var n,r,o,i;const a=t.instance,s=p=>ar(t.value)?t.value[p]:void 0,l=p=>{const v=In(p)&&a?.[p]||p;return Q(v)},u=p=>l(s(p)||e.getAttribute(vg(p))),d=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,c={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=s("target"))!=null?r:d?void 0:e,body:(o=s("body"))!=null?o:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock},f=ny(c);f._context=Z4._context,e[b4]={options:c,instance:f}},Iat=(e,t)=>{for(const n of Object.keys(e))Ro(e[n])&&(e[n].value=t[n])},Z4={mounted(e,t){t.value&&qee(e,t)},updated(e,t){const n=e[b4];if(!t.value){n?.instance.close(),e[b4]=null;return}n?Iat(n.options,ar(t.value)?t.value:{text:e.getAttribute(vg("text")),svg:e.getAttribute(vg("svg")),svgViewBox:e.getAttribute(vg("svgViewBox")),spinner:e.getAttribute(vg("spinner")),background:e.getAttribute(vg("background")),customClass:e.getAttribute(vg("customClass"))}):qee(e,t)},unmounted(e){var t;(t=e[b4])==null||t.instance.close(),e[b4]=null}};Z4._context=null;const Oat={install(e){ny._context=e._context,Z4._context=e._context,e.directive("loading",Z4),e.config.globalProperties.$loading=ny},directive:Z4,service:ny},Q2e=["primary","success","info","warning","error"],Y2e=["top","top-left","top-right","bottom","bottom-left","bottom-right"],iA="top",Is=fi({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kr?document.body:void 0}),Mat=Kt({customClass:{type:String,default:Is.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Is.dangerouslyUseHTMLString},duration:{type:Number,default:Is.duration},icon:{type:vo,default:Is.icon},id:{type:String,default:Is.id},message:{type:it([String,Object,Function]),default:Is.message},onClose:{type:it(Function),default:Is.onClose},showClose:{type:Boolean,default:Is.showClose},type:{type:String,values:Q2e,default:Is.type},plain:{type:Boolean,default:Is.plain},offset:{type:Number,default:Is.offset},placement:{type:String,values:Y2e,default:Is.placement},zIndex:{type:Number,default:Is.zIndex},grouping:{type:Boolean,default:Is.grouping},repeatNum:{type:Number,default:Is.repeatNum}}),Pat={destroy:()=>!0},kc=S_({}),Nat=e=>(kc[e]||(kc[e]=S_([])),kc[e]),Rat=(e,t)=>{const n=kc[t]||[],r=n.findIndex(a=>a.id===e),o=n[r];let i;return r>0&&(i=n[r-1]),{current:o,prev:i}},Bat=(e,t)=>{const{prev:n}=Rat(e,t);return n?n.vm.exposed.bottom.value:0},Lat=(e,t,n)=>(kc[n]||[]).findIndex(i=>i.id===e)>0?16:t,Fat=tt({name:"ElMessage"}),Uat=tt({...Fat,props:Mat,emits:Pat,setup(e,{expose:t,emit:n}){const r=e,{Close:o}=bH,i=Q(!1),{ns:a,zIndex:s}=Q_("message"),{currentZIndex:l,nextZIndex:u}=s,d=Q(),c=Q(!1),f=Q(0);let p;const v=J(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=J(()=>{const _=r.type;return{[a.bm("icon",_)]:_&&a0[_]}}),g=J(()=>r.icon||a0[r.type]||""),y=J(()=>r.placement||iA),m=J(()=>Bat(r.id,y.value)),b=J(()=>Lat(r.id,r.offset,y.value)+m.value),w=J(()=>f.value+b.value),A=J(()=>y.value.includes("left")?a.is("left"):y.value.includes("right")?a.is("right"):a.is("center")),S=J(()=>y.value.startsWith("top")?"top":"bottom"),k=J(()=>({[S.value]:`${b.value}px`,zIndex:l.value}));function M(){r.duration!==0&&({stop:p}=kv(()=>{P()},r.duration))}function D(){p?.()}function P(){c.value=!1,Vt(()=>{var _;i.value||((_=r.onClose)==null||_.call(r),n("destroy"))})}function O({code:_}){_===gn.esc&&P()}return jn(()=>{M(),u(),c.value=!0}),St(()=>r.repeatNum,()=>{D(),M()}),Mo(document,"keydown",O),li(d,()=>{f.value=d.value.getBoundingClientRect().height}),t({visible:c,bottom:w,close:P}),(_,B)=>(F(),mt(Wi,{name:C(a).b("fade"),onBeforeEnter:N=>i.value=!0,onBeforeLeave:_.onClose,onAfterLeave:N=>_.$emit("destroy"),persisted:""},{default:nt(()=>[ln(x("div",{id:_.id,ref_key:"messageRef",ref:d,class:re([C(a).b(),{[C(a).m(_.type)]:_.type},C(a).is("closable",_.showClose),C(a).is("plain",_.plain),C(a).is("bottom",C(S)==="bottom"),C(A),_.customClass]),style:Xt(C(k)),role:"alert",onMouseenter:D,onMouseleave:M},[_.repeatNum>1?(F(),mt(C(M1e),{key:0,value:_.repeatNum,type:C(v),class:re(C(a).e("badge"))},null,8,["value","type","class"])):xe("v-if",!0),C(g)?(F(),mt(C(Dn),{key:1,class:re([C(a).e("icon"),C(h)])},{default:nt(()=>[(F(),mt(hr(C(g))))]),_:1},8,["class"])):xe("v-if",!0),ft(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(F(),K(Pt,{key:1},[xe(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:re(C(a).e("content")),innerHTML:_.message},null,10,["innerHTML"])],2112)):(F(),K("p",{key:0,class:re(C(a).e("content"))},We(_.message),3))]),_.showClose?(F(),mt(C(Dn),{key:2,class:re(C(a).e("closeBtn")),onClick:Qt(P,["stop"])},{default:nt(()=>[Ve(C(o))]),_:1},8,["class","onClick"])):xe("v-if",!0)],46,["id"]),[[Ar,c.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var $at=Jt(Uat,[["__file","message.vue"]]);let zat=1;const jat=e=>{if(!e.appendTo)e.appendTo=document.body;else if(In(e.appendTo)){let n=document.querySelector(e.appendTo);al(n)||(n=document.body),e.appendTo=n}},Hat=e=>{!e.placement&&In(Ps.placement)&&Ps.placement&&(e.placement=Ps.placement),e.placement||(e.placement=iA),Y2e.includes(e.placement)||(e.placement=iA)},Z2e=e=>{const t=!e||In(e)||jo(e)||Pn(e)?{message:e}:e,n={...Is,...t};return jat(n),Hat(n),Co(Ps.grouping)&&!n.grouping&&(n.grouping=Ps.grouping),Ln(Ps.duration)&&n.duration===3e3&&(n.duration=Ps.duration),Ln(Ps.offset)&&n.offset===16&&(n.offset=Ps.offset),Co(Ps.showClose)&&!n.showClose&&(n.showClose=Ps.showClose),Co(Ps.plain)&&!n.plain&&(n.plain=Ps.plain),n},Wat=e=>{const t=e.props.placement||iA,n=kc[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:o}=e;o.close()},Vat=({appendTo:e,...t},n)=>{const r=`message_${zat++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o?.(),Wat(d)},onDestroy:()=>{e0(null,i)}},s=Ve($at,a,Pn(a.message)||jo(a.message)?{default:Pn(a.message)?a.message:()=>a.message}:null);s.appContext=n||Mv._context,e0(s,i),e.appendChild(i.firstElementChild);const l=s.component,d={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return d},Mv=(e={},t)=>{if(!Kr)return{close:()=>{}};const n=Z2e(e),r=Nat(n.placement||iA);if(n.grouping&&r.length){const i=r.find(({vnode:a})=>{var s;return((s=a.props)==null?void 0:s.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}if(Ln(Ps.max)&&r.length>=Ps.max)return{close:()=>{}};const o=Vat(n,t);return r.push(o),o.handler};Q2e.forEach(e=>{Mv[e]=(t={},n)=>{const r=Z2e(t);return Mv({...r,type:e},n)}});function qat(e){for(const t in kc)if(Zr(kc,t)){const n=[...kc[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function Gat(e){if(!kc[e])return;[...kc[e]].forEach(n=>n.handler.close())}Mv.closeAll=qat;Mv.closeAllByPlacement=Gat;Mv._context=null;const Ct=Vme(Mv,"$message"),fF="_trap-focus-children",Fg=[],Gee=e=>{if(Fg.length===0)return;const t=Fg[Fg.length-1][fF];if(t.length>0&&e.code===gn.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},Kat={beforeMount(e){e[fF]=QX(e),Fg.push(e),Fg.length<=1&&document.addEventListener("keydown",Gee)},updated(e){Vt(()=>{e[fF]=QX(e)})},unmounted(){Fg.shift(),Fg.length===0&&document.removeEventListener("keydown",Gee)}},Qat=tt({name:"ElMessageBox",directives:{TrapFocus:Kat},components:{ElButton:Za,ElFocusTrap:Rb,ElInput:Us,ElOverlay:QH,ElIcon:Dn,...bH},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Sbe},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:i}=Q_("message-box",J(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=Q(!1),u=Ur({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Id(Bc),cancelButtonLoadingIcon:Id(Bc),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=J(()=>{const j=u.type;return{[o.bm("icon",j)]:j&&a0[j]}}),c=fs(),f=fs(),p=J(()=>{const j=u.type;return u.icon||j&&a0[j]||""}),v=J(()=>!!u.message),h=Q(),g=Q(),y=Q(),m=Q(),b=Q(),w=J(()=>u.confirmButtonClass);St(()=>u.inputValue,async j=>{await Vt(),e.boxType==="prompt"&&j&&B()},{immediate:!0}),St(()=>l.value,j=>{var H,G;j&&(e.boxType!=="prompt"&&(u.autofocus?y.value=(G=(H=b.value)==null?void 0:H.$el)!=null?G:h.value:y.value=h.value),u.zIndex=s()),e.boxType==="prompt"&&(j?Vt().then(()=>{var Z;m.value&&m.value.$el&&(u.autofocus?y.value=(Z=N())!=null?Z:h.value:y.value=h.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=J(()=>e.draggable),S=J(()=>e.overflow),{isDragging:k}=Mye(h,g,A,S);jn(async()=>{await Vt(),e.closeOnHashChange&&window.addEventListener("hashchange",M)}),Qr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",M)});function M(){l.value&&(l.value=!1,Vt(()=>{u.action&&t("action",u.action)}))}const D=()=>{e.closeOnClickModal&&_(u.distinguishCancelAndClose?"close":"cancel")},P=KH(D),O=j=>{if(u.inputType!=="textarea")return j.preventDefault(),_("confirm")},_=j=>{var H;e.boxType==="prompt"&&j==="confirm"&&!B()||(u.action=j,u.beforeClose?(H=u.beforeClose)==null||H.call(u,j,u,M):M())},B=()=>{if(e.boxType==="prompt"){const j=u.inputPattern;if(j&&!j.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const H=u.inputValidator;if(Pn(H)){const G=H(u.inputValue);if(G===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(In(G))return u.editorErrorMessage=G,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},N=()=>{var j,H;const G=(j=m.value)==null?void 0:j.$refs;return(H=G?.input)!=null?H:G?.textarea},q=()=>{_("close")},U=()=>{e.closeOnPressEscape&&q()};return e.lockScroll&&YH(l),{..._a(u),ns:o,overlayEvent:P,visible:l,hasMessage:v,typeClass:d,contentId:c,inputId:f,btnSize:i,iconComponent:p,confirmButtonClasses:w,rootRef:h,focusStartRef:y,headerRef:g,inputRef:m,isDragging:k,confirmRef:b,doClose:M,handleClose:q,onCloseRequested:U,handleWrapperClick:D,handleInputEnter:O,handleAction:_,t:a}}});function Yat(e,t,n,r,o,i){const a=sr("el-icon"),s=sr("el-input"),l=sr("el-button"),u=sr("el-focus-trap"),d=sr("el-overlay");return F(),mt(Wi,{name:"fade-in-linear",onAfterLeave:c=>e.$emit("vanish"),persisted:""},{default:nt(()=>[ln(Ve(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:nt(()=>[x("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:re(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[Ve(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:nt(()=>[x("div",{ref:"rootRef",class:re([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Xt(e.customStyle),tabindex:"-1",onClick:Qt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(F(),K("div",{key:0,ref:"headerRef",class:re([e.ns.e("header"),{"show-close":e.showClose}])},[x("div",{class:re(e.ns.e("title"))},[e.iconComponent&&e.center?(F(),mt(a,{key:0,class:re([e.ns.e("status"),e.typeClass])},{default:nt(()=>[(F(),mt(hr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),x("span",null,We(e.title),1)],2),e.showClose?(F(),K("button",{key:0,type:"button",class:re(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:c=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Lr(Qt(c=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[Ve(a,{class:re(e.ns.e("close"))},{default:nt(()=>[(F(),mt(hr(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):xe("v-if",!0)],2)):xe("v-if",!0),x("div",{id:e.contentId,class:re(e.ns.e("content"))},[x("div",{class:re(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(F(),mt(a,{key:0,class:re([e.ns.e("status"),e.typeClass])},{default:nt(()=>[(F(),mt(hr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),e.hasMessage?(F(),K("div",{key:1,class:re(e.ns.e("message"))},[ft(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(F(),mt(hr(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(F(),mt(hr(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:We(e.message)},null,8,["for","textContent"]))])],2)):xe("v-if",!0)],2),ln(x("div",{class:re(e.ns.e("input"))},[Ve(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":c=>e.inputValue=c,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:re({invalid:e.validateError}),onKeydown:Lr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x("div",{class:re(e.ns.e("errormsg")),style:Xt({visibility:e.editorErrorMessage?"visible":"hidden"})},We(e.editorErrorMessage),7)],2),[[Ar,e.showInput]])],10,["id"]),x("div",{class:re(e.ns.e("btns"))},[e.showCancelButton?(F(),mt(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:re([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:c=>e.handleAction("cancel"),onKeydown:Lr(Qt(c=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:nt(()=>[xn(We(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):xe("v-if",!0),ln(Ve(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:re([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:c=>e.handleAction("confirm"),onKeydown:Lr(Qt(c=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:nt(()=>[xn(We(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[Ar,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[Ar,e.visible]])]),_:3},8,["onAfterLeave"])}var Zat=Jt(Qat,[["render",Yat],["__file","index.vue"]]);const aA=new Map,Xat=e=>{let t=document.body;return e.appendTo&&(In(e.appendTo)&&(t=document.querySelector(e.appendTo)),al(e.appendTo)&&(t=e.appendTo),al(t)||(t=document.body)),t},Jat=(e,t,n=null)=>{const r=Ve(Zat,e,Pn(e.message)||jo(e.message)?{default:Pn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,e0(r,t),Xat(e).appendChild(t.firstElementChild),r.component},est=()=>document.createElement("div"),tst=(e,t)=>{const n=est();e.onVanish=()=>{e0(null,n),aA.delete(o)},e.onAction=i=>{const a=aA.get(o);let s;e.showInput?s={value:o.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(s)};const r=Jat(e,n,t),o=r.proxy;for(const i in e)Zr(e,i)&&!Zr(o.$props,i)&&(i==="closeIcon"&&ar(e[i])?o[i]=Id(e[i]):o[i]=e[i]);return o.visible=!0,o};function $b(e,t=null){if(!Kr)return Promise.reject();let n;return In(e)||jo(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=tst(e,t??$b._context);aA.set(i,{options:e,callback:n,resolve:r,reject:o})})}const nst=["alert","confirm","prompt"],rst={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};nst.forEach(e=>{$b[e]=ost(e)});function ost(e){return(t,n,r,o)=>{let i="";return ar(n)?(r=n,i=""):$r(n)?i="":i=n,$b(Object.assign({title:i,message:t,type:"",...rst[e]},r,{boxType:e}),o)}}$b.close=()=>{aA.forEach((e,t)=>{t.doClose()}),aA.clear()};$b._context=null;const nh=$b;nh.install=e=>{nh._context=e._context,e.config.globalProperties.$msgbox=nh,e.config.globalProperties.$messageBox=nh,e.config.globalProperties.$alert=nh.alert,e.config.globalProperties.$confirm=nh.confirm,e.config.globalProperties.$prompt=nh.prompt};const ist=nh,X2e=["primary","success","info","warning","error"],ast=Kt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:vo},id:{type:String,default:""},message:{type:it([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:it(Function),default:()=>{}},onClose:{type:it(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...X2e,""],default:""},zIndex:Number,closeIcon:{type:vo,default:cu}}),sst={destroy:()=>!0},lst=tt({name:"ElNotification"}),ust=tt({...lst,props:ast,emits:sst,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=Q_("notification"),{nextZIndex:i,currentZIndex:a}=o,s=Q(!1);let l;const u=J(()=>{const m=n.type;return m&&a0[n.type]?r.m(m):""}),d=J(()=>n.type&&a0[n.type]||n.icon),c=J(()=>n.position.endsWith("right")?"right":"left"),f=J(()=>n.position.startsWith("top")?"top":"bottom"),p=J(()=>{var m;return{[f.value]:`${n.offset}px`,zIndex:(m=n.zIndex)!=null?m:a.value}});function v(){n.duration>0&&({stop:l}=kv(()=>{s.value&&g()},n.duration))}function h(){l?.()}function g(){s.value=!1}function y({code:m}){m===gn.delete||m===gn.backspace?h():m===gn.esc?s.value&&g():v()}return jn(()=>{v(),i(),s.value=!0}),Mo(document,"keydown",y),t({visible:s,close:g}),(m,b)=>(F(),mt(Wi,{name:C(r).b("fade"),onBeforeLeave:m.onClose,onAfterLeave:w=>m.$emit("destroy"),persisted:""},{default:nt(()=>[ln(x("div",{id:m.id,class:re([C(r).b(),m.customClass,C(c)]),style:Xt(C(p)),role:"alert",onMouseenter:h,onMouseleave:v,onClick:m.onClick},[C(d)?(F(),mt(C(Dn),{key:0,class:re([C(r).e("icon"),C(u)])},{default:nt(()=>[(F(),mt(hr(C(d))))]),_:1},8,["class"])):xe("v-if",!0),x("div",{class:re(C(r).e("group"))},[x("h2",{class:re(C(r).e("title")),textContent:We(m.title)},null,10,["textContent"]),ln(x("div",{class:re(C(r).e("content")),style:Xt(m.title?void 0:{margin:0})},[ft(m.$slots,"default",{},()=>[m.dangerouslyUseHTMLString?(F(),K(Pt,{key:1},[xe(" Caution here, message could've been compromised, never use user's input as message "),x("p",{innerHTML:m.message},null,8,["innerHTML"])],2112)):(F(),K("p",{key:0},We(m.message),1))])],6),[[Ar,m.message]]),m.showClose?(F(),mt(C(Dn),{key:0,class:re(C(r).e("closeBtn")),onClick:Qt(g,["stop"])},{default:nt(()=>[(F(),mt(hr(m.closeIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0)],2)],46,["id","onClick"]),[[Ar,s.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var cst=Jt(ust,[["__file","notification.vue"]]);const $y={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},NE=16;let dst=1;const Pv=function(e={},t){if(!Kr)return{close:()=>{}};(In(e)||jo(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;$y[n].forEach(({vm:d})=>{var c;r+=(((c=d.el)==null?void 0:c.offsetHeight)||0)+NE}),r+=NE;const o=`notification_${dst++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{fst(o,n,i)}};let s=document.body;al(e.appendTo)?s=e.appendTo:In(e.appendTo)&&(s=document.querySelector(e.appendTo)),al(s)||(s=document.body);const l=document.createElement("div"),u=Ve(cst,a,Pn(a.message)?a.message:jo(a.message)?()=>a.message:null);return u.appContext=$r(t)?Pv._context:t,u.props.onDestroy=()=>{e0(null,l)},e0(u,l),$y[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};X2e.forEach(e=>{Pv[e]=(t={},n)=>((In(t)||jo(t))&&(t={message:t}),Pv({...t,type:e},n))});function fst(e,t,n){const r=$y[t],o=r.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:i}=r[o];if(!i)return;n?.(i);const a=i.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const l=r.length;if(!(l<1))for(let u=o;u<l;u++){const{el:d,component:c}=r[u].vm,f=Number.parseInt(d.style[s],10)-a-NE;c.props.offset=f}}function pst(){for(const e of Object.values($y))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function hst(e="top-right"){var t,n,r;let o=((n=(t=$y[e][0])==null?void 0:t.vm.props)==null?void 0:n.offset)||0;for(const{vm:i}of $y[e])i.component.props.offset=o,o+=(((r=i.el)==null?void 0:r.offsetHeight)||0)+NE}Pv.closeAll=pst;Pv.updateOffsets=hst;Pv._context=null;const gst=Vme(Pv,"$notify");var vst=[kat,Oat,Ct,ist,gst,lbe],mst=rBe([...bat,...vst]);const Qo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},yst={key:0,class:"modal-overlay"},bst={class:"modal-body"},wst={class:"feedback-type-section"},Ast={class:"type-buttons"},Cst={class:"feedback-content-section"},xst={class:"textarea-container"},Sst={class:"char-count"},Est={class:"upload-section"},kst={key:1,class:"uploaded-images"},Tst=["src","alt"],_st={class:"image-actions"},Dst=["onClick"],Ist={key:0,class:"upload-progress"},Ost={class:"progress-bar"},Mst={class:"progress-text"},Pst={class:"contact-section"},Nst={class:"modal-footer"},Rst=["src"],Bst={__name:"FeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=Q("function"),i=Q(""),a=Q(""),s=Q(null),l=Q([]);Q(!1);const u=J(()=>i.value.trim()?dve:fve),d=y=>{o.value=y},c=()=>{o.value="function",i.value="",a.value="",l.value=[],r("close")},f=()=>{s.value?.click()},p=async y=>{const m=Array.from(y.target.files);if(l.value.length+m.length>3){Ct.warning("最多只能上传3张图片");return}const b=5*1024*1024,w=m.filter(A=>A.size>b?(Ct.warning(`图片 ${A.name} 超过5MB限制`),!1):!0);if(w.length!==0){for(const A of w)await v(A);y.target.value=""}},v=async y=>{try{console.log("开始上传图片:",y.name);const m={file:y,url:URL.createObjectURL(y),uploading:!0,progress:0,error:!1};l.value.push(m);const b=new FormData;b.append("image",y),console.log("FormData 已创建:",b),console.log("开始调用后端API...");const w=await Bn.uploadImage(b);if(console.log("后端API响应:",w),w.statusCode===200){const A=w.fileUrl||w.fileURL;console.log("上传成功:",A);const S=l.value.findIndex(k=>k.file===y);S!==-1&&(l.value[S]={...m,url:A,uploading:!1,progress:100}),Ct.success(`图片 ${y.name} 上传成功`)}else throw new Error(w.message||"上传失败")}catch(m){console.error("图片上传失败:",m);const b=l.value.findIndex(w=>w.file===y);b!==-1&&(l.value[b].error=!0,l.value[b].uploading=!1),Ct.error(`图片 ${y.name} 上传失败: ${m.message}`)}},h=y=>{l.value.splice(y,1)},g=()=>{if(!i.value.trim()){Ct.warning("请填写反馈内容");return}const y=l.value.filter(w=>!w.uploading&&!w.error);let m="";y.length>0&&(m=y.map(w=>w.url).join(","));const b={type:o.value,content:i.value,contact:a.value,feedback_img:m};console.log("提交反馈数据:",b),r("submit",b),o.value="function",i.value="",a.value="",l.value=[]};return St(()=>n.visible,y=>{if(y){const m=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${m}px`}else document.body.style.overflow="",document.body.style.paddingRight=""}),hl(()=>{document.body.style.overflow="",document.body.style.paddingRight=""}),(y,m)=>e.visible?(F(),K("div",yst,[x("div",{class:"modal-content",onClick:m[6]||(m[6]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[m[8]||(m[8]=x("h2",{class:"modal-title"},"意见反馈",-1)),x("button",{class:"close-btn",onClick:c},m[7]||(m[7]=[x("span",{class:"close-icon"},"×",-1)]))]),x("div",bst,[x("div",wst,[m[9]||(m[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",Ast,[x("button",{class:re(["type-btn",{active:o.value==="function"}]),onClick:m[0]||(m[0]=b=>d("function"))}," 功能建议 ",2),x("button",{class:re(["type-btn",{active:o.value==="interface"}]),onClick:m[1]||(m[1]=b=>d("interface"))}," 界面优化 ",2),x("button",{class:re(["type-btn",{active:o.value==="experience"}]),onClick:m[2]||(m[2]=b=>d("experience"))}," 体验问题 ",2),x("button",{class:re(["type-btn",{active:o.value==="other"}]),onClick:m[3]||(m[3]=b=>d("other"))}," 其他 ",2)])]),x("div",Cst,[m[10]||(m[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",xst,[ln(x("textarea",{class:"feedback-textarea",placeholder:"请详细描述您的问题或建议...","onUpdate:modelValue":m[4]||(m[4]=b=>i.value=b),maxlength:"200"},null,512),[[jr,i.value]]),x("div",Sst,We(i.value.length)+"/200",1)])]),x("div",Est,[l.value.length===0?(F(),K("div",{key:0,class:"upload-area",onClick:f},m[11]||(m[11]=[x("div",{class:"upload-icon"},[x("img",{src:iE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(F(),K("div",kst,[(F(!0),K(Pt,null,an(l.value,(b,w)=>(F(),K("div",{key:w,class:"image-item"},[x("img",{src:b.url,alt:`截图${w+1}`,class:"preview-img"},null,8,Tst),x("div",_st,[x("button",{class:"delete-btn",onClick:A=>h(w)},m[12]||(m[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,Dst)]),b.uploading?(F(),K("div",Ist,[x("div",Ost,[x("div",{class:"progress-fill",style:Xt({width:b.progress+"%"})},null,4)]),x("span",Mst,We(b.progress)+"%",1)])):xe("",!0)]))),128)),l.value.length<3?(F(),K("div",{key:0,class:"continue-upload",onClick:f},m[13]||(m[13]=[x("div",{class:"upload-icon"},[x("img",{src:iE,alt:"继续上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 继续上传 ",-1)]))):xe("",!0)])):xe("",!0),x("input",{ref_key:"fileInput",ref:s,type:"file",accept:"image/*",multiple:"",style:{display:"none"},onChange:p},null,544)]),x("div",Pst,[ln(x("input",{type:"text",class:"contact-input",placeholder:"请留下您的联系方式(选填)","onUpdate:modelValue":m[5]||(m[5]=b=>a.value=b)},null,512),[[jr,a.value]])])]),x("div",Nst,[x("button",{class:"submit-btn",onClick:g},[x("img",{src:u.value,alt:"提交反馈",class:"submit-icon"},null,8,Rst)])])])])):xe("",!0)}},Lst=Qo(Bst,[["__scopeId","data-v-1e1e6cd4"]]);function T0(){const e=Q(!1),t=Q(!1),n=Q(""),r=Q(""),o=Q(!1),i=window.speechSynthesis,a=()=>(e.value="webkitSpeechRecognition"in window||"SpeechRecognition"in window,e.value);let s=null;const l=()=>{if(!a())return r.value="浏览器不支持语音识别功能",!1;const y=window.SpeechRecognition||window.webkitSpeechRecognition;return s=new y,s.continuous=!0,s.interimResults=!0,s.lang="zh-CN",s.onstart=()=>{t.value=!0,r.value=""},s.onresult=m=>{let b="",w="";for(let A=m.resultIndex;A<m.results.length;A++){const S=m.results[A][0].transcript;m.results[A].isFinal?b+=S:w+=S}n.value=b+w},s.onerror=m=>{let b="";switch(m.error){case"not-allowed":b="语音识别权限被拒绝,请检查麦克风权限设置";break;case"no-speech":b="未检测到语音,请重新尝试";break;case"audio-capture":b="无法捕获音频,请检查麦克风设备";break;case"network":b="网络错误,请检查网络连接";break;case"service-not-allowed":b="语音识别服务不可用";break;case"bad-grammar":b="语法错误";break;case"language-not-supported":b="不支持当前语言设置";break;default:b=`语音识别错误: ${m.error}`}r.value=b,t.value=!1},s.onend=()=>{t.value=!1},!0},u=()=>{if(!s&&!l())return!1;try{return s.start(),!0}catch(y){let m="启动语音识别失败";return y.message&&(y.message.includes("not allowed")?m="语音识别权限被拒绝,请检查麦克风权限设置":y.message.includes("permission")?m="麦克风权限被拒绝,请在浏览器设置中允许麦克风访问":y.message.includes("microphone")?m="无法访问麦克风,请检查设备连接":m=`启动语音识别失败: ${y.message}`),r.value=m,!1}},d=()=>{s&&t.value&&s.stop()},c=(y,m={})=>{if(!i)return r.value="浏览器不支持语音合成功能",!1;f();const b=new SpeechSynthesisUtterance(y);return b.lang=m.lang||"zh-CN",b.rate=m.rate||1,b.pitch=m.pitch||1,b.volume=m.volume||1,b.onstart=()=>{o.value=!0,r.value=""},b.onend=()=>{o.value=!1},b.onerror=w=>{let A="";switch(w.error){case"canceled":A="语音合成已取消";break;case"interrupted":A="语音合成被中断";break;case"audio-busy":A="音频设备忙碌,请稍后重试";break;case"audio-hardware":A="音频硬件错误";break;case"network":A="网络错误,请检查网络连接";break;case"synthesis-unavailable":A="语音合成服务不可用";break;case"synthesis-failed":A="语音合成失败";break;case"language-unavailable":A="不支持当前语言";break;case"voice-unavailable":A="语音不可用";break;case"text-too-long":A="文本过长,无法合成";break;case"invalid-argument":A="无效参数";break;case"not-allowed":A="语音合成权限被拒绝";break;default:A=`语音合成错误: ${w.error}`}r.value=A,o.value=!1},i.speak(b),!0},f=()=>{i&&o.value&&(i.cancel(),o.value=!1)},p=()=>{i&&o.value&&i.pause()},v=()=>{i&&i.resume()},h=()=>i?i.getVoices().filter(y=>y.lang.startsWith("zh")||y.lang.startsWith("en")):[],g=y=>i?!!i.getVoices().find(w=>w.name===y):!1;return{isSupported:J(()=>e.value),isListening:J(()=>t.value),isSpeaking:J(()=>o.value),transcript:J(()=>n.value),error:J(()=>r.value),initSpeechRecognition:l,startListening:u,stopListening:d,speakText:c,stopSpeaking:f,pauseSpeaking:p,resumeSpeaking:v,getAvailableVoices:h,setVoice:g,checkSupport:a}}const Zf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI1SURBVFiF7ZjtcdswDIaf9jIANwg3iDeoOkG9Qb1BPII2yAjqBr5O4GzgdAI5EyQbJD9IJRAkSoQ+fPFd3zueZYkAXgEgCArmowAqoAbe4jjFe8UC+ifDA0c+SaXGMc69KDbASwa5ZtRRxoxvE2Q8Xa+8Ao/Av/j/DtgquTPwM/6uioq2dw6A65nn4zMd7lWxUQYfMmT0CxVrkSMSknnV5zkNRztfS4vB7zZ+rUR/JOTeGF6BP+L/ncWglaAX138Nck/i2rSarQQlcrw3G3MIXgRXTXBPqGOTdoBMbAi1cW8VLGhv/A1kQ1AY9P2mXZ4ayL28V1/Kg7fiOqfWTYUfm3DVOfgl8J/gXFwtwecM2dvxKR+QleBskMvyoFQuN/2dwY7sruUe7hL3R+FoN5k+3r/H3nx6JbNL3DfXW7lrNEp181kzXGy90iPnp3aXbMhWXZ4l9rTfvI4vIIk6QuesT36lmCO3uZyjQwcF/WHWyjXZOvHsMKC7mEIQuuFp4OgehoZGRTvHTuLZrJPeVhkq1fMdaY/J8Es8sJD3Ugo1SaKRkuCpirDa+wyXStek3NNwtEPShMUbdHi6eXtiwVbO0w3lC8EDxYDchv5crZck18DR/ZQhyR74DPGR9MclvWAWx37A+NDoWzCrwREWQqoe6ny9GLE+OEI5kmSPhNxcNZRWyMVQLaX0xjjfkfaKU9d+QM/ZaDcLukmYM7IP6paW/5dh7hh+LKjrA1umlZe+cqO/XyfxDnGRLhGwhOEKAAAAAElFTkSuQmCC",Xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABQCAYAAACwGF+mAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAtUSURBVHic7Z1fctrIFsa/biGhi8HI2CpiJi7DXE9NOXmJd5AdZAuZFUxmBZOsYJIVJFvIDrID54Xrh0kMrsTYlIwQYDMYIfV9gFYEiL82BjT9e3JQI47lT0envz5NCObk5LiQZVG8IAzPGGFZMGQZg0YItHnPKfj3wRgsQlAEgQVGLAbnI6XSp8PDXHGe85FZBh8fFzQl4r4ilLwA8GyeDxQIpuQzCPlECN7NIu6pBM2FDEJ+FxlY8JAwBguEvWu36dujo5w1afxEQefzX16C0b+EkAVLpsjgvnn69ODDuEF03MF8/utrAvpeiFmwAmQJ6Pt8/uvrcYMCM/TxcUFTFPcvAvJyEZEJBHeCkLe3t3gTVIJEgsZHo/gTTIhZsKIw9kpRmAbgt8FDQyVHPv/1NRh79SCBCQRzQkBeBpUffSVHPv/lJQF9/2BRCQR3hMH9zT9R9AR9fFzQogo7BpBdQlwCwVwwBqttkxyvp72SQ1HcVxBiFqwZhKC7RsL/DQAnJ4Ws67BjYc8J1hF/lqa9F8QKoGBt8WfpbsnB2PNlBiQQ3JVefxHIyUkhy1xWWHZAAsFdIW2So67rPF92IALBfcCieEEJpBfLDkQguA8IwzMKwsRkUBAKGGFZCibcDUFIYMhSxsRiiiAcMAaNCv9ZEBYIgTa2wV8gWDeEoAWhQghaECqEoAWhQgi6B5UWfymm/YxYTF1wJOElVIJOpTaRSMQgy8NbJdOPUjh8ksP+/u7QsaQWx6+/7iOT0QPfO4lEIjbVmIODPaTT22PHyXIE+9ldHPyyN1cs/3ZCdcV29C1IEoVp1lC+NPuOqdFo4HuoRKElEwC6wo5tqDCMKmrW9VSfmU5vI7W9CbNSR7lcGTlOliOQJIrU9iZs24Zp1gPH6fqW97Ntd6aKYVl0r10cicQGqERROD1fdkjhEbSqKpB6j/TmTWvoOH/ct22773XXcVEqGdC0BHZ0DbIcQSajI5VK4vu38kRRua4LABOFapp1qGoUSS2OHX0LjUZz6NxJLY6kFgcAGEZ1it/64fGLOLbxozRqtdpLjOoHoRG0v+4MuriqqgAIznq23YFhVGFZDWQyOmIbKlRVgSxHJgraMKqgtJt504+20Wq10WwO31AAcFmuILahQpYjSD/axvdvZe+YLEe87Fyzrqd+QjwEo0Tsp9n854GjCiY8gt74D4CumAdFyMUMALdjMoltd3B2dgFd30Ispo4U5iDGVdW7CR7vpVE4PQ+8EVzHRfmygh19C+XL/vJE17e8G2gVsvM0IvbTqDcfIKrJhEfQvQwdJFj/5GqaunRWQbmOi+/fysj9/BMkieLxXhpnZxdwnW45cnCw1zeeSnRocior3RgpHT725cu3meKZl1lFzHEcd+qbf9GEQtB8wgUA8Z6b4Mdvlz1+nJ77c8YJy7Y7uDKqSD/ahiRRSJR6guZi9SONsPAkiY48tghmFbHjuHBdty9JrIqYgZAI2s8kQQSJ674wzTpkJQKzUu97EpwVLwLHZzI6ZCWCVqs9VIIsknkzsW13UDo38HivPyk0Gjf3HeLchELQjuuOFI2iyNjN7AAAGo0mzEptobEM2oXA5AzmPsAje14Rc8xKHaZZw352dyhhBLlKyyIUgh4nCH9GNiu1lXo8PgRJLQ4tmZhLxEC3xLgyqjDNOtLp7aHFnqBJ+DIJhaDHwRdNFjFxUVUF0agy9HrjuunVz+uMbXdwVryAbXeQSm0itb05NGZV7DpOqAUtyxEvMy0iM8cTsb6VPc5Z8WJlngTc0+bXYtpsbVbqMK6qcJ3uBHAn4PcEVseu44Ra0P4/nKoqgX0c47hp/oMrY/R/6+E6Luz2j8ft4IQzkYiN7d3g42Mb6pAzM8j37+U7rcbZdmcqcftLDKBnMQbUzXzsqty4nFAL2p89ZTkyc7PP4DL5IKZZ71vqPnyS6ztOKZ3aVZk0jtL7s/JGiVtWIl6JwdF3tkZet1UTMxBiQSe1+NAfYpoFE0WWvX4K3qcxL81ma6T7AgD72e4TYxr3pXW7mF4Jv7gHGVU3c1bJruOEVtBBtS2AsSUEAM9jte0OzEpwo9G02HZnpAPgX45v3vyzctluXN3MWSW7jhOqfmiOPzv7s08qlRxbdiS1uNfbXLOuF2pHpVJJ7+cdfQup1OhMuAxG1c2cVbPrOKEUtD87G0YVl+UKHMeFJFFkMnrge/zdbotuEJLliFfWAN3VzfSj7bk3GCyCSdl31ew6TugEzbvWgB9Z1u3N3IGuozAoatprKOLvG1f33hW+I4Xz5e9vXhmU1OLYz+6uhKgtqzH2+KrZdZxQCbpb93W/N2cwy5pm3Ss9klrcy8a8843XtFeGtbBHaSq1idzPP3mC5Z9lGFWUL7tPEVmO4OCXvZFzgIei2WyNzNKraNdxlp8K7hF/5jOM6pAwSyUDUVWBqiqe8OOJmCdms1JfSKkRi6ndHmuf51sqGX3OgmnW0Wg0vQy9o2uglI7d1rVoDKOK/Y1h735VxQyEKEMPlhqjdnycnV14CxQ7utaXme8inqAd3bGYiv39Xexndz0xt1ptFE7PA+PzLzUD3W1duZ9/epAd6UE0m63Ap9Uq2nWcUAha17f6So3LCcIcfJQ6jjtxEWUS/lXIRGIDQNea40J2HBeGUUXh9Hzsip9td3B6eo5Go+mdY5pd5YsiyB9fRbuOs/YlR3fT6Q8xnxUvAhuDqES7CwWppGdHceeDux+6voXSuTHzIzWT0ft85dT2JmQlgvJlBaoaRbu3eXbahiW+AyaT0eE47lL3F1q1a283PbC6dh1nrQWtqkqfY1G+rAxd7FhMRWIzhmQy0Sdk06zBNOuQKPXqVu5AtFptmGZtKiFlMrpnwXG3YkfXkOjV5pbVQM26nqv7rlQyllZucNzeteKT1FW16zjkf/lTtuwg5oFKFAcHe55I/ZOsUc3sjuOiVmsM7SgBfjgfg/sPmzctmGYtsEwYFDOfUAadi2e2Vuu2e+729FmO93lcN5pL+boA/7VepU7CINY2Q7uOi6pZx46u4cqwULOuoaoK0untwA4ynpFHZUo+kfSLkS+AJLV4bym85jUjJRIxT8w167rPHalZ12jetKDrW4gnYpAkCrXnrtylHr5uLMf7dR0X140m4onYSosZWGNBA11b6cbXB9G2O4j29Uh0s2tjBiH4he1vr5TlCBxfs1Kj0cSVYSGqKiiVjKHz2HbHKxk2Yiqive/5UGQZtLeJFuhmv1Gtmf6bz3HdpX6Zi2nW4KzBpoW1LTlGwfs4ZpmEjcPfXlkqGUOlCpVoKHanhIXQCVrw7yYUPrRAwBGCFoQKIWhBqBCCFoQKyhjG70kSCNYExmBRQoSgBeGAEBQpCIrLDkQguBcILEoYKS47DoHgXmDEoozg87LjEAjuAwbnIyW3+LjsQASC+4BS6RM9PMoVAZGlBWvP58PDXJECAHOZyNKC9YaQT0BvYaXdoW+FHy1YVxiDRQjeAT1BHx3lLDD2brlhCQRzQti7w8NcEfAtfYssLVhTiu02fcv/4Qn66Chngbh/LCcmgWA+GNw3R0c5LxH3NSc9fXrwgYG9efiwBILZYWBvnj49+OB/jQQNzOe/vicgLx8iKIFgLgh5++RJbqiiCGwfbbfpHyDkbdAxgWDZMLAPt7cIrCQCMzQnn//6moD8uZiwBILZ6ZYZ/3096vhYQQNAPv/lJQH9E0D2HuMSCGaCMVgg7h+DNfMgEwUNAMfHBU1R3Fdg5HdCoN1LhALBFDAGC4y9a3foW7+bMYqpBM05OSlkGcPvYOw5gGfzBikQTMFn5rKP0wqZM5Og/ZycFLKu6zwnkF6AMA0MGmPIigwumIXesrUFgiJhpMgIPpNbfOw1zc3M/wHFXCrMk6BiUgAAAABJRU5ErkJggg==",Jf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABQCAYAAACwGF+mAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArvSURBVHic7Z09TBvZFsf/947NM1pHMp3dgZ63IBWke4hEyBVhi0gkaJ9eGhBliCDaFGSDFCPlq9ingJItLdPs00aQSCmSUCF2QU4HVEvxIkGHO0Zar3DAM3eL8R3P2ONvjMeT82sQzNhzPP773PN1DUODjMyf9Oo+5QYTGNCBXiZELxgLAQg1+pzEV4kK4FAAKmdM1XXxTtG1zc3n3YeNPBmr5+SRuAjpp6dzYOwGgIFGLkgQNbIHsE2u5ZbrEXdNgrYIeRbkgYmLRQUTy9zXtbQZZ2q1k6sK+uqPp5OM4QVIyER7ORQCi1tPu1YqncQrHby28CXOGJIgMRPtp5cxJK8tfIlXOsnRQ4/ERUg7O3vBgMlWWEYQTbLE/f5FpxDE0UPrZ2ePSMyEi5nTzs5eOB0oEXTepc+12iKCaAYGTDqFH7aQI58AJi/MKoJoEiEwZU0UTUGPxEVIPzvbBdDbBrsIolFU7vf3yXjaDDn03OkcSMxE52H0SPIwIN/GVpRdUHmO6ExML80BQFd81AEkOhnTS+dDDjHSRmMIonmM+SKwfLhx0G57CKJZuKb1cY0rI+02hCDOA92n3OCcG66aIDodJjDAdSEoGSQ8gQ70ckbVDcIjMCF6OaiZQngFxkIc5KEJ7xCqOOBPEJ0GCZrwFCRowlOQoAlPQYLOEwy45xoDfXV9XQphwVOCvjXEMdzPEQ6VCmJmTMFvj/1YmvaVHBsd5Hi/4MeDccXxsdUY7q9+G4f7GV7f92NmTKl4XjjEsDztw+sffA3Z8rXjKUFPxRQ8ua3g1lDpy/o2YoijWCLBAHD9inH+6BWO5WkFo4O135aZMeOaVYXawxAMABND3NG+wmsoHEuromY72kEwYDiRpWkfEndKHUU78IygoxFmLul7B6VCkMeOju3HMlng2RsNKxs6AEN4D24qSNypzUP+lTV+VhPqWkrHxx3jGlMx55VgdJBjNP/hSubtcRtWEb9f8OPumIJBF4VInhG0Ne78fFQq6GjeQzt5vbQqkNzQ8P1POezmPwzRCEO4p/p1kxsaVlOG+O6OKRXj31cfNKSPBYIB4O539lsfDjHTO6/v6FjfdY+gaxHxroMTaQfuWCfOAXmDPx+JEtFKMRvHyz9HWhWYS+QwFTOE6eTpnVjZ0DDYxxCNMDy57cP0q5zjByeTBV5+0DAVU/DyvV2wUzGOcA9D+li4wjsHA0YINtzPa/LA2/vttxnwkKAH+gzv5uSdrct7LXFpckOr69qZLPDwFw2JGR+CAeDJbQWziRwy+XDk1x/st/lSN8PStD3mjvQYNgYdjv37v7m67GmUekUsyWSdw7x24AlBh0OFGHn4MsevRW/Gpe7C74//Uzl5q0QlYcmw5e6YgmAACAYYMlnjTZZitRIMOAtGPvaiqFfEmSyQOREIW17T3oE7vDPgEUFbqSYIJ3GdF2spHeEQw1pKt60EswnnD8L8uIJID8PnI4GXH+pbFZqhUU+cPhZ49lbDk9t22Wz94Q7vDHhE0JlsedFEQgzzNw2vvLWvYy3VWm/yykGY1Zbji1iyGxWxZDWlYy2lYXnaV9Igcku4AXhI0OVuaniw8OatpXRX3fyLQJYCGy2tZbJGTrGW0jEzpthCDcA5CW8nnhB0JWTTpBVeMBphiIZLhbK9r5sJoRtoNMhKHwvMJjSkVYFbQxwTDnV2t5TrJJ4WdDjEzLpwKxKX4X6GqVhpkjmbEK5ZCdZ3jZq2vBfXr/CaZkVWUzpWNjRksrJG7pxMu6VcJ/G0oK1vXDRszEjUw+6BbnYQnchk7Z3H4oRzuJ9jZqx870qeP9DHSkp7xSz8T3MsSdZKWhVY3xVVxW0NMQAj9l6eVhwHq9xUrpN4WtDWuYhwT22dPytHx5U92VrKnmT+9thvOx4M1F5VqXbeeU4DlhN3OAQzxJBMxkrjZombynUSzwp6dJCXvBG1NEwiIWbOUzQbB+8diLLVFwDmilFL9aUZ71wJq7iLKRc3S9xUrpN4VtBW72ylUggBGF0+wEiImi3xpVWBdJl/RGZtx+8duCfmllSKmyVusxnw0HCSFat3Xt/RsZ6fcpsYqjzvPDrIzdnm9d3WlqMm/lW49VMx55HXdlIubpa4rVwncdddPCes3jm5oePlByNbDwZgNlmKsU67GQNCrevchS1hDWDYdXdMaXiDQSuo5n3dVq6TeE7QU5YkZn3HaEHLzB0wpvLmx+2ilgNF8nGzidaKedkyfPT9TzkzDJIbDNwg6o9VxlfdVq6TeErQ4RDDpM3LFm66dcD++hVuxodGWcpnxrQrG3rLltJbQxyJGZ/5wZHXSm5o5ioS7mF4fd9XNX5tNXsHoqwXdmO5TuKppNDq+ZIOwnz+VsO3EWNuWQp/uJ+ZYl5N6S0JNQb6GCZj9qH4Z280W2VhLaVj+w9heOgew75vAs6zIRfFyoaGQYfavRvLdRLPeOjiUKPcjo/ZRM4sgU3GuM0zNyMepwRqoI9hadqH5WmfbQPC9M85R/vSar7VnG/WTAxxJO6UDgNdFHsHwrTFihvLdRJPCHoqpthCjWqjmMVLaXHHrxGsXUhZKYlGmClkGcdP/5yrWFNOq4bgt/IxajTCatpV3ipWP5V+8NwabgAAu/bw1L3W1cDoIMeDm4XacXGnSyL3xU0MFcpRsvIhkfO+9b5h8+OKOQQl2drX8eq9jskYR1o1atr1NmrmxxVksu0NO4IB4PV9v3mf5ArjVjpa0NEIs22ff/hLDtv79pcz0Gd4uOtXuE3IqyljXiEYYGbcKvl8JLCaqm2jqlXMslphXS0+7upY32m8ZhsMNN+xbJbJWCGJXk01F5q1mo4VdLHnsCZZ5YbZM1ng445esqMEMDy93KgqSR8bHbzVT7pjmFAsZplQOj2XbET8P/886ePaX6ucQdneFy1rgVfCeq9nEzkKOVqFjJ2lmKIRhhmHLfZWj1zN2zmJETDEvfqpMHMx3M/NNvnHHR3P39q9lmzUDF/m55bUVYu/W8mDcQXDlzm+e3zWluvXSkeX7ZIbGnYPCrtQ0sfC/IYkwEj+1lJ6XU0AOT88Osht45XhHobMSeG87X0dKxsM/4ygRMyAkdw9e6sh+EHDQB9HNGKIPJL/BqVv8iK/1M3Kjmb+eVIQ71/Z1g0o1cLqJx1/umjTQjk62kM7YcxxoKEkzAnreOWzN6UJpxtiXKKA5wRNfN14og5NEBISNOEpSNCEpyBBE56CAyizSYggOg6VQwgSNOEVDrlg7LDdVhDEeSAAlXPgsN2GEMR5wBlTuWDYa7chBHEe6Lp4x3lOe9duQwjiPFB0bZNvPu8+BMhLEx3P3ubz7kOjDi0EeWmiw2GbQL6xwru6lkD1aKJzUbmWWwbygt6MMxVCLLfXJoJoECaW86FzofVNXproUA65r2tJ/mIKejPOVCFwrz02EURjCIHFzTgzHbFtOGnradcKmFi8eLMIogGYWNx62rVi+5PTeVcfniYZMHkRNhFEgyz9/qSrJKJwHB9V/P57AJacjhFEuxHACvf7HSOJit/bem3hSxyCPWqNWQTRAEws/v74H/Gyh6s9/uqPp5OM4RGA3nM0iyDqRRUC94pj5mJq+mbtkbgI6bnTOQg2CyB0HtYRRI2oEGKZd3UtWasZ5ajrq+JH5k96dcU3C4gRAAONWkgQNbAHId7VKmRJw//7YGT+pFfjygjn7IYuRIgZnrsX5MGJ+lAhhCoYO+TAoWDY4zntnez81cvfwN65863CgcQAAAAASUVORK5CYII=",Fst={class:"container"},Ust={class:"header"},$st={class:"username"},zst={class:"main-content"},jst={class:"search-container"},Hst={class:"search-box"},Wst=["disabled"],Vst={class:"icon-container"},qst=["src"],Gst={key:0,class:"recording-indicator"},Kst=["disabled"],Qst=["src"],Yst={class:"recommend-list"},Zst=["onClick"],Xst={class:"cards-container"},Jst={class:"card-column first-column"},elt={class:"common-questions-card"},tlt={class:"questions-content"},nlt={class:"questions-list"},rlt=["onClick","title"],olt={__name:"Index",setup(e){const t=Hl(),{isListening:n,transcript:r,error:o,startListening:i,stopListening:a}=T0(),s=Q(""),l=Q(!1),u=Q(!1),d=Q([]),c=Q(null),f=Q(!1),p=Q([]),v=Q(!1),h=Q(null),g=Q(!1),y=async()=>{try{const L=await Bn.getRecommendQuestion({limit:8});d.value=L.data,console.log("推荐问题数据结构:",d.value)}catch(L){console.error("获取推荐问题失败:",L)}},m=()=>{y()},b=()=>{p.value=[],g.value=!1,h.value&&(clearTimeout(h.value),h.value=null)},w=()=>{if(!s.value.trim()){b();return}h.value&&clearTimeout(h.value),h.value=setTimeout(()=>{A(s.value)},100)},A=async L=>{if(!L||L.trim().length===0){p.value=[],g.value=!1;return}if(u.value){console.log("正在发送消息,跳过推荐问题获取"),p.value=[],g.value=!1;return}try{console.log("开始获取用户推荐问题,用户输入:",L),v.value=!0;const W=await Bn.getUserRecommendQuestion({user_message:L.trim()});if(console.log("用户推荐问题响应:",W),u.value){console.log("请求完成时状态已变化,不显示推荐问题"),p.value=[],g.value=!1;return}W&&W.data&&W.data.questions&&W.data.questions.length>0?(p.value=W.data.questions,g.value=!0,console.log("用户推荐问题数据已设置:",p.value)):(p.value=[],g.value=!1)}catch(W){console.error("获取用户推荐问题失败:",W),p.value=[],g.value=!1}finally{v.value=!1}},S=L=>{console.log("选择用户推荐问题:",L),s.value=L,b()},k=()=>{console.log("点击语音按钮"),n.value?D():M()},M=()=>{console.log("开始语音输入"),i()||Ct.error("语音识别启动失败,请检查麦克风权限")},D=()=>{console.log("停止语音输入"),a(),r.value.trim()&&(s.value=r.value)},P=async()=>{if(!s.value.trim()){Ct.warning("请输入搜索内容");return}if(!u.value){u.value=!0,b();try{console.log("搜索内容:",s.value),t.push({path:"/chat",query:{autoMessage:s.value}})}finally{u.value=!1}}},O=()=>{l.value=!0},_=()=>{l.value=!1},B=async L=>{try{console.log("收到反馈数据:",L),console.log("feedback_img字段值:",L.feedback_img);let W=L.feedback_img||"";console.log("处理后的feedbackImg:",W);const ie={feedback_type:N(L.type),feedback_content:L.content,feedback_user_phone:L.contact||"",feedback_img:W};console.log(ie,"feedbackPayload");const ee=await Bn.submitFeedback(ie);console.log(ee,"response"),Ct.success("反馈提交成功!感谢您的宝贵意见"),_()}catch(W){console.error("提交反馈失败:",W),Ct.error("提交反馈失败,请重试")}},N=L=>({function:1,interface:2,experience:3,other:4})[L]||1,q=L=>{console.log("点击问题:",L),t.push({path:"/chat",query:{autoMessage:L}})},U=()=>{t.push("/hazard-detection")},j=()=>{t.push("/safety-hazard")},H=()=>{t.push("/exam-workshop")},G=()=>{t.push("/ai-writing")},Z=()=>{t.push("/policy-document")};St(o,L=>{L&&(console.error("语音识别错误:",L),Ct.error(L))}),St(r,L=>{L&&!n.value&&(s.value=L)});const $=L=>{!L.target.closest(".user-recommend-questions")&&!L.target.closest(".search-box")&&b()};return jn(()=>{y();const L=Fve();c.value={username:L||"蜀道用户"},console.log("用户信息:",c.value),document.addEventListener("click",$)}),hl(()=>{document.removeEventListener("click",$),h.value&&clearTimeout(h.value)}),(L,W)=>(F(),K("div",Fst,[x("div",Ust,[W[5]||(W[5]=x("div",{class:"logo"},[x("img",{src:Wj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"user-info",onMouseenter:W[0]||(W[0]=ie=>f.value=!0),onMouseleave:W[1]||(W[1]=ie=>f.value=!1)},[W[4]||(W[4]=x("div",{class:"user-avatar"},[x("div",{class:"avatar-icon"})],-1)),x("span",$st,We(c.value?.username||"用户"),1)],32)]),x("div",zst,[W[14]||(W[14]=x("h1",{class:"main-title"},"蜀道安全管理AI智能助手",-1)),W[15]||(W[15]=x("p",{class:"sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",jst,[x("div",Hst,[ln(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"search-input","onUpdate:modelValue":W[2]||(W[2]=ie=>s.value=ie),onKeyup:Lr(P,["enter"]),onInput:w},null,544),[[jr,s.value]]),x("button",{class:re(["voice-btn",{recording:C(n)}]),onClick:k,disabled:u.value},[x("div",Vst,[x("img",{src:C(Zf),alt:"语音",class:"action-icon"},null,8,qst),C(n)?(F(),K("div",Gst)):xe("",!0)])],10,Wst),W[6]||(W[6]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:P,disabled:u.value||!s.value.trim()},[x("img",{src:s.value.trim()&&!u.value?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,Qst)],8,Kst)]),g.value&&p.value.length>0?(F(),K("div",{key:0,class:"user-recommend-questions",onClick:W[3]||(W[3]=Qt(()=>{},["stop"]))},[x("div",Yst,[(F(!0),K(Pt,null,an(p.value,(ie,ee)=>(F(),K("div",{key:ee,class:"recommend-item",onClick:te=>S(ie)},We(ie),9,Zst))),128))])])):xe("",!0)]),x("div",Xst,[x("div",Jst,[x("div",elt,[x("div",{class:"card-header"},[x("div",{class:"refresh-button",onClick:m},W[7]||(W[7]=[x("span",{class:"refresh-text"},"换一换",-1)]))]),x("div",tlt,[x("div",nlt,[(F(!0),K(Pt,null,an(d.value,(ie,ee)=>(F(),K("div",{class:"question-item",onClick:te=>q(ie.question),key:ee,title:ie.question},We(ee+1)+". "+We(ie.question),9,rlt))),128))])])])]),x("div",{class:"card-column"},[x("div",{class:"hazard-card",onClick:U},W[8]||(W[8]=[x("div",{class:"card-title"},"隐患提示",-1),x("div",{class:"card-description"},"图片智能识别,风险隐患提示",-1)])),x("div",{class:"training-card",onClick:j},W[9]||(W[9]=[x("div",{class:"card-title"},"安全培训",-1),x("div",{class:"card-description"},"智能编排大纲,生成精美演示文稿",-1)]))]),x("div",{class:"card-column"},[x("div",{class:"service-card exam-workshop-card",onClick:H},W[10]||(W[10]=[ki('<div class="service-header" data-v-7ab8878d><div class="service-icon" data-v-7ab8878d><img src="'+sve+'" alt="考试工坊" class="icon-img" data-v-7ab8878d></div><div class="service-title" data-v-7ab8878d>考试工坊</div></div><div class="service-description" data-v-7ab8878d>让组卷更省心,让出题更精准</div><div class="service-tag" style="color:#2563EB;" data-v-7ab8878d>生成考题 ›</div>',3)])),x("div",{class:"service-card policy-document-card",onClick:Z},W[11]||(W[11]=[ki('<div class="service-header" data-v-7ab8878d><div class="service-icon" data-v-7ab8878d><img src="'+lve+'" alt="政策文件" class="icon-img" data-v-7ab8878d></div><div class="service-title" data-v-7ab8878d>政策文件</div></div><div class="service-description" data-v-7ab8878d>汇集国家、行业及集团政策文件</div><div class="service-tag" style="color:#EA580C;" data-v-7ab8878d>了解更多 ›</div>',3)]))]),x("div",{class:"card-column"},[x("div",{class:"service-card ai-writing-card",onClick:G},W[12]||(W[12]=[ki('<div class="service-header" data-v-7ab8878d><div class="service-icon" data-v-7ab8878d><img src="'+uve+'" alt="AI写作" class="icon-img" data-v-7ab8878d></div><div class="service-title" data-v-7ab8878d>AI写作</div></div><div class="service-description" data-v-7ab8878d>一键创作公文,让文案更专业</div><div class="service-tag" style="color:#16A34A;" data-v-7ab8878d>开始创作 ›</div>',3)])),x("div",{class:"service-card feedback-card",onClick:O},W[13]||(W[13]=[ki('<div class="service-header" data-v-7ab8878d><div class="service-icon" data-v-7ab8878d><img src="'+cve+'" alt="意见反馈" class="icon-img" data-v-7ab8878d></div><div class="service-title" data-v-7ab8878d>意见反馈</div></div><div class="service-description" data-v-7ab8878d>助力产品升级,期待您的反馈</div><div class="service-tag" style="color:#9333EA;" data-v-7ab8878d>参与反馈 ›</div>',3)]))])])]),W[16]||(W[16]=x("div",{class:"footer"},[x("div",{class:"footer-info"},[x("span",null,"工信部备案号: 蜀ICP备20251411234号-1"),x("span",null,"川公网安备: 51010502011234号"),x("span",null,"推荐电脑分辨率:1920*1080,1920*1200,3840*2160"),x("span",null,"推荐浏览器:Google,Edge,火狐浏览器")])],-1)),Ve(Lst,{visible:l.value,onClose:_,onSubmit:B},null,8,["visible"])]))}},ilt=Qo(olt,[["__scopeId","data-v-7ab8878d"]]),wc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAD5SURBVFiF7ZdLDoIwFEVvifuQpbATdQwDZAXPDRAH4tS6E9mJbMTngE8a09IWNJjQMyK0eRx6+wFg7QiXTllOCQux9SrM3FzO9LD127gU4wg7gPc+AiwgAVgFIp+iv2CIIMspad9USwIg9qz9hGEExAv3Pp4hgjZjv2G2EAPQ1mMhBrH/iUAlLeiGzr4qyWmlmEgL4u5SViUdPtsXH4Eg4LQRqegynTNnFh+BIBAEgkAQ8N4JAUgAYKDubzBQTz0yvQV0R+q1JNmL+bJ4BIsLWCNIjyfTh6ojPNpqnwOC5TyBcbQRMNB8+0HqqlExrp4pv2MmXH/T1skbfkFGJuI/zo8AAAAASUVORK5CYII=",J2e="/assets/2-DNbvF9Ja.jpg",alt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABGCAYAAACUsCfoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAOZSURBVHic7ZrtcdswDIbBXv9H3UAb1CN4g3iDqBMknaDuBEkn8HWCtBPYG7idQOoEciZ4+0NM69ACBEmA3fT43OVylih8kCBEggrkDICCiBZEdE1EBRGV8a+ITQ5E1Bz9/x5C2Hnb5QaAFYBHAC3G08Znq0v7oQZABaCe4CxH/U93AIAlgK2hw30dUF7azxcAuHN0+JgWwJ2FzWGmwwURfSIirTENEe2oS2RP8doV/U14C6WchxDCR2Vbe9AloCG2AG6hCFMAJfQ5YnMGF3uNXA8YtgewnCFf0wFrO490Rg05fX9GXSZzXmNIKRjRAlgxzxUAbtBNj30czT2AwXkdR59bD7Q4R7YHsBEcr3raF3HUOMNrpd5K0Pto7miifCEoPwk5dKu3oZXbfoR+KeyXps4mirfaHh8wskYX8vcYGaaCDVszRxOF0twuk7arnjZt7IyCUaG1YynYMUs2p5CbY5ukXYnT19A+7ZyZtnDrh1srHcfKtoyyVdJuk9yvLZ2OOrhRtw939CepVtGudLCl0NpjoWiwh3E6t30SDokRqJrnb5R6Sub6IfmdLka+KeVPoWGumzrOCUuVXyW/fyrlTyHt9GdKzcNax7U8Jb8bY/lmvFW2a5jraSQ8xP/viehrCIF7zgIuCrlIGI+Q3NTLTWvmJrcxirg1t/1qadgWbiDUr7Mxc/wHc/16hAwrlsz1nbkmdHvpPtze1YItXJhXHsq48AI8t4SndkiblNJLKdfTZ0ty4OtwfsVHyFtTszqboF/a45feyjeC8spRr3Ro4V9qjqMulZOWDjqlklftPtpHhkgJxrTqqejo3qquG5Dn2x5GCxvIhwprCx1TjNoIRs1OduiKkRy+JeUBw4o4uhzLGbKl6VTjAkvl1EBpDqoOCxi5teB0aejCdCC/akafbUE+NakcXJgO+JJvOyYs0V+efuYyR8MSkEN+PUKONNqlnwczAP+KU4+6MNprZ/OnA77eDSgWGsJoT06SHKbFxhDCgYi+MLc1xzs3zHXPMrUNmFEWYp4DHOa2tsqqJoRwQPcKe5feA1DEqDgh5oDPPbca52ptJvM/M+vLRg50OzOrffIuhPDBSNYfzJNb5Pm7dAus5LzA+tDQg8ZD6Gtw3IXsuDG/DGXZHft6g+HKqJbaY7nqCvo/8htLdWk/JgG5SjqE+5GUG+h2avUEp2tcuoo6F3TzXSpBp5h+/pnJZDKZTCaTyWReF78BvdVdZXUzhOEAAAAASUVORK5CYII=",pF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALJSURBVGiB7Zk9ctswEIUfABbqotQpQt1AbjTDTi7T2TewT5DoBEqK1I5PYN/AqdLaHU020A2sI7j0jLyzKQxpIoo/ALGyJjP6WgK7+7hP5IICjhw58l+j9hE0z/PUGDNn5ikAKKWWAGaTyWQhnUtcgCveAhjWXD6RFqElgwGAMeYO9cUDwF2e56lkPlEBRVF8BzBuWZIaY75K5hSzkLPOk89aIjrNsuxBIq9YB4wxN/tY24WIgMfHx28ApgFbUme3aKIt1PHUaYWIRlmWLWPyR3fA2SG4eLf3PjZ/lIAe1qkSbaXeFoqxTpUYK/XuQIx1amL1tlIvAUVRnCHOOlVSZ8dggi1krR2uVqsnNN/9WwDXRPRcvZAkyRUznzXseyaik1ArJSGLAWC1Ws3Rbp1F08BWFMVvpVSTgGGSJFcAzkPqCbJQnudTAK2tZuaPITEre8/KsrwI2eMtwFo79BkBtNYfWi6PPFLNQyZWbwHOOp2BmTn2yZQaY+a+i70E+FhnjVKqUYBS6rNfWbjwtVKnAF/rrBHowBovK3UK8LXOP7R1IEScl5VaBZRlOYandda0daBHdzqt1NWB4INH211m5jQ0HoC5tbYxZqMAj/NtE1K/gTWps3EttaOEwKR5SUQP1UJihramibV2lBCYNG+MMRHbd3Hid16EOxYSOKSsuWXmc2a+UEr9ArAz3AVSe/jZspDQIeUZwGl1oHOx7xH2SN6haqWtDkgcUpj5um4adUl/xMQGdg8/GwGC1mn79inxXXTLShp4Gxe01t4DVBt7eA/U5diMGRoAXl9fxc63aHjxWGuHSimRmwRsPiJD5Xk+lfg+U2FBRLPBYLAAgJeXl7H7faXCeS5VWZZ/AHwRDvxeLLVS6tOhq4gg1cxcHrqKCB40Ef1E/FvyUMx0lmVLIjrB26t/eeiKunA13hLRaB9/Gh45cuSd+QuneSb9xW/YywAAAABJRU5ErkJggg==",hF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPgSURBVGiBzVrLdds4FL0gTB0tlQqGrmDMDXi4ilzBKBVIrsBJBbYqsF1B6ArsVBDOCkf0gi6BU8FobQp8WRhUYgug+JV8Vzp4JHEv3nv4PIhhAEgppycnJ5dFUZwxxiYAngHcCyGivvtifX0oTdPJy8vLV8bYJYCJ5bEMwKNS6i4Mw6yPfjsLkFJOOedXAKYNX42UUvdhGMZd+m8lIE3TSZ7ncwAzNCf+HhmApVIqbuOVRgJ0bP9DRAvYw6Qt1ngNr2UTIbUEdAiTtohRM+mtAmomZR1cAJijnfgMe5J+R0Dfoy2EYPq7nv7uDO0GxJj0WwE6MR/Qc5iUAt71MwNwBcBr8cnIdd1vvu+vAcApW/M8v8EBYtz3/bUQIhJCnCqlzgFEDT+x0AMNQHsgSZIzAGl/NH/jvQdMkFJ6juMsGGNz1PSKUuo8DMO49MDnDhw7IwzDLAiCayHEKV6TPt73Duf8b0CHEBF9GpRhA+jwOldKneI1vNam50rODgAwxv4/GMOaCMMwE0JcENGdyV5yLj1gVPkRwBj7y9RecnZMxg8Gr8roAEBRFP8dhEqPKDmXHsiOR6UaROSZ2jnnv0NoPB5/5BzwTO1CiGdAC/B9f01E2cFY1YSUcmoxbQd8m8SO4zwPTagpysXKgC3XP2ehbFA2LcAYm5raiejf8vdWwGaz+XEATo1ARGcW064HxuPxMyzL9jGgN5ieyTYajeLy91aA3l9/pDy4tLTH5VkA2F2JH4fj0xhTS/sbjm8EuK57PxSbJtDTp2eyKaXe5OobAdo18UC8aoNzPreYdmpHps3cUb0gpfQALCzmHW47AlzXfcQRZyPO+XeLKTPViXYE6G2F8RAxNHTsT002IjJGhvE8MBqNbnEEL1SM/rooishkMAo4hhdWq9U1LDMPEVkrc9YTmfaC8aW+IaWcMsauLOYsCIJr27tWAdoL37qS2wddcrSFDgAsq96vPBMHQfCIAdcFTf4n7OfeaF+Feu+h3nXdLxggodM0nXDOH2AnnymlKkcfqCHA9/21UupLQ36V0AXenwBs22UopS7qXHTUKquEYRgT0d7RqAMppZfneYoK8kS0rHt3VrsupGeCqO7zJqxWqxnnPEVFrYeIllWzzns0vuR7enp6IKJZ3eeFEEyHzA3se5wSkRDiogmfxgKaXoQQ0bLmNVVj8kCHe+IkSb5j/4jWxa0QotWa07o2qivHnRObiJZtyQM93NQnSbJAu/uuTE+VcZf+O1enhRBRi7uuW9d1/a7kgR7/7AG8TpOMsRvYvRHrm/i4rz57FVBCh9UcerFijMWbzeauT+IlfgFRmqNOTONauAAAAABJRU5ErkJggg==",gF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALQSURBVGiB1ZrLcZtQFIa/A15oqVQQpYLIG8ns7AoyqcCTCmJXYKmDuIKMO0gqkHdYbIQ7IBVES894LicLwCMRQLzB/4wWwL2X7+ec++AKYURyXffStu07YA4EgG+MWTuOE+TVkZ7YTmq73a5E5C7jUgB8XSwWfla9URgogE+0B66yTAxuoAR8okwTgxqoAJ/oPxODGagBn+jIhNUuViVd16w3BTae581hQAOqet+g+hTYuK47e2994Egi8qs3A09PTzeWZV2r6u/lcrlKzjcxoapBLwbSkKq6bsnEvvM+kAUnInfb7XaVHC+Xy5Wqrms073cagVNPtmkkjDGfOotAGZgmkVDVteM43fSBqk+yaiQOy7cegZyb74Eb4FtWnSqRSJttNQIF8G9Tv+d5O6L1/km4U6MXtGigJPwc2BW1k2PiSxiGDxcXFz/S5VsxUAF+Q7QMKFTWk85TYwNtwycKw/A264mn1agTdwUPICLfy5SrbaBL+FgPZQrVSqGu4TvtA2OCh4oGxgYPFQyMER5KGhgrPJQwMGZ4OGFg7PBQYOA9wEPORFawHr8dEzxkGCh6mVDVGYwHHlIpVPJNyidnPX9KbcPDgYGmm0yn1AU8xAZ2u9309fX1b9uNJ+oKHuI+8PLycpgSgTHmKvkRpUxtdQkPcAZg2/bn5ISI+I7jPCbHnuft6zbeNTzEERCR2cFNH9touA94iA2o6lsKGWOemzbaFzzEKcTBsDiZTNI5nzY0pWAY7RMeQFJbHfvFYvGhqEL8X+4m61rf8ACWMeZoNnVdd1anoSHgAazDEQiY2ra9qWpiKHiAMxG5VNXDc7PYxJXjOIHrujPLsuYi8pEo94/yf0h4iPpA3l5lMv7nLtiGhodoFJrlXCtcaY4BHiIDAcWry31cxif6euR5Mpn45+fntWfoNnVGtGf/E5iraiAij4Cvqn/CMPSLPnUZg/4B6JIy/nMEqqIAAAAASUVORK5CYII=",vF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANUSURBVGiB7ZrLdeIwGEY/WWO2kxKcDuJFRLwjJaQDU0GSCoAKJqkAOkimgrBTrCyUDnAJrHGEZoGYIeYlyzIM53BXeRwjf1hX+iUZOHPmzEkgpbw4RDukyQ+XUl7MZrMHQkgPwFRr/dxqtZ7iOJ421WZjgYQQKYAegKj0rxzAgDE2aqJd74GEEFcAXrAepMxYKTVIkmTss31vgTjnEaW0ByCteOnIBMt93EftQCVPXPHmV61AOzxxJUdNv5wCVfDEFWe/KgWq4YkThJDXr6+vxyp+WQXy5IkrlfzaG6gBT1yZAnjc59fWQAfwxJWdfq0FOrQnrmzz61ugLMv6R/LElTW/CLCQvigKif+ve9mSK6VukyTJAwCYzWYdnG4YAIiCILgCgAAA5vP5Jxaz9CnzEzCBkiTJwzCMtdYDLIbHkyVY/hDH8bTdbveVUjEh5PWYN2XJCBu+/KD8hyRJ8uvr6zul1C2AcfP3VZkcQMwY62qt1wL92HaVmbjGplL4BeAgewI7yGFRia89oTKMsVEYhpfH9EtrPQjDMLZZVuwNBBzVr5FS6rLdbvdtF35bu9wmTJlxxznvmPKoU/0ercgB3DHGPqteWCnQkgb9ylFzxWoVyBSsE5Q2NBhjIynlq1kr3aNGMK31oLzmMe0OsegJsc0Ts3II/8qilFI6ybKszzmPAC9+rXkipbzIsqxPKZUw3VopZfVl2Qb6BiGkRyl9M10OgNP8lcPMJ6tLgPf394eiKCam6q/8xJ0CGSIAQyHExCwGASz8YozdAuhi8zCfA+gyxi5XuxDnvCOEeAuCoJaTdQItiQBIIcRw2Q2BzfPXpvmEcx59fHy8UErf4GHUdBrltpBSStMsy/7KbZzoSynXNjhWNl7utdbeqhAfT+gbhJBeURRy1a9yGCFEWseTXXgPZIiwwa+lJwCGaKg2tOpylFLXGi7Cwq+x+b3j+DkbIYTsXz5swoxGTzXa7qBemNGWbatnLAacz1ar9RuouBV8hE3HXCnVrbLH7bpZn6LZYNP5fD64ubmp3Cucj1M451EQBKnnfbza50S1D7w87rR6OcnzfSS5rIyr4PWstYlD4xR2flUW3oZjHOs7C29Doy9elAaOg7x4cTAO9WrMmTNn6vEHE6Hhcf/sG9cAAAAASUVORK5CYII=",slt={class:"nav-sidebar"},llt={class:"nav-menu"},ult={__name:"Sidebar",setup(e){const t=Hl(),n=N_(),r=J(()=>(console.log("当前路由名称:",n.name,"当前路径:",n.path),n.name)),o=a=>{switch(console.log("切换导航:",a),a){case"ai-chat":t.push("/chat");break;case"safety-hazard":t.push("/safety-hazard");break;case"hazard-detection":t.push("/hazard-detection");break;case"ai-writing":t.push("/ai-writing");break;case"exam-workshop":t.push("/exam-workshop");break}},i=()=>{t.push("/")};return(a,s)=>(F(),K("div",slt,[x("div",{class:"logo-section",onClick:i},s[5]||(s[5]=[x("img",{src:J2e,alt:"logo",class:"logo-image"},null,-1)])),x("div",llt,[x("div",{class:re(["nav-item",{active:r.value==="Chat"}]),onClick:s[0]||(s[0]=l=>o("ai-chat"))},s[6]||(s[6]=[x("img",{src:alt,alt:"AI问答",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI问答",-1)]),2),x("div",{class:re(["nav-item",{active:r.value==="HazardDetection"}]),onClick:s[1]||(s[1]=l=>o("hazard-detection"))},s[7]||(s[7]=[x("img",{src:pF,alt:"隐患识别",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"隐患提示",-1)]),2),x("div",{class:re(["nav-item",{active:r.value==="SafetyHazard"}]),onClick:s[2]||(s[2]=l=>o("safety-hazard"))},s[8]||(s[8]=[x("img",{src:hF,alt:"安全隐患",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"安全培训",-1)]),2),x("div",{class:re(["nav-item",{active:r.value==="AIWriting"}]),onClick:s[3]||(s[3]=l=>o("ai-writing"))},s[9]||(s[9]=[x("img",{src:gF,alt:"AI写作",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI写作",-1)]),2),x("div",{class:re(["nav-item",{active:r.value==="ExamWorkshop"}]),onClick:s[4]||(s[4]=l=>o("exam-workshop"))},s[10]||(s[10]=[x("img",{src:vF,alt:"考试工坊",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"考试工坊",-1)]),2)])]))}},zC=Qo(ult,[["__scopeId","data-v-9f53bf3f"]]);var xu={},VW="1.13.7",Kee=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},vD=Array.prototype,qW=Object.prototype,Qee=typeof Symbol<"u"?Symbol.prototype:null,clt=vD.push,jC=vD.slice,sA=qW.toString,dlt=qW.hasOwnProperty,ewe=typeof ArrayBuffer<"u",flt=typeof DataView<"u",plt=Array.isArray,Yee=Object.keys,Zee=Object.create,Xee=ewe&&ArrayBuffer.isView,hlt=isNaN,glt=isFinite,twe=!{toString:null}.propertyIsEnumerable("toString"),Jee=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],vlt=Math.pow(2,53)-1;function cl(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function _0(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function nwe(e){return e===null}function GW(e){return e===void 0}function KW(e){return e===!0||e===!1||sA.call(e)==="[object Boolean]"}function rwe(e){return!!(e&&e.nodeType===1)}function Gs(e){var t="[object "+e+"]";return function(n){return sA.call(n)===t}}const mD=Gs("String"),QW=Gs("Number"),owe=Gs("Date"),iwe=Gs("RegExp"),awe=Gs("Error"),YW=Gs("Symbol"),ZW=Gs("ArrayBuffer");var swe=Gs("Function"),mlt=Kee.document&&Kee.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof mlt!="function"&&(swe=function(e){return typeof e=="function"||!1});const js=swe,lwe=Gs("Object");var uwe=flt&&(!/\[native code\]/.test(String(DataView))||lwe(new DataView(new ArrayBuffer(8)))),XW=typeof Map<"u"&&lwe(new Map),ylt=Gs("DataView");function blt(e){return e!=null&&js(e.getInt8)&&ZW(e.buffer)}const lA=uwe?blt:ylt,D0=plt||Gs("Array");function I0(e,t){return e!=null&&dlt.call(e,t)}var mF=Gs("Arguments");(function(){mF(arguments)||(mF=function(e){return I0(e,"callee")})})();const yD=mF;function cwe(e){return!YW(e)&&glt(e)&&!isNaN(parseFloat(e))}function JW(e){return QW(e)&&hlt(e)}function eV(e){return function(){return e}}function dwe(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=vlt}}function fwe(e){return function(t){return t?.[e]}}const RE=fwe("byteLength"),wlt=dwe(RE);var Alt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Clt(e){return Xee?Xee(e)&&!lA(e):wlt(e)&&Alt.test(sA.call(e))}const tV=ewe?Clt:eV(!1),Ul=fwe("length");function xlt(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(o){return t[o]===!0},push:function(o){return t[o]=!0,e.push(o)}}}function pwe(e,t){t=xlt(t);var n=Jee.length,r=e.constructor,o=js(r)&&r.prototype||qW,i="constructor";for(I0(e,i)&&!t.contains(i)&&t.push(i);n--;)i=Jee[n],i in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function ts(e){if(!_0(e))return[];if(Yee)return Yee(e);var t=[];for(var n in e)I0(e,n)&&t.push(n);return twe&&pwe(e,t),t}function hwe(e){if(e==null)return!0;var t=Ul(e);return typeof t=="number"&&(D0(e)||mD(e)||yD(e))?t===0:Ul(ts(e))===0}function nV(e,t){var n=ts(t),r=n.length;if(e==null)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function di(e){if(e instanceof di)return e;if(!(this instanceof di))return new di(e);this._wrapped=e}di.VERSION=VW;di.prototype.value=function(){return this._wrapped};di.prototype.valueOf=di.prototype.toJSON=di.prototype.value;di.prototype.toString=function(){return String(this._wrapped)};function ete(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,RE(e))}var tte="[object DataView]";function yF(e,t,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;return o!=="function"&&o!=="object"&&typeof t!="object"?!1:gwe(e,t,n,r)}function gwe(e,t,n,r){e instanceof di&&(e=e._wrapped),t instanceof di&&(t=t._wrapped);var o=sA.call(e);if(o!==sA.call(t))return!1;if(uwe&&o=="[object Object]"&&lA(e)){if(!lA(t))return!1;o=tte}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return Qee.valueOf.call(e)===Qee.valueOf.call(t);case"[object ArrayBuffer]":case tte:return gwe(ete(e),ete(t),n,r)}var i=o==="[object Array]";if(!i&&tV(e)){var a=RE(e);if(a!==RE(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,l=t.constructor;if(s!==l&&!(js(s)&&s instanceof s&&js(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!yF(e[u],t[u],n,r))return!1}else{var d=ts(e),c;if(u=d.length,ts(t).length!==u)return!1;for(;u--;)if(c=d[u],!(I0(t,c)&&yF(e[c],t[c],n,r)))return!1}return n.pop(),r.pop(),!0}function vwe(e,t){return yF(e,t)}function zb(e){if(!_0(e))return[];var t=[];for(var n in e)t.push(n);return twe&&pwe(e,t),t}function rV(e){var t=Ul(e);return function(n){if(n==null)return!1;var r=zb(n);if(Ul(r))return!1;for(var o=0;o<t;o++)if(!js(n[e[o]]))return!1;return e!==bwe||!js(n[oV])}}var oV="forEach",mwe="has",iV=["clear","delete"],ywe=["get",mwe,"set"],Slt=iV.concat(oV,ywe),bwe=iV.concat(ywe),Elt=["add"].concat(iV,oV,mwe);const wwe=XW?rV(Slt):Gs("Map"),Awe=XW?rV(bwe):Gs("WeakMap"),Cwe=XW?rV(Elt):Gs("Set"),xwe=Gs("WeakSet");function om(e){for(var t=ts(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Swe(e){for(var t=ts(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function aV(e){for(var t={},n=ts(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function uA(e){var t=[];for(var n in e)js(e[n])&&t.push(n);return t.sort()}function sV(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,l=0;l<s;l++){var u=a[l];(!t||n[u]===void 0)&&(n[u]=i[u])}return n}}const lV=sV(zb),zy=sV(ts),uV=sV(zb,!0);function klt(){return function(){}}function Ewe(e){if(!_0(e))return{};if(Zee)return Zee(e);var t=klt();t.prototype=e;var n=new t;return t.prototype=null,n}function kwe(e,t){var n=Ewe(e);return t&&zy(n,t),n}function Twe(e){return _0(e)?D0(e)?e.slice():lV({},e):e}function _we(e,t){return t(e),e}function cV(e){return D0(e)?e:[e]}di.toPath=cV;function HC(e){return di.toPath(e)}function dV(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function fV(e,t,n){var r=dV(e,HC(t));return GW(r)?n:r}function Dwe(e,t){t=HC(t);for(var n=t.length,r=0;r<n;r++){var o=t[r];if(!I0(e,o))return!1;e=e[o]}return!!n}function bD(e){return e}function Nv(e){return e=zy({},e),function(t){return nV(t,e)}}function wD(e){return e=HC(e),function(t){return dV(t,e)}}function WC(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(r){return e.call(t,r)};case 3:return function(r,o,i){return e.call(t,r,o,i)};case 4:return function(r,o,i,a){return e.call(t,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function Iwe(e,t,n){return e==null?bD:js(e)?WC(e,t,n):_0(e)&&!D0(e)?Nv(e):wD(e)}function AD(e,t){return Iwe(e,t,1/0)}di.iteratee=AD;function Wl(e,t,n){return di.iteratee!==AD?di.iteratee(e,t):Iwe(e,t,n)}function Owe(e,t,n){t=Wl(t,n);for(var r=ts(e),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=t(e[s],s,e)}return i}function pV(){}function Mwe(e){return e==null?pV:function(t){return fV(e,t)}}function Pwe(e,t,n){var r=Array(Math.max(0,e));t=WC(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function BE(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}const jy=Date.now||function(){return new Date().getTime()};function Nwe(e){var t=function(i){return e[i]},n="(?:"+ts(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(o,t):i}}const Rwe={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Bwe=Nwe(Rwe),Tlt=aV(Rwe),Lwe=Nwe(Tlt),Fwe=di.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var OI=/(.)^/,_lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Dlt=/\\|'|\r|\n|\u2028|\u2029/g;function Ilt(e){return"\\"+_lt[e]}var Olt=/^\s*(\w|\$)+\s*$/;function Uwe(e,t,n){!t&&n&&(t=n),t=uV({},t,di.templateSettings);var r=RegExp([(t.escape||OI).source,(t.interpolate||OI).source,(t.evaluate||OI).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(u,d,c,f,p){return i+=e.slice(o,p).replace(Dlt,Ilt),o=p+u.length,d?i+=`'+
- ((__t=(`+d+`))==null?'':_.escape(__t))+
- '`:c?i+=`'+
- ((__t=(`+c+`))==null?'':__t)+
- '`:f&&(i+=`';
- `+f+`
- __p+='`),u}),i+=`';
- `;var a=t.variable;if(a){if(!Olt.test(a))throw new Error("variable is not a bare identifier: "+a)}else i=`with(obj||{}){
- `+i+`}
- `,a="obj";i=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
- `+i+`return __p;
- `;var s;try{s=new Function(a,"_",i)}catch(u){throw u.source=i,u}var l=function(u){return s.call(this,u,di)};return l.source="function("+a+`){
- `+i+"}",l}function $we(e,t,n){t=HC(t);var r=t.length;if(!r)return js(n)?n.call(e):n;for(var o=0;o<r;o++){var i=e?.[t[o]];i===void 0&&(i=n,o=r),e=js(i)?i.call(e):i}return e}var Mlt=0;function zwe(e){var t=++Mlt+"";return e?e+t:t}function jwe(e){var t=di(e);return t._chain=!0,t}function Hwe(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Ewe(e.prototype),a=e.apply(i,o);return _0(a)?a:i}var im=cl(function(e,t){var n=im.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),s=0;s<i;s++)a[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)a.push(arguments[o++]);return Hwe(e,r,this,this,a)};return r});im.placeholder=di;const hV=cl(function(e,t,n){if(!js(e))throw new TypeError("Bind must be called on a function");var r=cl(function(o){return Hwe(e,r,t,this,n.concat(o))});return r}),yu=dwe(Ul);function am(e,t,n,r){if(r=r||[],!t&&t!==0)t=1/0;else if(t<=0)return r.concat(e);for(var o=r.length,i=0,a=Ul(e);i<a;i++){var s=e[i];if(yu(s)&&(D0(s)||yD(s)))if(t>1)am(s,t-1,n,r),o=r.length;else for(var l=0,u=s.length;l<u;)r[o++]=s[l++];else n||(r[o++]=s)}return r}const Wwe=cl(function(e,t){t=am(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=hV(e[r],e)}return e});function Vwe(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return I0(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}const gV=cl(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),qwe=im(gV,di,1);function Gwe(e,t,n){var r,o,i,a,s=0;n||(n={});var l=function(){s=n.leading===!1?0:jy(),r=null,a=e.apply(o,i),r||(o=i=null)},u=function(){var d=jy();!s&&n.leading===!1&&(s=d);var c=t-(d-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=d,a=e.apply(o,i),r||(o=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=o=i=null},u}function Kwe(e,t,n){var r,o,i,a,s,l=function(){var d=jy()-o;t>d?r=setTimeout(l,t-d):(r=null,n||(a=e.apply(s,i)),r||(i=s=null))},u=cl(function(d){return s=this,i=d,o=jy(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,i))),a});return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function Qwe(e,t){return im(t,e)}function CD(e){return function(){return!e.apply(this,arguments)}}function Ywe(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Zwe(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function vV(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Xwe=im(vV,2);function mV(e,t,n){t=Wl(t,n);for(var r=ts(e),o,i=0,a=r.length;i<a;i++)if(o=r[i],t(e[o],o,e))return o}function Jwe(e){return function(t,n,r){n=Wl(n,r);for(var o=Ul(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}const xD=Jwe(1),yV=Jwe(-1);function bV(e,t,n,r){n=Wl(n,r,1);for(var o=n(t),i=0,a=Ul(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i}function e4e(e,t,n){return function(r,o,i){var a=0,s=Ul(r);if(typeof i=="number")e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(jC.call(r,a,s),JW),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}const wV=e4e(1,xD,bV),t4e=e4e(-1,yV);function cA(e,t,n){var r=yu(e)?xD:mV,o=r(e,t,n);if(o!==void 0&&o!==-1)return e[o]}function n4e(e,t){return cA(e,Nv(t))}function zc(e,t,n){t=WC(t,n);var r,o;if(yu(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=ts(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function ep(e,t,n){t=Wl(t,n);for(var r=!yu(e)&&ts(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i}function r4e(e){var t=function(n,r,o,i){var a=!yu(n)&&ts(n),s=(a||n).length,l=e>0?0:s-1;for(i||(o=n[a?a[l]:l],l+=e);l>=0&&l<s;l+=e){var u=a?a[l]:l;o=r(o,n[u],u,n)}return o};return function(n,r,o,i){var a=arguments.length>=3;return t(n,WC(r,i,4),o,a)}}const ry=r4e(1),LE=r4e(-1);function l0(e,t,n){var r=[];return t=Wl(t,n),zc(e,function(o,i,a){t(o,i,a)&&r.push(o)}),r}function o4e(e,t,n){return l0(e,CD(Wl(t)),n)}function FE(e,t,n){t=Wl(t,n);for(var r=!yu(e)&&ts(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function UE(e,t,n){t=Wl(t,n);for(var r=!yu(e)&&ts(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function zu(e,t,n,r){return yu(e)||(e=om(e)),(typeof n!="number"||r)&&(n=0),wV(e,t,n)>=0}const i4e=cl(function(e,t,n){var r,o;return js(t)?o=t:(t=HC(t),r=t.slice(0,-1),t=t[t.length-1]),ep(e,function(i){var a=o;if(!a){if(r&&r.length&&(i=dV(i,r)),i==null)return;a=i[t]}return a==null?a:a.apply(i,n)})});function SD(e,t){return ep(e,wD(t))}function a4e(e,t){return l0(e,Nv(t))}function AV(e,t,n){var r=-1/0,o=-1/0,i,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=yu(e)?e:om(e);for(var s=0,l=e.length;s<l;s++)i=e[s],i!=null&&i>r&&(r=i)}else t=Wl(t,n),zc(e,function(u,d,c){a=t(u,d,c),(a>o||a===-1/0&&r===-1/0)&&(r=u,o=a)});return r}function s4e(e,t,n){var r=1/0,o=1/0,i,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=yu(e)?e:om(e);for(var s=0,l=e.length;s<l;s++)i=e[s],i!=null&&i<r&&(r=i)}else t=Wl(t,n),zc(e,function(u,d,c){a=t(u,d,c),(a<o||a===1/0&&r===1/0)&&(r=u,o=a)});return r}var Plt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function CV(e){return e?D0(e)?jC.call(e):mD(e)?e.match(Plt):yu(e)?ep(e,bD):om(e):[]}function xV(e,t,n){if(t==null||n)return yu(e)||(e=om(e)),e[BE(e.length-1)];var r=CV(e),o=Ul(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var s=BE(a,i),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)}function l4e(e){return xV(e,1/0)}function u4e(e,t,n){var r=0;return t=Wl(t,n),SD(ep(e,function(o,i,a){return{value:o,index:r++,criteria:t(o,i,a)}}).sort(function(o,i){var a=o.criteria,s=i.criteria;if(a!==s){if(a>s||a===void 0)return 1;if(a<s||s===void 0)return-1}return o.index-i.index}),"value")}function ED(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Wl(r,o),zc(n,function(a,s){var l=r(a,s,n);e(i,a,l)}),i}}const c4e=ED(function(e,t,n){I0(e,n)?e[n].push(t):e[n]=[t]}),d4e=ED(function(e,t,n){e[n]=t}),f4e=ED(function(e,t,n){I0(e,n)?e[n]++:e[n]=1}),p4e=ED(function(e,t,n){e[n?0:1].push(t)},!0);function h4e(e){return e==null?0:yu(e)?e.length:ts(e).length}function Nlt(e,t,n){return t in n}const SV=cl(function(e,t){var n={},r=t[0];if(e==null)return n;js(r)?(t.length>1&&(r=WC(r,t[1])),t=zb(e)):(r=Nlt,t=am(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),g4e=cl(function(e,t){var n=t[0],r;return js(n)?(n=CD(n),t.length>1&&(r=t[1])):(t=ep(am(t,!1,!1),String),n=function(o,i){return!zu(t,i)}),SV(e,n,r)});function EV(e,t,n){return jC.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function oy(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:EV(e,e.length-t)}function Yg(e,t,n){return jC.call(e,t==null||n?1:t)}function v4e(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:Yg(e,Math.max(0,e.length-t))}function m4e(e){return l0(e,Boolean)}function y4e(e,t){return am(e,t,!1)}const kV=cl(function(e,t){return t=am(t,!0,!0),l0(e,function(n){return!zu(t,n)})}),b4e=cl(function(e,t){return kV(e,t)});function dA(e,t,n,r){KW(t)||(r=n,n=t,t=!1),n!=null&&(n=Wl(n,r));for(var o=[],i=[],a=0,s=Ul(e);a<s;a++){var l=e[a],u=n?n(l,a,e):l;t&&!n?((!a||i!==u)&&o.push(l),i=u):n?zu(i,u)||(i.push(u),o.push(l)):zu(o,l)||o.push(l)}return o}const w4e=cl(function(e){return dA(am(e,!0,!0))});function A4e(e){for(var t=[],n=arguments.length,r=0,o=Ul(e);r<o;r++){var i=e[r];if(!zu(t,i)){var a;for(a=1;a<n&&zu(arguments[a],i);a++);a===n&&t.push(i)}}return t}function fA(e){for(var t=e&&AV(e,Ul).length||0,n=Array(t),r=0;r<t;r++)n[r]=SD(e,r);return n}const C4e=cl(fA);function x4e(e,t){for(var n={},r=0,o=Ul(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function S4e(e,t,n){t==null&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function E4e(e,t){if(t==null||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(jC.call(e,r,r+=t));return n}function TV(e,t){return e._chain?di(t).chain():t}function _V(e){return zc(uA(e),function(t){var n=di[t]=e[t];di.prototype[t]=function(){var r=[this._wrapped];return clt.apply(r,arguments),TV(this,n.apply(di,r))}}),di}zc(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=vD[e];di.prototype[e]=function(){var n=this._wrapped;return n!=null&&(t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0&&delete n[0]),TV(this,n)}});zc(["concat","join","slice"],function(e){var t=vD[e];di.prototype[e]=function(){var n=this._wrapped;return n!=null&&(n=t.apply(n,arguments)),TV(this,n)}});const Rlt=Object.freeze(Object.defineProperty({__proto__:null,VERSION:VW,after:Zwe,all:FE,allKeys:zb,any:UE,assign:zy,before:vV,bind:hV,bindAll:Wwe,chain:jwe,chunk:E4e,clone:Twe,collect:ep,compact:m4e,compose:Ywe,constant:eV,contains:zu,countBy:f4e,create:kwe,debounce:Kwe,default:di,defaults:uV,defer:qwe,delay:gV,detect:cA,difference:kV,drop:Yg,each:zc,escape:Bwe,every:FE,extend:lV,extendOwn:zy,filter:l0,find:cA,findIndex:xD,findKey:mV,findLastIndex:yV,findWhere:n4e,first:oy,flatten:y4e,foldl:ry,foldr:LE,forEach:zc,functions:uA,get:fV,groupBy:c4e,has:Dwe,head:oy,identity:bD,include:zu,includes:zu,indexBy:d4e,indexOf:wV,initial:EV,inject:ry,intersection:A4e,invert:aV,invoke:i4e,isArguments:yD,isArray:D0,isArrayBuffer:ZW,isBoolean:KW,isDataView:lA,isDate:owe,isElement:rwe,isEmpty:hwe,isEqual:vwe,isError:awe,isFinite:cwe,isFunction:js,isMap:wwe,isMatch:nV,isNaN:JW,isNull:nwe,isNumber:QW,isObject:_0,isRegExp:iwe,isSet:Cwe,isString:mD,isSymbol:YW,isTypedArray:tV,isUndefined:GW,isWeakMap:Awe,isWeakSet:xwe,iteratee:AD,keys:ts,last:v4e,lastIndexOf:t4e,map:ep,mapObject:Owe,matcher:Nv,matches:Nv,max:AV,memoize:Vwe,methods:uA,min:s4e,mixin:_V,negate:CD,noop:pV,now:jy,object:x4e,omit:g4e,once:Xwe,pairs:Swe,partial:im,partition:p4e,pick:SV,pluck:SD,property:wD,propertyOf:Mwe,random:BE,range:S4e,reduce:ry,reduceRight:LE,reject:o4e,rest:Yg,restArguments:cl,result:$we,sample:xV,select:l0,shuffle:l4e,size:h4e,some:UE,sortBy:u4e,sortedIndex:bV,tail:Yg,take:oy,tap:_we,template:Uwe,templateSettings:Fwe,throttle:Gwe,times:Pwe,toArray:CV,toPath:cV,transpose:fA,unescape:Lwe,union:w4e,uniq:dA,unique:dA,uniqueId:zwe,unzip:fA,values:om,where:a4e,without:b4e,wrap:Qwe,zip:C4e},Symbol.toStringTag,{value:"Module"}));var bF=_V(Rlt);bF._=bF;const Blt=Object.freeze(Object.defineProperty({__proto__:null,VERSION:VW,after:Zwe,all:FE,allKeys:zb,any:UE,assign:zy,before:vV,bind:hV,bindAll:Wwe,chain:jwe,chunk:E4e,clone:Twe,collect:ep,compact:m4e,compose:Ywe,constant:eV,contains:zu,countBy:f4e,create:kwe,debounce:Kwe,default:bF,defaults:uV,defer:qwe,delay:gV,detect:cA,difference:kV,drop:Yg,each:zc,escape:Bwe,every:FE,extend:lV,extendOwn:zy,filter:l0,find:cA,findIndex:xD,findKey:mV,findLastIndex:yV,findWhere:n4e,first:oy,flatten:y4e,foldl:ry,foldr:LE,forEach:zc,functions:uA,get:fV,groupBy:c4e,has:Dwe,head:oy,identity:bD,include:zu,includes:zu,indexBy:d4e,indexOf:wV,initial:EV,inject:ry,intersection:A4e,invert:aV,invoke:i4e,isArguments:yD,isArray:D0,isArrayBuffer:ZW,isBoolean:KW,isDataView:lA,isDate:owe,isElement:rwe,isEmpty:hwe,isEqual:vwe,isError:awe,isFinite:cwe,isFunction:js,isMap:wwe,isMatch:nV,isNaN:JW,isNull:nwe,isNumber:QW,isObject:_0,isRegExp:iwe,isSet:Cwe,isString:mD,isSymbol:YW,isTypedArray:tV,isUndefined:GW,isWeakMap:Awe,isWeakSet:xwe,iteratee:AD,keys:ts,last:v4e,lastIndexOf:t4e,map:ep,mapObject:Owe,matcher:Nv,matches:Nv,max:AV,memoize:Vwe,methods:uA,min:s4e,mixin:_V,negate:CD,noop:pV,now:jy,object:x4e,omit:g4e,once:Xwe,pairs:Swe,partial:im,partition:p4e,pick:SV,pluck:SD,property:wD,propertyOf:Mwe,random:BE,range:S4e,reduce:ry,reduceRight:LE,reject:o4e,rest:Yg,restArguments:cl,result:$we,sample:xV,select:l0,shuffle:l4e,size:h4e,some:UE,sortBy:u4e,sortedIndex:bV,tail:Yg,take:oy,tap:_we,template:Uwe,templateSettings:Fwe,throttle:Gwe,times:Pwe,toArray:CV,toPath:cV,transpose:fA,unescape:Lwe,union:w4e,uniq:dA,unique:dA,uniqueId:zwe,unzip:fA,values:om,where:a4e,without:b4e,wrap:Qwe,zip:C4e},Symbol.toStringTag,{value:"Module"})),Ia=Cze(Blt);var Ex={},Su={},MI={exports:{}},kx={exports:{}},nte;function jb(){if(nte)return kx.exports;nte=1;var e=(function(){return this===void 0})();if(e)kx.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(d,c){var f=Object.getOwnPropertyDescriptor(d,c);return!!(!f||f.writable||f.set)}};else{var t={}.hasOwnProperty,n={}.toString,r={}.constructor.prototype,o=function(d){var c=[];for(var f in d)t.call(d,f)&&c.push(f);return c},i=function(d,c){return{value:d[c]}},a=function(d,c,f){return d[c]=f.value,d},s=function(d){return d},l=function(d){try{return Object(d).constructor.prototype}catch{return r}},u=function(d){try{return n.call(d)==="[object Array]"}catch{return!1}};kx.exports={isArray:u,keys:o,names:o,defineProperty:a,getDescriptor:i,freeze:s,getPrototypeOf:l,isES5:e,propertyIsWritable:function(){return!0}}}return kx.exports}var I2,rte;function $i(){if(rte)return I2;rte=1;var e={},t=jb(),n=typeof navigator>"u",r={e:{}},o,i=typeof self<"u"?self:typeof window<"u"?window:typeof $s<"u"?$s:I2!==void 0?I2:null;function a(){try{var W=o;return o=null,W.apply(this,arguments)}catch(ie){return r.e=ie,r}}function s(W){return o=W,a}var l=function(W,ie){var ee={}.hasOwnProperty;function te(){this.constructor=W,this.constructor$=ie;for(var X in ie.prototype)ee.call(ie.prototype,X)&&X.charAt(X.length-1)!=="$"&&(this[X+"$"]=ie.prototype[X])}return te.prototype=ie.prototype,W.prototype=new te,W.prototype};function u(W){return W==null||W===!0||W===!1||typeof W=="string"||typeof W=="number"}function d(W){return typeof W=="function"||typeof W=="object"&&W!==null}function c(W){return u(W)?new Error(k(W)):W}function f(W,ie){var ee=W.length,te=new Array(ee+1),X;for(X=0;X<ee;++X)te[X]=W[X];return te[X]=ie,te}function p(W,ie,ee){if(t.isES5){var te=Object.getOwnPropertyDescriptor(W,ie);if(te!=null)return te.get==null&&te.set==null?te.value:ee}else return{}.hasOwnProperty.call(W,ie)?W[ie]:void 0}function v(W,ie,ee){if(u(W))return W;var te={value:ee,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(W,ie,te),W}function h(W){throw W}var g=(function(){var W=[Array.prototype,Object.prototype,Function.prototype],ie=function(X){for(var ue=0;ue<W.length;++ue)if(W[ue]===X)return!0;return!1};if(t.isES5){var ee=Object.getOwnPropertyNames;return function(X){for(var ue=[],ve=Object.create(null);X!=null&&!ie(X);){var Me;try{Me=ee(X)}catch{return ue}for(var we=0;we<Me.length;++we){var he=Me[we];if(!ve[he]){ve[he]=!0;var Te=Object.getOwnPropertyDescriptor(X,he);Te!=null&&Te.get==null&&Te.set==null&&ue.push(he)}}X=t.getPrototypeOf(X)}return ue}}else{var te={}.hasOwnProperty;return function(X){if(ie(X))return[];var ue=[];e:for(var ve in X)if(te.call(X,ve))ue.push(ve);else{for(var Me=0;Me<W.length;++Me)if(te.call(W[Me],ve))continue e;ue.push(ve)}return ue}}})(),y=/this\s*\.\s*\S+\s*=/;function m(W){try{if(typeof W=="function"){var ie=t.names(W.prototype),ee=t.isES5&&ie.length>1,te=ie.length>0&&!(ie.length===1&&ie[0]==="constructor"),X=y.test(W+"")&&t.names(W).length>0;if(ee||te||X)return!0}return!1}catch{return!1}}function b(W){return W}var w=/^[a-z$_][a-z$_0-9]*$/i;function A(W){return w.test(W)}function S(W,ie,ee){for(var te=new Array(W),X=0;X<W;++X)te[X]=ie+X+ee;return te}function k(W){try{return W+""}catch{return"[no string representation]"}}function M(W){return W!==null&&typeof W=="object"&&typeof W.message=="string"&&typeof W.name=="string"}function D(W){try{v(W,"isOperational",!0)}catch{}}function P(W){return W==null?!1:W instanceof Error.__BluebirdErrorTypes__.OperationalError||W.isOperational===!0}function O(W){return M(W)&&t.propertyIsWritable(W,"stack")}var _=(function(){return"stack"in new Error?function(W){return O(W)?W:new Error(k(W))}:function(W){if(O(W))return W;try{throw new Error(k(W))}catch(ie){return ie}}})();function B(W){return{}.toString.call(W)}function N(W,ie,ee){for(var te=t.names(W),X=0;X<te.length;++X){var ue=te[X];if(ee(ue))try{t.defineProperty(ie,ue,t.getDescriptor(W,ue))}catch{}}}var q=function(W){return t.isArray(W)?W:null};if(typeof Symbol<"u"&&Symbol.iterator){var U=typeof Array.from=="function"?function(W){return Array.from(W)}:function(W){for(var ie=[],ee=W[Symbol.iterator](),te;!(te=ee.next()).done;)ie.push(te.value);return ie};q=function(W){return t.isArray(W)?W:W!=null&&typeof W[Symbol.iterator]=="function"?U(W):null}}var j=typeof process<"u"&&B(process).toLowerCase()==="[object process]",H=typeof process<"u"&&typeof e<"u";function G(W){return H?e[W]:void 0}function Z(){if(typeof Promise=="function")try{var W=new Promise(function(){});if({}.toString.call(W)==="[object Promise]")return Promise}catch{}}function $(W,ie){return W.bind(ie)}var L={isClass:m,isIdentifier:A,inheritedDataKeys:g,getDataPropertyOrDefault:p,thrower:h,isArray:t.isArray,asArray:q,notEnumerableProp:v,isPrimitive:u,isObject:d,isError:M,canEvaluate:n,errorObj:r,tryCatch:s,inherits:l,withAppended:f,maybeWrapAsError:c,toFastProperties:b,filledRange:S,toString:k,canAttachTrace:O,ensureErrorObject:_,originatesFromRejection:P,markAsOriginatingFromRejection:D,classString:B,copyDescriptors:N,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:j,hasEnvVariables:H,env:G,global:i,getNativePromise:Z,domainBind:$};L.isRecentNode=L.isNode&&(function(){var W=process.versions.node.split(".").map(Number);return W[0]===0&&W[1]>10||W[0]>0})(),L.isNode&&L.toFastProperties(process);try{throw new Error}catch(W){L.lastLineError=W}return I2=L,I2}var Tx={exports:{}},PI,ote;function Llt(){if(ote)return PI;ote=1;var e=$i(),t,n=function(){throw new Error(`No async scheduler available
- See http://goo.gl/MqrFmX
- `)},r=e.getNativePromise();if(e.isNode&&typeof MutationObserver>"u"){var o=$s.setImmediate,i=process.nextTick;t=e.isRecentNode?function(s){o.call($s,s)}:function(s){i.call(process,s)}}else if(typeof r=="function"&&typeof r.resolve=="function"){var a=r.resolve();t=function(s){a.then(s)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?t=(function(){var s=document.createElement("div"),l={attributes:!0},u=!1,d=document.createElement("div"),c=new MutationObserver(function(){s.classList.toggle("foo"),u=!1});c.observe(d,l);var f=function(){u||(u=!0,d.classList.toggle("foo"))};return function(v){var h=new MutationObserver(function(){h.disconnect(),v()});h.observe(s,l),f()}})():typeof setImmediate<"u"?t=function(s){setImmediate(s)}:typeof setTimeout<"u"?t=function(s){setTimeout(s,0)}:t=n;return PI=t,PI}var NI,ite;function Flt(){if(ite)return NI;ite=1;function e(n,r,o,i,a){for(var s=0;s<a;++s)o[s+i]=n[s+r],n[s+r]=void 0}function t(n){this._capacity=n,this._length=0,this._front=0}return t.prototype._willBeOverCapacity=function(n){return this._capacity<n},t.prototype._pushOne=function(n){var r=this.length();this._checkCapacity(r+1);var o=this._front+r&this._capacity-1;this[o]=n,this._length=r+1},t.prototype.push=function(n,r,o){var i=this.length()+3;if(this._willBeOverCapacity(i)){this._pushOne(n),this._pushOne(r),this._pushOne(o);return}var a=this._front+i-3;this._checkCapacity(i);var s=this._capacity-1;this[a+0&s]=n,this[a+1&s]=r,this[a+2&s]=o,this._length=i},t.prototype.shift=function(){var n=this._front,r=this[n];return this[n]=void 0,this._front=n+1&this._capacity-1,this._length--,r},t.prototype.length=function(){return this._length},t.prototype._checkCapacity=function(n){this._capacity<n&&this._resizeTo(this._capacity<<1)},t.prototype._resizeTo=function(n){var r=this._capacity;this._capacity=n;var o=this._front,i=this._length,a=o+i&r-1;e(this,0,this,r,a)},NI=t,NI}var ate;function Ult(){if(ate)return Tx.exports;ate=1;var e;try{throw new Error}catch(l){e=l}var t=Llt(),n=Flt(),r=$i();function o(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new n(16),this._normalQueue=new n(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var l=this;this.drainQueues=function(){l._drainQueues()},this._schedule=t}o.prototype.setScheduler=function(l){var u=this._schedule;return this._schedule=l,this._customScheduler=!0,u},o.prototype.hasCustomScheduler=function(){return this._customScheduler},o.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},o.prototype.disableTrampolineIfNecessary=function(){r.hasDevTools&&(this._trampolineEnabled=!1)},o.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},o.prototype.fatalError=function(l,u){u?(process.stderr.write("Fatal "+(l instanceof Error?l.stack:l)+`
- `),process.exit(2)):this.throwLater(l)},o.prototype.throwLater=function(l,u){if(arguments.length===1&&(u=l,l=function(){throw u}),typeof setTimeout<"u")setTimeout(function(){l(u)},0);else try{this._schedule(function(){l(u)})}catch{throw new Error(`No async scheduler available
- See http://goo.gl/MqrFmX
- `)}};function i(l,u,d){this._lateQueue.push(l,u,d),this._queueTick()}function a(l,u,d){this._normalQueue.push(l,u,d),this._queueTick()}function s(l){this._normalQueue._pushOne(l),this._queueTick()}return r.hasDevTools?(o.prototype.invokeLater=function(l,u,d){this._trampolineEnabled?i.call(this,l,u,d):this._schedule(function(){setTimeout(function(){l.call(u,d)},100)})},o.prototype.invoke=function(l,u,d){this._trampolineEnabled?a.call(this,l,u,d):this._schedule(function(){l.call(u,d)})},o.prototype.settlePromises=function(l){this._trampolineEnabled?s.call(this,l):this._schedule(function(){l._settlePromises()})}):(o.prototype.invokeLater=i,o.prototype.invoke=a,o.prototype.settlePromises=s),o.prototype._drainQueue=function(l){for(;l.length()>0;){var u=l.shift();if(typeof u!="function"){u._settlePromises();continue}var d=l.shift(),c=l.shift();u.call(d,c)}},o.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},o.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},o.prototype._reset=function(){this._isTickUsed=!1},Tx.exports=o,Tx.exports.firstLineError=e,Tx.exports}var RI,ste;function u0(){if(ste)return RI;ste=1;var e=jb(),t=e.freeze,n=$i(),r=n.inherits,o=n.notEnumerableProp;function i(y,m){function b(w){if(!(this instanceof b))return new b(w);o(this,"message",typeof w=="string"?w:m),o(this,"name",y),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return r(b,Error),b}var a,s,l=i("Warning","warning"),u=i("CancellationError","cancellation error"),d=i("TimeoutError","timeout error"),c=i("AggregateError","aggregate error");try{a=TypeError,s=RangeError}catch{a=i("TypeError","type error"),s=i("RangeError","range error")}for(var f="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),p=0;p<f.length;++p)typeof Array.prototype[f[p]]=="function"&&(c.prototype[f[p]]=Array.prototype[f[p]]);e.defineProperty(c.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),c.prototype.isOperational=!0;var v=0;c.prototype.toString=function(){var y=Array(v*4+1).join(" "),m=`
- `+y+`AggregateError of:
- `;v++,y=Array(v*4+1).join(" ");for(var b=0;b<this.length;++b){for(var w=this[b]===this?"[Circular AggregateError]":this[b]+"",A=w.split(`
- `),S=0;S<A.length;++S)A[S]=y+A[S];w=A.join(`
- `),m+=w+`
- `}return v--,m};function h(y){if(!(this instanceof h))return new h(y);o(this,"name","OperationalError"),o(this,"message",y),this.cause=y,this.isOperational=!0,y instanceof Error?(o(this,"message",y.message),o(this,"stack",y.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}r(h,Error);var g=Error.__BluebirdErrorTypes__;return g||(g=t({CancellationError:u,TimeoutError:d,OperationalError:h,RejectionError:h,AggregateError:c}),e.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),RI={Error,TypeError:a,RangeError:s,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:l},RI}var BI,lte;function $lt(){return lte||(lte=1,BI=function(e,t){var n=$i(),r=n.errorObj,o=n.isObject;function i(c,f){if(o(c)){if(c instanceof e)return c;var p=s(c);if(p===r){f&&f._pushContext();var v=e.reject(p.e);return f&&f._popContext(),v}else if(typeof p=="function"){if(u(c)){var v=new e(t);return c._then(v._fulfill,v._reject,void 0,v,null),v}return d(c,p,f)}}return c}function a(c){return c.then}function s(c){try{return a(c)}catch(f){return r.e=f,r}}var l={}.hasOwnProperty;function u(c){try{return l.call(c,"_promise0")}catch{return!1}}function d(c,f,p){var v=new e(t),h=v;p&&p._pushContext(),v._captureStackTrace(),p&&p._popContext();var g=!0,y=n.tryCatch(f).call(c,m,b);g=!1,v&&y===r&&(v._rejectCallback(y.e,!0,!0),v=null);function m(w){v&&(v._resolveCallback(w),v=null)}function b(w){v&&(v._rejectCallback(w,g,!0),v=null)}return h}return i}),BI}var LI,ute;function zlt(){return ute||(ute=1,LI=function(e,t,n,r,o){var i=$i();i.isArray;function a(l){switch(l){case-2:return[];case-3:return{}}}function s(l){var u=this._promise=new e(t);l instanceof e&&u._propagateFrom(l,3),u._setOnCancel(this),this._values=l,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return i.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(u,d){var c=n(this._values,this._promise);if(c instanceof e){c=c._target();var f=c._bitField;if(this._values=c,(f&50397184)===0)return this._promise._setAsyncGuaranteed(),c._then(l,this._reject,void 0,this,d);if((f&33554432)!==0)c=c._value();else return(f&16777216)!==0?this._reject(c._reason()):this._cancel()}if(c=i.asArray(c),c===null){var p=r("expecting an array or an iterable object but got "+i.classString(c)).reason();this._promise._rejectCallback(p,!1);return}if(c.length===0){d===-5?this._resolveEmptyArray():this._resolve(a(d));return}this._iterate(c)},s.prototype._iterate=function(l){var u=this.getActualLength(l.length);this._length=u,this._values=this.shouldCopyValues()?new Array(u):this._values;for(var d=this._promise,c=!1,f=null,p=0;p<u;++p){var v=n(l[p],d);v instanceof e?(v=v._target(),f=v._bitField):f=null,c?f!==null&&v.suppressUnhandledRejections():f!==null?(f&50397184)===0?(v._proxy(this,p),this._values[p]=v):(f&33554432)!==0?c=this._promiseFulfilled(v._value(),p):(f&16777216)!==0?c=this._promiseRejected(v._reason(),p):c=this._promiseCancelled(p):c=this._promiseFulfilled(v,p)}c||d._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(l){this._values=null,this._promise._fulfill(l)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(l){this._values=null,this._promise._rejectCallback(l,!1)},s.prototype._promiseFulfilled=function(l,u){this._values[u]=l;var d=++this._totalResolved;return d>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(l){return this._totalResolved++,this._reject(l),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var l=this._values;if(this._cancel(),l instanceof e)l.cancel();else for(var u=0;u<l.length;++u)l[u]instanceof e&&l[u].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(l){return l},s}),LI}var FI,cte;function jlt(){return cte||(cte=1,FI=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(i())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var a=n.pop(),s=a._promiseCreated;return a._promiseCreated=null,s}return null};function o(){if(t)return new r}function i(){var a=n.length-1;if(a>=0)return n[a]}return r.CapturedTrace=null,r.create=o,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var a=e.prototype._pushContext,s=e.prototype._popContext,l=e._peekContext,u=e.prototype._peekContext,d=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=a,e.prototype._popContext=s,e._peekContext=l,e.prototype._peekContext=u,e.prototype._promiseCreated=d,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var c=this._peekContext();c&&c._promiseCreated==null&&(c._promiseCreated=this)}},r}),FI}var UI,dte;function Hlt(){return dte||(dte=1,UI=function(e,t){var n=e._getDomain,r=e._async,o=u0().Warning,i=$i(),a=i.canAttachTrace,s,l,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,c=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,p=null,v=!1,h,g=!!(i.env("BLUEBIRD_DEBUG")!=0&&(i.env("BLUEBIRD_DEBUG")||i.env("NODE_ENV")==="development")),y=!!(i.env("BLUEBIRD_WARNINGS")!=0&&(g||i.env("BLUEBIRD_WARNINGS"))),m=!!(i.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(g||i.env("BLUEBIRD_LONG_STACK_TRACES"))),b=i.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(y||!!i.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var Fe=this._target();Fe._bitField=Fe._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",s,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var Fe=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",l,Fe,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(Fe,Pe,Ne){return ie(Fe,Pe,Ne||this)},e.onPossiblyUnhandledRejection=function(Fe){var Pe=n();l=typeof Fe=="function"?Pe===null?Fe:i.domainBind(Pe,Fe):void 0},e.onUnhandledRejectionHandled=function(Fe){var Pe=n();s=typeof Fe=="function"?Pe===null?Fe:i.domainBind(Pe,Fe):void 0};var w=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
- See http://goo.gl/MqrFmX
- `);if(!Le.longStackTraces&&be()){var Fe=e.prototype._captureStackTrace,Pe=e.prototype._attachExtraTrace;Le.longStackTraces=!0,w=function(){if(r.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
- See http://goo.gl/MqrFmX
- `);e.prototype._captureStackTrace=Fe,e.prototype._attachExtraTrace=Pe,t.deactivateLongStackTraces(),r.enableTrampoline(),Le.longStackTraces=!1},e.prototype._captureStackTrace=Z,e.prototype._attachExtraTrace=$,t.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return Le.longStackTraces&&be()};var A=(function(){try{if(typeof CustomEvent=="function"){var Fe=new CustomEvent("CustomEvent");return i.global.dispatchEvent(Fe),function(Pe,Ne){var pt=new CustomEvent(Pe.toLowerCase(),{detail:Ne,cancelable:!0});return!i.global.dispatchEvent(pt)}}else if(typeof Event=="function"){var Fe=new Event("CustomEvent");return i.global.dispatchEvent(Fe),function(Ne,pt){var Rt=new Event(Ne.toLowerCase(),{cancelable:!0});return Rt.detail=pt,!i.global.dispatchEvent(Rt)}}else{var Fe=document.createEvent("CustomEvent");return Fe.initCustomEvent("testingtheevent",!1,!0,{}),i.global.dispatchEvent(Fe),function(Ne,pt){var Rt=document.createEvent("CustomEvent");return Rt.initCustomEvent(Ne.toLowerCase(),!1,!0,pt),!i.global.dispatchEvent(Rt)}}}catch{}return function(){return!1}})(),S=(function(){return i.isNode?function(){return process.emit.apply(process,arguments)}:i.global?function(Fe){var Pe="on"+Fe.toLowerCase(),Ne=i.global[Pe];return Ne?(Ne.apply(i.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}})();function k(Fe,Pe){return{promise:Pe}}var M={promiseCreated:k,promiseFulfilled:k,promiseRejected:k,promiseResolved:k,promiseCancelled:k,promiseChained:function(Fe,Pe,Ne){return{promise:Pe,child:Ne}},warning:function(Fe,Pe){return{warning:Pe}},unhandledRejection:function(Fe,Pe,Ne){return{reason:Pe,promise:Ne}},rejectionHandled:k},D=function(Fe){var Pe=!1;try{Pe=S.apply(null,arguments)}catch(pt){r.throwLater(pt),Pe=!0}var Ne=!1;try{Ne=A(Fe,M[Fe].apply(null,arguments))}catch(pt){r.throwLater(pt),Ne=!0}return Ne||Pe};e.config=function(Fe){if(Fe=Object(Fe),"longStackTraces"in Fe&&(Fe.longStackTraces?e.longStackTraces():!Fe.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in Fe){var Pe=Fe.warnings;Le.warnings=!!Pe,b=Le.warnings,i.isObject(Pe)&&"wForgottenReturn"in Pe&&(b=!!Pe.wForgottenReturn)}if("cancellation"in Fe&&Fe.cancellation&&!Le.cancellation){if(r.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=q,e.prototype._propagateFrom=U,e.prototype._onCancel=B,e.prototype._setOnCancel=N,e.prototype._attachCancellationCallback=_,e.prototype._execute=O,H=U,Le.cancellation=!0}return"monitoring"in Fe&&(Fe.monitoring&&!Le.monitoring?(Le.monitoring=!0,e.prototype._fireEvent=D):!Fe.monitoring&&Le.monitoring&&(Le.monitoring=!1,e.prototype._fireEvent=P)),e};function P(){return!1}e.prototype._fireEvent=P,e.prototype._execute=function(Fe,Pe,Ne){try{Fe(Pe,Ne)}catch(pt){return pt}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(Fe){},e.prototype._attachCancellationCallback=function(Fe){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(Fe,Pe){};function O(Fe,Pe,Ne){var pt=this;try{Fe(Pe,Ne,function(Rt){if(typeof Rt!="function")throw new TypeError("onCancel must be a function, got: "+i.toString(Rt));pt._attachCancellationCallback(Rt)})}catch(Rt){return Rt}}function _(Fe){if(!this._isCancellable())return this;var Pe=this._onCancel();Pe!==void 0?i.isArray(Pe)?Pe.push(Fe):this._setOnCancel([Pe,Fe]):this._setOnCancel(Fe)}function B(){return this._onCancelField}function N(Fe){this._onCancelField=Fe}function q(){this._cancellationParent=void 0,this._onCancelField=void 0}function U(Fe,Pe){if((Pe&1)!==0){this._cancellationParent=Fe;var Ne=Fe._branchesRemainingToCancel;Ne===void 0&&(Ne=0),Fe._branchesRemainingToCancel=Ne+1}(Pe&2)!==0&&Fe._isBound()&&this._setBoundTo(Fe._boundTo)}function j(Fe,Pe){(Pe&2)!==0&&Fe._isBound()&&this._setBoundTo(Fe._boundTo)}var H=j;function G(){var Fe=this._boundTo;return Fe!==void 0&&Fe instanceof e?Fe.isFulfilled()?Fe.value():void 0:Fe}function Z(){this._trace=new Re(this._peekContext())}function $(Fe,Pe){if(a(Fe)){var Ne=this._trace;if(Ne!==void 0&&Pe&&(Ne=Ne._parent),Ne!==void 0)Ne.attachExtraTrace(Fe);else if(!Fe.__stackCleaned__){var pt=Me(Fe);i.notEnumerableProp(Fe,"stack",pt.message+`
- `+pt.stack.join(`
- `)),i.notEnumerableProp(Fe,"__stackCleaned__",!0)}}}function L(Fe,Pe,Ne,pt,Rt){if(Fe===void 0&&Pe!==null&&b){if(Rt!==void 0&&Rt._returnedNonUndefined()||(pt._bitField&65535)===0)return;Ne&&(Ne=Ne+" ");var Bt="",en="";if(Pe._trace){for(var Wt=Pe._trace.stack.split(`
- `),Ut=ue(Wt),ct=Ut.length-1;ct>=0;--ct){var _t=Ut[ct];if(!d.test(_t)){var st=_t.match(c);st&&(Bt="at "+st[1]+":"+st[2]+":"+st[3]+" ");break}}if(Ut.length>0){for(var Ot=Ut[0],ct=0;ct<Wt.length;++ct)if(Wt[ct]===Ot){ct>0&&(en=`
- `+Wt[ct-1]);break}}}var Ae="a promise was created in a "+Ne+"handler "+Bt+"but was not returned from it, see http://goo.gl/rRqMUw"+en;pt._warn(Ae,!0,Pe)}}function W(Fe,Pe){var Ne=Fe+" is deprecated and will be removed in a future version.";return Pe&&(Ne+=" Use "+Pe+" instead."),ie(Ne)}function ie(Fe,Pe,Ne){if(Le.warnings){var pt=new o(Fe),Rt;if(Pe)Ne._attachExtraTrace(pt);else if(Le.longStackTraces&&(Rt=e._peekContext()))Rt.attachExtraTrace(pt);else{var Bt=Me(pt);pt.stack=Bt.message+`
- `+Bt.stack.join(`
- `)}D("warning",pt)||we(pt,"",!0)}}function ee(Fe,Pe){for(var Ne=0;Ne<Pe.length-1;++Ne)Pe[Ne].push("From previous event:"),Pe[Ne]=Pe[Ne].join(`
- `);return Ne<Pe.length&&(Pe[Ne]=Pe[Ne].join(`
- `)),Fe+`
- `+Pe.join(`
- `)}function te(Fe){for(var Pe=0;Pe<Fe.length;++Pe)(Fe[Pe].length===0||Pe+1<Fe.length&&Fe[Pe][0]===Fe[Pe+1][0])&&(Fe.splice(Pe,1),Pe--)}function X(Fe){for(var Pe=Fe[0],Ne=1;Ne<Fe.length;++Ne){for(var pt=Fe[Ne],Rt=Pe.length-1,Bt=Pe[Rt],en=-1,Wt=pt.length-1;Wt>=0;--Wt)if(pt[Wt]===Bt){en=Wt;break}for(var Wt=en;Wt>=0;--Wt){var Ut=pt[Wt];if(Pe[Rt]===Ut)Pe.pop(),Rt--;else break}Pe=pt}}function ue(Fe){for(var Pe=[],Ne=0;Ne<Fe.length;++Ne){var pt=Fe[Ne],Rt=pt===" (No stack trace)"||f.test(pt),Bt=Rt&&De(pt);Rt&&!Bt&&(v&&pt.charAt(0)!==" "&&(pt=" "+pt),Pe.push(pt))}return Pe}function ve(Fe){for(var Pe=Fe.stack.replace(/\s+$/g,"").split(`
- `),Ne=0;Ne<Pe.length;++Ne){var pt=Pe[Ne];if(pt===" (No stack trace)"||f.test(pt))break}return Ne>0&&Fe.name!="SyntaxError"&&(Pe=Pe.slice(Ne)),Pe}function Me(Fe){var Pe=Fe.stack,Ne=Fe.toString();return Pe=typeof Pe=="string"&&Pe.length>0?ve(Fe):[" (No stack trace)"],{message:Ne,stack:Fe.name=="SyntaxError"?Pe:ue(Pe)}}function we(Fe,Pe,Ne){if(typeof console<"u"){var pt;if(i.isObject(Fe)){var Rt=Fe.stack;pt=Pe+p(Rt,Fe)}else pt=Pe+String(Fe);typeof h=="function"?h(pt,Ne):(typeof console.log=="function"||typeof console.log=="object")&&console.log(pt)}}function he(Fe,Pe,Ne,pt){var Rt=!1;try{typeof Pe=="function"&&(Rt=!0,Fe==="rejectionHandled"?Pe(pt):Pe(Ne,pt))}catch(Bt){r.throwLater(Bt)}Fe==="unhandledRejection"?!D(Fe,Ne,pt)&&!Rt&&we(Ne,"Unhandled rejection "):D(Fe,pt)}function Te(Fe){var Pe;if(typeof Fe=="function")Pe="[function "+(Fe.name||"anonymous")+"]";else{Pe=Fe&&typeof Fe.toString=="function"?Fe.toString():i.toString(Fe);var Ne=/\[object [a-zA-Z0-9$_]+\]/;if(Ne.test(Pe))try{var pt=JSON.stringify(Fe);Pe=pt}catch{}Pe.length===0&&(Pe="(empty array)")}return"(<"+Y(Pe)+">, no stack trace)"}function Y(Fe){var Pe=41;return Fe.length<Pe?Fe:Fe.substr(0,Pe-3)+"..."}function be(){return typeof Ee=="function"}var De=function(){return!1},pe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function oe(Fe){var Pe=Fe.match(pe);if(Pe)return{fileName:Pe[1],line:parseInt(Pe[2],10)}}function ce(Fe,Pe){if(be()){for(var Ne=Fe.stack.split(`
- `),pt=Pe.stack.split(`
- `),Rt=-1,Bt=-1,en,Wt,Ut=0;Ut<Ne.length;++Ut){var ct=oe(Ne[Ut]);if(ct){en=ct.fileName,Rt=ct.line;break}}for(var Ut=0;Ut<pt.length;++Ut){var ct=oe(pt[Ut]);if(ct){Wt=ct.fileName,Bt=ct.line;break}}Rt<0||Bt<0||!en||!Wt||en!==Wt||Rt>=Bt||(De=function(_t){if(u.test(_t))return!0;var st=oe(_t);return!!(st&&st.fileName===en&&Rt<=st.line&&st.line<=Bt)})}}function Re(Fe){this._parent=Fe,this._promisesCreated=0;var Pe=this._length=1+(Fe===void 0?0:Fe._length);Ee(this,Re),Pe>32&&this.uncycle()}i.inherits(Re,Error),t.CapturedTrace=Re,Re.prototype.uncycle=function(){var Fe=this._length;if(!(Fe<2)){for(var Pe=[],Ne={},pt=0,Rt=this;Rt!==void 0;++pt)Pe.push(Rt),Rt=Rt._parent;Fe=this._length=pt;for(var pt=Fe-1;pt>=0;--pt){var Bt=Pe[pt].stack;Ne[Bt]===void 0&&(Ne[Bt]=pt)}for(var pt=0;pt<Fe;++pt){var en=Pe[pt].stack,Wt=Ne[en];if(Wt!==void 0&&Wt!==pt){Wt>0&&(Pe[Wt-1]._parent=void 0,Pe[Wt-1]._length=1),Pe[pt]._parent=void 0,Pe[pt]._length=1;var Ut=pt>0?Pe[pt-1]:this;Wt<Fe-1?(Ut._parent=Pe[Wt+1],Ut._parent.uncycle(),Ut._length=Ut._parent._length+1):(Ut._parent=void 0,Ut._length=1);for(var ct=Ut._length+1,_t=pt-2;_t>=0;--_t)Pe[_t]._length=ct,ct++;return}}}},Re.prototype.attachExtraTrace=function(Fe){if(!Fe.__stackCleaned__){this.uncycle();for(var Pe=Me(Fe),Ne=Pe.message,pt=[Pe.stack],Rt=this;Rt!==void 0;)pt.push(ue(Rt.stack.split(`
- `))),Rt=Rt._parent;X(pt),te(pt),i.notEnumerableProp(Fe,"stack",ee(Ne,pt)),i.notEnumerableProp(Fe,"__stackCleaned__",!0)}};var Ee=(function(){var Pe=/^\s*at\s*/,Ne=function(en,Wt){return typeof en=="string"?en:Wt.name!==void 0&&Wt.message!==void 0?Wt.toString():Te(Wt)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,f=Pe,p=Ne;var pt=Error.captureStackTrace;return De=function(en){return u.test(en)},function(en,Wt){Error.stackTraceLimit+=6,pt(en,Wt),Error.stackTraceLimit-=6}}var Rt=new Error;if(typeof Rt.stack=="string"&&Rt.stack.split(`
- `)[0].indexOf("stackDetection@")>=0)return f=/@/,p=Ne,v=!0,function(Wt){Wt.stack=new Error().stack};var Bt;try{throw new Error}catch(en){Bt="stack"in en}return!("stack"in Rt)&&Bt&&typeof Error.stackTraceLimit=="number"?(f=Pe,p=Ne,function(Wt){Error.stackTraceLimit+=6;try{throw new Error}catch(Ut){Wt.stack=Ut.stack}Error.stackTraceLimit-=6}):(p=function(en,Wt){return typeof en=="string"?en:(typeof Wt=="object"||typeof Wt=="function")&&Wt.name!==void 0&&Wt.message!==void 0?Wt.toString():Te(Wt)},null)})();typeof console<"u"&&typeof console.warn<"u"&&(h=function(Fe){console.warn(Fe)},i.isNode&&process.stderr.isTTY?h=function(Fe,Pe){var Ne=Pe?"\x1B[33m":"\x1B[31m";console.warn(Ne+Fe+`\x1B[0m
- `)}:!i.isNode&&typeof new Error().stack=="string"&&(h=function(Fe,Pe){console.warn("%c"+Fe,Pe?"color: darkorange":"color: red")}));var Le={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return m&&e.longStackTraces(),{longStackTraces:function(){return Le.longStackTraces},warnings:function(){return Le.warnings},cancellation:function(){return Le.cancellation},monitoring:function(){return Le.monitoring},propagateFromFunction:function(){return H},boundValueFunction:function(){return G},checkForgottenReturns:L,setBounds:ce,warn:ie,deprecated:W,CapturedTrace:Re,fireDomEvent:A,fireGlobalEvent:S}}),UI}var $I,fte;function Wlt(){return fte||(fte=1,$I=function(e,t){var n=$i(),r=e.CancellationError,o=n.errorObj;function i(c,f,p){this.promise=c,this.type=f,this.handler=p,this.called=!1,this.cancelPromise=null}i.prototype.isFinallyHandler=function(){return this.type===0};function a(c){this.finallyHandler=c}a.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(c,f){return c.cancelPromise!=null?(arguments.length>1?c.cancelPromise._reject(f):c.cancelPromise._cancel(),c.cancelPromise=null,!0):!1}function l(){return d.call(this,this.promise._target()._settledValue())}function u(c){if(!s(this,c))return o.e=c,o}function d(c){var f=this.promise,p=this.handler;if(!this.called){this.called=!0;var v=this.isFinallyHandler()?p.call(f._boundValue()):p.call(f._boundValue(),c);if(v!==void 0){f._setReturnedNonUndefined();var h=t(v,f);if(h instanceof e){if(this.cancelPromise!=null)if(h._isCancelled()){var g=new r("late cancellation observer");return f._attachExtraTrace(g),o.e=g,o}else h.isPending()&&h._attachCancellationCallback(new a(this));return h._then(l,u,void 0,this,void 0)}}}return f.isRejected()?(s(this),o.e=c,o):(s(this),c)}return e.prototype._passThrough=function(c,f,p,v){return typeof c!="function"?this.then():this._then(p,v,void 0,new i(this,f,c),void 0)},e.prototype.lastly=e.prototype.finally=function(c){return this._passThrough(c,0,d,d)},e.prototype.tap=function(c){return this._passThrough(c,1,d)},i}),$I}var zI,pte;function Vlt(){return pte||(pte=1,zI=function(e){var t=$i(),n=jb().keys,r=t.tryCatch,o=t.errorObj;function i(a,s,l){return function(u){var d=l._boundValue();e:for(var c=0;c<a.length;++c){var f=a[c];if(f===Error||f!=null&&f.prototype instanceof Error){if(u instanceof f)return r(s).call(d,u)}else if(typeof f=="function"){var p=r(f).call(d,u);if(p===o)return p;if(p)return r(s).call(d,u)}else if(t.isObject(u)){for(var v=n(f),h=0;h<v.length;++h){var g=v[h];if(f[g]!=u[g])continue e}return r(s).call(d,u)}}return e}}return i}),zI}var jI,hte;function k4e(){if(hte)return jI;hte=1;var e=$i(),t=e.maybeWrapAsError,n=u0(),r=n.OperationalError,o=jb();function i(u){return u instanceof Error&&o.getPrototypeOf(u)===Error.prototype}var a=/^(?:name|message|stack|cause)$/;function s(u){var d;if(i(u)){d=new r(u),d.name=u.name,d.message=u.message,d.stack=u.stack;for(var c=o.keys(u),f=0;f<c.length;++f){var p=c[f];a.test(p)||(d[p]=u[p])}return d}return e.markAsOriginatingFromRejection(u),u}function l(u,d){return function(c,f){if(u!==null){if(c){var p=s(t(c));u._attachExtraTrace(p),u._reject(p)}else if(!d)u._fulfill(f);else{for(var v=arguments.length,h=new Array(Math.max(v-1,0)),g=1;g<v;++g)h[g-1]=arguments[g];u._fulfill(h)}u=null}}}return jI=l,jI}var HI,gte;function qlt(){return gte||(gte=1,HI=function(e,t,n,r,o){var i=$i(),a=i.tryCatch;e.method=function(s){if(typeof s!="function")throw new e.TypeError("expecting a function but got "+i.classString(s));return function(){var l=new e(t);l._captureStackTrace(),l._pushContext();var u=a(s).apply(this,arguments),d=l._popContext();return o.checkForgottenReturns(u,d,"Promise.method",l),l._resolveFromSyncValue(u),l}},e.attempt=e.try=function(s){if(typeof s!="function")return r("expecting a function but got "+i.classString(s));var l=new e(t);l._captureStackTrace(),l._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var d=arguments[1],c=arguments[2];u=i.isArray(d)?a(s).apply(c,d):a(s).call(c,d)}else u=a(s)();var f=l._popContext();return o.checkForgottenReturns(u,f,"Promise.try",l),l._resolveFromSyncValue(u),l},e.prototype._resolveFromSyncValue=function(s){s===i.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}}),HI}var WI,vte;function Glt(){return vte||(vte=1,WI=function(e,t,n,r){var o=!1,i=function(u,d){this._reject(d)},a=function(u,d){d.promiseRejectionQueued=!0,d.bindingPromise._then(i,i,null,this,u)},s=function(u,d){(this._bitField&50397184)===0&&this._resolveCallback(d.target)},l=function(u,d){d.promiseRejectionQueued||this._reject(u)};e.prototype.bind=function(u){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var d=n(u),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(d),d instanceof e){var p={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:d};f._then(t,a,void 0,c,p),d._then(s,l,void 0,c,p),c._setOnCancel(d)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(u){u!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=u):this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return(this._bitField&2097152)===2097152},e.bind=function(u,d){return e.resolve(d).bind(u)}}),WI}var VI,mte;function Klt(){return mte||(mte=1,VI=function(e,t,n,r){var o=$i(),i=o.tryCatch,a=o.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var l=this,u=l;l._isCancellable();){if(!l._cancelBy(u)){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}var d=l._cancellationParent;if(d==null||!d._isCancellable()){l._isFollowing()?l._followee().cancel():l._cancelBranched();break}else l._isFollowing()&&l._followee().cancel(),l._setWillBeCancelled(),u=l,l=d}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(l){return l===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(l,u){if(o.isArray(l))for(var d=0;d<l.length;++d)this._doInvokeOnCancel(l[d],u);else if(l!==void 0)if(typeof l=="function"){if(!u){var c=i(l).call(this._boundValue());c===a&&(this._attachExtraTrace(c.e),s.throwLater(c.e))}}else l._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var l=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,l)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}),VI}var qI,yte;function Qlt(){return yte||(yte=1,qI=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){return r instanceof e&&r.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},e.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);var o=arguments[1],i=function(){throw o};return this.caught(r,i)},e.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof e&&r.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:r},void 0);var o=arguments[1];o instanceof e&&o.suppressUnhandledRejections();var i=function(){return o};return this.caught(r,i)}}),qI}var GI,bte;function Ylt(){return bte||(bte=1,GI=function(e){function t(l){l!==void 0?(l=l._target(),this._bitField=l._bitField,this._settledValueField=l._isFateSealed()?l._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
- See http://goo.gl/MqrFmX
- `);return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
- See http://goo.gl/MqrFmX
- `);return this._settledValue()},o=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},i=t.prototype.isRejected=function(){return(this._bitField&16777216)!==0},a=t.prototype.isPending=function(){return(this._bitField&50397184)===0},s=t.prototype.isResolved=function(){return(this._bitField&50331648)!==0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return i.call(this._target())},e.prototype.isFulfilled=function(){return o.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var l=this._target();return l._unsetRejectionIsUnhandled(),r.call(l)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}),GI}var KI,wte;function Zlt(){return wte||(wte=1,KI=function(e,t,n,r,o,i){var a=$i(),s=a.canEvaluate,l=a.tryCatch,u=a.errorObj,d;if(s){for(var c=function(m){return new Function("value","holder",`
- 'use strict';
- holder.pIndex = value;
- holder.checkFulfillment(this);
- `.replace(/Index/g,m))},f=function(m){return new Function("promise","holder",`
- 'use strict';
- holder.pIndex = promise;
- `.replace(/Index/g,m))},p=function(m){for(var b=new Array(m),w=0;w<b.length;++w)b[w]="this.p"+(w+1);var A=b.join(" = ")+" = null;",S=`var promise;
- `+b.map(function(P){return`
- promise = `+P+`;
- if (promise instanceof Promise) {
- promise.cancel();
- }
- `}).join(`
- `),k=b.join(", "),M="Holder$"+m,D=`return function(tryCatch, errorObj, Promise, async) {
- 'use strict';
- function [TheName](fn) {
- [TheProperties]
- this.fn = fn;
- this.asyncNeeded = true;
- this.now = 0;
- }
-
- [TheName].prototype._callFunction = function(promise) {
- promise._pushContext();
- var ret = tryCatch(this.fn)([ThePassedArguments]);
- promise._popContext();
- if (ret === errorObj) {
- promise._rejectCallback(ret.e, false);
- } else {
- promise._resolveCallback(ret);
- }
- };
-
- [TheName].prototype.checkFulfillment = function(promise) {
- var now = ++this.now;
- if (now === [TheTotal]) {
- if (this.asyncNeeded) {
- async.invoke(this._callFunction, this, promise);
- } else {
- this._callFunction(promise);
- }
-
- }
- };
-
- [TheName].prototype._resultCancelled = function() {
- [CancellationCode]
- };
-
- return [TheName];
- }(tryCatch, errorObj, Promise, async);
- `;return D=D.replace(/\[TheName\]/g,M).replace(/\[TheTotal\]/g,m).replace(/\[ThePassedArguments\]/g,k).replace(/\[TheProperties\]/g,A).replace(/\[CancellationCode\]/g,S),new Function("tryCatch","errorObj","Promise","async",D)(l,u,e,o)},v=[],h=[],g=[],y=0;y<8;++y)v.push(p(y+1)),h.push(c(y+1)),g.push(f(y+1));d=function(m){this._reject(m)}}e.join=function(){var m=arguments.length-1,b;if(m>0&&typeof arguments[m]=="function"&&(b=arguments[m],m<=8&&s)){var N=new e(r);N._captureStackTrace();for(var w=v[m-1],A=new w(b),S=h,k=0;k<m;++k){var M=n(arguments[k],N);if(M instanceof e){M=M._target();var D=M._bitField;(D&50397184)===0?(M._then(S[k],d,void 0,N,A),g[k](M,A),A.asyncNeeded=!1):(D&33554432)!==0?S[k].call(N,M._value(),A):(D&16777216)!==0?N._reject(M._reason()):N._cancel()}else S[k].call(N,M,A)}if(!N._isFateSealed()){if(A.asyncNeeded){var P=i();P!==null&&(A.fn=a.domainBind(P,A.fn))}N._setAsyncGuaranteed(),N._setOnCancel(A)}return N}for(var O=arguments.length,_=new Array(O),B=0;B<O;++B)_[B]=arguments[B];b&&_.pop();var N=new t(_).promise();return b!==void 0?N.spread(b):N}}),KI}var QI,Ate;function Xlt(){return Ate||(Ate=1,QI=function(e,t,n,r,o,i){var a=e._getDomain,s=$i(),l=s.tryCatch,u=s.errorObj,d=e._async;function c(p,v,h,g){this.constructor$(p),this._promise._captureStackTrace();var y=a();this._callback=y===null?v:s.domainBind(y,v),this._preservedValues=g===o?new Array(this.length()):null,this._limit=h,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}s.inherits(c,t),c.prototype._asyncInit=function(){this._init$(void 0,-2)},c.prototype._init=function(){},c.prototype._promiseFulfilled=function(p,v){var h=this._values,g=this.length(),y=this._preservedValues,m=this._limit;if(v<0){if(v=v*-1-1,h[v]=p,m>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(m>=1&&this._inFlight>=m)return h[v]=p,this._queue.push(v),!1;y!==null&&(y[v]=p);var b=this._promise,w=this._callback,A=b._boundValue();b._pushContext();var S=l(w).call(A,p,v,g),k=b._popContext();if(i.checkForgottenReturns(S,k,y!==null?"Promise.filter":"Promise.map",b),S===u)return this._reject(S.e),!0;var M=r(S,this._promise);if(M instanceof e){M=M._target();var D=M._bitField;if((D&50397184)===0)return m>=1&&this._inFlight++,h[v]=M,M._proxy(this,(v+1)*-1),!1;if((D&33554432)!==0)S=M._value();else return(D&16777216)!==0?(this._reject(M._reason()),!0):(this._cancel(),!0)}h[v]=S}var P=++this._totalResolved;return P>=g?(y!==null?this._filter(h,y):this._resolve(h),!0):!1},c.prototype._drainQueue=function(){for(var p=this._queue,v=this._limit,h=this._values;p.length>0&&this._inFlight<v;){if(this._isResolved())return;var g=p.pop();this._promiseFulfilled(h[g],g)}},c.prototype._filter=function(p,v){for(var h=v.length,g=new Array(h),y=0,m=0;m<h;++m)p[m]&&(g[y++]=v[m]);g.length=y,this._resolve(g)},c.prototype.preservedValues=function(){return this._preservedValues};function f(p,v,h,g){if(typeof v!="function")return n("expecting a function but got "+s.classString(v));var y=0;if(h!==void 0)if(typeof h=="object"&&h!==null){if(typeof h.concurrency!="number")return e.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(h.concurrency)));y=h.concurrency}else return e.reject(new TypeError("options argument must be an object but it is "+s.classString(h)));return y=typeof y=="number"&&isFinite(y)&&y>=1?y:0,new c(p,v,y,g).promise()}e.prototype.map=function(p,v){return f(this,p,v,null)},e.map=function(p,v,h,g){return f(p,v,h,g)}}),QI}var YI,Cte;function Jlt(){if(Cte)return YI;Cte=1;var e=Object.create;if(e){var t=e(null),n=e(null);t[" size"]=n[" size"]=0}return YI=function(r){var o=$i(),i=o.canEvaluate,a=o.isIdentifier,s,l;{var u=function(g){return new Function("ensureMethod",`
- return function(obj) {
- 'use strict'
- var len = this.length;
- ensureMethod(obj, 'methodName');
- switch(len) {
- case 1: return obj.methodName(this[0]);
- case 2: return obj.methodName(this[0], this[1]);
- case 3: return obj.methodName(this[0], this[1], this[2]);
- case 0: return obj.methodName();
- default:
- return obj.methodName.apply(obj, this);
- }
- };
- `.replace(/methodName/g,g))(f)},d=function(g){return new Function("obj",`
- 'use strict';
- return obj.propertyName;
- `.replace("propertyName",g))},c=function(g,y,m){var b=m[g];if(typeof b!="function"){if(!a(g))return null;if(b=y(g),m[g]=b,m[" size"]++,m[" size"]>512){for(var w=Object.keys(m),A=0;A<256;++A)delete m[w[A]];m[" size"]=w.length-256}}return b};s=function(g){return c(g,u,t)},l=function(g){return c(g,d,n)}}function f(g,y){var m;if(g!=null&&(m=g[y]),typeof m!="function"){var b="Object "+o.classString(g)+" has no method '"+o.toString(y)+"'";throw new r.TypeError(b)}return m}function p(g){var y=this.pop(),m=f(g,y);return m.apply(g,this)}r.prototype.call=function(g){for(var y=arguments.length,m=new Array(Math.max(y-1,0)),b=1;b<y;++b)m[b-1]=arguments[b];if(i){var w=s(g);if(w!==null)return this._then(w,void 0,void 0,m,void 0)}return m.push(g),this._then(p,void 0,void 0,m,void 0)};function v(g){return g[this]}function h(g){var y=+this;return y<0&&(y=Math.max(0,y+g.length)),g[y]}r.prototype.get=function(g){var y=typeof g=="number",m;if(y)m=h;else if(i){var b=l(g);m=b!==null?b:v}else m=v;return this._then(m,void 0,void 0,g,void 0)}},YI}var ZI,xte;function eut(){return xte||(xte=1,ZI=function(e,t,n,r,o,i){var a=$i(),s=u0().TypeError,l=$i().inherits,u=a.errorObj,d=a.tryCatch,c={};function f(b){setTimeout(function(){throw b},0)}function p(b){var w=n(b);return w!==b&&typeof b._isDisposable=="function"&&typeof b._getDisposer=="function"&&b._isDisposable()&&w._setDisposable(b._getDisposer()),w}function v(b,w){var A=0,S=b.length,k=new e(o);function M(){if(A>=S)return k._fulfill();var D=p(b[A++]);if(D instanceof e&&D._isDisposable()){try{D=n(D._getDisposer().tryDispose(w),b.promise)}catch(P){return f(P)}if(D instanceof e)return D._then(M,f,null,null,null)}M()}return M(),k}function h(b,w,A){this._data=b,this._promise=w,this._context=A}h.prototype.data=function(){return this._data},h.prototype.promise=function(){return this._promise},h.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():c},h.prototype.tryDispose=function(b){var w=this.resource(),A=this._context;A!==void 0&&A._pushContext();var S=w!==c?this.doDispose(w,b):null;return A!==void 0&&A._popContext(),this._promise._unsetDisposable(),this._data=null,S},h.isDisposer=function(b){return b!=null&&typeof b.resource=="function"&&typeof b.tryDispose=="function"};function g(b,w,A){this.constructor$(b,w,A)}l(g,h),g.prototype.doDispose=function(b,w){var A=this.data();return A.call(b,b,w)};function y(b){return h.isDisposer(b)?(this.resources[this.index]._setDisposable(b),b.promise()):b}function m(b){this.length=b,this.promise=null,this[b-1]=null}m.prototype._resultCancelled=function(){for(var b=this.length,w=0;w<b;++w){var A=this[w];A instanceof e&&A.cancel()}},e.using=function(){var b=arguments.length;if(b<2)return t("you must pass at least 2 arguments to Promise.using");var w=arguments[b-1];if(typeof w!="function")return t("expecting a function but got "+a.classString(w));var A,S=!0;b===2&&Array.isArray(arguments[0])?(A=arguments[0],b=A.length,S=!1):(A=arguments,b--);for(var k=new m(b),M=0;M<b;++M){var D=A[M];if(h.isDisposer(D)){var P=D;D=D.promise(),D._setDisposable(P)}else{var O=n(D);O instanceof e&&(D=O._then(y,null,null,{resources:k,index:M},void 0))}k[M]=D}for(var _=new Array(k.length),M=0;M<_.length;++M)_[M]=e.resolve(k[M]).reflect();var B=e.all(_).then(function(q){for(var U=0;U<q.length;++U){var j=q[U];if(j.isRejected())return u.e=j.error(),u;if(!j.isFulfilled()){B.cancel();return}q[U]=j.value()}N._pushContext(),w=d(w);var H=S?w.apply(void 0,q):w(q),G=N._popContext();return i.checkForgottenReturns(H,G,"Promise.using",N),H}),N=B.lastly(function(){var q=new e.PromiseInspection(B);return v(k,q)});return k.promise=N,N._setOnCancel(k),N},e.prototype._setDisposable=function(b){this._bitField=this._bitField|131072,this._disposer=b},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(b){if(typeof b=="function")return new g(b,this,r());throw new s}}),ZI}var XI,Ste;function tut(){return Ste||(Ste=1,XI=function(e,t,n){var r=$i(),o=e.TimeoutError;function i(c){this.handle=c}i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(c){return s(+this).thenReturn(c)},s=e.delay=function(c,f){var p,v;return f!==void 0?(p=e.resolve(f)._then(a,null,null,c,void 0),n.cancellation()&&f instanceof e&&p._setOnCancel(f)):(p=new e(t),v=setTimeout(function(){p._fulfill()},+c),n.cancellation()&&p._setOnCancel(new i(v)),p._captureStackTrace()),p._setAsyncGuaranteed(),p};e.prototype.delay=function(c){return s(c,this)};var l=function(c,f,p){var v;typeof f!="string"?f instanceof Error?v=f:v=new o("operation timed out"):v=new o(f),r.markAsOriginatingFromRejection(v),c._attachExtraTrace(v),c._reject(v),p?.cancel()};function u(c){return clearTimeout(this.handle),c}function d(c){throw clearTimeout(this.handle),c}e.prototype.timeout=function(c,f){c=+c;var p,v,h=new i(setTimeout(function(){p.isPending()&&l(p,f,v)},c));return n.cancellation()?(v=this.then(),p=v._then(u,d,void 0,h,void 0),p._setOnCancel(h)):p=this._then(u,d,void 0,h,void 0),p}}),XI}var JI,Ete;function nut(){return Ete||(Ete=1,JI=function(e,t,n,r,o,i){var a=u0(),s=a.TypeError,l=$i(),u=l.errorObj,d=l.tryCatch,c=[];function f(v,h,g){for(var y=0;y<h.length;++y){g._pushContext();var m=d(h[y])(v);if(g._popContext(),m===u){g._pushContext();var b=e.reject(u.e);return g._popContext(),b}var w=r(m,g);if(w instanceof e)return w}return null}function p(v,h,g,y){if(i.cancellation()){var m=new e(n),b=this._finallyPromise=new e(n);this._promise=m.lastly(function(){return b}),m._captureStackTrace(),m._setOnCancel(this)}else{var w=this._promise=new e(n);w._captureStackTrace()}this._stack=y,this._generatorFunction=v,this._receiver=h,this._generator=void 0,this._yieldHandlers=typeof g=="function"?[g].concat(c):c,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(p,o),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){this._promise=this._generator=null,i.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var v=typeof this._generator.return<"u",h;if(v)this._promise._pushContext(),h=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var g=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=g,this._promise._attachExtraTrace(g),this._promise._pushContext(),h=d(this._generator.throw).call(this._generator,g),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(h)}},p.prototype._promiseFulfilled=function(v){this._yieldedPromise=null,this._promise._pushContext();var h=d(this._generator.next).call(this._generator,v);this._promise._popContext(),this._continue(h)},p.prototype._promiseRejected=function(v){this._yieldedPromise=null,this._promise._attachExtraTrace(v),this._promise._pushContext();var h=d(this._generator.throw).call(this._generator,v);this._promise._popContext(),this._continue(h)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var v=this._yieldedPromise;this._yieldedPromise=null,v.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(v){var h=this._promise;if(v===u)return this._cleanup(),this._cancellationPhase?h.cancel():h._rejectCallback(v.e,!1);var g=v.value;if(v.done===!0)return this._cleanup(),this._cancellationPhase?h.cancel():h._resolveCallback(g);var y=r(g,this._promise);if(!(y instanceof e)&&(y=f(y,this._yieldHandlers,this._promise),y===null)){this._promiseRejected(new s(`A value %s was yielded that could not be treated as a promise
- See http://goo.gl/MqrFmX
- `.replace("%s",g)+`From coroutine:
- `+this._stack.split(`
- `).slice(1,-7).join(`
- `)));return}y=y._target();var m=y._bitField;(m&50397184)===0?(this._yieldedPromise=y,y._proxy(this,null)):(m&33554432)!==0?e._async.invoke(this._promiseFulfilled,this,y._value()):(m&16777216)!==0?e._async.invoke(this._promiseRejected,this,y._reason()):this._promiseCancelled()},e.coroutine=function(v,h){if(typeof v!="function")throw new s(`generatorFunction must be a function
- See http://goo.gl/MqrFmX
- `);var g=Object(h).yieldHandler,y=p,m=new Error().stack;return function(){var b=v.apply(this,arguments),w=new y(void 0,void 0,g,m),A=w.promise();return w._generator=b,w._promiseFulfilled(void 0),A}},e.coroutine.addYieldHandler=function(v){if(typeof v!="function")throw new s("expecting a function but got "+l.classString(v));c.push(v)},e.spawn=function(v){if(i.deprecated("Promise.spawn()","Promise.coroutine()"),typeof v!="function")return t(`generatorFunction must be a function
- See http://goo.gl/MqrFmX
- `);var h=new p(v,this),g=h.promise();return h._run(e.spawn),g}}),JI}var eO,kte;function rut(){return kte||(kte=1,eO=function(e){var t=$i(),n=e._async,r=t.tryCatch,o=t.errorObj;function i(l,u){var d=this;if(!t.isArray(l))return a.call(d,l,u);var c=r(u).apply(d._boundValue(),[null].concat(l));c===o&&n.throwLater(c.e)}function a(l,u){var d=this,c=d._boundValue(),f=l===void 0?r(u).call(c,null):r(u).call(c,null,l);f===o&&n.throwLater(f.e)}function s(l,u){var d=this;if(!l){var c=new Error(l+"");c.cause=l,l=c}var f=r(u).call(d._boundValue(),l);f===o&&n.throwLater(f.e)}e.prototype.asCallback=e.prototype.nodeify=function(l,u){if(typeof l=="function"){var d=a;u!==void 0&&Object(u).spread&&(d=i),this._then(d,s,void 0,this,l)}return this}}),eO}var tO,Tte;function out(){return Tte||(Tte=1,tO=function(e,t){var n={},r=$i(),o=k4e(),i=r.withAppended,a=r.maybeWrapAsError,s=r.canEvaluate,l=u0().TypeError,u="Async",d={__isPromisified__:!0},c=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],f=new RegExp("^(?:"+c.join("|")+")$"),p=function(B){return r.isIdentifier(B)&&B.charAt(0)!=="_"&&B!=="constructor"};function v(B){return!f.test(B)}function h(B){try{return B.__isPromisified__===!0}catch{return!1}}function g(B,N,q){var U=r.getDataPropertyOrDefault(B,N+q,d);return U?h(U):!1}function y(B,N,q){for(var U=0;U<B.length;U+=2){var j=B[U];if(q.test(j)){for(var H=j.replace(q,""),G=0;G<B.length;G+=2)if(B[G]===H)throw new l(`Cannot promisify an API that has normal methods with '%s'-suffix
- See http://goo.gl/MqrFmX
- `.replace("%s",N))}}}function m(B,N,q,U){for(var j=r.inheritedDataKeys(B),H=[],G=0;G<j.length;++G){var Z=j[G],$=B[Z],L=U===p?!0:p(Z);typeof $=="function"&&!h($)&&!g(B,Z,N)&&U(Z,$,B,L)&&H.push(Z,$)}return y(H,N,q),H}var b=function(B){return B.replace(/([$])/,"\\$")},w;{var A=function(B){for(var N=[B],q=Math.max(0,B-1-3),U=B-1;U>=q;--U)N.push(U);for(var U=B+1;U<=3;++U)N.push(U);return N},S=function(B){return r.filledRange(B,"_arg","")},k=function(B){return r.filledRange(Math.max(B,3),"_arg","")},M=function(B){return typeof B.length=="number"?Math.max(Math.min(B.length,1024),0):0};w=function(B,N,q,U,j,H){var G=Math.max(0,M(U)-1),Z=A(G),$=typeof B=="string"||N===n;function L(te){var X=S(te).join(", "),ue=te>0?", ":"",ve;return $?ve=`ret = callback.call(this, {{args}}, nodeback); break;
- `:ve=N===void 0?`ret = callback({{args}}, nodeback); break;
- `:`ret = callback.call(receiver, {{args}}, nodeback); break;
- `,ve.replace("{{args}}",X).replace(", ",ue)}function W(){for(var te="",X=0;X<Z.length;++X)te+="case "+Z[X]+":"+L(Z[X]);return te+=`
- default:
- var args = new Array(len + 1);
- var i = 0;
- for (var i = 0; i < len; ++i) {
- args[i] = arguments[i];
- }
- args[i] = nodeback;
- [CodeForCall]
- break;
- `.replace("[CodeForCall]",$?`ret = callback.apply(this, args);
- `:`ret = callback.apply(receiver, args);
- `),te}var ie=typeof B=="string"?"this != null ? this['"+B+"'] : fn":"fn",ee=`'use strict';
- var ret = function (Parameters) {
- 'use strict';
- var len = arguments.length;
- var promise = new Promise(INTERNAL);
- promise._captureStackTrace();
- var nodeback = nodebackForPromise(promise, `+H+`);
- var ret;
- var callback = tryCatch([GetFunctionCode]);
- switch(len) {
- [CodeForSwitchCase]
- }
- if (ret === errorObj) {
- promise._rejectCallback(maybeWrapAsError(ret.e), true, true);
- }
- if (!promise._isFateSealed()) promise._setAsyncGuaranteed();
- return promise;
- };
- notEnumerableProp(ret, '__isPromisified__', true);
- return ret;
- `.replace("[CodeForSwitchCase]",W()).replace("[GetFunctionCode]",ie);return ee=ee.replace("Parameters",k(G)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",ee)(e,U,N,i,a,o,r.tryCatch,r.errorObj,r.notEnumerableProp,t)}}function D(B,N,q,U,j,H){var G=(function(){return this})(),Z=B;typeof Z=="string"&&(B=U);function $(){var L=N;N===n&&(L=this);var W=new e(t);W._captureStackTrace();var ie=typeof Z=="string"&&this!==G?this[Z]:B,ee=o(W,H);try{ie.apply(L,i(arguments,ee))}catch(te){W._rejectCallback(a(te),!0,!0)}return W._isFateSealed()||W._setAsyncGuaranteed(),W}return r.notEnumerableProp($,"__isPromisified__",!0),$}var P=s?w:D;function O(B,N,q,U,j){for(var H=new RegExp(b(N)+"$"),G=m(B,N,H,q),Z=0,$=G.length;Z<$;Z+=2){var L=G[Z],W=G[Z+1],ie=L+N;if(U===P)B[ie]=P(L,n,L,W,N,j);else{var ee=U(W,function(){return P(L,n,L,W,N,j)});r.notEnumerableProp(ee,"__isPromisified__",!0),B[ie]=ee}}return r.toFastProperties(B),B}function _(B,N,q){return P(B,N,void 0,B,null,q)}e.promisify=function(B,N){if(typeof B!="function")throw new l("expecting a function but got "+r.classString(B));if(h(B))return B;N=Object(N);var q=N.context===void 0?n:N.context,U=!!N.multiArgs,j=_(B,q,U);return r.copyDescriptors(B,j,v),j},e.promisifyAll=function(B,N){if(typeof B!="function"&&typeof B!="object")throw new l(`the target of promisifyAll must be an object or a function
- See http://goo.gl/MqrFmX
- `);N=Object(N);var q=!!N.multiArgs,U=N.suffix;typeof U!="string"&&(U=u);var j=N.filter;typeof j!="function"&&(j=p);var H=N.promisifier;if(typeof H!="function"&&(H=P),!r.isIdentifier(U))throw new RangeError(`suffix must be a valid identifier
- See http://goo.gl/MqrFmX
- `);for(var G=r.inheritedDataKeys(B),Z=0;Z<G.length;++Z){var $=B[G[Z]];G[Z]!=="constructor"&&r.isClass($)&&(O($.prototype,U,j,H,q),O($,U,j,H,q))}return O(B,U,j,H,q)}}),tO}var nO,_te;function iut(){return _te||(_te=1,nO=function(e,t,n,r){var o=$i(),i=o.isObject,a=jb(),s;typeof Map=="function"&&(s=Map);var l=(function(){var f=0,p=0;function v(h,g){this[f]=h,this[f+p]=g,f++}return function(g){p=g.size,f=0;var y=new Array(g.size*2);return g.forEach(v,y),y}})(),u=function(f){for(var p=new s,v=f.length/2|0,h=0;h<v;++h){var g=f[v+h],y=f[h];p.set(g,y)}return p};function d(f){var p=!1,v;if(s!==void 0&&f instanceof s)v=l(f),p=!0;else{var h=a.keys(f),g=h.length;v=new Array(g*2);for(var y=0;y<g;++y){var m=h[y];v[y]=f[m],v[y+g]=m}}this.constructor$(v),this._isMap=p,this._init$(void 0,-3)}o.inherits(d,t),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(f,p){this._values[p]=f;var v=++this._totalResolved;if(v>=this._length){var h;if(this._isMap)h=u(this._values);else{h={};for(var g=this.length(),y=0,m=this.length();y<m;++y)h[this._values[y+g]]=this._values[y]}return this._resolve(h),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(f){return f>>1};function c(f){var p,v=n(f);if(i(v))v instanceof e?p=v._then(e.props,void 0,void 0,void 0,void 0):p=new d(v).promise();else return r(`cannot await properties of a non-object
- See http://goo.gl/MqrFmX
- `);return v instanceof e&&p._propagateFrom(v,2),p}e.prototype.props=function(){return c(this)},e.props=function(f){return c(f)}}),nO}var rO,Dte;function aut(){return Dte||(Dte=1,rO=function(e,t,n,r){var o=$i(),i=function(s){return s.then(function(l){return a(l,s)})};function a(s,l){var u=n(s);if(u instanceof e)return i(u);if(s=o.asArray(s),s===null)return r("expecting an array or an iterable object but got "+o.classString(s));var d=new e(t);l!==void 0&&d._propagateFrom(l,3);for(var c=d._fulfill,f=d._reject,p=0,v=s.length;p<v;++p){var h=s[p];h===void 0&&!(p in s)||e.cast(h)._then(c,f,void 0,d,null)}return d}e.race=function(s){return a(s,void 0)},e.prototype.race=function(){return a(this,void 0)}}),rO}var oO,Ite;function sut(){return Ite||(Ite=1,oO=function(e,t,n,r,o,i){var a=e._getDomain,s=$i(),l=s.tryCatch;function u(v,h,g,y){this.constructor$(v);var m=a();this._fn=m===null?h:s.domainBind(m,h),g!==void 0&&(g=e.resolve(g),g._attachCancellationCallback(this)),this._initialValue=g,this._currentCancellable=null,y===o?this._eachValues=Array(this._length):y===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}s.inherits(u,t),u.prototype._gotAccum=function(v){this._eachValues!==void 0&&this._eachValues!==null&&v!==o&&this._eachValues.push(v)},u.prototype._eachComplete=function(v){return this._eachValues!==null&&this._eachValues.push(v),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(v){this._promise._resolveCallback(v),this._values=null},u.prototype._resultCancelled=function(v){if(v===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},u.prototype._iterate=function(v){this._values=v;var h,g,y=v.length;if(this._initialValue!==void 0?(h=this._initialValue,g=0):(h=e.resolve(v[0]),g=1),this._currentCancellable=h,!h.isRejected())for(;g<y;++g){var m={accum:null,value:v[g],index:g,length:y,array:this};h=h._then(f,void 0,void 0,m,void 0)}this._eachValues!==void 0&&(h=h._then(this._eachComplete,void 0,void 0,this,void 0)),h._then(d,d,void 0,h,this)},e.prototype.reduce=function(v,h){return c(this,v,h,null)},e.reduce=function(v,h,g,y){return c(v,h,g,y)};function d(v,h){this.isFulfilled()?h._resolve(v):h._reject(v)}function c(v,h,g,y){if(typeof h!="function")return n("expecting a function but got "+s.classString(h));var m=new u(v,h,g,y);return m.promise()}function f(v){this.accum=v,this.array._gotAccum(v);var h=r(this.value,this.array._promise);return h instanceof e?(this.array._currentCancellable=h,h._then(p,void 0,void 0,this,void 0)):p.call(this,h)}function p(v){var h=this.array,g=h._promise,y=l(h._fn);g._pushContext();var m;h._eachValues!==void 0?m=y.call(g._boundValue(),v,this.index,this.length):m=y.call(g._boundValue(),this.accum,v,this.index,this.length),m instanceof e&&(h._currentCancellable=m);var b=g._popContext();return i.checkForgottenReturns(m,b,h._eachValues!==void 0?"Promise.each":"Promise.reduce",g),m}}),oO}var iO,Ote;function lut(){return Ote||(Ote=1,iO=function(e,t,n){var r=e.PromiseInspection,o=$i();function i(a){this.constructor$(a)}o.inherits(i,t),i.prototype._promiseResolved=function(a,s){this._values[a]=s;var l=++this._totalResolved;return l>=this._length?(this._resolve(this._values),!0):!1},i.prototype._promiseFulfilled=function(a,s){var l=new r;return l._bitField=33554432,l._settledValueField=a,this._promiseResolved(s,l)},i.prototype._promiseRejected=function(a,s){var l=new r;return l._bitField=16777216,l._settledValueField=a,this._promiseResolved(s,l)},e.settle=function(a){return n.deprecated(".settle()",".reflect()"),new i(a).promise()},e.prototype.settle=function(){return e.settle(this)}}),iO}var aO,Mte;function uut(){return Mte||(Mte=1,aO=function(e,t,n){var r=$i(),o=u0().RangeError,i=u0().AggregateError,a=r.isArray,s={};function l(d){this.constructor$(d),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(l,t),l.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var d=a(this._values);!this._isResolved()&&d&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(d){this._howMany=d},l.prototype._promiseFulfilled=function(d){return this._addFulfilled(d),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},l.prototype._promiseRejected=function(d){return this._addRejected(d),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof e||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var d=new i,c=this.length();c<this._values.length;++c)this._values[c]!==s&&d.push(this._values[c]);return d.length>0?this._reject(d):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(d){this._values.push(d)},l.prototype._addFulfilled=function(d){this._values[this._totalResolved++]=d},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(d){var c="Input array must contain at least "+this._howMany+" items but contains only "+d+" items";return new o(c)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(d,c){if((c|0)!==c||c<0)return n(`expecting a positive integer
- See http://goo.gl/MqrFmX
- `);var f=new l(d),p=f.promise();return f.setHowMany(c),f.init(),p}e.some=function(d,c){return u(d,c)},e.prototype.some=function(d){return u(this,d)},e._SomePromiseArray=l}),aO}var sO,Pte;function cut(){return Pte||(Pte=1,sO=function(e,t){var n=e.map;e.prototype.filter=function(r,o){return n(this,r,o,t)},e.filter=function(r,o,i){return n(r,o,i,t)}}),sO}var lO,Nte;function dut(){return Nte||(Nte=1,lO=function(e,t){var n=e.reduce,r=e.all;function o(){return r(this)}function i(a,s){return n(a,s,t,t)}e.prototype.each=function(a){return n(this,a,t,0)._then(o,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(a){return n(this,a,t,t)},e.each=function(a,s){return n(a,s,t,0)._then(o,void 0,void 0,a,void 0)},e.mapSeries=i}),lO}var uO,Rte;function fut(){return Rte||(Rte=1,uO=function(e){var t=e._SomePromiseArray;function n(r){var o=new t(r),i=o.promise();return o.setHowMany(1),o.setUnwrap(),o.init(),i}e.any=function(r){return n(r)},e.prototype.any=function(){return n(this)}}),uO}var Bte;function put(){return Bte||(Bte=1,(function(e){e.exports=function(){var t=function(){return new f(`circular promise resolution chain
- See http://goo.gl/MqrFmX
- `)},n=function(){return new _.PromiseInspection(this._target())},r=function(U){return _.reject(new f(U))};function o(){}var i={},a=$i(),s;a.isNode?s=function(){var U=process.domain;return U===void 0&&(U=null),U}:s=function(){return null},a.notEnumerableProp(_,"_getDomain",s);var l=jb(),u=Ult(),d=new u;l.defineProperty(_,"_async",{value:d});var c=u0(),f=_.TypeError=c.TypeError;_.RangeError=c.RangeError;var p=_.CancellationError=c.CancellationError;_.TimeoutError=c.TimeoutError,_.OperationalError=c.OperationalError,_.RejectionError=c.OperationalError,_.AggregateError=c.AggregateError;var v=function(){},h={},g={},y=$lt()(_,v),m=zlt()(_,v,y,r,o),b=jlt()(_),w=b.create,A=Hlt()(_,b);A.CapturedTrace;var S=Wlt()(_,y),k=Vlt()(g),M=k4e(),D=a.errorObj,P=a.tryCatch;function O(U,j){if(typeof j!="function")throw new f("expecting a function but got "+a.classString(j));if(U.constructor!==_)throw new f(`the promise constructor cannot be invoked directly
- See http://goo.gl/MqrFmX
- `)}function _(U){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,U!==v&&(O(this,U),this._resolveFromExecutor(U)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}_.prototype.toString=function(){return"[object Promise]"},_.prototype.caught=_.prototype.catch=function(U){var j=arguments.length;if(j>1){var H=new Array(j-1),G=0,Z;for(Z=0;Z<j-1;++Z){var $=arguments[Z];if(a.isObject($))H[G++]=$;else return r("expecting an object but got A catch statement predicate "+a.classString($))}return H.length=G,U=arguments[Z],this.then(void 0,k(H,U,this))}return this.then(void 0,U)},_.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},_.prototype.then=function(U,j){if(A.warnings()&&arguments.length>0&&typeof U!="function"&&typeof j!="function"){var H=".then() only accepts functions but was passed: "+a.classString(U);arguments.length>1&&(H+=", "+a.classString(j)),this._warn(H)}return this._then(U,j,void 0,void 0,void 0)},_.prototype.done=function(U,j){var H=this._then(U,j,void 0,void 0,void 0);H._setIsFinal()},_.prototype.spread=function(U){return typeof U!="function"?r("expecting a function but got "+a.classString(U)):this.all()._then(U,void 0,void 0,h,void 0)},_.prototype.toJSON=function(){var U={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(U.fulfillmentValue=this.value(),U.isFulfilled=!0):this.isRejected()&&(U.rejectionReason=this.reason(),U.isRejected=!0),U},_.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new m(this).promise()},_.prototype.error=function(U){return this.caught(a.originatesFromRejection,U)},_.getNewLibraryCopy=e.exports,_.is=function(U){return U instanceof _},_.fromNode=_.fromCallback=function(U){var j=new _(v);j._captureStackTrace();var H=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,G=P(U)(M(j,H));return G===D&&j._rejectCallback(G.e,!0),j._isFateSealed()||j._setAsyncGuaranteed(),j},_.all=function(U){return new m(U).promise()},_.cast=function(U){var j=y(U);return j instanceof _||(j=new _(v),j._captureStackTrace(),j._setFulfilled(),j._rejectionHandler0=U),j},_.resolve=_.fulfilled=_.cast,_.reject=_.rejected=function(U){var j=new _(v);return j._captureStackTrace(),j._rejectCallback(U,!0),j},_.setScheduler=function(U){if(typeof U!="function")throw new f("expecting a function but got "+a.classString(U));return d.setScheduler(U)},_.prototype._then=function(U,j,H,G,Z){var $=Z!==void 0,L=$?Z:new _(v),W=this._target(),ie=W._bitField;$||(L._propagateFrom(this,3),L._captureStackTrace(),G===void 0&&(this._bitField&2097152)!==0&&((ie&50397184)!==0?G=this._boundValue():G=W===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,L));var ee=s();if((ie&50397184)!==0){var te,X,ue=W._settlePromiseCtx;(ie&33554432)!==0?(X=W._rejectionHandler0,te=U):(ie&16777216)!==0?(X=W._fulfillmentHandler0,te=j,W._unsetRejectionIsUnhandled()):(ue=W._settlePromiseLateCancellationObserver,X=new p("late cancellation observer"),W._attachExtraTrace(X),te=j),d.invoke(ue,W,{handler:ee===null?te:typeof te=="function"&&a.domainBind(ee,te),promise:L,receiver:G,value:X})}else W._addCallbacks(U,j,L,G,ee);return L},_.prototype._length=function(){return this._bitField&65535},_.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},_.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},_.prototype._setLength=function(U){this._bitField=this._bitField&-65536|U&65535},_.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},_.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},_.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},_.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},_.prototype._isFinal=function(){return(this._bitField&4194304)>0},_.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},_.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},_.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},_.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},_.prototype._receiverAt=function(U){var j=U===0?this._receiver0:this[U*4-4+3];if(j!==i)return j===void 0&&this._isBound()?this._boundValue():j},_.prototype._promiseAt=function(U){return this[U*4-4+2]},_.prototype._fulfillmentHandlerAt=function(U){return this[U*4-4+0]},_.prototype._rejectionHandlerAt=function(U){return this[U*4-4+1]},_.prototype._boundValue=function(){},_.prototype._migrateCallback0=function(U){U._bitField;var j=U._fulfillmentHandler0,H=U._rejectionHandler0,G=U._promise0,Z=U._receiverAt(0);Z===void 0&&(Z=i),this._addCallbacks(j,H,G,Z,null)},_.prototype._migrateCallbackAt=function(U,j){var H=U._fulfillmentHandlerAt(j),G=U._rejectionHandlerAt(j),Z=U._promiseAt(j),$=U._receiverAt(j);$===void 0&&($=i),this._addCallbacks(H,G,Z,$,null)},_.prototype._addCallbacks=function(U,j,H,G,Z){var $=this._length();if($>=65531&&($=0,this._setLength(0)),$===0)this._promise0=H,this._receiver0=G,typeof U=="function"&&(this._fulfillmentHandler0=Z===null?U:a.domainBind(Z,U)),typeof j=="function"&&(this._rejectionHandler0=Z===null?j:a.domainBind(Z,j));else{var L=$*4-4;this[L+2]=H,this[L+3]=G,typeof U=="function"&&(this[L+0]=Z===null?U:a.domainBind(Z,U)),typeof j=="function"&&(this[L+1]=Z===null?j:a.domainBind(Z,j))}return this._setLength($+1),$},_.prototype._proxy=function(U,j){this._addCallbacks(void 0,void 0,j,U,null)},_.prototype._resolveCallback=function(U,j){if((this._bitField&117506048)===0){if(U===this)return this._rejectCallback(t(),!1);var H=y(U,this);if(!(H instanceof _))return this._fulfill(U);j&&this._propagateFrom(H,2);var G=H._target();if(G===this){this._reject(t());return}var Z=G._bitField;if((Z&50397184)===0){var $=this._length();$>0&&G._migrateCallback0(this);for(var L=1;L<$;++L)G._migrateCallbackAt(this,L);this._setFollowing(),this._setLength(0),this._setFollowee(G)}else if((Z&33554432)!==0)this._fulfill(G._value());else if((Z&16777216)!==0)this._reject(G._reason());else{var W=new p("late cancellation observer");G._attachExtraTrace(W),this._reject(W)}}},_.prototype._rejectCallback=function(U,j,H){var G=a.ensureErrorObject(U),Z=G===U;if(!Z&&!H&&A.warnings()){var $="a promise was rejected with a non-error: "+a.classString(U);this._warn($,!0)}this._attachExtraTrace(G,j?Z:!1),this._reject(U)},_.prototype._resolveFromExecutor=function(U){var j=this;this._captureStackTrace(),this._pushContext();var H=!0,G=this._execute(U,function(Z){j._resolveCallback(Z)},function(Z){j._rejectCallback(Z,H)});H=!1,this._popContext(),G!==void 0&&j._rejectCallback(G,!0)},_.prototype._settlePromiseFromHandler=function(U,j,H,G){var Z=G._bitField;if((Z&65536)===0){G._pushContext();var $;j===h?!H||typeof H.length!="number"?($=D,$.e=new f("cannot .spread() a non-array: "+a.classString(H))):$=P(U).apply(this._boundValue(),H):$=P(U).call(j,H);var L=G._popContext();Z=G._bitField,(Z&65536)===0&&($===g?G._reject(H):$===D?G._rejectCallback($.e,!1):(A.checkForgottenReturns($,L,"",G,this),G._resolveCallback($)))}},_.prototype._target=function(){for(var U=this;U._isFollowing();)U=U._followee();return U},_.prototype._followee=function(){return this._rejectionHandler0},_.prototype._setFollowee=function(U){this._rejectionHandler0=U},_.prototype._settlePromise=function(U,j,H,G){var Z=U instanceof _,$=this._bitField,L=($&134217728)!==0;($&65536)!==0?(Z&&U._invokeInternalOnCancel(),H instanceof S&&H.isFinallyHandler()?(H.cancelPromise=U,P(j).call(H,G)===D&&U._reject(D.e)):j===n?U._fulfill(n.call(H)):H instanceof o?H._promiseCancelled(U):Z||U instanceof m?U._cancel():H.cancel()):typeof j=="function"?Z?(L&&U._setAsyncGuaranteed(),this._settlePromiseFromHandler(j,H,G,U)):j.call(H,G,U):H instanceof o?H._isResolved()||(($&33554432)!==0?H._promiseFulfilled(G,U):H._promiseRejected(G,U)):Z&&(L&&U._setAsyncGuaranteed(),($&33554432)!==0?U._fulfill(G):U._reject(G))},_.prototype._settlePromiseLateCancellationObserver=function(U){var j=U.handler,H=U.promise,G=U.receiver,Z=U.value;typeof j=="function"?H instanceof _?this._settlePromiseFromHandler(j,G,Z,H):j.call(G,Z,H):H instanceof _&&H._reject(Z)},_.prototype._settlePromiseCtx=function(U){this._settlePromise(U.promise,U.handler,U.receiver,U.value)},_.prototype._settlePromise0=function(U,j,H){var G=this._promise0,Z=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(G,U,Z,j)},_.prototype._clearCallbackDataAtIndex=function(U){var j=U*4-4;this[j+2]=this[j+3]=this[j+0]=this[j+1]=void 0},_.prototype._fulfill=function(U){var j=this._bitField;if(!((j&117506048)>>>16)){if(U===this){var H=t();return this._attachExtraTrace(H),this._reject(H)}this._setFulfilled(),this._rejectionHandler0=U,(j&65535)>0&&((j&134217728)!==0?this._settlePromises():d.settlePromises(this))}},_.prototype._reject=function(U){var j=this._bitField;if(!((j&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=U,this._isFinal())return d.fatalError(U,a.isNode);(j&65535)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},_.prototype._fulfillPromises=function(U,j){for(var H=1;H<U;H++){var G=this._fulfillmentHandlerAt(H),Z=this._promiseAt(H),$=this._receiverAt(H);this._clearCallbackDataAtIndex(H),this._settlePromise(Z,G,$,j)}},_.prototype._rejectPromises=function(U,j){for(var H=1;H<U;H++){var G=this._rejectionHandlerAt(H),Z=this._promiseAt(H),$=this._receiverAt(H);this._clearCallbackDataAtIndex(H),this._settlePromise(Z,G,$,j)}},_.prototype._settlePromises=function(){var U=this._bitField,j=U&65535;if(j>0){if((U&16842752)!==0){var H=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,H,U),this._rejectPromises(j,H)}else{var G=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,G,U),this._fulfillPromises(j,G)}this._setLength(0)}this._clearCancellationData()},_.prototype._settledValue=function(){var U=this._bitField;if((U&33554432)!==0)return this._rejectionHandler0;if((U&16777216)!==0)return this._fulfillmentHandler0};function B(U){this.promise._resolveCallback(U)}function N(U){this.promise._rejectCallback(U,!1)}_.defer=_.pending=function(){A.deprecated("Promise.defer","new Promise");var U=new _(v);return{promise:U,resolve:B,reject:N}},a.notEnumerableProp(_,"_makeSelfResolutionError",t),qlt()(_,v,y,r,A),Glt()(_,v,y,A),Klt()(_,m,r,A),Qlt()(_),Ylt()(_),Zlt()(_,m,y,v,d,s),_.Promise=_,_.version="3.4.7",Xlt()(_,m,r,y,v,A),Jlt()(_),eut()(_,r,y,w,v,A),tut()(_,v,A),nut()(_,r,v,y,o,A),rut()(_),out()(_,v),iut()(_,m,y,r),aut()(_,v,y,r),sut()(_,m,r,y,v,A),lut()(_,m,A),uut()(_,m,r),cut()(_,v),dut()(_,v),fut()(_),a.toFastProperties(_),a.toFastProperties(_.prototype);function q(U){var j=new _(v);j._fulfillmentHandler0=U,j._rejectionHandler0=U,j._promise0=U,j._receiver0=U}return q({a:1}),q({b:2}),q({c:3}),q(1),q(function(){}),q(void 0),q(!1),q(new _(v)),A.setBounds(u.firstLineError,a.lastLineError),_}})(MI)),MI.exports}var Lte;function O0(){if(Lte)return Su;Lte=1;var e=Ia,t=put()();Su.defer=n,Su.when=t.resolve,Su.resolve=t.resolve,Su.all=t.all,Su.props=t.props,Su.reject=t.reject,Su.promisify=t.promisify,Su.mapSeries=t.mapSeries,Su.attempt=t.attempt,Su.nfcall=function(r){var o=Array.prototype.slice.call(arguments,1),i=t.promisify(r);return i.apply(null,o)},t.prototype.fail=t.prototype.caught,t.prototype.also=function(r){return this.then(function(o){var i=e.extend({},o,r(o));return t.props(i)})};function n(){var r,o,i=new t.Promise(function(a,s){r=a,o=s});return{resolve:r,reject:o,promise:i}}return Su}var ri={},Fte;function sm(){if(Fte)return ri;Fte=1;var e=Ia,t=ri.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function n(S,k){return k=k||{},{type:t.document,children:S,notes:k.notes||new c({}),comments:k.comments||[]}}function r(S,k){k=k||{};var M=k.indent||{};return{type:t.paragraph,children:S,styleId:k.styleId||null,styleName:k.styleName||null,numbering:k.numbering||null,alignment:k.alignment||null,indent:{start:M.start||null,end:M.end||null,firstLine:M.firstLine||null,hanging:M.hanging||null}}}function o(S,k){return k=k||{},{type:t.run,children:S,styleId:k.styleId||null,styleName:k.styleName||null,isBold:!!k.isBold,isUnderline:!!k.isUnderline,isItalic:!!k.isItalic,isStrikethrough:!!k.isStrikethrough,isAllCaps:!!k.isAllCaps,isSmallCaps:!!k.isSmallCaps,verticalAlignment:k.verticalAlignment||i.baseline,font:k.font||null,fontSize:k.fontSize||null,highlight:k.highlight||null}}var i={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function a(S){return{type:t.text,value:S}}function s(){return{type:t.tab}}function l(S){return{type:t.checkbox,checked:S.checked}}function u(S,k){return{type:t.hyperlink,children:S,href:k.href,anchor:k.anchor,targetFrame:k.targetFrame}}function d(S){return{type:t.noteReference,noteType:S.noteType,noteId:S.noteId}}function c(S){this._notes=e.indexBy(S,function(k){return h(k.noteType,k.noteId)})}c.prototype.resolve=function(S){return this.findNoteByKey(h(S.noteType,S.noteId))},c.prototype.findNoteByKey=function(S){return this._notes[S]||null};function f(S){return{type:t.note,noteType:S.noteType,noteId:S.noteId,body:S.body}}function p(S){return{type:t.commentReference,commentId:S.commentId}}function v(S){return{type:t.comment,commentId:S.commentId,body:S.body,authorName:S.authorName,authorInitials:S.authorInitials}}function h(S,k){return S+"-"+k}function g(S){return{type:t.image,read:function(k){return k?S.readImage(k):S.readImage().then(function(M){return Buffer.from(M)})},readAsArrayBuffer:function(){return S.readImage()},readAsBase64String:function(){return S.readImage("base64")},readAsBuffer:function(){return S.readImage().then(function(k){return Buffer.from(k)})},altText:S.altText,contentType:S.contentType}}function y(S,k){return k=k||{},{type:t.table,children:S,styleId:k.styleId||null,styleName:k.styleName||null}}function m(S,k){return k=k||{},{type:t.tableRow,children:S,isHeader:k.isHeader||!1}}function b(S,k){return k=k||{},{type:t.tableCell,children:S,colSpan:k.colSpan==null?1:k.colSpan,rowSpan:k.rowSpan==null?1:k.rowSpan}}function w(S){return{type:t.break,breakType:S}}function A(S){return{type:t.bookmarkStart,name:S.name}}return ri.document=ri.Document=n,ri.paragraph=ri.Paragraph=r,ri.run=ri.Run=o,ri.text=ri.Text=a,ri.tab=ri.Tab=s,ri.checkbox=ri.Checkbox=l,ri.Hyperlink=u,ri.noteReference=ri.NoteReference=d,ri.Notes=c,ri.Note=f,ri.commentReference=p,ri.comment=v,ri.Image=g,ri.Table=y,ri.TableRow=m,ri.TableCell=b,ri.lineBreak=w("line"),ri.pageBreak=w("page"),ri.columnBreak=w("column"),ri.BookmarkStart=A,ri.verticalAlignment=i,ri}var Bm={},Ute;function tp(){if(Ute)return Bm;Ute=1;var e=Ia;Bm.Result=t,Bm.success=n,Bm.warning=r,Bm.error=o;function t(l,u){this.value=l,this.messages=u||[]}t.prototype.map=function(l){return new t(l(this.value),this.messages)},t.prototype.flatMap=function(l){var u=l(this.value);return new t(u.value,i([this,u]))},t.prototype.flatMapThen=function(l){var u=this;return l(this.value).then(function(d){return new t(d.value,i([u,d]))})},t.combine=function(l){var u=e.flatten(e.pluck(l,"value")),d=i(l);return new t(u,d)};function n(l){return new t(l,[])}function r(l){return{type:"warning",message:l}}function o(l){return{type:"error",message:l.message,error:l}}function i(l){var u=[];return e.flatten(e.pluck(l,"messages"),!0).forEach(function(d){a(u,d)||u.push(d)}),u}function a(l,u){return e.find(l,s.bind(null,u))!==void 0}function s(l,u){return l.type===u.type&&l.message===u.message}return Bm}var O2={},M2={},$te;function hut(){if($te)return M2;$te=1,M2.byteLength=s,M2.toByteArray=u,M2.fromByteArray=f;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t[45]=62,t[95]=63;function a(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=p.indexOf("=");h===-1&&(h=v);var g=h===v?0:4-h%4;return[h,g]}function s(p){var v=a(p),h=v[0],g=v[1];return(h+g)*3/4-g}function l(p,v,h){return(v+h)*3/4-h}function u(p){var v,h=a(p),g=h[0],y=h[1],m=new n(l(p,g,y)),b=0,w=y>0?g-4:g,A;for(A=0;A<w;A+=4)v=t[p.charCodeAt(A)]<<18|t[p.charCodeAt(A+1)]<<12|t[p.charCodeAt(A+2)]<<6|t[p.charCodeAt(A+3)],m[b++]=v>>16&255,m[b++]=v>>8&255,m[b++]=v&255;return y===2&&(v=t[p.charCodeAt(A)]<<2|t[p.charCodeAt(A+1)]>>4,m[b++]=v&255),y===1&&(v=t[p.charCodeAt(A)]<<10|t[p.charCodeAt(A+1)]<<4|t[p.charCodeAt(A+2)]>>2,m[b++]=v>>8&255,m[b++]=v&255),m}function d(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function c(p,v,h){for(var g,y=[],m=v;m<h;m+=3)g=(p[m]<<16&16711680)+(p[m+1]<<8&65280)+(p[m+2]&255),y.push(d(g));return y.join("")}function f(p){for(var v,h=p.length,g=h%3,y=[],m=16383,b=0,w=h-g;b<w;b+=m)y.push(c(p,b,b+m>w?w:b+m));return g===1?(v=p[h-1],y.push(e[v>>2]+e[v<<4&63]+"==")):g===2&&(v=(p[h-2]<<8)+p[h-1],y.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),y.join("")}return M2}function _x(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cO={exports:{}};/*!
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
- <http://stuartk.com/jszip>
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
- JSZip uses the library pako released under the MIT license :
- https://github.com/nodeca/pako/blob/main/LICENSE
- */var zte;function gut(){return zte||(zte=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,i){function a(u,d){if(!o[u]){if(!r[u]){var c=typeof _x=="function"&&_x;if(!d&&c)return c(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};r[u][0].call(p.exports,function(v){var h=r[u][1][v];return a(h||v)},p,p.exports,n,r,o,i)}return o[u].exports}for(var s=typeof _x=="function"&&_x,l=0;l<i.length;l++)a(i[l]);return a})({1:[function(n,r,o){var i=n("./utils"),a=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(l){for(var u,d,c,f,p,v,h,g=[],y=0,m=l.length,b=m,w=i.getTypeOf(l)!=="string";y<l.length;)b=m-y,c=w?(u=l[y++],d=y<m?l[y++]:0,y<m?l[y++]:0):(u=l.charCodeAt(y++),d=y<m?l.charCodeAt(y++):0,y<m?l.charCodeAt(y++):0),f=u>>2,p=(3&u)<<4|d>>4,v=1<b?(15&d)<<2|c>>6:64,h=2<b?63&c:64,g.push(s.charAt(f)+s.charAt(p)+s.charAt(v)+s.charAt(h));return g.join("")},o.decode=function(l){var u,d,c,f,p,v,h=0,g=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var m,b=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&b--,l.charAt(l.length-2)===s.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|b):new Array(0|b);h<l.length;)u=s.indexOf(l.charAt(h++))<<2|(f=s.indexOf(l.charAt(h++)))>>4,d=(15&f)<<4|(p=s.indexOf(l.charAt(h++)))>>2,c=(3&p)<<6|(v=s.indexOf(l.charAt(h++))),m[g++]=u,p!==64&&(m[g++]=d),v!==64&&(m[g++]=c);return m}},{"./support":30,"./utils":32}],2:[function(n,r,o){var i=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function u(d,c,f,p,v){this.compressedSize=d,this.uncompressedSize=c,this.crc32=f,this.compression=p,this.compressedContent=v}u.prototype={getContentWorker:function(){var d=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),c=this;return d.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(d,c,f){return d.pipe(new s).pipe(new l("uncompressedSize")).pipe(c.compressWorker(f)).pipe(new l("compressedSize")).withStreamInfo("compression",c)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,o){var i=n("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},o.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,o){var i=n("./utils"),a=(function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var d=0;d<8;d++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l})();r.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?(function(u,d,c,f){var p=a,v=f+c;u^=-1;for(var h=f;h<v;h++)u=u>>>8^p[255&(u^d[h])];return-1^u})(0|l,s,s.length,0):(function(u,d,c,f){var p=a,v=f+c;u^=-1;for(var h=f;h<v;h++)u=u>>>8^p[255&(u^d.charCodeAt(h))];return-1^u})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(n,r,o){var i=null;i=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),u=i?"uint8array":"array";function d(c,f){l.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=f,this.meta={}}o.magic="\b\0",s.inherits(d,l),d.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,c.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(f){c.push({data:f,meta:c.meta})}},o.compressWorker=function(c){return new d("Deflate",c)},o.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,o){function i(p,v){var h,g="";for(h=0;h<v;h++)g+=String.fromCharCode(255&p),p>>>=8;return g}function a(p,v,h,g,y,m){var b,w,A=p.file,S=p.compression,k=m!==u.utf8encode,M=s.transformTo("string",m(A.name)),D=s.transformTo("string",u.utf8encode(A.name)),P=A.comment,O=s.transformTo("string",m(P)),_=s.transformTo("string",u.utf8encode(P)),B=D.length!==A.name.length,N=_.length!==P.length,q="",U="",j="",H=A.dir,G=A.date,Z={crc32:0,compressedSize:0,uncompressedSize:0};v&&!h||(Z.crc32=p.crc32,Z.compressedSize=p.compressedSize,Z.uncompressedSize=p.uncompressedSize);var $=0;v&&($|=8),k||!B&&!N||($|=2048);var L=0,W=0;H&&(L|=16),y==="UNIX"?(W=798,L|=(function(ee,te){var X=ee;return ee||(X=te?16893:33204),(65535&X)<<16})(A.unixPermissions,H)):(W=20,L|=(function(ee){return 63&(ee||0)})(A.dosPermissions)),b=G.getUTCHours(),b<<=6,b|=G.getUTCMinutes(),b<<=5,b|=G.getUTCSeconds()/2,w=G.getUTCFullYear()-1980,w<<=4,w|=G.getUTCMonth()+1,w<<=5,w|=G.getUTCDate(),B&&(U=i(1,1)+i(d(M),4)+D,q+="up"+i(U.length,2)+U),N&&(j=i(1,1)+i(d(O),4)+_,q+="uc"+i(j.length,2)+j);var ie="";return ie+=`
- \0`,ie+=i($,2),ie+=S.magic,ie+=i(b,2),ie+=i(w,2),ie+=i(Z.crc32,4),ie+=i(Z.compressedSize,4),ie+=i(Z.uncompressedSize,4),ie+=i(M.length,2),ie+=i(q.length,2),{fileRecord:c.LOCAL_FILE_HEADER+ie+M+q,dirRecord:c.CENTRAL_FILE_HEADER+i(W,2)+ie+i(O.length,2)+"\0\0\0\0"+i(L,4)+i(g,4)+M+q+O}}var s=n("../utils"),l=n("../stream/GenericWorker"),u=n("../utf8"),d=n("../crc32"),c=n("../signature");function f(p,v,h,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,l),f.prototype.push=function(p){var v=p.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:h?(v+100*(h-g-1))/h:100}}))},f.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var v=this.streamFiles&&!p.file.dir;if(v){var h=a(p,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(p){this.accumulate=!1;var v=this.streamFiles&&!p.file.dir,h=a(p,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),v)this.push({data:(function(g){return c.DATA_DESCRIPTOR+i(g.crc32,4)+i(g.compressedSize,4)+i(g.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var p=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var h=this.bytesWritten-p,g=(function(y,m,b,w,A){var S=s.transformTo("string",A(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(y,2)+i(y,2)+i(m,4)+i(b,4)+i(S.length,2)+S})(this.dirRecords.length,h,p,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(p){this._sources.push(p);var v=this;return p.on("data",function(h){v.processChunk(h)}),p.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),p.on("error",function(h){v.error(h)}),this},f.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(p){var v=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var h=0;h<v.length;h++)try{v[h].error(p)}catch{}return!0},f.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,v=0;v<p.length;v++)p[v].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,o){var i=n("../compressions"),a=n("./ZipFileWorker");o.generateWorker=function(s,l,u){var d=new a(l.streamFiles,u,l.platform,l.encodeFileName),c=0;try{s.forEach(function(f,p){c++;var v=(function(m,b){var w=m||b,A=i[w];if(!A)throw new Error(w+" is not a valid compression method !");return A})(p.options.compression,l.compression),h=p.options.compressionOptions||l.compressionOptions||{},g=p.dir,y=p.date;p._compressWorker(v,h).withStreamInfo("file",{name:f,dir:g,date:y,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=c}catch(f){d.error(f)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(a,s){return new i().loadAsync(a,s)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,o){var i=n("./utils"),a=n("./external"),s=n("./utf8"),l=n("./zipEntries"),u=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function c(f){return new a.Promise(function(p,v){var h=f.decompressed.getContentWorker().pipe(new u);h.on("error",function(g){v(g)}).on("end",function(){h.streamInfo.crc32!==f.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(f,p){var v=this;return p=i.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),d.isNode&&d.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",f,!0,p.optimizedBinaryString,p.base64).then(function(h){var g=new l(p);return g.load(h),g}).then(function(h){var g=[a.Promise.resolve(h)],y=h.files;if(p.checkCRC32)for(var m=0;m<y.length;m++)g.push(c(y[m]));return a.Promise.all(g)}).then(function(h){for(var g=h.shift(),y=g.files,m=0;m<y.length;m++){var b=y[m],w=b.fileNameStr,A=i.resolve(b.fileNameStr);v.file(A,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:p.createFolders}),b.dir||(v.file(A).unsafeOriginalName=w)}return g.zipComment.length&&(v.comment=g.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,o){var i=n("../utils"),a=n("../stream/GenericWorker");function s(l,u){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}i.inherits(s,a),s.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(d){u.push({data:d,meta:{percent:0}})}).on("error",function(d){u.isPaused?this.generatedError=d:u.error(d)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,o){var i=n("readable-stream").Readable;function a(s,l,u){i.call(this,l),this._helper=s;var d=this;s.on("data",function(c,f){d.push(c)||d._helper.pause(),u&&u(f)}).on("error",function(c){d.emit("error",c)}).on("end",function(){d.push(null)})}n("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,o){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,o){function i(A,S,k){var M,D=s.getTypeOf(S),P=s.extend(k||{},d);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(A=y(A)),P.createFolders&&(M=g(A))&&m.call(this,M,!0);var O=D==="string"&&P.binary===!1&&P.base64===!1;k&&k.binary!==void 0||(P.binary=!O),(S instanceof c&&S.uncompressedSize===0||P.dir||!S||S.length===0)&&(P.base64=!1,P.binary=!0,S="",P.compression="STORE",D="string");var _=null;_=S instanceof c||S instanceof l?S:v.isNode&&v.isStream(S)?new h(A,S):s.prepareContent(A,S,P.binary,P.optimizedBinaryString,P.base64);var B=new f(A,_,P);this.files[A]=B}var a=n("./utf8"),s=n("./utils"),l=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),d=n("./defaults"),c=n("./compressedObject"),f=n("./zipObject"),p=n("./generate"),v=n("./nodejsUtils"),h=n("./nodejs/NodejsStreamInputAdapter"),g=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var S=A.lastIndexOf("/");return 0<S?A.substring(0,S):""},y=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},m=function(A,S){return S=S!==void 0?S:d.createFolders,A=y(A),this.files[A]||i.call(this,A,null,{dir:!0,createFolders:S}),this.files[A]};function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var S,k,M;for(S in this.files)M=this.files[S],(k=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&A(k,M)},filter:function(A){var S=[];return this.forEach(function(k,M){A(k,M)&&S.push(M)}),S},file:function(A,S,k){if(arguments.length!==1)return A=this.root+A,i.call(this,A,S,k),this;if(b(A)){var M=A;return this.filter(function(P,O){return!O.dir&&M.test(P)})}var D=this.files[this.root+A];return D&&!D.dir?D:null},folder:function(A){if(!A)return this;if(b(A))return this.filter(function(D,P){return P.dir&&A.test(D)});var S=this.root+A,k=m.call(this,S),M=this.clone();return M.root=k.name,M},remove:function(A){A=this.root+A;var S=this.files[A];if(S||(A.slice(-1)!=="/"&&(A+="/"),S=this.files[A]),S&&!S.dir)delete this.files[A];else for(var k=this.filter(function(D,P){return P.name.slice(0,A.length)===A}),M=0;M<k.length;M++)delete this.files[k[M].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var S,k={};try{if((k=s.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=k.type.toLowerCase(),k.compression=k.compression.toUpperCase(),k.type==="binarystring"&&(k.type="string"),!k.type)throw new Error("No output type specified.");s.checkSupport(k.type),k.platform!=="darwin"&&k.platform!=="freebsd"&&k.platform!=="linux"&&k.platform!=="sunos"||(k.platform="UNIX"),k.platform==="win32"&&(k.platform="DOS");var M=k.comment||this.comment||"";S=p.generateWorker(this,k,M)}catch(D){(S=new l("error")).error(D)}return new u(S,k.type||"string",k.mimeType)},generateAsync:function(A,S){return this.generateInternalStream(A).accumulate(S)},generateNodeStream:function(A,S){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(S)}};r.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,o){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,o){var i=n("./DataReader");function a(s){i.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}n("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),u=s.charCodeAt(1),d=s.charCodeAt(2),c=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===l&&this.data[f+1]===u&&this.data[f+2]===d&&this.data[f+3]===c)return f-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),d=s.charCodeAt(2),c=s.charCodeAt(3),f=this.readData(4);return l===f[0]&&u===f[1]&&d===f[2]&&c===f[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,o){var i=n("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,u=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=s,u},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,o){var i=n("./Uint8ArrayReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,o){var i=n("./DataReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,o){var i=n("./ArrayReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,o){var i=n("../utils"),a=n("../support"),s=n("./ArrayReader"),l=n("./StringReader"),u=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(c){var f=i.getTypeOf(c);return i.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new u(c):a.uint8array?new d(i.transformTo("uint8array",c)):new s(i.transformTo("array",c)):new l(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,o){var i=n("./GenericWorker"),a=n("../utils");function s(l){i.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,i),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,o){var i=n("./GenericWorker"),a=n("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,i),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,o){var i=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(s,a),s.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}a.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,o){var i=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){u.dataIsReady=!0,u.data=d,u.max=d&&d.length||0,u.type=i.getTypeOf(d),u.isPaused||u._tickAndRepeat()},function(d){u.error(d)})}i.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,o){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=i},{}],29:[function(n,r,o){var i=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),l=n("../base64"),u=n("../support"),d=n("../external"),c=null;if(u.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(v,h){return new d.Promise(function(g,y){var m=[],b=v._internalType,w=v._outputType,A=v._mimeType;v.on("data",function(S,k){m.push(S),h&&h(k)}).on("error",function(S){m=[],y(S)}).on("end",function(){try{var S=(function(k,M,D){switch(k){case"blob":return i.newBlob(i.transformTo("arraybuffer",M),D);case"base64":return l.encode(M);default:return i.transformTo(k,M)}})(w,(function(k,M){var D,P=0,O=null,_=0;for(D=0;D<M.length;D++)_+=M[D].length;switch(k){case"string":return M.join("");case"array":return Array.prototype.concat.apply([],M);case"uint8array":for(O=new Uint8Array(_),D=0;D<M.length;D++)O.set(M[D],P),P+=M[D].length;return O;case"nodebuffer":return Buffer.concat(M);default:throw new Error("concat : unsupported type '"+k+"'")}})(b,m),A);g(S)}catch(k){y(k)}m=[]}).resume()})}function p(v,h,g){var y=h;switch(h){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=h,this._mimeType=g,i.checkSupport(y),this._worker=v.pipe(new a(y)),v.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}p.prototype={accumulate:function(v){return f(this,v)},on:function(v,h){var g=this;return v==="data"?this._worker.on(v,function(y){h.call(g,y.data,y.meta)}):this._worker.on(v,function(){i.delay(h,arguments,g)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},v)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),o.blob=a.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!n("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,o){for(var i=n("./utils"),a=n("./support"),s=n("./nodejsUtils"),l=n("./stream/GenericWorker"),u=new Array(256),d=0;d<256;d++)u[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;u[254]=u[254]=1;function c(){l.call(this,"utf-8 decode"),this.leftOver=null}function f(){l.call(this,"utf-8 encode")}o.utf8encode=function(p){return a.nodebuffer?s.newBufferFrom(p,"utf-8"):(function(v){var h,g,y,m,b,w=v.length,A=0;for(m=0;m<w;m++)(64512&(g=v.charCodeAt(m)))==55296&&m+1<w&&(64512&(y=v.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),A+=g<128?1:g<2048?2:g<65536?3:4;for(h=a.uint8array?new Uint8Array(A):new Array(A),m=b=0;b<A;m++)(64512&(g=v.charCodeAt(m)))==55296&&m+1<w&&(64512&(y=v.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),g<128?h[b++]=g:(g<2048?h[b++]=192|g>>>6:(g<65536?h[b++]=224|g>>>12:(h[b++]=240|g>>>18,h[b++]=128|g>>>12&63),h[b++]=128|g>>>6&63),h[b++]=128|63&g);return h})(p)},o.utf8decode=function(p){return a.nodebuffer?i.transformTo("nodebuffer",p).toString("utf-8"):(function(v){var h,g,y,m,b=v.length,w=new Array(2*b);for(h=g=0;h<b;)if((y=v[h++])<128)w[g++]=y;else if(4<(m=u[y]))w[g++]=65533,h+=m-1;else{for(y&=m===2?31:m===3?15:7;1<m&&h<b;)y=y<<6|63&v[h++],m--;1<m?w[g++]=65533:y<65536?w[g++]=y:(y-=65536,w[g++]=55296|y>>10&1023,w[g++]=56320|1023&y)}return w.length!==g&&(w.subarray?w=w.subarray(0,g):w.length=g),i.applyFromCharCode(w)})(p=i.transformTo(a.uint8array?"uint8array":"array",p))},i.inherits(c,l),c.prototype.processChunk=function(p){var v=i.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var h=v;(v=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),v.set(h,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var g=(function(m,b){var w;for((b=b||m.length)>m.length&&(b=m.length),w=b-1;0<=w&&(192&m[w])==128;)w--;return w<0||w===0?b:w+u[m[w]]>b?w:b})(v),y=v;g!==v.length&&(a.uint8array?(y=v.subarray(0,g),this.leftOver=v.subarray(g,v.length)):(y=v.slice(0,g),this.leftOver=v.slice(g,v.length))),this.push({data:o.utf8decode(y),meta:p.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=c,i.inherits(f,l),f.prototype.processChunk=function(p){this.push({data:o.utf8encode(p.data),meta:p.meta})},o.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,o){var i=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),l=n("./external");function u(h){return h}function d(h,g){for(var y=0;y<h.length;++y)g[y]=255&h.charCodeAt(y);return g}n("setimmediate"),o.newBlob=function(h,g){o.checkSupport("blob");try{return new Blob([h],{type:g})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(h),y.getBlob(g)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(h,g,y){var m=[],b=0,w=h.length;if(w<=y)return String.fromCharCode.apply(null,h);for(;b<w;)g==="array"||g==="nodebuffer"?m.push(String.fromCharCode.apply(null,h.slice(b,Math.min(b+y,w)))):m.push(String.fromCharCode.apply(null,h.subarray(b,Math.min(b+y,w)))),b+=y;return m.join("")},stringifyByChar:function(h){for(var g="",y=0;y<h.length;y++)g+=String.fromCharCode(h[y]);return g},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function f(h){var g=65536,y=o.getTypeOf(h),m=!0;if(y==="uint8array"?m=c.applyCanBeUsed.uint8array:y==="nodebuffer"&&(m=c.applyCanBeUsed.nodebuffer),m)for(;1<g;)try{return c.stringifyByChunk(h,y,g)}catch{g=Math.floor(g/2)}return c.stringifyByChar(h)}function p(h,g){for(var y=0;y<h.length;y++)g[y]=h[y];return g}o.applyFromCharCode=f;var v={};v.string={string:u,array:function(h){return d(h,new Array(h.length))},arraybuffer:function(h){return v.string.uint8array(h).buffer},uint8array:function(h){return d(h,new Uint8Array(h.length))},nodebuffer:function(h){return d(h,s.allocBuffer(h.length))}},v.array={string:f,array:u,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return s.newBufferFrom(h)}},v.arraybuffer={string:function(h){return f(new Uint8Array(h))},array:function(h){return p(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:u,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return s.newBufferFrom(new Uint8Array(h))}},v.uint8array={string:f,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:u,nodebuffer:function(h){return s.newBufferFrom(h)}},v.nodebuffer={string:f,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return v.nodebuffer.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:u},o.transformTo=function(h,g){if(g=g||"",!h)return g;o.checkSupport(h);var y=o.getTypeOf(g);return v[y][h](g)},o.resolve=function(h){for(var g=h.split("/"),y=[],m=0;m<g.length;m++){var b=g[m];b==="."||b===""&&m!==0&&m!==g.length-1||(b===".."?y.pop():y.push(b))}return y.join("/")},o.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(h)?"nodebuffer":i.uint8array&&h instanceof Uint8Array?"uint8array":i.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(h){if(!i[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(h){var g,y,m="";for(y=0;y<(h||"").length;y++)m+="\\x"+((g=h.charCodeAt(y))<16?"0":"")+g.toString(16).toUpperCase();return m},o.delay=function(h,g,y){setImmediate(function(){h.apply(y||null,g||[])})},o.inherits=function(h,g){function y(){}y.prototype=g.prototype,h.prototype=new y},o.extend=function(){var h,g,y={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&y[g]===void 0&&(y[g]=arguments[h][g]);return y},o.prepareContent=function(h,g,y,m,b){return l.Promise.resolve(g).then(function(w){return i.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new l.Promise(function(A,S){var k=new FileReader;k.onload=function(M){A(M.target.result)},k.onerror=function(M){S(M.target.error)},k.readAsArrayBuffer(w)}):w}).then(function(w){var A=o.getTypeOf(w);return A?(A==="arraybuffer"?w=o.transformTo("uint8array",w):A==="string"&&(b?w=a.decode(w):y&&m!==!0&&(w=(function(S){return d(S,i.uint8array?new Uint8Array(S.length):new Array(S.length))})(w))),w):l.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,o){var i=n("./reader/readerFor"),a=n("./utils"),s=n("./signature"),l=n("./zipEntry"),u=n("./support");function d(c){this.files=[],this.loadOptions=c}d.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(c)+")")}},isSignature:function(c,f){var p=this.reader.index;this.reader.setIndex(c);var v=this.reader.readString(4)===f;return this.reader.setIndex(p),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",p=a.transformTo(f,c);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,f,p,v=this.zip64EndOfCentralSize-44;0<v;)c=this.reader.readInt(2),f=this.reader.readInt(4),p=this.reader.readData(f),this.zip64ExtensibleData[c]={id:c,length:f,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,f;for(c=0;c<this.files.length;c++)f=this.files[c],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(c=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var f=c;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var v=f-p;if(0<v)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(c){this.reader=i(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,o){var i=n("./reader/readerFor"),a=n("./utils"),s=n("./compressedObject"),l=n("./crc32"),u=n("./utf8"),d=n("./compressions"),c=n("./support");function f(p,v){this.options=p,this.loadOptions=v}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var v,h;if(p.skip(22),this.fileNameLength=p.readInt(2),h=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(g){for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)&&d[y].magic===g)return d[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,v,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var v=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(v),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var v,h,g,y=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<y;)v=p.readInt(2),h=p.readInt(2),g=p.readData(h),this.extraFields[v]={id:v,length:h,value:g};p.setIndex(y)},handleUTF8:function(){var p=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var h=a.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var y=a.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var v=i(p.value);return v.readInt(1)!==1||l(this.fileName)!==v.readInt(4)?null:u.utf8decode(v.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var v=i(p.value);return v.readInt(1)!==1||l(this.fileComment)!==v.readInt(4)?null:u.utf8decode(v.readData(p.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,o){function i(v,h,g){this.name=v,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=h,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var a=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),l=n("./utf8"),u=n("./compressedObject"),d=n("./stream/GenericWorker");i.prototype={internalStream:function(v){var h=null,g="string";try{if(!v)throw new Error("No output type specified.");var y=(g=v.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),h=this._decompressWorker();var m=!this._dataBinary;m&&!y&&(h=h.pipe(new l.Utf8EncodeWorker)),!m&&y&&(h=h.pipe(new l.Utf8DecodeWorker))}catch(b){(h=new d("error")).error(b)}return new a(h,g,"")},async:function(v,h){return this.internalStream(v).accumulate(h)},nodeStream:function(v,h){return this.internalStream(v||"nodebuffer").toNodejsStream(h)},_compressWorker:function(v,h){if(this._data instanceof u&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(g,v,h)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof d?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<c.length;p++)i.prototype[c[p]]=f;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,o){(function(i){var a,s,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var u=0,d=new l(v),c=i.document.createTextNode("");d.observe(c,{characterData:!0}),a=function(){c.data=u=++u%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var h=i.document.createElement("script");h.onreadystatechange=function(){v(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},i.document.documentElement.appendChild(h)}:function(){setTimeout(v,0)};else{var f=new i.MessageChannel;f.port1.onmessage=v,a=function(){f.port2.postMessage(0)}}var p=[];function v(){var h,g;s=!0;for(var y=p.length;y;){for(g=p,p=[],h=-1;++h<y;)g[h]();y=p.length}s=!1}r.exports=function(h){p.push(h)!==1||s||a()}}).call(this,typeof $s<"u"?$s:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,o){var i=n("immediate");function a(){}var s={},l=["REJECTED"],u=["FULFILLED"],d=["PENDING"];function c(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,y!==a&&h(this,y)}function f(y,m,b){this.promise=y,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function p(y,m,b){i(function(){var w;try{w=m(b)}catch(A){return s.reject(y,A)}w===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,w)})}function v(y){var m=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof m=="function")return function(){m.apply(y,arguments)}}function h(y,m){var b=!1;function w(k){b||(b=!0,s.reject(y,k))}function A(k){b||(b=!0,s.resolve(y,k))}var S=g(function(){m(A,w)});S.status==="error"&&w(S.value)}function g(y,m){var b={};try{b.value=y(m),b.status="success"}catch(w){b.status="error",b.value=w}return b}(r.exports=c).prototype.finally=function(y){if(typeof y!="function")return this;var m=this.constructor;return this.then(function(b){return m.resolve(y()).then(function(){return b})},function(b){return m.resolve(y()).then(function(){throw b})})},c.prototype.catch=function(y){return this.then(null,y)},c.prototype.then=function(y,m){if(typeof y!="function"&&this.state===u||typeof m!="function"&&this.state===l)return this;var b=new this.constructor(a);return this.state!==d?p(b,this.state===u?y:m,this.outcome):this.queue.push(new f(b,y,m)),b},f.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},f.prototype.otherCallFulfilled=function(y){p(this.promise,this.onFulfilled,y)},f.prototype.callRejected=function(y){s.reject(this.promise,y)},f.prototype.otherCallRejected=function(y){p(this.promise,this.onRejected,y)},s.resolve=function(y,m){var b=g(v,m);if(b.status==="error")return s.reject(y,b.value);var w=b.value;if(w)h(y,w);else{y.state=u,y.outcome=m;for(var A=-1,S=y.queue.length;++A<S;)y.queue[A].callFulfilled(m)}return y},s.reject=function(y,m){y.state=l,y.outcome=m;for(var b=-1,w=y.queue.length;++b<w;)y.queue[b].callRejected(m);return y},c.resolve=function(y){return y instanceof this?y:s.resolve(new this(a),y)},c.reject=function(y){var m=new this(a);return s.reject(m,y)},c.all=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,w=!1;if(!b)return this.resolve([]);for(var A=new Array(b),S=0,k=-1,M=new this(a);++k<b;)D(y[k],k);return M;function D(P,O){m.resolve(P).then(function(_){A[O]=_,++S!==b||w||(w=!0,s.resolve(M,A))},function(_){w||(w=!0,s.reject(M,_))})}},c.race=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,w=!1;if(!b)return this.resolve([]);for(var A=-1,S=new this(a);++A<b;)k=y[A],m.resolve(k).then(function(M){w||(w=!0,s.resolve(S,M))},function(M){w||(w=!0,s.reject(S,M))});var k;return S}},{immediate:36}],38:[function(n,r,o){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,o){var i=n("./zlib/deflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/messages"),u=n("./zlib/zstream"),d=Object.prototype.toString,c=0,f=-1,p=0,v=8;function h(y){if(!(this instanceof h))return new h(y);this.options=a.assign({level:f,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},y||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var b=i.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(b!==c)throw new Error(l[b]);if(m.header&&i.deflateSetHeader(this.strm,m.header),m.dictionary){var w;if(w=typeof m.dictionary=="string"?s.string2buf(m.dictionary):d.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(b=i.deflateSetDictionary(this.strm,w))!==c)throw new Error(l[b]);this._dict_set=!0}}function g(y,m){var b=new h(m);if(b.push(y,!0),b.err)throw b.msg||l[b.err];return b.result}h.prototype.push=function(y,m){var b,w,A=this.strm,S=this.options.chunkSize;if(this.ended)return!1;w=m===~~m?m:m===!0?4:0,typeof y=="string"?A.input=s.string2buf(y):d.call(y)==="[object ArrayBuffer]"?A.input=new Uint8Array(y):A.input=y,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new a.Buf8(S),A.next_out=0,A.avail_out=S),(b=i.deflate(A,w))!==1&&b!==c)return this.onEnd(b),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(A.output,A.next_out))):this.onData(a.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&b!==1);return w===4?(b=i.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===c):w!==2||(this.onEnd(c),!(A.avail_out=0))},h.prototype.onData=function(y){this.chunks.push(y)},h.prototype.onEnd=function(y){y===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},o.Deflate=h,o.deflate=g,o.deflateRaw=function(y,m){return(m=m||{}).raw=!0,g(y,m)},o.gzip=function(y,m){return(m=m||{}).gzip=!0,g(y,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,o){var i=n("./zlib/inflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/constants"),u=n("./zlib/messages"),d=n("./zlib/zstream"),c=n("./zlib/gzheader"),f=Object.prototype.toString;function p(h){if(!(this instanceof p))return new p(h);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},h||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||h&&h.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var y=i.inflateInit2(this.strm,g.windowBits);if(y!==l.Z_OK)throw new Error(u[y]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function v(h,g){var y=new p(g);if(y.push(h,!0),y.err)throw y.msg||u[y.err];return y.result}p.prototype.push=function(h,g){var y,m,b,w,A,S,k=this.strm,M=this.options.chunkSize,D=this.options.dictionary,P=!1;if(this.ended)return!1;m=g===~~g?g:g===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof h=="string"?k.input=s.binstring2buf(h):f.call(h)==="[object ArrayBuffer]"?k.input=new Uint8Array(h):k.input=h,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new a.Buf8(M),k.next_out=0,k.avail_out=M),(y=i.inflate(k,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&D&&(S=typeof D=="string"?s.string2buf(D):f.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,y=i.inflateSetDictionary(this.strm,S)),y===l.Z_BUF_ERROR&&P===!0&&(y=l.Z_OK,P=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);k.next_out&&(k.avail_out!==0&&y!==l.Z_STREAM_END&&(k.avail_in!==0||m!==l.Z_FINISH&&m!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border(k.output,k.next_out),w=k.next_out-b,A=s.buf2string(k.output,b),k.next_out=w,k.avail_out=M-w,w&&a.arraySet(k.output,k.output,b,w,0),this.onData(A)):this.onData(a.shrinkBuf(k.output,k.next_out)))),k.avail_in===0&&k.avail_out===0&&(P=!0)}while((0<k.avail_in||k.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(m=l.Z_FINISH),m===l.Z_FINISH?(y=i.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):m!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(k.avail_out=0))},p.prototype.onData=function(h){this.chunks.push(h)},p.prototype.onEnd=function(h){h===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},o.Inflate=p,o.inflate=v,o.inflateRaw=function(h,g){return(g=g||{}).raw=!0,v(h,g)},o.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var d=u.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)d.hasOwnProperty(c)&&(l[c]=d[c])}}return l},o.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var a={arraySet:function(l,u,d,c,f){if(u.subarray&&l.subarray)l.set(u.subarray(d,d+c),f);else for(var p=0;p<c;p++)l[f+p]=u[d+p]},flattenChunks:function(l){var u,d,c,f,p,v;for(u=c=0,d=l.length;u<d;u++)c+=l[u].length;for(v=new Uint8Array(c),u=f=0,d=l.length;u<d;u++)p=l[u],v.set(p,f),f+=p.length;return v}},s={arraySet:function(l,u,d,c,f){for(var p=0;p<c;p++)l[f+p]=u[d+p]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(l){l?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,a)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,s))},o.setTyped(i)},{}],42:[function(n,r,o){var i=n("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new i.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function d(c,f){if(f<65537&&(c.subarray&&s||!c.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(c,f));for(var p="",v=0;v<f;v++)p+=String.fromCharCode(c[v]);return p}l[254]=l[254]=1,o.string2buf=function(c){var f,p,v,h,g,y=c.length,m=0;for(h=0;h<y;h++)(64512&(p=c.charCodeAt(h)))==55296&&h+1<y&&(64512&(v=c.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),h++),m+=p<128?1:p<2048?2:p<65536?3:4;for(f=new i.Buf8(m),h=g=0;g<m;h++)(64512&(p=c.charCodeAt(h)))==55296&&h+1<y&&(64512&(v=c.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),h++),p<128?f[g++]=p:(p<2048?f[g++]=192|p>>>6:(p<65536?f[g++]=224|p>>>12:(f[g++]=240|p>>>18,f[g++]=128|p>>>12&63),f[g++]=128|p>>>6&63),f[g++]=128|63&p);return f},o.buf2binstring=function(c){return d(c,c.length)},o.binstring2buf=function(c){for(var f=new i.Buf8(c.length),p=0,v=f.length;p<v;p++)f[p]=c.charCodeAt(p);return f},o.buf2string=function(c,f){var p,v,h,g,y=f||c.length,m=new Array(2*y);for(p=v=0;p<y;)if((h=c[p++])<128)m[v++]=h;else if(4<(g=l[h]))m[v++]=65533,p+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&p<y;)h=h<<6|63&c[p++],g--;1<g?m[v++]=65533:h<65536?m[v++]=h:(h-=65536,m[v++]=55296|h>>10&1023,m[v++]=56320|1023&h)}return d(m,v)},o.utf8border=function(c,f){var p;for((f=f||c.length)>c.length&&(f=c.length),p=f-1;0<=p&&(192&c[p])==128;)p--;return p<0||p===0?f:p+l[c[p]]>f?p:f}},{"./common":41}],43:[function(n,r,o){r.exports=function(i,a,s,l){for(var u=65535&i|0,d=i>>>16&65535|0,c=0;s!==0;){for(s-=c=2e3<s?2e3:s;d=d+(u=u+a[l++]|0)|0,--c;);u%=65521,d%=65521}return u|d<<16|0}},{}],44:[function(n,r,o){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,o){var i=(function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s})();r.exports=function(a,s,l,u){var d=i,c=u+l;a^=-1;for(var f=u;f<c;f++)a=a>>>8^d[255&(a^s[f])];return-1^a}},{}],46:[function(n,r,o){var i,a=n("../utils/common"),s=n("./trees"),l=n("./adler32"),u=n("./crc32"),d=n("./messages"),c=0,f=4,p=0,v=-2,h=-1,g=4,y=2,m=8,b=9,w=286,A=30,S=19,k=2*w+1,M=15,D=3,P=258,O=P+D+1,_=42,B=113,N=1,q=2,U=3,j=4;function H(Y,be){return Y.msg=d[be],be}function G(Y){return(Y<<1)-(4<Y?9:0)}function Z(Y){for(var be=Y.length;0<=--be;)Y[be]=0}function $(Y){var be=Y.state,De=be.pending;De>Y.avail_out&&(De=Y.avail_out),De!==0&&(a.arraySet(Y.output,be.pending_buf,be.pending_out,De,Y.next_out),Y.next_out+=De,be.pending_out+=De,Y.total_out+=De,Y.avail_out-=De,be.pending-=De,be.pending===0&&(be.pending_out=0))}function L(Y,be){s._tr_flush_block(Y,0<=Y.block_start?Y.block_start:-1,Y.strstart-Y.block_start,be),Y.block_start=Y.strstart,$(Y.strm)}function W(Y,be){Y.pending_buf[Y.pending++]=be}function ie(Y,be){Y.pending_buf[Y.pending++]=be>>>8&255,Y.pending_buf[Y.pending++]=255&be}function ee(Y,be){var De,pe,oe=Y.max_chain_length,ce=Y.strstart,Re=Y.prev_length,Ee=Y.nice_match,Le=Y.strstart>Y.w_size-O?Y.strstart-(Y.w_size-O):0,Fe=Y.window,Pe=Y.w_mask,Ne=Y.prev,pt=Y.strstart+P,Rt=Fe[ce+Re-1],Bt=Fe[ce+Re];Y.prev_length>=Y.good_match&&(oe>>=2),Ee>Y.lookahead&&(Ee=Y.lookahead);do if(Fe[(De=be)+Re]===Bt&&Fe[De+Re-1]===Rt&&Fe[De]===Fe[ce]&&Fe[++De]===Fe[ce+1]){ce+=2,De++;do;while(Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&Fe[++ce]===Fe[++De]&&ce<pt);if(pe=P-(pt-ce),ce=pt-P,Re<pe){if(Y.match_start=be,Ee<=(Re=pe))break;Rt=Fe[ce+Re-1],Bt=Fe[ce+Re]}}while((be=Ne[be&Pe])>Le&&--oe!=0);return Re<=Y.lookahead?Re:Y.lookahead}function te(Y){var be,De,pe,oe,ce,Re,Ee,Le,Fe,Pe,Ne=Y.w_size;do{if(oe=Y.window_size-Y.lookahead-Y.strstart,Y.strstart>=Ne+(Ne-O)){for(a.arraySet(Y.window,Y.window,Ne,Ne,0),Y.match_start-=Ne,Y.strstart-=Ne,Y.block_start-=Ne,be=De=Y.hash_size;pe=Y.head[--be],Y.head[be]=Ne<=pe?pe-Ne:0,--De;);for(be=De=Ne;pe=Y.prev[--be],Y.prev[be]=Ne<=pe?pe-Ne:0,--De;);oe+=Ne}if(Y.strm.avail_in===0)break;if(Re=Y.strm,Ee=Y.window,Le=Y.strstart+Y.lookahead,Fe=oe,Pe=void 0,Pe=Re.avail_in,Fe<Pe&&(Pe=Fe),De=Pe===0?0:(Re.avail_in-=Pe,a.arraySet(Ee,Re.input,Re.next_in,Pe,Le),Re.state.wrap===1?Re.adler=l(Re.adler,Ee,Pe,Le):Re.state.wrap===2&&(Re.adler=u(Re.adler,Ee,Pe,Le)),Re.next_in+=Pe,Re.total_in+=Pe,Pe),Y.lookahead+=De,Y.lookahead+Y.insert>=D)for(ce=Y.strstart-Y.insert,Y.ins_h=Y.window[ce],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[ce+1])&Y.hash_mask;Y.insert&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[ce+D-1])&Y.hash_mask,Y.prev[ce&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=ce,ce++,Y.insert--,!(Y.lookahead+Y.insert<D)););}while(Y.lookahead<O&&Y.strm.avail_in!==0)}function X(Y,be){for(var De,pe;;){if(Y.lookahead<O){if(te(Y),Y.lookahead<O&&be===c)return N;if(Y.lookahead===0)break}if(De=0,Y.lookahead>=D&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+D-1])&Y.hash_mask,De=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart),De!==0&&Y.strstart-De<=Y.w_size-O&&(Y.match_length=ee(Y,De)),Y.match_length>=D)if(pe=s._tr_tally(Y,Y.strstart-Y.match_start,Y.match_length-D),Y.lookahead-=Y.match_length,Y.match_length<=Y.max_lazy_match&&Y.lookahead>=D){for(Y.match_length--;Y.strstart++,Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+D-1])&Y.hash_mask,De=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart,--Y.match_length!=0;);Y.strstart++}else Y.strstart+=Y.match_length,Y.match_length=0,Y.ins_h=Y.window[Y.strstart],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+1])&Y.hash_mask;else pe=s._tr_tally(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++;if(pe&&(L(Y,!1),Y.strm.avail_out===0))return N}return Y.insert=Y.strstart<D-1?Y.strstart:D-1,be===f?(L(Y,!0),Y.strm.avail_out===0?U:j):Y.last_lit&&(L(Y,!1),Y.strm.avail_out===0)?N:q}function ue(Y,be){for(var De,pe,oe;;){if(Y.lookahead<O){if(te(Y),Y.lookahead<O&&be===c)return N;if(Y.lookahead===0)break}if(De=0,Y.lookahead>=D&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+D-1])&Y.hash_mask,De=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart),Y.prev_length=Y.match_length,Y.prev_match=Y.match_start,Y.match_length=D-1,De!==0&&Y.prev_length<Y.max_lazy_match&&Y.strstart-De<=Y.w_size-O&&(Y.match_length=ee(Y,De),Y.match_length<=5&&(Y.strategy===1||Y.match_length===D&&4096<Y.strstart-Y.match_start)&&(Y.match_length=D-1)),Y.prev_length>=D&&Y.match_length<=Y.prev_length){for(oe=Y.strstart+Y.lookahead-D,pe=s._tr_tally(Y,Y.strstart-1-Y.prev_match,Y.prev_length-D),Y.lookahead-=Y.prev_length-1,Y.prev_length-=2;++Y.strstart<=oe&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+D-1])&Y.hash_mask,De=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart),--Y.prev_length!=0;);if(Y.match_available=0,Y.match_length=D-1,Y.strstart++,pe&&(L(Y,!1),Y.strm.avail_out===0))return N}else if(Y.match_available){if((pe=s._tr_tally(Y,0,Y.window[Y.strstart-1]))&&L(Y,!1),Y.strstart++,Y.lookahead--,Y.strm.avail_out===0)return N}else Y.match_available=1,Y.strstart++,Y.lookahead--}return Y.match_available&&(pe=s._tr_tally(Y,0,Y.window[Y.strstart-1]),Y.match_available=0),Y.insert=Y.strstart<D-1?Y.strstart:D-1,be===f?(L(Y,!0),Y.strm.avail_out===0?U:j):Y.last_lit&&(L(Y,!1),Y.strm.avail_out===0)?N:q}function ve(Y,be,De,pe,oe){this.good_length=Y,this.max_lazy=be,this.nice_length=De,this.max_chain=pe,this.func=oe}function Me(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*k),this.dyn_dtree=new a.Buf16(2*(2*A+1)),this.bl_tree=new a.Buf16(2*(2*S+1)),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(M+1),this.heap=new a.Buf16(2*w+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*w+1),Z(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function we(Y){var be;return Y&&Y.state?(Y.total_in=Y.total_out=0,Y.data_type=y,(be=Y.state).pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?_:B,Y.adler=be.wrap===2?0:1,be.last_flush=c,s._tr_init(be),p):H(Y,v)}function he(Y){var be=we(Y);return be===p&&(function(De){De.window_size=2*De.w_size,Z(De.head),De.max_lazy_match=i[De.level].max_lazy,De.good_match=i[De.level].good_length,De.nice_match=i[De.level].nice_length,De.max_chain_length=i[De.level].max_chain,De.strstart=0,De.block_start=0,De.lookahead=0,De.insert=0,De.match_length=De.prev_length=D-1,De.match_available=0,De.ins_h=0})(Y.state),be}function Te(Y,be,De,pe,oe,ce){if(!Y)return v;var Re=1;if(be===h&&(be=6),pe<0?(Re=0,pe=-pe):15<pe&&(Re=2,pe-=16),oe<1||b<oe||De!==m||pe<8||15<pe||be<0||9<be||ce<0||g<ce)return H(Y,v);pe===8&&(pe=9);var Ee=new Me;return(Y.state=Ee).strm=Y,Ee.wrap=Re,Ee.gzhead=null,Ee.w_bits=pe,Ee.w_size=1<<Ee.w_bits,Ee.w_mask=Ee.w_size-1,Ee.hash_bits=oe+7,Ee.hash_size=1<<Ee.hash_bits,Ee.hash_mask=Ee.hash_size-1,Ee.hash_shift=~~((Ee.hash_bits+D-1)/D),Ee.window=new a.Buf8(2*Ee.w_size),Ee.head=new a.Buf16(Ee.hash_size),Ee.prev=new a.Buf16(Ee.w_size),Ee.lit_bufsize=1<<oe+6,Ee.pending_buf_size=4*Ee.lit_bufsize,Ee.pending_buf=new a.Buf8(Ee.pending_buf_size),Ee.d_buf=1*Ee.lit_bufsize,Ee.l_buf=3*Ee.lit_bufsize,Ee.level=be,Ee.strategy=ce,Ee.method=De,he(Y)}i=[new ve(0,0,0,0,function(Y,be){var De=65535;for(De>Y.pending_buf_size-5&&(De=Y.pending_buf_size-5);;){if(Y.lookahead<=1){if(te(Y),Y.lookahead===0&&be===c)return N;if(Y.lookahead===0)break}Y.strstart+=Y.lookahead,Y.lookahead=0;var pe=Y.block_start+De;if((Y.strstart===0||Y.strstart>=pe)&&(Y.lookahead=Y.strstart-pe,Y.strstart=pe,L(Y,!1),Y.strm.avail_out===0)||Y.strstart-Y.block_start>=Y.w_size-O&&(L(Y,!1),Y.strm.avail_out===0))return N}return Y.insert=0,be===f?(L(Y,!0),Y.strm.avail_out===0?U:j):(Y.strstart>Y.block_start&&(L(Y,!1),Y.strm.avail_out),N)}),new ve(4,4,8,4,X),new ve(4,5,16,8,X),new ve(4,6,32,32,X),new ve(4,4,16,16,ue),new ve(8,16,32,32,ue),new ve(8,16,128,128,ue),new ve(8,32,128,256,ue),new ve(32,128,258,1024,ue),new ve(32,258,258,4096,ue)],o.deflateInit=function(Y,be){return Te(Y,be,m,15,8,0)},o.deflateInit2=Te,o.deflateReset=he,o.deflateResetKeep=we,o.deflateSetHeader=function(Y,be){return Y&&Y.state?Y.state.wrap!==2?v:(Y.state.gzhead=be,p):v},o.deflate=function(Y,be){var De,pe,oe,ce;if(!Y||!Y.state||5<be||be<0)return Y?H(Y,v):v;if(pe=Y.state,!Y.output||!Y.input&&Y.avail_in!==0||pe.status===666&&be!==f)return H(Y,Y.avail_out===0?-5:v);if(pe.strm=Y,De=pe.last_flush,pe.last_flush=be,pe.status===_)if(pe.wrap===2)Y.adler=0,W(pe,31),W(pe,139),W(pe,8),pe.gzhead?(W(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),W(pe,255&pe.gzhead.time),W(pe,pe.gzhead.time>>8&255),W(pe,pe.gzhead.time>>16&255),W(pe,pe.gzhead.time>>24&255),W(pe,pe.level===9?2:2<=pe.strategy||pe.level<2?4:0),W(pe,255&pe.gzhead.os),pe.gzhead.extra&&pe.gzhead.extra.length&&(W(pe,255&pe.gzhead.extra.length),W(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=69):(W(pe,0),W(pe,0),W(pe,0),W(pe,0),W(pe,0),W(pe,pe.level===9?2:2<=pe.strategy||pe.level<2?4:0),W(pe,3),pe.status=B);else{var Re=m+(pe.w_bits-8<<4)<<8;Re|=(2<=pe.strategy||pe.level<2?0:pe.level<6?1:pe.level===6?2:3)<<6,pe.strstart!==0&&(Re|=32),Re+=31-Re%31,pe.status=B,ie(pe,Re),pe.strstart!==0&&(ie(pe,Y.adler>>>16),ie(pe,65535&Y.adler)),Y.adler=1}if(pe.status===69)if(pe.gzhead.extra){for(oe=pe.pending;pe.gzindex<(65535&pe.gzhead.extra.length)&&(pe.pending!==pe.pending_buf_size||(pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),$(Y),oe=pe.pending,pe.pending!==pe.pending_buf_size));)W(pe,255&pe.gzhead.extra[pe.gzindex]),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=73)}else pe.status=73;if(pe.status===73)if(pe.gzhead.name){oe=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),$(Y),oe=pe.pending,pe.pending===pe.pending_buf_size)){ce=1;break}ce=pe.gzindex<pe.gzhead.name.length?255&pe.gzhead.name.charCodeAt(pe.gzindex++):0,W(pe,ce)}while(ce!==0);pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),ce===0&&(pe.gzindex=0,pe.status=91)}else pe.status=91;if(pe.status===91)if(pe.gzhead.comment){oe=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),$(Y),oe=pe.pending,pe.pending===pe.pending_buf_size)){ce=1;break}ce=pe.gzindex<pe.gzhead.comment.length?255&pe.gzhead.comment.charCodeAt(pe.gzindex++):0,W(pe,ce)}while(ce!==0);pe.gzhead.hcrc&&pe.pending>oe&&(Y.adler=u(Y.adler,pe.pending_buf,pe.pending-oe,oe)),ce===0&&(pe.status=103)}else pe.status=103;if(pe.status===103&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&$(Y),pe.pending+2<=pe.pending_buf_size&&(W(pe,255&Y.adler),W(pe,Y.adler>>8&255),Y.adler=0,pe.status=B)):pe.status=B),pe.pending!==0){if($(Y),Y.avail_out===0)return pe.last_flush=-1,p}else if(Y.avail_in===0&&G(be)<=G(De)&&be!==f)return H(Y,-5);if(pe.status===666&&Y.avail_in!==0)return H(Y,-5);if(Y.avail_in!==0||pe.lookahead!==0||be!==c&&pe.status!==666){var Ee=pe.strategy===2?(function(Le,Fe){for(var Pe;;){if(Le.lookahead===0&&(te(Le),Le.lookahead===0)){if(Fe===c)return N;break}if(Le.match_length=0,Pe=s._tr_tally(Le,0,Le.window[Le.strstart]),Le.lookahead--,Le.strstart++,Pe&&(L(Le,!1),Le.strm.avail_out===0))return N}return Le.insert=0,Fe===f?(L(Le,!0),Le.strm.avail_out===0?U:j):Le.last_lit&&(L(Le,!1),Le.strm.avail_out===0)?N:q})(pe,be):pe.strategy===3?(function(Le,Fe){for(var Pe,Ne,pt,Rt,Bt=Le.window;;){if(Le.lookahead<=P){if(te(Le),Le.lookahead<=P&&Fe===c)return N;if(Le.lookahead===0)break}if(Le.match_length=0,Le.lookahead>=D&&0<Le.strstart&&(Ne=Bt[pt=Le.strstart-1])===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]){Rt=Le.strstart+P;do;while(Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&Ne===Bt[++pt]&&pt<Rt);Le.match_length=P-(Rt-pt),Le.match_length>Le.lookahead&&(Le.match_length=Le.lookahead)}if(Le.match_length>=D?(Pe=s._tr_tally(Le,1,Le.match_length-D),Le.lookahead-=Le.match_length,Le.strstart+=Le.match_length,Le.match_length=0):(Pe=s._tr_tally(Le,0,Le.window[Le.strstart]),Le.lookahead--,Le.strstart++),Pe&&(L(Le,!1),Le.strm.avail_out===0))return N}return Le.insert=0,Fe===f?(L(Le,!0),Le.strm.avail_out===0?U:j):Le.last_lit&&(L(Le,!1),Le.strm.avail_out===0)?N:q})(pe,be):i[pe.level].func(pe,be);if(Ee!==U&&Ee!==j||(pe.status=666),Ee===N||Ee===U)return Y.avail_out===0&&(pe.last_flush=-1),p;if(Ee===q&&(be===1?s._tr_align(pe):be!==5&&(s._tr_stored_block(pe,0,0,!1),be===3&&(Z(pe.head),pe.lookahead===0&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),$(Y),Y.avail_out===0))return pe.last_flush=-1,p}return be!==f?p:pe.wrap<=0?1:(pe.wrap===2?(W(pe,255&Y.adler),W(pe,Y.adler>>8&255),W(pe,Y.adler>>16&255),W(pe,Y.adler>>24&255),W(pe,255&Y.total_in),W(pe,Y.total_in>>8&255),W(pe,Y.total_in>>16&255),W(pe,Y.total_in>>24&255)):(ie(pe,Y.adler>>>16),ie(pe,65535&Y.adler)),$(Y),0<pe.wrap&&(pe.wrap=-pe.wrap),pe.pending!==0?p:1)},o.deflateEnd=function(Y){var be;return Y&&Y.state?(be=Y.state.status)!==_&&be!==69&&be!==73&&be!==91&&be!==103&&be!==B&&be!==666?H(Y,v):(Y.state=null,be===B?H(Y,-3):p):v},o.deflateSetDictionary=function(Y,be){var De,pe,oe,ce,Re,Ee,Le,Fe,Pe=be.length;if(!Y||!Y.state||(ce=(De=Y.state).wrap)===2||ce===1&&De.status!==_||De.lookahead)return v;for(ce===1&&(Y.adler=l(Y.adler,be,Pe,0)),De.wrap=0,Pe>=De.w_size&&(ce===0&&(Z(De.head),De.strstart=0,De.block_start=0,De.insert=0),Fe=new a.Buf8(De.w_size),a.arraySet(Fe,be,Pe-De.w_size,De.w_size,0),be=Fe,Pe=De.w_size),Re=Y.avail_in,Ee=Y.next_in,Le=Y.input,Y.avail_in=Pe,Y.next_in=0,Y.input=be,te(De);De.lookahead>=D;){for(pe=De.strstart,oe=De.lookahead-(D-1);De.ins_h=(De.ins_h<<De.hash_shift^De.window[pe+D-1])&De.hash_mask,De.prev[pe&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=pe,pe++,--oe;);De.strstart=pe,De.lookahead=D-1,te(De)}return De.strstart+=De.lookahead,De.block_start=De.strstart,De.insert=De.lookahead,De.lookahead=0,De.match_length=De.prev_length=D-1,De.match_available=0,Y.next_in=Ee,Y.input=Le,Y.avail_in=Re,De.wrap=ce,p},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,o){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,o){r.exports=function(i,a){var s,l,u,d,c,f,p,v,h,g,y,m,b,w,A,S,k,M,D,P,O,_,B,N,q;s=i.state,l=i.next_in,N=i.input,u=l+(i.avail_in-5),d=i.next_out,q=i.output,c=d-(a-i.avail_out),f=d+(i.avail_out-257),p=s.dmax,v=s.wsize,h=s.whave,g=s.wnext,y=s.window,m=s.hold,b=s.bits,w=s.lencode,A=s.distcode,S=(1<<s.lenbits)-1,k=(1<<s.distbits)-1;e:do{b<15&&(m+=N[l++]<<b,b+=8,m+=N[l++]<<b,b+=8),M=w[m&S];t:for(;;){if(m>>>=D=M>>>24,b-=D,(D=M>>>16&255)===0)q[d++]=65535&M;else{if(!(16&D)){if((64&D)==0){M=w[(65535&M)+(m&(1<<D)-1)];continue t}if(32&D){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}P=65535&M,(D&=15)&&(b<D&&(m+=N[l++]<<b,b+=8),P+=m&(1<<D)-1,m>>>=D,b-=D),b<15&&(m+=N[l++]<<b,b+=8,m+=N[l++]<<b,b+=8),M=A[m&k];n:for(;;){if(m>>>=D=M>>>24,b-=D,!(16&(D=M>>>16&255))){if((64&D)==0){M=A[(65535&M)+(m&(1<<D)-1)];continue n}i.msg="invalid distance code",s.mode=30;break e}if(O=65535&M,b<(D&=15)&&(m+=N[l++]<<b,(b+=8)<D&&(m+=N[l++]<<b,b+=8)),p<(O+=m&(1<<D)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=D,b-=D,(D=d-c)<O){if(h<(D=O-D)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(B=y,(_=0)===g){if(_+=v-D,D<P){for(P-=D;q[d++]=y[_++],--D;);_=d-O,B=q}}else if(g<D){if(_+=v+g-D,(D-=g)<P){for(P-=D;q[d++]=y[_++],--D;);if(_=0,g<P){for(P-=D=g;q[d++]=y[_++],--D;);_=d-O,B=q}}}else if(_+=g-D,D<P){for(P-=D;q[d++]=y[_++],--D;);_=d-O,B=q}for(;2<P;)q[d++]=B[_++],q[d++]=B[_++],q[d++]=B[_++],P-=3;P&&(q[d++]=B[_++],1<P&&(q[d++]=B[_++]))}else{for(_=d-O;q[d++]=q[_++],q[d++]=q[_++],q[d++]=q[_++],2<(P-=3););P&&(q[d++]=q[_++],1<P&&(q[d++]=q[_++]))}break}}break}}while(l<u&&d<f);l-=P=b>>3,m&=(1<<(b-=P<<3))-1,i.next_in=l,i.next_out=d,i.avail_in=l<u?u-l+5:5-(l-u),i.avail_out=d<f?f-d+257:257-(d-f),s.hold=m,s.bits=b}},{}],49:[function(n,r,o){var i=n("../utils/common"),a=n("./adler32"),s=n("./crc32"),l=n("./inffast"),u=n("./inftrees"),d=1,c=2,f=0,p=-2,v=1,h=852,g=592;function y(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(_){var B;return _&&_.state?(B=_.state,_.total_in=_.total_out=B.total=0,_.msg="",B.wrap&&(_.adler=1&B.wrap),B.mode=v,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new i.Buf32(h),B.distcode=B.distdyn=new i.Buf32(g),B.sane=1,B.back=-1,f):p}function w(_){var B;return _&&_.state?((B=_.state).wsize=0,B.whave=0,B.wnext=0,b(_)):p}function A(_,B){var N,q;return _&&_.state?(q=_.state,B<0?(N=0,B=-B):(N=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(q.window!==null&&q.wbits!==B&&(q.window=null),q.wrap=N,q.wbits=B,w(_))):p}function S(_,B){var N,q;return _?(q=new m,(_.state=q).window=null,(N=A(_,B))!==f&&(_.state=null),N):p}var k,M,D=!0;function P(_){if(D){var B;for(k=new i.Buf32(512),M=new i.Buf32(32),B=0;B<144;)_.lens[B++]=8;for(;B<256;)_.lens[B++]=9;for(;B<280;)_.lens[B++]=7;for(;B<288;)_.lens[B++]=8;for(u(d,_.lens,0,288,k,0,_.work,{bits:9}),B=0;B<32;)_.lens[B++]=5;u(c,_.lens,0,32,M,0,_.work,{bits:5}),D=!1}_.lencode=k,_.lenbits=9,_.distcode=M,_.distbits=5}function O(_,B,N,q){var U,j=_.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new i.Buf8(j.wsize)),q>=j.wsize?(i.arraySet(j.window,B,N-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(q<(U=j.wsize-j.wnext)&&(U=q),i.arraySet(j.window,B,N-q,U,j.wnext),(q-=U)?(i.arraySet(j.window,B,N-q,q,0),j.wnext=q,j.whave=j.wsize):(j.wnext+=U,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=U))),0}o.inflateReset=w,o.inflateReset2=A,o.inflateResetKeep=b,o.inflateInit=function(_){return S(_,15)},o.inflateInit2=S,o.inflate=function(_,B){var N,q,U,j,H,G,Z,$,L,W,ie,ee,te,X,ue,ve,Me,we,he,Te,Y,be,De,pe,oe=0,ce=new i.Buf8(4),Re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return p;(N=_.state).mode===12&&(N.mode=13),H=_.next_out,U=_.output,Z=_.avail_out,j=_.next_in,q=_.input,G=_.avail_in,$=N.hold,L=N.bits,W=G,ie=Z,be=f;e:for(;;)switch(N.mode){case v:if(N.wrap===0){N.mode=13;break}for(;L<16;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if(2&N.wrap&&$===35615){ce[N.check=0]=255&$,ce[1]=$>>>8&255,N.check=s(N.check,ce,2,0),L=$=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&$)<<8)+($>>8))%31){_.msg="incorrect header check",N.mode=30;break}if((15&$)!=8){_.msg="unknown compression method",N.mode=30;break}if(L-=4,Y=8+(15&($>>>=4)),N.wbits===0)N.wbits=Y;else if(Y>N.wbits){_.msg="invalid window size",N.mode=30;break}N.dmax=1<<Y,_.adler=N.check=1,N.mode=512&$?10:12,L=$=0;break;case 2:for(;L<16;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if(N.flags=$,(255&N.flags)!=8){_.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){_.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=$>>8&1),512&N.flags&&(ce[0]=255&$,ce[1]=$>>>8&255,N.check=s(N.check,ce,2,0)),L=$=0,N.mode=3;case 3:for(;L<32;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.head&&(N.head.time=$),512&N.flags&&(ce[0]=255&$,ce[1]=$>>>8&255,ce[2]=$>>>16&255,ce[3]=$>>>24&255,N.check=s(N.check,ce,4,0)),L=$=0,N.mode=4;case 4:for(;L<16;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.head&&(N.head.xflags=255&$,N.head.os=$>>8),512&N.flags&&(ce[0]=255&$,ce[1]=$>>>8&255,N.check=s(N.check,ce,2,0)),L=$=0,N.mode=5;case 5:if(1024&N.flags){for(;L<16;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.length=$,N.head&&(N.head.extra_len=$),512&N.flags&&(ce[0]=255&$,ce[1]=$>>>8&255,N.check=s(N.check,ce,2,0)),L=$=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(G<(ee=N.length)&&(ee=G),ee&&(N.head&&(Y=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,q,j,ee,Y)),512&N.flags&&(N.check=s(N.check,q,ee,j)),G-=ee,j+=ee,N.length-=ee),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(G===0)break e;for(ee=0;Y=q[j+ee++],N.head&&Y&&N.length<65536&&(N.head.name+=String.fromCharCode(Y)),Y&&ee<G;);if(512&N.flags&&(N.check=s(N.check,q,ee,j)),G-=ee,j+=ee,Y)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(G===0)break e;for(ee=0;Y=q[j+ee++],N.head&&Y&&N.length<65536&&(N.head.comment+=String.fromCharCode(Y)),Y&&ee<G;);if(512&N.flags&&(N.check=s(N.check,q,ee,j)),G-=ee,j+=ee,Y)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;L<16;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if($!==(65535&N.check)){_.msg="header crc mismatch",N.mode=30;break}L=$=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),_.adler=N.check=0,N.mode=12;break;case 10:for(;L<32;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}_.adler=N.check=y($),L=$=0,N.mode=11;case 11:if(N.havedict===0)return _.next_out=H,_.avail_out=Z,_.next_in=j,_.avail_in=G,N.hold=$,N.bits=L,2;_.adler=N.check=1,N.mode=12;case 12:if(B===5||B===6)break e;case 13:if(N.last){$>>>=7&L,L-=7&L,N.mode=27;break}for(;L<3;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}switch(N.last=1&$,L-=1,3&($>>>=1)){case 0:N.mode=14;break;case 1:if(P(N),N.mode=20,B!==6)break;$>>>=2,L-=2;break e;case 2:N.mode=17;break;case 3:_.msg="invalid block type",N.mode=30}$>>>=2,L-=2;break;case 14:for($>>>=7&L,L-=7&L;L<32;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if((65535&$)!=($>>>16^65535)){_.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&$,L=$=0,N.mode=15,B===6)break e;case 15:N.mode=16;case 16:if(ee=N.length){if(G<ee&&(ee=G),Z<ee&&(ee=Z),ee===0)break e;i.arraySet(U,q,j,ee,H),G-=ee,j+=ee,Z-=ee,H+=ee,N.length-=ee;break}N.mode=12;break;case 17:for(;L<14;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if(N.nlen=257+(31&$),$>>>=5,L-=5,N.ndist=1+(31&$),$>>>=5,L-=5,N.ncode=4+(15&$),$>>>=4,L-=4,286<N.nlen||30<N.ndist){_.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;L<3;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.lens[Re[N.have++]]=7&$,$>>>=3,L-=3}for(;N.have<19;)N.lens[Re[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,De={bits:N.lenbits},be=u(0,N.lens,0,19,N.lencode,0,N.work,De),N.lenbits=De.bits,be){_.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;ve=(oe=N.lencode[$&(1<<N.lenbits)-1])>>>16&255,Me=65535&oe,!((ue=oe>>>24)<=L);){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if(Me<16)$>>>=ue,L-=ue,N.lens[N.have++]=Me;else{if(Me===16){for(pe=ue+2;L<pe;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if($>>>=ue,L-=ue,N.have===0){_.msg="invalid bit length repeat",N.mode=30;break}Y=N.lens[N.have-1],ee=3+(3&$),$>>>=2,L-=2}else if(Me===17){for(pe=ue+3;L<pe;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}L-=ue,Y=0,ee=3+(7&($>>>=ue)),$>>>=3,L-=3}else{for(pe=ue+7;L<pe;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}L-=ue,Y=0,ee=11+(127&($>>>=ue)),$>>>=7,L-=7}if(N.have+ee>N.nlen+N.ndist){_.msg="invalid bit length repeat",N.mode=30;break}for(;ee--;)N.lens[N.have++]=Y}}if(N.mode===30)break;if(N.lens[256]===0){_.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,De={bits:N.lenbits},be=u(d,N.lens,0,N.nlen,N.lencode,0,N.work,De),N.lenbits=De.bits,be){_.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,De={bits:N.distbits},be=u(c,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,De),N.distbits=De.bits,be){_.msg="invalid distances set",N.mode=30;break}if(N.mode=20,B===6)break e;case 20:N.mode=21;case 21:if(6<=G&&258<=Z){_.next_out=H,_.avail_out=Z,_.next_in=j,_.avail_in=G,N.hold=$,N.bits=L,l(_,ie),H=_.next_out,U=_.output,Z=_.avail_out,j=_.next_in,q=_.input,G=_.avail_in,$=N.hold,L=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;ve=(oe=N.lencode[$&(1<<N.lenbits)-1])>>>16&255,Me=65535&oe,!((ue=oe>>>24)<=L);){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if(ve&&(240&ve)==0){for(we=ue,he=ve,Te=Me;ve=(oe=N.lencode[Te+(($&(1<<we+he)-1)>>we)])>>>16&255,Me=65535&oe,!(we+(ue=oe>>>24)<=L);){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}$>>>=we,L-=we,N.back+=we}if($>>>=ue,L-=ue,N.back+=ue,N.length=Me,ve===0){N.mode=26;break}if(32&ve){N.back=-1,N.mode=12;break}if(64&ve){_.msg="invalid literal/length code",N.mode=30;break}N.extra=15&ve,N.mode=22;case 22:if(N.extra){for(pe=N.extra;L<pe;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.length+=$&(1<<N.extra)-1,$>>>=N.extra,L-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;ve=(oe=N.distcode[$&(1<<N.distbits)-1])>>>16&255,Me=65535&oe,!((ue=oe>>>24)<=L);){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if((240&ve)==0){for(we=ue,he=ve,Te=Me;ve=(oe=N.distcode[Te+(($&(1<<we+he)-1)>>we)])>>>16&255,Me=65535&oe,!(we+(ue=oe>>>24)<=L);){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}$>>>=we,L-=we,N.back+=we}if($>>>=ue,L-=ue,N.back+=ue,64&ve){_.msg="invalid distance code",N.mode=30;break}N.offset=Me,N.extra=15&ve,N.mode=24;case 24:if(N.extra){for(pe=N.extra;L<pe;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}N.offset+=$&(1<<N.extra)-1,$>>>=N.extra,L-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){_.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(Z===0)break e;if(ee=ie-Z,N.offset>ee){if((ee=N.offset-ee)>N.whave&&N.sane){_.msg="invalid distance too far back",N.mode=30;break}te=ee>N.wnext?(ee-=N.wnext,N.wsize-ee):N.wnext-ee,ee>N.length&&(ee=N.length),X=N.window}else X=U,te=H-N.offset,ee=N.length;for(Z<ee&&(ee=Z),Z-=ee,N.length-=ee;U[H++]=X[te++],--ee;);N.length===0&&(N.mode=21);break;case 26:if(Z===0)break e;U[H++]=N.length,Z--,N.mode=21;break;case 27:if(N.wrap){for(;L<32;){if(G===0)break e;G--,$|=q[j++]<<L,L+=8}if(ie-=Z,_.total_out+=ie,N.total+=ie,ie&&(_.adler=N.check=N.flags?s(N.check,U,ie,H-ie):a(N.check,U,ie,H-ie)),ie=Z,(N.flags?$:y($))!==N.check){_.msg="incorrect data check",N.mode=30;break}L=$=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;L<32;){if(G===0)break e;G--,$+=q[j++]<<L,L+=8}if($!==(4294967295&N.total)){_.msg="incorrect length check",N.mode=30;break}L=$=0}N.mode=29;case 29:be=1;break e;case 30:be=-3;break e;case 31:return-4;case 32:default:return p}return _.next_out=H,_.avail_out=Z,_.next_in=j,_.avail_in=G,N.hold=$,N.bits=L,(N.wsize||ie!==_.avail_out&&N.mode<30&&(N.mode<27||B!==4))&&O(_,_.output,_.next_out,ie-_.avail_out)?(N.mode=31,-4):(W-=_.avail_in,ie-=_.avail_out,_.total_in+=W,_.total_out+=ie,N.total+=ie,N.wrap&&ie&&(_.adler=N.check=N.flags?s(N.check,U,ie,_.next_out-ie):a(N.check,U,ie,_.next_out-ie)),_.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(W==0&&ie===0||B===4)&&be===f&&(be=-5),be)},o.inflateEnd=function(_){if(!_||!_.state)return p;var B=_.state;return B.window&&(B.window=null),_.state=null,f},o.inflateGetHeader=function(_,B){var N;return _&&_.state?(2&(N=_.state).wrap)==0?p:((N.head=B).done=!1,f):p},o.inflateSetDictionary=function(_,B){var N,q=B.length;return _&&_.state?(N=_.state).wrap!==0&&N.mode!==11?p:N.mode===11&&a(1,B,q,0)!==N.check?-3:O(_,B,q,q)?(N.mode=31,-4):(N.havedict=1,f):p},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,o){var i=n("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,c,f,p,v,h,g,y){var m,b,w,A,S,k,M,D,P,O=y.bits,_=0,B=0,N=0,q=0,U=0,j=0,H=0,G=0,Z=0,$=0,L=null,W=0,ie=new i.Buf16(16),ee=new i.Buf16(16),te=null,X=0;for(_=0;_<=15;_++)ie[_]=0;for(B=0;B<p;B++)ie[c[f+B]]++;for(U=O,q=15;1<=q&&ie[q]===0;q--);if(q<U&&(U=q),q===0)return v[h++]=20971520,v[h++]=20971520,y.bits=1,0;for(N=1;N<q&&ie[N]===0;N++);for(U<N&&(U=N),_=G=1;_<=15;_++)if(G<<=1,(G-=ie[_])<0)return-1;if(0<G&&(d===0||q!==1))return-1;for(ee[1]=0,_=1;_<15;_++)ee[_+1]=ee[_]+ie[_];for(B=0;B<p;B++)c[f+B]!==0&&(g[ee[c[f+B]]++]=B);if(k=d===0?(L=te=g,19):d===1?(L=a,W-=257,te=s,X-=257,256):(L=l,te=u,-1),_=N,S=h,H=B=$=0,w=-1,A=(Z=1<<(j=U))-1,d===1&&852<Z||d===2&&592<Z)return 1;for(;;){for(M=_-H,P=g[B]<k?(D=0,g[B]):g[B]>k?(D=te[X+g[B]],L[W+g[B]]):(D=96,0),m=1<<_-H,N=b=1<<j;v[S+($>>H)+(b-=m)]=M<<24|D<<16|P|0,b!==0;);for(m=1<<_-1;$&m;)m>>=1;if(m!==0?($&=m-1,$+=m):$=0,B++,--ie[_]==0){if(_===q)break;_=c[f+g[B]]}if(U<_&&($&A)!==w){for(H===0&&(H=U),S+=N,G=1<<(j=_-H);j+H<q&&!((G-=ie[j+H])<=0);)j++,G<<=1;if(Z+=1<<j,d===1&&852<Z||d===2&&592<Z)return 1;v[w=$&A]=U<<24|j<<16|S-h|0}}return $!==0&&(v[S+$]=_-H<<24|64<<16|0),y.bits=U,0}},{"../utils/common":41}],51:[function(n,r,o){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,o){var i=n("../utils/common"),a=0,s=1;function l(oe){for(var ce=oe.length;0<=--ce;)oe[ce]=0}var u=0,d=29,c=256,f=c+1+d,p=30,v=19,h=2*f+1,g=15,y=16,m=7,b=256,w=16,A=17,S=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(f+2));l(O);var _=new Array(2*p);l(_);var B=new Array(512);l(B);var N=new Array(256);l(N);var q=new Array(d);l(q);var U,j,H,G=new Array(p);function Z(oe,ce,Re,Ee,Le){this.static_tree=oe,this.extra_bits=ce,this.extra_base=Re,this.elems=Ee,this.max_length=Le,this.has_stree=oe&&oe.length}function $(oe,ce){this.dyn_tree=oe,this.max_code=0,this.stat_desc=ce}function L(oe){return oe<256?B[oe]:B[256+(oe>>>7)]}function W(oe,ce){oe.pending_buf[oe.pending++]=255&ce,oe.pending_buf[oe.pending++]=ce>>>8&255}function ie(oe,ce,Re){oe.bi_valid>y-Re?(oe.bi_buf|=ce<<oe.bi_valid&65535,W(oe,oe.bi_buf),oe.bi_buf=ce>>y-oe.bi_valid,oe.bi_valid+=Re-y):(oe.bi_buf|=ce<<oe.bi_valid&65535,oe.bi_valid+=Re)}function ee(oe,ce,Re){ie(oe,Re[2*ce],Re[2*ce+1])}function te(oe,ce){for(var Re=0;Re|=1&oe,oe>>>=1,Re<<=1,0<--ce;);return Re>>>1}function X(oe,ce,Re){var Ee,Le,Fe=new Array(g+1),Pe=0;for(Ee=1;Ee<=g;Ee++)Fe[Ee]=Pe=Pe+Re[Ee-1]<<1;for(Le=0;Le<=ce;Le++){var Ne=oe[2*Le+1];Ne!==0&&(oe[2*Le]=te(Fe[Ne]++,Ne))}}function ue(oe){var ce;for(ce=0;ce<f;ce++)oe.dyn_ltree[2*ce]=0;for(ce=0;ce<p;ce++)oe.dyn_dtree[2*ce]=0;for(ce=0;ce<v;ce++)oe.bl_tree[2*ce]=0;oe.dyn_ltree[2*b]=1,oe.opt_len=oe.static_len=0,oe.last_lit=oe.matches=0}function ve(oe){8<oe.bi_valid?W(oe,oe.bi_buf):0<oe.bi_valid&&(oe.pending_buf[oe.pending++]=oe.bi_buf),oe.bi_buf=0,oe.bi_valid=0}function Me(oe,ce,Re,Ee){var Le=2*ce,Fe=2*Re;return oe[Le]<oe[Fe]||oe[Le]===oe[Fe]&&Ee[ce]<=Ee[Re]}function we(oe,ce,Re){for(var Ee=oe.heap[Re],Le=Re<<1;Le<=oe.heap_len&&(Le<oe.heap_len&&Me(ce,oe.heap[Le+1],oe.heap[Le],oe.depth)&&Le++,!Me(ce,Ee,oe.heap[Le],oe.depth));)oe.heap[Re]=oe.heap[Le],Re=Le,Le<<=1;oe.heap[Re]=Ee}function he(oe,ce,Re){var Ee,Le,Fe,Pe,Ne=0;if(oe.last_lit!==0)for(;Ee=oe.pending_buf[oe.d_buf+2*Ne]<<8|oe.pending_buf[oe.d_buf+2*Ne+1],Le=oe.pending_buf[oe.l_buf+Ne],Ne++,Ee===0?ee(oe,Le,ce):(ee(oe,(Fe=N[Le])+c+1,ce),(Pe=k[Fe])!==0&&ie(oe,Le-=q[Fe],Pe),ee(oe,Fe=L(--Ee),Re),(Pe=M[Fe])!==0&&ie(oe,Ee-=G[Fe],Pe)),Ne<oe.last_lit;);ee(oe,b,ce)}function Te(oe,ce){var Re,Ee,Le,Fe=ce.dyn_tree,Pe=ce.stat_desc.static_tree,Ne=ce.stat_desc.has_stree,pt=ce.stat_desc.elems,Rt=-1;for(oe.heap_len=0,oe.heap_max=h,Re=0;Re<pt;Re++)Fe[2*Re]!==0?(oe.heap[++oe.heap_len]=Rt=Re,oe.depth[Re]=0):Fe[2*Re+1]=0;for(;oe.heap_len<2;)Fe[2*(Le=oe.heap[++oe.heap_len]=Rt<2?++Rt:0)]=1,oe.depth[Le]=0,oe.opt_len--,Ne&&(oe.static_len-=Pe[2*Le+1]);for(ce.max_code=Rt,Re=oe.heap_len>>1;1<=Re;Re--)we(oe,Fe,Re);for(Le=pt;Re=oe.heap[1],oe.heap[1]=oe.heap[oe.heap_len--],we(oe,Fe,1),Ee=oe.heap[1],oe.heap[--oe.heap_max]=Re,oe.heap[--oe.heap_max]=Ee,Fe[2*Le]=Fe[2*Re]+Fe[2*Ee],oe.depth[Le]=(oe.depth[Re]>=oe.depth[Ee]?oe.depth[Re]:oe.depth[Ee])+1,Fe[2*Re+1]=Fe[2*Ee+1]=Le,oe.heap[1]=Le++,we(oe,Fe,1),2<=oe.heap_len;);oe.heap[--oe.heap_max]=oe.heap[1],(function(Bt,en){var Wt,Ut,ct,_t,st,Ot,Ae=en.dyn_tree,je=en.max_code,at=en.stat_desc.static_tree,gt=en.stat_desc.has_stree,nn=en.stat_desc.extra_bits,Tn=en.stat_desc.extra_base,He=en.stat_desc.max_length,ke=0;for(_t=0;_t<=g;_t++)Bt.bl_count[_t]=0;for(Ae[2*Bt.heap[Bt.heap_max]+1]=0,Wt=Bt.heap_max+1;Wt<h;Wt++)He<(_t=Ae[2*Ae[2*(Ut=Bt.heap[Wt])+1]+1]+1)&&(_t=He,ke++),Ae[2*Ut+1]=_t,je<Ut||(Bt.bl_count[_t]++,st=0,Tn<=Ut&&(st=nn[Ut-Tn]),Ot=Ae[2*Ut],Bt.opt_len+=Ot*(_t+st),gt&&(Bt.static_len+=Ot*(at[2*Ut+1]+st)));if(ke!==0){do{for(_t=He-1;Bt.bl_count[_t]===0;)_t--;Bt.bl_count[_t]--,Bt.bl_count[_t+1]+=2,Bt.bl_count[He]--,ke-=2}while(0<ke);for(_t=He;_t!==0;_t--)for(Ut=Bt.bl_count[_t];Ut!==0;)je<(ct=Bt.heap[--Wt])||(Ae[2*ct+1]!==_t&&(Bt.opt_len+=(_t-Ae[2*ct+1])*Ae[2*ct],Ae[2*ct+1]=_t),Ut--)}})(oe,ce),X(Fe,Rt,oe.bl_count)}function Y(oe,ce,Re){var Ee,Le,Fe=-1,Pe=ce[1],Ne=0,pt=7,Rt=4;for(Pe===0&&(pt=138,Rt=3),ce[2*(Re+1)+1]=65535,Ee=0;Ee<=Re;Ee++)Le=Pe,Pe=ce[2*(Ee+1)+1],++Ne<pt&&Le===Pe||(Ne<Rt?oe.bl_tree[2*Le]+=Ne:Le!==0?(Le!==Fe&&oe.bl_tree[2*Le]++,oe.bl_tree[2*w]++):Ne<=10?oe.bl_tree[2*A]++:oe.bl_tree[2*S]++,Fe=Le,Rt=(Ne=0)===Pe?(pt=138,3):Le===Pe?(pt=6,3):(pt=7,4))}function be(oe,ce,Re){var Ee,Le,Fe=-1,Pe=ce[1],Ne=0,pt=7,Rt=4;for(Pe===0&&(pt=138,Rt=3),Ee=0;Ee<=Re;Ee++)if(Le=Pe,Pe=ce[2*(Ee+1)+1],!(++Ne<pt&&Le===Pe)){if(Ne<Rt)for(;ee(oe,Le,oe.bl_tree),--Ne!=0;);else Le!==0?(Le!==Fe&&(ee(oe,Le,oe.bl_tree),Ne--),ee(oe,w,oe.bl_tree),ie(oe,Ne-3,2)):Ne<=10?(ee(oe,A,oe.bl_tree),ie(oe,Ne-3,3)):(ee(oe,S,oe.bl_tree),ie(oe,Ne-11,7));Fe=Le,Rt=(Ne=0)===Pe?(pt=138,3):Le===Pe?(pt=6,3):(pt=7,4)}}l(G);var De=!1;function pe(oe,ce,Re,Ee){ie(oe,(u<<1)+(Ee?1:0),3),(function(Le,Fe,Pe,Ne){ve(Le),W(Le,Pe),W(Le,~Pe),i.arraySet(Le.pending_buf,Le.window,Fe,Pe,Le.pending),Le.pending+=Pe})(oe,ce,Re)}o._tr_init=function(oe){De||((function(){var ce,Re,Ee,Le,Fe,Pe=new Array(g+1);for(Le=Ee=0;Le<d-1;Le++)for(q[Le]=Ee,ce=0;ce<1<<k[Le];ce++)N[Ee++]=Le;for(N[Ee-1]=Le,Le=Fe=0;Le<16;Le++)for(G[Le]=Fe,ce=0;ce<1<<M[Le];ce++)B[Fe++]=Le;for(Fe>>=7;Le<p;Le++)for(G[Le]=Fe<<7,ce=0;ce<1<<M[Le]-7;ce++)B[256+Fe++]=Le;for(Re=0;Re<=g;Re++)Pe[Re]=0;for(ce=0;ce<=143;)O[2*ce+1]=8,ce++,Pe[8]++;for(;ce<=255;)O[2*ce+1]=9,ce++,Pe[9]++;for(;ce<=279;)O[2*ce+1]=7,ce++,Pe[7]++;for(;ce<=287;)O[2*ce+1]=8,ce++,Pe[8]++;for(X(O,f+1,Pe),ce=0;ce<p;ce++)_[2*ce+1]=5,_[2*ce]=te(ce,5);U=new Z(O,k,c+1,f,g),j=new Z(_,M,0,p,g),H=new Z(new Array(0),D,0,v,m)})(),De=!0),oe.l_desc=new $(oe.dyn_ltree,U),oe.d_desc=new $(oe.dyn_dtree,j),oe.bl_desc=new $(oe.bl_tree,H),oe.bi_buf=0,oe.bi_valid=0,ue(oe)},o._tr_stored_block=pe,o._tr_flush_block=function(oe,ce,Re,Ee){var Le,Fe,Pe=0;0<oe.level?(oe.strm.data_type===2&&(oe.strm.data_type=(function(Ne){var pt,Rt=4093624447;for(pt=0;pt<=31;pt++,Rt>>>=1)if(1&Rt&&Ne.dyn_ltree[2*pt]!==0)return a;if(Ne.dyn_ltree[18]!==0||Ne.dyn_ltree[20]!==0||Ne.dyn_ltree[26]!==0)return s;for(pt=32;pt<c;pt++)if(Ne.dyn_ltree[2*pt]!==0)return s;return a})(oe)),Te(oe,oe.l_desc),Te(oe,oe.d_desc),Pe=(function(Ne){var pt;for(Y(Ne,Ne.dyn_ltree,Ne.l_desc.max_code),Y(Ne,Ne.dyn_dtree,Ne.d_desc.max_code),Te(Ne,Ne.bl_desc),pt=v-1;3<=pt&&Ne.bl_tree[2*P[pt]+1]===0;pt--);return Ne.opt_len+=3*(pt+1)+5+5+4,pt})(oe),Le=oe.opt_len+3+7>>>3,(Fe=oe.static_len+3+7>>>3)<=Le&&(Le=Fe)):Le=Fe=Re+5,Re+4<=Le&&ce!==-1?pe(oe,ce,Re,Ee):oe.strategy===4||Fe===Le?(ie(oe,2+(Ee?1:0),3),he(oe,O,_)):(ie(oe,4+(Ee?1:0),3),(function(Ne,pt,Rt,Bt){var en;for(ie(Ne,pt-257,5),ie(Ne,Rt-1,5),ie(Ne,Bt-4,4),en=0;en<Bt;en++)ie(Ne,Ne.bl_tree[2*P[en]+1],3);be(Ne,Ne.dyn_ltree,pt-1),be(Ne,Ne.dyn_dtree,Rt-1)})(oe,oe.l_desc.max_code+1,oe.d_desc.max_code+1,Pe+1),he(oe,oe.dyn_ltree,oe.dyn_dtree)),ue(oe),Ee&&ve(oe)},o._tr_tally=function(oe,ce,Re){return oe.pending_buf[oe.d_buf+2*oe.last_lit]=ce>>>8&255,oe.pending_buf[oe.d_buf+2*oe.last_lit+1]=255&ce,oe.pending_buf[oe.l_buf+oe.last_lit]=255&Re,oe.last_lit++,ce===0?oe.dyn_ltree[2*Re]++:(oe.matches++,ce--,oe.dyn_ltree[2*(N[Re]+c+1)]++,oe.dyn_dtree[2*L(ce)]++),oe.last_lit===oe.lit_bufsize-1},o._tr_align=function(oe){ie(oe,2,3),ee(oe,b,O),(function(ce){ce.bi_valid===16?(W(ce,ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0):8<=ce.bi_valid&&(ce.pending_buf[ce.pending++]=255&ce.bi_buf,ce.bi_buf>>=8,ce.bi_valid-=8)})(oe)}},{"../utils/common":41}],53:[function(n,r,o){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,o){(function(i){(function(a,s){if(!a.setImmediate){var l,u,d,c,f=1,p={},v=!1,h=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,l={}.toString.call(a.process)==="[object process]"?function(w){process.nextTick(function(){m(w)})}:(function(){if(a.postMessage&&!a.importScripts){var w=!0,A=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=A,w}})()?(c="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",b,!1):a.attachEvent("onmessage",b),function(w){a.postMessage(c+w,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){m(w.data)},function(w){d.port2.postMessage(w)}):h&&"onreadystatechange"in h.createElement("script")?(u=h.documentElement,function(w){var A=h.createElement("script");A.onreadystatechange=function(){m(w),A.onreadystatechange=null,u.removeChild(A),A=null},u.appendChild(A)}):function(w){setTimeout(m,0,w)},g.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var A=new Array(arguments.length-1),S=0;S<A.length;S++)A[S]=arguments[S+1];var k={callback:w,args:A};return p[f]=k,l(f),f++},g.clearImmediate=y}function y(w){delete p[w]}function m(w){if(v)setTimeout(m,0,w);else{var A=p[w];if(A){v=!0;try{(function(S){var k=S.callback,M=S.args;switch(M.length){case 0:k();break;case 1:k(M[0]);break;case 2:k(M[0],M[1]);break;case 3:k(M[0],M[1],M[2]);break;default:k.apply(s,M)}})(A)}finally{y(w),v=!1}}}}function b(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(c)===0&&m(+w.data.slice(c.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof $s<"u"?$s:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(cO)),cO.exports}var jte;function T4e(){if(jte)return O2;jte=1;var e=hut(),t=gut();O2.openArrayBuffer=n,O2.splitPath=r,O2.joinPath=o;function n(i){return t.loadAsync(i).then(function(a){function s(c){return a.file(c)!==null}function l(c,f){return a.file(c).async("uint8array").then(function(p){if(f==="base64")return e.fromByteArray(p);if(f){var v=new TextDecoder(f);return v.decode(p)}else return p})}function u(c,f){a.file(c,f)}function d(){return a.generateAsync({type:"arraybuffer"})}return{exists:s,read:l,write:u,toArrayBuffer:d}})}function r(i){var a=i.lastIndexOf("/");return a===-1?{dirname:"",basename:i}:{dirname:i.substring(0,a),basename:i.substring(a+1)}}function o(){var i=Array.prototype.filter.call(arguments,function(s){return s}),a=[];return i.forEach(function(s){/^\//.test(s)?a=[s]:a.push(s)}),a.join("/")}return O2}var Dx={},Ip={},Lm={},Hte;function _4e(){if(Hte)return Lm;Hte=1;var e=Ia;Lm.Element=n,Lm.element=function(i,a,s){return new n(i,a,s)},Lm.text=function(i){return{type:"text",value:i}};var t=Lm.emptyElement={first:function(){return null},firstOrEmpty:function(){return t},attributes:{},children:[]};function n(i,a,s){this.type="element",this.name=i,this.attributes=a||{},this.children=s||[]}n.prototype.first=function(i){return e.find(this.children,function(a){return a.name===i})},n.prototype.firstOrEmpty=function(i){return this.first(i)||t},n.prototype.getElementsByTagName=function(i){var a=e.filter(this.children,function(s){return s.name===i});return o(a)},n.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var r={getElementsByTagName:function(i){return o(e.flatten(this.map(function(a){return a.getElementsByTagName(i)},!0)))}};function o(i){return e.extend(i,r)}return Lm}var dO={},Ix={},P2={},uf={},q0={},Wte;function kD(){if(Wte)return q0;Wte=1;function e(i,a,s){if(s===void 0&&(s=Array.prototype),i&&typeof s.find=="function")return s.find.call(i,a);for(var l=0;l<i.length;l++)if(Object.prototype.hasOwnProperty.call(i,l)){var u=i[l];if(a.call(void 0,u,l,i))return u}}function t(i,a){return a===void 0&&(a=Object),a&&typeof a.freeze=="function"?a.freeze(i):i}function n(i,a){if(i===null||typeof i!="object")throw new TypeError("target is not an object");for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s]);return i}var r=t({HTML:"text/html",isHTML:function(i){return i===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(i){return i===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return q0.assign=n,q0.find=e,q0.freeze=t,q0.MIME_TYPE=r,q0.NAMESPACE=o,q0}var Vte;function DV(){if(Vte)return uf;Vte=1;var e=kD(),t=e.find,n=e.NAMESPACE;function r(He){return He!==""}function o(He){return He?He.split(/[\t\n\f\r ]+/).filter(r):[]}function i(He,ke){return He.hasOwnProperty(ke)||(He[ke]=!0),He}function a(He){if(!He)return[];var ke=o(He);return Object.keys(ke.reduce(i,{}))}function s(He){return function(ke){return He&&He.indexOf(ke)!==-1}}function l(He,ke){for(var me in He)Object.prototype.hasOwnProperty.call(He,me)&&(ke[me]=He[me])}function u(He,ke){var me=He.prototype;if(!(me instanceof ke)){let Be=function(){};Be.prototype=ke.prototype,Be=new Be,l(me,Be),He.prototype=me=Be}me.constructor!=He&&(typeof He!="function"&&console.error("unknown Class:"+He),me.constructor=He)}var d={},c=d.ELEMENT_NODE=1,f=d.ATTRIBUTE_NODE=2,p=d.TEXT_NODE=3,v=d.CDATA_SECTION_NODE=4,h=d.ENTITY_REFERENCE_NODE=5,g=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,m=d.COMMENT_NODE=8,b=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,A=d.DOCUMENT_FRAGMENT_NODE=11,S=d.NOTATION_NODE=12,k={},M={};k.INDEX_SIZE_ERR=(M[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(M[2]="DOMString size error",2);var D=k.HIERARCHY_REQUEST_ERR=(M[3]="Hierarchy request error",3);k.WRONG_DOCUMENT_ERR=(M[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(M[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(M[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(M[7]="No modification allowed",7);var P=k.NOT_FOUND_ERR=(M[8]="Not found",8);k.NOT_SUPPORTED_ERR=(M[9]="Not supported",9);var O=k.INUSE_ATTRIBUTE_ERR=(M[10]="Attribute in use",10);k.INVALID_STATE_ERR=(M[11]="Invalid state",11),k.SYNTAX_ERR=(M[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(M[13]="Invalid modification",13),k.NAMESPACE_ERR=(M[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(M[15]="Invalid access",15);function _(He,ke){if(ke instanceof Error)var me=ke;else me=this,Error.call(this,M[He]),this.message=M[He],Error.captureStackTrace&&Error.captureStackTrace(this,_);return me.code=He,ke&&(this.message=this.message+": "+ke),me}_.prototype=Error.prototype,l(k,_);function B(){}B.prototype={length:0,item:function(He){return He>=0&&He<this.length?this[He]:null},toString:function(He,ke){for(var me=[],Be=0;Be<this.length;Be++)at(this[Be],me,He,ke);return me.join("")},filter:function(He){return Array.prototype.filter.call(this,He)},indexOf:function(He){return Array.prototype.indexOf.call(this,He)}};function N(He,ke){this._node=He,this._refresh=ke,q(this)}function q(He){var ke=He._node._inc||He._node.ownerDocument._inc;if(He._inc!==ke){var me=He._refresh(He._node);if(Tn(He,"length",me.length),!He.$$length||me.length<He.$$length)for(var Be=me.length;Be in He;Be++)Object.prototype.hasOwnProperty.call(He,Be)&&delete He[Be];l(me,He),He._inc=ke}}N.prototype.item=function(He){return q(this),this[He]||null},u(N,B);function U(){}function j(He,ke){for(var me=He.length;me--;)if(He[me]===ke)return me}function H(He,ke,me,Be){if(Be?ke[j(ke,Be)]=me:ke[ke.length++]=me,He){me.ownerElement=He;var rt=He.ownerDocument;rt&&(Be&&te(rt,He,Be),ee(rt,He,me))}}function G(He,ke,me){var Be=j(ke,me);if(Be>=0){for(var rt=ke.length-1;Be<rt;)ke[Be]=ke[++Be];if(ke.length=rt,He){var ht=He.ownerDocument;ht&&(te(ht,He,me),me.ownerElement=null)}}else throw new _(P,new Error(He.tagName+"@"+me))}U.prototype={length:0,item:B.prototype.item,getNamedItem:function(He){for(var ke=this.length;ke--;){var me=this[ke];if(me.nodeName==He)return me}},setNamedItem:function(He){var ke=He.ownerElement;if(ke&&ke!=this._ownerElement)throw new _(O);var me=this.getNamedItem(He.nodeName);return H(this._ownerElement,this,He,me),me},setNamedItemNS:function(He){var ke=He.ownerElement,me;if(ke&&ke!=this._ownerElement)throw new _(O);return me=this.getNamedItemNS(He.namespaceURI,He.localName),H(this._ownerElement,this,He,me),me},removeNamedItem:function(He){var ke=this.getNamedItem(He);return G(this._ownerElement,this,ke),ke},removeNamedItemNS:function(He,ke){var me=this.getNamedItemNS(He,ke);return G(this._ownerElement,this,me),me},getNamedItemNS:function(He,ke){for(var me=this.length;me--;){var Be=this[me];if(Be.localName==ke&&Be.namespaceURI==He)return Be}return null}};function Z(){}Z.prototype={hasFeature:function(He,ke){return!0},createDocument:function(He,ke,me){var Be=new ie;if(Be.implementation=this,Be.childNodes=new B,Be.doctype=me||null,me&&Be.appendChild(me),ke){var rt=Be.createElementNS(He,ke);Be.appendChild(rt)}return Be},createDocumentType:function(He,ke,me){var Be=new Bt;return Be.name=He,Be.nodeName=He,Be.publicId=ke||"",Be.systemId=me||"",Be}};function $(){}$.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(He,ke){return ce(this,He,ke)},replaceChild:function(He,ke){ce(this,He,ke,oe),ke&&this.removeChild(ke)},removeChild:function(He){return ue(this,He)},appendChild:function(He){return this.insertBefore(He,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(He){return nn(this.ownerDocument||this,this,He)},normalize:function(){for(var He=this.firstChild;He;){var ke=He.nextSibling;ke&&ke.nodeType==p&&He.nodeType==p?(this.removeChild(ke),He.appendData(ke.data)):(He.normalize(),He=ke)}},isSupported:function(He,ke){return this.ownerDocument.implementation.hasFeature(He,ke)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(He){for(var ke=this;ke;){var me=ke._nsMap;if(me){for(var Be in me)if(Object.prototype.hasOwnProperty.call(me,Be)&&me[Be]===He)return Be}ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},lookupNamespaceURI:function(He){for(var ke=this;ke;){var me=ke._nsMap;if(me&&Object.prototype.hasOwnProperty.call(me,He))return me[He];ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},isDefaultNamespace:function(He){var ke=this.lookupPrefix(He);return ke==null}};function L(He){return He=="<"&&"<"||He==">"&&">"||He=="&"&&"&"||He=='"'&&"""||"&#"+He.charCodeAt()+";"}l(d,$),l(d,$.prototype);function W(He,ke){if(ke(He))return!0;if(He=He.firstChild)do if(W(He,ke))return!0;while(He=He.nextSibling)}function ie(){this.ownerDocument=this}function ee(He,ke,me){He&&He._inc++;var Be=me.namespaceURI;Be===n.XMLNS&&(ke._nsMap[me.prefix?me.localName:""]=me.value)}function te(He,ke,me,Be){He&&He._inc++;var rt=me.namespaceURI;rt===n.XMLNS&&delete ke._nsMap[me.prefix?me.localName:""]}function X(He,ke,me){if(He&&He._inc){He._inc++;var Be=ke.childNodes;if(me)Be[Be.length++]=me;else{for(var rt=ke.firstChild,ht=0;rt;)Be[ht++]=rt,rt=rt.nextSibling;Be.length=ht,delete Be[Be.length]}}}function ue(He,ke){var me=ke.previousSibling,Be=ke.nextSibling;return me?me.nextSibling=Be:He.firstChild=Be,Be?Be.previousSibling=me:He.lastChild=me,ke.parentNode=null,ke.previousSibling=null,ke.nextSibling=null,X(He.ownerDocument,He),ke}function ve(He){return He&&(He.nodeType===$.DOCUMENT_NODE||He.nodeType===$.DOCUMENT_FRAGMENT_NODE||He.nodeType===$.ELEMENT_NODE)}function Me(He){return He&&(he(He)||Te(He)||we(He)||He.nodeType===$.DOCUMENT_FRAGMENT_NODE||He.nodeType===$.COMMENT_NODE||He.nodeType===$.PROCESSING_INSTRUCTION_NODE)}function we(He){return He&&He.nodeType===$.DOCUMENT_TYPE_NODE}function he(He){return He&&He.nodeType===$.ELEMENT_NODE}function Te(He){return He&&He.nodeType===$.TEXT_NODE}function Y(He,ke){var me=He.childNodes||[];if(t(me,he)||we(ke))return!1;var Be=t(me,we);return!(ke&&Be&&me.indexOf(Be)>me.indexOf(ke))}function be(He,ke){var me=He.childNodes||[];function Be(ht){return he(ht)&&ht!==ke}if(t(me,Be))return!1;var rt=t(me,we);return!(ke&&rt&&me.indexOf(rt)>me.indexOf(ke))}function De(He,ke,me){if(!ve(He))throw new _(D,"Unexpected parent node type "+He.nodeType);if(me&&me.parentNode!==He)throw new _(P,"child not in parent");if(!Me(ke)||we(ke)&&He.nodeType!==$.DOCUMENT_NODE)throw new _(D,"Unexpected node type "+ke.nodeType+" for parent node type "+He.nodeType)}function pe(He,ke,me){var Be=He.childNodes||[],rt=ke.childNodes||[];if(ke.nodeType===$.DOCUMENT_FRAGMENT_NODE){var ht=rt.filter(he);if(ht.length>1||t(rt,Te))throw new _(D,"More than one element or text in fragment");if(ht.length===1&&!Y(He,me))throw new _(D,"Element in fragment can not be inserted before doctype")}if(he(ke)&&!Y(He,me))throw new _(D,"Only one element can be added and only after doctype");if(we(ke)){if(t(Be,we))throw new _(D,"Only one doctype is allowed");var rn=t(Be,he);if(me&&Be.indexOf(rn)<Be.indexOf(me))throw new _(D,"Doctype can only be inserted before an element");if(!me&&rn)throw new _(D,"Doctype can not be appended since element is present")}}function oe(He,ke,me){var Be=He.childNodes||[],rt=ke.childNodes||[];if(ke.nodeType===$.DOCUMENT_FRAGMENT_NODE){var ht=rt.filter(he);if(ht.length>1||t(rt,Te))throw new _(D,"More than one element or text in fragment");if(ht.length===1&&!be(He,me))throw new _(D,"Element in fragment can not be inserted before doctype")}if(he(ke)&&!be(He,me))throw new _(D,"Only one element can be added and only after doctype");if(we(ke)){if(t(Be,function(Je){return we(Je)&&Je!==me}))throw new _(D,"Only one doctype is allowed");var rn=t(Be,he);if(me&&Be.indexOf(rn)<Be.indexOf(me))throw new _(D,"Doctype can only be inserted before an element")}}function ce(He,ke,me,Be){De(He,ke,me),He.nodeType===$.DOCUMENT_NODE&&(Be||pe)(He,ke,me);var rt=ke.parentNode;if(rt&&rt.removeChild(ke),ke.nodeType===A){var ht=ke.firstChild;if(ht==null)return ke;var rn=ke.lastChild}else ht=rn=ke;var Ye=me?me.previousSibling:He.lastChild;ht.previousSibling=Ye,rn.nextSibling=me,Ye?Ye.nextSibling=ht:He.firstChild=ht,me==null?He.lastChild=rn:me.previousSibling=rn;do{ht.parentNode=He;var Je=He.ownerDocument||He;Re(ht,Je)}while(ht!==rn&&(ht=ht.nextSibling));return X(He.ownerDocument||He,He),ke.nodeType==A&&(ke.firstChild=ke.lastChild=null),ke}function Re(He,ke){if(He.ownerDocument!==ke){if(He.ownerDocument=ke,He.nodeType===c&&He.attributes)for(var me=0;me<He.attributes.length;me++){var Be=He.attributes.item(me);Be&&(Be.ownerDocument=ke)}for(var rt=He.firstChild;rt;)Re(rt,ke),rt=rt.nextSibling}}function Ee(He,ke){ke.parentNode&&ke.parentNode.removeChild(ke),ke.parentNode=He,ke.previousSibling=He.lastChild,ke.nextSibling=null,ke.previousSibling?ke.previousSibling.nextSibling=ke:He.firstChild=ke,He.lastChild=ke,X(He.ownerDocument,He,ke);var me=He.ownerDocument||He;return Re(ke,me),ke}ie.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:function(He,ke){if(He.nodeType==A){for(var me=He.firstChild;me;){var Be=me.nextSibling;this.insertBefore(me,ke),me=Be}return He}return ce(this,He,ke),Re(He,this),this.documentElement===null&&He.nodeType===c&&(this.documentElement=He),He},removeChild:function(He){return this.documentElement==He&&(this.documentElement=null),ue(this,He)},replaceChild:function(He,ke){ce(this,He,ke,oe),Re(He,this),ke&&this.removeChild(ke),he(He)&&(this.documentElement=He)},importNode:function(He,ke){return gt(this,He,ke)},getElementById:function(He){var ke=null;return W(this.documentElement,function(me){if(me.nodeType==c&&me.getAttribute("id")==He)return ke=me,!0}),ke},getElementsByClassName:function(He){var ke=a(He);return new N(this,function(me){var Be=[];return ke.length>0&&W(me.documentElement,function(rt){if(rt!==me&&rt.nodeType===c){var ht=rt.getAttribute("class");if(ht){var rn=He===ht;if(!rn){var Ye=a(ht);rn=ke.every(s(Ye))}rn&&Be.push(rt)}}}),Be})},createElement:function(He){var ke=new Le;ke.ownerDocument=this,ke.nodeName=He,ke.tagName=He,ke.localName=He,ke.childNodes=new B;var me=ke.attributes=new U;return me._ownerElement=ke,ke},createDocumentFragment:function(){var He=new ct;return He.ownerDocument=this,He.childNodes=new B,He},createTextNode:function(He){var ke=new Ne;return ke.ownerDocument=this,ke.appendData(He),ke},createComment:function(He){var ke=new pt;return ke.ownerDocument=this,ke.appendData(He),ke},createCDATASection:function(He){var ke=new Rt;return ke.ownerDocument=this,ke.appendData(He),ke},createProcessingInstruction:function(He,ke){var me=new _t;return me.ownerDocument=this,me.tagName=me.nodeName=me.target=He,me.nodeValue=me.data=ke,me},createAttribute:function(He){var ke=new Fe;return ke.ownerDocument=this,ke.name=He,ke.nodeName=He,ke.localName=He,ke.specified=!0,ke},createEntityReference:function(He){var ke=new Ut;return ke.ownerDocument=this,ke.nodeName=He,ke},createElementNS:function(He,ke){var me=new Le,Be=ke.split(":"),rt=me.attributes=new U;return me.childNodes=new B,me.ownerDocument=this,me.nodeName=ke,me.tagName=ke,me.namespaceURI=He,Be.length==2?(me.prefix=Be[0],me.localName=Be[1]):me.localName=ke,rt._ownerElement=me,me},createAttributeNS:function(He,ke){var me=new Fe,Be=ke.split(":");return me.ownerDocument=this,me.nodeName=ke,me.name=ke,me.namespaceURI=He,me.specified=!0,Be.length==2?(me.prefix=Be[0],me.localName=Be[1]):me.localName=ke,me}},u(ie,$);function Le(){this._nsMap={}}Le.prototype={nodeType:c,hasAttribute:function(He){return this.getAttributeNode(He)!=null},getAttribute:function(He){var ke=this.getAttributeNode(He);return ke&&ke.value||""},getAttributeNode:function(He){return this.attributes.getNamedItem(He)},setAttribute:function(He,ke){var me=this.ownerDocument.createAttribute(He);me.value=me.nodeValue=""+ke,this.setAttributeNode(me)},removeAttribute:function(He){var ke=this.getAttributeNode(He);ke&&this.removeAttributeNode(ke)},appendChild:function(He){return He.nodeType===A?this.insertBefore(He,null):Ee(this,He)},setAttributeNode:function(He){return this.attributes.setNamedItem(He)},setAttributeNodeNS:function(He){return this.attributes.setNamedItemNS(He)},removeAttributeNode:function(He){return this.attributes.removeNamedItem(He.nodeName)},removeAttributeNS:function(He,ke){var me=this.getAttributeNodeNS(He,ke);me&&this.removeAttributeNode(me)},hasAttributeNS:function(He,ke){return this.getAttributeNodeNS(He,ke)!=null},getAttributeNS:function(He,ke){var me=this.getAttributeNodeNS(He,ke);return me&&me.value||""},setAttributeNS:function(He,ke,me){var Be=this.ownerDocument.createAttributeNS(He,ke);Be.value=Be.nodeValue=""+me,this.setAttributeNode(Be)},getAttributeNodeNS:function(He,ke){return this.attributes.getNamedItemNS(He,ke)},getElementsByTagName:function(He){return new N(this,function(ke){var me=[];return W(ke,function(Be){Be!==ke&&Be.nodeType==c&&(He==="*"||Be.tagName==He)&&me.push(Be)}),me})},getElementsByTagNameNS:function(He,ke){return new N(this,function(me){var Be=[];return W(me,function(rt){rt!==me&&rt.nodeType===c&&(He==="*"||rt.namespaceURI===He)&&(ke==="*"||rt.localName==ke)&&Be.push(rt)}),Be})}},ie.prototype.getElementsByTagName=Le.prototype.getElementsByTagName,ie.prototype.getElementsByTagNameNS=Le.prototype.getElementsByTagNameNS,u(Le,$);function Fe(){}Fe.prototype.nodeType=f,u(Fe,$);function Pe(){}Pe.prototype={data:"",substringData:function(He,ke){return this.data.substring(He,He+ke)},appendData:function(He){He=this.data+He,this.nodeValue=this.data=He,this.length=He.length},insertData:function(He,ke){this.replaceData(He,0,ke)},appendChild:function(He){throw new Error(M[D])},deleteData:function(He,ke){this.replaceData(He,ke,"")},replaceData:function(He,ke,me){var Be=this.data.substring(0,He),rt=this.data.substring(He+ke);me=Be+me+rt,this.nodeValue=this.data=me,this.length=me.length}},u(Pe,$);function Ne(){}Ne.prototype={nodeName:"#text",nodeType:p,splitText:function(He){var ke=this.data,me=ke.substring(He);ke=ke.substring(0,He),this.data=this.nodeValue=ke,this.length=ke.length;var Be=this.ownerDocument.createTextNode(me);return this.parentNode&&this.parentNode.insertBefore(Be,this.nextSibling),Be}},u(Ne,Pe);function pt(){}pt.prototype={nodeName:"#comment",nodeType:m},u(pt,Pe);function Rt(){}Rt.prototype={nodeName:"#cdata-section",nodeType:v},u(Rt,Pe);function Bt(){}Bt.prototype.nodeType=w,u(Bt,$);function en(){}en.prototype.nodeType=S,u(en,$);function Wt(){}Wt.prototype.nodeType=g,u(Wt,$);function Ut(){}Ut.prototype.nodeType=h,u(Ut,$);function ct(){}ct.prototype.nodeName="#document-fragment",ct.prototype.nodeType=A,u(ct,$);function _t(){}_t.prototype.nodeType=y,u(_t,$);function st(){}st.prototype.serializeToString=function(He,ke,me){return Ot.call(He,ke,me)},$.prototype.toString=Ot;function Ot(He,ke){var me=[],Be=this.nodeType==9&&this.documentElement||this,rt=Be.prefix,ht=Be.namespaceURI;if(ht&&rt==null){var rt=Be.lookupPrefix(ht);if(rt==null)var rn=[{namespace:ht,prefix:null}]}return at(this,me,He,ke,rn),me.join("")}function Ae(He,ke,me){var Be=He.prefix||"",rt=He.namespaceURI;if(!rt||Be==="xml"&&rt===n.XML||rt===n.XMLNS)return!1;for(var ht=me.length;ht--;){var rn=me[ht];if(rn.prefix===Be)return rn.namespace!==rt}return!0}function je(He,ke,me){He.push(" ",ke,'="',me.replace(/[<>&"\t\n\r]/g,L),'"')}function at(He,ke,me,Be,rt){if(rt||(rt=[]),Be)if(He=Be(He),He){if(typeof He=="string"){ke.push(He);return}}else return;switch(He.nodeType){case c:var ht=He.attributes,rn=ht.length,xt=He.firstChild,Ye=He.tagName;me=n.isHTML(He.namespaceURI)||me;var Je=Ye;if(!me&&!He.prefix&&He.namespaceURI){for(var lt,Ue=0;Ue<ht.length;Ue++)if(ht.item(Ue).name==="xmlns"){lt=ht.item(Ue).value;break}if(!lt)for(var ze=rt.length-1;ze>=0;ze--){var ut=rt[ze];if(ut.prefix===""&&ut.namespace===He.namespaceURI){lt=ut.namespace;break}}if(lt!==He.namespaceURI)for(var ze=rt.length-1;ze>=0;ze--){var ut=rt[ze];if(ut.namespace===He.namespaceURI){ut.prefix&&(Je=ut.prefix+":"+Ye);break}}}ke.push("<",Je);for(var yt=0;yt<rn;yt++){var jt=ht.item(yt);jt.prefix=="xmlns"?rt.push({prefix:jt.localName,namespace:jt.value}):jt.nodeName=="xmlns"&&rt.push({prefix:"",namespace:jt.value})}for(var yt=0;yt<rn;yt++){var jt=ht.item(yt);if(Ae(jt,me,rt)){var mn=jt.prefix||"",Nn=jt.namespaceURI;je(ke,mn?"xmlns:"+mn:"xmlns",Nn),rt.push({prefix:mn,namespace:Nn})}at(jt,ke,me,Be,rt)}if(Ye===Je&&Ae(He,me,rt)){var mn=He.prefix||"",Nn=He.namespaceURI;je(ke,mn?"xmlns:"+mn:"xmlns",Nn),rt.push({prefix:mn,namespace:Nn})}if(xt||me&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ye)){if(ke.push(">"),me&&/^script$/i.test(Ye))for(;xt;)xt.data?ke.push(xt.data):at(xt,ke,me,Be,rt.slice()),xt=xt.nextSibling;else for(;xt;)at(xt,ke,me,Be,rt.slice()),xt=xt.nextSibling;ke.push("</",Je,">")}else ke.push("/>");return;case b:case A:for(var xt=He.firstChild;xt;)at(xt,ke,me,Be,rt.slice()),xt=xt.nextSibling;return;case f:return je(ke,He.name,He.value);case p:return ke.push(He.data.replace(/[<&>]/g,L));case v:return ke.push("<![CDATA[",He.data,"]]>");case m:return ke.push("<!--",He.data,"-->");case w:var sn=He.publicId,vt=He.systemId;if(ke.push("<!DOCTYPE ",He.name),sn)ke.push(" PUBLIC ",sn),vt&&vt!="."&&ke.push(" ",vt),ke.push(">");else if(vt&&vt!=".")ke.push(" SYSTEM ",vt,">");else{var Nt=He.internalSubset;Nt&&ke.push(" [",Nt,"]"),ke.push(">")}return;case y:return ke.push("<?",He.target," ",He.data,"?>");case h:return ke.push("&",He.nodeName,";");default:ke.push("??",He.nodeName)}}function gt(He,ke,me){var Be;switch(ke.nodeType){case c:Be=ke.cloneNode(!1),Be.ownerDocument=He;case A:break;case f:me=!0;break}if(Be||(Be=ke.cloneNode(!1)),Be.ownerDocument=He,Be.parentNode=null,me)for(var rt=ke.firstChild;rt;)Be.appendChild(gt(He,rt,me)),rt=rt.nextSibling;return Be}function nn(He,ke,me){var Be=new ke.constructor;for(var rt in ke)if(Object.prototype.hasOwnProperty.call(ke,rt)){var ht=ke[rt];typeof ht!="object"&&ht!=Be[rt]&&(Be[rt]=ht)}switch(ke.childNodes&&(Be.childNodes=new B),Be.ownerDocument=He,Be.nodeType){case c:var rn=ke.attributes,Ye=Be.attributes=new U,Je=rn.length;Ye._ownerElement=Be;for(var lt=0;lt<Je;lt++)Be.setAttributeNode(nn(He,rn.item(lt),!0));break;case f:me=!0}if(me)for(var Ue=ke.firstChild;Ue;)Be.appendChild(nn(He,Ue,me)),Ue=Ue.nextSibling;return Be}function Tn(He,ke,me){He[ke]=me}try{if(Object.defineProperty){let He=function(ke){switch(ke.nodeType){case c:case A:var me=[];for(ke=ke.firstChild;ke;)ke.nodeType!==7&&ke.nodeType!==8&&me.push(He(ke)),ke=ke.nextSibling;return me.join("");default:return ke.nodeValue}};Object.defineProperty(N.prototype,"length",{get:function(){return q(this),this.$$length}}),Object.defineProperty($.prototype,"textContent",{get:function(){return He(this)},set:function(ke){switch(this.nodeType){case c:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(ke||String(ke))&&this.appendChild(this.ownerDocument.createTextNode(ke));break;default:this.data=ke,this.value=ke,this.nodeValue=ke}}}),Tn=function(ke,me,Be){ke["$$"+me]=Be}}}catch{}return uf.DocumentType=Bt,uf.DOMException=_,uf.DOMImplementation=Z,uf.Element=Le,uf.Node=$,uf.NodeList=B,uf.XMLSerializer=st,uf}var N2={},fO={},qte;function vut(){return qte||(qte=1,(function(e){var t=kD().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(fO)),fO}var Ox={},Gte;function mut(){if(Gte)return Ox;Gte=1;var e=kD().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$"),o=0,i=1,a=2,s=3,l=4,u=5,d=6,c=7;function f(D,P){this.message=D,this.locator=P,Error.captureStackTrace&&Error.captureStackTrace(this,f)}f.prototype=new Error,f.prototype.name=f.name;function p(){}p.prototype={parse:function(D,P,O){var _=this.domBuilder;_.startDocument(),w(P,P={}),v(D,P,O,_,this.errorHandler),_.endDocument()}};function v(D,P,O,_,B){function N(Ee){if(Ee>65535){Ee-=65536;var Le=55296+(Ee>>10),Fe=56320+(Ee&1023);return String.fromCharCode(Le,Fe)}else return String.fromCharCode(Ee)}function q(Ee){var Le=Ee.slice(1,-1);return Object.hasOwnProperty.call(O,Le)?O[Le]:Le.charAt(0)==="#"?N(parseInt(Le.substr(1).replace("x","0x"))):(B.error("entity not found:"+Ee),Ee)}function U(Ee){if(Ee>ie){var Le=D.substring(ie,Ee).replace(/&#?\w+;/g,q);$&&j(ie),_.characters(Le,0,Ee-ie),ie=Ee}}function j(Ee,Le){for(;Ee>=G&&(Le=Z.exec(D));)H=Le.index,G=H+Le[0].length,$.lineNumber++;$.columnNumber=Ee-H+1}for(var H=0,G=0,Z=/.*(?:\r\n?|\n)|.*$/g,$=_.locator,L=[{currentNSMap:P}],W={},ie=0;;){try{var ee=D.indexOf("<",ie);if(ee<0){if(!D.substr(ie).match(/^\s*$/)){var te=_.doc,X=te.createTextNode(D.substr(ie));te.appendChild(X),_.currentElement=X}return}switch(ee>ie&&U(ee),D.charAt(ee+1)){case"/":var De=D.indexOf(">",ee+3),ue=D.substring(ee+2,De).replace(/[ \t\n\r]+$/g,""),ve=L.pop();De<0?(ue=D.substring(ee+2).replace(/[\s<].*/,""),B.error("end tag name: "+ue+" is not complete:"+ve.tagName),De=ee+1+ue.length):ue.match(/\s</)&&(ue=ue.replace(/[\s<].*/,""),B.error("end tag name: "+ue+" maybe not complete"),De=ee+1+ue.length);var Me=ve.localNSMap,we=ve.tagName==ue,he=we||ve.tagName&&ve.tagName.toLowerCase()==ue.toLowerCase();if(he){if(_.endElement(ve.uri,ve.localName,ue),Me)for(var Te in Me)Object.prototype.hasOwnProperty.call(Me,Te)&&_.endPrefixMapping(Te);we||B.fatalError("end tag name: "+ue+" is not match the current start tagName:"+ve.tagName)}else L.push(ve);De++;break;case"?":$&&j(ee),De=S(D,ee,_);break;case"!":$&&j(ee),De=A(D,ee,_,B);break;default:$&&j(ee);var Y=new k,be=L[L.length-1].currentNSMap,De=g(D,ee,Y,be,q,B),pe=Y.length;if(!Y.closed&&b(D,De,Y.tagName,W)&&(Y.closed=!0,O.nbsp||B.warning("unclosed xml attribute")),$&&pe){for(var oe=h($,{}),ce=0;ce<pe;ce++){var Re=Y[ce];j(Re.offset),Re.locator=h($,{})}_.locator=oe,y(Y,_,be)&&L.push(Y),_.locator=$}else y(Y,_,be)&&L.push(Y);e.isHTML(Y.uri)&&!Y.closed?De=m(D,De,Y.tagName,q,_):De++}}catch(Ee){if(Ee instanceof f)throw Ee;B.error("element parse error: "+Ee),De=-1}De>ie?ie=De:U(Math.max(ee,ie)+1)}}function h(D,P){return P.lineNumber=D.lineNumber,P.columnNumber=D.columnNumber,P}function g(D,P,O,_,B,N){function q($,L,W){O.attributeNames.hasOwnProperty($)&&N.fatalError("Attribute "+$+" redefined"),O.addValue($,L.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,B),W)}for(var U,j,H=++P,G=o;;){var Z=D.charAt(H);switch(Z){case"=":if(G===i)U=D.slice(P,H),G=s;else if(G===a)G=s;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(G===s||G===i)if(G===i&&(N.warning('attribute value must after "="'),U=D.slice(P,H)),P=H+1,H=D.indexOf(Z,P),H>0)j=D.slice(P,H),q(U,j,P-1),G=u;else throw new Error("attribute value no end '"+Z+"' match");else if(G==l)j=D.slice(P,H),q(U,j,P),N.warning('attribute "'+U+'" missed start quot('+Z+")!!"),P=H+1,G=u;else throw new Error('attribute value must after "="');break;case"/":switch(G){case o:O.setTagName(D.slice(P,H));case u:case d:case c:G=c,O.closed=!0;case l:case i:break;case a:O.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return N.error("unexpected end of input"),G==o&&O.setTagName(D.slice(P,H)),H;case">":switch(G){case o:O.setTagName(D.slice(P,H));case u:case d:case c:break;case l:case i:j=D.slice(P,H),j.slice(-1)==="/"&&(O.closed=!0,j=j.slice(0,-1));case a:G===a&&(j=U),G==l?(N.warning('attribute "'+j+'" missed quot(")!'),q(U,j,P)):((!e.isHTML(_[""])||!j.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),q(j,j,P));break;case s:throw new Error("attribute value missed!!")}return H;case"":Z=" ";default:if(Z<=" ")switch(G){case o:O.setTagName(D.slice(P,H)),G=d;break;case i:U=D.slice(P,H),G=a;break;case l:var j=D.slice(P,H);N.warning('attribute "'+j+'" missed quot(")!!'),q(U,j,P);case u:G=d;break}else switch(G){case a:O.tagName,(!e.isHTML(_[""])||!U.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+U+'" missed value!! "'+U+'" instead2!!'),q(U,U,P),P=H,G=i;break;case u:N.warning('attribute space is required"'+U+'"!!');case d:G=i,P=H;break;case s:G=l,P=H;break;case c:throw new Error("elements closed character '/' and '>' must be connected to")}}H++}}function y(D,P,O){for(var _=D.tagName,B=null,Z=D.length;Z--;){var N=D[Z],q=N.qName,U=N.value,$=q.indexOf(":");if($>0)var j=N.prefix=q.slice(0,$),H=q.slice($+1),G=j==="xmlns"&&H;else H=q,j=null,G=q==="xmlns"&&"";N.localName=H,G!==!1&&(B==null&&(B={},w(O,O={})),O[G]=B[G]=U,N.uri=e.XMLNS,P.startPrefixMapping(G,U))}for(var Z=D.length;Z--;){N=D[Z];var j=N.prefix;j&&(j==="xml"&&(N.uri=e.XML),j!=="xmlns"&&(N.uri=O[j||""]))}var $=_.indexOf(":");$>0?(j=D.prefix=_.slice(0,$),H=D.localName=_.slice($+1)):(j=null,H=D.localName=_);var L=D.uri=O[j||""];if(P.startElement(L,H,_,D),D.closed){if(P.endElement(L,H,_),B)for(j in B)Object.prototype.hasOwnProperty.call(B,j)&&P.endPrefixMapping(j)}else return D.currentNSMap=O,D.localNSMap=B,!0}function m(D,P,O,_,B){if(/^(?:script|textarea)$/i.test(O)){var N=D.indexOf("</"+O+">",P),q=D.substring(P+1,N);if(/[&<]/.test(q))return/^script$/i.test(O)?(B.characters(q,0,q.length),N):(q=q.replace(/&#?\w+;/g,_),B.characters(q,0,q.length),N)}return P+1}function b(D,P,O,_){var B=_[O];return B==null&&(B=D.lastIndexOf("</"+O+">"),B<P&&(B=D.lastIndexOf("</"+O)),_[O]=B),B<P}function w(D,P){for(var O in D)Object.prototype.hasOwnProperty.call(D,O)&&(P[O]=D[O])}function A(D,P,O,_){var B=D.charAt(P+2);switch(B){case"-":if(D.charAt(P+3)==="-"){var N=D.indexOf("-->",P+4);return N>P?(O.comment(D,P+4,N-P-4),N+3):(_.error("Unclosed comment"),-1)}else return-1;default:if(D.substr(P+3,6)=="CDATA["){var N=D.indexOf("]]>",P+9);return O.startCDATA(),O.characters(D,P+9,N-P-9),O.endCDATA(),N+3}var q=M(D,P),U=q.length;if(U>1&&/!doctype/i.test(q[0][0])){var j=q[1][0],H=!1,G=!1;U>3&&(/^public$/i.test(q[2][0])?(H=q[3][0],G=U>4&&q[4][0]):/^system$/i.test(q[2][0])&&(G=q[3][0]));var Z=q[U-1];return O.startDTD(j,H,G),O.endDTD(),Z.index+Z[0].length}}return-1}function S(D,P,O){var _=D.indexOf("?>",P);if(_){var B=D.substring(P,_).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return B?(B[0].length,O.processingInstruction(B[1],B[2]),_+2):-1}return-1}function k(){this.attributeNames={}}k.prototype={setTagName:function(D){if(!r.test(D))throw new Error("invalid tagName:"+D);this.tagName=D},addValue:function(D,P,O){if(!r.test(D))throw new Error("invalid attribute:"+D);this.attributeNames[D]=this.length,this[this.length++]={qName:D,value:P,offset:O}},length:0,getLocalName:function(D){return this[D].localName},getLocator:function(D){return this[D].locator},getQName:function(D){return this[D].qName},getURI:function(D){return this[D].uri},getValue:function(D){return this[D].value}};function M(D,P){var O,_=[],B=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(B.lastIndex=P,B.exec(D);O=B.exec(D);)if(_.push(O),O[1])return _}return Ox.XMLReader=p,Ox.ParseError=f,Ox}var Kte;function yut(){if(Kte)return N2;Kte=1;var e=kD(),t=DV(),n=vut(),r=mut(),o=t.DOMImplementation,i=e.NAMESPACE,a=r.ParseError,s=r.XMLReader;function l(g){return g.replace(/\r[\n\u0085]/g,`
- `).replace(/[\r\u0085\u2028]/g,`
- `)}function u(g){this.options=g||{locator:{}}}u.prototype.parseFromString=function(g,y){var m=this.options,b=new s,w=m.domBuilder||new c,A=m.errorHandler,S=m.locator,k=m.xmlns||{},M=/\/x?html?$/.test(y),D=M?n.HTML_ENTITIES:n.XML_ENTITIES;S&&w.setDocumentLocator(S),b.errorHandler=d(A,w,S),b.domBuilder=m.domBuilder||w,M&&(k[""]=i.HTML),k.xml=k.xml||i.XML;var P=m.normalizeLineEndings||l;return g&&typeof g=="string"?b.parse(P(g),k,D):b.errorHandler.error("invalid doc source"),w.doc};function d(g,y,m){if(!g){if(y instanceof c)return y;g=y}var b={},w=g instanceof Function;m=m||{};function A(S){var k=g[S];!k&&w&&(k=g.length==2?function(M){g(S,M)}:g),b[S]=k&&function(M){k("[xmldom "+S+"] "+M+p(m))}||function(){}}return A("warning"),A("error"),A("fatalError"),b}function c(){this.cdata=!1}function f(g,y){y.lineNumber=g.lineNumber,y.columnNumber=g.columnNumber}c.prototype={startDocument:function(){this.doc=new o().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(g,y,m,b){var w=this.doc,A=w.createElementNS(g,m||y),S=b.length;h(this,A),this.currentElement=A,this.locator&&f(this.locator,A);for(var k=0;k<S;k++){var g=b.getURI(k),M=b.getValue(k),m=b.getQName(k),D=w.createAttributeNS(g,m);this.locator&&f(b.getLocator(k),D),D.value=D.nodeValue=M,A.setAttributeNode(D)}},endElement:function(g,y,m){var b=this.currentElement;b.tagName,this.currentElement=b.parentNode},startPrefixMapping:function(g,y){},endPrefixMapping:function(g){},processingInstruction:function(g,y){var m=this.doc.createProcessingInstruction(g,y);this.locator&&f(this.locator,m),h(this,m)},ignorableWhitespace:function(g,y,m){},characters:function(g,y,m){if(g=v.apply(this,arguments),g){if(this.cdata)var b=this.doc.createCDATASection(g);else var b=this.doc.createTextNode(g);this.currentElement?this.currentElement.appendChild(b):/^\s*$/.test(g)&&this.doc.appendChild(b),this.locator&&f(this.locator,b)}},skippedEntity:function(g){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(g){(this.locator=g)&&(g.lineNumber=0)},comment:function(g,y,m){g=v.apply(this,arguments);var b=this.doc.createComment(g);this.locator&&f(this.locator,b),h(this,b)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(g,y,m){var b=this.doc.implementation;if(b&&b.createDocumentType){var w=b.createDocumentType(g,y,m);this.locator&&f(this.locator,w),h(this,w),this.doc.doctype=w}},warning:function(g){console.warn("[xmldom warning] "+g,p(this.locator))},error:function(g){console.error("[xmldom error] "+g,p(this.locator))},fatalError:function(g){throw new a(g,this.locator)}};function p(g){if(g)return`
- @`+(g.systemId||"")+"#[line:"+g.lineNumber+",col:"+g.columnNumber+"]"}function v(g,y,m){return typeof g=="string"?g.substr(y,m):g.length>=y+m||y?new java.lang.String(g,y,m)+"":g}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(g){c.prototype[g]=function(){return null}});function h(g,y){g.currentElement?g.currentElement.appendChild(y):g.doc.appendChild(y)}return N2.__DOMHandler=c,N2.normalizeLineEndings=l,N2.DOMParser=u,N2}var Qte;function but(){if(Qte)return P2;Qte=1;var e=DV();return P2.DOMImplementation=e.DOMImplementation,P2.XMLSerializer=e.XMLSerializer,P2.DOMParser=yut().DOMParser,P2}var Yte;function wut(){if(Yte)return Ix;Yte=1;var e=but(),t=DV();function n(r){var o=null,i=new e.DOMParser({errorHandler:function(s,l){o={level:s,message:l}}}),a=i.parseFromString(r);if(o===null)return a;throw new Error(o.level+": "+o.message)}return Ix.parseFromString=n,Ix.Node=t.Node,Ix}var Zte;function Aut(){if(Zte)return dO;Zte=1;var e=O0(),t=Ia,n=wut(),r=_4e(),o=r.Element;dO.readString=a;var i=n.Node;function a(s,l){l=l||{};try{var u=n.parseFromString(s,"text/xml")}catch(p){return e.reject(p)}if(u.documentElement.tagName==="parsererror")return e.resolve(new Error(u.documentElement.textContent));function d(p){switch(p.nodeType){case i.ELEMENT_NODE:return c(p);case i.TEXT_NODE:return r.text(p.nodeValue)}}function c(p){var v=f(p),h=[];t.forEach(p.childNodes,function(y){var m=d(y);m&&h.push(m)});var g={};return t.forEach(p.attributes,function(y){g[f(y)]=y.value}),new o(v,g,h)}function f(p){if(p.namespaceURI){var v=l[p.namespaceURI],h;return v?h=v+":":h="{"+p.namespaceURI+"}",h+p.localName}else return p.localName}return e.resolve(d(u.documentElement))}return dO}var pO={},G0={},nd={},Xte;function M0(){return Xte||(Xte=1,(function(){var e,t,n,r,o,i,a,s=[].slice,l={}.hasOwnProperty;e=function(){var u,d,c,f,p,v;if(v=arguments[0],p=2<=arguments.length?s.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(u=0,c=p.length;u<c;u++)if(f=p[u],f!=null)for(d in f)l.call(f,d)&&(v[d]=f[d]);return v},o=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},i=function(u){var d;return!!u&&((d=typeof u)=="function"||d==="object")},n=function(u){return o(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},r=function(u){var d;if(n(u))return!u.length;for(d in u)if(l.call(u,d))return!1;return!0},a=function(u){var d,c;return i(u)&&(c=Object.getPrototypeOf(u))&&(d=c.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},t=function(u){return o(u.valueOf)?u.valueOf():u},nd.assign=e,nd.isFunction=o,nd.isObject=i,nd.isArray=n,nd.isEmpty=r,nd.isPlainObject=a,nd.getValue=t}).call(nd)),nd}var $S={exports:{}},zS={exports:{}},jS={exports:{}},HS={exports:{}},Cut=HS.exports,Jte;function D4e(){return Jte||(Jte=1,(function(){HS.exports=(function(){function e(t,n,r){if(this.options=t.options,this.stringify=t.stringify,this.parent=t,n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));if(r==null)throw new Error("Missing attribute value. "+this.debugInfo(n));this.name=this.stringify.attName(n),this.value=this.stringify.attValue(r)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},e.prototype.debugInfo=function(t){return t=t||this.name,t==null?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},e})()}).call(Cut)),HS.exports}var xut=jS.exports,ene;function TD(){return ene||(ene=1,(function(){var e,t,n,r,o,i,a=function(l,u){for(var d in u)s.call(u,d)&&(l[d]=u[d]);function c(){this.constructor=l}return c.prototype=u.prototype,l.prototype=new c,l.__super__=u.prototype,l},s={}.hasOwnProperty;i=M0(),o=i.isObject,r=i.isFunction,n=i.getValue,t=Vl(),e=D4e(),jS.exports=(function(l){a(u,l);function u(d,c,f){if(u.__super__.constructor.call(this,d),c==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(c),this.attributes={},f!=null&&this.attribute(f),d.isDocument&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this)}return u.prototype.clone=function(){var d,c,f,p;f=Object.create(this),f.isRoot&&(f.documentObject=null),f.attributes={},p=this.attributes;for(c in p)s.call(p,c)&&(d=p[c],f.attributes[c]=d.clone());return f.children=[],this.children.forEach(function(v){var h;return h=v.clone(),h.parent=f,f.children.push(h)}),f},u.prototype.attribute=function(d,c){var f,p;if(d!=null&&(d=n(d)),o(d))for(f in d)s.call(d,f)&&(p=d[f],this.attribute(f,p));else r(c)&&(c=c.apply()),(!this.options.skipNullAttributes||c!=null)&&(this.attributes[d]=new e(this,d,c));return this},u.prototype.removeAttribute=function(d){var c,f,p;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=n(d),Array.isArray(d))for(f=0,p=d.length;f<p;f++)c=d[f],delete this.attributes[c];else delete this.attributes[d];return this},u.prototype.toString=function(d){return this.options.writer.set(d).element(this)},u.prototype.att=function(d,c){return this.attribute(d,c)},u.prototype.a=function(d,c){return this.attribute(d,c)},u})(t)}).call(xut)),jS.exports}var WS={exports:{}},Sut=WS.exports,tne;function _D(){return tne||(tne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),WS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o})(e)}).call(Sut)),WS.exports}var VS={exports:{}},Eut=VS.exports,nne;function DD(){return nne||(nne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),VS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o})(e)}).call(Eut)),VS.exports}var qS={exports:{}},kut=qS.exports,rne;function ID(){return rne||(rne=1,(function(){var e,t,n=function(o,i){for(var a in i)r.call(i,a)&&(o[a]=i[a]);function s(){this.constructor=o}return s.prototype=i.prototype,o.prototype=new s,o.__super__=i.prototype,o},r={}.hasOwnProperty;t=M0().isObject,e=Vl(),qS.exports=(function(o){n(i,o);function i(a,s,l,u){var d;i.__super__.constructor.call(this,a),t(s)&&(d=s,s=d.version,l=d.encoding,u=d.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return i.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},i})(e)}).call(kut)),qS.exports}var GS={exports:{}},KS={exports:{}},Tut=KS.exports,one;function OD(){return one||(one=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),KS.exports=(function(r){t(o,r);function o(i,a,s,l,u,d){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(d&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.eleName(a),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(l),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=u}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o})(e)}).call(Tut)),KS.exports}var QS={exports:{}},_ut=QS.exports,ine;function MD(){return ine||(ine=1,(function(){var e,t,n=function(o,i){for(var a in i)r.call(i,a)&&(o[a]=i[a]);function s(){this.constructor=o}return s.prototype=i.prototype,o.prototype=new s,o.__super__=i.prototype,o},r={}.hasOwnProperty;t=M0().isObject,e=Vl(),QS.exports=(function(o){n(i,o);function i(a,s,l,u){if(i.__super__.constructor.call(this,a),l==null)throw new Error("Missing DTD entity name. "+this.debugInfo(l));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(l));if(this.pe=!!s,this.name=this.stringify.eleName(l),!t(u))this.value=this.stringify.dtdEntityValue(u);else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(l));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(l));if(u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(l))}}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},i})(e)}).call(_ut)),QS.exports}var YS={exports:{}},Dut=YS.exports,ane;function PD(){return ane||(ane=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),YS.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(a),this.value=this.stringify.dtdElementValue(s)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o})(e)}).call(Dut)),YS.exports}var ZS={exports:{}},Iut=ZS.exports,sne;function ND(){return sne||(sne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),ZS.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.eleName(a),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o})(e)}).call(Iut)),ZS.exports}var Out=GS.exports,lne;function RD(){return lne||(lne=1,(function(){var e,t,n,r,o,i,a=function(l,u){for(var d in u)s.call(u,d)&&(l[d]=u[d]);function c(){this.constructor=l}return c.prototype=u.prototype,l.prototype=new c,l.__super__=u.prototype,l},s={}.hasOwnProperty;i=M0().isObject,o=Vl(),e=OD(),n=MD(),t=PD(),r=ND(),GS.exports=(function(l){a(u,l);function u(d,c,f){var p,v;u.__super__.constructor.call(this,d),this.name="!DOCTYPE",this.documentObject=d,i(c)&&(p=c,c=p.pubID,f=p.sysID),f==null&&(v=[c,f],f=v[0],c=v[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),f!=null&&(this.sysID=this.stringify.dtdSysID(f))}return u.prototype.element=function(d,c){var f;return f=new t(this,d,c),this.children.push(f),this},u.prototype.attList=function(d,c,f,p,v){var h;return h=new e(this,d,c,f,p,v),this.children.push(h),this},u.prototype.entity=function(d,c){var f;return f=new n(this,!1,d,c),this.children.push(f),this},u.prototype.pEntity=function(d,c){var f;return f=new n(this,!0,d,c),this.children.push(f),this},u.prototype.notation=function(d,c){var f;return f=new r(this,d,c),this.children.push(f),this},u.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},u.prototype.ele=function(d,c){return this.element(d,c)},u.prototype.att=function(d,c,f,p,v){return this.attList(d,c,f,p,v)},u.prototype.ent=function(d,c){return this.entity(d,c)},u.prototype.pent=function(d,c){return this.pEntity(d,c)},u.prototype.not=function(d,c){return this.notation(d,c)},u.prototype.up=function(){return this.root()||this.documentObject},u})(o)}).call(Out)),GS.exports}var XS={exports:{}},Mut=XS.exports,une;function BD(){return une||(une=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),XS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o})(e)}).call(Mut)),XS.exports}var JS={exports:{}},Put=JS.exports,cne;function LD(){return cne||(cne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),JS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o})(e)}).call(Put)),JS.exports}var e8={exports:{}},Nut=e8.exports,dne;function FD(){return dne||(dne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),e8.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(a),s&&(this.value=this.stringify.insValue(s))}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o})(e)}).call(Nut)),e8.exports}var t8={exports:{}},Rut=t8.exports,fne;function IV(){return fne||(fne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Vl(),t8.exports=(function(r){t(o,r);function o(i){o.__super__.constructor.call(this,i),this.isDummy=!0}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return""},o})(e)}).call(Rut)),t8.exports}var But=zS.exports,pne;function Vl(){return pne||(pne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v={}.hasOwnProperty;p=M0(),f=p.isObject,c=p.isFunction,d=p.isEmpty,u=p.getValue,i=null,e=null,t=null,n=null,r=null,s=null,l=null,a=null,o=null,zS.exports=(function(){function h(g){this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],i||(i=TD(),e=_D(),t=DD(),n=ID(),r=RD(),s=BD(),l=LD(),a=FD(),o=IV())}return h.prototype.element=function(g,y,m){var b,w,A,S,k,M,D,P,O,_,B;if(M=null,y===null&&m==null&&(O=[{},null],y=O[0],m=O[1]),y==null&&(y={}),y=u(y),f(y)||(_=[y,m],m=_[0],y=_[1]),g!=null&&(g=u(g)),Array.isArray(g))for(A=0,D=g.length;A<D;A++)w=g[A],M=this.element(w);else if(c(g))M=this.element(g.apply());else if(f(g)){for(k in g)if(v.call(g,k))if(B=g[k],c(B)&&(B=B.apply()),f(B)&&d(B)&&(B=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&k.indexOf(this.stringify.convertAttKey)===0)M=this.attribute(k.substr(this.stringify.convertAttKey.length),B);else if(!this.options.separateArrayItems&&Array.isArray(B))for(S=0,P=B.length;S<P;S++)w=B[S],b={},b[k]=w,M=this.element(b);else f(B)?(M=this.element(k),M.element(B)):M=this.element(k,B)}else this.options.skipNullNodes&&m===null?M=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&g.indexOf(this.stringify.convertTextKey)===0?M=this.text(m):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&g.indexOf(this.stringify.convertCDataKey)===0?M=this.cdata(m):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&g.indexOf(this.stringify.convertCommentKey)===0?M=this.comment(m):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&g.indexOf(this.stringify.convertRawKey)===0?M=this.raw(m):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&g.indexOf(this.stringify.convertPIKey)===0?M=this.instruction(g.substr(this.stringify.convertPIKey.length),m):M=this.node(g,y,m);if(M==null)throw new Error("Could not create any elements with: "+g+". "+this.debugInfo());return M},h.prototype.insertBefore=function(g,y,m){var b,w,A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return w=this.parent.children.indexOf(this),A=this.parent.children.splice(w),b=this.parent.element(g,y,m),Array.prototype.push.apply(this.parent.children,A),b},h.prototype.insertAfter=function(g,y,m){var b,w,A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return w=this.parent.children.indexOf(this),A=this.parent.children.splice(w+1),b=this.parent.element(g,y,m),Array.prototype.push.apply(this.parent.children,A),b},h.prototype.remove=function(){var g;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return g=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[g,g-g+1].concat([])),this.parent},h.prototype.node=function(g,y,m){var b,w;return g!=null&&(g=u(g)),y||(y={}),y=u(y),f(y)||(w=[y,m],m=w[0],y=w[1]),b=new i(this,g,y),m!=null&&b.text(m),this.children.push(b),b},h.prototype.text=function(g){var y;return y=new l(this,g),this.children.push(y),this},h.prototype.cdata=function(g){var y;return y=new e(this,g),this.children.push(y),this},h.prototype.comment=function(g){var y;return y=new t(this,g),this.children.push(y),this},h.prototype.commentBefore=function(g){var y,m;return y=this.parent.children.indexOf(this),m=this.parent.children.splice(y),this.parent.comment(g),Array.prototype.push.apply(this.parent.children,m),this},h.prototype.commentAfter=function(g){var y,m;return y=this.parent.children.indexOf(this),m=this.parent.children.splice(y+1),this.parent.comment(g),Array.prototype.push.apply(this.parent.children,m),this},h.prototype.raw=function(g){var y;return y=new s(this,g),this.children.push(y),this},h.prototype.dummy=function(){var g;return g=new o(this),this.children.push(g),g},h.prototype.instruction=function(g,y){var m,b,w,A,S;if(g!=null&&(g=u(g)),y!=null&&(y=u(y)),Array.isArray(g))for(A=0,S=g.length;A<S;A++)m=g[A],this.instruction(m);else if(f(g))for(m in g)v.call(g,m)&&(b=g[m],this.instruction(m,b));else c(y)&&(y=y.apply()),w=new a(this,g,y),this.children.push(w);return this},h.prototype.instructionBefore=function(g,y){var m,b;return m=this.parent.children.indexOf(this),b=this.parent.children.splice(m),this.parent.instruction(g,y),Array.prototype.push.apply(this.parent.children,b),this},h.prototype.instructionAfter=function(g,y){var m,b;return m=this.parent.children.indexOf(this),b=this.parent.children.splice(m+1),this.parent.instruction(g,y),Array.prototype.push.apply(this.parent.children,b),this},h.prototype.declaration=function(g,y,m){var b,w;return b=this.document(),w=new n(b,g,y,m),b.children[0]instanceof n?b.children[0]=w:b.children.unshift(w),b.root()||b},h.prototype.doctype=function(g,y){var m,b,w,A,S,k,M,D,P,O;for(b=this.document(),w=new r(b,g,y),P=b.children,A=S=0,M=P.length;S<M;A=++S)if(m=P[A],m instanceof r)return b.children[A]=w,w;for(O=b.children,A=k=0,D=O.length;k<D;A=++k)if(m=O[A],m.isRoot)return b.children.splice(A,0,w),w;return b.children.push(w),w},h.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},h.prototype.root=function(){var g;for(g=this;g;){if(g.isDocument)return g.rootObject;if(g.isRoot)return g;g=g.parent}},h.prototype.document=function(){var g;for(g=this;g;){if(g.isDocument)return g;g=g.parent}},h.prototype.end=function(g){return this.document().end(g)},h.prototype.prev=function(){var g;for(g=this.parent.children.indexOf(this);g>0&&this.parent.children[g-1].isDummy;)g=g-1;if(g<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[g-1]},h.prototype.next=function(){var g;for(g=this.parent.children.indexOf(this);g<this.parent.children.length-1&&this.parent.children[g+1].isDummy;)g=g+1;if(g===-1||g===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[g+1]},h.prototype.importDocument=function(g){var y;return y=g.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},h.prototype.debugInfo=function(g){var y,m;return g=g||this.name,g==null&&!((y=this.parent)!=null&&y.name)?"":g==null?"parent: <"+this.parent.name+">":(m=this.parent)!=null&&m.name?"node: <"+g+">, parent: <"+this.parent.name+">":"node: <"+g+">"},h.prototype.ele=function(g,y,m){return this.element(g,y,m)},h.prototype.nod=function(g,y,m){return this.node(g,y,m)},h.prototype.txt=function(g){return this.text(g)},h.prototype.dat=function(g){return this.cdata(g)},h.prototype.com=function(g){return this.comment(g)},h.prototype.ins=function(g,y){return this.instruction(g,y)},h.prototype.doc=function(){return this.document()},h.prototype.dec=function(g,y,m){return this.declaration(g,y,m)},h.prototype.dtd=function(g,y){return this.doctype(g,y)},h.prototype.e=function(g,y,m){return this.element(g,y,m)},h.prototype.n=function(g,y,m){return this.node(g,y,m)},h.prototype.t=function(g){return this.text(g)},h.prototype.d=function(g){return this.cdata(g)},h.prototype.c=function(g){return this.comment(g)},h.prototype.r=function(g){return this.raw(g)},h.prototype.i=function(g,y){return this.instruction(g,y)},h.prototype.u=function(){return this.up()},h.prototype.importXMLBuilder=function(g){return this.importDocument(g)},h})()}).call(But)),zS.exports}var n8={exports:{}},Lut=n8.exports,hne;function I4e(){return hne||(hne=1,(function(){var e=function(n,r){return function(){return n.apply(r,arguments)}},t={}.hasOwnProperty;n8.exports=(function(){function n(r){this.assertLegalChar=e(this.assertLegalChar,this);var o,i,a;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,i=r.stringify||{};for(o in i)t.call(i,o)&&(a=i[o],this[o]=a)}return n.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},n.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},n.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},n.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},n.prototype.raw=function(r){return""+r||""},n.prototype.attName=function(r){return r=""+r||""},n.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},n.prototype.insTarget=function(r){return""+r||""},n.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},n.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},n.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},n.prototype.xmlStandalone=function(r){return r?"yes":"no"},n.prototype.dtdPubID=function(r){return""+r||""},n.prototype.dtdSysID=function(r){return""+r||""},n.prototype.dtdElementValue=function(r){return""+r||""},n.prototype.dtdAttType=function(r){return""+r||""},n.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},n.prototype.dtdEntityValue=function(r){return""+r||""},n.prototype.dtdNData=function(r){return""+r||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(r){var o;if(o=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),o)throw new Error("Invalid character in string: "+r+" at index "+o.index);return r},n.prototype.elEscape=function(r){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},n.prototype.attEscape=function(r){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},n})()}).call(Lut)),n8.exports}var r8={exports:{}},o8={exports:{}},Fut=o8.exports,gne;function O4e(){return gne||(gne=1,(function(){var e={}.hasOwnProperty;o8.exports=(function(){function t(n){var r,o,i,a,s,l,u,d,c;n||(n={}),this.pretty=n.pretty||!1,this.allowEmpty=(o=n.allowEmpty)!=null?o:!1,this.pretty?(this.indent=(i=n.indent)!=null?i:" ",this.newline=(a=n.newline)!=null?a:`
- `,this.offset=(s=n.offset)!=null?s:0,this.dontprettytextnodes=(l=n.dontprettytextnodes)!=null?l:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(u=n.spacebeforeslash)!=null?u:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=n.writer||{};for(r in d)e.call(d,r)&&(c=d[r],this[r]=c)}return t.prototype.set=function(n){var r,o,i;n||(n={}),"pretty"in n&&(this.pretty=n.pretty),"allowEmpty"in n&&(this.allowEmpty=n.allowEmpty),this.pretty?(this.indent="indent"in n?n.indent:" ",this.newline="newline"in n?n.newline:`
- `,this.offset="offset"in n?n.offset:0,this.dontprettytextnodes="dontprettytextnodes"in n?n.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in n?n.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=n.writer||{};for(r in o)e.call(o,r)&&(i=o[r],this[r]=i);return this},t.prototype.space=function(n){var r;return this.pretty?(r=(n||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},t})()}).call(Fut)),o8.exports}var Uut=r8.exports,vne;function OV(){return vne||(vne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v=function(g,y){for(var m in y)h.call(y,m)&&(g[m]=y[m]);function b(){this.constructor=g}return b.prototype=y.prototype,g.prototype=new b,g.__super__=y.prototype,g},h={}.hasOwnProperty;a=ID(),s=RD(),e=_D(),t=DD(),u=TD(),c=BD(),f=LD(),d=FD(),l=IV(),n=OD(),r=PD(),o=MD(),i=ND(),p=O4e(),r8.exports=(function(g){v(y,g);function y(m){y.__super__.constructor.call(this,m)}return y.prototype.document=function(m){var b,w,A,S,k;for(this.textispresent=!1,S="",k=m.children,w=0,A=k.length;w<A;w++)b=k[w],!(b instanceof l)&&(S+=(function(){switch(!1){case!(b instanceof a):return this.declaration(b);case!(b instanceof s):return this.docType(b);case!(b instanceof t):return this.comment(b);case!(b instanceof d):return this.processingInstruction(b);default:return this.element(b,0)}}).call(this));return this.pretty&&S.slice(-this.newline.length)===this.newline&&(S=S.slice(0,-this.newline.length)),S},y.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},y.prototype.cdata=function(m,b){return this.space(b)+"<![CDATA["+m.text+"]]>"+this.newline},y.prototype.comment=function(m,b){return this.space(b)+"<!-- "+m.text+" -->"+this.newline},y.prototype.declaration=function(m,b){var w;return w=this.space(b),w+='<?xml version="'+m.version+'"',m.encoding!=null&&(w+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(w+=' standalone="'+m.standalone+'"'),w+=this.spacebeforeslash+"?>",w+=this.newline,w},y.prototype.docType=function(m,b){var w,A,S,k,M;if(b||(b=0),k=this.space(b),k+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?k+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(k+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(k+=" [",k+=this.newline,M=m.children,A=0,S=M.length;A<S;A++)w=M[A],k+=(function(){switch(!1){case!(w instanceof n):return this.dtdAttList(w,b+1);case!(w instanceof r):return this.dtdElement(w,b+1);case!(w instanceof o):return this.dtdEntity(w,b+1);case!(w instanceof i):return this.dtdNotation(w,b+1);case!(w instanceof e):return this.cdata(w,b+1);case!(w instanceof t):return this.comment(w,b+1);case!(w instanceof d):return this.processingInstruction(w,b+1);default:throw new Error("Unknown DTD node type: "+w.constructor.name)}}).call(this);k+="]"}return k+=this.spacebeforeslash+">",k+=this.newline,k},y.prototype.element=function(m,b){var w,A,S,k,M,D,P,O,_,B,N,q,U;b||(b=0),U=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),q=this.space(b),O="",O+=q+"<"+m.name,_=m.attributes;for(P in _)h.call(_,P)&&(w=_[P],O+=this.attribute(w));if(m.children.length===0||m.children.every(function(j){return j.value===""}))this.allowEmpty?O+="></"+m.name+">"+this.newline:O+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)O+=">",O+=m.children[0].value,O+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(B=m.children,S=0,M=B.length;S<M;S++)if(A=B[S],A.value!=null){this.textispresent++,U=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,q=this.space(b)),O+=">"+this.newline,N=m.children,k=0,D=N.length;k<D;k++)A=N[k],O+=(function(){switch(!1){case!(A instanceof e):return this.cdata(A,b+1);case!(A instanceof t):return this.comment(A,b+1);case!(A instanceof u):return this.element(A,b+1);case!(A instanceof c):return this.raw(A,b+1);case!(A instanceof f):return this.text(A,b+1);case!(A instanceof d):return this.processingInstruction(A,b+1);case!(A instanceof l):return"";default:throw new Error("Unknown XML node type: "+A.constructor.name)}}).call(this);U&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),O+=q+"</"+m.name+">"+this.newline}return O},y.prototype.processingInstruction=function(m,b){var w;return w=this.space(b)+"<?"+m.target,m.value&&(w+=" "+m.value),w+=this.spacebeforeslash+"?>"+this.newline,w},y.prototype.raw=function(m,b){return this.space(b)+m.value+this.newline},y.prototype.text=function(m,b){return this.space(b)+m.value+this.newline},y.prototype.dtdAttList=function(m,b){var w;return w=this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(w+=" "+m.defaultValueType),m.defaultValue&&(w+=' "'+m.defaultValue+'"'),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.dtdElement=function(m,b){return this.space(b)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},y.prototype.dtdEntity=function(m,b){var w;return w=this.space(b)+"<!ENTITY",m.pe&&(w+=" %"),w+=" "+m.name,m.value?w+=' "'+m.value+'"':(m.pubID&&m.sysID?w+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(w+=' SYSTEM "'+m.sysID+'"'),m.nData&&(w+=" NDATA "+m.nData)),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.dtdNotation=function(m,b){var w;return w=this.space(b)+"<!NOTATION "+m.name,m.pubID&&m.sysID?w+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?w+=' PUBLIC "'+m.pubID+'"':m.sysID&&(w+=' SYSTEM "'+m.sysID+'"'),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.openNode=function(m,b){var w,A,S,k;if(b||(b=0),m instanceof u){S=this.space(b)+"<"+m.name,k=m.attributes;for(A in k)h.call(k,A)&&(w=k[A],S+=this.attribute(w));return S+=(m.children?">":"/>")+this.newline,S}else return S=this.space(b)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?S+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(S+=' SYSTEM "'+m.sysID+'"'),S+=(m.children?" [":">")+this.newline,S},y.prototype.closeNode=function(m,b){switch(b||(b=0),!1){case!(m instanceof u):return this.space(b)+"</"+m.name+">"+this.newline;case!(m instanceof s):return this.space(b)+"]>"+this.newline}},y})(p)}).call(Uut)),r8.exports}var $ut=$S.exports,mne;function zut(){return mne||(mne=1,(function(){var e,t,n,r,o=function(a,s){for(var l in s)i.call(s,l)&&(a[l]=s[l]);function u(){this.constructor=a}return u.prototype=s.prototype,a.prototype=new u,a.__super__=s.prototype,a},i={}.hasOwnProperty;r=M0().isPlainObject,e=Vl(),n=I4e(),t=OV(),$S.exports=(function(a){o(s,a);function s(l){s.__super__.constructor.call(this,null),this.name="?xml",l||(l={}),l.writer||(l.writer=new t),this.options=l,this.stringify=new n(l),this.isDocument=!0}return s.prototype.end=function(l){var u;return l?r(l)&&(u=l,l=this.options.writer.set(u)):l=this.options.writer,l.document(this)},s.prototype.toString=function(l){return this.options.writer.set(l).document(this)},s})(e)}).call($ut)),$S.exports}var i8={exports:{}},jut=i8.exports,yne;function Hut(){return yne||(yne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v,h,g,y,m,b,w={}.hasOwnProperty;b=M0(),y=b.isObject,g=b.isFunction,m=b.isPlainObject,h=b.getValue,u=TD(),t=_D(),n=DD(),c=BD(),v=LD(),d=FD(),s=ID(),l=RD(),r=OD(),i=MD(),o=PD(),a=ND(),e=D4e(),p=I4e(),f=OV(),i8.exports=(function(){function A(S,k,M){var D;this.name="?xml",S||(S={}),S.writer?m(S.writer)&&(D=S.writer,S.writer=new f(D)):S.writer=new f(S),this.options=S,this.writer=S.writer,this.stringify=new p(S),this.onDataCallback=k||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return A.prototype.node=function(S,k,M){var D,P;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=h(S),k===null&&M==null&&(D=[{},null],k=D[0],M=D[1]),k==null&&(k={}),k=h(k),y(k)||(P=[k,M],M=P[0],k=P[1]),this.currentNode=new u(this,S,k),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,M!=null&&this.text(M),this},A.prototype.element=function(S,k,M){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(S,k,M)},A.prototype.attribute=function(S,k){var M,D;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=h(S)),y(S))for(M in S)w.call(S,M)&&(D=S[M],this.attribute(M,D));else g(k)&&(k=k.apply()),(!this.options.skipNullAttributes||k!=null)&&(this.currentNode.attributes[S]=new e(this,S,k));return this},A.prototype.text=function(S){var k;return this.openCurrent(),k=new v(this,S),this.onData(this.writer.text(k,this.currentLevel+1),this.currentLevel+1),this},A.prototype.cdata=function(S){var k;return this.openCurrent(),k=new t(this,S),this.onData(this.writer.cdata(k,this.currentLevel+1),this.currentLevel+1),this},A.prototype.comment=function(S){var k;return this.openCurrent(),k=new n(this,S),this.onData(this.writer.comment(k,this.currentLevel+1),this.currentLevel+1),this},A.prototype.raw=function(S){var k;return this.openCurrent(),k=new c(this,S),this.onData(this.writer.raw(k,this.currentLevel+1),this.currentLevel+1),this},A.prototype.instruction=function(S,k){var M,D,P,O,_;if(this.openCurrent(),S!=null&&(S=h(S)),k!=null&&(k=h(k)),Array.isArray(S))for(M=0,O=S.length;M<O;M++)D=S[M],this.instruction(D);else if(y(S))for(D in S)w.call(S,D)&&(P=S[D],this.instruction(D,P));else g(k)&&(k=k.apply()),_=new d(this,S,k),this.onData(this.writer.processingInstruction(_,this.currentLevel+1),this.currentLevel+1);return this},A.prototype.declaration=function(S,k,M){var D;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return D=new s(this,S,k,M),this.onData(this.writer.declaration(D,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(S,k,M){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new l(this,k,M),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(S,k){var M;return this.openCurrent(),M=new o(this,S,k),this.onData(this.writer.dtdElement(M,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(S,k,M,D,P){var O;return this.openCurrent(),O=new r(this,S,k,M,D,P),this.onData(this.writer.dtdAttList(O,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(S,k){var M;return this.openCurrent(),M=new i(this,!1,S,k),this.onData(this.writer.dtdEntity(M,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(S,k){var M;return this.openCurrent(),M=new i(this,!0,S,k),this.onData(this.writer.dtdEntity(M,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(S,k){var M;return this.openCurrent(),M=new a(this,S,k),this.onData(this.writer.dtdNotation(M,this.currentLevel+1),this.currentLevel+1),this},A.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},A.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},A.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},A.prototype.openNode=function(S){if(!S.isOpen)return!this.root&&this.currentLevel===0&&S instanceof u&&(this.root=S),this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0},A.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},A.prototype.onData=function(S,k){return this.documentStarted=!0,this.onDataCallback(S,k+1)},A.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},A.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},A.prototype.ele=function(){return this.element.apply(this,arguments)},A.prototype.nod=function(S,k,M){return this.node(S,k,M)},A.prototype.txt=function(S){return this.text(S)},A.prototype.dat=function(S){return this.cdata(S)},A.prototype.com=function(S){return this.comment(S)},A.prototype.ins=function(S,k){return this.instruction(S,k)},A.prototype.dec=function(S,k,M){return this.declaration(S,k,M)},A.prototype.dtd=function(S,k,M){return this.doctype(S,k,M)},A.prototype.e=function(S,k,M){return this.element(S,k,M)},A.prototype.n=function(S,k,M){return this.node(S,k,M)},A.prototype.t=function(S){return this.text(S)},A.prototype.d=function(S){return this.cdata(S)},A.prototype.c=function(S){return this.comment(S)},A.prototype.r=function(S){return this.raw(S)},A.prototype.i=function(S,k){return this.instruction(S,k)},A.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.ent=function(S,k){return this.entity(S,k)},A.prototype.pent=function(S,k){return this.pEntity(S,k)},A.prototype.not=function(S,k){return this.notation(S,k)},A})()}).call(jut)),i8.exports}var a8={exports:{}},Wut=a8.exports,bne;function Vut(){return bne||(bne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v=function(g,y){for(var m in y)h.call(y,m)&&(g[m]=y[m]);function b(){this.constructor=g}return b.prototype=y.prototype,g.prototype=new b,g.__super__=y.prototype,g},h={}.hasOwnProperty;a=ID(),s=RD(),e=_D(),t=DD(),u=TD(),c=BD(),f=LD(),d=FD(),l=IV(),n=OD(),r=PD(),o=MD(),i=ND(),p=O4e(),a8.exports=(function(g){v(y,g);function y(m,b){y.__super__.constructor.call(this,b),this.stream=m}return y.prototype.document=function(m){var b,w,A,S,k,M,D,P;for(M=m.children,w=0,S=M.length;w<S;w++)b=M[w],b.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,D=m.children,P=[],A=0,k=D.length;A<k;A++)if(b=D[A],!(b instanceof l))switch(!1){case!(b instanceof a):P.push(this.declaration(b));break;case!(b instanceof s):P.push(this.docType(b));break;case!(b instanceof t):P.push(this.comment(b));break;case!(b instanceof d):P.push(this.processingInstruction(b));break;default:P.push(this.element(b))}return P},y.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},y.prototype.cdata=function(m,b){return this.stream.write(this.space(b)+"<![CDATA["+m.text+"]]>"+this.endline(m))},y.prototype.comment=function(m,b){return this.stream.write(this.space(b)+"<!-- "+m.text+" -->"+this.endline(m))},y.prototype.declaration=function(m,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},y.prototype.docType=function(m,b){var w,A,S,k;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),k=m.children,A=0,S=k.length;A<S;A++)switch(w=k[A],!1){case!(w instanceof n):this.dtdAttList(w,b+1);break;case!(w instanceof r):this.dtdElement(w,b+1);break;case!(w instanceof o):this.dtdEntity(w,b+1);break;case!(w instanceof i):this.dtdNotation(w,b+1);break;case!(w instanceof e):this.cdata(w,b+1);break;case!(w instanceof t):this.comment(w,b+1);break;case!(w instanceof d):this.processingInstruction(w,b+1);break;default:throw new Error("Unknown DTD node type: "+w.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},y.prototype.element=function(m,b){var w,A,S,k,M,D,P,O;b||(b=0),O=this.space(b),this.stream.write(O+"<"+m.name),D=m.attributes;for(M in D)h.call(D,M)&&(w=D[M],this.attribute(w));if(m.children.length===0||m.children.every(function(_){return _.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),P=m.children,S=0,k=P.length;S<k;S++)switch(A=P[S],!1){case!(A instanceof e):this.cdata(A,b+1);break;case!(A instanceof t):this.comment(A,b+1);break;case!(A instanceof u):this.element(A,b+1);break;case!(A instanceof c):this.raw(A,b+1);break;case!(A instanceof f):this.text(A,b+1);break;case!(A instanceof d):this.processingInstruction(A,b+1);break;case!(A instanceof l):break;default:throw new Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(O+"</"+m.name+">")}return this.stream.write(this.endline(m))},y.prototype.processingInstruction=function(m,b){return this.stream.write(this.space(b)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},y.prototype.raw=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},y.prototype.text=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},y.prototype.dtdAttList=function(m,b){return this.stream.write(this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdElement=function(m,b){return this.stream.write(this.space(b)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdEntity=function(m,b){return this.stream.write(this.space(b)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdNotation=function(m,b){return this.stream.write(this.space(b)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},y})(p)}).call(Wut)),a8.exports}var wne;function qut(){return wne||(wne=1,(function(){var e,t,n,r,o,i,a;a=M0(),o=a.assign,i=a.isFunction,e=zut(),t=Hut(),r=OV(),n=Vut(),G0.create=function(s,l,u,d){var c,f;if(s==null)throw new Error("Root element needs a name.");return d=o({},l,u,d),c=new e(d),f=c.element(s),d.headless||(c.declaration(d),(d.pubID!=null||d.sysID!=null)&&c.doctype(d)),f},G0.begin=function(s,l,u){var d;return i(s)&&(d=[s,l],l=d[0],u=d[1],s={}),l?new t(s,l,u):new e(s)},G0.stringWriter=function(s){return new r(s)},G0.streamWriter=function(s,l){return new n(s,l)}}).call(G0)),G0}var Ane;function Gut(){if(Ane)return pO;Ane=1;var e=Ia,t=qut();pO.writeString=n;function n(o,i){var a=e.invert(i),s={element:u,text:r};function l(f,p){return s[p.type](f,p)}function u(f,p){var v=f.element(d(p.name),p.attributes);p.children.forEach(function(h){l(v,h)})}function d(f){var p=/^\{(.*)\}(.*)$/.exec(f);if(p){var v=a[p[1]];return v+(v===""?"":":")+p[2]}else return f}function c(f){var p=t.create(d(f.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return e.forEach(i,function(v,h){var g="xmlns"+(h===""?"":":"+h);p.attribute(g,v)}),f.children.forEach(function(v){l(p,v)}),p.end()}return c(o)}function r(o,i){o.text(i.value)}return pO}var Cne;function MV(){if(Cne)return Ip;Cne=1;var e=_4e();return Ip.Element=e.Element,Ip.element=e.element,Ip.emptyElement=e.emptyElement,Ip.text=e.text,Ip.readString=Aut().readString,Ip.writeString=Gut().writeString,Ip}var xne;function Kut(){if(xne)return Dx;xne=1;var e=Ia,t=O0(),n=MV();Dx.read=o,Dx.readXmlFromZipFile=i;var r={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function o(l){return n.readString(l,r).then(function(u){return s(u)[0]})}function i(l,u){return l.exists(u)?l.read(u,"utf-8").then(a).then(o):t.resolve(null)}function a(l){return l.replace(/^\uFEFF/g,"")}function s(l){return l.type==="element"?l.name==="mc:AlternateContent"?l.firstOrEmpty("mc:Fallback").children:(l.children=e.flatten(l.children.map(s,!0)),[l]):[l]}return Dx}var Mx={},uc={},Px={},Sne;function Qut(){if(Sne)return Px;Sne=1,Object.defineProperty(Px,"__esModule",{value:!0});var e=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];return Px.default=e,Px}var Ene;function Yut(){if(Ene)return uc;Ene=1;var e=uc&&uc.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(uc,"__esModule",{value:!0}),uc.hex=uc.dec=uc.codePoint=void 0;for(var t=e(Qut()),n={},r=String.fromCodePoint?String.fromCodePoint:f,o=0,i=t.default;o<i.length;o++){var a=i[o],s=parseInt(a["Unicode dec"],10),l={codePoint:s,string:r(s)};n[a["Typeface name"].toUpperCase()+"_"+a["Dingbat dec"]]=l}function u(p,v){return n[p.toUpperCase()+"_"+v]}uc.codePoint=u;function d(p,v){return u(p,parseInt(v,10))}uc.dec=d;function c(p,v){return u(p,parseInt(v,16))}uc.hex=c;function f(p){if(p<=65535)return String.fromCharCode(p);var v=Math.floor((p-65536)/1024)+55296,h=(p-65536)%1024+56320;return String.fromCharCode(v,h)}return uc}var Op={},kne;function M4e(){if(kne)return Op;kne=1;var e=Ia;Op.paragraph=t,Op.run=n,Op._elements=o,Op._elementsOfType=r,Op.getDescendantsOfType=i,Op.getDescendants=a;function t(l){return r("paragraph",l)}function n(l){return r("run",l)}function r(l,u){return o(function(d){return d.type===l?u(d):d})}function o(l){return function u(d){if(d.children){var c=e.map(d.children,u);d=e.extend(d,{children:c})}return l(d)}}function i(l,u){return a(l).filter(function(d){return d.type===u})}function a(l){var u=[];return s(l,function(d){u.push(d)}),u}function s(l,u){l.children&&l.children.forEach(function(d){s(d,u),u(d)})}return Op}var Nx={},Tne;function Zut(){if(Tne)return Nx;Tne=1,Nx.uriToZipEntryName=e,Nx.replaceFragment=t;function e(n,r){return r.charAt(0)==="/"?r.substr(1):n+"/"+r}function t(n,r){var o=n.indexOf("#");return o!==-1&&(n=n.substring(0,o)),n+"#"+r}return Nx}var _ne;function Xut(){if(_ne)return Mx;_ne=1,Mx.createBodyReader=l,Mx._readNumberingProperties=d;var e=Yut(),t=Ia,n=sm(),r=tp().Result,o=tp().warning,i=MV(),a=M4e(),s=Zut();function l(A){return{readXmlElement:function(S){return new u(A).readXmlElement(S)},readXmlElements:function(S){return new u(A).readXmlElements(S)}}}function u(A){var S=[],k=[],M=[],D=A.relationships,P=A.contentTypes,O=A.docxFile,_=A.files,B=A.numbering,N=A.styles;function q(ct){var _t=ct.map(U);return m(_t)}function U(ct){if(ct.type==="element"){var _t=pe[ct.name];if(_t)return _t(ct);if(!Object.prototype.hasOwnProperty.call(f,ct.name)){var st=o("An unrecognised element was ignored: "+ct.name);return p([st])}}return v()}function j(ct){return ie(ct).map(function(_t){return{type:"paragraphProperties",styleId:_t.styleId,styleName:_t.name,alignment:ct.firstOrEmpty("w:jc").attributes["w:val"],numbering:d(_t.styleId,ct.firstOrEmpty("w:numPr"),B),indent:H(ct.firstOrEmpty("w:ind"))}})}function H(ct){return{start:ct.attributes["w:start"]||ct.attributes["w:left"],end:ct.attributes["w:end"]||ct.attributes["w:right"],firstLine:ct.attributes["w:firstLine"],hanging:ct.attributes["w:hanging"]}}function G(ct){return ee(ct).map(function(_t){var st=ct.firstOrEmpty("w:sz").attributes["w:val"],Ot=/^[0-9]+$/.test(st)?parseInt(st,10)/2:null;return{type:"runProperties",styleId:_t.styleId,styleName:_t.name,verticalAlignment:ct.firstOrEmpty("w:vertAlign").attributes["w:val"],font:ct.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:Ot,isBold:$(ct.first("w:b")),isUnderline:Z(ct.first("w:u")),isItalic:$(ct.first("w:i")),isStrikethrough:$(ct.first("w:strike")),isAllCaps:$(ct.first("w:caps")),isSmallCaps:$(ct.first("w:smallCaps")),highlight:W(ct.firstOrEmpty("w:highlight").attributes["w:val"])}})}function Z(ct){if(ct){var _t=ct.attributes["w:val"];return _t!==void 0&&_t!=="false"&&_t!=="0"&&_t!=="none"}else return!1}function $(ct){if(ct){var _t=ct.attributes["w:val"];return _t!=="false"&&_t!=="0"}else return!1}function L(ct){return ct!=="false"&&ct!=="0"}function W(ct){return!ct||ct==="none"?null:ct}function ie(ct){return X(ct,"w:pStyle","Paragraph",N.findParagraphStyleById)}function ee(ct){return X(ct,"w:rStyle","Run",N.findCharacterStyleById)}function te(ct){return X(ct,"w:tblStyle","Table",N.findTableStyleById)}function X(ct,_t,st,Ot){var Ae=[],je=ct.first(_t),at=null,gt=null;if(je&&(at=je.attributes["w:val"],at)){var nn=Ot(at);nn?gt=nn.name:Ae.push(Ut(st,at))}return g({styleId:at,name:gt},Ae)}function ue(ct){var _t=ct.attributes["w:fldCharType"];if(_t==="begin")S.push({type:"begin",fldChar:ct}),k=[];else if(_t==="end"){var st=S.pop();if(st.type==="begin"&&(st=Me(st)),st.type==="checkbox")return h(n.checkbox({checked:st.checked}))}else if(_t==="separate"){var Ot=S.pop(),Ae=Me(Ot);S.push(Ae)}return v()}function ve(){var ct=t.last(S.filter(function(_t){return _t.type==="hyperlink"}));return ct?ct.options:null}function Me(ct){return we(k.join(""),ct.type==="begin"?ct.fldChar:i.emptyElement)}function we(ct,_t){var st=/\s*HYPERLINK "(.*)"/.exec(ct);if(st)return{type:"hyperlink",options:{href:st[1]}};var Ot=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(ct);if(Ot)return{type:"hyperlink",options:{anchor:Ot[1]}};var Ae=/\s*FORMCHECKBOX\s*/.exec(ct);if(Ae){var je=_t.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),at=je.first("w:checked"),gt=at==null?$(je.first("w:default")):$(at);return{type:"checkbox",checked:gt}}return{type:"unknown"}}function he(ct){return k.push(ct.text()),v()}function Te(ct){var _t=ct.attributes["w:font"],st=ct.attributes["w:char"],Ot=e.hex(_t,st);return Ot==null&&/^F0..$/.test(st)&&(Ot=e.hex(_t,st.substring(2))),Ot==null?p([o("A w:sym element with an unsupported character was ignored: char "+st+" in font "+_t)]):h(new n.Text(Ot.string))}function Y(ct){return function(_t){var st=_t.attributes["w:id"];return h(new n.NoteReference({noteType:ct,noteId:st}))}}function be(ct){return h(n.commentReference({commentId:ct.attributes["w:id"]}))}function De(ct){return q(ct.children)}var pe={"w:p":function(ct){var _t=ct.firstOrEmpty("w:pPr"),st=!!_t.firstOrEmpty("w:rPr").first("w:del");if(st)return ct.children.forEach(function(Ae){M.push(Ae)}),v();var Ot=ct.children;return M.length>0&&(Ot=M.concat(Ot),M=[]),y.map(j(_t),q(Ot),function(Ae,je){return new n.Paragraph(je,Ae)}).insertExtra()},"w:r":function(ct){return y.map(G(ct.firstOrEmpty("w:rPr")),q(ct.children),function(_t,st){var Ot=ve();return Ot!==null&&(st=[new n.Hyperlink(st,Ot)]),new n.Run(st,_t)})},"w:fldChar":ue,"w:instrText":he,"w:t":function(ct){return h(new n.Text(ct.text()))},"w:tab":function(ct){return h(new n.Tab)},"w:noBreakHyphen":function(){return h(new n.Text("‑"))},"w:softHyphen":function(ct){return h(new n.Text(""))},"w:sym":Te,"w:hyperlink":function(ct){var _t=ct.attributes["r:id"],st=ct.attributes["w:anchor"];return q(ct.children).map(function(Ot){function Ae(at){var gt=ct.attributes["w:tgtFrame"]||null;return new n.Hyperlink(Ot,t.extend({targetFrame:gt},at))}if(_t){var je=D.findTargetByRelationshipId(_t);return st&&(je=s.replaceFragment(je,st)),Ae({href:je})}else return st?Ae({anchor:st}):Ot})},"w:tbl":oe,"w:tr":Re,"w:tc":Ee,"w:footnoteReference":Y("footnote"),"w:endnoteReference":Y("endnote"),"w:commentReference":be,"w:br":function(ct){var _t=ct.attributes["w:type"];return _t==null||_t==="textWrapping"?h(n.lineBreak):_t==="page"?h(n.pageBreak):_t==="column"?h(n.columnBreak):p([o("Unsupported break type: "+_t)])},"w:bookmarkStart":function(ct){var _t=ct.attributes["w:name"];return _t==="_GoBack"?v():h(new n.BookmarkStart({name:_t}))},"mc:AlternateContent":function(ct){return De(ct.firstOrEmpty("mc:Fallback"))},"w:sdt":function(ct){var _t=q(ct.firstOrEmpty("w:sdtContent").children);return _t.map(function(st){var Ot=ct.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(Ot){var Ae=Ot.first("wordml:checked"),je=!!Ae&&L(Ae.attributes["wordml:val"]),at=n.checkbox({checked:je}),gt=!1,nn=st.map(a._elementsOfType(n.types.text,function(Tn){return Tn.value.length>0&&!gt?(gt=!0,at):Tn}));return gt?nn:at}else return st})},"w:ins":De,"w:object":De,"w:smartTag":De,"w:drawing":De,"w:pict":function(ct){return De(ct).toExtra()},"v:roundrect":De,"v:shape":De,"v:textbox":De,"w:txbxContent":De,"wp:inline":Pe,"wp:anchor":Pe,"v:imagedata":Bt,"v:group":De,"v:rect":De};return{readXmlElement:U,readXmlElements:q};function oe(ct){var _t=ce(ct.firstOrEmpty("w:tblPr"));return q(ct.children).flatMap(Fe).flatMap(function(st){return _t.map(function(Ot){return n.Table(st,Ot)})})}function ce(ct){return te(ct).map(function(_t){return{styleId:_t.styleId,styleName:_t.name}})}function Re(ct){var _t=ct.firstOrEmpty("w:trPr"),st=!!_t.first("w:del");if(st)return v();var Ot=!!_t.first("w:tblHeader");return q(ct.children).map(function(Ae){return n.TableRow(Ae,{isHeader:Ot})})}function Ee(ct){return q(ct.children).map(function(_t){var st=ct.firstOrEmpty("w:tcPr"),Ot=st.firstOrEmpty("w:gridSpan").attributes["w:val"],Ae=Ot?parseInt(Ot,10):1,je=n.TableCell(_t,{colSpan:Ae});return je._vMerge=Le(st),je})}function Le(ct){var _t=ct.first("w:vMerge");if(_t){var st=_t.attributes["w:val"];return st==="continue"||!st}else return null}function Fe(ct){var _t=t.any(ct,function(Ae){return Ae.type!==n.types.tableRow});if(_t)return g(ct,[o("unexpected non-row element in table, cell merging may be incorrect")]);var st=t.any(ct,function(Ae){return t.any(Ae.children,function(je){return je.type!==n.types.tableCell})});if(st)return g(ct,[o("unexpected non-cell element in table row, cell merging may be incorrect")]);var Ot={};return ct.forEach(function(Ae){var je=0;Ae.children.forEach(function(at){at._vMerge&&Ot[je]?Ot[je].rowSpan++:(Ot[je]=at,at._vMerge=!1),je+=at.colSpan})}),ct.forEach(function(Ae){Ae.children=Ae.children.filter(function(je){return!je._vMerge}),Ae.children.forEach(function(je){delete je._vMerge})}),h(ct)}function Pe(ct){var _t=ct.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return m(_t.map(Ne.bind(null,ct)))}function Ne(ct,_t){var st=ct.first("wp:docPr").attributes,Ot=pt(st.descr)?st.title:st.descr,Ae=Rt(_t);return Ae===null?p([o("Could not find image file for a:blip element")]):Wt(Ae,Ot)}function pt(ct){return ct==null||/^\s*$/.test(ct)}function Rt(ct){var _t=ct.attributes["r:embed"],st=ct.attributes["r:link"];if(_t)return en(_t);if(st){var Ot=D.findTargetByRelationshipId(st);return{path:Ot,read:_.read.bind(_,Ot)}}else return null}function Bt(ct){var _t=ct.attributes["r:id"];return _t?Wt(en(_t),ct.attributes["o:title"]):p([o("A v:imagedata element without a relationship ID was ignored")])}function en(ct){var _t=s.uriToZipEntryName("word",D.findTargetByRelationshipId(ct));return{path:_t,read:O.read.bind(O,_t)}}function Wt(ct,_t){var st=P.findContentType(ct.path),Ot=n.Image({readImage:ct.read,altText:_t,contentType:st}),Ae=c[st]?[]:o("Image of type "+st+" is unlikely to display in web browsers");return g(Ot,Ae)}function Ut(ct,_t){return o(ct+" style with ID "+_t+" was referenced but not defined in the document")}}function d(A,S,k){var M=S.firstOrEmpty("w:ilvl").attributes["w:val"],D=S.firstOrEmpty("w:numId").attributes["w:val"];if(M!==void 0&&D!==void 0)return k.findLevel(D,M);if(A!=null){var P=k.findLevelByParagraphStyleId(A);if(P!=null)return P}return null}var c={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},f={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function p(A){return new y(null,null,A)}function v(){return new y(null)}function h(A){return new y(A)}function g(A,S){return new y(A,null,S)}function y(A,S,k){this.value=A||[],this.extra=S||[],this._result=new r({element:this.value,extra:S},k),this.messages=this._result.messages}y.prototype.toExtra=function(){return new y(null,b(this.extra,this.value),this.messages)},y.prototype.insertExtra=function(){var A=this.extra;return A&&A.length?new y(b(this.value,A),null,this.messages):this},y.prototype.map=function(A){var S=this._result.map(function(k){return A(k.element)});return new y(S.value,this.extra,S.messages)},y.prototype.flatMap=function(A){var S=this._result.flatMap(function(k){return A(k.element)._result});return new y(S.value.element,b(this.extra,S.value.extra),S.messages)},y.map=function(A,S,k){return new y(k(A.value,S.value),b(A.extra,S.extra),A.messages.concat(S.messages))};function m(A){var S=r.combine(t.pluck(A,"_result"));return new y(t.flatten(t.pluck(S.value,"element")),t.filter(t.flatten(t.pluck(S.value,"extra")),w),S.messages)}function b(A,S){return t.flatten([A,S])}function w(A){return A}return Mx}var hO={},Dne;function Jut(){if(Dne)return hO;Dne=1,hO.DocumentXmlReader=n;var e=sm(),t=tp().Result;function n(r){var o=r.bodyReader;function i(a){var s=a.first("w:body");if(s==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var l=o.readXmlElements(s.children).map(function(u){return new e.Document(u,{notes:r.notes,comments:r.comments})});return new t(l.value,l.messages)}return{convertXmlToDocument:i}}return hO}var R2={},Ine;function ect(){if(Ine)return R2;Ine=1,R2.readRelationships=e,R2.defaultValue=new t([]),R2.Relationships=t;function e(n){var r=[];return n.children.forEach(function(o){if(o.name==="relationships:Relationship"){var i={relationshipId:o.attributes.Id,target:o.attributes.Target,type:o.attributes.Type};r.push(i)}}),new t(r)}function t(n){var r={};n.forEach(function(i){r[i.relationshipId]=i.target});var o={};return n.forEach(function(i){o[i.type]||(o[i.type]=[]),o[i.type].push(i.target)}),{findTargetByRelationshipId:function(i){return r[i]},findTargetsByType:function(i){return o[i]||[]}}}return R2}var Rx={},One;function tct(){if(One)return Rx;One=1,Rx.readContentTypesFromXml=t;var e={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};Rx.defaultContentTypes=n({},{});function t(r){var o={},i={};return r.children.forEach(function(a){if(a.name==="content-types:Default"&&(o[a.attributes.Extension]=a.attributes.ContentType),a.name==="content-types:Override"){var s=a.attributes.PartName;s.charAt(0)==="/"&&(s=s.substring(1)),i[s]=a.attributes.ContentType}}),n(i,o)}function n(r,o){return{findContentType:function(i){var a=r[i];if(a)return a;var s=i.split("."),l=s[s.length-1];if(o.hasOwnProperty(l))return o[l];var u=e[l.toLowerCase()];return u?"image/"+u:null}}}return Rx}var B2={},Mne;function nct(){if(Mne)return B2;Mne=1;var e=Ia;B2.readNumberingXml=n,B2.Numbering=t,B2.defaultNumbering=new t({},{});function t(a,s,l){var u=e.flatten(e.values(s).map(function(p){return e.values(p.levels)})),d=e.indexBy(u.filter(function(p){return p.paragraphStyleId!=null}),"paragraphStyleId");function c(p,v){var h=a[p];if(h){var g=s[h.abstractNumId];if(g){if(g.numStyleLink==null)return s[h.abstractNumId].levels[v];var y=l.findNumberingStyleById(g.numStyleLink);return c(y.numId,v)}else return null}else return null}function f(p){return d[p]||null}return{findLevel:c,findLevelByParagraphStyleId:f}}function n(a,s){if(!s||!s.styles)throw new Error("styles is missing");var l=r(a),u=i(a);return new t(u,l,s.styles)}function r(a){var s={};return a.getElementsByTagName("w:abstractNum").forEach(function(l){var u=l.attributes["w:abstractNumId"];s[u]=o(l)}),s}function o(a){var s={};a.getElementsByTagName("w:lvl").forEach(function(u){var d=u.attributes["w:ilvl"],c=u.firstOrEmpty("w:numFmt").attributes["w:val"],f=u.firstOrEmpty("w:pStyle").attributes["w:val"];s[d]={isOrdered:c!=="bullet",level:d,paragraphStyleId:f}});var l=a.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:s,numStyleLink:l}}function i(a){var s={};return a.getElementsByTagName("w:num").forEach(function(l){var u=l.attributes["w:numId"],d=l.first("w:abstractNumId").attributes["w:val"];s[u]={abstractNumId:d}}),s}return B2}var L2={},Pne;function rct(){if(Pne)return L2;Pne=1,L2.readStylesXml=t,L2.Styles=e,L2.defaultStyles=new e({},{});function e(i,a,s,l){return{findParagraphStyleById:function(u){return i[u]},findCharacterStyleById:function(u){return a[u]},findTableStyleById:function(u){return s[u]},findNumberingStyleById:function(u){return l[u]}}}e.EMPTY=new e({},{},{},{});function t(i){var a={},s={},l={},u={},d={paragraph:a,character:s,table:l};return i.getElementsByTagName("w:style").forEach(function(c){var f=n(c);if(f.type==="numbering")u[f.styleId]=o(c);else{var p=d[f.type];p&&(p[f.styleId]=f)}}),new e(a,s,l,u)}function n(i){var a=i.attributes["w:type"],s=i.attributes["w:styleId"],l=r(i);return{type:a,styleId:s,name:l}}function r(i){var a=i.first("w:name");return a?a.attributes["w:val"]:null}function o(i){var a=i.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:a}}return L2}var Fm={},Nne;function oct(){if(Nne)return Fm;Nne=1;var e=sm(),t=tp().Result;Fm.createFootnotesReader=n.bind(Fm,"footnote"),Fm.createEndnotesReader=n.bind(Fm,"endnote");function n(r,o){function i(l){return t.combine(l.getElementsByTagName("w:"+r).filter(a).map(s))}function a(l){var u=l.attributes["w:type"];return u!=="continuationSeparator"&&u!=="separator"}function s(l){var u=l.attributes["w:id"];return o.readXmlElements(l.children).map(function(d){return e.Note({noteType:r,noteId:u,body:d})})}return i}return Fm}var gO={},Rne;function ict(){if(Rne)return gO;Rne=1;var e=sm(),t=tp().Result;function n(r){function o(a){return t.combine(a.getElementsByTagName("w:comment").map(i))}function i(a){var s=a.attributes["w:id"];function l(u){return(a.attributes[u]||"").trim()||null}return r.readXmlElements(a.children).map(function(u){return e.comment({commentId:s,body:u,authorName:l("w:author"),authorInitials:l("w:initials")})})}return o}return gO.createCommentsReader=n,gO}var vO={},Bne;function act(){if(Bne)return vO;Bne=1;var e=O0();vO.Files=t;function t(){function n(r){return e.reject(new Error("could not open external image: '"+r+`'
- cannot open linked files from a web browser`))}return{read:n}}return vO}var Lne;function sct(){if(Lne)return Ex;Lne=1,Ex.read=v,Ex._findPartPaths=h;var e=O0(),t=sm(),n=tp().Result,r=T4e(),o=Kut().readXmlFromZipFile,i=Xut().createBodyReader,a=Jut().DocumentXmlReader,s=ect(),l=tct(),u=nct(),d=rct(),c=oct(),f=ict(),p=act().Files;function v(D,P){return P=P||{},e.props({contentTypes:A(D),partPaths:h(D),docxFile:D,files:P.path?p.relativeToFile(P.path):new p(null)}).also(function(O){return{styles:k(D,O.partPaths.styles)}}).also(function(O){return{numbering:S(D,O.partPaths.numbering,O.styles)}}).also(function(O){return{footnotes:b(O.partPaths.footnotes,O,function(_,B){return B?c.createFootnotesReader(_)(B):new n([])}),endnotes:b(O.partPaths.endnotes,O,function(_,B){return B?c.createEndnotesReader(_)(B):new n([])}),comments:b(O.partPaths.comments,O,function(_,B){return B?f.createCommentsReader(_)(B):new n([])})}}).also(function(O){return{notes:O.footnotes.flatMap(function(_){return O.endnotes.map(function(B){return new t.Notes(_.concat(B))})})}}).then(function(O){return b(O.partPaths.mainDocument,O,function(_,B){return O.notes.flatMap(function(N){return O.comments.flatMap(function(q){var U=new a({bodyReader:_,notes:N,comments:q});return U.convertXmlToDocument(B)})})})})}function h(D){return M(D).then(function(P){var O=g({docxFile:D,relationships:P,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!D.exists(O))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return m({filename:w(O),readElement:s.readRelationships,defaultValue:s.defaultValue})(D).then(function(_){function B(N){return g({docxFile:D,relationships:_,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+N,basePath:r.splitPath(O).dirname,fallbackPath:"word/"+N+".xml"})}return{mainDocument:O,comments:B("comments"),endnotes:B("endnotes"),footnotes:B("footnotes"),numbering:B("numbering"),styles:B("styles")}})})}function g(D){var P=D.docxFile,O=D.relationships,_=D.relationshipType,B=D.basePath,N=D.fallbackPath,q=O.findTargetsByType(_),U=q.map(function(H){return y(r.joinPath(B,H),"/")}),j=U.filter(function(H){return P.exists(H)});return j.length===0?N:j[0]}function y(D,P){return D.substring(0,P.length)===P?D.substring(P.length):D}function m(D){return function(P){return o(P,D.filename).then(function(O){return O?D.readElement(O):D.defaultValue})}}function b(D,P,O){var _=m({filename:w(D),readElement:s.readRelationships,defaultValue:s.defaultValue});return _(P.docxFile).then(function(B){var N=new i({relationships:B,contentTypes:P.contentTypes,docxFile:P.docxFile,numbering:P.numbering,styles:P.styles,files:P.files});return o(P.docxFile,D).then(function(q){return O(N,q)})})}function w(D){var P=r.splitPath(D);return r.joinPath(P.dirname,"_rels",P.basename+".rels")}var A=m({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function S(D,P,O){return m({filename:P,readElement:function(_){return u.readNumberingXml(_,{styles:O})},defaultValue:u.defaultNumbering})(D)}function k(D,P){return m({filename:P,readElement:d.readStylesXml,defaultValue:d.defaultStyles})(D)}var M=m({filename:"_rels/.rels",readElement:s.readRelationships,defaultValue:s.defaultValue});return Ex}var Bx={},Fne;function lct(){if(Fne)return Bx;Fne=1;var e=Ia,t=O0(),n=MV();Bx.writeStyleMap=a,Bx.readStyleMap=d;var r="http://schemas.zwobble.org/mammoth/style-map",o="mammoth/style-map",i="/"+o;function a(c,f){return c.write(o,f),s(c).then(function(){return l(c)})}function s(c){var f="word/_rels/document.xml.rels",p="http://schemas.openxmlformats.org/package/2006/relationships",v="{"+p+"}Relationship";return c.read(f,"utf8").then(n.readString).then(function(h){var g=h.children;u(g,v,"Id",{Id:"rMammothStyleMap",Type:r,Target:i});var y={"":p};return c.write(f,n.writeString(h,y))})}function l(c){var f="[Content_Types].xml",p="http://schemas.openxmlformats.org/package/2006/content-types",v="{"+p+"}Override";return c.read(f,"utf8").then(n.readString).then(function(h){var g=h.children;u(g,v,"PartName",{PartName:i,ContentType:"text/prs.mammoth.style-map"});var y={"":p};return c.write(f,n.writeString(h,y))})}function u(c,f,p,v){var h=e.find(c,function(g){return g.name===f&&g.attributes[p]===v[p]});h?h.attributes=v:c.push(n.element(f,v))}function d(c){return c.exists(o)?c.read(o,"utf8"):t.resolve(null)}return Bx}var Lx={},K0={},cf={},Mp={},Une;function P4e(){if(Une)return Mp;Une=1;var e=$D();function t(l,u,d){return r(e.element(l,u,{fresh:!1}),d)}function n(l,u,d){var c=e.element(l,u,{fresh:!0});return r(c,d)}function r(l,u){return{type:"element",tag:l,children:u||[]}}function o(l){return{type:"text",value:l}}var i={type:"forceWrite"};Mp.freshElement=n,Mp.nonFreshElement=t,Mp.elementWithTag=r,Mp.text=o,Mp.forceWrite=i;var a={br:!0,hr:!0,img:!0,input:!0};function s(l){return l.children.length===0&&a[l.tag.tagName]}return Mp.isVoidElement=s,Mp}var mO,$ne;function uct(){if($ne)return mO;$ne=1;var e=Ia,t=P4e();function n(h){return r(u(h))}function r(h){var g=[];return h.map(o).forEach(function(y){l(g,y)}),g}function o(h){return i[h.type](h)}var i={element:a,text:s,forceWrite:s};function a(h){return t.elementWithTag(h.tag,r(h.children))}function s(h){return h}function l(h,g){var y=h[h.length-1];g.type==="element"&&!g.tag.fresh&&y&&y.type==="element"&&g.tag.matchesElement(y.tag)?(g.tag.separator&&l(y.children,t.text(g.tag.separator)),g.children.forEach(function(m){l(y.children,m)})):h.push(g)}function u(h){return d(h,function(g){return c[g.type](g)})}function d(h,g){return e.flatten(e.map(h,g),!0)}var c={element:p,text:v,forceWrite:f};function f(h){return[h]}function p(h){var g=u(h.children);return g.length===0&&!t.isVoidElement(h)?[]:[t.elementWithTag(h.tag,g)]}function v(h){return h.value.length===0?[]:[h]}return mO=n,mO}var zne;function UD(){if(zne)return cf;zne=1;var e=P4e();cf.freshElement=e.freshElement,cf.nonFreshElement=e.nonFreshElement,cf.elementWithTag=e.elementWithTag,cf.text=e.text,cf.forceWrite=e.forceWrite,cf.simplify=uct();function t(a,s){s.forEach(function(l){n(a,l)})}function n(a,s){r[s.type](a,s)}var r={element:o,text:i,forceWrite:function(){}};function o(a,s){e.isVoidElement(s)?a.selfClosing(s.tag.tagName,s.tag.attributes):(a.open(s.tag.tagName,s.tag.attributes),t(a,s.children),a.close(s.tag.tagName))}function i(a,s){a.text(s.value)}return cf.write=t,cf}var jne;function $D(){if(jne)return K0;jne=1;var e=Ia,t=UD();K0.topLevelElement=n,K0.elements=r,K0.element=i;function n(s,l){return r([i(s,l,{fresh:!0})])}function r(s){return new o(s.map(function(l){return e.isString(l)?i(l):l}))}function o(s){this._elements=s}o.prototype.wrap=function(l){for(var u=l(),d=this._elements.length-1;d>=0;d--)u=this._elements[d].wrapNodes(u);return u};function i(s,l,u){return u=u||{},new a(s,l,u)}function a(s,l,u){var d={};e.isArray(s)?(s.forEach(function(c){d[c]=!0}),s=s[0]):d[s]=!0,this.tagName=s,this.tagNames=d,this.attributes=l||{},this.fresh=u.fresh,this.separator=u.separator}return a.prototype.matchesElement=function(s){return this.tagNames[s.tagName]&&e.isEqual(this.attributes||{},s.attributes||{})},a.prototype.wrap=function(l){return this.wrapNodes(l())},a.prototype.wrapNodes=function(l){return[t.elementWithTag(this,l)]},K0.empty=r([]),K0.ignore={wrap:function(){return[]}},K0}var yO={},Hne;function N4e(){return Hne||(Hne=1,(function(e){var t=Ia,n=O0(),r=UD();e.imgElement=o;function o(i){return function(a,s){return n.when(i(a)).then(function(l){var u={};return a.altText&&(u.alt=a.altText),t.extend(u,l),[r.freshElement("img",u)]})}}e.inline=e.imgElement,e.dataUri=o(function(i){return i.readAsBase64String().then(function(a){return{src:"data:"+i.contentType+";base64,"+a}})})})(yO)),yO}var bO={},wO={},Wne;function cct(){if(Wne)return wO;Wne=1;var e=Ia;wO.writer=t;function t(s){return s=s||{},s.prettyPrint?r():o()}var n={div:!0,p:!0,ul:!0,li:!0};function r(){var s=0,l=" ",u=[],d=!0,c=!1,f=o();function p(A,S){n[A]&&b(),u.push(A),f.open(A,S),n[A]&&s++,d=!1}function v(A){n[A]&&(s--,b()),u.pop(),f.close(A)}function h(A){m();var S=w()?A:A.replace(`
- `,`
- `+l);f.text(S)}function g(A,S){b(),f.selfClosing(A,S)}function y(){return u.length===0||n[u[u.length-1]]}function m(){c||(b(),c=!0)}function b(){if(c=!1,!d&&y()&&!w()){f._append(`
- `);for(var A=0;A<s;A++)f._append(l)}}function w(){return e.some(u,function(A){return A==="pre"})}return{asString:f.asString,open:p,close:v,text:h,selfClosing:g}}function o(){var s=[];function l(h,g){var y=c(g);s.push("<"+h+y+">")}function u(h){s.push("</"+h+">")}function d(h,g){var y=c(g);s.push("<"+h+y+" />")}function c(h){return e.map(h,function(g,y){return" "+y+'="'+a(g)+'"'}).join("")}function f(h){s.push(i(h))}function p(h){s.push(h)}function v(){return s.join("")}return{asString:v,open:l,close:u,text:f,selfClosing:d,_append:p}}function i(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(s){return s.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}return wO}var AO={},Vne;function dct(){if(Vne)return AO;Vne=1;var e=Ia;function t(c){return n(c,c)}function n(c,f){return function(){return{start:c,end:f}}}function r(c){var f=c.href||"";return f?{start:"[",end:"]("+f+")",anchorPosition:"before"}:{}}function o(c){var f=c.src||"",p=c.alt||"";return f||p?{start:""}:{}}function i(c){return function(f,p){return{start:p?`
- `:"",end:p?"":`
- `,list:{isOrdered:c.isOrdered,indent:p?p.indent+1:0,count:0}}}}function a(c,f,p){f=f||{indent:0,isOrdered:!1,count:0},f.count++,p.hasClosed=!1;var v=f.isOrdered?f.count+".":"-",h=l(" ",f.indent)+v+" ";return{start:h,end:function(){if(!p.hasClosed)return p.hasClosed=!0,`
- `}}}var s={p:n("",`
- `),br:n("",`
- `),ul:i({isOrdered:!1}),ol:i({isOrdered:!0}),li:a,strong:t("__"),em:t("*"),a:r,img:o};(function(){for(var c=1;c<=6;c++)s["h"+c]=n(l("#",c)+" ",`
- `)})();function l(c,f){return new Array(f+1).join(c)}function u(){var c=[],f=[],p=null,v={};function h(A,S){S=S||{};var k=s[A]||function(){return{}},M=k(S,p,v);f.push({end:M.end,list:p}),M.list&&(p=M.list);var D=M.anchorPosition==="before";D&&g(S),c.push(M.start||""),D||g(S)}function g(A){A.id&&c.push('<a id="'+A.id+'"></a>')}function y(A){var S=f.pop();p=S.list;var k=e.isFunction(S.end)?S.end():S.end;c.push(k||"")}function m(A,S){h(A,S),y()}function b(A){c.push(d(A))}function w(){return c.join("")}return{asString:w,open:h,close:y,text:b,selfClosing:m}}AO.writer=u;function d(c){return c.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}return AO}var qne;function fct(){if(qne)return bO;qne=1;var e=cct(),t=dct();bO.writer=n;function n(r){return r=r||{},r.outputFormat==="markdown"?t.writer():e.writer(r)}return bO}var Gne;function pct(){if(Gne)return Lx;Gne=1;var e=Ia,t=O0(),n=sm(),r=$D(),o=tp(),i=N4e(),a=UD(),s=fct();Lx.DocumentConverter=l;function l(g){return{convertToHtml:function(y){var m=e.indexBy(y.type===n.types.document?y.comments:[],"commentId"),b=new u(g,m);return b.convertToHtml(y)}}}function u(g,y){var m=1,b=[],w=[];g=e.extend({ignoreEmptyParagraphs:!0},g);var A=g.idPrefix===void 0?"":g.idPrefix,S=g.ignoreEmptyParagraphs,k=r.topLevelElement("p"),M=g.styleMap||[];function D(Y){var be=[],De=O(Y,be,{}),pe=[];v(De,function(ce){ce.type==="deferred"&&pe.push(ce)});var oe={};return t.mapSeries(pe,function(ce){return ce.value().then(function(Re){oe[ce.id]=Re})}).then(function(){function ce(Ee){return p(Ee,function(Le){return Le.type==="deferred"?oe[Le.id]:Le.children?[e.extend({},Le,{children:ce(Le.children)})]:[Le]})}var Re=s.writer({prettyPrint:g.prettyPrint,outputFormat:g.outputFormat});return a.write(Re,a.simplify(ce(De))),new o.Result(Re.asString(),be)})}function P(Y,be,De){return p(Y,function(pe){return O(pe,be,De)})}function O(Y,be,De){if(!De)throw new Error("options not set");var pe=Te[Y.type];return pe?pe(Y,be,De):[]}function _(Y,be,De){return B(Y,be).wrap(function(){var pe=P(Y.children,be,De);return S?pe:[a.forceWrite].concat(pe)})}function B(Y,be){var De=j(Y);return De?De.to:(Y.styleId&&be.push(f("paragraph",Y)),k)}function N(Y,be,De){var pe=function(){return P(Y.children,be,De)},oe=[];if(Y.highlight!==null){var ce=U({type:"highlight",color:Y.highlight});ce&&oe.push(ce)}Y.isSmallCaps&&oe.push(q("smallCaps")),Y.isAllCaps&&oe.push(q("allCaps")),Y.isStrikethrough&&oe.push(q("strikethrough","s")),Y.isUnderline&&oe.push(q("underline")),Y.verticalAlignment===n.verticalAlignment.subscript&&oe.push(r.element("sub",{},{fresh:!1})),Y.verticalAlignment===n.verticalAlignment.superscript&&oe.push(r.element("sup",{},{fresh:!1})),Y.isItalic&&oe.push(q("italic","em")),Y.isBold&&oe.push(q("bold","strong"));var Re=r.empty,Ee=j(Y);return Ee?Re=Ee.to:Y.styleId&&be.push(f("run",Y)),oe.push(Re),oe.forEach(function(Le){pe=Le.wrap.bind(Le,pe)}),pe()}function q(Y,be){var De=U({type:Y});return De||(be?r.element(be,{},{fresh:!1}):r.empty)}function U(Y,be){var De=j(Y);return De?De.to:be}function j(Y){for(var be=0;be<M.length;be++)if(M[be].from.matches(Y))return M[be]}function H(Y){return function(be,De){return t.attempt(function(){return Y(be,De)}).caught(function(pe){return De.push(o.error(pe)),[]})}}function G(Y){return $(Y.noteType,Y.noteId)}function Z(Y){return L(Y.noteType,Y.noteId)}function $(Y,be){return W(Y+"-"+be)}function L(Y,be){return W(Y+"-ref-"+be)}function W(Y){return A+Y}var ie=r.elements([r.element("table",{},{fresh:!0})]);function ee(Y,be,De){return U(Y,ie).wrap(function(){return te(Y,be,De)})}function te(Y,be,De){var pe=e.findIndex(Y.children,function(Ee){return!Ee.type===n.types.tableRow||!Ee.isHeader});pe===-1&&(pe=Y.children.length);var oe;if(pe===0)oe=P(Y.children,be,e.extend({},De,{isTableHeader:!1}));else{var ce=P(Y.children.slice(0,pe),be,e.extend({},De,{isTableHeader:!0})),Re=P(Y.children.slice(pe),be,e.extend({},De,{isTableHeader:!1}));oe=[a.freshElement("thead",{},ce),a.freshElement("tbody",{},Re)]}return[a.forceWrite].concat(oe)}function X(Y,be,De){var pe=P(Y.children,be,De);return[a.freshElement("tr",{},[a.forceWrite].concat(pe))]}function ue(Y,be,De){var pe=De.isTableHeader?"th":"td",oe=P(Y.children,be,De),ce={};return Y.colSpan!==1&&(ce.colspan=Y.colSpan.toString()),Y.rowSpan!==1&&(ce.rowspan=Y.rowSpan.toString()),[a.freshElement(pe,ce,[a.forceWrite].concat(oe))]}function ve(Y,be,De){return U(Y,r.ignore).wrap(function(){var pe=y[Y.commentId],oe=w.length+1,ce="["+h(pe)+oe+"]";return w.push({label:ce,comment:pe}),[a.freshElement("a",{href:"#"+$("comment",Y.commentId),id:L("comment",Y.commentId)},[a.text(ce)])]})}function Me(Y,be,De){var pe=Y.label,oe=Y.comment,ce=P(oe.body,be,De).concat([a.nonFreshElement("p",{},[a.text(" "),a.freshElement("a",{href:"#"+L("comment",oe.commentId)},[a.text("↑")])])]);return[a.freshElement("dt",{id:$("comment",oe.commentId)},[a.text("Comment "+pe)]),a.freshElement("dd",{},ce)]}function we(Y,be,De){return he(Y).wrap(function(){return[]})}function he(Y){var be=j(Y);return be?be.to:Y.breakType==="line"?r.topLevelElement("br"):r.empty}var Te={document:function(Y,be,De){var pe=P(Y.children,be,De),oe=b.map(function(Re){return Y.notes.resolve(Re)}),ce=P(oe,be,De);return pe.concat([a.freshElement("ol",{},ce),a.freshElement("dl",{},p(w,function(Re){return Me(Re,be,De)}))])},paragraph:_,run:N,text:function(Y,be,De){return[a.text(Y.value)]},tab:function(Y,be,De){return[a.text(" ")]},hyperlink:function(Y,be,De){var pe=Y.anchor?"#"+W(Y.anchor):Y.href,oe={href:pe};Y.targetFrame!=null&&(oe.target=Y.targetFrame);var ce=P(Y.children,be,De);return[a.nonFreshElement("a",oe,ce)]},checkbox:function(Y){var be={type:"checkbox"};return Y.checked&&(be.checked="checked"),[a.freshElement("input",be)]},bookmarkStart:function(Y,be,De){var pe=a.freshElement("a",{id:W(Y.name)},[a.forceWrite]);return[pe]},noteReference:function(Y,be,De){b.push(Y);var pe=a.freshElement("a",{href:"#"+G(Y),id:Z(Y)},[a.text("["+m+++"]")]);return[a.freshElement("sup",{},[pe])]},note:function(Y,be,De){var pe=P(Y.body,be,De),oe=a.elementWithTag(r.element("p",{},{fresh:!1}),[a.text(" "),a.freshElement("a",{href:"#"+Z(Y)},[a.text("↑")])]),ce=pe.concat([oe]);return a.freshElement("li",{id:G(Y)},ce)},commentReference:ve,comment:Me,image:c(H(g.convertImage||i.dataUri)),table:ee,tableRow:X,tableCell:ue,break:we};return{convertToHtml:D}}var d=1;function c(g){return function(y,m,b){return[{type:"deferred",id:d++,value:function(){return g(y,m,b)}}]}}function f(g,y){return o.warning("Unrecognised "+g+" style: '"+y.styleName+"' (Style ID: "+y.styleId+")")}function p(g,y){return e.flatten(g.map(y),!0)}function v(g,y){g.forEach(function(m){y(m),m.children&&v(m.children,y)})}var h=Lx.commentAuthorLabel=function(y){return y.authorInitials||""};return Lx}var CO={},Kne;function hct(){if(Kne)return CO;Kne=1;var e=sm();function t(n){if(n.type==="text")return n.value;if(n.type===e.types.tab)return" ";var r=n.type==="paragraph"?`
- `:"";return(n.children||[]).map(t).join("")+r}return CO.convertElementToRawText=t,CO}var F2={},cc={},xO={},SO={exports:{}},Qne;function gct(){if(Qne)return SO.exports;Qne=1;var e=SO.exports=function(t,n){this._tokens=t,this._startIndex=n||0};return e.prototype.head=function(){return this._tokens[this._startIndex]},e.prototype.tail=function(t){return new e(this._tokens,this._startIndex+1)},e.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},e.prototype.end=function(){return this._tokens[this._tokens.length-1]},e.prototype.to=function(t){var n=this.head().source,r=t.head()||t.end();return n.to(r.source)},SO.exports}var Yne;function vct(){if(Yne)return xO;Yne=1;var e=gct();return xO.Parser=function(t){var n=function(r,o){return r(new e(o))};return{parseTokens:n}},xO}var EO={},kO={},Zne;function mct(){return Zne||(Zne=1,(function(e){e.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:t,valueOrElse:t});function t(r){return typeof r=="function"?r():r}e.some=function(r){return new n(r)};var n=function(r){this._value=r};n.prototype.value=function(){return this._value},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(r){return new n(r(this._value))},n.prototype.flatMap=function(r){return r(this._value)},n.prototype.filter=function(r){return r(this._value)?this:e.none},n.prototype.toArray=function(){return[this._value]},n.prototype.orElse=function(r){return this},n.prototype.valueOrElse=function(r){return this._value},e.isOption=function(r){return r===e.none||r instanceof n},e.fromNullable=function(r){return r==null?e.none:new n(r)}})(kO)),kO}var TO,Xne;function PV(){if(Xne)return TO;Xne=1,TO={failure:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"failure",remaining:n,errors:t})},error:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"error",remaining:n,errors:t})},success:function(t,n,r){return new e({status:"success",value:t,source:r,remaining:n,errors:[]})},cut:function(t){return new e({status:"cut",remaining:t,errors:[]})}};var e=function(t){this._value=t.value,this._status=t.status,this._hasValue=t.value!==void 0,this._remaining=t.remaining,this._source=t.source,this._errors=t.errors};return e.prototype.map=function(t){return this._hasValue?new e({value:t(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},e.prototype.changeRemaining=function(t){return new e({value:this._value,status:this._status,remaining:t,source:this._source,errors:this._errors})},e.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},e.prototype.isFailure=function(){return this._status==="failure"},e.prototype.isError=function(){return this._status==="error"},e.prototype.isCut=function(){return this._status==="cut"},e.prototype.value=function(){return this._value},e.prototype.remaining=function(){return this._remaining},e.prototype.source=function(){return this._source},e.prototype.errors=function(){return this._errors},TO}var _O={},Jne;function R4e(){if(Jne)return _O;Jne=1,_O.error=function(t){return new e(t)};var e=function(t){this.expected=t.expected,this.actual=t.actual,this._location=t.location};return e.prototype.describe=function(){var t=this._location?this._location.describe()+`:
- `:"";return t+"Expected "+this.expected+`
- but got `+this.actual},e.prototype.lineNumber=function(){return this._location.lineNumber()},e.prototype.characterNumber=function(){return this._location.characterNumber()},_O}var DO={},ere;function yct(){if(ere)return DO;ere=1,DO.fromArray=function(t){var n=0,r=function(){return n<t.length};return new e({hasNext:r,next:function(){if(r())return t[n++];throw new Error("No more elements")}})};var e=function(t){this._iterator=t};return e.prototype.map=function(t){var n=this._iterator;return new e({hasNext:function(){return n.hasNext()},next:function(){return t(n.next())}})},e.prototype.filter=function(t){var n=this._iterator,r=!1,o=!1,i,a=function(){if(!r)for(r=!0,o=!1;n.hasNext()&&!o;)i=n.next(),o=t(i)};return new e({hasNext:function(){return a(),o},next:function(){a();var s=i;return r=!1,s}})},e.prototype.first=function(){var t=this._iterator;return this._iterator.hasNext()?t.next():null},e.prototype.toArray=function(){for(var t=[];this._iterator.hasNext();)t.push(this._iterator.next());return t},DO}var tre;function B4e(){return tre||(tre=1,(function(e){var t=Ia,n=mct(),r=PV(),o=R4e(),i=yct();e.token=function(f,p){var v=p!==void 0;return function(h){var g=h.head();if(g&&g.name===f&&(!v||g.value===p))return r.success(g.value,h.tail(),g.source);var y=d({name:f,value:p});return c(h,y)}},e.tokenOfType=function(f){return e.token(f)},e.firstOf=function(f,p){return t.isArray(p)||(p=Array.prototype.slice.call(arguments,1)),function(v){return i.fromArray(p).map(function(h){return h(v)}).filter(function(h){return h.isSuccess()||h.isError()}).first()||c(v,f)}},e.then=function(f,p){return function(v){var h=f(v);return h.map||console.log(h),h.map(p)}},e.sequence=function(){var f=Array.prototype.slice.call(arguments,0),p=function(h){var g=t.foldl(f,function(m,b){var w=m.result,A=m.hasCut;if(!w.isSuccess())return{result:w,hasCut:A};var S=b(w.remaining());if(S.isCut())return{result:w,hasCut:!0};if(S.isSuccess()){var k;b.isCaptured?k=w.value().withValue(b,S.value()):k=w.value();var M=S.remaining(),D=h.to(M);return{result:r.success(k,M,D),hasCut:A}}else return A?{result:r.error(S.errors(),S.remaining()),hasCut:A}:{result:S,hasCut:A}},{result:r.success(new a,h),hasCut:!1}).result,y=h.to(g.remaining());return g.map(function(m){return m.withValue(e.sequence.source,y)})};p.head=function(){var h=t.find(f,v);return e.then(p,e.sequence.extract(h))},p.map=function(h){return e.then(p,function(g){return h.apply(this,g.toArray())})};function v(h){return h.isCaptured}return p};var a=function(f,p){this._values=f||{},this._valuesArray=p||[]};a.prototype.withValue=function(f,p){if(f.captureName&&f.captureName in this._values)throw new Error('Cannot add second value for capture "'+f.captureName+'"');var v=t.clone(this._values);v[f.captureName]=p;var h=this._valuesArray.concat([p]);return new a(v,h)},a.prototype.get=function(f){if(f.captureName in this._values)return this._values[f.captureName];throw new Error('No value for capture "'+f.captureName+'"')},a.prototype.toArray=function(){return this._valuesArray},e.sequence.capture=function(f,p){var v=function(){return f.apply(this,arguments)};return v.captureName=p,v.isCaptured=!0,v},e.sequence.extract=function(f){return function(p){return p.get(f)}},e.sequence.applyValues=function(f){var p=Array.prototype.slice.call(arguments,1);return function(v){var h=p.map(function(g){return v.get(g)});return f.apply(this,h)}},e.sequence.source={captureName:"☃source☃"},e.sequence.cut=function(){return function(f){return r.cut(f)}},e.optional=function(f){return function(p){var v=f(p);return v.isSuccess()?v.map(n.some):v.isFailure()?r.success(n.none,p):v}},e.zeroOrMoreWithSeparator=function(f,p){return u(f,p,!1)},e.oneOrMoreWithSeparator=function(f,p){return u(f,p,!0)};var s=e.zeroOrMore=function(f){return function(p){for(var v=[],h;(h=f(p))&&h.isSuccess();)p=h.remaining(),v.push(h.value());return h.isError()?h:r.success(v,p)}};e.oneOrMore=function(f){return e.oneOrMoreWithSeparator(f,l)};function l(f){return r.success(null,f)}var u=function(f,p,v){return function(h){var g=f(h);if(g.isSuccess()){var y=e.sequence.capture(f,"main"),m=s(e.then(e.sequence(p,y),e.sequence.extract(y))),b=m(g.remaining());return r.success([g.value()].concat(b.value()),b.remaining())}else return v||g.isError()?g:r.success([],h)}};e.leftAssociative=function(f,p,v){var h;v?h=[{func:v,rule:p}]:h=p,h=h.map(function(y){return e.then(y.rule,function(m){return function(b,w){return y.func(b,m,w)}})});var g=e.firstOf.apply(null,["rules"].concat(h));return function(y){var m=y,b=f(y);if(!b.isSuccess())return b;for(var w=g(b.remaining());w.isSuccess();){var A=w.remaining(),S=m.to(w.remaining()),k=w.value();b=r.success(k(b.value(),S),A,S),w=g(b.remaining())}return w.isError()?w:b}},e.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},e.nonConsuming=function(f){return function(p){return f(p).changeRemaining(p)}};var d=function(f){return f.value?f.name+' "'+f.value+'"':f.name};function c(f,p){var v,h=f.head();return h?v=o.error({expected:p,actual:d(h),location:h.source}):v=o.error({expected:p,actual:"end of tokens"}),r.failure([v],f)}})(EO)),EO}var IO={exports:{}},nre;function L4e(){if(nre)return IO.exports;nre=1,IO.exports=function(t,n){var r={asString:function(){return t},range:function(o,i){return new e(t,n,o,i)}};return r};var e=function(t,n,r,o){this._string=t,this._description=n,this._startIndex=r,this._endIndex=o};return e.prototype.to=function(t){return new e(this._string,this._description,this._startIndex,t._endIndex)},e.prototype.describe=function(){var t=this._position(),n=this._description?this._description+`
- `:"";return n+"Line number: "+t.lineNumber+`
- Character number: `+t.characterNumber},e.prototype.lineNumber=function(){return this._position().lineNumber},e.prototype.characterNumber=function(){return this._position().characterNumber},e.prototype._position=function(){for(var t=this,n=0,r=function(){return t._string.indexOf(`
- `,n)},o=1;r()!==-1&&r()<this._startIndex;)n=r()+1,o+=1;var i=this._startIndex-n+1;return{lineNumber:o,characterNumber:i}},IO.exports}var OO,rre;function F4e(){return rre||(rre=1,OO=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}),OO}var MO={},ore;function bct(){return ore||(ore=1,(function(e){var t=B4e(),n=PV();e.parser=function(i,a,s){var l={rule:f,leftAssociative:p,rightAssociative:v},u=new r(s.map(c)),d=t.firstOf(i,a);function c(y){return{name:y.name,rule:o(y.ruleBuilder.bind(null,l))}}function f(){return h(u)}function p(y){return h(u.untilExclusive(y))}function v(y){return h(u.untilInclusive(y))}function h(y){return g.bind(null,y)}function g(y,m){var b=d(m);return b.isSuccess()?y.apply(b):b}return l};function r(i){function a(c){return new r(i.slice(0,l().indexOf(c)))}function s(c){return new r(i.slice(0,l().indexOf(c)+1))}function l(){return i.map(function(c){return c.name})}function u(c){for(var f,p;;)if(f=d(c.remaining()),f.isSuccess())p=c.source().to(f.source()),c=n.success(f.value()(c.value(),p),f.remaining(),p);else return f.isFailure()?c:f}function d(c){return t.firstOf("infix",i.map(function(f){return f.rule}))(c)}return{apply:u,untilExclusive:a,untilInclusive:s}}e.infix=function(i,a){function s(l){return e.infix(i,function(u){var d=a(u);return function(c){var f=d(c);return f.map(function(p){return function(v,h){return l(v,p,h)}})}})}return{name:i,ruleBuilder:a,map:s}};var o=function(i){var a;return function(s){return a||(a=i()),a(s)}}})(MO)),MO}var PO={},ire;function wct(){if(ire)return PO;ire=1;var e=F4e(),t=L4e();PO.RegexTokeniser=n;function n(r){r=r.map(function(s){return{name:s.name,regex:new RegExp(s.regex.source,"g")}});function o(s,l){for(var u=new t(s,l),d=0,c=[];d<s.length;){var f=i(s,d,u);d=f.endIndex,c.push(f.token)}return c.push(a(s,u)),c}function i(s,l,u){for(var d=0;d<r.length;d++){var c=r[d].regex;c.lastIndex=l;var f=c.exec(s);if(f){var v=l+f[0].length;if(f.index===l&&v>l){var p=f[1],h=new e(r[d].name,p,u.range(l,v));return{token:h,endIndex:v}}}}var v=l+1,h=new e("unrecognisedCharacter",s.substring(l,v),u.range(l,v));return{token:h,endIndex:v}}function a(s,l){return new e("end",null,l.range(s.length,s.length))}return{tokenise:o}}return PO}var are;function U4e(){return are||(are=1,cc.Parser=vct().Parser,cc.rules=B4e(),cc.errors=R4e(),cc.results=PV(),cc.StringSource=L4e(),cc.Token=F4e(),cc.bottomUp=bct(),cc.RegexTokeniser=wct().RegexTokeniser,cc.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}),cc}var is={},sre;function Act(){if(sre)return is;sre=1,is.paragraph=e,is.run=t,is.table=n,is.bold=new o("bold"),is.italic=new o("italic"),is.underline=new o("underline"),is.strikethrough=new o("strikethrough"),is.allCaps=new o("allCaps"),is.smallCaps=new o("smallCaps"),is.highlight=r,is.commentReference=new o("commentReference"),is.lineBreak=new a({breakType:"line"}),is.pageBreak=new a({breakType:"page"}),is.columnBreak=new a({breakType:"column"}),is.equalTo=l,is.startsWith=u;function e(f){return new o("paragraph",f)}function t(f){return new o("run",f)}function n(f){return new o("table",f)}function r(f){return new i(f)}function o(f,p){p=p||{},this._elementType=f,this._styleId=p.styleId,this._styleName=p.styleName,p.list&&(this._listIndex=p.list.levelIndex,this._listIsOrdered=p.list.isOrdered)}o.prototype.matches=function(f){return f.type===this._elementType&&(this._styleId===void 0||f.styleId===this._styleId)&&(this._styleName===void 0||f.styleName&&this._styleName.operator(this._styleName.operand,f.styleName))&&(this._listIndex===void 0||s(f,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===f.breakType)};function i(f){f=f||{},this._color=f.color}i.prototype.matches=function(f){return f.type==="highlight"&&(this._color===void 0||f.color===this._color)};function a(f){f=f||{},this._breakType=f.breakType}a.prototype.matches=function(f){return f.type==="break"&&(this._breakType===void 0||f.breakType===this._breakType)};function s(f,p,v){return f.numbering&&f.numbering.level==p&&f.numbering.isOrdered==v}function l(f){return{operator:d,operand:f}}function u(f){return{operator:c,operand:f}}function d(f,p){return f.toUpperCase()===p.toUpperCase()}function c(f,p){return p.toUpperCase().indexOf(f.toUpperCase())===0}return is}var NO={},lre;function Cct(){if(lre)return NO;lre=1;var e=U4e(),t=e.RegexTokeniser;NO.tokenise=r;var n="'((?:\\\\.|[^'])*)";function r(o){var i="(?:[a-zA-Z\\-_]|\\\\.)",a=new t([{name:"identifier",regex:new RegExp("("+i+"(?:"+i+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(n+"'")},{name:"unterminated-string",regex:new RegExp(n)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return a.tokenise(o)}return NO}var ure;function xct(){if(ure)return F2;ure=1;var e=Ia,t=U4e(),n=Act(),r=$D(),o=Cct().tokenise,i=tp();F2.readHtmlPath=d,F2.readDocumentMatcher=l,F2.readStyle=a;function a(M){return w(k,M)}function s(){return t.rules.sequence(t.rules.sequence.capture(u()),t.rules.tokenOfType("whitespace"),t.rules.tokenOfType("arrow"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("whitespace"),t.rules.sequence.capture(c())).head())),t.rules.tokenOfType("end")).map(function(M,D){return{from:M,to:D.valueOrElse(r.empty)}})}function l(M){return w(u(),M)}function u(){var M=t.rules.sequence,D=function(Me,we){return t.rules.then(t.rules.token("identifier",Me),function(){return we})},P=D("p",n.paragraph),O=D("r",n.run),_=t.rules.firstOf("p or r or table",P,O),B=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(f)).map(function(Me){return{styleId:Me}}),N=t.rules.firstOf("style name matcher",t.rules.then(t.rules.sequence(t.rules.tokenOfType("equals"),t.rules.sequence.cut(),t.rules.sequence.capture(v)).head(),function(Me){return{styleName:n.equalTo(Me)}}),t.rules.then(t.rules.sequence(t.rules.tokenOfType("startsWith"),t.rules.sequence.cut(),t.rules.sequence.capture(v)).head(),function(Me){return{styleName:n.startsWith(Me)}})),q=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","style-name"),t.rules.sequence.capture(N),t.rules.tokenOfType("close-square-bracket")).head(),U=t.rules.firstOf("list type",D("ordered-list",{isOrdered:!0}),D("unordered-list",{isOrdered:!1})),j=M(t.rules.tokenOfType("colon"),M.capture(U),M.cut(),t.rules.tokenOfType("open-paren"),M.capture(p),t.rules.tokenOfType("close-paren")).map(function(Me,we){return{list:{isOrdered:Me.isOrdered,levelIndex:we-1}}});function H(Me){var we=t.rules.firstOf.apply(t.rules.firstOf,["matcher suffix"].concat(Me)),he=t.rules.zeroOrMore(we);return t.rules.then(he,function(Te){var Y={};return Te.forEach(function(be){e.extend(Y,be)}),Y})}var G=M(M.capture(_),M.capture(H([B,q,j]))).map(function(Me,we){return Me(we)}),Z=M(t.rules.token("identifier","table"),M.capture(H([B,q]))).map(function(Me){return n.table(Me)}),$=D("b",n.bold),L=D("i",n.italic),W=D("u",n.underline),ie=D("strike",n.strikethrough),ee=D("all-caps",n.allCaps),te=D("small-caps",n.smallCaps),X=M(t.rules.token("identifier","highlight"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","color"),t.rules.tokenOfType("equals"),t.rules.sequence.capture(v),t.rules.tokenOfType("close-square-bracket")).head()))).map(function(Me){return n.highlight({color:Me.valueOrElse(void 0)})}),ue=D("comment-reference",n.commentReference),ve=M(t.rules.token("identifier","br"),M.cut(),t.rules.tokenOfType("open-square-bracket"),t.rules.token("identifier","type"),t.rules.tokenOfType("equals"),M.capture(v),t.rules.tokenOfType("close-square-bracket")).map(function(Me){switch(Me){case"line":return n.lineBreak;case"page":return n.pageBreak;case"column":return n.columnBreak}});return t.rules.firstOf("element type",G,Z,$,L,W,ie,ee,te,X,ue,ve)}function d(M){return w(c(),M)}function c(){var M=t.rules.sequence.capture,D=t.rules.tokenOfType("whitespace"),P=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","fresh"))),function(N){return N.map(function(){return!0}).valueOrElse(!1)}),O=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","separator"),t.rules.tokenOfType("open-paren"),M(v),t.rules.tokenOfType("close-paren")).head()),function(N){return N.valueOrElse("")}),_=t.rules.oneOrMoreWithSeparator(f,t.rules.tokenOfType("choice")),B=t.rules.sequence(M(_),M(t.rules.zeroOrMore(b)),M(P),M(O)).map(function(N,q,U,j){var H={},G={};return q.forEach(function(Z){Z.append&&H[Z.name]?H[Z.name]+=" "+Z.value:H[Z.name]=Z.value}),U&&(G.fresh=!0),j&&(G.separator=j),r.element(N,H,G)});return t.rules.firstOf("html path",t.rules.then(t.rules.tokenOfType("bang"),function(){return r.ignore}),t.rules.then(t.rules.zeroOrMoreWithSeparator(B,t.rules.sequence(D,t.rules.tokenOfType("gt"),D)),r.elements))}var f=t.rules.then(t.rules.tokenOfType("identifier"),g),p=t.rules.tokenOfType("integer"),v=t.rules.then(t.rules.tokenOfType("string"),g),h={n:`
- `,r:"\r",t:" "};function g(M){return M.replace(/\\(.)/g,function(D,P){return h[P]||P})}var y=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.sequence.capture(f),t.rules.tokenOfType("equals"),t.rules.sequence.capture(v),t.rules.tokenOfType("close-square-bracket")).map(function(M,D){return{name:M,value:D,append:!1}}),m=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(f)).map(function(M){return{name:"class",value:M,append:!0}}),b=t.rules.firstOf("attribute or class",y,m);function w(M,D){var P=o(D),O=t.Parser(),_=O.parseTokens(M,P);return _.isSuccess()?i.success(_.value()):new i.Result(null,[i.warning(A(D,_))])}function A(M,D){return"Did not understand this style mapping, so ignored it: "+M+`
- `+D.errors().map(S).join(`
- `)}function S(M){return"Error was at character number "+M.characterNumber()+": Expected "+M.expected+" but got "+M.actual}var k=s();return F2}var U2={},cre;function Sct(){if(cre)return U2;cre=1,U2.readOptions=r;var e=Ia,t=U2._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],n=U2._standardOptions={transformDocument:i,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function r(a){return a=a||{},e.extend({},n,a,{customStyleMap:o(a.styleMap),readStyleMap:function(){var s=this.customStyleMap;return this.includeEmbeddedStyleMap&&(s=s.concat(o(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(s=s.concat(t)),s}})}function o(a){return a?e.isString(a)?a.split(`
- `).map(function(s){return s.trim()}).filter(function(s){return s!==""&&s.charAt(0)!=="#"}):a:[]}function i(a){return a}return U2}var RO={},dre;function Ect(){if(dre)return RO;dre=1;var e=O0(),t=T4e();RO.openZip=n;function n(r){return r.arrayBuffer?e.resolve(t.openArrayBuffer(r.arrayBuffer)):e.reject(new Error("Could not find file in options"))}return RO}var BO={},fre;function kct(){if(fre)return BO;fre=1;var e=$D(),t=UD();BO.element=n;function n(r){return function(o){return t.elementWithTag(e.element(r),[o])}}return BO}var pre;function Tct(){if(pre)return xu;pre=1;var e=Ia,t=sct(),n=lct(),r=pct().DocumentConverter,o=hct().convertElementToRawText,i=xct().readStyle,a=Sct().readOptions,s=Ect(),l=tp().Result;xu.convertToHtml=u,xu.convertToMarkdown=d,xu.convert=c,xu.extractRawText=h,xu.images=N4e(),xu.transforms=M4e(),xu.underline=kct(),xu.embedStyleMap=g,xu.readEmbeddedStyleMap=f;function u(y,m){return c(y,m)}function d(y,m){var b=Object.create(m||{});return b.outputFormat="markdown",c(y,b)}function c(y,m){return m=a(m),s.openZip(y).tap(function(b){return n.readStyleMap(b).then(function(w){m.embeddedStyleMap=w})}).then(function(b){return t.read(b,y).then(function(w){return w.map(m.transformDocument)}).then(function(w){return p(w,m)})})}function f(y){return s.openZip(y).then(n.readStyleMap)}function p(y,m){var b=v(m.readStyleMap()),w=e.extend({},m,{styleMap:b.value}),A=new r(w);return y.flatMapThen(function(S){return b.flatMapThen(function(k){return A.convertToHtml(S)})})}function v(y){return l.combine((y||[]).map(i)).map(function(m){return m.filter(function(b){return!!b})})}function h(y){return s.openZip(y).then(t.read).then(function(m){return m.map(o)})}function g(y,m){return s.openZip(y).tap(function(b){return n.writeStyleMap(b,m)}).then(function(b){return b.toArrayBuffer()}).then(function(b){return{toArrayBuffer:function(){return b},toBuffer:function(){return Buffer.from(b)}}})}return xu.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)},xu}var NV=Tct();const _ct=mu(NV),$E=Pke({__proto__:null,default:_ct},[NV]),Dct={__name:"DeleteConfirmModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"删除确认"},message:{type:String,default:"删除将清除该数据,无法撤销。确定继续删除吗?"}},emits:["close","confirm","cancel"],setup(e,{emit:t}){const n=t,r=()=>{n("close")},o=()=>{n("cancel"),n("close")},i=()=>{n("confirm"),n("close")};return(a,s)=>e.visible?(F(),K("div",{key:0,class:"delete-modal-overlay",onClick:r},[x("div",{class:"delete-modal",onClick:s[0]||(s[0]=Qt(()=>{},["stop"]))},[s[1]||(s[1]=x("div",{class:"modal-title"},"删除确认",-1)),s[2]||(s[2]=x("div",{class:"modal-message"},"删除将清除该数据无法撤销,确定继续删除吗?",-1)),x("div",{class:"modal-actions"},[x("button",{class:"btn btn-cancel",onClick:o}," 取消 "),x("button",{class:"btn btn-delete",onClick:i}," 删除 ")])])])):xe("",!0)}},c0=Qo(Dct,[["__scopeId","data-v-d2f3ad5a"]]),Ict={key:0,class:"toast-container"},Oct={class:"toast-content"},Mct={key:0,class:"toast-icon"},Pct=["src","alt"],Nct={class:"toast-text"},Rct={__name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"info",validator:e=>["success","error","warning","info"].includes(e)},duration:{type:Number,default:2e3},icon:{type:String,default:"/src/assets/AIWriting/17.png"}},setup(e,{expose:t}){const n=e,r=Q(!1);return t({show:()=>{r.value=!0,n.duration>0&&setTimeout(()=>{r.value=!1},n.duration)},hide:()=>{r.value=!1}}),(a,s)=>(F(),mt(Wi,{name:"toast-fade"},{default:nt(()=>[r.value?(F(),K("div",Ict,[x("div",Oct,[e.icon?(F(),K("div",Mct,[x("img",{src:e.icon,alt:e.type,class:"icon-img"},null,8,Pct)])):xe("",!0),x("span",Nct,We(e.message),1)])])):xe("",!0)]),_:1}))}},Bct=Qo(Rct,[["__scopeId","data-v-f0e7cdfe"]]),s8=da.create({baseURL:"/api",timeout:1e4,headers:{"Content-Type":"application/json"}});let LO=!1,FO=[];s8.interceptors.request.use(e=>{const t=t0();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>(console.error("请求错误:",e),Promise.reject(e)));s8.interceptors.response.use(e=>e.data,async e=>{const t=e.config;if(e.response&&e.response.status===401){if(t.url==="/auth/refresh")return hS(),window.location.href="/#/login",Promise.reject(e);if(LO)return new Promise(r=>{FO.push(o=>{t.headers.Authorization=`Bearer ${o}`,r(s8(t))})});{LO=!0;const r=F9e();if(!r)return hS(),window.location.href="/#/login",Promise.reject(e);try{const o=await da.post("/api/auth/refresh",{refresh_token:r}),{access_token:i}=o.data;return U9e(i,r),t.headers.Authorization=`Bearer ${i}`,FO.forEach(a=>a(i)),FO=[],s8(t)}catch(o){return console.error("刷新token失败:",o),hS(),window.location.href="/#/login",Promise.reject(o)}finally{LO=!1}}}const n=e.response?.data?.message||e.message||"请求失败";return console.error("响应错误:",n),Promise.reject({code:e.response?.status||500,message:n,data:e.response?.data})});function RV(){return"/chatwithai/api/v1"}function BV(e){const t=RV(),n=e.startsWith("/")?e:`/${e}`;return`${t}${n}`}function $4e(e){return e?`https://aqai.shudaodsj.com:22000/apiv1/oss/parse/?url=${encodeURIComponent(e)}`:""}async function z4e(e,t){try{const n=await fetch(BV("/sse/stop"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ai_conversation_id:t})});if(!n.ok)return console.error("停止请求失败,状态码:",n.status),{success:!1,message:`请求失败: ${n.status} ${n.statusText}`};const r=await n.text();if(!r||r.trim()==="")return console.log("停止请求成功(无响应体)"),{success:!0,message:"已发送停止请求"};try{return JSON.parse(r)}catch(o){return console.error("解析JSON失败:",o,"原始响应:",r),{success:!0,message:"已发送停止请求"}}}catch(n){return console.error("发送停止请求异常:",n),{success:!1,message:n.message||"网络请求失败"}}}async function gd(e,t){try{const n=await fetch(BV("/report/update-ai-message"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ai_message_id:e,content:t})});if(!n.ok)return console.error("更新AI消息失败,状态码:",n.status),{success:!1,message:`请求失败: ${n.status} ${n.statusText}`};const r=await n.text();if(!r||r.trim()==="")return console.log("更新AI消息成功(无响应体)"),{success:!0,message:"已更新AI消息"};try{return JSON.parse(r)}catch(o){return console.error("解析JSON失败:",o,"原始响应:",r),{success:!0,message:"已更新AI消息"}}}catch(n){return console.error("更新AI消息异常:",n),{success:!1,message:n.message||"网络请求失败"}}}function LV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var lm=LV();function j4e(e){lm=e}var X4={exec:()=>null};function ai(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(ol.caret,"$1"),n=n.replace(o,a),r},getRegex:()=>new RegExp(n,t)};return r}var ol={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Lct=/^(?:[ \t]*(?:\n|$))+/,Fct=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Uct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,VC=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$ct=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,FV=/(?:[*+-]|\d{1,9}[.)])/,H4e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,W4e=ai(H4e).replace(/bull/g,FV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),zct=ai(H4e).replace(/bull/g,FV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),UV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jct=/^[^\n]+/,$V=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Hct=ai(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$V).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wct=ai(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,FV).getRegex(),zD="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zV=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vct=ai("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",zV).replace("tag",zD).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V4e=ai(UV).replace("hr",VC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zD).getRegex(),qct=ai(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",V4e).getRegex(),jV={blockquote:qct,code:Fct,def:Hct,fences:Uct,heading:$ct,hr:VC,html:Vct,lheading:W4e,list:Wct,newline:Lct,paragraph:V4e,table:X4,text:jct},hre=ai("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",VC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zD).getRegex(),Gct={...jV,lheading:zct,table:hre,paragraph:ai(UV).replace("hr",VC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hre).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zD).getRegex()},Kct={...jV,html:ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zV).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:X4,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ai(UV).replace("hr",VC).replace("heading",` *#{1,6} *[^
- ]`).replace("lheading",W4e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Qct=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Yct=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,q4e=/^( {2,}|\\)\n(?!\s*$)/,Zct=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jD=/[\p{P}\p{S}]/u,HV=/[\s\p{P}\p{S}]/u,G4e=/[^\s\p{P}\p{S}]/u,Xct=ai(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,HV).getRegex(),K4e=/(?!~)[\p{P}\p{S}]/u,Jct=/(?!~)[\s\p{P}\p{S}]/u,edt=/(?:[^\s\p{P}\p{S}]|~)/u,tdt=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Q4e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ndt=ai(Q4e,"u").replace(/punct/g,jD).getRegex(),rdt=ai(Q4e,"u").replace(/punct/g,K4e).getRegex(),Y4e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",odt=ai(Y4e,"gu").replace(/notPunctSpace/g,G4e).replace(/punctSpace/g,HV).replace(/punct/g,jD).getRegex(),idt=ai(Y4e,"gu").replace(/notPunctSpace/g,edt).replace(/punctSpace/g,Jct).replace(/punct/g,K4e).getRegex(),adt=ai("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G4e).replace(/punctSpace/g,HV).replace(/punct/g,jD).getRegex(),sdt=ai(/\\(punct)/,"gu").replace(/punct/g,jD).getRegex(),ldt=ai(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),udt=ai(zV).replace("(?:-->|$)","-->").getRegex(),cdt=ai("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",udt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zE=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ddt=ai(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",zE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z4e=ai(/^!?\[(label)\]\[(ref)\]/).replace("label",zE).replace("ref",$V).getRegex(),X4e=ai(/^!?\[(ref)\](?:\[\])?/).replace("ref",$V).getRegex(),fdt=ai("reflink|nolink(?!\\()","g").replace("reflink",Z4e).replace("nolink",X4e).getRegex(),gre=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,WV={_backpedal:X4,anyPunctuation:sdt,autolink:ldt,blockSkip:tdt,br:q4e,code:Yct,del:X4,emStrongLDelim:ndt,emStrongRDelimAst:odt,emStrongRDelimUnd:adt,escape:Qct,link:ddt,nolink:X4e,punctuation:Xct,reflink:Z4e,reflinkSearch:fdt,tag:cdt,text:Zct,url:X4},pdt={...WV,link:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",zE).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zE).getRegex()},wF={...WV,emStrongRDelimAst:idt,emStrongLDelim:rdt,url:ai(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gre).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ai(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gre).getRegex()},hdt={...wF,br:ai(q4e).replace("{2,}","*").getRegex(),text:ai(wF.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Fx={normal:jV,gfm:Gct,pedantic:Kct},$2={normal:WV,gfm:wF,breaks:hdt,pedantic:pdt},gdt={"&":"&","<":"<",">":">",'"':""","'":"'"},vre=e=>gdt[e];function id(e,t){if(t){if(ol.escapeTest.test(e))return e.replace(ol.escapeReplace,vre)}else if(ol.escapeTestNoEncode.test(e))return e.replace(ol.escapeReplaceNoEncode,vre);return e}function mre(e){try{e=encodeURI(e).replace(ol.percentDecode,"%")}catch{return null}return e}function yre(e,t){let n=e.replace(ol.findPipe,(i,a,s)=>{let l=!1,u=a;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ol.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(ol.slashPipe,"|");return r}function z2(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function vdt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function bre(e,t,n,r,o){let i=t.href,a=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function mdt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
- `).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[s]=a;return s.length>=o.length?i.slice(o.length):i}).join(`
- `)}var jE=class{options;rules;lexer;constructor(t){this.options=t||lm}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:z2(r,`
- `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],o=mdt(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let o=z2(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:z2(n[0],`
- `)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=z2(n[0],`
- `).split(`
- `),o="",i="",a=[];for(;r.length>0;){let s=!1,l=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),s=!0;else if(!s)l.push(r[u]);else break;r=r.slice(u);let d=l.join(`
- `),c=d.replace(this.rules.other.blockquoteSetextReplace,`
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
- ${d}`:d,i=i?`${i}
- ${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=f,r.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let v=p,h=v.raw+`
- `+r.join(`
- `),g=this.blockquote(h);a[a.length-1]=g,o=o.substring(0,o.length-v.raw.length)+g.raw,i=i.substring(0,i.length-v.text.length)+g.text;break}else if(p?.type==="list"){let v=p,h=v.raw+`
- `+r.join(`
- `),g=this.list(h);a[a.length-1]=g,o=o.substring(0,o.length-p.raw.length)+g.raw,i=i.substring(0,i.length-v.raw.length)+g.raw,r=h.substring(a.at(-1).raw.length).split(`
- `);continue}}return{type:"blockquote",raw:o,tokens:a,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let u=!1,d="",c="";if(!(n=a.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let f=n[2].split(`
- `,1)[0].replace(this.rules.other.listReplaceTabs,m=>" ".repeat(3*m.length)),p=t.split(`
- `,1)[0],v=!f.trim(),h=0;if(this.options.pedantic?(h=2,c=f.trimStart()):v?h=n[1].length+1:(h=n[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,c=f.slice(h),h+=n[1].length),v&&this.rules.other.blankLine.test(p)&&(d+=p+`
- `,t=t.substring(p.length+1),u=!0),!u){let m=this.rules.other.nextBulletRegex(h),b=this.rules.other.hrRegex(h),w=this.rules.other.fencesBeginRegex(h),A=this.rules.other.headingBeginRegex(h),S=this.rules.other.htmlBeginRegex(h);for(;t;){let k=t.split(`
- `,1)[0],M;if(p=k,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),M=p):M=p.replace(this.rules.other.tabCharGlobal," "),w.test(p)||A.test(p)||S.test(p)||m.test(p)||b.test(p))break;if(M.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=`
- `+M.slice(h);else{if(v||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(f)||A.test(f)||b.test(f))break;c+=`
- `+p}!v&&!p.trim()&&(v=!0),d+=k+`
- `,t=t.substring(k.length+1),f=M.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0));let g=null,y;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(y=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:d,task:!!g,checked:y,loose:!1,text:c,tokens:[]}),i.raw+=d}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){let d=i.items[u].tokens.filter(f=>f.type==="space"),c=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=c}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=yre(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
- `):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let s of o)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<r.length;s++)a.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(yre(s,a.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[u]})));return a}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let r=n[1].charAt(n[1].length-1)===`
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=z2(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=vdt(n[2],"()");if(a===-2)return;if(a>-1){let s=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),bre(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return bre(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,a,s,l=i,u=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+i);(o=d.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(s=[...a].length,o[3]||o[4]){l+=s;continue}else if((o[5]||o[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+u);let c=[...o[0]][0].length,f=t.slice(0,i+o.index+c+s);if(Math.min(i,s)%2){let v=f.slice(1,-1);return{type:"em",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){let n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},vc=class AF{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||lm,this.options.tokenizer=this.options.tokenizer||new jE,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:ol,block:Fx.normal,inline:$2.normal};this.options.pedantic?(n.block=Fx.pedantic,n.inline=$2.pedantic):this.options.gfm&&(n.block=Fx.gfm,this.options.breaks?n.inline=$2.breaks:n.inline=$2.gfm),this.tokenizer.rules=n}static get rules(){return{block:Fx,inline:$2}}static lex(t,n){return new AF(n).lex(t)}static lexInline(t,n){return new AF(n).inlineTokens(t)}lex(t){t=t.replace(ol.carriageReturn,`
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(ol.tabCharGlobal," ").replace(ol.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=n.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
- `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let i=t;if(this.options.extensions?.startBlock){let a=1/0,s=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},s),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let a=n.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o),r=i.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,o=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)s.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;t;){i||(a=""),i=!1;let s;if(this.options.extensions?.inline?.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length);let u=n.at(-1);s.type==="text"&&u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,r,a)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),c;this.options.extensions.startInline.forEach(f=>{c=f.call({lexer:this},d),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(s=this.tokenizer.inlineText(l)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),i=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):n.push(s);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},HE=class{options;parser;constructor(t){this.options=t||lm}space(t){return""}code({text:t,lang:n,escaped:r}){let o=(n||"").match(ol.notSpaceStart)?.[0],i=t.replace(ol.endingNewline,"")+`
- `;return o?'<pre><code class="language-'+id(o)+'">'+(r?i:id(i,!0))+`</code></pre>
- `:"<pre><code>"+(r?i:id(i,!0))+`</code></pre>
- `}blockquote({tokens:t}){return`<blockquote>
- ${this.parser.parse(t)}</blockquote>
- `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
- `}hr(t){return`<hr>
- `}list(t){let n=t.ordered,r=t.start,o="";for(let s=0;s<t.items.length;s++){let l=t.items[s];o+=this.listitem(l)}let i=n?"ol":"ul",a=n&&r!==1?' start="'+r+'"':"";return"<"+i+a+`>
- `+o+"</"+i+`>
- `}listitem(t){let n="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+id(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
- `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
- `}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<t.rows.length;i++){let a=t.rows[i];r="";for(let s=0;s<a.length;s++)r+=this.tablecell(a[s]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
- <thead>
- `+n+`</thead>
- `+o+`</table>
- `}tablerow({text:t}){return`<tr>
- ${t}</tr>
- `}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${id(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let o=this.parser.parseInline(r),i=mre(t);if(i===null)return o;t=i;let a='<a href="'+t+'"';return n&&(a+=' title="'+id(n)+'"'),a+=">"+o+"</a>",a}image({href:t,title:n,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=mre(t);if(i===null)return id(r);t=i;let a=`<img src="${t}" alt="${r}"`;return n&&(a+=` title="${id(n)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:id(t.text)}},VV=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},mc=class CF{options;renderer;textRenderer;constructor(t){this.options=t||lm,this.options.renderer=this.options.renderer||new HE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new VV}static parse(t,n){return new CF(n).parse(t)}static parseInline(t,n){return new CF(n).parseInline(t)}parse(t,n=!0){let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions?.renderers?.[i.type]){let s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){r+=l||"";continue}}let a=i;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"def":{r+=this.renderer.def(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let s=a,l=this.renderer.text(s);for(;o+1<t.length&&t[o+1].type==="text";)s=t[++o],l+=`
- `+this.renderer.text(s);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):r+=l;continue}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,n=this.renderer){let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions?.renderers?.[i.type]){let s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}let a=i;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}},w4=class{options;block;constructor(t){this.options=t||lm}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?vc.lex:vc.lexInline}provideParser(){return this.block?mc.parse:mc.parseInline}},ydt=class{defaults=LV();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=mc;Renderer=HE;TextRenderer=VV;Lexer=vc;Tokenizer=jE;Hooks=w4;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(let o of t)switch(r=r.concat(n.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)r=r.concat(this.walkTokens(a.tokens,n));for(let a of i.rows)for(let s of a)r=r.concat(this.walkTokens(s.tokens,n));break}case"list":{let i=o;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);r=r.concat(this.walkTokens(s,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=n.renderers[i.name];a?n.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=n[i.level];a?a.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){let i=this.defaults.renderer||new HE(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=r.renderer[s],u=i[s];i[s]=(...d)=>{let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c||""}}o.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new jE(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=r.tokenizer[s],u=i[s];i[s]=(...d)=>{let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c}}o.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new w4;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=r.hooks[s],u=i[s];w4.passThroughHooks.has(a)?i[s]=d=>{if(this.defaults.async&&w4.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(i,d);return u.call(i,f)})();let c=l.call(i,d);return u.call(i,c)}:i[s]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,d);return f===!1&&(f=await u.apply(i,d)),f})();let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c}}o.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;o.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return vc.lex(t,n??this.defaults)}parser(t,n){return mc.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let o={...r},i={...this.defaults,...o},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(n):n,l=await(i.hooks?await i.hooks.provideLexer():t?vc.lex:vc.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():t?mc.parse:mc.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(a);try{i.hooks&&(n=i.hooks.preprocess(n));let s=(i.hooks?i.hooks.provideLexer():t?vc.lex:vc.lexInline)(n,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():t?mc.parse:mc.parseInline)(s,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(t,n){return r=>{if(r.message+=`
- Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+id(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}},Rv=new ydt;function ui(e,t){return Rv.parse(e,t)}ui.options=ui.setOptions=function(e){return Rv.setOptions(e),ui.defaults=Rv.defaults,j4e(ui.defaults),ui};ui.getDefaults=LV;ui.defaults=lm;ui.use=function(...e){return Rv.use(...e),ui.defaults=Rv.defaults,j4e(ui.defaults),ui};ui.walkTokens=function(e,t){return Rv.walkTokens(e,t)};ui.parseInline=Rv.parseInline;ui.Parser=mc;ui.parser=mc.parse;ui.Renderer=HE;ui.TextRenderer=VV;ui.Lexer=vc;ui.lexer=vc.lex;ui.Tokenizer=jE;ui.Hooks=w4;ui.parse=ui;ui.options;ui.setOptions;ui.use;ui.walkTokens;ui.parseInline;mc.parse;vc.lex;/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:J4e,setPrototypeOf:wre,isFrozen:bdt,getPrototypeOf:wdt,getOwnPropertyDescriptor:Adt}=Object;let{freeze:dl,seal:Yu,create:xF}=Object,{apply:SF,construct:EF}=typeof Reflect<"u"&&Reflect;dl||(dl=function(t){return t});Yu||(Yu=function(t){return t});SF||(SF=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});EF||(EF=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Ux=fl(Array.prototype.forEach),Cdt=fl(Array.prototype.lastIndexOf),Are=fl(Array.prototype.pop),j2=fl(Array.prototype.push),xdt=fl(Array.prototype.splice),l8=fl(String.prototype.toLowerCase),UO=fl(String.prototype.toString),$O=fl(String.prototype.match),H2=fl(String.prototype.replace),Sdt=fl(String.prototype.indexOf),Edt=fl(String.prototype.trim),fc=fl(Object.prototype.hasOwnProperty),Ys=fl(RegExp.prototype.test),W2=kdt(TypeError);function fl(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return SF(e,t,r)}}function kdt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EF(e,n)}}function No(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l8;wre&&wre(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(bdt(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Tdt(e){for(let t=0;t<e.length;t++)fc(e,t)||(e[t]=null);return e}function mf(e){const t=xF(null);for(const[n,r]of J4e(e))fc(e,n)&&(Array.isArray(r)?t[n]=Tdt(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=mf(r):t[n]=r);return t}function V2(e,t){for(;e!==null;){const r=Adt(e,t);if(r){if(r.get)return fl(r.get);if(typeof r.value=="function")return fl(r.value)}e=wdt(e)}function n(){return null}return n}const Cre=dl(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zO=dl(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jO=dl(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_dt=dl(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),HO=dl(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ddt=dl(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xre=dl(["#text"]),Sre=dl(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),WO=dl(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ere=dl(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$x=dl(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Idt=Yu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Odt=Yu(/<%[\w\W]*|[\w\W]*%>/gm),Mdt=Yu(/\$\{[\w\W]*/gm),Pdt=Yu(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ndt=Yu(/^aria-[\-\w]+$/),e3e=Yu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rdt=Yu(/^(?:\w+script|data):/i),Bdt=Yu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t3e=Yu(/^html$/i),Ldt=Yu(/^[a-z][.\w]*(-[.\w]+)+$/i);var kre=Object.freeze({__proto__:null,ARIA_ATTR:Ndt,ATTR_WHITESPACE:Bdt,CUSTOM_ELEMENT:Ldt,DATA_ATTR:Pdt,DOCTYPE_NAME:t3e,ERB_EXPR:Odt,IS_ALLOWED_URI:e3e,IS_SCRIPT_OR_DATA:Rdt,MUSTACHE_EXPR:Idt,TMPLIT_EXPR:Mdt});const q2={element:1,text:3,progressingInstruction:7,comment:8,document:9},Fdt=function(){return typeof window>"u"?null:window},Udt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Tre=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function n3e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fdt();const t=dn=>n3e(dn);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==q2.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:f,trustedTypes:p}=e,v=l.prototype,h=V2(v,"cloneNode"),g=V2(v,"remove"),y=V2(v,"nextSibling"),m=V2(v,"childNodes"),b=V2(v,"parentNode");if(typeof a=="function"){const dn=n.createElement("template");dn.content&&dn.content.ownerDocument&&(n=dn.content.ownerDocument)}let w,A="";const{implementation:S,createNodeIterator:k,createDocumentFragment:M,getElementsByTagName:D}=n,{importNode:P}=r;let O=Tre();t.isSupported=typeof J4e=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:B,TMPLIT_EXPR:N,DATA_ATTR:q,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:G}=kre;let{IS_ALLOWED_URI:Z}=kre,$=null;const L=No({},[...Cre,...zO,...jO,...HO,...xre]);let W=null;const ie=No({},[...Sre,...WO,...Ere,...$x]);let ee=Object.seal(xF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,X=null;const ue=Object.seal(xF(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,Me=!0,we=!1,he=!0,Te=!1,Y=!0,be=!1,De=!1,pe=!1,oe=!1,ce=!1,Re=!1,Ee=!0,Le=!1;const Fe="user-content-";let Pe=!0,Ne=!1,pt={},Rt=null;const Bt=No({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let en=null;const Wt=No({},["audio","video","img","source","image","track"]);let Ut=null;const ct=No({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_t="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let Ae=Ot,je=!1,at=null;const gt=No({},[_t,st,Ot],UO);let nn=No({},["mi","mo","mn","ms","mtext"]),Tn=No({},["annotation-xml"]);const He=No({},["title","style","font","a","script"]);let ke=null;const me=["application/xhtml+xml","text/html"],Be="text/html";let rt=null,ht=null;const rn=n.createElement("form"),Ye=function(Ke){return Ke instanceof RegExp||Ke instanceof Function},Je=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ht&&ht===Ke)){if((!Ke||typeof Ke!="object")&&(Ke={}),Ke=mf(Ke),ke=me.indexOf(Ke.PARSER_MEDIA_TYPE)===-1?Be:Ke.PARSER_MEDIA_TYPE,rt=ke==="application/xhtml+xml"?UO:l8,$=fc(Ke,"ALLOWED_TAGS")?No({},Ke.ALLOWED_TAGS,rt):L,W=fc(Ke,"ALLOWED_ATTR")?No({},Ke.ALLOWED_ATTR,rt):ie,at=fc(Ke,"ALLOWED_NAMESPACES")?No({},Ke.ALLOWED_NAMESPACES,UO):gt,Ut=fc(Ke,"ADD_URI_SAFE_ATTR")?No(mf(ct),Ke.ADD_URI_SAFE_ATTR,rt):ct,en=fc(Ke,"ADD_DATA_URI_TAGS")?No(mf(Wt),Ke.ADD_DATA_URI_TAGS,rt):Wt,Rt=fc(Ke,"FORBID_CONTENTS")?No({},Ke.FORBID_CONTENTS,rt):Bt,te=fc(Ke,"FORBID_TAGS")?No({},Ke.FORBID_TAGS,rt):mf({}),X=fc(Ke,"FORBID_ATTR")?No({},Ke.FORBID_ATTR,rt):mf({}),pt=fc(Ke,"USE_PROFILES")?Ke.USE_PROFILES:!1,ve=Ke.ALLOW_ARIA_ATTR!==!1,Me=Ke.ALLOW_DATA_ATTR!==!1,we=Ke.ALLOW_UNKNOWN_PROTOCOLS||!1,he=Ke.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=Ke.SAFE_FOR_TEMPLATES||!1,Y=Ke.SAFE_FOR_XML!==!1,be=Ke.WHOLE_DOCUMENT||!1,oe=Ke.RETURN_DOM||!1,ce=Ke.RETURN_DOM_FRAGMENT||!1,Re=Ke.RETURN_TRUSTED_TYPE||!1,pe=Ke.FORCE_BODY||!1,Ee=Ke.SANITIZE_DOM!==!1,Le=Ke.SANITIZE_NAMED_PROPS||!1,Pe=Ke.KEEP_CONTENT!==!1,Ne=Ke.IN_PLACE||!1,Z=Ke.ALLOWED_URI_REGEXP||e3e,Ae=Ke.NAMESPACE||Ot,nn=Ke.MATHML_TEXT_INTEGRATION_POINTS||nn,Tn=Ke.HTML_INTEGRATION_POINTS||Tn,ee=Ke.CUSTOM_ELEMENT_HANDLING||{},Ke.CUSTOM_ELEMENT_HANDLING&&Ye(Ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=Ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ke.CUSTOM_ELEMENT_HANDLING&&Ye(Ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=Ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ke.CUSTOM_ELEMENT_HANDLING&&typeof Ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=Ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(Me=!1),ce&&(oe=!0),pt&&($=No({},xre),W=[],pt.html===!0&&(No($,Cre),No(W,Sre)),pt.svg===!0&&(No($,zO),No(W,WO),No(W,$x)),pt.svgFilters===!0&&(No($,jO),No(W,WO),No(W,$x)),pt.mathMl===!0&&(No($,HO),No(W,Ere),No(W,$x))),Ke.ADD_TAGS&&(typeof Ke.ADD_TAGS=="function"?ue.tagCheck=Ke.ADD_TAGS:($===L&&($=mf($)),No($,Ke.ADD_TAGS,rt))),Ke.ADD_ATTR&&(typeof Ke.ADD_ATTR=="function"?ue.attributeCheck=Ke.ADD_ATTR:(W===ie&&(W=mf(W)),No(W,Ke.ADD_ATTR,rt))),Ke.ADD_URI_SAFE_ATTR&&No(Ut,Ke.ADD_URI_SAFE_ATTR,rt),Ke.FORBID_CONTENTS&&(Rt===Bt&&(Rt=mf(Rt)),No(Rt,Ke.FORBID_CONTENTS,rt)),Pe&&($["#text"]=!0),be&&No($,["html","head","body"]),$.table&&(No($,["tbody"]),delete te.tbody),Ke.TRUSTED_TYPES_POLICY){if(typeof Ke.TRUSTED_TYPES_POLICY.createHTML!="function")throw W2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ke.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw W2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=Ke.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=Udt(p,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));dl&&dl(Ke),ht=Ke}},lt=No({},[...zO,...jO,..._dt]),Ue=No({},[...HO,...Ddt]),ze=function(Ke){let bt=b(Ke);(!bt||!bt.tagName)&&(bt={namespaceURI:Ae,tagName:"template"});const Yt=l8(Ke.tagName),wt=l8(bt.tagName);return at[Ke.namespaceURI]?Ke.namespaceURI===st?bt.namespaceURI===Ot?Yt==="svg":bt.namespaceURI===_t?Yt==="svg"&&(wt==="annotation-xml"||nn[wt]):!!lt[Yt]:Ke.namespaceURI===_t?bt.namespaceURI===Ot?Yt==="math":bt.namespaceURI===st?Yt==="math"&&Tn[wt]:!!Ue[Yt]:Ke.namespaceURI===Ot?bt.namespaceURI===st&&!Tn[wt]||bt.namespaceURI===_t&&!nn[wt]?!1:!Ue[Yt]&&(He[Yt]||!lt[Yt]):!!(ke==="application/xhtml+xml"&&at[Ke.namespaceURI]):!1},ut=function(Ke){j2(t.removed,{element:Ke});try{b(Ke).removeChild(Ke)}catch{g(Ke)}},yt=function(Ke,bt){try{j2(t.removed,{attribute:bt.getAttributeNode(Ke),from:bt})}catch{j2(t.removed,{attribute:null,from:bt})}if(bt.removeAttribute(Ke),Ke==="is")if(oe||ce)try{ut(bt)}catch{}else try{bt.setAttribute(Ke,"")}catch{}},jt=function(Ke){let bt=null,Yt=null;if(pe)Ke="<remove></remove>"+Ke;else{const An=$O(Ke,/^[\r\n\t ]+/);Yt=An&&An[0]}ke==="application/xhtml+xml"&&Ae===Ot&&(Ke='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ke+"</body></html>");const wt=w?w.createHTML(Ke):Ke;if(Ae===Ot)try{bt=new f().parseFromString(wt,ke)}catch{}if(!bt||!bt.documentElement){bt=S.createDocument(Ae,"template",null);try{bt.documentElement.innerHTML=je?A:wt}catch{}}const Gt=bt.body||bt.documentElement;return Ke&&Yt&&Gt.insertBefore(n.createTextNode(Yt),Gt.childNodes[0]||null),Ae===Ot?D.call(bt,be?"html":"body")[0]:be?bt.documentElement:Gt},mn=function(Ke){return k.call(Ke.ownerDocument||Ke,Ke,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nn=function(Ke){return Ke instanceof c&&(typeof Ke.nodeName!="string"||typeof Ke.textContent!="string"||typeof Ke.removeChild!="function"||!(Ke.attributes instanceof d)||typeof Ke.removeAttribute!="function"||typeof Ke.setAttribute!="function"||typeof Ke.namespaceURI!="string"||typeof Ke.insertBefore!="function"||typeof Ke.hasChildNodes!="function")},xt=function(Ke){return typeof s=="function"&&Ke instanceof s};function sn(dn,Ke,bt){Ux(dn,Yt=>{Yt.call(t,Ke,bt,ht)})}const vt=function(Ke){let bt=null;if(sn(O.beforeSanitizeElements,Ke,null),Nn(Ke))return ut(Ke),!0;const Yt=rt(Ke.nodeName);if(sn(O.uponSanitizeElement,Ke,{tagName:Yt,allowedTags:$}),Y&&Ke.hasChildNodes()&&!xt(Ke.firstElementChild)&&Ys(/<[/\w!]/g,Ke.innerHTML)&&Ys(/<[/\w!]/g,Ke.textContent)||Ke.nodeType===q2.progressingInstruction||Y&&Ke.nodeType===q2.comment&&Ys(/<[/\w]/g,Ke.data))return ut(Ke),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(Yt))&&(!$[Yt]||te[Yt])){if(!te[Yt]&&bn(Yt)&&(ee.tagNameCheck instanceof RegExp&&Ys(ee.tagNameCheck,Yt)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(Yt)))return!1;if(Pe&&!Rt[Yt]){const wt=b(Ke)||Ke.parentNode,Gt=m(Ke)||Ke.childNodes;if(Gt&&wt){const An=Gt.length;for(let Rn=An-1;Rn>=0;--Rn){const Kn=h(Gt[Rn],!0);Kn.__removalCount=(Ke.__removalCount||0)+1,wt.insertBefore(Kn,y(Ke))}}}return ut(Ke),!0}return Ke instanceof l&&!ze(Ke)||(Yt==="noscript"||Yt==="noembed"||Yt==="noframes")&&Ys(/<\/no(script|embed|frames)/i,Ke.innerHTML)?(ut(Ke),!0):(Te&&Ke.nodeType===q2.text&&(bt=Ke.textContent,Ux([_,B,N],wt=>{bt=H2(bt,wt," ")}),Ke.textContent!==bt&&(j2(t.removed,{element:Ke.cloneNode()}),Ke.textContent=bt)),sn(O.afterSanitizeElements,Ke,null),!1)},Nt=function(Ke,bt,Yt){if(Ee&&(bt==="id"||bt==="name")&&(Yt in n||Yt in rn))return!1;if(!(Me&&!X[bt]&&Ys(q,bt))){if(!(ve&&Ys(U,bt))){if(!(ue.attributeCheck instanceof Function&&ue.attributeCheck(bt,Ke))){if(!W[bt]||X[bt]){if(!(bn(Ke)&&(ee.tagNameCheck instanceof RegExp&&Ys(ee.tagNameCheck,Ke)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(Ke))&&(ee.attributeNameCheck instanceof RegExp&&Ys(ee.attributeNameCheck,bt)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(bt,Ke))||bt==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&Ys(ee.tagNameCheck,Yt)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(Yt))))return!1}else if(!Ut[bt]){if(!Ys(Z,H2(Yt,H,""))){if(!((bt==="src"||bt==="xlink:href"||bt==="href")&&Ke!=="script"&&Sdt(Yt,"data:")===0&&en[Ke])){if(!(we&&!Ys(j,H2(Yt,H,"")))){if(Yt)return!1}}}}}}}return!0},bn=function(Ke){return Ke!=="annotation-xml"&&$O(Ke,G)},Mn=function(Ke){sn(O.beforeSanitizeAttributes,Ke,null);const{attributes:bt}=Ke;if(!bt||Nn(Ke))return;const Yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let wt=bt.length;for(;wt--;){const Gt=bt[wt],{name:An,namespaceURI:Rn,value:Kn}=Gt,Fr=rt(An),ho=Kn;let Wr=An==="value"?ho:Edt(ho);if(Yt.attrName=Fr,Yt.attrValue=Wr,Yt.keepAttr=!0,Yt.forceKeepAttr=void 0,sn(O.uponSanitizeAttribute,Ke,Yt),Wr=Yt.attrValue,Le&&(Fr==="id"||Fr==="name")&&(yt(An,Ke),Wr=Fe+Wr),Y&&Ys(/((--!?|])>)|<\/(style|title|textarea)/i,Wr)){yt(An,Ke);continue}if(Fr==="attributename"&&$O(Wr,"href")){yt(An,Ke);continue}if(Yt.forceKeepAttr)continue;if(!Yt.keepAttr){yt(An,Ke);continue}if(!he&&Ys(/\/>/i,Wr)){yt(An,Ke);continue}Te&&Ux([_,B,N],Bo=>{Wr=H2(Wr,Bo," ")});const bo=rt(Ke.nodeName);if(!Nt(bo,Fr,Wr)){yt(An,Ke);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Rn)switch(p.getAttributeType(bo,Fr)){case"TrustedHTML":{Wr=w.createHTML(Wr);break}case"TrustedScriptURL":{Wr=w.createScriptURL(Wr);break}}if(Wr!==ho)try{Rn?Ke.setAttributeNS(Rn,An,Wr):Ke.setAttribute(An,Wr),Nn(Ke)?ut(Ke):Are(t.removed)}catch{yt(An,Ke)}}sn(O.afterSanitizeAttributes,Ke,null)},tr=function dn(Ke){let bt=null;const Yt=mn(Ke);for(sn(O.beforeSanitizeShadowDOM,Ke,null);bt=Yt.nextNode();)sn(O.uponSanitizeShadowNode,bt,null),vt(bt),Mn(bt),bt.content instanceof i&&dn(bt.content);sn(O.afterSanitizeShadowDOM,Ke,null)};return t.sanitize=function(dn){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bt=null,Yt=null,wt=null,Gt=null;if(je=!dn,je&&(dn="<!-->"),typeof dn!="string"&&!xt(dn))if(typeof dn.toString=="function"){if(dn=dn.toString(),typeof dn!="string")throw W2("dirty is not a string, aborting")}else throw W2("toString is not a function");if(!t.isSupported)return dn;if(De||Je(Ke),t.removed=[],typeof dn=="string"&&(Ne=!1),Ne){if(dn.nodeName){const Kn=rt(dn.nodeName);if(!$[Kn]||te[Kn])throw W2("root node is forbidden and cannot be sanitized in-place")}}else if(dn instanceof s)bt=jt("<!---->"),Yt=bt.ownerDocument.importNode(dn,!0),Yt.nodeType===q2.element&&Yt.nodeName==="BODY"||Yt.nodeName==="HTML"?bt=Yt:bt.appendChild(Yt);else{if(!oe&&!Te&&!be&&dn.indexOf("<")===-1)return w&&Re?w.createHTML(dn):dn;if(bt=jt(dn),!bt)return oe?null:Re?A:""}bt&&pe&&ut(bt.firstChild);const An=mn(Ne?dn:bt);for(;wt=An.nextNode();)vt(wt),Mn(wt),wt.content instanceof i&&tr(wt.content);if(Ne)return dn;if(oe){if(ce)for(Gt=M.call(bt.ownerDocument);bt.firstChild;)Gt.appendChild(bt.firstChild);else Gt=bt;return(W.shadowroot||W.shadowrootmode)&&(Gt=P.call(r,Gt,!0)),Gt}let Rn=be?bt.outerHTML:bt.innerHTML;return be&&$["!doctype"]&&bt.ownerDocument&&bt.ownerDocument.doctype&&bt.ownerDocument.doctype.name&&Ys(t3e,bt.ownerDocument.doctype.name)&&(Rn="<!DOCTYPE "+bt.ownerDocument.doctype.name+`>
- `+Rn),Te&&Ux([_,B,N],Kn=>{Rn=H2(Rn,Kn," ")}),w&&Re?w.createHTML(Rn):Rn},t.setConfig=function(){let dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Je(dn),De=!0},t.clearConfig=function(){ht=null,De=!1},t.isValidAttribute=function(dn,Ke,bt){ht||Je({});const Yt=rt(dn),wt=rt(Ke);return Nt(Yt,wt,bt)},t.addHook=function(dn,Ke){typeof Ke=="function"&&j2(O[dn],Ke)},t.removeHook=function(dn,Ke){if(Ke!==void 0){const bt=Cdt(O[dn],Ke);return bt===-1?void 0:xdt(O[dn],bt,1)[0]}return Are(O[dn])},t.removeHooks=function(dn){O[dn]=[]},t.removeAllHooks=function(){O=Tre()},t}var $dt=n3e();class Al{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Al(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class au{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new au(n,Al.range(this,t))}}class Hn{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,o,i,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;o=a.start,i=a.end,o===s.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var l=s.slice(o,i).replace(/[^]/g,"$&̲"),u;o>15?u="…"+s.slice(o-15,o):u=s.slice(0,o);var d;i+15<s.length?d=s.slice(i,i+15)+"…":d=s.slice(i),r+=u+l+d}var c=new Error(r);return c.name="ParseError",c.__proto__=Hn.prototype,c.position=o,o!=null&&i!=null&&(c.length=i-o),c.rawMessage=t,c}}Hn.prototype.__proto__=Error.prototype;var zdt=function(t,n){return t===void 0?n:t},jdt=/([A-Z])/g,Hdt=function(t){return t.replace(jdt,"-$1").toLowerCase()},Wdt={"&":"&",">":">","<":"<",'"':""","'":"'"},Vdt=/[&><"']/g;function qdt(e){return String(e).replace(Vdt,t=>Wdt[t])}var r3e=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Gdt=function(t){var n=r3e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Kdt=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Qdt=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Jo={deflt:zdt,escape:qdt,hyphenate:Hdt,getBaseElem:r3e,isCharacterBox:Gdt,protocolFromUrl:Qdt},u8={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Ydt(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class qV{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in u8)if(u8.hasOwnProperty(n)){var r=u8[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Ydt(r)}}reportNonstrict(t,n,r){var o=this.strict;if(typeof o=="function"&&(o=o(t,n,r)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new Hn("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var o=this.strict;if(typeof o=="function")try{o=o(t,n,r)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Jo.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Pp{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return fd[Zdt[this.id]]}sub(){return fd[Xdt[this.id]]}fracNum(){return fd[Jdt[this.id]]}fracDen(){return fd[eft[this.id]]}cramp(){return fd[tft[this.id]]}text(){return fd[nft[this.id]]}isTight(){return this.size>=2}}var GV=0,WE=1,iy=2,Ff=3,pA=4,Bu=5,Hy=6,il=7,fd=[new Pp(GV,0,!1),new Pp(WE,0,!0),new Pp(iy,1,!1),new Pp(Ff,1,!0),new Pp(pA,2,!1),new Pp(Bu,2,!0),new Pp(Hy,3,!1),new Pp(il,3,!0)],Zdt=[pA,Bu,pA,Bu,Hy,il,Hy,il],Xdt=[Bu,Bu,Bu,Bu,il,il,il,il],Jdt=[iy,Ff,pA,Bu,Hy,il,Hy,il],eft=[Ff,Ff,Bu,Bu,il,il,il,il],tft=[WE,WE,Ff,Ff,Bu,Bu,il,il],nft=[GV,WE,iy,Ff,iy,Ff,iy,Ff],Gr={DISPLAY:fd[GV],TEXT:fd[iy],SCRIPT:fd[pA],SCRIPTSCRIPT:fd[Hy]},kF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function rft(e){for(var t=0;t<kF.length;t++)for(var n=kF[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}var c8=[];kF.forEach(e=>e.blocks.forEach(t=>c8.push(...t)));function o3e(e){for(var t=0;t<c8.length;t+=2)if(e>=c8[t]&&e<=c8[t+1])return!0;return!1}var Um=80,oft=function(t,n){return"M95,"+(622+t+n)+`
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
- c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
- c69,-144,104.5,-217.7,106.5,-221
- l`+t/2.075+" -"+t+`
- c5.3,-9.3,12,-14,20,-14
- H400000v`+(40+t)+`H845.2724
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
- M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},ift=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
- c340,-704.7,510.7,-1060.3,512,-1067
- l`+t/2.084+" -"+t+`
- c4.7,-7.3,11,-11,19,-11
- H40000v`+(40+t)+`H1012.3
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
- c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
- M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},aft=function(t,n){return"M983 "+(10+t+n)+`
- l`+t/3.13+" -"+t+`
- c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
- H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
- M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},sft=function(t,n){return"M424,"+(2398+t+n)+`
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
- c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
- l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
- v`+(40+t)+`H1014.6
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
- c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
- h400000v`+(40+t)+"h-400000z"},lft=function(t,n){return"M473,"+(2713+t+n)+`
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
- c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
- 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},uft=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},cft=function(t,n,r){var o=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
- H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
- 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},dft=function(t,n,r){n=1e3*n;var o="";switch(t){case"sqrtMain":o=oft(n,Um);break;case"sqrtSize1":o=ift(n,Um);break;case"sqrtSize2":o=aft(n,Um);break;case"sqrtSize3":o=sft(n,Um);break;case"sqrtSize4":o=lft(n,Um);break;case"sqrtTall":o=cft(n,Um,r)}return o},fft=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},_re={doubleleftarrow:`M262 157
- l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
- 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
- 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
- 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
- 435 0h399565z`,leftgroupunder:`M400000 262
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
- M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},pft=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
- H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
- M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
- M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
- MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
- MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
- M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
- M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
- -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
- l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
- c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
- l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class qC{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Ad={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},zx={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dre={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function hft(e,t){Ad[e]=t}function KV(e,t,n){if(!Ad[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=Ad[t][r];if(!o&&e[0]in Dre&&(r=Dre[e[0]].charCodeAt(0),o=Ad[t][r]),!o&&n==="text"&&o3e(r)&&(o=Ad[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var VO={};function gft(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!VO[t]){var n=VO[t]={cssEmPerMu:zx.quad[t]/18};for(var r in zx)zx.hasOwnProperty(r)&&(n[r]=zx[r][t])}return VO[t]}var vft=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ire=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ore=function(t,n){return n.size<2?t:vft[t-1][n.size-1]};class Af{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Af.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ire[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Af(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ore(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ire[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ore(Af.BASESIZE,t);return this.size===n&&this.textSize===Af.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Af.BASESIZE?["sizing","reset-size"+this.size,"size"+Af.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=gft(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Af.BASESIZE=6;var TF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},mft={ex:!0,em:!0,mu:!0},i3e=function(t){return typeof t!="string"&&(t=t.unit),t in TF||t in mft||t==="ex"},sa=function(t,n){var r;if(t.unit in TF)r=TF[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,t.unit==="ex")r=o.fontMetrics().xHeight;else if(t.unit==="em")r=o.fontMetrics().quad;else throw new Hn("Invalid unit: '"+t.unit+"'");o!==n&&(r*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Xn=function(t){return+t.toFixed(4)+"em"},d0=function(t){return t.filter(n=>n).join(" ")},a3e=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},s3e=function(t){var n=document.createElement(t);n.className=d0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&n.setAttribute(o,this.attributes[o]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n},yft=/[\s"'>/=\x00-\x1f]/,l3e=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Jo.escape(d0(this.classes))+'"');var r="";for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=Jo.hyphenate(o)+":"+this.style[o]+";");r&&(n+=' style="'+Jo.escape(r)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(yft.test(i))throw new Hn("Invalid attribute name '"+i+"'");n+=" "+i+'="'+Jo.escape(this.attributes[i])+'"'}n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+="</"+t+">",n};class GC{constructor(t,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,a3e.call(this,t,r,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s3e.call(this,"span")}toMarkup(){return l3e.call(this,"span")}}class QV{constructor(t,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,a3e.call(this,n,o),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s3e.call(this,"a")}toMarkup(){return l3e.call(this,"a")}}class bft{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+Jo.escape(this.src)+'"'+(' alt="'+Jo.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Jo.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+Jo.escape(n)+'"'),t+="'/>",t}}var wft={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Zu{constructor(t,n,r,o,i,a,s,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=o||0,this.skew=i||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=rft(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=wft[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Xn(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=d0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Jo.escape(d0(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=Jo.hyphenate(o)+":"+this.style[o]+";");r&&(t=!0,n+=' style="'+Jo.escape(r)+'"');var i=Jo.escape(this.text);return t?(n+=">",n+=i,n+="</span>",n):i}}class np{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Jo.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class f0{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",_re[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Jo.escape(this.alternate)+'"/>':'<path d="'+Jo.escape(_re[this.pathName])+'"/>'}}class _F{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Jo.escape(this.attributes[n])+'"');return t+="/>",t}}function Mre(e){if(e instanceof Zu)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Aft(e){if(e instanceof GC)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Cft={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xft={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Li={math:{},text:{}};function ge(e,t,n,r,o,i){Li[e][o]={font:t,group:n,replace:r},i&&r&&(Li[e][r]=Li[e][o])}var _e="math",Un="text",et="main",kt="ams",ea="accent-token",mr="bin",gl="close",Hb="inner",qr="mathord",Va="op-token",bu="open",HD="punct",Dt="rel",mp="spacing",$t="textord";ge(_e,et,Dt,"≡","\\equiv",!0);ge(_e,et,Dt,"≺","\\prec",!0);ge(_e,et,Dt,"≻","\\succ",!0);ge(_e,et,Dt,"∼","\\sim",!0);ge(_e,et,Dt,"⊥","\\perp");ge(_e,et,Dt,"⪯","\\preceq",!0);ge(_e,et,Dt,"⪰","\\succeq",!0);ge(_e,et,Dt,"≃","\\simeq",!0);ge(_e,et,Dt,"∣","\\mid",!0);ge(_e,et,Dt,"≪","\\ll",!0);ge(_e,et,Dt,"≫","\\gg",!0);ge(_e,et,Dt,"≍","\\asymp",!0);ge(_e,et,Dt,"∥","\\parallel");ge(_e,et,Dt,"⋈","\\bowtie",!0);ge(_e,et,Dt,"⌣","\\smile",!0);ge(_e,et,Dt,"⊑","\\sqsubseteq",!0);ge(_e,et,Dt,"⊒","\\sqsupseteq",!0);ge(_e,et,Dt,"≐","\\doteq",!0);ge(_e,et,Dt,"⌢","\\frown",!0);ge(_e,et,Dt,"∋","\\ni",!0);ge(_e,et,Dt,"∝","\\propto",!0);ge(_e,et,Dt,"⊢","\\vdash",!0);ge(_e,et,Dt,"⊣","\\dashv",!0);ge(_e,et,Dt,"∋","\\owns");ge(_e,et,HD,".","\\ldotp");ge(_e,et,HD,"⋅","\\cdotp");ge(_e,et,$t,"#","\\#");ge(Un,et,$t,"#","\\#");ge(_e,et,$t,"&","\\&");ge(Un,et,$t,"&","\\&");ge(_e,et,$t,"ℵ","\\aleph",!0);ge(_e,et,$t,"∀","\\forall",!0);ge(_e,et,$t,"ℏ","\\hbar",!0);ge(_e,et,$t,"∃","\\exists",!0);ge(_e,et,$t,"∇","\\nabla",!0);ge(_e,et,$t,"♭","\\flat",!0);ge(_e,et,$t,"ℓ","\\ell",!0);ge(_e,et,$t,"♮","\\natural",!0);ge(_e,et,$t,"♣","\\clubsuit",!0);ge(_e,et,$t,"℘","\\wp",!0);ge(_e,et,$t,"♯","\\sharp",!0);ge(_e,et,$t,"♢","\\diamondsuit",!0);ge(_e,et,$t,"ℜ","\\Re",!0);ge(_e,et,$t,"♡","\\heartsuit",!0);ge(_e,et,$t,"ℑ","\\Im",!0);ge(_e,et,$t,"♠","\\spadesuit",!0);ge(_e,et,$t,"§","\\S",!0);ge(Un,et,$t,"§","\\S");ge(_e,et,$t,"¶","\\P",!0);ge(Un,et,$t,"¶","\\P");ge(_e,et,$t,"†","\\dag");ge(Un,et,$t,"†","\\dag");ge(Un,et,$t,"†","\\textdagger");ge(_e,et,$t,"‡","\\ddag");ge(Un,et,$t,"‡","\\ddag");ge(Un,et,$t,"‡","\\textdaggerdbl");ge(_e,et,gl,"⎱","\\rmoustache",!0);ge(_e,et,bu,"⎰","\\lmoustache",!0);ge(_e,et,gl,"⟯","\\rgroup",!0);ge(_e,et,bu,"⟮","\\lgroup",!0);ge(_e,et,mr,"∓","\\mp",!0);ge(_e,et,mr,"⊖","\\ominus",!0);ge(_e,et,mr,"⊎","\\uplus",!0);ge(_e,et,mr,"⊓","\\sqcap",!0);ge(_e,et,mr,"∗","\\ast");ge(_e,et,mr,"⊔","\\sqcup",!0);ge(_e,et,mr,"◯","\\bigcirc",!0);ge(_e,et,mr,"∙","\\bullet",!0);ge(_e,et,mr,"‡","\\ddagger");ge(_e,et,mr,"≀","\\wr",!0);ge(_e,et,mr,"⨿","\\amalg");ge(_e,et,mr,"&","\\And");ge(_e,et,Dt,"⟵","\\longleftarrow",!0);ge(_e,et,Dt,"⇐","\\Leftarrow",!0);ge(_e,et,Dt,"⟸","\\Longleftarrow",!0);ge(_e,et,Dt,"⟶","\\longrightarrow",!0);ge(_e,et,Dt,"⇒","\\Rightarrow",!0);ge(_e,et,Dt,"⟹","\\Longrightarrow",!0);ge(_e,et,Dt,"↔","\\leftrightarrow",!0);ge(_e,et,Dt,"⟷","\\longleftrightarrow",!0);ge(_e,et,Dt,"⇔","\\Leftrightarrow",!0);ge(_e,et,Dt,"⟺","\\Longleftrightarrow",!0);ge(_e,et,Dt,"↦","\\mapsto",!0);ge(_e,et,Dt,"⟼","\\longmapsto",!0);ge(_e,et,Dt,"↗","\\nearrow",!0);ge(_e,et,Dt,"↩","\\hookleftarrow",!0);ge(_e,et,Dt,"↪","\\hookrightarrow",!0);ge(_e,et,Dt,"↘","\\searrow",!0);ge(_e,et,Dt,"↼","\\leftharpoonup",!0);ge(_e,et,Dt,"⇀","\\rightharpoonup",!0);ge(_e,et,Dt,"↙","\\swarrow",!0);ge(_e,et,Dt,"↽","\\leftharpoondown",!0);ge(_e,et,Dt,"⇁","\\rightharpoondown",!0);ge(_e,et,Dt,"↖","\\nwarrow",!0);ge(_e,et,Dt,"⇌","\\rightleftharpoons",!0);ge(_e,kt,Dt,"≮","\\nless",!0);ge(_e,kt,Dt,"","\\@nleqslant");ge(_e,kt,Dt,"","\\@nleqq");ge(_e,kt,Dt,"⪇","\\lneq",!0);ge(_e,kt,Dt,"≨","\\lneqq",!0);ge(_e,kt,Dt,"","\\@lvertneqq");ge(_e,kt,Dt,"⋦","\\lnsim",!0);ge(_e,kt,Dt,"⪉","\\lnapprox",!0);ge(_e,kt,Dt,"⊀","\\nprec",!0);ge(_e,kt,Dt,"⋠","\\npreceq",!0);ge(_e,kt,Dt,"⋨","\\precnsim",!0);ge(_e,kt,Dt,"⪹","\\precnapprox",!0);ge(_e,kt,Dt,"≁","\\nsim",!0);ge(_e,kt,Dt,"","\\@nshortmid");ge(_e,kt,Dt,"∤","\\nmid",!0);ge(_e,kt,Dt,"⊬","\\nvdash",!0);ge(_e,kt,Dt,"⊭","\\nvDash",!0);ge(_e,kt,Dt,"⋪","\\ntriangleleft");ge(_e,kt,Dt,"⋬","\\ntrianglelefteq",!0);ge(_e,kt,Dt,"⊊","\\subsetneq",!0);ge(_e,kt,Dt,"","\\@varsubsetneq");ge(_e,kt,Dt,"⫋","\\subsetneqq",!0);ge(_e,kt,Dt,"","\\@varsubsetneqq");ge(_e,kt,Dt,"≯","\\ngtr",!0);ge(_e,kt,Dt,"","\\@ngeqslant");ge(_e,kt,Dt,"","\\@ngeqq");ge(_e,kt,Dt,"⪈","\\gneq",!0);ge(_e,kt,Dt,"≩","\\gneqq",!0);ge(_e,kt,Dt,"","\\@gvertneqq");ge(_e,kt,Dt,"⋧","\\gnsim",!0);ge(_e,kt,Dt,"⪊","\\gnapprox",!0);ge(_e,kt,Dt,"⊁","\\nsucc",!0);ge(_e,kt,Dt,"⋡","\\nsucceq",!0);ge(_e,kt,Dt,"⋩","\\succnsim",!0);ge(_e,kt,Dt,"⪺","\\succnapprox",!0);ge(_e,kt,Dt,"≆","\\ncong",!0);ge(_e,kt,Dt,"","\\@nshortparallel");ge(_e,kt,Dt,"∦","\\nparallel",!0);ge(_e,kt,Dt,"⊯","\\nVDash",!0);ge(_e,kt,Dt,"⋫","\\ntriangleright");ge(_e,kt,Dt,"⋭","\\ntrianglerighteq",!0);ge(_e,kt,Dt,"","\\@nsupseteqq");ge(_e,kt,Dt,"⊋","\\supsetneq",!0);ge(_e,kt,Dt,"","\\@varsupsetneq");ge(_e,kt,Dt,"⫌","\\supsetneqq",!0);ge(_e,kt,Dt,"","\\@varsupsetneqq");ge(_e,kt,Dt,"⊮","\\nVdash",!0);ge(_e,kt,Dt,"⪵","\\precneqq",!0);ge(_e,kt,Dt,"⪶","\\succneqq",!0);ge(_e,kt,Dt,"","\\@nsubseteqq");ge(_e,kt,mr,"⊴","\\unlhd");ge(_e,kt,mr,"⊵","\\unrhd");ge(_e,kt,Dt,"↚","\\nleftarrow",!0);ge(_e,kt,Dt,"↛","\\nrightarrow",!0);ge(_e,kt,Dt,"⇍","\\nLeftarrow",!0);ge(_e,kt,Dt,"⇏","\\nRightarrow",!0);ge(_e,kt,Dt,"↮","\\nleftrightarrow",!0);ge(_e,kt,Dt,"⇎","\\nLeftrightarrow",!0);ge(_e,kt,Dt,"△","\\vartriangle");ge(_e,kt,$t,"ℏ","\\hslash");ge(_e,kt,$t,"▽","\\triangledown");ge(_e,kt,$t,"◊","\\lozenge");ge(_e,kt,$t,"Ⓢ","\\circledS");ge(_e,kt,$t,"®","\\circledR");ge(Un,kt,$t,"®","\\circledR");ge(_e,kt,$t,"∡","\\measuredangle",!0);ge(_e,kt,$t,"∄","\\nexists");ge(_e,kt,$t,"℧","\\mho");ge(_e,kt,$t,"Ⅎ","\\Finv",!0);ge(_e,kt,$t,"⅁","\\Game",!0);ge(_e,kt,$t,"‵","\\backprime");ge(_e,kt,$t,"▲","\\blacktriangle");ge(_e,kt,$t,"▼","\\blacktriangledown");ge(_e,kt,$t,"■","\\blacksquare");ge(_e,kt,$t,"⧫","\\blacklozenge");ge(_e,kt,$t,"★","\\bigstar");ge(_e,kt,$t,"∢","\\sphericalangle",!0);ge(_e,kt,$t,"∁","\\complement",!0);ge(_e,kt,$t,"ð","\\eth",!0);ge(Un,et,$t,"ð","ð");ge(_e,kt,$t,"╱","\\diagup");ge(_e,kt,$t,"╲","\\diagdown");ge(_e,kt,$t,"□","\\square");ge(_e,kt,$t,"□","\\Box");ge(_e,kt,$t,"◊","\\Diamond");ge(_e,kt,$t,"¥","\\yen",!0);ge(Un,kt,$t,"¥","\\yen",!0);ge(_e,kt,$t,"✓","\\checkmark",!0);ge(Un,kt,$t,"✓","\\checkmark");ge(_e,kt,$t,"ℶ","\\beth",!0);ge(_e,kt,$t,"ℸ","\\daleth",!0);ge(_e,kt,$t,"ℷ","\\gimel",!0);ge(_e,kt,$t,"ϝ","\\digamma",!0);ge(_e,kt,$t,"ϰ","\\varkappa");ge(_e,kt,bu,"┌","\\@ulcorner",!0);ge(_e,kt,gl,"┐","\\@urcorner",!0);ge(_e,kt,bu,"└","\\@llcorner",!0);ge(_e,kt,gl,"┘","\\@lrcorner",!0);ge(_e,kt,Dt,"≦","\\leqq",!0);ge(_e,kt,Dt,"⩽","\\leqslant",!0);ge(_e,kt,Dt,"⪕","\\eqslantless",!0);ge(_e,kt,Dt,"≲","\\lesssim",!0);ge(_e,kt,Dt,"⪅","\\lessapprox",!0);ge(_e,kt,Dt,"≊","\\approxeq",!0);ge(_e,kt,mr,"⋖","\\lessdot");ge(_e,kt,Dt,"⋘","\\lll",!0);ge(_e,kt,Dt,"≶","\\lessgtr",!0);ge(_e,kt,Dt,"⋚","\\lesseqgtr",!0);ge(_e,kt,Dt,"⪋","\\lesseqqgtr",!0);ge(_e,kt,Dt,"≑","\\doteqdot");ge(_e,kt,Dt,"≓","\\risingdotseq",!0);ge(_e,kt,Dt,"≒","\\fallingdotseq",!0);ge(_e,kt,Dt,"∽","\\backsim",!0);ge(_e,kt,Dt,"⋍","\\backsimeq",!0);ge(_e,kt,Dt,"⫅","\\subseteqq",!0);ge(_e,kt,Dt,"⋐","\\Subset",!0);ge(_e,kt,Dt,"⊏","\\sqsubset",!0);ge(_e,kt,Dt,"≼","\\preccurlyeq",!0);ge(_e,kt,Dt,"⋞","\\curlyeqprec",!0);ge(_e,kt,Dt,"≾","\\precsim",!0);ge(_e,kt,Dt,"⪷","\\precapprox",!0);ge(_e,kt,Dt,"⊲","\\vartriangleleft");ge(_e,kt,Dt,"⊴","\\trianglelefteq");ge(_e,kt,Dt,"⊨","\\vDash",!0);ge(_e,kt,Dt,"⊪","\\Vvdash",!0);ge(_e,kt,Dt,"⌣","\\smallsmile");ge(_e,kt,Dt,"⌢","\\smallfrown");ge(_e,kt,Dt,"≏","\\bumpeq",!0);ge(_e,kt,Dt,"≎","\\Bumpeq",!0);ge(_e,kt,Dt,"≧","\\geqq",!0);ge(_e,kt,Dt,"⩾","\\geqslant",!0);ge(_e,kt,Dt,"⪖","\\eqslantgtr",!0);ge(_e,kt,Dt,"≳","\\gtrsim",!0);ge(_e,kt,Dt,"⪆","\\gtrapprox",!0);ge(_e,kt,mr,"⋗","\\gtrdot");ge(_e,kt,Dt,"⋙","\\ggg",!0);ge(_e,kt,Dt,"≷","\\gtrless",!0);ge(_e,kt,Dt,"⋛","\\gtreqless",!0);ge(_e,kt,Dt,"⪌","\\gtreqqless",!0);ge(_e,kt,Dt,"≖","\\eqcirc",!0);ge(_e,kt,Dt,"≗","\\circeq",!0);ge(_e,kt,Dt,"≜","\\triangleq",!0);ge(_e,kt,Dt,"∼","\\thicksim");ge(_e,kt,Dt,"≈","\\thickapprox");ge(_e,kt,Dt,"⫆","\\supseteqq",!0);ge(_e,kt,Dt,"⋑","\\Supset",!0);ge(_e,kt,Dt,"⊐","\\sqsupset",!0);ge(_e,kt,Dt,"≽","\\succcurlyeq",!0);ge(_e,kt,Dt,"⋟","\\curlyeqsucc",!0);ge(_e,kt,Dt,"≿","\\succsim",!0);ge(_e,kt,Dt,"⪸","\\succapprox",!0);ge(_e,kt,Dt,"⊳","\\vartriangleright");ge(_e,kt,Dt,"⊵","\\trianglerighteq");ge(_e,kt,Dt,"⊩","\\Vdash",!0);ge(_e,kt,Dt,"∣","\\shortmid");ge(_e,kt,Dt,"∥","\\shortparallel");ge(_e,kt,Dt,"≬","\\between",!0);ge(_e,kt,Dt,"⋔","\\pitchfork",!0);ge(_e,kt,Dt,"∝","\\varpropto");ge(_e,kt,Dt,"◀","\\blacktriangleleft");ge(_e,kt,Dt,"∴","\\therefore",!0);ge(_e,kt,Dt,"∍","\\backepsilon");ge(_e,kt,Dt,"▶","\\blacktriangleright");ge(_e,kt,Dt,"∵","\\because",!0);ge(_e,kt,Dt,"⋘","\\llless");ge(_e,kt,Dt,"⋙","\\gggtr");ge(_e,kt,mr,"⊲","\\lhd");ge(_e,kt,mr,"⊳","\\rhd");ge(_e,kt,Dt,"≂","\\eqsim",!0);ge(_e,et,Dt,"⋈","\\Join");ge(_e,kt,Dt,"≑","\\Doteq",!0);ge(_e,kt,mr,"∔","\\dotplus",!0);ge(_e,kt,mr,"∖","\\smallsetminus");ge(_e,kt,mr,"⋒","\\Cap",!0);ge(_e,kt,mr,"⋓","\\Cup",!0);ge(_e,kt,mr,"⩞","\\doublebarwedge",!0);ge(_e,kt,mr,"⊟","\\boxminus",!0);ge(_e,kt,mr,"⊞","\\boxplus",!0);ge(_e,kt,mr,"⋇","\\divideontimes",!0);ge(_e,kt,mr,"⋉","\\ltimes",!0);ge(_e,kt,mr,"⋊","\\rtimes",!0);ge(_e,kt,mr,"⋋","\\leftthreetimes",!0);ge(_e,kt,mr,"⋌","\\rightthreetimes",!0);ge(_e,kt,mr,"⋏","\\curlywedge",!0);ge(_e,kt,mr,"⋎","\\curlyvee",!0);ge(_e,kt,mr,"⊝","\\circleddash",!0);ge(_e,kt,mr,"⊛","\\circledast",!0);ge(_e,kt,mr,"⋅","\\centerdot");ge(_e,kt,mr,"⊺","\\intercal",!0);ge(_e,kt,mr,"⋒","\\doublecap");ge(_e,kt,mr,"⋓","\\doublecup");ge(_e,kt,mr,"⊠","\\boxtimes",!0);ge(_e,kt,Dt,"⇢","\\dashrightarrow",!0);ge(_e,kt,Dt,"⇠","\\dashleftarrow",!0);ge(_e,kt,Dt,"⇇","\\leftleftarrows",!0);ge(_e,kt,Dt,"⇆","\\leftrightarrows",!0);ge(_e,kt,Dt,"⇚","\\Lleftarrow",!0);ge(_e,kt,Dt,"↞","\\twoheadleftarrow",!0);ge(_e,kt,Dt,"↢","\\leftarrowtail",!0);ge(_e,kt,Dt,"↫","\\looparrowleft",!0);ge(_e,kt,Dt,"⇋","\\leftrightharpoons",!0);ge(_e,kt,Dt,"↶","\\curvearrowleft",!0);ge(_e,kt,Dt,"↺","\\circlearrowleft",!0);ge(_e,kt,Dt,"↰","\\Lsh",!0);ge(_e,kt,Dt,"⇈","\\upuparrows",!0);ge(_e,kt,Dt,"↿","\\upharpoonleft",!0);ge(_e,kt,Dt,"⇃","\\downharpoonleft",!0);ge(_e,et,Dt,"⊶","\\origof",!0);ge(_e,et,Dt,"⊷","\\imageof",!0);ge(_e,kt,Dt,"⊸","\\multimap",!0);ge(_e,kt,Dt,"↭","\\leftrightsquigarrow",!0);ge(_e,kt,Dt,"⇉","\\rightrightarrows",!0);ge(_e,kt,Dt,"⇄","\\rightleftarrows",!0);ge(_e,kt,Dt,"↠","\\twoheadrightarrow",!0);ge(_e,kt,Dt,"↣","\\rightarrowtail",!0);ge(_e,kt,Dt,"↬","\\looparrowright",!0);ge(_e,kt,Dt,"↷","\\curvearrowright",!0);ge(_e,kt,Dt,"↻","\\circlearrowright",!0);ge(_e,kt,Dt,"↱","\\Rsh",!0);ge(_e,kt,Dt,"⇊","\\downdownarrows",!0);ge(_e,kt,Dt,"↾","\\upharpoonright",!0);ge(_e,kt,Dt,"⇂","\\downharpoonright",!0);ge(_e,kt,Dt,"⇝","\\rightsquigarrow",!0);ge(_e,kt,Dt,"⇝","\\leadsto");ge(_e,kt,Dt,"⇛","\\Rrightarrow",!0);ge(_e,kt,Dt,"↾","\\restriction");ge(_e,et,$t,"‘","`");ge(_e,et,$t,"$","\\$");ge(Un,et,$t,"$","\\$");ge(Un,et,$t,"$","\\textdollar");ge(_e,et,$t,"%","\\%");ge(Un,et,$t,"%","\\%");ge(_e,et,$t,"_","\\_");ge(Un,et,$t,"_","\\_");ge(Un,et,$t,"_","\\textunderscore");ge(_e,et,$t,"∠","\\angle",!0);ge(_e,et,$t,"∞","\\infty",!0);ge(_e,et,$t,"′","\\prime");ge(_e,et,$t,"△","\\triangle");ge(_e,et,$t,"Γ","\\Gamma",!0);ge(_e,et,$t,"Δ","\\Delta",!0);ge(_e,et,$t,"Θ","\\Theta",!0);ge(_e,et,$t,"Λ","\\Lambda",!0);ge(_e,et,$t,"Ξ","\\Xi",!0);ge(_e,et,$t,"Π","\\Pi",!0);ge(_e,et,$t,"Σ","\\Sigma",!0);ge(_e,et,$t,"Υ","\\Upsilon",!0);ge(_e,et,$t,"Φ","\\Phi",!0);ge(_e,et,$t,"Ψ","\\Psi",!0);ge(_e,et,$t,"Ω","\\Omega",!0);ge(_e,et,$t,"A","Α");ge(_e,et,$t,"B","Β");ge(_e,et,$t,"E","Ε");ge(_e,et,$t,"Z","Ζ");ge(_e,et,$t,"H","Η");ge(_e,et,$t,"I","Ι");ge(_e,et,$t,"K","Κ");ge(_e,et,$t,"M","Μ");ge(_e,et,$t,"N","Ν");ge(_e,et,$t,"O","Ο");ge(_e,et,$t,"P","Ρ");ge(_e,et,$t,"T","Τ");ge(_e,et,$t,"X","Χ");ge(_e,et,$t,"¬","\\neg",!0);ge(_e,et,$t,"¬","\\lnot");ge(_e,et,$t,"⊤","\\top");ge(_e,et,$t,"⊥","\\bot");ge(_e,et,$t,"∅","\\emptyset");ge(_e,kt,$t,"∅","\\varnothing");ge(_e,et,qr,"α","\\alpha",!0);ge(_e,et,qr,"β","\\beta",!0);ge(_e,et,qr,"γ","\\gamma",!0);ge(_e,et,qr,"δ","\\delta",!0);ge(_e,et,qr,"ϵ","\\epsilon",!0);ge(_e,et,qr,"ζ","\\zeta",!0);ge(_e,et,qr,"η","\\eta",!0);ge(_e,et,qr,"θ","\\theta",!0);ge(_e,et,qr,"ι","\\iota",!0);ge(_e,et,qr,"κ","\\kappa",!0);ge(_e,et,qr,"λ","\\lambda",!0);ge(_e,et,qr,"μ","\\mu",!0);ge(_e,et,qr,"ν","\\nu",!0);ge(_e,et,qr,"ξ","\\xi",!0);ge(_e,et,qr,"ο","\\omicron",!0);ge(_e,et,qr,"π","\\pi",!0);ge(_e,et,qr,"ρ","\\rho",!0);ge(_e,et,qr,"σ","\\sigma",!0);ge(_e,et,qr,"τ","\\tau",!0);ge(_e,et,qr,"υ","\\upsilon",!0);ge(_e,et,qr,"ϕ","\\phi",!0);ge(_e,et,qr,"χ","\\chi",!0);ge(_e,et,qr,"ψ","\\psi",!0);ge(_e,et,qr,"ω","\\omega",!0);ge(_e,et,qr,"ε","\\varepsilon",!0);ge(_e,et,qr,"ϑ","\\vartheta",!0);ge(_e,et,qr,"ϖ","\\varpi",!0);ge(_e,et,qr,"ϱ","\\varrho",!0);ge(_e,et,qr,"ς","\\varsigma",!0);ge(_e,et,qr,"φ","\\varphi",!0);ge(_e,et,mr,"∗","*",!0);ge(_e,et,mr,"+","+");ge(_e,et,mr,"−","-",!0);ge(_e,et,mr,"⋅","\\cdot",!0);ge(_e,et,mr,"∘","\\circ",!0);ge(_e,et,mr,"÷","\\div",!0);ge(_e,et,mr,"±","\\pm",!0);ge(_e,et,mr,"×","\\times",!0);ge(_e,et,mr,"∩","\\cap",!0);ge(_e,et,mr,"∪","\\cup",!0);ge(_e,et,mr,"∖","\\setminus",!0);ge(_e,et,mr,"∧","\\land");ge(_e,et,mr,"∨","\\lor");ge(_e,et,mr,"∧","\\wedge",!0);ge(_e,et,mr,"∨","\\vee",!0);ge(_e,et,$t,"√","\\surd");ge(_e,et,bu,"⟨","\\langle",!0);ge(_e,et,bu,"∣","\\lvert");ge(_e,et,bu,"∥","\\lVert");ge(_e,et,gl,"?","?");ge(_e,et,gl,"!","!");ge(_e,et,gl,"⟩","\\rangle",!0);ge(_e,et,gl,"∣","\\rvert");ge(_e,et,gl,"∥","\\rVert");ge(_e,et,Dt,"=","=");ge(_e,et,Dt,":",":");ge(_e,et,Dt,"≈","\\approx",!0);ge(_e,et,Dt,"≅","\\cong",!0);ge(_e,et,Dt,"≥","\\ge");ge(_e,et,Dt,"≥","\\geq",!0);ge(_e,et,Dt,"←","\\gets");ge(_e,et,Dt,">","\\gt",!0);ge(_e,et,Dt,"∈","\\in",!0);ge(_e,et,Dt,"","\\@not");ge(_e,et,Dt,"⊂","\\subset",!0);ge(_e,et,Dt,"⊃","\\supset",!0);ge(_e,et,Dt,"⊆","\\subseteq",!0);ge(_e,et,Dt,"⊇","\\supseteq",!0);ge(_e,kt,Dt,"⊈","\\nsubseteq",!0);ge(_e,kt,Dt,"⊉","\\nsupseteq",!0);ge(_e,et,Dt,"⊨","\\models");ge(_e,et,Dt,"←","\\leftarrow",!0);ge(_e,et,Dt,"≤","\\le");ge(_e,et,Dt,"≤","\\leq",!0);ge(_e,et,Dt,"<","\\lt",!0);ge(_e,et,Dt,"→","\\rightarrow",!0);ge(_e,et,Dt,"→","\\to");ge(_e,kt,Dt,"≱","\\ngeq",!0);ge(_e,kt,Dt,"≰","\\nleq",!0);ge(_e,et,mp," ","\\ ");ge(_e,et,mp," ","\\space");ge(_e,et,mp," ","\\nobreakspace");ge(Un,et,mp," ","\\ ");ge(Un,et,mp," "," ");ge(Un,et,mp," ","\\space");ge(Un,et,mp," ","\\nobreakspace");ge(_e,et,mp,null,"\\nobreak");ge(_e,et,mp,null,"\\allowbreak");ge(_e,et,HD,",",",");ge(_e,et,HD,";",";");ge(_e,kt,mr,"⊼","\\barwedge",!0);ge(_e,kt,mr,"⊻","\\veebar",!0);ge(_e,et,mr,"⊙","\\odot",!0);ge(_e,et,mr,"⊕","\\oplus",!0);ge(_e,et,mr,"⊗","\\otimes",!0);ge(_e,et,$t,"∂","\\partial",!0);ge(_e,et,mr,"⊘","\\oslash",!0);ge(_e,kt,mr,"⊚","\\circledcirc",!0);ge(_e,kt,mr,"⊡","\\boxdot",!0);ge(_e,et,mr,"△","\\bigtriangleup");ge(_e,et,mr,"▽","\\bigtriangledown");ge(_e,et,mr,"†","\\dagger");ge(_e,et,mr,"⋄","\\diamond");ge(_e,et,mr,"⋆","\\star");ge(_e,et,mr,"◃","\\triangleleft");ge(_e,et,mr,"▹","\\triangleright");ge(_e,et,bu,"{","\\{");ge(Un,et,$t,"{","\\{");ge(Un,et,$t,"{","\\textbraceleft");ge(_e,et,gl,"}","\\}");ge(Un,et,$t,"}","\\}");ge(Un,et,$t,"}","\\textbraceright");ge(_e,et,bu,"{","\\lbrace");ge(_e,et,gl,"}","\\rbrace");ge(_e,et,bu,"[","\\lbrack",!0);ge(Un,et,$t,"[","\\lbrack",!0);ge(_e,et,gl,"]","\\rbrack",!0);ge(Un,et,$t,"]","\\rbrack",!0);ge(_e,et,bu,"(","\\lparen",!0);ge(_e,et,gl,")","\\rparen",!0);ge(Un,et,$t,"<","\\textless",!0);ge(Un,et,$t,">","\\textgreater",!0);ge(_e,et,bu,"⌊","\\lfloor",!0);ge(_e,et,gl,"⌋","\\rfloor",!0);ge(_e,et,bu,"⌈","\\lceil",!0);ge(_e,et,gl,"⌉","\\rceil",!0);ge(_e,et,$t,"\\","\\backslash");ge(_e,et,$t,"∣","|");ge(_e,et,$t,"∣","\\vert");ge(Un,et,$t,"|","\\textbar",!0);ge(_e,et,$t,"∥","\\|");ge(_e,et,$t,"∥","\\Vert");ge(Un,et,$t,"∥","\\textbardbl");ge(Un,et,$t,"~","\\textasciitilde");ge(Un,et,$t,"\\","\\textbackslash");ge(Un,et,$t,"^","\\textasciicircum");ge(_e,et,Dt,"↑","\\uparrow",!0);ge(_e,et,Dt,"⇑","\\Uparrow",!0);ge(_e,et,Dt,"↓","\\downarrow",!0);ge(_e,et,Dt,"⇓","\\Downarrow",!0);ge(_e,et,Dt,"↕","\\updownarrow",!0);ge(_e,et,Dt,"⇕","\\Updownarrow",!0);ge(_e,et,Va,"∐","\\coprod");ge(_e,et,Va,"⋁","\\bigvee");ge(_e,et,Va,"⋀","\\bigwedge");ge(_e,et,Va,"⨄","\\biguplus");ge(_e,et,Va,"⋂","\\bigcap");ge(_e,et,Va,"⋃","\\bigcup");ge(_e,et,Va,"∫","\\int");ge(_e,et,Va,"∫","\\intop");ge(_e,et,Va,"∬","\\iint");ge(_e,et,Va,"∭","\\iiint");ge(_e,et,Va,"∏","\\prod");ge(_e,et,Va,"∑","\\sum");ge(_e,et,Va,"⨂","\\bigotimes");ge(_e,et,Va,"⨁","\\bigoplus");ge(_e,et,Va,"⨀","\\bigodot");ge(_e,et,Va,"∮","\\oint");ge(_e,et,Va,"∯","\\oiint");ge(_e,et,Va,"∰","\\oiiint");ge(_e,et,Va,"⨆","\\bigsqcup");ge(_e,et,Va,"∫","\\smallint");ge(Un,et,Hb,"…","\\textellipsis");ge(_e,et,Hb,"…","\\mathellipsis");ge(Un,et,Hb,"…","\\ldots",!0);ge(_e,et,Hb,"…","\\ldots",!0);ge(_e,et,Hb,"⋯","\\@cdots",!0);ge(_e,et,Hb,"⋱","\\ddots",!0);ge(_e,et,$t,"⋮","\\varvdots");ge(Un,et,$t,"⋮","\\varvdots");ge(_e,et,ea,"ˊ","\\acute");ge(_e,et,ea,"ˋ","\\grave");ge(_e,et,ea,"¨","\\ddot");ge(_e,et,ea,"~","\\tilde");ge(_e,et,ea,"ˉ","\\bar");ge(_e,et,ea,"˘","\\breve");ge(_e,et,ea,"ˇ","\\check");ge(_e,et,ea,"^","\\hat");ge(_e,et,ea,"⃗","\\vec");ge(_e,et,ea,"˙","\\dot");ge(_e,et,ea,"˚","\\mathring");ge(_e,et,qr,"","\\@imath");ge(_e,et,qr,"","\\@jmath");ge(_e,et,$t,"ı","ı");ge(_e,et,$t,"ȷ","ȷ");ge(Un,et,$t,"ı","\\i",!0);ge(Un,et,$t,"ȷ","\\j",!0);ge(Un,et,$t,"ß","\\ss",!0);ge(Un,et,$t,"æ","\\ae",!0);ge(Un,et,$t,"œ","\\oe",!0);ge(Un,et,$t,"ø","\\o",!0);ge(Un,et,$t,"Æ","\\AE",!0);ge(Un,et,$t,"Œ","\\OE",!0);ge(Un,et,$t,"Ø","\\O",!0);ge(Un,et,ea,"ˊ","\\'");ge(Un,et,ea,"ˋ","\\`");ge(Un,et,ea,"ˆ","\\^");ge(Un,et,ea,"˜","\\~");ge(Un,et,ea,"ˉ","\\=");ge(Un,et,ea,"˘","\\u");ge(Un,et,ea,"˙","\\.");ge(Un,et,ea,"¸","\\c");ge(Un,et,ea,"˚","\\r");ge(Un,et,ea,"ˇ","\\v");ge(Un,et,ea,"¨",'\\"');ge(Un,et,ea,"˝","\\H");ge(Un,et,ea,"◯","\\textcircled");var u3e={"--":!0,"---":!0,"``":!0,"''":!0};ge(Un,et,$t,"–","--",!0);ge(Un,et,$t,"–","\\textendash");ge(Un,et,$t,"—","---",!0);ge(Un,et,$t,"—","\\textemdash");ge(Un,et,$t,"‘","`",!0);ge(Un,et,$t,"‘","\\textquoteleft");ge(Un,et,$t,"’","'",!0);ge(Un,et,$t,"’","\\textquoteright");ge(Un,et,$t,"“","``",!0);ge(Un,et,$t,"“","\\textquotedblleft");ge(Un,et,$t,"”","''",!0);ge(Un,et,$t,"”","\\textquotedblright");ge(_e,et,$t,"°","\\degree",!0);ge(Un,et,$t,"°","\\degree");ge(Un,et,$t,"°","\\textdegree",!0);ge(_e,et,$t,"£","\\pounds");ge(_e,et,$t,"£","\\mathsterling",!0);ge(Un,et,$t,"£","\\pounds");ge(Un,et,$t,"£","\\textsterling",!0);ge(_e,kt,$t,"✠","\\maltese");ge(Un,kt,$t,"✠","\\maltese");var Pre='0123456789/@."';for(var qO=0;qO<Pre.length;qO++){var Nre=Pre.charAt(qO);ge(_e,et,$t,Nre,Nre)}var Rre='0123456789!@*()-=+";:?/.,';for(var GO=0;GO<Rre.length;GO++){var Bre=Rre.charAt(GO);ge(Un,et,$t,Bre,Bre)}var VE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var KO=0;KO<VE.length;KO++){var jx=VE.charAt(KO);ge(_e,et,qr,jx,jx),ge(Un,et,$t,jx,jx)}ge(_e,kt,$t,"C","ℂ");ge(Un,kt,$t,"C","ℂ");ge(_e,kt,$t,"H","ℍ");ge(Un,kt,$t,"H","ℍ");ge(_e,kt,$t,"N","ℕ");ge(Un,kt,$t,"N","ℕ");ge(_e,kt,$t,"P","ℙ");ge(Un,kt,$t,"P","ℙ");ge(_e,kt,$t,"Q","ℚ");ge(Un,kt,$t,"Q","ℚ");ge(_e,kt,$t,"R","ℝ");ge(Un,kt,$t,"R","ℝ");ge(_e,kt,$t,"Z","ℤ");ge(Un,kt,$t,"Z","ℤ");ge(_e,et,qr,"h","ℎ");ge(Un,et,qr,"h","ℎ");var eo="";for(var Zs=0;Zs<VE.length;Zs++){var ga=VE.charAt(Zs);eo=String.fromCharCode(55349,56320+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56372+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56424+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56580+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56684+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56736+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56788+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56840+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56944+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),Zs<26&&(eo=String.fromCharCode(55349,56632+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo),eo=String.fromCharCode(55349,56476+Zs),ge(_e,et,qr,ga,eo),ge(Un,et,$t,ga,eo))}eo="𝕜";ge(_e,et,qr,"k",eo);ge(Un,et,$t,"k",eo);for(var Q0=0;Q0<10;Q0++){var Np=Q0.toString();eo=String.fromCharCode(55349,57294+Q0),ge(_e,et,qr,Np,eo),ge(Un,et,$t,Np,eo),eo=String.fromCharCode(55349,57314+Q0),ge(_e,et,qr,Np,eo),ge(Un,et,$t,Np,eo),eo=String.fromCharCode(55349,57324+Q0),ge(_e,et,qr,Np,eo),ge(Un,et,$t,Np,eo),eo=String.fromCharCode(55349,57334+Q0),ge(_e,et,qr,Np,eo),ge(Un,et,$t,Np,eo)}var DF="ÐÞþ";for(var QO=0;QO<DF.length;QO++){var Hx=DF.charAt(QO);ge(_e,et,qr,Hx,Hx),ge(Un,et,$t,Hx,Hx)}var Wx=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Lre=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Sft=function(t,n){var r=t.charCodeAt(0),o=t.charCodeAt(1),i=(r-55296)*1024+(o-56320)+65536,a=n==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Wx[s][2],Wx[s][a]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[Lre[l][2],Lre[l][a]]}else{if(i===120485||i===120486)return[Wx[0][2],Wx[0][a]];if(120486<i&&i<120782)return["",""];throw new Hn("Unsupported character: "+t)}},WD=function(t,n,r){return Li[r][t]&&Li[r][t].replace&&(t=Li[r][t].replace),{value:t,metrics:KV(t,n,r)}},pc=function(t,n,r,o,i){var a=WD(t,n,r),s=a.metrics;t=a.value;var l;if(s){var u=s.italic;(r==="text"||o&&o.font==="mathit")&&(u=0),l=new Zu(t,s.height,s.depth,u,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),l=new Zu(t,0,0,0,0,0,i);if(o){l.maxFontSize=o.sizeMultiplier,o.style.isTight()&&l.classes.push("mtight");var d=o.getColor();d&&(l.style.color=d)}return l},Eft=function(t,n,r,o){return o===void 0&&(o=[]),r.font==="boldsymbol"&&WD(t,"Main-Bold",n).metrics?pc(t,"Main-Bold",n,r,o.concat(["mathbf"])):t==="\\"||Li[n][t].font==="main"?pc(t,"Main-Regular",n,r,o):pc(t,"AMS-Regular",n,r,o.concat(["amsrm"]))},kft=function(t,n,r,o,i){return i!=="textord"&&WD(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Tft=function(t,n,r){var o=t.mode,i=t.text,a=["mord"],s=o==="math"||o==="text"&&n.font,l=s?n.font:n.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=Sft(i,o)),u.length>0)return pc(i,u,o,n,a.concat(d));if(l){var c,f;if(l==="boldsymbol"){var p=kft(i,o,n,a,r);c=p.fontName,f=[p.fontClass]}else s?(c=f3e[l].fontName,f=[l]):(c=Vx(l,n.fontWeight,n.fontShape),f=[l,n.fontWeight,n.fontShape]);if(WD(i,c,o).metrics)return pc(i,c,o,n,a.concat(f));if(u3e.hasOwnProperty(i)&&c.slice(0,10)==="Typewriter"){for(var v=[],h=0;h<i.length;h++)v.push(pc(i[h],c,o,n,a.concat(f)));return d3e(v)}}if(r==="mathord")return pc(i,"Math-Italic",o,n,a.concat(["mathnormal"]));if(r==="textord"){var g=Li[o][i]&&Li[o][i].font;if(g==="ams"){var y=Vx("amsrm",n.fontWeight,n.fontShape);return pc(i,y,o,n,a.concat("amsrm",n.fontWeight,n.fontShape))}else if(g==="main"||!g){var m=Vx("textrm",n.fontWeight,n.fontShape);return pc(i,m,o,n,a.concat(n.fontWeight,n.fontShape))}else{var b=Vx(g,n.fontWeight,n.fontShape);return pc(i,b,o,n,a.concat(b,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},_ft=(e,t)=>{if(d0(e.classes)!==d0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},Dft=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Zu&&r instanceof Zu&&_ft(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},YV=function(t){for(var n=0,r=0,o=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>n&&(n=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>o&&(o=a.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=o},wl=function(t,n,r,o){var i=new GC(t,n,r,o);return YV(i),i},c3e=(e,t,n,r)=>new GC(e,t,n,r),Ift=function(t,n,r){var o=wl([t],[],n);return o.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=Xn(o.height),o.maxFontSize=1,o},Oft=function(t,n,r,o){var i=new QV(t,n,r,o);return YV(i),i},d3e=function(t){var n=new qC(t);return YV(n),n},Mft=function(t,n){return t instanceof qC?wl([],[t],n):t},Pft=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],o=-n[0].shift-n[0].elem.depth,i=o,a=1;a<n.length;a++){var s=-n[a].shift-i-n[a].elem.depth,l=s-(n[a-1].elem.height+n[a-1].elem.depth);i=i+s,r.push({type:"kern",size:l}),r.push(n[a])}return{children:r,depth:o}}var u;if(t.positionType==="top"){for(var d=t.positionData,c=0;c<t.children.length;c++){var f=t.children[c];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=d}else if(t.positionType==="bottom")u=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Nft=function(t,n){for(var{children:r,depth:o}=Pft(t),i=0,a=0;a<r.length;a++){var s=r[a];if(s.type==="elem"){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=wl(["pstrut"],[]);u.style.height=Xn(i);for(var d=[],c=o,f=o,p=o,v=0;v<r.length;v++){var h=r[v];if(h.type==="kern")p+=h.size;else{var g=h.elem,y=h.wrapperClasses||[],m=h.wrapperStyle||{},b=wl(y,[u,g],void 0,m);b.style.top=Xn(-i-p-g.depth),h.marginLeft&&(b.style.marginLeft=h.marginLeft),h.marginRight&&(b.style.marginRight=h.marginRight),d.push(b),p+=g.height+g.depth}c=Math.min(c,p),f=Math.max(f,p)}var w=wl(["vlist"],d);w.style.height=Xn(f);var A;if(c<0){var S=wl([],[]),k=wl(["vlist"],[S]);k.style.height=Xn(-c);var M=wl(["vlist-s"],[new Zu("")]);A=[wl(["vlist-r"],[w,M]),wl(["vlist-r"],[k])]}else A=[wl(["vlist-r"],[w])];var D=wl(["vlist-t"],A);return A.length===2&&D.classes.push("vlist-t2"),D.height=f,D.depth=-c,D},Rft=(e,t)=>{var n=wl(["mspace"],[],t),r=sa(e,t);return n.style.marginRight=Xn(r),n},Vx=function(t,n,r){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var i;return n==="textbf"&&r==="textit"?i="BoldItalic":n==="textbf"?i="Bold":n==="textit"?i="Italic":i="Regular",o+"-"+i},f3e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},p3e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Bft=function(t,n){var[r,o,i]=p3e[t],a=new f0(r),s=new np([a],{width:Xn(o),height:Xn(i),style:"width:"+Xn(o),viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=c3e(["overlay"],[s],n);return l.height=i,l.style.height=Xn(i),l.style.width=Xn(o),l},tn={fontMap:f3e,makeSymbol:pc,mathsym:Eft,makeSpan:wl,makeSvgSpan:c3e,makeLineSpan:Ift,makeAnchor:Oft,makeFragment:d3e,wrapFragment:Mft,makeVList:Nft,makeOrd:Tft,makeGlue:Rft,staticSvg:Bft,svgData:p3e,tryCombineChars:Dft},ia={number:3,unit:"mu"},Y0={number:4,unit:"mu"},df={number:5,unit:"mu"},Lft={mord:{mop:ia,mbin:Y0,mrel:df,minner:ia},mop:{mord:ia,mop:ia,mrel:df,minner:ia},mbin:{mord:Y0,mop:Y0,mopen:Y0,minner:Y0},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:ia,mbin:Y0,mrel:df,minner:ia},mpunct:{mord:ia,mop:ia,mrel:df,mopen:ia,mclose:ia,mpunct:ia,minner:ia},minner:{mord:ia,mop:ia,mbin:Y0,mrel:df,mopen:ia,mpunct:ia,minner:ia}},Fft={mord:{mop:ia},mop:{mord:ia,mop:ia},mbin:{},mrel:{},mopen:{},mclose:{mop:ia},mpunct:{},minner:{mop:ia}},h3e={},qE={},GE={};function ur(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},l=0;l<n.length;++l)h3e[n[l]]=s;t&&(i&&(qE[t]=i),a&&(GE[t]=a))}function um(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;ur({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var KE=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ea=function(t){return t.type==="ordgroup"?t.body:[t]},rp=tn.makeSpan,Uft=["leftmost","mbin","mopen","mrel","mop","mpunct"],$ft=["rightmost","mrel","mclose","mpunct"],zft={display:Gr.DISPLAY,text:Gr.TEXT,script:Gr.SCRIPT,scriptscript:Gr.SCRIPTSCRIPT},jft={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ns=function(t,n,r,o){o===void 0&&(o=[null,null]);for(var i=[],a=0;a<t.length;a++){var s=Zo(t[a],n);if(s instanceof qC){var l=s.children;i.push(...l)}else i.push(s)}if(tn.tryCombineChars(i),!r)return i;var u=n;if(t.length===1){var d=t[0];d.type==="sizing"?u=n.havingSize(d.size):d.type==="styling"&&(u=n.havingStyle(zft[d.style]))}var c=rp([o[0]||"leftmost"],[],n),f=rp([o[1]||"rightmost"],[],n),p=r==="root";return Fre(i,(v,h)=>{var g=h.classes[0],y=v.classes[0];g==="mbin"&&$ft.includes(y)?h.classes[0]="mord":y==="mbin"&&Uft.includes(g)&&(v.classes[0]="mord")},{node:c},f,p),Fre(i,(v,h)=>{var g=IF(h),y=IF(v),m=g&&y?v.hasClass("mtight")?Fft[g][y]:Lft[g][y]:null;if(m)return tn.makeGlue(m,u)},{node:c},f,p),i},Fre=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=g3e(s);if(l){e(l.children,n,r,null,i);continue}var u=!s.hasClass("mspace");if(u){var d=n(s,r.node);d&&(r.insertAfter?r.insertAfter(d):(t.unshift(d),a++))}u?r.node=s:i&&s.hasClass("newline")&&(r.node=rp(["leftmost"])),r.insertAfter=(c=>f=>{t.splice(c+1,0,f),a++})(a)}o&&t.pop()},g3e=function(t){return t instanceof qC||t instanceof QV||t instanceof GC&&t.hasClass("enclosing")?t:null},Hft=function e(t,n){var r=g3e(t);if(r){var o=r.children;if(o.length){if(n==="right")return e(o[o.length-1],"right");if(n==="left")return e(o[0],"left")}}return t},IF=function(t,n){return t?(n&&(t=Hft(t,n)),jft[t.classes[0]]||null):null},hA=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return rp(n.concat(r))},Zo=function(t,n,r){if(!t)return rp();if(qE[t.type]){var o=qE[t.type](t,n);if(r&&n.size!==r.size){o=rp(n.sizingClasses(r),[o],n);var i=n.sizeMultiplier/r.sizeMultiplier;o.height*=i,o.depth*=i}return o}else throw new Hn("Got group of unknown type: '"+t.type+"'")};function qx(e,t){var n=rp(["base"],e,t),r=rp(["strut"]);return r.style.height=Xn(n.height+n.depth),n.depth&&(r.style.verticalAlign=Xn(-n.depth)),n.children.unshift(r),n}function OF(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=ns(e,t,"root"),o;r.length===2&&r[1].hasClass("tag")&&(o=r.pop());for(var i=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(i.push(qx(a,t)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(qx(a,t)),a=[]),i.push(r[s]));a.length>0&&i.push(qx(a,t));var u;n?(u=qx(ns(n,t,!0)),u.classes=["tag"],i.push(u)):o&&i.push(o);var d=rp(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),u){var c=u.children[0];c.style.height=Xn(d.height+d.depth),d.depth&&(c.style.verticalAlign=Xn(-d.depth))}return d}function v3e(e){return new qC(e)}class eu{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=d0(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Cd&&this.children[r+1]instanceof Cd){for(var o=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Cd;)o+=this.children[++r].toText();t.appendChild(new Cd(o).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Jo.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Jo.escape(d0(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Cd{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Jo.escape(this.toText())}toText(){return this.text}}class Wft{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Xn(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Xn(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var zn={MathNode:eu,TextNode:Cd,SpaceNode:Wft,newDocumentFragment:v3e},Xu=function(t,n,r){return Li[n][t]&&Li[n][t].replace&&t.charCodeAt(0)!==55349&&!(u3e.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Li[n][t].replace),new zn.TextNode(t)},ZV=function(t){return t.length===1?t[0]:new zn.MathNode("mrow",t)},XV=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var o=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;Li[o][i]&&Li[o][i].replace&&(i=Li[o][i].replace);var a=tn.fontMap[r].fontName;return KV(i,a,o)?tn.fontMap[r].variant:null};function YO(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Cd&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Cd&&n.text===","}else return!1}var ql=function(t,n,r){if(t.length===1){var o=Di(t[0],n);return r&&o instanceof eu&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var i=[],a,s=0;s<t.length;s++){var l=Di(t[s],n);if(l instanceof eu&&a instanceof eu){if(l.type==="mtext"&&a.type==="mtext"&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...l.children);continue}else if(l.type==="mn"&&a.type==="mn"){a.children.push(...l.children);continue}else if(YO(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&YO(a))l.children=[...a.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||YO(a))){var u=l.children[0];u instanceof eu&&u.type==="mn"&&(u.children=[...a.children,...u.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var d=a.children[0];if(d instanceof Cd&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var c=l.children[0];c instanceof Cd&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(l),a=l}return i},p0=function(t,n,r){return ZV(ql(t,n,r))},Di=function(t,n){if(!t)return new zn.MathNode("mrow");if(GE[t.type]){var r=GE[t.type](t,n);return r}else throw new Hn("Got group of unknown type: '"+t.type+"'")};function Ure(e,t,n,r,o){var i=ql(e,n),a;i.length===1&&i[0]instanceof eu&&["mrow","mtable"].includes(i[0].type)?a=i[0]:a=new zn.MathNode("mrow",i);var s=new zn.MathNode("annotation",[new zn.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new zn.MathNode("semantics",[a,s]),u=new zn.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=o?"katex":"katex-mathml";return tn.makeSpan([d],[u])}var m3e=function(t){return new Af({style:t.displayMode?Gr.DISPLAY:Gr.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},y3e=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=tn.makeSpan(r,[t])}return t},Vft=function(t,n,r){var o=m3e(r),i;if(r.output==="mathml")return Ure(t,n,o,r.displayMode,!0);if(r.output==="html"){var a=OF(t,o);i=tn.makeSpan(["katex"],[a])}else{var s=Ure(t,n,o,r.displayMode,!1),l=OF(t,o);i=tn.makeSpan(["katex"],[s,l])}return y3e(i,r)},qft=function(t,n,r){var o=m3e(r),i=OF(t,o),a=tn.makeSpan(["katex"],[i]);return y3e(a,r)},Gft={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Kft=function(t){var n=new zn.MathNode("mo",[new zn.TextNode(Gft[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Qft={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Yft=function(t){return t.type==="ordgroup"?t.body.length:1},Zft=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=t,d=Yft(u.base),c,f,p;if(d>5)l==="widehat"||l==="widecheck"?(c=420,s=2364,p=.42,f=l+"4"):(c=312,s=2340,p=.34,f="tilde4");else{var v=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][v],c=[0,239,300,360,420][v],p=[0,.24,.3,.3,.36,.42][v],f=l+v):(s=[0,600,1033,2339,2340][v],c=[0,260,286,306,312][v],p=[0,.26,.286,.3,.306,.34][v],f="tilde"+v)}var h=new f0(f),g=new np([h],{width:"100%",height:Xn(p),viewBox:"0 0 "+s+" "+c,preserveAspectRatio:"none"});return{span:tn.makeSvgSpan([],[g],n),minWidth:0,height:p}}else{var y=[],m=Qft[l],[b,w,A]=m,S=A/1e3,k=b.length,M,D;if(k===1){var P=m[3];M=["hide-tail"],D=[P]}else if(k===2)M=["halfarrow-left","halfarrow-right"],D=["xMinYMin","xMaxYMin"];else if(k===3)M=["brace-left","brace-center","brace-right"],D=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
- `+k+" children.");for(var O=0;O<k;O++){var _=new f0(b[O]),B=new np([_],{width:"400em",height:Xn(S),viewBox:"0 0 "+s+" "+A,preserveAspectRatio:D[O]+" slice"}),N=tn.makeSvgSpan([M[O]],[B],n);if(k===1)return{span:N,minWidth:w,height:S};N.style.height=Xn(S),y.push(N)}return{span:tn.makeSpan(["stretchy"],y,n),minWidth:w,height:S}}}var{span:o,minWidth:i,height:a}=r();return o.height=a,o.style.height=Xn(a),i>0&&(o.style.minWidth=Xn(i)),o},Xft=function(t,n,r,o,i){var a,s=t.height+t.depth+r+o;if(/fbox|color|angl/.test(n)){if(a=tn.makeSpan(["stretchy",n],[],i),n==="fbox"){var l=i.color&&i.getColor();l&&(a.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new _F({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new _F({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new np(u,{width:"100%",height:Xn(s)});a=tn.makeSvgSpan([],[d],i)}return a.height=s,a.style.height=Xn(s),a},op={encloseSpan:Xft,mathMLnode:Kft,svgSpan:Zft};function Eo(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function JV(e){var t=VD(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function VD(e){return e&&(e.type==="atom"||xft.hasOwnProperty(e.type))?e:null}var eq=(e,t)=>{var n,r,o;e&&e.type==="supsub"?(r=Eo(e.base,"accent"),n=r.base,e.base=n,o=Aft(Zo(e,t)),e.base=r):(r=Eo(e,"accent"),n=r.base);var i=Zo(n,t.havingCrampedStyle()),a=r.isShifty&&Jo.isCharacterBox(n),s=0;if(a){var l=Jo.getBaseElem(n),u=Zo(l,t.havingCrampedStyle());s=Mre(u).skew}var d=r.label==="\\c",c=d?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=op.svgSpan(r,t),f=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Xn(2*s)+")",marginLeft:Xn(2*s)}:void 0}]},t);else{var p,v;r.label==="\\vec"?(p=tn.staticSvg("vec",t),v=tn.svgData.vec[1]):(p=tn.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=Mre(p),p.italic=0,v=p.width,d&&(c+=p.depth)),f=tn.makeSpan(["accent-body"],[p]);var h=r.label==="\\textcircled";h&&(f.classes.push("accent-full"),c=i.height);var g=s;h||(g-=v/2),f.style.left=Xn(g),r.label==="\\textcircled"&&(f.style.top=".2em"),f=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:f}]},t)}var y=tn.makeSpan(["mord","accent"],[f],t);return o?(o.children[0]=y,o.height=Math.max(y.height,o.height),o.classes[0]="mord",o):y},b3e=(e,t)=>{var n=e.isStretchy?op.mathMLnode(e.label):new zn.MathNode("mo",[Xu(e.label,e.mode)]),r=new zn.MathNode("mover",[Di(e.base,t),n]);return r.setAttribute("accent","true"),r},Jft=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ur({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=KE(t[0]),r=!Jft.test(e.funcName),o=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:eq,mathmlBuilder:b3e});ur({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:eq,mathmlBuilder:b3e});ur({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{var n=Zo(e.base,t),r=op.svgSpan(e,t),o=e.label==="\\utilde"?.12:0,i=tn.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return tn.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=op.mathMLnode(e.label),r=new zn.MathNode("munder",[Di(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Gx=e=>{var t=new zn.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ur({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:o}=e;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),o=tn.wrapFragment(Zo(e.body,r,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(i+"-arrow-pad");var a;e.below&&(r=t.havingStyle(n.sub()),a=tn.wrapFragment(Zo(e.below,r,t),t),a.classes.push(i+"-arrow-pad"));var s=op.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(u-=o.depth);var d;if(a){var c=-t.fontMetrics().axisHeight+a.height+.5*s.height+.111;d=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:c}]},t)}else d=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),tn.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=op.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var o=Gx(Di(e.body,t));if(e.below){var i=Gx(Di(e.below,t));r=new zn.MathNode("munderover",[n,i,o])}else r=new zn.MathNode("mover",[n,o])}else if(e.below){var a=Gx(Di(e.below,t));r=new zn.MathNode("munder",[n,a])}else r=Gx(),r=new zn.MathNode("mover",[n,r]);return r}});var ept=tn.makeSpan;function w3e(e,t){var n=ns(e.body,t,!0);return ept([e.mclass],n,t)}function A3e(e,t){var n,r=ql(e.body,t);return e.mclass==="minner"?n=new zn.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new zn.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new zn.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ur({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Ea(o),isCharacterBox:Jo.isCharacterBox(o)}},htmlBuilder:w3e,mathmlBuilder:A3e});var qD=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ur({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:qD(t[0]),body:Ea(t[1]),isCharacterBox:Jo.isCharacterBox(t[1])}}});ur({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,o=t[1],i=t[0],a;r!=="\\stackrel"?a=qD(o):a="mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Ea(o)},l={type:"supsub",mode:i.mode,base:s,sup:r==="\\underset"?null:i,sub:r==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:a,body:[l],isCharacterBox:Jo.isCharacterBox(l)}},htmlBuilder:w3e,mathmlBuilder:A3e});ur({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:qD(t[0]),body:Ea(t[0])}},htmlBuilder(e,t){var n=ns(e.body,t,!0),r=tn.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=ql(e.body,t),r=new zn.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var tpt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$re=()=>({type:"styling",body:[],mode:"math",style:"display"}),zre=e=>e.type==="textord"&&e.text==="@",npt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function rpt(e,t,n){var r=tpt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[i],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[o,a,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function opt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Hn("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],o=[r],i=0;i<t.length;i++){for(var a=t[i],s=$re(),l=0;l<a.length;l++)if(!zre(a[l]))s.body.push(a[l]);else{r.push(s),l+=1;var u=JV(a[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var c=0;c<2;c++){for(var f=!0,p=l+1;p<a.length;p++){if(npt(a[p],u)){f=!1,l=p;break}if(zre(a[p]))throw new Hn("Missing a "+u+" character to complete a CD arrow.",a[p]);d[c].body.push(a[p])}if(f)throw new Hn("Missing a "+u+" character to complete a CD arrow.",a[l])}else throw new Hn('Expected one of "<>AV=|." after @',a[l]);var v=rpt(u,d,e),h={type:"styling",body:[v],mode:"math",style:"display"};r.push(h),s=$re()}i%2===0?r.push(s):r.shift(),r=[],o.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var g=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}ur({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=tn.wrapFragment(Zo(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Xn(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new zn.MathNode("mrow",[Di(e.label,t)]);return n=new zn.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new zn.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ur({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=tn.wrapFragment(Zo(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new zn.MathNode("mrow",[Di(e.fragment,t)])}});ur({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Eo(t[0],"ordgroup"),o=r.body,i="",a=0;a<o.length;a++){var s=Eo(o[a],"textord");i+=s.text}var l=parseInt(i),u;if(isNaN(l))throw new Hn("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new Hn("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var C3e=(e,t)=>{var n=ns(e.body,t.withColor(e.color),!1);return tn.makeFragment(n)},x3e=(e,t)=>{var n=ql(e.body,t.withColor(e.color)),r=new zn.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ur({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Eo(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:Ea(o)}},htmlBuilder:C3e,mathmlBuilder:x3e});ur({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,o=Eo(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:C3e,mathmlBuilder:x3e});ur({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,o=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&Eo(o,"size").value}},htmlBuilder(e,t){var n=tn.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Xn(sa(e.size,t)))),n},mathmlBuilder(e,t){var n=new zn.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Xn(sa(e.size,t)))),n}});var MF={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},S3e=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Hn("Expected a control sequence",e);return t},ipt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},E3e=(e,t,n,r)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};ur({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(MF[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=MF[r.text]),Eo(t.parseFunction(),"internal");throw new Hn("Invalid token after macro prefix",r)}});ur({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),o=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Hn("Expected a control sequence",r);for(var i=0,a,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),s[i].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Hn('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==i+1)throw new Hn('Argument number "'+r.text+'" out of order');i++,s.push([])}else{if(r.text==="EOF")throw new Hn("Expected a macro definition");s[i].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(o,{tokens:l,numArgs:i,delimiters:s},n===MF[n]),{type:"internal",mode:t.mode}}});ur({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=S3e(t.gullet.popToken());t.gullet.consumeSpaces();var o=ipt(t);return E3e(t,r,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ur({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=S3e(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return E3e(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var A4=function(t,n,r){var o=Li.math[t]&&Li.math[t].replace,i=KV(o||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},tq=function(t,n,r,o){var i=r.havingBaseStyle(n),a=tn.makeSpan(o.concat(i.sizingClasses(r)),[t],r),s=i.sizeMultiplier/r.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=i.sizeMultiplier,a},k3e=function(t,n,r){var o=n.havingBaseStyle(r),i=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Xn(i),t.height-=i,t.depth+=i},apt=function(t,n,r,o,i,a){var s=tn.makeSymbol(t,"Main-Regular",i,o),l=tq(s,n,o,a);return r&&k3e(l,o,n),l},spt=function(t,n,r,o){return tn.makeSymbol(t,"Size"+n+"-Regular",r,o)},T3e=function(t,n,r,o,i,a){var s=spt(t,n,i,o),l=tq(tn.makeSpan(["delimsizing","size"+n],[s],o),Gr.TEXT,o,a);return r&&k3e(l,o,Gr.TEXT),l},ZO=function(t,n,r){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var i=tn.makeSpan(["delimsizinginner",o],[tn.makeSpan([],[tn.makeSymbol(t,n,r)])]);return{type:"elem",elem:i}},XO=function(t,n,r){var o=Ad["Size4-Regular"][t.charCodeAt(0)]?Ad["Size4-Regular"][t.charCodeAt(0)][4]:Ad["Size1-Regular"][t.charCodeAt(0)][4],i=new f0("inner",fft(t,Math.round(1e3*n))),a=new np([i],{width:Xn(o),height:Xn(n),style:"width:"+Xn(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=tn.makeSvgSpan([],[a],r);return s.height=n,s.style.height=Xn(n),s.style.width=Xn(o),{type:"elem",elem:s}},PF=.008,Kx={type:"kern",size:-1*PF},lpt=["|","\\lvert","\\rvert","\\vert"],upt=["\\|","\\lVert","\\rVert","\\Vert"],_3e=function(t,n,r,o,i,a){var s,l,u,d,c="",f=0;s=u=d=t,l=null;var p="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",d="\\Downarrow"):lpt.includes(t)?(u="∣",c="vert",f=333):upt.includes(t)?(u="∥",c="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",d="⎣",p="Size4-Regular",c="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",d="⎦",p="Size4-Regular",c="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",d="⎣",p="Size4-Regular",c="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=d="⎢",p="Size4-Regular",c="lceil",f=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",d="⎦",p="Size4-Regular",c="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=d="⎥",p="Size4-Regular",c="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",d="⎝",p="Size4-Regular",c="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",d="⎠",p="Size4-Regular",c="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",d="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",d="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",d="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",d="⎩",u="⎪",p="Size4-Regular");var v=A4(s,p,i),h=v.height+v.depth,g=A4(u,p,i),y=g.height+g.depth,m=A4(d,p,i),b=m.height+m.depth,w=0,A=1;if(l!==null){var S=A4(l,p,i);w=S.height+S.depth,A=2}var k=h+b+w,M=Math.max(0,Math.ceil((n-k)/(A*y))),D=k+M*A*y,P=o.fontMetrics().axisHeight;r&&(P*=o.sizeMultiplier);var O=D/2-P,_=[];if(c.length>0){var B=D-h-b,N=Math.round(D*1e3),q=pft(c,Math.round(B*1e3)),U=new f0(c,q),j=(f/1e3).toFixed(3)+"em",H=(N/1e3).toFixed(3)+"em",G=new np([U],{width:j,height:H,viewBox:"0 0 "+f+" "+N}),Z=tn.makeSvgSpan([],[G],o);Z.height=N/1e3,Z.style.width=j,Z.style.height=H,_.push({type:"elem",elem:Z})}else{if(_.push(ZO(d,p,i)),_.push(Kx),l===null){var $=D-h-b+2*PF;_.push(XO(u,$,o))}else{var L=(D-h-b-w)/2+2*PF;_.push(XO(u,L,o)),_.push(Kx),_.push(ZO(l,p,i)),_.push(Kx),_.push(XO(u,L,o))}_.push(Kx),_.push(ZO(s,p,i))}var W=o.havingBaseStyle(Gr.TEXT),ie=tn.makeVList({positionType:"bottom",positionData:O,children:_},W);return tq(tn.makeSpan(["delimsizing","mult"],[ie],W),Gr.TEXT,o,a)},JO=80,eM=.08,tM=function(t,n,r,o,i){var a=dft(t,o,r),s=new f0(t,a),l=new np([s],{width:"400em",height:Xn(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return tn.makeSvgSpan(["hide-tail"],[l],i)},cpt=function(t,n){var r=n.havingBaseSizing(),o=M3e("\\surd",t*r.sizeMultiplier,O3e,r),i=r.sizeMultiplier,a=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,u=0,d=0,c;return o.type==="small"?(d=1e3+1e3*a+JO,t<1?i=1:t<1.4&&(i=.7),l=(1+a+eM)/i,u=(1+a)/i,s=tM("sqrtMain",l,d,a,n),s.style.minWidth="0.853em",c=.833/i):o.type==="large"?(d=(1e3+JO)*J4[o.size],u=(J4[o.size]+a)/i,l=(J4[o.size]+a+eM)/i,s=tM("sqrtSize"+o.size,l,d,a,n),s.style.minWidth="1.02em",c=1/i):(l=t+a+eM,u=t+a,d=Math.floor(1e3*t+a)+JO,s=tM("sqrtTall",l,d,a,n),s.style.minWidth="0.742em",c=1.056),s.height=u,s.style.height=Xn(l),{span:s,advanceWidth:c,ruleWidth:(n.fontMetrics().sqrtRuleThickness+a)*i}},D3e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],dpt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],I3e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],J4=[0,1.2,1.8,2.4,3],fpt=function(t,n,r,o,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),D3e.includes(t)||I3e.includes(t))return T3e(t,n,!1,r,o,i);if(dpt.includes(t))return _3e(t,J4[n],!1,r,o,i);throw new Hn("Illegal delimiter: '"+t+"'")},ppt=[{type:"small",style:Gr.SCRIPTSCRIPT},{type:"small",style:Gr.SCRIPT},{type:"small",style:Gr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hpt=[{type:"small",style:Gr.SCRIPTSCRIPT},{type:"small",style:Gr.SCRIPT},{type:"small",style:Gr.TEXT},{type:"stack"}],O3e=[{type:"small",style:Gr.SCRIPTSCRIPT},{type:"small",style:Gr.SCRIPT},{type:"small",style:Gr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],gpt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},M3e=function(t,n,r,o){for(var i=Math.min(2,3-o.style.size),a=i;a<r.length&&r[a].type!=="stack";a++){var s=A4(t,gpt(r[a]),"math"),l=s.height+s.depth;if(r[a].type==="small"){var u=o.havingBaseStyle(r[a].style);l*=u.sizeMultiplier}if(l>n)return r[a]}return r[r.length-1]},P3e=function(t,n,r,o,i,a){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;I3e.includes(t)?s=ppt:D3e.includes(t)?s=O3e:s=hpt;var l=M3e(t,n,s,o);return l.type==="small"?apt(t,l.style,r,o,i,a):l.type==="large"?T3e(t,l.size,r,o,i,a):_3e(t,n,r,o,i,a)},vpt=function(t,n,r,o,i,a){var s=o.fontMetrics().axisHeight*o.sizeMultiplier,l=901,u=5/o.fontMetrics().ptPerEm,d=Math.max(n-s,r+s),c=Math.max(d/500*l,2*d-u);return P3e(t,c,!0,o,i,a)},Uf={sqrtImage:cpt,sizedDelim:fpt,sizeToMaxHeight:J4,customSizedDelim:P3e,leftRightDelim:vpt},jre={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function GD(e,t){var n=VD(e);if(n&&mpt.includes(n.text))return n;throw n?new Hn("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Hn("Invalid delimiter type '"+e.type+"'",e)}ur({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=GD(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:jre[e.funcName].size,mclass:jre[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?tn.makeSpan([e.mclass]):Uf.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Xu(e.delim,e.mode));var n=new zn.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Xn(Uf.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Hre(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ur({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Hn("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:GD(t[0],e).text,color:n}}});ur({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=GD(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Eo(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Hre(e);for(var n=ns(e.body,t,!0,["mopen","mclose"]),r=0,o=0,i=!1,a=0;a<n.length;a++)n[a].isMiddle?i=!0:(r=Math.max(n[a].height,r),o=Math.max(n[a].depth,o));r*=t.sizeMultiplier,o*=t.sizeMultiplier;var s;if(e.left==="."?s=hA(t,["mopen"]):s=Uf.leftRightDelim(e.left,r,o,t,e.mode,["mopen"]),n.unshift(s),i)for(var l=1;l<n.length;l++){var u=n[l],d=u.isMiddle;d&&(n[l]=Uf.leftRightDelim(d.delim,r,o,d.options,e.mode,[]))}var c;if(e.right===".")c=hA(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;c=Uf.leftRightDelim(e.right,r,o,f,e.mode,["mclose"])}return n.push(c),tn.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{Hre(e);var n=ql(e.body,t);if(e.left!=="."){var r=new zn.MathNode("mo",[Xu(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var o=new zn.MathNode("mo",[Xu(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return ZV(n)}});ur({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=GD(t[0],e);if(!e.parser.leftrightDepth)throw new Hn("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=hA(t,[]);else{n=Uf.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Xu("|","text"):Xu(e.delim,e.mode),r=new zn.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var nq=(e,t)=>{var n=tn.wrapFragment(Zo(e.body,t),t),r=e.label.slice(1),o=t.sizeMultiplier,i,a=0,s=Jo.isCharacterBox(e.body);if(r==="sout")i=tn.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/o,a=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=sa({number:.6,unit:"pt"},t),u=sa({number:.35,unit:"ex"},t),d=t.havingBaseSizing();o=o/d.sizeMultiplier;var c=n.height+n.depth+l+u;n.style.paddingLeft=Xn(c/2+l);var f=Math.floor(1e3*c*o),p=uft(f),v=new np([new f0("phase",p)],{width:"400em",height:Xn(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=tn.makeSvgSpan(["hide-tail"],[v],t),i.style.height=Xn(c),a=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var h=0,g=0,y=0;/box/.test(r)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r==="colorbox"?0:y),g=h):r==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*y,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),i=op.encloseSpan(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(i.style.borderStyle="solid",i.style.borderWidth=Xn(y)):r==="angl"&&y!==.049&&(i.style.borderTopWidth=Xn(y),i.style.borderRightWidth=Xn(y)),a=n.depth+g,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var m;if(e.backgroundColor)m=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:n,shift:0}]},t);else{var b=/cancel|phase/.test(r)?["svg-align"]:[];m=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:b}]},t)}return/cancel/.test(r)&&(m.height=n.height,m.depth=n.depth),/cancel/.test(r)&&!s?tn.makeSpan(["mord","cancel-lap"],[m],t):tn.makeSpan(["mord"],[m],t)},rq=(e,t)=>{var n=0,r=new zn.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Di(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ur({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=Eo(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:nq,mathmlBuilder:rq});ur({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=Eo(t[0],"color-token").color,a=Eo(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:nq,mathmlBuilder:rq});ur({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ur({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:nq,mathmlBuilder:rq});ur({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var N3e={};function Xd(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)N3e[n[l]]=s;i&&(qE[t]=i),a&&(GE[t]=a)}var R3e={};function ot(e,t){R3e[e]=t}function Wre(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var KD=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Hn("{"+e.envName+"} can be used only in display mode.")};function oq(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function P0(e,t,n){var{hskipBeforeAndAfter:r,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:c,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)a=1;else if(a=parseFloat(p),!a||a<0)throw new Hn("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var v=[],h=[v],g=[],y=[],m=l!=null?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){m&&(e.gullet.macros.get("\\df@tag")?(m.push(e.subparse([new au("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),y.push(Wre(e));;){var A=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),A={type:"ordgroup",mode:e.mode,body:A},n&&(A={type:"styling",mode:e.mode,style:n,body:[A]}),v.push(A);var S=e.fetch().text;if(S==="&"){if(c&&v.length===c){if(u||s)throw new Hn("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(S==="\\end"){w(),v.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(h.length>1||!d)&&h.pop(),y.length<h.length+1&&y.push([]);break}else if(S==="\\\\"){e.consume();var k=void 0;e.gullet.future().text!==" "&&(k=e.parseSizeGroup(!0)),g.push(k?k.value:null),w(),y.push(Wre(e)),v=[],h.push(v),b()}else throw new Hn("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:h,cols:i,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:y,colSeparationType:s,tags:m,leqno:f}}function iq(e){return e.slice(0,1)==="d"?"display":"text"}var Jd=function(t,n){var r,o,i=t.body.length,a=t.hLinesBeforeRow,s=0,l=new Array(i),u=[],d=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),c=1/n.fontMetrics().ptPerEm,f=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var p=n.havingStyle(Gr.SCRIPT).sizeMultiplier;f=.2778*(p/n.sizeMultiplier)}var v=t.colSeparationType==="CD"?sa({number:3,unit:"ex"},n):12*c,h=3*c,g=t.arraystretch*v,y=.7*g,m=.3*g,b=0;function w(oe){for(var ce=0;ce<oe.length;++ce)ce>0&&(b+=.25),u.push({pos:b,isDashed:oe[ce]})}for(w(a[0]),r=0;r<t.body.length;++r){var A=t.body[r],S=y,k=m;s<A.length&&(s=A.length);var M=new Array(A.length);for(o=0;o<A.length;++o){var D=Zo(A[o],n);k<D.depth&&(k=D.depth),S<D.height&&(S=D.height),M[o]=D}var P=t.rowGaps[r],O=0;P&&(O=sa(P,n),O>0&&(O+=m,k<O&&(k=O),O=0)),t.addJot&&(k+=h),M.height=S,M.depth=k,b+=S,M.pos=b,b+=k+O,l[r]=M,w(a[r+1])}var _=b/2+n.fontMetrics().axisHeight,B=t.cols||[],N=[],q,U,j=[];if(t.tags&&t.tags.some(oe=>oe))for(r=0;r<i;++r){var H=l[r],G=H.pos-_,Z=t.tags[r],$=void 0;Z===!0?$=tn.makeSpan(["eqn-num"],[],n):Z===!1?$=tn.makeSpan([],[],n):$=tn.makeSpan([],ns(Z,n,!0),n),$.depth=H.depth,$.height=H.height,j.push({type:"elem",elem:$,shift:G})}for(o=0,U=0;o<s||U<B.length;++o,++U){for(var L=B[U]||{},W=!0;L.type==="separator";){if(W||(q=tn.makeSpan(["arraycolsep"],[]),q.style.width=Xn(n.fontMetrics().doubleRuleSep),N.push(q)),L.separator==="|"||L.separator===":"){var ie=L.separator==="|"?"solid":"dashed",ee=tn.makeSpan(["vertical-separator"],[],n);ee.style.height=Xn(b),ee.style.borderRightWidth=Xn(d),ee.style.borderRightStyle=ie,ee.style.margin="0 "+Xn(-d/2);var te=b-_;te&&(ee.style.verticalAlign=Xn(-te)),N.push(ee)}else throw new Hn("Invalid separator type: "+L.separator);U++,L=B[U]||{},W=!1}if(!(o>=s)){var X=void 0;(o>0||t.hskipBeforeAndAfter)&&(X=Jo.deflt(L.pregap,f),X!==0&&(q=tn.makeSpan(["arraycolsep"],[]),q.style.width=Xn(X),N.push(q)));var ue=[];for(r=0;r<i;++r){var ve=l[r],Me=ve[o];if(Me){var we=ve.pos-_;Me.depth=ve.depth,Me.height=ve.height,ue.push({type:"elem",elem:Me,shift:we})}}ue=tn.makeVList({positionType:"individualShift",children:ue},n),ue=tn.makeSpan(["col-align-"+(L.align||"c")],[ue]),N.push(ue),(o<s-1||t.hskipBeforeAndAfter)&&(X=Jo.deflt(L.postgap,f),X!==0&&(q=tn.makeSpan(["arraycolsep"],[]),q.style.width=Xn(X),N.push(q)))}}if(l=tn.makeSpan(["mtable"],N),u.length>0){for(var he=tn.makeLineSpan("hline",n,d),Te=tn.makeLineSpan("hdashline",n,d),Y=[{type:"elem",elem:l,shift:0}];u.length>0;){var be=u.pop(),De=be.pos-_;be.isDashed?Y.push({type:"elem",elem:Te,shift:De}):Y.push({type:"elem",elem:he,shift:De})}l=tn.makeVList({positionType:"individualShift",children:Y},n)}if(j.length===0)return tn.makeSpan(["mord"],[l],n);var pe=tn.makeVList({positionType:"individualShift",children:j},n);return pe=tn.makeSpan(["tag"],[pe],n),tn.makeFragment([l,pe])},ypt={c:"center ",l:"left ",r:"right "},ef=function(t,n){for(var r=[],o=new zn.MathNode("mtd",[],["mtr-glue"]),i=new zn.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var s=t.body[a],l=[],u=0;u<s.length;u++)l.push(new zn.MathNode("mtd",[Di(s[u],n)]));t.tags&&t.tags[a]&&(l.unshift(o),l.push(o),t.leqno?l.unshift(i):l.push(i)),r.push(new zn.MathNode("mtr",l))}var d=new zn.MathNode("mtable",r),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",Xn(c));var f="",p="";if(t.cols&&t.cols.length>0){var v=t.cols,h="",g=!1,y=0,m=v.length;v[0].type==="separator"&&(f+="top ",y=1),v[v.length-1].type==="separator"&&(f+="bottom ",m-=1);for(var b=y;b<m;b++)v[b].type==="align"?(p+=ypt[v[b].align],g&&(h+="none "),g=!0):v[b].type==="separator"&&g&&(h+=v[b].separator==="|"?"solid ":"dashed ",g=!1);d.setAttribute("columnalign",p.trim()),/[sd]/.test(h)&&d.setAttribute("columnlines",h.trim())}if(t.colSeparationType==="align"){for(var w=t.cols||[],A="",S=1;S<w.length;S++)A+=S%2?"0em ":"1em ";d.setAttribute("columnspacing",A.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var k="",M=t.hLinesBeforeRow;f+=M[0].length>0?"left ":"",f+=M[M.length-1].length>0?"right ":"";for(var D=1;D<M.length-1;D++)k+=M[D].length===0?"none ":M[D][0]?"dashed ":"solid ";return/[sd]/.test(k)&&d.setAttribute("rowlines",k.trim()),f!==""&&(d=new zn.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(d=new zn.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},B3e=function(t,n){t.envName.indexOf("ed")===-1&&KD(t);var r=[],o=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",a=P0(t.parser,{cols:r,addJot:!0,autoTag:i?void 0:oq(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",c=0;c<n[0].body.length;c++){var f=Eo(n[0].body[c],"textord");d+=f.text}s=Number(d),l=s*2}var p=!l;a.body.forEach(function(y){for(var m=1;m<y.length;m+=2){var b=Eo(y[m],"styling"),w=Eo(b.body[0],"ordgroup");w.body.unshift(u)}if(p)l<y.length&&(l=y.length);else{var A=y.length/2;if(s<A)throw new Hn("Too many math in a row: "+("expected "+s+", but got "+A),y[0])}});for(var v=0;v<l;++v){var h="r",g=0;v%2===1?h="l":v>0&&p&&(g=1),r[v]={type:"align",align:h,pregap:g,postgap:0}}return a.colSeparationType=p?"align":"alignat",a};Xd({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=VD(t[0]),r=n?[t[0]]:Eo(t[0],"ordgroup").body,o=r.map(function(a){var s=JV(a),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Hn("Unknown column alignment: "+l,a)}),i={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return P0(e.parser,i,iq(e.envName))},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,"lcr".indexOf(n)===-1)throw new Hn("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),r.cols=[{type:"align",align:n}]}}var i=P0(e.parser,r,iq(e.envName)),a=Math.max(0,...i.body.map(s=>s.length));return i.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=P0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=VD(t[0]),r=n?[t[0]]:Eo(t[0],"ordgroup").body,o=r.map(function(a){var s=JV(a),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Hn("Unknown column alignment: "+l,a)});if(o.length>1)throw new Hn("{subarray} can contain only one column");var i={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=P0(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new Hn("{subarray} can contain only one column");return i},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=P0(e.parser,t,iq(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:B3e,htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&KD(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:oq(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return P0(e.parser,t,"display")},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:B3e,htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){KD(e);var t={autoTag:oq(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return P0(e.parser,t,"display")},htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["CD"],props:{numArgs:0},handler(e){return KD(e),opt(e.parser)},htmlBuilder:Jd,mathmlBuilder:ef});ot("\\nonumber","\\gdef\\@eqnsw{0}");ot("\\notag","\\nonumber");ur({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Hn(e.funcName+" valid only within array environment")}});var Vre=N3e;ur({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];if(o.type!=="ordgroup")throw new Hn("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=Eo(o.body[a],"textord").text;if(r==="\\begin"){if(!Vre.hasOwnProperty(i))throw new Hn("No such environment: "+i,o);var s=Vre[i],{args:l,optArgs:u}=n.parseArguments("\\begin{"+i+"}",s),d={mode:n.mode,envName:i,parser:n},c=s.handler(d,l,u);n.expect("\\end",!1);var f=n.nextToken,p=Eo(n.parseFunction(),"environment");if(p.name!==i)throw new Hn("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",f);return c}return{type:"environment",mode:n.mode,name:i,nameGroup:o}}});var L3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Zo(e.body,r)},F3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Di(e.body,r)},qre={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ur({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=KE(t[0]),i=r;return i in qre&&(i=qre[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:L3e,mathmlBuilder:F3e});ur({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],o=Jo.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:qD(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}});ur({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:o}=e,{mode:i}=n,a=n.parseExpression(!0,o),s="math"+r.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:L3e,mathmlBuilder:F3e});var U3e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Gr.SCRIPT.id?n.text():Gr.DISPLAY:e==="text"&&n.size===Gr.DISPLAY.size?n=Gr.TEXT:e==="script"?n=Gr.SCRIPT:e==="scriptscript"&&(n=Gr.SCRIPTSCRIPT),n},aq=(e,t)=>{var n=U3e(e.size,t.style),r=n.fracNum(),o=n.fracDen(),i;i=t.havingStyle(r);var a=Zo(e.numer,i,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}i=t.havingStyle(o);var u=Zo(e.denom,i,t),d,c,f;e.hasBarLine?(e.barSize?(c=sa(e.barSize,t),d=tn.makeLineSpan("frac-line",t,c)):d=tn.makeLineSpan("frac-line",t),c=d.height,f=d.height):(d=null,c=0,f=t.fontMetrics().defaultRuleThickness);var p,v,h;n.size===Gr.DISPLAY.size||e.size==="display"?(p=t.fontMetrics().num1,c>0?v=3*f:v=7*f,h=t.fontMetrics().denom1):(c>0?(p=t.fontMetrics().num2,v=f):(p=t.fontMetrics().num3,v=3*f),h=t.fontMetrics().denom2);var g;if(d){var m=t.fontMetrics().axisHeight;p-a.depth-(m+.5*c)<v&&(p+=v-(p-a.depth-(m+.5*c))),m-.5*c-(u.height-h)<v&&(h+=v-(m-.5*c-(u.height-h)));var b=-(m-.5*c);g=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:h},{type:"elem",elem:d,shift:b},{type:"elem",elem:a,shift:-p}]},t)}else{var y=p-a.depth-(u.height-h);y<v&&(p+=.5*(v-y),h+=.5*(v-y)),g=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:h},{type:"elem",elem:a,shift:-p}]},t)}i=t.havingStyle(n),g.height*=i.sizeMultiplier/t.sizeMultiplier,g.depth*=i.sizeMultiplier/t.sizeMultiplier;var w;n.size===Gr.DISPLAY.size?w=t.fontMetrics().delim1:n.size===Gr.SCRIPTSCRIPT.size?w=t.havingStyle(Gr.SCRIPT).fontMetrics().delim2:w=t.fontMetrics().delim2;var A,S;return e.leftDelim==null?A=hA(t,["mopen"]):A=Uf.customSizedDelim(e.leftDelim,w,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?S=tn.makeSpan([]):e.rightDelim==null?S=hA(t,["mclose"]):S=Uf.customSizedDelim(e.rightDelim,w,!0,t.havingStyle(n),e.mode,["mclose"]),tn.makeSpan(["mord"].concat(i.sizingClasses(t)),[A,tn.makeSpan(["mfrac"],[g]),S],t)},sq=(e,t)=>{var n=new zn.MathNode("mfrac",[Di(e.numer,t),Di(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=sa(e.barSize,t);n.setAttribute("linethickness",Xn(r))}var o=U3e(e.size,t.style);if(o.size!==t.style.size){n=new zn.MathNode("mstyle",[n]);var i=o.size===Gr.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var s=new zn.MathNode("mo",[new zn.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),e.rightDelim!=null){var l=new zn.MathNode("mo",[new zn.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return ZV(a)}return n};ur({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1],a,s=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",l=")";break;case"\\\\bracefrac":a=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":a=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:o,denom:i,hasBarLine:a,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:aq,mathmlBuilder:sq});ur({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ur({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:r}}});var Gre=["display","text","script","scriptscript"],Kre=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ur({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],o=t[5],i=KE(t[0]),a=i.type==="atom"&&i.family==="open"?Kre(i.text):null,s=KE(t[1]),l=s.type==="atom"&&s.family==="close"?Kre(s.text):null,u=Eo(t[2],"size"),d,c=null;u.isBlank?d=!0:(c=u.value,d=c.number>0);var f="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var v=Eo(p.body[0],"textord");f=Gre[Number(v.text)]}}else p=Eo(p,"textord"),f=Gre[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:d,barSize:c,leftDelim:a,rightDelim:l,size:f}},htmlBuilder:aq,mathmlBuilder:sq});ur({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Eo(t[0],"size").value,token:o}}});ur({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=Kdt(Eo(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:aq,mathmlBuilder:sq});var $3e=(e,t)=>{var n=t.style,r,o;e.type==="supsub"?(r=e.sup?Zo(e.sup,t.havingStyle(n.sup()),t):Zo(e.sub,t.havingStyle(n.sub()),t),o=Eo(e.base,"horizBrace")):o=Eo(e,"horizBrace");var i=Zo(o.base,t.havingBaseStyle(Gr.DISPLAY)),a=op.svgSpan(o,t),s;if(o.isOver?(s=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=tn.makeVList({positionType:"bottom",positionData:i.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=tn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t);o.isOver?s=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=tn.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return tn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t)},bpt=(e,t)=>{var n=op.mathMLnode(e.label);return new zn.MathNode(e.isOver?"mover":"munder",[Di(e.base,t),n])};ur({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:$3e,mathmlBuilder:bpt});ur({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],o=Eo(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Ea(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=ns(e.body,t,!1);return tn.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=p0(e.body,t);return n instanceof eu||(n=new eu("mrow",[n])),n.setAttribute("href",e.href),n}});ur({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Eo(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:Ea(s)}}});ur({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Ea(t[0])}},htmlBuilder(e,t){var n=ns(e.body,t,!1);return tn.makeFragment(n)},mathmlBuilder(e,t){return new zn.MathNode("mrow",ql(e.body,t))}});ur({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:o}=e,i=Eo(t[0],"raw").string,a=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=i,s={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,s={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,s={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length!==2)throw new Hn("Error parsing key-value for \\htmlData");l["data-"+c[0].trim()]=c[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:Ea(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=ns(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var o=tn.makeSpan(r,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>p0(e.body,t)});ur({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ea(t[0]),mathml:Ea(t[1])}},htmlBuilder:(e,t)=>{var n=ns(e.html,t,!1);return tn.makeFragment(n)},mathmlBuilder:(e,t)=>p0(e.mathml,t)});var nM=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Hn("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!i3e(r))throw new Hn("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ur({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=Eo(n[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length===2){var f=c[1].trim();switch(c[0].trim()){case"alt":s=f;break;case"width":o=nM(f);break;case"height":i=nM(f);break;case"totalheight":a=nM(f);break;default:throw new Hn("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var p=Eo(t[0],"url").url;return s===""&&(s=p,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:s,width:o,height:i,totalheight:a,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=sa(e.height,t),r=0;e.totalheight.number>0&&(r=sa(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=sa(e.width,t));var i={height:Xn(n+r)};o>0&&(i.width=Xn(o)),r>0&&(i.verticalAlign=Xn(-r));var a=new bft(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new zn.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=sa(e.height,t),o=0;if(e.totalheight.number>0&&(o=sa(e.totalheight,t)-r,n.setAttribute("valign",Xn(-o))),n.setAttribute("height",Xn(r+o)),e.width.number>0){var i=sa(e.width,t);n.setAttribute("width",Xn(i))}return n.setAttribute("src",e.src),n}});ur({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=Eo(t[0],"size");if(n.settings.strict){var i=r[1]==="m",a=o.value.unit==="mu";i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return tn.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=sa(e.dimension,t);return new zn.SpaceNode(n)}});ur({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=tn.makeSpan([],[Zo(e.body,t)]),n=tn.makeSpan(["inner"],[n],t)):n=tn.makeSpan(["inner"],[Zo(e.body,t)]);var r=tn.makeSpan(["fix"],[]),o=tn.makeSpan([e.alignment],[n,r],t),i=tn.makeSpan(["strut"]);return i.style.height=Xn(o.height+o.depth),o.depth&&(i.style.verticalAlign=Xn(-o.depth)),o.children.unshift(i),o=tn.makeSpan(["thinbox"],[o],t),tn.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new zn.MathNode("mpadded",[Di(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ur({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,o=r.mode;r.switchMode("math");var i=n==="\\("?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}});ur({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Hn("Mismatched "+e.funcName)}});var Qre=(e,t)=>{switch(t.style.size){case Gr.DISPLAY.size:return e.display;case Gr.TEXT.size:return e.text;case Gr.SCRIPT.size:return e.script;case Gr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ur({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ea(t[0]),text:Ea(t[1]),script:Ea(t[2]),scriptscript:Ea(t[3])}},htmlBuilder:(e,t)=>{var n=Qre(e,t),r=ns(n,t,!1);return tn.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Qre(e,t);return p0(n,t)}});var z3e=(e,t,n,r,o,i,a)=>{e=tn.makeSpan([],[e]);var s=n&&Jo.isCharacterBox(n),l,u;if(t){var d=Zo(t,r.havingStyle(o.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var c=Zo(n,r.havingStyle(o.sub()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-c.height)}}var f;if(u&&l){var p=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;f=tn.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Xn(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Xn(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var v=e.height-a;f=tn.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Xn(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var h=e.depth+a;f=tn.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Xn(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var g=[f];if(l&&i!==0&&!s){var y=tn.makeSpan(["mspace"],[],r);y.style.marginRight=Xn(i),g.unshift(y)}return tn.makeSpan(["mop","op-limits"],g,r)},j3e=["\\smallint"],Wb=(e,t)=>{var n,r,o=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=Eo(e.base,"op"),o=!0):i=Eo(e,"op");var a=t.style,s=!1;a.size===Gr.DISPLAY.size&&i.symbol&&!j3e.includes(i.name)&&(s=!0);var l;if(i.symbol){var u=s?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=tn.makeSymbol(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),d.length>0){var c=l.italic,f=tn.staticSvg(d+"Size"+(s?"2":"1"),t);l=tn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]},t),i.name="\\"+d,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var p=ns(i.body,t,!0);p.length===1&&p[0]instanceof Zu?(l=p[0],l.classes[0]="mop"):l=tn.makeSpan(["mop"],p,t)}else{for(var v=[],h=1;h<i.name.length;h++)v.push(tn.mathsym(i.name[h],i.mode,t));l=tn.makeSpan(["mop"],v,t)}var g=0,y=0;return(l instanceof Zu||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(g=(l.height-l.depth)/2-t.fontMetrics().axisHeight,y=l.italic),o?z3e(l,n,r,t,a,y,g):(g&&(l.style.position="relative",l.style.top=Xn(g)),l)},KC=(e,t)=>{var n;if(e.symbol)n=new eu("mo",[Xu(e.name,e.mode)]),j3e.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new eu("mo",ql(e.body,t));else{n=new eu("mi",[new Cd(e.name.slice(1))]);var r=new eu("mo",[Xu("","text")]);e.parentIsSupSub?n=new eu("mrow",[n,r]):n=v3e([n,r])}return n},wpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ur({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=r;return o.length===1&&(o=wpt[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Wb,mathmlBuilder:KC});ur({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ea(r)}},htmlBuilder:Wb,mathmlBuilder:KC});var Apt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ur({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wb,mathmlBuilder:KC});ur({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Wb,mathmlBuilder:KC});ur({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Apt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Wb,mathmlBuilder:KC});var H3e=(e,t)=>{var n,r,o=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=Eo(e.base,"operatorname"),o=!0):i=Eo(e,"operatorname");var a;if(i.body.length>0){for(var s=i.body.map(c=>{var f=c.text;return typeof f=="string"?{type:"textord",mode:c.mode,text:f}:c}),l=ns(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof Zu&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=tn.makeSpan(["mop"],l,t)}else a=tn.makeSpan(["mop"],[],t);return o?z3e(a,n,r,t,t.style,0,0):a},Cpt=(e,t)=>{for(var n=ql(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(!(i instanceof zn.SpaceNode))if(i instanceof zn.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=i.children[0];i.children.length===1&&a instanceof zn.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(d=>d.toText()).join("");n=[new zn.TextNode(s)]}var l=new zn.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new zn.MathNode("mo",[Xu("","text")]);return e.parentIsSupSub?new zn.MathNode("mrow",[l,u]):zn.newDocumentFragment([l,u])};ur({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:Ea(o),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:H3e,mathmlBuilder:Cpt});ot("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");um({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?tn.makeFragment(ns(e.body,t,!1)):tn.makeSpan(["mord"],ns(e.body,t,!0),t)},mathmlBuilder(e,t){return p0(e.body,t,!0)}});ur({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Zo(e.body,t.havingCrampedStyle()),r=tn.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return tn.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new zn.MathNode("mo",[new zn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new zn.MathNode("mover",[Di(e.body,t),n]);return r.setAttribute("accent","true"),r}});ur({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Ea(r)}},htmlBuilder:(e,t)=>{var n=ns(e.body,t.withPhantom(),!1);return tn.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ql(e.body,t);return new zn.MathNode("mphantom",n)}});ur({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=tn.makeSpan([],[Zo(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),tn.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=ql(Ea(e.body),t),r=new zn.MathNode("mphantom",n),o=new zn.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}});ur({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=tn.makeSpan(["inner"],[Zo(e.body,t.withPhantom())]),r=tn.makeSpan(["fix"],[]);return tn.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ql(Ea(e.body),t),r=new zn.MathNode("mphantom",n),o=new zn.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}});ur({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Eo(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){var n=Zo(e.body,t),r=sa(e.dy,t);return tn.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new zn.MathNode("mpadded",[Di(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ur({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ur({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,o=n[0],i=Eo(t[0],"size"),a=Eo(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Eo(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var n=tn.makeSpan(["mord","rule"],[],t),r=sa(e.width,t),o=sa(e.height,t),i=e.shift?sa(e.shift,t):0;return n.style.borderRightWidth=Xn(r),n.style.borderTopWidth=Xn(o),n.style.bottom=Xn(i),n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=sa(e.width,t),r=sa(e.height,t),o=e.shift?sa(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new zn.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",Xn(n)),a.setAttribute("height",Xn(r));var s=new zn.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",Xn(o)):(s.setAttribute("height",Xn(o)),s.setAttribute("depth",Xn(-o))),s.setAttribute("voffset",Xn(o)),s}});function W3e(e,t,n){for(var r=ns(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return tn.makeFragment(r)}var Yre=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],xpt=(e,t)=>{var n=t.havingSize(e.size);return W3e(e.body,n,t)};ur({type:"sizing",names:Yre,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Yre.indexOf(r)+1,body:i}},htmlBuilder:xpt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ql(e.body,n),o=new zn.MathNode("mstyle",r);return o.setAttribute("mathsize",Xn(n.sizeMultiplier)),o}});ur({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,o=!1,i=!1,a=n[0]&&Eo(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var u=a.body[l];if(s=u.text,s==="t")o=!0;else if(s==="b")i=!0;else{o=!1,i=!1;break}}else o=!0,i=!0;var d=t[0];return{type:"smash",mode:r.mode,body:d,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var n=tn.makeSpan([],[Zo(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return tn.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new zn.MathNode("mpadded",[Di(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ur({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder(e,t){var n=Zo(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=tn.wrapFragment(n,t);var r=t.fontMetrics(),o=r.defaultRuleThickness,i=o;t.style.id<Gr.TEXT.id&&(i=t.fontMetrics().xHeight);var a=o+i/4,s=n.height+n.depth+a+o,{span:l,ruleWidth:u,advanceWidth:d}=Uf.sqrtImage(s,t),c=l.height-u;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var f=l.height-n.height-a-u;n.style.paddingLeft=Xn(d);var p=tn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var v=t.havingStyle(Gr.SCRIPTSCRIPT),h=Zo(e.index,v,t),g=.6*(p.height-p.depth),y=tn.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:h}]},t),m=tn.makeSpan(["root"],[y]);return tn.makeSpan(["mord","sqrt"],[m,p],t)}else return tn.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new zn.MathNode("mroot",[Di(n,t),Di(r,t)]):new zn.MathNode("msqrt",[Di(n,t)])}});var Zre={display:Gr.DISPLAY,text:Gr.TEXT,script:Gr.SCRIPT,scriptscript:Gr.SCRIPTSCRIPT};ur({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var n=Zre[e.style],r=t.havingStyle(n).withFont("");return W3e(e.body,r,t)},mathmlBuilder(e,t){var n=Zre[e.style],r=t.havingStyle(n),o=ql(e.body,r),i=new zn.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var Spt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var o=r.limits&&(n.style.size===Gr.DISPLAY.size||r.alwaysHandleSupSub);return o?Wb:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===Gr.DISPLAY.size||r.limits);return i?H3e:null}else{if(r.type==="accent")return Jo.isCharacterBox(r.base)?eq:null;if(r.type==="horizBrace"){var a=!t.sub;return a===r.isOver?$3e:null}else return null}else return null};um({type:"supsub",htmlBuilder(e,t){var n=Spt(e,t);if(n)return n(e,t);var{base:r,sup:o,sub:i}=e,a=Zo(r,t),s,l,u=t.fontMetrics(),d=0,c=0,f=r&&Jo.isCharacterBox(r);if(o){var p=t.havingStyle(t.style.sup());s=Zo(o,p,t),f||(d=a.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(i){var v=t.havingStyle(t.style.sub());l=Zo(i,v,t),f||(c=a.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var h;t.style===Gr.DISPLAY?h=u.sup1:t.style.cramped?h=u.sup3:h=u.sup2;var g=t.sizeMultiplier,y=Xn(.5/u.ptPerEm/g),m=null;if(l){var b=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof Zu||b)&&(m=Xn(-a.italic))}var w;if(s&&l){d=Math.max(d,h,s.depth+.25*u.xHeight),c=Math.max(c,u.sub2);var A=u.defaultRuleThickness,S=4*A;if(d-s.depth-(l.height-c)<S){c=S-(d-s.depth)+l.height;var k=.8*u.xHeight-(d-s.depth);k>0&&(d+=k,c-=k)}var M=[{type:"elem",elem:l,shift:c,marginRight:y,marginLeft:m},{type:"elem",elem:s,shift:-d,marginRight:y}];w=tn.makeVList({positionType:"individualShift",children:M},t)}else if(l){c=Math.max(c,u.sub1,l.height-.8*u.xHeight);var D=[{type:"elem",elem:l,marginLeft:m,marginRight:y}];w=tn.makeVList({positionType:"shift",positionData:c,children:D},t)}else if(s)d=Math.max(d,h,s.depth+.25*u.xHeight),w=tn.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:s,marginRight:y}]},t);else throw new Error("supsub must have either sup or sub.");var P=IF(a,"right")||"mord";return tn.makeSpan([P],[a,tn.makeSpan(["msupsub"],[w])],t)},mathmlBuilder(e,t){var n=!1,r,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Di(e.base,t)];e.sub&&i.push(Di(e.sub,t)),e.sup&&i.push(Di(e.sup,t));var a;if(n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Gr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Gr.DISPLAY||u.limits)?a="munderover":a="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Gr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Gr.DISPLAY)?a="munder":a="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Gr.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Gr.DISPLAY)?a="mover":a="msup"}return new zn.MathNode(a,i)}});um({type:"atom",htmlBuilder(e,t){return tn.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new zn.MathNode("mo",[Xu(e.text,e.mode)]);if(e.family==="bin"){var r=XV(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var V3e={mi:"italic",mn:"normal",mtext:"normal"};um({type:"mathord",htmlBuilder(e,t){return tn.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new zn.MathNode("mi",[Xu(e.text,e.mode,t)]),r=XV(e,t)||"italic";return r!==V3e[n.type]&&n.setAttribute("mathvariant",r),n}});um({type:"textord",htmlBuilder(e,t){return tn.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Xu(e.text,e.mode,t),r=XV(e,t)||"normal",o;return e.mode==="text"?o=new zn.MathNode("mtext",[n]):/[0-9]/.test(e.text)?o=new zn.MathNode("mn",[n]):e.text==="\\prime"?o=new zn.MathNode("mo",[n]):o=new zn.MathNode("mi",[n]),r!==V3e[o.type]&&o.setAttribute("mathvariant",r),o}});var rM={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},oM={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};um({type:"spacing",htmlBuilder(e,t){if(oM.hasOwnProperty(e.text)){var n=oM[e.text].className||"";if(e.mode==="text"){var r=tn.makeOrd(e,t,"textord");return r.classes.push(n),r}else return tn.makeSpan(["mspace",n],[tn.mathsym(e.text,e.mode,t)],t)}else{if(rM.hasOwnProperty(e.text))return tn.makeSpan(["mspace",rM[e.text]],[],t);throw new Hn('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(oM.hasOwnProperty(e.text))n=new zn.MathNode("mtext",[new zn.TextNode(" ")]);else{if(rM.hasOwnProperty(e.text))return new zn.MathNode("mspace");throw new Hn('Unknown type of space "'+e.text+'"')}return n}});var Xre=()=>{var e=new zn.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};um({type:"tag",mathmlBuilder(e,t){var n=new zn.MathNode("mtable",[new zn.MathNode("mtr",[Xre(),new zn.MathNode("mtd",[p0(e.body,t)]),Xre(),new zn.MathNode("mtd",[p0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Jre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eoe={"\\textbf":"textbf","\\textmd":"textmd"},Ept={"\\textit":"textit","\\textup":"textup"},toe=(e,t)=>{var n=e.font;if(n){if(Jre[n])return t.withTextFontFamily(Jre[n]);if(eoe[n])return t.withTextFontWeight(eoe[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Ept[n])};ur({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"text",mode:n.mode,body:Ea(o),font:r}},htmlBuilder(e,t){var n=toe(e,t),r=ns(e.body,n,!0);return tn.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=toe(e,t);return p0(e.body,n)}});ur({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Zo(e.body,t),r=tn.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=tn.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return tn.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new zn.MathNode("mo",[new zn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new zn.MathNode("munder",[Di(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ur({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Zo(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return tn.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new zn.MathNode("mpadded",[Di(e.body,t)],["vcenter"])}});ur({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Hn("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=noe(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];a==="~"&&(a="\\textasciitilde"),r.push(tn.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return tn.makeSpan(["mord","text"].concat(o.sizingClasses(t)),tn.tryCombineChars(r),o)},mathmlBuilder(e,t){var n=new zn.TextNode(noe(e)),r=new zn.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var noe=e=>e.body.replace(/ /g,e.star?"␣":" "),mh=h3e,q3e=`[ \r
- ]`,kpt="\\\\[a-zA-Z@]+",Tpt="\\\\[^\uD800-\uDFFF]",_pt="("+kpt+")"+q3e+"*",Dpt=`\\\\(
- |[ \r ]+
- ?)[ \r ]*`,NF="[̀-ͯ]",Ipt=new RegExp(NF+"+$"),Opt="("+q3e+"+)|"+(Dpt+"|")+"([!-\\[\\]-‧-豈-]"+(NF+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(NF+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+_pt)+("|"+Tpt+")");class roe{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Opt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new au("EOF",new Al(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Hn("Unexpected character: '"+t[n]+"'",new au(t[n],new Al(this,n,n+1)));var o=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[o]===14){var i=t.indexOf(`
- `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new au(o,new Al(this,n,this.tokenRegex.lastIndex))}}class Mpt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Hn("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Ppt=R3e;ot("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ot("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ot("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ot("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ot("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ot("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ot("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var ooe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ot("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Hn("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=ooe[t.text],r==null||r>=n)throw new Hn("Invalid base-"+n+" digit "+t.text);for(var o;(o=ooe[e.future().text])!=null&&o<n;)r*=n,r+=o,e.popToken()}return"\\@char{"+r+"}"});var lq=(e,t,n,r)=>{var o=e.consumeArg().tokens;if(o.length!==1)throw new Hn("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new Hn("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Hn("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Hn("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return a&&r||e.macros.set(i,{tokens:o,numArgs:s}),""};ot("\\newcommand",e=>lq(e,!1,!0,!1));ot("\\renewcommand",e=>lq(e,!0,!1,!1));ot("\\providecommand",e=>lq(e,!0,!0,!0));ot("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ot("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ot("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),mh[n],Li.math[n],Li.text[n]),""});ot("\\bgroup","{");ot("\\egroup","}");ot("~","\\nobreakspace");ot("\\lq","`");ot("\\rq","'");ot("\\aa","\\r a");ot("\\AA","\\r A");ot("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ot("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ot("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ot("ℬ","\\mathscr{B}");ot("ℰ","\\mathscr{E}");ot("ℱ","\\mathscr{F}");ot("ℋ","\\mathscr{H}");ot("ℐ","\\mathscr{I}");ot("ℒ","\\mathscr{L}");ot("ℳ","\\mathscr{M}");ot("ℛ","\\mathscr{R}");ot("ℭ","\\mathfrak{C}");ot("ℌ","\\mathfrak{H}");ot("ℨ","\\mathfrak{Z}");ot("\\Bbbk","\\Bbb{k}");ot("·","\\cdotp");ot("\\llap","\\mathllap{\\textrm{#1}}");ot("\\rlap","\\mathrlap{\\textrm{#1}}");ot("\\clap","\\mathclap{\\textrm{#1}}");ot("\\mathstrut","\\vphantom{(}");ot("\\underbar","\\underline{\\text{#1}}");ot("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ot("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ot("\\ne","\\neq");ot("≠","\\neq");ot("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ot("∉","\\notin");ot("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ot("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ot("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ot("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ot("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ot("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ot("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ot("⟂","\\perp");ot("‼","\\mathclose{!\\mkern-0.8mu!}");ot("∌","\\notni");ot("⌜","\\ulcorner");ot("⌝","\\urcorner");ot("⌞","\\llcorner");ot("⌟","\\lrcorner");ot("©","\\copyright");ot("®","\\textregistered");ot("️","\\textregistered");ot("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ot("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ot("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ot("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ot("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ot("⋮","\\vdots");ot("\\varGamma","\\mathit{\\Gamma}");ot("\\varDelta","\\mathit{\\Delta}");ot("\\varTheta","\\mathit{\\Theta}");ot("\\varLambda","\\mathit{\\Lambda}");ot("\\varXi","\\mathit{\\Xi}");ot("\\varPi","\\mathit{\\Pi}");ot("\\varSigma","\\mathit{\\Sigma}");ot("\\varUpsilon","\\mathit{\\Upsilon}");ot("\\varPhi","\\mathit{\\Phi}");ot("\\varPsi","\\mathit{\\Psi}");ot("\\varOmega","\\mathit{\\Omega}");ot("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ot("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ot("\\boxed","\\fbox{$\\displaystyle{#1}$}");ot("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ot("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ot("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ot("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ot("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ioe={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ot("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ioe?t=ioe[n]:(n.slice(0,4)==="\\not"||n in Li.math&&["bin","rel"].includes(Li.math[n].group))&&(t="\\dotsb"),t});var uq={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ot("\\dotso",function(e){var t=e.future().text;return t in uq?"\\ldots\\,":"\\ldots"});ot("\\dotsc",function(e){var t=e.future().text;return t in uq&&t!==","?"\\ldots\\,":"\\ldots"});ot("\\cdots",function(e){var t=e.future().text;return t in uq?"\\@cdots\\,":"\\@cdots"});ot("\\dotsb","\\cdots");ot("\\dotsm","\\cdots");ot("\\dotsi","\\!\\cdots");ot("\\dotsx","\\ldots\\,");ot("\\DOTSI","\\relax");ot("\\DOTSB","\\relax");ot("\\DOTSX","\\relax");ot("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ot("\\,","\\tmspace+{3mu}{.1667em}");ot("\\thinspace","\\,");ot("\\>","\\mskip{4mu}");ot("\\:","\\tmspace+{4mu}{.2222em}");ot("\\medspace","\\:");ot("\\;","\\tmspace+{5mu}{.2777em}");ot("\\thickspace","\\;");ot("\\!","\\tmspace-{3mu}{.1667em}");ot("\\negthinspace","\\!");ot("\\negmedspace","\\tmspace-{4mu}{.2222em}");ot("\\negthickspace","\\tmspace-{5mu}{.277em}");ot("\\enspace","\\kern.5em ");ot("\\enskip","\\hskip.5em\\relax");ot("\\quad","\\hskip1em\\relax");ot("\\qquad","\\hskip2em\\relax");ot("\\tag","\\@ifstar\\tag@literal\\tag@paren");ot("\\tag@paren","\\tag@literal{({#1})}");ot("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Hn("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ot("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ot("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ot("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ot("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ot("\\newline","\\\\\\relax");ot("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var G3e=Xn(Ad["Main-Regular"][84][1]-.7*Ad["Main-Regular"][65][1]);ot("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+G3e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ot("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+G3e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ot("\\hspace","\\@ifstar\\@hspacer\\@hspace");ot("\\@hspace","\\hskip #1\\relax");ot("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ot("\\ordinarycolon",":");ot("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ot("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ot("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ot("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ot("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ot("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ot("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ot("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ot("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ot("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ot("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ot("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ot("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ot("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ot("∷","\\dblcolon");ot("∹","\\eqcolon");ot("≔","\\coloneqq");ot("≕","\\eqqcolon");ot("⩴","\\Coloneqq");ot("\\ratio","\\vcentcolon");ot("\\coloncolon","\\dblcolon");ot("\\colonequals","\\coloneqq");ot("\\coloncolonequals","\\Coloneqq");ot("\\equalscolon","\\eqqcolon");ot("\\equalscoloncolon","\\Eqqcolon");ot("\\colonminus","\\coloneq");ot("\\coloncolonminus","\\Coloneq");ot("\\minuscolon","\\eqcolon");ot("\\minuscoloncolon","\\Eqcolon");ot("\\coloncolonapprox","\\Colonapprox");ot("\\coloncolonsim","\\Colonsim");ot("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ot("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ot("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ot("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ot("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ot("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ot("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ot("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ot("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ot("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ot("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ot("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ot("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ot("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ot("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ot("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ot("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ot("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ot("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ot("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ot("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ot("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ot("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ot("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ot("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ot("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ot("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ot("\\imath","\\html@mathml{\\@imath}{ı}");ot("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ot("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ot("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ot("⟦","\\llbracket");ot("⟧","\\rrbracket");ot("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ot("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ot("⦃","\\lBrace");ot("⦄","\\rBrace");ot("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ot("⦵","\\minuso");ot("\\darr","\\downarrow");ot("\\dArr","\\Downarrow");ot("\\Darr","\\Downarrow");ot("\\lang","\\langle");ot("\\rang","\\rangle");ot("\\uarr","\\uparrow");ot("\\uArr","\\Uparrow");ot("\\Uarr","\\Uparrow");ot("\\N","\\mathbb{N}");ot("\\R","\\mathbb{R}");ot("\\Z","\\mathbb{Z}");ot("\\alef","\\aleph");ot("\\alefsym","\\aleph");ot("\\Alpha","\\mathrm{A}");ot("\\Beta","\\mathrm{B}");ot("\\bull","\\bullet");ot("\\Chi","\\mathrm{X}");ot("\\clubs","\\clubsuit");ot("\\cnums","\\mathbb{C}");ot("\\Complex","\\mathbb{C}");ot("\\Dagger","\\ddagger");ot("\\diamonds","\\diamondsuit");ot("\\empty","\\emptyset");ot("\\Epsilon","\\mathrm{E}");ot("\\Eta","\\mathrm{H}");ot("\\exist","\\exists");ot("\\harr","\\leftrightarrow");ot("\\hArr","\\Leftrightarrow");ot("\\Harr","\\Leftrightarrow");ot("\\hearts","\\heartsuit");ot("\\image","\\Im");ot("\\infin","\\infty");ot("\\Iota","\\mathrm{I}");ot("\\isin","\\in");ot("\\Kappa","\\mathrm{K}");ot("\\larr","\\leftarrow");ot("\\lArr","\\Leftarrow");ot("\\Larr","\\Leftarrow");ot("\\lrarr","\\leftrightarrow");ot("\\lrArr","\\Leftrightarrow");ot("\\Lrarr","\\Leftrightarrow");ot("\\Mu","\\mathrm{M}");ot("\\natnums","\\mathbb{N}");ot("\\Nu","\\mathrm{N}");ot("\\Omicron","\\mathrm{O}");ot("\\plusmn","\\pm");ot("\\rarr","\\rightarrow");ot("\\rArr","\\Rightarrow");ot("\\Rarr","\\Rightarrow");ot("\\real","\\Re");ot("\\reals","\\mathbb{R}");ot("\\Reals","\\mathbb{R}");ot("\\Rho","\\mathrm{P}");ot("\\sdot","\\cdot");ot("\\sect","\\S");ot("\\spades","\\spadesuit");ot("\\sub","\\subset");ot("\\sube","\\subseteq");ot("\\supe","\\supseteq");ot("\\Tau","\\mathrm{T}");ot("\\thetasym","\\vartheta");ot("\\weierp","\\wp");ot("\\Zeta","\\mathrm{Z}");ot("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ot("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ot("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ot("\\bra","\\mathinner{\\langle{#1}|}");ot("\\ket","\\mathinner{|{#1}\\rangle}");ot("\\braket","\\mathinner{\\langle{#1}\\rangle}");ot("\\Bra","\\left\\langle#1\\right|");ot("\\Ket","\\left|#1\\right\\rangle");var K3e=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=c=>f=>{e&&(f.macros.set("|",a),o.length&&f.macros.set("\\|",s));var p=c;if(!c&&o.length){var v=f.future();v.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?o:r,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...i,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ot("\\bra@ket",K3e(!1));ot("\\bra@set",K3e(!0));ot("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ot("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ot("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ot("\\angln","{\\angl n}");ot("\\blue","\\textcolor{##6495ed}{#1}");ot("\\orange","\\textcolor{##ffa500}{#1}");ot("\\pink","\\textcolor{##ff00af}{#1}");ot("\\red","\\textcolor{##df0030}{#1}");ot("\\green","\\textcolor{##28ae7b}{#1}");ot("\\gray","\\textcolor{gray}{#1}");ot("\\purple","\\textcolor{##9d38bd}{#1}");ot("\\blueA","\\textcolor{##ccfaff}{#1}");ot("\\blueB","\\textcolor{##80f6ff}{#1}");ot("\\blueC","\\textcolor{##63d9ea}{#1}");ot("\\blueD","\\textcolor{##11accd}{#1}");ot("\\blueE","\\textcolor{##0c7f99}{#1}");ot("\\tealA","\\textcolor{##94fff5}{#1}");ot("\\tealB","\\textcolor{##26edd5}{#1}");ot("\\tealC","\\textcolor{##01d1c1}{#1}");ot("\\tealD","\\textcolor{##01a995}{#1}");ot("\\tealE","\\textcolor{##208170}{#1}");ot("\\greenA","\\textcolor{##b6ffb0}{#1}");ot("\\greenB","\\textcolor{##8af281}{#1}");ot("\\greenC","\\textcolor{##74cf70}{#1}");ot("\\greenD","\\textcolor{##1fab54}{#1}");ot("\\greenE","\\textcolor{##0d923f}{#1}");ot("\\goldA","\\textcolor{##ffd0a9}{#1}");ot("\\goldB","\\textcolor{##ffbb71}{#1}");ot("\\goldC","\\textcolor{##ff9c39}{#1}");ot("\\goldD","\\textcolor{##e07d10}{#1}");ot("\\goldE","\\textcolor{##a75a05}{#1}");ot("\\redA","\\textcolor{##fca9a9}{#1}");ot("\\redB","\\textcolor{##ff8482}{#1}");ot("\\redC","\\textcolor{##f9685d}{#1}");ot("\\redD","\\textcolor{##e84d39}{#1}");ot("\\redE","\\textcolor{##bc2612}{#1}");ot("\\maroonA","\\textcolor{##ffbde0}{#1}");ot("\\maroonB","\\textcolor{##ff92c6}{#1}");ot("\\maroonC","\\textcolor{##ed5fa6}{#1}");ot("\\maroonD","\\textcolor{##ca337c}{#1}");ot("\\maroonE","\\textcolor{##9e034e}{#1}");ot("\\purpleA","\\textcolor{##ddd7ff}{#1}");ot("\\purpleB","\\textcolor{##c6b9fc}{#1}");ot("\\purpleC","\\textcolor{##aa87ff}{#1}");ot("\\purpleD","\\textcolor{##7854ab}{#1}");ot("\\purpleE","\\textcolor{##543b78}{#1}");ot("\\mintA","\\textcolor{##f5f9e8}{#1}");ot("\\mintB","\\textcolor{##edf2df}{#1}");ot("\\mintC","\\textcolor{##e0e5cc}{#1}");ot("\\grayA","\\textcolor{##f6f7f7}{#1}");ot("\\grayB","\\textcolor{##f0f1f2}{#1}");ot("\\grayC","\\textcolor{##e3e5e6}{#1}");ot("\\grayD","\\textcolor{##d6d8da}{#1}");ot("\\grayE","\\textcolor{##babec2}{#1}");ot("\\grayF","\\textcolor{##888d93}{#1}");ot("\\grayG","\\textcolor{##626569}{#1}");ot("\\grayH","\\textcolor{##3b3e40}{#1}");ot("\\grayI","\\textcolor{##21242c}{#1}");ot("\\kaBlue","\\textcolor{##314453}{#1}");ot("\\kaGreen","\\textcolor{##71B307}{#1}");var Q3e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Npt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Mpt(Ppt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new roe(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:r}=this.consumeArg(["]"])}else({tokens:o,start:n,end:r}=this.consumeArg());return this.pushToken(new au("EOF",r.loc)),this.pushTokens(o),new au("",Al.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var o=this.future(),i,a=0,s=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++a;else if(i.text==="}"){if(--a,a===-1)throw new Hn("Extra }",i)}else if(i.text==="EOF")throw new Hn("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",i);if(t&&r)if((a===0||a===1&&t[s]==="{")&&i.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(a!==0||r);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Hn("The length of delimiters doesn't match the number of args!");for(var r=n[0],o=0;o<r.length;o++){var i=this.popToken();if(r[o]!==i.text)throw new Hn("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<t;s++)a.push(this.consumeArg(n&&n[s+1]).tokens);return a}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Hn("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,o=n.noexpand?null:this._getExpansion(r);if(o==null||t&&o.unexpandable){if(t&&o==null&&r[0]==="\\"&&!this.isDefined(r))throw new Hn("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var i=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){i=i.slice();for(var s=i.length-1;s>=0;--s){var l=i[s];if(l.text==="#"){if(s===0)throw new Hn("Incomplete placeholder at end of macro body",l);if(l=i[--s],l.text==="#")i.splice(s+1,1);else if(/^[1-9]$/.test(l.text))i.splice(s,2,...a[+l.text-1]);else throw new Hn("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new au(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var i=0;if(o.indexOf("#")!==-1)for(var a=o.replace(/##/g,"");a.indexOf("#"+(i+1))!==-1;)++i;for(var s=new roe(o,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return o}isDefined(t){return this.macros.has(t)||mh.hasOwnProperty(t)||Li.math.hasOwnProperty(t)||Li.text.hasOwnProperty(t)||Q3e.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:mh.hasOwnProperty(t)&&!mh[t].primitive}}var aoe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qx=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),iM={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},soe={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class QD{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Npt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Hn("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new au("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(QD.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||t&&mh[o.text]&&mh[o.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;r.push(i)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,o=0;o<t.length;o++)if(t[o].type==="infix"){if(n!==-1)throw new Hn("only one infix operator per group",t[o].token);n=o,r=t[o].replaceWith}if(n!==-1&&r){var i,a,s=t.slice(0,n),l=t.slice(n+1);s.length===1&&s[0].type==="ordgroup"?i=s[0]:i={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l};var u;return r==="\\\\abovefrac"?u=this.callFunction(r,[i,t[n],a],[]):u=this.callFunction(r,[i,a],[]),[u]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var o;do{var i;o=this.parseGroup(t)}while(((i=o)==null?void 0:i.type)==="internal");if(!o)throw new Hn("Expected group after '"+r+"'",n);return o}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var o={type:"text",mode:this.mode,body:n},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return i}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var r,o;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var a=i.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new Hn("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(r)throw new Hn("Double superscript",i);r=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(o)throw new Hn("Double subscript",i);o=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(r)throw new Hn("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(Qx[i.text]){var u=aoe.test(i.text),d=[];for(d.push(new au(Qx[i.text])),this.consume();;){var c=this.fetch().text;if(!Qx[c]||aoe.test(c)!==u)break;d.unshift(new au(Qx[c])),this.consume()}var f=this.subparse(d);u?o={type:"ordgroup",mode:"math",body:f}:r={type:"ordgroup",mode:"math",body:f}}else break}return r||o?{type:"supsub",mode:this.mode,base:n,sup:r,sub:o}:n}parseFunction(t,n){var r=this.fetch(),o=r.text,i=mh[o];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new Hn("Got function '"+o+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!i.allowedInText)throw new Hn("Can't use function '"+o+"' in text mode",r);if(this.mode==="math"&&i.allowedInMath===!1)throw new Hn("Can't use function '"+o+"' in math mode",r);var{args:a,optArgs:s}=this.parseArguments(o,i);return this.callFunction(o,a,s,r,t)}callFunction(t,n,r,o,i){var a={funcName:t,parser:this,token:o,breakOnTokenText:i},s=mh[t];if(s&&s.handler)return s.handler(a,n,r);throw new Hn("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var o=[],i=[],a=0;a<r;a++){var s=n.argTypes&&n.argTypes[a],l=a<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&a===1&&i[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)i.push(u);else if(u!=null)o.push(u);else throw new Hn("Null argument, please report this as a bug")}return{args:o,optArgs:i}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var o=this.parseArgumentGroup(r,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",r);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(r)throw new Hn("A primitive argument cannot be optional");var a=this.parseGroup(t);if(a==null)throw new Hn("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Hn("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var o="",i;(i=this.fetch()).text!=="EOF";)o+=i.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(t,n){for(var r=this.fetch(),o=r,i="",a;(a=this.fetch()).text!=="EOF"&&t.test(i+a.text);)o=a,i+=o.text,this.consume();if(i==="")throw new Hn("Invalid "+n+": '"+r.text+"'",r);return r.range(o,i)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Hn("Invalid color: '"+n.text+"'",n);var o=r[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new Hn("Invalid size: '"+n.text+"'",n);var i={number:+(o[1]+o[2]),unit:o[3]};if(!i3e(i))throw new Hn("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return n&&this.switchMode(o),a}parseGroup(t,n){var r=this.fetch(),o=r.text,i;if(o==="{"||o==="\\begingroup"){this.consume();var a=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:Al.range(r,l),body:s,semisimple:o==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&o[0]==="\\"&&!Q3e.hasOwnProperty(o)){if(this.settings.throwOnError)throw new Hn("Undefined control sequence: "+o,r);i=this.formatUnsupportedCmd(o),this.consume()}return i}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var o=t[r],i=o.text;i==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:Al.range(o,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:Al.range(o,t[r+1]),text:"--"}),n-=1)),(i==="'"||i==="`")&&t[r+1].text===i&&(t.splice(r,2,{type:"textord",mode:"text",loc:Al.range(o,t[r+1]),text:i+i}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),o=r.charAt(0)==="*";if(o&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Hn(`\\verb assertion failed --
- please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:o}}soe.hasOwnProperty(n[0])&&!Li[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=soe[n[0]]+n.slice(1));var i=Ipt.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var a;if(Li[this.mode][n]){this.settings.strict&&this.mode==="math"&&DF.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=Li[this.mode][n].group,l=Al.range(t),u;if(Cft.hasOwnProperty(s)){var d=s;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:s,mode:this.mode,loc:l,text:n};a=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(o3e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),a={type:"textord",mode:"text",loc:Al.range(t),text:n};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var f=i[0][c];if(!iM[f])throw new Hn("Unknown accent ' "+f+"'",t);var p=iM[f][this.mode]||iM[f].text;if(!p)throw new Hn("Accent "+f+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:Al.range(t),label:p,isStretchy:!1,isShifty:!0,base:a}}return a}}QD.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var cq=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new QD(t,n);delete r.gullet.macros.current["\\df@tag"];var o=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Hn("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:r.subparse([new au("\\df@tag")])}]}return o},Y3e=function(t,n,r){n.textContent="";var o=dq(t,r).toNode();n.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Y3e=function(){throw new Hn("KaTeX doesn't work in quirks mode.")});var Rpt=function(t,n){var r=dq(t,n).toMarkup();return r},Bpt=function(t,n){var r=new qV(n);return cq(t,r)},Z3e=function(t,n,r){if(r.throwOnError||!(t instanceof Hn))throw t;var o=tn.makeSpan(["katex-error"],[new Zu(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+r.errorColor),o},dq=function(t,n){var r=new qV(n);try{var o=cq(t,r);return Vft(o,t,r)}catch(i){return Z3e(i,t,r)}},Lpt=function(t,n){var r=new qV(n);try{var o=cq(t,r);return qft(o,t,r)}catch(i){return Z3e(i,t,r)}},Fpt="0.16.25",Upt={Span:GC,Anchor:QV,SymbolNode:Zu,SvgNode:np,PathNode:f0,LineNode:_F},$pt={version:Fpt,render:Y3e,renderToString:Rpt,ParseError:Hn,SETTINGS_SCHEMA:u8,__parse:Bpt,__renderToDomTree:dq,__renderToHTMLTree:Lpt,__setFontMetrics:hft,__defineSymbol:ge,__defineFunction:ur,__defineMacro:ot,__domTree:Upt};const Yx=(e,t=!1)=>{try{return $pt.renderToString(e,{displayMode:t,throwOnError:!1,output:"html",strict:!1,trust:!1,macros:{"\\RR":"\\mathbb{R}","\\NN":"\\mathbb{N}","\\ZZ":"\\mathbb{Z}","\\QQ":"\\mathbb{Q}","\\CC":"\\mathbb{C}"}})}catch(n){return console.error("KaTeX 渲染错误:",n),`<span class="katex-error" style="color: red;">${e}</span>`}},zpt=e=>{if(!e)return e;let t=e;return t=t.replace(/\$\$([\s\S]+?)\$\$/g,(n,r)=>{const o=r.trim();return`<div class="katex-block-wrapper">${Yx(o,!0)}</div>`}),t=t.replace(new RegExp('(?<!<div class="katex-block-wrapper">.*)\\$([^\\$\\n]+?)\\$(?!.*<\\/div>)',"g"),(n,r)=>{const o=r.trim();return`<span class="katex-inline-wrapper">${Yx(o,!1)}</span>`}),t=t.replace(/\\\((.+?)\\\)/g,(n,r)=>{const o=r.trim();return`<span class="katex-inline-wrapper">${Yx(o,!1)}</span>`}),t=t.replace(/\\\[([\s\S]+?)\\\]/g,(n,r)=>{const o=r.trim();return`<div class="katex-block-wrapper">${Yx(o,!0)}</div>`}),t},jpt={link(e){let t,n,r;typeof e=="object"&&e!==null?(t=e.href||e.url||"#",n=e.text||e.title||t,r=e.title||t):(t=arguments[0]||"#",n=arguments[2]||arguments[1]||t,r=arguments[1]||t),t=String(t),n=String(n),r=String(r);const o=c=>c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),i=o(t),a=o(n),s=o(r),l=`
- display: inline-flex;
- align-items: center;
- gap: 4px;
- background-color: #E8EAED;
- color: #5F6368;
- font-size: 13px;
- padding: 4px 10px;
- border-radius: 12px;
- cursor: pointer;
- margin: 0 4px;
- border: 1px solid #DADCE0;
- font-weight: 500;
- transition: all 0.2s ease;
- line-height: 1.4;
- max-width: 300px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- vertical-align: middle;
- text-decoration: none;
- `.replace(/\s+/g," ").trim();return`<a
- href="${i}"
- class="link-capsule"
- data-link="${i}"
- style="${l}"
- onmouseover="
- this.style.backgroundColor='#D2D4D8';
- this.style.borderColor='#BABDBF';
- this.style.boxShadow='0 1px 3px rgba(0, 0, 0, 0.1)';
- "
- onmouseout="
- this.style.backgroundColor='#E8EAED';
- this.style.borderColor='#DADCE0';
- this.style.boxShadow='none';
- "
- title="${s}"
- ><span style="font-size: 12px;">🔗</span><span>${a}</span></a>`}};ui.use({renderer:jpt,breaks:!0,gfm:!0,headerIds:!1,mangle:!1});const Tg=e=>{if(!e)return"";try{let t=String(e);t=zpt(t);const n=ui.parse(t);return $dt.sanitize(n,{ALLOWED_TAGS:["h1","h2","h3","h4","h5","h6","p","br","hr","strong","em","u","s","code","pre","ul","ol","li","blockquote","a","table","thead","tbody","tr","th","td","div","span","math","semantics","mrow","mi","mn","mo","mfrac","msup","msub","msubsup","mtext","mspace","annotation","menclose","mover","munder","munderover","mtable","mtr","mtd","msqrt","mroot","mpadded","mphantom","mglyph","svg","path","line","rect","circle","use","g","defs","symbol","foreignObject"],ALLOWED_ATTR:["href","target","rel","class","style","xmlns","aria-hidden","focusable","viewBox","width","height","preserveAspectRatio","encoding","x","y","dx","dy","d","fill","stroke","stroke-width","transform","mathvariant","stretchy","symmetric","largeop","movablelimits","form","id","data-*","xmlns:xlink","xlink:href"],ALLOW_DATA_ATTR:!0})}catch(t){return console.error("Markdown 渲染失败:",t),String(e).replace(/\n/g,"<br>")}},Hpt={class:"category-section"},Wpt={class:"category-info"},Vpt={class:"category-name"},qpt={__name:"CategoryTitle",props:{category:{type:String,required:!0},number:{type:String,required:!0},count:{type:Number,required:!0}},emits:["toggle"],setup(e,{emit:t}){const n=e,r=t,o=Q(!0),i=()=>{o.value=!o.value,r("toggle",{category:n.category,expanded:o.value})};return jn(()=>{r("toggle",{category:n.category,expanded:!0})}),(a,s)=>{const l=sr("el-icon"),u=sr("el-tag");return F(),K("div",Hpt,[x("div",{class:"category-header",onClick:i},[x("div",Wpt,[Ve(l,{class:re(["expand-icon",{expanded:o.value}])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]),x("span",Vpt,We(e.category),1)]),Ve(u,{type:"info",size:"small",class:"count-tag"},{default:nt(()=>[xn(We(e.count)+"个文件",1)]),_:1})])])}}},X3e=Qo(qpt,[["__scopeId","data-v-f9d29125"]]),Gpt=["innerHTML"],Kpt={__name:"StreamMarkdown",props:{content:{type:String,default:""},streaming:{type:Boolean,default:!1},typewriterSpeed:{type:Number,default:10}},setup(e){const t=e,n=Q(""),r=Q(""),o=Q(0);let i=null;const a=()=>{if(o.value<r.value.length){const l=Math.max(1,Math.floor(t.typewriterSpeed/30));o.value=Math.min(o.value+l,r.value.length);const u=r.value.substring(0,o.value);n.value=Tg(u),i=setTimeout(a,1e3/30)}else n.value=Tg(r.value)},s=()=>{i&&(clearTimeout(i),i=null)};return St(()=>t.content,l=>{r.value=l,t.streaming&&l.length>o.value?i||a():t.streaming||(s(),o.value=l.length,n.value=Tg(l))},{immediate:!0}),St(()=>t.streaming,l=>{l||(s(),o.value=r.value.length,n.value=Tg(r.value))}),jn(()=>{t.content&&(r.value=t.content,t.streaming?a():n.value=Tg(t.content))}),hl(()=>{s()}),(l,u)=>(F(),K("div",{class:"stream-markdown",innerHTML:n.value},null,8,Gpt))}},ay=Qo(Kpt,[["__scopeId","data-v-b4cf4942"]]),Qpt={class:"card-header"},Ypt={class:"file-info"},Zpt={class:"file-details"},Xpt={class:"file-name"},Jpt={class:"file-meta"},eht={class:"link-text"},tht={class:"actions"},nht={class:"report-content"},rht={key:0,class:"error-message"},oht={key:1},iht={class:"report-section"},aht={class:"section-content"},sht={class:"report-section"},lht={class:"section-content"},uht={key:0,class:"report-section"},cht={class:"section-content"},dht={class:"iframe-container"},fht=["src"],pht={key:1,class:"iframe-error"},hht={__name:"FileReportCard",props:{report:{type:Object,required:!0}},emits:["preview-file"],setup(e,{emit:t}){const n=e,r=t,o=Q(!1),i=Q(""),a=Q(""),s=Q(!0),l=Q(!0),u=Q(!0),d=J(()=>({"status-processing":n.report.status==="processing","status-completed":n.report.status==="completed","status-error":n.report.status==="error"})),c=J(()=>{console.log("🔗 [DEBUG] FileReportCard report对象:",{file_index:n.report.file_index,source_file:n.report.source_file,file_path:n.report.file_path,metadata:n.report.metadata,完整report:n.report});const y=n.report.metadata?.source_url||n.report.metadata?.url||n.report.metadata?.link||n.report.metadata?.file_url||n.report.source_url||n.report.url||n.report.link||null;return console.log("🔗 [DEBUG] 找到的URL:",y),y}),f=y=>{if(!y)return"";try{return new URL(y).hostname}catch{return"查看来源"}},p=()=>{c.value&&(i.value=$4e(c.value),a.value=n.report.report?.display_name||n.report.source_file||"文件预览",o.value=!0,console.log("📄 [来源链接预览] 原始URL:",c.value),console.log("📄 [来源链接预览] 转换后URL:",i.value))},v=()=>{if(n.report.file_path){const y=n.report.report?.display_name||n.report.source_file||"未命名文件";r("preview-file",{filePath:n.report.file_path,fileName:y})}},h=async()=>{const y=`
- 文件名: ${n.report.source_file}
- 主要分类: ${n.report.metadata?.primary_category||"未分类"}
- 场景分类: ${n.report.metadata?.secondary_category||"未分类"}
- 相似度: ${(n.report.similarity*100).toFixed(1)}%
- 🔹文件分析总述
- ${n.report.report?.summary||""}
- 🔹文件内容解读
- ${n.report.report?.analysis||""}
- ${n.report.report?.clauses?`🔹相关条款提取
- `+n.report.report.clauses:""}
- `.trim();try{await navigator.clipboard.writeText(y),Ct.success("报告已复制到剪贴板")}catch{Ct.error("复制失败")}},g=()=>{i.value&&window.open(i.value,"_blank")};return(y,m)=>{const b=sr("el-icon"),w=sr("el-tag"),A=sr("el-button"),S=sr("el-tooltip"),k=sr("el-alert"),M=sr("el-card");return F(),mt(M,{class:re(["file-report-card",d.value]),shadow:"hover"},{header:nt(()=>[x("div",Qpt,[x("div",Ypt,[Ve(b,{class:"file-icon"},{default:nt(()=>[Ve(C(Ty))]),_:1}),x("div",Zpt,[x("div",Xpt,We(e.report.report.display_name||e.report.source_file),1),x("div",Jpt,[Ve(w,{size:"small",type:"info"},{default:nt(()=>[xn(" 文件 "+We(e.report.file_index)+"/"+We(e.report.total_files),1)]),_:1}),e.report.metadata?.primary_category?(F(),mt(w,{key:0,size:"small",type:"success"},{default:nt(()=>[xn(We(e.report.metadata.primary_category),1)]),_:1})):xe("",!0),e.report.metadata?.secondary_category?(F(),mt(w,{key:1,size:"small"},{default:nt(()=>[xn(We(e.report.metadata.secondary_category),1)]),_:1})):xe("",!0)]),c.value?(F(),K("div",{key:0,class:"file-source-link",onClick:p},[Ve(b,{class:"link-icon"},{default:nt(()=>[Ve(C(Yme))]),_:1}),x("span",eht,We(f(c.value)),1)])):xe("",!0)])]),x("div",tht,[e.report.file_path?(F(),mt(S,{key:0,content:"查看文件",placement:"top"},{default:nt(()=>[Ve(A,{link:"",type:"primary",onClick:v},{default:nt(()=>[Ve(b,null,{default:nt(()=>[Ve(C(Jme))]),_:1})]),_:1})]),_:1})):xe("",!0),Ve(S,{content:"复制报告",placement:"top"},{default:nt(()=>[Ve(A,{link:"",type:"primary",onClick:h},{default:nt(()=>[Ve(b,null,{default:nt(()=>[Ve(C(UBe))]),_:1})]),_:1})]),_:1})])])]),default:nt(()=>[x("div",nht,[e.report.status==="error"?(F(),K("div",rht,[Ve(k,{title:"生成报告时出错",type:"error",description:e.report.report.summary,closable:!1},null,8,["description"])])):(F(),K("div",oht,[x("div",iht,[x("h3",{class:"section-title collapsible",onClick:m[0]||(m[0]=D=>s.value=!s.value)},[Ve(b,{class:re(["collapse-icon",{collapsed:!s.value}])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]),m[4]||(m[4]=x("span",null,"🔹文件分析总述",-1))]),Ve(Wi,{name:"collapse"},{default:nt(()=>[ln(x("div",aht,[Ve(ay,{content:e.report.report?.summary||"",streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[Ar,s.value]])]),_:1})]),x("div",sht,[x("h3",{class:"section-title collapsible",onClick:m[1]||(m[1]=D=>l.value=!l.value)},[Ve(b,{class:re(["collapse-icon",{collapsed:!l.value}])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]),m[5]||(m[5]=x("span",null,"🔹文件内容解读",-1))]),Ve(Wi,{name:"collapse"},{default:nt(()=>[ln(x("div",lht,[Ve(ay,{content:e.report.report?.analysis||"",streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[Ar,l.value]])]),_:1})]),e.report.report?.clauses?(F(),K("div",uht,[x("h3",{class:"section-title collapsible",onClick:m[2]||(m[2]=D=>u.value=!u.value)},[Ve(b,{class:re(["collapse-icon",{collapsed:!u.value}])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]),m[6]||(m[6]=x("span",null,"🔹相关条款提取",-1))]),Ve(Wi,{name:"collapse"},{default:nt(()=>[ln(x("div",cht,[Ve(ay,{content:e.report.report.clauses,streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[Ar,u.value]])]),_:1})])):xe("",!0)]))]),Ve(C(Bye),{modelValue:o.value,"onUpdate:modelValue":m[3]||(m[3]=D=>o.value=D),title:a.value,width:"90%",top:"5vh","close-on-click-modal":!1,"append-to-body":""},{default:nt(()=>[x("div",dht,[i.value?(F(),K("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,fht)):(F(),K("div",pht,[Ve(b,{class:"error-icon"},{default:nt(()=>[Ve(C(Nb))]),_:1}),m[8]||(m[8]=x("p",null,"无法加载网页预览",-1)),Ve(A,{type:"primary",onClick:g},{default:nt(()=>m[7]||(m[7]=[xn("在新标签页中打开",-1)])),_:1,__:[7]})]))])]),_:1},8,["modelValue","title"])]),_:1},8,["class"])}}},J3e=Qo(hht,[["__scopeId","data-v-26729d39"]]),ght={class:"export-button-container"},vht={__name:"ExportButton",props:{reports:{type:Array,required:!0},title:{type:String,default:"AI问题分析报告"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=Q(!1),r=async o=>{if(!t.reports||t.reports.length===0){Ct.warning("没有可导出的报告");return}n.value=!0;try{const i=await fetch(BV("/report/export"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({report_content:t.reports,format:o,title:t.title})});if(!i.ok)throw new Error("导出失败");const a=await i.json();let s=a.download_url;s.startsWith("/api/v1")&&(s=`/chatwithai${s}`);const l=await fetch(s);if(!l.ok)throw new Error("下载失败");const u=await l.blob(),d=window.URL.createObjectURL(u),c=document.createElement("a");c.href=d,c.download=a.filename,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(d),Ct.success(`报告已导出为${o.toUpperCase()}格式`)}catch(i){console.error("导出失败:",i),Ct.error(`导出失败: ${i.message}`)}finally{n.value=!1}};return(o,i)=>{const a=sr("el-icon"),s=sr("el-button"),l=sr("el-dropdown-item"),u=sr("el-dropdown-menu"),d=sr("el-dropdown");return F(),K("div",ght,[Ve(d,{onCommand:r,disabled:e.disabled||n.value},{dropdown:nt(()=>[Ve(u,null,{default:nt(()=>[Ve(l,{command:"pdf"},{default:nt(()=>[Ve(a,null,{default:nt(()=>[Ve(C(Ty))]),_:1}),i[0]||(i[0]=xn(" 导出为PDF ",-1))]),_:1,__:[0]}),Ve(l,{command:"docx"},{default:nt(()=>[Ve(a,null,{default:nt(()=>[Ve(C(Ty))]),_:1}),i[1]||(i[1]=xn(" 导出为Word ",-1))]),_:1,__:[1]})]),_:1})]),default:nt(()=>[Ve(s,{type:"success",loading:n.value,disabled:e.disabled},{default:nt(()=>[n.value?xe("",!0):(F(),mt(a,{key:0},{default:nt(()=>[Ve(C(qBe))]),_:1})),xn(" "+We(n.value?"导出中...":"导出报告")+" ",1),Ve(a,{class:"el-icon--right"},{default:nt(()=>[Ve(C(Kc))]),_:1})]),_:1},8,["loading","disabled"])]),_:1},8,["disabled"])])}}},eAe=Qo(vht,[["__scopeId","data-v-2d9af3d9"]]),mht={class:"drawer-header"},yht={class:"header-title"},bht={key:0,class:"file-name-card"},wht={class:"preview-container"},Aht={key:0,class:"iframe-container"},Cht=["src"],xht={key:1,class:"loading-container"},Sht={key:2,class:"error-container"},Eht={key:3,class:"empty-container"},kht={class:"drawer-footer"},Tht={__name:"FilePreviewDrawer",props:{modelValue:{type:Boolean,default:!1},filePath:{type:String,default:""},fileName:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=Q(n.modelValue),i=Q(""),a=Q(!1),s=Q(""),l=Q(!1),u=Q(null);let d=null;St(()=>n.modelValue,g=>{o.value=g,g&&n.filePath&&(console.log("📄 [Drawer] 打开预览,filePath:",n.filePath),f())}),St(()=>n.filePath,g=>{o.value&&g&&(console.log("📄 [Drawer] filePath 变化:",g),f())}),St(o,g=>{r("update:modelValue",g),g||(c(),i.value="",s.value="",l.value=!1)});const c=()=>{d&&(clearTimeout(d),d=null)},f=async()=>{if(!n.filePath){s.value="文件路径为空",l.value=!1;return}a.value=!0,s.value="",l.value=!0,c();try{const g=n.filePath,y=$4e(g);console.log("📄 [文档预览] 原始URL:",g),console.log("📄 [文档预览] 转换后URL:",y),console.log("📄 [文档预览] 当前环境:","生产环境"),i.value=y,d=setTimeout(()=>{l.value&&(l.value=!1,s.value="😔 抱歉,未找到文件链接,正在快马加鞭修复中!",console.warn("⏱️ 文件加载超时 (5秒):",n.filePath))},5e3)}catch(g){console.error("❌ 加载文件失败:",g),s.value="加载文件失败,请稍后重试",l.value=!1}finally{a.value=!1}},p=()=>{console.log("✅ 文件加载成功"),c(),l.value=!1,s.value=""},v=()=>{console.error("❌ 文件加载失败"),c(),l.value=!1,s.value="😔 抱歉,未找到文件链接,正在快马加鞭修复中!"},h=()=>{o.value=!1};return Qr(()=>{c()}),(g,y)=>{const m=sr("el-icon"),b=sr("el-tag"),w=sr("el-button"),A=sr("el-drawer");return F(),mt(A,{modelValue:o.value,"onUpdate:modelValue":y[1]||(y[1]=S=>o.value=S),title:"文件预览",size:"50%","show-close":!0,"close-on-click-modal":!0,"destroy-on-close":""},{header:nt(()=>[x("div",mht,[x("div",yht,[Ve(m,{class:"file-icon"},{default:nt(()=>[Ve(C(Ty))]),_:1}),y[2]||(y[2]=x("span",{class:"title-text"},"文件预览",-1)),e.fileName?(F(),K("div",bht,[Ve(b,{type:"info",size:"large",effect:"plain"},{default:nt(()=>[xn(We(e.fileName),1)]),_:1})])):xe("",!0)])])]),footer:nt(()=>[x("div",kht,[Ve(w,{onClick:h},{default:nt(()=>y[5]||(y[5]=[xn("关闭",-1)])),_:1,__:[5]})])]),default:nt(()=>[x("div",wht,[i.value?(F(),K("div",Aht,[x("div",{class:"iframe-overlay",onContextmenu:y[0]||(y[0]=Qt(()=>{},["prevent"]))},null,32),x("iframe",{ref_key:"iframeRef",ref:u,src:i.value,frameborder:"0",class:"file-iframe",onLoad:p,onError:v},null,40,Cht)])):xe("",!0),l.value&&!s.value?(F(),K("div",xht,[Ve(m,{class:"is-loading",size:40,color:"#5b8def"},{default:nt(()=>[Ve(C(Bc))]),_:1}),y[3]||(y[3]=x("p",null,"文件加载中,请稍候...",-1))])):xe("",!0),s.value?(F(),K("div",Sht,[Ve(m,{size:40,color:"#f56c6c"},{default:nt(()=>[Ve(C(Yd))]),_:1}),x("p",null,We(s.value),1)])):xe("",!0),!i.value&&!l.value&&!s.value?(F(),K("div",Eht,[Ve(m,{size:40,color:"#909399"},{default:nt(()=>[Ve(C(Ty))]),_:1}),y[4]||(y[4]=x("p",null,"暂无预览内容",-1))])):xe("",!0)])]),_:1},8,["modelValue"])}}},_ht=Qo(Tht,[["__scopeId","data-v-119eaee2"]]),Dht={class:"search-previews"},Iht={class:"stacked-icons"},Oht={key:0},Mht={key:0,class:"more-count"},Pht={__name:"WebSearchCapsule",props:{total:{type:Number,default:0},results:{type:Array,default:()=>[]},isExpanded:{type:Boolean,default:!1}},emits:["toggle"],setup(e,{emit:t}){const n=e,r=t,o=Q(!1),i=Q(new Set),a=()=>{r("toggle")},s=J(()=>n.results.slice(0,8).map(u=>{try{const d=new URL(u.url),c=`https://www.google.com/s2/favicons?domain=${d.hostname}&sz=32`;return{initial:d.hostname.charAt(0).toUpperCase(),favicon:c,faviconLoaded:i.value.has(c)}}catch{return{initial:"🌐",favicon:"",faviconLoaded:!0}}})),l=async()=>{const u=s.value.map(d=>d.favicon?new Promise(c=>{const f=new Image;f.onload=()=>{i.value.add(d.favicon),c()},f.onerror=()=>{c()},setTimeout(()=>c(),2e3),f.src=d.favicon}):Promise.resolve());await Promise.all(u),o.value=!0};return St(()=>n.results,()=>{n.results.length>0&&(o.value=!1,i.value.clear(),l())},{immediate:!0}),jn(()=>{n.results.length>0&&l()}),(u,d)=>o.value?(F(),K("div",{key:0,class:"web-search-capsule",onClick:a},[x("div",Dht,[x("div",Iht,[(F(!0),K(Pt,null,an(s.value,(c,f)=>(F(),K("div",{key:f,class:re(["preview-icon",`icon-position-${f}`]),style:Xt({backgroundImage:c.faviconLoaded?`url(${c.favicon})`:"none",zIndex:s.value.length-f})},[c.faviconLoaded?xe("",!0):(F(),K("span",Oht,We(c.initial),1))],6))),128))]),d[0]||(d[0]=x("span",{class:"search-text"},"蜀安AI搜索引擎",-1)),e.total>8?(F(),K("span",Mht,"+"+We(e.total-8),1)):xe("",!0)])])):xe("",!0)}},tAe=Qo(Pht,[["__scopeId","data-v-8e7d2f1e"]]),Nht={key:0,class:"web-search-sidebar"},Rht={class:"sidebar-header"},Bht={class:"sidebar-content"},Lht={class:"results-section"},Fht={class:"results-list"},Uht=["onClick"],$ht={class:"result-header"},zht={class:"result-index"},jht={class:"result-title"},Hht={class:"result-content"},Wht={class:"result-footer"},Vht={class:"result-url"},qht={class:"result-score"},Ght={class:"iframe-container"},Kht=["src"],Qht={key:1,class:"iframe-error"},Yht={__name:"WebSearchSidebar",props:{visible:{type:Boolean,default:!1},results:{type:Array,default:()=>[]},keywords:{type:Array,default:()=>[]},total:{type:Number,default:0}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,o=Q(!1),i=Q(""),a=Q(""),s=()=>{r("update:visible",!1)},l=c=>{a.value=c.title,i.value=c.url,o.value=!0},u=c=>{try{const f=new URL(c);return f.hostname+f.pathname}catch{return c}},d=()=>{i.value&&window.open(i.value,"_blank")};return St(()=>n.visible,c=>{c||(o.value=!1)}),(c,f)=>{const p=sr("el-icon"),v=sr("el-button"),h=sr("el-dialog");return F(),mt(Wi,{name:"sidebar-slide"},{default:nt(()=>[e.visible?(F(),K("div",Nht,[x("div",Rht,[Ve(p,{class:"close-icon",onClick:s},{default:nt(()=>[Ve(C(cu))]),_:1})]),x("div",Bht,[x("div",Lht,[x("div",Fht,[(F(!0),K(Pt,null,an(e.results,(g,y)=>(F(),K("div",{key:y,class:"result-item",onClick:m=>l(g)},[x("div",$ht,[x("div",zht,We(y+1),1),x("div",jht,We(g.title),1)]),x("div",Hht,We(g.content),1),x("div",Wht,[Ve(p,{class:"link-icon"},{default:nt(()=>[Ve(C(Yme))]),_:1}),x("span",Vht,We(u(g.url)),1),x("span",qht,We((g.score*100).toFixed(1))+"%",1)])],8,Uht))),128))])])]),Ve(h,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),title:a.value,width:"90%",top:"5vh","close-on-click-modal":!1,"append-to-body":""},{default:nt(()=>[x("div",Ght,[i.value?(F(),K("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,Kht)):(F(),K("div",Qht,[Ve(p,{class:"error-icon"},{default:nt(()=>[Ve(C(Nb))]),_:1}),f[2]||(f[2]=x("p",null,"无法加载网页预览",-1)),Ve(v,{type:"primary",onClick:d},{default:nt(()=>f[1]||(f[1]=[xn("在新标签页中打开",-1)])),_:1,__:[1]})]))])]),_:1},8,["modelValue","title"])])):xe("",!0)]),_:1})}}},Zht=Qo(Yht,[["__scopeId","data-v-77ec5b89"]]),Xht={class:"web-search-summary"},Jht={class:"header-left"},e0t={class:"summary-content"},t0t={__name:"WebSearchSummary",props:{summary:{type:String,required:!0}},setup(e){const t=Q(!0),n=()=>{t.value=!t.value};return(r,o)=>{const i=sr("el-icon"),a=sr("el-tag");return F(),K("div",Xht,[x("div",{class:"summary-header",onClick:n},[x("div",Jht,[Ve(i,{class:re(["expand-icon",{expanded:t.value}])},{default:nt(()=>[Ve(C(ka))]),_:1},8,["class"]),o[0]||(o[0]=x("span",{class:"header-title"},"外部数据",-1))]),Ve(a,{type:"info",size:"small",class:"source-tag"},{default:nt(()=>o[1]||(o[1]=[xn("数据来源于蜀安AI网络搜索引擎,内容仅供参考",-1)])),_:1,__:[1]})]),ln(x("div",e0t,[Ve(ay,{content:e.summary,streaming:!1},null,8,["content"])],512),[[Ar,t.value]])])}}},nAe=Qo(t0t,[["__scopeId","data-v-070e5d69"]]),n0t="/assets/27-Dd_EQ7v1.png",r0t=["src","width","height"],o0t={__name:"StatusAvatar",props:{status:{type:String,default:"idle",validator:e=>["idle","searching","thinking","analyzing","completed","error"].includes(e)},size:{type:Number,default:40}},setup(e){const t=e,n=n0t,r=J(()=>{switch(t.status){case"searching":return"float-animation";case"thinking":return"bounce-animation";case"analyzing":return"swing-animation";case"completed":return"success-animation";case"error":return"shake-animation";default:return"idle-float"}});return(o,i)=>(F(),K("div",{class:re(["status-avatar",r.value])},[x("img",{src:C(n),width:e.size,height:e.size,alt:"AI Robot",class:"robot-img"},null,8,r0t)],2))}},rAe=Qo(o0t,[["__scopeId","data-v-08478745"]]),oAe=(e,t={})=>{const n=t0(),r=Sy();if(n&&r){const i=new URL(e,window.location.origin);i.searchParams.set("token",n),e=i.toString(),console.log("🔐 SSE 连接已添加认证 Token(通过 URL 参数)")}else console.warn("⚠️ SSE 连接未找到 Token,可能会导致认证失败");const o=new EventSource(e);return o.onmessage=i=>{try{const a=JSON.parse(i.data);a.type==="completed"?(t.onComplete&&t.onComplete(a),o.close()):a.type==="interrupted"?(t.onInterrupted&&t.onInterrupted(a),o.close()):a.type==="error"?(t.onError&&t.onError(new Error(a.message)),o.close()):t.onMessage&&t.onMessage(a)}catch(a){console.error("解析SSE消息失败:",a),t.onError&&t.onError(a)}},o.onerror=i=>{console.error("SSE连接错误:",i),console.error("EventSource readyState:",o.readyState),console.error("EventSource url:",o.url);const a=new Error(`SSE连接失败 (状态: ${o.readyState===0?"连接中":o.readyState===1?"已连接":"已关闭"})`);t.onError&&t.onError(a),o.close()},o},yh=e=>{e&&e.readyState!==EventSource.CLOSED&&e.close()},QC="/assets/2-G3awVIMi.png",YC="/assets/22-PHJtTrlQ.png",QE="/assets/29-B03QHNcz.png",YE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQISURBVHic7Z0xixtHFMf/b25lGZbDu8X5uObYqx2DAnbnwkdag3NNAm4M+QJxmSr2+RPYkD64SWEwZ4PdGS6FmzgpBE6auLjFjeFU7BqhcLLW+1KcJE7SSlrt3M5o0fs1Yldvdx7/fTPz9DTMEnISRewlDhog3AajwYyACB4AL+89lpQYQAggJkLIjCcb6/R73otpnkEUsfdZ4Z5S+BHVFysvMRGe93rY3/IpnGU4VcAVFS6L/Y11ejDty0wBP0YcOA4OADTK8qpiNJMEe1nROCHgx4iDWg2HzAhMeFYViBD2etgdF3FEQBFvNlkiqrMGjoMDEW86zAgcBwdRxMM5YShgq80PIGNeHhqfFe4NDggYThpH9nyqHLGTYMf3KVYAUKvhvm2PKoY3iEICgFabI6x2rleE2Emwo1ptvgkRrwhe4qChiHDXtieVhXBbSdqiAaOhIN23MMwIFCARWBQieBKBenhqvo0wCxFQExFQE8dEIy//TPH0zRd0uiZaA9w68N2NNdy6Xn58GIlAk+IBQKd72qYJjAhoUjzTbRrpwmdx60CwOffPwLl0ToD/ujxy7viT9m0XxriAwSbh4Z1ymv35twT/fOD5hueIzMKaiICaGO/C43ROgMN3KTpnxrNb19bgXixmZxrrAr786wuevklHzrl1msjh8tqZZim7cKebbyLIa1cmSylglbAuoFvPlxPmtTON9TFw96oa6YpunbB7dfK55rUzjXUB3YvA9zfWzs3ONPYfYcWxHoFv/03xy6vRas3DOw6ubFMhO9NYj8CjY56onPz9IS1sZxrrAlYdEVAT6wJ+tT3qglsHdi5Pjmt57UxjfRK5sk149lPt3OxMYz0Cq471CJRyliZSzioBKWetENYFlHKWJlLO0kTKWSuO9QjMYllLV1ksZQQua+kqi6UUsEqIgJqIgJqIgJpQq82l/KA8/sT49fXpTDq+Zu/ypdnXdk4mV5i6dcytvIxfN5i1f/hm7VwWdWZRWhpz+C7F2/fZz6bIStJOd/Flu4MH98f7FMFmOUm4dGFNREBNShsDVwWJQE1EQE1EQE0UTvfPE4oRK2YRUINQESG07UWFiRUITdteVBUihAqMF7YdqSrMeEL9zWWPIJtPLEq8sU6+8n2K0xSPbXtTNYjwHOhvPiZRuDhJgp0tn0IFABKFCzPcHnlYZexH4SFkF8t5NDfW6evBwfCnnO9TnCTYk7xwOkQIkwR7I+fGjWQn32ymbYM8UUzY8ins9bALSIJ9hmaWeMCUasyWT2G/n++X7dmSE6cp9p0kWzwgx8sI+l36PjO+xeqkOXGa4vGFFI98n2YWWxb6r6/V5ptEuNsfHz1g+FllYubTV2GA0ATjhZOgOU+4Af8D/9iepAO8B/8AAAAASUVORK5CYII=",ZE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZRSURBVHic7Z2/bxNXHMA/73IpUa0o9uCgLJEztEsaKZWAKQMRbIlE6ZBKGYoyIoGKRIdOQPgLQCCx1aIDUlgAKdmC3CETMEQKWcoQKwvCHmwrMkrw+V4H58zF8fl+Pv8Q91kiO+/OL5/7vl/fdzkLPFIqyaShM4vgCpJZKckIQRJIej1Hn1IG8kBZCPJS8jQ9Kv71erBwK1AqyeQXjVuaxh8MviyvlIXgZa3G6kRK5DsVdBT4jYprx2p6VNxz+mVbgR9LMqPrvABmVdVqwNg2DK62i8ZTAj+WZGZ4mJyUZLpRs0FBCPK1GvOtEk8IjOV1pp1EzV5A13kRy3NGSjK6zotSSTbHhKbA4oG8R9zneWH2i8Yt64WA5qCx17s6DRxl3WAqlRJlDWB4mLu9rtGAkbSiUAAUD2SJb3uuF4SybjClFQ/kRWJ5QUgaOrOaEFzrdU0GFsEVLZ62hEAyqxE338BISUaDOAKDIgTJOALDkdTcy8R0IhYYklhgSHTVH7C2VefzISzNDZEYCX++6iFsvKuz90mSL0iqh5AYgfSYYHxMcGNhKPyH+EAUD6RUdfK1rTrPt0wA0mNwf1lnfMx1G6YthYoku1lnd19SPXIu98+t4UgulFeUCbTLs0icaUTi4nl/PcfuvuTRhkGx0rncjYUh5me62yspEdhOnp3Fc5rnJr3+1iT7uu5arhfyQIFAN3kWXpp0oSK5/sRwPVev5IGCUfjzobdyxQr8+bfB+ltn2Xee9bc8UCBwaW6I9Ji3stUjyL6uk92sU20Rn9sx+7LPayXyT0+MNJpm4oz3Y9bfmdzO1k68l9vp3A2sXPInr/UCRYWSyzc+Jlia8zcfs0dboSLZ3e/cNU9Pep8O5XZMfn9QI7vpPhj5RVn8L57XWDwX7PSFivu4li94G/tyOyaPNxri3rtclCAo7UD89Id23Po+gPwndxl2eQCfjwZMYJD+EPC0WnGL0lZ5jWP81cMLyocwP/2hFVXTk+5r2k5NuJ08gMx4sGVkJ5Suhe1kN+usv+s8sibONCI2c7bxhzqJsMiMCxIjMDUumJ4UfD/SaP5Ox0xPCu4vR5s/6ZrA6iHcztZc+ze/Ev2wcsn/OtyNrgl0Iv9JcueZcSLDokrik+vBs0FO9DyhmjkrTg001aPGMs7qE+dntNB5vvkZLXJ50AcRaOE1EnM7ZlOElwk3hM9FdqJvBII3ia1UD+HNB5O1rbpj/3p/Wfe1cvFDz5swwN5xU/XSnFtJjDSa5/1lve00ZeXSkDJ50AcRaOUP7ZkVp0hcmhvizQeTYsWaL2pc+EFw4cevcfB4o05uxyQ9Bn/96hy5UdFTga3JVzeJTiye01i5/HWQefOfeUKqSnom0ClzHVRiFCN1EHrSB3ZK+1tNEBp9otdlYJQTbj90XaCXPRN7MnV3331/xX5ctyV2VaDXDSc7XvN+Ft2W2DWBfuSFnfB2U2JXBPqNPHuznZ4MVsVuSVQuMEizLVS+bgKF2XXrhkSlAoPIA1ia05p3LUxPisB7K6BeojKBYeT91jJ1Wbkcbv9XpUQlAqOUZxF2Ez23Y/J8awC2NQsVGbk8iygkRk3kN1jam0p6DG4u6Egkjzec001e5FlYy7UgMlSsWSOPQHva6cZCI5X006TGzYX218qPPPt5g0SiivtolI7CwvYP8bLN9Q8iz8KvxPmZ4J/VicgF2pOXjzYM3u+b7O7LU6NgGHkWXiWqzNREns7a3Zeu9/VFIc+OPYPTiuo0l5IIXJpzPm3U8sA5EruRI1SWUC1UGs3WfrvG4nm1+xNrW3U23prNfRK/t9gFoed7IoNOX+zKDTKxwJDEAkOi0Xh+XkwwypqUscAQ5DUhyPe6FgNMWUOw3etaDCpCkNeQvOp1RQYVKXkqjh8uu0f88Am/lNOjIqWlUqJsmjzsdW0GDSF4CccPH4uj0D+GwdRESuQ1gDgKfdN8PHIzNXIchTnip1i6sZ0eFT9bL5pLuVRKlA2Dq/G80BkhyBsGV0+811oofpJve5weg3wqmTCREvlajXmIJ9g2ttvJA4dszERK5I/b+arqmvU5ZdNkVTfaywMPX0Zw3KTvSskvfDvTnLJp8vA7kweplOiYbPG1QVE8kBeF4Npx/5iE5s9Bpixl46swEGwjeaUbbLuJs/gfaZgc6y4uxCoAAAAASUVORK5CYII=",XE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPHSURBVHic7Z2/axRBFMe/b9yoIMHdIpE0YdPYaHFCtLIwYGdA0yjYiKWV/gca/wIFwVIstYlC7AQtUmmKK0xjkyWNeFfshkNRb2+fRe6OJN7mfkze7Y55n+a43GTm8cm83XmTZY4wIHHMfuqhAsJ1MCrMCIngA/AH7aOkJAAiAAkRIma8nJqkj4P+MvVrEMfs/zF4YAzuw31Zg5IQ4U2zieWZgKKDGuYKPKLierE8NUmP8j7sKfBbzKHnYQVARSoqx6imKZZ6zcZ/BH6LOZyYwAdmhOOIzBWIEDWbWNgvcY9AlXcwvSSa3Q08DysqLx9mhJ6HlTjm7j2hK7De4EfQa94gVP4YPOi8IaB709gsLibnSLwUc0FAiQGAiQk8LDoix/A7s5AAoN7gGEd7rTcKiZdiztQbfAUqbxT81EPFEOFO0ZE4C+G60WWLBYyKgabvyDAjNIDOwFEhgq8z0A7f9G+jHIQKtEQFWuJJD7D6OcO79RZq29Ij7SWcJlw6S7h1+ZjoOKICX7xvYXU9kxwil6jGiGqMn7+Au1flJIql8JetrDB5u1ldz7CxxWL9iwmMvkv1PDyb3x0U+OO3XNDDIhmL+E1kN+E04fFtD6dOyvRf22Y8e9cSTdn9jHUZc+ksickDgOnThHOzfZ8VOFR0HWiJCrREBVqiAi1RgZaoQEtUoCVjFbixxahtyy1yf/wCPn0dbwU01kpkY4tx73k6ziHF0RS2RAVaogItUYGWFLqdlbf9dNjtJCl0Oytv++mw20miKWyJCrSk0Eokr3IYtF0ZKGUl4lLFoilsiQq0RAVaogItcboSKQNOVyJlQFPYEhVoidOVSBkqFqo3WGTEV2stvF4r/gFLALh52Yg96is2A0+dKM9FXzIWMYFzZ8ojMDwj17eYwHOzhMX54u9Ri/MG52fl4hC7BnZ4tdbCp687T8yPk+nTwLX5Y1i8KPtHFBf4v1N8jjmOCrREBVpisHN+njIaiWFWgRZEhghR0VE4TGJAqBYdhasQITJgvC06EFdhxktqHy67CT18YliSqUkKTBBQkmV4WnQ0rkGEN0D78DGdhcOTppibCSgyAKCzcGi6xyN3N+3as/AD9BTLflSnJulC5023lAsCStIUS7ouzIcIUZpiac/P9jfSk3x7k3cM8j+bCTMBRc0mFgBdYO+i2ksekLMbMxNQ1M7zZenISk6SZVj20t7ygAG+jKCd0g+ZcQNHZ5mTZBmeHs/wJAjowM2Wof51Vm/wFSLcaV8ffaD76jIJ885XYYBQBeOtl6LaT1yHv8d8mBgIHOUGAAAAAElFTkSuQmCC",JE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPySURBVHic7Z2/b9NAFMe/7+oAoqqwh1TqUiUDU5cgARMDCLZWKmWADcQGEgg2NqD/AUzMLEhlaZFgLkMmWCJBFxhqdUE0g11FQS1x/RiaplCcn9fzxc37LFXS6/nlo3e+Hz1fCD0SBOxGDkogzINRYkaBCC4At9c6hpQQgA8gJILPjNf5CfrY6x9TtwJBwO5vhcdK4RGyL6tXQiKsNBpYnPLI71SwrcARFZfEYn6Cnrf7ZaLAHwEXHAfLAEqmosoYlSjCQlI2/ifwR8CFXA6rzCikEVlWIILfaODKYYn/CBR5nUmSqP4u4DhYFnntYUbBcbAcBNzqE1oCqzV+Drnn9ULpt8Lj/RcEtDqNdXsxZY7QiVD0PAoVAORyeGY7oozh7mchAUC1xgFGe6w3CKEToaiqNb4MkTcIbuSgpIhwx3YkmYUwr2TYogGjpCDNd2CYUVCAZOCgEMGVDNTDVd3LCJ0QgZqIQE2ctC60ucX48DnGp+8x6ttAfSed6148S3gw62D8lJn6qVpjNlP1Ae8/x3hb3k1N2mHuXh3D3AUzjc14Bi6Vd/G2HJu+TEfqO+ZyxOg9cPVLbF2eaYwKXCrvmqx+KDAmcP0no7plqvbhwZhAf9N43zQUGBO4uSUChR4QgZqkNhNpx9x5hbvXxrTqqG8Dt180jiii/rCegaePYIplaprWC9Yz8NM3BqA3Xvy1fTSxDIJ1gf4mZ3rIY70JZx3rGSidiCbSiWginYgm0omMOCJQExGoiQjURARqIgI1EYGaiEBNRKAmIyFw8kzXp3oH5tgLzJ8BLp419zFTnwvPnVeYvaCMZcXTNxHWNg7m1sVJMrpak6rAmWnSXvvrl/FT5povkHITLk6a/TBJjJ80W78xgUlNdN3CspXpPYmpClzbYCyVd4/Vtg+jO1TvvWpY36E1fhJ4dT9nrCMxeg98OGt9wRv1nb2NnqYwKnBmmnDzkv2hZma3+ALArUtj1iWanImksksfOHjM4esGo7rFqe3Yn5kmPLmR8cccjjP2b1AZRwRqIgI1Udg7P08YjFAxi0ANfEUE33YUGSZUIFRsR5FViOArMN7ZDiSrMOM1NQ+XXYccPtEvYX6CPOV5FMYxXtqOJmsQYQVoHj4mWdg/UYTilEe+AgDJwr5pHY/cWudpZuEq5BTLblTyE3Ru/0VrKud5FEYRFmRc2B4i+FGEhX/eO1xITvJNpt0xyP8tJkx55DcauALIAPsvKknygDarMVMe+c12vmg6siEnjGMsOlGyPKCHLyNoNulnzLiO0RnmhHGMlydivPA86rjY0td/W6o1vkyEO837owu0fmaZkHnvqzBAqIDxzolQ6SZunz9nVVxxNV1mcwAAAABJRU5ErkJggg==",Bv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEWSURBVFiF7ZZNbsJADIWfUVnDDchNOhyBE5BuO5HazgUwFwA2EUvoDXqEcJP2CF12U3dRgVASgT2EH4m8pTX2+2RbGgP3LtI+zF7ZCdEg1uhX5Hu54I8ogOfAKQGrWPOdBEU+5+F+qKPJI+DxZPP/Qq4cejAXEUrtzpLWmUcB5PPJuzXHB641B5QjOKcqHcgCswAvAPp1CT6wKGuv8xk/mQEEmCgNGtGhHfgEUETUTJsCKDQtLMsHNgFcfQlbgBagBWgB7PeAXs4H3l5R7hoACRT/wkVHQMC0HDtnB1T3wA0voSDxb9OxvaT2YDoGQHCAODuATdURSNQVVFMGG827Sge6gtGPwHWIerHmJPKVL7iIzb8v/QE/Jz7sdjN4KAAAAABJRU5ErkJggg==",ZC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIVSURBVFiF7ZWxctNAEIa/k/AMVJgnQCUdSROPK5Q3wG+QdJ7IxVkVnTcVnW1m7Ew6+w0IFWXUZSYVb0DeAFOb3FFIyihCsiQ7Q+P83Umr/f7b21vBs/Zd7lMkCULRR13/e6frv7q9iaL/amAQigCfgZeA3+n6qomJnQwMQhELIwAFV8C7piacp4ADw9lYegrOASyMkspUaqsKZOEWTi/GcglwexNFna6vAJ+alWhsIAhlAnzKwJfZ901NNDqCIJQFoIGVNRzm4almYxEsUWJyVBST6kVD+EkCP76Yyo+KWD9ZDncyoLW01y7XWA6AO2volcG1lvZa8TWBr5ShN5tKtCm/agK/NxxfTuWuKLavxXMdrgGvymhWpT3Q1+LVhZ9pOcjC7yuOqNLAw25qwAdafJXCLVHLcFgWW6TCHsjvpixhEIq2MEmWy/lETuuCU5UdgQewcefxpJsAKDifj5vDoeIWbNj5wsZXEuIxPN0GXmkgr22u2U4G+lq8tAp9Ld46d83mmU4PQtHA+1yKlYXf6cIYlvmqbjTgOvwMQsk/LmxMBR8sfMwHZweN6/AWeNQrZQaW1sajVKm4IQGwRC1Lbz6VVf6DP4ahq9TVI7hD21j7Jl0bw7KEt8cq/RechXICmfIXf/waaNeFWcOX/IgubUIFi7qJ60o5rIB6Bmzcrd6mhI5Sv6zhn4YsU8vab3Vjn7U/+gupnAZW9/N3fgAAAABJRU5ErkJggg==",fq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKlSURBVFiF7ZfBdRoxEIY/LYbzpoLgDpwKgiuw0wG++Rnes6ABhgZg857x882kgjgV2OmADowrCMc8O2h8QIhdwCxeyCn5T9LuaObXaDQzgn8dpsgiayV+hqpCtQQTB5MKjJNEJn+NgLUSP0dYo5xgOForpIzU8MM5hjeJjPdCwFqJXyL6QH1bsh7DqaObR2QjgaaVmkbcAtXU5wlwp/Bk1DwCqNFDAx+BUyBOyY7V8eU6kVEhAhdtqRu4Dcqge92T4RZrOmnSCmdvrcs9gkZL7jGMyo7ue4Ks0ZY+YP10oo7jdZ5YIXBupRpBPBe2VuIi0Q3QbIvozBsA47Lj07KuaHlRKaJjDP35vKhxgKueCJD4afU5Ch5ZT+DcShWoY6g1rdSKGk6j7OgCYwADl97GegKlKLgLNYvxLkgSmSh0/TSOoux1zh6BphKMoXbRloxwUVQcd8yuL0b5nP4XgtAnnF9Laydlx+EucTBHoy23+GRWdnyY6wwe+MPa9BqvC5wiUHiaj3+nktXKLViGgUtrJc6Ty9Xjs6bXGTZ7MB9MIQ5s1NQH/c63XQz6I30k7FbDv5KPB0h5wPirMrOvh7sYhxD9X/PkAgGXYuULy86oOBJSeuc4gJCSA4GbRMYoD356ug8CPtK7mY/KKH2rMkGohp9+GO8rBwx6kqQ2BoZMQcoQcI7hQo7OPqIfwOjCC1OX9UiGgO9eQvF4ifaTjq8SefBeWGnVVvJAungAttkWKWo47UFVWsu7hzcakgsrRybinkXGSgY9ab3HeKMtfZSjQV+ON8m92REttWNQsCXb1I5tJADBE9/ZoSk1jrOrRB4KEYBZk+L7hHqe7BKGZUcrr5Ju/TA5t1I9KJkTdVrPe5hUHMm2JXynp1kE8RRiA+OiT7P/eAV7sh6rte/pwgAAAABJRU5ErkJggg==",YD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMwSURBVFiF7ZhRktpGEIa/Gew84xNYuYFzgsAJbN+AfdsAVauVD+DmANEqVQveN/AJsj7B4hPENzA5QcirNzudByQYhIQkoOwX/ioVM6OZ1letnu4RcNZZZ30/DSORrN2PpDeI5GYYSucYm8+Ohco0jEQU3gOSDgVAqJZwEMlCYeQc87tEFk3s2hPD+fJBAgPTluWhH0mvie2jAUvgmMQye+54oXDBBjYwMPVDoUrm1HDjWApt9iPpmdXcIB2ajWO5qHrGwR4s81yZJrHMnhxdNt7sDSK5qVp3EGAObgHM6qy7S2SRgwyrdnljwDzck6Or8Hd+3mUowWUowR7IJYBa/gxDaZ8EsAiuLG1YS69l+Tq4loc8aLpmlHbb3yzh0YBN4LZk6LQsX/PpZRxLgjJfTeGqzIuFiXoQiebHvIFacM4xa1leAr0UYjoMZXGbyHzNbs29qnaA9n/wCpjn7TSNwdqeu0tkMY7lwhnesom3qT/n2ZN+zNpqeV1kZz+gMlcYZVft1+rpw+9yr/BH2g38XZskssxeM0pnZzEVtVgNnydx/axfpp8cyaNdxW/qqfn6plmlHIXCGDxJLa5SkshSdQViNpUk0xLAmB8ICGCyONRtEIV/0+aPBcTwKv39sj3MS4DMw3ntjUGj/Nr3Th7OMWu6SWCdQzMbn7duKgEGDMWA+z1o6Bh4n10ty05VqFI/kp7CVdpdfEjkPrsXhtLGpLs359l6gLsK6kJehhIMIrkxMCWNL3W89ed8s7zJ2sbxqchO4SsuOtN5pS6D3JsTraUH6xq7VLieJJKPv3Xp9CvMlp2yB+R1G4uYTYGv7UmUuTq6k1hm/nBam4PVlLXdwwEbQzrunxw/j2+km/fcZSiB7z3ndmtwpoOO/AUH1jnpoaDsyO/DtSwPbLx3kfeur4PyYN6TGVyV8nBAsg/uYEDYgazUb+/kTcvylwc3G8dyXbXuqK862P148l9xGEr70ZjXoL11vls9dHRb8xBydKkr8+Tw3ejq0fIPRmce3MI4unXhTgJYBulUX3jdpcLoueOXsnxXppP9N3MbiwwjWffV8MUoiXF8agp11llnNdD/8SCG32KlI34AAAAASUVORK5CYII=",Wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIPSURBVFiF5ZfBcdNQEIa/lQLkKCrAHeAOUCqIqQC4JdiHZ6eArBuwnRns4WYoIRXgEpIKUAk6MiT2ctCTLRs7RAqWZ+A/rmbnfft29+0K/ndJVcdzpy2AFzAbjTStDeDMaSMM+AY0vCk16E4G+qUKQFDWIRSm/vAEYwZEAtMzp42H/P4aAEITYL7gZDzUE4F+AWy/AM5pBERA+nmkCcCngaoHi/cO8CM7HDM2iy4tAO4PYJsKt0KVbigFIGT5F1Y3cO9tGDdlDwc4KgUQ8M6TzHKbBZwCiJB0nMYP+d9DktdOaYB2Tx3QApgvuFp+MJoIGLQIsu+7FALtrs6eGW/zdP0RoOM0tizy997UXYtCuMYeGYXQRIjvhCHwITN5nV9oKzCGrF64Lf70l21XQf4V/Q6k44G+hMINBMYUX80bSoDZfEF/M39ldQzp3YatmIIIYDxQAfjYUxW4NPg6eULURRU6JsltT34HSimU18BaF9UKYGb+BmT5ZtQMkM0LM7utHcA5jUSyDnvOAWrgZ97exk1xZtQGILIswLWZUV8NSFaAInIgAF+AzFcFWC+AL8AjDpACv7BGZiSbS0stAKHIG4BAfl9airMgBaJ2T7PtVmhiIMJpu6evqh4uEBkWAyzgeieAwJXBJfncz2e80SQfIhVUWBVG235e1v6MOk5jE6kc7U4Is9vJSCvtjP++fgHeI64ZO7QpwQAAAABJRU5ErkJggg==",Vy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIcSURBVFiF5ZfNkdpAEIW/BuzyUSEoA5OB1xHYIcBtC7aKQQnQTmDRAa/3Zm8GSwY4AxyBcQY6+g+1DxrYwfxYCKw97LvNaNB703S/bsFTh+x70HPaFpGXZyc0+zZJdXZQQD/RMeDOTR6QvptcqwK0/n7YS7TjyTOBmUF2AlMbo40wx5j73Y7BANgtoAFvDMDETcaju8rkQC9RFWibMb3xN+4XF4wCvk3kRhtgafb5FPKy2BDgnEYixEB2m+qidgG/KW6PUQv5lgCavuyE2aMIMDMfAZnvPP2/BeAT0My+1C7AOY2QQsBzHiEHfkIMYMYiTbW6+VQVsPJ9qTEBNwQgRQKK1JeAmwKMCwCW9SUghL2gcEBacHIELp3GzQYjKC4lMOonOgqOrHNsqxl9LxpF5SS8SlQNRgeOLHJhuFqs54F+oh+BDpAFrfMwhOn7a02Ddzhg7JefJOcuHD52YR2BZznDX0KMcIH4fPgXDIAUirAH5MNQWCkBvvZfXzqNW94T9qLBwOAt8hCpZoOB13R/U5J8Q8AKvg0vDv2oP9QxApIzXW8aFwhYzlFDzNZAUgressOKMT/l2JFVdLQA53Q1TmXnsOyjBQSkUbgvUqxfHFnC1f4CK/rFVVIMmr4CIipEZSsJy2BpdJvCV4NRf6ivVi5a2j8CVIrAbaoLgy6Qec+IgcXS6B77rr2fZmXgnEY/vN9/SPX+lHc9XfwBiam2korBkUcAAAAASUVORK5CYII=",ek="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAwCAYAAABnjuimAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA4SSURBVFiF7VhbkJVnlV1r//+5NZeGphHoXLhD0mBMcwwIEXLAGOSmThTGmEmZaFlT5VhOjVo1NS8znZp5mSq1LKfGpzEVMymtCYFMwMAk0nIMTBDwACHSSkuAMhBIuHbTnMt/zrfXPHTTNKGJ1pSP2a/nfPtb/9p77b2/DXxgH9gH9mcx/tF/dMryU85k0+NHZRlbHKpklO1XmZmkP3O+cmzVrASk3teHxFnbj6Vvz8W5JOlLh2ZjFFxi3EjSlWopn6+C9P8f0E7ZtKkn0xNHTRxnjntAfJjmE0GlwFA16qSYvJ7EOo4pU3pLeTRuAiwxX0I85kpPcy3CDAveYRHuBD1LUx3QuTgKb7glh3Pjx1/aPmtW/VaAbwk0/59Xp1jEpaR/hsRcIEygIS0GoymQXpaFiwaVyPB81WxvaV1bebiPdb9+u+lif98iOj4Pep7GFkFNxhAhcgc9oekC6EfNbLOF1O6uj334nT8Z6MIfV+dYqrFW5MOgzwM1lnQDBZgPfDQF0J2RvwP6fsFfzDBsK+6f9i7+CVrY9buWVGRrTXoYxH0yTRrw4QPED/oR5YzUS4YjIjaHCC/tvndRz/sD7ZTlZ5YnpSI94uBfkd5BqirDm2A4Rvp5UImZ52C6DeZzwTCZlINeYqSf1EN9i/Wfu2ATJ+QJ/ybBVTA3UGdJP0rqtFMVMqRJTYRpNixMJz0r6qBRzzY8/PQT+aXvdA5Lg3g4zmlTT6YtmrRUxMOEd4DeD8NhSS+aN3ZkTT1FFCuLR61sRr3SQdNqUg+CPhOmRYI3p1Osq6W1i+BkQTnRewm9DWqn5NvqUXxwz6kjvYV583KhrzInivwhEutEv4dUhwzlOGWnisXiFgDVmxkdZDOK9R1Kq2nKwnTA4d9BHL3aNH5Mb7GAAFKQ2L6xOzVhdEuzWFsv8y+C6AAU0/yY0PgBzQ/RuITkNNEPor/20oX+TG/3+vb6NR+FYjGKmpqaG5mwzKBvg2EBqCpM20R9q9j+y3fBTgcAGxJPHtnIGveQugumsTK86dKLiKNX9x0ec6m4nNdVTap7w7xk177JFxD4Uxp/RPN9sACYZpjhGzQugIWuEPFfy7XKC7v2bbnQvWFeMtxHcfnyRtf27ZfiTPQq0dhK+gmaxhI+N2KYny/lszeFPl3py3o6mg8PLaRM1DHzxo7s+NZedN6ixnXSdwOXlm77/c9CGvXInAIWK9Isg74mU4Sm8ubSxz/aO+J5AOjs9PDAA73WEr0CC4tB3C3zFsI/0ppLHQBQvoFRxhYTPpFEGhRIP5819RQLCLe8ZNB2rZ59rpaud4H4D5peI70B87tIPWZVbbj/wIE2SHar88VCIXgcekScAx1GZRRhojIcInLocKiSg8XcYA5QSRHFyh/tOoNWWtZ+BlH5ZUX+DKBfg6qC6CDtEauHhwt797YVdu6MRzxMqnjkXIUMCcwhupGeChYNaWgIaJTtFxiqg8UcZp5bPHZlM6Sba22nbPFrb+UW/89bLe3PHUkPMbtswbm4kbxA82dg4TDpNTIsMOKvEfNTSTrdAnXezKzElYvHNiNSjhRIBBDVyMMQSUOHyqwkoE6KXh4o7LoN9UpH+8bu1HCfhZ074yWL32yNrlYXpdLlteNbMXvxa2/lrv1eLNzbm87Wnwf0FMwPwJSAPkfwr6WbrH3xqYcy78XZ3r0x5WXrIP020AELZXj4QxKVk5uAJnOmlZX2AzC/ALrDfC7hqzNIN6NzkIVOWaVy+2TG4dM0/55T/2i0x1HvnzU8jDvy+T6r9W6CwtOg9tE80DQWCFPH9iE3HCQkm+KZ8UJYA2IuTU7qYhz7wVwjU7kJaHc76srWTkZEiZHeAcNkmC/Pjcmsyd//2BgAuH/J0cnpjH+W1N+KPo/0NtHHpuA35t5A6bns6fhnRP3fJX9WphfRYOktNPcP/+fSY9snIJP5kgwrCZ8M+FlQ+2t1HN8+a9UQo/Fw5+HX6ktdPbsJDHeQekj0NjN0ZJV65f5XfjcKETaAeITEXTAlku+jhZ9bqL/V/txz6cm3z5mI2Ge6J0nNvWfXli0XCmvXFh3147E3QnVy9Gb3HfOuXc4VR7vazOrr5fpLUNNBOQz7AW26MmdK73Ah38BEKY9G/oz2ZojnRSQ0jRJ00kytIJeBeASmDkBVAAcQ8Rko/PLdc8f7PtQ29Z5gyWoC7YhZzRh/tWTtJ39e/OhH3wRw/j1pyRXHu+5kaKyR4zEQ7TQB1B5Im3NZ7NuBfOOGAxjB8j+/2BzXe++OybZgyemU+QJF+BqpuwbLzmEHnkp5bVNxecflFa8dui1Y8hUZv0X6GNIdphME/lm9teeKy5dXh9+54mhXG63xGZq+Ktc8Rl4HwhsAf5iJuPWlqWsvvRfTiEW49OD4vlwOh5hKDkVRuBcRvw5gzoCCccCBp6qjMs8XC/cOdJysz6ShnfQxNBGmCPTpMs2ujc9MGHIs2dLfb2u1uL4e0FcGQSak/wbA91Khsv2lO9dcHgnTyN3iSbBSabSS+oTRvgFqBiMHiH0yPZ3y2qZSfkbftRxyJQlMVdJ9oLxINAVYoxaPaiTXQBZ6ii0ZRY/L9Rio9gEmvduB73mK/wuM7hsRz62AXlO3qG+ImgWTAdgD6EdU7WfF5R2Xhyd6reY9MP8VTCdAD6TXAe0icKDc23QZg+qOmTwh+qOg7qY5gPAGhO8bGkcNtY/Vx1Q6Hry0cexImG7MUYnrSmdyFy/3PWKGL4NaOBjufYB+VAa7Ssvaz9zkpbPTlqz95PSM+f0yzIZ5jcABVfsPFBeueWfF0a42i+vrB5m8mxRh2gPp6QDfm8qG1ZKvJL1fwItZ5DZtnbK2ckvV50uIL/b3LTLDp0EsAFUDdEjEM1Tt5dKyBeeufVC+VMqNtTAbSuLG2FF/2DV7wfHCzp2na+N9QpxLJeXepsulhQ/Ul/5+20RT/QGJj4IaUrcRz6aMWxOWc1JqJqgOwcfClEqi8qk8SrtLQP1moBLHFHuaG8LnQd0Hk4HoMddPAvy/dy1bMKTEWdu3p5smtcyC9CVZPCaulHeuOPTaL39x75K3AZwe/vFxw+9UzOVAmEeDD4SbT6dsQN0PXnzOreIHYbqf0DiZ3wf658ZdOXIY0sVrrNr1y4+laxFmgJ6XaRKos6DvcEs27u7afMM8OXXChNGRqUPUOiA8KujvPG6sX3rg1dabxjlTg/ArpE6Tfoiw7w5X944fdF+plLGF1C8Q+VnSJwmej1zT1mPj0Jwx5PT2XJyz4B00tpAy0o9CYduFs5ledHbeMDiX20LZougETe/SIMLnU/5YnPXHCz3FluFgq00Tehp1PSXhX0Jk/+Dp5BeLZq2/MJR/nZ1+YRZ6GWkb6EdhMkbeQrDj0qXrc8H1oSTpS1vK7pSpafBJe7oRxwe717fX8R7bc/srNVZ0hObfB8IbNIGR3001Ho3VeGLpse0TMCjUPXcsqbyrck+cibdWeHV/122HL3W+Z8nQjfV1paKDoE6DAuGjYI3pllwYmrSuD87NRqiRNYWIFJyq7Dl1pHfEwZmdvnThwkv1xpUiEH4Iag/gRKQ5gn8hA3t0xdGtbdfAds/bkLx8x6cu7rljQ+XaY+1Gf9TLL6MX9AoH6nBEQzaMjkcYnIOLpjoi94HlQEgX5s3LjTg4A+gkfVfHqvN1prYKehamPTAnIrWL/hjNPlv47QtT8afstyQWCsiRSsMEmJxQPVLj5sFZjBuAzoGecCD0E0NfZU6hWIxueQGp3fcsvVQfXX5BDE8Dep3mDurDFvlXo0y8ZsVb15m9lRXwZJRJ989BpFZSMHoNCOfoqaHB5HqOpivVOApv0HRBlMM0O0r5Q1FT0/XB+SZaO61w4oVxuUo6B2mvEH4g6AgjT9y8nZF/2dhYv+rMc60jPkEAQJ0WXZneTNNDpGaDwR266ODr6athhAWEZIX9+z8k2XdBrQY9a4YDHoXvxJno1XC23FssFK4vILo3piakRzenYJ8h1OGGYwq+M0r5XDN9E/T5YDCZugn9l9fqPz4zPb7UjfXXFxB4MoquTG9OhcYyRPg2LSwgVRF9O92/tW3UuaEFxPWwPvmkpn3xiw3LpQD6DFIzYGG8ETM9JKNDk/XPuHDiysnCmrCy+dS4MSG3yIQnAH3BTItI5WLWj3va9rARTjHymTBMJtUK86mWxuRxNdVmNn57+c0F65PCh7qbMo1ce0TfAMMTRLgHVBMilQA+jabG68f490Ohv6GFFgqFpKu0a1dsqdtdaiLVAfoCGsalLXzMofMr5o9P6mXlBh5imGvQZFBu9KtyO5OpRueByk5Px1nRHxfCYqNmIfLRgs9Ho3565YNeGRAOWknMBsMMQFmYH5Swueq+u4CL9e3D5TBS2nz80N45EeprSD1M0zzSmzG4MhyoCALooMlBvQNqv4PPm9Jbdsx4sA8A1vzhpXGNdGWds/E5mt9H+qSBtiwMlqBBP8Fp6pXpiKTNZuGlbdmv/5G143B29+2cjEz0cUb+F4TPVeQtRmUGlgMIsFAmdIGGkps2NaW1d2vbuhsXuW9vbUpS5UVS/fM0z8M0gVQO5hFMbvSaQxdp4SjAFyoedhdH/83ZkfDcumyo01YdezRVSU6Njxjmg/4RRZhIegr0qqQTog5aNnvy8m3j+krIj7waRyluO9PTnIyqz6DQAYSpiJUhVAfCOQdfj1D/jUaFS4twsd45UkN4X6DDAOdL+WxrLpVVhnGwiJH3KbnC5N176+UhFb+vD3HVsX9LV1rH5NJxNR0YM1JD9FQjfTVUt045Ux2xY31gH9gH9ue3/wOv9ZjwWjLxzwAAAABJRU5ErkJggg==",tk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdSSURBVFiF7ZhtbJbVGcd/13Xu52lLX3SUVkpbgQKKTCvSKRqVNMwayURF0w8zjs2XsM25ZUu2T0u2ftu+Lcs+sDSLmuiMoQ7MNGBApW5C57Q4dHOCyIsKpIXxVvpCn+c+/31o5yg+pTWjZon+k+fLc1/n5Heuc871cuALfU5lk7JqkwPOoVH740Q6iGCaQrYxmgBURivF1RexIBhXmzNLKWdk7Mqn7Dz6KIc/K9jzgs5ao4XAvTKWm7hEUAJEoA/YjXimKMcf9j9uQ1MNmoz3oe4hNabiETNuR1QDqcGAIAD1GHOBuuEM01mhdjbZmakELejRqodVlsnzM8E3gQqJ7YiNFtgHTENcC9xuUBfFDk/5+aGErbRbbqpAC3hUFnI0yVgGVGFsdvhtf8IrJ9facdYoUw1dIdIj54cYVyjhnksG2dYDUwbqn/inDXNjKVADnCCyaaifl0+uteMAtFuut529KTwPbDNRBlztWWaMRofPCBSQMQsoBXoM9h37vZ0aa2GKzhGJNzEMUREDM8ebb8pAEREQ4Fhhm2LHDTIAGF9KIrfWfMQC2jTuBZ0K0ANAH8ZMjMvLV6tyzPdWBeWpN+M6hLmY4XB/Vnx/zgG+dsV9qqFV4UKCFrj1stqHWBqdXwI3An8R/M5hay7hWNEZsmlCg4lWxHdNZEwcCWKGgbt41yPr3dg6DG/vf5xTYHEKQIFvqXhmlp8YPIiow3jbYLPgfaDUjOuJtJgoMdhhsDGJLPbINSYuDSIHdIWUZ9LI9ul53jsJaQK1Gag1o8IghDyDMnozRXz46lOjl/VTgQI1D2q2JTxC5C4ZdUDxWYOiiz4iOwzay0+xPl9CVSruCcZdHlnkohLR77ApRNZZyrA7LSaWu5jnosgjvQavB/F8EFs6F/MBbYW9f94UOuMBzcpkuIPISowlBjNNDCI+cHjVU546MJvO/0y+qFXZXDHzgrgvEbeZmOeRUoejFsk4lJvIuThtIueRUhflDkcc1sWUX//pOdv3qUFBxhqS+jxVaeCnBg87vAP8ZniIJ3qGGKLD0jFD2uSL/sE0D3wlGKtd3GaRKgf3SK+J1xDdHjnlxsIgbrJIg8Mxjzw2UMIvujps8FySCUKJiXZyH0qH69Zw1CIYDBI52vOE9Rcc0mbxHTjd1KRt+Qbec5hu0OIiZ0a7G08AB4uOoaSKovwwLQ4/8shSxPKKQZ4HvX5uVTa5mGcmf0Aadb9G4+x51d1N2tRAcJhlosjFS1E81+XsO2sXhpau0OaywKUmGj1Sa+JG4A1G4vjHmnQmccAFQRDSCc1pbsZDpNrFNBdm8EYqDp57VF7bRJ/DviAOOpQFUVtovklnEY+jBzqes9RJjjPBtHFuRCaOZELT+J6bvEfjfz2anYR9Zycx4/SaGAgRJeIahqmBsYXLHTdS5ilzPFLrot/FwULzTdKjMveR/GLCpIkX2NyMnxkkTRIOmfiyQXPWeHP5Ck4OntChoiKUJBSlCV81cY9Fprl4K4ouCmzaBKCy5mbCgRoqSZnugEGJw4zGb6j08iGGOgqEp8btlKiEJQmsNnGti2yAYofvmNF48cXsCJF+GZe5uAkx30WPR17JDrCzUB923jhau1qVpbDKI3cZLDFR42LQxQce2R7gafawtbt7pLJf1KpsRZ55ibjXxW0G8y1S5nDURSaIciLDLk475F2UeqQMOGaiw8Wv1r9kewuxjOvReferPkn5nkXuNqh3UewCEyUuFjjUmFjgDdTPr9aTVYEZIeVOE6tMXGkjFVW/wQYT6yzPMEZLELeYmOuQMdEL/JnIRsSLjS+zf/04PIU92qxkYT0/Br5t4lIXu0xsCZF/ShQlcK2JWz1SEcRbJp4LotHEYkbsZaLLI+sssO2E2FOdJ3WnVjnqgAoTHozBTEqPD/BRRxfHz9d6F+yZFszhSstzi4k64HWJRx1eHBrgSLaMRCmdQbzv4gcmrjJRg6g0ERx2ydhg4uWYYWfns2PKvL2jv0+tQltvmTzXmZhtImdiow3x7FsbrPesxZy8/m6Cw2ITK13MNHHIxAsyXsiK1y4upucTF+1/0CdB28B3M9ugnJGq5t2dGzhyzlpiDh2eJroRt5s46uIxEx06xa4tnZa/UIDjgwIm3MBcRIukhc5Okie6k5PAxQkiL546zO7u7gsPCYXbZdw46OK0i0qHuU2tumiskSxrVHrkqkTIxWAU/2pomLhYuXCgI1nhr0EcdFEaIiuSlJYbWjUdZE1NyixbyZxkZMuXWWTAxd+zZzh0Ic/kuSqw9ab+49p5URlbXTS4uNkgeJ65N9/JviCKTDSZWGlQbfC2iWeOHWdgqiDhPJnpulW6zAOPWGRVEDUmUhcDJoKLchdDJnYZPEmOtZs3j1NITzUowA2tmu85vm7QEkSNQXGIiEifwx7EhtwAT3d2Tv2z44Q906JFZKrnchmBxRapMZELKbvJ8rctf/w/ecj9WG3y5k68r2/EvqGB2PEZP41/oc+t/g2T7Sl0ZJVIiQAAAABJRU5ErkJggg==",nk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAYZSURBVFiF7ZhfqBxXHcc/3zN79+5mE5O0am2ioqXF1oqlQR+MVaw+ig8+GKrQ0lRQVCpYFQu+DNiCLSGFPgiKehX1xTwp+OBTU4VYxRQKplEsTWsT+s/EJtfd3Ls7c74+zMzuzO7sjVR86v3CMDPnd87vfM/vnN/vnN+BbWxjG28sqK3Qd6c93pxcOyYMGoJxd7HyGKAqn5evFK9JvaxWZ9ys3aU3JBm+qJ8c3tiSqNM0MMpuyNS5CyfvF1qFAA5F1ajad/m2sEMhoyafa+NKTgDX3nFGwWIz2k/J/unq2ueekeRK1pkj3slCuENwl/E+m4AjmFK5phoBXHVIBNW+XX8DRBxCqSeWJEu5GvaKQboFtPH0oWMP120+TzRIfBh4m/GzwJPB4Xyhx7PRu+JrsAuS1djLQVDJUNmsJDaVV9RU/V6NOAC8y+Ij7x0MjzQs2KB58aLo7xrg2BHhdB69lifxr2wArJYM8+bQ1CtITChlvZowlk9lBmDcm9NR1feNgj7S9YKdZ4eDxrKctygoAkJ4uBriOX33O88t1Pk/YPPun++KCsOwRL5IdDqHcVH0X8D3Pro6gRulZNCJ8QK93S9w5M6RmDnG60E70anRW6PX1tgc71K/+1nsmyfSS4zW/8yXv/dHrx79mx657/JWTZdZs52oKJ3AQHJFXk7T8Oor7HhL0t8zMhF1A8QbbH0cq0/gDqPfbE76a77nRyf048+vtyrqAlll9EUDtQwiFh6LoTteFFcEQa/e89CuyaXVW/b0+5/OOsmXVjqdQ5shFpuEDLLAO2UOhci3sx3jg/7a0f5SpYqUMWxBtHyNhuXTbtD619Or3+T4CQV9AXNQikD4Q8jzx0lCGbamLQTc5shhNne+bPupejBvkvUshNWwaNHg0qLLneni/ffv2aHkU0niB4U/Cu55tuXMOqTxCOmTE+Uf4lsP71zUOqn1nS9I26e+xfQVnKadQex/wAlfNPHdljvlNBcdrQAYYabl1YMH4A+Oh4N3tmsv+w4AZxuSdmdi+aJmxFuDfFs0B5BD4XjMpizmtpINwahQI2aRJCKFa0W4aqkl5FY7tRCd7o+teiZJeEewb4W4glWrb6RITDobivmfrASh3vQcEBPARPsZRdo9vyLZ0vXyOBpiqXxeV9wreT/F5NacxrLpy5O+w8pvleePO6+6XCGGfLQaw5DNyxusdtuJTskuMm216Mz6i+FJykIkdISQjKkquwPcTND3RT4iCaWiAM4czK9I/Ev94Bv/bGc4htApDiladOQWi5bHsCUOZbQu/Mp05NMoE4XDQHBrcYaLoOK4ZytaOt5OsKm9WtJvn5O071py6zoB6HhyTtIpiEaFd2u6XCxEB9ydPbGrQJ4kPo382tZEIyp1zqOFaBX34jSTaKDXO2t8QuKFahdzI2aWIWYalsjAj+VZPM0j9y2kGA1UEaeFVUvAZ5oxtOpK03GSbZ4AryGvg4vDveJ8zAScg/8ena91u5zRsvU0xfKT2/Kp30Ln8R07XgqBXxiOSn6OMiNqWBJPkJ+Q4oNdXT7OkW+OtiZZEpy2b6LFmeqYtJbenqbZY2l65mOj0Q9Jun+J9kFL75PY65wJ+EUUTmKeSDo6yUPppStas0s5Ce2B9ApEl+P2NM2As07TX4csO5lZ+7EGhJg7dl7b9PgfO58/dV7Hji1u3EtRrfHFiX7dRCsoTcfAmfL5HzAGVIQ0x4X4tBXRAUmyzw985VLx22tKL/cWW0xRO3JO/Xyr+j2yTe+LMFi2QppEd+920IWhTSZ8E9bhmIcLxVRUM1heSKyMi0uIWJbFKlQE7GyWWodQlo/LthRbc9WOQPQEkuQqcm4CMkn/5l97G4znLHoq2tf8HsJ7kK6L9vXFAbrM0V0ciD1L4mc5fRUDqzRG5QVFqNpSvgXEYgCe5f44ohCizVnZv3t6+HwjRjWvdGzxwFevi+hOmQNR7jequrJgUvzn9SualmuclrJp3dqVEBRXPiJchvBkx/4Zj977bD0LaL8kSz/TJblmPyGrXZJ1a9Fq/qKr5fKsUbbScr7pLpbF3pCXz5/TsXR5sraNbWzjDYL/ANPP2oDpD/R+AAAAAElFTkSuQmCC",pq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAkCAYAAACNBsqdAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFdSURBVEiJ7ZbdcYMwEIS/0EDoICqBEtSB6SDuIC6BDiiBEphUgDuIO7A7cFKB8yDJHPrFQ97inWFk68Rq7w7QQog9MAJn4GbHCfgA6sj6IpQgS11noNlCerUqO2Cw/2VsNfkkbhzsRj46T3lszQJa3DAW1h48AVmMzCmuac4Xs+okKuZ6HYHvFcSfdlRkylGJ4GUFqRPgoLzfWhI7/KwkjqHGlGhy5FVu9YPErj9vJWK9ZacUcY9Jq/hIPUrsnhT118Sb8SR+Ej+J/z2xPBeTR1klgq9i/mTHhvALtxOkl5wCd+pOYq5h6SFazId/IG4V3sX83cz0YlKq68hbLVkSaSHu0KRNyIGlvYo5JZXIAlharNYP2vQ0oaGpWXo+5cVRQtkVY2VLUMz9uWFKF0VLmHLMVdZ2Y6m05PnQhDV1xttdfiP7EqmDYu5yyYTvUyQvhQ12hC/JCWMMjzl1v0cfjAryhqYGAAAAAElFTkSuQmCC",iAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZvSURBVFiFzVk9bxtHGn7eGYoyARcsrnCXNeAixQGmgSuuOFGb7rrYQHpLPyCw3OnIAKKAnMJO9C+Q1AeQAlzvlZwiRQAzfYCsgRTuskUASrucea7Yr9nliqJ4ByRvxdl555lnPt6voWBN8fdnvtHSU5RtijwB8ATAg6z7d5CRQP1oxVxq4TT4uhOsM4/ck5RHrQ9I+hDx7jlXBMpEtVtvgpFE/1eCBTFg556kbpOJ2tg4XIWoukthazDbsUq9XUqODAFMiyYQZN9ukz2bJL9sDeLbMVch2B/GxyL6ZOlxkqOro83H4hAUSqDa7WcAJkvguyI46Q/j42UcWk0f/RG7JknOAfi1rh8A/L1G7rAJIzu+1/3BTQSRUQ3jUwDdrL23NYx7emPjRdORN+6gSZJzccmRoSKeZcDpJyC4jZwrV0ebhwQCB+uRMuaZewUE8LMNWZAFgv1hfFwhJ/yorP3MQj5HuepIG7N7F7lcKroinlHwsyvws0uy6bgrBLeG13sA9ioalAdowYNwz/k2CcadcFWCwbgTCnBaklEH5ib2Afylprq3NZjtNBL0R+wK1EEDftdSv0W5e1Dt1ptVyRWkjMmuAwERT5Scu5gueX9/5uXtwkhskhw4AyJa7oqSkwaQa5vMD7YGs5809BTtjfA2f+aP2EWceAamR9HbACJAqnhkqKzdtVq/TRmKR60PAOymhDMgmyS/lYNkdHW0cejvzzyj9YksWnNdomyxD502GhZXEaFciJ2/DsadsD+4OXCtXRnzOBh3QgUANp6/cifLjzAYd0It5k5LzYg8rLWXkCMAQuz8TX6XlbVnrmVnu5jdwboBOEdmKL1ixcD3pNkFZILUMa8aU6cCnKZjOU0PTmB0iR2MOyGFxd0m6QNAy/9q5ltWDODMRRboT9IVA4T8+O6oc+r25/eMIt8Q/Ge2kFMx5gwPHkzr97M/TJ4C7JXYpWjDC6uRuhoRz9+f+crdIZBhMJLQHcQMLP1tPtS3JhhJFBy1pwA/ljASBuNO0GQ8LoaLDaS7CCdkGi09pai3Cw1RF3VAIb2iYavk1xFt6MRsB7ucMch/KeptRdhyhzj/aVG/dAt6sz1d6L+vKF3uakMS4nKg0JP+MP4NmcUJ8D2c8AMAbpolIt+C/L1pXgL/QJpVA6lRNC9G5CHJL4qmE2GyL4/yuwwgkv4wZiPQn0TuTFj/aGkh9WX5EZ+SNUMQjpzGBLzF9wmfA+gBaSomLC97VQ9doOJ3R243gZ6kWAAQtQCEObCluaz7uf4wLgAUeZa6lEXZHsYeMxyhBFdHG40RyB/Rs0mSE4zqemk2o1OCZKTE2TGR1tMFRLe2sGZpbF1FzE3s+t2F03A5CNRUWTGXDht/gZ+UC3BD09qiSt/nYpcT2vx4YcVcKtdxAui5uRgACKR0rLXQtI64GC42kB6/6xu1cNoKxp2gP7gJ8w6rWi8BFPeCMB8kM3Y3NPkjdnF93TMKnqD1SSUkCv3+IAEx/wCqSG+2p3kIJdgTB9slaOP5S6dSj4KvO0ELAEQkKB2y3fH3Z2d5GqQNp1bnK4a/PUjOCduzSeJB6wyv6koF8CH0BRoQwCYJ+sM4EkpA5xppqsBdsGM8AGUCZH6wTMcBiHhWazc/DN3JKXy+xrMHAHRZuo9UrCmMJMtJi4w+z0mLDd0exiduWFPGPLZKvazVtHWJCEwVJaLwr3BDHSWk0APgYUnyStjXaZql3xd6WUYPODWJGHNIpYpHocqARdQ9Zc13bmWXLfBJNsHFpePf/BE9E1/7IvqkDiVQx1ajUg+5RVkR6oJxJySs6zRLcmRYKbQFvXuVnSMJBa3SA9Tw3LlouevmkZVY/O6ocwq6oS1XkhcueQI7dXe0TPz9WbWuhjpVkBcNqpN332xWctKFZOHqaPOQZEXJgufaVl+srNaNTxVNYrR2y9dIgd9ZsDKelIurf7df18c2ZjO63d4lpSSZWvZ7iHx01Hr9wU1ToV+R/uDmoFa2/moF711PQMh/9Dz5smn80gfM7K1kb5kOssdIJslx4QUoI9VuvbFx/OoOLwAAk6adW4kgAGz96+b5LS8MpZAhRCJU0q1q2GoaQ9jDevZ0b4JA5uXj+avsov/PGU1Wlh6u4gnu94i+FlGm05ChiASrEluLoCv+VzPfUHoK6imBvwF4hPI5LQLwq5A/W+GlNpwG4/X+hvgvHbA21g5r0sgAAAAASUVORK5CYII=",aAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAY/SURBVFiFzZi/bxzHFcc/b3ZPcKGCRQp1PgEqXATQCUiRIoAuXbpw4aikzIVNAiwMU38BySolqYoAecSSd+ocYmkgvY6ACxcGdO4NeAW4UOcrXAS+3Xkpbvd29gePRyZA8oArdubdd77zZua974xwTzuNvu7jmZ6IeQ48AX0C8lHe/SswBb5XtdeImWxtBOP7jCN3cT6O4m6nwx6WPkL3jmNNBY5MyuswDKb/VYILYsrmHUm1D6ocmYyDVYia2xxOhpebHY+3S8kpCTBxWsZ5W7u7sJv5/HQyjG/GXIXg2TA+NGKiZcspsP/Fy+AxUhIUGHsZz0Q5WgK/ZoTobBgfLuPgtzVGUbyW+cQK/WqPfgfyR5fc5xvBQRtGvnyvzkbxVGHfmdJ3oJ8AazCP5mAU97yUoG3JWyOY+cS45JTEpjwD+cRxG99EzrXcZ1xi6aNZyrPaFujnYzasQTAPeUkO/TDL+LPn81fyWQPTWUp4G7nCKr5C1/Ns38t4Bvzokmxb7grB0+Hlrgq7VRf5yPfpKmW7wNFOGCSrEtwJgwThvBzU7GU+feB3rp8KuyfDy81WglEUr4mYvRb8NYG3lNHDpLxelVxhsxnldpgfutjFdMkfR3G3+F4cEuux5/xhClkIXtQE0X/ZjuydDC9/IDOTDiQ35bMoitdm0MWzPWN4jjJt4CmJZmkovv+2IN/psAfzbSEFUObzSznB+ek8juJuxyeicZobNs0n+9D5pjm5hl3NUl7thEFyNor33NM+S3m8EwaJAbA+X7mDFUu4EwaJwq0nNSfysPZ9Gzk0TV8Xe/m3lAv3ZOdRnO/B+gGoLJnanoP5rVUbinDEvHKsWlMnCOdWbYhbcTyzwJ4Hw5Z7285XzT8dxX2c2f6WcuEiG2M+Vs3JC99vb3x67vYX+8z48nfQv+SzPNdZeuHjT+r78+xN/FSVXoHt9qWZuer4HOYY3dPo676pREhJ6umjAAOw1r6vhyYMg+l2GEwQ/VC0iZJshS/GbYfHxXCxIU9HtQibXM/NgQ1XdUC0rMMimjT672qZLQlos8aLlFVHxDw3OLPIrP2hASjl8s9Sb9Lov6MpfhnVFhFS49CVwSj+hXIPfotUyg+uzBKRfyj66w0j/wl4kn9NXHXjmiAPVfVvTsN5FUceLfYyTGUwirV1wP8Tu1Ww/q/NB6f8COdSU8JudhfhKC9XDVNYh8V+HosrsVwT1lQreXff7dY5xnr+OfWBpAC21l5vv6zmucEoXgBkMy62w6B1bw3exN3iwMkSrZiXz4LgtO53MrzcNGLWc7ZTkxMEwDPmaQPRiaiQ3lq+brOOn7l5t7EaFQ7CxKja64W/togCcZbcKU33NVXptmIX/XaxvKjaa1NJnNBztRiAOOmiXpruYy6G1FLRcRR3K7lRzMTfCl+MB8M4KToe+HyGo2Cste9FTD6jMqlHUbyWkvbUM11PzMdun0L/bBSTqX1vRKez1JsUJXRZ6Xzg85mT86ZbG8F4LlgN4yIhq7J5HMUXi5qc2Qn+Ihv1B6M4RullQlfwkTmhuvUV+iafWMeHwSieMj/Z/cVEMjN2J5zVVNWcGk05/sAr9WGKn9QGX7/HswfMU9m625A5ci3XpAtFX2jSxdPH4E0cuWVtlvI4D/n+kkGnlLrw97ilbp4duvnvxtOval/lMutd4efetxd3ktmMg45XPgp1fN7pzcC7s5RvXGmWT/BJPsCVm9+Oo7jrebZvxER1IBFz2PGr9yH3UrbYXDthkFismzRLckpSuWgLvbteOz1xMkAdrxqI0NWRlVq8/fLT83rpAbAZQYX8/CB1VyV4HMXVe7VwbjOCup8oR19sBBVN2hAL+dJUnTziLDOVF6vODU8VbZbfDBdLmKV8Y7zG/68+fxm8qv+3Vc1486eKkqTQ7fi8Q+SD49Y7G8VtF/2K5T59p+ln4/POzQSi/FPFftn2/6UPmGfD+LD5FFIDyB8jsw6HRRYQ2Dcpr63PV7dkAUQ5aovcSgQBBqN4HSpL1DQlQZjiyC2U7tJ8qSQWe1BXT3cmCPMsn0djdynRVU04n804WCUT3OkR/T8iqiQYxqsSuxdB105HcR+1PTHmKcofgEcUz2nKFOFn4EdVe01mJ1vhi/F9xvk3IzLAsBWE17kAAAAASUVORK5CYII=",hq="/assets/26-BsA4Ghua.png",i0t={class:"history-sidebar"},a0t={class:"history-header"},s0t=["src"],l0t={class:"history-list"},u0t={key:0,class:"history-loading"},c0t=["onClick"],d0t={class:"history-content"},f0t={class:"history-title"},p0t={class:"history-time"},h0t=["onClick"],g0t={key:2,class:"empty-history"},v0t=["src"],m0t={class:"chat-header"},y0t={key:0,class:"question-title-card"},b0t={key:1,class:"default-title"},w0t={class:"chat-content"},A0t={key:0,class:"initial-content"},C0t={class:"ai-intro"},x0t={class:"ai-avatar"},S0t=["src"],E0t={class:"function-cards"},k0t=["onClick"],T0t={class:"card-header"},_0t={class:"card-icon"},D0t=["src","alt"],I0t={class:"card-description"},O0t={class:"card-header"},M0t={class:"card-icon"},P0t=["src"],N0t={class:"card-header"},R0t={class:"card-icon"},B0t=["src"],L0t={class:"card-header"},F0t={class:"card-icon"},U0t=["src"],$0t={class:"card-header"},z0t={class:"card-icon"},j0t=["src"],H0t={key:1,class:"chat-messages"},W0t={key:0,class:"user-message"},V0t={class:"message-content"},q0t={key:0,class:"message-file"},G0t={class:"file-display"},K0t={class:"file-icon"},Q0t=["src"],Y0t={key:1},Z0t={class:"file-details"},X0t={class:"file-name"},J0t={class:"file-size"},egt={key:1,class:"message-text"},tgt={class:"message-actions"},ngt=["onClick"],rgt=["src"],ogt=["onClick"],igt=["src"],agt={key:1,class:"ai-message"},sgt={key:0,class:"web-search-capsule-outer"},lgt={class:"ai-message-main"},ugt={class:"ai-avatar-small"},cgt=["src"],dgt=["data-message-index"],fgt={class:"ai-response-content"},pgt=["data-message-index"],hgt={class:"stats-left"},ggt=["innerHTML"],vgt={key:0,class:"progress-capsule-inline"},mgt={class:"progress-bar-mini"},ygt={class:"progress-percentage"},bgt={key:1,class:"stats-right"},wgt={key:1,class:"question-summary"},Agt={key:2,class:"report-loading"},Cgt={key:3,class:"reports-list"},xgt={key:0,class:"report-loading"},Sgt={key:4},Egt={key:5,class:"ai-text"},kgt={key:0,class:"ai-markdown-content"},Tgt=["innerHTML"],_gt={class:"divider"},Dgt={class:"message-actions"},Igt={class:"left-actions"},Ogt=["onClick"],Mgt=["src"],Pgt=["onClick","disabled"],Ngt=["src"],Rgt=["onClick"],Bgt=["onClick"],Lgt=["src"],Fgt={class:"right-actions"},Ugt=["onClick","title"],$gt=["src"],zgt=["onClick","title"],jgt=["src"],Hgt={class:"search-sources"},Wgt=["onClick"],Vgt={class:"search-sources-content"},qgt={class:"sources-section"},Ggt={class:"sources-grid"},Kgt=["onClick"],Qgt={class:"source-title"},Ygt={class:"source-description"},Zgt={class:"source-badge"},Xgt={class:"related-questions-loading"},Jgt={class:"related-questions"},evt=["onClick"],tvt={key:0,class:"recommended-questions"},nvt=["onClick"],rvt=["src"],ovt=["src"],ivt=["src"],avt=["src"],svt={class:"recommend-list"},lvt=["onClick"],uvt={class:"chat-input-section"},cvt={class:"input-container"},dvt={key:0,class:"file-preview-section"},fvt={class:"file-preview"},pvt={class:"file-icon"},hvt=["src"],gvt={key:1},vvt={class:"file-info"},mvt={class:"file-name"},yvt={class:"file-size"},bvt={class:"input-box"},wvt=["title","disabled"],Avt={class:"icon-container"},Cvt=["src"],xvt=["disabled"],Svt={class:"icon-container"},Evt=["src"],kvt=["disabled"],Tvt=["disabled"],_vt={class:"icon-container"},Dvt=["src"],Ivt={key:0,class:"recording-indicator"},Ovt=["disabled"],Mvt={key:0,class:"stop-text"},Pvt=["src"],Nvt={__name:"Chat",setup(e){const t=N_(),n=Hl(),r=Q(""),o=Q(null),i=Q(!1),a=Q(!1),s=Q({}),l=Q("");let u=null;const d=Q(new Map),c=Q(!1),f=Q(null),p=Q(""),v=Q([]),h=Q([]),g=Q([]),y=Q({}),m=Q({}),b=Q(null),w=Q(""),A=Q("success"),S=Q(2e3),{isListening:k,transcript:M,error:D,startListening:P,stopListening:O}=T0(),_=Q(null),B=()=>{_.value&&(Bo(),_.value=null)},N=()=>{document.hidden&&_.value&&(Bo(),_.value=null)},q=Q(null),U=Q(null),j=Q(!1);Q("");const H=Q([]),G=Q(!1),Z=Q(null),$=Q([]),L=Q(!1),W=Q(null),ie=Q(!0),ee=Q(!0),te=Q({});Q(!1),Q(new Set);const X=Q({}),ue=Q({}),ve=Q(!1),Me=Q({results:[],keywords:[],total:0}),we=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]}),he=Q(!1),Te=Q(""),Y=Q(""),be=J(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping)||!ie.value),De=J(()=>l.value?l.value.substring(0,20)+(l.value.length>20?"...":""):"AI问题分析报告");J(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&(!ae.content||ae.content.trim()===""))),J(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&ae.content&&ae.content.trim()!==""));const pe=J(()=>p.value==="history"?`确定要删除历史记录"${f.value?.item?.title||""}"吗?删除后将无法恢复。`:p.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),oe=J(()=>p.value==="history"?"删除历史记录":p.value==="message"?"删除消息":"删除确认"),ce=ae=>{if(!ae)return ae;try{if(ae.includes("%")&&(ae=decodeURIComponent(ae)),ae.includes("\\u")&&(ae=ae.replace(/\\u[\dA-F]{4}/gi,de=>String.fromCharCode(parseInt(de.replace(/\\u/g,""),16)))),ae.includes("&")){const de=document.createElement("textarea");de.innerHTML=ae,ae=de.value}return Rt(ae)}catch(de){return console.warn("文本处理失败:",de),ae}},Re=new Map,Ee=new Map,Le=(ae,de,Ce,Lt=50)=>new Promise(Tt=>{const wn=`${ae.file_index}_${de}`;Ee.has(wn)&&(clearInterval(Ee.get(wn)),Ee.delete(wn)),ae._typewriterStates||(ae._typewriterStates={});let Sn=0;ae._typewriterStates[de]={currentIndex:0,isTyping:!0};const On=setInterval(()=>{if(Sn<Ce.length){const br=Math.max(1,Math.floor(Lt/10));Sn=Math.min(Sn+br,Ce.length),ae.report[de]=Ce.substring(0,Sn),ae._typewriterStates[de].currentIndex=Sn}else clearInterval(On),Ee.delete(wn),ae._typewriterStates[de].isTyping=!1,ae.report[de]=Ce,Tt()},1e3/60);Ee.set(wn,On)}),Fe=()=>{Re.forEach((ae,de)=>{clearInterval(ae)}),Re.clear(),Ee.forEach((ae,de)=>{clearInterval(ae)}),Ee.clear()},Pe=(ae,de)=>{if(!de)return Ne(ae);const Ce=`
- 📄 文件信息:
- 文件名:${de.name}
- 文件大小:${ha(de.size)}
- 文件类型:${de.type}
- 📝 文件内容:
- ${de.content}
- ---
- `;return ae.replace(/<word>.*?<\/word>/gs,Ce).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Ne=ae=>{const de=ae.match(/<filename>(.*?)<\/filename>/),Ce=de?de[1]:"未知文件",Lt=ae.match(/<filesize>(.*?)<\/filesize>/),Tt=Lt?parseInt(Lt[1]):0,wn=ae.match(/<word>(.*?)<\/word>/s),Sn=wn?wn[1].trim():"无内容",On=`
- 📄 文件信息:
- 文件名:${Ce}
- 文件大小:${ha(Tt)}
- 文件类型:${Ce.endsWith(".docx")?".docx":Ce.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${Sn}
- ---
- `;return ae.replace(/<word>.*?<\/word>/gs,On).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},pt=ae=>{try{let de=Tg(ae);return de=Bt(de),Vt(()=>{nr()}),de}catch(de){return console.error("Markdown渲染失败:",de),ae.replace(/\n/g,"<br>")}},Rt=ae=>{if(!ae)return ae;let de=ae;const Ce={"\\alpha":"α","\\beta":"β","\\gamma":"γ","\\delta":"δ","\\epsilon":"ε","\\varepsilon":"ε","\\zeta":"ζ","\\eta":"η","\\theta":"θ","\\iota":"ι","\\kappa":"κ","\\lambda":"λ","\\mu":"μ","\\nu":"ν","\\xi":"ξ","\\pi":"π","\\rho":"ρ","\\sigma":"σ","\\tau":"τ","\\upsilon":"υ","\\phi":"φ","\\chi":"χ","\\psi":"ψ","\\omega":"ω","\\Gamma":"Γ","\\Delta":"Δ","\\Theta":"Θ","\\Lambda":"Λ","\\Xi":"Ξ","\\Pi":"Π","\\Sigma":"Σ","\\Upsilon":"Υ","\\Phi":"Φ","\\Psi":"Ψ","\\Omega":"Ω"};for(const[Lt,Tt]of Object.entries(Ce)){const wn=new RegExp(Lt.replace(/\\/g,"\\\\"),"g");de=de.replace(wn,Tt)}return de=de.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),de=de.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),de=de.replace(/\\int/g,"∫"),de=de.replace(/\\sum/g,"∑"),de=de.replace(/\\prod/g,"∏"),de=de.replace(/\\partial/g,"∂"),de=de.replace(/\\nabla/g,"∇"),de=de.replace(/\\infty/g,"∞"),de=de.replace(/\\pm/g,"±"),de=de.replace(/\\times/g,"×"),de=de.replace(/\\div/g,"÷"),de=de.replace(/\\leq/g,"≤"),de=de.replace(/\\geq/g,"≥"),de=de.replace(/\\neq/g,"≠"),de=de.replace(/\\approx/g,"≈"),de=de.replace(/\\equiv/g,"≡"),de=de.replace(/\\propto/g,"∝"),de=de.replace(/\\in/g,"∈"),de=de.replace(/\\notin/g,"∉"),de=de.replace(/\\subset/g,"⊂"),de=de.replace(/\\supset/g,"⊃"),de=de.replace(/\\cup/g,"∪"),de=de.replace(/\\cap/g,"∩"),de=de.replace(/\\emptyset/g,"∅"),de=de.replace(/\\land/g,"∧"),de=de.replace(/\\lor/g,"∨"),de=de.replace(/\\neg/g,"¬"),de=de.replace(/\\rightarrow/g,"→"),de=de.replace(/\\leftarrow/g,"←"),de=de.replace(/\\leftrightarrow/g,"↔"),de=de.replace(/\\forall/g,"∀"),de=de.replace(/\\exists/g,"∃"),de},Bt=ae=>{if(!ae)return ae;const de="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";return ae.replace(/<file>(.*?)<\/file>/g,(Ce,Lt)=>/^<span\s+class="standard-reference"/i.test(Lt)?Ce:Lt.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/)?`<span class="standard-reference" data-standard="${Lt}" title="点击查看标准详情" style="${de}">${Lt}</span>`:`<span class="standard-reference" data-reference="${Lt}" title="点击查看详情" style="${de}">${Lt}</span>`)},en=Q([]),Wt=Q(0),Ut=Q(!1),ct=async()=>{try{Ut.value=!0;const ae=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:0});ae.statusCode===200?(Wt.value=ae.total||0,en.value=ae.data.map(de=>({id:de.id,title:de.title||st(de.content),time:Ot(de.updated_at),businessType:de.business_type,isActive:!1,rawData:de}))):console.error("获取历史记录失败:",ae.statusCode)}catch(ae){console.error("获取历史记录失败:",ae)}finally{Ut.value=!1}},_t=async ae=>{try{const de=await Bn.getHistoryRecord({ai_conversation_id:ae,business_type:0});if(de.statusCode===200){if(!de.data||!Array.isArray(de.data))return console.error("响应数据格式错误"),!1;const Ce=await Promise.all(de.data.map(async(Tt,wn)=>{const Sn=Ae(Tt.user_feedback);let On=null,br=Tt.content,Er=null;if(Tt.type==="ai"&&wn>0){const oo=de.data[wn-1];if(oo&&oo.type==="user")if(oo.content.includes("</filesize>")){const Vo=oo.content.split("</filesize>")[1];Er=Vo?Vo.trim():oo.content}else Er=oo.content}if(Tt.type==="user"&&Tt.content.includes("</filesize>")){const oo=Tt.content.match(/<filename>(.*?)<\/filename>/),Vo=Tt.content.match(/<filesize>(.*?)<\/filesize>/),Na=Tt.content.match(/<word>(.*?)<\/word>/s);if(oo&&Vo){const ml=oo[1],Xc=parseInt(Vo[1]),p2=Na?Na[1].trim():"";On={name:ml,size:Xc,type:ml.endsWith(".docx")?".docx":ml.endsWith(".doc")?".doc":".docx",icon:_r(ml.endsWith(".docx")?".docx":ml.endsWith(".doc")?".doc":".docx"),content:p2};const Cm=Tt.content.split("</filesize>")[1];br=Cm?Cm.trim():""}}let Wo=br||"",Rr=[],Io=Tt.summary||"";if(Tt.type==="ai")try{const oo=Tt.content||"";if(oo.trim().startsWith("[")||oo.trim().startsWith("{"))try{const Vo=JSON.parse(oo);if(Vo.reports&&Array.isArray(Vo.reports))Rr=Vo.reports,Vo.webSearchRaw&&(Tt.webSearchRaw=Vo.webSearchRaw),Vo.webSearchSummary&&(Tt.webSearchSummary=Vo.webSearchSummary,Tt.hasWebSearchResults=Vo.hasWebSearchResults||!1),Vo.summary&&(Io=Vo.summary);else if(Array.isArray(Vo))Rr=Vo;else throw new Error("Not an array or valid format")}catch{let Na=oo.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");Wo=pt(Na)}else{let Vo=oo.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");Wo=pt(Vo)}}catch(oo){console.error("历史记录处理失败:",oo),Wo=Tt.content||""}let ro=0,ni=0,Oi=100;if(Rr.length>0){const oo=Rr.filter(Vo=>Vo.type!=="category_title");ro=oo.length,ni=oo.filter(Vo=>Vo.status==="completed").length,Oi=ro>0?Math.round(ni/ro*100):100}return{type:Tt.type,content:br,displayContent:Wo,reports:Rr,summary:Io,totalFiles:ro,completedCount:ni,progress:Oi,file:On,isTyping:!1,id:Tt.id,userFeedback:Sn,userQuestion:Er,searchSources:Tt.type==="ai"&&Tt.search_source?at(Tt.search_source):null,rawData:Tt,webSearchRaw:Tt.webSearchRaw||null,webSearchSummary:Tt.webSearchSummary||null,hasWebSearchResults:Tt.hasWebSearchResults||!1,webSearchTotal:Tt.webSearchRaw?.total||0,showStats:ro>0,currentStatus:"completed",statusMessage:ro>0?Tt.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${ro}</span> 个知识库文件,以及 <span class="file-count">${Tt.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${ro}</span> 个知识库文件`:""}}));g.value=Ce,gt.value=ae;const Lt=Ce.filter(Tt=>Tt.type==="ai").pop();return Ce.forEach((Tt,wn)=>{if(Tt.type==="ai"&&Tt.rawData){if(Tt.rawData.search_source)try{const Sn=JSON.parse(Tt.rawData.search_source);Array.isArray(Sn)&&Sn.length>0&&(te.value[Tt.id]=Sn)}catch(Sn){console.error("解析搜索结果失败:",Sn)}if(Tt.reports&&Tt.reports.length>0&&(s.value[wn]||(s.value[wn]={}),Tt.reports.filter(On=>On.type==="category_title").map(On=>On.category).forEach(On=>{s.value[wn][On]=!0})),Tt===Lt&&Tt.rawData.guess_you_want)try{const Sn=Tt.rawData.guess_you_want.trim().split(`
- `).map(On=>On.trim()).filter(On=>On.length>0).filter((On,br,Er)=>Er.indexOf(On)===br).slice(0,3);Sn.length>0&&($.value=Sn,W.value=Tt.id)}catch(Sn){console.error("解析推荐问题失败:",Sn)}}}),await Vt(),setTimeout(()=>nr(),100),!0}else return console.error("获取对话消息失败:",de.statusCode),!1}catch(de){return console.error("获取对话消息失败:",de),!1}},st=ae=>{if(!ae)return"未知对话";if(ae.includes("</filesize>")){const Lt=ae.split("</filesize>")[1];if(Lt&&Lt.trim()){let wn=Lt.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];if(wn.includes("基于您好")||wn.includes("蜀道安全管理AI智能助手")){const Sn=wn.match(/问题描述[::](.+?)(?=分析结果|$)/);Sn?wn=Sn[1].trim():wn=wn.substring(0,20)}return wn.length>30?wn.substring(0,30)+"...":wn||"新对话"}}let de=ae.replace(/<[^>]*>/g,"");de=de.replace(/\s+/g," ").trim();let Ce=de.split(/[。!?\n]/)[0];if(Ce.includes("基于您好")||Ce.includes("蜀道安全管理AI智能助手")){const Lt=Ce.match(/问题描述[::](.+?)(?=查询结果|$)/);Lt?Ce=Lt[1].trim():Ce=Ce.substring(0,20)}return Ce.length>30?Ce.substring(0,30)+"...":Ce||"新对话"},Ot=ae=>{if(!ae)return"未知时间";let de;if(typeof ae=="string")de=new Date(ae);else{let br=ae;(ae.toString().length===10||ae.toString().length===11)&&(br=ae*1e3),de=new Date(br)}const Ce=new Date,Lt=new Date(Ce.getFullYear(),Ce.getMonth(),Ce.getDate()),Tt=new Date(Lt.getTime()-1440*60*1e3);if(de>=Lt)return de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(de>=Tt&&de<Lt)return"昨天 "+de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const wn=de.getMonth()+1,Sn=de.getDate(),On=de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${wn}月${Sn}日 ${On}`},Ae=ae=>{switch(parseInt(ae)){case 2:return"like";case 3:return"dislike";default:return null}},je=ae=>{switch(ae){case"like":return 2;case"dislike":return 3;default:return 0}},at=ae=>{try{if(!ae||typeof ae!="string"||!ae.trim())return null;const de=JSON.parse(ae);if(!Array.isArray(de))return null;const Ce=de.filter(Lt=>Lt&&typeof Lt=="object"&&Lt.title&&Lt.content);return Ce.length>0?Ce:null}catch(de){return console.error("解析搜索来源失败:",de),null}},gt=Q(0);Q(0);const nn=()=>{g.value.length===0&&(en.value.forEach(ae=>ae.isActive=!1),X.value={},ue.value={},te.value={})},Tn=async()=>{!r.value.trim()||a.value||(na(),$.value=[],W.value=null,a.value=!0,i.value=!0,nn(),await jt({question:r.value,windowSize:3,nResults:10}),r.value="",na(),U.value&&Ho(),Si())};let He=0,ke=0;const me=ae=>{const de=[YE,ZE,XE,JE],Ce=de[He%de.length];return He++,Ce},Be=ae=>{const de=[ek,tk,nk],Ce=de[ke%de.length];return ke++,Ce},rt=(ae,de)=>{s.value[ae]||(s.value[ae]={}),s.value[ae][de.category]=de.expanded},ht=(ae,de)=>de?s.value[ae]?s.value[ae][de]!==!1:(s.value[ae]={},!0):!0,rn=ae=>!ae||ae.length===0?!1:ae.every(de=>de.type==="category_title"),Ye=(ae,de)=>{if(de===100)return"completed";switch(ae){case"querying_kb":case"web_searching":return"searching";case"analyzing_files":case"analyzing_web":return"analyzing";case"deep_thinking":return"thinking";case"outputting":return"analyzing";case"completed":return"completed";case"error":return"error";default:return"idle"}},Je=(ae,de,Ce=null)=>{const Tt={querying_kb:{message:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析知识库……',progress:10},web_searching:{message:'🌐 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您联网分析……',progress:15},data_retrieved:{message:null,progress:30},analyzing_files:{message:'😊 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析文件内容……',progress:45},analyzing_web:{message:'😉 <span class="ai-name">蜀道安全管理AI智能助手</span>正在分析联网数据……',progress:70},deep_thinking:{message:'🤔 <span class="ai-name">蜀道安全管理AI智能助手</span>正在深度思考中,请您稍等片刻……',progress:75},outputting:{message:'😄 <span class="ai-name">蜀道安全管理AI智能助手</span>正在整理分析中!',progress:90},completed:{message:null,progress:100}}[de];if(Tt){if(ae.currentStatus=de,de==="data_retrieved"){const wn=ae.totalFiles||0,Sn=ae.webSearchTotal||0;Sn>0?ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${wn}</span> 个知识库文件,以及 <span class="file-count">${Sn}</span> 个相关网络资源`:ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${wn}</span> 个知识库文件`}else if(de==="completed"){const wn=ae.totalFiles||0,Sn=ae.webSearchTotal||0;Sn>0?ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${wn}</span> 个知识库文件,以及 <span class="file-count">${Sn}</span> 个相关网络资源`:ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${wn}</span> 个知识库文件`}else ae.statusMessage=Ce||Tt.message;ae.progress=Tt.progress}},lt=(ae,de)=>{const Ce=g.value[de];if(!Ce)return;console.log("🔍 SSE事件完整数据:",{type:ae.type,conversation_id:ae.conversation_id,message_id:ae.message_id,ai_conversation_id:ae.ai_conversation_id,ai_message_id:ae.ai_message_id,allKeys:Object.keys(ae)});const Lt=ae.conversation_id||ae.ai_conversation_id;Lt&>.value===0&&(gt.value=Lt,console.log("✅ SSE收到conversation_id并赋值:",Lt));const Tt=ae.message_id||ae.ai_message_id;switch(Tt&&(Ce.ai_message_id||(Ce.ai_message_id=Tt,console.log("✅ SSE收到message_id并赋值:",Tt),console.log(" - aiMessage.id (前端临时ID):",Ce.id),console.log(" - aiMessage.ai_message_id (后端ID):",Ce.ai_message_id),Ce.rawData||(Ce.rawData={}),Ce.rawData.id=Tt,console.log(" - aiMessage.rawData.id:",Ce.rawData.id))),ae.type){case"intent":if(Je(Ce,"querying_kb"),ae.is_professional_question===!1){const Rr=ae.summary||"抱歉,我暂时无法回答您的问题。";if(Ce.summary=Rr,Ce.isTyping=!1,Ce.ai_message_id&&gd(Ce.ai_message_id,Rr).catch(ro=>console.error("回写AI消息失败:",ro)),u&&(yh(u),u=null),a.value=!1,d.value.clear(),ie.value=!0,gt.value&>.value!==0){en.value.forEach(oo=>{oo.isActive=!1});const ro=g.value.find(oo=>oo.type==="user"),ni=ro?ro.content.substring(0,20)+"...":"新对话",Oi=en.value.findIndex(oo=>oo.id===gt.value);if(Oi===-1){const oo={id:gt.value,title:ni,time:Ot(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:gt.value,content:ro?.content||"",updated_at:new Date().toISOString()}};en.value.unshift(oo),console.log("✅ 非专业问题:已在列表最前面插入新历史记录")}else{const oo=en.value.splice(Oi,1)[0];oo.isActive=!0,oo.time=Ot(new Date().toISOString()),en.value.unshift(oo),console.log("✅ 非专业问题:已将历史记录移到最前面")}Wt.value=en.value.length}const Io=g.value.filter(ro=>ro.type==="user").pop();Io&&Ce.ai_message_id&&Rr&&mi(Io.content,Rr,Ce.ai_message_id);return}if(ae.summary){const Rr=ae.summary;Ce._fullSummary=Rr,Ce.summary="",Le({file_index:"summary",report:Ce,_typewriterStates:{}},"summary",Rr,50).catch(Io=>{console.error("问题总结打字机效果失败:",Io),Ce.summary=Rr})}break;case"documents":Ce.totalFiles=ae.total,Ce.completedCount=0,ee.value?Je(Ce,"web_searching"):Je(Ce,"data_retrieved"),Vt(()=>{dr()});break;case"category_title":Ce.reports.length===0&&Ce.progress>=30&&Je(Ce,"analyzing_files");const wn={type:"category_title",category:ae.category,number:ae.number,count:ae.count,source_file:`【${ae.number}、${ae.category}】(共${ae.count}个文件)`,file_index:-1,status:"category"};Ce.reports.push(wn),s.value[de]||(s.value[de]={}),s.value[de][ae.category]=!0,Ce.currentCategory=ae.category;break;case"report_start":console.log("🔍 [DEBUG] report_start 数据:",{file_index:ae.file_index,source_file:ae.source_file,file_path:ae.file_path,metadata:ae.metadata,完整data:ae});const Sn={file_index:ae.file_index,total_files:Ce.totalFiles,source_file:ae.source_file,file_path:ae.file_path,similarity:ae.similarity,metadata:{...ae.metadata,_displayCategory:Ce.currentCategory},report:{display_name:"",summary:"",analysis:"",clauses:""},status:"streaming"};Ce.reports.push(Sn),d.value.set(ae.file_index,Ce.reports.length-1);break;case"report_chunk":break;case"report":Ce.reports.filter(Rr=>Rr.status==="completed").length===0&&Je(Ce,"deep_thinking");const On=ae.data||ae;console.log("🔍 [DEBUG] report 数据:",{file_index:On.file_index,source_file:On.source_file,file_path:On.file_path,metadata:On.metadata,完整reportData:On});const br=d.value.get(On.file_index);let Er;if(br!==void 0){const Rr=Ce.reports[br].metadata?._displayCategory,Io=On.report?.summary||"",ro=On.report?.analysis||"",ni=On.report?.clauses||"",Oi=On.report?.display_name||"";Ce.reports[br]={...On,report:{display_name:Oi,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...On.metadata,_displayCategory:Rr||Ce.currentCategory},_fullContent:{display_name:Oi,summary:Io,analysis:ro,clauses:ni}},Er=Ce.reports[br],d.value.delete(On.file_index)}else{const Rr=On.report?.summary||"",Io=On.report?.analysis||"",ro=On.report?.clauses||"",ni=On.report?.display_name||"",Oi={...On,report:{display_name:ni,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...On.metadata,_displayCategory:Ce.currentCategory},_fullContent:{display_name:ni,summary:Rr,analysis:Io,clauses:ro}};Ce.reports.push(Oi),Er=Oi}Er._fullContent&&!Er._typewriterCompleted&&(Er._typewriterStarted=!0,Le(Er,"summary",Er._fullContent.summary||"",200).then(()=>Le(Er,"analysis",Er._fullContent.analysis||"",200)).then(()=>{if(Er._fullContent.clauses)return Le(Er,"clauses",Er._fullContent.clauses||"",200)}).then(()=>{Er._typewriterCompleted=!0}).catch(Rr=>{console.error("报告打字机效果失败:",Rr),Er.report.summary=Er._fullContent.summary||"",Er.report.analysis=Er._fullContent.analysis||"",Er.report.clauses=Er._fullContent.clauses||"",Er._typewriterCompleted=!0}),console.log("📝 [DEBUG] 报告打字机已启动:",{file_index:Er.file_index,summary_length:Er._fullContent.summary?.length||0,analysis_length:Er._fullContent.analysis?.length||0,clauses_length:Er._fullContent.clauses?.length||0})),Ce.completedCount=Ce.reports.filter(Rr=>Rr.status==="completed"&&Rr.type!=="category_title").length;const Wo=Ce.totalFiles>0?Ce.completedCount/Ce.totalFiles:0;if(Wo>=1)Je(Ce,"outputting");else if(Wo>=.5)Je(Ce,"deep_thinking");else{const Rr=30+Math.round(Wo*30);Ce.progress=Rr}break;case"web_search_raw":if(ae.results&&ae.results.length>0){Ce.webSearchRaw={results:ae.results||[],keywords:ae.keywords||[],total:ae.total||0},Ce.webSearchTotal=ae.total||0;const Rr=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件,以及 <span class="file-count">${Ce.webSearchTotal}</span> 个相关网络资源`;Je(Ce,"data_retrieved",Rr),console.log(`[网络搜索] 收到原始数据: ${ae.total} 条结果`)}else{const Rr=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件`;Je(Ce,"data_retrieved",Rr),console.log("[网络搜索] 无搜索结果,仅使用知识库")}break;case"web_search_summary":if(ae.has_results&&ae.summary){if(Ce._webSearchSummaryCompleted){console.log("[网络搜索] 总结已完成,跳过重复打字机");break}if(Ce._fullWebSearchSummary=ae.summary,Ce.webSearchSummary="",Ce.hasWebSearchResults=!0,Le({file_index:"web_search_summary",report:Ce,_typewriterStates:{}},"webSearchSummary",ae.summary,200).then(()=>{Ce._webSearchSummaryCompleted=!0}).catch(Io=>{console.error("网络搜索总结打字机效果失败:",Io),Ce.webSearchSummary=ae.summary,Ce._webSearchSummaryCompleted=!0}),console.log("[网络搜索] 收到AI总结,长度:",ae.summary.length),Je(Ce,"outputting"),Ce.ai_message_id){const Io={reports:Ce.reports||[],webSearchRaw:Ce.webSearchRaw||null,webSearchSummary:Ce._fullWebSearchSummary||ae.summary,hasWebSearchResults:!0,summary:Ce.summary||Ce._fullSummary||""},ro=JSON.stringify(Io);Ce.summary||Ce._fullSummary,gd(Ce.ai_message_id,ro).then(ni=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),Je(Ce,"completed"),Ce.isTyping=!1,a.value=!1,d.value.clear(),ie.value=!0}).catch(ni=>{console.error("[网络搜索] AI消息保存失败:",ni),Je(Ce,"completed"),Ce.isTyping=!1,a.value=!1})}else Je(Ce,"completed"),Ce.isTyping=!1,a.value=!1}break;case"error":Ct.error(ae.message),a.value=!1;break;case"completed":console.log("[SSE] 收到completed事件"),a.value=!1,d.value.clear(),Ce.isTyping=!1,Ce.progress<100&&Je(Ce,"completed"),Ct.success("报告生成完成");break;case"interrupted":a.value=!1,d.value.clear(),Ce.isTyping=!1,Ct.warning(ae.message||"报告生成已中断");break}},Ue=ae=>{console.error("❌ SSE连接异常断开:",ae),u&&(yh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(de=>{de.type==="ai"&&de.isTyping&&(de.isTyping=!1)}),ie.value=!0,Ct.error("连接已断开")},ze=()=>{if(a.value=!1,g.value.forEach(Ce=>{if(Ce.type==="ai"&&Ce.isTyping&&(Ce.isTyping=!1,Ce.ai_message_id)){const Lt={reports:Ce.reports||[],webSearchRaw:Ce.webSearchRaw||null,webSearchSummary:Ce._fullWebSearchSummary||Ce.webSearchSummary||null,hasWebSearchResults:Ce.hasWebSearchResults||!1,summary:Ce.summary||Ce._fullSummary||""},Tt=Ce.reports&&Ce.reports.length>0?JSON.stringify(Lt):Ce.content;Tt&&(Ce.summary||Ce._fullSummary,gd(Ce.ai_message_id,Tt).catch(wn=>console.error("回写AI消息失败:",wn)))}}),ie.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",gt.value),gt.value&>.value!==0){console.log("✅ 开始更新历史记录列表"),en.value.forEach(wn=>{wn.isActive=!1});const Ce=g.value.find(wn=>wn.type==="user"),Lt=Ce?Ce.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",Lt);const Tt=en.value.findIndex(wn=>wn.id===gt.value);if(console.log("🔍 检查是否已存在,索引:",Tt),Tt===-1){const wn={id:gt.value,title:Lt,time:Ot(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:gt.value,content:Ce?.content||"",updated_at:new Date().toISOString()}};console.log("📦 准备插入的新项:",wn),en.value.unshift(wn),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",en.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const wn=en.value.splice(Tt,1)[0];wn.isActive=!0,wn.time=Ot(new Date().toISOString()),en.value.unshift(wn),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}Wt.value=en.value.length,console.log("📊 最终历史记录总数:",Wt.value)}else console.warn("⚠️ ai_conversation_id 为 0 或未设置,跳过历史记录更新");console.log("🎯 准备获取AI相关推荐问题");const ae=g.value.filter(Ce=>Ce.type==="user").pop(),de=g.value.filter(Ce=>Ce.type==="ai").pop();if(ae&&de&&de.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",ae.content),console.log(" - AI消息ID:",de.ai_message_id);let Ce="";de.summary?Ce=de.summary:de.content?Ce=de.content:de.reports&&de.reports.length>0&&(Ce=de.reports.filter(Tt=>Tt.report&&Tt.report.summary).map(Tt=>Tt.report.summary).slice(0,3).join(`
- `)),Ce&&Ce.trim()?(console.log("📝 AI回复内容长度:",Ce.length),mi(ae.content,Ce,de.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},ut=ae=>{u&&(yh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(de=>{if(de.type==="ai"&&de.isTyping&&(de.isTyping=!1,Je(de,"completed"),(de.webSearchRaw||de.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),de.ai_message_id)){const Ce={reports:de.reports||[],webSearchRaw:de.webSearchRaw||null,webSearchSummary:de._fullWebSearchSummary||de.webSearchSummary||null,hasWebSearchResults:de.hasWebSearchResults||!1,summary:de.summary||de._fullSummary||""},Lt=de.reports&&de.reports.length>0?JSON.stringify(Ce):de.content;Lt&&(de.summary||de._fullSummary,gd(de.ai_message_id,Lt).catch(Tt=>console.error("回写AI消息失败:",Tt)))}}),ie.value=!0,Ct.warning(ae.message||"报告生成已中断")},yt=async()=>{!u||gt.value===void 0||gt.value===null||(u&&(yh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(ae=>{if(ae.type==="ai"&&ae.isTyping&&(ae.isTyping=!1,Je(ae,"completed"),(ae.webSearchRaw||ae.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),ae.ai_message_id)){const de={reports:ae.reports||[],webSearchRaw:ae.webSearchRaw||null,webSearchSummary:ae._fullWebSearchSummary||ae.webSearchSummary||null,hasWebSearchResults:ae.hasWebSearchResults||!1,summary:ae.summary||ae._fullSummary||""},Ce=ae.reports&&ae.reports.length>0?JSON.stringify(de):ae.content;Ce&&(ae.summary||ae._fullSummary,gd(ae.ai_message_id,Ce).catch(Lt=>console.error("回写AI消息失败:",Lt)))}}),ie.value=!0,Ct.success("已停止生成"),z4e(null,gt.value).catch(ae=>console.warn("停止请求失败:",ae)))},jt=async ae=>{a.value=!0,l.value=ae.question,g.value.push({id:Date.now(),type:"user",content:ae.question,timestamp:new Date().toISOString()});const de=g.value.length;g.value.push({id:Date.now()+1,type:"ai",userQuestion:ae.question,summary:"",totalFiles:0,webSearchTotal:0,progress:0,completedCount:0,reports:[],isTyping:!0,content:"",displayContent:"",timestamp:new Date().toISOString(),currentStatus:"querying_kb",statusMessage:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在从知识库中学习相关信息……',showStats:!0,ai_message_id:null,rawData:null,userFeedback:null}),Vt(()=>{setTimeout(()=>{dr()},100)});try{const Ce=new URLSearchParams({user_question:ae.question,window_size:ae.windowSize,n_results:10,ai_conversation_id:gt.value,is_network_search_enabled:ee.value}),Tt=`${RV()}/report/complete-flow?${Ce.toString()}`;u=oAe(Tt,{onMessage:wn=>lt(wn,de),onError:Ue,onComplete:ze,onInterrupted:ut})}catch(Ce){console.error("启动失败:",Ce),Ct.error(`启动失败: ${Ce.message}`),a.value=!1}},mn=ae=>{Fe(),g.value=[],gt.value=0,i.value=!0,jt({question:`请详细介绍${ae}的相关内容`,windowSize:3,nResults:10})},Nn=ae=>{Fe(),g.value=[],gt.value=0,i.value=!0,jt({question:ae,windowSize:3,nResults:10})},xt=ae=>{na(),jt({question:ae,windowSize:3,nResults:10})},sn=async ae=>{if(a.value)return;_.value&&(Bo(),_.value=null),Fe(),X.value={},ue.value={},te.value={},ie.value=!0,o.value=ae,l.value=ae.title,en.value.forEach(Ce=>{Ce.isActive=Ce.id===ae.id}),i.value=!0;const de={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};g.value=[de];try{await _t(ae.id)?(g.value=g.value.filter(Lt=>Lt.id!==de.id),await Vt(),Si(),$.value.length>0&&setTimeout(()=>Si(),200)):(g.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],await Vt(),Si())}catch(Ce){console.error("加载历史对话失败:",Ce),g.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],await Vt(),Si()}},vt=(ae,de)=>{f.value={item:ae,index:de},p.value="history",c.value=!0},Nt=async()=>{f.value&&(p.value==="history"?await bn():p.value==="message"&&await Mn())},bn=async()=>{const{item:ae,index:de}=f.value;try{const Ce=await Bn.deleteHistoryRecord({ai_conversation_id:ae.id});Ce.statusCode===200?(en.value.splice(de,1),Wt.value=en.value.length,ae.isActive&&await dn(),Ct.success("删除成功")):Ct.error(Ce.msg||"删除失败")}catch(Ce){console.error("删除失败:",Ce),Ct.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},Mn=async()=>{const{messageIndex:ae}=f.value;try{const de=g.value[ae],Ce=de.ai_message_id||de.rawData&&de.rawData.id;de&&Ce?(await Bn.deleteConversation({ai_message_id:Ce})).statusCode===200?(g.value.splice(ae,1),ae>0&&g.value.splice(ae-1,1),Ct.success("删除成功")):Ct.error("删除失败,请稍后重试"):(g.value.splice(ae,1),Ct.success("删除成功"))}catch(de){console.error("删除失败:",de),Ct.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},tr=()=>{c.value=!1,f.value=null,p.value=""},dn=async()=>{a.value||(_.value&&(Bo(),_.value=null),Fe(),gt.value=0,g.value=[],r.value="",l.value="",U.value=null,i.value=!1,$.value=[],W.value=null,te.value={},ue.value={},X.value={},en.value.forEach(ae=>ae.isActive=!1),await ct())},Ke=()=>{k.value?Yt():bt()},bt=()=>{P()||Ct.error("语音识别启动失败,请检查麦克风权限")},Yt=()=>{O(),M.value.trim()&&(r.value=M.value)},wt=Q(null),Gt=Q([]),An=Q(!1),Rn=()=>window.location.origin+"/tts/voice",Kn=async()=>{const ae=Rn();try{const de=new AbortController,Ce=setTimeout(()=>de.abort(),8e3),Lt={"Content-Type":"application/json"},Tt=t0(),wn=Sy();Tt&&wn&&(Lt.Authorization=`${wn} ${Tt}`);const Sn=await fetch(ae,{method:"POST",headers:Lt,body:JSON.stringify({text:"测试"}),signal:de.signal});return clearTimeout(Ce),Sn.ok?(await Sn.blob(),{success:!0,message:"TTS服务连接正常"}):{success:!1,message:`TTS服务响应错误: ${Sn.status}`}}catch(de){let Ce="TTS服务连接失败";return de.name==="AbortError"?Ce="TTS服务连接超时":de.message.includes("Failed to fetch")&&(Ce="无法连接到TTS服务"),{success:!1,message:Ce}}},Fr=async(ae,de=0)=>{const Ce=Rn(),Lt=2;try{const Tt=new AbortController,wn=setTimeout(()=>Tt.abort(),15e3),Sn={"Content-Type":"application/json"},On=t0(),br=Sy();On&&br&&(Sn.Authorization=`${br} ${On}`);const Er=await fetch(Ce,{method:"POST",headers:Sn,body:JSON.stringify({text:ae}),signal:Tt.signal});if(clearTimeout(wn),!Er.ok)throw new Error(`TTS接口调用失败: ${Er.status}`);const Wo=await Er.blob();if(Wo.size===0)throw new Error("TTS接口返回的音频数据为空");return URL.createObjectURL(Wo)}catch(Tt){if(de<Lt&&(Tt.name==="AbortError"||Tt.message.includes("Failed to fetch")||Tt.message.includes("NetworkError")))return await new Promise(On=>setTimeout(On,(de+1)*1e3)),Fr(ae,de+1);let wn="语音合成失败";Tt.name==="AbortError"?wn="语音合成请求超时":Tt.message.includes("Failed to fetch")?wn="无法连接到语音合成服务":Tt.message.includes("TTS接口调用失败")&&(wn=Tt.message);const Sn=new Error(wn);throw Sn.originalError=Tt,Sn}},ho=ae=>{if(!ae)return"";let de=ae.replace(/<[^>]*>/g,"");return de=de.replace(/\s+/g," ").trim(),de=de.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),de},Wr=ae=>{if(ae.length<=60)return[ae];const de=[];let Ce="",Lt=!0;const Tt=ae.split(/[。!?]/);for(const wn of Tt){if(wn.trim().length===0)continue;const Sn=wn+(wn.match(/[。!?]$/)?"":"。"),On=Lt?60:200;if(Ce.length+Sn.length<=On)Ce+=Sn;else if(Ce.length>0)de.push(Ce.trim()),Ce=Sn,Lt=!1;else{const br=Lt?60:200;de.push(Sn.substring(0,br)),Ce=Sn.substring(br),Lt=!1}}return Ce.trim().length>0&&de.push(Ce.trim()),de},bo=ae=>new Promise((de,Ce)=>{const Lt=new Audio(ae);wt.value=Lt,Lt.onended=()=>{wt.value=null,de()},Lt.onerror=Tt=>{wt.value=null,Ce(Tt)},Lt.play().catch(Tt=>{wt.value=null,Ce(Tt)})}),Bo=()=>{try{wt.value&&(wt.value.pause(),wt.value.currentTime=0,wt.value=null),Gt.value=[],An.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel()}catch(ae){console.warn("停止音频播放失败:",ae)}},yr=async(ae,de)=>{if(_.value===de)try{const Ce=await Fr(ae[0]);if(_.value!==de){URL.revokeObjectURL(Ce);return}const Tt=ae.slice(1).map(async(Sn,On)=>{try{const br=await Fr(Sn);return{index:On+1,audioUrl:br}}catch{return{index:On+1,audioUrl:null}}});if(await bo(Ce),URL.revokeObjectURL(Ce),_.value!==de){(await Promise.allSettled(Tt)).forEach(On=>{On.status==="fulfilled"&&On.value.audioUrl&&URL.revokeObjectURL(On.value.audioUrl)});return}const wn=await Promise.allSettled(Tt);if(_.value!==de){wn.forEach(Sn=>{Sn.status==="fulfilled"&&Sn.value.audioUrl&&URL.revokeObjectURL(Sn.value.audioUrl)});return}An.value=!0;for(const Sn of wn){if(_.value!==de)break;if(Sn.status==="fulfilled"&&Sn.value.audioUrl)try{await bo(Sn.value.audioUrl),URL.revokeObjectURL(Sn.value.audioUrl)}catch(On){console.error("音频播放失败:",On)}}An.value=!1}catch(Ce){console.error("音频队列播放失败:",Ce),An.value=!1}},Vr=async ae=>{if(_.value===ae.id)Bo(),_.value=null;else{_.value&&(Bo(),_.value=null);const de=ae.displayContent||ae.content;if(de&&de.trim())try{const Ce=ho(de);if(Ce.length===0){Ct.warning("文本内容为空,无法进行语音合成");return}if(_.value=ae.id,Ce.length<=60){const Lt=await Fr(Ce);await bo(Lt),URL.revokeObjectURL(Lt)}else{const Lt=Wr(Ce);await yr(Lt,ae.id)}}catch(Ce){console.error("语音合成失败:",Ce),Ct.error("语音合成失败,请稍后重试")}finally{_.value=null,An.value=!1}}},wo=ae=>_.value===ae,Nr=ae=>{if(console.log("点击删除按钮,消息索引:",ae),g.value.length===2){Ct.warning("第一句话无法删除");return}p.value="message",f.value={messageIndex:ae},c.value=!0},Br=()=>{if(r.value.length>2e3&&(r.value=r.value.substring(0,2e3),Ct.warning("消息长度不能超过2000字")),Z.value&&clearTimeout(Z.value),!r.value.trim()){H.value=[];return}Z.value=setTimeout(()=>{xi(r.value)},100)},zr=()=>{if(U.value){Ct.warning("只能上传一个文件,请先删除当前文件");return}q.value?.click()},Ao=async ae=>{try{if(ae.size===0)throw new Error("Word文件为空");if(!$E)throw new Error("Word文档解析库未正确加载");const de=ae.name.toLowerCase().split(".").pop(),Ce=await ae.arrayBuffer();if(de==="docx"){const Tt=new Uint8Array(Ce.slice(0,2));if(Tt[0]!==80||Tt[1]!==75)throw new Error("文件不是有效的.docx格式,可能已损坏")}else if(de==="doc")throw new Error("检测到.doc格式文件。请将文件另存为.docx格式后重新上传。");return(await NV.extractRawText({arrayBuffer:Ce})).value}catch(de){throw console.error("Word文件读取失败:",de),de.message.includes("Can't find end of central directory")?new Error("文件格式错误:这不是一个有效的Word文档,或者文件已损坏。"):de.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):de}},Cr=async ae=>{const de=ae.target.files[0];if(de)try{const Ce=ra(de);if(!$E)throw new Error("Word文档解析库未正确加载,请刷新页面重试");j.value=!0;const Lt=await Ao(de);U.value={file:de,name:de.name,size:de.size,type:Ce,icon:_r(Ce),content:Lt},Ct.success(`文件读取成功,共提取 ${Lt.length} 个字符`)}catch(Ce){console.error("文件读取失败:",Ce),Ct.error(Ce.message||"文件读取失败,请重试")}finally{j.value=!1,ae.target.value=""}},Ho=()=>{U.value&&(U.value=null)},Xo=async()=>{try{console.log("开始获取功能卡片...");const ae=await Bn.getFunctionCard({function_type:0});console.log("功能卡片响应:",ae),ae.statusCode===200?(v.value=ae.data,console.log("功能卡片数据已设置:",v.value)):console.error("获取功能卡片失败:",ae.statusCode)}catch(ae){console.error("获取功能卡片失败:",ae)}},qi=async()=>{try{console.log("开始获取热点问题...");const ae=await Bn.getHotQuestion({question_type:0});console.log("热点问题响应:",ae),ae.statusCode===200?(h.value=ae.data,console.log("热点问题数据已设置:",h.value)):console.error("获取热点问题失败:",ae.statusCode)}catch(ae){console.error("获取热点问题失败:",ae)}},na=()=>{H.value=[],Z.value&&(clearTimeout(Z.value),Z.value=null)},ti=ae=>{ae.target.closest(".user-recommend-questions")||na(),ve.value&&!ae.target.closest(".web-search-capsule-outer")&&!ae.target.closest(".web-search-sidebar")&&(ve.value=!1)},Lo=()=>{ee.value=!ee.value,Ct[ee.value?"success":"info"](ee.value?"联网搜索已启用":"联网搜索已关闭")},Yo=ae=>{X.value[ae]=!X.value[ae]},Ai=ae=>{if(!ae||typeof ae!="string"||!ae.trim()){Ct.warning("链接地址无效");return}try{let de=ae.trim();!de.startsWith("http://")&&!de.startsWith("https://")&&(de="https://"+de),window.open(de,"_blank","noopener,noreferrer")}catch(de){console.error("打开链接失败:",de),Ct.error("无法打开链接")}},Ci=ae=>{$.value=[],W.value=null,r.value=ae,Tn()},xi=async ae=>{if(!ae||!ae.trim()||a.value||be.value){H.value=[];return}try{G.value=!0;const de=await Bn.getUserRecommendQuestion({user_message:ae.trim()});if(a.value||be.value){H.value=[];return}de.statusCode===200&&de.data&&de.data.questions?H.value=de.data.questions:H.value=[]}catch(de){console.error("获取推荐问题失败:",de),H.value=[]}finally{G.value=!1}},mi=async(ae,de,Ce)=>{if(!ae||!de||!Ce){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",ae),console.log("AI回复:",de.substring(0,100)+"..."),console.log("消息ID:",Ce),L.value=!0;const Lt=`基于以下对话内容,直接生成3条相关的推荐问题。
- 【对话内容】
- 用户问题:${ae}
- AI回复:${de}
- 【生成要求】
- - 直接输出3个问题,每个问题一行
- - 问题要与原问题相关但有所延伸
- - 问题要具体、实用,符合中文表达习惯
- - 不要包含任何编号、标题、说明文字
- - 不要重复上述指令内容`,Tt=await Bn.guessYouWant({message:Lt,ai_message_id:Ce});if(console.log("AI相关推荐问题响应:",Tt),Tt.statusCode===200&&Tt.data&&Tt.data.reply){const Sn=Tt.data.reply.trim().split(`
- `).map(On=>On.trim()).filter(On=>On.length>0).filter(On=>!["请生成","推荐问题","相关问题","生成要求","对话内容","【","】","指令"].some(Er=>On.includes(Er))).filter(On=>!On.startsWith("-")&&!On.startsWith("•")&&!On.startsWith("*")).map(On=>On.replace(/^[0-9]+[\.\、]\s*/,"")).filter(On=>On.length>0).filter(On=>!On.includes(":")&&!On.includes(":")).filter((On,br,Er)=>Er.indexOf(On)===br).slice(0,3);Sn.length>0?($.value=Sn,W.value=Ce,console.log("✅ AI相关推荐问题数据已设置:"),console.log(" - 推荐问题数量:",Sn.length),console.log(" - 推荐问题内容:",Sn),console.log(" - 关联消息ID:",Ce),await Vt(),console.log("✅ DOM已更新,推荐问题已显示")):(console.log("解析推荐问题失败,使用默认问题"),$.value=[],W.value=null)}else console.error("获取AI相关推荐问题失败:",Tt.statusCode),$.value=[],W.value=null}catch(Lt){console.error("获取AI相关推荐问题失败:",Lt),$.value=[],W.value=null}finally{L.value=!1}},ra=ae=>{if(ae.size>we.maxSize)throw new Error("文件大小不能超过20MB");const de="."+ae.name.split(".").pop().toLowerCase();if(!we.allowedTypes.includes(de))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return de},_r=ae=>{switch(ae){case".doc":case".docx":return hq;default:return"📎"}},Si=()=>{Vt(()=>{const ae=document.querySelector(".chat-content");ae&&(ae.scrollTop=ae.scrollHeight)})},ha=ae=>{if(ae===0)return"0 B";const de=1024,Ce=["B","KB","MB","GB"],Lt=Math.floor(Math.log(ae)/Math.log(de));return parseFloat((ae/Math.pow(de,Lt)).toFixed(2))+" "+Ce[Lt]},Qe=ae=>{console.log("编辑用户消息:",ae.content),r.value=ae.content,ae.file&&(U.value=ae.file,console.log("恢复文件信息:",ae.file.name));const de=document.querySelector(".message-input");de&&(de.focus(),de.setSelectionRange(de.value.length,de.value.length))},qe=async ae=>{if(console.log("重新生成回复,消息索引:",ae),ae>0){const de=g.value[ae-1];de&&de.type==="user"&&(console.log("重新发送用户消息:",de.content),r.value=de.content,de.file&&(U.value=de.file),await Tn())}},ne=async ae=>{try{await navigator.clipboard.writeText(ae),Ct.success("复制成功")}catch{const Ce=document.createElement("textarea");Ce.value=ae,document.body.appendChild(Ce),Ce.select(),document.execCommand("copy"),document.body.removeChild(Ce),Ct.success("复制成功")}},Ie=ae=>{ne(ae.content)},Ge=ae=>{let de=ae.summary||ae.displayContent||ae.content;if(de&&de.includes("<")){const Ce=document.createElement("div");Ce.innerHTML=de,de=Ce.textContent||Ce.innerText||de}!de&&ae.reports&&ae.reports.length>0&&(de=ae.reports.filter(Ce=>Ce.type!=="category_title").map(Ce=>Ce.report||"").join(`
- `)),ae.webSearchSummary&&(de=de?`${de}
- 【网络搜索总结】
- ${ae.webSearchSummary}`:ae.webSearchSummary),de&&de.trim()?ne(de):Ct.warning("暂无可复制的内容")},Ft=async ae=>{console.log("点赞消息:",ae.id),ae.userFeedback==="like"?ae.userFeedback=null:ae.userFeedback="like",g.value=[...g.value],await on(ae)},It=async ae=>{console.log("点踩消息:",ae.id),ae.userFeedback==="dislike"?ae.userFeedback=null:ae.userFeedback="dislike",g.value=[...g.value],await on(ae)},on=async ae=>{try{console.log("🔍 syncFeedbackToBackend 收到的message对象:",{id:ae.id,ai_message_id:ae.ai_message_id,rawData:ae.rawData,rawData_id:ae.rawData?.id});const de=ae.ai_message_id||ae.rawData&&ae.rawData.id;if(!de){console.warn("❌ 消息缺少ID,无法同步反馈"),console.warn(" - message.ai_message_id:",ae.ai_message_id),console.warn(" - message.rawData:",ae.rawData);return}const Ce=je(ae.userFeedback);console.log("✅ 同步反馈到后端:",{messageId:de,feedback:Ce});const Lt=await Bn.likeAndDislike({id:de,user_feedback:Ce});Lt.statusCode===200?(console.log("反馈同步成功"),Ce===2?Ct.success("点赞成功"):Ce===3?Ct.success("点踩成功"):Ct.success("已取消反馈")):(console.error("反馈同步失败:",Lt.msg),Ct.error("反馈提交失败,请稍后重试"))}catch(de){console.error("同步反馈失败:",de),Ct.error("反馈同步失败,请稍后重试")}},vn=async ae=>{!ae||!ae.trim()||(console.log("自动发送消息:",ae),i.value=!0,g.value.length===0&&(en.value.forEach(de=>{de.isActive=!1}),console.log("自动发送新对话,清除所有历史记录的选中状态"),X.value={},ue.value={},te.value={}),$.value=[],W.value=null,await jt({question:ae,windowSize:3,nResults:10}))},_n=()=>{try{const ae=window.devicePixelRatio||1;if(document.documentElement.style.setProperty("--system-zoom",ae),ae!==1){const Ce=1/ae,Lt=document.createElement("style");Lt.id="bracket-zoom-compensation";const Tt=document.getElementById("bracket-zoom-compensation");Tt&&Tt.remove(),document.head.appendChild(Lt)}const de=()=>{setTimeout(()=>{_n()},100)};return window.addEventListener("resize",de),()=>{window.removeEventListener("resize",de);const Ce=document.getElementById("bracket-zoom-compensation");Ce&&Ce.remove()}}catch(ae){console.error("❌ 中括号缩放补偿初始化失败:",ae)}},or=async ae=>{const de=ae.target,Ce=de.closest(".link-capsule");if(Ce){ae.preventDefault(),ae.stopPropagation();const Tt=Ce.getAttribute("data-link")||Ce.getAttribute("href");Tt&&Tt!=="#"&&Vn(Tt);return}if(!de.classList.contains("standard-reference"))return;ae.preventDefault(),ae.stopPropagation();const Lt=de.getAttribute("data-standard")||de.getAttribute("data-reference");if(Lt)try{const Tt=await Bn.getFileLink({fileName:Lt});Tt.statusCode===200&&Tt.data&&Tt.data?window.open(Tt.data,"_blank"):Ct.warning("暂无文件")}catch(Tt){console.error("获取文件失败:",Tt),Ct.error("获取文件失败,请稍后重试")}},Vn=ae=>{try{new URL(ae)}catch{Ct.error("无效的链接地址");return}const de=document.createElement("div");de.style.cssText=`
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- z-index: 10000;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px;
- `;const Ce=document.createElement("div");Ce.style.cssText=`
- width: 90%;
- height: 90%;
- background: white;
- border-radius: 12px;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
- `;const Lt=document.createElement("div");Lt.style.cssText=`
- padding: 16px 20px;
- background: #f5f5f5;
- border-bottom: 1px solid #e0e0e0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- `;const Tt=document.createElement("div");Tt.style.cssText=`
- font-size: 14px;
- color: #666;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- flex: 1;
- margin-right: 16px;
- `,Tt.textContent=ae;const wn=document.createElement("button");wn.textContent="✕",wn.style.cssText=`
- background: none;
- border: none;
- font-size: 24px;
- color: #666;
- cursor: pointer;
- padding: 0;
- width: 32px;
- height: 32px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 4px;
- transition: all 0.2s;
- `,wn.onmouseover=()=>{wn.style.background="#e0e0e0"},wn.onmouseout=()=>{wn.style.background="none"},wn.onclick=()=>{document.body.removeChild(de)};const Sn=document.createElement("iframe");Sn.src=ae,Sn.style.cssText=`
- width: 100%;
- height: 100%;
- border: none;
- `,Lt.appendChild(Tt),Lt.appendChild(wn),Ce.appendChild(Lt),Ce.appendChild(Sn),de.appendChild(Ce),de.onclick=On=>{On.target===de&&document.body.removeChild(de)},document.body.appendChild(de)},xr=ae=>{typeof ae=="string"?(Te.value=ae,Y.value=""):(Te.value=ae.filePath,Y.value=ae.fileName||""),he.value=!0},lr=ae=>{const de=g.value[ae];de&&de.webSearchRaw&&(Me.value=de.webSearchRaw,ve.value=!ve.value)};St(D,ae=>{ae&&(console.error("语音识别错误:",ae),Ct.error(ae))}),St(ve,ae=>{console.log("🔍 网络搜索侧边栏状态变化:",ae),requestAnimationFrame(()=>{setTimeout(()=>{ye()},350)})});const nr=()=>{document.querySelectorAll(".standard-reference").forEach(de=>{de.removeEventListener("click",or),de.addEventListener("click",or)})};let Or=null,cr=null;const dr=()=>{console.log("📜 handleProgressCardScroll 被触发");const ae=document.querySelector(".chat-header"),de=ae?ae.getBoundingClientRect().bottom:0;console.log("📐 headerBottom:",de),console.log("📊 messageContentRefs 数量:",Object.keys(y.value).length),Object.keys(y.value).forEach(Ce=>{const Lt=g.value[Ce];if(!Lt||Lt.type!=="ai"||!Lt.showStats){console.log(`⏭️ 跳过消息 ${Ce}:`,{exists:!!Lt,type:Lt?.type,showStats:Lt?.showStats});return}console.log(`✅ 处理消息 ${Ce}`);const Tt=y.value[Ce];if(!Tt){console.log(`❌ 消息 ${Ce} 没有找到 contentEl`);return}const wn=Tt.querySelector(".files-stats-white");if(!wn){console.log(`❌ 消息 ${Ce} 没有找到 .files-stats-white`);return}console.log(`✅ 消息 ${Ce} 找到进度卡片`);const Sn=wn.getBoundingClientRect(),On=Tt.getBoundingClientRect();if(!m.value[Ce]){m.value[Ce]={initialLeft:Sn.left,initialWidth:Sn.width,isSticky:!1,offsetTop:Sn.top-On.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},console.log(`[进度卡片] 开始初始化 - 消息${Ce}, left=${Sn.left}, width=${Sn.width}, offsetTop=${m.value[Ce].offsetTop}`),Vt(()=>{requestAnimationFrame(()=>{if(m.value[Ce]){const Rr=Tt.querySelector(".files-stats-white");if(Rr){const ni=Rr.getBoundingClientRect();m.value[Ce].initialLeft=ni.left,m.value[Ce].initialWidth=ni.width,console.log(`[进度卡片] 位置更新 - 消息${Ce}, left=${ni.left}, width=${ni.width}`)}const Io=Date.now()-m.value[Ce].initStartTime,ro=Math.max(0,100-Io);setTimeout(()=>{m.value[Ce]&&(m.value[Ce].initialized=!0,m.value[Ce].isInitializing=!1,console.log(`[进度卡片] 初始化完成 - 消息${Ce}`))},ro)}})});return}if(!m.value[Ce].initialized||m.value[Ce].isInitializing)return;const br=Date.now()-m.value[Ce].initStartTime;if(br<100){console.log(`⏱️ 消息 ${Ce} 初始化中,已过${br}ms,跳过吸附判断`);return}const Er=On.top+m.value[Ce].offsetTop,Wo=Er<=de&&On.bottom>de+60;console.log(`📍 消息 ${Ce} 吸附判断:`,{naturalTop:Er,headerBottom:de,"naturalTop <= headerBottom":Er<=de,"contentRect.bottom":On.bottom,"headerBottom + 60":de+60,shouldStick:Wo,currentlySticky:m.value[Ce].isSticky}),m.value[Ce].isSticky!==Wo&&(m.value[Ce].initialLeft=Sn.left,m.value[Ce].initialWidth=Sn.width),m.value[Ce].isSticky=Wo,m.value[Ce].stickyTop=de})},ye=()=>{const ae=window.getComputedStyle(document.documentElement).fontSize;cr&&ae!==cr&&console.log("🔍 检测到flexible fontSize变化:",cr,"->",ae),cr=ae,Or&&clearTimeout(Or),Or=setTimeout(()=>{console.log("🔍 检测到窗口大小变化,重新计算所有吸附卡片位置"),document.body.offsetHeight;const Ce={};Object.keys(m.value).forEach(Lt=>{const Tt=m.value[Lt];Tt&&Tt.isSticky&&(Ce[Lt]=!0,Tt.isSticky=!1)}),Vt(()=>{document.body.offsetHeight,Object.keys(m.value).forEach(Lt=>{const Tt=m.value[Lt];if(!Tt)return;const wn=y.value[Lt];if(!wn)return;const Sn=wn.querySelector(".files-stats-white");if(!Sn)return;const On=Sn.getBoundingClientRect(),br=wn.getBoundingClientRect();Tt.initialLeft=On.left,Tt.initialWidth=On.width,Tt.offsetTop=On.top-br.top,console.log(` - 更新消息${Lt}的位置: left=${On.left}, width=${On.width}`)}),Object.keys(Ce).forEach(Lt=>{m.value[Lt]&&(m.value[Lt].isSticky=!0)}),Vt(()=>{dr()})})},100)};return jn(async()=>{try{console.log("🚀 AI问答页面初始化开始,优先加载历史记录..."),Ut.value=!0,window.addEventListener("error",Lt=>{console.error("全局错误:",Lt.error)}),window.addEventListener("unhandledrejection",Lt=>{console.error("未处理的Promise拒绝:",Lt.reason)}),document.removeEventListener("click",or),document.addEventListener("click",or);const ae=document.querySelector(".chat-content");ae?(console.log("✅ 找到 .chat-content 元素,添加滚动监听"),console.log("📦 .chat-content 样式:",{overflow:window.getComputedStyle(ae).overflow,overflowY:window.getComputedStyle(ae).overflowY,height:ae.offsetHeight,scrollHeight:ae.scrollHeight}),ae.addEventListener("scroll",()=>{console.log("🔄 滚动事件触发!scrollTop:",ae.scrollTop)},{once:!0}),ae.addEventListener("scroll",dr)):console.error("❌ 未找到 .chat-content 元素"),cr=window.getComputedStyle(document.documentElement).fontSize,console.log("📐 初始fontSize:",cr),window.addEventListener("resize",ye),window.addEventListener("beforeunload",B),window.addEventListener("unload",B),document.addEventListener("visibilitychange",N),_n(),await ct(),console.log("✅ AI问答历史记录加载完成");try{const Lt=await Kn();Lt.success?console.log("✅ TTS服务连接正常"):console.warn("⚠️ TTS服务连接异常:",Lt.message)}catch(Lt){console.warn("⚠️ TTS服务连接测试失败:",Lt)}const de=Promise.all([Xo(),qi()]);try{await de,console.log("✅ AI问答其他数据加载完成")}catch(Lt){console.warn("⚠️ AI问答其他数据加载失败,但不影响主要功能:",Lt)}console.log("🎉 AI问答页面初始化完成");const Ce=t.query.autoMessage;Ce&&(console.log("检测到自动发送消息:",Ce),n.replace({path:t.path,query:{...t.query,autoMessage:void 0}}),vn(Ce))}catch(ae){console.error("组件初始化失败:",ae)}}),Qr(()=>{_.value&&(Bo(),_.value=null),Fe(),document.removeEventListener("click",or);const ae=document.querySelector(".chat-content");ae&&ae.removeEventListener("scroll",dr),window.removeEventListener("resize",ye),Or&&(clearTimeout(Or),Or=null),window.removeEventListener("beforeunload",B),window.removeEventListener("unload",B),document.removeEventListener("visibilitychange",N)}),xb(async()=>{console.log("页面重新激活,检查并重新渲染markdown内容"),await Vt();for(const ae of g.value)if(ae.type==="ai"&&ae.content&&!ae.isTyping)try{console.log("重新渲染AI消息markdown:",ae.id);const de=ce(ae.content),Ce=Pe(de,ae.file),Lt=pt(Ce);ae.displayContent=Lt,setTimeout(()=>{nr()},100)}catch(de){console.error("重新渲染markdown失败:",de)}g.value=[...g.value],console.log("页面重新激活完成,markdown内容已重新渲染")}),(ae,de)=>(F(),K("div",{class:"chat-container",onClick:ti},[Ve(zC),x("div",i0t,[x("div",a0t,[de[12]||(de[12]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:C(QC),alt:"新建任务",class:re(["new-chat-btn",{disabled:a.value}]),onClick:dn,style:Xt({cursor:a.value?"not-allowed":"pointer"})},null,14,s0t)]),x("div",l0t,[Ut.value?(F(),K("div",u0t,de[13]||(de[13]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Wt.value>0?(F(!0),K(Pt,{key:1},an(en.value,(Ce,Lt)=>(F(),K("div",{key:Lt,class:re(["history-item",{active:Ce.isActive}]),onClick:Tt=>Ce.isActive||a.value?null:sn(Ce),style:Xt({cursor:Ce.isActive?"default":a.value?"not-allowed":"pointer"})},[x("div",d0t,[x("div",f0t,We(Ce.title),1),x("div",p0t,We(Ce.time),1)]),x("div",{class:re(["delete-btn",{"always-visible":Ce.isActive}]),onClick:Qt(Tt=>vt(Ce,Lt),["stop"])},de[14]||(de[14]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,h0t)],14,c0t))),128)):(F(),K("div",g0t,[x("img",{src:C(YC),alt:"暂无数据",class:"empty-icon"},null,8,v0t),de[15]||(de[15]=x("div",{class:"empty-text"},"暂无数据",-1))]))])]),x("div",{class:re(["main-chat",{"sidebar-open":ve.value}])},[x("div",m0t,[l.value?(F(),K("div",y0t,[x("h2",null,We(l.value),1)])):(F(),K("h2",b0t,"AI问答"))]),x("div",w0t,[i.value?(F(),K("div",H0t,[(F(!0),K(Pt,null,an(g.value,(Ce,Lt)=>(F(),K("div",{key:Lt,class:re(["message-item",Ce.type])},[Ce.type==="user"?(F(),K("div",W0t,[x("div",V0t,[Ce.file?(F(),K("div",q0t,[x("div",G0t,[x("div",K0t,[Ce.file.type===".doc"||Ce.file.type===".docx"?(F(),K("img",{key:0,src:Ce.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,Q0t)):(F(),K("span",Y0t,We(Ce.file.icon),1))]),x("div",Z0t,[x("div",X0t,We(Ce.file.name),1),x("div",J0t,We(ha(Ce.file.size)),1)])])])):xe("",!0),Ce.content?(F(),K("div",egt,We(Ce.content),1)):xe("",!0)]),x("div",tgt,[x("button",{class:"action-btn copy-btn",onClick:Tt=>Ie(Ce)},[x("img",{src:C(Bv),alt:"复制",class:"action-icon"},null,8,rgt),de[25]||(de[25]=xn(" 复制 ",-1))],8,ngt),x("button",{class:"action-btn edit-btn",onClick:Tt=>Qe(Ce)},[x("img",{src:C(ZC),alt:"编辑",class:"action-icon"},null,8,igt),de[26]||(de[26]=xn(" 编辑 ",-1))],8,ogt)])])):Ce.type==="ai"?(F(),K("div",agt,[Ce.webSearchRaw&&Ce.webSearchRaw.total>0?(F(),K("div",sgt,[Ve(tAe,{total:Ce.webSearchRaw.total,results:Ce.webSearchRaw.results,isExpanded:ve.value,onToggle:Tt=>lr(Lt)},null,8,["total","results","isExpanded","onToggle"])])):xe("",!0),x("div",lgt,[x("div",ugt,[x("img",{src:C(QE),alt:"AI",class:"ai-icon"},null,8,cgt)]),x("div",{class:"message-content","data-message-index":Lt,ref_for:!0,ref:Tt=>y.value[Lt]=Tt},[x("div",fgt,[Ce.showStats?(F(),K("div",{key:0,class:re(["files-stats-white",{sticky:m.value[Lt]?.isSticky&&m.value[Lt]?.initialized&&!m.value[Lt]?.isInitializing}]),style:Xt(m.value[Lt]?.isSticky&&m.value[Lt]?.initialized&&!m.value[Lt]?.isInitializing&&m.value[Lt]?.initialLeft>0&&m.value[Lt]?.initialWidth>0?{position:"fixed",top:"56px",left:m.value[Lt].initialLeft+"px",width:m.value[Lt].initialWidth+"px",zIndex:999}:{}),"data-message-index":Lt},[x("div",hgt,[Ve(rAe,{status:Ye(Ce.currentStatus,Ce.progress),size:36,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:Ce.statusMessage},null,8,ggt)]),Ce.progress<100?(F(),K("div",vgt,[x("div",mgt,[x("div",{class:"progress-fill",style:Xt({width:Ce.progress+"%"})},null,4),x("div",{class:"progress-dot",style:Xt({left:Ce.progress+"%"})},null,4)]),x("span",ygt,We(Ce.progress)+"%",1)])):xe("",!0),Ce.progress===100&&Ce.reports&&Ce.reports.length>0?(F(),K("div",bgt,[Ve(eAe,{reports:Ce.reports.filter(Tt=>Tt.status==="completed"&&Tt.type!=="category_title"),disabled:!1,title:De.value},null,8,["reports","title"])])):xe("",!0)],14,pgt)):xe("",!0),Ce.summary?(F(),K("div",wgt,[Ve(ay,{content:Ce.summary,streaming:!1},null,8,["content"])])):xe("",!0),Ce.isTyping&&(!Ce.reports||Ce.reports.length===0)&&Ce.progress<100?(F(),K("div",Agt,de[27]||(de[27]=[ki('<span class="loading-text" data-v-bb0c3c83>AI正在思考中...</span><div class="thinking-animation" data-v-bb0c3c83><span class="dot" data-v-bb0c3c83></span><span class="dot" data-v-bb0c3c83></span><span class="dot" data-v-bb0c3c83></span></div>',2)]))):xe("",!0),Ce.reports&&Ce.reports.length>0?(F(),K("div",Cgt,[(F(!0),K(Pt,null,an(Ce.reports,(Tt,wn)=>(F(),K(Pt,{key:`${Tt.source_file}-${Tt.file_index}-${wn}`},[Tt.type==="category_title"?(F(),mt(X3e,{key:0,category:Tt.category,number:Tt.number,count:Tt.count,onToggle:Sn=>rt(Lt,Sn)},null,8,["category","number","count","onToggle"])):!Tt.type||Tt.type!=="category_title"?ln((F(),mt(J3e,{key:1,report:Tt,onPreviewFile:xr},null,8,["report"])),[[Ar,ht(Lt,Tt.metadata?._displayCategory||Tt.metadata?.primary_category)]]):xe("",!0)],64))),128)),Ce.isTyping&&Ce.progress<100&&rn(Ce.reports)?(F(),K("div",xgt,de[28]||(de[28]=[ki('<span class="loading-text" data-v-bb0c3c83>AI正在思考中...</span><div class="thinking-animation" data-v-bb0c3c83><span class="dot" data-v-bb0c3c83></span><span class="dot" data-v-bb0c3c83></span><span class="dot" data-v-bb0c3c83></span></div>',2)]))):xe("",!0)])):xe("",!0),Ce.hasWebSearchResults&&Ce.webSearchSummary?(F(),K("div",Sgt,[Ve(nAe,{summary:Ce.webSearchSummary},null,8,["summary"])])):xe("",!0),!Ce.reports||Ce.reports.length===0?(F(),K("div",Egt,[Ce.displayContent&&Ce.displayContent.length>0?(F(),K("div",kgt,[x("div",{innerHTML:Ce.displayContent},null,8,Tgt)])):xe("",!0)])):xe("",!0)]),ln(x("div",_gt,null,512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]]),ln(x("div",Dgt,[x("div",Igt,[x("button",{class:"action-btn copy-btn",onClick:Tt=>Ge(Ce)},[x("img",{src:C(Bv),alt:"复制",class:"action-icon"},null,8,Mgt),de[29]||(de[29]=xn(" 复制 ",-1))],8,Ogt),x("button",{class:"action-btn regenerate-btn",onClick:Tt=>qe(Lt),disabled:be.value},[x("img",{src:C(fq),alt:"重新生成",class:"action-icon"},null,8,Ngt),de[30]||(de[30]=xn(" 重新生成 ",-1))],8,Pgt),x("button",{class:"action-btn delete-btn",onClick:Tt=>Nr(Lt)},de[31]||(de[31]=[x("img",{src:wc,alt:"删除",class:"action-icon"},null,-1),xn(" 删除 ",-1)]),8,Rgt),x("button",{class:re(["action-btn voice-btn",{speaking:wo(Ce.id)}]),onClick:Tt=>Vr(Ce)},[x("img",{src:C(YD),alt:"语音朗读",class:"action-icon"},null,8,Lgt),xn(" "+We(wo(Ce.id)?"停止朗读":"语音朗读"),1)],10,Bgt)]),x("div",Fgt,[x("button",{class:re(["action-btn thumbs-up-btn",{active:Ce.userFeedback==="like"}]),onClick:Tt=>Ft(Ce),title:Ce.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Wy),alt:"点赞",class:"action-icon"},null,8,$gt)],10,Ugt),x("button",{class:re(["action-btn thumbs-down-btn",{active:Ce.userFeedback==="dislike"}]),onClick:Tt=>It(Ce),title:Ce.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Vy),alt:"踩",class:"action-icon"},null,8,jgt)],10,zgt)])],512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]])],8,dgt)]),ln(x("div",Hgt,[x("div",{class:"search-sources-header",onClick:Tt=>Yo(Ce.id)},[x("span",null,"基于"+We(Ce.searchSources?.length||0)+"个搜索来源",1),x("div",{class:re(["expand-icon",{expanded:X.value[Ce.id]}])},de[32]||(de[32]=[x("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[x("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)],8,Wgt),ln(x("div",Vgt,[x("div",qgt,[x("div",Ggt,[(F(!0),K(Pt,null,an(Ce.searchSources||[],(Tt,wn)=>(F(),K("div",{class:"source-card",key:wn,onClick:Sn=>C(Ai)(Tt.url)},[x("div",Qgt,We(Tt.title),1),x("div",Ygt,We(Tt.content),1),x("div",Zgt,We(wn+1),1)],8,Kgt))),128))])])],512),[[Ar,X.value[Ce.id]]])],512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&Ce.searchSources&&Ce.searchSources.length>0&&!te.value[Ce.id]]]),ln(x("div",Xgt,de[33]||(de[33]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]),512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&L.value&&(W.value===Ce.id||W.value===Ce.ai_message_id)&&$.value.length===0]]),ln(x("div",Jgt,[(F(!0),K(Pt,null,an($.value,(Tt,wn)=>(F(),K("div",{key:wn,class:"related-question-item",onClick:Sn=>Ci(Tt)},[x("span",null,We(Tt),1),de[34]||(de[34]=x("svg",{class:"arrow-icon",viewBox:"0 0 16 16",fill:"none"},[x("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,evt))),128))],512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&(W.value===Ce.id||W.value===Ce.ai_message_id)&&$.value.length>0]])])):xe("",!0)],2))),128))])):(F(),K("div",A0t,[x("div",C0t,[x("div",x0t,[x("img",{src:C(QE),alt:"AI头像",class:"ai-avatar-img"},null,8,S0t)]),de[16]||(de[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",E0t,[(F(!0),K(Pt,null,an(v.value,(Ce,Lt)=>(F(),K("div",{key:Ce.id||Lt,class:"function-card",onClick:Tt=>mn(Ce.function_title)},[x("div",T0t,[x("div",_0t,[x("img",{src:me(Ce.function_title),alt:Ce.function_title,class:"card-icon-img"},null,8,D0t)]),x("h4",null,We(Ce.function_title),1)]),x("div",I0t,[x("p",null,We(Ce.function_content),1)])],8,k0t))),128)),v.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:de[0]||(de[0]=Ce=>mn("桥梁结构设计问题"))},[x("div",O0t,[x("div",M0t,[x("img",{src:C(YE),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,P0t)]),de[17]||(de[17]=x("h4",null,"桥梁结构设计问题",-1))]),de[18]||(de[18]=x("div",{class:"card-description"},[x("p",null,"各类桥梁结构设计,计算与分析")],-1))])):xe("",!0),v.value.length===0?(F(),K("div",{key:1,class:"function-card",onClick:de[1]||(de[1]=Ce=>mn("桥梁施工技术咨询"))},[x("div",N0t,[x("div",R0t,[x("img",{src:C(ZE),alt:"施工技术咨询",class:"card-icon-img"},null,8,B0t)]),de[19]||(de[19]=x("h4",null,"施工技术咨询",-1))]),de[20]||(de[20]=x("div",{class:"card-description"},[x("p",null,"桥梁施工方法,工艺与技术要点")],-1))])):xe("",!0),v.value.length===0?(F(),K("div",{key:2,class:"function-card",onClick:de[2]||(de[2]=Ce=>mn("材料与力学问题"))},[x("div",L0t,[x("div",F0t,[x("img",{src:C(XE),alt:"材料与力学问题",class:"card-icon-img"},null,8,U0t)]),de[21]||(de[21]=x("h4",null,"材料与力学问题",-1))]),de[22]||(de[22]=x("div",{class:"card-description"},[x("p",null,"建筑材料性能与结构力学分析")],-1))])):xe("",!0),v.value.length===0?(F(),K("div",{key:3,class:"function-card",onClick:de[3]||(de[3]=Ce=>mn("规范标准查询"))},[x("div",$0t,[x("div",z0t,[x("img",{src:C(JE),alt:"规范标准查询",class:"card-icon-img"},null,8,j0t)]),de[23]||(de[23]=x("h4",null,"规范标准查询",-1))]),de[24]||(de[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])]))]),!i.value&&!U.value?(F(),K("div",tvt,[(F(!0),K(Pt,null,an(h.value,(Ce,Lt)=>(F(),K("div",{key:Ce.id||Lt,class:"question-tag",onClick:Tt=>Nn(Ce.question)},[x("img",{src:Be(Ce.question),alt:"问题",class:"question-icon"},null,8,rvt),xn(" "+We(Ce.question),1)],8,nvt))),128)),h.value.length===0?(F(),K("div",{key:0,class:"question-tag",onClick:de[4]||(de[4]=Ce=>Nn("施工安全生产责任的规定"))},[x("img",{src:C(ek),alt:"问题",class:"question-icon"},null,8,ovt),de[35]||(de[35]=xn(" 施工安全生产责任的规定 ",-1))])):xe("",!0),h.value.length===0?(F(),K("div",{key:1,class:"question-tag",onClick:de[5]||(de[5]=Ce=>Nn("工程建设质量的要求"))},[x("img",{src:C(tk),alt:"问题",class:"question-icon"},null,8,ivt),de[36]||(de[36]=xn(" 工程建设质量的要求 ",-1))])):xe("",!0),h.value.length===0?(F(),K("div",{key:2,class:"question-tag",onClick:de[6]||(de[6]=Ce=>Nn("公路桥梁加固设计规范"))},[x("img",{src:C(nk),alt:"文档",class:"question-icon"},null,8,avt),de[37]||(de[37]=xn(" 公路桥梁加固设计规范 ",-1))])):xe("",!0)])):xe("",!0),H.value.length>0?(F(),K("div",{key:1,class:"user-recommend-questions",onClick:de[7]||(de[7]=Qt(()=>{},["stop"]))},[x("div",svt,[(F(!0),K(Pt,null,an(H.value,(Ce,Lt)=>(F(),K("div",{key:Lt,class:"recommend-item",onClick:Tt=>xt(Ce)},We(Ce),9,lvt))),128))])])):xe("",!0),x("div",uvt,[x("div",cvt,[U.value?(F(),K("div",dvt,[x("div",fvt,[x("div",pvt,[U.value.type===".doc"||U.value.type===".docx"?(F(),K("img",{key:0,src:U.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,hvt)):(F(),K("span",gvt,We(U.value.icon),1))]),x("div",vvt,[x("div",mvt,We(U.value.name),1),x("div",yvt,We(ha(U.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:Ho},de[38]||(de[38]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",bvt,[x("button",{class:re(["network-search-btn",{active:ee.value}]),onClick:Lo,title:ee.value?"关闭联网搜索":"启用联网搜索",disabled:be.value},[x("div",Avt,[x("img",{src:ee.value?C(iAe):C(aAe),alt:"联网搜索",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Cvt)])],10,wvt),x("button",{class:"attach-btn",onClick:zr,disabled:be.value},[x("div",Svt,[x("img",{src:C(pq),alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Evt)])],8,xvt),ln(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":de[8]||(de[8]=Ce=>r.value=Ce),onKeyup:Lr(Tn,["enter"]),onInput:Br,disabled:be.value,maxlength:"2000"},null,40,kvt),[[jr,r.value]]),x("button",{class:re(["voice-btn",{recording:C(k)}]),onClick:Ke,disabled:be.value},[x("div",_vt,[x("img",{src:C(Zf),alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Dvt),C(k)?(F(),K("div",Ivt)):xe("",!0)])],10,Tvt),de[39]||(de[39]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:de[9]||(de[9]=Ce=>a.value?yt():Tn()),disabled:!a.value&&(be.value||!r.value.trim())},[a.value?(F(),K("span",Mvt,"停止")):(F(),K("img",{key:1,src:r.value.trim()&&!be.value?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,Pvt))],8,Ovt)])])])],2),x("input",{ref_key:"fileInput",ref:q,type:"file",accept:".docx",style:{display:"none"},onChange:Cr},null,544),Ve(Bct,{ref_key:"toastRef",ref:b,message:w.value,type:A.value,duration:S.value},null,8,["message","type","duration"]),Ve(c0,{visible:c.value,title:oe.value,message:pe.value,onConfirm:Nt,onCancel:tr,onClose:tr},null,8,["visible","title","message"]),Ve(_ht,{modelValue:he.value,"onUpdate:modelValue":de[10]||(de[10]=Ce=>he.value=Ce),"file-path":Te.value,"file-name":Y.value},null,8,["modelValue","file-path","file-name"]),Ve(Zht,{visible:ve.value,results:Me.value.results,keywords:Me.value.keywords,total:Me.value.total,"onUpdate:visible":de[11]||(de[11]=Ce=>ve.value=Ce)},null,8,["visible","results","keywords","total"])]))}},Rvt=Qo(Nvt,[["__scopeId","data-v-bb0c3c83"]]),Bvt="modulepreload",Lvt=function(e){return"/"+e},loe={},Mf=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");o=l(n.map(u=>{if(u=Lvt(u),u in loe)return;loe[u]=!0;const d=u.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":Bvt,d||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),d)return new Promise((p,v)=>{f.addEventListener("load",p),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},sAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABKCAYAAAAc0MJxAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAT6SURBVHic7ZxRUqNIGIC/hiW+8mxMLZxgMycYPIHxBKsnGOcEiSfQPYGzJzA5QZgTmD1BU6XkdfI6UKT3gUaIJoatTYBM+KooUJr456sfaLrxF2xBSulYljUQQnwG+oCtl0NmAQRKqQUwieN47Lpu8NEBYtOO5+dnzzTNoVLK222MzUQp5cdxfL1J2FpR8/n8Til1o39cAOMkSSZJksyAheu6i/2EWw1SStuyLGe5XDqmaV4AHuDo3aNut3v79pgVUVJK++Tk5FFn0QK4j6Lor0MXsw0ppdPpdP4ERvpXsyiKzovfe0VUGIZPpNehQCl1eXZ2Nqss2gaghU0BRwjhn56enmf7jGwjDMMhWlIURefHJgnAdd0giqJz0kTx5vP5XbZPwKtJCRBFkbvtDvCr8/Ly0hdCTAF7uVye93o93wCwLOtBtxkduyQAfTbdA5imOQQQhWwK9AUsqDHGxiCltLUXO4oi17Asa6D3+a2kHH3HGwNYljUwgAuAJEkmdQbWRDInQojPhhDCBjAMI6g1qgaiO9gAfQPdI43jOKgroAaTdThtEYahAuh2uxuf+46ZzI+xrWFLSiuqJK2okrSiStKKKslvNf/9AWmH19HLAvCBiV43hrpEOcCUfFSxSB+4IRV1Sd6XqZU6Tj2H95J84BtQHAPzgCfWy6yeMAxV1qmqABuQgNLLA+9FOKQiszaPFcW2lsxP1Rn1hVzMPXANBG/aBMA5aYZBeh272ndg26ha1JVez4CvW9rekku82FM8palSlEOeTX6J9gG5KG/HsfxnqhRVnF3+p+Qx/ppjIRVe6Wx1XaKC//k5kvSOWJmsQ+yZ9/XaKWzvnaaIcuoOYBtNEDUlPZUG2xrWSRNEeXr9R51BbKMJog6CVlRJWlElaUWVpBVVklZUSVpRJWlFlaQVVZJWVElaUSVpRZXkEEUVB+sqm/OrUlRQ2HYK275erxtm8fS6ON/3y4sqfqnfC9vZu6N94I585PKBXNR4w7HVzSJXPAH6RDqpOX3z++Kk6NtFsppF0w2fsRfqmgD9W689Vic1P7GaNRnfSCdDs8zxyLPM321oW6g4oxzy7JGsn06/Ir1evZ04KB77g4pmYF79VCwKYEh+WpV9CcNh9fS8+bD1DqlTFKQX7exL/yD94psy5IpVSXcb2u2FzE9d70d9Jb3ujEgF3ZFm2oy8G+GQ/w9zxoj0nYTqqSmjMgZ8fMcr3vmu6giw7ozKGOvFI31jxSPPoEAvE9bfESulblEZPg17Z/Mth/isVwutqJK0okrSiipJK6okBvqBU0p56IVpdk7ByeJVFIdfwWfnWJbl6M3AQI8emqZZ2Wt+h8JyuXQAlFILQyn1HUBXvWkpUHAyMeI4zh4PBu11KkdK6aAHCeM4Hhuu6wZCCB+wO53OlxpjaxS6TJKjlPJd1w0MgCRJsqGLm5eXl6O/VulsGgHEcXwNuh/V6/V8IcQ9YAshHnXDo6RQQwoKRX1Wah3M5/OprkZ2lAVtdDmkR9JBw1m32/2U7Vvpmf/8+fOStLvgdDodGYbh8BiyS0pph2E41DWjHCGErwtuvbK2eoauTjbSPwaAnyTJxDCMII7j4NBr3um7u22aZl93AQboDrcQ4v709PTdv8htLDOi628+CCG8fQXcJIQQfpIkt71ez1+7f9sHZAVLgQtdGcjh8B93FnqZKaW+lylY+i+/oRHLPcYUkgAAAABJRU5ErkJggg==",ZD="/assets/13-Bv7KwdLX.png",uoe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARcSURBVHic7Z2/b9tGFMe/7yi7MuCB2eSNArwkk9ytgGwomeIuadDsQf6AIhlT2EBowEPG5A/okCFbgSRTu0Voja7m1A4NIG7JFg4qrAgiXwf9gFrdkZRO4pHwfTaLFPXw0bvju0fhTMhJx2d3NBq0BNfuMbhFzB6IXABu3muUlAhAyEAkgDCm+NXF+U4375sp64SOz24yHD4B0WNUX1ZeIgLeUhyfdZ/vhGknKgVeU3GLEJ/9dv6Vrzwse7Hz9MpLHOcNgNam4qoYgYjj+7JsXBA4kfcegFdAYFUiFHF8+/8S/yPQystkQaKYPzoZtl7BQVUJL3GcNx2fZ/eEmcCj0y8+7JyXh1YyHD6Z/kHAbOj2zMVUOSKxtdXs+hQJAGDHeWY6oorhTrOQAODoZPgZ17nWW41IbG01Rfv0qgMrbxXGS1uHnYemI6kqgmv3RGLLlpVhcEuQHb4rQ8yegM3A1SFyBWwG6uCK7HMsaViBmliBmliBmliBmliBmliBmtRMffBuHWjflH9/Hz4xPnzkzGvs7xF264uv9wfI9f51YEzg/h7hx+8d6bGLvxKcvI4zr/HgG4Hjrxe/hKDHePzTSDvGPBgbwqrsmx6TZVYZMSZQljnztJrVmJ6NRNlqyueueQ5vZv7qpBQYE7iOc8qAEYGHKfPflMYNqoTEwgU23PEdOA/HB+WfBwuPsH1LUftJ6jabgRJk5Ut/APxymSy83rhBubPVFIUK3K0DB5Ks+v3PRLlyuFvyYVxodGlLt6AnFygTXiYKFXh4Sy5jKk+Whft7hIZbXomFCdyty1cX8wv/S0UWthXiy0BhAlWdk7/nsk41D+apG01RWGSq+S/oJWi44/qwP5C/t9Us7zAurJ2lah48uuPg0R15W2ueVpPw62UxPb5lKCQD8zQPssjq3piiMIHruEYZe4SFCFzXTSCtCWuKjUe0TPMgizIW1RsXqGoemL7Wutj4XVg17PoD4OS1/MHPD9860qwdF+OkXPaZYKMCVc0DYFz/qURc9lg57I8PBIJe9hO7otjomEib9FXLNmD8WFNF2XqEGxV4N6V2SxuGaQ/Fy9bq3+gQ/megFpUmqT8Afv4jUQ7j/b3xPKhqgxX1qwQAoKOTYXlm5ApSvrqgYliBmliBmliBmliBmliBmliBmliBmliBmliBmliBmliBmgiM98+zrEYkwGwFrk4omCg0HUVVYSASBApMB1JVBBCKhEbvTAdSVWKKX4larR7A3khWIbo43+mKrk8RmF+ajqZqEPAWmNSBYnv7BWwWLgXF8RkwEWizcEmIZ9sjz1Yikyy0d+RsgvltkWcCuz5FIo7vAwgNBFUVwomjGXYb5PxIt0FeaCZ0n++EIo5vww7neQKZPCBjL/2j0y8+mK7z/qoRmF+K7e0XXZ+kVUr2PyN4euWx4zxj4Dtcn53eMsVNWepnTu3Tq47DzsME8CYbN3qovtQIzBEThQQKEhq9q9XqQZa4Kf8CWPFo73QXhUoAAAAASUVORK5CYII=",Fvt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAH4SURBVFiF7ZdNbtpQFIXPtS3ijOoleAdlXJXIXUGyg8AO0hkNSBgpPwxZAllBsgPcInVMVoCXQEcYB/tmgBsRYfK4r+C4EUdiYN4973743GcAOOig9xVtWqj9mJ+RQZ920YRT/jO6PXrQ8W4GbMVDAjxtqrVO3P11deRLbcbOAFRi6py0577UZin3BQIzSRpiIMtyU+bh682oc9KeQ3InlYAAEPSOQxEcAK85A0wzA+MuiM4BuFLIYiImmhhJ8g1ACEAUd2EzGPSOQx3I4g4J9CC3msFVeT47iCInd9G2p4FP07X3CY7XnLl/Lw2iRsp8D8ABU6fWiqaja7uft6X4DqZxfJGa5iT3FccXuSZG/1Xd8nSvfEjjdFO/QiPWkTjiBejBAiYb1h5fLmx7iqenumI7H4D7VoEY8PdNZQxgrKrLZvHurZpaK66TArD0EZceUBzxl8u4ahE+6zRbMB6zEdlaYkALfAZQR+rLvF1sMb+r+ngRG5VKH1E00Opm2+vfMgqJAbPHh7iRrkofcekBxRHXLuM6COda3Rh3o5vKQGIRAxLYBciT+pbin1KHGJBBIYBA6luKQqlDDJhFNJD6dFX6Q3IA/FcpZ5AA52t75u2jOTHy/3ytaJtDUjXYHKrL9qP/N2KT8X1hJMoIdgKRmoX9+DiodHoGUxWxeEnnJfMAAAAASUVORK5CYII=",e3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE4SURBVFiF7ZY/bsIwFMZ/RjlQGSoWhvYEPUKZWFg4wuMGMLAw0SP0BM3AgjrAEXoEDhDJHezAExAbBYdUar4lf5z3fT/ZVvzgv8tcvBE7Bd6Bpzt898AnMEfM4XYAsV/Ayx3B10BeQxA9FS6Jw8HN4jT0Qabu366M58ACyGNTWVca4HzNZ4iRJkKrALTyY7jYDBhjGWHoB2pCKrDsMKyBFWKKcqBXUTBT4RtgieG5ZjhA5uuXwMb7BgH2/joGBjVDqzTwvgGAcsNZRonDOfetmgEnt+bppXzDAPXXPKboHniYOoAOoAP4UwA/bQN8tA0w53QKtgAg5oCYPmUv8HCAE4iop+JiPI2iHZGTZddIvPKN9QPrRgCUb+w/sAK2ieO33vcGANe9DoEJlm/q74nC10+Aoe6KO/0C8TJFqP1ldx8AAAAASUVORK5CYII=",gq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGSSURBVFiF7ZexbcJAFIa/F4NAggKKRKJzNmAEswFUuIQJyAaIDbIBlKSCDWAERqBDggIXRALh06VABmLOxNiRoOAv7969/9PzvbszPJVCq2ZxtHQL/TQ5XtIs1kIdpHU3gP/QE+AJcHeATNTE0i200NJBqAZjohm/fm0a1xKumsXRoT2PmiroVYabqSneWIGFW3RA+ufmKeRYMFm6hZZp0lgBC7oAaD6zu0yvPPa8uG7nFVrXS6V9zu8ifKClAwzC8VF7wAG41Tys8tjzsrtMDyCqmlc3YRrzuDketwvCOtx6Yiv8dmW4nZtiFm7etsj0ReP91S2B4ldASxVwLKzJws3bZnNrAjhaKMVNGxtAid8APQexwxAnc7FBzxV++98BKsPtXKFq5xDB3G9zVYv6RKkATBCnmWTmNwNcQgRKZp4I4BIiuTnc0IYmCOA96fpAdz+IHhtgXS/FPlCS5jADaGYA+5zfTQNxvI4PmppixDR4eDxIqj+esBTUTK8iYwXeht8DBTUiqG+SZga6HfUke+oHeMmu4S99q1IAAAAASUVORK5CYII=",Uvt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGrSURBVFiFtZe9TsMwFEbPTZaOGRkZ2VGpwuSRjfIGdEMCiaovUDMBS1GlFkZ4BB4hTEXtxMYIb9AdCTO0Qf1LYzvuN0a2z5Ed35tIu62Tn4gucI7hywj9x55+YQe57Oi2MVyLkAj0Bz2t48Nj9QRcADWEPYFmI1UyHmVZSPhVR2vgVoQEqAGqniqJgObqYAPd+YRgcAPd1ediOI2MYbppUiiJIvg80/joWAlwUjBAVTmOEjhiaMWTUfbeSJUAKqREGdxAa/igX2OA8SjLQkrYwPObFucPQ0m4wJcEQki4wtcEqkj4wDcK+Ej4wgGkaJLNwgI3c4AXvFTARmJbyuBQcASLsTgOb7iVgI+ELdxawEXCBQ4Q2Q50WHDfZbz1Dji8jE5l20rA4yZYS5QKVLiGVhJbBWwqXAQfVGhghQK25bVqA9so4Frbq0isCfg2Fl+JJYEqXc1X4l+gKtxXIg4J95GQ0PDFlK39K5zF9VQ9A0loOJTvhBgOol3B8wx6WudfThsyjQz0dwUvkxDhLZ7k22RIgE8xsz+WUPA841GW1VP1LTPOFOF+2NN3f3iMagxNfNeRAAAAAElFTkSuQmCC";var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cm(e){var t={exports:{}};return e(t,t.exports),t.exports}var Rp,d8,Zx=function(e){return e&&e.Math==Math&&e},po=Zx(typeof globalThis=="object"&&globalThis)||Zx(typeof window=="object"&&window)||Zx(typeof self=="object"&&self)||Zx(typeof bi=="object"&&bi)||(function(){return this})()||Function("return this")(),vq=Function.prototype,coe=vq.apply,zvt=vq.bind,doe=vq.call,lAe=typeof Reflect=="object"&&Reflect.apply||(zvt?doe.bind(coe):function(){return doe.apply(coe,arguments)}),uAe=Function.prototype,RF=uAe.bind,BF=uAe.call,jvt=RF&&RF.bind(BF),Fi=RF?function(e){return e&&jvt(BF,e)}:function(e){return e&&function(){return BF.apply(e,arguments)}},Ss=function(e){return typeof e=="function"},$l=function(e){try{return!!e()}catch{return!0}},Pl=!$l((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),G2=Function.prototype.call,su=G2.bind?G2.bind(G2):function(){return G2.apply(G2,arguments)},foe={}.propertyIsEnumerable,poe=Object.getOwnPropertyDescriptor,Hvt=poe&&!foe.call({1:2},1)?function(e){var t=poe(this,e);return!!t&&t.enumerable}:foe,mq={f:Hvt},Tc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Wvt=Fi({}.toString),Vvt=Fi("".slice),Zg=function(e){return Vvt(Wvt(e),8,-1)},aM=po.Object,qvt=Fi("".split),cAe=$l((function(){return!aM("z").propertyIsEnumerable(0)}))?function(e){return Zg(e)=="String"?qvt(e,""):aM(e)}:aM,Gvt=po.TypeError,yq=function(e){if(e==null)throw Gvt("Can't call method on "+e);return e},tf=function(e){return cAe(yq(e))},Lu=function(e){return typeof e=="object"?e!==null:Ss(e)},Xl={},hoe=function(e){return Ss(e)?e:void 0},Vb=function(e,t){return arguments.length<2?hoe(Xl[e])||hoe(po[e]):Xl[e]&&Xl[e][t]||po[e]&&po[e][t]},gA=Fi({}.isPrototypeOf),sM=Vb("navigator","userAgent")||"",goe=po.process,voe=po.Deno,moe=goe&&goe.versions||voe&&voe.version,yoe=moe&&moe.v8;yoe&&(d8=(Rp=yoe.split("."))[0]>0&&Rp[0]<4?1:+(Rp[0]+Rp[1])),!d8&&sM&&(!(Rp=sM.match(/Edge\/(\d+)/))||Rp[1]>=74)&&(Rp=sM.match(/Chrome\/(\d+)/))&&(d8=+Rp[1]);var Xx,rk=d8,ud=!!Object.getOwnPropertySymbols&&!$l((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rk&&rk<41})),bq=ud&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kvt=po.Object,sy=bq?function(e){return typeof e=="symbol"}:function(e){var t=Vb("Symbol");return Ss(t)&&gA(t.prototype,Kvt(e))},Qvt=po.String,LF=function(e){try{return Qvt(e)}catch{return"Object"}},Yvt=po.TypeError,wq=function(e){if(Ss(e))return e;throw Yvt(LF(e)+" is not a function")},ok=function(e,t){var n=e[t];return n==null?void 0:wq(n)},Zvt=po.TypeError,Xvt=Object.defineProperty,Ih=po["__core-js_shared__"]||(function(e,t){try{Xvt(po,e,{value:t,configurable:!0,writable:!0})}catch{po[e]=t}return t})("__core-js_shared__",{}),dm=cm((function(e){(e.exports=function(t,n){return Ih[t]||(Ih[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Jvt=po.Object,XC=function(e){return Jvt(yq(e))},emt=Fi({}.hasOwnProperty),zo=Object.hasOwn||function(e,t){return emt(XC(e),t)},tmt=0,nmt=Math.random(),rmt=Fi(1 .toString),ik=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rmt(++tmt+nmt,36)},K2=dm("wks"),Xg=po.Symbol,boe=Xg&&Xg.for,omt=bq?Xg:Xg&&Xg.withoutSetter||ik,Ks=function(e){if(!zo(K2,e)||!ud&&typeof K2[e]!="string"){var t="Symbol."+e;ud&&zo(Xg,e)?K2[e]=Xg[e]:K2[e]=bq&&boe?boe(t):omt(t)}return K2[e]},imt=po.TypeError,amt=Ks("toPrimitive"),smt=function(e,t){if(!Lu(e)||sy(e))return e;var n,r=ok(e,amt);if(r){if(n=su(r,e,t),!Lu(n)||sy(n))return n;throw imt("Can't convert object to primitive value")}return(function(o,i){var a,s;if(Ss(a=o.toString)&&!Lu(s=su(a,o))||Ss(a=o.valueOf)&&!Lu(s=su(a,o)))return s;throw Zvt("Can't convert object to primitive value")})(e)},qb=function(e){var t=smt(e,"string");return sy(t)?t:t+""},FF=po.document,lmt=Lu(FF)&&Lu(FF.createElement),dAe=function(e){return lmt?FF.createElement(e):{}},fAe=!Pl&&!$l((function(){return Object.defineProperty(dAe("div"),"a",{get:function(){return 7}}).a!=7})),woe=Object.getOwnPropertyDescriptor,umt=Pl?woe:function(e,t){if(e=tf(e),t=qb(t),fAe)try{return woe(e,t)}catch{}if(zo(e,t))return Tc(!su(mq.f,e,t),e[t])},XD={f:umt},cmt=/#|\.prototype\./,JC=function(e,t){var n=fmt[dmt(e)];return n==hmt||n!=pmt&&(Ss(t)?$l(t):!!t)},dmt=JC.normalize=function(e){return String(e).replace(cmt,".").toLowerCase()},fmt=JC.data={},pmt=JC.NATIVE="N",hmt=JC.POLYFILL="P",gmt=JC,Aoe=Fi(Fi.bind),Aq=function(e,t){return wq(e),t===void 0?e:Aoe?Aoe(e,t):function(){return e.apply(t,arguments)}},vmt=po.String,mmt=po.TypeError,du=function(e){if(Lu(e))return e;throw mmt(vmt(e)+" is not an object")},ymt=po.TypeError,Coe=Object.defineProperty,bmt=Pl?Coe:function(e,t,n){if(du(e),t=qb(t),du(n),fAe)try{return Coe(e,t,n)}catch{}if("get"in n||"set"in n)throw ymt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},N0={f:bmt},tl=Pl?function(e,t,n){return N0.f(e,t,Tc(1,n))}:function(e,t,n){return e[t]=n,e},wmt=XD.f,Amt=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return lAe(e,this,arguments)};return t.prototype=e.prototype,t},Cf=function(e,t){var n,r,o,i,a,s,l,u,d=e.target,c=e.global,f=e.stat,p=e.proto,v=c?po:f?po[d]:(po[d]||{}).prototype,h=c?Xl:Xl[d]||tl(Xl,d,{})[d],g=h.prototype;for(o in t)n=!gmt(c?o:d+(f?".":"#")+o,e.forced)&&v&&zo(v,o),a=h[o],n&&(s=e.noTargetGet?(u=wmt(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Aq(i,po):e.wrap&&n?Amt(i):p&&Ss(i)?Fi(i):i,(e.sham||i&&i.sham||a&&a.sham)&&tl(l,"sham",!0),tl(h,o,l),p&&(zo(Xl,r=d+"Prototype")||tl(Xl,r,{}),tl(Xl[r],o,i),e.real&&g&&!g[o]&&tl(g,o,i)))},xoe=dm("keys"),JD=function(e){return xoe[e]||(xoe[e]=ik(e))},Cmt=!$l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Soe=JD("IE_PROTO"),UF=po.Object,xmt=UF.prototype,ak=Cmt?UF.getPrototypeOf:function(e){var t=XC(e);if(zo(t,Soe))return t[Soe];var n=t.constructor;return Ss(n)&&t instanceof n?n.prototype:t instanceof UF?xmt:null},Smt=po.String,Emt=po.TypeError,sk=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Fi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return du(r),(function(i){if(typeof i=="object"||Ss(i))return i;throw Emt("Can't set "+Smt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),kmt=Math.ceil,Tmt=Math.floor,Cq=function(e){var t=+e;return t!=t||t===0?0:(t>0?Tmt:kmt)(t)},_mt=Math.max,Dmt=Math.min,$F=function(e,t){var n=Cq(e);return n<0?_mt(n+t,0):Dmt(n,t)},Imt=Math.min,e5=function(e){return(t=e.length)>0?Imt(Cq(t),9007199254740991):0;var t},Omt=function(e){return function(t,n,r){var o,i=tf(t),a=e5(i),s=$F(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Mmt={indexOf:Omt(!1)},t5={},Pmt=Mmt.indexOf,Eoe=Fi([].push),pAe=function(e,t){var n,r=tf(e),o=0,i=[];for(n in r)!zo(t5,n)&&zo(r,n)&&Eoe(i,n);for(;t.length>o;)zo(r,n=t[o++])&&(~Pmt(i,n)||Eoe(i,n));return i},lk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nmt=lk.concat("length","prototype"),Rmt=Object.getOwnPropertyNames||function(e){return pAe(e,Nmt)},xq={f:Rmt},f8={f:Object.getOwnPropertySymbols},Bmt=Fi([].concat),Lmt=Vb("Reflect","ownKeys")||function(e){var t=xq.f(du(e)),n=f8.f;return n?Bmt(t,n(e)):t},Sq=Object.keys||function(e){return pAe(e,lk)},Fmt=Pl?Object.defineProperties:function(e,t){du(e);for(var n,r=tf(t),o=Sq(t),i=o.length,a=0;i>a;)N0.f(e,n=o[a++],r[n]);return e},Umt=Vb("document","documentElement"),hAe=JD("IE_PROTO"),lM=function(){},gAe=function(e){return"<script>"+e+"<\/script>"},koe=function(e){e.write(gAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},p8=function(){try{Xx=new ActiveXObject("htmlfile")}catch{}var e,t;p8=typeof document<"u"?document.domain&&Xx?koe(Xx):((t=dAe("iframe")).style.display="none",Umt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(gAe("document.F=Object")),e.close(),e.F):koe(Xx);for(var n=lk.length;n--;)delete p8.prototype[lk[n]];return p8()};t5[hAe]=!0;var ip=Object.create||function(e,t){var n;return e!==null?(lM.prototype=du(e),n=new lM,lM.prototype=null,n[hAe]=e):n=p8(),t===void 0?n:Fmt(n,t)},zF=function(e,t,n){var r=qb(t);r in e?N0.f(e,r,Tc(0,n)):e[r]=n},$mt=po.Array,zmt=Math.max,vAe=function(e,t,n){for(var r=e5(e),o=$F(t,r),i=$F(r,r),a=$mt(zmt(i-o,0)),s=0;o<i;o++,s++)zF(a,s,e[o]);return a.length=s,a},jmt=Fi("".replace),Hmt=Fi("".split),Wmt=Fi([].join),jF=String(Error("zxcasd").stack),mAe=/\n\s*at [^:]*:[^\n]*/,Vmt=mAe.test(jF),qmt=/@[^\n]*\n/.test(jF)&&!/zxcasd/.test(jF),Gmt=function(e,t){if(typeof e!="string")return e;if(Vmt)for(;t--;)e=jmt(e,mAe,"");else if(qmt)return Wmt(vAe(Hmt(e,`
- `),t),`
- `);return e},Kmt=function(e,t){Lu(t)&&"cause"in t&&tl(e,"cause",t.cause)},$f={},Qmt=Ks("iterator"),Ymt=Array.prototype,yAe={};yAe[Ks("toStringTag")]="z";var Eq=String(yAe)==="[object z]",Zmt=Ks("toStringTag"),Xmt=po.Object,Jmt=Zg((function(){return arguments})())=="Arguments",n5=Eq?Zg:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=Xmt(e),Zmt))=="string"?n:Jmt?Zg(t):(r=Zg(t))=="Object"&&Ss(t.callee)?"Arguments":r},e1t=Ks("iterator"),Toe=function(e){if(e!=null)return ok(e,e1t)||ok(e,"@@iterator")||$f[n5(e)]},t1t=po.TypeError,_oe=function(e,t,n){var r,o;du(e);try{if(!(r=ok(e,"return"))){if(t==="throw")throw n;return n}r=su(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return du(r),n},n1t=po.TypeError,h8=function(e,t){this.stopped=e,this.result=t},Doe=h8.prototype,r1t=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Aq(t,d),h=function(y){return r&&_oe(r,"normal",y),new h8(!0,y)},g=function(y){return c?(du(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=Toe(e)))throw n1t(LF(e)+" is not iterable");if((function(y){return y!==void 0&&($f.Array===y||Ymt[Qmt]===y)})(o)){for(i=0,a=e5(e);a>i;i++)if((s=g(e[i]))&&gA(Doe,s))return s;return new h8(!1)}r=(function(y,m){var b=arguments.length<2?Toe(y):m;if(wq(b))return du(su(b,y));throw t1t(LF(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=su(l,r)).done;){try{s=g(u.value)}catch(y){_oe(r,"throw",y)}if(typeof s=="object"&&s&&gA(Doe,s))return s}return new h8(!1)},o1t=po.String,vA=function(e){if(n5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o1t(e)},i1t=function(e,t){return e===void 0?arguments.length<2?"":t:vA(e)},a1t=!$l((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Tc(1,7)),e.stack!==7)})),s1t=Ks("toStringTag"),uk=po.Error,l1t=[].push,mA=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=gA(uM,this);sk?n=sk(new uk(void 0),o?ak(this):uM):(n=o?this:ip(uM),tl(n,s1t,"Error")),tl(n,"message",i1t(t,"")),a1t&&tl(n,"stack",Gmt(n.stack,1)),Kmt(n,r);var i=[];return r1t(e,l1t,{that:i}),tl(n,"errors",i),n};sk?sk(mA,uk):(function(e,t){for(var n=Lmt(t),r=N0.f,o=XD.f,i=0;i<n.length;i++){var a=n[i];zo(e,a)||r(e,a,o(t,a))}})(mA,uk);var uM=mA.prototype=ip(uk.prototype,{constructor:Tc(1,mA),message:Tc(1,""),name:Tc(1,"AggregateError")});Cf({global:!0},{AggregateError:mA});var u1t=Fi(Function.toString);Ss(Ih.inspectSource)||(Ih.inspectSource=function(e){return u1t(e)});var ck,t3,dk,bAe=Ih.inspectSource,Ioe=po.WeakMap,c1t=Ss(Ioe)&&/native code/.test(bAe(Ioe)),HF=po.TypeError,d1t=po.WeakMap;if(c1t||Ih.state){var Z0=Ih.state||(Ih.state=new d1t),f1t=Fi(Z0.get),Ooe=Fi(Z0.has),p1t=Fi(Z0.set);ck=function(e,t){if(Ooe(Z0,e))throw new HF("Object already initialized");return t.facade=e,p1t(Z0,e,t),t},t3=function(e){return f1t(Z0,e)||{}},dk=function(e){return Ooe(Z0,e)}}else{var $m=JD("state");t5[$m]=!0,ck=function(e,t){if(zo(e,$m))throw new HF("Object already initialized");return t.facade=e,tl(e,$m,t),t},t3=function(e){return zo(e,$m)?e[$m]:{}},dk=function(e){return zo(e,$m)}}var bh,Moe,Poe,Gb={set:ck,get:t3,has:dk,enforce:function(e){return dk(e)?t3(e):ck(e,{})},getterFor:function(e){return function(t){var n;if(!Lu(t)||(n=t3(t)).type!==e)throw HF("Incompatible receiver, "+e+" required");return n}}},wAe=Function.prototype,h1t=Pl&&Object.getOwnPropertyDescriptor,Noe=zo(wAe,"name"),g1t={PROPER:Noe&&(function(){}).name==="something",CONFIGURABLE:Noe&&(!Pl||Pl&&h1t(wAe,"name").configurable)},fk=function(e,t,n,r){tl(e,t,n)},WF=Ks("iterator"),AAe=!1;[].keys&&("next"in(Poe=[].keys())?(Moe=ak(ak(Poe)))!==Object.prototype&&(bh=Moe):AAe=!0);var v1t=bh==null||$l((function(){var e={};return bh[WF].call(e)!==e}));bh=v1t?{}:ip(bh),Ss(bh[WF])||fk(bh,WF,(function(){return this}));var CAe={IteratorPrototype:bh,BUGGY_SAFARI_ITERATORS:AAe},m1t=Eq?{}.toString:function(){return"[object "+n5(this)+"]"},y1t=N0.f,Roe=Ks("toStringTag"),pk=function(e,t,n,r){if(e){var o=n?e:e.prototype;zo(o,Roe)||y1t(o,Roe,{configurable:!0,value:t}),r&&!Eq&&tl(o,"toString",m1t)}},b1t=CAe.IteratorPrototype,w1t=function(){return this},A1t=g1t.PROPER,cM=CAe.BUGGY_SAFARI_ITERATORS,C1t=Ks("iterator"),x1t=function(){return this},xAe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=ip(b1t,{next:Tc(1,m)}),pk(g,w,!1,!0),$f[w]=w1t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!cM&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[C1t]||f["@@iterator"]||o&&f[o],v=!cM&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=ak(h.call(new e)))!==Object.prototype&&s.next&&(pk(s,d,!0,!0),$f[d]=x1t),A1t&&o=="values"&&p&&p.name!=="values"&&(c=!0,v=function(){return su(p,this)}),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Cf({target:t,proto:!0,forced:cM||c},l)),$f[t]=v,l},S1t=Gb.set,E1t=Gb.getterFor("Array Iterator");xAe(Array,"Array",(function(e,t){S1t(this,{type:"Array Iterator",target:tf(e),index:0,kind:t})}),(function(){var e=E1t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),$f.Arguments=$f.Array;var k1t=Fi("".charAt),Boe=Fi("".charCodeAt),T1t=Fi("".slice),_1t=function(e){return function(t,n){var r,o,i=vA(yq(t)),a=Cq(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Boe(i,a))<55296||r>56319||a+1===s||(o=Boe(i,a+1))<56320||o>57343?e?k1t(i,a):r:e?T1t(i,a,a+2):o-56320+(r-55296<<10)+65536}},D1t={charAt:_1t(!0)}.charAt,I1t=Gb.set,O1t=Gb.getterFor("String Iterator");xAe(String,"String",(function(e){I1t(this,{type:"String Iterator",string:vA(e),index:0})}),(function(){var e,t=O1t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=D1t(n,r),t.index+=e.length,{value:e,done:!1})}));var M1t=Xl.AggregateError,Loe=Ks("toStringTag");for(var dM in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Foe=po[dM],fM=Foe&&Foe.prototype;fM&&n5(fM)!==Loe&&tl(fM,Loe,dM),$f[dM]=$f.Array}var Bp,g8,P1t=M1t,Jx=function(e){return e&&e.Math==Math&&e},no=Jx(typeof globalThis=="object"&&globalThis)||Jx(typeof window=="object"&&window)||Jx(typeof self=="object"&&self)||Jx(typeof bi=="object"&&bi)||(function(){return this})()||Function("return this")(),hs=function(e){try{return!!e()}catch{return!0}},zd=!hs((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Q2=Function.prototype.call,As=Q2.bind?Q2.bind(Q2):function(){return Q2.apply(Q2,arguments)},Uoe={}.propertyIsEnumerable,$oe=Object.getOwnPropertyDescriptor,N1t=$oe&&!Uoe.call({1:2},1)?function(e){var t=$oe(this,e);return!!t&&t.enumerable}:Uoe,R1t={f:N1t},Oh=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SAe=Function.prototype,VF=SAe.bind,qF=SAe.call,B1t=VF&&VF.bind(qF),pi=VF?function(e){return e&&B1t(qF,e)}:function(e){return e&&function(){return qF.apply(e,arguments)}},L1t=pi({}.toString),F1t=pi("".slice),Jg=function(e){return F1t(L1t(e),8,-1)},pM=no.Object,U1t=pi("".split),EAe=hs((function(){return!pM("z").propertyIsEnumerable(0)}))?function(e){return Jg(e)=="String"?U1t(e,""):pM(e)}:pM,$1t=no.TypeError,e7=function(e){if(e==null)throw $1t("Can't call method on "+e);return e},Kb=function(e){return EAe(e7(e))},rs=function(e){return typeof e=="function"},xd=function(e){return typeof e=="object"?e!==null:rs(e)},z1t=function(e){return rs(e)?e:void 0},r5=function(e,t){return arguments.length<2?z1t(no[e]):no[e]&&no[e][t]},hk=pi({}.isPrototypeOf),hM=r5("navigator","userAgent")||"",zoe=no.process,joe=no.Deno,Hoe=zoe&&zoe.versions||joe&&joe.version,Woe=Hoe&&Hoe.v8;Woe&&(g8=(Bp=Woe.split("."))[0]>0&&Bp[0]<4?1:+(Bp[0]+Bp[1])),!g8&&hM&&(!(Bp=hM.match(/Edge\/(\d+)/))||Bp[1]>=74)&&(Bp=hM.match(/Chrome\/(\d+)/))&&(g8=+Bp[1]);var Voe=g8,GF=!!Object.getOwnPropertySymbols&&!hs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Voe&&Voe<41})),kq=GF&&!Symbol.sham&&typeof Symbol.iterator=="symbol",j1t=no.Object,KF=kq?function(e){return typeof e=="symbol"}:function(e){var t=r5("Symbol");return rs(t)&&hk(t.prototype,j1t(e))},H1t=no.String,QF=function(e){try{return H1t(e)}catch{return"Object"}},W1t=no.TypeError,Tq=function(e){if(rs(e))return e;throw W1t(QF(e)+" is not a function")},yA=function(e,t){var n=e[t];return n==null?void 0:Tq(n)},V1t=no.TypeError,q1t=Object.defineProperty,_q=function(e,t){try{q1t(no,e,{value:t,configurable:!0,writable:!0})}catch{no[e]=t}return t},Mh=no["__core-js_shared__"]||_q("__core-js_shared__",{}),Dq=cm((function(e){(e.exports=function(t,n){return Mh[t]||(Mh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G1t=no.Object,Iq=function(e){return G1t(e7(e))},K1t=pi({}.hasOwnProperty),Nl=Object.hasOwn||function(e,t){return K1t(Iq(e),t)},Q1t=0,Y1t=Math.random(),Z1t=pi(1 .toString),kAe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Z1t(++Q1t+Y1t,36)},Y2=Dq("wks"),ev=no.Symbol,qoe=ev&&ev.for,X1t=kq?ev:ev&&ev.withoutSetter||kAe,vl=function(e){if(!Nl(Y2,e)||!GF&&typeof Y2[e]!="string"){var t="Symbol."+e;GF&&Nl(ev,e)?Y2[e]=ev[e]:Y2[e]=kq&&qoe?qoe(t):X1t(t)}return Y2[e]},J1t=no.TypeError,eyt=vl("toPrimitive"),tyt=function(e,t){if(!xd(e)||KF(e))return e;var n,r=yA(e,eyt);if(r){if(n=As(r,e,t),!xd(n)||KF(n))return n;throw J1t("Can't convert object to primitive value")}return(function(o,i){var a,s;if(rs(a=o.toString)&&!xd(s=As(a,o))||rs(a=o.valueOf)&&!xd(s=As(a,o)))return s;throw V1t("Can't convert object to primitive value")})(e)},Oq=function(e){var t=tyt(e,"string");return KF(t)?t:t+""},YF=no.document,nyt=xd(YF)&&xd(YF.createElement),Mq=function(e){return nyt?YF.createElement(e):{}},TAe=!zd&&!hs((function(){return Object.defineProperty(Mq("div"),"a",{get:function(){return 7}}).a!=7})),Goe=Object.getOwnPropertyDescriptor,ryt=zd?Goe:function(e,t){if(e=Kb(e),t=Oq(t),TAe)try{return Goe(e,t)}catch{}if(Nl(e,t))return Oh(!As(R1t.f,e,t),e[t])},Pq={f:ryt},oyt=no.String,iyt=no.TypeError,fu=function(e){if(xd(e))return e;throw iyt(oyt(e)+" is not an object")},ayt=no.TypeError,Koe=Object.defineProperty,syt=zd?Koe:function(e,t,n){if(fu(e),t=Oq(t),fu(n),TAe)try{return Koe(e,t,n)}catch{}if("get"in n||"set"in n)throw ayt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qb={f:syt},kl=zd?function(e,t,n){return Qb.f(e,t,Oh(1,n))}:function(e,t,n){return e[t]=n,e},lyt=pi(Function.toString);rs(Mh.inspectSource)||(Mh.inspectSource=function(e){return lyt(e)});var gk,n3,vk,Nq=Mh.inspectSource,Qoe=no.WeakMap,uyt=rs(Qoe)&&/native code/.test(Nq(Qoe)),Yoe=Dq("keys"),Rq=function(e){return Yoe[e]||(Yoe[e]=kAe(e))},Bq={},ZF=no.TypeError,cyt=no.WeakMap;if(uyt||Mh.state){var X0=Mh.state||(Mh.state=new cyt),dyt=pi(X0.get),Zoe=pi(X0.has),fyt=pi(X0.set);gk=function(e,t){if(Zoe(X0,e))throw new ZF("Object already initialized");return t.facade=e,fyt(X0,e,t),t},n3=function(e){return dyt(X0,e)||{}},vk=function(e){return Zoe(X0,e)}}else{var zm=Rq("state");Bq[zm]=!0,gk=function(e,t){if(Nl(e,zm))throw new ZF("Object already initialized");return t.facade=e,kl(e,zm,t),t},n3=function(e){return Nl(e,zm)?e[zm]:{}},vk=function(e){return Nl(e,zm)}}var Lv={set:gk,get:n3,has:vk,enforce:function(e){return vk(e)?n3(e):gk(e,{})},getterFor:function(e){return function(t){var n;if(!xd(t)||(n=n3(t)).type!==e)throw ZF("Incompatible receiver, "+e+" required");return n}}},_Ae=Function.prototype,pyt=zd&&Object.getOwnPropertyDescriptor,Xoe=Nl(_Ae,"name"),Lq={PROPER:Xoe&&(function(){}).name==="something",CONFIGURABLE:Xoe&&(!zd||zd&&pyt(_Ae,"name").configurable)},Fv=cm((function(e){var t=Lq.CONFIGURABLE,n=Lv.get,r=Lv.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;rs(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nl(s,"name")||t&&s.name!==p)&&kl(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==no?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:kl(i,a,s)):c?i[a]=s:_q(a,s)})(Function.prototype,"toString",(function(){return rs(this)&&n(this).source||Nq(this)}))})),hyt=Math.ceil,gyt=Math.floor,Fq=function(e){var t=+e;return t!=t||t===0?0:(t>0?gyt:hyt)(t)},vyt=Math.max,myt=Math.min,XF=function(e,t){var n=Fq(e);return n<0?vyt(n+t,0):myt(n,t)},yyt=Math.min,DAe=function(e){return e>0?yyt(Fq(e),9007199254740991):0},t7=function(e){return DAe(e.length)},byt=function(e){return function(t,n,r){var o,i=Kb(t),a=t7(i),s=XF(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},wyt={indexOf:byt(!1)}.indexOf,Joe=pi([].push),IAe=function(e,t){var n,r=Kb(e),o=0,i=[];for(n in r)!Nl(Bq,n)&&Nl(r,n)&&Joe(i,n);for(;t.length>o;)Nl(r,n=t[o++])&&(~wyt(i,n)||Joe(i,n));return i},mk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ayt=mk.concat("length","prototype"),Cyt=Object.getOwnPropertyNames||function(e){return IAe(e,Ayt)},xyt={f:Cyt},Syt={f:Object.getOwnPropertySymbols},Eyt=pi([].concat),kyt=r5("Reflect","ownKeys")||function(e){var t=xyt.f(fu(e)),n=Syt.f;return n?Eyt(t,n(e)):t},OAe=function(e,t){for(var n=kyt(t),r=Qb.f,o=Pq.f,i=0;i<n.length;i++){var a=n[i];Nl(e,a)||r(e,a,o(t,a))}},Tyt=/#|\.prototype\./,o5=function(e,t){var n=Dyt[_yt(e)];return n==Oyt||n!=Iyt&&(rs(t)?hs(t):!!t)},_yt=o5.normalize=function(e){return String(e).replace(Tyt,".").toLowerCase()},Dyt=o5.data={},Iyt=o5.NATIVE="N",Oyt=o5.POLYFILL="P",Myt=o5,Pyt=Pq.f,i5=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?no:u?no[s]||_q(s,{}):(no[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pyt(n,r))&&a.value:n[r],!Myt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;OAe(i,o)}(e.sham||o&&o.sham)&&kl(i,"sham",!0),Fv(n,r,i,e)}},MAe={};MAe[vl("toStringTag")]="z";var e6,Uq=String(MAe)==="[object z]",Nyt=vl("toStringTag"),Ryt=no.Object,Byt=Jg((function(){return arguments})())=="Arguments",n7=Uq?Jg:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=Ryt(e),Nyt))=="string"?n:Byt?Jg(t):(r=Jg(t))=="Object"&&rs(t.callee)?"Arguments":r},Lyt=no.String,tv=function(e){if(n7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lyt(e)},Fyt=function(){var e=fu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$q=no.RegExp,PAe=hs((function(){var e=$q("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));PAe||hs((function(){return!$q("a","y").sticky}));var Uyt=PAe||hs((function(){var e=$q("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),$yt={BROKEN_CARET:Uyt},zyt=Object.keys||function(e){return IAe(e,mk)},jyt=zd?Object.defineProperties:function(e,t){fu(e);for(var n,r=Kb(t),o=zyt(t),i=o.length,a=0;i>a;)Qb.f(e,n=o[a++],r[n]);return e},Hyt=r5("document","documentElement"),NAe=Rq("IE_PROTO"),gM=function(){},RAe=function(e){return"<script>"+e+"<\/script>"},eie=function(e){e.write(RAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},v8=function(){try{e6=new ActiveXObject("htmlfile")}catch{}var e,t;v8=typeof document<"u"?document.domain&&e6?eie(e6):((t=Mq("iframe")).style.display="none",Hyt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(RAe("document.F=Object")),e.close(),e.F):eie(e6);for(var n=mk.length;n--;)delete v8.prototype[mk[n]];return v8()};Bq[NAe]=!0;var tie,vM,a5=Object.create||function(e,t){var n;return e!==null?(gM.prototype=fu(e),n=new gM,gM.prototype=null,n[NAe]=e):n=v8(),t===void 0?n:jyt(n,t)},Wyt=no.RegExp,Vyt=hs((function(){var e=Wyt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),qyt=no.RegExp,Gyt=hs((function(){var e=qyt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Kyt=Lv.get,Qyt=Dq("native-string-replace",String.prototype.replace),yk=RegExp.prototype.exec,JF=yk,Yyt=pi("".charAt),Zyt=pi("".indexOf),Xyt=pi("".replace),mM=pi("".slice),yM=(vM=/b*/g,As(yk,tie=/a/,"a"),As(yk,vM,"a"),tie.lastIndex!==0||vM.lastIndex!==0),nie=$yt.BROKEN_CARET,bM=/()??/.exec("")[1]!==void 0;(yM||bM||nie||Vyt||Gyt)&&(JF=function(e){var t,n,r,o,i,a,s,l=this,u=Kyt(l),d=tv(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=As(JF,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=nie&&l.sticky,v=As(Fyt,l),h=l.source,g=0,y=d;if(p&&(v=Xyt(v,"y",""),Zyt(v,"g")===-1&&(v+="g"),y=mM(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Yyt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),bM&&(n=new RegExp("^"+h+"$(?!\\s)",v)),yM&&(r=l.lastIndex),o=As(yk,p?n:l,y),p?o?(o.input=mM(o.input,g),o[0]=mM(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:yM&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),bM&&o&&o.length>1&&As(Qyt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=a5(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var bk=JF;i5({target:"RegExp",proto:!0,forced:/./.exec!==bk},{exec:bk});var Jyt=vl("species"),rie=RegExp.prototype,ebt=pi("".charAt),oie=pi("".charCodeAt),tbt=pi("".slice),nbt=function(e){return function(t,n){var r,o,i=tv(e7(t)),a=Fq(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=oie(i,a))<55296||r>56319||a+1===s||(o=oie(i,a+1))<56320||o>57343?e?ebt(i,a):r:e?tbt(i,a,a+2):o-56320+(r-55296<<10)+65536}},BAe={charAt:nbt(!0)},rbt=BAe.charAt,obt=function(e,t,n){return t+(n?rbt(e,t).length:1)},ibt=no.TypeError,iie=function(e,t){var n=e.exec;if(rs(n)){var r=As(n,e,t);return r!==null&&fu(r),r}if(Jg(e)==="RegExp")return As(bk,e,t);throw ibt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=vl(e),i=!hs((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!hs((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Jyt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=pi(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=pi(u),h=d.exec;return h===bk||h===rie.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));Fv(String.prototype,e,l[0]),Fv(rie,o,l[1])}})("match",(function(e,t,n){return[function(r){var o=e7(this),i=r==null?void 0:yA(r,e);return i?As(i,r,o):new RegExp(r)[e](tv(o))},function(r){var o=fu(this),i=tv(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return iie(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=iie(o,i))!==null;){var c=tv(l[0]);u[d]=c,c===""&&(o.lastIndex=obt(i,DAe(o.lastIndex),s)),d++}return d===0?null:u}]})),i5({global:!0},{globalThis:no});var abt=!hs((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),aie=Rq("IE_PROTO"),eU=no.Object,sbt=eU.prototype,bA=abt?eU.getPrototypeOf:function(e){var t=Iq(e);if(Nl(t,aie))return t[aie];var n=t.constructor;return rs(n)&&t instanceof n?n.prototype:t instanceof eU?sbt:null},lbt=no.String,ubt=no.TypeError,qy=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=pi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return fu(r),(function(i){if(typeof i=="object"||rs(i))return i;throw ubt("Can't set "+lbt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),cbt=no.Array,dbt=Math.max,fbt=pi("".replace),pbt=pi("".split),hbt=pi([].join),tU=String(Error("zxcasd").stack),LAe=/\n\s*at [^:]*:[^\n]*/,gbt=LAe.test(tU),vbt=/@[^\n]*\n/.test(tU)&&!/zxcasd/.test(tU),mbt=function(e,t){if(typeof e!="string")return e;if(gbt)for(;t--;)e=fbt(e,LAe,"");else if(vbt)return hbt((function(n,r,o){for(var i,a,s,l,u=t7(n),d=XF(r,u),c=XF(u,u),f=cbt(dbt(c-d,0)),p=0;d<c;d++,p++)i=f,a=p,s=n[d],l=void 0,(l=Oq(a))in i?Qb.f(i,l,Oh(0,s)):i[l]=s;return f.length=p,f})(pbt(e,`
- `),t),`
- `);return e},ybt=function(e,t){xd(t)&&"cause"in t&&kl(e,"cause",t.cause)},sie=pi(pi.bind),FAe=function(e,t){return Tq(e),t===void 0?e:sie?sie(e,t):function(){return e.apply(t,arguments)}},Gy={},bbt=vl("iterator"),wbt=Array.prototype,Abt=vl("iterator"),lie=function(e){if(e!=null)return yA(e,Abt)||yA(e,"@@iterator")||Gy[n7(e)]},Cbt=no.TypeError,uie=function(e,t,n){var r,o;fu(e);try{if(!(r=yA(e,"return"))){if(t==="throw")throw n;return n}r=As(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return fu(r),n},xbt=no.TypeError,m8=function(e,t){this.stopped=e,this.result=t},cie=m8.prototype,Sbt=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=FAe(t,d),h=function(y){return r&&uie(r,"normal",y),new m8(!0,y)},g=function(y){return c?(fu(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=lie(e)))throw xbt(QF(e)+" is not iterable");if((function(y){return y!==void 0&&(Gy.Array===y||wbt[bbt]===y)})(o)){for(i=0,a=t7(e);a>i;i++)if((s=g(e[i]))&&hk(cie,s))return s;return new m8(!1)}r=(function(y,m){var b=arguments.length<2?lie(y):m;if(Tq(b))return fu(As(b,y));throw Cbt(QF(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=As(l,r)).done;){try{s=g(u.value)}catch(y){uie(r,"throw",y)}if(typeof s=="object"&&s&&hk(cie,s))return s}return new m8(!1)},Ebt=function(e,t){return e===void 0?arguments.length<2?"":t:tv(e)},kbt=!hs((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Oh(1,7)),e.stack!==7)})),Tbt=vl("toStringTag"),wk=no.Error,_bt=[].push,wA=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=hk(wM,this);qy?n=qy(new wk(void 0),o?bA(this):wM):(n=o?this:a5(wM),kl(n,Tbt,"Error")),kl(n,"message",Ebt(t,"")),kbt&&kl(n,"stack",mbt(n.stack,1)),ybt(n,r);var i=[];return Sbt(e,_bt,{that:i}),kl(n,"errors",i),n};qy?qy(wA,wk):OAe(wA,wk);var wM=wA.prototype=a5(wk.prototype,{constructor:Oh(1,wA),message:Oh(1,""),name:Oh(1,"AggregateError")});i5({global:!0},{AggregateError:wA});var nU=vl("unscopables"),rU=Array.prototype;rU[nU]==null&&Qb.f(rU,nU,{configurable:!0,value:a5(null)});var nv,die,fie,AM=function(e){rU[nU][e]=!0},oU=vl("iterator"),UAe=!1;[].keys&&("next"in(fie=[].keys())?(die=bA(bA(fie)))!==Object.prototype&&(nv=die):UAe=!0);var Dbt=nv==null||hs((function(){var e={};return nv[oU].call(e)!==e}));Dbt&&(nv={}),rs(nv[oU])||Fv(nv,oU,(function(){return this}));var zq={IteratorPrototype:nv,BUGGY_SAFARI_ITERATORS:UAe},Ibt=Qb.f,pie=vl("toStringTag"),hie=function(e,t,n){e&&!Nl(e=n?e:e.prototype,pie)&&Ibt(e,pie,{configurable:!0,value:t})},Obt=zq.IteratorPrototype,Mbt=function(){return this},Pbt=Lq.PROPER,Nbt=Lq.CONFIGURABLE,gie=zq.IteratorPrototype,CM=zq.BUGGY_SAFARI_ITERATORS,Z2=vl("iterator"),Rbt=function(){return this},$Ae=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=a5(Obt,{next:Oh(1,m)}),hie(g,w,!1),Gy[w]=Mbt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!CM&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[Z2]||f["@@iterator"]||o&&f[o],v=!CM&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=bA(h.call(new e)))!==Object.prototype&&s.next&&(bA(s)!==gie&&(qy?qy(s,gie):rs(s[Z2])||Fv(s,Z2,Rbt)),hie(s,d,!0)),Pbt&&o=="values"&&p&&p.name!=="values"&&(Nbt?kl(f,"name","values"):(c=!0,v=function(){return As(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||i5({target:t,proto:!0,forced:CM||c},l)),f[Z2]!==v&&Fv(f,Z2,v,{name:o}),Gy[t]=v,l},Bbt=Lv.set,Lbt=Lv.getterFor("Array Iterator"),C4=$Ae(Array,"Array",(function(e,t){Bbt(this,{type:"Array Iterator",target:Kb(e),index:0,kind:t})}),(function(){var e=Lbt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Gy.Arguments=Gy.Array,AM("keys"),AM("values"),AM("entries");var Fbt=BAe.charAt,Ubt=Lv.set,$bt=Lv.getterFor("String Iterator");$Ae(String,"String",(function(e){Ubt(this,{type:"String Iterator",string:tv(e),index:0})}),(function(){var e,t=$bt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fbt(n,r),t.index+=e.length,{value:e,done:!1})}));var xM,Ak={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},SM=Mq("span").classList,vie=SM&&SM.constructor&&SM.constructor.prototype,zAe=vie===Object.prototype?void 0:vie,EM=vl("iterator"),mie=vl("toStringTag"),kM=C4.values,jAe=function(e,t){if(e){if(e[EM]!==kM)try{kl(e,EM,kM)}catch{e[EM]=kM}if(e[mie]||kl(e,mie,t),Ak[t]){for(var n in C4)if(e[n]!==C4[n])try{kl(e,n,C4[n])}catch{e[n]=C4[n]}}}};for(var TM in Ak)jAe(no[TM]&&no[TM].prototype,TM);jAe(zAe,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
- Sorry, wangEditor V5+ versions do not support IE browser.`),yie(),bie()):global&&(!((xM=global.navigator)===null||xM===void 0)&&xM.userAgent.match("QQBrowser"))&&(yie(),bie());function yie(){typeof globalThis>"u"&&(window.globalThis=window)}function bie(){P1t===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var wie,Ck=Array.isArray||function(e){return Zg(e)=="Array"},HAe=function(){},zbt=[],WAe=Vb("Reflect","construct"),jq=/^\s*(?:class|function)\b/,jbt=Fi(jq.exec),Hbt=!jq.exec(HAe),X2=function(e){if(!Ss(e))return!1;try{return WAe(HAe,zbt,e),!0}catch{return!1}},Wbt=!WAe||$l((function(){var e;return X2(X2.call)||!X2(Object)||!X2((function(){e=!0}))||e}))?function(e){if(!Ss(e))return!1;switch(n5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Hbt||!!jbt(jq,bAe(e))}:X2,Vbt=Ks("species"),Aie=po.Array,VAe=function(e,t){return new((function(n){var r;return Ck(n)&&(r=n.constructor,(Wbt(r)&&(r===Aie||Ck(r.prototype))||Lu(r)&&(r=r[Vbt])===null)&&(r=void 0)),r===void 0?Aie:r})(e))(t===0?0:t)},qbt=Ks("species"),qAe=Ks("isConcatSpreadable"),Cie=po.TypeError,Gbt=rk>=51||!$l((function(){var e=[];return e[qAe]=!1,e.concat()[0]!==e})),Kbt=(wie="concat",rk>=51||!$l((function(){var e=[];return(e.constructor={})[qbt]=function(){return{foo:1}},e[wie](Boolean).foo!==1}))),Qbt=function(e){if(!Lu(e))return!1;var t=e[qAe];return t!==void 0?!!t:Ck(e)};Cf({target:"Array",proto:!0,forced:!Gbt||!Kbt},{concat:function(e){var t,n,r,o,i,a=XC(this),s=VAe(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(Qbt(i=t===-1?a:arguments[t])){if(l+(o=e5(i))>9007199254740991)throw Cie("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&zF(s,l,i[n])}else{if(l>=9007199254740991)throw Cie("Maximum allowed index exceeded");zF(s,l++,i)}return s.length=l,s}});var xie=xq.f,Sie=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GAe={f:function(e){return Sie&&Zg(e)=="Window"?(function(t){try{return xie(t)}catch{return vAe(Sie)}})(e):xie(tf(e))}},Ybt=Fi([].slice),Hq={f:Ks},Zbt=N0.f,Aa=function(e){var t=Xl.Symbol||(Xl.Symbol={});zo(t,e)||Zbt(t,e,{value:Hq.f(e)})},Eie=Fi([].push),Xbt=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=XC(l),h=cAe(v),g=Aq(u,d),y=e5(h),m=0,b=c||VAe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Eie(w,f)}else switch(e){case 4:return!1;case 7:Eie(w,f)}return i?-1:r||o?o:w}},r7={forEach:Xbt(0)}.forEach,Cl=JD("hidden"),kie=Ks("toPrimitive"),Jbt=Gb.set,Tie=Gb.getterFor("Symbol"),Ac=Object.prototype,ch=po.Symbol,wh=ch&&ch.prototype,_ie=po.TypeError,_M=po.QObject,J2=Vb("JSON","stringify"),KAe=XD.f,dh=N0.f,QAe=GAe.f,e2t=mq.f,YAe=Fi([].push),ap=dm("symbols"),s5=dm("op-symbols"),DM=dm("string-to-symbol-registry"),IM=dm("symbol-to-string-registry"),t2t=dm("wks"),OM=!_M||!_M.prototype||!_M.prototype.findChild,iU=Pl&&$l((function(){return ip(dh({},"a",{get:function(){return dh(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=KAe(Ac,t);r&&delete Ac[t],dh(e,t,n),r&&e!==Ac&&dh(Ac,t,r)}:dh,MM=function(e,t){var n=ap[e]=ip(wh);return Jbt(n,{type:"Symbol",tag:e,description:t}),Pl||(n.description=t),n},xk=function(e,t,n){e===Ac&&xk(s5,t,n),du(e);var r=qb(t);return du(n),zo(ap,r)?(n.enumerable?(zo(e,Cl)&&e[Cl][r]&&(e[Cl][r]=!1),n=ip(n,{enumerable:Tc(0,!1)})):(zo(e,Cl)||dh(e,Cl,Tc(1,{})),e[Cl][r]=!0),iU(e,r,n)):dh(e,r,n)},Die=function(e,t){du(e);var n=tf(t),r=Sq(n).concat(aU(n));return r7(r,(function(o){Pl&&!su(ZAe,n,o)||xk(e,o,n[o])})),e},ZAe=function(e){var t=qb(e),n=su(e2t,this,t);return!(this===Ac&&zo(ap,t)&&!zo(s5,t))&&(!(n||!zo(this,t)||!zo(ap,t)||zo(this,Cl)&&this[Cl][t])||n)},Iie=function(e,t){var n=tf(e),r=qb(t);if(n!==Ac||!zo(ap,r)||zo(s5,r)){var o=KAe(n,r);return!o||!zo(ap,r)||zo(n,Cl)&&n[Cl][r]||(o.enumerable=!0),o}},Oie=function(e){var t=QAe(tf(e)),n=[];return r7(t,(function(r){zo(ap,r)||zo(t5,r)||YAe(n,r)})),n},aU=function(e){var t=e===Ac,n=QAe(t?s5:tf(e)),r=[];return r7(n,(function(o){!zo(ap,o)||t&&!zo(Ac,o)||YAe(r,ap[o])})),r};if(ud||(wh=(ch=function(){if(gA(wh,this))throw _ie("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?vA(arguments[0]):void 0,t=ik(e),n=function(r){this===Ac&&su(n,s5,r),zo(this,Cl)&&zo(this[Cl],t)&&(this[Cl][t]=!1),iU(this,t,Tc(1,r))};return Pl&&OM&&iU(Ac,t,{configurable:!0,set:n}),MM(t,e)}).prototype,fk(wh,"toString",(function(){return Tie(this).tag})),fk(ch,"withoutSetter",(function(e){return MM(ik(e),e)})),mq.f=ZAe,N0.f=xk,XD.f=Iie,xq.f=GAe.f=Oie,f8.f=aU,Hq.f=function(e){return MM(Ks(e),e)},Pl&&dh(wh,"description",{configurable:!0,get:function(){return Tie(this).description}})),Cf({global:!0,wrap:!0,forced:!ud,sham:!ud},{Symbol:ch}),r7(Sq(t2t),(function(e){Aa(e)})),Cf({target:"Symbol",stat:!0,forced:!ud},{for:function(e){var t=vA(e);if(zo(DM,t))return DM[t];var n=ch(t);return DM[t]=n,IM[n]=t,n},keyFor:function(e){if(!sy(e))throw _ie(e+" is not a symbol");if(zo(IM,e))return IM[e]},useSetter:function(){OM=!0},useSimple:function(){OM=!1}}),Cf({target:"Object",stat:!0,forced:!ud,sham:!Pl},{create:function(e,t){return t===void 0?ip(e):Die(ip(e),t)},defineProperty:xk,defineProperties:Die,getOwnPropertyDescriptor:Iie}),Cf({target:"Object",stat:!0,forced:!ud},{getOwnPropertyNames:Oie,getOwnPropertySymbols:aU}),Cf({target:"Object",stat:!0,forced:$l((function(){f8.f(1)}))},{getOwnPropertySymbols:function(e){return f8.f(XC(e))}}),J2){var n2t=!ud||$l((function(){var e=ch();return J2([e])!="[null]"||J2({a:e})!="{}"||J2(Object(e))!="{}"}));Cf({target:"JSON",stat:!0,forced:n2t},{stringify:function(e,t,n){var r=Ybt(arguments),o=t;if((Lu(t)||e!==void 0)&&!sy(e))return Ck(t)||(t=function(i,a){if(Ss(o)&&(a=su(o,this,i,a)),!sy(a))return a}),r[1]=t,lAe(J2,null,r)}})}if(!wh[kie]){var r2t=wh.valueOf;fk(wh,kie,(function(e){return su(r2t,this)}))}pk(ch,"Symbol"),t5[Cl]=!0,Aa("asyncIterator"),Aa("hasInstance"),Aa("isConcatSpreadable"),Aa("iterator"),Aa("match"),Aa("matchAll"),Aa("replace"),Aa("search"),Aa("species"),Aa("split"),Aa("toPrimitive"),Aa("toStringTag"),Aa("unscopables"),pk(po.JSON,"JSON",!0);var o2t=Xl.Symbol;Aa("asyncDispose"),Aa("dispose"),Aa("matcher"),Aa("metadata"),Aa("observable"),Aa("patternMatch"),Aa("replaceAll");var t6=o2t,i2t=Hq.f("iterator"),a2t=cm((function(e){function t(n){return typeof t6=="function"&&typeof i2t=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof t6=="function"&&r.constructor===t6&&r!==t6.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),s2t=$vt(a2t),XAe=Pq.f,l2t=hs((function(){XAe(1)}));if(i5({target:"Object",stat:!0,forced:!zd||l2t,sham:!zd},{getOwnPropertyDescriptor:function(e,t){return XAe(Kb(e),t)}}),(typeof global>"u"?"undefined":s2t(global))==="object"){var u2t=Object.getOwnPropertyDescriptor(global,"window");global.window&&!u2t.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Mie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ns(e){var t,n;return Mie(e)!==!1&&((t=e.constructor)===void 0||Mie(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function bc(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Uv(e){return!!e&&!!e[pu]}function $v(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===g2t})(e)||Array.isArray(e)||!!e[$ie]||!!e.constructor[$ie]||Wq(e)||Vq(e))}function AA(e,t,n){n===void 0&&(n=!1),Ky(e)===0?(n?Object.keys:Yq)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,o){return t(o,r,e)}))}function Ky(e){var t=e[pu];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Wq(e)?2:Vq(e)?3:0}function sU(e,t){return Ky(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function JAe(e,t,n){var r=Ky(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Wq(e){return p2t&&e instanceof Map}function Vq(e){return h2t&&e instanceof Set}function mg(e){return e.o||e.t}function qq(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=v2t(e);delete t[pu];for(var n=Yq(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Gq(e,t){return t===void 0&&(t=!1),Kq(e)||Uv(e)||!$v(e)||(Ky(e)>1&&(e.set=e.add=e.clear=e.delete=c2t),Object.freeze(e),t&&AA(e,(function(n,r){return Gq(r,!0)}),!0)),e}function c2t(){bc(2)}function Kq(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zf(e){var t=m2t[e];return t||bc(18,e),t}function Pie(){return CA}function PM(e,t){t&&(zf("Patches"),e.u=[],e.s=[],e.v=t)}function Sk(e){lU(e),e.p.forEach(d2t),e.p=null}function lU(e){e===CA&&(CA=e.l)}function Nie(e){return CA={p:[],l:CA,h:e,m:!0,_:0}}function d2t(e){var t=e[pu];t.i===0||t.i===1?t.j():t.O=!0}function NM(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||zf("ES5").S(t,e,r),r?(n[pu].P&&(Sk(t),bc(4)),$v(e)&&(e=Ek(t,e),t.l||kk(t,e)),t.u&&zf("Patches").M(n[pu],e,t.u,t.s)):e=Ek(t,n,[]),Sk(t),t.u&&t.v(t.u,t.s),e!==eCe?e:void 0}function Ek(e,t,n){if(Kq(t))return t;var r=t[pu];if(!r)return AA(t,(function(i,a){return Rie(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return kk(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=qq(r.k):r.o;AA(r.i===3?new Set(o):o,(function(i,a){return Rie(e,r,o,i,a,n)})),kk(e,o,!1),n&&e.u&&zf("Patches").R(r,n,e.u,e.s)}return r.o}function Rie(e,t,n,r,o,i){if(Uv(o)){var a=Ek(e,o,i&&t&&t.i!==3&&!sU(t.D,r)?i.concat(r):void 0);if(JAe(n,r,a),!Uv(a))return;e.m=!1}if($v(o)&&!Kq(o)){if(!e.h.F&&e._<1)return;Ek(e,o),t&&t.A.l||kk(e,o)}}function kk(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Gq(t,n)}function RM(e,t){var n=e[pu];return(n?mg(n):e)[t]}function Bie(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function uU(e){e.P||(e.P=!0,e.l&&uU(e.l))}function BM(e){e.o||(e.o=qq(e.t))}function cU(e,t,n){var r=Wq(t)?zf("MapSet").N(t,n):Vq(t)?zf("MapSet").T(t,n):e.g?(function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Pie(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=y8;a&&(l=[s],u=b8);var d=Proxy.revocable(l,u),c=d.revoke,f=d.proxy;return s.k=f,s.j=c,f})(t,n):zf("ES5").J(t,n);return(n?n.A:Pie()).p.push(r),r}function f2t(e){return Uv(e)||bc(22,e),(function t(n){if(!$v(n))return n;var r,o=n[pu],i=Ky(n);if(o){if(!o.P&&(o.i<4||!zf("ES5").K(o)))return o.t;o.I=!0,r=Lie(n,i),o.I=!1}else r=Lie(n,i);return AA(r,(function(a,s){o&&(function(l,u){return Ky(l)===2?l.get(u):l[u]})(o.t,a)===s||JAe(r,a,t(s))})),i===3?new Set(r):r})(e)}function Lie(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qq(e)}var Fie,CA,Qq=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",p2t=typeof Map<"u",h2t=typeof Set<"u",Uie=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",eCe=Qq?Symbol.for("immer-nothing"):((Fie={})["immer-nothing"]=!0,Fie),$ie=Qq?Symbol.for("immer-draftable"):"__$immer_draftable",pu=Qq?Symbol.for("immer-state"):"__$immer_state",g2t=""+Object.prototype.constructor,Yq=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,v2t=Object.getOwnPropertyDescriptors||function(e){var t={};return Yq(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},m2t={},y8={get:function(e,t){if(t===pu)return e;var n=mg(e);if(!sU(n,t))return(function(o,i,a){var s,l=Bie(i,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0})(e,n,t);var r=n[t];return e.I||!$v(r)?r:r===RM(e.t,t)?(BM(e),e.o[t]=cU(e.A.h,r,e)):r},has:function(e,t){return t in mg(e)},ownKeys:function(e){return Reflect.ownKeys(mg(e))},set:function(e,t,n){var r=Bie(mg(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=RM(mg(e),t),i=o?.[pu];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if((function(a,s){return a===s?a!==0||1/a==1/s:a!=a&&s!=s})(n,o)&&(n!==void 0||sU(e.t,t)))return!0;BM(e),uU(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return RM(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,BM(e),uU(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=mg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){bc(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bc(12)}},b8={};AA(y8,(function(e,t){b8[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),b8.deleteProperty=function(e,t){return y8.deleteProperty.call(this,e[0],t)},b8.set=function(e,t,n){return y8.set.call(this,e[0],t,n,e[0])};var y2t=(function(){function e(n){var r=this;this.g=Uie,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var l=r;return function(p){var v=this;p===void 0&&(p=s);for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return l.produce(p,(function(m){var b;return(b=i).call.apply(b,[v,m].concat(g))}))}}var u;if(typeof i!="function"&&bc(6),a!==void 0&&typeof a!="function"&&bc(7),$v(o)){var d=Nie(r),c=cU(r,o,void 0),f=!0;try{u=i(c),f=!1}finally{f?Sk(d):lU(d)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return PM(d,a),NM(p,d)}),(function(p){throw Sk(d),p})):(PM(d,a),NM(u,d))}if(!o||typeof o!="object")return(u=i(o))===eCe?void 0:(u===void 0&&(u=o),r.F&&Gq(u,!0),u);bc(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),c=1;c<u;c++)d[c-1]=arguments[c];return r.produceWithPatches(l,(function(f){return o.apply(void 0,[f].concat(d))}))}:[r.produce(o,i,(function(l,u){a=l,s=u})),a,s];var a,s},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){$v(n)||bc(8),Uv(n)&&(n=f2t(n));var r=Nie(this),o=cU(this,n,void 0);return o[pu].C=!0,lU(r),o},t.finishDraft=function(n,r){var o=(n&&n[pu]).A;return PM(o,r),NM(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Uie&&bc(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=zf("Patches").$;return Uv(n)?a(n,r):this.produce(n,(function(s){return a(s,r)}))},e})(),Yl=new y2t,o7=Yl.produce;Yl.produceWithPatches.bind(Yl),Yl.setAutoFreeze.bind(Yl),Yl.setUseProxies.bind(Yl),Yl.applyPatches.bind(Yl);var zie=Yl.createDraft.bind(Yl),jie=Yl.finishDraft.bind(Yl);function nf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tk=new WeakMap,ew=new WeakMap,Hie=new WeakMap,Wie=new WeakMap,Vie=new WeakMap,qie=new WeakMap;function Gie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function n6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gie(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gie(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var b2t=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Xe.pathRefs(e))Q2t.transform(n,t);for(var r of Xe.pointRefs(e))Y2t.transform(r,t);for(var o of Xe.rangeRefs(e))X2t.transform(o,t);var i=new Set,a=[],s=f=>{if(f){var p=f.join(",");i.has(p)||(i.add(p),a.push(f))}},l=Tk.get(e)||[],u=w2t(t);for(var d of l)s(Ht.transform(d,t));for(var c of u)s(c);Tk.set(e,a),Zt.transform(e,t),e.operations.push(t),Xe.normalize(e),t.type==="set_selection"&&(e.marks=null),ew.get(e)||(ew.set(e,!0),Promise.resolve().then((()=>{ew.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(pn.isExpanded(r))Zt.setNodes(e,{[t]:n},{match:ir.isText,split:!0});else{var o=n6(n6({},Xe.marks(e)||{}),{},{[t]:n});e.marks=o,ew.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&Zt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&Zt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&pn.isExpanded(n)&&Zt.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Qn.fragment(e,t):[]},insertBreak:()=>{Zt.splitNodes(e,{always:!0})},insertFragment:t=>{Zt.insertFragment(e,t)},insertNode:t=>{Zt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=n6({text:t},r);Zt.insertNodes(e,o)}else Zt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ir.isText(n))if(kr.isElement(n)&&n.children.length===0)Zt.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Xe.isEditor(n)&&kr.isElement(n)&&(e.isInline(n)||n.children.length===0||ir.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=Qn.get(e,r);if(!ir.isText(s)){var l=n.children[a],u=s.children[i-1],d=a===n.children.length-1;(ir.isText(l)||kr.isElement(l)&&e.isInline(l))!==o?(Zt.removeNodes(e,{at:r.concat(i),voids:!0}),i--):kr.isElement(l)?e.isInline(l)&&(u!=null&&ir.isText(u)?d&&(Zt.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Zt.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):u!=null&&ir.isText(u)&&(ir.equals(l,u,{loose:!0})?(Zt.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):u.text===""?(Zt.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):l.text===""&&(Zt.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(pn.isExpanded(n))Zt.unsetNodes(e,t,{match:ir.isText,split:!0});else{var r=n6({},Xe.marks(e)||{});delete r[t],e.marks=r,ew.get(e)||e.onChange()}}};return e},w2t=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ht.levels(t);case"insert_node":var{node:n,path:r}=e,o=Ht.levels(r),i=ir.isText(n)?[]:Array.from(Qn.nodes(n),(w=>{var[,A]=w;return r.concat(A)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Ht.ancestors(a),Ht.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(Ht.equals(s,l))return[];var u=[],d=[];for(var c of Ht.ancestors(s)){var f=Ht.transform(c,e);u.push(f)}for(var p of Ht.ancestors(l)){var v=Ht.transform(p,e);d.push(v)}var h=d[d.length-1],g=l[l.length-1],y=h.concat(g);return[...u,...d,y];case"remove_node":var{path:m}=e;return[...Ht.ancestors(m)];case"split_node":var{path:b}=e;return[...Ht.levels(b),Ht.next(b)];default:return[]}};function sp(e,t){if(e==null)return{};var n,r,o=(function(a,s){if(a==null)return{};var l,u,d={},c=Object.keys(a);for(u=0;u<c.length;u++)l=c[u],s.indexOf(l)>=0||(d[l]=a[l]);return d})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uo,dU=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?E2t(e):e,o=uo.None,i=uo.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var d=L2t(l,u);if([o,i]=n?[i,d]:[d,o],L1(o,uo.ZWJ)&&L1(i,uo.ExtPict)&&!z2t(n?e.substring(0,a):e.substring(0,e.length-a))||L1(o,uo.RI)&&L1(i,uo.RI)&&!(s=s!==null?!s:!!n||H2t(e.substring(0,e.length-a)))||o!==uo.None&&i!==uo.None&&U2t(o,i))break;a+=l.length}return a||1},A2t=/\s/,C2t=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,x2t=/['\u2018\u2019]/,fU=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},S2t=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(A2t.test(t))return!1;if(x2t.test(t)){var o=dU(n,r),[i,a]=fU(n,o,r);if(e(i,a,r))return!0}return!C2t.test(t)},E2t=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(T2t(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(k2t(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},k2t=e=>e>=55296&&e<=56319,T2t=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(uo||(uo={}));var _2t=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,D2t=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,I2t=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,O2t=/^[\u1100-\u115F\uA960-\uA97C]$/,M2t=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,P2t=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,N2t=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,R2t=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,B2t=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,L2t=(e,t)=>{var n=uo.Any;return e.search(_2t)!==-1&&(n|=uo.Extend),t===8205&&(n|=uo.ZWJ),t>=127462&&t<=127487&&(n|=uo.RI),e.search(D2t)!==-1&&(n|=uo.Prepend),e.search(I2t)!==-1&&(n|=uo.SpacingMark),e.search(O2t)!==-1&&(n|=uo.L),e.search(M2t)!==-1&&(n|=uo.V),e.search(P2t)!==-1&&(n|=uo.T),e.search(N2t)!==-1&&(n|=uo.LV),e.search(R2t)!==-1&&(n|=uo.LVT),e.search(B2t)!==-1&&(n|=uo.ExtPict),n};function L1(e,t){return(e&t)!=0}var F2t=[[uo.L,uo.L|uo.V|uo.LV|uo.LVT],[uo.LV|uo.V,uo.V|uo.T],[uo.LVT|uo.T,uo.T],[uo.Any,uo.Extend|uo.ZWJ],[uo.Any,uo.SpacingMark],[uo.Prepend,uo.Any],[uo.ZWJ,uo.ExtPict],[uo.RI,uo.RI]];function U2t(e,t){return F2t.findIndex((n=>L1(e,n[0])&&L1(t,n[1])))===-1}var $2t=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,z2t=e=>e.search($2t)!==-1,j2t=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,H2t=e=>{var t=e.match(j2t);return t!==null&&t[0].length/2%2==1},Kie=e=>Ns(e)&&Qn.isNodeList(e.children)&&!Xe.isEditor(e),kr={isAncestor:e=>Ns(e)&&Qn.isNodeList(e.children),isElement:Kie,isElementList:e=>Array.isArray(e)&&e.every((t=>kr.isElement(t))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Kie(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},W2t=["text"],V2t=["text"];function Qie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function jm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qie(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qie(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Yie=new WeakMap,Xe={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Xe.path(e,o),s=r==="lowest";for(var[l,u]of Xe.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!ir.isText(l)&&!Ht.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:Xe.point(e,t,{edge:"end"}),focus:Xe.end(e,[])},{distance:i=1}=r,a=0;for(var s of Xe.positions(e,jm(jm({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:Xe.start(e,[]),focus:Xe.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of Xe.positions(e,jm(jm({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Xe.start(e,t),Xe.end(e,t)],end:(e,t)=>Xe.point(e,t,{edge:"end"}),first(e,t){var n=Xe.path(e,t,{edge:"start"});return Xe.node(e,n)},fragment(e,t){var n=Xe.range(e,t);return Qn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((n=>Xe.isBlock(e,n))),hasInlines:(e,t)=>t.children.some((n=>ir.isText(n)||Xe.isInline(e,n))),hasTexts:(e,t)=>t.children.every((n=>ir.isText(n))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>kr.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ns(e))return!1;var t=Yie.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||Ns(e.marks))&&(e.selection===null||pn.isRange(e.selection))&&Qn.isNodeList(e.children)&&Ah.isOperationList(e.operations);return Yie.set(e,n),n},isEnd(e,t,n){var r=Xe.end(e,n);return mo.equals(t,r)},isEdge:(e,t,n)=>Xe.isStart(e,t,n)||Xe.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&ir.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>kr.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Hie.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=Xe.start(e,n);return mo.equals(t,r)},isVoid:(e,t)=>kr.isElement(t)&&e.isVoid(t),last(e,t){var n=Xe.path(e,t,{edge:"end"});return Xe.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Xe.path(e,t,n);return[Qn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],s=Xe.path(e,n);for(var[l,u]of Qn.levels(e,s))if(i(l,u)&&(a.push([l,u]),!o&&Xe.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(pn.isExpanded(n)){var[r]=Xe.nodes(e,{match:ir.isText});if(r){var[o]=r;return sp(o,W2t)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Xe.leaf(e,a);if(i.offset===0){var l=Xe.previous(e,{at:a,match:ir.isText}),u=Xe.above(e,{match:p=>Xe.isBlock(e,p)});if(l&&u){var[d,c]=l,[,f]=u;Ht.isAncestor(f,c)&&(s=d)}}return sp(s,V2t)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Xe.after(e,i,{voids:r});if(a){var[,s]=Xe.last(e,[]),l=[a.path,s];if(Ht.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(Ht.isPath(i)){var[u]=Xe.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Xe.nodes(e,{at:l,match:o,mode:n,voids:r});return d}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Xe.path(e,t,n);return[Qn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(q2t.isSpan(n))l=n[0],u=n[1];else{var d=Xe.path(e,n,{edge:"start"}),c=Xe.path(e,n,{edge:"end"});l=i?c:d,u=i?d:c}var f,p=Qn.nodes(e,{reverse:i,from:l,to:u,pass:b=>{var[w]=b;return!a&&Xe.isVoid(e,w)}}),v=[];for(var[h,g]of p){var y=f&&Ht.compare(g,f[1])===0;if(r!=="highest"||!y){if(s(h,g))if(r==="lowest"&&y)f=[h,g];else{var m=r==="lowest"?f:[h,g];m&&(o?v.push(m):yield m),f=[h,g]}else if(o&&!y&&ir.isText(h))return}}r==="lowest"&&f&&(o?v.push(f):yield f),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>Tk.get(i)||[];if(Xe.isNormalizing(e)){if(n){var o=Array.from(Qn.nodes(e),(i=>{var[,a]=i;return a}));Tk.set(e,o)}r(e).length!==0&&Xe.withoutNormalizing(e,(()=>{for(var i of r(e))if(Qn.has(e,i)){var a=Xe.node(e,i),[s,l]=a;kr.isElement(s)&&s.children.length===0&&e.normalizeNode(a)}for(var u=42*r(e).length,d=0;r(e).length!==0;){if(d>u)throw new Error(`
- Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var c=r(e).pop();if(Qn.has(e,c)){var f=Xe.node(e,c);e.normalizeNode(f)}d++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Xe.path(e,t,n),o=Ht.parent(r);return Xe.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Ht.isPath(t)){if(o==="start"){var[,i]=Qn.first(e,t);t=i}else if(o==="end"){var[,a]=Qn.last(e,t);t=a}}return pn.isRange(t)&&(t=o==="start"?pn.start(t):o==="end"?pn.end(t):Ht.common(t.anchor.path,t.focus.path)),mo.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Qn.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Xe.pathRefs(e).delete(o),o.current=null,i}};return Xe.pathRefs(e).add(o),o},pathRefs(e){var t=Wie.get(e);return t||(t=new Set,Wie.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Ht.isPath(t)){var o;if(r==="end"){var[,i]=Qn.last(e,t);o=i}else{var[,a]=Qn.first(e,t);o=a}var s=Qn.get(e,o);if(!ir.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?s.text.length:0}}if(pn.isRange(t)){var[l,u]=pn.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Xe.pointRefs(e).delete(o),o.current=null,i}};return Xe.pointRefs(e).add(o),o},pointRefs(e){var t=Vie.get(e);return t||(t=new Set,Vie.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Xe.range(e,n),[s,l]=pn.edges(a),u=o?l:s,d=!1,c="",f=0,p=0,v=0;for(var[h,g]of Xe.nodes(e,{at:n,reverse:o,voids:i})){if(kr.isElement(h)){if(!i&&e.isVoid(h)){yield Xe.start(e,g);continue}if(e.isInline(h))continue;if(Xe.hasInlines(e,h)){var y=Ht.isAncestor(g,l.path)?l:Xe.end(e,g),m=Ht.isAncestor(g,s.path)?s:Xe.start(e,g);c=Xe.string(e,{anchor:m,focus:y},{voids:i}),d=!0}}if(ir.isText(h)){var b=Ht.equals(g,u.path);for(b?(p=o?u.offset:h.text.length-u.offset,v=u.offset):(p=h.text.length,v=o?p:0),(b||d||r==="offset")&&(yield{path:g,offset:v},d=!1);;){if(f===0){if(c==="")break;f=w(c,r,o),c=fU(c,f,o)[1]}if(v=o?v-f:v+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:v}}}}}function w(A,S,k){return S==="character"?dU(A,k):S==="word"?(function(M){for(var D=arguments.length>1&&arguments[1]!==void 0&&arguments[1],P=0,O=!1;M.length>0;){var _=dU(M,D),[B,N]=fU(M,_,D);if(S2t(B,N,D))O=!0,P+=_;else{if(O)break;P+=_}M=N}return P})(A,k):S==="line"||S==="block"?A.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Xe.before(e,i,{voids:r});if(a){var[,s]=Xe.first(e,[]),l=[a.path,s];if(Ht.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Ht.isPath(i)){var[u]=Xe.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Xe.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return d}}},range:(e,t,n)=>pn.isRange(t)&&!n?t:{anchor:Xe.start(e,t),focus:Xe.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Xe.rangeRefs(e).delete(o),o.current=null,i}};return Xe.rangeRefs(e).add(o),o},rangeRefs(e){var t=qie.get(e);return t||(t=new Set,qie.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Hie.set(e,t)},start:(e,t)=>Xe.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=Xe.range(e,t),[i,a]=pn.edges(o),s="";for(var[l,u]of Xe.nodes(e,{at:o,match:ir.isText,voids:r})){var d=l.text;Ht.equals(u,a.path)&&(d=d.slice(0,a.offset)),Ht.equals(u,i.path)&&(d=d.slice(i.offset)),s+=d}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=pn.edges(t);if(o.offset!==0||i.offset!==0||pn.isCollapsed(t))return t;var a=Xe.above(e,{at:i,match:f=>Xe.isBlock(e,f)}),s=a?a[1]:[],l={anchor:Xe.start(e,[]),focus:i},u=!0;for(var[d,c]of Xe.nodes(e,{at:l,match:ir.isText,reverse:!0,voids:r}))if(u)u=!1;else if(d.text!==""||Ht.isBefore(c,s)){i={path:c,offset:d.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xe.above(e,jm(jm({},t),{},{match:n=>Xe.isVoid(e,n)}))},withoutNormalizing(e,t){var n=Xe.isNormalizing(e);Xe.setNormalizing(e,!1);try{t()}finally{Xe.setNormalizing(e,n)}Xe.normalize(e)}},q2t={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(Ht.isPath)},G2t=["children"],K2t=["text"],Zie=new WeakMap,Qn={ancestor(e,t){var n=Qn.get(e,t);if(ir.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of Ht.ancestors(t,n)){var o=[Qn.ancestor(e,r),r];yield o}},child(e,t){if(ir.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Qn.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Qn.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}},common(e,t,n){var r=Ht.common(t,n);return[Qn.get(e,r),r]},descendant(e,t){var n=Qn.get(e,t);if(Xe.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Qn.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Qn.nodes(e,t))kr.isElement(n)&&(yield[n,r])},extractProps:e=>kr.isAncestor(e)?sp(e,G2t):sp(e,K2t),first(e,t){for(var n=t.slice(),r=Qn.get(e,n);r&&!ir.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ir.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=o7({children:e.children},(r=>{var[o,i]=pn.edges(t),a=Qn.nodes(r,{reverse:!0,pass:f=>{var[,p]=f;return!pn.includes(t,p)}});for(var[,s]of a){if(!pn.includes(t,s)){var l=Qn.parent(r,s),u=s[s.length-1];l.children.splice(u,1)}if(Ht.equals(s,i.path)){var d=Qn.leaf(r,s);d.text=d.text.slice(0,i.offset)}if(Ht.equals(s,o.path)){var c=Qn.leaf(r,s);c.text=c.text.slice(o.offset)}}Xe.isEditor(r)&&(r.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ir.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ir.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>ir.isText(e)||kr.isElement(e)||Xe.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Zie.get(e);if(t!==void 0)return t;var n=e.every((r=>Qn.isNode(r)));return Zie.set(e,n),n},last(e,t){for(var n=t.slice(),r=Qn.get(e,n);r&&!ir.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Qn.get(e,t);if(!ir.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of Ht.levels(t,n)){var o=Qn.get(e,r);yield[o,r]}},matches:(e,t)=>kr.isElement(e)&&kr.isElementProps(t)&&kr.matches(e,t)||ir.isText(e)&&ir.isTextProps(t)&&ir.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?Ht.isBefore(s,i):Ht.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||ir.isText(l)||l.children.length===0||n!=null&&n([l,s])!==!1){if(s.length===0)break;if(!r){var u=Ht.next(s);if(Qn.has(e,u)){s=u,l=Qn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=Ht.previous(s),l=Qn.get(e,s)):(s=Ht.parent(s),l=Qn.get(e,s),a.add(l))}else{a.add(l);var d=r?l.children.length-1:0;Ht.isAncestor(s,o)&&(d=o[s.length]),s=s.concat(d),l=Qn.get(e,s)}},parent(e,t){var n=Ht.parent(t),r=Qn.get(e,n);if(ir.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>ir.isText(e)?e.text:e.children.map(Qn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Qn.nodes(e,t))ir.isText(n)&&(yield[n,r])}};function Xie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xie(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xie(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Ah={isNodeOperation:e=>Ah.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ns(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ht.isPath(e.path)&&Qn.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Ht.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Ht.isPath(e.path)&&Ns(e.properties);case"move_node":return Ht.isPath(e.path)&&Ht.isPath(e.newPath);case"set_node":return Ht.isPath(e.path)&&Ns(e.properties)&&Ns(e.newProperties);case"set_selection":return e.properties===null&&pn.isRange(e.newProperties)||e.newProperties===null&&pn.isRange(e.properties)||Ns(e.properties)&&Ns(e.newProperties);case"split_node":return Ht.isPath(e.path)&&typeof e.position=="number"&&Ns(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((t=>Ah.isOperation(t))),isSelectionOperation:e=>Ah.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ah.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Ba(Ba({},e),{},{type:"remove_node"});case"insert_text":return Ba(Ba({},e),{},{type:"remove_text"});case"merge_node":return Ba(Ba({},e),{},{type:"split_node",path:Ht.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ht.equals(t,n))return e;if(Ht.isSibling(n,t))return Ba(Ba({},e),{},{path:t,newPath:n});var r=Ht.transform(n,e),o=Ht.transform(Ht.next(n),e);return Ba(Ba({},e),{},{path:r,newPath:o});case"remove_node":return Ba(Ba({},e),{},{type:"insert_node"});case"remove_text":return Ba(Ba({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Ba(Ba({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return Ba(Ba({},e),{},s==null?{properties:l,newProperties:null}:l==null?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Ba(Ba({},e),{},{type:"merge_node",path:Ht.next(e.path)})}}},Ht={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=Ht.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ht.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ht.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ht.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((n,r)=>n===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>Ht.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&Ht.compare(e,t)===0,isBefore:(e,t)=>Ht.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&Ht.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&Ht.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&Ht.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&Ht.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ht.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ht.isAncestor(t,e)&&!Ht.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return o7(e,(r=>{var{affinity:o="forward"}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(Ht.equals(i,r)||Ht.endsBefore(i,r)||Ht.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ht.equals(a,r)||Ht.isAncestor(a,r))return null;Ht.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;Ht.equals(s,r)||Ht.endsBefore(s,r)?r[s.length-1]-=1:Ht.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:d}=t;if(Ht.equals(u,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else Ht.endsBefore(u,r)?r[u.length-1]+=1:Ht.isAncestor(u,r)&&e[u.length]>=d&&(r[u.length-1]+=1,r[u.length]-=d);break;case"move_node":var{path:c,newPath:f}=t;if(Ht.equals(c,f))return;if(Ht.isAncestor(c,r)||Ht.equals(c,r)){var p=f.slice();return Ht.endsBefore(c,f)&&c.length<f.length&&(p[c.length-1]-=1),p.concat(r.slice(c.length))}Ht.isSibling(c,f)&&(Ht.isAncestor(f,r)||Ht.equals(f,r))?Ht.endsBefore(c,r)?r[c.length-1]-=1:r[c.length-1]+=1:Ht.endsBefore(f,r)||Ht.equals(f,r)||Ht.isAncestor(f,r)?(Ht.endsBefore(c,r)&&(r[c.length-1]-=1),r[f.length-1]+=1):Ht.endsBefore(c,r)&&(Ht.equals(f,r)&&(r[f.length-1]+=1),r[c.length-1]-=1)}}}))}},Q2t={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ht.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function Jie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function eae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jie(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jie(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var mo={compare(e,t){var n=Ht.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>mo.compare(e,t)===1,isBefore:(e,t)=>mo.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&Ht.equals(e.path,t.path),isPoint:e=>Ns(e)&&typeof e.offset=="number"&&Ht.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return o7(e,(r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=Ht.transform(i,t,n);break;case"insert_text":Ht.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":Ht.equals(t.path,i)&&(r.offset+=t.position),r.path=Ht.transform(i,t,n);break;case"remove_text":Ht.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(Ht.equals(t.path,i)||Ht.isAncestor(t.path,i))return null;r.path=Ht.transform(i,t,n);break;case"split_node":if(Ht.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=Ht.transform(i,t,eae(eae({},n),{},{affinity:"forward"})))}else r.path=Ht.transform(i,t,n)}}))}},Y2t={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=mo.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Z2t=["anchor","focus"];function tae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}var pn={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return pn.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=pn.edges(e);return t},equals:(e,t)=>mo.equals(e.anchor,t.anchor)&&mo.equals(e.focus,t.focus),includes(e,t){if(pn.isRange(t)){if(pn.includes(e,t.anchor)||pn.includes(e,t.focus))return!0;var[n,r]=pn.edges(e),[o,i]=pn.edges(t);return mo.isBefore(n,o)&&mo.isAfter(r,i)}var[a,s]=pn.edges(e),l=!1,u=!1;return mo.isPoint(t)?(l=mo.compare(t,a)>=0,u=mo.compare(t,s)<=0):(l=Ht.compare(t,a.path)>=0,u=Ht.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=sp(e,Z2t),[r,o]=pn.edges(e),[i,a]=pn.edges(t),s=mo.isBefore(r,i)?i:r,l=mo.isBefore(o,a)?o:a;return mo.isBefore(l,s)?null:(function(u){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?tae(Object(c),!0).forEach((function(f){nf(u,f,c[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(c)):tae(Object(c)).forEach((function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(c,f))}))}return u})({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return mo.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return mo.equals(t,n)},isExpanded:e=>!pn.isCollapsed(e),isForward:e=>!pn.isBackward(e),isRange:e=>Ns(e)&&mo.isPoint(e.anchor)&&mo.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=pn.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return o7(e,(r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var s=pn.isCollapsed(r);pn.isForward(r)?(o="forward",i=s?o:"backward"):(o="backward",i=s?o:"forward")}else a==="outward"?pn.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var l=mo.transform(r.anchor,t,{affinity:o}),u=mo.transform(r.focus,t,{affinity:i});if(!l||!u)return null;r.anchor=l,r.focus=u}))}},X2t={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=pn.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},tCe=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ns(r)&&Ns(o)){if(!tCe(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},J2t=["text"],ewt=["anchor","focus"];function nae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var ir={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return sp(i,J2t)}return tCe(r?o(e):e,r?o(t):t)},isText:e=>Ns(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every((t=>ir.isText(t))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ff({},e)];for(var r of t){var o=sp(r,ewt),[i,a]=pn.edges(r),s=[],l=0;for(var u of n){var{length:d}=u.text,c=l;if(l+=d,i.offset<=c&&a.offset>=l)Object.assign(u,o),s.push(u);else if(i.offset!==a.offset&&(i.offset===l||a.offset===c)||i.offset>l||a.offset<c||a.offset===c&&c!==0)s.push(u);else{var f=u,p=void 0,v=void 0;if(a.offset<l){var h=a.offset-c;v=ff(ff({},f),{},{text:f.text.slice(h)}),f=ff(ff({},f),{},{text:f.text.slice(0,h)})}if(i.offset>c){var g=i.offset-c;p=ff(ff({},f),{},{text:f.text.slice(0,g)}),f=ff(ff({},f),{},{text:f.text.slice(g)})}Object.assign(f,o),p&&s.push(p),s.push(f),v&&s.push(v)}}n=s}return n}};function rae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function tw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var twt={transform(e,t){e.children=zie(e.children);var n=e.selection&&zie(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:s}=i,l=Qn.parent(r,a),u=a[a.length-1];if(u>l.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(l.children.splice(u,0,s),o)for(var[d,c]of pn.points(o))o[c]=mo.transform(d,i);break;case"insert_text":var{path:f,offset:p,text:v}=i;if(v.length===0)break;var h=Qn.leaf(r,f),g=h.text.slice(0,p),y=h.text.slice(p);if(h.text=g+v+y,o)for(var[m,b]of pn.points(o))o[b]=mo.transform(m,i);break;case"merge_node":var{path:w}=i,A=Qn.get(r,w),S=Ht.previous(w),k=Qn.get(r,S),M=Qn.parent(r,w),D=w[w.length-1];if(ir.isText(A)&&ir.isText(k))k.text+=A.text;else{if(ir.isText(A)||ir.isText(k))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(A," ").concat(k));k.children.push(...A.children)}if(M.children.splice(D,1),o)for(var[P,O]of pn.points(o))o[O]=mo.transform(P,i);break;case"move_node":var{path:_,newPath:B}=i;if(Ht.isAncestor(_,B))throw new Error("Cannot move a path [".concat(_,"] to new path [").concat(B,"] because the destination is inside itself."));var N=Qn.get(r,_),q=Qn.parent(r,_),U=_[_.length-1];q.children.splice(U,1);var j=Ht.transform(_,i),H=Qn.get(r,Ht.parent(j)),G=j[j.length-1];if(H.children.splice(G,0,N),o)for(var[Z,$]of pn.points(o))o[$]=mo.transform(Z,i);break;case"remove_node":var{path:L}=i,W=L[L.length-1];if(Qn.parent(r,L).children.splice(W,1),o)for(var[ie,ee]of pn.points(o)){var te=mo.transform(ie,i);if(o!=null&&te!=null)o[ee]=te;else{var X=void 0,ue=void 0;for(var[ve,Me]of Qn.texts(r)){if(Ht.compare(Me,L)!==-1){ue=[ve,Me];break}X=[ve,Me]}var we=!1;X&&ue&&(we=Ht.equals(ue[1],L)?!Ht.hasPrevious(ue[1]):Ht.common(X[1],L).length<Ht.common(ue[1],L).length),X&&!we?(ie.path=X[1],ie.offset=X[0].text.length):ue?(ie.path=ue[1],ie.offset=0):o=null}}break;case"remove_text":var{path:he,offset:Te,text:Y}=i;if(Y.length===0)break;var be=Qn.leaf(r,he),De=be.text.slice(0,Te),pe=be.text.slice(Te+Y.length);if(be.text=De+pe,o)for(var[oe,ce]of pn.points(o))o[ce]=mo.transform(oe,i);break;case"set_node":var{path:Re,properties:Ee,newProperties:Le}=i;if(Re.length===0)throw new Error("Cannot set properties on the root node!");var Fe=Qn.get(r,Re);for(var Pe in Le){if(Pe==="children"||Pe==="text")throw new Error('Cannot set the "'.concat(Pe,'" property of nodes!'));var Ne=Le[Pe];Ne==null?delete Fe[Pe]:Fe[Pe]=Ne}for(var pt in Ee)Le.hasOwnProperty(pt)||delete Fe[pt];break;case"set_selection":var{newProperties:Rt}=i;if(Rt==null)o=Rt;else{if(o==null){if(!pn.isRange(Rt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Rt)," when there is no current selection."));o=tw({},Rt)}for(var Bt in Rt){var en=Rt[Bt];if(en==null){if(Bt==="anchor"||Bt==="focus")throw new Error('Cannot remove the "'.concat(Bt,'" selection property'));delete o[Bt]}else o[Bt]=en}}break;case"split_node":var{path:Wt,position:Ut,properties:ct}=i;if(Wt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Wt,"] because the root node cannot be split."));var _t,st=Qn.get(r,Wt),Ot=Qn.parent(r,Wt),Ae=Wt[Wt.length-1];if(ir.isText(st)){var je=st.text.slice(0,Ut),at=st.text.slice(Ut);st.text=je,_t=tw(tw({},ct),{},{text:at})}else{var gt=st.children.slice(0,Ut),nn=st.children.slice(Ut);st.children=gt,_t=tw(tw({},ct),{},{children:nn})}if(Ot.children.splice(Ae+1,0,_t),o)for(var[Tn,He]of pn.points(o))o[He]=mo.transform(Tn,i)}return o})(e,n,t)}finally{e.children=jie(e.children),e.selection=n?Uv(n)?jie(n):n:null}}},nwt=["text"],rwt=["children"];function oae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function iae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var owt={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Qn.isNode(t)&&(t=[t]),t.length!==0){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Xe.end(e,[]):[0],l=!0),l==null&&(l=!1),pn.isRange(a))if(r||(a=Xe.unhangRange(e,a)),pn.isCollapsed(a))a=a.anchor;else{var[,d]=pn.edges(a),c=Xe.pointRef(e,d);Zt.delete(e,{at:a}),a=c.unref()}if(mo.isPoint(a)){s==null&&(s=ir.isText(u)?S=>ir.isText(S):e.isInline(u)?S=>ir.isText(S)||Xe.isInline(e,S):S=>Xe.isBlock(e,S));var[f]=Xe.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!f)return;var[,p]=f,v=Xe.pathRef(e,p),h=Xe.isEnd(e,a,p);Zt.splitNodes(e,{at:a,match:s,mode:i,voids:o});var g=v.unref();a=h?Ht.next(g):g}var y=Ht.parent(a),m=a[a.length-1];if(o||!Xe.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Ht.next(a)}if(a=Ht.previous(a),l){var A=Xe.end(e,a);A&&Zt.select(e,A)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=Ht.isPath(n)?Hm(e,n):b=>Xe.isBlock(e,b)),n){var a=Xe.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(b=>{var[,w]=b;return Xe.pathRef(e,w)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var d=Xe.node(e,Ht.parent(u)),[c,f]=d,p=u[u.length-1],{length:v}=c.children;if(v===1){var h=Ht.next(f);Zt.moveNodes(e,{at:u,to:h,voids:o}),Zt.removeNodes(e,{at:f,voids:o})}else if(p===0)Zt.moveNodes(e,{at:u,to:f,voids:o});else if(p===v-1){var g=Ht.next(f);Zt.moveNodes(e,{at:u,to:g,voids:o})}else{var y=Ht.next(u),m=Ht.next(f);Zt.splitNodes(e,{at:y,voids:o}),Zt.moveNodes(e,{at:u,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(Ht.isPath(r)){var[s]=Xe.parent(e,r);n=D=>s.children.includes(D)}else n=D=>Xe.isBlock(e,D);if(!o&&pn.isRange(r)&&(r=Xe.unhangRange(e,r)),pn.isRange(r))if(pn.isCollapsed(r))r=r.anchor;else{var[,l]=pn.edges(r),u=Xe.pointRef(e,l);Zt.delete(e,{at:r}),r=u.unref(),t.at==null&&Zt.select(e,r)}var[d]=Xe.nodes(e,{at:r,match:n,voids:i,mode:a}),c=Xe.previous(e,{at:r,match:n,voids:i,mode:a});if(d&&c){var[f,p]=d,[v,h]=c;if(p.length!==0&&h.length!==0){var g,y,m=Ht.next(h),b=Ht.common(p,h),w=Ht.isSibling(p,h),A=Array.from(Xe.levels(e,{at:p}),(D=>{var[P]=D;return P})).slice(b.length).slice(0,-1),S=Xe.above(e,{at:p,mode:"highest",match:D=>A.includes(D)&&nCe(e,D)}),k=S&&Xe.pathRef(e,S[1]);if(ir.isText(f)&&ir.isText(v)){var M=sp(f,nwt);y=v.text.length,g=M}else{if(!kr.isElement(f)||!kr.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(f)," ").concat(JSON.stringify(v)));M=sp(f,rwt),y=v.children.length,g=M}w||Zt.moveNodes(e,{at:p,to:m,voids:i}),k&&Zt.removeNodes(e,{at:k.current,voids:i}),kr.isElement(v)&&Xe.isEmpty(e,v)||ir.isText(v)&&v.text===""&&h[h.length-1]!==0?Zt.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),k&&k.unref()}}}}))},moveNodes(e,t){Xe.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=Ht.isPath(r)?Hm(e,r):p=>Xe.isBlock(e,p));var s=Xe.pathRef(e,n),l=Xe.nodes(e,{at:r,match:a,mode:o,voids:i}),u=Array.from(l,(p=>{var[,v]=p;return Xe.pathRef(e,v)}));for(var d of u){var c=d.unref(),f=s.current;c.length!==0&&e.apply({type:"move_node",path:c,newPath:f}),s.current&&Ht.isSibling(f,c)&&Ht.isAfter(f,c)&&(s.current=Ht.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=Ht.isPath(i)?Hm(e,i):f=>Xe.isBlock(e,f)),!n&&pn.isRange(i)&&(i=Xe.unhangRange(e,i));var s=Xe.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(f=>{var[,p]=f;return Xe.pathRef(e,p)}));for(var u of l){var d=u.unref();if(d){var[c]=Xe.node(e,d);e.apply({type:"remove_node",path:d,node:c})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xe.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(o){if(r==null&&(r=Ht.isPath(o)?Hm(e,o):A=>Xe.isBlock(e,A)),!i&&pn.isRange(o)&&(o=Xe.unhangRange(e,o)),s&&pn.isRange(o)){if(pn.isCollapsed(o)&&Xe.leaf(e,o.anchor)[0].text.length>0)return;var u=Xe.rangeRef(e,o,{affinity:"inward"}),[d,c]=pn.edges(o),f=a==="lowest"?"lowest":"highest",p=Xe.isEnd(e,c,c.path);Zt.splitNodes(e,{at:c,match:r,mode:f,voids:l,always:!p});var v=Xe.isStart(e,d,d.path);Zt.splitNodes(e,{at:d,match:r,mode:f,voids:l,always:!v}),o=u.unref(),n.at==null&&Zt.select(e,o)}for(var[h,g]of Xe.nodes(e,{at:o,match:r,mode:a,voids:l})){var y={},m={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==h[w]&&(b=!0,h.hasOwnProperty(w)&&(y[w]=h[w]),t[w]!=null&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(o==null&&(o=N=>Xe.isBlock(e,N)),pn.isRange(i)&&(i=iwt(e,i)),Ht.isPath(i)){var l=i,u=Xe.point(e,l),[d]=Xe.parent(e,l);o=N=>N===d,a=u.path.length-l.length+1,i=u,s=!0}if(i){var c=Xe.pointRef(e,i,{affinity:"backward"}),[f]=Xe.nodes(e,{at:i,match:o,mode:n,voids:r});if(f){var p=Xe.void(e,{at:i,mode:"highest"});if(!r&&p){var[v,h]=p;if(kr.isElement(v)&&e.isInline(v)){var g=Xe.after(e,h);if(!g){var y=Ht.next(h);Zt.insertNodes(e,{text:""},{at:y,voids:r}),g=Xe.point(e,y)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var m=Xe.pointRef(e,i),b=i.path.length-a,[,w]=f,A=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[k,M]of Xe.levels(e,{at:A,reverse:!0,voids:r})){var D=!1;if(M.length<w.length||M.length===0||!r&&Xe.isVoid(e,k))break;var P=c.current,O=Xe.isEnd(e,P,M);if(s||!c||!Xe.isEdge(e,P,M)){D=!0;var _=Qn.extractProps(k);e.apply({type:"split_node",path:M,position:S,properties:_})}S=M[M.length-1]+(D||O?1:0)}if(t.at==null){var B=m.current||Xe.end(e,[]);Zt.select(e,B)}c.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Zt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=Ht.isPath(i)?Hm(e,i):f=>Xe.isBlock(e,f)),Ht.isPath(i)&&(i=Xe.range(e,i));var s=pn.isRange(i)?Xe.rangeRef(e,i):null,l=Xe.nodes(e,{at:i,match:a,mode:n,voids:o}),u=Array.from(l,(f=>{var[,p]=f;return Xe.pathRef(e,p)})).reverse(),d=function(f){var p=f.unref(),[v]=Xe.node(e,p),h=Xe.range(e,p);r&&s&&(h=pn.intersection(s.current,h)),Zt.liftNodes(e,{at:h,match:g=>kr.isAncestor(v)&&v.children.includes(g),voids:o})};for(var c of u)d(c);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xe.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(a==null&&(a=Ht.isPath(s)?Hm(e,s):e.isInline(t)?g=>Xe.isInline(e,g)||ir.isText(g):g=>Xe.isBlock(e,g)),o&&pn.isRange(s)){var[l,u]=pn.edges(s),d=Xe.rangeRef(e,s,{affinity:"inward"});Zt.splitNodes(e,{at:u,match:a,voids:i}),Zt.splitNodes(e,{at:l,match:a,voids:i}),s=d.unref(),n.at==null&&Zt.select(e,s)}var c=Array.from(Xe.nodes(e,{at:s,match:e.isInline(t)?g=>Xe.isBlock(e,g):g=>Xe.isEditor(g),mode:"lowest",voids:i}));for(var[,f]of c){var p=pn.isRange(s)?pn.intersection(s,Xe.range(e,f)):s;if(p){var v=Array.from(Xe.nodes(e,{at:p,match:a,mode:r,voids:i}));if(v.length>0){var h=(function(){var[g]=v,y=v[v.length-1],[,m]=g,[,b]=y;if(m.length===0&&b.length===0)return"continue";var w=Ht.equals(m,b)?Ht.parent(m):Ht.common(m,b),A=Xe.range(e,m,b),S=Xe.node(e,w),[k]=S,M=w.length+1,D=Ht.next(b.slice(0,M)),P=iae(iae({},t),{},{children:[]});Zt.insertNodes(e,P,{at:D,voids:i}),Zt.moveNodes(e,{at:A,match:O=>kr.isAncestor(k)&&k.children.includes(O),to:D.concat(0),voids:i})})();if(h==="continue")continue}}}}}))}},nCe=(e,t)=>{if(kr.isElement(t)){var n=t;return!!Xe.isVoid(e,t)||n.children.length===1&&nCe(e,n.children[0])}return!Xe.isEditor(t)},iwt=(e,t)=>{if(pn.isCollapsed(t))return t.anchor;var[,n]=pn.edges(t),r=Xe.pointRef(e,n);return Zt.delete(e,{at:t}),r.unref()},Hm=(e,t)=>{var[n]=Xe.node(e,t);return r=>r===n};function aae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function sae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var awt={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")Zt.select(e,r.anchor);else if(n==="focus")Zt.select(e,r.focus);else if(n==="start"){var[o]=pn.edges(r);Zt.select(e,o)}else if(n==="end"){var[,i]=pn.edges(r);Zt.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=pn.isBackward(n)?"focus":"anchor"),a==="end"&&(a=pn.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:o},d={};if(a==null||a==="anchor"){var c=i?Xe.before(e,s,u):Xe.after(e,s,u);c&&(d.anchor=c)}if(a==null||a==="focus"){var f=i?Xe.before(e,l,u):Xe.after(e,l,u);f&&(d.focus=f)}Zt.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=Xe.range(e,t),n)Zt.setSelection(e,t);else{if(!pn.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=pn.isBackward(r)?"focus":"anchor"),o==="end"&&(o=pn.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s=o==="anchor"?i:a;Zt.setSelection(e,{[o==="anchor"?"anchor":"focus"]:sae(sae({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!mo.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!mo.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},swt={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xe.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(pn.isRange(a)&&pn.isCollapsed(a)&&(a=a.anchor),mo.isPoint(a)){var l=Xe.void(e,{at:a,mode:"highest"});if(!i&&l){var[,u]=l;a=u}else{var d={unit:r,distance:o};a={anchor:a,focus:n?Xe.before(e,a,d)||Xe.start(e,[]):Xe.after(e,a,d)||Xe.end(e,[])},s=!0}}if(Ht.isPath(a))Zt.removeNodes(e,{at:a,voids:i});else if(!pn.isCollapsed(a)){if(!s){var[,c]=pn.edges(a),f=Xe.end(e,[]);mo.equals(c,f)||(a=Xe.unhangRange(e,a,{voids:i}))}var[p,v]=pn.edges(a),h=Xe.above(e,{match:ue=>Xe.isBlock(e,ue),at:p,voids:i}),g=Xe.above(e,{match:ue=>Xe.isBlock(e,ue),at:v,voids:i}),y=h&&g&&!Ht.equals(h[1],g[1]),m=Ht.equals(p.path,v.path),b=i?null:Xe.void(e,{at:p,mode:"highest"}),w=i?null:Xe.void(e,{at:v,mode:"highest"});if(b){var A=Xe.before(e,p);A&&h&&Ht.isAncestor(h[1],A.path)&&(p=A)}if(w){var S=Xe.after(e,v);S&&g&&Ht.isAncestor(g[1],S.path)&&(v=S)}var k,M=[];for(var D of Xe.nodes(e,{at:a,voids:i})){var[P,O]=D;k&&Ht.compare(O,k)===0||(!i&&Xe.isVoid(e,P)||!Ht.isCommon(O,p.path)&&!Ht.isCommon(O,v.path))&&(M.push(D),k=O)}var _=Array.from(M,(ue=>{var[,ve]=ue;return Xe.pathRef(e,ve)})),B=Xe.pointRef(e,p),N=Xe.pointRef(e,v);if(!m&&!b){var q=B.current,[U]=Xe.leaf(e,q),{path:j}=q,{offset:H}=p,G=U.text.slice(H);G.length>0&&e.apply({type:"remove_text",path:j,offset:H,text:G})}for(var Z of _){var $=Z.unref();Zt.removeNodes(e,{at:$,voids:i})}if(!w){var L=N.current,[W]=Xe.leaf(e,L),{path:ie}=L,ee=m?p.offset:0,te=W.text.slice(ee,v.offset);te.length>0&&e.apply({type:"remove_text",path:ie,offset:ee,text:te})}!m&&y&&N.current&&B.current&&Zt.mergeNodes(e,{at:N.current,hanging:!0,voids:i});var X=n?B.unref()||N.unref():N.unref()||B.unref();t.at==null&&X&&Zt.select(e,X)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xe.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(pn.isRange(i))if(r||(i=Xe.unhangRange(e,i)),pn.isCollapsed(i))i=i.anchor;else{var[,a]=pn.edges(i);if(!o&&Xe.void(e,{at:a}))return;var s=Xe.pointRef(e,a);Zt.delete(e,{at:i}),i=s.unref()}else Ht.isPath(i)&&(i=Xe.start(e,i));if(o||!Xe.void(e,{at:i})){var l=Xe.above(e,{at:i,match:L=>Xe.isInline(e,L),mode:"highest",voids:o});if(l){var[,u]=l;Xe.isEnd(e,i,u)?i=Xe.after(e,u):Xe.isStart(e,i,u)&&(i=Xe.before(e,u))}var d=Xe.above(e,{match:L=>Xe.isBlock(e,L),at:i,voids:o}),[,c]=d,f=Xe.isStart(e,i,c),p=Xe.isEnd(e,i,c),v=f&&p,h=!f||f&&p,g=!p,[,y]=Qn.first({children:t},[]),[,m]=Qn.last({children:t},[]),b=[],w=L=>{var[W,ie]=L;return ie.length!==0&&(!!v||!(h&&Ht.isAncestor(ie,y)&&kr.isElement(W)&&!e.isVoid(W)&&!e.isInline(W))&&!(g&&Ht.isAncestor(ie,m)&&kr.isElement(W)&&!e.isVoid(W)&&!e.isInline(W)))};for(var A of Qn.nodes({children:t},{pass:w}))w(A)&&b.push(A);var S=[],k=[],M=[],D=!0,P=!1;for(var[O]of b)kr.isElement(O)&&!e.isInline(O)?(D=!1,P=!0,k.push(O)):D?S.push(O):M.push(O);var[_]=Xe.nodes(e,{at:i,match:L=>ir.isText(L)||Xe.isInline(e,L),mode:"highest",voids:o}),[,B]=_,N=Xe.isStart(e,i,B),q=Xe.isEnd(e,i,B),U=Xe.pathRef(e,p?Ht.next(c):c),j=Xe.pathRef(e,q?Ht.next(B):B),H=Xe.pathRef(e,c);Zt.splitNodes(e,{at:i,match:L=>P?Xe.isBlock(e,L):ir.isText(L)||Xe.isInline(e,L),mode:P?"lowest":"highest",voids:o});var G=Xe.pathRef(e,!N||N&&q?Ht.next(B):B);if(Zt.insertNodes(e,S,{at:G.current,match:L=>ir.isText(L)||Xe.isInline(e,L),mode:"highest",voids:o}),v&&k.length&&Zt.delete(e,{at:H.unref(),voids:o}),Zt.insertNodes(e,k,{at:U.current,match:L=>Xe.isBlock(e,L),mode:"lowest",voids:o}),Zt.insertNodes(e,M,{at:j.current,match:L=>ir.isText(L)||Xe.isInline(e,L),mode:"highest",voids:o}),!n.at){var Z;Z=M.length>0?Ht.previous(j.current):k.length>0?Ht.previous(U.current):Ht.previous(G.current);var $=Xe.end(e,Z);Zt.select(e,$)}G.unref(),U.unref(),j.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Xe.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ht.isPath(o)&&(o=Xe.range(e,o)),pn.isRange(o))if(pn.isCollapsed(o))o=o.anchor;else{var i=pn.end(o);if(!r&&Xe.void(e,{at:i}))return;var a=Xe.pointRef(e,i);Zt.delete(e,{at:o,voids:r}),o=a.unref(),Zt.setSelection(e,{anchor:o,focus:o})}if(r||!Xe.void(e,{at:o})){var{path:s,offset:l}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:l,text:t})}}}))}};function lae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function r6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Zt=r6(r6(r6(r6({},twt),owt),awt),swt),pU="[object Map]",hU="[object Set]",lwt=/^\[object .+?Constructor\]$/,uwt=/^(?:0|[1-9]\d*)$/,cwt="[\\ud800-\\udfff]",gU="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",vU="\\ud83c[\\udffb-\\udfff]",rCe="[^\\ud800-\\udfff]",oCe="(?:\\ud83c[\\udde6-\\uddff]){2}",iCe="[\\ud800-\\udbff][\\udc00-\\udfff]",uae="(?:"+gU+"|"+vU+")?",dwt="[\\ufe0e\\ufe0f]?"+uae+("(?:\\u200d(?:"+[rCe,oCe,iCe].join("|")+")[\\ufe0e\\ufe0f]?"+uae+")*"),fwt="(?:"+[rCe+gU+"?",gU,oCe,iCe,cwt].join("|")+")",pwt=RegExp(vU+"(?="+vU+")|"+fwt+dwt,"g"),hwt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),gwt=typeof bi=="object"&&bi&&bi.Object===Object&&bi,vwt=typeof self=="object"&&self&&self.Object===Object&&self,fm=gwt||vwt||Function("return this")();function mwt(e,t){return(function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a})(t,(function(n){return e[n]}))}function ywt(e){var t=-1,n=Array(e.size);return e.forEach((function(r,o){n[++t]=[o,r]})),n}function bwt(e){var t=-1,n=Array(e.size);return e.forEach((function(r){n[++t]=r})),n}function wwt(e){return(function(t){return hwt.test(t)})(e)?(function(t){return t.match(pwt)||[]})(e):(function(t){return t.split("")})(e)}var cae,dae,Awt=Function.prototype,i7=Object.prototype,LM=fm["__core-js_shared__"],fae=(function(){var e=/[^.]+$/.exec(LM&&LM.keys&&LM.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),aCe=Awt.toString,_k=i7.hasOwnProperty,l5=i7.toString,Cwt=RegExp("^"+aCe.call(_k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pae=fm.Symbol,FM=pae?pae.iterator:void 0,xwt=i7.propertyIsEnumerable,Swt=(cae=Object.keys,dae=Object,function(e){return cae(dae(e))}),mU=u5(fm,"DataView"),yU=u5(fm,"Map"),bU=u5(fm,"Promise"),wU=u5(fm,"Set"),AU=u5(fm,"WeakMap"),Ewt=pm(mU),kwt=pm(yU),Twt=pm(bU),_wt=pm(wU),Dwt=pm(AU);function Iwt(e,t){var n=sCe(e)||(function(a){return(function(s){return cCe(s)&&Zq(s)})(a)&&_k.call(a,"callee")&&(!xwt.call(a,"callee")||l5.call(a)=="[object Arguments]")})(e)?(function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!_k.call(e,i)||o&&(i=="length"||Pwt(i,r))||n.push(i);return n}function Owt(e){if(!uCe(e)||(function(n){return!!fae&&fae in n})(e))return!1;var t=lCe(e)||(function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r})(e)?Cwt:lwt;return t.test(pm(e))}function Mwt(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||i7,t!==r)return Swt(e);var t,n,r,o=[];for(var i in Object(e))_k.call(e,i)&&i!="constructor"&&o.push(i);return o}function u5(e,t){var n=(function(r,o){return r?.[o]})(e,t);return Owt(n)?n:void 0}var yg=function(e){return l5.call(e)};function Pwt(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||uwt.test(e))&&e>-1&&e%1==0&&e<t}function pm(e){if(e!=null){try{return aCe.call(e)}catch{}try{return e+""}catch{}}return""}(mU&&yg(new mU(new ArrayBuffer(1)))!="[object DataView]"||yU&&yg(new yU)!=pU||bU&&yg(bU.resolve())!="[object Promise]"||wU&&yg(new wU)!=hU||AU&&yg(new AU)!="[object WeakMap]")&&(yg=function(e){var t=l5.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?pm(n):void 0;if(r)switch(r){case Ewt:return"[object DataView]";case kwt:return pU;case Twt:return"[object Promise]";case _wt:return hU;case Dwt:return"[object WeakMap]"}return t});var sCe=Array.isArray;function Zq(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!lCe(e)}function lCe(e){var t=uCe(e)?l5.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function uCe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cCe(e){return!!e&&typeof e=="object"}function Nwt(e){return e?mwt(e,(function(t){return Zq(t)?Iwt(t):Mwt(t)})(e)):[]}var hae=function(e){if(!e)return[];if(Zq(e))return(function(n){return typeof n=="string"||!sCe(n)&&cCe(n)&&l5.call(n)=="[object String]"})(e)?wwt(e):(function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r})(e);if(FM&&e[FM])return(function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o})(e[FM]());var t=yg(e);return(t==pU?ywt:t==hU?bwt:Nwt)(e)};function gae(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Xq(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:gae(t[n])&&gae(e[n])&&Object.keys(t[n]).length>0&&Xq(e[n],t[n])}))}var dCe={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c5(){var e=typeof document<"u"?document:{};return Xq(e,dCe),e}var Rwt={document:dCe,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function hm(){var e=typeof window<"u"?window:{};return Xq(e,Rwt),e}function CU(e){return CU=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},CU(e)}function Dk(e,t){return Dk=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Dk(e,t)}function Bwt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function xU(e,t,n){return xU=Bwt()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Dk(s,i.prototype),s},xU.apply(null,arguments)}function SU(e){var t=typeof Map=="function"?new Map:void 0;return SU=function(n){if(n===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return xU(n,arguments,CU(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Dk(r,n)},SU(e)}var Ch=(function(e){var t,n;function r(o){var i,a,s;return i=e.call.apply(e,[this].concat(o))||this,a=(function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l})(i),s=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return s},set:function(l){s.__proto__=l}}),i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r})(SU(Array));function a7(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(n){Array.isArray(n)?t.push.apply(t,a7(n)):t.push(n)})),t}function fCe(e,t){return Array.prototype.filter.call(e,t)}function Mt(e,t){var n=hm(),r=c5(),o=[];if(!t&&e instanceof Ch)return e;if(!e)return new Ch(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var s=r.createElement(a);s.innerHTML=i;for(var l=0;l<s.childNodes.length;l+=1)o.push(s.childNodes[l])}else o=(function(u,d){if(typeof u!="string")return[u];for(var c=[],f=d.querySelectorAll(u),p=0;p<f.length;p+=1)c.push(f[p]);return c})(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Ch)return e;o=e}return new Ch((function(u){for(var d=[],c=0;c<u.length;c+=1)d.indexOf(u[c])===-1&&d.push(u[c]);return d})(o))}function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=a7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.apply(i,r)})),this}function Yy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=a7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,r)})),this}function Zy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=a7(t.map((function(o){return o.split(" ")})));return fCe(this,(function(o){return r.filter((function(i){return o.classList.contains(i)})).length>0})).length>0}function Ju(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Ik(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Xy(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(s,l){return l.toUpperCase()}))]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function jd(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Hd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function s(h){var g=h.target;if(g){var y=h.target.dom7EventData||[];if(y.indexOf(h)<0&&y.unshift(h),Mt(g).is(o))i.apply(g,y);else for(var m=Mt(g).parents(),b=0;b<m.length;b+=1)Mt(m[b]).is(o)&&i.apply(m[b],y)}}function l(h){var g=h&&h.target&&h.target.dom7EventData||[];g.indexOf(h)<0&&g.unshift(h),i.apply(this,g)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u,d=r.split(" "),c=0;c<this.length;c+=1){var f=this[c];if(o)for(u=0;u<d.length;u+=1){var p=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:i,proxyListener:s}),f.addEventListener(p,s,a)}else for(u=0;u<d.length;u+=1){var v=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:i,proxyListener:l}),f.addEventListener(v,l,a)}}return this}function vae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],d=0;d<this.length;d+=1){var c=this[d],f=void 0;if(!o&&c.dom7Listeners?f=c.dom7Listeners[u]:o&&c.dom7LiveListeners&&(f=c.dom7LiveListeners[u]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var v=f[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(c.removeEventListener(u,v.proxyListener,a),f.splice(p,1)):i||(c.removeEventListener(u,v.proxyListener,a),f.splice(p,1))}}return this}function Ok(){var e=hm();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Mk(){var e=hm();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function mae(){if(this.length>0){var e=hm(),t=c5(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-i,left:r.left+l-a}}return null}function Jy(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Pk(){for(var e=hm(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Nk(e,t){var n,r=hm();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Rk(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function yae(e){return Mt(fCe(this,e))}function h0(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Bk(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function bae(e){var t,n,r=hm(),o=c5(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Mt(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Ch){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ec(){for(var e,t=c5(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Ch)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function wae(e){var t,n,r=c5();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ch)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function eb(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?Mt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Mt(t)}function Lk(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Mt(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Mt(t)}function tb(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Mt(t)}function nb(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Mt(r[o]).is(e)||t.push(r[o]);return Mt(t)}function rb(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ob(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Mt.fn=Ch.prototype;var Lwt="resize scroll".split(" ");function pCe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)Lwt.indexOf(e)<0&&(e in this[o]?this[o][e]():Mt(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Aae=pCe("click"),g0=pCe("focus"),Fwt="[object GeneratorFunction]",Uwt=/^(?:0|[1-9]\d*)$/;function $wt(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var s7=Object.prototype,EU=s7.hasOwnProperty,hCe=s7.toString,zwt=s7.propertyIsEnumerable,jwt=(function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);function Hwt(e,t){var n=gCe(e)||(function(a){return(function(s){return(function(l){return!!l&&typeof l=="object"})(s)&&Jq(s)})(a)&&EU.call(a,"callee")&&(!zwt.call(a,"callee")||hCe.call(a)=="[object Arguments]")})(e)?(function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!EU.call(e,i)||o&&(i=="length"||Gwt(i,r))||n.push(i);return n}var Cae,Wwt=(Cae=function(e,t){return e&&Vwt(e,t,Kwt)},function(e,t){if(e==null)return e;if(!Jq(e))return Cae(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),Vwt=(function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}})();function qwt(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||s7,t!==r)return jwt(e);var t,n,r,o=[];for(var i in Object(e))EU.call(e,i)&&i!="constructor"&&o.push(i);return o}function Gwt(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Uwt.test(e))&&e>-1&&e%1==0&&e<t}var gCe=Array.isArray;function Jq(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var n=(function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")})(t)?hCe.call(t):"";return n=="[object Function]"||n==Fwt})(e)}function Kwt(e){return Jq(e)?Hwt(e):qwt(e)}function Qwt(e){return e}var eG=function(e,t){return(gCe(e)?$wt:Wwt)(e,typeof t=="function"?t:Qwt)};let vCe=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Ywt=/^\s+|\s+$/g,Zwt=/^[-+]0x[0-9a-f]+$/i,Xwt=/^0b[01]+$/i,Jwt=/^0o[0-7]+$/i,e4t=parseInt,t4t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,n4t=typeof self=="object"&&self&&self.Object===Object&&self,r4t=t4t||n4t||Function("return this")(),o4t=Object.prototype.toString,i4t=Math.max,a4t=Math.min,UM=function(){return r4t.Date.now()};function s4t(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,A=o;return r=o=void 0,u=b,a=e.apply(A,w)}function v(b){return u=b,s=setTimeout(g,t),d?p(b):a}function h(b){var w=b-l;return l===void 0||w>=t||w<0||c&&b-u>=i}function g(){var b=UM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?a4t(A,i-(w-u)):A})(b))}function y(b){return s=void 0,f&&r?p(b):(r=o=void 0,a)}function m(){var b=UM(),w=h(b);if(r=arguments,o=this,l=b,w){if(s===void 0)return v(l);if(c)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return t=xae(t)||0,Fk(n)&&(d=!!n.leading,i=(c="maxWait"in n)?i4t(xae(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return s===void 0?a:y(UM())},m}function Fk(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function xae(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&o4t.call(r)=="[object Symbol]"})(e))return NaN;if(Fk(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fk(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ywt,"");var n=Xwt.test(e);return n||Jwt.test(e)?e4t(e.slice(2),n?2:8):Zwt.test(e)?NaN:+e}var zv=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Fk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),s4t(e,t,{leading:r,maxWait:t,trailing:o})};const l4t={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function xA(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const kU=Array.isArray;function w8(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function $M(e){return e===void 0}function Kl(e){return e!==void 0}const Sae=xA("",{},[],void 0,void 0);function nw(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function u4t(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const c4t=["create","update","remove","destroy","pre","post"];function d4t(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=l4t;for(const c of c4t)for(const f of e){const p=f[c];p!==void 0&&n[c].push(p)}function o(c){const f=c.id?"#"+c.id:"",p=c.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return xA(r.tagName(c).toLowerCase()+f+v,{},[],void 0,c)}function i(c,f){return function(){if(--f==0){const p=r.parentNode(c);r.removeChild(p,c)}}}function a(c,f){var p,v;let h,g=c.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Kl(b)&&(b(c),g=c.data)}const y=c.children,m=c.sel;if(m==="!")$M(c.text)&&(c.text=""),c.elm=r.createComment(c.text);else if(m!==void 0){const b=m.indexOf("#"),w=m.indexOf(".",b),A=b>0?b:m.length,S=w>0?w:m.length,k=b!==-1||w!==-1?m.slice(0,Math.min(A,S)):m,M=c.elm=Kl(g)&&Kl(h=g.ns)?r.createElementNS(h,k,g):r.createElement(k,g);for(A<S&&M.setAttribute("id",m.slice(A+1,S)),w>0&&M.setAttribute("class",m.slice(S+1).replace(/\./g," ")),h=0;h<n.create.length;++h)n.create[h](Sae,c);if(kU(y))for(h=0;h<y.length;++h){const P=y[h];P!=null&&r.appendChild(M,a(P,f))}else w8(c.text)&&r.appendChild(M,r.createTextNode(c.text));const D=c.data.hook;Kl(D)&&((v=D.create)===null||v===void 0||v.call(D,Sae,c),D.insert&&f.push(c))}else c.elm=r.createTextNode(c.text);return c.elm}function s(c,f,p,v,h,g){for(;v<=h;++v){const y=p[v];y!=null&&r.insertBefore(c,a(y,g),f)}}function l(c){var f,p;const v=c.data;if(v!==void 0){(p=(f=v?.hook)===null||f===void 0?void 0:f.destroy)===null||p===void 0||p.call(f,c);for(let h=0;h<n.destroy.length;++h)n.destroy[h](c);if(c.children!==void 0)for(let h=0;h<c.children.length;++h){const g=c.children[h];g!=null&&typeof g!="string"&&l(g)}}}function u(c,f,p,v){for(var h,g;p<=v;++p){let y,m;const b=f[p];if(b!=null)if(Kl(b.sel)){l(b),y=n.remove.length+1,m=i(b.elm,y);for(let A=0;A<n.remove.length;++A)n.remove[A](b,m);const w=(g=(h=b?.data)===null||h===void 0?void 0:h.hook)===null||g===void 0?void 0:g.remove;Kl(w)?w(b,m):m()}else r.removeChild(c,b.elm)}}function d(c,f,p){var v,h,g,y,m;const b=(v=f.data)===null||v===void 0?void 0:v.hook;(h=b?.prepatch)===null||h===void 0||h.call(b,c,f);const w=f.elm=c.elm,A=c.children,S=f.children;if(c!==f){if(f.data!==void 0){for(let k=0;k<n.update.length;++k)n.update[k](c,f);(y=(g=f.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,c,f)}$M(f.text)?Kl(A)&&Kl(S)?A!==S&&(function(k,M,D,P){let O,_,B,N,q=0,U=0,j=M.length-1,H=M[0],G=M[j],Z=D.length-1,$=D[0],L=D[Z];for(;q<=j&&U<=Z;)H==null?H=M[++q]:G==null?G=M[--j]:$==null?$=D[++U]:L==null?L=D[--Z]:nw(H,$)?(d(H,$,P),H=M[++q],$=D[++U]):nw(G,L)?(d(G,L,P),G=M[--j],L=D[--Z]):nw(H,L)?(d(H,L,P),r.insertBefore(k,H.elm,r.nextSibling(G.elm)),H=M[++q],L=D[--Z]):nw(G,$)?(d(G,$,P),r.insertBefore(k,G.elm,H.elm),G=M[--j],$=D[++U]):(O===void 0&&(O=u4t(M,q,j)),_=O[$.key],$M(_)?r.insertBefore(k,a($,P),H.elm):(B=M[_],B.sel!==$.sel?r.insertBefore(k,a($,P),H.elm):(d(B,$,P),M[_]=void 0,r.insertBefore(k,B.elm,H.elm))),$=D[++U]);(q<=j||U<=Z)&&(q>j?(N=D[Z+1]==null?null:D[Z+1].elm,s(k,N,D,U,Z,P)):u(k,M,q,j))})(w,A,S,p):Kl(S)?(Kl(c.text)&&r.setTextContent(w,""),s(w,null,S,0,S.length-1,p)):Kl(A)?u(w,A,0,A.length-1):Kl(c.text)&&r.setTextContent(w,""):c.text!==f.text&&(Kl(A)&&u(w,A,0,A.length-1),r.setTextContent(w,f.text)),(m=b?.postpatch)===null||m===void 0||m.call(b,c,f)}}return function(c,f){let p,v,h;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for((function(y){return y.sel!==void 0})(c)||(c=o(c)),nw(c,f)?d(c,f,g):(v=c.elm,h=r.parentNode(v),a(f,g),h!==null&&(r.insertBefore(h,f.elm,r.nextSibling(v)),u(h,[c],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<n.post.length;++p)n.post[p]();return f}}function mCe(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&mCe(o,t[r].children,t[r].sel)}}function ib(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),kU(n)?r=n:w8(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(kU(t)?r=t:w8(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)w8(r[i])&&(r[i]=xA(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||mCe(a,r,e),xA(e,a,r,o,void 0)}function Eae(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const f4t={create:Eae,update:Eae};function kae(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const p4t={create:kae,update:kae},Tae=/[A-Z]/g;function _ae(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Tae,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Tae,"-$&").toLowerCase(),i[r]))}const h4t={create:_ae,update:_ae};function yCe(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)yCe(e[r],t,n)}function g4t(e,t){const n=e.type,r=t.data.on;r&&r[n]&&yCe(r[n],t,e)}function zM(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(n!==i){if(n&&r)if(i)for(s in n)i[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(i){const l=t.listener=e.listener||function u(d){g4t(d,u.vnode)};if(l.vnode=t,n)for(s in i)n[s]||a.addEventListener(s,l,!1);else for(s in i)a.addEventListener(s,l,!1)}}}const v4t={create:zM,update:zM,destroy:zM};function Dae(e,t){let n,r,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const m4t={create:Dae,update:Dae},Iae=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let jM=!1;function y4t(e,t,n){(function(r){Iae((function(){Iae(r)}))})((function(){e[t]=n}))}function Oae(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const l in a.delayed)n=a.delayed[l],s&&n===i.delayed[l]||y4t(o.style,l,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const b4t={pre:function(){jM=!1},create:Oae,update:Oae,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;jM||(e.elm.offsetLeft,jM=!0);const o=e.elm;let i=0;const a=n.remove;let s=0;const l=[];for(r in a)l.push(r),o.style[r]=a[r];const u=getComputedStyle(o)["transition-property"].split(", ");for(;i<u.length;++i)l.indexOf(u[i])!==-1&&s++;o.addEventListener("transitionend",(function(d){d.target===o&&--s,s===0&&t()}))}};function bCe(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?bCe(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(xA(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Xr(e,t,...n){const r=bCe(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?ib(e,t,r[0].text):ib(e,t,r)}Xr||(Xr={});var w4t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,A4t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wCe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",C4t="[\\ud800-\\udfff]",Mae="["+wCe+"]",Uk="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ACe="\\d+",x4t="[\\u2700-\\u27bf]",CCe="[a-z\\xdf-\\xf6\\xf8-\\xff]",xCe="[^\\ud800-\\udfff"+wCe+ACe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",TU="\\ud83c[\\udffb-\\udfff]",SCe="[^\\ud800-\\udfff]",tG="(?:\\ud83c[\\udde6-\\uddff]){2}",nG="[\\ud800-\\udbff][\\udc00-\\udfff]",_1="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pae="(?:"+CCe+"|"+xCe+")",S4t="(?:"+_1+"|"+xCe+")",Nae="(?:"+Uk+"|"+TU+")?",ECe="[\\ufe0e\\ufe0f]?"+Nae+("(?:\\u200d(?:"+[SCe,tG,nG].join("|")+")[\\ufe0e\\ufe0f]?"+Nae+")*"),E4t="(?:"+[x4t,tG,nG].join("|")+")"+ECe,k4t="(?:"+[SCe+Uk+"?",Uk,tG,nG,C4t].join("|")+")",T4t=RegExp("['’]","g"),_4t=RegExp(Uk,"g"),D4t=RegExp(TU+"(?="+TU+")|"+k4t+ECe,"g"),I4t=RegExp([_1+"?"+CCe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Mae,_1,"$"].join("|")+")",S4t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Mae,_1+Pae,"$"].join("|")+")",_1+"?"+Pae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_1+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",ACe,E4t].join("|"),"g"),O4t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),M4t=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P4t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,N4t=typeof self=="object"&&self&&self.Object===Object&&self,R4t=P4t||N4t||Function("return this")(),HM,B4t=(HM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return HM?.[e]});function kCe(e){return O4t.test(e)}function L4t(e){return kCe(e)?(function(t){return t.match(D4t)||[]})(e):(function(t){return t.split("")})(e)}var F4t=Object.prototype.toString,Rae=R4t.Symbol,Bae=Rae?Rae.prototype:void 0,Lae=Bae?Bae.toString:void 0;function U4t(e){if(typeof e=="string")return e;if((function(n){return typeof n=="symbol"||(function(r){return!!r&&typeof r=="object"})(n)&&F4t.call(n)=="[object Symbol]"})(e))return Lae?Lae.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function $4t(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:(function(o,i,a){var s=-1,l=o.length;i<0&&(i=-i>l?0:l+i),(a=a>l?l:a)<0&&(a+=l),l=i>a?0:a-i>>>0,i>>>=0;for(var u=Array(l);++s<l;)u[s]=o[s+i];return u})(e,t,n)}function A8(e){return e==null?"":U4t(e)}var Fae,z4t=(Fae=function(e,t,n){return t=t.toLowerCase(),e+(n?j4t(A8(t).toLowerCase()):t)},function(e){return(function(t,n,r,o){var i=-1,a=t?t.length:0;for(o;++i<a;)r=n(r,t[i],i,t);return r})((function(t,n,r){return t=A8(t),(n=n)===void 0?(function(o){return M4t.test(o)})(t)?(function(o){return o.match(I4t)||[]})(t):(function(o){return o.match(w4t)||[]})(t):t.match(n)||[]})((function(t){return(t=A8(t))&&t.replace(A4t,B4t).replace(_4t,"")})(e).replace(T4t,"")),Fae,"")}),Uae,j4t=(Uae="toUpperCase",function(e){var t=kCe(e=A8(e))?L4t(e):void 0,n=t?t[0]:e.charAt(0),r=t?$4t(t,1).join(""):e.slice(1);return n[Uae]()+r});for(var H4t=z4t,W4t=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),WM={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},TCe={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:W4t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},rG={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o6=1;o6<20;o6++)rG["f"+o6]=111+o6;function _Ce(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(i){return(function(a,s){var l=s&&s.byKey,u={},d=(a=a.replace("++","+add")).split("+"),c=d.length;for(var f in WM)u[WM[f]]=!1;var p=!0,v=!1,h=void 0;try{for(var g,y=d[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var m=g.value,b=m.endsWith("?")&&m.length>1;b&&(m=m.slice(0,-1));var w=DCe(m),A=WM[w];if(m.length>1&&!A&&!TCe[m]&&!rG[w])throw new TypeError('Unknown modifier: "'+m+'"');c!==1&&A||(l?u.key=w:u.which=V4t(m)),A&&(u[A]=!b||null)}}catch(S){v=!0,h=S}finally{try{!p&&y.return&&y.return()}finally{if(v)throw h}}return u})(i,t)})),o=function(i){return r.some((function(a){return(function(s,l){for(var u in s){var d=s[u],c=void 0;if(d!=null&&((c=u==="key"&&l.key!=null?l.key.toLowerCase():u==="which"?d===91&&l.which===93?91:l.which:l[u])!=null||d!==!1)&&c!==d)return!1}return!0})(a,i)}))};return n==null?o:o(n)}function V4t(e){return e=DCe(e),rG[e]||e.toUpperCase().charCodeAt(0)}function DCe(e){return e=e.toLowerCase(),e=TCe[e]||e}var q4t=_Ce,VM=function(e,t){return _Ce(e,{byKey:!0},t)},G4t=/^\s+|\s+$/g,K4t=/^[-+]0x[0-9a-f]+$/i,Q4t=/^0b[01]+$/i,Y4t=/^0o[0-7]+$/i,Z4t=parseInt,X4t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,J4t=typeof self=="object"&&self&&self.Object===Object&&self,e3t=X4t||J4t||Function("return this")(),t3t=Object.prototype.toString,n3t=Math.max,r3t=Math.min,qM=function(){return e3t.Date.now()};function _U(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $ae(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&t3t.call(r)=="[object Symbol]"})(e))return NaN;if(_U(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_U(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(G4t,"");var n=Q4t.test(e);return n||Y4t.test(e)?Z4t(e.slice(2),n?2:8):K4t.test(e)?NaN:+e}var Wm,ICe=function(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,A=o;return r=o=void 0,u=b,a=e.apply(A,w)}function v(b){return u=b,s=setTimeout(g,t),d?p(b):a}function h(b){var w=b-l;return l===void 0||w>=t||w<0||c&&b-u>=i}function g(){var b=qM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?r3t(A,i-(w-u)):A})(b))}function y(b){return s=void 0,f&&r?p(b):(r=o=void 0,a)}function m(){var b=qM(),w=h(b);if(r=arguments,o=this,l=b,w){if(s===void 0)return v(l);if(c)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return t=$ae(t)||0,_U(n)&&(d=!!n.leading,i=(c="maxWait"in n)?n3t($ae(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return s===void 0?a:y(qM())},m},OCe=cm((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",d="[object Number]",c="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",h="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",A="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",M="[object Int32Array]",D="[object Uint8Array]",P="[object Uint8ClampedArray]",O="[object Uint16Array]",_="[object Uint32Array]",B=/\w*$/,N=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,U={};U[o]=U["[object Array]"]=U[m]=U[b]=U[i]=U[a]=U[w]=U[A]=U[S]=U[k]=U[M]=U[u]=U[d]=U[c]=U[p]=U[v]=U[h]=U[g]=U[D]=U[P]=U[O]=U[_]=!0,U["[object Error]"]=U[s]=U[y]=!1;var j=typeof bi=="object"&&bi&&bi.Object===Object&&bi,H=typeof self=="object"&&self&&self.Object===Object&&self,G=j||H||Function("return this")(),Z=t&&!t.nodeType&&t,$=Z&&e&&!e.nodeType&&e,L=$&&$.exports===Z;function W(Ke,bt){return Ke.set(bt[0],bt[1]),Ke}function ie(Ke,bt){return Ke.add(bt),Ke}function ee(Ke,bt,Yt,wt){var Gt=-1,An=Ke?Ke.length:0;for(wt;++Gt<An;)Yt=bt(Yt,Ke[Gt],Gt,Ke);return Yt}function te(Ke){var bt=!1;if(Ke!=null&&typeof Ke.toString!="function")try{bt=!!(Ke+"")}catch{}return bt}function X(Ke){var bt=-1,Yt=Array(Ke.size);return Ke.forEach((function(wt,Gt){Yt[++bt]=[Gt,wt]})),Yt}function ue(Ke,bt){return function(Yt){return Ke(bt(Yt))}}function ve(Ke){var bt=-1,Yt=Array(Ke.size);return Ke.forEach((function(wt){Yt[++bt]=wt})),Yt}var Me=Array.prototype,we=Function.prototype,he=Object.prototype,Te=G["__core-js_shared__"],Y=(function(){var Ke=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return Ke?"Symbol(src)_1."+Ke:""})(),be=we.toString,De=he.hasOwnProperty,pe=he.toString,oe=RegExp("^"+be.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=L?G.Buffer:void 0,Re=G.Symbol,Ee=G.Uint8Array,Le=ue(Object.getPrototypeOf,Object),Fe=Object.create,Pe=he.propertyIsEnumerable,Ne=Me.splice,pt=Object.getOwnPropertySymbols,Rt=ce?ce.isBuffer:void 0,Bt=ue(Object.keys,Object),en=ut(G,"DataView"),Wt=ut(G,"Map"),Ut=ut(G,"Promise"),ct=ut(G,"Set"),_t=ut(G,"WeakMap"),st=ut(Object,"create"),Ot=xt(en),Ae=xt(Wt),je=xt(Ut),at=xt(ct),gt=xt(_t),nn=Re?Re.prototype:void 0,Tn=nn?nn.valueOf:void 0;function He(Ke){var bt=-1,Yt=Ke?Ke.length:0;for(this.clear();++bt<Yt;){var wt=Ke[bt];this.set(wt[0],wt[1])}}function ke(Ke){var bt=-1,Yt=Ke?Ke.length:0;for(this.clear();++bt<Yt;){var wt=Ke[bt];this.set(wt[0],wt[1])}}function me(Ke){var bt=-1,Yt=Ke?Ke.length:0;for(this.clear();++bt<Yt;){var wt=Ke[bt];this.set(wt[0],wt[1])}}function Be(Ke){this.__data__=new ke(Ke)}function rt(Ke,bt){var Yt=vt(Ke)||(function(Rn){return(function(Kn){return(function(Fr){return!!Fr&&typeof Fr=="object"})(Kn)&&Nt(Kn)})(Rn)&&De.call(Rn,"callee")&&(!Pe.call(Rn,"callee")||pe.call(Rn)==o)})(Ke)?(function(Rn,Kn){for(var Fr=-1,ho=Array(Rn);++Fr<Rn;)ho[Fr]=Kn(Fr);return ho})(Ke.length,String):[],wt=Yt.length,Gt=!!wt;for(var An in Ke)!De.call(Ke,An)||Gt&&(An=="length"||mn(An,wt))||Yt.push(An);return Yt}function ht(Ke,bt,Yt){var wt=Ke[bt];De.call(Ke,bt)&&sn(wt,Yt)&&(Yt!==void 0||bt in Ke)||(Ke[bt]=Yt)}function rn(Ke,bt){for(var Yt=Ke.length;Yt--;)if(sn(Ke[Yt][0],bt))return Yt;return-1}function Ye(Ke,bt,Yt,wt,Gt,An,Rn){var Kn;if(wt&&(Kn=An?wt(Ke,Gt,An,Rn):wt(Ke)),Kn!==void 0)return Kn;if(!tr(Ke))return Ke;var Fr=vt(Ke);if(Fr){if(Kn=(function(yr){var Vr=yr.length,wo=yr.constructor(Vr);return Vr&&typeof yr[0]=="string"&&De.call(yr,"index")&&(wo.index=yr.index,wo.input=yr.input),wo})(Ke),!bt)return(function(yr,Vr){var wo=-1,Nr=yr.length;for(Vr||(Vr=Array(Nr));++wo<Nr;)Vr[wo]=yr[wo];return Vr})(Ke,Kn)}else{var ho=jt(Ke),Wr=ho==s||ho==l;if(bn(Ke))return(function(yr,Vr){if(Vr)return yr.slice();var wo=new yr.constructor(yr.length);return yr.copy(wo),wo})(Ke,bt);if(ho==c||ho==o||Wr&&!An){if(te(Ke))return An?Ke:{};if(Kn=(function(yr){return typeof yr.constructor!="function"||Nn(yr)?{}:(Vr=Le(yr),tr(Vr)?Fe(Vr):{});var Vr})(Wr?{}:Ke),!bt)return(function(yr,Vr){return Ue(yr,yt(yr),Vr)})(Ke,(function(yr,Vr){return yr&&Ue(Vr,dn(Vr),yr)})(Kn,Ke))}else{if(!U[ho])return An?Ke:{};Kn=(function(yr,Vr,wo,Nr){var Br=yr.constructor;switch(Vr){case m:return lt(yr);case i:case a:return new Br(+yr);case b:return(function(zr,Ao){var Cr=Ao?lt(zr.buffer):zr.buffer;return new zr.constructor(Cr,zr.byteOffset,zr.byteLength)})(yr,Nr);case w:case A:case S:case k:case M:case D:case P:case O:case _:return(function(zr,Ao){var Cr=Ao?lt(zr.buffer):zr.buffer;return new zr.constructor(Cr,zr.byteOffset,zr.length)})(yr,Nr);case u:return(function(zr,Ao,Cr){return ee(Ao?Cr(X(zr),!0):X(zr),W,new zr.constructor)})(yr,Nr,wo);case d:case h:return new Br(yr);case p:return(function(zr){var Ao=new zr.constructor(zr.source,B.exec(zr));return Ao.lastIndex=zr.lastIndex,Ao})(yr);case v:return(function(zr,Ao,Cr){return ee(Ao?Cr(ve(zr),!0):ve(zr),ie,new zr.constructor)})(yr,Nr,wo);case g:return(function(zr){return Tn?Object(Tn.call(zr)):{}})(yr)}})(Ke,ho,Ye,bt)}}Rn||(Rn=new Be);var bo=Rn.get(Ke);if(bo)return bo;if(Rn.set(Ke,Kn),!Fr)var Bo=Yt?(function(yr){return(function(Vr,wo,Nr){var Br=wo(Vr);return vt(Vr)?Br:(function(zr,Ao){for(var Cr=-1,Ho=Ao.length,Xo=zr.length;++Cr<Ho;)zr[Xo+Cr]=Ao[Cr];return zr})(Br,Nr(Vr))})(yr,dn,yt)})(Ke):dn(Ke);return(function(yr,Vr){for(var wo=-1,Nr=yr?yr.length:0;++wo<Nr&&Vr(yr[wo],wo,yr)!==!1;);})(Bo||Ke,(function(yr,Vr){Bo&&(yr=Ke[Vr=yr]),ht(Kn,Vr,Ye(yr,bt,Yt,wt,Vr,Ke,Rn))})),Kn}function Je(Ke){return!(!tr(Ke)||(function(bt){return!!Y&&Y in bt})(Ke))&&(Mn(Ke)||te(Ke)?oe:N).test(xt(Ke))}function lt(Ke){var bt=new Ke.constructor(Ke.byteLength);return new Ee(bt).set(new Ee(Ke)),bt}function Ue(Ke,bt,Yt,wt){Yt||(Yt={});for(var Gt=-1,An=bt.length;++Gt<An;){var Rn=bt[Gt],Kn=void 0;ht(Yt,Rn,Kn===void 0?Ke[Rn]:Kn)}return Yt}function ze(Ke,bt){var Yt,wt,Gt=Ke.__data__;return((wt=typeof(Yt=bt))=="string"||wt=="number"||wt=="symbol"||wt=="boolean"?Yt!=="__proto__":Yt===null)?Gt[typeof bt=="string"?"string":"hash"]:Gt.map}function ut(Ke,bt){var Yt=(function(wt,Gt){return wt?.[Gt]})(Ke,bt);return Je(Yt)?Yt:void 0}He.prototype.clear=function(){this.__data__=st?st(null):{}},He.prototype.delete=function(Ke){return this.has(Ke)&&delete this.__data__[Ke]},He.prototype.get=function(Ke){var bt=this.__data__;if(st){var Yt=bt[Ke];return Yt===n?void 0:Yt}return De.call(bt,Ke)?bt[Ke]:void 0},He.prototype.has=function(Ke){var bt=this.__data__;return st?bt[Ke]!==void 0:De.call(bt,Ke)},He.prototype.set=function(Ke,bt){return this.__data__[Ke]=st&&bt===void 0?n:bt,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(Ke){var bt=this.__data__,Yt=rn(bt,Ke);return!(Yt<0)&&(Yt==bt.length-1?bt.pop():Ne.call(bt,Yt,1),!0)},ke.prototype.get=function(Ke){var bt=this.__data__,Yt=rn(bt,Ke);return Yt<0?void 0:bt[Yt][1]},ke.prototype.has=function(Ke){return rn(this.__data__,Ke)>-1},ke.prototype.set=function(Ke,bt){var Yt=this.__data__,wt=rn(Yt,Ke);return wt<0?Yt.push([Ke,bt]):Yt[wt][1]=bt,this},me.prototype.clear=function(){this.__data__={hash:new He,map:new(Wt||ke),string:new He}},me.prototype.delete=function(Ke){return ze(this,Ke).delete(Ke)},me.prototype.get=function(Ke){return ze(this,Ke).get(Ke)},me.prototype.has=function(Ke){return ze(this,Ke).has(Ke)},me.prototype.set=function(Ke,bt){return ze(this,Ke).set(Ke,bt),this},Be.prototype.clear=function(){this.__data__=new ke},Be.prototype.delete=function(Ke){return this.__data__.delete(Ke)},Be.prototype.get=function(Ke){return this.__data__.get(Ke)},Be.prototype.has=function(Ke){return this.__data__.has(Ke)},Be.prototype.set=function(Ke,bt){var Yt=this.__data__;if(Yt instanceof ke){var wt=Yt.__data__;if(!Wt||wt.length<199)return wt.push([Ke,bt]),this;Yt=this.__data__=new me(wt)}return Yt.set(Ke,bt),this};var yt=pt?ue(pt,Object):function(){return[]},jt=function(Ke){return pe.call(Ke)};function mn(Ke,bt){return!!(bt=bt??r)&&(typeof Ke=="number"||q.test(Ke))&&Ke>-1&&Ke%1==0&&Ke<bt}function Nn(Ke){var bt=Ke&&Ke.constructor;return Ke===(typeof bt=="function"&&bt.prototype||he)}function xt(Ke){if(Ke!=null){try{return be.call(Ke)}catch{}try{return Ke+""}catch{}}return""}function sn(Ke,bt){return Ke===bt||Ke!=Ke&&bt!=bt}(en&&jt(new en(new ArrayBuffer(1)))!=b||Wt&&jt(new Wt)!=u||Ut&&jt(Ut.resolve())!=f||ct&&jt(new ct)!=v||_t&&jt(new _t)!=y)&&(jt=function(Ke){var bt=pe.call(Ke),Yt=bt==c?Ke.constructor:void 0,wt=Yt?xt(Yt):void 0;if(wt)switch(wt){case Ot:return b;case Ae:return u;case je:return f;case at:return v;case gt:return y}return bt});var vt=Array.isArray;function Nt(Ke){return Ke!=null&&(function(bt){return typeof bt=="number"&&bt>-1&&bt%1==0&&bt<=r})(Ke.length)&&!Mn(Ke)}var bn=Rt||function(){return!1};function Mn(Ke){var bt=tr(Ke)?pe.call(Ke):"";return bt==s||bt==l}function tr(Ke){var bt=typeof Ke;return!!Ke&&(bt=="object"||bt=="function")}function dn(Ke){return Nt(Ke)?rt(Ke):(function(bt){if(!Nn(bt))return Bt(bt);var Yt=[];for(var wt in Object(bt))De.call(bt,wt)&&wt!="constructor"&&Yt.push(wt);return Yt})(Ke)}e.exports=function(Ke){return Ye(Ke,!0,!0)}}));function zae(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o3t=0;function i3t(e){return"__private_"+o3t+++"_"+e}function a3t(e,t,n){const r=[];return e.forEach((o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach(((i,a,s)=>{i!==""&&r.push(i),a<s.length-1&&r.push(n)})))),r}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function jae(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=a3t(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var MCe=(Wm=i3t("apply"),class{constructor(e){Object.defineProperty(this,Wm,{value:s3t}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(zae(this,Wm)[Wm],this):zae(this,Wm)[Wm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(r,o){return Object.prototype.hasOwnProperty.call(r,o)})(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return jae(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return jae(n,t)}});function s3t(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var PCe=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,s,l){var u=(function(d){for(var c=t[d]?t[d]:[],f=d.indexOf(":"),p=f===-1?[d]:[d.substring(0,f),d.substring(f+1)],v=Object.keys(t),h=0,g=v.length;h<g;h++){var y=v[h];if(y==="*"&&(c=c.concat(t[y])),p.length===2&&p[0]===y){c=c.concat(t[y]);break}}return c})(n);u.length&&(function(d,c,f){for(var p=0,v=c.length;p<v&&c[p];p++)c[p].event=d,c[p].apply(c[p],f)})(n,u,[r,o,i,a,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,(function o(){r.apply(this,arguments),e.off(n,o)}))},e.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,s=i?i.length:0;a<s;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},e},l3t={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},GM=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function NCe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}NCe.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var u3t=/[\/\+\.]/,c3t=function(e,t){function n(r){var o=(function(i,a,s){var l=new NCe(i,s||/[\/\.]/);return a!==void 0?l.match(a):l})(r,e,u3t);return o&&o.length>=2}return t?n(t.split(";")[0]):n},d3t=0;function f3t(e){return"__private_"+d3t+++"_"+e}var KM=f3t("publish");class RCe{constructor(){Object.defineProperty(this,KM,{value:p3t}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,KM)[KM](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function p3t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((r=>{r(...t)}))}RCe.VERSION="2.0.3";var Hae=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Wae={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Vae(e){let t="";return e.replace(/[^A-Z0-9]/gi,(n=>(t+=`-${(function(r){return r.charCodeAt(0).toString(32)})(n)}`,"/")))+t}var h3t=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function QM(e){return e<10?`0${e}`:e.toString()}var i6=function(){const e=new Date;return`${QM(e.getHours())}:${QM(e.getMinutes())}:${QM(e.getSeconds())}`},BCe={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${i6()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${i6()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${i6()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${i6()}]`,...t)}}},g3t={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},LCe=l3t;let FCe,UCe;function Ir(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var v3t=0;function qa(e){return"__private_"+v3t+++"_"+e}const{nanoid:m3t}=LCe,{justErrorsLogger:y3t,debugLogger:b3t}=BCe;class vd extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class w3t extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var ms=qa("plugins"),rw=qa("storeUnsubscribe"),pf=qa("emitter"),_g=qa("preProcessors"),Dg=qa("uploaders"),Df=qa("postProcessors"),r3=qa("checkRestrictions"),YM=qa("checkMinNumberOfFiles"),SA=qa("checkRequiredMetaFieldsOnFile"),ZM=qa("checkRequiredMetaFields"),Ga=qa("showOrLogErrorAndThrow"),ow=qa("assertNewUploadAllowed"),iw=qa("checkAndCreateFileStateObject"),aw=qa("startIfAutoProceed"),XM=qa("addListeners"),yc=qa("updateOnlineStatus"),hf=qa("createUpload"),JM=qa("getUpload"),Ug=qa("removeUpload"),gf=qa("runUpload");FCe=Symbol.for("uppy test: getPlugins"),UCe=Symbol.for("uppy test: createUpload");class $Ce{constructor(t){Object.defineProperty(this,gf,{value:P3t}),Object.defineProperty(this,Ug,{value:M3t}),Object.defineProperty(this,JM,{value:O3t}),Object.defineProperty(this,hf,{value:I3t}),Object.defineProperty(this,XM,{value:D3t}),Object.defineProperty(this,aw,{value:_3t}),Object.defineProperty(this,iw,{value:T3t}),Object.defineProperty(this,ow,{value:k3t}),Object.defineProperty(this,Ga,{value:E3t}),Object.defineProperty(this,ZM,{value:S3t}),Object.defineProperty(this,SA,{value:x3t}),Object.defineProperty(this,YM,{value:C3t}),Object.defineProperty(this,r3,{value:A3t}),Object.defineProperty(this,ms,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,rw,{writable:!0,value:void 0}),Object.defineProperty(this,pf,{writable:!0,value:PCe()}),Object.defineProperty(this,_g,{writable:!0,value:new Set}),Object.defineProperty(this,Dg,{writable:!0,value:new Set}),Object.defineProperty(this,Df,{writable:!0,value:new Set}),Object.defineProperty(this,yc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=g3t;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new RCe,logger:y3t,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=b3t),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=zv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:h3t(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ir(this,rw)[rw]=this.store.subscribe(((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)})),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Ir(this,XM)[XM]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Ir(this,pf)[pf].emit(t,...r)}on(t,n){return Ir(this,pf)[pf].on(t,n),this}once(t,n){return Ir(this,pf)[pf].once(t,n),this}off(t,n){return Ir(this,pf)[pf].off(t,n),this}updateAll(t){this.iteratePlugins((n=>{n.update(t)}))}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new MCe([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins((n=>{n.setOptions()})),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach((o=>{const i={...n[o]};i.progress={...i.progress,...t},r[o]=i})),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Ir(this,_g)[_g].add(t)}removePreProcessor(t){return Ir(this,_g)[_g].delete(t)}addPostProcessor(t){Ir(this,Df)[Df].add(t)}removePostProcessor(t){return Ir(this,Df)[Df].delete(t)}addUploader(t){Ir(this,Dg)[Dg].add(t)}removeUploader(t){return Ir(this,Dg)[Dg].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach((o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}})),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter((v=>{let{progress:h}=v;return!h.uploadComplete&&h.uploadStarted})),a=o.filter((v=>!v.progress.uploadStarted)),s=o.filter((v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess)),l=o.filter((v=>v.progress.uploadStarted)),u=o.filter((v=>v.isPaused)),d=o.filter((v=>v.progress.uploadComplete)),c=o.filter((v=>v.error)),f=i.filter((v=>!v.isPaused)),p=o.filter((v=>v.progress.preprocess||v.progress.postprocess));return{newFiles:a,startedFiles:s,uploadStartedFiles:l,pausedFiles:u,completeFiles:d,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:f,processingFiles:p,isUploadStarted:l.length>0,isAllComplete:n===100&&d.length===o.length&&p.length===0,isAllErrored:!!r&&c.length===o.length,isAllPaused:i.length!==0&&u.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some((v=>v.isGhost))}}validateRestrictions(t,n){try{return Ir(this,r3)[r3](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){Ir(this,ow)[ow](t);const{files:n}=this.getState();let r=Ir(this,iw)[iw](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),Ir(this,aw)[aw](),r.id}addFiles(t){Ir(this,ow)[ow]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=Ir(this,iw)[iw](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach((i=>{this.emit("file-added",i)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach((i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)})),r.length>0&&Ir(this,aw)[aw](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach((a=>{i+=`
- * ${a.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},s=Object.create(null);function l(c){return s[c]===void 0}t.forEach((c=>{r[c]&&(s[c]=r[c],delete i[c])})),Object.keys(a).forEach((c=>{const f=o[c].fileIDs.filter(l);f.length!==0?a[c]={...o[c],fileIDs:f}:delete a[c]}));const u={currentUploads:a,files:i};Object.keys(i).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const d=Object.keys(s);d.forEach((c=>{this.emit("file-removed",s[c],n)})),d.length>5?this.log(`Removed ${d.length} files`):this.log(`Removed files: ${d.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!0};t[n]=r})),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r})),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter((o=>t[o].error));if(n.forEach((o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i})),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Ir(this,hf)[hf](n,{forceAllowNewUpload:!0});return Ir(this,gf)[gf](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Ir(this,hf)[hf]([t],{forceAllowNewUpload:!0});return Ir(this,gf)[gf](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins((t=>{t.provider&&t.provider.logout&&t.provider.logout()}))}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter((l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess));if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((l=>l.progress.bytesTotal!=null)),r=t.filter((l=>l.progress.bytesTotal==null));if(n.length===0){const l=100*t.length,u=r.reduce(((c,f)=>c+f.progress.percentage),0),d=Math.round(u/l*100);return void this.setState({totalProgress:d})}let o=n.reduce(((l,u)=>l+u.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((l=>{a+=l.progress.bytesUploaded})),r.forEach((l=>{a+=i*(l.progress.percentage||0)/100}));let s=o===0?0:Math.round(a/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Ir(this,ms)[ms]?Ir(this,ms)[ms][r.type].push(r):Ir(this,ms)[ms][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Ir(this,ms)[ms])){const r=n.find((o=>o.id===t));if(r!=null)return r}}[FCe](t){return Ir(this,ms)[ms][t]}iteratePlugins(t){Object.values(Ir(this,ms)[ms]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Ir(this,ms)[ms][t.type],r=n.findIndex((i=>i.id===t.id));r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Ir(this,rw)[rw](),this.iteratePlugins((t=>{this.removePlugin(t)})),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Ir(this,yc)[yc]),window.removeEventListener("offline",Ir(this,yc)[yc]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Ir(this,gf)[gf](t):(Ir(this,Ug)[Ug](t),Promise.reject(new Error("Nonexistent upload")))}[UCe](){return Ir(this,hf)[hf](...arguments)}addResultData(t,n){if(!Ir(this,JM)[JM](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Ir(this,ms)[ms].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then((()=>{Ir(this,YM)[YM](n),Ir(this,ZM)[ZM](n)})).catch((o=>{Ir(this,Ga)[Ga](o)})).then((()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap((l=>l.fileIDs)),a=[];Object.keys(n).forEach((l=>{const u=this.getFile(l);u.progress.uploadStarted||i.indexOf(l)!==-1||a.push(u.id)}));const s=Ir(this,hf)[hf](a);return Ir(this,gf)[gf](s)})).catch((o=>{Ir(this,Ga)[Ga](o,{showInformer:!1})})))}}function A3t(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new vd(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((s=>s.indexOf("/")>-1?!!e.type&&c3t(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase()))){const s=a.join(", ");throw new vd(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach((l=>{s+=l.size})),s>o)throw new vd(this.i18n("exceedsSize",{size:GM(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new vd(this.i18n("exceedsSize",{size:GM(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new vd(this.i18n("inferiorSize",{size:GM(r)}))}function C3t(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new vd(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function x3t(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new vd(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),Ir(this,Ga)[Ga](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function S3t(e){const t=Object.keys(e).flatMap((n=>{const r=this.getFile(n);return Ir(this,SA)[SA](r)}));if(t.length)throw new w3t(t,`${this.i18n("missingRequiredMetaField")}`)}function E3t(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let s=i;if(a&&(s+=` ${a}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function k3t(e){const{allowNewUpload:t}=this.getState();t===!1&&Ir(this,Ga)[Ga](new vd(this.i18n("noMoreFilesAllowed")),{file:e})}function T3t(e,t){const n=(function(c){var f;if(c.type)return c.type;const p=c.name?(f=Hae(c.name).extension)==null?void 0:f.toLowerCase():null;return p&&p in Wae?Wae[p]:"application/octet-stream"})(t),r=(function(c,f){return f.name?f.name:c.split("/")[0]==="image"?`${c.split("/")[0]}.${c.split("/")[1]}`:"noname"})(n,t),o=Hae(r).extension,i=!!t.isRemote,a=(function(c){let f="uppy";return typeof c.name=="string"&&(f+=`-${Vae(c.name.toLowerCase())}`),c.type!==void 0&&(f+=`-${c.type}`),c.meta&&typeof c.meta.relativePath=="string"&&(f+=`-${Vae(c.meta.relativePath.toLowerCase())}`),c.data.size!==void 0&&(f+=`-${c.data.size}`),c.data.lastModified!==void 0&&(f+=`-${c.data.lastModified}`),f})({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const c=new vd(this.i18n("noDuplicates",{fileName:r}));Ir(this,Ga)[Ga](c,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(u,e);d===!1?Ir(this,Ga)[Ga](new vd("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(u=d);try{const c=Object.keys(e).map((f=>e[f]));Ir(this,r3)[r3](u,c)}catch(c){Ir(this,Ga)[Ga](c,{file:u})}return u}function _3t(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function D3t(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),Ir(this,Ga)[Ga](o,{throwErr:!1})}else Ir(this,Ga)[Ga](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:Ir(this,Df)[Df].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("preprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})})),this.on("postprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("postprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(t=>{t&&Ir(this,SA)[SA](t)})),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Ir(this,yc)[yc]),window.addEventListener("offline",Ir(this,yc)[yc]),setTimeout(Ir(this,yc)[yc],3e3))}function I3t(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=m3t();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function O3t(e){const{currentUploads:t}=this.getState();return t[e]}function M3t(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function P3t(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Ir(this,_g)[_g],...Ir(this,Dg)[Dg],...Ir(this,Df)[Df]];try{for(let a=r;a<o.length&&n;a++){const s=o[a],l={...n,step:a};this.setState({currentUploads:{...t,[e]:l}}),await s(l.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Ir(this,Ug)[Ug](e),a}if(n){n.fileIDs.forEach((u=>{const d=this.getFile(u);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)}));const a=n.fileIDs.map((u=>this.getFile(u))),s=a.filter((u=>!u.error)),l=a.filter((u=>u.error));await this.addResultData(e,{successful:s,failed:l,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Ir(this,Ug)[Ug](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}$Ce.VERSION="2.1.3";var zCe=$Ce,N3t=cm((function(e,t){var n,r,o,i,a,s,l,u,d={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p($,L){for(var W in L)$[W]=L[W];return $}function v($){var L=$.parentNode;L&&L.removeChild($)}function h($,L,W){var ie,ee,te,X={};for(te in L)te=="key"?ie=L[te]:te=="ref"?ee=L[te]:X[te]=L[te];if(arguments.length>2&&(X.children=arguments.length>3?n.call(arguments,2):W),typeof $=="function"&&$.defaultProps!=null)for(te in $.defaultProps)X[te]===void 0&&(X[te]=$.defaultProps[te]);return g($,X,ie,ee,null)}function g($,L,W,ie,ee){var te={type:$,props:L,key:W,ref:ie,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:ee??++o};return ee==null&&r.vnode!=null&&r.vnode(te),te}function y($){return $.children}function m($,L){this.props=$,this.context=L}function b($,L){if(L==null)return $.__?b($.__,$.__.__k.indexOf($)+1):null;for(var W;L<$.__k.length;L++)if((W=$.__k[L])!=null&&W.__e!=null)return W.__e;return typeof $.type=="function"?b($):null}function w($){var L,W;if(($=$.__)!=null&&$.__c!=null){for($.__e=$.__c.base=null,L=0;L<$.__k.length;L++)if((W=$.__k[L])!=null&&W.__e!=null){$.__e=$.__c.base=W.__e;break}return w($)}}function A($){(!$.__d&&($.__d=!0)&&a.push($)&&!S.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(S)}function S(){for(var $;S.__r=a.length;)$=a.sort((function(L,W){return L.__v.__b-W.__v.__b})),a=[],$.some((function(L){var W,ie,ee,te,X,ue;L.__d&&(X=(te=(W=L).__v).__e,(ue=W.__P)&&(ie=[],(ee=p({},te)).__v=te.__v+1,N(ue,te,ee,W.__n,ue.ownerSVGElement!==void 0,te.__h!=null?[X]:null,ie,X??b(te),te.__h),q(ie,te),te.__e!=X&&w(te)))}))}function k($,L,W,ie,ee,te,X,ue,ve,Me){var we,he,Te,Y,be,De,pe,oe=ie&&ie.__k||c,ce=oe.length;for(W.__k=[],we=0;we<L.length;we++)if((Y=W.__k[we]=(Y=L[we])==null||typeof Y=="boolean"?null:typeof Y=="string"||typeof Y=="number"||typeof Y=="bigint"?g(null,Y,null,null,Y):Array.isArray(Y)?g(y,{children:Y},null,null,null):Y.__b>0?g(Y.type,Y.props,Y.key,null,Y.__v):Y)!=null){if(Y.__=W,Y.__b=W.__b+1,(Te=oe[we])===null||Te&&Y.key==Te.key&&Y.type===Te.type)oe[we]=void 0;else for(he=0;he<ce;he++){if((Te=oe[he])&&Y.key==Te.key&&Y.type===Te.type){oe[he]=void 0;break}Te=null}N($,Y,Te=Te||d,ee,te,X,ue,ve,Me),be=Y.__e,(he=Y.ref)&&Te.ref!=he&&(pe||(pe=[]),Te.ref&&pe.push(Te.ref,null,Y),pe.push(he,Y.__c||be,Y)),be!=null?(De==null&&(De=be),typeof Y.type=="function"&&Y.__k===Te.__k?Y.__d=ve=M(Y,ve,$):ve=D($,Y,Te,oe,be,ve),typeof W.type=="function"&&(W.__d=ve)):ve&&Te.__e==ve&&ve.parentNode!=$&&(ve=b(Te))}for(W.__e=De,we=ce;we--;)oe[we]!=null&&(typeof W.type=="function"&&oe[we].__e!=null&&oe[we].__e==W.__d&&(W.__d=b(ie,we+1)),H(oe[we],oe[we]));if(pe)for(we=0;we<pe.length;we++)j(pe[we],pe[++we],pe[++we])}function M($,L,W){for(var ie,ee=$.__k,te=0;ee&&te<ee.length;te++)(ie=ee[te])&&(ie.__=$,L=typeof ie.type=="function"?M(ie,L,W):D(W,ie,ie,ee,ie.__e,L));return L}function D($,L,W,ie,ee,te){var X,ue,ve;if(L.__d!==void 0)X=L.__d,L.__d=void 0;else if(W==null||ee!=te||ee.parentNode==null)e:if(te==null||te.parentNode!==$)$.appendChild(ee),X=null;else{for(ue=te,ve=0;(ue=ue.nextSibling)&&ve<ie.length;ve+=2)if(ue==ee)break e;$.insertBefore(ee,te),X=te}return X!==void 0?X:ee.nextSibling}function P($,L,W){L[0]==="-"?$.setProperty(L,W):$[L]=W==null?"":typeof W!="number"||f.test(L)?W:W+"px"}function O($,L,W,ie,ee){var te;e:if(L==="style")if(typeof W=="string")$.style.cssText=W;else{if(typeof ie=="string"&&($.style.cssText=ie=""),ie)for(L in ie)W&&L in W||P($.style,L,"");if(W)for(L in W)ie&&W[L]===ie[L]||P($.style,L,W[L])}else if(L[0]==="o"&&L[1]==="n")te=L!==(L=L.replace(/Capture$/,"")),L=L.toLowerCase()in $?L.toLowerCase().slice(2):L.slice(2),$.l||($.l={}),$.l[L+te]=W,W?ie||$.addEventListener(L,te?B:_,te):$.removeEventListener(L,te?B:_,te);else if(L!=="dangerouslySetInnerHTML"){if(ee)L=L.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(L!=="href"&&L!=="list"&&L!=="form"&&L!=="tabIndex"&&L!=="download"&&L in $)try{$[L]=W??"";break e}catch{}typeof W=="function"||(W!=null&&(W!==!1||L[0]==="a"&&L[1]==="r")?$.setAttribute(L,W):$.removeAttribute(L))}}function _($){this.l[$.type+!1](r.event?r.event($):$)}function B($){this.l[$.type+!0](r.event?r.event($):$)}function N($,L,W,ie,ee,te,X,ue,ve){var Me,we,he,Te,Y,be,De,pe,oe,ce,Re,Ee=L.type;if(L.constructor!==void 0)return null;W.__h!=null&&(ve=W.__h,ue=L.__e=W.__e,L.__h=null,te=[ue]),(Me=r.__b)&&Me(L);try{e:if(typeof Ee=="function"){if(pe=L.props,oe=(Me=Ee.contextType)&&ie[Me.__c],ce=Me?oe?oe.props.value:Me.__:ie,W.__c?De=(we=L.__c=W.__c).__=we.__E:("prototype"in Ee&&Ee.prototype.render?L.__c=we=new Ee(pe,ce):(L.__c=we=new m(pe,ce),we.constructor=Ee,we.render=G),oe&&oe.sub(we),we.props=pe,we.state||(we.state={}),we.context=ce,we.__n=ie,he=we.__d=!0,we.__h=[]),we.__s==null&&(we.__s=we.state),Ee.getDerivedStateFromProps!=null&&(we.__s==we.state&&(we.__s=p({},we.__s)),p(we.__s,Ee.getDerivedStateFromProps(pe,we.__s))),Te=we.props,Y=we.state,he)Ee.getDerivedStateFromProps==null&&we.componentWillMount!=null&&we.componentWillMount(),we.componentDidMount!=null&&we.__h.push(we.componentDidMount);else{if(Ee.getDerivedStateFromProps==null&&pe!==Te&&we.componentWillReceiveProps!=null&&we.componentWillReceiveProps(pe,ce),!we.__e&&we.shouldComponentUpdate!=null&&we.shouldComponentUpdate(pe,we.__s,ce)===!1||L.__v===W.__v){we.props=pe,we.state=we.__s,L.__v!==W.__v&&(we.__d=!1),we.__v=L,L.__e=W.__e,L.__k=W.__k,L.__k.forEach((function(Le){Le&&(Le.__=L)})),we.__h.length&&X.push(we);break e}we.componentWillUpdate!=null&&we.componentWillUpdate(pe,we.__s,ce),we.componentDidUpdate!=null&&we.__h.push((function(){we.componentDidUpdate(Te,Y,be)}))}we.context=ce,we.props=pe,we.state=we.__s,(Me=r.__r)&&Me(L),we.__d=!1,we.__v=L,we.__P=$,Me=we.render(we.props,we.state,we.context),we.state=we.__s,we.getChildContext!=null&&(ie=p(p({},ie),we.getChildContext())),he||we.getSnapshotBeforeUpdate==null||(be=we.getSnapshotBeforeUpdate(Te,Y)),Re=Me!=null&&Me.type===y&&Me.key==null?Me.props.children:Me,k($,Array.isArray(Re)?Re:[Re],L,W,ie,ee,te,X,ue,ve),we.base=L.__e,L.__h=null,we.__h.length&&X.push(we),De&&(we.__E=we.__=null),we.__e=!1}else te==null&&L.__v===W.__v?(L.__k=W.__k,L.__e=W.__e):L.__e=U(W.__e,L,W,ie,ee,te,X,ve);(Me=r.diffed)&&Me(L)}catch(Le){L.__v=null,(ve||te!=null)&&(L.__e=ue,L.__h=!!ve,te[te.indexOf(ue)]=null),r.__e(Le,L,W)}}function q($,L){r.__c&&r.__c(L,$),$.some((function(W){try{$=W.__h,W.__h=[],$.some((function(ie){ie.call(W)}))}catch(ie){r.__e(ie,W.__v)}}))}function U($,L,W,ie,ee,te,X,ue){var ve,Me,we,he=W.props,Te=L.props,Y=L.type,be=0;if(Y==="svg"&&(ee=!0),te!=null){for(;be<te.length;be++)if((ve=te[be])&&"setAttribute"in ve==!!Y&&(Y?ve.localName===Y:ve.nodeType===3)){$=ve,te[be]=null;break}}if($==null){if(Y===null)return document.createTextNode(Te);$=ee?document.createElementNS("http://www.w3.org/2000/svg",Y):document.createElement(Y,Te.is&&Te),te=null,ue=!1}if(Y===null)he===Te||ue&&$.data===Te||($.data=Te);else{if(te=te&&n.call($.childNodes),Me=(he=W.props||d).dangerouslySetInnerHTML,we=Te.dangerouslySetInnerHTML,!ue){if(te!=null)for(he={},be=0;be<$.attributes.length;be++)he[$.attributes[be].name]=$.attributes[be].value;(we||Me)&&(we&&(Me&&we.__html==Me.__html||we.__html===$.innerHTML)||($.innerHTML=we&&we.__html||""))}if((function(De,pe,oe,ce,Re){var Ee;for(Ee in oe)Ee==="children"||Ee==="key"||Ee in pe||O(De,Ee,null,oe[Ee],ce);for(Ee in pe)Re&&typeof pe[Ee]!="function"||Ee==="children"||Ee==="key"||Ee==="value"||Ee==="checked"||oe[Ee]===pe[Ee]||O(De,Ee,pe[Ee],oe[Ee],ce)})($,Te,he,ee,ue),we)L.__k=[];else if(be=L.props.children,k($,Array.isArray(be)?be:[be],L,W,ie,ee&&Y!=="foreignObject",te,X,te?te[0]:W.__k&&b(W,0),ue),te!=null)for(be=te.length;be--;)te[be]!=null&&v(te[be]);ue||("value"in Te&&(be=Te.value)!==void 0&&(be!==he.value||be!==$.value||Y==="progress"&&!be)&&O($,"value",be,he.value,!1),"checked"in Te&&(be=Te.checked)!==void 0&&be!==$.checked&&O($,"checked",be,he.checked,!1))}return $}function j($,L,W){try{typeof $=="function"?$(L):$.current=L}catch(ie){r.__e(ie,W)}}function H($,L,W){var ie,ee;if(r.unmount&&r.unmount($),(ie=$.ref)&&(ie.current&&ie.current!==$.__e||j(ie,null,L)),(ie=$.__c)!=null){if(ie.componentWillUnmount)try{ie.componentWillUnmount()}catch(te){r.__e(te,L)}ie.base=ie.__P=null}if(ie=$.__k)for(ee=0;ee<ie.length;ee++)ie[ee]&&H(ie[ee],L,typeof $.type!="function");W||$.__e==null||v($.__e),$.__e=$.__d=void 0}function G($,L,W){return this.constructor($,W)}function Z($,L,W){var ie,ee,te;r.__&&r.__($,L),ee=(ie=typeof W=="function")?null:W&&W.__k||L.__k,te=[],N(L,$=(!ie&&W||L).__k=h(y,null,[$]),ee||d,d,L.ownerSVGElement!==void 0,!ie&&W?[W]:ee?null:L.firstChild?n.call(L.childNodes):null,te,!ie&&W?W:ee?ee.__e:L.firstChild,ie),q(te,$)}n=c.slice,r={__e:function($,L){for(var W,ie,ee;L=L.__;)if((W=L.__c)&&!W.__)try{if((ie=W.constructor)&&ie.getDerivedStateFromError!=null&&(W.setState(ie.getDerivedStateFromError($)),ee=W.__d),W.componentDidCatch!=null&&(W.componentDidCatch($),ee=W.__d),ee)return W.__E=W}catch(te){$=te}throw $}},o=0,i=function($){return $!=null&&$.constructor===void 0},m.prototype.setState=function($,L){var W;W=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof $=="function"&&($=$(p({},W),this.props)),$&&p(W,$),$!=null&&this.__v&&(L&&this.__h.push(L),A(this))},m.prototype.forceUpdate=function($){this.__v&&(this.__e=!0,$&&this.__h.push($),A(this))},m.prototype.render=y,a=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,u=0,t.Component=m,t.Fragment=y,t.cloneElement=function($,L,W){var ie,ee,te,X=p({},$.props);for(te in L)te=="key"?ie=L[te]:te=="ref"?ee=L[te]:X[te]=L[te];return arguments.length>2&&(X.children=arguments.length>3?n.call(arguments,2):W),g($.type,X,ie||$.key,ee||$.ref,null)},t.createContext=function($,L){var W={__c:L="__cC"+u++,__:$,Consumer:function(ie,ee){return ie.children(ee)},Provider:function(ie){var ee,te;return this.getChildContext||(ee=[],(te={})[L]=this,this.getChildContext=function(){return te},this.shouldComponentUpdate=function(X){this.props.value!==X.value&&ee.some(A)},this.sub=function(X){ee.push(X);var ue=X.componentWillUnmount;X.componentWillUnmount=function(){ee.splice(ee.indexOf(X),1),ue&&ue.call(X)}}),ie.children}};return W.Provider.__=W.Consumer.contextType=W},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function $(L,W){Z(L,W,$)},t.isValidElement=i,t.options=r,t.render=Z,t.toChildArray=function $(L,W){return W=W||[],L==null||typeof L=="boolean"||(Array.isArray(L)?L.some((function(ie){$(ie,W)})):W.push(L)),W}})),R3t=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},oG=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new MCe([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function qae(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var B3t=0;function L3t(e){return"__private_"+B3t+++"_"+e}const{render:Gae}=N3t;var sw=L3t("updateUI");class iG extends oG{constructor(){super(...arguments),Object.defineProperty(this,sw,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=R3t(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return qae(this,sw)[sw]=(function(l){let u=null,d=null;return function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return d=f,u||(u=Promise.resolve().then((()=>(u=null,l(...d))))),u}})((l=>{this.uppy.getPlugin(this.id)&&(Gae(this.render(l),s),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),Gae(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,o.appendChild(s),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof iG)i=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins((l=>{if(l instanceof s)return i=l,!1}))}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var n,r;this.el!=null&&((n=(r=qae(this,sw))[sw])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var F3t=iG;const{debugLogger:U3t}=BCe;var x4=zCe,$3t=zCe,z3t=F3t,j3t=oG,H3t=U3t;x4.Uppy=$3t,x4.UIPlugin=z3t,x4.BasePlugin=j3t,x4.debugLogger=H3t;class W3t extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var aG=W3t,eP=function(){return fetch(...arguments).catch((e=>{throw e.name==="AbortError"?e:new aG(e)}))};class V3t extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var a6,Lp,ld,Fp,Kae,q3t=V3t;function ad(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var G3t=0;function tP(e){return"__private_"+G3t+++"_"+e}async function nP(e){if(e.status===401)throw new q3t;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var Qae=(Lp=tP("getPostResponseFunc"),ld=tP("getUrl"),Fp=tP("errorHandler"),Kae=a6=class jCe{constructor(t,n){Object.defineProperty(this,Fp,{value:Q3t}),Object.defineProperty(this,ld,{value:K3t}),Object.defineProperty(this,Lp,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...jCe.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ad(this,ld)[ld](t),{method:"OPTIONS"}).then((n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map((r=>r.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then((n=>{let[r,o]=n;return Object.keys(o).forEach((i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])})),o}))}get(t,n){return this.preflightAndHeaders(t).then((r=>eP(ad(this,ld)[ld](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ad(this,Lp)[Lp](n)).then(nP).catch(ad(this,Fp)[Fp]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then((i=>eP(ad(this,ld)[ld](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)}))).then(ad(this,Lp)[Lp](r)).then(nP).catch(ad(this,Fp)[Fp](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then((i=>eP(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null}))).then(ad(this,Lp)[Lp](r)).then(nP).catch(ad(this,Fp)[Fp](o,t))}},a6.VERSION="2.0.4",a6.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${a6.VERSION}`},Kae);function K3t(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Q3t(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${ad(this,ld)[ld](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var Y3t={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},rd,Up,Eu,_s,s6;let Yae,Zae;function La(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Z3t=0;function lw(e){return"__private_"+Z3t+++"_"+e}var X3t=(rd=lw("queued"),Up=lw("emitter"),Eu=lw("isOpen"),_s=lw("socket"),s6=lw("handleMessage"),Yae=Symbol.for("uppy test: getSocket"),Zae=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,rd,{writable:!0,value:[]}),Object.defineProperty(this,Up,{writable:!0,value:PCe()}),Object.defineProperty(this,Eu,{writable:!0,value:!1}),Object.defineProperty(this,_s,{writable:!0,value:void 0}),Object.defineProperty(this,s6,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return La(this,Eu)[Eu]}[Yae](){return La(this,_s)[_s]}[Zae](){return La(this,rd)[rd]}open(){La(this,_s)[_s]=new WebSocket(this.opts.target),La(this,_s)[_s].onopen=()=>{for(La(this,Eu)[Eu]=!0;La(this,rd)[rd].length>0&&La(this,Eu)[Eu];){const e=La(this,rd)[rd].shift();this.send(e.action,e.payload)}},La(this,_s)[_s].onclose=()=>{La(this,Eu)[Eu]=!1},La(this,_s)[_s].onmessage=La(this,s6)[s6]}close(){var e;(e=La(this,_s)[_s])==null||e.close()}send(e,t){La(this,Eu)[Eu]?La(this,_s)[_s].send(JSON.stringify({action:e,payload:t})):La(this,rd)[rd].push({action:e,payload:t})}on(e,t){La(this,Up)[Up].on(e,t)}emit(e,t){La(this,Up)[Up].emit(e,t)}once(e,t){La(this,Up)[Up].once(e,t)}}),J3t={RequestClient:Qae,Provider:class extends Qae{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map((r=>r.charAt(0).toUpperCase()+r.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Y3t}},Socket:X3t},$p,Vm,eAt=zv((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function uw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tAt=0;function Xae(e){return"__private_"+tAt+++"_"+e}var Jae=($p=Xae("emitter"),Vm=Xae("events"),class{constructor(e){Object.defineProperty(this,$p,{writable:!0,value:void 0}),Object.defineProperty(this,Vm,{writable:!0,value:[]}),uw(this,$p)[$p]=e}on(e,t){return uw(this,Vm)[Vm].push([e,t]),uw(this,$p)[$p].on(e,t)}remove(){for(const[e,t]of uw(this,Vm)[Vm].splice(0))uw(this,$p)[$p].off(e,t)}});function ku(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var nAt=0;function l7(e){return"__private_"+nAt+++"_"+e}var vf=l7("aliveTimer"),J0=l7("isDone"),cw=l7("onTimedOut"),eg=l7("timeout"),ese=class{constructor(e,t){Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,J0,{writable:!0,value:!1}),Object.defineProperty(this,cw,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),ku(this,eg)[eg]=e,ku(this,cw)[cw]=t}progress(){ku(this,J0)[J0]||ku(this,eg)[eg]>0&&(clearTimeout(ku(this,vf)[vf]),ku(this,vf)[vf]=setTimeout(ku(this,cw)[cw],ku(this,eg)[eg]))}done(){ku(this,J0)[J0]||(clearTimeout(ku(this,vf)[vf]),ku(this,vf)[vf]=null,ku(this,J0)[J0]=!0)}};function $a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rAt=0;function gm(e){return"__private_"+rAt+++"_"+e}function oAt(){return new Error("Cancelled")}var Zl=gm("activeRequests"),nl=gm("queuedHandlers"),o3=gm("call"),S4=gm("queueNext"),DU=gm("next"),rP=gm("queue"),IU=gm("dequeue");function iAt(e){$a(this,Zl)[Zl]+=1;let t,n=!1;try{t=e()}catch(r){throw $a(this,Zl)[Zl]-=1,r}return{abort:()=>{n||(n=!0,$a(this,Zl)[Zl]-=1,t(),$a(this,S4)[S4]())},done:()=>{n||(n=!0,$a(this,Zl)[Zl]-=1,$a(this,S4)[S4]())}}}function aAt(){queueMicrotask((()=>$a(this,DU)[DU]()))}function sAt(){if($a(this,Zl)[Zl]>=this.limit||$a(this,nl)[nl].length===0)return;const e=$a(this,nl)[nl].shift(),t=$a(this,o3)[o3](e.fn);e.abort=t.abort,e.done=t.done}function lAt(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{$a(this,IU)[IU](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=$a(this,nl)[nl].findIndex((o=>n.priority>o.priority));return r===-1?$a(this,nl)[nl].push(n):$a(this,nl)[nl].splice(r,0,n),n}function uAt(e){const t=$a(this,nl)[nl].indexOf(e);t!==-1&&$a(this,nl)[nl].splice(t,1)}var cAt={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,IU,{value:uAt}),Object.defineProperty(this,rP,{value:lAt}),Object.defineProperty(this,DU,{value:sAt}),Object.defineProperty(this,S4,{value:aAt}),Object.defineProperty(this,o3,{value:iAt}),Object.defineProperty(this,Zl,{writable:!0,value:0}),Object.defineProperty(this,nl,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return $a(this,Zl)[Zl]<this.limit?$a(this,o3)[o3](e):$a(this,rP)[rP](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const s=new Promise(((l,u)=>{a=n.run((()=>{let d,c;try{c=Promise.resolve(e(...o))}catch(f){c=Promise.reject(f)}return c.then((f=>{d?u(d):(a.done(),l(f))}),(f=>{d?u(d):(a.done(),u(f))})),()=>{d=oAt()}}),t)}));return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},tse,nse,HCe=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},dAt={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:fAt}=LCe,{Provider:pAt,RequestClient:hAt,Socket:gAt}=J3t,{RateLimitedQueue:vAt,internalRateLimitedQueue:oP}=cAt;function rse(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),HCe(e)?(n=new aG(n,e),n):(n.request=e,n)}function ose(e){return e.data.slice(0,e.data.size,e.meta.type)}var mAt=(nse=tse=class extends oG{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=dAt;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return HCe(o)&&(i=new aG(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),oP in this.opts?this.requests=this.opts[oP]:this.requests=new vAt(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((r=>{e.append(r,t[r])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=ose(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((o=>{const i=this.getOptions(o),a=ose(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new Jae(this.uppy);const l=new ese(r.timeout,(()=>{s.abort(),d.done();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,c),i(c)})),u=fAt();s.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),s.upload.addEventListener("progress",(c=>{this.uppy.log(`[XHRUpload] ${u} progress: ${c.loaded} / ${c.total}`),l.progress(),c.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:c.loaded,bytesTotal:c.total})})),s.addEventListener("load",(c=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),l.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(c.target.status,s.responseText,s)){const h=r.getResponseData(s.responseText,s),g=h[r.responseUrlFieldName],y={status:c.target.status,body:h,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const f=r.getResponseData(s.responseText,s),p=rse(s,r.getResponseError(s.responseText,s)),v={status:c.target.status,body:f};return this.uppy.emit("upload-error",e,p,v),i(p)})),s.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),l.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const c=rse(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,c),i(c)})),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const d=this.requests.run((()=>{this.uppy.emit("upload-started",e);const c=this.getOptions(e);return Object.keys(c.headers).forEach((f=>{s.setRequestHeader(f,c.headers[f])})),s.send(a),()=>{l.done(),s.abort()}}));this.onFileRemove(e.id,(()=>{d.abort(),i(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{d.abort(),i(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((i=>{o[i]=e.meta[i]})),new(e.remote.providerOptions.provider?pAt:hAt)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{const{token:a}=i,s=(function(d){const c=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(d)[1];return`${/^http:\/\//i.test(d)?"ws":"wss"}://${c}`})(e.remote.companionUrl),l=new gAt({target:`${s}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new Jae(this.uppy),this.onFileRemove(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),this.onRetryAll(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),l.on("progress",(d=>eAt(this,d,e))),l.on("success",(d=>{const c=t.getResponseData(d.response.responseText,d.response),f=c[t.responseUrlFieldName],p={status:d.response.status,body:c,uploadURL:f};return this.uppy.emit("upload-success",e,p),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),l.on("error",(d=>{const c=d.response,f=c?t.getResponseError(c.responseText,c):Object.assign(new Error(d.error.message),{cause:d.error});this.uppy.emit("upload-error",e,f),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(f)}));const u=this.requests.run((()=>(l.open(),e.isPaused&&l.send("pause",{}),()=>l.close())))})).catch((i=>{this.uppy.emit("upload-error",e,i),r(i)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),s=new XMLHttpRequest,l=new ese(this.opts.timeout,(()=>{s.abort();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));u(d),n(d)})),u=d=>{e.forEach((c=>{this.uppy.emit("upload-error",c,d)}))};s.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()})),s.upload.addEventListener("progress",(d=>{l.progress(),d.lengthComputable&&e.forEach((c=>{this.uppy.emit("upload-progress",c,{uploader:this,bytesUploaded:d.loaded/d.total*c.size,bytesTotal:c.size})}))})),s.addEventListener("load",(d=>{if(l.done(),this.opts.validateStatus(d.target.status,s.responseText,s)){const f=this.opts.getResponseData(s.responseText,s),p={status:d.target.status,body:f};return e.forEach((v=>{this.uppy.emit("upload-success",v,p)})),t()}const c=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c.request=s,u(c),n(c)})),s.addEventListener("error",(()=>{l.done();const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u(d),n(d)})),this.uppy.on("cancel-all",(()=>{l.done(),s.abort()})),s.open(o.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((d=>{s.setRequestHeader(d,this.opts.headers[d])})),s.send(a),e.forEach((d=>{this.uppy.emit("upload-started",d)}))}))}uploadFiles(e){const t=e.map(((n,r)=>{const o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)}));return(function(n){const r=[],o=[];function i(s){r.push(s)}function a(s){o.push(s)}return Promise.all(n.map((s=>s.then(i,a)))).then((()=>({successful:r,failed:o})))})(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[oP]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((n=>this.uppy.getFile(n)));if(this.opts.bundle){if(t.some((n=>n.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},tse.VERSION="2.0.6",nse),ise=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d5(e){var t={exports:{}};return e(t,t.exports),t.exports}var zp,C8,l6=function(e){return e&&e.Math==Math&&e},Wn=l6(typeof globalThis=="object"&&globalThis)||l6(typeof window=="object"&&window)||l6(typeof self=="object"&&self)||l6(typeof ise=="object"&&ise)||(function(){return this})()||Function("return this")(),yAt=Object.defineProperty,sG=function(e,t){try{yAt(Wn,e,{value:t,configurable:!0,writable:!0})}catch{Wn[e]=t}return t},Ph=Wn["__core-js_shared__"]||sG("__core-js_shared__",{}),lG=d5((function(e){(e.exports=function(t,n){return Ph[t]||(Ph[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),WCe=Function.prototype,OU=WCe.bind,MU=WCe.call,bAt=OU&&OU.bind(MU),Mr=OU?function(e){return e&&bAt(MU,e)}:function(e){return e&&function(){return MU.apply(e,arguments)}},wAt=Wn.TypeError,tc=function(e){if(e==null)throw wAt("Can't call method on "+e);return e},AAt=Wn.Object,R0=function(e){return AAt(tc(e))},CAt=Mr({}.hasOwnProperty),Ta=Object.hasOwn||function(e,t){return CAt(R0(e),t)},xAt=0,SAt=Math.random(),EAt=Mr(1 .toString),uG=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EAt(++xAt+SAt,36)},hi=function(e){return typeof e=="function"},kAt=function(e){return hi(e)?e:void 0},vm=function(e,t){return arguments.length<2?kAt(Wn[e]):Wn[e]&&Wn[e][t]},ly=vm("navigator","userAgent")||"",ase=Wn.process,sse=Wn.Deno,lse=ase&&ase.versions||sse&&sse.version,use=lse&&lse.v8;use&&(C8=(zp=use.split("."))[0]>0&&zp[0]<4?1:+(zp[0]+zp[1])),!C8&&ly&&(!(zp=ly.match(/Edge\/(\d+)/))||zp[1]>=74)&&(zp=ly.match(/Chrome\/(\d+)/))&&(C8=+zp[1]);var EA=C8,ei=function(e){try{return!!e()}catch{return!0}},PU=!!Object.getOwnPropertySymbols&&!ei((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&EA&&EA<41})),cG=PU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dw=lG("wks"),rv=Wn.Symbol,cse=rv&&rv.for,TAt=cG?rv:rv&&rv.withoutSetter||uG,ta=function(e){if(!Ta(dw,e)||!PU&&typeof dw[e]!="string"){var t="Symbol."+e;PU&&Ta(rv,e)?dw[e]=rv[e]:dw[e]=cG&&cse?cse(t):TAt(t)}return dw[e]},VCe={};VCe[ta("toStringTag")]="z";var dG=String(VCe)==="[object z]",ls=!ei((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ri=function(e){return typeof e=="object"?e!==null:hi(e)},NU=Wn.document,_At=Ri(NU)&&Ri(NU.createElement),kA=function(e){return _At?NU.createElement(e):{}},qCe=!ls&&!ei((function(){return Object.defineProperty(kA("div"),"a",{get:function(){return 7}}).a!=7})),DAt=Wn.String,IAt=Wn.TypeError,Da=function(e){if(Ri(e))return e;throw IAt(DAt(e)+" is not an object")},fw=Function.prototype.call,qo=fw.bind?fw.bind(fw):function(){return fw.apply(fw,arguments)},jv=Mr({}.isPrototypeOf),OAt=Wn.Object,iP=cG?function(e){return typeof e=="symbol"}:function(e){var t=vm("Symbol");return hi(t)&&jv(t.prototype,OAt(e))},MAt=Wn.String,u7=function(e){try{return MAt(e)}catch{return"Object"}},PAt=Wn.TypeError,v0=function(e){if(hi(e))return e;throw PAt(u7(e)+" is not a function")},Hv=function(e,t){var n=e[t];return n==null?void 0:v0(n)},NAt=Wn.TypeError,RAt=Wn.TypeError,BAt=ta("toPrimitive"),fG=function(e){var t=(function(n,r){if(!Ri(n)||iP(n))return n;var o,i=Hv(n,BAt);if(i){if(o=qo(i,n,r),!Ri(o)||iP(o))return o;throw RAt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(hi(l=a.toString)&&!Ri(u=qo(l,a))||hi(l=a.valueOf)&&!Ri(u=qo(l,a)))return u;throw NAt("Can't convert object to primitive value")})(n)})(e,"string");return iP(t)?t:t+""},LAt=Wn.TypeError,dse=Object.defineProperty,Zc={f:ls?dse:function(e,t,n){if(Da(e),t=fG(t),Da(n),qCe)try{return dse(e,t,n)}catch{}if("get"in n||"set"in n)throw LAt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},c7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_c=ls?function(e,t,n){return Zc.f(e,t,c7(1,n))}:function(e,t,n){return e[t]=n,e},FAt=Mr(Function.toString);hi(Ph.inspectSource)||(Ph.inspectSource=function(e){return FAt(e)});var $k,i3,zk,d7=Ph.inspectSource,fse=Wn.WeakMap,GCe=hi(fse)&&/native code/.test(d7(fse)),pse=lG("keys"),pG=function(e){return pse[e]||(pse[e]=uG(e))},f7={},RU=Wn.TypeError,UAt=Wn.WeakMap;if(GCe||Ph.state){var tg=Ph.state||(Ph.state=new UAt),$At=Mr(tg.get),hse=Mr(tg.has),zAt=Mr(tg.set);$k=function(e,t){if(hse(tg,e))throw new RU("Object already initialized");return t.facade=e,zAt(tg,e,t),t},i3=function(e){return $At(tg,e)||{}},zk=function(e){return hse(tg,e)}}else{var qm=pG("state");f7[qm]=!0,$k=function(e,t){if(Ta(e,qm))throw new RU("Object already initialized");return t.facade=e,_c(e,qm,t),t},i3=function(e){return Ta(e,qm)?e[qm]:{}},zk=function(e){return Ta(e,qm)}}var Hs={set:$k,get:i3,has:zk,enforce:function(e){return zk(e)?i3(e):$k(e,{})},getterFor:function(e){return function(t){var n;if(!Ri(t)||(n=i3(t)).type!==e)throw RU("Incompatible receiver, "+e+" required");return n}}},KCe=Function.prototype,jAt=ls&&Object.getOwnPropertyDescriptor,aP=Ta(KCe,"name"),Yb={EXISTS:aP,PROPER:aP&&(function(){}).name==="something",CONFIGURABLE:aP&&(!ls||ls&&jAt(KCe,"name").configurable)},Rl=d5((function(e){var t=Yb.CONFIGURABLE,n=Hs.get,r=Hs.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;hi(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ta(s,"name")||t&&s.name!==p)&&_c(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Wn?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:_c(i,a,s)):c?i[a]=s:sG(a,s)})(Function.prototype,"toString",(function(){return hi(this)&&n(this).source||d7(this)}))})),HAt=Mr({}.toString),WAt=Mr("".slice),Dc=function(e){return WAt(HAt(e),8,-1)},VAt=ta("toStringTag"),qAt=Wn.Object,GAt=Dc((function(){return arguments})())=="Arguments",p7=dG?Dc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=qAt(e),VAt))=="string"?n:GAt?Dc(t):(r=Dc(t))=="Object"&&hi(t.callee)?"Arguments":r},KAt=dG?{}.toString:function(){return"[object "+p7(this)+"]"};dG||Rl(Object.prototype,"toString",KAt,{unsafe:!0});var jk={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sP=kA("span").classList,gse=sP&&sP.constructor&&sP.constructor.prototype,QCe=gse===Object.prototype?void 0:gse,vse=Mr(Mr.bind),Wv=function(e,t){return v0(e),t===void 0?e:vse?vse(e,t):function(){return e.apply(t,arguments)}},lP=Wn.Object,QAt=Mr("".split),h7=ei((function(){return!lP("z").propertyIsEnumerable(0)}))?function(e){return Dc(e)=="String"?QAt(e,""):lP(e)}:lP,YAt=Math.ceil,ZAt=Math.floor,f5=function(e){var t=+e;return t!=t||t===0?0:(t>0?ZAt:YAt)(t)},XAt=Math.min,Zb=function(e){return e>0?XAt(f5(e),9007199254740991):0},mm=function(e){return Zb(e.length)},Hk=Array.isArray||function(e){return Dc(e)=="Array"},YCe=function(){},JAt=[],ZCe=vm("Reflect","construct"),hG=/^\s*(?:class|function)\b/,eCt=Mr(hG.exec),tCt=!hG.exec(YCe),pw=function(e){if(!hi(e))return!1;try{return ZCe(YCe,JAt,e),!0}catch{return!1}},g7=!ZCe||ei((function(){var e;return pw(pw.call)||!pw(Object)||!pw((function(){e=!0}))||e}))?function(e){if(!hi(e))return!1;switch(p7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tCt||!!eCt(hG,d7(e))}:pw,nCt=ta("species"),mse=Wn.Array,XCe=function(e,t){return new((function(n){var r;return Hk(n)&&(r=n.constructor,(g7(r)&&(r===mse||Hk(r.prototype))||Ri(r)&&(r=r[nCt])===null)&&(r=void 0)),r===void 0?mse:r})(e))(t===0?0:t)},yse=Mr([].push),hw=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=R0(l),h=h7(v),g=Wv(u,d),y=mm(h),m=0,b=c||XCe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:yse(w,f)}else switch(e){case 4:return!1;case 7:yse(w,f)}return i?-1:r||o?o:w}},Xb={forEach:hw(0),map:hw(1),filter:hw(2),find:hw(5),findIndex:hw(6)},JCe=function(e,t){var n=[][e];return!!n&&ei((function(){n.call(null,t||function(){throw 1},1)}))},rCt=Xb.forEach,uP=JCe("forEach")?[].forEach:function(e){return rCt(this,e,arguments.length>1?arguments[1]:void 0)},e5e=function(e){if(e&&e.forEach!==uP)try{_c(e,"forEach",uP)}catch{e.forEach=uP}};for(var cP in jk)jk[cP]&&e5e(Wn[cP]&&Wn[cP].prototype);e5e(QCe);var bse={}.propertyIsEnumerable,wse=Object.getOwnPropertyDescriptor,oCt=wse&&!bse.call({1:2},1)?function(e){var t=wse(this,e);return!!t&&t.enumerable}:bse,t5e={f:oCt},B0=function(e){return h7(tc(e))},Ase=Object.getOwnPropertyDescriptor,p5={f:ls?Ase:function(e,t){if(e=B0(e),t=fG(t),qCe)try{return Ase(e,t)}catch{}if(Ta(e,t))return c7(!qo(t5e.f,e,t),e[t])}},iCt=Math.max,aCt=Math.min,ab=function(e,t){var n=f5(e);return n<0?iCt(n+t,0):aCt(n,t)},Cse=function(e){return function(t,n,r){var o,i=B0(t),a=mm(i),s=ab(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},n5e={includes:Cse(!0),indexOf:Cse(!1)},sCt=n5e.indexOf,xse=Mr([].push),r5e=function(e,t){var n,r=B0(e),o=0,i=[];for(n in r)!Ta(f7,n)&&Ta(r,n)&&xse(i,n);for(;t.length>o;)Ta(r,n=t[o++])&&(~sCt(i,n)||xse(i,n));return i},Wk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lCt=Wk.concat("length","prototype"),TA={f:Object.getOwnPropertyNames||function(e){return r5e(e,lCt)}},o5e={f:Object.getOwnPropertySymbols},uCt=Mr([].concat),cCt=vm("Reflect","ownKeys")||function(e){var t=TA.f(Da(e)),n=o5e.f;return n?uCt(t,n(e)):t},dCt=function(e,t){for(var n=cCt(t),r=Zc.f,o=p5.f,i=0;i<n.length;i++){var a=n[i];Ta(e,a)||r(e,a,o(t,a))}},fCt=/#|\.prototype\./,h5=function(e,t){var n=hCt[pCt(e)];return n==vCt||n!=gCt&&(hi(t)?ei(t):!!t)},pCt=h5.normalize=function(e){return String(e).replace(fCt,".").toLowerCase()},hCt=h5.data={},gCt=h5.NATIVE="N",vCt=h5.POLYFILL="P",_A=h5,mCt=p5.f,Yi=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Wn:u?Wn[s]||sG(s,{}):(Wn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mCt(n,r))&&a.value:n[r],!_A(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;dCt(i,o)}(e.sham||o&&o.sham)&&_c(i,"sham",!0),Rl(n,r,i,e)}},uy=Object.keys||function(e){return r5e(e,Wk)},yCt=ei((function(){uy(1)}));/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Sse(e){return Object.prototype.toString.call(e)==="[object Object]"}Yi({target:"Object",stat:!0,forced:yCt},{keys:function(e){return uy(R0(e))}});var bCt={isHistory(e){return Sse(t=e)!==!1&&((n=t.constructor)===void 0||Sse(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ah.isOperationList(e.redos[0]))&&(e.undos.length===0||Ah.isOperationList(e.undos[0]));var t,n,r}},dP=new WeakMap,fP=new WeakMap,F1={isHistoryEditor:e=>bCt.isHistory(e.history)&&Xe.isEditor(e),isMerging:e=>fP.get(e),isSaving:e=>dP.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=F1.isMerging(e);fP.set(e,!1),t(),fP.set(e,n)},withoutSaving(e,t){var n=F1.isSaving(e);dP.set(e,!1),t(),dP.set(e,n)}},wCt=Wn.String,yi=function(e){if(p7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wCt(e)},gG=function(){var e=Da(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ACt=Yb.PROPER,BU=RegExp.prototype,i5e=BU.toString,CCt=Mr(gG),xCt=ei((function(){return i5e.call({source:"a",flags:"b"})!="/a/b"})),SCt=ACt&&i5e.name!="toString";(xCt||SCt)&&Rl(RegExp.prototype,"toString",(function(){var e=Da(this),t=yi(e.source),n=e.flags;return"/"+t+"/"+yi(n===void 0&&jv(BU,e)&&!("flags"in BU)?CCt(e):n)}),{unsafe:!0});var u6,ECt=ls?Object.defineProperties:function(e,t){Da(e);for(var n,r=B0(t),o=uy(t),i=o.length,a=0;i>a;)Zc.f(e,n=o[a++],r[n]);return e},LU=vm("document","documentElement"),a5e=pG("IE_PROTO"),pP=function(){},s5e=function(e){return"<script>"+e+"<\/script>"},Ese=function(e){e.write(s5e("")),e.close();var t=e.parentWindow.Object;return e=null,t},x8=function(){try{u6=new ActiveXObject("htmlfile")}catch{}var e,t;x8=typeof document<"u"?document.domain&&u6?Ese(u6):((t=kA("iframe")).style.display="none",LU.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(s5e("document.F=Object")),e.close(),e.F):Ese(u6);for(var n=Wk.length;n--;)delete x8.prototype[Wk[n]];return x8()};f7[a5e]=!0;var v7=Object.create||function(e,t){var n;return e!==null?(pP.prototype=Da(e),n=new pP,pP.prototype=null,n[a5e]=e):n=x8(),t===void 0?n:ECt(n,t)},FU=ta("unscopables"),UU=Array.prototype;UU[FU]==null&&Zc.f(UU,FU,{configurable:!0,value:v7(null)});var a3=function(e){UU[FU][e]=!0},kCt=n5e.includes;Yi({target:"Array",proto:!0},{includes:function(e){return kCt(this,e,arguments.length>1?arguments[1]:void 0)}}),a3("includes");var TCt=ta("match"),vG=function(e){var t;return Ri(e)&&((t=e[TCt])!==void 0?!!t:Dc(e)=="RegExp")},_Ct=Wn.TypeError,mG=function(e){if(vG(e))throw _Ct("The method doesn't accept regular expressions");return e},DCt=ta("match"),yG=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[DCt]=!1,"/./"[e](t)}catch{}}return!1},ICt=Mr("".indexOf);Yi({target:"String",proto:!0,forced:!yG("includes")},{includes:function(e){return!!~ICt(yi(tc(this)),yi(mG(e)),arguments.length>1?arguments[1]:void 0)}});var OCt=/"/g,MCt=Mr("".replace);Yi({target:"String",proto:!0,forced:ei((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=yi(tc(this)),r="<a",(r+=' name="'+MCt(yi(t),OCt,""")+'"')+">"+n+"</a>";var t,n,r}});var $U=function(e,t,n){var r,o;Da(e);try{if(!(r=Hv(e,"return"))){if(t==="throw")throw n;return n}r=qo(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Da(r),n},PCt=function(e,t,n,r){try{return r?t(Da(n)[0],n[1]):t(n)}catch(o){$U(e,"throw",o)}},sb={},NCt=ta("iterator"),RCt=Array.prototype,l5e=function(e){return e!==void 0&&(sb.Array===e||RCt[NCt]===e)},DA=function(e,t,n){var r=fG(t);r in e?Zc.f(e,r,c7(0,n)):e[r]=n},BCt=ta("iterator"),bG=function(e){if(e!=null)return Hv(e,BCt)||Hv(e,"@@iterator")||sb[p7(e)]},LCt=Wn.TypeError,u5e=function(e,t){var n=arguments.length<2?bG(e):t;if(v0(n))return Da(qo(n,e));throw LCt(u7(e)+" is not iterable")},kse=Wn.Array,c5e=ta("iterator"),d5e=!1;try{var FCt=0,Tse={next:function(){return{done:!!FCt++}},return:function(){d5e=!0}};Tse[c5e]=function(){return this},Array.from(Tse,(function(){throw 2}))}catch{}var wG=function(e,t){if(!d5e)return!1;var n=!1;try{var r={};r[c5e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},UCt=!wG((function(e){Array.from(e)}));Yi({target:"Array",stat:!0,forced:UCt},{from:function(e){var t=R0(e),n=g7(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Wv(o,r>2?arguments[2]:void 0));var a,s,l,u,d,c,f=bG(t),p=0;if(!f||this==kse&&l5e(f))for(a=mm(t),s=n?new this(a):kse(a);a>p;p++)c=i?o(t[p],p):t[p],DA(s,p,c);else for(d=(u=u5e(t,f)).next,s=n?new this:[];!(l=qo(d,u)).done;p++)c=i?PCt(u,o,[l.value,p],!0):l.value,DA(s,p,c);return s.length=p,s}});var ov,_se,Dse,$Ct=Mr("".charAt),Ise=Mr("".charCodeAt),zCt=Mr("".slice),jCt=function(e){return function(t,n){var r,o,i=yi(tc(t)),a=f5(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Ise(i,a))<55296||r>56319||a+1===s||(o=Ise(i,a+1))<56320||o>57343?e?$Ct(i,a):r:e?zCt(i,a,a+2):o-56320+(r-55296<<10)+65536}},f5e={charAt:jCt(!0)},HCt=!ei((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ose=pG("IE_PROTO"),zU=Wn.Object,WCt=zU.prototype,Vk=HCt?zU.getPrototypeOf:function(e){var t=R0(e);if(Ta(t,Ose))return t[Ose];var n=t.constructor;return hi(n)&&t instanceof n?n.prototype:t instanceof zU?WCt:null},jU=ta("iterator"),p5e=!1;[].keys&&("next"in(Dse=[].keys())?(_se=Vk(Vk(Dse)))!==Object.prototype&&(ov=_se):p5e=!0);var VCt=ov==null||ei((function(){var e={};return ov[jU].call(e)!==e}));VCt&&(ov={}),hi(ov[jU])||Rl(ov,jU,(function(){return this}));var AG={IteratorPrototype:ov,BUGGY_SAFARI_ITERATORS:p5e},qCt=Zc.f,Mse=ta("toStringTag"),qk=function(e,t,n){e&&!Ta(e=n?e:e.prototype,Mse)&&qCt(e,Mse,{configurable:!0,value:t})},GCt=AG.IteratorPrototype,KCt=function(){return this},QCt=Wn.String,YCt=Wn.TypeError,lb=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Da(r),(function(i){if(typeof i=="object"||hi(i))return i;throw YCt("Can't set "+QCt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),ZCt=Yb.PROPER,XCt=Yb.CONFIGURABLE,Pse=AG.IteratorPrototype,c6=AG.BUGGY_SAFARI_ITERATORS,gw=ta("iterator"),JCt=function(){return this},CG=function(e,t,n,r,o,i,a){(function(y,m,b,w){var A=m+" Iterator";y.prototype=v7(GCt,{next:c7(1,b)}),qk(y,A,!1),sb[A]=KCt})(n,t,r);var s,l,u,d=function(y){if(y===o&&h)return h;if(!c6&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,v=p[gw]||p["@@iterator"]||o&&p[o],h=!c6&&v||d(o),g=t=="Array"&&p.entries||v;if(g&&(s=Vk(g.call(new e)))!==Object.prototype&&s.next&&(Vk(s)!==Pse&&(lb?lb(s,Pse):hi(s[gw])||Rl(s,gw,JCt)),qk(s,c,!0)),ZCt&&o=="values"&&v&&v.name!=="values"&&(XCt?_c(p,"name","values"):(f=!0,h=function(){return qo(v,this)})),o)if(l={values:d("values"),keys:i?h:d("keys"),entries:d("entries")},a)for(u in l)(c6||f||!(u in p))&&Rl(p,u,l[u]);else Yi({target:t,proto:!0,forced:c6||f},l);return p[gw]!==h&&Rl(p,gw,h,{name:o}),sb[t]=h,l},e5t=f5e.charAt,t5t=Hs.set,n5t=Hs.getterFor("String Iterator");CG(String,"String",(function(e){t5t(this,{type:"String Iterator",string:yi(e),index:0})}),(function(){var e,t=n5t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=e5t(n,r),t.index+=e.length,{value:e,done:!1})}));var hP,r5t=p5.f,Nse=Mr("".endsWith),o5t=Mr("".slice),i5t=Math.min,h5e=yG("endsWith"),a5t=!(h5e||(hP=r5t(String.prototype,"endsWith"),!hP||hP.writable));Yi({target:"String",proto:!0,forced:!a5t&&!h5e},{endsWith:function(e){var t=yi(tc(this));mG(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:i5t(Zb(n),r),i=yi(e);return Nse?Nse(t,i,o):o5t(t,o-i.length,o)===i}});var s5t=Mr([].join),l5t=h7!=Object,u5t=JCe("join",",");Yi({target:"Array",proto:!0,forced:l5t||!u5t},{join:function(e){return s5t(B0(this),e===void 0?",":e)}});var c5t=ta("species"),m7=function(e){return EA>=51||!ei((function(){var t=[];return(t.constructor={})[c5t]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},d5t=Xb.map,f5t=m7("map");Yi({target:"Array",proto:!0,forced:!f5t},{map:function(e){return d5t(this,e,arguments.length>1?arguments[1]:void 0)}});var xG=Wn.RegExp,HU=ei((function(){var e=xG("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),p5t=HU||ei((function(){return!xG("a","y").sticky})),y7={BROKEN_CARET:HU||ei((function(){var e=xG("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),MISSED_STICKY:p5t,UNSUPPORTED_Y:HU},h5t=Wn.RegExp,SG=ei((function(){var e=h5t(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),g5t=Wn.RegExp,EG=ei((function(){var e=g5t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),v5t=Hs.get,m5t=lG("native-string-replace",String.prototype.replace),Gk=RegExp.prototype.exec,WU=Gk,y5t=Mr("".charAt),b5t=Mr("".indexOf),w5t=Mr("".replace),gP=Mr("".slice),vP=(function(){var e=/a/,t=/b*/g;return qo(Gk,e,"a"),qo(Gk,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),Rse=y7.BROKEN_CARET,mP=/()??/.exec("")[1]!==void 0;(vP||mP||Rse||SG||EG)&&(WU=function(e){var t,n,r,o,i,a,s,l=this,u=v5t(l),d=yi(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=qo(WU,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Rse&&l.sticky,v=qo(gG,l),h=l.source,g=0,y=d;if(p&&(v=w5t(v,"y",""),b5t(v,"g")===-1&&(v+="g"),y=gP(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&y5t(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),mP&&(n=new RegExp("^"+h+"$(?!\\s)",v)),vP&&(r=l.lastIndex),o=qo(Gk,p?n:l,y),p?o?(o.input=gP(o.input,g),o[0]=gP(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:vP&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),mP&&o&&o.length>1&&qo(m5t,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=v7(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var IA=WU;Yi({target:"RegExp",proto:!0,forced:/./.exec!==IA},{exec:IA});var kG=Function.prototype,Bse=kG.apply,A5t=kG.bind,Lse=kG.call,TG=typeof Reflect=="object"&&Reflect.apply||(A5t?Lse.bind(Bse):function(){return Lse.apply(Bse,arguments)}),C5t=ta("species"),yP=RegExp.prototype,_G=function(e,t,n,r){var o=ta(e),i=!ei((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ei((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[C5t]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Mr(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Mr(u),h=d.exec;return h===IA||h===yP.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));Rl(String.prototype,e,l[0]),Rl(yP,o,l[1])}r&&_c(yP[o],"sham",!0)},x5t=f5e.charAt,DG=function(e,t,n){return t+(n?x5t(e,t).length:1)},S5t=Math.floor,bP=Mr("".charAt),E5t=Mr("".replace),wP=Mr("".slice),k5t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T5t=/\$([$&'`]|\d{1,2})/g,_5t=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=T5t;return o!==void 0&&(o=R0(o),l=k5t),E5t(i,l,(function(u,d){var c;switch(bP(d,0)){case"$":return"$";case"&":return e;case"`":return wP(t,0,n);case"'":return wP(t,a);case"<":c=o[wP(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=S5t(f/10);return p===0?u:p<=s?r[p-1]===void 0?bP(d,1):r[p-1]+bP(d,1):u}c=r[f-1]}return c===void 0?"":c}))},D5t=Wn.TypeError,OA=function(e,t){var n=e.exec;if(hi(n)){var r=qo(n,e,t);return r!==null&&Da(r),r}if(Dc(e)==="RegExp")return qo(IA,e,t);throw D5t("RegExp#exec called on incompatible receiver")},VU=ta("replace"),I5t=Math.max,O5t=Math.min,M5t=Mr([].concat),AP=Mr([].push),Fse=Mr("".indexOf),Use=Mr("".slice),P5t="a".replace(/./,"$0")==="$0",$se=!!/./[VU]&&/./[VU]("a","$0")==="";_G("replace",(function(e,t,n){var r=$se?"$":"$0";return[function(o,i){var a=tc(this),s=o==null?void 0:Hv(o,VU);return s?qo(s,o,a,i):qo(t,yi(a),o,i)},function(o,i){var a=Da(this),s=yi(o);if(typeof i=="string"&&Fse(i,r)===-1&&Fse(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=hi(i);u||(i=yi(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=OA(a,s);if(p===null||(AP(f,p),!d))break;yi(p[0])===""&&(a.lastIndex=DG(s,Zb(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=yi((p=f[y])[0]),b=I5t(O5t(f5(p.index),s.length),0),w=[],A=1;A<p.length;A++)AP(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=M5t([m],w,b,s);S!==void 0&&AP(k,S);var M=yi(TG(i,void 0,k))}else M=_5t(m,s,b,w,S,i);b>=g&&(h+=Use(s,g,b)+M,g=b+m.length)}return h+Use(s,g)}]}),!!ei((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!P5t||$se);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var qU=function(e,t){return qU=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},qU(e,t)};function Jb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qU(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Mu=function(){return Mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mu.apply(this,arguments)};function Pu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function GU(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var N5t=0,zse=function(){this.id=""+N5t++},R5t=Hs.set,B5t=Hs.getterFor("Array Iterator"),E4=CG(Array,"Array",(function(e,t){R5t(this,{type:"Array Iterator",target:B0(e),index:0,kind:t})}),(function(){var e=B5t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");sb.Arguments=sb.Array,a3("keys"),a3("values"),a3("entries");var ub=function(e,t,n){for(var r in t)Rl(e,r,t[r],n);return e},L5t=Wn.Array,F5t=Math.max,KU=function(e,t,n){for(var r=mm(e),o=ab(t,r),i=ab(n===void 0?r:n,r),a=L5t(F5t(i-o,0)),s=0;o<i;o++,s++)DA(a,s,e[o]);return a.length=s,a},jse=TA.f,Hse=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],U5t={f:function(e){return Hse&&Dc(e)=="Window"?(function(t){try{return jse(t)}catch{return KU(Hse)}})(e):jse(B0(e))}},Wse=ei((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),d6=Object.isExtensible,$g=ei((function(){d6(1)}))||Wse?function(e){return!!Ri(e)&&(!Wse||Dc(e)!="ArrayBuffer")&&(!d6||d6(e))}:d6,$5t=!ei((function(){return Object.isExtensible(Object.preventExtensions({}))})),b7=d5((function(e){var t=Zc.f,n=!1,r=uG("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=TA.f,l=Mr([].splice),u={};u[r]=1,s(u).length&&(TA.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},Yi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:U5t.f}))},fastKey:function(s,l){if(!Ri(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ta(s,r)){if(!$g(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ta(s,r)){if(!$g(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return $5t&&n&&$g(s)&&!Ta(s,r)&&i(s),s}};f7[r]=!0})),z5t=Wn.TypeError,S8=function(e,t){this.stopped=e,this.result=t},Vse=S8.prototype,MA=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Wv(t,d),h=function(y){return r&&$U(r,"normal",y),new S8(!0,y)},g=function(y){return c?(Da(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=bG(e)))throw z5t(u7(e)+" is not iterable");if(l5e(o)){for(i=0,a=mm(e);a>i;i++)if((s=g(e[i]))&&jv(Vse,s))return s;return new S8(!1)}r=u5e(e,o)}for(l=r.next;!(u=qo(l,r)).done;){try{s=g(u.value)}catch(y){$U(r,"throw",y)}if(typeof s=="object"&&s&&jv(Vse,s))return s}return new S8(!1)},j5t=Wn.TypeError,w7=function(e,t){if(jv(t,e))return e;throw j5t("Incorrect invocation")},g5e=function(e,t,n){var r,o;return lb&&hi(r=t.constructor)&&r!==n&&Ri(o=r.prototype)&&o!==n.prototype&&lb(e,o),e},v5e=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Wn[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=Mr(s[g]);Rl(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Ri(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Ri(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Ri(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(_A(e,!hi(a)||!(o||s.forEach&&!ei((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),b7.enable();else if(_A(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=ei((function(){c.has(1)})),v=wG((function(g){new a(g)})),h=!o&&ei((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){w7(g,s);var m=g5e(new a,g,l);return y!=null&&MA(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,Yi({global:!0,forced:l!=a},u),qk(l,e),o||n.setStrong(l,e,r),l},f6=b7.getWeakData,H5t=Hs.set,W5t=Hs.getterFor,V5t=Xb.find,q5t=Xb.findIndex,G5t=Mr([].splice),K5t=0,p6=function(e){return e.frozen||(e.frozen=new m5e)},m5e=function(){this.entries=[]},CP=function(e,t){return V5t(e.entries,(function(n){return n[0]===t}))};m5e.prototype={get:function(e){var t=CP(this,e);if(t)return t[1]},has:function(e){return!!CP(this,e)},set:function(e,t){var n=CP(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=q5t(this.entries,(function(n){return n[0]===e}));return~t&&G5t(this.entries,t,1),!!~t}};var vw,y5e={getConstructor:function(e,t,n,r){var o=e((function(l,u){w7(l,i),H5t(l,{type:t,id:K5t++,frozen:void 0}),u!=null&&MA(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=W5t(t),s=function(l,u,d){var c=a(l),f=f6(Da(u),!0);return f===!0?p6(c).set(u,d):f[c.id]=d,l};return ub(i,{delete:function(l){var u=a(this);if(!Ri(l))return!1;var d=f6(l);return d===!0?p6(u).delete(l):d&&Ta(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Ri(l))return!1;var d=f6(l);return d===!0?p6(u).has(l):d&&Ta(d,u.id)}}),ub(i,n?{get:function(l){var u=a(this);if(Ri(l)){var d=f6(l);return d===!0?p6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},h6=Hs.enforce,Q5t=!Wn.ActiveXObject&&"ActiveXObject"in Wn,b5e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Y5t=v5e("WeakMap",b5e,y5e);if(GCe&&Q5t){vw=y5e.getConstructor(b5e,"WeakMap",!0),b7.enable();var mw=Y5t.prototype,qse=Mr(mw.delete),g6=Mr(mw.has),Gse=Mr(mw.get),Kse=Mr(mw.set);ub(mw,{delete:function(e){if(Ri(e)&&!$g(e)){var t=h6(this);return t.frozen||(t.frozen=new vw),qse(this,e)||t.frozen.delete(e)}return qse(this,e)},has:function(e){if(Ri(e)&&!$g(e)){var t=h6(this);return t.frozen||(t.frozen=new vw),g6(this,e)||t.frozen.has(e)}return g6(this,e)},get:function(e){if(Ri(e)&&!$g(e)){var t=h6(this);return t.frozen||(t.frozen=new vw),g6(this,e)?Gse(this,e):t.frozen.get(e)}return Gse(this,e)},set:function(e,t){if(Ri(e)&&!$g(e)){var n=h6(this);n.frozen||(n.frozen=new vw),g6(this,e)?Kse(this,e,t):n.frozen.set(e,t)}else Kse(this,e,t);return this}})}var xP=ta("iterator"),Qse=ta("toStringTag"),SP=E4.values,w5e=function(e,t){if(e){if(e[xP]!==SP)try{_c(e,xP,SP)}catch{e[xP]=SP}if(e[Qse]||_c(e,Qse,t),jk[t]){for(var n in E4)if(e[n]!==E4[n])try{_c(e,n,E4[n])}catch{e[n]=E4[n]}}}};for(var EP in jk)w5e(Wn[EP]&&Wn[EP].prototype,EP);w5e(QCe,"DOMTokenList");var QU=new WeakMap,YU=new WeakMap,IG=new WeakMap,A7=new WeakMap,ZU=new WeakMap,Kk=new WeakMap,OG=new WeakMap,XU=new WeakMap,E8=new WeakMap,Yse=new WeakMap,Zse=new WeakMap,Xse=new WeakMap,Jse=new WeakMap,PA=new WeakMap,cb=new WeakMap,MG=new WeakMap,Qk=new WeakMap,JU=new WeakMap,Yk=new WeakMap,k8=new WeakMap,A5e=new WeakMap,iv=new WeakMap,kP=new WeakMap,ele=new WeakMap,TP=new WeakMap,Z5t=Xb.find,tle=!0;"find"in[]&&Array(1).find((function(){tle=!1})),Yi({target:"Array",proto:!0,forced:tle},{find:function(e){return Z5t(this,e,arguments.length>1?arguments[1]:void 0)}}),a3("find"),Yi({global:!0},{globalThis:Wn});const X5t=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Nk&&(Mt.fn.css=Nk),ec&&(Mt.fn.append=ec),Qy&&(Mt.fn.addClass=Qy),Yy&&(Mt.fn.removeClass=Yy),Zy&&(Mt.fn.hasClass=Zy),Hd&&(Mt.fn.on=Hd),g0&&(Mt.fn.focus=g0),Ju&&(Mt.fn.attr=Ju),Ik&&(Mt.fn.removeAttr=Ik),Jy&&(Mt.fn.hide=Jy),Pk&&(Mt.fn.show=Pk),mae&&(Mt.fn.offset=mae),Ok&&(Mt.fn.width=Ok),Mk&&(Mt.fn.height=Mk),eb&&(Mt.fn.parent=eb),Lk&&(Mt.fn.parents=Lk),bae&&(Mt.fn.is=bae),Xy&&(Mt.fn.dataset=Xy),jd&&(Mt.fn.val=jd),Bk&&(Mt.fn.text=Bk),h0&&(Mt.fn.html=h0),nb&&(Mt.fn.children=nb),rb&&(Mt.fn.remove=rb),tb&&(Mt.fn.find=tb),Rk&&(Mt.fn.each=Rk),ob&&(Mt.fn.empty=ob);var md,Ds,PG=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},hc=function(e){return Vv(e)&&e.nodeType===1},Vv=function(e){var t=PG(e);return!!t&&e instanceof t.Node},nle=function(e){var t=e&&e.anchorNode&&PG(e.anchorNode);return!!t&&e instanceof t.Selection},C5e=function(e){return Vv(e)&&e.nodeType===3},e$=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},x5e=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,s=!1,l=!1;(Vv(r=i)&&r.nodeType===8||hc(i)&&i.childNodes.length===0||hc(i)&&i.getAttribute("contenteditable")==="false")&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},J5t=function(e,t,n){return Fo(x5e(e,t,n),1)[0]},ext=function e(t){var n,r,o="";if(C5e(t)&&t.nodeValue)return t.nodeValue;if(hc(t)){try{for(var i=Pu(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function S5e(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||S5e(o,t)}}function rle(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==md.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Ds=md||(md={}))[Ds.ELEMENT_NODE=1]="ELEMENT_NODE",Ds[Ds.TEXT_NODE=3]="TEXT_NODE",Ds[Ds.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Ds[Ds.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Ds[Ds.COMMENT_NODE=8]="COMMENT_NODE",Ds[Ds.DOCUMENT_NODE=9]="DOCUMENT_NODE",Ds[Ds.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Ds[Ds.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var t$=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),s3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),yw=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),txt=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),nxt=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),n$=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),bw=!nxt&&!txt&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Et={getWindow:function(e){var t=A5e.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=k8.get(t);return n||(n=new zse,k8.set(t,n)),n},setNewKey:function(e){var t=new zse;k8.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=cb.get(r);if(o==null){if(Xe.isEditor(r))return n;break}var i=PA.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=Et.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return cb.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=Et.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Et.findPath(e,t)[0]];return Qn.get(e,n)},toDOMNode:function(e,t){var n;if(Xe.isEditor(t))n=MG.get(e);else{var r=Et.findKey(e,t);n=JU.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=Et.toDOMNode(e,e);try{r=hc(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=pn.isBackward(t),i=Et.toDOMPoint(e,n),a=pn.isCollapsed(t)?i:Et.toDOMPoint(e,r),s=Et.getWindow(e).document.createRange(),l=Fo(o?a:i,2),u=l[0],d=l[1],c=Fo(o?i:a,2),f=c[0],p=c[1],v=!!(hc(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),h=!!(hc(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,v?1:d),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,o,i=Fo(Xe.node(e,t.path),1)[0],a=Et.toDOMNode(e,i);Xe.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Pu(s),d=u.next();!d.done;d=u.next()){var c=d.value,f=c.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,v=c.getAttribute("data-slate-length"),h=l+(v==null?p:parseInt(v,10));if(t.offset<=h){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=h}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=hc(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Qk.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=Et.toSlateNode(e,t.target),s=Et.findPath(e,a);if(Xe.isVoid(e,a)){var l=o.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,d=Xe.point(e,s,{edge:u?"start":"end"}),c=u?Xe.before(e,d):Xe.after(e,d);if(c)return Xe.range(e,c)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((i=f.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return Et.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,s,l=n.exactMatch,u=n.suppressThrow;if((nle(t)?t.anchorNode:t.startContainer)&&(nle(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=n$&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var d=Et.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:u});if(!d)return null;var c=s?d:Et.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:u});if(!c)return null;var f={anchor:d,focus:c};return pn.isExpanded(f)&&pn.isForward(f)&&hc(i)&&Xe.void(e,{at:f.focus,mode:"highest"})&&(f=Xe.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Fo(o?t:(function(m){var b,w=Fo(m,2),A=w[0],S=w[1];if(hc(A)&&A.childNodes.length){var k=S===A.childNodes.length,M=k?S-1:S;for(A=(b=Fo(x5e(A,M,k?"backward":"forward"),2))[0],k=(M=b[1])<S;hc(A)&&A.childNodes.length;){var D=k?A.childNodes.length-1:0;A=J5t(A,D,k?"backward":"forward")}S=k&&A.textContent!=null?A.textContent.length:0}return[A,S]})(t),2),s=a[0],l=a[1],u=s.parentNode,d=null,c=0;if(u){var f=u.closest('[data-slate-void="true"]'),p=u.closest("[data-slate-leaf]"),v=null;if(p){d=p.closest('[data-slate-node="text"]');var h=Et.getWindow(e).document.createRange();h.setStart(d,0),h.setEnd(s,l);var g=h.cloneContents();GU(GU([],Fo(hae(g.querySelectorAll("[data-slate-zero-width]")))),Fo(hae(g.querySelectorAll("[contenteditable=false]")))).forEach((function(m){m.parentNode.removeChild(m)})),c=g.textContent.length,v=d}else f&&((p=f.querySelector("[data-slate-leaf]"))?(d=p.closest('[data-slate-node="text"]'),c=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((function(m){c-=m.textContent.length}))):c=1);v&&c===v.textContent.length&&(u.hasAttribute("data-slate-zero-width")||s3&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
- `)))&&c--}if(!d){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=Et.toSlateNode(e,d);return{path:Et.findPath(e,y),offset:c}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Xe.hasPath(e,n.path)&&Xe.hasPath(e,r.path)},getNodeType:function(e){return kr.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(t){return Qn.string(t)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Xe.nodes(e,{universal:!0});try{for(var i=Pu(o),a=i.next();!a.done;a=i.next()){var s=Fo(a.value,1)[0];kr.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Fo(Xe.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=Fo(Xe.nodes(e,{match:function(r){return ir.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Fo(Xe.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&Fo(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Xe.isEnd(e,n.anchor,t)||Xe.isEnd(e,n.focus,t))},getTextarea:function(e){var t=QU.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return A7.get(e)||null},getHoverbar:function(e){return Kk.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=Et.getTextarea(e).$textArea,a=i?.[0].childNodes;if(a)try{for(var s=Pu(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var d=Xe.nodes(e,{match:function(h){return!(!kr.isElement(h)||e.isInline(h))},universal:!0});try{for(var c=Pu(d),f=c.next();!f.done;f=c.next()){var p=f.value;if(p!=null){var v=p[0];S5e(Et.toDOMNode(e,v),(function(h,g){var y=Mt(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(h)}))}}}catch(h){r={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Xe.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var i=Pu(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||pn.isExpanded(t))return!1;var n=Et.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=Xe.node(e,t);if(n==null)return!1;var r=Fo(n,1)[0].children;return r.length===1&&r[0].text===""}},rxt=1,E5e={},NA={},oxt=Xb.filter,ixt=m7("filter");Yi({target:"Array",proto:!0,forced:!ixt},{filter:function(e){return oxt(this,e,arguments.length>1?arguments[1]:void 0)}});var r$=`
- \v\f\r \u2028\u2029\uFEFF`,ole=Mr("".replace),Zk="["+r$+"]",axt=RegExp("^"+Zk+Zk+"*"),sxt=RegExp(Zk+Zk+"*$"),lxt=function(e){return function(t){var n=yi(tc(t));return 1&e&&(n=ole(n,axt,"")),2&e&&(n=ole(n,sxt,"")),n}},uxt={trim:lxt(3)},cxt=Yb.PROPER,dxt=uxt.trim;Yi({target:"String",proto:!0,forced:(function(e){return ei((function(){return!!r$[e]()||"
"[e]()!=="
"||cxt&&r$[e].name!==e}))})("trim")},{trim:function(){return dxt(this)}});var o$=[],k5e={};function fxt(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var RA,Gm,ile,_P,Xk=Wn.Promise,ale=ta("species"),NG=function(e){var t=vm(e),n=Zc.f;ls&&t&&!t[ale]&&n(t,ale,{configurable:!0,get:function(){return this}})},pxt=Wn.TypeError,hxt=ta("species"),T5e=function(e,t){var n,r=Da(e).constructor;return r===void 0||(n=Da(r)[hxt])==null?t:(function(o){if(g7(o))return o;throw pxt(u7(o)+" is not a constructor")})(n)},_5e=Mr([].slice),D5e=/(?:ipad|iphone|ipod).*applewebkit/i.test(ly),Nh=Dc(Wn.process)=="process",i$=Wn.setImmediate,sle=Wn.clearImmediate,gxt=Wn.process,DP=Wn.Dispatch,vxt=Wn.Function,lle=Wn.MessageChannel,mxt=Wn.String,IP=0,l3={};try{RA=Wn.location}catch{}var RG=function(e){if(Ta(l3,e)){var t=l3[e];delete l3[e],t()}},OP=function(e){return function(){RG(e)}},ule=function(e){RG(e.data)},cle=function(e){Wn.postMessage(mxt(e),RA.protocol+"//"+RA.host)};i$&&sle||(i$=function(e){var t=_5e(arguments,1);return l3[++IP]=function(){TG(hi(e)?e:vxt(e),void 0,t)},Gm(IP),IP},sle=function(e){delete l3[e]},Nh?Gm=function(e){gxt.nextTick(OP(e))}:DP&&DP.now?Gm=function(e){DP.now(OP(e))}:lle&&!D5e?(_P=(ile=new lle).port2,ile.port1.onmessage=ule,Gm=Wv(_P.postMessage,_P)):Wn.addEventListener&&hi(Wn.postMessage)&&!Wn.importScripts&&RA&&RA.protocol!=="file:"&&!ei(cle)?(Gm=cle,Wn.addEventListener("message",ule,!1)):Gm="onreadystatechange"in kA("script")?function(e){LU.appendChild(kA("script")).onreadystatechange=function(){LU.removeChild(this),RG(e)}}:function(e){setTimeout(OP(e),0)});var ww,Ig,u3,D1,MP,PP,NP,dle,I5e={set:i$},yxt=/ipad|iphone|ipod/i.test(ly)&&Wn.Pebble!==void 0,bxt=/web0s(?!.*chrome)/i.test(ly),wxt=p5.f,RP=I5e.set,fle=Wn.MutationObserver||Wn.WebKitMutationObserver,ple=Wn.document,hle=Wn.process,v6=Wn.Promise,gle=wxt(Wn,"queueMicrotask"),O5e=gle&&gle.value;O5e||(ww=function(){var e,t;for(Nh&&(e=hle.domain)&&e.exit();Ig;){t=Ig.fn,Ig=Ig.next;try{t()}catch(n){throw Ig?D1():u3=void 0,n}}u3=void 0,e&&e.enter()},D5e||Nh||bxt||!fle||!ple?!yxt&&v6&&v6.resolve?((NP=v6.resolve(void 0)).constructor=v6,dle=Wv(NP.then,NP),D1=function(){dle(ww)}):Nh?D1=function(){hle.nextTick(ww)}:(RP=Wv(RP,Wn),D1=function(){RP(ww)}):(MP=!0,PP=ple.createTextNode(""),new fle(ww).observe(PP,{characterData:!0}),D1=function(){PP.data=MP=!MP}));var BP,vle,M5e,mle,P5e=O5e||function(e){var t={fn:e,next:void 0};u3&&(u3.next=t),Ig||(Ig=t,D1()),u3=t},Axt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=v0(t),this.reject=v0(n)},BG={f:function(e){return new Axt(e)}},a$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Cxt=typeof window=="object",N5e=I5e.set,xxt=ta("species"),pd="Promise",yle=Hs.getterFor(pd),Sxt=Hs.set,Ext=Hs.getterFor(pd),bg=Xk&&Xk.prototype,Sd=Xk,Aw=bg,R5e=Wn.TypeError,s$=Wn.document,LG=Wn.process,cy=BG.f,kxt=cy,Txt=!!(s$&&s$.createEvent&&Wn.dispatchEvent),B5e=hi(Wn.PromiseRejectionEvent),L5e=!1,c3=_A(pd,(function(){var e=d7(Sd),t=e!==String(Sd);if(!t&&EA===66)return!0;if(EA>=51&&/native code/.test(e))return!1;var n=new Sd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[xxt]=r,!(L5e=n.then((function(){}))instanceof r)||!t&&Cxt&&!B5e})),_xt=c3||!wG((function(e){Sd.all(e).catch((function(){}))})),F5e=function(e){var t;return!(!Ri(e)||!hi(t=e.then))&&t},FG=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;P5e((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&Ixt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(R5e("Promise-chain cycle")):(s=F5e(a))?qo(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Dxt(e)}))}},U5e=function(e,t,n){var r,o;Txt?((r=s$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Wn.dispatchEvent(r)):r={promise:t,reason:n},!B5e&&(o=Wn["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=Wn.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},Dxt=function(e){qo(N5e,Wn,(function(){var t,n=e.facade,r=e.value;if(ble(e)&&(t=a$((function(){Nh?LG.emit("unhandledRejection",r,n):U5e("unhandledrejection",n,r)})),e.rejection=Nh||ble(e)?2:1,t.error))throw t.value}))},ble=function(e){return e.rejection!==1&&!e.parent},Ixt=function(e){qo(N5e,Wn,(function(){var t=e.facade;Nh?LG.emit("rejectionHandled",t):U5e("rejectionhandled",t,e.value)}))},U1=function(e,t,n){return function(r){e(t,r,n)}},dy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,FG(e,!0))},l$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw R5e("Promise can't be resolved itself");var r=F5e(t);r?P5e((function(){var o={done:!1};try{qo(r,t,U1(l$,o,e),U1(dy,o,e))}catch(i){dy(o,i,e)}})):(e.value=t,e.state=1,FG(e,!1))}catch(o){dy({done:!1},o,e)}}};if(c3&&(Aw=(Sd=function(e){w7(this,Aw),v0(e),qo(BP,this);var t=yle(this);try{e(U1(l$,t),U1(dy,t))}catch(n){dy(t,n)}}).prototype,(BP=function(e){Sxt(this,{type:pd,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ub(Aw,{then:function(e,t){var n=Ext(this),r=n.reactions,o=cy(T5e(this,Sd));return o.ok=!hi(e)||e,o.fail=hi(t)&&t,o.domain=Nh?LG.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&FG(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vle=function(){var e=new BP,t=yle(e);this.promise=e,this.resolve=U1(l$,t),this.reject=U1(dy,t)},BG.f=cy=function(e){return e===Sd||e===M5e?new vle(e):kxt(e)},hi(Xk)&&bg!==Object.prototype)){mle=bg.then,L5e||(Rl(bg,"then",(function(e,t){var n=this;return new Sd((function(r,o){qo(mle,n,r,o)})).then(e,t)}),{unsafe:!0}),Rl(bg,"catch",Aw.catch,{unsafe:!0}));try{delete bg.constructor}catch{}lb&&lb(bg,Aw)}Yi({global:!0,wrap:!0,forced:c3},{Promise:Sd}),qk(Sd,pd,!1),NG(pd),M5e=vm(pd),Yi({target:pd,stat:!0,forced:c3},{reject:function(e){var t=cy(this);return qo(t.reject,void 0,e),t.promise}}),Yi({target:pd,stat:!0,forced:c3},{resolve:function(e){return(function(t,n){if(Da(t),Ri(n)&&n.constructor===t)return n;var r=BG.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Yi({target:pd,stat:!0,forced:_xt},{all:function(e){var t=this,n=cy(t),r=n.resolve,o=n.reject,i=a$((function(){var a=v0(t.resolve),s=[],l=0,u=1;MA(e,(function(d){var c=l++,f=!1;u++,qo(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=cy(t),r=n.reject,o=a$((function(){var i=v0(t.resolve);MA(e,(function(a){qo(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Km=y7.UNSUPPORTED_Y,Oxt=Math.min,$5e=[].push,Mxt=Mr(/./.exec),Qm=Mr($5e),Cw=Mr("".slice);function nc(e){Promise.resolve().then(e)}function z5e(e,t){return kr.isElement(e)?(function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,s=a===void 0?[]:a,l=Xe.isVoid(r,n),u="";l||(u=s.map((function(y){return z5e(y,r)})).join(""));var d=(function(y){return k5e[y]||fxt})(i),c=d(n,u,r),f="";if(f=typeof c=="string"?c:c.html||"",l||o$.forEach((function(y){return f=y(n,f)})),typeof c=="string")return f;var p=c.prefix,v=p===void 0?"":p,h=c.suffix,g=h===void 0?"":h;return v&&(f=v+f),g&&(f+=g),f})(e,t):(function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=(function(l){return l.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")})(i);var a=Et.getParentsNodes(r,n).some((function(l){return Et.getNodeType(l)==="pre"}));if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var s=Et.getParentNode(null,n);if(!s||s.children.length!==0)return i;i="<br>"}return o$.forEach((function(l){return i=l(n,i)})),i})(e,t)}function j5e(e){return"w-e-element-"+e}_G("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=yi(tc(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!vG(o))return qo(t,a,o,s);for(var l,u,d,c=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,f+"g");(l=qo(IA,v,a))&&!((u=v.lastIndex)>p&&(Qm(c,Cw(a,p,l.index)),l.length>1&&l.index<a.length&&TG($5e,c,KU(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&Mxt(v,"")||Qm(c,""):Qm(c,Cw(a,p)),c.length>s?KU(c,0,s):c}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qo(t,this,o,i)}:t,[function(o,i){var a=tc(this),s=o==null?void 0:Hv(o,e);return s?qo(s,o,a,i):qo(r,yi(a),o,i)},function(o,i){var a=Da(this),s=yi(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=T5e(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Km?"g":"y"),f=new u(Km?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return OA(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=Km?0:h;var y,m=OA(f,Km?Cw(s,h):s);if(m===null||(y=Oxt(Zb(f.lastIndex+(Km?h:0)),s.length))===v)h=DG(s,h,d);else{if(Qm(g,Cw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(Qm(g,m[b]),g.length===p)return g;h=v=y}}return Qm(g,Cw(s,v)),g}]}),!!ei((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),Km);var wle=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Ale=function(e,t,n){var r=Et.toDOMRange(e,t).getBoundingClientRect(),o=Et.toDOMRange(e,n).getBoundingClientRect();return wle(r,o)&&wle(o,r)},H5e=["span","b","strong","i","em","s","strike","u","font","sub","sup"],W5e=[],UG=[],Jk={},Pxt=Zc.f,Nxt=TA.f,Rxt=Hs.enforce,Bxt=ta("match"),Pf=Wn.RegExp,I1=Pf.prototype,Lxt=Wn.SyntaxError,Fxt=Mr(gG),Uxt=Mr(I1.exec),m6=Mr("".charAt),Cle=Mr("".replace),xle=Mr("".indexOf),$xt=Mr("".slice),zxt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,av=/a/g,LP=/a/g,jxt=new Pf(av)!==av,V5e=y7.MISSED_STICKY,Hxt=y7.UNSUPPORTED_Y,Wxt=ls&&(!jxt||V5e||SG||EG||ei((function(){return LP[Bxt]=!1,Pf(av)!=av||Pf(LP)==LP||Pf(av,"i")!="/a/i"})));if(_A("RegExp",Wxt)){for(var jp=function(e,t){var n,r,o,i,a,s,l=jv(I1,this),u=vG(e),d=t===void 0,c=[],f=e;if(!l&&u&&d&&e.constructor===jp)return e;if((u||jv(I1,e))&&(e=e.source,d&&(t="flags"in f?f.flags:Fxt(f))),e=e===void 0?"":yi(e),t=t===void 0?"":yi(t),f=e,SG&&"dotAll"in av&&(r=!!t&&xle(t,"s")>-1)&&(t=Cle(t,/s/g,"")),n=t,V5e&&"sticky"in av&&(o=!!t&&xle(t,"y")>-1)&&Hxt&&(t=Cle(t,/y/g,"")),EG&&(i=(function(p){for(var v,h=p.length,g=0,y="",m=[],b={},w=!1,A=!1,S=0,k="";g<=h;g++){if((v=m6(p,g))==="\\")v+=m6(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":Uxt(zxt,$xt(p,g+1))&&(g+=2,A=!0),y+=v,S++;continue;case(v===">"&&A):if(k===""||Ta(b,k))throw new Lxt("Invalid capture group name");b[k]=!0,m[m.length]=[k,S],A=!1,k="";continue}A?k+=v:y+=v}return[y,m]})(e),e=i[0],c=i[1]),a=g5e(Pf(e,t),l?this:I1,jp),(r||o||c.length)&&(s=Rxt(a),r&&(s.dotAll=!0,s.raw=jp((function(p){for(var v,h=p.length,g=0,y="",m=!1;g<=h;g++)(v=m6(p,g))!=="\\"?m||v!=="."?(v==="["?m=!0:v==="]"&&(m=!1),y+=v):y+="[\\s\\S]":y+=v+m6(p,++g);return y})(e),n)),o&&(s.sticky=!0),c.length&&(s.groups=c)),e!==f)try{_c(a,"source",f===""?"(?:)":f)}catch{}return a},Vxt=function(e){e in jp||Pxt(jp,e,{configurable:!0,get:function(){return Pf[e]},set:function(t){Pf[e]=t}})},Sle=Nxt(Pf),Ele=0;Sle.length>Ele;)Vxt(Sle[Ele++]);I1.constructor=jp,jp.prototype=I1,Rl(Wn,"RegExp",jp)}NG("RegExp");var qxt=new RegExp(" ","g");function q5e(e){return e.replace(qxt," ")}function kle(e,t){var n=e.length;if(n){var r=e[n-1];if(ir.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function Gxt(e,t,n){return{type:"paragraph",children:[{text:Mt(e).text().replace(/\s+/gm," ")}]}}function FP(e,t){var n=(function(i,a){var s=[];if(i.attr("data-w-e-is-void")!=null)return s;var l=i[0].childNodes;return l.length===1&&l[0].nodeName==="BR"?(s.push({text:""}),s):(l.forEach((function(u){if(u.nodeType!==md.ELEMENT_NODE){if(u.nodeType===md.TEXT_NODE){var d=u.textContent||"";if(d.trim()===""&&d.indexOf(`
- `)>=0)return;d&&(d=q5e(d),kle(s,d)||s.push({text:d}))}}else{if(u.nodeName==="BR")return void(kle(s,`
- `)||s.push({text:`
- `}));var c=$G(Mt(u),a);Array.isArray(c)?c.forEach((function(f){return s.push(f)})):s.push(c)}})),s)})(e,t),r=(function(i){for(var a in Jk)if(i[0].matches(a))return Jk[a];return Gxt})(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(i){Xe.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),UG.forEach((function(a){i=a(e[0],i,t)})))})),o}function UP(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[0].textContent||"";n=(function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')})(n);var r={text:n=q5e(n)};return UG.forEach((function(o){r=o(e[0],r,t)})),r}function $G(e,t){W5e.forEach((function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=Mt(i(e[0])))}));var n=rle(e);return n==="span"?e.attr("data-w-e-type")?FP(e,t):UP(e,t):n==="code"?rle(e.parent())==="pre"?FP(e,t):UP(e,t):H5e.includes(n)?UP(e,t):FP(e,t)}function G5e(e,t,n){var r=Mt(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function Tle(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map((function(o){return"<p>"+o+"</p>"})).join(""));var r=Mt("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(o){var i=$G(Mt(o),e);Array.isArray(i)?i.forEach((function(a){return n.push(a)})):n.push(i)})),n}var Kxt=Zc.f,_le=b7.fastKey,Dle=Hs.set,$P=Hs.getterFor,Qxt={getConstructor:function(e,t,n,r){var o=e((function(u,d){w7(u,i),Dle(u,{type:t,index:v7(null),first:void 0,last:void 0,size:0}),ls||(u.size=0),d!=null&&MA(d,u[r],{that:u,AS_ENTRIES:n})})),i=o.prototype,a=$P(t),s=function(u,d,c){var f,p,v=a(u),h=l(u,d);return h?h.value=c:(v.last=h={index:p=_le(d,!0),key:d,value:c,previous:f=v.last,next:void 0,removed:!1},v.first||(v.first=h),f&&(f.next=h),ls?v.size++:u.size++,p!=="F"&&(v.index[p]=h)),u},l=function(u,d){var c,f=a(u),p=_le(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return ub(i,{clear:function(){for(var u=a(this),d=u.index,c=u.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;u.first=u.last=void 0,ls?u.size=0:this.size=0},delete:function(u){var d=this,c=a(d),f=l(d,u);if(f){var p=f.next,v=f.previous;delete c.index[f.index],f.removed=!0,v&&(v.next=p),p&&(p.previous=v),c.first==f&&(c.first=p),c.last==f&&(c.last=v),ls?c.size--:d.size--}return!!f},forEach:function(u){for(var d,c=a(this),f=Wv(u,arguments.length>1?arguments[1]:void 0);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),ub(i,n?{get:function(u){var d=l(this,u);return d&&d.value},set:function(u,d){return s(this,u===0?0:u,d)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),ls&&Kxt(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=$P(t),i=$P(r);CG(e,t,(function(a,s){Dle(this,{type:r,target:a,state:o(a),kind:s,last:void 0})}),(function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),NG(t)}};v5e("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Qxt);var Ile=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Ole(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Zt.insertNodes(e,t,{mode:"highest"})}var Yxt=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=Fo(pn.edges(o),2),a=i[0],s=i[1],l=Xe.void(t,{at:a.path}),u=Xe.void(t,{at:s.path});if(!pn.isCollapsed(o)||l){var d=Et.toDOMRange(t,o),c=d.cloneContents(),f=c.childNodes[0];if(c.childNodes.forEach((function(A){A.textContent&&A.textContent.trim()!==""&&(f=A)})),u){var p=Fo(u,1)[0],v=d.cloneRange(),h=Et.toDOMNode(t,p);v.setEndAfter(h),c=v.cloneContents()}if(l&&(f=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(A){var S=A.getAttribute("data-slate-zero-width")==="n";A.textContent=S?`
- `:""})),C5e(f)){var g=f.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(f),c.appendChild(g),f=g}var y=t.getFragment(),m=JSON.stringify(y),b=window.btoa(encodeURIComponent(m));f.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=c.ownerDocument.createElement("div");return w.appendChild(c),w.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",ext(w)),c.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var s=decodeURIComponent(window.atob(a)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),d=r.getData("text/html");if(d)t.dangerouslyInsertHtml(d);else if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var p=Pu(c),v=p.next();!v.done;v=p.next()){var h=v.value;f&&Zt.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},k4=function(e){return e!=null},Zxt={object:!0,function:!0,undefined:!0},Xxt=/^\s*class[\s{/}]/,Jxt=Function.prototype.toString,Mle=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!(function(n){if(!(function(r){return!!k4(r)&&hasOwnProperty.call(Zxt,typeof r)})(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}})(t)})(e)&&!Xxt.test(Jxt.call(e))},zG=function(e){return e!=null},e6t=Object.keys,t6t=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return e6t(zG(e)?Object(e):e)},n6t=function(e){if(!zG(e))throw new TypeError("Cannot use null or undefined");return e},r6t=Math.max,Ple=(function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")})()?Object.assign:function(e,t){var n,r,o,i=r6t(arguments.length,2);for(e=Object(n6t(e)),o=function(a){try{e[a]=t[a]}catch(s){n||(n=s)}},r=1;r<i;++r)t6t(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},o6t=Array.prototype.forEach,i6t=Object.create,a6t=function(e,t){var n;for(n in e)t[n]=e[n]},Nle=function(e){var t=i6t(null);return o6t.call(arguments,(function(n){zG(n)&&a6t(Object(n),t)})),t},zP="razdwatrzy",s6t=String.prototype.indexOf,xw=typeof zP.contains=="function"&&zP.contains("dwa")===!0&&zP.contains("foo")===!1?String.prototype.contains:function(e){return s6t.call(this,e,arguments[1])>-1},y6=d5((function(e){var t=e.exports=function(n,r){var o,i,a,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],k4(n)?(o=xw.call(n,"c"),i=xw.call(n,"e"),a=xw.call(n,"w")):(o=a=!0,i=!1),l={value:r,configurable:o,enumerable:i,writable:a},s?Ple(Nle(s),l):l};t.gs=function(n,r,o){var i,a,s,l;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],k4(r)?Mle(r)?k4(o)?Mle(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,k4(n)?(i=xw.call(n,"c"),a=xw.call(n,"e")):(i=!0,a=!1),l={get:r,set:o,configurable:i,enumerable:a},s?Ple(Nle(s),l):l}})),jP=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},l6t=d5((function(e,t){var n,r,o,i,a,s,l,u=Function.prototype.apply,d=Function.prototype.call,c=Object.create,f=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var m;return jP(y),v.call(this,"__ee__")?m=this.__ee__:(m=h.value=c(null),f(this,"__ee__",h),h.value=null),m[g]?typeof m[g]=="object"?m[g].push(y):m[g]=[m[g],y]:m[g]=y,this},r=function(g,y){var m,b;return jP(y),b=this,n.call(this,g,m=function(){o.call(b,g,m),u.call(y,this,arguments)}),m.__eeOnceListener__=y,this},o=function(g,y){var m,b,w,A;if(jP(y),!v.call(this,"__ee__"))return this;if(!(m=this.__ee__)[g])return this;if(typeof(b=m[g])=="object")for(A=0;w=b[A];++A)w!==y&&w.__eeOnceListener__!==y||(b.length===2?m[g]=b[A?0:1]:b.splice(A,1));else b!==y&&b.__eeOnceListener__!==y||delete m[g];return this},i=function(g){var y,m,b,w,A;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(m=arguments.length,A=new Array(m-1),y=1;y<m;++y)A[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)u.call(b,this,A)}else switch(arguments.length){case 1:d.call(w,this);break;case 2:d.call(w,this,arguments[1]);break;case 3:d.call(w,this,arguments[1],arguments[2]);break;default:for(m=arguments.length,A=new Array(m-1),y=1;y<m;++y)A[y-1]=arguments[y];u.call(w,this,A)}},a={on:n,once:r,off:o,emit:i},s={on:y6(n),once:y6(r),off:y6(o),emit:y6(i)},l=p({},s),e.exports=t=function(g){return g==null?c(l):p(Object(g),s)},t.methods=a}));function b6(e){var t=ele.get(e);return t==null&&(t=l6t(),ele.set(e,t)),t}var eT=new WeakMap;function Rle(e,t){var n=eT.get(e);n==null&&(n=new Set,eT.set(e,n)),n.add(t)}function u6t(e){return eT.get(e)||new Set}function c6t(e){eT.set(e,new Set)}function jG(e){var t=Et.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function HG(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=jG(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,s=r.height,l=Et.toDOMRange(e,n).getClientRects()[0];if(l==null)return t;l.width;var u=l.height,d={},c=l.top-o,f=l.left-i;if(f>a/2){var p=a-f;d.right=p+5+"px"}else d.left=f+5+"px";if(c>s/2){var v=s-c;d.bottom=v+5+"px"}else{var h=c+u;h<0&&(h=0),d.top=h+5+"px"}return d}function WG(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=kr.isElement(t)&&e.isVoid(t),i=kr.isElement(t)&&e.isInline(t),a=Yk.get(t);if(a==null)return r;var s=a.getBoundingClientRect(),l=s.top,u=s.left,d=s.height,c=s.width;if(o){var f=(function(k){var M=[];M.push(k);for(var D=0;M.length>0;){var P=M.pop();if(P==null||++D>1e4)break;var O=P.nodeName;if(P.nodeType===1){var _=O.toLowerCase();if(X5t.includes(_)||_==="iframe"||_==="video")return P;var B=P.children||[],N=B.length;if(N)for(var q=N-1;q>=0;q--)M.push(B[q])}}return null})(a);if(f!=null){var p=f.getBoundingClientRect();l=p.top,d=p.height}}var v=jG(e);if(v==null)return r;var h,g=v.top,y=v.left,m=v.width,b=v.height,w={},A=l-g,S=u-y;if(n==="bar")return w.left=S+"px",A>40?w.bottom=b-A+5+"px":w.top=A+d+5+"px",w;if(n==="modal")return o?i?S>(m-c)/2?w.right=m-S+5+"px":w.left=S+c+5+"px":w.left="20px":w.left=S+"px",o?((h=A)<0&&(h=0),w.top=h+"px"):A>(b-d)/2?w.bottom=b-A+5+"px":((h=A+d)<0&&(h=0),w.top=h+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function u$(e,t){nc((function(){var n=jG(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,d=l.left,c=t.width(),f=t.height(),p=u-o,v=d-i,h=t.attr("style");if(h.indexOf("top")>=0&&(r=p+f-s)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(h.indexOf("bottom")>=0&&u<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(u);t.css("bottom",b+"px")}if(h.indexOf("left")>=0&&(r=v+c-a)>0){var w=t.css("left"),A=parseInt(w.toString())-r;A<0&&(A=0),t.css("left",A+"px")}if(h.indexOf("right")>=0&&d<0){var S=t.css("right"),k=parseInt(S.toString())-Math.abs(d);t.css("right",k+"px")}}}))}var d6t=m7("slice"),f6t=ta("species"),HP=Wn.Array,p6t=Math.max;Yi({target:"Array",proto:!0,forced:!d6t},{slice:function(e,t){var n,r,o,i=B0(this),a=mm(i),s=ab(e,a),l=ab(t===void 0?a:t,a);if(Hk(i)&&(n=i.constructor,(g7(n)&&(n===HP||Hk(n.prototype))||Ri(n)&&(n=n[f6t])===null)&&(n=void 0),n===HP||n===void 0))return _5e(i,s,l);for(r=new(n===void 0?HP:n)(p6t(l-s,0)),o=0;s<l;s++,o++)s in i&&DA(r,o,i[s]);return r.length=o,r}});var h6t=p5.f,Ble=Mr("".startsWith),g6t=Mr("".slice),v6t=Math.min,K5e=yG("startsWith"),m6t=!K5e&&!!(function(){var e=h6t(String.prototype,"startsWith");return e&&!e.writable})();Yi({target:"String",proto:!0,forced:!m6t&&!K5e},{startsWith:function(e){var t=yi(tc(this));mG(e);var n=Zb(v6t(arguments.length>1?arguments[1]:void 0,t.length)),r=yi(e);return Ble?Ble(t,r,n):g6t(t,n,n+r.length)===r}});var Ym=Object.assign,Lle=Object.defineProperty,y6t=Mr([].concat),Fle=!Ym||ei((function(){if(ls&&Ym({b:1},Ym(Lle({},"a",{enumerable:!0,get:function(){Lle(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),Ym({},e)[n]!=7||uy(Ym({},t)).join("")!=r}))?function(e,t){for(var n=R0(e),r=arguments.length,o=1,i=o5e.f,a=t5e.f;r>o;)for(var s,l=h7(arguments[o++]),u=i?y6t(uy(l),i(l)):uy(l),d=u.length,c=0;d>c;)s=u[c++],ls&&!qo(a,l,s)||(n[s]=l[s]);return n}:Ym;Yi({target:"Object",stat:!0,forced:Object.assign!==Fle},{assign:Fle});var b6t=["props","attrs","style","dataset","on","hook"];function Q5e(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach((function(i){var a,s,l=n[i];if(i!=="key"){if(!b6t.includes(i)){if(i.startsWith("data-")){var u=i.slice(5);return u=H4t(u),(function(d,c){d.data==null&&(d.data={});var f=d.data;f.dataset==null&&(f.dataset={}),Object.assign(f.dataset,c)})(e,((a={})[u]=l,a)),void delete n[i]}(function(d,c){d.data==null&&(d.data={});var f=d.data;f.props==null&&(f.props={}),Object.assign(f.props,c)})(e,(s={},s[i]=l,s)),delete n[i]}}else e.key=l})),o.length>0&&o.forEach((function(i){typeof i!="string"&&Q5e(i)}))}var c$=[],Y5e={};function w6t(e,t,n){return Xr(n.isInline(e)?"span":"div",null,t)}function Ule(e,t){return t===void 0&&(t=!1),Xr("span",{"data-slate-string":!0},t?e+`
- `:e)}function WP(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Xr("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Xr("br",null):null)}function d$(e,t,n,r){return PA.set(e,t),cb.set(e,n),kr.isElement(e)?(function(o,i){var a,s=Et.findKey(i,o),l=i.isInline(o),u=Xe.isVoid(i,o),d=j5e(s.id),c={id:d,key:s.id,"data-slate-node":"element","data-slate-inline":l},f=o.type,p=o.children,v=p===void 0?[]:p,h=(function(A){return Y5e[A]||w6t})(f);a=u?null:v.map((function(A,S){return d$(A,S,o,i)}));var g=h(o,a,i);if(u){c["data-slate-void"]=!0;var y=l?"span":"div",m=Fo(Qn.texts(o),1),b=Fo(m[0],1)[0],w=Xr(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},d$(b,0,o,i));g=Xr(y,{style:{position:"relative"}},g,w),PA.set(b,0),cb.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,c),u||l||(g=(function(A,S){var k=S;return c$.forEach((function(M){k=M(A,S)})),k})(o,g)),nc((function(){var A=e$(d);A!=null&&(JU.set(s,A),Yk.set(o,A),Qk.set(A,o))})),g})(e,r):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=Et.findKey(a,o),l=a.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=Et.findPath(a,o),d=l([o,u]),c=ir.decorations(o,d),f=c.map((function(h,g){var y=(function(m,b,w,A,S){b===void 0&&(b=!1);var k=m.text,M=Et.findPath(S,w),D=Ht.parent(M);if(Xe.isEditor(A))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(A)?WP(Qn.string(A).length):k!==""||A.children[A.children.length-1]!==w||S.isInline(A)||Xe.string(S,D)!==""?k===""?WP():b&&k.slice(-1)===`
- `?Ule(k,!0):Ule(k):WP(0,!0)})(h,g===c.length-1,o,i,a);return y=(function(m,b){var w=b;return c$.forEach((function(A){w=A(m,w)})),w})(h,y),Xr("span",{"data-slate-leaf":!0},y)})),p=(function(h){return"w-e-text-"+h})(s.id),v=Xr("span",{"data-slate-node":"text",id:p,key:s.id},f);return nc((function(){var h=e$(p);h!=null&&(JU.set(s,h),Yk.set(o,h),Qk.set(h,o))})),v})(e,n,r)}function A6t(e,t){var n,r=e.$scroll,o=(function(h){return"w-e-textarea-"+h})(e.id),i=t.getConfig(),a=i.readOnly,s=i.autoFocus,l=(function(h,g){return g===void 0&&(g=!1),ib("div#"+h,{props:{contentEditable:!g}})})(o,a),u=t.children||[];l.children=u.map((function(h,g){var y=d$(h,g,t,t);return Q5e(y),y}));var d=Zse.get(e);if(d==null&&(d=!0),d){var c=(function(h,g){return Mt(`<div
- id="`+h+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)})(o);r.append(c),e.$textArea=c,n=c[0],(p=d4t([p4t,m4t,b4t,h4t,v4t,f4t]))(n,l),Zse.set(e,!1),Xse.set(e,p)}else{var f=Jse.get(e),p=Xse.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=e$(o))!=null){if((d?s:t.isFocused())&&n.focus({preventScroll:!0}),d){var v=PG(n);v&&A5e.set(t,v)}MG.set(t,n),Yk.set(t,n),Qk.set(n,t),Jse.set(e,l)}}function $le(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function zle(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function VP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return zle(n.overflowY,t)||zle(n.overflowX,t)||(function(r){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1}function w6(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}function jle(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l=typeof a=="function"?a:function(Me){return Me!==a};if(!$le(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,d=[],c=e;$le(c)&&l(c);){if((c=c.parentElement)===u){d.push(c);break}c!=null&&c===document.body&&VP(c)&&!VP(document.documentElement)||c!=null&&VP(c,s)&&d.push(c)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,A=g.bottom,S=g.left,k=o==="start"||o==="nearest"?b:o==="end"?A:b+y/2,M=i==="center"?S+m/2:i==="end"?w:S,D=[],P=0;P<d.length;P++){var O=d[P],_=O.getBoundingClientRect(),B=_.height,N=_.width,q=_.top,U=_.right,j=_.bottom,H=_.left;if(r==="if-needed"&&b>=0&&S>=0&&A<=p&&w<=f&&b>=q&&A<=j&&S>=H&&w<=U)return D;var G=getComputedStyle(O),Z=parseInt(G.borderLeftWidth,10),$=parseInt(G.borderTopWidth,10),L=parseInt(G.borderRightWidth,10),W=parseInt(G.borderBottomWidth,10),ie=0,ee=0,te="offsetWidth"in O?O.offsetWidth-O.clientWidth-Z-L:0,X="offsetHeight"in O?O.offsetHeight-O.clientHeight-$-W:0;if(u===O)ie=o==="start"?k:o==="end"?k-p:o==="nearest"?w6(h,h+p,p,$,W,h+k,h+k+y,y):k-p/2,ee=i==="start"?M:i==="center"?M-f/2:i==="end"?M-f:w6(v,v+f,f,Z,L,v+M,v+M+m,m),ie=Math.max(0,ie+h),ee=Math.max(0,ee+v);else{ie=o==="start"?k-q-$:o==="end"?k-j+W+X:o==="nearest"?w6(q,j,B,$,W+X,k,k+y,y):k-(q+B/2)+X/2,ee=i==="start"?M-H-Z:i==="center"?M-(H+N/2)+te/2:i==="end"?M-U+L+te:w6(H,U,N,Z,L+te,M,M+m,m);var ue=O.scrollLeft,ve=O.scrollTop;k+=ve-(ie=Math.max(0,Math.min(ve+ie,O.scrollHeight-B+X))),M+=ue-(ee=Math.max(0,Math.min(ue+ee,O.scrollWidth-N+te)))}D.push({el:O,top:ie,left:ee})}return D}function Hle(e){return e===Object(e)&&Object.keys(e).length!==0}function Tu(e,t){return Vv(t)&&Et.hasDOMNode(e,t,{editable:!0})}function Wle(e,t){if(e.getConfig().readOnly)return!1;var n=O1(e,t)&&Et.toSlateNode(e,t);return Xe.isVoid(e,n)}function O1(e,t){return Vv(t)&&Et.hasDOMNode(e,t)}function Z5e(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=Et.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var s=MG.get(t),l=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(l=!0),a&&l&&r){var u=Et.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(u&&pn.equals(u,r)){var d=!0;if(pn.isCollapsed(r)){var c=i.anchorNode,f=i.anchorOffset;if(c===s){var p=s.childNodes,v=void 0;(v=p[f])&&v.matches("table")&&(d=!1),(v=p[f-1])&&v.matches("table")&&(d=!1)}}if(d)return}}if(!r||Et.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&Et.toDOMRange(t,r);if(h){pn.isBackward(r)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var y=document.body;(function(m,b){var w=!m.ownerDocument.documentElement.contains(m);if(Hle(b)&&typeof b.behavior=="function")return b.behavior(w?[]:jle(m,b));if(!w){var A=(function(S){return S===!1?{block:"end",inline:"nearest"}:Hle(S)?S:{block:"start",inline:"nearest"}})(b);(function(S,k){k===void 0&&(k="auto");var M="scrollBehavior"in document.body.style;S.forEach((function(D){var P=D.el,O=D.top,_=D.left;P.scroll&&M?P.scroll({top:O,left:_,behavior:k}):(P.scrollTop=O,P.scrollLeft=_)}))})(jle(m,A),A.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){h&&s3&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=Et.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var qP=new WeakMap,Vle=new WeakMap,C6t={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},x6t={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},S6t={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},zi=function(e){var t=C6t[e],n=x6t[e],r=S6t[e],o=t&&VM(t),i=n&&VM(n),a=r&&VM(r);return function(s){return!(!o||!o(s))||!!(t$&&i&&i(s))||!(t$||!a||!a(s))}},Gi={isBold:zi("bold"),isCompose:zi("compose"),isMoveBackward:zi("moveBackward"),isMoveForward:zi("moveForward"),isDeleteBackward:zi("deleteBackward"),isDeleteForward:zi("deleteForward"),isDeleteLineBackward:zi("deleteLineBackward"),isDeleteLineForward:zi("deleteLineForward"),isDeleteWordBackward:zi("deleteWordBackward"),isDeleteWordForward:zi("deleteWordForward"),isExtendBackward:zi("extendBackward"),isExtendForward:zi("extendForward"),isExtendLineBackward:zi("extendLineBackward"),isExtendLineForward:zi("extendLineForward"),isItalic:zi("italic"),isMoveLineBackward:zi("moveLineBackward"),isMoveLineForward:zi("moveLineForward"),isMoveWordBackward:zi("moveWordBackward"),isMoveWordForward:zi("moveWordForward"),isRedo:zi("redo"),isSplitBlock:zi("splitBlock"),isTransposeCharacter:zi("transposeCharacter"),isUndo:zi("undo"),isTab:zi("tab"),isSelectAll:zi("selectAll")};function Fa(e){e.preventDefault()}var E6t={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(bw&&!o&&Tu(n,r.target)){var i=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=Fo(r.getTargetRanges(),1)[0];if(l){var u=Et.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});i&&pn.equals(i,u)||Zt.select(n,u)}}if(i&&pn.isExpanded(i)&&a.startsWith("delete")){var d=a.endsWith("Backward")?"backward":"forward";Xe.deleteFragment(n,{direction:d})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Xe.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Xe.deleteForward(n);break;case"deleteContentBackward":Xe.deleteBackward(n);break;case"deleteEntireSoftLine":Xe.deleteBackward(n,{unit:"line"}),Xe.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Xe.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Xe.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Xe.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Xe.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Xe.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Xe.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Xe.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!TP.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&Xe.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&Tu(n,r.target)){var a=Et.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var s=r.relatedTarget;if(!(s===Et.toDOMNode(n,n)||hc(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Vv(s)&&Et.hasDOMNode(n,s)){var l=Et.toSlateNode(n,s);if(kr.isElement(l)&&!n.isVoid(l))return}if(yw){var u=a.getSelection();u?.removeAllRanges()}iv.delete(n)}}}},focus:function(e,t,n){var r=Et.toDOMNode(n,n),o=Et.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,s3&&e.target!==r?r.focus():iv.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&O1(n,e.target)&&Vv(e.target)){var r=Et.toSlateNode(n,e.target),o=Et.findPath(n,r);if(Xe.hasPath(n,o)&&Qn.get(n,o)===r){var i=Xe.start(n,o),a=Xe.end(n,o),s=Xe.void(n,{at:i}),l=Xe.void(n,{at:a});if(s&&l&&Ht.equals(s[1],l[1])){var u=Xe.range(n,i);Zt.select(n,u)}}}},compositionstart:function(e,t,n){if(Tu(n,e.target)){var r=n.selection;if(r&&pn.isExpanded(r)&&(Xe.deleteFragment(n),Promise.resolve().then((function(){Z5e(t,n,!0)}))),r&&pn.isCollapsed(r)){var o=Et.toDOMRange(n,r).startContainer,i=o.textContent||"";qP.set(n,i),Vle.set(n,o)}t.isComposing=!0,(function(a,s){var l;s.getConfig().placeholder&&s.isEmpty()&&a.showPlaceholder&&((l=a.$placeholder)===null||l===void 0||l.hide(),a.showPlaceholder=!1)})(t,n)}},compositionend:function(e,t,n){var r=e;if(Tu(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(n$||s3)&&Et.cleanExposedTexNodeInSelectionBlock(n);for(var i=pn.isBackward(o)?o.focus:o.anchor,a=Fo(Xe.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var l=Fo(Xe.node(n,i.path.slice(0,s+1)),1)[0];if(kr.isElement(l)&&((yw||s3)&&l.type==="link"||l.type==="code")){Et.setNewKey(a);break}}var u=r.data;if(u){if(n.getConfig().maxLength){var d=Et.getLeftLengthOfMaxLength(n);d<u.length?(Et.toDOMRange(n,o).startContainer.textContent=qP.get(n)||"",d>0&&Xe.insertText(n,u.slice(0,d)),t.changeViewState()):Xe.insertText(n,u)}else Xe.insertText(n,u);yw||setTimeout((function(){var c=n.selection;if(c!=null){var f=Vle.get(n);f!=null&&Et.toDOMRange(n,c).startContainer!==f&&(f.textContent=qP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){Tu(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Tu(n,r.target)){if((function(a,s){var l=A7.get(a),u=l&&l.getMenus(),d=Kk.get(a),c=d&&d.getMenus(),f=Mu(Mu({},u),c);for(var p in f){var v=f[p],h=v.hotkey;if(h&&q4t(h,s)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}})(n,r),Gi.isTab(r))return Fa(r),void n.handleTab();if(Gi.isRedo(r))return Fa(r),void(typeof n.redo=="function"&&n.redo());if(Gi.isUndo(r))return Fa(r),void(typeof n.undo=="function"&&n.undo());if(Gi.isMoveLineBackward(r))return Fa(r),void Zt.move(n,{unit:"line",reverse:!0});if(Gi.isMoveLineForward(r))return Fa(r),void Zt.move(n,{unit:"line"});if(Gi.isExtendLineBackward(r))return Fa(r),void Zt.move(n,{unit:"line",edge:"focus",reverse:!0});if(Gi.isExtendLineForward(r))return Fa(r),void Zt.move(n,{unit:"line",edge:"focus"});if(Gi.isMoveBackward(r))return Fa(r),void(o&&pn.isCollapsed(o)?Zt.move(n,{reverse:!0}):Zt.collapse(n,{edge:"start"}));if(Gi.isMoveForward(r))return Fa(r),void(o&&pn.isCollapsed(o)?Zt.move(n):Zt.collapse(n,{edge:"end"}));if(Gi.isMoveWordBackward(r))return Fa(r),o&&pn.isExpanded(o)&&Zt.collapse(n,{edge:"focus"}),void Zt.move(n,{unit:"word",reverse:!0});if(Gi.isMoveWordForward(r))return Fa(r),o&&pn.isExpanded(o)&&Zt.collapse(n,{edge:"focus"}),void Zt.move(n,{unit:"word"});if(Gi.isSelectAll(r))return Fa(r),void n.selectAll();if(bw){if((n$||yw)&&o&&(Gi.isDeleteBackward(r)||Gi.isDeleteForward(r))&&pn.isCollapsed(o)){var i=Qn.parent(n,o.anchor.path);if(kr.isElement(i)&&Xe.isVoid(n,i)&&Xe.isInline(n,i))return r.preventDefault(),void Zt.delete(n,{unit:"block"})}}else{if(Gi.isBold(r)||Gi.isItalic(r)||Gi.isTransposeCharacter(r))return void Fa(r);if(Gi.isSplitBlock(r))return Fa(r),void Xe.insertBreak(n);if(Gi.isDeleteBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"backward"}):Xe.deleteBackward(n));if(Gi.isDeleteForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"forward"}):Xe.deleteForward(n));if(Gi.isDeleteLineBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"backward"}):Xe.deleteBackward(n,{unit:"line"}));if(Gi.isDeleteLineForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"forward"}):Xe.deleteForward(n,{unit:"line"}));if(Gi.isDeleteWordBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"backward"}):Xe.deleteBackward(n,{unit:"word"}));if(Gi.isDeleteWordForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Xe.deleteFragment(n,{direction:"forward"}):Xe.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!bw&&!n.getConfig().readOnly&&Tu(n,e.target)){e.preventDefault();var r=e.key;Xe.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Tu(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&Tu(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(pn.isExpanded(o))Xe.deleteFragment(n);else{var a=Qn.parent(n,o.anchor.path);Xe.isVoid(n,a)&&Zt.delete(n)}}},paste:function(e,t,n){TP.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Tu(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void TP.set(n,!1);if(!bw||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(e,t,n){if(O1(n,e.target)){var r=Et.toSlateNode(n,e.target);Xe.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(O1(n,r.target)&&!n.getConfig().readOnly){var o=Et.toSlateNode(n,r.target),i=Et.findPath(n,o);if(Xe.isVoid(n,o)||Xe.void(n,{at:i,voids:!0})){var a=Xe.range(n,i);Zt.select(n,a)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&O1(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&O1(n,r.target)&&o!=null&&!(bw&&yw&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Et.findEventRange(n,r);Zt.select(n,a),t.isDraggingInternally&&(i&&Zt.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},k6t=1,T6t=(function(){function e(t){var n=this;this.id=k6t++,this.$textArea=null,this.$progressBar=Mt('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Mt('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=zv((function(){var a=n.editorInstance;(function(s,l){var u=s.isComposing,d=s.isUpdatingSelection,c=s.isDraggingInternally;if(!(l.getConfig().readOnly||u||d||c)){var f=Et.findDocumentOrShadowRoot(l),p=f.activeElement,v=Et.toDOMNode(l,l),h=f.getSelection();if(p===v?(s.latestElement=p,iv.set(l,!0)):iv.delete(l),!h)return Zt.deselect(l);var g=h.anchorNode,y=h.focusNode,m=Tu(l,g)||Wle(l,g),b=Tu(l,y)||Wle(l,y);if(m&&b){var w=Et.toSlateRange(l,h,{exactMatch:!1,suppressThrow:!1});Zt.select(l,w)}else Zt.deselect(l)}})(n,a)}),100);var r=Mt(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=Mt('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=Mt('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,nc((function(){var a=n.editorInstance,s=Et.getWindow(a);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",(function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)})),o.on("click",(function(){return a.hidePanelOrModal()})),a.on("change",n.changeViewState.bind(n));var l=a.getConfig().onChange;l&&a.on("change",(function(){return l(a)})),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=YU.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(eG(E6t,(function(i,a){n.on(a,(function(s){i(s,t,o)}))})),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",zv((function(){o.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",(function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout((function(){return i&&i(n)})):t.latestEditorSelection!=null&&n.selection==null&&setTimeout((function(){return o&&o(n)})),t.latestEditorSelection=n.selection}))},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-Et.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout((function(){n.hide(),n.css("width","0"),n.show()}),1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;A6t(this,n),(function(r,o){var i,a=o.getConfig().placeholder;if(a){var s=o.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var l=Mt('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(l),r.$placeholder=l}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}})(this,n),nc((function(){Z5e(t,n)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function VG(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&VG(t)}function qG(){return Mt('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function X5e(){return Mt('<div class="w-e-bar-divider"></div>')}function J5e(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=t$?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}_G("match",(function(e,t,n){return[function(r){var o=tc(this),i=r==null?void 0:Hv(r,e);return i?qo(i,r,o):new RegExp(r)[e](yi(o))},function(r){var o=Da(this),i=yi(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return OA(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=OA(o,i))!==null;){var c=yi(l[0]);u[d]=c,c===""&&(o.lastIndex=DG(i,Zb(o.lastIndex),s)),d++}return d===0?null:u}]}));var GG=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Mt('<div class="w-e-bar-item"></div>'),this.$button=Mt('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,d=n.iconSvg,c=d===void 0?"":d,f=this.$button;if(c){var p=Mt(c);VG(p),f.append(p)}else f.text(s);J5e(f,c,s,u,r),r&&c&&f.append(Mt('<span class="title">'+s+"</span>")),a&&f.css("width",a+"px"),f.attr("data-menu-key",t),this.$elem.append(f),nc((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(n){n.preventDefault(),tu(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())}))},e.prototype.exec=function(){var t=tu(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=tu(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=tu(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),_6t=(function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Jb(t,e),t.prototype.onButtonClick=function(){},t})(GG),KG=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=XU.get(t);n==null&&(n=new Set,XU.set(t,n)),n.add(this),E8.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=E8.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=E8.get(this);t&&t.emit("modalOrPanelHide")}},e})(),D6t=(function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=Mt('<div class="w-e-drop-panel"></div>'),r}return Jb(t,e),t.prototype.genSelfElem=function(){return null},t})(KG),I6t=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=qG();i.$button.append(a)}return i}return Jb(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=tu(this);if(this.dropPanel==null){var o=new D6t(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,d=l.parents(".w-e-bar");u-d.offset().left>=d.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t})(GG),O6t=(function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=Mt('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",(function(a){return a.stopPropagation()})),i.on("keyup",(function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())})),o}return Jb(t,e),t.prototype.genSelfElem=function(){var n=this,r=Mt('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=E8.get(this);return r.on("click",(function(){n.hide(),o?.restoreSelection()})),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t})(KG);function lu(e,t,n){var r=Mt('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mt('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function e2(e,t){var n=Mt('<div class="button-container"></div>'),r=Mt('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var M6t=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=Mt("body"),i.modal=null,i.menu=r,i}return Jb(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=tu(this),r=this.menu.getModalPositionNode(n);return kr.isElement(r)?WG(n,r,"modal"):HG(n)},t.prototype.handleModal=function(){var n=tu(this),r=this.menu;if(this.modal==null){var o=new O6t(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=tu(this),i=this.menu;if(i.getModalContentElem!=null){var a=Et.getTextarea(o),s=Et.getToolbar(o),l=(s?.getConfig()||{}).modalAppendToBody,u=i.getModalContentElem(o);if(n.renderContent(u),l)n.setStyle({left:"0",right:"0"});else{var d=this.getPosition();n.setStyle(d)}r&&(l?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),l||u$(o,n.$elem),setTimeout((function(){o.blur()}))}},t})(GG),P6t=(function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=Mt('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return Jb(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=Mt("<ul></ul>");n.forEach((function(i){var a=i.value,s=i.text,l=i.selected,u=i.styleForRenderMenuList,d=Mt('<li data-value="'+a+'"></li>');if(u&&d.css(u),l){var c=Mt('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');d.append(c),d.addClass("selected")}d.append(Mt('<span data-value="'+a+'">'+s+"</span>")),d.attr("title",s),o.append(d)})),r.append(o)},t.prototype.genSelfElem=function(){return null},t})(KG),N6t=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Mt('<div class="w-e-bar-item"></div>'),this.$button=Mt('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,s=n.width,l=n.iconSvg,u=l===void 0?"":l,d=n.hotkey,c=d===void 0?"":d;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var f=this.$button;s&&f.css("width",s+"px"),f.attr("data-menu-key",t),J5e(f,u,a,c,r),this.$elem.append(f),this.menu=n,nc((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",(function(n){n.preventDefault(),tu(t).hidePanelOrModal(),t.trigger()}))},e.prototype.trigger=function(){var t=this,n=tu(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new P6t(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",(function(a){var s=a.target;if(s!=null){a.preventDefault();var l=Mt(s).attr("data-value");t.onChange(l)}}))}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=tu(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=tu(this),n=this.menu,r=n.getValue(t),o=(function(s,l){for(var u=s.length,d="",c=0;c<u;c++){var f=s[c];if(f.value===l){d=f.text;break}}return d})(n.getOptions(t),r.toString()),i=this.$button,a=qG();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=tu(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),qle=(function(){function e(t){this.$elem=Mt('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Mt('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Mt('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var s=Mt(r);VG(s),a.append(s)}else a.text(o);a.attr("data-menu-key",n);var l=qG();a.append(l),i.append(a);var u=this.$container;i.append(u);var d=this.createObserver();this.observe(d)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver((function(){var i=n.find("button"),a=i.length;if(a!==0){var s=0;i.each((function(l){Mt(l).hasClass("disabled")&&s++})),o.disconnect(),s===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}}));return o},e})(),Gle=new WeakMap;function tu(e){var t=OG.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function exe(e,t,n){n===void 0&&(n=!1);var r=Gle.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new I6t(e,t,n):a?new M6t(e,t,n):new _6t(e,t,n)}if(o==="select"&&(r=new N6t(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return Gle.set(t,r),r}function R6t(e,t){var n=e.selection;return n!=null&&!pn.isCollapsed(n)&&!Et.getSelectedElems(e).some((function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0}))&&!!ir.isText(t)}var B6t=(function(){function e(){var t=this;this.$elem=Mt('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=ICe((function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,s=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&kr.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(s),t.setPosition(i),t.show()),t.prevSelectedNode=i)}),200),nc((function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",(function(i){return i.preventDefault()}),{passive:!1}),Et.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;nc((function(){t.hoverbarItems.forEach((function(n){n.changeMenuState()}))}))},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach((function(o){if(o!=="|")n.registerSingleItem(o);else{var i=X5e();r.append(i)}}))},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=NA[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=exe(t,o);this.hoverbarItems.push(a),OG.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),kr.isElement(t)){var o=WG(n,t,"bar");return r.css(o),void u$(n,r)}if(ir.isText(t))return o=HG(n),r.css(o),void u$(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(s){var l=n[s],u=l.match,d=l.menuKeys,c=d===void 0?[]:d,f=u||function(h,g){return Et.checkNodeType(g,s)},p=Fo(Xe.nodes(t,{match:function(h){return f(t,h)},universal:!0}),1),v=p[0];if(v!=null)return r=v[0],o=c,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=ZU.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=R6t),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=Et.findPath(null,t),o=Et.findPath(null,n);return Ht.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function txe(e,t,n,r){if(PA.set(e,t),cb.set(e,n),kr.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach((function(s,l){return txe(s,l,e,r)})),Xe.isVoid(r,e)){var i=Fo(Qn.texts(e),1),a=Fo(i[0],1)[0];PA.set(a,0),cb.set(a,e)}}}function L6t(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,s=e.plugins,l=s===void 0?[]:s,u=(y=>{var m=y,{apply:b}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:w}=m,{redos:A}=w;if(A.length>0){var S=A[A.length-1];F1.withoutSaving(m,(()=>{Xe.withoutNormalizing(m,(()=>{for(var k of S)m.apply(k)}))})),w.redos.pop(),w.undos.push(S)}},m.undo=()=>{var{history:w}=m,{undos:A}=w;if(A.length>0){var S=A[A.length-1];F1.withoutSaving(m,(()=>{Xe.withoutNormalizing(m,(()=>{var k=S.map(Ah.inverse).reverse();for(var M of k)m.apply(M)}))})),w.redos.push(S),w.undos.pop()}},m.apply=w=>{var{operations:A,history:S}=m,{undos:k}=S,M=k[k.length-1],D=M&&M[M.length-1],P=((N,q)=>!(!q||N.type!=="set_selection"||q.type!=="set_selection"))(w,D),O=F1.isSaving(m),_=F1.isMerging(m);if(O==null&&(O=((N,q)=>N.type!=="set_selection"||N.properties!=null&&N.newProperties!=null)(w)),O){if(_==null&&(_=M!=null&&(A.length!==0||((N,q)=>N.type==="set_selection"||!(!q||N.type!=="insert_text"||q.type!=="insert_text"||N.offset!==q.offset+q.text.length||!Ht.equals(N.path,q.path))||!(!q||N.type!=="remove_text"||q.type!=="remove_text"||N.offset+N.text.length!==q.offset||!Ht.equals(N.path,q.path)))(w,D)||P)),M&&_)P&&M.pop(),M.push(w);else{var B=[w];k.push(B)}for(;k.length>100;)k.shift();(N=>N.type!=="set_selection")(w)&&(S.redos=[])}b(w)},m})((function(y){var m=y,b=m.insertText,w=m.insertNode,A=m.insertFragment,S=m.dangerouslyInsertHtml;return m.insertText=function(k){if(m.getConfig().maxLength){var M=Et.getLeftLengthOfMaxLength(m);M<=0||(M<k.length?b(k.slice(0,M)):b(k))}else b(k)},m.insertNode=function(k){if(m.getConfig().maxLength){var M=Et.getLeftLengthOfMaxLength(m);M<=0||M<Qn.string(k).length||w(k)}else w(k)},m.insertFragment=function(k){if(m.getConfig().maxLength)if(k.length!==1)k.forEach((function(D){m.insertNode(D)}));else{var M=k[0];if(Et.getLeftLengthOfMaxLength(m)<Qn.string(M).length)return;A(k)}else A(k)},m.dangerouslyInsertHtml=function(k,M){if(k===void 0&&(k=""),M===void 0&&(M=!1),k)if(m.getConfig().maxLength){var D=Et.getLeftLengthOfMaxLength(m);if(!(D<=0)){var P=document.createElement("div");P.innerHTML=k;var O=Array.from(P.childNodes).reduce((function(_,B){var N=B.nodeType,q=B.nodeName;return B?N===md.TEXT_NODE?_+(B.textContent||""):N===md.ELEMENT_NODE?Ile.has(q.toLowerCase())?_:_+(B.textContent||""):_:_}),"");D<O.length||S(k,M)}}else S(k,M)},m})((function(y){var m=y;return m.on=function(b,w){var A=b6(m);if(A.on(b,w),b==="destroyed"&&Rle(m,w),b!=="destroyed"){var S=function(){return A.off(b,w)};A.on("destroyed",S),Rle(m,S)}},m.once=function(b,w){b6(m).once(b,w)},m.off=function(b,w){b6(m).off(b,w)},m.emit=function(b){for(var w=[],A=1;A<arguments.length;A++)w[A-1]=arguments[A];var S=b6(m);S.emit.apply(S,GU([b],Fo(w))),b==="destroyed"&&(u6t(m).forEach((function(k){return S.off("destroyed",k)})),c6t(m))},m})((function(y){var m=y;return m.select=function(b){Zt.select(m,b)},m.deselect=function(){var b=m.selection,w=Et.findDocumentOrShadowRoot(m).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&Zt.deselect(y)},m.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||Zt.move(y,{distance:b,unit:"character",reverse:w}))},m.moveReverse=function(b){m.move(b,!0)},m.restoreSelection=function(){var b=kP.get(m);b!=null&&(m.focus(),Zt.select(m,b))},m.getSelectionPosition=function(){return HG(m)},m.getNodePosition=function(b){return WG(m,b)},m.isSelectedAll=function(){var b=m.selection;if(b==null)return!1;var w=Fo(pn.edges(b),2),A=w[0],S=w[1],k=Fo(Xe.edges(m,[]),2),M=k[0],D=k[1];return!(!mo.equals(A,M)||!mo.equals(S,D))},m.selectAll=function(){var b=Xe.start(m,[]),w=Xe.end(m,[]);Zt.select(m,{anchor:b,focus:w})},m})((function(y){var m=y,b=m.onChange,w=m.insertText,A=m.apply,S=m.deleteBackward;return m.insertText=function(k){m.getConfig().readOnly||w(k)},m.apply=function(k){var M,D,P,O,_,B,N,q,U=[];switch(k.type){case"insert_text":case"remove_text":case"set_node":try{for(var j=Pu(Xe.levels(m,{at:k.path})),H=j.next();!H.done;H=j.next()){var G=Fo(H.value,2),Z=G[0],$=G[1],L=Et.findKey(m,Z);U.push([$,L])}}catch(he){M={error:he}}finally{try{H&&!H.done&&(D=j.return)&&D.call(j)}finally{if(M)throw M.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var W=Pu(Xe.levels(m,{at:Ht.parent(k.path)})),ie=W.next();!ie.done;ie=W.next()){var ee=Fo(ie.value,2);Z=ee[0],$=ee[1],L=Et.findKey(m,Z),U.push([$,L])}}catch(he){P={error:he}}finally{try{ie&&!ie.done&&(O=W.return)&&O.call(W)}finally{if(P)throw P.error}}break;case"move_node":try{for(var te=Pu(Xe.levels(m,{at:Ht.common(Ht.parent(k.path),Ht.parent(k.newPath))})),X=te.next();!X.done;X=te.next()){var ue=Fo(X.value,2);Z=ue[0],$=ue[1],L=Et.findKey(m,Z),U.push([$,L])}}catch(he){_={error:he}}finally{try{X&&!X.done&&(B=te.return)&&B.call(te)}finally{if(_)throw _.error}}}A(k);try{for(var ve=Pu(U),Me=ve.next();!Me.done;Me=ve.next()){var we=Fo(Me.value,2);$=we[0],L=we[1],Z=Fo(Xe.node(m,$),1)[0],k8.set(Z,L)}}catch(he){N={error:he}}finally{try{Me&&!Me.done&&(q=ve.return)&&q.call(ve)}finally{if(N)throw N.error}}},m.deleteBackward=function(k){if(k!=="line")return S(k);if(y.selection&&pn.isCollapsed(y.selection)){var M=Xe.above(y,{match:function(_){return Xe.isBlock(y,_)},at:y.selection});if(M){var D=Fo(M,2)[1],P=Xe.range(y,D,y.selection.anchor),O=(function(_,B){var N=Xe.range(_,pn.end(B)),q=Array.from(Xe.positions(_,{at:B})),U=0,j=q.length,H=Math.floor(j/2);if(Ale(_,Xe.range(_,q[U]),N))return Xe.range(_,q[U],N);if(q.length<2)return Xe.range(_,q[q.length-1],N);for(;H!==q.length&&H!==U;)Ale(_,Xe.range(_,q[H]),N)?j=H:U=H,H=Math.floor((U+j)/2);return Xe.range(_,q[j],N)})(m,P);pn.isCollapsed(O)||Zt.delete(y,{at:O})}}},m.onChange=function(){var k=m.selection;k!=null&&kP.set(m,k),m.emit("change"),b()},m.handleTab=function(){m.insertText(" ")},m.getHtml=function(){var k=m.children;return(k===void 0?[]:k).map((function(M){return z5e(M,m)})).join("")},m.getText=function(){var k=m.children;return(k===void 0?[]:k).map((function(M){return Qn.string(M)})).join(`
- `)},m.getSelectionText=function(){var k=m.selection;return k==null?"":Xe.string(y,k)},m.getElemsByType=function(k,M){var D,P;M===void 0&&(M=!1);var O=[],_=Xe.nodes(m,{at:[],universal:!0});try{for(var B=Pu(_),N=B.next();!N.done;N=B.next()){var q=Fo(N.value,1)[0];if(kr.isElement(q)&&(M?q.type.indexOf(k)>=0:q.type===k)){var U=j5e(Et.findKey(m,q).id);O.push(Mu(Mu({},q),{id:U}))}}}catch(j){D={error:j}}finally{try{N&&!N.done&&(P=B.return)&&P.call(B)}finally{if(D)throw D.error}}return O},m.getElemsByTypePrefix=function(k){return m.getElemsByType(k,!0)},m.isEmpty=function(){var k=m.children,M=k===void 0?[]:k;if(M.length>1)return!1;var D=M[0];if(D==null)return!0;if(kr.isElement(D)&&D.type==="paragraph"){var P=D.children,O=P===void 0?[]:P;if(O.length>1)return!1;var _=O[0];if(_==null||ir.isText(_)&&_.text==="")return!0}return!1},m.clear=function(){Zt.delete(m,{at:{anchor:Xe.start(m,[]),focus:Xe.end(m,[])}}),m.children.length===0&&Zt.insertNodes(m,[{type:"paragraph",children:[{text:""}]}])},m.getParentNode=function(k){return Et.getParentNode(m,k)},m.dangerouslyInsertHtml=function(k,M){if(k===void 0&&(k=""),M===void 0&&(M=!1),k){var D=document.createElement("div");D.innerHTML=k;var P=Array.from(D.childNodes);if(P=P.filter((function(N){var q=N.nodeType,U=N.nodeName;return q===md.TEXT_NODE||q===md.ELEMENT_NODE&&!Ile.has(U.toLowerCase())})),P.length!==0){var O=m.selection;if(O!=null){var _=null;Et.isSelectedEmptyParagraph(m)&&!M&&(_=[O.focus.path[0]]),D.setAttribute("hidden","true"),document.body.appendChild(D);var B=0;P.forEach((function(N){var q=N.nodeType,U=N.nodeName,j=N.textContent,H=j===void 0?"":j;if(q!==md.TEXT_NODE)if(U!=="BR"){var G=N,Z=!1;if(H5e.includes(U.toLowerCase()))Z=!0;else for(var $ in Jk)if(G.matches($)){Z=!0;break}if(Z){var L=$G(Mt(G),m);return Array.isArray(L)?(L.forEach((function(ie){return Ole(m,ie)})),B++):(Ole(m,L),B++),void(Et.isSelectedVoidNode(m)&&m.move(1))}var W=window.getComputedStyle(G).display;Et.isSelectedEmptyParagraph(m)||W.indexOf("inline")<0&&m.insertBreak(),m.dangerouslyInsertHtml(G.innerHTML,!0)}else m.insertText(`
- `);else{if(!H||!H.trim())return;m.insertNode({text:H})}})),B&&_&&Et.isEmptyPath(m,_)&&Zt.removeNodes(m,{at:_}),D.remove()}}}},m.setHtml=function(k){k===void 0&&(k="");var M=m.isDisabled(),D=m.isFocused(),P=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var O=Tle(m,k);if(Zt.insertFragment(m,O),D||(m.deselect(),m.blur()),M&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(P))}catch{m.select(Xe.start(m,[]))}},m})((function(y){var m=y;return m.getAllMenuKeys=function(){var b=[];for(var w in NA)b.push(w);return b},m.getConfig=function(){var b=Yse.get(m);if(b==null)throw new Error("Can not get editor config");return b},m.getMenuConfig=function(b){var w=m.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},m.alert=function(b,w){w===void 0&&(w="info");var A=m.getConfig().customAlert;A&&A(b,w)},m})((function(y){var m=Yxt(b2t());return m.id="wangEditor-"+rxt++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(b){if(Et.toDOMNode(m,m).focus({preventScroll:!0}),iv.set(m,!0),b){var w=Xe.end(m,[]);Zt.select(m,w)}else{var A=kP.get(m);A?Zt.select(m,A):Zt.select(m,Xe.start(m,[]))}},m.isFocused=function(){return!!iv.get(m)},m.blur=function(){Et.toDOMNode(m,m).blur(),Zt.deselect(m),iv.set(m,!1)},m.updateView=function(){Et.getTextarea(m).changeViewState();var b=Et.getToolbar(m);b&&b.changeToolbarState();var w=Et.getHoverbar(m);w&&w.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var b=Et.getTextarea(m);b.destroy(),QU.delete(m),YU.delete(b);var w=Et.getToolbar(m);w&&(w.destroy(),A7.delete(m),IG.delete(w));var A=Et.getHoverbar(m);A&&(A.destroy(),Kk.delete(m),ZU.delete(A)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(b){if(!m.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(w)}var A=Mt("#"+b);if(A.length!==0){var S=A[0];if(!Et.hasDOMNode(m,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
- 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var k=Et.getTextarea(m),M=k.$textAreaContainer,D=k.$scroll,P=A.offset().top,O=M.offset().top;D[0].scrollBy({top:P-O,behavior:"smooth"})}},m.showProgressBar=function(b){b<1||Et.getTextarea(m).changeProgress(b)},m.hidePanelOrModal=function(){var b=XU.get(m);b?.forEach((function(w){return w.hide()}))},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function(b){return Et.toDOMNode(m,b)},m.fullScreen=function(){if(!m.isFullScreen){var b=null,w=Et.getToolbar(m);w&&(b=w.$box);var A=Et.getTextarea(m).$box.parent();if(b&&b.parent()[0]!==A[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);A.addClass("w-e-full-screen-container");var S=A.css("z-index");A.attr("data-z-index",S.toString()),m.isFullScreen=!0,m.emit("fullScreen")}},m.unFullScreen=function(){if(m.isFullScreen){var b=Et.getTextarea(m).$box.parent();setTimeout((function(){b.removeClass("w-e-full-screen-container"),m.isFullScreen=!1,m.emit("unFullScreen")}),200)}},m.getEditableContainer=function(){return Et.getTextarea(m).$textAreaContainer[0]},m})()))))));if(n&&(function(y,m){return G5e(y,"data-w-e-textarea",m)})(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var d=(function(y){y===void 0&&(y={});var m=OCe(E5e),b={},w=y.MENU_CONF,A=w===void 0?{}:w;return eG(m,(function(S,k){b[k]=Mu(Mu({},S),A[k]||{})})),delete y.MENU_CONF,Mu({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,k){window.alert(k+`:
- `+S)}},y)})(o);Yse.set(u,d);var c=d.hoverbarKeys,f=c===void 0?{}:c;if(l.forEach((function(y){u=y(u)})),a!=null&&(u.children=Tle(u,a)),i&&i.length&&(u.children=i),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),Et.normalizeContent(u),n){var p=new T6t(n);QU.set(u,p),YU.set(p,u),p.changeViewState(),nc((function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
- Textarea height < 300px . This may be cause modal and hoverbar position error`,y)}));var v=void 0;Object.keys(f).length>0&&(v=new B6t,ZU.set(v,u),Kk.set(u,v)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}else u.children.forEach((function(y,m){return txe(y,m,u,u)}));var h=d.onCreated,g=d.onDestroyed;return h&&u.on("created",(function(){return h(u)})),g&&u.on("destroyed",(function(){return g(u)})),nc((function(){return u.emit("created")})),u}var F6t=m7("splice"),U6t=Wn.TypeError,$6t=Math.max,z6t=Math.min;Yi({target:"Array",proto:!0,forced:!F6t},{splice:function(e,t){var n,r,o,i,a,s,l=R0(this),u=mm(l),d=ab(e,u),c=arguments.length;if(c===0?n=r=0:c===1?(n=0,r=u-d):(n=c-2,r=z6t($6t(f5(t),0),u-d)),u+n-r>9007199254740991)throw U6t("Maximum allowed length exceeded");for(o=XCe(l,r),i=0;i<r;i++)(a=d+i)in l&&DA(o,i,l[a]);if(o.length=r,n<r){for(i=d;i<u-r;i++)s=i+n,(a=i+r)in l?l[s]=l[a]:delete l[s];for(i=u;i>u-r+n;i--)delete l[i-1]}else if(n>r)for(i=u-r;i>d;i--)s=i+n-1,(a=i+r-1)in l?l[s]=l[a]:delete l[s];for(i=0;i<n;i++)l[i+d]=arguments[i+2];return l.length=u-r+n,o}});var j6t=(function(){function e(t,n){var r=this;this.$toolbar=Mt('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=ICe((function(){r.toolbarItems.forEach((function(a){a.changeMenuState()}))}),200),this.config=n;var o=Mt(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",(function(a){return a.preventDefault()}),{passive:!1}),o.append(i),nc((function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,s=o.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=o.excludeKeys,d=u===void 0?[]:u,c=OCe(a);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach((function(v,h){c.splice(l.index+h,0,v)})));var f=c.filter((function(v){if(typeof v=="string"){if(d.includes(v))return!1}else if(d.includes(v.key))return!1;return!0})),p=f.length;f.forEach((function(v,h){if(v==="|"){if(h===0||h+1===p||n==="|")return;var g=X5e();return r.append(g),void(n=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(n=v);t.registerGroup(v),n="group"}))},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=(function(u){return new qle(u)})(t),i=t.menuKeys,a=i===void 0?[]:i,s=this.config.excludeKeys,l=s===void 0?[]:s;a.forEach((function(u){l.includes(u)||n.registerSingleItem(u,o)})),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof qle,i=this.menus,a=i[t];if(a==null){var s=NA[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=s(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
- 重复注册了菜单栏 menu '`+t+"'");var l=exe(t,a,o);this.toolbarItems.push(l),OG.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=IG.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),H6t=Yb.EXISTS,W6t=Zc.f,nxe=Function.prototype,V6t=Mr(nxe.toString),rxe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,q6t=Mr(rxe.exec);function oxe(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,d=u===void 0?{}:u,c=e.metaWithUrl,f=c!==void 0&&c,p=e.headers,v=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,y=e.timeout,m=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(B){return B}:b,A=e.onSuccess,S=A===void 0?function(B,N){}:A,k=e.onError,M=k===void 0?function(B,N,q){console.error(B.name+" upload error",N,q)}:k,D=e.onProgress,P=D===void 0?function(B){}:D;if(!n)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var O=n;f&&(O=(function(B,N){var q=Fo(B.split("#"),2),U=q[0],j=q[1],H=[];eG(N,(function(Z,$){H.push($+"="+Z)}));var G=H.join("&");return U=U.indexOf("?")>0?U+"&"+G:U+"?"+G,j?U+"#"+j:U})(O,d));var _=new x4({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:d}).use(mAt,{endpoint:O,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return _.on("upload-success",(function(B,N){var q=N.body,U=q===void 0?{}:q;try{S(B,U)}catch(j){console.error("wangEditor upload file - onSuccess error",j)}_.removeFile(B.id)})),_.on("progress",(function(B){B<1||P(B)})),_.on("upload-error",(function(B,N,q){try{M(B,N,q)}catch(U){console.error("wangEditor upload file - onError error",U)}_.removeFile(B.id)})),_.on("restriction-failed",(function(B,N){try{M(B,N)}catch(q){console.error("wangEditor upload file - onError error",q)}_.removeFile(B.id)})),_}function Rh(e){return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(e)}function G6t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach((function(o){G6t(e,o,n[o])}))}return e}function yp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bp(e,t,n){return t&&Kle(e.prototype,t),n&&Kle(e,n),e}function qv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BA(e,t){if(t&&(Rh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qv(e)}function db(e){return db=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},db(e)}function f$(e,t){return f$=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},f$(e,t)}function C7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f$(e,t)}ls&&!H6t&&W6t(nxe,"name",{configurable:!0,get:function(){try{return q6t(rxe,V6t(this))[1]}catch{return""}}});var K6t={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Nf=new((function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yp(this,e),this.init(t,n)}return bp(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||K6t,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Ua({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),m0=(function(){function e(){yp(this,e),this.observers={}}return bp(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach((function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)})),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter((function(r){return r!==n})):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(s){s.apply(void 0,r)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(s){s.apply(s,[t].concat(r))}))}}}]),e})();function Sw(){var e,t,n=new Promise((function(r,o){e=r,t=o}));return n.resolve=e,n.reject=t,n}function Qle(e){return e==null?"":""+e}function Q6t(e,t,n){e.forEach((function(r){t[r]&&(n[r]=t[r])}))}function QG(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Yle(e,t,n){var r=QG(e,t,Object);r.obj[r.k]=n}function tT(e,t){var n=QG(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Zle(e,t,n){var r=tT(e,n);return r!==void 0?r:tT(t,n)}function ixe(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):ixe(e[r],t[r],n):e[r]=t[r]);return e}function Zm(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Y6t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Z6t(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,(function(t){return Y6t[t]})):e}var x7=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function axe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,s=r.slice(i,i+a).join(n),l=o[s];l===void 0&&r.length>i+a;)a++,l=o[s=r.slice(i,i+a).join(n)];if(l===void 0)return;if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s];var u=r.slice(i+a).join(n);return u?axe(l,u,n):void 0}o=o[r[i]]}return o}}var X6t=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return yp(this,t),r=BA(this,db(t).call(this)),x7&&m0.call(qv(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return C7(t,m0),bp(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,r];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(l=n.split("."));var u=tT(this.data,l);return u||!s||typeof o!="string"?u:axe(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var l=[n,r];o&&(l=l.concat(s?o.split(s):o)),n.indexOf(".")>-1&&(i=r,r=(l=n.split("."))[1]),this.addNamespaces(r),Yle(this.data,l,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(l=n.split("."))[1]),this.addNamespaces(r);var u=tT(this.data,l)||{};i?ixe(u,o,a):u=Ua({},u,o),Yle(this.data,l,u),s.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ua({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t})(),sxe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))})),t}},Xle={},Jle=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return yp(this,t),r=BA(this,db(t).call(this)),x7&&m0.call(qv(r)),Q6t(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,qv(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Nf.create("translator"),r}return C7(t,m0),bp(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:a};var l=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),n=l.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Rh(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),l=s.key,u=s.namespaces,d=u[u.length-1],c=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){var p=r.nsSeparator||this.options.nsSeparator;return d+p+l}return l}var v=this.resolve(n,r),h=v&&v.res,g=v&&v.usedKey||l,y=v&&v.exactUsedKey||l,m=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(A&&h&&S&&b.indexOf(m)<0&&(typeof w!="string"||m!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Ua({},r,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(a){var k=m==="[object Array]",M=k?[]:{},D=k?y:g;for(var P in h)if(Object.prototype.hasOwnProperty.call(h,P)){var O="".concat(D).concat(a).concat(P);M[P]=this.translate(O,Ua({},r,{joinArrays:!1,ns:u})),M[P]===O&&(M[P]=h[P])}h=M}}else if(A&&typeof w=="string"&&m==="[object Array]")(h=h.join(w))&&(h=this.extendTranslation(h,n,r,o));else{var _=!1,B=!1,N=r.count!==void 0&&typeof r.count!="string",q=t.hasDefaultValue(r),U=N?this.pluralResolver.getSuffix(c,r.count):"",j=r["defaultValue".concat(U)]||r.defaultValue;!this.isValidLookup(h)&&q&&(_=!0,h=j),this.isValidLookup(h)||(B=!0,h=l);var H=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,G=H&&B?void 0:h,Z=q&&j!==h&&this.options.updateMissing;if(B||_||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,d,l,Z?j:h),a){var $=this.resolve(l,Ua({},r,{keySeparator:!1}));$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(var ie=0;ie<W.length;ie++)L.push(W[ie]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(r.lng||this.language):L.push(r.lng||this.language);var ee=function(te,X,ue){i.options.missingKeyHandler?i.options.missingKeyHandler(te,d,X,Z?ue:G,Z,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(te,d,X,Z?ue:G,Z,r),i.emit("missingKey",te,d,X,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?L.forEach((function(te){i.pluralResolver.getSuffixes(te).forEach((function(X){ee([te],l+X,r["defaultValue".concat(X)]||j)}))})):ee(L,l,j))}h=this.extendTranslation(h,n,r,v,o),B&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(l)),(B||_)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(n,r,o,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ua({},o,{interpolation:Ua({},this.options.interpolation,o.interpolation)}));var l,u=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var d=n.match(this.interpolator.nestingRegexp);l=d&&d.length}var c=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(c=Ua({},this.options.interpolation.defaultVariables,c)),n=this.interpolator.interpolate(n,c,o.lng||this.language,o),u){var f=n.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,(function(){for(var h=arguments.length,g=new Array(h),y=0;y<h;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):s.translate.apply(s,g.concat([r]))}),o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(n=sxe.handle(v,n,r,this.options&&this.options.postProcessPassResolved?Ua({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,s,l=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach((function(d){if(!l.isValidLookup(r)){var c=l.extractFromKey(d,u),f=c.key;o=f;var p=c.namespaces;l.options.fallbackNS&&(p=p.concat(l.options.fallbackNS));var v=u.count!==void 0&&typeof u.count!="string",h=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",g=u.lngs?u.lngs:l.languageUtils.toResolveHierarchy(u.lng||l.language,u.fallbackLng);p.forEach((function(y){l.isValidLookup(r)||(s=y,!Xle["".concat(g[0],"-").concat(y)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(s)&&(Xle["".concat(g[0],"-").concat(y)]=!0,l.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((function(m){if(!l.isValidLookup(r)){a=m;var b,w,A=f,S=[A];for(l.i18nFormat&&l.i18nFormat.addLookupKeys?l.i18nFormat.addLookupKeys(S,f,m,y,u):(v&&(b=l.pluralResolver.getSuffix(m,u.count)),v&&h&&S.push(A+b),h&&S.push(A+="".concat(l.options.contextSeparator).concat(u.context)),v&&S.push(A+=b));w=S.pop();)l.isValidLookup(r)||(i=w,r=l.getResource(m,y,w,u))}})))}))}})),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t})();function GP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var J6t=(function(){function e(t){yp(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nf.create("languageUtils")}return bp(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(o){return o.toLowerCase()})):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=GP(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=GP(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=GP(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach((function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}})),!n&&this.options.supportedLngs&&t.forEach((function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find((function(a){if(a.indexOf(i)===0)return a}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=function(s){s&&(r.isSupportedCode(s)?i.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach((function(s){i.indexOf(s)<0&&a(r.formatLanguageCode(s))})),i}}]),e})(),eSt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],tSt={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function nSt(){var e={};return eSt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:tSt[t.fc]}}))})),e}var rSt=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yp(this,e),this.languageUtils=t,this.options=n,this.logger=Nf.create("pluralResolver"),this.rules=nSt()}return bp(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map((function(r){return n+r}))}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(o){return n.getSuffix(t,o)})):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),oSt=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yp(this,e),this.logger=Nf.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return bp(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Z6t,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Zm(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Zm(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Zm(n.nestingPrefix):n.nestingPrefixEscaped||Zm("$t("),this.nestingSuffix=n.nestingSuffix?Zm(n.nestingSuffix):n.nestingSuffixEscaped||Zm(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var i,a,s,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(h){return h.replace(/\$/g,"$$$$")}var c=function(h){if(h.indexOf(l.formatSeparator)<0){var g=Zle(n,u,h);return l.alwaysFormat?l.format(g,void 0,r,Ua({},o,n,{interpolationkey:h})):g}var y=h.split(l.formatSeparator),m=y.shift().trim(),b=y.join(l.formatSeparator).trim();return l.format(Zle(n,u,m),b,r,Ua({},o,n,{interpolationkey:m}))};this.resetRegExp();var f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(h){return d(h)}},{regex:this.regexp,safeValue:function(h){return l.escapeValue?d(l.escape(h)):d(h)}}];return v.forEach((function(h){for(s=0;i=h.regex.exec(t);){if((a=c(i[1].trim()))===void 0)if(typeof f=="function"){var g=f(t,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}l.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||l.useRawValueToEscape||(a=Qle(a));var y=h.safeValue(a);if(t=t.replace(i[0],y),p?(h.regex.lastIndex+=y.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,++s>=l.maxReplaces)break}})),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=Ua({},a);function l(f,p){var v=this.nestingOptionsSeparator;if(f.indexOf(v)<0)return f;var h=f.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(h[1]);f=h[0],g=(g=this.interpolate(g,s)).replace(/'/g,'"');try{s=JSON.parse(g),p&&(s=Ua({},p,s))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(f),y),"".concat(f).concat(v).concat(g)}return delete s.defaultValue,f}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var u=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(f){return f.trim()}));r[1]=c.shift(),u=c,d=!0}if((o=n(l.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Qle(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),d&&(o=u.reduce((function(f,p){return i.format(f,p,a.lng,Ua({},a,{interpolationkey:r[1].trim()}))}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e})(),iSt=(function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return yp(this,t),i=BA(this,db(t).call(this)),x7&&m0.call(qv(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Nf.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return C7(t,m0),bp(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,s=[],l=[],u=[],d=[];return n.forEach((function(c){var f=!0;r.forEach((function(p){var v="".concat(c,"|").concat(p);!o.reload&&a.store.hasResourceBundle(c,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?l.indexOf(v)<0&&l.push(v):(a.state[v]=1,f=!1,l.indexOf(v)<0&&l.push(v),s.indexOf(v)<0&&s.push(v),d.indexOf(p)<0&&d.push(p)))})),f||u.push(c)})),(s.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:i}),{toLoad:s,pending:l,toLoadLanguages:u,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],s=i[1];r&&this.emit("failedLoading",a,s,r),o&&this.store.addResourceBundle(a,s,o),this.state[n]=r?-1:2;var l={};this.queue.forEach((function(u){(function(d,c,f,p){var v=QG(d,c,Object),h=v.obj,g=v.k;h[g]=h[g]||[],h[g].push(f)})(u.loaded,[a],s),(function(d,c){for(var f=d.indexOf(c);f!==-1;)d.splice(f,1),f=d.indexOf(c)})(u.pending,n),r&&u.errors.push(r),u.pending.length!==0||u.done||(Object.keys(u.loaded).forEach((function(d){l[d]||(l[d]=[]),u.loaded[d].length&&u.loaded[d].forEach((function(c){l[d].indexOf(c)<0&&l[d].push(c)}))})),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())})),this.emit("loaded",l),this.queue=this.queue.filter((function(u){return!u.done}))}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,(function(u,d){u&&d&&a<5?setTimeout((function(){i.read.call(i,n,r,o,a+1,2*s,l)}),s):l(u,d)})):l(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,i,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach((function(l){o.loadOne(l)}))}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],s=i[1];this.read(a,s,"read",void 0,void 0,(function(l,u){l&&r.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(a," failed"),l),!l&&u&&r.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(a),u),r.loaded(n,l,u)}))}},{key:"saveMissing",value:function(n,r,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Ua({},s,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t})();function aSt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Rh(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Rh(e[2])==="object"||Rh(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach((function(r){t[r]=n[r]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function eue(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function A6(){}var sSt=(function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(yp(this,t),n=BA(this,db(t).call(this)),x7&&m0.call(qv(n)),n.options=eue(r),n.services={},n.logger=Nf,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),BA(n,qv(n));setTimeout((function(){n.init(r,o)}),0)}return n}return C7(t,m0),bp(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ua({},aSt(),this.options,eue(r)),this.format=this.options.interpolation.format,o||(o=A6),!this.options.isClone){this.modules.logger?Nf.init(i(this.modules.logger),this.options):Nf.init(null,this.options);var a=new J6t(this.options);this.store=new X6t(this.options.resources,this.options);var s=this.services;s.logger=Nf,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new rSt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new oSt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new iSt(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];n.emit.apply(n,[p].concat(h))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Jle(this.services,this.options),this.translator.on("*",(function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];n.emit.apply(n,[p].concat(h))})),this.modules.external.forEach((function(p){p.init&&p.init(n)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments)}}));var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach((function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}}));var c=Sw(),f=function(){var p=function(v,h){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),c.resolve(h),o(v,h)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A6,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var s=[],l=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach((function(c){s.indexOf(c)<0&&s.push(c)}))};if(a)l(a);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(d){return l(d)}))}this.options.preload&&this.options.preload.forEach((function(d){return l(d)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Sw();return n||(n=this.languages),r||(r=this.options.ns),o||(o=A6),this.services.backendConnector.reload(n,r,(function(a){i.resolve(),o(a)})),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&sxe.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Sw();this.emit("languageChanging",n);var a=function(s){n||s||!o.services.languageDetector||(s=[]);var l=typeof s=="string"?s:o.services.languageUtils.getBestMatchFromCodes(s);l&&(o.language||(o.language=l,o.languages=o.services.languageUtils.toResolveHierarchy(l)),o.translator.language||o.translator.changeLanguage(l),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(l)),o.loadResources(l,(function(u){(function(d,c){c?(o.language=c,o.languages=o.services.languageUtils.toResolveHierarchy(c),o.translator.changeLanguage(c),o.isLanguageChangingTo=void 0,o.emit("languageChanged",c),o.logger.log("languageChanged",c)):o.isLanguageChangingTo=void 0,i.resolve((function(){return o.t.apply(o,arguments)})),r&&r(d,(function(){return o.t.apply(o,arguments)}))})(u,l)}))};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function s(l,u){var d;if(Rh(u)!=="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p<c;p++)f[p-2]=arguments[p];d=i.options.overloadTranslationOptionHandler([l,u].concat(f))}else d=Ua({},u);d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns;var v=i.options.keySeparator||".",h=o?"".concat(o).concat(v).concat(l):l;return i.t(h,d)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var l=function(d,c){var f=r.services.backendConnector.state["".concat(d,"|").concat(c)];return f===-1||f===2};if(o.precheck){var u=o.precheck(this,l);if(u!==void 0)return u}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!l(i,n)||a&&!l(s,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Sw();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach((function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)})),this.loadResources((function(a){i.resolve(),r&&r(a)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Sw();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter((function(s){return i.indexOf(s)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(s){o.resolve(),r&&r(s)})),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A6,i=Ua({},this.options,r,{isClone:!0}),a=new t(i),s=["store","services","language"];return s.forEach((function(l){a[l]=n[l]})),a.services=Ua({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Jle(a.services,a.options),a.translator.on("*",(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),c=1;c<u;c++)d[c-1]=arguments[c];a.emit.apply(a,[l].concat(d))})),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t})(),nT=new sSt;function zl(e,t){nT.addResourceBundle(e,"translation",t,!0,!0)}nT.init({lng:"zh-CN",resources:{}});var Yn=nT.t.bind(nT);zl("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),zl("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var lSt=Uq?{}.toString:function(){return"[object "+n7(this)+"]"};Uq||Fv(Object.prototype,"toString",lSt,{unsafe:!0});var tue=Array.isArray||function(e){return Jg(e)=="Array"},lxe=function(){},uSt=[],uxe=r5("Reflect","construct"),YG=/^\s*(?:class|function)\b/,cSt=pi(YG.exec),dSt=!YG.exec(lxe),Ew=function(e){if(!rs(e))return!1;try{return uxe(lxe,uSt,e),!0}catch{return!1}},fSt=!uxe||hs((function(){var e;return Ew(Ew.call)||!Ew(Object)||!Ew((function(){e=!0}))||e}))?function(e){if(!rs(e))return!1;switch(n7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dSt||!!cSt(YG,Nq(e))}:Ew,pSt=vl("species"),nue=no.Array,hSt=function(e,t){return new((function(n){var r;return tue(n)&&(r=n.constructor,(fSt(r)&&(r===nue||tue(r.prototype))||xd(r)&&(r=r[pSt])===null)&&(r=void 0)),r===void 0?nue:r})(e))(t===0?0:t)},rue=pi([].push),gSt=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=Iq(l),h=EAe(v),g=FAe(u,d),y=t7(h),m=0,b=c||hSt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:rue(w,f)}else switch(e){case 4:return!1;case 7:rue(w,f)}return i?-1:r||o?o:w}},vSt={forEach:gSt(0)}.forEach,mSt=(function(e,t){var n=[][e];return!!n&&hs((function(){n.call(null,t||function(){throw 1},1)}))})("forEach"),KP=mSt?[].forEach:function(e){return vSt(this,e,arguments.length>1?arguments[1]:void 0)},cxe=function(e){if(e&&e.forEach!==KP)try{kl(e,"forEach",KP)}catch{e.forEach=KP}};for(var QP in Ak)Ak[QP]&&cxe(no[QP]&&no[QP].prototype);cxe(zAe),zl("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),zl("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var ySt={type:"paragraph",renderElem:function(e,t,n){return Xr("p",null,t)}},rT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S7(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hp,T8,C6=function(e){return e&&e.Math==Math&&e},co=C6(typeof globalThis=="object"&&globalThis)||C6(typeof window=="object"&&window)||C6(typeof self=="object"&&self)||C6(typeof rT=="object"&&rT)||(function(){return this})()||Function("return this")(),Ji=function(e){try{return!!e()}catch{return!0}},jc=!Ji((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),kw=Function.prototype.call,xa=kw.bind?kw.bind(kw):function(){return kw.apply(kw,arguments)},oue={}.propertyIsEnumerable,iue=Object.getOwnPropertyDescriptor,bSt=iue&&!oue.call({1:2},1)?function(e){var t=iue(this,e);return!!t&&t.enumerable}:oue,dxe={f:bSt},ZG=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fxe=Function.prototype,p$=fxe.bind,h$=fxe.call,wSt=p$&&p$.bind(h$),Yr=p$?function(e){return e&&wSt(h$,e)}:function(e){return e&&function(){return h$.apply(e,arguments)}},ASt=Yr({}.toString),CSt=Yr("".slice),Bh=function(e){return CSt(ASt(e),8,-1)},YP=co.Object,xSt=Yr("".split),E7=Ji((function(){return!YP("z").propertyIsEnumerable(0)}))?function(e){return Bh(e)=="String"?xSt(e,""):YP(e)}:YP,SSt=co.TypeError,rc=function(e){if(e==null)throw SSt("Can't call method on "+e);return e},t2=function(e){return E7(rc(e))},Ws=function(e){return typeof e=="function"},Ed=function(e){return typeof e=="object"?e!==null:Ws(e)},ESt=function(e){return Ws(e)?e:void 0},g5=function(e,t){return arguments.length<2?ESt(co[e]):co[e]&&co[e][t]},pxe=Yr({}.isPrototypeOf),ZP=g5("navigator","userAgent")||"",aue=co.process,sue=co.Deno,lue=aue&&aue.versions||sue&&sue.version,uue=lue&&lue.v8;uue&&(T8=(Hp=uue.split("."))[0]>0&&Hp[0]<4?1:+(Hp[0]+Hp[1])),!T8&&ZP&&(!(Hp=ZP.match(/Edge\/(\d+)/))||Hp[1]>=74)&&(Hp=ZP.match(/Chrome\/(\d+)/))&&(T8=+Hp[1]);var g$=T8,v$=!!Object.getOwnPropertySymbols&&!Ji((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&g$&&g$<41})),XG=v$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kSt=co.Object,XP=XG?function(e){return typeof e=="symbol"}:function(e){var t=g5("Symbol");return Ws(t)&&pxe(t.prototype,kSt(e))},TSt=co.String,hxe=function(e){try{return TSt(e)}catch{return"Object"}},_St=co.TypeError,gxe=function(e){if(Ws(e))return e;throw _St(hxe(e)+" is not a function")},k7=function(e,t){var n=e[t];return n==null?void 0:gxe(n)},DSt=co.TypeError,ISt=Object.defineProperty,JG=function(e,t){try{ISt(co,e,{value:t,configurable:!0,writable:!0})}catch{co[e]=t}return t},Lh=co["__core-js_shared__"]||JG("__core-js_shared__",{}),eK=S7((function(e){(e.exports=function(t,n){return Lh[t]||(Lh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OSt=co.Object,v5=function(e){return OSt(rc(e))},MSt=Yr({}.hasOwnProperty),ju=Object.hasOwn||function(e,t){return MSt(v5(e),t)},PSt=0,NSt=Math.random(),RSt=Yr(1 .toString),vxe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+RSt(++PSt+NSt,36)},Tw=eK("wks"),sv=co.Symbol,cue=sv&&sv.for,BSt=XG?sv:sv&&sv.withoutSetter||vxe,wu=function(e){if(!ju(Tw,e)||!v$&&typeof Tw[e]!="string"){var t="Symbol."+e;v$&&ju(sv,e)?Tw[e]=sv[e]:Tw[e]=XG&&cue?cue(t):BSt(t)}return Tw[e]},LSt=co.TypeError,FSt=wu("toPrimitive"),tK=function(e){var t=(function(n,r){if(!Ed(n)||XP(n))return n;var o,i=k7(n,FSt);if(i){if(o=xa(i,n,r),!Ed(o)||XP(o))return o;throw LSt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(Ws(l=a.toString)&&!Ed(u=xa(l,a))||Ws(l=a.valueOf)&&!Ed(u=xa(l,a)))return u;throw DSt("Can't convert object to primitive value")})(n)})(e,"string");return XP(t)?t:t+""},m$=co.document,USt=Ed(m$)&&Ed(m$.createElement),nK=function(e){return USt?m$.createElement(e):{}},mxe=!jc&&!Ji((function(){return Object.defineProperty(nK("div"),"a",{get:function(){return 7}}).a!=7})),due=Object.getOwnPropertyDescriptor,rK={f:jc?due:function(e,t){if(e=t2(e),t=tK(t),mxe)try{return due(e,t)}catch{}if(ju(e,t))return ZG(!xa(dxe.f,e,t),e[t])}},$St=co.String,zSt=co.TypeError,uu=function(e){if(Ed(e))return e;throw zSt($St(e)+" is not an object")},jSt=co.TypeError,fue=Object.defineProperty,n2={f:jc?fue:function(e,t,n){if(uu(e),t=tK(t),uu(n),mxe)try{return fue(e,t,n)}catch{}if("get"in n||"set"in n)throw jSt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fb=jc?function(e,t,n){return n2.f(e,t,ZG(1,n))}:function(e,t,n){return e[t]=n,e},HSt=Yr(Function.toString);Ws(Lh.inspectSource)||(Lh.inspectSource=function(e){return HSt(e)});var y$,oT,b$,oK=Lh.inspectSource,pue=co.WeakMap,WSt=Ws(pue)&&/native code/.test(oK(pue)),hue=eK("keys"),yxe=function(e){return hue[e]||(hue[e]=vxe(e))},iK={},gue=co.TypeError,VSt=co.WeakMap;if(WSt||Lh.state){var ng=Lh.state||(Lh.state=new VSt),qSt=Yr(ng.get),vue=Yr(ng.has),GSt=Yr(ng.set);y$=function(e,t){if(vue(ng,e))throw new gue("Object already initialized");return t.facade=e,GSt(ng,e,t),t},oT=function(e){return qSt(ng,e)||{}},b$=function(e){return vue(ng,e)}}else{var Xm=yxe("state");iK[Xm]=!0,y$=function(e,t){if(ju(e,Xm))throw new gue("Object already initialized");return t.facade=e,fb(e,Xm,t),t},oT=function(e){return ju(e,Xm)?e[Xm]:{}},b$=function(e){return ju(e,Xm)}}var w$={get:oT,enforce:function(e){return b$(e)?oT(e):y$(e,{})}},bxe=Function.prototype,KSt=jc&&Object.getOwnPropertyDescriptor,JP=ju(bxe,"name"),T7={EXISTS:JP,PROPER:JP&&(function(){}).name==="something",CONFIGURABLE:JP&&(!jc||jc&&KSt(bxe,"name").configurable)},LA=S7((function(e){var t=T7.CONFIGURABLE,n=w$.get,r=w$.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;Ws(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ju(s,"name")||t&&s.name!==p)&&fb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==co?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:fb(i,a,s)):c?i[a]=s:JG(a,s)})(Function.prototype,"toString",(function(){return Ws(this)&&n(this).source||oK(this)}))})),QSt=Math.ceil,YSt=Math.floor,r2=function(e){var t=+e;return t!=t||t===0?0:(t>0?YSt:QSt)(t)},ZSt=Math.max,XSt=Math.min,FA=function(e,t){var n=r2(e);return n<0?ZSt(n+t,0):XSt(n,t)},JSt=Math.min,m5=function(e){return e>0?JSt(r2(e),9007199254740991):0},_7=function(e){return m5(e.length)},mue=function(e){return function(t,n,r){var o,i=t2(t),a=_7(i),s=FA(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},wxe={includes:mue(!0),indexOf:mue(!1)},e8t=wxe.indexOf,yue=Yr([].push),Axe=function(e,t){var n,r=t2(e),o=0,i=[];for(n in r)!ju(iK,n)&&ju(r,n)&&yue(i,n);for(;t.length>o;)ju(r,n=t[o++])&&(~e8t(i,n)||yue(i,n));return i},iT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],t8t=iT.concat("length","prototype"),n8t={f:Object.getOwnPropertyNames||function(e){return Axe(e,t8t)}},Cxe={f:Object.getOwnPropertySymbols},r8t=Yr([].concat),o8t=g5("Reflect","ownKeys")||function(e){var t=n8t.f(uu(e)),n=Cxe.f;return n?r8t(t,n(e)):t},i8t=function(e,t){for(var n=o8t(t),r=n2.f,o=rK.f,i=0;i<n.length;i++){var a=n[i];ju(e,a)||r(e,a,o(t,a))}},a8t=/#|\.prototype\./,y5=function(e,t){var n=l8t[s8t(e)];return n==c8t||n!=u8t&&(Ws(t)?Ji(t):!!t)},s8t=y5.normalize=function(e){return String(e).replace(a8t,".").toLowerCase()},l8t=y5.data={},u8t=y5.NATIVE="N",c8t=y5.POLYFILL="P",d8t=y5,f8t=rK.f,Ya=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?co:u?co[s]||JG(s,{}):(co[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=f8t(n,r))&&a.value:n[r],!d8t(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;i8t(i,o)}(e.sham||o&&o.sham)&&fb(i,"sham",!0),LA(n,r,i,e)}},bue=Yr(Yr.bind),aT=Array.isArray||function(e){return Bh(e)=="Array"},xxe={};xxe[wu("toStringTag")]="z";var aK=String(xxe)==="[object z]",p8t=wu("toStringTag"),h8t=co.Object,g8t=Bh((function(){return arguments})())=="Arguments",sK=aK?Bh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=h8t(e),p8t))=="string"?n:g8t?Bh(t):(r=Bh(t))=="Object"&&Ws(t.callee)?"Arguments":r},Sxe=function(){},v8t=[],Exe=g5("Reflect","construct"),lK=/^\s*(?:class|function)\b/,m8t=Yr(lK.exec),y8t=!lK.exec(Sxe),_w=function(e){if(!Ws(e))return!1;try{return Exe(Sxe,v8t,e),!0}catch{return!1}},uK=!Exe||Ji((function(){var e;return _w(_w.call)||!_w(Object)||!_w((function(){e=!0}))||e}))?function(e){if(!Ws(e))return!1;switch(sK(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y8t||!!m8t(lK,oK(e))}:_w,b8t=wu("species"),wue=co.Array,w8t=function(e,t){return new((function(n){var r;return aT(n)&&(r=n.constructor,(uK(r)&&(r===wue||aT(r.prototype))||Ed(r)&&(r=r[b8t])===null)&&(r=void 0)),r===void 0?wue:r})(e))(t===0?0:t)},Aue=Yr([].push),x6=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=v5(l),h=E7(v),g=(function(A,S){return gxe(A),S===void 0?A:bue?bue(A,S):function(){return A.apply(S,arguments)}})(u,d),y=_7(h),m=0,b=c||w8t,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Aue(w,f)}else switch(e){case 4:return!1;case 7:Aue(w,f)}return i?-1:r||o?o:w}},D7={forEach:x6(0),map:x6(1),filter:x6(2),find:x6(5)},A8t=wu("species"),cK=function(e){return g$>=51||!Ji((function(){var t=[];return(t.constructor={})[A8t]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},C8t=D7.filter;Ya({target:"Array",proto:!0,forced:!cK("filter")},{filter:function(e){return C8t(this,e,arguments.length>1?arguments[1]:void 0)}});var x8t=aK?{}.toString:function(){return"[object "+sK(this)+"]"};aK||LA(Object.prototype,"toString",x8t,{unsafe:!0});var S6,S8t=co.String,Ki=function(e){if(sK(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return S8t(e)},kxe=function(){var e=uu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},dK=co.RegExp,A$=Ji((function(){var e=dK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));A$||Ji((function(){return!dK("a","y").sticky}));var Txe={BROKEN_CARET:A$||Ji((function(){var e=dK("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:A$},fy=Object.keys||function(e){return Axe(e,iT)},E8t=jc?Object.defineProperties:function(e,t){uu(e);for(var n,r=t2(t),o=fy(t),i=o.length,a=0;i>a;)n2.f(e,n=o[a++],r[n]);return e},k8t=g5("document","documentElement"),_xe=yxe("IE_PROTO"),eN=function(){},Dxe=function(e){return"<script>"+e+"<\/script>"},Cue=function(e){e.write(Dxe("")),e.close();var t=e.parentWindow.Object;return e=null,t},_8=function(){try{S6=new ActiveXObject("htmlfile")}catch{}var e,t;_8=typeof document<"u"?document.domain&&S6?Cue(S6):((t=nK("iframe")).style.display="none",k8t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Dxe("document.F=Object")),e.close(),e.F):Cue(S6);for(var n=iT.length;n--;)delete _8.prototype[iT[n]];return _8()};iK[_xe]=!0;var xue,tN,Ixe=Object.create||function(e,t){var n;return e!==null?(eN.prototype=uu(e),n=new eN,eN.prototype=null,n[_xe]=e):n=_8(),t===void 0?n:E8t(n,t)},T8t=co.RegExp,_8t=Ji((function(){var e=T8t(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),D8t=co.RegExp,I8t=Ji((function(){var e=D8t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),O8t=w$.get,M8t=eK("native-string-replace",String.prototype.replace),sT=RegExp.prototype.exec,C$=sT,P8t=Yr("".charAt),N8t=Yr("".indexOf),R8t=Yr("".replace),nN=Yr("".slice),rN=(tN=/b*/g,xa(sT,xue=/a/,"a"),xa(sT,tN,"a"),xue.lastIndex!==0||tN.lastIndex!==0),Sue=Txe.BROKEN_CARET,oN=/()??/.exec("")[1]!==void 0;(rN||oN||Sue||_8t||I8t)&&(C$=function(e){var t,n,r,o,i,a,s,l=this,u=O8t(l),d=Ki(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=xa(C$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Sue&&l.sticky,v=xa(kxe,l),h=l.source,g=0,y=d;if(p&&(v=R8t(v,"y",""),N8t(v,"g")===-1&&(v+="g"),y=nN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&P8t(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),oN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),rN&&(r=l.lastIndex),o=xa(sT,p?n:l,y),p?o?(o.input=nN(o.input,g),o[0]=nN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:rN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),oN&&o&&o.length>1&&xa(M8t,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=Ixe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var UA=C$;Ya({target:"RegExp",proto:!0,forced:/./.exec!==UA},{exec:UA});var fK=Function.prototype,Eue=fK.apply,B8t=fK.bind,kue=fK.call,Oxe=typeof Reflect=="object"&&Reflect.apply||(B8t?kue.bind(Eue):function(){return kue.apply(Eue,arguments)}),L8t=wu("species"),iN=RegExp.prototype,pK=function(e,t,n,r){var o=wu(e),i=!Ji((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Ji((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[L8t]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Yr(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Yr(u),h=d.exec;return h===UA||h===iN.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));LA(String.prototype,e,l[0]),LA(iN,o,l[1])}r&&fb(iN[o],"sham",!0)},F8t=Yr("".charAt),Tue=Yr("".charCodeAt),U8t=Yr("".slice),$8t=function(e){return function(t,n){var r,o,i=Ki(rc(t)),a=r2(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Tue(i,a))<55296||r>56319||a+1===s||(o=Tue(i,a+1))<56320||o>57343?e?F8t(i,a):r:e?U8t(i,a,a+2):o-56320+(r-55296<<10)+65536}},z8t=$8t(!0),hK=function(e,t,n){return t+(n?z8t(e,t).length:1)},j8t=Math.floor,aN=Yr("".charAt),H8t=Yr("".replace),sN=Yr("".slice),W8t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,V8t=/\$([$&'`]|\d{1,2})/g,q8t=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=V8t;return o!==void 0&&(o=v5(o),l=W8t),H8t(i,l,(function(u,d){var c;switch(aN(d,0)){case"$":return"$";case"&":return e;case"`":return sN(t,0,n);case"'":return sN(t,a);case"<":c=o[sN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=j8t(f/10);return p===0?u:p<=s?r[p-1]===void 0?aN(d,1):r[p-1]+aN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},G8t=co.TypeError,$A=function(e,t){var n=e.exec;if(Ws(n)){var r=xa(n,e,t);return r!==null&&uu(r),r}if(Bh(e)==="RegExp")return xa(UA,e,t);throw G8t("RegExp#exec called on incompatible receiver")},x$=wu("replace"),K8t=Math.max,Q8t=Math.min,Y8t=Yr([].concat),lN=Yr([].push),_ue=Yr("".indexOf),Due=Yr("".slice),Z8t="a".replace(/./,"$0")==="$0",Iue=!!/./[x$]&&/./[x$]("a","$0")==="";pK("replace",(function(e,t,n){var r=Iue?"$":"$0";return[function(o,i){var a=rc(this),s=o==null?void 0:k7(o,x$);return s?xa(s,o,a,i):xa(t,Ki(a),o,i)},function(o,i){var a=uu(this),s=Ki(o);if(typeof i=="string"&&_ue(i,r)===-1&&_ue(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=Ws(i);u||(i=Ki(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=$A(a,s);if(p===null||(lN(f,p),!d))break;Ki(p[0])===""&&(a.lastIndex=hK(s,m5(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Ki((p=f[y])[0]),b=K8t(Q8t(r2(p.index),s.length),0),w=[],A=1;A<p.length;A++)lN(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=Y8t([m],w,b,s);S!==void 0&&lN(k,S);var M=Ki(Oxe(i,void 0,k))}else M=q8t(m,s,b,w,S,i);b>=g&&(h+=Due(s,g,b)+M,g=b+m.length)}return h+Due(s,g)}]}),!!Ji((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!Z8t||Iue);var S$=wu("unscopables"),E$=Array.prototype;E$[S$]==null&&n2.f(E$,S$,{configurable:!0,value:Ixe(null)});var Mxe=function(e){E$[S$][e]=!0},X8t=D7.find,Oue=!0;"find"in[]&&Array(1).find((function(){Oue=!1})),Ya({target:"Array",proto:!0,forced:Oue},{find:function(e){return X8t(this,e,arguments.length>1?arguments[1]:void 0)}}),Mxe("find");var J8t=wu("match"),Pxe=function(e){var t;return Ed(e)&&((t=e[J8t])!==void 0?!!t:Bh(e)=="RegExp")},eEt=co.TypeError,tEt=wu("species"),Nxe=function(e,t,n){var r=tK(t);r in e?n2.f(e,r,ZG(0,n)):e[r]=n},nEt=co.Array,rEt=Math.max,Mue=function(e,t,n){for(var r=_7(e),o=FA(t,r),i=FA(n===void 0?r:n,r),a=nEt(rEt(i-o,0)),s=0;o<i;o++,s++)Nxe(a,s,e[o]);return a.length=s,a},Jm=Txe.UNSUPPORTED_Y,oEt=Math.min,Rxe=[].push,iEt=Yr(/./.exec),e1=Yr(Rxe),Dw=Yr("".slice);pK("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ki(rc(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!Pxe(o))return xa(t,a,o,s);for(var l,u,d,c=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,f+"g");(l=xa(UA,v,a))&&!((u=v.lastIndex)>p&&(e1(c,Dw(a,p,l.index)),l.length>1&&l.index<a.length&&Oxe(Rxe,c,Mue(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&iEt(v,"")||e1(c,""):e1(c,Dw(a,p)),c.length>s?Mue(c,0,s):c}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:xa(t,this,o,i)}:t,[function(o,i){var a=rc(this),s=o==null?void 0:k7(o,e);return s?xa(s,o,a,i):xa(r,Ki(a),o,i)},function(o,i){var a=uu(this),s=Ki(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=(function(w,A){var S,k=uu(w).constructor;return k===void 0||(S=uu(k)[tEt])==null?A:(function(M){if(uK(M))return M;throw eEt(hxe(M)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Jm?"g":"y"),f=new u(Jm?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return $A(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=Jm?0:h;var y,m=$A(f,Jm?Dw(s,h):s);if(m===null||(y=oEt(m5(f.lastIndex+(Jm?h:0)),s.length))===v)h=hK(s,h,d);else{if(e1(g,Dw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(e1(g,m[b]),g.length===p)return g;h=v=y}}return e1(g,Dw(s,v)),g}]}),!!Ji((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),Jm);var k$=`
- \v\f\r \u2028\u2029\uFEFF`,Pue=Yr("".replace),lT="["+k$+"]",aEt=RegExp("^"+lT+lT+"*"),sEt=RegExp(lT+lT+"*$"),lEt=function(e){return function(t){var n=Ki(rc(t));return 1&e&&(n=Pue(n,aEt,"")),2&e&&(n=Pue(n,sEt,"")),n}},uEt={trim:lEt(3)},cEt=T7.PROPER,dEt=uEt.trim;function gK(e){return Mt("<div>"+e+"</div>").children().filter((function(t){return t.tagName!=="BR"})).length===0}function o2(e){return e.length===0?"":e[0].outerHTML}function i2(e){return e.length?e[0].tagName.toLowerCase():""}function Ic(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}Ya({target:"String",proto:!0,forced:Ji((function(){return!!k$.trim()||"
".trim()!=="
"||cEt&&k$.trim.name!=="trim"}))},{trim:function(){return dEt(this)}}),Ya({global:!0},{globalThis:co}),Nk&&(Mt.fn.css=Nk),ec&&(Mt.fn.append=ec),wae&&(Mt.fn.prepend=wae),Qy&&(Mt.fn.addClass=Qy),Yy&&(Mt.fn.removeClass=Yy),Zy&&(Mt.fn.hasClass=Zy),Hd&&(Mt.fn.on=Hd),vae&&(Mt.fn.off=vae),g0&&(Mt.fn.focus=g0),Ju&&(Mt.fn.attr=Ju),Ik&&(Mt.fn.removeAttr=Ik),Jy&&(Mt.fn.hide=Jy),Pk&&(Mt.fn.show=Pk),Lk&&(Mt.fn.parents=Lk),Xy&&(Mt.fn.dataset=Xy),jd&&(Mt.fn.val=jd),Bk&&(Mt.fn.text=Bk),h0&&(Mt.fn.html=h0),nb&&(Mt.fn.children=nb),rb&&(Mt.fn.remove=rb),tb&&(Mt.fn.find=tb),Ok&&(Mt.fn.width=Ok),Mk&&(Mt.fn.height=Mk),yae&&(Mt.fn.filter=yae),ob&&(Mt.fn.empty=ob);var fEt={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);return(t=t.filter((function(o){return!!ir.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},T$=function(e,t){return T$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},T$(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function Vi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}T$(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var y0=function(){return y0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y0.apply(this,arguments)};function L0(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function F0(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function Bxe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ko(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Nue(e){var t=Ko(Xe.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!kr.isElement(n)||n.type==="paragraph"||Qn.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ir.isText(o[0])&&(Zt.setNodes(e,{type:"paragraph"}),!0)}var pEt={renderElems:[ySt],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[fEt],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){Nue(r)||t(o)},r.deleteForward=function(o){Nue(r)||n(o)},r}},hEt=/"/g,gEt=Yr("".replace),T4=function(e,t,n,r){var o=Ki(rc(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+gEt(Ki(r),hEt,""")+'"'),i+">"+o+"</"+t+">"},_4=function(e){return Ji((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function uN(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function rg(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Ya({target:"String",proto:!0,forced:_4("bold")},{bold:function(){return T4(this,"b","","")}}),Ya({target:"String",proto:!0,forced:_4("italics")},{italics:function(){return T4(this,"i","","")}}),Ya({target:"String",proto:!0,forced:_4("sub")},{sub:function(){return T4(this,"sub","","")}}),Ya({target:"String",proto:!0,forced:_4("sup")},{sup:function(){return T4(this,"sup","","")}});var Rue={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cN=nK("span").classList,Bue=cN&&cN.constructor&&cN.constructor.prototype,vEt=Bue===Object.prototype?void 0:Bue,Lxe=function(e,t){var n=[][e];return!!n&&Ji((function(){n.call(null,t||function(){throw 1},1)}))},mEt=D7.forEach,dN=Lxe("forEach")?[].forEach:function(e){return mEt(this,e,arguments.length>1?arguments[1]:void 0)},Fxe=function(e){if(e&&e.forEach!==dN)try{fb(e,"forEach",dN)}catch{e.forEach=dN}};for(var fN in Rue)Rue[fN]&&Fxe(co[fN]&&co[fN].prototype);function Uxe(e,t){return e.selection==null||!!Ko(Xe.nodes(e,{match:function(n){return Et.getNodeType(n)==="pre"||!!Xe.isVoid(e,n)},universal:!0}),1)[0]}function yEt(e,t){Object.keys(t).forEach((function(n){n!=="text"&&Xe.removeMark(e,n)}))}Fxe(vEt),Ya({target:"Object",stat:!0,forced:Ji((function(){fy(1)}))},{keys:function(e){return fy(v5(e))}});var ym=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=Xe.marks(t);return r?r[n]:!!Ko(Xe.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return Uxe(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach((function(i){return t.removeMark(i)})))},e})(),bEt='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',wEt='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',AEt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',CEt='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',xEt='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',$xe='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',zxe='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',SEt='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',EEt='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',kEt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',TEt='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',_Et='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',DEt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',IEt='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',OEt='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',MEt='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',PEt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',NEt='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',REt='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',BEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Yn("textStyle.bold"),n.iconSvg=bEt,n.hotkey="mod+b",n}return Vi(t,e),t})(ym),LEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Yn("textStyle.code"),n.iconSvg=xEt,n.hotkey="mod+e",n}return Vi(t,e),t})(ym),FEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Yn("textStyle.italic"),n.iconSvg=AEt,n.hotkey="mod+i",n}return Vi(t,e),t})(ym),UEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Yn("textStyle.through"),n.iconSvg=CEt,n.hotkey="mod+shift+x",n}return Vi(t,e),t})(ym),$Et=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Yn("textStyle.underline"),n.iconSvg=wEt,n.hotkey="mod+u",n}return Vi(t,e),t})(ym),zEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Yn("textStyle.sub"),n.iconSvg=REt,n.hotkey="",n}return Vi(t,e),t})(ym),jEt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Yn("textStyle.sup"),n.iconSvg=NEt,n.hotkey="",n}return Vi(t,e),t})(ym),HEt=(function(){function e(){this.title=Yn("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return Uxe(t)},e.prototype.exec=function(t,n){var r,o,i=Xe.nodes(t,{match:function(l){return ir.isText(l)},universal:!0});try{for(var a=Bxe(i),s=a.next();!s.done;s=a.next())yEt(t,s.value[0])}catch(l){r={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},e})(),WEt={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,s=n.through,l=n.sub,u=n.sup,d=t;return r&&(d=Xr("strong",null,d)),a&&(d=Xr("code",null,d)),o&&(d=Xr("em",null,d)),i&&(d=Xr("u",null,d)),s&&(d=Xr("s",null,d)),l&&(d=Xr("sub",null,d)),u&&(d=Xr("sup",null,d)),d},menus:[{key:"bold",factory:function(){return new BEt}},{key:"underline",factory:function(){return new $Et}},{key:"italic",factory:function(){return new FEt}},{key:"through",factory:function(){return new UEt}},{key:"code",factory:function(){return new LEt}},{key:"sub",factory:function(){return new zEt}},{key:"sup",factory:function(){return new jEt}},{key:"clearStyle",factory:function(){return new HEt}}],styleToHtml:function(e,t){if(!ir.isText(e))return t;if(gK(t))return uN(e,t);var n=Mt(t);if(i2(n)==="br")return uN(e,"<br>");var r=n.html();return r=uN(e,r),n.html(r),o2(n)},parseStyleHtml:function(e,t,n){var r=Mt(e);if(!ir.isText(t))return t;var o=t;return rg(r,"b,strong")&&(o.bold=!0),rg(r,"i,em")&&(o.italic=!0),rg(r,"u")&&(o.underline=!0),rg(r,"s,strike")&&(o.through=!0),rg(r,"sub")&&(o.sub=!0),rg(r,"sup")&&(o.sup=!0),rg(r,"code")&&(o.code=!0),o}};function b5(e){return function(t,n,r){return Xr("h"+e,null,n)}}var VEt={type:"header1",renderElem:b5(1)},qEt={type:"header2",renderElem:b5(2)},GEt={type:"header3",renderElem:b5(3)},KEt={type:"header4",renderElem:b5(4)},QEt={type:"header5",renderElem:b5(5)},YEt=T7.PROPER,_$=RegExp.prototype,jxe=_$.toString,ZEt=Yr(kxe),XEt=Ji((function(){return jxe.call({source:"a",flags:"b"})!="/a/b"})),JEt=YEt&&jxe.name!="toString";(XEt||JEt)&&LA(RegExp.prototype,"toString",(function(){var e=uu(this),t=Ki(e.source),n=e.flags;return"/"+t+"/"+Ki(n===void 0&&pxe(_$,e)&&!("flags"in _$)?ZEt(e):n)}),{unsafe:!0});var pN,ekt=co.TypeError,Hxe=function(e){if(Pxe(e))throw ekt("The method doesn't accept regular expressions");return e},tkt=wu("match"),Wxe=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[tkt]=!1,"/./"[e](t)}catch{}}return!1},nkt=rK.f,Lue=Yr("".startsWith),rkt=Yr("".slice),okt=Math.min,Fue=Wxe("startsWith");function Vxe(e){var t=Ko(Xe.nodes(e,{match:function(o){return Et.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Ko(n,1)[0];return Et.getNodeType(r)}function qxe(e){return e.selection==null||!Ko(Xe.nodes(e,{match:function(t){var n=Et.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Gxe(e,t){t&&Zt.setNodes(e,{type:t})}Ya({target:"String",proto:!0,forced:!(!Fue&&(pN=nkt(String.prototype,"startsWith"),pN&&!pN.writable)||Fue)},{startsWith:function(e){var t=Ki(rc(this));Hxe(e);var n=m5(okt(arguments.length>1?arguments[1]:void 0,t.length)),r=Ki(e);return Lue?Lue(t,r,n):rkt(t,n,n+r.length)===r}});var ikt=(function(){function e(){this.title=Yn("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Yn("header.text")}],r=this.getValue(t).toString();return n.forEach((function(o){o.value===r?o.selected=!0:delete o.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return Vxe(t)},e.prototype.isDisabled=function(t){return qxe(t)},e.prototype.exec=function(t,n){Gxe(t,n.toString())},e})(),w5=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return Vxe(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return qxe(t)},e.prototype.exec=function(t,n){var r=this.type;Gxe(t,n===r?"paragraph":r)},e})(),akt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Vi(t,e),t})(w5),skt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Vi(t,e),t})(w5),lkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Vi(t,e),t})(w5),ukt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Vi(t,e),t})(w5),ckt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Vi(t,e),t})(w5),dkt={key:"headerSelect",factory:function(){return new ikt}},fkt={key:"header1",factory:function(){return new akt}},pkt={key:"header2",factory:function(){return new skt}},hkt={key:"header3",factory:function(){return new lkt}},gkt={key:"header4",factory:function(){return new ukt}},vkt={key:"header5",factory:function(){return new ckt}};function Iw(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Ow(e){return function(t,n,r){var o=Mt(t);return(n=n.filter((function(i){return!!ir.isText(i)||!!r.isInline(i)}))).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var mkt={renderElems:[VEt,qEt,GEt,KEt,QEt],elemsToHtml:[{type:"header1",elemToHtml:Iw(1)},{type:"header2",elemToHtml:Iw(2)},{type:"header3",elemToHtml:Iw(3)},{type:"header4",elemToHtml:Iw(4)},{type:"header5",elemToHtml:Iw(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Ow(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Ow(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Ow(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Ow(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Ow(5)}],menus:[dkt,fkt,pkt,hkt,gkt,vkt],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ko(Xe.nodes(n,{match:function(o){return Et.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&Et.isSelectionAtLineEnd(e,r[1])?Zt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},t1=Object.assign,Uue=Object.defineProperty,ykt=Yr([].concat),$ue=!t1||Ji((function(){if(jc&&t1({b:1},t1(Uue({},"a",{enumerable:!0,get:function(){Uue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),t1({},e)[n]!=7||fy(t1({},t)).join("")!=r}))?function(e,t){for(var n=v5(e),r=arguments.length,o=1,i=Cxe.f,a=dxe.f;r>o;)for(var s,l=E7(arguments[o++]),u=i?ykt(fy(l),i(l)):fy(l),d=u.length,c=0;d>c;)s=u[c++],jc&&!xa(a,l,s)||(n[s]=l[s]);return n}:t1;function Gv(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Ya({target:"Object",stat:!0,forced:Object.assign!==$ue},{assign:$ue});var bkt={selector:"font",preParseHtml:function(e){var t=Mt(e);if(i2(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Kxe=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=Xe.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ko(Xe.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Xe.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=Mt('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",(function(u){var d=u.target;if(d!=null&&(u.preventDefault(),t.selection!=null)){var c=Mt(d).attr("data-value");c==="0"?Xe.removeMark(t,n):Xe.addMark(t,n,c)}})),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach((function(u){var d=Mt('<div class="color-block" data-value="'+u+'"></div>');d.css("background-color",u);var c=Mt('<li data-value="'+u+'"></li>');i===u&&c.addClass("active"),c.append(d),o.append(c)}));var s="";n==="color"&&(s=Yn("color.default")),n==="bgColor"&&(s=Yn("color.clear"));var l=Mt(`
- <li data-value="0" class="clear">
- <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
- `+s+`
- </li>
- `);return o.prepend(l),o[0]},e})(),wkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("color.color"),n.iconSvg=SEt,n.mark="color",n}return Vi(t,e),t})(Kxe),Akt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("color.bgColor"),n.iconSvg=EEt,n.mark="bgColor",n}return Vi(t,e),t})(Kxe),zue=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Ckt={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Gv(i,{color:r}),o&&Gv(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ir.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((gK(t)||i2(n=Mt(t))!=="span")&&(n=Mt("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),o2(n)):t},preParseHtml:[bkt],parseStyleHtml:function(e,t,n){var r=Mt(e);if(!ir.isText(t))return t;var o=t,i=Ic(r,"color");i&&(o.color=i);var a=Ic(r,"background-color");return a||(a=Ic(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new wkt},config:{colors:zue}},{key:"bgColor",factory:function(){return new Akt},config:{colors:zue}}]},xkt=/^(?:\w+:)?\/\/(\S+)$/,Skt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ekt=/^[^\s\.]+\.\S{2,}$/,kkt=wxe.includes;function I7(e){return e===void 0&&(e="r"),e+"-"+vCe()}function vK(e){return e.replace(/</g,"<").replace(/>/g,">")}function Qxe(e,t,n,r){return L0(this,void 0,void 0,(function(){var o,i;return F0(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Yxe(e,t,n){return L0(this,void 0,void 0,(function(){var r;return F0(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function mK(e){return e.selection==null||!!Et.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function hN(e,t){return{type:"link",url:vK(e),children:t?[{text:t}]:[]}}function Zxe(e,t,n){return L0(this,void 0,void 0,(function(){var r,o,i;return F0(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),mK(e)?[2]:[4,Qxe("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Yxe("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(pn.isCollapsed(o)?(e.insertText(" "),i=hN(r,t),Zt.insertNodes(e,i),e.insertFragment([{text:" "}])):Xe.string(e,o)!==t?(e.deleteFragment(),i=hN(r,t),Zt.insertNodes(e,i)):(i=hN(r),Zt.wrapNodes(e,i,{split:!0}),Zt.collapse(e,{edge:"end"}))),[2]}}))}))}Ya({target:"Array",proto:!0},{includes:function(e){return kkt(this,e,arguments.length>1?arguments[1]:void 0)}}),Mxe("includes");var Tkt={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Xr("a",{href:o,target:i===void 0?"_blank":i},t)}},_kt={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);return(t=t.filter((function(o){return!!ir.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function gN(){return I7("w-e-insert-link")}var Dkt=(function(){function e(){this.title=Yn("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=gN(),this.urlInputId=gN(),this.buttonId=gN()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return mK(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,s=Ko(lu(Yn("link.text"),o),2),l=s[0],u=Mt(s[1]),d=Ko(lu(Yn("link.url"),i),2),c=d[0],f=Mt(d[1]),p=Ko(e2(a,Yn("common.ok")),1)[0];if(this.$content==null){var v=Mt("<div></div>");v.on("click","#"+a,(function(y){y.preventDefault();var m=v.find("#"+o).val(),b=v.find("#"+i).val();Zxe(t,m,b),t.hidePanelOrModal()})),this.$content=v}var h=this.$content;if(h.empty(),h.append(l),h.append(c),h.append(p),n==null||pn.isCollapsed(n))u.val("");else{var g=Xe.string(t,n);u.val(g)}return f.val(""),setTimeout((function(){u.focus()})),h[0]},e})();function jue(){return I7("w-e-update-link")}var Ikt=(function(){function e(){this.title=Yn("link.edit"),this.iconSvg=$xe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=jue(),this.buttonId=jue()}return e.prototype.getSelectedLinkElem=function(t){var n=Et.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return Et.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Ko(lu(Yn("link.url"),n),2),i=o[0],a=Mt(o[1]),s=Ko(e2(r,Yn("common.ok")),1)[0];if(this.$content==null){var l=Mt("<div></div>");l.on("click","button",(function(c){c.preventDefault(),t.restoreSelection();var f=Et.getSelectedNodeByType(t,"link"),p=f?Qn.string(f):"",v=l.find("#"+n).val();(function(h,g,y){L0(this,void 0,void 0,(function(){var m,b;return F0(this,(function(w){switch(w.label){case 0:return y?[4,Qxe("editLink",h,g,y)]:[2];case 1:return w.sent()?[4,Yxe("editLink",h,y)]:[2];case 2:return m=w.sent(),b={url:vK(m)},Zt.setNodes(h,b,{match:function(A){return Et.checkNodeType(A,"link")}}),[2]}}))}))})(t,p,v),t.hidePanelOrModal()})),this.$content=l}var u=this.$content;u.empty(),u.append(i),u.append(s);var d=this.getValue(t);return a.val(d),setTimeout((function(){a.focus()})),u[0]},e})(),Okt=(function(){function e(){this.title=Yn("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Et.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Zt.unwrapNodes(t,{match:function(r){return Et.checkNodeType(r,"link")}})},e})(),Mkt=(function(){function e(){this.title=Yn("link.view"),this.iconSvg=zxe,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=Et.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e})(),Hue={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Pkt={renderElems:[Tkt],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[_kt],menus:[{key:"insertLink",factory:function(){return new Dkt},config:Hue},{key:"editLink",factory:function(){return new Ikt},config:Hue},{key:"unLink",factory:function(){return new Okt}},{key:"viewLink",factory:function(){return new Mkt}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(u){if(typeof u!="string")return!1;var d=u.match(xkt);if(!d)return!1;var c=d[1];return!(!c||!Skt.test(c)&&!Ekt.test(c))})(a)){if(!mK(o)){var s=o.selection;if(s!=null){var l=Xe.string(o,s);Zxe(o,l,a)}}}else n(i)},o.normalizeNode=function(i){var a=Ko(i,2),s=a[0],l=a[1];return Et.getNodeType(s)!=="link"?r([s,l]):Qn.string(s)===""?Zt.removeNodes(o,{at:l}):r([s,l])},o}},Nkt=Yr(1 .valueOf),Rkt=co.RangeError,Bkt=co.RangeError,Xxe=co.String,Jxe=Math.floor,D$=Yr((function(e){var t=Ki(rc(this)),n="",r=r2(e);if(r<0||r==1/0)throw Rkt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Wue=Yr("".slice),Mw=Yr(1 .toFixed),$1=function(e,t,n){return t===0?n:t%2==1?$1(e,t-1,n*e):$1(e*e,t/2,n)},n1=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Jxe(o/1e7)},vN=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Jxe(r/t),r=r%t*1e7},Vue=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=Xxe(e[t]);n=n===""?r:n+D$("0",7-r.length)+r}return n};function que(e,t){return"w-e-image-container-"+Et.findKey(e,t).id}Ya({target:"Number",proto:!0,forced:Ji((function(){return Mw(8e-5,3)!=="0.000"||Mw(.9,0)!=="1"||Mw(1.255,2)!=="1.25"||Mw(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!Ji((function(){Mw({})}))},{toFixed:function(e){var t,n,r,o,i=Nkt(this),a=r2(e),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw Bkt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Xxe(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(t=(function(d){for(var c=0,f=d;f>=4096;)c+=12,f/=4096;for(;f>=2;)c+=1,f/=2;return c})(i*$1(2,69,1))-69)<0?i*$1(2,-t,1):i/$1(2,t,1),n*=4503599627370496,(t=52-t)>0){for(n1(s,0,n),r=a;r>=7;)n1(s,1e7,0),r-=7;for(n1(s,$1(10,r,1),0),r=t-1;r>=23;)vN(s,1<<23),r-=23;vN(s,1<<r),n1(s,1,1),vN(s,2),u=Vue(s)}else n1(s,0,n),n1(s,1<<-t,0),u=Vue(s)+D$("0",a);return a>0?l+((o=u.length)<=a?"0."+D$("0",a-o)+u:Wue(u,0,o-a)+"."+Wue(u,o-a)):l+u}});var Lkt={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=i===void 0?"":i,s=r.href,l=s===void 0?"":s,u=r.style,d=u===void 0?{}:u,c=d.width,f=c===void 0?"":c,p=d.height,v=p===void 0?"":p,h=Et.isNodeSelected(n,e),g={};f&&(g.width="100%"),v&&(g.height="100%");var y=Xr("img",{style:g,src:o,alt:a,"data-href":l}),m=n.isDisabled();return h&&!m?(function(b,w,A,S){var k=Mt("body"),M=que(b,w),D=S.width,P=S.height,O=0,_=0,B=0,N=!1,q=null;function U(Z){q=(function(){var W=Mt("#"+M);if(W.length===0)throw new Error("Cannot find image container elem");return W})(),O=Z;var $=q.find("img");if($.length===0)throw new Error("Cannot find image elem");_=$.width(),B=$.height(),k.on("mousemove",j),k.on("mouseup",H);var L=Et.getHoverbar(b);L&&L.hideAndClean()}var j=zv((function(Z){Z.preventDefault();var $=Z.clientX,L=_+(N?O-$:$-O),W=B*(L/_);q!=null&&(L<=15||W<=15||(q.css("width",L+"px"),q.css("height",W+"px")))}),100);function H(Z){if(k.off("mousemove",j),q!=null){var $=q.width().toFixed(2),L=q.height().toFixed(2),W={style:y0(y0({},w.style),{width:$+"px",height:L+"px"})};Zt.setNodes(b,W,{at:Et.findPath(b,w)}),k.off("mouseup",H)}}var G={};return D&&(G.width=D),P&&(G.height=P),Xr("div",{id:M,style:G,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Z){var $=Mt(Z.target);$.hasClass("w-e-image-dragger")&&(Z.preventDefault(),($.hasClass("left-top")||$.hasClass("left-bottom"))&&(N=!0),U(Z.clientX))}}},A,Xr("div",{className:"w-e-image-dragger left-top"}),Xr("div",{className:"w-e-image-dragger right-top"}),Xr("div",{className:"w-e-image-dragger left-bottom"}),Xr("div",{className:"w-e-image-dragger right-bottom"}))})(n,e,y,{width:f,height:v}):(function(b,w,A,S){var k=S.width,M=S.height,D={};return k&&(D.width=k),M&&(D.height=M),Xr("div",{id:que(b,w),style:D,className:"w-e-image-container"},A)})(n,e,y,{width:f,height:v})}},Fkt={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Ic(r,"width"),height:Ic(r,"height")},children:[{text:""}]}}};function e6e(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),L0(this,void 0,void 0,(function(){var i,a;return F0(this,(function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=s.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function t6e(e,t,n){return L0(this,void 0,void 0,(function(){var r;return F0(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function lv(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),L0(this,void 0,void 0,(function(){var o,i,a;return F0(this,(function(s){switch(s.label){case 0:return[4,e6e("insertImage",e,t,n,r)];case 1:return s.sent()?[4,t6e("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:vK(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),Et.getSelectedNodeByType(e,"image")&&e.move(1),O7(e)||(Zt.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function O7(e){var t=e.selection;return t==null||!pn.isCollapsed(t)||!!Ko(Xe.nodes(e,{match:function(n){var r=Et.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!Xe.isVoid(e,n)},universal:!0}),1)[0]}function E6(){return I7("w-e-insert-image")}var Ukt=(function(){function e(){this.title=Yn("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=E6(),this.altInputId=E6(),this.hrefInputId=E6(),this.buttonId=E6()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return O7(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=Ko(lu(Yn("image.src"),o),2),u=l[0],d=Mt(l[1]),c=Ko(lu(Yn("image.desc"),i),2),f=c[0],p=Mt(c[1]),v=Ko(lu(Yn("image.link"),a),2),h=v[0],g=Mt(v[1]),y=Ko(e2(s,Yn("common.ok")),1)[0];if(this.$content==null){var m=Mt("<div></div>");m.on("click","#"+s,(function(w){w.preventDefault();var A=m.find("#"+o).val().trim(),S=m.find("#"+i).val().trim(),k=m.find("#"+a).val().trim();n.insertImage(t,A,S,k),t.hidePanelOrModal()})),this.$content=m}var b=this.$content;return b.empty(),b.append(u),b.append(f),b.append(h),b.append(y),d.val(""),p.val(""),g.val(""),setTimeout((function(){d.focus()})),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||lv(t,n,r,o))},e})(),$kt=(function(){function e(){this.title=Yn("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Et.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Zt.removeNodes(t,{match:function(r){return Et.checkNodeType(r,"image")}})},e})();function k6(){return I7("w-e-edit-image")}var zkt=(function(){function e(){this.title=Yn("image.edit"),this.iconSvg=$xe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=k6(),this.altInputId=k6(),this.hrefInputId=k6(),this.buttonId=k6()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return Et.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=this.getImageNode(t);if(l==null)throw new Error("Not found selected image node");var u=Ko(lu(Yn("image.src"),o),2),d=u[0],c=Mt(u[1]),f=Ko(lu(Yn("image.desc"),i),2),p=f[0],v=Mt(f[1]),h=Ko(lu(Yn("image.link"),a),2),g=h[0],y=Mt(h[1]),m=Ko(e2(s,Yn("common.ok")),1)[0];if(this.$content==null){var b=Mt("<div></div>");b.on("click","#"+s,(function(O){O.preventDefault();var _=b.find("#"+o).val(),B=b.find("#"+i).val(),N=b.find("#"+a).val();n.updateImage(t,_,B,N),t.hidePanelOrModal()})),this.$content=b}var w=this.$content;w.empty(),w.append(d),w.append(p),w.append(g),w.append(m);var A=l,S=A.src,k=A.alt,M=k===void 0?"":k,D=A.href,P=D===void 0?"":D;return c.val(S),v.val(M),y.val(P),setTimeout((function(){c.focus()})),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||(function(a,s,l,u,d){l===void 0&&(l=""),u===void 0&&(u=""),d===void 0&&(d={}),L0(this,void 0,void 0,(function(){var c,f,p,v,h,g;return F0(this,(function(y){switch(y.label){case 0:return[4,e6e("editImage",a,s,l,u)];case 1:return y.sent()?[4,t6e("editImage",a,s)]:[2];case 2:return c=y.sent(),(f=Et.getSelectedNodeByType(a,"image"))==null||(p=f.style,v={src:c,alt:l,href:u,style:y0(y0({},p===void 0?{}:p),d)},Zt.setNodes(a,v,{match:function(m){return Et.checkNodeType(m,"image")}}),h=Et.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(h)),[2]}}))}))})(t,n,r,o,i))},e})(),jkt=(function(){function e(){this.title=Yn("image.viewLink"),this.iconSvg=zxe,this.tag="button"}return e.prototype.getValue=function(t){var n=Et.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e})(),yK=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return Et.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=Et.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:y0(y0({},i===void 0?{}:i),{width:this.value,height:""})};Zt.setNodes(t,a,{match:function(s){return Et.checkNodeType(s,"image")}})}}},e})(),Hkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Vi(t,e),t})(yK),Wkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Vi(t,e),t})(yK),Vkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Vi(t,e),t})(yK),Gue={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},qkt={renderElems:[Lkt],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,s=a===void 0?"":a,l=n.style,u=l===void 0?{}:l,d=u.width,c=d===void 0?"":d,f=u.height,p=f===void 0?"":f,v="";return c&&(v+="width: "+c+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+s+'" style="'+v+'"/>'}}],parseElemsHtml:[Fkt],menus:[{key:"insertImage",factory:function(){return new Ukt},config:Gue},{key:"deleteImage",factory:function(){return new $kt}},{key:"editImage",factory:function(){return new zkt},config:Gue},{key:"viewImageLink",factory:function(){return new jkt}},{key:"imageWidth30",factory:function(){return new Hkt}},{key:"imageWidth50",factory:function(){return new Wkt}},{key:"imageWidth100",factory:function(){return new Vkt}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Gkt={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Xr("div",{style:{margin:"5px 0"}},Xr("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Xr("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=Et.findPath(n,e),s={checked:i.target.checked};Zt.setNodes(n,s,{at:a})}}})),Xr("span",null,t));return o}},Kkt=(function(){function e(){this.title=Yn("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!Et.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!Et.getSelectedElems(t).some((function(n){if(Xe.isVoid(t,n)&&Xe.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0}))},e.prototype.exec=function(t,n){var r=this.isActive(t);Zt.setNodes(t,{type:r?"paragraph":"todo"})},e})(),Qkt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Mt(e);(t=t.filter((function(i){return!!ir.isText(i)||!!n.isInline(i)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},Ykt={renderElems:[Gkt],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Mt(e).find("li"),n=Mt('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[Qkt],menus:[{key:"todo",factory:function(){return new Kkt}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&pn.isCollapsed(o)){var i=Et.getSelectedNodeByType(e,"todo");if(i&&Qn.string(i).length===0)return void Zt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},Zkt={type:"blockquote",renderElem:function(e,t,n){return Xr("blockquote",null,t)}},Xkt={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);return(t=t.filter((function(o){return!!ir.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Jkt=(function(){function e(){this.title=Yn("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!Et.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ko(Xe.nodes(t,{match:function(n){var r=Et.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";Zt.setNodes(t,{type:r},{mode:"highest"})}},e})(),eTt={key:"blockquote",factory:function(){return new Jkt}},tTt=Yr([].slice),nTt=cK("slice"),rTt=wu("species"),mN=co.Array,oTt=Math.max;Ya({target:"Array",proto:!0,forced:!nTt},{slice:function(e,t){var n,r,o,i=t2(this),a=_7(i),s=FA(e,a),l=FA(t===void 0?a:t,a);if(aT(i)&&(n=i.constructor,(uK(n)&&(n===mN||aT(n.prototype))||Ed(n)&&(n=n[rTt])===null)&&(n=void 0),n===mN||n===void 0))return tTt(i,s,l);for(r=new(n===void 0?mN:n)(oTt(l-s,0)),o=0;s<l;s++,o++)s in i&&Nxe(r,o,i[s]);return r.length=o,r}});var iTt={renderElems:[Zkt],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Xkt],menus:[eTt],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Ko(Xe.nodes(e,{match:function(d){return Et.checkNodeType(d,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],s=Et.findPath(e,a),l=Xe.end(e,s);if(mo.equals(l,o.focus)){var u=Qn.string(a);if(u&&u.slice(-1)===`
- `)return e.deleteBackward("character"),void Zt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},aTt=(function(){function e(){this.title=Yn("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ko(Xe.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Xe.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=Mt('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",(function(i){var a=i.target;if(a!=null){i.preventDefault();var s=Mt(a).text();t.insertText(s)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach((function(i){var a=Mt("<li>"+i+"</li>");r.append(a)})),r[0]},e})(),sTt={menus:[{key:"emotion",factory:function(){return new aTt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},lTt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},uTt={selector:"font",preParseHtml:function(e){var t=Mt(e);if(i2(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",lTt[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},cTt=Yr("".indexOf);Ya({target:"String",proto:!0,forced:!Wxe("includes")},{includes:function(e){return!!~cTt(Ki(rc(this)),Ki(Hxe(e)),arguments.length>1?arguments[1]:void 0)}});var Wp,D8,T6=function(e){return e&&e.Math==Math&&e},xo=T6(typeof globalThis=="object"&&globalThis)||T6(typeof window=="object"&&window)||T6(typeof self=="object"&&self)||T6(typeof rT=="object"&&rT)||(function(){return this})()||Function("return this")(),bK=Function.prototype,Kue=bK.apply,dTt=bK.bind,Que=bK.call,n6e=typeof Reflect=="object"&&Reflect.apply||(dTt?Que.bind(Kue):function(){return Que.apply(Kue,arguments)}),r6e=Function.prototype,I$=r6e.bind,O$=r6e.call,fTt=I$&&I$.bind(O$),ya=I$?function(e){return e&&fTt(O$,e)}:function(e){return e&&function(){return O$.apply(e,arguments)}},Vs=function(e){return typeof e=="function"},hu=function(e){try{return!!e()}catch{return!0}},Bl=!hu((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Pw=Function.prototype.call,Pd=Pw.bind?Pw.bind(Pw):function(){return Pw.apply(Pw,arguments)},Yue={}.propertyIsEnumerable,Zue=Object.getOwnPropertyDescriptor,pTt=Zue&&!Yue.call({1:2},1)?function(e){var t=Zue(this,e);return!!t&&t.enumerable}:Yue,wK={f:pTt},Kv=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hTt=ya({}.toString),gTt=ya("".slice),uv=function(e){return gTt(hTt(e),8,-1)},yN=xo.Object,vTt=ya("".split),o6e=hu((function(){return!yN("z").propertyIsEnumerable(0)}))?function(e){return uv(e)=="String"?vTt(e,""):yN(e)}:yN,mTt=xo.TypeError,AK=function(e){if(e==null)throw mTt("Can't call method on "+e);return e},rf=function(e){return o6e(AK(e))},Cc=function(e){return typeof e=="object"?e!==null:Vs(e)},Iu={},Xue=function(e){return Vs(e)?e:void 0},A5=function(e,t){return arguments.length<2?Xue(Iu[e])||Xue(xo[e]):Iu[e]&&Iu[e][t]||xo[e]&&xo[e][t]},i6e=ya({}.isPrototypeOf),bN=A5("navigator","userAgent")||"",Jue=xo.process,ece=xo.Deno,tce=Jue&&Jue.versions||ece&&ece.version,nce=tce&&tce.v8;nce&&(D8=(Wp=nce.split("."))[0]>0&&Wp[0]<4?1:+(Wp[0]+Wp[1])),!D8&&bN&&(!(Wp=bN.match(/Edge\/(\d+)/))||Wp[1]>=74)&&(Wp=bN.match(/Chrome\/(\d+)/))&&(D8=+Wp[1]);var uT=D8,cd=!!Object.getOwnPropertySymbols&&!hu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uT&&uT<41})),CK=cd&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yTt=xo.Object,py=CK?function(e){return typeof e=="symbol"}:function(e){var t=A5("Symbol");return Vs(t)&&i6e(t.prototype,yTt(e))},bTt=xo.String,wTt=xo.TypeError,a6e=function(e){if(Vs(e))return e;throw wTt((function(t){try{return bTt(t)}catch{return"Object"}})(e)+" is not a function")},ATt=xo.TypeError,CTt=Object.defineProperty,Fh=xo["__core-js_shared__"]||(function(e,t){try{CTt(xo,e,{value:t,configurable:!0,writable:!0})}catch{xo[e]=t}return t})("__core-js_shared__",{}),bm=S7((function(e){(e.exports=function(t,n){return Fh[t]||(Fh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xTt=xo.Object,C5=function(e){return xTt(AK(e))},STt=ya({}.hasOwnProperty),Go=Object.hasOwn||function(e,t){return STt(C5(e),t)},ETt=0,kTt=Math.random(),TTt=ya(1 .toString),cT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+TTt(++ETt+kTt,36)},Nw=bm("wks"),cv=xo.Symbol,rce=cv&&cv.for,_Tt=CK?cv:cv&&cv.withoutSetter||cT,Au=function(e){if(!Go(Nw,e)||!cd&&typeof Nw[e]!="string"){var t="Symbol."+e;cd&&Go(cv,e)?Nw[e]=cv[e]:Nw[e]=CK&&rce?rce(t):_Tt(t)}return Nw[e]},DTt=xo.TypeError,ITt=Au("toPrimitive"),a2=function(e){var t=(function(n,r){if(!Cc(n)||py(n))return n;var o,i,a=(o=n[ITt])==null?void 0:a6e(o);if(a){if(i=Pd(a,n,r),!Cc(i)||py(i))return i;throw DTt("Can't convert object to primitive value")}return(function(s,l){var u,d;if(Vs(u=s.toString)&&!Cc(d=Pd(u,s))||Vs(u=s.valueOf)&&!Cc(d=Pd(u,s)))return d;throw ATt("Can't convert object to primitive value")})(n)})(e,"string");return py(t)?t:t+""},M$=xo.document,OTt=Cc(M$)&&Cc(M$.createElement),s6e=function(e){return OTt?M$.createElement(e):{}},l6e=!Bl&&!hu((function(){return Object.defineProperty(s6e("div"),"a",{get:function(){return 7}}).a!=7})),oce=Object.getOwnPropertyDescriptor,xK={f:Bl?oce:function(e,t){if(e=rf(e),t=a2(t),l6e)try{return oce(e,t)}catch{}if(Go(e,t))return Kv(!Pd(wK.f,e,t),e[t])}},MTt=/#|\.prototype\./,x5=function(e,t){var n=NTt[PTt(e)];return n==BTt||n!=RTt&&(Vs(t)?hu(t):!!t)},PTt=x5.normalize=function(e){return String(e).replace(MTt,".").toLowerCase()},NTt=x5.data={},RTt=x5.NATIVE="N",BTt=x5.POLYFILL="P",LTt=x5,ice=ya(ya.bind),u6e=function(e,t){return a6e(e),t===void 0?e:ice?ice(e,t):function(){return e.apply(t,arguments)}},FTt=xo.String,UTt=xo.TypeError,Qv=function(e){if(Cc(e))return e;throw UTt(FTt(e)+" is not an object")},$Tt=xo.TypeError,ace=Object.defineProperty,wm={f:Bl?ace:function(e,t,n){if(Qv(e),t=a2(t),Qv(n),l6e)try{return ace(e,t,n)}catch{}if("get"in n||"set"in n)throw $Tt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hd=Bl?function(e,t,n){return wm.f(e,t,Kv(1,n))}:function(e,t,n){return e[t]=n,e},zTt=xK.f,jTt=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return n6e(e,this,arguments)};return t.prototype=e.prototype,t},sh=function(e,t){var n,r,o,i,a,s,l,u,d=e.target,c=e.global,f=e.stat,p=e.proto,v=c?xo:f?xo[d]:(xo[d]||{}).prototype,h=c?Iu:Iu[d]||hd(Iu,d,{})[d],g=h.prototype;for(o in t)n=!LTt(c?o:d+(f?".":"#")+o,e.forced)&&v&&Go(v,o),a=h[o],n&&(s=e.noTargetGet?(u=zTt(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?u6e(i,xo):e.wrap&&n?jTt(i):p&&Vs(i)?ya(i):i,(e.sham||i&&i.sham||a&&a.sham)&&hd(l,"sham",!0),hd(h,o,l),p&&(Go(Iu,r=d+"Prototype")||hd(Iu,r,{}),hd(Iu[r],o,i),e.real&&g&&!g[o]&&hd(g,o,i)))},dT=Array.isArray||function(e){return uv(e)=="Array"},HTt=Math.ceil,WTt=Math.floor,SK=function(e){var t=+e;return t!=t||t===0?0:(t>0?WTt:HTt)(t)},VTt=Math.min,M7=function(e){return(t=e.length)>0?VTt(SK(t),9007199254740991):0;var t},P$=function(e,t,n){var r=a2(t);r in e?wm.f(e,r,Kv(0,n)):e[r]=n},c6e={};c6e[Au("toStringTag")]="z";var EK=String(c6e)==="[object z]",qTt=Au("toStringTag"),GTt=xo.Object,KTt=uv((function(){return arguments})())=="Arguments",P7=EK?uv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=GTt(e),qTt))=="string"?n:KTt?uv(t):(r=uv(t))=="Object"&&Vs(t.callee)?"Arguments":r},QTt=ya(Function.toString);Vs(Fh.inspectSource)||(Fh.inspectSource=function(e){return QTt(e)});var d6e=Fh.inspectSource,f6e=function(){},YTt=[],p6e=A5("Reflect","construct"),kK=/^\s*(?:class|function)\b/,ZTt=ya(kK.exec),XTt=!kK.exec(f6e),Rw=function(e){if(!Vs(e))return!1;try{return p6e(f6e,YTt,e),!0}catch{return!1}},JTt=!p6e||hu((function(){var e;return Rw(Rw.call)||!Rw(Object)||!Rw((function(){e=!0}))||e}))?function(e){if(!Vs(e))return!1;switch(P7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XTt||!!ZTt(kK,d6e(e))}:Rw,e_t=Au("species"),sce=xo.Array,h6e=function(e,t){return new((function(n){var r;return dT(n)&&(r=n.constructor,(JTt(r)&&(r===sce||dT(r.prototype))||Cc(r)&&(r=r[e_t])===null)&&(r=void 0)),r===void 0?sce:r})(e))(t===0?0:t)},t_t=Au("species"),g6e=Au("isConcatSpreadable"),lce=xo.TypeError,n_t=uT>=51||!hu((function(){var e=[];return e[g6e]=!1,e.concat()[0]!==e})),r_t=uT>=51||!hu((function(){var e=[];return(e.constructor={})[t_t]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),o_t=function(e){if(!Cc(e))return!1;var t=e[g6e];return t!==void 0?!!t:dT(e)};sh({target:"Array",proto:!0,forced:!n_t||!r_t},{concat:function(e){var t,n,r,o,i,a=C5(this),s=h6e(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(o_t(i=t===-1?a:arguments[t])){if(l+(o=M7(i))>9007199254740991)throw lce("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&P$(s,l,i[n])}else{if(l>=9007199254740991)throw lce("Maximum allowed index exceeded");P$(s,l++,i)}return s.length=l,s}});var _6,i_t=xo.String,fT=function(e){if(P7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return i_t(e)},a_t=Math.max,s_t=Math.min,N$=function(e,t){var n=SK(e);return n<0?a_t(n+t,0):s_t(n,t)},l_t=function(e){return function(t,n,r){var o,i=rf(t),a=M7(i),s=N$(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},u_t={indexOf:l_t(!1)},S5={},c_t=u_t.indexOf,uce=ya([].push),v6e=function(e,t){var n,r=rf(e),o=0,i=[];for(n in r)!Go(S5,n)&&Go(r,n)&&uce(i,n);for(;t.length>o;)Go(r,n=t[o++])&&(~c_t(i,n)||uce(i,n));return i},pT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],TK=Object.keys||function(e){return v6e(e,pT)},d_t=Bl?Object.defineProperties:function(e,t){Qv(e);for(var n,r=rf(t),o=TK(t),i=o.length,a=0;i>a;)wm.f(e,n=o[a++],r[n]);return e},f_t=A5("document","documentElement"),cce=bm("keys"),N7=function(e){return cce[e]||(cce[e]=cT(e))},m6e=N7("IE_PROTO"),wN=function(){},y6e=function(e){return"<script>"+e+"<\/script>"},dce=function(e){e.write(y6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},I8=function(){try{_6=new ActiveXObject("htmlfile")}catch{}var e,t;I8=typeof document<"u"?document.domain&&_6?dce(_6):((t=s6e("iframe")).style.display="none",f_t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(y6e("document.F=Object")),e.close(),e.F):dce(_6);for(var n=pT.length;n--;)delete I8.prototype[pT[n]];return I8()};S5[m6e]=!0;var hT,d3,gT,Yv=Object.create||function(e,t){var n;return e!==null?(wN.prototype=Qv(e),n=new wN,wN.prototype=null,n[m6e]=e):n=I8(),t===void 0?n:d_t(n,t)},p_t=pT.concat("length","prototype"),b6e={f:Object.getOwnPropertyNames||function(e){return v6e(e,p_t)}},h_t=xo.Array,g_t=Math.max,fce=b6e.f,pce=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],w6e={f:function(e){return pce&&uv(e)=="Window"?(function(t){try{return fce(t)}catch{return(function(r,o,i){for(var a=M7(r),s=N$(void 0,a),l=N$(a,a),u=h_t(g_t(l-s,0)),d=0;s<l;s++,d++)P$(u,d,r[s]);return u.length=d,u})(pce)}})(e):fce(rf(e))}},AN={f:Object.getOwnPropertySymbols},v_t=ya([].slice),vT=function(e,t,n,r){hd(e,t,n)},_K={f:Au},m_t=wm.f,Ca=function(e){var t=Iu.Symbol||(Iu.Symbol={});Go(t,e)||m_t(t,e,{value:_K.f(e)})},y_t=EK?{}.toString:function(){return"[object "+P7(this)+"]"},b_t=wm.f,hce=Au("toStringTag"),mT=function(e,t,n,r){if(e){var o=n?e:e.prototype;Go(o,hce)||b_t(o,hce,{configurable:!0,value:t}),r&&!EK&&hd(o,"toString",y_t)}},gce=xo.WeakMap,w_t=Vs(gce)&&/native code/.test(d6e(gce)),R$=xo.TypeError,A_t=xo.WeakMap;if(w_t||Fh.state){var og=Fh.state||(Fh.state=new A_t),C_t=ya(og.get),vce=ya(og.has),x_t=ya(og.set);hT=function(e,t){if(vce(og,e))throw new R$("Object already initialized");return t.facade=e,x_t(og,e,t),t},d3=function(e){return C_t(og,e)||{}},gT=function(e){return vce(og,e)}}else{var r1=N7("state");S5[r1]=!0,hT=function(e,t){if(Go(e,r1))throw new R$("Object already initialized");return t.facade=e,hd(e,r1,t),t},d3=function(e){return Go(e,r1)?e[r1]:{}},gT=function(e){return Go(e,r1)}}var s2={set:hT,get:d3,has:gT,enforce:function(e){return gT(e)?d3(e):hT(e,{})},getterFor:function(e){return function(t){var n;if(!Cc(t)||(n=d3(t)).type!==e)throw R$("Incompatible receiver, "+e+" required");return n}}},mce=ya([].push),Vp=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=C5(l),h=o6e(v),g=u6e(u,d),y=M7(h),m=0,b=c||h6e,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:mce(w,f)}else switch(e){case 4:return!1;case 7:mce(w,f)}return i?-1:r||o?o:w}},R7=[Vp(0),Vp(1),Vp(2),Vp(3),Vp(4),Vp(5),Vp(6),Vp(7)][0],xl=N7("hidden"),yce=Au("toPrimitive"),S_t=s2.set,bce=s2.getterFor("Symbol"),xc=Object.prototype,fh=xo.Symbol,xh=fh&&fh.prototype,wce=xo.TypeError,CN=xo.QObject,Bw=A5("JSON","stringify"),A6e=xK.f,ph=wm.f,C6e=w6e.f,E_t=wK.f,x6e=ya([].push),lp=bm("symbols"),E5=bm("op-symbols"),xN=bm("string-to-symbol-registry"),SN=bm("symbol-to-string-registry"),k_t=bm("wks"),EN=!CN||!CN.prototype||!CN.prototype.findChild,B$=Bl&&hu((function(){return Yv(ph({},"a",{get:function(){return ph(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=A6e(xc,t);r&&delete xc[t],ph(e,t,n),r&&e!==xc&&ph(xc,t,r)}:ph,kN=function(e,t){var n=lp[e]=Yv(xh);return S_t(n,{type:"Symbol",tag:e,description:t}),Bl||(n.description=t),n},yT=function(e,t,n){e===xc&&yT(E5,t,n),Qv(e);var r=a2(t);return Qv(n),Go(lp,r)?(n.enumerable?(Go(e,xl)&&e[xl][r]&&(e[xl][r]=!1),n=Yv(n,{enumerable:Kv(0,!1)})):(Go(e,xl)||ph(e,xl,Kv(1,{})),e[xl][r]=!0),B$(e,r,n)):ph(e,r,n)},Ace=function(e,t){Qv(e);var n=rf(t),r=TK(n).concat(L$(n));return R7(r,(function(o){Bl&&!Pd(S6e,n,o)||yT(e,o,n[o])})),e},S6e=function(e){var t=a2(e),n=Pd(E_t,this,t);return!(this===xc&&Go(lp,t)&&!Go(E5,t))&&(!(n||!Go(this,t)||!Go(lp,t)||Go(this,xl)&&this[xl][t])||n)},Cce=function(e,t){var n=rf(e),r=a2(t);if(n!==xc||!Go(lp,r)||Go(E5,r)){var o=A6e(n,r);return!o||!Go(lp,r)||Go(n,xl)&&n[xl][r]||(o.enumerable=!0),o}},xce=function(e){var t=C6e(rf(e)),n=[];return R7(t,(function(r){Go(lp,r)||Go(S5,r)||x6e(n,r)})),n},L$=function(e){var t=e===xc,n=C6e(t?E5:rf(e)),r=[];return R7(n,(function(o){!Go(lp,o)||t&&!Go(xc,o)||x6e(r,lp[o])})),r};if(cd||(xh=(fh=function(){if(i6e(xh,this))throw wce("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?fT(arguments[0]):void 0,t=cT(e),n=function(r){this===xc&&Pd(n,E5,r),Go(this,xl)&&Go(this[xl],t)&&(this[xl][t]=!1),B$(this,t,Kv(1,r))};return Bl&&EN&&B$(xc,t,{configurable:!0,set:n}),kN(t,e)}).prototype,vT(xh,"toString",(function(){return bce(this).tag})),vT(fh,"withoutSetter",(function(e){return kN(cT(e),e)})),wK.f=S6e,wm.f=yT,xK.f=Cce,b6e.f=w6e.f=xce,AN.f=L$,_K.f=function(e){return kN(Au(e),e)},Bl&&ph(xh,"description",{configurable:!0,get:function(){return bce(this).description}})),sh({global:!0,wrap:!0,forced:!cd,sham:!cd},{Symbol:fh}),R7(TK(k_t),(function(e){Ca(e)})),sh({target:"Symbol",stat:!0,forced:!cd},{for:function(e){var t=fT(e);if(Go(xN,t))return xN[t];var n=fh(t);return xN[t]=n,SN[n]=t,n},keyFor:function(e){if(!py(e))throw wce(e+" is not a symbol");if(Go(SN,e))return SN[e]},useSetter:function(){EN=!0},useSimple:function(){EN=!1}}),sh({target:"Object",stat:!0,forced:!cd,sham:!Bl},{create:function(e,t){return t===void 0?Yv(e):Ace(Yv(e),t)},defineProperty:yT,defineProperties:Ace,getOwnPropertyDescriptor:Cce}),sh({target:"Object",stat:!0,forced:!cd},{getOwnPropertyNames:xce,getOwnPropertySymbols:L$}),sh({target:"Object",stat:!0,forced:hu((function(){AN.f(1)}))},{getOwnPropertySymbols:function(e){return AN.f(C5(e))}}),Bw){var T_t=!cd||hu((function(){var e=fh();return Bw([e])!="[null]"||Bw({a:e})!="{}"||Bw(Object(e))!="{}"}));sh({target:"JSON",stat:!0,forced:T_t},{stringify:function(e,t,n){var r=v_t(arguments),o=t;if((Cc(t)||e!==void 0)&&!py(e))return dT(t)||(t=function(i,a){if(Vs(o)&&(a=Pd(o,this,i,a)),!py(a))return a}),r[1]=t,n6e(Bw,null,r)}})}if(!xh[yce]){var __t=xh.valueOf;vT(xh,yce,(function(e){return Pd(__t,this)}))}mT(fh,"Symbol"),S5[xl]=!0,Ca("asyncIterator"),Ca("hasInstance"),Ca("isConcatSpreadable"),Ca("iterator"),Ca("match"),Ca("matchAll"),Ca("replace"),Ca("search"),Ca("species"),Ca("split"),Ca("toPrimitive"),Ca("toStringTag"),Ca("unscopables"),mT(xo.JSON,"JSON",!0);var Sh,Sce,Ece,D_t=Iu.Symbol,dv={},E6e=Function.prototype,I_t=Bl&&Object.getOwnPropertyDescriptor,kce=Go(E6e,"name"),O_t={PROPER:kce&&(function(){}).name==="something",CONFIGURABLE:kce&&(!Bl||Bl&&I_t(E6e,"name").configurable)},M_t=!hu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Tce=N7("IE_PROTO"),F$=xo.Object,P_t=F$.prototype,U$=M_t?F$.getPrototypeOf:function(e){var t=C5(e);if(Go(t,Tce))return t[Tce];var n=t.constructor;return Vs(n)&&t instanceof n?n.prototype:t instanceof F$?P_t:null},$$=Au("iterator"),k6e=!1;[].keys&&("next"in(Ece=[].keys())?(Sce=U$(U$(Ece)))!==Object.prototype&&(Sh=Sce):k6e=!0);var N_t=Sh==null||hu((function(){var e={};return Sh[$$].call(e)!==e}));Sh=N_t?{}:Yv(Sh),Vs(Sh[$$])||vT(Sh,$$,(function(){return this}));var T6e={IteratorPrototype:Sh,BUGGY_SAFARI_ITERATORS:k6e},R_t=T6e.IteratorPrototype,B_t=function(){return this};xo.String,xo.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{ya(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}})();var L_t=O_t.PROPER,TN=T6e.BUGGY_SAFARI_ITERATORS,F_t=Au("iterator"),U_t=function(){return this},_6e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=Yv(R_t,{next:Kv(1,m)}),mT(g,w,!1,!0),dv[w]=B_t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!TN&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[F_t]||f["@@iterator"]||o&&f[o],v=!TN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=U$(h.call(new e)))!==Object.prototype&&s.next&&(mT(s,d,!0,!0),dv[d]=U_t),L_t&&o=="values"&&p&&p.name!=="values"&&(c=!0,v=function(){return Pd(p,this)}),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||sh({target:t,proto:!0,forced:TN||c},l)),dv[t]=v,l},$_t=s2.set,z_t=s2.getterFor("Array Iterator");_6e(Array,"Array",(function(e,t){$_t(this,{type:"Array Iterator",target:rf(e),index:0,kind:t})}),(function(){var e=z_t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),dv.Arguments=dv.Array;var _ce=Au("toStringTag");for(var _N in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Dce=xo[_N],DN=Dce&&Dce.prototype;DN&&P7(DN)!==_ce&&hd(DN,_ce,_N),dv[_N]=dv.Array}var j_t=D_t;Ca("asyncDispose"),Ca("dispose"),Ca("matcher"),Ca("metadata"),Ca("observable"),Ca("patternMatch"),Ca("replaceAll");var D6=j_t,H_t=ya("".charAt),Ice=ya("".charCodeAt),W_t=ya("".slice),V_t=function(e){return function(t,n){var r,o,i=fT(AK(t)),a=SK(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Ice(i,a))<55296||r>56319||a+1===s||(o=Ice(i,a+1))<56320||o>57343?e?H_t(i,a):r:e?W_t(i,a,a+2):o-56320+(r-55296<<10)+65536}},q_t=V_t(!0),G_t=s2.set,K_t=s2.getterFor("String Iterator");_6e(String,"String",(function(e){G_t(this,{type:"String Iterator",string:fT(e),index:0})}),(function(){var e,t=K_t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=q_t(n,r),t.index+=e.length,{value:e,done:!1})}));var Q_t=_K.f("iterator"),Y_t=S7((function(e){function t(n){return typeof D6=="function"&&typeof Q_t=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof D6=="function"&&r.constructor===D6&&r!==D6.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),D6e=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(Y_t),Z_t=T7.EXISTS,X_t=n2.f,I6e=Function.prototype,J_t=Yr(I6e.toString),O6e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,eDt=Yr(O6e.exec);jc&&!Z_t&&X_t(I6e,"name",{configurable:!0,get:function(){try{return eDt(O6e,J_t(this))[1]}catch{return""}}});var M6e=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=Xe.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ko(Xe.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Xe.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e})(),tDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("fontSize.title"),n.iconSvg=kEt,n.mark="fontSize",n}return Vi(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Yn("fontSize.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s});else if(D6e(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u})}}));var a=this.getValue(n);return r.forEach((function(s){s.value===a?s.selected=!0:delete s.selected})),r},t})(M6e),nDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("fontFamily.title"),n.iconSvg=TEt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Vi(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Yn("fontFamily.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(D6e(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u,styleForRenderMenuList:{"font-family":u}})}}));var a=this.getValue(n);return r.forEach((function(s){s.value===a?s.selected=!0:delete s.selected})),r},t})(M6e),rDt={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Gv(i,{fontSize:r}),o&&Gv(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ir.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((gK(t)||i2(n=Mt(t))!=="span")&&(n=Mt("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),o2(n)):t},preParseHtml:[uTt],parseStyleHtml:function(e,t,n){var r=Mt(e);if(!ir.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,s=Ic(r,"font-size"),l=a.find((function(p){return p.value&&p.value===s}))||a.includes(s);s&&l&&(o.fontSize=s);var u=n.getMenuConfig("fontFamily").fontFamilyList,d=u===void 0?[]:u,c=Ic(r,"font-family").replace(/"/g,""),f=d.find((function(p){return p.value&&p.value===c}))||d.includes(c);return c&&f&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new tDt},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new nDt},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},oDt={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Mt(e),n=Ic(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},P6e=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ko(Xe.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Ko(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ko(Xe.nodes(t,{match:function(r){var o=Et.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e})(),iDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("indent.decrease"),n.iconSvg=_Et,n}return Vi(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){Zt.setNodes(n,{indent:null},{match:function(o){return kr.isElement(o)}})},t})(P6e),aDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("indent.increase"),n.iconSvg=DEt,n}return Vi(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){Zt.setNodes(n,{indent:"2em"},{match:function(o){return kr.isElement(o)},mode:"highest"})},t})(P6e),sDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.indent,r=t;return n&&Gv(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Mt(t);return r.css("text-indent",n),o2(r)},preParseHtml:[oDt],parseStyleHtml:function(e,t,n){var r=Mt(e);if(!kr.isElement(t))return t;var o=t,i=Ic(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new aDt}},{key:"delIndent",factory:function(){return new iDt}}]},B7=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ko(Xe.nodes(t,{match:function(r){var o=Et.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!Et.getSelectedElems(t).some((function(n){if(Xe.isVoid(t,n)&&Xe.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0}))},e})(),lDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("justify.left"),n.iconSvg=IEt,n}return Vi(t,e),t.prototype.exec=function(n,r){Zt.setNodes(n,{textAlign:"left"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(B7),uDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("justify.right"),n.iconSvg=OEt,n}return Vi(t,e),t.prototype.exec=function(n,r){Zt.setNodes(n,{textAlign:"right"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(B7),cDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("justify.center"),n.iconSvg=MEt,n}return Vi(t,e),t.prototype.exec=function(n,r){Zt.setNodes(n,{textAlign:"center"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(B7),dDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Yn("justify.justify"),n.iconSvg=PEt,n}return Vi(t,e),t.prototype.exec=function(n,r){Zt.setNodes(n,{textAlign:"justify"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(B7),fDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.textAlign,r=t;return n&&Gv(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Mt(t);return r.css("text-align",n),o2(r)},parseStyleHtml:function(e,t,n){var r=Mt(e);if(!kr.isElement(t))return t;var o=t,i=Ic(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new lDt}},{key:"justifyRight",factory:function(){return new uDt}},{key:"justifyCenter",factory:function(){return new cDt}},{key:"justifyJustify",factory:function(){return new dDt}}]},pDt=(function(){function e(){this.title=Yn("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Yn("lineHeight.default"),value:""}),o.forEach((function(a){n.push({text:a,value:a})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.getMatchNode=function(t){var n=Ko(Xe.nodes(t,{match:function(r){var o=Et.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":kr.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){Zt.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e})(),hDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Gv(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Mt(t);return r.css("line-height",n),o2(r)},parseStyleHtml:function(e,t,n){var r=Mt(e);if(!kr.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,s=Ic(r,"line-height");return s&&a.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new pDt},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},gDt=(function(){function e(){this.title=Yn("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e})(),vDt=(function(){function e(){this.title=Yn("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e})(),mDt={menus:[{key:"redo",factory:function(){return new gDt}},{key:"undo",factory:function(){return new vDt}}]},yDt={type:"divider",renderElem:function(e,t,n){return ib("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Et.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[ib("hr")])}},bDt=(function(){function e(){this.title=Yn("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Et.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=Et.getNodeType(n);return r==="table"||r==="pre"||void 0}))},e.prototype.exec=function(t,n){Zt.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),wDt={renderElems:[yDt],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new bDt}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Ko(o,2),a=i[0],s=i[1];if(Et.getNodeType(a)!=="divider")return n([a,s]);Et.isLastNode(r,a)&&Zt.insertNodes(r,Et.genEmptyParagraph(),{at:[s[0]+1]})},r}},ADt=D7.map;Ya({target:"Array",proto:!0,forced:!cK("map")},{map:function(e){return ADt(this,e,arguments.length>1?arguments[1]:void 0)}});var CDt=Yr([].join),xDt=E7!=Object,SDt=Lxe("join",",");Ya({target:"Array",proto:!0,forced:xDt||!SDt},{join:function(e){return CDt(t2(this),e===void 0?",":e)}});var EDt=(function(){function e(){this.title=Yn("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=Et.getSelectedNodeByType(t,"code");if(n==null)return null;var r=Et.getParentNode(t,n);return r==null||Et.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=Et.getSelectedElems(t);return!!n.some((function(r){return t.isVoid(r)}))||!n.some((function(r){var o=Et.getNodeType(r);if(o==="pre"||o==="paragraph")return!0}))},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=Qn.string(n);Zt.removeNodes(t,{mode:"highest"});var o=r.split(`
- `).map((function(i){return{type:"paragraph",children:[{text:i}]}}));Zt.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=Xe.nodes(t,{match:function(c){return t.children.includes(c)},universal:!0});try{for(var s=Bxe(a),l=s.next();!l.done;l=s.next()){var u=Ko(l.value,1)[0];u&&i.push(Qn.string(u))}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Zt.removeNodes(t,{mode:"highest"});var d={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};Zt.insertNodes(t,d,{mode:"highest"})},e})(),kDt={key:"codeBlock",factory:function(){return new EDt}};Ya({target:"String",proto:!0,forced:_4("anchor")},{anchor:function(e){return T4(this,"a","name",e)}}),pK("match",(function(e,t,n){return[function(r){var o=rc(this),i=r==null?void 0:k7(r,e);return i?xa(i,r,o):new RegExp(r)[e](Ki(o))},function(r){var o=uu(this),i=Ki(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return $A(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=$A(o,i))!==null;){var c=Ki(l[0]);u[d]=c,c===""&&(o.lastIndex=hK(i,m5(o.lastIndex),s)),d++}return d===0?null:u}]}));var TDt={type:"pre",renderElem:function(e,t,n){return Xr("pre",null,t)}},_Dt={type:"code",renderElem:function(e,t,n){return Xr("code",null,t)}},DDt={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);return(t=t.filter((function(o){return Et.getNodeType(o)==="code"}))).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(o){return Et.getNodeType(o)==="code"}))}}},IDt={menus:[kDt],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=Et.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(u,d){var c=d.selection;if(c==null)return"";var f=Qn.string(u),p=c.anchor.offset,v=f.slice(0,p).split(`
- `),h=v.length;return h===0?"":v[h-1]})(i,o);if(a){var s=a.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void o.insertText(`
- `+l)}}o.insertText(`
- `)}else t()},o.normalizeNode=function(i){var a=Ko(i,2),s=a[0],l=a[1],u=Et.getNodeType(s);return u==="code"&&l.length<=1&&Zt.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(Et.isLastNode(o,s)&&Zt.insertNodes(o,Et.genEmptyParagraph(),{at:[l[0]+1]}),Et.getNodeType(s.children[0])!=="code"&&(Zt.unwrapNodes(o),Zt.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,l])},o.insertData=function(i){if(Et.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");Xe.insertText(o,a)}else r(i)},o},renderElems:[TDt,_Dt],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Mt(e);if(i2(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Mt(e)[0].textContent||""}]}}},DDt]},ODt=(function(){function e(){this.title=Yn("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),MDt={menus:[{key:"fullScreen",factory:function(){return new ODt}}]},PDt=(function(){function e(){this.title=Yn("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!pn.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Zt.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(Xe.start(t,o))}},e})(),NDt=[WEt,Ckt,rDt,sDt,fDt,hDt,qkt,wDt,sTt,Pkt,IDt,iTt,mkt,pEt,Ykt,mDt,MDt,{menus:[{key:"enter",factory:function(){return new PDt}}]}];zl("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),zl("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Oce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DK(e){var t={exports:{}};return e(t,t.exports),t.exports}var qp,O8,I6=function(e){return e&&e.Math==Math&&e},Jr=I6(typeof globalThis=="object"&&globalThis)||I6(typeof window=="object"&&window)||I6(typeof self=="object"&&self)||I6(typeof Oce=="object"&&Oce)||(function(){return this})()||Function("return this")(),N6e=Function.prototype,z$=N6e.bind,j$=N6e.call,RDt=z$&&z$.bind(j$),To=z$?function(e){return e&&RDt(j$,e)}:function(e){return e&&function(){return j$.apply(e,arguments)}},ca=function(e){try{return!!e()}catch{return!0}},BDt=To({}.toString),LDt=To("".slice),jf=function(e){return LDt(BDt(e),8,-1)},IN=Jr.Object,FDt=To("".split),R6e=ca((function(){return!IN("z").propertyIsEnumerable(0)}))?function(e){return jf(e)=="String"?FDt(e,""):IN(e)}:IN,UDt=Jr.TypeError,L7=function(e){if(e==null)throw UDt("Can't call method on "+e);return e},l2=function(e){return R6e(L7(e))},$Dt=Object.defineProperty,IK=function(e,t){try{$Dt(Jr,e,{value:t,configurable:!0,writable:!0})}catch{Jr[e]=t}return t},Uh=Jr["__core-js_shared__"]||IK("__core-js_shared__",{}),OK=DK((function(e){(e.exports=function(t,n){return Uh[t]||(Uh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zDt=Jr.Object,k5=function(e){return zDt(L7(e))},jDt=To({}.hasOwnProperty),Xa=Object.hasOwn||function(e,t){return jDt(k5(e),t)},HDt=0,WDt=Math.random(),VDt=To(1 .toString),MK=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VDt(++HDt+WDt,36)},wa=function(e){return typeof e=="function"},qDt=function(e){return wa(e)?e:void 0},T5=function(e,t){return arguments.length<2?qDt(Jr[e]):Jr[e]&&Jr[e][t]},ON=T5("navigator","userAgent")||"",Mce=Jr.process,Pce=Jr.Deno,Nce=Mce&&Mce.versions||Pce&&Pce.version,Rce=Nce&&Nce.v8;Rce&&(O8=(qp=Rce.split("."))[0]>0&&qp[0]<4?1:+(qp[0]+qp[1])),!O8&&ON&&(!(qp=ON.match(/Edge\/(\d+)/))||qp[1]>=74)&&(qp=ON.match(/Chrome\/(\d+)/))&&(O8=+qp[1]);var O6,H$=O8,W$=!!Object.getOwnPropertySymbols&&!ca((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&H$&&H$<41})),PK=W$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lw=OK("wks"),fv=Jr.Symbol,Bce=fv&&fv.for,GDt=PK?fv:fv&&fv.withoutSetter||MK,Ts=function(e){if(!Xa(Lw,e)||!W$&&typeof Lw[e]!="string"){var t="Symbol."+e;W$&&Xa(fv,e)?Lw[e]=fv[e]:Lw[e]=PK&&Bce?Bce(t):GDt(t)}return Lw[e]},va=function(e){return typeof e=="object"?e!==null:wa(e)},KDt=Jr.String,QDt=Jr.TypeError,jl=function(e){if(va(e))return e;throw QDt(KDt(e)+" is not an object")},b0=!ca((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),V$=Jr.document,YDt=va(V$)&&va(V$.createElement),NK=function(e){return YDt?V$.createElement(e):{}},B6e=!b0&&!ca((function(){return Object.defineProperty(NK("div"),"a",{get:function(){return 7}}).a!=7})),Fw=Function.prototype.call,cs=Fw.bind?Fw.bind(Fw):function(){return Fw.apply(Fw,arguments)},bT=To({}.isPrototypeOf),ZDt=Jr.Object,MN=PK?function(e){return typeof e=="symbol"}:function(e){var t=T5("Symbol");return wa(t)&&bT(t.prototype,ZDt(e))},XDt=Jr.String,q$=function(e){try{return XDt(e)}catch{return"Object"}},JDt=Jr.TypeError,RK=function(e){if(wa(e))return e;throw JDt(q$(e)+" is not a function")},zA=function(e,t){var n=e[t];return n==null?void 0:RK(n)},e7t=Jr.TypeError,t7t=Jr.TypeError,n7t=Ts("toPrimitive"),BK=function(e){var t=(function(n,r){if(!va(n)||MN(n))return n;var o,i=zA(n,n7t);if(i){if(o=cs(i,n,r),!va(o)||MN(o))return o;throw t7t("Can't convert object to primitive value")}return(function(a,s){var l,u;if(wa(l=a.toString)&&!va(u=cs(l,a))||wa(l=a.valueOf)&&!va(u=cs(l,a)))return u;throw e7t("Can't convert object to primitive value")})(n)})(e,"string");return MN(t)?t:t+""},r7t=Jr.TypeError,Lce=Object.defineProperty,Am={f:b0?Lce:function(e,t,n){if(jl(e),t=BK(t),jl(n),B6e)try{return Lce(e,t,n)}catch{}if("get"in n||"set"in n)throw r7t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},o7t=Math.ceil,i7t=Math.floor,_5=function(e){var t=+e;return t!=t||t===0?0:(t>0?i7t:o7t)(t)},a7t=Math.max,s7t=Math.min,G$=function(e,t){var n=_5(e);return n<0?a7t(n+t,0):s7t(n,t)},l7t=Math.min,L6e=function(e){return e>0?l7t(_5(e),9007199254740991):0},u2=function(e){return L6e(e.length)},Fce=function(e){return function(t,n,r){var o,i=l2(t),a=u2(i),s=G$(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},F6e={includes:Fce(!0),indexOf:Fce(!1)},F7={},u7t=F6e.indexOf,Uce=To([].push),U6e=function(e,t){var n,r=l2(e),o=0,i=[];for(n in r)!Xa(F7,n)&&Xa(r,n)&&Uce(i,n);for(;t.length>o;)Xa(r,n=t[o++])&&(~u7t(i,n)||Uce(i,n));return i},wT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],c7t=Object.keys||function(e){return U6e(e,wT)},d7t=b0?Object.defineProperties:function(e,t){jl(e);for(var n,r=l2(t),o=c7t(t),i=o.length,a=0;i>a;)Am.f(e,n=o[a++],r[n]);return e},f7t=T5("document","documentElement"),$ce=OK("keys"),LK=function(e){return $ce[e]||($ce[e]=MK(e))},$6e=LK("IE_PROTO"),PN=function(){},z6e=function(e){return"<script>"+e+"<\/script>"},zce=function(e){e.write(z6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},M8=function(){try{O6=new ActiveXObject("htmlfile")}catch{}var e,t;M8=typeof document<"u"?document.domain&&O6?zce(O6):((t=NK("iframe")).style.display="none",f7t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(z6e("document.F=Object")),e.close(),e.F):zce(O6);for(var n=wT.length;n--;)delete M8.prototype[wT[n]];return M8()};F7[$6e]=!0;var FK=Object.create||function(e,t){var n;return e!==null?(PN.prototype=jl(e),n=new PN,PN.prototype=null,n[$6e]=e):n=M8(),t===void 0?n:d7t(n,t)},K$=Ts("unscopables"),Q$=Array.prototype;Q$[K$]==null&&Am.f(Q$,K$,{configurable:!0,value:FK(null)});var f3=function(e){Q$[K$][e]=!0},pb={},p7t=To(Function.toString);wa(Uh.inspectSource)||(Uh.inspectSource=function(e){return p7t(e)});var AT,p3,CT,UK=Uh.inspectSource,jce=Jr.WeakMap,j6e=wa(jce)&&/native code/.test(UK(jce)),U7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$h=b0?function(e,t,n){return Am.f(e,t,U7(1,n))}:function(e,t,n){return e[t]=n,e},Y$=Jr.TypeError,h7t=Jr.WeakMap;if(j6e||Uh.state){var ig=Uh.state||(Uh.state=new h7t),g7t=To(ig.get),Hce=To(ig.has),v7t=To(ig.set);AT=function(e,t){if(Hce(ig,e))throw new Y$("Object already initialized");return t.facade=e,v7t(ig,e,t),t},p3=function(e){return g7t(ig,e)||{}},CT=function(e){return Hce(ig,e)}}else{var o1=LK("state");F7[o1]=!0,AT=function(e,t){if(Xa(e,o1))throw new Y$("Object already initialized");return t.facade=e,$h(e,o1,t),t},p3=function(e){return Xa(e,o1)?e[o1]:{}},CT=function(e){return Xa(e,o1)}}var pv,Wce,Vce,Wd={set:AT,get:p3,has:CT,enforce:function(e){return CT(e)?p3(e):AT(e,{})},getterFor:function(e){return function(t){var n;if(!va(t)||(n=p3(t)).type!==e)throw Y$("Incompatible receiver, "+e+" required");return n}}},qce={}.propertyIsEnumerable,Gce=Object.getOwnPropertyDescriptor,m7t={f:Gce&&!qce.call({1:2},1)?function(e){var t=Gce(this,e);return!!t&&t.enumerable}:qce},Kce=Object.getOwnPropertyDescriptor,H6e={f:b0?Kce:function(e,t){if(e=l2(e),t=BK(t),B6e)try{return Kce(e,t)}catch{}if(Xa(e,t))return U7(!cs(m7t.f,e,t),e[t])}},W6e=Function.prototype,y7t=b0&&Object.getOwnPropertyDescriptor,Qce=Xa(W6e,"name"),$K={PROPER:Qce&&(function(){}).name==="something",CONFIGURABLE:Qce&&(!b0||b0&&y7t(W6e,"name").configurable)},up=DK((function(e){var t=$K.CONFIGURABLE,n=Wd.get,r=Wd.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;wa(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xa(s,"name")||t&&s.name!==p)&&$h(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Jr?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:$h(i,a,s)):c?i[a]=s:IK(a,s)})(Function.prototype,"toString",(function(){return wa(this)&&n(this).source||UK(this)}))})),b7t=wT.concat("length","prototype"),xT={f:Object.getOwnPropertyNames||function(e){return U6e(e,b7t)}},w7t={f:Object.getOwnPropertySymbols},A7t=To([].concat),C7t=T5("Reflect","ownKeys")||function(e){var t=xT.f(jl(e)),n=w7t.f;return n?A7t(t,n(e)):t},x7t=function(e,t){for(var n=C7t(t),r=Am.f,o=H6e.f,i=0;i<n.length;i++){var a=n[i];Xa(e,a)||r(e,a,o(t,a))}},S7t=/#|\.prototype\./,D5=function(e,t){var n=k7t[E7t(e)];return n==_7t||n!=T7t&&(wa(t)?ca(t):!!t)},E7t=D5.normalize=function(e){return String(e).replace(S7t,".").toLowerCase()},k7t=D5.data={},T7t=D5.NATIVE="N",_7t=D5.POLYFILL="P",Z$=D5,D7t=H6e.f,w0=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Jr:u?Jr[s]||IK(s,{}):(Jr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=D7t(n,r))&&a.value:n[r],!Z$(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;x7t(i,o)}(e.sham||o&&o.sham)&&$h(i,"sham",!0),up(n,r,i,e)}},I7t=!ca((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Yce=LK("IE_PROTO"),X$=Jr.Object,O7t=X$.prototype,ST=I7t?X$.getPrototypeOf:function(e){var t=k5(e);if(Xa(t,Yce))return t[Yce];var n=t.constructor;return wa(n)&&t instanceof n?n.prototype:t instanceof X$?O7t:null},J$=Ts("iterator"),V6e=!1;[].keys&&("next"in(Vce=[].keys())?(Wce=ST(ST(Vce)))!==Object.prototype&&(pv=Wce):V6e=!0);var M7t=pv==null||ca((function(){var e={};return pv[J$].call(e)!==e}));M7t&&(pv={}),wa(pv[J$])||up(pv,J$,(function(){return this}));var zK={IteratorPrototype:pv,BUGGY_SAFARI_ITERATORS:V6e},P7t=Am.f,Zce=Ts("toStringTag"),ez=function(e,t,n){e&&!Xa(e=n?e:e.prototype,Zce)&&P7t(e,Zce,{configurable:!0,value:t})},N7t=zK.IteratorPrototype,R7t=function(){return this},B7t=Jr.String,L7t=Jr.TypeError,ET=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=To(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return jl(r),(function(i){if(typeof i=="object"||wa(i))return i;throw L7t("Can't set "+B7t(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),F7t=$K.PROPER,U7t=$K.CONFIGURABLE,Xce=zK.IteratorPrototype,NN=zK.BUGGY_SAFARI_ITERATORS,Uw=Ts("iterator"),$7t=function(){return this},q6e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=FK(N7t,{next:U7(1,m)}),ez(g,w,!1),pb[w]=R7t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!NN&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[Uw]||f["@@iterator"]||o&&f[o],v=!NN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=ST(h.call(new e)))!==Object.prototype&&s.next&&(ST(s)!==Xce&&(ET?ET(s,Xce):wa(s[Uw])||up(s,Uw,$7t)),ez(s,d,!0)),F7t&&o=="values"&&p&&p.name!=="values"&&(U7t?$h(f,"name","values"):(c=!0,v=function(){return cs(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||w0({target:t,proto:!0,forced:NN||c},l)),f[Uw]!==v&&up(f,Uw,v,{name:o}),pb[t]=v,l},z7t=Wd.set,j7t=Wd.getterFor("Array Iterator"),D4=q6e(Array,"Array",(function(e,t){z7t(this,{type:"Array Iterator",target:l2(e),index:0,kind:t})}),(function(){var e=j7t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");pb.Arguments=pb.Array,f3("keys"),f3("values"),f3("entries");var G6e={};G6e[Ts("toStringTag")]="z";var jK=String(G6e)==="[object z]",H7t=Ts("toStringTag"),W7t=Jr.Object,V7t=jf((function(){return arguments})())=="Arguments",$7=jK?jf:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=W7t(e),H7t))=="string"?n:V7t?jf(t):(r=jf(t))=="Object"&&wa(t.callee)?"Arguments":r},q7t=jK?{}.toString:function(){return"[object "+$7(this)+"]"};jK||up(Object.prototype,"toString",q7t,{unsafe:!0});var G7t=Jr.String,xf=function(e){if($7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return G7t(e)},K7t=To("".charAt),Jce=To("".charCodeAt),Q7t=To("".slice),Y7t=function(e){return function(t,n){var r,o,i=xf(L7(t)),a=_5(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Jce(i,a))<55296||r>56319||a+1===s||(o=Jce(i,a+1))<56320||o>57343?e?K7t(i,a):r:e?Q7t(i,a,a+2):o-56320+(r-55296<<10)+65536}},K6e={charAt:Y7t(!0)},Z7t=K6e.charAt,X7t=Wd.set,J7t=Wd.getterFor("String Iterator");q6e(String,"String",(function(e){X7t(this,{type:"String Iterator",string:xf(e),index:0})}),(function(){var e,t=J7t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Z7t(n,r),t.index+=e.length,{value:e,done:!1})}));var tz=function(e,t,n){for(var r in t)up(e,r,t[r],n);return e},e9t=Jr.Array,t9t=Math.max,ede=xT.f,tde=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n9t={f:function(e){return tde&&jf(e)=="Window"?(function(t){try{return ede(t)}catch{return(function(r,o,i){for(var a,s,l,u,d=u2(r),c=G$(void 0,d),f=G$(d,d),p=e9t(t9t(f-c,0)),v=0;c<f;c++,v++)a=p,s=v,l=r[c],(u=BK(s))in a?Am.f(a,u,U7(0,l)):a[u]=l;return p.length=v,p})(tde)}})(e):ede(l2(e))}},nde=ca((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),M6=Object.isExtensible,zg=ca((function(){M6(1)}))||nde?function(e){return!!va(e)&&(!nde||jf(e)!="ArrayBuffer")&&(!M6||M6(e))}:M6,r9t=!ca((function(){return Object.isExtensible(Object.preventExtensions({}))})),HK=DK((function(e){var t=Am.f,n=!1,r=MK("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=xT.f,l=To([].splice),u={};u[r]=1,s(u).length&&(xT.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},w0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:n9t.f}))},fastKey:function(s,l){if(!va(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Xa(s,r)){if(!zg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Xa(s,r)){if(!zg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return r9t&&n&&zg(s)&&!Xa(s,r)&&i(s),s}};F7[r]=!0})),rde=To(To.bind),WK=function(e,t){return RK(e),t===void 0?e:rde?rde(e,t):function(){return e.apply(t,arguments)}},o9t=Ts("iterator"),i9t=Array.prototype,a9t=Ts("iterator"),ode=function(e){if(e!=null)return zA(e,a9t)||zA(e,"@@iterator")||pb[$7(e)]},s9t=Jr.TypeError,ide=function(e,t,n){var r,o;jl(e);try{if(!(r=zA(e,"return"))){if(t==="throw")throw n;return n}r=cs(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return jl(r),n},l9t=Jr.TypeError,P8=function(e,t){this.stopped=e,this.result=t},ade=P8.prototype,Q6e=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=WK(t,c),g=function(m){return r&&ide(r,"normal",m),new P8(!0,m)},y=function(m){return f?(jl(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=ode(e)))throw l9t(q$(e)+" is not iterable");if((d=o)!==void 0&&(pb.Array===d||i9t[o9t]===d)){for(i=0,a=u2(e);a>i;i++)if((s=y(e[i]))&&bT(ade,s))return s;return new P8(!1)}r=(function(m,b){var w=arguments.length<2?ode(m):b;if(RK(w))return jl(cs(w,m));throw s9t(q$(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=cs(l,r)).done;){try{s=y(u.value)}catch(m){ide(r,"throw",m)}if(typeof s=="object"&&s&&bT(ade,s))return s}return new P8(!1)},u9t=Jr.TypeError,Y6e=function(e,t){if(bT(t,e))return e;throw u9t("Incorrect invocation")},Z6e=Ts("iterator"),X6e=!1;try{var c9t=0,sde={next:function(){return{done:!!c9t++}},return:function(){X6e=!0}};sde[Z6e]=function(){return this},Array.from(sde,(function(){throw 2}))}catch{}var nz=Array.isArray||function(e){return jf(e)=="Array"},J6e=function(){},d9t=[],eSe=T5("Reflect","construct"),VK=/^\s*(?:class|function)\b/,f9t=To(VK.exec),p9t=!VK.exec(J6e),$w=function(e){if(!wa(e))return!1;try{return eSe(J6e,d9t,e),!0}catch{return!1}},h9t=!eSe||ca((function(){var e;return $w($w.call)||!$w(Object)||!$w((function(){e=!0}))||e}))?function(e){if(!wa(e))return!1;switch($7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p9t||!!f9t(VK,UK(e))}:$w,g9t=Ts("species"),lde=Jr.Array,tSe=function(e,t){return new((function(n){var r;return nz(n)&&(r=n.constructor,(h9t(r)&&(r===lde||nz(r.prototype))||va(r)&&(r=r[g9t])===null)&&(r=void 0)),r===void 0?lde:r})(e))(t===0?0:t)},ude=To([].push),RN=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=k5(l),h=R6e(v),g=WK(u,d),y=u2(h),m=0,b=c||tSe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:ude(w,f)}else switch(e){case 4:return!1;case 7:ude(w,f)}return i?-1:r||o?o:w}},qK={filter:RN(2),find:RN(5),findIndex:RN(6)},P6=HK.getWeakData,v9t=Wd.set,m9t=Wd.getterFor,y9t=qK.find,b9t=qK.findIndex,w9t=To([].splice),A9t=0,N6=function(e){return e.frozen||(e.frozen=new nSe)},nSe=function(){this.entries=[]},BN=function(e,t){return y9t(e.entries,(function(n){return n[0]===t}))};nSe.prototype={get:function(e){var t=BN(this,e);if(t)return t[1]},has:function(e){return!!BN(this,e)},set:function(e,t){var n=BN(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=b9t(this.entries,(function(n){return n[0]===e}));return~t&&w9t(this.entries,t,1),!!~t}};var zw,rSe={getConstructor:function(e,t,n,r){var o=e((function(l,u){Y6e(l,i),v9t(l,{type:t,id:A9t++,frozen:void 0}),u!=null&&Q6e(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=m9t(t),s=function(l,u,d){var c=a(l),f=P6(jl(u),!0);return f===!0?N6(c).set(u,d):f[c.id]=d,l};return tz(i,{delete:function(l){var u=a(this);if(!va(l))return!1;var d=P6(l);return d===!0?N6(u).delete(l):d&&Xa(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!va(l))return!1;var d=P6(l);return d===!0?N6(u).has(l):d&&Xa(d,u.id)}}),tz(i,n?{get:function(l){var u=a(this);if(va(l)){var d=P6(l);return d===!0?N6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},R6=Wd.enforce,C9t=!Jr.ActiveXObject&&"ActiveXObject"in Jr,oSe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x9t=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Jr[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=To(s[g]);up(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!va(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!va(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!va(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(Z$(e,!wa(a)||!(o||s.forEach&&!ca((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),HK.enable();else if(Z$(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=ca((function(){c.has(1)})),v=(function(g,y){if(!X6e)return!1;var m=!1;try{var b={};b[Z6e]=function(){return{next:function(){return{done:m=!0}}}},(function(w){new a(w)})(b)}catch{}return m})(),h=!o&&ca((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){Y6e(g,s);var m=(function(b,w,A){var S,k;return ET&&wa(S=w.constructor)&&S!==A&&va(k=S.prototype)&&k!==A.prototype&&ET(b,k),b})(new a,g,l);return y!=null&&Q6e(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,w0({global:!0,forced:l!=a},u),ez(l,e),o||n.setStrong(l,e,r),l})("WeakMap",oSe,rSe);if(j6e&&C9t){zw=rSe.getConstructor(oSe,"WeakMap",!0),HK.enable();var jw=x9t.prototype,cde=To(jw.delete),B6=To(jw.has),dde=To(jw.get),fde=To(jw.set);tz(jw,{delete:function(e){if(va(e)&&!zg(e)){var t=R6(this);return t.frozen||(t.frozen=new zw),cde(this,e)||t.frozen.delete(e)}return cde(this,e)},has:function(e){if(va(e)&&!zg(e)){var t=R6(this);return t.frozen||(t.frozen=new zw),B6(this,e)||t.frozen.has(e)}return B6(this,e)},get:function(e){if(va(e)&&!zg(e)){var t=R6(this);return t.frozen||(t.frozen=new zw),B6(this,e)?dde(this,e):t.frozen.get(e)}return dde(this,e)},set:function(e,t){if(va(e)&&!zg(e)){var n=R6(this);n.frozen||(n.frozen=new zw),B6(this,e)?fde(this,e,t):n.frozen.set(e,t)}else fde(this,e,t);return this}})}var iSe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},LN=NK("span").classList,pde=LN&&LN.constructor&&LN.constructor.prototype,S9t=pde===Object.prototype?void 0:pde,FN=Ts("iterator"),hde=Ts("toStringTag"),UN=D4.values,aSe=function(e,t){if(e){if(e[FN]!==UN)try{$h(e,FN,UN)}catch{e[FN]=UN}if(e[hde]||$h(e,hde,t),iSe[t]){for(var n in D4)if(e[n]!==D4[n])try{$h(e,n,D4[n])}catch{e[n]=D4[n]}}}};for(var $N in iSe)aSe(Jr[$N]&&Jr[$N].prototype,$N);aSe(S9t,"DOMTokenList");var rz=new WeakMap,E9t={type:"list-item",renderElem:function(e,t,n){rz.set(e,n);var r=e,o=r.level,i=o===void 0?0:o,a=r.ordered,s={margin:"5px 0 5px "+20*i+"px"},l="";if(a!==void 0&&a){var u=(function(c,f){var p=f,v=p.type,h=p.level,g=h===void 0?0:h,y=p.ordered,m=y!==void 0&&y;if(!m)return-1;var b=1,w=f,A=Et.findPath(c,w);if(A[0]===0)return 1;for(;A[0]>0;){var S=Ht.previous(A),k=Xe.node(c,S);if(k==null)break;var M=k[0],D=M.level,P=D===void 0?0:D,O=M.type,_=M.ordered;if(O!==v||P<g)break;if(P===g){if(_!==m)break;b++}w=M,A=S}return b})(n,e);l=u+"."}else l=(function(c){c===void 0&&(c=0);var f="";switch(c){case 0:f="•";break;case 1:f="◦";break;default:f="▪"}return f})(i);var d=(function(c){var f,p=c.children||[],v=p.length;if(v===0)return"";for(var h=0;h<v&&!f;h++){var g=p[h];ir.isText(g)&&(f=g)}return f==null?"":f.color||""})(e);return Xr("div",{style:s},Xr("span",{contentEditable:!1,style:{marginRight:"0.5em",color:d},"data-w-e-reserve":!0},l),Xr("span",null,t))}},oz=function(e,t){return oz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},oz(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function sSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}oz(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function gde(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h3(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vde(e){return Xe.nodes(e,{at:e.selection||void 0,match:function(t){return Et.findPath(e,t).length===1}})}var k9t=F6e.includes;w0({target:"Array",proto:!0},{includes:function(e){return k9t(this,e,arguments.length>1?arguments[1]:void 0)}}),f3("includes");var mde,zN,T9t=function(){var e=jl(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},GK=Jr.RegExp,lSe=ca((function(){var e=GK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));lSe||ca((function(){return!GK("a","y").sticky}));var _9t={BROKEN_CARET:lSe||ca((function(){var e=GK("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},D9t=Jr.RegExp,I9t=ca((function(){var e=D9t(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),O9t=Jr.RegExp,M9t=ca((function(){var e=O9t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),P9t=Wd.get,N9t=OK("native-string-replace",String.prototype.replace),kT=RegExp.prototype.exec,iz=kT,R9t=To("".charAt),B9t=To("".indexOf),L9t=To("".replace),jN=To("".slice),HN=(zN=/b*/g,cs(kT,mde=/a/,"a"),cs(kT,zN,"a"),mde.lastIndex!==0||zN.lastIndex!==0),yde=_9t.BROKEN_CARET,WN=/()??/.exec("")[1]!==void 0;(HN||WN||yde||I9t||M9t)&&(iz=function(e){var t,n,r,o,i,a,s,l=this,u=P9t(l),d=xf(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=cs(iz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=yde&&l.sticky,v=cs(T9t,l),h=l.source,g=0,y=d;if(p&&(v=L9t(v,"y",""),B9t(v,"g")===-1&&(v+="g"),y=jN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&R9t(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),WN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),HN&&(r=l.lastIndex),o=cs(kT,p?n:l,y),p?o?(o.input=jN(o.input,g),o[0]=jN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:HN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),WN&&o&&o.length>1&&cs(N9t,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=FK(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var TT=iz;w0({target:"RegExp",proto:!0,forced:/./.exec!==TT},{exec:TT});var uSe=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return Et.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!Et.getSelectedElems(t).some((function(n){if(Xe.isVoid(t,n)&&Xe.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0}))},e.prototype.exec=function(t,n){this.isActive(t)?Zt.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Zt.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),F9t='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',U9t='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',$9t=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Yn("listModule.unOrderedList"),n.iconSvg=F9t,n}return sSe(t,e),t})(uSe),z9t=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Yn("listModule.orderedList"),n.iconSvg=U9t,n}return sSe(t,e),t})(uSe),j9t={key:"bulletedList",factory:function(){return new $9t}},H9t={key:"numberedList",factory:function(){return new z9t}},bde=[],W9t={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(u){var d=rz.get(u);if(d==null)return 0;var c=u,f=c.type,p=c.ordered,v=p!==void 0&&p,h=c.level,g=h===void 0?0:h,y=Et.findPath(d,u);if(y[0]===0)return g+1;var m=Ht.previous(y),b=Xe.node(d,m);if(!b)return 0;var w=h3(b,1)[0];if(Et.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,k=S!==void 0&&S,M=A.level,D=M===void 0?0:M;return D<g?g-D:D>g?0:D===g?k===v?0:1:0})(e);if(a>0)for(var s=0;s<a;s++)n+="<"+i+">",bde.push(i);var l=(function(u){var d=rz.get(u);if(d==null)return 0;var c=u,f=c.type,p=c.ordered,v=p!==void 0&&p,h=c.level,g=h===void 0?0:h,y=Et.findPath(d,u);if(y[0]===d.children.length-1)return g+1;var m=Ht.next(y),b=Xe.node(d,m);if(!b)return 0;var w=h3(b,1)[0];if(Et.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,k=S!==void 0&&S,M=A.level,D=M===void 0?0:M;return D<g?g-D:D>g?0:D===g?k===v?0:1:0})(e);if(l>0)for(s=0;s<l;s++)r+="</"+bde.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},V9t=Ts("species"),q9t=qK.filter,G9t=H$>=51||!ca((function(){var e=[];return(e.constructor={})[V9t]=function(){return{foo:1}},e.filter(Boolean).foo!==1}));w0({target:"Array",proto:!0,forced:!G9t},{filter:function(e){return q9t(this,e,arguments.length>1?arguments[1]:void 0)}});var KK=Function.prototype,wde=KK.apply,K9t=KK.bind,Ade=KK.call,Q9t=typeof Reflect=="object"&&Reflect.apply||(K9t?Ade.bind(wde):function(){return Ade.apply(wde,arguments)}),Cde=(Ts("species"),RegExp.prototype),Y9t=K6e.charAt,Z9t=function(e,t,n){return t+(n?Y9t(e,t).length:1)},X9t=Math.floor,VN=To("".charAt),J9t=To("".replace),qN=To("".slice),eIt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tIt=/\$([$&'`]|\d{1,2})/g,nIt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=tIt;return o!==void 0&&(o=k5(o),l=eIt),J9t(i,l,(function(u,d){var c;switch(VN(d,0)){case"$":return"$";case"&":return e;case"`":return qN(t,0,n);case"'":return qN(t,a);case"<":c=o[qN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=X9t(f/10);return p===0?u:p<=s?r[p-1]===void 0?VN(d,1):r[p-1]+VN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},rIt=Jr.TypeError,oIt=function(e,t){var n=e.exec;if(wa(n)){var r=cs(n,e,t);return r!==null&&jl(r),r}if(jf(e)==="RegExp")return cs(TT,e,t);throw rIt("RegExp#exec called on incompatible receiver")},az=Ts("replace"),iIt=Math.max,aIt=Math.min,sIt=To([].concat),GN=To([].push),xde=To("".indexOf),Sde=To("".slice),lIt="a".replace(/./,"$0")==="$0",Ede=!!/./[az]&&/./[az]("a","$0")==="";(function(e,t,n,r){var o=Ts(e),i=!ca((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ca((function(){var u=!1,d=/a/;return d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=To(/./[o]),l=(function(u,d,c){var f=Ede?"$":"$0";return[function(p,v){var h=L7(this),g=p==null?void 0:zA(p,az);return g?cs(g,p,h,v):cs(d,xf(h),p,v)},function(p,v){var h=jl(this),g=xf(p);if(typeof v=="string"&&xde(v,f)===-1&&xde(v,"$<")===-1){var y=c(d,h,g,v);if(y.done)return y.value}var m=wa(v);m||(v=xf(v));var b=h.global;if(b){var w=h.unicode;h.lastIndex=0}for(var A=[];;){var S=oIt(h,g);if(S===null||(GN(A,S),!b))break;xf(S[0])===""&&(h.lastIndex=Z9t(g,L6e(h.lastIndex),w))}for(var k,M="",D=0,P=0;P<A.length;P++){for(var O=xf((S=A[P])[0]),_=iIt(aIt(_5(S.index),g.length),0),B=[],N=1;N<S.length;N++)GN(B,(k=S[N])===void 0?k:String(k));var q=S.groups;if(m){var U=sIt([O],B,_,g);q!==void 0&&GN(U,q);var j=xf(Q9t(v,void 0,U))}else j=nIt(O,g,_,B,q,v);_>=D&&(M+=Sde(g,D,_)+j,D=_+O.length)}return M+Sde(g,D)}]})(0,""[e],(function(u,d,c,f,p){var v=To(u),h=d.exec;return h===TT||h===Cde.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));up(String.prototype,e,l[0]),up(Cde,o,l[1])}})("replace",0,!!ca((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!lIt||Ede);var uIt=Jr.TypeError,cSe=function(e,t,n,r,o,i,a,s){for(var l,u,d=o,c=0,f=!!a&&WK(a,s);c<r;){if(c in n){if(l=f?f(n[c],c,t):n[c],i>0&&nz(l))u=u2(l),d=cSe(e,t,l,u,d,i-1)-1;else{if(d>=9007199254740991)throw uIt("Exceed the acceptable array length");e[d]=l}d++}c++}return d},cIt=cSe;function KN(e){return e.length?e[0].tagName.toLowerCase():""}w0({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=k5(this),n=u2(t),r=tSe(t,0);return r.length=cIt(r,t,t,n,0,e===void 0?1:_5(e)),r}}),f3("flat"),w0({global:!0},{globalThis:Jr}),ec&&(Mt.fn.append=ec),Ju&&(Mt.fn.attr=Ju),eb&&(Mt.fn.parent=eb);var dIt={renderElems:[E9t],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(pn.isExpanded(a))t(i);else{var s=Et.getSelectedNodeByType(o,"list-item");if(s!=null)if(a.focus.offset!==0)t(i);else{var l=s.level,u=l===void 0?0:l;u>0?Zt.setNodes(o,{level:u-1}):Zt.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,s,l,u=o.selection;if(u!=null){if(pn.isCollapsed(u)){var d=Et.getSelectedNodeByType(o,"list-item");if(d==null)return void n();if(u.focus.offset===0){var c=d.level,f=c===void 0?0:c;return void Zt.setNodes(o,{level:f+1})}}if(pn.isExpanded(u)){var p=0,v=!1;try{for(var h=gde(vde(o)),g=h.next();!g.done;g=h.next()){var y=h3(g.value,1)[0];Et.getNodeType(y)==="list-item"?p++:v=!0}}catch(k){i={error:k}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}if(v||p<=1)return void n();try{for(var m=gde(vde(o)),b=m.next();!b.done;b=m.next()){var w=h3(b.value,2),A=(y=w[0],w[1]),S=y.level;f=S===void 0?0:S,Zt.setNodes(o,{level:f+1},{at:A})}}catch(k){s={error:k}}finally{try{b&&!b.done&&(l=m.return)&&l.call(m)}finally{if(s)throw s.error}}}else n()}else n()},o.normalizeNode=function(i){var a=h3(i,2),s=a[0],l=a[1],u=Et.getNodeType(s);return u!=="bulleted-list"&&u!=="numbered-list"||Zt.unwrapNodes(o,{at:l}),r([s,l])},o},menus:[j9t,H9t],elemsToHtml:[W9t],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);(t=t.filter((function(a){return!!ir.isText(a)||!!n.isInline(a)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=(function(a){return KN(a.parent())==="ol"})(r),i=(function(a){for(var s=0,l=a.parent(),u=KN(l);u==="ul"||u==="ol";)u=KN(l=l.parent()),s++;return s-1})(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},dSe=cm((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",v="[object RegExp]",h="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",A=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[o]=k[i]=k[b]=k[a]=k[w]=k[s]=k[l]=k[u]=k[d]=k[c]=k[f]=k[v]=k[h]=k[g]=k[m]=!1;var M=typeof bi=="object"&&bi&&bi.Object===Object&&bi,D=typeof self=="object"&&self&&self.Object===Object&&self,P=M||D||Function("return this")(),O=t&&!t.nodeType&&t,_=O&&e&&!e.nodeType&&e,B=_&&_.exports===O,N=B&&M.process,q=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),U=q&&q.isTypedArray;function j(vt,Nt){for(var bn=-1,Mn=vt==null?0:vt.length;++bn<Mn;)if(Nt(vt[bn],bn,vt))return!0;return!1}function H(vt){var Nt=-1,bn=Array(vt.size);return vt.forEach((function(Mn,tr){bn[++Nt]=[tr,Mn]})),bn}function G(vt){var Nt=-1,bn=Array(vt.size);return vt.forEach((function(Mn){bn[++Nt]=Mn})),bn}var Z=Array.prototype,$=Function.prototype,L=Object.prototype,W=P["__core-js_shared__"],ie=$.toString,ee=L.hasOwnProperty,te=(function(){var vt=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return vt?"Symbol(src)_1."+vt:""})(),X=L.toString,ue=RegExp("^"+ie.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=B?P.Buffer:void 0,Me=P.Symbol,we=P.Uint8Array,he=L.propertyIsEnumerable,Te=Z.splice,Y=Me?Me.toStringTag:void 0,be=Object.getOwnPropertySymbols,De=ve?ve.isBuffer:void 0,pe=(function(vt,Nt){return function(bn){return vt(Nt(bn))}})(Object.keys,Object),oe=rt(P,"DataView"),ce=rt(P,"Map"),Re=rt(P,"Promise"),Ee=rt(P,"Set"),Le=rt(P,"WeakMap"),Fe=rt(Object,"create"),Pe=Je(oe),Ne=Je(ce),pt=Je(Re),Rt=Je(Ee),Bt=Je(Le),en=Me?Me.prototype:void 0,Wt=en?en.valueOf:void 0;function Ut(vt){var Nt=-1,bn=vt==null?0:vt.length;for(this.clear();++Nt<bn;){var Mn=vt[Nt];this.set(Mn[0],Mn[1])}}function ct(vt){var Nt=-1,bn=vt==null?0:vt.length;for(this.clear();++Nt<bn;){var Mn=vt[Nt];this.set(Mn[0],Mn[1])}}function _t(vt){var Nt=-1,bn=vt==null?0:vt.length;for(this.clear();++Nt<bn;){var Mn=vt[Nt];this.set(Mn[0],Mn[1])}}function st(vt){var Nt=-1,bn=vt==null?0:vt.length;for(this.__data__=new _t;++Nt<bn;)this.add(vt[Nt])}function Ot(vt){var Nt=this.__data__=new ct(vt);this.size=Nt.size}function Ae(vt,Nt){var bn=ze(vt),Mn=!bn&&Ue(vt),tr=!bn&&!Mn&&ut(vt),dn=!bn&&!Mn&&!tr&&xt(vt),Ke=bn||Mn||tr||dn,bt=Ke?(function(Gt,An){for(var Rn=-1,Kn=Array(Gt);++Rn<Gt;)Kn[Rn]=An(Rn);return Kn})(vt.length,String):[],Yt=bt.length;for(var wt in vt)!ee.call(vt,wt)||Ke&&(wt=="length"||tr&&(wt=="offset"||wt=="parent")||dn&&(wt=="buffer"||wt=="byteLength"||wt=="byteOffset")||Ye(wt,Yt))||bt.push(wt);return bt}function je(vt,Nt){for(var bn=vt.length;bn--;)if(lt(vt[bn][0],Nt))return bn;return-1}function at(vt){return vt==null?vt===void 0?"[object Undefined]":"[object Null]":Y&&Y in Object(vt)?(function(Nt){var bn=ee.call(Nt,Y),Mn=Nt[Y];try{Nt[Y]=void 0;var tr=!0}catch{}var dn=X.call(Nt);return tr&&(bn?Nt[Y]=Mn:delete Nt[Y]),dn})(vt):(function(Nt){return X.call(Nt)})(vt)}function gt(vt){return Nn(vt)&&at(vt)==o}function nn(vt,Nt,bn,Mn,tr){return vt===Nt||(vt==null||Nt==null||!Nn(vt)&&!Nn(Nt)?vt!=vt&&Nt!=Nt:(function(dn,Ke,bt,Yt,wt,Gt){var An=ze(dn),Rn=ze(Ke),Kn=An?i:rn(dn),Fr=Rn?i:rn(Ke),ho=(Kn=Kn==o?f:Kn)==f,Wr=(Fr=Fr==o?f:Fr)==f,bo=Kn==Fr;if(bo&&ut(dn)){if(!ut(Ke))return!1;An=!0,ho=!1}if(bo&&!ho)return Gt||(Gt=new Ot),An||xt(dn)?ke(dn,Ke,bt,Yt,wt,Gt):(function(Nr,Br,zr,Ao,Cr,Ho,Xo){switch(zr){case w:if(Nr.byteLength!=Br.byteLength||Nr.byteOffset!=Br.byteOffset)return!1;Nr=Nr.buffer,Br=Br.buffer;case b:return!(Nr.byteLength!=Br.byteLength||!Ho(new we(Nr),new we(Br)));case a:case s:case c:return lt(+Nr,+Br);case l:return Nr.name==Br.name&&Nr.message==Br.message;case v:case g:return Nr==Br+"";case d:var qi=H;case h:var na=1&Ao;if(qi||(qi=G),Nr.size!=Br.size&&!na)return!1;var ti=Xo.get(Nr);if(ti)return ti==Br;Ao|=2,Xo.set(Nr,Br);var Lo=ke(qi(Nr),qi(Br),Ao,Cr,Ho,Xo);return Xo.delete(Nr),Lo;case y:if(Wt)return Wt.call(Nr)==Wt.call(Br)}return!1})(dn,Ke,Kn,bt,Yt,wt,Gt);if(!(1&bt)){var Bo=ho&&ee.call(dn,"__wrapped__"),yr=Wr&&ee.call(Ke,"__wrapped__");if(Bo||yr){var Vr=Bo?dn.value():dn,wo=yr?Ke.value():Ke;return Gt||(Gt=new Ot),wt(Vr,wo,bt,Yt,Gt)}}return bo?(Gt||(Gt=new Ot),(function(Nr,Br,zr,Ao,Cr,Ho){var Xo=1&zr,qi=me(Nr),na=qi.length,ti=me(Br).length;if(na!=ti&&!Xo)return!1;for(var Lo=na;Lo--;){var Yo=qi[Lo];if(!(Xo?Yo in Br:ee.call(Br,Yo)))return!1}var Pa=Ho.get(Nr);if(Pa&&Ho.get(Br))return Pa==Br;var Ai=!0;Ho.set(Nr,Br),Ho.set(Br,Nr);for(var Ci=Xo;++Lo<na;){var xi=Nr[Yo=qi[Lo]],mi=Br[Yo];if(Ao)var ra=Xo?Ao(mi,xi,Yo,Br,Nr,Ho):Ao(xi,mi,Yo,Nr,Br,Ho);if(!(ra===void 0?xi===mi||Cr(xi,mi,zr,Ao,Ho):ra)){Ai=!1;break}Ci||(Ci=Yo=="constructor")}if(Ai&&!Ci){var _r=Nr.constructor,Si=Br.constructor;_r==Si||!("constructor"in Nr)||!("constructor"in Br)||typeof _r=="function"&&_r instanceof _r&&typeof Si=="function"&&Si instanceof Si||(Ai=!1)}return Ho.delete(Nr),Ho.delete(Br),Ai})(dn,Ke,bt,Yt,wt,Gt)):!1})(vt,Nt,bn,Mn,nn,tr))}function Tn(vt){return!(!mn(vt)||(function(Nt){return!!te&&te in Nt})(vt))&&(yt(vt)?ue:A).test(Je(vt))}function He(vt){if(bn=(Nt=vt)&&Nt.constructor,Mn=typeof bn=="function"&&bn.prototype||L,Nt!==Mn)return pe(vt);var Nt,bn,Mn,tr=[];for(var dn in Object(vt))ee.call(vt,dn)&&dn!="constructor"&&tr.push(dn);return tr}function ke(vt,Nt,bn,Mn,tr,dn){var Ke=1&bn,bt=vt.length,Yt=Nt.length;if(bt!=Yt&&!(Ke&&Yt>bt))return!1;var wt=dn.get(vt);if(wt&&dn.get(Nt))return wt==Nt;var Gt=-1,An=!0,Rn=2&bn?new st:void 0;for(dn.set(vt,Nt),dn.set(Nt,vt);++Gt<bt;){var Kn=vt[Gt],Fr=Nt[Gt];if(Mn)var ho=Ke?Mn(Fr,Kn,Gt,Nt,vt,dn):Mn(Kn,Fr,Gt,vt,Nt,dn);if(ho!==void 0){if(ho)continue;An=!1;break}if(Rn){if(!j(Nt,(function(Wr,bo){if(Bo=bo,!Rn.has(Bo)&&(Kn===Wr||tr(Kn,Wr,bn,Mn,dn)))return Rn.push(bo);var Bo}))){An=!1;break}}else if(Kn!==Fr&&!tr(Kn,Fr,bn,Mn,dn)){An=!1;break}}return dn.delete(vt),dn.delete(Nt),An}function me(vt){return(function(Nt,bn,Mn){var tr=bn(Nt);return ze(Nt)?tr:(function(dn,Ke){for(var bt=-1,Yt=Ke.length,wt=dn.length;++bt<Yt;)dn[wt+bt]=Ke[bt];return dn})(tr,Mn(Nt))})(vt,sn,ht)}function Be(vt,Nt){var bn,Mn,tr=vt.__data__;return((Mn=typeof(bn=Nt))=="string"||Mn=="number"||Mn=="symbol"||Mn=="boolean"?bn!=="__proto__":bn===null)?tr[typeof Nt=="string"?"string":"hash"]:tr.map}function rt(vt,Nt){var bn=(function(Mn,tr){return Mn?.[tr]})(vt,Nt);return Tn(bn)?bn:void 0}Ut.prototype.clear=function(){this.__data__=Fe?Fe(null):{},this.size=0},Ut.prototype.delete=function(vt){var Nt=this.has(vt)&&delete this.__data__[vt];return this.size-=Nt?1:0,Nt},Ut.prototype.get=function(vt){var Nt=this.__data__;if(Fe){var bn=Nt[vt];return bn===n?void 0:bn}return ee.call(Nt,vt)?Nt[vt]:void 0},Ut.prototype.has=function(vt){var Nt=this.__data__;return Fe?Nt[vt]!==void 0:ee.call(Nt,vt)},Ut.prototype.set=function(vt,Nt){var bn=this.__data__;return this.size+=this.has(vt)?0:1,bn[vt]=Fe&&Nt===void 0?n:Nt,this},ct.prototype.clear=function(){this.__data__=[],this.size=0},ct.prototype.delete=function(vt){var Nt=this.__data__,bn=je(Nt,vt);return!(bn<0)&&(bn==Nt.length-1?Nt.pop():Te.call(Nt,bn,1),--this.size,!0)},ct.prototype.get=function(vt){var Nt=this.__data__,bn=je(Nt,vt);return bn<0?void 0:Nt[bn][1]},ct.prototype.has=function(vt){return je(this.__data__,vt)>-1},ct.prototype.set=function(vt,Nt){var bn=this.__data__,Mn=je(bn,vt);return Mn<0?(++this.size,bn.push([vt,Nt])):bn[Mn][1]=Nt,this},_t.prototype.clear=function(){this.size=0,this.__data__={hash:new Ut,map:new(ce||ct),string:new Ut}},_t.prototype.delete=function(vt){var Nt=Be(this,vt).delete(vt);return this.size-=Nt?1:0,Nt},_t.prototype.get=function(vt){return Be(this,vt).get(vt)},_t.prototype.has=function(vt){return Be(this,vt).has(vt)},_t.prototype.set=function(vt,Nt){var bn=Be(this,vt),Mn=bn.size;return bn.set(vt,Nt),this.size+=bn.size==Mn?0:1,this},st.prototype.add=st.prototype.push=function(vt){return this.__data__.set(vt,n),this},st.prototype.has=function(vt){return this.__data__.has(vt)},Ot.prototype.clear=function(){this.__data__=new ct,this.size=0},Ot.prototype.delete=function(vt){var Nt=this.__data__,bn=Nt.delete(vt);return this.size=Nt.size,bn},Ot.prototype.get=function(vt){return this.__data__.get(vt)},Ot.prototype.has=function(vt){return this.__data__.has(vt)},Ot.prototype.set=function(vt,Nt){var bn=this.__data__;if(bn instanceof ct){var Mn=bn.__data__;if(!ce||Mn.length<199)return Mn.push([vt,Nt]),this.size=++bn.size,this;bn=this.__data__=new _t(Mn)}return bn.set(vt,Nt),this.size=bn.size,this};var ht=be?function(vt){return vt==null?[]:(vt=Object(vt),(function(Nt,bn){for(var Mn=-1,tr=Nt==null?0:Nt.length,dn=0,Ke=[];++Mn<tr;){var bt=Nt[Mn];bn(bt,Mn,Nt)&&(Ke[dn++]=bt)}return Ke})(be(vt),(function(Nt){return he.call(vt,Nt)})))}:function(){return[]},rn=at;function Ye(vt,Nt){return!!(Nt=Nt??r)&&(typeof vt=="number"||S.test(vt))&&vt>-1&&vt%1==0&&vt<Nt}function Je(vt){if(vt!=null){try{return ie.call(vt)}catch{}try{return vt+""}catch{}}return""}function lt(vt,Nt){return vt===Nt||vt!=vt&&Nt!=Nt}(oe&&rn(new oe(new ArrayBuffer(1)))!=w||ce&&rn(new ce)!=d||Re&&rn(Re.resolve())!=p||Ee&&rn(new Ee)!=h||Le&&rn(new Le)!=m)&&(rn=function(vt){var Nt=at(vt),bn=Nt==f?vt.constructor:void 0,Mn=bn?Je(bn):"";if(Mn)switch(Mn){case Pe:return w;case Ne:return d;case pt:return p;case Rt:return h;case Bt:return m}return Nt});var Ue=gt((function(){return arguments})())?gt:function(vt){return Nn(vt)&&ee.call(vt,"callee")&&!he.call(vt,"callee")},ze=Array.isArray,ut=De||function(){return!1};function yt(vt){if(!mn(vt))return!1;var Nt=at(vt);return Nt==u||Nt=="[object GeneratorFunction]"||Nt=="[object AsyncFunction]"||Nt=="[object Proxy]"}function jt(vt){return typeof vt=="number"&&vt>-1&&vt%1==0&&vt<=r}function mn(vt){var Nt=typeof vt;return vt!=null&&(Nt=="object"||Nt=="function")}function Nn(vt){return vt!=null&&typeof vt=="object"}var xt=U?(function(vt){return function(Nt){return vt(Nt)}})(U):function(vt){return Nn(vt)&&jt(vt.length)&&!!k[at(vt)]};function sn(vt){return(Nt=vt)!=null&&jt(Nt.length)&&!yt(Nt)?Ae(vt):He(vt);var Nt}e.exports=function(vt,Nt){return nn(vt,Nt)}}));zl("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),zl("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var kde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fSe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gp,N8,L6=function(e){return e&&e.Math==Math&&e},ko=L6(typeof globalThis=="object"&&globalThis)||L6(typeof window=="object"&&window)||L6(typeof self=="object"&&self)||L6(typeof kde=="object"&&kde)||(function(){return this})()||Function("return this")(),Ha=function(e){try{return!!e()}catch{return!0}},A0=!Ha((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Hw=Function.prototype.call,Qa=Hw.bind?Hw.bind(Hw):function(){return Hw.apply(Hw,arguments)},Tde={}.propertyIsEnumerable,_de=Object.getOwnPropertyDescriptor,fIt={f:_de&&!Tde.call({1:2},1)?function(e){var t=_de(this,e);return!!t&&t.enumerable}:Tde},QK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pSe=Function.prototype,sz=pSe.bind,lz=pSe.call,pIt=sz&&sz.bind(lz),Do=sz?function(e){return e&&pIt(lz,e)}:function(e){return e&&function(){return lz.apply(e,arguments)}},hIt=Do({}.toString),gIt=Do("".slice),zh=function(e){return gIt(hIt(e),8,-1)},QN=ko.Object,vIt=Do("".split),hSe=Ha((function(){return!QN("z").propertyIsEnumerable(0)}))?function(e){return zh(e)=="String"?vIt(e,""):QN(e)}:QN,mIt=ko.TypeError,C0=function(e){if(e==null)throw mIt("Can't call method on "+e);return e},I5=function(e){return hSe(C0(e))},qs=function(e){return typeof e=="function"},kd=function(e){return typeof e=="object"?e!==null:qs(e)},yIt=function(e){return qs(e)?e:void 0},O5=function(e,t){return arguments.length<2?yIt(ko[e]):ko[e]&&ko[e][t]},gSe=Do({}.isPrototypeOf),YN=O5("navigator","userAgent")||"",Dde=ko.process,Ide=ko.Deno,Ode=Dde&&Dde.versions||Ide&&Ide.version,Mde=Ode&&Ode.v8;Mde&&(N8=(Gp=Mde.split("."))[0]>0&&Gp[0]<4?1:+(Gp[0]+Gp[1])),!N8&&YN&&(!(Gp=YN.match(/Edge\/(\d+)/))||Gp[1]>=74)&&(Gp=YN.match(/Chrome\/(\d+)/))&&(N8=+Gp[1]);var uz=N8,cz=!!Object.getOwnPropertySymbols&&!Ha((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uz&&uz<41})),YK=cz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bIt=ko.Object,ZN=YK?function(e){return typeof e=="symbol"}:function(e){var t=O5("Symbol");return qs(t)&&gSe(t.prototype,bIt(e))},wIt=ko.String,vSe=function(e){try{return wIt(e)}catch{return"Object"}},AIt=ko.TypeError,mSe=function(e){if(qs(e))return e;throw AIt(vSe(e)+" is not a function")},ZK=function(e,t){var n=e[t];return n==null?void 0:mSe(n)},CIt=ko.TypeError,xIt=Object.defineProperty,XK=function(e,t){try{xIt(ko,e,{value:t,configurable:!0,writable:!0})}catch{ko[e]=t}return t},jh=ko["__core-js_shared__"]||XK("__core-js_shared__",{}),JK=fSe((function(e){(e.exports=function(t,n){return jh[t]||(jh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),SIt=ko.Object,eQ=function(e){return SIt(C0(e))},EIt=Do({}.hasOwnProperty),Hu=Object.hasOwn||function(e,t){return EIt(eQ(e),t)},kIt=0,TIt=Math.random(),_It=Do(1 .toString),ySe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_It(++kIt+TIt,36)},Ww=JK("wks"),hv=ko.Symbol,Pde=hv&&hv.for,DIt=YK?hv:hv&&hv.withoutSetter||ySe,sc=function(e){if(!Hu(Ww,e)||!cz&&typeof Ww[e]!="string"){var t="Symbol."+e;cz&&Hu(hv,e)?Ww[e]=hv[e]:Ww[e]=YK&&Pde?Pde(t):DIt(t)}return Ww[e]},IIt=ko.TypeError,OIt=sc("toPrimitive"),tQ=function(e){var t=(function(n,r){if(!kd(n)||ZN(n))return n;var o,i=ZK(n,OIt);if(i){if(o=Qa(i,n,r),!kd(o)||ZN(o))return o;throw IIt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(qs(l=a.toString)&&!kd(u=Qa(l,a))||qs(l=a.valueOf)&&!kd(u=Qa(l,a)))return u;throw CIt("Can't convert object to primitive value")})(n)})(e,"string");return ZN(t)?t:t+""},dz=ko.document,MIt=kd(dz)&&kd(dz.createElement),nQ=function(e){return MIt?dz.createElement(e):{}},bSe=!A0&&!Ha((function(){return Object.defineProperty(nQ("div"),"a",{get:function(){return 7}}).a!=7})),Nde=Object.getOwnPropertyDescriptor,wSe={f:A0?Nde:function(e,t){if(e=I5(e),t=tQ(t),bSe)try{return Nde(e,t)}catch{}if(Hu(e,t))return QK(!Qa(fIt.f,e,t),e[t])}},PIt=ko.String,NIt=ko.TypeError,Wu=function(e){if(kd(e))return e;throw NIt(PIt(e)+" is not an object")},RIt=ko.TypeError,Rde=Object.defineProperty,M5={f:A0?Rde:function(e,t,n){if(Wu(e),t=tQ(t),Wu(n),bSe)try{return Rde(e,t,n)}catch{}if("get"in n||"set"in n)throw RIt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hb=A0?function(e,t,n){return M5.f(e,t,QK(1,n))}:function(e,t,n){return e[t]=n,e},BIt=Do(Function.toString);qs(jh.inspectSource)||(jh.inspectSource=function(e){return BIt(e)});var fz,_T,pz,rQ=jh.inspectSource,Bde=ko.WeakMap,LIt=qs(Bde)&&/native code/.test(rQ(Bde)),Lde=JK("keys"),ASe=function(e){return Lde[e]||(Lde[e]=ySe(e))},oQ={},Fde=ko.TypeError,FIt=ko.WeakMap;if(LIt||jh.state){var ag=jh.state||(jh.state=new FIt),UIt=Do(ag.get),Ude=Do(ag.has),$It=Do(ag.set);fz=function(e,t){if(Ude(ag,e))throw new Fde("Object already initialized");return t.facade=e,$It(ag,e,t),t},_T=function(e){return UIt(ag,e)||{}},pz=function(e){return Ude(ag,e)}}else{var i1=ASe("state");oQ[i1]=!0,fz=function(e,t){if(Hu(e,i1))throw new Fde("Object already initialized");return t.facade=e,hb(e,i1,t),t},_T=function(e){return Hu(e,i1)?e[i1]:{}},pz=function(e){return Hu(e,i1)}}var hz={get:_T,enforce:function(e){return pz(e)?_T(e):fz(e,{})}},CSe=Function.prototype,zIt=A0&&Object.getOwnPropertyDescriptor,$de=Hu(CSe,"name"),iQ={PROPER:$de&&(function(){}).name==="something",CONFIGURABLE:$de&&(!A0||A0&&zIt(CSe,"name").configurable)},jA=fSe((function(e){var t=iQ.CONFIGURABLE,n=hz.get,r=hz.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;qs(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Hu(s,"name")||t&&s.name!==p)&&hb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==ko?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:hb(i,a,s)):c?i[a]=s:XK(a,s)})(Function.prototype,"toString",(function(){return qs(this)&&n(this).source||rQ(this)}))})),jIt=Math.ceil,HIt=Math.floor,z7=function(e){var t=+e;return t!=t||t===0?0:(t>0?HIt:jIt)(t)},WIt=Math.max,VIt=Math.min,HA=function(e,t){var n=z7(e);return n<0?WIt(n+t,0):VIt(n,t)},qIt=Math.min,aQ=function(e){return e>0?qIt(z7(e),9007199254740991):0},j7=function(e){return aQ(e.length)},GIt=function(e){return function(t,n,r){var o,i=I5(t),a=j7(i),s=HA(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},KIt=GIt(!1),zde=Do([].push),xSe=function(e,t){var n,r=I5(e),o=0,i=[];for(n in r)!Hu(oQ,n)&&Hu(r,n)&&zde(i,n);for(;t.length>o;)Hu(r,n=t[o++])&&(~KIt(i,n)||zde(i,n));return i},DT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QIt=DT.concat("length","prototype"),YIt={f:Object.getOwnPropertyNames||function(e){return xSe(e,QIt)}},ZIt={f:Object.getOwnPropertySymbols},XIt=Do([].concat),JIt=O5("Reflect","ownKeys")||function(e){var t=YIt.f(Wu(e)),n=ZIt.f;return n?XIt(t,n(e)):t},eOt=function(e,t){for(var n=JIt(t),r=M5.f,o=wSe.f,i=0;i<n.length;i++){var a=n[i];Hu(e,a)||r(e,a,o(t,a))}},tOt=/#|\.prototype\./,P5=function(e,t){var n=rOt[nOt(e)];return n==iOt||n!=oOt&&(qs(t)?Ha(t):!!t)},nOt=P5.normalize=function(e){return String(e).replace(tOt,".").toLowerCase()},rOt=P5.data={},oOt=P5.NATIVE="N",iOt=P5.POLYFILL="P",aOt=P5,sOt=wSe.f,x0=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?ko:u?ko[s]||XK(s,{}):(ko[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sOt(n,r))&&a.value:n[r],!aOt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;eOt(i,o)}(e.sham||o&&o.sham)&&hb(i,"sham",!0),jA(n,r,i,e)}},SSe={};SSe[sc("toStringTag")]="z";var sQ=String(SSe)==="[object z]",lOt=sc("toStringTag"),uOt=ko.Object,cOt=zh((function(){return arguments})())=="Arguments",lQ=sQ?zh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=uOt(e),lOt))=="string"?n:cOt?zh(t):(r=zh(t))=="Object"&&qs(t.callee)?"Arguments":r},dOt=ko.String,Bs=function(e){if(lQ(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return dOt(e)},fOt=/"/g,pOt=Do("".replace);x0({target:"String",proto:!0,forced:Ha((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Bs(C0(this)),r="<a",(r+=' name="'+pOt(Bs(t),fOt,""")+'"')+">"+n+"</a>";var t,n,r}});var F6,ESe=function(){var e=Wu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uQ=ko.RegExp,gz=Ha((function(){var e=uQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));gz||Ha((function(){return!uQ("a","y").sticky}));var kSe={BROKEN_CARET:gz||Ha((function(){var e=uQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:gz},hOt=Object.keys||function(e){return xSe(e,DT)},gOt=A0?Object.defineProperties:function(e,t){Wu(e);for(var n,r=I5(t),o=hOt(t),i=o.length,a=0;i>a;)M5.f(e,n=o[a++],r[n]);return e},vOt=O5("document","documentElement"),TSe=ASe("IE_PROTO"),XN=function(){},_Se=function(e){return"<script>"+e+"<\/script>"},jde=function(e){e.write(_Se("")),e.close();var t=e.parentWindow.Object;return e=null,t},R8=function(){try{F6=new ActiveXObject("htmlfile")}catch{}var e,t;R8=typeof document<"u"?document.domain&&F6?jde(F6):((t=nQ("iframe")).style.display="none",vOt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(_Se("document.F=Object")),e.close(),e.F):jde(F6);for(var n=DT.length;n--;)delete R8.prototype[DT[n]];return R8()};oQ[TSe]=!0;var Hde,JN,DSe=Object.create||function(e,t){var n;return e!==null?(XN.prototype=Wu(e),n=new XN,XN.prototype=null,n[TSe]=e):n=R8(),t===void 0?n:gOt(n,t)},mOt=ko.RegExp,yOt=Ha((function(){var e=mOt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),bOt=ko.RegExp,wOt=Ha((function(){var e=bOt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),AOt=hz.get,COt=JK("native-string-replace",String.prototype.replace),IT=RegExp.prototype.exec,vz=IT,xOt=Do("".charAt),SOt=Do("".indexOf),EOt=Do("".replace),eR=Do("".slice),tR=(JN=/b*/g,Qa(IT,Hde=/a/,"a"),Qa(IT,JN,"a"),Hde.lastIndex!==0||JN.lastIndex!==0),Wde=kSe.BROKEN_CARET,nR=/()??/.exec("")[1]!==void 0;(tR||nR||Wde||yOt||wOt)&&(vz=function(e){var t,n,r,o,i,a,s,l=this,u=AOt(l),d=Bs(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Qa(vz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Wde&&l.sticky,v=Qa(ESe,l),h=l.source,g=0,y=d;if(p&&(v=EOt(v,"y",""),SOt(v,"g")===-1&&(v+="g"),y=eR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&xOt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),nR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),tR&&(r=l.lastIndex),o=Qa(IT,p?n:l,y),p?o?(o.input=eR(o.input,g),o[0]=eR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:tR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),nR&&o&&o.length>1&&Qa(COt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=DSe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var WA=vz;x0({target:"RegExp",proto:!0,forced:/./.exec!==WA},{exec:WA});var OT=Array.isArray||function(e){return zh(e)=="Array"},ISe=function(){},kOt=[],OSe=O5("Reflect","construct"),cQ=/^\s*(?:class|function)\b/,TOt=Do(cQ.exec),_Ot=!cQ.exec(ISe),Vw=function(e){if(!qs(e))return!1;try{return OSe(ISe,kOt,e),!0}catch{return!1}},dQ=!OSe||Ha((function(){var e;return Vw(Vw.call)||!Vw(Object)||!Vw((function(){e=!0}))||e}))?function(e){if(!qs(e))return!1;switch(lQ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _Ot||!!TOt(cQ,rQ(e))}:Vw,MSe=function(e,t,n){var r=tQ(t);r in e?M5.f(e,r,QK(0,n)):e[r]=n},DOt=sc("species"),fQ=function(e){return uz>=51||!Ha((function(){var t=[];return(t.constructor={})[DOt]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},IOt=Do([].slice),OOt=fQ("slice"),MOt=sc("species"),rR=ko.Array,POt=Math.max;function Hc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Vde(e){var t=e.selection;if(t==null)return!1;var n=Hc(Xe.nodes(e,{match:function(i){return Et.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Hc(n,2)[1],o=Xe.start(e,r);if(mo.equals(t.anchor,o))return!0}return!1}function qde(e,t){var n,r,o=Xe.nodes(e,{at:t,match:function(l){return Et.getNodeType(l)==="table"}}),i=!1;try{for(var a=(function(l){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&l[u],c=0;if(d)return d.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&c>=l.length&&(l=void 0),{value:l&&l[c++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),s=a.next();!s.done;s=a.next())s.value,i=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}x0({target:"Array",proto:!0,forced:!OOt},{slice:function(e,t){var n,r,o,i=I5(this),a=j7(i),s=HA(e,a),l=HA(t===void 0?a:t,a);if(OT(i)&&(n=i.constructor,(dQ(n)&&(n===rR||OT(n.prototype))||kd(n)&&(n=n[MOt])===null)&&(n=void 0),n===rR||n===void 0))return IOt(i,s,l);for(r=new(n===void 0?rR:n)(POt(l-s,0)),o=0;s<l;s++,o++)s in i&&MSe(r,o,i[s]);return r.length=o,r}});var Gde=Do(Do.bind),NOt=sc("species"),Kde=ko.Array,ROt=function(e,t){return new((function(n){var r;return OT(n)&&(r=n.constructor,(dQ(r)&&(r===Kde||OT(r.prototype))||kd(r)&&(r=r[NOt])===null)&&(r=void 0)),r===void 0?Kde:r})(e))(t===0?0:t)},Qde=Do([].push),U6=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=eQ(l),h=hSe(v),g=(function(A,S){return mSe(A),S===void 0?A:Gde?Gde(A,S):function(){return A.apply(S,arguments)}})(u,d),y=j7(h),m=0,b=c||ROt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Qde(w,f)}else switch(e){case 4:return!1;case 7:Qde(w,f)}return i?-1:r||o?o:w}},H7={forEach:U6(0),map:U6(1),filter:U6(2),find:U6(5)},BOt=H7.map;x0({target:"Array",proto:!0,forced:!fQ("map")},{map:function(e){return BOt(this,e,arguments.length>1?arguments[1]:void 0)}});var LOt=sQ?{}.toString:function(){return"[object "+lQ(this)+"]"};function W7(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function PSe(e){return W7(e).every((function(t){return!!t.isHeader}))}sQ||jA(Object.prototype,"toString",LOt,{unsafe:!0});var FOt=iQ.PROPER,mz=RegExp.prototype,NSe=mz.toString,UOt=Do(ESe),$Ot=Ha((function(){return NSe.call({source:"a",flags:"b"})!="/a/b"})),zOt=FOt&&NSe.name!="toString";($Ot||zOt)&&jA(RegExp.prototype,"toString",(function(){var e=Wu(this),t=Bs(e.source),n=e.flags;return"/"+t+"/"+Bs(n===void 0&&gSe(mz,e)&&!("flags"in mz)?UOt(e):n)}),{unsafe:!0});var yz=sc("unscopables"),bz=Array.prototype;bz[yz]==null&&M5.f(bz,yz,{configurable:!0,value:DSe(null)});var jOt=H7.find,Yde=!0;"find"in[]&&Array(1).find((function(){Yde=!1})),x0({target:"Array",proto:!0,forced:Yde},{find:function(e){return jOt(this,e,arguments.length>1?arguments[1]:void 0)}}),bz[yz].find=!0;var pQ=Function.prototype,Zde=pQ.apply,HOt=pQ.bind,Xde=pQ.call,RSe=typeof Reflect=="object"&&Reflect.apply||(HOt?Xde.bind(Zde):function(){return Xde.apply(Zde,arguments)}),WOt=sc("species"),oR=RegExp.prototype,BSe=function(e,t,n,r){var o=sc(e),i=!Ha((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Ha((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[WOt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Do(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Do(u),h=d.exec;return h===WA||h===oR.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));jA(String.prototype,e,l[0]),jA(oR,o,l[1])}r&&hb(oR[o],"sham",!0)},VOt=sc("match"),qOt=ko.TypeError,GOt=sc("species"),KOt=Do("".charAt),Jde=Do("".charCodeAt),QOt=Do("".slice),YOt=function(e){return function(t,n){var r,o,i=Bs(C0(t)),a=z7(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Jde(i,a))<55296||r>56319||a+1===s||(o=Jde(i,a+1))<56320||o>57343?e?KOt(i,a):r:e?QOt(i,a,a+2):o-56320+(r-55296<<10)+65536}},ZOt=YOt(!0),LSe=function(e,t,n){return t+(n?ZOt(e,t).length:1)},XOt=ko.Array,JOt=Math.max,efe=function(e,t,n){for(var r=j7(e),o=HA(t,r),i=HA(n===void 0?r:n,r),a=XOt(JOt(i-o,0)),s=0;o<i;o++,s++)MSe(a,s,e[o]);return a.length=s,a},eMt=ko.TypeError,wz=function(e,t){var n=e.exec;if(qs(n)){var r=Qa(n,e,t);return r!==null&&Wu(r),r}if(zh(e)==="RegExp")return Qa(WA,e,t);throw eMt("RegExp#exec called on incompatible receiver")},a1=kSe.UNSUPPORTED_Y,tMt=Math.min,FSe=[].push,nMt=Do(/./.exec),s1=Do(FSe),qw=Do("".slice);BSe("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,s,l=Bs(C0(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[l];if(!kd(a=o)||!((s=a[VOt])!==void 0?s:zh(a)=="RegExp"))return Qa(t,l,o,u);for(var d,c,f,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,g=new RegExp(o.source,v+"g");(d=Qa(WA,g,l))&&!((c=g.lastIndex)>h&&(s1(p,qw(l,h,d.index)),d.length>1&&d.index<l.length&&RSe(FSe,p,efe(d,1)),f=d[0].length,h=c,p.length>=u));)g.lastIndex===d.index&&g.lastIndex++;return h===l.length?!f&&nMt(g,"")||s1(p,""):s1(p,qw(l,h)),p.length>u?efe(p,0,u):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Qa(t,this,o,i)}:t,[function(o,i){var a=C0(this),s=o==null?void 0:ZK(o,e);return s?Qa(s,o,a,i):Qa(r,Bs(a),o,i)},function(o,i){var a=Wu(this),s=Bs(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=(function(w,A){var S,k=Wu(w).constructor;return k===void 0||(S=Wu(k)[GOt])==null?A:(function(M){if(dQ(M))return M;throw qOt(vSe(M)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a1?"g":"y"),f=new u(a1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return wz(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=a1?0:h;var y,m=wz(f,a1?qw(s,h):s);if(m===null||(y=tMt(aQ(f.lastIndex+(a1?h:0)),s.length))===v)h=LSe(s,h,d);else{if(s1(g,qw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(s1(g,m[b]),g.length===p)return g;h=v=y}}return s1(g,qw(s,v)),g}]}),!!Ha((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),a1);var Az=`
- \v\f\r \u2028\u2029\uFEFF`,tfe=Do("".replace),MT="["+Az+"]",rMt=RegExp("^"+MT+MT+"*"),oMt=RegExp(MT+MT+"*$"),iMt=function(e){return function(t){var n=Bs(C0(t));return 1&e&&(n=tfe(n,rMt,"")),2&e&&(n=tfe(n,oMt,"")),n}},aMt={trim:iMt(3)},sMt=iQ.PROPER,lMt=aMt.trim;function USe(e){return e.length?e[0].tagName.toLowerCase():""}x0({target:"String",proto:!0,forced:(function(e){return Ha((function(){return!!Az[e]()||"
"[e]()!=="
"||sMt&&Az[e].name!==e}))})("trim")},{trim:function(){return lMt(this)}}),x0({global:!0},{globalThis:ko}),ec&&(Mt.fn.append=ec),Hd&&(Mt.fn.on=Hd),g0&&(Mt.fn.focus=g0),Ju&&(Mt.fn.attr=Ju),jd&&(Mt.fn.val=jd),h0&&(Mt.fn.html=h0),Xy&&(Mt.fn.dataset=Xy),Qy&&(Mt.fn.addClass=Qy),Yy&&(Mt.fn.removeClass=Yy),nb&&(Mt.fn.children=nb),Rk&&(Mt.fn.each=Rk),tb&&(Mt.fn.find=tb);var VA=!1,$Se=0,zSe=0,qA=null,GA=null,g3=Mt("body");function jSe(e){VA=!1,GA=null,qA=null,g3.off("mousemove",HSe),g3.off("mouseup",jSe)}g3.on("mousedown",(function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),VA=!0;var n=e.clientX;$Se=n;var r=t.getBoundingClientRect().width;zSe=r,g3.on("mousemove",HSe),g3.on("mouseup",jSe)}}));var HSe=zv((function(e){if(VA&&GA!=null&&qA!=null){e.preventDefault();var t=e.clientX,n=zSe+(t-$Se);(n=Math.floor(100*n)/100)<30&&(n=30),Zt.setNodes(GA,{width:n.toString()},{at:qA})}}),100),uMt={type:"table",renderElem:function(e,t,n){var r=(function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||pn.isCollapsed(u))return!0;var d=u.anchor,c=u.focus,f=Et.findPath(s,l),p=Xe.start(s,f),v=Xe.end(s,f),h=mo.compare(d,v)<=0&&mo.compare(d,p)>=0,g=mo.compare(c,v)<=0&&mo.compare(c,p)>=0;return!!(h&&g&&Ht.equals(d.path.slice(0,3),c.path.slice(0,3)))})(n,e),o=e.width,i=o===void 0?"auto":o,a=Xr("div",{className:"table-container","data-selected":Et.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=Et.findPath(n,e),u=Xe.start(n,l),d=n.selection;d!=null?d.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},Xr("table",{width:i,contentEditable:r},Xr("colgroup",null,W7(e).map((function(s){var l=s.width;return Xr("col",{width:l===void 0?"auto":l})}))),Xr("tbody",null,t)));return a}},cMt={type:"table-row",renderElem:function(e,t,n){return Xr("tr",null,t)}},dMt={type:"table-cell",renderElem:function(e,t,n){var r=(function(f,p){var v=Et.getParentNode(f,p);if(v==null)return!1;var h=Et.getParentNode(f,v);return h!=null&&W7(h).some((function(g){return g===p}))})(n,e),o=e,i=o.colSpan,a=i===void 0?1:i,s=o.rowSpan,l=s===void 0?1:s,u=o.isHeader,d=u!==void 0&&u;if(!r)return Xr("td",{colSpan:a,rowSpan:l},t);var c=Xr(d?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:zv((function(f){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,g=v.width,y=v.top,m=v.height,b=f.clientX,w=f.clientY;VA||(b>h+g-5&&b<h+g&&w>y&&w<y+m?(p.style.cursor="col-resize",GA=n,qA=Et.findPath(n,e)):VA||(p.style.cursor="auto",GA=null,qA=null))}}),100)}},t);return c}},fMt={selector:"table",preParseHtml:function(e){var t=Mt(e);if(USe(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},pMt=H7.filter;x0({target:"Array",proto:!0,forced:!fQ("filter")},{filter:function(e){return pMt(this,e,arguments.length>1?arguments[1]:void 0)}});var hMt=Math.floor,iR=Do("".charAt),gMt=Do("".replace),aR=Do("".slice),vMt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mMt=/\$([$&'`]|\d{1,2})/g,yMt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=mMt;return o!==void 0&&(o=eQ(o),l=vMt),gMt(i,l,(function(u,d){var c;switch(iR(d,0)){case"$":return"$";case"&":return e;case"`":return aR(t,0,n);case"'":return aR(t,a);case"<":c=o[aR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=hMt(f/10);return p===0?u:p<=s?r[p-1]===void 0?iR(d,1):r[p-1]+iR(d,1):u}c=r[f-1]}return c===void 0?"":c}))},Cz=sc("replace"),bMt=Math.max,wMt=Math.min,AMt=Do([].concat),sR=Do([].push),nfe=Do("".indexOf),rfe=Do("".slice),CMt="a".replace(/./,"$0")==="$0",ofe=!!/./[Cz]&&/./[Cz]("a","$0")==="";BSe("replace",(function(e,t,n){var r=ofe?"$":"$0";return[function(o,i){var a=C0(this),s=o==null?void 0:ZK(o,Cz);return s?Qa(s,o,a,i):Qa(t,Bs(a),o,i)},function(o,i){var a=Wu(this),s=Bs(o);if(typeof i=="string"&&nfe(i,r)===-1&&nfe(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=qs(i);u||(i=Bs(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=wz(a,s);if(p===null||(sR(f,p),!d))break;Bs(p[0])===""&&(a.lastIndex=LSe(s,aQ(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Bs((p=f[y])[0]),b=bMt(wMt(z7(p.index),s.length),0),w=[],A=1;A<p.length;A++)sR(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=AMt([m],w,b,s);S!==void 0&&sR(k,S);var M=Bs(RSe(i,void 0,k))}else M=yMt(m,s,b,w,S,i);b>=g&&(h+=rfe(s,g,b)+M,g=b+m.length)}return h+rfe(s,g)}]}),!!Ha((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!CMt||ofe);var xMt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e);(t=t.filter((function(s){return!!ir.isText(s)||!!n.isInline(s)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:USe(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},SMt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(r){return Et.getNodeType(r)==="table-cell"}))}}},EMt={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mt(e),o="auto";return(function(i,a){for(var s="",l=(i.attr("style")||"").split(";"),u=l.length,d=0;d<u;d++){var c=l[d];if(c){var f=c.split(":");f[0].trim()==="width"&&(s=f[1].trim())}}return s})(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter((function(i){return Et.getNodeType(i)==="table-row"}))}}},kMt=(function(){function e(){this.title=Yn("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!Et.getSelectedElems(t).some((function(r){var o=Et.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=Mt('<div class="w-e-panel-content-table"></div>'),o=Mt("<span>0 × 0</span>"),i=Mt("<table></table>"),a=0;a<10;a++){for(var s=Mt("<tr></tr>"),l=0;l<10;l++){var u=Mt("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",a.toString()),s.append(u),u.on("mouseenter",(function(d){var c=d.target;if(c!=null){var f=Mt(c).dataset(),p=f.x,v=f.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each((function(h){Mt(h).children().each((function(g){var y=Mt(g),m=y.dataset(),b=m.x,w=m.y;b<=p&&w<=v?y.addClass("active"):y.removeClass("active")}))}))}})),u.on("click",(function(d){d.preventDefault();var c=d.target;if(c!=null){var f=Mt(c).dataset(),p=f.x,v=f.y;n.insertTable(t,v+1,p+1)}}))}i.append(s)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){Et.isSelectedEmptyParagraph(t)&&Zt.removeNodes(t,{mode:"highest"});var a=(function(s,l){for(var u=[],d=0;d<s;d++){for(var c=[],f=0;f<l;f++){var p={type:"table-cell",children:[{text:""}]};d===0&&(p.isHeader=!0),c.push(p)}u.push({type:"table-row",children:c})}return{type:"table",width:"auto",children:u}})(o,i);Zt.insertNodes(t,a,{mode:"highest"})}},e})(),TMt=(function(){function e(){this.title=Yn("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Et.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Zt.removeNodes(t,{mode:"highest"})},e})(),_Mt=(function(){function e(){this.title=Yn("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Hc(Xe.nodes(t,{match:function(p){return Et.checkNodeType(p,"table-cell")},universal:!0}),1),o=Hc(r[0],2),i=o[0],a=o[1],s=Et.getParentNode(t,i),l=s?.children.length||0;if(l!==0){for(var u={type:"table-row",children:[]},d=0;d<l;d++)u.children.push({type:"table-cell",children:[{text:""}]});var c=Ht.parent(a),f=Ht.next(c);Zt.insertNodes(t,u,{at:f})}}},e})(),DMt=(function(){function e(){this.title=Yn("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Hc(Xe.nodes(t,{match:function(l){return Et.checkNodeType(l,"table-row")},universal:!0}),1),o=Hc(r[0],2),i=o[0],a=o[1],s=Et.getParentNode(t,i);(s?.children.length||0)<=1?Zt.removeNodes(t,{mode:"highest"}):Zt.removeNodes(t,{at:a})}},e})(),ife={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lR=nQ("span").classList,afe=lR&&lR.constructor&&lR.constructor.prototype,IMt=afe===Object.prototype?void 0:afe,OMt=H7.forEach,MMt=(function(e,t){var n=[].forEach;return!!n&&Ha((function(){n.call(null,(function(){throw 1}),1)}))})(),uR=MMt?[].forEach:function(e){return OMt(this,e,arguments.length>1?arguments[1]:void 0)},WSe=function(e){if(e&&e.forEach!==uR)try{hb(e,"forEach",uR)}catch{e.forEach=uR}};for(var cR in ife)ife[cR]&&WSe(ko[cR]&&ko[cR].prototype);WSe(IMt);var PMt=(function(){function e(){this.title=Yn("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Hc(Xe.nodes(t,{match:function(u){return Et.checkNodeType(u,"table-cell")},universal:!0}),1),o=Hc(r[0],2),i=o[0],a=o[1],s=Et.getParentNode(t,i);if(s!=null){var l=Et.getParentNode(t,s);l!=null&&(l.children||[]).forEach((function(u,d){kr.isElement(u)&&(u.children||[]).forEach((function(c){var f=Et.findPath(t,c);if(f.length===a.length&&dSe(f.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};d===0&&PSe(l)&&(p.isHeader=!0),Zt.insertNodes(t,p,{at:f})}}))}))}}},e})(),NMt=(function(){function e(){this.title=Yn("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Hc(Xe.nodes(t,{match:function(d){return Et.checkNodeType(d,"table-cell")},universal:!0}),1),o=Hc(r[0],2),i=o[0],a=o[1],s=Et.getParentNode(t,i),l=s?.children.length||0;if(!s||l<=1)Zt.removeNodes(t,{mode:"highest"});else{var u=Et.getParentNode(t,s);u!=null&&(u.children||[]).forEach((function(d){kr.isElement(d)&&(d.children||[]).forEach((function(c){var f=Et.findPath(t,c);f.length===a.length&&dSe(f.slice(-1),a.slice(-1))&&Zt.removeNodes(t,{at:f})}))}))}}},e})(),RMt=(function(){function e(){this.title=Yn("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=Et.getSelectedNodeByType(t,"table");return n!=null&&PSe(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=Et.getSelectedNodeByType(t,"table");o!=null&&W7(o).forEach((function(i){return Zt.setNodes(t,{isHeader:r},{at:Et.findPath(t,i)})}))}},e})(),BMt=(function(){function e(){this.title=Yn("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=Et.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||Et.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};Zt.setNodes(t,r,{mode:"highest"})}},e})(),LMt={renderElems:[uMt,cMt,dMt],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,s=n.isHeader,l=s!==void 0&&s,u=n.width,d=l?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(u===void 0?"auto":u)+'">'+t+"</"+d+">"}}],preParseHtml:[fMt],parseElemsHtml:[xMt,SMt,EMt],menus:[{key:"insertTable",factory:function(){return new kMt}},{key:"deleteTable",factory:function(){return new TMt}},{key:"insertTableRow",factory:function(){return new _Mt}},{key:"deleteTableRow",factory:function(){return new DMt}},{key:"insertTableCol",factory:function(){return new PMt}},{key:"deleteTableCol",factory:function(){return new NMt}},{key:"tableHeader",factory:function(){return new RMt}},{key:"tableFullWidth",factory:function(){return new BMt}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,s=e.selectAll,l=e;return l.insertBreak=function(){Et.getSelectedNodeByType(l,"table")==null?t():l.insertText(`
- `)},l.deleteBackward=function(u){if(!Vde(l)){var d=l.selection;if(d){var c=Xe.before(l,d);if(c){var f=qde(l,c),p=qde(l,d);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(Et.getSelectedNodeByType(l,"table")){var d=Xe.above(e);Et.checkNodeType(d[0],"table-cell")&&Zt.select(e,d[1]);var c=Xe.next(e);if(c)c[0]&&c[0].text&&(c=(u=Xe.above(e,{at:c[1]}))!==null&&u!==void 0?u:c),Zt.select(e,c[1]);else{var f=l.children||[],p=f.length;if(Et.checkNodeType(f[p-1],"table")){var v=Et.genEmptyParagraph();Zt.insertNodes(l,v,{at:[p]}),l.handleTab()}}}else a()},l.deleteForward=function(u){Vde(l)||r(u)},l.normalizeNode=function(u){var d=Hc(u,2),c=d[0],f=d[1];if(Et.getNodeType(c)!=="table")return o([c,f]);if(Et.isLastNode(l,c)){var p=Et.genEmptyParagraph();Zt.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(Et.getSelectedNodeByType(l,"table")!=null){var d=u.getData("text/plain");d===`
- `||/<img[^>]+>/.test(u.getData("text/html"))?i(u):Xe.insertText(l,d)}else i(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var d=Et.getSelectedNodeByType(l,"table-cell");if(d!=null){var c=u.anchor,f=u.focus;if(Ht.equals(c.path.slice(0,3),f.path.slice(0,3)))if(Qn.string(d).length!==0){var p=Et.findPath(l,d),v={anchor:Xe.start(l,p),focus:Xe.end(l,p)};l.select(v)}else s();else s()}else s()}else s()},l}};zl("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),zl("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var PT=function(){return PT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PT.apply(this,arguments)};function V7(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function q7(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function gv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function FMt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,s){(function(l,u,d,c){Promise.resolve(c).then((function(f){l({value:f,done:d})}),u)})(a,s,(i=e[o](i)).done,i.value)}))}}}var sfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kp,B8,$6=function(e){return e&&e.Math==Math&&e},Jn=$6(typeof globalThis=="object"&&globalThis)||$6(typeof window=="object"&&window)||$6(typeof self=="object"&&self)||$6(typeof sfe=="object"&&sfe)||(function(){return this})()||Function("return this")(),Ii=function(e){try{return!!e()}catch{return!0}},Vd=!Ii((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Gw=Function.prototype.call,Ti=Gw.bind?Gw.bind(Gw):function(){return Gw.apply(Gw,arguments)},lfe={}.propertyIsEnumerable,ufe=Object.getOwnPropertyDescriptor,UMt={f:ufe&&!lfe.call({1:2},1)?function(e){var t=ufe(this,e);return!!t&&t.enumerable}:lfe},G7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},VSe=Function.prototype,xz=VSe.bind,Sz=VSe.call,$Mt=xz&&xz.bind(Sz),so=xz?function(e){return e&&$Mt(Sz,e)}:function(e){return e&&function(){return Sz.apply(e,arguments)}},zMt=so({}.toString),jMt=so("".slice),Nd=function(e){return jMt(zMt(e),8,-1)},dR=Jn.Object,HMt=so("".split),gQ=Ii((function(){return!dR("z").propertyIsEnumerable(0)}))?function(e){return Nd(e)=="String"?HMt(e,""):dR(e)}:dR,WMt=Jn.TypeError,N5=function(e){if(e==null)throw WMt("Can't call method on "+e);return e},U0=function(e){return gQ(N5(e))},gi=function(e){return typeof e=="function"},Hi=function(e){return typeof e=="object"?e!==null:gi(e)},VMt=function(e){return gi(e)?e:void 0},Zv=function(e,t){return arguments.length<2?VMt(Jn[e]):Jn[e]&&Jn[e][t]},KA=so({}.isPrototypeOf),hy=Zv("navigator","userAgent")||"",cfe=Jn.process,dfe=Jn.Deno,ffe=cfe&&cfe.versions||dfe&&dfe.version,pfe=ffe&&ffe.v8;pfe&&(B8=(Kp=pfe.split("."))[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1])),!B8&&hy&&(!(Kp=hy.match(/Edge\/(\d+)/))||Kp[1]>=74)&&(Kp=hy.match(/Chrome\/(\d+)/))&&(B8=+Kp[1]);var QA=B8,Ez=!!Object.getOwnPropertySymbols&&!Ii((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&QA&&QA<41})),vQ=Ez&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qMt=Jn.Object,fR=vQ?function(e){return typeof e=="symbol"}:function(e){var t=Zv("Symbol");return gi(t)&&KA(t.prototype,qMt(e))},GMt=Jn.String,NT=function(e){try{return GMt(e)}catch{return"Object"}},KMt=Jn.TypeError,S0=function(e){if(gi(e))return e;throw KMt(NT(e)+" is not a function")},YA=function(e,t){var n=e[t];return n==null?void 0:S0(n)},QMt=Jn.TypeError,YMt=Object.defineProperty,mQ=function(e,t){try{YMt(Jn,e,{value:t,configurable:!0,writable:!0})}catch{Jn[e]=t}return t},Hh=Jn["__core-js_shared__"]||mQ("__core-js_shared__",{}),yQ=hQ((function(e){(e.exports=function(t,n){return Hh[t]||(Hh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ZMt=Jn.Object,K7=function(e){return ZMt(N5(e))},XMt=so({}.hasOwnProperty),za=Object.hasOwn||function(e,t){return XMt(K7(e),t)},JMt=0,ePt=Math.random(),tPt=so(1 .toString),bQ=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tPt(++JMt+ePt,36)},Kw=yQ("wks"),vv=Jn.Symbol,hfe=vv&&vv.for,nPt=vQ?vv:vv&&vv.withoutSetter||bQ,Oa=function(e){if(!za(Kw,e)||!Ez&&typeof Kw[e]!="string"){var t="Symbol."+e;Ez&&za(vv,e)?Kw[e]=vv[e]:Kw[e]=vQ&&hfe?hfe(t):nPt(t)}return Kw[e]},rPt=Jn.TypeError,oPt=Oa("toPrimitive"),wQ=function(e){var t=(function(n,r){if(!Hi(n)||fR(n))return n;var o,i=YA(n,oPt);if(i){if(o=Ti(i,n,r),!Hi(o)||fR(o))return o;throw rPt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(gi(l=a.toString)&&!Hi(u=Ti(l,a))||gi(l=a.valueOf)&&!Hi(u=Ti(l,a)))return u;throw QMt("Can't convert object to primitive value")})(n)})(e,"string");return fR(t)?t:t+""},kz=Jn.document,iPt=Hi(kz)&&Hi(kz.createElement),ZA=function(e){return iPt?kz.createElement(e):{}},qSe=!Vd&&!Ii((function(){return Object.defineProperty(ZA("div"),"a",{get:function(){return 7}}).a!=7})),gfe=Object.getOwnPropertyDescriptor,AQ={f:Vd?gfe:function(e,t){if(e=U0(e),t=wQ(t),qSe)try{return gfe(e,t)}catch{}if(za(e,t))return G7(!Ti(UMt.f,e,t),e[t])}},aPt=Jn.String,sPt=Jn.TypeError,gs=function(e){if(Hi(e))return e;throw sPt(aPt(e)+" is not an object")},lPt=Jn.TypeError,vfe=Object.defineProperty,wp={f:Vd?vfe:function(e,t,n){if(gs(e),t=wQ(t),gs(n),qSe)try{return vfe(e,t,n)}catch{}if("get"in n||"set"in n)throw lPt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wh=Vd?function(e,t,n){return wp.f(e,t,G7(1,n))}:function(e,t,n){return e[t]=n,e},uPt=so(Function.toString);gi(Hh.inspectSource)||(Hh.inspectSource=function(e){return uPt(e)});var RT,v3,BT,Q7=Hh.inspectSource,mfe=Jn.WeakMap,GSe=gi(mfe)&&/native code/.test(Q7(mfe)),yfe=yQ("keys"),CQ=function(e){return yfe[e]||(yfe[e]=bQ(e))},Y7={},Tz=Jn.TypeError,cPt=Jn.WeakMap;if(GSe||Hh.state){var sg=Hh.state||(Hh.state=new cPt),dPt=so(sg.get),bfe=so(sg.has),fPt=so(sg.set);RT=function(e,t){if(bfe(sg,e))throw new Tz("Object already initialized");return t.facade=e,fPt(sg,e,t),t},v3=function(e){return dPt(sg,e)||{}},BT=function(e){return bfe(sg,e)}}else{var l1=CQ("state");Y7[l1]=!0,RT=function(e,t){if(za(e,l1))throw new Tz("Object already initialized");return t.facade=e,Wh(e,l1,t),t},v3=function(e){return za(e,l1)?e[l1]:{}},BT=function(e){return za(e,l1)}}var gu={set:RT,get:v3,has:BT,enforce:function(e){return BT(e)?v3(e):RT(e,{})},getterFor:function(e){return function(t){var n;if(!Hi(t)||(n=v3(t)).type!==e)throw Tz("Incompatible receiver, "+e+" required");return n}}},KSe=Function.prototype,pPt=Vd&&Object.getOwnPropertyDescriptor,pR=za(KSe,"name"),c2={EXISTS:pR,PROPER:pR&&(function(){}).name==="something",CONFIGURABLE:pR&&(!Vd||Vd&&pPt(KSe,"name").configurable)},oc=hQ((function(e){var t=c2.CONFIGURABLE,n=gu.get,r=gu.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;gi(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!za(s,"name")||t&&s.name!==p)&&Wh(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Jn?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Wh(i,a,s)):c?i[a]=s:mQ(a,s)})(Function.prototype,"toString",(function(){return gi(this)&&n(this).source||Q7(this)}))})),hPt=Math.ceil,gPt=Math.floor,Z7=function(e){var t=+e;return t!=t||t===0?0:(t>0?gPt:hPt)(t)},vPt=Math.max,mPt=Math.min,XA=function(e,t){var n=Z7(e);return n<0?vPt(n+t,0):mPt(n,t)},yPt=Math.min,QSe=function(e){return e>0?yPt(Z7(e),9007199254740991):0},R5=function(e){return QSe(e.length)},wfe=function(e){return function(t,n,r){var o,i=U0(t),a=R5(i),s=XA(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},YSe={includes:wfe(!0),indexOf:wfe(!1)},bPt=YSe.indexOf,Afe=so([].push),ZSe=function(e,t){var n,r=U0(e),o=0,i=[];for(n in r)!za(Y7,n)&&za(r,n)&&Afe(i,n);for(;t.length>o;)za(r,n=t[o++])&&(~bPt(i,n)||Afe(i,n));return i},LT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wPt=LT.concat("length","prototype"),FT={f:Object.getOwnPropertyNames||function(e){return ZSe(e,wPt)}},APt={f:Object.getOwnPropertySymbols},CPt=so([].concat),xPt=Zv("Reflect","ownKeys")||function(e){var t=FT.f(gs(e)),n=APt.f;return n?CPt(t,n(e)):t},SPt=function(e,t){for(var n=xPt(t),r=wp.f,o=AQ.f,i=0;i<n.length;i++){var a=n[i];za(e,a)||r(e,a,o(t,a))}},EPt=/#|\.prototype\./,B5=function(e,t){var n=TPt[kPt(e)];return n==DPt||n!=_Pt&&(gi(t)?Ii(t):!!t)},kPt=B5.normalize=function(e){return String(e).replace(EPt,".").toLowerCase()},TPt=B5.data={},_Pt=B5.NATIVE="N",DPt=B5.POLYFILL="P",UT=B5,IPt=AQ.f,Tl=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Jn:u?Jn[s]||mQ(s,{}):(Jn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=IPt(n,r))&&a.value:n[r],!UT(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;SPt(i,o)}(e.sham||o&&o.sham)&&Wh(i,"sham",!0),oc(n,r,i,e)}},XSe={};XSe[Oa("toStringTag")]="z";var xQ=String(XSe)==="[object z]",OPt=Oa("toStringTag"),MPt=Jn.Object,PPt=Nd((function(){return arguments})())=="Arguments",X7=xQ?Nd:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=MPt(e),OPt))=="string"?n:PPt?Nd(t):(r=Nd(t))=="Object"&&gi(t.callee)?"Arguments":r},NPt=Jn.String,Ou=function(e){if(X7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return NPt(e)},_z=`
- \v\f\r \u2028\u2029\uFEFF`,Cfe=so("".replace),$T="["+_z+"]",RPt=RegExp("^"+$T+$T+"*"),BPt=RegExp($T+$T+"*$"),LPt=function(e){return function(t){var n=Ou(N5(t));return 1&e&&(n=Cfe(n,RPt,"")),2&e&&(n=Cfe(n,BPt,"")),n}},FPt={trim:LPt(3)},UPt=c2.PROPER,$Pt=FPt.trim;function xfe(e){return e.length?e[0].tagName.toLowerCase():""}function JSe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=Mt(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Tl({target:"String",proto:!0,forced:Ii((function(){return!!_z.trim()||"
".trim()!=="
"||UPt&&_z.trim.name!=="trim"}))},{trim:function(){return $Pt(this)}}),Tl({global:!0},{globalThis:Jn}),ec&&(Mt.fn.append=ec),Hd&&(Mt.fn.on=Hd),g0&&(Mt.fn.focus=g0),Ju&&(Mt.fn.attr=Ju),jd&&(Mt.fn.val=jd),h0&&(Mt.fn.html=h0),eb&&(Mt.fn.parent=eb),Zy&&(Mt.fn.hasClass=Zy),ob&&(Mt.fn.empty=ob);var z6,zPt={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,s=o.poster,l=s===void 0?"":s,u=o.width,d=u===void 0?"auto":u,c=o.height,f=c===void 0?"auto":c,p=Et.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=Xr("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:JSe(a,d,f)});else{var v=Xr("video",{poster:l,controls:!0},Xr("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);d!=="auto"&&(v.data.width=d),f!=="auto"&&(v.data.height=f),r=Xr("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return ib("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},r)}},jPt={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,s=n.width,l=s===void 0?"auto":s,u=n.height,d=u===void 0?"auto":u,c=`<div data-w-e-type="video" data-w-e-is-void>
- `;return o.trim().indexOf("<iframe ")===0?c+=JSe(o,l,d):c+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+d+'"><source src="'+o+'" type="video/mp4"/></video>',c+`
- </div>`}},HPt=Object.keys||function(e){return ZSe(e,LT)},WPt=Vd?Object.defineProperties:function(e,t){gs(e);for(var n,r=U0(t),o=HPt(t),i=o.length,a=0;i>a;)wp.f(e,n=o[a++],r[n]);return e},Dz=Zv("document","documentElement"),e8e=CQ("IE_PROTO"),hR=function(){},t8e=function(e){return"<script>"+e+"<\/script>"},Sfe=function(e){e.write(t8e("")),e.close();var t=e.parentWindow.Object;return e=null,t},L8=function(){try{z6=new ActiveXObject("htmlfile")}catch{}var e,t;L8=typeof document<"u"?document.domain&&z6?Sfe(z6):((t=ZA("iframe")).style.display="none",Dz.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(t8e("document.F=Object")),e.close(),e.F):Sfe(z6);for(var n=LT.length;n--;)delete L8.prototype[LT[n]];return L8()};Y7[e8e]=!0;var SQ=Object.create||function(e,t){var n;return e!==null?(hR.prototype=gs(e),n=new hR,hR.prototype=null,n[e8e]=e):n=L8(),t===void 0?n:WPt(n,t)},Iz=Oa("unscopables"),Oz=Array.prototype;Oz[Iz]==null&&wp.f(Oz,Iz,{configurable:!0,value:SQ(null)});var m3=function(e){Oz[Iz][e]=!0},VPt=YSe.includes;Tl({target:"Array",proto:!0},{includes:function(e){return VPt(this,e,arguments.length>1?arguments[1]:void 0)}}),m3("includes");var qPt={selector:"iframe,video,p",preParseHtml:function(e){var t=Mt(e),n=t;if(xfe(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Mt(o))}}var a=xfe(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=Mt('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},Efe=so(so.bind),JA=function(e,t){return S0(e),t===void 0?e:Efe?Efe(e,t):function(){return e.apply(t,arguments)}},zT=Array.isArray||function(e){return Nd(e)=="Array"},n8e=function(){},GPt=[],r8e=Zv("Reflect","construct"),EQ=/^\s*(?:class|function)\b/,KPt=so(EQ.exec),QPt=!EQ.exec(n8e),Qw=function(e){if(!gi(e))return!1;try{return r8e(n8e,GPt,e),!0}catch{return!1}},kQ=!r8e||Ii((function(){var e;return Qw(Qw.call)||!Qw(Object)||!Qw((function(){e=!0}))||e}))?function(e){if(!gi(e))return!1;switch(X7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QPt||!!KPt(EQ,Q7(e))}:Qw,YPt=Oa("species"),kfe=Jn.Array,ZPt=function(e,t){return new((function(n){var r;return zT(n)&&(r=n.constructor,(kQ(r)&&(r===kfe||zT(r.prototype))||Hi(r)&&(r=r[YPt])===null)&&(r=void 0)),r===void 0?kfe:r})(e))(t===0?0:t)},Tfe=so([].push),_fe=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=K7(l),h=gQ(v),g=JA(u,d),y=R5(h),m=0,b=c||ZPt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Tfe(w,f)}else switch(e){case 4:return!1;case 7:Tfe(w,f)}return i?-1:r||o?o:w}},TQ={find:_fe(5),findIndex:_fe(6)},XPt=TQ.find,Dfe=!0;"find"in[]&&Array(1).find((function(){Dfe=!1})),Tl({target:"Array",proto:!0,forced:Dfe},{find:function(e){return XPt(this,e,arguments.length>1?arguments[1]:void 0)}}),m3("find");var JPt=xQ?{}.toString:function(){return"[object "+X7(this)+"]"};function Ife(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}xQ||oc(Object.prototype,"toString",JPt,{unsafe:!0});var Ofe,gR,eNt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Mt(e),o="",i="",a="auto",s="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",Ife(o=l[0].outerHTML,i,a,s);var u=r.find("video");return(o=u.attr("src")||"")||u.length>0&&(o=u.find("source").attr("src")||""),a=u.attr("width")||"auto",s=u.attr("height")||"auto",Ife(o,i=u.attr("poster")||"",a,s)}},o8e=function(){var e=gs(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_Q=Jn.RegExp,i8e=Ii((function(){var e=_Q("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));i8e||Ii((function(){return!_Q("a","y").sticky}));var tNt={BROKEN_CARET:i8e||Ii((function(){var e=_Q("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},nNt=Jn.RegExp,rNt=Ii((function(){var e=nNt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),oNt=Jn.RegExp,iNt=Ii((function(){var e=oNt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),aNt=gu.get,sNt=yQ("native-string-replace",String.prototype.replace),jT=RegExp.prototype.exec,Mz=jT,lNt=so("".charAt),uNt=so("".indexOf),cNt=so("".replace),vR=so("".slice),mR=(gR=/b*/g,Ti(jT,Ofe=/a/,"a"),Ti(jT,gR,"a"),Ofe.lastIndex!==0||gR.lastIndex!==0),Mfe=tNt.BROKEN_CARET,yR=/()??/.exec("")[1]!==void 0;(mR||yR||Mfe||rNt||iNt)&&(Mz=function(e){var t,n,r,o,i,a,s,l=this,u=aNt(l),d=Ou(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ti(Mz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Mfe&&l.sticky,v=Ti(o8e,l),h=l.source,g=0,y=d;if(p&&(v=cNt(v,"y",""),uNt(v,"g")===-1&&(v+="g"),y=vR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&lNt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),yR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),mR&&(r=l.lastIndex),o=Ti(jT,p?n:l,y),p?o?(o.input=vR(o.input,g),o[0]=vR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:mR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),yR&&o&&o.length>1&&Ti(sNt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=SQ(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var HT=Mz;Tl({target:"RegExp",proto:!0,forced:/./.exec!==HT},{exec:HT});var DQ=Function.prototype,Pfe=DQ.apply,dNt=DQ.bind,Nfe=DQ.call,a8e=typeof Reflect=="object"&&Reflect.apply||(dNt?Nfe.bind(Pfe):function(){return Nfe.apply(Pfe,arguments)}),Rfe=(Oa("species"),RegExp.prototype),fNt=so("".charAt),Bfe=so("".charCodeAt),pNt=so("".slice),hNt=function(e){return function(t,n){var r,o,i=Ou(N5(t)),a=Z7(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Bfe(i,a))<55296||r>56319||a+1===s||(o=Bfe(i,a+1))<56320||o>57343?e?fNt(i,a):r:e?pNt(i,a,a+2):o-56320+(r-55296<<10)+65536}},s8e={charAt:hNt(!0)},gNt=s8e.charAt,vNt=function(e,t,n){return t+(n?gNt(e,t).length:1)},mNt=Math.floor,bR=so("".charAt),yNt=so("".replace),wR=so("".slice),bNt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wNt=/\$([$&'`]|\d{1,2})/g,ANt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=wNt;return o!==void 0&&(o=K7(o),l=bNt),yNt(i,l,(function(u,d){var c;switch(bR(d,0)){case"$":return"$";case"&":return e;case"`":return wR(t,0,n);case"'":return wR(t,a);case"<":c=o[wR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=mNt(f/10);return p===0?u:p<=s?r[p-1]===void 0?bR(d,1):r[p-1]+bR(d,1):u}c=r[f-1]}return c===void 0?"":c}))},CNt=Jn.TypeError,xNt=function(e,t){var n=e.exec;if(gi(n)){var r=Ti(n,e,t);return r!==null&&gs(r),r}if(Nd(e)==="RegExp")return Ti(HT,e,t);throw CNt("RegExp#exec called on incompatible receiver")},Pz=Oa("replace"),SNt=Math.max,ENt=Math.min,kNt=so([].concat),AR=so([].push),Lfe=so("".indexOf),Ffe=so("".slice),TNt="a".replace(/./,"$0")==="$0",Ufe=!!/./[Pz]&&/./[Pz]("a","$0")==="";function l8e(e){return e+"-"+vCe()}(function(e,t,n,r){var o=Oa(e),i=!Ii((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Ii((function(){var u=!1,d=/a/;return d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=so(/./[o]),l=(function(u,d,c){var f=Ufe?"$":"$0";return[function(p,v){var h=N5(this),g=p==null?void 0:YA(p,Pz);return g?Ti(g,p,h,v):Ti(d,Ou(h),p,v)},function(p,v){var h=gs(this),g=Ou(p);if(typeof v=="string"&&Lfe(v,f)===-1&&Lfe(v,"$<")===-1){var y=c(d,h,g,v);if(y.done)return y.value}var m=gi(v);m||(v=Ou(v));var b=h.global;if(b){var w=h.unicode;h.lastIndex=0}for(var A=[];;){var S=xNt(h,g);if(S===null||(AR(A,S),!b))break;Ou(S[0])===""&&(h.lastIndex=vNt(g,QSe(h.lastIndex),w))}for(var k,M="",D=0,P=0;P<A.length;P++){for(var O=Ou((S=A[P])[0]),_=SNt(ENt(Z7(S.index),g.length),0),B=[],N=1;N<S.length;N++)AR(B,(k=S[N])===void 0?k:String(k));var q=S.groups;if(m){var U=kNt([O],B,_,g);q!==void 0&&AR(U,q);var j=Ou(a8e(v,void 0,U))}else j=ANt(O,g,_,B,q,v);_>=D&&(M+=Ffe(g,D,_)+j,D=_+O.length)}return M+Ffe(g,D)}]})(0,""[e],(function(u,d,c,f,p){var v=so(u),h=d.exec;return h===HT||h===Rfe.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));oc(String.prototype,e,l[0]),oc(Rfe,o,l[1])}})("replace",0,!!Ii((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!TNt||Ufe);var WT=Jn.Promise,VT=function(e,t,n){for(var r in t)oc(e,r,t[r],n);return e},_Nt=Jn.String,DNt=Jn.TypeError,gb=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=so(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return gs(r),(function(i){if(typeof i=="object"||gi(i))return i;throw DNt("Can't set "+_Nt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),INt=wp.f,$fe=Oa("toStringTag"),qT=function(e,t,n){e&&!za(e=n?e:e.prototype,$fe)&&INt(e,$fe,{configurable:!0,value:t})},zfe=Oa("species"),ONt=Jn.TypeError,IQ=function(e,t){if(KA(t,e))return e;throw ONt("Incorrect invocation")},vb={},MNt=Oa("iterator"),PNt=Array.prototype,NNt=Oa("iterator"),jfe=function(e){if(e!=null)return YA(e,NNt)||YA(e,"@@iterator")||vb[X7(e)]},RNt=Jn.TypeError,Hfe=function(e,t,n){var r,o;gs(e);try{if(!(r=YA(e,"return"))){if(t==="throw")throw n;return n}r=Ti(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return gs(r),n},BNt=Jn.TypeError,F8=function(e,t){this.stopped=e,this.result=t},Wfe=F8.prototype,GT=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=JA(t,c),g=function(m){return r&&Hfe(r,"normal",m),new F8(!0,m)},y=function(m){return f?(gs(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=jfe(e)))throw BNt(NT(e)+" is not iterable");if((d=o)!==void 0&&(vb.Array===d||PNt[MNt]===d)){for(i=0,a=R5(e);a>i;i++)if((s=y(e[i]))&&KA(Wfe,s))return s;return new F8(!1)}r=(function(m,b){var w=arguments.length<2?jfe(m):b;if(S0(w))return gs(Ti(w,m));throw RNt(NT(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=Ti(l,r)).done;){try{s=y(u.value)}catch(m){Hfe(r,"throw",m)}if(typeof s=="object"&&s&&KA(Wfe,s))return s}return new F8(!1)},u8e=Oa("iterator"),c8e=!1;try{var LNt=0,Vfe={next:function(){return{done:!!LNt++}},return:function(){c8e=!0}};Vfe[u8e]=function(){return this},Array.from(Vfe,(function(){throw 2}))}catch{}var eC,u1,qfe,CR,d8e=function(e,t){if(!c8e)return!1;var n=!1;try{var r={};r[u8e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},FNt=Jn.TypeError,UNt=Oa("species"),f8e=so([].slice),p8e=/(?:ipad|iphone|ipod).*applewebkit/i.test(hy),Vh=Nd(Jn.process)=="process",Nz=Jn.setImmediate,Gfe=Jn.clearImmediate,$Nt=Jn.process,xR=Jn.Dispatch,zNt=Jn.Function,Kfe=Jn.MessageChannel,jNt=Jn.String,SR=0,y3={};try{eC=Jn.location}catch{}var OQ=function(e){if(za(y3,e)){var t=y3[e];delete y3[e],t()}},ER=function(e){return function(){OQ(e)}},Qfe=function(e){OQ(e.data)},Yfe=function(e){Jn.postMessage(jNt(e),eC.protocol+"//"+eC.host)};Nz&&Gfe||(Nz=function(e){var t=f8e(arguments,1);return y3[++SR]=function(){a8e(gi(e)?e:zNt(e),void 0,t)},u1(SR),SR},Gfe=function(e){delete y3[e]},Vh?u1=function(e){$Nt.nextTick(ER(e))}:xR&&xR.now?u1=function(e){xR.now(ER(e))}:Kfe&&!p8e?(CR=(qfe=new Kfe).port2,qfe.port1.onmessage=Qfe,u1=JA(CR.postMessage,CR)):Jn.addEventListener&&gi(Jn.postMessage)&&!Jn.importScripts&&eC&&eC.protocol!=="file:"&&!Ii(Yfe)?(u1=Yfe,Jn.addEventListener("message",Qfe,!1)):u1="onreadystatechange"in ZA("script")?function(e){Dz.appendChild(ZA("script")).onreadystatechange=function(){Dz.removeChild(this),OQ(e)}}:function(e){setTimeout(ER(e),0)});var Yw,Og,b3,M1,kR,TR,_R,Zfe,h8e={set:Nz},HNt=/ipad|iphone|ipod/i.test(hy)&&Jn.Pebble!==void 0,WNt=/web0s(?!.*chrome)/i.test(hy),VNt=AQ.f,DR=h8e.set,Xfe=Jn.MutationObserver||Jn.WebKitMutationObserver,Jfe=Jn.document,epe=Jn.process,j6=Jn.Promise,tpe=VNt(Jn,"queueMicrotask"),g8e=tpe&&tpe.value;g8e||(Yw=function(){var e,t;for(Vh&&(e=epe.domain)&&e.exit();Og;){t=Og.fn,Og=Og.next;try{t()}catch(n){throw Og?M1():b3=void 0,n}}b3=void 0,e&&e.enter()},p8e||Vh||WNt||!Xfe||!Jfe?!HNt&&j6&&j6.resolve?((_R=j6.resolve(void 0)).constructor=j6,Zfe=JA(_R.then,_R),M1=function(){Zfe(Yw)}):Vh?M1=function(){epe.nextTick(Yw)}:(DR=JA(DR,Jn),M1=function(){DR(Yw)}):(kR=!0,TR=Jfe.createTextNode(""),new Xfe(Yw).observe(TR,{characterData:!0}),M1=function(){TR.data=kR=!kR}));var IR,npe,v8e,rpe,m8e=g8e||function(e){var t={fn:e,next:void 0};b3&&(b3.next=t),Og||(Og=t,M1()),b3=t},qNt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=S0(t),this.reject=S0(n)},MQ={f:function(e){return new qNt(e)}},Rz=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},GNt=typeof window=="object",y8e=h8e.set,KNt=Oa("species"),If="Promise",ope=gu.getterFor(If),QNt=gu.set,YNt=gu.getterFor(If),wg=WT&&WT.prototype,Td=WT,Zw=wg,b8e=Jn.TypeError,Bz=Jn.document,PQ=Jn.process,gy=MQ.f,ZNt=gy,XNt=!!(Bz&&Bz.createEvent&&Jn.dispatchEvent),w8e=gi(Jn.PromiseRejectionEvent),A8e=!1,w3=UT(If,(function(){var e=Q7(Td),t=e!==String(Td);if(!t&&QA===66)return!0;if(QA>=51&&/native code/.test(e))return!1;var n=new Td((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[KNt]=r,!(A8e=n.then((function(){}))instanceof r)||!t&&GNt&&!w8e})),JNt=w3||!d8e((function(e){Td.all(e).catch((function(){}))})),C8e=function(e){var t;return!(!Hi(e)||!gi(t=e.then))&&t},NQ=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;m8e((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&tRt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(b8e("Promise-chain cycle")):(s=C8e(a))?Ti(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&eRt(e)}))}},x8e=function(e,t,n){var r,o;XNt?((r=Bz.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Jn.dispatchEvent(r)):r={promise:t,reason:n},!w8e&&(o=Jn["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=Jn.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},eRt=function(e){Ti(y8e,Jn,(function(){var t,n=e.facade,r=e.value;if(ipe(e)&&(t=Rz((function(){Vh?PQ.emit("unhandledRejection",r,n):x8e("unhandledrejection",n,r)})),e.rejection=Vh||ipe(e)?2:1,t.error))throw t.value}))},ipe=function(e){return e.rejection!==1&&!e.parent},tRt=function(e){Ti(y8e,Jn,(function(){var t=e.facade;Vh?PQ.emit("rejectionHandled",t):x8e("rejectionhandled",t,e.value)}))},z1=function(e,t,n){return function(r){e(t,r,n)}},vy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,NQ(e,!0))},Lz=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw b8e("Promise can't be resolved itself");var r=C8e(t);r?m8e((function(){var o={done:!1};try{Ti(r,t,z1(Lz,o,e),z1(vy,o,e))}catch(i){vy(o,i,e)}})):(e.value=t,e.state=1,NQ(e,!1))}catch(o){vy({done:!1},o,e)}}};if(w3&&(Zw=(Td=function(e){IQ(this,Zw),S0(e),Ti(IR,this);var t=ope(this);try{e(z1(Lz,t),z1(vy,t))}catch(n){vy(t,n)}}).prototype,(IR=function(e){QNt(this,{type:If,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=VT(Zw,{then:function(e,t){var n=YNt(this),r=n.reactions,o=gy((function(i,a){var s,l=gs(i).constructor;return l===void 0||(s=gs(l)[UNt])==null?a:(function(u){if(kQ(u))return u;throw FNt(NT(u)+" is not a constructor")})(s)})(this,Td));return o.ok=!gi(e)||e,o.fail=gi(t)&&t,o.domain=Vh?PQ.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&NQ(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),npe=function(){var e=new IR,t=ope(e);this.promise=e,this.resolve=z1(Lz,t),this.reject=z1(vy,t)},MQ.f=gy=function(e){return e===Td||e===v8e?new npe(e):ZNt(e)},gi(WT)&&wg!==Object.prototype)){rpe=wg.then,A8e||(oc(wg,"then",(function(e,t){var n=this;return new Td((function(r,o){Ti(rpe,n,r,o)})).then(e,t)}),{unsafe:!0}),oc(wg,"catch",Zw.catch,{unsafe:!0}));try{delete wg.constructor}catch{}gb&&gb(wg,Zw)}function tC(e,t,n){return n===void 0&&(n=""),V7(this,void 0,void 0,(function(){var r,o,i,a,s,l,u;return q7(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(s=d.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,a(t)];case 2:return(l=d.sent()).trim().indexOf("<iframe ")!==0&&(l=l.replace(/</g,"<").replace(/>/g,">")),u={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Zt.insertNodes(e,u)})),o(u),[2]}}))}))}function OR(){return l8e("w-e-insert-video")}Tl({global:!0,wrap:!0,forced:w3},{Promise:Td}),qT(Td,If,!1),(function(e){var t=Zv("Promise"),n=wp.f;Vd&&t&&!t[zfe]&&n(t,zfe,{configurable:!0,get:function(){return this}})})(),v8e=Zv(If),Tl({target:If,stat:!0,forced:w3},{reject:function(e){var t=gy(this);return Ti(t.reject,void 0,e),t.promise}}),Tl({target:If,stat:!0,forced:w3},{resolve:function(e){return(function(t,n){if(gs(t),Hi(n)&&n.constructor===t)return n;var r=MQ.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Tl({target:If,stat:!0,forced:JNt},{all:function(e){var t=this,n=gy(t),r=n.resolve,o=n.reject,i=Rz((function(){var a=S0(t.resolve),s=[],l=0,u=1;GT(e,(function(d){var c=l++,f=!1;u++,Ti(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=gy(t),r=n.reject,o=Rz((function(){var i=S0(t.resolve);GT(e,(function(a){Ti(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var nRt=(function(){function e(){this.title=Yn("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=OR(),this.posterInputId=OR(),this.buttonId=OR()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!Et.getSelectedElems(t).some((function(r){var o=Et.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,s=gv(lu(Yn("videoModule.videoSrc"),o,Yn("videoModule.videoSrcPlaceHolder")),2),l=s[0],u=s[1],d=gv(lu(Yn("videoModule.videoPoster"),i,Yn("videoModule.videoPosterPlaceHolder")),2),c=d[0],f=d[1],p=Mt(u),v=Mt(f),h=gv(e2(a,Yn("videoModule.ok")),1)[0];if(this.$content==null){var g=Mt("<div></div>");g.on("click","#"+a,(function(m){return V7(n,void 0,void 0,(function(){var b,w;return q7(this,(function(A){switch(A.label){case 0:return m.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,tC(t,b,w)];case 1:return A.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var y=this.$content;return y.empty(),y.append(l),y.append(c),y.append(h),p.val(""),v.val(""),setTimeout((function(){p.focus()})),y[0]},e})(),rRt=so([].join),oRt=gQ!=Object,iRt=(function(e,t){var n=[].join;return!!n&&Ii((function(){n.call(null,",",1)}))})();Tl({target:"Array",proto:!0,forced:oRt||!iRt},{join:function(e){return rRt(U0(this),e===void 0?",":e)}});var mv,ape,spe,aRt=!Ii((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lpe=CQ("IE_PROTO"),Fz=Jn.Object,sRt=Fz.prototype,KT=aRt?Fz.getPrototypeOf:function(e){var t=K7(e);if(za(t,lpe))return t[lpe];var n=t.constructor;return gi(n)&&t instanceof n?n.prototype:t instanceof Fz?sRt:null},Uz=Oa("iterator"),S8e=!1;[].keys&&("next"in(spe=[].keys())?(ape=KT(KT(spe)))!==Object.prototype&&(mv=ape):S8e=!0);var lRt=mv==null||Ii((function(){var e={};return mv[Uz].call(e)!==e}));lRt&&(mv={}),gi(mv[Uz])||oc(mv,Uz,(function(){return this}));var RQ={IteratorPrototype:mv,BUGGY_SAFARI_ITERATORS:S8e},uRt=RQ.IteratorPrototype,cRt=function(){return this},dRt=c2.PROPER,fRt=c2.CONFIGURABLE,upe=RQ.IteratorPrototype,MR=RQ.BUGGY_SAFARI_ITERATORS,Xw=Oa("iterator"),pRt=function(){return this},E8e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=SQ(uRt,{next:G7(1,m)}),qT(g,w,!1),vb[w]=cRt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!MR&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[Xw]||f["@@iterator"]||o&&f[o],v=!MR&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=KT(h.call(new e)))!==Object.prototype&&s.next&&(KT(s)!==upe&&(gb?gb(s,upe):gi(s[Xw])||oc(s,Xw,pRt)),qT(s,d,!0)),dRt&&o=="values"&&p&&p.name!=="values"&&(fRt?Wh(f,"name","values"):(c=!0,v=function(){return Ti(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Tl({target:t,proto:!0,forced:MR||c},l)),f[Xw]!==v&&oc(f,Xw,v,{name:o}),vb[t]=v,l},hRt=gu.set,gRt=gu.getterFor("Array Iterator"),I4=E8e(Array,"Array",(function(e,t){hRt(this,{type:"Array Iterator",target:U0(e),index:0,kind:t})}),(function(){var e=gRt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");vb.Arguments=vb.Array,m3("keys"),m3("values"),m3("entries");var vRt=s8e.charAt,mRt=gu.set,yRt=gu.getterFor("String Iterator");E8e(String,"String",(function(e){mRt(this,{type:"String Iterator",string:Ou(e),index:0})}),(function(){var e,t=yRt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vRt(n,r),t.index+=e.length,{value:e,done:!1})}));var k8e=function(e,t,n){var r=wQ(t);r in e?wp.f(e,r,G7(0,n)):e[r]=n},bRt=Jn.Array,wRt=Math.max,cpe=FT.f,dpe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ARt={f:function(e){return dpe&&Nd(e)=="Window"?(function(t){try{return cpe(t)}catch{return(function(r,o,i){for(var a=R5(r),s=XA(void 0,a),l=XA(a,a),u=bRt(wRt(l-s,0)),d=0;s<l;s++,d++)k8e(u,d,r[s]);return u.length=d,u})(dpe)}})(e):cpe(U0(e))}},fpe=Ii((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),H6=Object.isExtensible,jg=Ii((function(){H6(1)}))||fpe?function(e){return!!Hi(e)&&(!fpe||Nd(e)!="ArrayBuffer")&&(!H6||H6(e))}:H6,CRt=!Ii((function(){return Object.isExtensible(Object.preventExtensions({}))})),BQ=hQ((function(e){var t=wp.f,n=!1,r=bQ("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=FT.f,l=so([].splice),u={};u[r]=1,s(u).length&&(FT.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},Tl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ARt.f}))},fastKey:function(s,l){if(!Hi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!za(s,r)){if(!jg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!za(s,r)){if(!jg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return CRt&&n&&jg(s)&&!za(s,r)&&i(s),s}};Y7[r]=!0})),W6=BQ.getWeakData,xRt=gu.set,SRt=gu.getterFor,ERt=TQ.find,kRt=TQ.findIndex,TRt=so([].splice),_Rt=0,V6=function(e){return e.frozen||(e.frozen=new T8e)},T8e=function(){this.entries=[]},PR=function(e,t){return ERt(e.entries,(function(n){return n[0]===t}))};T8e.prototype={get:function(e){var t=PR(this,e);if(t)return t[1]},has:function(e){return!!PR(this,e)},set:function(e,t){var n=PR(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=kRt(this.entries,(function(n){return n[0]===e}));return~t&&TRt(this.entries,t,1),!!~t}};var Jw,_8e={getConstructor:function(e,t,n,r){var o=e((function(l,u){IQ(l,i),xRt(l,{type:t,id:_Rt++,frozen:void 0}),u!=null&>(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=SRt(t),s=function(l,u,d){var c=a(l),f=W6(gs(u),!0);return f===!0?V6(c).set(u,d):f[c.id]=d,l};return VT(i,{delete:function(l){var u=a(this);if(!Hi(l))return!1;var d=W6(l);return d===!0?V6(u).delete(l):d&&za(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Hi(l))return!1;var d=W6(l);return d===!0?V6(u).has(l):d&&za(d,u.id)}}),VT(i,n?{get:function(l){var u=a(this);if(Hi(l)){var d=W6(l);return d===!0?V6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},q6=gu.enforce,DRt=!Jn.ActiveXObject&&"ActiveXObject"in Jn,D8e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},IRt=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Jn[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=so(s[g]);oc(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Hi(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Hi(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Hi(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(UT(e,!gi(a)||!(o||s.forEach&&!Ii((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),BQ.enable();else if(UT(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=Ii((function(){c.has(1)})),v=d8e((function(g){new a(g)})),h=!o&&Ii((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){IQ(g,s);var m=(function(b,w,A){var S,k;return gb&&gi(S=w.constructor)&&S!==A&&Hi(k=S.prototype)&&k!==A.prototype&&gb(b,k),b})(new a,g,l);return y!=null&>(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,Tl({global:!0,forced:l!=a},u),qT(l,e),o||n.setStrong(l,e,r),l})("WeakMap",D8e,_8e);if(GSe&&DRt){Jw=_8e.getConstructor(D8e,"WeakMap",!0),BQ.enable();var e4=IRt.prototype,ppe=so(e4.delete),G6=so(e4.has),hpe=so(e4.get),gpe=so(e4.set);VT(e4,{delete:function(e){if(Hi(e)&&!jg(e)){var t=q6(this);return t.frozen||(t.frozen=new Jw),ppe(this,e)||t.frozen.delete(e)}return ppe(this,e)},has:function(e){if(Hi(e)&&!jg(e)){var t=q6(this);return t.frozen||(t.frozen=new Jw),G6(this,e)||t.frozen.has(e)}return G6(this,e)},get:function(e){if(Hi(e)&&!jg(e)){var t=q6(this);return t.frozen||(t.frozen=new Jw),G6(this,e)?hpe(this,e):t.frozen.get(e)}return hpe(this,e)},set:function(e,t){if(Hi(e)&&!jg(e)){var n=q6(this);n.frozen||(n.frozen=new Jw),G6(this,e)?gpe(this,e,t):n.frozen.set(e,t)}else gpe(this,e,t);return this}})}var I8e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},NR=ZA("span").classList,vpe=NR&&NR.constructor&&NR.constructor.prototype,ORt=vpe===Object.prototype?void 0:vpe,RR=Oa("iterator"),mpe=Oa("toStringTag"),BR=I4.values,O8e=function(e,t){if(e){if(e[RR]!==BR)try{Wh(e,RR,BR)}catch{e[RR]=BR}if(e[mpe]||Wh(e,mpe,t),I8e[t]){for(var n in I4)if(e[n]!==I4[n])try{Wh(e,n,I4[n])}catch{e[n]=I4[n]}}}};for(var LR in I8e)O8e(Jn[LR]&&Jn[LR].prototype,LR);O8e(ORt,"DOMTokenList");var MRt=c2.EXISTS,PRt=wp.f,M8e=Function.prototype,NRt=so(M8e.toString),P8e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,RRt=so(P8e.exec);Vd&&!MRt&&PRt(M8e,"name",{configurable:!0,get:function(){try{return RRt(P8e,NRt(this))[1]}catch{return""}}});var BRt=Oa("species"),LRt=QA>=51||!Ii((function(){var e=[];return(e.constructor={})[BRt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),FRt=Oa("species"),FR=Jn.Array,URt=Math.max;function N8e(e){return e.getMenuConfig("uploadVideo")}Tl({target:"Array",proto:!0,forced:!LRt},{slice:function(e,t){var n,r,o,i=U0(this),a=R5(i),s=XA(e,a),l=XA(t===void 0?a:t,a);if(zT(i)&&(n=i.constructor,(kQ(n)&&(n===FR||zT(n.prototype))||Hi(n)&&(n=n[FRt])===null)&&(n=void 0),n===FR||n===void 0))return f8e(i,s,l);for(r=new(n===void 0?FR:n)(URt(l-s,0)),o=0;s<l;s++,o++)s in i&&k8e(r,o,i[s]);return r.length=o,r}});var ype=new WeakMap;function $Rt(e,t){return V7(this,void 0,void 0,(function(){var n,r,o,i;return q7(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=ype.get(s);if(l!=null)return l;var u=N8e(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=oxe(PT(PT({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(M,D){return tC(s,M,D)})),void d(h,g);var y=g.errno,m=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(m===0){var A=w.url,S=A===void 0?"":A,k=w.poster;tC(s,S,k===void 0?"":k),d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),ype.set(s,l),l})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var zRt=(function(){function e(){this.title=Yn("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(d,c){return tC(t,d,c)}));else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var l=Mt("body"),u=Mt('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var d=u[0].files;(function(c,f){var p,v;V7(this,void 0,void 0,(function(){var h,g,y,m,b,w;return q7(this,(function(A){switch(A.label){case 0:if(f==null)return[2];h=Array.prototype.slice.call(f),g=N8e(c).customUpload,A.label=1;case 1:A.trys.push([1,9,10,15]),y=FMt(h),A.label=2;case 2:return[4,y.next()];case 3:return(m=A.sent()).done?[3,8]:(b=m.value,g?[4,g(b,(function(S,k){return tC(c,S,k)}))]:[3,5]);case 4:return A.sent(),[3,7];case 5:return[4,$Rt(c,b)];case 6:A.sent(),A.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=A.sent(),p={error:w},[3,15];case 10:return A.trys.push([10,,13,14]),m&&!m.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:A.sent(),A.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(t,d)}))}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!Et.getSelectedElems(t).some((function(r){var o=Et.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),jRt=c2.PROPER,$z=RegExp.prototype,R8e=$z.toString,HRt=so(o8e),WRt=Ii((function(){return R8e.call({source:"a",flags:"b"})!="/a/b"})),VRt=jRt&&R8e.name!="toString";function UR(){return l8e("w-e-insert-video")}(WRt||VRt)&&oc(RegExp.prototype,"toString",(function(){var e=gs(this),t=Ou(e.source),n=e.flags;return"/"+t+"/"+Ou(n===void 0&&KA($z,e)&&!("flags"in $z)?HRt(e):n)}),{unsafe:!0});var qRt=(function(){function e(){this.title=Yn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=UR(),this.heightInputId=UR(),this.buttonId=UR()}return e.prototype.getSelectedVideoNode=function(t){return Et.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=gv(lu(Yn("videoModule.width"),r,"auto"),2),s=a[0],l=Mt(a[1]),u=gv(lu(Yn("videoModule.height"),o,"auto"),2),d=u[0],c=Mt(u[1]),f=gv(e2(i,Yn("videoModule.ok")),1)[0];if(this.$content==null){var p=Mt("<div></div>");p.on("click","#"+i,(function(w){w.preventDefault();var A=p.find("#"+r).val().trim(),S=p.find("#"+o).val().trim(),k=parseInt(A),M=parseInt(S),D=k?k.toString():"auto",P=M?M.toString():"auto";t.restoreSelection(),Zt.setNodes(t,{width:D,height:P},{match:function(O){return Et.checkNodeType(O,"video")}}),t.hidePanelOrModal()})),this.$content=p}var v=this.$content;v.empty(),v.append(s),v.append(d),v.append(f);var h=this.getSelectedVideoNode(t);if(h==null)return v[0];var g=h.width,y=g===void 0?"auto":g,m=h.height,b=m===void 0?"auto":m;return l.val(y),c.val(b),setTimeout((function(){l.focus()})),v[0]},e})(),GRt={renderElems:[zPt],elemsToHtml:[jPt],preParseHtml:[qPt],parseElemsHtml:[eNt],menus:[{key:"insertVideo",factory:function(){return new nRt},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new zRt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new qRt}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=gv(o,2),a=i[0],s=i[1];return Et.getNodeType(a)==="video"&&Et.isLastNode(r,a)&&Zt.insertNodes(r,Et.genEmptyParagraph(),{at:[s[0]+1]}),n([a,s])},r}};zl("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),zl("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var bpe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qp,U8,K6=function(e){return e&&e.Math==Math&&e},Zn=K6(typeof globalThis=="object"&&globalThis)||K6(typeof window=="object"&&window)||K6(typeof self=="object"&&self)||K6(typeof bpe=="object"&&bpe)||(function(){return this})()||Function("return this")(),Ui=function(e){try{return!!e()}catch{return!0}},qd=!Ui((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),t4=Function.prototype.call,ci=t4.bind?t4.bind(t4):function(){return t4.apply(t4,arguments)},wpe={}.propertyIsEnumerable,Ape=Object.getOwnPropertyDescriptor,KRt={f:Ape&&!wpe.call({1:2},1)?function(e){var t=Ape(this,e);return!!t&&t.enumerable}:wpe},J7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B8e=Function.prototype,zz=B8e.bind,jz=B8e.call,QRt=zz&&zz.bind(jz),So=zz?function(e){return e&&QRt(jz,e)}:function(e){return e&&function(){return jz.apply(e,arguments)}},YRt=So({}.toString),ZRt=So("".slice),Oc=function(e){return ZRt(YRt(e),8,-1)},$R=Zn.Object,XRt=So("".split),FQ=Ui((function(){return!$R("z").propertyIsEnumerable(0)}))?function(e){return Oc(e)=="String"?XRt(e,""):$R(e)}:$R,JRt=Zn.TypeError,nC=function(e){if(e==null)throw JRt("Can't call method on "+e);return e},$0=function(e){return FQ(nC(e))},wi=function(e){return typeof e=="function"},Bi=function(e){return typeof e=="object"?e!==null:wi(e)},eBt=function(e){return wi(e)?e:void 0},Xv=function(e,t){return arguments.length<2?eBt(Zn[e]):Zn[e]&&Zn[e][t]},rC=So({}.isPrototypeOf),my=Xv("navigator","userAgent")||"",Cpe=Zn.process,xpe=Zn.Deno,Spe=Cpe&&Cpe.versions||xpe&&xpe.version,Epe=Spe&&Spe.v8;Epe&&(U8=(Qp=Epe.split("."))[0]>0&&Qp[0]<4?1:+(Qp[0]+Qp[1])),!U8&&my&&(!(Qp=my.match(/Edge\/(\d+)/))||Qp[1]>=74)&&(Qp=my.match(/Chrome\/(\d+)/))&&(U8=+Qp[1]);var oC=U8,Hz=!!Object.getOwnPropertySymbols&&!Ui((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oC&&oC<41})),UQ=Hz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tBt=Zn.Object,zR=UQ?function(e){return typeof e=="symbol"}:function(e){var t=Xv("Symbol");return wi(t)&&rC(t.prototype,tBt(e))},nBt=Zn.String,QT=function(e){try{return nBt(e)}catch{return"Object"}},rBt=Zn.TypeError,E0=function(e){if(wi(e))return e;throw rBt(QT(e)+" is not a function")},iC=function(e,t){var n=e[t];return n==null?void 0:E0(n)},oBt=Zn.TypeError,iBt=Object.defineProperty,$Q=function(e,t){try{iBt(Zn,e,{value:t,configurable:!0,writable:!0})}catch{Zn[e]=t}return t},qh=Zn["__core-js_shared__"]||$Q("__core-js_shared__",{}),zQ=LQ((function(e){(e.exports=function(t,n){return qh[t]||(qh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),aBt=Zn.Object,jQ=function(e){return aBt(nC(e))},sBt=So({}.hasOwnProperty),ja=Object.hasOwn||function(e,t){return sBt(jQ(e),t)},lBt=0,uBt=Math.random(),cBt=So(1 .toString),HQ=function(e){return"Symbol("+(e===void 0?"":e)+")_"+cBt(++lBt+uBt,36)},n4=zQ("wks"),yv=Zn.Symbol,kpe=yv&&yv.for,dBt=UQ?yv:yv&&yv.withoutSetter||HQ,Ma=function(e){if(!ja(n4,e)||!Hz&&typeof n4[e]!="string"){var t="Symbol."+e;Hz&&ja(yv,e)?n4[e]=yv[e]:n4[e]=UQ&&kpe?kpe(t):dBt(t)}return n4[e]},fBt=Zn.TypeError,pBt=Ma("toPrimitive"),WQ=function(e){var t=(function(n,r){if(!Bi(n)||zR(n))return n;var o,i=iC(n,pBt);if(i){if(o=ci(i,n,r),!Bi(o)||zR(o))return o;throw fBt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(wi(l=a.toString)&&!Bi(u=ci(l,a))||wi(l=a.valueOf)&&!Bi(u=ci(l,a)))return u;throw oBt("Can't convert object to primitive value")})(n)})(e,"string");return zR(t)?t:t+""},Wz=Zn.document,hBt=Bi(Wz)&&Bi(Wz.createElement),aC=function(e){return hBt?Wz.createElement(e):{}},L8e=!qd&&!Ui((function(){return Object.defineProperty(aC("div"),"a",{get:function(){return 7}}).a!=7})),Tpe=Object.getOwnPropertyDescriptor,VQ={f:qd?Tpe:function(e,t){if(e=$0(e),t=WQ(t),L8e)try{return Tpe(e,t)}catch{}if(ja(e,t))return J7(!ci(KRt.f,e,t),e[t])}},gBt=Zn.String,vBt=Zn.TypeError,vs=function(e){if(Bi(e))return e;throw vBt(gBt(e)+" is not an object")},mBt=Zn.TypeError,_pe=Object.defineProperty,Ap={f:qd?_pe:function(e,t,n){if(vs(e),t=WQ(t),vs(n),L8e)try{return _pe(e,t,n)}catch{}if("get"in n||"set"in n)throw mBt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Rd=qd?function(e,t,n){return Ap.f(e,t,J7(1,n))}:function(e,t,n){return e[t]=n,e},yBt=So(Function.toString);wi(qh.inspectSource)||(qh.inspectSource=function(e){return yBt(e)});var YT,A3,ZT,e9=qh.inspectSource,Dpe=Zn.WeakMap,F8e=wi(Dpe)&&/native code/.test(e9(Dpe)),Ipe=zQ("keys"),qQ=function(e){return Ipe[e]||(Ipe[e]=HQ(e))},t9={},Vz=Zn.TypeError,bBt=Zn.WeakMap;if(F8e||qh.state){var lg=qh.state||(qh.state=new bBt),wBt=So(lg.get),Ope=So(lg.has),ABt=So(lg.set);YT=function(e,t){if(Ope(lg,e))throw new Vz("Object already initialized");return t.facade=e,ABt(lg,e,t),t},A3=function(e){return wBt(lg,e)||{}},ZT=function(e){return Ope(lg,e)}}else{var c1=qQ("state");t9[c1]=!0,YT=function(e,t){if(ja(e,c1))throw new Vz("Object already initialized");return t.facade=e,Rd(e,c1,t),t},A3=function(e){return ja(e,c1)?e[c1]:{}},ZT=function(e){return ja(e,c1)}}var vu={set:YT,get:A3,has:ZT,enforce:function(e){return ZT(e)?A3(e):YT(e,{})},getterFor:function(e){return function(t){var n;if(!Bi(t)||(n=A3(t)).type!==e)throw Vz("Incompatible receiver, "+e+" required");return n}}},U8e=Function.prototype,CBt=qd&&Object.getOwnPropertyDescriptor,jR=ja(U8e,"name"),L5={EXISTS:jR,PROPER:jR&&(function(){}).name==="something",CONFIGURABLE:jR&&(!qd||qd&&CBt(U8e,"name").configurable)},ic=LQ((function(e){var t=L5.CONFIGURABLE,n=vu.get,r=vu.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;wi(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ja(s,"name")||t&&s.name!==p)&&Rd(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Zn?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Rd(i,a,s)):c?i[a]=s:$Q(a,s)})(Function.prototype,"toString",(function(){return wi(this)&&n(this).source||e9(this)}))})),xBt=Math.ceil,SBt=Math.floor,GQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?SBt:xBt)(t)},EBt=Math.max,kBt=Math.min,sC=function(e,t){var n=GQ(e);return n<0?EBt(n+t,0):kBt(n,t)},TBt=Math.min,$8e=function(e){return e>0?TBt(GQ(e),9007199254740991):0},F5=function(e){return $8e(e.length)},_Bt=function(e){return function(t,n,r){var o,i=$0(t),a=F5(i),s=sC(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},DBt=_Bt(!1),Mpe=So([].push),z8e=function(e,t){var n,r=$0(e),o=0,i=[];for(n in r)!ja(t9,n)&&ja(r,n)&&Mpe(i,n);for(;t.length>o;)ja(r,n=t[o++])&&(~DBt(i,n)||Mpe(i,n));return i},XT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IBt=XT.concat("length","prototype"),JT={f:Object.getOwnPropertyNames||function(e){return z8e(e,IBt)}},OBt={f:Object.getOwnPropertySymbols},MBt=So([].concat),PBt=Xv("Reflect","ownKeys")||function(e){var t=JT.f(vs(e)),n=OBt.f;return n?MBt(t,n(e)):t},NBt=function(e,t){for(var n=PBt(t),r=Ap.f,o=VQ.f,i=0;i<n.length;i++){var a=n[i];ja(e,a)||r(e,a,o(t,a))}},RBt=/#|\.prototype\./,U5=function(e,t){var n=LBt[BBt(e)];return n==UBt||n!=FBt&&(wi(t)?Ui(t):!!t)},BBt=U5.normalize=function(e){return String(e).replace(RBt,".").toLowerCase()},LBt=U5.data={},FBt=U5.NATIVE="N",UBt=U5.POLYFILL="P",e_=U5,$Bt=VQ.f,_d=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Zn:u?Zn[s]||$Q(s,{}):(Zn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$Bt(n,r))&&a.value:n[r],!e_(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;NBt(i,o)}(e.sham||o&&o.sham)&&Rd(i,"sham",!0),ic(n,r,i,e)}},t_=Array.isArray||function(e){return Oc(e)=="Array"},j8e={};j8e[Ma("toStringTag")]="z";var KQ=String(j8e)==="[object z]",zBt=Ma("toStringTag"),jBt=Zn.Object,HBt=Oc((function(){return arguments})())=="Arguments",n9=KQ?Oc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=jBt(e),zBt))=="string"?n:HBt?Oc(t):(r=Oc(t))=="Object"&&wi(t.callee)?"Arguments":r},H8e=function(){},WBt=[],W8e=Xv("Reflect","construct"),QQ=/^\s*(?:class|function)\b/,VBt=So(QQ.exec),qBt=!QQ.exec(H8e),r4=function(e){if(!wi(e))return!1;try{return W8e(H8e,WBt,e),!0}catch{return!1}},YQ=!W8e||Ui((function(){var e;return r4(r4.call)||!r4(Object)||!r4((function(){e=!0}))||e}))?function(e){if(!wi(e))return!1;switch(n9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qBt||!!VBt(QQ,e9(e))}:r4,V8e=function(e,t,n){var r=WQ(t);r in e?Ap.f(e,r,J7(0,n)):e[r]=n},GBt=Ma("species"),q8e=So([].slice),KBt=oC>=51||!Ui((function(){var e=[];return(e.constructor={})[GBt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),QBt=Ma("species"),HR=Zn.Array,YBt=Math.max;_d({target:"Array",proto:!0,forced:!KBt},{slice:function(e,t){var n,r,o,i=$0(this),a=F5(i),s=sC(e,a),l=sC(t===void 0?a:t,a);if(t_(i)&&(n=i.constructor,(YQ(n)&&(n===HR||t_(n.prototype))||Bi(n)&&(n=n[QBt])===null)&&(n=void 0),n===HR||n===void 0))return q8e(i,s,l);for(r=new(n===void 0?HR:n)(YBt(l-s,0)),o=0;s<l;s++,o++)s in i&&V8e(r,o,i[s]);return r.length=o,r}});var ZBt=KQ?{}.toString:function(){return"[object "+n9(this)+"]"};KQ||ic(Object.prototype,"toString",ZBt,{unsafe:!0});var Q6,XBt=Zn.String,Gh=function(e){if(n9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return XBt(e)},G8e=function(){var e=vs(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ZQ=Zn.RegExp,qz=Ui((function(){var e=ZQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));qz||Ui((function(){return!ZQ("a","y").sticky}));var K8e={BROKEN_CARET:qz||Ui((function(){var e=ZQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:qz},JBt=Object.keys||function(e){return z8e(e,XT)},eLt=qd?Object.defineProperties:function(e,t){vs(e);for(var n,r=$0(t),o=JBt(t),i=o.length,a=0;i>a;)Ap.f(e,n=o[a++],r[n]);return e},Gz=Xv("document","documentElement"),Q8e=qQ("IE_PROTO"),WR=function(){},Y8e=function(e){return"<script>"+e+"<\/script>"},Ppe=function(e){e.write(Y8e("")),e.close();var t=e.parentWindow.Object;return e=null,t},$8=function(){try{Q6=new ActiveXObject("htmlfile")}catch{}var e,t;$8=typeof document<"u"?document.domain&&Q6?Ppe(Q6):((t=aC("iframe")).style.display="none",Gz.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Y8e("document.F=Object")),e.close(),e.F):Ppe(Q6);for(var n=XT.length;n--;)delete $8.prototype[XT[n]];return $8()};t9[Q8e]=!0;var Npe,VR,XQ=Object.create||function(e,t){var n;return e!==null?(WR.prototype=vs(e),n=new WR,WR.prototype=null,n[Q8e]=e):n=$8(),t===void 0?n:eLt(n,t)},tLt=Zn.RegExp,nLt=Ui((function(){var e=tLt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),rLt=Zn.RegExp,oLt=Ui((function(){var e=rLt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),iLt=vu.get,aLt=zQ("native-string-replace",String.prototype.replace),n_=RegExp.prototype.exec,Kz=n_,sLt=So("".charAt),lLt=So("".indexOf),uLt=So("".replace),qR=So("".slice),GR=(VR=/b*/g,ci(n_,Npe=/a/,"a"),ci(n_,VR,"a"),Npe.lastIndex!==0||VR.lastIndex!==0),Rpe=K8e.BROKEN_CARET,KR=/()??/.exec("")[1]!==void 0;(GR||KR||Rpe||nLt||oLt)&&(Kz=function(e){var t,n,r,o,i,a,s,l=this,u=iLt(l),d=Gh(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ci(Kz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Rpe&&l.sticky,v=ci(G8e,l),h=l.source,g=0,y=d;if(p&&(v=uLt(v,"y",""),lLt(v,"g")===-1&&(v+="g"),y=qR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&sLt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),KR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),GR&&(r=l.lastIndex),o=ci(n_,p?n:l,y),p?o?(o.input=qR(o.input,g),o[0]=qR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:GR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),KR&&o&&o.length>1&&ci(aLt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=XQ(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var lC=Kz;_d({target:"RegExp",proto:!0,forced:/./.exec!==lC},{exec:lC});var JQ=Function.prototype,Bpe=JQ.apply,cLt=JQ.bind,Lpe=JQ.call,Z8e=typeof Reflect=="object"&&Reflect.apply||(cLt?Lpe.bind(Bpe):function(){return Lpe.apply(Bpe,arguments)}),dLt=Ma("species"),QR=RegExp.prototype,fLt=Ma("match"),pLt=Zn.TypeError,hLt=Ma("species"),X8e=function(e,t){var n,r=vs(e).constructor;return r===void 0||(n=vs(r)[hLt])==null?t:(function(o){if(YQ(o))return o;throw pLt(QT(o)+" is not a constructor")})(n)},gLt=So("".charAt),Fpe=So("".charCodeAt),vLt=So("".slice),mLt=function(e){return function(t,n){var r,o,i=Gh(nC(t)),a=GQ(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Fpe(i,a))<55296||r>56319||a+1===s||(o=Fpe(i,a+1))<56320||o>57343?e?gLt(i,a):r:e?vLt(i,a,a+2):o-56320+(r-55296<<10)+65536}},J8e={charAt:mLt(!0)},yLt=J8e.charAt,bLt=function(e,t,n){return t+(n?yLt(e,t).length:1)},wLt=Zn.Array,ALt=Math.max,Qz=function(e,t,n){for(var r=F5(e),o=sC(t,r),i=sC(n===void 0?r:n,r),a=wLt(ALt(i-o,0)),s=0;o<i;o++,s++)V8e(a,s,e[o]);return a.length=s,a},CLt=Zn.TypeError,Upe=function(e,t){var n=e.exec;if(wi(n)){var r=ci(n,e,t);return r!==null&&vs(r),r}if(Oc(e)==="RegExp")return ci(lC,e,t);throw CLt("RegExp#exec called on incompatible receiver")},d1=K8e.UNSUPPORTED_Y,xLt=Math.min,eEe=[].push,SLt=So(/./.exec),f1=So(eEe),o4=So("".slice);(function(e,t,n,r){var o=Ma(e),i=!Ui((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Ui((function(){var u=!1,d=/a/;return(d={}).constructor={},d.constructor[dLt]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=So(/./[o]),l=(function(u,d,c){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,y=Gh(nC(this)),m=v===void 0?4294967295:v>>>0;if(m===0)return[];if(p===void 0)return[y];if(!Bi(h=p)||!((g=h[fLt])!==void 0?g:Oc(h)=="RegExp"))return ci(d,y,p,m);for(var b,w,A,S=[],k=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),M=0,D=new RegExp(p.source,k+"g");(b=ci(lC,D,y))&&!((w=D.lastIndex)>M&&(f1(S,o4(y,M,b.index)),b.length>1&&b.index<y.length&&Z8e(eEe,S,Qz(b,1)),A=b[0].length,M=w,S.length>=m));)D.lastIndex===b.index&&D.lastIndex++;return M===y.length?!A&&SLt(D,"")||f1(S,""):f1(S,o4(y,M)),S.length>m?Qz(S,0,m):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ci(d,this,p,v)}:d,[function(p,v){var h=nC(this),g=p==null?void 0:iC(p,u);return g?ci(g,p,h,v):ci(f,Gh(h),p,v)},function(p,v){var h=vs(this),g=Gh(p),y=c(f,h,g,v,f!==d);if(y.done)return y.value;var m=X8e(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(d1?"g":"y"),A=new m(d1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return Upe(A,g)===null?[g]:[];for(var k=0,M=0,D=[];M<g.length;){A.lastIndex=d1?0:M;var P,O=Upe(A,d1?o4(g,M):g);if(O===null||(P=xLt($8e(A.lastIndex+(d1?M:0)),g.length))===k)M=bLt(g,M,b);else{if(f1(D,o4(g,k,M)),D.length===S)return D;for(var _=1;_<=O.length-1;_++)if(f1(D,O[_]),D.length===S)return D;M=k=P}}return f1(D,o4(g,k)),D}]})(o,""[e],(function(u,d,c,f,p){var v=So(u),h=d.exec;return h===lC||h===QR.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));ic(String.prototype,e,l[0]),ic(QR,o,l[1])}r&&Rd(QR[o],"sham",!0)})("split",0,!!Ui((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),d1);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var r_=function(){return r_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r_.apply(this,arguments)};function eY(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function tY(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function ELt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,s){(function(l,u,d,c){Promise.resolve(c).then((function(f){l({value:f,done:d})}),u)})(a,s,(i=e[o](i)).done,i.value)}))}}}var Yz=Ma("unscopables"),Zz=Array.prototype;Zz[Yz]==null&&Ap.f(Zz,Yz,{configurable:!0,value:XQ(null)});var bv,$pe,zpe,YR=function(e){Zz[Yz][e]=!0},mb={},kLt=!Ui((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jpe=qQ("IE_PROTO"),Xz=Zn.Object,TLt=Xz.prototype,o_=kLt?Xz.getPrototypeOf:function(e){var t=jQ(e);if(ja(t,jpe))return t[jpe];var n=t.constructor;return wi(n)&&t instanceof n?n.prototype:t instanceof Xz?TLt:null},Jz=Ma("iterator"),tEe=!1;[].keys&&("next"in(zpe=[].keys())?($pe=o_(o_(zpe)))!==Object.prototype&&(bv=$pe):tEe=!0);var _Lt=bv==null||Ui((function(){var e={};return bv[Jz].call(e)!==e}));_Lt&&(bv={}),wi(bv[Jz])||ic(bv,Jz,(function(){return this}));var nY={IteratorPrototype:bv,BUGGY_SAFARI_ITERATORS:tEe},DLt=Ap.f,Hpe=Ma("toStringTag"),i_=function(e,t,n){e&&!ja(e=n?e:e.prototype,Hpe)&&DLt(e,Hpe,{configurable:!0,value:t})},ILt=nY.IteratorPrototype,OLt=function(){return this},MLt=Zn.String,PLt=Zn.TypeError,yb=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=So(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return vs(r),(function(i){if(typeof i=="object"||wi(i))return i;throw PLt("Can't set "+MLt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),NLt=L5.PROPER,RLt=L5.CONFIGURABLE,Wpe=nY.IteratorPrototype,ZR=nY.BUGGY_SAFARI_ITERATORS,i4=Ma("iterator"),BLt=function(){return this},nEe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=XQ(ILt,{next:J7(1,m)}),i_(g,w,!1),mb[w]=OLt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!ZR&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[i4]||f["@@iterator"]||o&&f[o],v=!ZR&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=o_(h.call(new e)))!==Object.prototype&&s.next&&(o_(s)!==Wpe&&(yb?yb(s,Wpe):wi(s[i4])||ic(s,i4,BLt)),i_(s,d,!0)),NLt&&o=="values"&&p&&p.name!=="values"&&(RLt?Rd(f,"name","values"):(c=!0,v=function(){return ci(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||_d({target:t,proto:!0,forced:ZR||c},l)),f[i4]!==v&&ic(f,i4,v,{name:o}),mb[t]=v,l},LLt=vu.set,FLt=vu.getterFor("Array Iterator"),O4=nEe(Array,"Array",(function(e,t){LLt(this,{type:"Array Iterator",target:$0(e),index:0,kind:t})}),(function(){var e=FLt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mb.Arguments=mb.Array,YR("keys"),YR("values"),YR("entries");var ULt=J8e.charAt,$Lt=vu.set,zLt=vu.getterFor("String Iterator");nEe(String,"String",(function(e){$Lt(this,{type:"String Iterator",string:Gh(e),index:0})}),(function(){var e,t=zLt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ULt(n,r),t.index+=e.length,{value:e,done:!1})}));var a_=function(e,t,n){for(var r in t)ic(e,r,t[r],n);return e},Vpe=JT.f,qpe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jLt={f:function(e){return qpe&&Oc(e)=="Window"?(function(t){try{return Vpe(t)}catch{return Qz(qpe)}})(e):Vpe($0(e))}},Gpe=Ui((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Y6=Object.isExtensible,Hg=Ui((function(){Y6(1)}))||Gpe?function(e){return!!Bi(e)&&(!Gpe||Oc(e)!="ArrayBuffer")&&(!Y6||Y6(e))}:Y6,HLt=!Ui((function(){return Object.isExtensible(Object.preventExtensions({}))})),rY=LQ((function(e){var t=Ap.f,n=!1,r=HQ("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=JT.f,l=So([].splice),u={};u[r]=1,s(u).length&&(JT.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},_d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jLt.f}))},fastKey:function(s,l){if(!Bi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ja(s,r)){if(!Hg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!ja(s,r)){if(!Hg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return HLt&&n&&Hg(s)&&!ja(s,r)&&i(s),s}};t9[r]=!0})),Kpe=So(So.bind),uC=function(e,t){return E0(e),t===void 0?e:Kpe?Kpe(e,t):function(){return e.apply(t,arguments)}},WLt=Ma("iterator"),VLt=Array.prototype,qLt=Ma("iterator"),Qpe=function(e){if(e!=null)return iC(e,qLt)||iC(e,"@@iterator")||mb[n9(e)]},GLt=Zn.TypeError,Ype=function(e,t,n){var r,o;vs(e);try{if(!(r=iC(e,"return"))){if(t==="throw")throw n;return n}r=ci(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return vs(r),n},KLt=Zn.TypeError,z8=function(e,t){this.stopped=e,this.result=t},Zpe=z8.prototype,s_=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=uC(t,c),g=function(m){return r&&Ype(r,"normal",m),new z8(!0,m)},y=function(m){return f?(vs(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=Qpe(e)))throw KLt(QT(e)+" is not iterable");if((d=o)!==void 0&&(mb.Array===d||VLt[WLt]===d)){for(i=0,a=F5(e);a>i;i++)if((s=y(e[i]))&&rC(Zpe,s))return s;return new z8(!1)}r=(function(m,b){var w=arguments.length<2?Qpe(m):b;if(E0(w))return vs(ci(w,m));throw GLt(QT(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=ci(l,r)).done;){try{s=y(u.value)}catch(m){Ype(r,"throw",m)}if(typeof s=="object"&&s&&rC(Zpe,s))return s}return new z8(!1)},QLt=Zn.TypeError,oY=function(e,t){if(rC(t,e))return e;throw QLt("Incorrect invocation")},rEe=Ma("iterator"),oEe=!1;try{var YLt=0,Xpe={next:function(){return{done:!!YLt++}},return:function(){oEe=!0}};Xpe[rEe]=function(){return this},Array.from(Xpe,(function(){throw 2}))}catch{}var iEe=function(e,t){if(!oEe)return!1;var n=!1;try{var r={};r[rEe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},ZLt=Ma("species"),Jpe=Zn.Array,XLt=function(e,t){return new((function(n){var r;return t_(n)&&(r=n.constructor,(YQ(r)&&(r===Jpe||t_(r.prototype))||Bi(r)&&(r=r[ZLt])===null)&&(r=void 0)),r===void 0?Jpe:r})(e))(t===0?0:t)},ehe=So([].push),XR=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=jQ(l),h=FQ(v),g=uC(u,d),y=F5(h),m=0,b=c||XLt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:ehe(w,f)}else switch(e){case 4:return!1;case 7:ehe(w,f)}return i?-1:r||o?o:w}},iY={forEach:XR(0),find:XR(5),findIndex:XR(6)},Z6=rY.getWeakData,JLt=vu.set,eFt=vu.getterFor,tFt=iY.find,nFt=iY.findIndex,rFt=So([].splice),oFt=0,X6=function(e){return e.frozen||(e.frozen=new aEe)},aEe=function(){this.entries=[]},JR=function(e,t){return tFt(e.entries,(function(n){return n[0]===t}))};aEe.prototype={get:function(e){var t=JR(this,e);if(t)return t[1]},has:function(e){return!!JR(this,e)},set:function(e,t){var n=JR(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=nFt(this.entries,(function(n){return n[0]===e}));return~t&&rFt(this.entries,t,1),!!~t}};var a4,sEe={getConstructor:function(e,t,n,r){var o=e((function(l,u){oY(l,i),JLt(l,{type:t,id:oFt++,frozen:void 0}),u!=null&&s_(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=eFt(t),s=function(l,u,d){var c=a(l),f=Z6(vs(u),!0);return f===!0?X6(c).set(u,d):f[c.id]=d,l};return a_(i,{delete:function(l){var u=a(this);if(!Bi(l))return!1;var d=Z6(l);return d===!0?X6(u).delete(l):d&&ja(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Bi(l))return!1;var d=Z6(l);return d===!0?X6(u).has(l):d&&ja(d,u.id)}}),a_(i,n?{get:function(l){var u=a(this);if(Bi(l)){var d=Z6(l);return d===!0?X6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},J6=vu.enforce,iFt=!Zn.ActiveXObject&&"ActiveXObject"in Zn,lEe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},aFt=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Zn[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=So(s[g]);ic(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Bi(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Bi(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Bi(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(e_(e,!wi(a)||!(o||s.forEach&&!Ui((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),rY.enable();else if(e_(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=Ui((function(){c.has(1)})),v=iEe((function(g){new a(g)})),h=!o&&Ui((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){oY(g,s);var m=(function(b,w,A){var S,k;return yb&&wi(S=w.constructor)&&S!==A&&Bi(k=S.prototype)&&k!==A.prototype&&yb(b,k),b})(new a,g,l);return y!=null&&s_(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,_d({global:!0,forced:l!=a},u),i_(l,e),o||n.setStrong(l,e,r),l})("WeakMap",lEe,sEe);if(F8e&&iFt){a4=sEe.getConstructor(lEe,"WeakMap",!0),rY.enable();var s4=aFt.prototype,the=So(s4.delete),eS=So(s4.has),nhe=So(s4.get),rhe=So(s4.set);a_(s4,{delete:function(e){if(Bi(e)&&!Hg(e)){var t=J6(this);return t.frozen||(t.frozen=new a4),the(this,e)||t.frozen.delete(e)}return the(this,e)},has:function(e){if(Bi(e)&&!Hg(e)){var t=J6(this);return t.frozen||(t.frozen=new a4),eS(this,e)||t.frozen.has(e)}return eS(this,e)},get:function(e){if(Bi(e)&&!Hg(e)){var t=J6(this);return t.frozen||(t.frozen=new a4),eS(this,e)?nhe(this,e):t.frozen.get(e)}return nhe(this,e)},set:function(e,t){if(Bi(e)&&!Hg(e)){var n=J6(this);n.frozen||(n.frozen=new a4),eS(this,e)?rhe(this,e,t):n.frozen.set(e,t)}else rhe(this,e,t);return this}})}var l_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eB=aC("span").classList,ohe=eB&&eB.constructor&&eB.constructor.prototype,uEe=ohe===Object.prototype?void 0:ohe,tB=Ma("iterator"),ihe=Ma("toStringTag"),nB=O4.values,cEe=function(e,t){if(e){if(e[tB]!==nB)try{Rd(e,tB,nB)}catch{e[tB]=nB}if(e[ihe]||Rd(e,ihe,t),l_[t]){for(var n in O4)if(e[n]!==O4[n])try{Rd(e,n,O4[n])}catch{e[n]=O4[n]}}}};for(var rB in l_)cEe(Zn[rB]&&Zn[rB].prototype,rB);cEe(uEe,"DOMTokenList");var dEe=function(e,t){var n=[][e];return!!n&&Ui((function(){n.call(null,t||function(){throw 1},1)}))},sFt=iY.forEach,oB=dEe("forEach")?[].forEach:function(e){return sFt(this,e,arguments.length>1?arguments[1]:void 0)},fEe=function(e){if(e&&e.forEach!==oB)try{Rd(e,"forEach",oB)}catch{e.forEach=oB}};for(var iB in l_)l_[iB]&&fEe(Zn[iB]&&Zn[iB].prototype);fEe(uEe);var cC,p1,ahe,aB,u_=Zn.Promise,she=Ma("species"),pEe=/(?:ipad|iphone|ipod).*applewebkit/i.test(my),Kh=Oc(Zn.process)=="process",ej=Zn.setImmediate,lhe=Zn.clearImmediate,lFt=Zn.process,sB=Zn.Dispatch,uFt=Zn.Function,uhe=Zn.MessageChannel,cFt=Zn.String,lB=0,C3={};try{cC=Zn.location}catch{}var aY=function(e){if(ja(C3,e)){var t=C3[e];delete C3[e],t()}},uB=function(e){return function(){aY(e)}},che=function(e){aY(e.data)},dhe=function(e){Zn.postMessage(cFt(e),cC.protocol+"//"+cC.host)};ej&&lhe||(ej=function(e){var t=q8e(arguments,1);return C3[++lB]=function(){Z8e(wi(e)?e:uFt(e),void 0,t)},p1(lB),lB},lhe=function(e){delete C3[e]},Kh?p1=function(e){lFt.nextTick(uB(e))}:sB&&sB.now?p1=function(e){sB.now(uB(e))}:uhe&&!pEe?(aB=(ahe=new uhe).port2,ahe.port1.onmessage=che,p1=uC(aB.postMessage,aB)):Zn.addEventListener&&wi(Zn.postMessage)&&!Zn.importScripts&&cC&&cC.protocol!=="file:"&&!Ui(dhe)?(p1=dhe,Zn.addEventListener("message",che,!1)):p1="onreadystatechange"in aC("script")?function(e){Gz.appendChild(aC("script")).onreadystatechange=function(){Gz.removeChild(this),aY(e)}}:function(e){setTimeout(uB(e),0)});var l4,Mg,x3,P1,cB,dB,fB,fhe,hEe={set:ej},dFt=/ipad|iphone|ipod/i.test(my)&&Zn.Pebble!==void 0,fFt=/web0s(?!.*chrome)/i.test(my),pFt=VQ.f,pB=hEe.set,phe=Zn.MutationObserver||Zn.WebKitMutationObserver,hhe=Zn.document,ghe=Zn.process,tS=Zn.Promise,vhe=pFt(Zn,"queueMicrotask"),gEe=vhe&&vhe.value;gEe||(l4=function(){var e,t;for(Kh&&(e=ghe.domain)&&e.exit();Mg;){t=Mg.fn,Mg=Mg.next;try{t()}catch(n){throw Mg?P1():x3=void 0,n}}x3=void 0,e&&e.enter()},pEe||Kh||fFt||!phe||!hhe?!dFt&&tS&&tS.resolve?((fB=tS.resolve(void 0)).constructor=tS,fhe=uC(fB.then,fB),P1=function(){fhe(l4)}):Kh?P1=function(){ghe.nextTick(l4)}:(pB=uC(pB,Zn),P1=function(){pB(l4)}):(cB=!0,dB=hhe.createTextNode(""),new phe(l4).observe(dB,{characterData:!0}),P1=function(){dB.data=cB=!cB}));var hB,mhe,vEe,yhe,mEe=gEe||function(e){var t={fn:e,next:void 0};x3&&(x3.next=t),Mg||(Mg=t,P1()),x3=t},hFt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=E0(t),this.reject=E0(n)},sY={f:function(e){return new hFt(e)}},tj=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},gFt=typeof window=="object",yEe=hEe.set,vFt=Ma("species"),Of="Promise",bhe=vu.getterFor(Of),mFt=vu.set,yFt=vu.getterFor(Of),Ag=u_&&u_.prototype,Dd=u_,u4=Ag,bEe=Zn.TypeError,nj=Zn.document,lY=Zn.process,yy=sY.f,bFt=yy,wFt=!!(nj&&nj.createEvent&&Zn.dispatchEvent),wEe=wi(Zn.PromiseRejectionEvent),AEe=!1,S3=e_(Of,(function(){var e=e9(Dd),t=e!==String(Dd);if(!t&&oC===66)return!0;if(oC>=51&&/native code/.test(e))return!1;var n=new Dd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[vFt]=r,!(AEe=n.then((function(){}))instanceof r)||!t&&gFt&&!wEe})),AFt=S3||!iEe((function(e){Dd.all(e).catch((function(){}))})),CEe=function(e){var t;return!(!Bi(e)||!wi(t=e.then))&&t},uY=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;mEe((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&xFt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(bEe("Promise-chain cycle")):(s=CEe(a))?ci(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&CFt(e)}))}},xEe=function(e,t,n){var r,o;wFt?((r=nj.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Zn.dispatchEvent(r)):r={promise:t,reason:n},!wEe&&(o=Zn["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=Zn.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},CFt=function(e){ci(yEe,Zn,(function(){var t,n=e.facade,r=e.value;if(whe(e)&&(t=tj((function(){Kh?lY.emit("unhandledRejection",r,n):xEe("unhandledrejection",n,r)})),e.rejection=Kh||whe(e)?2:1,t.error))throw t.value}))},whe=function(e){return e.rejection!==1&&!e.parent},xFt=function(e){ci(yEe,Zn,(function(){var t=e.facade;Kh?lY.emit("rejectionHandled",t):xEe("rejectionhandled",t,e.value)}))},j1=function(e,t,n){return function(r){e(t,r,n)}},by=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,uY(e,!0))},rj=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw bEe("Promise can't be resolved itself");var r=CEe(t);r?mEe((function(){var o={done:!1};try{ci(r,t,j1(rj,o,e),j1(by,o,e))}catch(i){by(o,i,e)}})):(e.value=t,e.state=1,uY(e,!1))}catch(o){by({done:!1},o,e)}}};if(S3&&(u4=(Dd=function(e){oY(this,u4),E0(e),ci(hB,this);var t=bhe(this);try{e(j1(rj,t),j1(by,t))}catch(n){by(t,n)}}).prototype,(hB=function(e){mFt(this,{type:Of,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=a_(u4,{then:function(e,t){var n=yFt(this),r=n.reactions,o=yy(X8e(this,Dd));return o.ok=!wi(e)||e,o.fail=wi(t)&&t,o.domain=Kh?lY.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&uY(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),mhe=function(){var e=new hB,t=bhe(e);this.promise=e,this.resolve=j1(rj,t),this.reject=j1(by,t)},sY.f=yy=function(e){return e===Dd||e===vEe?new mhe(e):bFt(e)},wi(u_)&&Ag!==Object.prototype)){yhe=Ag.then,AEe||(ic(Ag,"then",(function(e,t){var n=this;return new Dd((function(r,o){ci(yhe,n,r,o)})).then(e,t)}),{unsafe:!0}),ic(Ag,"catch",u4.catch,{unsafe:!0}));try{delete Ag.constructor}catch{}yb&&yb(Ag,u4)}_d({global:!0,wrap:!0,forced:S3},{Promise:Dd}),i_(Dd,Of,!1),(function(e){var t=Xv("Promise"),n=Ap.f;qd&&t&&!t[she]&&n(t,she,{configurable:!0,get:function(){return this}})})(),vEe=Xv(Of),_d({target:Of,stat:!0,forced:S3},{reject:function(e){var t=yy(this);return ci(t.reject,void 0,e),t.promise}}),_d({target:Of,stat:!0,forced:S3},{resolve:function(e){return(function(t,n){if(vs(t),Bi(n)&&n.constructor===t)return n;var r=sY.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),_d({target:Of,stat:!0,forced:AFt},{all:function(e){var t=this,n=yy(t),r=n.resolve,o=n.reject,i=tj((function(){var a=E0(t.resolve),s=[],l=0,u=1;s_(e,(function(d){var c=l++,f=!1;u++,ci(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=yy(t),r=n.reject,o=tj((function(){var i=E0(t.resolve);s_(e,(function(a){ci(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var SFt=L5.PROPER,oj=RegExp.prototype,SEe=oj.toString,EFt=So(G8e),kFt=Ui((function(){return SEe.call({source:"a",flags:"b"})!="/a/b"})),TFt=SFt&&SEe.name!="toString";(kFt||TFt)&&ic(RegExp.prototype,"toString",(function(){var e=vs(this),t=Gh(e.source),n=e.flags;return"/"+t+"/"+Gh(n===void 0&&rC(oj,e)&&!("flags"in oj)?EFt(e):n)}),{unsafe:!0});var _Ft=L5.EXISTS,DFt=Ap.f,EEe=Function.prototype,IFt=So(EEe.toString),kEe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,OFt=So(kEe.exec);qd&&!_Ft&&DFt(EEe,"name",{configurable:!0,get:function(){try{return OFt(kEe,IFt(this))[1]}catch{return""}}});var Ahe=new WeakMap;function TEe(e){return e.getMenuConfig("uploadImage")}function MFt(e,t){return eY(this,void 0,void 0,(function(){return tY(this,(function(n){return[2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),s=a.indexOf("data:image")===0?"":a;lv(e,a,t.name,s),r("ok")}}}))]}))}))}function PFt(e,t){return eY(this,void 0,void 0,(function(){var n,r,o,i;return tY(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=Ahe.get(s);if(l!=null)return l;var u=TEe(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=oxe(r_(r_({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(P,O,_){return lv(s,P,O,_)})),void d(h,g);var y=g.errno,m=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(m===0){if(Array.isArray(w))w.forEach((function(P){var O=P.url,_=O===void 0?"":O,B=P.alt,N=B===void 0?"":B,q=P.href;lv(s,_,N,q===void 0?"":q)}));else{var A=w.url,S=A===void 0?"":A,k=w.alt,M=k===void 0?"":k,D=w.href;lv(s,S,M,D===void 0?"":D)}d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),Ahe.set(s,l),l})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function _Ee(e,t){var n,r;return eY(this,void 0,void 0,(function(){var o,i,a,s,l,u,d,c,f;return tY(this,(function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=TEe(e),a=i.customUpload,s=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),l=ELt(o),p.label=2;case 2:return[4,l.next()];case 3:return(u=p.sent()).done?[3,10]:(d=u.value,c=d.size,s&&c<=s?[4,MFt(e,d)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(d,(function(v,h,g){return lv(e,v,h,g)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,PFt(e,d)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),u&&!u.done&&(r=l.return)?[4,r.call(l)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var NFt=So([].join),RFt=FQ!=Object,BFt=dEe("join",",");_d({target:"Array",proto:!0,forced:RFt||!BFt},{join:function(e){return NFt($0(this),e===void 0?",":e)}}),ec&&(Mt.fn.append=ec),Hd&&(Mt.fn.on=Hd),rb&&(Mt.fn.remove=rb),jd&&(Mt.fn.val=jd),Aae&&(Mt.fn.click=Aae),Jy&&(Mt.fn.hide=Jy);var LFt=(function(){function e(){this.title=Yn("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return O7(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(d,c,f){return lv(t,d,c,f)}));else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var l=Mt("body"),u=Mt('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var d=u[0].files;_Ee(t,d)}))}},e})(),FFt={menus:[{key:"uploadImage",factory:function(){return new LFt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(O7(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(i){return(function(a,s){var l=typeof Symbol=="function"&&a[Symbol.iterator];if(!l)return a;var u,d,c=l.call(a),f=[];try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)f.push(u.value)}catch(p){d={error:p}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}return f})(i.type.split("/"),1)[0]==="image"}))?_Ee(e,o):t(r)}},n}};zl("en",{highLightModule:{selectLang:"Language"}}),zl("zh-CN",{highLightModule:{selectLang:"选择语言"}});var c_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cY(e){var t={exports:{}};return e(t,t.exports),t.exports}var Yp,j8,nS=function(e){return e&&e.Math==Math&&e},_o=nS(typeof globalThis=="object"&&globalThis)||nS(typeof window=="object"&&window)||nS(typeof self=="object"&&self)||nS(typeof c_=="object"&&c_)||(function(){return this})()||Function("return this")(),UFt=Object.defineProperty,dY=function(e,t){try{UFt(_o,e,{value:t,configurable:!0,writable:!0})}catch{_o[e]=t}return t},Qh=_o["__core-js_shared__"]||dY("__core-js_shared__",{}),fY=cY((function(e){(e.exports=function(t,n){return Qh[t]||(Qh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),DEe=Function.prototype,ij=DEe.bind,aj=DEe.call,$Ft=ij&&ij.bind(aj),ii=ij?function(e){return e&&$Ft(aj,e)}:function(e){return e&&function(){return aj.apply(e,arguments)}},zFt=_o.TypeError,bb=function(e){if(e==null)throw zFt("Can't call method on "+e);return e},jFt=_o.Object,pY=function(e){return jFt(bb(e))},HFt=ii({}.hasOwnProperty),Vu=Object.hasOwn||function(e,t){return HFt(pY(e),t)},WFt=0,VFt=Math.random(),qFt=ii(1 .toString),IEe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+qFt(++WFt+VFt,36)},pl=function(e){return typeof e=="function"},GFt=function(e){return pl(e)?e:void 0},$5=function(e,t){return arguments.length<2?GFt(_o[e]):_o[e]&&_o[e][t]},gB=$5("navigator","userAgent")||"",Che=_o.process,xhe=_o.Deno,She=Che&&Che.versions||xhe&&xhe.version,Ehe=She&&She.v8;Ehe&&(j8=(Yp=Ehe.split("."))[0]>0&&Yp[0]<4?1:+(Yp[0]+Yp[1])),!j8&&gB&&(!(Yp=gB.match(/Edge\/(\d+)/))||Yp[1]>=74)&&(Yp=gB.match(/Chrome\/(\d+)/))&&(j8=+Yp[1]);var khe=j8,ds=function(e){try{return!!e()}catch{return!0}},sj=!!Object.getOwnPropertySymbols&&!ds((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&khe&&khe<41})),hY=sj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",c4=fY("wks"),wv=_o.Symbol,The=wv&&wv.for,KFt=hY?wv:wv&&wv.withoutSetter||IEe,z0=function(e){if(!Vu(c4,e)||!sj&&typeof c4[e]!="string"){var t="Symbol."+e;sj&&Vu(wv,e)?c4[e]=wv[e]:c4[e]=hY&&The?The(t):KFt(t)}return c4[e]},OEe={};OEe[z0("toStringTag")]="z";var gY=String(OEe)==="[object z]",Gd=!ds((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Rf=function(e){return typeof e=="object"?e!==null:pl(e)},lj=_o.document,QFt=Rf(lj)&&Rf(lj.createElement),vY=function(e){return QFt?lj.createElement(e):{}},MEe=!Gd&&!ds((function(){return Object.defineProperty(vY("div"),"a",{get:function(){return 7}}).a!=7})),YFt=_o.String,ZFt=_o.TypeError,Mc=function(e){if(Rf(e))return e;throw ZFt(YFt(e)+" is not an object")},d4=Function.prototype.call,us=d4.bind?d4.bind(d4):function(){return d4.apply(d4,arguments)},PEe=ii({}.isPrototypeOf),XFt=_o.Object,vB=hY?function(e){return typeof e=="symbol"}:function(e){var t=$5("Symbol");return pl(t)&&PEe(t.prototype,XFt(e))},JFt=_o.String,NEe=function(e){try{return JFt(e)}catch{return"Object"}},eUt=_o.TypeError,REe=function(e){if(pl(e))return e;throw eUt(NEe(e)+" is not a function")},BEe=function(e,t){var n=e[t];return n==null?void 0:REe(n)},tUt=_o.TypeError,nUt=_o.TypeError,rUt=z0("toPrimitive"),mY=function(e){var t=(function(n,r){if(!Rf(n)||vB(n))return n;var o,i=BEe(n,rUt);if(i){if(o=us(i,n,r),!Rf(o)||vB(o))return o;throw nUt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(pl(l=a.toString)&&!Rf(u=us(l,a))||pl(l=a.valueOf)&&!Rf(u=us(l,a)))return u;throw tUt("Can't convert object to primitive value")})(n)})(e,"string");return vB(t)?t:t+""},oUt=_o.TypeError,_he=Object.defineProperty,r9={f:Gd?_he:function(e,t,n){if(Mc(e),t=mY(t),Mc(n),MEe)try{return _he(e,t,n)}catch{}if("get"in n||"set"in n)throw oUt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wb=Gd?function(e,t,n){return r9.f(e,t,yY(1,n))}:function(e,t,n){return e[t]=n,e},iUt=ii(Function.toString);pl(Qh.inspectSource)||(Qh.inspectSource=function(e){return iUt(e)});var uj,d_,cj,bY=Qh.inspectSource,Dhe=_o.WeakMap,aUt=pl(Dhe)&&/native code/.test(bY(Dhe)),Ihe=fY("keys"),LEe=function(e){return Ihe[e]||(Ihe[e]=IEe(e))},wY={},Ohe=_o.TypeError,sUt=_o.WeakMap;if(aUt||Qh.state){var ug=Qh.state||(Qh.state=new sUt),lUt=ii(ug.get),Mhe=ii(ug.has),uUt=ii(ug.set);uj=function(e,t){if(Mhe(ug,e))throw new Ohe("Object already initialized");return t.facade=e,uUt(ug,e,t),t},d_=function(e){return lUt(ug,e)||{}},cj=function(e){return Mhe(ug,e)}}else{var h1=LEe("state");wY[h1]=!0,uj=function(e,t){if(Vu(e,h1))throw new Ohe("Object already initialized");return t.facade=e,wb(e,h1,t),t},d_=function(e){return Vu(e,h1)?e[h1]:{}},cj=function(e){return Vu(e,h1)}}var dj={get:d_,enforce:function(e){return cj(e)?d_(e):uj(e,{})}},FEe=Function.prototype,cUt=Gd&&Object.getOwnPropertyDescriptor,Phe=Vu(FEe,"name"),UEe={PROPER:Phe&&(function(){}).name==="something",CONFIGURABLE:Phe&&(!Gd||Gd&&cUt(FEe,"name").configurable)},dC=cY((function(e){var t=UEe.CONFIGURABLE,n=dj.get,r=dj.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;pl(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vu(s,"name")||t&&s.name!==p)&&wb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==_o?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:wb(i,a,s)):c?i[a]=s:dY(a,s)})(Function.prototype,"toString",(function(){return pl(this)&&n(this).source||bY(this)}))})),dUt=ii({}.toString),fUt=ii("".slice),Yh=function(e){return fUt(dUt(e),8,-1)},pUt=z0("toStringTag"),hUt=_o.Object,gUt=Yh((function(){return arguments})())=="Arguments",AY=gY?Yh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=hUt(e),pUt))=="string"?n:gUt?Yh(t):(r=Yh(t))=="Object"&&pl(t.callee)?"Arguments":r},vUt=gY?{}.toString:function(){return"[object "+AY(this)+"]"};gY||dC(Object.prototype,"toString",vUt,{unsafe:!0});var Nhe,Rhe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mB=vY("span").classList,Bhe=mB&&mB.constructor&&mB.constructor.prototype,mUt=Bhe===Object.prototype?void 0:Bhe,Lhe=ii(ii.bind),yB=_o.Object,yUt=ii("".split),CY=ds((function(){return!yB("z").propertyIsEnumerable(0)}))?function(e){return Yh(e)=="String"?yUt(e,""):yB(e)}:yB,bUt=Math.ceil,wUt=Math.floor,xY=function(e){var t=+e;return t!=t||t===0?0:(t>0?wUt:bUt)(t)},AUt=Math.min,$Ee=function(e){return e>0?AUt(xY(e),9007199254740991):0},SY=function(e){return $Ee(e.length)},Fhe=Array.isArray||function(e){return Yh(e)=="Array"},zEe=function(){},CUt=[],jEe=$5("Reflect","construct"),EY=/^\s*(?:class|function)\b/,xUt=ii(EY.exec),SUt=!EY.exec(zEe),f4=function(e){if(!pl(e))return!1;try{return jEe(zEe,CUt,e),!0}catch{return!1}},HEe=!jEe||ds((function(){var e;return f4(f4.call)||!f4(Object)||!f4((function(){e=!0}))||e}))?function(e){if(!pl(e))return!1;switch(AY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return SUt||!!xUt(EY,bY(e))}:f4,EUt=z0("species"),Uhe=_o.Array,kUt=function(e,t){return new((function(n){var r;return Fhe(n)&&(r=n.constructor,(HEe(r)&&(r===Uhe||Fhe(r.prototype))||Rf(r)&&(r=r[EUt])===null)&&(r=void 0)),r===void 0?Uhe:r})(e))(t===0?0:t)},$he=ii([].push),Zp=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=pY(l),h=CY(v),g=(function(A,S){return REe(A),S===void 0?A:Lhe?Lhe(A,S):function(){return A.apply(S,arguments)}})(u,d),y=SY(h),m=0,b=c||kUt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:$he(w,f)}else switch(e){case 4:return!1;case 7:$he(w,f)}return i?-1:r||o?o:w}},TUt=[Zp(0),Zp(1),Zp(2),Zp(3),Zp(4),Zp(5),Zp(6),Zp(7)][0],bB=(Nhe=[].forEach)&&ds((function(){Nhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return TUt(this,e,arguments.length>1?arguments[1]:void 0)},WEe=function(e){if(e&&e.forEach!==bB)try{wb(e,"forEach",bB)}catch{e.forEach=bB}};for(var wB in Rhe)Rhe[wB]&&WEe(_o[wB]&&_o[wB].prototype);WEe(mUt);var zhe={}.propertyIsEnumerable,jhe=Object.getOwnPropertyDescriptor,VEe={f:jhe&&!zhe.call({1:2},1)?function(e){var t=jhe(this,e);return!!t&&t.enumerable}:zhe},o9=function(e){return CY(bb(e))},Hhe=Object.getOwnPropertyDescriptor,qEe={f:Gd?Hhe:function(e,t){if(e=o9(e),t=mY(t),MEe)try{return Hhe(e,t)}catch{}if(Vu(e,t))return yY(!us(VEe.f,e,t),e[t])}},_Ut=Math.max,DUt=Math.min,fj=function(e,t){var n=xY(e);return n<0?_Ut(n+t,0):DUt(n,t)},IUt=function(e){return function(t,n,r){var o,i=o9(t),a=SY(i),s=fj(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},OUt=IUt(!1),Whe=ii([].push),GEe=function(e,t){var n,r=o9(e),o=0,i=[];for(n in r)!Vu(wY,n)&&Vu(r,n)&&Whe(i,n);for(;t.length>o;)Vu(r,n=t[o++])&&(~OUt(i,n)||Whe(i,n));return i},f_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],MUt=f_.concat("length","prototype"),PUt={f:Object.getOwnPropertyNames||function(e){return GEe(e,MUt)}},KEe={f:Object.getOwnPropertySymbols},NUt=ii([].concat),RUt=$5("Reflect","ownKeys")||function(e){var t=PUt.f(Mc(e)),n=KEe.f;return n?NUt(t,n(e)):t},BUt=function(e,t){for(var n=RUt(t),r=r9.f,o=qEe.f,i=0;i<n.length;i++){var a=n[i];Vu(e,a)||r(e,a,o(t,a))}},LUt=/#|\.prototype\./,z5=function(e,t){var n=UUt[FUt(e)];return n==zUt||n!=$Ut&&(pl(t)?ds(t):!!t)},FUt=z5.normalize=function(e){return String(e).replace(LUt,".").toLowerCase()},UUt=z5.data={},$Ut=z5.NATIVE="N",zUt=z5.POLYFILL="P",jUt=z5,HUt=qEe.f,i9=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?_o:u?_o[s]||dY(s,{}):(_o[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HUt(n,r))&&a.value:n[r],!jUt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;BUt(i,o)}(e.sham||o&&o.sham)&&wb(i,"sham",!0),dC(n,r,i,e)}},H8=Object.keys||function(e){return GEe(e,f_)},g1=Object.assign,Vhe=Object.defineProperty,WUt=ii([].concat),qhe=!g1||ds((function(){if(Gd&&g1({b:1},g1(Vhe({},"a",{enumerable:!0,get:function(){Vhe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),g1({},e)[n]!=7||H8(g1({},t)).join("")!=r}))?function(e,t){for(var n=pY(e),r=arguments.length,o=1,i=KEe.f,a=VEe.f;r>o;)for(var s,l=CY(arguments[o++]),u=i?WUt(H8(l),i(l)):H8(l),d=u.length,c=0;d>c;)s=u[c++],Gd&&!us(a,l,s)||(n[s]=l[s]);return n}:g1;i9({target:"Object",stat:!0,forced:Object.assign!==qhe},{assign:qhe});var Ghe=cY((function(e){var t=(function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof s?new s(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,m){var b,w;switch(m=m||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),m[w])return m[w];for(var A in b={},m[w]=b,y)y.hasOwnProperty(A)&&(b[A]=g(y[A],m));return b;case"Array":return w=a.util.objId(y),m[w]?m[w]:(b=[],m[w]=b,y.forEach((function(S,k){b[k]=g(S,m)})),b);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var m in y)if(y[m].src==g)return y[m]}return null}},isActive:function(g,y,m){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!m}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var m=a.util.clone(a.languages[g]);for(var b in y)m[b]=y[b];return m},insertBefore:function(g,y,m,b){var w=(b=b||a.languages)[g],A={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var k in m)m.hasOwnProperty(k)&&(A[k]=m[k]);m.hasOwnProperty(S)||(A[S]=w[S])}var M=b[g];return b[g]=A,a.languages.DFS(a.languages,(function(D,P){P===M&&D!=g&&(this[D]=A)})),A},DFS:function g(y,m,b,w){w=w||{};var A=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){m.call(y,S,y[S],b||S);var k=y[S],M=a.util.type(k);M!=="Object"||w[A(k)]?M!=="Array"||w[A(k)]||(w[A(k)]=!0,g(k,m,S,w)):(w[A(k)]=!0,g(k,m,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,m){var b={callback:m,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,A=0;w=b.elements[A++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,m){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var A=g.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&(A.className=A.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function k(D){S.highlightedCode=D,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),m&&m.call(S.element)}if(a.hooks.run("before-sanity-check",S),(A=S.element.parentElement)&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(m&&m.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var M=new Worker(a.filename);M.onmessage=function(D){k(D.data)},M.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else k(a.highlight(S.code,S.grammar,S.language));else k(a.util.encode(S.code))},highlight:function(g,y,m){var b={code:g,grammar:y,language:m};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),s.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var m=y.rest;if(m){for(var b in m)y[b]=m[b];delete y.rest}var w=new d;return c(w,w.head,g),u(g,w,y,w.head,0),(function(A){for(var S=[],k=A.head.next;k!==A.tail;)S.push(k.value),k=k.next;return S})(w)},hooks:{all:{},add:function(g,y){var m=a.hooks.all;m[g]=m[g]||[],m[g].push(y)},run:function(g,y){var m=a.hooks.all[g];if(m&&m.length)for(var b,w=0;b=m[w++];)b(y)}},Token:s};function s(g,y,m,b){this.type=g,this.content=y,this.alias=m,this.length=0|(b||"").length}function l(g,y,m,b){g.lastIndex=y;var w=g.exec(m);if(w&&b&&w[1]){var A=w[1].length;w.index+=A,w[0]=w[0].slice(A)}return w}function u(g,y,m,b,w,A){for(var S in m)if(m.hasOwnProperty(S)&&m[S]){var k=m[S];k=Array.isArray(k)?k:[k];for(var M=0;M<k.length;++M){if(A&&A.cause==S+","+M)return;var D=k[M],P=D.inside,O=!!D.lookbehind,_=!!D.greedy,B=D.alias;if(_&&!D.pattern.global){var N=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,N+"g")}for(var q=D.pattern||D,U=b.next,j=w;U!==y.tail&&!(A&&j>=A.reach);j+=U.value.length,U=U.next){var H=U.value;if(y.length>g.length)return;if(!(H instanceof s)){var G,Z=1;if(_){if(!(G=l(q,j,g,O)))break;var $=G.index,L=G.index+G[0].length,W=j;for(W+=U.value.length;$>=W;)W+=(U=U.next).value.length;if(j=W-=U.value.length,U.value instanceof s)continue;for(var ie=U;ie!==y.tail&&(W<L||typeof ie.value=="string");ie=ie.next)Z++,W+=ie.value.length;Z--,H=g.slice(j,W),G.index-=j}else if(!(G=l(q,0,H,O)))continue;$=G.index;var ee=G[0],te=H.slice(0,$),X=H.slice($+ee.length),ue=j+H.length;A&&ue>A.reach&&(A.reach=ue);var ve=U.prev;if(te&&(ve=c(y,ve,te),j+=te.length),f(y,ve,Z),U=c(y,ve,new s(S,P?a.tokenize(ee,P):ee,B,ee)),X&&c(y,U,X),Z>1){var Me={cause:S+","+M,reach:ue};u(g,y,m,U.prev,j,Me),A&&Me.reach>A.reach&&(A.reach=Me.reach)}}}}}}function d(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function c(g,y,m){var b=y.next,w={value:m,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function f(g,y,m){for(var b=y.next,w=0;w<m&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(n.Prism=a,s.stringify=function g(y,m){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach((function(M){b+=g(M,m)})),b}var w={type:y.type,content:g(y.content,m),tag:"span",classes:["token",y.type],attributes:{},language:m},A=y.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(w.classes,A):w.classes.push(A)),a.hooks.run("wrap",w);var S="";for(var k in w.attributes)S+=" "+k+'="'+(w.attributes[k]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",(function(g){var y=JSON.parse(g.data),m=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[m],m)),w&&n.close()}),!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),c_!==void 0&&(c_.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(l){l.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(l){var u=l.element;if(u.matches(o)){l.code="",u.setAttribute(r,"loading");var d=u.appendChild(document.createElement("CODE"));d.textContent="Loading…";var c=u.getAttribute("data-src"),f=l.language;if(f==="none"){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=n[p]||p}s(d,f),s(u,f);var v=t.plugins.autoloader;v&&v.loadLanguages(f);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(u.setAttribute(r,"loaded"),d.textContent=h.responseText,t.highlightElement(d)):(u.setAttribute(r,"failed"),h.status>=400?d.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:d.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(l){for(var u,d=(l||document).querySelectorAll(o),c=0;u=d[c++];)t.highlightElement(u)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(l,u){var d=l.className;d=d.replace(i," ")+" language-"+u,l.className=d.replace(/\s+/g," ").trim()}})()}));(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(l,u){return l=l.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(l,u)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(a).join(""):""},s=function(l){for(var u=[],d=0;d<l.length;d++){var c=l[d],f=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?u.length>0&&u[u.length-1].tagName===a(c.content[0].content[1])&&u.pop():c.content[c.content.length-1].content==="/>"||u.push({tagName:a(c.content[0].content[1]),openedBraces:0}):u.length>0&&c.type==="punctuation"&&c.content==="{"?u[u.length-1].openedBraces++:u.length>0&&u[u.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?u[u.length-1].openedBraces--:f=!0),(f||typeof c=="string")&&u.length>0&&u[u.length-1].openedBraces===0){var p=a(c);d<l.length-1&&(typeof l[d+1]=="string"||l[d+1].type==="plain-text")&&(p+=a(l[d+1]),l.splice(d+1,1)),d>0&&(typeof l[d-1]=="string"||l[d-1].type==="plain-text")&&(p=a(l[d-1])+p,l.splice(d-1,1),d--),l[d]=new e.Token("plain-text",p,null,p)}c.content&&typeof c.content!="string"&&s(c.content)}};e.hooks.add("after-tokenize",(function(l){l.language!=="jsx"&&l.language!=="tsx"||s(l.tokens)}))})(Prism),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(l){/<\?/.test(l.code)&&e.languages["markup-templating"].buildPlaceholders(l,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(l){e.languages["markup-templating"].tokenizePlaceholders(l,"php")}))})(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism),(function(e){function t(L,W){return L.replace(/<<(\d+)>>/g,(function(ie,ee){return"(?:"+W[+ee]+")"}))}function n(L,W,ie){return RegExp(t(L,W),"")}function r(L,W){for(var ie=0;ie<W;ie++)L=L.replace(/<<self>>/g,(function(){return"(?:"+L+")"}));return L.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(L){return"\\b(?:"+L.trim().replace(/ /g,"|")+")\\b"}var u=l(i),d=RegExp(l(o+" "+i+" "+a+" "+s)),c=l(i+" "+a+" "+s),f=l(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,m]),A=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,y,m]),k={keyword:d,punctuation:/[<>()?,.:[\]]/},M=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,P=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:RegExp(M),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,f,h]),inside:k}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,h,S,d.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:k},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=D+"|"+M,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,q=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var U=/:[^}\r\n]+/.source,j=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),H=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[j,U]),G=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),Z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,U]);function $(L,W){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[L]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[W,U]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[H]),lookbehind:!0,greedy:!0,inside:$(H,j)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:$(Z,G)}]})})(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(u){["url","bold","italic","strike","code-snippet"].forEach((function(d){u!==d&&(e.languages.markdown[u].inside.content.inside[d]=e.languages.markdown[d])}))})),e.hooks.add("after-tokenize",(function(u){u.language!=="markdown"&&u.language!=="md"||(function d(c){if(c&&typeof c!="string")for(var f=0,p=c.length;f<p;f++){var v=c[f];if(v.type==="code"){var h=v.content[1],g=v.content[3];if(h&&g&&h.type==="code-language"&&g.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,m]:g.alias.push(m):g.alias=[m]}}else d(v.content)}})(u.tokens)})),e.hooks.add("wrap",(function(u){if(u.type==="code-block"){for(var d="",c=0,f=u.classes.length;c<f;c++){var p=u.classes[c],v=/language-(.+)/.exec(p);if(v){d=v[1];break}}var h=e.languages[d];if(h)u.content=e.highlight((function(y){var m=y.replace(a,"");return m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(b,w){var A;return(w=w.toLowerCase())[0]==="#"?(A=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),l(A)):s[w]||b}))})(u.content),h,d);else if(d&&d!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());u.attributes.id=g,e.plugins.autoloader.loadLanguages(d,(function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[d],d))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}}));var VUt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function QEe(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce((function(t,n){return t+QEe(n)}),0)}var rS,qUt=_o.String,Hf=function(e){if(AY(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qUt(e)},YEe=function(){var e=Mc(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},kY=_o.RegExp,pj=ds((function(){var e=kY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));pj||ds((function(){return!kY("a","y").sticky}));var ZEe={BROKEN_CARET:pj||ds((function(){var e=kY("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:pj},GUt=Gd?Object.defineProperties:function(e,t){Mc(e);for(var n,r=o9(t),o=H8(t),i=o.length,a=0;i>a;)r9.f(e,n=o[a++],r[n]);return e},KUt=$5("document","documentElement"),XEe=LEe("IE_PROTO"),AB=function(){},JEe=function(e){return"<script>"+e+"<\/script>"},Khe=function(e){e.write(JEe("")),e.close();var t=e.parentWindow.Object;return e=null,t},W8=function(){try{rS=new ActiveXObject("htmlfile")}catch{}var e,t;W8=typeof document<"u"?document.domain&&rS?Khe(rS):((t=vY("iframe")).style.display="none",KUt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(JEe("document.F=Object")),e.close(),e.F):Khe(rS);for(var n=f_.length;n--;)delete W8.prototype[f_[n]];return W8()};wY[XEe]=!0;var Qhe,CB,QUt=Object.create||function(e,t){var n;return e!==null?(AB.prototype=Mc(e),n=new AB,AB.prototype=null,n[XEe]=e):n=W8(),t===void 0?n:GUt(n,t)},YUt=_o.RegExp,ZUt=ds((function(){var e=YUt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),XUt=_o.RegExp,JUt=ds((function(){var e=XUt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),e$t=dj.get,t$t=fY("native-string-replace",String.prototype.replace),p_=RegExp.prototype.exec,hj=p_,n$t=ii("".charAt),r$t=ii("".indexOf),o$t=ii("".replace),xB=ii("".slice),SB=(CB=/b*/g,us(p_,Qhe=/a/,"a"),us(p_,CB,"a"),Qhe.lastIndex!==0||CB.lastIndex!==0),Yhe=ZEe.BROKEN_CARET,EB=/()??/.exec("")[1]!==void 0;(SB||EB||Yhe||ZUt||JUt)&&(hj=function(e){var t,n,r,o,i,a,s,l=this,u=e$t(l),d=Hf(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=us(hj,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Yhe&&l.sticky,v=us(YEe,l),h=l.source,g=0,y=d;if(p&&(v=o$t(v,"y",""),r$t(v,"g")===-1&&(v+="g"),y=xB(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&n$t(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),EB&&(n=new RegExp("^"+h+"$(?!\\s)",v)),SB&&(r=l.lastIndex),o=us(p_,p?n:l,y),p?o?(o.input=xB(o.input,g),o[0]=xB(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:SB&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),EB&&o&&o.length>1&&us(t$t,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=QUt(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var fC=hj;i9({target:"RegExp",proto:!0,forced:/./.exec!==fC},{exec:fC});var TY=Function.prototype,Zhe=TY.apply,i$t=TY.bind,Xhe=TY.call,a$t=typeof Reflect=="object"&&Reflect.apply||(i$t?Xhe.bind(Zhe):function(){return Xhe.apply(Zhe,arguments)}),s$t=z0("species"),kB=RegExp.prototype,l$t=z0("match"),u$t=_o.TypeError,c$t=z0("species"),d$t=ii("".charAt),Jhe=ii("".charCodeAt),f$t=ii("".slice),p$t=function(e){return function(t,n){var r,o,i=Hf(bb(t)),a=xY(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Jhe(i,a))<55296||r>56319||a+1===s||(o=Jhe(i,a+1))<56320||o>57343?e?d$t(i,a):r:e?f$t(i,a,a+2):o-56320+(r-55296<<10)+65536}},h$t=p$t(!0),g$t=function(e,t,n){return t+(n?h$t(e,t).length:1)},v$t=_o.Array,m$t=Math.max,e0e=function(e,t,n){for(var r,o,i,a,s=SY(e),l=fj(t,s),u=fj(n===void 0?s:n,s),d=v$t(m$t(u-l,0)),c=0;l<u;l++,c++)r=d,o=c,i=e[l],(a=mY(o))in r?r9.f(r,a,yY(0,i)):r[a]=i;return d.length=c,d},y$t=_o.TypeError,t0e=function(e,t){var n=e.exec;if(pl(n)){var r=us(n,e,t);return r!==null&&Mc(r),r}if(Yh(e)==="RegExp")return us(fC,e,t);throw y$t("RegExp#exec called on incompatible receiver")},v1=ZEe.UNSUPPORTED_Y,b$t=Math.min,eke=[].push,w$t=ii(/./.exec),m1=ii(eke),p4=ii("".slice);(function(e,t,n,r){var o=z0(e),i=!ds((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ds((function(){var u=!1,d=/a/;return(d={}).constructor={},d.constructor[s$t]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=ii(/./[o]),l=(function(u,d,c){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,y=Hf(bb(this)),m=v===void 0?4294967295:v>>>0;if(m===0)return[];if(p===void 0)return[y];if(!Rf(h=p)||!((g=h[l$t])!==void 0?g:Yh(h)=="RegExp"))return us(d,y,p,m);for(var b,w,A,S=[],k=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),M=0,D=new RegExp(p.source,k+"g");(b=us(fC,D,y))&&!((w=D.lastIndex)>M&&(m1(S,p4(y,M,b.index)),b.length>1&&b.index<y.length&&a$t(eke,S,e0e(b,1)),A=b[0].length,M=w,S.length>=m));)D.lastIndex===b.index&&D.lastIndex++;return M===y.length?!A&&w$t(D,"")||m1(S,""):m1(S,p4(y,M)),S.length>m?e0e(S,0,m):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:us(d,this,p,v)}:d,[function(p,v){var h=bb(this),g=p==null?void 0:BEe(p,u);return g?us(g,p,h,v):us(f,Hf(h),p,v)},function(p,v){var h=Mc(this),g=Hf(p),y=c(f,h,g,v,f!==d);if(y.done)return y.value;var m=(function(B,N){var q,U=Mc(B).constructor;return U===void 0||(q=Mc(U)[c$t])==null?N:(function(j){if(HEe(j))return j;throw u$t(NEe(j)+" is not a constructor")})(q)})(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(v1?"g":"y"),A=new m(v1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return t0e(A,g)===null?[g]:[];for(var k=0,M=0,D=[];M<g.length;){A.lastIndex=v1?0:M;var P,O=t0e(A,v1?p4(g,M):g);if(O===null||(P=b$t($Ee(A.lastIndex+(v1?M:0)),g.length))===k)M=g$t(g,M,b);else{if(m1(D,p4(g,k,M)),D.length===S)return D;for(var _=1;_<=O.length-1;_++)if(m1(D,O[_]),D.length===S)return D;M=k=P}}return m1(D,p4(g,k)),D}]})(o,""[e],(function(u,d,c,f,p){var v=ii(u),h=d.exec;return h===fC||h===kB.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));dC(String.prototype,e,l[0]),dC(kB,o,l[1])}r&&wb(kB[o],"sham",!0)})("split",0,!!ds((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),v1),i9({global:!0},{globalThis:_o}),Ju&&(Mt.fn.attr=Ju);var A$t=UEe.PROPER,gj=RegExp.prototype,tke=gj.toString,C$t=ii(YEe),x$t=ds((function(){return tke.call({source:"a",flags:"b"})!="/a/b"})),S$t=A$t&&tke.name!="toString";(x$t||S$t)&&dC(RegExp.prototype,"toString",(function(){var e=Mc(this),t=Hf(e.source),n=e.flags;return"/"+t+"/"+Hf(n===void 0&&PEe(gj,e)&&!("flags"in gj)?C$t(e):n)}),{unsafe:!0});var E$t=(function(){function e(){this.title=Yn("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach((function(a){var s=a.text,l=a.value;n.push({text:s,value:l})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!kr.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some((function(i){return i.value===r}))?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};Zt.setNodes(t,r,{match:function(o){return Et.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=Et.getSelectedNodeByType(t,"code");if(n==null)return null;var r=Et.getParentNode(t,n);return kr.isElement(r)?r.type!=="pre"?null:n:null},e})(),k$t={renderStyle:function(e,t){var n=e,r=t,o="";return VUt.forEach((function(i){n[i]&&(o=i)})),o&&(function(i,a){i.data==null&&(i.data={});var s=i.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:a})})(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Mt(e);if(!kr.isElement(t)||Et.getNodeType(t)!=="code")return t;var o=t,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new E$t},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},T$t=/"/g,_$t=ii("".replace);i9({target:"String",proto:!0,forced:ds((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Hf(bb(this)),r="<a",(r+=' name="'+_$t(Hf(t),T$t,""")+'"')+">"+n+"</a>";var t,n,r}});var nke=function(e){var t,n,r,o=(function(y,m){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,A,S=b.call(y),k=[];try{for(;(m===void 0||m-- >0)&&!(w=S.next()).done;)k.push(w.value)}catch(M){A={error:M}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(A)throw A.error}}return k})(e,2),i=o[0],a=o[1],s=[],l=(function(y){if(!ir.isText(y))return null;var m=Et.getParentNode(null,y);if(m&&Et.getNodeType(m)==="code"){var b=Et.getParentNode(null,m);if(b&&Et.getNodeType(b)==="pre")return m}return null})(i);if(l==null)return s;var u=l.language,d=u===void 0?"":u;if(!d)return s;var c=(function(y,m){if(!m)return[];var b=Ghe.languages[m];return b?Ghe.tokenize(y.text,b):[]})(i,d),f=0;try{for(var p=(function(y){var m=typeof Symbol=="function"&&Symbol.iterator,b=m&&y[m],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")})(c),v=p.next();!v.done;v=p.next()){var h=v.value,g=f+QEe(h);typeof h!="string"&&s.push(((r={})[h.type]=!0,r.anchor={path:a,offset:f},r.focus={path:a,offset:g},r)),f=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},aa=function(){return aa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aa.apply(this,arguments)},ss=(function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=aa(aa({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=aa(aa({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=aa(aa({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=aa(aa({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,s=r.config,l=Mu(Mu({},s),o||{});if(NA[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");NA[i]=a,(function(u,d){d!=null&&(E5e[u]=d)})(i,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;Y5e[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){c$.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;k5e[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){o$.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){W5e.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;Jk[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){UG.push(n)})(t)},e.registerModule=function(t){Cg(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Cg(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach((function(d){return ss.registerMenu(d)})),n&&n.forEach((function(d){return ss.registerRenderElem(d)})),r&&ss.registerRenderStyle(r),o&&o.forEach((function(d){return ss.registerElemToHtml(d)})),i&&ss.registerStyleToHtml(i),a&&a.forEach((function(d){return ss.registerPreParseHtml(d)})),s&&s.forEach((function(d){return ss.registerParseElemHtml(d)})),l&&ss.registerParseStyleHtml(l),u&&ss.registerPlugin(u)}NDt.forEach((function(e){return Cg(e)})),Cg(dIt),Cg(LMt),Cg(GRt),Cg(FFt),Cg(k$t);var rke='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',oke={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},D$t={hoverbarKeys:aa(aa({},oke),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};ss.setEditorConfig(aa(aa({},D$t),{decorate:nke}));var I$t={hoverbarKeys:oke};ss.setSimpleEditorConfig(aa(aa({},I$t),{decorate:nke}));var O$t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Yn("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Yn("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Yn("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Yn("editor.image"),iconSvg:rke,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Yn("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};ss.setToolbarConfig(O$t);var M$t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Yn("editor.image"),iconSvg:rke,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function P$t(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,s=a===void 0?{}:a,l=e.mode,u=(l===void 0?"default":l)==="simple"?ss.simpleEditorConfig:ss.editorConfig,d=aa(aa({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return L6t({selector:n,config:aa(aa(aa({},u),s),{hoverbarKeys:d}),content:o,html:i,plugins:ss.plugins})}function N$t(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=a==="simple"?ss.simpleToolbarConfig:ss.toolbarConfig,l=(function(u,d){if(u==null)throw new Error("Cannot create toolbar, because editor is null");var c=d.selector,f=d.config,p=f===void 0?{}:f;if((function(g,y){return G5e(g,"data-w-e-toolbar",y)})(u,c))throw new Error("Repeated create toolbar by selector '"+c+"'");var v=Mu({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new j6t(c,v);return IG.set(h,u),A7.set(u,h),h})(n,{selector:t,config:aa(aa({},s),o)});return l}ss.setSimpleToolbarConfig(M$t);var R$t=Object.defineProperty,B$t=Object.defineProperties,L$t=Object.getOwnPropertyDescriptors,n0e=Object.getOwnPropertySymbols,F$t=Object.prototype.hasOwnProperty,U$t=Object.prototype.propertyIsEnumerable,r0e=(e,t,n)=>t in e?R$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$$t=(e,t)=>{for(var n in t||(t={}))F$t.call(t,n)&&r0e(e,n,t[n]);if(n0e)for(var n of n0e(t))U$t.call(t,n)&&r0e(e,n,t[n]);return e},z$t=(e,t)=>B$t(e,L$t(t));function Xp(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var ike=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const j$t=tt({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Q(null),r=Uo(null),o=Q(""),i=()=>{if(!n.value)return;const s=Oo(e.defaultContent);P$t({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:z$t($$t({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=Xp("onCreated");throw new Error(u)}},onChange(l){const u=l.getHtml();if(o.value=u,t.emit("update:modelValue",u),t.emit("onChange",l),e.defaultConfig.onChange){const d=Xp("onChange");throw new Error(d)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=Xp("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=Xp("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=Xp("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=Xp("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const d=Xp("customAlert");throw new Error(d)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const c=Xp("customPaste");throw new Error(c)}let d;return t.emit("customPaste",l,u,c=>{d=c}),d}})})};function a(s){const l=r.value;l?.setHtml(s)}return jn(()=>{i()}),St(()=>e.modelValue,s=>{s!==o.value&&a(s)}),{box:n}}}),H$t={ref:"box",style:{height:"100%"}};function W$t(e,t,n,r,o,i){return F(),K("div",H$t,null,512)}var V$t=ike(j$t,[["render",W$t]]);const q$t=tt({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Q(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");Et.getToolbar(r)||N$t({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Cs(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),G$t={ref:"selector"};function K$t(e,t,n,r,o,i){return F(),K("div",G$t,null,512)}var Q$t=ike(q$t,[["render",K$t]]);const Y$t="/assets/3-DQsDb2Wr.png",Z$t="/assets/2-dXZ0SRRr.png",X$t="/assets/1-Bqw91QeI.png",J$t="/assets/18-CEUBeFPE.png",ezt="/assets/19-DzDaxNt7.png",tzt={class:"chat-container"},nzt={class:"history-sidebar"},rzt={class:"history-header"},ozt={class:"history-list"},izt={key:0,class:"history-loading"},azt=["onClick"],szt={class:"history-content"},lzt={class:"history-title"},uzt={class:"history-time"},czt=["onClick"],dzt={key:2,class:"empty-history"},fzt={class:"main-work"},pzt={class:"work-content"},hzt={key:0,class:"ai-writing-card"},gzt={class:"document-generation"},vzt={class:"input-area"},mzt={class:"input-actions"},yzt={class:"left-actions"},bzt=["disabled"],wzt={key:0,class:"file-preview-inline"},Azt={class:"file-info-inline"},Czt=["src"],xzt={key:1,class:"file-icon-inline"},Szt={class:"file-name-inline"},Ezt={class:"right-actions"},kzt=["disabled"],Tzt={class:"icon-container"},_zt={key:0,class:"recording-indicator"},Dzt=["disabled"],Izt=["src"],Ozt={key:0,class:"generating-text"},Mzt={class:"document-templates"},Pzt={class:"template-tabs"},Nzt=["onClick"],Rzt={class:"template-cards"},Bzt=["src","alt"],Lzt=["onClick"],Fzt={key:1,class:"editor-view"},Uzt={key:0,class:"editor-full-loading"},$zt={key:1,class:"editor-full-loading"},zzt={class:"editor-header"},jzt={class:"editor-title"},Hzt={key:0,class:"editor-subtitle"},Wzt={key:1,class:"editor-subtitle"},Vzt={class:"editor-actions"},qzt=["disabled"],Gzt=["disabled"],Kzt={class:"editor-content"},Qzt={class:"polish-input-container"},Yzt={class:"input-wrapper"},Zzt=["disabled"],Xzt={class:"char-counter"},Jzt={class:"button-group"},ejt=["disabled"],tjt=["disabled"],njt={key:2,class:"detail-view"},rjt={key:0,class:"detail-loading"},ojt={class:"left-column"},ijt={class:"chat-area"},ajt={key:0,class:"user-message"},sjt={class:"message-content"},ljt={key:0,class:"message-file"},ujt={class:"file-display"},cjt={class:"file-icon"},djt={class:"file-details"},fjt={class:"file-name"},pjt={class:"file-size"},hjt={key:1,class:"message-text"},gjt={class:"action-buttons"},vjt=["onClick"],mjt=["onClick"],yjt={key:1,class:"ai-message"},bjt={class:"message-content"},wjt=["innerHTML"],Ajt=["onClick"],Cjt={class:"doc-details"},xjt={class:"doc-title"},Sjt={class:"doc-time"},Ejt=["innerHTML"],kjt={class:"action-buttons"},Tjt={class:"left-actions"},_jt=["onClick"],Djt=["onClick","disabled"],Ijt=["onClick"],Ojt=["onClick"],Mjt={class:"right-actions"},Pjt=["onClick"],Njt=["onClick"],Rjt={key:0,class:"message-item generating"},Bjt={class:"input-section"},Ljt={key:0,class:"file-preview-section"},Fjt={class:"file-preview"},Ujt={class:"file-icon"},$jt=["src"],zjt={key:1},jjt={class:"file-info"},Hjt={class:"file-name"},Wjt={class:"file-size"},Vjt={class:"input-container"},qjt=["disabled"],Gjt=["disabled"],Kjt=["disabled"],Qjt={class:"icon-container"},Yjt={key:0,class:"recording-indicator"},Zjt=["disabled"],Xjt=["src"],Jjt={key:0,class:"right-column"},eHt={class:"document-body"},tHt=["innerHTML"],nHt=["innerHTML"],rHt=["innerHTML"],o0e="default",oHt={__name:"AIWriting",setup(e){Q(""),Q("");const t=Q("项目进展总结"),n=Q("工作内容、成果、风险卡点及解决方案"),r=Q(""),o=Q("all"),i=Q("main"),a=Q(null),s=Q(""),l=Q(!1),u=Q(""),d=Q(!1);Q(null);const c=Q(null);jn(()=>{document.addEventListener("selectionchange",Ye),document.addEventListener("mousemove",nn),document.addEventListener("mousedown",Tn),document.addEventListener("mouseup",He),document.addEventListener("scroll",me,!0),document.addEventListener("keydown",Be),document.addEventListener("compositionstart",rt),document.addEventListener("compositionupdate",ht),document.addEventListener("compositionend",rn)}),Qr(()=>{document.removeEventListener("selectionchange",Ye),document.removeEventListener("mousemove",nn),document.removeEventListener("mousedown",Tn),document.removeEventListener("mouseup",He),document.removeEventListener("scroll",me,!0),document.removeEventListener("keydown",Be),document.removeEventListener("compositionstart",rt),document.removeEventListener("compositionupdate",ht),document.removeEventListener("compositionend",rn)});const f={excludeKeys:["group-video","group-more-style","fullScreen","emotion","insertLink","insertImage","uploadImage","insertTable","codeBlock","divider","undo","redo"]},p={placeholder:"请输入内容...",readOnly:!1,autoFocus:!1,scroll:!0,hoverbarKeys:{text:{menuKeys:[]},link:{menuKeys:[]},image:{menuKeys:[]},table:{menuKeys:[]},video:{menuKeys:[]}},MENU_CONF:{color:{colors:["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#ff0000","#00ff00","#0000ff"]},fontFamily:{fontFamilyList:["黑体","楷体","仿宋","微软雅黑","Arial","Tahoma","Verdana"]},fontSize:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","32px","48px"]},uploadImage:{server:"",allowedFileTypes:[],maxFileSize:0,maxNumberOfFiles:0,fieldName:"",meta:{},metaWithUrl:!1,withCredentials:!1,timeout:0,headers:{},customInsert:()=>{},customBrowseAndUpload:()=>{},customUpload:()=>{}}}},v=Q(!1),h=Q(null),g=Q(""),y=Q(!1);Q(""),Q(!1);const m=Q(!1),b=Q(!1),w=Q(!1),A=Q(""),S=Q({x:0,y:0}),k=Q(!1),M=Q(""),D=Q({x:0,y:0}),P=Q(!1),O=Q(null),_=Q(""),B=Q(!1),N=Q(null),q=Q(!1),U=Q(null),j=Q(null),H=Q(!1),G=Q(!1);Q("");const Z=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]}),$=Q(null),{isListening:L,transcript:W,error:ie,startListening:ee,stopListening:te}=T0();let X=null,ue=null;const ve=Q(0);Q(2);const Me=J(()=>r.value||""),we=J(()=>r.value.trim().length>0),he=Q([]),Te=Q(0),Y=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),m.value=!0;const ne=performance.now(),Ie=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Ge=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Ge-ne).toFixed(2)}ms`),console.log("📋 AI写作历史记录列表响应:",Ie),Ie.statusCode===200?(Te.value=Ie.total||0,he.value=Ie.data.map(Ft=>({id:Ft.id,title:De(Ft.content),time:pe(Ft.updated_at),businessType:Ft.business_type,isActive:!1,rawData:Ft})),console.log(`✅ AI写作历史记录列表已设置: ${he.value.length}条记录,总数: ${Te.value}`)):console.error("❌ 获取AI写作历史记录列表失败:",Ie.statusCode)}catch(ne){console.error("❌ 获取AI写作历史记录列表失败:",ne)}finally{m.value=!1}},be=async ne=>{try{console.log("开始获取AI写作对话消息,conversationId:",ne);const Ie=await Bn.getHistoryRecord({ai_conversation_id:ne,business_type:2});if(console.log("AI写作对话消息响应:",Ie),console.log("响应数据结构:",{statusCode:Ie.statusCode,data:Ie.data,dataType:Array.isArray(Ie.data)?"array":typeof Ie.data,dataLength:Array.isArray(Ie.data)?Ie.data.length:"N/A"}),Ie.statusCode===200){if(!Ie.data||!Array.isArray(Ie.data))return console.error("响应数据格式错误:",Ie.data),!1;const Ge=Ie.data.map(It=>{const on=ce(It.user_feedback);console.log(`消息 ${It.id} 的反馈状态:`,{raw:It.user_feedback,converted:on});let vn=null;if(It.type==="ai")try{vn=Pa(It.content),!vn.hasDocument&&!vn.openingText&&!vn.closingText&&(vn={hasDocument:!1,documentContent:null,openingText:It.content,documentText:"",closingText:""})}catch(xr){console.error("解析AI回复失败:",xr),vn={hasDocument:!1,documentContent:null,openingText:It.content,documentText:"",closingText:""}}let _n=null,or=It.content;if(It.type==="user"&&It.content.includes("</filesize>")){const xr=It.content.match(/<filename>(.*?)<\/filename>/),lr=It.content.match(/<filesize>(.*?)<\/filesize>/),nr=It.content.match(/<word>(.*?)<\/word>/s);if(xr&&lr){const Or=xr[1],cr=parseInt(lr[1]),dr=nr?nr[1].trim():"";_n={name:Or,size:cr,type:Or.endsWith(".docx")?".docx":Or.endsWith(".doc")?".doc":".docx",icon:Rn(Or.endsWith(".docx")?".docx":Or.endsWith(".doc")?".doc":".docx"),content:dr};const ye=It.content.split("</filesize>")[1];or=ye?ye.trim():""}}return{type:It.type,content:or,displayContent:It.type==="ai"?It.content:or,file:_n,isTyping:!1,id:It.id,userFeedback:on,parsedContent:vn,created_at:It.created_at,isFromBackend:!0,rawData:It}});a.value.messages=Ge,console.log("AI写作对话消息已设置:",a.value.messages),console.log("消息数量:",Ge.length),console.log("currentView状态:",i.value),ve.value=ne;const Ft=Ge.find(It=>It.type==="ai"&&It.parsedContent?.hasDocument);return Ft&&Ft.parsedContent&&(a.value.documentContent=Ft.parsedContent.documentContent,a.value.hasDocument=Ft.parsedContent.hasDocument),!0}else return console.error("获取AI写作对话消息失败:",Ie.statusCode),!1}catch(Ie){return console.error("获取AI写作对话消息失败:",Ie),!1}},De=ne=>{if(!ne)return"未知对话";if(ne.includes("</filesize>")){const Ft=ne.split("</filesize>")[1];if(Ft&&Ft.trim()){const on=Ft.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return on.length>30?on.substring(0,30)+"...":on||"新对话"}}let Ie=ne.replace(/<[^>]*>/g,"");Ie=Ie.replace(/\s+/g," ").trim();const Ge=Ie.split(/[。!?\n]/)[0];return Ge.length>30?Ge.substring(0,30)+"...":Ge||"新对话"},pe=ne=>{if(!ne)return"未知时间";let Ie;if(typeof ne=="string")Ie=new Date(ne);else{let or=ne;ne.toString().length===10||ne.toString().length===11?or=ne*1e3:ne.toString().length===13||(or=ne*1e3),Ie=new Date(or)}const Ge=new Date,Ft=new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),It=new Date(Ft.getTime()-1440*60*1e3);if(Ie>=Ft)return Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Ie>=It&&Ie<Ft)return"昨天 "+Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const on=Ie.getMonth()+1,vn=Ie.getDate(),_n=Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${on}月${vn}日 ${_n}`},oe=ne=>ne.isFromBackend&&ne.created_at?pe(ne.created_at):ne.time||"未知时间",ce=ne=>{switch(console.log("转换用户反馈状态:",ne,"类型:",typeof ne),parseInt(ne)){case 2:return"like";case 3:return"dislike";case 0:default:return null}},Re=ne=>{switch(ne){case"like":return 2;case"dislike":return 3;default:return 0}},Ee=J(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Le=J(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),Fe=(ne,Ie)=>{console.log("准备删除历史记录:",ne),h.value={item:ne,index:Ie},g.value="history",v.value=!0},Pe=ne=>{if(console.log("点击删除按钮,消息索引:",ne),a.value?.messages?.length===2){Ct.warning("第一句话无法删除");return}g.value="message",h.value={messageIndex:ne},v.value=!0},Ne=async()=>{h.value&&(g.value==="history"?await pt():g.value==="message"&&await Rt())},pt=async()=>{const{item:ne,index:Ie}=h.value;try{const Ge=await Bn.deleteHistoryRecord({ai_conversation_id:ne.id});Ge.statusCode===200?(he.value.splice(Ie,1),ne.isActive&&await _t(),console.log("历史记录删除成功"),Ct.success("删除成功")):(console.error("删除历史记录失败:",Ge.msg),Ct.error(Ge.msg||"删除失败"))}catch(Ge){console.error("删除历史记录失败:",Ge),Ct.error("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Rt=async()=>{const{messageIndex:ne}=h.value;try{const Ie=a.value?.messages?.[ne];if(console.log("aiMessage:",Ie),Ie&&Ie.id){console.log("准备调用后端删除接口,id:",Ie.id);try{const Ge=await Bn.deleteConversation({ai_message_id:Ie.id});console.log("后端删除接口响应:",Ge),Ge.statusCode===200?(a.value.messages.splice(ne,1),ne>0&&a.value.messages.splice(ne-1,1),l.value&&(l.value=!1,Nt.value=null,console.log("删除对话时关闭文档预览")),console.log("删除成功"),Ct.success("删除成功")):(console.error("删除失败:",Ge.msg),Ct.error("删除失败,请稍后重试"))}catch(Ge){console.error("删除接口调用失败:",Ge),Ct.error("删除失败,请稍后重试")}}else console.log("没有id,仅从前端删除"),a.value.messages.splice(ne,1),l.value&&(l.value=!1,Nt.value=null,console.log("删除对话时关闭文档预览")),Ct.success("删除成功")}catch(Ie){console.error("删除消息失败:",Ie),Ct.error("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Bt=()=>{v.value=!1,h.value=null,g.value=""},en=ne=>{if(!ne||!ne.trim())return"AI写作任务";const Ge=ne.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return Ge.length>30?Ge.substring(0,30)+"...":Ge||"AI写作任务"},Wt=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结报告"},{key:"meeting",name:"会议纪要"},{key:"speech",name:"决定"}],Ut=[{id:1,name:"公告模板",image:Y$t,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:Z$t,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:X$t,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:J$t,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:ezt,category:"speech",buttonClass:"notification-btn"}],ct=J(()=>o.value==="all"?Ut:Ut.filter(ne=>ne.category===o.value)),_t=async()=>{if(console.log("创建新AI写作任务"),!(y.value||k.value)){if(yt(),$.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}$.value=null}ve.value=0,a.value=null,i.value="main",l.value=!1,Nt.value=null,s.value="",r.value='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',he.value.forEach(ne=>{ne.isActive=!1}),await Y()}},st=async ne=>{if(console.log("点击历史记录:",ne),!y.value){yt(),q.value=!0,b.value=!0;try{if($.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}$.value=null}if(a.value=ne,l.value=!1,Nt.value=null,he.value.forEach(Ge=>{Ge.isActive=Ge.id===ne.id}),await be(ne.id)){console.log("AI写作历史对话加载成功,直接进入富文本编辑器");const Ge=a.value.messages.find(Ft=>Ft.type==="ai");if(Ge){console.log("AI消息内容长度:",Ge.content.length),console.log("AI消息内容预览:",Ge.content.substring(0,200)+"...");const Ft=Nn(Ge.content);gt(Ft)}else{const Ft=a.value.messages.find(It=>It.type==="user");if(Ft){const It=Nn(Ft.content);gt(It)}else gt("<p>暂无内容</p>")}}else console.error("加载历史对话失败"),Ct.error("加载历史对话失败,请稍后重试")}catch(Ie){console.error("加载AI写作历史对话失败:",Ie),Ct.error("加载历史对话时发生错误,请稍后重试")}finally{b.value=!1,setTimeout(()=>{q.value=!1,console.log("历史记录内容加载完成,允许显示扩写弹窗")},500)}}},Ot=ne=>{c.value=ne,console.log("wangeditor 编辑器创建完成")},Ae=ne=>{const Ie=ne.getHtml();console.log("wangeditor内容变化 - 新内容长度:",Ie.length),console.log("wangeditor内容变化 - 新内容预览:",Ie.substring(0,200)+"..."),d.value&&(u.value=Ie)},je=async(ne={})=>{const{silent:Ie=!1}=ne;if(!k.value)try{let Ge="";if(c.value)try{Ge=c.value.getHtml(),console.log("保存文档 - 从wangeditor获取内容,长度:",Ge.length),console.log("保存文档 - 内容预览:",Ge.substring(0,200)+"...")}catch(on){console.log("从wangeditor获取内容失败,使用editorContent:",on),Ge=u.value||""}else Ge=u.value||"",console.log("保存文档 - 从editorContent获取内容,长度:",Ge.length);if(!Ge||Ge.trim()===""){Ct.warning("没有内容可保存");return}console.log("保存文档内容长度:",Ge.length);const Ft=a.value?.id;if(!Ft){Ct.error("无法获取对话ID,请重新选择历史记录");return}const It=await Bn.saveEditDocument({ai_conversation_id:Ft,content:Ge});It&&It.data&&It.statusCode===200?(Ie||Ct.success("文档保存成功"),console.log("文档保存成功,返回内容:",It.data.data)):(Ct.error("文档保存失败,请重试"),console.error("保存失败:",It))}catch(Ge){console.error("保存文档失败:",Ge),Ct.error("保存文档失败,请检查网络连接")}},at=async()=>{if(!k.value)try{console.log("开始下载文档..."),await je({silent:!0});let ne="";const Ie=document.querySelector(".w-e-text");if(Ie&&(ne=Ie.innerHTML,console.log("从DOM获取内容长度:",ne.length)),!ne&&u.value&&(ne=u.value,console.log("从editorContent获取内容长度:",ne.length)),!ne&&c.value)try{ne=c.value.getHtml(),console.log("从wangeditor实例获取内容长度:",ne.length)}catch(It){console.log("从wangeditor实例获取失败:",It)}if(console.log("最终下载内容长度:",ne.length),console.log("最终下载内容预览:",ne.substring(0,200)),!ne||ne.trim()===""){Ct.warning("没有可下载的内容");return}const Ge=Ci();let Ft;Ge&&Ge!=="AI生成文档"?Ft=`${Ge.replace(/[<>:"/\\|?*]/g,"").trim()}.docx`:Ft=`AI生成文档_${new Date().toISOString().slice(0,19).replace(/[-:]/g,"").replace("T","_")}.docx`,await xi(ne,Ge,Ft)}catch(ne){console.error("下载Word文档失败:",ne),Ct.error("下载Word文档失败,请重试")}},gt=ne=>{i.value="editor",console.log("进入富文本编辑器,内容长度:",ne.length),console.log("进入富文本编辑器,内容预览:",ne.substring(0,200)+"..."),Vt(()=>{u.value=ne,setTimeout(()=>{if(c.value)try{c.value.setHtml(ne),console.log("wangeditor 内容设置完成"),d.value=!0,y.value=!1}catch(Ie){console.error("设置 wangeditor 内容失败:",Ie);try{console.log("尝试重新初始化编辑器..."),c.value.clear(),c.value.setHtml(ne),console.log("重新初始化编辑器成功"),d.value=!0,y.value=!1}catch(Ge){console.error("重新初始化编辑器也失败:",Ge),u.value=ne,d.value=!0,y.value=!1}}else console.log("editorRef.value 不存在,等待编辑器初始化"),setTimeout(()=>{if(c.value)try{c.value.setHtml(ne),console.log("延迟设置 wangeditor 内容完成"),d.value=!0,y.value=!1}catch(Ie){console.error("延迟设置 wangeditor 内容失败:",Ie);try{console.log("延迟设置失败,尝试重新初始化编辑器..."),c.value.clear(),c.value.setHtml(ne),console.log("延迟重新初始化编辑器成功"),d.value=!0,y.value=!1}catch(Ge){console.error("延迟重新初始化编辑器也失败:",Ge),u.value=ne,d.value=!0,y.value=!1}}},500)},100)})},nn=ne=>{ne.target.closest(".ai-polish-input")||P.value&&(D.value={x:ne.clientX,y:ne.clientY})},Tn=ne=>{if(k.value){ne.preventDefault();return}if(!ne.target.closest(".ai-polish-input")){if(ne.target.closest(".w-e-toolbar")||ne.target.closest(".w-e-bar")){yt();return}P.value=!0,D.value={x:ne.clientX,y:ne.clientY},(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container"))&&!ne.target.closest(".ai-polish-input")&&yt()}},He=()=>{k.value||(P.value=!1,setTimeout(()=>{ke()},50))},ke=()=>{if(console.log("=== checkSelectionAndShowButton 被调用 ==="),q.value){console.log("正在加载历史记录内容,跳过选择处理");return}if(k.value){console.log("正在扩写/续写中,跳过选择处理");return}if(w.value){console.log("扩写输入框正在显示,跳过选择处理");return}try{const ne=window.getSelection();if(console.log("当前选择:",ne?ne.toString():"无选择"),ne&&ne.toString().trim().length>0){console.log("检测到选中文本");const Ie=ne.toString().trim();A.value=Ie;const Ge=400,Ft=60,It=10,on=window.innerWidth,vn=window.innerHeight;let _n=D.value.x+It,or=D.value.y-80;if(_n+Ge>on&&(_n=D.value.x-Ge-It),_n<It&&(_n=It),or<It&&(or=D.value.y+It),or+Ft>vn-It&&(or=vn-Ft-It),_n=Math.max(It,Math.min(_n,on-Ge-It)),or=Math.max(It,Math.min(or,vn-Ft-It)),S.value={x:_n,y:or},w.value=!0,console.log("选中文本:",Ie),console.log("鼠标位置:",D.value),console.log("视口尺寸:",{width:on,height:vn}),console.log("扩写框位置:",S.value),ne&&ne.rangeCount>0)try{const Vn=ne.getRangeAt(0),xr=c.value?.getEditableContainer?.();if(xr&&xr.contains(Vn.commonAncestorContainer)){const lr=document.createElement("div");lr.appendChild(Vn.cloneContents());const nr=lr.innerHTML,Or=lr.textContent||lr.innerText||"",cr=nr.includes("<strong>")||nr.includes("<em>")||nr.includes("<b>")||nr.includes("<i>")||nr.includes("<span")||nr.includes("<h1>")||nr.includes("<h2>")||nr.includes("<h3>")||nr.includes("<h4>")||nr.includes("<h5>")||nr.includes("<h6>")||nr.includes("<u>")||nr.includes("<s>");O.value={text:Ie,html:nr,plainText:Or,isMultiFormat:cr,range:Vn.cloneRange(),startContainer:Vn.startContainer,endContainer:Vn.endContainer,startOffset:Vn.startOffset,endOffset:Vn.endOffset,fullHtml:c.value.getHtml()},console.log("已保存选区信息:",{text:Ie,html:nr,plainText:Or,isMultiFormat:cr,startContainer:Vn.startContainer,endContainer:Vn.endContainer,startOffset:Vn.startOffset,endOffset:Vn.endOffset})}else console.log("选区不在编辑器内,清除保存的选区"),O.value=null}catch(Vn){console.error("保存选区失败:",Vn),O.value=null}}else console.log("没有选中文本,隐藏输入框"),yt()}catch(ne){console.error("处理文本选择失败:",ne),yt()}},me=ne=>{if(w.value)if(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder")||ne.target.closest(".w-e-content")){if(k.value){console.log("扩写/续写过程中,禁用编辑器滚动"),ne.preventDefault(),ne.stopPropagation();return}console.log("检测到编辑器内滚动,隐藏扩写输入框"),yt()}else console.log("检测到页面滚动,但不隐藏扩写输入框")},Be=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理键盘事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(ne.key==="Backspace"||ne.key==="Delete"?(console.log("检测到退格/删除键,隐藏扩写输入框"),yt()):ne.key.length===1&&!ne.ctrlKey&&!ne.metaKey&&!ne.altKey?(console.log("检测到文字输入,隐藏扩写输入框"),yt()):ne.key===" "?(console.log("检测到空格键,隐藏扩写输入框"),yt()):ne.key==="Enter"&&(console.log("检测到Enter键,隐藏扩写输入框"),yt()))}},rt=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法开始,隐藏扩写输入框"),yt())}},ht=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法更新,隐藏扩写输入框"),yt())}},rn=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法结束,隐藏扩写输入框"),yt())}},Ye=()=>{if(console.log("=== handleSelectionChange 被调用 ==="),k.value){console.log("正在润色中,跳过选择变化处理");return}if(w.value){console.log("润色输入框正在显示,跳过选择变化处理");return}P.value?console.log("鼠标仍按下,等待松开"):(console.log("鼠标已松开,调用 checkSelectionAndShowButton"),ke())},Je=ne=>{ne.stopPropagation(),B.value=!0,ze()},lt=ne=>{B.value=!0,ze()},Ue=ne=>{B.value=!1,ut(),setTimeout(()=>{if(O.value&&O.value.range)try{const Ie=window.getSelection();Ie&&(Ie.removeAllRanges(),Ie.addRange(O.value.range),console.log("输入框失焦时恢复选区成功"))}catch(Ie){console.error("恢复选区失败:",Ie)}},10)},ze=()=>{if(!(!O.value||!O.value.range))try{const ne=O.value.range,Ie=ne.getClientRects();if(ut(),!Ie||Ie.length===0){const Ft=ne.getBoundingClientRect();if(Ft.width===0||Ft.height===0){console.log("选区矩形为空,跳过高亮创建");return}const It=document.createElement("div");It.className="custom-selection-highlight",It.style.cssText=`
- position: fixed;
- left: ${Ft.left}px;
- top: ${Ft.top}px;
- width: ${Ft.width}px;
- height: ${Ft.height}px;
- background-color: rgba(59, 130, 246, 0.2);
- border: 1px solid rgba(59, 130, 246, 0.5);
- border-radius: 2px;
- pointer-events: none;
- z-index: 998;
- transition: all 0.2s ease;
- `,document.body.appendChild(It),N.value=[It],console.log("自定义高亮创建成功(单个矩形)");return}const Ge=[];for(let Ft=0;Ft<Ie.length;Ft++){const It=Ie[Ft];if(It.width===0||It.height===0)continue;const on=document.createElement("div");on.className="custom-selection-highlight",on.style.cssText=`
- position: fixed;
- left: ${It.left}px;
- top: ${It.top}px;
- width: ${It.width}px;
- height: ${It.height}px;
- background-color: rgba(59, 130, 246, 0.2);
- border: 1px solid rgba(59, 130, 246, 0.5);
- border-radius: 2px;
- pointer-events: none;
- z-index: 998;
- transition: all 0.2s ease;
- `,document.body.appendChild(on),Ge.push(on)}N.value=Ge,console.log(`自定义高亮创建成功(${Ge.length}个矩形)`)}catch(ne){console.error("创建自定义高亮失败:",ne)}},ut=()=>{if(N.value)try{Array.isArray(N.value)?(N.value.forEach(ne=>{try{ne&&ne.parentNode&&document.body.removeChild(ne)}catch(Ie){console.error("移除单个高亮元素失败:",Ie)}}),console.log(`自定义高亮移除成功(${N.value.length}个矩形)`)):(N.value.parentNode&&document.body.removeChild(N.value),console.log("自定义高亮移除成功")),N.value=null}catch(ne){console.error("移除自定义高亮失败:",ne)}},yt=()=>{w.value=!1,A.value="",_.value="",M.value="",B.value=!1,ut(),O.value=null},jt=async()=>{if(!(!A.value.trim()||k.value))try{k.value=!0,M.value="polish";let ne=`请对以下文本进行扩写,要求:
- 1. 保持原文的核心意思和逻辑结构
- 2. 提升语言的流畅性和专业性
- 3. 优化表达方式,使其更加准确和生动
- 4. 保持原文的语调和风格
- 5. 只返回扩写后的文本,不要添加任何解释或说明`;_.value.trim()&&(ne=`请根据以下要求对文本进行处理:${_.value.trim()}
- 要求:
- 1. 保持原文的核心意思和逻辑结构
- 2. 只返回处理后的文本,不要添加任何解释或说明`),ne+=`
- 原文:
- ${A.value}`;const Ie=await Bn.reProduceSingleQuestion({message:ne});if(Ie&&Ie.data&&Ie.data.reply){const Ge=Ie.data.reply.trim();if(c.value)try{let Ft=null,It="";const on=window.getSelection();if(on&&on.toString().trim()?(Ft=on,It=on.toString(),console.log("使用当前选区:",It)):O.value&&O.value.text&&(It=O.value.text,console.log("使用保存的选区:",It)),It){if(O.value&&O.value.range)try{const xr=c.value;if(xr.restoreSelection&&typeof xr.restoreSelection=="function"){xr.restoreSelection(O.value.range),xr.insertText(Ge),console.log("扩写完成,通过wangeditor restoreSelection + insertText API"),Ct.success("文本扩写完成");return}else throw new Error("wangeditor restoreSelection API不可用")}catch(xr){console.error("使用wangeditor API替换失败,尝试字符串替换:",xr)}if(Ft)try{const xr=Ft.getRangeAt(0),lr=c.value.getEditableContainer();if(lr&&lr.contains(xr.commonAncestorContainer)){c.value.insertText(Ge),console.log("扩写完成,通过wangeditor insertText API"),Ft.removeAllRanges();return}else throw new Error("选区不在编辑器内")}catch(xr){console.log("insertText失败,尝试字符串替换:",xr)}const vn=c.value.getHtml();console.log("扩写前内容长度:",vn.length);let _n=vn,or=!1;console.log("扩写调试信息:",{selectedText:It,currentHtmlLength:vn.length,savedSelection:O.value,hasCurrentSelection:!!Ft});const Vn=O.value?.html?new DOMParser().parseFromString(O.value.html,"text/html").documentElement.textContent:"";if(O.value&&O.value.html&&(vn.includes(O.value.html)||vn.includes(Vn)))vn.includes(O.value.html)?(_n=vn.replace(O.value.html,Ge),or=!0,console.log("策略1成功:通过保存的HTML结构替换")):vn.includes(Vn)&&(_n=vn.replace(Vn,Ge),or=!0,console.log("策略1成功:通过解码后的HTML结构替换"));else if(O.value&&O.value.plainText&&vn.includes(O.value.plainText))_n=vn.replace(O.value.plainText,Ge),or=!0,console.log("策略1.5成功:通过保存的纯文本替换");else if(vn.includes(It))_n=vn.replace(It,Ge),or=!0,console.log("策略2成功:直接字符串替换");else{const xr=It.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");if(console.log("策略3尝试:HTML实体替换",{htmlEntities:xr,includes:vn.includes(xr)}),vn.includes(xr))_n=vn.replace(xr,Ge),or=!0,console.log("策略3成功:HTML实体替换");else{const lr=new RegExp(`>[^<]*${It.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[^<]*<`,"g"),nr=vn.match(lr);if(console.log("策略4尝试:正则表达式匹配",{regex:lr,match:nr}),nr)_n=vn.replace(nr[0],nr[0].replace(It,Ge)),or=!0,console.log("策略4成功:正则表达式替换");else{const Or=It.replace(/<[^>]*>/g,"").trim(),cr=vn.replace(/<[^>]*>/g,"");if(console.log("策略5尝试:模糊匹配",{cleanText:Or,cleanCurrentHtml:cr.substring(0,200)+"...",includes:cr.includes(Or)}),cr.includes(Or)){const dr=new RegExp(`[^>]*${Or.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[^<]*`,"g"),ye=vn.match(dr);ye&&(_n=vn.replace(ye[0],ye[0].replace(Or,Ge)),or=!0,console.log("策略5成功:通过模糊匹配替换"))}}}}if(or)try{c.value.setHtml(_n),setTimeout(()=>{try{const xr=c.value.getEditableContainer();if(xr){const lr=new Event("input",{bubbles:!0});xr.dispatchEvent(lr)}}catch(xr){console.log("编辑器状态同步失败:",xr)}},10),console.log("润色后内容长度:",_n.length),console.log("润色完成,通过字符串替换"),console.log("润色后内容预览:",_n.substring(0,200)+"...")}catch(xr){console.error("设置编辑器内容失败:",xr),Ct.error("润色失败,请重试");return}else{console.log("所有替换策略都失败,未找到匹配的文本"),Ct.warning("未找到选中的文本,请重新选择");return}}else{console.log("没有找到选中的文本"),Ct.warning("请先选择要润色的文本");return}}catch(Ft){console.error("润色失败:",Ft),Ct.error("润色失败,请重试");return}Ct.success("文本润色完成"),console.log("文本润色完成")}else Ct.error("润色失败,请重试")}catch(ne){console.error("AI润色失败:",ne),Ct.error("润色失败,请检查网络连接")}finally{k.value=!1,M.value="",yt()}},mn=async()=>{if(!(!A.value.trim()||k.value))try{k.value=!0,M.value="continue";let ne=`请对以下文本进行续写,要求:
- 1. 保持原文的语调和风格
- 2. 在原文基础上自然延续,【重要】绝对不要重复原文内容
- 3. 续写的内容应该与原文逻辑连贯
- 4. 增加新的内容,使文章更加完整
- 5. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
- 6. 【重要】直接开始续写新内容,不要重复原文的最后几个字
- 7. 如果AI无法理解或续写,请返回"无法续写"`;_.value.trim()&&(ne=`请根据以下要求对文本进行续写:${_.value.trim()}
- 要求:
- 1. 保持原文的语调和风格
- 2. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
- 3. 【重要】直接开始续写新内容,不要重复原文
- 4. 如果AI无法理解或续写,请返回"无法续写"`),ne+=`
- 原文:
- ${A.value}
- 请直接开始续写,不要重复原文:`;const Ie=await Bn.reProduceSingleQuestion({message:ne});if(Ie&&Ie.data&&Ie.data.reply){let Ge=Ie.data.reply.trim();if(console.log("AI返回的原始续写内容:",Ge),console.log("原文:",A.value),Ge.includes(A.value)){console.log("AI返回内容包含原文,开始提取纯续写部分");const It=Ge.indexOf(A.value);It!==-1&&(Ge=Ge.substring(It+A.value.length).trim(),console.log("提取后的纯续写内容:",Ge))}else console.log("AI返回内容不包含原文,直接使用");const Ft=[/^续写[::]/,/^续写内容[::]/,/^续写部分[::]/,/^以下是续写[::]/,/^以下是续写内容[::]/];for(const It of Ft)if(It.test(Ge)){Ge=Ge.replace(It,"").trim(),console.log("移除前缀后的续写内容:",Ge);break}if(!Ge||Ge==="无法续写"||Ge.length<2){Ct.warning("AI无法续写此内容,请尝试其他文本或调整要求");return}if(console.log("最终使用的续写内容:",Ge),c.value)try{if(console.log("续写调试信息:",{selectedText:A.value,continuedText:Ge,hasSavedRange:!!O.value?.range,savedSelection:O.value}),O.value&&O.value.range)try{const _n=O.value.range,or=c.value.getEditableContainer();if(or&&or.contains(_n.endContainer)){const Vn=document.createRange();Vn.setStart(_n.endContainer,_n.endOffset),Vn.setEnd(_n.endContainer,_n.endOffset);const xr=document.createTextNode(Ge);Vn.insertNode(xr),Vn.setStartAfter(xr),Vn.collapse(!0);const lr=window.getSelection();lr&&(lr.removeAllRanges(),lr.addRange(Vn)),setTimeout(()=>{try{const nr=new Event("input",{bubbles:!0});or.dispatchEvent(nr)}catch(nr){console.log("触发input事件失败:",nr)}},10),console.log("续写成功:通过Range在选区末尾插入文本节点"),Ct.success("文本续写完成");return}else console.log("Range不在编辑器内,尝试其他策略")}catch(_n){console.error("使用Range插入失败:",_n)}const It=c.value.getHtml();let on=It,vn=!1;if(O.value&&O.value.html&&It.includes(O.value.html)){const _n=O.value.html+Ge;on=It.replace(O.value.html,_n),vn=!0,console.log("续写成功:通过HTML结构匹配添加续写")}else if(O.value&&O.value.plainText&&It.includes(O.value.plainText)){const _n=O.value.plainText+Ge;on=It.replace(O.value.plainText,_n),vn=!0,console.log("续写成功:通过纯文本匹配添加续写")}else if(It.includes(A.value)){const _n=A.value+Ge;on=It.replace(A.value,_n),vn=!0,console.log("续写成功:通过直接文本匹配添加续写")}vn?(c.value.setHtml(on),setTimeout(()=>{try{const _n=c.value.getEditableContainer();if(_n){const or=new Event("input",{bubbles:!0});_n.dispatchEvent(or)}}catch(_n){console.log("编辑器状态同步失败:",_n)}},10),console.log("续写完成"),Ct.success("文本续写完成")):(console.error("所有策略都失败了"),console.log("续写失败调试信息:",{selectedText:A.value,savedSelectionHtml:O.value?.html,savedSelectionPlainText:O.value?.plainText,currentHtmlPreview:It.substring(0,500)}),Ct.error("续写失败,无法找到选中的文本"))}catch(It){console.error("续写过程中发生错误:",It),Ct.error("续写失败,请重试")}else console.error("编辑器引用不存在"),Ct.error("续写失败,编辑器未初始化")}else Ct.error("续写失败,请重试")}catch(ne){console.error("AI续写失败:",ne),Ct.error("续写失败,请检查网络连接")}finally{k.value=!1,M.value="",yt()}},Nn=ne=>{if(!ne)return"";console.log("formatContentForEditor 输入内容:",ne),console.log("formatContentForEditor 输入内容长度:",ne.length),console.log("formatContentForEditor 输入内容预览:",ne.substring(0,200)+"...");const Ie=/<[^>]+>/.test(ne);return console.log("检测到HTML格式:",Ie),Ie?(console.log("直接使用后端返回的HTML内容,无需转换"),ne):(console.log("按普通文本处理"),xt(ne))},xt=ne=>{console.log("开始普通文本处理,内容长度:",ne.length);let Ie=ne.replace(/\n\n\n+/g,`
- `).replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br>");return Ie.trim()&&(Ie="<p>"+Ie+"</p>"),Ie=Ie.replace(/<p>(第[一二三四五六七八九十\d]+章[^<]*)<\/p>/g,"<h2>$1</h2>").replace(/<p>(\d+\.\d+[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(\d+\.\d+\.\d+[^<]*)<\/p>/g,"<h4>$1</h4>").replace(/<p>(一、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(二、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(三、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(四、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(五、[^<]*)<\/p>/g,"<h3>$1</h3>"),Ie=Ie.replace(/<p><\/p>/g,""),Ie=Ie.replace(/<p>\s*<\/p>/g,""),console.log("普通文本处理后内容长度:",Ie.length),console.log("普通文本处理后内容预览:",Ie.substring(0,200)+"..."),Ie},sn=ne=>{o.value=ne,console.log("切换到标签:",ne)},vt=ne=>{console.log("使用模板:",ne);let Ie="";switch(ne){case"通知模板":Ie='请帮我生成一份正式的通知,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">通知主题:</span>、<span class="editable-highlight" contenteditable="true">发文背景:</span>、<span class="editable-highlight" contenteditable="true">通知目的:</span>、<span class="editable-highlight" contenteditable="true">具体事项:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>、<span class="editable-highlight" contenteditable="true">收文单位:</span>等内容。请按照标准公文格式生成完整通知,包括文号、标题、正文、落款等所有要素。';break;case"公告模板":Ie='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。';break;case"会议纪要模版":Ie='请帮我生成一份正式的会议纪要,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">会议名称:</span>、<span class="editable-highlight" contenteditable="true">会议时间:</span>、<span class="editable-highlight" contenteditable="true">主持人:</span>、<span class="editable-highlight" contenteditable="true">参会人员:</span>、<span class="editable-highlight" contenteditable="true">主要议题:</span>、<span class="editable-highlight" contenteditable="true">会议议定事项:</span>的内容。请按照标准会议纪要格式生成全文,包含标题、导语、议定事项和落款。';break;case"决定模版":Ie='请帮我生成一份正式的决定,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">标题:</span>、<span class="editable-highlight" contenteditable="true">文号:</span>、<span class="editable-highlight" contenteditable="true">决定事项:</span>、<span class="editable-highlight" contenteditable="true">决定背景:</span>、<span class="editable-highlight" contenteditable="true">决定依据:</span>、<span class="editable-highlight" contenteditable="true">具体内容:</span>、<span class="editable-highlight" contenteditable="true">生效时间:</span>、<span class="editable-highlight" contenteditable="true">主送机关:</span>的内容。请按照标准决定公文格式生成完成文件。';break;case"工作汇报模板":Ie='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">总结主题:</span>、<span class="editable-highlight" contenteditable="true">总结时间:</span>、<span class="editable-highlight" contenteditable="true">主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true">存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true">下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。';break;default:Ie='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。'}const Ge=document.querySelector(".template-input-container");if(Ge){Ge.innerHTML=Ie,r.value=Ie.replace(/<[^>]*>/g,""),Ge.querySelectorAll(".editable-highlight").forEach(vn=>{vn.style.backgroundColor="#3E7BFA10",vn.style.color="#3E7BFA",vn.style.padding="4px 8px",vn.style.borderRadius="6px",vn.style.fontWeight="500",vn.style.cursor="text",vn.style.border="1px solid transparent",vn.style.display="inline-block",vn.style.minWidth="20px"}),Ge.focus();const It=document.createRange(),on=window.getSelection();It.selectNodeContents(Ge),It.collapse(!1),on.removeAllRanges(),on.addRange(It),console.log("模板已应用,templateContent更新为:",r.value)}},Nt=Q(null),bn=ne=>{Nt.value&&Nt.value===ne?(l.value=!1,Nt.value=null):(Nt.value=ne,l.value=!0),console.log("切换文档预览状态:",l.value,"选中文档:",Nt.value)},Mn=()=>{l.value=!1,Nt.value=null,console.log("关闭文档预览")},tr=async()=>{if(!we.value){console.log("请输入内容");return}const ne=j.value;i.value="editor",y.value=!0,l.value=!1,Nt.value=null,(he.value.length===0||!he.value.some(Ge=>Ge.isActive))&&(he.value.forEach(Ge=>{Ge.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const Ie={id:Date.now(),title:en(Me.value),time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),isActive:!1,hasDocument:!1,documentContent:null,aiResponse:"",userMessage:Me.value,file:ne,messages:[{type:"user",content:Me.value,file:ne,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),id:Date.now(),isFromBackend:!1}]};console.log("创建临时历史记录项,文件信息:",ne),a.value=Ie,j.value&&An(),console.log("发送AI写作请求:"),console.log("完整文本:",Me.value),console.log("目的:",t.value),console.log("内容:",n.value),console.log("额外:",r.value),await Yo(Ie,null,Me.value,ne)},dn=ne=>{X&&clearTimeout(X),X=setTimeout(async()=>{await Vt();const Ie=ne.target.innerText||ne.target.textContent||"";if(r.value=Ie,!Ie.trim()){await Vt();const Ge=window.getSelection(),Ft=document.createRange();ne.target.firstChild?Ft.setStart(ne.target.firstChild,0):Ft.setStart(ne.target,0),Ft.collapse(!0),Ge.removeAllRanges(),Ge.addRange(Ft),ne.target.focus()}},200)},Ke=ne=>{const Ie=ne.target.innerText||ne.target.textContent;ne.clipboardData.setData("text/plain",Ie),ne.preventDefault(),console.log("复制成功:",Ie)},bt=ne=>{if(ne.size>Z.maxSize)throw new Error("文件大小不能超过20MB");const Ie="."+ne.name.split(".").pop().toLowerCase();if(!Z.allowedTypes.includes(Ie))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return Ie},Yt=async ne=>{try{if(console.log("开始读取Word文件:",ne.name,"文件大小:",ne.size),ne.size===0)throw new Error("Word文件为空");console.log("正在导入mammoth库...");const Ie=await Mf(()=>Promise.resolve().then(()=>$E),void 0);console.log("mammoth库导入成功");const Ge=await ne.arrayBuffer();console.log("文件转换为ArrayBuffer成功,大小:",Ge.byteLength),console.log("开始提取文本内容...");const Ft=await Ie.extractRawText({arrayBuffer:Ge});return console.log("Word文件读取完成,内容长度:",Ft.value.length),Ft.value}catch(Ie){throw console.error("Word文件读取失败,详细错误:",Ie),console.error("错误堆栈:",Ie.stack),Ie.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):Ie.message.includes("File is empty")?new Error("Word文件为空"):new Error(`Word文件读取失败: ${Ie.message}`)}},wt=()=>{if(j.value){Ct.warning("只能上传一个文件,请先删除当前文件");return}U.value?.click()},Gt=async ne=>{const Ie=ne.target.files[0];if(Ie)try{const Ge=bt(Ie);H.value=!0,console.log("开始读取文件内容:",Ie.name);const Ft=await Yt(Ie);j.value={file:Ie,name:Ie.name,size:Ie.size,type:Ge,icon:Rn(Ge),content:Ft};const It=Ft.length;console.log("文件内容提取完成,字符数:",It),Ct.success("文件读取成功")}catch(Ge){console.error("文件读取失败:",Ge),Ct.error(Ge.message||"文件读取失败,请重试")}finally{H.value=!1,ne.target.value=""}},An=()=>{j.value&&(j.value=null)},Rn=ne=>{switch(ne){case".doc":case".docx":return hq;default:return"📎"}},Kn=()=>{console.log("点击语音按钮"),L.value?ho():Fr()},Fr=()=>{console.log("开始语音输入"),ee()||Ct.error("语音识别启动失败,请检查麦克风权限")},ho=()=>{if(console.log("停止语音输入"),te(),W.value.trim())if(i.value==="detail")s.value=W.value;else{const ne=document.querySelector(".template-input-container");ne&&(ne.textContent=W.value,r.value=W.value)}},Wr=ne=>{ue&&clearTimeout(ue),ue=setTimeout(()=>{const Ie=ne.target.value,Ge=/(.)\1{3,}/g;if(Ge.test(Ie)){const Ft=Ie.replace(Ge,(It,on)=>on.repeat(3));s.value=Ft,Ct.warning("检测到重复字符,已自动清理");return}Ie.length>2e3&&(s.value=Ie.substring(0,2e3),Ct.warning("消息长度不能超过2000字"))},100)},bo=async ne=>{try{await navigator.clipboard.writeText(ne),Ct.success("复制成功")}catch{const Ge=document.createElement("textarea");Ge.value=ne,document.body.appendChild(Ge),Ge.select(),document.execCommand("copy"),document.body.removeChild(Ge),Ct.success("复制成功")}},Bo=()=>{let ne=a.value?.documentContent;if(!ne){const Ie=a.value?.messages?.find(Ge=>Ge.type==="ai"&&Ge.parsedContent?.hasDocument);Ie&&Ie.parsedContent&&(ne=Ie.parsedContent.documentContent)}if(!ne){Ct.warning("没有可复制的文档内容");return}try{let Ie="";ne.title&&(Ie+=`${ne.title}
- `),ne.sections&&ne.sections.forEach((Ge,Ft)=>{Ie+=`${Ge.title}
- `;const It=Ge.content.replace(/<[^>]*>/g,"");Ie+=`${It}
- `}),Ie=Nr(Ie),bo(Ie.trim())}catch(Ie){console.error("复制文档内容失败:",Ie),Ct.error("复制失败,请重试")}},yr=async()=>{let ne=a.value?.documentContent;if(!ne){const Ie=a.value?.messages?.find(Ge=>Ge.type==="ai"&&Ge.parsedContent?.hasDocument);Ie&&Ie.parsedContent&&(ne=Ie.parsedContent.documentContent)}if(!ne){Ct.warning("没有可下载的文档内容");return}try{const Ie=Vr(ne),Ge=new Blob([Ie],{type:"application/msword"}),{saveAs:Ft}=await Mf(async()=>{const{saveAs:on}=await import("./FileSaver.min-CZqS48m5.js").then(vn=>vn.F);return{saveAs:on}},[]),It=ne.title||"AI生成的文档";Ft(Ge,`${It}.doc`),Ct.success("下载成功")}catch(Ie){console.error("下载文档失败:",Ie),Ct.error("下载失败,请重试")}},Vr=ne=>{let Ie=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${ne.title||"AI生成的文档"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- <w:ValidateAgainstSchemas/>
- <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
- <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
- <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- @page {
- size: 21cm 29.7cm;
- margin: 2.5cm 2cm 2.5cm 2cm;
- }
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 1.5cm;
- page-break-after: avoid;
- }
- .doc-title {
- font-size: 18pt;
- font-weight: bold;
- margin-bottom: 0.8cm;
- color: #000;
- }
- .section {
- margin-bottom: 1rem;
- page-break-inside: avoid;
- }
- .section-title {
- font-size: 14pt;
- font-weight: bold;
- margin-bottom: 0.5rem;
- color: #000;
- page-break-after: avoid;
- }
- .content {
- margin-bottom: 0.5rem;
- text-align: justify;
- }
- h1 {
- font-size: 16pt;
- font-weight: bold;
- margin: 1rem 0 0.5rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h2 {
- font-size: 14pt;
- font-weight: bold;
- margin: 0.8rem 0 0.4rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h3 {
- font-size: 12pt;
- font-weight: bold;
- margin: 0.6rem 0 0.3rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h4 {
- font-size: 12pt;
- font-weight: bold;
- margin: 0.5rem 0 0.3rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- strong { font-weight: bold; }
- em { font-style: italic; }
- p {
- margin: 0.5rem 0;
- text-align: justify;
- orphans: 2;
- widows: 2;
- letter-spacing: normal;
- word-spacing: normal;
- }
- .list-item {
- margin: 0.25rem 0;
- text-align: justify;
- }
- table {
- border-collapse: collapse;
- width: 100%;
- margin: 1rem 0;
- page-break-inside: avoid;
- }
- td, th {
- border: 1px solid #000;
- padding: 0.3cm;
- text-align: left;
- font-size: 11pt;
- }
- th {
- background-color: #f0f0f0;
- font-weight: bold;
- }
- ul, ol {
- margin: 0.5rem 0;
- padding-left: 1cm;
- }
- li {
- margin: 0.25rem 0;
- text-align: justify;
- letter-spacing: normal;
- word-spacing: normal;
- }
- </style>
- </head>
- <body>
- <div class='header'>
- <div class='doc-title'>${ne.title||"AI生成的文档"}</div>
- </div>
- `;return ne.sections&&ne.sections.forEach((Ge,Ft)=>{Ie+=`
- <div class='section'>
- <div class='section-title'>${Ge.title}</div>
- <div class='content'>
- ${wo(Ge.content)}
- </div>
- </div>
- `}),Ie+="</body></html>",Ie},wo=ne=>{if(!ne)return"";let Ie=ne;return Ie=Ie.replace(/(<li>.*<\/li>)/gs,Ge=>{const It=/^\d+\./.test(ne)?"ol":"ul";return`<${It}>${Ge}</${It}>`}),Ie=Ie.replace(/\n\n/g,"</p><p>"),Ie=Ie.replace(/\n/g,"<br>"),Ie.trim()&&!Ie.startsWith("<")&&(Ie=`<p>${Ie}</p>`),Ie},Nr=ne=>ne?ne.replace(/^#{1,6}\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/__(.*?)__/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/_(.*?)_/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^>\s*/gm,"").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/\|/g," ").replace(/^[-*]{3,}$/gm,"").replace(/\n\s*\n\s*\n/g,`
- `).trim():"",Br=ne=>{let Ie=ne.content||"";if(Ie.includes("<filename>")&&Ie.includes("<filesize>")){const Ge=Ie.split("</filesize>");Ge.length>1?Ie=Ge[1].trim():Ie=Ie.replace(/<word>.*?<\/word>/s,"").replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"").trim()}Ie=Nr(Ie),bo(Ie)},zr=ne=>{let Ie=ne.content||"";Ie=Ie.replace(/<OPENING_START>/g,"").replace(/<\/OPENING_END>/g,"").replace(/<DOCUMENT_START>/g,"").replace(/<\/DOCUMENT_END>/g,"").replace(/<CLOSING_START>/g,"").replace(/<\/CLOSING_START>/g,"").replace(/<\/CLOSING_END>/g,"").replace(/<\/DOCUMENT_START>/g,"").replace(/<CLOSING_END>/g,"").trim(),Ie=Nr(Ie),bo(Ie)},Ao=ne=>{console.log("编辑用户消息:",ne.content),s.value=ne.content,ne.file&&(j.value=ne.file,console.log("恢复文件信息:",ne.file.name));const Ie=document.querySelector(".message-input");Ie&&(Ie.focus(),Ie.setSelectionRange(Ie.value.length,Ie.value.length))},Cr=async ne=>{if(console.log("重新生成回复,消息索引:",ne),ne>0){const Ie=a.value.messages[ne-1];Ie&&Ie.type==="user"&&(console.log("重新发送用户消息:",Ie.content),s.value=Ie.content,Ie.file&&(j.value=Ie.file,console.log("重新生成时恢复文件信息:",Ie.file.name)),await ha())}},Ho=ne=>{if($.value===ne.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}$.value=null}else{if($.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}let Ie="";if(ne.parsedContent){const Ge=[];ne.parsedContent.openingText&&Ge.push(ra(ne.parsedContent.openingText)),ne.parsedContent.documentText&&Ge.push(ra(ne.parsedContent.documentText)),ne.parsedContent.closingText&&Ge.push(ra(ne.parsedContent.closingText)),Ie=Ge.join(" ")}else Ie=ra(ne.content||"");if(Ie=Ie.replace(/<[^>]*>/g,"").trim(),Ie=_r(Ie),Ie){const Ge=new SpeechSynthesisUtterance(Ie);Ge.lang="zh-CN",Ge.rate=.9,Ge.pitch=1,Ge.volume=1,Ge.onend=()=>{$.value=null},Ge.onerror=()=>{$.value=null},window.speechSynthesis.speak(Ge),$.value=ne.id}}},Xo=ne=>$.value===ne,qi=async ne=>{console.log("点赞消息:",ne.id),ne.userFeedback==="like"?ne.userFeedback=null:ne.userFeedback="like",a.value.messages=[...a.value.messages],await ti(ne)},na=async ne=>{console.log("点踩消息:",ne.id),ne.userFeedback==="dislike"?ne.userFeedback=null:ne.userFeedback="dislike",a.value.messages=[...a.value.messages],await ti(ne)},ti=async ne=>{try{if(!ne.rawData||!ne.rawData.id){console.warn("消息缺少原始数据,无法同步反馈");return}const Ie=Re(ne.userFeedback);console.log("同步反馈到后端:",{messageId:ne.rawData.id,feedback:Ie});const Ge=await Bn.likeAndDislike({id:ne.rawData.id,user_feedback:Ie});Ge.statusCode===200?(console.log("反馈同步成功"),Ct.success("反馈提交成功")):(console.error("反馈同步失败:",Ge.msg),Ct.error("反馈提交失败,请稍后重试"))}catch(Ie){console.error("同步反馈失败:",Ie),Ct.error("反馈同步失败,请稍后重试")}},Lo=ne=>{if(ne===0)return"0 B";const Ie=1024,Ge=["B","KB","MB","GB"],Ft=Math.floor(Math.log(ne)/Math.log(Ie));return parseFloat((ne/Math.pow(Ie,Ft)).toFixed(2))+" "+Ge[Ft]};St(ie,ne=>{ne&&(console.error("语音识别错误:",ne),Ct.error(ne))}),jn(async()=>{await Vt();const ne='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。';r.value=ne,await Y()}),Qr(()=>{if($.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}$.value=null}});const Yo=async(ne,Ie,Ge=null,Ft=null)=>{try{y.value=!0;const It=Ge||(ne?ne.userMessage:"");let on=It;Ft&&Ft.content&&(on=`<word>${Ft.content}</word><filename>${Ft.name}</filename><filesize>${Ft.size}</filesize>${It}`);const vn=await Bn.sendDeepseekMessage({ai_conversation_id:ve.value,message:on,business_type:2});if(console.log("DeepSeek API响应:",vn),vn.statusCode===200){const _n=vn.data.reply;if(ve.value=vn.data.ai_conversation_id,ne){ne.aiResponse=_n,ne.hasDocument=!0,ne.documentContent={title:"AI生成的文档",sections:[{title:"文档内容",content:_n}]};const Vn={type:"ai",content:_n,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),parsedContent:{hasDocument:!0,documentContent:{title:"AI生成的文档",sections:[{title:"文档内容",content:_n}]},openingText:"",documentText:_n,closingText:"",documentTitle:"AI生成的文档"},id:vn.data.ai_message_id||Date.now()+1,userFeedback:null,isFromBackend:!1};ne.messages.push(Vn),a.value&&a.value.id===ne.id&&(a.value=ne)}Qe(),await Y(),ve.value>0&&(he.value.forEach(Vn=>{Vn.isActive=Vn.id===ve.value}),console.log("设置最新历史记录为激活状态,conversationId:",ve.value)),console.log("AI写作完成,准备进入富文本编辑器"),console.log("AI回复内容长度:",_n.length),console.log("AI回复内容预览:",_n.substring(0,200)+"...");const or=Nn(_n);gt(or)}else console.error("DeepSeek API调用失败:",vn),alert("AI写作失败,请重试")}catch(It){console.error("调用AI时出错:",It),alert("调用AI失败,请检查网络连接")}finally{y.value=!1}},Pa=ne=>{let Ie="",Ge="",Ft="",It="AI生成的文档";const on="<OPENING_START>",vn="</OPENING_END>",_n="<DOCUMENT_START>",or="</DOCUMENT_END>",Vn="<CLOSING_START>",xr="</CLOSING_END>";if(ne.includes(on)&&ne.includes(_n)&&ne.includes(Vn))try{console.log("检测到三个标签格式,开始解析");const nr=ne.indexOf(on)+on.length,Or=ne.indexOf(vn);nr<Or?(Ie=ne.substring(nr,Or).trim(),console.log("提取的开头文本:",Ie)):console.warn("开头标签格式不正确");const cr=ne.indexOf(_n)+_n.length;let dr=ne.indexOf(or);if(dr===-1&&(dr=ne.indexOf("</DOCUMENT_START>"),dr!==-1&&console.log("检测到错误的文档结束标签:</DOCUMENT_START>")),cr<dr&&dr!==-1){Ge=ne.substring(cr,dr).trim(),console.log("提取的文档内容长度:",Ge.length),console.log("提取的文档内容预览:",Ge.substring(0,200)+"...");const de=Ge.match(/^#\s+(.+)$/m);if(de)It=de[1].trim(),console.log("从Markdown提取的标题:",It);else{const Ce=Ge.split(`
- `);Ce.length>0&&Ce[0].trim()&&(It=Ce[0].trim(),console.log("从第一行提取的标题:",It))}}else console.warn("文档标签格式不正确");const ye=ne.indexOf(Vn)+Vn.length,ae=ne.indexOf(xr);if(ye<ae)Ft=ne.substring(ye,ae).trim(),console.log("提取的结尾文本:",Ft);else{let de=ne.indexOf(or)+or.length;de===or.length-1&&(de=ne.indexOf("</DOCUMENT_START>")+17);const Ce=ne.substring(de).trim();Ce?(Ft=Ce,console.log("从文档结束后提取的结尾文本:",Ft)):console.warn("结尾标签格式不正确")}(!Ie||!Ge||!Ft)&&console.warn("标签解析不完整:",{openingText:!!Ie,documentText:!!Ge,closingText:!!Ft})}catch(nr){console.error("解析三个标签格式失败:",nr)}else if(ne.includes(_n)&&ne.includes(or)){const nr=ne.indexOf(_n)+_n.length,Or=ne.indexOf(or);if(nr<Or){Ge=ne.substring(nr,Or).trim();const ye=Ge.match(/^#\s+(.+)$/m);if(ye)It=ye[1].trim();else{const ae=Ge.split(`
- `);ae.length>0&&ae[0].trim()&&(It=ae[0].trim())}}const cr=ne.substring(0,ne.indexOf(_n)).trim(),dr=ne.substring(ne.indexOf(or)+or.length).trim();Ie=cr,Ft=dr}else if(ne.includes("<DOCUMENT_START>")&&ne.includes("</DOCUMENT_START>")){console.log("检测到错误的文档标签格式:<DOCUMENT_START>和</DOCUMENT_START>");const nr=ne.indexOf("<DOCUMENT_START>")+16,Or=ne.indexOf("</DOCUMENT_START>");if(nr<Or){Ge=ne.substring(nr,Or).trim();const ye=Ge.match(/^#\s+(.+)$/m);if(ye)It=ye[1].trim();else{const ae=Ge.split(`
- `);ae.length>0&&ae[0].trim()&&(It=ae[0].trim())}}const cr=ne.substring(0,ne.indexOf("<DOCUMENT_START>")).trim(),dr=ne.substring(ne.indexOf("</DOCUMENT_START>")+17).trim();Ie=cr,Ft=dr}else{const nr=ne.split(`
- `).filter(dr=>dr.trim()),Or=nr.findIndex(dr=>dr.includes("以下"));Or!==-1&&(Ie=nr[Or]);const cr=nr.findIndex(dr=>dr.includes("以上"));if(cr!==-1&&(Ft=nr[cr]),Or!==-1&&cr!==-1){const dr=Or+1,ye=cr;if(dr<ye){Ge=nr.slice(dr,ye).join(`
- `);const ae=Ge.match(/^#\s+(.+)$/m);if(ae)It=ae[1].trim();else{const de=Ge.split(`
- `)[0];de&&de.trim()&&(It=de.trim())}}}else if(Or!==-1){const dr=Or+1;Ge=nr.slice(dr).join(`
- `);const ye=Ge.match(/^#\s+(.+)$/m);ye&&(It=ye[1].trim())}else if(cr!==-1){Ge=nr.slice(0,cr).join(`
- `);const dr=Ge.match(/^#\s+(.+)$/m);dr&&(It=dr[1].trim())}}if(!Ie&&!Ft&&!Ge)return/<[^>]+>/.test(ne)?(console.log("检测到HTML格式,将其作为文档内容"),{hasDocument:!0,documentContent:{title:"AI生成的文档",sections:[{title:"文档内容",content:ne}]},openingText:"",documentText:ne,closingText:"",documentTitle:"AI生成的文档"}):{hasDocument:!1,documentContent:null,openingText:ne,documentText:"",closingText:"",documentTitle:"AI回复"};const lr={hasDocument:Ge.trim().length>0,documentContent:Ge.trim()?{title:It,sections:[{title:"文档内容",content:Ge.trim()}]}:null,openingText:Ie.trim(),documentText:Ge.trim(),closingText:Ft.trim(),documentTitle:It};return console.log("parseAIResponse 解析结果:",{hasDocument:lr.hasDocument,documentTextLength:lr.documentText.length,openingTextLength:lr.openingText.length,closingTextLength:lr.closingText.length,documentTitle:lr.documentTitle}),lr},Ai=()=>{if(!a.value?.messages)return null;const ne=a.value.messages.find(Ie=>Ie.type==="ai"&&Ie.parsedContent?.hasDocument);return ne&&ne.parsedContent?ne.parsedContent.documentContent:null},Ci=()=>{let ne="";const Ie=document.querySelector(".w-e-text");if(Ie&&(ne=Ie.innerHTML),!ne&&u.value&&(ne=u.value),!ne&&c.value)try{ne=c.value.getHtml()}catch(Ge){console.log("从wangeditor实例获取失败:",Ge)}if(ne){const Ge=ne.match(/<h1[^>]*>(.*?)<\/h1>/i);if(Ge){const vn=Ge[1].replace(/<[^>]*>/g,"").trim();if(vn)return vn}const Ft=ne.match(/<h2[^>]*>(.*?)<\/h2>/i);if(Ft){const vn=Ft[1].replace(/<[^>]*>/g,"").trim();if(vn)return vn}const It=ne.match(/<h3[^>]*>(.*?)<\/h3>/i);if(It){const vn=It[1].replace(/<[^>]*>/g,"").trim();if(vn)return vn}const on=ne.match(/<p[^>]*>(.*?)<\/p>/i);if(on){const vn=on[1].replace(/<[^>]*>/g,"").trim();if(vn&&vn.length<=50&&!vn.includes("。")&&!vn.includes(","))return vn}}return"AI生成文档"},xi=async(ne,Ie,Ge)=>{try{const Ft=mi(ne,Ie),It=new Blob([Ft],{type:"application/msword;charset=utf-8"}),on=URL.createObjectURL(It),vn=document.createElement("a");vn.href=on,vn.download=Ge.replace(".docx",".doc"),document.body.appendChild(vn),vn.click(),document.body.removeChild(vn),URL.revokeObjectURL(on),Ct.success("Word文档下载成功")}catch(Ft){console.error("生成无水印Word文档失败:",Ft),Ct.error("生成Word文档失败,请重试")}},mi=(ne,Ie)=>`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="UTF-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${Ie||"AI生成文档"}</title>
- <style>
- @page { size: 21cm 29.7cm; margin: 2.54cm 3.18cm 2.54cm 3.18cm; }
- body { font-family: "宋体", "SimSun", serif; font-size: 12pt; line-height: 1.5; color: #000; }
- h1 { font-size: 18pt; font-weight: bold; text-align: center; margin: 24pt 0 18pt 0; }
- h2 { font-size: 16pt; font-weight: bold; margin: 18pt 0 12pt 0; }
- h3 { font-size: 14pt; font-weight: bold; margin: 12pt 0 6pt 0; }
- p { margin: 0 0 6pt 0; text-align: justify; text-indent: 2em; }
- table { border-collapse: collapse; width: 100%; margin: 12pt 0; }
- td, th { border: 1px solid #000; padding: 6pt; }
- </style>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- </w:WordDocument>
- </xml>
- <![endif]-->
- </head>
- <body>
- ${ne}
- </body>
- </html>`,ra=ne=>{if(!ne)return ne;console.log("过滤前的文本:",ne);let Ie=ne.replace(/<OPENING_START>/g,"").replace(/<\/OPENING_END>/g,"").replace(/<DOCUMENT_START>/g,"").replace(/<\/DOCUMENT_END>/g,"").replace(/<CLOSING_START>/g,"").replace(/<\/CLOSING_START>/g,"").replace(/<\/CLOSING_END>/g,"").replace(/<\/DOCUMENT_START>/g,"").replace(/<CLOSING_END>/g,"").trim();return console.log("过滤后的文本:",Ie),Ie},_r=ne=>ne&&ne.replace(/^#{1,6}\s+/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/_([^_]+)_/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/`([^`]+)`/g,"$1").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/^>\s*/gm,"").replace(/^[-*_]{3,}$/gm,"").replace(/\|/g," ").replace(/^[\s]*[-:]+[\s-:]*$/gm,"").replace(/\n\s*\n/g,`
- `).replace(/\s+/g," ").trim(),Si=ne=>{if(!ne)return"";let Ie=ne;return Ie=Ie.replace(/[\u{1F600}-\u{1F64F}]|[\u{1F300}-\u{1F5FF}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu,""),Ie.trim()&&(Ie=`<p>${Ie}</p>`),Ie},ha=()=>{if(!s.value.trim()||y.value)return;const ne=j.value,Ie={type:"user",content:s.value,file:ne,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),id:Date.now(),isFromBackend:!1};a.value.messages.push(Ie),s.value="",j.value&&An(),Qe(),i.value="editor",y.value=!0,Yo(a.value,null,Ie.content,ne)},Qe=()=>{Vt(()=>{const ne=document.querySelector(".chat-area");ne&&(ne.scrollTop=ne.scrollHeight)})},qe=()=>{a.value?.messages&&Qe()};return St(a,ne=>{qe()}),(ne,Ie)=>(F(),K("div",tzt,[Ve(zC),x("div",nzt,[x("div",rzt,[Ie[4]||(Ie[4]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:QC,alt:"新建任务",class:re(["new-chat-btn",{disabled:k.value}]),onClick:_t},null,2)]),x("div",ozt,[m.value&&Te.value===0?(F(),K("div",izt,Ie[5]||(Ie[5]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Te.value>0?(F(!0),K(Pt,{key:1},an(he.value,(Ge,Ft)=>(F(),K("div",{key:Ge.id,class:re(["history-item",{active:Ge.isActive}]),onClick:It=>Ge.isActive||y.value||k.value?null:st(Ge),style:Xt({cursor:Ge.isActive||k.value?"default":"pointer"})},[x("div",szt,[x("div",lzt,We(Ge.title),1),x("div",uzt,We(Ge.time),1)]),x("div",{class:re(["delete-btn",{"always-visible":Ge.isActive}]),onClick:Qt(It=>Fe(Ge,Ft),["stop"])},Ie[6]||(Ie[6]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,czt)],14,azt))),128)):(F(),K("div",dzt,Ie[7]||(Ie[7]=[x("img",{src:YC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",fzt,[Ie[40]||(Ie[40]=x("div",{class:"work-header"},[x("h2",null,"AI写作")],-1)),x("div",pzt,[i.value==="main"?(F(),K("div",hzt,[x("div",gzt,[Ie[13]||(Ie[13]=x("h3",null,"帮我写作",-1)),Ie[14]||(Ie[14]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",vzt,[x("div",{class:"template-input-container",contenteditable:"true",onInput:dn,onCopy:Ke,placeholder:"请在这里输入您的写作要求..."},Ie[8]||(Ie[8]=[ki(' 请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true" data-v-f3f6c221>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-f3f6c221>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-f3f6c221>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-f3f6c221>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-f3f6c221>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。 ',11)]),32),x("div",mzt,[x("div",yzt,[x("button",{class:"attachment-btn",onClick:wt,disabled:G.value},Ie[9]||(Ie[9]=[x("img",{src:sAe,alt:"附件",class:"action-icon"},null,-1)]),8,bzt),j.value?(F(),K("div",wzt,[x("div",Azt,[j.value.icon&&typeof j.value.icon=="string"&&j.value.icon.includes(".png")?(F(),K("img",{key:0,src:j.value.icon,alt:"文档图标",class:"file-icon-inline-img"},null,8,Czt)):(F(),K("span",xzt,We(j.value.icon),1)),x("span",Szt,We(j.value.name),1),x("button",{class:"remove-file-inline",onClick:An},Ie[10]||(Ie[10]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Ezt,[x("button",{class:re(["voice-btn",{recording:C(L)}]),onClick:Kn,disabled:G.value},[x("div",Tzt,[Ie[11]||(Ie[11]=x("img",{src:Zf,alt:"语音",class:"action-icon"},null,-1)),C(L)?(F(),K("div",_zt)):xe("",!0)])],10,kzt),Ie[12]||(Ie[12]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:tr,disabled:y.value||G.value},[x("img",{src:we.value?C(Jf):C(Xf),alt:"发送",class:"action-icon"},null,8,Izt),y.value?(F(),K("span",Ozt,"生成中...")):xe("",!0)],8,Dzt)])])]),Ie[15]||(Ie[15]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))]),x("div",Mzt,[x("div",Pzt,[(F(),K(Pt,null,an(Wt,Ge=>x("div",{key:Ge.key,class:re(["tab-item",{active:o.value===Ge.key}]),onClick:Ft=>sn(Ge.key)},We(Ge.name),11,Nzt)),64))]),x("div",Rzt,[(F(!0),K(Pt,null,an(ct.value,Ge=>(F(),K("div",{key:Ge.id,class:"template-card"},[x("img",{src:Ge.image,alt:Ge.name,class:"template-image"},null,8,Bzt),x("button",{class:re(["use-template-btn",Ge.buttonClass]),onClick:Ft=>vt(Ge.name)}," 使用此模板 ",10,Lzt)]))),128))])])])):xe("",!0),i.value==="editor"?(F(),K("div",Fzt,[y.value?(F(),K("div",Uzt,Ie[16]||(Ie[16]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),b.value?(F(),K("div",$zt,Ie[17]||(Ie[17]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",zzt,[x("div",jzt,[Ie[18]||(Ie[18]=x("h3",null,"文档编辑",-1)),y.value?(F(),K("p",Wzt,"AI正在生成内容,请稍候...")):(F(),K("p",Hzt,"AI已为您生成内容,您可以直接编辑和完善"))]),x("div",Vzt,[x("button",{class:"save-btn",onClick:je,disabled:k.value}," 保存文档 ",8,qzt),x("button",{class:"download-btn",onClick:at,disabled:k.value},Ie[19]||(Ie[19]=[x("img",{src:ZD,alt:"下载Word",class:"download-icon"},null,-1)]),8,Gzt)])]),x("div",Kzt,[x("div",{class:re(["rich-editor-container",{polishing:k.value}])},[x("div",null,[Ve(C(Q$t),{class:"rich-editor-toolbar",editor:c.value,defaultConfig:f,mode:o0e},null,8,["editor"]),Ve(C(V$t),{style:{height:"calc(100vh - 280px)","overflow-y":"auto"},modelValue:u.value,"onUpdate:modelValue":Ie[0]||(Ie[0]=Ge=>u.value=Ge),defaultConfig:p,mode:o0e,onOnCreated:Ot,onOnChange:Ae},null,8,["modelValue"])])],2)]),w.value&&A.value.trim()?(F(),K("div",{key:2,class:"ai-polish-input",style:Xt({left:S.value.x+"px",top:S.value.y+"px"}),onClick:Ie[2]||(Ie[2]=Qt(()=>{},["stop"]))},[x("div",Qzt,[x("div",Yzt,[ln(x("input",{type:"text","onUpdate:modelValue":Ie[1]||(Ie[1]=Ge=>_.value=Ge),placeholder:"请输入要求(可选)",class:"polish-input-field",disabled:k.value,onKeyup:Lr(jt,["enter"]),onClick:Qt(Je,["stop"]),onFocus:lt,onBlur:Ue,maxlength:"200"},null,40,Zzt),[[jr,_.value]]),x("div",Xzt,We(_.value.length)+"/200",1)]),x("div",Jzt,[x("button",{class:"polish-send-btn",onClick:Qt(jt,["stop"]),disabled:k.value},We(k.value&&M.value==="polish"?"正在扩写":"AI扩写"),9,ejt),x("button",{class:"polish-send-btn continue-btn",onClick:Qt(mn,["stop"]),disabled:k.value},We(k.value&&M.value==="continue"?"正在续写":"AI续写"),9,tjt)])])],4)):xe("",!0)])):xe("",!0),i.value==="detail"?(F(),K("div",njt,[b.value?(F(),K("div",rjt,Ie[20]||(Ie[20]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",{class:re(["main-content1",{"with-document":l.value}])},[x("div",ojt,[x("div",ijt,[(F(!0),K(Pt,null,an(a.value?.messages,(Ge,Ft)=>(F(),K("div",{key:Ft,class:re(["message-item",Ge.type])},[Ge.type==="user"?(F(),K("div",ajt,[x("div",sjt,[Ge.file?(F(),K("div",ljt,[x("div",ujt,[x("div",cjt,We(Ge.file.icon),1),x("div",djt,[x("div",fjt,We(Ge.file.name),1),x("div",pjt,We(Lo(Ge.file.size)),1)])])])):xe("",!0),Ge.content?(F(),K("div",hjt,We(Ge.content),1)):xe("",!0)]),x("div",gjt,[x("button",{class:"action-btn copy-btn",onClick:It=>Br(Ge)},Ie[21]||(Ie[21]=[x("img",{src:Bv,alt:"复制",class:"action-icon"},null,-1),xn(" 复制 ",-1)]),8,vjt),x("button",{class:"action-btn edit-btn",onClick:It=>Ao(Ge)},Ie[22]||(Ie[22]=[x("img",{src:ZC,alt:"编辑",class:"action-icon"},null,-1),xn(" 编辑 ",-1)]),8,mjt)])])):Ge.type==="ai"?(F(),K("div",yjt,[Ie[30]||(Ie[30]=x("div",{class:"ai-avatar"},[x("img",{src:uoe,alt:"AI头像",class:"avatar-img"})],-1)),x("div",bjt,[Ge.parsedContent?.openingText?(F(),K("div",{key:0,class:"opening-text",innerHTML:ra(Ge.parsedContent.openingText)},null,8,wjt)):xe("",!0),Ge.parsedContent?.hasDocument?(F(),K("div",{key:1,class:"document-info clickable",onClick:It=>bn(Ge.parsedContent)},[Ie[23]||(Ie[23]=x("div",{class:"doc-icon"},[x("img",{src:Fvt,alt:"文档图标",class:"info-icon"})],-1)),x("div",Cjt,[x("div",xjt,We(Ge.parsedContent?.documentTitle||a.value?.documentContent?.title||"文档标题"),1),x("div",Sjt,"创建时间: "+We(oe(Ge)),1)])],8,Ajt)):xe("",!0),Ge.parsedContent?.closingText?(F(),K("div",{key:2,class:"closing-text",innerHTML:ra(Ge.parsedContent.closingText)},null,8,Ejt)):xe("",!0),x("div",kjt,[x("div",Tjt,[x("button",{class:"action-btn copy-btn",onClick:It=>zr(Ge)},Ie[24]||(Ie[24]=[x("img",{src:Bv,alt:"复制",class:"action-icon"},null,-1),xn(" 复制 ",-1)]),8,_jt),x("button",{class:"action-btn regenerate-btn",onClick:It=>Cr(Ft),disabled:y.value},Ie[25]||(Ie[25]=[x("img",{src:fq,alt:"重新生成",class:"action-icon"},null,-1),xn(" 重新生成 ",-1)]),8,Djt),x("button",{class:"action-btn delete-btn",onClick:It=>Pe(Ft)},Ie[26]||(Ie[26]=[x("img",{src:wc,alt:"删除",class:"action-icon"},null,-1),xn(" 删除 ",-1)]),8,Ijt),x("button",{class:"action-btn voice-btn",onClick:It=>Ho(Ge)},[Ie[27]||(Ie[27]=x("img",{src:YD,alt:"语音朗读",class:"action-icon"},null,-1)),xn(" "+We(Xo(Ge.id)?"停止朗读":"语音朗读"),1)],8,Ojt)]),x("div",Mjt,[x("button",{class:re(["action-btn thumbs-up-btn",{active:Ge.userFeedback==="like"}]),onClick:It=>qi(Ge)},Ie[28]||(Ie[28]=[x("img",{src:Wy,alt:"点赞",class:"action-icon"},null,-1)]),10,Pjt),x("button",{class:re(["action-btn thumbs-down-btn",{active:Ge.userFeedback==="dislike"}]),onClick:It=>na(Ge)},Ie[29]||(Ie[29]=[x("img",{src:Vy,alt:"踩",class:"action-icon"},null,-1)]),10,Njt)])])])])):xe("",!0)],2))),128)),y.value?(F(),K("div",Rjt,Ie[31]||(Ie[31]=[ki('<div class="ai-avatar" data-v-f3f6c221><img src="'+uoe+'" alt="AI头像" class="avatar-img" data-v-f3f6c221></div><div class="message-content" data-v-f3f6c221><span class="generating-text" data-v-f3f6c221>AI正在思考中...</span><div class="loading-dots" data-v-f3f6c221><span data-v-f3f6c221></span><span data-v-f3f6c221></span><span data-v-f3f6c221></span></div></div>',2)]))):xe("",!0)]),x("div",Bjt,[j.value?(F(),K("div",Ljt,[x("div",Fjt,[x("div",Ujt,[j.value.icon&&typeof j.value.icon=="string"&&j.value.icon.includes(".png")?(F(),K("img",{key:0,src:j.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,$jt)):(F(),K("span",zjt,We(j.value.icon),1))]),x("div",jjt,[x("div",Hjt,We(j.value.name),1),x("div",Wjt,We(Lo(j.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:An},Ie[32]||(Ie[32]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",Vjt,[x("button",{class:"attachment-btn",onClick:wt,disabled:y.value},Ie[33]||(Ie[33]=[x("img",{src:pq,alt:"上传文件",class:"action-icon"},null,-1)]),8,qjt),ln(x("input",{"onUpdate:modelValue":Ie[3]||(Ie[3]=Ge=>s.value=Ge),type:"text",placeholder:"请在此处发送消息 (Enter键也可发送)",class:"message-input",onKeydown:Lr(ha,["enter"]),onInput:Wr,maxlength:"2000",disabled:y.value},null,40,Gjt),[[jr,s.value]]),x("button",{class:re(["voice-btn",{recording:C(L)}]),onClick:Kn,disabled:y.value},[x("div",Qjt,[Ie[34]||(Ie[34]=x("img",{src:Zf,alt:"语音",class:"action-icon"},null,-1)),C(L)?(F(),K("div",Yjt)):xe("",!0)])],10,Kjt),Ie[35]||(Ie[35]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:ha,disabled:y.value||!s.value.trim()},[x("img",{src:s.value.trim()&&!y.value?C(Jf):C(Xf),class:"action-icon",alt:"发送"},null,8,Xjt)],8,Zjt)])])]),l.value?(F(),K("div",Jjt,[x("div",{class:"document-header"},[Ie[39]||(Ie[39]=x("h3",{class:"doc-title"}," 文件详情 ",-1)),x("div",{class:"doc-actions"},[x("button",{class:"action-btn",onClick:Bo},Ie[36]||(Ie[36]=[x("img",{src:e3,alt:"复制",class:"action-icon"},null,-1),xn(" 复制 ",-1)])),x("button",{class:"action-btn",onClick:yr},Ie[37]||(Ie[37]=[x("img",{src:gq,alt:"下载",class:"action-icon"},null,-1),xn(" 下载 ",-1)])),x("button",{class:"action-btn close-btn",onClick:Mn},Ie[38]||(Ie[38]=[x("img",{src:Uvt,alt:"关闭",class:"action-icon"},null,-1)]))])]),x("div",eHt,[Nt.value?.documentContent?(F(!0),K(Pt,{key:0},an(Nt.value.documentContent.sections,Ge=>(F(),K("div",{key:`selected-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ge.content)},null,8,tHt)]))),128)):a.value?.documentContent?(F(!0),K(Pt,{key:1},an(a.value.documentContent.sections,Ge=>(F(),K("div",{key:`history-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ge.content)},null,8,nHt)]))),128)):Ai()?(F(!0),K(Pt,{key:2},an(Ai().sections,Ge=>(F(),K("div",{key:`message-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ge.content)},null,8,rHt)]))),128)):xe("",!0)])])):xe("",!0)],2)])):xe("",!0)])]),Ve(c0,{visible:v.value,title:Le.value,message:Ee.value,onConfirm:Ne,onCancel:Bt,onClose:Bt},null,8,["visible","title","message"]),x("input",{ref_key:"fileInput",ref:U,type:"file",accept:".docx",style:{display:"none"},onChange:Gt},null,544)]))}},iHt=Qo(oHt,[["__scopeId","data-v-f3f6c221"]]),aHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAo2SURBVHic7d1LaB3XGQfw/zf3YVmoECEKsjdG4CJkN0ZOFqVCUoJl/ILQprXxwpD4sTAtdjZtTGUpYKgeJWQVmxovXKWBLIzdklCwFROZRhIGL/xAdW1EDcIbWWCEtBCyfR/zdXF1ZT2u7szcmavjO/P/bUKkuTNHo7/PmTPnm5GgzNo69adipfYA+DlgNQLaCEgtoNUAqgEkyt0GKioNYB6QeUBnABkH7HEAD9VO3hzpl+flPLiUY6dtZ1/tgGX9StQ+AMgvynUcKjsF9I6KdR22/d1I34axoA8QWDA6OrUuZWVOCvQwgB1B7ZfeKGMKuZK045eG+mU6iB36DmBHp9alJXMKoqcB1AXQJnrzTUPlfELjF/wG0VcA27syRyD6OVQ3+9kPVSiRSaicGe6Nf1PyLkr5UEvXiy1xjV2GoKPUA1OIKIYykj1xu3fjU68ftbx+oLU7dSyO2F2GjxYJOuKI3W3tTh3z/lEP2s6m/iqC33k9CEWHKi6O9CV/73Z71wF8rzt9VVUPltYsihIRufZjT+KQq23dbNTe9ep7QPb4axZFi94c7t2w12krx2vA9u7U3xk+8k725LJTXNEAtp1NfQnFR8E1iiJF8VHb2dSXxTZZcwhu7U4dsxR/C75VFDW24PhoT3Kg0PcKBrCl68WWOGJ3wZUNCsZ0Btl3C90nLDgExzV2GQwfBaduIVOrrApgbnmNN5kpYIKO9q7MkdVfXqKjU+vSscwY13apLEQmE9n4jqUFDMt6wLRkTjF8VDaqm9OSObX0S4s9YEen1qWt9Dh47UflNZ2wE435XnCxB0xZmZNg+Kj86hayBmBJABcqmYnKbmnWLGDhGQ6W0dP62dH+mb4NLATQEuvXZttDUSN25kNgIYAK/cBscyhq8pmT98/N1dvp5CT46CStL7USqc1WNpXYDYaP1p9kU4ndlgi2m24JRZMItlu512UQmWA1Wrl3tRCZoI1W7kVBRCZIrbXwlioiA7TaQu4VaUQmVFvg+/nInITnV3MQBYkBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDIqbroBJtRUAb1H3P/oA7eyeDChvo7Z2iTYuimYNyFPzQCD9+1A9mVaJAO4dZOgucF9GPbvtPBgIuvrmK1NFva/E8yA82BCQxPASA7BR3fFPG2/7x0LNVVlakzERS6ANVXAz0oYClubIneq1kXkzmprU2m9WVDDJy0XubO6r8QgNTcI6t8qfRIxNetvErPUk2fB7cu0SE1CaqqAnR4mHys1NwgG75f2y//qlo3Be4qDLbnJSCm98OA9GwO37EDDbFqkekCn3u++w60Wv8Pw1KziwvUsDn+RxsCtLOZeuvvc4D0bh7/IoP+f2VCFD4hYAJ0mEl/dymJqZu1fsN9hOG/uZa5HvHrb+dbOjXt2KIOXF5kAOg2/cy9z11ZON5xbt/HP6gUpMgE82FL8R/3fM8XcS2DkcfEAHvplZE7ZuojM2WxuKP6jjj62F/9b7Nqsvja4JTWKSACbG8Rx9jv66PXS1oOJ4stc7AWDE4kz6bTu++SZYmr29f+PPCo+DHtZR6biIhHAQy3F135HHi/v8ZwmIvW13ooZaG2hD2Bzgzje9F0ZuKlZ59nw/p2hP3XrIvRn0ene39zLwj3ejXvFrwPZAwYj9AF0Wr1YK2huhmFWyPgX6jPoZvgdfVw4gFOz6rjo39bEXtCvUAdwn8N1Wn71Yy1Oa8MsVPUvtAGsqQLatrlb/ViLm7J3DsP+hPbsuSk8XWv4zXvyTIsWJwAsVPUrtGfPTeHpoMNMF3CejARVIRNVoQygm8LT+xPFh9+8Gy6GYd6SKV0oA+im93Na7329nXNQOQyXLpQl+W4mBjVVgqO73AVn7oWipmrtXi4/DIe1aLScQhdAt899HHKoD/SqdZvg2m0G0KvQjR1OhaflwhKt0oTurDkVnpYLC1VLE6oA1r/l77FLv9gLeheqM1bqQ+dB4e0Y78IVQMM1eixU9S40AWxuEGyqNf/LZ6GqN6G5DePm3t/9CcVf/pEp/RjbLJw+ULy8nz2gN6EJoJvViNHH9rKHj7wafaQ4faD4NvlCVadCB8oJxXjhpvAUWP7oZSncPCsCuC9U3eSiiOEnG13tqmKFIoBuht9nM+qr98tb+QRdIU6Fqvt2Wrjyh7irWXtrU27bgy3hLH6t+ADWVLkdfoNZJht1eGY4r9A/inzwOn8bQ72HCVN9reD0gRiu/DGBo7vCFcSKD+DWTS6H34CuyaZmnYtUgdX/KP70m5jn4K1UUwUc2xXz9Ib/N13FB9DNC8fXevSyVE4vMAJYqOpWRQfQ7QvHR3xOPlZy25vyloyzig6g26fSgrr+y3swUdowTKtV9BlyM/vNDb/B35NzM6RzGHYm7V2piq2idDvEBXn9l1dTBVflV1MzuYlL/VuC+tpgju30PHMlqegAUuWr6CGYKh8DSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBklAUgbboRFFlpC8C86VZQZM1bgDCAZIjMW4DOmG4GRZXOWICMm24GRZWMW4DNAJIh9rgF4KHpZlBkPbTUTt4EwFe00XpTtZM3rZF+eQ7oHdOtoajROyP98twCABXruunmULTkM2cBgEj8W7PNocix7e+AhQAO/1n+A2DMaIMoSsZG+jaMAUuKERRyxVx7KEqWZm0xgEk7fgnAtJEWUZRML2QNwJIADvXLNFTOm2kTRYbK+aF+WezoltUDJjR+ASKT698qigSRyYTGLyz90rIALvSCZ9a3VRQZKmeW9n4AUPBP/bSfTf0AQcf6tIoiQTE03JfcvfLLBUvyM5I9AU5IKDjTC5lapWAAb/dufGoLPi1vmygqbMGnt3s3Pi30vTUfShrtSQ6o4mL5mkVRoIqLoz3JgbW+7/jnHt/rTl9V1YPBNouiQESu/diTOFR0Gzc7au969T0ge4JpFkWD3hzu3bDXaStXzwUP927YC8HX/htFkSD42k34AA8Ppg/3JD9WBVdKqChVnB/uSX7sdntPb0YY6Ut+YguOg7doaLVpW3B8pC/5iZcPufub9yu0dL3YEtfYZd6sJgCAYigj2RNr3WoppqQA5rV3ZY5A9HOobvazH6pQIpNQOTPcG/+m5F34bUNHp9alJXMKoqcB1PndH1WEaaicT2j8wsq1Xa98BzCvo1PrUlbmpEAPA9gR1H7pjTKmkCtJO37Jb/DyAgvgUu2f6dtiZz5U6AcA3i3XcajsFMBdgfzLVvvbfBl9kMoejPfPzdVnU4ndItgOWI2ANgJSC2g1gGoAiXK3gYpKA5jPvaRKZ3KvarHHVfHfWDL9w7/P1UyV8+D/ByVqAll3U2+tAAAAAElFTkSuQmCC",sHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEoSURBVFiF7ZjRUYNAFEXPcyyAErACU0KsQK3IEhwrMB3EDrQDSQXSgXRw8wEfL5sIqytsRvd8LewbOLwFhgsU/jj21YSkNXALVDM7tMDOzF6iqiVVkrZanmdJ080YCnOxDX0skLsDfFEHxLX+Z1TACqjdvhszeztZLenBXc2HYlqeiPpb6tOd99HPXwT1tRs3ZtbNLTicw6/SQVNCQc/scjGMCZ4FRTCVIphKEUylCKZSBFMpgqkUwVTORbB244Pv0MvvHGXILL8dA66Btdve+ckowSGbvNIHnDlpCULa5BIvKNcB92EOGhVcSK4FNsCVmTXh5NgSn5Jr6HNrnkCl8b8K70vk5JDY10y2zsUIZl3WKcG89xzHgq0bZ5eD46f4yY9zyxX+BXsQMXqyev1l1wAAAABJRU5ErkJggg==",lHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFfSURBVFiF7ZgxboMwFECfq44ZOEKG7E13pKQ3yBV6Mo5Ab1AiZS/ZK5UjZMj+OxjUjxvAqkMglZ8UYfkb87A/Uvwh8s8xXQER2QJr4GlkhwrYG2MKr9EikohILrcnE5HERzCbQK4hd32MI7cF3lXXCXjzWvq/kWDTaKn6XvR2Pzo3bFS7Ap6NMaeR5ACbUsAXVhascNHEH5zxS9Uux5YDqJ+hd6n1UbqCmtHlfOgTnAVRMBT3K9akIpL1xBf19XwFj7Qr4AouVHtV/26Ndri/Ldbb9QkcOu5L+VndvnG+6PlaKdOXgwdjzOulQJ2bq6FxvjjztZj9FkfBUKJgKFEwlCgYShQMJQqGMhfBzpKHK3hU7Z341EoCqZ+xVl2Vjrv/B0vVToAPESn5fUbWZ4ihs8sQO9oruO8dLdNUthqGX1Rs+S2bQC6XCyk1VMDc0K7XaK517Dxi60BF4DyR++QbasVA5Mak+dYAAAAASUVORK5CYII=",uHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAeDSURBVHic7Zw9bBtHFsf/b3cpkZEuRzbUMRW1gAXYgWzGrgQVoWG5MyAZuKuEw0lFXB0QOVWag+wucWE76aIUUQpXCWAZ8FWnwExh+BpH9BmwABEgtzqaTLFEQFqUubMvBT9MSvzQkjsrSsqvEpczs8O/Zt7Me7tvCB6zk+cYhIiRpl4AOMo2YvXviBCt/VlgRoEIBRAMgAy2xAsBNs5GfAkv+0uyb5AxOWjt2UtQ6WMw4gCCAzZZACHBlv1IQE2cjZAxeC87I0WgjMnBSlkskKr8A0Bcxj2aSLCwv5+KaOsyGndVoIzJQcvCp2BeweAjxRHMMGDbt31+dWMyRAW32nVNoNRrsQKFVuGxMPthhkHMX535i3rfjfYGFiiV5ThUvge8M7bDADMMEF2fClNykHaUQSqn8uIeVH6CIRMHqK6IBN5K5cTqQO30U2k7y1FN5YcYQmHawQxD2HS5nxXPsUA7eY4R+AmO2NY4pd8p52iK7eR5icBbOGbiAO+m3E6el5zUO7RAqddihcDfOe7ZkEHg71Kvxcrhyx+C2sg59uI0w6DlqTCt9yrXU6CazdlypVdDBoM+6mWTuk6x7SxHwfzQ3W4NDwR+sp3laLcyXQVSFX7S5GGfRIK17UpHOgqUyonVEy5OnVgqL+51+rKtDTrJdqcjgi6fiVBi/+X2I+gE252OVP3JAxwQKPVarJySqbWfWLv9UcsUy5gcrLzlrVMqEAAUNB9NNseTWkZQpSwWTrE4AFAN+DXRMoJ2cnZGlkDFXcZ4QHoI3A1aRpFWv7qTtZZkjp61xyVs/rIHPaJi5twIFufe61r+n18XkDNt6BEVVy/5MXdpVFbX9hOslMUCgHWgaYrVAuxSyJkCm7/sAQDSWYGJkNq1fPr/FtJZgVKZ8TJjYVrXupZ3m2YtNKDmUoDjsm649vhNy+ecKfBg803bsvOzAWw8LTc+T4QUbD7f69r+3KXRnqI7JJ4xOTgZooIGACpEfMDoa0c2n+/h2au3Ldce/LTbsbwe0RqjDQBypt21PABM6z63BYK1Zy8BuK8AAGnKvKut18iZAt88Ljmqc/fHooyuOEelj4G6kWb3H+4Vdxmff/sbSmUGUJ0qN66N4e4Pxca1mXMjmJ/1N+o8elpuGW3/+vufAKClzuKVAKZ1X8u99IgEG1XTRNnOVuKQEEJd+3cJOdNufP7ik/cxc26k8aMB4NmrtxgPEM7rPpzXfZif9WPMX90KLF4JYObcSG3FCzTqbDwtYyKkNOqc132ytg/BnTzHNBUUdbvl4i4D/O7zjWvvNWzEed2HhVk/Np6WMXdpFOGgiuIuY/mO2RglX3zyfsuoWJgN4NmrCl6mK5j5cARjfjn28gBCxDTS1Atg7l3YAeMBwmd/G0epzCju2tAjGv6XrjS+n570IWfamLs4inTWatSpC/TffUYdAK5eHMG4n1rqANWp67aBrkOaeoFSv9oPwVhwu/GcKbB8x7VH5B1ZvBLouensG8KGAj7VvldX2EZMY0aQPHCRPvvrOMIhd2zH2uMS0lnhSlu90Ii8eQg4rWuu2Yr6SucFlMrb7lroGsVdxlptk5jOWq7+x6d1HyaC1dE482F1KyALaV5gfSUDgAebb5DOdncXnHD14qhn3r3GDMPLIJkeUbEwG+hdcB8PfnrTsvH0iIK3cQRU7Uc///3/PC97LhDzEQj0MmNh+Y7puF5xV4qp7AoRChopSHq9FzqCqdIfBEMDyGhxnCQzEVIwd3EwA6t/IMe1OAgZGlviBakeOX8AwkFFnmvgMmyJFxpUNenlCEpnBe7+MHhQ7Ma1MelPSQTY0KbClEzl7QI8eq2uVOaWkGq/LM4FMB6QOtUKZyO+RHUVIyRkePTtGPMT9Eh/P+xlxupdyC0ICaC+kxb8MxTyRCA9ouLLG392XM+r8EkdtuxHQE0gbVRZtyrt325wm1KZW4JnhyXv8dZAQE0ANYEmQ1RI5e0E5GfmIJ0V+Pzb32TfZlAaaVaN9Z2F/f2RdWfIaNai4Wr4/OpGbZpJXc2mJ7WhtkHMMJpzz1o2EqlfeRXMt9y+ac4UDfdi3E/QP+jPBcyZ72JKsgL1LOzljgJlTA5aFc7gGKYauAEzDN8IfdTxBarJEBVg823vuzYcEPNX+7MV2+7VU3l7C8ck1cktmGFMTSiT+6+391IF3ZTeo2GD6Hq7y20Fqr4vzK7kfB4LmG91ytno6g6fhqnWaWrV6RoIsgRdB+CdA+Qx9VTNbmX+SIcaJB0KAKbClGTQsnvdGg5qCXU981cPFWudCtM6bD45K5vNNw+TbQg4zHo+CamZh03FrNNXWjiYHx7DlIUCgy5LTQsHqjZJ2HSZGYbTukdI0hK9DXI7BnoskMqJVRDdGqQN+fD9M2G1b/s58HOTIZ5ySQi62S6L0AmuHo/DRJ8OgVAF2Hx7aI7HaaZ+8hQU5SgSggsguq9pOBCyGARpjyZ3staSl0d0uX3yVB3pL/ttZzmqQsRJU+bdPOQNgn/WRpV1GaI043kK4Ha2EldB0foxgWBEa2/aBlETr3kLQQqS9WMCoarJQU+UcsrvVfYI77qcyA0AAAAASUVORK5CYII=",cHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEFSURBVFiF7djPDYIwGAXw9xnvevHekWQCHYENGMGRHAE2wAFMdACT50EgFQWh/6jKO9FAPn5padMCzPmFkMxI5uzOhWQWCnPsgTyhQmDSgRgG6aHWMB1Irr2/9ANIzyQYaYOaGyLy+rj/LHwVJqlIltVnoEyLNHEA0idIaYRyDKp7yBzlEuQE5RpkjfIBskL5Ao1BjV6HqiJbACsDlwKw19onAImIFDagsirsKmcR2dQNk4Xx6hADADe9sTQokADYGb5c4c2QdT4dw0cdBBTVtI9qYbTCuAZZYzyAotx+5GMx37OF5USb/Dao0K6zqVBN+DhCD8mfHqU1VMr+nw0M1kNzYs8dcL4BFPEyqQIAAAAASUVORK5CYII=",i0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJwSURBVFiF7ZbBUdtQEIa/lQPXOBWgdGA6sCsAOnBuHpPDGzfg5cYltpgJDDc7FYRUgKkgKkF0oGMmjN7mIImxA7afbUgu/BdJo9Xu9/7R27fwpv8sCQlyTpsPEV2MI4NYhBjIMTKE1ODuaqTTFweoCg8Bty6RQQacbQoSLXvRcxr/jvhZFze48Z6TwvPxcqSy5/lgnkODTwaZQCwwOR3oeBOAZx3oOY0bZfEmQloUnFwnmq1K1B9oV2AMNDFml2PthAA8caDnNI4iboEmMN0r6KwrDnA10mlROpIhtEOdeOLA6UAnQBchvfyihyFJ5tV32pJqAeLpfE10tip+wYGe0xjoAhQFJ5sWB7hKNDUkATBhuC5+AaARcVzdTkNsX6Z9bxdAjtB2TpvBABhHAN7zY9viAEmiOUYK8BCVjgYBGMTVNd0FAMBEZmUueR8MUHU4drH/Ud7uAQSLgwGAHMoOuGt9iahz5MEAZmXwL9gZoLbekHAAEWawsBu2lpgdA3hvd8EA5imDq92wrXpOY4QWkF9v0oj24aZupf2BdrcFaESPDehmXewCQJJoDpwBCIyrzriR+oOzIdA1yApf5goGgPJQAaZAM4q47TttbVJcMC2f5DxkOz97HDunzQfhO0IbwBD13r4tS/jZaduEYR1ffkPm/fqTdOVEtLgicoMZSIq3+2qfH2C05grngvQ8di4Qh0CsnQl7TuOGMJlf3TPKDUn2vV0kieb1TBECETSU1iBRRBvkoGqvuSF55O3uHaTVD/x3/FqIYIBtFALxqgAhEEun4pfSdaKZ93TqybkhTObfvzrAPARGarL6dHzTP9cfNFMnFzfmaSIAAAAASUVORK5CYII=",dHt={class:"admin-container"},fHt={class:"sidebar"},pHt={class:"sidebar-nav"},hHt={class:"main-content1"},gHt={key:0},vHt={class:"content-header"},mHt={class:"search-box"},yHt={class:"data-table"},bHt={class:"table"},wHt={class:"content-cell"},AHt={class:"content-preview"},CHt={class:"content-cell"},xHt={class:"content-preview"},SHt={class:"pagination"},EHt={class:"page-numbers"},kHt=["onClick"],THt={class:"page-info"},_Ht={key:1},DHt={class:"content-header"},IHt={class:"search-box"},OHt={class:"data-table"},MHt={class:"table"},PHt={class:"content-cell"},NHt={class:"content-preview"},RHt={class:"tags-container"},BHt={class:"content-cell"},LHt={class:"content-preview"},FHt={class:"pagination"},UHt={class:"page-numbers"},$Ht=["onClick"],zHt={class:"page-info"},jHt={__name:"Admin",setup(e){const t=Q("chat"),n=Q(""),r=Q(1),o=Q(15),i=Q(""),a=Q(1),s=Q(15),l=Q([{userId:"SD00125",userMessage:"施工现场照片如何识别脚手架搭设隐患?",aiReply:"脚手架搭设隐患识别可以通过以下几个关键点:1.检查连接件是否松动;2.立杆垂直度是否满足要求;3.横杆间距是否符合规范...",timestamp:"2023-10-15 14:32:45",status:"liked"},{userId:"SD00078",userMessage:"高性能混凝土在桥梁工程中的应用特点?",aiReply:"高性能混凝土在桥梁工程中的主要应用特点包括:1.具有更高的强度和耐久性;2.抗渗性能优异;3.施工性能良好...",timestamp:"2023-10-14 11:03:51",status:"liked"},{userId:"SD00234",userMessage:"桥梁健康监测系统如何设计?",aiReply:"桥梁健康监测系统设计需要考虑:1.传感器布置优化;2.数据采集与传输;3.健康状态评估算法;4.预警机制建立...",timestamp:"2023-10-13 16:45:22",status:"liked"},{userId:"SD00156",userMessage:"桥梁施工质量控制要点有哪些?",aiReply:"桥梁施工质量控制要点包括:1.原材料质量控制;2.施工工艺控制;3.质量检测与验收;4.质量记录管理...",timestamp:"2023-10-12 09:15:33",status:"liked"},{userId:"SD00345",userMessage:"桥梁抗震设计规范要求?",aiReply:"桥梁抗震设计规范要求:1.地震作用计算;2.结构抗震验算;3.构造措施要求;4.抗震性能目标...",timestamp:"2023-10-11 14:28:17",status:"disliked"},{userId:"SD00189",userMessage:"桥梁养护管理策略?",aiReply:"桥梁养护管理策略:1.定期检查制度;2.预防性养护;3.维修加固技术;4.养护资金管理...",timestamp:"2023-10-10 11:42:55",status:"liked"},{userId:"SD00456",userMessage:"桥梁施工安全管理措施?",aiReply:"桥梁施工安全管理措施:1.安全教育培训;2.安全防护设施;3.安全检查制度;4.应急预案制定...",timestamp:"2023-10-09 15:33:28",status:"liked"},{userId:"SD00278",userMessage:"桥梁设计荷载标准?",aiReply:"桥梁设计荷载标准:1.恒载计算;2.活载标准;3.风荷载;4.地震荷载;5.温度荷载...",timestamp:"2023-10-08 10:25:41",status:"liked"},{userId:"SD00567",userMessage:"桥梁施工进度控制方法?",aiReply:"桥梁施工进度控制方法:1.进度计划编制;2.进度监控;3.进度调整;4.进度报告制度...",timestamp:"2023-10-07 13:18:36",status:"liked"},{userId:"SD00321",userMessage:"桥梁检测技术发展现状?",aiReply:"桥梁检测技术发展现状:1.无损检测技术;2.智能检测设备;3.检测数据分析;4.检测标准完善...",timestamp:"2023-10-06 16:52:19",status:"liked"},{userId:"SD00678",userMessage:"桥梁施工环境保护要求?",aiReply:"桥梁施工环境保护要求:1.噪声控制;2.扬尘控制;3.废水处理;4.固体废物管理...",timestamp:"2023-10-05 09:41:27",status:"liked"},{userId:"SD00432",userMessage:"桥梁施工成本控制策略?",aiReply:"桥梁施工成本控制策略:1.成本计划编制;2.成本核算;3.成本分析;4.成本控制措施...",timestamp:"2023-10-04 14:15:33",status:"liked"},{userId:"SD00789",userMessage:"桥梁施工技术发展趋势?",aiReply:"桥梁施工技术发展趋势:1.智能化施工;2.绿色施工;3.装配式施工;4.信息化管理...",timestamp:"2023-10-03 11:28:45",status:"liked"},{userId:"SD00543",userMessage:"桥梁施工质量验收标准?",aiReply:"桥梁施工质量验收标准:1.验收程序;2.验收标准;3.验收方法;4.验收记录...",timestamp:"2023-10-02 15:37:12",status:"liked"},{userId:"SD00890",userMessage:"桥梁施工安全风险评估?",aiReply:"桥梁施工安全风险评估:1.风险识别;2.风险分析;3.风险评价;4.风险控制措施...",timestamp:"2023-10-01 10:52:38",status:"liked"}]),u=Q([{id:"KB0012",content:"公路路基不均匀沉降处理方法:1.采用换填法处理软土地基;2.设置沉降缝和伸缩缝;3.加强路基压实度控制;4.采用预压法减少工后沉降。",tags:["路基","公路工程","沉降处理"],timestamp:"2023-10-18 14:32:45",source:"《公路路基施工技术规范》(JTG F10-2006)"},{id:"KB0007",content:"高性能混凝土在桥梁工程中的应用特点:1.具有更高的强度和耐久性;2.抗渗性能优异;3.施工性能良好;4.能够满足大跨度桥梁的承载要求。",tags:["混凝土","桥梁工程","材料应用"],timestamp:"2023-10-17 11:03:51",source:"《公路桥涵施工技术规范》(JTG/T F50-2011)"},{id:"KB0034",content:"大跨径桥梁施工技术要点:1.采用悬臂浇筑法施工;2.设置临时支撑体系;3.实施智能监测系统;4.严格控制施工精度和质量。",tags:["大跨径桥梁","施工技术","智能监测"],timestamp:"2023-10-16 16:45:22",source:"《公路工程技术标准》(JTG B01-2014)"},{id:"KB0015",content:"公路车道宽度设计标准:1.一级公路车道宽度为3.75m;2.二级公路车道宽度为3.5m;3.三级公路车道宽度为3.25m;4.四级公路车道宽度为3.0m。",tags:["公路标准","车道宽度","设计规范"],timestamp:"2023-10-15 09:15:33",source:"《公路工程技术标准》(JTG B01-2014)"},{id:"KB0029",content:"桥梁预应力张拉施工注意事项:1.张拉前检查锚具和钢绞线;2.控制张拉力和伸长量;3.实施对称张拉;4.做好张拉记录和检测。",tags:["预应力","桥梁施工","张拉技术"],timestamp:"2023-10-14 14:28:17",source:"《公路桥涵施工技术规范》(JTG/T F50-2011)"},{id:"KB0018",content:"SMA与SUP沥青混合料区别:1.SMA具有更好的抗车辙性能;2.SUP具有更好的低温性能;3.施工工艺要求不同;4.适用场景有所差异。",tags:["沥青混合料","路面材料","SMA"],timestamp:"2023-10-13 11:42:55",source:"《公路沥青路面施工技术规范》(JTG F40-2004)"},{id:"KB0005",content:"隧道突水突泥防治措施:1.超前地质预报;2.注浆加固围岩;3.设置排水系统;4.加强施工监测和预警。",tags:["隧道施工","安全防护","突水防治"],timestamp:"2023-10-12 15:33:28",source:"《公路隧道施工技术规范》(JTG F60-2009)"},{id:"KB0021",content:"脚手架搭设隐患识别要点:1.检查连接件是否松动;2.立杆垂直度是否满足要求;3.横杆间距是否符合规范;4.安全防护设施是否完善。",tags:["脚手架","施工安全","隐患识别"],timestamp:"2023-10-11 10:25:41",source:"《建筑施工安全检查标准》(JGJ 59-2011)"},{id:"KB0043",content:"高铁轨道精调技术要点:1.轨道几何状态检测;2.扣件调整和更换;3.轨道平顺性控制;4.精调后质量验收。",tags:["高铁轨道","精调技术","质量控制"],timestamp:"2023-10-10 13:18:36",source:"《高速铁路轨道工程施工质量验收标准》(TB 10754-2010)"},{id:"KB0038",content:"桥梁健康监测系统设计原则:1.传感器布置优化;2.数据采集与传输;3.健康状态评估算法;4.预警机制建立。",tags:["桥梁监测","健康评估","智能系统"],timestamp:"2023-10-09 16:52:19",source:"《公路桥梁技术状况评定标准》(JTG/T H21-2011)"},{id:"KB0025",content:"公路施工环境保护要求:1.噪声控制措施;2.扬尘控制技术;3.废水处理工艺;4.固体废物管理。",tags:["环境保护","施工管理","绿色施工"],timestamp:"2023-10-08 09:41:27",source:"《公路工程施工环境保护技术规范》(JTG B06-2007)"},{id:"KB0041",content:"桥梁抗震设计要点:1.地震作用计算;2.结构抗震验算;3.构造措施要求;4.抗震性能目标。",tags:["桥梁抗震","结构设计","安全性能"],timestamp:"2023-10-07 14:15:33",source:"《公路桥梁抗震设计细则》(JTG/T B02-01-2008)"}]),d=J(()=>n.value?l.value.filter(P=>P.userId.includes(n.value)||P.userMessage.includes(n.value)||P.aiReply.includes(n.value)):l.value),c=J(()=>d.value.length),f=J(()=>Math.ceil(c.value/o.value)),p=J(()=>{const P=[],O=Math.max(1,r.value-2),_=Math.min(f.value,O+4);for(let B=O;B<=_;B++)P.push(B);return P}),v=J(()=>i.value?u.value.filter(P=>P.id.includes(i.value)||P.content.includes(i.value)||P.tags.some(O=>O.includes(i.value))||P.source.includes(i.value)):u.value),h=J(()=>v.value.length),g=J(()=>Math.ceil(h.value/s.value)),y=J(()=>{const P=[],O=Math.max(1,a.value-2),_=Math.min(g.value,O+4);for(let B=O;B<=_;B++)P.push(B);return P}),m=P=>{t.value=P},b=P=>({liked:"已点赞",disliked:"踩",empty:""})[P]||"",w=()=>{r.value>1&&r.value--},A=()=>{r.value<f.value&&r.value++},S=P=>{r.value=P},k=()=>{a.value>1&&a.value--},M=()=>{a.value<g.value&&a.value++},D=P=>{a.value=P};return jn(()=>{}),(P,O)=>(F(),K("div",dHt,[x("div",fHt,[O[6]||(O[6]=x("div",{class:"sidebar-header"},[x("img",{src:aHt,alt:"AI",class:"ai-icon"}),x("span",{class:"ai-title"},"AI后台管理系统")],-1)),x("nav",pHt,[x("div",{class:re(["nav-item",{active:t.value==="chat"}]),onClick:O[0]||(O[0]=_=>m("chat"))},O[4]||(O[4]=[x("img",{src:sHt,alt:"对话记录",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI对话记录",-1)]),2),x("div",{class:re(["nav-item",{active:t.value==="data"}]),onClick:O[1]||(O[1]=_=>m("data"))},O[5]||(O[5]=[x("img",{src:lHt,alt:"数据资源",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"数据资源",-1)]),2)]),O[7]||(O[7]=ki('<div class="sidebar-footer" data-v-c5b9f548><div class="user-info" data-v-c5b9f548><img src="'+uHt+'" alt="管理员" class="user-avatar" data-v-c5b9f548><div class="user-details" data-v-c5b9f548><span class="user-name" data-v-c5b9f548>管理员</span><span class="user-role" data-v-c5b9f548>超级管理员</span></div></div><button class="logout-btn" data-v-c5b9f548><img src="'+cHt+'" alt="退出" class="logout-icon" data-v-c5b9f548></button></div>',1))]),x("div",hHt,[t.value==="chat"?(F(),K("div",gHt,[x("div",vHt,[O[9]||(O[9]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"AI对话记录"),x("p",{class:"page-description"},"查看和管理所有用户与AI助手的对话历史记录")],-1)),x("div",mHt,[O[8]||(O[8]=x("img",{src:i0e,alt:"搜索",class:"search-icon"},null,-1)),ln(x("input",{type:"text",placeholder:"搜索用户ID或问题内容",class:"search-input","onUpdate:modelValue":O[2]||(O[2]=_=>n.value=_)},null,512),[[jr,n.value]])])]),x("div",yHt,[x("table",bHt,[O[10]||(O[10]=x("thead",null,[x("tr",null,[x("th",null,"序号"),x("th",null,"用户ID"),x("th",null,"提问内容"),x("th",null,"回答内容"),x("th",null,"提问时间"),x("th",null,"状态")])],-1)),x("tbody",null,[(F(!0),K(Pt,null,an(d.value,(_,B)=>(F(),K("tr",{key:B},[x("td",null,We(B+1),1),x("td",null,We(_.userId),1),x("td",wHt,[x("div",AHt,We(_.userMessage),1)]),x("td",CHt,[x("div",xHt,We(_.aiReply),1)]),x("td",null,We(_.timestamp),1),x("td",null,[x("span",{class:re(["status-badge",_.status])},We(b(_.status)),3)])]))),128))])])]),x("div",SHt,[x("button",{class:"page-btn prev-btn",onClick:w},O[11]||(O[11]=[x("span",null,"‹",-1)])),x("div",EHt,[(F(!0),K(Pt,null,an(p.value,_=>(F(),K("span",{key:_,class:re(["page-number",{active:_===r.value}]),onClick:B=>S(_)},We(_),11,kHt))),128))]),x("button",{class:"page-btn next-btn",onClick:A},O[12]||(O[12]=[x("span",null,"›",-1)])),x("div",THt," 第"+We(r.value)+"页,共"+We(f.value)+"页 ",1)])])):xe("",!0),t.value==="data"?(F(),K("div",_Ht,[x("div",DHt,[O[14]||(O[14]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"数据资源"),x("p",{class:"page-description"},"查看和管理已标注的相关文档知识点")],-1)),x("div",IHt,[O[13]||(O[13]=x("img",{src:i0e,alt:"搜索",class:"search-icon"},null,-1)),ln(x("input",{type:"text",placeholder:"搜索ID、知识点内容或标签",class:"search-input","onUpdate:modelValue":O[3]||(O[3]=_=>i.value=_)},null,512),[[jr,i.value]])])]),x("div",OHt,[x("table",MHt,[O[15]||(O[15]=x("thead",null,[x("tr",null,[x("th",null,"ID"),x("th",null,"内容"),x("th",null,"标签"),x("th",null,"录入时间"),x("th",null,"来源")])],-1)),x("tbody",null,[(F(!0),K(Pt,null,an(v.value,(_,B)=>(F(),K("tr",{key:B},[x("td",null,We(_.id),1),x("td",PHt,[x("div",NHt,We(_.content),1)]),x("td",null,[x("div",RHt,[(F(!0),K(Pt,null,an(_.tags,N=>(F(),K("span",{key:N,class:"tag"},We(N),1))),128))])]),x("td",null,We(_.timestamp),1),x("td",BHt,[x("div",LHt,We(_.source),1)])]))),128))])])]),x("div",FHt,[x("button",{class:"page-btn prev-btn",onClick:k},O[16]||(O[16]=[x("span",null,"‹",-1)])),x("div",UHt,[(F(!0),K(Pt,null,an(y.value,_=>(F(),K("span",{key:_,class:re(["page-number",{active:_===a.value}]),onClick:B=>D(_)},We(_),11,$Ht))),128))]),x("button",{class:"page-btn next-btn",onClick:M},O[17]||(O[17]=[x("span",null,"›",-1)])),x("div",zHt," 第"+We(a.value)+"页,共"+We(g.value)+"页 ",1)])])):xe("",!0)])]))}},HHt=Qo(jHt,[["__scopeId","data-v-c5b9f548"]]),ake="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAalSURBVHic7ZxBbts4FIb/Jzfosp4T1D1BPSgGQVdRTtAcwdkFjoEovkDoCzgKkATZJb1Bc4KqqxZFgUlPUOUEdZdFa75ZWJ5JzUeZFK1uht+SNknxlyzx/e/JQCQSiUQikUgkEon8biikc5ap7g+iVyBOmZESoQugW9eHGSUBMxCKucbZVa7KkGMYZSrVCVJi7DDQI0JvTZcZM2YJ4U4Dt5dTdRMyf2MBh2M1IOAEWHvA67iZa0x8hTzIVK+T4ATAIHD+koFJUyEbCTgaK8UL8TZFOdfYdRWxEu8twk/evxAwOZ8q5duv49uhBfEAoJsQ9l5sp7efPhSzui+2IV5Fuv0ypY/vi8KnU+Lz5eFYDVoQb8lSmFpaEg8AwMDJcKwGPn28fsKHY/UF0sEzCs04ewwUea5qr6BhpvqUIMXiREgPnOOLqcrFvov77rXw0YyBM2i8uczVXd38Waa6P4E+E05ASIWvlFsaf65bxxJnAW0H3/TeYfspMqO8PFXPpD6WE+h1/3yI9XbENLg4PXntMobzTzgBXpkToWgiHgBc5aokjf3VdiL0DjLVW20fZqoP4eonjf2mW6HzqVJgFMYHxKnrGM4CakbfnAcT1/4S57kqwDB+ch2iHWMuoufGAIziPFdFyDFoxpkxLIs/bRFnAatN8i88grl4b8i8Aigx55LaQOHzP4Ywv7BWGz5PYWNQ1xttHQx8W23TzH+4tEl9fbGsoRUBIwJRwECigIFEAQOJAgYSBQwkChiIs4DMKFfbqvAq9ACMCIOYvri0SX19kdYgrdWGeyQCYdAEe679JbJMdRlmiKiZjQ0yMd+vtjGQZply3vRKVM7Qr22Ac4DgfgUS3gkTHUmBvys/EjklIIVXVdi4urBuNUYjqmM3+wvhpQ13N0aLg3Y7Cd6OMpW6jgMsrrzDsToFkAkf30jhVZ6rmWQ8AMgOx+rU90ocZSqt7DSj31ybBoMNX0P1GrYkDqMA4W5dfJoAzxlIYYk35xrPbPZU5SEa98KKkoA7DXyum5+AJ2CkIPPWUXFzMVWGzWbjkesXAWCuMeks7hk94chSAOm6M8I1nxHqs3NXuSpHYzWxpBV6DPQIDvdl+0GWc+1n0XkllT59KGYvttPbhLAHD8fCBVdn++P7oth+mRLg7tk50sjZ9s7KtSGib1qgBREbpwWCKhMCk+szMO7m3NySD02uM6MkwpktieVCkIBLhpnqE9FzStCVjM9fJmT6Qsz3j4C7TRiywOKp/h1IE6InTCwmpJYkRF9ZYzZnfhdaVhKJRCL/dzbyEDnIVK9DtOP6ENHM31zKQFz5r1yDnro+RJj587oyEBeCBDwcq4wZRw5FjTYa1QYuWZw4XFdhWZM9aVBtINBQwE2XmDWpr9lwmV3jjbR3JNJSfZ5XbV4LNYrO9YmreAnYYnEj4ChiSwWeQEMRvdyYjsUABQAw7kAoHO0ssdKKgZODTN3U2Vk14s0IKBztrL6lNnAZGm7ezqrc24HwUUka+z5VUlmmlk6yYah2CNcAdqV+Hbv7nG9pTHye6qNMpZzgGuaJHIwy9dp1Pc6OdCfBkdA8m2vs+paY5bmaXUzVMQAziCf0JXe5ahtIw11M1bHvlug8V8VcYxdC/kMLeRIb7mlNuWau8RYEALYW5qWR5/gpJJq+y9ZVueVpgD7kKlclw7TviWHUJ9pwTyoJ+yyW8yTO5LmakZBAYqKnq20J0ZPVNtqEo6Pxxpjf4yHpU2BpDLqJnbx005eiCalt3QPDBWkNPoFBrEwIJAoYSBQwkChgIFHAQKKAgUQBA/ER0NiwhpaWAVVwv0JC9NWlTerri2UNLZS3sTmoJbzyQ3iFjLU5l9RmCS+9kMJGaa02fCKRwuhMosHgzChTqWQrMbMRYcyZjfpEEPq+pXXGXGQ6PInHK2QeZgIVRhshHY2bva15kKleZSetUkrh1VWuSqn0lhNcNy3yHI2Vkk6gBm5dx3D2A7eYb38QSqy+3wucHB6rHWJMXMo1hpnqI8EeAUeQDArY3RUinAE4XWnudRL8fThWE9YoXF64XpSB4IgtDo9PkskrqVTzxvimKC+m8svWS6xvzW8IBvZ9BPTaxlxO1Q3VXCGBlJXBWUv1nbKNA6AGKU7vrFxLBY7OacW2ijx/29+eAAsR/3qZ3hMaJ7QfcjP3fG3/gYhdCNsQT0qu+aOLdQSXdgzHapAArzSj7/HXTyUT3iU6/JX9KtV6BEbKQNf1r5+IUICp2GK+3VSJSSQSiUQikUgkEon8Hv4BSokHjVtCxsMAAAAASUVORK5CYII=",ske="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXuSURBVHic7ZxPUhtHFIe/1zKUd5FP4MkJrCwSxyuLExhOENiBoIpBPoCaA0QeVwWcHeQEwAksr+yKF4YTWL7BZJeCol8WGhGMB02PZkaapPStYKanu+c3r7vf6z8SZkwntC2gJYYnCgFKa3xPhCD5M1YlFohVGIKcq9MLgeFhZM9nWV+puoAwtM0rw7rCc4E20CyYZawwAM6cY/B7ZIdF6ziJygTaCu2qEXYR2lWVAaBwCpwd9u1xFfmXKlAY2ualkV1BQ4pbSi4UhsB+2UKVJtB214ZAjxkLc5eyhSos0E5o2yr0qm5KeVEYOsdK0T7KFHl4u2tfqeFt3cQBEAgahs+d7n6vYD752Qxt0BCO6ihMKsL59TVr01hTboE6oW1hOBFufJb/BApDHGt5/ahcAu2Etq2GEwp2xKoMRTgFvjjHUOEcYPyFw9A2/x6VETQMLeAxShv516mcktgJG29+tae+D3gL1OnadYGj6eoFKAOEsyXHcRTZeJosNkMbGENblF+KNG+FDd9RzkugrZd21SgnU9bnWB2vyw4RNkMbNAw9YH2a58Wx8ltkB5npshJ0QtsSw1tyNiuFU+fYqzoUKCBUrI6VrA83UaDEpN/m6ZAVhsax4fN1yqTTtetAL29ds3yliX5Qo5FvtFI4XXb8MGtxAA779tg5VoBj32cERu7K5DTpdLr7PUGtb2GK2MN+b983fZXkrTsQHfTtXtqNRtrFzdAGZjQMe1EncQA+vh+8+/HZCsn0ig8/P33afvfnh8Hw7o3UJmZGnbIXdRNnzGG/t6+I9U2vQmpI8o0FJf7OulemNRVnTC5LEoKfnrX/+vh+8OH25TQL8g3ujusszpiRJXl3F70wtF+5M18JlFhPkJWLwvDaUXtxxiw7NpJ5oiyal0Z2b1+4a0G+1rNftQNYJlFkY+PY8EmbzIbe+j8hR6x1fNC3XoX5sBnaAAgEmsaMrFcdsYPhQzifNm5Lo9O1JwKrWemcY+1NNApoH9y6/sKnkDKaVhIerKK8SAs6xYxGjytge88WDnLHOMdew2QLZIRdkn5LblX4s0cZhaynYIAZKxItO31dRKjtrj3yKX/J8SiKbGwAjPFzqIpYT6dr1xuGTz6Vu4emoPbS8ClZfJwKdbz2SXdlRvUcd9LZzUunX6Qbuf4cUcKKh0AghrdJcJqbw8ieowyy0ik8h0QgH0dKhT+mqdAUcZEPTYGjrZc2sz9JRTjLTjLSxCTmmvllnctW/S7bXRtWIM4NRjlKRsFcLDmviL/ZCW3LqM90hnKet3nthLYNvMrzzBQ088SNY6LIxqpejmPLiJEnmckkv/XcF/yVjUAwTX8kHrMVYnhiQH1GhC95Ct8JbXvGa2bTfIzMd1IIjGh2E7t25Jpwn5X1jBEItsJ8HbZzHk1MaRn1G3qzM0sIQ9ucx4qrMX6RwJjxWlxmviLZAj0Eb8/10iPWqQL1nz3MhcHDgnK59kYeF6nQtAgEd+dyJuEzKosQFNrdkZopGpSdpy+XFewXKF0gzz6tElwFZZdvQTrfHWZlU7pA/zcWAmWwECiDhUAZLATKYCFQBguBMqibQDE54r5ZUCeBooO+fbTk+N5zmXgm1EagazeaSI8iGwv5ZzCrojYCfYXHJN6seJCdZDY0GrzaDO2aQKtORxxqIxBKy3P5e6bURiCFU0lGMFXat86vzpVaCJS2la/TtZ/rcGCmHp2007Sl4Jmebr6PWgi0nOr3yEIgGB2NSl0UcJprsbIq5i6QCM3UDQhzWh25Sx066WajwUmnu3+zVi5oE3R9jnW6oQ4CgdISvz0CM2f+Ao0O3H5zkKRhaCnsznuon7dA8dI1KwfpK7eD7a6F6vcYTWS+nfR9I1hC3l0lVTBfgTI2Zj2sgbM4V4HUcTHpfhTZGJ2vSPP2gzJffvQDS/OjfIH8Xyj2PCqeuWV3jKlgPrv0UWzJsXdluFDku4kJ0wPUbzjs2+NO1wKTPWt1evGmgp/vKl2gZFSKysyzql+X8mHefVDtWQiUwUKgDP4B+8cqeklqZ/4AAAAASUVORK5CYII=",lke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAekSURBVHic3Zy/cttGHoC/3zK8SWeW6cI8Qei5STTOFaG6u8r2E4TuKCkzgekH8Kq8whIyY8vurHTX2XoCIZWUnGfEdOmCvAHTXSJx9woCMkUCIP4sQMpfJZEEdvlx97fYxQ8r5ODbkdYW7rQN+76vJ3mOWQe7nu6JyOeI7WHpW+iI0AE6wMRaJgIhwlhEwqupPXnl67BKmbLqA5G8p9G/4dSwXbVQl3ie7vyl8LB8I0K34OFh23C3SqNoZb25IA+go4TBl/f6f/73LDgvW6gLhp7ubn3VPzTCfwT6UUsrSufK8tO78+DXsvVIFZggL+Zj4J9f3ut3/rHV/+n8PPhf2cLLsjvSWglvgF7FU4XG8u9350HpFpjYhTPkLVWgyS499HS31eINtrI4gIk1bB/5elzlJEstsIA8aLBL73q6pxRnUDjOJeFEHiy0wILyFvHrGqV3R3og8NrR6ZzJgzmBFeXFOO/Su57uieLC0emcyoOoCzuSB4679NDT3ajbfuygbs7lAbQcyotxNkpvfdW/AD5xUKda5AEoC3dcnzTCu1RcDD3dLXPwtyOt2bABIwnVNuwDYR0nB7otxcXeSHtFDhp6uuuoV9QqD0D5vp5MDdtAXXPcDnC4N9KHnqdzzRZa6nbIg7lROGolh3UWRo5ReujpbkvxW8VyGpEHoOI/XhxoH/BrLm9ll1aKfsUyGpMH8NH8P23D/qXiAW6CdxodZi098ccSy3er14jSMYZHL2uU53m6cwW9Kwhf+TpU8282EA8zGXq6i1Sb5yqRuq4qGHq6e6m4sIrTluLU83RHLX4oik/7dVUiC6m+ugJiXSw0LBHF5lPe987upcj9JYHQWDxcQlR1gVJD+EmQFxVme4kCYRYPqe/6MBEFn1c9h3Gz1HVNqjwAS7rAdcRDa0utKt9AhG7e681VZMoDLHRTBcJa4qGTL/6Xg268Sl5MpkBoNh5aRwJFpFIoyCtPZEULjGksHloe4iJkVBiJ88qLmOQSWEc8TIpTR74eWwfllB2JC8rD2pwCwX08vGzNLkQXX3chscxIXFQegEBYeNK0N9KHQKHlqYwajNtTtpPuo0RL+aeUjYuWsQihgV+sYSwQps2Py8iL8AsL9DzduZzdoyhaWDJ1SkxiQWwLJlbxmhLfx8KjUtP26Be7wNUXa1qiI6zhbu4YOI/z60NLr86YWBPhka/HFRaO8uF5unPZ4jRXNsEtaoki4j1/9vT7Ui2wCL6vJ+0p2wir1+huUUu8mtoTyDETccEHKPE4vi3RiED4sCROzfv435hA+DAkCuzP3xSrfRBJwvHA8o2IhNOp/V0gVNCZQqfVkk+ttT2gj7tF1vDFgf7sZvXWhCuJeYhEfwcMyhwfkXhLdm0CoVmJcD0BeEoJkdZwN2kquFaB0LxEgJ0n+oGyvCbfNeXEwuOjA32c9GZjg8jeSB/uenpJkquBpQgvn+m3U8NdVq9xhtawnSYPGmqBeyP9mlm3Sc0aKNMSAS5F7kfPhfSIngcBsMKPyhA893WQdprMVRhhPJ3ycFWyaO0C5+TFuJE4az3xQzSZn7Own9aKEiROLHx/dKB1jjrUKzBBXowriUU4bhseJ8XPoae7LeGNFU7+ZvCLxNjaBGbIi1mHROc53LUIzCEv5tZLdC6wgLyYWy3RqcAS8mKyJbq8hfAeJxKdXQdWkAfQEcVp2nVipYql020pTssmwcc4EVhRXkyHWXLnDXY8XWfCZ2WJlQU6kgeANcuzEaX42sW5M6gksZJAl/IAWknre+4HkCRKSywt0LW8DJq6iVRKYimBDcprmsISCwusU54V+XTxNZFms2QpKLGQwLpbnhX72eJrBn6pq7wMckvMLbCJbit2ecRVhqDOMjPIJTGXwMZintBbXCx97usAu7kSVwpseMDoJOU3i13PcysRmRIzBa5htD1Omg+vuRVChsRUgeuQ9+JAP0p7sz3Lnw6bq84SiRITBW6aPLiRpx02U6VEliQuLWdtorx5KqTjuuR6KeyGwE2XF7MREqM7g9c7F0WbPLhJHs9HKXkA786Dyd+3+idKeMD6Ei4/mQp/CjjfGSgPpeXNs/aWaAkUgLjdN2YVTuTBLFd7rQOL0FO7Iz0g+xc8xsrAGB4CxxWLdCYvZt0SPxLSV3yN8PDlM/127qW3O0/0ibK8KVGWc3kxr3wdDj293Xh3toyVtam7ZBwvyANmiTkUb4m1yYtZR0u0wg8qbd9RYzjJODIoUE7t8mIalWgJjg70sSIlzzhr9wtj7R85i2lMXkwjEoVxNLVEWZuSqC22n3a8UtzPUUzj8mJqlbiQ5KlEUlc5BjtP9PJ92tlrgxXFrE1eTC0SEzJkZcfTD5TKHFWPjeFEidyJWuVgRTFrlzePs4vtlPRiAdgb6d8qFzBjo+TFVJaYkZutAIzwuFINZ2ykPKjYnVcktrcA3p0Fv27d6wuU3jltY+XFlFqAyPFUwPVqzM9nQVBGosD+iwPtogXXTiGJOR+puLER989nQfDFvf7v0SZgK5O3jfDo6EC/ylP5TSGXREvQNvwrT2pdaoJltMT1NZYe0WzFWiYiBMZw8tJfnubdNnZHehDtV9gDJljGVvgh67mQRf4PlainFlLaGJ0AAAAASUVORK5CYII=",uke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARrSURBVHic7ZxLcts2GIC/n6q7Vm+gnqDqItNJV/QJ4pwg8s6xPRNWPYDgA0SmZ/za2T1B7RNYXWWmXUQ3CHOCel1X/Lsw1agqXyIk2SLx7STiNd8AIEA8hAV4G5gdz+OVKr4IbaC9SPyK3KNECOM45vYiNDdryLM0UibQ25/NjqccA53VFqcUkcLR+dBcP3VBAFpFAQ77xghcsJ7aVoa2wM4PL335/cNo9NSFyRV42DdGYbCuwiyIX1XiYWD8Fz/6gxcv/W/++DAa2xQiswnv901P4Mom8XUQC68v3pfvF/9XKYTx1oTtMDT3VfL3sh7I8615/yHpm0uR2qKU7kOLuyAwlbqoVIFvA7PD83hhlKGTlDeX/b7pZXZHFhJTBXoerxZN6CkpU16B73IDVJSY3oSV7iKJPDWq+EVhRCQqTmhxiekCZWOaLwDJoD6X0/eDE4TiN+6CEr/K+L9U5LOhKTUQt+Ggb7REsFLl3Zqw/dDirrCFfZFY+HbOfAvXkTA091sTtpdZExslEJYvsXECYbkSGykQliexsQJhRmIZMiQ2WiA8SiwdOEVi4wUujNJ98L7Mv53AavQO+iYAJ9CGQRCYthNYnfbfLXnjBNqg6juBFsRK1wm0QATXB1riBCZUWlACN4wBQNUJtEKEyttFnEBAYm6rxnUCgdPQjFBGVeJmrYmUouR6xUYwUXZbwh0Lroe7GphwGZpoErMNRIvEcwJnmJF4XTaOEzjHZWiis6HZncR8q7Bb1Dc6gRlchiY6H5prFX7LC+cEWuIEWuIEWuIEWuIEWmI1E3lOTGdFqkQCEUIkMb+chma0ynxrVwNF6CD4QE897g765tN+3/RWlV/tBKbQEbg66JtP+4FZ+s7bJgic0hGPj9MF8WXRJIFTjpcpsYkCAY6X1ZybKhDx+LXq4ZpZaiNQ4UjhSOCGct/0On95WDfl2owDz4fGzP5O+rncY2AC7wCTF6aI2tTAec6GJtSY78lf820fBsa3yae2AgHOQzNWOMkLo5bH2motEP5t2tm1sMQxsTxqLzAhc+FcLU/iN0KgwuesZ2J5LrARAleJE2iJE2iJE2hJIwR6In+uLO1VJfyc0Dh/A+VeYDpZz7z8uxbuGyFQVDOHMQCeRy/t/73AdJSc0+1K1AiBycJSZi0UGMyvmwSBabeEK/K2uwnj2nyNKUQZJ4tNqQhcHfxk3iTnh9sPsEPBLCWOuW2MQFGONEfgYyB8KD03ji5Cc9OIJgx223jTUDiCkvcH1oW9wHRaHh+x/ICgcHM+NK+hIcOYKZehifRxB2rlcyEI469jdqc/GyUQko+sFfZCw2PNm78qr1FNeJakOQ8gfQw4RwScnA1NOP+gsQKnJCLfoXQRuiT9oyqRCKOii29lLzCdlnA1G3njUUYTZfcyNNGqs/ISeT51kQcg+MksYuV4eaPzjUbWcwdind/Ca2lRdRa4FpxAS5xASzxspjUOPLTE/XmbyBK/vOThTbT4ROKGcT8dSK8js38AVv6NEaBqFDoAAAAASUVORK5CYII=",vj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWtSURBVHic7ZzBctNGGIC/Xw4dbnVvveE3AC7McEK59RZ4AswtTTyTjV8gmwcoMTMUuCWcegSeAPfUzvTQ8AQ1T1D3VgrW34Nl1wWtLMm7kjLj75Txyvtvvn93tVpLgi1btlxhpOkGrGKM7X4U2ZOIbqL6jcANAIX3kcifs5m+V7h8MbKThpu6pHGBA2PjJCIW5R5CXOhLyqUKb5KEi6ZlNiZwYGyswklhaW4uZgmnTYmsXeC+sb1OxAnQ91x1IyJrFXhg7C2JeAX0AoWYzBJ265TYqSvQwdD2RfgJ+DZgmG4k9O/cjT/89sv414BxltQi8HBojcBz4HoN4a4D3925G/9Vh8TgQzgdtr8XOjg9u2rCpcLldZgC/A3dHehpxB5KjHCrUHUJt5+N7OUGzV9LUIHpCeMt6+Y8ZSzK6dORHRept8QZPPicuBOqYoAC8qYKx8/O7EWZelPR44Oh7QucAV3Hob2OcA7slqm/DMF6YPrPneccMtGEB5sOsSK9XBJ2i/busgTrgQInOcXehtaLkZ3sG7vbmc+zmT1RO5wBt4vWaYzt/hNhIrgJvHv62FrXsUF64LrelwgPnv9gX/uMOTA21nlPzETh0bPH+VNFWsce80X+Mhl5PTiq1No1iPIwp/jCtzxYzoujim3ie2PvpwkwfNaTVeSG63veBRpju3lnx1nCqe+YC67N655mFgqxMdZ1siES+bpKTO8CP5C7tAi6ezIa2Slw4Spf07ZKeBcYRdxzlUnCS9/xMmK8cZVF8/nNK6UFDoyND4x1Xwmo+yoh1FJilR24xDGMxb1erExhgQNj48Nj+1Yj3orIzZxDsxupBL2kWjAa2alqtsAkJ7lVyV0HLtZDAkdaNHviXNBmT+4BEJgQbsvsfzgFDoyNP0a8qtDtvQ+Tsogw1ezPe75jOYdwuvYpLUOViaOoNrGqjisSd9sq4/0sLI6hWngK8IA6hm86tL3iX6BkN1KEXt5C1hf7xvZcQ1XE/zzsXWAC71xlnzqSeznlgyhyL5b1KvTAKGHsKtNE7/uO90V83IvlvEX2BvH8ki6WndejA2Nj3zEXDIyNFVxJmoRYyAfZjQGcuy0qufuEG6HCWU7xOETMMNtZede8QjwYujcoqzIYWpv3Y1OoXaAgAp+O7BjNmQvh5GBo+77iHQ6t0fwd8GC7QKGGMDPlUV65wLkPiWkdeUM36B5kMIFpxp07xLC5xAI/XCGEvV8mmECAHx/b47yhDNUlFpGHMs77QcgHQQUCXFMesGYBW1ZiIXkwWTeN+CC4wNHITmcJu3iSWFheTXdpBRcI8/nQh8S2yYOaBMLmEtsoD2oUCNUltlUeBL65KIuVWzHy72eZS1z+vabaRuRBzT1wQZme2GZ50JBAKC5xDY3KgwYFwsYSG5cHDQuEyhJbIQ9aIBBKS2yNPGiJQCgssVXyoEUCYa3E1smDlgkEp8RWyoMWCoQvJLZWHrRUIPwnsc3yoIFLuTK0WdyC1vbAq8JW4IZsBW5I7XPgyoOCPYXTdQ+/tJ1aBBpju5868lAT7evK3QMC54dDe3KVRQYVuG9sL4rof4QjVLuOB8t6V1lkEIEV38jRiMhFkkGPqnzfm0DXMK1ALSJ9vXZlY4EFh2kVvIv0mOQllQV6fHHOOjYWGTDJFQWKjlQq33U/VXiSvherX+J7pUV6SbIynqn+7Cp25uLw+PQhoheVA2c0RCJ5vTPTl+lTlZu+xWiSJXJ1mBZ9u0cGU4UnXyWMFm11EV5ggTdy+BCZJIyjiL7AEVWfSclI8jpCCSycwVUCvlcrn5KvXVnFr8AKGcyiJpGVkvw5fgRukME8goj0lOQFmwj0ksEieBEZKMnlBXrOYBkqiAyeZKfAtLF/LD8IlMEqrBVZY5Jz1+T7xvZ2OrLXRG8rwhciW5TkK8W+sbU8Srtly5YtW7ZsaRP/AtDwUxcccaikAAAAAElFTkSuQmCC",cke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARTSURBVHic7ZzBceM2GIU/UDs7OaoEl+ASmAqiVCDltok9I0YNGGogK81kNrktXcEqFYRbwboEdhCdE5PIwdKORNsSAAIEqcV3lUyBz0M8EO//Ieght5lMSZgruFYKEsEDNevfV7IIPbYmIvQADvllIWcC7oCrF7+gKGrF+o+V3HQ6sBMEF/BdJq+ShPSkcM/ZKli/rVmtVnLrcXhnCSbgu0xejRLugBR94ZoEF7JzAQ+Emzm+dC5q7rueJzsT8DaTqRLcIUi9/pCiEIplV0J6F/CsMfhCUSjB/YffZO7zZ7wIaGkMvvA6TzoV0JEx+MKLkE4E9GgMvnBmOK0E7MwYfOHAcKwEDGYMvmhhONoC9swYfGE8T54VsOfG4AttIV8VcIDG4IuThvNMwMEbgy9eMZyvAl6cMfiiYThi96j+TRTODMFDVfFj8ibhPVE8cxTXo4S7RBHnuhZMktAjGDoJ0Jt8YWgIKJKqZongIfRgBkj5WPPr8TJGMY3rv7OUCpZflzHNT+NC+hXOLaSb3GYyVQlT4qtcXtUs/1zJ8qUPz24mZJkc/5uQCZgDY9ej6yklUJwSbo/2dtY3ImSpYFnXFOeE22O/oXpZhnNkDCbELf0QW/pNBmg4J43BBKexZs/nyRJNYzDBSMAsk2OdrKBnQhobg+59gmYm8iZhpmAKjE1Dl4CGY2QMjexH+z5tM5EtsDEJp/taXKRxn3lVs9ZeSBsbguGAPRqOkTEclBFPtK6ulYm0edQMy28dzZMlhsbQOvtpCCmyTI7/S/hifcHnGIXTlkKWCpZvazY6v+GlKEBRVIqfxM1CvgcyJxc9xjjl/zmTk0QwP/EUtDGGK52/MSQXNwv5D/6XGkbVUPt5UilSIUBg1ubQYVHAtisBn/Bcfhvg1XIrbhbyI12/gjkuvw1ZRhw6WLeuGu1BtVhZ1Xwv4MgJp4EGoy3kwfw2IcxrYs8zEUUBIq+U+rxf2+3+wZMEftBe+HoY10vTzulMZMh7fe4wK29rsntk5jwZTeidlS7RejWMmcgxpYD7x5rcWyaSZXL8OBJTpVTG5VR1xUzECgfrUXeZyLCE7EejTZMBGI6zMGmPUZ/Id7AdYiYCrKuaTbBMxCYr2A/kcSSmqlYzBNc6A3KIzdbXnN0bTheZSC5q/upjJmJiDBpbX577RGwyET9C5qpm/WEltYpF/WQiLbMCk0xkt5syazlPboFN15nIUZ/IkDMR3bDcy9bXrk9E3C7kJ087HDZCTs4kgzET0fnywfyUAqB4MJ0eYiZiQcxELAmViQjYPGUiIz6hOl/owqVkIhC8bNcmE0kJJFzMRCzH9ZKRncxEjFbql0vsE7GgJPaJWBH7RCyJmYgVsU/EmtgnYkFJ6D4RXXompLExmNDNEaAD6BOxJR5C25LOj0E+MBzX9X3OM18dgh3EHapPxDXBj4Lvok/EJ8EFPMR1n0gX9ErAPc0+EaAIccy7Dv8DLEXbK4+V3DgAAAAASUVORK5CYII=",dke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAloSURBVHicvVtLcttIEn1ZlDpmyT7BUCdo6QQmT2DqBKZ2MqkIFdEHUHI9YRKOEGXvRJ3A8glEn0CcEwhzgsbsJlpG5SxYoPBHgR+/HUFUoSqRn5eJLMIBMdR8qlr0DiJdEXRAOE3+L4KACEsiWh1F8uD7HB5yPUWgQ0w69HhAguvshmsQAlhEBp+/+hwcYl1F2KsAhh4PCLgB0NlhmhDAZD5lfz+rqsbeBHDlMct68/vC4thgfGiz2IsARh7fAxiU3iBYkqJHMdhshhTaEOkK0AXQLlnd6jhC75BC2FkAFZsPBJgYg2WdTV9p7orCPYpMh7CCQShAh2jzfwhBAMIKQstjke/bCmknAYw81gBmBX8tIoNJU2c29JgJuEaZRpQjBPC4zTO3FoDW3H5VeEFmsQRMbqfMTee71NxpKVwD0NuuycI/Npi4aoTa9imvCjPk35S/zeaHHg9aCk/YffMAoF8VnoeanULwVhpg3/5fqYuC5XzGvSbzDDWfksI3VIfNQIAHEnoxIv9tAaEQ/RMkpxCcgtAtGReKQe/O51XVGo6aLDjG3wo6KzkSTFzHW3W/QVXkABZk8HDr87Lk/4eaudqk8DTUXCmERhpgvfUHrENXZ/NHg7fvwBe2cqBWEE/Ia1MQGfTK5nPSALvoaynxzi5vP2aJUq7ugTEYf/H50WVNWXz1ObjU3Gu18A2SouCxhlwUjavUAFdqe2zwe5nXvdTcaRG+VeQFgQCTuykvqp7hCq25/drCU0YIIINekTmVRoGrdUwuJicJiCAo2/zI41lL4aVi84vIoLevzQOA73MYRTjPrXNtujkUakAttU3NjNV8xmfZy5bUFNo6AY8/DcYudv5Rc18pvCOioEnKXORrIoOT7DNzGlBFbcmgJ8jYO6HYw0qhxAMBLm6nfF63+UvNnZHH92odJrWI+K8Kz0OPi9aWw5GBDyD1DKXy+0o5QUttczcl2d3Q467LAjIICHhwIUk1jLBDwP1ozB9IMKkIkfB9DkceL5HYDwneZe/baMCl5g4KVNa+sdqFV0EMzl3mcGaEhK4oPI08nmnNpXmDAD8y43K+aCOAFuEemTAnwMU+HJQBKu32SnN35PFLgdNdGINzCJYlQ/WrwovV3PxzTW5c277oDY7iBUieUvr79M5FiFmc5M0uIIOLhIo/fvyT+0owQz4qtQHMRh5fZ8bgq8/ByOPKNRwBgCi8z1wPj407tW0Krbn9U0EXMMJSTvDlEz9qzUtLw4tS5o4oPI3GvIwEF5YYderWEpvAIHlRgM+HqsIMPR68KjyX0OHHKq3zfQ7vpsyRwZkAxYyR0G2towWr4/q6wpFNG1M3GoPSRWyLCq6ehB6N+bTOw9sQem5N96YgI2wTcIMI19mx/8j4I0VEf2TuCfddlj5SWDPC9OYDAS7IoJfiEm8e/r7KwwPArc9xEjZGsaNNjxesspqtSOVvcthTIwjQT/wMAIznUz65m/Li1ufl/BOfIb+JwavCy9BjrhPEfMr+scFJjqRlQflooozI75mbgspJdsMiMugV1fzjTQBI/tcm4OZV4flKVxOwhH84qQibOUFuXRJrBMEyMjiZT/miyrx8n8P5lMcFm4g9/FNdqeurz8F8xj0q1obBlZcmZHkByE5fdQoRhyXX++NN5P4gdEnhuY4BAsDtlJkMesj4BgFukuFRicnYfLPveb8KIdIbqWSAMWwkyWmCLZAAABQhZ/Nt14rqr4IIQusfFonLawY45qcq/2D9zSJzeRCPUbZgGCT/JZWPn5vFZDUG6LumqLvA+od12Ez6h0TYLBsbrVltkLwWF0hiH7BMD0G3jEbamt0icaltU9TKN7EvxLFf1jW+VNgsexHW/ywzl7uAFUCU5/2dpJ1ksXkTBQRm6PE3Fw6+KyxlTtFhQj7f3/xn1mX0BDpDzacK2Ehokblh8PFP7qMEZQSGgH5L4Zmo8fe9g8I6xGxE6GzCYIEWQAnu6xxiGYFB8w+ch0eG5ZLC6UYAVgvGmSFtWjuYynBTQWAArIstTfzDpebOlcffXO/fBSkiVBIyNuGmzrY3LGxNQILNH44JTlwIbSm8ZPKHvYAonzAVUeHiOsA6z3ZKTm59Xs6nHCcnTglOoh44qNvIthBJm6Ui+quIClfavE1OalkYANxNmesSnI+a+2X1wLr5m0Brbufa9AzCvADyVLgsz65lYcCbf8gRGJvgqPzn8SBOnKrmbYqfQK7wIyL/TgnA2nj6ptbmY0heEA1iv0PxIhDgYj7l3NebfcCoXNUovPN5VZsO3/2LV3EdrizPjmN/nX+wTC1X0CRgcmxwdqgq9KXmji2kJrEAHOoB8YZSHr74c1hs2y9ZSlpV948MTm6nzIdshbOsNiX0yOAz4NAf8L/1wM3iLKM6s04wNzHecoMPRvBZKbx3qPsfDPZlpJ8vb617KQ2wF1NvglAcFUoYYHJg1zq45MM3dl63+X3kE7a/IZslhpG8NUsUhcGUeqv8R5MNYg8vFf4hebtrL8DIY205wdYYeawLNg8g3X6TMwEh/CCkPGZXa25X2aitKfRKOj6de3720Wxd2XUKLLIF2ZwAjMEikwp3/lbow4GY3Pq81JrPfrbog4h0jMEPl56fS82dI4VZGf2lgnI2ABDQlvSlvhT0AFj48ylncx3nDpEwMjjbd3x2bZcr6xofjfnZpYZZ1b1aGAXI4CEjyba1yZO6h7nCQd0r29vWC601lUDWZw8W5VOUoKhVRoDH3wwudonZtuen6DN3DKeuMWvrZY7SuSOllAdEBpOWSjdEEtB/baFzqet7fLJwUXcCJkcGvouAC7q+AgCPZPC9Cb+o7hNc9/I+IU92QgE+/+awWFc7b9Idaud8SV6zWsMu45OobZWtEEL85KUQfpDQC4n8J75sFLokeFfRzAxs2R06GvNTZt7w2OBkG9N06hV27Opugq27Q0t6jQtDnAucPo7e+bw6NjhDGe1thq27Q0s2v1M7T+PzAgmb7mO7oy1bHYkbeTxDQfucIZx/+bRdgzWw65EZovcg6dqDCx1YgYggICCAQruwxCZY1rXBxKjiC9sez8nMcVhU9R3bo7OPEFolHag9EdJF9lxCAvvYvJ3n8ChT3x0w3tfJ0l8iAKA2S3ODYBUJGpOwKvwyAcQYeswQfKB6Hv+GNdd4OETN8JcLIMaV5q5R6CrgD3u0vgNbfhNBqAgrEC1/RvL9kKfJ/w8ubB80zNGY6gAAAABJRU5ErkJggg==",WHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWwSURBVHic7ZpBVttIEEB/NzBvls4NxAmGnCDmBCEniNkRm/ciew5A+QAx4j2bsDM5wcAJcG7gOUE0JxivQ9w1C8tEkiWMZBk/Mv4raMnd1dXV1VXVgi1btmzZ8v/FPNdATV8O7I55o06PgJpCzRg8AFVCAxNjCB38bR2jfiCj55BrrQo48cXbtTQU3sNssgWYKFz85giCQCZrEA9YowJOOyIKZxV0NQGup46Lq0DCCvpLULkCTnzxdix3FF/xZUwU2pc9ua6y00oV0OqID5znPA4NjB3c4hg7mMxX9MQXz0LNGPMHRuvAEVDL6SfYc3Sr2haVKeARkw8VukVXrtmRhpn15y08VEaDczksJWiKShQQCTvMeLTyakVWdcaiRVwPenJctt85Kyug6cuBme35uICV7tc8v2Kg2++JrNK3XeXHAGaHIenJOw6rdFZXgYRTxyEQxtsVzj74crRK3yspoNURH+Ug1dy9DGS8Sr9Z5CnB2lyn+yRKbwHfl9q95RvJ1Q8GPWmvItAyou3wLd62ylYobAG+L7VTX+r3M80nTH/P0S0jRBGio/M63hZFmqV4kgWc+OJZS90o7zHUs96JjjopK0gRspyiwnEZv/OoBZz44p12RHYsdwaGeZMH+M0RFB28LJEVjOJtRstZQa4Cmh1p7FjuNC8YSbLWhCWLaXq7GeonvnhF+9lNN0TO7QzwH/ndPKxdKXVtdqQBUMZ0rwIJW20Zxa3SwAGpU2IZCwr4bhmaWSyeJjTGBD+meltFVhaPHpsdKaUENXw1/FSAtbwBbor0kXCCrY4MgUbGe+1BTyrb41mhcxkn9sGXI2v5K9Y0AW5QM9pTvX3KtnzwAVHM3Ug9D6eO/XVMXuFm6tjfc7xSuDEwnG+Jp2IWzb0GNDB6fW/5t9WWu1Nf6kv6yA1qwqnjsMoiRHzl9xyv5isUD26KWkKrI99Y5qSVkVG6Wb7KAkROLxHUrHPyAHHzjI9T1BKcoc3M9PMx1NVyd9pZjFOs78vMbJJ01zn5Oa2ODCO/k6CIEj5/kptBT15NHfvO8U6hiyZjhDkKZ2klmLQjUSW8PJf9pwz+FB6pFVzzU/Hxvx8oG90BnPpSV8v7rH7juYO1lrepp1/KDJhF3uQVjlOCNaK2tKCFHeOcfiCjQU+OTU4aPQ+abDqdtS7bfIrS9OUgb/JZq3rZk+tcJfiSTrmfTD+QUVYavWNmVm81VWr6UTCSyuMykLEhGa4uM+ksJZgK6gtXgYTGpZRrOGj6cmDntzPxl1cZLE6/JzJXwlP3c1wJVZS8HmSZHYGJ8Y3loyV1hESnQmX0eyLqeF3EmV325Fodr6ua/BznuE00KJ5FSZjX9+ovNChjwusoqynJuSp4i+mwXajx/TKkt7cxeFZTx17ZwsJLIF0vUCW0Ln3slSwsvAR2F+8VJvYqkDAdOkb1tl8OXQz6xhbAKRepd72sxOElk5XzGMcXC/A5kBsWS80LicNL5rtdvMHqBzJ6OAWiImMY/5HCWastd1XHBs9NqyNZZb4uxCpCeVdPGOr3lm/NjshLU0SzI42oYNJIPFBG8ypXoih6FUjY9OVdxm1vzcDZveVjqy1jY83NdKr/KIx/h8lzl8SzmH9koeBFxdEjsoO6cKo/84LMm6ETX7wd8/hFSAEmznD8+ZMkqrWtjmj8/0FPErJ8+FOOrHJOtZHpQpkv82LkKpAw+gJjeblpObVoIoWwypAKJ2+gu+d4nY4GH70aG/Qk2HPsG2P8dM5QBNXl72RQxbaaf2G23++JZG3VhYuRNNGPLoCLE1+83R3zVlUPUDwFzxhq5H/QBMrYKoWvzI3j2BmG6XQ9d5joY0tggmHsHF+j4/3xcYoKVhXLfMBzsfInMi+drQI2LcCm2Spg0wJsmq0CNi3AptmkAsLY3xtLpjamgNi1dujM4pXYli1btmzZsn7+A0xBo6uRjthqAAAAAElFTkSuQmCC",VHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALHSURBVFiF7Za9UttAFIXPMTMhpV+AGZGKSaWGsTvWvAAyVTrME8Q8gfETGJ4AeIFYlGnipbNDEXWhQwXpVYYUPim0EvIi/vIzKeIzo0JzV3e/e/fuvQKWWup/F1+yuG0iI2AHZAggcA8ApABSSAmB86mN7R8FaJuoJ3JQ2fBRCcggHf8AjhIbZ78M0DaREXmCaqSk1Xx+3gCy70ACAK+BJoBAwI7IHvN3AEglHXy2cfxigPb27qGkQeGI0nBq49PHgD3wAQADACSH008fDp8FEJqoudponECK6j4OTdR8BfRJbgkInZOE0pkP2DJRH+TIvdpbqesfyQJAaKLmKjlB7jidS91LGyeVyAKRY2evU0qpM7Vx6mWjOMZ79kb169U75ymlTnVzAFAFTlKX0rp79pHfhEDkODRRUQOY2thS6iCvl8DBlFop07W9OwLwro7SRdID2SvsMxtPb9KrzD3JWrBxDjICsLEC3H5Lr2zx7U16la0FGx+dPVx785Y3119tmYG2iXqQ+gKyudT1N3fR7wGAK8Z79qmNU0kHAEByq84+l7oAIGnQMlG/BHAVC0pDP+0lwN252zq7c5Z4axd0aeMEDhLk+xLgXyoHkI4BAOSobaKgbiFddPOHbwBQ3Hu31temicJqtkuAmY2PSA6BvNLrICRd5Iz1kO6KFs7P6uwNckygCfKo6BkLfaDV6X5BHmFCrxj9HuEisECeFeYNJwCQzibj9Rq44orb2WTcKWwLNcC8SlMAocjJponKdCc2zir2QOSJyGuR18ydBw68U/XpNq+C7y/s+UAqxwBCAVlDOvBbrJuOe9VWLOnCn35+K6a071/hB4dRa3t3BKlf+Xj43DnvT9EXDaMFCBP1RQ4q49VKumjkZ58W0biiDOaAYd6wArf+ySn65A9JMf1Avq+APKUU0vEtcPpbPyS+/sYv2VJLLfUTWR6eJ45fIAcAAAAASUVORK5CYII=",qHt="/assets/11-7l3W5DeQ.png",fke="/assets/12-DEN8e9Vv.png",Eh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEsSURBVFiF7dQxbsJAEIXhN0buSZcrpCNSJITS2F3a3AMpq+QAGS5AKLhEqhwh7kDQcARukJSRLNZpMLYguzbeQWnm7yzL409reQBN0zRN0/6znuSw8cvk6W6U3KwX2UZqJkkMMYb7eQ+fKDDYT93EO6SzGX+Hzg4GnuCqySLIIKATV00PRnYGNuKqNwQhOwFdOAImAFAAr1LIs/9iH24+ZV4tsmw4SghAUrt9bSM83A+T9+Uy+7kYsAlXXksiWwPb4qSRrYDn4iSRjcCuOCmkFxiKk0BGvsF5hLdQXNl8ylyuoUMFBjnhw/eccw8aw/08wpcErt74mfl4T8YWV64d6TzB/QNbSRzw50lufQvc+4l3FikRGbJIJXB1pLV4JCITW9xKzdU0TdM0Tb5fy/nLMy4jqr0AAAAASUVORK5CYII=",kh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPoSURBVGiB7Vg7bBtHFJy3S1ICjoAgGDjWYs+ePQtCCWD1bhMLTCwgKdQIcmmDjQrDSGIj7u06RgTjgLBPavZRTcKB4YAUIFK7k+J0x6Ng35frJppqj9zPzO3c27cPuMMd/t8QVxM3g4HfMGoI0DNan3zs/3ThYh3lYlIAqFvVE9AXwNPGDHeCoz0X6zgTsFR2RMgUAFyKcGYhYGUjAX0AIDDftJ2cCgDci3AuAHAr4osIANyJ2JiAVnDsLa7/bYvUugL4FPgAvbVOFIkEAJsRUavAGUD8Zg+WZt5Toj2AAADhp3qv/xhGJ/sYwDdl1y8toBUcewt7eV8MD+T2my4AEU7KjgVKCmgGA39pLocqYQcAoGACyl8Ax8Ziul3nLPn/tdUdgt8L2QAAQqYLZZ+Vp19CwO75YUeMnK69dcHYWvPmw1e/jpN9PybaO8HRnqZ5KMCKvLYns/7LaVny4dIFEPpdngvghSQwF1Gv/tn/eZQ2bic42tPGDFfjNkMeKLADiTAYkzBaPcmKIC7JAwUErMfwiMQvqSRckwdyJnP33j3qJeO30epJFolmMPBdkwdyCiD5IGpb4k2egydMp92SB3JY6N67Rz3QxtZZ1uwfeSZeKjtqWNUFgIWyT12QB/J8A2Q3alrhb3mJ3PT7oTy1fMi0EMFO1L5W/NMtneJIFbB7fthJ+tiVDaogVYCIjk9bAf52T6c4Ur8BI9arMdRIcP5FGOHm0LTqFMgOAKk7oKBXubtIpayxCOpW9YRsC9muWemm9U0VYGFi5UK2NkUwC0I08/Z1VlapAgHinVdEauBIF2DU6sQVcVKY+hTC6+hNmyb120sVsF33JgTmACBkuxUcl7555UUzGPhCtqPnD1+v3zFuI1XApH82F1mFzys771WnmI4tq+OD0wpSyQM5vgEDxKevohy43oVk4qigUi9KYZ8MbClvFNsI9Bf28n41ip9HMm0nZHqlTPUdmPTP5krwOnoW8qAZDPy0MWXQDAY+aR/G64i8zpO65Aqj7/dfvE1WmhtGDTdppdV1dZV3Zd2zI+Q+BxbaniSttDSXzzexE81g4G9ZdZosOS60Pck7PreAWf/llDRPo2cB/YZRlWr+u+eHnYZRQyTCJoBnRbLewrXRmxvaj8nfCIwWmrk8C8TlmQcCrIVlEbx6v//ibRE+pYq7YbXBPpZblTkrGCuo0bWxF9t1bzLpn82BsAwJzLwrK10NdEm0I78D+Us0GxMAfP4tFoZgfKVYyDbrwyti5/fv2krjW0V0snuvrRyWIzNShexpNoQwmugOyC4FPshWsgQJwUwoF0Y43lLeKLLXHe5wh2r4D0ZDBfBX3iD1AAAAAElFTkSuQmCC",GHt={class:"chat-container"},KHt={class:"history-sidebar"},QHt={class:"history-list"},YHt={key:0,class:"history-loading"},ZHt=["onClick"],XHt={class:"history-content"},JHt={class:"history-title"},eWt={class:"history-time"},tWt=["onClick"],nWt={key:2,class:"empty-history"},rWt={key:0,class:"loading-overlay"},oWt={key:1,class:"exam-workshop-card"},iWt={class:"config-section"},aWt={class:"config-item"},sWt={class:"type-cards"},lWt=["onClick"],uWt=["src","alt"],cWt={class:"config-item"},dWt={class:"generation-methods"},fWt=["src"],pWt=["src"],hWt={class:"method-content"},gWt={key:0,class:"ppt-file-preview"},vWt={class:"file-preview"},mWt={class:"file-icon"},yWt={class:"file-info"},bWt={class:"file-name"},wWt={class:"file-size"},AWt={class:"config-item"},CWt={class:"exam-config-container"},xWt={class:"config-left"},SWt={class:"config-row"},EWt={class:"config-group"},kWt={class:"input-wrapper"},TWt=["disabled"],_Wt={class:"config-group"},DWt={class:"score-input"},IWt=["disabled"],OWt={class:"question-types"},MWt={class:"type-row"},PWt={class:"type-name"},NWt={class:"progress-bar"},RWt={class:"score-config"},BWt=["onUpdate:modelValue","onInput","disabled"],LWt=["onUpdate:modelValue","onInput","disabled"],FWt={class:"preview-panel"},UWt={class:"preview-header"},$Wt=["src"],zWt={class:"preview-content"},jWt={class:"preview-title"},HWt={class:"question-breakdown"},WWt={class:"breakdown-row"},VWt={class:"breakdown-left"},qWt={class:"breakdown-right"},GWt={class:"calculated-score-row"},KWt={class:"calculated-value"},QWt={class:"total-score-row"},YWt={class:"total-value"},ZWt={class:"bottom-actions"},XWt=["disabled"],JWt=["src"],eVt=["disabled"],tVt=["src"],nVt={key:1,class:"generating-text"},rVt={key:2,class:"exam-detail-card"},oVt={class:"detail-header"},iVt={class:"header-left"},aVt=["disabled"],sVt={class:"header-right"},lVt=["disabled"],uVt=["src"],cVt={class:"dropdown-menu"},dVt=["disabled"],fVt=["disabled"],pVt={class:"exam-info"},hVt={class:"exam-title"},gVt={class:"exam-stats"},vVt={class:"total-score"},mVt={class:"question-count"},yVt={class:"generation-time"},bVt={class:"question-sections"},wVt={class:"question-section"},AVt={class:"section-title"},CVt={class:"section-score"},xVt={class:"section-controls"},SVt={class:"question-count-text"},EVt=["src"],kVt={key:0,class:"section-content"},TVt={class:"question-header"},_Vt={class:"question-number"},DVt={class:"question-text"},IVt=["onClick","disabled"],OVt=["src"],MVt={class:"options"},PVt={class:"radio-wrapper"},NVt={key:0,class:"radio-dot"},RVt={class:"option-key"},BVt={class:"option-content"},LVt={class:"option-text"},FVt={class:"question-section"},UVt={class:"section-title"},$Vt={class:"section-score"},zVt={class:"section-controls"},jVt={class:"question-count-text"},HVt=["src"],WVt={key:0,class:"section-content"},VVt={class:"question-header"},qVt={class:"question-number"},GVt={class:"question-text"},KVt=["onClick","disabled"],QVt=["src"],YVt={class:"options"},ZVt={class:"radio-wrapper"},XVt={key:0,class:"radio-dot"},JVt={class:"radio-wrapper"},eqt={key:0,class:"radio-dot"},tqt={class:"question-section"},nqt={class:"section-title"},rqt={class:"section-score"},oqt={class:"section-controls"},iqt={class:"question-count-text"},aqt=["src"],sqt={key:0,class:"section-content"},lqt={class:"question-header"},uqt={class:"question-number"},cqt={class:"question-text"},dqt=["onClick","disabled"],fqt=["src"],pqt={class:"options"},hqt={class:"radio-wrapper"},gqt={key:0,class:"radio-dot"},vqt={class:"option-key"},mqt={class:"option-content"},yqt={class:"option-text"},bqt={class:"question-section"},wqt={class:"section-title"},Aqt={class:"section-score"},Cqt={class:"section-controls"},xqt={class:"question-count-text"},Sqt=["src"],Eqt={key:0,class:"section-content"},kqt={class:"question-header"},Tqt={class:"question-number"},_qt={class:"question-text"},Dqt=["onClick","disabled"],Iqt=["src"],Oqt={class:"answer-box"},Mqt={class:"answer-outline"},Pqt={class:"outline-item"},Nqt={class:"outline-text"},Rqt={__name:"ExamWorkshop",setup(e){const t=Q("ai"),n=Q("bridge"),r=Q("桥梁工程施工技术考核"),o=Q(100),i=Q(!1),a=Q(""),s=Q(!1),l=Q({}),u=Q(!1),d=Q(!1),c=Q(!1),f=Q(!1),p=Q(null),v=Q(null),h=Q(null),g=Q(!1);Q("");const y=Q(""),m=Ur({maxSize:20*1024*1024,allowedTypes:[".ppt",".pptx"]}),b=Q({single:!0,judge:!0,multiple:!0,short:!0}),w=Q(null),A=Q([]),S=Q(0),k=async()=>{try{console.log("📋 开始获取考试工坊历史记录列表..."),d.value=!0;const Ye=performance.now(),Je=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:3}),lt=performance.now();console.log(`📋 考试工坊历史记录API调用耗时: ${(lt-Ye).toFixed(2)}ms`),console.log("📋 考试工坊历史记录列表响应:",Je),Je.statusCode===200?(S.value=Je.total||0,A.value=Je.data.map(Ue=>({id:Ue.id,title:M(Ue.exam_name),time:D(Ue.updated_at),businessType:Ue.business_type,isActive:!1,rawData:Ue})),console.log(`✅ 考试工坊历史记录列表已设置: ${A.value.length}条记录,总数: ${S.value}`)):console.error("❌ 获取考试工坊历史记录列表失败:",Je.statusCode)}catch(Ye){console.error("❌ 获取考试工坊历史记录列表失败:",Ye)}finally{d.value=!1}},M=Ye=>{if(!Ye)return"未知对话";const lt=Ye.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return lt.length>30?lt.substring(0,30)+"...":lt||"新对话"},D=Ye=>{if(!Ye)return"未知时间";let Je;if(typeof Ye=="string")Je=new Date(Ye);else{let mn=Ye;Ye.toString().length===10||Ye.toString().length===11?mn=Ye*1e3:Ye.toString().length===13||(mn=Ye*1e3),Je=new Date(mn)}const lt=new Date,Ue=new Date(lt.getFullYear(),lt.getMonth(),lt.getDate()),ze=new Date(Ue.getTime()-1440*60*1e3);if(Je>=Ue)return Je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Je>=ze&&Je<Ue)return"昨天 "+Je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const ut=Je.getMonth()+1,yt=Je.getDate(),jt=Je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${ut}月${yt}日 ${jt}`},P={bridge:{name:"桥梁",icon:ake},tunnel:{name:"隧道",icon:ske},equipment:{name:"特种设备",icon:lke},"gas-station":{name:"加油站",icon:uke},highway:{name:"高速运营公路",icon:vj},comprehensive:{name:"综合",icon:cke}},O=Q([{name:"单选题",scorePerQuestion:5,questionCount:5,romanNumeral:"一"},{name:"判断题",scorePerQuestion:3,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:8,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}]);let _=null;const B=Q(0),N=J(()=>`确定要删除历史记录"${p.value?.item?.title||""}"吗?删除后将无法恢复。`),q=J(()=>O.value.reduce((Ye,Je)=>Ye+Je.scorePerQuestion*Je.questionCount,0)),U=(Ye,Je)=>{console.log("准备删除考试工坊历史记录:",Ye),p.value={item:Ye,index:Je},f.value=!0},j=async()=>{if(!p.value)return;const{item:Ye,index:Je}=p.value;try{const lt=await Bn.deleteHistoryRecord({ai_conversation_id:Ye.id});lt.statusCode===200?(A.value.splice(Je,1),Ye.isActive&&await G(),console.log("考试工坊历史记录删除成功"),Ct.success("删除成功")):(console.error("删除考试工坊历史记录失败:",lt.msg),Ct.error(lt.msg||"删除失败"))}catch(lt){console.error("删除考试工坊历史记录失败:",lt),Ct.error("删除失败,请稍后重试")}finally{f.value=!1,p.value=null}},H=()=>{f.value=!1,p.value=null},G=async()=>{s.value||(console.log("创建新考试工坊任务"),B.value=0,i.value=!1,t.value="ai",n.value="bridge",r.value="桥梁工程施工技术考核",o.value=100,a.value="",_?(O.value=_.questionTypes,o.value=_.totalScore,n.value=_.selectedProjectType,r.value=_.examName):O.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],w.value=null,b.value={single:!0,judge:!0,multiple:!0,short:!0},s.value=!1,l.value={},h.value=null,y.value="",A.value.forEach(Ye=>{Ye.isActive=!1}),await k())},Z=async Ye=>{if(!(s.value||c.value)){console.log("点击考试工坊历史记录:",Ye),B.value=Ye.id,c.value=!0;try{A.value.forEach(lt=>{lt.isActive=lt.id===Ye.id});const Je=await Bn.getHistoryRecord({ai_conversation_id:Ye.id,business_type:3});if(console.log(Je.data),Je.statusCode===200&&Je.data&&Je.data.length>0){const lt=Je.data[Je.data.length-1];if(console.log("获取到的试卷数据:",lt),console.log("试卷数据结构:",JSON.stringify(lt,null,2)),a.value=D(lt.created_at),lt&<.content)try{const Ue=JSON.parse(lt.content);at(Ue)}catch(Ue){console.error("解析试卷数据失败:",Ue),i.value=!0,a.value=Ye.time}else i.value=!0,a.value=Ye.time}else console.error("获取历史记录详情失败:",Je),i.value=!0,a.value=Ye.time}catch(Je){console.error("获取历史记录详情失败:",Je),i.value=!0,a.value=Ye.time}finally{c.value=!1}}},$=Ye=>{t.value=Ye,console.log("选择功能:",Ye)},L=Ye=>{n.value=Ye,console.log("选择工程类型:",P[Ye].name);const Je=P[Ye].name;r.value=`${Je}工程施工技术考核`,w.value&&(w.value.title=r.value)},W=()=>{const Ye=P[n.value].name;r.value=`${Ye}工程施工技术考核`,o.value=100,O.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],console.log("清除设置")},ie=()=>{r.value.length>32&&(r.value=r.value.slice(0,20))},ee=()=>{o.value>1e3&&(o.value=1e3,Ct.warning("试卷总分不能超过1000分")),o.value<1&&(o.value=1)},te=Ye=>{Ye.scorePerQuestion>99&&(Ye.scorePerQuestion=99,Ct.warning(`${Ye.name}每题分数不能超过99分`)),Ye.scorePerQuestion<1&&(Ye.scorePerQuestion=1)},X=Ye=>{Ye.questionCount>99&&(Ye.questionCount=99,Ct.warning(`${Ye.name}题目数量不能超过99题`)),Ye.questionCount<1&&(Ye.questionCount=1)},ue=async()=>{if(!r.value.trim()){Ct.warning("请输入试卷名称");return}if(r.value.trim().length===0){Ct.warning("试卷名称不能为空");return}if(o.value>1e3){Ct.warning("试卷总分不能超过1000分");return}for(const lt of O.value){if(lt.scorePerQuestion>99){Ct.warning(`${lt.name}每题分数不能超过99分`);return}if(lt.questionCount>99){Ct.warning(`${lt.name}题目数量不能超过99题`);return}}const Ye=O.value.reduce((lt,Ue)=>lt+Ue.scorePerQuestion*Ue.questionCount,0);if(Ye!==o.value){Ct.warning(`总分不匹配!当前配置总分为${Ye}分,请检查配置`);return}console.log("生成试卷:",{function:t.value,projectType:P[n.value].name,examName:r.value,totalScore:o.value,questionTypes:O.value});const Je=new Date;if(a.value=`${Je.getFullYear()}-${String(Je.getMonth()+1).padStart(2,"0")}-${String(Je.getDate()).padStart(2,"0")} ${String(Je.getHours()).padStart(2,"0")}:${String(Je.getMinutes()).padStart(2,"0")}`,t.value==="ai")await Me();else{if(!h.value){Ct.warning("请先上传PPT文件");return}await ve()}},ve=async()=>{try{s.value=!0;const Ye=we();console.log("发送给AI的PPT生成提示词:",Ye);const Je=await Bn.sendDeepseekMessage({business_type:3,message:Ye,exam_name:r.value,ai_conversation_id:B.value});if(Je.statusCode===200){const lt=Je.data.reply,Ue=Je.data.ai_conversation_id;console.log("AI生成的PPT试卷:",lt),console.log("AI对话ID:",Ue),B.value=Ue;const ze=Te(lt);pe(ze),i.value=!0,Ct.success("PPT试卷生成完成!"),await k(),B.value>0?(A.value.forEach(ut=>{ut.isActive=ut.id===B.value}),console.log("设置最新历史记录为激活状态,conversationId:",B.value)):Re()}else throw new Error("AI接口调用失败")}catch(Ye){console.error("PPT生成试卷失败:",Ye),Ct.error("PPT生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},Me=async()=>{try{s.value=!0;const Ye=he();console.log("发送给AI的提示词:",Ye);const Je=await Bn.sendDeepseekMessage({business_type:3,message:Ye,exam_name:r.value,ai_conversation_id:B.value});if(Je.statusCode===200){const lt=Je.data.reply,Ue=Je.data.ai_conversation_id;console.log("AI生成的试卷:",lt),console.log("AI对话ID:",Ue),B.value=Ue;const ze=Te(lt);pe(ze),i.value=!0,Ct.success("AI试卷生成完成!"),await k(),B.value>0?(A.value.forEach(ut=>{ut.isActive=ut.id===B.value}),console.log("设置最新历史记录为激活状态,conversationId:",B.value)):Re()}else throw new Error("AI接口调用失败")}catch(Ye){console.error("AI生成试卷失败:",Ye),Ct.error("AI生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},we=()=>{P[n.value].name;const Ye=r.value;let lt=h.value.content;if(lt.includes("PPT文件信息")){const ze=lt.match(/提取的文本内容:\n([\s\S]*?)(?=\n\n|$)/);ze&&(lt=ze[1].trim())}let Ue=`请根据标题为${lt}生成一份考试试卷:
- 试卷总分:${o.value}分
- 题型配置:
- `;return O.value.forEach(ze=>{Ue+=`${ze.romanNumeral}、${ze.name}:${ze.questionCount}题,每题${ze.scorePerQuestion}分,共${ze.scorePerQuestion*ze.questionCount}分
- `}),Ue+=`
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- {
- "title": "${Ye}",
- "totalScore": ${o.value},
- "totalQuestions": ${O.value.reduce((ze,ut)=>ze+ut.questionCount,0)},
- "singleChoice": {
- "scorePerQuestion": ${O.value.find(ze=>ze.name==="单选题")?.scorePerQuestion||2},
- "totalScore": ${O.value.find(ze=>ze.name==="单选题")?.scorePerQuestion||2} * ${O.value.find(ze=>ze.name==="单选题")?.questionCount||15},
- "count": ${O.value.find(ze=>ze.name==="单选题")?.questionCount||15},
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }
- ]
- },
- "judge": {
- "scorePerQuestion": ${O.value.find(ze=>ze.name==="判断题")?.scorePerQuestion||2},
- "totalScore": ${O.value.find(ze=>ze.name==="判断题")?.scorePerQuestion||2} * ${O.value.find(ze=>ze.name==="判断题")?.questionCount||10},
- "count": ${O.value.find(ze=>ze.name==="判断题")?.questionCount||10},
- "questions": [
- {
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }
- ]
- },
- "multiple": {
- "scorePerQuestion": ${O.value.find(ze=>ze.name==="多选题")?.scorePerQuestion||3},
- "totalScore": ${O.value.find(ze=>ze.name==="多选题")?.scorePerQuestion||3} * ${O.value.find(ze=>ze.name==="多选题")?.questionCount||10},
- "count": ${O.value.find(ze=>ze.name==="多选题")?.questionCount||10},
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }
- ]
- },
- "short": {
- "scorePerQuestion": ${O.value.find(ze=>ze.name==="简答题")?.scorePerQuestion||10},
- "totalScore": ${O.value.find(ze=>ze.name==="简答题")?.scorePerQuestion||10} * ${O.value.find(ze=>ze.name==="简答题")?.questionCount||2},
- "count": ${O.value.find(ze=>ze.name==="简答题")?.questionCount||2},
- "questions": [
- {
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }
- ]
- }
- }
- 注意:
- 1. 所有题目内容必须基于提供的内容生成,与${lt}工程相关
- 2. 题目难度适中,符合考试要求
- 3. 严格按照JSON格式返回,不要有多余字符
- 4. 单选题和判断题的选项要合理
- 5. 多选题至少要有2个正确答案
- 6. 简答题要提供清晰的答题要点
- 7. 必须为每道题设置正确答案:
- - 单选题:selectedAnswer字段填写正确的选项(A/B/C/D)
- - 判断题:selectedAnswer字段填写"正确"或"错误"
- - 多选题:selectedAnswers数组包含所有正确答案选项
- 8. 简答题答案字数不超过500字
- 9. 确保题目内容与提供的内容高度相关
- `,Ue},he=()=>{const Ye=P[n.value].name,Je=r.value;let lt=`请为${Ye}工程生成一份名为"${Je}"的考试试卷,要求如下:
- 试卷总分:${o.value}分
- 题型配置:
- `;return O.value.forEach(Ue=>{lt+=`${Ue.romanNumeral}、${Ue.name}:${Ue.questionCount}题,每题${Ue.scorePerQuestion}分,共${Ue.scorePerQuestion*Ue.questionCount}分
- `}),lt+=`
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- {
- "title": "${Je}",
- "totalScore": ${o.value},
- "totalQuestions": ${O.value.reduce((Ue,ze)=>Ue+ze.questionCount,0)},
- "singleChoice": {
- "scorePerQuestion": ${O.value.find(Ue=>Ue.name==="单选题")?.scorePerQuestion||2},
- "totalScore": ${O.value.find(Ue=>Ue.name==="单选题")?.scorePerQuestion||2} * ${O.value.find(Ue=>Ue.name==="单选题")?.questionCount||15},
- "count": ${O.value.find(Ue=>Ue.name==="单选题")?.questionCount||15},
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }
- ]
- },
- "judge": {
- "scorePerQuestion": ${O.value.find(Ue=>Ue.name==="判断题")?.scorePerQuestion||2},
- "totalScore": ${O.value.find(Ue=>Ue.name==="判断题")?.scorePerQuestion||2} * ${O.value.find(Ue=>Ue.name==="判断题")?.questionCount||10},
- "count": ${O.value.find(Ue=>Ue.name==="判断题")?.questionCount||10},
- "questions": [
- {
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }
- ]
- },
- "multiple": {
- "scorePerQuestion": ${O.value.find(Ue=>Ue.name==="多选题")?.scorePerQuestion||3},
- "totalScore": ${O.value.find(Ue=>Ue.name==="多选题")?.scorePerQuestion||3} * ${O.value.find(Ue=>Ue.name==="多选题")?.questionCount||10},
- "count": ${O.value.find(Ue=>Ue.name==="多选题")?.questionCount||10},
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }
- ]
- },
- "short": {
- "scorePerQuestion": ${O.value.find(Ue=>Ue.name==="简答题")?.scorePerQuestion||10},
- "totalScore": ${O.value.find(Ue=>Ue.name==="简答题")?.scorePerQuestion||10} * ${O.value.find(Ue=>Ue.name==="简答题")?.questionCount||2},
- "count": ${O.value.find(Ue=>Ue.name==="简答题")?.questionCount||2},
- "questions": [
- {
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }
- ]
- }
- }
- 注意:
- 1. 所有题目内容必须与${Ye}工程相关
- 2. 题目难度适中,符合考试要求
- 3. 严格按照JSON格式返回,不要有多余字符
- 4. 单选题和判断题的选项要合理
- 5. 多选题至少要有2个正确答案
- 6. 简答题要提供清晰的答题要点
- 7. 必须为每道题设置正确答案:
- - 单选题:selectedAnswer字段填写正确的选项(A/B/C/D)
- - 判断题:selectedAnswer字段填写"正确"或"错误"
- - 多选题:selectedAnswers数组包含所有正确答案选项
- 8. 简答题答案字数不超过500字
- `,lt},Te=Ye=>{try{const Je=Ye.match(/\{[\s\S]*\}/);if(Je){const lt=JSON.parse(Je[0]);return Y(lt),lt}else throw new Error("未找到有效的JSON数据")}catch(Je){return console.error("解析AI回复失败:",Je),be()}},Y=Ye=>{Ye.singleChoice&&Ye.singleChoice.questions&&Ye.singleChoice.questions.forEach(Je=>{Je.selectedAnswer||(Je.selectedAnswer=""),(!Je.options||Je.options.length===0)&&(Je.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ye.judge&&Ye.judge.questions&&Ye.judge.questions.forEach(Je=>{Je.selectedAnswer||(Je.selectedAnswer="")}),Ye.multiple&&Ye.multiple.questions&&Ye.multiple.questions.forEach(Je=>{Je.selectedAnswers||(Je.selectedAnswers=[]),(!Je.options||Je.options.length===0)&&(Je.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ye.short&&Ye.short.questions&&Ye.short.questions.forEach(Je=>{Je.outline||(Je.outline={keyFactors:"答题要点、关键因素、示例答案"})})},be=()=>({title:r.value,totalScore:o.value,totalQuestions:O.value.reduce((Ye,Je)=>Ye+Je.questionCount,0),singleChoice:{scorePerQuestion:O.value.find(Ye=>Ye.name==="单选题")?.scorePerQuestion||2,totalScore:(O.value.find(Ye=>Ye.name==="单选题")?.scorePerQuestion||2)*(O.value.find(Ye=>Ye.name==="单选题")?.questionCount||15),count:O.value.find(Ye=>Ye.name==="单选题")?.questionCount||15,questions:De("single",O.value.find(Ye=>Ye.name==="单选题")?.questionCount||15)},judge:{scorePerQuestion:O.value.find(Ye=>Ye.name==="判断题")?.scorePerQuestion||2,totalScore:(O.value.find(Ye=>Ye.name==="判断题")?.scorePerQuestion||2)*(O.value.find(Ye=>Ye.name==="判断题")?.questionCount||10),count:O.value.find(Ye=>Ye.name==="判断题")?.questionCount||10,questions:De("judge",O.value.find(Ye=>Ye.name==="判断题")?.questionCount||10)},multiple:{scorePerQuestion:O.value.find(Ye=>Ye.name==="多选题")?.scorePerQuestion||3,totalScore:(O.value.find(Ye=>Ye.name==="多选题")?.scorePerQuestion||3)*(O.value.find(Ye=>Ye.name==="多选题")?.questionCount||10),count:O.value.find(Ye=>Ye.name==="多选题")?.questionCount||10,questions:De("multiple",O.value.find(Ye=>Ye.name==="多选题")?.questionCount||10)},short:{scorePerQuestion:O.value.find(Ye=>Ye.name==="简答题")?.scorePerQuestion||10,totalScore:(O.value.find(Ye=>Ye.name==="简答题")?.scorePerQuestion||10)*(O.value.find(Ye=>Ye.name==="简答题")?.questionCount||2),count:O.value.find(Ye=>Ye.name==="简答题")?.questionCount||2,questions:De("short",O.value.find(Ye=>Ye.name==="简答题")?.questionCount||2)}}),De=(Ye,Je)=>{const lt=[],Ue=P[n.value].name;for(let ze=0;ze<Je;ze++)Ye==="single"?lt.push({text:`${Ue}工程相关单选题${ze+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswer:""}):Ye==="judge"?lt.push({text:`${Ue}工程相关判断题${ze+1}`,selectedAnswer:""}):Ye==="multiple"?lt.push({text:`${Ue}工程相关多选题${ze+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswers:[]}):Ye==="short"&<.push({text:`${Ue}工程相关简答题${ze+1}`,outline:{keyFactors:"答题要点、关键因素、示例答案"}});return lt},pe=Ye=>{w.value={...w.value,...Ye}},oe=()=>{i.value=!1},ce=Ye=>{b.value[Ye]=!b.value[Ye]},Re=()=>{A.value.length>0&&(A.value.forEach(Ye=>{Ye.isActive=!1}),A.value[0].isActive=!0)},Ee=async(Ye,Je)=>{try{console.log(`刷新${Ye}类型第${Je+1}题`);const lt=`${Ye}_${Je}`;l.value[lt]=!0;const Ue=Fe(Ye,Je),ze=await Bn.reProduceSingleQuestion({message:Ue});if(ze.statusCode===200){const ut=ze.data.reply;console.log("AI重新生成的题目:",ut),console.log("使用当前对话ID:",B.value);const yt=pt(ut,Ye);console.log("解析后的新题目:",yt),yt?(Rt(Ye,Je,yt),console.log("准备保存到后端,对话ID:",B.value),await en(Ye,Je,yt),Ct.success("题目重新生成成功!"),await k(),B.value>0?(A.value.forEach(jt=>{jt.isActive=jt.id===B.value}),console.log("设置最新历史记录为激活状态,conversationId:",B.value)):Re()):Ct.error("题目重新生成失败,请稍后重试")}else throw new Error("AI接口调用失败")}catch(lt){console.error("重新生成题目失败:",lt),Ct.error("重新生成题目失败,请稍后重试")}finally{const lt=`${Ye}_${Je}`;l.value[lt]=!1}},Le=(Ye,Je)=>Ye==="single"?w.value.singleChoice.questions[Je]:Ye==="judge"?w.value.judge.questions[Je]:Ye==="multiple"?w.value.multiple.questions[Je]:Ye==="short"?w.value.short.questions[Je]:null,Fe=(Ye,Je)=>{const lt=P[n.value].name,Ue=Pe(Ye),ze=Ne(Ye),ut=Le(Ye,Je);let yt=`请基于以下${lt}工程的${Ue}题目,重新生成一道相似主题的题目,要求如下:
- 当前题目参考:
- ${JSON.stringify(ut,null,2)}
- 题目类型:${Ue}
- 每题分值:${ze}分
- 题目序号:第${Je+1}题
- 请严格按照以下JSON格式返回,不要包含任何其他文字:
- `;return Ye==="single"?yt+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }`:Ye==="judge"?yt+=`{
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }`:Ye==="multiple"?yt+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }`:Ye==="short"&&(yt+=`{
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }`),yt+=`
- 注意:
- 1. 新题目必须与当前题目保持相似的主题和难度
- 2. 题目内容必须与${lt}工程相关
- 3. 题目难度适中,符合考试要求
- 4. 严格按照JSON格式返回,不要有多余字符
- 5. 单选题和判断题的选项要合理
- 6. 多选题至少要有2个正确答案
- 7. 简答题要提供清晰的答题要点
- 8. 必须为每道题设置正确答案:
- - 单选题:selectedAnswer字段填写正确的选项(A/B/C/D)
- - 判断题:selectedAnswer字段填写"正确"或"错误"
- - 多选题:selectedAnswers数组包含所有正确答案选项
- 9. 简答题答案字数不超过500字
- 10. 新题目应该是当前题目的变体,保持主题一致性但内容要有所变化`,yt},Pe=Ye=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[Ye]||"题目",Ne=Ye=>({single:w.value.singleChoice.scorePerQuestion,judge:w.value.judge.scorePerQuestion,multiple:w.value.multiple.scorePerQuestion,short:w.value.short.scorePerQuestion})[Ye]||2,pt=(Ye,Je)=>{try{console.log("AI回复内容:",Ye),console.log("题目类型:",Je);const lt=Ye.match(/\{[\s\S]*\}/);if(lt){const Ue=JSON.parse(lt[0]);return console.log("解析后的题目数据:",Ue),Je==="short"&&Ue.outline&&Ue.outline.keyFactors&&(console.log("简答题keyFactors原始值:",Ue.outline.keyFactors),Array.isArray(Ue.outline.keyFactors)&&(Ue.outline.keyFactors=Ue.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",Ue.outline.keyFactors))),Ue}else throw new Error("未找到有效的JSON数据")}catch(lt){return console.error("解析单题AI回复失败:",lt),null}},Rt=(Ye,Je,lt)=>{let Ue;Ye==="single"?(Ue={...lt},(!Ue.selectedAnswer||Ue.selectedAnswer==="")&&Bt(Ye,Je,Ue),w.value.singleChoice.questions[Je]=Ue):Ye==="judge"?(Ue={...lt},(!Ue.selectedAnswer||Ue.selectedAnswer==="")&&Bt(Ye,Je,Ue),w.value.judge.questions[Je]=Ue):Ye==="multiple"?(Ue={...lt},(!Ue.selectedAnswers||Ue.selectedAnswers.length===0)&&Bt(Ye,Je,Ue),w.value.multiple.questions[Je]=Ue):Ye==="short"&&(w.value.short.questions[Je]=lt),w.value={...w.value},console.log(`更新后的题目${Ye}_${Je}:`,Ue),console.log("当前试卷数据:",w.value)},Bt=(Ye,Je,lt)=>{if(Ye==="single")if(lt.text.includes("桩身倾斜")||lt.text.includes("桩位纠偏"))lt.selectedAnswer="B";else if(lt.text.includes("深水河流")||lt.text.includes("悬臂浇筑"))lt.selectedAnswer="B";else if(lt.text.includes("预应力张拉")||lt.text.includes("对称张拉"))lt.selectedAnswer="C";else if(lt.text.includes("混凝土裂缝")||lt.text.includes("伸缩缝"))lt.selectedAnswer="C";else if(lt.text.includes("沉井下沉")||lt.text.includes("土体破坏"))lt.selectedAnswer="C";else{const Ue=["A","B","C","D"];lt.selectedAnswer=Ue[Je%Ue.length]}else if(Ye==="judge")lt.text.includes("水灰比无关")?lt.selectedAnswer="错误":lt.text.includes("张拉顺序")||lt.text.includes("预应力损失")?lt.selectedAnswer="正确":lt.text.includes("养护时间越长越好")?lt.selectedAnswer="错误":lt.text.includes("下沉速度应控制")?lt.selectedAnswer="正确":lt.text.includes("张拉应力值可以超过设计值")?lt.selectedAnswer="错误":lt.selectedAnswer=Je%2===0?"正确":"错误";else if(Ye==="multiple")if(lt.selectedAnswers||(lt.selectedAnswers=[]),lt.text.includes("桥梁基础施工"))lt.selectedAnswers=["A","C","D"];else if(lt.text.includes("预应力技术"))lt.selectedAnswers=["A","B"];else if(lt.text.includes("质量控制"))lt.selectedAnswers=["A","B","C"];else if(lt.text.includes("安全措施"))lt.selectedAnswers=["A","B","C","D"];else{const Ue=["A","B","C","D"],ze=Math.floor(Math.random()*2)+2;lt.selectedAnswers=Ue.slice(0,ze)}},en=async(Ye,Je,lt)=>{console.log("对话id",B.value);try{if(!B.value){console.warn("没有找到对话ID,跳过保存");return}const Ue=JSON.stringify(w.value);console.log("保存到 /re_modify_question 的内容:",Ue);const ze=await Bn.reModifyQuestion({ai_conversation_id:B.value,content:Ue});ze.statusCode===200?(console.log("修改已保存到后端"),lt&&console.log("题目重新生成并保存成功")):console.error("保存修改失败:",ze)}catch(Ue){console.error("保存修改失败:",Ue)}},Wt=()=>{s.value||(u.value=!u.value)},Ut=()=>{u.value=!1},ct=Ye=>{Ye.target.closest(".download-dropdown")||(u.value=!1)},_t=async()=>{try{Ut();const Ye=je();console.log("准备导出的数据(有答案):",Ye),console.log("使用模拟Word导出功能(有答案)"),await Ot(!0)}catch(Ye){console.error("Word导出失败:",Ye),Ct.error("Word导出失败,请稍后重试")}},st=async()=>{try{Ut();const Ye=je();console.log("准备导出的数据(无答案):",Ye),console.log("使用模拟Word导出功能(无答案)"),await Ot(!1)}catch(Ye){console.error("Word导出失败:",Ye),Ct.error("Word导出失败,请稍后重试")}},Ot=async(Ye=!0)=>{try{const Je=je(),lt=Ae(Je,Ye),Ue=new Blob([lt],{type:"application/msword"}),ze=URL.createObjectURL(Ue),ut=document.createElement("a"),yt=Ye?`${w.value.title}_有答案_${a.value.replace(/[:\s]/g,"_")}.doc`:`${w.value.title}_无答案_${a.value.replace(/[:\s]/g,"_")}.doc`;ut.setAttribute("href",ze),ut.setAttribute("download",yt),ut.style.visibility="hidden",document.body.appendChild(ut),ut.click(),document.body.removeChild(ut),Ct.success(`导出成功${Ye?"(含答案)":"(不含答案)"}`)}catch(Je){console.error("模拟Word导出失败:",Je),Ct.error("Word导出失败,请稍后重试")}},Ae=(Ye,Je=!0)=>{const lt=w.value;let Ue=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${lt.title||"试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- margin-bottom: 14px;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- flex-shrink: 0;
- }
- .question-text {
- flex: 1;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-radius: 4px;
- font-weight: bold;
- color: #2c5aa0;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${lt.title||"试卷"}</div>
- <div class="exam-info">
- 总分:${lt.totalScore||0}分 | 总题数:${lt.totalQuestions||0}题 | 生成时间:${a.value}
- </div>
- </div>`;return lt.singleChoice&<.singleChoice.questions&<.singleChoice.questions.length>0&&(Ue+=`
- <div class="section">
- <div class="section-title">一、单选题(每题${lt.singleChoice.scorePerQuestion||0}分,共${lt.singleChoice.totalScore||0}分)</div>`,lt.singleChoice.questions.forEach((ze,ut)=>{Ue+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${ut+1}.</span>
- <span class="question-text">${ze.text||"题目内容"}</span>
- </div>`,ze.options&&ze.options.length>0&&(Ue+='<div class="options">',ze.options.forEach((yt,jt)=>{const mn=String.fromCharCode(65+jt);Ue+=`<div class="option">${mn}. ${yt.text||"选项内容"}</div>`}),Ue+="</div>"),Ue+=`${Je?`<div class="answer">答案:${ze.selectedAnswer||"未设置"}</div>`:""}
- </div>`}),Ue+="</div>"),lt.judge&<.judge.questions&<.judge.questions.length>0&&(Ue+=`
- <div class="section">
- <div class="section-title">二、判断题(每题${lt.judge.scorePerQuestion||0}分,共${lt.judge.totalScore||0}分)</div>`,lt.judge.questions.forEach((ze,ut)=>{Ue+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${ut+1}.</span>
- <span class="question-text">${ze.text||"题目内容"}</span>
- </div>
- ${Je?`<div class="answer">答案:${ze.selectedAnswer||"未设置"}</div>`:""}
- </div>`}),Ue+="</div>"),lt.multipleChoice&<.multipleChoice.questions&<.multipleChoice.questions.length>0&&(Ue+=`
- <div class="section">
- <div class="section-title">三、多选题(每题${lt.multipleChoice.scorePerQuestion||0}分,共${lt.multipleChoice.totalScore||0}分)</div>`,lt.multipleChoice.questions.forEach((ze,ut)=>{Ue+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${ut+1}.</span>
- <span class="question-text">${ze.text||"题目内容"}</span>
- </div>`,ze.options&&ze.options.length>0&&(Ue+='<div class="options">',ze.options.forEach((yt,jt)=>{const mn=String.fromCharCode(65+jt);Ue+=`<div class="option">${mn}. ${yt.text||"选项内容"}</div>`}),Ue+="</div>"),Ue+=`${Je?`<div class="answer">答案:${ze.selectedAnswer||ze.selectedAnswers?.join(", ")||"未设置"}</div>`:""}
- </div>`}),Ue+="</div>"),lt.short&<.short.questions&<.short.questions.length>0&&(Ue+=`
- <div class="section">
- <div class="section-title">四、简答题(每题${lt.short.scorePerQuestion||0}分,共${lt.short.totalScore||0}分)</div>`,lt.short.questions.forEach((ze,ut)=>{Ue+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${ut+1}.</span>
- <span class="question-text">${ze.text||"题目内容"}</span>
- </div>
- ${Je?`<div class="answer">答题要点:${ze.outline?.keyFactors||"未设置"}</div>`:""}
- </div>`}),Ue+="</div>"),Ue+=`
- </body>
- </html>`,Ue},je=()=>{const Ye=w.value,Je=[["试卷名称",Ye.title],["总分",`${Ye.totalScore}分`],["总题数",`${Ye.totalQuestions}题`],["生成时间",a.value],["",""]],lt=[["一、单选题",`(每题${Ye.singleChoice.scorePerQuestion}分,共${Ye.singleChoice.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];Ye.singleChoice.questions.forEach((yt,jt)=>{lt.push([`${jt+1}`,yt.text,yt.options[0]?.text||"",yt.options[1]?.text||"",yt.options[2]?.text||"",yt.options[3]?.text||"",yt.selectedAnswer||""])});const Ue=[["",""],["二、判断题",`(每题${Ye.judge.scorePerQuestion}分,共${Ye.judge.totalScore}分)`],["题号","题目内容","正确答案"]];Ye.judge.questions.forEach((yt,jt)=>{Ue.push([`${jt+1}`,yt.text,yt.selectedAnswer||""])});const ze=[["",""],["三、多选题",`(每题${Ye.multiple.scorePerQuestion}分,共${Ye.multiple.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];Ye.multiple.questions.forEach((yt,jt)=>{ze.push([`${jt+1}`,yt.text,yt.options[0]?.text||"",yt.options[1]?.text||"",yt.options[2]?.text||"",yt.options[3]?.text||"",yt.selectedAnswers.join(", ")||""])});const ut=[["",""],["四、简答题",`(每题${Ye.short.scorePerQuestion}分,共${Ye.short.totalScore}分)`],["题号","题目内容","答题要点"]];return Ye.short.questions.forEach((yt,jt)=>{ut.push([`${jt+1}`,yt.text,yt.outline?.keyFactors||""])}),[...Je,...lt,...Ue,...ze,...ut]},at=Ye=>{try{console.log("开始恢复试卷数据:",Ye),console.log("试卷数据详细结构:",JSON.stringify(Ye,null,2));let Je=Ye;if(Ye.exam&&(Je=Ye.exam),Je.title?r.value=Je.title:Je.exam_name&&(r.value=Je.exam_name),Je.exam_type&&(n.value=Je.exam_type),Je.totalScore?o.value=Je.totalScore:Je.total_score&&(o.value=Je.total_score),Je.generation_method&&(t.value=Je.generation_method),Je.generationTime?a.value=Je.generationTime:Je.generation_time&&(a.value=Je.generation_time),Je.question_config&&(O.value=[{name:"单选题",scorePerQuestion:Je.question_config.single_choice.score_per_question,questionCount:Je.question_config.single_choice.count,romanNumeral:"一"},{name:"判断题",scorePerQuestion:Je.question_config.judge.score_per_question,questionCount:Je.question_config.judge.count,romanNumeral:"二"},{name:"多选题",scorePerQuestion:Je.question_config.multiple.score_per_question,questionCount:Je.question_config.multiple.count,romanNumeral:"三"},{name:"简答题",scorePerQuestion:Je.question_config.short.score_per_question,questionCount:Je.question_config.short.count,romanNumeral:"四"}]),Je.singleChoice||Je.questions?.single_choice){const lt=Je.singleChoice||Je.questions.single_choice,Ue=Je.judge||Je.questions.judge,ze=Je.multiple||Je.questions.multiple,ut=Je.short||Je.questions.short;console.log("单选题数据:",lt),console.log("判断题数据:",Ue),console.log("多选题数据:",ze),console.log("简答题数据:",ut),w.value={title:r.value,totalScore:o.value,totalQuestions:Je.totalQuestions||Je.total_questions,singleChoice:{scorePerQuestion:lt.scorePerQuestion||lt.score_per_question,totalScore:lt.totalScore||lt.total_score,count:lt.count,questions:lt.questions.map(yt=>({text:yt.text||yt.question_text,options:yt.options||[],selectedAnswer:yt.selectedAnswer||""}))},judge:{scorePerQuestion:Ue.scorePerQuestion||Ue.score_per_question,totalScore:Ue.totalScore||Ue.total_score,count:Ue.count,questions:Ue.questions.map(yt=>({text:yt.text||yt.question_text,selectedAnswer:yt.selectedAnswer||yt.correct_answer||yt.answer||""}))},multiple:{scorePerQuestion:ze.scorePerQuestion||ze.score_per_question,totalScore:ze.totalScore||ze.total_score,count:ze.count,questions:ze.questions.map(yt=>({text:yt.text||yt.question_text,options:yt.options||[],selectedAnswers:yt.selectedAnswers||yt.correct_answers||yt.answers||[]}))},short:{scorePerQuestion:ut.scorePerQuestion||ut.score_per_question,totalScore:ut.totalScore||ut.total_score,count:ut.count,questions:ut.questions.map(yt=>({text:yt.text||yt.question_text,outline:yt.outline||yt.answer_outline||{keyFactors:"答题要点、关键因素、示例答案"}}))}}}Je.user_answers&&(Je.user_answers.single_choice&&Je.user_answers.single_choice.forEach((lt,Ue)=>{w.value.singleChoice.questions[Ue]&&(w.value.singleChoice.questions[Ue].selectedAnswer=lt||"")}),Je.user_answers.judge&&Je.user_answers.judge.forEach((lt,Ue)=>{w.value.judge.questions[Ue]&&(w.value.judge.questions[Ue].selectedAnswer=lt||"")}),Je.user_answers.multiple&&Je.user_answers.multiple.forEach((lt,Ue)=>{w.value.multiple.questions[Ue]&&(w.value.multiple.questions[Ue].selectedAnswers=lt||[])})),console.log("恢复完成后的试卷数据:",w.value),console.log("单选题答案:",w.value.singleChoice?.questions?.map(lt=>lt.selectedAnswer)),console.log("判断题答案:",w.value.judge?.questions?.map(lt=>lt.selectedAnswer)),console.log("多选题答案:",w.value.multiple?.questions?.map(lt=>lt.selectedAnswers)),i.value=!0}catch(Je){console.error("恢复试卷失败:",Je),Ct.error("恢复试卷失败,请稍后重试")}},gt=Ye=>{if(Ye.size>m.maxSize)throw new Error("文件大小不能超过20MB");const Je="."+Ye.name.split(".").pop().toLowerCase();if(!m.allowedTypes.includes(Je))throw new Error("只支持PPT格式文件(.ppt/.pptx)");return Je},nn=Ye=>{switch(Ye){case".ppt":case".pptx":return"📊";default:return"📎"}},Tn=Ye=>{if(Ye===0)return"0 B";const Je=1024,lt=["B","KB","MB","GB"],Ue=Math.floor(Math.log(Ye)/Math.log(Je));return parseFloat((Ye/Math.pow(Je,Ue)).toFixed(2))+" "+lt[Ue]},He=async Ye=>{try{const Je=await Mf(()=>import("./jszip.min-DFyRfgcg.js").then(yt=>yt.j),[]),Ue=await new Je.default().loadAsync(Ye),ze=Object.keys(Ue.files).filter(yt=>yt.startsWith("ppt/slides/slide")&&yt.endsWith(".xml"));let ut="";if(ze.length>0){const yt=ze[0],jt=await Ue.file(yt).async("text"),mn=jt.match(/<a:t[^>]*>([^<]+)<\/a:t>/g);if(mn&&mn.forEach(Nn=>{const xt=Nn.replace(/<[^>]*>/g,"").trim();xt.length>0&&(ut+=xt+" ")}),ut.length===0){const Nn=jt.match(/>([^<]{2,})</g);Nn&&Nn.forEach(xt=>{const sn=xt.replace(/[<>]/g,"").trim();sn.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(sn)&&(ut+=sn+" ")})}}if(ut.length===0){const yt=Object.keys(Ue.files).filter(jt=>jt.endsWith(".xml")&&!jt.includes("_rels"));for(const jt of yt.slice(0,3))try{const Nn=(await Ue.file(jt).async("text")).match(/>([^<]{2,})</g);Nn&&Nn.forEach(xt=>{const sn=xt.replace(/[<>]/g,"").trim();sn.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(sn)&&(ut+=sn+" ")})}catch(mn){console.log("读取XML文件失败:",jt,mn)}}return ut.length>0?(ut=ut.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),ut.substring(0,800)):""}catch(Je){console.error("PPT文本提取失败:",Je);try{const Ue=new TextDecoder("utf-8").decode(Ye),ze=Ue.match(/[\u4e00-\u9fa5]{2,}/g),ut=Ue.match(/[a-zA-Z]{3,}/g);let yt="";if(ze&&ze.length>0&&(yt+=ze.join(" ")),ut&&ut.length>0&&(yt+=" "+ut.join(" ")),yt.length>0)return yt=yt.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),yt.substring(0,800)}catch(lt){console.error("回退文本提取也失败:",lt)}return""}},ke=async Ye=>{try{if(console.log("开始读取PPT文件:",Ye.name,"文件大小:",Ye.size),Ye.size===0)throw new Error("PPT文件为空");return console.log("开始读取PPT文件内容..."),new Promise((Je,lt)=>{const Ue=new FileReader;Ue.onload=async ze=>{try{const ut=ze.target.result;console.log("文件读取成功,大小:",ut.byteLength),console.log("开始读取PPT文件第一页内容...");try{const yt=new Uint8Array(ut);let jt=`PPT文件信息:
- 文件名:${Ye.name}
- 文件大小:${Tn(Ye.size)}
- 文件类型:${Ye.type}
- 修改时间:${new Date(Ye.lastModified).toLocaleString("zh-CN")}
- PPT第一页内容提取结果:
- `;const mn=await He(yt);mn&&mn.length>0?(jt+=`
- 提取的文本内容:
- ${mn}`,console.log("PPT文本提取成功,长度:",mn.length)):jt+=`
- 无法自动提取PPT文本内容。
- `,jt+=`
- 请在下方文本框中补充或修正PPT内容描述,AI将基于这些信息生成相关考题。`,console.log("PPT内容提取完成,长度:",jt.length),console.log("提取的内容预览:",jt.substring(0,500)),Je(jt)}catch(yt){console.error("PPT解析失败:",yt);const jt=`PPT文件:${Ye.name}
- 文件大小:${Tn(Ye.size)}
- 文件类型:${Ye.type}
- 修改时间:${new Date(Ye.lastModified).toLocaleString("zh-CN")}
- PPT内容提取失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
- 您可以描述:
- 1. PPT的主要主题和内容
- 2. 关键知识点和重点
- 3. 培训目标和学习要求
- 4. 相关的技术要点和注意事项`;Je(jt)}}catch(ut){console.error("PPT处理失败:",ut);const yt=`PPT文件:${Ye.name}
- 文件大小:${Tn(Ye.size)}
- 文件类型:${Ye.type}
- 修改时间:${new Date(Ye.lastModified).toLocaleString("zh-CN")}
- PPT文件处理失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
- 您可以描述:
- 1. PPT的主要主题和内容
- 2. 关键知识点和重点
- 3. 培训目标和学习要求
- 4. 相关的技术要点和注意事项`;Je(yt)}},Ue.onerror=()=>{lt(new Error("文件读取失败"))},Ue.readAsArrayBuffer(Ye)})}catch(Je){throw console.error("PPT文件读取失败,详细错误:",Je),console.error("错误堆栈:",Je.stack),Je.message.includes("Invalid file format")?new Error("PPT文件格式无效或已损坏"):Je.message.includes("File is empty")?new Error("PPT文件为空"):new Error(`PPT文件读取失败: ${Je.message}`)}},me=async Ye=>{const Je=Ye.target.files[0];if(Je)try{const lt=gt(Je);g.value=!0,console.log("开始读取文件内容:",Je.name);const Ue=await ke(Je);h.value={file:Je,name:Je.name,size:Je.size,type:lt,icon:nn(lt),content:Ue};const ze=Je.name.replace(/\.(ppt|pptx)$/i,"");r.value=`${ze}考试试卷`;const ut=Ue.length;console.log("文件内容提取完成,字符数:",ut),Ct.success(`PPT文件读取成功,提取了${ut}个字符的内容`)}catch(lt){console.error("文件读取失败:",lt),Ct.error(lt.message||"文件读取失败,请重试")}finally{g.value=!1,Ye.target.value=""}},Be=()=>{if(h.value){h.value=null,y.value="";const Ye=P[n.value].name;r.value=`${Ye}工程施工技术考核`}},rt=()=>{if(h.value){Ct.warning("只能上传一个文件,请先删除当前文件");return}v.value?.click()},ht=()=>{f.value=!1,Ct.success("删除成功")},rn=()=>{f.value=!1};return jn(async()=>{_={questionTypes:JSON.parse(JSON.stringify(O.value)),totalScore:o.value,selectedProjectType:n.value,examName:r.value},console.log("初始配置已保存:",_),await k(),document.addEventListener("click",ct)}),hl(()=>{document.removeEventListener("click",ct)}),(Ye,Je)=>(F(),K("div",GHt,[Ve(zC),x("div",KHt,[x("div",{class:"history-header"},[Je[10]||(Je[10]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:QC,alt:"新建任务",class:"new-chat-btn",onClick:G})]),x("div",QHt,[d.value&&S.value===0?(F(),K("div",YHt,Je[11]||(Je[11]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):S.value>0?(F(!0),K(Pt,{key:1},an(A.value,(lt,Ue)=>(F(),K("div",{key:Ue,class:re(["history-item",{active:lt.isActive}]),onClick:ze=>lt.isActive||s.value||c.value?null:Z(lt),style:Xt({cursor:lt.isActive?"default":s.value||c.value?"not-allowed":"pointer",opacity:lt.isActive?"0.8":"1"})},[x("div",XHt,[x("div",JHt,We(lt.title),1),x("div",eWt,We(lt.time),1)]),x("div",{class:re(["delete-btn",{"always-visible":lt.isActive}]),onClick:Qt(ze=>U(lt,Ue),["stop"])},Je[12]||(Je[12]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,tWt)],14,ZHt))),128)):(F(),K("div",nWt,Je[13]||(Je[13]=[x("img",{src:YC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",{class:"main-work",style:Xt({background:i.value?"transparent":"#ebf3ff"})},[Je[48]||(Je[48]=x("div",{class:"work-header"},[x("h2",null,"考试工坊")],-1)),x("div",{class:re(["work-content",{"exam-detail-mode":i.value}])},[c.value?(F(),K("div",rWt,Je[14]||(Je[14]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载历史记录...",-1)]))):xe("",!0),i.value?xe("",!0):(F(),K("div",oWt,[x("div",iWt,[x("div",aWt,[Je[15]||(Je[15]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",sWt,[(F(),K(Pt,null,an(P,(lt,Ue)=>x("div",{key:Ue,class:re(["type-card",{active:n.value===Ue}]),onClick:ze=>s.value||h.value?null:L(Ue),style:Xt({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:lt.icon,alt:lt.name,class:"type-icon"},null,8,uWt),x("span",null,We(lt.name),1)],14,lWt)),64))])]),x("div",cWt,[Je[20]||(Je[20]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",dWt,[x("div",{class:re(["method-card",{active:t.value==="ai"}]),onClick:Je[0]||(Je[0]=lt=>s.value||h.value?null:$("ai")),style:Xt({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:C(dke),alt:"智能生成试卷",class:"method-icon"},null,8,fWt),Je[16]||(Je[16]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6),x("div",{class:re(["method-card",{active:t.value==="ppt"}]),onClick:Je[1]||(Je[1]=lt=>s.value?null:t.value==="ppt"&&!h.value?rt():$("ppt")),style:Xt({cursor:s.value?"not-allowed":"pointer",opacity:s.value?"0.5":"1"})},[x("img",{src:C(WHt),alt:"从PPT生成考题",class:"method-icon"},null,8,pWt),x("div",hWt,[Je[18]||(Je[18]=x("h4",null,"从PPT生成考题",-1)),Je[19]||(Je[19]=x("p",null,"上传培训PPT,智能提取关键内容生成考题(单个文件可上传20M内)",-1)),t.value==="ppt"&&h.value?(F(),K("div",gWt,[x("div",vWt,[x("div",mWt,We(h.value.icon),1),x("div",yWt,[x("div",bWt,We(h.value.name),1),x("div",wWt,We(Tn(h.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:Be},Je[17]||(Je[17]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)])],6)])]),x("div",AWt,[Je[34]||(Je[34]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",CWt,[x("div",xWt,[x("div",SWt,[x("div",EWt,[Je[21]||(Je[21]=x("label",null,"试卷名称",-1)),x("div",kWt,[ln(x("input",{"onUpdate:modelValue":Je[2]||(Je[2]=lt=>r.value=lt),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:ie,disabled:s.value||h.value},null,40,TWt),[[jr,r.value]]),x("span",{class:re(["char-count-inline",{warning:r.value.length>=18}])},We(r.value.length)+"/32 ",3)])]),x("div",_Wt,[Je[23]||(Je[23]=x("label",null,"试卷总分",-1)),x("div",DWt,[ln(x("input",{"onUpdate:modelValue":Je[3]||(Je[3]=lt=>o.value=lt),type:"number",class:"config-input",min:"1",max:"1000",onInput:ee,disabled:s.value||h.value},null,40,IWt),[[jr,o.value]]),Je[22]||(Je[22]=x("span",{class:"unit"},"分",-1))])])]),Je[28]||(Je[28]=x("div",{class:"section-title"},"题型选择与分数分配",-1)),x("div",OWt,[(F(!0),K(Pt,null,an(O.value,(lt,Ue)=>(F(),K("div",{class:"question-type",key:Ue},[x("div",MWt,[x("span",PWt,We(lt.name),1),x("div",NWt,[x("div",{class:"progress-fill",style:Xt({width:lt.scorePerQuestion*lt.questionCount/o.value*100+"%"})},null,4)]),x("div",RWt,[Je[24]||(Je[24]=x("span",null,"每题",-1)),ln(x("input",{"onUpdate:modelValue":ze=>lt.scorePerQuestion=ze,type:"number",class:"score-input-field",min:"1",max:"99",onInput:ze=>te(lt),disabled:s.value||h.value},null,40,BWt),[[jr,lt.scorePerQuestion]]),Je[25]||(Je[25]=x("span",null,"分",-1)),Je[26]||(Je[26]=x("span",null,"一共",-1)),ln(x("input",{"onUpdate:modelValue":ze=>lt.questionCount=ze,type:"number",class:"count-input-field",min:"1",max:"99",onInput:ze=>X(lt),disabled:s.value||h.value},null,40,LWt),[[jr,lt.questionCount]]),Je[27]||(Je[27]=x("span",null,"题",-1))])])]))),128))])]),x("div",FWt,[x("div",UWt,[x("img",{src:C(VHt),alt:"预览",class:"preview-icon"},null,8,$Wt),Je[29]||(Je[29]=x("h3",null,"预览",-1))]),x("div",zWt,[x("h4",jWt,We(r.value||"试卷名称"),1),x("div",HWt,[(F(!0),K(Pt,null,an(O.value,(lt,Ue)=>(F(),K("div",{class:"breakdown-item",key:Ue},[x("div",WWt,[x("span",VWt,We(lt.romanNumeral)+"、"+We(lt.name)+" (每题"+We(lt.scorePerQuestion)+"分,共"+We(lt.scorePerQuestion*lt.questionCount)+"分)",1),x("span",qWt,We(lt.questionCount)+"题",1)])]))),128))]),Je[32]||(Je[32]=x("div",{class:"divider"},null,-1)),x("div",GWt,[Je[30]||(Je[30]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",KWt,We(q.value)+"分",1)]),x("div",QWt,[Je[31]||(Je[31]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",YWt,We(o.value)+"分",1)])])])]),x("div",ZWt,[x("button",{class:"clear-btn",onClick:W,disabled:s.value||h.value},[x("img",{src:C(qHt),alt:"一键清除",class:"clear-icon"},null,8,JWt)],8,XWt),x("button",{class:"generate-btn",onClick:ue,disabled:s.value},[s.value?(F(),K("span",nVt,Je[33]||(Je[33]=[xn(" 生成中",-1),x("span",{class:"loading-dots"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]))):(F(),K("img",{key:0,src:C(fke),alt:"生成试卷",class:"generate-icon"},null,8,tVt))],8,eVt)])])])])),i.value?(F(),K("div",rVt,[x("div",oVt,[x("div",iVt,[x("button",{class:"back-btn",onClick:oe,disabled:s.value},Je[35]||(Je[35]=[x("span",{class:"back-arrow"},"←",-1),xn(" 返回修改 ",-1)]),8,aVt)]),x("div",sVt,[x("div",{class:re(["download-dropdown",{disabled:s.value,show:u.value}]),onClick:Je[4]||(Je[4]=Qt(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:s.value,onClick:Wt},[x("img",{src:C(ZD),alt:"下载Word",class:"download-icon"},null,8,uVt)],8,lVt),x("div",cVt,[x("div",{class:"dropdown-item",onClick:_t,disabled:s.value},Je[36]||(Je[36]=[x("span",{class:"item-text"},"有答案",-1)]),8,dVt),x("div",{class:"dropdown-item",onClick:st,disabled:s.value},Je[37]||(Je[37]=[x("span",{class:"item-text"},"无答案",-1)]),8,fVt)])],2)])]),x("div",pVt,[x("div",null,[x("h1",hVt,We(w.value.title),1),x("div",gVt,[x("span",vVt,"总分: "+We(w.value.totalScore)+"分",1),x("span",mVt,"题量: "+We(w.value.totalQuestions)+"题",1)])]),x("div",yVt,"生成时间: "+We(a.value),1)]),x("div",bVt,[x("div",wVt,[x("div",{class:"section-header",onClick:Je[5]||(Je[5]=lt=>s.value?null:ce("single")),style:Xt({cursor:s.value?"not-allowed":"pointer"})},[x("div",AVt,[Je[38]||(Je[38]=x("span",{class:"section-number"},"一",-1)),Je[39]||(Je[39]=x("span",{class:"section-name"},"单选题",-1)),x("span",CVt,"(每题"+We(w.value.singleChoice.scorePerQuestion)+"分, 共"+We(w.value.singleChoice.totalScore)+"分)",1)]),x("div",xVt,[x("span",SVt,We(w.value.singleChoice.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!b.value.single}])},null,10,EVt)])],4),b.value.single?(F(),K("div",kVt,[(F(!0),K(Pt,null,an(w.value.singleChoice.questions,(lt,Ue)=>(F(),K("div",{key:Ue,class:"question-item"},[x("div",TVt,[x("span",_Vt,We(Ue+1)+".",1),x("span",DVt,We(lt.text),1),x("button",{class:"refresh-btn",onClick:ze=>Ee("single",Ue),disabled:s.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:l.value[`single_${Ue}`]}])},null,10,OVt)],8,IVt)]),x("div",MVt,[(F(!0),K(Pt,null,an(lt.options,ze=>(F(),K("div",{key:ze.key,class:re(["option",{selected:lt.selectedAnswer===ze.key}]),style:{cursor:"default"}},[x("div",PVt,[x("div",{class:re(["radio-circle",{selected:lt.selectedAnswer===ze.key}])},[lt.selectedAnswer===ze.key?(F(),K("div",NVt)):xe("",!0)],2)]),x("span",RVt,We(ze.key)+".",1),x("div",BVt,[x("span",LVt,We(ze.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",FVt,[x("div",{class:"section-header",onClick:Je[6]||(Je[6]=lt=>s.value?null:ce("judge")),style:Xt({cursor:s.value?"not-allowed":"pointer"})},[x("div",UVt,[Je[40]||(Je[40]=x("span",{class:"section-number"},"二",-1)),Je[41]||(Je[41]=x("span",{class:"section-name"},"判断题",-1)),x("span",$Vt,"(每题"+We(w.value.judge.scorePerQuestion)+"分, 共"+We(w.value.judge.totalScore)+"分)",1)]),x("div",zVt,[x("span",jVt,We(w.value.judge.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!b.value.judge}])},null,10,HVt)])],4),b.value.judge?(F(),K("div",WVt,[(F(!0),K(Pt,null,an(w.value.judge.questions,(lt,Ue)=>(F(),K("div",{key:Ue,class:"question-item"},[x("div",VVt,[x("span",qVt,We(Ue+1)+".",1),x("span",GVt,We(lt.text),1),x("button",{class:"refresh-btn",onClick:ze=>Ee("judge",Ue),disabled:s.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:l.value[`judge_${Ue}`]}])},null,10,QVt)],8,KVt)]),x("div",YVt,[x("div",{class:re(["option judge-option",{selected:lt.selectedAnswer==="正确"}]),style:{cursor:"default"}},[x("div",ZVt,[x("div",{class:re(["radio-circle",{selected:lt.selectedAnswer==="正确"}])},[lt.selectedAnswer==="正确"?(F(),K("div",XVt)):xe("",!0)],2)]),Je[42]||(Je[42]=x("span",{class:"option-text"},"正确",-1))],2),x("div",{class:re(["option judge-option",{selected:lt.selectedAnswer==="错误"}]),style:{cursor:"default"}},[x("div",JVt,[x("div",{class:re(["radio-circle",{selected:lt.selectedAnswer==="错误"}])},[lt.selectedAnswer==="错误"?(F(),K("div",eqt)):xe("",!0)],2)]),Je[43]||(Je[43]=x("span",{class:"option-text"},"错误",-1))],2)])]))),128))])):xe("",!0)]),x("div",tqt,[x("div",{class:"section-header",onClick:Je[7]||(Je[7]=lt=>s.value?null:ce("multiple")),style:Xt({cursor:s.value?"not-allowed":"pointer"})},[x("div",nqt,[Je[44]||(Je[44]=x("span",{class:"section-number"},"三",-1)),Je[45]||(Je[45]=x("span",{class:"section-name"},"多选题",-1)),x("span",rqt,"(每题"+We(w.value.multiple.scorePerQuestion)+"分, 共"+We(w.value.multiple.totalScore)+"分)",1)]),x("div",oqt,[x("span",iqt,We(w.value.multiple.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!b.value.multiple}])},null,10,aqt)])],4),b.value.multiple?(F(),K("div",sqt,[(F(!0),K(Pt,null,an(w.value.multiple.questions,(lt,Ue)=>(F(),K("div",{key:Ue,class:"question-item"},[x("div",lqt,[x("span",uqt,We(Ue+1)+".",1),x("span",cqt,We(lt.text),1),x("button",{class:"refresh-btn",onClick:ze=>Ee("multiple",Ue),disabled:s.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:l.value[`multiple_${Ue}`]}])},null,10,fqt)],8,dqt)]),x("div",pqt,[(F(!0),K(Pt,null,an(lt.options,ze=>(F(),K("div",{key:ze.key,class:re(["option",{selected:lt.selectedAnswers.includes(ze.key)}]),style:{cursor:"default"}},[x("div",hqt,[x("div",{class:re(["radio-circle",{selected:lt.selectedAnswers.includes(ze.key)}])},[lt.selectedAnswers.includes(ze.key)?(F(),K("div",gqt)):xe("",!0)],2)]),x("span",vqt,We(ze.key)+".",1),x("div",mqt,[x("span",yqt,We(ze.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",bqt,[x("div",{class:"section-header",onClick:Je[8]||(Je[8]=lt=>s.value?null:ce("short")),style:Xt({cursor:s.value?"not-allowed":"pointer"})},[x("div",wqt,[Je[46]||(Je[46]=x("span",{class:"section-number"},"四",-1)),Je[47]||(Je[47]=x("span",{class:"section-name"},"简答题",-1)),x("span",Aqt,"(每题"+We(w.value.short.scorePerQuestion)+"分, 共"+We(w.value.short.totalScore)+"分)",1)]),x("div",Cqt,[x("span",xqt,We(w.value.short.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!b.value.short}])},null,10,Sqt)])],4),b.value.short?(F(),K("div",Eqt,[(F(!0),K(Pt,null,an(w.value.short.questions,(lt,Ue)=>(F(),K("div",{key:Ue,class:"question-item"},[x("div",kqt,[x("span",Tqt,We(Ue+1)+".",1),x("span",_qt,We(lt.text),1),x("button",{class:"refresh-btn",onClick:ze=>Ee("short",Ue),disabled:s.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:l.value[`short_${Ue}`]}])},null,10,Iqt)],8,Dqt)]),x("div",Oqt,[x("div",Mqt,[x("div",Pqt,[x("span",Nqt,We(lt.outline.keyFactors),1)])])])]))),128))])):xe("",!0)])])])):xe("",!0)],2)],4),Ve(c0,{visible:f.value,onClose:Je[9]||(Je[9]=lt=>f.value=!1),onConfirm:ht,onCancel:rn},null,8,["visible"]),x("input",{ref_key:"fileInput",ref:v,type:"file",accept:".ppt,.pptx",style:{display:"none"},onChange:me},null,544),Ve(c0,{visible:f.value,title:"删除历史记录",message:N.value,onConfirm:j,onCancel:H,onClose:H},null,8,["visible","message"])]))}},Bqt=Qo(Rqt,[["__scopeId","data-v-c86ba0b7"]]),pke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAYaSURBVHic7d2/bxtlHMfxz/fOdhMGyFwGjh216QASVE6dmQGG7u2CxJhsVl0UR8hVytL8CenAhBCZQLDEJK0QYiD8mJFVWmYXCZL6fM+XoXkqoD/yPOc7P8/d832teS55ct+3bCvOnQEhhBBCCCGEEEIIIUT9kesNuHLpo8mbzHiLGRRl+P7brdYPrvfkQnABtK/xOcLkUxC98d+v0KGK+Oqdj1s/udmZG0EF0L7G50DpAQEvP+vrDPzJU6zcuRlOBMEE0OkeJSqK7oLo7AsXMv8RKXVxuLU4ms/O3Ipcb2AeOt2jRMXx3qnDBwCisyqO9zrdo6T8nblX+0eAJ8MHEstDR1GWrdb9kaDWAcwwfK32EdQ2gAKGr9U6gloGUODwtdpGULsAShi+VssIahVAicPXahdBbQKYw/C1WkVQiwDmOHytNhFUPgAHw9dqEUGlA3A4fK3yEVQ2AA+Gr1U6gkoG4NHwtcpGULkAPBy+VskIKvVu4IzD/6uktVpSxXcRKxPAjMMfAdQ3Xs208fgYa5WLoBIBzDr8KMtWmWhkegCTGkVZtooAIvA+gCKGn+d5ebi1GEQEXgfgavhaCBF4G4Dr4Wt1j8DLAHwZvlbnCLwLwLfha3WNwKsAfB2+VscIvAnA9+FrdYvAiwCqMnytThF4EUCVhq8VEMEXBW8pF+cBtHvHa6jY8LUZI1heufaoX+yO7DkPAIjey3GQ8+FrM0VAlOd3L5TzAAhYtjzEm+FrM0SQFL8bO84DAPPYYrV3w9dyRmCzthTOAyCioeFSb4ev2UZAwGG5Ozqd+wCybBPAaY8C3g9fs4hgfPK7O+U8gOHW4ogZ63h+BIdVGb5mEMGYGes+/E7OAwCAgxutnSjLLhCwg8cPi2MAh2De3B+0LvhwomwNtxZH+4PW6wy1zsAQAMA8ImAnyrILBzdaO043eKJy/xSaV/v69DKx+sxkLYMvHwzOfF72nnzgxSOAcEcCCJwEEDgJIHASQOAkgMBJAIGTAAInAQROAgicBBA4CSBwEkDgJIDASQCBkwACJwEETgIInAQQOAkgcBJA4CSAwEkAgZMAAicBBK6R98BOn5em0+NlAGg0Fg6HfbK5zFvMqKjzbx1Ap89LKk03VJquRYgBACpNcak32aEs26zidXxVUvT5t3oK6HSPEpWmPwJY+//XGLiq4niv0+clm+8pzJVx/q0C4DjewItva5KoNN2w+Z7CXBnn3ziATp+XGLhqsHRNHgWKV9b5Nw5Av+AwMkkT47U+Uv5dNl/W+TcOIOL4NdO1inDedO28UIaJ8do4/rvMveRR1vkP5u8Aiqe/mq6NJpOfy9yLT4IJ4M7Wwm8Af3P6Sv5q+MlL98vfkR+CCQAAsmnrAzA/f7jM97Op+nCOW3IuqADu3qR7oNY7AH/59Ffp66zZunj35uK9+e/Mndx/Cq6q/QH9DuDdt3v8apMenSdGTM0zvwz75h8rVyfBBaB9N6AHAB643odrQT0FiKdJAIGTAAInAQROAgicBBA4CSBwEkDgJIDASQCBkwACJwEETgIInAQQOOMAWPHDMjciimMzK+MAYrL5hwmy/TxgcSrzc8qxMr5O0PwpQGXG35TBEkDh+H3TlY2p+WcSmwewsGAcAAGddu/4qevXRD4r1x/1YfFJ4zYXiBoHMOzT+MknYBogRLdONi5m0O4dr4HJ+Ho/mxkBlv8TSIRdMDrGBzBtrPQmVwDaBdj5J2VXCy0zeJlgcb4BgHHbZrlVAFGjeVul6bbVhoAEYHk6sMa5LlCMVTa0WW/1d4CTu1DYBiDmhICdUm8QAQBRs7mJ53/Uu3CIsmzT9hjrAB6/GFTWP0iUjDjX7XlyXwe/0pvcwjNuVSKc2N4ftNbzHDjTjRDavcme9atUUSgGhgeD1mre42d6M+jkB8uLQne2Zxk+UMC7gfuD1jqI5TXBfI0Zaj3vw/6/FXYvnE73KOE43jC8kZHIbztqNjeLujFn4TdD6nSPkiyKOyBckdcHxWBgSITdqNG8XfQdWUu/G1ane5RMG0goi5YoolfK/nl1wIofxkQjqGwsd14VQgghhBBCCCGEEELM7h8r2yBfEw11eQAAAABJRU5ErkJggg==",Lqt="/assets/17-BJ4I6Ces.png",Fqt="/assets/18-CsyhSRVL.png",Uqt="/assets/19-LEWFVOdg.png",$qt="/assets/20-pqZy7Dwl.png",zqt="/assets/21-BTsblUui.png",mj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKUSURBVHic7Zo9btswFIA/2gjQUd069ghdUsCbfYP0Bs5WOBlUTd3KXEDWkHqNb9C1nerNRb34BnVOEO8FpA5xAaNx9GM+ioL7vpEm+KjPpPT4QFAURVEURVEURVEURVEUB+LYRqcU20gNdJXYKTAGImBjci5vM7uQGr+M69gOC8MUwxsAAze3qbUSY/clBrlOrAU+Ai92TRGG8flgeL9aLtYSMZ5jktgxhi8YXu01D98OhtFqufjmOn7PdQCAAj4dajdwN0nsWCLGISaJHRu4e+ZnkbjOgqr2vS9JFXIAIol3krOgLLNbCkq3kbSkGnIANllmt66xRLaYKfhQ2UdIUk05FDnvXGOB0Ev654/F5nwwvDdwUdbPwIXLi7u2HLicTe3XY2L8i4gggNVysfYpqZGc1M6bjF2GmCDwJymUHBAWBPKSQsoBD4JATlJoOeBJELhL6oIc8CgIjpfUFTm7ufmnyQPDY85Up69vObu5tENdSXVoSw543mL71N1uVbQpB1oUBO6S2pYDLQuC4yWFkAMBBEFzSaHkgNBp/pQJsoKaftFcqwAutC7o2M99KEmtCnLNhUJIak2QVKLYtiQ9alTgfQU1PXj6rkw2xaugY0/lXZLkTZBryaIrkrwIkqrndEGSuCDpYldoSaKCfFUCQ0oSE+S7TBpKkkge9D62r/s9flX1k8hd6v4RJmckcT9J5DTf7/G9qo9UYjdL7fxvQlkazzB1jQUCKyiObfS7x0NZHx9Zb52VdJbz0vWGh8gWu0rsA49X757g80hQJelzap2fT6pgNj/U6Pu8VLHdMokYIoLOcm7Yn1DB2uSM2jhMzlI7NzkjYLNr2gLZbk7d49SuASuKoiiKoiiKoiiKoij/F38A0km+yu6NC4kAAAAASUVORK5CYII=",hke="/assets/13-BL3zSFtZ.png",gke="/assets/2-BidY8fbj.png",vke="/assets/3-N-JnaHAs.png",jqt={class:"chat-container"},Hqt={class:"history-sidebar"},Wqt={class:"history-list"},Vqt={key:0,class:"history-loading"},qqt=["onClick"],Gqt={class:"history-content"},Kqt={class:"title-row"},Qqt={class:"history-title"},Yqt={class:"time-row"},Zqt={class:"history-time"},Xqt={class:"desc-row"},Jqt={class:"history-icon"},eGt=["src","onError"],tGt={class:"history-desc"},nGt=["onClick"],rGt={key:2,class:"empty-history"},oGt={class:"main-work"},iGt={class:"work-content"},aGt={key:0,class:"main-layout"},sGt={class:"hazard-system"},lGt={class:"step-section"},uGt={class:"scenario-tags"},cGt=["onClick"],dGt={class:"step-section"},fGt={key:0,class:"uploaded-image-container"},pGt=["src"],hGt={class:"image-overlay"},gGt={key:1,class:"upload-content"},vGt={key:2,class:"upload-status"},mGt={key:3,class:"upload-status"},yGt={class:"action-section"},bGt=["disabled"],wGt=["src"],AGt={key:1,class:"detail-view"},CGt={class:"detail-header"},xGt={class:"header-left"},SGt={class:"header-text"},EGt={class:"main-title"},kGt={class:"header-right"},TGt={class:"current-time"},_Gt={class:"detail-content"},DGt={key:0,class:"loading-overlay"},IGt={class:"image-section"},OGt={class:"image-container"},MGt=["src","alt"],PGt={key:0,class:"scanning-overlay"},NGt={class:"analysis-section"},RGt={class:"analysis-header"},BGt={class:"header-title"},LGt={key:0,class:"analysis-prompt"},FGt={key:1,class:"analysis-title"},UGt={key:0,class:"analysis-body"},$Gt={class:"analysis-text"},zGt=["innerHTML"],jGt={key:1},HGt={class:"scene-tag"},WGt={key:0,class:"hazards-intro"},VGt={key:1,class:"hazards-section"},qGt={key:0,class:"hazards-loading-overlay"},GGt={key:1,class:"hazard-cards-container"},KGt={class:"hazard-number"},QGt={class:"hazard-text-container"},YGt={class:"hazard-desc"},ZGt=["onClick"],XGt=["src"],JGt={class:"modal-header-section"},eKt={class:"modal-title-area"},tKt={class:"hazard-info"},nKt={class:"hazard-number"},rKt={class:"hazard-text"},oKt={class:"modal-content-section"},iKt={key:0,class:"loading-state"},aKt={key:1,class:"comparison-container"},sKt={class:"example-card correct-example"},lKt={class:"card-content"},uKt={key:0,class:"image-loading"},cKt=["src"],dKt={key:2,class:"no-image"},fKt={class:"example-card error-example"},pKt={class:"card-content"},hKt={key:0,class:"image-loading"},gKt=["src"],vKt={key:2,class:"no-image"},mKt={class:"modal-body"},yKt={class:"question-section"},bKt={class:"answer-buttons"},wKt={class:"question-section"},AKt={class:"answer-buttons"},CKt={class:"question-section"},xKt={class:"star-rating"},SKt=["onClick"],EKt={key:0,class:"question-section"},kKt={class:"remark-input-container"},TKt=["disabled"],_Kt={class:"character-count"},DKt={key:0,class:"modal-footer"},IKt={__name:"HazardDetection",setup(e){Q("");const t=Q("tunnel"),n=Q(null),r=Q(""),o=Q(null),i=Q("main"),a=Q(!1),s=Q(null),l=Q(!1),u=Q(null),d=Q({}),c=Q(!1),f=Q({correct:!1,error:!1}),p=Q(!1),v=Q(null),h=Q(!1),g=Q(!1),y=Q(!1),m=Q(null),b=Q(""),w=Q(!1),A=Q(""),S=Q(!1),k=Q(!1),M=Q(!1),D=Q(""),P=Q(!1),O=Q(""),_=Q(!1),B=Q({}),N=Q([]),q=Q(0),U=Q(!1),j=Q(!1),H=Q(!1),G=Q(!1),Z=Q({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}),$=J(()=>`确定要删除历史记录"${v.value?.item?.title||""}"吗?删除后将无法恢复。`),L=J(()=>s.value?.effect_evaluation>0?Z.value.userRemark&&Z.value.userRemark.trim()!=="":!0),W={tunnel:{name:"隧道工程",color:"#3366E6"},simple_supported_bridge:{name:"桥梁工程",color:"#22B850"},gas_station:{name:"加油站",color:"#FF4D4F"},special_equipment:{name:"特种设备",color:"#0080FF"},operate_highway:{name:"高速公路",color:"#722ED1"}},ie={tunnel:{class:"tag-tunnel",background:"rgba(62, 123, 250, 0.1)",color:"#3366E6",text:"隧道"},simple_supported_bridge:{class:"tag-bridge",background:"rgba(34, 184, 80, 0.1)",color:"#22B850",text:"桥梁"},special_equipment:{class:"tag-equipment",background:"rgba(0, 128, 255, 0.1)",color:"#0080FF",text:"特种设备"},operate_highway:{class:"tag-highway",background:"rgba(114, 46, 209, 0.1)",color:"#722ED1",text:"高速公路"},gas_station:{class:"tag-gas-station",background:"rgba(255, 77, 79, 0.1)",color:"#FF4D4F",text:"加油站"}},ee=ke=>ie[ke]?.class||"tag-tunnel",te=ke=>ie[ke]?.text||"隧道",X=(ke,me)=>{console.log("准备删除隐患提示历史记录:",ke),v.value={item:ke,index:me},p.value=!0},ue=async()=>{if(!v.value)return;const{item:ke,index:me}=v.value;try{const Be=await Bn.deleteRecognitionRecord({recognition_record_id:ke.id});Be.statusCode===200?(N.value.splice(me,1),q.value=q.value-1,ke.isActive&&await Me(),console.log("隐患提示历史记录删除成功"),Ct.success("删除成功")):(console.error("删除隐患提示历史记录失败:",Be.msg),Ct.error(Be.msg||"删除失败"))}catch(Be){console.error("删除隐患提示历史记录失败:",Be),Ct.error("删除失败,请稍后重试")}finally{p.value=!1,v.value=null}},ve=()=>{p.value=!1,v.value=null},Me=()=>{console.log("createNewChat 被调用"),i.value="main",t.value="tunnel",n.value=null,r.value="",s.value=null,l.value=!1,u.value=null,h.value=!1,g.value=!1,y.value=!1,b.value="",d.value={},c.value=!1,f.value={correct:!1,error:!1},j.value=!1,S.value=!1,k.value=!1,M.value=!1,D.value="",P.value=!1,O.value="",_.value=!1,o.value?(o.value.value="",console.log("文件输入已清空")):console.log("fileInput 引用为空,无法清空"),N.value.length>0&&N.value.forEach(ke=>{ke.isActive=!1}),console.log("新任务创建完成")},we=async(ke,me)=>{try{if(console.log("handleHistoryItem 被调用,历史记录:",ke),ke.isActive){console.log("当前记录已经是选中状态,忽略点击");return}s.value=ke,i.value="detail",g.value=!1,U.value=!0,j.value=!0,console.log("开始获取记录详情,ID:",ke.id);const Be=await Bn.getRecognitionRecordDetail({recognition_record_id:ke.id});if(Be.statusCode===200||Be.code===200){const rt=Be.data;console.log("获取详情成功:",rt),m.value={scene_name:rt.tag_type||Ot(rt.labels),labels:rt.labels,total_detections:rt.labels&&Array.isArray(rt.labels)?rt.labels.length:0,third_scenes:rt.third_scenes||[]};const ht=rt.recognition_image_url||rt.original_image_url;b.value=ht,ht&&await je(ht);const rn=rt.tag_type||Ot(rt.labels);ke.tagType=rn;const Ye=m.value?.third_scenes||[];B.value={},Ye.forEach((Je,lt)=>{B.value[lt]=!0})}else{console.error("获取详情失败:",Be.message),Ct.error("获取记录详情失败"),m.value={scene_name:ke.tagType||"simple_supported_bridge",labels:ke.labels,total_detections:0,third_scenes:[]};const rt=ke.recognitionImageUrl||ke.originalImageUrl;b.value=rt,rt&&await je(rt),B.value={}}N.value.forEach(rt=>{rt.isActive=rt.id===ke.id}),console.log("历史记录状态已更新")}catch(Be){console.error("处理历史记录失败:",Be),Ct.error("获取记录详情失败"),g.value=!1}finally{U.value=!1,j.value=!1}},he=ke=>{try{console.log("selectScenario 被调用,场景:",ke),t.value=ke,g.value=!1,console.log("选择场景:",W[ke].name)}catch(me){console.error("选择场景失败:",me),g.value=!1}},Te=()=>{try{console.log("triggerFileUpload 被调用"),console.log("fileInput.value:",o.value),g.value=!1,o.value?(o.value.click(),console.log("已触发文件选择器")):console.error("fileInput 引用为空")}catch(ke){console.error("触发文件上传失败:",ke),g.value=!1}},Y=async ke=>{try{console.log("uploadFileToServer 被调用,文件:",ke),h.value=!0;const me=new FormData;me.append("image",ke),console.log("FormData 已创建:",me),console.log("开始调用后端API...");const Be=await Bn.uploadImage(me);if(console.log("后端API响应:",Be),Be.statusCode===200)r.value=Be.fileUrl||Be.fileURL,console.log("上传成功:",r.value),Ct.success("图片上传成功!");else throw new Error(Be.message||"上传失败")}catch(me){console.error("上传失败:",me),Ct.error("图片上传失败: "+(me.message||"未知错误")),n.value=null,r.value="",g.value=!1}finally{h.value=!1,g.value=!1}},be=async()=>{try{if(console.log("startIdentification 被调用"),y.value){console.log("识别正在进行中,忽略重复点击"),Ct.warning("识别正在进行中,请勿重复点击");return}if(!t.value){console.log("未选择场景"),Ct.warning("请先选择场景"),g.value=!1;return}if(!r.value){console.log("未上传图片"),Ct.warning("请先上传图片"),g.value=!1;return}try{console.log("检查最新识别记录是否已点评");const ut=await Bn.getLatestRecognitionRecord({});if(ut.statusCode===200&&ut.data){const yt=ut.data;if(console.log("最新识别记录:",yt),yt.effect_evaluation===0||!yt.effect_evaluation){Ct.warning("请先对上一次识别结果进行点评,再进行新的识别"),g.value=!1;return}}}catch(ut){console.error("检查最新识别记录失败:",ut)}console.log("开始识别:",{scenario:W[t.value].name,image:r.value}),y.value=!0;const ke="",me="蜀道用户",Be=new Date,rt=Be.getFullYear(),ht=String(Be.getMonth()+1).padStart(2,"0"),rn=String(Be.getDate()).padStart(2,"0"),Ye=`${rt}/${ht}/${rn}`,Je=ke.length>=4?ke.slice(-4):ke,lt={scene_name:t.value,image:r.value,account:Je,username:me,date:Ye};console.log("发送隐患提示请求:",lt);const Ue=await Bn.hazardDetection(lt);if(console.log("隐患提示响应:",Ue),Ue.code===200||Ue.statusCode===200){if(Ct.success("隐患提示完成!"),m.value=Ue.data,Ue.data.annotated_image&&(b.value=`${Ue.data.annotated_image}`),a.value=!0,setTimeout(()=>{i.value="detail",a.value=!1,S.value=!0,_.value=!0},1e3),setTimeout(()=>{S.value=!1,_.value=!1,Fe()},4e3),await _t(),N.value.length>0){const ut=N.value[0];s.value=ut,N.value.forEach(yt=>{yt.isActive=yt.id===ut.id}),console.log("自动选中最新记录:",ut)}console.log("识别结果:",Ue.data),console.log("标注图片URL:",b.value)}else Ct.error(Ue.msg||"隐患提示失败")}catch(ke){console.error("开始识别失败:",ke),Ct.error("隐患提示失败: "+(ke.msg||"未知错误")),g.value=!1}finally{y.value=!1}},De=async ke=>{try{if(console.log("openExampleModal 被调用,隐患信息:",ke),c.value){console.log("正在加载示例图,忽略重复点击");return}u.value=ke,g.value=!1,c.value=!0;const me=await Bn.getThirdSceneExampleImage({third_scene_name:ke.description});if(console.log("获取示例图响应:",me),me.statusCode===200){const Be=me.data;Be&&(Be.correct_example_image||Be.wrong_example_image)?(d.value={correctImageUrl:Be.correct_example_image||"",errorImageUrl:Be.wrong_example_image||""},f.value={correct:!1,error:!1},l.value=!0,console.log("示例弹窗已打开,示例图数据:",d.value),console.log("API返回的原始数据:",Be),console.log("正确示例图URL:",Be.correct_example_image),console.log("错误示例图URL:",Be.wrong_example_image)):(Ct.warning("暂无示例图"),console.log("没有找到示例图数据"))}else Ct.error("获取示例图失败: "+(me.msg||"未知错误")),console.error("获取示例图失败:",me.msg)}catch(me){console.error("打开示例弹窗失败:",me),Ct.error("获取示例图失败,请稍后重试"),g.value=!1}finally{c.value=!1}},pe=()=>{try{console.log("closeExampleModal 被调用"),l.value=!1,d.value={},u.value=null,c.value=!1,f.value={correct:!1,error:!1},console.log("示例弹窗已关闭")}catch(ke){console.error("关闭示例弹窗失败:",ke)}},oe=(ke,me)=>{console.log(`图片加载失败 (${me}):`,ke.target.src),me==="correct"?(d.value.correctImageUrl="",f.value.correct=!1):me==="error"&&(d.value.errorImageUrl="",f.value.error=!1)},ce=(ke,me)=>{const Be=ke.target,rt=Be.naturalWidth/Be.naturalHeight;rt>1?(Be.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${me}): 横图, 宽高比: ${rt.toFixed(2)}`)):(Be.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${me}): 竖图, 宽高比: ${rt.toFixed(2)}`)),me==="correct"?f.value.correct=!1:me==="error"&&(f.value.error=!1),console.log(`图片加载完成 (${me}):`,Be.src)},Re=(ke=null)=>{try{console.log("openImagePreview 被调用"),ke?A.value=ke:A.value=b.value,w.value=!0,console.log("图片预览已打开,URL:",A.value)}catch(me){console.error("打开图片预览失败:",me)}},Ee=()=>{try{console.log("closeImagePreview 被调用"),w.value=!1,A.value="",console.log("图片预览已关闭")}catch(ke){console.error("关闭图片预览失败:",ke)}},Le=ke=>{try{console.log("主图片加载失败")}catch(me){console.error("处理主图片错误失败:",me)}},Fe=()=>{try{console.log("开始整个分析文本流式输出效果"),P.value=!1,O.value="",B.value={};const ke=m.value?.scene_name,me=ke?W[ke]?.name:"未知场景",ht=(m.value?.labels||"").split("、").map(yt=>`<span class="label-tag">${yt}</span>`).join(""),rn=`我识别到这是一个<span class="scene-tag">${me}</span>场景,检测到的关键要素为${ht}`,Ye=[];let Je=rn,lt=!1,Ue="";for(let yt=0;yt<Je.length;yt++){const jt=Je[yt];jt==="<"?(Ue&&!lt&&(Ye.push(Ue),Ue=""),lt=!0,Ue+=jt):jt===">"?(Ue+=jt,Ye.push(Ue),Ue="",lt=!1):lt?Ue+=jt:Ye.push(jt)}Ue&&Ye.push(Ue),P.value=!0;let ze=0;const ut=setInterval(()=>{ze<Ye.length?(O.value+=Ye[ze],ze++):(clearInterval(ut),P.value=!1,console.log("分析文本流式输出完成"),setTimeout(()=>{Pe()},500))},30)}catch(ke){console.error("开始分析文本流式输出失败:",ke),P.value=!1}},Pe=()=>{try{console.log("开始逐个显示隐患卡片");const ke=m.value?.third_scenes||[];setTimeout(()=>{const me=document.querySelector(".hazards-section");me&&me.scrollIntoView({behavior:"smooth",block:"start"})},100),ke.forEach((me,Be)=>{setTimeout(()=>{B.value[Be]=!0,console.log(`显示第${Be+1}个隐患卡片`),setTimeout(()=>{const rt=document.querySelectorAll(".hazard-card");rt[Be]&&rt[Be].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},50)},Be*150)})}catch(ke){console.error("显示隐患卡片失败:",ke)}},Ne=()=>{try{console.log("clearUploadedImage 被调用"),n.value=null,r.value="",g.value=!1,o.value?(o.value.value="",console.log("文件输入已清空")):console.log("fileInput 引用为空,无法清空"),console.log("上传图片已清除")}catch(ke){console.error("清除上传图片失败:",ke)}},pt=()=>{try{console.log("reselectImage 被调用"),Ne(),g.value=!1,Te(),console.log("重新选择图片完成")}catch(ke){console.error("重新选择图片失败:",ke)}},Rt=ke=>{try{console.log("handleDrop 被调用"),ke.preventDefault(),g.value=!1;const me=ke.dataTransfer.files[0];console.log("拖拽的文件:",me),me?Ut(me):(console.log("没有拖拽文件"),g.value=!1)}catch(me){console.error("拖拽处理失败:",me),g.value=!1}},Bt=ke=>{try{console.log("handleDragOver 被调用"),ke.preventDefault(),g.value=!0,console.log("拖拽进入状态已设置")}catch(me){console.error("拖拽进入处理失败:",me),g.value=!1}},en=ke=>{try{console.log("handleDragLeave 被调用"),ke.preventDefault(),g.value=!1,console.log("拖拽离开状态已设置")}catch(me){console.error("拖拽离开处理失败:",me),g.value=!1}},Wt=ke=>new Promise(me=>{const Be=document.createElement("canvas"),rt=Be.getContext("2d"),ht=new Image;ht.onload=()=>{Be.width=ht.naturalWidth,Be.height=ht.naturalHeight,rt.drawImage(ht,0,0),Be.toBlob(rn=>{const Ye=new File([rn],ke.name,{type:ke.type,lastModified:ke.lastModified});me(Ye)},ke.type)},ht.src=URL.createObjectURL(ke)}),Ut=async ke=>{try{if(console.log("processFile 被调用,文件:",ke),ke.size>5*1024*1024){console.log("文件大小超过限制:",ke.size),Ct.error("文件大小不能超过5MB"),g.value=!1;return}const me=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",ke.type),!me.includes(ke.type)){console.log("不支持的文件类型:",ke.type),Ct.error("只支持JPG、PNG、GIF、BMP、WEBP格式的图片"),g.value=!1;return}const Be=await Wt(ke);n.value=Be,console.log("选择文件:",Be.name),console.log("开始上传文件到服务器"),await Y(Be)}catch(me){console.error("处理文件失败:",me),g.value=!1}},ct=async ke=>{try{console.log("handleFileUpload 被调用",ke);const me=ke.target.files[0];console.log("选择的文件:",me),me?await Ut(me):console.log("没有选择文件")}catch(me){console.error("文件上传处理失败:",me),g.value=!1}},_t=async()=>{try{console.log("📋 开始获取隐患识别历史记录..."),H.value=!0;const ke=performance.now(),me=await Bn.getHazardHistory({}),Be=performance.now();if(console.log(`📋 隐患识别历史记录API调用耗时: ${(Be-ke).toFixed(2)}ms`),console.log("📋 历史记录响应:",me),me.statusCode===200||me.code===200){q.value=me.total||0;const rt=me.data||[];N.value=rt.map((ht,rn)=>({id:ht.id||rn,title:ht.title||"隐患提示记录",description:ht.description||"暂无描述",time:st(ht.created_at),tagType:ht.tag_type,isActive:!1,originalImageUrl:ht.original_image_url,recognitionImageUrl:ht.recognition_image_url,labels:ht.labels||"",third_scenes:[],effect_evaluation:ht.effect_evaluation||0})),console.log(`✅ 隐患识别历史记录处理完成: ${N.value.length}条记录,总数: ${q.value}`)}else console.error("❌ 获取历史记录失败:",me.message)}catch(ke){console.error("❌ 获取历史记录失败:",ke)}finally{H.value=!1}},st=ke=>{if(!ke)return"未知时间";console.log("formatTime 被调用,原始时间戳:",ke,"类型:",typeof ke);let me;if(typeof ke=="string")me=new Date(ke);else{let Ue=ke;ke.toString().length===10||ke.toString().length===11?Ue=ke*1e3:ke.toString().length===13||(Ue=ke*1e3),me=new Date(Ue)}console.log("转换后的日期:",me);const Be=new Date,rt=new Date(Be.getFullYear(),Be.getMonth(),Be.getDate()),ht=new Date(rt.getTime()-1440*60*1e3);if(console.log("今天开始时间:",rt),console.log("昨天开始时间:",ht),console.log("记录时间:",me),me>=rt){const Ue=me.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("今天对话,返回:",Ue),Ue}if(me>=ht&&me<rt){const Ue="昨天 "+me.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("昨天对话,返回:",Ue),Ue}const rn=me.getMonth()+1,Ye=me.getDate(),Je=me.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),lt=`${rn}月${Ye}日 ${Je}`;return console.log("更早对话,返回:",lt),lt},Ot=ke=>{if(!ke)return"gas_station";let me="";return Array.isArray(ke)?me=ke.join(" ").toLowerCase():me=String(ke).toLowerCase(),me.includes("隧道")?"tunnel":me.includes("桥梁")?"simple_supported_bridge":me.includes("加油站")?"gas_station":me.includes("设备")?"special_equipment":me.includes("高速")?"operate_highway":"simple_supported_bridge"},Ae=()=>{const ke=new Date,me=ke.getMonth()+1,Be=ke.getDate(),rt=ke.getHours().toString().padStart(2,"0"),ht=ke.getMinutes().toString().padStart(2,"0");return`${me}月${Be}日 ${rt}:${ht}`},je=ke=>new Promise((me,Be)=>{if(!ke){me();return}const rt=new Image,ht=setTimeout(()=>{console.warn("图片加载超时:",ke),me()},1e4);rt.onload=()=>{clearTimeout(ht),console.log("图片加载完成:",ke),me()},rt.onerror=()=>{clearTimeout(ht),console.error("图片加载失败:",ke),me()},rt.src=ke}),at=()=>{try{console.log("打开点评弹窗"),G.value=!0,s.value?.effect_evaluation>0?gt():Z.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(ke){console.error("打开点评弹窗失败:",ke)}},gt=async()=>{try{console.log("加载点评数据");const ke=await Bn.getRecognitionRecordDetail({recognition_record_id:s.value.id});if(ke.statusCode===200||ke.code===200){const me=ke.data;Z.value={sceneMatch:me.scene_match===1,promptAccurate:me.tip_accuracy===1,rating:me.effect_evaluation||0,userRemark:me.user_remark||""},console.log("点评数据回显成功:",Z.value)}else console.error("获取点评数据失败:",ke.message),Z.value={sceneMatch:null,promptAccurate:null,rating:s.value.effect_evaluation||0,userRemark:""}}catch(ke){console.error("加载点评数据失败:",ke),Z.value={sceneMatch:null,promptAccurate:null,rating:s.value.effect_evaluation||0,userRemark:""}}},nn=()=>{try{console.log("关闭点评弹窗"),G.value=!1}catch(ke){console.error("关闭点评弹窗失败:",ke)}},Tn=ke=>{const me=ke.target.value;me.length>200?Z.value.userRemark=me.substring(0,200):Z.value.userRemark=me},He=async()=>{try{if(console.log("提交评价:",Z.value),Z.value.sceneMatch===null||Z.value.promptAccurate===null||Z.value.rating===0){Ct.warning("请完成所有评价项目");return}const ke=await Bn.submitEvaluation({id:s.value?.id,scene_match:Z.value.sceneMatch?1:0,tip_accuracy:Z.value.promptAccurate?1:0,effect_evaluation:Z.value.rating,user_remark:Z.value.userRemark});if(ke.statusCode===200||ke.code===200){Ct.success("评价提交成功"),s.value&&(s.value.effect_evaluation=Z.value.rating);const me=N.value.find(Be=>Be.id===s.value?.id);me&&(me.effect_evaluation=Z.value.rating),nn()}else Ct.error("评价提交失败: "+(ke.msg||"未知错误"))}catch(ke){console.error("提交评价失败:",ke),Ct.error("评价提交失败,请稍后重试")}};return jn(()=>{_t()}),(ke,me)=>(F(),K("div",jqt,[Ve(zC),x("div",Hqt,[x("div",{class:"history-header"},[me[14]||(me[14]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:QC,alt:"新建任务",class:"new-chat-btn",onClick:Me})]),x("div",Wqt,[H.value&&q.value===0?(F(),K("div",Vqt,me[15]||(me[15]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):q.value>0?(F(!0),K(Pt,{key:1},an(N.value,(Be,rt)=>(F(),K("div",{key:Be.id,class:re(["history-item",{active:Be.isActive}]),onClick:ht=>we(Be)},[x("div",Gqt,[x("div",Kqt,[x("div",Qqt,We(Be.title),1),x("span",{class:re(["history-tag",ee(Be.tagType)])},We(te(Be.tagType)),3)]),x("div",Yqt,[x("span",Zqt,We(Be.time),1)]),x("div",Xqt,[x("div",Jqt,[x("img",{src:Be.originalImageUrl,alt:"隐患图标",class:"history-icon-img",onError:ht=>ht.target.src=Be.originalImageUrl},null,40,eGt)]),x("div",tGt,We(Be.description),1)])]),x("div",{class:re(["delete-btn",{"always-visible":Be.isActive}]),onClick:Qt(ht=>X(Be,rt),["stop"])},me[16]||(me[16]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,nGt)],10,qqt))),128)):(F(),K("div",rGt,me[17]||(me[17]=[x("img",{src:YC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",oGt,[me[44]||(me[44]=x("div",{class:"work-header"},[x("h2",null,"隐患提示")],-1)),x("div",iGt,[i.value==="main"?(F(),K("div",aGt,[x("div",{class:re(["left-section",{transitioning:a.value}])},[x("div",sGt,[me[26]||(me[26]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null," 基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议 ")],-1)),x("div",lGt,[me[18]||(me[18]=x("h4",null,"步骤一:选择场景",-1)),me[19]||(me[19]=x("p",{class:"step-description"}," 请先选择您要识别的工程场景 ",-1)),x("div",uGt,[(F(),K(Pt,null,an(W,(Be,rt)=>x("div",{key:rt,class:re(["scenario-tag",{active:t.value===rt,disabled:rt!=="gas_station"&&rt!=="simple_supported_bridge"&&rt!=="tunnel"&&rt!=="special_equipment"&&rt!=="operate_highway","identifying-disabled":y.value}]),onClick:ht=>!y.value&&(rt==="gas_station"||rt==="simple_supported_bridge"||rt==="tunnel"||rt==="special_equipment"||rt==="operate_highway")?he(rt):null},We(Be.name),11,cGt)),64))])]),x("div",dGt,[me[25]||(me[25]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:re(["upload-area",{"drag-over":g.value}]),onClick:Te,onDrop:Rt,onDragover:Bt,onDragleave:en},[r.value?(F(),K("div",fGt,[x("img",{src:r.value,alt:"已上传的图片",class:"uploaded-image"},null,8,pGt),x("div",hGt,[x("button",{class:"change-image-btn",onClick:Qt(pt,["stop"])}," 更换图片 ")])])):(F(),K("div",gGt,[me[20]||(me[20]=x("img",{src:pke,alt:"上传图标",class:"upload-icon"},null,-1)),me[21]||(me[21]=x("p",{class:"upload-text"},"点击上传图片",-1)),me[22]||(me[22]=x("p",{class:"upload-format"}," 支持JPG、PNG格式,单个文件不超过5MB ",-1)),x("button",{class:"select-file-btn",onClick:Qt(Te,["stop"])}," 选择图片文件 ")])),h.value?(F(),K("div",vGt,me[23]||(me[23]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),y.value?(F(),K("div",mGt,me[24]||(me[24]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在识别隐患...",-1)]))):xe("",!0),x("input",{ref_key:"fileInput",ref:o,type:"file",accept:"image/*",onChange:ct,style:{display:"none"}},null,544)],34)]),x("div",yGt,[x("button",{class:re(["start-identify-btn",{"btn-disabled":y.value}]),onClick:be,disabled:y.value},[x("img",{src:r.value?C(vke):C(gke),alt:"开始识别",class:"btn-bg"},null,8,wGt)],10,bGt)])])],2),x("div",{class:re(["right-section",{"slide-out":a.value}])},me[27]||(me[27]=[ki('<div class="process-card" data-v-f313758c><h3 data-v-f313758c>使用流程</h3><div class="process-section" data-v-f313758c><div class="process-flow" data-v-f313758c><div class="process-step" data-v-f313758c><div class="step-image" data-v-f313758c><img src="'+Lqt+'" alt="步骤1" data-v-f313758c><div class="step-number" data-v-f313758c>1</div></div><div class="step-content" data-v-f313758c><div class="step-title" data-v-f313758c> 上传图片 </div><div class="step-desc" data-v-f313758c> 选择包含安全隐患的图片 </div></div></div><div class="step-connector" data-v-f313758c></div><div class="process-step" data-v-f313758c><div class="step-image" data-v-f313758c><img src="'+Fqt+'" alt="步骤2" data-v-f313758c><div class="step-number" data-v-f313758c>2</div></div><div class="step-content" data-v-f313758c><div class="step-title" data-v-f313758c>AI识别</div><div class="step-desc" data-v-f313758c> 智能识别场景要素 </div></div></div><div class="step-connector" data-v-f313758c></div><div class="process-step" data-v-f313758c><div class="step-image" data-v-f313758c><img src="'+Uqt+'" alt="步骤3" data-v-f313758c><div class="step-number" data-v-f313758c>3</div></div><div class="step-content" data-v-f313758c><div class="step-title" data-v-f313758c> 隐患分析 </div><div class="step-desc" data-v-f313758c> 智能分析安全隐患 </div></div></div><div class="step-connector" data-v-f313758c></div><div class="process-step" data-v-f313758c><div class="step-image" data-v-f313758c><img src="'+$qt+'" alt="步骤4" data-v-f313758c><div class="step-number" data-v-f313758c>4</div></div><div class="step-content" data-v-f313758c><div class="step-title" data-v-f313758c> 查看隐患 </div><div class="step-desc" data-v-f313758c> 查看详细隐患结果 </div></div></div></div></div></div>',1)]),2)])):xe("",!0),i.value==="detail"?(F(),K("div",AGt,[x("div",CGt,[x("div",xGt,[me[28]||(me[28]=x("svg",{class:"header-icon-svg",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},[x("path",{d:"M957.217391 86.372174C957.217391 86.372174 957.217391 608.211478 957.217391 608.211478 957.217391 639.510261 949.782261 670.630957 934.956522 701.573565 920.086261 732.605217 900.674783 762.568348 876.633043 791.685565 852.591304 820.758261 825.121391 848.317217 794.267826 874.273391 763.369739 900.274087 732.070957 923.425391 700.326957 943.727304 668.538435 964.073739 637.68487 980.992 607.721739 994.437565 577.758609 1007.88313 551.490783 1017.09913 528.918261 1022.130087 528.918261 1022.130087 518.233043 1024 518.233043 1024 518.233043 1024 508.438261 1022.130087 508.438261 1022.130087 485.286957 1017.09913 458.440348 1007.88313 427.853913 994.437565 397.267478 980.992 365.523478 964.073739 332.577391 943.727304 299.631304 923.425391 267.308522 900.274087 235.52 874.273391 203.776 848.317217 175.415652 820.758261 150.483478 791.685565 125.551304 762.568348 105.382957 732.605217 89.978435 701.573565 74.48487 670.630957 66.782609 639.510261 66.782609 608.211478 66.782609 608.211478 66.782609 86.372174 66.782609 86.372174 66.782609 86.372174 103.290435 80.717913 103.290435 80.717913 103.290435 80.717913 512.890435 0 512.890435 0 512.890435 0 930.504348 80.717913 930.504348 80.717913 930.504348 80.717913 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174ZM513.024 75.553391C513.024 75.553391 508.082087 74.529391 508.082087 74.529391 508.082087 74.529391 156.538435 137.527652 156.538435 137.527652 156.538435 137.527652 156.538435 466.765913 156.538435 466.765913 156.538435 466.765913 513.024 466.765913 513.024 466.765913 513.024 466.765913 513.024 75.553391 513.024 75.553391 513.024 75.553391 513.024 75.553391 513.024 75.553391ZM867.461565 466.765913C867.461565 466.765913 513.024 466.765913 513.024 466.765913 513.024 466.765913 513.024 935.401739 513.024 935.401739 535.81913 929.881043 560.617739 921.466435 587.419826 910.113391 614.177391 898.760348 640.623304 885.359304 666.713043 869.865739 692.847304 854.372174 717.957565 837.186783 742.13287 818.265043 766.308174 799.343304 787.634087 778.99687 806.288696 757.314783 824.898783 735.677217 839.724522 713.149217 850.810435 689.730783 861.94087 666.35687 867.461565 642.582261 867.461565 618.496 867.461565 618.496 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913Z"})],-1)),x("div",SGt,[x("span",EGt,We(m.value?.scene_name?W[m.value.scene_name]?.name:"隐患提示结果"),1)])]),x("div",kGt,[x("div",TGt,We(s.value?.time||Ae()),1)])]),x("div",_Gt,[U.value||j.value?(F(),K("div",DGt,[me[29]||(me[29]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,We(U.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",IGt,[x("div",{class:"evaluation-status",onClick:at},[x("span",{class:re(["status-badge",s.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},We(s.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",OGt,[x("img",{src:S.value?r.value:b.value,alt:S.value?"用户上传图片":"隐患提示图片",class:"main-image",onClick:me[0]||(me[0]=Be=>Re()),style:{cursor:"pointer",transform:"none !important"},onError:Le},null,40,MGt),S.value?(F(),K("div",PGt,me[30]||(me[30]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0)])]),x("div",NGt,[x("div",RGt,[me[32]||(me[32]=x("div",{class:"robot-avatar"},[x("img",{src:zqt,alt:"蜀安AI助手",class:"robot-img"})],-1)),x("div",BGt,[_.value?(F(),K("div",LGt,me[31]||(me[31]=[ki('<div class="typing-indicator" data-v-f313758c><span class="dot" data-v-f313758c></span><span class="dot" data-v-f313758c></span><span class="dot" data-v-f313758c></span></div><span class="prompt-text" data-v-f313758c>蜀安AI助手正在为您智能分析图片,请稍候…</span>',2)]))):(F(),K("h3",FGt," 蜀道安全管理AI智能助手慧眼识图分析出以下结果 "))])]),_.value?xe("",!0):(F(),K("div",UGt,[x("div",$Gt,[P.value?(F(),K("span",{key:0,innerHTML:O.value,class:"streaming-text"},null,8,zGt)):!P.value&&m.value?(F(),K("span",jGt,[me[33]||(me[33]=xn(" 我识别到这是一个",-1)),x("span",HGt,We(m.value?.scene_name?W[m.value.scene_name]?.name:"未知场景"),1),me[34]||(me[34]=xn("场景,检测到的关键要素为",-1)),(F(!0),K(Pt,null,an(m.value.labels?.split("、")||[],(Be,rt)=>(F(),K("span",{key:rt,class:"label-tag"},We(Be),1))),128))])):xe("",!0)]),!P.value&&m.value?(F(),K("p",WGt," 根据安全规范和施工标准,我为您梳理出以下需要重点关注的安全隐患 ")):xe("",!0),_.value?xe("",!0):(F(),K("div",VGt,[x("div",{class:re(["hazards-content",{"scanning-mode":S.value}])},[S.value?(F(),K("div",qGt,me[35]||(me[35]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(F(),K("div",GGt,[(F(!0),K(Pt,null,an(m.value?.third_scenes||[],(Be,rt)=>(F(),K("div",{key:rt,class:re(["hazard-card",{show:B.value[rt]}])},[x("div",KGt,We(rt+1),1),x("div",QGt,[x("p",YGt,We(Be),1),x("a",{href:"javascript:void(0);",class:"example-link",onClick:Qt(ht=>De({number:rt+1,description:Be}),["prevent"])}," 示例 ",8,ZGt)])],2))),128))]))],2)]))]))])]),(F(),mt(WB,{to:"body"},[w.value?(F(),K("div",{key:0,class:"image-preview-overlay",onClick:Ee},[x("img",{src:A.value||b.value,alt:"预览图片",class:"preview-image",style:{transform:"none !important"}},null,8,XGt)])):xe("",!0)])),l.value?(F(),K("div",{key:0,class:"modal-backdrop",onClick:pe},[x("div",{class:"example-comparison-modal",onClick:me[7]||(me[7]=Qt(()=>{},["stop"]))},[x("div",JGt,[x("div",eKt,[x("div",tKt,[x("span",nKt,We(u.value?.number),1),x("span",rKt,We(u.value?.description),1)])]),x("button",{class:"close-button",onClick:pe},me[36]||(me[36]=[x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)]))]),x("div",oKt,[c.value?(F(),K("div",iKt,me[37]||(me[37]=[x("div",{class:"spinner"},null,-1),x("p",null,"正在加载示例图片...",-1)]))):(F(),K("div",aKt,[x("div",sKt,[me[40]||(me[40]=x("div",{class:"card-header"},[x("div",{class:"status-badge correct"},[x("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M20 6L9 17L4 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),xn(" 正确示例 ")])],-1)),x("div",lKt,[f.value.correct?(F(),K("div",uKt,me[38]||(me[38]=[x("div",{class:"spinner"},null,-1),x("p",null,"加载中...",-1)]))):d.value.correctImageUrl?(F(),K("img",{key:1,src:d.value.correctImageUrl,alt:"正确示例",class:"example-image clickable-image",onError:me[1]||(me[1]=Be=>oe(Be,"correct")),onLoad:me[2]||(me[2]=Be=>ce(Be,"correct")),onClick:me[3]||(me[3]=Be=>Re(d.value.correctImageUrl))},null,40,cKt)):(F(),K("div",dKt,me[39]||(me[39]=[x("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),x("circle",{cx:"8.5",cy:"8.5",r:"1.5",stroke:"currentColor","stroke-width":"2"}),x("path",{d:"M21 15L16 10L5 21",stroke:"currentColor","stroke-width":"2"})],-1),x("p",null,"暂无示例图片",-1)])))])]),x("div",fKt,[me[43]||(me[43]=x("div",{class:"card-header"},[x("div",{class:"status-badge error"},[x("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})]),xn(" 错误示例 ")])],-1)),x("div",pKt,[f.value.error?(F(),K("div",hKt,me[41]||(me[41]=[x("div",{class:"spinner"},null,-1),x("p",null,"加载中...",-1)]))):d.value.errorImageUrl?(F(),K("img",{key:1,src:d.value.errorImageUrl,alt:"错误示例",class:"example-image clickable-image",onError:me[4]||(me[4]=Be=>oe(Be,"error")),onLoad:me[5]||(me[5]=Be=>ce(Be,"error")),onClick:me[6]||(me[6]=Be=>Re(d.value.errorImageUrl))},null,40,gKt)):(F(),K("div",vKt,me[42]||(me[42]=[x("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),x("circle",{cx:"8.5",cy:"8.5",r:"1.5",stroke:"currentColor","stroke-width":"2"}),x("path",{d:"M21 15L16 10L5 21",stroke:"currentColor","stroke-width":"2"})],-1),x("p",null,"暂无示例图片",-1)])))])])]))])])])):xe("",!0)])):xe("",!0)])]),(F(),mt(WB,{to:"body"},[G.value?(F(),K("div",{key:0,class:"evaluation-modal-overlay",onClick:nn},[x("div",{class:"evaluation-modal",onClick:me[13]||(me[13]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[me[45]||(me[45]=x("span",{class:"modal-title"},"点评确认",-1)),x("img",{src:mj,alt:"关闭",class:"close-icon",onClick:nn})]),x("div",mKt,[x("div",yKt,[me[46]||(me[46]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",bKt,[x("button",{class:re(["answer-btn",{active:Z.value.sceneMatch===!0,disabled:s.value?.effect_evaluation>0}]),onClick:me[8]||(me[8]=Be=>s.value?.effect_evaluation>0?null:Z.value.sceneMatch=!0)}," 是 ",2),x("button",{class:re(["answer-btn",{active:Z.value.sceneMatch===!1,disabled:s.value?.effect_evaluation>0}]),onClick:me[9]||(me[9]=Be=>s.value?.effect_evaluation>0?null:Z.value.sceneMatch=!1)}," 否 ",2)])]),x("div",wKt,[me[47]||(me[47]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",AKt,[x("button",{class:re(["answer-btn",{active:Z.value.promptAccurate===!0,disabled:s.value?.effect_evaluation>0}]),onClick:me[10]||(me[10]=Be=>s.value?.effect_evaluation>0?null:Z.value.promptAccurate=!0)}," 是 ",2),x("button",{class:re(["answer-btn",{active:Z.value.promptAccurate===!1,disabled:s.value?.effect_evaluation>0}]),onClick:me[11]||(me[11]=Be=>s.value?.effect_evaluation>0?null:Z.value.promptAccurate=!1)}," 否 ",2)])]),x("div",CKt,[me[48]||(me[48]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",xKt,[(F(),K(Pt,null,an(5,Be=>x("span",{key:Be,class:re(["star",{active:Be<=Z.value.rating,disabled:s.value?.effect_evaluation>0}]),onClick:rt=>s.value?.effect_evaluation>0?null:Z.value.rating=Be}," ★ ",10,SKt)),64))])]),L.value?(F(),K("div",EKt,[me[49]||(me[49]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",kKt,[ln(x("textarea",{"onUpdate:modelValue":me[12]||(me[12]=Be=>Z.value.userRemark=Be),disabled:s.value?.effect_evaluation>0,placeholder:"请输入您的意见和建议(最多200字)",class:"remark-textarea",maxlength:"200",onInput:Tn},null,40,TKt),[[jr,Z.value.userRemark]]),x("div",_Kt,[x("span",{class:re({"over-limit":Z.value.userRemark.length>200})},We(Z.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!s.value?.effect_evaluation||s.value.effect_evaluation===0?(F(),K("div",DKt,[x("button",{class:"submit-btn",onClick:He},me[50]||(me[50]=[x("img",{src:hke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)])),Ve(c0,{visible:p.value,title:"删除历史记录",message:$.value,onConfirm:ue,onCancel:ve,onClose:ve},null,8,["visible","message"])]))}},OKt=Qo(IKt,[["__scopeId","data-v-f313758c"]]),MKt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE+SURBVFiF7ZdNUsIwGIafLxatO47QizADN/AIeAPdKStc+LOTG8ANxBPITC/gEThCdyLYxFX8YUqh/2UmzzKdpM98mSTfCw6Hw9F+erefF/2x6Vaxtiq6QG+0HoqSF73ZvFUhKUUm90broQjTP0PvqtMZLMYSFfT6IXcFE+QAuqxWpVYxVwV3yC1VHA8WT+fL4lq/ZBasUw4yCtYtBxkEm5CDAwWbkoMDBJuUgz2CTctBiqCVM+jrk9jMAfC8QGu9LVzQQCKjzV34eDZP+uylyYFMwnt/AtC/+Qi0MVNEglIFAVHyDCQKpr4kQjUNQAI7/7N3ixGu1Ff8CjSyxcd7SCxNSx7/RW1p9VNnaXWzYGl1u2VpdcNqqUsydyYJH05nxnC5NRzh+6UFJiiY6uBfJUtPdKVRZXB3OByOivkGXifOFMpxESoAAAAASUVORK5CYII=",mke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMsSURBVFiF7ZhLbtswEIb/0aPoUkeQb+AjOCeIta8TC6gDdJXmBElOEGdlwA5AJ27WdE4Q3aA+go6gZQBRYhcRUlGibMrKAy3y70RryM/D4cxQwKf+c1EXY8a49wR4jgNfCMQ/wiB+Ja4XtQZcrPjAIhxKiTEATzNjDCCSEreTURC9G+BixQdEYJDwW8wfpQJhF8/uBGSMe5mLKzx7bC9J4HIyCi72sd0KOGPcdx1wAP2GleNiSxMAHgj+Fg+vbYEwDIOkDaDT9EPhuUfNgonM82snt6a6xeb3vG9JnGo8PsxcJADCNoCNHrz5xVltEcLSTnFm4oUZ476r+YNS4mxyFEw7Ac7v+NgiMGXiPeKIMe5lzyEyKI+nAj3Tg2NpBy2cV4bW+wR5GAaJLRAUcfoi18GV6Rw1wJsVHyrbQohTgbO2cGVIKWtxN2SM13OoCSAIh+VHmeO6a4WYjIIIhGV5LHNwbGKr2+JB+UFkWO9NVpKUuN22TpMUQMa4Vzl1m9eqr47ARhmQDbm1IgUw/VLPeZ2oSipS09/5SFPHNVIAKa8YVU5fZ0nlD7cHFKIC1K4x2C1Dr5WlAH6tbukrAs4Y96F6bdPwqiIFMAyDBLLkRYI/v+dGwbxLtl07tbHmtZpqaYYsNa2QyId7U5UXIjXv5RIPRnbVgaohWdZpsT17a37Hx1DzXpJliExsa4BFm1429lwH3LQ0VTVj3K/VdsK6U7MggcvKUD9zwNpCalsuQpymtfnbAU5GQaSBHGYufptu92LFB7p+kGDuveL9Zt2sOAdQPySEJSQebIGo3Lw+d+HyEJLG2FJrc4nw5ChYdgZkjHu5i3Mp8XPLawkkkiIJG4eAKaTRtXOx4heEWhNrqgSEte5WaAKpjcGqJqPgIhXoVXu6XWBEmNoCve/fgjCvN62wCGzOtheC1l8WZoz7to2BRTiGhA8qHQKJGBYiSGxsgdvq5Up31wGQ5AIHJ2GgLX2dvs3so7aQ7w4IAHPG+5aDR6iHSgv5IYBAM6Qt0CuHhtEheQudhMEmFziA2uJ5T5VU9WGAQAmy6NyJMH2Lb4ydxRj3unZMn/pn9QecTlNPkc9dAgAAAABJRU5ErkJggg==",yke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFlSURBVEiJ3ZUxUsJQFEXPD2KNMzAOHQUwlC4BluAOwoSeJZjsAHoQdsAScBmMUKSjiEVqIXkWUUBIyANt9FV/Mv/e85N33w/89TLHD+q9oG2EJ+ABKKVoQpF4uHq+dy8GNHuBK4m5RjpdjstdNeDz5HMAY/DetzcDf3oXHguSfWYCUtNArN1KTB9AJPZeRxU3zRxgNaq8FKJNB4wPYject4kKYJA2wDa+HQDUnWBWd4JZmmgxrfpaiHWwLgFknfxayK4HDScQgOW4cpKsc9Wy17WoUJxn9cTK0Kkr701+DEiDNHuB+6uALwhW/AggQj8NEELyTa+FiJiTyd/H1DAEiArF+TWQlr2uJQMIIvFw53u4KWmQ2GD8QrTpLKZVX2uelaSTSF4KyYtpaua1kDzzTIAGojE/CzgH0ZrnAo4hYqRrjITE1kx7XavunT3km1T1w1FN8nJc7orEHskwhsbgacz/R30A7ZrwEHLpuasAAAAASUVORK5CYII=",bke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGBSURBVFiF7Zc9TsMwFIC/OBVi7MiYIyAxsLY3CCMjW6EMaTgAjwu0QUJVtx6hZWNrRwYOkSNkLo3NEqGqOG3+pAroN9pP9ufnJ//Af8fJ6+gF4rUUIwMdoJ0TlgDzVPM0iSRuTKAXiOcqFoBXcJw41XSrSFgF7kOZGfANzE80N1EkiS2uH4qpK6FsjVna0ZpB3uRbxIDnKha9QLzaAmR7XnQ1qaZbVSJPoBSTSOKqEo0I1JFoTKCqRKMCVSTqCiQAtw/i75MIArEeZq06szvwbOBRGWb9UHaFeivFFLja7qiVgZehiIEnskzswsnOlm1qZQBgPBQBZFdMdmJat6DxIizLwQUKb8FdKDMH/P2RYGA+HsqPgrPxezJQdEVlOXgGDi5wLMJjEeYJJAB5V2gZNt4C1gvLKuDAEmClmJZ95W4SBNJWitHmmNtYa2CtGbiKcwd8V+Hvuetz+eT74xGvNQNbjGtr/HhfJheXnVfXwQPOgNNKBpA48JZqrqt+3f4+X/QCoAn6Ho4MAAAAAElFTkSuQmCC",wke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKsSURBVFiF7ZbBVdtAEIa/XUHOLkF04A7AFSSuALj5Ae9lcQpgXUBs8R4QboYKCBVYVBB1gErwMS9EOzloJeRFDnZCTvF/0bNnNPPv7Mw/gg02+N+h1nE+MXZPNO8RugKxUsQAIuQKchSZctxfJDZ9UwJHQ3ug4AzKhCtgLnD+zpEkiZ3/MQF/4mkjcQ6kznEfwXwLMoDv0NmCWDTvgQOgU/k7xemXz/br2gROhtZKeWqAXGB0NbY3vyO8QFxxhmLPJxldjK1diYAxtvNDM1Xwoe1lbzdK2EXRBUDIRHEbEjweWgNMvE+6LfTDK1kgYIztPEXMELpALo7+VWKzyj4wNo4i7ry9DXnh6F0nNl+oxvM1vrDr5ttPqg6eF45eMzlApJ/JOUe/cOwUjh2BQ8r+iKOIO2Ns1QNcJDYtHD0UGRBHimlrBY6HdgKYNpZQT8J0mX1gbBxpZkDs+8UuszevVVfBffK5OPphcAAl7AMIjNrs14nNnePU++622cXR9zHOfH/4K5C620dh2Z8ZlPfuHGmrvQycNX1D+Nin/ufHmoBaSw/fBiLls2rCc/+cDIyN298oT6dYOgFoXc595RviyNgulbYoRjWBy7FNFOUfkWbWRkIUDz5JK8mBsbGXa0Rx22rX3FGqZFJpxkLxjz/ZbwhdFFlRLDbjC42AUdUPCrpaM8HP+uXY7oTJa/0Q0suJ7dVVazoWBX0gR+hGmpkvGQBJYue1vRylaaR5jDSPujxZjCIrHL1mzHr8Kn0RDpv2F+0XqN1c4DSU2KOhPVDCfiDFD+H2C6W4EA7DEV7a/w1hAiFVwmjVPR9u0bWWUUDCUDZWpyIiigftSH9CXp1mYGy8BbHT7CnYrxKzwhZ9VQHq7VcKR+c1/yoxcL7tuPmrD5IQ/+KTbIMNNvgFdcNyG4wBmd0AAAAASUVORK5CYII=",Ake="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAA4CAYAAAASCXE7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAgJSURBVHic7Z0/TBtZHse/740NNkOIp8nIV8VzxWqJjPZCs4gmEk4X6Tgp1ywX5SggzW2kpFjRRLcRV5AURLqkOSiSKMs2GyleiS5GSnFWtiG3whKrU7RDqrMmzcyCjQ3jmXfFeAb/w5g/8djwPhJi/j7//OY7v/n9fu9ZQ9CEDZ1FbBM3GcEV22ZfEIIIgEizczhdjwHgAwCDwX5uWcKbz6Pkw34Hk0YbN3QWsUw8YmB//SQmcroKAvLMtHC/kZDqBPRfrTROCX0K7mk41Rg2syc/kwPJyo20cuW9Zn1LCX0FLh5OPRFK6Kv3mvVt5UbPA5U9z6u2m8XpOmxm/8n1RAQAfsmyiwGB/Qfc83BawwgESSwmEYMCQFDA38HFw2mdiGXiEQCQsvfZ8NsiTvcRCBKJCoJ1xW9DON2JbeImJaA3/TaE050wgisUPPbhHBHbZl9QABf9NoTTnRCCCPdAnOMQoQcfw+HsT0cLaPbFFmZfbPltBqcJAb8NaMbb9V2/TWgra6qJjGoirgQxpATr9qdWd/B6tYirwyEkhnt9sLCejvZAZ42MamJppYCMajbcr+kWMhslaLoFAHi9uoPU6k47Tayjoz1Qu9B0Cxm19MnaF8MEI4M9J9qmplt49DLnLU8k+k60/VbhAgKQUUuYL1+MT4Es0ToB/Ws5j59qHtG5AgMAJNNFpN5Ve5bpa6K3rOk2ZEnAk9vnMftiC0srBQDwRURcQAAuSBSJywfHFPki8+KykcEeiKGGEzrrEMOtHXcQsiRUrSvRAOamBvC3f/7mm4i4gAAM7RO01qLplieg6Wt9dRf0MNy6JuJWhVcBgKXUNpZWChgfDTUUQqN4R5YE3LtxDjOLm0e25ThwAXUh+SKrWh9SgpibGmjpJjhpfBNQanUHyXQBatbyto0M9uDejXNNz5t9sVWV3seVICbGwr503lGZ/6FxvKVmnUD+7fouNN2u268ZzrY11WzYhuuh4koQV9uU5vsioDXVPLGgNaOamFFN3L3e3/baiJtOH/ZRVhsg16Jmraobq5Z8kR3YxqkWkBvwjY+G8NVYH/oPEWRWeqhcgeH7lW0k00Uk04W2CihXYPjHd1vIFRhuXRMP9dlzUwN12z7qFnIFBuV3+1+SfIFh9rutfdtwkaX2lfd8EZBbKDuseGrpDxN8NdaHZLrY9I79VIghAk23Mf8yd6haTKPH7eTDHDTdbupJ3TQfcDKwyr5bSm0jMdx7rMD+KPgaRB9HPCfZxlE/98ntiJc5La048dyd6/0H2lRbuFSzpaqYp1G2dUGiGFKCEEME+SJDvmijP+yIZa1cwU6928HTb6QT+oatwbOwY+J6naWVAt6u70J9bGBuaqCpJ2hWuNxvezwWwND0ecgShZq1vGIiAPyYLjq2jJ3xQmIyXcDIYM++ne/WYcZHw222rDkTiT5ckAQsLOeh6TZmFjebiiiuBHD3ej8AJ+N6u74LWaJNBeAWI2VJgJq18LHssdw+kSWKuNL+y9kxg6nJdAELy9uYWdz0sptKNN3CzOImFpa3kUwXfLCwOVeHe/FgesCLi2YWN720vBZZEpAY7kVcCXjH3CnHPr9mS1hTTXw52IPEcK/35w6FXCgHyL+Wz1tKOX0RjwXbHv8AHSQgx/NQr/MrReSKx3Hb9eNKnYISDeDJ7fOeiJL/LjY9filVgKbbSFzu9QLrn9Z3kXq3g3yxvg4EAL+POl7mo25D0y2k3u1ADBFMJPzxyh3zCJMlAXNTA55QZhY3vXS0UjwHxRd+I0sCHkwPYP6HXNOLmivs1XI0w/YKg26mtbC8XTXWNnKpByODPd5jak01vcl246Mh3/qkYwQE1Ivo6TfOdO3Jh0ZXiMfF8UTNp5pXepiMaiJTs792Mp3reWVJ8DIxNWs5sZNPUzmADhMQUC0it7bTTeJpFVkSvBukEvfmcb7vXoQhhvaWh5SgJ7Dawmq7yxodJyCgWkQATp14XJp9J1miEEMU+aINNWtBDNkYUoLQdMsLvJWoACW6dwlnFn/zRufbRUcKCNgTkbt8WlhTzaoU3Pm/t+4uTz40qs5LXO6FLFHPQwHOmFml19F0u+0V+Y4VEHC6hOPizns+CCUqePGOLFGI4T3xKFEBYpgio5r4MV3ARKIP6v9KyBcZlOgZGso4i4xc6oEYpugvZ1himECOUIhhAjFE8fVjA5pu496Nc94N9Hp1BwvLeU8gc1PnkdlwfsGRTBfxx9Gw53kqH2ntwFcBnUTQVznA2A0o0cChLvKaanqT5+NKEPf+cg795Un6StSpSn/92PD6YeRSe2tkvhQSXTf7/cr2sQTgTucAnM49jQyVJ8yNj4bwYGqg6oa7++d+r2iZLzJfiqy+eKDx0TDmX+bK83iaV2tbZWKsPZXYeMzpssq0+iT5crAH+QKran+/Oo9b+U6t7kAMt/bDgJOGvP9o+/IMWDvgR3StokQFjI+GO+aXmmcN3wTEOR10zGAqpzuhcN6NwOEcBYMyxgXEOTIfKKXkZ7+t4HQtBiUMb/y2gtOdMNjPyYbOIiWT6X4bw+k+ShaJ0ZhEDALyzG9jON0FAXn2eZR8oAAgBHEHPBvjtI5hWrgPlOtAMYkYNrMn/bWJ0y3YzJ50317oFRI/kwNJMHbfN6s43QFj9yvfWshfeclplYNfeQk4nqhkkT/wwJrjQkCeBYIkViseZ18Tfsmyi4JgXSm/0ScC570a3DOdbgzGYFBKfiYMb2gQz2MS2TfB+j8kDmw7OOugHAAAAABJRU5ErkJggg==",yd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAM4SURBVGiB7ZpfUuJAEMZ/PcR3UnsAucG6J3As4rN6gsUb6AnUE1ieADiB8qzieIJlT7BcwEregcw+JPLHJSEMCWjVflUUkO6Z7i8zPfMxQViBtyC4VnACHKzyXRMDwDAe3/jGRK6dSJ4xDIJflJ/4IqwdMpkc+cYMXZqrLEMYBBdUnTyASINa7SXUuuHSPJMA8NMpIRdsQCJzCoVBYD9cMjG8rhsAQMEhoFc6Okwnr6hjDK/fnp6ui/rPI10I9GKH8TlKtReuzUaiMIm8KVQp/H6/Qxyf/2NYczrtjACUQ2KnBGBzEjsnAIVI1LPafgoCkE8i9ryLrHafhgBkk1DWZu5JhZfRsrFkn8mGSCPL9KlGwAVbIaBEwsr6rqrjBYxGPcBZMudhKzXgGzMMtf7B3t5JbK2/yr+wdmKLRZxqm7sivku1UwYqIZD+lrjC2gilzvzHx0EVcaCCGkh3zVugjkhEHN+XHWMeVRRxsu1bO4yhh0gjTwpsim3tA1+KQLJcijSUtfswLeBKUDoB35gIa4cAiJySHJ9UhqqmkEnf61j7BQkoNUs6R4iVEqqSXq09nfumXc98iqCKfaAB6LQOHgDwvHZOk41Q/gjUalcAsUiX8ficZFXSYbPZrmI/KFVKhFo3EGkBqPG44xsThcfHR8TxPSItajUdNpvmQ10MGI/vSj8bdUJ697G2M01oNIoQSaaSyDtBPfe6wPP+hEGgXUKWNgLzdx+l7lJFuVwWJ/VhEOlibR2Rdpz4mXXjlkIg1LqO593OJfiiEvkQpYk+YO3v1HqFiAZaQAtJjmeVQ/JQAoGpdJ7pnQgYYG2HyaS35OGFCbVuoJRGqe9YWwd6/vOzcYnvTCC96/fMhl4DEMeXfr/fyWub1keuT1G4F7HnvZCs9x1mErqzKvmy4UQgbDZPgYOpaHv/PJnclJZZQbiNgFL7AIjUEWlt+pxrE7gRGI26JDKhDphdJQ+ORZyuLGcl5+KE/0eLu8aXJ5BXAxFzpwkKDt+C4LrqhN5jFfXNIzBk8Um9LnrcVwFMliFvCnXLz8MZvSzDqj97JHJhtzD+09NRljG3iNOGlzhK3Q2QKFq4zEse4C9IGz/zNm81nAAAAABJRU5ErkJggg==",Cke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAN2SURBVGiB7VpNbtpAFP6eDawdqaTKqq4UpOyanADnBOkNSkBdNzlB0xO0XbdJyA2SE8Q5QckuEll4FyVUwmvAfl3Y2GNgjBkbSCW+lWfem5n3zbz5eQ8Ic7DbfD4j0o4A7M/TXRAdEOzhqPTNaW+5qp1QmrDW6v1B8YZPmuDo3vDwob3jqLTWZILdZu8ESzceANj09PLtXuPJVGktJUCET8o2LQx1ElIXqrV6PFFlM/t3iw4AAERaHYCVQXNhdyplVWT27x4v3p5l1RcRHgTWRIfHILqcGGW8EplJSF1o2ehebLfBfDwtWcyd1kYAKIbEWgkA+UmsnQAwn4TZ6Buytq+CAJBOoqQNTmTtXg0BQE6CQNI7KfMxWjRm3DNyEJky0ataARWshABRqb+svldCQPcGNwCUn8xpWMkeeGjvOHuNpwNPrxwxj7bm6Wd/O61wE4dvm59ZdGe+nSTYbOJ1Y0Ng3dgQWDeUj9Fa86URh4TkDD39QMzvhPLvAAxmnD5eVH8k2rf+XgLcAIBZ8qxQXwGNPsQFNiv6wErIib4AMIJPfBVFQZASGB/q1pXNUG1IExkKn+McUhiAiDklo/b5JSr7upbINxHIVrVDmcDAqyQHJT1akanVAABfj2aZg6eCYIWnlK4BchAI/b0zLhP70axOGRjUxrPO4uqQ0/213ZnWz4Z8pxDBjr/JjGJXnpWS5I9CISYrTIIKcj3miKnDiAOrij6wzEbfBkZWWOWC2Q0jKsNsPJnlsm7AhxH34d/ksSHXCgw8PTE4o/SuVBqJs99h0qIZrujlOvlsJjrR861ALgJOe8sFsxPX8D4BR0L31+IJw4CV3B/5/B8o4ibW6Dr6Zt8S/Z/Jv0+cMJPynP4PFBDQJPZB4OtmKHIff1dtAKi1ei4AY7wX4rb5/B8oYAUG3lB2hkezy8mLKiKg+55Yr4TcBJz2jpPcB1HXkWvNvmnJUf1ZKTFK3g4AAKTZk1VM/n08ysybdqqNCgohwMRXADlClT32fwAIThpqC3IXmp8pwJ+HQrISobHv03S652+OAcxI3ubDfx/QbAisG2l7ILh8QhBp9d3m89nSLUKUWsyENAIOklGVlTXdtwTYMoHUhZhxtRRTFMAM6ZNj3p89bpExS7xE2N3z6qFMmLqJu+fVQ2acoqBbcwG4ADrMOE0zHgD+ARbbT11NUi+MAAAAAElFTkSuQmCC",xke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANFSURBVGiB7VlBVtswEP0jAt2m70HK0j1B2xNgdok3wAEC+ATACQgnaDmBAR+gsAnZEU5AegMveYT36jVJNF1gqO1YjmMpCbzH30UaeeZrNJrRhDABtXOnBYEtAN8nyU6JHhN3B4NPJ6F7GZb9COVN1nznDuYNT1sQiIHcvHc7QZnlQjXx5aJxiFkbDwAMSy6Lm3WvbpVZriTARHuljZoWGiSUR6jmO5zUwV2SdFvCPLDgDQLZBayZ+jhVigqSpNuHvXarqHwc0UVgx8eY4RLBSwj+90RhEsojNGv0d9tnzHDHJqY8TgsjAJghsVACgD6JhRMAJpOoettV1do3QQDIJ7Eing5V694MASCHBLEyJxW+Rk0jnWdyQWSppt6UB8pgLgRY4O+svj0XAktDecVA6ZI5D3OJgXu3E6x79R+jitgiic+T5AvXTphjEEe1zWkR2azaSYWPIF403j0B7RhY9es2Qfwm4LleIQQ8wE7fbfficute3RpVxN2LHAMhQ+48NjtdHf3aHiCIb6/GP1tmocI/03JyWdzE5QioEgtLV782gX6zfQpCEB8jkF3zG9svv9cunH0wLCSFgv5u+0xXv5EYkCwzCjB69QIJHKenWeLEhG4jBB6bnS6Du4lBhrXq123F7p+Z2H3AYCJbGrI7qtBd8pzTMYiRbn6IgTSy+4DBa/Te7QQkk5mWQHZGSXBStguXBaN54Emu/EoHdAKE4KFZrjWjglECoXsZZgZ0BFOBG4fxTJx3tzPJwLQ+8wQyrsxXZSS8vA5DGRglUPOd1tiVGceEDkMZGCMQNaDSu99L5wcWOCjbSs+CMQJyWYxnW8YpgxOBS0B1VCEvLVsWRgjU/MY2GPuJwajWycrSBLJX/bptQrcZD8TqnhfEr8y0F4DngDahWptAkUpTVSut+c6Brn5tAkwyiLdMGAjFQG6OCQ7pKJ6lowfNH1392sVc9KKa2CqJXmhfdfWl8e7fxB8EFg1lDDAQxh8nLHijdu605mFU1FosJKskQECA2D/1BLKLtvt0kTZ+7AqOQXmEiPncnEl6EIwr1Vyun9b8xk3RLvGswOBuv3k9nlci5AZxv3m9ScxHeS6cBaLE2CPmozzjAeAf9g9XIJ6mCdsAAAAASUVORK5CYII=",PKt={class:"policy-container"},NKt={class:"main-content"},RKt={class:"search-section"},BKt={class:"search-box"},LKt={class:"category-tabs"},FKt={key:0,class:"loading"},UKt={key:1,class:"no-data"},$Kt={class:"doc-icon"},zKt=["src","alt"],jKt={class:"doc-content"},HKt={class:"doc-header"},WKt={class:"doc-title"},VKt={class:"doc-date"},qKt={class:"doc-tags"},GKt={class:"doc-description"},KKt={class:"doc-footer"},QKt={class:"doc-info"},YKt={class:"info-item"},ZKt={class:"info-item"},XKt={class:"doc-actions"},JKt=["onClick"],eQt=["onClick"],tQt={key:2,class:"load-more"},nQt={__name:"PolicyDocument",setup(e){const t=Hl(),n=Q(""),r=Q(0),o=Q([]),i=Q(!1),a=Q(1),s=Q(10),l=Q(!0),u=Q(null);let d=null;const c=()=>{t.push("/")},f=D=>{r.value=D,a.value=1,o.value=[],l.value=!0,p()},p=async(D=!1)=>{if(!i.value){i.value=!0;try{const P={page:a.value,pageSize:s.value,search:n.value,policy_type:r.value===0?"":r.value};console.log("请求参数:",P);const O=await Bn.getPolicyFile(P);if(console.log("API响应:",O),O&&O.data){const _=O.data;D?o.value=[...o.value,..._]:o.value=_,l.value=_.length===s.value}}catch(P){console.error("获取政策文件失败:",P)}finally{i.value=!1}}},v=()=>{d&&clearTimeout(d),d=setTimeout(()=>{a.value=1,o.value=[],l.value=!0,p()},300)},h=()=>{n.value.trim()&&(a.value=1,o.value=[],l.value=!0,p())},g=async D=>{if(console.log("查看政策文件:",D),console.log("文件ID:",D.id,"文件所有字段:",Object.keys(D)),!D.policy_file_url){alert("文件链接不存在");return}if(!D.id)console.error("政策文件ID不存在,跳过次数更新");else{D.view_count=(D.view_count||0)+1;try{await Bn.updatePolicyFileCount({policy_file_id:D.id,action_type:1}),console.log("查看次数更新成功")}catch(O){console.error("更新查看次数失败:",O),D.view_count=(D.view_count||1)-1}}const P=D.file_type;if(P===0)window.open(D.policy_file_url,"_blank");else if(P===1||P===2){const _=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(D.policy_file_url)}`;window.open(_,"_blank")}else window.open(D.policy_file_url,"_blank")},y=async D=>{if(console.log("下载政策文件:",D),console.log("文件ID:",D.id,"文件所有字段:",Object.keys(D)),!D.policy_file_url){alert("文件链接不存在");return}if(!D.id)console.error("政策文件ID不存在,跳过次数更新");else try{await Bn.updatePolicyFileCount({policy_file_id:D.id,action_type:2}),console.log("下载次数更新成功")}catch(_){console.error("更新下载次数失败:",_)}let P=D.policy_name||"政策文件";const O=D.file_type;O===0?P+=".pdf":O===1?P+=".docx":O===2?P+=".xlsx":O===3?P+=".pptx":O===4&&(P+=".txt"),O===0?(console.log("PDF下载URL:",D.policy_file_url),m(D.policy_file_url,P)):(console.log("其他文件类型下载URL111111:",D.policy_file_url),window.open(D.policy_file_url,"_blank"))},m=(D,P)=>{const O=`/apiv1/download_file?pdf_oss_download_link=${encodeURIComponent(D)}&file_name=${encodeURIComponent(P)}`,_=document.createElement("a");_.href=O,_.download=P||"download_file",_.style.display="none",document.body.appendChild(_),_.click(),document.body.removeChild(_)},b=D=>({0:yd,1:Cke,2:xke,3:yd,4:yd,5:yd})[D]||yd,w=D=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[D]||"文件",A=D=>{if(console.log("原始标签字符串:",D),!D)return["政策文件"];const P=D.split(",").map(O=>O.trim()).filter(O=>O.length>0);return console.log("拆分后的标签数组:",P),P},S=D=>{if(!D)return"";const P=new Date(D*1e3),O=P.getFullYear(),_=String(P.getMonth()+1).padStart(2,"0"),B=String(P.getDate()).padStart(2,"0");return`${O}-${_}-${B}`};let k=null;const M=D=>{k&&clearTimeout(k),k=setTimeout(()=>{const P=D.target,O=P.scrollTop,_=P.scrollHeight,B=P.clientHeight;O+B>=_-50&&l.value&&!i.value&&(a.value++,p(!0))},100)};return jn(()=>{p()}),hl(()=>{k&&clearTimeout(k),d&&clearTimeout(d)}),(D,P)=>(F(),K("div",PKt,[x("div",{class:"header"},[x("div",{class:"header-left"},[x("div",{class:"logo-section",onClick:c},P[6]||(P[6]=[x("img",{src:Wj,alt:"logo",class:"logo-img"},null,-1)]))])]),x("div",NKt,[x("div",{class:"page-header"},[x("div",{class:"back-button1",onClick:c},P[7]||(P[7]=[x("img",{src:MKt,alt:"返回",class:"back-icon"},null,-1),x("span",{class:"back-text"},"返回首页",-1)])),P[8]||(P[8]=x("h1",{class:"page-title"},"政策文件",-1))]),x("div",RKt,[x("div",BKt,[P[9]||(P[9]=x("div",{class:"search-icon-left"},[x("img",{src:mke,alt:"搜索",class:"search-icon"})],-1)),ln(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":P[0]||(P[0]=O=>n.value=O),maxlength:"100",onInput:v,onKeyup:Lr(h,["enter"])},null,544),[[jr,n.value]])])]),x("div",LKt,[x("button",{class:re(["tab-btn",{active:r.value===0}]),onClick:P[1]||(P[1]=O=>f(0))}," 全部政策 ",2),x("button",{class:re(["tab-btn",{active:r.value===1}]),onClick:P[2]||(P[2]=O=>f(1))}," 国家法规 ",2),x("button",{class:re(["tab-btn",{active:r.value===2}]),onClick:P[3]||(P[3]=O=>f(2))}," 行业法规 ",2),x("button",{class:re(["tab-btn",{active:r.value===3}]),onClick:P[4]||(P[4]=O=>f(3))}," 地方法规 ",2),x("button",{class:re(["tab-btn",{active:r.value===4}]),onClick:P[5]||(P[5]=O=>f(4))}," 内部条例 ",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:M},[i.value?(F(),K("div",FKt,P[10]||(P[10]=[x("div",{class:"loading-spinner"},null,-1),x("span",null,"加载中...",-1)]))):xe("",!0),!i.value&&o.value.length===0?(F(),K("div",UKt,P[11]||(P[11]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(F(!0),K(Pt,null,an(o.value,(O,_)=>(F(),K("div",{key:O.id||_,class:"document-item"},[x("div",$Kt,[x("img",{src:b(O.file_type),alt:w(O.file_type),class:"file-icon"},null,8,zKt)]),x("div",jKt,[x("div",HKt,[x("h3",WKt,We(O.policy_name),1),x("span",VKt,We(S(O.publish_time)),1)]),x("div",qKt,[(F(!0),K(Pt,null,an(A(O.file_tag),(B,N)=>(F(),K("span",{key:N,class:"tag tag-blue"},[P[12]||(P[12]=x("img",{src:yke,alt:"标签图标",class:"tag-icon"},null,-1)),xn(" "+We(B),1)]))),128))]),x("p",GKt,We(O.policy_content),1),x("div",KKt,[x("div",QKt,[x("span",YKt,[P[13]||(P[13]=x("img",{src:bke,alt:"部门",class:"info-icon"},null,-1)),xn(" "+We(O.policy_department),1)]),x("span",ZKt,[P[14]||(P[14]=x("img",{src:wke,alt:"次数",class:"info-icon"},null,-1)),xn(" "+We(O.view_count)+" 次查看 ",1)])]),x("div",XKt,[x("button",{class:"action-btn view-btn",onClick:B=>g(O)},"查看详情 >",8,JKt),x("button",{class:"action-btn download-btn",onClick:B=>y(O)},P[15]||(P[15]=[x("img",{src:Ake,alt:"",class:"action-icon"},null,-1)]),8,eQt)])])])]))),128)),l.value&&!i.value?(F(),K("div",tQt,P[16]||(P[16]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)])]))}},rQt=Qo(nQt,[["__scopeId","data-v-4a9ae471"]]),h_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAhtSURBVHic7d1daFR3Gsfx3/OfFzX1IhIWpt6IsBCKW3Hbi2WDSUsiWoSyW4j0QmiNuZBdYntVISYFYfMCvWsNK15ks1voguhCy0Kx0sg2EYsX1pK1C4GCeBMDEtILN+q8nGcvZuImzSTOZM6ZZ/I/v89lMnPOc8zXM2/nnBFErL1ffyEuexjArwDXCmgrILsAbQLQBCAV9Qy0oRyAJUCWAF0EZBYIZgHc1SB9bXpUHka5colioe1nn+6Hc78TDY4C8puo1kORU0BvqbgvEQRfTI9smwl7BaGF0dWvLVmXPyXQtwHsD2u51FBmFHIpHSQvTo7KQhgLrDnArn5tyUm+D6KnAbSEMBM1vgWonE9pcqzWEGsKsGMgfxyiH0F1dy3LoS1KZA4qZ6aGk59tehGbuVPbwOM9SU2MQ9C12RWTRxSTeSn03hzecb/au7pq73BwMNuTROI246NnBF1JJG4fHMz2VH/XKrSfzf5ZBH+odiUUH6q4MD2S/mOlt684wNcGc5dVtXtzY1GciMiVb4ZSxyq6bSU36hh4+hUgh2sbi+JFr00NbzvyvFs99zlgx2D2b4yPqieHi+1sbMMA289mP4HinfCGolhRvNN+NvvJRjdZ9yH44GC2xyn+Ev5UFDeB4OSNofREud+VDbBt4PGeJBK3wU82KBwLeRReLfc+YdmH4KQmxsH4KDwtpabWWBNg8eM1vslMIRN0dQzkj6/98Qpd/dqSS+Rn+NkuRUJkLlVI7l95AMOqPWBO8n2MjyKjujsn+b6VP3q2B+zq15acy82Cz/0oWgupINW6vBd8tgfMuvwpMD6KXkupNQArAiwdyUwUuZWtOaB0DgcPo6f62d/xob4MlAJ04n5vOw/FjQT5t4BSgAp903Ycipvl5uT1c48yQS49B546SfWlLpXd7QrZ1CEwPqo/KWRTh5wI9llPQvEkgn2ueLkMIguu1RWv1UJkQVtd8UJBRBZklytdpYrIgDY5FC+RRmShyYHX5yM7qaovzUEUJgZIphggmWKAZIoBkikGSKYYIJligGSKAZIpBkimGCCZYoBkKmk9QL1kmgXdbQ6/3it4YTvw4q7NnwYz+o8Crt4JQpwuvrwPMNMs6Ol0eOOV8Hb2mTKH8O7cDjx6EtoqYsPrADPNgo97E8jUsLerVHebg0Awcb0Q+bp84m2AmWbBeF8SO7fXb50nOot7WUZYOW9fhHzcm6hrfMtOdDr0dCbqv+ItyssAu9tcXR5218MIK+dngL+13yxGWBn7v1TIfvmi1PQWS5gY4fP5F2CmMeJbxgg35l2AO3dYT7AWI1yffwEavPKtBCMsz7sAGxkjXIsB1hkjXI0BGmCE/8cAjTDCIgZoiBEyQHNxj5ABNoA4R8gAG0RcI2SADSSOETLABhO3CBlgA4pThAywQcUlQga4CZnmtYd8fX9PQ19PHCJkgJtQ7oDX7+8p/no9CP3UzBOdDt1t/v6ZvD0rLkoH9goyzYL5n1bv9SauF3hGXJX8/a8VsZ5O/tOFgf+Km/TGK/4/P6sHBliDE50OfUcZYS34HLBGx9oc2l8SXP42wI3/FF+E8BoxlWOAIcjsEpw+msDpiPeGPl6Viw/BW0i5q3JtdQyQTDFAMsUAyRQDJFMMkEwxQDLFAMkUAyRTDJBMMUAyxQDJFAMkUwyQTDFAMsUAyRQDJFMMkEwxQDLFAMkUAyRTDJBMMUAyxQDJFAMkUwyQTDFAMsUAyRQDJFPeBejzpdF83Db/AnxsPUF0fNw27wL8cT78r0toFD5um38BPlDML/r3h3qwqPjxgX/b5V2AADBx3a+riALAlW/92ybA0wCv3gm82gvOLyqu3GSAW8r74wUvInz0pLgtvvI2wPmfFAN/39oRzi8qesfya76RySfeBggUX5C8P17A1e+23sPX1e+C4l7c4/gAQDoGsn5vYcmBvYIDewXtLzm8sL38Fw5aerCo+O8T4M694vM938NbFpsAqTF5/RBMjY8BkikGSKYYIJligGSKAZIpBkimGCCZYoBkigGSKQZIphggmXIActZDUGzlHIAl6ykotpYcIAyQjMiSA3TRegyKK110gMxaj0FxJbMOCBggGQlmHYC71mNQbN11GqSvAeB5IVRvqkH6mpselYeA3rKehuJGb02PykMHACruS+txKF6Wm3MAIJL83HYcip0g+AIoBTj1J/k3gBnTgShOZqZHts0AKw5GUMglu3koTla29izAdJC8CGDBZCKKk4VSawBWBDg5KgtQOW8zE8WGyvnJUXm2o1t1PGBKk2MQmav/VBQLInMpTY6t/NGqAEt7wTP1nYpiQ+XMyr0fAJS9RlnH2ezXEHTVZyqKBcXk1Ej60M9/XPaQ/LwUesEXJBSehVJTa5QN8ObwjvuB4INoZ6K4CAQf3Bzecb/c79Y9KenGUHpCFReiG4viQBUXbgylJ9b7/XOvU/vaYO6yqnaHOxbFgYhc+WYodWzD21SyoI6Bp18BcjicsSge9NrU8LYjz7tVRecFTw1vOwLBp7UPRbEg+LSS+IAqTkyfGkq/qwp+UkIbUsX5qaH0u5XevqorI0yPpN8LBCfBt2horYVAcHJ6JP1eNXfa1JdltA083pPUxDjfrCYAgGIyL4Xe9d5q2UhN39bSMZA/DtGPoLq7luXQFiUyB5UzU8PJzza9iFpn6OrXlpzk+yB6GkBLrcujLWEBKudTmhz7+We71Qrt+6q6+rUl6/KnBPo2gP1hLZcayoxCLqWD5MVaw1sWyRemdXyoL0uQf0uhbwJ4Nar1UOQUwG2B/DPQ4PPlw+jDFHkYr597lClkU4dEsA9wrYC2ArIL0CYATQBSUc9AG8oBWCpepEoXi5dqCWZV8UMinfv6X+d2zke58v8Bne1ec0evJM0AAAAASUVORK5CYII=",g_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARGSURBVHic7Z2/b9tGFMe/70zXg2GYHOTAiyANyeIGUIHEU4cYzWgg9dKxgf+CBMgfkPg/SNDsRcZkcQLEszN4idtBQOKlHkxoCSIOJCG4cCKar4N+VFEki+RJd6R9n8WQfRSfP3rHe3oUToSE+D7bkYUaCPfAqDGjQgQbgJ30OXJKAMAFEBDBZcaL0hK9S3owTRrg+2x/FXgoBB6g+LKSEhDhdbuNnVWH3IsGjhV4RcWNYqe0RE/G/XGkwE8+VywLuwBqs4qqYNSjCFujsvE7gZ98rszPY58ZFRWRFQUiuO02NoYlfiPQyLuYURLF4ADLwq6RNx5mVCwLu77P/TWhL9Br8ROYa14Sal8FHvYeENBfNE70xVQ4AitC1XEoEAAwP4/HuiMqGHYvCwkAvBb7uNq1XhYCK0JVeC2+AyMvC3ZkoSaIcF93JIWFcE+YskUCRk3ATN/MMKMiAJOBWSGCbTJQDltMHmO4CCNQEiNQEiNQEiNQEkvHSZshw/3MOGny2DEry4SNm/l/fZUKPD0DXh2c4+3f8cSxa+X/BX5sxPixnE+ZSqN6vhclkjfMq4MYLw/OZxCRPMoEHjUYh8fjp+wk8ipRmcDDf9Jn3jB5lKhMYDPMnn2D5E2iMoGnX6b3XHmSmM+lLQF5kVhYgUA+JBZaIKBfYuEFAnolFkLg4sLkMbok5lbgYNmzVhaJJb79S77eTIOWZkISvLDz7mWtTNi8LbB5O5+vdT6j6vLHXgT383QK8FmR2wwEOln46M8I69cJlWsTP87dR2UrLNcCexwep2tEDLbCZk2up3ARMAIl0T6FFxeA7btzKC2nO84LgZcH5/DC2cSVFO0C12+IzNerowZj/4Paum8Y7QI/NmLsf6BMGTiNJq0s2gV6IfB8T39bKitmEZHECJRE+xQGgI2bIvU18N8zZLpFOm20C9y8JbB9dy7TsadfoH0V1j6F3x/HOD1Lf1wzZJzkoNGgPQO9EPj9aVt3GJnRnoFF51IKTNK9nhbKBFZXkvfzZFlZVncuZQLXyur+qfUb6iaWsjPJNA1Snec6KX2xlK7C27/MYXFhdgXw5i2B337OVlNmhbwWKy+mmiHjqMFT+8RWdaVzz0Tlta+HFoGXiUtZxqjECJTECJTECJTECJREoLN/niEbgWA2AiVwBRFc3VEUmECAUNcdRVEhgivAeKM7kKLCjBfU3Vz2BGbzibQEpSVyhONQEMd4pjuaokGE10B38zGThemJIlRXHXIFAJgsTE1/e+R+A62bhfswu1hOol5aop96D/pv5RyHgijClqkLx0MEN4qw9c3vhgeZnXxHM24b5O+aCasOue02NgBTYA9QHyUPGNONWXXI7c7znVlHlnOCOMaOFY2WByT4MoLulH7MjF9xdcqcII7x7IcYTx2HLmy2pLqN5bX4DhHud6+PNtD/WWQC5s5XYYBQB+ONFaE+SVyP/wB7RIl0zOCuIgAAAABJRU5ErkJggg==",v_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQISURBVHic7Z2/bxNJFMe/b9hghBV5t7BRmmhdUIWTTMFVFERXchJEFEg0CPrT0dEBuY7ipEP8ASeak0BCgSLlKVfQ3NFYAhooskqDsItdy7JE8LCPwj9EiH+sPZ7bXfI+TWR7vPv8yZsfnhmNCQkJQ3a1gxoIl8CoMcMnggvATXqNjBIBCABERAiY8ai8TP8kfTNNKxCG7H5SuKUUfkX+ZSUlIsKzbhebKx4FkwqOFXhExY1is7xM98a9OFLg+5B9x8EWgJqtqHJGXWtsjMrGQwLfh+wvLWGHGf7/EVleIELQ7WL9W4kHBIq8yYySqL4u4DjYEnnjYYbvONgKQx72CUOBzTbfg7R5Sah9Urg1eEDAsNPYTS+m3BE5GlXPo0gBwNIS7qYdUc5wB1lIANBsc4ijPdabh8jRqKpmmy9A5M2Dqx3UFBGupx1JbiFcUjJsMYBRU5DqOzfM8BUgGTgvRHAlA81w1fQywiREoCEi0BARaIgINEQEGuLYvsHuB0Znn23fZiSVEqFSmrrwaIQ1gW/2GA+3NZotW3dIRrkE/HLRwdqqHZFWqnCjxbj/NH15ANBsAfefajRadmqBFYHbL2N09m1ceT46+72YbGAtA7PGbiNHGZil7LONDGMMEYGGiEBDRKAhItAQEWiICDREBBoiAg0RgYaIQENEoCEi0BArM9LrPyisrWZrSsvW1L4VgX6FUC7ZuPL8FAs5Evjn35/xZi9bGbi2Svjt2uI/rrSBhmRa4I2fjuHq+UyHaH9deF78CuHncz15/75lBIZrGsXCIqI6jBWB1QoZt4FBg/HkxWecLJCxPCBnvfDFcwo7r8yXNh+/WMxSZLHQi8kGVq5aKRFuX3EyMZQpl4DbVxxrGUjNNlsdbzRanHidePtljP/eTS7742lKnE3FAqF6Kqd7YwbMssEnye6Bzj5wZjU7PXOqvfDrvYPCGgn20jRafOB9xULvH1Q8sejokmG9Co/jzl96Yd9W/Arh95vp5EJqdaHzcXHXSiv7gBQzsPOxVx0XsfkyzTYxNYHfC9npznKKCDREBBoiAg0RgYaIQEMUeufnCfMRKWYRaECgiBCkHUWOiRQI9bSjyCtECBQYz9MOJK8w4xH1D5fdhRw+MStReZk85XkUxTEepB1N3iDCM6B/+Jhk4exojeqKR4ECAMnCmRkejzxc7eln4Q7kFMtp1MvLdHbwYPhVzvMo0hobMi4cDxECrbFx4LlvC8lJvqMZdwzyocmEFY+CbhfrgAywv6I+Sh4wZjZmxaOgX883bUeWcaI4xqajR8sDEvwYQb9K32XGZRydYU4Ux3hwPMYfnkcTJ1tm2jjSbPMFIlzvt48uMPybZyLm3k9hgFAH47mjUZ8mbsAXITpX1JTiVQEAAAAASUVORK5CYII=",m_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARESURBVHic7Z2/TxtXHMA/38dRkCxk3+BELJGZWyR37wBqNoaUqVKHRuxUpf9AE/oPtFGzV8lQKROJFLZKdMgUdbCEWNqBE0sEHnzIsgTxca+Df4Fjg+3z3b2D95GQZfPs9+XD9/24d0/PwojUaroQOJQRHqEpa01JhAJQGPUzDMUHPMAXwdOaF8UF+XvUN8tNBWo1Xfio2FKKH8m+rFHxRXjdbLK96Ip3XcGhAu+ouEFsFxfk6bBfDhT4oaZLjsMOUI4rqoxRCQLWB2XjJwI/1HRpdpY9rSklEVlWEMFrNlntl3hFoJV3PYMkqssFHIcdK284WlNyHHZqNd0dE7oCq3X9FNvnjUL5o2Kr80SgO2gcphdT5vCdgCXXFV8BzM7yJO2IMkahk4UCUK3rGnd7rjcJvhOwpKp1vYKVNwmFwKGsRHicdiSZRXik7LQlApqywjbfidGakgKbgZMiQsFmYDQK6uYyluuwAiNiBUbECoyIFRgRKzAit1Zg4wxOTnXs9Tix15ACe/shf/x1QeMcXm7NkpuPr65bmYEdeQCN83iz8FYJbJy1HjcezpCbg821Ge7lb9w7EAmp1nX8HUUC7O2HPN+9YHVZsbk2k1i9iQo8OdVT6di/eHC14XTkdYi737tMIoPIwZHm992A6mn0z8rNwcufegL75W2uzSQmDxIQ2P8HRiE3B7981wt5kLzV5WS79dhre/VuuvJK91uDggnyIGaBh8d6as3WRHkQs8BpzMFMlgeGzwNNlwcGCxxHnnes+f7XJofHyU9pjRQ4rryf/wxonMd/2TYI4wROKi8tjBKYNXlgmMCsyQODBK4uq8zJA4MEriy35J2c6szIA0ME5uZ6KywHR72R1HR5YMiS/uXVk5NTzcbXLXGd102VB4YIbJy1fnLz8O1XVxdDTZYHpgg8h+e7ARsPe0vwB0ea9/+GvP0nTDm66zFCIMD7/zQHRwG5+XZGGppx/RgjEGhfjqUdxXgYMQpnGSswIlZgRKzAiMQqMO5dAf3k5pKtDxIQWMzHWUOPYh6W7t8ygQA/rCUzU+q/gkmKRLZ27O2HvHp3MZVbnP0U861/0ucPks8+SHhvzOGxnup9i3t5Sbyf7efW7M5KCzuNiYgVGBErMCJWYESswIhYgRFRtM7Ps0yGr7S2AiPgKRG8tKPIML5CqKQdRVYRwVNo3qQdSFbRmhfSPlz2EHv4xLj4xQVxleuKH4Y8SzuarCHCa2gfPmazcHyCgKVFVzwFYLNwbLrHI3dXI9tZuIc9xfImKsUF+bLzpHsp57riBwHrdl44HBG8IGD9ymv9hexJvoMZdgzyJ4sJi654zSarYCfYl6gMkgdDVmMWXfHa7Xw77sgMxw9Dtp1gsDwY4csI2k36idZ8w92Z5vhhyLPPQn5zXbl2sWWse4LVul4R4XG7fyxA9zHL+Fq3vgoDoYLmjRNQuUlch/8BwRL4U3BGOhMAAAAASUVORK5CYII=",y_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWnSURBVHic7Z0/aBtXHMe/v+dzZRBGukEKXoQyOIticCFxFw8x6WZDmg4pZAneXRrI0K2Js2UINNS7yVJowDiBeGtQh0xOBoPrJR5yaAmRBp0wAjk63a/DWaruj2xZp7tnKe+zGEmnu6ePf++93/s9cSL0SbXKaUvDPAi3wJhnRp4IaQDpfs9xQTEBGABMIhjMeJ6Zpn/6fTOddUC1yukvAveFwC8YfVn9YhLhZbOJ9RmdjNMO7CnwKxUXxHpmmh71ejFQ4Kcq5zUN2wDmo2rViLFnWbgdFI0+gZ+qnJ+cRJEZ+ThaNioQwWg2seSV6BKo5J1OkETRfYCmYVvJ6w0z8pqG7WqVO3NCR2DliB9BjXn9MP9F4H77AQGdSeOjvDaNHKZm4bKukykAYHISD2W3aMRIt6OQAKByxFV83bneIJiahcuicsQ3oOQNQtrSMC+IcE92S0YWwi2h0pYQMOYFVPcdGGbkBaAicFCIkFYRGI60OPsYxWkogSFRAkOiBIZECQyJEhgSTXYDuqk3gPoxo1xjZFOEbOrMTUPpSBd4UGLsfrBR3LdRP/a/nkkBV3MCN+YIV3MXr8NQ5YhZxoUPSow/dixUav2/p5AjrC1PXKjIjF1gvQFsvmmhuG8PfI47iwI/LU4MsVWDE6vAco3xZKsFoxx8yWwKyKQIyQRQP3aO7xWhC7OEtWUNyakIG9wHsQmsN4AHm02fkGQCWLkusHxtIlDGx8+Mnfd2YMQuzQmsLcuNxNgEbuz4u+3SnMDqzWBxXso1xm9/+sfM1ZsTWLkub3KJ5crFfX8E3Vl0oqffLphNEZ6uTqKQc08gm29aKNekzIMAYhL419uW6/HCLA00CSSngF9/1JBJuZ/f/LsV/IYYiFzg7gfb1e0yKWD1+8HHreQU8POyO33dPWTUGwOfMhTRCzx0d6+Va+HzuEKOsDTnbnqYtCgMkQv8t+T+YAtXhpMEewUelMZQYL0BV/fNZ4e3vs1n3efplVtGTaQCvbPjMJPe5JSTQ7YZyzGwfuwWOOw1bPc/JKgQEQeRCvQKG3a+JivquolUYDLhFlgZosByjV1R5x0T4yJagVNOgaBNueasbYfBQck7PAzltOcm8jRmYdZ9iXeHw0k3vHnfwhU56+HoBXo+2Ot3duixsLhvuyIwmYBvjRwXkQss5Mj14erHwJOt1sATQLnG/rX1FSGtSh1L3HsLB0aZsbFjnVtiUEkrk3IqO7KI5cqFHPk+5O4h48Fms+/ufFAKrgd+Nysv+oCYS/pPtixfcQFw1rULs4RCTriT4wawe2j7xjwva8sTvrVxXMQqsN4AXrxt4fX73jNxMuGkP84ecf/nliUx1ismp5xa4GljlrOZ1FteMuGvxADBWwZxIG1fuFxjvHgbvFkURFvcnUVnG6C4b2Njx1+JfrqqIX8pvjFRmsA25RrjoMQo7tuo1BjlrkkimwIKOYF81imgeqs5QRKTCeDx3fgkShcYFtkSR14gABifnRSne9yMS+LF+7bOAOQvER7f1dwF1mM4UiMueY2FQKC3RG9Rd9iMjUDgf4ntfeOVa9GvUsZiDPTS/qJmHEu8sRQYJ2PVhWWgBIZECQyJEhgSJTAkSmBIBJz75ykGwxTMSmAIDEEEQ3YrRhhTgLAnuxWjChEMAcYr2Q0ZVZjxnE5uLvsR6uYT58XMTJMudJ1M28Yz2a0ZNYjwEji5+ZiKwvNjWbg8o5MhAEBF4bnp3B65U3E8icIi1F0sz2IvM03fth90lnK6TqZl4bbKC3tDBMOycNv1nPcgdSffYHrdBtlXTJjRyWg2sQSoBLuLvSB5QI9qzIxOxkk/X4+6ZRcc07axrlnB8oA+fozgpEs/ZMYP+HrSHNO28ewbG7/rOp1abDnXvl/liG8Q4d7J+JgGOn9HGZPZ+SkMEPbAeKVZ2DtLXJv/APmZSn+iwQ4QAAAAAElFTkSuQmCC",Ske="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANVSURBVGiB7ZnBThNRFIb//86AuNFZFNOdY3TnBp/ALgsLAfcg8wTiG8gTVHbuRsoDWBJT2FneoEsTXYw7AizGxBhT2jku2mJb7tzeoRRGw5806dxz7+mXk3PPvWcK3Op6xWn/gBeueC5+L/Sf25hrxkEtntTvVMHnq4sVkpsaU+14rb46iW81yWKT5qtLGynQALAyX13amMT/1MCh8Nxop7yazP0/Krf/pVBd3FTgaxB+b6gpbQQnQb05bYhuWmEZgC+AT8CDSJQA26fr++90axQAFHbLJUVWBqABYIEOPhbDsq9beFUqVBc3SYQAVgAsEPAAAKSvyEohLJdSwUlnWeuV8BOXC1rbFUmRxlxXrtLulV6Oi5e2UCTddh2S4Sw4141vToEYDyMKtIFzdYNpKoZlv+OglGY/68zVMp+KZARJN0tKNliDF6qLmwlZMR21M26rUgzLz46Cg8jWLwXGuZQJUsULVzxFVsZCAF7HZWjjs69E5IfZKX3dsBX4DFraxdrfAUu2cwFA0RxxoBu4C+tsnAuSqVWWpG3enIA+cDdeVQg1FlwXOKvNeRocNLyw/MgOZS5TVTnDbDSLlnGOcnk5cACIM1SKLIqDWvxgd8k4J9FUlhtPFQCASGQyK/L+6JhVxAthuaRc9dmW43itnqmzEiIi9PW6Z79gy0XECZr3hYg/OpQLcCEjk524uDlzAU4x13LRpFEuwEWS7yb7eXMxoHyAd2yO/eFOLBfgNnJH0iUX4G2Mj/iocgFucyrTyWHEAUAAcwtH9XDwOTfgHJMuwuFanhvw8U3z8OlpdVdpY645i9bby2NZKGPTbAXe69y3JgIbo6xNc25SJWvTbBXxYlj2bbt3gvFlXtrbNs399zaWOQ5fZezesyppS6xc8zW+1zQ3gRylStamuQeefpEnGds4/eu934aNaQ5G7uBnmI30EweWDHAoAHDOOtt6CESt9p3GSVBvYsyuHwD60CWRHdM0kWTIHge1WCCN1PmQxuCfDA4A/Nz7Ft99+fgQgM9uLY2FaDodWT0NPh0BwMyLpzuO0ymi+9o5vvDpRvD98Vp9CwB+7X09GvXZ9wvh1un6fm0U7t6LJ4eJo0CRIshIIF9ANiDYPlnff2MKxK1u9b/pD3pIIlyKQZiAAAAAAElFTkSuQmCC",V8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABsSURBVFiF7ZaxDYAwDAQPxICwRtJ5Ak9AyRphw7AAVB8pBX/ty6+TJUsGY4xAiWwlsikdmzK8wK7MA6xqgQUsYAGV5SsokW3EnQN0uK8zj7ds+gYkamSvkV3pmL4BC1jAAtJH1OEeJWLMf3kAZQ4Q9oMTMAMAAAAASUVORK5CYII=",oQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG/SURBVFiF7ZjNUcJAFMf/bxMUTqYDtQJpACYdCB3QgXATOBAOftywA7UDrIDMUADaQewgNz427PMCMZjoGJePOJPfKftm9+WXZHfnbYCMQ38ZVO3IHhPb67YAPCoUWq5D/tbMVphpB1Q60waIneiTMQCWgQ+gtTWzFSLtAIJ5mhRncFlfJ05qwX2TC+qSepFsC9thaynnDWLjZB0TKnh270tetN/BBHkRPBKJGojDmDKMpu3weXS7OtgnZuJaQtjCbLaxG2R+DuaCuuSCumRecCf7oO2wpWTQ2ywg1Mv4pviQNtdOBFnKAYDGZrEp7Ep77o3vjodpcu3kEyvgLClOJC7S5sr8HMwFdcm8YOIqtjuLMtTSAgAIw3dvj173ahUh9gar3cVEESbKMEbKMEaKMKl25r1DyAFfBO3rqQ0gfjojau7JJ8Zv56C1U4sfyPwiyQV1yQV1yQV1yQV1+WeCxWJy1cLsfV6qt28ShX0IlJiHEbxHmt9VSF60sVFuuQ75lfa8DkFX4Y2ZfAn01+3x3fGw0p21AHEZFaKCGfYRBbPPUlrRswkxuePb0lPYZ7msszAHitha30exiv1+yzwfMl2JtiuFJpYAAAAASUVORK5CYII=",iQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALZSURBVFiF7ZjPUdtAFMa/pzXy+OYOEB3gAvBsKmDSgd1BuGkMMxYzjJIbSQWoA0gFaOwCIBVEdOCbwHj1OFgoHq0k7+LYycHfSfO0+95PK+2fT8Bee/1b0aYJ5EUqVQaP0DoEoQsAYMwYiycB8RiH7uPOAeVFKjNunQI8AHKoOjEnRBSTUpfxt06yVUDppx4LMWZgYFsoLxbZghoDnozmAyJcY92IrdeMMx5Ov7bvTBo7Jo36o5cxEW6wORwAdMmh2/7oZWzSeO0I9kcvYxAFG2NViTmYhO3LpiaNgCejdEAkbiwKJsus5Jl3wXAaulHd/dpXLP3UIxLXFnDBJGwfTcL2EYDvpt2IcC391LMGZCHGsPjmHNf9UVwfHDS+tpK6ea3qvFVB6aee9VIyf/WK6+dnq8nEwEBepLLqXquyQ8MT1SkD30o/HaIFZGzxabz359YpgNgMkFmCLDcZIi8T4h5si1ZUHQA409KWA3I0P84ID1apgZiYYgAgYvvPI5dD6lN81YlXY9oIKqhjgjBOSkx3k/Dg82qsf/46A/iLLaDK4JVj2iQhtA5tkjKxV14mmBe/bOHqauuzmKy3s+NMiN/98znLgL2PgBWlSe9vtBfvSgyalWM6IENrtDNV1NYAGYun3dDoqqqtAQoHyU5oKiQgNHugAebr0O5fM3NS5V9qJglFW8bRK9JyodfiVcGlKRL3a7MyJ47r9uJAn33vMj1TOkodVXmVyhGMrzoxAdFaPqKkCQ4ARKYfAMoiIKozUrUnAumnXibEA9acCVf34YrsXQNrOnOU6lkDAoWTMz/yf0DMajgNO1Hd/cadZBq6EZiDvw1ViDloggMMffFWnJ2BowOsjHs6yE3U5sadcdbk5FZlfFiYhp3IUapnMrvrREDkKNUzhcv72Kv4R7O0Bt6a5jOAIocWP8un5a0Brkr6qVTOn99vBO4yU8JYPAkHyUeg9trrf9IbEyMdVzO8mNgAAAAASUVORK5CYII=",yj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANISURBVFiF7ZhLUttAEIb/npGE2WmRAyj7LJxdKlWY4QSYEwA3CDuXTRWiKrjYQU5gcgLgBAh8APsG0RG0MwzWdBaSbJeDbNkesqJXerS6P3f3TE8b+JAPqS6N9utZo/1yZtMm2TKk2rpuCAMAYOCmf+Ed27ArbBgBgKjrDRmIAICAo52O7tmwaw0QAKTrHgAYAvYgraW4EBWyb15fHwDUgc3TbR0QsAu5EaAK2cf4uW7Y2Sewb4BgxnANwLfifl3ItQBVaxSkwrkiYgXAr/odw5z0L2rXq/hyVoVrdPSVAX4QePZxAuaEieLZhwR8AfCpuJcsolX9VQZUrVFgpLxFXlc5wA1R+htObRiFlMzqf2/rukN4KO6ZcRx1veG7AKrWKDBCPGBaY0NB6Un0czt6S38Gzi/g+l3vZlU4oOI+aKS8BVEAZMUuXHfvf8ABFSLY6OgrTNN63b/wTsp0bcMBS1ZxXnd/kHmLn7pbn5foDmzCAUtSzFJOTibCmL2Flmq1YpEktuCAZYBAE8hWa3S5HS/SjUJKRJp+Fa772RYcsKAGVWukTJ4uY/i+irFlP2IdKY2gEc5ucS23vMi246pSCkjEAQCAOZ7fhG2Kauv6ovflEcw35fn2ZVN2O7pnCING+7V0TCgFFJxFjVY4DKwq0yCwKuUo/Zo4SyvzuwESZ2UkgLhMpxSQOU8tUaBC+5AqZH/SPrm8jMpTLMaPxXWqn5sW2TKbL1pNfJmpr384Si04tSGALM0kD+2h5Y4F7eeXSXT59sEDWACYbS10AwAEKHU6UrbgVGukGDjKbd8t0l3Y6oTrnCOPojGiZ6MWVci+EWIyjlKanq8NGIWUgCmbIYiCVI83nnNTPe4ViwPM4bL2WGlo2unoBwJUZpPupOccr9pdVMh+qsc9Im4Wdvpd92DZd5VO1NJ1D8AcAwARN43WA9WqXpPqdKSM1oMCDsyx9JxKI2jlsXM+AgBATHcG43tpEM2nKtN/boLkYRF9AGAgkq57UDUDK8/FjfbLGYjCN14lAOJJ5ynqbPY90/VT1124KDYGBLLjPUt5lh9ol63sBEzXwnN+rXMq2vi/GdUaKSOcXRB8YgRFD2emWIjxY9n09yEfkstfJatv3PWhNoEAAAAASUVORK5CYII=",bj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC6SURBVFiF7djRDYIwFIXhU+MAjKAbOQIjyASOops4giPoBrjB7wOJCeHWRFNSMOd7Jb38oSGkSGZmI0ADNLU7QsCRQQ+0tXsmgDtjbe2mEeDKVFu76w3YBU/RkV9zZCmOLOWvI7cfBh4knSSV/K5Gs86AUkqXaEHKTQL6zMA5PFJK++jC5sOi50wxkeyDyG6xpE7zbHE0ryt4j98s+k12nOMc57hCWMGh6bbYOGkFB3dp+PVRu8HMluQF4pAvLRUftNIAAAAASUVORK5CYII=",aQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC7SURBVCiRlZOxEYJAEEXfxwZkxtQZQsyMHMqADrAEK6EELceQ0FBmNCO4ClgzFLzTY8O992Z/8E/8mWx3KA01YGvBUT/hvKhNdv5Y3VcLYMDwXvDDINN3pF/w/Xa9aAkMvCPFwKMQCwNoCQyQmIYmFgZIQM73EJpE2Gm+NNk5y4vaJ6xc/7ylm22HKKe5KNPNtnP9o50IAK5/tLHS2KVYaVK+GGlZ+bDKW+/gJVQE/0NAckFhJu0BJw3VC5tche+mQCWHAAAAAElFTkSuQmCC",sQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADKSURBVCiRlZO9DcJADEbfd9fQESSoEFLKjJCSEWADGIFJGAE2oaVMmTKRQpciE2AKBOIv4c6VdX5PZ8uy0ixfmuwAlsjcrirPRwbCj2fzE5CCRojVZLqou7Yp+gT3+WCyQ5rlm15B2C5G8l17KSfTRY1YvVV62vMAXdsUoZJ/JKGSf62FSPo1WJrlm/tu+PBs7X8JvT+h/GsPw2FJXEum7ZcwBFfl+agYGEAx8FMIhQEUAwM403UfCgM4UBcKAziZtkAFVMLW/070Bikai/hqOiXCAAAAAElFTkSuQmCC",lQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANeSURBVFiFxZi9TiNXFMd/505sg4PEbGeqTIqt2e0stnGVIg28AIg8QGKoo+ABRL22eABQngDyAnETRAdbp5lUS8esFPBia+5JMfiD2B5/MLb/3chnfH8655479/yFKVX0G55joi1w1kE9VTwRdQFQAkRChRDspbWt+rX/JphmHZkkuOSr23S+lsXaLUTeTbSS6i0i9cg+1SaBHQuwA6Z2D8SdCKxPGqpQzUb5Wt2X8NWAG0f/7gry8fVgL6UQgD28Olg5T4oziXDHDxXBnKUNByDgCeZs4/ihMiKuXyVf3ZZ5/AiymzbYEFUzdvlwUMkHZrBlGpU5wgHsxQnpVx/gc8r3Zo7UJ9kdVO4XJY4bwpzND6pfiv2pt3E6gCVf3aZp3Ah4iwDrSsOMzX/f3o+dEjedx/Li4QDEbTpfy50ngKJ/7zkmezOL46RXK0vwyw8Z1lzDyWWTuy86JLKbRQPgmFx5HnCn2zl+XP+G998ZTndyFFaHfSe6WYxLrFqaB9zbQvfQWHOF053c0HfE2i0AU/TvvYk//K+Ea2t4iQGRd0W/4RljMqVFwH0OlZPLZuL7jom2DJjNRcD9/PtTcgZjxHUjMLI5CqvC6XaW050cK0vzggNQz6CaCFhYjTfze8+Ju287GTI9OFDFM0jy4fzrZpY1t3scvC0Mh0wTDkBE3cT7IADa/4eDINOGa8uoJl+7T/5o8TlMhpwVHEogH44e/wRKSXHtfdhb6rb+vrMd4FThYtUNSDAq6u5LvNCwTM4IDoXQQPRpnOAkyFnAxbKXJrLOxbjh40CmBwfWturm2l8OUL1NAzJNOFRvr/03gQFQY8bO4jDIVOEAROrwfN3KRks10JFT/iDIm38sN0GULhwaRvapBj0zycZxoyKqfkorvEoq6l/99u0h9Mwk02RxFlIIslG+1n7uANZ9CRXdXwxWr+wLh+HFCXt1sHKusrgyq6j/fzNp4NTy4ejhbM7WB0D1r4N8XwUH3mYyNr8PVGeO1JGeZ+zy4aBfEv3BjeOHiqj4M2F6Vm/HDtJYBiaYSvqug4aK7o8yMCewgB/LoqRkAZtqNlpKxwLuVWyR5MqolqYx0dWYi3HBpgLsVdG/9+KZ2mwKuKi67flGVUIRgviuGX2KrHNx7S8H06zzH2eo3Ix75cQiAAAAAElFTkSuQmCC",uQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGpSURBVFiF7ZjdTcMwFIU/I97pCGYD2KDdoBs0TECZpGKCdgQ2gA3oBg0TNBscHmKrVvElPy5QpJ6XSPbxzee/aydw0S9I0krS8q85AJDkddCkNN7VKaASnR1QsS5AXboAdensgK6/q5TkgUfgLilugCfnXN2j7YpDKmiAGnjuamsFnEraK69l4ksTo0/K50bbvaS59V5nwEyAd8CHXm2S6g/gxTnXRCBgF+puY+9DjAq4CXUTYJ7EvI8xOhVG50uvDW92hHp4pzmPtahj4HrUfBsKsWI8n/Oc3S77/0BhHVQ9fPOuNZXTt3koBwO8Al4SzrmN4auANVBLmg1Zh4OAaJNb3KprSQBvBsyxv5cGTVnIGzNgG6GARWJZJDBbYNY71wQNHSGcc42kGe3U3dEmv02orkpgRgFloLxz7gFA0q4EZjTQMZSkFe2R0pTAFAEdQ4WiIphioCMoSmFOAnQqkKj/f3T8tCygOjz9mPPIUogV49U5j7WGtqGBp93WLww8AgxVCczWtmUUTmvrTl2ivXVbBONOnUB52q8Ozwl+JNCOyrivjouCPgF+eH/69chi4gAAAABJRU5ErkJggg==",cQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAASFSURBVHic7ZxPaNtWGMC/9xTVlhx7JsYGn+zAdqkLGzHJwDDmHjIIgxXanXwYzhg9LIcWQiEXQyE7BEKhPSSHUpaccloKG4wceqh78SHBZYP61MPsUyHGRfUfyZ5ivR0SpYoSO47lp2cN/U6WbOv78sunp09PDyM4IXmX8KL//WeAcRgIBIEgHlw+gogKXZC62FsuPBIqp7sBAJIPiSg0P6QQgSC7DJ2DBqjV9gdeFR8iGQMAeBv1r115g4OB+ITmh1TyLuG51LIS4+Aozjopp4EAvLxH1jCnteOsk3EsGIcxcO6pOzQEgti92lqAIB6zzsHpuAIt4gq0iCvQIq5Ai0zYESSXEdM3YnguOMnFBA9EaMZSOqQqNbXym4q2v7oj52nGAqAsMJXgww/uCEuhAErQjGNE8KCw4OHC0RA3O/NpIL2+q2wUSmqVVjyqp7Dd8syEAijx4I6wRDMGNYG5jJhmKU8nFECJXEZM0zo+tVP4RgzPGbffvSf7K8+am/8cai1aMQGOh417t4RsdAqdxj/JJU8jHrUKDE7iuHH7ye/KNm15AACFklpdedbcPJsLF6MVj5pAwYPCxm2aA7kZ8z+K5pXf7QMtYksfOAru3xZmF5LXsgAE7RXVrcfPlQPWOQE4qAIXkvyi4IGI4EHh7768RrU1uQqOEQiAiP5KPSIyy0yMOEbgXvHfbaVDqkddaO0V1S3W+eg4Zgx8/Fw5GJdxz8jYCJyOYN/NL/g4AMDLv9SyHT3jKGAu8KIJh+w3XnhX6x48+aOzZWf/OAxMBeYyYvrm53x2ggOf+b1oiJv95Qfx+su/1e1+01KsK5eZwFxGTM/P8H3bkQkOfMefEcEssVfl1hqktP6bskEp7fM52hXISC95tTopAQII+c/O4pgl9qvckB8l1hbFTfN+WtgusJe8F6/VDV3Q2o/it6nrfNb4vi7x4+vxwNY+cBB5AAArv8p/vnitnjsN52f4pV6VW2uQ0sgTHgDbKnBQeTrH+8RLq+2yyqWNbRV4FXk6qzty/qJK7PX9XpVLE2a3cpfJ07lMotXPW4WJwEHl6fSSMj/DL130vMOOx5k6tgu8qjydfhLv3xZmR5LcENgqcFh5Or0kHk+0ssE2gVbl6VwskSCrxx0W29qYUY5LqztyvtEWWgtJfpGfQCLL+UHmszHDMi7zg46ZkR5XqAlUOnBo3J6O4HM3/rRIJfgzz6SVDnHe4iKp2a0Yt9d+mvzZ/IfRYDqCffduCdmzuWhlWvGojYFvKtp+NMSd9mfRKTS3tijO9fsOzVxoHZtaBa7uyPlanc0MiZFanZRo3plQvYis7yobLCXW6qS0vkt3dhp9tSx9TzMAgHGJL46bFx2NGqUDh1KzW7Fria8tAv/PuH2gRVyBFnEFWsQVaBFXoEUwIKKyTsKxIKJiQCCxzsOxdEHCoGljvfppnOlibxnLjam3xK3CK6MBahUeCRVcfIpUZfKTggbIEQsaxwGCQGr7A68ATn65SCe1rMQ4rR0Hzv3pp3MgogICCTStKjem3hafIhUA4D9tmfZT2kg4MgAAAABJRU5ErkJggg==",Jp="/assets/template5-slide-1-TJjsFVVA.png",cg="/assets/template5-slide-2-DJ4kPT3z.png",dg="/assets/template5-slide-3-DNybFf9j.png",fg="/assets/template5-slide-4-Cxg_TPty.png",pg="/assets/template5-slide-5-CV650ry4.png",oS="/assets/template7-slide-1-CLk_px9N.png",TB="/assets/template7-slide-2-1G8DmFfM.png",_B="/assets/template7-slide-3-CnzGmsln.png",DB="/assets/template7-slide-4-CF9sxqur.png",IB="/assets/template7-slide-5-D3Atk3Z8.png",OB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADEALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",MB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADIALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",PB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADMALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",NB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADQALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",RB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADUALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",a0e=JSON.parse('[{"id":"template5-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"cover-overlay","left":0,"top":0,"width":960,"height":540,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.4)","fixedRatio":false,"opacity":1,"rotate":0},{"type":"text","id":"title-text","textType":"title","left":100,"top":150,"width":760,"height":120,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":100,"top":300,"width":760,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 24px; color: #f0f0f0;\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#f0f0f0"},{"type":"shape","id":"cover-line","left":300,"top":400,"width":360,"height":3,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":false,"opacity":0.8,"rotate":0}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#667eea","pos":0},{"color":"#764ba2","pos":100}]}}},{"id":"template5-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center","opacity":0.3},{"type":"text","id":"contents-title","textType":"title","left":100,"top":80,"width":760,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #2d3748;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"item-1","textType":"item","left":150,"top":200,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-2","textType":"item","left":510,"top":200,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-3","textType":"item","left":150,"top":280,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-4","textType":"item","left":510,"top":280,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-5","textType":"item","left":150,"top":360,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-6","textType":"item","left":510,"top":360,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"}],"background":{"type":"solid","color":"#f7fafc"}},{"id":"template5-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center","opacity":0.7},{"type":"shape","id":"transition-card","left":180,"top":120,"width":600,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.95)","fixedRatio":false,"rotate":0,"shadow":{"h":0,"v":10,"blur":30,"color":"rgba(0,0,0,0.2)"}},{"type":"text","id":"transition-title","textType":"title","left":200,"top":160,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #2d3748;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"transition-content","textType":"content","left":200,"top":260,"width":560,"height":120,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #4a5568;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#f093fb","pos":0},{"color":"#f5576c","pos":100}]}}},{"id":"template5-slide-4","type":"content","elements":[{"type":"image","id":"content-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683311-eac922347aa1?w=960&h=540&fit=crop&crop=center","opacity":0.2},{"type":"text","id":"content-title","textType":"title","left":80,"top":60,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #2d3748;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":80,"top":200,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":80,"top":240,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":320,"top":200,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":320,"top":240,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":80,"top":320,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":80,"top":360,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":320,"top":320,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":320,"top":360,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"image","id":"content-illustration","left":600,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8}],"background":{"type":"solid","color":"#ffffff"}},{"id":"template5-slide-5","type":"end","elements":[{"type":"image","id":"end-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"end-overlay","left":0,"top":0,"width":960,"height":540,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.5)","fixedRatio":false,"opacity":1,"rotate":0},{"type":"text","id":"end-title","textType":"title","left":100,"top":200,"width":760,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":100,"top":300,"width":760,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#667eea","pos":0},{"color":"#764ba2","pos":100}]}}}]'),hg=JSON.parse('[{"id":"template7-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQxIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZTc0YzNjIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZjU2NjY2Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkMSkiLz48Y2lyY2xlIGN4PSI4MDAiIGN5PSIxMDAiIHI9IjEyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iNDAwIiByPSI4MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA4KSIvPjwvc3ZnPg==","opacity":1},{"type":"shape","id":"cover-overlay","left":0,"top":200,"width":960,"height":340,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.3)","fixedRatio":true,"opacity":0.6,"rotate":0},{"type":"image","id":"cover-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iI2U3NGMzYyIgcng9IjE1Ii8+PHRleHQgeD0iNTAiIHk9IjYwIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNDAiIGZpbGw9IndoaXRlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj7wn5OIPC90ZXh0Pjwvc3ZnPg==","opacity":0.9},{"type":"text","id":"title-text","textType":"title","left":200,"top":220,"width":560,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"shape","id":"cover-decoration","left":200,"top":380,"width":560,"height":4,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":true,"opacity":0.8,"rotate":0},{"type":"image","id":"cover-decoration-icon","left":50,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ibGVmdE9ybiIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDQwIDM1IDgwIDcwIFEgNDAgMTA1IDAgMTQwIEwgMCAwIFoiIGZpbGw9InVybCgjbGVmdE9ybikiLz48Y2lyY2xlIGN4PSIyMCIgY3k9IjMwIiByPSI0IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjcwIiByPSIzIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjExMCIgcj0iNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PC9zdmc+","opacity":0.7},{"type":"image","id":"cover-decoration-icon-right","left":830,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icmlnaHRPcm4iIHgxPSIxMDAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSA4MCAwIFEgNDAgMzUgMCA3MCBRIDQwIDEwNSA4MCAxNDAgTCA4MCAwIFoiIGZpbGw9InVybCgjcmlnaHRPcm4pIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIzMCIgcj0iNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjYpIi8+PGNpcmNsZSBjeD0iMzAiIGN5PSI3MCIgcj0iMyIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PGNpcmNsZSBjeD0iNTUiIGN5PSIxMTAiIHI9IjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjwvc3ZnPg==","opacity":0.7}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#e74c3c","pos":0},{"color":"#f56666","pos":100}]}}},{"id":"template7-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZG90cyIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIj48Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMiIgZmlsbD0icmdiYSgyMzEsMTA3LDEwNywwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2RvdHMpIi8+PC9zdmc+","opacity":0.3},{"type":"shape","id":"contents-header-bg","left":0,"top":0,"width":960,"height":120,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#e74c3c","fixedRatio":true,"opacity":0.1,"rotate":0},{"type":"image","id":"contents-icon","left":80,"top":30,"width":60,"height":60,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiB4PSI1IiB5PSI1IiBmaWxsPSIjZTc0YzNjIiByeD0iOCIvPjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjE1IiB5PSIxNSIgZmlsbD0id2hpdGUiLz48cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxNSIgeT0iMjgiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjgiIGhlaWdodD0iOCIgeD0iMTUiIHk9IjQxIiBmaWxsPSJ3aGl0ZSIvPjx0ZXh0IHg9IjMzIiB5PSIyMiIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjgiIGZpbGw9IndoaXRlIj7nm67lvZU8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"contents-title","textType":"title","left":160,"top":30,"width":640,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #e74c3c;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"text","id":"item-1","textType":"item","left":90,"top":200,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-2","textType":"item","left":90,"top":250,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-3","textType":"item","left":90,"top":300,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-4","textType":"item","left":90,"top":350,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-5","textType":"item","left":90,"top":400,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-6","textType":"item","left":90,"top":450,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"image","id":"contents-decoration","left":700,"top":150,"width":200,"height":300,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQyIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMSkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDEwMCA1MCAyMDAgMCBRIDEwMCAxNTAgMCAzMDAgWiIgZmlsbD0idXJsKCNncmFkMikiLz48L3N2Zz4=","opacity":0.4,"fixedRatio":true}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template7-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InJhZGlhbCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmOGZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmNGY0Ii8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNyYWRpYWwpIi8+PC9zdmc+","opacity":1},{"type":"image","id":"transition-left-decoration","left":0,"top":100,"width":300,"height":340,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjM0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImxlZnRHcmFkIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjE1KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjA1KSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0gMCAwIEwgMjAwIDAgUSAyNTAgNTAgMzAwIDEwMCBMIDMwMCAyNDAgUSAyNTAgMjkwIDIwMCAzNDAgTCAwIDM0MCBMIDAgMCBaIiBmaWxsPSJ1cmwoI2xlZnRHcmFkKSIvPjwvc3ZnPg==","opacity":0.8},{"type":"image","id":"transition-right-decoration","left":660,"top":100,"width":300,"height":340,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjM0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InJpZ2h0R3JhZCIgeDE9IjEwMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4xNSkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDMwMCAwIEwgMTAwIDAgUSA1MCA1MCAwIDEwMCBMIDAgMjQwIFEgNTQgMjkwIDEwMCAzNDAgTCAzMDAgMzQwIEwgMzAwIDAgWiIgZmlsbD0idXJsKCNyaWdodEdyYWQpIi8+PC9zdmc+","opacity":0.8},{"type":"shape","id":"transition-center-bg","left":200,"top":150,"width":560,"height":240,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.9)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":8,"blur":25,"color":"rgba(231,76,60,0.15)"}},{"type":"image","id":"transition-icon","left":430,"top":120,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0NSIgZmlsbD0iI2U3NGMzYyIvPjxwb2x5Z29uIHBvaW50cz0iMzUsMzAgNjUsMzAgNTAsNzAiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjQiIHg9IjM1IiB5PSI3NSIgZmlsbD0id2hpdGUiIHJ4PSIyIi8+PC9zdmc+","opacity":1},{"type":"text","id":"transition-title","textType":"title","left":240,"top":240,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #e74c3c;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"text","id":"transition-content","textType":"content","left":240,"top":320,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 16px; color: #666666;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"image","id":"transition-dots","left":400,"top":450,"width":160,"height":20,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwIiBoZWlnaHQ9IjIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjIwIiBjeT0iMTAiIHI9IjQiIGZpbGw9IiNlNzRjM2MiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjEwIiByPSI0IiBmaWxsPSIjZjU2NjY2Ii8+PGNpcmNsZSBjeD0iODAiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2U3NGMzYyIvPjxjaXJjbGUgY3g9IjExMCIgY3k9IjEwIiByPSI0IiBmaWxsPSIjZjU2NjY2Ii8+PGNpcmNsZSBjeD0iMTQwIiBjeT0iMTAiIHI9IjQiIGZpbGw9IiNlNzRjM2MiLz48L3N2Zz4=","opacity":0.6}],"background":{"type":"gradient","gradient":{"type":"radial","colors":[{"color":"#fff8ff","pos":0},{"color":"#fef4f4","pos":100}]}}},{"id":"template7-slide-4","type":"content","elements":[{"type":"image","id":"content-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMDgpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"content-header-bg","left":0,"top":0,"width":960,"height":100,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#e74c3c","fixedRatio":true,"opacity":0.05,"rotate":0},{"type":"image","id":"content-title-icon","left":50,"top":30,"width":50,"height":50,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMjAiIGZpbGw9IiNlNzRjM2MiLz48dGV4dCB4PSIyNSIgeT0iMzIiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPvCfk4g8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"content-title","textType":"title","left":90,"top":30,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #e74c3c;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"image","id":"content-illustration","left":50,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"item-bg-1","left":400,"top":140,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-1","left":415,"top":155,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjE8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":450,"top":150,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":450,"top":180,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-2","left":400,"top":240,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(245,102,102,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-2","left":415,"top":255,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjI8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":450,"top":250,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":450,"top":280,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-3","left":400,"top":340,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-3","left":415,"top":355,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjM8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":450,"top":350,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":450,"top":380,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-4","left":400,"top":440,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-4","left":415,"top":455,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjQ8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":450,"top":450,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":450,"top":480,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"image","id":"content-side-decoration","left":920,"top":50,"width":40,"height":400,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ic2lkZUdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjEpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMDUpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSAwIDAgUSAyMCAxMDAgNDAgMjAwIFEgMjAgMzAwIDAgNDAwIEwgMCAwIFoiIGZpbGw9InVybCgjc2lkZUdyYWQpIi8+PC9zdmc+","opacity":0.6}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template7-slide-5","type":"end","elements":[{"type":"image","id":"end-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImVuZEdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmNTY2NjYiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2U3NGMzYyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2RjMzU0MiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBpZD0icGFydGljbGUiIHI9IjMiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4zKSIvPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2VuZEdyYWQpIi8+PHVzZSBocmVmPSIjcGFydGljbGUiIHg9IjEwMCIgeT0iNTAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMjAwIiB5PSIxMDAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMzUwIiB5PSI4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI1MDAiIHk9IjE4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI3MDAiIHk9IjEyMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4MDAiIHk9IjIwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSIxNTAiIHk9IjM1MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI0MDAiIHk9IjQwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI2MDAiIHk9IjM4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4NTAiIHk9IjQ1MCIvPjwvc3ZnPg==","opacity":1},{"type":"image","id":"end-top-decoration","left":0,"top":0,"width":960,"height":150,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjE1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InRvcERlY29yIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMikiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBMIDk2MCAwIEwgOTYwIDEwMCBRIDQ4MCA3MCA0ODAgMTIwIFEgNDgwIDEzMCAwIDE1MCBMIDAgMCBMIDAgMDAgWiIgZmlsbD0idXJsKCN0b3BEZWNvcikiLz48L3N2Zz4=","opacity":0.4},{"type":"image","id":"end-bottom-decoration","left":0,"top":390,"width":960,"height":150,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjE1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImJvdHRvbURlY29yIiB4MT0iMTAwJSIgeTE9IjEwMCUiIHgyPSIwJSIgeTI9IjAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMikiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMTUwIEwgOTYwIDUwIFEgNzAwIDIwIDQ4MCAzMCBRIDIwMCA0MCAwIDAgTCAwIDE1MCBaIiBmaWxsPSJ1cmwoI2JvdHRvbURlY29yKSIvPjwvc3ZnPg==","opacity":0.4},{"type":"shape","id":"end-main-bg","left":150,"top":120,"width":660,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.15)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":15,"blur":35,"color":"rgba(0,0,0,0.2)"}},{"type":"image","id":"end-center-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9Imljb25HcmFkIiBjeD0iNTAlIiBjeT0iNTAlIiByPSI1MCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC44KSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQ1IiBmaWxsPSJ1cmwoI2ljb25HcmFkKSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiIHN0cm9rZS13aWR0aD0iMyIvPjxwYXRoIGQ9Ik0gMzAgMzUgTCA3MCAzNSBMIDcwIDQwIEwgMzAgNDAgWiIgZmlsbD0iI2U3NGMzYyIvPjxwYXRoIGQ9Ik0gMzAgNDUgTCA2MCA0NSBMIDYwIDUwIEwgMzAgNTAgWiIgZmlsbD0iI2Y1NjY2NiIvPjxwYXRoIGQ9Ik0gMzAgNTUgTCA2NSA1NSBMIDY1IDYwIEwgMzAgNjAgWiIgZmlsbD0iI2U3NGMzYyIvPjwvc3ZnPg==","opacity":1},{"type":"text","id":"end-title","textType":"title","left":200,"top":220,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 6px rgba(0,0,0,0.3);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"image","id":"end-left-ornament","left":50,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ibGVmdE9ybiIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDQwIDM1IDgwIDcwIFEgNDAgMTA1IDAgMTQwIEwgMCAwIFoiIGZpbGw9InVybCgjbGVmdE9ybikiLz48Y2lyY2xlIGN4PSIyMCIgY3k9IjMwIiByPSI0IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjcwIiByPSIzIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjExMCIgcj0iNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PC9zdmc+","opacity":0.7},{"type":"image","id":"end-right-ornament","left":830,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icmlnaHRPcm4iIHgxPSIxMDAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSA4MCAwIFEgNDAgMzUgMCA3MCBRIDQwIDEwNSA4MCAxNDAgTCA4MCAwIFoiIGZpbGw9InVybCgjcmlnaHRPcm4pIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIzMCIgcj0iNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjYpIi8+PGNpcmNsZSBjeD0iMzAiIGN5PSI3MCIgcj0iMyIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PGNpcmNsZSBjeD0iNTUiIGN5PSIxMTAiIHI9IjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjwvc3ZnPg==","opacity":0.7},{"type":"image","id":"end-footer-decoration","left":380,"top":380,"width":200,"height":30,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjUwIiBjeT0iMTUiIHI9IjYiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC41KSIvPjxyZWN0IHdpZHRoPSI4MCIgaGVpZ2h0PSIyIiB4PSI2MCIgeT0iMTQiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIgcng9IjEiLz48Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNSIgcj0iNiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PC9zdmc+","opacity":0.6}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#f56666","pos":0},{"color":"#e74c3c","pos":50},{"color":"#dc3542","pos":100}]}}}]'),y1=JSON.parse('[{"id":"template8-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQxIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWU0MDY2Ii8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiMzMzY2OTkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0NzYzYjEiLz48L2xpbmVhckdyYWRpZW50PjxjaXJjbGUgY3g9IjgwMCIgY3k9IjEwMCIgcj0iMTIwIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iNDAwIiByPSI4MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjxwYXRoIGQ9Ik0gMCAwIEwgOTYwIDAgTCA5NjAgNTQwIEwgMCA1NDAgWiIgZmlsbD0idXJsKCNncmFkMSkiLz48L3N2Zz4=","opacity":1},{"type":"shape","id":"cover-overlay","left":0,"top":200,"width":960,"height":340,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.4)","fixedRatio":true,"opacity":0.7,"rotate":0},{"type":"image","id":"cover-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iIzMzNjY5OSIgcng9IjE1Ii8+PHRleHQgeD0iNTAiIHk9IjYwIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNDAiIGZpbGw9IndoaXRlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj7wn5OIPC90ZXh0Pjwvc3ZnPg==","opacity":0.9},{"type":"text","id":"title-text","textType":"title","left":200,"top":220,"width":560,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"shape","id":"cover-decoration","left":200,"top":380,"width":560,"height":4,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":true,"opacity":0.8,"rotate":0}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#1e4066","pos":0},{"color":"#336699","pos":50},{"color":"#4763b1","pos":100}]}}},{"id":"template8-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDUxLDEwMiwxNTMsMC4wOCkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybi8+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"contents-header-bg","left":0,"top":0,"width":960,"height":120,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#336699","fixedRatio":true,"opacity":0.1,"rotate":0},{"type":"image","id":"contents-icon","left":80,"top":30,"width":60,"height":60,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiB4PSI1IiB5PSI1IiBmaWxsPSIjMzM2Njk5IiByeD0iOCIvPjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjE1IiB5PSIxNSIgZmlsbD0id2hpdGUiLz48cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxNSIgeT0iMjgiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjgiIGhlaWdodD0iOCIgeD0iMTUiIHk9IjQxIiBmaWxsPSJ3aGl0ZSIvPjx0ZXh0IHg9IjMzIiB5PSIyMiIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjgiIGZpbGw9IndoaXRlIj7nm67lvZU8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"contents-title","textType":"title","left":160,"top":30,"width":640,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #336699;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"text","id":"item-1","textType":"item","left":90,"top":200,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-2","textType":"item","left":90,"top":250,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-3","textType":"item","left":90,"top":300,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-4","textType":"item","left":90,"top":350,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-5","textType":"item","left":90,"top":400,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-6","textType":"item","left":90,"top":450,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template8-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InJhZGlhbCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZjhmZmZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZWZmOGZmIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNyYWRpYWwpIi8+PC9zdmc+","opacity":1},{"type":"shape","id":"transition-center-bg","left":200,"top":150,"width":560,"height":240,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.9)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":8,"blur":25,"color":"rgba(51,102,153,0.15)"}},{"type":"image","id":"transition-icon","left":430,"top":120,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0NSIgZmlsbD0iIzMzNjY5OSIvPjxwb2x5Z29uIHBvaW50cz0iMzUsMzAgNjUsMzAgNTAsNzAiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjQiIHg9IjM1IiB5PSI3NSIgZmlsbD0id2hpdGUiIHJ4PSIyIi8+PC9zdmc+","opacity":1},{"type":"text","id":"transition-title","textType":"title","left":240,"top":240,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #336699;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"text","id":"transition-content","textType":"content","left":240,"top":320,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 16px; color: #666666;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"}],"background":{"type":"gradient","gradient":{"type":"radial","colors":[{"color":"#f8ffff","pos":0},{"color":"#eff8ff","pos":100}]}}},{"id":"template8-slide-4","type":"content","elements":[{"type":"image","id":"content-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDUxLDEwMiwxNTMsMC4wOCkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybi8+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"content-header-bg","left":0,"top":0,"width":960,"height":100,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#336699","fixedRatio":true,"opacity":0.05,"rotate":0},{"type":"image","id":"content-title-icon","left":50,"top":30,"width":50,"height":50,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMjAiIGZpbGw9IiMzMzY2OTkiLz48dGV4dCB4PSIyNSIgeT0iMzIiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPvCfk4g8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"content-title","textType":"title","left":90,"top":30,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #336699;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"image","id":"content-illustration","left":50,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"item-bg-1","left":400,"top":140,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-1","left":415,"top":155,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjE8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":450,"top":150,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":450,"top":180,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-2","left":400,"top":240,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(71,99,177,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-2","left":415,"top":255,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjI8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":450,"top":250,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":450,"top":280,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-3","left":400,"top":340,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-3","left":415,"top":355,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjM8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":450,"top":350,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":450,"top":380,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-4","left":400,"top":440,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-4","left":415,"top":455,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjQ8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":450,"top":450,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":450,"top":480,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template8-slide-5","type":"end","elements":[{"type":"image","id":"end-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImVuZEdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM0NzYzYjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzMzNjY5OSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzFlNDA2NiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBpZD0icGFydGljbGUiIHI9IjMiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4zKSIvPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2VuZEdyYWQpIi8+PHVzZSBocmVmPSIjcGFydGljbGUiIHg9IjEwMCIgeT0iNTAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMjAwIiB5PSIxMDAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMzUwIiB5PSI4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI1MDAiIHk9IjE4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI3MDAiIHk9IjEyMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4MDAiIHk9IjIwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSIxNTAiIHk9IjM1MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI0MDAiIHk9IjQwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI2MDAiIHk9IjM4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4NTAiIHk9IjQ1MCIvPjwvc3ZnPg==","opacity":1},{"type":"shape","id":"end-main-bg","left":150,"top":120,"width":660,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.15)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":15,"blur":35,"color":"rgba(0,0,0,0.2)"}},{"type":"image","id":"end-center-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9Imljb25HcmFkIiBjeD0iNTAlIiBjeT0iNTAlIiByPSI1MCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC44KSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQ1IiBmaWxsPSJ1cmwoI2ljb25HcmFkKSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiIHN0cm9rZS13aWR0aD0iMyIvPjxwYXRoIGQ9Ik0gMzAgMzUgTCA3MCAzNSBMIDcwIDQwIEwgMzAgNDAgWiIgZmlsbD0iIzMzNjY5OSIvPjxwYXRoIGQ9Ik0gMzAgNDUgTCA2MCA0NSBMIDYwIDUwIEwgMzAgNTAgWiIgZmlsbD0iIzQ3NjNiMSIvPjxwYXRoIGQ9Ik0gMzAgNTUgTCA2NSA1NSBMIDY1IDYwIEwgMzAgNjAgWiIgZmlsbD0iIzMzNjY5OSIvPjwvc3ZnPg==","opacity":1},{"type":"text","id":"end-title","textType":"title","left":200,"top":220,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 6px rgba(0,0,0,0.3);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#4763b1","pos":0},{"color":"#336699","pos":50},{"color":"#1e4066","pos":100}]}}}]'),dQt=[{type:"cover",data:{title:"犯罪心理学研究",text:"探索犯罪心理的成因、特征及干预策略,助力犯罪预防与矫治。"}},{type:"contents",data:{items:["犯罪心理学概述","犯罪心理的形成","犯罪类型与心理特征","犯罪心理评估与干预","犯罪心理学的应用","未来发展趋势"]}},{type:"transition",data:{title:"犯罪心理学概述",text:"本章将介绍犯罪心理学的定义、历史、基本理论及其研究领域。"}},{type:"content",data:{title:"定义与历史",items:[{title:"犯罪心理学的定义",text:"犯罪心理学是研究犯罪行为及其心理机制的学科,旨在理解犯罪者的心理特征和行为动机。"},{title:"犯罪心理学的发展历史",text:"犯罪心理学起源于19世纪末,随着心理学和法学的发展逐渐形成独立学科。"},{title:"主要研究领域",text:"包括犯罪心理成因、犯罪类型分析、犯罪心理评估与干预等。"},{title:"与其他学科的关系",text:"犯罪心理学与法学、社会学、生物学等学科密切相关,共同探讨犯罪现象。"}]}},{type:"content",data:{title:"基本理论",items:[{title:"生物学理论",text:"探讨遗传、神经生理等因素对犯罪行为的影响。"},{title:"心理学理论",text:"分析人格、认知、情感等心理因素与犯罪行为的关联。"},{title:"社会学理论",text:"研究社会环境、文化背景等对犯罪心理的塑造作用。"},{title:"综合理论",text:"结合生物学、心理学和社会学视角,全面解释犯罪心理。"}]}},{type:"transition",data:{title:"犯罪心理的形成",text:"本章将探讨个体因素、环境因素及心理过程对犯罪心理的影响。"}},{type:"content",data:{title:"个体因素",items:[{title:"遗传因素",text:"研究基因与犯罪行为之间的潜在联系。"},{title:"心理特质",text:"探讨人格特质如攻击性、冲动性与犯罪的关系。"},{title:"人格障碍",text:"分析反社会人格障碍等心理疾病对犯罪行为的推动作用。"},{title:"早期经历",text:"研究童年创伤、家庭暴力等对犯罪心理的长期影响。"}]}},{type:"content",data:{title:"环境因素",items:[{title:"家庭环境",text:"探讨家庭结构、教育方式对犯罪心理的塑造作用。"},{title:"社会环境影响",text:"分析同伴压力、社区环境对犯罪行为的诱导作用。"},{title:"经济因素",text:"研究贫困、失业等经济问题与犯罪率的关系。"},{title:"文化背景",text:"探讨文化价值观对犯罪心理的影响。"}]}},{type:"content",data:{title:"心理过程",items:[{title:"认知过程",text:"分析犯罪者的思维方式、决策模式及其对行为的影响。"},{title:"情感过程",text:"探讨情绪调节、情感缺失与犯罪行为的关系。"},{title:"行为动机",text:"研究犯罪者的内在动机,如利益驱动、报复心理等。"},{title:"决策机制",text:"分析犯罪者在实施犯罪前的决策过程及其心理机制。"}]}},{type:"transition",data:{title:"犯罪类型与心理特征",text:"本章将分析暴力犯罪、财产犯罪及网络犯罪的心理特征。"}},{type:"content",data:{title:"暴力犯罪",items:[{title:"谋杀心理特征",text:"探讨谋杀者的心理动机,如情感冲突、利益争夺等。"},{title:"抢劫心理特征",text:"分析抢劫者的冒险心理及对暴力的依赖。"},{title:"性犯罪心理特征",text:"研究性犯罪者的心理扭曲及行为模式。"},{title:"家庭暴力心理特征",text:"探讨家庭暴力施暴者的控制欲及情感缺陷。"}]}},{type:"content",data:{title:"财产犯罪",items:[{title:"盗窃心理特征",text:"分析盗窃者的侥幸心理及对物质的渴望。"},{title:"诈骗心理特征",text:"探讨诈骗者的欺骗技巧及心理操纵能力。"},{title:"贪污心理特征",text:"研究贪污者的权力欲望及道德沦丧。"},{title:"洗钱心理特征",text:"分析洗钱者的风险规避心理及法律规避策略。"}]}},{type:"content",data:{title:"网络犯罪",items:[{title:"黑客心理特征",text:"探讨黑客的技术崇拜及对权威的挑战心理。"},{title:"网络诈骗心理特征",text:"分析网络诈骗者的伪装能力及心理操纵技巧。"},{title:"网络暴力心理特征",text:"研究网络暴力施暴者的匿名心理及攻击性。"},{title:"网络成瘾与犯罪",text:"探讨网络成瘾者对虚拟世界的依赖及其与犯罪行为的关联。"}]}},{type:"transition",data:{title:"犯罪心理评估与干预",text:"本章将介绍犯罪心理评估方法及干预策略,探讨预防措施。"}},{type:"content",data:{title:"评估方法",items:[{title:"心理测试",text:"通过标准化测试评估犯罪者的心理状态及人格特征。"},{title:"行为观察",text:"观察犯罪者的日常行为,分析其行为模式及心理动机。"},{title:"访谈技巧",text:"通过深度访谈了解犯罪者的心理历程及犯罪动机。"},{title:"案例分析",text:"通过典型案例分析犯罪者的心理特征及行为规律。"}]}},{type:"content",data:{title:"干预策略",items:[{title:"心理治疗",text:"通过心理咨询和治疗帮助犯罪者纠正心理问题。"},{title:"行为矫正",text:"通过行为训练帮助犯罪者改变不良行为模式。"},{title:"社会支持",text:"提供社会资源支持,帮助犯罪者重新融入社会。"},{title:"法律干预",text:"通过法律手段对犯罪行为进行约束和惩罚。"}]}},{type:"content",data:{title:"预防措施",items:[{title:"早期干预",text:"通过早期心理干预预防潜在犯罪者的行为问题。"},{title:"教育预防",text:"通过教育提升公众的法律意识及心理健康水平。"},{title:"社区预防",text:"通过社区活动增强社会凝聚力,减少犯罪诱因。"},{title:"政策预防",text:"通过政策制定减少社会不平等,降低犯罪率。"}]}},{type:"transition",data:{title:"犯罪心理学的应用",text:"本章将探讨犯罪心理学在刑事司法、犯罪预防及研究教育中的应用。"}},{type:"content",data:{title:"刑事司法系统",items:[{title:"犯罪心理画像",text:"通过心理分析描绘犯罪者的特征,协助案件侦破。"},{title:"审讯技巧",text:"运用心理学方法提高审讯效率,获取真实供述。"},{title:"证人心理学",text:"研究证人的心理状态及其对证词可信度的影响。"},{title:"陪审团决策",text:"分析陪审员的心理过程及其对判决结果的影响。"}]}},{type:"content",data:{title:"犯罪预防与矫治",items:[{title:"犯罪预防策略",text:"通过心理干预和社会支持预防犯罪行为的发生。"},{title:"监狱心理矫治",text:"通过心理治疗帮助服刑人员纠正心理问题,降低再犯率。"},{title:"社区矫正",text:"通过社区支持帮助犯罪者重新融入社会,减少再犯风险。"},{title:"再犯预防",text:"通过心理评估和干预降低犯罪者的再犯可能性。"}]}},{type:"content",data:{title:"研究与教育",items:[{title:"犯罪心理学研究",text:"通过科学研究深化对犯罪心理的理解,推动学科发展。"},{title:"犯罪心理学教育",text:"通过教育培养专业人才,提升犯罪心理学的应用水平。"},{title:"专业培训",text:"通过培训提升司法人员的心理学知识和技能。"},{title:"学术交流",text:"通过学术交流促进犯罪心理学领域的国际合作与发展。"}]}},{type:"transition",data:{title:"未来发展趋势",text:"本章将探讨犯罪心理学在技术应用、跨学科合作及伦理挑战方面的未来发展方向。"}},{type:"content",data:{title:"技术应用",items:[{title:"人工智能与犯罪心理学",text:"利用人工智能技术分析犯罪数据,提升犯罪预测能力。"},{title:"大数据分析",text:"通过大数据技术挖掘犯罪行为的规律及心理特征。"},{title:"虚拟现实技术",text:"利用虚拟现实技术模拟犯罪场景,研究犯罪者的心理反应。"},{title:"神经科学研究",text:"通过神经科学研究探索犯罪行为的生物学基础。"}]}},{type:"content",data:{title:"跨学科合作",items:[{title:"心理学与法律",text:"加强心理学与法学的合作,提升司法系统的科学性。"},{title:"心理学与医学",text:"通过心理学与医学的结合,深化对犯罪心理的理解。"},{title:"心理学与社会学",text:"通过心理学与社会学的交叉研究,全面分析犯罪现象。"},{title:"心理学与信息技术",text:"结合心理学与信息技术,开发犯罪预防与干预的新工具。"}]}},{type:"content",data:{title:"伦理与挑战",items:[{title:"伦理问题",text:"探讨犯罪心理学研究中的伦理困境及解决方案。"},{title:"隐私保护",text:"研究犯罪心理学应用中如何保护个人隐私。"},{title:"数据安全",text:"分析犯罪心理学数据的安全风险及防护措施。"},{title:"未来挑战",text:"探讨犯罪心理学在未来发展中可能面临的技术与社会挑战。"}]}},{type:"end"}],E3={default:{name:"通用风格",colors:{primary:"#2d3748",secondary:"#4a5568",accent:"#FF6B6B",text:"#4a5568",textLight:"#4a5568",background:"#F8F9FA",overlay:"rgba(0,0,0,0.4)",title:"#2d3748",subtitle:"#4a5568"},gradients:{cover:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",content:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"}},redElegant:{name:"红色低调",colors:{primary:"#C62828",secondary:"#D32F2F",accent:"#FF5722",text:"#2C1810",textLight:"#5D4037",background:"#FFF3E0",overlay:"rgba(198,40,40,0.3)",title:"#ffffff",subtitle:"#FFEBEE"},gradients:{cover:"linear-gradient(135deg, #C62828 0%, #8D1B1B 100%)",content:"linear-gradient(135deg, #FFCDD2 0%, #FF8A80 100%)"}},blueTech:{name:"蓝色科技",colors:{primary:"#1976D2",secondary:"#2196F3",accent:"#00BCD4",text:"#0D47A1",textLight:"#1565C0",background:"#E3F2FD",overlay:"rgba(25,118,210,0.3)",title:"#ffffff",subtitle:"#E1F5FE"},gradients:{cover:"linear-gradient(135deg, #1976D2 0%, #0D47A1 100%)",content:"linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%)"}}},BB={cover:{id:"dynamic-cover",type:"cover",elements:[{type:"image",id:"cover-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center",opacity:.8},{type:"shape",id:"cover-overlay",left:0,top:0,width:960,height:540,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(0,0,0,0.4)",fixedRatio:!1,opacity:1,rotate:0},{type:"text",id:"title-text",textType:"title",left:100,top:150,width:760,height:120,lineHeight:1.2,content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">标题占位符</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#ffffff"},{type:"text",id:"subtitle-text",textType:"content",left:100,top:300,width:760,height:80,content:'<p style="text-align: center;"><span style="font-size: 24px; color: #f0f0f0;">副标题占位符</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#f0f0f0"},{type:"shape",id:"cover-line",left:300,top:400,width:360,height:10,viewBox:[200,10],path:"M 0 0 L 200 0 L 200 10 L 0 10 Z",fill:"#ffffff",fixedRatio:!1,opacity:.8,rotate:0}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#667eea",pos:0},{color:"#764ba2",pos:100}]}}},transition:{id:"dynamic-transition",type:"transition",elements:[{type:"image",id:"transition-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center",opacity:.7},{type:"shape",id:"transition-card",left:180,top:120,width:600,height:300,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(255,255,255,0.95)",fixedRatio:!1,rotate:0,shadow:{h:0,v:10,blur:30,color:"rgba(0,0,0,0.2)"}},{type:"text",id:"transition-title",textType:"title",left:200,top:160,width:560,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 32px; color: #2d3748;">章节标题</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:"transition-content",textType:"content",left:200,top:260,width:560,height:120,content:'<p style="text-align: center;"><span style="font-size: 18px; color: #4a5568;">章节介绍内容</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#f093fb",pos:0},{color:"#f5576c",pos:100}]}}},end:{id:"dynamic-end",type:"end",elements:[{type:"image",id:"end-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center",opacity:.8},{type:"shape",id:"end-overlay",left:0,top:0,width:960,height:540,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(0,0,0,0.5)",fixedRatio:!1,opacity:1,rotate:0},{type:"text",id:"end-title",textType:"title",left:100,top:200,width:760,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">谢谢聆听</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#ffffff"},{type:"text",id:"end-subtitle",textType:"content",left:100,top:300,width:760,height:60,content:'<p style="text-align: center;"><span style="font-size: 20px; color: rgba(255,255,255,0.9);">感谢您的时间与关注</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"rgba(255,255,255,0.9)"}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#667eea",pos:0},{color:"#764ba2",pos:100}]}}}};function fQt(e){const t={id:`dynamic-contents-${e}`,type:"contents",elements:[{type:"image",id:"contents-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center",opacity:.3},{type:"text",id:"contents-title",textType:"title",left:100,top:80,width:760,height:80,lineHeight:1.2,content:'<p style="text-align: center;"><strong><span style="font-size: 36px; color: #2d3748;">目录</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"}],background:{type:"solid",color:"#f7fafc"}};if(e<=3)for(let n=0;n<e;n++)t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:150,top:200+n*80,width:660,height:40,content:`<p style="text-align: center;"><span style="font-size: 20px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"});else if(e<=6)for(let n=0;n<e;n++){const r=Math.floor(n/2),o=n%2;t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:150+o*360,top:200+r*80,width:300,height:40,content:`<p style="text-align: center;"><span style="font-size: 20px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}else for(let n=0;n<e;n++){const r=Math.floor(n/3),o=n%3;t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:100+o*250,top:200+r*60,width:200,height:40,content:`<p style="text-align: center;"><span style="font-size: 18px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}return t}function s0e(e){const t={id:`dynamic-content-${e}`,type:"content",elements:[{type:"image",id:"content-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683311-eac922347aa1?w=960&h=540&fit=crop&crop=center",opacity:.2},{type:"text",id:"content-title",textType:"title",left:80,top:60,width:500,height:60,content:'<p style="text-align: center;"><strong><span style="font-size: 32px; color: #2d3748;">内容页标题</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"}],background:{type:"solid",color:"#ffffff"}};if(e===2){for(let n=0;n<e;n++)t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:60+n*260,top:200,width:240,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:60+n*260,top:240,width:240,height:120,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"});t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else if(e===3){for(let n=0;n<e;n++){let r,o;n<2?(r=60+n*260,o=180):(r=160,o=360),t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:r,top:o,width:240,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:r,top:o+40,width:240,height:100,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else if(e===4){for(let n=0;n<e;n++){const r=Math.floor(n/2),o=n%2;t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:80+o*240,top:200+r*120,width:220,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:80+o*240,top:240+r*120,width:220,height:60,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else for(let n=0;n<e;n++){const r=Math.floor(n/3),o=n%3;t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:80+o*250,top:200+r*100,width:200,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 18px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:80+o*250,top:240+r*100,width:200,height:50,content:'<p style="text-align: left;"><span style="font-size: 14px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}return t}function b1(e,t){const n=E3[t]||E3.default,r=JSON.parse(JSON.stringify(e));return r.elements&&r.elements.forEach(o=>{o.type==="shape"&&o.fill&&(o.id==="cover-overlay"?o.fill=n.colors.overlay:o.id==="content-bg"&&(o.fill=n.colors.background)),o.type==="text"&&(o.textType==="title"?o.defaultColor=n.colors.title:o.textType==="content"?o.defaultColor=n.colors.subtitle:o.textType==="itemTitle"?o.defaultColor=n.colors.primary:o.textType==="itemContent"&&(o.defaultColor=n.colors.text),(o.id==="transition-title"||o.id==="transition-content")&&(t==="redElegant"?o.defaultColor="#2C1810":t==="blueTech"?o.defaultColor="#0D47A1":o.defaultColor="#1a202c")),o.type==="image"&&(o.id==="cover-bg"||o.id==="transition-bg"||o.id==="end-bg")&&(t==="redElegant"?o.src="https://images.unsplash.com/photo-1586953208448-b95a79798f07?w=960&h=540&fit=crop&crop=center":t==="blueTech"&&(o.src="https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=960&h=540&fit=crop&crop=center"))}),r}function pQt(e,t,n="default"){const r=[];r.push(b1(BB.cover,n));const o=e.length;return r.push(b1(fQt(o),n)),e.forEach((i,a)=>{r.push(b1(BB.transition,n)),i.sections&&i.sections.length>0?i.sections.forEach((s,l)=>{const u=s.subsections?s.subsections.length:1;r.push(b1(s0e(Math.min(u,6)),n))}):r.push(b1(s0e(2),n))}),r.push(b1(BB.end,n)),r}function Eke(e){const t=[],n=[];if(!e||e.length===0)return t.push("大纲数据不能为空"),{isValid:!1,errors:t,warnings:n};const r=e.length;return r<2?t.push("至少需要2个章节"):r>6&&n.push("章节数量超过6个,建议合并部分章节"),e.forEach((o,i)=>{const a=o.sections?o.sections.length:0;a<2?n.push(`第${i+1}章的小节数量少于2个,建议增加内容`):a>4&&n.push(`第${i+1}章的小节数量超过4个,建议合并部分小节`)}),{isValid:t.length===0,errors:t,warnings:n}}function hQt(){return Object.keys(E3).map(e=>({id:e,name:E3[e].name,colors:E3[e].colors}))}function kke(e){if(!e||!Array.isArray(e))throw new Error("大纲数据格式不正确");return e.map((n,r)=>{const o=n.title||n.name||`第${r+1}章`;let i=[];return n.sections&&Array.isArray(n.sections)?i=n.sections.map((a,s)=>{const l=a.title||a.name||`第${s+1}节`;let u=[];return a.subsections&&Array.isArray(a.subsections)?u=a.subsections.map((d,c)=>({title:d.title||d.name||`第${c+1}点`,content:d.content||d.text||""})):u=[{title:"概述",content:""},{title:"详细内容",content:""}],{title:l,content:a.content||a.text||"",subsections:u}}):i=[{title:"主要内容",content:"",subsections:[{title:"概述",content:""},{title:"详细内容",content:""}]}],{title:o,content:n.content||n.text||"",sections:i}})}function Tke(e){const t={chapterCount:e.length,totalSections:0,totalSubsections:0,avgSectionsPerChapter:0,avgSubsectionsPerSection:0,complexity:"simple",recommendations:[]};return e.forEach((n,r)=>{const o=n.sections?n.sections.length:0;t.totalSections+=o,n.sections&&n.sections.forEach(i=>{const a=i.subsections?i.subsections.length:0;t.totalSubsections+=a})}),t.avgSectionsPerChapter=t.totalSections/t.chapterCount,t.avgSubsectionsPerSection=t.totalSections>0?t.totalSubsections/t.totalSections:0,t.chapterCount<=3&&t.avgSectionsPerChapter<=2?t.complexity="simple":t.chapterCount<=5&&t.avgSectionsPerChapter<=3?t.complexity="medium":t.complexity="complex",t.chapterCount<2&&t.recommendations.push("建议增加至少2个章节"),t.chapterCount>6&&t.recommendations.push("章节数量较多,建议合并相关章节"),t.avgSectionsPerChapter<2&&t.recommendations.push("建议为每个章节增加更多小节"),t.avgSectionsPerChapter>4&&t.recommendations.push("小节数量较多,建议合并相关内容"),t}function _ke(e){const t={templateType:"dynamic",layout:{contents:"vertical",content:"vertical"},maxItemsPerSlide:4,imagePosition:"right",fontSize:"medium"};switch(e.complexity){case"simple":t.layout.contents="vertical",t.layout.content="vertical",t.maxItemsPerSlide=3,t.imagePosition="right",t.fontSize="large";break;case"medium":t.layout.contents="grid-2",t.layout.content="grid-2",t.maxItemsPerSlide=4,t.imagePosition="right",t.fontSize="medium";break;case"complex":t.layout.contents="grid-3",t.layout.content="grid-3",t.maxItemsPerSlide=6,t.imagePosition="center",t.fontSize="small";break}return e.chapterCount<=3?t.layout.contents="vertical":e.chapterCount<=6?t.layout.contents="grid-2":t.layout.contents="grid-3",t}function gQt(e,t,n){const r=[];r.push({type:"cover",data:{title:t,text:"基于大纲自动生成的演示文稿"}});const o=e.map(i=>i.title);return r.push({type:"contents",data:{title:"目录",items:o}}),e.forEach((i,a)=>{r.push({type:"transition",data:{title:i.title,text:i.content||`本章将介绍${i.title}的相关内容`}}),i.sections&&i.sections.length>0?i.sections.forEach((s,l)=>{const u=[];for(s.subsections&&s.subsections.length>0?s.subsections.forEach((d,c)=>{c<n.maxItemsPerSlide&&u.push({title:d.title,text:d.content||""})}):u.push({title:s.title,text:s.content||""});u.length<2;)u.push({title:"",text:""});r.push({type:"content",data:{title:s.title,items:u.slice(0,n.maxItemsPerSlide)}})}):r.push({type:"content",data:{title:i.title,items:[{title:"概述",text:""},{title:"详细内容",text:""}]}})}),r.push({type:"end",data:{title:"谢谢聆听",text:"感谢您的时间与关注"}}),r}function vQt(e,t,n="default"){try{const r=kke(e);console.log("大纲数据标准化完成:",r);const o=Eke(r);if(!o.isValid)throw new Error(`大纲数据验证失败: ${o.errors.join(", ")}`);o.warnings.length>0&&console.warn("大纲数据警告:",o.warnings);const i=Tke(r);console.log("大纲结构分析完成:",i);const a=_ke(i);console.log("模板配置选择完成:",a);const s=gQt(r,t,a);console.log("PPT幻灯片生成完成:",s);const l=pQt(r,t,n);return console.log("动态模板生成完成:",l),{success:!0,data:{normalizedOutline:r,analysis:i,config:a,slides:s,template:l},warnings:o.warnings,recommendations:i.recommendations}}catch(r){return console.error("大纲匹配和PPT生成失败:",r),{success:!1,error:r.message,data:null}}}function l0e(e,t){try{const n=kke(e),r=Eke(n),o=Tke(n),i=_ke(o);return{success:!0,preview:{chapterCount:o.chapterCount,totalSections:o.totalSections,complexity:o.complexity,estimatedSlides:2+o.chapterCount*(1+o.avgSectionsPerChapter)+1,recommendedLayout:i.layout,validation:r,recommendations:o.recommendations}}}catch(n){return{success:!1,error:n.message}}}const mQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAS5SURBVHic7Z3NbxNHGId/7+wGRbAojlJqtyrFK/8Bdq/4AhLylcbczRGRC5Uick1yJYpULkgcsTgTevUFLnB2/gB3nahCprTNVjESDbv79kBs+TPrz90ZMs8pu96dffNo3pnZGWdCGBF2nASAHAzjNgM5MKdBlACQGLUMSXHBXAeRy0A98P1nC7b9etSbKewCdpwETPMBM/8C9WWNisvAS+H722Tb9bMuHCrwnIrrg5m3jGvXtod9PlAgO06aTXMPzLn5haYQRFXyvNVBtbFPIDtOmoV4BaJ0BKGpA3OdguBmr8QugVpeCAMkiq7PTXNPyzsDojSb5t7piARAh0D/4GBTt3kjwJyDaT5oHRJwmrqG4cQXlXK45Ps22bYrACAwjM24I1KMRKsWEgAEh4dHOMdjvQlxyfdt8dlxbkDLm4QEgJwQhnE37kiUxTBuCwLSccehKgzkBJh1+k4Kc1rogfMUECUEdAcyDQkRfo3mLLTAKdECp8SM6kFeo4E/d3ZwUqshaDanKstMJrF05w6WisUZRTc5FBwe8rwfclKr4Y9792Ze7uVCAVc2NmZe7jhEksJ/PXkyl3KPKxV8ePRoLmWPSiQpfFKrtX8WloULmczY9w9L++NKBQBiq4mRCOz85S9kMvh+d3es+9+tr+PT/n77eLlUwlG53D6OU6KSvfByqYTlUqnrXFzprKRAQB6JygoE5JCotEBguMTONnKeKC8QGCzx45s3kTw7sjeRWfL7rVuh13QOnebJV1ED40QJgQvJZNwhDEWJFF5ZW4OwLPwXkpazmKgYFyUECsvCytpa6HW9byxRoEQKy4wWOCXSpLDXaLQnBXoxk0ksZrNYSKUijiocaQT+Uy6jOURgi6ViEculEoRlRRRVOEql8L8vXuDvOU3OToq0Ai/m87AKBSxms13njysVeI1GTFH1I00K97Jy/367zTsql7smBz6+fSvFghIgcQ3s5GI+33UsUw1UQqBMwnqRNoU/7e/De/8eQbPZ13GYEg1npBX4YWdn4HlhWbhcKEQczXCkFTgIM5nElY0NqcaB0go0O6awzFQKl/J5XLp+Xar0BSQW+N3urpSvbr0o0QvLjBY4JdIINCTqGMZBmjZwqVhs965mMqlE+wdIJNBMpfrWdlVAmhRWFS1wSiJJYWFZ7eXGk1oN79bX5/Kc3i9yRkEkAi9kMu3lxqDZjGTpcdxvwU5KJCn87cOHUTymi29GWEeeBZEINFMp/PD0KRaz2bmmlrAsLGaz+PH588hqYCR/5vA1o3vhKdECp0QLnBIBwI07CIVxBZi1wElhrgsQ1eOOQ1mIXEFANe44VIWBuoDv/xZ3IKoS+P4zgS81ULeD4+Mu2PZrQbbtEtGvcUejGgy8BFrjQM97DF0Lx0L4/jZwKlDXwvFg5q3WNqDtPVTZcRJsmq/0LpYhEFXF1as/tQ7br3Jk2y553iqY67EEpgLMdfK81c5TehvkURmyDXLfZALZdp2C4CaI9AC7BVF1kDwgZC99/+Bgk4i25hWXAnzpXD3vMdn2wFHKKP+MIB0YxiYBP+P87PQWKq5FqMBOPjvODWEYdwlIgzlx2k6qLtUFswuiOgHV01fbapi4Fv8DnfCjpKjzyVIAAAAASUVORK5CYII=",yQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbqSURBVHic7Z1PaBNZHMe/b2yCTVJIMbSGbaVZCUFQaLIXoRiUurBrwa4X7U2xRwv14lJYoRZckPXSQj1G1tNqL9qCXaEtSkvAPWxSaEHDqAlp2bglkoE2aTcpeXtIZzZ/Jpn8m5lkO5/TJPP65uWb3/v9fu9PXgnKJEiD5v39o70MQwZpmvaCoAegZoCYy62jMaEcoQhREA4EIZraf2Jv7X5T7l8TqQJBGjSn00dHKaW3m1+scqEcQF6kUpg41WoNlSpZVMDDKVwhhOLeSZ11ouh9sTff7UZ69HrynFLaK1/TmgdCyGoySa+IWWOBgO92Iz06HV4D6FGgbc1EKJXChXwRcwTUxJOkQEQm+65eT55DE68UPXo9eR6kQSEmCAJ+TEXGNZ8nDaW0N50+Osq/JoDQdYPqNavZoNyRI//YbMTGMQCg02Fc7SY1F8TMWyEBgA/7f8UOc65XHRkrZNjdjfOaeNVAMkNbomu5rnZTmhWGIYMMqJa2VAtN016GgGrdt1oIehhKNAusHmpmtABSC8TMSBfSKIUmYI1oAtZIi5IPi8Sj8KzNgY2FwXIbNdVl0hlgb+/GgK0Pl77uq1MLK4d82I9QJR7ExsIYW3mESDxa97qdHQ48ODeCNr2h7nVLoUgXZmNh3Fp6KIt4AODfCmBsZVqWuqVQpAvf/+MxdlIJAIDVaMHw6cs4brTUVOdOKoHlTT/mg14AGRHnP3kV786yC+jbCoCNZfyd1WjBdP8dWGsUj8fd5YSz04Gf3z4GAHjW5xQXUPYuPP/JK1z/dPZm3cTjGbD14ZItI1okHhW+LKWQXUDf1nsAgN3cDVeHQ5Zn8AICkM3PFkN2AXeSuwAAe/sJ2Z5hNR0TrtlYWLbniCG7D+SDRzYvg17MvF/Atsg9MdxdLtx2DRW9n+0WTAqnMoom0jzzn7wVJdIzgQVcc1ws6T9HXUOIxL/kdGclUEVAq9ECPwJllzfpDDDpSlvWNce3tTarKlQRcNQ1BGcFAcXV6Sg5ymBjYdx/+xgstwFnhwO3XUOy+txsVBGwTW/AQJ3yNX6Uw/ta/1YAt5Ye4sn343VPmcRo6tmY7WQCYyuPCgLVTiqBERmHjtk0tYBjK9OCSFajBQ/OjQhWx8/8yE3TCjjpewr/ViYQmXQGTPffgbvLien+O0LA4e/LiSo+kI2FMel7WnZ5d5czJ8q+DHoxE1gQXluNxwTLsxotcHU6sLzpV6QLqyKgZ32uIuvwbwVwydaHNr0BbCyMqT9zxWe5DXjW5jB85jK2kwlhPCyV+tQDVQSs9IPx5fODhtVoEazMsz4Lk741x/LcXc46tloc1fJAe3s3dpLlD+Xa9AbcWvolJ2j8+t04ZgKL8KzPAgCmstyCSWfA8JnL9W98HqrlgZWOHMSCRps+IxLLhbG86c8pP/rNkJYH8uQHjXxxruZ9GcOnBzGg0Ji44QXMDxr54mwnE8KMNJBZYFKi6/I0tID5QUNMHLFkWklUywOfBRYL3re3d+f4RilxivlFJVEtD8x3+gCAIIR8T0ocKb+oFKp04e0i6Quf70mJI+UXlUQVC7x79iaeBRYL8kB3lxOf41HJoCHmFz1rc1je9OGBe0RRS1RtRlpsjWM7mcCNVxMVB43tZEJIpuc/eTF8ZlDmT/AfDRWFZwILVQUNsYUrpWgoAfnA0shBI5+GEpBf5nR3ORs2aOQju4C1TimVk0yriexBxGo8BpZLVLRjYCeVQCQexU5yF5O+3yRHGpH4F+G61l1flSK7gPb2E2C5DbDcBiLxaEm/9flAiOVNf0GiXWqk4VmbFa5dnfLsvymG7F04e1JzZOlh0SRaimJB42XQK0RmZ4dD8cAiuwXyASESjyISj+LGqwlcdVyE3Vy48G03d4tu+XB/5YTVYIHv79xlgPmgV9hgCUCVwKLIHulIPIrrv0/Imq85Oxx41P+jbPUXQ5E0xmq04O7Zm7It8vCbzNVAsV36QMYSnwUWsbzpEwJGtRy6nzn8X2mokUgzoglYI5qANcJkjnrTqA7KMQDRBKwSQhFiQBFSuyHNCgXhGMKQVbUb0rQQhJh0ms5Kl9QQg6b2nzAtLXurWiCpBsrZW7vfMDZi4wghk2o3p/kgL4CDPJBh9qY0K6yMVAoTwIGAmhVWBqG4xx8DKpyhmjn2uPW1doplaQghqyePHBem2YWhnI3YuGSSXgG0vLAEoQONBLRjkMtH9BjkgsmEU63WUCqFC4RoCTYPIWRVTDxA4iz9j6nIOCW4J1fDGh/KEUImGWZvykZsolmK5D8jOOjS4wD94fCc9CYtHI+kgNmwuxvnia7lOih6CKg5c/Zgs4tKOYBwoAgRhqym03S2pWVvVUo4nn8BgWoljtHNmkoAAAAASUVORK5CYII=",bQt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXxSURBVHic7ZwxbNtGFIb/dyRtqXICcYkgTxKBDHYhwa2XGlkSRKMBJ0MnNwgyJJ2KdOwSOEGXIEObomOnIMgWIPHuIB0aOEsCw0blwaikyYIyVERj1bJE6TpIpGVbNiWRR4oNv8UQRd89/Xrv3uM74QgDUqzyuFHHHGQsgfM5zpEiQhxAfNAxxhQdQAmATuClZqv9ZCap/D7oP5PdDcUqjxsG7oLz7xF8sQZFJ/CXzRZ7MJOk0lk3nirgJyrcSTi/fzEhPTjt7b4Cbpd5Spb4CwBzwgwLFhtGi67388YTAm6XeUpi/DURUl5YFhQ4R6nVpivHRTwiYCje2fQTkfXeIEv8RSje6RAhJUv8RbHKrZxgCbhTaa0gXPMGYc4wcNd8QYCVNIr+2RQ4dFmhdFolnQGAIrVX/LYoYMRNLyQA2PnQruJTrvVGQ5cVSrPtcvMyQvFGIW7UMccUid3025LAImOJcVDKZzOCC+dzDGH4jgznSDEgLJxHhQjx0AOdEWf294ScRSigQ0IBHSJ7NdHePsfbfAOVakvYHNq0jExawVTUdqfCNTwRsFA28OPTj6hU28LnSqgMD2+fR0KVhM8FeBTCXokHAJVqGz89r3kyF+CBB24WmpZ4uS8nsfD5BGIRMSG2+qaO9XwDW4UmCrsGtGnxASZ8hkL5cM1bzkWFhtZUhLCeb1jzeiGg8BCu7R+Gruh1KeZh8jAJyxiHhAI6RMgisbfPUat3Qnevzq3rg9aAXpUgbuC6gM/W/sWzV/t937v1SB94nOWrUSznPnPLLGG4GsKFXeNU8Ybl2at9bBaarowlElc9cLNouDkc1t4f4INNAZ7RZF9D3lUBe0sWN1h7d4C1dwe29z28fR5ZTXF17kEJs7BDPOvGjEJGU5BNn21iRlN88z5gzAXMpuWxz8TCQzihMiRUduJab0MhFqET14KCcA/89bs4pqKErx/8jVqdY2F2AvdunMNmoYkffvsHAPDtYgy5+Un8+PSj1QwAOlnYrpRJqBLuLMY8baL2IlzAt/kGcvOTyGoK1vMNLMxOAAC0pIxYhFCrc2S0jhmF8tEyqFJt2/YRt4oGspqC3PykmA9gg/AQNj0o013oTbGmogRtWu6GuITCrjFS0zUWIWtMPxA+sxmS2bQMLSkhoUqWJy7MTqCw2/G6fkV4EB7nhAtYq3OrO2yWGy//2EcmrWBhVsFUN3Gs/2lfMI8jnvj+ZrEj4J3FGIDOumWujYl5ybp2nL06t+3gxCLMtwQCeCTger6Ba5ciAA7XxL/KBnKYPHLtOKtv6lh9Uz9z7ITKcO+bc5607/vhyaxbhSZuPaoC6PQKgY44b7vro3ltFCrVNip6G9q0cztHwbOvrV+Gtcu6WlKCljzbxITKrNLID8b6UW5hdmLss3DYjXGIqwLGou5+H26PJwJXLdSS7naG3R5PBK4KmNUUq1xxyvLVqK99vkFxPYncWYxh6VLEyrBr7w6w9r7zlPHw9vmBxtCSsq/F8TAIycIJVbI2erZ6iuQgeNSwjP8qPeaEAjpEuIC9pYiTR7ZBqPWM79UvtYQ/ifTuh/z8fA9LLmXp49Tq/Mgeslf7K8IFzKQVJFSGSrWN9XzjyJ6HKBIq8yxhCQ/hqSjh3o1zJ3bmRGH+yNwraOdDW+zC1KVSbWGrYAj9wVBWU/DV7ISnNaRnAv5fCcsYh4QCOiQU0CEMnfPzQkZDZ5yHAjqgxIhQ8tuKAKMzEG34bUVQIfASg4FVvw0JKs1W+wkVqzxuNHkR4eETw6JfvMBUllZJB9Fjv60JGgT+svMX3QNnQy8cCqNF6ZkklRgAhF44JJzfN48BtdoWXS98jfAUSzs2Ll5gX5gvrEe5tEq60aLrnId14WlwjpLRouu918JjkAfktGOQTzQTZpJUarXpCoCwwD5ko594gM1Z+juV1gqI7ouyKgDoIHosy/glrVLfnoFt73u7zFOK1F7hoGv4dMocW+FMhto82C43LysSu9k99TKOztmDQRdV5xw6EUog2oCBVTmCDTvhTP4DldIcZr4qfHkAAAAASUVORK5CYII=",wQt={class:"chat-container"},AQt={class:"history-header"},CQt={class:"history-list"},xQt={key:0,class:"history-loading"},SQt=["onClick"],EQt={class:"history-icon"},kQt=["src"],TQt={class:"history-content"},_Qt={class:"history-title"},DQt={class:"history-meta"},IQt={class:"history-time"},OQt=["onClick"],MQt={key:2,class:"empty-history"},PQt={class:"main-work"},NQt={class:"work-content"},RQt={key:0,class:"step1-content"},BQt={key:0,class:"initial-content"},LQt={class:"function-cards"},FQt=["onClick"],UQt={class:"card-header"},$Qt={class:"card-icon"},zQt=["src","alt"],jQt={class:"card-description"},HQt={key:1,class:"chat-content"},WQt={class:"chat-messages"},VQt={key:0,class:"user-message"},qQt={class:"message-content"},GQt={key:0,class:"message-file"},KQt={class:"file-display"},QQt={class:"file-icon"},YQt=["src"],ZQt={key:1},XQt={class:"file-details"},JQt={class:"file-name"},eYt={class:"file-size"},tYt={key:1,class:"message-text"},nYt={class:"message-actions"},rYt=["onClick"],oYt={key:1,class:"ai-message"},iYt=["data-message-index"],aYt={class:"ai-text"},sYt={key:0,class:"typing-indicator"},lYt=["innerHTML"],uYt={key:1,class:"step2-content"},cYt={key:0,class:"loading-overlay"},dYt={class:"outline-container"},fYt={class:"outline-main"},pYt={class:"outline-header"},hYt={class:"outline-title-container"},gYt={key:1,class:"edit-input-container"},vYt=["onKeydown"],mYt={class:"outline-actions"},yYt=["disabled"],bYt=["disabled"],wYt=["disabled"],AYt={key:0,class:"generating-overlay"},CYt={key:1,class:"generating-overlay"},xYt={key:2,class:"outline-content-scrollable"},SYt=["onDragstart","onDragover","onDrop"],EYt={class:"chapter-header"},kYt=["onClick"],TYt={key:1,class:"edit-input-container"},_Yt={class:"edit-input-wrapper"},DYt=["onKeydown"],IYt={class:"edit-options-inline"},OYt=["onClick"],MYt=["onClick"],PYt={class:"outline-section"},NYt={key:0,class:"section-container"},RYt={class:"section-header"},BYt=["onClick"],LYt={key:1,class:"edit-input-container"},FYt={class:"edit-input-wrapper"},UYt=["onKeydown"],$Yt={class:"edit-options-inline"},zYt=["onClick"],jYt=["onClick"],HYt={key:0,class:"section-subsection"},WYt={key:0,class:"subsection-container"},VYt={class:"subsection-header"},qYt=["onClick"],GYt={key:1,class:"edit-input-container"},KYt={class:"edit-input-wrapper"},QYt=["onKeydown"],YYt={class:"edit-options-inline"},ZYt=["onClick"],XYt={key:0,class:"subsubsection-container"},JYt={class:"subsubsection-header"},eZt=["onClick"],tZt={key:1,class:"edit-input-container"},nZt={class:"edit-input-wrapper"},rZt=["onKeydown"],oZt={key:0,class:"add-chapter-container"},iZt={key:3},aZt={class:"outline-sidebar"},sZt={class:"sidebar-section"},lZt={class:"section-content"},uZt={class:"stat-item"},cZt={class:"stat-value"},dZt={class:"stat-item"},fZt={class:"stat-value"},pZt={class:"stat-item"},hZt={class:"stat-value"},gZt={class:"stat-item"},vZt={class:"stat-value"},mZt={class:"sidebar-section"},yZt={class:"section-content"},bZt={class:"evaluation-buttons"},wZt=["disabled"],AZt=["disabled"],CZt={class:"sidebar-actions"},xZt=["disabled"],SZt=["disabled"],EZt={key:0,class:"loading-overlay"},kZt={class:"template-container"},TZt={key:0,class:"applying-overlay"},_Zt={class:"template-preview"},DZt={class:"preview-container"},IZt={class:"preview-header"},OZt={class:"save-status"},MZt={class:"main-carousel"},PZt={key:0},NZt={class:"main-slide"},RZt={key:0,class:"ai-generated-slide"},BZt=["innerHTML"],LZt=["src","alt"],FZt=["src","alt"],UZt={key:1,class:"ppt-editor-workspace"},$Zt={class:"editor-canvas"},zZt={style:{position:"absolute",top:"10px",right:"10px",background:"rgba(0,0,0,0.7)",color:"white",padding:"5px","border-radius":"4px","font-size":"12px","z-index":"1001"}},jZt=["onClick","onDblclick","onMousedown"],HZt=["onMousedown"],WZt=["onMousedown"],VZt=["onMousedown"],qZt=["onMousedown"],GZt=["onMousedown"],KZt=["src","alt","onClick"],QZt=["innerHTML","onBlur"],YZt=["innerHTML"],ZZt={key:1,class:"edit-mode"},XZt={class:"slide-editor"},JZt={class:"slide-title"},eXt={class:"slide-body"},tXt={class:"thumbnail-nav"},nXt={key:0},rXt={class:"slide-counter"},oXt={class:"progress-dots"},iXt=["onClick"],aXt=["onClick"],sXt=["src","alt"],lXt={class:"thumbnail-number"},uXt={key:1},cXt={class:"slide-counter"},dXt={class:"progress-dots"},fXt=["onClick"],pXt=["onClick"],hXt={class:"thumbnail-content"},gXt=["innerHTML"],vXt=["src","alt"],mXt={class:"thumbnail-number"},yXt={class:"template-sidebar"},bXt={class:"sidebar-title"},wXt={class:"template-list"},AXt=["onClick"],CXt={class:"template-thumbnail"},xXt=["src","alt"],SXt={class:"template-info"},EXt={class:"template-title"},kXt={class:"template-meta"},TXt={class:"update-time"},_Xt={class:"page-count"},DXt={key:0,class:"template-description"},IXt={key:0,class:"applying-overlay"},OXt={key:0,class:"applying-overlay"},MXt={key:1,class:"applying-overlay"},PXt={class:"download-options"},NXt=["onClick"],RXt={class:"option-icon"},BXt=["src","alt"],LXt={class:"option-info"},FXt={class:"option-title"},UXt={class:"option-description"},$Xt={key:0,class:"option-check"},zXt={class:"download-actions"},jXt=["disabled"],HXt={key:1,class:"preview-actions"},WXt=["disabled"],VXt={key:0},qXt={key:1},GXt={key:0,class:"recommended-questions"},KXt=["onClick"],QXt=["src"],YXt={key:1,class:"chat-input-section"},ZXt={class:"input-container"},XXt={key:0,class:"file-preview-section"},JXt={class:"file-preview"},eJt={class:"file-icon"},tJt=["src"],nJt={key:1},rJt={class:"file-info"},oJt={class:"file-name"},iJt={class:"file-size"},aJt={class:"input-box"},sJt=["disabled"],lJt=["disabled"],uJt=["disabled"],cJt={class:"icon-container"},dJt={key:0,class:"recording-indicator"},fJt=["disabled"],pJt=["src"],hJt={key:2,class:"copy-toast-overlay",style:{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",display:"flex","justify-content":"center","align-items":"center","z-index":"10000","pointer-events":"none"}},gJt={class:"wps-modal-header",style:{display:"flex","justify-content":"space-between","align-items":"center",padding:"16px 24px",background:"#f8f9fa","border-bottom":"1px solid #e9ecef"}},vJt={class:"wps-modal-content",style:{display:"flex","flex-direction":"column",flex:"1","min-height":"0"}},mJt={class:"wps-iframe-container",style:{flex:"1","min-height":"0",position:"relative"}},yJt=["src"],bJt={key:0,class:"wps-iframe-mask-top-right",style:{position:"absolute",top:"8px",left:"8px",width:"160px",height:"54px",background:"#F8F8F8","border-radius":"8px","z-index":"5","pointer-events":"none",opacity:"0.98",display:"flex","align-items":"center","justify-content":"center","font-size":"14px","font-weight":"600",color:"#333333"}},wJt={__name:"SafetyHazard",setup(e){Hl();const t=Q(""),n=Q(null),r=Q(0),o=Q(null),i=Q(null),a=Q(!1),s=Q(!1),l=Q(!1),u=Q(null),d=Q("step1");Q(!1);const c=Q(""),f=Q(null),p=Q(null),v=Q(null),h=Q(!1),g=Q(!1),y=Q(!1),m=Q(!1),b=Q(!1),w=Q(!1),A=Q([]),S=Q([]),k=Q(!1),M=Q([]),D=Q(!1),P=Q(!1),O=Q(!1),_=Q("https://aippt.wps.cn/aippt/");Q(!0),Q([]),Q(null);const B=Q(null),N=Q(!1);Q(!1);const q=Q(null),U=Q(!1);Q("");const j=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]});Ur({OssAccessKeyId:"",policy:"",Signature:"",host:"",dir:"",key:""});const{isListening:H,transcript:G,error:Z,startListening:$,stopListening:L}=T0();Q(null);const W=J(()=>M.value.some(fe=>fe.type==="ai"&&fe.isTyping)),ie=J(()=>`确定要删除历史记录"${u.value?.item?.title||""}"吗?删除后将无法恢复。`),ee=Q(null),te=Q({}),X=Q(""),ue=fe=>{if(!fe||!Array.isArray(fe))return{totalChapters:0,totalSections:0,estimatedPages:"0页",estimatedTime:"0分钟"};const se=fe.length;let Se=0;fe.forEach((I,R)=>{I.sections&&Array.isArray(I.sections)&&(Se+=I.sections.length)});const E=ve(fe),T=Me(fe);return{totalChapters:se,totalSections:Se,estimatedPages:E,estimatedTime:T}},ve=(fe,se)=>{let Se=3,E=0;return fe.forEach(I=>{I.sections&&I.sections.length>0?(E+=1,I.sections.forEach(R=>{if(R.subsections&&R.subsections.length>0){const z=R.subsections.length;z<=2?E+=1:z<=4?E+=2:E+=3}else E+=1})):E+=2}),`${Se+E}页`},Me=(fe,se)=>{let Se=5,E=0;return fe.forEach(I=>{I.sections&&I.sections.length>0?(E+=2,I.sections.forEach(R=>{if(R.subsections&&R.subsections.length>0){const z=R.subsections.length;z<=2?E+=3:z<=4?E+=5:E+=7}else E+=4})):E+=6}),`${Se+E}分钟`},we=()=>{ee.value&&(te.value=ue(ee.value))},he=Q(null),Te=Q(""),Y=Q(null),be=Q(""),De=Q(null),pe=Q(null);Q(null);const oe=Q(0),ce=Q(0),Re=Q({title:"",content:""}),Ee=Q([]),Le=Q(0),Fe=Q(!1);Q("edit");const Pe=Q(!1),Ne=Q([]),pt=Q(0),Rt=Q(-1),Bt=Q(-1),en=Q(""),Wt=Q(1),Ut=Q(null),ct=Q([Jp,cg,dg,fg,pg]),_t=Q([{thumbnail:Jp,title:"通用类PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"dynamic",style:"default"},{thumbnail:oS,title:"红色主题PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"static",style:"red",templateData:hg}]),st=Q(!1),Ot=Q(null),Ae=Q(null),je=async(fe,se,Se)=>{console.log("🎬 开始逐页生成PPT效果..."),Ne.value=[];for(let E=0;E<fe.length;E++){const T=fe[E];console.log(`📄 正在生成第${E+1}页: ${T.type||"未知类型"}`),Ne.value.push({...T,elements:T.elements?T.elements.map(R=>({...R,content:R.content,left:R.left,top:R.top,width:R.width,height:R.height})):[]}),Ne.value=[...Ne.value],console.log(`第${E+1}页背景信息:`,T.background),console.log(`第${E+1}页元素数量:`,T.elements?.length),await Vt(),Ne.value=[...Ne.value],await new Promise(R=>setTimeout(R,300));const I=await at(T,se,Se,E);Ne.value[E]=I,Ne.value=[...Ne.value],await Vt(),Ne.value=[...Ne.value],pt.value=E,await new Promise(R=>setTimeout(R,400)),console.log(`✅ 第${E+1}页生成完成`)}console.log("🎉 所有页面生成完成!"),pt.value=0,console.log("📄 已回到第一页")},at=async(fe,se,Se,E)=>{const T=JSON.parse(JSON.stringify(fe));if(T.elements){console.log(`🔍 第${E+1}页有${T.elements.length}个元素`);for(let I=0;I<T.elements.length;I++){const R=T.elements[I];if(console.log(`🔍 处理元素${I+1}:`,{textType:R.textType,content:R.content,id:R.id,type:R.type}),E===0&&R.textType==="title"&&R.content&&R.content.includes("标题占位符"))R.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">${Se}</span></strong></p>`,console.log(`📝 填充封面标题: ${Se}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(z=>setTimeout(z,200));else if(E===0&&R.textType==="content"&&R.content&&R.content.includes("副标题占位符")){const z=await me(se,Se);R.content=`<p style="text-align: center;"><span style="font-size: 24px; color: #f0f0f0;">${z}</span></p>`,console.log(`📝 填充封面副标题: ${z}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(E===1&&R.textType==="item"&&R.content&&R.content.includes("目录项")){const z=R.id.match(/item-(\d+)/);if(z){const V=parseInt(z[1])-1;if(V<se.length){const le=se[V].title;R.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${R.defaultColor};">${le}</span></p>`,console.log(`📝 填充目录项${V+1}: ${le}`)}else R.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${R.defaultColor};"> </span></p>`}Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(R.textType==="title"&&R.content&&R.content.includes("章节标题")){const z=rt(se,E);R.content=`<p style="text-align: center;"><strong><span style="font-size: 36px; color: ${R.defaultColor};">${z}</span></strong></p>`,console.log(`📝 填充过渡页标题: ${z}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(R.textType==="content"&&R.content&&R.content.includes("章节介绍")){const z=rt(se,E);try{console.log(`🤖 正在为过渡页生成章节介绍内容: ${z}`);const V=await Bn.reProduceSingleQuestion({message:`请为PPT章节"${z}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});if(V&&V.data){const le=V.data.reply||V.data.content||V.data.message||V.data;console.log(`✅ 过渡页章节介绍生成完成: ${le}`),R.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${R.defaultColor};">${le}</span></p>`}else{const le=Be(se,E);console.log(`🔄 使用备用内容: ${le}`),R.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${R.defaultColor};">${le}</span></p>`}}catch(V){console.error("❌ AI生成过渡页内容失败:",V);const le=Be(se,E);console.log(`🔄 使用备用内容: ${le}`),R.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${R.defaultColor};">${le}</span></p>`}Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(R.textType==="title"&&R.content&&R.content.includes("内容页标题")){const z=He(se,E);R.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${R.defaultColor};">${z}</span></strong></p>`,console.log(`📝 填充内容页标题: ${z}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(R.textType==="itemContent"&&R.content&&(R.content.includes("正在生成...")||R.content.includes("待AI填充"))){console.log("🤖 找到需要AI填充的元素:",{textType:R.textType,content:R.content,id:R.id});const z=rn(se,E,I);try{console.log(`🤖 正在为第${E+1}页生成内容: ${z}`),console.log("🤖 元素信息:",R);const V=await Bn.reProduceSingleQuestion({message:`请为PPT幻灯片生成专业的内容,主题是:${z}。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.严格控制字数在30-45字以内 5.不要包含任何编号(如"子小节3:"、"要点1:"等)6.直接返回内容,不要添加前缀 7.要有独特性和创新性,避免与其他内容重复 8.从不同角度阐述主题。这是关于"${Se}"的PPT演示文稿,当前章节是"${z}"`});if(console.log("🤖 AI响应:",V),V&&V.data){const le=V.data.reply||V.data.content||V.data.message||V.data||"AI生成的内容为空";console.log("🤖 AI生成内容:",le),await gt(R,le,R.defaultColor),console.log(`✅ 第${E+1}页内容生成完成`)}else{const le=Je(se,E,I);console.log("🔄 使用备用内容:",le),await gt(R,le,R.defaultColor)}}catch(V){console.error("❌ AI生成内容失败:",V);const le=Je(se,E,I);console.log("🔄 使用备用内容:",le),await gt(R,le,R.defaultColor)}}else if(R.textType==="itemTitle"&&R.content&&(R.content.includes("要点标题")||R.content.includes("待AI生成子小节"))){const z=nn(se,E,I);if(z.includes("待AI生成子小节"))try{console.log(`🤖 正在为子小节生成标题: ${z}`);const V=ht(se,E,I),le=await Bn.reProduceSingleQuestion({message:`请为PPT幻灯片的小节"${V}"生成3-4个简洁的子标题。要求:1.每个标题都要不同 2.标题简洁明了,控制在6-12字 3.专业准确 4.适合PPT展示 5.直接返回标题,用换行分隔,不要编号,不要重复,不要解释,只要标题`});if(le&&le.data){const Ze=(le.data.reply||le.data.content||le.data.message||le.data).split(`
- `).filter($e=>$e.trim()).map($e=>$e.trim());if(Ze.length>0){const $e=I%Ze.length,dt=Ze[$e];R.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${R.defaultColor};">${dt}</span></strong></p>`,console.log(`✅ AI生成子小节标题[${$e}]: ${dt}`)}else R.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${R.defaultColor};">${z}</span></strong></p>`,console.log("⚠️ AI生成标题失败,使用默认标题")}else R.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${R.defaultColor};">${z}</span></strong></p>`,console.log("⚠️ AI调用失败,使用默认标题")}catch(V){console.error("❌ AI生成标题失败:",V),R.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${R.defaultColor};">${z}</span></strong></p>`}else R.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${R.defaultColor};">${z}</span></strong></p>`,console.log(`📝 填充标题: ${z}`);Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}else if(R.content&&R.content.includes("待AI填充")&&!R.content.includes("正在生成...")){const z=Tn(se,E,I);R.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${R.defaultColor};">${z}</span></p>`,console.log(`📝 填充内容: ${z}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(V=>setTimeout(V,200))}}}return T},gt=async(fe,se,Se)=>new Promise(E=>{fe.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Se};">正在生成内容...</span></p>`,Vt(()=>{Ne.value=[...Ne.value]}),setTimeout(()=>{let T="";const I=se.split("");let R=0;const z=()=>{R<I.length?(T+=I[R],fe.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Se};">${T}</span></p>`,Vt(()=>{Ne.value=[...Ne.value]}),R++,setTimeout(z,30)):E()};z()},500)}),nn=(fe,se,Se)=>{if(console.log(`获取元素标题 - 幻灯片索引: ${se}, 元素索引: ${Se}`),console.log("大纲数据:",fe),se<2)return"默认标题";let E=2,T=0,I=0;for(let V=0;V<fe.length;V++){const le=fe[V];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=V,I=Oe;break}E++}if(E===se)break}else{if(E===se){T=V,I=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${I}`);const R=fe[T],z=R&&R.sections&&R.sections[I];if(z&&z.subsections&&z.subsections.length>0){const V=z.subsections[Se%z.subsections.length];if(V&&V.title)return V.title.includes("待AI生成子小节"),V.title}return z&&z.title?z.title:R&&R.title?R.title:"默认标题"},Tn=(fe,se,Se)=>{if(console.log(`获取元素内容 - 幻灯片索引: ${se}, 元素索引: ${Se}`),se<2)return"默认内容";let E=2,T=0,I=0;for(let V=0;V<fe.length;V++){const le=fe[V];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=V,I=Oe;break}E++}if(E===se)break}else{if(E===se){T=V,I=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${I}`);const R=fe[T],z=R&&R.sections&&R.sections[I];if(z&&z.subsections&&z.subsections.length>0){const V=z.subsections[Se%z.subsections.length];if(V&&V.title)return Ye(V.title,Se)}return z&&z.title?Ye(z.title,Se):R&&R.title?Ye(R.title,Se):Ye("默认内容",Se)},He=(fe,se)=>{if(console.log(`获取内容页标题 - 幻灯片索引: ${se}`),se<2)return"默认内容页标题";let Se=2,E=0,T=0;for(let z=0;z<fe.length;z++){const V=fe[z];if(Se++,V.sections&&V.sections.length>0){for(let le=0;le<V.sections.length;le++){if(Se===se){E=z,T=le;break}Se++}if(Se===se)break}else{if(Se===se){E=z,T=0;break}Se++}}console.log(`当前内容页对应 - 章节: ${E}, 小节: ${T}`);const I=fe[E],R=I&&I.sections&&I.sections[T];return R&&R.title?R.title:I&&I.title?I.title:"默认内容页标题"},ke=async fe=>{if(console.log("转换用户大纲数据为兼容格式..."),console.log("原始用户大纲数据:",fe),!fe||!Array.isArray(fe))return console.log("用户大纲数据无效,返回空数组"),[];const se=[];for(let Se=0;Se<fe.length;Se++){const E=fe[Se];let T=E.content;if(!T)try{console.log(`🤖 正在为章节"${E.title}"生成内容...`);const R=await Bn.reProduceSingleQuestion({message:`请为PPT章节"${E.title}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});R&&R.data?(T=R.data.reply||R.data.content||R.data.message||R.data,console.log(`✅ 章节内容生成完成: ${T}`)):T=`第${Se+1}章节的内容`}catch(R){console.error("❌ 章节内容生成失败:",R),T=`第${Se+1}章节的内容`}const I={title:E.title||`章节${Se+1}`,content:T,sections:[]};if(E.sections&&Array.isArray(E.sections))for(let R=0;R<E.sections.length;R++){const z=E.sections[R];let V=z.content;if(!V)try{console.log(`🤖 正在为小节"${z.title}"生成内容...`);const Oe=await Bn.reProduceSingleQuestion({message:`请为PPT小节"${z.title}"生成一个简洁的小节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});Oe&&Oe.data?(V=Oe.data.reply||Oe.data.content||Oe.data.message||Oe.data,console.log(`✅ 小节内容生成完成: ${V}`)):V=`第${R+1}小节的内容`}catch(Oe){console.error("❌ 小节内容生成失败:",Oe),V=`第${R+1}小节的内容`}const le={title:z.title||`小节${R+1}`,content:V,subsections:[]};if(z.subsections&&Array.isArray(z.subsections)&&z.subsections.length>0)le.subsections=z.subsections.map((Oe,Ze)=>({title:Oe.title||`子小节${Ze+1}`}));else{const Oe=Math.floor(Math.random()*3)+2;le.subsections=[];for(let Ze=0;Ze<Oe;Ze++)le.subsections.push({title:`待AI生成子小节${Ze+1}`});console.log(`为小节"${z.title}"创建了${Oe}个待AI生成的子小节`)}I.sections.push(le)}else I.sections=[{title:"主要内容",content:"主要内容描述",subsections:[{title:`${I.title} - 要点1`},{title:`${I.title} - 要点2`},{title:`${I.title} - 要点3`},{title:`${I.title} - 要点4`}]}],console.log(`为章节"${I.title}"创建了默认小节和子小节`);se.push(I)}return console.log("转换后的兼容格式数据:",se),se},me=async(fe,se)=>{if(console.log(`获取封面页完整描述 - 标题: ${se}`),se!=="用户生成的大纲"&&fe&&fe.length>0){if(fe&&fe.length>0){try{console.log("🤖 正在为用户大纲生成专业描述...");const I=await Bn.reProduceSingleQuestion({message:`请为PPT演示文稿生成一个专业的副标题描述。大纲包含${fe.length}个章节,每个章节都有多个小节和子小节。要求:1.描述专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在30-45字以内 5.突出培训的专业性和系统性`});if(I&&I.data){const R=I.data.reply||I.data.content||I.data.message||I.data;return console.log(`✅ 用户大纲描述生成完成: ${R}`),R}}catch(I){console.error("❌ 用户大纲描述生成失败:",I)}let T=`${fe.length}章节`;return fe.forEach((I,R)=>{if(I.sections&&I.sections.length>0){const z=I.sections.length;T+=`,第${R+1}章节${z}小节`;const V=I.sections.map(le=>le.subsections?le.subsections.length:0);V.length>0&&V.some(le=>le>0)&&(T+=`(${V.join("+")}子小节)`)}}),console.log(`生成用户大纲描述: ${T}`),T}return"用户生成的大纲结构"}const Se=lt.value.find(E=>E.title===se);if(Se&&Se.description)return console.log(`找到对应的描述: ${Se.description}`),Se.description;if(fe&&fe.length>0){let T=`${fe.length}章节`;return fe.forEach((I,R)=>{if(I.sections&&I.sections.length>0){const z=I.sections.length;T+=`,第${R+1}章节${z}小节`;const V=I.sections.map(le=>le.subsections?le.subsections.length:0);V.length>0&&V.some(le=>le>0)&&(T+=`(${V.join("+")}子小节)`)}}),console.log(`生成的描述: ${T}`),T}return"安全培训演示文稿"},Be=(fe,se)=>{if(console.log(`获取过渡页章节介绍内容 - 幻灯片索引: ${se}`),se<2)return"默认章节介绍";let Se=2,E=0;for(let I=0;I<fe.length;I++){const R=fe[I];if(Se===se){E=I;break}Se++,R.sections&&R.sections.length>0?Se+=R.sections.length:Se++}console.log(`当前过渡页对应 - 章节: ${E}`);const T=fe[E];return T&&T.content?T.content:T&&T.title?`本章将介绍${T.title}的相关内容,包括核心概念、重要知识点和实践应用。`:"默认章节介绍"},rt=(fe,se)=>{if(console.log(`获取过渡页章节标题 - 幻灯片索引: ${se}`),se<2)return"默认章节";let Se=2,E=0;for(let I=0;I<fe.length;I++){const R=fe[I];if(Se===se){E=I;break}Se++,R.sections&&R.sections.length>0?Se+=R.sections.length:Se++}console.log(`当前过渡页对应 - 章节: ${E}`);const T=fe[E];return T&&T.title?Ie(T.title):"默认章节"},ht=(fe,se,Se)=>{if(console.log(`获取小节标题用于AI生成 - 幻灯片索引: ${se}, 元素索引: ${Se}`),se<2)return"默认小节";let E=2,T=0,I=0;for(let V=0;V<fe.length;V++){const le=fe[V];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=V,I=Oe;break}E++}if(E===se)break}else{if(E===se){T=V,I=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${I}`);const R=fe[T],z=R&&R.sections&&R.sections[I];return z&&z.title?z.title:"默认小节"},rn=(fe,se,Se)=>{if(console.log(`获取AI标题 - 幻灯片索引: ${se}, 内容索引: ${Se}`),se<2)return"默认内容";let E=2,T=0,I=0;for(let V=0;V<fe.length;V++){const le=fe[V];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=V,I=Oe;break}E++}if(E===se)break}else{if(E===se){T=V,I=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${I}`);const R=fe[T],z=R&&R.sections&&R.sections[I];if(z&&z.subsections&&z.subsections.length>0){const V=z.subsections[Se%z.subsections.length];if(V&&V.title)return`${R.title} - ${z.title} - ${V.title}`}return z&&z.title?`${R.title} - ${z.title}`:R&&R.title?R.title:"默认内容"},Ye=(fe,se)=>{const Se={信息上报与指挥体系建立:["建立完善的信息收集机制,确保各类安全信息及时准确上报","构建统一的指挥调度平台,实现各部门协调联动","制定标准化的上报流程,提高信息处理效率","建立应急响应机制,确保突发事件快速处置"],安全风险评估与控制:["开展全面的安全风险识别,建立风险清单","制定风险等级评估标准,实施分级管控","建立风险监测预警系统,实现动态监控","完善风险控制措施,确保风险可控"],应急预案与处置:["制定完善的应急预案体系,覆盖各类突发事件","建立应急响应队伍,提高应急处置能力","开展应急演练,检验预案有效性","完善应急物资储备,确保应急保障"],培训教育与能力提升:["制定系统化的培训计划,提高全员安全意识","开展专业技能培训,提升操作能力","建立培训考核机制,确保培训效果","持续改进培训方式,提高培训质量"],监督检查与持续改进:["建立监督检查机制,确保制度有效执行","开展定期检查评估,发现问题及时整改","建立问题跟踪机制,确保整改到位","持续改进工作方法,提升管理水平"]};for(const[T,I]of Object.entries(Se))if(fe.includes(T)||T.includes(fe))return I[se%I.length];const E=["建立完善的管理体系,确保各项工作有序开展","制定详细的操作规范,提高工作效率和质量","加强人员培训,提升专业技能和综合素质","建立监督检查机制,确保制度有效执行","完善应急预案,提高应对突发事件的能力","加强沟通协调,促进部门间有效合作","持续改进优化,不断提升管理水平","注重细节管理,确保工作质量稳定可靠","强化责任意识,确保各项工作落实到位","创新工作方法,提高工作效率和效果"];return E[se%E.length]},Je=(fe,se,Se)=>{if(console.log(`生成内容 - 幻灯片索引: ${se}, 内容索引: ${Se}`),se<2)return Ye("默认内容",Se);let E=2,T=0,I=0;for(let V=0;V<fe.length;V++){const le=fe[V];if(le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=V,I=Oe;break}E++}if(E===se)break}else{if(E===se){T=V,I=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${I}`);const R=fe[T],z=R&&R.sections&&R.sections[I];if(z&&z.subsections&&z.subsections.length>0){const V=z.subsections[Se%z.subsections.length];if(V&&V.title)return Ye(V.title,Se)}return z&&z.title?Ye(z.title,Se):R&&R.title?Ye(R.title,Se):Ye("默认内容",Se)},lt=Q([{id:"safety-basic",title:"基础安全培训",description:"2章节,每章节2小节,每小节4子小节",data:[{title:"信息上报与指挥体系建立",content:"建立完善的信息上报和指挥体系",sections:[{title:"信息收集机制",content:"建立完善的信息收集机制",subsections:[{title:"信息收集渠道"},{title:"信息收集标准"},{title:"信息收集流程"},{title:"信息质量控制"}]},{title:"指挥调度平台",content:"构建统一的指挥调度平台",subsections:[{title:"平台功能设计"},{title:"系统架构规划"},{title:"数据集成方案"},{title:"用户权限管理"}]}]},{title:"安全风险评估与控制",content:"开展全面的安全风险评估与控制",sections:[{title:"风险识别与评估",content:"建立风险识别与评估体系",subsections:[{title:"风险识别方法"},{title:"风险评估标准"},{title:"风险等级划分"},{title:"风险评估流程"}]},{title:"风险控制措施",content:"制定有效的风险控制措施",subsections:[{title:"预防控制措施"},{title:"监测预警机制"},{title:"应急处置方案"},{title:"持续改进机制"}]}]}]},{id:"comprehensive-training",title:"综合培训体系",description:"3章节,每章节3小节,每小节3子小节",data:[{title:"培训体系建设",content:"建立完善的培训体系",sections:[{title:"培训需求分析",content:"分析培训需求",subsections:[{title:"需求调研方法"},{title:"需求分析工具"},{title:"需求确认流程"}]},{title:"培训计划制定",content:"制定培训计划",subsections:[{title:"计划制定原则"},{title:"计划执行方案"},{title:"计划调整机制"}]},{title:"培训效果评估",content:"评估培训效果",subsections:[{title:"评估指标体系"},{title:"评估方法选择"},{title:"评估结果应用"}]}]},{title:"师资队伍建设",content:"建设专业师资队伍",sections:[{title:"师资选拔标准",content:"制定师资选拔标准",subsections:[{title:"专业能力要求"},{title:"教学经验要求"},{title:"综合素质要求"}]},{title:"师资培训体系",content:"建立师资培训体系",subsections:[{title:"培训内容设计"},{title:"培训方式选择"},{title:"培训效果跟踪"}]},{title:"师资激励机制",content:"建立师资激励机制",subsections:[{title:"激励政策制定"},{title:"激励措施实施"},{title:"激励效果评估"}]}]},{title:"培训资源管理",content:"管理培训资源",sections:[{title:"培训设施建设",content:"建设培训设施",subsections:[{title:"设施规划布局"},{title:"设施设备配置"},{title:"设施维护管理"}]},{title:"培训教材开发",content:"开发培训教材",subsections:[{title:"教材编写标准"},{title:"教材审核流程"},{title:"教材更新机制"}]},{title:"培训技术支持",content:"提供技术支持",subsections:[{title:"技术平台建设"},{title:"技术维护服务"},{title:"技术培训支持"}]}]}]},{id:"emergency-management",title:"应急管理体系",description:"4章节,每章节2小节,每小节2子小节",data:[{title:"应急预案制定",content:"制定应急预案",sections:[{title:"预案编制流程",content:"编制应急预案",subsections:[{title:"预案编制标准"},{title:"预案审核程序"}]},{title:"预案演练实施",content:"实施预案演练",subsections:[{title:"演练计划制定"},{title:"演练效果评估"}]}]},{title:"应急响应机制",content:"建立应急响应机制",sections:[{title:"响应流程设计",content:"设计响应流程",subsections:[{title:"响应级别划分"},{title:"响应时间要求"}]},{title:"响应队伍建设",content:"建设响应队伍",subsections:[{title:"队伍组建标准"},{title:"队伍培训体系"}]}]},{title:"应急物资保障",content:"保障应急物资",sections:[{title:"物资储备管理",content:"管理物资储备",subsections:[{title:"储备标准制定"},{title:"储备检查制度"}]},{title:"物资调配机制",content:"建立调配机制",subsections:[{title:"调配流程设计"},{title:"调配效率优化"}]}]},{title:"应急信息管理",content:"管理应急信息",sections:[{title:"信息收集系统",content:"建设收集系统",subsections:[{title:"系统功能设计"},{title:"系统运行维护"}]},{title:"信息发布机制",content:"建立发布机制",subsections:[{title:"发布渠道建设"},{title:"发布效果监控"}]}]}]},{id:"quality-management",title:"质量管理体系",description:"5章节,每章节2小节,每小节3子小节",data:[{title:"质量方针制定",content:"制定质量方针",sections:[{title:"方针内容设计",content:"设计方针内容",subsections:[{title:"方针目标设定"},{title:"方针实施策略"},{title:"方针效果评估"}]},{title:"方针宣传推广",content:"推广质量方针",subsections:[{title:"宣传渠道建设"},{title:"推广活动组织"},{title:"推广效果跟踪"}]}]},{title:"质量目标管理",content:"管理质量目标",sections:[{title:"目标设定方法",content:"设定质量目标",subsections:[{title:"目标分解原则"},{title:"目标量化标准"},{title:"目标调整机制"}]},{title:"目标监控体系",content:"监控目标实现",subsections:[{title:"监控指标设计"},{title:"监控频率设定"},{title:"监控结果分析"}]}]},{title:"质量过程控制",content:"控制质量过程",sections:[{title:"过程识别分析",content:"识别分析过程",subsections:[{title:"过程流程图绘制"},{title:"过程关键点识别"},{title:"过程风险分析"}]},{title:"过程改进优化",content:"改进优化过程",subsections:[{title:"改进机会识别"},{title:"改进方案设计"},{title:"改进效果验证"}]}]},{title:"质量审核评估",content:"审核评估质量",sections:[{title:"审核计划制定",content:"制定审核计划",subsections:[{title:"审核范围确定"},{title:"审核标准制定"},{title:"审核人员安排"}]},{title:"审核实施管理",content:"管理审核实施",subsections:[{title:"审核流程执行"},{title:"审核记录管理"},{title:"审核结果处理"}]}]},{title:"质量持续改进",content:"持续改进质量",sections:[{title:"改进机会识别",content:"识别改进机会",subsections:[{title:"问题分析方法"},{title:"改进需求评估"},{title:"改进优先级排序"}]},{title:"改进措施实施",content:"实施改进措施",subsections:[{title:"改进方案制定"},{title:"改进资源保障"},{title:"改进效果跟踪"}]}]}]},{id:"innovation-system",title:"创新管理体系",description:"6章节,每章节1小节,每小节4子小节",data:[{title:"创新战略规划",content:"规划创新战略",sections:[{title:"战略分析制定",content:"制定创新战略",subsections:[{title:"内外部环境分析"},{title:"创新机会识别"},{title:"战略目标设定"},{title:"战略实施路径"}]}]},{title:"创新文化建设",content:"建设创新文化",sections:[{title:"文化理念塑造",content:"塑造创新文化",subsections:[{title:"创新价值观建立"},{title:"创新氛围营造"},{title:"创新激励机制"},{title:"创新成果分享"}]}]},{title:"创新团队建设",content:"建设创新团队",sections:[{title:"团队组建管理",content:"管理创新团队",subsections:[{title:"团队成员选拔"},{title:"团队能力建设"},{title:"团队协作机制"},{title:"团队绩效管理"}]}]},{title:"创新项目管理",content:"管理创新项目",sections:[{title:"项目全生命周期",content:"管理项目全周期",subsections:[{title:"项目立项评估"},{title:"项目执行监控"},{title:"项目风险控制"},{title:"项目成果转化"}]}]},{title:"创新资源保障",content:"保障创新资源",sections:[{title:"资源统筹配置",content:"配置创新资源",subsections:[{title:"资金投入保障"},{title:"技术平台建设"},{title:"人才资源开发"},{title:"信息资源整合"}]}]},{title:"创新成果转化",content:"转化创新成果",sections:[{title:"成果产业化",content:"实现成果产业化",subsections:[{title:"成果评估筛选"},{title:"产业化路径设计"},{title:"市场推广策略"},{title:"经济效益评估"}]}]}]},{id:"mixed-structure",title:"混合结构演示",description:"2章节,第一章节2小节(3+4子小节),第二章节3小节(2+3+4子小节)",data:[{title:"第一章节:基础管理",content:"建立基础管理体系",sections:[{title:"制度建设",content:"建立完善的管理制度",subsections:[{title:"制度框架设计"},{title:"制度内容制定"},{title:"制度执行监督"}]},{title:"流程优化",content:"优化工作流程",subsections:[{title:"流程梳理分析"},{title:"流程改进设计"},{title:"流程实施推广"},{title:"流程效果评估"}]}]},{title:"第二章节:运营管理",content:"提升运营管理水平",sections:[{title:"资源配置",content:"优化资源配置",subsections:[{title:"资源需求分析"},{title:"资源配置方案"}]},{title:"绩效管理",content:"建立绩效管理体系",subsections:[{title:"绩效指标设定"},{title:"绩效评估方法"},{title:"绩效改进措施"}]},{title:"风险控制",content:"加强风险控制",subsections:[{title:"风险识别评估"},{title:"风险控制措施"},{title:"风险监测预警"},{title:"风险应急处置"}]}]}]}]),Ue=Q(0);Q(!1);const ze=Q("default");Q(hQt());const ut=Q([{icon:mQt,title:"PowerPoint (PPTX)",description:"可编辑的演示文稿"},{icon:yQt,title:"考试工坊",description:"基于该文档,生成考试题"},{icon:bQt,title:"培训讲义文档",description:"基于PPT内容,提取文档文字"}]),yt=J(()=>ct.value[oe.value]),jt=J(()=>{const fe=new Date;return`${fe.getHours().toString().padStart(2,"0")}:${fe.getMinutes().toString().padStart(2,"0")}:${fe.getSeconds().toString().padStart(2,"0")}`}),mn=Q([]),Nn=Q(0),xt=async()=>{try{console.log("📋 开始获取安全培训历史记录列表...");const fe=performance.now(),se=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:1}),Se=performance.now();console.log(`📋 历史记录API调用耗时: ${(Se-fe).toFixed(2)}ms`),console.log("📋 安全培训历史记录列表响应:",se),se.statusCode===200?(Nn.value=se.total||0,mn.value=se.data.map(E=>({id:E.id,title:vt(E.content),time:Nt(E.updated_at),businessType:E.business_type,step:E.step||0,cover_image:E.cover_image||"",ppt_json_url:E.ppt_json_url||"",ppt_json_content:E.ppt_json_content||"",isActive:!1,rawData:E})),console.log(`✅ 安全培训历史记录列表已设置: ${mn.value.length}条记录,总数: ${Nn.value}`)):console.error("❌ 获取安全培训历史记录列表失败:",se.statusCode)}catch(fe){console.error("❌ 获取安全培训历史记录列表失败:",fe)}},sn=async fe=>{try{console.log("开始获取安全培训对话消息,conversationId:",fe);const se=await Bn.getHistoryRecord({ai_conversation_id:fe,business_type:1});if(console.log("安全培训对话消息响应:",se),se.statusCode===200){const Se=se.data.map(T=>{const I=bn(T.user_feedback);console.log(`安全培训消息 ${T.id} 的反馈状态:`,{raw:T.user_feedback,converted:I});let R=null,z=T.content;if(T.type==="user"&&T.content.includes("</filesize>")){const V=T.content.match(/<filename>(.*?)<\/filename>/),le=T.content.match(/<filesize>(.*?)<\/filesize>/),Oe=T.content.match(/<word>(.*?)<\/word>/s);if(V&&le){const Ze=V[1],$e=parseInt(le[1]),dt=Oe?Oe[1].trim():"";R={name:Ze,size:$e,type:Ze.endsWith(".docx")?".docx":Ze.endsWith(".doc")?".doc":".docx",icon:X5(Ze.endsWith(".docx")?".docx":Ze.endsWith(".doc")?".doc":".docx"),content:dt};const At=T.content.split("</filesize>")[1];z=At?At.trim():""}}return{type:T.type,content:z,displayContent:T.type==="ai"?Y5(T.content):z,file:R,isTyping:!1,id:T.id,userFeedback:I,rawData:T}});M.value=Se,console.log("安全培训对话消息已设置:",M.value),r.value=fe;const E=Se.find(T=>T.type==="ai");if(E&&E.content){console.log("找到AI回复内容,直接解析大纲:",E.content);const T=s.value;if(!ee.value||ee.value.length===0||T){const I=Ho(E.content);I&&I.chapters&&I.chapters.length>0?(ee.value=I.chapters,X.value=I.title||"安全培训大纲",te.value=ue(I.chapters),console.log("从AI回复解析大纲数据成功",T?"(强制更新)":"")):console.log("AI回复中未找到有效的大纲内容")}else console.log("已有大纲数据,跳过设置(避免覆盖用户编辑结果)")}else console.log("未找到AI回复内容");return E&&E.rawData&&E.rawData.user_feedback!==void 0?(f.value=E.rawData.user_feedback,p.value=E.id,console.log("设置大纲反馈状态:",f.value,"AI消息ID:",p.value),console.log("AI消息原始数据:",E.rawData)):(f.value=null,p.value=null,console.log("未找到AI消息或反馈状态,重置大纲反馈状态")),!0}else return console.error("获取安全培训对话消息失败:",se.statusCode),!1}catch(se){return console.error("获取安全培训对话消息失败:",se),!1}},vt=fe=>{if(!fe)return"未知对话";if(fe.includes("</filesize>")){const E=fe.split("</filesize>")[1];if(E&&E.trim()){const I=E.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return I.length>30?I.substring(0,30)+"...":I||"新对话"}}let se=fe.replace(/<[^>]*>/g,"");se=se.replace(/\s+/g," ").trim();const Se=se.split(/[。!?\n]/)[0];return Se.length>30?Se.substring(0,30)+"...":Se||"新对话"},Nt=fe=>{if(!fe)return"未知时间";let se;if(typeof fe=="string")se=new Date(fe);else{let V=fe;fe.toString().length===10||fe.toString().length===11?V=fe*1e3:fe.toString().length===13||(V=fe*1e3),se=new Date(V)}const Se=new Date,E=new Date(Se.getFullYear(),Se.getMonth(),Se.getDate()),T=new Date(E.getTime()-1440*60*1e3);if(se>=E)return se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(se>=T&&se<E)return"昨天 "+se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const I=se.getMonth()+1,R=se.getDate(),z=se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${I}月${R}日 ${z}`},bn=fe=>{switch(console.log("转换用户反馈状态:",fe,"类型:",typeof fe),parseInt(fe)){case 2:return"like";case 3:return"dislike";case 0:default:return null}},Mn=()=>{Vt(()=>{const fe=document.querySelector(".chat-content");if(console.log("滚动函数执行,找到聊天区域:",fe),fe){console.log("滚动前 - scrollTop:",fe.scrollTop,"scrollHeight:",fe.scrollHeight,"clientHeight:",fe.clientHeight),fe.scrollTop=fe.scrollHeight,setTimeout(()=>{fe.scrollTop=fe.scrollHeight,console.log("延迟滚动后 - scrollTop:",fe.scrollTop)},10);const se=fe.lastElementChild;se&&se.scrollIntoView({behavior:"smooth",block:"end"}),console.log("滚动后 - scrollTop:",fe.scrollTop)}else console.warn("未找到聊天内容区域")})},tr=(fe,se)=>{console.log("准备删除安全培训历史记录:",fe),u.value={item:fe,index:se},l.value=!0},dn=async()=>{if(!u.value)return;const{item:fe,index:se}=u.value;try{const Se=await Bn.deleteHistoryRecord({ai_conversation_id:fe.id});Se.statusCode===200?(mn.value.splice(se,1),fe.isActive&&await wt(),console.log("安全培训历史记录删除成功"),Ct.success("删除成功")):(console.error("删除安全培训历史记录失败:",Se.msg),Ct.error(Se.msg||"删除失败"))}catch(Se){console.error("删除安全培训历史记录失败:",Se),Ct.error("删除失败,请稍后重试")}finally{l.value=!1,u.value=null}},Ke=()=>{l.value=!1,u.value=null},bt=()=>{if(console.log("点击新建任务按钮,isProcessing:",w.value),w.value){console.log("正在处理中,无法新建任务");return}wt()},Yt=(fe,se)=>{if(console.log("点击历史记录项,isProcessing:",w.value,"isGeneratingOutline:",h.value,"item.isActive:",fe.isActive,"isSwitchingHistory:",s.value),fe.isActive||w.value||h.value||s.value){console.log("正在处理中、正在生成大纲、已激活或正在切换历史记录,无法切换");return}Rn(fe)},wt=async()=>{console.log("创建新安全培训任务"),r.value=0,M.value=[],t.value="",q.value=null,o.value=null,i.value=null,a.value=!1,k.value=!1,mn.value.forEach(fe=>{fe.isActive=!1}),d.value="step1",ee.value=null,te.value={},X.value="",c.value="",f.value=null,p.value=null,v.value=null,he.value=null,Te.value="",Y.value=null,be.value="",oe.value=0,ce.value=0,Fe.value=!1,Le.value=0,Ee.value=[],Re.value={title:"",content:""},Ne.value=[],pt.value=0,Rt.value=-1,Bt.value=-1,en.value="",Wt.value=1,Ut.value=null,ct.value=[Jp,cg,dg,fg,pg],await xt()},Gt=fe=>fe.cover_image&&fe.cover_image.trim()?fe.cover_image:cQt,An=async(fe=!0,se=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!se&&!qe())return console.log("PPT数据未发生变化,跳过保存"),!1;a.value=!0,console.log("开始保存步骤信息到后端...");const Se={slides:Ne.value,title:X.value||"安全培训演示文稿",generatedAt:new Date().toISOString()},E=JSON.stringify(Se,null,2);console.log("PPT JSON数据已准备,长度:",E.length);let T="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0909_1757403783.png";if(ze.value==="red"&&(T="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板7专用封面图:",T)),ze.value==="blueTech"&&(T="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板8专用封面图:",T)),fe){for(const z of Ne.value)if(z.elements&&z.elements.length>0){for(const V of z.elements)if(V.type==="image"&&V.src&&V.src.startsWith("http")){if(V.src.includes("unsplash.com")||V.src.includes("placeholder")){console.log("跳过模板默认图片:",V.src);continue}T=V.src,console.log("使用用户上传的图片作为封面图:",T);break}if(T!=="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0909_1757403783.png"&&T!=="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png")break}}else if(r.value){const z=mn.value.find(V=>V.id===r.value);z&&z.cover_image&&z.cover_image.trim()&&(T=z.cover_image,console.log("保持使用现有封面图:",T))}const I={ai_conversation_id:r.value,step:1,ppt_json_url:"",ppt_json_content:JSON.stringify(Ne.value),cover_image:T};console.log("正在保存步骤信息:",I);const R=await Bn.saveStep(I);return R.statusCode===200?(console.log("步骤信息保存成功"),i.value=JSON.parse(JSON.stringify(Ne.value)),Ct.success("PPT生成完成并已保存!"),!0):(console.error("保存步骤信息失败:",R.msg),Ct.warning("PPT生成完成,但保存步骤信息失败"),!1)}catch(Se){return console.error("保存步骤信息时发生错误:",Se),Ct.warning("PPT生成完成,但保存步骤信息时发生错误"),!1}finally{a.value=!1}},Rn=async fe=>{console.log("点击安全培训历史记录:",fe),s.value=!0;try{n.value=fe;const se=r.value,Se=v.value,E=ee.value?JSON.parse(JSON.stringify(ee.value)):null,T=X.value,I=te.value?JSON.parse(JSON.stringify(te.value)):null,R=Ne.value?JSON.parse(JSON.stringify(Ne.value)):null;mn.value.forEach(V=>{V.isActive=V.id===fe.id}),m.value=!0;const z=async()=>{let V=!1;if(E&&E.length>0&&Se)if(!o.value||JSON.stringify({title:T,stats:I,chapters:E})!==JSON.stringify(o.value)){console.log("检测到当前大纲数据有变化,保存当前修改到历史记录:",Se);try{const Oe=r.value;r.value=Se;const Ze=ee.value,$e=X.value,dt=te.value;ee.value=E,X.value=T,te.value=I;const At=await It();if(r.value=Oe,r.value!==fe.id&&(ee.value=Ze,X.value=$e,te.value=dt),At){V=!0,console.log("当前大纲修改已保存到历史记录:",Se);const En=mn.value.find(Cn=>Cn.id===Se);En&&(En.rawData={...En.rawData,ppt_outline:JSON.stringify({title:T,stats:I,chapters:E,timestamp:Date.now()})},console.log("已更新历史记录列表中的大纲数据"))}}catch(Oe){console.error("保存当前大纲修改失败:",Oe)}}else console.log("大纲数据快照无变化,跳过保存");if(R&&R.length>0&&se)if(!i.value||JSON.stringify(R)!==JSON.stringify(i.value)){console.log("检测到当前PPT数据有变化,保存当前修改到历史记录:",se);try{const Oe=r.value;r.value=se;const Ze=Ne.value;Ne.value=R;const $e=await An();if(r.value=Oe,se!==fe.id&&(Ne.value=Ze),$e){V=!0,console.log("当前PPT修改已保存到历史记录:",se);const dt=mn.value.find(At=>At.id===se);dt&&(dt.rawData={...dt.rawData,ppt_json_content:JSON.stringify(R),timestamp:Date.now()},console.log("已更新历史记录列表中的PPT数据"))}}catch(Oe){console.error("保存当前PPT修改失败:",Oe)}}else console.log("PPT数据快照无变化,跳过保存");V||console.log("当前数据无变化,跳过保存")};if(r.value=fe.id,z(),fe.step===0){console.log("历史记录step为0,跳转到步骤二(大纲页)"),Ne.value=[],pt.value=0,Rt.value=-1,Bt.value=-1,en.value="",Wt.value=1,Ut.value=null,Fe.value=!1,oe.value=0;const V={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};M.value=[V];try{await sn(fe.id)?(console.log("安全培训历史对话加载成功",fe),M.value=M.value.filter(Oe=>Oe.id!==V.id),d.value="step2",m.value=!1,ee.value&&ee.value.length>0&&r.value===fe.id?(console.log("检测到已有大纲数据,直接使用(来自getConversationMessages)"),v.value=fe.id,o.value={title:X.value,stats:te.value,chapters:JSON.parse(JSON.stringify(ee.value))},console.log("设置大纲ID:",v.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面(使用getConversationMessages数据)"),dr(),Na()):(console.log("未找到大纲数据,显示聊天界面"),k.value=!0)):(M.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0)}catch(le){console.error("加载安全培训历史对话失败:",le),M.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0,m.value=!1}}else if(fe.step===1){console.log("历史记录step为1,直接跳转到PPT预览页面"),Ne.value=[],pt.value=0,Rt.value=-1,Bt.value=-1,en.value="",Wt.value=1,Ut.value=null;const V={type:"ai",content:"正在加载PPT数据...",displayContent:"正在加载PPT数据...",isTyping:!0,id:Date.now()+1,userFeedback:null};M.value=[V];try{if(await sn(fe.id)){console.log("安全培训历史对话加载成功"),M.value=M.value.filter($e=>$e.id!==V.id),d.value="step3",m.value=!1;const Oe=M.value.filter($e=>$e.type==="ai"),Ze=Oe.length>1?Oe[1]:Oe.length>0?Oe[0]:null;if(Ze&&Ze.content){console.log("找到AI回复,开始解析大纲并直接生成PPT预览"),v.value=fe.id;const $e=Ho(Ze.content);if($e&&$e.chapters&&$e.chapters.length>0){ee.value=$e.chapters,X.value=$e.title||"安全培训大纲",te.value=ue($e.chapters);try{if(console.log("step=1,从数据库读取已保存的PPT数据..."),fe.ppt_json_content&&fe.ppt_json_content.trim()){console.log("找到已保存的PPT JSON内容,直接加载...");const dt=JSON.parse(fe.ppt_json_content);console.log("解析的PPT数据:",dt),Ne.value=dt,Fe.value=!0,i.value=JSON.parse(JSON.stringify(dt)),console.log("PPT数据加载完成,共",dt.length,"张幻灯片");const At=mn.value.find(En=>En.id===fe.id);At&&(At.ppt_json_content=fe.ppt_json_content,console.log("已同步历史记录列表中的PPT数据"))}else{console.log("未找到保存的PPT内容,重新生成...");const dt=g2(ee.value,X.value),At=await ha(dt,X.value);await v2(At,!1),Fe.value=!0,console.log("PPT数据重新生成完成")}}catch(dt){console.error("加载PPT失败:",dt),Ct.error("加载PPT失败: "+dt.message)}}else console.log("解析大纲失败,显示聊天界面"),k.value=!0}else console.log("未找到AI回复,显示聊天界面"),k.value=!0}else M.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0}catch(le){console.error("加载安全培训历史对话失败:",le),M.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0,m.value=!1}}else console.log("历史记录step未知,显示聊天界面"),k.value=!0}catch(se){console.error("处理历史记录切换失败:",se),Ct.error("切换历史记录失败,请稍后重试")}finally{s.value=!1,m.value=!1}};let Kn=0,Fr=0;const ho=fe=>{const se=[g_,v_,m_,y_],Se=se[Kn%se.length];return Kn++,Se},Wr=fe=>{const se=[ek,tk,nk],Se=se[Fr%se.length];return Fr++,Se},bo=fe=>{console.log("点击功能卡片:",fe),k.value=!0;let se="";if(typeof fe=="string"&&fe.length>0)se=`请详细介绍${fe}的相关内容`;else switch(fe){case"safety-training":se="请详细介绍安全培训课程的相关内容";break;case"safety-assessment":se="请介绍安全评估测试的关键要点";break;case"safety-regulations":se="请查询相关的安全法规和标准";break;case"emergency-procedures":se="请介绍应急处理程序的关键步骤";break;default:se=`请详细介绍${fe}的相关内容`}t.value=se,Bo()},Bo=async()=>{if(t.value.trim()&&!D.value){console.log("开始发送消息:",t.value,"文件:",q.value),D.value=!0,w.value=!0,k.value=!0,M.value.length===0&&(mn.value.forEach(E=>{E.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const fe={type:"user",content:t.value,file:q.value,id:Date.now()};M.value.push(fe);const se={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};M.value.push(se);const Se=t.value;t.value="",q.value&&J5(),Mn(),console.log("当前聊天消息:",M.value);try{let E=Se;fe.file&&fe.file.content&&(E=`<word>${fe.file.content}</word><filename>${fe.file.name}</filename><filesize>${fe.file.size}</filesize>${Se}`);const T=await Bn.sendDeepseekMessage({business_type:1,message:E});if(console.log("DeepSeek API响应:",T),T.statusCode===200){const I=T.data.reply;r.value=T.data.ai_conversation_id;const R=Q5(I),z=O9(R,fe.file),V=Y5(z),le=[];let Oe="",Ze=!1,$e="";for(let Cn=0;Cn<V.length;Cn++){const yn=V[Cn];yn==="<"?(Oe&&!Ze&&(le.push({type:"text",content:Oe}),Oe=""),Ze=!0,$e=yn):yn===">"?($e+=yn,le.push({type:"tag",content:$e}),Ze=!1,$e=""):Ze?$e+=yn:Oe+=yn}Oe&&le.push({type:"text",content:Oe}),console.log("分割后的文本块:",le);let dt=0,At=0;const En=setInterval(()=>{if(dt<le.length){const Cn=le[dt];if(Cn.type==="tag")se.displayContent+=Cn.content,dt++,At=0;else if(At<Cn.content.length){const un=se.displayContent+Cn.content[At];se.displayContent=un,At++}else dt++,At=0;M.value=[...M.value];const yn=document.querySelector(`[data-message-index="${M.value.length-1}"] .message-content`);yn&&(yn.style.width="fit-content"),Mn(),Vt(()=>{Mn()})}else{se.isTyping=!1,se.content=R,clearInterval(En),console.log("打字完成");const Cn=document.querySelector(`[data-message-index="${M.value.length-1}"] .message-content`);Cn&&(Cn.style.width="100%"),setTimeout(async()=>{M.value=[...M.value],console.log("打字完成,AI回复内容已全部显示"),await xt(),r.value>0&&(mn.value.forEach(yn=>{yn.isActive=yn.id===r.value}),console.log("设置最新历史记录为激活状态,conversationId:",r.value),v.value=r.value,console.log("设置新对话的大纲ID:",v.value)),Mn(),w.value=!1,console.log("AI回复完成,解禁历史记录和新建任务"),console.log("AI回复完成,开始检查是否为PPT需求"),Cr(R)},100)}},20)}else se.isTyping=!1,se.content="抱歉,我暂时无法回答您的问题,请稍后重试。",se.displayContent=se.content,console.error("DeepSeek API调用失败:",T),w.value=!1}catch(E){console.error("发送消息失败:",E),se.isTyping=!1,se.content="抱歉,网络连接出现问题,请检查网络后重试。",se.displayContent=se.content,w.value=!1}finally{D.value=!1}}},yr=async()=>{try{h.value=!0,w.value=!0;const fe=r.value,Se=`${X.value||"安全培训大纲"}`;console.log("开始生成新大纲111:",Se),console.log("锁定的ai_conversation_id:",fe),console.log("outlineTitle.value:",X.value);const E=await Bn.sendDeepseekMessage({business_type:1,message:X.value,ai_conversation_id:fe});if(console.log("新大纲生成API响应:",E),E.statusCode===200){const T=E.data.reply,I=Q5(T),R=Ho(I);R&&R.chapters&&R.chapters.length>0?(console.log("新大纲解析成功:",R),ee.value=R.chapters,te.value=R.stats,X.value=R.title,f.value=null,c.value="",v.value=null,await Ft(fe,R.chapters,R.title,R.stats),Ct.success("大纲已生成")):(console.log("新大纲解析失败"),Ct.error("新大纲生成失败,请重试"))}else console.error("新大纲生成API调用失败:",E),Ct.error("生成失败,请重试")}catch(fe){console.error("生成新大纲失败:",fe),Ct.error("生成失败,请重试")}finally{h.value=!1,w.value=!1}},Vr=async()=>{try{if(!ee.value||ee.value.length===0){Ct.warning("请先生成大纲内容");return}g.value=!0,w.value=!0;const fe=Ge(ee.value,X.value),se=`请基于以下安全培训大纲内容生成一份考试试卷:
- 大纲标题:${X.value}
- 大纲内容:
- ${fe}
- 请生成一份包含以下题型的考试试卷:
- - 单选题:5题,每题5分,共25分
- - 判断题:5题,每题3分,共15分
- - 多选题:5题,每题8分,共40分
- - 简答题:2题,每题10分,共20分
- 试卷总分:100分
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- {
- "title": "${X.value} - 安全培训考试",
- "totalScore": 100,
- "totalQuestions": 17,
- "singleChoice": {
- "scorePerQuestion": 5,
- "totalScore": 25,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }
- ]
- },
- "judge": {
- "scorePerQuestion": 3,
- "totalScore": 15,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }
- ]
- },
- "multiple": {
- "scorePerQuestion": 8,
- "totalScore": 40,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }
- ]
- },
- "short": {
- "scorePerQuestion": 10,
- "totalScore": 20,
- "count": 2,
- "questions": [
- {
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }
- ]
- }
- }
- 注意:
- 1. 所有题目内容必须基于提供的大纲内容
- 2. 题目难度适中,符合安全培训考试要求
- 3. 严格按照JSON格式返回,不要有多余字符
- 4. 单选题和判断题的选项要合理
- 5. 多选题至少要有2个正确答案
- 6. 简答题要提供清晰的答题要点
- 7. 必须为每道题设置正确答案
- 8. 简答题答案字数不超过500字`;console.log("发送给AI的考试生成提示词:",se);const Se=await Bn.reProduceSingleQuestion({message:se});if(Se.statusCode===200){const E=Se.data.reply,T=Se.data.ai_conversation_id;console.log("AI生成的考试试卷:",E),console.log("AI对话ID:",T),r.value=T;const I=wo(E);zr(I),Ct.success("考试试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(fe){console.error("生成考题失败:",fe),Ct.error("生成考题失败,请重试")}finally{g.value=!1,w.value=!1}},wo=fe=>{try{const se=fe.match(/\{[\s\S]*\}/);if(se){const Se=JSON.parse(se[0]);return Nr(Se),Se}else throw new Error("未找到有效的JSON数据")}catch(se){return console.error("解析AI回复失败:",se),Br()}},Nr=fe=>{fe.singleChoice&&fe.singleChoice.questions&&fe.singleChoice.questions.forEach(se=>{se.selectedAnswer||(se.selectedAnswer=""),(!se.options||se.options.length===0)&&(se.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),fe.judge&&fe.judge.questions&&fe.judge.questions.forEach(se=>{se.selectedAnswer||(se.selectedAnswer="")}),fe.multiple&&fe.multiple.questions&&fe.multiple.questions.forEach(se=>{se.selectedAnswers||(se.selectedAnswers=[]),(!se.options||se.options.length===0)&&(se.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),fe.short&&fe.short.questions&&fe.short.questions.forEach(se=>{se.outline||(se.outline={keyFactors:"答题要点、关键因素、示例答案"})})},Br=()=>({title:"安全培训考试",totalScore:100,totalQuestions:17,singleChoice:{scorePerQuestion:5,totalScore:25,count:5,questions:[]},judge:{scorePerQuestion:3,totalScore:15,count:5,questions:[]},multiple:{scorePerQuestion:8,totalScore:40,count:5,questions:[]},short:{scorePerQuestion:10,totalScore:20,count:2,questions:[]}}),zr=fe=>{try{const se=Ao(fe),Se=new Blob([se],{type:"application/msword"}),E=URL.createObjectURL(Se),T=document.createElement("a");T.setAttribute("href",E),T.setAttribute("download",`${fe.title}_${new Date().toISOString().split("T")[0]}.doc`),T.style.visibility="hidden",document.body.appendChild(T),T.click(),document.body.removeChild(T),URL.revokeObjectURL(E),Ct.success("考试文件已下载!")}catch(se){console.error("导出考试文件失败:",se),Ct.error("导出考试文件失败,请重试")}},Ao=fe=>{const se=new Date().toLocaleString("zh-CN");let Se=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${fe.title||"考试试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- margin-bottom: 14px;
- line-height: 1.6;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-radius: 4px;
- font-weight: bold;
- color: #2c5aa0;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${fe.title||"考试试卷"}</div>
- <div class="exam-info">
- 总分:${fe.totalScore||0}分 | 总题数:${fe.totalQuestions||0}题 | 生成时间:${se}
- </div>
- </div>`;return fe.singleChoice&&fe.singleChoice.questions.length>0&&(Se+=`
- <div class="section">
- <div class="section-title">一、单选题(${fe.singleChoice.count}题,每题${fe.singleChoice.scorePerQuestion}分,共${fe.singleChoice.totalScore}分)</div>`,fe.singleChoice.questions.forEach((E,T)=>{Se+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${T+1}.</span> ${E.text}
- </div>
- <div class="options">`,E.options.forEach(I=>{Se+=`
- <div class="option">${I.key}. ${I.text}</div>`}),Se+=`
- </div>
- <div class="answer">正确答案:${E.selectedAnswer}</div>
- </div>`}),Se+=`
- </div>`),fe.judge&&fe.judge.questions.length>0&&(Se+=`
- <div class="section">
- <div class="section-title">二、判断题(${fe.judge.count}题,每题${fe.judge.scorePerQuestion}分,共${fe.judge.totalScore}分)</div>`,fe.judge.questions.forEach((E,T)=>{Se+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${T+1}.</span> ${E.text}
- </div>
- <div class="answer">正确答案:${E.selectedAnswer}</div>
- </div>`}),Se+=`
- </div>`),fe.multiple&&fe.multiple.questions.length>0&&(Se+=`
- <div class="section">
- <div class="section-title">三、多选题(${fe.multiple.count}题,每题${fe.multiple.scorePerQuestion}分,共${fe.multiple.totalScore}分)</div>`,fe.multiple.questions.forEach((E,T)=>{Se+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${T+1}.</span> ${E.text}
- </div>
- <div class="options">`,E.options.forEach(I=>{Se+=`
- <div class="option">${I.key}. ${I.text}</div>`}),Se+=`
- </div>
- <div class="answer">正确答案:${E.selectedAnswers.join(", ")}</div>
- </div>`}),Se+=`
- </div>`),fe.short&&fe.short.questions.length>0&&(Se+=`
- <div class="section">
- <div class="section-title">四、简答题(${fe.short.count}题,每题${fe.short.scorePerQuestion}分,共${fe.short.totalScore}分)</div>`,fe.short.questions.forEach((E,T)=>{Se+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${T+1}.</span> ${E.text}
- </div>
- <div class="answer">答题要点:${E.outline.keyFactors}</div>
- </div>`}),Se+=`
- </div>`),Se+=`
- </body>
- </html>`,Se},Cr=fe=>{console.log("AI回复完成,直接解析并跳转到步骤二");const se=Ho(fe);se&&se.chapters&&se.chapters.length>0?(console.log("解析成功,更新大纲数据:",se),ee.value=se.chapters,te.value=se.stats,X.value=se.title,f.value===null&&p.value===null?(console.log("新生成的大纲,重置反馈状态"),f.value=null,c.value="",v.value=null,d.value="step2",console.log("已跳转到步骤二:培训大纲界面"),console.log("当前大纲数据:",ee.value),console.log("当前统计信息:",te.value),console.log("当前标题:",X.value),dr(),Na()):(console.log("从历史记录加载的大纲,保持现有反馈状态:",f.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面"),console.log("当前大纲数据:",ee.value),console.log("当前统计信息:",te.value),console.log("当前标题:",X.value),dr(),Na())):console.log("解析失败或没有章节数据")},Ho=fe=>{try{console.log("开始解析AI回复中的大纲信息"),console.log("AI回复内容:",fe);let se="安全培训大纲";const Se=fe.split(`
- `);for(let z of Se){const V=z.trim();if(V.includes("以下是为您准备的PPT大纲")){const le=Se.indexOf(z)+1;if(le<Se.length){const Oe=Se[le].trim();if(Oe&&Oe.length>0&&!Oe.includes("以下")&&!Oe.includes("大纲统计信息")){se=Oe;break}}}if(V.startsWith("#")&&V.length>1){se=V.replace(/^#+\s*/,"").trim();break}}const E=[],T=fe.split(`
- `);let I=null;console.log("开始解析行数:",Se.length);for(let z=0;z<Se.length;z++){const le=Se[z].trim();console.log(`第${z}行: "${le}"`);const Oe=(le.match(/^#+/)||[""])[0].length;if(Oe===1){console.log("找到大标题:",le),se=le.replace(/^#\s*/,"").trim();continue}else if(Oe===2){console.log("找到章节:",le),I={title:le.replace(/^##\s*/,"").trim(),sections:[]},E.push(I);continue}else if(Oe===3){if(I){console.log("找到小节:",le);let Ze=le.replace(/^###\s*/,"").trim();I.sections.push({title:Ze,subsections:[]});continue}}else if(Oe===4){if(I&&I.sections.length>0){console.log("找到子标题:",le);let Ze=le.replace(/^####\s*/,"").trim();I.sections[I.sections.length-1].subsections.push({title:Ze,subsubsections:[]});continue}}else if(le.startsWith("-")){if(I&&I.sections.length>0){console.log("找到具体内容要点:",le);let Ze=le.replace(/^-\s*/,"").trim();const $e=I.sections[I.sections.length-1];if($e.subsections.length>0){const dt=$e.subsections[$e.subsections.length-1];dt.subsubsections||(dt.subsubsections=[]),dt.subsubsections.push({title:Ze,content:""})}continue}}else if(Oe===0&&le.match(/^\d+\.\d+\.\d+/)){if(I&&I.sections.length>0){console.log("找到子小节(数字格式):",le),I.sections[I.sections.length-1].subsections.push({title:le});continue}}else if(Oe===0&&le.match(/^\d+\.\d+/)&&I){console.log("找到小节(数字格式):",le),I.sections.push({title:le,subsections:[]});continue}if(!I&&le&&le.length>5&&!le.includes("以下")&&!le.includes("以上")&&!le.startsWith("#")&&!le.includes("大纲统计信息")&&(console.log("将内容作为章节处理:",le),I={title:le,sections:[]},E.push(I)),I&&le&&le.length>3&&!le.match(/^第[一二三四五六七八九十]+章/)&&!le.match(/^第\d+章/)&&!le.match(/^\d+\.\d+/)&&!le.match(/^[一二三四五六七八九十]+\.\d+/)&&!le.match(/^\d+\.\d+\.\d+/)&&!le.match(/^[一二三四五六七八九十]+\.\d+\.\d+/)&&!le.includes("以下")&&!le.includes("以上")&&!le.includes("大纲统计信息")&&!le.includes("预计PPT页数")&&!le.includes("预计讲解时长")&&!le.includes("总章节数")&&!le.includes("总小节数")&&!le.startsWith("#")){I.sections.length===0&&I.sections.push({title:"内容详情",subsections:[]});const Ze=I.sections[I.sections.length-1];if(Ze.subsections||(Ze.subsections=[]),le&&le!=="内容要点"&&le!=="概述"&&le!=="内容详情"&&!le.includes("总章节数")&&!le.includes("总小节数")&&!le.includes("预计PPT页数")&&!le.includes("预计讲解时长")&&!le.startsWith("-")&&le.length>2){const $e=Ze.subsections[Ze.subsections.length-1];if($e&&$e.subsubsections&&$e.subsubsections.length>0){const dt=$e.subsubsections[$e.subsubsections.length-1];if(dt&&!dt.content){dt.content=le;continue}}Ze.subsections.push({title:le,subsubsections:[]})}}}E.forEach(z=>{z&&z.sections&&z.sections.forEach(V=>{V&&!V.subsections&&(V.subsections=[]),V.subsections&&V.subsections.forEach(le=>{le.subsubsections||(le.subsubsections=[])})})});const R=ue(E);return{title:se,stats:R,chapters:E}}catch(se){return console.error("解析大纲信息失败:",se),null}};St(Z,fe=>{fe&&(console.error("语音识别错误:",fe),Ct.error(fe))}),jn(async()=>{console.log("🚀 页面初始化开始,优先加载历史记录..."),m.value=!0;try{await xt(),console.log("✅ 历史记录加载完成");const fe=Promise.all([k9(),T9()]);console.log("🎉 页面初始化完成")}catch(fe){console.error("❌ 页面初始化失败:",fe)}finally{m.value=!1}});const Xo=fe=>{t.value=fe,console.log("选择推荐问题:",fe),k.value=!0,Bo()},qi=()=>{if(console.log("getEvaluationStatus - outlineFeedback:",f.value,"evaluation:",c.value),f.value!==null)switch(f.value){case 2:return"satisfied";case 3:return"unsatisfied";case 0:return"";default:return""}return c.value},na=async fe=>{try{console.log("设置评价:",fe);const se=qi();let Se;se===fe?(Se=0,console.log("取消评价,发送0")):(Se=fe==="satisfied"?2:3,console.log("设置新评价:",Se)),console.log("currentAiMessageId.value",p.value);const E=await Bn.likeAndDislike({id:p.value,user_feedback:Se});E.statusCode===200?(console.log("评价保存成功"),Se===0?(c.value="",f.value=0,Ct.success("评价已取消")):(c.value=fe,f.value=Se,Ct.success("评价已保存"))):(console.error("评价保存失败:",E),Ct.error("评价保存失败,请重试"))}catch(se){console.error("设置评价失败:",se),Ct.error("评价设置失败,请重试")}},ti=(fe,se,Se,E)=>{he.value=fe,Te.value=se,Y.value=Se;let T=E;se==="chapter"?T=E.replace(/^第[一二三四五六七八九十\d]+章\s*/,""):se==="section"?T=E.replace(/^\d+\.\d+\s*/,""):se==="subsection"?T=E.replace(/^####\s*/,""):se==="subsubsection"&&(T=E.replace(/^-\s*/,"")),be.value=T,console.log("开始编辑:",{type:se,index:Se,content:T})},Lo=async()=>{if(!be.value.trim()){console.log("编辑内容为空,取消保存"),Yo();return}try{if(Te.value==="title")X.value=be.value.trim();else if(Te.value==="chapter"){const fe=Y.value,Se=ee.value[fe].title.match(/^(第[一二三四五六七八九十\d]+章)\s*/);if(Se){const T=`${Se[1]} ${be.value.trim()}`;ee.value[fe].title=T}else{const E=["一","二","三","四","五","六","七","八","九","十"],I=`第${fe<E.length?E[fe]:(fe+1).toString()}章 ${be.value.trim()}`;ee.value[fe].title=I}}else if(Te.value==="section"){const[fe,se]=Y.value.split("-");ee.value[fe].sections[se].title=be.value.trim()}else if(Te.value==="subsection"){const[fe,se,Se]=Y.value.split("-");ee.value[fe].sections[se].subsections[Se].title=be.value.trim()}else if(Te.value==="subsubsection"){const[fe,se,Se,E]=Y.value.split("-");ee.value[fe].sections[se].subsections[Se].subsubsections[E].title=be.value.trim()}else if(Te.value==="subsubsection-content"){const[fe,se,Se,E]=Y.value.split("-");ee.value[fe].sections[se].subsections[Se].subsubsections[E].content=be.value.trim()}console.log("保存成功:",be.value.trim()),we(),await It(!0),Yo(),Ct.success("保存成功!")}catch(fe){console.error("保存失败:",fe),Ct.error("保存失败,请重试")}},Yo=()=>{he.value=null,Te.value="",Y.value=null,be.value="",console.log("取消编辑")},Pa=async(fe,se)=>{try{if(fe==="chapter"){if(ee.value.length<=2){Ct.warning("至少需要保留2个章节");return}ee.value.splice(se,1)}else if(fe==="section"){const[Se,E]=se.split("-");if(ee.value[Se].sections.length<=1){Ct.warning("每个章节至少需要保留1个小节");return}ee.value[Se].sections.splice(E,1)}else if(fe==="subsection"){const[Se,E,T]=se.split("-");ee.value[Se].sections[E].subsections.splice(T,1)}else if(fe==="subsubsection"){const[Se,E,T,I]=se.split("-");ee.value[Se].sections[E].subsections[T].subsubsections.splice(I,1)}we(),await It(!0),Ct.success("删除成功!")}catch(Se){console.error("删除失败:",Se),Ct.error("删除失败,请重试")}},Ai=(fe,se)=>{try{if(fe==="chapter"){const Se=ee.value||[];let E=0;const T=["","一","二","三","四","五","六","七","八","九","十"];Se.forEach(R=>{const z=R.title.match(/^第([一二三四五六七八九十\d]+)章/);if(z){let V=0;const le=z[1];if(/^\d+$/.test(le))V=parseInt(le);else{const Oe=T.indexOf(le);Oe>0&&(V=Oe)}E=Math.max(E,V)}});const I=E+1;return`第${T[I]}章`}else if(fe==="section"){const Se=se,E=ee.value[Se]?.sections||[];let T=0;E.forEach(R=>{const z=R.title.match(/^\d+\.(\d+)/);if(z){const V=parseInt(z[1])||0;T=Math.max(T,V)}});const I=T+1;return`${Se+1}.${I}`}else if(fe==="subsection"){const[Se,E]=se.split("-"),T=ee.value[Se]?.sections[E]?.subsections||[];let I=0;T.forEach(z=>{const V=z.title.match(/^\d+\.\d+\.(\d+)/);if(V){const le=parseInt(V[1])||0;I=Math.max(I,le)}});const R=I+1;return`${parseInt(Se)+1}.${parseInt(E)+1}.${R}`}else if(fe==="subsubsection"){const[Se,E,T]=se.split("-"),I=ee.value[Se]?.sections[E]?.subsections[T]?.subsubsections||[];let R=0;I.forEach(V=>{const le=V.title.match(/^\d+\.\d+\.\d+\.(\d+)/);if(le){const Oe=parseInt(le[1])||0;R=Math.max(R,Oe)}});const z=R+1;return`${parseInt(Se)+1}.${parseInt(E)+1}.${parseInt(T)+1}.${z}`}return""}catch(Se){return console.error("生成编号失败:",Se),""}},Ci=(fe,se)=>{if(fe.target.tagName==="TEXTAREA"||fe.target.tagName==="INPUT"||fe.target.closest(".edit-input-container")||fe.target.closest(".edit-input-wrapper")){fe.preventDefault();return}if(Te.value!==""){fe.preventDefault();return}De.value=se,fe.dataTransfer.effectAllowed="move",fe.dataTransfer.setData("text/html",fe.target.outerHTML),fe.target.style.opacity="0.5"},xi=fe=>{fe.target.style.opacity="1",De.value=null,pe.value=null},mi=(fe,se)=>{fe.preventDefault(),fe.dataTransfer.dropEffect="move",pe.value=se},ra=fe=>{fe.currentTarget.contains(fe.relatedTarget)||(pe.value=null)},_r=async(fe,se)=>{fe.preventDefault();const Se=De.value,E=se;if(!(Se===null||Se===E)){try{const T=[...ee.value],[I]=T.splice(Se,1);T.splice(E,0,I);const R=["","一","二","三","四","五","六","七","八","九","十"];T.forEach((z,V)=>{const le=z.title.match(/^第[一二三四五六七八九十\d]+章\s*(.+)$/);if(le){const Oe=le[1];z.title=`第${R[V+1]}章 ${Oe}`}else z.title=`第${R[V+1]}章 ${z.title}`;z.sections&&z.sections.length>0&&z.sections.forEach((Oe,Ze)=>{const $e=Oe.title.match(/^\d+\.\d+\s*(.+)$/);$e&&(Oe.title=$e[1]),Oe.subsections&&Oe.subsections.length>0&&Oe.subsections.forEach((dt,At)=>{const En=dt.title.match(/^\d+\.\d+\.\d+\s*(.+)$/);En&&(dt.title=En[1])})})}),ee.value=T,we(),await It(!0),Ct.success("章节顺序已调整,编号已重新排序")}catch(T){console.error("调整章节顺序失败:",T),Ct.error("调整章节顺序失败,请重试")}De.value=null,pe.value=null}},Si=async(fe,se)=>{try{if(fe==="chapter"){if(ee.value.length>=6){Ct.warning("最多只能添加6个章节");return}const Se=Ai("chapter",null),E={title:`${Se} 新章节`,sections:[{title:"新小节",subsections:[]}]};ee.value.push(E),ti(E,"chapter",ee.value.length-1,`${Se} 新章节`)}else if(fe==="section"){const E={title:`${Ai("section",se)} 新小节`,subsections:[]};ee.value[se].sections.push(E),ti(E,"section",`${se}-${ee.value[se].sections.length-1}`,"新小节")}else if(fe==="subsection"){const[Se,E]=se.split("-"),T=Ai("subsection",se),I={title:"新子标题",subsubsections:[]};ee.value[Se].sections[E].subsections.push(I),ti(I,"subsection",`${Se}-${E}-${ee.value[Se].sections[E].subsections.length-1}`,"新子标题")}else if(fe==="subsubsection"){const[Se,E,T]=se.split("-"),I=Ai("subsubsection",se),R={title:`${I} 新具体内容要点`,content:""};ee.value[Se].sections[E].subsections[T].subsubsections||(ee.value[Se].sections[E].subsections[T].subsubsections=[]),ee.value[Se].sections[E].subsections[T].subsubsections.push(R),ti(R,"subsubsection",`${Se}-${E}-${T}-${ee.value[Se].sections[E].subsections[T].subsubsections.length-1}`,`${I} 新具体内容要点`)}we(),await It(!0)}catch(Se){console.error("添加失败:",Se),Ct.error("添加失败,请重试")}},ha=async(fe,se)=>{console.log("开始填充AIPPT内容...");try{const Se=`请为以下PPT数据填充内容,要求:
- 1. title字段:15字以内
- 2. text字段:20-50字以内
- 3. 内容要专业、实用、简洁
- 4. 保持JSON格式不变,只填充空的内容
- 5. 请自由发挥,生成丰富多样的标题和内容
- 6. 重要:必须保持原有的幻灯片数量和结构,不能删除或合并任何幻灯片
- 7. 对于每个content类型的幻灯片,确保items数组有4个元素
- PPT主题:${se}
- PPT数据:${JSON.stringify(fe,null,2)}
- 请直接返回完整的JSON数据,不要添加任何说明文字。确保所有空的内容都被填充,并且保持原有的幻灯片数量。`;console.log("发送AIPPT填充请求...");const E=await Bn.reProduceSingleQuestion({message:Se});console.log("API响应:",E);let T=null;if(E&&E.data?E.data&&typeof E.data=="object"&&E.data.reply?T=E.data.reply:E.data&&typeof E.data=="string"?T=E.data:T=JSON.stringify(E.data):E&&E.message?T=E.message:E&&E.content?T=E.content:E&&E.reply?T=E.reply:E&&typeof E=="string"?T=E:E&&typeof E=="object"&&(T=JSON.stringify(E)),T&&typeof T=="string"&&T.trim()!=="")try{const I=JSON.parse(T.trim());if(console.log("AI返回的AIPPT数据解析成功:",I),Array.isArray(I))return console.log("AIPPT内容填充完成,原始数量:",fe.length,"填充后数量:",I.length),I.length!==fe.length&&(console.warn("警告:AI返回的幻灯片数量与原始数量不一致!"),console.warn("原始数量:",fe.length,"AI返回数量:",I.length)),I;throw new Error("AI返回的数据不是数组格式")}catch(I){throw console.error("解析AI返回的JSON失败:",I),console.log("AI返回的原始内容:",T),new Error("AI返回的数据格式不正确")}else throw new Error("AI返回内容为空或格式不正确")}catch(Se){throw console.error("填充AIPPT内容失败:",Se),new Error("填充AIPPT内容失败: "+Se.message)}},Qe=()=>{if(!o.value)return!0;const fe={title:X.value,stats:te.value,chapters:ee.value};return JSON.stringify(fe)!==JSON.stringify(o.value)},qe=()=>i.value?JSON.stringify(Ne.value)!==JSON.stringify(i.value):!0,ne=(fe,se)=>{if(fe.match(/^第[一二三四五六七八九十\d]+章/))return fe;const Se=["一","二","三","四","五","六","七","八","九","十"];return`第${se<Se.length?Se[se]:(se+1).toString()}章 ${fe}`},Ie=fe=>fe.replace(/^第[一二三四五六七八九十\d]+章\s*/,""),Ge=(fe,se)=>{let Se=`# ${se}
- `;return fe.forEach((E,T)=>{Se+=`## ${E.title}
- `,E.sections&&E.sections.length>0&&E.sections.forEach((I,R)=>{Se+=`### ${I.title}
- `,I.subsections&&I.subsections.length>0&&I.subsections.forEach((z,V)=>{Se+=`#### ${z.title}
- `,z.subsubsections&&z.subsubsections.length>0&&z.subsubsections.forEach((le,Oe)=>{Se+=`- ${le.title}
- `,le.content&&le.content.trim()&&(Se+=`${le.content}
- `)})})}),Se+=`
- `}),Se},Ft=async(fe,se,Se,E)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!fe||!se)return console.log("缺少conversationId或大纲数据,跳过后端保存"),!1;a.value=!0;const T=Ge(se,Se);console.log("直接保存大纲到后端:",{ai_conversation_id:fe,markdownContent:T});const I=await Bn.savePPTOutline({ai_conversation_id:fe,ppt_content:T});return I.statusCode===200?(console.log("大纲已直接保存到后端服务器,conversation_id:",fe),!0):(console.error("直接保存到后端服务器失败:",I),!1)}catch(T){return console.error("直接保存大纲失败:",T),!1}finally{a.value=!1}},It=async(fe=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!r.value||!ee.value)return console.log("缺少ai_conversation_id或大纲数据,跳过后端保存"),!1;if(!fe&&!Qe())return console.log("大纲数据未发生变化,跳过保存"),!1;a.value=!0;const se=Ge(ee.value,X.value);console.log("准备保存大纲到后端:",{ai_conversation_id:r.value,markdownContent:se});const Se=await Bn.savePPTOutline({ai_conversation_id:r.value,ppt_content:se});return Se.statusCode===200?(console.log("大纲已保存到后端服务器,conversation_id:",r.value),o.value={title:X.value,stats:te.value,chapters:JSON.parse(JSON.stringify(ee.value))},!0):(console.error("保存到后端服务器失败:",Se),!1)}catch(se){return console.error("保存大纲失败:",se),!1}finally{a.value=!1}},on=()=>{O.value=!0,setTimeout(()=>{O.value=!1},1e3)},vn=()=>{try{if(!ee.value||ee.value.length===0){Ct.warning("请先生成大纲后再使用WPS AI PPT");return}ex(),on(),_.value="https://aippt.wps.cn/aippt/",P.value=!0,Ct.success("正在加载WPS AI PPT..."),console.log("WPS AI PPT集成页面已打开")}catch(fe){console.error("WPS AI PPT加载失败:",fe),Ct.error("WPS AI PPT加载失败,请稍后重试")}},_n=()=>{console.log("iframe加载失败"),Ct.warning("页面加载失败,请尝试其他选项或检查网络连接")};Q(null);const or=()=>{try{console.log("打开测试PPT"),P.value=!0,_.value=B.value.link_url,Ct.success("正在打开测试PPT...")}catch(fe){console.error("打开测试PPT失败:",fe),Ct.error("打开测试PPT失败,请重试")}},Vn=()=>{if(console.log("返回步骤二:编辑大纲"),!ee.value||ee.value.length===0){console.log("大纲数据未加载,重新加载历史记录数据");const fe=mn.value.find(se=>se.id===r.value);if(fe)if(fe.rawData&&fe.rawData.ppt_outline&&fe.rawData.ppt_outline.trim())try{const se=JSON.parse(fe.rawData.ppt_outline);ee.value=se.chapters,X.value=se.title||"安全培训大纲",te.value=ue(se.chapters),v.value=fe.id,o.value={title:X.value,stats:te.value,chapters:JSON.parse(JSON.stringify(se.chapters))},console.log("重新加载大纲数据成功:",X.value)}catch(se){console.error("重新加载大纲数据失败:",se)}else console.log("当前历史记录没有大纲数据")}else console.log("大纲数据已存在,直接跳转");d.value="step2"},xr=()=>{oe.value>0?oe.value--:oe.value=ct.value.length-1},lr=()=>{oe.value<ct.value.length-1?oe.value++:oe.value=0},nr=fe=>{oe.value=fe,Fe.value&&Ee.value[fe]&&(Re.value={...Ee.value[fe]})},Or=fe=>{pt.value=fe,console.log("切换到PPT幻灯片:",fe),Vt(()=>{const se=xp.value;if(se){const E=fe*146-se.clientWidth/2+73;se.scrollLeft=Math.max(0,E),console.log(`缩略图条已滚动到第${fe+1}页,位置:${E}`)}})},cr=fe=>{fe.preventDefault();const se=fe.currentTarget,Se=fe.deltaY>0?200:-200;se.scrollLeft+=Se},dr=()=>{if(console.log("开始加载本地PPT数据"),Ne.value&&Ne.value.length>0){console.log("使用已生成的PPT数据:",Ne.value.length,"张幻灯片"),Ee.value=Ne.value.map((se,Se)=>({title:se.data?.title||`第${Se+1}页`,content:se.data?.text||se.data?.items?.map(E=>E.title).join(`
- `)||"内容",type:se.type})),Na(),oe.value=0,Re.value={...Ee.value[0]},Ct.success("生成的PPT数据加载成功"),console.log("加载的PPT页数:",Ee.value.length);return}console.log("加载默认template5内容");const fe=[{title:"第1页标题",content:"第1页内容",type:"cover"},{title:"第2页标题",content:"第2页内容",type:"content"},{title:"第3页标题",content:"第3页内容",type:"content"},{title:"第4页标题",content:"第4页内容",type:"content"},{title:"第5页标题",content:"第5页内容",type:"content"}];Ee.value=fe,Na(),oe.value=0,Re.value={...fe[0]},console.log("加载的PPT页数:",fe.length)},ye=fe=>{const se=fe.target;se.classList.contains("slide-title")?Re.value.title=se.textContent:se.classList.contains("slide-body")&&(Re.value.content=se.textContent),Ee.value[oe.value]&&(Ee.value[oe.value]={...Re.value}),Na()},ae=Q(!1),de=async()=>{if(!ae.value)try{switch(ae.value=!0,w.value=!0,console.log("exportPPTX: 设置 isProcessing = true"),Le.value){case 0:await On();break;case 1:await Ce();break;case 2:await Lt();break;default:Ct.warning("未知的下载选项")}}catch(fe){console.error("导出失败:",fe),Ct.error("导出失败,请重试")}finally{ae.value=!1,w.value=!1,console.log("exportPPTX: 重置 isProcessing = false")}},Ce=async()=>{try{console.log("开始生成考试题目..."),g.value=!0,w.value=!0;const fe=`请基于以下安全培训内容生成完整的考试题目:
- 培训主题:${X.value||"安全培训"}
- 培训内容:
- ${Ne.value.map((Se,E)=>{const T=Se.elements?.map(I=>I.type==="text"?I.content.replace(/<[^>]*>/g,""):"").filter(I=>I.trim()).join(" ");return`第${E+1}页:${T}`}).join(`
- `)}
- 请严格按照以下格式生成考试题目:
- 一、单选题(每题4分,共60分)
- 1. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:X
- 解析:详细解析内容
- 2. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:X
- 解析:详细解析内容
- 二、多选题(每题4分,共20分)
- 1. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:AB
- 解析:详细解析内容
- 三、判断题(每题2分,共20分)
- 1. 题目内容
- 正确答案:正确/错误
- 解析:详细解析内容
- 四、简答题(每题10分,共20分)
- 1. 题目内容
- 答题要点:详细答案内容和评分标准
- 2. 题目内容
- 答题要点:详细答案内容和评分标准
- 3. 题目内容
- 答案:详细答案内容和评分标准
- 重要要求:
- 1. 必须严格按照上述格式输出,不能省略任何内容
- 2. 单选题15道(每题2分,共30分),多选题10道(每题3分,共30分),判断题10道(每题2分,共20分),简答题2道(每题10分,共20分)
- 3. 总分控制在100分,不包含填空题
- 4. 题目要全面覆盖培训内容的主要知识点
- 5. 每道题都要包含正确答案和详细解析
- 6. 简答题的答案必须详细具体,不能写"未设置"或"待补充"
- 7. 所有答案都要具体详细,不能省略或留空
- 8. 严格按照示例格式,每道简答题后面必须跟"答题要点:"开头的详细内容
- 9. 简答题答案必须基于题目内容提供具体的知识点和实际应用示例
- 10. 答案内容要丰富详实,至少包含3-5个要点,每个要点都要有具体说明
- 11. 每道简答题的答题要点必须包含:核心概念解释、关键步骤分析、实际应用举例、注意事项说明
- 12. 答题要点内容要具体可操作,不能是空泛的指导性语言
- 13. 必须为每道简答题提供完整的答题要点,不能留空或写"未设置"`,se=await Bn.reProduceSingleQuestion({message:fe});if(se&&se.data){console.log("AI返回的数据:",se.data);const Se=se.data.reply||se.data.content||se.data.message||se.data||"AI生成的内容为空";console.log("AI生成的内容:",Se),await Tt(Se,`考试题目-${X.value||"安全培训"}`),Ct.success("考试题目生成成功!")}else throw new Error("AI生成考试题目失败")}catch(fe){console.error("生成考试题目失败:",fe),Ct.error("生成考试题目失败: "+fe.message)}finally{g.value=!1,w.value=!1}},Lt=async()=>{try{console.log("开始生成培训讲义文档..."),b.value=!0,w.value=!0;const fe=`请基于以下安全培训内容生成培训讲义:
- 培训主题:${X.value||"安全培训"}
- 培训内容:
- ${Ne.value.map((Se,E)=>{const T=Se.elements?.map(I=>I.type==="text"?I.content.replace(/<[^>]*>/g,""):"").filter(I=>I.trim()).join(" ");return`第${E+1}页:${T}`}).join(`
- `)}
- 要求:
- 1. 生成完整的培训讲义,使用Markdown格式
- 2. 包含以下结构:
- - 封面页(标题、副标题、日期)
- - 目录页
- - 各章节内容(使用# ## ###等标题层级)
- - 要点列表(使用- 或 1. 2. 等)
- - 重要概念(使用**粗体**标记)
- - 注意事项(使用> 引用格式)
- - 总结页
- 3. 内容要详细、专业、易懂
- 4. 适合作为培训教材使用
- 5. 使用标准的Markdown语法
- 请生成完整的培训讲义文档,使用规范的Markdown格式。`,se=await Bn.reProduceSingleQuestion({message:fe});if(se&&se.data){console.log("AI返回的数据:",se.data);const Se=se.data.reply||se.data.content||se.data.message||se.data||"AI生成的内容为空";await Tt(Se,`培训讲义-${X.value||"安全培训"}`),Ct.success("培训讲义生成成功!")}else throw new Error("AI生成培训讲义失败")}catch(fe){console.error("生成培训讲义失败:",fe),Ct.error("生成培训讲义失败: "+fe.message)}finally{b.value=!1,w.value=!1}},Tt=async(fe,se)=>{try{console.log("开始生成Word文档,内容:",fe);const Se=String(fe);console.log("转换后的内容字符串:",Se);let E=Se.replace(/<[^>]*>/g,"").replace(/颜色[::].*?[,,。]/g,"").replace(/红色|蓝色|绿色|黄色|紫色|橙色|灰色|黑色|白色/g,"").replace(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}/g,"").replace(/rgb\([^)]*\)|rgba\([^)]*\)/g,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`]*`/g,"").replace(/^>\s*/gm,"").replace(/\|.*\|/g,"").replace(/^[-:\s|]+$/gm,"").replace(/\n\s*\n\s*\n/g,`
- `);const T=wn(E,se),I=new Blob([T],{type:"application/msword"}),R=URL.createObjectURL(I),z=document.createElement("a");z.setAttribute("href",R),z.setAttribute("download",`${se}-${new Date().toISOString().split("T")[0]}.doc`),z.style.visibility="hidden",document.body.appendChild(z),z.click(),document.body.removeChild(z),URL.revokeObjectURL(R),console.log("Word文档已下载")}catch(Se){console.error("下载Word文档失败:",Se);const E=String(fe),T=new Blob([E],{type:"text/plain;charset=utf-8"}),I=window.URL.createObjectURL(T),R=document.createElement("a");R.href=I,R.download=`${se}-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(R),R.click(),document.body.removeChild(R),window.URL.revokeObjectURL(I),console.log("已降级为文本文件下载")}},wn=(fe,se)=>{let Se=fe.replace(/^# (.*?)$/gm,"<h1>$1</h1>").replace(/^## (.*?)$/gm,"<h2>$1</h2>").replace(/^### (.*?)$/gm,"<h3>$1</h3>").replace(/^#### (.*?)$/gm,"<h4>$1</h4>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/^\- (.*$)/gim,'<div class="list-item">- $1</div>').replace(/^(\d+)\. (.*$)/gim,'<div class="list-item">$1. $2</div>').replace(/\n/g,"<br>");return`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${se||"培训讲义"}</title>
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .doc-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .content {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- color: #000;
- margin: 0;
- padding: 0;
- }
- .header {
- text-align: center;
- margin-bottom: 30px;
- }
- .doc-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 20px;
- color: #333;
- }
- h1 {
- font-size: 20px;
- font-weight: bold;
- margin: 20px 0 15px 0;
- color: #333;
- }
- h2 {
- font-size: 18px;
- font-weight: bold;
- margin: 18px 0 12px 0;
- color: #333;
- }
- h3 {
- font-size: 16px;
- font-weight: bold;
- margin: 15px 0 10px 0;
- color: #333;
- }
- h4 {
- font-size: 14px;
- font-weight: bold;
- margin: 12px 0 8px 0;
- color: #333;
- }
- p {
- margin: 10px 0;
- text-align: justify;
- }
- .list-item {
- margin: 5px 0;
- padding-left: 20px;
- }
- strong {
- font-weight: bold;
- }
- em {
- font-style: italic;
- }
- </style>
- </head>
- <body>
- <div class='header'>
- <div class='doc-title'>${se||"培训讲义"}</div>
- </div>
- <div class='content'>
- ${Se}
- </div>
- </body>
- </html>
- `},Sn=()=>{try{const fe={slides:Ne.value,timestamp:Date.now(),title:X.value||"安全培训演示文稿"};localStorage.setItem("safetyHazardModifiedPPT",JSON.stringify(fe)),console.log("PPT修改已自动保存")}catch(fe){console.error("保存PPT数据失败:",fe)}},On=async()=>{if(Ne.value.length===0){Ct.warning("没有可导出的PPT内容,请先生成PPT");return}try{const fe=(await Mf(async()=>{const{default:E}=await import("./pptxgen.es-B4Lmziee.js");return{default:E}},__vite__mapDeps([0,1]))).default,se=new fe;se.defineLayout({name:"CUSTOM_16_9",width:10,height:5.625}),se.layout="CUSTOM_16_9",se.author="安全培训系统",se.company="蜀道科技",se.subject="安全培训演示文稿",se.title=X.value||"安全培训演示文稿";for(let E=0;E<Ne.value.length;E++){const T=Ne.value[E];console.log(`正在转换第 ${E+1} 页:`,T.type),await br(se,T)}const Se=`安全培训-${X.value||"演示文稿"}-${new Date().toISOString().split("T")[0]}.pptx`;await se.writeFile({fileName:Se}),console.log("PPTX文件已生成并下载"),Ct.success(`成功导出PPTX文件!
- 文件名: ${Se}`)}catch(fe){console.error("导出PPTX失败:",fe),Ct.error("导出PPTX失败: "+fe.message)}},br=async(fe,se)=>{const Se=fe.addSlide();if(se.background){if(se.background.type==="solid"){const E=Vo(se.background.color||"#FFFFFF");Se.background={color:E}}else if(se.background.type==="gradient"&&se.background.gradient){const E=se.background.gradient.colors[0]?.color||"#FFFFFF",T=Vo(E);Se.background={color:T}}}for(const E of se.elements)await Er(Se,E)},Er=async(fe,se)=>{try{const T=se.left/960*10,I=se.top/540*5.625,R=se.width/960*10,z=se.height/540*5.625;switch(se.type){case"text":Wo(fe,se,T,I,R,z);break;case"image":await Rr(fe,se,T,I,R,z);break;case"shape":Io(fe,se,T,I,R,z);break}}catch(Se){console.warn(`添加元素失败 ${se.type}:`,Se)}},Wo=(fe,se,Se,E,T,I)=>{const R=ro(se.content),z=ni(se.content),V=z.color||se.defaultColor||"#000000",le=se.opacity!==void 0?Math.round(se.opacity*100):100;se.content&&se.content.includes("text-align: center")&&console.log(`文本对齐调试 ${se.id||"unknown"}:`,{content:se.content,extractedAlign:z.align,finalAlign:z.align||"left"}),fe.addText(R,{x:Se,y:E,w:T,h:I,fontSize:z.fontSize||16,color:Vo(V),fontFace:se.defaultFontName||"微软雅黑",align:z.align||"left",valign:"middle",bold:z.bold||!1,wrap:!0,transparency:100-le,line:null})},Rr=async(fe,se,Se,E,T,I)=>{if(!se.src){console.warn("图片元素没有src属性:",se);return}try{const R=se.opacity!==void 0?Math.round(se.opacity*100):100,z=100-R;if(console.log("处理图片元素:",{id:se.id,srcType:se.src.startsWith("data:image")?"base64":"url",srcLength:se.src.length,opacity:R,transparency:z}),se.src.startsWith("data:image")){if(console.log("使用base64图片数据"),!se.src.includes(","))throw new Error("Base64数据格式错误:缺少逗号分隔符");const[V,le]=se.src.split(",");if(!V||!le)throw new Error("Base64数据格式错误:header或data为空");if(le.length<100)throw new Error("Base64数据过短,可能已损坏");let Oe=se.src;if(se.src.includes("data:image/svg+xml")){console.log("检测到SVG图像,开始转换为PNG格式");try{Oe=await Oi(se.src),console.log("SVG转PNG成功,使用转换后的PNG数据")}catch(Ze){throw console.error("SVG转PNG失败:",Ze),new Error("SVG图像转换失败: "+Ze.message)}}try{fe.addImage({data:Oe,x:Se,y:E,w:T,h:I,transparency:z,sizing:{type:"cover",w:T,h:I},line:null}),console.log("Base64图片添加成功")}catch(Ze){console.error("PptxGenJS添加图片失败:",Ze);try{const $e=Oe.split(",")[1];fe.addImage({data:$e,x:Se,y:E,w:T,h:I,transparency:z,sizing:{type:"cover",w:T,h:I},line:null}),console.log("使用纯base64数据添加成功")}catch($e){throw console.error("重试添加图片也失败:",$e),Ze}}}else{console.log("转换URL图片为base64:",se.src);const V=await oo(se.src);fe.addImage({data:V,x:Se,y:E,w:T,h:I,transparency:z,sizing:{type:"cover",w:T,h:I},line:null}),console.log("URL图片转换并添加成功")}}catch(R){console.error("添加图片失败:",R),console.error("图片元素详情:",se),fe.addText(`图片加载失败: ${R.message}`,{x:Se,y:E,w:T,h:I,fontSize:10,color:"FF0000",align:"center",valign:"middle",bold:!0})}},Io=(fe,se,Se,E,T,I)=>{const R=se.fill||se.color||"#007bff";let z=0;if(R.startsWith("rgba(")){const le=R.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/);if(le){const Oe=parseFloat(le[4]);z=Math.round((1-Oe)*100)}}else se.opacity!==void 0&&(z=100-Math.round(se.opacity*100));const V=Vo(R);se.id&&se.id.includes("overlay")&&console.log(`Overlay元素调试 ${se.id}:`,{originalFill:se.fill,fillColor:R,convertedColor:V,opacity:se.opacity,transparency:z,alphaFromRgba:R.startsWith("rgba(")?parseFloat(R.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/)?.[4]||"1"):null}),fe.addShape("rect",{x:Se,y:E,w:T,h:I,fill:{type:"solid",color:V,transparency:z},line:null})},ro=fe=>{if(!fe)return"";const se=document.createElement("div");return se.innerHTML=fe,se.textContent||se.innerText||""},ni=fe=>{if(!fe)return{};const se={},Se=fe.match(/font-size:\s*(\d+)px/);if(Se){const T=parseInt(Se[1]),I=1105/960,R=.7;se.fontSize=Math.round(T/I*R),console.log(`字体大小转换: 预览${T}px -> 导出${se.fontSize}px (缩放因子: ${I.toFixed(3)}, 额外缩放: ${R})`)}const E=fe.match(/color:\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\([^)]+\)|rgba\([^)]+\))/);return E&&(se.color=E[1]),fe.includes("text-align: center")?se.align="center":fe.includes("text-align: right")?se.align="right":se.align="left",(fe.includes("<strong>")||fe.includes("<b>"))&&(se.bold=!0),se},Oi=fe=>new Promise((se,Se)=>{try{const E=new Image;E.onload=()=>{try{const T=document.createElement("canvas"),I=T.getContext("2d");T.width=E.width||960,T.height=E.height||540,I.imageSmoothingEnabled=!0,I.imageSmoothingQuality="high",I.drawImage(E,0,0,T.width,T.height);const R=T.toDataURL("image/png",1);console.log("SVG转PNG成功:",{originalSvgLength:fe.length,pngDataUrlLength:R.length,canvasSize:`${T.width}x${T.height}`}),se(R)}catch(T){console.error("Canvas转换失败:",T),Se(new Error("SVG转PNG失败: "+T.message))}},E.onerror=T=>{console.error("SVG图像加载失败:",T),Se(new Error("SVG图像加载失败"))},E.src=fe}catch(E){console.error("SVG转换初始化失败:",E),Se(new Error("SVG转换初始化失败: "+E.message))}}),oo=fe=>new Promise((se,Se)=>{const E=new Image;E.crossOrigin="anonymous",E.onload=()=>{const T=document.createElement("canvas"),I=T.getContext("2d");T.width=E.width,T.height=E.height,I.drawImage(E,0,0);try{const R=T.toDataURL("image/png");se(R)}catch(R){Se(R)}},E.onerror=()=>{Se(new Error("图片加载失败"))},E.src=fe}),Vo=fe=>{if(!fe)return"FFFFFF";if(/^[0-9A-Fa-f]{6}$/.test(fe))return fe.toUpperCase();if(fe.startsWith("#")){const I=fe.substring(1);if(I.length===3)return(I[0]+I[0]+I[1]+I[1]+I[2]+I[2]).toUpperCase();if(I.length===6)return I.toUpperCase()}const se=fe.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(se){const I=parseInt(se[1]).toString(16).padStart(2,"0"),R=parseInt(se[2]).toString(16).padStart(2,"0"),z=parseInt(se[3]).toString(16).padStart(2,"0");return(I+R+z).toUpperCase()}const Se=fe.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(Se){const I=parseInt(Se[1]).toString(16).padStart(2,"0"),R=parseInt(Se[2]).toString(16).padStart(2,"0"),z=parseInt(Se[3]).toString(16).padStart(2,"0");return(I+R+z).toUpperCase()}const E={white:"FFFFFF",black:"000000",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",orange:"FFA500",purple:"800080",pink:"FFC0CB",gray:"808080",grey:"808080"},T=fe.toLowerCase();return E[T]?E[T]:(console.warn(`无法识别的颜色格式: ${fe},使用默认黑色`),"000000")},Na=()=>{const fe=Ne.value&&Ne.value.length>0?Ne.value:Ee.value;if(!fe||fe.length===0){ct.value=[Jp,cg,dg,fg,pg],console.log("PPT内容为空,使用默认template5图片,共",ct.value.length,"张");return}ct.value=fe.map((se,Se)=>{if(ze.value==="red"){const T=[oS,TB,_B,DB,IB];return console.log(`幻灯片 ${Se+1} 类型: ${se.type||"content"}, ID: ${se.id}`),T[Se%5]}if(ze.value==="blueTech"){const T=[OB,MB,PB,NB,RB];return console.log(`幻灯片 ${Se+1} 类型: ${se.type||"content"}, ID: ${se.id}`),T[Se%5]}return[Jp,cg,dg,fg,pg][Se%5]}),console.log("缩略图更新完成,共",ct.value.length,"页")},ml=(fe,se)=>{let Se="";if(se==="redElegant"||se==="red")Se="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0911_1757633045.png";else if(se==="blueTech")Se="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0911_1757633045.png";else{const E=[Jp,cg,dg,fg,pg];switch(fe){case"cover":return Jp;case"contents":return cg;case"transition":return dg;case"content":return fg;case"end":return pg;default:return E[0]}}return Se},Xc=()=>{if(!Ne.value||Ne.value.length===0){ze.value==="redElegant"||ze.value==="red"?ct.value=[oS,TB,_B,DB,IB]:ze.value==="blueTech"?ct.value=[OB,MB,PB,NB,RB]:ct.value=[Jp,cg,dg,fg,pg],ct.value=[...ct.value],console.log("动态模板内容为空,使用风格化图片,共",ct.value.length,"张"),console.log("当前风格:",ze.value),console.log("更新后的缩略图数组:",ct.value);return}ct.value=Ne.value.map((fe,se)=>{if(ze.value==="redElegant"||ze.value==="red"){const Se=[oS,TB,_B,DB,IB];return console.log(`动态模板幻灯片 ${se+1} 类型: ${fe.type||"content"}, ID: ${fe.id}`),Se[se%5]}if(ze.value==="blueTech"){const Se=[OB,MB,PB,NB,RB];return console.log(`动态模板幻灯片 ${se+1} 类型: ${fe.type||"content"}, ID: ${fe.id}`),Se[se%5]}return ml(fe.type,ze.value)}),ct.value=[...ct.value],console.log("动态模板缩略图更新完成,共",ct.value.length,"页")},p2=async fe=>{ce.value=fe;const se=_t.value[fe];if(console.log("选择模板:",se.title),se.style&&(ze.value=se.style,console.log("设置模板风格:",se.style)),se.type==="dynamic"){if(st.value=!0,Ne.value&&Ne.value.length>0?(Xc(),console.log("缩略图已更新为",se.style,"风格")):(console.log("准备更新缩略图,当前风格:",ze.value),Xc(),console.log("缩略图已更新为",se.style,"风格(无PPT数据)"),console.log("最终缩略图数组:",ct.value)),Vt(()=>{ct.value=[...ct.value],console.log("强制更新缩略图完成")}),ee.value&&ee.value.length>0)try{const Se=l0e(ee.value,X.value);Se.success?(Ot.value=Se.preview,Ae.value=Se.preview,console.log("动态模板预览生成成功:",Ot.value)):(console.error("动态模板预览生成失败:",Se.error),Ct.error("动态模板预览生成失败: "+Se.error))}catch(Se){console.error("动态模板预览生成异常:",Se),Ct.error("动态模板预览生成异常: "+Se.message)}}else if(st.value=!1,Ot.value=null,Ae.value=null,se.type==="static"&&se.templateData&&(console.log("选择静态模板:",se.title,"等待用户点击应用模板"),console.log("准备更新静态模板缩略图,当前风格:",ze.value),Na(),console.log("静态模板缩略图已更新为",se.style,"风格"),ee.value&&ee.value.length>0))try{const Se=l0e(ee.value,X.value);Se.success?(Ot.value=Se.preview,Ae.value=Se.preview,console.log("Template7预览生成成功:",Ot.value)):console.error("Template7预览生成失败:",Se.error)}catch(Se){console.error("Template7预览生成异常:",Se)}},Cm=async()=>{console.log("应用模板:",_t.value[ce.value].title),y.value=!0,w.value=!0;try{if(st.value){console.log("使用动态模板生成PPT...");let fe,se,Se;if(ee.value&&ee.value.length>0)fe=await ke(ee.value),se=X.value||"用户生成的大纲",Se=`${fe.length}章节结构演示`,console.log("使用用户大纲数据:",se,`共${fe.length}个章节`),console.log("转换后的用户大纲数据结构:",JSON.stringify(fe,null,2));else if(Ue.value!==null&&Ue.value!==void 0){const R=lt.value[Ue.value];fe=R.data,se=R.title,Se=R.description,console.log("使用mock数据:",R.title,R.description)}else fe=lt.value[0].data,se=lt.value[0].title,Se=lt.value[0].description,console.log("使用默认测试数据:",lt.value[0].title);const E=await vQt(fe,se,ze.value);if(console.log("生成的动态模板结果:",E),!E.success)throw new Error(E.error||"动态模板生成失败");const T=E.data.template;if(console.log("提取的模板数据:",T),!Array.isArray(T))throw console.error("模板数据不是数组格式:",typeof T,T),new Error("模板数据格式不正确,期望数组但得到: "+typeof T);Fe.value=!0,pt.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await je(T,fe,se),console.log("动态模板应用完成,共",Ne.value.length,"张幻灯片"),E.warnings&&E.warnings.length>0&&Ct.warning("模板应用成功,但有以下建议: "+E.warnings.join(", ")),E.recommendations&&E.recommendations.length>0&&console.log("优化建议:",E.recommendations),Xc();const I=ee.value&&ee.value.length>0?`动态模板应用完成!使用用户大纲数据 (${fe.length}个章节)`:`动态模板应用完成!使用数据: ${se} (${Se})`;Ct.success(I),Ne.value&&Ne.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Ne.value)),console.log("动态模板PPT数据已保存到本地存储:",Ne.value.length,"张幻灯片")),Fe.value=!0,await An(!0,!0),await xt(),mn.value.forEach(R=>{R.isActive=R.id===r.value}),Vt(()=>{const R=xp.value;R&&(R.scrollLeft=0)})}else{console.log("使用静态模板生成PPT...");const fe=_t.value[ce.value];if(console.log("检查模板数据:",{title:fe.title,type:fe.type,hasTemplateData:!!fe.templateData,templateDataLength:fe.templateData?.length}),fe.type==="static"&&fe.templateData){if(fe.title==="红色主题PPT"){console.log("应用Template7红色主题模板:",fe.title);try{if(ee.value&&ee.value.length>0){console.log("开始基于template_7.json生成动态多页结构..."),b.value=!0;const Se=S9(ee.value,X.value);Fe.value=!0,pt.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await je(Se,ee.value,X.value),b.value=!1,console.log("Template7动态多页结构生成完成,共",Ne.value.length,"页")}else{const Se=JSON.parse(JSON.stringify(fe.templateData));Fe.value=!0,pt.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await je(Se,[],X.value||"默认标题"),console.log("Template7默认模板加载成功,共",Ne.value.length,"页")}Xc();const se=ee.value&&ee.value.length>0?`红色主题模板应用完成!使用用户大纲数据 (${ee.value.length}个章节)`:"红色主题模板应用完成!使用默认内容";Ct.success(se),Ne.value&&Ne.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Ne.value)),console.log("Template7静态模板PPT数据已保存到本地存储:",Ne.value.length,"张幻灯片")),Fe.value=!0,pt.value=0,await An(!0,!0),await xt(),mn.value.forEach(Se=>{Se.isActive=Se.id===r.value}),Vt(()=>{const Se=xp.value;Se&&(Se.scrollLeft=0)})}catch(se){console.error("应用Template7静态模板失败:",se),Ct.error("应用Template7静态模板失败: "+se.message)}}if(fe.title==="蓝色科技主题PPT"){console.log("应用Template8蓝色科技主题模板:",fe.title);try{if(ee.value&&ee.value.length>0){console.log("开始基于template_8.json生成动态多页结构..."),b.value=!0;const Se=x9(ee.value,X.value);Fe.value=!0,pt.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await je(Se,ee.value,X.value),b.value=!1,console.log("Template8动态多页结构生成完成,共",Ne.value.length,"页")}else{const Se=JSON.parse(JSON.stringify(fe.templateData));Fe.value=!0,pt.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await je(Se,[],X.value||"默认标题"),console.log("Template8默认模板加载成功,共",Ne.value.length,"页")}Xc();const se=ee.value&&ee.value.length>0?`蓝色科技主题模板应用完成!使用用户大纲数据 (${ee.value.length}个章节)`:"蓝色科技主题模板应用完成!使用默认内容";Ct.success(se),Ne.value&&Ne.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Ne.value)),console.log("Template8静态模板PPT数据已保存到本地存储:",Ne.value.length,"张幻灯片"))}catch(se){b.value=!1,console.error("应用Template8静态模板失败:",se),Ct.error("应用Template8静态模板失败: "+se.message)}}}else if(ee.value&&ee.value.length>0){console.log("开始生成PPT数据...");const se=g2(ee.value,X.value);console.log("生成的AIPPT数据:",se);const Se=await ha(se,X.value);console.log("AI填充后的AIPPT数据:",Se),await v2(Se,!0),console.log("模板应用完成,PPT数据已加载"),await Vt(),Ne.value&&Ne.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Ne.value)),console.log("PPT数据已保存到本地存储:",Ne.value.length,"张幻灯片")),Ct.success("模板应用完成,内容已填充!"),await xt(),mn.value.forEach(E=>{E.isActive=E.id===r.value}),Fe.value=!0,Vt(()=>{const E=xp.value;E&&(E.scrollLeft=0,console.log("缩略图条已滚动到第一页"))})}else await v2(),Ct.success("模板应用完成!"),Fe.value=!0}}catch(fe){console.error("应用模板失败:",fe),Ct.error("应用模板失败: "+fe.message)}finally{y.value=!1,w.value=!1}},Cp=()=>{const fe=Ne.value[pt.value]||null;return console.log("获取当前PPT幻灯片:",fe),console.log("当前索引:",pt.value),console.log("总幻灯片数:",Ne.value.length),fe},H5=()=>{const fe=Ne.value[pt.value]||null;if(!fe)return null;if(b.value&&fe.elements){const se=JSON.parse(JSON.stringify(fe));return se.elements=se.elements.map(Se=>({...Se,content:Se.textType==="itemContent"&&Se.content&&Se.content.includes("待AI填充")?`<p style="text-align: center;"><span style="font-size: 16px; color: ${Se.defaultColor};">正在生成...</span></p>`:Se.content})),se}return fe},W5=()=>{const fe=H5();if(!fe)return"#ffffff";if(fe.background?.type==="gradient"){const se=fe.background.gradient;if(se.type==="linear")return`linear-gradient(135deg, ${se.colors.map(E=>`${E.color} ${E.pos}%`).join(", ")})`;if(se.type==="radial")return`radial-gradient(circle, ${se.colors.map(E=>`${E.color} ${E.pos}%`).join(", ")})`}return fe.background?.color||"#667eea"},a9=fe=>{if(!fe)return"#667eea";if(fe.background){if(fe.background.type==="gradient"){const se=fe.background.gradient;if(se.type==="linear")return`linear-gradient(135deg, ${se.colors.map(E=>`${E.color} ${E.pos}%`).join(", ")})`;if(se.type==="radial")return`radial-gradient(circle, ${se.colors.map(E=>`${E.color} ${E.pos}%`).join(", ")})`}else if(fe.background.color)return fe.background.color}return fe.elements&&fe.elements.length>0&&fe.elements.find(Se=>Se.type==="shape"&&Se.fill==="#ffffff"||Se.type==="shape"&&Se.fill==="white")?"#ffffff":"#667eea"},s9=fe=>{const E=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,T=1105*E/960,I=603*E/540,R={position:"absolute",left:(fe.left||fe.x||0)*T+"px",top:(fe.top||fe.y||0)*I+"px",width:(fe.width||100)*T+"px",height:(fe.height||50)*I+"px",zIndex:fe.zIndex||1};if(fe.defaultColor&&(R.color=fe.defaultColor),fe.defaultFontName&&(R.fontFamily=fe.defaultFontName),fe.opacity!==void 0&&(R.opacity=fe.opacity),fe.type==="shape"&&fe.fill&&(R.backgroundColor=fe.fill,R.borderRadius=fe.viewBox?"8px":"0"),fe.type==="text"&&fe.content){const z=fe.content.match(/text-align:\s*([^;]+)/);z&&(R.textAlign=z[1].trim()),fe.textType==="item"&&fe.content.includes("目录项")&&(R.textAlign="center")}return R},V5=()=>{Ne.value.length>0&&(Ne.value=[...Ne.value])};jn(()=>{window.addEventListener("resize",V5)}),hl(()=>{window.removeEventListener("resize",V5)});const q5=fe=>{const E=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,T=1105*E,I=603*E,R=960,z=540,V=T/R,le=I/z;return{position:"absolute",left:(fe.left||fe.x)*V+"px",top:(fe.top||fe.y)*le+"px",width:fe.width*V+"px",height:fe.height*le+"px",zIndex:fe.zIndex||1}},l9=fe=>({text:"文本",image:"图片",shape:"形状"})[fe]||fe,u9=fe=>({width:"100%",height:"100%",backgroundColor:fe.fill,borderRadius:fe.viewBox?"8px":"0",opacity:fe.opacity||1}),h2=fe=>{Rt.value=fe,console.log("选中PPT元素:",fe)},G5=fe=>{console.log("PPT预览模式下不允许文字编辑"),Ct.info("PPT预览模式下不允许编辑文字,只能更换图片")},c9=fe=>{en.value=fe.target.innerHTML},d9=fe=>{const se=Cp();se.elements[fe]&&(se.elements[fe].content=en.value,console.log("文本编辑保存成功"),Ct.success("文本编辑已保存"),Sn()),Bt.value=-1,en.value="",console.log("保存PPT元素编辑:",fe)},K5=(fe,se)=>{if(fe.detail>=2)return;const E=Cp().elements[se];if(E.type==="text"){console.log("PPT预览模式下,文字元素不允许拖拽");return}if(Bt.value===se&&E.type==="text"&&en.value!=="")return;Rt.value!==se&&h2(se);const T=fe.clientX,I=fe.clientY,R=E.left,z=E.top,V=Oe=>{const Ze=Oe.clientX-T,$e=Oe.clientY-I;E.left=R+Ze,E.top=z+$e},le=()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",le),Sn(),console.log("拖拽完成,已自动保存")};document.addEventListener("mousemove",V),document.addEventListener("mouseup",le),fe.preventDefault()},xm=(fe,se,Se)=>{Rt.value!==se&&h2(se);const T=Cp().elements[se];if(T.type==="text"){console.log("PPT预览模式下,文字元素不允许调整大小");return}const I=fe.clientX,R=fe.clientY,z=T.width,V=T.height,le=T.left,Oe=T.top,Ze=dt=>{const At=dt.clientX-I,En=dt.clientY-R;switch(Se){case"se":T.width=Math.max(20,z+At),T.height=Math.max(20,V+En);break;case"sw":T.width=Math.max(20,z-At),T.height=Math.max(20,V+En),T.left=le+(z-T.width);break;case"ne":T.width=Math.max(20,z+At),T.height=Math.max(20,V-En),T.top=Oe+(V-T.height);break;case"nw":T.width=Math.max(20,z-At),T.height=Math.max(20,V-En),T.left=le+(z-T.width),T.top=Oe+(V-T.height);break}},$e=()=>{document.removeEventListener("mousemove",Ze),document.removeEventListener("mouseup",$e),Sn(),console.log("缩放完成,已自动保存")};document.addEventListener("mousemove",Ze),document.addEventListener("mouseup",$e),fe.preventDefault()},f9=(fe,se=null,Se=null)=>new Promise((E,T)=>{const I=new FileReader;I.onload=()=>{const R=new Image;R.onload=()=>{try{const z=document.createElement("canvas"),V=z.getContext("2d");let le,Oe;if(se&&Se?(le=se,Oe=Se):(le=R.width,Oe=R.height),z.width=le,z.height=Oe,V.imageSmoothingEnabled=!0,V.imageSmoothingQuality="high",se&&Se){const $e=R.width/R.height,dt=se/Se;let At,En,Cn,yn;$e>dt?(En=R.height,At=R.height*dt,Cn=(R.width-At)/2,yn=0):(At=R.width,En=R.width/dt,Cn=0,yn=(R.height-En)/2),V.drawImage(R,Cn,yn,At,En,0,0,le,Oe)}else V.drawImage(R,0,0);const Ze=z.toDataURL("image/png",1);console.log("高质量图片转换成功:",{fileName:fe.name,fileSize:fe.size,originalSize:`${R.width}x${R.height}`,canvasSize:`${le}x${Oe}`,targetSize:se&&Se?`${se}x${Se}`:"none",base64Length:Ze.length,format:"PNG"}),E(Ze)}catch(z){console.error("Canvas转换失败,使用原始方法:",z),E(I.result)}},R.onerror=()=>{console.error("图片加载失败,使用原始方法"),E(I.result)},R.src=I.result},I.onerror=()=>{T(new Error("图片读取失败: "+I.error?.message))},I.readAsDataURL(fe)}),p9=async fe=>{console.log("更换PPT图片被触发,索引:",fe);const se=document.createElement("input");se.type="file",se.accept="image/*",se.onchange=async Se=>{const E=Se.target.files[0];if(E)try{if(E.size>5242880){Ct.error("图片大小不能超过5MB");return}Ct.info("正在处理图片...");const R=Cp().elements[fe],z=R.width,V=R.height;console.log("图片目标尺寸:",{targetWidth:z,targetHeight:V});const le=await f9(E,z,V);if(console.log("图片转换为高质量base64成功,长度:",le.length),console.log("Base64数据预览:",le.substring(0,100)+"..."),R&&R.type==="image"){R.src=le,console.log("图片更换成功,使用base64数据"),Ct.success("图片更换成功"),Sn();try{console.log("开始保存图片更换后的PPT数据到后端..."),await An(!1),console.log("图片更换后的PPT数据已保存到后端");const Oe=mn.value.find(Ze=>Ze.id===r.value);Oe&&(Oe.ppt_json_content=JSON.stringify(Ne.value),console.log("已更新历史记录列表中的PPT数据"))}catch(Oe){console.error("保存图片更换后的PPT数据失败:",Oe),Ct.warning("图片更换成功,但保存到后端失败")}}}catch(T){console.error("图片处理过程中发生错误:",T),Ct.error("图片处理失败: "+T.message)}},se.click()},h9=fe=>{const se=fe.target.files[0];if(!se)return;if(!se.type.startsWith("image/")){Ct.warning("请选择图片文件"),fe.target.value="";return}const Se=5*1024*1024;if(se.size>Se){Ct.warning("图片大小不能超过5MB"),fe.target.value="";return}try{const E=URL.createObjectURL(se);if(Ut.value!==null&&Ne.value.length>0){const T=Cp();T&&T.elements[Ut.value]&&(T.elements[Ut.value].src=E,console.log("图片已更换:",E),Ct.success("图片更换成功"))}Ut.value=null}catch(E){console.error("图片更换失败:",E),Ct.error("图片更换失败,请重试")}finally{fe.target.value=""}},g2=(fe,se)=>{try{console.log("开始转换大纲为AIPPT.json格式"),console.log("输入大纲数据:",fe),console.log("标题:",se);const Se=[];Se.push({type:"cover",data:{title:se||"安全培训大纲",text:"基于AI生成的培训大纲,包含相关内容"}}),console.log("已添加封面页");const E=fe.map((I,R)=>I.title);console.log("目录项:",E),Se.push({type:"contents",data:{items:E}}),console.log("已添加目录页"),fe.forEach((I,R)=>{if(console.log(`处理章节 ${R+1}:`,I.title),console.log("章节内容:",I),Se.push({type:"transition",data:{title:I.title,text:I.content||`本章将介绍${I.title}的相关内容`}}),console.log(`已添加章节 ${R+1} 的过渡页`),I.sections&&I.sections.length>0)I.sections.forEach((z,V)=>{console.log(`处理小节 ${V+1}:`,z.title),console.log("小节内容:",z);let le=[];for(z.subsections&&z.subsections.length>0?z.subsections.forEach((Oe,Ze)=>{le.push({title:"",text:""})}):le.push({title:"",text:""});le.length<4;)le.push({title:"",text:""});le=le.slice(0,4),Se.push({type:"content",data:{title:z.title,items:le}}),console.log(`已添加小节 ${V+1} 的内容页`)});else{const z=[{title:"",text:""},{title:"",text:""},{title:"",text:""},{title:"",text:""}];Se.push({type:"content",data:{title:I.title,items:z}}),console.log(`已添加章节 ${R+1} 的空内容页`)}}),Se.push({type:"end"}),console.log("转换完成,生成的AIPPT.json格式数据:"),console.log(JSON.stringify(Se,null,2));const T={};return Se.forEach(I=>{T[I.type]=(T[I.type]||0)+1}),console.log("幻灯片类型统计:",T),console.log("总幻灯片数量:",Se.length),Se}catch(Se){return console.error("转换大纲为AIPPT.json格式失败:",Se),[]}},v2=async(fe=null,se=!1)=>{try{console.log("开始加载template5数据..."),console.log("template5.json数据加载成功:",a0e);let Se;fe?(Se=fe,console.log("使用传入的AIPPT数据:",Se)):ee.value&&ee.value.length>0?(Se=g2(ee.value,X.value),console.log("根据大纲生成的AIPPT数据:",Se)):(Se=dQt,console.log("加载默认AIPPT.json数据:",Se));const E=Se.map((T,I)=>{const R=a0e.find(z=>z.type===T.type);if(R){const z=JSON.parse(JSON.stringify(R));switch(z.id=`generated-slide-${I}`,T.type){case"cover":z.elements.forEach(V=>{V.textType==="title"?V.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: ${V.defaultColor}; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">${T.data.title}</span></strong></p>`:V.textType==="content"&&(V.content=`<p style="text-align: center;"><span style="font-size: 24px; color: ${V.defaultColor};">${T.data.text}</span></p>`)});break;case"contents":if(T.data.items){let V=0;z.elements.forEach(le=>{if(le.textType==="item"&&V<T.data.items.length){const Oe=T.data.items[V];le.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${le.defaultColor};">${V+1}. ${Oe}</span></p>`,V++}})}break;case"content":if(z.elements.forEach(V=>{V.textType==="title"&&(V.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: ${V.defaultColor};">${T.data.title}</span></strong></p>`)}),T.data.items&&Array.isArray(T.data.items)){let V=0;z.elements.forEach(le=>{if(le.textType==="itemTitle"&&V<T.data.items.length){const Oe=T.data.items[V];le.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: ${le.defaultColor};">${Oe.title}</span></strong></p>`}else if(le.textType==="itemContent"&&V<T.data.items.length){const Oe=T.data.items[V];le.content=`<p style="text-align: center;"><span style="font-size: 14px; color: ${le.defaultColor};">${Oe.text}</span></p>`,V++}})}break;case"transition":z.elements.forEach(V=>{V.textType==="title"?V.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${V.defaultColor};">${T.data.title}</span></strong></p>`:V.textType==="content"&&(V.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${V.defaultColor};">${T.data.text}</span></p>`)});break;case"end":z.elements.forEach(V=>{V.textType==="title"?V.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: ${V.defaultColor};">谢谢聆听</span></strong></p>`:V.textType==="content"&&(V.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${V.defaultColor};">感谢您的时间与关注</span></p>`)});break}return z}else return console.warn(`未找到类型为 ${T.type} 的模板,使用默认模板`),{id:`generated-slide-${I}`,type:T.type,elements:[{id:`title-${I}`,type:"text",content:`<h1 style="text-align: center; font-size: 48px; color: #1F2937;">${T.data.title||"标题"}</h1>`,left:100,top:150,width:760,height:100,defaultColor:"#1F2937",defaultFontName:"Arial",zIndex:1}],background:{color:"#ffffff"}}});return Ne.value=E,console.log("已设置生成的PPT数据:",Ne.value.length,"张幻灯片"),Pe.value=!0,pt.value=0,console.log("AIPPT数据与template5模板结合完成:",Ne.value),console.log("PPT预览模式已启用:",Pe.value),console.log("当前PPT幻灯片索引:",pt.value),console.log("生成的PPT数据长度:",Ne.value.length),await Vt(),console.log("Vue响应式更新完成"),se?(console.log("需要保存步骤信息到后端"),await An(!0,!0)):console.log("跳过保存步骤信息,仅加载PPT数据"),Promise.resolve()}catch(Se){return console.error("加载AIPPT.json或template5.json失败:",Se),g9(),Promise.reject(Se)}},g9=()=>{Ne.value=[{id:"slide-1",background:"#ffffff",elements:[{id:"title-1",type:"text",textType:"title",content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #1F2937;">犯罪心理学研究</span></strong></p>',x:100,y:100,width:600,height:100,defaultColor:"#1F2937",defaultFontName:"Arial",zIndex:1},{id:"content-1",type:"text",textType:"content",content:'<p style="text-align: center;"><span style="font-size: 20px; color: #6B7280;">探索犯罪心理的成因、特征及干预策略</span></p>',x:100,y:250,width:600,height:50,defaultColor:"#6B7280",defaultFontName:"Arial",zIndex:1}]}],Pe.value=!0,pt.value=0,console.log("默认PPT数据生成完成:",Ne.value)},v9=fe=>{Le.value=fe,console.log("选择下载选项:",ut.value[fe].title)},m9=()=>{Fe.value=!1,Le.value=0,Ne.value=[],pt.value=0,Rt.value=-1,Bt.value=-1,en.value="",Wt.value=1,Ut.value=null,oe.value=0,dr(),Na(),console.log("已回到模板选择页面,PPT预览状态已清理,模板预览已重新加载")},Q5=fe=>{if(!fe)return fe;console.log("原始AI回复:",fe),console.log("原始文本长度:",fe.length),console.log("原始文本字符码:",Array.from(fe).map(se=>se.charCodeAt(0)));try{if(fe.includes("%")){const se=decodeURIComponent(fe);return console.log("URL解码后:",se),se}if(fe.includes("??")){const se=fe.replace(/\?\?/g,"");return console.log("清理问号后:",se),se}if(fe.includes("\\u")){const se=fe.replace(/\\u[\dA-F]{4}/gi,Se=>String.fromCharCode(parseInt(Se.replace(/\\u/g,""),16)));return console.log("Unicode解码后:",se),se}if(fe.includes("&")){const se=document.createElement("textarea");se.innerHTML=fe;const Se=se.value;return console.log("HTML解码后:",Se),Se}return console.log("无需特殊处理,直接返回"),fe}catch(se){return console.warn("字符编码处理失败:",se),fe}},y9=fe=>{if(!fe)return fe;const se={br:{},strong:{},em:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},ul:{},li:{},code:{}},Se=document.createElement("div");Se.innerHTML=fe;const E=I=>{if(I.nodeType===Node.TEXT_NODE)return I.textContent;if(I.nodeType===Node.ELEMENT_NODE){const R=I.tagName.toLowerCase();if(se[R]){const z=document.createElement(R);for(let V of I.childNodes){const le=E(V);le&&(typeof le=="string"?z.appendChild(document.createTextNode(le)):z.appendChild(le))}return z.outerHTML}else{let z="";for(let V of I.childNodes)z+=E(V)||"";return z}}return""};let T="";for(let I of Se.childNodes)T+=E(I)||"";return T},Y5=fe=>{if(!fe)return fe;console.log("开始转换Markdown:",fe);let se=fe;se=se.replace(/<\/?[^>]*>/g,""),console.log("清理HTML标签后:",se),se=se.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>"),se=se.replace(/\*(.*?)\*/g,"<em>$1</em>"),se=se.replace(/^#{1,6}\s*(.+?)$/gm,(E,T)=>{console.log("标题匹配:",E,"内容:",T);const I=(E.match(/#/g)||[]).length,R=Math.min(I,6),z=`<h${R}>${T.trim()}</h${R}>`;return console.log("标题转换结果:",z),z}),se=se.replace(/^- (.*?)$/gm,(E,T)=>E.startsWith(" - ")||E.startsWith(" - ")?" "+T:" "+T),se=se.replace(/^\d+\. (.*?)$/gm,(E,T)=>E.startsWith(" ")||E.startsWith(" ")?" "+T:" "+T),se=se.replace(/\n/g,"<br>"),se=se.replace(/<br>#{1,6}\s*(.+?)(?=<br>|$)/g,(E,T)=>{console.log("<br>标签后标题匹配:",E,"内容:",T);const I=(E.match(/#/g)||[]).length,R=Math.min(I,6),z=`<br><h${R}>${T.trim()}</h${R}>`;return console.log("<br>标签后标题转换结果:",z),z}),se=se.replace(/```(.*?)```/gs,"<code>$1</code>"),se=se.replace(/`(.*?)`/g,"<code>$1</code>"),se=se.replace(/<\/?[^>]*$/g,""),console.log("Markdown转换后:",se);const Se=y9(se);return console.log("最终清理后:",Se),Se},b9=async fe=>{try{if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(fe),Ct.success("复制成功!");return}catch(Se){console.warn("Clipboard API 失败,使用降级方案:",Se)}const se=document.createElement("textarea");se.value=fe,se.style.position="fixed",se.style.left="-999999px",se.style.top="-999999px",document.body.appendChild(se),se.focus(),se.select();try{if(document.execCommand("copy"))Ct.success("复制成功!");else throw new Error("execCommand 复制失败")}catch(Se){console.error("传统复制方法也失败:",Se),Ct.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(se){console.error("复制失败:",se),Ct.error("复制失败,请手动选择文本复制")}},w9=fe=>{b9(fe.content)},Z5=Q(null),A9=Q(null),xp=Q(null),C9=()=>{console.log("重置幻灯片位置到首页"),oe.value=0,pt.value=0,Ut.value=null,Rt.value=-1,Bt.value=-1,Vt(()=>{const fe=document.querySelector(".thumbnail-strip");fe&&(fe.scrollLeft=0)}),console.log("页面位置已重置到首页")},x9=(fe,se)=>{console.log("开始基于template_8.json生成动态多页结构:",fe.length,"个章节");const Se=[],E=JSON.parse(JSON.stringify(y1[0]));E.id="template8-dynamic-cover",console.log("封面页背景信息:",E.background),console.log("封面页元素数量:",E.elements?.length);const T=E.elements.find(z=>z.id==="title-text");T&&(T.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">${se}</span></strong></p>`),Se.push(E);const I=JSON.parse(JSON.stringify(y1[1]));I.id="template8-dynamic-contents",fe.forEach((z,V)=>{const le=I.elements.find(Oe=>Oe.id===`item-${V+1}`);le&&(le.content=`<p style="text-align: center;"><span style="font-size: 18px; color: #333333;">${z.title}</span></p>`)}),Se.push(I),fe.forEach((z,V)=>{const le=JSON.parse(JSON.stringify(y1[2]));le.id=`template8-dynamic-transition-${V}`;const Oe=le.elements.find($e=>$e.id==="transition-title");Oe&&(Oe.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #47acc5;">${z.title}</span></strong></p>`);const Ze=le.elements.find($e=>$e.id==="transition-content");if(Ze&&(Ze.content=`<p style="text-align: center;"><span style="font-size: 16px; color: #666666;">${z.content||`本章将介绍${z.title}的相关内容`}</span></p>`),Se.push(le),z.sections&&z.sections.length>0)z.sections.forEach(($e,dt)=>{const At=JSON.parse(JSON.stringify(y1[3]));At.id=`template8-dynamic-content-${V}-${dt}`;const En=At.elements.find(Cn=>Cn.id==="content-title");En&&(En.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${$e.title}</span></strong></p>`),$e.content&&Array.isArray($e.content)&&$e.content.forEach((Cn,yn)=>{const un=At.elements.find(fn=>fn.id===`itemTitle-${yn+1}`),kn=At.elements.find(fn=>fn.id===`itemContent-${yn+1}`);un&&Cn.title&&(un.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${Cn.title}</span></strong></p>`),kn&&Cn.content&&(kn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${Cn.content}</span></p>`)}),Se.push(At)});else{const $e=JSON.parse(JSON.stringify(y1[3]));$e.id=`template8-dynamic-content-${V}-default`;const dt=$e.elements.find(At=>At.id==="content-title");dt&&(dt.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${z.title}</span></strong></p>`),Se.push($e)}});const R=JSON.parse(JSON.stringify(y1[4]));return R.id="template8-dynamic-end",Se.push(R),console.log("基于template_8.json的动态多页结构生成完成,共",Se.length,"页"),Se},S9=(fe,se)=>{console.log("开始基于template_7.json生成动态多页结构:",fe.length,"个章节");const Se=[],E=JSON.parse(JSON.stringify(hg[0]));E.id="template7-dynamic-cover",console.log("封面页背景信息:",E.background),console.log("封面页元素数量:",E.elements?.length);const T=E.elements.find(V=>V.id==="title-text");T&&(T.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">${se}</span></strong></p>`),Se.push(E);const I=JSON.parse(JSON.stringify(hg[1]));I.id="template7-dynamic-contents",fe.forEach((V,le)=>{const Oe=I.elements.find(Ze=>Ze.id===`item-${le+1}`);Oe&&(Oe.content=`<p><span style="font-size: 18px; color: #333333;">${V.title}</span></p>`)});for(let V=fe.length;V<6;V++){const le=I.elements.find(Oe=>Oe.id===`item-${V+1}`);le&&(le.content='<p><span style="font-size: 18px; color: #333333;"></span></p>',le.opacity=0)}const R=Math.min(fe.length,6);if(console.log(`目录页实际显示${R}个目录项`),R===2){const V=I.elements.find(Oe=>Oe.id==="item-1"),le=I.elements.find(Oe=>Oe.id==="item-2");V&&(V.top=250),le&&(le.top=300)}else if(R===3){const V=I.elements.find(Ze=>Ze.id==="item-1"),le=I.elements.find(Ze=>Ze.id==="item-2"),Oe=I.elements.find(Ze=>Ze.id==="item-3");V&&(V.top=220),le&&(le.top=270),Oe&&(Oe.top=320)}else if(R!==4){if(R===5){const V=I.elements.find(dt=>dt.id==="item-1"),le=I.elements.find(dt=>dt.id==="item-2"),Oe=I.elements.find(dt=>dt.id==="item-3"),Ze=I.elements.find(dt=>dt.id==="item-4"),$e=I.elements.find(dt=>dt.id==="item-5");V&&(V.top=180),le&&(le.top=230),Oe&&(Oe.top=280),Ze&&(Ze.top=330),$e&&($e.top=380)}else if(R===6){const V=I.elements.find(At=>At.id==="item-1"),le=I.elements.find(At=>At.id==="item-2"),Oe=I.elements.find(At=>At.id==="item-3"),Ze=I.elements.find(At=>At.id==="item-4"),$e=I.elements.find(At=>At.id==="item-5"),dt=I.elements.find(At=>At.id==="item-6");V&&(V.top=160),le&&(le.top=210),Oe&&(Oe.top=260),Ze&&(Ze.top=310),$e&&($e.top=360),dt&&(dt.top=410)}}Se.push(I),fe.forEach((V,le)=>{const Oe=JSON.parse(JSON.stringify(hg[2]));Oe.id=`template7-dynamic-transition-${le}`;const Ze=Oe.elements.find($e=>$e.id==="transition-title");if(Ze&&(Ze.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #e74c3c;">${V.title}</span></strong></p>`),Se.push(Oe),V.sections&&V.sections.length>0)V.sections.forEach(($e,dt)=>{const At=JSON.parse(JSON.stringify(hg[3]));At.id=`template7-dynamic-content-${le}-${dt}`;const En=At.elements.find(un=>un.id==="content-title");En&&(En.textType="title",En.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${$e.title}</span></strong></p>`);let Cn=$e.subsections||[];if(Cn.length===0){const un=Math.floor(Math.random()*3)+2,kn=["待AI生成子小节1","待AI生成子小节2","待AI生成子小节3","待AI生成子小节4"];Cn=[];for(let fn=0;fn<un;fn++)Cn.push({title:kn[fn]||`要点${fn+1}`,content:"待AI填充"});$e.subsections=Cn}const yn=Math.min(Cn.length,4);console.log(`章节${le+1}小节${dt+1}有${Cn.length}个子小节,实际显示${yn}个`);for(let un=0;un<yn;un++){const kn=Cn[un],fn=At.elements.find($n=>$n.id===`itemTitle-${un+1}`);fn&&(fn.textType="itemTitle",fn.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${kn.title}</span></strong></p>`,console.log(`填充子小节标题${un+1}: ${kn.title}`));const qn=At.elements.find($n=>$n.id===`itemContent-${un+1}`);qn&&(qn.textType="itemContent",qn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${kn.content||"待AI填充"}</span></p>`,console.log(`填充子小节内容${un+1}: ${kn.content||"待AI填充"}`))}for(let un=yn;un<4;un++)At.elements=At.elements.filter(kn=>kn.id!==`itemTitle-${un+1}`&&kn.id!==`itemContent-${un+1}`&&kn.id!==`item-bg-${un+1}`&&kn.id!==`item-icon-${un+1}`);if(yn===2){const un=At.elements.find(Pr=>Pr.id==="item-bg-1"),kn=At.elements.find(Pr=>Pr.id==="item-bg-2");un&&(un.top=190),kn&&(kn.top=290);const fn=At.elements.find(Pr=>Pr.id==="itemTitle-1"),qn=At.elements.find(Pr=>Pr.id==="itemContent-1"),$n=At.elements.find(Pr=>Pr.id==="item-icon-1");fn&&(fn.top=200),qn&&(qn.top=230),$n&&($n.top=205);const gr=At.elements.find(Pr=>Pr.id==="itemTitle-2"),Dr=At.elements.find(Pr=>Pr.id==="itemContent-2"),lo=At.elements.find(Pr=>Pr.id==="item-icon-2");gr&&(gr.top=300),Dr&&(Dr.top=330),lo&&(lo.top=305);const fo=At.elements.find(Pr=>Pr.id==="content-side-decoration");fo&&(fo.top=40)}else if(yn===3){const un=At.elements.find(fr=>fr.id==="item-bg-1"),kn=At.elements.find(fr=>fr.id==="item-bg-2"),fn=At.elements.find(fr=>fr.id==="item-bg-3");un&&(un.top=140),kn&&(kn.top=240),fn&&(fn.top=340);const qn=At.elements.find(fr=>fr.id==="itemTitle-1"),$n=At.elements.find(fr=>fr.id==="itemContent-1"),gr=At.elements.find(fr=>fr.id==="item-icon-1");qn&&(qn.top=150),$n&&($n.top=180),gr&&(gr.top=155);const Dr=At.elements.find(fr=>fr.id==="itemTitle-2"),lo=At.elements.find(fr=>fr.id==="itemContent-2"),fo=At.elements.find(fr=>fr.id==="item-icon-2");Dr&&(Dr.top=250),lo&&(lo.top=280),fo&&(fo.top=255);const Pr=At.elements.find(fr=>fr.id==="itemTitle-3"),oa=At.elements.find(fr=>fr.id==="itemContent-3"),Ra=At.elements.find(fr=>fr.id==="item-icon-3");Pr&&(Pr.top=350),oa&&(oa.top=380),Ra&&(Ra.top=355);const to=At.elements.find(fr=>fr.id==="content-side-decoration");to&&(to.top=40)}else if(yn===4){const un=At.elements.find(Dr=>Dr.id==="item-bg-1"),kn=At.elements.find(Dr=>Dr.id==="item-bg-2"),fn=At.elements.find(Dr=>Dr.id==="item-bg-3"),qn=At.elements.find(Dr=>Dr.id==="item-bg-4");un&&(un.top=120),kn&&(kn.top=220),fn&&(fn.top=320),qn&&(qn.top=420),[{id:"itemTitle-1",top:130},{id:"itemContent-1",top:160},{id:"item-icon-1",top:135},{id:"itemTitle-2",top:230},{id:"itemContent-2",top:260},{id:"item-icon-2",top:235},{id:"itemTitle-3",top:330},{id:"itemContent-3",top:360},{id:"item-icon-3",top:335},{id:"itemTitle-4",top:430},{id:"itemContent-4",top:460},{id:"item-icon-4",top:435}].forEach(({id:Dr,top:lo})=>{const fo=At.elements.find(Pr=>Pr.id===Dr);fo&&(fo.top=lo)});const gr=At.elements.find(Dr=>Dr.id==="content-side-decoration");gr&&(gr.top=100)}Se.push(At)});else{const $e=JSON.parse(JSON.stringify(hg[3]));$e.id=`template7-dynamic-content-${le}-default`;const dt=$e.elements.find(un=>un.id==="content-title");dt&&(dt.textType="title",dt.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${V.title}</span></strong></p>`);const At=Math.floor(Math.random()*3)+2,En=["主要内容","详细说明","补充内容","总结要点"],Cn=["待AI填充","待AI填充","待AI填充","待AI填充"],yn=[];for(let un=0;un<At;un++)yn.push({title:En[un]||`要点${un+1}`,content:Cn[un]||"待AI填充"});for(let un=0;un<At;un++){const kn=yn[un],fn=$e.elements.find($n=>$n.id===`itemTitle-${un+1}`);fn&&(fn.textType="itemTitle",fn.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${kn.title}</span></strong></p>`);const qn=$e.elements.find($n=>$n.id===`itemContent-${un+1}`);qn&&(qn.textType="itemContent",qn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${kn.content}</span></p>`)}for(let un=At;un<4;un++)$e.elements=$e.elements.filter(kn=>kn.id!==`itemTitle-${un+1}`&&kn.id!==`itemContent-${un+1}`&&kn.id!==`item-bg-${un+1}`&&kn.id!==`item-icon-${un+1}`);if(At===2){const un=$e.elements.find(Pr=>Pr.id==="item-bg-1"),kn=$e.elements.find(Pr=>Pr.id==="item-bg-2");un&&(un.top=190),kn&&(kn.top=290);const fn=$e.elements.find(Pr=>Pr.id==="itemTitle-1"),qn=$e.elements.find(Pr=>Pr.id==="itemContent-1"),$n=$e.elements.find(Pr=>Pr.id==="item-icon-1");fn&&(fn.top=200),qn&&(qn.top=230),$n&&($n.top=205);const gr=$e.elements.find(Pr=>Pr.id==="itemTitle-2"),Dr=$e.elements.find(Pr=>Pr.id==="itemContent-2"),lo=$e.elements.find(Pr=>Pr.id==="item-icon-2");gr&&(gr.top=300),Dr&&(Dr.top=330),lo&&(lo.top=305);const fo=$e.elements.find(Pr=>Pr.id==="content-side-decoration");fo&&(fo.top=40)}else if(At===3){const un=$e.elements.find(fr=>fr.id==="item-bg-1"),kn=$e.elements.find(fr=>fr.id==="item-bg-2"),fn=$e.elements.find(fr=>fr.id==="item-bg-3");un&&(un.top=140),kn&&(kn.top=240),fn&&(fn.top=340);const qn=$e.elements.find(fr=>fr.id==="itemTitle-1"),$n=$e.elements.find(fr=>fr.id==="itemContent-1"),gr=$e.elements.find(fr=>fr.id==="item-icon-1");qn&&(qn.top=150),$n&&($n.top=180),gr&&(gr.top=155);const Dr=$e.elements.find(fr=>fr.id==="itemTitle-2"),lo=$e.elements.find(fr=>fr.id==="itemContent-2"),fo=$e.elements.find(fr=>fr.id==="item-icon-2");Dr&&(Dr.top=250),lo&&(lo.top=280),fo&&(fo.top=255);const Pr=$e.elements.find(fr=>fr.id==="itemTitle-3"),oa=$e.elements.find(fr=>fr.id==="itemContent-3"),Ra=$e.elements.find(fr=>fr.id==="item-icon-3");Pr&&(Pr.top=350),oa&&(oa.top=380),Ra&&(Ra.top=355);const to=$e.elements.find(fr=>fr.id==="content-side-decoration");to&&(to.top=40)}else if(At===4){const un=$e.elements.find(Dr=>Dr.id==="item-bg-1"),kn=$e.elements.find(Dr=>Dr.id==="item-bg-2"),fn=$e.elements.find(Dr=>Dr.id==="item-bg-3"),qn=$e.elements.find(Dr=>Dr.id==="item-bg-4");un&&(un.top=120),kn&&(kn.top=220),fn&&(fn.top=320),qn&&(qn.top=420),[{id:"itemTitle-1",top:130},{id:"itemContent-1",top:160},{id:"item-icon-1",top:135},{id:"itemTitle-2",top:230},{id:"itemContent-2",top:260},{id:"item-icon-2",top:235},{id:"itemTitle-3",top:330},{id:"itemContent-3",top:360},{id:"item-icon-3",top:335},{id:"itemTitle-4",top:430},{id:"itemContent-4",top:460},{id:"item-icon-4",top:435}].forEach(({id:Dr,top:lo})=>{const fo=$e.elements.find(Pr=>Pr.id===Dr);fo&&(fo.top=lo)});const gr=$e.elements.find(Dr=>Dr.id==="content-side-decoration");gr&&(gr.top=100)}Se.push($e)}});const z=JSON.parse(JSON.stringify(hg[4]));return z.id="template7-dynamic-end",Se.push(z),console.log("基于template_7.json的动态多页结构生成完成,共",Se.length,"页"),Se},E9=()=>{t.value.length>2e3&&(t.value=t.value.substring(0,2e3),Ct.warning("消息长度不能超过2000字"))},k9=async()=>{try{console.log("开始获取安全培训功能卡片...");const fe=await Bn.getFunctionCard({function_type:1});console.log("功能卡片响应:",fe),fe.statusCode===200?(A.value=fe.data,console.log("功能卡片数据已设置:",A.value)):console.error("获取功能卡片失败:",fe.statusCode)}catch(fe){console.error("获取功能卡片失败:",fe)}},T9=async()=>{try{console.log("开始获取安全培训热点问题...");const fe=await Bn.getHotQuestion({question_type:1});console.log("热点问题响应:",fe),fe.statusCode===200?(S.value=fe.data,console.log("热点问题数据已设置:",S.value)):console.error("获取热点问题失败:",fe.statusCode)}catch(fe){console.error("获取热点问题失败:",fe)}},X5=fe=>{switch(fe){case".doc":case".docx":return hq;default:return"📎"}},Sm=fe=>{if(fe===0)return"0 B";const se=1024,Se=["B","KB","MB","GB"],E=Math.floor(Math.log(fe)/Math.log(se));return parseFloat((fe/Math.pow(se,E)).toFixed(2))+" "+Se[E]},J5=()=>{q.value&&(q.value=null)},_9=()=>{if(q.value){Ct.warning("只能上传一个文件,请先删除当前文件");return}Z5.value?.click()},D9=fe=>{if(fe.size>j.maxSize)throw new Error("文件大小不能超过20MB");const se="."+fe.name.split(".").pop().toLowerCase();if(!j.allowedTypes.includes(se))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return se},I9=async fe=>{try{if(console.log("开始读取Word文件:",fe.name,"文件大小:",fe.size),fe.size===0)throw new Error("Word文件为空");console.log("正在导入mammoth库...");const se=await Mf(()=>Promise.resolve().then(()=>$E),void 0);console.log("mammoth库导入成功");const Se=await fe.arrayBuffer();console.log("文件转换为ArrayBuffer成功,大小:",Se.byteLength),console.log("开始提取文本内容...");const E=await se.extractRawText({arrayBuffer:Se});return console.log("Word文件读取完成,内容长度:",E.value.length),E.value}catch(se){throw console.error("Word文件读取失败,详细错误:",se),console.error("错误堆栈:",se.stack),se.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):se.message.includes("File is empty")?new Error("Word文件为空"):new Error(`Word文件读取失败: ${se.message}`)}},O9=(fe,se)=>{if(!se)return M9(fe);const Se=`
- 📄 文件信息:
- 文件名:${se.name}
- 文件大小:${Sm(se.size)}
- 文件类型:${se.type}
- 📝 文件内容:
- ${se.content}
- ---
- `;return fe.replace(/<word>.*?<\/word>/gs,Se).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},M9=fe=>{const se=fe.match(/<filename>(.*?)<\/filename>/),Se=se?se[1]:"未知文件",E=fe.match(/<filesize>(.*?)<\/filesize>/),T=E?parseInt(E[1]):0,I=fe.match(/<word>(.*?)<\/word>/s),R=I?I[1].trim():"无内容",z=`
- 📄 文件信息:
- 文件名:${Se}
- 文件大小:${Sm(T)}
- 文件类型:${Se.endsWith(".docx")?".docx":Se.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${R}
- ---
- `;return fe.replace(/<word>.*?<\/word>/gs,z).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},P9=async fe=>{const se=fe.target.files[0];if(se)try{const Se=D9(se);U.value=!0,console.log("开始读取文件内容:",se.name);const E=await I9(se);q.value={file:se,name:se.name,size:se.size,type:Se,icon:X5(Se),content:E};const T=E.length;console.log("文件内容提取完成,字符数:",T),Ct.success(`文件读取成功,提取了${T}个字符的内容`)}catch(Se){console.error("文件读取失败:",Se),Ct.error(Se.message||"文件读取失败,请重试")}finally{U.value=!1,fe.target.value=""}},N9=()=>{console.log("点击语音按钮"),H.value?B9():R9()},R9=()=>{console.log("开始语音输入"),$()||Ct.error("语音识别启动失败,请检查麦克风权限")},B9=()=>{console.log("停止语音输入"),L(),G.value.trim()&&(t.value=G.value)},ex=async()=>{try{if(!ee.value||ee.value.length===0){Ct.warning("暂无大纲内容可复制");return}let fe=`${X.value||"安全培训大纲"}
- `;if(ee.value.forEach((Se,E)=>{fe+=`${Se.title}
- `,Se.sections&&Se.sections.length>0&&Se.sections.forEach((T,I)=>{fe+=` ${T.title}
- `,T.subsections&&T.subsections.length>0&&T.subsections.forEach((R,z)=>{fe+=` ${R.title}
- `,R.subsubsections&&R.subsubsections.length>0&&(R.subsubsections.forEach((V,le)=>{fe+=` - ${V.title}
- `,V.content&&(fe+=` ${V.content}
- `)}),fe+=`
- `)})})}),navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(fe),Ct.success("复制成功");return}catch(Se){console.warn("Clipboard API 失败,使用降级方案:",Se)}const se=document.createElement("textarea");se.value=fe,se.style.position="fixed",se.style.left="-999999px",se.style.top="-999999px",document.body.appendChild(se),se.focus(),se.select();try{if(document.execCommand("copy"))Ct.success("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(Se){console.error("传统复制方法也失败:",Se),Ct.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(fe){console.error("复制大纲失败:",fe),Ct.error("复制失败,请手动选择文本复制")}},L9=async()=>{try{if(!ee.value||ee.value.length===0){Ct.warning("暂无大纲内容可下载");return}let fe=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${X.value||"安全培训大纲"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .outline-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- h1, h2, h3, h4, h5, h6 {
- color: #000;
- font-weight: bold;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- margin-top: 20px;
- margin-bottom: 15px;
- }
- h1 {
- font-size: 20px;
- border-bottom: 2px solid #000;
- padding-bottom: 10px;
- }
- h2 {
- font-size: 18px;
- margin-top: 20px;
- margin-bottom: 12px;
- }
- h3 {
- font-size: 16px;
- margin-top: 15px;
- margin-bottom: 8px;
- }
- h4 {
- font-size: 14px;
- margin-top: 12px;
- margin-bottom: 6px;
- }
- ul, li {
- color: #000;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- }
- li {
- margin-bottom: 4px;
- }
- .stats {
- background: #f8f9fa;
- padding: 20px;
- border-radius: 8px;
- margin-top: 30px;
- border: 1px solid #ddd;
- }
- .stats h3 {
- color: #2c3e50;
- margin-top: 0;
- font-size: 16px;
- }
- .stats p {
- margin: 8px 0;
- color: #555;
- font-size: 14px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="outline-title">${X.value||"安全培训大纲"}</div>
- </div>
- `;ee.value.forEach((T,I)=>{fe+=`<h2>${T.title}</h2>`,T.sections&&T.sections.length>0&&T.sections.forEach((R,z)=>{fe+=`<h3>${R.title}</h3>`,R.subsections&&R.subsections.length>0&&R.subsections.forEach((V,le)=>{fe+=`<h4>${V.title}</h4>`,V.subsubsections&&V.subsubsections.length>0&&(fe+="<ul>",V.subsubsections.forEach((Oe,Ze)=>{fe+=`<li><strong>${Oe.title}</strong>`,Oe.content&&(fe+=`<br>${Oe.content}`),fe+="</li>"}),fe+="</ul>")})})}),te.value&&(fe+=`
- <div class="stats">
- <h3>大纲统计信息</h3>
- <p><strong>总章节数:</strong>${te.value.totalChapters||"未知"}章</p>
- <p><strong>总小节数:</strong>${te.value.totalSections||"未知"}小节</p>
- <p><strong>预计PPT页数:</strong>${te.value.estimatedPages||"未知"}</p>
- <p><strong>预计讲解时长:</strong>${te.value.estimatedTime||"未知"}</p>
- </div>
- `),fe+=`
- </body>
- </html>
- `;const se=new Blob([fe],{type:"application/msword"}),Se=URL.createObjectURL(se),E=document.createElement("a");E.href=Se,E.download=`${X.value||"安全培训大纲"}.doc`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(Se),Ct.success("下载成功")}catch(fe){console.error("下载大纲失败:",fe),Ct.error("下载失败,请重试")}};return(fe,se)=>(F(),K("div",wQt,[Ve(zC),x("div",{class:re(["history-sidebar",{disabled:w.value}])},[x("div",AQt,[se[23]||(se[23]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:QC,alt:"新建任务",class:re(["new-chat-btn",{disabled:w.value}]),onClick:bt},null,2)]),x("div",CQt,[m.value&&Nn.value===0?(F(),K("div",xQt,se[24]||(se[24]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Nn.value>0?(F(!0),K(Pt,{key:1},an(mn.value,(Se,E)=>(F(),K("div",{key:E,class:re(["history-item",{active:Se.isActive,disabled:w.value}]),onClick:()=>Yt(Se),style:Xt({cursor:Se.isActive||w.value?"default":"pointer"})},[x("div",EQt,[x("img",{src:Gt(Se),alt:"培训图标",class:"history-icon-img"},null,8,kQt)]),x("div",TQt,[x("div",_Qt,We(Se.title),1),x("div",DQt,[x("span",IQt,We(Se.time),1)])]),x("div",{class:re(["delete-btn",{"always-visible":Se.isActive}]),onClick:Qt(T=>tr(Se,E),["stop"])},se[25]||(se[25]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,OQt)],14,SQt))),128)):(F(),K("div",MQt,se[26]||(se[26]=[x("img",{src:YC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])],2),x("div",PQt,[se[84]||(se[84]=x("div",{class:"work-header"},[x("h2",null,"安全培训")],-1)),x("div",NQt,[d.value==="step1"?(F(),K("div",RQt,[k.value?(F(),K("div",HQt,[x("div",WQt,[(F(!0),K(Pt,null,an(M.value,(Se,E)=>(F(),K("div",{key:E,class:re(["message-item",Se.type])},[Se.type==="user"?(F(),K("div",VQt,[x("div",qQt,[Se.file?(F(),K("div",GQt,[x("div",KQt,[x("div",QQt,[Se.file.type===".doc"||Se.file.type===".docx"?(F(),K("img",{key:0,src:Se.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,YQt)):(F(),K("span",ZQt,We(Se.file.icon),1))]),x("div",XQt,[x("div",JQt,We(Se.file.name),1),x("div",eYt,We(Sm(Se.file.size)),1)])])])):xe("",!0),Se.content?(F(),K("div",tYt,We(Se.content),1)):xe("",!0)]),x("div",nYt,[x("button",{class:"action-btn copy-btn",onClick:T=>w9(Se)},se[32]||(se[32]=[x("img",{src:Bv,alt:"复制",class:"action-icon"},null,-1),xn(" 复制 ",-1)]),8,rYt),se[33]||(se[33]=x("button",{class:"action-btn edit-btn"},[x("img",{src:ZC,alt:"编辑",class:"action-icon"}),xn(" 编辑 ")],-1))])])):Se.type==="ai"?(F(),K("div",oYt,[se[35]||(se[35]=x("div",{class:"ai-avatar-small"},[x("img",{src:h_,alt:"AI",class:"ai-icon"})],-1)),x("div",{class:"message-content","data-message-index":E},[x("div",aYt,[Se.displayContent.length===0?(F(),K("div",sYt,se[34]||(se[34]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1),x("span",null,"AI正在思考中...",-1)]))):(F(),K("div",{key:1,innerHTML:Se.displayContent,class:"ai-content"},null,8,lYt))])],8,iYt)])):xe("",!0)],2))),128))])])):(F(),K("div",BQt,[se[31]||(se[31]=x("div",{class:"ai-intro"},[x("div",{class:"ai-avatar"},[x("img",{src:h_,alt:"AI头像",class:"ai-avatar-img"})]),x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")])],-1)),x("div",LQt,[(F(!0),K(Pt,null,an(A.value,(Se,E)=>(F(),K("div",{key:Se.id||E,class:"function-card",onClick:T=>bo(Se.function_title)},[x("div",UQt,[x("div",$Qt,[x("img",{src:ho(Se.function_title),alt:Se.function_title,class:"card-icon-img"},null,8,zQt)]),x("h4",null,We(Se.function_title),1)]),x("div",jQt,[x("p",null,We(Se.function_content),1)])],8,FQt))),128)),A.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:se[0]||(se[0]=Se=>bo("safety-training"))},se[27]||(se[27]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:g_,alt:"安全培训课程",class:"card-icon-img"})]),x("h4",null,"安全培训课程")],-1),x("div",{class:"card-description"},[x("p",null,"施工安全培训,操作规范学习")],-1)]))):xe("",!0),A.value.length===0?(F(),K("div",{key:1,class:"function-card",onClick:se[1]||(se[1]=Se=>bo("safety-assessment"))},se[28]||(se[28]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:v_,alt:"安全评估",class:"card-icon-img"})]),x("h4",null,"安全评估测试")],-1),x("div",{class:"card-description"},[x("p",null,"安全知识测评,能力水平评估")],-1)]))):xe("",!0),A.value.length===0?(F(),K("div",{key:2,class:"function-card",onClick:se[2]||(se[2]=Se=>bo("safety-regulations"))},se[29]||(se[29]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:m_,alt:"安全法规",class:"card-icon-img"})]),x("h4",null,"安全法规查询")],-1),x("div",{class:"card-description"},[x("p",null,"安全法律法规,标准规范查询")],-1)]))):xe("",!0),A.value.length===0?(F(),K("div",{key:3,class:"function-card",onClick:se[3]||(se[3]=Se=>bo("emergency-procedures"))},se[30]||(se[30]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:y_,alt:"应急程序",class:"card-icon-img"})]),x("h4",null,"应急处理程序")],-1),x("div",{class:"card-description"},[x("p",null,"事故应急预案,处理流程指导")],-1)]))):xe("",!0)])]))])):xe("",!0),d.value==="step2"?(F(),K("div",uYt,[m.value?(F(),K("div",cYt,se[36]||(se[36]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载历史记录"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",dYt,[x("div",fYt,[x("div",pYt,[x("div",hYt,[Te.value!=="title"?(F(),K("h3",{key:0,class:re(["outline-title",{disabled:h.value||g.value}]),onClick:se[4]||(se[4]=Se=>!h.value&&!g.value&&ti(null,"title",null,X.value||"安全培训大纲"))},We(X.value||"安全培训大纲"),3)):(F(),K("div",gYt,[ln(x("textarea",{"onUpdate:modelValue":se[5]||(se[5]=Se=>be.value=Se),class:"edit-textarea title-edit-textarea",onKeyup:Lr(Yo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref:"titleEditInput",autofocus:""},null,40,vYt),[[jr,be.value]])]))]),x("div",mYt,[x("button",{class:"action-btn exam-btn",onClick:Vr,disabled:g.value||!ee.value.length},se[37]||(se[37]=[x("img",{src:Ske,alt:"考试",class:"action-icon"},null,-1),xn(" 生成考题 ",-1)]),8,yYt),x("button",{class:"action-btn",onClick:ex,disabled:h.value},se[38]||(se[38]=[x("img",{src:e3,alt:"复制",class:"action-icon"},null,-1),xn(" 复制 ",-1)]),8,bYt),x("button",{class:"action-btn",onClick:L9,disabled:h.value},se[39]||(se[39]=[x("img",{src:gq,alt:"下载",class:"action-icon"},null,-1),xn(" 下载 ",-1)]),8,wYt)])]),x("div",{class:re(["outline-content",{disabled:h.value}])},[h.value?(F(),K("div",AYt,se[40]||(se[40]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),g.value?(F(),K("div",CYt,se[41]||(se[41]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),ee.value&&ee.value.length>0?(F(),K("div",xYt,[(F(!0),K(Pt,null,an(ee.value,(Se,E)=>(F(),K(Pt,{key:E},[Se&&Se.sections?(F(),K("div",{key:0,class:re(["outline-chapter",{dragging:De.value===E,"drag-over":pe.value===E&&De.value!==E}]),draggable:"true",onDragstart:T=>Ci(T,E),onDragend:xi,onDragover:T=>mi(T,E),onDragleave:ra,onDrop:T=>_r(T,E)},[x("div",EYt,[Te.value!=="chapter"||Y.value!==E?(F(),K("h4",{key:0,class:re(["chapter-title",{disabled:g.value}]),onClick:T=>!g.value&&ti(Se,"chapter",E,Ie(Se.title))},We(ne(Se.title,E)),11,kYt)):(F(),K("div",TYt,[x("div",_Yt,[ln(x("textarea",{"onUpdate:modelValue":se[6]||(se[6]=T=>be.value=T),class:"edit-textarea chapter-edit-textarea",onKeyup:Lr(Yo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"chapterEditInput",autofocus:""},null,40,DYt),[[jr,be.value]]),x("div",IYt,[x("button",{class:"edit-option-btn",onClick:T=>Si("section",E)},se[42]||(se[42]=[x("img",{src:V8,alt:"添加小节",class:"edit-icon"},null,-1)]),8,OYt),ee.value.length>2?(F(),K("button",{key:0,class:"edit-option-btn delete-btn",onClick:T=>Pa("chapter",E)},se[43]||(se[43]=[x("img",{src:wc,alt:"删除",class:"edit-icon"},null,-1)]),8,MYt)):xe("",!0)])])]))]),x("div",PYt,[(F(!0),K(Pt,null,an(Se.sections,(T,I)=>(F(),K(Pt,{key:I},[T&&T.title!=="内容要点"&&T.title!=="概述"&&T.title!=="内容详情"?(F(),K("div",NYt,[x("div",RYt,[Te.value!=="section"||Y.value!==`${E}-${I}`?(F(),K("div",{key:0,class:re(["section-title",{disabled:g.value}]),onClick:R=>!g.value&&ti(T,"section",`${E}-${I}`,T.title)},We(T.title),11,BYt)):(F(),K("div",LYt,[x("div",FYt,[ln(x("textarea",{"onUpdate:modelValue":se[7]||(se[7]=R=>be.value=R),class:"edit-textarea section-edit-textarea",onKeyup:Lr(Yo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"sectionEditInput",autofocus:""},null,40,UYt),[[jr,be.value]]),x("div",$Yt,[x("button",{class:"edit-option-btn",onClick:R=>Si("subsection",`${E}-${I}`)},se[44]||(se[44]=[x("img",{src:V8,alt:"添加子标题",class:"edit-icon"},null,-1)]),8,zYt),Se.sections.length>1?(F(),K("button",{key:0,class:"edit-option-btn delete-btn",onClick:R=>Pa("section",`${E}-${I}`)},se[45]||(se[45]=[x("img",{src:wc,alt:"删除",class:"edit-icon"},null,-1)]),8,jYt)):xe("",!0)])])]))]),T&&T.subsections&&T.subsections.length>0?(F(),K("div",HYt,[(F(!0),K(Pt,null,an(T.subsections,(R,z)=>(F(),K(Pt,{key:z},[R&&R.title!=="内容要点"&&R.title!=="概述"&&R.title!=="内容详情"&&!R.title.includes("总章节数")&&!R.title.includes("总小节数")&&!R.title.includes("预计PPT页数")&&!R.title.includes("预计讲解时长")?(F(),K("div",WYt,[x("div",VYt,[Te.value!=="subsection"||Y.value!==`${E}-${I}-${z}`?(F(),K("div",{key:0,class:re(["subsection-title",{disabled:g.value}]),onClick:V=>!g.value&&ti(R,"subsection",`${E}-${I}-${z}`,R.title)},We(R.title),11,qYt)):(F(),K("div",GYt,[x("div",KYt,[ln(x("textarea",{"onUpdate:modelValue":se[8]||(se[8]=V=>be.value=V),class:"edit-textarea subsection-edit-textarea",onKeyup:Lr(Yo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"subsectionEditInput",autofocus:""},null,40,QYt),[[jr,be.value]]),x("div",YYt,[x("button",{class:"edit-option-btn delete-btn",onClick:V=>Pa("subsection",`${E}-${I}-${z}`)},se[46]||(se[46]=[x("img",{src:wc,alt:"删除",class:"edit-icon"},null,-1)]),8,ZYt)])])]))]),R.subsubsections&&R.subsubsections.length>0?(F(),K("div",XYt,[(F(!0),K(Pt,null,an(R.subsubsections,(V,le)=>(F(),K("div",{key:le,class:"subsubsection-item"},[x("div",JYt,[Te.value!=="subsubsection"||Y.value!==`${E}-${I}-${z}-${le}`?(F(),K("div",{key:0,class:re(["subsubsection-title",{disabled:g.value}]),onClick:Oe=>!g.value&&ti(V,"subsubsection",`${E}-${I}-${z}-${le}`,V.title)},We(V.title),11,eZt)):(F(),K("div",tZt,[x("div",nZt,[ln(x("textarea",{"onUpdate:modelValue":se[9]||(se[9]=Oe=>be.value=Oe),class:"edit-textarea subsubsection-edit-textarea",onKeyup:Lr(Yo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"subsubsectionEditInput",autofocus:""},null,40,rZt),[[jr,be.value]]),se[47]||(se[47]=x("div",{class:"edit-options-inline"},null,-1))])]))])]))),128))])):xe("",!0)])):xe("",!0)],64))),128))])):xe("",!0)])):xe("",!0)],64))),128))])],42,SYt)):xe("",!0)],64))),128)),ee.value.length<6?(F(),K("div",oZt,[x("button",{class:"add-chapter-btn",onClick:se[10]||(se[10]=Se=>Si("chapter",null))},se[48]||(se[48]=[x("img",{src:V8,alt:"添加章节",class:"add-icon"},null,-1),x("span",null,"添加新章节",-1)]))])):xe("",!0)])):(F(),K("div",iZt,se[49]||(se[49]=[ki('<div class="outline-chapter" data-v-9e63d9b0><h4 data-v-9e63d9b0>第一章 安全生产基本原则</h4><div class="outline-section" data-v-9e63d9b0><div class="section-item" data-v-9e63d9b0>1.1 安全生产的重要性</div><div class="section-item" data-v-9e63d9b0>1.2 安全生产相关法规</div><div class="section-subsection" data-v-9e63d9b0><div class="subsection-item" data-v-9e63d9b0>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-9e63d9b0>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-9e63d9b0><h4 data-v-9e63d9b0>第二章 施工现场安全管理</h4><div class="outline-section" data-v-9e63d9b0><div class="section-item" data-v-9e63d9b0>2.1 安全责任制度</div><div class="section-item" data-v-9e63d9b0>2.2 安全教育培训</div><div class="section-item" data-v-9e63d9b0>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-9e63d9b0><h4 data-v-9e63d9b0>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-9e63d9b0><div class="section-item" data-v-9e63d9b0>3.1 高空作业安全</div><div class="section-subsection" data-v-9e63d9b0><div class="subsection-item" data-v-9e63d9b0>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-9e63d9b0>3.2 用电安全</div><div class="section-item" data-v-9e63d9b0>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-9e63d9b0><h4 data-v-9e63d9b0>第四章 安全事故案例分析</h4><div class="outline-section" data-v-9e63d9b0><div class="section-item" data-v-9e63d9b0>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-9e63d9b0><h4 data-v-9e63d9b0>第五章 总结与展望</h4></div>',5)])))],2)]),x("div",aZt,[x("div",sZt,[se[54]||(se[54]=x("div",{class:"section-header"},[x("img",{src:oQt,alt:"统计",class:"section-icon"}),x("h5",null,"大纲统计信息")],-1)),x("div",lZt,[x("div",uZt,[se[50]||(se[50]=x("span",{class:"stat-label"},"总章节数:",-1)),x("span",cZt,We(te.value.totalChapters||0)+"章",1)]),x("div",dZt,[se[51]||(se[51]=x("span",{class:"stat-label"},"总小节数:",-1)),x("span",fZt,We(te.value.totalSections||0)+"小节",1)]),x("div",pZt,[se[52]||(se[52]=x("span",{class:"stat-label"},"预计PPT页数:",-1)),x("span",hZt,We(te.value.estimatedPages||"0页"),1)]),x("div",gZt,[se[53]||(se[53]=x("span",{class:"stat-label"},"预计讲解时长:",-1)),x("span",vZt,We(te.value.estimatedTime||"0分钟"),1)])])]),se[62]||(se[62]=ki('<div class="sidebar-section" data-v-9e63d9b0><div class="section-header" data-v-9e63d9b0><img src="'+iQt+'" alt="提示" class="section-icon" data-v-9e63d9b0><h5 data-v-9e63d9b0>大纲编辑提示</h5></div><div class="section-content" data-v-9e63d9b0><ul class="tip-list" data-v-9e63d9b0><li data-v-9e63d9b0>点击标题文本可直接在白色区域编辑内容</li><li data-v-9e63d9b0>悬停在章节上将显示编辑选项</li><li data-v-9e63d9b0>编辑完成后系统会自动保存更改</li><li data-v-9e63d9b0>如果内容较多,滚动白色区域可浏览更多大纲内容</li><li data-v-9e63d9b0>章节顺序可以通过拖拽调整</li></ul></div></div>',1)),x("div",mZt,[se[58]||(se[58]=x("div",{class:"section-header"},[x("h5",null,"大纲评价")],-1)),x("div",yZt,[se[57]||(se[57]=x("p",{class:"evaluation-question"},"这个大纲对您的需求满意度如何?",-1)),x("div",bZt,[x("button",{class:re(["eval-btn satisfied",{active:qi()==="satisfied"}]),onClick:se[11]||(se[11]=Se=>na("satisfied")),disabled:h.value},se[55]||(se[55]=[x("img",{src:Wy,alt:"满意",class:"eval-icon"},null,-1),xn(" 满意 ",-1)]),10,wZt),x("button",{class:re(["eval-btn unsatisfied",{active:qi()==="unsatisfied"}]),onClick:se[12]||(se[12]=Se=>na("unsatisfied")),disabled:h.value},se[56]||(se[56]=[x("img",{src:Vy,alt:"不满意",class:"eval-icon"},null,-1),xn(" 不满意 ",-1)]),10,AZt)])])]),x("div",CZt,[x("button",{class:"action-btn secondary",onClick:yr,disabled:h.value||g.value},[x("img",{src:yj,alt:"刷新",class:re(["action-icon",{rotating:h.value}])},null,2),se[59]||(se[59]=xn(" 生成新大纲 ",-1))],8,xZt),B.value?xe("",!0):(F(),K("button",{key:0,class:"action-btn primary",onClick:vn,disabled:h.value||g.value},se[60]||(se[60]=[xn(" 继续创作 ",-1),x("img",{src:bj,alt:"箭头",class:"action-icon"},null,-1)]),8,SZt)),N.value&&B.value?(F(),K("button",{key:1,class:"action-btn primary",onClick:or,style:{background:"#EA580C",color:"#fff"}},se[61]||(se[61]=[xn(" 修改PPT模板 ",-1),x("img",{src:bj,alt:"箭头",class:"action-icon"},null,-1)]))):xe("",!0)])])])])):xe("",!0),d.value==="step3"?(F(),K("div",{key:2,class:re(["step3-content",{disabled:y.value}])},[m.value?(F(),K("div",EZt,se[63]||(se[63]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载历史记录"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",kZt,[y.value?(F(),K("div",TZt,se[64]||(se[64]=[x("div",{class:"applying-content"},[x("p",null,"AI正在填充内容并应用模板,请稍候...")],-1)]))):xe("",!0),x("div",_Zt,[x("div",DZt,[x("div",IZt,[se[65]||(se[65]=x("h3",{class:"preview-title"},"预览效果",-1)),x("span",OZt,"已保存于 "+We(jt.value),1)]),x("div",MZt,[Fe.value?xe("",!0):(F(),K("div",PZt,[x("button",{class:"carousel-btn prev",onClick:xr},se[66]||(se[66]=[x("img",{src:aQt,alt:"上一页",class:"carousel-icon"},null,-1)])),x("div",NZt,[Ne.value&&Ne.value.length>0?(F(),K("div",RZt,[x("div",{class:"slide-content",style:Xt({background:W5()})},[(F(!0),K(Pt,null,an(Cp().elements,(Se,E)=>(F(),K("div",{key:Se.id,class:"slide-element",style:Xt(q5(Se))},[Se.type==="text"?(F(),K("div",{key:0,innerHTML:Se.content},null,8,BZt)):Se.type==="image"&&Se.src?(F(),K("img",{key:1,src:Se.src,alt:Se.id},null,8,LZt)):xe("",!0)],4))),128))],4)])):(F(),K("img",{key:1,src:yt.value,alt:`第${oe.value+1}页`,class:"slide-image"},null,8,FZt))]),x("button",{class:"carousel-btn next",onClick:lr},se[67]||(se[67]=[x("img",{src:sQt,alt:"下一页",class:"carousel-icon"},null,-1)]))])),Fe.value?(F(),K("div",UZt,[x("div",$Zt,[Fe.value&&Ne.value.length>0?(F(),K("div",{key:0,class:"slide-preview",style:Xt({transform:`scale(${Wt.value})`,background:W5()})},[x("div",zZt,We(Ne.value.length)+"页, 当前第"+We(pt.value+1)+"页 ",1),se[68]||(se[68]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 点击背景图片、素材图片可更换")],-1)),(F(!0),K(Pt,null,an(H5().elements,(Se,E)=>(F(),K("div",{key:Se.id,class:re(["preview-element",{selected:Rt.value===E}]),style:Xt(q5(Se)),onClick:Qt(T=>h2(E),["stop"]),onDblclick:T=>G5(),onMousedown:T=>K5(T,E)},[Rt.value===E?(F(),K("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:Qt(T=>xm(T,E,"nw"),["stop"])},null,40,HZt)):xe("",!0),Rt.value===E?(F(),K("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:Qt(T=>xm(T,E,"ne"),["stop"])},null,40,WZt)):xe("",!0),Rt.value===E?(F(),K("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:Qt(T=>xm(T,E,"sw"),["stop"])},null,40,VZt)):xe("",!0),Rt.value===E?(F(),K("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:Qt(T=>xm(T,E,"se"),["stop"])},null,40,qZt)):xe("",!0),Rt.value===E?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(T=>K5(T,E),["stop"])},We(l9(Se.type)),41,GZt)):xe("",!0),Se.type==="image"&&Se.src?(F(),K("img",{key:5,src:Se.src,alt:Se.id,style:Xt({opacity:Se.opacity||1}),onClick:T=>p9(E),onMousedown:se[13]||(se[13]=Qt(()=>{},["stop"]))},null,44,KZt)):Se.type==="text"?(F(),K(Pt,{key:6},[Bt.value===E?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:en.value,style:Xt({color:Se.defaultColor,fontFamily:Se.defaultFontName,opacity:Se.opacity||1}),onInput:c9,onBlur:T=>d9(E),onMousedown:se[14]||(se[14]=Qt(()=>{},["stop"])),onKeydown:se[15]||(se[15]=Qt(()=>{},["stop"]))},null,44,QZt)):(F(),K("div",{key:1,innerHTML:Se.content,style:Xt({color:Se.defaultColor,fontFamily:Se.defaultFontName,opacity:Se.opacity||1})},null,12,YZt))],64)):Se.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Xt(u9(Se))},null,4)):xe("",!0)],46,jZt))),128))],4)):Fe.value&&Ne.value.length===0?(F(),K("div",ZZt,[x("div",XZt,[x("div",{class:"slide-content",contenteditable:"true",onInput:ye},[x("h2",JZt,We(Re.value.title||"点击编辑标题"),1),x("div",eXt,[x("p",null,We(Re.value.content||"点击编辑内容"),1)])],32)])])):xe("",!0)])])):xe("",!0)]),x("div",tXt,[Fe.value?xe("",!0):(F(),K("div",nXt,[x("div",rXt,[xn(" 第"+We(oe.value+1)+"页/共"+We(ct.value.length)+"页 ",1),x("div",oXt,[(F(!0),K(Pt,null,an(ct.value,(Se,E)=>(F(),K("div",{key:E,class:re(["progress-dot",{active:E===oe.value}]),onClick:T=>nr(E)},null,10,iXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:cr,ref_key:"thumbnailStrip",ref:xp},[(F(!0),K(Pt,null,an(ct.value,(Se,E)=>(F(),K("div",{key:E,class:re(["thumbnail-item",{active:E===oe.value}]),onClick:T=>nr(E)},[x("img",{src:Se,alt:`第${E+1}页`,class:"thumbnail-image"},null,8,sXt),x("div",lXt,We(E+1),1)],10,aXt))),128))],544)])),Fe.value&&Ne.value.length>0?(F(),K("div",uXt,[x("div",cXt,[xn(" 第"+We(pt.value+1)+"页/共"+We(Ne.value.length)+"页 ",1),x("div",dXt,[(F(!0),K(Pt,null,an(Ne.value,(Se,E)=>(F(),K("div",{key:E,class:re(["progress-dot",{active:E===pt.value}]),onClick:T=>Or(E)},null,10,fXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:cr,ref_key:"thumbnailStrip",ref:xp},[(F(!0),K(Pt,null,an(Ne.value,(Se,E)=>(F(),K("div",{key:E,class:re(["thumbnail-item",{active:E===pt.value}]),onClick:T=>Or(E)},[x("div",{class:"thumbnail-preview",style:Xt({background:a9(Se)})},[x("div",hXt,[(F(!0),K(Pt,null,an(Se.elements,T=>(F(),K("div",{key:T.id,class:"thumbnail-element",style:Xt(s9(T))},[T.type==="text"?(F(),K("div",{key:0,innerHTML:T.content},null,8,gXt)):T.type==="image"&&T.src?(F(),K("img",{key:1,src:T.src,alt:T.id},null,8,vXt)):xe("",!0)],4))),128))])],4),x("div",mXt,We(E+1),1)],10,pXt))),128))],544)])):xe("",!0)])])]),x("div",yXt,[Fe.value?xe("",!0):(F(),K("div",{key:0,class:re(["template-content",{disabled:y.value}])},[x("h4",bXt,"模板样式 ("+We(_t.value.length)+")",1),x("div",wXt,[(F(!0),K(Pt,null,an(_t.value,(Se,E)=>(F(),K("div",{key:E,class:re(["template-item",{active:ce.value===E}]),onClick:T=>{p2(E),C9()}},[x("div",CXt,[x("img",{src:Se.thumbnail,alt:Se.title,class:"template-img"},null,8,xXt)]),x("div",SXt,[x("h5",EXt,We(Se.title),1),x("div",kXt,[x("span",TXt,We(Se.updateTime),1),x("span",_Xt,We(Se.pageCount)+"页",1)]),Se.description?(F(),K("div",DXt,We(Se.description),1)):xe("",!0)])],10,AXt))),128))]),y.value?(F(),K("div",IXt,se[69]||(se[69]=[x("div",{class:"applying-content"},[x("p",null,"AI正在填充内容并应用模板,请稍候...")],-1)]))):xe("",!0)],2)),Fe.value?(F(),K("div",{key:1,class:re(["download-content",{disabled:b.value||g.value}])},[se[74]||(se[74]=x("h4",{class:"sidebar-title"},"下载选项",-1)),b.value?(F(),K("div",OXt,se[70]||(se[70]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成培训讲义,请稍候...")],-1)]))):xe("",!0),g.value?(F(),K("div",MXt,se[71]||(se[71]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",PXt,[(F(!0),K(Pt,null,an(ut.value,(Se,E)=>(F(),K("div",{key:E,class:re(["download-option",{active:Le.value===E}]),onClick:T=>v9(E)},[x("div",RXt,[x("img",{src:Se.icon,alt:Se.title,class:"option-img"},null,8,BXt)]),x("div",LXt,[x("h5",FXt,We(Se.title),1),x("p",UXt,We(Se.description),1)]),Le.value===E?(F(),K("div",$Xt,se[72]||(se[72]=[x("img",{src:lQt,alt:"选中",class:"check-icon"},null,-1)]))):xe("",!0)],10,NXt))),128))]),x("div",zXt,[x("button",{class:"action-btn secondary",onClick:m9}," 重新挑选模板 "),x("button",{class:"action-btn primary",onClick:de,disabled:ae.value},[se[73]||(se[73]=x("img",{src:uQt,alt:"下载",class:"download-icon"},null,-1)),xn(" "+We(ae.value?"生成中...":"立即下载"),1)],8,jXt)])],2)):xe("",!0)])]),Fe.value?xe("",!0):(F(),K("div",HXt,[x("button",{class:"action-btn secondary",onClick:Vn}," 返回编辑大纲 "),x("button",{class:"action-btn primary",onClick:Cm,disabled:y.value},[y.value?(F(),K("span",qXt,"正在处理中...")):(F(),K("span",VXt,"应用此模板"))],8,WXt)]))],2)):xe("",!0)]),d.value==="step1"&&!k.value&&!q.value?(F(),K("div",GXt,[(F(!0),K(Pt,null,an(S.value,(Se,E)=>(F(),K("div",{key:Se.id||E,class:"question-tag",onClick:T=>Xo(Se.question)},[x("img",{src:Wr(Se.question),alt:"问题",class:"question-icon"},null,8,QXt),xn(" "+We(Se.question),1)],8,KXt))),128)),S.value.length===0?(F(),K("div",{key:0,class:"question-tag",onClick:se[16]||(se[16]=Se=>Xo("施工现场安全培训的主要内容有哪些?"))},se[75]||(se[75]=[x("img",{src:ek,alt:"问题",class:"question-icon"},null,-1),xn(" 施工现场安全培训的主要内容有哪些? ",-1)]))):xe("",!0),S.value.length===0?(F(),K("div",{key:1,class:"question-tag",onClick:se[17]||(se[17]=Se=>Xo("高空作业安全防护措施有哪些要求?"))},se[76]||(se[76]=[x("img",{src:tk,alt:"问题",class:"question-icon"},null,-1),xn(" 高空作业安全防护措施有哪些要求? ",-1)]))):xe("",!0),S.value.length===0?(F(),K("div",{key:2,class:"question-tag",onClick:se[18]||(se[18]=Se=>Xo("《建设工程安全生产管理条例》"))},se[77]||(se[77]=[x("img",{src:nk,alt:"文档",class:"question-icon"},null,-1),xn(" 《建设工程安全生产管理条例》 ",-1)]))):xe("",!0)])):xe("",!0),d.value==="step1"?(F(),K("div",YXt,[x("div",ZXt,[q.value?(F(),K("div",XXt,[x("div",JXt,[x("div",eJt,[q.value.type===".doc"||q.value.type===".docx"?(F(),K("img",{key:0,src:q.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,tJt)):(F(),K("span",nJt,We(q.value.icon),1))]),x("div",rJt,[x("div",oJt,We(q.value.name),1),x("div",iJt,We(Sm(q.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:J5},se[78]||(se[78]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",aJt,[x("button",{class:"attach-btn",onClick:_9,disabled:D.value||W.value},se[79]||(se[79]=[x("div",{class:"icon-container"},[x("img",{src:pq,alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}})],-1)]),8,sJt),ln(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":se[19]||(se[19]=Se=>t.value=Se),onKeyup:Lr(Bo,["enter"]),onInput:E9,disabled:D.value||W.value,maxlength:"2000"},null,40,lJt),[[jr,t.value]]),x("button",{class:re(["voice-btn",{recording:C(H)}]),onClick:N9,disabled:D.value||W.value},[x("div",cJt,[se[80]||(se[80]=x("img",{src:Zf,alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,-1)),C(H)?(F(),K("div",dJt)):xe("",!0)])],10,uJt),se[81]||(se[81]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:Bo,disabled:D.value||W.value||!t.value.trim()},[x("img",{src:t.value.trim()&&!D.value&&!W.value?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,pJt)],8,fJt)])])])):xe("",!0),x("input",{ref_key:"fileInput",ref:Z5,type:"file",accept:".docx",style:{display:"none"},onChange:P9},null,544),x("input",{ref_key:"imageInput",ref:A9,type:"file",accept:"image/*",style:{display:"none"},onChange:h9},null,544),Ve(c0,{visible:l.value,title:"删除历史记录",message:ie.value,onConfirm:dn,onCancel:Ke,onClose:Ke},null,8,["visible","message"]),O.value?(F(),K("div",hJt,se[82]||(se[82]=[x("div",{class:"copy-toast",style:{background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"16px 24px","border-radius":"8px","font-size":"16px","font-weight":"500","box-shadow":"0 4px 12px rgba(0, 0, 0, 0.3)"}}," 已复制大纲 ",-1)]))):xe("",!0),P.value?(F(),K("div",{key:3,class:"wps-modal-overlay",onClick:se[22]||(se[22]=Se=>P.value=!1),style:{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.8)",display:"flex","justify-content":"center","align-items":"center","z-index":"9999"}},[x("div",{class:"wps-modal",onClick:se[21]||(se[21]=Qt(()=>{},["stop"])),style:{width:"98%",height:"95%","max-width":"none","max-height":"none",background:"white","border-radius":"8px","box-shadow":"0 10px 30px rgba(0, 0, 0, 0.3)",display:"flex","flex-direction":"column",overflow:"hidden"}},[x("div",gJt,[se[83]||(se[83]=x("h3",{style:{margin:"0","font-size":"18px","font-weight":"600",color:"#333"}},null,-1)),x("button",{class:"wps-modal-close",onClick:se[20]||(se[20]=Se=>P.value=!1),style:{background:"none",border:"none","font-size":"24px",color:"#666",cursor:"pointer",padding:"0",width:"30px",height:"30px",display:"flex","align-items":"center","justify-content":"center"}},"×")]),x("div",vJt,[x("div",mJt,[x("iframe",{src:_.value,frameborder:"0",allowfullscreen:"",class:"wps-iframe",title:"WPS AI PPT",onError:_n,style:{width:"100%",height:"calc(100% - 30px)",border:"none"}},null,40,yJt),B.value?xe("",!0):(F(),K("div",bJt," 蜀安AI PPT "))])])])])):xe("",!0)])]))}},AJt=Qo(wJt,[["__scopeId","data-v-9e63d9b0"]]),CJt={name:"TemplateEditor",data(){return{currentTemplateType:"cover",currentTemplateId:"cover-1",selectedElementIndex:-1,zoom:.6,showJSONEditor:!1,jsonContent:"",editingElementIndex:-1,editingHtml:"",isExportingImages:!1,currentSlide:{id:"cover-1",name:"封面模板1",type:"cover",background:{type:"color",color:"#ffffff"},elements:[]},availableTemplates:[],templateLibrary:{},gridSnap:!1,undoStack:[],redoStack:[],lastKeyUndoTs:0,outlineData:null,generatedPPT:[],isGenerating:!1,isPPTPreviewMode:!1,currentPPTPreviewIndex:0,selectedPPTElementIndex:-1,editingPPTElementIndex:-1,editingPPTHtml:""}},async mounted(){console.log("TemplateEditor组件已挂载,控制台输出测试"),await this.loadTemplateLibrary(),this.refreshAvailableTemplates(),this.loadDefaultTemplate(),this.$nextTick(()=>{this.fitPreviewToContainer(),window.addEventListener("resize",this.fitPreviewToContainer)}),document.addEventListener("keydown",this.handleKeydown),document.addEventListener("keydown",this.handleUndoHotkeys)},beforeUnmount(){document.removeEventListener("keydown",this.handleKeydown),document.removeEventListener("keydown",this.handleUndoHotkeys),document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd),window.removeEventListener("resize",this.fitPreviewToContainer)},methods:{async loadTemplateLibrary(){try{const e=["/mocks/template_7.json","/src/assets/mocks/template_7.json","/assets/mocks/template_7.json","./src/assets/mocks/template_7.json"];let t=null;for(const n of e)try{const r=await fetch(n);if(r.ok){const o=r.headers.get("content-type");if(o&&o.includes("application/json")){t=await r.json(),console.log(`成功从 ${n} 加载模板库`);break}else console.warn(`${n} 返回的不是JSON格式`)}}catch(r){console.warn(`无法从 ${n} 加载模板库:`,r.message)}t?(this.templateLibrary=t.reduce((n,r)=>(n[r.id]=r,n),{}),console.log("模板库加载成功,包含模板:",Object.keys(this.templateLibrary))):(console.warn("所有路径都无法加载模板库,使用默认模板"),this.createDefaultTemplateLibrary())}catch(e){console.error("加载模板库失败:",e),this.createDefaultTemplateLibrary()}},createDefaultTemplateLibrary(){this.templateLibrary={"cover-1":{id:"cover-1",name:"默认封面模板",type:"cover",background:{type:"color",color:"#ffffff"},elements:[{id:"title-1",type:"text",left:100,top:200,width:760,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #2d3748;">标题</span></strong></p>',defaultColor:"#2d3748",defaultFontName:"微软雅黑",textType:"title",opacity:1},{id:"subtitle-1",type:"text",left:200,top:300,width:560,height:40,content:'<p style="text-align: center;"><span style="font-size: 20px; color: #6c757d;">副标题</span></p>',defaultColor:"#6c757d",defaultFontName:"微软雅黑",textType:"content",opacity:1}]},"content-1":{id:"content-1",name:"默认内容模板",type:"content",background:{type:"color",color:"#ffffff"},elements:[{id:"title-2",type:"text",left:100,top:50,width:760,height:60,content:'<p style="text-align: center;"><strong><span style="font-size: 28px; color: #2d3748;">内容标题</span></strong></p>',defaultColor:"#2d3748",defaultFontName:"微软雅黑",textType:"title",opacity:1}]}},console.log("已创建默认模板库")},refreshAvailableTemplates(){const e=Object.values(this.templateLibrary);this.availableTemplates=e.filter(t=>t.type===this.currentTemplateType).map(t=>({id:t.id,name:t.name||t.id})),this.availableTemplates.length&&!this.availableTemplates.find(t=>t.id===this.currentTemplateId)&&(this.currentTemplateId=this.availableTemplates[0].id)},loadDefaultTemplate(){const e=this.templateLibrary[this.currentTemplateId];e?this.currentSlide=JSON.parse(JSON.stringify(e)):this.createNewTemplate()},createNewTemplate(){this.currentSlide={id:`${this.currentTemplateType}-${Date.now()}`,name:`新建${this.getTemplateTypeName(this.currentTemplateType)}模板`,type:this.currentTemplateType,background:{type:"color",color:"#ffffff"},elements:[]}},loadTemplate(){const e=this.templateLibrary[this.currentTemplateId];e&&(this.currentSlide=JSON.parse(JSON.stringify(e)),this.selectedElementIndex=-1,this.$nextTick(this.fitPreviewToContainer))},newTemplate(){this.createNewTemplate(),this.selectedElementIndex=-1},saveTemplate(){this.templateLibrary[this.currentSlide.id]=JSON.parse(JSON.stringify(this.currentSlide)),console.log("模板已保存:",this.currentSlide.id),alert("模板保存成功!")},exportJSON(){const e={id:this.currentSlide.id,name:this.currentSlide.name,type:this.currentSlide.type,background:this.currentSlide.background,elements:this.currentSlide.elements},t=JSON.stringify(e,null,2),n=new Blob([t],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`${this.currentSlide.id}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),console.log("模板已导出:",this.currentSlide.id),alert("模板导出成功!")},exportTemplateLibrary(){const e=Object.values(this.templateLibrary),t=JSON.stringify(e,null,2),n=new Blob([t],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`template-library-${new Date().getTime()}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),console.log("模板库已导出"),alert("模板库导出成功!")},importJSON(){const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=t=>{const n=t.target.files[0];if(n){const r=new FileReader;r.onload=o=>{try{const i=JSON.parse(o.target.result);this.currentSlide=this.normalizeTemplateData(i),this.templateLibrary[this.currentSlide.id]=this.currentSlide,console.log("模板已导入:",this.currentSlide.id),alert(`模板导入成功!
- 模板ID: ${this.currentSlide.id}
- 模板名称: ${this.currentSlide.name}`)}catch(i){console.error("导入失败:",i),alert("导入失败:JSON格式错误")}},r.readAsText(n)}},e.click()},normalizeTemplateData(e){const t={id:e.id||`template-${Date.now()}`,name:e.name||"未命名模板",type:e.type||"content",background:e.background||{type:"color",color:"#ffffff"},elements:e.elements||[]};return t.background.type||(t.background.type="color"),!t.background.color&&t.background.type==="color"&&(t.background.color="#ffffff"),!t.background.gradient&&t.background.type==="gradient"&&(t.background.gradient={type:"linear",colors:[{color:"#ffffff",pos:0},{color:"#f0f0f0",pos:100}]}),Array.isArray(t.elements)||(t.elements=[]),t},onTemplateTypeChange(){this.refreshAvailableTemplates(),this.availableTemplates.length>0&&(this.currentTemplateId=this.availableTemplates[0].id),this.loadTemplate()},onTemplateIdChange(){this.loadTemplate()},fitPreviewToContainer(){const e=this.$refs.previewContainer;if(!e)return;const t=960,n=540,r=40,o=e.clientWidth-r,i=e.clientHeight-r,a=Math.max(.1,Math.min(o/t,i/n));this.zoom=parseFloat(a.toFixed(2))},selectElement(e){this.selectedElementIndex=e},onPreviewClick(){if(this.isPPTPreviewMode){if(this.editingPPTElementIndex!==-1){this.savePPTInlineEdit(this.editingPPTElementIndex);return}this.editingPPTElementIndex=-1}else{if(this.editingElementIndex!==-1){this.saveInlineEdit(this.editingElementIndex);return}this.deselectElement()}},deselectElement(){this.selectedElementIndex=-1},addElement(){const e={id:`element-${Date.now()}`,type:"text",left:100,top:100,width:200,height:50,content:"新文本元素",defaultColor:"#000000",defaultFontName:"微软雅黑",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},addImageElement(){const e={id:`image-${Date.now()}`,type:"image",left:100,top:100,width:200,height:150,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=200&h=150&fit=crop&crop=center",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},addShapeElement(){const e={id:`shape-${Date.now()}`,type:"shape",left:100,top:100,width:100,height:100,fill:"#007bff",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},deleteElement(e){this.currentSlide.elements.splice(e,1),this.selectedElementIndex=-1},updateElement(){},updateSlide(){},updateSlideBackground(){},zoomIn(){this.zoom=Math.min(this.zoom+.1,2)},zoomOut(){this.zoom=Math.max(this.zoom-.1,.1)},handleWheel(e){e.preventDefault();const t=e.deltaY>0?-.1:.1;this.zoom=Math.max(.1,Math.min(2,this.zoom+t))},getElementStyle(e){return{position:"absolute",left:e.left+"px",top:e.top+"px",width:e.width+"px",height:e.height+"px",transform:e.rotate?`rotate(${e.rotate}deg)`:"none"}},getShapeStyle(e){return{width:"100%",height:"100%",backgroundColor:e.fill,borderRadius:e.viewBox?"8px":"0",opacity:e.opacity||1}},getGradientStyle(e){return e.type==="linear"?`linear-gradient(to right, ${e.colors.map(n=>`${n.color} ${n.pos}%`).join(", ")})`:e.type==="radial"?`radial-gradient(circle, ${e.colors.map(n=>`${n.color} ${n.pos}%`).join(", ")})`:"#ffffff"},getElementTypeName(e){return{text:"文本",image:"图片",shape:"形状"}[e]||e},getTemplateTypeName(e){return{cover:"封面",contents:"目录",transition:"过渡",content:"内容",end:"结束"}[e]||e},addGradientColor(){this.currentSlide.background||(this.currentSlide.background={type:"gradient"}),this.currentSlide.background.gradient||(this.currentSlide.background.gradient={type:"linear",colors:[]}),this.currentSlide.background.gradient.colors.push({color:"#ffffff",pos:0})},removeGradientColor(e){this.currentSlide.background&&this.currentSlide.background.gradient&&this.currentSlide.background.gradient.colors&&this.currentSlide.background.gradient.colors.splice(e,1)},applyJSON(){try{const e=JSON.parse(this.jsonContent);this.currentSlide=e,this.templateLibrary[e.id]=e,this.showJSONEditor=!1,console.log("JSON更改已应用:",e.id),alert("JSON更改已应用!")}catch(e){console.error("JSON解析失败:",e),alert("JSON格式错误,请检查语法")}},openJSONEditor(){this.jsonContent=JSON.stringify(this.currentSlide,null,2),this.showJSONEditor=!0},copyElement(e){const t=this.currentSlide.elements[e],n=JSON.parse(JSON.stringify(t));n.id=`${t.id}-copy-${Date.now()}`,n.left+=20,n.top+=20,this.currentSlide.elements.push(n),this.selectedElementIndex=this.currentSlide.elements.length-1,console.log("元素已复制:",n.id)},moveElementUp(e){if(e>0){const t=this.currentSlide.elements[e];this.currentSlide.elements[e]=this.currentSlide.elements[e-1],this.currentSlide.elements[e-1]=t,this.selectedElementIndex=e-1}},moveElementDown(e){if(e<this.currentSlide.elements.length-1){const t=this.currentSlide.elements[e];this.currentSlide.elements[e]=this.currentSlide.elements[e+1],this.currentSlide.elements[e+1]=t,this.selectedElementIndex=e+1}},resetZoom(){this.zoom=.6},startInlineEdit(){},onInlineInput(){},saveInlineEdit(e){const t=this.currentSlide.elements[e];!t||t.type!=="text"||(this.pushUndoState(),t.content=this.editingHtml,this.editingElementIndex=-1,this.editingHtml="")},fitToScreen(){this.zoom=.4},isDragging:!1,isResizing:!1,dragStartX:0,dragStartY:0,dragStartLeft:0,dragStartTop:0,resizeStartWidth:0,resizeStartHeight:0,resizeDirection:"",startDrag(e,t){this.selectedElementIndex!==t&&this.selectElement(t),this.pushUndoState(),this.isDragging=!0,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.dragStartLeft=this.currentSlide.elements[t].left,this.dragStartTop=this.currentSlide.elements[t].top,document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),e.preventDefault()},onDragMove(e){if(!this.isDragging)return;const t=(e.clientX-this.dragStartX)/this.zoom,n=(e.clientY-this.dragStartY)/this.zoom,r=this.currentSlide.elements[this.selectedElementIndex];let o=this.dragStartLeft+t,i=this.dragStartTop+n;this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.left=o,r.top=i},onDragEnd(){this.isDragging=!1,document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd)},startResize(e,t,n){this.selectedElementIndex!==t&&this.selectElement(t),this.pushUndoState(),this.isResizing=!0,this.resizeDirection=n,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.resizeStartWidth=this.currentSlide.elements[t].width,this.resizeStartHeight=this.currentSlide.elements[t].height,this.dragStartLeft=this.currentSlide.elements[t].left,this.dragStartTop=this.currentSlide.elements[t].top,document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd),e.preventDefault()},onResizeMove(e){if(!this.isResizing)return;const t=(e.clientX-this.dragStartX)/this.zoom,n=(e.clientY-this.dragStartY)/this.zoom,r=this.currentSlide.elements[this.selectedElementIndex];let o,i;switch(this.resizeDirection){case"se":o=Math.max(20,this.resizeStartWidth+t),i=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i;break;case"sw":o=Math.max(20,this.resizeStartWidth-t),i=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.left=this.dragStartLeft+(this.resizeStartWidth-r.width);break;case"ne":o=Math.max(20,this.resizeStartWidth+t),i=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.top=this.dragStartTop+(this.resizeStartHeight-r.height);break;case"nw":o=Math.max(20,this.resizeStartWidth-t),i=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.left=this.dragStartLeft+(this.resizeStartWidth-r.width),r.top=this.dragStartTop+(this.resizeStartHeight-r.height);break}},onResizeEnd(){this.isResizing=!1,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)},handleKeydown(e){if(this.isPPTPreviewMode){if(this.selectedPPTElementIndex===-1)return;const t=this.getCurrentPPTSlide(),n=t.elements[this.selectedPPTElementIndex],r=e.shiftKey?10:1;switch(e.key){case"ArrowLeft":e.preventDefault(),n.left-=r;break;case"ArrowRight":e.preventDefault(),n.left+=r;break;case"ArrowUp":e.preventDefault(),n.top-=r;break;case"ArrowDown":e.preventDefault(),n.top+=r;break;case"Delete":case"Backspace":e.preventDefault(),t.elements.splice(this.selectedPPTElementIndex,1),this.selectedPPTElementIndex=-1;break;case"Escape":e.preventDefault(),this.selectedPPTElementIndex=-1;break}}else{if(this.selectedElementIndex===-1)return;const t=this.currentSlide.elements[this.selectedElementIndex],n=e.shiftKey?10:1;switch(e.key){case"ArrowLeft":e.preventDefault(),this.pushUndoState(),t.left-=n;break;case"ArrowRight":e.preventDefault(),this.pushUndoState(),t.left+=n;break;case"ArrowUp":e.preventDefault(),this.pushUndoState(),t.top-=n;break;case"ArrowDown":e.preventDefault(),this.pushUndoState(),t.top+=n;break;case"Delete":case"Backspace":e.preventDefault(),this.pushUndoState(),this.deleteElement(this.selectedElementIndex);break;case"Escape":e.preventDefault(),this.deselectElement();break}}},handleUndoHotkeys(e){const t=(e.ctrlKey||e.metaKey)&&!e.shiftKey&&e.key.toLowerCase()==="z",n=(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.key.toLowerCase()==="z";t?(e.preventDefault(),this.undo()):n&&(e.preventDefault(),this.redo())},pushUndoState(){const e=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.undoStack.push(e),this.redoStack=[],this.undoStack.length>50&&this.undoStack.shift()},undo(){if(!this.undoStack.length)return;const e=this.undoStack.pop(),t=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.redoStack.push(t),this.currentSlide=JSON.parse(JSON.stringify(e.currentSlide)),this.selectedElementIndex=e.selectedElementIndex},redo(){if(!this.redoStack.length)return;const e=this.redoStack.pop(),t=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.undoStack.push(t),this.currentSlide=JSON.parse(JSON.stringify(e.currentSlide)),this.selectedElementIndex=e.selectedElementIndex},snapToGrid(e,t=10){return Math.round(e/t)*t},enableGridSnap(){this.gridSnap=!0},disableGridSnap(){this.gridSnap=!1},toggleGridSnap(){this.gridSnap=!this.gridSnap},importOutline(){const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=t=>{const n=t.target.files[0];if(n){const r=new FileReader;r.onload=o=>{try{const i=JSON.parse(o.target.result);this.outlineData=i,console.log("大纲已导入:",i),alert(`大纲导入成功!
- 包含 ${i.length} 个页面`)}catch(i){console.error("大纲导入失败:",i),alert("导入失败:JSON格式错误")}},r.readAsText(n)}},e.click()},async generatePPT(){if(!this.outlineData){alert("请先导入大纲");return}this.isGenerating=!0;try{this.generatedPPT=[];for(let e=0;e<this.outlineData.length;e++){const t=this.outlineData[e],n=this.matchTemplate(t),r=this.fillTemplateContent(n,t);this.generatedPPT.push(r)}console.log("PPT生成完成:",this.generatedPPT),alert(`PPT生成成功!
- 共生成 ${this.generatedPPT.length} 页幻灯片`),this.exportGeneratedPPT()}catch(e){console.error("PPT生成失败:",e),alert("PPT生成失败:"+e.message)}finally{this.isGenerating=!1}},matchTemplate(e){const t=Object.values(this.templateLibrary);let n=t.filter(r=>r.type===e.type);if(e.type==="contents"&&e.data.items){const r=e.data.items.length;r<=4?n=n.filter(o=>o.variant==="4-items"||!o.variant):r<=6?n=n.filter(o=>o.variant==="6-items"||!o.variant):n=n.filter(o=>o.variant==="6-items"||!o.variant)}return n.length===0&&(n=t.filter(r=>r.type===e.type)),n.length===0&&(n=[t[0]]),JSON.parse(JSON.stringify(n[0]))},fillTemplateContent(e,t){try{const n=JSON.parse(JSON.stringify(e));switch(n.id=`generated-slide-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,t||(console.warn("大纲项为空,使用默认值"),t={type:"content",data:{}}),t.data||(console.warn(`大纲项 ${t.type} 缺少data字段,使用空对象`),t.data={}),console.log(`正在填充 ${t.type} 页面,数据:`,t.data),t.type){case"cover":this.fillCoverTemplate(n,t.data);break;case"contents":this.fillContentsTemplate(n,t.data);break;case"transition":this.fillTransitionTemplate(n,t.data);break;case"content":this.fillContentTemplate(n,t.data);break;case"end":this.fillEndTemplate(n,t.data);break;default:console.warn(`未知页面类型: ${t.type},使用content模板`),this.fillContentTemplate(n,t.data)}return n}catch(n){throw console.error("填充模板内容时发生错误:",n),console.error("模板:",e),console.error("大纲项:",t),new Error(`填充 ${t?.type||"未知"} 页面失败: ${n.message}`)}},fillCoverTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: ${n.defaultColor};">${t.title||"标题"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${n.defaultColor};">${t.text||"副标题"}</span></p>`)})},fillContentsTemplate(e,t){if(!t||!t.items)return;let n=0;e.elements.forEach(r=>{if(r.textType==="item"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${r.defaultColor};">${o}</span></p>`,n++}})},fillTransitionTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${n.defaultColor};">${t.title||"章节标题"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${n.defaultColor};">${t.text||"章节介绍"}</span></p>`)})},fillContentTemplate(e,t){if(t||(t={}),e.elements.forEach(n=>{n.textType==="title"&&(n.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: ${n.defaultColor};">${t.title||"内容标题"}</span></strong></p>`)}),t.items&&Array.isArray(t.items)){let n=0;e.elements.forEach(r=>{if(r.textType==="itemTitle"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: ${r.defaultColor};">${o&&o.title||`要点${n+1}`}</span></strong></p>`}else if(r.textType==="itemContent"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><span style="font-size: 14px; color: ${r.defaultColor};">${o&&o.text||"详细说明"}</span></p>`,n++}})}},fillEndTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: ${n.defaultColor};">${t.title||"谢谢聆听"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${n.defaultColor};">${t.text||"感谢您的时间与关注"}</span></p>`)})},async exportGeneratedPPT(){if(this.generatedPPT.length===0){alert("没有生成的PPT可导出");return}try{const e=(await Mf(async()=>{const{default:r}=await import("./pptxgen.es-B4Lmziee.js");return{default:r}},__vite__mapDeps([0,1]))).default,t=new e;t.author="模板编辑器",t.company="AI PPT Generator",t.subject="自动生成的PPT",t.title="生成的演示文稿";for(let r=0;r<this.generatedPPT.length;r++){const o=this.generatedPPT[r];console.log(`正在转换第 ${r+1} 页:`,o.type),await this.convertSlideToPptx(t,o)}const n=`generated-ppt-${new Date().getTime()}.pptx`;await t.writeFile({fileName:n}),console.log("PPTX文件已生成并下载"),alert(`成功导出PPTX文件!
- 文件名: ${n}`)}catch(e){console.error("导出PPTX失败:",e),alert("导出PPTX失败: "+e.message)}},async convertSlideToPptx(e,t){const n=e.addSlide();if(t.background){if(t.background.type==="solid"){const r=this.convertColorForPptx(t.background.color||"#FFFFFF");n.background={color:r}}else if(t.background.type==="gradient"&&t.background.gradient){const r=t.background.gradient.colors[0]?.color||"#FFFFFF",o=this.convertColorForPptx(r);n.background={color:o}}}for(const r of t.elements)await this.addElementToPptxSlide(n,r)},async addElementToPptxSlide(e,t){try{const o=t.left/960*10,i=t.top/540*5.625,a=t.width/960*10,s=t.height/540*5.625;switch(t.type){case"text":this.addTextToPptx(e,t,o,i,a,s);break;case"image":await this.addImageToPptx(e,t,o,i,a,s);break;case"shape":this.addShapeToPptx(e,t,o,i,a,s);break}}catch(n){console.warn(`添加元素失败 ${t.type}:`,n)}},addTextToPptx(e,t,n,r,o,i){const a=this.extractTextFromHtml(t.content),s=this.extractStyleFromHtml(t.content),l=s.color||t.defaultColor||"#000000",u=t.opacity!==void 0?Math.round(t.opacity*100):100;t.content&&t.content.includes("text-align: center")&&console.log(`文本对齐调试 ${t.id||"unknown"}:`,{content:t.content,extractedAlign:s.align,finalAlign:s.align||"left"}),e.addText(a,{x:n,y:r,w:o,h:i,fontSize:s.fontSize||16,color:this.convertColorForPptx(l),fontFace:t.defaultFontName||"微软雅黑",align:s.align||"left",valign:"middle",bold:s.bold||!1,wrap:!0,transparency:100-u})},async addImageToPptx(e,t,n,r,o,i){if(t.src)try{const s=100-(t.opacity!==void 0?Math.round(t.opacity*100):100);if(t.src.startsWith("data:image"))e.addImage({data:t.src,x:n,y:r,w:o,h:i,transparency:s});else{const l=await this.convertImageToBase64(t.src);e.addImage({data:l,x:n,y:r,w:o,h:i,transparency:s})}}catch(a){console.warn("添加图片失败:",a),e.addText("图片加载失败",{x:n,y:r,w:o,h:i,fontSize:12,color:"999999",align:"center",valign:"middle"})}},addShapeToPptx(e,t,n,r,o,i){const a=t.fill||t.color||"#007bff";let s=0;if(a.startsWith("rgba(")){const u=a.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/);if(u){const d=parseFloat(u[4]);s=Math.round((1-d)*100)}}else t.opacity!==void 0&&(s=100-Math.round(t.opacity*100));const l=this.convertColorForPptx(a);t.id&&t.id.includes("overlay")&&console.log(`Overlay元素调试 ${t.id}:`,{originalFill:t.fill,fillColor:a,convertedColor:l,opacity:t.opacity,transparency:s,alphaFromRgba:a.startsWith("rgba(")?parseFloat(a.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/)?.[4]||"1"):null}),e.addShape("rect",{x:n,y:r,w:o,h:i,fill:{type:"solid",color:l,transparency:s},line:{width:0}})},extractTextFromHtml(e){if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},extractStyleFromHtml(e){if(!e)return{};const t={},n=e.match(/font-size:\s*(\d+)px/);n&&(t.fontSize=parseInt(n[1]));const r=e.match(/color:\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\([^)]+\)|rgba\([^)]+\))/);return r&&(t.color=r[1]),e.includes("text-align: center")?t.align="center":e.includes("text-align: right")?t.align="right":t.align="left",(e.includes("<strong>")||e.includes("<b>"))&&(t.bold=!0),t},async convertImageToBase64(e){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const o=document.createElement("canvas"),i=o.getContext("2d");o.width=r.width,o.height=r.height,i.drawImage(r,0,0);try{const a=o.toDataURL("image/png");t(a)}catch(a){n(a)}},r.onerror=()=>{n(new Error("图片加载失败"))},r.src=e})},getCurrentPPTSlide(){return this.generatedPPT.length===0||this.currentPPTPreviewIndex>=this.generatedPPT.length?{elements:[],background:{type:"color",color:"#ffffff"}}:this.generatedPPT[this.currentPPTPreviewIndex]},getCurrentPPTSlideBackground(){const e=this.getCurrentPPTSlide();return e.background?.type==="gradient"?this.getGradientStyle(e.background.gradient):e.background?.color||"#ffffff"},selectPPTElement(e){this.selectedPPTElementIndex=e,console.log("选择PPT元素被触发,索引:",e),console.log("当前selectedPPTElementIndex:",this.selectedPPTElementIndex)},handleDoubleClick(e){console.log("双击事件被触发,索引:",e),console.log("当前editingPPTElementIndex:",this.editingPPTElementIndex),console.log("当前editingPPTHtml:",this.editingPPTHtml),this.startPPTInlineEdit(e)},startPPTInlineEdit(e){console.log("开始PPT内联编辑被触发,索引:",e);const n=this.getCurrentPPTSlide().elements[e];console.log("获取到的元素:",n),n&&n.type==="text"?(console.log("元素类型正确,开始编辑模式"),this.editingPPTElementIndex=e,this.editingPPTHtml=n.content,console.log("设置编辑内容:",this.editingPPTHtml),console.log("设置editingPPTElementIndex为:",this.editingPPTElementIndex),this.$nextTick(()=>{console.log("nextTick执行,查找编辑器元素");const r=document.querySelector(".inline-editor");if(console.log("找到编辑器元素:",r),console.log("编辑器元素的HTML:",r?r.outerHTML:"null"),r){r.focus(),console.log("编辑器已聚焦");const o=document.createRange(),i=window.getSelection();o.selectNodeContents(r),o.collapse(!1),i.removeAllRanges(),i.addRange(o),r.style.direction="ltr",r.style.textAlign="left",r.style.unicodeBidi="normal",console.log("文字编辑模式已启动"),console.log("当前selection:",i.toString())}else console.log("未找到编辑器元素"),console.log("页面中所有.inline-editor元素:",document.querySelectorAll(".inline-editor"))})):console.log("元素类型不正确或元素不存在:",n)},onPPTInlineInput(e){const t=window.getSelection(),r=t.getRangeAt(0).startOffset;this.editingPPTHtml=e.target.innerHTML,this.$nextTick(()=>{const o=document.querySelector(".inline-editor");if(o&&t.rangeCount>0)try{const i=document.createRange(),a=[],s=document.createTreeWalker(o,NodeFilter.SHOW_TEXT,null,!1);let l;for(;l=s.nextNode();)a.push(l);if(a.length>0){const u=a[a.length-1],d=u.textContent.length,c=Math.min(r,d);i.setStart(u,c),i.setEnd(u,c),t.removeAllRanges(),t.addRange(i)}}catch{const a=document.createRange();a.selectNodeContents(o),a.collapse(!1),t.removeAllRanges(),t.addRange(a)}})},savePPTInlineEdit(e){const n=this.getCurrentPPTSlide().elements[e];n&&n.type==="text"&&(n.content=this.editingPPTHtml),this.editingPPTElementIndex=-1},changePPTImage(e){console.log("更换PPT图片被触发,索引:",e);const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=n=>{const r=n.target.files[0];if(r){const o=new FileReader;o.onload=i=>{const s=this.getCurrentPPTSlide().elements[e];s&&s.type==="image"&&(s.src=i.target.result,console.log("图片更换成功"))},o.readAsDataURL(r)}},t.click()},previousPPTSlide(){this.currentPPTPreviewIndex>0&&(this.currentPPTPreviewIndex--,this.editingPPTElementIndex=-1)},nextPPTSlide(){this.currentPPTPreviewIndex<this.generatedPPT.length-1&&(this.currentPPTPreviewIndex++,this.editingPPTElementIndex=-1)},exitPPTPreviewMode(){this.isPPTPreviewMode=!1,this.currentPPTPreviewIndex=0,this.editingPPTElementIndex=-1},async previewPPT(){if(!this.outlineData){alert("请先导入大纲");return}this.isGenerating=!0;try{this.generatedPPT=[];for(let e=0;e<this.outlineData.length;e++){const t=this.outlineData[e],n=this.matchTemplate(t),r=this.fillTemplateContent(n,t);this.generatedPPT.push(r)}console.log("PPT预览生成完成:",this.generatedPPT),this.enterPPTPreviewMode()}catch(e){console.error("PPT预览生成失败:",e),alert("PPT预览生成失败:"+e.message)}finally{this.isGenerating=!1}},enterPPTPreviewMode(){this.generatedPPT.length>0&&(this.isPPTPreviewMode=!0,this.currentPPTPreviewIndex=0,this.editingPPTElementIndex=-1)},async exportModifiedPPT(){try{const e=(await Mf(async()=>{const{default:r}=await import("./pptxgen.es-B4Lmziee.js");return{default:r}},__vite__mapDeps([0,1]))).default,t=new e;t.author="模板编辑器",t.company="AI PPT Generator",t.subject="修改后的PPT",t.title="修改后的演示文稿";for(let r=0;r<this.generatedPPT.length;r++){const o=this.generatedPPT[r];console.log(`正在转换修改后的第 ${r+1} 页:`,o.type),await this.convertSlideToPptx(t,o)}const n=`modified-ppt-${new Date().getTime()}.pptx`;await t.writeFile({fileName:n}),console.log("修改后的PPTX文件已生成并下载"),alert(`成功导出修改后的PPTX文件!
- 文件名: ${n}`)}catch(e){console.error("导出修改后的PPTX失败:",e),alert("导出修改后的PPTX失败: "+e.message)}},startPPTDrag(e,t){if(e.detail>=2)return;const r=this.getCurrentPPTSlide().elements[t];this.editingPPTElementIndex===t&&r.type==="text"&&this.editingPPTHtml!==""||(this.selectedPPTElementIndex!==t&&this.selectPPTElement(t),this.isDragging=!0,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.dragStartLeft=r.left,this.dragStartTop=r.top,document.addEventListener("mousemove",this.onPPTDragMove),document.addEventListener("mouseup",this.onPPTDragEnd),e.preventDefault())},onPPTDragMove(e){if(!this.isDragging)return;const t=e.clientX-this.dragStartX,n=e.clientY-this.dragStartY,o=this.getCurrentPPTSlide().elements[this.selectedPPTElementIndex];let i=this.dragStartLeft+t,a=this.dragStartTop+n;this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.left=i,o.top=a},onPPTDragEnd(){this.isDragging=!1,document.removeEventListener("mousemove",this.onPPTDragMove),document.removeEventListener("mouseup",this.onPPTDragEnd)},startPPTResize(e,t,n){this.selectedPPTElementIndex!==t&&this.selectPPTElement(t),this.isResizing=!0,this.resizeDirection=n,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.resizeStartWidth=this.getCurrentPPTSlide().elements[t].width,this.resizeStartHeight=this.getCurrentPPTSlide().elements[t].height,this.dragStartLeft=this.getCurrentPPTSlide().elements[t].left,this.dragStartTop=this.getCurrentPPTSlide().elements[t].top,document.addEventListener("mousemove",this.onPPTResizeMove),document.addEventListener("mouseup",this.onPPTResizeEnd),e.preventDefault()},onPPTResizeMove(e){if(!this.isResizing)return;const t=e.clientX-this.dragStartX,n=e.clientY-this.dragStartY,o=this.getCurrentPPTSlide().elements[this.selectedPPTElementIndex];let i,a;switch(this.resizeDirection){case"se":i=Math.max(20,this.resizeStartWidth+t),a=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a;break;case"sw":i=Math.max(20,this.resizeStartWidth-t),a=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.left=this.dragStartLeft+(this.resizeStartWidth-o.width);break;case"ne":i=Math.max(20,this.resizeStartWidth+t),a=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.top=this.dragStartTop+(this.resizeStartHeight-o.height);break;case"nw":i=Math.max(20,this.resizeStartWidth-t),a=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.left=this.dragStartLeft+(this.resizeStartWidth-o.width),o.top=this.dragStartTop+(this.resizeStartHeight-o.height);break}},onPPTResizeEnd(){this.isResizing=!1,document.removeEventListener("mousemove",this.onPPTResizeMove),document.removeEventListener("mouseup",this.onPPTResizeEnd)},async exportAllTemplatesAsImages(){if(Object.keys(this.templateLibrary).length===0){alert("没有模板可导出");return}if(!this.isExportingImages){this.isExportingImages=!0;try{console.log("正在生成高清图片,请稍候...");const t=document.createElement("div");t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="960px",t.style.height="540px",t.style.overflow="hidden",document.body.appendChild(t);const n=Object.values(this.templateLibrary),r=[];for(let d=0;d<n.length;d++){const c=n[d],f=this.generateTemplateImage(c,t,d);r.push(f)}const o=await Promise.all(r);document.body.removeChild(t);const i=await Mf(()=>import("./jszip.min-DFyRfgcg.js").then(d=>d.j),[]),a=new i.default;o.forEach((d,c)=>{const p=`${n[c].id||`template-${c+1}`}.png`;a.file(p,d,{binary:!0})});const s=await a.generateAsync({type:"blob"}),l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=`templates-hd-images-${new Date().getTime()}.zip`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(l),console.log(`成功导出 ${o.length} 个模板的高清图片`),alert(`成功导出 ${o.length} 个模板的高清图片!
- 文件名: templates-hd-images-${new Date().getTime()}.zip`)}catch(e){console.error("导出高清图片失败:",e),alert("导出高清图片失败: "+e.message)}finally{this.isExportingImages=!1}}},async generateTemplateImage(e,t,n){return new Promise((r,o)=>{try{const i=document.createElement("div");i.style.width="960px",i.style.height="540px",i.style.position="relative",i.style.overflow="hidden",i.style.borderRadius="12px",e.background?e.background.type==="gradient"&&e.background.gradient?i.style.background=this.getGradientStyle(e.background.gradient):i.style.background=e.background.color||"#ffffff":i.style.background="#ffffff",e.elements&&Array.isArray(e.elements)&&e.elements.forEach(a=>{const s=this.createElementFromTemplate(a);s&&i.appendChild(s)}),t.appendChild(i),Mf(()=>import("./html2canvas.esm-B0tyYwQk.js"),[]).then(a=>{a.default(i,{width:960,height:540,scale:2,useCORS:!0,allowTaint:!0,backgroundColor:null,logging:!1}).then(s=>{s.toBlob(l=>{t.removeChild(i),l?r(l):o(new Error("图片生成失败"))},"image/png",1)}).catch(s=>{t.removeChild(i),o(s)})}).catch(a=>{t.removeChild(i),o(a)})}catch(i){o(i)}})},createElementFromTemplate(e){const t=document.createElement("div");switch(t.style.position="absolute",t.style.left=e.left+"px",t.style.top=e.top+"px",t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",e.rotate&&(t.style.transform=`rotate(${e.rotate}deg)`),e.type){case"text":t.innerHTML=e.content||"",t.style.color=e.defaultColor||"#000000",t.style.fontFamily=e.defaultFontName||"微软雅黑",t.style.opacity=e.opacity||1,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.textAlign="center",t.style.padding="10px",t.style.boxSizing="border-box";break;case"image":if(e.src){const n=document.createElement("img");n.src=e.src,n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.opacity=e.opacity||1,n.style.border="none",n.style.outline="none",t.appendChild(n)}break;case"shape":t.style.backgroundColor=e.fill||"#007bff",t.style.opacity=e.opacity||1,t.style.border="none",t.style.outline="none",e.viewBox&&(t.style.borderRadius="8px");break}return t},convertColorForPptx(e){if(!e)return"FFFFFF";if(/^[0-9A-Fa-f]{6}$/.test(e))return e.toUpperCase();if(e.startsWith("#")){const i=e.substring(1);if(i.length===3)return(i[0]+i[0]+i[1]+i[1]+i[2]+i[2]).toUpperCase();if(i.length===6)return i.toUpperCase()}const t=e.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(t){const i=parseInt(t[1]).toString(16).padStart(2,"0"),a=parseInt(t[2]).toString(16).padStart(2,"0"),s=parseInt(t[3]).toString(16).padStart(2,"0");return(i+a+s).toUpperCase()}const n=e.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(n){const i=parseInt(n[1]).toString(16).padStart(2,"0"),a=parseInt(n[2]).toString(16).padStart(2,"0"),s=parseInt(n[3]).toString(16).padStart(2,"0");return(i+a+s).toUpperCase()}const r={white:"FFFFFF",black:"000000",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",orange:"FFA500",purple:"800080",pink:"FFC0CB",gray:"808080",grey:"808080"},o=e.toLowerCase();return r[o]?r[o]:(console.warn(`无法识别的颜色格式: ${e},使用默认黑色`),"000000")}}},xJt={class:"template-editor"},SJt={class:"toolbar"},EJt={class:"toolbar-left"},kJt=["disabled"],TJt=["disabled"],_Jt={class:"toolbar-right"},DJt=["value"],IJt={class:"main-content1"},OJt={class:"editor-panel"},MJt={class:"panel-header"},PJt={class:"add-element-buttons"},NJt={class:"element-list"},RJt=["onClick"],BJt={class:"element-header"},LJt={class:"element-type"},FJt={class:"element-id"},UJt={class:"element-actions"},$Jt=["onClick"],zJt=["onClick"],jJt=["onClick"],HJt=["onClick"],WJt={key:0,class:"element-properties"},VJt={class:"property-group"},qJt={class:"property-row"},GJt=["onUpdate:modelValue"],KJt={class:"property-row"},QJt=["onUpdate:modelValue"],YJt={class:"property-row"},ZJt=["onUpdate:modelValue"],XJt={class:"property-row"},JJt=["onUpdate:modelValue"],een={class:"property-row"},ten=["onUpdate:modelValue"],nen={key:0,class:"property-group"},ren={class:"property-row"},oen=["onUpdate:modelValue"],ien={class:"property-row"},aen=["onUpdate:modelValue"],sen={class:"property-row"},len=["onUpdate:modelValue"],uen={class:"property-row"},cen=["onUpdate:modelValue"],den={key:1,class:"property-group"},fen={class:"property-row"},pen=["onUpdate:modelValue"],hen={class:"property-row"},gen=["onUpdate:modelValue"],ven={key:2,class:"property-group"},men={class:"property-row"},yen=["onUpdate:modelValue"],ben={class:"property-row"},wen=["onUpdate:modelValue"],Aen={class:"preview-panel"},Cen={class:"panel-header"},xen={class:"preview-controls"},Sen={class:"zoom-level"},Een={key:0,class:"ppt-preview-controls"},ken=["disabled"],Ten={class:"ppt-slide-info"},_en=["disabled"],Den=["onClick","onMousedown"],Ien=["onMousedown"],Oen=["onMousedown"],Men=["onMousedown"],Pen=["onMousedown"],Nen=["onMousedown"],Ren=["src","alt"],Ben=["innerHTML","onBlur"],Len=["innerHTML"],Fen=["onClick","onMousedown"],Uen=["onMousedown"],$en=["onMousedown"],zen=["onMousedown"],jen=["onMousedown"],Hen=["onMousedown"],Wen=["src","alt","onClick"],Ven=["innerHTML","onBlur"],qen=["innerHTML","onDblclick","onClick"],Gen={class:"properties-panel"},Ken={class:"slide-properties"},Qen={class:"property-group"},Yen={class:"property-row"},Zen={key:0,class:"property-row"},Xen={key:1,class:"property-group"},Jen={class:"property-row"},etn={class:"gradient-colors"},ttn=["onUpdate:modelValue"],ntn=["onUpdate:modelValue"],rtn=["onClick"],otn={class:"property-group"},itn={class:"property-row"},atn={class:"property-row"},stn={class:"property-row"},ltn={key:0,class:"json-editor-modal"},utn={class:"json-editor-content"},ctn={class:"json-editor-header"},dtn={class:"json-editor-actions"};function ftn(e,t,n,r,o,i){return F(),K("div",xJt,[t[104]||(t[104]=x("div",{class:"header"},[x("h1",null,"模板编辑器工作台"),x("p",null,"可视化编辑PPT模板,支持实时预览和JSON导出"),x("div",{class:"usage-tips"},[x("span",null,"💡 使用提示:"),x("span",null,"• 拖拽元素移动位置"),x("span",null,"• 拖拽四角手柄缩放大小"),x("span",null,"• 方向键精确调整位置"),x("span",null,"• Delete键删除选中元素"),x("span",null,"• Esc键取消选择")])],-1)),x("div",SJt,[x("div",EJt,[x("button",{onClick:t[0]||(t[0]=(...a)=>i.loadTemplate&&i.loadTemplate(...a)),class:"btn btn-primary"},"加载模板"),x("button",{onClick:t[1]||(t[1]=(...a)=>i.newTemplate&&i.newTemplate(...a)),class:"btn btn-secondary"},"新建模板"),x("button",{onClick:t[2]||(t[2]=(...a)=>i.saveTemplate&&i.saveTemplate(...a)),class:"btn btn-success"},"保存模板"),x("button",{onClick:t[3]||(t[3]=(...a)=>i.exportJSON&&i.exportJSON(...a)),class:"btn btn-info"},"导出JSON"),x("button",{onClick:t[4]||(t[4]=(...a)=>i.exportTemplateLibrary&&i.exportTemplateLibrary(...a)),class:"btn btn-warning"},"导出模板库"),x("button",{onClick:t[5]||(t[5]=(...a)=>i.exportAllTemplatesAsImages&&i.exportAllTemplatesAsImages(...a)),class:"btn btn-success",disabled:o.isExportingImages},We(o.isExportingImages?"生成中...":"导出高清图片"),9,kJt),x("button",{onClick:t[6]||(t[6]=(...a)=>i.importJSON&&i.importJSON(...a)),class:"btn btn-dark"},"导入JSON"),x("button",{onClick:t[7]||(t[7]=(...a)=>i.toggleGridSnap&&i.toggleGridSnap(...a)),class:re(["btn",o.gridSnap?"btn-success":"btn-outline"])},"网格对齐",2),t[70]||(t[70]=x("div",{class:"toolbar-divider"},null,-1)),x("button",{onClick:t[8]||(t[8]=(...a)=>i.importOutline&&i.importOutline(...a)),class:"btn btn-purple"},"导入大纲"),o.outlineData&&!o.isGenerating?(F(),K("button",{key:0,onClick:t[9]||(t[9]=(...a)=>i.previewPPT&&i.previewPPT(...a)),class:"btn btn-info"}," 预览PPT ")):xe("",!0),x("button",{onClick:t[10]||(t[10]=(...a)=>i.generatePPT&&i.generatePPT(...a)),class:"btn btn-gradient",disabled:!o.outlineData||o.isGenerating},We(o.isGenerating?"生成中...":"生成PPTX"),9,TJt),o.generatedPPT.length>0&&!o.isPPTPreviewMode?(F(),K("button",{key:1,onClick:t[11]||(t[11]=(...a)=>i.enterPPTPreviewMode&&i.enterPPTPreviewMode(...a)),class:"btn btn-success"}," PPT预览 ")):xe("",!0)]),x("div",_Jt,[ln(x("select",{"onUpdate:modelValue":t[12]||(t[12]=a=>o.currentTemplateType=a),onChange:t[13]||(t[13]=(...a)=>i.onTemplateTypeChange&&i.onTemplateTypeChange(...a)),class:"template-type-select"},t[71]||(t[71]=[ki('<option value="cover" data-v-de93f008>封面页</option><option value="contents" data-v-de93f008>目录页</option><option value="transition" data-v-de93f008>过渡页</option><option value="content" data-v-de93f008>内容页</option><option value="end" data-v-de93f008>结束页</option>',5)]),544),[[C2,o.currentTemplateType]]),ln(x("select",{"onUpdate:modelValue":t[14]||(t[14]=a=>o.currentTemplateId=a),onChange:t[15]||(t[15]=(...a)=>i.onTemplateIdChange&&i.onTemplateIdChange(...a)),class:"template-id-select"},[(F(!0),K(Pt,null,an(o.availableTemplates,a=>(F(),K("option",{key:a.id,value:a.id},We(a.name),9,DJt))),128))],544),[[C2,o.currentTemplateId]])])]),x("div",IJt,[x("div",OJt,[x("div",MJt,[t[72]||(t[72]=x("h3",null,"元素编辑",-1)),x("div",PJt,[x("button",{onClick:t[16]||(t[16]=(...a)=>i.addElement&&i.addElement(...a)),class:"btn btn-sm btn-primary"},"添加文本"),x("button",{onClick:t[17]||(t[17]=(...a)=>i.addImageElement&&i.addImageElement(...a)),class:"btn btn-sm btn-info"},"添加图片"),x("button",{onClick:t[18]||(t[18]=(...a)=>i.addShapeElement&&i.addShapeElement(...a)),class:"btn btn-sm btn-secondary"},"添加形状")])]),x("div",NJt,[(F(!0),K(Pt,null,an(o.currentSlide.elements,(a,s)=>(F(),K("div",{key:a.id,class:re(["element-item",{active:o.selectedElementIndex===s}]),onClick:l=>i.selectElement(s)},[x("div",BJt,[x("span",LJt,We(i.getElementTypeName(a.type)),1),x("span",FJt,We(a.id),1),x("div",UJt,[x("button",{onClick:Qt(l=>i.copyElement(s),["stop"]),class:"btn-action",title:"复制"},"📋",8,$Jt),x("button",{onClick:Qt(l=>i.moveElementUp(s),["stop"]),class:"btn-action",title:"上移"},"⬆️",8,zJt),x("button",{onClick:Qt(l=>i.moveElementDown(s),["stop"]),class:"btn-action",title:"下移"},"⬇️",8,jJt),x("button",{onClick:Qt(l=>i.deleteElement(s),["stop"]),class:"btn-delete",title:"删除"},"×",8,HJt)])]),o.selectedElementIndex===s?(F(),K("div",WJt,[x("div",VJt,[t[78]||(t[78]=x("h4",null,"位置和尺寸",-1)),x("div",qJt,[t[73]||(t[73]=x("label",null,"X坐标:",-1)),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.left=l,onInput:t[19]||(t[19]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,GJt),[[jr,a.left,void 0,{number:!0}]])]),x("div",KJt,[t[74]||(t[74]=x("label",null,"Y坐标:",-1)),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.top=l,onInput:t[20]||(t[20]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,QJt),[[jr,a.top,void 0,{number:!0}]])]),x("div",YJt,[t[75]||(t[75]=x("label",null,"宽度:",-1)),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.width=l,onInput:t[21]||(t[21]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,ZJt),[[jr,a.width,void 0,{number:!0}]])]),x("div",XJt,[t[76]||(t[76]=x("label",null,"高度:",-1)),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.height=l,onInput:t[22]||(t[22]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,JJt),[[jr,a.height,void 0,{number:!0}]])]),x("div",een,[t[77]||(t[77]=x("label",null,"旋转:",-1)),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.rotate=l,onInput:t[23]||(t[23]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,ten),[[jr,a.rotate,void 0,{number:!0}]])])]),a.type==="text"?(F(),K("div",nen,[t[84]||(t[84]=x("h4",null,"文本属性",-1)),x("div",ren,[t[79]||(t[79]=x("label",null,"内容:",-1)),ln(x("textarea",{"onUpdate:modelValue":l=>a.content=l,onInput:t[24]||(t[24]=(...l)=>i.updateElement&&i.updateElement(...l)),rows:"3"},null,40,oen),[[jr,a.content]])]),x("div",ien,[t[81]||(t[81]=x("label",null,"字体:",-1)),ln(x("select",{"onUpdate:modelValue":l=>a.defaultFontName=l,onChange:t[25]||(t[25]=(...l)=>i.updateElement&&i.updateElement(...l))},t[80]||(t[80]=[ki('<option value="微软雅黑" data-v-de93f008>微软雅黑</option><option value="宋体" data-v-de93f008>宋体</option><option value="黑体" data-v-de93f008>黑体</option><option value="Arial" data-v-de93f008>Arial</option><option value="Times New Roman" data-v-de93f008>Times New Roman</option>',5)]),40,aen),[[C2,a.defaultFontName]])]),x("div",sen,[t[82]||(t[82]=x("label",null,"颜色:",-1)),ln(x("input",{type:"color","onUpdate:modelValue":l=>a.defaultColor=l,onInput:t[26]||(t[26]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,len),[[jr,a.defaultColor]])]),x("div",uen,[t[83]||(t[83]=x("label",null,"透明度:",-1)),ln(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[27]||(t[27]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,cen),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,We(a.opacity||1),1)])])):xe("",!0),a.type==="image"?(F(),K("div",den,[t[87]||(t[87]=x("h4",null,"图片属性",-1)),x("div",fen,[t[85]||(t[85]=x("label",null,"图片URL:",-1)),ln(x("input",{type:"text","onUpdate:modelValue":l=>a.src=l,onInput:t[28]||(t[28]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,pen),[[jr,a.src]])]),x("div",hen,[t[86]||(t[86]=x("label",null,"透明度:",-1)),ln(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[29]||(t[29]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,gen),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,We(a.opacity||1),1)])])):xe("",!0),a.type==="shape"?(F(),K("div",ven,[t[90]||(t[90]=x("h4",null,"形状属性",-1)),x("div",men,[t[88]||(t[88]=x("label",null,"填充颜色:",-1)),ln(x("input",{type:"color","onUpdate:modelValue":l=>a.fill=l,onInput:t[30]||(t[30]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,yen),[[jr,a.fill]])]),x("div",ben,[t[89]||(t[89]=x("label",null,"透明度:",-1)),ln(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[31]||(t[31]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,wen),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,We(a.opacity||1),1)])])):xe("",!0)])):xe("",!0)],10,RJt))),128))])]),x("div",Aen,[x("div",Cen,[x("h3",null,We(o.isPPTPreviewMode?"PPT预览":"模板预览"),1),x("div",xen,[x("button",{onClick:t[32]||(t[32]=(...a)=>i.zoomOut&&i.zoomOut(...a)),class:"btn btn-sm"},"-"),x("span",Sen,We(Math.round(o.zoom*100))+"%",1),x("button",{onClick:t[33]||(t[33]=(...a)=>i.zoomIn&&i.zoomIn(...a)),class:"btn btn-sm"},"+"),x("button",{onClick:t[34]||(t[34]=(...a)=>i.resetZoom&&i.resetZoom(...a)),class:"btn btn-sm"},"重置"),x("button",{onClick:t[35]||(t[35]=(...a)=>i.fitToScreen&&i.fitToScreen(...a)),class:"btn btn-sm"},"适应屏幕"),x("button",{onClick:t[36]||(t[36]=(...a)=>i.openJSONEditor&&i.openJSONEditor(...a)),class:"btn btn-sm btn-info"},"JSON编辑"),o.isPPTPreviewMode&&o.generatedPPT.length>0?(F(),K("div",Een,[x("button",{onClick:t[37]||(t[37]=(...a)=>i.previousPPTSlide&&i.previousPPTSlide(...a)),class:"btn btn-sm",disabled:o.currentPPTPreviewIndex===0},"上一页",8,ken),x("span",Ten,We(o.currentPPTPreviewIndex+1)+" / "+We(o.generatedPPT.length),1),x("button",{onClick:t[38]||(t[38]=(...a)=>i.nextPPTSlide&&i.nextPPTSlide(...a)),class:"btn btn-sm",disabled:o.currentPPTPreviewIndex===o.generatedPPT.length-1},"下一页",8,_en),x("button",{onClick:t[39]||(t[39]=(...a)=>i.exportModifiedPPT&&i.exportModifiedPPT(...a)),class:"btn btn-sm btn-success"},"导出修改版"),x("button",{onClick:t[40]||(t[40]=(...a)=>i.exitPPTPreviewMode&&i.exitPPTPreviewMode(...a)),class:"btn btn-sm btn-warning"},"退出预览")])):xe("",!0)])]),x("div",{class:"preview-container",ref:"previewContainer",onClick:t[49]||(t[49]=(...a)=>i.onPreviewClick&&i.onPreviewClick(...a)),onWheel:t[50]||(t[50]=(...a)=>i.handleWheel&&i.handleWheel(...a))},[o.isPPTPreviewMode?xe("",!0):(F(),K("div",{key:0,class:"slide-preview",style:Xt({transform:`scale(${o.zoom})`,background:o.currentSlide.background?.type==="gradient"?i.getGradientStyle(o.currentSlide.background.gradient):o.currentSlide.background?.color||"#ffffff"})},[(F(!0),K(Pt,null,an(o.currentSlide.elements,(a,s)=>(F(),K("div",{key:a.id,class:re(["preview-element",{selected:o.selectedElementIndex===s}]),style:Xt(i.getElementStyle(a)),onClick:Qt(l=>i.selectElement(s),["stop"]),onMousedown:l=>i.startDrag(l,s)},[o.selectedElementIndex===s?(F(),K("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:Qt(l=>i.startResize(l,s,"nw"),["stop"])},null,40,Ien)):xe("",!0),o.selectedElementIndex===s?(F(),K("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:Qt(l=>i.startResize(l,s,"ne"),["stop"])},null,40,Oen)):xe("",!0),o.selectedElementIndex===s?(F(),K("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:Qt(l=>i.startResize(l,s,"sw"),["stop"])},null,40,Men)):xe("",!0),o.selectedElementIndex===s?(F(),K("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:Qt(l=>i.startResize(l,s,"se"),["stop"])},null,40,Pen)):xe("",!0),o.selectedElementIndex===s?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(l=>i.startDrag(l,s),["stop"])},null,40,Nen)):xe("",!0),a.type==="image"&&a.src?(F(),K("img",{key:5,src:a.src,alt:a.id,style:Xt({opacity:a.opacity||1})},null,12,Ren)):a.type==="text"?(F(),K(Pt,{key:6},[o.editingElementIndex===s?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingHtml,style:Xt({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onInput:t[41]||(t[41]=(...l)=>i.onInlineInput&&i.onInlineInput(...l)),onBlur:l=>i.saveInlineEdit(s),onMousedown:t[42]||(t[42]=Qt(()=>{},["stop"])),onKeydown:t[43]||(t[43]=Qt(()=>{},["stop"]))},null,44,Ben)):(F(),K("div",{key:1,innerHTML:a.content,style:Xt({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1})},null,12,Len))],64)):a.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Xt(i.getShapeStyle(a))},null,4)):xe("",!0)],46,Den))),128))],4)),o.isPPTPreviewMode&&o.generatedPPT.length>0?(F(),K("div",{key:1,class:"slide-preview",style:Xt({transform:`scale(${o.zoom})`,background:i.getCurrentPPTSlideBackground()})},[t[91]||(t[91]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 双击文字可编辑,点击图片可更换,拖拽移动位置,四角手柄缩放大小")],-1)),(F(!0),K(Pt,null,an(i.getCurrentPPTSlide().elements,(a,s)=>(F(),K("div",{key:a.id,class:re(["preview-element ppt-element",{selected:o.selectedPPTElementIndex===s}]),style:Xt(i.getElementStyle(a)),onClick:Qt(l=>i.selectPPTElement(s),["stop"]),onMousedown:l=>i.startPPTDrag(l,s)},[o.selectedPPTElementIndex===s?(F(),K("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:Qt(l=>i.startPPTResize(l,s,"nw"),["stop"])},null,40,Uen)):xe("",!0),o.selectedPPTElementIndex===s?(F(),K("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:Qt(l=>i.startPPTResize(l,s,"ne"),["stop"])},null,40,$en)):xe("",!0),o.selectedPPTElementIndex===s?(F(),K("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:Qt(l=>i.startPPTResize(l,s,"sw"),["stop"])},null,40,zen)):xe("",!0),o.selectedPPTElementIndex===s?(F(),K("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:Qt(l=>i.startPPTResize(l,s,"se"),["stop"])},null,40,jen)):xe("",!0),o.selectedPPTElementIndex===s?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(l=>i.startPPTDrag(l,s),["stop"])},null,40,Hen)):xe("",!0),a.type==="image"&&a.src?(F(),K("img",{key:5,src:a.src,alt:a.id,style:Xt({opacity:a.opacity||1}),onClick:Qt(l=>i.changePPTImage(s),["stop"]),onMousedown:t[44]||(t[44]=Qt(()=>{},["stop"]))},null,44,Wen)):a.type==="text"?(F(),K(Pt,{key:6},[o.editingPPTElementIndex===s?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingPPTHtml,style:Xt({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onInput:t[45]||(t[45]=(...l)=>i.onPPTInlineInput&&i.onPPTInlineInput(...l)),onBlur:l=>i.savePPTInlineEdit(s),onMousedown:t[46]||(t[46]=Qt(()=>{},["stop"])),onKeydown:t[47]||(t[47]=Qt(()=>{},["stop"]))},null,44,Ven)):(F(),K("div",{key:1,innerHTML:a.content,style:Xt({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onDblclick:Qt(l=>i.handleDoubleClick(s),["stop"]),onClick:Qt(l=>i.selectPPTElement(s),["stop"]),onMousedown:t[48]||(t[48]=Qt(()=>{},["stop"]))},null,44,qen))],64)):a.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Xt(i.getShapeStyle(a))},null,4)):xe("",!0)],46,Fen))),128))],4)):xe("",!0)],544)]),x("div",Gen,[t[102]||(t[102]=x("div",{class:"panel-header"},[x("h3",null,"幻灯片属性")],-1)),x("div",Ken,[x("div",Qen,[t[97]||(t[97]=x("h4",null,"背景设置",-1)),x("div",Yen,[t[93]||(t[93]=x("label",null,"背景类型:",-1)),ln(x("select",{"onUpdate:modelValue":t[51]||(t[51]=a=>o.currentSlide.background.type=a),onChange:t[52]||(t[52]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},t[92]||(t[92]=[x("option",{value:"color"},"纯色",-1),x("option",{value:"gradient"},"渐变",-1)]),544),[[C2,o.currentSlide.background.type]])]),o.currentSlide.background&&o.currentSlide.background.type==="color"?(F(),K("div",Zen,[t[94]||(t[94]=x("label",null,"背景颜色:",-1)),ln(x("input",{type:"color","onUpdate:modelValue":t[53]||(t[53]=a=>o.currentSlide.background.color=a),onInput:t[54]||(t[54]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},null,544),[[jr,o.currentSlide.background.color]])])):xe("",!0),o.currentSlide.background&&o.currentSlide.background.type==="gradient"?(F(),K("div",Xen,[x("div",Jen,[t[96]||(t[96]=x("label",null,"渐变类型:",-1)),ln(x("select",{"onUpdate:modelValue":t[55]||(t[55]=a=>o.currentSlide.background.gradient.type=a),onChange:t[56]||(t[56]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},t[95]||(t[95]=[x("option",{value:"linear"},"线性渐变",-1),x("option",{value:"radial"},"径向渐变",-1)]),544),[[C2,o.currentSlide.background.gradient.type]])]),x("div",etn,[(F(!0),K(Pt,null,an(o.currentSlide.background.gradient&&o.currentSlide.background.gradient.colors||[],(a,s)=>(F(),K("div",{key:s,class:"gradient-color-item"},[ln(x("input",{type:"color","onUpdate:modelValue":l=>a.color=l,onInput:t[57]||(t[57]=(...l)=>i.updateSlideBackground&&i.updateSlideBackground(...l))},null,40,ttn),[[jr,a.color]]),ln(x("input",{type:"number","onUpdate:modelValue":l=>a.pos=l,min:"0",max:"100",onInput:t[58]||(t[58]=(...l)=>i.updateSlideBackground&&i.updateSlideBackground(...l))},null,40,ntn),[[jr,a.pos,void 0,{number:!0}]]),x("button",{onClick:l=>i.removeGradientColor(s),class:"btn-delete"},"×",8,rtn)]))),128)),x("button",{onClick:t[59]||(t[59]=(...a)=>i.addGradientColor&&i.addGradientColor(...a)),class:"btn btn-sm"},"添加颜色")])])):xe("",!0)]),x("div",otn,[t[101]||(t[101]=x("h4",null,"模板信息",-1)),x("div",itn,[t[98]||(t[98]=x("label",null,"模板名称:",-1)),ln(x("input",{type:"text","onUpdate:modelValue":t[60]||(t[60]=a=>o.currentSlide.name=a),onInput:t[61]||(t[61]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[jr,o.currentSlide.name]])]),x("div",atn,[t[99]||(t[99]=x("label",null,"模板ID:",-1)),ln(x("input",{type:"text","onUpdate:modelValue":t[62]||(t[62]=a=>o.currentSlide.id=a),onInput:t[63]||(t[63]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[jr,o.currentSlide.id]])]),x("div",stn,[t[100]||(t[100]=x("label",null,"模板类型:",-1)),ln(x("input",{type:"text","onUpdate:modelValue":t[64]||(t[64]=a=>o.currentSlide.type=a),onInput:t[65]||(t[65]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[jr,o.currentSlide.type]])])])])])]),o.showJSONEditor?(F(),K("div",ltn,[x("div",utn,[x("div",ctn,[t[103]||(t[103]=x("h3",null,"JSON编辑器",-1)),x("button",{onClick:t[66]||(t[66]=a=>o.showJSONEditor=!1),class:"btn-close"},"×")]),ln(x("textarea",{"onUpdate:modelValue":t[67]||(t[67]=a=>o.jsonContent=a),class:"json-textarea",placeholder:"在这里编辑JSON内容..."},null,512),[[jr,o.jsonContent]]),x("div",dtn,[x("button",{onClick:t[68]||(t[68]=(...a)=>i.applyJSON&&i.applyJSON(...a)),class:"btn btn-primary"},"应用更改"),x("button",{onClick:t[69]||(t[69]=a=>o.showJSONEditor=!1),class:"btn btn-secondary"},"取消")])])])):xe("",!0)])}const ptn=Qo(CJt,[["render",ftn],["__scopeId","data-v-de93f008"]]),htn="/assets/13-CcUgOE0U.png",gtn="/assets/4-DHzSAirS.png",vtn="/assets/5-CIylGsDd.png",mtn={key:0,class:"mobile-toast"},ytn={class:"toast-message"},btn={__name:"MobileToast",props:{visible:{type:Boolean,default:!1},message:{type:String,default:""},duration:{type:Number,default:2e3}},emits:["close"],setup(e,{emit:t}){const n=e,r=t;let o=Q(null);return St(()=>n.visible,i=>{o.value&&(clearTimeout(o.value),o.value=null),i&&n.duration>0&&(o.value=setTimeout(()=>{r("close"),o.value=null},n.duration))}),(i,a)=>(F(),mt(Wi,{name:"toast"},{default:nt(()=>[e.visible?(F(),K("div",mtn,[x("div",ytn,We(e.message),1)])):xe("",!0)]),_:1}))}},d2=Qo(btn,[["__scopeId","data-v-a2a75a91"]]),wtn={key:0,class:"modal-overlay"},Atn={class:"modal-body"},Ctn={class:"feedback-type-section"},xtn={class:"type-buttons"},Stn={class:"feedback-content-section"},Etn={class:"textarea-container"},ktn={class:"char-count"},Ttn={class:"upload-section"},_tn={key:1,class:"uploaded-images"},Dtn=["src","alt"],Itn={class:"image-actions"},Otn=["onClick"],Mtn={key:0,class:"upload-progress"},Ptn={class:"progress-bar"},Ntn={class:"progress-text"},Rtn={class:"contact-section"},Btn={class:"modal-footer"},Ltn=["src"],Ftn={__name:"MobileFeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=Q("function"),i=Q(""),a=Q(""),s=Q(null),l=Q([]);Q(!1);const u=Q(!1),d=Q(""),c=J(()=>i.value.trim()?dve:fve),f=A=>{d.value=A,u.value=!0},p=()=>{u.value=!1},v=A=>{o.value=A},h=()=>{o.value="function",i.value="",a.value="",l.value=[],r("close")},g=()=>{s.value?.click()},y=async A=>{const S=Array.from(A.target.files);if(l.value.length+S.length>3){f("最多只能上传3张图片");return}const k=5*1024*1024,M=S.filter(D=>D.size>k?(f(`图片 ${D.name} 超过5MB限制`),!1):!0);if(M.length!==0){for(const D of M)await m(D);A.target.value=""}},m=async A=>{try{console.log("开始上传图片:",A.name);const S={file:A,url:URL.createObjectURL(A),uploading:!0,progress:0,error:!1};l.value.push(S);const k=new FormData;k.append("image",A),console.log("FormData 已创建:",k),console.log("开始调用后端API...");const M=await Bn.uploadImage(k);if(console.log("后端API响应:",M),M.statusCode===200){const D=M.fileUrl||M.fileURL;console.log("上传成功:",D);const P=l.value.findIndex(O=>O.file===A);P!==-1&&(l.value[P]={...S,url:D,uploading:!1,progress:100}),f(`图片 ${A.name} 上传成功`)}else throw new Error(M.message||"上传失败")}catch(S){console.error("图片上传失败:",S);const k=l.value.findIndex(M=>M.file===A);k!==-1&&(l.value[k].error=!0,l.value[k].uploading=!1),f(`图片 ${A.name} 上传失败: ${S.message}`)}},b=A=>{l.value.splice(A,1)},w=()=>{if(!i.value.trim()){f("请填写反馈内容");return}const A=l.value.filter(M=>!M.uploading&&!M.error);let S="";A.length>0&&(S=A.map(M=>M.url).join(","));const k={type:o.value,content:i.value,contact:a.value,feedback_img:S};console.log("提交反馈数据:",k),r("submit",k),o.value="function",i.value="",a.value="",l.value=[]};return St(()=>n.visible,A=>{if(A){const S=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${S}px`}else document.body.style.overflow="",document.body.style.paddingRight=""}),hl(()=>{document.body.style.overflow="",document.body.style.paddingRight=""}),(A,S)=>e.visible?(F(),K("div",wtn,[x("div",{class:"modal-content",onClick:S[6]||(S[6]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[S[8]||(S[8]=x("h2",{class:"modal-title"},"意见反馈",-1)),x("button",{class:"close-btn",onClick:h},S[7]||(S[7]=[x("span",{class:"close-icon"},"×",-1)]))]),x("div",Atn,[x("div",Ctn,[S[9]||(S[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",xtn,[x("button",{class:re(["type-btn",{active:o.value==="function"}]),onClick:S[0]||(S[0]=k=>v("function"))}," 功能建议 ",2),x("button",{class:re(["type-btn",{active:o.value==="interface"}]),onClick:S[1]||(S[1]=k=>v("interface"))}," 界面优化 ",2),x("button",{class:re(["type-btn",{active:o.value==="experience"}]),onClick:S[2]||(S[2]=k=>v("experience"))}," 体验问题 ",2),x("button",{class:re(["type-btn",{active:o.value==="other"}]),onClick:S[3]||(S[3]=k=>v("other"))}," 其他 ",2)])]),x("div",Stn,[S[10]||(S[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",Etn,[ln(x("textarea",{class:"feedback-textarea",placeholder:"请详细描述您的问题或建议...","onUpdate:modelValue":S[4]||(S[4]=k=>i.value=k),maxlength:"200"},null,512),[[jr,i.value]]),x("div",ktn,We(i.value.length)+"/200",1)])]),x("div",Ttn,[l.value.length===0?(F(),K("div",{key:0,class:"upload-area",onClick:g},S[11]||(S[11]=[x("div",{class:"upload-icon"},[x("img",{src:iE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(F(),K("div",_tn,[(F(!0),K(Pt,null,an(l.value,(k,M)=>(F(),K("div",{key:M,class:"image-item"},[x("img",{src:k.url,alt:`截图${M+1}`,class:"preview-img"},null,8,Dtn),x("div",Itn,[x("button",{class:"delete-btn",onClick:D=>b(M)},S[12]||(S[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,Otn)]),k.uploading?(F(),K("div",Mtn,[x("div",Ptn,[x("div",{class:"progress-fill",style:Xt({width:k.progress+"%"})},null,4)]),x("span",Ntn,We(k.progress)+"%",1)])):xe("",!0)]))),128)),l.value.length<3?(F(),K("div",{key:0,class:"continue-upload",onClick:g},S[13]||(S[13]=[x("div",{class:"upload-icon"},[x("img",{src:iE,alt:"继续上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 继续上传 ",-1)]))):xe("",!0)])):xe("",!0),x("input",{ref_key:"fileInput",ref:s,type:"file",accept:"image/*",multiple:"",style:{display:"none"},onChange:y},null,544)]),x("div",Rtn,[ln(x("input",{type:"text",class:"contact-input",placeholder:"请留下您的联系方式(选填)","onUpdate:modelValue":S[5]||(S[5]=k=>a.value=k)},null,512),[[jr,a.value]])])]),x("div",Btn,[x("button",{class:"submit-btn",onClick:w},[x("img",{src:c.value,alt:"提交反馈",class:"submit-icon"},null,8,Ltn)])])]),Ve(d2,{visible:u.value,message:d.value,onClose:p},null,8,["visible","message"])])):xe("",!0)}},Utn=Qo(Ftn,[["__scopeId","data-v-badc5e32"]]),$tn={class:"mobile-container"},ztn={class:"mobile-header"},jtn={class:"mobile-username"},Htn={key:0,class:"mobile-dropdown-menu"},Wtn={class:"mobile-main-content"},Vtn={class:"mobile-search-container"},qtn={class:"mobile-search-box"},Gtn=["disabled"],Ktn={class:"mobile-icon-container"},Qtn=["src"],Ytn={key:0,class:"mobile-recording-indicator"},Ztn=["disabled"],Xtn=["src"],Jtn={class:"mobile-cards-container"},enn={class:"mobile-common-questions-card"},tnn={class:"mobile-questions-content"},nnn={class:"mobile-questions-list"},rnn=["onClick"],onn={__name:"m-Index",setup(e){const t=Hl(),{isListening:n,transcript:r,error:o,startListening:i,stopListening:a}=T0(),s=Q(""),l=Q(!1),u=Q(!1),d=Q([]),c=Q(null),f=Q(!1),p=async()=>{try{const N=await Bn.getRecommendQuestion({limit:5});d.value=N.data,console.log("推荐问题数据结构:",d.value)}catch(N){console.error("获取推荐问题失败:",N)}},v=()=>{p()},h=()=>{console.log("点击语音按钮"),n.value?y():g()},g=()=>{console.log("开始语音输入"),i()||Ct.error("语音识别启动失败,请检查麦克风权限")},y=()=>{console.log("停止语音输入"),a(),r.value.trim()&&(s.value=r.value)},m=async()=>{if(!s.value.trim()){Ct.warning("请输入搜索内容");return}if(!u.value){u.value=!0;try{console.log("搜索内容:",s.value),t.push({path:"/mobile/chat",query:{autoMessage:s.value}})}finally{u.value=!1}}},b=()=>{l.value=!0},w=()=>{l.value=!1},A=async N=>{try{console.log("收到反馈数据:",N),console.log("feedback_img字段值:",N.feedback_img);let q=N.feedback_img||"";console.log("处理后的feedbackImg:",q);const U={feedback_type:S(N.type),feedback_content:N.content,feedback_user_phone:N.contact||"",feedback_img:q};console.log(U,"feedbackPayload");const j=await Bn.submitFeedback(U);console.log(j,"response"),Ct.success("反馈提交成功!感谢您的宝贵意见"),w()}catch(q){console.error("提交反馈失败:",q),Ct.error("提交反馈失败,请重试")}},S=N=>({function:1,interface:2,experience:3,other:4})[N]||1,k=N=>{console.log("点击问题:",N),t.push({path:"/mobile/chat",query:{autoMessage:N}})},M=()=>{t.push("/mobile/hazard-detection")},D=()=>{t.push("/mobile/safety-hazard")},P=()=>{t.push("/mobile/exam-workshop")},O=()=>{t.push("/mobile/ai-writing")},_=()=>{t.push("/mobile/policy-document")},B=()=>{if(console.log("=".repeat(60)),console.log('📱 用户点击"返回APP"按钮'),console.log("🌐 当前 URL:",window.location.href),console.log("🔍 检查 window.nativeClosePage:",typeof window.nativeClosePage),window.nativeClosePage&&typeof window.nativeClosePage=="function")try{console.log("✅ nativeClosePage 方法存在,准备调用..."),window.nativeClosePage(),console.log("✅ 已成功调用 nativeClosePage()"),sessionStorage.setItem("is_closing","true")}catch(N){console.error("❌ 调用 nativeClosePage() 失败:",N),console.error("❌ 错误详情:",N.message),console.error("❌ 错误堆栈:",N.stack),Ct.warning("请手动关闭页面返回APP")}else console.warn("⚠️ nativeClosePage 方法不存在"),console.warn("⚠️ 当前环境:",navigator.userAgent),Ct.info("请在APP中打开此页面以使用返回功能");console.log("=".repeat(60))};return St(o,N=>{N&&(console.error("语音识别错误:",N),Ct.error(N))}),St(r,N=>{N&&!n.value&&(s.value=N)}),jn(()=>{p();const N=Fve();c.value={username:N||"蜀道用户"},console.log("用户信息:",c.value)}),(N,q)=>(F(),K("div",$tn,[x("div",ztn,[q[5]||(q[5]=x("div",{class:"logo"},[x("img",{src:Wj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"mobile-user-info",onMouseenter:q[0]||(q[0]=U=>f.value=!0),onMouseleave:q[1]||(q[1]=U=>f.value=!1)},[q[4]||(q[4]=x("div",{class:"mobile-user-avatar"},[x("div",{class:"mobile-avatar-icon"})],-1)),x("span",jtn,We(c.value?.username||"用户"),1),f.value?(F(),K("div",Htn,[x("div",{class:"mobile-dropdown-item mobile-logout-item",onClick:B},q[3]||(q[3]=[x("span",null,"返回APP",-1)]))])):xe("",!0)],32)]),x("div",Wtn,[q[15]||(q[15]=x("h1",{class:"mobile-main-title"},"蜀道安全管理AI智能助手",-1)),q[16]||(q[16]=x("p",{class:"mobile-sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",Vtn,[x("div",qtn,[ln(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"mobile-search-input","onUpdate:modelValue":q[2]||(q[2]=U=>s.value=U),onKeyup:Lr(m,["enter"])},null,544),[[jr,s.value]]),x("button",{class:re(["mobile-voice-btn",{recording:C(n)}]),onClick:h,disabled:u.value},[x("div",Ktn,[x("img",{src:C(Zf),alt:"语音",class:"mobile-action-icon"},null,8,Qtn),C(n)?(F(),K("div",Ytn)):xe("",!0)])],10,Gtn),q[6]||(q[6]=x("div",{class:"mobile-divider"},null,-1)),x("button",{class:"mobile-send-btn",onClick:m,disabled:u.value||!s.value.trim()},[x("img",{src:s.value.trim()&&!u.value?C(Jf):C(Xf),alt:"发送",class:"mobile-send-icon"},null,8,Xtn)],8,Ztn)])]),x("div",Jtn,[x("div",enn,[x("div",{class:"mobile-card-header"},[q[8]||(q[8]=x("div",{class:"mobile-card-title-section"},[x("img",{src:htn,alt:"场景问题",class:"mobile-card-avatar"}),x("span",{class:"mobile-card-title"},"场景问题")],-1)),x("div",{class:"mobile-refresh-button",onClick:v},q[7]||(q[7]=[x("span",{class:"mobile-refresh-text"},"换一换",-1)]))]),x("div",tnn,[x("div",nnn,[(F(!0),K(Pt,null,an(d.value,(U,j)=>(F(),K("div",{class:"mobile-question-item",onClick:H=>k(U.question),key:j},We(j+1)+". "+We(U.question),9,rnn))),128))])])]),x("div",{class:"mobile-services-grid"},[x("div",{class:"mobile-service-item",onClick:M},q[9]||(q[9]=[ki('<div class="mobile-service-icon" data-v-56d84481><img src="'+gtn+'" alt="隐患提示" class="mobile-service-bg" data-v-56d84481></div><div class="mobile-service-info mobile-service-info-large" data-v-56d84481><div class="mobile-service-title mobile-service-title-large" data-v-56d84481>隐患提示</div><div class="mobile-service-desc mobile-service-desc-large" data-v-56d84481>图片智能识别,风险隐患提示</div></div>',2)])),x("div",{class:"mobile-service-item",onClick:D},q[10]||(q[10]=[ki('<div class="mobile-service-icon" data-v-56d84481><img src="'+vtn+'" alt="安全培训" class="mobile-service-bg" data-v-56d84481></div><div class="mobile-service-info mobile-service-info-large" data-v-56d84481><div class="mobile-service-title mobile-service-title-large" data-v-56d84481>安全培训</div><div class="mobile-service-desc mobile-service-desc-large" data-v-56d84481>智能编排大纲,生成精美演示文稿</div></div>',2)]))]),x("div",{class:"mobile-four-services"},[x("div",{class:"mobile-service-item",onClick:P},q[11]||(q[11]=[ki('<div class="mobile-service-header" data-v-56d84481><div class="mobile-service-icon" data-v-56d84481><img src="'+sve+'" alt="考试工坊" class="mobile-icon-img" data-v-56d84481></div><div class="mobile-service-title" data-v-56d84481>考试工坊</div></div><div class="mobile-service-description" data-v-56d84481>让组卷更省心,让出题更精准</div><div class="mobile-service-tag" style="color:#2563EB;" data-v-56d84481>生成考题 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:O},q[12]||(q[12]=[ki('<div class="mobile-service-header" data-v-56d84481><div class="mobile-service-icon" data-v-56d84481><img src="'+uve+'" alt="AI写作" class="mobile-icon-img" data-v-56d84481></div><div class="mobile-service-title" data-v-56d84481>AI写作</div></div><div class="mobile-service-description" data-v-56d84481>一键创作公文,让文案更专业</div><div class="mobile-service-tag" style="color:#16A34A;" data-v-56d84481>开始创作 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:_},q[13]||(q[13]=[ki('<div class="mobile-service-header" data-v-56d84481><div class="mobile-service-icon" data-v-56d84481><img src="'+lve+'" alt="政策文件" class="mobile-icon-img" data-v-56d84481></div><div class="mobile-service-title" data-v-56d84481>政策文件</div></div><div class="mobile-service-description" data-v-56d84481>汇集国家、行业及集团政策文件</div><div class="mobile-service-tag" style="color:#EA580C;" data-v-56d84481>了解更多 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:b},q[14]||(q[14]=[ki('<div class="mobile-service-header" data-v-56d84481><div class="mobile-service-icon" data-v-56d84481><img src="'+cve+'" alt="意见反馈" class="mobile-icon-img" data-v-56d84481></div><div class="mobile-service-title" data-v-56d84481>意见反馈</div></div><div class="mobile-service-description" data-v-56d84481>助力产品升级,期待您的反馈</div><div class="mobile-service-tag" style="color:#9333EA;" data-v-56d84481>参与反馈 ›</div>',3)]))])])]),q[17]||(q[17]=x("div",{class:"mobile-footer"},[x("div",{class:"mobile-footer-info"},[x("span",null,"工信部备案号: 蜀ICP备20251411234号-1"),x("span",null,"川公网安备: 51010502011234号")])],-1)),Ve(Utn,{visible:l.value,onClose:w,onSubmit:A},null,8,["visible"])]))}},inn=Qo(onn,[["__scopeId","data-v-56d84481"]]),ann={class:"mobile-header"},snn={class:"page-title"},lnn={__name:"MobileHeader",props:{title:{type:String,default:""},showMenu:{type:Boolean,default:!0}},setup(e){const t=Hl(),n=()=>{t.push("/")};return(r,o)=>(F(),K("header",ann,[x("button",{class:"back-button",onClick:n},o[1]||(o[1]=[x("img",{src:J2e,alt:"回到首页",class:"back-icon"},null,-1)])),x("h1",snn,We(e.title),1),e.showMenu?(F(),K("button",{key:0,class:"hamburger-btn",onClick:o[0]||(o[0]=i=>r.$emit("menu"))},o[2]||(o[2]=[x("span",{class:"line"},null,-1),x("span",{class:"line"},null,-1),x("span",{class:"line"},null,-1)]))):xe("",!0)]))}},f2=Qo(lnn,[["__scopeId","data-v-7dd50625"]]),u0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA6CAYAAADoUOpSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWdSURBVGiB7VrNeds4EH0jkN+n2yodMBWsdDAT3pQKolSQpIJIFdiuwHYFUSqwXUF0o0Qe5A7CrSA6KiHB2cPCG5oGKJAED/tt3o0DcoBHAPMHEAbGfr+fHI/Hqed5b5l5AiBg5oCIJgDAzAciyojoACAriuI+iqLN0OOioRTvdrvFaDR6z8xzAJOWnx+IaMPM92EYrt2PbgDiSZJ8AHAOIHCkMgNw6foHOCMex/FcCHEOYO5KZw2ZlPJNFEWZC2UjF0q22+1SCPEVw5EGgEAIsd9ut0sXynrN+H6/n+R5fg7AajDMnBHRRhmygxL/a/AATC27vg7DcNV6wBX0Ip6m6S0zL068tinL8p6Z704t0ziOAyHEHHY2Yh2G4UfrwdbQmXiapufMfNHwyoOUctXVNdkYSSK6ODs7u+yivxNxC9K9l6JtX2VZrl6/fn3dVm9r4mo5fjM0H5j546tXr+7qDSqQWahAJmDmidrrH8MwfGjqU83+FfTxwEFKOWtr7b02LwOAclkmrOqk9/v9pCiKT3meL4UQE2YGABD988+Z+RbAy6Y+wzBcJ0kCAJ81zRPP864AvLNn0dKdJUkyBfBB11aW5aoeZOx2u0We59/UUtVGb2rWTyIMwzURXejamHkRx/HcRs8j2vrxK52QiO7q+yxN03MiuoWGsHJrd0R0LaW0nillyDa6thMr8fmYbV9s2ttSypfVPbbb7RaKdBUHIrr2PO9mNptZzbJhHHMVLD2D7/svbHVbz7jyrzqsq6TjOA6IqL4yHqSUs7Ozs8s+pAEgiqINET0zngDw48ePD7Z62iz19zohM99Xn9WSCyqiTEr5zlWMDQBFUdzo5KPR6K2tjjbEdeHkQeO6nkRyLhOLR4zH4wf8CnmrsA157Yjv9/sJ9Fb5if/d7XaL2nsb16QBQG0Xne+fqLGehBXxPM8Dnbzuikaj0Z/V57Is7zEcMp3weDy6Iy6lNCmrd/7kPWZujMj6oMH/BzbfO8nHK6gPJnOs3xlsQ9ZMJ1TFw1/KPO+mKAoAmJZl+WWI/W3q+xFCCCt3aUV8PB4f8jzXNT2xosrodEoTOyDQCX3fz2w+to7ckiT5Do1lbxMtuYKq/HzXNB3CMHxho6PNHtcaquPxeKoC4xw/f/6c6+REtLHVYU1cSvlFJxdCaCO6IUFEn3TyehTZBGvi4/FYGx8DmLdNCftA9aXtT0q5sdVjTVztY61iIYQ2XR0CQghdMQKoJUun0MqPSylNVc1pkiSDk0/T1Fh8lFK28iatiKs/ujY0L1VtbBBst9tlQ9Gx1WwDHSI39WdN7uvzEPs9SZLpaDQyrais7WwDHYhHUZQ1lYuEELdxHAdt9ZqgdGkrLgDAzKsuEWKnWF1VQS4MzRMhxK1tengKqsxkKlRe6ErZNuicpKjC39rQPFVnar2gDGagayOiu66nKEDP7Mz3/RUMER2AZZ/9rr41HUZmnud1PjcDehKfzWYHtd+1xq7B555Ew7eZlPJN3/ygdz4eRVFWlqVpyQVdzrOVWwwMzZcu0l1nNyIajowPvu+/tJ0hVb//Cj3xXkfDVTirwBRFsYJ+yU+KotAmFTqo+n2ga+vir01wRjyKooyItMe1zLxs4d603oCILlxWdJzW3DzPu4Fh1k05dBUNezvr47p0cEp8NpsdTLNuyqFrMOX2nYKUJriusj7Oug42pxxznVBKadLZGYPcbFTXv/6oy5tOSh8vENTlzPzXULcbf+M3/gcYZI+naXpVlqWTsjMRbVxFa1W0vvVkA3WVK3CkzpWeJ3DuzgZANoTS/wLxQfCbuEsQUeZQ1yAHkoMQL4riC8wl6DbITDec+mIQ4lEUZczswgU5qbboMNgeV2Xf1tepK7geMkYf1Lj5vn+Jbu4oU98OhkGJqyrsG5hL0Do8uKiinsLfTWJ0111CJoIAAAAASUVORK5CYII=",unn={class:"mobile-history-drawer"},cnn={class:"drawer-tabbar"},dnn=["onClick"],fnn={class:"icon-wrap"},pnn=["src","alt"],hnn={class:"tab-label"},gnn={class:"drawer-header"},vnn={class:"drawer-title"},mnn={class:"drawer-content"},ynn={key:0,class:"loading-state"},bnn=["onClick"],wnn={class:"history-content"},Ann={class:"history-title"},Cnn={class:"history-time"},xnn=["onClick"],Snn=["src"],Enn={key:2,class:"empty-history"},knn={__name:"MobileHistoryDrawer",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"历史记录"},historyData:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},emits:["close","createNewTask","handleHistoryItem","deleteHistoryItem"],setup(e,{emit:t}){const n=Hl(),r=N_(),o=t,i=J(()=>[{path:"/mobile/chat",label:"AI问答",icon:u0e,iconActive:u0e},{path:"/mobile/safety-hazard",label:"安全培训",icon:hF,iconActive:hF},{path:"/mobile/hazard-detection",label:"隐患提示",icon:pF,iconActive:pF},{path:"/mobile/ai-writing",label:"AI写作",icon:gF,iconActive:gF},{path:"/mobile/exam-workshop",label:"考试工坊",icon:vF,iconActive:vF}]),a=f=>r.path===f,s=f=>{r.path!==f&&n.push(f)},l=()=>{o("close")},u=()=>{o("createNewTask")},d=f=>{o("handleHistoryItem",f)},c=(f,p)=>{o("deleteHistoryItem",f,p)};return(f,p)=>ln((F(),K("div",unn,[x("div",cnn,[(F(!0),K(Pt,null,an(i.value,v=>(F(),K("button",{key:v.path,class:re(["tab-item",{active:a(v.path)}]),onClick:h=>s(v.path)},[x("div",fnn,[x("img",{src:a(v.path)?v.iconActive:v.icon,alt:v.label,class:"tab-icon"},null,8,pnn)]),x("span",hnn,We(v.label),1)],10,dnn))),128))]),x("div",gnn,[x("div",vnn,We(e.title),1),x("div",{class:"header-actions"},[x("button",{class:"new-task-btn",onClick:u},"新建任务"),x("button",{class:"close-btn",onClick:l},"关闭")])]),x("div",mnn,[e.loading?(F(),K("div",ynn,p[0]||(p[0]=[x("div",{class:"loading-text"},"加载中...",-1)]))):e.historyData.length>0?(F(!0),K(Pt,{key:1},an(e.historyData,(v,h)=>(F(),K("div",{key:v.id,class:re(["history-item",{active:v.isActive}]),onClick:g=>d(v)},[x("div",wnn,[x("div",Ann,We(v.title),1),x("div",Cnn,We(v.time),1)]),x("div",{class:"delete-btn always-visible",onClick:Qt(g=>c(v,h),["stop"])},[x("img",{src:C(wc),alt:"删除",class:"delete-icon"},null,8,Snn)],8,xnn)],10,bnn))),128)):(F(),K("div",Enn,p[1]||(p[1]=[x("div",{class:"empty-text"},"暂无历史记录",-1)])))])],512)),[[Ar,e.visible]])}},j5=Qo(knn,[["__scopeId","data-v-98e1dd42"]]);var q8={exports:{}};/*!
- * Vditor v3.11.2 - A markdown editor written in TypeScript.
- *
- * MIT License
- *
- * Copyright (c) 2018-present B3log 开源, b3log.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- */var Tnn=q8.exports,c0e;function _nn(){return c0e||(c0e=1,(function(e,t){(function(r,o){e.exports=o()})(Tnn,function(){return(()=>{var n={173:(a=>{var s=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},l=-1,u=1,d=0;s.Diff=function(c,f){return[c,f]},s.prototype.diff_main=function(c,f,p,v){typeof v>"u"&&(this.Diff_Timeout<=0?v=Number.MAX_VALUE:v=new Date().getTime()+this.Diff_Timeout*1e3);var h=v;if(c==null||f==null)throw new Error("Null input. (diff_main)");if(c==f)return c?[new s.Diff(d,c)]:[];typeof p>"u"&&(p=!0);var g=p,y=this.diff_commonPrefix(c,f),m=c.substring(0,y);c=c.substring(y),f=f.substring(y),y=this.diff_commonSuffix(c,f);var b=c.substring(c.length-y);c=c.substring(0,c.length-y),f=f.substring(0,f.length-y);var w=this.diff_compute_(c,f,g,h);return m&&w.unshift(new s.Diff(d,m)),b&&w.push(new s.Diff(d,b)),this.diff_cleanupMerge(w),w},s.prototype.diff_compute_=function(c,f,p,v){var h;if(!c)return[new s.Diff(u,f)];if(!f)return[new s.Diff(l,c)];var g=c.length>f.length?c:f,y=c.length>f.length?f:c,m=g.indexOf(y);if(m!=-1)return h=[new s.Diff(u,g.substring(0,m)),new s.Diff(d,y),new s.Diff(u,g.substring(m+y.length))],c.length>f.length&&(h[0][0]=h[2][0]=l),h;if(y.length==1)return[new s.Diff(l,c),new s.Diff(u,f)];var b=this.diff_halfMatch_(c,f);if(b){var w=b[0],A=b[1],S=b[2],k=b[3],M=b[4],D=this.diff_main(w,S,p,v),P=this.diff_main(A,k,p,v);return D.concat([new s.Diff(d,M)],P)}return p&&c.length>100&&f.length>100?this.diff_lineMode_(c,f,v):this.diff_bisect_(c,f,v)},s.prototype.diff_lineMode_=function(c,f,p){var v=this.diff_linesToChars_(c,f);c=v.chars1,f=v.chars2;var h=v.lineArray,g=this.diff_main(c,f,!1,p);this.diff_charsToLines_(g,h),this.diff_cleanupSemantic(g),g.push(new s.Diff(d,""));for(var y=0,m=0,b=0,w="",A="";y<g.length;){switch(g[y][0]){case u:b++,A+=g[y][1];break;case l:m++,w+=g[y][1];break;case d:if(m>=1&&b>=1){g.splice(y-m-b,m+b),y=y-m-b;for(var S=this.diff_main(w,A,!1,p),k=S.length-1;k>=0;k--)g.splice(y,0,S[k]);y=y+S.length}b=0,m=0,w="",A="";break}y++}return g.pop(),g},s.prototype.diff_bisect_=function(c,f,p){for(var v=c.length,h=f.length,g=Math.ceil((v+h)/2),y=g,m=2*g,b=new Array(m),w=new Array(m),A=0;A<m;A++)b[A]=-1,w[A]=-1;b[y+1]=0,w[y+1]=0;for(var S=v-h,k=S%2!=0,M=0,D=0,P=0,O=0,_=0;_<g&&!(new Date().getTime()>p);_++){for(var B=-_+M;B<=_-D;B+=2){var N=y+B,q;B==-_||B!=_&&b[N-1]<b[N+1]?q=b[N+1]:q=b[N-1]+1;for(var U=q-B;q<v&&U<h&&c.charAt(q)==f.charAt(U);)q++,U++;if(b[N]=q,q>v)D+=2;else if(U>h)M+=2;else if(k){var j=y+S-B;if(j>=0&&j<m&&w[j]!=-1){var H=v-w[j];if(q>=H)return this.diff_bisectSplit_(c,f,q,U,p)}}}for(var G=-_+P;G<=_-O;G+=2){var j=y+G,H;G==-_||G!=_&&w[j-1]<w[j+1]?H=w[j+1]:H=w[j-1]+1;for(var Z=H-G;H<v&&Z<h&&c.charAt(v-H-1)==f.charAt(h-Z-1);)H++,Z++;if(w[j]=H,H>v)O+=2;else if(Z>h)P+=2;else if(!k){var N=y+S-G;if(N>=0&&N<m&&b[N]!=-1){var q=b[N],U=y+q-N;if(H=v-H,q>=H)return this.diff_bisectSplit_(c,f,q,U,p)}}}}return[new s.Diff(l,c),new s.Diff(u,f)]},s.prototype.diff_bisectSplit_=function(c,f,p,v,h){var g=c.substring(0,p),y=f.substring(0,v),m=c.substring(p),b=f.substring(v),w=this.diff_main(g,y,!1,h),A=this.diff_main(m,b,!1,h);return w.concat(A)},s.prototype.diff_linesToChars_=function(c,f){var p=[],v={};p[0]="";function h(b){for(var w="",A=0,S=-1,k=p.length;S<b.length-1;){S=b.indexOf(`
- `,A),S==-1&&(S=b.length-1);var M=b.substring(A,S+1);(v.hasOwnProperty?v.hasOwnProperty(M):v[M]!==void 0)?w+=String.fromCharCode(v[M]):(k==g&&(M=b.substring(A),S=b.length),w+=String.fromCharCode(k),v[M]=k,p[k++]=M),A=S+1}return w}var g=4e4,y=h(c);g=65535;var m=h(f);return{chars1:y,chars2:m,lineArray:p}},s.prototype.diff_charsToLines_=function(c,f){for(var p=0;p<c.length;p++){for(var v=c[p][1],h=[],g=0;g<v.length;g++)h[g]=f[v.charCodeAt(g)];c[p][1]=h.join("")}},s.prototype.diff_commonPrefix=function(c,f){if(!c||!f||c.charAt(0)!=f.charAt(0))return 0;for(var p=0,v=Math.min(c.length,f.length),h=v,g=0;p<h;)c.substring(g,h)==f.substring(g,h)?(p=h,g=p):v=h,h=Math.floor((v-p)/2+p);return h},s.prototype.diff_commonSuffix=function(c,f){if(!c||!f||c.charAt(c.length-1)!=f.charAt(f.length-1))return 0;for(var p=0,v=Math.min(c.length,f.length),h=v,g=0;p<h;)c.substring(c.length-h,c.length-g)==f.substring(f.length-h,f.length-g)?(p=h,g=p):v=h,h=Math.floor((v-p)/2+p);return h},s.prototype.diff_commonOverlap_=function(c,f){var p=c.length,v=f.length;if(p==0||v==0)return 0;p>v?c=c.substring(p-v):p<v&&(f=f.substring(0,p));var h=Math.min(p,v);if(c==f)return h;for(var g=0,y=1;;){var m=c.substring(h-y),b=f.indexOf(m);if(b==-1)return g;y+=b,(b==0||c.substring(h-y)==f.substring(0,y))&&(g=y,y++)}},s.prototype.diff_halfMatch_=function(c,f){if(this.Diff_Timeout<=0)return null;var p=c.length>f.length?c:f,v=c.length>f.length?f:c;if(p.length<4||v.length*2<p.length)return null;var h=this;function g(D,P,O){for(var _=D.substring(O,O+Math.floor(D.length/4)),B=-1,N="",q,U,j,H;(B=P.indexOf(_,B+1))!=-1;){var G=h.diff_commonPrefix(D.substring(O),P.substring(B)),Z=h.diff_commonSuffix(D.substring(0,O),P.substring(0,B));N.length<Z+G&&(N=P.substring(B-Z,B)+P.substring(B,B+G),q=D.substring(0,O-Z),U=D.substring(O+G),j=P.substring(0,B-Z),H=P.substring(B+G))}return N.length*2>=D.length?[q,U,j,H,N]:null}var y=g(p,v,Math.ceil(p.length/4)),m=g(p,v,Math.ceil(p.length/2)),b;if(!y&&!m)return null;m?y?b=y[4].length>m[4].length?y:m:b=m:b=y;var w,A,S,k;c.length>f.length?(w=b[0],A=b[1],S=b[2],k=b[3]):(S=b[0],k=b[1],w=b[2],A=b[3]);var M=b[4];return[w,A,S,k,M]},s.prototype.diff_cleanupSemantic=function(c){for(var f=!1,p=[],v=0,h=null,g=0,y=0,m=0,b=0,w=0;g<c.length;)c[g][0]==d?(p[v++]=g,y=b,m=w,b=0,w=0,h=c[g][1]):(c[g][0]==u?b+=c[g][1].length:w+=c[g][1].length,h&&h.length<=Math.max(y,m)&&h.length<=Math.max(b,w)&&(c.splice(p[v-1],0,new s.Diff(l,h)),c[p[v-1]+1][0]=u,v--,v--,g=v>0?p[v-1]:-1,y=0,m=0,b=0,w=0,h=null,f=!0)),g++;for(f&&this.diff_cleanupMerge(c),this.diff_cleanupSemanticLossless(c),g=1;g<c.length;){if(c[g-1][0]==l&&c[g][0]==u){var A=c[g-1][1],S=c[g][1],k=this.diff_commonOverlap_(A,S),M=this.diff_commonOverlap_(S,A);k>=M?(k>=A.length/2||k>=S.length/2)&&(c.splice(g,0,new s.Diff(d,S.substring(0,k))),c[g-1][1]=A.substring(0,A.length-k),c[g+1][1]=S.substring(k),g++):(M>=A.length/2||M>=S.length/2)&&(c.splice(g,0,new s.Diff(d,A.substring(0,M))),c[g-1][0]=u,c[g-1][1]=S.substring(0,S.length-M),c[g+1][0]=l,c[g+1][1]=A.substring(M),g++),g++}g++}},s.prototype.diff_cleanupSemanticLossless=function(c){function f(M,D){if(!M||!D)return 6;var P=M.charAt(M.length-1),O=D.charAt(0),_=P.match(s.nonAlphaNumericRegex_),B=O.match(s.nonAlphaNumericRegex_),N=_&&P.match(s.whitespaceRegex_),q=B&&O.match(s.whitespaceRegex_),U=N&&P.match(s.linebreakRegex_),j=q&&O.match(s.linebreakRegex_),H=U&&M.match(s.blanklineEndRegex_),G=j&&D.match(s.blanklineStartRegex_);return H||G?5:U||j?4:_&&!N&&q?3:N||q?2:_||B?1:0}for(var p=1;p<c.length-1;){if(c[p-1][0]==d&&c[p+1][0]==d){var v=c[p-1][1],h=c[p][1],g=c[p+1][1],y=this.diff_commonSuffix(v,h);if(y){var m=h.substring(h.length-y);v=v.substring(0,v.length-y),h=m+h.substring(0,h.length-y),g=m+g}for(var b=v,w=h,A=g,S=f(v,h)+f(h,g);h.charAt(0)===g.charAt(0);){v+=h.charAt(0),h=h.substring(1)+g.charAt(0),g=g.substring(1);var k=f(v,h)+f(h,g);k>=S&&(S=k,b=v,w=h,A=g)}c[p-1][1]!=b&&(b?c[p-1][1]=b:(c.splice(p-1,1),p--),c[p][1]=w,A?c[p+1][1]=A:(c.splice(p+1,1),p--))}p++}},s.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,s.whitespaceRegex_=/\s/,s.linebreakRegex_=/[\r\n]/,s.blanklineEndRegex_=/\n\r?\n$/,s.blanklineStartRegex_=/^\r?\n\r?\n/,s.prototype.diff_cleanupEfficiency=function(c){for(var f=!1,p=[],v=0,h=null,g=0,y=!1,m=!1,b=!1,w=!1;g<c.length;)c[g][0]==d?(c[g][1].length<this.Diff_EditCost&&(b||w)?(p[v++]=g,y=b,m=w,h=c[g][1]):(v=0,h=null),b=w=!1):(c[g][0]==l?w=!0:b=!0,h&&(y&&m&&b&&w||h.length<this.Diff_EditCost/2&&y+m+b+w==3)&&(c.splice(p[v-1],0,new s.Diff(l,h)),c[p[v-1]+1][0]=u,v--,h=null,y&&m?(b=w=!0,v=0):(v--,g=v>0?p[v-1]:-1,b=w=!1),f=!0)),g++;f&&this.diff_cleanupMerge(c)},s.prototype.diff_cleanupMerge=function(c){c.push(new s.Diff(d,""));for(var f=0,p=0,v=0,h="",g="",y;f<c.length;)switch(c[f][0]){case u:v++,g+=c[f][1],f++;break;case l:p++,h+=c[f][1],f++;break;case d:p+v>1?(p!==0&&v!==0&&(y=this.diff_commonPrefix(g,h),y!==0&&(f-p-v>0&&c[f-p-v-1][0]==d?c[f-p-v-1][1]+=g.substring(0,y):(c.splice(0,0,new s.Diff(d,g.substring(0,y))),f++),g=g.substring(y),h=h.substring(y)),y=this.diff_commonSuffix(g,h),y!==0&&(c[f][1]=g.substring(g.length-y)+c[f][1],g=g.substring(0,g.length-y),h=h.substring(0,h.length-y))),f-=p+v,c.splice(f,p+v),h.length&&(c.splice(f,0,new s.Diff(l,h)),f++),g.length&&(c.splice(f,0,new s.Diff(u,g)),f++),f++):f!==0&&c[f-1][0]==d?(c[f-1][1]+=c[f][1],c.splice(f,1)):f++,v=0,p=0,h="",g="";break}c[c.length-1][1]===""&&c.pop();var m=!1;for(f=1;f<c.length-1;)c[f-1][0]==d&&c[f+1][0]==d&&(c[f][1].substring(c[f][1].length-c[f-1][1].length)==c[f-1][1]?(c[f][1]=c[f-1][1]+c[f][1].substring(0,c[f][1].length-c[f-1][1].length),c[f+1][1]=c[f-1][1]+c[f+1][1],c.splice(f-1,1),m=!0):c[f][1].substring(0,c[f+1][1].length)==c[f+1][1]&&(c[f-1][1]+=c[f+1][1],c[f][1]=c[f][1].substring(c[f+1][1].length)+c[f+1][1],c.splice(f+1,1),m=!0)),f++;m&&this.diff_cleanupMerge(c)},s.prototype.diff_xIndex=function(c,f){var p=0,v=0,h=0,g=0,y;for(y=0;y<c.length&&(c[y][0]!==u&&(p+=c[y][1].length),c[y][0]!==l&&(v+=c[y][1].length),!(p>f));y++)h=p,g=v;return c.length!=y&&c[y][0]===l?g:g+(f-h)},s.prototype.diff_prettyHtml=function(c){for(var f=[],p=/&/g,v=/</g,h=/>/g,g=/\n/g,y=0;y<c.length;y++){var m=c[y][0],b=c[y][1],w=b.replace(p,"&").replace(v,"<").replace(h,">").replace(g,"¶<br>");switch(m){case u:f[y]='<ins style="background:#e6ffe6;">'+w+"</ins>";break;case l:f[y]='<del style="background:#ffe6e6;">'+w+"</del>";break;case d:f[y]="<span>"+w+"</span>";break}}return f.join("")},s.prototype.diff_text1=function(c){for(var f=[],p=0;p<c.length;p++)c[p][0]!==u&&(f[p]=c[p][1]);return f.join("")},s.prototype.diff_text2=function(c){for(var f=[],p=0;p<c.length;p++)c[p][0]!==l&&(f[p]=c[p][1]);return f.join("")},s.prototype.diff_levenshtein=function(c){for(var f=0,p=0,v=0,h=0;h<c.length;h++){var g=c[h][0],y=c[h][1];switch(g){case u:p+=y.length;break;case l:v+=y.length;break;case d:f+=Math.max(p,v),p=0,v=0;break}}return f+=Math.max(p,v),f},s.prototype.diff_toDelta=function(c){for(var f=[],p=0;p<c.length;p++)switch(c[p][0]){case u:f[p]="+"+encodeURI(c[p][1]);break;case l:f[p]="-"+c[p][1].length;break;case d:f[p]="="+c[p][1].length;break}return f.join(" ").replace(/%20/g," ")},s.prototype.diff_fromDelta=function(c,f){for(var p=[],v=0,h=0,g=f.split(/\t/g),y=0;y<g.length;y++){var m=g[y].substring(1);switch(g[y].charAt(0)){case"+":try{p[v++]=new s.Diff(u,decodeURI(m))}catch{throw new Error("Illegal escape in diff_fromDelta: "+m)}break;case"-":case"=":var b=parseInt(m,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+m);var w=c.substring(h,h+=b);g[y].charAt(0)=="="?p[v++]=new s.Diff(d,w):p[v++]=new s.Diff(l,w);break;default:if(g[y])throw new Error("Invalid diff operation in diff_fromDelta: "+g[y])}}if(h!=c.length)throw new Error("Delta length ("+h+") does not equal source text length ("+c.length+").");return p},s.prototype.match_main=function(c,f,p){if(c==null||f==null||p==null)throw new Error("Null input. (match_main)");return p=Math.max(0,Math.min(p,c.length)),c==f?0:c.length?c.substring(p,p+f.length)==f?p:this.match_bitap_(c,f,p):-1},s.prototype.match_bitap_=function(c,f,p){if(f.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var v=this.match_alphabet_(f),h=this;function g(q,U){var j=q/f.length,H=Math.abs(p-U);return h.Match_Distance?j+H/h.Match_Distance:H?1:j}var y=this.Match_Threshold,m=c.indexOf(f,p);m!=-1&&(y=Math.min(g(0,m),y),m=c.lastIndexOf(f,p+f.length),m!=-1&&(y=Math.min(g(0,m),y)));var b=1<<f.length-1;m=-1;for(var w,A,S=f.length+c.length,k,M=0;M<f.length;M++){for(w=0,A=S;w<A;)g(M,p+A)<=y?w=A:S=A,A=Math.floor((S-w)/2+w);S=A;var D=Math.max(1,p-A+1),P=Math.min(p+A,c.length)+f.length,O=Array(P+2);O[P+1]=(1<<M)-1;for(var _=P;_>=D;_--){var B=v[c.charAt(_-1)];if(M===0?O[_]=(O[_+1]<<1|1)&B:O[_]=(O[_+1]<<1|1)&B|((k[_+1]|k[_])<<1|1)|k[_+1],O[_]&b){var N=g(M,_-1);if(N<=y)if(y=N,m=_-1,m>p)D=Math.max(1,2*p-m);else break}}if(g(M+1,p)>y)break;k=O}return m},s.prototype.match_alphabet_=function(c){for(var f={},p=0;p<c.length;p++)f[c.charAt(p)]=0;for(var p=0;p<c.length;p++)f[c.charAt(p)]|=1<<c.length-p-1;return f},s.prototype.patch_addContext_=function(c,f){if(f.length!=0){if(c.start2===null)throw Error("patch not initialized");for(var p=f.substring(c.start2,c.start2+c.length1),v=0;f.indexOf(p)!=f.lastIndexOf(p)&&p.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)v+=this.Patch_Margin,p=f.substring(c.start2-v,c.start2+c.length1+v);v+=this.Patch_Margin;var h=f.substring(c.start2-v,c.start2);h&&c.diffs.unshift(new s.Diff(d,h));var g=f.substring(c.start2+c.length1,c.start2+c.length1+v);g&&c.diffs.push(new s.Diff(d,g)),c.start1-=h.length,c.start2-=h.length,c.length1+=h.length+g.length,c.length2+=h.length+g.length}},s.prototype.patch_make=function(c,f,p){var v,h;if(typeof c=="string"&&typeof f=="string"&&typeof p>"u")v=c,h=this.diff_main(v,f,!0),h.length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(c&&typeof c=="object"&&typeof f>"u"&&typeof p>"u")h=c,v=this.diff_text1(h);else if(typeof c=="string"&&f&&typeof f=="object"&&typeof p>"u")v=c,h=f;else if(typeof c=="string"&&typeof f=="string"&&p&&typeof p=="object")v=c,h=p;else throw new Error("Unknown call format to patch_make.");if(h.length===0)return[];for(var g=[],y=new s.patch_obj,m=0,b=0,w=0,A=v,S=v,k=0;k<h.length;k++){var M=h[k][0],D=h[k][1];switch(!m&&M!==d&&(y.start1=b,y.start2=w),M){case u:y.diffs[m++]=h[k],y.length2+=D.length,S=S.substring(0,w)+D+S.substring(w);break;case l:y.length1+=D.length,y.diffs[m++]=h[k],S=S.substring(0,w)+S.substring(w+D.length);break;case d:D.length<=2*this.Patch_Margin&&m&&h.length!=k+1?(y.diffs[m++]=h[k],y.length1+=D.length,y.length2+=D.length):D.length>=2*this.Patch_Margin&&m&&(this.patch_addContext_(y,A),g.push(y),y=new s.patch_obj,m=0,A=S,b=w);break}M!==u&&(b+=D.length),M!==l&&(w+=D.length)}return m&&(this.patch_addContext_(y,A),g.push(y)),g},s.prototype.patch_deepCopy=function(c){for(var f=[],p=0;p<c.length;p++){var v=c[p],h=new s.patch_obj;h.diffs=[];for(var g=0;g<v.diffs.length;g++)h.diffs[g]=new s.Diff(v.diffs[g][0],v.diffs[g][1]);h.start1=v.start1,h.start2=v.start2,h.length1=v.length1,h.length2=v.length2,f[p]=h}return f},s.prototype.patch_apply=function(c,f){if(c.length==0)return[f,[]];c=this.patch_deepCopy(c);var p=this.patch_addPadding(c);f=p+f+p,this.patch_splitMax(c);for(var v=0,h=[],g=0;g<c.length;g++){var y=c[g].start2+v,m=this.diff_text1(c[g].diffs),b,w=-1;if(m.length>this.Match_MaxBits?(b=this.match_main(f,m.substring(0,this.Match_MaxBits),y),b!=-1&&(w=this.match_main(f,m.substring(m.length-this.Match_MaxBits),y+m.length-this.Match_MaxBits),(w==-1||b>=w)&&(b=-1))):b=this.match_main(f,m,y),b==-1)h[g]=!1,v-=c[g].length2-c[g].length1;else{h[g]=!0,v=b-y;var A;if(w==-1?A=f.substring(b,b+m.length):A=f.substring(b,w+this.Match_MaxBits),m==A)f=f.substring(0,b)+this.diff_text2(c[g].diffs)+f.substring(b+m.length);else{var S=this.diff_main(m,A,!1);if(m.length>this.Match_MaxBits&&this.diff_levenshtein(S)/m.length>this.Patch_DeleteThreshold)h[g]=!1;else{this.diff_cleanupSemanticLossless(S);for(var k=0,M,D=0;D<c[g].diffs.length;D++){var P=c[g].diffs[D];P[0]!==d&&(M=this.diff_xIndex(S,k)),P[0]===u?f=f.substring(0,b+M)+P[1]+f.substring(b+M):P[0]===l&&(f=f.substring(0,b+M)+f.substring(b+this.diff_xIndex(S,k+P[1].length))),P[0]!==l&&(k+=P[1].length)}}}}}return f=f.substring(p.length,f.length-p.length),[f,h]},s.prototype.patch_addPadding=function(c){for(var f=this.Patch_Margin,p="",v=1;v<=f;v++)p+=String.fromCharCode(v);for(var v=0;v<c.length;v++)c[v].start1+=f,c[v].start2+=f;var h=c[0],g=h.diffs;if(g.length==0||g[0][0]!=d)g.unshift(new s.Diff(d,p)),h.start1-=f,h.start2-=f,h.length1+=f,h.length2+=f;else if(f>g[0][1].length){var y=f-g[0][1].length;g[0][1]=p.substring(g[0][1].length)+g[0][1],h.start1-=y,h.start2-=y,h.length1+=y,h.length2+=y}if(h=c[c.length-1],g=h.diffs,g.length==0||g[g.length-1][0]!=d)g.push(new s.Diff(d,p)),h.length1+=f,h.length2+=f;else if(f>g[g.length-1][1].length){var y=f-g[g.length-1][1].length;g[g.length-1][1]+=p.substring(0,y),h.length1+=y,h.length2+=y}return p},s.prototype.patch_splitMax=function(c){for(var f=this.Match_MaxBits,p=0;p<c.length;p++)if(!(c[p].length1<=f)){var v=c[p];c.splice(p--,1);for(var h=v.start1,g=v.start2,y="";v.diffs.length!==0;){var m=new s.patch_obj,b=!0;for(m.start1=h-y.length,m.start2=g-y.length,y!==""&&(m.length1=m.length2=y.length,m.diffs.push(new s.Diff(d,y)));v.diffs.length!==0&&m.length1<f-this.Patch_Margin;){var w=v.diffs[0][0],A=v.diffs[0][1];w===u?(m.length2+=A.length,g+=A.length,m.diffs.push(v.diffs.shift()),b=!1):w===l&&m.diffs.length==1&&m.diffs[0][0]==d&&A.length>2*f?(m.length1+=A.length,h+=A.length,b=!1,m.diffs.push(new s.Diff(w,A)),v.diffs.shift()):(A=A.substring(0,f-m.length1-this.Patch_Margin),m.length1+=A.length,h+=A.length,w===d?(m.length2+=A.length,g+=A.length):b=!1,m.diffs.push(new s.Diff(w,A)),A==v.diffs[0][1]?v.diffs.shift():v.diffs[0][1]=v.diffs[0][1].substring(A.length))}y=this.diff_text2(m.diffs),y=y.substring(y.length-this.Patch_Margin);var S=this.diff_text1(v.diffs).substring(0,this.Patch_Margin);S!==""&&(m.length1+=S.length,m.length2+=S.length,m.diffs.length!==0&&m.diffs[m.diffs.length-1][0]===d?m.diffs[m.diffs.length-1][1]+=S:m.diffs.push(new s.Diff(d,S))),b||c.splice(++p,0,m)}}},s.prototype.patch_toText=function(c){for(var f=[],p=0;p<c.length;p++)f[p]=c[p];return f.join("")},s.prototype.patch_fromText=function(c){var f=[];if(!c)return f;for(var p=c.split(`
- `),v=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;v<p.length;){var g=p[v].match(h);if(!g)throw new Error("Invalid patch string: "+p[v]);var y=new s.patch_obj;for(f.push(y),y.start1=parseInt(g[1],10),g[2]===""?(y.start1--,y.length1=1):g[2]=="0"?y.length1=0:(y.start1--,y.length1=parseInt(g[2],10)),y.start2=parseInt(g[3],10),g[4]===""?(y.start2--,y.length2=1):g[4]=="0"?y.length2=0:(y.start2--,y.length2=parseInt(g[4],10)),v++;v<p.length;){var m=p[v].charAt(0);try{var b=decodeURI(p[v].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(m=="-")y.diffs.push(new s.Diff(l,b));else if(m=="+")y.diffs.push(new s.Diff(u,b));else if(m==" ")y.diffs.push(new s.Diff(d,b));else{if(m=="@")break;if(m!=="")throw new Error('Invalid patch mode "'+m+'" in: '+b)}v++}}return f},s.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},s.patch_obj.prototype.toString=function(){var c,f;this.length1===0?c=this.start1+",0":this.length1==1?c=this.start1+1:c=this.start1+1+","+this.length1,this.length2===0?f=this.start2+",0":this.length2==1?f=this.start2+1:f=this.start2+1+","+this.length2;for(var p=["@@ -"+c+" +"+f+` @@
- `],v,h=0;h<this.diffs.length;h++){switch(this.diffs[h][0]){case u:v="+";break;case l:v="-";break;case d:v=" ";break}p[h+1]=v+encodeURI(this.diffs[h][1])+`
- `}return p.join("").replace(/%20/g," ")},a.exports=s,a.exports.diff_match_patch=s,a.exports.DIFF_DELETE=l,a.exports.DIFF_INSERT=u,a.exports.DIFF_EQUAL=d}),408:((a,s,l)=>{l.d(s,{default:()=>te});var u=l(135),d=l(840),c=l(775),f=l(428),p=l(325),v=l(483),h=l(999),g=function(X){X===void 0&&(X=document);var ue=function(ve){var Me=document.createElement("img");Me.src=ve.getAttribute("data-src"),Me.addEventListener("load",function(){!ve.getAttribute("style")&&!ve.getAttribute("class")&&!ve.getAttribute("width")&&!ve.getAttribute("height")&&Me.naturalHeight>Me.naturalWidth&&Me.naturalWidth/Me.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&Me.naturalHeight>window.innerHeight-40&&(ve.style.height=window.innerHeight-40+"px"),ve.src=Me.src}),ve.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return X.querySelectorAll("img").forEach(function(ve){ve.getAttribute("data-src")&&ue(ve)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),X.querySelectorAll("img").forEach(function(ve){window.vditorImageIntersectionObserver.observe(ve)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(ve){ve.forEach(function(Me){(typeof Me.isIntersecting>"u"?Me.intersectionRatio!==0:Me.isIntersecting)&&Me.target.getAttribute("data-src")&&ue(Me.target)})}),X.querySelectorAll("img").forEach(function(ve){window.vditorImageIntersectionObserver.observe(ve)}))},y=l(472),m=l(280),b=l(637),w=l(825),A=l(11),S=l(194),k=l(436),M=l(229),D=l(145),P=l(538),O=l(413),_=l(106),B=l(673),N=function(X){document.querySelectorAll(".vditor-anchor").forEach(function(ue){X===1&&ue.classList.add("vditor-anchor--left"),ue.onclick=function(){var ve=ue.getAttribute("href").substr(1),Me=document.getElementById("vditorAnchor-"+ve).offsetTop;document.querySelector("html").scrollTop=Me}}),window.onhashchange=function(){var ue=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));ue&&(document.querySelector("html").scrollTop=ue.offsetTop)}},q=l(214),U=l(810),j=function(X,ue){if(ue===void 0&&(ue="zh_CN"),!(typeof speechSynthesis>"u"||typeof SpeechSynthesisUtterance>"u")){var ve=function(){var be=speechSynthesis.getVoices(),De,pe;return be.forEach(function(oe){oe.lang===ue.replace("_","-")&&(De=oe),oe.default&&(pe=oe)}),De||(De=pe),De},Me='<svg><use xlink:href="#vditor-icon-play"></use></svg>',we='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(Me='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',we='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var he=document.querySelector(".vditor-speech");he||(he=document.createElement("button"),he.className="vditor-speech",X.insertAdjacentElement("beforeend",he),speechSynthesis.onvoiceschanged!==void 0&&(speechSynthesis.onvoiceschanged=ve));var Te=ve(),Y=new SpeechSynthesisUtterance;Y.voice=Te,Y.onend=Y.onerror=function(){he.style.display="none",speechSynthesis.cancel(),he.classList.remove("vditor-speech--current"),he.innerHTML=Me},X.addEventListener(window.ontouchstart!==void 0?"touchend":"click",function(be){var De=be.target;if(De.classList.contains("vditor-speech")||De.parentElement.classList.contains("vditor-speech")){he.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),he.innerHTML=we):(speechSynthesis.pause(),he.innerHTML=Me)):(Y.text=he.getAttribute("data-text"),speechSynthesis.speak(Y),he.classList.add("vditor-speech--current"),he.innerHTML=we),(0,U.Hc)(window.vditorSpeechRange),X.focus();return}if(he.style.display="none",speechSynthesis.cancel(),he.classList.remove("vditor-speech--current"),he.innerHTML=Me,getSelection().rangeCount!==0){var pe=getSelection().getRangeAt(0),oe=pe.toString().trim();if(oe){window.vditorSpeechRange=pe.cloneRange();var ce=pe.getBoundingClientRect();he.innerHTML=Me,he.style.display="block",he.style.top=ce.top+ce.height+document.querySelector("html").scrollTop-20+"px",window.ontouchstart!==void 0?he.style.left=be.changedTouches[be.changedTouches.length-1].pageX+2+"px":he.style.left=be.clientX+2+"px",he.setAttribute("data-text",oe)}}})}},H=function(X,ue,ve,Me){function we(he){return he instanceof ve?he:new ve(function(Te){Te(he)})}return new(ve||(ve=Promise))(function(he,Te){function Y(pe){try{De(Me.next(pe))}catch(oe){Te(oe)}}function be(pe){try{De(Me.throw(pe))}catch(oe){Te(oe)}}function De(pe){pe.done?he(pe.value):we(pe.value).then(Y,be)}De((Me=Me.apply(X,ue||[])).next())})},G=function(X,ue){var ve={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},Me,we,he,Te;return Te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Y(De){return function(pe){return be([De,pe])}}function be(De){if(Me)throw new TypeError("Generator is already executing.");for(;Te&&(Te=0,De[0]&&(ve=0)),ve;)try{if(Me=1,we&&(he=De[0]&2?we.return:De[0]?we.throw||((he=we.return)&&he.call(we),0):we.next)&&!(he=he.call(we,De[1])).done)return he;switch(we=0,he&&(De=[De[0]&2,he.value]),De[0]){case 0:case 1:he=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,we=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(he=ve.trys,!(he=he.length>0&&he[he.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!he||De[1]>he[0]&&De[1]<he[3])){ve.label=De[1];break}if(De[0]===6&&ve.label<he[1]){ve.label=he[1],he=De;break}if(he&&ve.label<he[2]){ve.label=he[2],ve.ops.push(De);break}he[2]&&ve.ops.pop(),ve.trys.pop();continue}De=ue.call(X,ve)}catch(pe){De=[6,pe],we=0}finally{Me=he=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}},Z=function(X){var ue,ve={anchor:0,cdn:D.g.CDN,customEmoji:{},emojiPath:"".concat(D.g.CDN,"/dist/images/emoji"),hljs:D.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:D.g.MARKDOWN_OPTIONS,math:D.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:D.g.THEME_OPTIONS};return X.cdn&&(!((ue=X.theme)===null||ue===void 0)&&ue.path||(ve.theme.path="".concat(X.cdn,"/dist/css/content-theme")),X.emojiPath||(ve.emojiPath="".concat(X.cdn,"/dist/images/emoji"))),(0,B.T)(ve,X)},$=function(X,ue){var ve=Z(ue);return(0,O.G)("".concat(ve.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var Me=(0,q.X)({autoSpace:ve.markdown.autoSpace,gfmAutoLink:ve.markdown.gfmAutoLink,codeBlockPreview:ve.markdown.codeBlockPreview,emojiSite:ve.emojiPath,emojis:ve.customEmoji,fixTermTypo:ve.markdown.fixTermTypo,footnotes:ve.markdown.footnotes,headingAnchor:ve.anchor!==0,inlineMathDigit:ve.math.inlineDigit,lazyLoadImage:ve.lazyLoadImage,linkBase:ve.markdown.linkBase,linkPrefix:ve.markdown.linkPrefix,listStyle:ve.markdown.listStyle,mark:ve.markdown.mark,mathBlockPreview:ve.markdown.mathBlockPreview,paragraphBeginningSpace:ve.markdown.paragraphBeginningSpace,sanitize:ve.markdown.sanitize,toc:ve.markdown.toc});return ue?.renderers&&Me.SetJSRenderers({renderers:{Md2HTML:ue.renderers}}),Me.SetHeadingID(!0),Me.Md2HTML(X)})},L=function(X,ue,ve){return H(void 0,void 0,void 0,function(){var Me,we,he,Te;return G(this,function(Y){switch(Y.label){case 0:return Me=Z(ve),[4,$(ue,Me)];case 1:if(we=Y.sent(),Me.transform&&(we=Me.transform(we)),X.innerHTML=we,X.classList.add("vditor-reset"),Me.i18n)return[3,5];if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(Me.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return he="vditorI18nScript",Te=he+Me.lang,document.querySelectorAll('head script[id^="'.concat(he,'"]')).forEach(function(be){be.id!==Te&&document.head.removeChild(be)}),[4,(0,O.G)("".concat(Me.cdn,"/dist/js/i18n/").concat(Me.lang,".js"),Te)];case 3:Y.sent(),Y.label=4;case 4:return[3,6];case 5:window.VditorI18n=Me.i18n,Y.label=6;case 6:return Me.icon?[4,(0,O.G)("".concat(Me.cdn,"/dist/js/icons/").concat(Me.icon,".js"),"vditorIconScript")]:[3,8];case 7:Y.sent(),Y.label=8;case 8:return(0,P.Z)(Me.theme.current,Me.theme.path),Me.anchor===1&&X.classList.add("vditor-reset--anchor"),(0,f.O)(X,Me.hljs),(0,h.s)(Me.hljs,X,Me.cdn),(0,y.H)(X,{cdn:Me.cdn,math:Me.math}),(0,b.i)(X,Me.cdn,Me.mode),(0,w.J)(X,Me.cdn,Me.mode),(0,A.K)(X,Me.cdn),(0,p.P)(X,Me.cdn),(0,v.v)(X,Me.cdn),(0,c.p)(X,Me.cdn,Me.mode),(0,S.P)(X,Me.cdn,Me.mode),(0,M.B)(X,Me.cdn),(0,u.Q)(X,Me.cdn),Me.render.media.enable&&(0,m.Y)(X),Me.speech.enable&&j(X),Me.anchor!==0&&N(Me.anchor),Me.after&&Me.after(),Me.lazyLoadImage&&g(X),X.addEventListener("click",function(be){var De=(0,_.lG)(be.target,"SPAN");if(De&&(0,_.fb)(De,"vditor-toc")){var pe=X.querySelector("#"+De.getAttribute("data-target-id"));pe&&window.scrollTo(window.scrollX,pe.offsetTop);return}}),[2]}})})},W=l(190),ie=l(580),ee=(function(){function X(){}return X.adapterRender=d,X.previewImage=W.E,X.codeRender=f.O,X.graphvizRender=v.v,X.highlightRender=h.s,X.mathRender=y.H,X.mermaidRender=b.i,X.SMILESRender=w.J,X.markmapRender=A.K,X.flowchartRender=p.P,X.chartRender=c.p,X.abcRender=u.Q,X.mindmapRender=S.P,X.plantumlRender=M.B,X.outlineRender=k.k,X.mediaRender=m.Y,X.speechRender=j,X.lazyLoadImageRender=g,X.md2html=$,X.preview=L,X.setCodeTheme=ie.Y,X.setContentTheme=P.Z,X})();const te=ee}),145:((a,s,l)=>{l.d(s,{H:()=>u,g:()=>d});var u="3.11.2",d=(function(){function c(){}return c.ZWSP="",c.DROP_EDITOR="application/editor",c.MOBILE_WIDTH=520,c.CLASS_MENU_DISABLED="vditor-menu--disabled",c.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],c.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],c.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],c.CDN="https://unpkg.com/vditor@".concat("3.11.2"),c.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},c.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},c.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},c.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(c.CDN,"/dist/css/content-theme")},c})()}),825:((a,s,l)=>{l.d(s,{J:()=>p});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(v,h,g){v===void 0&&(v=document),h===void 0&&(h=u.g.CDN);var y=c.SMILESRenderAdapter.getElements(v);y.length>0&&(0,d.G)("".concat(h,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then(function(){var m=new SmiDrawer({},{});y.forEach(function(b){var w=c.SMILESRenderAdapter.getCode(b).trim();if(!(b.getAttribute("data-processed")==="true"||w.trim()==="")){var A="smiles"+(0,f.Wb)();b.innerHTML='<svg id="'.concat(A,'"></svg>'),m.draw(w,"#"+A,g==="dark"?"dark":void 0),b.setAttribute("data-processed","true")}})})}}),135:((a,s,l)=>{l.d(s,{Q:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var h=c.abcRenderAdapter.getElements(p);h.length>0&&(0,d.G)("".concat(v,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then(function(){h.forEach(function(g){g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre")||g.getAttribute("data-processed")!=="true"&&(ABCJS.renderAbc(g,c.abcRenderAdapter.getCode(g).trim()),g.style.overflowX="auto",g.setAttribute("data-processed","true"))})})}}),840:((a,s,l)=>{l.r(s),l.d(s,{mathRenderAdapter:()=>u,SMILESRenderAdapter:()=>d,mermaidRenderAdapter:()=>c,markmapRenderAdapter:()=>f,mindmapRenderAdapter:()=>p,chartRenderAdapter:()=>v,abcRenderAdapter:()=>h,graphvizRenderAdapter:()=>g,flowchartRenderAdapter:()=>y,plantumlRenderAdapter:()=>m});var u={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-math")}},d={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-smiles")}},c={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-mermaid")}},f={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-markmap")}},p={getCode:function(b){return b.getAttribute("data-code")},getElements:function(b){return b.querySelectorAll(".language-mindmap")}},v={getCode:function(b){return b.innerText},getElements:function(b){return b.querySelectorAll(".language-echarts")}},h={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-abc")}},g={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-graphviz")}},y={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-flowchart")}},m={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-plantuml")}}}),775:((a,s,l)=>{l.d(s,{p:()=>h});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(g,y,m,b){function w(A){return A instanceof m?A:new m(function(S){S(A)})}return new(m||(m=Promise))(function(A,S){function k(P){try{D(b.next(P))}catch(O){S(O)}}function M(P){try{D(b.throw(P))}catch(O){S(O)}}function D(P){P.done?A(P.value):w(P.value).then(k,M)}D((b=b.apply(g,y||[])).next())})},v=function(g,y){var m={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},b,w,A,S;return S={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function k(D){return function(P){return M([D,P])}}function M(D){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,D[0]&&(m=0)),m;)try{if(b=1,w&&(A=D[0]&2?w.return:D[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,D[1])).done)return A;switch(w=0,A&&(D=[D[0]&2,A.value]),D[0]){case 0:case 1:A=D;break;case 4:return m.label++,{value:D[1],done:!1};case 5:m.label++,w=D[1],D=[0];continue;case 7:D=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(D[0]===6||D[0]===2)){m=0;continue}if(D[0]===3&&(!A||D[1]>A[0]&&D[1]<A[3])){m.label=D[1];break}if(D[0]===6&&m.label<A[1]){m.label=A[1],A=D;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(D);break}A[2]&&m.ops.pop(),m.trys.pop();continue}D=y.call(g,m)}catch(P){D=[6,P],w=0}finally{b=A=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}},h=function(g,y,m){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var b=c.chartRenderAdapter.getElements(g);b.length>0&&(0,d.G)("".concat(y,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){b.forEach(function(w){return p(void 0,void 0,void 0,function(){var A,S,k;return v(this,function(M){switch(M.label){case 0:if(w.parentElement.classList.contains("vditor-wysiwyg__pre")||w.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(A=c.chartRenderAdapter.getCode(w).trim(),!A)return[2];M.label=1;case 1:return M.trys.push([1,3,,4]),w.getAttribute("data-processed")==="true"?[2]:[4,(0,f.Qf)(A)];case 2:return S=M.sent(),echarts.init(w,m==="dark"?"dark":void 0).setOption(S),w.setAttribute("data-processed","true"),[3,4];case 3:return k=M.sent(),w.className="vditor-reset--error",w.innerHTML="echarts render error: <br>".concat(k),[3,4];case 4:return[2]}})})})})}}),428:((a,s,l)=>{l.d(s,{O:()=>c});var u=l(105),d=l(145),c=function(f,p){Array.from(f.querySelectorAll("pre > code")).filter(function(v,h){return!(v.parentElement.classList.contains("vditor-wysiwyg__pre")||v.parentElement.classList.contains("vditor-ir__marker--pre")||v.classList.contains("language-mermaid")||v.classList.contains("language-flowchart")||v.classList.contains("language-echarts")||v.classList.contains("language-mindmap")||v.classList.contains("language-plantuml")||v.classList.contains("language-markmap")||v.classList.contains("language-abc")||v.classList.contains("language-graphviz")||v.classList.contains("language-math")||v.classList.contains("language-smiles")||v.style.maxHeight.indexOf("px")>-1||f.classList.contains("vditor-preview")&&h>5)}).forEach(function(v){var h,g,y,m=v.innerText;if(v.classList.contains("highlight-chroma")){var b=v.cloneNode(!0);b.querySelectorAll(".highlight-ln").forEach(function(k){k.remove()}),m=b.innerText}else m.endsWith(`
- `)&&(m=m.substr(0,m.length-1));var w='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(w='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var A=document.createElement("div");A.className="vditor-copy",A.innerHTML='<span aria-label="'.concat(((h=window.VditorI18n)===null||h===void 0?void 0:h.copy)||"复制",`"
- onmouseover="this.setAttribute('aria-label', '`).concat(((g=window.VditorI18n)===null||g===void 0?void 0:g.copy)||"复制",`')"
- class="vditor-tooltipped vditor-tooltipped__w"
- onclick="event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '`).concat(((y=window.VditorI18n)===null||y===void 0?void 0:y.copied)||"已复制",`');this.previousElementSibling.blur()">`).concat(w,"</span>");var S=document.createElement("textarea");S.value=(0,u.X)(m),A.insertAdjacentElement("afterbegin",S),p&&p.renderMenu&&p.renderMenu(v,A),v.before(A),v.style.maxHeight=window.outerHeight-40+"px",v.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(d.g.ZWSP,"</span>"))})}}),325:((a,s,l)=>{l.d(s,{P:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){v===void 0&&(v=u.g.CDN);var h=c.flowchartRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then(function(){h.forEach(function(g){if(g.getAttribute("data-processed")!=="true"){var y=flowchart.parse(c.flowchartRenderAdapter.getCode(g));g.innerHTML="",y.drawSVG(g),g.setAttribute("data-processed","true")}})})}}),483:((a,s,l)=>{l.d(s,{v:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){v===void 0&&(v=u.g.CDN);var h=c.graphvizRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then(function(){h.forEach(function(g){var y=c.graphvizRenderAdapter.getCode(g);if(!(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))&&!(g.getAttribute("data-processed")==="true"||y.trim()==="")){try{var m=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),b=window.URL||window.webkitURL,w=b.createObjectURL(m),A=new Worker(w);new Viz({worker:A}).renderSVGElement(y).then(function(S){g.innerHTML=S.outerHTML}).catch(function(S){g.innerHTML="graphviz render error: <br>".concat(S),g.className="vditor-reset--error"})}catch(S){console.error("graphviz error",S)}g.setAttribute("data-processed","true")}})})}}),999:((a,s,l)=>{l.d(s,{s:()=>f});var u=l(145),d=l(413),c=l(290),f=function(p,v,h){v===void 0&&(v=document),h===void 0&&(h=u.g.CDN);var g=p.style;u.g.CODE_THEME.includes(g)||(g="github");var y=document.getElementById("vditorHljsStyle"),m="".concat(h,"/dist/js/highlight.js/styles/").concat(g,".min.css");if(y&&y.getAttribute("href")!==m&&y.remove(),(0,c.c)("".concat(h,"/dist/js/highlight.js/styles/").concat(g,".min.css"),"vditorHljsStyle"),p.enable!==!1){var b=v.querySelectorAll("pre > code");b.length!==0&&(0,d.G)("".concat(h,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then(function(){(0,d.G)("".concat(h,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then(function(){v.querySelectorAll("pre > code").forEach(function(w){if(!(w.parentElement.classList.contains("vditor-ir__marker--pre")||w.parentElement.classList.contains("vditor-wysiwyg__pre"))&&!(w.classList.contains("language-mermaid")||w.classList.contains("language-flowchart")||w.classList.contains("language-echarts")||w.classList.contains("language-mindmap")||w.classList.contains("language-plantuml")||w.classList.contains("language-smiles")||w.classList.contains("language-abc")||w.classList.contains("language-graphviz")||w.classList.contains("language-math"))){p.defaultLang!==""&&w.className.indexOf("language-")===-1&&w.classList.add("language-"+p.defaultLang);var A=w.className.replace("language-","");if(window.hljs.getLanguage(A)||(A="plaintext"),w.innerHTML=window.hljs.highlight(w.textContent,{language:A,ignoreIllegals:!0}).value,w.classList.add("hljs"),!!p.lineNumber){w.classList.add("vditor-linenumber");var S=w.querySelector(".vditor-linenumber__temp");S||(S=document.createElement("div"),S.className="vditor-linenumber__temp",w.insertAdjacentElement("beforeend",S));var k=getComputedStyle(w).whiteSpace,M=!1;(k==="pre-wrap"||k==="pre-line")&&(M=!0);var D="",P=w.textContent.split(/\r\n|\r|\n/g);P.pop(),P.map(function(O){var _="";M&&(S.textContent=O||`
- `,_=' style="height:'.concat(S.getBoundingClientRect().height,'px"')),D+="<span".concat(_,"></span>")}),S.style.display="none",D='<span class="vditor-linenumber__rows">'.concat(D,"</span>"),w.insertAdjacentHTML("beforeend",D)}}})})})}}}),11:((a,s,l)=>{l.d(s,{K:()=>h});var u=l(145),d=l(413),c=l(840),f={},p=function(g,y){var m=g.transform(y),b=Object.keys(m.features).filter(function(M){return!f[M]});b.forEach(function(M){f[M]=!0});var w=g.getAssets(b),A=w.styles,S=w.scripts,k=window.markmap;return A&&k.loadCSS(A),S&&k.loadJS(S),m},v=function(g,y){var m=window.markmap,b=m.Transformer,w=m.Markmap,A=m.deriveOptions;m.globalCSS;var S=new b;g.innerHTML='<svg style="width:100%"></svg>';var k=g.firstChild,M=w.create(k,null),D=p(S,y),P=D.root,O=D.frontmatter,_=O?.markmap,B=A(_);M.setData(P,B),M.fit()},h=function(g,y){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var m=c.markmapRenderAdapter.getElements(g);m.length!==0&&(0,d.G)("".concat(y,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then(function(){m.forEach(function(b){var w=c.markmapRenderAdapter.getCode(b);if(!(b.getAttribute("data-processed")==="true"||w.trim()==="")){var A=document.createElement("div");A.className="language-markmap",b.parentNode.appendChild(A),v(A,w),b.parentNode.childNodes[0].nodeName=="CODE"&&b.parentNode.removeChild(b.parentNode.childNodes[0])}})})}}),472:((a,s,l)=>{l.d(s,{H:()=>v});var u=l(145),d=l(413),c=l(290),f=l(105),p=l(840),v=function(h,g){h===void 0&&(h=document);var y=p.mathRenderAdapter.getElements(h);if(y.length!==0){var m={cdn:u.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(g&&g.math&&(g.math=Object.assign({},m.math,g.math)),g=Object.assign({},m,g),g.math.engine==="KaTeX")(0,c.c)("".concat(g.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,d.G)("".concat(g.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then(function(){(0,d.G)("".concat(g.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then(function(){y.forEach(function(A){if(!(A.parentElement.classList.contains("vditor-wysiwyg__pre")||A.parentElement.classList.contains("vditor-ir__marker--pre"))&&!A.getAttribute("data-math")){var S=(0,f.X)(p.mathRenderAdapter.getCode(A));A.setAttribute("data-math",S);try{A.innerHTML=katex.renderToString(S,{displayMode:A.tagName==="DIV",output:"html",macros:g.math.macros})}catch(k){A.innerHTML=k.message,A.className="language-math vditor-reset--error"}A.addEventListener("copy",function(k){k.stopPropagation(),k.preventDefault();var M=k.currentTarget.closest(".language-math");k.clipboardData.setData("text/html",M.innerHTML),k.clipboardData.setData("text/plain",M.getAttribute("data-math"))})}})})});else if(g.math.engine==="MathJax"){var b=function(A){if(A.length!==0){var S=0,k=A[A.length-1],M=function(){var D=A[S++];D===k?D():D(M)};M()}};window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(g.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:g.math.macros}},Object.assign(window.MathJax,g.math.mathJaxOptions)),(0,d.J)("".concat(g.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var w=function(A,S){var k=(0,f.X)(A.textContent).trim(),M=window.MathJax.getMetricsFor(A);M.display=A.tagName==="DIV",window.MathJax.tex2svgPromise(k,M).then(function(D){A.innerHTML="",A.setAttribute("data-math",k),A.append(D),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var P=D.querySelector('[data-mml-node="merror"]');P&&P.textContent.trim()!==""&&(A.innerHTML=P.textContent.trim(),A.className="vditor-reset--error"),S&&S()})};window.MathJax.startup.promise.then(function(){for(var A=[],S=function(M){var D=y[M];!D.parentElement.classList.contains("vditor-wysiwyg__pre")&&!D.parentElement.classList.contains("vditor-ir__marker--pre")&&!D.getAttribute("data-math")&&(0,f.X)(D.textContent).trim()&&A.push(function(P){M===y.length-1?w(D):w(D,P)})},k=0;k<y.length;k++)S(k);b(A)})}}}}),280:((a,s,l)=>{l.d(s,{Y:()=>p});var u=l(494),d=function(v,h){v.insertAdjacentHTML("afterend",'<video controls="controls" src="'.concat(h,'"></video>')),v.remove()},c=function(v,h){v.insertAdjacentHTML("afterend",'<audio controls="controls" src="'.concat(h,'"></audio>')),v.remove()},f=function(v,h){var g=h.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),y=h.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),m=h.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),b=h.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),w=h.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),A=h.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),S=h.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),k=h.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(g&&g[1].length===11)v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//www.youtube.com/embed/'.concat(g[1]+(g[2]?"?start="+g[2]:""),'"></iframe>')),v.remove();else if(y&&y[1])v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//player.youku.com/embed/'.concat(y[1],'"></iframe>')),v.remove();else if(m&&m[1])v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="https://v.qq.com/txp/iframe/player.html?vid='.concat(m[1],'"></iframe>')),v.remove();else if(b&&b[1])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="//coub.com/embed/`.concat(b[1],'?muted=false&autostart=false&originalSize=true&startWithHD=true"></iframe>')),v.remove();else if(w&&w[0])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="https://www.facebook.com/plugins/video.php?href=`.concat(encodeURIComponent(w[0]),'"></iframe>')),v.remove();else if(A&&A[2])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="https://www.dailymotion.com/embed/video/`.concat(A[2],'"></iframe>')),v.remove();else if(h.indexOf("bilibili.com")>-1&&(h.indexOf("bvid=")>-1||S&&S[1])){var M={bvid:(0,u.on)("bvid",h)||S&&S[1],page:"1",high_quality:"1",as_wide:"1",allowfullscreen:"true",autoplay:"0"};new URL(h.startsWith("http")?h:"https:"+h).search.split("&").forEach(function(O,_){if(O){_===0&&(O=O.substr(1));var B=O.split("=");M[B[0]]=B[1]}});var D="https://player.bilibili.com/player.html?",P=Object.keys(M);P.forEach(function(O,_){D+="".concat(O,"=").concat(M[O]),_<P.length-1&&(D+="&")}),v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'.concat(D,'"></iframe>')),v.remove()}else k&&k[1]&&(v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//embed.ted.com/talks/'.concat(k[1],'"></iframe>')),v.remove())},p=function(v){v&&v.querySelectorAll("a").forEach(function(h){var g=h.getAttribute("href");g&&(g.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?d(h,g):g.match(/^.+.(mp3|wav|flac)$/)?c(h,g):f(h,g))})}}),637:((a,s,l)=>{l.d(s,{i:()=>h});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(g,y,m,b){function w(A){return A instanceof m?A:new m(function(S){S(A)})}return new(m||(m=Promise))(function(A,S){function k(P){try{D(b.next(P))}catch(O){S(O)}}function M(P){try{D(b.throw(P))}catch(O){S(O)}}function D(P){P.done?A(P.value):w(P.value).then(k,M)}D((b=b.apply(g,y||[])).next())})},v=function(g,y){var m={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},b,w,A,S;return S={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function k(D){return function(P){return M([D,P])}}function M(D){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,D[0]&&(m=0)),m;)try{if(b=1,w&&(A=D[0]&2?w.return:D[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,D[1])).done)return A;switch(w=0,A&&(D=[D[0]&2,A.value]),D[0]){case 0:case 1:A=D;break;case 4:return m.label++,{value:D[1],done:!1};case 5:m.label++,w=D[1],D=[0];continue;case 7:D=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(D[0]===6||D[0]===2)){m=0;continue}if(D[0]===3&&(!A||D[1]>A[0]&&D[1]<A[3])){m.label=D[1];break}if(D[0]===6&&m.label<A[1]){m.label=A[1],A=D;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(D);break}A[2]&&m.ops.pop(),m.trys.pop();continue}D=y.call(g,m)}catch(P){D=[6,P],w=0}finally{b=A=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}},h=function(g,y,m){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var b=c.mermaidRenderAdapter.getElements(g);b.length!==0&&(0,d.G)("".concat(y,"/dist/js/mermaid/mermaid.min.js?v=11.6.0"),"vditorMermaidScript").then(function(){var w={securityLevel:"loose",altFontFamily:"sans-serif",fontFamily:"sans-serif",startOnLoad:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequence:{useMaxWidth:!0,diagramMarginX:8,diagramMarginY:8,boxMargin:8,showSequenceNumbers:!0},gantt:{leftPadding:75,rightPadding:20}};m==="dark"&&(w.theme="dark"),mermaid.initialize(w),b.forEach(function(A){return p(void 0,void 0,void 0,function(){var S,k,M,D,P;return v(this,function(O){switch(O.label){case 0:if(S=c.mermaidRenderAdapter.getCode(A),A.getAttribute("data-processed")==="true"||S.trim()==="")return[2];k="mermaid"+(0,f.Wb)(),O.label=1;case 1:return O.trys.push([1,3,,4]),[4,mermaid.render(k,A.textContent)];case 2:return M=O.sent(),A.innerHTML=M.svg,[3,4];case 3:return D=O.sent(),P=document.querySelector("#"+k),A.innerHTML="".concat(P.outerHTML,`<br>
- <div style="text-align: left"><small>`).concat(D.message.replace(/\n/,"<br>"),"</small></div>"),P.parentElement.remove(),[3,4];case 4:return A.setAttribute("data-processed","true"),[2]}})})})})}}),194:((a,s,l)=>{l.d(s,{P:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v,h){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var g=c.mindmapRenderAdapter.getElements(p);g.length>0&&(0,d.G)("".concat(v,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){g.forEach(function(y){if(!(y.parentElement.classList.contains("vditor-wysiwyg__pre")||y.parentElement.classList.contains("vditor-ir__marker--pre"))){var m=c.mindmapRenderAdapter.getCode(y);if(m)try{if(y.getAttribute("data-processed")==="true")return;echarts.init(y,h==="dark"?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(m))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(b,w){var A;return!((A=w?.data)===null||A===void 0)&&A.children?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),y.setAttribute("data-processed","true")}catch(b){y.className="vditor-reset--error",y.innerHTML="mindmap render error: <br>".concat(b)}}})})}}),436:((a,s,l)=>{l.d(s,{k:()=>c});var u=l(771),d=l(472),c=function(f,p,v){var h="",g=[];if(Array.from(f.children).forEach(function(w,A){if((0,u.W)(w)){if(v){var S=w.id.lastIndexOf("_");w.id=w.id.substring(0,S===-1?void 0:S)+"_"+A}g.push(w.id),h+=w.outerHTML.replace("<wbr>","")}}),h==="")return p.innerHTML="","";var y=document.createElement("div");if(v)v.lute.SetToC(!0),v.currentMode==="wysiwyg"&&!v.preview.element.contains(f)?y.innerHTML=v.lute.SpinVditorDOM("<p>[ToC]</p>"+h):v.currentMode==="ir"&&!v.preview.element.contains(f)?y.innerHTML=v.lute.SpinVditorIRDOM("<p>[ToC]</p>"+h):y.innerHTML=v.lute.HTML2VditorDOM("<p>[ToC]</p>"+h),v.lute.SetToC(v.options.preview.markdown.toc);else{p.classList.add("vditor-outline");var m=Lute.New();m.SetToC(!0),y.innerHTML=m.HTML2VditorDOM("<p>[ToC]</p>"+h)}var b=y.firstElementChild.querySelectorAll("li > span[data-target-id]");return b.forEach(function(w,A){if(w.nextElementSibling&&w.nextElementSibling.tagName==="UL"){var S="<svg class='vditor-outline__action'><use xlink:href='#vditor-icon-down'></use></svg>";document.getElementById("vditorIconScript")||(S='<svg class="vditor-outline__action" viewBox="0 0 32 32"><path d="M3.76 6.12l12.24 12.213 12.24-12.213 3.76 3.76-16 16-16-16 3.76-3.76z"></path></svg>'),w.innerHTML="".concat(S,"<span>").concat(w.innerHTML,"</span>")}else w.innerHTML="<svg></svg><span>".concat(w.innerHTML,"</span>");w.setAttribute("data-target-id",g[A])}),h=y.firstElementChild.innerHTML,b.length===0?(p.innerHTML="",h):(p.innerHTML=h,v&&(0,d.H)(p,{cdn:v.options.cdn,math:v.options.preview.math}),p.firstElementChild.addEventListener("click",function(w){for(var A=w.target;A&&!A.isEqualNode(p);){if(A.classList.contains("vditor-outline__action")){A.classList.contains("vditor-outline__action--close")?(A.classList.remove("vditor-outline__action--close"),A.parentElement.nextElementSibling.setAttribute("style","display:block")):(A.classList.add("vditor-outline__action--close"),A.parentElement.nextElementSibling.setAttribute("style","display:none")),w.preventDefault(),w.stopPropagation();break}else if(A.getAttribute("data-target-id")){w.preventDefault(),w.stopPropagation();var S=document.getElementById(A.getAttribute("data-target-id"));if(!S)return;if(v)if(v.options.height==="auto"){var k=S.offsetTop+v.element.offsetTop;v.options.toolbarConfig.pin||(k+=v.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,k)}else v.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,v.element.offsetTop),v.preview.element.contains(f)?f.parentElement.scrollTop=S.offsetTop:f.scrollTop=S.offsetTop;else window.scrollTo(window.scrollX,S.offsetTop);break}A=A.parentElement}}),h)}}),229:((a,s,l)=>{l.d(s,{B:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var h=c.plantumlRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/plantuml/plantuml-encoder.min.js"),"vditorPlantumlScript").then(function(){h.forEach(function(g){if(!(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))){var y=c.plantumlRenderAdapter.getCode(g).trim();if(y)try{g.innerHTML='<object type="image/svg+xml" data="https://www.plantuml.com/plantuml/svg/~1'.concat(plantumlEncoder.encode(y),'"/>')}catch(m){g.className="vditor-reset--error",g.innerHTML="plantuml render error: <br>".concat(m)}}})})}}),214:((a,s,l)=>{l.d(s,{X:()=>u});var u=function(d){var c=Lute.New();return c.PutEmojis(d.emojis),c.SetEmojiSite(d.emojiSite),c.SetHeadingAnchor(d.headingAnchor),c.SetInlineMathAllowDigitAfterOpenMarker(d.inlineMathDigit),c.SetAutoSpace(d.autoSpace),c.SetToC(d.toc),c.SetFootnotes(d.footnotes),c.SetFixTermTypo(d.fixTermTypo),c.SetVditorCodeBlockPreview(d.codeBlockPreview),c.SetVditorMathBlockPreview(d.mathBlockPreview),c.SetSanitize(d.sanitize),c.SetChineseParagraphBeginningSpace(d.paragraphBeginningSpace),c.SetRenderListStyle(d.listStyle),c.SetLinkBase(d.linkBase),c.SetLinkPrefix(d.linkPrefix),c.SetMark(d.mark),c.SetGFMAutoLink(d.gfmAutoLink),d.lazyLoadImage&&c.SetImageLazyLoading(d.lazyLoadImage),c}}),190:((a,s,l)=>{l.d(s,{E:()=>u});var u=function(d,c,f){f===void 0&&(f="classic");var p=d.getBoundingClientRect(),v=36;document.body.insertAdjacentHTML("beforeend",'<div class="vditor vditor-img'.concat(f==="dark"?" vditor--dark":"",`">
- <div class="vditor-img__bar">
- <span class="vditor-img__btn" data-deg="0">
- <svg><use xlink:href="#vditor-icon-redo"></use></svg>
- `).concat(window.VditorI18n.spin,`
- </span>
- <span class="vditor-img__btn" onclick="this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''">
- X `).concat(window.VditorI18n.close,`
- </span>
- </div>
- <div class="vditor-img__img" onclick="this.parentElement.outerHTML = '';document.body.style.overflow = ''">
- <img style="width: `).concat(d.width,"px;height:").concat(d.height,"px;transform: translate3d(").concat(p.left,"px, ").concat(p.top-v,'px, 0)" src="').concat(d.getAttribute("src"),`">
- </div>
- </div>`)),document.body.style.overflow="hidden";var h=document.querySelector(".vditor-img img"),g="translate3d(".concat(Math.max(0,window.innerWidth-d.naturalWidth)/2,"px, ").concat(Math.max(0,window.innerHeight-v-d.naturalHeight)/2,"px, 0)");setTimeout(function(){h.setAttribute("style","transition: transform .3s ease-in-out;transform: ".concat(g)),setTimeout(function(){h.parentElement.scrollTo((h.parentElement.scrollWidth-h.parentElement.clientWidth)/2,(h.parentElement.scrollHeight-h.parentElement.clientHeight)/2)},400)});var y=document.querySelector(".vditor-img__btn");y.addEventListener("click",function(){var m=parseInt(y.getAttribute("data-deg"),10)+90;m/90%2===1&&d.naturalWidth>h.parentElement.clientHeight?h.style.transform="translate3d(".concat(Math.max(0,window.innerWidth-d.naturalWidth)/2,"px, ").concat(d.naturalWidth/2-d.naturalHeight/2,"px, 0) rotateZ(").concat(m,"deg)"):h.style.transform="".concat(g," rotateZ(").concat(m,"deg)"),y.setAttribute("data-deg",m.toString()),setTimeout(function(){h.parentElement.scrollTo((h.parentElement.scrollWidth-h.parentElement.clientWidth)/2,(h.parentElement.scrollHeight-h.parentElement.clientHeight)/2)},400)})}}),580:((a,s,l)=>{l.d(s,{Y:()=>c});var u=l(145),d=l(290),c=function(f,p){p===void 0&&(p=u.g.CDN),u.g.CODE_THEME.includes(f)||(f="github");var v=document.getElementById("vditorHljsStyle"),h="".concat(p,"/dist/js/highlight.js/styles/").concat(f,".min.css");v?v.getAttribute("href")!==h&&(v.remove(),(0,d.c)(h,"vditorHljsStyle")):(0,d.c)(h,"vditorHljsStyle")}}),538:((a,s,l)=>{l.d(s,{Z:()=>d});var u=l(290),d=function(c,f){if(!(!c||!f)){var p=document.getElementById("vditorContentTheme"),v="".concat(f,"/").concat(c,".css");p?p.getAttribute("href")!==v&&(p.remove(),(0,u.c)(v,"vditorContentTheme")):(0,u.c)(v,"vditorContentTheme")}}}),413:((a,s,l)=>{l.d(s,{J:()=>u,G:()=>d});var u=function(c,f){if(document.getElementById(f))return!1;var p=new XMLHttpRequest;p.open("GET",c,!1),p.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),p.send("");var v=document.createElement("script");v.type="text/javascript",v.text=p.responseText,v.id=f,document.head.appendChild(v)},d=function(c,f){return new Promise(function(p,v){if(document.getElementById(f))return p(!0),!1;var h=document.createElement("script");h.src=c,h.async=!0,document.head.appendChild(h),h.onerror=function(g){v(g)},h.onload=function(){if(document.getElementById(f))return h.remove(),p(!0),!1;h.id=f,p(!0)}})}}),290:((a,s,l)=>{l.d(s,{c:()=>u});var u=function(d,c){if(!document.getElementById(c)){var f=document.createElement("link");f.id=c,f.rel="stylesheet",f.type="text/css",f.href=d,document.getElementsByTagName("head")[0].appendChild(f)}}}),105:((a,s,l)=>{l.d(s,{X:()=>u});var u=function(d){return d.replace(/\u00a0/g," ")}}),410:((a,s,l)=>{l.d(s,{G6:()=>u,vU:()=>d,pK:()=>c,Le:()=>f,yl:()=>p,ns:()=>v,i7:()=>h});var u=function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1},d=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},c=function(){try{return typeof localStorage<"u"}catch{return!1}},f=function(){return navigator.userAgent.indexOf("iPhone")>-1?"touchstart":"click"},p=function(g){return navigator.platform.toUpperCase().indexOf("MAC")>=0?!!(g.metaKey&&!g.ctrlKey):!!(!g.metaKey&&g.ctrlKey)},v=function(g){return/Mac/.test(navigator.platform)||navigator.platform==="iPhone"?g.indexOf("⇧")>-1&&d()&&(g=g.replace(";",":").replace("=","+").replace("-","_")):(g.startsWith("⌘")?g=g.replace("⌘","⌘+"):g.startsWith("⌥")&&g.substr(1,1)!=="⌘"?g=g.replace("⌥","⌥+"):g=g.replace("⇧⌘","⌘+⇧+").replace("⌥⌘","⌥+⌘+"),g=g.replace("⌘","Ctrl").replace("⇧","Shift").replace("⌥","Alt"),g.indexOf("Shift")>-1&&(g=g.replace(";",":").replace("=","+").replace("-","_"))),g},h=function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}}),494:((a,s,l)=>{l.d(s,{Wb:()=>u,on:()=>d,Qf:()=>c});var u=function(){return([1e7].toString()+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(f){return(parseInt(f,10)^window.crypto.getRandomValues(new Uint32Array(1))[0]&15>>parseInt(f,10)/4).toString(16)})},d=function(f,p){p===void 0&&(p=window.location.search);var v=p.substring(p.indexOf("?")),h=v.indexOf("#"),g=new URLSearchParams(v.substring(0,h>=0?h:void 0));return g.get(f)},c=function(f){return Function('"use strict";return ('.concat(f,")"))()}}),106:((a,s,l)=>{l.d(s,{JQ:()=>d,E2:()=>c,O9:()=>f,a1:()=>p,F9:()=>v,lG:()=>h,fb:()=>g,DX:()=>y});var u=l(771),d=function(m,b){for(var w=g(m,b),A=!1,S=!1;w&&!w.classList.contains("vditor-reset")&&!S;)A=g(w.parentElement,b),A?w=A:S=!0;return w||!1},c=function(m,b){for(var w=(0,u.S)(m,b),A=!1,S=!1;w&&!w.classList.contains("vditor-reset")&&!S;)A=(0,u.S)(w.parentElement,b),A?w=A:S=!0;return w||!1},f=function(m){var b=c(m,"UL"),w=c(m,"OL"),A=b;return w&&(!b||b&&w.contains(b))&&(A=w),A},p=function(m,b,w){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var A=m,S=!1;A&&!S&&!A.classList.contains("vditor-reset");)A.getAttribute(b)===w?S=!0:A=A.parentElement;return S&&A},v=function(m){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);var b=m,w=!1,A=p(m,"data-block","0");if(A)return A;for(;b&&!w&&!b.classList.contains("vditor-reset");)b.tagName==="H1"||b.tagName==="H2"||b.tagName==="H3"||b.tagName==="H4"||b.tagName==="H5"||b.tagName==="H6"||b.tagName==="P"||b.tagName==="BLOCKQUOTE"||b.tagName==="OL"||b.tagName==="UL"?w=!0:b=b.parentElement;return w&&b},h=function(m,b){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var w=m,A=!1;w&&!A&&!w.classList.contains("vditor-reset");)w.nodeName===b?A=!0:w=w.parentElement;return A&&w},g=function(m,b){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var w=m,A=!1;w&&!A&&!w.classList.contains("vditor-reset");)w.classList.contains(b)?A=!0:w=w.parentElement;return A&&w},y=function(m){for(;m&&m.lastChild;)m=m.lastChild;return m}}),771:((a,s,l)=>{l.d(s,{S:()=>u,W:()=>d});var u=function(c,f){if(!c)return!1;c.nodeType===3&&(c=c.parentElement);for(var p=c,v=!1;p&&!v&&!p.classList.contains("vditor-reset");)p.nodeName.indexOf(f)===0?v=!0:p=p.parentElement;return v&&p},d=function(c){var f=u(c,"H");return f&&f.tagName.length===2&&f.tagName!=="HR"?f:!1}}),673:((a,s,l)=>{l.d(s,{T:()=>u});var u=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];for(var f={},p=function(h){for(var g in h)h.hasOwnProperty(g)&&(Object.prototype.toString.call(h[g])==="[object Object]"?f[g]=u(f[g],h[g]):f[g]=h[g])},v=0;v<d.length;v++)p(d[v]);return f}}),810:((a,s,l)=>{l.d(s,{zh:()=>f,Ny:()=>p,Gb:()=>v,Hc:()=>h,im:()=>g,$j:()=>y,ib:()=>m,oC:()=>b});var u=l(145),d=l(410),c=l(106),f=function(w){var A,S=w[w.currentMode].element;return getSelection().rangeCount>0&&(A=getSelection().getRangeAt(0),S.isEqualNode(A.startContainer)||S.contains(A.startContainer))?A:w[w.currentMode].range?w[w.currentMode].range:(S.focus(),A=S.ownerDocument.createRange(),A.setStart(S,0),A.collapse(!0),A)},p=function(w){var A=window.getSelection().getRangeAt(0);if(!w.contains(A.startContainer)&&!(0,c.fb)(A.startContainer,"vditor-panel--none"))return{left:0,top:0};var S=w.parentElement.getBoundingClientRect(),k;if(A.getClientRects().length===0)if(A.startContainer.nodeType===3){var M=A.startContainer.parentElement;if(M&&M.getClientRects().length>0)k=M.getClientRects()[0];else return{left:0,top:0}}else{var D=A.startContainer.children;if(D[A.startOffset]&&D[A.startOffset].getClientRects().length>0)k=D[A.startOffset].getClientRects()[0];else if(A.startContainer.childNodes.length>0){var P=A.cloneRange();A.selectNode(A.startContainer.childNodes[Math.max(0,A.startOffset-1)]),k=A.getClientRects()[0],A.setEnd(P.endContainer,P.endOffset),A.setStart(P.startContainer,P.startOffset)}else k=A.startContainer.getClientRects()[0];if(!k){for(var O=A.startContainer.childNodes[A.startOffset];!O.getClientRects||O.getClientRects&&O.getClientRects().length===0;)O=O.parentElement;k=O.getClientRects()[0]}}else k=A.getClientRects()[0];return{left:k.left-S.left,top:k.top-S.top}},v=function(w,A){if(!A){if(getSelection().rangeCount===0)return!1;A=getSelection().getRangeAt(0)}var S=A.commonAncestorContainer;return w.isEqualNode(S)||w.contains(S)},h=function(w){var A=window.getSelection();A.removeAllRanges(),A.addRange(w)},g=function(w,A,S){var k={end:0,start:0};if(!S){if(getSelection().rangeCount===0)return k;S=window.getSelection().getRangeAt(0)}if(v(A,S)){var M=S.cloneRange();w.childNodes[0]&&w.childNodes[0].childNodes[0]?M.setStart(w.childNodes[0].childNodes[0],0):M.selectNodeContents(w),M.setEnd(S.startContainer,S.startOffset),k.start=M.toString().length,k.end=k.start+S.toString().length}return k},y=function(w,A,S){var k=0,M=0,D=S.childNodes[M],P=!1,O=!1;w=Math.max(0,w),A=Math.max(0,A);var _=S.ownerDocument.createRange();for(_.setStart(D||S,0),_.collapse(!0);!O&&D;){var B=k+D.textContent.length;if(!P&&w>=k&&w<=B&&(w===0?_.setStart(D,0):D.childNodes[0].nodeType===3?_.setStart(D.childNodes[0],w-k):D.nextSibling?_.setStartBefore(D.nextSibling):_.setStartAfter(D),P=!0,w===A)){O=!0;break}P&&A>=k&&A<=B&&(A===0?_.setEnd(D,0):D.childNodes[0].nodeType===3?_.setEnd(D.childNodes[0],A-k):D.nextSibling?_.setEndBefore(D.nextSibling):_.setEndAfter(D),O=!0),k=B,D=S.childNodes[++M]}return!O&&S.childNodes[M-1]&&_.setStartBefore(S.childNodes[M-1]),h(_),_},m=function(w,A){var S=w.querySelector("wbr");if(S){if(!S.previousElementSibling)S.previousSibling?A.setStart(S.previousSibling,S.previousSibling.textContent.length):S.nextSibling?S.nextSibling.nodeType===3?A.setStart(S.nextSibling,0):A.setStartBefore(S.nextSibling):A.setStart(S.parentElement,0);else if(S.previousElementSibling.isSameNode(S.previousSibling))if(S.previousElementSibling.lastChild){A.setStartBefore(S),A.collapse(!0),h(A),(0,d.i7)()&&(S.previousElementSibling.tagName==="EM"||S.previousElementSibling.tagName==="STRONG"||S.previousElementSibling.tagName==="S")&&(A.insertNode(document.createTextNode(u.g.ZWSP)),A.collapse(!1)),S.remove();return}else A.setStartAfter(S.previousElementSibling);else A.setStart(S.previousSibling,S.previousSibling.textContent.length);A.collapse(!0),S.remove(),h(A)}},b=function(w,A){var S=document.createElement("div");S.innerHTML=w;var k=S.querySelectorAll("p");k.length===1&&!k[0].previousSibling&&!k[0].nextSibling&&A[A.currentMode].element.children.length>0&&S.firstElementChild.tagName==="P"&&(w=k[0].innerHTML.trim());var M=document.createElement("div");M.innerHTML=w;var D=f(A);if(D.toString()!==""&&(A[A.currentMode].preventInput=!0,document.execCommand("delete",!1,"")),M.firstElementChild&&M.firstElementChild.getAttribute("data-block")==="0"){M.lastElementChild.insertAdjacentHTML("beforeend","<wbr>");var P=(0,c.F9)(D.startContainer);if(!P)A[A.currentMode].element.insertAdjacentHTML("beforeend",M.innerHTML);else{var O=(0,c.lG)(D.startContainer,"LI");O&&M.firstElementChild.tagName==="UL"?O.insertAdjacentHTML("afterend",M.firstElementChild.innerHTML):P.insertAdjacentHTML("afterend",M.innerHTML)}m(A[A.currentMode].element,D)}else{var _=document.createElement("template");_.innerHTML=w,D.insertNode(_.content.cloneNode(!0)),D.collapse(!1),h(D)}}})},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}o.d=(a,s)=>{for(var l in s)o.o(s,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:s[l]})},o.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var i={};return(()=>{o.d(i,{default:()=>Se});var a=o(408),s=o(145),l=o(105),u=function(E){return E.currentMode==="sv"?(0,l.X)("".concat(E.sv.element.textContent,`
- `).replace(/\n\n$/,`
- `)):E.currentMode==="wysiwyg"?E.lute.VditorDOM2Md(E.wysiwyg.element.innerHTML):E.currentMode==="ir"?E.lute.VditorIRDOM2Md(E.ir.element.innerHTML):""},d=o(413),c=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-devtools",this.element.innerHTML='<div class="vditor-reset--error"></div><div style="height: 100%;"></div>'}return E.prototype.renderEchart=function(T){var I=this;T.devtools.element.style.display==="block"&&(0,d.G)("".concat(T.options.cdn,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){I.ASTChart||(I.ASTChart=echarts.init(T.devtools.element.lastElementChild));try{I.element.lastElementChild.style.display="block",I.element.firstElementChild.innerHTML="",I.ASTChart.setOption({series:[{data:JSON.parse(T.lute.RenderEChartsJSON(u(T))),initialTreeDepth:-1,label:{align:"left",backgroundColor:"rgba(68, 77, 86, .68)",borderRadius:3,color:"#d1d5da",fontSize:12,lineHeight:12,offset:[9,12],padding:[2,4,2,4],position:"top",verticalAlign:"middle"},lineStyle:{color:"#4285f4",type:"curve",width:1},orient:"vertical",roam:!0,type:"tree"}],toolbox:{bottom:25,emphasis:{iconStyle:{color:"#4285f4"}},feature:{restore:{show:!0},saveAsImage:{show:!0}},right:15,show:!0}}),I.ASTChart.resize()}catch(R){I.element.lastElementChild.style.display="none",I.element.firstElementChild.innerHTML=R}})},E})(),f=o(410),p=function(E,T){T.forEach(function(I){if(E[I]){var R=E[I].children[0];R&&R.classList.contains("vditor-menu--current")&&R.classList.remove("vditor-menu--current")}})},v=function(E,T){T.forEach(function(I){if(E[I]){var R=E[I].children[0];R&&!R.classList.contains("vditor-menu--current")&&R.classList.add("vditor-menu--current")}})},h=function(E,T){T.forEach(function(I){if(E[I]){var R=E[I].children[0];R&&R.classList.contains(s.g.CLASS_MENU_DISABLED)&&R.classList.remove(s.g.CLASS_MENU_DISABLED)}})},g=function(E,T){T.forEach(function(I){if(E[I]){var R=E[I].children[0];R&&!R.classList.contains(s.g.CLASS_MENU_DISABLED)&&R.classList.add(s.g.CLASS_MENU_DISABLED)}})},y=function(E,T){T.forEach(function(I){E[I]&&E[I]&&(E[I].style.display="none")})},m=function(E,T){T.forEach(function(I){E[I]&&E[I]&&(E[I].style.display="block")})},b=function(E,T,I){T.includes("subToolbar")&&(E.toolbar.element.querySelectorAll(".vditor-hint").forEach(function(R){I&&R.isEqualNode(I)||(R.style.display="none")}),E.toolbar.elements.emoji&&(E.toolbar.elements.emoji.lastElementChild.style.display="none")),T.includes("hint")&&(E.hint.element.style.display="none"),E.wysiwyg.popover&&T.includes("popover")&&(E.wysiwyg.popover.style.display="none")},w=function(E,T,I,R){I.addEventListener((0,f.Le)(),function(z){z.preventDefault(),z.stopPropagation(),!I.classList.contains(s.g.CLASS_MENU_DISABLED)&&(E.toolbar.element.querySelectorAll(".vditor-hint--current").forEach(function(V){V.classList.remove("vditor-hint--current")}),T.style.display==="block"?T.style.display="none":(b(E,["subToolbar","hint","popover"],I.parentElement.parentElement),I.classList.contains("vditor-tooltipped")||I.classList.add("vditor-hint--current"),T.style.display="block",E.toolbar.element.getBoundingClientRect().right-I.getBoundingClientRect().right<250?T.classList.add("vditor-panel--left"):T.classList.remove("vditor-panel--left")))})},A=o(106),S=o(771),k=function(E,T,I,R){R&&console.log("".concat(E," - ").concat(I,": ").concat(T))},M=o(135),D=o(775),P=o(428),O=o(325),_=o(483),B=o(999),N=o(472),q=o(637),U=o(11),j=o(194),H=o(229),G=o(825),Z=function(E,T,I){I===void 0&&(I="sv");var R=document.createElement("div");R.innerHTML=E;var z=!1;R.childElementCount===1&&R.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&(z=!0);var V=R.querySelectorAll("pre");if(R.childElementCount===1&&V.length===1&&V[0].className!=="vditor-wysiwyg"&&V[0].className!=="vditor-sv"&&(z=!0),E.indexOf(`
- <p class="p1">`)===0&&(z=!0),R.childElementCount===1&&R.firstElementChild.tagName==="TABLE"&&R.querySelector(".line-number")&&R.querySelector(".line-content")&&(z=!0),z){var le=T||E;return/\n/.test(le)||V.length===1?I==="wysiwyg"?'<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>'.concat(le.replace(/&/g,"&").replace(/</g,"<"),"<wbr></code></pre></div>"):"\n```\n"+le.replace(/&/g,"&").replace(/</g,"<")+"\n```":I==="wysiwyg"?"<code>".concat(le.replace(/&/g,"&").replace(/</g,"<"),"</code><wbr>"):"`".concat(le,"`")}return!1},$=function(E,T){if(E){if(E.parentElement.getAttribute("data-type")==="html-block"){E.setAttribute("data-render","1");return}var I=E.firstElementChild.className.replace("language-","");if(I==="abc")(0,M.Q)(E,T.options.cdn);else if(I==="mermaid")(0,q.i)(E,T.options.cdn,T.options.theme);else if(I==="smiles")(0,G.J)(E,T.options.cdn,T.options.theme);else if(I==="markmap")(0,U.K)(E,T.options.cdn);else if(I==="flowchart")(0,O.P)(E,T.options.cdn);else if(I==="echarts")(0,D.p)(E,T.options.cdn,T.options.theme);else if(I==="mindmap")(0,j.P)(E,T.options.cdn,T.options.theme);else if(I==="plantuml")(0,H.B)(E,T.options.cdn);else if(I==="graphviz")(0,_.v)(E,T.options.cdn);else if(I==="math")(0,N.H)(E,{cdn:T.options.cdn,math:T.options.preview.math});else{var R=T.options.customRenders.find(function(z){if(z.language===I)return z.render(E,T),!0});R||((0,B.s)(Object.assign({},T.options.preview.hljs),E,T.options.cdn),(0,P.O)(E,T.options.preview.hljs))}E.setAttribute("data-render","1")}},L=o(810),W=function(E){if(E.currentMode!=="sv"){var T=E[E.currentMode].element,I=E.outline.render(E);I===""&&(I="[ToC]"),T.querySelectorAll('[data-type="toc-block"]').forEach(function(R){R.innerHTML=I,(0,N.H)(R,{cdn:E.options.cdn,math:E.options.preview.math})})}},ie=function(E,T){var I=(0,A.lG)(E.target,"SPAN");if(I&&(0,A.fb)(I,"vditor-toc")){var R=T[T.currentMode].element.querySelector("#"+I.getAttribute("data-target-id"));if(R)if(T.options.height==="auto"){var z=R.offsetTop+T.element.offsetTop;T.options.toolbarConfig.pin||(z+=T.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,z)}else T.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,T.element.offsetTop),T[T.currentMode].element.scrollTop=R.offsetTop;return}},ee=function(E,T,I,R){if(E.previousElementSibling&&E.previousElementSibling.classList.contains("vditor-toc")){if(I.key==="Backspace"&&(0,L.im)(E,T[T.currentMode].element,R).start===0)return E.previousElementSibling.remove(),_r(T),!0;if(Yo(T,I,R,E,E.previousElementSibling))return!0}if(E.nextElementSibling&&E.nextElementSibling.classList.contains("vditor-toc")){if(I.key==="Delete"&&(0,L.im)(E,T[T.currentMode].element,R).start>=E.textContent.trimRight().length)return E.nextElementSibling.remove(),_r(T),!0;if(Lo(T,I,R,E,E.nextElementSibling))return!0}if(I.key==="Backspace"||I.key==="Delete"){var z=(0,A.fb)(R.startContainer,"vditor-toc");if(z)return z.remove(),_r(T),!0}},te=function(E,T,I,R){I===void 0&&(I=!1);var z=(0,A.F9)(T.startContainer);if(z&&!I&&z.getAttribute("data-type")!=="code-block"){if(mi(z.innerHTML)&&z.previousElementSibling||ra(z.innerHTML))return;for(var V=(0,L.im)(z,E.ir.element,T).start,le=!0,Oe=V-1;Oe>z.textContent.substr(0,V).lastIndexOf(`
- `);Oe--)if(z.textContent.charAt(Oe)!==" "&&z.textContent.charAt(Oe)!==" "){le=!1;break}V===0&&(le=!1);for(var Ze=!0,Oe=V-1;Oe<z.textContent.length;Oe++)if(z.textContent.charAt(Oe)!==" "&&z.textContent.charAt(Oe)!==`
- `){Ze=!1;break}if(le){typeof E.options.input=="function"&&E.options.input(u(E));return}if(Ze&&/^#{1,6} $/.test(z.textContent)&&(Ze=!1),Ze){var $e=(0,A.fb)(T.startContainer,"vditor-ir__marker");if(!$e){var dt=T.startContainer.previousSibling;dt&&dt.nodeType!==3&&dt.classList.contains("vditor-ir__node--expand")&&dt.classList.remove("vditor-ir__node--expand"),typeof E.options.input=="function"&&E.options.input(u(E));return}}}if(E.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(to){to.classList.remove("vditor-ir__node--expand")}),z||(z=E.ir.element),!z.querySelector("wbr")){var At=(0,A.fb)(T.startContainer,"vditor-ir__preview");At?At.previousElementSibling.insertAdjacentHTML("beforeend","<wbr>"):T.insertNode(document.createElement("wbr"))}z.querySelectorAll("[style]").forEach(function(to){to.removeAttribute("style")}),z.getAttribute("data-type")==="link-ref-defs-block"&&(z=E.ir.element);var En=z.isEqualNode(E.ir.element),Cn=(0,A.a1)(z,"data-type","footnotes-block"),yn="";if(En)yn=z.innerHTML;else{var un=(0,S.S)(T.startContainer,"BLOCKQUOTE"),kn=(0,A.O9)(T.startContainer);if(kn&&(z=kn),un&&(!kn||kn&&!un.contains(kn))&&(z=un),Cn&&(z=Cn),yn=z.outerHTML,z.tagName==="UL"||z.tagName==="OL"){var fn=z.previousElementSibling,qn=z.nextElementSibling;fn&&(fn.tagName==="UL"||fn.tagName==="OL")&&(yn=fn.outerHTML+yn,fn.remove()),qn&&(qn.tagName==="UL"||qn.tagName==="OL")&&(yn=yn+qn.outerHTML,qn.remove()),yn=yn.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}else z.previousElementSibling&&z.previousElementSibling.textContent.replace(s.g.ZWSP,"")!==""&&R&&R.inputType==="insertParagraph"&&(yn=z.previousElementSibling.outerHTML+yn,z.previousElementSibling.remove());z.innerText.startsWith("```")||(E.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(to){to&&!z.isEqualNode(to)&&(yn+=to.outerHTML,to.remove())}),E.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(to){to&&!z.isEqualNode(to)&&(yn+=to.outerHTML,to.remove())}))}if(k("SpinVditorIRDOM",yn,"argument",E.options.debugger),yn=E.lute.SpinVditorIRDOM(yn),k("SpinVditorIRDOM",yn,"result",E.options.debugger),En)z.innerHTML=yn;else if(z.outerHTML=yn,Cn){var $n=(0,A.a1)(E.ir.element.querySelector("wbr"),"data-type","footnotes-def");if($n){var gr=$n.textContent,Dr=gr.substring(1,gr.indexOf("]:")),lo=E.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(Dr,'"]'));lo&&lo.setAttribute("aria-label",gr.substr(Dr.length+3).trim().substr(0,24))}}var fo,Pr=E.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");Pr.forEach(function(to,fr){fr===0?fo=to:(fo.insertAdjacentHTML("beforeend",to.innerHTML),to.remove())}),Pr.length>0&&E.ir.element.insertAdjacentElement("beforeend",Pr[0]);var oa,Ra=E.ir.element.querySelectorAll("[data-type='footnotes-block']");Ra.forEach(function(to,fr){fr===0?oa=to:(oa.insertAdjacentHTML("beforeend",to.innerHTML),to.remove())}),Ra.length>0&&E.ir.element.insertAdjacentElement("beforeend",Ra[0]),(0,L.ib)(E.ir.element,T),E.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(to){$(to,E)}),W(E),ye(E,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},X=function(E,T){if(E==="")return!1;if(E.indexOf("⇧")===-1&&E.indexOf("⌘")===-1&&E.indexOf("⌥")===-1)return!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&T.code===E;if(E==="⇧Tab")return!!(!(0,f.yl)(T)&&!T.altKey&&T.shiftKey&&T.code==="Tab");var I=E.split("");if(E.startsWith("⌥")){var R=I.length===3?I[2]:I[1];return!!((I.length===3?(0,f.yl)(T):!(0,f.yl)(T))&&T.altKey&&!T.shiftKey&&T.code===(/^[0-9]$/.test(R)?"Digit":"Key")+R)}E==="⌘Enter"&&(I=["⌘","Enter"]);var z=I.length>2&&I[0]==="⇧",V=z?I[2]:I[1];return z&&((0,f.vU)()||!/Mac/.test(navigator.platform))&&(V==="-"?V="_":V==="="&&(V="+")),!!((0,f.yl)(T)&&T.key.toLowerCase()===V.toLowerCase()&&!T.altKey&&(!z&&!T.shiftKey||z&&T.shiftKey))},ue=function(E){var T=E.startContainer;if(T.nodeType===3&&T.nodeValue.length!==E.startOffset)return!1;for(var I=T.nextSibling;I&&I.textContent==="";)I=I.nextSibling;if(I){if(I&&I.nodeType!==3&&I.classList.contains("vditor-ir__node")&&!I.getAttribute("data-block"))return I}else{var R=(0,A.fb)(T,"vditor-ir__marker");if(R&&!R.nextSibling){var z=T.parentElement.parentElement.nextSibling;if(z&&z.nodeType!==3&&z.classList.contains("vditor-ir__node"))return z}return!1}return!1},ve=function(E){var T=E.startContainer,I=T.previousSibling;return T.nodeType===3&&E.startOffset===0&&I&&I.nodeType!==3&&I.classList.contains("vditor-ir__node")&&!I.getAttribute("data-block")?I:!1},Me=function(E,T){T.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(le){le.classList.remove("vditor-ir__node--expand")});var I=(0,A.JQ)(E.startContainer,"vditor-ir__node"),R=!E.collapsed&&(0,A.JQ)(E.endContainer,"vditor-ir__node");if(!(!E.collapsed&&(!I||I!==R))){I&&(I.classList.add("vditor-ir__node--expand"),I.classList.remove("vditor-ir__node--hidden"),(0,L.Hc)(E));var z=ue(E);if(z){z.classList.add("vditor-ir__node--expand"),z.classList.remove("vditor-ir__node--hidden");return}var V=ve(E);if(V){V.classList.add("vditor-ir__node--expand"),V.classList.remove("vditor-ir__node--hidden");return}}},we=function(E,T){if(E.ir.composingLock=T.isComposing,T.isComposing)return!1;T.key.indexOf("Arrow")===-1&&T.key!=="Meta"&&T.key!=="Control"&&T.key!=="Alt"&&T.key!=="Shift"&&T.key!=="CapsLock"&&T.key!=="Escape"&&!/^F\d{1,2}$/.test(T.key)&&E.undo.recordFirstPosition(E,T);var I=(0,L.zh)(E),R=I.startContainer;if(!Ao(T,E,R)||(Cr(I,E,T),Vn(I),T.key!=="Enter"&&T.key!=="Tab"&&T.key!=="Backspace"&&T.key.indexOf("Arrow")===-1&&!(0,f.yl)(T)&&T.key!=="Escape"&&T.key!=="Delete"))return!1;var z=(0,A.a1)(R,"data-newline","1");if(!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&T.key==="Enter"&&z&&I.startOffset<z.textContent.length){var V=z.previousElementSibling;V&&(I.insertNode(document.createTextNode(V.textContent)),I.collapse(!1));var le=z.nextSibling;le&&(I.insertNode(document.createTextNode(le.textContent)),I.collapse(!0))}var Oe=(0,A.lG)(R,"P");if(Qe(T,E,Oe,I)||Si(I,E,Oe,T)||vn(E,I,T,Oe))return!0;var Ze=(0,A.fb)(R,"vditor-ir__marker--pre");if(Ze&&Ze.tagName==="PRE"){var $e=Ze.firstChild;if(on(E,T,Ze,I)||($e.getAttribute("data-type")==="math-block"||$e.getAttribute("data-type")==="html-block")&&Yo(E,T,I,$e,Ze.parentElement)||Lo(E,T,I,$e,Ze.parentElement))return!0}var dt=(0,A.a1)(R,"data-type","code-block-info");if(dt){if(T.key==="Enter"||T.key==="Tab")return I.selectNodeContents(dt.nextElementSibling.firstChild),I.collapse(!0),T.preventDefault(),b(E,["hint"]),!0;if(T.key==="Backspace"){var At=(0,L.im)(dt,E.ir.element).start;At===1&&I.setStart(R,0),At===2&&(E.hint.recentLanguage="")}if(Yo(E,T,I,dt,dt.parentElement))return b(E,["hint"]),!0}var En=(0,A.lG)(R,"TD")||(0,A.lG)(R,"TH");if(T.key.indexOf("Arrow")>-1&&En){var Cn=qi(En);if(Cn&&Yo(E,T,I,En,Cn))return!0;var yn=na(En);if(yn&&Lo(E,T,I,En,yn))return!0}if(It(E,T,I)||_n(E,I,T)||ha(E,I,T))return!0;var un=(0,S.W)(R);if(un){if(X("⌘=",T)){var kn=un.querySelector(".vditor-ir__marker--heading");return kn&&kn.textContent.trim().length>1&&ae(E,kn.textContent.substr(1)),T.preventDefault(),!0}if(X("⌘-",T)){var kn=un.querySelector(".vditor-ir__marker--heading");return kn&&kn.textContent.trim().length<6&&ae(E,kn.textContent.trim()+"# "),T.preventDefault(),!0}}var fn=(0,A.F9)(R);if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&I.toString()===""){if(or(E,I,T,Oe))return!0;if(fn&&fn.previousElementSibling&&fn.tagName!=="UL"&&fn.tagName!=="OL"&&(fn.previousElementSibling.getAttribute("data-type")==="code-block"||fn.previousElementSibling.getAttribute("data-type")==="math-block")){var qn=(0,L.im)(fn,E.ir.element,I).start;if(qn===0||qn===1&&fn.innerText.startsWith(s.g.ZWSP))return I.selectNodeContents(fn.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),I.collapse(!1),Me(I,E),fn.textContent.trim().replace(s.g.ZWSP,"")===""&&(fn.remove(),ye(E)),T.preventDefault(),!0}if(un){var $n=un.firstElementChild.textContent.length;(0,L.im)(un,E.ir.element).start===$n&&$n!==0&&(I.setStart(un.firstElementChild.firstChild,$n-1),I.collapse(!0),(0,L.Hc)(I))}}return(T.key==="ArrowUp"||T.key==="ArrowDown")&&fn&&(fn.querySelectorAll(".vditor-ir__node").forEach(function(gr){gr.contains(R)||gr.classList.add("vditor-ir__node--hidden")}),xr(T,fn,I))?!0:(Ho(I,T.key),fn&&ee(fn,E,T,I)?(T.preventDefault(),!0):!1)},he=o(190),Te=function(E,T){E.querySelectorAll("[data-type=footnotes-link]").forEach(function(I){for(var R=I.parentElement,z=R.nextSibling;z&&z.textContent.startsWith(" ");){var V=z;V.childNodes.forEach(function(le){R.append(le.cloneNode(!0))}),z=z.nextSibling,V.remove()}T&&T(R)})},Y=function(E,T){var I,R=getSelection().getRangeAt(0).cloneRange(),z=R.startContainer;R.startContainer.nodeType!==3&&R.startContainer.tagName==="DIV"&&(z=R.startContainer.childNodes[R.startOffset-1]);var V=(0,A.a1)(z,"data-block","0");if(V&&T&&(T.inputType==="deleteContentBackward"||T.data===" ")){for(var le=(0,L.im)(V,E.sv.element,R).start,Oe=!0,Ze=le-1;Ze>V.textContent.substr(0,le).lastIndexOf(`
- `);Ze--)if(V.textContent.charAt(Ze)!==" "&&V.textContent.charAt(Ze)!==" "){Oe=!1;break}if(le===0&&(Oe=!1),Oe){Gt(E);return}if(T.inputType==="deleteContentBackward"){var $e=(0,A.a1)(z,"data-type","code-block-open-marker")||(0,A.a1)(z,"data-type","code-block-close-marker");if($e){if($e.getAttribute("data-type")==="code-block-close-marker"){var dt=bt(z,"code-block-open-marker");if(dt){dt.textContent=$e.textContent,Gt(E);return}}if($e.getAttribute("data-type")==="code-block-open-marker"){var dt=bt(z,"code-block-close-marker",!1);if(dt){dt.textContent=$e.textContent,Gt(E);return}}}var At=(0,A.a1)(z,"data-type","math-block-open-marker");if(At){var En=At.nextElementSibling.nextElementSibling;En&&En.getAttribute("data-type")==="math-block-close-marker"&&(En.remove(),Gt(E));return}V.querySelectorAll('[data-type="code-block-open-marker"]').forEach(function(fn){fn.textContent.length===1&&fn.remove()}),V.querySelectorAll('[data-type="code-block-close-marker"]').forEach(function(fn){fn.textContent.length===1&&fn.remove()});var Cn=(0,A.a1)(z,"data-type","heading-marker");if(Cn&&Cn.textContent.indexOf("#")===-1){Gt(E);return}}if((T.data===" "||T.inputType==="deleteContentBackward")&&((0,A.a1)(z,"data-type","padding")||(0,A.a1)(z,"data-type","li-marker")||(0,A.a1)(z,"data-type","task-marker")||(0,A.a1)(z,"data-type","blockquote-marker"))){Gt(E);return}}if(V&&V.textContent.trimRight()==="$$"){Gt(E);return}V||(V=E.sv.element),((I=V.firstElementChild)===null||I===void 0?void 0:I.getAttribute("data-type"))==="link-ref-defs-block"&&(V=E.sv.element),(0,A.a1)(z,"data-type","footnotes-link")&&(V=E.sv.element),V.textContent.indexOf(Lute.Caret)===-1&&R.insertNode(document.createTextNode(Lute.Caret)),V.querySelectorAll("[style]").forEach(function(fn){fn.removeAttribute("style")}),V.querySelectorAll("font").forEach(function(fn){fn.outerHTML=fn.innerHTML});var yn=V.textContent,un=V.isEqualNode(E.sv.element);if(un)yn=V.textContent;else{V.previousElementSibling&&(yn=V.previousElementSibling.textContent+yn,V.previousElementSibling.remove()),V.previousElementSibling&&yn.indexOf(`---
- `)===0&&(yn=V.previousElementSibling.textContent+yn,V.previousElementSibling.remove());var kn="";E.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(fn,qn){fn&&!V.isEqualNode(fn.parentElement)&&(kn+=fn.parentElement.textContent+`
- `,fn.parentElement.remove())}),E.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach(function(fn,qn){fn&&!V.isEqualNode(fn.parentElement)&&(kn+=fn.parentElement.textContent+`
- `,fn.parentElement.remove())}),yn=kn+yn}yn=Yt(yn,E),un?V.innerHTML=yn:V.outerHTML=yn,E.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(fn){E.sv.element.insertAdjacentElement("beforeend",fn.parentElement)}),Te(E.sv.element,function(fn){E.sv.element.insertAdjacentElement("beforeend",fn)}),(0,L.ib)(E.sv.element,R),Mn(E),Gt(E,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},be=function(E,T){var I,R,z,V,le;if(E.sv.composingLock=T.isComposing,T.isComposing||(T.key.indexOf("Arrow")===-1&&T.key!=="Meta"&&T.key!=="Control"&&T.key!=="Alt"&&T.key!=="Shift"&&T.key!=="CapsLock"&&T.key!=="Escape"&&!/^F\d{1,2}$/.test(T.key)&&E.undo.recordFirstPosition(E,T),T.key!=="Enter"&&T.key!=="Tab"&&T.key!=="Backspace"&&T.key.indexOf("Arrow")===-1&&!(0,f.yl)(T)&&T.key!=="Escape"))return!1;var Oe=(0,L.zh)(E),Ze=Oe.startContainer;Oe.startContainer.nodeType!==3&&Oe.startContainer.tagName==="DIV"&&(Ze=Oe.startContainer.childNodes[Oe.startOffset-1]);var $e=(0,A.a1)(Ze,"data-type","text"),dt=(0,A.a1)(Ze,"data-type","blockquote-marker");if(!dt&&Oe.startOffset===0&&$e&&$e.previousElementSibling&&$e.previousElementSibling.getAttribute("data-type")==="blockquote-marker"&&(dt=$e.previousElementSibling),dt&&T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&dt.nextElementSibling.textContent.trim()===""&&(0,L.im)(dt,E.sv.element,Oe).start===dt.textContent.length)return((I=dt.previousElementSibling)===null||I===void 0?void 0:I.getAttribute("data-type"))==="padding"&&dt.previousElementSibling.setAttribute("data-action","enter-remove"),dt.remove(),Gt(E),T.preventDefault(),!0;var At=(0,A.a1)(Ze,"data-type","li-marker"),En=(0,A.a1)(Ze,"data-type","task-marker"),Cn=At;if(Cn||En&&En.nextElementSibling.getAttribute("data-type")!=="task-marker"&&(Cn=En),!Cn&&Oe.startOffset===0&&$e&&$e.previousElementSibling&&($e.previousElementSibling.getAttribute("data-type")==="li-marker"||$e.previousElementSibling.getAttribute("data-type")==="task-marker")&&(Cn=$e.previousElementSibling),Cn){var yn=(0,L.im)(Cn,E.sv.element,Oe).start,un=Cn.getAttribute("data-type")==="task-marker",kn=Cn;if(un&&(kn=Cn.previousElementSibling.previousElementSibling.previousElementSibling),yn===Cn.textContent.length){if(T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&Cn.nextElementSibling.textContent.trim()==="")return((R=kn.previousElementSibling)===null||R===void 0?void 0:R.getAttribute("data-type"))==="padding"?(kn.previousElementSibling.remove(),Y(E)):(un&&(kn.remove(),Cn.previousElementSibling.previousElementSibling.remove(),Cn.previousElementSibling.remove()),Cn.nextElementSibling.remove(),Cn.remove(),Gt(E)),T.preventDefault(),!0;if(T.key==="Tab")return T.shiftKey?kn.previousElementSibling.getAttribute("data-type")==="padding"&&kn.previousElementSibling.remove():kn.insertAdjacentHTML("beforebegin",'<span data-type="padding">'.concat(kn.textContent.replace(/\S/g," "),"</span>")),/^\d/.test(kn.textContent)&&(kn.textContent=kn.textContent.replace(/^\d{1,}/,"1"),Oe.selectNodeContents(Cn.firstChild),Oe.collapse(!1)),Y(E),T.preventDefault(),!0}}if(ha(E,Oe,T))return!0;var fn=(0,A.a1)(Ze,"data-block","0"),qn=(0,S.S)(Ze,"SPAN");if(T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&fn){var $n=!1,gr=fn.textContent.match(/^\n+/);(0,L.im)(fn,E.sv.element).start<=(gr?gr[0].length:0)&&($n=!0);var Dr=`
- `;if(qn){if(((z=qn.previousElementSibling)===null||z===void 0?void 0:z.getAttribute("data-action"))==="enter-remove")return qn.previousElementSibling.remove(),Gt(E),T.preventDefault(),!0;Dr+=wt(qn)}return Oe.insertNode(document.createTextNode(Dr)),Oe.collapse(!1),fn&&fn.textContent.trim()!==""&&!$n?Y(E):Gt(E),T.preventDefault(),!0}if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey){if(qn&&((V=qn.previousElementSibling)===null||V===void 0?void 0:V.getAttribute("data-type"))==="newline"&&(0,L.im)(qn,E.sv.element,Oe).start===1&&qn.getAttribute("data-type").indexOf("code-block-")===-1)return Oe.setStart(qn,0),Oe.extractContents(),qn.textContent.trim()!==""?Y(E):Gt(E),T.preventDefault(),!0;if(fn&&(0,L.im)(fn,E.sv.element,Oe).start===0&&fn.previousElementSibling){Oe.extractContents();var lo=fn.previousElementSibling.lastElementChild;return lo.getAttribute("data-type")==="newline"&&(lo.remove(),lo=fn.previousElementSibling.lastElementChild),lo.getAttribute("data-type")!=="newline"&&(lo.insertAdjacentHTML("afterend",fn.innerHTML),fn.remove()),fn.textContent.trim()!==""&&!(!((le=fn.previousElementSibling)===null||le===void 0)&&le.querySelector('[data-type="code-block-open-marker"]'))?Y(E):(lo.getAttribute("data-type")!=="newline"&&(Oe.selectNodeContents(lo.lastChild),Oe.collapse(!1)),Gt(E)),T.preventDefault(),!0}}return!1},De=o(538),pe=function(E){E.options.theme==="dark"?E.element.classList.add("vditor--dark"):E.element.classList.remove("vditor--dark")},oe=function(E){E.element.innerHTML="",E.element.classList.add("vditor"),E.options.rtl&&E.element.setAttribute("dir","rtl"),pe(E),(0,De.Z)(E.options.preview.theme.current,E.options.preview.theme.path),typeof E.options.height=="number"?E.element.style.height=E.options.height+"px":E.element.style.height=E.options.height,typeof E.options.minHeight=="number"&&(E.element.style.minHeight=E.options.minHeight+"px"),typeof E.options.width=="number"?E.element.style.width=E.options.width+"px":E.element.style.width=E.options.width,E.element.appendChild(E.toolbar.element);var T=document.createElement("div");if(T.className="vditor-content",E.options.outline.position==="left"&&T.appendChild(E.outline.element),T.appendChild(E.wysiwyg.element.parentElement),T.appendChild(E.sv.element),T.appendChild(E.ir.element.parentElement),T.appendChild(E.preview.element),E.toolbar.elements.devtools&&T.appendChild(E.devtools.element),E.options.outline.position==="right"&&(E.outline.element.classList.add("vditor-outline--right"),T.appendChild(E.outline.element)),E.upload&&T.appendChild(E.upload.element),E.options.resize.enable&&T.appendChild(E.resize.element),T.appendChild(E.hint.element),T.appendChild(E.tip.element),E.element.appendChild(T),T.addEventListener("click",function(){b(E,["subToolbar"])}),E.toolbar.elements.export&&E.element.insertAdjacentHTML("beforeend",'<iframe id="vditorExportIframe" style="width: 100%;height: 0;border: 0"></iframe>'),yt(E,E.options.mode,Fe(E)),document.execCommand("DefaultParagraphSeparator",!1,"p"),navigator.userAgent.indexOf("iPhone")>-1&&typeof window.visualViewport<"u"){var I=!1,R=function(z){I||(I=!0,requestAnimationFrame(function(){I=!1;var V=E.toolbar.element;V.style.transform="none",V.getBoundingClientRect().top<0&&(V.style.transform="translate(0, ".concat(-V.getBoundingClientRect().top,"px)"))}))};window.visualViewport.addEventListener("scroll",R),window.visualViewport.addEventListener("resize",R)}},ce=function(E){var T=window.innerWidth<=s.g.MOBILE_WIDTH?10:35;if(E.wysiwyg.element.parentElement.style.display!=="none"){var I=(E.wysiwyg.element.parentElement.clientWidth-E.options.preview.maxWidth)/2;E.wysiwyg.element.style.padding="10px ".concat(Math.max(T,I),"px")}if(E.ir.element.parentElement.style.display!=="none"){var I=(E.ir.element.parentElement.clientWidth-E.options.preview.maxWidth)/2;E.ir.element.style.padding="10px ".concat(Math.max(T,I),"px")}E.preview.element.style.display!=="block"?E.toolbar.element.style.paddingLeft=Math.max(5,parseInt(E[E.currentMode].element.style.paddingLeft||"0",10)+(E.options.outline.position==="left"?E.outline.element.offsetWidth:0))+"px":E.toolbar.element.style.paddingLeft=5+(E.options.outline.position==="left"?E.outline.element.offsetWidth:0)+"px"},Re=function(E){if(E.options.typewriterMode){var T=window.innerHeight;typeof E.options.height=="number"?(T=E.options.height,typeof E.options.minHeight=="number"&&(T=Math.max(T,E.options.minHeight)),T=Math.min(window.innerHeight,T)):T=E.element.clientHeight,E.element.classList.contains("vditor--fullscreen")&&(T=window.innerHeight),E[E.currentMode].element.style.setProperty("--editor-bottom",(T-E.toolbar.element.offsetHeight)/2+"px")}},Ee;function Le(){window.removeEventListener("resize",Ee)}var Fe=function(E){Re(E),Le(),window.addEventListener("resize",Ee=function(){ce(E),Re(E)});var T=(0,f.pK)()&&localStorage.getItem(E.options.cache.id);return(!E.options.cache.enable||!T)&&(E.options.value?T=E.options.value:E.originalInnerHTML?T=E.lute.HTML2Md(E.originalInnerHTML):E.options.cache.enable||(T="")),T||""},Pe=function(E){clearTimeout(E[E.currentMode].hlToolbarTimeoutId),E[E.currentMode].hlToolbarTimeoutId=window.setTimeout(function(){if(E[E.currentMode].element.getAttribute("contenteditable")!=="false"&&(0,L.Gb)(E[E.currentMode].element)){p(E.toolbar.elements,s.g.EDIT_TOOLBARS),h(E.toolbar.elements,s.g.EDIT_TOOLBARS);var T=(0,L.zh)(E),I=T.startContainer;T.startContainer.nodeType===3&&(I=T.startContainer.parentElement),I.classList.contains("vditor-reset")&&(I=I.childNodes[T.startOffset]);var R=E.currentMode==="sv"?(0,A.a1)(I,"data-type","heading"):(0,S.W)(I);R&&v(E.toolbar.elements,["headings"]);var z=E.currentMode==="sv"?(0,A.a1)(I,"data-type","blockquote"):(0,A.lG)(I,"BLOCKQUOTE");z&&v(E.toolbar.elements,["quote"]);var V=(0,A.a1)(I,"data-type","strong");V&&v(E.toolbar.elements,["bold"]);var le=(0,A.a1)(I,"data-type","em");le&&v(E.toolbar.elements,["italic"]);var Oe=(0,A.a1)(I,"data-type","s");Oe&&v(E.toolbar.elements,["strike"]);var Ze=(0,A.a1)(I,"data-type","a");Ze&&v(E.toolbar.elements,["link"]);var $e=(0,A.lG)(I,"LI");$e?($e.classList.contains("vditor-task")?v(E.toolbar.elements,["check"]):$e.parentElement.tagName==="OL"?v(E.toolbar.elements,["ordered-list"]):$e.parentElement.tagName==="UL"&&v(E.toolbar.elements,["list"]),h(E.toolbar.elements,["outdent","indent"])):g(E.toolbar.elements,["outdent","indent"]);var dt=(0,A.a1)(I,"data-type","code-block");dt&&(g(E.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),v(E.toolbar.elements,["code"]));var At=(0,A.a1)(I,"data-type","code");At&&(g(E.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),v(E.toolbar.elements,["inline-code"]));var En=(0,A.a1)(I,"data-type","table");En&&g(E.toolbar.elements,["headings","list","ordered-list","check","line","quote","code","table"])}},200)},Ne=function(E,T){T===void 0&&(T={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),T.enableHint&&E.hint.render(E),clearTimeout(E.wysiwyg.afterRenderTimeoutId),E.wysiwyg.afterRenderTimeoutId=window.setTimeout(function(){if(!E.wysiwyg.composingLock){var I=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(I),E.options.counter.enable&&E.counter.render(E,I),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,I),E.options.cache.after&&E.options.cache.after(I)),E.devtools&&E.devtools.renderEchart(E),T.enableAddUndoStack&&E.undo.addToUndoStack(E)}},E.options.undoDelay)},pt=function(E){for(var T=E.previousSibling;T;){if(T.nodeType!==3&&T.tagName==="A"&&!T.previousSibling&&T.innerHTML.replace(s.g.ZWSP,"")===""&&T.nextSibling)return T;T=T.previousSibling}return!1},Rt=function(E){for(var T=E.startContainer.nextSibling;T&&T.textContent==="";)T=T.nextSibling;return!!(T&&T.nodeType!==3&&(T.tagName==="CODE"||T.getAttribute("data-type")==="math-inline"||T.getAttribute("data-type")==="html-entity"||T.getAttribute("data-type")==="html-inline"))},Bt=function(E){for(var T="",I=E.nextSibling;I;)I.nodeType===3?T+=I.textContent:T+=I.outerHTML,I=I.nextSibling;return T},en=function(E){for(var T="",I=E.previousSibling;I;)I.nodeType===3?T=I.textContent+T:T=I.outerHTML+T,I=I.previousSibling;return T},Wt=function(E){for(var T=E;T&&!T.nextSibling;)T=T.parentElement;return T.nextSibling},Ut=function(E){var T=en(E.startContainer),I=Bt(E.startContainer),R=E.startContainer.textContent,z=E.startOffset,V="",le="";return(R.substr(0,z)!==""&&R.substr(0,z)!==s.g.ZWSP||T)&&(V="".concat(T).concat(R.substr(0,z))),(R.substr(z)!==""&&R.substr(z)!==s.g.ZWSP||I)&&(le="".concat(R.substr(z)).concat(I)),{afterHTML:le,beforeHTML:V}},ct=function(E,T){Array.from(E.wysiwyg.element.childNodes).find(function(I){if(I.nodeType===3){var R=document.createElement("p");R.setAttribute("data-block","0"),R.textContent=I.textContent;var z=T.startContainer.nodeType===3?T.startOffset:I.textContent.length;return I.parentNode.insertBefore(R,I),I.remove(),T.setStart(R.firstChild,Math.min(R.firstChild.textContent.length,z)),T.collapse(!0),(0,L.Hc)(T),!0}else if(!I.getAttribute("data-block"))return I.tagName==="P"?I.remove():(I.tagName==="DIV"?(T.insertNode(document.createElement("wbr")),I.outerHTML='<p data-block="0">'.concat(I.innerHTML,"</p>")):I.tagName==="BR"?I.outerHTML='<p data-block="0">'.concat(I.outerHTML,"<wbr></p>"):(T.insertNode(document.createElement("wbr")),I.outerHTML='<p data-block="0">'.concat(I.outerHTML,"</p>")),(0,L.ib)(E.wysiwyg.element,T),T=getSelection().getRangeAt(0)),!0})},_t=function(E,T){var I=(0,L.zh)(E),R=(0,A.F9)(I.startContainer);R||(R=I.startContainer.childNodes[I.startOffset]),!R&&E.wysiwyg.element.children.length===0&&(R=E.wysiwyg.element),R&&!R.classList.contains("vditor-wysiwyg__block")&&(I.insertNode(document.createElement("wbr")),R.innerHTML.trim()==="<wbr>"&&(R.innerHTML="<wbr><br>"),R.tagName==="BLOCKQUOTE"||R.classList.contains("vditor-reset")?R.innerHTML="<".concat(T,' data-block="0">').concat(R.innerHTML.trim(),"</").concat(T,">"):R.outerHTML="<".concat(T,' data-block="0">').concat(R.innerHTML.trim(),"</").concat(T,">"),(0,L.ib)(E.wysiwyg.element,I),W(E))},st=function(E){var T=getSelection().getRangeAt(0),I=(0,A.F9)(T.startContainer);I||(I=T.startContainer.childNodes[T.startOffset]),I&&(T.insertNode(document.createElement("wbr")),I.outerHTML='<p data-block="0">'.concat(I.innerHTML,"</p>"),(0,L.ib)(E.wysiwyg.element,T)),E.wysiwyg.popover.style.display="none"},Ot=function(E,T,I){I===void 0&&(I=!0);var R=E.previousElementSibling,z=R.ownerDocument.createRange();R.tagName==="CODE"?(R.style.display="inline-block",I?z.setStart(R.firstChild,1):z.selectNodeContents(R)):(R.style.display="block",R.firstChild.firstChild||R.firstChild.appendChild(document.createTextNode("")),z.selectNodeContents(R.firstChild)),I?z.collapse(!0):z.collapse(!1),(0,L.Hc)(z),!E.firstElementChild.classList.contains("language-mindmap")&&Mn(T)},Ae=function(E,T){if(E.wysiwyg.composingLock=T.isComposing,T.isComposing)return!1;T.key.indexOf("Arrow")===-1&&T.key!=="Meta"&&T.key!=="Control"&&T.key!=="Alt"&&T.key!=="Shift"&&T.key!=="CapsLock"&&T.key!=="Escape"&&!/^F\d{1,2}$/.test(T.key)&&E.undo.recordFirstPosition(E,T);var I=(0,L.zh)(E),R=I.startContainer;if(!Ao(T,E,R)||(Cr(I,E,T),Vn(I),T.key!=="Enter"&&T.key!=="Tab"&&T.key!=="Backspace"&&T.key.indexOf("Arrow")===-1&&!(0,f.yl)(T)&&T.key!=="Escape"&&T.key!=="Delete"))return!1;var z=(0,A.F9)(R),V=(0,A.lG)(R,"P");if(Qe(T,E,V,I)||Si(I,E,V,T)||It(E,T,I))return!0;var le=(0,A.fb)(R,"vditor-wysiwyg__block");if(le){if(T.key==="Escape"&&le.children.length===2)return E.wysiwyg.popover.style.display="none",le.firstElementChild.style.display="none",E.wysiwyg.element.blur(),T.preventDefault(),!0;if(!(0,f.yl)(T)&&!T.shiftKey&&T.altKey&&T.key==="Enter"&&le.getAttribute("data-type")==="code-block"){var Oe=E.wysiwyg.popover.querySelector(".vditor-input");return Oe.focus(),Oe.select(),T.preventDefault(),!0}if(le.getAttribute("data-block")==="0"&&(on(E,T,le.firstElementChild,I)||Lo(E,T,I,le.firstElementChild,le)||le.getAttribute("data-type")!=="yaml-front-matter"&&Yo(E,T,I,le.firstElementChild,le)))return!0}if(vn(E,I,T,V))return!0;var Ze=(0,A.E2)(R,"BLOCKQUOTE");if(Ze&&!T.shiftKey&&T.altKey&&T.key==="Enter"){(0,f.yl)(T)?I.setStartBefore(Ze):I.setStartAfter(Ze),(0,L.Hc)(I);var $e=document.createElement("p");return $e.setAttribute("data-block","0"),$e.innerHTML=`
- `,I.insertNode($e),I.collapse(!0),(0,L.Hc)(I),Ne(E),Mn(E),T.preventDefault(),!0}var dt=(0,S.W)(R);if(dt){if(dt.tagName==="H6"&&R.textContent.length===I.startOffset&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&T.key==="Enter"){var At=document.createElement("p");return At.textContent=`
- `,At.setAttribute("data-block","0"),R.parentElement.insertAdjacentElement("afterend",At),I.setStart(At,0),(0,L.Hc)(I),Ne(E),Mn(E),T.preventDefault(),!0}if(X("⌘=",T)){var En=parseInt(dt.tagName.substr(1),10)-1;return En>0&&(_t(E,"h".concat(En)),Ne(E)),T.preventDefault(),!0}if(X("⌘-",T)){var En=parseInt(dt.tagName.substr(1),10)+1;return En<7&&(_t(E,"h".concat(En)),Ne(E)),T.preventDefault(),!0}T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&dt.textContent.length===1&&st(E)}if(_n(E,I,T))return!0;if(T.altKey&&T.key==="Enter"&&!(0,f.yl)(T)&&!T.shiftKey){var Cn=(0,A.lG)(R,"A"),yn=(0,A.a1)(R,"data-type","link-ref"),un=(0,A.a1)(R,"data-type","footnotes-ref");if(Cn||yn||un||dt&&dt.tagName.length===2){var kn=E.wysiwyg.popover.querySelector("input");kn.focus(),kn.select()}}if(je(E,T))return!0;if(X("⇧⌘U",T)){var fn=E.wysiwyg.popover.querySelector('[data-type="up"]');if(fn)return fn.click(),T.preventDefault(),!0}if(X("⇧⌘D",T)){var fn=E.wysiwyg.popover.querySelector('[data-type="down"]');if(fn)return fn.click(),T.preventDefault(),!0}if(ha(E,I,T))return!0;if(!(0,f.yl)(T)&&T.shiftKey&&!T.altKey&&T.key==="Enter"&&R.parentElement.tagName!=="LI"&&R.parentElement.tagName!=="P")return["STRONG","STRIKE","S","I","EM","B"].includes(R.parentElement.tagName)?I.insertNode(document.createTextNode(`
- `+s.g.ZWSP)):I.insertNode(document.createTextNode(`
- `)),I.collapse(!1),(0,L.Hc)(I),Ne(E),Mn(E),T.preventDefault(),!0;if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&I.toString()===""){if(or(E,I,T,V))return!0;if(z){if(z.previousElementSibling&&z.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&z.previousElementSibling.getAttribute("data-block")==="0"&&z.tagName!=="UL"&&z.tagName!=="OL"){var qn=(0,L.im)(z,E.wysiwyg.element,I).start;if(qn===0&&I.startOffset===0||qn===1&&z.innerText.startsWith(s.g.ZWSP))return Ot(z.previousElementSibling.lastElementChild,E,!1),z.innerHTML.trim().replace(s.g.ZWSP,"")===""&&(z.remove(),Ne(E)),T.preventDefault(),!0}var $n=I.startOffset;if(I.toString()===""&&R.nodeType===3&&R.textContent.charAt($n-2)===`
- `&&R.textContent.charAt($n-1)!==s.g.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes(R.parentElement.tagName))return R.textContent=R.textContent.substring(0,$n-1)+s.g.ZWSP,I.setStart(R,$n),I.collapse(!0),Ne(E),T.preventDefault(),!0;R.textContent===s.g.ZWSP&&I.startOffset===1&&!R.previousSibling&&Rt(I)&&(R.textContent=""),z.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach(function(Dr){Dr.firstElementChild.style.display="inline",Dr.lastElementChild.style.display="none"}),z.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach(function(Dr){Dr.firstElementChild.style.display="inline",Dr.lastElementChild.style.display="none"})}}if((0,f.vU)()&&I.startOffset===1&&R.textContent.indexOf(s.g.ZWSP)>-1&&R.previousSibling&&R.previousSibling.nodeType!==3&&R.previousSibling.tagName==="CODE"&&(T.key==="Backspace"||T.key==="ArrowLeft"))return I.selectNodeContents(R.previousSibling),I.collapse(!1),T.preventDefault(),!0;if(xr(T,z,I))return T.preventDefault(),!0;if(Ho(I,T.key),T.key==="ArrowDown"){var gr=R.nextSibling;gr&&gr.nodeType!==3&&gr.getAttribute("data-type")==="math-inline"&&I.setStartAfter(gr)}return z&&ee(z,E,T,I)?(T.preventDefault(),!0):!1},je=function(E,T){if(X("⇧⌘X",T)){var I=E.wysiwyg.popover.querySelector('[data-type="remove"]');return I&&I.click(),T.preventDefault(),!0}},at=function(E){clearTimeout(E.wysiwyg.hlToolbarTimeoutId),E.wysiwyg.hlToolbarTimeoutId=window.setTimeout(function(){if(E.wysiwyg.element.getAttribute("contenteditable")!=="false"&&(0,L.Gb)(E.wysiwyg.element)){p(E.toolbar.elements,s.g.EDIT_TOOLBARS),h(E.toolbar.elements,s.g.EDIT_TOOLBARS);var T=getSelection().getRangeAt(0),I=T.startContainer;T.startContainer.nodeType===3?I=T.startContainer.parentElement:I=I.childNodes[T.startOffset>=I.childNodes.length?I.childNodes.length-1:T.startOffset];var R=(0,A.a1)(I,"data-type","footnotes-block");if(R){E.wysiwyg.popover.innerHTML="",ke(R,E),rn(E,"footnotes-block"),gt(E,R);return}var z=(0,A.lG)(I,"LI");z?(z.classList.contains("vditor-task")?v(E.toolbar.elements,["check"]):z.parentElement.tagName==="OL"?v(E.toolbar.elements,["ordered-list"]):z.parentElement.tagName==="UL"&&v(E.toolbar.elements,["list"]),h(E.toolbar.elements,["outdent","indent"])):g(E.toolbar.elements,["outdent","indent"]),(0,A.lG)(I,"BLOCKQUOTE")&&v(E.toolbar.elements,["quote"]),((0,A.lG)(I,"B")||(0,A.lG)(I,"STRONG"))&&v(E.toolbar.elements,["bold"]),((0,A.lG)(I,"I")||(0,A.lG)(I,"EM"))&&v(E.toolbar.elements,["italic"]),((0,A.lG)(I,"STRIKE")||(0,A.lG)(I,"S"))&&v(E.toolbar.elements,["strike"]),E.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach(function(wr){wr.classList.remove("vditor-comment--focus")});var V=(0,A.fb)(I,"vditor-comment");if(V){var le=V.getAttribute("data-cmtids").split(" ");if(le.length>1&&V.nextSibling.isSameNode(V.nextElementSibling)){var Oe=V.nextElementSibling.getAttribute("data-cmtids").split(" ");le.find(function(wr){if(Oe.includes(wr))return le=[wr],!0})}E.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(wr){wr.getAttribute("data-cmtids").indexOf(le[0])>-1&&wr.classList.add("vditor-comment--focus")})}var Ze=(0,A.lG)(I,"A");Ze&&v(E.toolbar.elements,["link"]);var $e=(0,A.lG)(I,"TABLE"),dt=(0,S.W)(I);(0,A.lG)(I,"CODE")?(0,A.lG)(I,"PRE")?(g(E.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),v(E.toolbar.elements,["code"])):(g(E.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),v(E.toolbar.elements,["inline-code"])):dt?(g(E.toolbar.elements,["bold"]),v(E.toolbar.elements,["headings"])):$e&&g(E.toolbar.elements,["table"]);var At=(0,A.fb)(I,"vditor-toc");if(At){E.wysiwyg.popover.innerHTML="",ke(At,E),rn(E,"vditor-toc"),gt(E,At);return}var En=(0,S.S)(I,"BLOCKQUOTE");if(En&&(E.wysiwyg.popover.innerHTML="",Tn(T,En,E),He(T,En,E),ke(En,E),rn(E,"blockquote"),gt(E,En)),z&&(E.wysiwyg.popover.innerHTML="",Tn(T,z,E),He(T,z,E),ke(z,E),rn(E,"li"),gt(E,z)),$e){E.options.lang,E.options,E.wysiwyg.popover.innerHTML="";var Cn=function(){var wr=$e.rows.length,Po=$e.rows[0].cells.length,Ep=parseInt(fr.value,10)||wr,kp=parseInt(Gl.value,10)||Po;if(!(Ep===wr&&Po===kp)){if(Po!==kp)for(var y2=kp-Po,Jc=0;Jc<$e.rows.length;Jc++)if(y2>0)for(var IY=0;IY<y2;IY++)Jc===0?$e.rows[Jc].lastElementChild.insertAdjacentHTML("afterend","<th> </th>"):$e.rows[Jc].lastElementChild.insertAdjacentHTML("afterend","<td> </td>");else for(var U9=Po-1;U9>=kp;U9--)$e.rows[Jc].cells[U9].remove();if(wr!==Ep){var OY=Ep-wr;if(OY>0){for(var $9="<tr>",Tm=0;Tm<kp;Tm++)$9+="<td> </td>";for(var MY=0;MY<OY;MY++)$e.querySelector("tbody")?$e.querySelector("tbody").insertAdjacentHTML("beforeend",$9):$e.querySelector("thead").insertAdjacentHTML("afterend",$9+"</tr>")}else for(var Tm=wr-1;Tm>=Ep;Tm--)$e.rows[Tm].remove(),$e.rows.length===1&&$e.querySelector("tbody").remove()}typeof E.options.input=="function"&&E.options.input(u(E))}},yn=function(wr){xi($e,wr),wr==="right"?(qn.classList.remove("vditor-icon--current"),$n.classList.remove("vditor-icon--current"),gr.classList.add("vditor-icon--current")):wr==="center"?(qn.classList.remove("vditor-icon--current"),gr.classList.remove("vditor-icon--current"),$n.classList.add("vditor-icon--current")):($n.classList.remove("vditor-icon--current"),gr.classList.remove("vditor-icon--current"),qn.classList.add("vditor-icon--current")),(0,L.Hc)(T),Ne(E)},un=(0,A.lG)(I,"TD"),kn=(0,A.lG)(I,"TH"),fn="left";un?fn=un.getAttribute("align")||"left":kn&&(fn=kn.getAttribute("align")||"center");var qn=document.createElement("button");qn.setAttribute("type","button"),qn.setAttribute("aria-label",window.VditorI18n.alignLeft+"<"+(0,f.ns)("⇧⌘L")+">"),qn.setAttribute("data-type","left"),qn.innerHTML='<svg><use xlink:href="#vditor-icon-align-left"></use></svg>',qn.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(fn==="left"?" vditor-icon--current":""),qn.onclick=function(){yn("left")};var $n=document.createElement("button");$n.setAttribute("type","button"),$n.setAttribute("aria-label",window.VditorI18n.alignCenter+"<"+(0,f.ns)("⇧⌘C")+">"),$n.setAttribute("data-type","center"),$n.innerHTML='<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',$n.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(fn==="center"?" vditor-icon--current":""),$n.onclick=function(){yn("center")};var gr=document.createElement("button");gr.setAttribute("type","button"),gr.setAttribute("aria-label",window.VditorI18n.alignRight+"<"+(0,f.ns)("⇧⌘R")+">"),gr.setAttribute("data-type","right"),gr.innerHTML='<svg><use xlink:href="#vditor-icon-align-right"></use></svg>',gr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(fn==="right"?" vditor-icon--current":""),gr.onclick=function(){yn("right")};var Dr=document.createElement("button");Dr.setAttribute("type","button"),Dr.setAttribute("aria-label",window.VditorI18n.insertRowBelow+"<"+(0,f.ns)("⌘=")+">"),Dr.setAttribute("data-type","insertRow"),Dr.innerHTML='<svg><use xlink:href="#vditor-icon-insert-row"></use></svg>',Dr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Dr.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&qe(E,T,Po)};var lo=document.createElement("button");lo.setAttribute("type","button"),lo.setAttribute("aria-label",window.VditorI18n.insertRowAbove+"<"+(0,f.ns)("⇧⌘F")+">"),lo.setAttribute("data-type","insertRow"),lo.innerHTML='<svg><use xlink:href="#vditor-icon-insert-rowb"></use></svg>',lo.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",lo.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&ne(E,T,Po)};var fo=document.createElement("button");fo.setAttribute("type","button"),fo.setAttribute("aria-label",window.VditorI18n.insertColumnRight+"<"+(0,f.ns)("⇧⌘=")+">"),fo.setAttribute("data-type","insertColumn"),fo.innerHTML='<svg><use xlink:href="#vditor-icon-insert-column"></use></svg>',fo.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",fo.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ie(E,$e,Po)};var Pr=document.createElement("button");Pr.setAttribute("type","button"),Pr.setAttribute("aria-label",window.VditorI18n.insertColumnLeft+"<"+(0,f.ns)("⇧⌘G")+">"),Pr.setAttribute("data-type","insertColumn"),Pr.innerHTML='<svg><use xlink:href="#vditor-icon-insert-columnb"></use></svg>',Pr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Pr.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ie(E,$e,Po,"beforebegin")};var oa=document.createElement("button");oa.setAttribute("type","button"),oa.setAttribute("aria-label",window.VditorI18n["delete-row"]+"<"+(0,f.ns)("⌘-")+">"),oa.setAttribute("data-type","deleteRow"),oa.innerHTML='<svg><use xlink:href="#vditor-icon-delete-row"></use></svg>',oa.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",oa.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ge(E,T,Po)};var Ra=document.createElement("button");Ra.setAttribute("type","button"),Ra.setAttribute("aria-label",window.VditorI18n["delete-column"]+"<"+(0,f.ns)("⇧⌘-")+">"),Ra.setAttribute("data-type","deleteColumn"),Ra.innerHTML='<svg><use xlink:href="#vditor-icon-delete-column"></use></svg>',Ra.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Ra.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ft(E,T,$e,Po)};var to=document.createElement("span");to.setAttribute("aria-label",window.VditorI18n.row),to.className="vditor-tooltipped vditor-tooltipped__n";var fr=document.createElement("input");to.appendChild(fr),fr.type="number",fr.min="1",fr.className="vditor-input",fr.style.width="42px",fr.style.textAlign="center",fr.setAttribute("placeholder",window.VditorI18n.row),fr.value=$e.rows.length.toString(),fr.oninput=function(){Cn()},fr.onkeydown=function(wr){if(!wr.isComposing){if(wr.key==="Tab"){Gl.focus(),Gl.select(),wr.preventDefault();return}je(E,wr)||ht(wr,T)}};var tx=document.createElement("span");tx.setAttribute("aria-label",window.VditorI18n.column),tx.className="vditor-tooltipped vditor-tooltipped__n";var Gl=document.createElement("input");tx.appendChild(Gl),Gl.type="number",Gl.min="1",Gl.className="vditor-input",Gl.style.width="42px",Gl.style.textAlign="center",Gl.setAttribute("placeholder",window.VditorI18n.column),Gl.value=$e.rows[0].cells.length.toString(),Gl.oninput=function(){Cn()},Gl.onkeydown=function(wr){if(!wr.isComposing){if(wr.key==="Tab"){fr.focus(),fr.select(),wr.preventDefault();return}je(E,wr)||ht(wr,T)}},Tn(T,$e,E),He(T,$e,E),ke($e,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",qn),E.wysiwyg.popover.insertAdjacentElement("beforeend",$n),E.wysiwyg.popover.insertAdjacentElement("beforeend",gr),E.wysiwyg.popover.insertAdjacentElement("beforeend",lo),E.wysiwyg.popover.insertAdjacentElement("beforeend",Dr),E.wysiwyg.popover.insertAdjacentElement("beforeend",Pr),E.wysiwyg.popover.insertAdjacentElement("beforeend",fo),E.wysiwyg.popover.insertAdjacentElement("beforeend",oa),E.wysiwyg.popover.insertAdjacentElement("beforeend",Ra),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),E.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),E.wysiwyg.popover.insertAdjacentElement("beforeend",tx),rn(E,"table"),gt(E,$e)}var F9=(0,A.a1)(I,"data-type","link-ref");F9&&nn(E,F9,T);var Em=(0,A.a1)(I,"data-type","footnotes-ref");if(Em){E.options.lang,E.options,E.wysiwyg.popover.innerHTML="";var to=document.createElement("span");to.setAttribute("aria-label",window.VditorI18n.footnoteRef+"<"+(0,f.ns)("⌥Enter")+">"),to.className="vditor-tooltipped vditor-tooltipped__n";var of=document.createElement("input");to.appendChild(of),of.className="vditor-input",of.setAttribute("placeholder",window.VditorI18n.footnoteRef+"<"+(0,f.ns)("⌥Enter")+">"),of.style.width="120px",of.value=Em.getAttribute("data-footnotes-label"),of.oninput=function(){of.value.trim()!==""&&Em.setAttribute("data-footnotes-label",of.value),typeof E.options.input=="function"&&E.options.input(u(E))},of.onkeydown=function(Po){Po.isComposing||je(E,Po)||ht(Po,T)},ke(Em,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),rn(E,"footnotes-ref"),gt(E,Em)}var os=(0,A.fb)(I,"vditor-wysiwyg__block"),_Y=os?os.getAttribute("data-type").indexOf("block")>-1:!1;if(E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(wr){if(!os||os&&_Y&&!os.contains(wr)){var Po=wr.previousElementSibling;Po.style.display="none"}}),os&&_Y){if(E.wysiwyg.popover.innerHTML="",Tn(T,os,E),He(T,os,E),ke(os,E),os.getAttribute("data-type")==="code-block"){var nx=document.createElement("span");nx.setAttribute("aria-label",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),nx.className="vditor-tooltipped vditor-tooltipped__n";var lc=document.createElement("input");nx.appendChild(lc);var m2=os.firstElementChild.firstElementChild;lc.className="vditor-input",lc.setAttribute("placeholder",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),lc.value=m2.className.indexOf("language-")>-1?m2.className.split("-")[1].split(" ")[0]:"",lc.oninput=function(wr){lc.value.trim()!==""?m2.className="language-".concat(lc.value):(m2.className="",E.hint.recentLanguage=""),os.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(os.lastElementChild.innerHTML=os.firstElementChild.innerHTML,$(os.lastElementChild,E)),Ne(E),wr.detail===1&&(T.setStart(m2.firstChild,0),T.collapse(!0),(0,L.Hc)(T))},lc.onkeydown=function(wr){if(!wr.isComposing&&!je(E,wr)){if(wr.key==="Escape"&&E.hint.element.style.display==="block"){E.hint.element.style.display="none",wr.preventDefault();return}E.hint.select(wr,E),ht(wr,T)}},lc.onkeyup=function(wr){var Po,Ep;if(!(wr.isComposing||wr.key==="Enter"||wr.key==="ArrowUp"||wr.key==="Escape"||wr.key==="ArrowDown")){var kp=[],y2=lc.value.substring(0,lc.selectionStart);(E.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((Ep=(Po=window.hljs)===null||Po===void 0?void 0:Po.listLanguages())!==null&&Ep!==void 0?Ep:[]).sort())).forEach(function(Jc){Jc.indexOf(y2.toLowerCase())>-1&&kp.push({html:Jc,value:Jc})}),E.hint.genHTML(kp,y2,E),wr.preventDefault()}},E.wysiwyg.popover.insertAdjacentElement("beforeend",nx),rn(E,"code-block")}else rn(E,"block");gt(E,os)}else os=void 0;if(dt){E.wysiwyg.popover.innerHTML="";var to=document.createElement("span");to.setAttribute("aria-label","ID<"+(0,f.ns)("⌥Enter")+">"),to.className="vditor-tooltipped vditor-tooltipped__n";var Sp=document.createElement("input");to.appendChild(Sp),Sp.className="vditor-input",Sp.setAttribute("placeholder","ID<"+(0,f.ns)("⌥Enter")+">"),Sp.style.width="120px",Sp.value=dt.getAttribute("data-id")||"",Sp.oninput=function(){dt.setAttribute("data-id",Sp.value),typeof E.options.input=="function"&&E.options.input(u(E))},Sp.onkeydown=function(Po){Po.isComposing||je(E,Po)||ht(Po,T)},Tn(T,dt,E),He(T,dt,E),ke(dt,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),rn(E,"heading"),gt(E,dt)}if(Ze&&Be(E,Ze,T),!En&&!z&&!$e&&!os&&!Ze&&!F9&&!Em&&!dt&&!At){var km=(0,A.a1)(I,"data-block","0");km&&km.parentElement.isEqualNode(E.wysiwyg.element)?(E.wysiwyg.popover.innerHTML="",Tn(T,km,E),He(T,km,E),ke(km,E),rn(E,"block"),gt(E,km)):E.wysiwyg.popover.style.display="none"}E.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach(function(wr){wr.style.display="none"});var DY=(0,A.a1)(T.startContainer,"data-type","backslash");DY&&(DY.querySelector("span").style.display="inline")}},200)},gt=function(E,T){var I=T,R=(0,A.lG)(T,"TABLE");R&&(I=R),E.wysiwyg.popover.style.left="0",E.wysiwyg.popover.style.display="block",E.wysiwyg.popover.style.top=Math.max(-8,I.offsetTop-21-E.wysiwyg.element.scrollTop)+"px",E.wysiwyg.popover.style.left=Math.min(I.offsetLeft,E.wysiwyg.element.clientWidth-E.wysiwyg.popover.clientWidth)+"px",E.wysiwyg.popover.setAttribute("data-top",(I.offsetTop-21).toString())},nn=function(E,T,I){I===void 0&&(I=getSelection().getRangeAt(0)),E.wysiwyg.popover.innerHTML="";var R=function(){V.value.trim()!==""&&(T.tagName==="IMG"?T.setAttribute("alt",V.value):T.textContent=V.value),Oe.value.trim()!==""&&T.setAttribute("data-link-label",Oe.value),typeof E.options.input=="function"&&E.options.input(u(E))},z=document.createElement("span");z.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),z.className="vditor-tooltipped vditor-tooltipped__n";var V=document.createElement("input");z.appendChild(V),V.className="vditor-input",V.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),V.style.width="120px",V.value=T.getAttribute("alt")||T.textContent,V.oninput=function(){R()},V.onkeydown=function(Ze){je(E,Ze)||ht(Ze,I)||me(E,T,Ze,Oe)};var le=document.createElement("span");le.setAttribute("aria-label",window.VditorI18n.linkRef),le.className="vditor-tooltipped vditor-tooltipped__n";var Oe=document.createElement("input");le.appendChild(Oe),Oe.className="vditor-input",Oe.setAttribute("placeholder",window.VditorI18n.linkRef),Oe.value=T.getAttribute("data-link-label"),Oe.oninput=function(){R()},Oe.onkeydown=function(Ze){je(E,Ze)||ht(Ze,I)||me(E,T,Ze,V)},ke(T,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",z),E.wysiwyg.popover.insertAdjacentElement("beforeend",le),rn(E,"link-ref"),gt(E,T)},Tn=function(E,T,I){var R=T.previousElementSibling;if(!(!R||!T.parentElement.isEqualNode(I.wysiwyg.element)&&T.tagName!=="LI")){var z=document.createElement("button");z.setAttribute("type","button"),z.setAttribute("data-type","up"),z.setAttribute("aria-label",window.VditorI18n.up+"<"+(0,f.ns)("⇧⌘U")+">"),z.innerHTML='<svg><use xlink:href="#vditor-icon-up"></use></svg>',z.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",z.onclick=function(){E.insertNode(document.createElement("wbr")),R.insertAdjacentElement("beforebegin",T),(0,L.ib)(I.wysiwyg.element,E),Ne(I),at(I),Mn(I)},I.wysiwyg.popover.insertAdjacentElement("beforeend",z)}},He=function(E,T,I){var R=T.nextElementSibling;if(!(!R||!T.parentElement.isEqualNode(I.wysiwyg.element)&&T.tagName!=="LI")){var z=document.createElement("button");z.setAttribute("type","button"),z.setAttribute("data-type","down"),z.setAttribute("aria-label",window.VditorI18n.down+"<"+(0,f.ns)("⇧⌘D")+">"),z.innerHTML='<svg><use xlink:href="#vditor-icon-down"></use></svg>',z.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",z.onclick=function(){E.insertNode(document.createElement("wbr")),R.insertAdjacentElement("afterend",T),(0,L.ib)(I.wysiwyg.element,E),Ne(I),at(I),Mn(I)},I.wysiwyg.popover.insertAdjacentElement("beforeend",z)}},ke=function(E,T){var I=document.createElement("button");I.setAttribute("type","button"),I.setAttribute("data-type","remove"),I.setAttribute("aria-label",window.VditorI18n.remove+"<"+(0,f.ns)("⇧⌘X")+">"),I.innerHTML='<svg><use xlink:href="#vditor-icon-trashcan"></use></svg>',I.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",I.onclick=function(){var R=(0,L.zh)(T);R.setStartAfter(E),(0,L.Hc)(R),E.remove(),Ne(T),at(T),["H1","H2","H3","H4","H5","H6"].includes(E.tagName)&&W(T)},T.wysiwyg.popover.insertAdjacentElement("beforeend",I)},me=function(E,T,I,R){if(!I.isComposing){if(I.key==="Tab"){R.focus(),R.select(),I.preventDefault();return}if(!(0,f.yl)(I)&&!I.shiftKey&&I.altKey&&I.key==="Enter"){var z=(0,L.zh)(E);T.insertAdjacentHTML("afterend",s.g.ZWSP),z.setStartAfter(T.nextSibling),z.collapse(!0),(0,L.Hc)(z),I.preventDefault()}}},Be=function(E,T,I){E.wysiwyg.popover.innerHTML="";var R=function(){V.value.trim()!==""&&(T.innerHTML=V.value),T.setAttribute("href",Oe.value),T.setAttribute("title",$e.value),Ne(E)};T.querySelectorAll("[data-marker]").forEach(function(dt){dt.removeAttribute("data-marker")});var z=document.createElement("span");z.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),z.className="vditor-tooltipped vditor-tooltipped__n";var V=document.createElement("input");z.appendChild(V),V.className="vditor-input",V.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),V.style.width="120px",V.value=T.innerHTML||"",V.oninput=function(){R()},V.onkeydown=function(dt){je(E,dt)||ht(dt,I)||me(E,T,dt,Oe)};var le=document.createElement("span");le.setAttribute("aria-label",window.VditorI18n.link),le.className="vditor-tooltipped vditor-tooltipped__n";var Oe=document.createElement("input");le.appendChild(Oe),Oe.className="vditor-input",Oe.setAttribute("placeholder",window.VditorI18n.link),Oe.value=T.getAttribute("href")||"",Oe.oninput=function(){R()},Oe.onkeydown=function(dt){je(E,dt)||ht(dt,I)||me(E,T,dt,$e)};var Ze=document.createElement("span");Ze.setAttribute("aria-label",window.VditorI18n.tooltipText),Ze.className="vditor-tooltipped vditor-tooltipped__n";var $e=document.createElement("input");Ze.appendChild($e),$e.className="vditor-input",$e.setAttribute("placeholder",window.VditorI18n.tooltipText),$e.style.width="60px",$e.value=T.getAttribute("title")||"",$e.oninput=function(){R()},$e.onkeydown=function(dt){je(E,dt)||ht(dt,I)||me(E,T,dt,V)},ke(T,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",z),E.wysiwyg.popover.insertAdjacentElement("beforeend",le),E.wysiwyg.popover.insertAdjacentElement("beforeend",Ze),rn(E,"a"),gt(E,T)},rt=function(E,T){var I=E.target;T.wysiwyg.popover.innerHTML="";var R=function(){I.setAttribute("src",V.value),I.setAttribute("alt",Oe.value),I.setAttribute("title",$e.value),typeof T.options.input=="function"&&T.options.input(u(T))},z=document.createElement("span");z.setAttribute("aria-label",window.VditorI18n.imageURL),z.className="vditor-tooltipped vditor-tooltipped__n";var V=document.createElement("input");z.appendChild(V),V.className="vditor-input",V.setAttribute("placeholder",window.VditorI18n.imageURL),V.value=I.getAttribute("src")||"",V.oninput=function(){R()},V.onkeydown=function(dt){je(T,dt)};var le=document.createElement("span");le.setAttribute("aria-label",window.VditorI18n.alternateText),le.className="vditor-tooltipped vditor-tooltipped__n";var Oe=document.createElement("input");le.appendChild(Oe),Oe.className="vditor-input",Oe.setAttribute("placeholder",window.VditorI18n.alternateText),Oe.style.width="52px",Oe.value=I.getAttribute("alt")||"",Oe.oninput=function(){R()},Oe.onkeydown=function(dt){je(T,dt)};var Ze=document.createElement("span");Ze.setAttribute("aria-label",window.VditorI18n.title),Ze.className="vditor-tooltipped vditor-tooltipped__n";var $e=document.createElement("input");Ze.appendChild($e),$e.className="vditor-input",$e.setAttribute("placeholder",window.VditorI18n.title),$e.value=I.getAttribute("title")||"",$e.oninput=function(){R()},$e.onkeydown=function(dt){je(T,dt)},ke(I,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",z),T.wysiwyg.popover.insertAdjacentElement("beforeend",le),T.wysiwyg.popover.insertAdjacentElement("beforeend",Ze),rn(T,"image"),gt(T,I)},ht=function(E,T){if(!(0,f.yl)(E)&&!E.shiftKey&&E.key==="Enter"||E.key==="Escape")return T&&(0,L.Hc)(T),E.preventDefault(),E.stopPropagation(),!0},rn=function(E,T){E.options.customWysiwygToolbar(T,E.wysiwyg.popover)},Ye=function(E){E.currentMode==="wysiwyg"?at(E):E.currentMode==="ir"&&Pe(E)},Je=function(E,T,I){I===void 0&&(I={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var R=E.wysiwyg.element;R.innerHTML=E.lute.Md2VditorDOM(T),R.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(z){$(z,E),z.previousElementSibling.setAttribute("style","display:none")}),Ne(E,I)},lt=function(E,T,I){for(var R=E.startContainer.parentElement,z=!1,V="",le="",Oe=Ut(E),Ze=Oe.beforeHTML,$e=Oe.afterHTML;R&&!z;){var dt=R.tagName;if(dt==="STRIKE"&&(dt="S"),dt==="I"&&(dt="EM"),dt==="B"&&(dt="STRONG"),dt==="S"||dt==="STRONG"||dt==="EM"){var At="",En="",Cn="";R.parentElement.getAttribute("data-block")!=="0"&&(En=en(R),Cn=Bt(R)),(Ze||En)&&(At="".concat(En,"<").concat(dt,">").concat(Ze,"</").concat(dt,">"),Ze=At),(I==="bold"&&dt==="STRONG"||I==="italic"&&dt==="EM"||I==="strikeThrough"&&dt==="S")&&(At+="".concat(V).concat(s.g.ZWSP,"<wbr>").concat(le),z=!0),($e||Cn)&&($e="<".concat(dt,">").concat($e,"</").concat(dt,">").concat(Cn),At+=$e),R.parentElement.getAttribute("data-block")!=="0"?(R=R.parentElement,R.innerHTML=At):(R.outerHTML=At,R=R.parentElement),V="<".concat(dt,">")+V,le="</".concat(dt,">")+le}else z=!0}(0,L.ib)(T.wysiwyg.element,E)},Ue=function(E,T,I){if(!(E.wysiwyg.composingLock&&I instanceof CustomEvent)){var R=!0,z=!0;E.wysiwyg.element.querySelector("wbr")&&E.wysiwyg.element.querySelector("wbr").remove();var V=(0,L.zh)(E),le=T.getAttribute("data-type");if(T.classList.contains("vditor-menu--current"))if(le==="strike"&&(le="strikeThrough"),le==="quote"){var Oe=(0,A.lG)(V.startContainer,"BLOCKQUOTE");Oe||(Oe=V.startContainer.childNodes[V.startOffset]),Oe&&(R=!1,T.classList.remove("vditor-menu--current"),V.insertNode(document.createElement("wbr")),Oe.outerHTML=Oe.innerHTML.trim()===""?'<p data-block="0">'.concat(Oe.innerHTML,"</p>"):Oe.innerHTML,(0,L.ib)(E.wysiwyg.element,V))}else if(le==="inline-code"){var Ze=(0,A.lG)(V.startContainer,"CODE");Ze||(Ze=V.startContainer.childNodes[V.startOffset]),Ze&&(Ze.outerHTML=Ze.innerHTML.replace(s.g.ZWSP,"")+"<wbr>",(0,L.ib)(E.wysiwyg.element,V))}else le==="link"?(V.collapsed&&V.selectNode(V.startContainer.parentElement),document.execCommand("unlink",!1,"")):le==="check"||le==="list"||le==="ordered-list"?(Pa(E,V,le),(0,L.ib)(E.wysiwyg.element,V),R=!1,T.classList.remove("vditor-menu--current")):(R=!1,T.classList.remove("vditor-menu--current"),V.toString()===""?lt(V,E,le):document.execCommand(le,!1,""));else{E.wysiwyg.element.childNodes.length===0&&(E.wysiwyg.element.innerHTML='<p data-block="0"><wbr></p>',(0,L.ib)(E.wysiwyg.element,V));var $e=(0,A.F9)(V.startContainer);if(le==="quote"){if($e||($e=V.startContainer.childNodes[V.startOffset]),$e){R=!1,T.classList.add("vditor-menu--current"),V.insertNode(document.createElement("wbr"));var dt=(0,A.lG)(V.startContainer,"LI");dt&&$e.contains(dt)?dt.innerHTML='<blockquote data-block="0">'.concat(dt.innerHTML,"</blockquote>"):$e.outerHTML='<blockquote data-block="0">'.concat($e.outerHTML,"</blockquote>"),(0,L.ib)(E.wysiwyg.element,V)}}else if(le==="check"||le==="list"||le==="ordered-list")Pa(E,V,le,!1),(0,L.ib)(E.wysiwyg.element,V),R=!1,p(E.toolbar.elements,["check","list","ordered-list"]),T.classList.add("vditor-menu--current");else if(le==="inline-code"){if(V.toString()===""){var At=document.createElement("code");At.textContent=s.g.ZWSP,V.insertNode(At),V.setStart(At.firstChild,1),V.collapse(!0),(0,L.Hc)(V)}else if(V.startContainer.nodeType===3){var At=document.createElement("code");V.surroundContents(At),V.insertNode(At),(0,L.Hc)(V)}T.classList.add("vditor-menu--current")}else if(le==="code"){var At=document.createElement("div");At.className="vditor-wysiwyg__block",At.setAttribute("data-type","code-block"),At.setAttribute("data-block","0"),At.setAttribute("data-marker","```"),V.toString()===""?At.innerHTML=`<pre><code><wbr>
- </code></pre>`:(At.innerHTML="<pre><code>".concat(V.toString(),"<wbr></code></pre>"),V.deleteContents()),V.insertNode(At),$e&&($e.outerHTML=E.lute.SpinVditorDOM($e.outerHTML)),(0,L.ib)(E.wysiwyg.element,V),E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(Dr){$(Dr,E)}),T.classList.add("vditor-menu--disabled")}else if(le==="link"){if(V.toString()===""){var En=document.createElement("a");En.innerText=s.g.ZWSP,V.insertNode(En),V.setStart(En.firstChild,1),V.collapse(!0),Be(E,En,V);var Cn=E.wysiwyg.popover.querySelector("input");Cn.value="",Cn.focus(),z=!1}else{var At=document.createElement("a");At.setAttribute("href",""),At.innerHTML=V.toString(),V.surroundContents(At),V.insertNode(At),(0,L.Hc)(V),Be(E,At,V);var yn=E.wysiwyg.popover.querySelectorAll("input");yn[0].value=At.innerText,yn[1].focus()}R=!1,T.classList.add("vditor-menu--current")}else if(le==="table"){var un='<table data-block="0"><thead><tr><th>col1<wbr></th><th>col2</th><th>col3</th></tr></thead><tbody><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr></tbody></table>';if(V.toString().trim()==="")$e&&$e.innerHTML.trim().replace(s.g.ZWSP,"")===""?$e.outerHTML=un:document.execCommand("insertHTML",!1,un),V.selectNode(E.wysiwyg.element.querySelector("wbr").previousSibling),E.wysiwyg.element.querySelector("wbr").remove(),(0,L.Hc)(V);else{un='<table data-block="0"><thead><tr>';var kn=V.toString().split(`
- `),fn=kn[0].split(",").length>kn[0].split(" ").length?",":" ";kn.forEach(function(gr,Dr){Dr===0?(gr.split(fn).forEach(function(lo,fo){fo===0?un+="<th>".concat(lo,"<wbr></th>"):un+="<th>".concat(lo,"</th>")}),un+="</tr></thead>"):(Dr===1?un+="<tbody><tr>":un+="<tr>",gr.split(fn).forEach(function(lo){un+="<td>".concat(lo,"</td>")}),un+="</tr>")}),un+="</tbody></table>",document.execCommand("insertHTML",!1,un),(0,L.ib)(E.wysiwyg.element,V)}R=!1,T.classList.add("vditor-menu--disabled")}else if(le==="line"){if($e){var qn=`<hr data-block="0"><p data-block="0"><wbr>
- </p>`;$e.innerHTML.trim()===""?$e.outerHTML=qn:$e.insertAdjacentHTML("afterend",qn),(0,L.ib)(E.wysiwyg.element,V)}}else if(R=!1,T.classList.add("vditor-menu--current"),le==="strike"&&(le="strikeThrough"),V.toString()===""&&(le==="bold"||le==="italic"||le==="strikeThrough")){var $n="strong";le==="italic"?$n="em":le==="strikeThrough"&&($n="s");var At=document.createElement($n);At.textContent=s.g.ZWSP,V.insertNode(At),At.previousSibling&&At.previousSibling.textContent===s.g.ZWSP&&(At.previousSibling.textContent=""),V.setStart(At.firstChild,1),V.collapse(!0),(0,L.Hc)(V)}else document.execCommand(le,!1,"")}R&&at(E),z&&Ne(E)}},ze=(function(){function E(T,I){var R,z=this;this.element=document.createElement("div"),I.className&&(R=this.element.classList).add.apply(R,I.className.split(" "));var V=I.hotkey?" <".concat((0,f.ns)(I.hotkey),">"):"";I.level===2&&(V=I.hotkey?" <".concat((0,f.ns)(I.hotkey),">"):"");var le=I.tip?I.tip+V:"".concat(window.VditorI18n[I.name]).concat(V),Oe=I.name==="upload"?"div":"button";if(I.level===2)this.element.innerHTML="<".concat(Oe,' data-type="').concat(I.name,'">').concat(le,"</").concat(Oe,">");else{this.element.classList.add("vditor-toolbar__item");var Ze=document.createElement(Oe);Ze.setAttribute("data-type",I.name),Ze.className="vditor-tooltipped vditor-tooltipped__".concat(I.tipPosition),Ze.setAttribute("aria-label",le),Ze.innerHTML=I.icon,this.element.appendChild(Ze)}I.prefix&&this.element.children[0].addEventListener((0,f.Le)(),function($e){$e.preventDefault(),!z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&(T.currentMode==="wysiwyg"?Ue(T,z.element.children[0],$e):T.currentMode==="ir"?Ce(T,z.element.children[0],I.prefix||"",I.suffix||""):Rn(T,z.element.children[0],I.prefix||"",I.suffix||""))})}return E})(),ut=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),yt=function(E,T,I){var R;if(typeof I!="string"?(b(E,["subToolbar","hint"]),I.preventDefault(),R=u(E)):R=I,!(E.currentMode===T&&typeof I!="string")){if(E.devtools&&E.devtools.renderEchart(E),E.options.preview.mode==="both"&&T==="sv"?E.preview.element.style.display="block":E.preview.element.style.display="none",h(E.toolbar.elements,s.g.EDIT_TOOLBARS),p(E.toolbar.elements,s.g.EDIT_TOOLBARS),g(E.toolbar.elements,["outdent","indent"]),T==="ir")y(E.toolbar.elements,["both"]),m(E.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),E.sv.element.style.display="none",E.wysiwyg.element.parentElement.style.display="none",E.ir.element.parentElement.style.display="block",E.lute.SetVditorIR(!0),E.lute.SetVditorWYSIWYG(!1),E.lute.SetVditorSV(!1),E.currentMode="ir",E.ir.element.innerHTML=E.lute.Md2VditorIRDOM(R),ye(E,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ce(E),E.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(V){$(V,E)}),E.ir.element.querySelectorAll(".vditor-toc").forEach(function(V){(0,N.H)(V,{cdn:E.options.cdn,math:E.options.preview.math})});else if(T==="wysiwyg")y(E.toolbar.elements,["both"]),m(E.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),E.sv.element.style.display="none",E.wysiwyg.element.parentElement.style.display="block",E.ir.element.parentElement.style.display="none",E.lute.SetVditorIR(!1),E.lute.SetVditorWYSIWYG(!0),E.lute.SetVditorSV(!1),E.currentMode="wysiwyg",ce(E),Je(E,R,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),E.wysiwyg.element.querySelectorAll(".vditor-toc").forEach(function(V){(0,N.H)(V,{cdn:E.options.cdn,math:E.options.preview.math})}),E.wysiwyg.popover.style.display="none";else if(T==="sv"){m(E.toolbar.elements,["both"]),y(E.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),E.wysiwyg.element.parentElement.style.display="none",E.ir.element.parentElement.style.display="none",(E.options.preview.mode==="both"||E.options.preview.mode==="editor")&&(E.sv.element.style.display="block"),E.lute.SetVditorIR(!1),E.lute.SetVditorWYSIWYG(!1),E.lute.SetVditorSV(!0),E.currentMode="sv";var z=Yt(R,E);z==="<div data-block='0'></div>"&&(z=""),E.sv.element.innerHTML=z,Te(E.sv.element),Gt(E,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ce(E)}E.undo.resetIcon(E),typeof I!="string"&&(E[E.currentMode].element.focus(),Ye(E)),W(E),Re(E),E.toolbar.elements["edit-mode"]&&(E.toolbar.elements["edit-mode"].querySelectorAll("button").forEach(function(V){V.classList.remove("vditor-menu--current")}),E.toolbar.elements["edit-mode"].querySelector('button[data-mode="'.concat(E.currentMode,'"]')).classList.add("vditor-menu--current")),E.outline.toggle(E,E.currentMode!=="sv"&&E.options.outline.enable,typeof I!="string")}},jt=(function(E){ut(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=document.createElement("div");return V.className="vditor-hint".concat(R.level===2?"":" vditor-panel--arrow"),V.innerHTML='<button data-mode="wysiwyg">'.concat(window.VditorI18n.wysiwyg," <").concat((0,f.ns)("⌥⌘7"),`></button>
- <button data-mode="ir">`).concat(window.VditorI18n.instantRendering," <").concat((0,f.ns)("⌥⌘8"),`></button>
- <button data-mode="sv">`).concat(window.VditorI18n.splitView," <").concat((0,f.ns)("⌥⌘9"),"></button>"),z.element.appendChild(V),z._bindEvent(I,V,R),z}return T.prototype._bindEvent=function(I,R,z){var V=this.element.children[0];w(I,R,V,z.level),R.children.item(0).addEventListener((0,f.Le)(),function(le){yt(I,"wysiwyg",le),le.preventDefault(),le.stopPropagation()}),R.children.item(1).addEventListener((0,f.Le)(),function(le){yt(I,"ir",le),le.preventDefault(),le.stopPropagation()}),R.children.item(2).addEventListener((0,f.Le)(),function(le){yt(I,"sv",le),le.preventDefault(),le.stopPropagation()})},T})(ze),mn=function(E,T){return(0,L.Gb)(E,T)?getSelection().toString():""},Nn=function(E,T){T.addEventListener("focus",function(){E.options.focus&&E.options.focus(u(E)),b(E,["subToolbar","hint"])})},xt=function(E,T){T.addEventListener("dblclick",function(I){I.target.tagName==="IMG"&&(E.options.image.preview?E.options.image.preview(I.target):E.options.image.isPreview&&(0,he.E)(I.target,E.options.lang,E.options.theme))})},sn=function(E,T){T.addEventListener("blur",function(I){if(E.currentMode==="ir"){var R=E.ir.element.querySelector(".vditor-ir__node--expand");R&&R.classList.remove("vditor-ir__node--expand")}else E.currentMode==="wysiwyg"&&!E.wysiwyg.selectPopover.contains(I.relatedTarget)&&E.wysiwyg.hideComment();E[E.currentMode].range=(0,L.zh)(E),E.options.blur&&E.options.blur(u(E))})},vt=function(E,T){T.addEventListener("dragstart",function(I){I.dataTransfer.setData(s.g.DROP_EDITOR,s.g.DROP_EDITOR)}),T.addEventListener("drop",function(I){I.dataTransfer.getData(s.g.DROP_EDITOR)?_r(E):(I.dataTransfer.types.includes("Files")||I.dataTransfer.types.includes("text/html"))&&lr(E,I,{pasteCode:function(R){document.execCommand("insertHTML",!1,R)}})})},Nt=function(E,T,I){T.addEventListener("copy",function(R){return I(R,E)})},bn=function(E,T,I){T.addEventListener("cut",function(R){I(R,E),E.options.comment.enable&&E.currentMode==="wysiwyg"&&E.wysiwyg.getComments(E),document.execCommand("delete")})},Mn=function(E){if(E.currentMode==="wysiwyg"&&E.options.comment.enable&&E.options.comment.adjustTop(E.wysiwyg.getComments(E,!0)),!!E.options.typewriterMode){var T=E[E.currentMode].element,I=(0,L.Ny)(T).top;E.options.height==="auto"&&!E.element.classList.contains("vditor--fullscreen")&&window.scrollTo(window.scrollX,I+E.element.offsetTop+E.toolbar.element.offsetHeight-window.innerHeight/2+10),(E.options.height!=="auto"||E.element.classList.contains("vditor--fullscreen"))&&(T.scrollTop=I+T.scrollTop-T.clientHeight/2+10)}},tr=function(E,T){T.addEventListener("keydown",function(I){if(!I.isComposing&&E.options.keydown&&E.options.keydown(I),!((E.options.hint.extend.length>1||E.toolbar.elements.emoji)&&E.hint.select(I,E))){if(E.options.comment.enable&&E.currentMode==="wysiwyg"&&(I.key==="Backspace"||X("⌘X",I))&&E.wysiwyg.getComments(E),E.currentMode==="sv"){if(be(E,I))return}else if(E.currentMode==="wysiwyg"){if(Ae(E,I))return}else if(E.currentMode==="ir"&&we(E,I))return;if(E.options.ctrlEnter&&X("⌘Enter",I)){E.options.ctrlEnter(u(E)),I.preventDefault();return}if(X("⌘Z",I)&&!E.toolbar.elements.undo){E.undo.undo(E),I.preventDefault();return}if(X("⌘Y",I)&&!E.toolbar.elements.redo){E.undo.redo(E),I.preventDefault();return}if(I.key==="Escape"){E.hint.element.style.display==="block"?E.hint.element.style.display="none":E.options.esc&&!I.isComposing&&E.options.esc(u(E)),I.preventDefault();return}if((0,f.yl)(I)&&I.altKey&&!I.shiftKey&&/^Digit[1-6]$/.test(I.code)){if(E.currentMode==="wysiwyg"){var R=I.code.replace("Digit","H");(0,A.lG)(getSelection().getRangeAt(0).startContainer,R)?st(E):_t(E,R),Ne(E)}else E.currentMode==="sv"?An(E,"#".repeat(parseInt(I.code.replace("Digit",""),10))+" "):E.currentMode==="ir"&&ae(E,"#".repeat(parseInt(I.code.replace("Digit",""),10))+" ");return I.preventDefault(),!0}if((0,f.yl)(I)&&I.altKey&&!I.shiftKey&&/^Digit[7-9]$/.test(I.code))return I.code==="Digit7"?yt(E,"wysiwyg",I):I.code==="Digit8"?yt(E,"ir",I):I.code==="Digit9"&&yt(E,"sv",I),!0;E.options.toolbar.find(function(z){if(!z.hotkey||z.toolbar){if(z.toolbar){var V=z.toolbar.find(function(le){if(!le.hotkey)return!1;if(X(le.hotkey,I))return E.toolbar.elements[le.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),I.preventDefault(),!0});return!!V}return!1}if(X(z.hotkey,I))return E.toolbar.elements[z.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),I.preventDefault(),!0})}})},dn=function(E,T){T.addEventListener("selectstart",function(I){T.onmouseup=function(){setTimeout(function(){var R=mn(E[E.currentMode].element);R.trim()?(E.currentMode==="wysiwyg"&&E.options.comment.enable&&(!(0,A.a1)(I.target,"data-type","footnotes-block")&&!(0,A.a1)(I.target,"data-type","link-ref-defs-block")?E.wysiwyg.showComment():E.wysiwyg.hideComment()),E.options.select&&E.options.select(R)):(E.currentMode==="wysiwyg"&&E.options.comment.enable&&E.wysiwyg.hideComment(),typeof E.options.unSelect=="function"&&E.options.unSelect())})}})},Ke=function(E,T){var I=(0,L.zh)(E);I.extractContents(),I.insertNode(document.createTextNode(Lute.Caret)),I.insertNode(document.createTextNode(T));var R=(0,A.a1)(I.startContainer,"data-block","0");R||(R=E.sv.element);var z=E.lute.SpinVditorSVDOM(R.textContent);z="<div data-block='0'>"+z.replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,`<span data-type="newline"><br /><span style="display: none">
- </span></span><span data-type="newline"><br /><span style="display: none">
- </span></span></div><div data-block="0"><`)+"</div>",R.isEqualNode(E.sv.element)?R.innerHTML=z:R.outerHTML=z,Te(E.sv.element),(0,L.ib)(E.sv.element,I),Mn(E)},bt=function(E,T,I){I===void 0&&(I=!0);var R=E;for(R.nodeType===3&&(R=R.parentElement);R;){if(R.getAttribute("data-type")===T)return R;I?R=R.previousElementSibling:R=R.nextElementSibling}return!1},Yt=function(E,T){k("SpinVditorSVDOM",E,"argument",T.options.debugger);var I=T.lute.SpinVditorSVDOM(E);return E="<div data-block='0'>"+I.replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,`<span data-type="newline"><br /><span style="display: none">
- </span></span><span data-type="newline"><br /><span style="display: none">
- </span></span></div><div data-block="0"><`)+"</div>",k("SpinVditorSVDOM",E,"result",T.options.debugger),E},wt=function(E){var T=E.getAttribute("data-type"),I=E.previousElementSibling,R=T&&T!=="text"&&T!=="table"&&T!=="heading-marker"&&T!=="newline"&&T!=="yaml-front-matter-open-marker"&&T!=="yaml-front-matter-close-marker"&&T!=="code-block-info"&&T!=="code-block-close-marker"&&T!=="code-block-open-marker"?E.textContent:"",z=!1;for(T==="newline"&&(z=!0);I&&!z;){var V=I.getAttribute("data-type");if(V==="li-marker"||V==="blockquote-marker"||V==="task-marker"||V==="padding"){var le=I.textContent;if(V==="li-marker"&&(T==="code-block-open-marker"||T==="code-block-info"))R=le.replace(/\S/g," ")+R;else if(T==="code-block-close-marker"&&I.nextElementSibling.isSameNode(E)){var Oe=bt(E,"code-block-open-marker");Oe&&Oe.previousElementSibling&&(I=Oe.previousElementSibling,R=le+R)}else R=le+R}else V==="newline"&&(z=!0);I=I.previousElementSibling}return R},Gt=function(E,T){T===void 0&&(T={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),T.enableHint&&E.hint.render(E),E.preview.render(E);var I=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(I),E.options.counter.enable&&E.counter.render(E,I),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,I),E.options.cache.after&&E.options.cache.after(I)),E.devtools&&E.devtools.renderEchart(E),clearTimeout(E.sv.processTimeoutId),E.sv.processTimeoutId=window.setTimeout(function(){T.enableAddUndoStack&&!E.sv.composingLock&&E.undo.addToUndoStack(E)},E.options.undoDelay)},An=function(E,T){var I=(0,L.zh)(E),R=(0,S.S)(I.startContainer,"SPAN");R&&R.textContent.trim()!==""&&(T=`
- `+T),I.collapse(!0),document.execCommand("insertHTML",!1,T)},Rn=function(E,T,I,R){var z=(0,L.zh)(E),V=T.getAttribute("data-type");E.sv.element.childNodes.length===0&&(E.sv.element.innerHTML=`<span data-type="p" data-block="0"><span data-type="text"><wbr></span></span><span data-type="newline"><br><span style="display: none">
- </span></span>`,(0,L.ib)(E.sv.element,z));var le=(0,A.F9)(z.startContainer),Oe=(0,S.S)(z.startContainer,"SPAN");if(le){if(V==="link"){var Ze=void 0;z.toString()===""?Ze="".concat(I).concat(Lute.Caret).concat(R):Ze="".concat(I).concat(z.toString()).concat(R.replace(")",Lute.Caret+")")),document.execCommand("insertHTML",!1,Ze);return}else if(V==="italic"||V==="bold"||V==="strike"||V==="inline-code"||V==="code"||V==="table"||V==="line"){var Ze=void 0;z.toString()===""?Ze="".concat(I).concat(Lute.Caret).concat(V==="code"?"":R):Ze="".concat(I).concat(z.toString()).concat(Lute.Caret).concat(V==="code"?"":R),V==="table"||V==="code"&&Oe&&Oe.textContent!==""?Ze=`
- `+Ze:V==="line"&&(Ze=`
- `.concat(I,`
- `).concat(Lute.Caret)),document.execCommand("insertHTML",!1,Ze);return}else if((V==="check"||V==="list"||V==="ordered-list"||V==="quote")&&Oe){var $e="* ";V==="check"?$e="* [ ] ":V==="ordered-list"?$e="1. ":V==="quote"&&($e="> ");var dt=bt(Oe,"newline");dt?dt.insertAdjacentText("afterend",$e):le.insertAdjacentText("afterbegin",$e),Y(E);return}(0,L.ib)(E.sv.element,z),Gt(E)}},Kn=function(E){switch(E.currentMode){case"ir":return E.ir.element;case"wysiwyg":return E.wysiwyg.element;case"sv":return E.sv.element}},Fr=function(E,T){E.options.upload.setHeaders&&(E.options.upload.headers=E.options.upload.setHeaders()),E.options.upload.headers&&Object.keys(E.options.upload.headers).forEach(function(I){T.setRequestHeader(I,E.options.upload.headers[I])})},ho=function(E,T,I,R){function z(V){return V instanceof I?V:new I(function(le){le(V)})}return new(I||(I=Promise))(function(V,le){function Oe(dt){try{$e(R.next(dt))}catch(At){le(At)}}function Ze(dt){try{$e(R.throw(dt))}catch(At){le(At)}}function $e(dt){dt.done?V(dt.value):z(dt.value).then(Oe,Ze)}$e((R=R.apply(E,T||[])).next())})},Wr=function(E,T){var I={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},R,z,V,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe($e){return function(dt){return Ze([$e,dt])}}function Ze($e){if(R)throw new TypeError("Generator is already executing.");for(;le&&(le=0,$e[0]&&(I=0)),I;)try{if(R=1,z&&(V=$e[0]&2?z.return:$e[0]?z.throw||((V=z.return)&&V.call(z),0):z.next)&&!(V=V.call(z,$e[1])).done)return V;switch(z=0,V&&($e=[$e[0]&2,V.value]),$e[0]){case 0:case 1:V=$e;break;case 4:return I.label++,{value:$e[1],done:!1};case 5:I.label++,z=$e[1],$e=[0];continue;case 7:$e=I.ops.pop(),I.trys.pop();continue;default:if(V=I.trys,!(V=V.length>0&&V[V.length-1])&&($e[0]===6||$e[0]===2)){I=0;continue}if($e[0]===3&&(!V||$e[1]>V[0]&&$e[1]<V[3])){I.label=$e[1];break}if($e[0]===6&&I.label<V[1]){I.label=V[1],V=$e;break}if(V&&I.label<V[2]){I.label=V[2],I.ops.push($e);break}V[2]&&I.ops.pop(),I.trys.pop();continue}$e=T.call(E,I)}catch(dt){$e=[6,dt],z=0}finally{R=V=0}if($e[0]&5)throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}},bo=(function(){function E(){this.isUploading=!1,this.element=document.createElement("div"),this.element.className="vditor-upload"}return E})(),Bo=function(E,T){E.tip.hide();var I=[],R="",z="";E.options.lang,E.options;for(var V=function($e,dt){var At=T[dt],En=!0;At.name||(R+="<li>".concat(window.VditorI18n.nameEmpty,"</li>"),En=!1),At.size>E.options.upload.max&&(R+="<li>".concat(At.name," ").concat(window.VditorI18n.over," ").concat(E.options.upload.max/1024/1024,"M</li>"),En=!1);var Cn=At.name.lastIndexOf("."),yn=At.name.substr(Cn),un=E.options.upload.filename(At.name.substr(0,Cn))+yn;if(E.options.upload.accept){var kn=E.options.upload.accept.split(",").some(function(fn){var qn=fn.trim();if(qn.indexOf(".")===0){if(yn.toLowerCase()===qn.toLowerCase())return!0}else if(At.type.split("/")[0]===qn.split("/")[0])return!0;return!1});kn||(R+="<li>".concat(At.name," ").concat(window.VditorI18n.fileTypeError,"</li>"),En=!1)}En&&(I.push(At),z+="<li>".concat(un," ").concat(window.VditorI18n.uploading,' <a class="vditorCancelUpload" href="javascript:void(0)">').concat(window.VditorI18n.cancelUpload,"</a></li>"))},le=T.length,Oe=0;Oe<le;Oe++)V(le,Oe);if(E.tip.show("<ul>".concat(R).concat(z,"</ul>")),E.options.upload.cancel){var Ze=E.tip.element.querySelector(".vditorCancelUpload");Ze&&Ze.addEventListener("click",function(){E.options.upload.cancel(I),E.tip.hide(),E.upload.isUploading=!1})}return I},yr=function(E,T){var I=Kn(T);I.focus();var R=JSON.parse(E),z="";R.code===1&&(z="".concat(R.msg)),R.data.errFiles&&R.data.errFiles.length>0&&(z="<ul><li>".concat(z,"</li>"),R.data.errFiles.forEach(function(le){var Oe=le.lastIndexOf("."),Ze=T.options.upload.filename(le.substr(0,Oe))+le.substr(Oe);z+="<li>".concat(Ze," ").concat(window.VditorI18n.uploadError,"</li>")}),z+="</ul>"),z?T.tip.show(z):T.tip.hide();var V="";Object.keys(R.data.succMap).forEach(function(le){var Oe=R.data.succMap[le],Ze=le.lastIndexOf("."),$e=le.substr(Ze),dt=T.options.upload.filename(le.substr(0,Ze))+$e;$e=$e.toLowerCase(),$e.indexOf(".wav")===0||$e.indexOf(".mp3")===0||$e.indexOf(".ogg")===0?T.currentMode==="wysiwyg"?V+=`<div class="vditor-wysiwyg__block" data-type="html-block"
- data-block="0"><pre><code><audio controls="controls" src="`.concat(Oe,'"></audio></code></pre><pre class="vditor-wysiwyg__preview" data-render="1"><audio controls="controls" src="').concat(Oe,`"></audio></pre></div>
- `):T.currentMode==="ir"?V+='<audio controls="controls" src="'.concat(Oe,`"></audio>
- `):V+="[".concat(dt,"](").concat(Oe,`)
- `):$e.indexOf(".apng")===0||$e.indexOf(".bmp")===0||$e.indexOf(".gif")===0||$e.indexOf(".ico")===0||$e.indexOf(".cur")===0||$e.indexOf(".jpg")===0||$e.indexOf(".jpeg")===0||$e.indexOf(".jfif")===0||$e.indexOf(".pjp")===0||$e.indexOf(".pjpeg")===0||$e.indexOf(".png")===0||$e.indexOf(".svg")===0||$e.indexOf(".webp")===0?T.currentMode==="wysiwyg"?V+='<img alt="'.concat(dt,'" src="').concat(Oe,`">
- `):V+=".concat(Oe,`)
- `):T.currentMode==="wysiwyg"?V+='<a href="'.concat(Oe,'">').concat(dt,`</a>
- `):V+="[".concat(dt,"](").concat(Oe,`)
- `)}),(0,L.Hc)(T.upload.range),document.execCommand("insertHTML",!1,V),T.upload.range=getSelection().getRangeAt(0).cloneRange()},Vr=function(E,T,I){return ho(void 0,void 0,void 0,function(){var R,z,yn,V,le,le,Oe,Ze,$e,dt,At,En,Cn,yn,un,kn;return Wr(this,function(fn){switch(fn.label){case 0:for(R=[],z=E.options.upload.multiple===!0?T.length:1,yn=0;yn<z;yn++)V=T[yn],V instanceof DataTransferItem&&(V=V.getAsFile()),R.push(V);return E.options.upload.handler?[4,E.options.upload.handler(R)]:[3,2];case 1:return le=fn.sent(),I&&(I.value=""),typeof le=="string"?(E.tip.show(le),[2]):[2];case 2:return!E.options.upload.url||!E.upload?(I&&(I.value=""),E.tip.show("please config: options.upload.url"),[2]):E.options.upload.file?[4,E.options.upload.file(R)]:[3,4];case 3:R=fn.sent(),fn.label=4;case 4:if(E.options.upload.validate&&(le=E.options.upload.validate(R),typeof le=="string"))return E.tip.show(le),[2];if(Oe=Kn(E),E.upload.range=(0,L.zh)(E),Ze=Bo(E,R),Ze.length===0)return I&&(I.value=""),[2];for($e=new FormData,dt=E.options.upload.extraData,At=0,En=Object.keys(dt);At<En.length;At++)Cn=En[At],$e.append(Cn,dt[Cn]);for(yn=0,un=Ze.length;yn<un;yn++)$e.append(E.options.upload.fieldName,Ze[yn]);return kn=new XMLHttpRequest,E.upload.xhr=kn,kn.open("POST",E.options.upload.url),E.options.upload.token&&kn.setRequestHeader("X-Upload-Token",E.options.upload.token),E.options.upload.withCredentials&&(kn.withCredentials=!0),Fr(E,kn),E.upload.isUploading=!0,Oe.setAttribute("contenteditable","false"),kn.onreadystatechange=function(){if(kn.readyState===XMLHttpRequest.DONE){if(E.upload.isUploading=!1,Oe.setAttribute("contenteditable","true"),kn.status>=200&&kn.status<300)if(E.options.upload.success)E.options.upload.success(Oe,kn.responseText);else{var qn=kn.responseText;E.options.upload.format&&(qn=E.options.upload.format(T,kn.responseText)),yr(qn,E)}else E.options.upload.error?E.options.upload.error(kn.responseText):E.tip.show(kn.responseText);I&&(I.value=""),E.upload.element.style.display="none",E.upload.xhr=void 0}},kn.upload.onprogress=function(qn){if(qn.lengthComputable){var $n=qn.loaded/qn.total*100;E.upload.element.style.display="block";var gr=E.upload.element;gr.style.width=$n+"%"}},kn.send($e),[2]}})})},wo=function(E,T,I){var R,z=(0,A.F9)(T.startContainer);if(z||(z=E.wysiwyg.element),I&&I.inputType!=="formatItalic"&&I.inputType!=="deleteByDrag"&&I.inputType!=="insertFromDrop"&&I.inputType!=="formatBold"&&I.inputType!=="formatRemove"&&I.inputType!=="formatStrikeThrough"&&I.inputType!=="insertUnorderedList"&&I.inputType!=="insertOrderedList"&&I.inputType!=="formatOutdent"&&I.inputType!=="formatIndent"&&I.inputType!==""||!I){var V=pt(T.startContainer);V&&V.remove(),E.wysiwyg.element.querySelectorAll("wbr").forEach(function($n){$n.remove()}),T.insertNode(document.createElement("wbr")),z.querySelectorAll("[style]").forEach(function($n){$n.removeAttribute("style")}),z.querySelectorAll(".vditor-comment").forEach(function($n){$n.textContent.trim()===""&&($n.classList.remove("vditor-comment","vditor-comment--focus"),$n.removeAttribute("data-cmtids"))}),(R=z.previousElementSibling)===null||R===void 0||R.querySelectorAll(".vditor-comment").forEach(function($n){$n.textContent.trim()===""&&($n.classList.remove("vditor-comment","vditor-comment--focus"),$n.removeAttribute("data-cmtids"))});var le="";z.getAttribute("data-type")==="link-ref-defs-block"&&(z=E.wysiwyg.element);var Oe=z.isEqualNode(E.wysiwyg.element),Ze=(0,A.a1)(z,"data-type","footnotes-block");if(Oe)le=z.innerHTML;else{var $e=(0,A.O9)(T.startContainer);if($e&&!Ze){var dt=(0,S.S)(T.startContainer,"BLOCKQUOTE");dt?z=(0,A.F9)(T.startContainer)||z:z=$e}if(Ze&&(z=Ze),le=z.outerHTML,z.tagName==="UL"||z.tagName==="OL"){var At=z.previousElementSibling,En=z.nextElementSibling;At&&(At.tagName==="UL"||At.tagName==="OL")&&(le=At.outerHTML+le,At.remove()),En&&(En.tagName==="UL"||En.tagName==="OL")&&(le=le+En.outerHTML,En.remove()),le=le.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}z.innerText.startsWith("```")||(E.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function($n){$n&&!z.isEqualNode($n)&&(le+=$n.outerHTML,$n.remove())}),E.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach(function($n){$n&&!z.isEqualNode($n)&&(le+=$n.outerHTML,$n.remove())}))}if(le=le.replace(/<\/(strong|b)><strong data-marker="\W{2}">/g,"").replace(/<\/(em|i)><em data-marker="\W{1}">/g,"").replace(/<\/(s|strike)><s data-marker="~{1,2}">/g,""),le==='<p data-block="0">```<wbr></p>'&&E.hint.recentLanguage&&(le='<p data-block="0">```<wbr></p>'.replace("```","```"+E.hint.recentLanguage)),k("SpinVditorDOM",le,"argument",E.options.debugger),le=E.lute.SpinVditorDOM(le),k("SpinVditorDOM",le,"result",E.options.debugger),Oe)z.innerHTML=le;else if(z.outerHTML=le,Ze){var Cn=(0,A.E2)(E.wysiwyg.element.querySelector("wbr"),"LI");if(Cn){var yn=E.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(Cn.getAttribute("data-marker"),'"]'));yn&&yn.setAttribute("aria-label",Cn.textContent.trim().substr(0,24))}}var un,kn=E.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");kn.forEach(function($n,gr){gr===0?un=$n:(un.insertAdjacentHTML("beforeend",$n.innerHTML),$n.remove())}),kn.length>0&&E.wysiwyg.element.insertAdjacentElement("beforeend",kn[0]);var fn,qn=E.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");qn.forEach(function($n,gr){gr===0?fn=$n:(fn.insertAdjacentHTML("beforeend",$n.innerHTML),$n.remove())}),qn.length>0&&E.wysiwyg.element.insertAdjacentElement("beforeend",qn[0]),(0,L.ib)(E.wysiwyg.element,T),E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function($n){$($n,E)}),I&&(I.inputType==="deleteContentBackward"||I.inputType==="deleteContentForward")&&E.options.comment.enable&&(E.wysiwyg.triggerRemoveComment(E),E.options.comment.adjustTop(E.wysiwyg.getComments(E,!0)))}W(E),Ne(E,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},Nr=function(E,T){return Object.defineProperty?Object.defineProperty(E,"raw",{value:T}):E.raw=T,E},Br=function(E,T,I,R){function z(V){return V instanceof I?V:new I(function(le){le(V)})}return new(I||(I=Promise))(function(V,le){function Oe(dt){try{$e(R.next(dt))}catch(At){le(At)}}function Ze(dt){try{$e(R.throw(dt))}catch(At){le(At)}}function $e(dt){dt.done?V(dt.value):z(dt.value).then(Oe,Ze)}$e((R=R.apply(E,T||[])).next())})},zr=function(E,T){var I={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},R,z,V,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe($e){return function(dt){return Ze([$e,dt])}}function Ze($e){if(R)throw new TypeError("Generator is already executing.");for(;le&&(le=0,$e[0]&&(I=0)),I;)try{if(R=1,z&&(V=$e[0]&2?z.return:$e[0]?z.throw||((V=z.return)&&V.call(z),0):z.next)&&!(V=V.call(z,$e[1])).done)return V;switch(z=0,V&&($e=[$e[0]&2,V.value]),$e[0]){case 0:case 1:V=$e;break;case 4:return I.label++,{value:$e[1],done:!1};case 5:I.label++,z=$e[1],$e=[0];continue;case 7:$e=I.ops.pop(),I.trys.pop();continue;default:if(V=I.trys,!(V=V.length>0&&V[V.length-1])&&($e[0]===6||$e[0]===2)){I=0;continue}if($e[0]===3&&(!V||$e[1]>V[0]&&$e[1]<V[3])){I.label=$e[1];break}if($e[0]===6&&I.label<V[1]){I.label=V[1],V=$e;break}if(V&&I.label<V[2]){I.label=V[2],I.ops.push($e);break}V[2]&&I.ops.pop(),I.trys.pop();continue}$e=T.call(E,I)}catch(dt){$e=[6,dt],z=0}finally{R=V=0}if($e[0]&5)throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}},Ao=function(E,T,I){if(E.keyCode===229&&E.code===""&&E.key==="Unidentified"&&T.currentMode!=="sv"){var R=(0,A.F9)(I);if(R&&R.textContent.trim()==="")return T[T.currentMode].composingLock=!0,!1}return!0},Cr=function(E,T,I){if(!(I.key==="Enter"||I.key==="Tab"||I.key==="Backspace"||I.key.indexOf("Arrow")>-1||(0,f.yl)(I)||I.key==="Escape"||I.shiftKey||I.altKey)){var R=(0,A.lG)(E.startContainer,"P")||(0,A.lG)(E.startContainer,"LI");if(R&&(0,L.im)(R,T[T.currentMode].element,E).start===0){R.nodeValue&&(R.nodeValue=R.nodeValue.replace(/\u2006/g,""));var z=document.createTextNode(s.g.ZWSP);E.insertNode(z),E.setStartAfter(z)}}},Ho=function(E,T){if(T==="ArrowDown"||T==="ArrowUp"){var I=(0,A.a1)(E.startContainer,"data-type","math-inline")||(0,A.a1)(E.startContainer,"data-type","html-entity")||(0,A.a1)(E.startContainer,"data-type","html-inline");I&&(T==="ArrowDown"&&E.setStartAfter(I.parentElement),T==="ArrowUp"&&E.setStartBefore(I.parentElement))}},Xo=function(E,T){var I=(0,L.zh)(E),R=(0,A.F9)(I.startContainer);R&&(R.insertAdjacentHTML(T,'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
- </p>`)),(0,L.ib)(E[E.currentMode].element,I),Ye(E),_r(E))},qi=function(E){var T=(0,A.lG)(E,"TABLE");return T&&T.rows[0].cells[0].isSameNode(E)?T:!1},na=function(E){var T=(0,A.lG)(E,"TABLE");return T&&T.lastElementChild.lastElementChild.lastElementChild.isSameNode(E)?T:!1},ti=function(E,T,I){I===void 0&&(I=!0);var R=E.previousElementSibling;return R||(E.parentElement.previousElementSibling?R=E.parentElement.previousElementSibling.lastElementChild:E.parentElement.parentElement.tagName==="TBODY"&&E.parentElement.parentElement.previousElementSibling?R=E.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:R=null),R&&(T.selectNodeContents(R),I||T.collapse(!1),(0,L.Hc)(T)),R},Lo=function(E,T,I,R,z){var V=(0,L.im)(R,E[E.currentMode].element,I);if(T.key==="ArrowDown"&&R.textContent.trimRight().substr(V.start).indexOf(`
- `)===-1||T.key==="ArrowRight"&&V.start>=R.textContent.trimRight().length){var le=z.nextElementSibling;return!le||le&&(le.tagName==="TABLE"||le.getAttribute("data-type"))?(z.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,L.ib)(E[E.currentMode].element,I)):(I.selectNodeContents(le),I.collapse(!0),(0,L.Hc)(I)),T.preventDefault(),!0}return!1},Yo=function(E,T,I,R,z){var V=(0,L.im)(R,E[E.currentMode].element,I);if(T.key==="ArrowUp"&&R.textContent.substr(0,V.start).indexOf(`
- `)===-1||(T.key==="ArrowLeft"||T.key==="Backspace"&&I.toString()==="")&&V.start===0){var le=z.previousElementSibling;return!le||le&&(le.tagName==="TABLE"||le.getAttribute("data-type"))?(z.insertAdjacentHTML("beforebegin",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,L.ib)(E[E.currentMode].element,I)):(I.selectNodeContents(le),I.collapse(!1),(0,L.Hc)(I)),T.preventDefault(),!0}return!1},Pa=function(E,T,I,R){R===void 0&&(R=!0);var z=(0,A.lG)(T.startContainer,"LI");if(E[E.currentMode].element.querySelectorAll("wbr").forEach(function(dt){dt.remove()}),T.insertNode(document.createElement("wbr")),R&&z){for(var V="",le=0;le<z.parentElement.childElementCount;le++){var Oe=z.parentElement.children[le].querySelector("input");Oe&&Oe.remove(),V+='<p data-block="0">'.concat(z.parentElement.children[le].innerHTML.trimLeft(),"</p>")}z.parentElement.insertAdjacentHTML("beforebegin",V),z.parentElement.remove()}else if(z)if(I==="check")z.parentElement.querySelectorAll("li").forEach(function(dt){dt.insertAdjacentHTML("afterbegin",'<input type="checkbox" />'.concat(dt.textContent.indexOf(" ")===0?"":" ")),dt.classList.add("vditor-task")});else{z.querySelector("input")&&z.parentElement.querySelectorAll("li").forEach(function(dt){dt.querySelector("input").remove(),dt.classList.remove("vditor-task")});var $e=void 0;I==="list"?($e=document.createElement("ul"),$e.setAttribute("data-marker","*")):($e=document.createElement("ol"),$e.setAttribute("data-marker","1.")),$e.setAttribute("data-block","0"),$e.setAttribute("data-tight",z.parentElement.getAttribute("data-tight")),$e.innerHTML=z.parentElement.innerHTML,z.parentElement.parentNode.replaceChild($e,z.parentElement)}else{var Ze=(0,A.a1)(T.startContainer,"data-block","0");Ze||(E[E.currentMode].element.querySelector("wbr").remove(),Ze=E[E.currentMode].element.querySelector("p"),Ze.innerHTML="<wbr>"),I==="check"?(Ze.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li class="vditor-task"><input type="checkbox" /> '.concat(Ze.innerHTML,"</li></ul>")),Ze.remove()):I==="list"?(Ze.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li>'.concat(Ze.innerHTML,"</li></ul>")),Ze.remove()):I==="ordered-list"&&(Ze.insertAdjacentHTML("beforebegin",'<ol data-block="0"><li>'.concat(Ze.innerHTML,"</li></ol>")),Ze.remove())}},Ai=function(E,T,I){var R=T.previousElementSibling;if(T&&R){var z=[T];Array.from(I.cloneContents().children).forEach(function(Ze,$e){Ze.nodeType!==3&&T&&Ze.textContent.trim()!==""&&T.getAttribute("data-node-id")===Ze.getAttribute("data-node-id")&&($e!==0&&z.push(T),T=T.nextElementSibling)}),E[E.currentMode].element.querySelectorAll("wbr").forEach(function(Ze){Ze.remove()}),I.insertNode(document.createElement("wbr"));var V=R.parentElement,le="";z.forEach(function(Ze){var $e=Ze.getAttribute("data-marker");$e.length!==1&&($e="1".concat($e.slice(-1))),le+='<li data-node-id="'.concat(Ze.getAttribute("data-node-id"),'" data-marker="').concat($e,'">').concat(Ze.innerHTML,"</li>"),Ze.remove()}),R.insertAdjacentHTML("beforeend","<".concat(V.tagName,' data-block="0">').concat(le,"</").concat(V.tagName,">")),E.currentMode==="wysiwyg"?V.outerHTML=E.lute.SpinVditorDOM(V.outerHTML):V.outerHTML=E.lute.SpinVditorIRDOM(V.outerHTML),(0,L.ib)(E[E.currentMode].element,I);var Oe=(0,A.O9)(I.startContainer);Oe&&Oe.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(Ze){$(Ze,E),E.currentMode==="wysiwyg"&&Ze.previousElementSibling.setAttribute("style","display:none")}),_r(E),Ye(E)}else E[E.currentMode].element.focus()},Ci=function(E,T,I,R){var z=(0,A.lG)(T.parentElement,"LI");if(z){E[E.currentMode].element.querySelectorAll("wbr").forEach(function(At){At.remove()}),I.insertNode(document.createElement("wbr"));var V=T.parentElement,le=V.cloneNode(),Oe=[T];Array.from(I.cloneContents().children).forEach(function(At,En){At.nodeType!==3&&T&&At.textContent.trim()!==""&&T.getAttribute("data-node-id")===At.getAttribute("data-node-id")&&(En!==0&&Oe.push(T),T=T.nextElementSibling)});var Ze=!1,$e="";V.querySelectorAll("li").forEach(function(At){Ze&&($e+=At.outerHTML,!At.nextElementSibling&&!At.previousElementSibling?At.parentElement.remove():At.remove()),At.isSameNode(Oe[Oe.length-1])&&(Ze=!0)}),Oe.reverse().forEach(function(At){z.insertAdjacentElement("afterend",At)}),$e&&(le.innerHTML=$e,Oe[0].insertAdjacentElement("beforeend",le)),E.currentMode==="wysiwyg"?R.outerHTML=E.lute.SpinVditorDOM(R.outerHTML):R.outerHTML=E.lute.SpinVditorIRDOM(R.outerHTML),(0,L.ib)(E[E.currentMode].element,I);var dt=(0,A.O9)(I.startContainer);dt&&dt.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(At){$(At,E),E.currentMode==="wysiwyg"&&At.previousElementSibling.setAttribute("style","display:none")}),_r(E),Ye(E)}else E[E.currentMode].element.focus()},xi=function(E,T){for(var I=getSelection().getRangeAt(0).startContainer.parentElement,R=E.rows[0].cells.length,z=E.rows.length,V=0,le=0;le<z;le++)for(var Oe=0;Oe<R;Oe++)if(E.rows[le].cells[Oe].isSameNode(I)){V=Oe;break}for(var Ze=0;Ze<z;Ze++)E.rows[Ze].cells[V].setAttribute("align",T)},mi=function(E){var T=E.trimRight().split(`
- `).pop();return T===""?!1:(T.replace(/ |-/g,"")===""||T.replace(/ |_/g,"")===""||T.replace(/ |\*/g,"")==="")&&T.replace(/ /g,"").length>2?!(T.indexOf("-")>-1&&T.trimLeft().indexOf(" ")===-1&&E.trimRight().split(`
- `).length>1||T.indexOf(" ")===0||T.indexOf(" ")===0):!1},ra=function(E){var T=E.trimRight().split(`
- `);return E=T.pop(),E.indexOf(" ")===0||E.indexOf(" ")===0||(E=E.trimLeft(),E===""||T.length===0)?!1:E.replace(/-/g,"")===""||E.replace(/=/g,"")===""},_r=function(E,T){T===void 0&&(T={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),E.currentMode==="wysiwyg"?Ne(E,T):E.currentMode==="ir"?ye(E,T):E.currentMode==="sv"&&Gt(E,T)},Si=function(E,T,I,R){var z,V=E.startContainer,le=(0,A.lG)(V,"LI");if(le){if(!(0,f.yl)(R)&&!R.altKey&&R.key==="Enter"&&!R.shiftKey&&I&&le.contains(I)&&I.nextElementSibling)return le&&!le.textContent.endsWith(`
- `)&&le.insertAdjacentText("beforeend",`
- `),E.insertNode(document.createTextNode(`
- `)),E.collapse(!1),_r(T),R.preventDefault(),!0;if(!(0,f.yl)(R)&&!R.shiftKey&&!R.altKey&&R.key==="Backspace"&&!le.previousElementSibling&&E.toString()===""&&(0,L.im)(le,T[T.currentMode].element,E).start===0)return le.nextElementSibling?(le.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(le.innerHTML,"</p>")),le.remove()):le.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(le.innerHTML,"</p>"),(0,L.ib)(T[T.currentMode].element,E),_r(T),R.preventDefault(),!0;if(!(0,f.yl)(R)&&!R.shiftKey&&!R.altKey&&R.key==="Backspace"&&le.textContent.trim().replace(s.g.ZWSP,"")===""&&E.toString()===""&&((z=le.previousElementSibling)===null||z===void 0?void 0:z.tagName)==="LI")return le.previousElementSibling.insertAdjacentText("beforeend",`
- `),E.selectNodeContents(le.previousElementSibling),E.collapse(!1),le.remove(),(0,L.ib)(T[T.currentMode].element,E),_r(T),R.preventDefault(),!0;if(!(0,f.yl)(R)&&!R.altKey&&R.key==="Tab"){var Oe=!1;if((E.startOffset===0&&(V.nodeType===3&&!V.previousSibling||V.nodeType!==3&&V.nodeName==="LI")||le.classList.contains("vditor-task")&&E.startOffset===1&&V.previousSibling.nodeType!==3&&V.previousSibling.tagName==="INPUT")&&(Oe=!0),Oe||E.toString()!=="")return R.shiftKey?Ci(T,le,E,le.parentElement):Ai(T,le,E),R.preventDefault(),!0}}return!1},ha=function(E,T,I){if(E.options.tab&&I.key==="Tab")return I.shiftKey||(T.toString()===""?(T.insertNode(document.createTextNode(E.options.tab)),T.collapse(!1)):(T.extractContents(),T.insertNode(document.createTextNode(E.options.tab)),T.collapse(!1))),(0,L.Hc)(T),_r(E),I.preventDefault(),!0},Qe=function(E,T,I,R){if(I){if(!(0,f.yl)(E)&&!E.altKey&&E.key==="Enter"){var z=String.raw(cr||(cr=Nr(["",""],["",""])),I.textContent).replace(/\\\|/g,"").trim(),V=z.split("|");if(z.startsWith("|")&&z.endsWith("|")&&V.length>3){var le=V.map(function(){return"---"}).join("|");return le=I.textContent+`
- `+le.substring(3,le.length-3)+`
- |<wbr>`,I.outerHTML=T.lute.SpinVditorDOM(le),(0,L.ib)(T[T.currentMode].element,R),_r(T),Mn(T),E.preventDefault(),!0}if(mi(I.innerHTML)&&I.previousElementSibling){var Oe="",Ze=I.innerHTML.trimRight().split(`
- `);return Ze.length>1&&(Ze.pop(),Oe='<p data-block="0">'.concat(Ze.join(`
- `),"</p>")),I.insertAdjacentHTML("afterend","".concat(Oe,`<hr data-block="0"><p data-block="0"><wbr>
- </p>`)),I.remove(),(0,L.ib)(T[T.currentMode].element,R),_r(T),Mn(T),E.preventDefault(),!0}if(ra(I.innerHTML))return T.currentMode==="wysiwyg"?I.outerHTML=T.lute.SpinVditorDOM(I.innerHTML+`<p data-block="0"><wbr>
- </p>`):I.outerHTML=T.lute.SpinVditorIRDOM(I.innerHTML+`<p data-block="0"><wbr>
- </p>`),(0,L.ib)(T[T.currentMode].element,R),_r(T),Mn(T),E.preventDefault(),!0}if(R.collapsed&&I.previousElementSibling&&E.key==="Backspace"&&!(0,f.yl)(E)&&!E.altKey&&!E.shiftKey&&I.textContent.trimRight().split(`
- `).length>1&&(0,L.im)(I,T[T.currentMode].element,R).start===0){var $e=(0,A.DX)(I.previousElementSibling);return $e.textContent.endsWith(`
- `)||($e.textContent=$e.textContent+`
- `),$e.parentElement.insertAdjacentHTML("beforeend","<wbr>".concat(I.innerHTML)),I.remove(),(0,L.ib)(T[T.currentMode].element,R),!1}return!1}},qe=function(E,T,I){for(var R="",z=0;z<I.parentElement.childElementCount;z++)R+='<td align="'.concat(I.parentElement.children[z].getAttribute("align"),'"> </td>');I.tagName==="TH"?I.parentElement.parentElement.insertAdjacentHTML("afterend","<tbody><tr>".concat(R,"</tr></tbody>")):I.parentElement.insertAdjacentHTML("afterend","<tr>".concat(R,"</tr>")),_r(E)},ne=function(E,T,I){for(var R="",z=0;z<I.parentElement.childElementCount;z++)I.tagName==="TH"?R+='<th align="'.concat(I.parentElement.children[z].getAttribute("align"),'"> </th>'):R+='<td align="'.concat(I.parentElement.children[z].getAttribute("align"),'"> </td>');if(I.tagName==="TH"){I.parentElement.parentElement.insertAdjacentHTML("beforebegin","<thead><tr>".concat(R,"</tr></thead>")),T.insertNode(document.createElement("wbr"));var V=I.parentElement.innerHTML.replace(/<th>/g,"<td>").replace(/<\/th>/g,"</td>");I.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",V),I.parentElement.parentElement.remove(),(0,L.ib)(E.ir.element,T)}else I.parentElement.insertAdjacentHTML("beforebegin","<tr>".concat(R,"</tr>"));_r(E)},Ie=function(E,T,I,R){R===void 0&&(R="afterend");for(var z=0,V=I.previousElementSibling;V;)z++,V=V.previousElementSibling;for(var le=0;le<T.rows.length;le++)le===0?T.rows[le].cells[z].insertAdjacentHTML(R,"<th> </th>"):T.rows[le].cells[z].insertAdjacentHTML(R,"<td> </td>");_r(E)},Ge=function(E,T,I){if(I.tagName==="TD"){var R=I.parentElement.parentElement;I.parentElement.previousElementSibling?T.selectNodeContents(I.parentElement.previousElementSibling.lastElementChild):T.selectNodeContents(R.previousElementSibling.lastElementChild.lastElementChild),R.childElementCount===1?R.remove():I.parentElement.remove(),T.collapse(!1),(0,L.Hc)(T),_r(E)}},Ft=function(E,T,I,R){for(var z=0,V=R.previousElementSibling;V;)z++,V=V.previousElementSibling;(R.previousElementSibling||R.nextElementSibling)&&(T.selectNodeContents(R.previousElementSibling||R.nextElementSibling),T.collapse(!0));for(var le=0;le<I.rows.length;le++){var Oe=I.rows[le].cells;if(Oe.length===1){I.remove(),Ye(E);break}Oe[z].remove()}(0,L.Hc)(T),_r(E)},It=function(E,T,I){var R=I.startContainer,z=(0,A.lG)(R,"TD")||(0,A.lG)(R,"TH");if(z){if(!(0,f.yl)(T)&&!T.altKey&&T.key==="Enter"){(!z.lastElementChild||z.lastElementChild&&(!z.lastElementChild.isSameNode(z.lastChild)||z.lastElementChild.tagName!=="BR"))&&z.insertAdjacentHTML("beforeend","<br>");var V=document.createElement("br");return I.insertNode(V),I.setStartAfter(V),_r(E),Mn(E),T.preventDefault(),!0}if(T.key==="Tab"){if(T.shiftKey)return ti(z,I),T.preventDefault(),!0;var le=z.nextElementSibling;return le||(z.parentElement.nextElementSibling?le=z.parentElement.nextElementSibling.firstElementChild:z.parentElement.parentElement.tagName==="THEAD"&&z.parentElement.parentElement.nextElementSibling?le=z.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:le=null),le&&(I.selectNodeContents(le),(0,L.Hc)(I)),T.preventDefault(),!0}var Oe=z.parentElement.parentElement.parentElement;if(T.key==="ArrowUp"){if(T.preventDefault(),z.tagName==="TH")return Oe.previousElementSibling?(I.selectNodeContents(Oe.previousElementSibling),I.collapse(!1),(0,L.Hc)(I)):Xo(E,"beforebegin"),!0;for(var Ze=0,$e=z.parentElement;Ze<$e.cells.length&&!$e.cells[Ze].isSameNode(z);Ze++);var dt=$e.previousElementSibling;return dt||(dt=$e.parentElement.previousElementSibling.firstChild),I.selectNodeContents(dt.cells[Ze]),I.collapse(!1),(0,L.Hc)(I),!0}if(T.key==="ArrowDown"){T.preventDefault();var $e=z.parentElement;if(!$e.nextElementSibling&&z.tagName==="TD")return Oe.nextElementSibling?(I.selectNodeContents(Oe.nextElementSibling),I.collapse(!0),(0,L.Hc)(I)):Xo(E,"afterend"),!0;for(var Ze=0;Ze<$e.cells.length&&!$e.cells[Ze].isSameNode(z);Ze++);var le=$e.nextElementSibling;return le||(le=$e.parentElement.nextElementSibling.firstChild),I.selectNodeContents(le.cells[Ze]),I.collapse(!0),(0,L.Hc)(I),!0}if(E.currentMode==="wysiwyg"&&!(0,f.yl)(T)&&T.key==="Enter"&&!T.shiftKey&&T.altKey){var At=E.wysiwyg.popover.querySelector(".vditor-input");return At.focus(),At.select(),T.preventDefault(),!0}if(!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&T.key==="Backspace"&&I.startOffset===0&&I.toString()===""){var En=ti(z,I,!1);return!En&&Oe&&(Oe.textContent.trim()===""?(Oe.outerHTML=`<p data-block="0"><wbr>
- </p>`,(0,L.ib)(E[E.currentMode].element,I)):(I.setStartBefore(Oe),I.collapse(!0)),_r(E)),T.preventDefault(),!0}if(X("⇧⌘F",T))return ne(E,I,z),T.preventDefault(),!0;if(X("⌘=",T))return qe(E,I,z),T.preventDefault(),!0;if(X("⇧⌘G",T))return Ie(E,Oe,z,"beforebegin"),T.preventDefault(),!0;if(X("⇧⌘=",T))return Ie(E,Oe,z),T.preventDefault(),!0;if(X("⌘-",T))return Ge(E,I,z),T.preventDefault(),!0;if(X("⇧⌘-",T))return Ft(E,I,Oe,z),T.preventDefault(),!0;if(X("⇧⌘L",T)){if(E.currentMode==="ir")return xi(Oe,"left"),_r(E),T.preventDefault(),!0;var Cn=E.wysiwyg.popover.querySelector('[data-type="left"]');if(Cn)return Cn.click(),T.preventDefault(),!0}if(X("⇧⌘C",T)){if(E.currentMode==="ir")return xi(Oe,"center"),_r(E),T.preventDefault(),!0;var Cn=E.wysiwyg.popover.querySelector('[data-type="center"]');if(Cn)return Cn.click(),T.preventDefault(),!0}if(X("⇧⌘R",T)){if(E.currentMode==="ir")return xi(Oe,"right"),_r(E),T.preventDefault(),!0;var Cn=E.wysiwyg.popover.querySelector('[data-type="right"]');if(Cn)return Cn.click(),T.preventDefault(),!0}}return!1},on=function(E,T,I,R){if(I.tagName==="PRE"&&X("⌘A",T))return R.selectNodeContents(I.firstElementChild),T.preventDefault(),!0;if(E.options.tab&&T.key==="Tab"&&!T.shiftKey&&R.toString()==="")return R.insertNode(document.createTextNode(E.options.tab)),R.collapse(!1),_r(E),T.preventDefault(),!0;if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey){var z=(0,L.im)(I,E[E.currentMode].element,R);if((z.start===0||z.start===1&&I.innerText===`
- `)&&R.toString()==="")return I.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(I.firstElementChild.innerHTML,"</p>"),(0,L.ib)(E[E.currentMode].element,R),_r(E),T.preventDefault(),!0}return!(0,f.yl)(T)&&!T.altKey&&T.key==="Enter"?(I.firstElementChild.textContent.endsWith(`
- `)||I.firstElementChild.insertAdjacentText("beforeend",`
- `),R.extractContents(),R.insertNode(document.createTextNode(`
- `)),R.collapse(!1),(0,L.Hc)(R),(0,f.vU)()||(E.currentMode==="wysiwyg"?wo(E,R):te(E,R)),Mn(E),T.preventDefault(),!0):!1},vn=function(E,T,I,R){var z=T.startContainer,V=(0,A.lG)(z,"BLOCKQUOTE");if(V&&T.toString()===""){if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&(0,L.im)(V,E[E.currentMode].element,T).start===0)return T.insertNode(document.createElement("wbr")),V.outerHTML=V.innerHTML,(0,L.ib)(E[E.currentMode].element,T),_r(E),I.preventDefault(),!0;if(R&&I.key==="Enter"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&R.parentElement.tagName==="BLOCKQUOTE"){var le=!1;if(R.innerHTML.replace(s.g.ZWSP,"")===`
- `||R.innerHTML.replace(s.g.ZWSP,"")===""?(le=!0,R.remove()):R.innerHTML.endsWith(`
- `)&&(0,L.im)(R,E[E.currentMode].element,T).start===R.textContent.length-1&&(R.innerHTML=R.innerHTML.substr(0,R.innerHTML.length-2),le=!0),le)return V.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
- </p>`)),(0,L.ib)(E[E.currentMode].element,T),_r(E),I.preventDefault(),!0}var Oe=(0,A.F9)(z);if(E.currentMode==="wysiwyg"&&Oe&&X("⇧⌘;",I))return T.insertNode(document.createElement("wbr")),Oe.outerHTML='<blockquote data-block="0">'.concat(Oe.outerHTML,"</blockquote>"),(0,L.ib)(E.wysiwyg.element,T),Ne(E),I.preventDefault(),!0;if(Lo(E,I,T,V,V)||Yo(E,I,T,V,V))return!0}return!1},_n=function(E,T,I){var R=T.startContainer,z=(0,A.lG)(R,"LI");if(z&&z.classList.contains("vditor-task")){if(X("⇧⌘J",I)){var V=z.firstElementChild;return V.checked?V.removeAttribute("checked"):V.setAttribute("checked","checked"),_r(E),I.preventDefault(),!0}if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&T.toString()===""&&T.startOffset===1&&(R.nodeType===3&&R.previousSibling&&R.previousSibling.tagName==="INPUT"||R.nodeType!==3)){var le=z.previousElementSibling;if(z.querySelector("input").remove(),le){var Oe=(0,A.DX)(le);Oe.parentElement.insertAdjacentHTML("beforeend","<wbr>"+z.innerHTML.trim()),z.remove()}else z.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(z.innerHTML.trim()||`
- `,"</p>")),z.nextElementSibling?z.remove():z.parentElement.remove();return(0,L.ib)(E[E.currentMode].element,T),_r(E),I.preventDefault(),!0}if(I.key==="Enter"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey){if(z.textContent.trim()==="")if((0,A.fb)(z.parentElement,"vditor-task")){var Ze=(0,A.O9)(R);Ze&&Ci(E,z,T,Ze)}else if(z.nextElementSibling){var $e="",dt="",At=!1;Array.from(z.parentElement.children).forEach(function(un){z.isSameNode(un)?At=!0:At?$e+=un.outerHTML:dt+=un.outerHTML});var En=z.parentElement.tagName,Cn=z.parentElement.tagName==="OL"?"":' data-marker="'.concat(z.parentElement.getAttribute("data-marker"),'"'),yn="";dt&&(yn=z.parentElement.tagName==="UL"?"":' start="1"',dt="<".concat(En,' data-tight="true"').concat(Cn,' data-block="0">').concat(dt,"</").concat(En,">")),z.parentElement.outerHTML="".concat(dt,`<p data-block="0"><wbr>
- </p><`).concat(En,`
- data-tight="true"`).concat(Cn,' data-block="0"').concat(yn,">").concat($e,"</").concat(En,">")}else z.parentElement.insertAdjacentHTML("afterend",`<p data-block="0"><wbr>
- </p>`),z.parentElement.querySelectorAll("li").length===1?z.parentElement.remove():z.remove();else R.nodeType!==3&&T.startOffset===0&&R.firstChild.tagName==="INPUT"?T.setStart(R.childNodes[1],1):(T.setEndAfter(z.lastChild),z.insertAdjacentHTML("afterend",'<li class="vditor-task" data-marker="'.concat(z.getAttribute("data-marker"),'"><input type="checkbox"> <wbr></li>')),document.querySelector("wbr").after(T.extractContents()));return(0,L.ib)(E[E.currentMode].element,T),_r(E),Mn(E),I.preventDefault(),!0}}return!1},or=function(E,T,I,R){if(T.startContainer.nodeType!==3){var z=T.startContainer.children[T.startOffset];if(z&&z.tagName==="HR")return T.selectNodeContents(z.previousElementSibling),T.collapse(!1),I.preventDefault(),!0}if(R){var V=R.previousElementSibling;if(V&&(0,L.im)(R,E[E.currentMode].element,T).start===0&&((0,f.vU)()&&V.tagName==="HR"||V.tagName==="TABLE")){if(V.tagName==="TABLE"){var le=V.lastElementChild.lastElementChild.lastElementChild;le.innerHTML=le.innerHTML.trimLeft()+"<wbr>"+R.textContent.trim(),R.remove()}else V.remove();return(0,L.ib)(E[E.currentMode].element,T),_r(E),I.preventDefault(),!0}}return!1},Vn=function(E){(0,f.vU)()&&E.startContainer.nodeType!==3&&E.startContainer.tagName==="HR"&&E.setStartBefore(E.startContainer)},xr=function(E,T,I){var R,z;if(!(0,f.vU)())return!1;if(E.key==="ArrowUp"&&T&&((R=T.previousElementSibling)===null||R===void 0?void 0:R.tagName)==="TABLE"){var V=T.previousElementSibling;return I.selectNodeContents(V.rows[V.rows.length-1].lastElementChild),I.collapse(!1),E.preventDefault(),!0}return E.key==="ArrowDown"&&T&&((z=T.nextElementSibling)===null||z===void 0?void 0:z.tagName)==="TABLE"?(I.selectNodeContents(T.nextElementSibling.rows[0].cells[0]),I.collapse(!0),E.preventDefault(),!0):!1},lr=function(E,T,I){return Br(void 0,void 0,void 0,function(){var R,z,V,le,Oe,Ze,$e,dt,At,En,Cn,yn,un,fn,kn,fn,qn;return zr(this,function($n){switch($n.label){case 0:return E[E.currentMode].element.getAttribute("contenteditable")!=="true"?[2]:(T.stopPropagation(),T.preventDefault(),"clipboardData"in T?(R=T.clipboardData.getData("text/html"),z=T.clipboardData.getData("text/plain"),V=T.clipboardData.files):(R=T.dataTransfer.getData("text/html"),z=T.dataTransfer.getData("text/plain"),T.dataTransfer.types.includes("Files")&&(V=T.dataTransfer.items)),le={},Oe=function(gr,Dr){if(!Dr)return["",Lute.WalkContinue];if(E.options.upload.renderLinkDest)return E.options.upload.renderLinkDest(E,gr,Dr);var lo=gr.TokensStr();if(gr.__internal_object__.Parent.Type===34&&lo&&lo.indexOf("file://")===-1&&E.options.upload.linkToImgUrl){var fo=new XMLHttpRequest;fo.open("POST",E.options.upload.linkToImgUrl),E.options.upload.token&&fo.setRequestHeader("X-Upload-Token",E.options.upload.token),E.options.upload.withCredentials&&(fo.withCredentials=!0),Fr(E,fo),fo.setRequestHeader("Content-Type","application/json; charset=utf-8"),fo.onreadystatechange=function(){if(fo.readyState===XMLHttpRequest.DONE){if(fo.status===200){var Pr=fo.responseText;E.options.upload.linkToImgFormat&&(Pr=E.options.upload.linkToImgFormat(fo.responseText));var oa=JSON.parse(Pr);if(oa.code!==0){E.tip.show(oa.msg);return}var Ra=oa.data.originalURL;if(E.currentMode==="sv")E.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach(function(fr){fr.textContent===Ra&&(fr.textContent=oa.data.url)});else{var to=E[E.currentMode].element.querySelector('img[src="'.concat(Ra,'"]'));to.src=oa.data.url,E.currentMode==="ir"&&(to.previousElementSibling.previousElementSibling.innerHTML=oa.data.url)}_r(E)}else E.tip.show(fo.responseText);E.options.upload.linkToImgCallback&&E.options.upload.linkToImgCallback(fo.responseText)}},fo.send(JSON.stringify({url:lo}))}return E.currentMode==="ir"?['<span class="vditor-ir__marker vditor-ir__marker--link">'.concat(Lute.EscapeHTMLStr(lo),"</span>"),Lute.WalkContinue]:E.currentMode==="wysiwyg"?["",Lute.WalkContinue]:['<span class="vditor-sv__marker--link">'.concat(Lute.EscapeHTMLStr(lo),"</span>"),Lute.WalkContinue]},(R.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<a href="'.concat(z,'">').concat(z,"</a>")||R.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<!--StartFragment--><a href="'.concat(z,'">').concat(z,"</a><!--EndFragment-->"))&&(R=""),Ze=new DOMParser().parseFromString(R,"text/html"),Ze.body&&(R=Ze.body.innerHTML),R=Lute.Sanitize(R),E.wysiwyg.getComments(E),$e=E[E.currentMode].element.scrollHeight,dt=Z(R,z,E.currentMode),At=E.currentMode==="sv"?(0,A.a1)(T.target,"data-type","code-block"):(0,A.lG)(T.target,"CODE"),At?(E.currentMode==="sv"?document.execCommand("insertHTML",!1,z.replace(/&/g,"&").replace(/</g,"<")):(En=(0,L.im)(T.target,E[E.currentMode].element),At.parentElement.tagName!=="PRE"&&(z+=s.g.ZWSP),At.textContent=At.textContent.substring(0,En.start)+z+At.textContent.substring(En.end),(0,L.$j)(En.start+z.length,En.start+z.length,At.parentElement),!((qn=At.parentElement)===null||qn===void 0)&&qn.nextElementSibling.classList.contains("vditor-".concat(E.currentMode,"__preview"))&&(At.parentElement.nextElementSibling.innerHTML=At.outerHTML,$(At.parentElement.nextElementSibling,E))),[3,10]):[3,1]);case 1:return dt?(I.pasteCode(dt),[3,10]):[3,2];case 2:return R.trim()===""?[3,5]:(Cn=document.createElement("div"),Cn.innerHTML=R,E.options.upload.base64ToLink?[3,4]:[4,nr(E,Cn,("clipboardData"in T?T.clipboardData:T.dataTransfer).getData("text/rtf"))]);case 3:$n.sent(),$n.label=4;case 4:return Cn.querySelectorAll("[style]").forEach(function(gr){gr.removeAttribute("style")}),Cn.querySelectorAll(".vditor-copy").forEach(function(gr){gr.remove()}),E.currentMode==="ir"?(le.HTML2VditorIRDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,L.oC)(E.lute.HTML2VditorIRDOM(Cn.innerHTML),E)):E.currentMode==="wysiwyg"?(le.HTML2VditorDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,L.oC)(E.lute.HTML2VditorDOM(Cn.innerHTML),E)):(le.Md2VditorSVDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),Ke(E,E.lute.HTML2Md(Cn.innerHTML).trimRight())),E.outline.render(E),[3,10];case 5:return V.length>0?E.options.upload.url||E.options.upload.handler?[4,Vr(E,V)]:[3,7]:[3,9];case 6:return $n.sent(),[3,8];case 7:yn=new FileReader,"clipboardData"in T?(V=T.clipboardData.files,un=V[0]):T.dataTransfer.types.includes("Files")&&(V=T.dataTransfer.items,un=V[0].getAsFile()),un&&un.type.startsWith("image")&&(yn.readAsDataURL(un),yn.onload=function(){var gr="";E.currentMode==="wysiwyg"?gr+='<img alt="'.concat(un.name,'" src="').concat(yn.result.toString(),`">
- `):gr+=".concat(yn.result.toString(),`)
- `),document.execCommand("insertHTML",!1,gr)}),$n.label=8;case 8:return[3,10];case 9:z.trim()!==""&&V.length===0&&(fn=(0,L.zh)(E),fn.toString()!==""&&E.lute.IsValidLinkDest(z)&&(z="[".concat(fn.toString(),"](").concat(z,")")),E.currentMode==="ir"?(le.Md2VditorIRDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,L.oC)(Lute.Sanitize(E.lute.Md2VditorIRDOM(z)),E)):E.currentMode==="wysiwyg"?(le.Md2VditorDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,L.oC)(Lute.Sanitize(E.lute.Md2VditorDOM(z)),E)):(le.Md2VditorSVDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),Ke(E,z)),E.outline.render(E)),$n.label=10;case 10:return E.currentMode!=="sv"&&(kn=(0,A.F9)((0,L.zh)(E).startContainer),kn&&(fn=(0,L.zh)(E),E[E.currentMode].element.querySelectorAll("wbr").forEach(function(gr){gr.remove()}),fn.insertNode(document.createElement("wbr")),E.currentMode==="wysiwyg"?kn.outerHTML=E.lute.SpinVditorDOM(kn.outerHTML):kn.outerHTML=E.lute.SpinVditorIRDOM(kn.outerHTML),(0,L.ib)(E[E.currentMode].element,fn)),E[E.currentMode].element.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(gr){$(gr,E)})),E.wysiwyg.triggerRemoveComment(E),_r(E),E[E.currentMode].element.scrollHeight-$e>Math.min(E[E.currentMode].element.clientHeight,window.innerHeight)/2&&Mn(E),[2]}})})},nr=function(E,T,I){return Br(void 0,void 0,void 0,function(){var R,z,V,le,Oe,Ze,$e,dt,At,un,En,Cn,yn,un,kn,fn;return zr(this,function(qn){switch(qn.label){case 0:if(!I)return[2];if(R=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,z=new RegExp("(?:("+R.source+"))([\\da-fA-F\\s]+)\\}","g"),V=I.match(z),le=[],V)for(Oe=0,Ze=V;Oe<Ze.length;Oe++)$e=Ze[Oe],dt=void 0,$e.includes("\\pngblip")?dt="image/png":$e.includes("\\jpegblip")&&(dt="image/jpeg"),dt&&le.push({hex:$e.replace(R,"").replace(/[^\da-fA-F]/g,""),type:dt});for(At=[],Or(T,function($n){if($n.tagName==="V:SHAPE")return Or($n,function(gr){gr.tagName==="V:IMAGEDATA"&&At.push({shape:$n,img:gr})}),!1}),un=0;un<At.length;un++)En=document.createElement("img"),Cn="data:"+le[un].type+";base64,"+btoa((le[un].hex.match(/\w{2}/g)||[]).map(function($n){return String.fromCharCode(parseInt($n,16))}).join("")),En.src=Cn,En.title=At[un].img.getAttribute("title"),At[un].shape.parentNode.replaceChild(En,At[un].shape);yn=T.querySelectorAll("img"),un=0,qn.label=1;case 1:return un<yn.length?(kn=yn[un].src||"",kn?(fn=yn[un],[4,E.options.upload.base64ToLink(kn)]):[3,3]):[3,4];case 2:fn.src=qn.sent(),qn.label=3;case 3:return un++,[3,1];case 4:return[2]}})})},Or=function(E,T){var I=T(E);if(I!==!1)for(var R=0;R<E.children.length;R++)Or(E.children[R],T)},cr,dr=function(E){var T,I;E.hint.render(E);var R=(0,L.zh)(E).startContainer,z=(0,A.a1)(R,"data-type","code-block-info");if(z)if(z.textContent.replace(s.g.ZWSP,"")===""&&E.hint.recentLanguage){z.textContent=s.g.ZWSP+E.hint.recentLanguage;var V=(0,L.zh)(E);V.selectNodeContents(z)}else{var le=[],Oe=z.textContent.substring(0,(0,L.im)(z,E.ir.element).start).replace(s.g.ZWSP,"");(E.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((I=(T=window.hljs)===null||T===void 0?void 0:T.listLanguages())!==null&&I!==void 0?I:[]).sort())).forEach(function(Ze){Ze.indexOf(Oe.toLowerCase())>-1&&le.push({html:Ze,value:Ze})}),E.hint.genHTML(le,Oe,E)}},ye=function(E,T){T===void 0&&(T={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),T.enableHint&&dr(E),clearTimeout(E.ir.processTimeoutId),E.ir.processTimeoutId=window.setTimeout(function(){if(!E.ir.composingLock){var I=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(I),E.options.counter.enable&&E.counter.render(E,I),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,I),E.options.cache.after&&E.options.cache.after(I)),E.devtools&&E.devtools.renderEchart(E),T.enableAddUndoStack&&E.undo.addToUndoStack(E)}},E.options.undoDelay)},ae=function(E,T){var I=(0,L.zh)(E),R=(0,A.F9)(I.startContainer)||I.startContainer;if(R){var z=R.querySelector(".vditor-ir__marker--heading");z?z.innerHTML=T:(R.insertAdjacentText("afterbegin",T),I.selectNodeContents(R),I.collapse(!1)),te(E,I.cloneRange()),Pe(E)}},de=function(E,T,I){var R=(0,A.a1)(E.startContainer,"data-type",I);if(R){R.firstElementChild.remove(),R.lastElementChild.remove(),E.insertNode(document.createElement("wbr"));var z=document.createElement("div");z.innerHTML=T.lute.SpinVditorIRDOM(R.outerHTML),R.outerHTML=z.firstElementChild.innerHTML.trim()}},Ce=function(E,T,I,R){var z=(0,L.zh)(E),V=T.getAttribute("data-type"),le=z.startContainer;le.nodeType===3&&(le=le.parentElement);var Oe=!0;if(T.classList.contains("vditor-menu--current"))if(V==="quote"){var Ze=(0,A.lG)(le,"BLOCKQUOTE");Ze&&(z.insertNode(document.createElement("wbr")),Ze.outerHTML=Ze.innerHTML.trim()===""?'<p data-block="0">'.concat(Ze.innerHTML,"</p>"):Ze.innerHTML)}else if(V==="link"){var $e=(0,A.a1)(z.startContainer,"data-type","a");if($e){var dt=(0,A.fb)(z.startContainer,"vditor-ir__link");dt?(z.insertNode(document.createElement("wbr")),$e.outerHTML=dt.innerHTML):$e.outerHTML=$e.querySelector(".vditor-ir__link").innerHTML+"<wbr>"}}else V==="italic"?de(z,E,"em"):V==="bold"?de(z,E,"strong"):V==="strike"?de(z,E,"s"):V==="inline-code"?de(z,E,"code"):(V==="check"||V==="list"||V==="ordered-list")&&(Pa(E,z,V),Oe=!1,T.classList.remove("vditor-menu--current"));else{E.ir.element.childNodes.length===0&&(E.ir.element.innerHTML='<p data-block="0"><wbr></p>',(0,L.ib)(E.ir.element,z));var At=(0,A.F9)(z.startContainer);if(V==="line"){if(At){var En=`<hr data-block="0"><p data-block="0"><wbr>
- </p>`;At.innerHTML.trim()===""?At.outerHTML=En:At.insertAdjacentHTML("afterend",En)}}else if(V==="quote")At&&(z.insertNode(document.createElement("wbr")),At.outerHTML='<blockquote data-block="0">'.concat(At.outerHTML,"</blockquote>"),Oe=!1,T.classList.add("vditor-menu--current"));else if(V==="link"){var Cn=void 0;z.toString()===""?Cn="".concat(I,"<wbr>").concat(R):Cn="".concat(I).concat(z.toString()).concat(R.replace(")","<wbr>)")),document.execCommand("insertHTML",!1,Cn),Oe=!1,T.classList.add("vditor-menu--current")}else if(V==="italic"||V==="bold"||V==="strike"||V==="inline-code"||V==="code"||V==="table"){var Cn=void 0;z.toString()===""?Cn="".concat(I,"<wbr>").concat(R):(V==="code"?Cn="".concat(I,`
- `).concat(z.toString(),"<wbr>").concat(R):V==="table"?Cn="".concat(I).concat(z.toString(),"<wbr>").concat(R):Cn="".concat(I).concat(z.toString()).concat(R,"<wbr>"),z.deleteContents()),(V==="table"||V==="code")&&(Cn=`
- `+Cn+`
- `);var yn=document.createElement("span");yn.innerHTML=Cn,z.insertNode(yn),te(E,z),V==="table"&&(z.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),(0,L.Hc)(z))}else(V==="check"||V==="list"||V==="ordered-list")&&(Pa(E,z,V,!1),Oe=!1,p(E.toolbar.elements,["check","list","ordered-list"]),T.classList.add("vditor-menu--current"))}(0,L.ib)(E.ir.element,z),ye(E),Oe&&Pe(E)},Lt=function(E,T,I,R){function z(V){return V instanceof I?V:new I(function(le){le(V)})}return new(I||(I=Promise))(function(V,le){function Oe(dt){try{$e(R.next(dt))}catch(At){le(At)}}function Ze(dt){try{$e(R.throw(dt))}catch(At){le(At)}}function $e(dt){dt.done?V(dt.value):z(dt.value).then(Oe,Ze)}$e((R=R.apply(E,T||[])).next())})},Tt=function(E,T){var I={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},R,z,V,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe($e){return function(dt){return Ze([$e,dt])}}function Ze($e){if(R)throw new TypeError("Generator is already executing.");for(;le&&(le=0,$e[0]&&(I=0)),I;)try{if(R=1,z&&(V=$e[0]&2?z.return:$e[0]?z.throw||((V=z.return)&&V.call(z),0):z.next)&&!(V=V.call(z,$e[1])).done)return V;switch(z=0,V&&($e=[$e[0]&2,V.value]),$e[0]){case 0:case 1:V=$e;break;case 4:return I.label++,{value:$e[1],done:!1};case 5:I.label++,z=$e[1],$e=[0];continue;case 7:$e=I.ops.pop(),I.trys.pop();continue;default:if(V=I.trys,!(V=V.length>0&&V[V.length-1])&&($e[0]===6||$e[0]===2)){I=0;continue}if($e[0]===3&&(!V||$e[1]>V[0]&&$e[1]<V[3])){I.label=$e[1];break}if($e[0]===6&&I.label<V[1]){I.label=V[1],V=$e;break}if(V&&I.label<V[2]){I.label=V[2],I.ops.push($e);break}V[2]&&I.ops.pop(),I.trys.pop();continue}$e=T.call(E,I)}catch(dt){$e=[6,dt],z=0}finally{R=V=0}if($e[0]&5)throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}},wn=(function(){function E(T){var I=this;this.splitChar="",this.lastIndex=-1,this.fillEmoji=function(R,z){I.element.style.display="none";var V=decodeURIComponent(R.getAttribute("data-value")),le=window.getSelection().getRangeAt(0);if(z.currentMode==="ir"){var Oe=(0,A.a1)(le.startContainer,"data-type","code-block-info");if(Oe){Oe.textContent=s.g.ZWSP+V.trimRight(),le.selectNodeContents(Oe),le.collapse(!1),ye(z),Oe.parentElement.querySelectorAll("code").forEach(function(At){At.className="language-"+V.trimRight()}),$(Oe.parentElement.querySelector(".vditor-ir__preview"),z),I.recentLanguage=V.trimRight();return}}if(z.currentMode==="wysiwyg"&&le.startContainer.nodeType!==3){var Ze=le.startContainer,$e=void 0;if(Ze.classList.contains("vditor-input")?$e=Ze:$e=Ze.firstElementChild,$e&&$e.classList.contains("vditor-input")){$e.value=V.trimRight(),le.selectNodeContents($e),le.collapse(!1),$e.dispatchEvent(new CustomEvent("input",{detail:1})),I.recentLanguage=V.trimRight();return}}if(le.setStart(le.startContainer,I.lastIndex),le.deleteContents(),z.options.hint.parse?z.currentMode==="sv"?(0,L.oC)(z.lute.SpinVditorSVDOM(V),z):z.currentMode==="wysiwyg"?(0,L.oC)(z.lute.SpinVditorDOM(V),z):(0,L.oC)(z.lute.SpinVditorIRDOM(V),z):(0,L.oC)(V,z),I.splitChar===":"&&V.indexOf(":")>-1&&z.currentMode!=="sv"&&le.insertNode(document.createTextNode(" ")),le.collapse(!1),(0,L.Hc)(le),z.currentMode==="wysiwyg"){var dt=(0,A.fb)(le.startContainer,"vditor-wysiwyg__block");dt&&dt.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(dt.lastElementChild.innerHTML=dt.firstElementChild.innerHTML,$(dt.lastElementChild,z))}else if(z.currentMode==="ir"){var dt=(0,A.fb)(le.startContainer,"vditor-ir__marker--pre");dt&&dt.nextElementSibling.classList.contains("vditor-ir__preview")&&(dt.nextElementSibling.innerHTML=dt.innerHTML,$(dt.nextElementSibling,z))}_r(z)},this.timeId=-1,this.element=document.createElement("div"),this.element.className="vditor-hint",this.recentLanguage="",T.push({key:":"})}return E.prototype.render=function(T){var I=this;if(window.getSelection().focusNode){var R,z=getSelection().getRangeAt(0);R=z.startContainer.textContent.substring(0,z.startOffset)||"";var V=this.getKey(R,T.options.hint.extend);if(typeof V>"u")this.element.style.display="none",clearTimeout(this.timeId);else if(this.splitChar===":"){var le=V===""?T.options.hint.emoji:T.lute.GetEmojis(),Oe=[];Object.keys(le).forEach(function(Ze){Ze.indexOf(V.toLowerCase())===0&&(le[Ze].indexOf(".")>-1?Oe.push({html:'<img src="'.concat(le[Ze],'" title=":').concat(Ze,':"/> :').concat(Ze,":"),value:":".concat(Ze,":")}):Oe.push({html:'<span class="vditor-hint__emoji">'.concat(le[Ze],"</span>").concat(Ze),value:le[Ze]}))}),this.genHTML(Oe,V,T)}else T.options.hint.extend.forEach(function(Ze){Ze.key===I.splitChar&&(clearTimeout(I.timeId),I.timeId=window.setTimeout(function(){return Lt(I,void 0,void 0,function(){var $e;return Tt(this,function(dt){switch(dt.label){case 0:return $e=this.genHTML,[4,Ze.hint(V)];case 1:return $e.apply(this,[dt.sent(),V,T]),[2]}})})},T.options.hint.delay))})}},E.prototype.genHTML=function(T,I,R){var z=this;if(T.length===0){this.element.style.display="none";return}var V=R[R.currentMode].element,le=(0,L.Ny)(V),Oe=le.left+(R.options.outline.position==="left"?R.outline.element.offsetWidth:0),Ze=le.top,$e="";T.forEach(function(At,En){if(!(En>7)){var Cn=At.html;if(I!==""){var yn=Cn.lastIndexOf(">")+1,un=Cn.substr(yn),kn=un.toLowerCase().indexOf(I.toLowerCase());kn>-1&&(un=un.substring(0,kn)+"<b>"+un.substring(kn,kn+I.length)+"</b>"+un.substring(kn+I.length),Cn=Cn.substr(0,yn)+un)}$e+='<button type="button" data-value="'.concat(encodeURIComponent(At.value),` "
- `).concat(En===0?"class='vditor-hint--current'":"","> ").concat(Cn,"</button>")}}),this.element.innerHTML=$e;var dt=parseInt(document.defaultView.getComputedStyle(V,null).getPropertyValue("line-height"),10);this.element.style.top="".concat(Ze+(dt||22),"px"),this.element.style.left="".concat(Oe,"px"),this.element.style.display="block",this.element.style.right="auto",this.element.querySelectorAll("button").forEach(function(At){At.addEventListener("click",function(En){z.fillEmoji(At,R),En.preventDefault()})}),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top="".concat(Ze-this.element.offsetHeight,"px")),this.element.getBoundingClientRect().right>window.innerWidth&&(this.element.style.left="auto",this.element.style.right="0")},E.prototype.select=function(T,I){if(this.element.querySelectorAll("button").length===0||this.element.style.display==="none")return!1;var R=this.element.querySelector(".vditor-hint--current");if(T.key==="ArrowDown")return T.preventDefault(),T.stopPropagation(),R.removeAttribute("class"),R.nextElementSibling?R.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if(T.key==="ArrowUp"){if(T.preventDefault(),T.stopPropagation(),R.removeAttribute("class"),R.previousElementSibling)R.previousElementSibling.className="vditor-hint--current";else{var z=this.element.children.length;this.element.children[z-1].className="vditor-hint--current"}return!0}else if(!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&T.key==="Enter"&&!T.isComposing)return T.preventDefault(),T.stopPropagation(),this.fillEmoji(R,I),!0;return!1},E.prototype.getKey=function(T,I){var R=this;this.lastIndex=-1,this.splitChar="",I.forEach(function($e){var dt=T.lastIndexOf($e.key);R.lastIndex<dt&&(R.splitChar=$e.key,R.lastIndex=dt)});var z;if(this.lastIndex===-1)return z;var V=T.split(this.splitChar),le=V[V.length-1],Oe=32;if(V.length>1&&le.trim()===le)if(V.length===2&&V[0]===""&&V[1].length<Oe)z=V[1];else{var Ze=V[V.length-2].slice(-1);(0,l.X)(Ze)===" "&&le.length<Oe&&(z=le)}return z},E})(),Sn=(function(){function E(T){this.composingLock=!1;var I=document.createElement("div");I.className="vditor-ir",I.innerHTML='<pre class="vditor-reset" placeholder="'.concat(T.options.placeholder,`"
- contenteditable="true" spellcheck="false"></pre>`),this.element=I.firstElementChild,this.bindEvent(T),Nn(T,this.element),xt(T,this.element),sn(T,this.element),tr(T,this.element),dn(T,this.element),vt(T,this.element),Nt(T,this.element,this.copy),bn(T,this.element,this.copy)}return E.prototype.copy=function(T,I){var R=getSelection().getRangeAt(0);if(R.toString()!==""){T.stopPropagation(),T.preventDefault();var z=document.createElement("div");z.appendChild(R.cloneContents()),T.clipboardData.setData("text/plain",I.lute.VditorIRDOM2Md(z.innerHTML).trim()),T.clipboardData.setData("text/html","")}},E.prototype.bindEvent=function(T){var I=this;this.element.addEventListener("paste",function(R){lr(T,R,{pasteCode:function(z){document.execCommand("insertHTML",!1,z)}})}),this.element.addEventListener("scroll",function(){b(T,["hint"])}),this.element.addEventListener("compositionstart",function(R){I.composingLock=!0}),this.element.addEventListener("compositionend",function(R){(0,f.vU)()||te(T,getSelection().getRangeAt(0).cloneRange()),I.composingLock=!1}),this.element.addEventListener("input",function(R){if(!(R.inputType==="deleteByDrag"||R.inputType==="insertFromDrop")){if(I.preventInput){I.preventInput=!1,ye(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}I.composingLock||R.data==="‘"||R.data==="“"||R.data==="《"||te(T,getSelection().getRangeAt(0).cloneRange(),!1,R)}}),this.element.addEventListener("click",function(R){if(R.target.tagName==="INPUT"){R.target.checked?R.target.setAttribute("checked","checked"):R.target.removeAttribute("checked"),I.preventInput=!0,ye(T);return}var z=(0,L.zh)(T),V=(0,A.fb)(R.target,"vditor-ir__preview");if(V||(V=(0,A.fb)(z.startContainer,"vditor-ir__preview")),V&&(V.previousElementSibling.firstElementChild?z.selectNodeContents(V.previousElementSibling.firstElementChild):z.selectNodeContents(V.previousElementSibling),z.collapse(!0),(0,L.Hc)(z),Mn(T)),R.target.tagName==="IMG"){var le=R.target.parentElement.querySelector(".vditor-ir__marker--link");le&&(z.selectNode(le),(0,L.Hc)(z))}var Oe=(0,A.a1)(R.target,"data-type","a");if(Oe&&!Oe.classList.contains("vditor-ir__node--expand")){T.options.link.click?T.options.link.click(Oe.querySelector(":scope > .vditor-ir__marker--link")):T.options.link.isOpen&&window.open(Oe.querySelector(":scope > .vditor-ir__marker--link").textContent);return}if(R.target.isEqualNode(I.element)&&I.element.lastElementChild&&z.collapsed){var Ze=I.element.lastElementChild.getBoundingClientRect();R.y>Ze.top+Ze.height&&(I.element.lastElementChild.tagName==="P"&&I.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?(z.selectNodeContents(I.element.lastElementChild),z.collapse(!1)):(I.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,L.ib)(I.element,z)))}z.toString()===""?Me(z,T):setTimeout(function(){Me((0,L.zh)(T),T)}),ie(R,T),Pe(T)}),this.element.addEventListener("keyup",function(R){if(!(R.isComposing||(0,f.yl)(R))){if(R.key==="Enter"&&Mn(T),Pe(T),(R.key==="Backspace"||R.key==="Delete")&&T.ir.element.innerHTML!==""&&T.ir.element.childNodes.length===1&&T.ir.element.firstElementChild&&T.ir.element.firstElementChild.tagName==="P"&&T.ir.element.firstElementChild.childElementCount===0&&(T.ir.element.textContent===""||T.ir.element.textContent===`
- `)){T.ir.element.innerHTML="";return}var z=(0,L.zh)(T);R.key==="Backspace"?((0,f.vU)()&&z.startContainer.textContent===`
- `&&z.startOffset===1&&(z.startContainer.textContent="",Me(z,T)),I.element.querySelectorAll(".language-math").forEach(function(le){var Oe=le.querySelector("br");Oe&&Oe.remove()})):R.key.indexOf("Arrow")>-1?((R.key==="ArrowLeft"||R.key==="ArrowRight")&&dr(T),Me(z,T)):R.keyCode===229&&R.code===""&&R.key==="Unidentified"&&Me(z,T);var V=(0,A.fb)(z.startContainer,"vditor-ir__preview");if(V){if(R.key==="ArrowUp"||R.key==="ArrowLeft")return V.previousElementSibling.firstElementChild?z.selectNodeContents(V.previousElementSibling.firstElementChild):z.selectNodeContents(V.previousElementSibling),z.collapse(!1),R.preventDefault(),!0;if(V.tagName==="SPAN"&&(R.key==="ArrowDown"||R.key==="ArrowRight"))return V.parentElement.getAttribute("data-type")==="html-entity"?(V.parentElement.insertAdjacentText("afterend",s.g.ZWSP),z.setStart(V.parentElement.nextSibling,1)):z.selectNodeContents(V.parentElement.lastElementChild),z.collapse(!1),R.preventDefault(),!0}}})},E})(),On=function(E){if(E.currentMode==="sv")return E.lute.Md2HTML(u(E));if(E.currentMode==="wysiwyg")return E.lute.VditorDOM2HTML(E.wysiwyg.element.innerHTML);if(E.currentMode==="ir")return E.lute.VditorIRDOM2HTML(E.ir.element.innerHTML)},br=o(214),Er=o(436),Wo=(function(){function E(T){this.element=document.createElement("div"),this.element.className="vditor-outline",this.element.innerHTML='<div class="vditor-outline__title">'.concat(T,`</div>
- <div class="vditor-outline__content"></div>`)}return E.prototype.render=function(T){var I="";return T.preview.element.style.display==="block"?I=(0,Er.k)(T.preview.previewElement,this.element.lastElementChild,T):I=(0,Er.k)(T[T.currentMode].element,this.element.lastElementChild,T),I},E.prototype.toggle=function(T,I,R){var z;I===void 0&&(I=!0),R===void 0&&(R=!0);var V=(z=T.toolbar.elements.outline)===null||z===void 0?void 0:z.firstElementChild;if(I&&window.innerWidth>=s.g.MOBILE_WIDTH?(this.element.style.display="block",this.render(T),V?.classList.add("vditor-menu--current")):(this.element.style.display="none",V?.classList.remove("vditor-menu--current")),R&&getSelection().rangeCount>0){var le=getSelection().getRangeAt(0);T[T.currentMode].element.contains(le.startContainer)&&(0,L.Hc)(le)}ce(T)},E})(),Rr=o(280),Io=(function(){function E(T){var I=this;this.element=document.createElement("div"),this.element.className="vditor-preview",this.previewElement=document.createElement("div"),this.previewElement.className="vditor-reset",T.options.classes.preview&&this.previewElement.classList.add(T.options.classes.preview),this.previewElement.style.maxWidth=T.options.preview.maxWidth+"px",this.previewElement.addEventListener("copy",function(Ze){if(Ze.target.tagName!=="TEXTAREA"){var $e=document.createElement("div");$e.className="vditor-reset",$e.appendChild(getSelection().getRangeAt(0).cloneContents()),I.copyToX(T,$e,"default"),Ze.preventDefault()}}),this.previewElement.addEventListener("click",function(Ze){var $e=(0,A.lG)(Ze.target,"SPAN");if($e&&(0,A.fb)($e,"vditor-toc")){var dt=I.previewElement.querySelector("#"+$e.getAttribute("data-target-id"));dt&&(I.element.scrollTop=dt.offsetTop);return}if(Ze.target.tagName==="A"){T.options.link.click?T.options.link.click(Ze.target):T.options.link.isOpen&&window.open(Ze.target.getAttribute("href")),Ze.preventDefault();return}Ze.target.tagName==="IMG"&&(T.options.image.preview?T.options.image.preview(Ze.target):T.options.image.isPreview&&(0,he.E)(Ze.target,T.options.lang,T.options.theme))}),this.element.appendChild(this.previewElement);var R=T.options.preview.actions;if(R.length!==0){var z=document.createElement("div");z.className="vditor-preview__action";for(var V=[],le=0;le<R.length;le++){var Oe=R[le];if(typeof Oe=="object"){V.push('<button type="button" data-type="'.concat(Oe.key,'" class="').concat(Oe.className,'"').concat(Oe.tooltip?' aria-label="'.concat(Oe.tooltip,'"'):"",'">').concat(Oe.text,"</button>"));continue}switch(Oe){case"desktop":V.push('<button type="button" class="vditor-preview__action--current" data-type="desktop">Desktop</button>');break;case"tablet":V.push('<button type="button" data-type="tablet">Tablet</button>');break;case"mobile":V.push('<button type="button" data-type="mobile">Mobile/Wechat</button>');break;case"mp-wechat":V.push('<button type="button" data-type="mp-wechat" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到公众号"><svg><use xlink:href="#vditor-icon-mp-wechat"></use></svg></button>');break;case"zhihu":V.push('<button type="button" data-type="zhihu" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到知乎"><svg><use xlink:href="#vditor-icon-zhihu"></use></svg></button>');break}}z.innerHTML=V.join(""),z.addEventListener((0,f.Le)(),function(Ze){var $e=(0,S.S)(Ze.target,"BUTTON");if($e){var dt=$e.getAttribute("data-type"),At=R.find(function(En){return En?.key===dt});if(At){At.click(dt);return}if(dt==="mp-wechat"||dt==="zhihu"){I.copyToX(T,I.previewElement.cloneNode(!0),dt);return}dt==="desktop"?I.previewElement.style.width="auto":dt==="tablet"?I.previewElement.style.width="780px":I.previewElement.style.width="360px",I.previewElement.scrollWidth>I.previewElement.parentElement.clientWidth&&(I.previewElement.style.width="auto"),I.render(T),z.querySelectorAll("button").forEach(function(En){En.classList.remove("vditor-preview__action--current")}),$e.classList.add("vditor-preview__action--current")}}),this.element.insertBefore(z,this.previewElement)}}return E.prototype.render=function(T,I){var R=this;if(clearTimeout(this.mdTimeoutId),this.element.style.display==="none"){this.element.getAttribute("data-type")==="renderPerformance"&&T.tip.hide();return}if(I){this.previewElement.innerHTML=I;return}if(u(T).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")===""){this.previewElement.innerHTML="";return}var z=new Date().getTime(),V=u(T);this.mdTimeoutId=window.setTimeout(function(){if(T.options.preview.url){var le=new XMLHttpRequest;le.open("POST",T.options.preview.url),le.setRequestHeader("Content-Type","application/json;charset=UTF-8"),le.onreadystatechange=function(){if(le.readyState===XMLHttpRequest.DONE)if(le.status===200){var Ze=JSON.parse(le.responseText);if(Ze.code!==0){T.tip.show(Ze.msg);return}T.options.preview.transform&&(Ze.data=T.options.preview.transform(Ze.data)),R.previewElement.innerHTML=Ze.data,R.afterRender(T,z)}else{var $e=T.lute.Md2HTML(V);T.options.preview.transform&&($e=T.options.preview.transform($e)),R.previewElement.innerHTML=$e,R.afterRender(T,z)}},le.send(JSON.stringify({markdownText:V}))}else{var Oe=T.lute.Md2HTML(V);T.options.preview.transform&&(Oe=T.options.preview.transform(Oe)),R.previewElement.innerHTML=Oe,R.afterRender(T,z)}},T.options.preview.delay)},E.prototype.afterRender=function(T,I){T.options.preview.parse&&T.options.preview.parse(this.element);var R=new Date().getTime()-I;new Date().getTime()-I>2600?(T.tip.show(window.VditorI18n.performanceTip.replace("${x}",R.toString())),T.preview.element.setAttribute("data-type","renderPerformance")):T.preview.element.getAttribute("data-type")==="renderPerformance"&&(T.tip.hide(),T.preview.element.removeAttribute("data-type"));var z=T.preview.element.querySelector(".vditor-comment--focus");z&&z.classList.remove("vditor-comment--focus"),(0,P.O)(T.preview.previewElement,T.options.preview.hljs),(0,B.s)(T.options.preview.hljs,T.preview.previewElement,T.options.cdn),(0,q.i)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,U.K)(T.preview.previewElement,T.options.cdn),(0,G.J)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,O.P)(T.preview.previewElement,T.options.cdn),(0,_.v)(T.preview.previewElement,T.options.cdn),(0,D.p)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,j.P)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,H.B)(T.preview.previewElement,T.options.cdn),(0,M.Q)(T.preview.previewElement,T.options.cdn),T.options.preview.render.media.enable&&(0,Rr.Y)(T.preview.previewElement),T.options.customRenders.forEach(function(Oe){Oe.render(T.preview.previewElement,T)});var V=T.preview.element,le=T.outline.render(T);le===""&&(le="[ToC]"),V.querySelectorAll('[data-type="toc-block"]').forEach(function(Oe){Oe.innerHTML=le,(0,N.H)(Oe,{cdn:T.options.cdn,math:T.options.preview.math})}),(0,N.H)(T.preview.previewElement,{cdn:T.options.cdn,math:T.options.preview.math})},E.prototype.copyToX=function(T,I,R){R===void 0&&(R="mp-wechat"),R!=="zhihu"?I.querySelectorAll(".katex-html .base").forEach(function(V){V.style.display="initial"}):I.querySelectorAll(".language-math").forEach(function(V){V.outerHTML='<img class="Formula-image" data-eeimg="true" src="//www.zhihu.com/equation?tex=" alt="'.concat(V.getAttribute("data-math"),'\\" style="display: block; margin: 0 auto; max-width: 100%;">')}),I.style.backgroundColor="#fff",I.querySelectorAll("code").forEach(function(V){V.style.backgroundImage="none"}),this.element.append(I);var z=I.ownerDocument.createRange();z.selectNode(I),(0,L.Hc)(z),document.execCommand("copy"),I.remove(),T.tip.show(["zhihu","mp-wechat"].includes(R)?"已复制,可到".concat(R==="zhihu"?"知乎":"微信公众号平台","进行粘贴"):"已复制到剪切板")},E})(),ro=(function(){function E(T){this.element=document.createElement("div"),this.element.className="vditor-resize vditor-resize--".concat(T.options.resize.position),this.element.innerHTML='<div><svg><use xlink:href="#vditor-icon-resize"></use></svg></div>',this.bindEvent(T)}return E.prototype.bindEvent=function(T){var I=this;this.element.addEventListener("mousedown",function(R){var z=document,V=R.clientY,le=T.element.offsetHeight,Oe=63+T.element.querySelector(".vditor-toolbar").clientHeight;z.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),I.element.classList.add("vditor-resize--selected"),z.onmousemove=function(Ze){T.options.resize.position==="top"?T.element.style.height=Math.max(Oe,le+(V-Ze.clientY))+"px":T.element.style.height=Math.max(Oe,le+(Ze.clientY-V))+"px",T.options.typewriterMode&&(T.sv.element.style.paddingBottom=T.sv.element.parentElement.offsetHeight/2+"px")},z.onmouseup=function(){T.options.resize.after&&T.options.resize.after(T.element.offsetHeight-le),window.captureEvents&&window.captureEvents(),z.onmousemove=null,z.onmouseup=null,z.ondragstart=null,z.onselectstart=null,z.onselect=null,I.element.classList.remove("vditor-resize--selected")}})},E})(),ni=(function(){function E(T){this.composingLock=!1,this.element=document.createElement("pre"),this.element.className="vditor-sv vditor-reset",this.element.setAttribute("placeholder",T.options.placeholder),this.element.setAttribute("contenteditable","true"),this.element.setAttribute("spellcheck","false"),this.bindEvent(T),Nn(T,this.element),sn(T,this.element),tr(T,this.element),dn(T,this.element),vt(T,this.element),Nt(T,this.element,this.copy),bn(T,this.element,this.copy)}return E.prototype.copy=function(T,I){T.stopPropagation(),T.preventDefault(),T.clipboardData.setData("text/plain",mn(I[I.currentMode].element))},E.prototype.bindEvent=function(T){var I=this;this.element.addEventListener("paste",function(R){lr(T,R,{pasteCode:function(z){document.execCommand("insertHTML",!1,z)}})}),this.element.addEventListener("scroll",function(){if(T.preview.element.style.display==="block"){var R=I.element.scrollTop,z=I.element.clientHeight,V=I.element.scrollHeight-parseFloat(I.element.style.paddingBottom||"0"),le=T.preview.element;R/z>.5?le.scrollTop=(R+z)*le.scrollHeight/V-z:le.scrollTop=R*le.scrollHeight/V}}),this.element.addEventListener("compositionstart",function(R){I.composingLock=!0}),this.element.addEventListener("compositionend",function(R){(0,f.vU)()||Y(T,R),I.composingLock=!1}),this.element.addEventListener("input",function(R){if(!(R.inputType==="deleteByDrag"||R.inputType==="insertFromDrop")&&!(I.composingLock||R.data==="‘"||R.data==="“"||R.data==="《")){if(I.preventInput){I.preventInput=!1,Gt(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}Y(T,R)}}),this.element.addEventListener("keyup",function(R){if(!(R.isComposing||(0,f.yl)(R))){if((R.key==="Backspace"||R.key==="Delete")&&T.sv.element.innerHTML!==""&&T.sv.element.childNodes.length===1&&T.sv.element.firstElementChild&&T.sv.element.firstElementChild.tagName==="DIV"&&T.sv.element.firstElementChild.childElementCount===2&&(T.sv.element.firstElementChild.textContent===""||T.sv.element.textContent===`
- `)){T.sv.element.innerHTML="";return}R.key==="Enter"&&Mn(T)}})},E})(),Oi=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-tip"}return E.prototype.show=function(T,I){var R=this;I===void 0&&(I=6e3),this.element.className="vditor-tip vditor-tip--show",I===0?(this.element.innerHTML='<div class="vditor-tip__content">'.concat(T,`
- <div class="vditor-tip__close">X</div></div>`),this.element.querySelector(".vditor-tip__close").addEventListener("click",function(){R.hide()})):(this.element.innerHTML='<div class="vditor-tip__content">'.concat(T,"</div>"),setTimeout(function(){R.hide()},I)),this.element.removeAttribute("style"),setTimeout(function(){var z=R.element.getBoundingClientRect();z.top<46&&(R.element.style.position="fixed",R.element.style.top="46px")},150)},E.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},E})(),oo=function(E,T){if(T.options.preview.mode!==E){switch(T.options.preview.mode=E,E){case"both":T.sv.element.style.display="block",T.preview.element.style.display="block",T.preview.render(T),v(T.toolbar.elements,["both"]);break;case"editor":T.sv.element.style.display="block",T.preview.element.style.display="none",p(T.toolbar.elements,["both"]);break}T.devtools&&T.devtools.renderEchart(T)}},Vo=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),Na=(function(E){Vo(T,E);function T(I,R){var z=E.call(this,I,R)||this;return I.options.preview.mode==="both"&&z.element.children[0].classList.add("vditor-menu--current"),z.element.children[0].addEventListener((0,f.Le)(),function(V){var le=z.element.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(V.preventDefault(),I.currentMode==="sv"&&(I.options.preview.mode==="both"?oo("editor",I):oo("both",I)))}),z}return T})(ze),ml=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"}return E})(),Xc=o(580),p2=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),Cm=(function(E){p2(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=z.element.children[0],le=document.createElement("div");le.className="vditor-hint".concat(R.level===2?"":" vditor-panel--arrow");var Oe="";return s.g.CODE_THEME.forEach(function(Ze){Oe+="<button>".concat(Ze,"</button>")}),le.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Oe,"</div>"),le.addEventListener((0,f.Le)(),function(Ze){Ze.target.tagName==="BUTTON"&&(b(I,["subToolbar"]),I.options.preview.hljs.style=Ze.target.textContent,(0,Xc.Y)(Ze.target.textContent,I.options.cdn),Ze.preventDefault(),Ze.stopPropagation())}),z.element.appendChild(le),w(I,le,V,R.level),z}return T})(ze),Cp=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),H5=(function(E){Cp(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=z.element.children[0],le=document.createElement("div");le.className="vditor-hint".concat(R.level===2?"":" vditor-panel--arrow");var Oe="";return Object.keys(I.options.preview.theme.list).forEach(function(Ze){Oe+='<button data-type="'.concat(Ze,'">').concat(I.options.preview.theme.list[Ze],"</button>")}),le.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Oe,"</div>"),le.addEventListener((0,f.Le)(),function(Ze){Ze.target.tagName==="BUTTON"&&(b(I,["subToolbar"]),I.options.preview.theme.current=Ze.target.getAttribute("data-type"),(0,De.Z)(I.options.preview.theme.current,I.options.preview.theme.path),Ze.preventDefault(),Ze.stopPropagation())}),z.element.appendChild(le),w(I,le,V,R.level),z}return T})(ze),W5=(function(){function E(T){this.element=document.createElement("span"),this.element.className="vditor-counter vditor-tooltipped vditor-tooltipped__nw",this.render(T,"")}return E.prototype.render=function(T,I){var R=I.endsWith(`
- `)?I.length-1:I.length;if(T.options.counter.type==="text"&&T[T.currentMode]){var z=T[T.currentMode].element.cloneNode(!0);z.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(V){V.remove()}),R=z.textContent.length}typeof T.options.counter.max=="number"?(R>T.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML="".concat(R,"/").concat(T.options.counter.max)):this.element.innerHTML="".concat(R),this.element.setAttribute("aria-label",T.options.counter.type),T.options.counter.after&&T.options.counter.after(R,{enable:T.options.counter.enable,max:T.options.counter.max,type:T.options.counter.type})},E})(),a9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),s9=(function(E){a9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].innerHTML=R.icon,z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),!V.currentTarget.classList.contains(s.g.CLASS_MENU_DISABLED)&&R.click(V,I)}),z}return T})(ze),V5=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),q5=(function(E){V5(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.firstElementChild.addEventListener((0,f.Le)(),function(V){var le=z.element.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(V.preventDefault(),le.classList.contains("vditor-menu--current")?(le.classList.remove("vditor-menu--current"),I.devtools.element.style.display="none",ce(I)):(le.classList.add("vditor-menu--current"),I.devtools.element.style.display="block",ce(I),I.devtools.renderEchart(I)))}),z}return T})(ze),l9=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"}return E})(),u9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),h2=(function(E){u9(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=document.createElement("div");V.className="vditor-panel vditor-panel--arrow";var le="";return Object.keys(I.options.hint.emoji).forEach(function(Oe){var Ze=I.options.hint.emoji[Oe];Ze.indexOf(".")>-1?le+='<button data-value=":'.concat(Oe,': " data-key=":').concat(Oe,`:"><img
- data-value=":`).concat(Oe,': " data-key=":').concat(Oe,':" class="vditor-emojis__icon" src="').concat(Ze,'"/></button>'):le+='<button data-value="'.concat(Ze,` "
- data-key="`).concat(Oe,'"><span class="vditor-emojis__icon">').concat(Ze,"</span></button>")}),V.innerHTML='<div class="vditor-emojis" style="max-height: '.concat(I.options.height==="auto"?"auto":I.options.height-80,'px">').concat(le,`</div><div class="vditor-emojis__tail">
- <span class="vditor-emojis__tip"></span><span>`).concat(I.options.hint.emojiTail||"",`</span>
- </div>`),z.element.appendChild(V),w(I,V,z.element.firstElementChild,R.level),z.bindEvent(I),z}return T.prototype.bindEvent=function(I){var R=this;this.element.lastElementChild.addEventListener((0,f.Le)(),function(z){var V=(0,S.S)(z.target,"BUTTON");if(V){z.preventDefault();var le=V.getAttribute("data-value"),Oe=(0,L.zh)(I),Ze=le;if(I.currentMode==="wysiwyg"?Ze=I.lute.SpinVditorDOM(le):I.currentMode==="ir"&&(Ze=I.lute.SpinVditorIRDOM(le)),le.indexOf(":")>-1&&I.currentMode!=="sv"){var $e=document.createElement("div");$e.innerHTML=Ze,Ze=$e.firstElementChild.firstElementChild.outerHTML+" ",(0,L.oC)(Ze,I)}else Oe.extractContents(),Oe.insertNode(document.createTextNode(le)),(0,A.F9)(Oe.startContainer)||ct(I,Oe);Oe.collapse(!1),(0,L.Hc)(Oe),R.element.lastElementChild.style.display="none",_r(I)}}),this.element.lastElementChild.addEventListener("mouseover",function(z){var V=(0,S.S)(z.target,"BUTTON");V&&(R.element.querySelector(".vditor-emojis__tip").innerHTML=V.getAttribute("data-key"))})},T})(ze),G5=function(E,T,I){var R=document.createElement("a");"download"in R?(R.download=I,R.style.display="none",R.href=URL.createObjectURL(new Blob([T])),document.body.appendChild(R),R.click(),R.remove()):E.tip.show(window.VditorI18n.downloadTip,0)},c9=function(E){var T=u(E);G5(E,T,T.substr(0,10)+".md")},d9=function(E){E.tip.show(window.VditorI18n.generate,3800);var T=document.querySelector("#vditorExportIframe");T.contentDocument.open(),T.contentDocument.write('<link rel="stylesheet" href="'.concat(E.options.cdn,`/dist/index.css"/>
- <script src="`).concat(E.options.cdn,`/dist/method.min.js"><\/script>
- <div id="preview" style="width: 800px"></div>
- <script>
- window.addEventListener("message", (e) => {
- if(!e.data) {
- return;
- }
- Vditor.preview(document.getElementById('preview'), e.data, {
- cdn: "`).concat(E.options.cdn,`",
- markdown: {
- theme: `).concat(JSON.stringify(E.options.preview.theme),`
- },
- hljs: {
- style: "`).concat(E.options.preview.hljs.style,`"
- }
- });
- setTimeout(() => {
- window.print();
- }, 3600);
- }, false);
- <\/script>`)),T.contentDocument.close(),setTimeout(function(){T.contentWindow.postMessage(u(E),"*")},200)},K5=function(E){var T=On(E),I='<html><head><link rel="stylesheet" type="text/css" href="'.concat(E.options.cdn,`/dist/index.css"/>
- <script src="`).concat(E.options.cdn,"/dist/js/i18n/").concat(E.options.lang,`.js"><\/script>
- <script src="`).concat(E.options.cdn,`/dist/method.min.js"><\/script></head>
- <body><div class="vditor-reset" id="preview">`).concat(T,`</div>
- <script>
- const previewElement = document.getElementById('preview')
- Vditor.setContentTheme('`).concat(E.options.preview.theme.current,"', '").concat(E.options.preview.theme.path,`');
- Vditor.codeRender(previewElement);
- Vditor.highlightRender(`).concat(JSON.stringify(E.options.preview.hljs),", previewElement, '").concat(E.options.cdn,`');
- Vditor.mathRender(previewElement, {
- cdn: '`).concat(E.options.cdn,`',
- math: `).concat(JSON.stringify(E.options.preview.math),`,
- });
- Vditor.mermaidRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
- Vditor.SMILESRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
- Vditor.markmapRender(previewElement, '`).concat(E.options.cdn,`');
- Vditor.flowchartRender(previewElement, '`).concat(E.options.cdn,`');
- Vditor.graphvizRender(previewElement, '`).concat(E.options.cdn,`');
- Vditor.chartRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
- Vditor.mindmapRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
- Vditor.abcRender(previewElement, '`).concat(E.options.cdn,`');
- `).concat(E.options.preview.render.media.enable?"Vditor.mediaRender(previewElement);":"",`
- Vditor.speechRender(previewElement);
- <\/script>
- <script src="`).concat(E.options.cdn,"/dist/js/icons/").concat(E.options.icon,'.js"><\/script></body></html>');G5(E,I,T.substr(0,10)+".html")},xm=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),f9=(function(E){xm(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=z.element.children[0],le=document.createElement("div");return le.className="vditor-hint".concat(R.level===2?"":" vditor-panel--arrow"),le.innerHTML=`<button data-type="markdown">Markdown</button>
- <button data-type="pdf">PDF</button>
- <button data-type="html">HTML</button>`,le.addEventListener((0,f.Le)(),function(Oe){var Ze=Oe.target;if(Ze.tagName==="BUTTON"){switch(Ze.getAttribute("data-type")){case"markdown":c9(I);break;case"pdf":d9(I);break;case"html":K5(I);break}b(I,["subToolbar"]),Oe.preventDefault(),Oe.stopPropagation()}}),z.element.appendChild(le),w(I,le,V,R.level),z}return T})(ze),p9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),h9=(function(E){p9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z._bindEvent(I,R),z}return T.prototype._bindEvent=function(I,R){this.element.children[0].addEventListener((0,f.Le)(),function(z){z.preventDefault(),I.element.className.includes("vditor--fullscreen")?(R.level||(this.innerHTML=R.icon),I.element.style.zIndex="",document.body.style.overflow="",I.element.classList.remove("vditor--fullscreen"),Object.keys(I.toolbar.elements).forEach(function(V){var le=I.toolbar.elements[V].firstChild;le&&(le.className=le.className.replace("__s","__n"),I.options.toolbar.forEach(function(Oe){typeof Oe!="string"&&Oe.tipPosition&&Oe.name===le.dataset.type&&(le.className="vditor-tooltipped vditor-tooltipped__".concat(Oe.tipPosition))}))}),I.counter&&(I.counter.element.className=I.counter.element.className.replace("__s","__n"))):(R.level||(this.innerHTML='<svg><use xlink:href="#vditor-icon-contract"></use></svg>'),I.element.style.zIndex=I.options.fullscreen.index.toString(),document.body.style.overflow="hidden",I.element.classList.add("vditor--fullscreen"),Object.keys(I.toolbar.elements).forEach(function(V){var le=I.toolbar.elements[V].firstChild;le&&(le.className=le.className.replace("__n","__s"))}),I.counter&&(I.counter.element.className=I.counter.element.className.replace("__n","__s"))),I.devtools&&I.devtools.renderEchart(I),R.click&&R.click(z,I),ce(I),Re(I)})},T})(ze),g2=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),v2=(function(E){g2(T,E);function T(I,R){var z=E.call(this,I,R)||this,V=document.createElement("div");return V.className="vditor-hint vditor-panel--arrow",V.innerHTML='<button data-tag="h1" data-value="# ">'.concat(window.VditorI18n.heading1," ").concat((0,f.ns)("<⌥⌘1>"),`</button>
- <button data-tag="h2" data-value="## ">`).concat(window.VditorI18n.heading2," <").concat((0,f.ns)("⌥⌘2"),`></button>
- <button data-tag="h3" data-value="### ">`).concat(window.VditorI18n.heading3," <").concat((0,f.ns)("⌥⌘3"),`></button>
- <button data-tag="h4" data-value="#### ">`).concat(window.VditorI18n.heading4," <").concat((0,f.ns)("⌥⌘4"),`></button>
- <button data-tag="h5" data-value="##### ">`).concat(window.VditorI18n.heading5," <").concat((0,f.ns)("⌥⌘5"),`></button>
- <button data-tag="h6" data-value="###### ">`).concat(window.VditorI18n.heading6," <").concat((0,f.ns)("⌥⌘6"),"></button>"),z.element.appendChild(V),z._bindEvent(I,V),z}return T.prototype._bindEvent=function(I,R){var z=this.element.children[0];z.addEventListener((0,f.Le)(),function(le){le.preventDefault(),clearTimeout(I.wysiwyg.afterRenderTimeoutId),clearTimeout(I.ir.processTimeoutId),clearTimeout(I.sv.processTimeoutId),!z.classList.contains(s.g.CLASS_MENU_DISABLED)&&(z.blur(),z.classList.contains("vditor-menu--current")?(I.currentMode==="wysiwyg"?(st(I),Ne(I)):I.currentMode==="ir"&&ae(I,""),z.classList.remove("vditor-menu--current")):(b(I,["subToolbar"]),R.style.display="block"))});for(var V=0;V<6;V++)R.children.item(V).addEventListener((0,f.Le)(),function(le){le.preventDefault(),I.currentMode==="wysiwyg"?(_t(I,le.target.getAttribute("data-tag")),Ne(I),z.classList.add("vditor-menu--current")):I.currentMode==="ir"?(ae(I,le.target.getAttribute("data-value")),z.classList.add("vditor-menu--current")):An(I,le.target.getAttribute("data-value")),R.style.display="none"})},T})(ze),g9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),v9=(function(E){g9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),I.tip.show(`<div style="margin-bottom:14px;font-size: 14px;line-height: 22px;min-width:300px;max-width: 360px;display: flex;">
- <div style="margin-top: 14px;flex: 1">
- <div>Markdown 使用指南</div>
- <ul style="list-style: none">
- <li><a href="https://ld246.com/article/1583308420519" target="_blank">语法速查手册</a></li>
- <li><a href="https://ld246.com/article/1583129520165" target="_blank">基础语法</a></li>
- <li><a href="https://ld246.com/article/1583305480675" target="_blank">扩展语法</a></li>
- <li><a href="https://ld246.com/article/1582778815353" target="_blank">键盘快捷键</a></li>
- </ul>
- </div>
- <div style="margin-top: 14px;flex: 1">
- <div>Vditor 支持</div>
- <ul style="list-style: none">
- <li><a href="https://github.com/Vanessa219/vditor/issues" target="_blank">Issues</a></li>
- <li><a href="https://ld246.com/tag/vditor" target="_blank">官方讨论区</a></li>
- <li><a href="https://ld246.com/article/1549638745630" target="_blank">开发手册</a></li>
- <li><a href="https://ld246.com/guide/markdown" target="_blank">演示地址</a></li>
- </ul>
- </div></div>`,0)}),z}return T})(ze),m9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),Q5=(function(E){m9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){if(V.preventDefault(),!(z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||I.currentMode==="sv")){var le=(0,L.zh)(I),Oe=(0,A.lG)(le.startContainer,"LI");Oe&&Ai(I,Oe,le)}}),z}return T})(ze),y9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),Y5=(function(E){y9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),I.tip.show(`<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">
- <p style="text-align: center;margin: 14px 0">
- <em>下一代的 Markdown 编辑器,为未来而构建</em>
- </p>
- <div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">
- <img src="https://unpkg.com/vditor/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>
- <div> </div>
- <div style="flex: 1;min-width: 250px">
- Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。
- 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。
- </div>
- </div>
- <div style="display: flex;flex-wrap: wrap;">
- <ul style="list-style: none;flex: 1;min-width:148px">
- <li>
- 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
- </li>
- <li>
- 开源协议:MIT
- </li>
- </ul>
- <ul style="list-style: none;margin-right: 18px">
- <li>
- 组件版本:Vditor v`.concat(s.H," / Lute v").concat(Lute.Version,`
- </li>
- <li>
- 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>
- </li>
- </ul>
- </div>
- </div>`),0)}),z}return T})(ze),b9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),w9=(function(E){b9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),!(z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||I.currentMode==="sv")&&Xo(I,"afterend")}),z}return T})(ze),Z5=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),A9=(function(E){Z5(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),!(z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||I.currentMode==="sv")&&Xo(I,"beforebegin")}),z}return T})(ze),xp=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),C9=(function(E){xp(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z.element.children[0].addEventListener((0,f.Le)(),function(V){if(V.preventDefault(),!(z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||I.currentMode==="sv")){var le=(0,L.zh)(I),Oe=(0,A.lG)(le.startContainer,"LI");Oe&&Ci(I,Oe,le,Oe.parentElement)}}),z}return T})(ze),x9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),S9=(function(E){x9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return I.options.outline&&z.element.firstElementChild.classList.add("vditor-menu--current"),z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault();var le=I.toolbar.elements.outline.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(I.options.outline.enable=!z.element.firstElementChild.classList.contains("vditor-menu--current"),I.outline.toggle(I,I.options.outline.enable))}),z}return T})(ze),E9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),k9=(function(E){E9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z._bindEvent(I),z}return T.prototype._bindEvent=function(I){var R=this;this.element.children[0].addEventListener((0,f.Le)(),function(z){z.preventDefault();var V=R.element.firstElementChild;if(!V.classList.contains(s.g.CLASS_MENU_DISABLED)){var le=s.g.EDIT_TOOLBARS.concat(["both","edit-mode","devtools"]);V.classList.contains("vditor-menu--current")?(V.classList.remove("vditor-menu--current"),I.currentMode==="sv"?(I.sv.element.style.display="block",I.options.preview.mode==="both"?I.preview.element.style.display="block":I.preview.element.style.display="none"):(I[I.currentMode].element.parentElement.style.display="block",I.preview.element.style.display="none"),h(I.toolbar.elements,le),I.outline.render(I)):(g(I.toolbar.elements,le),I.preview.element.style.display="block",I.currentMode==="sv"?I.sv.element.style.display="none":I[I.currentMode].element.parentElement.style.display="none",I.preview.render(I),V.classList.add("vditor-menu--current"),b(I,["subToolbar","hint","popover"]),setTimeout(function(){I.outline.render(I)},I.options.preview.delay+10)),ce(I)}})},T})(ze),T9=(function(){function E(T){this.SAMPLE_RATE=5e3,this.isRecording=!1,this.readyFlag=!1,this.leftChannel=[],this.rightChannel=[],this.recordingLength=0;var I;if(typeof AudioContext<"u")I=new AudioContext;else if(webkitAudioContext)I=new webkitAudioContext;else return;this.DEFAULT_SAMPLE_RATE=I.sampleRate;var R=I.createGain(),z=I.createMediaStreamSource(T);z.connect(R),this.recorder=I.createScriptProcessor(2048,2,1),this.recorder.onaudioprocess=null,R.connect(this.recorder),this.recorder.connect(I.destination),this.readyFlag=!0}return E.prototype.cloneChannelData=function(T,I){this.leftChannel.push(new Float32Array(T)),this.rightChannel.push(new Float32Array(I)),this.recordingLength+=2048},E.prototype.startRecordingNewWavFile=function(){this.readyFlag&&(this.isRecording=!0,this.leftChannel.length=this.rightChannel.length=0,this.recordingLength=0)},E.prototype.stopRecording=function(){this.isRecording=!1},E.prototype.buildWavFileBlob=function(){for(var T=this.mergeBuffers(this.leftChannel),I=this.mergeBuffers(this.rightChannel),R=new Float32Array(T.length),z=0;z<T.length;++z)R[z]=.5*(T[z]+I[z]);this.DEFAULT_SAMPLE_RATE>this.SAMPLE_RATE&&(R=this.downSampleBuffer(R,this.SAMPLE_RATE));var V=44+R.length*2,le=new ArrayBuffer(V),Oe=new DataView(le);this.writeUTFBytes(Oe,0,"RIFF"),Oe.setUint32(4,V,!0),this.writeUTFBytes(Oe,8,"WAVE"),this.writeUTFBytes(Oe,12,"fmt "),Oe.setUint32(16,16,!0),Oe.setUint16(20,1,!0),Oe.setUint16(22,1,!0),Oe.setUint32(24,this.SAMPLE_RATE,!0),Oe.setUint32(28,this.SAMPLE_RATE*2,!0),Oe.setUint16(32,2,!0),Oe.setUint16(34,16,!0);var Ze=R.length*2;this.writeUTFBytes(Oe,36,"data"),Oe.setUint32(40,Ze,!0);for(var $e=R.length,dt=44,At=1,En=0;En<$e;En++)Oe.setInt16(dt,R[En]*(32767*At),!0),dt+=2;return new Blob([Oe],{type:"audio/wav"})},E.prototype.downSampleBuffer=function(T,I){if(I===this.DEFAULT_SAMPLE_RATE||I>this.DEFAULT_SAMPLE_RATE)return T;for(var R=this.DEFAULT_SAMPLE_RATE/I,z=Math.round(T.length/R),V=new Float32Array(z),le=0,Oe=0;le<V.length;){for(var Ze=Math.round((le+1)*R),$e=0,dt=0,At=Oe;At<Ze&&At<T.length;At++)$e+=T[At],dt++;V[le]=$e/dt,le++,Oe=Ze}return V},E.prototype.mergeBuffers=function(T){for(var I=new Float32Array(this.recordingLength),R=0,z=T.length,V=0;V<z;++V){var le=T[V];I.set(le,R),R+=le.length}return I},E.prototype.writeUTFBytes=function(T,I,R){for(var z=R.length,V=0;V<z;V++)T.setUint8(I+V,R.charCodeAt(V))},E})(),X5=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),Sm=(function(E){X5(T,E);function T(I,R){var z=E.call(this,I,R)||this;return z._bindEvent(I),z}return T.prototype._bindEvent=function(I){var R=this,z;this.element.children[0].addEventListener((0,f.Le)(),function(V){if(V.preventDefault(),!R.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){var le=I[I.currentMode].element;if(!z){navigator.mediaDevices.getUserMedia({audio:!0}).then(function(Ze){z=new T9(Ze),z.recorder.onaudioprocess=function($e){if(z.isRecording){var dt=$e.inputBuffer.getChannelData(0),At=$e.inputBuffer.getChannelData(1);z.cloneChannelData(dt,At)}},z.startRecordingNewWavFile(),I.tip.show(window.VditorI18n.recording),le.setAttribute("contenteditable","false"),R.element.children[0].classList.add("vditor-menu--current")}).catch(function(){I.tip.show(window.VditorI18n["record-tip"])});return}if(z.isRecording){z.stopRecording(),I.tip.hide();var Oe=new File([z.buildWavFileBlob()],"record".concat(new Date().getTime(),".wav"),{type:"video/webm"});Vr(I,[Oe]),R.element.children[0].classList.remove("vditor-menu--current")}else I.tip.show(window.VditorI18n.recording),le.setAttribute("contenteditable","false"),z.startRecordingNewWavFile(),R.element.children[0].classList.add("vditor-menu--current")}})},T})(ze),J5=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),_9=(function(E){J5(T,E);function T(I,R){var z=E.call(this,I,R)||this;return g({redo:z.element},["redo"]),z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),!z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&I.undo.redo(I)}),z}return T})(ze),D9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),I9=(function(E){D9(T,E);function T(I,R){var z=E.call(this,I,R)||this;return g({undo:z.element},["undo"]),z.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),!z.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&I.undo.undo(I)}),z}return T})(ze),O9=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),M9=(function(E){O9(T,E);function T(I,R){var z=E.call(this,I,R)||this,V='<input type="file"';return I.options.upload.multiple&&(V+=' multiple="multiple"'),I.options.upload.accept&&(V+=' accept="'.concat(I.options.upload.accept,'"')),z.element.children[0].innerHTML="".concat(R.icon||'<svg><use xlink:href="#vditor-icon-upload"></use></svg>').concat(V,">"),z._bindEvent(I),z}return T.prototype._bindEvent=function(I){var R=this;this.element.children[0].addEventListener((0,f.Le)(),function(z){if(R.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){z.stopPropagation(),z.preventDefault();return}}),this.element.querySelector("input").addEventListener("change",function(z){if(R.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){z.stopPropagation(),z.preventDefault();return}z.target.files.length!==0&&Vr(I,z.target.files,z.target)})},T})(ze),P9=(function(){function E(T){var I=this,R=T.options;this.elements={},this.element=document.createElement("div"),this.element.className="vditor-toolbar",R.toolbar.forEach(function(z,V){var le=I.genItem(T,z,V);if(I.element.appendChild(le),z.toolbar){var Oe=document.createElement("div");Oe.className="vditor-hint vditor-panel--arrow",Oe.addEventListener((0,f.Le)(),function(Ze){Oe.style.display="none"}),z.toolbar.forEach(function(Ze,$e){Ze.level=2,Oe.appendChild(I.genItem(T,Ze,V+$e))}),le.appendChild(Oe),w(T,Oe,le.children[0])}}),T.options.toolbarConfig.hide&&this.element.classList.add("vditor-toolbar--hide"),T.options.toolbarConfig.pin&&this.element.classList.add("vditor-toolbar--pin"),T.options.counter.enable&&(T.counter=new W5(T),this.element.appendChild(T.counter.element))}return E.prototype.updateConfig=function(T,I){T.options.toolbarConfig=Object.assign({hide:!1,pin:!1},I),T.options.toolbarConfig.hide?this.element.classList.add("vditor-toolbar--hide"):this.element.classList.remove("vditor-toolbar--hide"),T.options.toolbarConfig.pin?this.element.classList.add("vditor-toolbar--pin"):this.element.classList.remove("vditor-toolbar--pin")},E.prototype.genItem=function(T,I,R){var z;switch(I.name){case"bold":case"italic":case"more":case"strike":case"line":case"quote":case"list":case"ordered-list":case"check":case"code":case"inline-code":case"link":case"table":z=new ze(T,I);break;case"emoji":z=new h2(T,I);break;case"headings":z=new v2(T,I);break;case"|":z=new l9;break;case"br":z=new ml;break;case"undo":z=new I9(T,I);break;case"redo":z=new _9(T,I);break;case"help":z=new v9(T,I);break;case"both":z=new Na(T,I);break;case"preview":z=new k9(T,I);break;case"fullscreen":z=new h9(T,I);break;case"upload":z=new M9(T,I);break;case"record":z=new Sm(T,I);break;case"info":z=new Y5(T,I);break;case"edit-mode":z=new jt(T,I);break;case"devtools":z=new q5(T,I);break;case"outdent":z=new C9(T,I);break;case"indent":z=new Q5(T,I);break;case"outline":z=new S9(T,I);break;case"insert-after":z=new w9(T,I);break;case"insert-before":z=new A9(T,I);break;case"code-theme":z=new Cm(T,I);break;case"content-theme":z=new H5(T,I);break;case"export":z=new f9(T,I);break;default:z=new s9(T,I);break}if(z){var V=I.name;return(V==="br"||V==="|")&&(V=V+R),this.elements[V]=z.element,z.element}},E})(),N9=o(173),R9=(function(){function E(){this.stackSize=50,this.resetStack(),this.dmp=new N9}return E.prototype.clearStack=function(T){this.resetStack(),this.resetIcon(T)},E.prototype.resetIcon=function(T){T.toolbar&&(this[T.currentMode].undoStack.length>1?h(T.toolbar.elements,["undo"]):g(T.toolbar.elements,["undo"]),this[T.currentMode].redoStack.length!==0?h(T.toolbar.elements,["redo"]):g(T.toolbar.elements,["redo"]))},E.prototype.undo=function(T){if(T[T.currentMode].element.getAttribute("contenteditable")!=="false"&&!(this[T.currentMode].undoStack.length<2)){var I=this[T.currentMode].undoStack.pop();I&&(this[T.currentMode].redoStack.push(I),this.renderDiff(I,T),this[T.currentMode].hasUndo=!0,b(T,["hint"]))}},E.prototype.redo=function(T){if(T[T.currentMode].element.getAttribute("contenteditable")!=="false"){var I=this[T.currentMode].redoStack.pop();I&&(this[T.currentMode].undoStack.push(I),this.renderDiff(I,T,!0))}},E.prototype.recordFirstPosition=function(T,I){if(getSelection().rangeCount!==0&&!(this[T.currentMode].undoStack.length!==1||this[T.currentMode].undoStack[0].length===0||this[T.currentMode].redoStack.length>0)&&!((0,f.vU)()&&I.key==="Backspace")&&!(0,f.G6)()){var R=this.addCaret(T);R.replace("<wbr>","").replace(" vditor-ir__node--expand","")===this[T.currentMode].undoStack[0][0].diffs[0][1].replace("<wbr>","")&&(this[T.currentMode].undoStack[0][0].diffs[0][1]=R,this[T.currentMode].lastText=R)}},E.prototype.addToUndoStack=function(T){var I=this.addCaret(T,!0),R=this.dmp.diff_main(I,this[T.currentMode].lastText,!0),z=this.dmp.patch_make(I,this[T.currentMode].lastText,R);z.length===0&&this[T.currentMode].undoStack.length>0||(this[T.currentMode].lastText=I,this[T.currentMode].undoStack.push(z),this[T.currentMode].undoStack.length>this.stackSize&&this[T.currentMode].undoStack.shift(),this[T.currentMode].hasUndo&&(this[T.currentMode].redoStack=[],this[T.currentMode].hasUndo=!1,g(T.toolbar.elements,["redo"])),this[T.currentMode].undoStack.length>1&&h(T.toolbar.elements,["undo"]))},E.prototype.renderDiff=function(T,I,R){R===void 0&&(R=!1);var z;if(R){var V=this.dmp.patch_deepCopy(T).reverse();V.forEach(function(Oe){Oe.diffs.forEach(function(Ze){Ze[0]=-Ze[0]})}),z=this.dmp.patch_apply(V,this[I.currentMode].lastText)[0]}else z=this.dmp.patch_apply(T,this[I.currentMode].lastText)[0];if(this[I.currentMode].lastText=z,I[I.currentMode].element.innerHTML=z,I.currentMode!=="sv"&&(I[I.currentMode].element.querySelectorAll(".vditor-".concat(I.currentMode,"__preview")).forEach(function(Oe){Oe.parentElement.querySelector(".language-echarts")&&(I.currentMode==="ir"?Oe.parentElement.outerHTML=I.lute.SpinVditorIRDOM(Oe.parentElement.outerHTML):Oe.parentElement.outerHTML=I.lute.SpinVditorDOM(Oe.parentElement.outerHTML))}),I[I.currentMode].element.querySelectorAll(".vditor-".concat(I.currentMode,"__preview[data-render='2']")).forEach(function(Oe){$(Oe,I)})),I[I.currentMode].element.querySelector("wbr"))(0,L.ib)(I[I.currentMode].element,I[I.currentMode].element.ownerDocument.createRange()),Mn(I);else{var le=getSelection().getRangeAt(0);le.setEndBefore(I[I.currentMode].element),le.collapse(!1)}W(I),_r(I,{enableAddUndoStack:!1,enableHint:!1,enableInput:!0}),Ye(I),I[I.currentMode].element.querySelectorAll(".vditor-".concat(I.currentMode,"__preview[data-render='2']")).forEach(function(Oe){$(Oe,I)}),this[I.currentMode].undoStack.length>1?h(I.toolbar.elements,["undo"]):g(I.toolbar.elements,["undo"]),this[I.currentMode].redoStack.length!==0?h(I.toolbar.elements,["redo"]):g(I.toolbar.elements,["redo"])},E.prototype.resetStack=function(){this.ir={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.sv={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.wysiwyg={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]}},E.prototype.addCaret=function(T,I){I===void 0&&(I=!1);var R;if(getSelection().rangeCount!==0&&!T[T.currentMode].element.querySelector("wbr")){var z=getSelection().getRangeAt(0);if(T[T.currentMode].element.contains(z.startContainer)){R=z.cloneRange();var V=document.createElement("span");V.className="vditor-wbr",z.insertNode(V)}}var le=T[T.currentMode].element.cloneNode(!0);le.querySelectorAll(".vditor-".concat(T.currentMode,"__preview[data-render='1']")).forEach(function(Ze){Ze.firstElementChild&&(Ze.firstElementChild.classList.contains("language-echarts")||Ze.firstElementChild.classList.contains("language-plantuml")||Ze.firstElementChild.classList.contains("language-mindmap")?(Ze.firstElementChild.removeAttribute("_echarts_instance_"),Ze.firstElementChild.removeAttribute("data-processed"),Ze.firstElementChild.innerHTML=Ze.previousElementSibling.firstElementChild.innerHTML,Ze.setAttribute("data-render","2")):Ze.firstElementChild.classList.contains("language-math")&&(Ze.setAttribute("data-render","2"),Ze.firstElementChild.textContent=Ze.firstElementChild.getAttribute("data-math"),Ze.firstElementChild.removeAttribute("data-math")))});var Oe=le.innerHTML;return T[T.currentMode].element.querySelectorAll(".vditor-wbr").forEach(function(Ze){Ze.remove()}),I&&R&&(0,L.Hc)(R),Oe.replace('<span class="vditor-wbr"></span>',"<wbr>")},E})(),B9=o(673),ex=(function(){function E(T){this.defaultOptions={rtl:!1,after:void 0,cache:{enable:!0},cdn:s.g.CDN,classes:{preview:""},comment:{enable:!1},counter:{enable:!1,type:"markdown"},customRenders:[],debugger:!1,fullscreen:{index:90},height:"auto",hint:{delay:200,emoji:{"+1":"👍","-1":"👎",confused:"😕",eyes:"👀️",heart:"❤️",rocket:"🚀️",smile:"😄",tada:"🎉️"},emojiPath:"".concat(s.g.CDN,"/dist/images/emoji"),extend:[],parse:!0},icon:"ant",lang:"zh_CN",mode:"ir",outline:{enable:!1,position:"left"},placeholder:"",preview:{actions:["desktop","tablet","mobile","mp-wechat","zhihu"],delay:1e3,hljs:s.g.HLJS_OPTIONS,markdown:s.g.MARKDOWN_OPTIONS,math:s.g.MATH_OPTIONS,maxWidth:800,mode:"both",theme:s.g.THEME_OPTIONS,render:{media:{enable:!0}}},link:{isOpen:!0},image:{isPreview:!0},resize:{enable:!1,position:"bottom"},theme:"classic",toolbar:["emoji","headings","bold","italic","strike","link","|","list","ordered-list","check","outdent","indent","|","quote","line","code","inline-code","insert-before","insert-after","|","upload","record","table","|","undo","redo","|","fullscreen","edit-mode",{name:"more",toolbar:["both","code-theme","content-theme","export","outline","preview","devtools","info","help"]}],toolbarConfig:{hide:!1,pin:!1},typewriterMode:!1,undoDelay:800,upload:{extraData:{},fieldName:"file[]",filename:function(I){return I.replace(/\W/g,"")},linkToImgUrl:"",max:10*1024*1024,multiple:!0,url:"",withCredentials:!1},value:"",width:"auto"},this.options=T}return E.prototype.merge=function(){var T,I,R,z,V,le,Oe,Ze,$e;this.options&&(this.options.toolbar?this.options.toolbar=this.mergeToolbar(this.options.toolbar):this.options.toolbar=this.mergeToolbar(this.defaultOptions.toolbar),!((I=(T=this.options.preview)===null||T===void 0?void 0:T.theme)===null||I===void 0)&&I.list&&(this.defaultOptions.preview.theme.list=this.options.preview.theme.list),!((V=(z=(R=this.options.preview)===null||R===void 0?void 0:R.render)===null||z===void 0?void 0:z.media)===null||V===void 0)&&V.enable&&(this.defaultOptions.preview.render.media.enable=this.options.preview.render.media.enable),!((le=this.options.hint)===null||le===void 0)&&le.emoji&&(this.defaultOptions.hint.emoji=this.options.hint.emoji),this.options.comment&&(this.defaultOptions.comment=this.options.comment),this.options.cdn&&(!((Ze=(Oe=this.options.preview)===null||Oe===void 0?void 0:Oe.theme)===null||Ze===void 0)&&Ze.path||(this.defaultOptions.preview.theme.path="".concat(this.options.cdn,"/dist/css/content-theme")),!(($e=this.options.hint)===null||$e===void 0)&&$e.emojiPath||(this.defaultOptions.hint.emojiPath="".concat(this.options.cdn,"/dist/images/emoji"))));var dt=(0,B9.T)(this.defaultOptions,this.options);if(dt.cache.enable&&!dt.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");return dt},E.prototype.mergeToolbar=function(T){var I=this,R=[{icon:'<svg><use xlink:href="#vditor-icon-export"></use></svg>',name:"export",tipPosition:"ne"},{hotkey:"⌘E",icon:'<svg><use xlink:href="#vditor-icon-emoji"></use></svg>',name:"emoji",tipPosition:"ne"},{hotkey:"⌘H",icon:'<svg><use xlink:href="#vditor-icon-headings"></use></svg>',name:"headings",tipPosition:"ne"},{hotkey:"⌘B",icon:'<svg><use xlink:href="#vditor-icon-bold"></use></svg>',name:"bold",prefix:"**",suffix:"**",tipPosition:"ne"},{hotkey:"⌘I",icon:'<svg><use xlink:href="#vditor-icon-italic"></use></svg>',name:"italic",prefix:"*",suffix:"*",tipPosition:"ne"},{hotkey:"⌘D",icon:'<svg><use xlink:href="#vditor-icon-strike"></use></svg>',name:"strike",prefix:"~~",suffix:"~~",tipPosition:"ne"},{hotkey:"⌘K",icon:'<svg><use xlink:href="#vditor-icon-link"></use></svg>',name:"link",prefix:"[",suffix:"](https://)",tipPosition:"n"},{name:"|"},{hotkey:"⌘L",icon:'<svg><use xlink:href="#vditor-icon-list"></use></svg>',name:"list",prefix:"* ",tipPosition:"n"},{hotkey:"⌘O",icon:'<svg><use xlink:href="#vditor-icon-ordered-list"></use></svg>',name:"ordered-list",prefix:"1. ",tipPosition:"n"},{hotkey:"⌘J",icon:'<svg><use xlink:href="#vditor-icon-check"></use></svg>',name:"check",prefix:"* [ ] ",tipPosition:"n"},{hotkey:"⇧⌘I",icon:'<svg><use xlink:href="#vditor-icon-outdent"></use></svg>',name:"outdent",tipPosition:"n"},{hotkey:"⇧⌘O",icon:'<svg><use xlink:href="#vditor-icon-indent"></use></svg>',name:"indent",tipPosition:"n"},{name:"|"},{hotkey:"⌘;",icon:'<svg><use xlink:href="#vditor-icon-quote"></use></svg>',name:"quote",prefix:"> ",tipPosition:"n"},{hotkey:"⇧⌘H",icon:'<svg><use xlink:href="#vditor-icon-line"></use></svg>',name:"line",prefix:"---",tipPosition:"n"},{hotkey:"⌘U",icon:'<svg><use xlink:href="#vditor-icon-code"></use></svg>',name:"code",prefix:"```",suffix:"\n```",tipPosition:"n"},{hotkey:"⌘G",icon:'<svg><use xlink:href="#vditor-icon-inline-code"></use></svg>',name:"inline-code",prefix:"`",suffix:"`",tipPosition:"n"},{hotkey:"⇧⌘B",icon:'<svg><use xlink:href="#vditor-icon-before"></use></svg>',name:"insert-before",tipPosition:"n"},{hotkey:"⇧⌘E",icon:'<svg><use xlink:href="#vditor-icon-after"></use></svg>',name:"insert-after",tipPosition:"n"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-upload"></use></svg>',name:"upload",tipPosition:"n"},{icon:'<svg><use xlink:href="#vditor-icon-record"></use></svg>',name:"record",tipPosition:"n"},{hotkey:"⌘M",icon:'<svg><use xlink:href="#vditor-icon-table"></use></svg>',name:"table",prefix:"| col1",suffix:` | col2 | col3 |
- | --- | --- | --- |
- | | | |
- | | | |`,tipPosition:"n"},{name:"|"},{hotkey:"⌘Z",icon:'<svg><use xlink:href="#vditor-icon-undo"></use></svg>',name:"undo",tipPosition:"nw"},{hotkey:"⌘Y",icon:'<svg><use xlink:href="#vditor-icon-redo"></use></svg>',name:"redo",tipPosition:"nw"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-more"></use></svg>',name:"more",tipPosition:"e"},{hotkey:"⌘'",icon:'<svg><use xlink:href="#vditor-icon-fullscreen"></use></svg>',name:"fullscreen",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-edit"></use></svg>',name:"edit-mode",tipPosition:"nw"},{hotkey:"⌘P",icon:'<svg><use xlink:href="#vditor-icon-both"></use></svg>',name:"both",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-preview"></use></svg>',name:"preview",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',name:"outline",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-theme"></use></svg>',name:"content-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-code-theme"></use></svg>',name:"code-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-bug"></use></svg>',name:"devtools",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-info"></use></svg>',name:"info",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-help"></use></svg>',name:"help",tipPosition:"nw"},{name:"br"}],z=[];return T.forEach(function(V){var le=V;R.forEach(function(Oe){typeof V=="string"&&Oe.name===V&&(le=Oe),typeof V=="object"&&Oe.name===V.name&&(le=Object.assign({},Oe,V))}),V.toolbar&&(le.toolbar=I.mergeToolbar(V.toolbar)),z.push(le)}),z},E})(),L9=(function(){function E(T){var I=this;this.composingLock=!1,this.commentIds=[];var R=document.createElement("div");R.className="vditor-wysiwyg",R.innerHTML='<pre class="vditor-reset" placeholder="'.concat(T.options.placeholder,`"
- contenteditable="true" spellcheck="false"></pre>
- <div class="vditor-panel vditor-panel--none"></div>
- <div class="vditor-panel vditor-panel--none">
- <button type="button" aria-label="`).concat(window.VditorI18n.comment,`" class="vditor-icon vditor-tooltipped vditor-tooltipped__n">
- <svg><use xlink:href="#vditor-icon-comment"></use></svg>
- </button>
- </div>`),this.element=R.firstElementChild,this.popover=R.firstElementChild.nextElementSibling,this.selectPopover=R.lastElementChild,this.bindEvent(T),Nn(T,this.element),xt(T,this.element),sn(T,this.element),tr(T,this.element),dn(T,this.element),vt(T,this.element),Nt(T,this.element,this.copy),bn(T,this.element,this.copy),T.options.comment.enable&&(this.selectPopover.querySelector("button").onclick=function(){var z=Lute.NewNodeID(),V=getSelection().getRangeAt(0),le=V.cloneRange(),Oe=V.extractContents(),Ze,$e,dt=!1,At=!1;Oe.childNodes.forEach(function(yn,un){var kn=!1;if(yn.nodeType===3?kn=!0:yn.classList.contains("vditor-comment")?yn.classList.contains("vditor-comment")&&yn.setAttribute("data-cmtids",yn.getAttribute("data-cmtids")+" "+z):kn=!0,kn)if(yn.nodeType!==3&&yn.getAttribute("data-block")==="0"&&un===0&&le.startOffset>0)yn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(z,'">').concat(yn.innerHTML,"</span>"),Ze=yn;else if(yn.nodeType!==3&&yn.getAttribute("data-block")==="0"&&un===Oe.childNodes.length-1&&le.endOffset<le.endContainer.textContent.length)yn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(z,'">').concat(yn.innerHTML,"</span>"),$e=yn;else if(yn.nodeType!==3&&yn.getAttribute("data-block")==="0")un===0?dt=!0:un===Oe.childNodes.length-1&&(At=!0),yn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(z,'">').concat(yn.innerHTML,"</span>");else{var fn=document.createElement("span");fn.classList.add("vditor-comment"),fn.setAttribute("data-cmtids",z),yn.parentNode.insertBefore(fn,yn),fn.appendChild(yn)}});var En=(0,A.F9)(le.startContainer);En&&(Ze?(En.insertAdjacentHTML("beforeend",Ze.innerHTML),Ze.remove()):En.textContent.trim().replace(s.g.ZWSP,"")===""&&dt&&En.remove());var Cn=(0,A.F9)(le.endContainer);Cn&&($e?(Cn.insertAdjacentHTML("afterbegin",$e.innerHTML),$e.remove()):Cn.textContent.trim().replace(s.g.ZWSP,"")===""&&At&&Cn.remove()),V.insertNode(Oe),T.options.comment.add(z,V.toString(),I.getComments(T,!0)),Ne(T,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),I.hideComment()})}return E.prototype.getComments=function(T,I){var R=this;if(I===void 0&&(I=!1),T.currentMode==="wysiwyg"&&T.options.comment.enable){this.commentIds=[],this.element.querySelectorAll(".vditor-comment").forEach(function(V){R.commentIds=R.commentIds.concat(V.getAttribute("data-cmtids").split(" "))}),this.commentIds=Array.from(new Set(this.commentIds));var z=[];if(I)return this.commentIds.forEach(function(V){z.push({id:V,top:R.element.querySelector('.vditor-comment[data-cmtids="'.concat(V,'"]')).offsetTop})}),z}else return[]},E.prototype.triggerRemoveComment=function(T){var I=function(V,le){var Oe=new Set(le);return V.filter(function(Ze){return!Oe.has(Ze)})};if(T.currentMode==="wysiwyg"&&T.options.comment.enable&&T.wysiwyg.commentIds.length>0){var R=JSON.parse(JSON.stringify(this.commentIds));this.getComments(T);var z=I(R,this.commentIds);z.length>0&&T.options.comment.remove(z)}},E.prototype.showComment=function(){var T=(0,L.Ny)(this.element);this.selectPopover.setAttribute("style","left:".concat(T.left,"px;display:block;top:").concat(Math.max(-8,T.top-21),"px"))},E.prototype.hideComment=function(){this.selectPopover.setAttribute("style","display:none")},E.prototype.unbindListener=function(){window.removeEventListener("scroll",this.scrollListener)},E.prototype.copy=function(T,I){var R=getSelection().getRangeAt(0);if(R.toString()!==""){T.stopPropagation(),T.preventDefault();var z=(0,A.lG)(R.startContainer,"CODE"),V=(0,A.lG)(R.endContainer,"CODE");if(z&&V&&V.isSameNode(z)){var le="";z.parentElement.tagName==="PRE"?le=R.toString():le="`"+R.toString()+"`",T.clipboardData.setData("text/plain",le),T.clipboardData.setData("text/html","");return}var Oe=(0,A.lG)(R.startContainer,"A"),Ze=(0,A.lG)(R.endContainer,"A");if(Oe&&Ze&&Ze.isSameNode(Oe)){var $e=Oe.getAttribute("title")||"";$e&&($e=' "'.concat($e,'"')),T.clipboardData.setData("text/plain","[".concat(R.toString(),"](").concat(Oe.getAttribute("href")).concat($e,")")),T.clipboardData.setData("text/html","");return}var dt=document.createElement("div");dt.appendChild(R.cloneContents()),T.clipboardData.setData("text/plain",I.lute.VditorDOM2Md(dt.innerHTML).trim()),T.clipboardData.setData("text/html","")}},E.prototype.bindEvent=function(T){var I=this;this.unbindListener(),window.addEventListener("scroll",this.scrollListener=function(){if(b(T,["hint"]),!(I.popover.style.display!=="block"||I.selectPopover.style.display!=="block")){var R=parseInt(I.popover.getAttribute("data-top"),10);if(T.options.height!=="auto"){if(T.options.toolbarConfig.pin&&T.toolbar.element.getBoundingClientRect().top===0){var z=Math.max(window.scrollY-T.element.offsetTop-8,Math.min(R-T.wysiwyg.element.scrollTop,I.element.clientHeight-21))+"px";I.popover.style.display==="block"&&(I.popover.style.top=z),I.selectPopover.style.display==="block"&&(I.selectPopover.style.top=z)}return}else if(!T.options.toolbarConfig.pin)return;var V=Math.max(R,window.scrollY-T.element.offsetTop-8)+"px";I.popover.style.display==="block"&&(I.popover.style.top=V),I.selectPopover.style.display==="block"&&(I.selectPopover.style.top=V)}}),this.element.addEventListener("scroll",function(){if(b(T,["hint"]),T.options.comment&&T.options.comment.enable&&T.options.comment.scroll&&T.options.comment.scroll(T.wysiwyg.element.scrollTop),I.popover.style.display==="block"){var R=parseInt(I.popover.getAttribute("data-top"),10)-T.wysiwyg.element.scrollTop,z=-8;T.options.toolbarConfig.pin&&T.toolbar.element.getBoundingClientRect().top===0&&(z=window.scrollY-T.element.offsetTop+z);var V=Math.max(z,Math.min(R,I.element.clientHeight-21))+"px";I.popover.style.top=V,I.selectPopover.style.top=V}}),this.element.addEventListener("paste",function(R){lr(T,R,{pasteCode:function(z){var V=(0,L.zh)(T),le=document.createElement("template");le.innerHTML=z,V.insertNode(le.content.cloneNode(!0));var Oe=(0,A.a1)(V.startContainer,"data-block","0");Oe?Oe.outerHTML=T.lute.SpinVditorDOM(Oe.outerHTML):T.wysiwyg.element.innerHTML=T.lute.SpinVditorDOM(T.wysiwyg.element.innerHTML),(0,L.ib)(T.wysiwyg.element,V)}})}),this.element.addEventListener("compositionstart",function(){I.composingLock=!0}),this.element.addEventListener("compositionend",function(R){var z=(0,S.W)(getSelection().getRangeAt(0).startContainer);if(z&&z.textContent===""){W(T);return}(0,f.vU)()||wo(T,getSelection().getRangeAt(0).cloneRange(),R),I.composingLock=!1}),this.element.addEventListener("input",function(R){if(!(R.inputType==="deleteByDrag"||R.inputType==="insertFromDrop")){if(I.preventInput){I.preventInput=!1,Ne(T);return}if(I.composingLock||R.data==="‘"||R.data==="“"||R.data==="《"){Ne(T);return}var z=getSelection().getRangeAt(0),V=(0,A.F9)(z.startContainer);if(V||(ct(T,z),V=(0,A.F9)(z.startContainer)),!!V){for(var le=(0,L.im)(V,T.wysiwyg.element,z).start,Oe=!0,Ze=le-1;Ze>V.textContent.substr(0,le).lastIndexOf(`
- `);Ze--)if(V.textContent.charAt(Ze)!==" "&&V.textContent.charAt(Ze)!==" "){Oe=!1;break}le===0&&(Oe=!1);for(var $e=!0,Ze=le-1;Ze<V.textContent.length;Ze++)if(V.textContent.charAt(Ze)!==" "&&V.textContent.charAt(Ze)!==`
- `){$e=!1;break}$e&&/^#{1,6} $/.test(V.textContent)&&($e=!1);var dt=(0,S.W)(getSelection().getRangeAt(0).startContainer);if(dt&&dt.textContent===""&&(W(T),dt.remove()),Oe&&V.getAttribute("data-type")!=="code-block"||$e||ra(V.innerHTML)||mi(V.innerHTML)&&V.previousElementSibling){typeof T.options.input=="function"&&T.options.input(u(T));return}R.inputType==="insertParagraph"&&I.element.innerHTML==="<p><br></p><p><br></p>"&&V.previousElementSibling.remove(),wo(T,z,R)}}}),this.element.addEventListener("click",function(R){if(R.target.tagName==="INPUT"){var z=R.target;z.checked?z.setAttribute("checked","checked"):z.removeAttribute("checked"),I.preventInput=!0,getSelection().rangeCount>0&&(0,L.Hc)(getSelection().getRangeAt(0)),Ne(T);return}if(R.target.tagName==="IMG"&&!R.target.parentElement.classList.contains("vditor-wysiwyg__preview")){R.target.getAttribute("data-type")==="link-ref"?nn(T,R.target):rt(R,T);return}var V=(0,A.lG)(R.target,"A");if(V){T.options.link.click?T.options.link.click(V):T.options.link.isOpen&&window.open(V.getAttribute("href")),R.preventDefault();return}var le=(0,L.zh)(T);if(R.target.isEqualNode(I.element)&&I.element.lastElementChild&&le.collapsed){var Oe=I.element.lastElementChild.getBoundingClientRect();R.y>Oe.top+Oe.height&&(I.element.lastElementChild.tagName==="P"&&I.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?(le.selectNodeContents(I.element.lastElementChild),le.collapse(!1)):(I.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,L.ib)(I.element,le)))}at(T);var Ze=(0,A.fb)(R.target,"vditor-wysiwyg__preview");Ze||(Ze=(0,A.fb)((0,L.zh)(T).startContainer,"vditor-wysiwyg__preview")),Ze&&Ot(Ze,T),ie(R,T)}),this.element.addEventListener("keyup",function(R){if(!(R.isComposing||(0,f.yl)(R))){R.key==="Enter"&&Mn(T),(R.key==="Backspace"||R.key==="Delete")&&T.wysiwyg.element.innerHTML!==""&&T.wysiwyg.element.childNodes.length===1&&T.wysiwyg.element.firstElementChild&&T.wysiwyg.element.firstElementChild.tagName==="P"&&T.wysiwyg.element.firstElementChild.childElementCount===0&&(T.wysiwyg.element.textContent===""||T.wysiwyg.element.textContent===`
- `)&&(T.wysiwyg.element.innerHTML="");var z=(0,L.zh)(T);if(R.key==="Backspace"&&(0,f.vU)()&&z.startContainer.textContent===`
- `&&z.startOffset===1&&(z.startContainer.textContent=""),ct(T,z),at(T),!(R.key!=="ArrowDown"&&R.key!=="ArrowRight"&&R.key!=="Backspace"&&R.key!=="ArrowLeft"&&R.key!=="ArrowUp")){(R.key==="ArrowLeft"||R.key==="ArrowRight")&&T.hint.render(T);var V=(0,A.fb)(z.startContainer,"vditor-wysiwyg__preview");if(!V&&z.startContainer.nodeType!==3&&z.startOffset>0){var le=z.startContainer;le.classList.contains("vditor-wysiwyg__block")&&(V=le.lastElementChild)}if(V){var Oe=V.previousElementSibling;if(Oe.style.display==="none"){R.key==="ArrowDown"||R.key==="ArrowRight"?Ot(V,T):Ot(V,T,!1);return}var Ze=V.previousElementSibling;if(Ze.tagName==="PRE"&&(Ze=Ze.firstElementChild),R.key==="ArrowDown"||R.key==="ArrowRight"){var le=V.parentElement,$e=Wt(le);if($e&&$e.nodeType!==3){var dt=$e.querySelector(".vditor-wysiwyg__preview");if(dt){Ot(dt,T);return}}if($e.nodeType===3){for(;$e.textContent.length===0&&$e.nextSibling;)$e=$e.nextSibling;z.setStart($e,1)}else z.setStart($e.firstChild,0)}else z.selectNodeContents(Ze),z.collapse(!1)}}}})},E})(),fe=(function(){var E=function(T,I){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,z){R.__proto__=z}||function(R,z){for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&(R[V]=z[V])},E(T,I)};return function(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");E(T,I);function R(){this.constructor=T}T.prototype=I===null?Object.create(I):(R.prototype=I.prototype,new R)}})(),se=(function(E){fe(T,E);function T(I,R){var z=E.call(this)||this;if(z.isDestroyed=!1,z.version=s.H,typeof I=="string"){if(R?R.cache?R.cache.id||(R.cache.id="vditor".concat(I)):R.cache={id:"vditor".concat(I)}:R={cache:{id:"vditor".concat(I)}},!document.getElementById(I))return z.showErrorTip("Failed to get element by id: ".concat(I)),z;I=document.getElementById(I)}var V=new ex(R),le=V.merge();if(le.i18n)window.VditorI18n=le.i18n,z.init(I,le);else if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(le.lang)){var Oe="vditorI18nScript",Ze=Oe+le.lang;document.querySelectorAll('head script[id^="'.concat(Oe,'"]')).forEach(function($e){$e.id!==Ze&&document.head.removeChild($e)}),(0,d.G)("".concat(le.cdn,"/dist/js/i18n/").concat(le.lang,".js"),Ze).then(function(){z.init(I,le)}).catch(function($e){z.showErrorTip("GET ".concat(le.cdn,"/dist/js/i18n/").concat(le.lang,".js net::ERR_ABORTED 404 (Not Found)"))})}else throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");return z}return T.prototype.showErrorTip=function(I){var R=new Oi;document.body.appendChild(R.element),R.show(I,0)},T.prototype.updateToolbarConfig=function(I){this.vditor.toolbar.updateConfig(this.vditor,I)},T.prototype.setTheme=function(I,R,z,V){this.vditor.options.theme=I,pe(this.vditor),R&&(this.vditor.options.preview.theme.current=R,(0,De.Z)(R,V||this.vditor.options.preview.theme.path)),z&&(this.vditor.options.preview.hljs.style=z,(0,Xc.Y)(z,this.vditor.options.cdn))},T.prototype.getValue=function(){return u(this.vditor)},T.prototype.getCurrentMode=function(){return this.vditor.currentMode},T.prototype.focus=function(){this.vditor.currentMode==="sv"?this.vditor.sv.element.focus():this.vditor.currentMode==="wysiwyg"?this.vditor.wysiwyg.element.focus():this.vditor.currentMode==="ir"&&this.vditor.ir.element.focus()},T.prototype.blur=function(){this.vditor.currentMode==="sv"?this.vditor.sv.element.blur():this.vditor.currentMode==="wysiwyg"?this.vditor.wysiwyg.element.blur():this.vditor.currentMode==="ir"&&this.vditor.ir.element.blur()},T.prototype.disabled=function(){b(this.vditor,["subToolbar","hint","popover"]),g(this.vditor.toolbar.elements,s.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","false")},T.prototype.enable=function(){h(this.vditor.toolbar.elements,s.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor.undo.resetIcon(this.vditor),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","true")},T.prototype.getSelection=function(){if(this.vditor.currentMode==="wysiwyg")return mn(this.vditor.wysiwyg.element);if(this.vditor.currentMode==="sv")return mn(this.vditor.sv.element);if(this.vditor.currentMode==="ir")return mn(this.vditor.ir.element)},T.prototype.renderPreview=function(I){this.vditor.preview.render(this.vditor,I)},T.prototype.getCursorPosition=function(){return(0,L.Ny)(this.vditor[this.vditor.currentMode].element)},T.prototype.isUploading=function(){return this.vditor.upload.isUploading},T.prototype.clearCache=function(){this.vditor.options.cache.enable&&(0,f.pK)()&&localStorage.removeItem(this.vditor.options.cache.id)},T.prototype.disabledCache=function(){this.vditor.options.cache.enable=!1},T.prototype.enableCache=function(){if(!this.vditor.options.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");this.vditor.options.cache.enable=!0},T.prototype.html2md=function(I){return this.vditor.lute.HTML2Md(I)},T.prototype.exportJSON=function(I){return this.vditor.lute.RenderJSON(I)},T.prototype.getHTML=function(){return On(this.vditor)},T.prototype.tip=function(I,R){this.vditor.tip.show(I,R)},T.prototype.setPreviewMode=function(I){oo(I,this.vditor)},T.prototype.deleteValue=function(){window.getSelection().isCollapsed||document.execCommand("delete",!1)},T.prototype.updateValue=function(I){document.execCommand("insertHTML",!1,I)},T.prototype.insertValue=function(I,R){R===void 0&&(R=!0);var z=(0,L.zh)(this.vditor);z.collapse(!0);var V=document.createElement("template");V.innerHTML=I,z.insertNode(V.content.cloneNode(!0)),z.collapse(!1),this.vditor.currentMode==="sv"?(this.vditor.sv.preventInput=!0,R&&Y(this.vditor)):this.vditor.currentMode==="wysiwyg"?R&&wo(this.vditor,getSelection().getRangeAt(0)):this.vditor.currentMode==="ir"&&(this.vditor.ir.preventInput=!0,R&&te(this.vditor,getSelection().getRangeAt(0),!0))},T.prototype.insertMD=function(I){this.vditor.currentMode==="ir"?(0,L.oC)(this.vditor.lute.Md2VditorIRDOM(I),this.vditor):this.vditor.currentMode==="wysiwyg"?(0,L.oC)(this.vditor.lute.Md2VditorDOM(I),this.vditor):Ke(this.vditor,I),this.vditor.outline.render(this.vditor),_r(this.vditor)},T.prototype.setValue=function(I,R){var z=this;R===void 0&&(R=!1),this.vditor.currentMode==="sv"?(this.vditor.sv.element.innerHTML="<div data-block='0'>".concat(this.vditor.lute.SpinVditorSVDOM(I),"</div>"),Gt(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})):this.vditor.currentMode==="wysiwyg"?Je(this.vditor,I,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}):(this.vditor.ir.element.innerHTML=this.vditor.lute.Md2VditorIRDOM(I),this.vditor.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(V){$(V,z.vditor)}),ye(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})),this.vditor.outline.render(this.vditor),I||(b(this.vditor,["emoji","headings","submenu","hint"]),this.vditor.wysiwyg.popover&&(this.vditor.wysiwyg.popover.style.display="none"),this.clearCache()),R&&this.clearStack()},T.prototype.insertEmptyBlock=function(I){Xo(this.vditor,I)},T.prototype.clearStack=function(){this.vditor.undo.clearStack(this.vditor),this.vditor.undo.addToUndoStack(this.vditor)},T.prototype.destroy=function(){this.vditor.element.innerHTML=this.vditor.originalInnerHTML,this.vditor.element.classList.remove("vditor"),this.vditor.element.removeAttribute("style");var I=document.getElementById("vditorIconScript");I&&I.remove(),this.clearCache(),Le(),this.vditor.wysiwyg.unbindListener(),this.vditor.options.after=void 0,this.isDestroyed=!0},T.prototype.getCommentIds=function(){return this.vditor.currentMode!=="wysiwyg"?[]:this.vditor.wysiwyg.getComments(this.vditor,!0)},T.prototype.hlCommentIds=function(I){if(this.vditor.currentMode==="wysiwyg"){var R=function(z){z.classList.remove("vditor-comment--hover"),I.forEach(function(V){z.getAttribute("data-cmtids").indexOf(V)>-1&&z.classList.add("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(z){R(z)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(z){R(z)})}},T.prototype.unHlCommentIds=function(I){if(this.vditor.currentMode==="wysiwyg"){var R=function(z){I.forEach(function(V){z.getAttribute("data-cmtids").indexOf(V)>-1&&z.classList.remove("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(z){R(z)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(z){R(z)})}},T.prototype.removeCommentIds=function(I){var R=this;if(this.vditor.currentMode==="wysiwyg"){var z=function(V,le){var Oe=V.getAttribute("data-cmtids").split(" ");Oe.find(function(Ze,$e){if(Ze===le)return Oe.splice($e,1),!0}),Oe.length===0?(V.outerHTML=V.innerHTML,(0,L.zh)(R.vditor).collapse(!0)):V.setAttribute("data-cmtids",Oe.join(" "))};I.forEach(function(V){R.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(le){z(le,V)}),R.vditor.preview.element.style.display!=="none"&&R.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(le){z(le,V)})}),Ne(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})}},T.prototype.init=function(I,R){var z=this;this.isDestroyed||(this.vditor={currentMode:R.mode,element:I,hint:new wn(R.hint.extend),lute:void 0,options:R,originalInnerHTML:I.innerHTML,outline:new Wo(window.VditorI18n.outline),tip:new Oi},this.vditor.sv=new ni(this.vditor),this.vditor.undo=new R9,this.vditor.wysiwyg=new L9(this.vditor),this.vditor.ir=new Sn(this.vditor),this.vditor.toolbar=new P9(this.vditor),R.resize.enable&&(this.vditor.resize=new ro(this.vditor)),this.vditor.toolbar.elements.devtools&&(this.vditor.devtools=new c),(R.upload.url||R.upload.handler)&&(this.vditor.upload=new bo),(0,d.G)(R._lutePath||"".concat(R.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){z.vditor.lute=(0,br.X)({autoSpace:z.vditor.options.preview.markdown.autoSpace,gfmAutoLink:z.vditor.options.preview.markdown.gfmAutoLink,codeBlockPreview:z.vditor.options.preview.markdown.codeBlockPreview,emojiSite:z.vditor.options.hint.emojiPath,emojis:z.vditor.options.hint.emoji,fixTermTypo:z.vditor.options.preview.markdown.fixTermTypo,footnotes:z.vditor.options.preview.markdown.footnotes,headingAnchor:!1,inlineMathDigit:z.vditor.options.preview.math.inlineDigit,linkBase:z.vditor.options.preview.markdown.linkBase,linkPrefix:z.vditor.options.preview.markdown.linkPrefix,listStyle:z.vditor.options.preview.markdown.listStyle,mark:z.vditor.options.preview.markdown.mark,mathBlockPreview:z.vditor.options.preview.markdown.mathBlockPreview,paragraphBeginningSpace:z.vditor.options.preview.markdown.paragraphBeginningSpace,sanitize:z.vditor.options.preview.markdown.sanitize,toc:z.vditor.options.preview.markdown.toc}),z.vditor.preview=new Io(z.vditor),oe(z.vditor),R.after&&R.after(),R.icon&&(0,d.J)("".concat(R.cdn,"/dist/js/icons/").concat(R.icon,".js"),"vditorIconScript")}))},T})(a.default);const Se=se})(),i=i.default,i})()})})(q8)),q8.exports}var Dnn=_nn();const Inn=mu(Dnn),Onn={class:"mobile-chat"},Mnn={class:"mobile-content"},Pnn={key:0,class:"initial-content"},Nnn={class:"ai-intro"},Rnn={class:"ai-avatar"},Bnn=["src"],Lnn={class:"function-cards"},Fnn=["onClick"],Unn={class:"card-header"},$nn={class:"card-icon"},znn=["src","alt"],jnn={class:"card-description"},Hnn={class:"card-header"},Wnn={class:"card-icon"},Vnn=["src"],qnn={class:"card-header"},Gnn={class:"card-icon"},Knn=["src"],Qnn={class:"card-header"},Ynn={class:"card-icon"},Znn=["src"],Xnn={class:"card-header"},Jnn={class:"card-icon"},ern=["src"],trn={key:1,class:"chat-messages"},nrn={key:0,class:"user-message"},rrn={class:"message-content"},orn={key:0,class:"message-text"},irn={class:"message-actions"},arn=["onClick"],srn=["src"],lrn=["onClick"],urn=["src"],crn={key:1,class:"ai-message"},drn={key:0,class:"web-search-capsule-outer"},frn={class:"ai-message-main"},prn={class:"ai-avatar-small"},hrn=["src"],grn=["data-message-index"],vrn={class:"ai-response-content"},mrn=["data-message-index"],yrn={class:"stats-left"},brn=["innerHTML"],wrn={key:0,class:"progress-capsule-inline"},Arn={class:"progress-bar-mini"},Crn={class:"progress-percentage"},xrn={key:1,class:"stats-right"},Srn={key:1,class:"question-summary"},Ern={key:2,class:"report-loading"},krn={key:3,class:"reports-list"},Trn={key:0,class:"report-loading"},_rn={key:4},Drn={key:5,class:"ai-text"},Irn={key:0,class:"ai-markdown-content"},Orn=["innerHTML"],Mrn={class:"divider"},Prn={class:"message-actions"},Nrn={class:"left-actions"},Rrn=["onClick"],Brn=["src"],Lrn=["onClick","disabled"],Frn=["src"],Urn=["onClick","title"],$rn=["src"],zrn={class:"right-actions"},jrn=["onClick","title"],Hrn=["src"],Wrn=["onClick","title"],Vrn=["src"],qrn={class:"related-questions-loading"},Grn={class:"related-questions"},Krn=["onClick"],Qrn={class:"chat-input-section"},Yrn={class:"input-container"},Zrn={class:"input-box"},Xrn=["title","disabled"],Jrn={class:"icon-container"},eon=["src"],ton=["disabled"],non=["disabled"],ron={class:"icon-container"},oon=["src"],ion={key:0,class:"recording-indicator"},aon=["disabled"],son=["src"],lon={class:"web-search-modal-header"},uon={class:"web-search-modal-content"},con={key:0,class:"search-results"},don={class:"search-count"},fon=["onClick"],pon={class:"result-header"},hon={class:"result-index"},gon={class:"result-title"},von={class:"result-content"},mon={class:"result-footer"},yon={class:"result-url"},bon={key:0,class:"result-score"},won={class:"web-preview-header"},Aon={class:"web-preview-content"},Con=["src"],xon={key:1,class:"iframe-error"},Son={class:"file-preview-header"},Eon={class:"header-left"},kon={class:"header-text"},Ton={key:0,class:"file-name"},_on={class:"file-preview-content"},Don={key:0,class:"file-loading"},Ion={key:1,class:"file-error"},Oon=["src"],Mon={key:3,class:"file-empty"},Pon={__name:"m-Chat",setup(e){const t=Hl(),n=N_(),r=()=>{t.go(-1)},o=()=>{!f.value&&!Fe.value&&(i.value=!0)},i=Q(!1),a=Q([]),s=Q(0),l=Q(!1),u=Q(!1),d=Q([]),c=Q(""),f=Q(!1),p=Q(0),v=Q(!1),h=Q(null),g=Q(""),y=Q(!1),m=Q(null),b=Q(!1),w=Q(""),A=Q(""),S=Q(!1),k=Q(""),M=Q(""),D=Q(!1),P=Q(""),O=Q({}),_=Q({}),{isSupported:B,isListening:N,transcript:q,error:U,startListening:j,stopListening:H}=T0(),G=Q(null),Z=Q(null),$=Q([]),L=Q(!1),W=Q(!1),ie=Q(""),ee=Q(2e3),te=Q([]);Q([]);const X=Q(!0),ue=Q({});Q(!1),Q(new Set);const ve=Q({}),Me=Q({}),we=Q([]),he=Q(!1),Te=Q(null),Y=Q(!1);let be=null;const De=Q({}),pe=Q(""),oe=Q("知识库文件"),ce=Q(new Map),Re=new Map,Ee=new Map;let Le=0;const Fe=J(()=>{const Qe=d.value.some(qe=>qe.type==="ai"&&qe.isTyping);return console.log("hasTypingMessage计算:",Qe,"聊天消息:",d.value.map(qe=>({type:qe.type,isTyping:qe.isTyping}))),Qe}),Pe=J(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Ne=J(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),pt=Qe=>{if(Qe===0)return"0 Bytes";const qe=1024,ne=["Bytes","KB","MB","GB"],Ie=Math.floor(Math.log(Qe)/Math.log(qe));return parseFloat((Qe/Math.pow(qe,Ie)).toFixed(2))+" "+ne[Ie]},Rt=(Qe,qe)=>{if(!qe)return Bt(Qe);const ne=`
- 📄 文件信息:
- 文件名:${qe.name}
- 文件大小:${pt(qe.size)}
- 文件类型:${qe.type}
- 📝 文件内容:
- ${qe.content}
- ---
- `;return Qe.replace(/<word>.*?<\/word>/gs,ne).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Bt=Qe=>{const qe=Qe.match(/<filename>(.*?)<\/filename>/),ne=qe?qe[1]:"未知文件",Ie=Qe.match(/<filesize>(.*?)<\/filesize>/),Ge=Ie?parseInt(Ie[1]):0,Ft=Qe.match(/<word>(.*?)<\/word>/s),It=Ft?Ft[1].trim():"无内容",on=`
- 📄 文件信息:
- 文件名:${ne}
- 文件大小:${pt(Ge)}
- 文件类型:${ne.endsWith(".docx")?".docx":ne.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${It}
- ---
- `;return Qe.replace(/<word>.*?<\/word>/gs,on).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},en=Qe=>new Promise(qe=>{try{console.log("开始使用Vditor渲染,内容长度:",Qe.length),console.log("原始内容:",Qe);const ne=document.createElement("div");ne.style.display="none",document.body.appendChild(ne),Inn.preview(ne,Qe,{mode:"light",markdown:{toc:!1,mark:!1,footnotes:!1,autoSpace:!1,fixTermTypo:!1,chinesePunct:!1,linkBase:"",linkPrefix:"",listStyle:!1,paragraphBeginningSpace:!1},theme:{current:"light",path:"https://cdn.jsdelivr.net/npm/vditor@3.10.9/dist/css/content-theme"},after:()=>{let Ie=ne.innerHTML;Ie=ct(Ie),console.log("Vditor渲染完成,HTML长度:",Ie.length),console.log("HTML预览:",Ie.substring(0,200)+"..."),document.body.removeChild(ne),Vt(()=>{Vr()}),qe(Ie)}})}catch(ne){console.error("Vditor渲染错误:",ne);const Ie=Qe.replace(/\n/g,"<br>");qe(Ie)}}),Wt=Qe=>{if(!Qe)return Qe;let qe=Qe;const ne={"\\alpha":"α","\\beta":"β","\\gamma":"γ","\\delta":"δ","\\epsilon":"ε","\\varepsilon":"ε","\\zeta":"ζ","\\eta":"η","\\theta":"θ","\\iota":"ι","\\kappa":"κ","\\lambda":"λ","\\mu":"μ","\\nu":"ν","\\xi":"ξ","\\pi":"π","\\rho":"ρ","\\sigma":"σ","\\tau":"τ","\\upsilon":"υ","\\phi":"φ","\\chi":"χ","\\psi":"ψ","\\omega":"ω","\\Gamma":"Γ","\\Delta":"Δ","\\Theta":"Θ","\\Lambda":"Λ","\\Xi":"Ξ","\\Pi":"Π","\\Sigma":"Σ","\\Upsilon":"Υ","\\Phi":"Φ","\\Psi":"Ψ","\\Omega":"Ω"};for(const[Ie,Ge]of Object.entries(ne)){const Ft=new RegExp(Ie.replace(/\\/g,"\\\\"),"g");qe=qe.replace(Ft,Ge)}return qe=qe.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),qe=qe.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),qe=qe.replace(/\\int/g,"∫"),qe=qe.replace(/\\sum/g,"∑"),qe=qe.replace(/\\prod/g,"∏"),qe=qe.replace(/\\partial/g,"∂"),qe=qe.replace(/\\nabla/g,"∇"),qe=qe.replace(/\\infty/g,"∞"),qe=qe.replace(/\\pm/g,"±"),qe=qe.replace(/\\times/g,"×"),qe=qe.replace(/\\div/g,"÷"),qe=qe.replace(/\\leq/g,"≤"),qe=qe.replace(/\\geq/g,"≥"),qe=qe.replace(/\\neq/g,"≠"),qe=qe.replace(/\\approx/g,"≈"),qe=qe.replace(/\\equiv/g,"≡"),qe=qe.replace(/\\propto/g,"∝"),qe=qe.replace(/\\in/g,"∈"),qe=qe.replace(/\\notin/g,"∉"),qe=qe.replace(/\\subset/g,"⊂"),qe=qe.replace(/\\supset/g,"⊃"),qe=qe.replace(/\\cup/g,"∪"),qe=qe.replace(/\\cap/g,"∩"),qe=qe.replace(/\\emptyset/g,"∅"),qe=qe.replace(/\\land/g,"∧"),qe=qe.replace(/\\lor/g,"∨"),qe=qe.replace(/\\neg/g,"¬"),qe=qe.replace(/\\rightarrow/g,"→"),qe=qe.replace(/\\leftarrow/g,"←"),qe=qe.replace(/\\leftrightarrow/g,"↔"),qe=qe.replace(/\\forall/g,"∀"),qe=qe.replace(/\\exists/g,"∃"),console.log("LaTeX转换:",Qe,"→",qe),qe},Ut=Qe=>{if(!Qe)return Qe;console.log("原始AI回复:",Qe),console.log("原始文本长度:",Qe.length),console.log("原始文本字符码:",Array.from(Qe).map(qe=>qe.charCodeAt(0)));try{if(Qe.includes("%")){const ne=decodeURIComponent(Qe);console.log("URL解码后:",ne),Qe=ne}if(Qe.includes("??")){const ne=Qe.replace(/\?\?/g,"");console.log("清理问号后:",ne),Qe=ne}if(Qe.includes("\\u")){const ne=Qe.replace(/\\u[\dA-F]{4}/gi,Ie=>String.fromCharCode(parseInt(Ie.replace(/\\u/g,""),16)));console.log("Unicode解码后:",ne),Qe=ne}if(Qe.includes("&")){console.log("检测到&符号,可能包含HTML实体");const ne=document.createElement("textarea");ne.innerHTML=Qe;const Ie=ne.value;console.log("HTML解码后:",Ie),Ie!==Qe?(console.log("HTML实体解码成功,内容已变化"),Qe=Ie):console.log("HTML实体解码未生效,可能不是HTML实体")}if(Qe.includes("�")){console.log("检测到替换字符,尝试修复");const ne=Qe.replace(/\uFFFD/g,"");console.log("修复替换字符后:",ne),Qe=ne}const qe=Wt(Qe);return console.log("LaTeX转换后:",qe),console.log("最终处理结果:",qe),qe}catch(qe){return console.error("处理AI回复时出错:",qe),Qe}},ct=Qe=>{if(!Qe)return Qe;console.log("开始处理规范引用,HTML长度:",Qe.length);const qe=Qe.replace(/<file>(.*?)<\/file>/g,(ne,Ie)=>{if(console.log("发现文件引用:",Ie),/^<span\s+class="standard-reference"/i.test(Ie))return ne;const Ge=Ie.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/);if(Ge){const Ft=Ge[1],It=Ge[2];return console.log("标准格式规范:",{standardName:Ft,standardNumber:It}),`<span class="standard-reference" data-standard="${Ie}" data-name="${Ft}" data-number="${It}" title="点击查看标准详情" style="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4;">${Ie}</span>`}return console.log("普通文件引用格式:",Ie),`<span class="standard-reference" data-reference="${Ie}" title="点击查看详情" style="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4;">${Ie}</span>`});return console.log("规范引用处理完成"),qe},_t=Qe=>{if(!Qe)return"";const qe=new Date(Qe),ne=new Date,Ie=ne-qe;return Ie<1440*60*1e3&&qe.getDate()===ne.getDate()?qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):Ie<2880*60*1e3&&qe.getDate()===ne.getDate()-1?"昨天 "+qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):qe.toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit"})},st=Qe=>{if(!Qe)return"新对话";const qe=Qe.replace(/<[^>]*>/g,"").trim();return qe.length>30?qe.substring(0,30)+"...":qe},Ot=Qe=>{if(!Qe)return null;if(typeof Qe=="number"){const qe=Qe<1e12?Qe*1e3:Qe;return new Date(qe)}if(typeof Qe=="string"){let qe=new Date(Qe);if(!isNaN(qe))return qe;const ne=Qe.replace(/-/g,"/").replace("T"," ");if(qe=new Date(ne),!isNaN(qe))return qe}return new Date(Qe)},Ae=Qe=>{const qe=Ot(Qe);if(!qe||isNaN(qe))return"未知时间";const ne=new Date,Ie=qe.toDateString()===ne.toDateString(),Ge=new Date(ne.getFullYear(),ne.getMonth(),ne.getDate()-1),Ft=qe.toDateString()===Ge.toDateString();if(Ie)return qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Ft)return"昨天 "+qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const It=qe.getMonth()+1,on=qe.getDate(),vn=qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${It}月${on}日 ${vn}`},je=async()=>{try{console.log("📋 开始获取移动端AI问答历史记录列表..."),l.value=!0;const Qe=performance.now(),qe=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:0}),ne=performance.now();console.log(`📋 移动端AI问答历史记录API调用耗时: ${(ne-Qe).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",qe),qe.statusCode===200?(s.value=qe.total||0,a.value=qe.data.map(Ie=>({id:Ie.id,title:st(Ie.content),time:Ae(Ie.updated_at),businessType:Ie.business_type,isActive:!1,rawData:Ie})),p.value&&a.value.forEach(Ie=>{Ie.isActive=Ie.id===p.value}),console.log(`✅ 移动端AI问答历史记录列表已设置: ${a.value.length}条记录,总数: ${s.value}`)):console.error("❌ 获取移动端历史记录列表失败:",qe.statusCode)}catch(Qe){console.error("❌ 获取移动端历史记录列表失败:",Qe)}finally{l.value=!1}},at=Qe=>{try{let qe=Tg(Qe);return qe=ct(qe),Vt(()=>{Vr()}),qe}catch(qe){return console.error("Markdown渲染失败:",qe),Qe.replace(/\n/g,"<br>")}},gt=Qe=>{try{if(!Qe||typeof Qe!="string"||!Qe.trim())return null;const qe=JSON.parse(Qe);if(!Array.isArray(qe))return null;const ne=qe.filter(Ie=>Ie&&typeof Ie=="object"&&Ie.title&&Ie.content);return ne.length>0?ne:null}catch(qe){return console.error("解析搜索来源失败:",qe),null}},nn=Qe=>{switch(parseInt(Qe)){case 2:return"like";case 3:return"dislike";default:return null}},Tn=Qe=>{switch(Qe){case"like":return 2;case"dislike":return 3;default:return 0}},He=async Qe=>{try{const qe=await Bn.getHistoryRecord({ai_conversation_id:Qe,business_type:0});if(qe.statusCode===200){if(!qe.data||!Array.isArray(qe.data))return console.error("响应数据格式错误"),!1;const ne=await Promise.all(qe.data.map(async(Ge,Ft)=>{const It=nn(Ge.user_feedback);let on=null,vn=Ge.content,_n=null;if(Ge.type==="ai"&&Ft>0){const cr=qe.data[Ft-1];if(cr&&cr.type==="user")if(cr.content.includes("</filesize>")){const dr=cr.content.split("</filesize>")[1];_n=dr?dr.trim():cr.content}else _n=cr.content}if(Ge.type==="user"&&Ge.content.includes("</filesize>")){const cr=Ge.content.match(/<filename>(.*?)<\/filename>/),dr=Ge.content.match(/<filesize>(.*?)<\/filesize>/),ye=Ge.content.match(/<word>(.*?)<\/word>/s);if(cr&&dr){const ae=cr[1],de=parseInt(dr[1]),Ce=ye?ye[1].trim():"";on={name:ae,size:de,type:ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx",icon:getFileIcon(ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx"),content:Ce};const Lt=Ge.content.split("</filesize>")[1];vn=Lt?Lt.trim():""}}let or=vn||"",Vn=[],xr=Ge.summary||"";if(Ge.type==="ai")try{const cr=Ge.content||"";if(cr.trim().startsWith("[")||cr.trim().startsWith("{"))try{const dr=JSON.parse(cr);if(dr.reports&&Array.isArray(dr.reports))Vn=dr.reports,dr.webSearchRaw&&(Ge.webSearchRaw=dr.webSearchRaw),dr.webSearchSummary&&(Ge.webSearchSummary=dr.webSearchSummary,Ge.hasWebSearchResults=dr.hasWebSearchResults||!1),dr.summary&&(xr=dr.summary);else if(Array.isArray(dr))Vn=dr;else throw new Error("Not an array or valid format")}catch{let ye=cr.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");or=at(ye)}else{let dr=cr.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");or=at(dr)}}catch(cr){console.error("历史记录处理失败:",cr),or=Ge.content||""}let lr=0,nr=0,Or=100;if(Vn.length>0){const cr=Vn.filter(dr=>dr.type!=="category_title");lr=cr.length,nr=cr.filter(dr=>dr.status==="completed").length,Or=lr>0?Math.round(nr/lr*100):100}return{type:Ge.type,content:vn,displayContent:or,reports:Vn,summary:xr,totalFiles:lr,completedCount:nr,progress:Or,file:on,isTyping:!1,id:Ge.id,ai_message_id:Ge.type==="ai"?Ge.id:void 0,userFeedback:It,userQuestion:_n,searchSources:Ge.type==="ai"&&Ge.search_source?gt(Ge.search_source):null,rawData:Ge,webSearchRaw:Ge.webSearchRaw||null,webSearchSummary:Ge.webSearchSummary||null,hasWebSearchResults:Ge.hasWebSearchResults||!1,webSearchTotal:Ge.webSearchRaw?.total||0,showStats:lr>0,currentStatus:"completed",statusMessage:lr>0?Ge.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${lr}</span> 个知识库文件,以及 <span class="file-count">${Ge.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${lr}</span> 个知识库文件`:""}}));d.value=ne,p.value=Qe;const Ie=ne.filter(Ge=>Ge.type==="ai").pop();return ne.forEach((Ge,Ft)=>{if(Ge.type==="ai"&&Ge.rawData){if(Ge.rawData.search_source)try{const It=JSON.parse(Ge.rawData.search_source);Array.isArray(It)&&It.length>0&&(ue.value[Ge.id]=It)}catch(It){console.error("解析搜索结果失败:",It)}if(Ge.reports&&Ge.reports.length>0&&(De.value[Ft]||(De.value[Ft]={}),Ge.reports.filter(on=>on.type==="category_title").map(on=>on.category).forEach(on=>{De.value[Ft][on]=!0})),Ge===Ie){let It=[];if(Ge.rawData.guess_you_want)try{It=Ge.rawData.guess_you_want.trim().split(`
- `).map(on=>on.trim()).filter(on=>on.length>0).filter((on,vn,_n)=>_n.indexOf(on)===vn).slice(0,3)}catch(on){console.error("解析guess_you_want失败:",on)}if(It.length===0&&Ge.rawData.relate_question)try{const on=JSON.parse(Ge.rawData.relate_question);Array.isArray(on)&&on.length>0&&(It=on.slice(0,3))}catch(on){console.error("解析relate_question失败:",on)}It.length>0&&(we.value=It,Te.value=Ge.ai_message_id||Ge.id,console.log("✅ 从历史记录恢复推荐问题:",It),console.log("✅ relatedQuestionsMessageId:",Te.value))}}}),!0}}catch(qe){return console.error("加载历史记录失败:",qe),Cr("加载历史记录失败,请稍后重试",2e3),!1}},ke=()=>{Ee.forEach((Qe,qe)=>{clearInterval(Qe)}),Ee.clear(),Re.forEach((Qe,qe)=>{clearInterval(Qe)}),Re.clear()},me=async Qe=>{if(f.value)return;G.value&&(ut(),G.value=null),ke(),a.value.forEach(ne=>{ne.isActive=ne.id===Qe.id}),i.value=!1,d.value=[],we.value=[],Te.value=null,await He(Qe.id)?(u.value=!0,await Vt(),zr()):Cr("加载历史记录失败",2e3)},Be=()=>{console.log("开始新建对话"),G.value&&(ut(),G.value=null),i.value=!1,d.value=[],p.value=0,c.value="",ue.value={},ve.value={},we.value=[],Te.value=null,a.value.forEach(Qe=>{Qe.isActive=!1}),u.value=!1,console.log("新建对话完成")},rt=async(Qe,qe)=>{try{console.log("开始删除移动端历史记录:",Qe);const ne=await Bn.deleteHistoryRecord({ai_conversation_id:Qe.id});ne.statusCode===200?(a.value.splice(qe,1),s.value=Math.max(0,s.value-1),Qe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Be()),console.log("✅ 移动端历史记录删除成功"),Cr("删除成功")):console.error("❌ 删除移动端历史记录失败:",ne)}catch(ne){console.error("❌ 删除移动端历史记录失败:",ne)}},ht=async Qe=>{!Qe||!Qe.trim()||(console.log("移动端自动发送消息:",Qe),u.value=!0,d.value.length===0&&a.value.forEach(qe=>{qe.isActive=!1}),c.value=Qe,await Br())},rn=()=>window.location.origin+"/tts/voice",Ye=async()=>{const Qe=rn();try{console.log("开始测试TTS服务连接..."),console.log("使用代理地址:",Qe);const qe="测试",ne=new AbortController,Ie=setTimeout(()=>ne.abort(),8e3),Ge={"Content-Type":"application/json"},Ft=t0(),It=Sy();Ft&&It&&(Ge.Authorization=`${It} ${Ft}`);const on=await fetch(Qe,{method:"POST",headers:Ge,body:JSON.stringify({text:qe}),signal:ne.signal});if(clearTimeout(Ie),console.log("TTS连接测试结果:",{status:on.status,statusText:on.statusText,headers:Object.fromEntries(on.headers.entries()),url:Qe}),on.ok){const vn=await on.blob();return console.log("TTS服务连接正常,测试音频大小:",vn.size,"bytes"),{success:!0,message:"TTS服务连接正常"}}else return{success:!1,message:`TTS服务响应错误: ${on.status} ${on.statusText}`}}catch(qe){console.error("TTS连接测试失败:",qe);let ne="TTS服务连接失败";return qe.name==="AbortError"?ne="TTS服务连接超时":qe.message.includes("Failed to fetch")?ne="无法连接到TTS服务,请检查网络或服务状态":ne=`TTS服务连接失败: ${qe.message}`,{success:!1,message:ne}}},Je=async(Qe,qe=0)=>{const ne=rn(),Ie=2;try{console.log(`开始调用TTS接口,文本长度: ${Qe.length}, 重试次数: ${qe}`),console.log("TTS接口地址:",ne);const Ge=new AbortController,Ft=setTimeout(()=>Ge.abort(),15e3),It={"Content-Type":"application/json"},on=t0(),vn=Sy();on&&vn&&(It.Authorization=`${vn} ${on}`);const _n=await fetch(ne,{method:"POST",headers:It,body:JSON.stringify({text:Qe}),signal:Ge.signal});if(clearTimeout(Ft),console.log("TTS接口响应状态:",_n.status,_n.statusText),!_n.ok){const lr=await _n.text().catch(()=>"无法读取错误信息");throw new Error(`TTS接口调用失败: ${_n.status} ${_n.statusText} - ${lr}`)}const or=_n.headers.get("content-type");console.log("响应Content-Type:",or),(!or||!or.includes("audio"))&&console.warn("响应可能不是音频格式:",or);const Vn=await _n.blob();if(console.log("TTS接口调用成功,音频大小:",Vn.size,"bytes"),console.log("音频类型:",Vn.type),Vn.size===0)throw new Error("TTS接口返回的音频数据为空");return URL.createObjectURL(Vn)}catch(Ge){if(console.error(`TTS接口调用失败 (重试${qe}/${Ie}):`,Ge),qe<Ie&&(Ge.name==="AbortError"||Ge.message.includes("Failed to fetch")||Ge.message.includes("NetworkError")))return console.log(`准备重试TTS请求,等待${(qe+1)*1e3}ms...`),await new Promise(on=>setTimeout(on,(qe+1)*1e3)),Je(Qe,qe+1);let Ft="语音合成失败";Ge.name==="AbortError"?Ft="语音合成请求超时,请检查网络连接或稍后重试":Ge.message.includes("Failed to fetch")?Ft="无法连接到语音合成服务,请检查网络连接或联系管理员":Ge.message.includes("CORS")?Ft="跨域请求被阻止,请联系管理员配置服务器":Ge.message.includes("NetworkError")?Ft="网络错误,请检查网络连接":Ge.message.includes("TTS接口调用失败")?Ft=Ge.message:Ft=`语音合成失败: ${Ge.message}`;const It=new Error(Ft);throw It.originalError=Ge,It}},lt=Qe=>{if(!Qe)return"";let qe=Qe.replace(/<[^>]*>/g,"");return qe=qe.replace(/\s+/g," ").trim(),qe=qe.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),qe},Ue=Qe=>{if(Qe.length<=60)return[Qe];const qe=[];let ne="",Ie=!0;const Ge=Qe.split(/[。!?]/);for(const Ft of Ge){if(Ft.trim().length===0)continue;const It=Ft+(Ft.match(/[。!?]$/)?"":"。"),on=Ie?60:200;if(ne.length+It.length<=on)ne+=It;else if(ne.length>0)qe.push(ne.trim()),ne=It,Ie=!1;else{const vn=Ie?60:200;qe.push(It.substring(0,vn)),ne=It.substring(vn),Ie=!1}}return ne.trim().length>0&&qe.push(ne.trim()),qe},ze=Qe=>new Promise((qe,ne)=>{const Ie=new Audio(Qe);Z.value=Ie,Ie.onended=()=>{console.log("音频播放完成"),Z.value=null,qe()},Ie.onerror=Ge=>{console.error("音频播放失败:",Ge),Z.value=null,ne(Ge)},Ie.onloadstart=()=>{console.log("开始加载音频")},Ie.oncanplay=()=>{console.log("音频可以播放")},Ie.play().catch(Ge=>{console.error("音频播放启动失败:",Ge),Z.value=null,ne(Ge)})}),ut=()=>{try{Z.value&&(Z.value.pause(),Z.value.currentTime=0,Z.value=null),$.value=[],L.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel(),console.log("所有音频播放已停止")}catch(Qe){console.warn("停止音频播放时出错:",Qe)}},yt=async(Qe,qe)=>{if(console.log(`开始优化播放 ${Qe.length} 个音频片段`),G.value!==qe){console.log("朗读被中断,停止处理");return}try{console.log("立即预加载并播放第一块");const ne=Qe[0],Ie=await Je(ne);if(G.value!==qe){URL.revokeObjectURL(Ie);return}console.log("开始播放第一块,同时预加载后续块");const Ft=Qe.slice(1).map(async(on,vn)=>{try{console.log(`预加载第 ${vn+2}/${Qe.length} 块音频`);const _n=await Je(on);return{index:vn+1,audioUrl:_n,chunk:on}}catch(_n){return console.error(`第 ${vn+2} 块音频预加载失败:`,_n),{index:vn+1,audioUrl:null,chunk:on,error:_n}}});if(console.log("播放第 1/1 块音频"),await ze(Ie),URL.revokeObjectURL(Ie),G.value!==qe){console.log("朗读被中断,清理预加载的音频"),(await Promise.allSettled(Ft)).forEach(vn=>{vn.status==="fulfilled"&&vn.value.audioUrl&&URL.revokeObjectURL(vn.value.audioUrl)});return}console.log("等待所有音频预加载完成...");const It=await Promise.allSettled(Ft);if(G.value!==qe){console.log("朗读被中断,停止播放队列"),It.forEach(on=>{on.status==="fulfilled"&&on.value.audioUrl&&URL.revokeObjectURL(on.value.audioUrl)});return}console.log("开始播放剩余音频片段"),L.value=!0;for(const on of It){if(G.value!==qe){console.log("朗读被中断,停止播放队列");break}if(on.status==="fulfilled"&&on.value.audioUrl)try{console.log(`播放第 ${on.value.index+1}/${Qe.length} 块音频`),await ze(on.value.audioUrl),URL.revokeObjectURL(on.value.audioUrl)}catch(vn){console.error(`第 ${on.value.index+1} 块音频播放失败:`,vn)}else console.warn(`第 ${on.value.index+1} 块音频预加载失败,跳过播放`)}L.value=!1,console.log("音频队列播放完成")}catch(ne){console.error("音频队列播放失败:",ne),L.value=!1}},jt=async Qe=>{if(G.value===Qe.id)ut(),G.value=null;else{G.value&&(ut(),G.value=null);const qe=Qe.displayContent||Qe.content;if(qe&&qe.trim())try{const ne=lt(qe);if(console.log("清理后的文本:",ne),ne.length===0){Cr("文本内容为空,无法进行语音合成");return}if(G.value=Qe.id,ne.length<=60){console.log("文本较短,直接合成语音");const Ie=await Je(ne);await ze(Ie),URL.revokeObjectURL(Ie)}else{console.log("文本较长,使用并行预加载分块处理");const Ie=Ue(ne);console.log(`文本分为 ${Ie.length} 块`),await yt(Ie,Qe.id)}}catch(ne){console.error("语音合成失败:",ne),Cr("语音合成失败,请稍后重试")}finally{G.value=null,L.value=!1}}},mn=Qe=>G.value===Qe,Nn=Qe=>{console.log("点击网络搜索胶囊,数据:",Qe),m.value=Qe,y.value=!0},xt=Qe=>{A.value=Qe.title,w.value=Qe.url||Qe.link,b.value=!0},sn=Qe=>{if(!Qe)return"";try{const qe=new URL(Qe);return qe.hostname+qe.pathname}catch{return Qe}},vt=()=>{w.value&&(window.open(w.value,"_blank"),b.value=!1)},Nt=async Qe=>{console.log("移动端打开文件预览:",Qe),P.value="",D.value=!1,!Qe||!Qe.filePath&&!Qe.fileName?(P.value="文件路径为空",k.value="",M.value=""):(k.value=Qe.filePath,M.value=Qe.fileName||"",Qe.filePath&&(D.value=!0,setTimeout(()=>{D.value=!1},500))),S.value=!0},bn=()=>{X.value=!X.value,console.log("联网搜索状态:",X.value?"已启用":"已关闭"),X.value?Cr("联网搜索已启用"):Cr("联网搜索已关闭")},Mn=(Qe,qe)=>{De.value[Qe]||(De.value[Qe]={}),De.value[Qe][qe.category]=qe.expanded},tr=(Qe,qe)=>qe?De.value[Qe]?De.value[Qe][qe]!==!1:(De.value[Qe]={},!0):!0,dn=Qe=>!Qe||Qe.length===0?!1:Qe.every(qe=>qe.type==="category_title"),Ke=(Qe,qe)=>{if(qe===100)return"completed";switch(Qe){case"querying_kb":case"web_searching":return"searching";case"analyzing_files":case"analyzing_web":return"analyzing";case"deep_thinking":return"thinking";case"outputting":return"analyzing";case"completed":return"completed";case"error":return"error";default:return"idle"}},bt=(Qe,qe,ne=null)=>{const Ge={querying_kb:{message:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析知识库……',progress:10},web_searching:{message:'🌐 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您联网分析……',progress:15},data_retrieved:{message:null,progress:30},analyzing_files:{message:'😊 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析文件内容……',progress:45},analyzing_web:{message:'🤔 <span class="ai-name">蜀道安全管理AI智能助手</span>正在分析联网数据……',progress:70},deep_thinking:{message:'❓ <span class="ai-name">蜀道安全管理AI智能助手</span>正在深度思考中,请您稍等片刻……',progress:75},outputting:{message:'😄 <span class="ai-name">蜀道安全管理AI智能助手</span>正在整理分析中!',progress:90},completed:{message:null,progress:100}}[qe];if(Ge){if(Qe.currentStatus=qe,qe==="data_retrieved"){const Ft=Qe.totalFiles||0,It=Qe.webSearchTotal||0;It>0?Qe.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${Ft}</span> 个知识库文件,以及 <span class="file-count">${It}</span> 个相关网络资源`:Qe.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${Ft}</span> 个知识库文件`}else if(qe==="completed"){const Ft=Qe.totalFiles||0,It=Qe.webSearchTotal||0;It>0?Qe.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ft}</span> 个知识库文件,以及 <span class="file-count">${It}</span> 个相关网络资源`:Qe.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ft}</span> 个知识库文件`}else Qe.statusMessage=ne||Ge.message;Qe.progress=Ge.progress}},Yt=(Qe,qe,ne,Ie=50)=>new Promise(Ge=>{const Ft=`${Qe.file_index}_${qe}`;Re.has(Ft)&&(clearInterval(Re.get(Ft)),Re.delete(Ft)),Qe._typewriterStates||(Qe._typewriterStates={});let It=0;Qe._typewriterStates[qe]={currentIndex:0,isTyping:!0};const on=setInterval(()=>{if(It<ne.length){const vn=Math.max(1,Math.floor(Ie/10));It=Math.min(It+vn,ne.length),Qe.report[qe]=ne.substring(0,It),Qe._typewriterStates[qe].currentIndex=It}else clearInterval(on),Re.delete(Ft),Qe._typewriterStates[qe].isTyping=!1,Qe.report[qe]=ne,Ge()},1e3/60);Re.set(Ft,on)}),wt=(Qe,qe)=>{const ne=d.value[qe];if(!ne)return;console.log("🔍 SSE事件完整数据:",{type:Qe.type,conversation_id:Qe.conversation_id,message_id:Qe.message_id,ai_conversation_id:Qe.ai_conversation_id,ai_message_id:Qe.ai_message_id,allKeys:Object.keys(Qe)});const Ie=Qe.conversation_id||Qe.ai_conversation_id;Ie&&p.value===0&&(p.value=Ie,console.log("✅ SSE收到conversation_id并赋值:",Ie));const Ge=Qe.message_id||Qe.ai_message_id;switch(Ge&&(ne.ai_message_id||(ne.ai_message_id=Ge,console.log("✅ SSE收到message_id并赋值:",Ge),console.log(" - aiMessage.id (前端临时ID):",ne.id),console.log(" - aiMessage.ai_message_id (后端ID):",ne.ai_message_id),ne.rawData||(ne.rawData={}),ne.rawData.id=Ge,console.log(" - aiMessage.rawData.id:",ne.rawData.id))),Qe.type){case"intent":if(bt(ne,"querying_kb"),Qe.is_professional_question===!1){const Vn=Qe.summary||"抱歉,我暂时无法回答您的问题。";if(ne.summary=Vn,ne.isTyping=!1,ne.ai_message_id&&gd(ne.ai_message_id,Vn).catch(lr=>console.error("回写AI消息失败:",lr)),be&&(yh(be),be=null),f.value=!1,ce.value.clear(),Y.value=!0,p.value&&p.value!==0){a.value.forEach(cr=>{cr.isActive=!1});const lr=d.value.find(cr=>cr.type==="user"),nr=lr?lr.content.substring(0,20)+"...":"新对话",Or=a.value.findIndex(cr=>cr.id===p.value);if(Or===-1){const cr={id:p.value,title:nr,time:_t(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:p.value,content:lr?.content||"",updated_at:new Date().toISOString()}};a.value.unshift(cr),console.log("✅ 非专业问题:已在列表最前面插入新历史记录")}else{const cr=a.value.splice(Or,1)[0];cr.isActive=!0,cr.time=_t(new Date().toISOString()),a.value.unshift(cr),console.log("✅ 非专业问题:已将历史记录移到最前面")}s.value=a.value.length}const xr=d.value.filter(lr=>lr.type==="user").pop();xr&&ne.ai_message_id&&Vn&&Wr(xr.content,Vn,ne.ai_message_id);return}if(Qe.summary){const Vn=Qe.summary;ne._fullSummary=Vn,ne.summary="",Yt({file_index:"summary",report:ne,_typewriterStates:{}},"summary",Vn,50).catch(xr=>{console.error("问题总结打字机效果失败:",xr),ne.summary=Vn})}break;case"documents":ne.totalFiles=Qe.total,ne.completedCount=0,X.value?bt(ne,"web_searching"):bt(ne,"data_retrieved"),Vt(()=>{ti()});break;case"category_title":ne.reports.length===0&&ne.progress>=30&&bt(ne,"analyzing_files");const Ft={type:"category_title",category:Qe.category,number:Qe.number,count:Qe.count,source_file:`【${Qe.number}、${Qe.category}】(共${Qe.count}个文件)`,file_index:-1,status:"category"};ne.reports.push(Ft),De.value[qe]||(De.value[qe]={}),De.value[qe][Qe.category]=!0,ne.currentCategory=Qe.category;break;case"report_start":console.log("🔍 [DEBUG] report_start 数据:",{file_index:Qe.file_index,source_file:Qe.source_file,file_path:Qe.file_path,metadata:Qe.metadata,完整data:Qe});const It={file_index:Qe.file_index,total_files:ne.totalFiles,source_file:Qe.source_file,file_path:Qe.file_path,similarity:Qe.similarity,metadata:{...Qe.metadata,_displayCategory:ne.currentCategory},report:{display_name:"",summary:"",analysis:"",clauses:""},status:"streaming"};ne.reports.push(It),ce.value.set(Qe.file_index,ne.reports.length-1);break;case"report_chunk":break;case"report":ne.reports.filter(Vn=>Vn.status==="completed").length===0&&bt(ne,"deep_thinking");const on=Qe.data||Qe;console.log("🔍 [DEBUG] report 数据:",{file_index:on.file_index,source_file:on.source_file,file_path:on.file_path,metadata:on.metadata,完整reportData:on});const vn=ce.value.get(on.file_index);let _n;if(vn!==void 0){const Vn=ne.reports[vn].metadata?._displayCategory,xr=on.report?.summary||"",lr=on.report?.analysis||"",nr=on.report?.clauses||"",Or=on.report?.display_name||"";ne.reports[vn]={...on,report:{display_name:Or,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...on.metadata,_displayCategory:Vn||ne.currentCategory},_fullContent:{display_name:Or,summary:xr,analysis:lr,clauses:nr}},_n=ne.reports[vn],ce.value.delete(on.file_index)}else{const Vn=on.report?.summary||"",xr=on.report?.analysis||"",lr=on.report?.clauses||"",nr=on.report?.display_name||"",Or={...on,report:{display_name:nr,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...on.metadata,_displayCategory:ne.currentCategory},_fullContent:{display_name:nr,summary:Vn,analysis:xr,clauses:lr}};ne.reports.push(Or),_n=Or}_n._fullContent&&!_n._typewriterCompleted&&(_n._typewriterStarted=!0,Yt(_n,"summary",_n._fullContent.summary||"",200).then(()=>Yt(_n,"analysis",_n._fullContent.analysis||"",200)).then(()=>{if(_n._fullContent.clauses)return Yt(_n,"clauses",_n._fullContent.clauses||"",200)}).then(()=>{_n._typewriterCompleted=!0}).catch(Vn=>{console.error("报告打字机效果失败:",Vn),_n.report.summary=_n._fullContent.summary||"",_n.report.analysis=_n._fullContent.analysis||"",_n.report.clauses=_n._fullContent.clauses||"",_n._typewriterCompleted=!0}),console.log("📝 [DEBUG] 报告打字机已启动:",{file_index:_n.file_index,summary_length:_n._fullContent.summary?.length||0,analysis_length:_n._fullContent.analysis?.length||0,clauses_length:_n._fullContent.clauses?.length||0})),ne.completedCount=ne.reports.filter(Vn=>Vn.status==="completed"&&Vn.type!=="category_title").length;const or=ne.totalFiles>0?ne.completedCount/ne.totalFiles:0;if(or>=1)bt(ne,"outputting");else if(or>=.5)bt(ne,"deep_thinking");else{const Vn=30+Math.round(or*30);ne.progress=Vn}break;case"web_search_raw":if(Qe.results&&Qe.results.length>0){ne.webSearchRaw={results:Qe.results||[],keywords:Qe.keywords||[],total:Qe.total||0},ne.webSearchTotal=Qe.total||0;const Vn=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${ne.totalFiles||0}</span> 个知识库文件,以及 <span class="file-count">${ne.webSearchTotal}</span> 个相关网络资源`;bt(ne,"data_retrieved",Vn),console.log(`[网络搜索] 收到原始数据: ${Qe.total} 条结果`)}else{const Vn=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${ne.totalFiles||0}</span> 个知识库文件`;bt(ne,"data_retrieved",Vn),console.log("[网络搜索] 无搜索结果,仅使用知识库")}break;case"web_search_summary":if(Qe.has_results&&Qe.summary){if(ne._webSearchSummaryCompleted){console.log("[网络搜索] 总结已完成,跳过重复打字机");break}if(ne._fullWebSearchSummary=Qe.summary,ne.webSearchSummary="",ne.hasWebSearchResults=!0,Yt({file_index:"web_search_summary",report:ne,_typewriterStates:{}},"webSearchSummary",Qe.summary,200).then(()=>{ne._webSearchSummaryCompleted=!0}).catch(xr=>{console.error("网络搜索总结打字机效果失败:",xr),ne.webSearchSummary=Qe.summary,ne._webSearchSummaryCompleted=!0}),console.log("[网络搜索] 收到AI总结,长度:",Qe.summary.length),bt(ne,"outputting"),ne.ai_message_id){const xr={reports:ne.reports||[],webSearchRaw:ne.webSearchRaw||null,webSearchSummary:ne._fullWebSearchSummary||Qe.summary,hasWebSearchResults:!0,summary:ne.summary||ne._fullSummary||""},lr=JSON.stringify(xr);ne.summary||ne._fullSummary,gd(ne.ai_message_id,lr).then(nr=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),bt(ne,"completed"),ne.isTyping=!1,f.value=!1,ce.value.clear(),Y.value=!0}).catch(nr=>{console.error("[网络搜索] AI消息保存失败:",nr),bt(ne,"completed"),ne.isTyping=!1,f.value=!1})}else bt(ne,"completed"),ne.isTyping=!1,f.value=!1}break;case"error":Cr(Qe.message||"发生错误",2e3),f.value=!1;break;case"completed":console.log("[SSE] 收到completed事件"),f.value=!1,ce.value.clear(),ne.isTyping=!1,ne.progress<100&&bt(ne,"completed"),Cr("报告生成完成",2e3);break;case"interrupted":f.value=!1,ce.value.clear(),ne.isTyping=!1,Cr(Qe.message||"报告生成已中断",2e3);break}},Gt=Qe=>{console.error("❌ SSE连接异常断开:",Qe),be&&(yh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(qe=>{qe.type==="ai"&&qe.isTyping&&(qe.isTyping=!1)}),Y.value=!0,Cr("连接已断开",2e3)},An=()=>{if(f.value=!1,d.value.forEach(ne=>{if(ne.type==="ai"&&ne.isTyping&&(ne.showStats&&ne.reports&&ne.reports.length>0&&(ne.progress=100,console.log("✅ SSE完成,设置进度为100%"),console.log("📊 导出按钮条件检查:",{progress:ne.progress,hasReports:!!ne.reports,reportsLength:ne.reports?.length,showStats:ne.showStats})),(ne.progress>=100||!ne.showStats)&&(ne.isTyping=!1),ne.ai_message_id)){const Ie={reports:ne.reports||[],webSearchRaw:ne.webSearchRaw||null,webSearchSummary:ne._fullWebSearchSummary||ne.webSearchSummary||null,hasWebSearchResults:ne.hasWebSearchResults||!1,summary:ne.summary||ne._fullSummary||""},Ge=ne.reports&&ne.reports.length>0?JSON.stringify(Ie):ne.content;Ge&&(ne.summary||ne._fullSummary,gd(ne.ai_message_id,Ge).catch(Ft=>console.error("回写AI消息失败:",Ft)))}}),Y.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",p.value),p.value&&p.value!==0){console.log("✅ 开始更新历史记录列表"),a.value.forEach(Ft=>{Ft.isActive=!1});const ne=d.value.find(Ft=>Ft.type==="user"),Ie=ne?ne.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",Ie);const Ge=a.value.findIndex(Ft=>Ft.id===p.value);if(console.log("🔍 检查是否已存在,索引:",Ge),Ge===-1){const Ft={id:p.value,title:Ie,time:_t(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:p.value,content:ne?.content||"",updated_at:new Date().toISOString()}};console.log("📦 准备插入的新项:",Ft),a.value.unshift(Ft),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",a.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const Ft=a.value.splice(Ge,1)[0];Ft.isActive=!0,Ft.time=_t(new Date().toISOString()),a.value.unshift(Ft),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}s.value=a.value.length,console.log("📊 最终历史记录总数:",s.value)}else console.warn("⚠️ ai_conversation_id 为 0 或未设置,跳过历史记录更新");console.log("🎯 准备获取AI相关推荐问题");const Qe=d.value.filter(ne=>ne.type==="user").pop(),qe=d.value.filter(ne=>ne.type==="ai").pop();if(Qe&&qe&&qe.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",Qe.content),console.log(" - AI消息ID:",qe.ai_message_id);let ne="";qe.summary?ne=qe.summary:qe.content?ne=qe.content:qe.reports&&qe.reports.length>0&&(ne=qe.reports.filter(Ge=>Ge.report&&Ge.report.summary).map(Ge=>Ge.report.summary).slice(0,3).join(`
- `)),ne&&ne.trim()?(console.log("📝 AI回复内容长度:",ne.length),Wr(Qe.content,ne,qe.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},Rn=Qe=>{be&&(yh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(qe=>{if(qe.type==="ai"&&qe.isTyping&&(qe.isTyping=!1,bt(qe,"completed"),(qe.webSearchRaw||qe.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),qe.ai_message_id)){const ne={reports:qe.reports||[],webSearchRaw:qe.webSearchRaw||null,webSearchSummary:qe._fullWebSearchSummary||qe.webSearchSummary||null,hasWebSearchResults:qe.hasWebSearchResults||!1,summary:qe.summary||qe._fullSummary||""},Ie=qe.reports&&qe.reports.length>0?JSON.stringify(ne):qe.content;Ie&&(qe.summary||qe._fullSummary,gd(qe.ai_message_id,Ie).catch(Ge=>console.error("回写AI消息失败:",Ge)))}}),Y.value=!0,Cr(Qe.message||"报告生成已中断",2e3)},Kn=async()=>{!be||p.value===void 0||p.value===null||(be&&(yh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(Qe=>{if(Qe.type==="ai"&&Qe.isTyping&&(Qe.isTyping=!1,bt(Qe,"completed"),(Qe.webSearchRaw||Qe.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),Qe.ai_message_id)){const qe={reports:Qe.reports||[],webSearchRaw:Qe.webSearchRaw||null,webSearchSummary:Qe._fullWebSearchSummary||Qe.webSearchSummary||null,hasWebSearchResults:Qe.hasWebSearchResults||!1,summary:Qe.summary||Qe._fullSummary||""},ne=Qe.reports&&Qe.reports.length>0?JSON.stringify(qe):Qe.content;ne&&(Qe.summary||Qe._fullSummary,gd(Qe.ai_message_id,ne).catch(Ie=>console.error("回写AI消息失败:",Ie)))}}),Y.value=!0,Cr("已停止生成",2e3),z4e(null,p.value).catch(Qe=>console.warn("停止请求失败:",Qe)))},Fr=async Qe=>{f.value=!0,pe.value=Qe.question,d.value.push({id:Date.now(),type:"user",content:Qe.question,timestamp:new Date().toISOString()});const qe=d.value.length;d.value.push({id:Date.now()+1,type:"ai",userQuestion:Qe.question,summary:"",totalFiles:0,webSearchTotal:0,progress:0,completedCount:0,reports:[],isTyping:!0,content:"",displayContent:"",timestamp:new Date().toISOString(),currentStatus:"querying_kb",statusMessage:"🔍 蜀道安全管理AI智能助手正在为您分析知识库……",showStats:!0,ai_message_id:null,rawData:null,userFeedback:null}),Vt(()=>{setTimeout(()=>{ti()},100)});try{const ne=new URLSearchParams({user_question:Qe.question,window_size:Qe.windowSize,n_results:2,ai_conversation_id:p.value,is_network_search_enabled:X.value}),Ge=`${RV()}/report/complete-flow?${ne.toString()}`;be=oAe(Ge,{onMessage:Ft=>wt(Ft,qe),onError:Gt,onComplete:An,onInterrupted:Rn})}catch(ne){console.error("启动失败:",ne),Cr(`启动失败: ${ne.message}`,2e3),f.value=!1}},ho=Qe=>{console.log("点击推荐问题:",Qe),we.value=[],Te.value=null,c.value=Qe,Br()},Wr=async(Qe,qe,ne)=>{if(!Qe||!qe||!ne){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",Qe),console.log("AI回复:",qe.substring(0,100)+"..."),console.log("消息ID:",ne),he.value=!0;const Ie=`基于以下对话内容,直接生成3条相关的推荐问题。
- 【对话内容】
- 用户问题:${Qe}
- AI回复:${qe}
- 【生成要求】
- - 直接输出3个问题,每个问题一行
- - 问题要与原问题相关但有所延伸
- - 问题要具体、实用,符合中文表达习惯
- - 不要包含任何编号、标题、说明文字
- - 不要重复上述指令内容`,Ge=await Bn.guessYouWant({message:Ie,ai_message_id:ne});if(console.log("AI相关推荐问题响应:",Ge),Ge.statusCode===200&&Ge.data&&Ge.data.reply){const It=Ge.data.reply.trim().split(`
- `).map(on=>on.trim()).filter(on=>on.length>0).filter((on,vn,_n)=>_n.indexOf(on)===vn).slice(0,3);It.length>0?(we.value=It,Te.value=ne,console.log("✅ AI相关推荐问题数据已设置:",we.value),console.log("✅ relatedQuestionsMessageId设置为:",Te.value),console.log("✅ messageId类型:",typeof ne,"值:",ne),Vt(()=>{console.log("✅ DOM已更新,推荐问题应该显示了"),zr()})):(console.log("解析推荐问题失败,使用默认问题"),we.value=[],Te.value=null)}else console.error("获取AI相关推荐问题失败:",Ge.statusCode),we.value=[],Te.value=null}catch(Ie){console.error("获取AI相关推荐问题失败:",Ie),we.value=[],Te.value=null}finally{he.value=!1}},bo=()=>{G.value&&(ut(),G.value=null)},Bo=()=>{document.hidden&&G.value&&(ut(),G.value=null)},yr=async Qe=>{const qe=Qe.target;if(qe.classList.contains("standard-reference")){Qe.preventDefault(),Qe.stopPropagation();const ne=qe.getAttribute("data-standard"),Ie=qe.getAttribute("data-reference");console.log("点击的元素:",qe),console.log("元素的HTML:",qe.outerHTML),console.log("data-standard属性:",ne),console.log("data-reference属性:",Ie),console.log("所有data属性:",qe.dataset),console.log("点击了标准引用:",ne||Ie);let Ge="";if(ne?Ge=ne:Ie&&(Ge=Ie),Ge)try{const Ft=await Bn.getFileLink({fileName:Ge});if(console.log("获取文件链接响应:",Ft),Ft.statusCode===200&&Ft.data){const It=Ft.data;console.log("获取到文件链接:",It),It?window.open(It,"_blank"):Cr("暂无文件")}else Cr("暂无文件")}catch(Ft){console.error("获取文件链接失败:",Ft),Cr("获取文件失败,请稍后重试")}}},Vr=()=>{const Qe=document.querySelectorAll(".standard-reference");console.log("找到规范引用元素数量:",Qe.length),Qe.forEach((qe,ne)=>{qe.removeEventListener("click",yr),qe.addEventListener("click",yr),console.log(`绑定规范引用 ${ne+1}:`,qe.textContent)})};jn(async()=>{try{console.log("🚀 移动端AI问答页面初始化,加载功能卡片..."),await Ao(),window.addEventListener("beforeunload",bo),window.addEventListener("unload",bo),document.addEventListener("visibilitychange",Bo),document.addEventListener("click",yr),console.log("✅ 移动端:添加 window 滚动监听"),window.addEventListener("scroll",()=>{console.log("🔄 移动端滚动事件触发!scrollY:",window.scrollY)},{once:!0}),window.addEventListener("scroll",ti);try{const qe=await Ye();qe.success?console.log("✅ 移动端TTS服务连接正常"):console.warn("⚠️ 移动端TTS服务连接异常:",qe.message)}catch(qe){console.warn("⚠️ 移动端TTS服务连接测试失败:",qe)}const Qe=n.query.autoMessage;Qe&&(console.log("检测到移动端自动发送消息:",Qe),t.replace({path:n.path,query:{...n.query,autoMessage:void 0}}),ht(Qe)),console.log("✅ 移动端AI问答页面初始化完成")}catch(Qe){console.error("❌ 移动端AI问答页面初始化失败:",Qe)}}),St(i,async Qe=>{Qe&&a.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await je())}),St(U,Qe=>{Qe&&(console.error("语音识别错误:",Qe),Cr(Qe))});const wo=Qe=>{const qe=[YE,ZE,XE,JE],ne=qe[Le%qe.length];return Le++,ne},Nr=Qe=>{console.log("点击功能卡片:",Qe),d.value=[],p.value=0,u.value=!0;const qe=`请详细介绍${Qe}的相关内容`;c.value=qe,Br()},Br=async()=>{if(!c.value.trim()||f.value)return;console.log("📤 移动端发送消息:",c.value),we.value=[],Te.value=null,f.value=!0,u.value=!0,d.value.length===0&&(a.value.forEach(qe=>{qe.isActive=!1}),Me.value={},ve.value={},ue.value={});const Qe=c.value;c.value="",await Fr({question:Qe,windowSize:3,nResults:10}),zr()},zr=()=>{Vt(()=>{const Qe=document.querySelector(".chat-messages");Qe&&(Qe.scrollTop=Qe.scrollHeight)})},Ao=async()=>{try{console.log("开始获取功能卡片...");const Qe=await Bn.getFunctionCard({function_type:0});console.log("功能卡片响应:",Qe),Qe.statusCode===200?(te.value=Qe.data,console.log("功能卡片数据已设置:",te.value)):console.error("获取功能卡片失败:",Qe.statusCode)}catch(Qe){console.error("获取功能卡片失败:",Qe)}},Cr=(Qe,qe=2e3)=>{W.value=!1,Vt(()=>{ie.value=Qe,ee.value=qe,W.value=!0})},Ho=async Qe=>{try{await navigator.clipboard.writeText(Qe),Cr("复制成功")}catch(qe){console.error("复制失败:",qe),Cr("复制失败","error")}},Xo=Qe=>{Ho(Qe.content)},qi=Qe=>{let qe=Qe.summary||Qe.displayContent||Qe.content;if(qe&&qe.includes("<")){const ne=document.createElement("div");ne.innerHTML=qe,qe=ne.textContent||ne.innerText||qe}!qe&&Qe.reports&&Qe.reports.length>0&&(qe=Qe.reports.filter(ne=>ne.type!=="category_title").map(ne=>ne.report||"").join(`
- `)),Qe.webSearchSummary&&(qe=qe?`${qe}
- 【网络搜索总结】
- ${Qe.webSearchSummary}`:Qe.webSearchSummary),qe&&qe.trim()?Ho(qe):Cr("暂无可复制的内容")},na=Qe=>{console.log("编辑用户消息:",Qe.content),c.value=Qe.content,Vt(()=>{const qe=document.querySelector(".message-input");qe&&(qe.focus(),qe.setSelectionRange(qe.value.length,qe.value.length))})},ti=()=>{console.log("📱 移动端 handleProgressCardScroll 被触发");const Qe=document.querySelector(".mobile-header"),qe=Qe?Qe.getBoundingClientRect().bottom:60;console.log("📐 移动端 headerBottom:",qe),console.log("📊 移动端 messageContentRefs 数量:",Object.keys(O.value).length),Object.keys(O.value).forEach(ne=>{const Ie=d.value[ne];if(!Ie||Ie.type!=="ai"||!Ie.showStats){console.log(`⏭️ 移动端跳过消息 ${ne}:`,{exists:!!Ie,type:Ie?.type,showStats:Ie?.showStats});return}console.log(`✅ 移动端处理消息 ${ne}`);const Ge=O.value[ne];if(!Ge){console.log(`❌ 移动端消息 ${ne} 没有找到 contentEl`);return}const Ft=Ge.querySelector(".stats-card");if(!Ft){console.log(`❌ 移动端消息 ${ne} 没有找到 .stats-card`);return}console.log(`✅ 移动端消息 ${ne} 找到进度卡片`);const It=Ft.getBoundingClientRect(),on=Ge.getBoundingClientRect();if(!_.value[ne]){_.value[ne]={initialLeft:It.left,initialWidth:It.width,isSticky:!1,offsetTop:It.top-on.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},Vt(()=>{requestAnimationFrame(()=>{if(_.value[ne]){const Vn=Ge.querySelector(".stats-card");if(Vn){const nr=Vn.getBoundingClientRect();_.value[ne].initialLeft=nr.left,_.value[ne].initialWidth=nr.width}const xr=Date.now()-_.value[ne].initStartTime,lr=Math.max(0,100-xr);setTimeout(()=>{_.value[ne]&&(_.value[ne].initialized=!0,_.value[ne].isInitializing=!1)},lr)}})});return}if(!_.value[ne].initialized||_.value[ne].isInitializing||Date.now()-_.value[ne].initStartTime<100)return;const _n=on.top+_.value[ne].offsetTop,or=_n<=qe&&on.bottom>qe+60;console.log(`📍 移动端消息 ${ne} 吸附判断:`,{naturalTop:_n,headerBottom:qe,"naturalTop <= headerBottom":_n<=qe,"contentRect.bottom":on.bottom,"headerBottom + 60":qe+60,shouldStick:or,currentlySticky:_.value[ne].isSticky}),_.value[ne].isSticky!==or&&(_.value[ne].initialLeft=It.left,_.value[ne].initialWidth=It.width),_.value[ne].isSticky=or,_.value[ne].stickyTop=qe})},Lo=()=>{if(console.log("点击语音按钮"),!B.value){Cr("当前浏览器不支持语音识别");return}N.value?Pa():Yo()},Yo=()=>{console.log("开始语音输入"),j()||Cr("语音识别启动失败,请检查麦克风权限")},Pa=()=>{console.log("停止语音输入"),H(),q.value.trim()&&(c.value=q.value)},Ai=async Qe=>{if(console.log("重新生成回复,消息索引:",Qe),Qe>0){const qe=d.value[Qe-1];qe&&qe.type==="user"&&(console.log("重新发送用户消息:",qe.content),c.value=qe.content,await Br())}},Ci=async Qe=>{console.log("点赞消息:",Qe.id),Qe.userFeedback==="like"?Qe.userFeedback=null:Qe.userFeedback="like",d.value=[...d.value],await mi(Qe)},xi=async Qe=>{console.log("点踩消息:",Qe.id),Qe.userFeedback==="dislike"?Qe.userFeedback=null:Qe.userFeedback="dislike",d.value=[...d.value],await mi(Qe)},mi=async Qe=>{try{console.log("🔍 syncFeedbackToBackend 收到的message对象:",{id:Qe.id,ai_message_id:Qe.ai_message_id,rawData:Qe.rawData,rawData_id:Qe.rawData?.id});const qe=Qe.ai_message_id||Qe.rawData&&Qe.rawData.id;if(!qe){console.warn("❌ 消息缺少ID,无法同步反馈"),console.warn(" - message.ai_message_id:",Qe.ai_message_id),console.warn(" - message.rawData:",Qe.rawData);return}const ne=Tn(Qe.userFeedback);console.log("✅ 同步反馈到后端:",{messageId:qe,feedback:ne});const Ie=await Bn.likeAndDislike({id:qe,user_feedback:ne});Ie.statusCode===200?(console.log("反馈同步成功"),Cr(ne===2?"点赞成功":ne===3?"点踩成功":"已取消反馈")):(console.error("反馈同步失败:",Ie.msg),Cr("反馈提交失败,请稍后重试","error"))}catch(qe){console.error("同步反馈失败:",qe),Cr("反馈提交失败,请稍后重试","error")}},ra=async()=>{h.value&&(g.value==="history"?await _r():g.value==="message"&&await Si())},_r=async()=>{const{item:Qe,index:qe}=h.value;try{const ne=await Bn.deleteHistoryRecord({ai_conversation_id:Qe.id});ne.statusCode===200?(a.value.splice(qe,1),Qe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Be()),console.log("历史记录删除成功"),Cr("删除成功")):(console.error("删除历史记录失败:",ne.msg),Cr(ne.msg||"删除失败","error"))}catch(ne){console.error("删除历史记录失败:",ne),Cr("删除失败,请稍后重试","error")}finally{v.value=!1,h.value=null,g.value=""}},Si=async()=>{const{messageIndex:Qe}=h.value;try{const qe=d.value[Qe];if(qe&&qe.id)try{const ne=await Bn.deleteConversation({ai_message_id:qe.id});ne.statusCode===200?(d.value.splice(Qe,1),Qe>0&&d.value.splice(Qe-1,1),console.log("删除成功"),Cr("删除成功")):(console.error("删除失败:",ne.msg),Cr("删除失败,请稍后重试","error"))}catch(ne){console.error("删除接口调用失败:",ne),Cr("删除失败,请稍后重试","error")}else console.log("没有id,仅从前端删除"),d.value.splice(Qe,1),Cr("删除成功")}catch(qe){console.error("删除消息失败:",qe),Cr("删除失败,请稍后重试","error")}finally{v.value=!1,h.value=null,g.value=""}},ha=()=>{v.value=!1,h.value=null,g.value=""};return Qr(()=>{G.value&&(ut(),G.value=null),window.removeEventListener("beforeunload",bo),window.removeEventListener("unload",bo),document.removeEventListener("visibilitychange",Bo),window.removeEventListener("scroll",ti),document.removeEventListener("click",yr)}),xb(async()=>{console.log("移动端页面重新激活,检查并重新渲染markdown内容"),await Vt();for(const Qe of d.value)if(Qe.type==="ai"&&Qe.content&&!Qe.isTyping)try{console.log("重新渲染AI消息markdown:",Qe.id);const qe=Ut(Qe.content),ne=Rt(qe,Qe.file),Ie=await en(ne);Qe.displayContent=Ie,setTimeout(()=>{Vr()},100)}catch(qe){console.error("重新渲染markdown失败:",qe)}d.value=[...d.value],console.log("移动端页面重新激活完成,markdown内容已重新渲染")}),(Qe,qe)=>(F(),K("div",Onn,[Ve(f2,{title:"AI问答",onBack:r,onMenu:o}),x("div",Mnn,[Ve(j5,{visible:!f.value&&!Fe.value&&i.value,title:"历史记录",historyData:a.value,loading:l.value,onClose:qe[0]||(qe[0]=ne=>i.value=!1),onCreateNewTask:Be,onHandleHistoryItem:me,onDeleteHistoryItem:rt},null,8,["visible","historyData","loading"]),u.value?(F(),K("div",trn,[(F(!0),K(Pt,null,an(d.value,(ne,Ie)=>(F(),K("div",{key:Ie,class:re(["message-item",ne.type])},[ne.type==="user"?(F(),K("div",nrn,[x("div",rrn,[ne.content?(F(),K("div",orn,We(ne.content),1)):xe("",!0)]),x("div",irn,[x("button",{class:"action-btn copy-btn",onClick:Ge=>Xo(ne),title:"复制"},[x("img",{src:C(Bv),alt:"复制",class:"action-icon"},null,8,srn)],8,arn),x("button",{class:"action-btn edit-btn",onClick:Ge=>na(ne),title:"编辑"},[x("img",{src:C(ZC),alt:"编辑",class:"action-icon"},null,8,urn)],8,lrn)])])):ne.type==="ai"?(F(),K("div",crn,[ne.webSearchRaw&&ne.webSearchRaw.total>0?(F(),K("div",drn,[Ve(tAe,{total:ne.webSearchRaw.total,results:ne.webSearchRaw.results,isExpanded:!1,onToggle:Ge=>Nn(ne.webSearchRaw)},null,8,["total","results","onToggle"])])):xe("",!0),x("div",frn,[x("div",prn,[x("img",{src:C(QE),alt:"AI",class:"ai-icon"},null,8,hrn)]),x("div",{class:"message-content","data-message-index":Ie,ref_for:!0,ref:Ge=>O.value[Ie]=Ge},[x("div",vrn,[ne.showStats?(F(),K("div",{key:0,class:re(["stats-card",{"is-sticky":_.value[Ie]?.isSticky&&_.value[Ie]?.initialized&&!_.value[Ie]?.isInitializing}]),style:Xt(_.value[Ie]?.isSticky&&_.value[Ie]?.initialized&&!_.value[Ie]?.isInitializing&&_.value[Ie]?.initialLeft>0&&_.value[Ie]?.initialWidth>0?{position:"fixed",top:"60px",left:_.value[Ie].initialLeft+"px",width:_.value[Ie].initialWidth+"px",zIndex:999}:{}),"data-message-index":Ie},[x("div",yrn,[Ve(rAe,{status:Ke(ne.currentStatus,ne.progress),size:28,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:ne.statusMessage,class:"status-text"},null,8,brn)]),ne.progress<100?(F(),K("div",wrn,[x("div",Arn,[x("div",{class:"progress-fill",style:Xt({width:ne.progress+"%"})},null,4),x("div",{class:"progress-dot",style:Xt({left:ne.progress+"%"})},null,4)]),x("span",Crn,We(ne.progress)+"%",1)])):xe("",!0),ne.progress===100&&ne.reports&&ne.reports.length>0?(F(),K("div",xrn,[Ve(eAe,{reports:ne.reports.filter(Ge=>Ge.status==="completed"&&Ge.type!=="category_title"),disabled:!1,title:oe.value},null,8,["reports","title"])])):xe("",!0)],14,mrn)):xe("",!0),ne.summary?(F(),K("div",Srn,[Ve(ay,{content:ne.summary,streaming:!1},null,8,["content"])])):xe("",!0),ne.isTyping&&(!ne.reports||ne.reports.length===0)&&ne.progress<100?(F(),K("div",Ern,qe[25]||(qe[25]=[ki('<span class="loading-text" data-v-f6f5575c>AI正在思考中...</span><div class="thinking-animation" data-v-f6f5575c><span class="dot" data-v-f6f5575c></span><span class="dot" data-v-f6f5575c></span><span class="dot" data-v-f6f5575c></span></div>',2)]))):xe("",!0),ne.reports&&ne.reports.length>0?(F(),K("div",krn,[(F(!0),K(Pt,null,an(ne.reports,(Ge,Ft)=>(F(),K(Pt,{key:`${Ge.source_file}-${Ge.file_index}-${Ft}`},[Ge.type==="category_title"?(F(),mt(X3e,{key:0,category:Ge.category,number:Ge.number,count:Ge.count,onToggle:It=>Mn(Ie,It)},null,8,["category","number","count","onToggle"])):!Ge.type||Ge.type!=="category_title"?ln((F(),mt(J3e,{key:1,report:Ge,onPreviewFile:Nt},null,8,["report"])),[[Ar,tr(Ie,Ge.metadata?._displayCategory||Ge.metadata?.primary_category)]]):xe("",!0)],64))),128)),ne.isTyping&&ne.progress<100&&dn(ne.reports)?(F(),K("div",Trn,qe[26]||(qe[26]=[ki('<span class="loading-text" data-v-f6f5575c>AI正在思考中...</span><div class="thinking-animation" data-v-f6f5575c><span class="dot" data-v-f6f5575c></span><span class="dot" data-v-f6f5575c></span><span class="dot" data-v-f6f5575c></span></div>',2)]))):xe("",!0)])):xe("",!0),ne.hasWebSearchResults&&ne.webSearchSummary?(F(),K("div",_rn,[Ve(nAe,{summary:ne.webSearchSummary},null,8,["summary"])])):xe("",!0),!ne.reports||ne.reports.length===0?(F(),K("div",Drn,[ne.displayContent&&ne.displayContent.length>0?(F(),K("div",Irn,[x("div",{innerHTML:ne.displayContent},null,8,Orn)])):xe("",!0)])):xe("",!0)]),ln(x("div",Mrn,null,512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]]),ln(x("div",Prn,[x("div",Nrn,[x("button",{class:"action-btn copy-btn",onClick:Ge=>qi(ne),title:"复制"},[x("img",{src:C(Bv),alt:"复制",class:"action-icon"},null,8,Brn)],8,Rrn),x("button",{class:"action-btn regenerate-btn",onClick:Ge=>Ai(Ie),disabled:Fe.value,title:"重新生成"},[x("img",{src:C(fq),alt:"重新生成",class:"action-icon"},null,8,Frn)],8,Lrn),x("button",{class:re(["action-btn voice-btn",{speaking:mn(ne.id)}]),onClick:Ge=>jt(ne),title:mn(ne.id)?"停止朗读":"语音朗读"},[x("img",{src:C(YD),alt:"语音朗读",class:"action-icon"},null,8,$rn)],10,Urn)]),x("div",zrn,[x("button",{class:re(["action-btn thumbs-up-btn",{active:ne.userFeedback==="like"}]),onClick:Ge=>Ci(ne),title:ne.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Wy),alt:"点赞",class:"action-icon"},null,8,Hrn)],10,jrn),x("button",{class:re(["action-btn thumbs-down-btn",{active:ne.userFeedback==="dislike"}]),onClick:Ge=>xi(ne),title:ne.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Vy),alt:"踩",class:"action-icon"},null,8,Vrn)],10,Wrn)])],512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]])],8,grn)]),ln(x("div",qrn,qe[27]||(qe[27]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]),512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary||ne.reports&&ne.reports.length>0)&&he.value&&(Te.value===ne.id||Te.value===ne.ai_message_id)&&we.value.length===0]]),ln(x("div",Grn,[(F(!0),K(Pt,null,an(we.value,(Ge,Ft)=>(F(),K("div",{key:Ft,class:"related-question-item",onClick:It=>ho(Ge)},[x("span",null,We(Ge),1),qe[28]||(qe[28]=x("svg",{class:"arrow-icon",viewBox:"0 0 16 16",fill:"none"},[x("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,Krn))),128))],512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary||ne.reports&&ne.reports.length>0)&&(Te.value===ne.id||Te.value===ne.ai_message_id)&&we.value.length>0]])])):xe("",!0)],2))),128))])):(F(),K("div",Pnn,[x("div",Nnn,[x("div",Rnn,[x("img",{src:C(QE),alt:"AI头像",class:"ai-avatar-img"},null,8,Bnn)]),qe[16]||(qe[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",Lnn,[(F(!0),K(Pt,null,an(te.value,(ne,Ie)=>(F(),K("div",{key:ne.id||Ie,class:"function-card",onClick:Ge=>Nr(ne.function_title)},[x("div",Unn,[x("div",$nn,[x("img",{src:wo(ne.function_title),alt:ne.function_title,class:"card-icon-img"},null,8,znn)]),x("h4",null,We(ne.function_title),1)]),x("div",jnn,[x("p",null,We(ne.function_content),1)])],8,Fnn))),128)),te.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:qe[1]||(qe[1]=ne=>Nr("桥梁结构设计问题"))},[x("div",Hnn,[x("div",Wnn,[x("img",{src:C(YE),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,Vnn)]),qe[17]||(qe[17]=x("h4",null,"桥梁结构设计问题",-1))]),qe[18]||(qe[18]=x("div",{class:"card-description"},[x("p",null,"各类桥梁结构设计,计算与分析")],-1))])):xe("",!0),te.value.length===0?(F(),K("div",{key:1,class:"function-card",onClick:qe[2]||(qe[2]=ne=>Nr("桥梁施工技术咨询"))},[x("div",qnn,[x("div",Gnn,[x("img",{src:C(ZE),alt:"施工技术咨询",class:"card-icon-img"},null,8,Knn)]),qe[19]||(qe[19]=x("h4",null,"施工技术咨询",-1))]),qe[20]||(qe[20]=x("div",{class:"card-description"},[x("p",null,"桥梁施工方法,工艺与技术要点")],-1))])):xe("",!0),te.value.length===0?(F(),K("div",{key:2,class:"function-card",onClick:qe[3]||(qe[3]=ne=>Nr("材料与力学问题"))},[x("div",Qnn,[x("div",Ynn,[x("img",{src:C(XE),alt:"材料与力学问题",class:"card-icon-img"},null,8,Znn)]),qe[21]||(qe[21]=x("h4",null,"材料与力学问题",-1))]),qe[22]||(qe[22]=x("div",{class:"card-description"},[x("p",null,"建筑材料性能与结构力学分析")],-1))])):xe("",!0),te.value.length===0?(F(),K("div",{key:3,class:"function-card",onClick:qe[4]||(qe[4]=ne=>Nr("规范标准查询"))},[x("div",Xnn,[x("div",Jnn,[x("img",{src:C(JE),alt:"规范标准查询",class:"card-icon-img"},null,8,ern)]),qe[23]||(qe[23]=x("h4",null,"规范标准查询",-1))]),qe[24]||(qe[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])])),x("div",Qrn,[x("div",Yrn,[x("div",Zrn,[x("button",{class:re(["network-search-btn",{active:X.value}]),onClick:bn,title:X.value?"关闭联网搜索":"启用联网搜索",disabled:f.value||Fe.value},[x("div",Jrn,[x("img",{src:X.value?C(iAe):C(aAe),alt:"联网搜索",class:"action-icon"},null,8,eon)])],10,Xrn),qe[30]||(qe[30]=x("div",{class:"divider"},null,-1)),ln(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":qe[5]||(qe[5]=ne=>c.value=ne),onKeyup:Lr(Br,["enter"]),disabled:f.value||Fe.value,maxlength:"2000"},null,40,ton),[[jr,c.value]]),x("button",{class:re(["voice-btn",{recording:C(N)}]),onClick:Lo,disabled:f.value||Fe.value},[x("div",ron,[x("img",{src:C(Zf),alt:"语音",class:"action-icon"},null,8,oon),C(N)?(F(),K("div",ion)):xe("",!0)])],10,non),qe[31]||(qe[31]=x("div",{class:"divider"},null,-1)),f.value?(F(),K("button",{key:1,class:"send-btn stop-btn",onClick:Kn,title:"停止生成"},qe[29]||(qe[29]=[x("span",{class:"stop-text",style:{color:"#FF4D4F"}},"停止",-1)]))):(F(),K("button",{key:0,class:"send-btn",onClick:Br,disabled:Fe.value||!c.value.trim()},[x("img",{src:c.value.trim()?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,son)],8,aon))])])])]),Ve(d2,{visible:W.value,message:ie.value,duration:ee.value,onClose:qe[6]||(qe[6]=ne=>W.value=!1)},null,8,["visible","message","duration"]),Ve(c0,{visible:v.value,title:Ne.value,message:Pe.value,onConfirm:ra,onCancel:ha,onClose:ha},null,8,["visible","title","message"]),y.value?(F(),K("div",{key:0,class:"web-search-modal-overlay",onClick:qe[9]||(qe[9]=ne=>y.value=!1)},[x("div",{class:"web-search-modal",onClick:qe[8]||(qe[8]=Qt(()=>{},["stop"]))},[x("div",lon,[qe[32]||(qe[32]=x("h3",null,"联网搜索结果",-1)),x("button",{class:"close-btn",onClick:qe[7]||(qe[7]=ne=>y.value=!1)},"✕")]),x("div",uon,[m.value&&m.value.results?(F(),K("div",con,[x("div",don,"找到 "+We(m.value.total||m.value.results.length)+" 个相关结果",1),(F(!0),K(Pt,null,an(m.value.results,(ne,Ie)=>(F(),K("div",{key:Ie,class:"search-result-item",onClick:Ge=>xt(ne)},[x("div",pon,[x("div",hon,We(Ie+1),1),x("div",gon,We(ne.title),1)]),x("div",von,We(ne.content||ne.snippet),1),x("div",mon,[x("span",yon,We(sn(ne.url||ne.link)),1),ne.score?(F(),K("span",bon,We((ne.score*100).toFixed(1))+"%",1)):xe("",!0)])],8,fon))),128))])):xe("",!0)])])])):xe("",!0),b.value?(F(),K("div",{key:1,class:"web-preview-overlay",onClick:qe[12]||(qe[12]=ne=>b.value=!1)},[x("div",{class:"web-preview-modal",onClick:qe[11]||(qe[11]=Qt(()=>{},["stop"]))},[x("div",won,[x("h3",null,We(A.value),1),x("button",{class:"close-btn",onClick:qe[10]||(qe[10]=ne=>b.value=!1)},"✕")]),x("div",Aon,[w.value?(F(),K("iframe",{key:0,src:w.value,frameborder:"0",class:"preview-iframe"},null,8,Con)):(F(),K("div",xon,[qe[33]||(qe[33]=x("p",null,"无法加载网页预览",-1)),x("button",{class:"open-link-btn",onClick:vt},"在新标签页中打开")]))])])])):xe("",!0),S.value?(F(),K("div",{key:2,class:"file-preview-overlay",onClick:qe[15]||(qe[15]=ne=>S.value=!1)},[x("div",{class:"file-preview-modal",onClick:qe[14]||(qe[14]=Qt(()=>{},["stop"]))},[x("div",Son,[x("div",Eon,[qe[35]||(qe[35]=x("svg",{class:"file-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})],-1)),x("div",kon,[qe[34]||(qe[34]=x("h3",null,"文件预览",-1)),M.value?(F(),K("span",Ton,We(M.value),1)):xe("",!0)])]),x("button",{class:"close-btn",onClick:qe[13]||(qe[13]=ne=>S.value=!1)},"✕")]),x("div",_on,[D.value?(F(),K("div",Don,qe[36]||(qe[36]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"加载中...",-1)]))):P.value?(F(),K("div",Ion,[qe[37]||(qe[37]=x("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})],-1)),x("p",null,We(P.value),1)])):k.value?(F(),K("iframe",{key:2,src:k.value,frameborder:"0",class:"file-iframe"},null,8,Oon)):(F(),K("div",Mon,qe[38]||(qe[38]=[x("svg",{class:"empty-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})],-1),x("p",null,"暂无预览内容",-1)])))])])])):xe("",!0)]))}},Non=Qo(Pon,[["__scopeId","data-v-f6f5575c"]]),Ron={class:"mobile-safety-hazard"},Bon={class:"mobile-content"},Lon={key:0,class:"initial-content"},Fon={class:"ai-intro"},Uon={class:"ai-avatar"},$on=["src"],zon={class:"function-cards"},jon=["onClick"],Hon={class:"card-header"},Won={class:"card-icon"},Von=["src","alt"],qon={class:"card-description"},Gon={class:"card-header"},Kon={class:"card-icon"},Qon=["src"],Yon={class:"card-header"},Zon={class:"card-icon"},Xon=["src"],Jon={class:"card-header"},ein={class:"card-icon"},tin=["src"],nin={class:"card-header"},rin={class:"card-icon"},oin=["src"],iin={key:1,class:"chat-messages"},ain={key:0,class:"user-message"},sin={class:"message-content"},lin={key:0,class:"message-text"},uin={class:"message-actions"},cin=["onClick"],din=["src"],fin=["onClick"],pin=["src"],hin={key:1,class:"ai-message"},gin={class:"ai-avatar-small"},vin=["src"],min={class:"message-content"},yin={class:"ai-text"},bin={key:0,class:"typing-indicator"},win=["innerHTML"],Ain={class:"divider"},Cin={class:"message-actions"},xin={class:"left-actions"},Sin=["onClick"],Ein=["src"],kin=["onClick","disabled"],Tin=["src"],_in=["onClick","title"],Din=["src"],Iin={class:"right-actions"},Oin=["onClick","title"],Min=["src"],Pin=["onClick","title"],Nin=["src"],Rin={key:2,class:"step2-content"},Bin={key:0,class:"loading-overlay"},Lin={key:0,class:"generating-overlay-full"},Fin={key:1,class:"generating-overlay-full"},Uin={class:"outline-header"},$in={class:"outline-top-right"},zin=["disabled"],jin=["src"],Hin=["disabled"],Win=["src"],Vin=["disabled"],qin=["src"],Gin={class:"outline-content"},Kin={key:0,class:"outline-content-scrollable"},Qin={key:0,class:"outline-chapter"},Yin={class:"chapter-header"},Zin={class:"chapter-title"},Xin={class:"outline-section"},Jin={key:0,class:"section-container"},ean={class:"section-header"},tan={class:"section-title"},nan={key:0,class:"section-subsection"},ran={key:0,class:"subsection-container"},oan={class:"subsection-header"},ian={class:"subsection-title"},aan={key:0,class:"subsubsection-container"},san={class:"subsubsection-header"},lan={class:"subsubsection-title"},uan={key:0,class:"add-chapter-container"},can=["src"],dan={key:1,class:"ai-outline-content"},fan=["innerHTML"],pan={key:2,class:"default-outline"},han={class:"outline-bottom-left"},gan=["disabled"],van=["src"],man=["disabled"],yan=["src"],ban={class:"outline-bottom-right"},wan=["disabled"],Aan=["src"],Can=["disabled"],xan=["src"],San={key:3,class:"chat-input-section"},Ean={class:"input-container"},kan={class:"input-box"},Tan=["disabled"],_an=["disabled"],Dan={class:"icon-container"},Ian=["src"],Oan={key:0,class:"recording-indicator"},Man=["disabled"],Pan=["src"],Nan={__name:"m-SafetyHazard",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{!U.value&&!j.value&&(o.value=!0)},o=Q(!1),i=Q([]),a=Q(0),s=Q(!1),l=Q(!1),u=Q([]),d=Q(""),c=Q(!1),f=Q(0),p=Q("step1"),v=Q(!1),h=Q(null),g=Q(""),y=Q(null),{isSupported:m,isListening:b,transcript:w,error:A,startListening:S,stopListening:k}=T0(),M=Q(!1),D=Q(""),P=Q(2e3),O=Q([]);let _=0;const B=Q(""),N=Q([]),q=Q(""),U=Q(!1),j=Q(!1),H=Q(null),G=Q(""),Z=Q(null),$=J(()=>u.value.some(Ue=>Ue.type==="ai"&&Ue.isTyping)),L=J(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),W=J(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),ie=(Ue,ze)=>{let ut=`# ${ze}
- `;const yt=document.createElement("div");yt.innerHTML=Ue;const jt=mn=>{const Nn=mn.tagName.toLowerCase();if(Nn==="h1"){const xt=mn.textContent.trim();xt&&!xt.includes("大纲")&&(ut+=`## ${xt}
- `)}else if(Nn==="h2"){const xt=mn.textContent.trim();ut+=`### ${xt}
- `}else if(Nn==="h3"){const xt=mn.textContent.trim();ut+=`#### ${xt}
- `}else if(Nn==="h4"){const xt=mn.textContent.trim();ut+=`##### ${xt}
- `}else if(Nn==="ul")mn.querySelectorAll("li").forEach(sn=>{const vt=sn.textContent.trim();vt&&(ut+=`- ${vt}
- `)}),ut+=`
- `;else if(Nn==="ol")mn.querySelectorAll("li").forEach((sn,vt)=>{const Nt=sn.textContent.trim();Nt&&(ut+=`${vt+1}. ${Nt}
- `)}),ut+=`
- `;else if(Nn==="p"){const xt=mn.textContent.trim();xt&&(ut+=`${xt}
- `)}else for(const xt of mn.childNodes)xt.nodeType===Node.ELEMENT_NODE&&jt(xt)};for(const mn of yt.childNodes)mn.nodeType===Node.ELEMENT_NODE&&jt(mn);return ut},ee=Ue=>{try{const ze=Ue.match(/\{[\s\S]*\}/);if(ze){const ut=JSON.parse(ze[0]);return te(ut),ut}else throw new Error("未找到有效的JSON数据")}catch(ze){return console.error("解析AI回复失败:",ze),X()}},te=Ue=>{Ue.singleChoice&&Ue.singleChoice.questions&&Ue.singleChoice.questions.forEach(ze=>{ze.selectedAnswer||(ze.selectedAnswer=""),(!ze.options||ze.options.length===0)&&(ze.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ue.judge&&Ue.judge.questions&&Ue.judge.questions.forEach(ze=>{ze.selectedAnswer||(ze.selectedAnswer="")}),Ue.multiple&&Ue.multiple.questions&&Ue.multiple.questions.forEach(ze=>{ze.selectedAnswers||(ze.selectedAnswers=[]),(!ze.options||ze.options.length===0)&&(ze.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ue.short&&Ue.short.questions&&Ue.short.questions.forEach(ze=>{ze.outline||(ze.outline={keyFactors:"答题要点、关键因素:示例答案"})})},X=()=>({title:"安全培训考试",totalScore:100,totalQuestions:17,singleChoice:{scorePerQuestion:5,totalScore:25,count:5,questions:[]},judge:{scorePerQuestion:3,totalScore:15,count:5,questions:[]},multiple:{scorePerQuestion:8,totalScore:40,count:5,questions:[]},short:{scorePerQuestion:10,totalScore:20,count:2,questions:[]}}),ue=Ue=>{try{const ze=ve(Ue),ut=new Blob([ze],{type:"application/msword"}),yt=URL.createObjectURL(ut),jt=document.createElement("a");jt.setAttribute("href",yt),jt.setAttribute("download",`${Ue.title}_${new Date().toISOString().split("T")[0]}.doc`),jt.style.visibility="hidden",document.body.appendChild(jt),jt.click(),document.body.removeChild(jt),URL.revokeObjectURL(yt),Ee("考试文件已下载!")}catch(ze){console.error("导出考试文件失败:",ze),Ee("导出考试文件失败,请重试")}},ve=Ue=>{const ze=new Date().toLocaleString("zh-CN");let ut=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${Ue.title||"考试试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- margin-bottom: 14px;
- line-height: 1.6;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-radius: 4px;
- font-weight: bold;
- color: #2c5aa0;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${Ue.title||"考试试卷"}</div>
- <div class="exam-info">
- 总分:${Ue.totalScore||0}分 | 总题数:${Ue.totalQuestions||0}题 | 生成时间:${ze}
- </div>
- </div>`;return Ue.singleChoice&&Ue.singleChoice.questions.length>0&&(ut+=`
- <div class="section">
- <div class="section-title">一、单选题(${Ue.singleChoice.count}题,每题${Ue.singleChoice.scorePerQuestion}分,共${Ue.singleChoice.totalScore}分)</div>`,Ue.singleChoice.questions.forEach((yt,jt)=>{ut+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${jt+1}.</span> ${yt.text}
- </div>
- <div class="options">`,yt.options.forEach(mn=>{ut+=`
- <div class="option">${mn.key}. ${mn.text}</div>`}),ut+=`
- </div>
- <div class="answer">正确答案:${yt.selectedAnswer} </div>
- </div>`}),ut+=`
- </div>`),Ue.judge&&Ue.judge.questions.length>0&&(ut+=`
- <div class="section">
- <div class="section-title">二、判断题(${Ue.judge.count}题,每题${Ue.judge.scorePerQuestion}分,共${Ue.judge.totalScore}分)</div>`,Ue.judge.questions.forEach((yt,jt)=>{ut+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${jt+1}.</span> ${yt.text}
- </div>
- <div class="answer">正确答案:${yt.selectedAnswer} </div>
- </div>`}),ut+=`
- </div>`),Ue.multiple&&Ue.multiple.questions.length>0&&(ut+=`
- <div class="section">
- <div class="section-title">三、多选题(${Ue.multiple.count}题,每题${Ue.multiple.scorePerQuestion}分,共${Ue.multiple.totalScore}分)</div>`,Ue.multiple.questions.forEach((yt,jt)=>{ut+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${jt+1}.</span> ${yt.text}
- </div>
- <div class="options">`,yt.options.forEach(mn=>{ut+=`
- <div class="option">${mn.key}. ${mn.text}</div>`}),ut+=`
- </div>
- <div class="answer">正确答案:${yt.selectedAnswers.join(", ")}</div>
- </div>`}),ut+=`
- </div>`),Ue.short&&Ue.short.questions.length>0&&(ut+=`
- <div class="section">
- <div class="section-title">四、简答题(${Ue.short.count}题,每题${Ue.short.scorePerQuestion}分,共${Ue.short.totalScore}分)</div>`,Ue.short.questions.forEach((yt,jt)=>{ut+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${jt+1}.</span> ${yt.text}
- </div>
- <div class="answer">答题要点:${yt.outline.keyFactors} </div>
- </div>`}),ut+=`
- </div>`),ut+=`
- </body>
- </html>`,ut},Me=Ue=>{if(!Ue)return null;if(typeof Ue=="number"){const ze=Ue<1e12?Ue*1e3:Ue;return new Date(ze)}if(typeof Ue=="string"){let ze=new Date(Ue);if(!isNaN(ze))return ze;const ut=Ue.replace(/-/g,"/").replace("T"," ");if(ze=new Date(ut),!isNaN(ze))return ze}return new Date(Ue)},we=Ue=>{const ze=Me(Ue);if(!ze||isNaN(ze))return"";const ut=new Date,yt=ze.toDateString()===ut.toDateString(),jt=new Date(ut.getFullYear(),ut.getMonth(),ut.getDate()-1),mn=ze.toDateString()===jt.toDateString();if(yt)return ze.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(mn)return"昨天 "+ze.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Nn=ze.getMonth()+1,xt=ze.getDate(),sn=ze.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Nn}月${xt}日 ${sn}`},he=Ue=>{try{let ze="安全培训大纲";const ut=Ue.split(`
- `);for(let yt of ut){const jt=yt.trim();if(jt.includes("以下是为您准备的PPT大纲")){const mn=ut.indexOf(yt)+1;if(mn<ut.length){const Nn=ut[mn].trim();if(Nn&&Nn.length>0&&!Nn.includes("以下")&&!Nn.includes("大纲统计信息")){ze=Nn;break}}}if(jt.startsWith("# ")){ze=jt.replace("# ","").trim();break}if(jt.startsWith("## ")){const mn=jt.replace("## ","").trim();if(mn&&!mn.includes("内容要点")&&!mn.includes("概述")&&!mn.includes("内容详情")){ze=mn;break}}jt.length>10&&!jt.includes("以下是")&&!jt.includes("大纲统计")&&!jt.includes("##")&&!jt.includes("###")&&jt.length<50&&!ze.includes("#")&&ze==="安全培训大纲"&&(ze=jt)}return console.log("提取的大纲标题:",ze),ze}catch(ze){return console.error("提取大纲标题失败:",ze),"安全培训大纲"}},Te=Ue=>{if(!Ue)return"新对话";const ze=Ue.replace(/<[^>]*>/g,"").trim();return ze.length>30?ze.substring(0,30)+"...":ze},Y=async()=>{try{console.log("📋 开始获取移动端安全培训历史记录列表..."),s.value=!0;const Ue=performance.now(),ze=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:1}),ut=performance.now();console.log(`📋 移动端安全培训历史记录API调用耗时: ${(ut-Ue).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",ze),ze.statusCode===200?(a.value=ze.total||0,i.value=ze.data.map(yt=>({id:yt.id,title:Te(yt.content),time:we(yt.updated_at),businessType:yt.business_type,isActive:!1,rawData:yt})),f.value&&i.value.forEach(yt=>{yt.isActive=yt.id===f.value}),console.log(`✅ 移动端安全培训历史记录列表已设置: ${i.value.length}条记录,总数: ${a.value}`)):console.error("❌ 获取移动端历史记录列表失败:",ze.statusCode)}catch(Ue){console.error("❌ 获取移动端历史记录列表失败:",Ue)}finally{s.value=!1}},be=Ue=>{if(!Ue)return Ue;console.log("开始转换Markdown:",Ue);let ze=Ue;const ut=/(?:^|<br>)#{1,6}\s*/.test(ze)||/\*\*.*?\*\*/.test(ze)||/^\s*[-*]\s+/.test(ze);console.log("Markdown格式检测结果:",ut);const yt=/<[^>]*>/.test(ze);return console.log("HTML标签检测结果:",yt),ut?(console.log("检测到Markdown格式,进行Markdown转换"),ze=ze.replace(/^#{6}\s*(.+)$/gm,"<h6>$1</h6>"),ze=ze.replace(/^#{5}\s*(.+)$/gm,"<h5>$1</h5>"),ze=ze.replace(/^#{4}\s*(.+)$/gm,"<h4>$1</h4>"),ze=ze.replace(/^#{3}\s*(.+)$/gm,"<h3>$1</h3>"),ze=ze.replace(/^#{2}\s*(.+)$/gm,"<h2>$1</h2>"),ze=ze.replace(/^#{1}\s*(.+)$/gm,"<h1>$1</h1>"),ze=ze.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>"),ze=ze.replace(/\*(.*?)\*/g,"<em>$1</em>"),ze=ze.replace(/^\s*[-*]\s+(.+)$/gm,"<li>$1</li>"),ze=ze.replace(/(<li>.*<\/li>)/s,"<ul>$1</ul>"),ze=ze.replace(/`(.*?)`/g,"<code>$1</code>"),console.log("Markdown转换完成:",ze)):console.log(yt?"检测到HTML标签,跳过Markdown转换":"未检测到特殊格式,保持原文本"),ze=ze.replace(/\n/g,"<br>"),console.log("最终HTML:",ze),ze},De=Ue=>{const ze=[g_,v_,m_,y_],ut=ze[_%ze.length];return _++,ut},pe=Ue=>{console.log("点击功能卡片:",Ue),u.value=[],f.value=0,l.value=!0;const ze=`请详细介绍${Ue}的相关内容`;d.value=ze,oe()},oe=async()=>{if(!d.value.trim()||c.value)return;console.log("开始发送消息:",d.value),c.value=!0,l.value=!0;const Ue={type:"user",content:d.value,id:Date.now()};u.value.push(Ue);const ze={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(ze);const ut=d.value;d.value="",ce();try{const yt=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:ut,business_type:1});if(console.log("AI回复响应:",yt),yt.statusCode===200){yt.data&&yt.data.ai_conversation_id&&(f.value=yt.data.ai_conversation_id),yt.data&&yt.data.ai_message_id&&(Z.value=yt.data.ai_message_id,console.log("设置AI消息ID:",Z.value));const jt=yt.data?yt.data.reply:yt.reply||"";console.log("AI回复内容:",jt);const mn=be(jt),Nn=[];let xt="",sn=!1,vt="";for(let tr=0;tr<mn.length;tr++){const dn=mn[tr];dn==="<"?(xt&&!sn&&(Nn.push({type:"text",content:xt}),xt=""),sn=!0,vt=dn):dn===">"?(vt+=dn,Nn.push({type:"tag",content:vt}),sn=!1,vt=""):sn?vt+=dn:xt+=dn}xt&&Nn.push({type:"text",content:xt}),vt&&Nn.push({type:"tag",content:vt}),console.log("分割后的文本块:",Nn);let Nt=0,bn=0;const Mn=setInterval(()=>{if(Nt<Nn.length){const tr=Nn[Nt];if(tr.type==="tag")console.log("显示HTML标签:",tr.content),ze.displayContent+=tr.content,Nt++,bn=0;else if(bn<tr.content.length){const dn=ze.displayContent+tr.content[bn];ze.displayContent=dn,bn++}else Nt++,bn=0;u.value=[...u.value],ce()}else ze.isTyping=!1,ze.content=jt,clearInterval(Mn),console.log("打字完成,最终displayContent:",ze.displayContent),u.value=[...u.value],console.log("打字完成,强制更新响应式数据"),q.value=ze.displayContent,B.value=he(jt)||"安全培训大纲",p.value="step2",Y()},50)}else console.error("发送消息失败:",yt),ze.content="抱歉,我暂时无法回答您的问题,请稍后再试。",ze.displayContent="抱歉,我暂时无法回答您的问题,请稍后再试。",ze.isTyping=!1,u.value=[...u.value]}catch(yt){console.error("发送消息失败:",yt),ze.content="抱歉,网络连接出现问题,请检查网络后重试。",ze.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",ze.isTyping=!1,u.value=[...u.value]}finally{c.value=!1}},ce=()=>{Vt(()=>{const Ue=document.querySelector(".chat-messages");Ue&&(Ue.scrollTop=Ue.scrollHeight)})},Re=async()=>{try{console.log("开始获取功能卡片...");const Ue=await Bn.getFunctionCard({function_type:1});console.log("功能卡片响应:",Ue),Ue.statusCode===200?(O.value=Ue.data,console.log("功能卡片数据已设置:",O.value)):console.error("获取功能卡片失败:",Ue.statusCode)}catch(Ue){console.error("获取功能卡片失败:",Ue)}},Ee=(Ue,ze=2e3)=>{M.value=!1,Vt(()=>{D.value=Ue,P.value=ze,M.value=!0})},Le=async Ue=>{try{await navigator.clipboard.writeText(Ue),Ee("复制成功")}catch(ze){console.error("复制失败:",ze),Ee("复制失败")}},Fe=Ue=>{Le(Ue.content)},Pe=Ue=>{let ze=Ue.displayContent||Ue.content;if(ze&&ze.includes("<")){const ut=document.createElement("div");ut.innerHTML=ze,ze=ut.textContent||ut.innerText||ze}Le(ze)},Ne=Ue=>{console.log("编辑用户消息:",Ue.content),d.value=Ue.content,Vt(()=>{const ze=document.querySelector(".message-input");ze&&(ze.focus(),ze.setSelectionRange(ze.value.length,ze.value.length))})},pt=()=>{if(console.log("点击语音按钮"),!m.value){Ee("当前浏览器不支持语音识别");return}b.value?Bt():Rt()},Rt=()=>{console.log("开始语音输入"),S()||Ee("语音识别启动失败,请检查麦克风权限")},Bt=()=>{console.log("停止语音输入"),k(),w.value.trim()&&(d.value=w.value)},en=Ue=>{if(y.value===Ue.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}else{if(y.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}const ze=Ue.displayContent||Ue.content;if(ze&&ze.trim()){const ut=ze.replace(/<[^>]*>/g,""),yt=new SpeechSynthesisUtterance(ut);yt.lang="zh-CN",yt.rate=.9,yt.pitch=1,yt.volume=1,yt.onend=()=>{y.value=null},yt.onerror=()=>{y.value=null};try{window.speechSynthesis&&window.speechSynthesis.speak(yt)}catch{}y.value=Ue.id}}},Wt=Ue=>y.value===Ue,Ut=async Ue=>{if(console.log("重新生成回复,消息索引:",Ue),Ue>0){const ze=u.value[Ue-1];if(ze&&ze.type==="user"){console.log("重新发送用户消息:",ze.content),u.value.splice(Ue,1);const ut={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(ut),ce();try{const yt=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:ze.content,business_type:1});if(console.log("重新生成AI回复响应:",yt),yt.statusCode===200){yt.data&&yt.data.ai_conversation_id&&(f.value=yt.data.ai_conversation_id),yt.data&&yt.data.ai_message_id&&(Z.value=yt.data.ai_message_id,console.log("重新生成设置AI消息ID:",Z.value));const jt=yt.data?yt.data.reply:yt.reply||"";console.log("重新生成AI回复内容:",jt);const mn=be(jt),Nn=[];let xt="",sn=!1,vt="";for(let tr=0;tr<mn.length;tr++){const dn=mn[tr];dn==="<"?(xt&&!sn&&(Nn.push({type:"text",content:xt}),xt=""),sn=!0,vt=dn):dn===">"?(vt+=dn,Nn.push({type:"tag",content:vt}),sn=!1,vt=""):sn?vt+=dn:xt+=dn}xt&&Nn.push({type:"text",content:xt}),vt&&Nn.push({type:"tag",content:vt}),console.log("重新生成分割后的文本块:",Nn);let Nt=0,bn=0;const Mn=setInterval(()=>{if(Nt<Nn.length){const tr=Nn[Nt];if(tr.type==="tag")console.log("显示HTML标签:",tr.content),ut.displayContent+=tr.content,Nt++,bn=0;else if(bn<tr.content.length){const dn=ut.displayContent+tr.content[bn];ut.displayContent=dn,bn++}else Nt++,bn=0;u.value=[...u.value],ce()}else ut.isTyping=!1,ut.content=jt,clearInterval(Mn),console.log("重新生成打字完成,最终displayContent:",ut.displayContent),u.value=[...u.value],console.log("重新生成打字完成,强制更新响应式数据"),q.value=ut.displayContent,B.value=he(jt)||"安全培训大纲",p.value="step2",Y()},50)}else console.error("重新生成失败:",yt),ut.content="抱歉,重新生成失败,请稍后再试。",ut.displayContent="抱歉,重新生成失败,请稍后再试。",ut.isTyping=!1,u.value=[...u.value]}catch(yt){console.error("重新生成失败:",yt),ut.content="抱歉,网络连接出现问题,请检查网络后重试。",ut.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",ut.isTyping=!1,u.value=[...u.value]}}}},ct=async Ue=>{console.log("点赞消息:",Ue.id),Ue.userFeedback==="like"?(Ue.userFeedback=null,Ee("已取消点赞")):(Ue.userFeedback="like",Ee("点赞成功")),u.value=[...u.value]},_t=async Ue=>{console.log("点踩消息:",Ue.id),Ue.userFeedback==="dislike"?(Ue.userFeedback=null,Ee("已取消点踩")):(Ue.userFeedback="dislike",Ee("点踩成功")),u.value=[...u.value]},st=(Ue,ze)=>Ue?Ue.includes("第")?Ue:`第${ze+1}章 ${Ue}`:`第${ze+1}章`,Ot=async()=>{try{if(!q.value){Ee("请先生成大纲内容");return}j.value=!0;const Ue=ie(q.value,B.value||"安全培训大纲"),ze=`请基于以下安全培训大纲内容生成一份考试试卷:
- 大纲标题:${B.value||"安全培训大纲"}
- 大纲内容:
- ${Ue}
- 请生成一份包含以下题型的考试试卷:
- - 单选题:5题,每题5分,共25分
- - 判断题:5题,每题3分,共15分
- - 多选题:5题,每题8分,共40分
- - 简答题:2题,每题10分,共20分
- 试卷总分:100分
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- {
- "title": "${B.value||"安全培训大纲"} - 安全培训考试",
- "totalScore": 100,
- "totalQuestions": 17,
- "singleChoice": {
- "scorePerQuestion": 5,
- "totalScore": 25,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }
- ]
- },
- "judge": {
- "scorePerQuestion": 3,
- "totalScore": 15,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }
- ]
- },
- "multiple": {
- "scorePerQuestion": 8,
- "totalScore": 40,
- "count": 5,
- "questions": [
- {
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }
- ]
- },
- "short": {
- "scorePerQuestion": 10,
- "totalScore": 20,
- "count": 2,
- "questions": [
- {
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }
- ]
- }
- }
- 注意:
- 1. 所有题目内容必须基于提供的大纲内容
- 2. 题目难度适中,符合安全培训考试要求
- 3. 严格按照JSON格式返回,不要有多余字符
- 4. 单选题和判断题的选项要合理
- 5. 多选题至少要有2个正确答案
- 6. 简答题要提供清晰的答题要点
- 7. 必须为每道题设置正确答案
- 8. 简答题答案字数不超过500字`;console.log("发送给AI的考试生成提示词:",ze);const ut=await Bn.reProduceSingleQuestion({message:ze});if(ut.statusCode===200){const yt=ut.data.reply,jt=ut.data.ai_conversation_id;console.log("AI生成的考试试卷:",yt),console.log("AI对话ID:",jt),f.value=jt;const mn=ee(yt);ue(mn),Ee("考试试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(Ue){console.error("生成考题失败:",Ue),Ee("生成考题失败,请重试")}finally{j.value=!1}},Ae=async()=>{try{if(!q.value){Ee("暂无大纲内容可复制");return}const Ue=document.createElement("div");Ue.innerHTML=q.value;let ze="";const ut=(mn,Nn=0)=>{for(const xt of mn.childNodes)if(xt.nodeType===Node.TEXT_NODE){const sn=xt.textContent?.trim();if(sn){const vt=" ".repeat(Nn);ze+=`${vt}${sn}
- `}}else if(xt.nodeType===Node.ELEMENT_NODE){const sn=xt.tagName?.toLowerCase();if(["h2","h3","h4","h5","h6"].includes(sn)){const vt=xt.textContent?.trim();vt&&!vt.includes("安全培训大纲")&&(ze+=`${" ".repeat(Nn)}${vt}
- `);continue}ut(xt,Nn+1)}};ut(Ue),ze=ze.replace(/\n\s*\n\s*\n/g,`
- `).replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n$/,"").trim();const yt=`${B.value||"安全培训大纲"}
- ${ze}`;if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(yt),Ee("复制成功");return}catch(mn){console.warn("Clipboard API 失败,使用降级方案:",mn)}const jt=document.createElement("textarea");jt.value=yt,jt.style.position="fixed",jt.style.left="-999999px",jt.style.top="-999999px",document.body.appendChild(jt),jt.focus(),jt.select();try{if(document.execCommand("copy"))Ee("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(mn){console.error("传统复制方法也失败:",mn),Ee("复制失败,请手动选择文本复制")}finally{document.body.removeChild(jt)}}catch(Ue){console.error("复制大纲失败:",Ue),ElMessage.error("复制失败,请手动选择文本复制")}},je=async()=>{try{if(!q.value){Ee("暂无大纲内容可下载");return}let Ue=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${B.value||"安全培训大纲"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .outline-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- h1, h2, h3, h4, h5, h6 {
- color: #000;
- font-weight: bold;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- margin-top: 20px;
- margin-bottom: 15px;
- }
- h1 {
- font-size: 20px;
- border-bottom: 2px solid #000;
- padding-bottom: 10px;
- }
- h2 {
- font-size: 18px;
- margin-top: 20px;
- margin-bottom: 12px;
- }
- h3 {
- font-size: 16px;
- margin-top: 15px;
- margin-bottom: 8px;
- }
- h4 {
- font-size: 14px;
- margin-top: 12px;
- margin-bottom: 6px;
- }
- ul, li {
- color: #000;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- }
- li {
- margin-bottom: 4px;
- }
- .stats {
- background: #f8f9fa;
- padding: 20px;
- border-radius: 8px;
- margin-top: 30px;
- border: 1px solid #ddd;
- }
- .stats h3 {
- color: #2c3e50;
- margin-top: 0;
- font-size: 16px;
- }
- .stats p {
- margin: 8px 0;
- color: #555;
- font-size: 14px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="outline-title">${B.value||"安全培训大纲"}</div>
- </div>
- `;const ze=document.createElement("div");ze.innerHTML=q.value,ze.querySelectorAll("h1").forEach(xt=>{const sn=xt.textContent?.trim();sn&&sn.includes(B.value||"安全培训大纲")&&xt.remove()});const yt=ze.innerHTML.replace(/<h[1-6][^>]*>\s*<\/h[1-6]>/gi,"");Ue+=yt,Ue+=`
- </body>
- </html>
- `;const jt=new Blob([Ue],{type:"application/msword"}),mn=URL.createObjectURL(jt),Nn=document.createElement("a");Nn.href=mn,Nn.download=`${B.value||"安全培训大纲"}.doc`,document.body.appendChild(Nn),Nn.click(),document.body.removeChild(Nn),URL.revokeObjectURL(mn),Ee("下载成功")}catch(Ue){console.error("下载大纲失败:",Ue),Ee("下载失败,请重试")}},at=async()=>{try{if(!f.value){Ee("请先开始一个对话");return}U.value=!0;const ze=`${B.value||"安全培训大纲"}`;console.log("开始生成新大纲:",ze),console.log("ai_conversation_id:",f.value);const ut=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:ze,business_type:1});if(console.log("重新生成大纲响应:",ut),ut.statusCode===200){const yt=ut.data?ut.data.reply:ut.reply||"";console.log("重新生成大纲内容:",yt),ut.data&&ut.data.ai_message_id&&(Z.value=ut.data.ai_message_id,console.log("重新生成大纲设置AI消息ID:",Z.value));const jt=be(yt);q.value=jt;const mn=he(yt)||"安全培训大纲";B.value=mn,console.log("重新生成大纲标题设置为:",mn),Ee("新大纲生成成功!"),H.value=null,G.value=""}else console.error("重新生成大纲失败:",ut),Ee("重新生成大纲失败,请重试")}catch(Ue){console.error("重新生成大纲失败:",Ue),Ee("重新生成大纲失败,请重试")}finally{U.value=!1}},gt=()=>{Ee("请前往电脑端选择模版")},nn=()=>{if(console.log("发出评价状态 - outlineFeedback:",H.value,"evaluation:",G.value),H.value!==null)switch(H.value){case 2:return"like";case 3:return"dislike";case 0:return"";default:return""}return G.value},Tn=async Ue=>{try{console.log("设置评价:",Ue);const ze=nn();let ut;ze===Ue?(ut=0,console.log("取消评价,发送0")):(ut=Ue==="like"?2:3,console.log("设置新评价:",ut)),console.log("currentAiMessageId.value",Z.value);const yt=await Bn.likeAndDislike({id:Z.value,user_feedback:ut});yt.statusCode===200?(console.log("点评成功"),ut===0?(G.value="",H.value=0,Ee("点评已取消")):(G.value=Ue,H.value=ut,Ee("点评成功"))):(console.error("评价保存失败:",yt),Ee("评价保存失败,请重试"))}catch(ze){console.error("设置评价失败:",ze),Ee("评价设置失败,请重试")}},He=()=>{Tn("like")},ke=()=>{Tn("dislike")},me=(Ue,ze)=>{console.log("添加新项目:",Ue,ze),Ee("添加功能开发中...")},Be=()=>{console.log("新建安全培训任务"),o.value=!1,p.value="step1",l.value=!1,u.value=[],f.value=0,d.value="",B.value="",N.value=[],q.value="",H.value=null,G.value="",Z.value=null,i.value.forEach(Ue=>{Ue.isActive=!1})},rt=async Ue=>{if(Ue.isActive)return;console.log("点击移动端安全培训历史记录:",Ue),i.value.forEach(ut=>{ut.isActive=ut.id===Ue.id}),o.value=!1,l.value=!0,p.value="step2",f.value=Ue.id,console.log("开始加载历史对话详情,conversation_id:",Ue.id);const ze=await Bn.getHistoryRecord({ai_conversation_id:Ue.id,business_type:1});console.log("历史对话详情响应:",ze),ze.statusCode===200&&ze.data&&ze.data.length>0?(u.value=[],console.log("历史对话数据详情:",ze.data),ze.data.forEach((ut,yt)=>{console.log(`处理第${yt+1}条消息:`,ut);const jt=ut.type;if(jt==="user")console.log("添加用户消息:",ut.content),u.value.push({type:"user",content:ut.content,id:ut.id||Date.now()+yt,timestamp:ut.created_at||ut.timestamp});else if(jt==="ai"){console.log("添加AI消息:",ut.content);const mn={type:"ai",content:ut.content,displayContent:be(ut.content),isTyping:!1,id:ut.id||Date.now()+yt+1e3,timestamp:ut.created_at||ut.timestamp,userFeedback:null};u.value.push(mn),yt===ze.data.length-1&&(q.value=mn.displayContent,B.value=he(ut.content)||"安全培训大纲",console.log("历史记录大纲标题设置为:",B.value),ut.id&&(Z.value=ut.id,console.log("历史记录设置AI消息ID:",Z.value)),ut.user_feedback!==void 0&&(H.value=ut.user_feedback,console.log("历史记录设置评价状态:",H.value)))}else console.log("未知消息类型,跳过:",jt,ut)}),console.log("历史对话加载完成,消息数量:",u.value.length),Vt(()=>{ce()})):(console.error("加载历史对话失败或无数据:",ze),u.value=[])},ht=async(Ue,ze)=>{try{console.log("开始删除移动端历史记录:",Ue);const ut=await Bn.deleteHistoryRecord({ai_conversation_id:Ue.id});ut.statusCode===200?(i.value.splice(ze,1),a.value=Math.max(0,a.value-1),Ue.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Be()),console.log("✅ 移动端历史记录删除成功"),Ee("删除成功")):console.error("❌ 删除移动端历史记录失败:",ut)}catch(ut){console.error("❌ 删除移动端历史记录失败:",ut)}},rn=async()=>{h.value&&(g.value==="history"?await Ye():g.value==="message"&&await Je())},Ye=async()=>{const{item:Ue,index:ze}=h.value;try{const ut=await Bn.deleteHistoryRecord({ai_conversation_id:Ue.id});ut.statusCode===200?(i.value.splice(ze,1),Ue.isActive&&(u.value=[],f.value=0,l.value=!1,p.value="step1"),console.log("历史记录删除成功"),Ee("删除成功")):(console.error("删除历史记录失败:",ut.msg),Ee(ut.msg||"删除失败"))}catch(ut){console.error("删除历史记录失败:",ut),Ee("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Je=async()=>{const{messageIndex:Ue}=h.value;try{const ze=u.value[Ue];if(ze&&ze.id)try{const ut=await Bn.deleteConversation({ai_message_id:ze.id});ut.statusCode===200?(u.value.splice(Ue,1),Ue>0&&u.value.splice(Ue-1,1),console.log("删除成功"),Ee("删除成功")):(console.error("删除失败:",ut.msg),Ee("删除失败,请稍后重试"))}catch(ut){console.error("删除接口调用失败:",ut),Ee("删除失败,请稍后重试")}else console.log("没有id,仅从前端删除"),u.value.splice(Ue,1),Ee("删除成功")}catch(ze){console.error("删除消息失败:",ze),Ee("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},lt=()=>{v.value=!1,h.value=null,g.value=""};return jn(async()=>{try{console.log("🚀 移动端安全培训页面初始化,加载功能卡片..."),await Re(),console.log("✅ 移动端安全培训页面初始化完成")}catch(Ue){console.error("❌ 移动端安全培训页面初始化失败:",Ue)}}),Qr(()=>{if(y.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}}),St(o,async Ue=>{Ue&&i.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await Y())}),St(A,Ue=>{Ue&&(console.error("语音识别错误:",Ue),Ee(Ue))}),(Ue,ze)=>(F(),K("div",Ron,[Ve(f2,{title:"安全培训",onBack:n,onMenu:r}),x("div",Bon,[Ve(j5,{visible:!U.value&&!j.value&&o.value,title:"历史记录",historyData:i.value,loading:s.value,onClose:ze[0]||(ze[0]=ut=>o.value=!1),onCreateNewTask:Be,onHandleHistoryItem:rt,onDeleteHistoryItem:ht},null,8,["visible","historyData","loading"]),!l.value&&p.value==="step1"?(F(),K("div",Lon,[x("div",Fon,[x("div",Uon,[x("img",{src:C(h_),alt:"AI头像",class:"ai-avatar-img"},null,8,$on)]),ze[8]||(ze[8]=x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")],-1))]),x("div",zon,[(F(!0),K(Pt,null,an(O.value,(ut,yt)=>(F(),K("div",{key:ut.id||yt,class:"function-card",onClick:jt=>pe(ut.function_title)},[x("div",Hon,[x("div",Won,[x("img",{src:De(ut.function_title),alt:ut.function_title,class:"card-icon-img"},null,8,Von)]),x("h4",null,We(ut.function_title),1)]),x("div",qon,[x("p",null,We(ut.function_content),1)])],8,jon))),128)),O.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:ze[1]||(ze[1]=ut=>pe("安全培训课程"))},[x("div",Gon,[x("div",Kon,[x("img",{src:C(g_),alt:"安全培训课程",class:"card-icon-img"},null,8,Qon)]),ze[9]||(ze[9]=x("h4",null,"安全培训课程",-1))]),ze[10]||(ze[10]=x("div",{class:"card-description"},[x("p",null,"施工安全培训,操作规范学习")],-1))])):xe("",!0),O.value.length===0?(F(),K("div",{key:1,class:"function-card",onClick:ze[2]||(ze[2]=ut=>pe("安全评估测试"))},[x("div",Yon,[x("div",Zon,[x("img",{src:C(v_),alt:"安全评估",class:"card-icon-img"},null,8,Xon)]),ze[11]||(ze[11]=x("h4",null,"安全评估测试",-1))]),ze[12]||(ze[12]=x("div",{class:"card-description"},[x("p",null,"安全知识测评,能力水平评估")],-1))])):xe("",!0),O.value.length===0?(F(),K("div",{key:2,class:"function-card",onClick:ze[3]||(ze[3]=ut=>pe("安全法规查询"))},[x("div",Jon,[x("div",ein,[x("img",{src:C(m_),alt:"安全法规",class:"card-icon-img"},null,8,tin)]),ze[13]||(ze[13]=x("h4",null,"安全法规查询",-1))]),ze[14]||(ze[14]=x("div",{class:"card-description"},[x("p",null,"安全法律法规,标准规范查询")],-1))])):xe("",!0),O.value.length===0?(F(),K("div",{key:3,class:"function-card",onClick:ze[4]||(ze[4]=ut=>pe("应急处理程序"))},[x("div",nin,[x("div",rin,[x("img",{src:C(y_),alt:"应急程序",class:"card-icon-img"},null,8,oin)]),ze[15]||(ze[15]=x("h4",null,"应急处理程序",-1))]),ze[16]||(ze[16]=x("div",{class:"card-description"},[x("p",null,"事故应急预案,处理流程指导")],-1))])):xe("",!0)])])):l.value&&p.value==="step1"?(F(),K("div",iin,[(F(!0),K(Pt,null,an(u.value,(ut,yt)=>(F(),K("div",{key:yt,class:re(["message-item",ut.type])},[ut.type==="user"?(F(),K("div",ain,[x("div",sin,[ut.content?(F(),K("div",lin,We(ut.content),1)):xe("",!0)]),x("div",uin,[x("button",{class:"action-btn copy-btn",onClick:jt=>Fe(ut),title:"复制"},[x("img",{src:C(e3),alt:"复制",class:"action-icon"},null,8,din)],8,cin),x("button",{class:"action-btn edit-btn",onClick:jt=>Ne(ut),title:"编辑"},[x("img",{src:C(ZC),alt:"编辑",class:"action-icon"},null,8,pin)],8,fin)])])):ut.type==="ai"?(F(),K("div",hin,[x("div",gin,[x("img",{src:C(h_),alt:"AI",class:"ai-icon"},null,8,vin)]),x("div",min,[x("div",yin,[ut.displayContent.length===0?(F(),K("div",bin,ze[17]||(ze[17]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1),x("span",null,"AI正在思考中...",-1)]))):(F(),K("div",{key:1,innerHTML:ut.displayContent,class:"ai-content"},null,8,win))]),ln(x("div",Ain,null,512),[[Ar,!ut.isTyping&&ut.displayContent.length>0]]),ln(x("div",Cin,[x("div",xin,[x("button",{class:"action-btn copy-btn",onClick:jt=>Pe(ut),title:"复制"},[x("img",{src:C(e3),alt:"复制",class:"action-icon"},null,8,Ein)],8,Sin),x("button",{class:"action-btn regenerate-btn",onClick:jt=>Ut(yt),disabled:$.value,title:"重新生成"},[x("img",{src:C(yj),alt:"重新生成",class:"action-icon"},null,8,Tin)],8,kin),x("button",{class:"action-btn voice-btn",onClick:jt=>en(ut),title:Wt(ut.id)?"停止朗读":"语音朗读"},[x("img",{src:C(YD),alt:"语音朗读",class:"action-icon"},null,8,Din)],8,_in)]),x("div",Iin,[x("button",{class:re(["action-btn thumbs-up-btn",{active:ut.userFeedback==="like"}]),onClick:jt=>ct(ut),title:ut.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Wy),alt:"点赞",class:"action-icon"},null,8,Min)],10,Oin),x("button",{class:re(["action-btn thumbs-down-btn",{active:ut.userFeedback==="dislike"}]),onClick:jt=>_t(ut),title:ut.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Vy),alt:"踩",class:"action-icon"},null,8,Nin)],10,Pin)])],512),[[Ar,!ut.isTyping&&ut.displayContent.length>0]])])])):xe("",!0)],2))),128))])):p.value==="step2"?(F(),K("div",Rin,[s.value?(F(),K("div",Bin,ze[18]||(ze[18]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载培训大纲"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",{class:re(["outline-container",{disabled:U.value||j.value}])},[U.value?(F(),K("div",Lin,ze[19]||(ze[19]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),j.value?(F(),K("div",Fin,ze[20]||(ze[20]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",Uin,[x("div",$in,[x("button",{class:"action-btn exam-btn",onClick:Ot,disabled:j.value||U.value||!q.value},[x("img",{src:C(Ske),alt:"考试",class:"action-icon"},null,8,jin),ze[21]||(ze[21]=xn(" 生成考题 ",-1))],8,zin),x("button",{class:"action-btn",onClick:Ae,disabled:U.value||j.value},[x("img",{src:C(e3),alt:"复制",class:"action-icon"},null,8,Win),ze[22]||(ze[22]=xn(" 复制 ",-1))],8,Hin),x("button",{class:"action-btn",onClick:je,disabled:U.value||j.value},[x("img",{src:C(gq),alt:"下载",class:"action-icon"},null,8,qin),ze[23]||(ze[23]=xn(" 下载 ",-1))],8,Vin)])]),x("div",Gin,[N.value&&N.value.length>0?(F(),K("div",Kin,[(F(!0),K(Pt,null,an(N.value,(ut,yt)=>(F(),K(Pt,{key:yt},[ut&&ut.sections?(F(),K("div",Qin,[x("div",Yin,[x("h4",Zin,We(st(ut.title,yt)),1)]),x("div",Xin,[(F(!0),K(Pt,null,an(ut.sections,(jt,mn)=>(F(),K(Pt,{key:mn},[jt&&jt.title!=="内容要点"&&jt.title!=="概述"&&jt.title!=="内容详情"?(F(),K("div",Jin,[x("div",ean,[x("div",tan,We(jt.title),1)]),jt&&jt.subsections&&jt.subsections.length>0?(F(),K("div",nan,[(F(!0),K(Pt,null,an(jt.subsections,(Nn,xt)=>(F(),K(Pt,{key:xt},[Nn&&Nn.title!=="内容要点"&&Nn.title!=="概述"&&Nn.title!=="内容详情"&&!Nn.title.includes("总章节数")&&!Nn.title.includes("总小节数")&&!Nn.title.includes("预计PPT页数")&&!Nn.title.includes("预计讲解时长")?(F(),K("div",ran,[x("div",oan,[x("div",ian,We(Nn.title),1)]),Nn.subsubsections&&Nn.subsubsections.length>0?(F(),K("div",aan,[(F(!0),K(Pt,null,an(Nn.subsubsections,(sn,vt)=>(F(),K("div",{key:vt,class:"subsubsection-item"},[x("div",san,[x("div",lan,We(sn.title),1)])]))),128))])):xe("",!0)])):xe("",!0)],64))),128))])):xe("",!0)])):xe("",!0)],64))),128))])])):xe("",!0)],64))),128)),N.value.length<6?(F(),K("div",uan,[x("button",{class:"add-chapter-btn",onClick:ze[5]||(ze[5]=ut=>me("chapter",null))},[x("img",{src:C(V8),alt:"添加章节",class:"add-icon"},null,8,can),ze[24]||(ze[24]=x("span",null,"添加新章节",-1))])])):xe("",!0)])):q.value?(F(),K("div",dan,[x("div",{class:"ai-outline-scrollable",innerHTML:q.value},null,8,fan)])):(F(),K("div",pan,ze[25]||(ze[25]=[ki('<div class="outline-chapter" data-v-ae8620b6><h4 data-v-ae8620b6>第一章 安全生产基本原则</h4><div class="outline-section" data-v-ae8620b6><div class="section-item" data-v-ae8620b6>1.1 安全生产的重要性</div><div class="section-item" data-v-ae8620b6>1.2 安全生产相关法规</div><div class="section-subsection" data-v-ae8620b6><div class="subsection-item" data-v-ae8620b6>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-ae8620b6>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-ae8620b6><h4 data-v-ae8620b6>第二章 施工现场安全管理</h4><div class="outline-section" data-v-ae8620b6><div class="section-item" data-v-ae8620b6>2.1 安全责任制度</div><div class="section-item" data-v-ae8620b6>2.2 安全教育培训</div><div class="section-item" data-v-ae8620b6>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-ae8620b6><h4 data-v-ae8620b6>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-ae8620b6><div class="section-item" data-v-ae8620b6>3.1 高空作业安全</div><div class="section-subsection" data-v-ae8620b6><div class="subsection-item" data-v-ae8620b6>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-ae8620b6>3.2 用电安全</div><div class="section-item" data-v-ae8620b6>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-ae8620b6><h4 data-v-ae8620b6>第四章 安全事故案例分析</h4><div class="outline-section" data-v-ae8620b6><div class="section-item" data-v-ae8620b6>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-ae8620b6><h4 data-v-ae8620b6>第五章 总结与展望</h4></div>',5)])))]),x("div",han,[x("button",{class:"action-btn regenerate-btn",onClick:at,disabled:U.value||j.value},[x("img",{src:C(yj),alt:"重新生成",class:re(["action-icon",{rotating:U.value}])},null,10,van),xn(" "+We(U.value?"生成中...":"生成新大纲"),1)],8,gan),x("button",{class:"action-btn",onClick:gt,disabled:U.value||j.value},[ze[26]||(ze[26]=xn(" 选择PPT模版 ",-1)),x("img",{src:C(bj),alt:"箭头",class:"action-icon"},null,8,yan)],8,man)]),x("div",ban,[x("button",{class:re(["action-btn like-btn",{active:nn()==="like"}]),onClick:He,disabled:U.value||j.value},[x("img",{src:C(Wy),alt:"满意",class:"action-icon"},null,8,Aan)],10,wan),x("button",{class:re(["action-btn dislike-btn",{active:nn()==="dislike"}]),onClick:ke,disabled:U.value||j.value},[x("img",{src:C(Vy),alt:"不满意",class:"action-icon"},null,8,xan)],10,Can)])],2)])):xe("",!0),p.value==="step1"?(F(),K("div",San,[x("div",Ean,[x("div",kan,[ln(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":ze[6]||(ze[6]=ut=>d.value=ut),onKeyup:Lr(oe,["enter"]),disabled:c.value||$.value,maxlength:"2000"},null,40,Tan),[[jr,d.value]]),x("button",{class:re(["voice-btn",{recording:C(b)}]),onClick:pt,disabled:c.value||$.value},[x("div",Dan,[x("img",{src:C(Zf),alt:"语音",class:"action-icon"},null,8,Ian),C(b)?(F(),K("div",Oan)):xe("",!0)])],10,_an),ze[27]||(ze[27]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:oe,disabled:c.value||$.value||!d.value.trim()},[x("img",{src:d.value.trim()&&!c.value?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,Pan)],8,Man)])])])):xe("",!0)]),Ve(d2,{visible:M.value,message:D.value,duration:P.value,onClose:ze[7]||(ze[7]=ut=>M.value=!1)},null,8,["visible","message","duration"]),Ve(c0,{visible:v.value,title:W.value,message:L.value,onConfirm:rn,onCancel:lt,onClose:lt},null,8,["visible","title","message"])]))}},Ran=Qo(Nan,[["__scopeId","data-v-ae8620b6"]]),Ban={class:"mobile-exam-workshop"},Lan={class:"mobile-content"},Fan={key:0,class:"exam-workshop-main"},Uan={class:"config-section"},$an={class:"type-cards"},zan={class:"type-cards-row"},jan=["onClick"],Han=["src","alt"],Wan={class:"config-section"},Van={class:"generation-methods"},qan=["src"],Gan={class:"config-section"},Kan={class:"exam-config-container"},Qan={class:"config-main"},Yan={class:"config-form"},Zan={class:"form-group"},Xan={class:"input-wrapper"},Jan=["disabled"],esn={class:"form-group"},tsn={class:"score-input"},nsn=["disabled"],rsn={class:"question-types"},osn={class:"type-header"},isn={class:"type-name"},asn={class:"progress-bar"},ssn={class:"score-config"},lsn={class:"config-item"},usn=["onUpdate:modelValue","onInput","disabled"],csn={class:"config-item"},dsn=["onUpdate:modelValue","onInput","disabled"],fsn={class:"preview-panel"},psn={class:"preview-header"},hsn=["src"],gsn={class:"preview-content"},vsn={class:"preview-title"},msn={class:"question-breakdown"},ysn={class:"breakdown-row"},bsn={class:"breakdown-left"},wsn={class:"breakdown-right"},Asn={class:"calculated-score-row"},Csn={class:"calculated-value"},xsn={class:"total-score-row"},Ssn={class:"total-value"},Esn={class:"bottom-actions"},ksn=["disabled"],Tsn=["disabled"],_sn=["src"],Dsn={key:1,class:"generating-text"},Isn={key:1,class:"exam-detail-main"},Osn={class:"detail-header"},Msn=["disabled"],Psn=["disabled"],Nsn=["src"],Rsn={class:"dropdown-menu"},Bsn=["disabled"],Lsn=["disabled"],Fsn={class:"exam-info"},Usn={class:"exam-title"},$sn={class:"exam-stats"},zsn={class:"total-score"},jsn={class:"question-count"},Hsn={class:"generation-time"},Wsn={class:"question-sections"},Vsn={key:0,class:"question-section"},qsn={class:"section-title"},Gsn={class:"section-score"},Ksn={class:"section-controls"},Qsn={class:"question-count-text"},Ysn=["src"],Zsn={key:0,class:"section-content"},Xsn={class:"question-header"},Jsn={class:"question-number"},eln={class:"question-text"},tln=["onClick","disabled"],nln=["src"],rln={class:"options"},oln={class:"radio-wrapper"},iln={key:0,class:"radio-dot"},aln={class:"option-key"},sln={class:"option-content"},lln={class:"option-text"},uln={key:1,class:"question-section"},cln={class:"section-title"},dln={class:"section-score"},fln={class:"section-controls"},pln={class:"question-count-text"},hln=["src"],gln={key:0,class:"section-content"},vln={class:"question-header"},mln={class:"question-number"},yln={class:"question-text"},bln=["onClick","disabled"],wln=["src"],Aln={class:"answer-section"},Cln={class:"answer-value"},xln={key:2,class:"question-section"},Sln={class:"section-title"},Eln={class:"section-score"},kln={class:"section-controls"},Tln={class:"question-count-text"},_ln=["src"],Dln={key:0,class:"section-content"},Iln={class:"question-header"},Oln={class:"question-number"},Mln={class:"question-text"},Pln=["onClick","disabled"],Nln=["src"],Rln={class:"options"},Bln={class:"radio-wrapper"},Lln={key:0,class:"radio-dot"},Fln={class:"option-key"},Uln={class:"option-content"},$ln={class:"option-text"},zln={class:"answer-section"},jln={class:"answer-value"},Hln={key:3,class:"question-section"},Wln={class:"section-title"},Vln={class:"section-score"},qln={class:"section-controls"},Gln={class:"question-count-text"},Kln=["src"],Qln={key:0,class:"section-content"},Yln={class:"question-header"},Zln={class:"question-number"},Xln={class:"question-text"},Jln=["onClick","disabled"],eun=["src"],tun={key:0,class:"answer-outline"},nun={class:"outline-section"},run={class:"outline-section"},oun={__name:"m-ExamWorkshop",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{h.value||(o.value=!0)},o=Q(!1),i=Q(!1),a=Q(""),s=(Ae,je=2e3)=>{a.value=Ae,i.value=!0,je>0&&setTimeout(()=>{i.value=!1},je)},l=()=>{i.value=!1},u=Q([]),d=Q(0),c=Q(!1);jn(async()=>{B={questionTypes:JSON.parse(JSON.stringify(p.value)),totalScore:A.value,selectedProjectType:b.value,examName:w.value},console.log("初始配置已保存:",B),document.addEventListener("click",Re),console.log("🚀 移动端考试工坊页面初始化完成")}),hl(()=>{document.removeEventListener("click",Re)});const f={bridge:{name:"桥梁",icon:ake},tunnel:{name:"隧道",icon:ske},equipment:{name:"特种设备",icon:lke},"gas-station":{name:"加油站",icon:uke},highway:{name:"高速运营公路",icon:vj},comprehensive:{name:"综合",icon:cke}},p=Q([{name:"单选题",scorePerQuestion:5,questionCount:5,romanNumeral:"一"},{name:"判断题",scorePerQuestion:3,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:8,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}]),v=Q(!1),h=Q(!1);Q(!1);const g=Q(0),y=Q(!1),m=Q("ai"),b=Q("bridge"),w=Q("桥梁工程施工技术考核"),A=Q(100),S=Q(""),k=Q(null),M=Q(""),D=Q(null),P=Q({single:!0,judge:!0,multiple:!0,short:!0}),O=Q({}),_=Q({title:"桥梁工程施工技术考核",totalScore:100,totalQuestions:37,singleChoice:{scorePerQuestion:2,totalScore:30,count:15,questions:[]},judge:{scorePerQuestion:2,totalScore:20,count:10,questions:[]},multiple:{scorePerQuestion:3,totalScore:30,count:10,questions:[]},short:{scorePerQuestion:10,totalScore:20,count:2,questions:[]}});let B=null;const N=J(()=>p.value.reduce((Ae,je)=>Ae+je.scorePerQuestion*je.questionCount,0)),q=Ae=>{if(!Ae)return"新对话";const je=Ae.replace(/<[^>]*>/g,"").trim();return je.length>30?je.substring(0,30)+"...":je},U=()=>{console.log("新建考试工坊任务"),o.value=!1,m.value="ai",b.value="bridge",w.value="桥梁工程施工技术考核",A.value=100,v.value=!1,k.value=null,M.value="",g.value=0,B&&(p.value=JSON.parse(JSON.stringify(B.questionTypes)),A.value=B.totalScore,b.value=B.selectedProjectType,w.value=B.examName),u.value.forEach(Ae=>{Ae.isActive=!1})},j=async Ae=>{if(!Ae.isActive)if(console.log("点击移动端考试工坊历史记录:",Ae),u.value.forEach(je=>{je.isActive=je.id===Ae.id}),o.value=!1,g.value=Ae.id,S.value=Ae.time,Ae.rawData&&Ae.rawData.content)try{const je=JSON.parse(Ae.rawData.content);_.value=je,v.value=!0}catch(je){console.error("解析历史试卷数据失败:",je),v.value=!0}else v.value=!0},H=async(Ae,je)=>{try{console.log("开始删除移动端历史记录:",Ae);const at=await Bn.deleteHistoryRecord({ai_conversation_id:Ae.id});at.statusCode===200?(u.value.splice(je,1),d.value=Math.max(0,d.value-1),Ae.isActive&&(console.log("删除激活的历史记录,执行新建任务"),U()),console.log("✅ 移动端历史记录删除成功"),s("删除成功")):console.error("❌ 删除移动端历史记录失败:",at)}catch(at){console.error("❌ 删除移动端历史记录失败:",at)}},G=Ae=>{if(!Ae)return null;if(typeof Ae=="number"){const je=Ae<1e12?Ae*1e3:Ae;return new Date(je)}if(typeof Ae=="string"){let je=new Date(Ae);if(!isNaN(je))return je;const at=Ae.replace(/-/g,"/").replace("T"," ");if(je=new Date(at),!isNaN(je))return je}return new Date(Ae)},Z=Ae=>{const je=G(Ae);if(!je||isNaN(je))return"未知时间";const at=new Date,gt=je.toDateString()===at.toDateString(),nn=new Date(at.getFullYear(),at.getMonth(),at.getDate()-1),Tn=je.toDateString()===nn.toDateString();if(gt)return je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Tn)return"昨天 "+je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const He=je.getMonth()+1,ke=je.getDate(),me=je.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${He}月${ke}日 ${me}`},$=async()=>{try{console.log("📋 开始获取移动端考试工坊历史记录列表..."),c.value=!0;const Ae=performance.now(),je=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:3}),at=performance.now();console.log("📋 移动端考试工坊历史记录API调用耗时: "+(at-Ae).toFixed(2)+"ms"),console.log("📋 移动端历史记录列表响应:",je),je.statusCode===200?(d.value=je.total||0,u.value=je.data.map(gt=>({id:gt.id,title:q(gt.content),time:Z(gt.updated_at),businessType:gt.business_type,isActive:!1,rawData:gt})),g.value&&u.value.forEach(gt=>{gt.isActive=gt.id===g.value}),console.log("✅ 移动端考试工坊历史记录列表已设置: "+u.value.length+"条记录,总数: "+d.value)):console.error("❌ 获取移动端历史记录列表失败:",je.statusCode)}catch(Ae){console.error("❌ 获取移动端历史记录列表失败:",Ae)}finally{c.value=!1}},L=Ae=>{m.value=Ae,console.log("选择功能:",Ae)},W=Ae=>{b.value=Ae,console.log("选择工程类型:",f[Ae].name);const je=f[Ae].name;w.value=je+"工程施工技术考核",_.value&&(_.value.title=w.value)},ie=()=>{w.value.length>32&&(w.value=w.value.slice(0,32))},ee=()=>{A.value>1e3&&(A.value=1e3,console.warn("试卷总分不能超过1000分")),A.value<1&&(A.value=1)},te=Ae=>{Ae.scorePerQuestion>99&&(Ae.scorePerQuestion=99,console.warn(`${Ae.name}每题分数不能超过99分`)),Ae.scorePerQuestion<1&&(Ae.scorePerQuestion=1)},X=Ae=>{Ae.questionCount>99&&(Ae.questionCount=99,console.warn(`${Ae.name}题目数量不能超过99题`)),Ae.questionCount<1&&(Ae.questionCount=1)},ue=()=>{const Ae=f[b.value].name;w.value=Ae+"工程施工技术考核",A.value=100,p.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],console.log("清除设置")},ve=async()=>{if(!w.value.trim()){console.warn("请输入试卷名称");return}if(w.value.trim().length===0){console.warn("试卷名称不能为空");return}if(A.value>1e3){console.warn("试卷总分不能超过1000分");return}for(const je of p.value){if(je.scorePerQuestion>99){console.warn(`${je.name}每题分数不能超过99分`);return}if(je.questionCount>99){console.warn(`${je.name}题目数量不能超过99题`);return}}if(p.value.reduce((je,at)=>je+at.scorePerQuestion*at.questionCount,0)!==A.value){s("总分不匹配!",3e3);return}console.log("开始生成试卷:",{function:m.value,projectType:f[b.value].name,examName:w.value,totalScore:A.value,questionTypes:p.value,pptContent:M.value});try{h.value=!0;let je="";m.value==="ai"?je=Me():m.value==="ppt"&&(je=we()),console.log("发送给AI的考试生成提示词:",je);const at=await Bn.sendDeepseekMessage({business_type:3,message:je,exam_name:w.value,ai_conversation_id:g.value});if(at.statusCode===200){const gt=at.data.reply,nn=at.data.ai_conversation_id;console.log("AI生成的考试试卷:",gt),console.log("AI对话ID:",nn),g.value=nn;const Tn=he(gt);_.value=Tn,_.value.title=w.value,_.value.totalScore=A.value,S.value=new Date().toLocaleString("zh-CN"),console.log("✅ 试卷已通过AI接口保存到数据库"),v.value=!0,console.log("✅ 移动端试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(je){console.error("生成试卷失败:",je)}finally{h.value=!1}},Me=()=>{const Ae=f[b.value].name,je=p.value.map(gt=>`${gt.name}:${gt.questionCount}题,每题${gt.scorePerQuestion}分,共${gt.scorePerQuestion*gt.questionCount}分`).join(`
- `);return`请生成一份${Ae}工程施工技术考核试卷:
- 试卷要求:
- - 试卷名称:${w.value}
- - 试卷总分:${A.value}分
- - 题型配置:
- ${je}
- 内容要求:
- 1. ${Ae}工程施工技术的核心知识点
- 2. 施工工艺流程和质量控制要点
- 3. 安全操作规程和事故预防措施
- 4. 相关法规标准和验收规范
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- 请在questions数组中生成具体、完整的题目内容!
- - 单选题需要:text题目内容、options选项数组[{"key":"A","text":"选项1"},{"key":"B","text":"选项2"},{"key":"C","text":"选项3"},{"key":"D","text":"选项4"}]、selectedAnswer正确答案
- - 判断题需要:text题目内容、selectedAnswer正确答案(正确/错误)
- - 多选题需要:text题目内容、options选项数组[{"key":"A","text":"选项1"},{"key":"B","text":"选项2"},{"key":"C","text":"选项3"},{"key":"D","text":"选项4"}]、selectedAnswers正确答案数组
- - 简答题需要:text题目内容、outline {keyFactors:关键要点, measures:具体措施}
- {
- "title": "${w.value}",
- "totalScore": ${A.value},
- "totalQuestions": ${p.value.reduce((gt,nn)=>gt+nn.questionCount,0)},
- "singleChoice": {
- "scorePerQuestion": ${p.value[0].scorePerQuestion},
- "totalScore": ${p.value[0].scorePerQuestion*p.value[0].questionCount},
- "count": ${p.value[0].questionCount},
- "questions": []
- },
- "judge": {
- "scorePerQuestion": ${p.value[1].scorePerQuestion},
- "totalScore": ${p.value[1].scorePerQuestion*p.value[1].questionCount},
- "count": ${p.value[1].questionCount},
- "questions": []
- },
- "multiple": {
- "scorePerQuestion": ${p.value[2].scorePerQuestion},
- "totalScore": ${p.value[2].scorePerQuestion*p.value[2].questionCount},
- "count": ${p.value[2].questionCount},
- "questions": []
- },
- "short": {
- "scorePerQuestion": ${p.value[3].scorePerQuestion},
- "totalScore": ${p.value[3].scorePerQuestion*p.value[3].questionCount},
- "count": ${p.value[3].questionCount},
- "questions": []
- }
- }`},we=()=>{const Ae=p.value.map(at=>`${at.name}:${at.questionCount}题,每题${at.scorePerQuestion}分,共${at.scorePerQuestion*at.questionCount}分`).join(`
- `);return`请基于以下PPT培训内容生成考试试卷:
- 培训主题:${w.value}
- PPT内容:${M.value}
- 请生成一份包含以下题型的考试试卷:
- ${Ae}
- 试卷总分:${A.value}分
- 要求:
- 1. 重点考查PPT中的核心知识点
- 2. 涵盖主要概念、工艺流程、操作规程等关键内容
- 3. 题目难度适中,具有实际应用价值
- 4. 确保答案准确性和专业性
- 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
- 请在questions数组中生成具体、完整的题目内容!
- - 单选题需要:text题目内容、options选项数组[{"key":"A","text":"选项1"},{"key":"B","text":"选项2"},{"key":"C","text":"选项3"},{"key":"D","text":"选项4"}]、selectedAnswer正确答案
- - 判断题需要:text题目内容、selectedAnswer正确答案(正确/错误)
- - 多选题需要:text题目内容、options选项数组[{"key":"A","text":"选项1"},{"key":"B","text":"选项2"},{"key":"C","text":"选项3"},{"key":"D","text":"选项4"}]、selectedAnswers正确答案数组
- - 简答题需要:text题目内容、outline {keyFactors:关键要点, measures:具体措施}
- {
- "title": "${w.value} - PPT培训考试",
- "totalScore": ${A.value},
- "totalQuestions": ${p.value.reduce((at,gt)=>at+gt.questionCount,0)},
- "singleChoice": {
- "scorePerQuestion": ${p.value[0].scorePerQuestion},
- "totalScore": ${p.value[0].scorePerQuestion*p.value[0].questionCount},
- "count": ${p.value[0].questionCount},
- "questions": []
- },
- "judge": {
- "scorePerQuestion": ${p.value[1].scorePerQuestion},
- "totalScore": ${p.value[1].scorePerQuestion*p.value[1].questionCount},
- "count": ${p.value[1].questionCount},
- "questions": []
- },
- "multiple": {
- "scorePerQuestion": ${p.value[2].scorePerQuestion},
- "totalScore": ${p.value[2].scorePerQuestion*p.value[2].questionCount},
- "count": ${p.value[2].questionCount},
- "questions": []
- },
- "short": {
- "scorePerQuestion": ${p.value[3].scorePerQuestion},
- "totalScore": ${p.value[3].scorePerQuestion*p.value[3].questionCount},
- "count": ${p.value[3].questionCount},
- "questions": []
- }
- }`},he=Ae=>{try{const je=Ae.match(/\{[\s\S]*\}/);if(je){const at=JSON.parse(je[0]);return Te(at),at}else throw new Error("未找到有效的JSON数据")}catch(je){return console.error("解析AI回复失败:",je),Y()}},Te=Ae=>{Ae.singleChoice&&Ae.singleChoice.questions&&Ae.singleChoice.questions.forEach(je=>{je.selectedAnswer||(je.selectedAnswer=je.options&&je.options.length>0?je.options[0].key:"A")}),Ae.judge&&Ae.judge.questions&&Ae.judge.questions.forEach(je=>{je.selectedAnswer||(je.selectedAnswer=Math.random()>.5?"正确":"错误")}),Ae.multiple&&Ae.multiple.questions&&Ae.multiple.questions.forEach(je=>{(!je.selectedAnswers||!Array.isArray(je.selectedAnswers))&&(je.selectedAnswers=je.options&&je.options.length>1?[je.options[0].key,je.options[1].key]:[])}),Ae.short&&Ae.short.questions&&Ae.short.questions.forEach(je=>{je.outline||(je.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"})})},Y=()=>({title:w.value,totalScore:A.value,totalQuestions:p.value.reduce((Ae,je)=>Ae+je.questionCount,0),singleChoice:{scorePerQuestion:p.value[0].scorePerQuestion,totalScore:p.value[0].scorePerQuestion*p.value[0].questionCount,count:p.value[0].questionCount,questions:[]},judge:{scorePerQuestion:p.value[1].scorePerQuestion,totalScore:p.value[1].scorePerQuestion*p.value[1].questionCount,count:p.value[1].questionCount,questions:[]},multiple:{scorePerQuestion:p.value[2].scorePerQuestion,totalScore:p.value[2].scorePerQuestion*p.value[2].questionCount,count:p.value[2].questionCount,questions:[]},short:{scorePerQuestion:p.value[3].scorePerQuestion,totalScore:p.value[3].scorePerQuestion*p.value[3].questionCount,count:p.value[3].questionCount,questions:[]}}),be=()=>{v.value=!1},De=Ae=>{P.value[Ae]=!P.value[Ae]},pe=async(Ae,je)=>{try{console.log(`刷新${Ae}类型第${je+1}题`);const at=`${Ae}_${je}`;O.value[at]=!0;const gt=en(Ae,je),nn=await Bn.reProduceSingleQuestion({message:gt});if(nn.statusCode===200){const Tn=nn.data.reply;console.log("AI重新生成的题目:",Tn);const He=_t(Tn,Ae);if(console.log("解析后的新题目:",He),He)st(Ae,je,He),console.log("准备保存到后端,对话ID:",g.value),await Ot(Ae,je,He),s("题目重新生成成功!"),await $(),g.value>0&&(u.value.forEach(ke=>{ke.isActive=ke.id===g.value}),console.log("设置最新历史记录为激活状态,conversationId:",g.value));else throw new Error("解析新题目失败")}else throw new Error("AI接口调用失败")}catch(at){console.error("刷新题目失败:",at),s("重新生成题目失败,请重试")}finally{setTimeout(()=>{const at=`${Ae}_${je}`;O.value[at]=!1},1e3)}},oe=()=>{h.value||(y.value=!y.value)},ce=()=>{y.value=!1},Re=Ae=>{Ae.target.closest(".download-dropdown")||(y.value=!1)},Ee=async()=>{try{ce(),h.value=!0,console.log("开始导出Word格式试卷(有答案)..."),await Fe(!0)}catch(Ae){console.error("导出考试文件失败:",Ae),s("导出失败,请重试")}finally{h.value=!1}},Le=async()=>{try{ce(),h.value=!0,console.log("开始导出Word格式试卷(无答案)..."),await Fe(!1)}catch(Ae){console.error("导出考试文件失败:",Ae),s("导出失败,请重试")}finally{h.value=!1}},Fe=async(Ae=!0)=>{try{const je=Pe(_.value,Ae),at=new Blob([je],{type:"application/msword"}),gt=URL.createObjectURL(at),nn=document.createElement("a"),Tn=Ae?`${_.value.title}_有答案_${S.value.replace(/[:\s]/g,"_")}.doc`:`${_.value.title}_无答案_${S.value.replace(/[:\s]/g,"_")}.doc`;nn.setAttribute("href",gt),nn.setAttribute("download",Tn),nn.style.visibility="hidden",document.body.appendChild(nn),nn.click(),document.body.removeChild(nn),s(`导出成功${Ae?"(含答案)":"(不含答案)"}`)}catch(je){console.error("模拟Word导出失败:",je),s("Word导出失败,请稍后重试")}},Pe=(Ae,je=!0)=>{const at=_.value;let gt=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${at.title||"试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- margin-bottom: 14px;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- flex-shrink: 0;
- }
- .question-text {
- flex: 1;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-left: 3px solid #3e7bfa;
- font-weight: bold;
- color: #0066cc;
- }
- .outline-section {
- margin: 10px 0;
- padding: 8px;
- background: #f0f8ff;
- border-radius: 4px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${at.title||"考试试卷"}</div>
- <div class="exam-info">
- 总分:${at.totalScore||0}分 | 总题数:${at.totalQuestions||0}题 | 生成时间:${S.value}
- </div>
- </div>`;return at.singleChoice&&at.singleChoice.questions.length>0&&(gt+=`
- <div class="section">
- <div class="section-title">一、单选题(${at.singleChoice.count}题,每题${at.singleChoice.scorePerQuestion}分,共${at.singleChoice.totalScore}分)</div>`,at.singleChoice.questions.forEach((nn,Tn)=>{gt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${nn.text}</span>
- </div>
- <div class="options">`,nn.options.forEach(He=>{gt+=`
- <div class="option">${He.key}. ${He.text}</div>`}),gt+=`
- </div>
- ${je?`<div class="answer">正确答案:${nn.selectedAnswer}</div>`:""}
- </div>`}),gt+=`
- </div>`),at.judge&&at.judge.questions.length>0&&(gt+=`
- <div class="section">
- <div class="section-title">二、判断题(${at.judge.count}题,每题${at.judge.scorePerQuestion}分,共${at.judge.totalScore}分)</div>`,at.judge.questions.forEach((nn,Tn)=>{gt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${nn.text}</span>
- </div>
- ${je?`<div class="answer">正确答案:${nn.selectedAnswer}</div>`:""}
- </div>`}),gt+=`
- </div>`),at.multiple&&at.multiple.questions.length>0&&(gt+=`
- <div class="section">
- <div class="section-title">三、多选题(${at.multiple.count}题,每题${at.multiple.scorePerQuestion}分,共${at.multiple.totalScore}分)</div>`,at.multiple.questions.forEach((nn,Tn)=>{gt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${nn.text}</span>
- </div>
- <div class="options">`,nn.options.forEach(He=>{gt+=`
- <div class="option">${He.key}. ${He.text}</div>`}),gt+=`
- </div>
- ${je?`<div class="answer">正确答案:${(nn.selectedAnswers||[]).join(", ")}</div>`:""}
- </div>`}),gt+=`
- </div>`),at.short&&at.short.questions.length>0&&(gt+=`
- <div class="section">
- <div class="section-title">四、简答题(${at.short.count}题,每题${at.short.scorePerQuestion}分,共${at.short.totalScore}分)</div>`,at.short.questions.forEach((nn,Tn)=>{gt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${nn.text}</span>
- </div>`,nn.outline&&je&&(gt+=`
- <div class="outline-section">
- <strong>关键要点:</strong>${Bt(nn.outline.keyFactors)}
- </div>
- <div class="outline-section">
- <strong>具体措施:</strong>${Bt(nn.outline.measures)}
- </div>`),gt+=`
- </div>`}),gt+=`
- </div>`),gt+=`
- </body>
- </html>`,gt},Ne=async Ae=>{const je=Ae.target.files[0];if(!je)return;const at=20*1024*1024;if(je.size>at){console.error("文件大小不能超过20MB");return}if(!["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"].includes(je.type)){console.error("请选择PPT文件(.ppt/.pptx)");return}try{k.value={name:je.name,size:je.size,icon:"📋"};const nn=await pt(je);M.value=nn;const Tn=je.name.replace(/\.[^/.]+$/,"");w.value=Tn+"培训考核",console.log("✅ PPT文件上传成功:",je.name)}catch(nn){console.error("PPT文件处理失败:",nn),k.value=null}},pt=async Ae=>new Promise((je,at)=>{const gt=new FileReader;gt.onload=async nn=>{try{console.log("开始解析PPT文件...");const Tn=nn.target.result,He=await Rt(Tn);je(He)}catch(Tn){console.error("PPT解析失败:",Tn),at(Tn)}},gt.onerror=()=>{at(new Error("文件读取失败"))},gt.readAsArrayBuffer(Ae)}),Rt=async Ae=>"提取的文本内容:PPT培训课件主要包含以下内容:1. 安全培训概述- 培训目标和意义- 培训对象和要求- 培训计划和安排2. 基础知识- 安全规章制度- 危险源识别- 应急处理方法3. 操作技能- 标准化操作流程- 安全操作规范- 事故预防措施4. 考核要求- 理论知识考核- 实操技能考核- 综合评估标准此PPT内容涵盖了安全培训的各个方面,适合制作综合性的考试题目。",Bt=Ae=>Ae?Ae.toString().replace(/[\[\]]/g,"").replace(/[""]/g,"").replace(/['']/g,"").trim():"",en=(Ae,je)=>{const at=f[b.value].name,gt=Wt(Ae),nn=Ut(Ae),Tn=ct(Ae,je);let He=`请基于以下${at}工程的${gt}题目,重新生成一道相似主题的题目,要求如下:
- 当前题目参考:
- ${JSON.stringify(Tn,null,2)}
- 题目类型:${gt}
- 每题分值:${nn}分
- 题目序号:第${je+1}题
- 请严格按照以下JSON格式返回,不要包含任何其他文字:
- `;return Ae==="single"?He+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A"},
- {"key": "B", "text": "选项B"},
- {"key": "C", "text": "选项C"},
- {"key": "D", "text": "选项D"}
- ],
- "selectedAnswer": "A"
- }`:Ae==="judge"?He+=`{
- "text": "题目内容",
- "selectedAnswer": "正确"
- }`:Ae==="multiple"?He+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A"},
- {"key": "B", "text": "选项B"},
- {"key": "C", "text": "选项C"},
- {"key": "D", "text": "选项D"}
- ],
- "selectedAnswers": ["A", "B"]
- }`:Ae==="short"&&(He+=`{
- "text": "题目内容",
- "outline": {
- "keyFactors": "关键要点内容",
- "measures": "具体措施内容"
- }
- }`),He},Wt=Ae=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[Ae]||Ae,Ut=Ae=>_.value[Ae]?_.value[Ae].scorePerQuestion:5,ct=(Ae,je)=>_.value[Ae]&&_.value[Ae].questions?_.value[Ae].questions[je]:null,_t=(Ae,je)=>{try{console.log("AI回复内容:",Ae),console.log("题目类型:",je);const at=Ae.match(/\{[\s\S]*\}/);if(at){const gt=JSON.parse(at[0]);return console.log("解析后的题目数据:",gt),je==="short"&>.outline&>.outline.keyFactors&&(console.log("简答题keyFactors原始值:",gt.outline.keyFactors),Array.isArray(gt.outline.keyFactors)&&(gt.outline.keyFactors=gt.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",gt.outline.keyFactors))),gt}else return console.error("未找到有效的JSON数据"),null}catch(at){return console.error("解析AI回复失败:",at),null}},st=(Ae,je,at)=>{let gt;Ae==="single"?(gt={...at},(!gt.selectedAnswer||gt.selectedAnswer==="")&&(gt.selectedAnswer=gt.options&>.options.length>0?gt.options[0].key:"A"),_.value.singleChoice.questions[je]=gt):Ae==="judge"?(gt={...at},(!gt.selectedAnswer||gt.selectedAnswer==="")&&(gt.selectedAnswer=Math.random()>.5?"正确":"错误"),_.value.judge.questions[je]=gt):Ae==="multiple"?(gt={...at},(!gt.selectedAnswers||!Array.isArray(gt.selectedAnswers))&&(gt.selectedAnswers=gt.options&>.options.length>1?[gt.options[0].key,gt.options[1].key]:[]),_.value.multiple.questions[je]=gt):Ae==="short"&&(gt={...at},gt.outline||(gt.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"}),_.value.short.questions[je]=gt),console.log(`更新${Ae}第${je+1}题:`,gt)},Ot=async(Ae,je,at)=>{console.log("对话id",g.value);try{if(!g.value){console.warn("没有找到对话ID,跳过保存");return}const gt=JSON.stringify(_.value);console.log("保存到 /re_modify_question 的内容:",gt);const nn=await Bn.reModifyQuestion({ai_conversation_id:g.value,content:gt});nn.statusCode===200?console.log("修改已保存到后端"):console.error("保存到后端失败:",nn)}catch(gt){console.error("保存到后端失败:",gt)}};return jn(async()=>{try{console.log("🚀 移动端考试工坊页面初始化完成")}catch(Ae){console.error("❌ 移动端考试工坊页面初始化失败:",Ae)}}),St(o,async Ae=>{Ae&&u.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await $())}),(Ae,je)=>(F(),K("div",Ban,[Ve(f2,{title:"考试工坊",onBack:n,onMenu:r}),x("div",Lan,[Ve(j5,{visible:!h.value&&o.value,title:"历史记录",historyData:u.value,loading:c.value,onClose:je[0]||(je[0]=at=>o.value=!1),onCreateNewTask:U,onHandleHistoryItem:j,onDeleteHistoryItem:H},null,8,["visible","historyData","loading"]),Ve(d2,{visible:i.value,message:a.value,onClose:l},null,8,["visible","message"]),v.value?xe("",!0):(F(),K("div",Fan,[x("div",Uan,[je[9]||(je[9]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",$an,[x("div",zan,[(F(),K(Pt,null,an(f,(at,gt)=>x("div",{key:gt,class:re(["type-card",{active:b.value===gt}]),onClick:nn=>h.value||k.value?null:W(gt),style:Xt({cursor:h.value||k.value?"not-allowed":"pointer",opacity:h.value||k.value?"0.5":"1"})},[x("img",{src:at.icon,alt:at.name,class:"type-icon"},null,8,Han),x("span",null,We(at.name),1)],14,jan)),64))])])]),x("div",Wan,[je[11]||(je[11]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",Van,[x("div",{class:re(["method-card",{active:m.value==="ai"}]),onClick:je[1]||(je[1]=at=>h.value||k.value?null:L("ai")),style:Xt({cursor:h.value||k.value?"not-allowed":"pointer",opacity:h.value||k.value?"0.5":"1"})},[x("img",{src:C(vj),alt:"智能生成试卷",class:"method-icon"},null,8,qan),je[10]||(je[10]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6)])]),x("div",Gan,[je[24]||(je[24]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",Kan,[x("div",Qan,[x("div",Yan,[x("div",Zan,[je[12]||(je[12]=x("label",null,"试卷名称",-1)),x("div",Xan,[ln(x("input",{"onUpdate:modelValue":je[2]||(je[2]=at=>w.value=at),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:ie,disabled:h.value||k.value},null,40,Jan),[[jr,w.value]]),x("span",{class:re(["char-count",{warning:w.value.length>=18}])},We(w.value.length)+"/32",3)])]),x("div",esn,[je[14]||(je[14]=x("label",null,"试卷总分",-1)),x("div",tsn,[ln(x("input",{"onUpdate:modelValue":je[3]||(je[3]=at=>A.value=at),type:"number",class:"config-input",min:"1",max:"1000",onInput:ee,disabled:h.value||k.value},null,40,nsn),[[jr,A.value]]),je[13]||(je[13]=x("span",{class:"unit"},"分",-1))])])]),je[19]||(je[19]=x("div",{class:"question-types-title"},"题型选择与分数分配",-1)),x("div",rsn,[(F(!0),K(Pt,null,an(p.value,(at,gt)=>(F(),K("div",{class:"question-type",key:gt},[x("div",osn,[x("span",isn,We(at.name),1),x("div",asn,[x("div",{class:"progress-fill",style:Xt({width:at.scorePerQuestion*at.questionCount/A.value*100+"%"})},null,4)])]),x("div",ssn,[x("div",lsn,[je[15]||(je[15]=x("span",null,"每题",-1)),ln(x("input",{"onUpdate:modelValue":nn=>at.scorePerQuestion=nn,type:"number",class:"score-input-field",min:"1",max:"99",onInput:nn=>te(at),disabled:h.value||k.value},null,40,usn),[[jr,at.scorePerQuestion]]),je[16]||(je[16]=x("span",null,"分",-1))]),x("div",csn,[je[17]||(je[17]=x("span",null,"一共",-1)),ln(x("input",{"onUpdate:modelValue":nn=>at.questionCount=nn,type:"number",class:"count-input-field",min:"1",max:"99",onInput:nn=>X(at),disabled:h.value||k.value},null,40,dsn),[[jr,at.questionCount]]),je[18]||(je[18]=x("span",null,"题",-1))])])]))),128))])]),x("div",fsn,[x("div",psn,[x("img",{src:C(dke),alt:"预览",class:"preview-icon"},null,8,hsn),je[20]||(je[20]=x("h3",null,"预览",-1))]),x("div",gsn,[x("h4",vsn,We(w.value||"试卷名称"),1),x("div",msn,[(F(!0),K(Pt,null,an(p.value,(at,gt)=>(F(),K("div",{class:"breakdown-item",key:gt},[x("div",ysn,[x("span",bsn,We(at.romanNumeral)+"、"+We(at.name)+" (每题"+We(at.scorePerQuestion)+"分,共"+We(at.scorePerQuestion*at.questionCount)+"分)",1),x("span",wsn,We(at.questionCount)+"题",1)])]))),128))]),je[23]||(je[23]=x("div",{class:"divider"},null,-1)),x("div",Asn,[je[21]||(je[21]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",Csn,We(N.value)+"分",1)]),x("div",xsn,[je[22]||(je[22]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",Ssn,We(A.value)+"分",1)])])])]),x("div",Esn,[x("button",{class:"clear-btn",onClick:ue,disabled:h.value||k.value}," 一键清除 ",8,ksn),x("button",{class:"generate-btn",onClick:ve,disabled:h.value},[h.value?(F(),K("span",Dsn,"生成中...")):(F(),K("img",{key:0,src:C(fke),alt:"生成试卷",class:"generate-icon"},null,8,_sn))],8,Tsn)])])])),v.value?(F(),K("div",Isn,[x("div",Osn,[x("button",{class:"back-btn",onClick:be,disabled:h.value},je[25]||(je[25]=[x("span",{class:"back-arrow"},"←",-1),xn(" 返回修改 ",-1)]),8,Msn),x("div",{class:re(["download-dropdown",{disabled:h.value,show:y.value}]),onClick:je[4]||(je[4]=Qt(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:h.value,onClick:oe},[x("img",{src:C(ZD),alt:"下载Word",class:"download-icon"},null,8,Nsn)],8,Psn),x("div",Rsn,[x("div",{class:"dropdown-item",onClick:Ee,disabled:h.value},je[26]||(je[26]=[x("span",{class:"item-text"},"有答案",-1)]),8,Bsn),x("div",{class:"dropdown-item",onClick:Le,disabled:h.value},je[27]||(je[27]=[x("span",{class:"item-text"},"无答案",-1)]),8,Lsn)])],2)]),x("div",Fsn,[x("h1",Usn,We(_.value.title),1),x("div",$sn,[x("span",zsn,"总分: "+We(_.value.totalScore)+"分",1),x("span",jsn,"题量: "+We(_.value.totalQuestions)+"题",1)]),x("div",Hsn,"生成时间: "+We(S.value),1)]),x("div",Wsn,[_.value.singleChoice&&_.value.singleChoice.questions.length>0?(F(),K("div",Vsn,[x("div",{class:"section-header",onClick:je[5]||(je[5]=at=>h.value?null:De("single")),style:Xt({cursor:h.value?"not-allowed":"pointer"})},[x("div",qsn,[je[28]||(je[28]=x("span",{class:"section-number"},"一",-1)),je[29]||(je[29]=x("span",{class:"section-name"},"单选题",-1)),x("span",Gsn,"(每题"+We(_.value.singleChoice.scorePerQuestion)+"分, 共"+We(_.value.singleChoice.totalScore)+"分)",1)]),x("div",Ksn,[x("span",Qsn,We(_.value.singleChoice.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!P.value.single}])},null,10,Ysn)])],4),P.value.single?(F(),K("div",Zsn,[(F(!0),K(Pt,null,an(_.value.singleChoice.questions,(at,gt)=>(F(),K("div",{key:gt,class:"question-item"},[x("div",Xsn,[x("span",Jsn,We(gt+1)+".",1),x("span",eln,We(at.text),1),x("button",{class:"refresh-btn",onClick:nn=>pe("single",gt),disabled:h.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:O.value["single_"+gt]}])},null,10,nln)],8,tln)]),x("div",rln,[(F(!0),K(Pt,null,an(at.options,nn=>(F(),K("div",{key:nn.key,class:"option"},[x("div",oln,[x("div",{class:re(["radio-circle",{selected:at.selectedAnswer===nn.key}])},[at.selectedAnswer===nn.key?(F(),K("div",iln)):xe("",!0)],2)]),x("span",aln,We(nn.key)+".",1),x("div",sln,[x("span",lln,We(nn.text),1)])]))),128))])]))),128))])):xe("",!0)])):xe("",!0),_.value.judge&&_.value.judge.questions.length>0?(F(),K("div",uln,[x("div",{class:"section-header",onClick:je[6]||(je[6]=at=>h.value?null:De("judge")),style:Xt({cursor:h.value?"not-allowed":"pointer"})},[x("div",cln,[je[30]||(je[30]=x("span",{class:"section-number"},"二",-1)),je[31]||(je[31]=x("span",{class:"section-name"},"判断题",-1)),x("span",dln,"(每题"+We(_.value.judge.scorePerQuestion)+"分, 共"+We(_.value.judge.totalScore)+"分)",1)]),x("div",fln,[x("span",pln,We(_.value.judge.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!P.value.judge}])},null,10,hln)])],4),P.value.judge?(F(),K("div",gln,[(F(!0),K(Pt,null,an(_.value.judge.questions,(at,gt)=>(F(),K("div",{key:gt,class:"question-item"},[x("div",vln,[x("span",mln,We(gt+1)+".",1),x("span",yln,We(at.text),1),x("button",{class:"refresh-btn",onClick:nn=>pe("judge",gt),disabled:h.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:O.value["judge_"+gt]}])},null,10,wln)],8,bln)]),x("div",Aln,[je[32]||(je[32]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",Cln,We(at.selectedAnswer),1)])]))),128))])):xe("",!0)])):xe("",!0),_.value.multiple&&_.value.multiple.questions.length>0?(F(),K("div",xln,[x("div",{class:"section-header",onClick:je[7]||(je[7]=at=>h.value?null:De("multiple")),style:Xt({cursor:h.value?"not-allowed":"pointer"})},[x("div",Sln,[je[33]||(je[33]=x("span",{class:"section-number"},"三",-1)),je[34]||(je[34]=x("span",{class:"section-name"},"多选题",-1)),x("span",Eln,"(每题"+We(_.value.multiple.scorePerQuestion)+"分, 共"+We(_.value.multiple.totalScore)+"分)",1)]),x("div",kln,[x("span",Tln,We(_.value.multiple.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!P.value.multiple}])},null,10,_ln)])],4),P.value.multiple?(F(),K("div",Dln,[(F(!0),K(Pt,null,an(_.value.multiple.questions,(at,gt)=>(F(),K("div",{key:gt,class:"question-item"},[x("div",Iln,[x("span",Oln,We(gt+1)+".",1),x("span",Mln,We(at.text),1),x("button",{class:"refresh-btn",onClick:nn=>pe("multiple",gt),disabled:h.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:O.value["multiple_"+gt]}])},null,10,Nln)],8,Pln)]),x("div",Rln,[(F(!0),K(Pt,null,an(at.options,nn=>(F(),K("div",{key:nn.key,class:"option"},[x("div",Bln,[x("div",{class:re(["radio-circle",{selected:(at.selectedAnswers||[]).includes(nn.key)}])},[(at.selectedAnswers||[]).includes(nn.key)?(F(),K("div",Lln)):xe("",!0)],2)]),x("span",Fln,We(nn.key)+".",1),x("div",Uln,[x("span",$ln,We(nn.text),1)])]))),128))]),x("div",zln,[je[35]||(je[35]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",jln,We((at.selectedAnswers||[]).join(", ")),1)])]))),128))])):xe("",!0)])):xe("",!0),_.value.short&&_.value.short.questions.length>0?(F(),K("div",Hln,[x("div",{class:"section-header",onClick:je[8]||(je[8]=at=>h.value?null:De("short")),style:Xt({cursor:h.value?"not-allowed":"pointer"})},[x("div",Wln,[je[36]||(je[36]=x("span",{class:"section-number"},"四",-1)),je[37]||(je[37]=x("span",{class:"section-name"},"简答题",-1)),x("span",Vln,"(每题"+We(_.value.short.scorePerQuestion)+"分, 共"+We(_.value.short.totalScore)+"分)",1)]),x("div",qln,[x("span",Gln,We(_.value.short.count)+"题",1),x("img",{src:C(Eh),alt:"收起/展开",class:re(["toggle-icon",{expanded:!P.value.short}])},null,10,Kln)])],4),P.value.short?(F(),K("div",Qln,[(F(!0),K(Pt,null,an(_.value.short.questions,(at,gt)=>(F(),K("div",{key:gt,class:"question-item"},[x("div",Yln,[x("span",Zln,We(gt+1)+".",1),x("span",Xln,We(at.text),1),x("button",{class:"refresh-btn",onClick:nn=>pe("short",gt),disabled:h.value},[x("img",{src:C(kh),alt:"刷新",class:re(["refresh-icon",{rotating:O.value["short_"+gt]}])},null,10,eun)],8,Jln)]),at.outline?(F(),K("div",tun,[x("div",nun,[je[38]||(je[38]=x("strong",null,"关键要点:",-1)),xn(We(Bt(at.outline.keyFactors)),1)]),x("div",run,[je[39]||(je[39]=x("strong",null,"具体措施:",-1)),xn(We(Bt(at.outline.measures)),1)])])):xe("",!0)]))),128))])):xe("",!0)])):xe("",!0)])])):xe("",!0),x("input",{ref_key:"fileInput",ref:D,type:"file",accept:".ppt,.pptx",onChange:Ne,style:{display:"none"}},null,544)])]))}},iun=Qo(oun,[["__scopeId","data-v-34fd7048"]]),aun="/assets/6-XEd9sn-3.png",sun="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABACAYAAABGHBTIAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARMSURBVGiB7ZpBbttGFIb/R1JBlxIQufCqDCAFXuoGVU6Q3iCMpb3tE0Q+Qe117Jg5QZsT2DeIloYVwMzKgJVC6jYi9bqQ5ZDDoTQkZxgX4AfYi8cZan79HPL9koCampqampqanwVV+WJ73p0b2c9eM7hPwByg8SKyPgZ+a17VGioT/HI4HTHjnewYM46+fGifVLGOSgR39qeHRPhz40IIxzdn7ZHptRgX3PXue7Dps8pYOwpfXPu7gcn1WCZPDgCwSXR2Dua3gHUIILF3I7shveR1YtThznDaJ8ZlvMaEV1/O2lcA0N2/90B0kXXcBEYdpvRN6iouZvJhxwdwFR9AvHmvl8WY4M5w2gfQj9eYcJxeAR8JlV53/94ztS5jgomTlyoEd9dM3u+MAfKTky1je9mI4JVD7CaKUcrJR+xoITjPrimXtQt2vVkTJN6ZyZ/4O+OsOatHUTUuaxfsWN8PATRjpXnawTQyl18OpyOti4Nmwa43axJZB/Ea8/JUpZm49ncDEm5qzPRmz7tzda5Rq2CZu+HymXKPbIWhD1Dwo8Ku7mZEm+A9786VuStLQnvenetKnLv2dwNmPk1W2dPpsjbBD05sdbc7+HYR2c5tw3ZuO4PpX+LxVWqKu6y35dQiuOvd9wD2EkXmI9Hd7uCfg/g4Av6QPn54Kd7AtLmsx+FUQKDgoW0U4F6qRNbvYmk114zLpQXLW0h+W/a8MpcfXqsUpQVvCwhFkQeLVLuam1KClQPC+hhHX1Vqj6SCRfmWs5Rg1YBQFBPBorDgvAEBAIicmUotju5gUUhwkYAAAARONSGyWhzdwaKQ4KIBoSg6g0VuwWUCwpJYcoOK/t02T2ewyC24bEAQWZKl9K2DrmCRS3CegKAK0eY9vEZXsMglWDUgZBGGYSDWFotI+c3SESyUBasGBOOUDBbqDisHhE38InlzZLVsygYLJcG6AkLgt+ZgDuJ/ha6QEsFC6auW7mB6iaTgq8l5+5Xa6syQXhMFk/PnL7bN2+pw3oBQGQWDxVbBpgNCUYoGi42CiwSEKikSLDL3sOvNmg07vEXiuUv+5Px5qU8zVuddvgEAO/r+qewX4N3Bt4vk43LzXs502ERAWImNPgPLE2B5EtmNS9ebNbfPzCZvsJAKLhMQNuE4YS+5Rdhd1YqTN1hIBesOCGtkfbNqL72JPMEiJTjLXR0t5OT9zjjuBhGOV3fbcuQJFinBptxdc3PWHi0ip7WInJbOnylJg4Vl98VxKcFE9m/CkJHugBD4rbmR0CG0nEzWa3GIZA8Lz13e/onEU4HI4m1jnPQsjMGxVpKsd53hNJBl2aeE4zguM0bxGhEHqXFiwQ7D08h2Dn9U2CXGZcNOvzdPCn78Fy99EoelLulrfzcAoZIfehqFcCLr+TNby3TL9n8iuwXemIc7w2kfTAfEy1LdUCUQzRkUWIg+3pz/+vfPXk5NTU1NTY0C/wGrbmPUzge2awAAAABJRU5ErkJggg==",lun="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAA8CAYAAAAwjLVlAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArASURBVHic7Z1NbOLoGcf/hEIiEaOkVKhmRjOJqiVSldGs4r1kL3DKiZkeKq0UrXqpGja7x2zn2ojjamZynknOFXPoVtqOtdLm0tBKy0pbR22ZSg2zVT6a4BGVRYqDlpgaegB7XoMB82FI4vd3irENL+b9P+/zZcf1XuZ5DRSKw6hW1eX9+598MzHugVAo44QKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJofjDOD2c9DKL+u+B8IbwzFQDj9gIAxMoFZPUSqeIR9orHECvyOIc5Fjgfi7UgB76QhVASr8014HwsACBbliCryphH052xCED7cTlfyHQ/455sHBfCBvs+hFIOidPUtZkEw0C7PpwvhIcHyXEPxzKbt6JgvQwAYP2QB9D5hsOcctHyuz65swLWy0Ao5bAlpu0aKoAxCGCDXcZq4F5P53C+EP6wsIqdvIDtvDCUcYSnAj2PwyqJsz3Dtib4TvCFLPjzLAAgNhPWjYOoyIjNhluOv1AvkZRedXzPbxfjPYy6M9t5ATtdrj3rYfTJL5RyWAsutTVyGonTPfDnRgFMu70ITwUgq5eDDdoCIxMA4/bi8Z2VrhekE2tBDks+Fo9OdgdeXhm313RiDYNmAbAepuv3Fkqi/necEAvrZQzbGjlF7iqAURP139X/5gtZ267vMBmZAAad/BqcL4THd1Yay+vNIx7kdCvaiYtqdwOQU4bnMl5YsMbkiqoJWiiJiPrnEJ4KAEDLCp4tS/givAoAeCFlRi7qkQgg3sHf74d6bLA8kH+YLUtYP3xp6djYzIJuzZJSBqniUU+fxZ+/dW82b0URmw1DVGQ8zBp9+4h/TneVREXGR4e87h+zHgbP52NgvQxk9RKJ072un/uz7OhiB87HGtwfsSLrrk3UPwegfs3N3KhQ47zpRuw3SmwXAOthuvq//bAauIdU8cjgOvSCrCqWz10ixJv9Xur7MwEg0nATmt+D9TD49MfL+nbibE+f/Izbiyd3V/QJtiWmkS1LfY/BDmIzC/rfpIFgGv48UL92Vw3bBbB5OzLQ+bJ6iUcnu2A9DDZvRw371oIchGvkCnE+Vs9w7clH+uukdQfq33ktyGGtsT9EBJeyeonYbFhfkcjgeVywHsbg75PxGWk8chUZrOete3dRvRx7qtRWAVgJ/rqROEtBKIkIT7VeKM4XAuthBk6PRggflS9kbUu3alZSq3Hor8+GDX4/457smCIm9w2yGg0LsyBdI8rMGY4jjxVKubHHcrYKgMwK9MNOXkCqeATWw+DJnZW2nzFo4BRl5nQLtt/wX4cNmXVKFY8N+15IGTyYCRusvGYZGbdXXzXIoDbUJlC2M70L1P34pJTRt5utfzNaYeyqYqsAIo3gpx+SUkbPGJD+bzOcL3Tl0oFmRAhLGPHfxRe+VX17600aT9+k8WAmjIh/rhGg1y0j52PxbP4BgHphSRPns/mY6SphZ3oXqFttUgCdrH9zYKytVqTYx42tAmD6jOrJCuAGu6y7J2a802GfHcRmwx3duq03X5v6teREYdyThmvDTHjBn2cN7sJ1oJv1JwNjMnDXrsVVCORtjgGmez5HVGQkTlMA6heq23Ku9Q+NCs4XAnzt92/nhRYBxJosnubidHJjNm9FARi/36fssv7eIY/5ub2kd5d8IX0y1oPpg67nkN+NFHVz4YsUh6jI+mQnXaKrkBUaSy/Q+uFLyKqCZ/MxgyUkc9+xmbAt6dNx0OwmbIlp8OfZDm7MpKllteJStkvvMm5vizDJjEyuIrecZ3YOiTapRUXGdl4wjJmc6KyXwWrgHpJSxphSvukrgKwqbd0gzc8lRfDrk12IjVTZBrtsel4zYuViaOO1Al846Jh5uagaK6ZWK7t2EpsJIx7ksJ0XLKVMGbcXa0EOUWYOH/7r87YiSEoZsN5pU0veLHrt99SEQa4K48RWAbwuS6bL/OatKD465JEtS9gS09i8HdV9RC0nbjV+GEXDFIlQEnvKu083XJhU8chyUoBMD5JB8MODZNcg2AxNhFodpdv4N29F9bF2azvRYjVyNSHTuuT3Dk8F9DFfhfQtYPMNMUIpZ/o669UmeT34+/C7z5GUMmDcXkNByAq9tiWMmi0xDb5wgKc2t/W2g1yBhFLOknifimndsHC+UM9p1fq9AJcQFRlPxTQSp3sQFdkQz1iJN0aBrSvAXvEYG+z7pvtYL4Nn8w+wfvhSXwp/Q/SS9/IZV53EWcrScay3njQYJAg2vF9TG4rV3imxImMnv6+7LWvBJewVjyzXR7LfS1gv8GC9jN4TlJKP8Nuf/Lz+/kprvDEubF0BxIrcdhUA6j/0RqP/JR7k9KYpqwg2Fa3GjRYEx2bDBrcp4p/TX7diKMg2FL6Q7cnnTkoZ/bdj3JM9t7Rky5JhdY4wc/qYh3VPxzCw/Z7gbjdRxGYX8O1ivK+Mj5YuvSl0qnf0CtmBq2VpeiVxmjK4QrGZ/gpsrOftPQ1m1p8vZHsW6LCwPQ0qlEQkpczQy/M7eeHaWn8tE0IG+qyH0be3xK/16nY/QXCz65OUXvV1rZpdoQ12GSn5qOcGNjIO2Tb53ZpvIBolI6kDbIlpQwZgUIRSbqBlNOKfAzPx1rfWfG9tH9vkX5OW2WpvS6eJEptdQGx2wfCaoUA0gCXUsmgaza0LJFaKiEkpg0jjwQWMexJrQa6n+zDiQc5QEBt352ozIyuEPTrZHcpdYUIph0cnuwO9x2pgse04uq1UZpPXjPXDlz0FepqLIKuXls5rFwRH/W99bbKq3gzrYQxFqU53fO3kBXDz9WN7cdNWA/f0lUhWL/GRhc7P8FTAUoA/LEYmAFlVsH7IIx7k+q7wJqWM7U8JsJN2LQrhqR8RefP2Wa2Ql6k3Bnqm29ZJNGu/wS7j6Zu0wd0ITwXw+M6KaW0m16GgKJRECKUcUsXjtqtJM7GZsKGYmThr/1QPrepPdr4CwMUI7hUYeSvEdl7Ay0IWm7cjllcDoZTDTl4YWupMe9aOneSU1gnVrkVBS3kCnTMkOUXG9IRxkvCFVpciKWXAnx+0uGDZsmTq9oiK3LUvp5cHEdRbHxb1ba2tvR0p+ajlZidZvRxJ7WQsvUBiRcb6Ia8/GCvinwPjntSb52RVweuyBKGUs+XBWFfJD5VVBdt5AfEgB/689WYcoSTqzwUSKzJeSK8Q8d/V04ztrk27yZoqHmOpEW+8Lks4KEt4IWW6Tm4rk1+7X4Fsc3khveoar8mqAr6QBeP2Ilepi7GfYLsfXO9lnnd+chFlZHRrPrtuhKcCV6Lfx4xqVV3ev//JN/TZoFeImzT5gavR7dmOiZqrCtCH41IcSm1ioghQAVAcSqVW/DdABUBxJt/9/f6jEkAFQHEmf9b+oAKgOI9a7Xfan1QAFGfhch3/5Z8//ErbpAKgOIparfYZPvhA1bapACgOwiUIi/Fn5CtUABSn8N//uaurcLkMnQ9UABQH4KpVUfvlX3+6/rp5DxUA5WZTgwrgV/v31n9vtnus/yaVQrEX13+qVfUX++9+/FW7I+gKQLmhuL50ocJ1mvwAXQEoNwmXq1arVXfhcn0mLMb/aOUUKgDKdaUK1ApwuU5Qwz+qteqfVBVf/u3dj896eZP/A75J+vzb84iOAAAAAElFTkSuQmCC",uun="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAA8CAYAAAAwjLVlAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAmfSURBVHic7Zw/bNvYHce/pP5YtplcDilA7bzZGjqdtOaU+bQViDQUHaystmY740HKanmWbrtC3g6IorsCLSzc0kEHdGoYoC0KiOiQNqEsyRLJDs57eY8iJeqPTcV8H8AARVHkk/i+7/eXlt49eeJAIIgYNvD1407nFznsgQgEYSIEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg08bAHEDaJbBYxTcP0118x7fU8j4lpGgDANgw4pjmz3zFN2IYR6HqSonDnuG/EMxkAgKXrn8X3jLwAdp8/h6yqsA0D75898zxm//QUcjqNaa8H8/j402fLZcQzGdj9Pt4XiwuvlSqVkMznYR4dcYKRVZVOnGWY9nqBhXdX7FUqkFUVALjfyg+735/5DvsvXkBWVUx7PQzr9VsZJyHSAkhks/Rm+a3+myKeySD1USTKy5ecCOR0GnuVytLnvKpWcd1u+77/6PXr1QbrwajRwKjZnHuMrKrc75kqFhcK2+s7SPv7iGnanViQSMcAyadP6fao0eDekxSFu6Hufex+AL77CdNej95oWVWx/+IFJEXZ1FfZChK5HN2eJ8xtIrIWQFZVJLJZ+vrh99/T7et2G9Neb2ZVjmkadxw9VzrN7f/vN994XnNYryOeyUBWVcQ0DXvHxxicns4cM7m89B13PJMJbC3sfj/QcUFwBoOFx+wUCnSbWNRpr4dELkfjJfdCY+k6Hn60LOOLC4xbrU0NORCRFcAqLse6OKYJ8+gID87PISkKYl99NWMFFgXUy/j8QeKSTUGEDXyKTYgVIJbB0nVPN0pOpwHcuD53TSQFkMznqW867fVm/H9L12HpOg3i9o6PIafTsHSdC8p2y2Xqq7pXcj9sw8Co2cRuuYzByclnkSkJQjKfp9uTbpduS4pCV39L1+98XIsITQAkW3BVrfquarKqYq9SgW0YuKpWN3JdWVWRKpUAgJ7X7/ru/Y5pcmIhk9e9fxHjVouKzM1epRKKdVoHWVU5AbCijh8c0G273+diJGcwCH0BCE0AJPXnzoiw7ysvX9J02KZI5HL0JowajdDSiLeddbpLyILiBRsYp0ol7lh3WjkMQhPAVbVKJ/hMWpCZ/Jtc/YGb1TeZz1Pr4rXafjg8xG65TF8THzWmaVBqNbqfmHZJUbj9AJ8DV2q1mezQpNul7pSl6yt9Ry8RxTSNC0Y3jaXrXKDqXv3drFLfuEtCE4BtGDCPjmZEAICb/F7WYV2uqlUkslnflUtSFM8bt+x+gqyqVETsZwiOaW4sbSgpytwJuS7TXo8TwLzV3x0YE8Emnz71TRffNaEGwV4iAHCrkx/ggzFyMxzTpDfW7vc3msfmqr4uIQDrZaSG9XpofvSi1Z99b1iv09+diGYbguLQs0BuEbD7btM/J0EoWaUc0+RSdJt0u1h3yKs6u86KPWo0OAGw2atFxA8O6GS8brcDiZ69Frv6X7fb3PdgxWEbBp3srKUUAthydgqFpXLTzmCwUiHHr2DFWougRS2/jJRXEx7rhtj9/sznFjXukQlsGwZGjQYnAHaiy6qKnUIB41aLywoJAWA24GX33ZYViGcy9GbRIoyiUFfEMU0M63XsfPutp8vih93vryQAv4LVw2YTcjoduNnOj2Q+j1SphFGjEWiVlxQFqWIRiVwOHw4PfUUwbrUgq6rnRHbHBiSpQITBWoUwCbUXyD35zaMjOunZ927jusl8nmaDgE/BYzKf51okwoQEykHaEOaRKpVo1iuIu7VXqWCnULjpWVpQ4BvW6zOiYn9XtigW0zSuALkNhFoH8Mv2eGWHwmz7XZSvVmq1ldN9bPuwGyIAWVVn0qwEZzDA4OTE9/xk8gN8Q948hmdniB8c0OwWcV+CYun6TYV8MMDw7AyTy0ukSiUu87UtzXKhV4K9Al53YLxXqWy0YMIGfGTyrutmrEr84GChmzUvzTovNpBVlbZgAwjcW8+2awBAqljE5PIy8CJEAnFyf6/bbUy6XTw4P6fnj7wFID+CXysCEQFphQiTeCaz0d56lkm369kWHdM0WmgD/CfNvCCVTa9et9tL+dzjVguJbBbxTIbGR8ssQu5WD/bZC3dHaJiEWglehG0YoZTK7+qxRRJvuC0PWxOhY9rfX6p1I1UqcQHnKpPuqlqlnaskcbCK6+Luv3ILmZwzjKA49CzQNiGrKnbLZdiGwbkL7i5QN6QrdBkS2SwNSOOZDJ0UkqJwfjtBUpTA8ZDb9Rm3WitZUbcrtFsuY9LtLr04sN/HS8SbrLksS6SfCGORFAUPzs+RyOVmskAkt+73F3RCsK4O2WYftI9nMlBqNa6A9P7ZM/qAjKyqeHB+PjeT47Ye7tYFv/H4MW61eHEuGSeR56ABcM8IbAuRtwBsQxvBNgzudUzT5rYrBK0VuIVFYiA5nZ7JJDmmSeOjq1oNSjqNmKZRfzxVKtHJyfnaTLfrvEZCWVW5otS8VOuo2YTycWzLWLqdQoEKhjwMtIiYpi1Ve1mXSAuATCgCcXW8KqKbaDBjrzVqNiHt71Mfm8WdGXNMEx8OD2/aiT9OKOKuATeBNEmFktV+t1zG8OyMczdimkb/w4WbedkkYukm3W7gdGgyn+c6auc9d5HM55EqFiEpCt8kuGb9IwiRFoCl65j2eohpGsatlu9/PXBMc26A5haSH6RyahvGTVvAxxw7e5154xg1Grh+9Qq7z59z1sT9DPG41cJ1uz3jmlm67jnOIFXZwelpYFePtD7QcTebXEHMzaTbnbGwjmlieHYW6HrrEGkBAJ+6Kb1WJ+vtWzo5ggTBQQJN9jxsi/Ck2/WctG5sw8Dg5IRmZdgAmsXvPJNul7o+1tu3sN68wfjiYuF1g0x+YkVIHUCp1TC+uFiYgSLt4JKiwO73Yen6SsH2Kkjvnjxxbv0qAl/u83+Ki2naVvT7eGEDXz/udH4RWaCQua+TH9iObk8/HNu2AZEGFUQV234PCAEIIso0mfwXIAQgiCZv0u32ABACEESTv5ANIQBB5JAl6Y90O8yBCAQh8I+Hjx69Ii+EAASRwgG+k374wSKvhQAEkUGSpL9+2emcs/uEAARR4X8S8DsJ4DofhAAEUcAB8PsvXr/+u/sNIQDBfccC8IcvOx3PPu7Id4MK7i8S8B8LKD7udF75HSMsgOBeIgE/WrL823mTHxAWQHC/cBygLTnOd49++ulPQT4gBCD4XLEBvAPwTzjO32xJ+rNj2z/+5uef/73MSf4PW11UPSwoIFUAAAAASUVORK5CYII=",cun={class:"mobile-hazard-detection"},dun={class:"mobile-content"},fun={key:0,class:"main-layout"},pun={class:"process-tabs"},hun={key:0,class:"hazard-system"},gun={class:"step-section"},vun={class:"scenario-tags"},mun=["onClick"],yun={class:"step-section"},bun={key:0,class:"uploaded-image-container"},wun=["src"],Aun={class:"image-overlay"},Cun={key:1,class:"upload-content"},xun={key:2,class:"upload-status"},Sun={key:3,class:"upload-status"},Eun={class:"action-section"},kun=["disabled"],Tun=["src"],_un={key:1,class:"process-content"},Dun={key:1,class:"detail-layout"},Iun={class:"detail-header"},Oun={class:"header-left"},Mun={class:"header-text"},Pun={class:"main-title"},Nun={class:"header-right"},Run={class:"current-time"},Bun={class:"detail-content"},Lun={key:0,class:"loading-overlay"},Fun={class:"image-section"},Uun={class:"image-container"},$un=["src"],zun={key:1,class:"scanning-overlay"},jun=["src"],Hun={class:"analysis-section"},Wun={class:"analysis-content"},Vun={class:"scene-info"},qun={key:0,class:"analysis-prompt"},Gun={key:0,class:"streaming-analysis-text"},Kun={key:1},Qun={class:"detection-count"},Yun={class:"hazards-section"},Zun={key:0,class:"hazards-loading-overlay"},Xun={key:1,class:"hazard-item"},Jun={class:"hazard-number"},ecn={class:"hazard-desc"},tcn=["onClick"],ncn=["src"],rcn={class:"modal-hazard-info"},ocn={class:"hazard-number"},icn={class:"hazard-description"},acn={class:"modal-body"},scn={key:0,class:"loading-overlay"},lcn={key:1,class:"example-images"},ucn={class:"example-panel correct-panel"},ccn={class:"panel-image"},dcn={key:0,class:"image-loading"},fcn=["src"],pcn={key:2,class:"no-image-placeholder"},hcn={class:"example-panel error-panel"},gcn={class:"panel-image"},vcn={key:0,class:"image-loading"},mcn=["src"],ycn={key:2,class:"no-image-placeholder"},bcn={class:"modal-body"},wcn={class:"question-section"},Acn={class:"answer-buttons"},Ccn={class:"question-section"},xcn={class:"answer-buttons"},Scn={class:"question-section"},Ecn={class:"star-rating"},kcn=["onClick"],Tcn={key:0,class:"question-section"},_cn={class:"remark-input-container"},Dcn=["disabled"],Icn={class:"char-count"},Ocn={key:0,class:"modal-footer"},Mcn={__name:"m-HazardDetection",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{A.value||(c.value=!0)},o=Q(!1),i=Q(""),a=(me,Be=2e3)=>{i.value=me,o.value=!0,Be>0&&setTimeout(()=>{o.value=!1},Be)},s=()=>{o.value=!1},l=me=>a(me,2e3),u=me=>a(me,3e3),d=me=>a(me,2500),c=Q(!1),f=Q("detect"),p=Q("tunnel"),v=Q(null),h=Q(""),g=Q(null),y=Q("main"),m=Q(null),b=Q(!1),w=Q(!1),A=Q(!1),S=Q(null),k=Q(""),M=Q(!1),D=Q(!1),P=Q(!1),O=Q(!1),_=Q(""),B=Q(!1),N=Q(""),q=Q(!1),U=Q([]),j=Q(0),H=Q(!1),G=Q(!1),Z=Q(!1),$=Q(!1),L=Q(null),W=Q({}),ie=Q(!1),ee=Q({correct:!1,error:!1}),te=Q(!1),X=Q({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""});Q(!1);const ue=Q(null),ve=me=>{if(!me)return null;if(typeof me=="number"){const Be=me<1e12?me*1e3:me;return new Date(Be)}if(typeof me=="string"){let Be=new Date(me);if(!isNaN(Be))return Be;const rt=me.replace(/-/g,"/").replace("T"," ");if(Be=new Date(rt),!isNaN(Be))return Be}return new Date(me)},Me=me=>{const Be=ve(me);if(!Be||isNaN(Be))return"";const rt=new Date,ht=Be.toDateString()===rt.toDateString(),rn=new Date(rt.getFullYear(),rt.getMonth(),rt.getDate()-1),Ye=Be.toDateString()===rn.toDateString();if(ht)return Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Ye)return"昨天 "+Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Je=Be.getMonth()+1,lt=Be.getDate(),Ue=Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Je}月${lt}日 ${Ue}`},we=async()=>{try{console.log("📋 开始获取移动端隐患提示历史记录列表..."),H.value=!0;const me=performance.now(),Be=await Bn.getHazardHistory({}),rt=performance.now();console.log(`📋 移动端隐患提示历史记录API调用耗时: ${(rt-me).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",Be),Be.statusCode===200||Be.code===200?(j.value=Be.total||0,U.value=Be.data.map(ht=>({id:ht.id,title:ht.title||"隐患提示记录",time:Me(ht.created_at),businessType:"hazard",isActive:!1,effect_evaluation:ht.effect_evaluation||0,rawData:ht})),m.value?.id&&U.value.forEach(ht=>{ht.isActive=ht.id===m.value.id}),console.log(`✅ 移动端隐患提示历史记录列表已设置: ${U.value.length}条记录,总数: ${j.value}`)):console.error("❌ 获取移动端历史记录列表失败:",Be.statusCode)}catch(me){console.error("❌ 获取移动端历史记录列表失败:",me)}finally{H.value=!1}},he={tunnel:{name:"隧道工程",color:"#3366E6"},simple_supported_bridge:{name:"桥梁工程",color:"#22B850"},gas_station:{name:"加油站",color:"#FF4D4F"},special_equipment:{name:"特种设备",color:"#0080FF"},operate_highway:{name:"高速公路",color:"#722ED1"}},Te={tunnel:{class:"tag-tunnel",background:"rgba(62, 123, 250, 0.1)",color:"#3366E6",text:"隧道"},simple_supported_bridge:{class:"tag-bridge",background:"rgba(34, 184, 80, 0.1)",color:"#22B850",text:"桥梁"},special_equipment:{class:"tag-equipment",background:"rgba(0, 128, 255, 0.1)",color:"#0080FF",text:"特种设备"},operate_highway:{class:"tag-highway",background:"rgba(114, 46, 209, 0.1)",color:"#722ED1",text:"高速公路"},gas_station:{class:"tag-gas-station",background:"rgba(255, 77, 79, 0.1)",color:"#FF4D4F",text:"加油站"}},Y=me=>Te[me]?.class||"tag-tunnel";J(()=>`确定要删除历史记录"${ue.value?.item?.title||""}"吗?删除后将无法恢复。`);const be=J(()=>m.value?.effect_evaluation>0?X.value.userRemark&&X.value.userRemark.trim()!=="":!0),De=()=>{console.log("createNewChat 被调用"),y.value="main",p.value="tunnel",v.value=null,h.value="",m.value=null,$.value=!1,L.value=null,b.value=!1,w.value=!1,A.value=!1,k.value="",W.value={},ie.value=!1,ee.value={correct:!1,error:!1},Z.value=!1,D.value=!1,P.value=!1,O.value=!1,_.value="",B.value=!1,N.value="",q.value=!1,g.value&&(g.value.value="",console.log("文件输入已清空")),U.value.length>0&&U.value.forEach(me=>{me.isActive=!1}),c.value=!1,console.log("新任务创建完成")},pe=async me=>{me.isActive||(console.log("点击移动端隐患提示历史记录:",me),c.value=!1,await en(me))},oe=me=>{try{console.log("selectScenario 被调用,场景:",me),p.value=me,console.log("选择场景:",he[me].name)}catch(Be){console.error("选择场景失败:",Be)}},ce=()=>{try{console.log("triggerFileUpload 被调用"),g.value?(g.value.click(),console.log("已触发文件选择器")):console.error("fileInput 引用为空")}catch(me){console.error("触发文件上传失败:",me)}},Re=async me=>{try{console.log("uploadFileToServer 被调用,文件:",me),b.value=!0;const Be=new FormData;Be.append("image",me),console.log("FormData 已创建:",Be),console.log("开始调用后端API...");const rt=await Bn.uploadImage(Be);if(console.log("后端API响应:",rt),rt.statusCode===200)h.value=rt.fileUrl||rt.fileURL,console.log("上传成功:",h.value),l("图片上传成功!");else throw new Error(rt.message||"上传失败")}catch(Be){console.error("上传失败:",Be),u("图片上传失败: "+(Be.message||"未知错误")),v.value=null,h.value=""}finally{b.value=!1}},Ee=()=>{try{console.log("reselectImage 被调用"),Le(),ce(),console.log("重新选择图片完成")}catch(me){console.error("重新选择图片失败:",me)}},Le=()=>{try{console.log("clearUploadedImage 被调用"),v.value=null,h.value="",g.value&&(g.value.value="",console.log("文件输入已清空")),console.log("上传图片已清除")}catch(me){console.error("清除上传图片失败:",me)}},Fe=me=>new Promise(Be=>{const rt=document.createElement("canvas"),ht=rt.getContext("2d"),rn=new Image;rn.onload=()=>{rt.width=rn.naturalWidth,rt.height=rn.naturalHeight,ht.drawImage(rn,0,0),rt.toBlob(Ye=>{const Je=new File([Ye],me.name,{type:me.type,lastModified:me.lastModified});Be(Je)},me.type)},rn.src=URL.createObjectURL(me)}),Pe=(me,Be=1920,rt=.8)=>new Promise((ht,rn)=>{const Ye=document.createElement("canvas"),Je=Ye.getContext("2d"),lt=new Image;lt.onload=()=>{try{let{width:Ue,height:ze}=lt;Ue>Be&&(ze=ze*Be/Ue,Ue=Be),Ye.width=Ue,Ye.height=ze,Je.drawImage(lt,0,0,Ue,ze),Ye.toBlob(ut=>{if(ut){const yt=new File([ut],me.name,{type:"image/jpeg",lastModified:Date.now()});console.log(`图片压缩完成: ${me.size} -> ${yt.size} bytes`),ht(yt)}else rn(new Error("图片压缩失败"))},"image/jpeg",rt)}catch(Ue){rn(Ue)}},lt.onerror=()=>rn(new Error("图片加载失败")),lt.src=URL.createObjectURL(me)}),Ne=async me=>{try{console.log("processFile 被调用,文件:",me);const Be=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",me.type),!Be.includes(me.type)){console.log("不支持的文件类型:",me.type),u("只支持JPG、PNG格式的图片");return}let rt=me;if(me.size>5*1024*1024){console.log("文件过大,开始压缩:",me.size),a("图片较大,正在压缩...",2e3);try{rt=await Pe(me,1920,.8),console.log("压缩完成:",rt.size)}catch(rn){console.error("压缩失败:",rn),u("图片压缩失败,请选择较小的图片");return}}const ht=await Fe(rt);v.value=ht,console.log("选择文件:",ht.name),console.log("开始上传文件到服务器"),await Re(ht)}catch(Be){console.error("处理文件失败:",Be)}},pt=async me=>{try{console.log("handleFileUpload 被调用",me);const Be=me.target.files[0];console.log("选择的文件:",Be),Be?await Ne(Be):console.log("没有选择文件")}catch(Be){console.error("文件上传处理失败:",Be)}},Rt=async()=>{try{if(console.log("startIdentification 被调用"),A.value){console.log("识别正在进行中,忽略重复点击"),d("识别正在进行中,请勿重复点击");return}if(!p.value){console.log("未选择场景"),d("请先选择场景");return}if(!h.value){console.log("未上传图片"),d("请先上传图片");return}try{console.log("检查最新识别记录是否已点评");const yt=await Bn.getLatestRecognitionRecord({});if(yt.statusCode===200&&yt.data){const jt=yt.data;if(console.log("最新识别记录:",jt),jt.effect_evaluation===0||!jt.effect_evaluation){d("请先对上一次识别结果进行点评,再进行新的识别");return}}}catch(yt){console.error("检查最新识别记录失败:",yt)}console.log("开始识别:",{scenario:he[p.value].name,image:h.value}),A.value=!0,l("开始进行隐患提示,请稍候...");const me="",Be="蜀道用户",rt=new Date,ht=rt.getFullYear(),rn=String(rt.getMonth()+1).padStart(2,"0"),Ye=String(rt.getDate()).padStart(2,"0"),Je=`${ht}/${rn}/${Ye}`,lt=me.length>=4?me.slice(-4):me,Ue={scene_name:p.value,image:h.value,account:lt,username:Be,date:Je};console.log("发送隐患提示请求:",Ue);const ze=await Bn.hazardDetection(Ue);if(console.log("隐患提示响应:",ze),ze.code===200||ze.statusCode===200){if(S.value=ze.data,ze.data.annotated_image&&(k.value=`${ze.data.annotated_image}`),y.value="detail",D.value=!0,q.value=!0,setTimeout(()=>{D.value=!1,q.value=!1,Bt()},6e3),await we(),U.value.length>0){const yt=U.value[0];m.value=yt,U.value.forEach(jt=>{jt.isActive=jt.id===yt.id}),console.log("自动选中最新记录:",yt)}console.log("识别结果:",ze.data),console.log("标注图片URL:",k.value)}else u(ze.msg||"隐患提示失败")}catch(me){console.error("开始识别失败:",me),u("隐患提示失败: "+(me.msg||"未知错误"))}finally{A.value=!1}},Bt=()=>{try{console.log("开始整个分析文本流式输出效果"),B.value=!1,N.value="";const me=S.value?.scene_name,Be=me?he[me]?.name:"未知场景",rt=S.value?.labels||"",ht=Array.isArray(rt)?rt.join(""):rt,rn=`经过智能分析,发现场景:[${Be}][${ht}]`;B.value=!0;let Ye=0;const Je=setInterval(()=>{Ye<rn.length?(N.value=rn.substring(0,Ye+1),Ye++):(clearInterval(Je),B.value=!1,console.log("分析文本流式输出完成"))},100)}catch(me){console.error("开始分析文本流式输出失败:",me),B.value=!1}},en=async me=>{try{console.log("handleHistoryDetail 被调用,历史记录:",me),m.value=me,y.value="detail",G.value=!0,Z.value=!0,console.log("开始获取记录详情,ID:",me.id);const Be=await Bn.getRecognitionRecordDetail({recognition_record_id:me.id});if(Be.statusCode===200||Be.code===200){const rt=Be.data;console.log("获取详情成功:",rt),S.value={scene_name:rt.tag_type||Wt(rt.labels),labels:rt.labels,total_detections:rt.labels&&Array.isArray(rt.labels)?rt.labels.length:0,third_scenes:rt.third_scenes||[]};const ht=rt.recognition_image_url||rt.original_image_url;k.value=ht;const rn=rt.tag_type||Wt(rt.labels);me.tagType=rn}else{console.error("获取详情失败:",Be.message),u("获取记录详情失败"),S.value={scene_name:me.tagType||"simple_supported_bridge",labels:me.labels,total_detections:0,third_scenes:[]};const rt=me.recognitionImageUrl||me.originalImageUrl;k.value=rt}U.value.forEach(rt=>{rt.isActive=rt.id===me.id}),console.log("历史记录状态已更新")}catch(Be){console.error("处理历史记录失败:",Be),u("获取记录详情失败")}finally{G.value=!1,Z.value=!1}},Wt=me=>{if(!me)return"gas_station";let Be="";return Array.isArray(me)?Be=me.join(" ").toLowerCase():Be=String(me).toLowerCase(),Be.includes("隧道")?"tunnel":Be.includes("桥梁")?"simple_supported_bridge":Be.includes("加油站")?"gas_station":Be.includes("设备")?"special_equipment":Be.includes("高速")?"operate_highway":"simple_supported_bridge"},Ut=()=>{const me=new Date,Be=me.getMonth()+1,rt=me.getDate(),ht=me.getHours().toString().padStart(2,"0"),rn=me.getMinutes().toString().padStart(2,"0");return`${Be}月${rt}日 ${ht}:${rn}`},ct=me=>{try{console.log("主图片加载失败")}catch(Be){console.error("处理主图片错误失败:",Be)}},_t=()=>{try{console.log("openImagePreview 被调用"),M.value=!0,console.log("图片预览已打开")}catch(me){console.error("打开图片预览失败:",me)}},st=()=>{try{console.log("closeImagePreview 被调用"),M.value=!1,console.log("图片预览已关闭")}catch(me){console.error("关闭图片预览失败:",me)}},Ot=async me=>{try{console.log("openExampleModal 被调用,隐患信息:",me),L.value=me,ie.value=!0;const Be=await Bn.getThirdSceneExampleImage({third_scene_name:me.description});if(console.log("获取示例图响应:",Be),Be.statusCode===200){const rt=Be.data;rt&&(rt.correct_example_image||rt.error_example_image)?(W.value={correctImageUrl:rt.correct_example_image||"",errorImageUrl:rt.error_example_image||""},ee.value={correct:!!rt.correct_example_image,error:!!rt.error_example_image},$.value=!0,console.log("示例弹窗已打开,示例图数据:",W.value)):(d("暂无示例图"),console.log("没有找到示例图数据"))}else u("获取示例图失败: "+(Be.msg||"未知错误")),console.error("获取示例图失败:",Be.msg)}catch(Be){console.error("打开示例弹窗失败:",Be),u("获取示例图失败,请稍后重试")}finally{ie.value=!1}},Ae=()=>{try{console.log("closeExampleModal 被调用"),$.value=!1,W.value={},L.value=null,ie.value=!1,ee.value={correct:!1,error:!1},console.log("示例弹窗已关闭")}catch(me){console.error("关闭示例弹窗失败:",me)}},je=(me,Be)=>{console.log(`图片加载失败 (${Be}):`,me.target.src),Be==="correct"?(W.value.correctImageUrl="",ee.value.correct=!1):Be==="error"&&(W.value.errorImageUrl="",ee.value.error=!1)},at=(me,Be)=>{const rt=me.target,ht=rt.naturalWidth/rt.naturalHeight;ht>1?(rt.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${Be}): 横图, 宽高比: ${ht.toFixed(2)}`)):(rt.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${Be}): 竖图, 宽高比: ${ht.toFixed(2)}`)),Be==="correct"?ee.value.correct=!1:Be==="error"&&(ee.value.error=!1)},gt=async()=>{try{console.log("打开点评弹窗"),te.value=!0,m.value?.effect_evaluation>0?await nn():X.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(me){console.error("打开点评弹窗失败:",me)}},nn=async()=>{try{if(!m.value?.id)return;console.log("📝 开始加载点评数据,记录ID:",m.value.id);try{const Be=await Bn.getRecognitionRecordDetail({recognition_record_id:m.value.id});if(console.log("📝 详情接口响应:",Be),Be.statusCode===200||Be.code===200){const rt=Be.data;console.log("📝 移动端加载点评数据:",rt),console.log("📝 用户备注字段:",rt.user_remark),X.value={sceneMatch:rt.scene_match===1,promptAccurate:rt.tip_accuracy===1,rating:rt.effect_evaluation||0,userRemark:rt.user_remark||""},console.log("📝 设置后的evaluationData:",X.value)}else console.warn("📝 详情接口返回错误:",Be),X.value={sceneMatch:null,promptAccurate:null,rating:m.value.effect_evaluation||0,userRemark:""}}catch(Be){console.error("📝 详情接口调用失败:",Be),X.value={sceneMatch:null,promptAccurate:null,rating:m.value.effect_evaluation||0,userRemark:""}}m.value&&(m.value.effect_evaluation=X.value.rating);const me=U.value.find(Be=>Be.id===m.value?.id);me&&(me.effect_evaluation=X.value.rating)}catch(me){console.error("📝 加载点评数据失败:",me),X.value={sceneMatch:null,promptAccurate:null,rating:m.value?.effect_evaluation||0,userRemark:""}}},Tn=()=>{try{console.log("关闭点评弹窗"),te.value=!1}catch(me){console.error("关闭点评弹窗失败:",me)}},He=async()=>{try{if(console.log("提交评价:",X.value),X.value.sceneMatch===null||X.value.promptAccurate===null||X.value.rating===0){d("请完成所有评价项目");return}const me=await Bn.submitEvaluation({id:m.value?.id,scene_match:X.value.sceneMatch?1:0,tip_accuracy:X.value.promptAccurate?1:0,effect_evaluation:X.value.rating,user_remark:X.value.userRemark});if(me.statusCode===200||me.code===200){l("评价提交成功"),m.value&&(m.value.effect_evaluation=X.value.rating);const Be=U.value.find(rt=>rt.id===m.value?.id);Be&&(Be.effect_evaluation=X.value.rating),Tn()}else u("评价提交失败: "+(me.msg||"未知错误"))}catch(me){console.error("提交评价失败:",me),u("评价提交失败,请稍后重试")}},ke=async(me,Be)=>{try{console.log("开始删除移动端历史记录:",me);const rt=await Bn.deleteRecognitionRecord({recognition_record_id:me.id});rt.statusCode===200?(U.value.splice(Be,1),j.value=Math.max(0,j.value-1),me.isActive&&(console.log("删除激活的历史记录,执行新建任务"),De()),console.log("✅ 移动端历史记录删除成功"),l("删除成功")):console.error("❌ 删除移动端历史记录删除失败:",rt)}catch(rt){console.error("❌ 删除移动端历史记录失败:",rt)}};return jn(async()=>{try{console.log("🚀 移动端隐患提示页面初始化完成")}catch(me){console.error("❌ 移动端隐患提示页面初始化失败:",me)}}),St(c,async me=>{me&&U.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await we())}),(me,Be)=>(F(),K("div",cun,[Ve(f2,{title:"隐患提示",onBack:n,onMenu:r}),x("div",dun,[Ve(j5,{visible:!A.value&&c.value,title:"历史记录",historyData:U.value,loading:H.value,onClose:Be[0]||(Be[0]=rt=>c.value=!1),onCreateNewTask:De,onHandleHistoryItem:pe,onDeleteHistoryItem:ke},null,8,["visible","historyData","loading"]),y.value==="main"?(F(),K("div",fun,[x("div",pun,[x("div",{class:re(["tab-item",{active:f.value==="detect"}]),onClick:Be[1]||(Be[1]=rt=>f.value="detect")},Be[14]||(Be[14]=[x("span",null,"智能识别",-1)]),2),x("div",{class:re(["tab-item",{active:f.value==="process"}]),onClick:Be[2]||(Be[2]=rt=>f.value="process")},Be[15]||(Be[15]=[x("span",null,"使用流程",-1)]),2)]),f.value==="detect"?(F(),K("div",hun,[Be[24]||(Be[24]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null,"基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议")],-1)),x("div",gun,[Be[16]||(Be[16]=x("h4",null,"步骤一:选择场景",-1)),Be[17]||(Be[17]=x("p",{class:"step-description"},"请先选择您要识别的工程场景",-1)),x("div",vun,[(F(),K(Pt,null,an(he,(rt,ht)=>x("div",{key:ht,class:re(["scenario-tag",{active:p.value===ht,disabled:ht!=="gas_station"&&ht!=="simple_supported_bridge"&&ht!=="tunnel"&&ht!=="special_equipment"&&ht!=="operate_highway","identifying-disabled":A.value,compact:ht==="operate_highway"}]),onClick:rn=>!A.value&&(ht==="gas_station"||ht==="simple_supported_bridge"||ht==="tunnel"||ht==="special_equipment"||ht==="operate_highway")?oe(ht):null},We(rt.name),11,mun)),64))])]),x("div",yun,[Be[23]||(Be[23]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:re(["upload-area",{"drag-over":w.value}]),onClick:ce},[h.value?(F(),K("div",bun,[x("img",{src:h.value,alt:"已上传的图片",class:"uploaded-image"},null,8,wun),x("div",Aun,[x("button",{class:"change-image-btn",onClick:Qt(Ee,["stop"])},"更换图片")])])):(F(),K("div",Cun,[Be[18]||(Be[18]=x("img",{src:pke,alt:"上传图标",class:"upload-icon"},null,-1)),Be[19]||(Be[19]=x("p",{class:"upload-text"},"点击上传图片",-1)),Be[20]||(Be[20]=x("p",{class:"upload-format"},"支持JPG、PNG格式",-1)),x("button",{class:"select-file-btn",onClick:Qt(ce,["stop"])},"选择图片文件")])),b.value?(F(),K("div",xun,Be[21]||(Be[21]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),A.value?(F(),K("div",Sun,Be[22]||(Be[22]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在识别隐患...",-1)]))):xe("",!0),x("input",{ref_key:"fileInput",ref:g,type:"file",accept:"image/*",onChange:pt,style:{display:"none"}},null,544)],2)]),x("div",Eun,[x("button",{class:re(["start-identify-btn",{"btn-disabled":A.value}]),onClick:Rt,disabled:A.value},[x("img",{src:h.value?C(vke):C(gke),alt:"开始识别",class:"btn-bg"},null,8,Tun)],10,kun)])])):xe("",!0),f.value==="process"?(F(),K("div",_un,Be[25]||(Be[25]=[ki('<div class="process-header" data-v-d7d3f7a6><h3 data-v-d7d3f7a6>使用流程</h3><p data-v-d7d3f7a6>了解如何使用智能隐患识别系统</p></div><div class="process-steps" data-v-d7d3f7a6><div class="step-item" data-v-d7d3f7a6><div class="step-number" data-v-d7d3f7a6>1</div><div class="step-text" data-v-d7d3f7a6><h4 data-v-d7d3f7a6>选择场景</h4><p data-v-d7d3f7a6>从支持的五种工程场景中选择您要检测的场景类型</p></div></div><div class="step-item" data-v-d7d3f7a6><div class="step-number" data-v-d7d3f7a6>2</div><div class="step-text" data-v-d7d3f7a6><h4 data-v-d7d3f7a6>上传图片</h4><p data-v-d7d3f7a6>上传您要识别的场景图片,支持JPG、PNG格式</p></div></div><div class="step-item" data-v-d7d3f7a6><div class="step-number" data-v-d7d3f7a6>3</div><div class="step-text" data-v-d7d3f7a6><h4 data-v-d7d3f7a6>开始识别</h4><p data-v-d7d3f7a6>点击开始识别按钮,系统将自动检测场景中的隐患</p></div></div><div class="step-item" data-v-d7d3f7a6><div class="step-number" data-v-d7d3f7a6>4</div><div class="step-text" data-v-d7d3f7a6><h4 data-v-d7d3f7a6>查看结果</h4><p data-v-d7d3f7a6>识别完成后可查看详细的分析结果和隐患列表</p></div></div></div>',2)]))):xe("",!0)])):xe("",!0),y.value==="detail"?(F(),K("div",Dun,[x("div",Iun,[x("div",Oun,[Be[26]||(Be[26]=x("img",{src:aun,alt:"顶部图标",class:"header-icon"},null,-1)),x("div",Mun,[x("span",Pun,We(S.value?.scene_name?he[S.value.scene_name]?.name:"隐患提示结果"),1),x("span",{class:re(["sub-title-tag",Y(S.value?.scene_name)])},We(S.value?.scene_name?he[S.value.scene_name]?.name:"未知场景"),3)])]),x("div",Nun,[x("div",Run,We(m.value?.time||Ut()),1)])]),x("div",Bun,[G.value||Z.value?(F(),K("div",Lun,[Be[27]||(Be[27]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,We(G.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",Fun,[x("div",{class:"evaluation-status",onClick:gt},[x("span",{class:re(["status-badge",m.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},We(m.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",Uun,[D.value?(F(),K("img",{key:0,src:h.value,alt:"用户上传图片",class:"original-image"},null,8,$un)):xe("",!0),D.value?(F(),K("div",zun,Be[28]||(Be[28]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0),D.value?xe("",!0):(F(),K("img",{key:2,src:k.value,alt:"隐患提示图片",class:"main-image",onClick:_t,style:{cursor:"pointer",transform:"none !important"},onError:ct},null,40,jun))])]),x("div",Hun,[Be[30]||(Be[30]=x("div",{class:"analysis-header"},[x("img",{src:sun,alt:"警告标志",class:"warning-icon"}),x("h3",null,"识别结果分析")],-1)),x("div",Wun,[x("p",Vun,[q.value?(F(),K("span",qun," 蜀道安全管理AI智能助手正在为您分析图片,请稍候…… ")):(F(),K(Pt,{key:1},[B.value?(F(),K("span",Gun,We(N.value),1)):!B.value&&S.value?(F(),K("span",Kun,[Be[29]||(Be[29]=xn(" 经过智能分析,发现场景:",-1)),x("span",{class:re(["scene-tags",Y(S.value?.scene_name)])},"["+We(S.value?.scene_name?he[S.value.scene_name]?.name:"未知场景")+"]",3),x("span",Qun,"["+We(S.value.labels)+"]",1)])):xe("",!0)],64))])])]),x("div",Yun,[Be[32]||(Be[32]=x("div",{class:"hazards-header"},[x("h3",null,"该场景常见隐患有:")],-1)),x("div",{class:re(["hazards-content",{"scanning-mode":D.value}])},[D.value?(F(),K("div",Zun,Be[31]||(Be[31]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(F(),K("div",Xun,[(F(!0),K(Pt,null,an(S.value?.third_scenes||[],(rt,ht)=>(F(),K("div",{key:ht,class:"hazard-line"},[x("span",Jun,We(ht+1),1),x("span",ecn,We(rt),1),x("button",{class:"example-btn",onClick:rn=>Ot({number:ht+1,description:rt})},"示例",8,tcn)]))),128))]))],2)])]),M.value?(F(),K("div",{key:0,class:"image-preview-overlay",onClick:st},[x("img",{src:k.value,alt:"预览图片",class:"preview-image"},null,8,ncn)])):xe("",!0),$.value?(F(),K("div",{key:1,class:"example-modal-overlay",onClick:Ae},[x("div",{class:"example-modal",onClick:Be[7]||(Be[7]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[Be[33]||(Be[33]=x("span",{class:"modal-title"},"示例详情",-1)),x("img",{src:mj,alt:"关闭",class:"close-icon",onClick:Ae})]),x("div",rcn,[x("div",ocn,We(L.value?.number),1),x("span",icn,We(L.value?.description),1)]),x("div",acn,[ie.value?(F(),K("div",scn,Be[34]||(Be[34]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载示例图...",-1)]))):(F(),K("div",lcn,[x("div",ucn,[x("div",ccn,[ee.value.correct?(F(),K("div",dcn,Be[35]||(Be[35]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载图片...",-1)]))):xe("",!0),W.value.correctImageUrl?(F(),K("img",{key:1,src:W.value.correctImageUrl,alt:"正确示例图片",style:Xt({display:ee.value.correct?"none":"block"}),onError:Be[3]||(Be[3]=rt=>je(rt,"correct")),onLoad:Be[4]||(Be[4]=rt=>at(rt,"correct"))},null,44,fcn)):xe("",!0),!W.value.correctImageUrl&&!ee.value.correct?(F(),K("div",pcn,Be[36]||(Be[36]=[x("div",{class:"placeholder-text"},"暂无示例图",-1)]))):xe("",!0),Be[37]||(Be[37]=x("div",{class:"image-label correct-label"},[x("img",{src:lun,alt:"正确",class:"label-icon"})],-1))])]),x("div",hcn,[x("div",gcn,[ee.value.error?(F(),K("div",vcn,Be[38]||(Be[38]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载图片...",-1)]))):xe("",!0),W.value.errorImageUrl?(F(),K("img",{key:1,src:W.value.errorImageUrl,alt:"错误示例图片",style:Xt({display:ee.value.error?"none":"block"}),onError:Be[5]||(Be[5]=rt=>je(rt,"error")),onLoad:Be[6]||(Be[6]=rt=>at(rt,"error"))},null,44,mcn)):xe("",!0),!W.value.errorImageUrl&&!ee.value.error?(F(),K("div",ycn,Be[39]||(Be[39]=[x("div",{class:"placeholder-text"},"暂无示例图",-1)]))):xe("",!0),Be[40]||(Be[40]=x("div",{class:"image-label error-label"},[x("img",{src:uun,alt:"错误",class:"label-icon"})],-1))])])]))])])])):xe("",!0)])):xe("",!0),te.value?(F(),K("div",{key:2,class:"evaluation-modal-overlay",onClick:Tn},[x("div",{class:"evaluation-modal",onClick:Be[13]||(Be[13]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[Be[41]||(Be[41]=x("span",{class:"modal-title"},"点评确认",-1)),x("img",{src:mj,alt:"关闭",class:"close-icon",onClick:Tn})]),x("div",bcn,[x("div",wcn,[Be[42]||(Be[42]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",Acn,[x("button",{class:re(["answer-btn",{active:X.value.sceneMatch===!0,disabled:m.value?.effect_evaluation>0}]),onClick:Be[8]||(Be[8]=rt=>m.value?.effect_evaluation>0?null:X.value.sceneMatch=!0)}," 是 ",2),x("button",{class:re(["answer-btn",{active:X.value.sceneMatch===!1,disabled:m.value?.effect_evaluation>0}]),onClick:Be[9]||(Be[9]=rt=>m.value?.effect_evaluation>0?null:X.value.sceneMatch=!1)}," 否 ",2)])]),x("div",Ccn,[Be[43]||(Be[43]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",xcn,[x("button",{class:re(["answer-btn",{active:X.value.promptAccurate===!0,disabled:m.value?.effect_evaluation>0}]),onClick:Be[10]||(Be[10]=rt=>m.value?.effect_evaluation>0?null:X.value.promptAccurate=!0)}," 是 ",2),x("button",{class:re(["answer-btn",{active:X.value.promptAccurate===!1,disabled:m.value?.effect_evaluation>0}]),onClick:Be[11]||(Be[11]=rt=>m.value?.effect_evaluation>0?null:X.value.promptAccurate=!1)}," 否 ",2)])]),x("div",Scn,[Be[44]||(Be[44]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",Ecn,[(F(),K(Pt,null,an(5,rt=>x("span",{key:rt,class:re(["star",{active:rt<=X.value.rating,disabled:m.value?.effect_evaluation>0}]),onClick:ht=>m.value?.effect_evaluation>0?null:X.value.rating=rt}," ★ ",10,kcn)),64))])]),be.value?(F(),K("div",Tcn,[Be[45]||(Be[45]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",_cn,[ln(x("textarea",{"onUpdate:modelValue":Be[12]||(Be[12]=rt=>X.value.userRemark=rt),disabled:m.value?.effect_evaluation>0,class:re(["remark-textarea",{disabled:m.value?.effect_evaluation>0}]),placeholder:"请输入您的意见或建议...",maxlength:"200",rows:"4"},null,10,Dcn),[[jr,X.value.userRemark]]),x("div",Icn,[x("span",{class:re({"over-limit":X.value.userRemark.length>200})},We(X.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!m.value?.effect_evaluation||m.value.effect_evaluation===0?(F(),K("div",Ocn,[x("button",{class:"submit-btn",onClick:He},Be[46]||(Be[46]=[x("img",{src:hke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)]),Ve(d2,{visible:o.value,message:i.value,onClose:s},null,8,["visible","message"])]))}},Pcn=Qo(Mcn,[["__scopeId","data-v-d7d3f7a6"]]),d0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW4SURBVHic7dy/T1tXFAfw77n3obQpIrYoSZhiBqiYoGuqKKSqVFWRKFGH/hhCUnVqh4Ytm8N/QJYuqRQztUuUH0srNWqI1M7AhIgrYakDOCniVUI0Eb7vdLCNMAbs5x/vvZOcz2b72e+gL+ce32fLhA5Y2+LU7ks3RZ4dAzjDAcYBgAiZTrz+a8AHUADgg2gpCNzTILBLo4NUaPeFqdUnrm1xqvQquAZDnwKYaLeQN9QCu2DewS60GmboANe2OFUq4Xsw3wCQauWkqh6Bc7vOzIYNMlSA+Rec1eC6ygfz3PAZO9vsE5oKcGWdM57l+0B5tqnuYkbBBXSpmW40jQ549pyveZYXoeFFhggZz/LiapGnGh17bID5DXeDwHehS2YcUob4fr7osscddOQSmi+6LIhudbwsFV7AM8Nn7dxhDx0a4GqRpwzx/e5WpcJg0PWR05Q7eH9dgJU3LIvQZTNp/JKj9w++sambgdbwE2h4SZSq7ARq1ASYL7qsXv5KtPH8C655U7O3hOrSKYbv9dDQUJp8YF8H9tggCw1PgvKlzAoC9rpvLb6aVEh7XWgAwMJNxFyQCqf8SRAqSyhZMx1rOSq88sd4IF0+5fJ6KG2McXqRWqjdl27KGGMvxl2Iag15dsyAWTtQLM4Y6N5PLA4wbgC9dCaZdqBgRMg0/EqFSjYNUDgNUDgNUDgv6hPee7yF+Ueb2N4Joj51KL0nDaYn+/HZR+m4SzlW5B0oITwA2N4JMP9oM+4yGoo8QAnhVUmoVWegcBqgcBqgcBqgcBqgcBqgcBqgcJFfiWnk9x9HQh3/4TfPOvr8Vo+3lvDlJ2l8PfVuqNdrl3ZghzjH+OmXrcjPqwF2kHMc+Tk1QOESNwPbFXamSacdKJwGKJwGKNxrNwO7vQ9MGu1A4TRA4TRA4RI3A9udSdJnWljagcJpgMJpgMIlbgaG3ce1S/rM1A4UTgMUTgMULnEzUPpMipp2oHAaoHAaoHCJm4G6DwxHO1A4DVA4DVC4xM1A6TMpatqBwmmAwmmAwiVuBuo+MBztQOE0QOE0QOESNwOlz6SoaQcKpwE2sL3jam6n++yRx6b7ol/QIg+w96Ss/5mNzVLN7fNjvUcee37snW6XUyf6AN8++j84iZZXd2puX53sR19v/d/Q12txdbI/qrL2RB7gxx/0RX3Kttz7za9ZRgfSHu5kz+HyhVNI93lI91lcvnAKd7LnMJCOfgml/PMg0h832d5x+Ormmohfw62anuzHdAzd1YwYZqDFt58PRH3atsw/2sSvf/4bdxmHirwDq/5Y3MYPP7/AxuZuHKdvyXdfDCTuV+xjCxAANv7Zxb3HW1he/Q9//f0qrjJCOdvfg+nJ/sTM8lgDVO2TtSlTdTRA4TRA4TRA4QwzCnEXoVrmawfKVjBksBR3FaplvgGoEHcVqkVES4ZLbjnuOlRrgsA9pbUtTpV2Ofrfy1dtKzkaMkNp8gEsxF2MCm1hdJAK5XehAT+MuRgVErtgHqhs5L0TJgfAj7MgFY6DXQAqAQ6lyQfRXKwVqaYRODc6WN497G3kPQ+3oV0ogb/rzGz1xl6A2oVCMM9Vuw8A6ODj+efBIoDxKGtSzWFGYeSMGdp/X9210JKjK9ClNIl8F9Clg3fWBTg6SAUGzURTk2pWwHR9/9JZdeinESOnKYeANcSkYL713hl6cNhDdTNwv3zRZUF0qytFqeYEPDN81h755vLYAAFgtchThvgugFRHC1ON+AyaGTlNueMOahggAKysc8YafkKETCcqUw0tlRxdOWzmHdRUgFWVJfUGtBu7xQfR3PAAzTY+tCxUgEC5G3tskGXQtbDPVUfyQTTnebhd+XSoaaEDrFpZ54yFmyBrpgFMtPo6b7gFBPzQO2FyYYOrajnA/VbWOWOMGzfGXgTzOMpLbAa61AIoX0EBgPL3j6jAJbfc85Z90Gpo+/0PkDm66wtLEb0AAAAASUVORK5CYII=",f0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAATQSURBVHic7dsxbxNnGMDx//M6NLSCYE+tmZy5A2EtA/AJGtQPQBBSp0olQ2cnc5d0rVRhRoYKWLoShnarEqR26hBPMahSfcRVKdS+p0PsyCROcnfYuXvs5zc69uVR/nrfO58dYQzaO1ounWc5CFcUagpLAAK1cRx/CkRAEyUSYTuOedYTtitVab7vgSXrC9s7Wg7zrITA58CN9x1kJimbCg96sJk1ZuqA7R0tz33E1yj3gHKWX+qOEqHxX8x62pCpAnZeat3DTVSEsnGxKutJX5AoYLultTnhEf1zm5sshWZPuZlkNYbTnrDX0pU5YQuPd2YEanPC1t6uLp/23BMDvtrVeyLcx7fMPJQl8KjT0vpJTzp2C+20tI6wNvaxXGpxzOqly7Ix6mcjA+7t6rIEHk12LJeGKncWqtI4/PiRgP0Lli182yyaqKtcPXxhc+QcWBKe4vGKqNx/J/COdwJ2Wlr321+FttR5+e5FzcEW6lunGVH3NYuVRYlgaAWeC9TxeBbs38rsEzhYfTv5zeRSOliFAaDknyZYUw7zrEB/CxW4nes4LrX+x3iIb592dV9TCSX1m9RWlc6zHELget6DuGyCcCWor0CzFGoB8fd+ViksBfzWmWnSeaGa9xAuu1O/UuGKzQMa5wGN84DGzeU9wMCvD//k5x9avPm7N5bjffPL1bEcp+gKswLHGW+U77/4nVettxM7fl4KE3CS8QBetd7y8Ks/pi5iYQKehWmMOFMBYfoizlxAmK6IMxkQpifizAaE6Yg40wHBfsSZDwi2I3rAPqsRPeAQixE94CHWInrAESxF9IDHsBLRA57AQkQPeIqiR/SACRQ5ogdMqKgRZybgpeoH732MQcQiKcx3Yibtyx8/zXuEiZiZFTitPKBxUxvwt5/+ynuEM1GYf2759rOtvEdIpSjfO53aFTgrPKBxHtA4D2icBzTOAxrnAY3zgMZ5QOM8oHEe0DgPaJwHNM4DGucBjfOAxnlA4zygcR7QOA9onAc0zgMa5wGN84DGeUDjPKBxHtA4D2icBzSuMAHnL5TyHiGxIs1amIDX7lYL9Yc5zvyFEtfuVvMe40Bh/j/QZVOYFeiy8YDGeUDjPKBxQaGZ9xAus8hXoG3NILCd9xQuIyUK4luoWSJsh1h5nvcgLps45pm0d7Q89yHtvIdx6XWVxVBZlAjYzHsYl5KyWalKMwDEMU/ynselo/AA+m/k4zc0gCjPgVw6vf6uGQAqixIhbOQ6kUtMhEalKk0AGTzYv5jZAcp5DeYSibrK1UHAgzsxvgqNUDYG8WBoBQ50XugWsHSWM7lkFJoLn8ji8GNH7oV2lVv4BU0RRT3l5uEHjwSsVKWpyurZzOSS0pg7w1vnwMhPIxaq0ohjj1gYytrCZXk86kdHzoHDOi2tI6xNZCiXSByzeumyHHtxeWJAgL1dXZbAffztxVmLVFldqErjpCedGhCg3dJaSXgqUBvHZO5U213l1qhz3mGJAg70t9R7+GqclAhh4+LHsp70BakCwv5qPBeoq7KS9rXuWBHCRvcfvut/OpRY6oAD7ZbWSnBD4DbCjazHmXGbccyT+A2NtOEGMgcc1m5praQshcB1VZYQyuyfL32rZf8OCoDAtkAzVp73/uVx1mjD/gd/psDhup+w2wAAAABJRU5ErkJggg==",Ncn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAUaSURBVHic7dy/axtnGAfw73OSjoI9yNgpOIHmMjs00lA6hTizhyhQTDLFgWbpUvsvsP0fOEuXBKJMCaZgZ/AchU6lgxRTz1UCiSC18Q0JhJOtp4N+VJZl6+58eu8e6flsPp30PubL897pkRAhAnxYzqJuF5CiGyB2wMi1HnKieH352AWoCmYXZFXAR29QP67QbL560Vem0CUdlrM4yiyBcAdE8xctZCwxlwB6jrpXChtm4AD5sJxFw/4V4GWAsmEWVX0V4XnrQYMMFCAf7K1qcMPELkAbND237vcZvgLkWtmBbW8BnWubGq4qPO+2n260Bp3A+3tLsDNlaHgmObAzZd7fLQw68dwA+d+/l0F4pltmHCgLSm01L1vnnHXWA60nrkVdlgqhwSt06fpGv4f6Bsj7uwVQamu4ValAGA9pZq7Ye/hUgM0blkxZt82kYRdePd97Y3P6GmjbrzW8JKJs653ACScCbF33HFMlqcByvTc1nS1Ut04p2IVVv0ZTeRfo7kDbXtXwJKDWKLP1F9CZtPwTX1EqmP+7sNmBGXs+3oJUMNT8JAidLZQfxFiNCoNwBwBIt0/BLG/KQialQ2qp6nbBAqVvxV2HCilFNyxwQztQKmLHAul7P7EYOQtgJ+46VHiWTl9EcwZ+pUIlmwYonAYonAYoXDruAs7yx08/9j1+8/c/R3LdsLQDhdMAhdMAhSM+2GPTi77bfIKPOy9x9OWz6aWHIj0xiSsL9/Hd4s/m1za94PvNp3i/+dT0skN19OUz3m0+AYNxdfGR0bWNb6Efdl6YXtKYjzsvja9pPMBR2Tb7ieN/05sY4TRA4TRA4TRA4TRA4TRA4WKZxKjoaAcKpwEKpwEKZ3yYfdYn3qPC9Cf32oHCaYDCaYDCJfZbaVH74bdtfPPt7IljXz/V8NcvhVDnJcXYdGBvKBc9lhRjE+Co0gCF0wCFG5sAv36qRXosKYx/GqGTmGiNTQeOKg1QOA1QuMROYqKenOgkxrCoJyc6iVGJpAEKpwEKl9gAo56c6CQmIjqJiVZiO1D5owEKpwEKp5OYhE5Y/EpsB477hMWvxAao/NEAhdMAhUtsgOM+YfFLJzER00mMCkQDFE4DFE4DFM54gOmJSdNLGhPH/2Y8wMsL90wvacyVhfvG1zQ+zL66+AgEwoedFyPz26HpiUlcXrgXy08u6y81Cac3McJpgMJpgMJpgMJZAKpxF6HCYlc7UDSqWiBU4i5DhcTsWmCqxl2HComsioVjfht3HSokPnpjIeNtx12HCql+XLFoKu+CuRR3LSog5hLN5qvNu1DGq5jLUYHRc6D9Rj5dLwLsxlmOCqjulYBWgDSVdwHaiLUgFUSRZvNVoHuUZnmPtQslYBeet97+qxOgdqEUtNHuPgCg3of5YK8MIGeyJOVblabnrnUfOD0L9by7upUmEbvwvNu9R08FSLP5KphWzBSlfOPGw+6ts63vpxE0M1dEgzXE5Fijme/7TsxOXQO78cHeKoC1YVSkfGrwCl26fubN5bkBAgDv7xZA1jOAstFWps7HLphWaGaueN5ZAwMEAK6VHdj2awBOBJWpwSrwvLv9rnm9fAXY1txSeVm7cVjYBWiDpufWB5/bFChAoNONqwCWgj5XnaUZHCzvcXOg4l/gADtL1soOMvY8wA9ANB/2dcYacwmMV0jXi0GDawsd4Ik6amUHmVQOlL4FbuRAlAXY0a22owoAIFTAVMUxv0XG2w4bWrf/AAL92Mq/AGO4AAAAAElFTkSuQmCC",Rcn={class:"mobile-ai-writing"},Bcn={class:"mobile-content"},Lcn={key:0,class:"ai-writing-card"},Fcn={key:0,class:"card-loading-overlay"},Ucn={class:"document-generation"},$cn={class:"input-area"},zcn={class:"input-actions"},jcn={class:"left-actions"},Hcn=["disabled"],Wcn={key:0,class:"file-preview-inline"},Vcn={class:"file-info-inline"},qcn={class:"file-icon-inline"},Gcn={class:"file-name-inline"},Kcn={class:"right-actions"},Qcn=["disabled"],Ycn={class:"icon-container"},Zcn={key:0,class:"recording-indicator"},Xcn=["disabled"],Jcn=["src"],edn={key:0,class:"generating-text"},tdn={class:"document-templates"},ndn={class:"template-tabs"},rdn=["onClick"],odn={class:"template-cards"},idn={class:"template-row"},adn=["src","alt"],sdn={class:"template-info"},ldn={class:"template-title"},udn={class:"template-desc"},cdn=["onClick"],ddn={key:1,class:"editor-view"},fdn={key:0,class:"editor-loading-overlay"},pdn={class:"editor-header"},hdn={class:"editor-title"},gdn={key:0,class:"editor-subtitle"},vdn={key:1,class:"editor-subtitle"},mdn={class:"editor-actions"},ydn=["disabled"],bdn={class:"editor-container"},wdn=["innerHTML"],Adn={__name:"m-AIWriting",setup(e){const t=Hl(),n=Q("main"),r=Q(!1),o=Q(!1),i=Q(!1),{isSupported:a,isListening:s,transcript:l,error:u,startListening:d,stopListening:c}=T0(),f=Q(""),p=Q(""),v=Q(null);Q(!1);const h=Q(null),g=Q("all"),y=Q([]),m=Q(0),b=Q(!1),w=Q(0),A=Q(!1),S=Q(""),k=(oe,ce=2e3)=>{S.value=oe,A.value=!0,setTimeout(()=>{M()},ce)},M=()=>{A.value=!1},D=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结报告"},{key:"meeting",name:"会议纪要"},{key:"speech",name:"决定"}],P=[{id:1,name:"公告模板",image:d0e,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:f0e,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:Ncn,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:d0e,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:f0e,category:"speech",buttonClass:"notification-btn"}],O=J(()=>g.value==="all"?P:P.filter(oe=>oe.category===g.value)),_=oe=>{switch(oe){case"公告模板":return"适用于公开发布的各类信息公告";case"通知模板":return"适用于各类通知公文,快速生成规范通知";case"工作汇报模板":return"适用于各类工作汇报";case"会议纪要模版":return"适用于正式会议的记录与事项梳理";case"决定模版":return"适用于各类专业的决定文稿";default:return"常用办公文档模板"}},B=oe=>({"announcement-btn":"icon-announcement","notification-btn":"icon-notification","report-btn":"icon-report"})[oe]||"icon-announcement",N=J(()=>f.value&&f.value.trim().length>0),q=oe=>{g.value=oe},U=oe=>{let ce="";switch(oe){case"公告模板":ce='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。';break;case"通知模板":ce='请帮我生成一份正式的通知,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">通知对象:</span>、<span class="editable-highlight" contenteditable="true">通知主题:</span>、<span class="editable-highlight" contenteditable="true">通知背景:</span>、<span class="editable-highlight" contenteditable="true">通知内容:</span>、<span class="editable-highlight" contenteditable="true">时间安排:</span>、<span class="editable-highlight" contenteditable="true">联系方式:</span>等内容。请按照标准通知格式生成全文,确保表达清楚、信息准确。';break;case"工作汇报模板":ce='请帮我生成一份正式的工作汇报,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">汇报主题:</span>、<span class="editable-highlight" contenteditable="true">汇报时间:</span>、<span class="editable-highlight" contenteditable="true">主要工作内容:</span>、<span class="editable-highlight" contenteditable="true">完成情况:</span>、<span class="editable-highlight" contenteditable="true">存在问题:</span>、<span class="editable-highlight" contenteditable="true">下步计划:</span>等内容。请按照标准工作汇报格式生成全文,确保内容全面、数据准确。';break;case"会议纪要模版":ce='请帮我生成一份正式的会议纪要,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">会议主题:</span>、<span class="editable-highlight" contenteditable="true">会议时间:</span>、<span class="editable-highlight" contenteditable="true">参会人员:</span>、<span class="editable-highlight" contenteditable="true">会议议程:</span>、<span class="editable-highlight" contenteditable="true">议题讨论:</span>、<span class="editable-highlight" contenteditable="true">决议事项:</span>、<span class="editable-highlight" contenteditable="true">后续安排:</span>等内容。请按照标准会议纪要格式生成全文,确保记录准确、要点清晰。';break;case"决定模版":ce='请帮我生成一份正式的决定,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">决定主题:</span>、<span class="editable-highlight" contenteditable="true">决定背景:</span>、<span class="editable-highlight" contenteditable="true">决定依据:</span>、<span class="editable-highlight" contenteditable="true">决定内容:</span>、<span class="editable-highlight" contenteditable="true">执行要求:</span>等内容。请按照标准决定文件格式生成全文,确保表述准确、要求明确。';break;default:ce='请帮我生成一份正式的文档,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">文档主题:</span>、<span class="editable-highlight" contenteditable="true">主要内容:</span>、<span class="editable-highlight" contenteditable="true">具体要求:</span>等内容。'}const Re=document.querySelector(".template-input-container");Re&&(Re.innerHTML=ce,f.value=ce.replace(/<[^>]*>/g,""),Vt(()=>{Re.querySelectorAll(".editable-highlight").forEach(Le=>{Le.style.backgroundColor="#3E7BFA10",Le.style.color="#3E7BFA",Le.style.padding="4px 8px",Le.style.borderRadius="6px",Le.style.fontWeight="500",Le.style.cursor="text",Le.style.border="1px solid transparent",Le.style.display="inline-block",Le.style.minWidth="20px",Le.style.margin="6px 8px 6px 0",Le.addEventListener("click",()=>{Le.contentEditable="true",Le.focus()}),Le.addEventListener("blur",()=>{Le.contentEditable="false"})})}))},j=oe=>{const ce=oe.target;f.value=ce.textContent||"",Vt(()=>{ce.querySelectorAll(".editable-highlight").forEach(Ee=>{Ee.style.backgroundColor="#3E7BFA10",Ee.style.color="#3E7BFA",Ee.style.padding="4px 8px",Ee.style.borderRadius="6px",Ee.style.fontWeight="500",Ee.style.cursor="text",Ee.style.border="1px solid transparent",Ee.style.display="inline-block",Ee.style.minWidth="20px",Ee.style.margin="6px 8px 6px 0"})})},H=oe=>{oe.preventDefault();const ce=window.getSelection();ce.toString().trim()&&navigator.clipboard.writeText(ce.toString())},G=()=>{const oe=document.createElement("input");oe.type="file",oe.accept=".pdf,.doc,.docx,.txt,.jpg,.jpeg,.png",oe.onchange=ce=>{const Re=ce.target.files[0];Re&&(v.value={name:Re.name,size:Re.size,icon:Z(Re.type)})},oe.click()},Z=oe=>oe.includes("pdf")?"📄":oe.includes("word")||oe.includes("document")?"📝":oe.includes("image")?"🖼️":"📎",$=()=>{v.value=null},L=()=>{if(!a.value){k("当前浏览器不支持语音识别");return}s.value?c():d()};St(l,oe=>{if(!oe)return;const ce=document.querySelector(".template-input-container");ce&&(ce.textContent=oe,f.value=oe)}),St(u,oe=>{oe&&k(String(oe))});const W=async()=>{if(!N.value){console.log("请输入内容");return}n.value="editor",o.value=!0;try{console.log("开始调用AI写作API..."),console.log("对话ID:",w.value),console.log("消息内容:",f.value);const oe=await Bn.sendDeepseekMessage({ai_conversation_id:w.value,message:f.value,business_type:2});if(console.log("AI写作API响应:",oe),oe.statusCode===200){oe.data&&oe.data.ai_conversation_id&&(w.value=oe.data.ai_conversation_id);const ce=oe.data.reply;if(ce)p.value=ce;else{const Re=ie(f.value);p.value=Re}console.log("AI写作成功,文档内容已设置")}else{console.error("AI写作失败:",oe),k("生成失败,请重试");const ce=ie(f.value);p.value=ce}o.value=!1}catch(oe){console.error("AI写作API调用失败:",oe),k("网络错误,请重试");const ce=ie(f.value);p.value=ce,o.value=!1}},ie=oe=>`
- <div class="document-content">
- <h1>总结报告</h1>
- <div class="content-body">
- <h2>一、工作总结</h2>
- <p>根据您的要求,以下是详细的总结报告内容:</p>
- <p>${oe}</p>
-
- <h2>二、主要成果</h2>
- <ul>
- <li>完成项目目标,达成率100%</li>
- <li>团队协作效率提升30%</li>
- <li>客户满意度达到95%</li>
- </ul>
-
- <h2>三、存在的问题</h2>
- <p>在执行过程中,我们发现了以下问题和不足:</p>
- <ul>
- <li>时间安排有待优化</li>
- <li>资源配置需要调整</li>
- <li>沟通机制需要完善</li>
- </ul>
-
- <h2>四、下阶段计划</h2>
- <p>基于前期工作总结,下阶段将重点关注以下几个方面:</p>
- <ul>
- <li>优化工作流程,提高效率</li>
- <li>加强团队协作,改善沟通</li>
- <li>完善制度体系,确保执行</li>
- </ul>
- </div>
- </div>
- `,ee=async()=>{if(!p.value){k("没有可下载的内容");return}try{console.log("开始下载AI写作文档...");const oe=te(p.value),ce=X(p.value,oe),Re=new Blob([ce],{type:"application/msword"}),Ee=URL.createObjectURL(Re),Le=document.createElement("a");Le.href=Ee,Le.download=`${oe}.doc`,document.body.appendChild(Le),Le.click(),document.body.removeChild(Le),URL.revokeObjectURL(Ee),k("Word文档下载成功!"),console.log("✅ AI写作文档下载成功")}catch(oe){console.error("下载Word文档失败:",oe),k("下载失败,请重试")}},te=oe=>{const ce=oe.replace(/<[^>]*>/g,""),Re=oe.match(/<h1[^>]*>([^<]+)<\/h1>/i);if(Re)return Re[1].trim();const Ee=oe.match(/<h2[^>]*>([^<]+)<\/h2>/i);if(Ee)return Ee[1].trim();const Le=oe.match(/<h3[^>]*>([^<]+)<\/h3>/i);if(Le)return Le[1].trim();const Fe=ce.trim().split(/[。!?]/)[0];return Fe&&Fe.length>0?Fe.length>30?Fe.substring(0,30)+"...":Fe:`AI写作文档_${new Date().toLocaleDateString("zh-CN").replace(/\//g,"-")}`},X=(oe,ce="AI生成的文档")=>`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${ce}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- <w:ValidateAgainstSchemas/>
- <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
- <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
- <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- @page {
- size: 21cm 29.7cm;
- margin: 2.5cm 2cm 2.5cm 2cm;
- }
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 1.5cm;
- page-break-after: avoid;
- }
- h1 {
- font-size: 16pt;
- font-weight: bold;
- color: #000;
- margin-top: 24pt;
- margin-bottom: 12pt;
- text-align: center;
- }
- h2 {
- font-size: 14pt;
- font-weight: bold;
- color: #000;
- margin-top: 18pt;
- margin-bottom: 9pt;
- }
- h3 {
- font-size: 12pt;
- font-weight: bold;
- color: #000;
- margin-top: 14pt;
- margin-bottom: 7pt;
- }
- p {
- margin-bottom: 12pt;
- text-align: justify;
- text-indent: 2em;
- }
- ul, ol {
- margin-left: 20pt;
- margin-bottom: 12pt;
- }
- li {
- margin-bottom: 6pt;
- }
- strong, b {
- font-weight: bold;
- }
- em, i {
- font-style: italic;
- }
- table {
- border-collapse: collapse;
- width: 100%;
- margin: 12pt 0;
- }
- th, td {
- border: 1pt solid #000;
- padding: 6pt;
- text-align: left;
- }
- .no-indent {
- text-indent: 0;
- }
- </style>
- </head>
- <body>
- <div>
- ${oe}
- </div>
- </body>
- </html>`,ue=oe=>{if(!oe)return"AI写作对话";const ce=oe.replace(/<[^>]*>/g,"").trim();return ce.length>30?ce.substring(0,30)+"...":ce},ve=()=>{o.value||(r.value=!0,Me())},Me=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),b.value=!0;const oe=performance.now(),ce=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Re=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Re-oe).toFixed(2)}ms`),console.log("📋 AI写作历史记录列表响应:",ce),ce.statusCode===200?(m.value=ce.total||0,y.value=ce.data.map(Ee=>({id:Ee.id,title:ue(Ee.content),time:he(Ee.updated_at),businessType:Ee.business_type,isActive:!1,rawData:Ee})),w.value&&y.value.forEach(Ee=>{Ee.isActive=Ee.id===w.value}),console.log(`✅ AI写作历史记录列表已设置: ${y.value.length}条记录,总数: ${m.value}`)):console.error("❌ 获取AI写作历史记录列表失败:",ce.statusCode)}catch(oe){console.error("❌ 获取AI写作历史记录列表失败:",oe)}finally{b.value=!1}},we=oe=>{if(!oe)return null;if(typeof oe=="number"){const ce=oe<1e12?oe*1e3:oe;return new Date(ce)}if(typeof oe=="string"){let ce=new Date(oe);if(!isNaN(ce))return ce;const Re=oe.replace(/-/g,"/").replace("T"," ");if(ce=new Date(Re),!isNaN(ce))return ce}return new Date(oe)},he=oe=>{const ce=we(oe);if(!ce||isNaN(ce))return"未知时间";const Re=new Date,Ee=ce.toDateString()===Re.toDateString(),Le=new Date(Re.getFullYear(),Re.getMonth(),Re.getDate()-1),Fe=ce.toDateString()===Le.toDateString();if(Ee)return ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Fe)return"昨天 "+ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Pe=ce.getMonth()+1,Ne=ce.getDate(),pt=ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Pe}月${Ne}日 ${pt}`},Te=()=>{t.go(-1)},Y=()=>{y.value.forEach(Re=>{Re.isActive=!1}),n.value="main",w.value=0;const oe='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">总结主题:</span>、<span class="editable-highlight" contenteditable="true">总结时间:</span>、<span class="editable-highlight" contenteditable="true">主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true">存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true">下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',ce=document.querySelector(".template-input-container");ce&&(ce.innerHTML=oe,f.value=oe.replace(/<[^>]*>/g,""),Vt(()=>{ce.querySelectorAll(".editable-highlight").forEach(Ee=>{Ee.style.backgroundColor="#3E7BFA10",Ee.style.color="#3E7BFA",Ee.style.padding="4px 8px",Ee.style.borderRadius="6px",Ee.style.fontWeight="500",Ee.style.cursor="text",Ee.style.border="1px solid transparent",Ee.style.display="inline-block",Ee.style.minWidth="20px",Ee.style.margin="6px 8px 6px 0",Ee.addEventListener("click",()=>{Ee.contentEditable="true",Ee.focus()}),Ee.addEventListener("blur",()=>{Ee.contentEditable="false"})})})),p.value="",v.value=null,r.value=!1,console.log("✅ 新建任务完成,已重置对话ID为0,准备创建新对话")},be=async oe=>{try{console.log("开始获取AI写作对话消息,conversationId:",oe);const ce=await Bn.getHistoryRecord({ai_conversation_id:oe,business_type:2});return console.log("AI写作对话消息响应:",ce),ce.statusCode===200?!ce.data||!Array.isArray(ce.data)?(console.error("历史记录数据格式不正确:",ce.data),!1):ce.data.map(Re=>{let Ee=null;if(Re.content)try{typeof Re.content=="string"&&Re.content.startsWith("{")?Ee=JSON.parse(Re.content):Ee={hasDocument:!1,content:Re.content}}catch{console.log("消息内容不是JSON格式,使用原内容:",Re.content),Ee={hasDocument:!1,content:Re.content}}return{type:Re.type,content:Re.content,time:he(Re.created_at),parsedContent:Ee}}):(console.error("获取历史记录失败:",ce.statusCode),!1)}catch(ce){return console.error("获取历史记录失败:",ce),!1}},De=async oe=>{console.log("点击历史记录:",oe),y.value.forEach(Re=>{Re.isActive=Re.id===oe.id}),w.value=oe.id;const ce=await be(oe.id);if(ce&&ce.length>0){const Re=ce.find(Ee=>Ee.type==="ai");if(Re&&Re.parsedContent&&Re.parsedContent.documentContent)p.value=Re.parsedContent.documentContent.content,n.value="editor";else if(Re&&Re.parsedContent&&Re.parsedContent.content)p.value=Re.parsedContent.content,n.value="editor";else if(Re&&Re.content)p.value=Re.content,n.value="editor";else{const Ee=document.querySelector(".template-input-container");Ee&&(Ee.innerHTML=`<p>${oe.rawData?.content||oe.title}</p>`,f.value=oe.rawData?.content||oe.title),n.value="main"}}else k("加载历史记录失败");r.value=!1},pe=async(oe,ce)=>{try{console.log("开始删除移动端历史记录:",oe);const Re=await Bn.deleteHistoryRecord({ai_conversation_id:oe.id});Re.statusCode===200?(y.value.splice(ce,1),oe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Y()),console.log("✅ 移动端历史记录删除成功"),k("删除成功")):(console.error("❌ 删除移动端历史记录失败:",Re),k("删除失败"))}catch(Re){console.error("❌ 删除移动端历史记录失败:",Re),k("删除失败,请稍后重试")}};return jn(()=>{console.log("Mobile AI Writing Page Loaded"),Vt(()=>{const oe=document.querySelector(".template-input-container");if(oe){const ce=(oe.textContent||"").trim();ce&&(f.value=ce),oe.querySelectorAll(".editable-highlight").forEach(Ee=>{Ee.style.backgroundColor="#3E7BFA10",Ee.style.color="#3E7BFA",Ee.style.padding="4px 8px",Ee.style.borderRadius="6px",Ee.style.fontWeight="500",Ee.style.cursor="text",Ee.style.border="1px solid transparent",Ee.style.display="inline-block",Ee.style.minWidth="20px",Ee.addEventListener("click",()=>{Ee.contentEditable="true",Ee.focus()}),Ee.addEventListener("blur",()=>{Ee.contentEditable="false"})})}})}),(oe,ce)=>(F(),K("div",Rcn,[Ve(f2,{title:"AI写作",onBack:Te,onMenu:ve}),x("div",Bcn,[Ve(j5,{visible:!o.value&&r.value,title:"历史记录",historyData:y.value,loading:b.value,onClose:ce[0]||(ce[0]=Re=>r.value=!1),onCreateNewTask:Y,onHandleHistoryItem:De,onDeleteHistoryItem:pe},null,8,["visible","historyData","loading"]),n.value==="main"?(F(),K("div",Lcn,[o.value?(F(),K("div",Fcn,ce[1]||(ce[1]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",Ucn,[ce[8]||(ce[8]=x("h3",null,"帮我写作",-1)),ce[9]||(ce[9]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",$cn,[x("div",{class:"template-input-container",contenteditable:"true",onInput:j,onCopy:H,placeholder:"请在这里输入您的写作要求..."},ce[2]||(ce[2]=[ki(' 请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true" data-v-175f9e48>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-175f9e48>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-175f9e48>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-175f9e48>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-175f9e48>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。 ',11)]),32),x("div",zcn,[x("div",jcn,[x("button",{class:"attachment-btn",onClick:G,disabled:i.value},ce[3]||(ce[3]=[x("img",{src:sAe,alt:"附件",class:"action-icon"},null,-1)]),8,Hcn),v.value?(F(),K("div",Wcn,[x("div",Vcn,[x("span",qcn,We(v.value.icon),1),x("span",Gcn,We(v.value.name),1),x("button",{class:"remove-file-inline",onClick:$},ce[4]||(ce[4]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Kcn,[x("button",{class:re(["voice-btn",{recording:C(s)}]),onClick:L,disabled:i.value},[x("div",Ycn,[ce[5]||(ce[5]=x("img",{src:Zf,alt:"语音",class:"voice-icon"},null,-1)),C(s)?(F(),K("div",Zcn)):xe("",!0)])],10,Qcn),ce[6]||(ce[6]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:W,disabled:o.value||i.value},[x("img",{src:N.value?C(Jf):C(Xf),alt:"发送",class:"send-icon"},null,8,Jcn),o.value?(F(),K("span",edn,"生成中...")):xe("",!0)],8,Xcn)])]),ce[7]||(ce[7]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))])]),x("div",tdn,[x("div",ndn,[(F(),K(Pt,null,an(D,Re=>x("div",{key:Re.key,class:re(["tab-item",{active:g.value===Re.key}]),onClick:Ee=>q(Re.key)},We(Re.name),11,rdn)),64))]),x("div",odn,[(F(!0),K(Pt,null,an(O.value,Re=>(F(),K("div",{key:Re.id,class:re(["template-card",Re.buttonClass])},[x("div",idn,[x("div",{class:re(["template-icon",B(Re.buttonClass)])},[x("img",{src:Re.image,alt:Re.name,class:"template-icon-img"},null,8,adn)],2),x("div",sdn,[x("div",ldn,We(Re.name),1),x("div",udn,We(_(Re.name)),1)]),x("button",{class:re(["use-template-btn",Re.buttonClass]),onClick:Ee=>U(Re.name)}," 使用此模板 ",10,cdn)])],2))),128))])])])):xe("",!0),n.value==="editor"?(F(),K("div",ddn,[o.value?(F(),K("div",fdn,ce[10]||(ce[10]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",pdn,[x("div",hdn,[ce[11]||(ce[11]=x("h3",null,"文档预览",-1)),o.value?(F(),K("p",vdn,"AI正在生成内容,请稍候...")):(F(),K("p",gdn,"编辑请去电脑端"))]),x("div",mdn,[x("button",{class:"download-btn",onClick:ee,disabled:o.value},ce[12]||(ce[12]=[x("img",{src:ZD,alt:"下载Word",class:"download-icon"},null,-1)]),8,ydn)])]),x("div",bdn,[x("div",{ref_key:"richEditor",ref:h,class:"rich-text-editor",innerHTML:p.value,contenteditable:"false"},null,8,wdn)])])):xe("",!0)]),Ve(d2,{visible:A.value,message:S.value,duration:2e3,onClose:M},null,8,["visible","message"])]))}},Cdn=Qo(Adn,[["__scopeId","data-v-175f9e48"]]),xdn={class:"mobile-policy-document"},Sdn={class:"main-content"},Edn={class:"search-section"},kdn={class:"search-box"},Tdn={class:"category-tabs"},_dn={key:0,class:"loading"},Ddn={key:1,class:"no-data"},Idn={class:"doc-icon"},Odn=["src","alt"],Mdn={class:"doc-content"},Pdn={class:"doc-header"},Ndn={class:"doc-title"},Rdn={class:"doc-date"},Bdn={class:"doc-tags"},Ldn={class:"doc-description"},Fdn={class:"doc-footer"},Udn={class:"doc-info"},$dn={class:"info-item"},zdn={class:"info-item"},jdn={class:"doc-actions"},Hdn=["onClick"],Wdn=["onClick"],Vdn={key:2,class:"load-more"},qdn={__name:"m-PolicyDocument",setup(e){const t=Hl(),n=Q(""),r=Q(0),o=Q([]),i=Q(!1),a=Q(1),s=Q(10),l=Q(!0),u=Q(null);let d=null,c=null;const f=()=>{t.go(-1)},p=D=>{r.value=D,a.value=1,o.value=[],l.value=!0,v()},v=async(D=!1)=>{if(!i.value){i.value=!0;try{const P={page:a.value,pageSize:s.value,search:n.value,policy_type:r.value===0?"":r.value},O=await Bn.getPolicyFile(P);if(O&&O.data){const _=O.data;D?o.value=[...o.value,..._]:o.value=_,l.value=_.length===s.value}}catch(P){console.error("获取政策文件失败:",P)}finally{i.value=!1}}},h=()=>{d&&clearTimeout(d),d=setTimeout(()=>{a.value=1,o.value=[],l.value=!0,v()},300)},g=()=>{n.value.trim()&&(a.value=1,o.value=[],l.value=!0,v())},y=async D=>{if(console.log("查看政策文件:",D),console.log("文件ID:",D.id,"文件所有字段:",Object.keys(D)),!D.policy_file_url){alert("文件链接不存在");return}if(!D.id)console.error("政策文件ID不存在,跳过次数更新");else{D.view_count=(D.view_count||0)+1;try{await Bn.updatePolicyFileCount({policy_file_id:D.id,action_type:1}),console.log("查看次数更新成功")}catch(O){console.error("更新查看次数失败:",O),D.view_count=(D.view_count||1)-1}}const P=D.file_type;if(P===0)window.open(D.policy_file_url,"_blank");else if(P===1||P===2){const _=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(D.policy_file_url)}`;window.open(_,"_blank")}else window.open(D.policy_file_url,"_blank")},m=async D=>{if(console.log("下载政策文件:",D),console.log("文件ID:",D.id,"文件所有字段:",Object.keys(D)),!D.policy_file_url){alert("文件链接不存在");return}if(!D.id)console.error("政策文件ID不存在,跳过次数更新");else try{await Bn.updatePolicyFileCount({policy_file_id:D.id,action_type:2}),console.log("下载次数更新成功")}catch(_){console.error("更新下载次数失败:",_)}let P=D.policy_name||"政策文件";const O=D.file_type;O===0?P+=".pdf":O===1?P+=".docx":O===2?P+=".xlsx":O===3?P+=".pptx":O===4&&(P+=".txt"),O===0?b(D.policy_file_url,P):window.open(D.policy_file_url,"_blank")},b=(D,P)=>{const O=`/apiv1/download_file?pdf_oss_download_link=${encodeURIComponent(D)}&file_name=${encodeURIComponent(P)}`,_=document.createElement("a");_.href=O,_.download=P||"download_file",_.style.display="none",document.body.appendChild(_),_.click(),document.body.removeChild(_)},w=D=>({0:yd,1:Cke,2:xke,3:yd,4:yd,5:yd})[D]||yd,A=D=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[D]||"文件",S=D=>D?D.split(",").map(P=>P.trim()).filter(P=>P.length>0):["政策文件"],k=D=>{if(!D)return"";const P=new Date(D*1e3),O=P.getFullYear(),_=String(P.getMonth()+1).padStart(2,"0"),B=String(P.getDate()).padStart(2,"0");return`${O}-${_}-${B}`},M=D=>{c&&clearTimeout(c),c=setTimeout(()=>{const P=D.target,O=P.scrollTop,_=P.scrollHeight,B=P.clientHeight;O+B>=_-50&&l.value&&!i.value&&(a.value++,v(!0))},100)};return jn(()=>{v()}),hl(()=>{c&&clearTimeout(c),d&&clearTimeout(d)}),(D,P)=>(F(),K("div",xdn,[Ve(f2,{title:"政策文件",showMenu:!1,onBack:f}),x("div",Sdn,[x("div",Edn,[x("div",kdn,[P[6]||(P[6]=x("div",{class:"search-icon-left"},[x("img",{src:mke,alt:"搜索",class:"search-icon"})],-1)),ln(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":P[0]||(P[0]=O=>n.value=O),maxlength:"100",onInput:h,onKeyup:Lr(g,["enter"])},null,544),[[jr,n.value]])])]),x("div",Tdn,[x("button",{class:re(["tab-btn",{active:r.value===0}]),onClick:P[1]||(P[1]=O=>p(0))},"全部政策",2),x("button",{class:re(["tab-btn",{active:r.value===1}]),onClick:P[2]||(P[2]=O=>p(1))},"国家法规",2),x("button",{class:re(["tab-btn",{active:r.value===2}]),onClick:P[3]||(P[3]=O=>p(2))},"行业法规",2),x("button",{class:re(["tab-btn",{active:r.value===3}]),onClick:P[4]||(P[4]=O=>p(3))},"地方法规",2),x("button",{class:re(["tab-btn",{active:r.value===4}]),onClick:P[5]||(P[5]=O=>p(4))},"内部条例",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:M},[i.value?(F(),K("div",_dn,P[7]||(P[7]=[x("div",{class:"loading-spinner"},null,-1),x("span",null,"加载中...",-1)]))):xe("",!0),!i.value&&o.value.length===0?(F(),K("div",Ddn,P[8]||(P[8]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(F(!0),K(Pt,null,an(o.value,(O,_)=>(F(),K("div",{key:O.id||_,class:"document-item"},[x("div",Idn,[x("img",{src:w(O.file_type),alt:A(O.file_type),class:"file-icon"},null,8,Odn)]),x("div",Mdn,[x("div",Pdn,[x("h3",Ndn,We(O.policy_name),1),x("span",Rdn,We(k(O.publish_time)),1)]),x("div",Bdn,[(F(!0),K(Pt,null,an(S(O.file_tag),(B,N)=>(F(),K("span",{key:N,class:"tag tag-blue"},[P[9]||(P[9]=x("img",{src:yke,alt:"标签图标",class:"tag-icon"},null,-1)),xn(" "+We(B),1)]))),128))]),x("p",Ldn,We(O.policy_content),1),x("div",Fdn,[x("div",Udn,[x("span",$dn,[P[10]||(P[10]=x("img",{src:bke,alt:"部门",class:"info-icon"},null,-1)),xn(" "+We(O.policy_department),1)]),x("span",zdn,[P[11]||(P[11]=x("img",{src:wke,alt:"次数",class:"info-icon"},null,-1)),xn(" "+We(O.view_count)+" 次查看 ",1)])]),x("div",jdn,[x("button",{class:"action-btn view-btn",onClick:B=>y(O)},"查看详情 >",8,Hdn),x("button",{class:"action-btn download-btn",onClick:B=>m(O)},P[12]||(P[12]=[x("img",{src:Ake,alt:"",class:"action-icon"},null,-1)]),8,Wdn)])])])]))),128)),l.value&&!i.value?(F(),K("div",Vdn,P[13]||(P[13]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)])]))}},Gdn=Qo(qdn,[["__scopeId","data-v-f73e758c"]]),Kdn={name:"NotFound",data(){return{errorTitle:"认证失败",errorMessage:"无法验证您的访问权限",detailMessage:"票据验证失败或已过期,请重新从门户系统登录。",showDetails:!0,debugInfo:[],showDebug:!1}},mounted(){this.collectDebugInfo();const e=this.$route.query.reason;e==="ticket_failed"?(this.errorTitle="票据验证失败",this.errorMessage="无法验证您的访问票据",this.detailMessage="票据可能已过期或无效,请重新从统一认证门户登录。"):e==="ticket_not_found"?(this.errorTitle="缺少访问凭证",this.errorMessage="未检测到有效的访问票据",this.detailMessage="请从统一认证门户进入系统,不要直接访问此地址。"):e==="token_expired"?(this.errorTitle="登录已过期",this.errorMessage="您的登录状态已失效",this.detailMessage="令牌已过期,请重新从统一认证门户登录。"):e==="logout"?(this.errorTitle="已退出登录",this.errorMessage="您已成功退出系统",this.detailMessage="如需继续使用,请重新从统一认证门户登录。"):e==="no_permission"?(this.errorTitle="无访问权限",this.errorMessage="您没有访问此系统的权限",this.detailMessage="请联系系统管理员申请访问权限。"):e==="network_error"?(this.errorTitle="网络错误",this.errorMessage="无法连接到认证服务器",this.detailMessage="请检查网络连接后重试。"):e==="app_token_lost"?(this.errorTitle="APP 会话异常",this.errorMessage="检测到 APP 环境中登录状态丢失",this.detailMessage="这可能是 APP 返回操作导致的异常。请尝试重新打开此页面,或联系技术支持。"):e||(this.errorTitle="页面未找到",this.errorMessage="您访问的页面不存在",this.detailMessage="请检查URL是否正确,或返回首页。"),console.log("🚫 进入404页面,原因:",e||"未知")},methods:{collectDebugInfo(){const e=[];e.push({type:"info",time:new Date().toLocaleTimeString(),message:`当前 URL: ${window.location.href}`}),e.push({type:"info",time:new Date().toLocaleTimeString(),message:`用户代理: ${navigator.userAgent}`}),e.push({type:"info",time:new Date().toLocaleTimeString(),message:`是否移动设备: ${/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent)}`});const t=!!localStorage.getItem("shudao_refresh_token");e.push({type:t?"success":"error",time:new Date().toLocaleTimeString(),message:`本地 Token: ${t?"存在":"不存在"}`});const n=!!localStorage.getItem("shudao_username");e.push({type:"info",time:new Date().toLocaleTimeString(),message:`用户名: ${n?localStorage.getItem("shudao_username"):"未保存"}`});const r=this.$route.query.reason;e.push({type:"warning",time:new Date().toLocaleTimeString(),message:`错误原因: ${r||"未指定"}`});const o=new URL(window.location.href),i=o.hash.includes("iamcaspticket")||o.search.includes("iamcaspticket");e.push({type:i?"warning":"info",time:new Date().toLocaleTimeString(),message:`URL 中票据参数: ${i?"存在 (异常!)":"已清理"}`});try{const a=sessionStorage.getItem("auth_debug_logs");a&&JSON.parse(a).forEach(l=>{e.push({type:l.level||"info",time:l.time||new Date().toLocaleTimeString(),message:l.message})})}catch(a){e.push({type:"error",time:new Date().toLocaleTimeString(),message:`读取认证日志失败: ${a.message}`})}this.debugInfo=e},toggleDebug(){this.showDebug=!this.showDebug},retry(){console.log("🔄 用户点击重新尝试"),localStorage.removeItem("shudao_refresh_token"),localStorage.removeItem("shudao_token_type"),localStorage.removeItem("shudao_username"),sessionStorage.removeItem("auth_debug_logs"),window.location.href=window.location.origin+window.location.pathname},contactSupport(){console.log("📞 用户请求联系支持");const t=`调试报告:
- ${this.debugInfo.map(n=>`[${n.time}] ${n.message}`).join(`
- `)}
- 请将此信息发送给技术支持。`;navigator.clipboard?navigator.clipboard.writeText(t).then(()=>{alert(`调试信息已复制到剪贴板!
- 请联系系统管理员并提供此信息。`)}).catch(()=>{alert(t)}):alert(t)}}},Qdn={class:"not-found-container"},Ydn={class:"not-found-content"},Zdn={class:"error-title"},Xdn={class:"error-message"},Jdn={key:0,class:"error-details"},efn={class:"detail-text"},tfn={key:1,class:"debug-info"},nfn={key:0,class:"debug-content"},rfn={class:"debug-time"},ofn={class:"debug-message"},ifn={class:"action-buttons"};function afn(e,t,n,r,o,i){return F(),K("div",Qdn,[x("div",Ydn,[t[5]||(t[5]=ki('<div class="error-icon" data-v-f52e32e0><svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" data-v-f52e32e0><circle cx="100" cy="100" r="80" fill="none" stroke="#ff6b6b" stroke-width="4" data-v-f52e32e0></circle><line x1="70" y1="70" x2="130" y2="130" stroke="#ff6b6b" stroke-width="4" stroke-linecap="round" data-v-f52e32e0></line><line x1="130" y1="70" x2="70" y2="130" stroke="#ff6b6b" stroke-width="4" stroke-linecap="round" data-v-f52e32e0></line></svg></div><h1 class="error-code" data-v-f52e32e0>404</h1>',2)),x("h2",Zdn,We(o.errorTitle),1),x("p",Xdn,We(o.errorMessage),1),o.showDetails?(F(),K("div",Jdn,[x("p",efn,We(o.detailMessage),1)])):xe("",!0),o.debugInfo.length>0?(F(),K("div",tfn,[x("div",{class:"debug-header",onClick:t[0]||(t[0]=(...a)=>i.toggleDebug&&i.toggleDebug(...a))},[x("span",null,"🐛 调试信息 (点击"+We(o.showDebug?"收起":"展开")+")",1)]),o.showDebug?(F(),K("div",nfn,[(F(!0),K(Pt,null,an(o.debugInfo,(a,s)=>(F(),K("div",{class:re(["debug-item",a.type]),key:s},[x("span",rfn,We(a.time),1),x("span",ofn,We(a.message),1)],2))),128))])):xe("",!0)])):xe("",!0),x("div",ifn,[x("button",{class:"btn-primary",onClick:t[1]||(t[1]=(...a)=>i.retry&&i.retry(...a))},t[3]||(t[3]=[x("span",{class:"icon"},"🔄",-1),xn(" 重新尝试 ",-1)])),x("button",{class:"btn-secondary",onClick:t[2]||(t[2]=(...a)=>i.contactSupport&&i.contactSupport(...a))},t[4]||(t[4]=[x("span",{class:"icon"},"📞",-1),xn(" 联系支持 ",-1)]))]),t[6]||(t[6]=x("div",{class:"help-info"},[x("p",null,"如果问题持续存在,请尝试以下操作:"),x("ul",null,[x("li",null,"确认您有访问权限"),x("li",null,"检查网络连接"),x("li",null,"清除浏览器缓存后重试"),x("li",null,"联系系统管理员获取帮助")])],-1))])])}const sfn=Qo(Kdn,[["render",afn],["__scopeId","data-v-f52e32e0"]]),lfn=[{path:"/",name:"Index",component:ilt,beforeEnter:(e,t,n)=>{W4()?(console.log("📱 检测到移动设备,重定向到 /mobile"),console.log("📍 原始 URL:",window.location.href),console.log("📍 原始查询参数:",e.query),n({path:"/mobile",query:e.query,replace:!0})):n()}},{path:"/mobile",name:"MobileIndex",component:inn},{path:"/mobile/chat",name:"MobileChat",component:Non},{path:"/mobile/safety-hazard",name:"MobileSafetyHazard",component:Ran},{path:"/mobile/exam-workshop",name:"MobileExamWorkshop",component:iun},{path:"/mobile/hazard-detection",name:"MobileHazardDetection",component:Pcn},{path:"/mobile/ai-writing",name:"MobileAIWriting",component:Cdn},{path:"/mobile/policy-document",name:"MobilePolicyDocument",component:Gdn},{path:"/chat",name:"Chat",component:Rvt},{path:"/ai-writing",name:"AIWriting",component:iHt},{path:"/admin",name:"Admin",component:HHt},{path:"/exam-workshop",name:"ExamWorkshop",component:Bqt},{path:"/hazard-detection",name:"HazardDetection",component:OKt},{path:"/policy-document",name:"PolicyDocument",component:rQt},{path:"/safety-hazard",name:"SafetyHazard",component:AJt},{path:"/template-editor",name:"TemplateEditor",component:ptn},{path:"/404",name:"NotFound",component:sfn},{path:"/:pathMatch(.*)*",redirect:"/404"}],p0e=r7e({history:PDe(),routes:lfn});var G8={exports:{}};/*!
- * Quill Editor v1.3.7
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */var ufn=G8.exports,h0e;function cfn(){return h0e||(h0e=1,(function(e,t){(function(r,o){e.exports=o()})(typeof self<"u"?self:ufn,function(){return(function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=109)})([(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(17),a=o(18),s=o(19),l=o(45),u=o(46),d=o(47),c=o(48),f=o(49),p=o(12),v=o(32),h=o(33),g=o(31),y=o(1),m={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:i.default,Format:a.default,Leaf:s.default,Embed:c.default,Scroll:l.default,Block:d.default,Inline:u.default,Text:f.default,Attributor:{Attribute:p.default,Class:v.default,Style:h.default,Store:g.default}};r.default=m}),(function(n,r,o){var i=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,m){y.__proto__=m}||function(y,m){for(var b in m)m.hasOwnProperty(b)&&(y[b]=m[b])};return function(y,m){g(y,m);function b(){this.constructor=y}y.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=(function(g){i(y,g);function y(m){var b=this;return m="[Parchment] "+m,b=g.call(this,m)||this,b.message=m,b.name=b.constructor.name,b}return y})(Error);r.ParchmentError=a;var s={},l={},u={},d={};r.DATA_KEY="__blot";var c;(function(g){g[g.TYPE=3]="TYPE",g[g.LEVEL=12]="LEVEL",g[g.ATTRIBUTE=13]="ATTRIBUTE",g[g.BLOT=14]="BLOT",g[g.INLINE=7]="INLINE",g[g.BLOCK=11]="BLOCK",g[g.BLOCK_BLOT=10]="BLOCK_BLOT",g[g.INLINE_BLOT=6]="INLINE_BLOT",g[g.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",g[g.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",g[g.ANY=15]="ANY"})(c=r.Scope||(r.Scope={}));function f(g,y){var m=v(g);if(m==null)throw new a("Unable to create "+g+" blot");var b=m,w=g instanceof Node||g.nodeType===Node.TEXT_NODE?g:b.create(y);return new b(w,y)}r.create=f;function p(g,y){return y===void 0&&(y=!1),g==null?null:g[r.DATA_KEY]!=null?g[r.DATA_KEY].blot:y?p(g.parentNode,y):null}r.find=p;function v(g,y){y===void 0&&(y=c.ANY);var m;if(typeof g=="string")m=d[g]||s[g];else if(g instanceof Text||g.nodeType===Node.TEXT_NODE)m=d.text;else if(typeof g=="number")g&c.LEVEL&c.BLOCK?m=d.block:g&c.LEVEL&c.INLINE&&(m=d.inline);else if(g instanceof HTMLElement){var b=(g.getAttribute("class")||"").split(/\s+/);for(var w in b)if(m=l[b[w]],m)break;m=m||u[g.tagName]}return m==null?null:y&c.LEVEL&m.scope&&y&c.TYPE&m.scope?m:null}r.query=v;function h(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];if(g.length>1)return g.map(function(w){return h(w)});var m=g[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new a("Invalid definition");if(m.blotName==="abstract")throw new a("Cannot register abstract class");if(d[m.blotName||m.attrName]=m,typeof m.keyName=="string")s[m.keyName]=m;else if(m.className!=null&&(l[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(w){return w.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var b=Array.isArray(m.tagName)?m.tagName:[m.tagName];b.forEach(function(w){(u[w]==null||m.className==null)&&(u[w]=m)})}return m}r.register=h}),(function(n,r,o){var i=o(51),a=o(11),s=o(3),l=o(20),u="\0",d=function(c){Array.isArray(c)?this.ops=c:c!=null&&Array.isArray(c.ops)?this.ops=c.ops:this.ops=[]};d.prototype.insert=function(c,f){var p={};return c.length===0?this:(p.insert=c,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p))},d.prototype.delete=function(c){return c<=0?this:this.push({delete:c})},d.prototype.retain=function(c,f){if(c<=0)return this;var p={retain:c};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p)},d.prototype.push=function(c){var f=this.ops.length,p=this.ops[f-1];if(c=s(!0,{},c),typeof p=="object"){if(typeof c.delete=="number"&&typeof p.delete=="number")return this.ops[f-1]={delete:p.delete+c.delete},this;if(typeof p.delete=="number"&&c.insert!=null&&(f-=1,p=this.ops[f-1],typeof p!="object"))return this.ops.unshift(c),this;if(a(c.attributes,p.attributes)){if(typeof c.insert=="string"&&typeof p.insert=="string")return this.ops[f-1]={insert:p.insert+c.insert},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this;if(typeof c.retain=="number"&&typeof p.retain=="number")return this.ops[f-1]={retain:p.retain+c.retain},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this}}return f===this.ops.length?this.ops.push(c):this.ops.splice(f,0,c),this},d.prototype.chop=function(){var c=this.ops[this.ops.length-1];return c&&c.retain&&!c.attributes&&this.ops.pop(),this},d.prototype.filter=function(c){return this.ops.filter(c)},d.prototype.forEach=function(c){this.ops.forEach(c)},d.prototype.map=function(c){return this.ops.map(c)},d.prototype.partition=function(c){var f=[],p=[];return this.forEach(function(v){var h=c(v)?f:p;h.push(v)}),[f,p]},d.prototype.reduce=function(c,f){return this.ops.reduce(c,f)},d.prototype.changeLength=function(){return this.reduce(function(c,f){return f.insert?c+l.length(f):f.delete?c-f.delete:c},0)},d.prototype.length=function(){return this.reduce(function(c,f){return c+l.length(f)},0)},d.prototype.slice=function(c,f){c=c||0,typeof f!="number"&&(f=1/0);for(var p=[],v=l.iterator(this.ops),h=0;h<f&&v.hasNext();){var g;h<c?g=v.next(c-h):(g=v.next(f-h),p.push(g)),h+=l.length(g)}return new d(p)},d.prototype.compose=function(c){var f=l.iterator(this.ops),p=l.iterator(c.ops),v=[],h=p.peek();if(h!=null&&typeof h.retain=="number"&&h.attributes==null){for(var g=h.retain;f.peekType()==="insert"&&f.peekLength()<=g;)g-=f.peekLength(),v.push(f.next());h.retain-g>0&&p.next(h.retain-g)}for(var y=new d(v);f.hasNext()||p.hasNext();)if(p.peekType()==="insert")y.push(p.next());else if(f.peekType()==="delete")y.push(f.next());else{var m=Math.min(f.peekLength(),p.peekLength()),b=f.next(m),w=p.next(m);if(typeof w.retain=="number"){var A={};typeof b.retain=="number"?A.retain=m:A.insert=b.insert;var S=l.attributes.compose(b.attributes,w.attributes,typeof b.retain=="number");if(S&&(A.attributes=S),y.push(A),!p.hasNext()&&a(y.ops[y.ops.length-1],A)){var k=new d(f.rest());return y.concat(k).chop()}}else typeof w.delete=="number"&&typeof b.retain=="number"&&y.push(w)}return y.chop()},d.prototype.concat=function(c){var f=new d(this.ops.slice());return c.ops.length>0&&(f.push(c.ops[0]),f.ops=f.ops.concat(c.ops.slice(1))),f},d.prototype.diff=function(c,f){if(this.ops===c.ops)return new d;var p=[this,c].map(function(m){return m.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;var w=m===c?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),v=new d,h=i(p[0],p[1],f),g=l.iterator(this.ops),y=l.iterator(c.ops);return h.forEach(function(m){for(var b=m[1].length;b>0;){var w=0;switch(m[0]){case i.INSERT:w=Math.min(y.peekLength(),b),v.push(y.next(w));break;case i.DELETE:w=Math.min(b,g.peekLength()),g.next(w),v.delete(w);break;case i.EQUAL:w=Math.min(g.peekLength(),y.peekLength(),b);var A=g.next(w),S=y.next(w);a(A.insert,S.insert)?v.retain(w,l.attributes.diff(A.attributes,S.attributes)):v.push(S).delete(w);break}b-=w}}),v.chop()},d.prototype.eachLine=function(c,f){f=f||`
- `;for(var p=l.iterator(this.ops),v=new d,h=0;p.hasNext();){if(p.peekType()!=="insert")return;var g=p.peek(),y=l.length(g)-p.peekLength(),m=typeof g.insert=="string"?g.insert.indexOf(f,y)-y:-1;if(m<0)v.push(p.next());else if(m>0)v.push(p.next(m));else{if(c(v,p.next(1).attributes||{},h)===!1)return;h+=1,v=new d}}v.length()>0&&c(v,{},h)},d.prototype.transform=function(c,f){if(f=!!f,typeof c=="number")return this.transformPosition(c,f);for(var p=l.iterator(this.ops),v=l.iterator(c.ops),h=new d;p.hasNext()||v.hasNext();)if(p.peekType()==="insert"&&(f||v.peekType()!=="insert"))h.retain(l.length(p.next()));else if(v.peekType()==="insert")h.push(v.next());else{var g=Math.min(p.peekLength(),v.peekLength()),y=p.next(g),m=v.next(g);if(y.delete)continue;m.delete?h.push(m):h.retain(g,l.attributes.transform(y.attributes,m.attributes,f))}return h.chop()},d.prototype.transformPosition=function(c,f){f=!!f;for(var p=l.iterator(this.ops),v=0;p.hasNext()&&v<=c;){var h=p.peekLength(),g=p.peekType();if(p.next(),g==="delete"){c-=Math.min(h,c-v);continue}else g==="insert"&&(v<c||!f)&&(c+=h);v+=h}return c},n.exports=d}),(function(n,r){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):i.call(p)==="[object Array]"},u=function(p){if(!p||i.call(p)!=="[object Object]")return!1;var v=o.call(p,"constructor"),h=p.constructor&&p.constructor.prototype&&o.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!v&&!h)return!1;var g;for(g in p);return typeof g>"u"||o.call(p,g)},d=function(p,v){a&&v.name==="__proto__"?a(p,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):p[v.name]=v.newValue},c=function(p,v){if(v==="__proto__")if(o.call(p,v)){if(s)return s(p,v).value}else return;return p[v]};n.exports=function f(){var p,v,h,g,y,m,b=arguments[0],w=1,A=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},w=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});w<A;++w)if(p=arguments[w],p!=null)for(v in p)h=c(b,v),g=c(p,v),b!==g&&(S&&g&&(u(g)||(y=l(g)))?(y?(y=!1,m=h&&l(h)?h:[]):m=h&&u(h)?h:{},d(b,{name:v,newValue:f(S,m,g)})):typeof g<"u"&&d(b,{name:v,newValue:g}));return b}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var i=(function(){function O(_,B){for(var N=0;N<B.length;N++){var q=B[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(_,q.key,q)}}return function(_,B,N){return B&&O(_.prototype,B),N&&O(_,N),_}})(),a=function O(_,B,N){_===null&&(_=Function.prototype);var q=Object.getOwnPropertyDescriptor(_,B);if(q===void 0){var U=Object.getPrototypeOf(_);return U===null?void 0:O(U,B,N)}else{if("value"in q)return q.value;var j=q.get;return j===void 0?void 0:j.call(N)}},s=o(3),l=b(s),u=o(2),d=b(u),c=o(0),f=b(c),p=o(16),v=b(p),h=o(6),g=b(h),y=o(7),m=b(y);function b(O){return O&&O.__esModule?O:{default:O}}function w(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")}function A(O,_){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:O}function S(O,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);O.prototype=Object.create(_&&_.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(O,_):O.__proto__=_)}var k=1,M=(function(O){S(_,O);function _(){return w(this,_),A(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return i(_,[{key:"attach",value:function(){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,q){var U=f.default.query(N,f.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,q)}},{key:"formatAt",value:function(N,q,U,j){this.format(U,j)}},{key:"insertAt",value:function(N,q,U){if(typeof q=="string"&&q.endsWith(`
- `)){var j=f.default.create(D.blotName);this.parent.insertBefore(j,N===0?this:this.next),j.insertAt(0,q.slice(0,-1))}else a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,N,q,U)}}]),_})(f.default.Embed);M.scope=f.default.Scope.BLOCK_BLOT;var D=(function(O){S(_,O);function _(B){w(this,_);var N=A(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,B));return N.cache={},N}return i(_,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(N,q){return q.length()===0?N:N.insert(q.value(),P(q))},new d.default).insert(`
- `,P(this))),this.cache.delta}},{key:"deleteAt",value:function(N,q){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,N,q),this.cache={}}},{key:"formatAt",value:function(N,q,U,j){q<=0||(f.default.query(U,f.default.Scope.BLOCK)?N+q===this.length()&&this.format(U,j):a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,N,Math.min(q,this.length()-N-1),U,j),this.cache={})}},{key:"insertAt",value:function(N,q,U){if(U!=null)return a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,N,q,U);if(q.length!==0){var j=q.split(`
- `),H=j.shift();H.length>0&&(N<this.length()-1||this.children.tail==null?a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),H):this.children.tail.insertAt(this.children.tail.length(),H),this.cache={});var G=this;j.reduce(function(Z,$){return G=G.split(Z,!0),G.insertAt(0,$),$.length},N+H.length)}}},{key:"insertBefore",value:function(N,q){var U=this.children.head;a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,N,q),U instanceof v.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+k),this.cache.length}},{key:"moveChildren",value:function(N,q){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,N,q),this.cache={}}},{key:"optimize",value:function(N){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(N===0||N>=this.length()-k)){var U=this.clone();return N===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var j=a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,N,q);return this.cache={},j}}}]),_})(f.default.Block);D.blotName="block",D.tagName="P",D.defaultChild="break",D.allowedChildren=[g.default,f.default.Embed,m.default];function P(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O==null||(typeof O.formats=="function"&&(_=(0,l.default)(_,O.formats())),O.parent==null||O.parent.blotName=="scroll"||O.parent.statics.scope!==O.statics.scope)?_:P(O.parent,_)}r.bubbleFormats=P,r.BlockEmbed=M,r.default=D}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},a=(function(){function G(Z,$){var L=[],W=!0,ie=!1,ee=void 0;try{for(var te=Z[Symbol.iterator](),X;!(W=(X=te.next()).done)&&(L.push(X.value),!($&&L.length===$));W=!0);}catch(ue){ie=!0,ee=ue}finally{try{!W&&te.return&&te.return()}finally{if(ie)throw ee}}return L}return function(Z,$){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return G(Z,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function G(Z,$){for(var L=0;L<$.length;L++){var W=$[L];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(Z,W.key,W)}}return function(Z,$,L){return $&&G(Z.prototype,$),L&&G(Z,L),Z}})();o(50);var l=o(2),u=P(l),d=o(14),c=P(d),f=o(8),p=P(f),v=o(9),h=P(v),g=o(0),y=P(g),m=o(15),b=P(m),w=o(3),A=P(w),S=o(10),k=P(S),M=o(34),D=P(M);function P(G){return G&&G.__esModule?G:{default:G}}function O(G,Z,$){return Z in G?Object.defineProperty(G,Z,{value:$,enumerable:!0,configurable:!0,writable:!0}):G[Z]=$,G}function _(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}var B=(0,k.default)("quill"),N=(function(){s(G,null,[{key:"debug",value:function($){$===!0&&($="log"),k.default.level($)}},{key:"find",value:function($){return $.__quill||y.default.find($)}},{key:"import",value:function($){return this.imports[$]==null&&B.error("Cannot import "+$+". Are you sure it was registered?"),this.imports[$]}},{key:"register",value:function($,L){var W=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof $!="string"){var ee=$.attrName||$.blotName;typeof ee=="string"?this.register("formats/"+ee,$,L):Object.keys($).forEach(function(te){W.register(te,$[te],L)})}else this.imports[$]!=null&&!ie&&B.warn("Overwriting "+$+" with",L),this.imports[$]=L,($.startsWith("blots/")||$.startsWith("formats/"))&&L.blotName!=="abstract"?y.default.register(L):$.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function G(Z){var $=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_(this,G),this.options=q(Z,L),this.container=this.options.container,this.container==null)return B.error("Invalid Quill container",Z);this.options.debug&&G.debug(this.options.debug);var W=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new p.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(p.default.events.EDITOR_CHANGE,function(ee){ee===p.default.events.TEXT_CHANGE&&$.root.classList.toggle("ql-blank",$.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(ee,te){var X=$.selection.lastRange,ue=X&&X.length===0?X.index:void 0;U.call($,function(){return $.editor.update(null,te,ue)},ee)});var ie=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+W+"<p><br></p></div>");this.setContents(ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(G,[{key:"addContainer",value:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof $=="string"){var W=$;$=document.createElement("div"),$.classList.add(W)}return this.container.insertBefore($,L),$}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function($,L,W){var ie=this,ee=j($,L,W),te=a(ee,4);return $=te[0],L=te[1],W=te[3],U.call(this,function(){return ie.editor.deleteText($,L)},W,$,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable($),this.container.classList.toggle("ql-disabled",!$)}},{key:"focus",value:function(){var $=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=$,this.scrollIntoView()}},{key:"format",value:function($,L){var W=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;return U.call(this,function(){var ee=W.getSelection(!0),te=new u.default;if(ee==null)return te;if(y.default.query($,y.default.Scope.BLOCK))te=W.editor.formatLine(ee.index,ee.length,O({},$,L));else{if(ee.length===0)return W.selection.format($,L),te;te=W.editor.formatText(ee.index,ee.length,O({},$,L))}return W.setSelection(ee,p.default.sources.SILENT),te},ie)}},{key:"formatLine",value:function($,L,W,ie,ee){var te=this,X=void 0,ue=j($,L,W,ie,ee),ve=a(ue,4);return $=ve[0],L=ve[1],X=ve[2],ee=ve[3],U.call(this,function(){return te.editor.formatLine($,L,X)},ee,$,0)}},{key:"formatText",value:function($,L,W,ie,ee){var te=this,X=void 0,ue=j($,L,W,ie,ee),ve=a(ue,4);return $=ve[0],L=ve[1],X=ve[2],ee=ve[3],U.call(this,function(){return te.editor.formatText($,L,X)},ee,$,0)}},{key:"getBounds",value:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=void 0;typeof $=="number"?W=this.selection.getBounds($,L):W=this.selection.getBounds($.index,$.length);var ie=this.container.getBoundingClientRect();return{bottom:W.bottom-ie.top,height:W.height,left:W.left-ie.left,right:W.right-ie.left,top:W.top-ie.top,width:W.width}}},{key:"getContents",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-$,W=j($,L),ie=a(W,2);return $=ie[0],L=ie[1],this.editor.getContents($,L)}},{key:"getFormat",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof $=="number"?this.editor.getFormat($,L):this.editor.getFormat($.index,$.length)}},{key:"getIndex",value:function($){return $.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function($){return this.scroll.leaf($)}},{key:"getLine",value:function($){return this.scroll.line($)}},{key:"getLines",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof $!="number"?this.scroll.lines($.index,$.length):this.scroll.lines($,L)}},{key:"getModule",value:function($){return this.theme.modules[$]}},{key:"getSelection",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return $&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-$,W=j($,L),ie=a(W,2);return $=ie[0],L=ie[1],this.editor.getText($,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function($,L,W){var ie=this,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:G.sources.API;return U.call(this,function(){return ie.editor.insertEmbed($,L,W)},ee,$)}},{key:"insertText",value:function($,L,W,ie,ee){var te=this,X=void 0,ue=j($,0,W,ie,ee),ve=a(ue,4);return $=ve[0],X=ve[2],ee=ve[3],U.call(this,function(){return te.editor.insertText($,L,X)},ee,$,L.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function($,L,W){this.clipboard.dangerouslyPasteHTML($,L,W)}},{key:"removeFormat",value:function($,L,W){var ie=this,ee=j($,L,W),te=a(ee,4);return $=te[0],L=te[1],W=te[3],U.call(this,function(){return ie.editor.removeFormat($,L)},W,$)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function($){var L=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return U.call(this,function(){$=new u.default($);var ie=L.getLength(),ee=L.editor.deleteText(0,ie),te=L.editor.applyDelta($),X=te.ops[te.ops.length-1];X!=null&&typeof X.insert=="string"&&X.insert[X.insert.length-1]===`
- `&&(L.editor.deleteText(L.getLength()-1,1),te.delete(1));var ue=ee.compose(te);return ue},W)}},{key:"setSelection",value:function($,L,W){if($==null)this.selection.setRange(null,L||G.sources.API);else{var ie=j($,L,W),ee=a(ie,4);$=ee[0],L=ee[1],W=ee[3],this.selection.setRange(new m.Range($,L),W),W!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API,W=new u.default().insert($);return this.setContents(W,L)}},{key:"update",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,L=this.scroll.update($);return this.selection.update($),L}},{key:"updateContents",value:function($){var L=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return U.call(this,function(){return $=new u.default($),L.editor.applyDelta($,W)},W,!0)}}]),G})();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=p.default.events,N.sources=p.default.sources,N.version="1.3.7",N.imports={delta:u.default,parchment:y.default,"core/module":h.default,"core/theme":D.default};function q(G,Z){if(Z=(0,A.default)(!0,{container:G,modules:{clipboard:!0,keyboard:!0,history:!0}},Z),!Z.theme||Z.theme===N.DEFAULTS.theme)Z.theme=D.default;else if(Z.theme=N.import("themes/"+Z.theme),Z.theme==null)throw new Error("Invalid theme "+Z.theme+". Did you register it?");var $=(0,A.default)(!0,{},Z.theme.DEFAULTS);[$,Z].forEach(function(ie){ie.modules=ie.modules||{},Object.keys(ie.modules).forEach(function(ee){ie.modules[ee]===!0&&(ie.modules[ee]={})})});var L=Object.keys($.modules).concat(Object.keys(Z.modules)),W=L.reduce(function(ie,ee){var te=N.import("modules/"+ee);return te==null?B.error("Cannot load "+ee+" module. Are you sure you registered it?"):ie[ee]=te.DEFAULTS||{},ie},{});return Z.modules!=null&&Z.modules.toolbar&&Z.modules.toolbar.constructor!==Object&&(Z.modules.toolbar={container:Z.modules.toolbar}),Z=(0,A.default)(!0,{},N.DEFAULTS,{modules:W},$,Z),["bounds","container","scrollingContainer"].forEach(function(ie){typeof Z[ie]=="string"&&(Z[ie]=document.querySelector(Z[ie]))}),Z.modules=Object.keys(Z.modules).reduce(function(ie,ee){return Z.modules[ee]&&(ie[ee]=Z.modules[ee]),ie},{}),Z}function U(G,Z,$,L){if(this.options.strict&&!this.isEnabled()&&Z===p.default.sources.USER)return new u.default;var W=$==null?null:this.getSelection(),ie=this.editor.delta,ee=G();if(W!=null&&($===!0&&($=W.index),L==null?W=H(W,ee,Z):L!==0&&(W=H(W,$,L,Z)),this.setSelection(W,p.default.sources.SILENT)),ee.length()>0){var te,X=[p.default.events.TEXT_CHANGE,ee,ie,Z];if((te=this.emitter).emit.apply(te,[p.default.events.EDITOR_CHANGE].concat(X)),Z!==p.default.sources.SILENT){var ue;(ue=this.emitter).emit.apply(ue,X)}}return ee}function j(G,Z,$,L,W){var ie={};return typeof G.index=="number"&&typeof G.length=="number"?typeof Z!="number"?(W=L,L=$,$=Z,Z=G.length,G=G.index):(Z=G.length,G=G.index):typeof Z!="number"&&(W=L,L=$,$=Z,Z=0),(typeof $>"u"?"undefined":i($))==="object"?(ie=$,W=L):typeof $=="string"&&(L!=null?ie[$]=L:W=$),W=W||p.default.sources.API,[G,Z,ie,W]}function H(G,Z,$,L){if(G==null)return null;var W=void 0,ie=void 0;if(Z instanceof u.default){var ee=[G.index,G.index+G.length].map(function(ve){return Z.transformPosition(ve,L!==p.default.sources.USER)}),te=a(ee,2);W=te[0],ie=te[1]}else{var X=[G.index,G.index+G.length].map(function(ve){return ve<Z||ve===Z&&L===p.default.sources.USER?ve:$>=0?ve+$:Math.max(Z,ve+$)}),ue=a(X,2);W=ue[0],ie=ue[1]}return new m.Range(W,ie-W)}r.expandConfig=q,r.overload=j,r.default=N}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(7),l=c(s),u=o(0),d=c(u);function c(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var h=(function(g){v(y,g);function y(){return f(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"formatAt",value:function(b,w,A,S){if(y.compare(this.statics.blotName,A)<0&&d.default.query(A,d.default.Scope.BLOT)){var k=this.isolate(b,w);S&&k.wrap(A,S)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,b,w,A,S)}},{key:"optimize",value:function(b){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,b),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(b,w){var A=y.order.indexOf(b),S=y.order.indexOf(w);return A>=0||S>=0?A-S:b===w?0:b<w?-1:1}}]),y})(d.default.Inline);h.allowedChildren=[h,d.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default.Text);r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function m(b,w){for(var A=0;A<w.length;A++){var S=w[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,w,A){return w&&m(b.prototype,w),A&&m(b,A),b}})(),a=function m(b,w,A){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,w);if(S===void 0){var k=Object.getPrototypeOf(b);return k===null?void 0:m(k,w,A)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(A)}},s=o(54),l=c(s),u=o(10),d=c(u);function c(m){return m&&m.__esModule?m:{default:m}}function f(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function v(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var h=(0,d.default)("quill:events"),g=["selectionchange","mousedown","mouseup","click"];g.forEach(function(m){document.addEventListener(m,function(){for(var b=arguments.length,w=Array(b),A=0;A<b;A++)w[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var k;(k=S.__quill.emitter).handleDOM.apply(k,w)}})})});var y=(function(m){v(b,m);function b(){f(this,b);var w=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return w.listeners={},w.on("error",h.error),w}return i(b,[{key:"emit",value:function(){h.log.apply(h,arguments),a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var S=arguments.length,k=Array(S>1?S-1:0),M=1;M<S;M++)k[M-1]=arguments[M];(this.listeners[A.type]||[]).forEach(function(D){var P=D.node,O=D.handler;(A.target===P||P.contains(A.target))&&O.apply(void 0,[A].concat(k))})}},{key:"listenDOM",value:function(A,S,k){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:S,handler:k})}}]),b})(l.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},r.default=y}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});function i(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var a=function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,s),this.quill=l,this.options=u};a.DEFAULTS={},r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";function s(u){if(i.indexOf(u)<=i.indexOf(a)){for(var d,c=arguments.length,f=Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];(d=console)[u].apply(d,f)}}function l(u){return i.reduce(function(d,c){return d[c]=s.bind(console,c,u),d},{})}s.level=l.level=function(u){a=u},r.default=l}),(function(n,r,o){var i=Array.prototype.slice,a=o(52),s=o(53),l=n.exports=function(f,p,v){return v||(v={}),f===p?!0:f instanceof Date&&p instanceof Date?f.getTime()===p.getTime():!f||!p||typeof f!="object"&&typeof p!="object"?v.strict?f===p:f==p:c(f,p,v)};function u(f){return f==null}function d(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function c(f,p,v){var h,g;if(u(f)||u(p)||f.prototype!==p.prototype)return!1;if(s(f))return s(p)?(f=i.call(f),p=i.call(p),l(f,p,v)):!1;if(d(f)){if(!d(p)||f.length!==p.length)return!1;for(h=0;h<f.length;h++)if(f[h]!==p[h])return!1;return!0}try{var y=a(f),m=a(p)}catch{return!1}if(y.length!=m.length)return!1;for(y.sort(),m.sort(),h=y.length-1;h>=0;h--)if(y[h]!=m[h])return!1;for(h=y.length-1;h>=0;h--)if(g=y[h],!l(f[g],p[g],v))return!1;return typeof f==typeof p}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),a=(function(){function s(l,u,d){d===void 0&&(d={}),this.attrName=l,this.keyName=u;var c=i.Scope.TYPE&i.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&i.Scope.LEVEL|c:this.scope=i.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(u){return u.name})},s.prototype.add=function(l,u){return this.canAdd(l,u)?(l.setAttribute(this.keyName,u),!0):!1},s.prototype.canAdd=function(l,u){var d=i.query(l,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var u=l.getAttribute(this.keyName);return this.canAdd(l,u)&&u?u:""},s})();r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var i=(function(){function M(D,P){var O=[],_=!0,B=!1,N=void 0;try{for(var q=D[Symbol.iterator](),U;!(_=(U=q.next()).done)&&(O.push(U.value),!(P&&O.length===P));_=!0);}catch(j){B=!0,N=j}finally{try{!_&&q.return&&q.return()}finally{if(B)throw N}}return O}return function(D,P){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return M(D,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function M(D,P){for(var O=0;O<P.length;O++){var _=P[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(D,_.key,_)}}return function(D,P,O){return P&&M(D.prototype,P),O&&M(D,O),D}})(),s=function M(D,P,O){D===null&&(D=Function.prototype);var _=Object.getOwnPropertyDescriptor(D,P);if(_===void 0){var B=Object.getPrototypeOf(D);return B===null?void 0:M(B,P,O)}else{if("value"in _)return _.value;var N=_.get;return N===void 0?void 0:N.call(O)}},l=o(2),u=m(l),d=o(0),c=m(d),f=o(4),p=m(f),v=o(6),h=m(v),g=o(7),y=m(g);function m(M){return M&&M.__esModule?M:{default:M}}function b(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function w(M,D){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:M}function A(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(M,D):M.__proto__=D)}var S=(function(M){A(D,M);function D(){return b(this,D),w(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return D})(h.default);S.blotName="code",S.tagName="CODE";var k=(function(M){A(D,M);function D(){return b(this,D),w(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return a(D,[{key:"delta",value:function(){var O=this,_=this.domNode.textContent;return _.endsWith(`
- `)&&(_=_.slice(0,-1)),_.split(`
- `).reduce(function(B,N){return B.insert(N).insert(`
- `,O.formats())},new u.default)}},{key:"format",value:function(O,_){if(!(O===this.statics.blotName&&_)){var B=this.descendant(y.default,this.length()-1),N=i(B,1),q=N[0];q?.deleteAt(q.length()-1,1),s(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"format",this).call(this,O,_)}}},{key:"formatAt",value:function(O,_,B,N){if(_!==0&&!(c.default.query(B,c.default.Scope.BLOCK)==null||B===this.statics.blotName&&N===this.statics.formats(this.domNode))){var q=this.newlineIndex(O);if(!(q<0||q>=O+_)){var U=this.newlineIndex(O,!0)+1,j=q-U+1,H=this.isolate(U,j),G=H.next;H.format(B,N),G instanceof D&&G.formatAt(0,O-U+_-j,B,N)}}}},{key:"insertAt",value:function(O,_,B){if(B==null){var N=this.descendant(y.default,O),q=i(N,2),U=q[0],j=q[1];U.insertAt(j,_)}}},{key:"length",value:function(){var O=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
- `)?O:O+1}},{key:"newlineIndex",value:function(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,O).lastIndexOf(`
- `);var B=this.domNode.textContent.slice(O).indexOf(`
- `);return B>-1?O+B:-1}},{key:"optimize",value:function(O){this.domNode.textContent.endsWith(`
- `)||this.appendChild(c.default.create("text",`
- `)),s(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,O);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(O),_.moveChildren(this),_.remove())}},{key:"replace",value:function(O){s(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"replace",this).call(this,O),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var B=c.default.find(_);B==null?_.parentNode.removeChild(_):B instanceof c.default.Embed?B.remove():B.unwrap()})}}],[{key:"create",value:function(O){var _=s(D.__proto__||Object.getPrototypeOf(D),"create",this).call(this,O);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),D})(p.default);k.blotName="code-block",k.tagName="PRE",k.TAB=" ",r.Code=S,r.default=k}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},a=(function(){function G(Z,$){var L=[],W=!0,ie=!1,ee=void 0;try{for(var te=Z[Symbol.iterator](),X;!(W=(X=te.next()).done)&&(L.push(X.value),!($&&L.length===$));W=!0);}catch(ue){ie=!0,ee=ue}finally{try{!W&&te.return&&te.return()}finally{if(ie)throw ee}}return L}return function(Z,$){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return G(Z,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function G(Z,$){for(var L=0;L<$.length;L++){var W=$[L];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(Z,W.key,W)}}return function(Z,$,L){return $&&G(Z.prototype,$),L&&G(Z,L),Z}})(),l=o(2),u=_(l),d=o(20),c=_(d),f=o(0),p=_(f),v=o(13),h=_(v),g=o(24),y=_(g),m=o(4),b=_(m),w=o(16),A=_(w),S=o(21),k=_(S),M=o(11),D=_(M),P=o(3),O=_(P);function _(G){return G&&G.__esModule?G:{default:G}}function B(G,Z,$){return Z in G?Object.defineProperty(G,Z,{value:$,enumerable:!0,configurable:!0,writable:!0}):G[Z]=$,G}function N(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,U=(function(){function G(Z){N(this,G),this.scroll=Z,this.delta=this.getDelta()}return s(G,[{key:"applyDelta",value:function($){var L=this,W=!1;this.scroll.update();var ie=this.scroll.length();return this.scroll.batchStart(),$=H($),$.reduce(function(ee,te){var X=te.retain||te.delete||te.insert.length||1,ue=te.attributes||{};if(te.insert!=null){if(typeof te.insert=="string"){var ve=te.insert;ve.endsWith(`
- `)&&W&&(W=!1,ve=ve.slice(0,-1)),ee>=ie&&!ve.endsWith(`
- `)&&(W=!0),L.scroll.insertAt(ee,ve);var Me=L.scroll.line(ee),we=a(Me,2),he=we[0],Te=we[1],Y=(0,O.default)({},(0,m.bubbleFormats)(he));if(he instanceof b.default){var be=he.descendant(p.default.Leaf,Te),De=a(be,1),pe=De[0];Y=(0,O.default)(Y,(0,m.bubbleFormats)(pe))}ue=c.default.attributes.diff(Y,ue)||{}}else if(i(te.insert)==="object"){var oe=Object.keys(te.insert)[0];if(oe==null)return ee;L.scroll.insertAt(ee,oe,te.insert[oe])}ie+=X}return Object.keys(ue).forEach(function(ce){L.scroll.formatAt(ee,X,ce,ue[ce])}),ee+X},0),$.reduce(function(ee,te){return typeof te.delete=="number"?(L.scroll.deleteAt(ee,te.delete),ee):ee+(te.retain||te.insert.length||1)},0),this.scroll.batchEnd(),this.update($)}},{key:"deleteText",value:function($,L){return this.scroll.deleteAt($,L),this.update(new u.default().retain($).delete(L))}},{key:"formatLine",value:function($,L){var W=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(ee){if(!(W.scroll.whitelist!=null&&!W.scroll.whitelist[ee])){var te=W.scroll.lines($,Math.max(L,1)),X=L;te.forEach(function(ue){var ve=ue.length();if(!(ue instanceof h.default))ue.format(ee,ie[ee]);else{var Me=$-ue.offset(W.scroll),we=ue.newlineIndex(Me+X)-Me+1;ue.formatAt(Me,we,ee,ie[ee])}X-=ve})}}),this.scroll.optimize(),this.update(new u.default().retain($).retain(L,(0,k.default)(ie)))}},{key:"formatText",value:function($,L){var W=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(ie).forEach(function(ee){W.scroll.formatAt($,L,ee,ie[ee])}),this.update(new u.default().retain($).retain(L,(0,k.default)(ie)))}},{key:"getContents",value:function($,L){return this.delta.slice($,$+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function($,L){return $.concat(L.delta())},new u.default)}},{key:"getFormat",value:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=[],ie=[];L===0?this.scroll.path($).forEach(function(te){var X=a(te,1),ue=X[0];ue instanceof b.default?W.push(ue):ue instanceof p.default.Leaf&&ie.push(ue)}):(W=this.scroll.lines($,L),ie=this.scroll.descendants(p.default.Leaf,$,L));var ee=[W,ie].map(function(te){if(te.length===0)return{};for(var X=(0,m.bubbleFormats)(te.shift());Object.keys(X).length>0;){var ue=te.shift();if(ue==null)return X;X=j((0,m.bubbleFormats)(ue),X)}return X});return O.default.apply(O.default,ee)}},{key:"getText",value:function($,L){return this.getContents($,L).filter(function(W){return typeof W.insert=="string"}).map(function(W){return W.insert}).join("")}},{key:"insertEmbed",value:function($,L,W){return this.scroll.insertAt($,L,W),this.update(new u.default().retain($).insert(B({},L,W)))}},{key:"insertText",value:function($,L){var W=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,`
- `).replace(/\r/g,`
- `),this.scroll.insertAt($,L),Object.keys(ie).forEach(function(ee){W.scroll.formatAt($,L.length,ee,ie[ee])}),this.update(new u.default().retain($).insert(L,(0,k.default)(ie)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var $=this.scroll.children.head;return $.statics.blotName!==b.default.blotName||$.children.length>1?!1:$.children.head instanceof A.default}},{key:"removeFormat",value:function($,L){var W=this.getText($,L),ie=this.scroll.line($+L),ee=a(ie,2),te=ee[0],X=ee[1],ue=0,ve=new u.default;te!=null&&(te instanceof h.default?ue=te.newlineIndex(X)-X+1:ue=te.length()-X,ve=te.delta().slice(X,X+ue-1).insert(`
- `));var Me=this.getContents($,L+ue),we=Me.diff(new u.default().insert(W).concat(ve)),he=new u.default().retain($).concat(we);return this.applyDelta(he)}},{key:"update",value:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ie=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(q)&&p.default.find(L[0].target)){var ee=p.default.find(L[0].target),te=(0,m.bubbleFormats)(ee),X=ee.offset(this.scroll),ue=L[0].oldValue.replace(y.default.CONTENTS,""),ve=new u.default().insert(ue),Me=new u.default().insert(ee.value()),we=new u.default().retain(X).concat(ve.diff(Me,W));$=we.reduce(function(he,Te){return Te.insert?he.insert(Te.insert,te):he.push(Te)},new u.default),this.delta=ie.compose($)}else this.delta=this.getDelta(),(!$||!(0,D.default)(ie.compose($),this.delta))&&($=ie.diff(this.delta,W));return $}}]),G})();function j(G,Z){return Object.keys(Z).reduce(function($,L){return G[L]==null||(Z[L]===G[L]?$[L]=Z[L]:Array.isArray(Z[L])?Z[L].indexOf(G[L])<0&&($[L]=Z[L].concat([G[L]])):$[L]=[Z[L],G[L]]),$},{})}function H(G){return G.reduce(function(Z,$){if($.insert===1){var L=(0,k.default)($.attributes);return delete L.image,Z.insert({image:$.attributes.image},L)}if($.attributes!=null&&($.attributes.list===!0||$.attributes.bullet===!0)&&($=(0,k.default)($),$.attributes.list?$.attributes.list="ordered":($.attributes.list="bullet",delete $.attributes.bullet)),typeof $.insert=="string"){var W=$.insert.replace(/\r\n/g,`
- `).replace(/\r/g,`
- `);return Z.insert(W,$.attributes)}return Z.push($)},new u.default)}r.default=U}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var i=(function(){function M(D,P){var O=[],_=!0,B=!1,N=void 0;try{for(var q=D[Symbol.iterator](),U;!(_=(U=q.next()).done)&&(O.push(U.value),!(P&&O.length===P));_=!0);}catch(j){B=!0,N=j}finally{try{!_&&q.return&&q.return()}finally{if(B)throw N}}return O}return function(D,P){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return M(D,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function M(D,P){for(var O=0;O<P.length;O++){var _=P[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(D,_.key,_)}}return function(D,P,O){return P&&M(D.prototype,P),O&&M(D,O),D}})(),s=o(0),l=y(s),u=o(21),d=y(u),c=o(11),f=y(c),p=o(8),v=y(p),h=o(10),g=y(h);function y(M){return M&&M.__esModule?M:{default:M}}function m(M){if(Array.isArray(M)){for(var D=0,P=Array(M.length);D<M.length;D++)P[D]=M[D];return P}else return Array.from(M)}function b(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}var w=(0,g.default)("quill:selection"),A=function M(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,M),this.index=D,this.length=P},S=(function(){function M(D,P){var O=this;b(this,M),this.emitter=P,this.scroll=D,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){O.mouseDown||setTimeout(O.update.bind(O,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(_,B){_===v.default.events.TEXT_CHANGE&&B.length()>0&&O.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(O.hasFocus()){var _=O.getNativeRange();_!=null&&_.start.node!==O.cursor.textNode&&O.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{O.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(_,B){if(B.range){var N=B.range,q=N.startNode,U=N.startOffset,j=N.endNode,H=N.endOffset;O.setNativeRange(q,U,j,H)}}),this.update(v.default.sources.SILENT)}return a(M,[{key:"handleComposition",value:function(){var P=this;this.root.addEventListener("compositionstart",function(){P.composing=!0}),this.root.addEventListener("compositionend",function(){if(P.composing=!1,P.cursor.parent){var O=P.cursor.restore();if(!O)return;setTimeout(function(){P.setNativeRange(O.startNode,O.startOffset,O.endNode,O.endOffset)},1)}})}},{key:"handleDragging",value:function(){var P=this;this.emitter.listenDOM("mousedown",document.body,function(){P.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){P.mouseDown=!1,P.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(P,O){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[P])){this.scroll.update();var _=this.getNativeRange();if(!(_==null||!_.native.collapsed||l.default.query(P,l.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){var B=l.default.find(_.start.node,!1);if(B==null)return;if(B instanceof l.default.Leaf){var N=B.split(_.start.offset);B.parent.insertBefore(this.cursor,N)}else B.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(P,O),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();P=Math.min(P,_-1),O=Math.min(P+O,_-1)-P;var B=void 0,N=this.scroll.leaf(P),q=i(N,2),U=q[0],j=q[1];if(U==null)return null;var H=U.position(j,!0),G=i(H,2);B=G[0],j=G[1];var Z=document.createRange();if(O>0){Z.setStart(B,j);var $=this.scroll.leaf(P+O),L=i($,2);if(U=L[0],j=L[1],U==null)return null;var W=U.position(j,!0),ie=i(W,2);return B=ie[0],j=ie[1],Z.setEnd(B,j),Z.getBoundingClientRect()}else{var ee="left",te=void 0;return B instanceof Text?(j<B.data.length?(Z.setStart(B,j),Z.setEnd(B,j+1)):(Z.setStart(B,j-1),Z.setEnd(B,j),ee="right"),te=Z.getBoundingClientRect()):(te=U.domNode.getBoundingClientRect(),j>0&&(ee="right")),{bottom:te.top+te.height,height:te.height,left:te[ee],right:te[ee],top:te.top,width:0}}}},{key:"getNativeRange",value:function(){var P=document.getSelection();if(P==null||P.rangeCount<=0)return null;var O=P.getRangeAt(0);if(O==null)return null;var _=this.normalizeNative(O);return w.info("getNativeRange",_),_}},{key:"getRange",value:function(){var P=this.getNativeRange();if(P==null)return[null,null];var O=this.normalizedToRange(P);return[O,P]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(P){var O=this,_=[[P.start.node,P.start.offset]];P.native.collapsed||_.push([P.end.node,P.end.offset]);var B=_.map(function(U){var j=i(U,2),H=j[0],G=j[1],Z=l.default.find(H,!0),$=Z.offset(O.scroll);return G===0?$:Z instanceof l.default.Container?$+Z.length():$+Z.index(H,G)}),N=Math.min(Math.max.apply(Math,m(B)),this.scroll.length()-1),q=Math.min.apply(Math,[N].concat(m(B)));return new A(q,N-q)}},{key:"normalizeNative",value:function(P){if(!k(this.root,P.startContainer)||!P.collapsed&&!k(this.root,P.endContainer))return null;var O={start:{node:P.startContainer,offset:P.startOffset},end:{node:P.endContainer,offset:P.endOffset},native:P};return[O.start,O.end].forEach(function(_){for(var B=_.node,N=_.offset;!(B instanceof Text)&&B.childNodes.length>0;)if(B.childNodes.length>N)B=B.childNodes[N],N=0;else if(B.childNodes.length===N)B=B.lastChild,N=B instanceof Text?B.data.length:B.childNodes.length+1;else break;_.node=B,_.offset=N}),O}},{key:"rangeToNative",value:function(P){var O=this,_=P.collapsed?[P.index]:[P.index,P.index+P.length],B=[],N=this.scroll.length();return _.forEach(function(q,U){q=Math.min(N-1,q);var j=void 0,H=O.scroll.leaf(q),G=i(H,2),Z=G[0],$=G[1],L=Z.position($,U!==0),W=i(L,2);j=W[0],$=W[1],B.push(j,$)}),B.length<2&&(B=B.concat(B)),B}},{key:"scrollIntoView",value:function(P){var O=this.lastRange;if(O!=null){var _=this.getBounds(O.index,O.length);if(_!=null){var B=this.scroll.length()-1,N=this.scroll.line(Math.min(O.index,B)),q=i(N,1),U=q[0],j=U;if(O.length>0){var H=this.scroll.line(Math.min(O.index+O.length,B)),G=i(H,1);j=G[0]}if(!(U==null||j==null)){var Z=P.getBoundingClientRect();_.top<Z.top?P.scrollTop-=Z.top-_.top:_.bottom>Z.bottom&&(P.scrollTop+=_.bottom-Z.bottom)}}}}},{key:"setNativeRange",value:function(P,O){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",P,O,_,B),!(P!=null&&(this.root.parentNode==null||P.parentNode==null||_.parentNode==null))){var q=document.getSelection();if(q!=null)if(P!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||N||P!==U.startContainer||O!==U.startOffset||_!==U.endContainer||B!==U.endOffset){P.tagName=="BR"&&(O=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode),_.tagName=="BR"&&(B=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var j=document.createRange();j.setStart(P,O),j.setEnd(_,B),q.removeAllRanges(),q.addRange(j)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof O=="string"&&(_=O,O=!1),w.info("setRange",P),P!=null){var B=this.rangeToNative(P);this.setNativeRange.apply(this,m(B).concat([O]))}else this.setNativeRange(null);this.update(_)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,O=this.lastRange,_=this.getRange(),B=i(_,2),N=B[0],q=B[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(O,this.lastRange)){var U;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var j=[v.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(O),P];if((U=this.emitter).emit.apply(U,[v.default.events.EDITOR_CHANGE].concat(j)),P!==v.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,j)}}}}]),M})();function k(M,D){try{D.parentNode}catch{return!1}return D instanceof Text&&(D=D.parentNode),M.contains(D)}r.Range=A,r.default=S}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(0),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"insertInto",value:function(y,m){y.children.length===0?a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,y,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),h})(l.default.Embed);p.blotName="break",p.tagName="BR",r.default=p}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(44),s=o(30),l=o(1),u=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.build(),v}return f.prototype.appendChild=function(p){this.insertBefore(p)},f.prototype.attach=function(){c.prototype.attach.call(this),this.children.forEach(function(p){p.attach()})},f.prototype.build=function(){var p=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var h=d(v);p.insertBefore(h,p.children.head||void 0)}catch(g){if(g instanceof l.ParchmentError)return;throw g}})},f.prototype.deleteAt=function(p,v){if(p===0&&v===this.length())return this.remove();this.children.forEachAt(p,v,function(h,g,y){h.deleteAt(g,y)})},f.prototype.descendant=function(p,v){var h=this.children.find(v),g=h[0],y=h[1];return p.blotName==null&&p(g)||p.blotName!=null&&g instanceof p?[g,y]:g instanceof f?g.descendant(p,y):[null,-1]},f.prototype.descendants=function(p,v,h){v===void 0&&(v=0),h===void 0&&(h=Number.MAX_VALUE);var g=[],y=h;return this.children.forEachAt(v,h,function(m,b,w){(p.blotName==null&&p(m)||p.blotName!=null&&m instanceof p)&&g.push(m),m instanceof f&&(g=g.concat(m.descendants(p,b,y))),y-=w}),g},f.prototype.detach=function(){this.children.forEach(function(p){p.detach()}),c.prototype.detach.call(this)},f.prototype.formatAt=function(p,v,h,g){this.children.forEachAt(p,v,function(y,m,b){y.formatAt(m,b,h,g)})},f.prototype.insertAt=function(p,v,h){var g=this.children.find(p),y=g[0],m=g[1];if(y)y.insertAt(m,v,h);else{var b=h==null?l.create("text",v):l.create(v,h);this.appendChild(b)}},f.prototype.insertBefore=function(p,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(h){return p instanceof h}))throw new l.ParchmentError("Cannot insert "+p.statics.blotName+" into "+this.statics.blotName);p.insertInto(this,v)},f.prototype.length=function(){return this.children.reduce(function(p,v){return p+v.length()},0)},f.prototype.moveChildren=function(p,v){this.children.forEach(function(h){p.insertBefore(h,v)})},f.prototype.optimize=function(p){if(c.prototype.optimize.call(this,p),this.children.length===0)if(this.statics.defaultChild!=null){var v=l.create(this.statics.defaultChild);this.appendChild(v),v.optimize(p)}else this.remove()},f.prototype.path=function(p,v){v===void 0&&(v=!1);var h=this.children.find(p,v),g=h[0],y=h[1],m=[[this,p]];return g instanceof f?m.concat(g.path(y,v)):(g!=null&&m.push([g,y]),m)},f.prototype.removeChild=function(p){this.children.remove(p)},f.prototype.replace=function(p){p instanceof f&&p.moveChildren(this),c.prototype.replace.call(this,p)},f.prototype.split=function(p,v){if(v===void 0&&(v=!1),!v){if(p===0)return this;if(p===this.length())return this.next}var h=this.clone();return this.parent.insertBefore(h,this.next),this.children.forEachAt(p,this.length(),function(g,y,m){g=g.split(y,v),h.appendChild(g)}),h},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(p,v){var h=this,g=[],y=[];p.forEach(function(m){m.target===h.domNode&&m.type==="childList"&&(g.push.apply(g,m.addedNodes),y.push.apply(y,m.removedNodes))}),y.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=l.find(m);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===h.domNode)&&b.detach()}}),g.filter(function(m){return m.parentNode==h.domNode}).sort(function(m,b){return m===b?0:m.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var b=null;m.nextSibling!=null&&(b=l.find(m.nextSibling));var w=d(m);(w.next!=b||w.next==null)&&(w.parent!=null&&w.parent.removeChild(h),h.insertBefore(w,b||void 0))})},f})(s.default);function d(c){var f=l.find(c);if(f==null)try{f=l.create(c)}catch{f=l.create(l.Scope.INLINE),[].slice.call(c.childNodes).forEach(function(v){f.domNode.appendChild(v)}),c.parentNode&&c.parentNode.replaceChild(f.domNode,c),f.attach()}return f}r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12),s=o(31),l=o(17),u=o(1),d=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.attributes=new s.default(v.domNode),v}return f.formats=function(p){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return p.tagName.toLowerCase()},f.prototype.format=function(p,v){var h=u.query(p);h instanceof a.default?this.attributes.attribute(h,v):v&&h!=null&&(p!==this.statics.blotName||this.formats()[p]!==v)&&this.replaceWith(p,v)},f.prototype.formats=function(){var p=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(p[this.statics.blotName]=v),p},f.prototype.replaceWith=function(p,v){var h=c.prototype.replaceWith.call(this,p,v);return this.attributes.copy(h),h},f.prototype.update=function(p,v){var h=this;c.prototype.update.call(this,p,v),p.some(function(g){return g.target===h.domNode&&g.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(p,v){var h=c.prototype.wrap.call(this,p,v);return h instanceof f&&h.statics.scope===this.statics.scope&&this.attributes.move(h),h},f})(l.default);r.default=d}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(30),s=o(1),l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.value=function(c){return!0},d.prototype.index=function(c,f){return this.domNode===c||this.domNode.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},d.prototype.position=function(c,f){var p=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return c>0&&(p+=1),[this.parent.domNode,p]},d.prototype.value=function(){var c;return c={},c[this.statics.blotName]=this.statics.value(this.domNode)||!0,c},d.scope=s.Scope.INLINE_BLOT,d})(a.default);r.default=l}),(function(n,r,o){var i=o(11),a=o(3),s={attributes:{compose:function(u,d,c){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=a(!0,{},d);c||(f=Object.keys(f).reduce(function(v,h){return f[h]!=null&&(v[h]=f[h]),v},{}));for(var p in u)u[p]!==void 0&&d[p]===void 0&&(f[p]=u[p]);return Object.keys(f).length>0?f:void 0},diff:function(u,d){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var c=Object.keys(u).concat(Object.keys(d)).reduce(function(f,p){return i(u[p],d[p])||(f[p]=d[p]===void 0?null:d[p]),f},{});return Object.keys(c).length>0?c:void 0},transform:function(u,d,c){if(typeof u!="object")return d;if(typeof d=="object"){if(!c)return d;var f=Object.keys(d).reduce(function(p,v){return u[v]===void 0&&(p[v]=d[v]),p},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(u){return new l(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function l(u){this.ops=u,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(u){u||(u=1/0);var d=this.ops[this.index];if(d){var c=this.offset,f=s.length(d);if(u>=f-c?(u=f-c,this.index+=1,this.offset=0):this.offset+=u,typeof d.delete=="number")return{delete:u};var p={};return d.attributes&&(p.attributes=d.attributes),typeof d.retain=="number"?p.retain=u:typeof d.insert=="string"?p.insert=d.insert.substr(c,u):p.insert=d.insert,p}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,d=this.index,c=this.next(),f=this.ops.slice(this.index);return this.offset=u,this.index=d,[c].concat(f)}else return[]},n.exports=s}),(function(n,r){var o=(function(){function i(h,g){return g!=null&&h instanceof g}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var l;try{l=Promise}catch{l=function(){}}function u(h,g,y,m,b){typeof g=="object"&&(y=g.depth,m=g.prototype,b=g.includeNonEnumerable,g=g.circular);var w=[],A=[],S=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof y>"u"&&(y=1/0);function k(M,D){if(M===null)return null;if(D===0)return M;var P,O;if(typeof M!="object")return M;if(i(M,a))P=new a;else if(i(M,s))P=new s;else if(i(M,l))P=new l(function(Z,$){M.then(function(L){Z(k(L,D-1))},function(L){$(k(L,D-1))})});else if(u.__isArray(M))P=[];else if(u.__isRegExp(M))P=new RegExp(M.source,v(M)),M.lastIndex&&(P.lastIndex=M.lastIndex);else if(u.__isDate(M))P=new Date(M.getTime());else{if(S&&Buffer.isBuffer(M))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(M.length):P=new Buffer(M.length),M.copy(P),P;i(M,Error)?P=Object.create(M):typeof m>"u"?(O=Object.getPrototypeOf(M),P=Object.create(O)):(P=Object.create(m),O=m)}if(g){var _=w.indexOf(M);if(_!=-1)return A[_];w.push(M),A.push(P)}i(M,a)&&M.forEach(function(Z,$){var L=k($,D-1),W=k(Z,D-1);P.set(L,W)}),i(M,s)&&M.forEach(function(Z){var $=k(Z,D-1);P.add($)});for(var B in M){var N;O&&(N=Object.getOwnPropertyDescriptor(O,B)),!(N&&N.set==null)&&(P[B]=k(M[B],D-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(M),B=0;B<q.length;B++){var U=q[B],j=Object.getOwnPropertyDescriptor(M,U);j&&!j.enumerable&&!b||(P[U]=k(M[U],D-1),j.enumerable||Object.defineProperty(P,U,{enumerable:!1}))}if(b)for(var H=Object.getOwnPropertyNames(M),B=0;B<H.length;B++){var G=H[B],j=Object.getOwnPropertyDescriptor(M,G);j&&j.enumerable||(P[G]=k(M[G],D-1),Object.defineProperty(P,G,{enumerable:!1}))}return P}return k(h,y)}u.clonePrototype=function(g){if(g===null)return null;var y=function(){};return y.prototype=g,new y};function d(h){return Object.prototype.toString.call(h)}u.__objToStr=d;function c(h){return typeof h=="object"&&d(h)==="[object Date]"}u.__isDate=c;function f(h){return typeof h=="object"&&d(h)==="[object Array]"}u.__isArray=f;function p(h){return typeof h=="object"&&d(h)==="[object RegExp]"}u.__isRegExp=p;function v(h){var g="";return h.global&&(g+="g"),h.ignoreCase&&(g+="i"),h.multiline&&(g+="m"),g}return u.__getRegExpFlags=v,u})();typeof n=="object"&&n.exports&&(n.exports=o)}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function P(O,_){var B=[],N=!0,q=!1,U=void 0;try{for(var j=O[Symbol.iterator](),H;!(N=(H=j.next()).done)&&(B.push(H.value),!(_&&B.length===_));N=!0);}catch(G){q=!0,U=G}finally{try{!N&&j.return&&j.return()}finally{if(q)throw U}}return B}return function(O,_){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return P(O,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function P(O,_){for(var B=0;B<_.length;B++){var N=_[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}return function(O,_,B){return _&&P(O.prototype,_),B&&P(O,B),O}})(),s=function P(O,_,B){O===null&&(O=Function.prototype);var N=Object.getOwnPropertyDescriptor(O,_);if(N===void 0){var q=Object.getPrototypeOf(O);return q===null?void 0:P(q,_,B)}else{if("value"in N)return N.value;var U=N.get;return U===void 0?void 0:U.call(B)}},l=o(0),u=w(l),d=o(8),c=w(d),f=o(4),p=w(f),v=o(16),h=w(v),g=o(13),y=w(g),m=o(25),b=w(m);function w(P){return P&&P.__esModule?P:{default:P}}function A(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function S(P,O){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:P}function k(P,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(P,O):P.__proto__=O)}function M(P){return P instanceof p.default||P instanceof f.BlockEmbed}var D=(function(P){k(O,P);function O(_,B){A(this,O);var N=S(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,_));return N.emitter=B.emitter,Array.isArray(B.whitelist)&&(N.whitelist=B.whitelist.reduce(function(q,U){return q[U]=!0,q},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return a(O,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(B,N){var q=this.line(B),U=i(q,2),j=U[0],H=U[1],G=this.line(B+N),Z=i(G,1),$=Z[0];if(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,B,N),$!=null&&j!==$&&H>0){if(j instanceof f.BlockEmbed||$ instanceof f.BlockEmbed){this.optimize();return}if(j instanceof y.default){var L=j.newlineIndex(j.length(),!0);if(L>-1&&(j=j.split(L+1),j===$)){this.optimize();return}}else if($ instanceof y.default){var W=$.newlineIndex(0);W>-1&&$.split(W+1)}var ie=$.children.head instanceof h.default?null:$.children.head;j.moveChildren($,ie),j.remove()}this.optimize()}},{key:"enable",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",B)}},{key:"formatAt",value:function(B,N,q,U){this.whitelist!=null&&!this.whitelist[q]||(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,B,N,q,U),this.optimize())}},{key:"insertAt",value:function(B,N,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[N])){if(B>=this.length())if(q==null||u.default.query(N,u.default.Scope.BLOCK)==null){var U=u.default.create(this.statics.defaultChild);this.appendChild(U),q==null&&N.endsWith(`
- `)&&(N=N.slice(0,-1)),U.insertAt(0,N,q)}else{var j=u.default.create(N,q);this.appendChild(j)}else s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,B,N,q);this.optimize()}}},{key:"insertBefore",value:function(B,N){if(B.statics.scope===u.default.Scope.INLINE_BLOT){var q=u.default.create(this.statics.defaultChild);q.appendChild(B),B=q}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,B,N)}},{key:"leaf",value:function(B){return this.path(B).pop()||[null,-1]}},{key:"line",value:function(B){return B===this.length()?this.line(B-1):this.descendant(M,B)}},{key:"lines",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function U(j,H,G){var Z=[],$=G;return j.children.forEachAt(H,G,function(L,W,ie){M(L)?Z.push(L):L instanceof u.default.Container&&(Z=Z.concat(U(L,W,$))),$-=ie}),Z};return q(this,B,N)}},{key:"optimize",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,B,N),B.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,B,N))}},{key:"path",value:function(B){return s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,B).slice(1)}},{key:"update",value:function(B){if(this.batch!==!0){var N=c.default.sources.USER;typeof B=="string"&&(N=B),Array.isArray(B)||(B=this.observer.takeRecords()),B.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,N,B),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"update",this).call(this,B.concat([])),B.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,N,B)}}}]),O})(u.default.Scroll);D.blotName="scroll",D.className="ql-editor",D.tagName="DIV",D.defaultChild="block",D.allowedChildren=[p.default,f.BlockEmbed,b.default],r.default=D}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},a=(function(){function te(X,ue){var ve=[],Me=!0,we=!1,he=void 0;try{for(var Te=X[Symbol.iterator](),Y;!(Me=(Y=Te.next()).done)&&(ve.push(Y.value),!(ue&&ve.length===ue));Me=!0);}catch(be){we=!0,he=be}finally{try{!Me&&Te.return&&Te.return()}finally{if(we)throw he}}return ve}return function(X,ue){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return te(X,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function te(X,ue){for(var ve=0;ve<ue.length;ve++){var Me=ue[ve];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(X,Me.key,Me)}}return function(X,ue,ve){return ue&&te(X.prototype,ue),ve&&te(X,ve),X}})(),l=o(21),u=P(l),d=o(11),c=P(d),f=o(3),p=P(f),v=o(2),h=P(v),g=o(20),y=P(g),m=o(0),b=P(m),w=o(5),A=P(w),S=o(10),k=P(S),M=o(9),D=P(M);function P(te){return te&&te.__esModule?te:{default:te}}function O(te,X,ue){return X in te?Object.defineProperty(te,X,{value:ue,enumerable:!0,configurable:!0,writable:!0}):te[X]=ue,te}function _(te,X){if(!(te instanceof X))throw new TypeError("Cannot call a class as a function")}function B(te,X){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:te}function N(te,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);te.prototype=Object.create(X&&X.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(te,X):te.__proto__=X)}var q=(0,k.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",j=(function(te){N(X,te),s(X,null,[{key:"match",value:function(ve,Me){return Me=ee(Me),["altKey","ctrlKey","metaKey","shiftKey"].some(function(we){return!!Me[we]!==ve[we]&&Me[we]!==null})?!1:Me.key===(ve.which||ve.keyCode)}}]);function X(ue,ve){_(this,X);var Me=B(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,ue,ve));return Me.bindings={},Object.keys(Me.options.bindings).forEach(function(we){we==="list autofill"&&ue.scroll.whitelist!=null&&!ue.scroll.whitelist.list||Me.options.bindings[we]&&Me.addBinding(Me.options.bindings[we])}),Me.addBinding({key:X.keys.ENTER,shiftKey:null},L),Me.addBinding({key:X.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Me.addBinding({key:X.keys.BACKSPACE},{collapsed:!0},G),Me.addBinding({key:X.keys.DELETE},{collapsed:!0},Z)):(Me.addBinding({key:X.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},G),Me.addBinding({key:X.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Z)),Me.addBinding({key:X.keys.BACKSPACE},{collapsed:!1},$),Me.addBinding({key:X.keys.DELETE},{collapsed:!1},$),Me.addBinding({key:X.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},G),Me.listen(),Me}return s(X,[{key:"addBinding",value:function(ve){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=ee(ve);if(he==null||he.key==null)return q.warn("Attempted to add invalid keyboard binding",he);typeof Me=="function"&&(Me={handler:Me}),typeof we=="function"&&(we={handler:we}),he=(0,p.default)(he,Me,we),this.bindings[he.key]=this.bindings[he.key]||[],this.bindings[he.key].push(he)}},{key:"listen",value:function(){var ve=this;this.quill.root.addEventListener("keydown",function(Me){if(!Me.defaultPrevented){var we=Me.which||Me.keyCode,he=(ve.bindings[we]||[]).filter(function(Wt){return X.match(Me,Wt)});if(he.length!==0){var Te=ve.quill.getSelection();if(!(Te==null||!ve.quill.hasFocus())){var Y=ve.quill.getLine(Te.index),be=a(Y,2),De=be[0],pe=be[1],oe=ve.quill.getLeaf(Te.index),ce=a(oe,2),Re=ce[0],Ee=ce[1],Le=Te.length===0?[Re,Ee]:ve.quill.getLeaf(Te.index+Te.length),Fe=a(Le,2),Pe=Fe[0],Ne=Fe[1],pt=Re instanceof b.default.Text?Re.value().slice(0,Ee):"",Rt=Pe instanceof b.default.Text?Pe.value().slice(Ne):"",Bt={collapsed:Te.length===0,empty:Te.length===0&&De.length()<=1,format:ve.quill.getFormat(Te),offset:pe,prefix:pt,suffix:Rt},en=he.some(function(Wt){if(Wt.collapsed!=null&&Wt.collapsed!==Bt.collapsed||Wt.empty!=null&&Wt.empty!==Bt.empty||Wt.offset!=null&&Wt.offset!==Bt.offset)return!1;if(Array.isArray(Wt.format)){if(Wt.format.every(function(Ut){return Bt.format[Ut]==null}))return!1}else if(i(Wt.format)==="object"&&!Object.keys(Wt.format).every(function(Ut){return Wt.format[Ut]===!0?Bt.format[Ut]!=null:Wt.format[Ut]===!1?Bt.format[Ut]==null:(0,c.default)(Wt.format[Ut],Bt.format[Ut])}))return!1;return Wt.prefix!=null&&!Wt.prefix.test(Bt.prefix)||Wt.suffix!=null&&!Wt.suffix.test(Bt.suffix)?!1:Wt.handler.call(ve,Te,Bt)!==!0});en&&Me.preventDefault()}}}})}}]),X})(D.default);j.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},j.DEFAULTS={bindings:{bold:ie("bold"),italic:ie("italic"),underline:ie("underline"),indent:{key:j.keys.TAB,format:["blockquote","indent","list"],handler:function(X,ue){if(ue.collapsed&&ue.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:j.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(X,ue){if(ue.collapsed&&ue.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:j.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(X,ue){ue.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):ue.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":W(!0),"outdent code-block":W(!1),"remove tab":{key:j.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(X){this.quill.deleteText(X.index-1,1,A.default.sources.USER)}},tab:{key:j.keys.TAB,handler:function(X){this.quill.history.cutoff();var ue=new h.default().retain(X.index).delete(X.length).insert(" ");this.quill.updateContents(ue,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index+1,A.default.sources.SILENT)}},"list empty enter":{key:j.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(X,ue){this.quill.format("list",!1,A.default.sources.USER),ue.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:j.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(X){var ue=this.quill.getLine(X.index),ve=a(ue,2),Me=ve[0],we=ve[1],he=(0,p.default)({},Me.formats(),{list:"checked"}),Te=new h.default().retain(X.index).insert(`
- `,he).retain(Me.length()-we-1).retain(1,{list:"unchecked"});this.quill.updateContents(Te,A.default.sources.USER),this.quill.setSelection(X.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:j.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(X,ue){var ve=this.quill.getLine(X.index),Me=a(ve,2),we=Me[0],he=Me[1],Te=new h.default().retain(X.index).insert(`
- `,ue.format).retain(we.length()-he-1).retain(1,{header:null});this.quill.updateContents(Te,A.default.sources.USER),this.quill.setSelection(X.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(X,ue){var ve=ue.prefix.length,Me=this.quill.getLine(X.index),we=a(Me,2),he=we[0],Te=we[1];if(Te>ve)return!0;var Y=void 0;switch(ue.prefix.trim()){case"[]":case"[ ]":Y="unchecked";break;case"[x]":Y="checked";break;case"-":case"*":Y="bullet";break;default:Y="ordered"}this.quill.insertText(X.index," ",A.default.sources.USER),this.quill.history.cutoff();var be=new h.default().retain(X.index-Te).delete(ve+1).retain(he.length()-2-Te).retain(1,{list:Y});this.quill.updateContents(be,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index-ve,A.default.sources.SILENT)}},"code exit":{key:j.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(X){var ue=this.quill.getLine(X.index),ve=a(ue,2),Me=ve[0],we=ve[1],he=new h.default().retain(X.index+Me.length()-we-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(he,A.default.sources.USER)}},"embed left":H(j.keys.LEFT,!1),"embed left shift":H(j.keys.LEFT,!0),"embed right":H(j.keys.RIGHT,!1),"embed right shift":H(j.keys.RIGHT,!0)}};function H(te,X){var ue,ve=te===j.keys.LEFT?"prefix":"suffix";return ue={key:te,shiftKey:X,altKey:null},O(ue,ve,/^$/),O(ue,"handler",function(we){var he=we.index;te===j.keys.RIGHT&&(he+=we.length+1);var Te=this.quill.getLeaf(he),Y=a(Te,1),be=Y[0];return be instanceof b.default.Embed?(te===j.keys.LEFT?X?this.quill.setSelection(we.index-1,we.length+1,A.default.sources.USER):this.quill.setSelection(we.index-1,A.default.sources.USER):X?this.quill.setSelection(we.index,we.length+1,A.default.sources.USER):this.quill.setSelection(we.index+we.length+1,A.default.sources.USER),!1):!0}),ue}function G(te,X){if(!(te.index===0||this.quill.getLength()<=1)){var ue=this.quill.getLine(te.index),ve=a(ue,1),Me=ve[0],we={};if(X.offset===0){var he=this.quill.getLine(te.index-1),Te=a(he,1),Y=Te[0];if(Y!=null&&Y.length()>1){var be=Me.formats(),De=this.quill.getFormat(te.index-1,1);we=y.default.attributes.diff(be,De)||{}}}var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(X.prefix)?2:1;this.quill.deleteText(te.index-pe,pe,A.default.sources.USER),Object.keys(we).length>0&&this.quill.formatLine(te.index-pe,pe,we,A.default.sources.USER),this.quill.focus()}}function Z(te,X){var ue=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(X.suffix)?2:1;if(!(te.index>=this.quill.getLength()-ue)){var ve={},Me=0,we=this.quill.getLine(te.index),he=a(we,1),Te=he[0];if(X.offset>=Te.length()-1){var Y=this.quill.getLine(te.index+1),be=a(Y,1),De=be[0];if(De){var pe=Te.formats(),oe=this.quill.getFormat(te.index,1);ve=y.default.attributes.diff(pe,oe)||{},Me=De.length()}}this.quill.deleteText(te.index,ue,A.default.sources.USER),Object.keys(ve).length>0&&this.quill.formatLine(te.index+Me-1,ue,ve,A.default.sources.USER)}}function $(te){var X=this.quill.getLines(te),ue={};if(X.length>1){var ve=X[0].formats(),Me=X[X.length-1].formats();ue=y.default.attributes.diff(Me,ve)||{}}this.quill.deleteText(te,A.default.sources.USER),Object.keys(ue).length>0&&this.quill.formatLine(te.index,1,ue,A.default.sources.USER),this.quill.setSelection(te.index,A.default.sources.SILENT),this.quill.focus()}function L(te,X){var ue=this;te.length>0&&this.quill.scroll.deleteAt(te.index,te.length);var ve=Object.keys(X.format).reduce(function(Me,we){return b.default.query(we,b.default.Scope.BLOCK)&&!Array.isArray(X.format[we])&&(Me[we]=X.format[we]),Me},{});this.quill.insertText(te.index,`
- `,ve,A.default.sources.USER),this.quill.setSelection(te.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(X.format).forEach(function(Me){ve[Me]==null&&(Array.isArray(X.format[Me])||Me!=="link"&&ue.quill.format(Me,X.format[Me],A.default.sources.USER))})}function W(te){return{key:j.keys.TAB,shiftKey:!te,format:{"code-block":!0},handler:function(ue){var ve=b.default.query("code-block"),Me=ue.index,we=ue.length,he=this.quill.scroll.descendant(ve,Me),Te=a(he,2),Y=Te[0],be=Te[1];if(Y!=null){var De=this.quill.getIndex(Y),pe=Y.newlineIndex(be,!0)+1,oe=Y.newlineIndex(De+be+we),ce=Y.domNode.textContent.slice(pe,oe).split(`
- `);be=0,ce.forEach(function(Re,Ee){te?(Y.insertAt(pe+be,ve.TAB),be+=ve.TAB.length,Ee===0?Me+=ve.TAB.length:we+=ve.TAB.length):Re.startsWith(ve.TAB)&&(Y.deleteAt(pe+be,ve.TAB.length),be-=ve.TAB.length,Ee===0?Me-=ve.TAB.length:we-=ve.TAB.length),be+=Re.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(Me,we,A.default.sources.SILENT)}}}}function ie(te){return{key:te[0].toUpperCase(),shortKey:!0,handler:function(ue,ve){this.quill.format(te,!ve.format[te],A.default.sources.USER)}}}function ee(te){if(typeof te=="string"||typeof te=="number")return ee({key:te});if((typeof te>"u"?"undefined":i(te))==="object"&&(te=(0,u.default)(te,!1)),typeof te.key=="string")if(j.keys[te.key.toUpperCase()]!=null)te.key=j.keys[te.key.toUpperCase()];else if(te.key.length===1)te.key=te.key.toUpperCase().charCodeAt(0);else return null;return te.shortKey&&(te[U]=te.shortKey,delete te.shortKey),te}r.default=j,r.SHORTKEY=U}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function y(m,b){var w=[],A=!0,S=!1,k=void 0;try{for(var M=m[Symbol.iterator](),D;!(A=(D=M.next()).done)&&(w.push(D.value),!(b&&w.length===b));A=!0);}catch(P){S=!0,k=P}finally{try{!A&&M.return&&M.return()}finally{if(S)throw k}}return w}return function(m,b){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return y(m,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var k=A.get;return k===void 0?void 0:k.call(w)}},s=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),l=o(0),u=f(l),d=o(7),c=f(d);function f(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function v(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function h(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var g=(function(y){h(m,y),s(m,null,[{key:"value",value:function(){}}]);function m(b,w){p(this,m);var A=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return A.selection=w,A.textNode=document.createTextNode(m.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return s(m,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,A){if(this._length!==0)return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,w,A);for(var S=this,k=0;S!=null&&S.statics.scope!==u.default.Scope.BLOCK_BLOT;)k+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=m.CONTENTS.length,S.optimize(),S.formatAt(k,m.CONTENTS.length,w,A),this._length=0)}},{key:"index",value:function(w,A){return w===this.textNode?0:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,w,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,A=this.selection.getNativeRange(),S=void 0,k=void 0,M=void 0;if(A!=null&&A.start.node===w&&A.end.node===w){var D=[w,A.start.offset,A.end.offset];S=D[0],k=D[1],M=D[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==m.CONTENTS){var P=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof c.default?(S=this.next.domNode,this.next.insertAt(0,P),this.textNode.data=m.CONTENTS):(this.textNode.data=P,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(m.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),k!=null){var O=[k,M].map(function(B){return Math.max(0,Math.min(S.data.length,B-1))}),_=i(O,2);return k=_[0],M=_[1],{startNode:S,startOffset:k,endNode:S,endOffset:M}}}}},{key:"update",value:function(w,A){var S=this;if(w.some(function(M){return M.type==="characterData"&&M.target===S.textNode})){var k=this.restore();k&&(A.range=k)}}},{key:"value",value:function(){return""}}]),m})(u.default.Embed);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\uFEFF",r.default=g}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=u(i),s=o(4),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Container);p.allowedChildren=[l.default,s.BlockEmbed,p],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(0),l=u(s);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function c(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function f(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var p=(function(g){f(y,g);function y(){return d(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"value",value:function(b){var w=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,b);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):w}}]),y})(l.default.Attributor.Style),v=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),h=new p("color","color",{scope:l.default.Scope.INLINE});r.ColorAttributor=p,r.ColorClass=v,r.ColorStyle=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var i=(function(){function h(g,y){for(var m=0;m<y.length;m++){var b=y[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,m){return y&&h(g.prototype,y),m&&h(g,m),g}})(),a=function h(g,y,m){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,y);if(b===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:h(w,y,m)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(m)}},s=o(6),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=(function(h){f(g,h);function g(){return d(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"format",value:function(m,b){if(m!==this.statics.blotName||!b)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,m,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(m){var b=a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,m);return m=this.sanitize(m),b.setAttribute("href",m),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return v(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),g})(l.default);p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(h,g){var y=document.createElement("a");y.href=h;var m=y.href.slice(0,y.href.indexOf(":"));return g.indexOf(m)>-1}r.default=p,r.sanitize=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},a=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),s=o(23),l=c(s),u=o(107),d=c(u);function c(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var p=0;function v(g,y){g.setAttribute(y,g.getAttribute(y)!=="true")}var h=(function(){function g(y){var m=this;f(this,g),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){m.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case l.default.keys.ENTER:m.togglePicker();break;case l.default.keys.ESCAPE:m.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(g,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var b=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),m.hasAttribute("value")&&w.setAttribute("data-value",m.getAttribute("value")),m.textContent&&w.setAttribute("data-label",m.textContent),w.addEventListener("click",function(){b.selectItem(w,!0)}),w.addEventListener("keydown",function(A){switch(A.keyCode){case l.default.keys.ENTER:b.selectItem(w,!0),A.preventDefault();break;case l.default.keys.ESCAPE:b.escape(),A.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=d.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,b=document.createElement("span");b.classList.add("ql-picker-options"),b.setAttribute("aria-hidden","true"),b.tabIndex="-1",b.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",b.id),this.options=b,[].slice.call(this.select.options).forEach(function(w){var A=m.buildItem(w);b.appendChild(A),w.selected===!0&&m.selectItem(A)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(b){m.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(m!==w&&(w?.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":i(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var w=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),g})();r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=q(i),s=o(5),l=q(s),u=o(4),d=q(u),c=o(16),f=q(c),p=o(25),v=q(p),h=o(24),g=q(h),y=o(35),m=q(y),b=o(6),w=q(b),A=o(22),S=q(A),k=o(7),M=q(k),D=o(55),P=q(D),O=o(42),_=q(O),B=o(23),N=q(B);function q(U){return U&&U.__esModule?U:{default:U}}l.default.register({"blots/block":d.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":v.default,"blots/cursor":g.default,"blots/embed":m.default,"blots/inline":w.default,"blots/scroll":S.default,"blots/text":M.default,"modules/clipboard":P.default,"modules/history":_.default,"modules/keyboard":N.default}),a.default.register(d.default,f.default,g.default,w.default,S.default,M.default),r.default=l.default}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),a=(function(){function s(l){this.domNode=l,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?u=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?u=document.createElement(l):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return i.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},s.prototype.deleteAt=function(l,u){var d=this.isolate(l,u);d.remove()},s.prototype.formatAt=function(l,u,d,c){var f=this.isolate(l,u);if(i.query(d,i.Scope.BLOT)!=null&&c)f.wrap(d,c);else if(i.query(d,i.Scope.ATTRIBUTE)!=null){var p=i.create(this.statics.scope);f.wrap(p),p.format(d,c)}},s.prototype.insertAt=function(l,u,d){var c=d==null?i.create("text",u):i.create(u,d),f=this.split(l);this.parent.insertBefore(c,f)},s.prototype.insertInto=function(l,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var d=null;l.children.insertBefore(this,u),u!=null&&(d=u.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=d)&&l.domNode.insertBefore(this.domNode,d),this.parent=l,this.attach()},s.prototype.isolate=function(l,u){var d=this.split(l);return d.split(u),d},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,u){var d=typeof l=="string"?i.create(l,u):l;return d.replace(this),d},s.prototype.split=function(l,u){return l===0?this:this.next},s.prototype.update=function(l,u){},s.prototype.wrap=function(l,u){var d=typeof l=="string"?i.create(l,u):l;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},s.blotName="abstract",s})();r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(12),a=o(32),s=o(33),l=o(1),u=(function(){function d(c){this.attributes={},this.domNode=c,this.build()}return d.prototype.attribute=function(c,f){f?c.add(this.domNode,f)&&(c.value(this.domNode)!=null?this.attributes[c.attrName]=c:delete this.attributes[c.attrName]):(c.remove(this.domNode),delete this.attributes[c.attrName])},d.prototype.build=function(){var c=this;this.attributes={};var f=i.default.keys(this.domNode),p=a.default.keys(this.domNode),v=s.default.keys(this.domNode);f.concat(p).concat(v).forEach(function(h){var g=l.query(h,l.Scope.ATTRIBUTE);g instanceof i.default&&(c.attributes[g.attrName]=g)})},d.prototype.copy=function(c){var f=this;Object.keys(this.attributes).forEach(function(p){var v=f.attributes[p].value(f.domNode);c.format(p,v)})},d.prototype.move=function(c){var f=this;this.copy(c),Object.keys(this.attributes).forEach(function(p){f.attributes[p].remove(f.domNode)}),this.attributes={}},d.prototype.values=function(){var c=this;return Object.keys(this.attributes).reduce(function(f,p){return f[p]=c.attributes[p].value(c.domNode),f},{})},d})();r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12);function s(u,d){var c=u.getAttribute("class")||"";return c.split(/\s+/).filter(function(f){return f.indexOf(d+"-")===0})}var l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(c){return(c.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},d.prototype.add=function(c,f){return this.canAdd(c,f)?(this.remove(c),c.classList.add(this.keyName+"-"+f),!0):!1},d.prototype.remove=function(c){var f=s(c,this.keyName);f.forEach(function(p){c.classList.remove(p)}),c.classList.length===0&&c.removeAttribute("class")},d.prototype.value=function(c){var f=s(c,this.keyName)[0]||"",p=f.slice(this.keyName.length+1);return this.canAdd(c,p)?p:""},d})(a.default);r.default=l}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12);function s(u){var d=u.split("-"),c=d.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return d[0]+c}var l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(c){return(c.getAttribute("style")||"").split(";").map(function(f){var p=f.split(":");return p[0].trim()})},d.prototype.add=function(c,f){return this.canAdd(c,f)?(c.style[s(this.keyName)]=f,!0):!1},d.prototype.remove=function(c){c.style[s(this.keyName)]="",c.getAttribute("style")||c.removeAttribute("style")},d.prototype.value=function(c){var f=c.style[s(this.keyName)];return this.canAdd(c,f)?f:""},d})(a.default);r.default=l}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function l(u,d){for(var c=0;c<d.length;c++){var f=d[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,c){return d&&l(u.prototype,d),c&&l(u,c),u}})();function a(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=(function(){function l(u,d){a(this,l),this.quill=u,this.options=d,this.modules={}}return i(l,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(c){d.modules[c]==null&&d.addModule(c)})}},{key:"addModule",value:function(d){var c=this.quill.constructor.import("modules/"+d);return this.modules[d]=new c(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),l})();s.DEFAULTS={modules:{}},s.themes={default:s},r.default=s}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var k=A.get;return k===void 0?void 0:k.call(w)}},s=o(0),l=c(s),u=o(7),d=c(u);function c(y){return y&&y.__esModule?y:{default:y}}function f(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function v(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var h="\uFEFF",g=(function(y){v(m,y);function m(b){f(this,m);var w=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(A){w.contentNode.appendChild(A)}),w.leftGuard=document.createTextNode(h),w.rightGuard=document.createTextNode(h),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return i(m,[{key:"index",value:function(w,A){return w===this.leftGuard?0:w===this.rightGuard?1:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,w,A)}},{key:"restore",value:function(w){var A=void 0,S=void 0,k=w.data.split(h).join("");if(w===this.leftGuard)if(this.prev instanceof d.default){var M=this.prev.length();this.prev.insertAt(M,k),A={startNode:this.prev.domNode,startOffset:M+k.length}}else S=document.createTextNode(k),this.parent.insertBefore(l.default.create(S),this),A={startNode:S,startOffset:k.length};else w===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,k),A={startNode:this.next.domNode,startOffset:k.length}):(S=document.createTextNode(k),this.parent.insertBefore(l.default.create(S),this.next),A={startNode:S,startOffset:k.length}));return w.data=h,A}},{key:"update",value:function(w,A){var S=this;w.forEach(function(k){if(k.type==="characterData"&&(k.target===S.leftGuard||k.target===S.rightGuard)){var M=S.restore(k.target);M&&(A.range=M)}})}}]),m})(l.default.Embed);r.default=g}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new a.default.Attributor.Attribute("align","align",l),d=new a.default.Attributor.Class("align","ql-align",l),c=new a.default.Attributor.Style("align","text-align",l);r.AlignAttribute=u,r.AlignClass=d,r.AlignStyle=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var i=o(0),a=l(i),s=o(26);function l(c){return c&&c.__esModule?c:{default:c}}var u=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),d=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=d}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},u=new a.default.Attributor.Attribute("direction","dir",l),d=new a.default.Attributor.Class("direction","ql-direction",l),c=new a.default.Attributor.Style("direction","direction",l);r.DirectionAttribute=u,r.DirectionClass=d,r.DirectionStyle=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var i=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var k=A.get;return k===void 0?void 0:k.call(w)}},s=o(0),l=u(s);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function c(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function f(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var p={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new l.default.Attributor.Class("font","ql-font",p),h=(function(y){f(m,y);function m(){return d(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(w){return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),m})(l.default.Attributor.Style),g=new h("font","font-family",p);r.FontStyle=g,r.FontClass=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var i=o(0),a=s(i);function s(d){return d&&d.__esModule?d:{default:d}}var l=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=l,r.SizeStyle=u}),(function(n,r,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{1:o(92),2:o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var i=(function(){function b(w,A){for(var S=0;S<A.length;S++){var k=A[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(w,k.key,k)}}return function(w,A,S){return A&&b(w.prototype,A),S&&b(w,S),w}})(),a=o(0),s=f(a),l=o(5),u=f(l),d=o(9),c=f(d);function f(b){return b&&b.__esModule?b:{default:b}}function p(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function v(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function h(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var g=(function(b){h(w,b);function w(A,S){p(this,w);var k=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,A,S));return k.lastRecorded=0,k.ignoreChange=!1,k.clear(),k.quill.on(u.default.events.EDITOR_CHANGE,function(M,D,P,O){M!==u.default.events.TEXT_CHANGE||k.ignoreChange||(!k.options.userOnly||O===u.default.sources.USER?k.record(D,P):k.transform(D))}),k.quill.keyboard.addBinding({key:"Z",shortKey:!0},k.undo.bind(k)),k.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},k.redo.bind(k)),/Win/i.test(navigator.platform)&&k.quill.keyboard.addBinding({key:"Y",shortKey:!0},k.redo.bind(k)),k}return i(w,[{key:"change",value:function(S,k){if(this.stack[S].length!==0){var M=this.stack[S].pop();this.stack[k].push(M),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(M[S],u.default.sources.USER),this.ignoreChange=!1;var D=m(M[S]);this.quill.setSelection(D)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,k){if(S.ops.length!==0){this.stack.redo=[];var M=this.quill.getContents().diff(k),D=Date.now();if(this.lastRecorded+this.options.delay>D&&this.stack.undo.length>0){var P=this.stack.undo.pop();M=M.compose(P.undo),S=P.redo.compose(S)}else this.lastRecorded=D;this.stack.undo.push({redo:S,undo:M}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(k){k.undo=S.transform(k.undo,!0),k.redo=S.transform(k.redo,!0)}),this.stack.redo.forEach(function(k){k.undo=S.transform(k.undo,!0),k.redo=S.transform(k.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w})(c.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(b){var w=b.ops[b.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(`
- `):w.attributes!=null?Object.keys(w.attributes).some(function(A){return s.default.query(A,s.default.Scope.BLOCK)!=null}):!1}function m(b){var w=b.reduce(function(S,k){return S+=k.delete||0,S},0),A=b.length()-w;return y(b)&&(A-=1),A}r.default=g,r.getLastChangeIndex=m}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var i=(function(){function L(W,ie){for(var ee=0;ee<ie.length;ee++){var te=ie[ee];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(W,te.key,te)}}return function(W,ie,ee){return ie&&L(W.prototype,ie),ee&&L(W,ee),W}})(),a=function L(W,ie,ee){W===null&&(W=Function.prototype);var te=Object.getOwnPropertyDescriptor(W,ie);if(te===void 0){var X=Object.getPrototypeOf(W);return X===null?void 0:L(X,ie,ee)}else{if("value"in te)return te.value;var ue=te.get;return ue===void 0?void 0:ue.call(ee)}},s=o(3),l=D(s),u=o(2),d=D(u),c=o(8),f=D(c),p=o(23),v=D(p),h=o(34),g=D(h),y=o(59),m=D(y),b=o(60),w=D(b),A=o(28),S=D(A),k=o(61),M=D(k);function D(L){return L&&L.__esModule?L:{default:L}}function P(L,W){if(!(L instanceof W))throw new TypeError("Cannot call a class as a function")}function O(L,W){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:L}function _(L,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);L.prototype=Object.create(W&&W.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(L,W):L.__proto__=W)}var B=[!1,"center","right","justify"],N=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],U=["1","2","3",!1],j=["small",!1,"large","huge"],H=(function(L){_(W,L);function W(ie,ee){P(this,W);var te=O(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,ie,ee)),X=function ue(ve){if(!document.body.contains(ie.root))return document.body.removeEventListener("click",ue);te.tooltip!=null&&!te.tooltip.root.contains(ve.target)&&document.activeElement!==te.tooltip.textbox&&!te.quill.hasFocus()&&te.tooltip.hide(),te.pickers!=null&&te.pickers.forEach(function(Me){Me.container.contains(ve.target)||Me.close()})};return ie.emitter.listenDOM("click",document.body,X),te}return i(W,[{key:"addModule",value:function(ee){var te=a(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"addModule",this).call(this,ee);return ee==="toolbar"&&this.extendToolbar(te),te}},{key:"buildButtons",value:function(ee,te){ee.forEach(function(X){var ue=X.getAttribute("class")||"";ue.split(/\s+/).forEach(function(ve){if(ve.startsWith("ql-")&&(ve=ve.slice(3),te[ve]!=null))if(ve==="direction")X.innerHTML=te[ve][""]+te[ve].rtl;else if(typeof te[ve]=="string")X.innerHTML=te[ve];else{var Me=X.value||"";Me!=null&&te[ve][Me]&&(X.innerHTML=te[ve][Me])}})})}},{key:"buildPickers",value:function(ee,te){var X=this;this.pickers=ee.map(function(ve){if(ve.classList.contains("ql-align"))return ve.querySelector("option")==null&&$(ve,B),new w.default(ve,te.align);if(ve.classList.contains("ql-background")||ve.classList.contains("ql-color")){var Me=ve.classList.contains("ql-background")?"background":"color";return ve.querySelector("option")==null&&$(ve,N,Me==="background"?"#ffffff":"#000000"),new m.default(ve,te[Me])}else return ve.querySelector("option")==null&&(ve.classList.contains("ql-font")?$(ve,q):ve.classList.contains("ql-header")?$(ve,U):ve.classList.contains("ql-size")&&$(ve,j)),new S.default(ve)});var ue=function(){X.pickers.forEach(function(Me){Me.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,ue)}}]),W})(g.default);H.DEFAULTS=(0,l.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var W=this,ie=this.container.querySelector("input.ql-image[type=file]");ie==null&&(ie=document.createElement("input"),ie.setAttribute("type","file"),ie.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ie.classList.add("ql-image"),ie.addEventListener("change",function(){if(ie.files!=null&&ie.files[0]!=null){var ee=new FileReader;ee.onload=function(te){var X=W.quill.getSelection(!0);W.quill.updateContents(new d.default().retain(X.index).delete(X.length).insert({image:te.target.result}),f.default.sources.USER),W.quill.setSelection(X.index+1,f.default.sources.SILENT),ie.value=""},ee.readAsDataURL(ie.files[0])}}),this.container.appendChild(ie)),ie.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var G=(function(L){_(W,L);function W(ie,ee){P(this,W);var te=O(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,ie,ee));return te.textbox=te.root.querySelector('input[type="text"]'),te.listen(),te}return i(W,[{key:"listen",value:function(){var ee=this;this.textbox.addEventListener("keydown",function(te){v.default.match(te,"enter")?(ee.save(),te.preventDefault()):v.default.match(te,"escape")&&(ee.cancel(),te.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),te!=null?this.textbox.value=te:ee!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ee)||""),this.root.setAttribute("data-mode",ee)}},{key:"restoreFocus",value:function(){var ee=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=ee}},{key:"save",value:function(){var ee=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var te=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",ee,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ee,f.default.sources.USER)),this.quill.root.scrollTop=te;break}case"video":ee=Z(ee);case"formula":{if(!ee)break;var X=this.quill.getSelection(!0);if(X!=null){var ue=X.index+X.length;this.quill.insertEmbed(ue,this.root.getAttribute("data-mode"),ee,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ue+1," ",f.default.sources.USER),this.quill.setSelection(ue+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),W})(M.default);function Z(L){var W=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return W?(W[1]||"https")+"://www.youtube.com/embed/"+W[2]+"?showinfo=0":(W=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(W[1]||"https")+"://player.vimeo.com/video/"+W[2]+"/":L}function $(L,W){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;W.forEach(function(ee){var te=document.createElement("option");ee===ie?te.setAttribute("selected","selected"):te.setAttribute("value",ee),L.appendChild(te)})}r.BaseTooltip=G,r.default=H}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var l,u=this.iterator();l=u();)if(l===s)return!0;return!1},a.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var l=0,u=this.head;u!=null;){if(u===s)return l;l+=u.length(),u=u.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},a.prototype.find=function(s,l){l===void 0&&(l=!1);for(var u,d=this.iterator();u=d();){var c=u.length();if(s<c||l&&s===c&&(u.next==null||u.next.length()!==0))return[u,s];s-=c}return[null,0]},a.prototype.forEach=function(s){for(var l,u=this.iterator();l=u();)s(l)},a.prototype.forEachAt=function(s,l,u){if(!(l<=0))for(var d=this.find(s),c=d[0],f=d[1],p,v=s-f,h=this.iterator(c);(p=h())&&v<s+l;){var g=p.length();s>v?u(p,s-v,Math.min(l,v+g-s)):u(p,0,Math.min(g,s+l-v)),v+=g}},a.prototype.map=function(s){return this.reduce(function(l,u){return l.push(s(u)),l},[])},a.prototype.reduce=function(s,l){for(var u,d=this.iterator();u=d();)l=s(l,u);return l},a})();r.default=i}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(17),s=o(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,d=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.scroll=v,v.observer=new MutationObserver(function(h){v.update(h)}),v.observer.observe(v.domNode,l),v.attach(),v}return f.prototype.detach=function(){c.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(p,v){this.update(),p===0&&v===this.length()?this.children.forEach(function(h){h.remove()}):c.prototype.deleteAt.call(this,p,v)},f.prototype.formatAt=function(p,v,h,g){this.update(),c.prototype.formatAt.call(this,p,v,h,g)},f.prototype.insertAt=function(p,v,h){this.update(),c.prototype.insertAt.call(this,p,v,h)},f.prototype.optimize=function(p,v){var h=this;p===void 0&&(p=[]),v===void 0&&(v={}),c.prototype.optimize.call(this,v);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)p.push(g.pop());for(var y=function(A,S){S===void 0&&(S=!0),!(A==null||A===h)&&A.domNode.parentNode!=null&&(A.domNode[s.DATA_KEY].mutations==null&&(A.domNode[s.DATA_KEY].mutations=[]),S&&y(A.parent))},m=function(A){A.domNode[s.DATA_KEY]==null||A.domNode[s.DATA_KEY].mutations==null||(A instanceof a.default&&A.children.forEach(m),A.optimize(v))},b=p,w=0;b.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(A){var S=s.find(A.target,!0);S!=null&&(S.domNode===A.target&&(A.type==="childList"?(y(s.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(k){var M=s.find(k,!1);y(M,!1),M instanceof a.default&&M.children.forEach(function(D){y(D,!1)})})):A.type==="attributes"&&y(S.prev)),y(S))}),this.children.forEach(m),b=[].slice.call(this.observer.takeRecords()),g=b.slice();g.length>0;)p.push(g.pop())}},f.prototype.update=function(p,v){var h=this;v===void 0&&(v={}),p=p||this.observer.takeRecords(),p.map(function(g){var y=s.find(g.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[g],y):(y.domNode[s.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===h||g.domNode[s.DATA_KEY]==null||g.update(g.domNode[s.DATA_KEY].mutations||[],v)}),this.domNode[s.DATA_KEY].mutations!=null&&c.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,v),this.optimize(p,v)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f})(a.default);r.default=d}),(function(n,r,o){var i=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var p in f)f.hasOwnProperty(p)&&(c[p]=f[p])};return function(c,f){d(c,f);function p(){this.constructor=c}c.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(18),s=o(1);function l(d,c){if(Object.keys(d).length!==Object.keys(c).length)return!1;for(var f in d)if(d[f]!==c[f])return!1;return!0}var u=(function(d){i(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.formats=function(f){if(f.tagName!==c.tagName)return d.formats.call(this,f)},c.prototype.format=function(f,p){var v=this;f===this.statics.blotName&&!p?(this.children.forEach(function(h){h instanceof a.default||(h=h.wrap(c.blotName,!0)),v.attributes.copy(h)}),this.unwrap()):d.prototype.format.call(this,f,p)},c.prototype.formatAt=function(f,p,v,h){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var g=this.isolate(f,p);g.format(v,h)}else d.prototype.formatAt.call(this,f,p,v,h)},c.prototype.optimize=function(f){d.prototype.optimize.call(this,f);var p=this.formats();if(Object.keys(p).length===0)return this.unwrap();var v=this.next;v instanceof c&&v.prev===this&&l(p,v.formats())&&(v.moveChildren(this),v.remove())},c.blotName="inline",c.scope=s.Scope.INLINE_BLOT,c.tagName="SPAN",c})(a.default);r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(18),s=o(1),l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(c){var f=s.query(d.blotName).tagName;if(c.tagName!==f)return u.formats.call(this,c)},d.prototype.format=function(c,f){s.query(c,s.Scope.BLOCK)!=null&&(c===this.statics.blotName&&!f?this.replaceWith(d.blotName):u.prototype.format.call(this,c,f))},d.prototype.formatAt=function(c,f,p,v){s.query(p,s.Scope.BLOCK)!=null?this.format(p,v):u.prototype.formatAt.call(this,c,f,p,v)},d.prototype.insertAt=function(c,f,p){if(p==null||s.query(f,s.Scope.INLINE)!=null)u.prototype.insertAt.call(this,c,f,p);else{var v=this.split(c),h=s.create(f,p);v.parent.insertBefore(h,v)}},d.prototype.update=function(c,f){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,c,f)},d.blotName="block",d.scope=s.Scope.BLOCK_BLOT,d.tagName="P",d})(a.default);r.default=l}),(function(n,r,o){var i=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var c in d)d.hasOwnProperty(c)&&(u[c]=d[c])};return function(u,d){l(u,d);function c(){this.constructor=u}u.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(19),s=(function(l){i(u,l);function u(){return l!==null&&l.apply(this,arguments)||this}return u.formats=function(d){},u.prototype.format=function(d,c){l.prototype.formatAt.call(this,0,this.length(),d,c)},u.prototype.formatAt=function(d,c,f,p){d===0&&c===this.length()?this.format(f,p):l.prototype.formatAt.call(this,d,c,f,p)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u})(a.default);r.default=s}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(19),s=o(1),l=(function(u){i(d,u);function d(c){var f=u.call(this,c)||this;return f.text=f.statics.value(f.domNode),f}return d.create=function(c){return document.createTextNode(c)},d.value=function(c){var f=c.data;return f.normalize&&(f=f.normalize()),f},d.prototype.deleteAt=function(c,f){this.domNode.data=this.text=this.text.slice(0,c)+this.text.slice(c+f)},d.prototype.index=function(c,f){return this.domNode===c?f:-1},d.prototype.insertAt=function(c,f,p){p==null?(this.text=this.text.slice(0,c)+f+this.text.slice(c),this.domNode.data=this.text):u.prototype.insertAt.call(this,c,f,p)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(c){u.prototype.optimize.call(this,c),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(c,f){return[this.domNode,c]},d.prototype.split=function(c,f){if(f===void 0&&(f=!1),!f){if(c===0)return this;if(c===this.length())return this.next}var p=s.create(this.domNode.splitText(c));return this.parent.insertBefore(p,this.next),this.text=this.statics.value(this.domNode),p},d.prototype.update=function(c,f){var p=this;c.some(function(v){return v.type==="characterData"&&v.target===p.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=s.Scope.INLINE_BLOT,d})(a.default);r.default=l}),(function(n,r,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var u=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>u.length)&&(l=u.length),l-=s.length;var d=u.indexOf(s,l);return d!==-1&&d===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),d=u.length>>>0,c=arguments[1],f,p=0;p<d;p++)if(f=u[p],l.call(c,f,p,u))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,r){var o=-1,i=1,a=0;function s(w,A,S){if(w==A)return w?[[a,w]]:[];(S<0||w.length<S)&&(S=null);var k=c(w,A),M=w.substring(0,k);w=w.substring(k),A=A.substring(k),k=f(w,A);var D=w.substring(w.length-k);w=w.substring(0,w.length-k),A=A.substring(0,A.length-k);var P=l(w,A);return M&&P.unshift([a,M]),D&&P.push([a,D]),v(P),S!=null&&(P=y(P,S)),P=m(P),P}function l(w,A){var S;if(!w)return[[i,A]];if(!A)return[[o,w]];var k=w.length>A.length?w:A,M=w.length>A.length?A:w,D=k.indexOf(M);if(D!=-1)return S=[[i,k.substring(0,D)],[a,M],[i,k.substring(D+M.length)]],w.length>A.length&&(S[0][0]=S[2][0]=o),S;if(M.length==1)return[[o,w],[i,A]];var P=p(w,A);if(P){var O=P[0],_=P[1],B=P[2],N=P[3],q=P[4],U=s(O,B),j=s(_,N);return U.concat([[a,q]],j)}return u(w,A)}function u(w,A){for(var S=w.length,k=A.length,M=Math.ceil((S+k)/2),D=M,P=2*M,O=new Array(P),_=new Array(P),B=0;B<P;B++)O[B]=-1,_[B]=-1;O[D+1]=0,_[D+1]=0;for(var N=S-k,q=N%2!=0,U=0,j=0,H=0,G=0,Z=0;Z<M;Z++){for(var $=-Z+U;$<=Z-j;$+=2){var L=D+$,W;$==-Z||$!=Z&&O[L-1]<O[L+1]?W=O[L+1]:W=O[L-1]+1;for(var ie=W-$;W<S&&ie<k&&w.charAt(W)==A.charAt(ie);)W++,ie++;if(O[L]=W,W>S)j+=2;else if(ie>k)U+=2;else if(q){var ee=D+N-$;if(ee>=0&&ee<P&&_[ee]!=-1){var te=S-_[ee];if(W>=te)return d(w,A,W,ie)}}}for(var X=-Z+H;X<=Z-G;X+=2){var ee=D+X,te;X==-Z||X!=Z&&_[ee-1]<_[ee+1]?te=_[ee+1]:te=_[ee-1]+1;for(var ue=te-X;te<S&&ue<k&&w.charAt(S-te-1)==A.charAt(k-ue-1);)te++,ue++;if(_[ee]=te,te>S)G+=2;else if(ue>k)H+=2;else if(!q){var L=D+N-X;if(L>=0&&L<P&&O[L]!=-1){var W=O[L],ie=D+W-L;if(te=S-te,W>=te)return d(w,A,W,ie)}}}}return[[o,w],[i,A]]}function d(w,A,S,k){var M=w.substring(0,S),D=A.substring(0,k),P=w.substring(S),O=A.substring(k),_=s(M,D),B=s(P,O);return _.concat(B)}function c(w,A){if(!w||!A||w.charAt(0)!=A.charAt(0))return 0;for(var S=0,k=Math.min(w.length,A.length),M=k,D=0;S<M;)w.substring(D,M)==A.substring(D,M)?(S=M,D=S):k=M,M=Math.floor((k-S)/2+S);return M}function f(w,A){if(!w||!A||w.charAt(w.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,k=Math.min(w.length,A.length),M=k,D=0;S<M;)w.substring(w.length-M,w.length-D)==A.substring(A.length-M,A.length-D)?(S=M,D=S):k=M,M=Math.floor((k-S)/2+S);return M}function p(w,A){var S=w.length>A.length?w:A,k=w.length>A.length?A:w;if(S.length<4||k.length*2<S.length)return null;function M(j,H,G){for(var Z=j.substring(G,G+Math.floor(j.length/4)),$=-1,L="",W,ie,ee,te;($=H.indexOf(Z,$+1))!=-1;){var X=c(j.substring(G),H.substring($)),ue=f(j.substring(0,G),H.substring(0,$));L.length<ue+X&&(L=H.substring($-ue,$)+H.substring($,$+X),W=j.substring(0,G-ue),ie=j.substring(G+X),ee=H.substring(0,$-ue),te=H.substring($+X))}return L.length*2>=j.length?[W,ie,ee,te,L]:null}var D=M(S,k,Math.ceil(S.length/4)),P=M(S,k,Math.ceil(S.length/2)),O;if(!D&&!P)return null;P?D?O=D[4].length>P[4].length?D:P:O=P:O=D;var _,B,N,q;w.length>A.length?(_=O[0],B=O[1],N=O[2],q=O[3]):(N=O[0],q=O[1],_=O[2],B=O[3]);var U=O[4];return[_,B,N,q,U]}function v(w){w.push([a,""]);for(var A=0,S=0,k=0,M="",D="",P;A<w.length;)switch(w[A][0]){case i:k++,D+=w[A][1],A++;break;case o:S++,M+=w[A][1],A++;break;case a:S+k>1?(S!==0&&k!==0&&(P=c(D,M),P!==0&&(A-S-k>0&&w[A-S-k-1][0]==a?w[A-S-k-1][1]+=D.substring(0,P):(w.splice(0,0,[a,D.substring(0,P)]),A++),D=D.substring(P),M=M.substring(P)),P=f(D,M),P!==0&&(w[A][1]=D.substring(D.length-P)+w[A][1],D=D.substring(0,D.length-P),M=M.substring(0,M.length-P))),S===0?w.splice(A-k,S+k,[i,D]):k===0?w.splice(A-S,S+k,[o,M]):w.splice(A-S-k,S+k,[o,M],[i,D]),A=A-S-k+(S?1:0)+(k?1:0)+1):A!==0&&w[A-1][0]==a?(w[A-1][1]+=w[A][1],w.splice(A,1)):A++,k=0,S=0,M="",D="";break}w[w.length-1][1]===""&&w.pop();var O=!1;for(A=1;A<w.length-1;)w[A-1][0]==a&&w[A+1][0]==a&&(w[A][1].substring(w[A][1].length-w[A-1][1].length)==w[A-1][1]?(w[A][1]=w[A-1][1]+w[A][1].substring(0,w[A][1].length-w[A-1][1].length),w[A+1][1]=w[A-1][1]+w[A+1][1],w.splice(A-1,1),O=!0):w[A][1].substring(0,w[A+1][1].length)==w[A+1][1]&&(w[A-1][1]+=w[A+1][1],w[A][1]=w[A][1].substring(w[A+1][1].length)+w[A+1][1],w.splice(A+1,1),O=!0)),A++;O&&v(w)}var h=s;h.INSERT=i,h.DELETE=o,h.EQUAL=a,n.exports=h;function g(w,A){if(A===0)return[a,w];for(var S=0,k=0;k<w.length;k++){var M=w[k];if(M[0]===o||M[0]===a){var D=S+M[1].length;if(A===D)return[k+1,w];if(A<D){w=w.slice();var P=A-S,O=[M[0],M[1].slice(0,P)],_=[M[0],M[1].slice(P)];return w.splice(k,1,O,_),[k+1,w]}else S=D}}throw new Error("cursor_pos is out of bounds!")}function y(w,A){var S=g(w,A),k=S[1],M=S[0],D=k[M],P=k[M+1];if(D==null)return w;if(D[0]!==a)return w;if(P!=null&&D[1]+P[1]===P[1]+D[1])return k.splice(M,2,P,D),b(k,M,2);if(P!=null&&P[1].indexOf(D[1])===0){k.splice(M,2,[P[0],D[1]],[0,D[1]]);var O=P[1].slice(D[1].length);return O.length>0&&k.splice(M+2,0,[P[0],O]),b(k,M,3)}else return w}function m(w){for(var A=!1,S=function(P){return P.charCodeAt(0)>=56320&&P.charCodeAt(0)<=57343},k=function(P){return P.charCodeAt(P.length-1)>=55296&&P.charCodeAt(P.length-1)<=56319},M=2;M<w.length;M+=1)w[M-2][0]===a&&k(w[M-2][1])&&w[M-1][0]===o&&S(w[M-1][1])&&w[M][0]===i&&S(w[M][1])&&(A=!0,w[M-1][1]=w[M-2][1].slice(-1)+w[M-1][1],w[M][1]=w[M-2][1].slice(-1)+w[M][1],w[M-2][1]=w[M-2][1].slice(0,-1));if(!A)return w;for(var D=[],M=0;M<w.length;M+=1)w[M][1].length>0&&D.push(w[M]);return D}function b(w,A,S){for(var k=A+S-1;k>=0&&k>=A-1;k--)if(k+1<w.length){var M=w[k],D=w[k+1];M[0]===D[1]&&w.splice(k,2,[M[0],M[1]+D[1]])}return w}}),(function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:o,r.shim=o;function o(i){var a=[];for(var s in i)a.push(s);return a}}),(function(n,r){var o=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";r=n.exports=o?i:a,r.supported=i;function i(s){return Object.prototype.toString.call(s)=="[object Arguments]"}r.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(n,r){var o=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function s(u,d,c){this.fn=u,this.context=d,this.once=c||!1}function l(){this._events=new a,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],c,f;if(this._eventsCount===0)return d;for(f in c=this._events)o.call(c,f)&&d.push(i?f.slice(1):f);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(c)):d},l.prototype.listeners=function(d,c){var f=i?i+d:d,p=this._events[f];if(c)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var v=0,h=p.length,g=new Array(h);v<h;v++)g[v]=p[v].fn;return g},l.prototype.emit=function(d,c,f,p,v,h){var g=i?i+d:d;if(!this._events[g])return!1;var y=this._events[g],m=arguments.length,b,w;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,p),!0;case 5:return y.fn.call(y.context,c,f,p,v),!0;case 6:return y.fn.call(y.context,c,f,p,v,h),!0}for(w=1,b=new Array(m-1);w<m;w++)b[w-1]=arguments[w];y.fn.apply(y.context,b)}else{var A=y.length,S;for(w=0;w<A;w++)switch(y[w].once&&this.removeListener(d,y[w].fn,void 0,!0),m){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,c);break;case 3:y[w].fn.call(y[w].context,c,f);break;case 4:y[w].fn.call(y[w].context,c,f,p);break;default:if(!b)for(S=1,b=new Array(m-1);S<m;S++)b[S-1]=arguments[S];y[w].fn.apply(y[w].context,b)}}return!0},l.prototype.on=function(d,c,f){var p=new s(c,f||this),v=i?i+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],p]:this._events[v].push(p):(this._events[v]=p,this._eventsCount++),this},l.prototype.once=function(d,c,f){var p=new s(c,f||this,!0),v=i?i+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],p]:this._events[v].push(p):(this._events[v]=p,this._eventsCount++),this},l.prototype.removeListener=function(d,c,f,p){var v=i?i+d:d;if(!this._events[v])return this;if(!c)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var h=this._events[v];if(h.fn)h.fn===c&&(!p||h.once)&&(!f||h.context===f)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var g=0,y=[],m=h.length;g<m;g++)(h[g].fn!==c||p&&!h[g].once||f&&h[g].context!==f)&&y.push(h[g]);y.length?this._events[v]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},l.prototype.removeAllListeners=function(d){var c;return d?(c=i?i+d:d,this._events[c]&&(--this._eventsCount===0?this._events=new a:delete this._events[c])):(this._events=new a,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=i,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},a=(function(){function oe(ce,Re){var Ee=[],Le=!0,Fe=!1,Pe=void 0;try{for(var Ne=ce[Symbol.iterator](),pt;!(Le=(pt=Ne.next()).done)&&(Ee.push(pt.value),!(Re&&Ee.length===Re));Le=!0);}catch(Rt){Fe=!0,Pe=Rt}finally{try{!Le&&Ne.return&&Ne.return()}finally{if(Fe)throw Pe}}return Ee}return function(ce,Re){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return oe(ce,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function oe(ce,Re){for(var Ee=0;Ee<Re.length;Ee++){var Le=Re[Ee];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(ce,Le.key,Le)}}return function(ce,Re,Ee){return Re&&oe(ce.prototype,Re),Ee&&oe(ce,Ee),ce}})(),l=o(3),u=_(l),d=o(2),c=_(d),f=o(0),p=_(f),v=o(5),h=_(v),g=o(10),y=_(g),m=o(9),b=_(m),w=o(36),A=o(37),S=o(13),k=_(S),M=o(26),D=o(38),P=o(39),O=o(40);function _(oe){return oe&&oe.__esModule?oe:{default:oe}}function B(oe,ce,Re){return ce in oe?Object.defineProperty(oe,ce,{value:Re,enumerable:!0,configurable:!0,writable:!0}):oe[ce]=Re,oe}function N(oe,ce){if(!(oe instanceof ce))throw new TypeError("Cannot call a class as a function")}function q(oe,ce){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:oe}function U(oe,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);oe.prototype=Object.create(ce&&ce.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,ce):oe.__proto__=ce)}var j=(0,y.default)("quill:clipboard"),H="__ql-matcher",G=[[Node.TEXT_NODE,pe],[Node.TEXT_NODE,Y],["br",we],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,Me],[Node.ELEMENT_NODE,be],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,De],["li",Te],["b",ue.bind(ue,"bold")],["i",ue.bind(ue,"italic")],["style",he]],Z=[w.AlignAttribute,D.DirectionAttribute].reduce(function(oe,ce){return oe[ce.keyName]=ce,oe},{}),$=[w.AlignStyle,A.BackgroundStyle,M.ColorStyle,D.DirectionStyle,P.FontStyle,O.SizeStyle].reduce(function(oe,ce){return oe[ce.keyName]=ce,oe},{}),L=(function(oe){U(ce,oe);function ce(Re,Ee){N(this,ce);var Le=q(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,Re,Ee));return Le.quill.root.addEventListener("paste",Le.onPaste.bind(Le)),Le.container=Le.quill.addContainer("ql-clipboard"),Le.container.setAttribute("contenteditable",!0),Le.container.setAttribute("tabindex",-1),Le.matchers=[],G.concat(Le.options.matchers).forEach(function(Fe){var Pe=a(Fe,2),Ne=Pe[0],pt=Pe[1];!Ee.matchVisual&&pt===be||Le.addMatcher(Ne,pt)}),Le}return s(ce,[{key:"addMatcher",value:function(Ee,Le){this.matchers.push([Ee,Le])}},{key:"convert",value:function(Ee){if(typeof Ee=="string")return this.container.innerHTML=Ee.replace(/\>\r?\n +\</g,"><"),this.convert();var Le=this.quill.getFormat(this.quill.selection.savedRange.index);if(Le[k.default.blotName]){var Fe=this.container.innerText;return this.container.innerHTML="",new c.default().insert(Fe,B({},k.default.blotName,Le[k.default.blotName]))}var Pe=this.prepareMatching(),Ne=a(Pe,2),pt=Ne[0],Rt=Ne[1],Bt=X(this.container,pt,Rt);return ee(Bt,`
- `)&&Bt.ops[Bt.ops.length-1].attributes==null&&(Bt=Bt.compose(new c.default().retain(Bt.length()-1).delete(1))),j.log("convert",this.container.innerHTML,Bt),this.container.innerHTML="",Bt}},{key:"dangerouslyPasteHTML",value:function(Ee,Le){var Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof Ee=="string")this.quill.setContents(this.convert(Ee),Le),this.quill.setSelection(0,h.default.sources.SILENT);else{var Pe=this.convert(Le);this.quill.updateContents(new c.default().retain(Ee).concat(Pe),Fe),this.quill.setSelection(Ee+Pe.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(Ee){var Le=this;if(!(Ee.defaultPrevented||!this.quill.isEnabled())){var Fe=this.quill.getSelection(),Pe=new c.default().retain(Fe.index),Ne=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout(function(){Pe=Pe.concat(Le.convert()).delete(Fe.length),Le.quill.updateContents(Pe,h.default.sources.USER),Le.quill.setSelection(Pe.length()-Fe.length,h.default.sources.SILENT),Le.quill.scrollingContainer.scrollTop=Ne,Le.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ee=this,Le=[],Fe=[];return this.matchers.forEach(function(Pe){var Ne=a(Pe,2),pt=Ne[0],Rt=Ne[1];switch(pt){case Node.TEXT_NODE:Fe.push(Rt);break;case Node.ELEMENT_NODE:Le.push(Rt);break;default:[].forEach.call(Ee.container.querySelectorAll(pt),function(Bt){Bt[H]=Bt[H]||[],Bt[H].push(Rt)});break}}),[Le,Fe]}}]),ce})(b.default);L.DEFAULTS={matchers:[],matchVisual:!0};function W(oe,ce,Re){return(typeof ce>"u"?"undefined":i(ce))==="object"?Object.keys(ce).reduce(function(Ee,Le){return W(Ee,Le,ce[Le])},oe):oe.reduce(function(Ee,Le){return Le.attributes&&Le.attributes[ce]?Ee.push(Le):Ee.insert(Le.insert,(0,u.default)({},B({},ce,Re),Le.attributes))},new c.default)}function ie(oe){if(oe.nodeType!==Node.ELEMENT_NODE)return{};var ce="__ql-computed-style";return oe[ce]||(oe[ce]=window.getComputedStyle(oe))}function ee(oe,ce){for(var Re="",Ee=oe.ops.length-1;Ee>=0&&Re.length<ce.length;--Ee){var Le=oe.ops[Ee];if(typeof Le.insert!="string")break;Re=Le.insert+Re}return Re.slice(-1*ce.length)===ce}function te(oe){if(oe.childNodes.length===0)return!1;var ce=ie(oe);return["block","list-item"].indexOf(ce.display)>-1}function X(oe,ce,Re){return oe.nodeType===oe.TEXT_NODE?Re.reduce(function(Ee,Le){return Le(oe,Ee)},new c.default):oe.nodeType===oe.ELEMENT_NODE?[].reduce.call(oe.childNodes||[],function(Ee,Le){var Fe=X(Le,ce,Re);return Le.nodeType===oe.ELEMENT_NODE&&(Fe=ce.reduce(function(Pe,Ne){return Ne(Le,Pe)},Fe),Fe=(Le[H]||[]).reduce(function(Pe,Ne){return Ne(Le,Pe)},Fe)),Ee.concat(Fe)},new c.default):new c.default}function ue(oe,ce,Re){return W(Re,oe,!0)}function ve(oe,ce){var Re=p.default.Attributor.Attribute.keys(oe),Ee=p.default.Attributor.Class.keys(oe),Le=p.default.Attributor.Style.keys(oe),Fe={};return Re.concat(Ee).concat(Le).forEach(function(Pe){var Ne=p.default.query(Pe,p.default.Scope.ATTRIBUTE);Ne!=null&&(Fe[Ne.attrName]=Ne.value(oe),Fe[Ne.attrName])||(Ne=Z[Pe],Ne!=null&&(Ne.attrName===Pe||Ne.keyName===Pe)&&(Fe[Ne.attrName]=Ne.value(oe)||void 0),Ne=$[Pe],Ne!=null&&(Ne.attrName===Pe||Ne.keyName===Pe)&&(Ne=$[Pe],Fe[Ne.attrName]=Ne.value(oe)||void 0))}),Object.keys(Fe).length>0&&(ce=W(ce,Fe)),ce}function Me(oe,ce){var Re=p.default.query(oe);if(Re==null)return ce;if(Re.prototype instanceof p.default.Embed){var Ee={},Le=Re.value(oe);Le!=null&&(Ee[Re.blotName]=Le,ce=new c.default().insert(Ee,Re.formats(oe)))}else typeof Re.formats=="function"&&(ce=W(ce,Re.blotName,Re.formats(oe)));return ce}function we(oe,ce){return ee(ce,`
- `)||ce.insert(`
- `),ce}function he(){return new c.default}function Te(oe,ce){var Re=p.default.query(oe);if(Re==null||Re.blotName!=="list-item"||!ee(ce,`
- `))return ce;for(var Ee=-1,Le=oe.parentNode;!Le.classList.contains("ql-clipboard");)(p.default.query(Le)||{}).blotName==="list"&&(Ee+=1),Le=Le.parentNode;return Ee<=0?ce:ce.compose(new c.default().retain(ce.length()-1).retain(1,{indent:Ee}))}function Y(oe,ce){return ee(ce,`
- `)||(te(oe)||ce.length()>0&&oe.nextSibling&&te(oe.nextSibling))&&ce.insert(`
- `),ce}function be(oe,ce){if(te(oe)&&oe.nextElementSibling!=null&&!ee(ce,`
- `)){var Re=oe.offsetHeight+parseFloat(ie(oe).marginTop)+parseFloat(ie(oe).marginBottom);oe.nextElementSibling.offsetTop>oe.offsetTop+Re*1.5&&ce.insert(`
- `)}return ce}function De(oe,ce){var Re={},Ee=oe.style||{};return Ee.fontStyle&&ie(oe).fontStyle==="italic"&&(Re.italic=!0),Ee.fontWeight&&(ie(oe).fontWeight.startsWith("bold")||parseInt(ie(oe).fontWeight)>=700)&&(Re.bold=!0),Object.keys(Re).length>0&&(ce=W(ce,Re)),parseFloat(Ee.textIndent||0)>0&&(ce=new c.default().insert(" ").concat(ce)),ce}function pe(oe,ce){var Re=oe.data;if(oe.parentNode.tagName==="O:P")return ce.insert(Re.trim());if(Re.trim().length===0&&oe.parentNode.classList.contains("ql-clipboard"))return ce;if(!ie(oe.parentNode).whiteSpace.startsWith("pre")){var Ee=function(Fe,Pe){return Pe=Pe.replace(/[^\u00a0]/g,""),Pe.length<1&&Fe?" ":Pe};Re=Re.replace(/\r\n/g," ").replace(/\n/g," "),Re=Re.replace(/\s\s+/g,Ee.bind(Ee,!0)),(oe.previousSibling==null&&te(oe.parentNode)||oe.previousSibling!=null&&te(oe.previousSibling))&&(Re=Re.replace(/^\s+/,Ee.bind(Ee,!1))),(oe.nextSibling==null&&te(oe.parentNode)||oe.nextSibling!=null&&te(oe.nextSibling))&&(Re=Re.replace(/\s+$/,Ee.bind(Ee,!1)))}return ce.insert(Re)}r.default=L,r.matchAttributor=ve,r.matchBlot=Me,r.matchNewline=Y,r.matchSpacing=be,r.matchText=pe}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(6),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"optimize",value:function(y){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),h})(l.default);p.blotName="bold",p.tagName=["STRONG","B"],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var i=(function(){function O(_,B){var N=[],q=!0,U=!1,j=void 0;try{for(var H=_[Symbol.iterator](),G;!(q=(G=H.next()).done)&&(N.push(G.value),!(B&&N.length===B));q=!0);}catch(Z){U=!0,j=Z}finally{try{!q&&H.return&&H.return()}finally{if(U)throw j}}return N}return function(_,B){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return O(_,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(_,B){for(var N=0;N<B.length;N++){var q=B[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(_,q.key,q)}}return function(_,B,N){return B&&O(_.prototype,B),N&&O(_,N),_}})(),s=o(2),l=y(s),u=o(0),d=y(u),c=o(5),f=y(c),p=o(10),v=y(p),h=o(9),g=y(h);function y(O){return O&&O.__esModule?O:{default:O}}function m(O,_,B){return _ in O?Object.defineProperty(O,_,{value:B,enumerable:!0,configurable:!0,writable:!0}):O[_]=B,O}function b(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")}function w(O,_){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:O}function A(O,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);O.prototype=Object.create(_&&_.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(O,_):O.__proto__=_)}var S=(0,v.default)("quill:toolbar"),k=(function(O){A(_,O);function _(B,N){b(this,_);var q=w(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,B,N));if(Array.isArray(q.options.container)){var U=document.createElement("div");D(U,q.options.container),B.container.parentNode.insertBefore(U,B.container),q.container=U}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var j;return j=S.error("Container required for toolbar",q.options),w(q,j)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(H){q.addHandler(H,q.options.handlers[H])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(H){q.attach(H)}),q.quill.on(f.default.events.EDITOR_CHANGE,function(H,G){H===f.default.events.SELECTION_CHANGE&&q.update(G)}),q.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var H=q.quill.selection.getRange(),G=i(H,1),Z=G[0];q.update(Z)}),q}return a(_,[{key:"addHandler",value:function(N,q){this.handlers[N]=q}},{key:"attach",value:function(N){var q=this,U=[].find.call(N.classList,function(H){return H.indexOf("ql-")===0});if(U){if(U=U.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){S.warn("ignoring attaching to disabled format",U,N);return}if(d.default.query(U)==null){S.warn("ignoring attaching to nonexistent format",U,N);return}}var j=N.tagName==="SELECT"?"change":"click";N.addEventListener(j,function(H){var G=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var Z=N.options[N.selectedIndex];Z.hasAttribute("selected")?G=!1:G=Z.value||!1}else N.classList.contains("ql-active")?G=!1:G=N.value||!N.hasAttribute("value"),H.preventDefault();q.quill.focus();var $=q.quill.selection.getRange(),L=i($,1),W=L[0];if(q.handlers[U]!=null)q.handlers[U].call(q,G);else if(d.default.query(U).prototype instanceof d.default.Embed){if(G=prompt("Enter "+U),!G)return;q.quill.updateContents(new l.default().retain(W.index).delete(W.length).insert(m({},U,G)),f.default.sources.USER)}else q.quill.format(U,G,f.default.sources.USER);q.update(W)}),this.controls.push([U,N])}}},{key:"update",value:function(N){var q=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(U){var j=i(U,2),H=j[0],G=j[1];if(G.tagName==="SELECT"){var Z=void 0;if(N==null)Z=null;else if(q[H]==null)Z=G.querySelector("option[selected]");else if(!Array.isArray(q[H])){var $=q[H];typeof $=="string"&&($=$.replace(/\"/g,'\\"')),Z=G.querySelector('option[value="'+$+'"]')}Z==null?(G.value="",G.selectedIndex=-1):Z.selected=!0}else if(N==null)G.classList.remove("ql-active");else if(G.hasAttribute("value")){var L=q[H]===G.getAttribute("value")||q[H]!=null&&q[H].toString()===G.getAttribute("value")||q[H]==null&&!G.getAttribute("value");G.classList.toggle("ql-active",L)}else G.classList.toggle("ql-active",q[H]!=null)})}}]),_})(g.default);k.DEFAULTS={};function M(O,_,B){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+_),B!=null&&(N.value=B),O.appendChild(N)}function D(O,_){Array.isArray(_[0])||(_=[_]),_.forEach(function(B){var N=document.createElement("span");N.classList.add("ql-formats"),B.forEach(function(q){if(typeof q=="string")M(N,q);else{var U=Object.keys(q)[0],j=q[U];Array.isArray(j)?P(N,U,j):M(N,U,j)}}),O.appendChild(N)})}function P(O,_,B){var N=document.createElement("select");N.classList.add("ql-"+_),B.forEach(function(q){var U=document.createElement("option");q!==!1?U.setAttribute("value",q):U.setAttribute("selected","selected"),N.appendChild(U)}),O.appendChild(N)}k.DEFAULTS={container:null,handlers:{clean:function(){var _=this,B=this.quill.getSelection();if(B!=null)if(B.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(q){d.default.query(q,d.default.Scope.INLINE)!=null&&_.quill.format(q,!1)})}else this.quill.removeFormat(B,f.default.sources.USER)},direction:function(_){var B=this.quill.getFormat().align;_==="rtl"&&B==null?this.quill.format("align","right",f.default.sources.USER):!_&&B==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",_,f.default.sources.USER)},indent:function(_){var B=this.quill.getSelection(),N=this.quill.getFormat(B),q=parseInt(N.indent||0);if(_==="+1"||_==="-1"){var U=_==="+1"?1:-1;N.direction==="rtl"&&(U*=-1),this.quill.format("indent",q+U,f.default.sources.USER)}},link:function(_){_===!0&&(_=prompt("Enter link URL:")),this.quill.format("link",_,f.default.sources.USER)},list:function(_){var B=this.quill.getSelection(),N=this.quill.getFormat(B);_==="check"?N.list==="checked"||N.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",_,f.default.sources.USER)}}},r.default=k,r.addControls=D}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(28),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(g,y){d(this,h);var m=c(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,g));return m.label.innerHTML=y,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),m}return i(h,[{key:"buildItem",value:function(y){var m=a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"buildItem",this).call(this,y);return m.style.backgroundColor=y.getAttribute("value")||"",m}},{key:"selectItem",value:function(y,m){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,y,m);var b=this.label.querySelector(".ql-color-label"),w=y&&y.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=w:b.style.fill=w)}}]),h})(l.default);r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(28),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(g,y){d(this,h);var m=c(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,g));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=y[b.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return i(h,[{key:"selectItem",value:function(y,m){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,y,m),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),h})(l.default);r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function l(u,d){for(var c=0;c<d.length;c++){var f=d[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,c){return d&&l(u.prototype,d),c&&l(u,c),u}})();function a(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=(function(){function l(u,d){var c=this;a(this,l),this.quill=u,this.boundsContainer=d||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){c.root.style.marginTop=-1*c.quill.root.scrollTop+"px"}),this.hide()}return i(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var c=d.left+d.width/2-this.root.offsetWidth/2,f=d.bottom+this.quill.root.scrollTop;this.root.style.left=c+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),h=0;if(v.right>p.right&&(h=p.right-v.right,this.root.style.left=c+h+"px"),v.left<p.left&&(h=p.left-v.left,this.root.style.left=c+h+"px"),v.bottom>p.bottom){var g=v.bottom-v.top,y=d.bottom-d.top+g;this.root.style.top=f-y+"px",this.root.classList.add("ql-flip")}return h}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l})();r.default=s}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function P(O,_){var B=[],N=!0,q=!1,U=void 0;try{for(var j=O[Symbol.iterator](),H;!(N=(H=j.next()).done)&&(B.push(H.value),!(_&&B.length===_));N=!0);}catch(G){q=!0,U=G}finally{try{!N&&j.return&&j.return()}finally{if(q)throw U}}return B}return function(O,_){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return P(O,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function P(O,_,B){O===null&&(O=Function.prototype);var N=Object.getOwnPropertyDescriptor(O,_);if(N===void 0){var q=Object.getPrototypeOf(O);return q===null?void 0:P(q,_,B)}else{if("value"in N)return N.value;var U=N.get;return U===void 0?void 0:U.call(B)}},s=(function(){function P(O,_){for(var B=0;B<_.length;B++){var N=_[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}return function(O,_,B){return _&&P(O.prototype,_),B&&P(O,B),O}})(),l=o(3),u=b(l),d=o(8),c=b(d),f=o(43),p=b(f),v=o(27),h=b(v),g=o(15),y=o(41),m=b(y);function b(P){return P&&P.__esModule?P:{default:P}}function w(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function A(P,O){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:P}function S(P,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(P,O):P.__proto__=O)}var k=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],M=(function(P){S(O,P);function O(_,B){w(this,O),B.modules.toolbar!=null&&B.modules.toolbar.container==null&&(B.modules.toolbar.container=k);var N=A(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,_,B));return N.quill.container.classList.add("ql-snow"),N}return s(O,[{key:"extendToolbar",value:function(B){B.container.classList.add("ql-snow"),this.buildButtons([].slice.call(B.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(B.container.querySelectorAll("select")),m.default),this.tooltip=new D(this.quill,this.options.bounds),B.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,q){B.handlers.link.call(B,!q.format.link)})}}]),O})(p.default);M.DEFAULTS=(0,u.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){if(O){var _=this.quill.getSelection();if(_==null||_.length==0)return;var B=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(B)&&B.indexOf("mailto:")!==0&&(B="mailto:"+B);var N=this.quill.theme.tooltip;N.edit("link",B)}else this.quill.format("link",!1)}}}}});var D=(function(P){S(O,P);function O(_,B){w(this,O);var N=A(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,_,B));return N.preview=N.root.querySelector("a.ql-preview"),N}return s(O,[{key:"listen",value:function(){var B=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){B.root.classList.contains("ql-editing")?B.save():B.edit("link",B.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(B.linkRange!=null){var q=B.linkRange;B.restoreFocus(),B.quill.formatText(q,"link",!1,c.default.sources.USER),delete B.linkRange}N.preventDefault(),B.hide()}),this.quill.on(c.default.events.SELECTION_CHANGE,function(N,q,U){if(N!=null){if(N.length===0&&U===c.default.sources.USER){var j=B.quill.scroll.descendant(h.default,N.index),H=i(j,2),G=H[0],Z=H[1];if(G!=null){B.linkRange=new g.Range(N.index-Z,G.length());var $=h.default.formats(G.domNode);B.preview.textContent=$,B.preview.setAttribute("href",$),B.show(),B.position(B.quill.getBounds(B.linkRange));return}}else delete B.linkRange;B.hide()}})}},{key:"show",value:function(){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),O})(f.BaseTooltip);D.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=M}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(29),a=Le(i),s=o(36),l=o(38),u=o(64),d=o(65),c=Le(d),f=o(66),p=Le(f),v=o(67),h=Le(v),g=o(37),y=o(26),m=o(39),b=o(40),w=o(56),A=Le(w),S=o(68),k=Le(S),M=o(27),D=Le(M),P=o(69),O=Le(P),_=o(70),B=Le(_),N=o(71),q=Le(N),U=o(72),j=Le(U),H=o(73),G=Le(H),Z=o(13),$=Le(Z),L=o(74),W=Le(L),ie=o(75),ee=Le(ie),te=o(57),X=Le(te),ue=o(41),ve=Le(ue),Me=o(28),we=Le(Me),he=o(59),Te=Le(he),Y=o(60),be=Le(Y),De=o(61),pe=Le(De),oe=o(108),ce=Le(oe),Re=o(62),Ee=Le(Re);function Le(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":b.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":u.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":b.SizeClass,"formats/blockquote":c.default,"formats/code-block":$.default,"formats/header":p.default,"formats/list":h.default,"formats/bold":A.default,"formats/code":Z.Code,"formats/italic":k.default,"formats/link":D.default,"formats/script":O.default,"formats/strike":B.default,"formats/underline":q.default,"formats/image":j.default,"formats/video":G.default,"formats/list/item":v.ListItem,"modules/formula":W.default,"modules/syntax":ee.default,"modules/toolbar":X.default,"themes/bubble":ce.default,"themes/snow":Ee.default,"ui/icons":ve.default,"ui/picker":we.default,"ui/icon-picker":be.default,"ui/color-picker":Te.default,"ui/tooltip":pe.default},!0),r.default=a.default}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var i=(function(){function h(g,y){for(var m=0;m<y.length;m++){var b=y[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,m){return y&&h(g.prototype,y),m&&h(g,m),g}})(),a=function h(g,y,m){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,y);if(b===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:h(w,y,m)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(m)}},s=o(0),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=(function(h){f(g,h);function g(){return d(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"add",value:function(m,b){if(b==="+1"||b==="-1"){var w=this.value(m)||0;b=b==="+1"?w+1:w-1}return b===0?(this.remove(m),!0):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,m,b)}},{key:"canAdd",value:function(m,b){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,m,b)||a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,m,parseInt(b))}},{key:"value",value:function(m){return parseInt(a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,m))||void 0}}]),g})(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(4),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="blockquote",c.tagName="blockquote",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function p(v,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,h,g){return h&&p(v.prototype,h),g&&p(v,g),v}})(),a=o(4),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function c(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=(function(p){c(v,p);function v(){return u(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v})(s.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],r.default=f}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var i=(function(){function w(A,S){for(var k=0;k<S.length;k++){var M=S[k];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,M.key,M)}}return function(A,S,k){return S&&w(A.prototype,S),k&&w(A,k),A}})(),a=function w(A,S,k){A===null&&(A=Function.prototype);var M=Object.getOwnPropertyDescriptor(A,S);if(M===void 0){var D=Object.getPrototypeOf(A);return D===null?void 0:w(D,S,k)}else{if("value"in M)return M.value;var P=M.get;return P===void 0?void 0:P.call(k)}},s=o(0),l=p(s),u=o(4),d=p(u),c=o(25),f=p(c);function p(w){return w&&w.__esModule?w:{default:w}}function v(w,A,S){return A in w?Object.defineProperty(w,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[A]=S,w}function h(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")}function g(w,A){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:w}function y(w,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);w.prototype=Object.create(A&&A.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(w,A):w.__proto__=A)}var m=(function(w){y(A,w);function A(){return h(this,A),g(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return i(A,[{key:"format",value:function(k,M){k===b.blotName&&!M?this.replaceWith(l.default.create(this.statics.scope)):a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,k,M)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(k,M){return this.parent.isolate(this.offset(this.parent),this.length()),k===this.parent.statics.blotName?(this.parent.replaceWith(k,M),this):(this.parent.unwrap(),a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,k,M))}}],[{key:"formats",value:function(k){return k.tagName===this.tagName?void 0:a(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,k)}}]),A})(d.default);m.blotName="list-item",m.tagName="LI";var b=(function(w){y(A,w),i(A,null,[{key:"create",value:function(k){var M=k==="ordered"?"OL":"UL",D=a(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,M);return(k==="checked"||k==="unchecked")&&D.setAttribute("data-checked",k==="checked"),D}},{key:"formats",value:function(k){if(k.tagName==="OL")return"ordered";if(k.tagName==="UL")return k.hasAttribute("data-checked")?k.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(S){h(this,A);var k=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),M=function(P){if(P.target.parentNode===S){var O=k.statics.formats(S),_=l.default.find(P.target);O==="checked"?_.format("list","unchecked"):O==="unchecked"&&_.format("list","checked")}};return S.addEventListener("touchstart",M),S.addEventListener("mousedown",M),k}return i(A,[{key:"format",value:function(k,M){this.children.length>0&&this.children.tail.format(k,M)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(k,M){if(k instanceof m)a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,k,M);else{var D=M==null?this.length():M.offset(this),P=this.split(D);P.parent.insertBefore(k,P)}}},{key:"optimize",value:function(k){a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,k);var M=this.next;M!=null&&M.prev===this&&M.statics.blotName===this.statics.blotName&&M.domNode.tagName===this.domNode.tagName&&M.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(M.moveChildren(this),M.remove())}},{key:"replace",value:function(k){if(k.statics.blotName!==this.statics.blotName){var M=l.default.create(this.statics.defaultChild);k.moveChildren(M),this.appendChild(M)}a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,k)}}]),A})(f.default);b.blotName="list",b.scope=l.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[m],r.ListItem=m,r.default=b}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(56),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="italic",c.tagName=["EM","I"],r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(6),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),h})(l.default);p.blotName="script",p.tagName=["SUB","SUP"],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(6),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="strike",c.tagName="S",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(6),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="underline",c.tagName="U",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(0),l=d(s),u=o(27);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],h=(function(g){p(y,g);function y(){return c(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(b,w){v.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return typeof b=="string"&&w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return v.reduce(function(w,A){return b.hasAttribute(A)&&(w[A]=b.getAttribute(A)),w},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,u.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y})(l.default.Embed);h.blotName="image",h.tagName="IMG",r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(4),l=o(27),u=d(l);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],h=(function(g){p(y,g);function y(){return c(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(b,w){v.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return v.reduce(function(w,A){return b.hasAttribute(A)&&(w[A]=b.getAttribute(A)),w},{})}},{key:"sanitize",value:function(b){return u.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y})(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var i=(function(){function b(w,A){for(var S=0;S<A.length;S++){var k=A[S];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(w,k.key,k)}}return function(w,A,S){return A&&b(w.prototype,A),S&&b(w,S),w}})(),a=function b(w,A,S){w===null&&(w=Function.prototype);var k=Object.getOwnPropertyDescriptor(w,A);if(k===void 0){var M=Object.getPrototypeOf(w);return M===null?void 0:b(M,A,S)}else{if("value"in k)return k.value;var D=k.get;return D===void 0?void 0:D.call(S)}},s=o(35),l=p(s),u=o(5),d=p(u),c=o(9),f=p(c);function p(b){return b&&b.__esModule?b:{default:b}}function v(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function h(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function g(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var y=(function(b){g(w,b);function w(){return v(this,w),h(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,null,[{key:"create",value:function(S){var k=a(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,k,{throwOnError:!1,errorColor:"#f00"}),k.setAttribute("data-value",S)),k}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),w})(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var m=(function(b){g(w,b),i(w,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function w(){v(this,w);var A=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return w})(f.default);r.FormulaBlot=y,r.default=m}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var i=(function(){function S(k,M){for(var D=0;D<M.length;D++){var P=M[D];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(k,P.key,P)}}return function(k,M,D){return M&&S(k.prototype,M),D&&S(k,D),k}})(),a=function S(k,M,D){k===null&&(k=Function.prototype);var P=Object.getOwnPropertyDescriptor(k,M);if(P===void 0){var O=Object.getPrototypeOf(k);return O===null?void 0:S(O,M,D)}else{if("value"in P)return P.value;var _=P.get;return _===void 0?void 0:_.call(D)}},s=o(0),l=h(s),u=o(5),d=h(u),c=o(9),f=h(c),p=o(13),v=h(p);function h(S){return S&&S.__esModule?S:{default:S}}function g(S,k){if(!(S instanceof k))throw new TypeError("Cannot call a class as a function")}function y(S,k){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:S}function m(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);S.prototype=Object.create(k&&k.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(S,k):S.__proto__=k)}var b=(function(S){m(k,S);function k(){return g(this,k),y(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return i(k,[{key:"replaceWith",value:function(D){this.domNode.textContent=this.domNode.textContent,this.attach(),a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replaceWith",this).call(this,D)}},{key:"highlight",value:function(D){var P=this.domNode.textContent;this.cachedText!==P&&((P.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=D(P),this.domNode.normalize(),this.attach()),this.cachedText=P)}}]),k})(v.default);b.className="ql-syntax";var w=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),A=(function(S){m(k,S),i(k,null,[{key:"register",value:function(){d.default.register(w,!0),d.default.register(b,!0)}}]);function k(M,D){g(this,k);var P=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M,D));if(typeof P.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var O=null;return P.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(O),O=setTimeout(function(){P.highlight(),O=null},P.options.interval)}),P.highlight(),P}return i(k,[{key:"highlight",value:function(){var D=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var P=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(O){O.highlight(D.options.highlight)}),this.quill.update(d.default.sources.SILENT),P!=null&&this.quill.setSelection(P,d.default.sources.SILENT)}}}]),k})(f.default);A.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var k=window.hljs.highlightAuto(S);return k.value}})(),interval:1e3},r.CodeBlock=b,r.CodeToken=w,r.default=A}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var i=function k(M,D,P){M===null&&(M=Function.prototype);var O=Object.getOwnPropertyDescriptor(M,D);if(O===void 0){var _=Object.getPrototypeOf(M);return _===null?void 0:k(_,D,P)}else{if("value"in O)return O.value;var B=O.get;return B===void 0?void 0:B.call(P)}},a=(function(){function k(M,D){for(var P=0;P<D.length;P++){var O=D[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(M,O.key,O)}}return function(M,D,P){return D&&k(M.prototype,D),P&&k(M,P),M}})(),s=o(3),l=g(s),u=o(8),d=g(u),c=o(43),f=g(c),p=o(15),v=o(41),h=g(v);function g(k){return k&&k.__esModule?k:{default:k}}function y(k,M){if(!(k instanceof M))throw new TypeError("Cannot call a class as a function")}function m(k,M){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:k}function b(k,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);k.prototype=Object.create(M&&M.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(k,M):k.__proto__=M)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(k){b(M,k);function M(D,P){y(this,M),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=w);var O=m(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,D,P));return O.quill.container.classList.add("ql-bubble"),O}return a(M,[{key:"extendToolbar",value:function(P){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(P.container),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),h.default)}}]),M})(f.default);A.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(M){M?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(k){b(M,k);function M(D,P){y(this,M);var O=m(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,D,P));return O.quill.on(d.default.events.EDITOR_CHANGE,function(_,B,N,q){if(_===d.default.events.SELECTION_CHANGE)if(B!=null&&B.length>0&&q===d.default.sources.USER){O.show(),O.root.style.left="0px",O.root.style.width="",O.root.style.width=O.root.offsetWidth+"px";var U=O.quill.getLines(B.index,B.length);if(U.length===1)O.position(O.quill.getBounds(B));else{var j=U[U.length-1],H=O.quill.getIndex(j),G=Math.min(j.length()-1,B.index+B.length-H),Z=O.quill.getBounds(new p.Range(H,G));O.position(Z)}}else document.activeElement!==O.textbox&&O.quill.hasFocus()&&O.hide()}),O}return a(M,[{key:"listen",value:function(){var P=this;i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){P.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!P.root.classList.contains("ql-hidden")){var O=P.quill.getSelection();O!=null&&P.position(P.quill.getBounds(O))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(P){var O=i(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"position",this).call(this,P),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",O===0)return O;_.style.marginLeft=-1*O-_.offsetWidth/2+"px"}}]),M})(c.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=S,r.default=A}),(function(n,r,o){n.exports=o(63)})]).default})})(G8)),G8.exports}var dfn=cfn();const LB=mu(dfn);var FB,g0e;function ffn(){if(g0e)return FB;g0e=1;var e=-1,t=1,n=0;function r(b,w,A,S){if(b===w)return b?[[n,b]]:[];if(A!=null){var k=y(b,w,A);if(k)return k}var M=s(b,w),D=b.substring(0,M);b=b.substring(M),w=w.substring(M),M=l(b,w);var P=b.substring(b.length-M);b=b.substring(0,b.length-M),w=w.substring(0,w.length-M);var O=o(b,w);return D&&O.unshift([n,D]),P&&O.push([n,P]),d(O,S),O}function o(b,w){var A;if(!b)return[[t,w]];if(!w)return[[e,b]];var S=b.length>w.length?b:w,k=b.length>w.length?w:b,M=S.indexOf(k);if(M!==-1)return A=[[t,S.substring(0,M)],[n,k],[t,S.substring(M+k.length)]],b.length>w.length&&(A[0][0]=A[2][0]=e),A;if(k.length===1)return[[e,b],[t,w]];var D=u(b,w);if(D){var P=D[0],O=D[1],_=D[2],B=D[3],N=D[4],q=r(P,_),U=r(O,B);return q.concat([[n,N]],U)}return i(b,w)}function i(b,w){for(var A=b.length,S=w.length,k=Math.ceil((A+S)/2),M=k,D=2*k,P=new Array(D),O=new Array(D),_=0;_<D;_++)P[_]=-1,O[_]=-1;P[M+1]=0,O[M+1]=0;for(var B=A-S,N=B%2!==0,q=0,U=0,j=0,H=0,G=0;G<k;G++){for(var Z=-G+q;Z<=G-U;Z+=2){var $=M+Z,L;Z===-G||Z!==G&&P[$-1]<P[$+1]?L=P[$+1]:L=P[$-1]+1;for(var W=L-Z;L<A&&W<S&&b.charAt(L)===w.charAt(W);)L++,W++;if(P[$]=L,L>A)U+=2;else if(W>S)q+=2;else if(N){var ie=M+B-Z;if(ie>=0&&ie<D&&O[ie]!==-1){var ee=A-O[ie];if(L>=ee)return a(b,w,L,W)}}}for(var te=-G+j;te<=G-H;te+=2){var ie=M+te,ee;te===-G||te!==G&&O[ie-1]<O[ie+1]?ee=O[ie+1]:ee=O[ie-1]+1;for(var X=ee-te;ee<A&&X<S&&b.charAt(A-ee-1)===w.charAt(S-X-1);)ee++,X++;if(O[ie]=ee,ee>A)H+=2;else if(X>S)j+=2;else if(!N){var $=M+B-te;if($>=0&&$<D&&P[$]!==-1){var L=P[$],W=M+L-$;if(ee=A-ee,L>=ee)return a(b,w,L,W)}}}}return[[e,b],[t,w]]}function a(b,w,A,S){var k=b.substring(0,A),M=w.substring(0,S),D=b.substring(A),P=w.substring(S),O=r(k,M),_=r(D,P);return O.concat(_)}function s(b,w){if(!b||!w||b.charAt(0)!==w.charAt(0))return 0;for(var A=0,S=Math.min(b.length,w.length),k=S,M=0;A<k;)b.substring(M,k)==w.substring(M,k)?(A=k,M=A):S=k,k=Math.floor((S-A)/2+A);return c(b.charCodeAt(k-1))&&k--,k}function l(b,w){if(!b||!w||b.slice(-1)!==w.slice(-1))return 0;for(var A=0,S=Math.min(b.length,w.length),k=S,M=0;A<k;)b.substring(b.length-k,b.length-M)==w.substring(w.length-k,w.length-M)?(A=k,M=A):S=k,k=Math.floor((S-A)/2+A);return f(b.charCodeAt(b.length-k))&&k--,k}function u(b,w){var A=b.length>w.length?b:w,S=b.length>w.length?w:b;if(A.length<4||S.length*2<A.length)return null;function k(U,j,H){for(var G=U.substring(H,H+Math.floor(U.length/4)),Z=-1,$="",L,W,ie,ee;(Z=j.indexOf(G,Z+1))!==-1;){var te=s(U.substring(H),j.substring(Z)),X=l(U.substring(0,H),j.substring(0,Z));$.length<X+te&&($=j.substring(Z-X,Z)+j.substring(Z,Z+te),L=U.substring(0,H-X),W=U.substring(H+te),ie=j.substring(0,Z-X),ee=j.substring(Z+te))}return $.length*2>=U.length?[L,W,ie,ee,$]:null}var M=k(A,S,Math.ceil(A.length/4)),D=k(A,S,Math.ceil(A.length/2)),P;if(!M&&!D)return null;D?M?P=M[4].length>D[4].length?M:D:P=D:P=M;var O,_,B,N;b.length>w.length?(O=P[0],_=P[1],B=P[2],N=P[3]):(B=P[0],N=P[1],O=P[2],_=P[3]);var q=P[4];return[O,_,B,N,q]}function d(b,w){b.push([n,""]);for(var A=0,S=0,k=0,M="",D="",P;A<b.length;){if(A<b.length-1&&!b[A][1]){b.splice(A,1);continue}switch(b[A][0]){case t:k++,D+=b[A][1],A++;break;case e:S++,M+=b[A][1],A++;break;case n:var O=A-k-S-1;if(w){if(O>=0&&v(b[O][1])){var _=b[O][1].slice(-1);if(b[O][1]=b[O][1].slice(0,-1),M=_+M,D=_+D,!b[O][1]){b.splice(O,1),A--;var B=O-1;b[B]&&b[B][0]===t&&(k++,D=b[B][1]+D,B--),b[B]&&b[B][0]===e&&(S++,M=b[B][1]+M,B--),O=B}}if(p(b[A][1])){var _=b[A][1].charAt(0);b[A][1]=b[A][1].slice(1),M+=_,D+=_}}if(A<b.length-1&&!b[A][1]){b.splice(A,1);break}if(M.length>0||D.length>0){M.length>0&&D.length>0&&(P=s(D,M),P!==0&&(O>=0?b[O][1]+=D.substring(0,P):(b.splice(0,0,[n,D.substring(0,P)]),A++),D=D.substring(P),M=M.substring(P)),P=l(D,M),P!==0&&(b[A][1]=D.substring(D.length-P)+b[A][1],D=D.substring(0,D.length-P),M=M.substring(0,M.length-P)));var N=k+S;M.length===0&&D.length===0?(b.splice(A-N,N),A=A-N):M.length===0?(b.splice(A-N,N,[t,D]),A=A-N+1):D.length===0?(b.splice(A-N,N,[e,M]),A=A-N+1):(b.splice(A-N,N,[e,M],[t,D]),A=A-N+2)}A!==0&&b[A-1][0]===n?(b[A-1][1]+=b[A][1],b.splice(A,1)):A++,k=0,S=0,M="",D="";break}}b[b.length-1][1]===""&&b.pop();var q=!1;for(A=1;A<b.length-1;)b[A-1][0]===n&&b[A+1][0]===n&&(b[A][1].substring(b[A][1].length-b[A-1][1].length)===b[A-1][1]?(b[A][1]=b[A-1][1]+b[A][1].substring(0,b[A][1].length-b[A-1][1].length),b[A+1][1]=b[A-1][1]+b[A+1][1],b.splice(A-1,1),q=!0):b[A][1].substring(0,b[A+1][1].length)==b[A+1][1]&&(b[A-1][1]+=b[A+1][1],b[A][1]=b[A][1].substring(b[A+1][1].length)+b[A+1][1],b.splice(A+1,1),q=!0)),A++;q&&d(b,w)}function c(b){return b>=55296&&b<=56319}function f(b){return b>=56320&&b<=57343}function p(b){return f(b.charCodeAt(0))}function v(b){return c(b.charCodeAt(b.length-1))}function h(b){for(var w=[],A=0;A<b.length;A++)b[A][1].length>0&&w.push(b[A]);return w}function g(b,w,A,S){return v(b)||p(S)?null:h([[n,b],[e,w],[t,A],[n,S]])}function y(b,w,A){var S=typeof A=="number"?{index:A,length:0}:A.oldRange,k=typeof A=="number"?null:A.newRange,M=b.length,D=w.length;if(S.length===0&&(k===null||k.length===0)){var P=S.index,O=b.slice(0,P),_=b.slice(P),B=k?k.index:null;e:{var N=P+D-M;if(B!==null&&B!==N||N<0||N>D)break e;var q=w.slice(0,N),U=w.slice(N);if(U!==_)break e;var j=Math.min(P,N),H=O.slice(0,j),G=q.slice(0,j);if(H!==G)break e;var Z=O.slice(j),$=q.slice(j);return g(H,Z,$,_)}e:{if(B!==null&&B!==P)break e;var L=P,q=w.slice(0,L),U=w.slice(L);if(q!==O)break e;var W=Math.min(M-L,D-L),ie=_.slice(_.length-W),ee=U.slice(U.length-W);if(ie!==ee)break e;var Z=_.slice(0,_.length-W),$=U.slice(0,U.length-W);return g(O,Z,$,ie)}}if(S.length>0&&k&&k.length===0)e:{var H=b.slice(0,S.index),ie=b.slice(S.index+S.length),j=H.length,W=ie.length;if(D<j+W)break e;var G=w.slice(0,j),ee=w.slice(D-W);if(H!==G||ie!==ee)break e;var Z=b.slice(j,M-W),$=w.slice(j,D-W);return g(H,Z,$,ie)}return null}function m(b,w,A){return r(b,w,A,!0)}return m.INSERT=t,m.DELETE=e,m.EQUAL=n,FB=m,FB}var M4={exports:{}};M4.exports;var v0e;function Dke(){return v0e||(v0e=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",c="[object GeneratorFunction]",f="[object Map]",p="[object Number]",v="[object Object]",h="[object Promise]",g="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",w="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",k="[object Float32Array]",M="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",_="[object Uint8Array]",B="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,j=/\w*$/,H=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,Z={};Z[i]=Z[a]=Z[A]=Z[S]=Z[s]=Z[l]=Z[k]=Z[M]=Z[D]=Z[P]=Z[O]=Z[f]=Z[p]=Z[v]=Z[g]=Z[y]=Z[m]=Z[b]=Z[_]=Z[B]=Z[N]=Z[q]=!0,Z[u]=Z[d]=Z[w]=!1;var $=typeof $s=="object"&&$s&&$s.Object===Object&&$s,L=typeof self=="object"&&self&&self.Object===Object&&self,W=$||L||Function("return this")(),ie=t&&!t.nodeType&&t,ee=ie&&!0&&e&&!e.nodeType&&e,te=ee&&ee.exports===ie;function X(ye,ae){return ye.set(ae[0],ae[1]),ye}function ue(ye,ae){return ye.add(ae),ye}function ve(ye,ae){for(var de=-1,Ce=ye?ye.length:0;++de<Ce&&ae(ye[de],de,ye)!==!1;);return ye}function Me(ye,ae){for(var de=-1,Ce=ae.length,Lt=ye.length;++de<Ce;)ye[Lt+de]=ae[de];return ye}function we(ye,ae,de,Ce){for(var Lt=-1,Tt=ye?ye.length:0;++Lt<Tt;)de=ae(de,ye[Lt],Lt,ye);return de}function he(ye,ae){for(var de=-1,Ce=Array(ye);++de<ye;)Ce[de]=ae(de);return Ce}function Te(ye,ae){return ye?.[ae]}function Y(ye){var ae=!1;if(ye!=null&&typeof ye.toString!="function")try{ae=!!(ye+"")}catch{}return ae}function be(ye){var ae=-1,de=Array(ye.size);return ye.forEach(function(Ce,Lt){de[++ae]=[Lt,Ce]}),de}function De(ye,ae){return function(de){return ye(ae(de))}}function pe(ye){var ae=-1,de=Array(ye.size);return ye.forEach(function(Ce){de[++ae]=Ce}),de}var oe=Array.prototype,ce=Function.prototype,Re=Object.prototype,Ee=W["__core-js_shared__"],Le=(function(){var ye=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return ye?"Symbol(src)_1."+ye:""})(),Fe=ce.toString,Pe=Re.hasOwnProperty,Ne=Re.toString,pt=RegExp("^"+Fe.call(Pe).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=te?W.Buffer:void 0,Bt=W.Symbol,en=W.Uint8Array,Wt=De(Object.getPrototypeOf,Object),Ut=Object.create,ct=Re.propertyIsEnumerable,_t=oe.splice,st=Object.getOwnPropertySymbols,Ot=Rt?Rt.isBuffer:void 0,Ae=De(Object.keys,Object),je=Ci(W,"DataView"),at=Ci(W,"Map"),gt=Ci(W,"Promise"),nn=Ci(W,"Set"),Tn=Ci(W,"WeakMap"),He=Ci(Object,"create"),ke=Ie(je),me=Ie(at),Be=Ie(gt),rt=Ie(nn),ht=Ie(Tn),rn=Bt?Bt.prototype:void 0,Ye=rn?rn.valueOf:void 0;function Je(ye){var ae=-1,de=ye?ye.length:0;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function lt(){this.__data__=He?He(null):{}}function Ue(ye){return this.has(ye)&&delete this.__data__[ye]}function ze(ye){var ae=this.__data__;if(He){var de=ae[ye];return de===r?void 0:de}return Pe.call(ae,ye)?ae[ye]:void 0}function ut(ye){var ae=this.__data__;return He?ae[ye]!==void 0:Pe.call(ae,ye)}function yt(ye,ae){var de=this.__data__;return de[ye]=He&&ae===void 0?r:ae,this}Je.prototype.clear=lt,Je.prototype.delete=Ue,Je.prototype.get=ze,Je.prototype.has=ut,Je.prototype.set=yt;function jt(ye){var ae=-1,de=ye?ye.length:0;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function mn(){this.__data__=[]}function Nn(ye){var ae=this.__data__,de=ho(ae,ye);if(de<0)return!1;var Ce=ae.length-1;return de==Ce?ae.pop():_t.call(ae,de,1),!0}function xt(ye){var ae=this.__data__,de=ho(ae,ye);return de<0?void 0:ae[de][1]}function sn(ye){return ho(this.__data__,ye)>-1}function vt(ye,ae){var de=this.__data__,Ce=ho(de,ye);return Ce<0?de.push([ye,ae]):de[Ce][1]=ae,this}jt.prototype.clear=mn,jt.prototype.delete=Nn,jt.prototype.get=xt,jt.prototype.has=sn,jt.prototype.set=vt;function Nt(ye){var ae=-1,de=ye?ye.length:0;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function bn(){this.__data__={hash:new Je,map:new(at||jt),string:new Je}}function Mn(ye){return Ai(this,ye).delete(ye)}function tr(ye){return Ai(this,ye).get(ye)}function dn(ye){return Ai(this,ye).has(ye)}function Ke(ye,ae){return Ai(this,ye).set(ye,ae),this}Nt.prototype.clear=bn,Nt.prototype.delete=Mn,Nt.prototype.get=tr,Nt.prototype.has=dn,Nt.prototype.set=Ke;function bt(ye){this.__data__=new jt(ye)}function Yt(){this.__data__=new jt}function wt(ye){return this.__data__.delete(ye)}function Gt(ye){return this.__data__.get(ye)}function An(ye){return this.__data__.has(ye)}function Rn(ye,ae){var de=this.__data__;if(de instanceof jt){var Ce=de.__data__;if(!at||Ce.length<n-1)return Ce.push([ye,ae]),this;de=this.__data__=new Nt(Ce)}return de.set(ye,ae),this}bt.prototype.clear=Yt,bt.prototype.delete=wt,bt.prototype.get=Gt,bt.prototype.has=An,bt.prototype.set=Rn;function Kn(ye,ae){var de=on(ye)||It(ye)?he(ye.length,String):[],Ce=de.length,Lt=!!Ce;for(var Tt in ye)Pe.call(ye,Tt)&&!(Lt&&(Tt=="length"||ha(Tt,Ce)))&&de.push(Tt);return de}function Fr(ye,ae,de){var Ce=ye[ae];(!(Pe.call(ye,ae)&&Ft(Ce,de))||de===void 0&&!(ae in ye))&&(ye[ae]=de)}function ho(ye,ae){for(var de=ye.length;de--;)if(Ft(ye[de][0],ae))return de;return-1}function Wr(ye,ae){return ye&&Lo(ae,Or(ae),ye)}function bo(ye,ae,de,Ce,Lt,Tt,wn){var Sn;if(Ce&&(Sn=Tt?Ce(ye,Lt,Tt,wn):Ce(ye)),Sn!==void 0)return Sn;if(!lr(ye))return ye;var On=on(ye);if(On){if(Sn=ra(ye),!ae)return ti(ye,Sn)}else{var br=mi(ye),Er=br==d||br==c;if(or(ye))return Br(ye,ae);if(br==v||br==i||Er&&!Tt){if(Y(ye))return Tt?ye:{};if(Sn=_r(Er?{}:ye),!ae)return Yo(ye,Wr(Sn,ye))}else{if(!Z[br])return Tt?ye:{};Sn=Si(ye,br,bo,ae)}}wn||(wn=new bt);var Wo=wn.get(ye);if(Wo)return Wo;if(wn.set(ye,Sn),!On)var Rr=de?Pa(ye):Or(ye);return ve(Rr||ye,function(Io,ro){Rr&&(ro=Io,Io=ye[ro]),Fr(Sn,ro,bo(Io,ae,de,Ce,ro,ye,wn))}),Sn}function Bo(ye){return lr(ye)?Ut(ye):{}}function yr(ye,ae,de){var Ce=ae(ye);return on(ye)?Ce:Me(Ce,de(ye))}function Vr(ye){return Ne.call(ye)}function wo(ye){if(!lr(ye)||qe(ye))return!1;var ae=Vn(ye)||Y(ye)?pt:H;return ae.test(Ie(ye))}function Nr(ye){if(!ne(ye))return Ae(ye);var ae=[];for(var de in Object(ye))Pe.call(ye,de)&&de!="constructor"&&ae.push(de);return ae}function Br(ye,ae){if(ae)return ye.slice();var de=new ye.constructor(ye.length);return ye.copy(de),de}function zr(ye){var ae=new ye.constructor(ye.byteLength);return new en(ae).set(new en(ye)),ae}function Ao(ye,ae){var de=ae?zr(ye.buffer):ye.buffer;return new ye.constructor(de,ye.byteOffset,ye.byteLength)}function Cr(ye,ae,de){var Ce=ae?de(be(ye),!0):be(ye);return we(Ce,X,new ye.constructor)}function Ho(ye){var ae=new ye.constructor(ye.source,j.exec(ye));return ae.lastIndex=ye.lastIndex,ae}function Xo(ye,ae,de){var Ce=ae?de(pe(ye),!0):pe(ye);return we(Ce,ue,new ye.constructor)}function qi(ye){return Ye?Object(Ye.call(ye)):{}}function na(ye,ae){var de=ae?zr(ye.buffer):ye.buffer;return new ye.constructor(de,ye.byteOffset,ye.length)}function ti(ye,ae){var de=-1,Ce=ye.length;for(ae||(ae=Array(Ce));++de<Ce;)ae[de]=ye[de];return ae}function Lo(ye,ae,de,Ce){de||(de={});for(var Lt=-1,Tt=ae.length;++Lt<Tt;){var wn=ae[Lt],Sn=void 0;Fr(de,wn,Sn===void 0?ye[wn]:Sn)}return de}function Yo(ye,ae){return Lo(ye,xi(ye),ae)}function Pa(ye){return yr(ye,Or,xi)}function Ai(ye,ae){var de=ye.__data__;return Qe(ae)?de[typeof ae=="string"?"string":"hash"]:de.map}function Ci(ye,ae){var de=Te(ye,ae);return wo(de)?de:void 0}var xi=st?De(st,Object):cr,mi=Vr;(je&&mi(new je(new ArrayBuffer(1)))!=S||at&&mi(new at)!=f||gt&&mi(gt.resolve())!=h||nn&&mi(new nn)!=y||Tn&&mi(new Tn)!=w)&&(mi=function(ye){var ae=Ne.call(ye),de=ae==v?ye.constructor:void 0,Ce=de?Ie(de):void 0;if(Ce)switch(Ce){case ke:return S;case me:return f;case Be:return h;case rt:return y;case ht:return w}return ae});function ra(ye){var ae=ye.length,de=ye.constructor(ae);return ae&&typeof ye[0]=="string"&&Pe.call(ye,"index")&&(de.index=ye.index,de.input=ye.input),de}function _r(ye){return typeof ye.constructor=="function"&&!ne(ye)?Bo(Wt(ye)):{}}function Si(ye,ae,de,Ce){var Lt=ye.constructor;switch(ae){case A:return zr(ye);case s:case l:return new Lt(+ye);case S:return Ao(ye,Ce);case k:case M:case D:case P:case O:case _:case B:case N:case q:return na(ye,Ce);case f:return Cr(ye,Ce,de);case p:case m:return new Lt(ye);case g:return Ho(ye);case y:return Xo(ye,Ce,de);case b:return qi(ye)}}function ha(ye,ae){return ae=ae??o,!!ae&&(typeof ye=="number"||G.test(ye))&&ye>-1&&ye%1==0&&ye<ae}function Qe(ye){var ae=typeof ye;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?ye!=="__proto__":ye===null}function qe(ye){return!!Le&&Le in ye}function ne(ye){var ae=ye&&ye.constructor,de=typeof ae=="function"&&ae.prototype||Re;return ye===de}function Ie(ye){if(ye!=null){try{return Fe.call(ye)}catch{}try{return ye+""}catch{}}return""}function Ge(ye){return bo(ye,!0,!0)}function Ft(ye,ae){return ye===ae||ye!==ye&&ae!==ae}function It(ye){return _n(ye)&&Pe.call(ye,"callee")&&(!ct.call(ye,"callee")||Ne.call(ye)==i)}var on=Array.isArray;function vn(ye){return ye!=null&&xr(ye.length)&&!Vn(ye)}function _n(ye){return nr(ye)&&vn(ye)}var or=Ot||dr;function Vn(ye){var ae=lr(ye)?Ne.call(ye):"";return ae==d||ae==c}function xr(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=o}function lr(ye){var ae=typeof ye;return!!ye&&(ae=="object"||ae=="function")}function nr(ye){return!!ye&&typeof ye=="object"}function Or(ye){return vn(ye)?Kn(ye):Nr(ye)}function cr(){return[]}function dr(){return!1}e.exports=Ge})(M4,M4.exports)),M4.exports}var P4={exports:{}};P4.exports;var m0e;function Ike(){return m0e||(m0e=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",h="[object Map]",g="[object Number]",y="[object Null]",m="[object Object]",b="[object Promise]",w="[object Proxy]",A="[object RegExp]",S="[object Set]",k="[object String]",M="[object Symbol]",D="[object Undefined]",P="[object WeakMap]",O="[object ArrayBuffer]",_="[object DataView]",B="[object Float32Array]",N="[object Float64Array]",q="[object Int8Array]",U="[object Int16Array]",j="[object Int32Array]",H="[object Uint8Array]",G="[object Uint8ClampedArray]",Z="[object Uint16Array]",$="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ee={};ee[B]=ee[N]=ee[q]=ee[U]=ee[j]=ee[H]=ee[G]=ee[Z]=ee[$]=!0,ee[s]=ee[l]=ee[O]=ee[d]=ee[_]=ee[c]=ee[f]=ee[p]=ee[h]=ee[g]=ee[m]=ee[A]=ee[S]=ee[k]=ee[P]=!1;var te=typeof $s=="object"&&$s&&$s.Object===Object&&$s,X=typeof self=="object"&&self&&self.Object===Object&&self,ue=te||X||Function("return this")(),ve=t&&!t.nodeType&&t,Me=ve&&!0&&e&&!e.nodeType&&e,we=Me&&Me.exports===ve,he=we&&te.process,Te=(function(){try{return he&&he.binding&&he.binding("util")}catch{}})(),Y=Te&&Te.isTypedArray;function be(ye,ae){for(var de=-1,Ce=ye==null?0:ye.length,Lt=0,Tt=[];++de<Ce;){var wn=ye[de];ae(wn,de,ye)&&(Tt[Lt++]=wn)}return Tt}function De(ye,ae){for(var de=-1,Ce=ae.length,Lt=ye.length;++de<Ce;)ye[Lt+de]=ae[de];return ye}function pe(ye,ae){for(var de=-1,Ce=ye==null?0:ye.length;++de<Ce;)if(ae(ye[de],de,ye))return!0;return!1}function oe(ye,ae){for(var de=-1,Ce=Array(ye);++de<ye;)Ce[de]=ae(de);return Ce}function ce(ye){return function(ae){return ye(ae)}}function Re(ye,ae){return ye.has(ae)}function Ee(ye,ae){return ye?.[ae]}function Le(ye){var ae=-1,de=Array(ye.size);return ye.forEach(function(Ce,Lt){de[++ae]=[Lt,Ce]}),de}function Fe(ye,ae){return function(de){return ye(ae(de))}}function Pe(ye){var ae=-1,de=Array(ye.size);return ye.forEach(function(Ce){de[++ae]=Ce}),de}var Ne=Array.prototype,pt=Function.prototype,Rt=Object.prototype,Bt=ue["__core-js_shared__"],en=pt.toString,Wt=Rt.hasOwnProperty,Ut=(function(){var ye=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||"");return ye?"Symbol(src)_1."+ye:""})(),ct=Rt.toString,_t=RegExp("^"+en.call(Wt).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=we?ue.Buffer:void 0,Ot=ue.Symbol,Ae=ue.Uint8Array,je=Rt.propertyIsEnumerable,at=Ne.splice,gt=Ot?Ot.toStringTag:void 0,nn=Object.getOwnPropertySymbols,Tn=st?st.isBuffer:void 0,He=Fe(Object.keys,Object),ke=xi(ue,"DataView"),me=xi(ue,"Map"),Be=xi(ue,"Promise"),rt=xi(ue,"Set"),ht=xi(ue,"WeakMap"),rn=xi(Object,"create"),Ye=Ie(ke),Je=Ie(me),lt=Ie(Be),Ue=Ie(rt),ze=Ie(ht),ut=Ot?Ot.prototype:void 0,yt=ut?ut.valueOf:void 0;function jt(ye){var ae=-1,de=ye==null?0:ye.length;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function mn(){this.__data__=rn?rn(null):{},this.size=0}function Nn(ye){var ae=this.has(ye)&&delete this.__data__[ye];return this.size-=ae?1:0,ae}function xt(ye){var ae=this.__data__;if(rn){var de=ae[ye];return de===r?void 0:de}return Wt.call(ae,ye)?ae[ye]:void 0}function sn(ye){var ae=this.__data__;return rn?ae[ye]!==void 0:Wt.call(ae,ye)}function vt(ye,ae){var de=this.__data__;return this.size+=this.has(ye)?0:1,de[ye]=rn&&ae===void 0?r:ae,this}jt.prototype.clear=mn,jt.prototype.delete=Nn,jt.prototype.get=xt,jt.prototype.has=sn,jt.prototype.set=vt;function Nt(ye){var ae=-1,de=ye==null?0:ye.length;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function bn(){this.__data__=[],this.size=0}function Mn(ye){var ae=this.__data__,de=Br(ae,ye);if(de<0)return!1;var Ce=ae.length-1;return de==Ce?ae.pop():at.call(ae,de,1),--this.size,!0}function tr(ye){var ae=this.__data__,de=Br(ae,ye);return de<0?void 0:ae[de][1]}function dn(ye){return Br(this.__data__,ye)>-1}function Ke(ye,ae){var de=this.__data__,Ce=Br(de,ye);return Ce<0?(++this.size,de.push([ye,ae])):de[Ce][1]=ae,this}Nt.prototype.clear=bn,Nt.prototype.delete=Mn,Nt.prototype.get=tr,Nt.prototype.has=dn,Nt.prototype.set=Ke;function bt(ye){var ae=-1,de=ye==null?0:ye.length;for(this.clear();++ae<de;){var Ce=ye[ae];this.set(Ce[0],Ce[1])}}function Yt(){this.size=0,this.__data__={hash:new jt,map:new(me||Nt),string:new jt}}function wt(ye){var ae=Ci(this,ye).delete(ye);return this.size-=ae?1:0,ae}function Gt(ye){return Ci(this,ye).get(ye)}function An(ye){return Ci(this,ye).has(ye)}function Rn(ye,ae){var de=Ci(this,ye),Ce=de.size;return de.set(ye,ae),this.size+=de.size==Ce?0:1,this}bt.prototype.clear=Yt,bt.prototype.delete=wt,bt.prototype.get=Gt,bt.prototype.has=An,bt.prototype.set=Rn;function Kn(ye){var ae=-1,de=ye==null?0:ye.length;for(this.__data__=new bt;++ae<de;)this.add(ye[ae])}function Fr(ye){return this.__data__.set(ye,r),this}function ho(ye){return this.__data__.has(ye)}Kn.prototype.add=Kn.prototype.push=Fr,Kn.prototype.has=ho;function Wr(ye){var ae=this.__data__=new Nt(ye);this.size=ae.size}function bo(){this.__data__=new Nt,this.size=0}function Bo(ye){var ae=this.__data__,de=ae.delete(ye);return this.size=ae.size,de}function yr(ye){return this.__data__.get(ye)}function Vr(ye){return this.__data__.has(ye)}function wo(ye,ae){var de=this.__data__;if(de instanceof Nt){var Ce=de.__data__;if(!me||Ce.length<n-1)return Ce.push([ye,ae]),this.size=++de.size,this;de=this.__data__=new bt(Ce)}return de.set(ye,ae),this.size=de.size,this}Wr.prototype.clear=bo,Wr.prototype.delete=Bo,Wr.prototype.get=yr,Wr.prototype.has=Vr,Wr.prototype.set=wo;function Nr(ye,ae){var de=It(ye),Ce=!de&&Ft(ye),Lt=!de&&!Ce&&vn(ye),Tt=!de&&!Ce&&!Lt&&nr(ye),wn=de||Ce||Lt||Tt,Sn=wn?oe(ye.length,String):[],On=Sn.length;for(var br in ye)Wt.call(ye,br)&&!(wn&&(br=="length"||Lt&&(br=="offset"||br=="parent")||Tt&&(br=="buffer"||br=="byteLength"||br=="byteOffset")||Si(br,On)))&&Sn.push(br);return Sn}function Br(ye,ae){for(var de=ye.length;de--;)if(Ge(ye[de][0],ae))return de;return-1}function zr(ye,ae,de){var Ce=ae(ye);return It(ye)?Ce:De(Ce,de(ye))}function Ao(ye){return ye==null?ye===void 0?D:y:gt&> in Object(ye)?mi(ye):ne(ye)}function Cr(ye){return lr(ye)&&Ao(ye)==s}function Ho(ye,ae,de,Ce,Lt){return ye===ae?!0:ye==null||ae==null||!lr(ye)&&!lr(ae)?ye!==ye&&ae!==ae:Xo(ye,ae,de,Ce,Ho,Lt)}function Xo(ye,ae,de,Ce,Lt,Tt){var wn=It(ye),Sn=It(ae),On=wn?l:_r(ye),br=Sn?l:_r(ae);On=On==s?m:On,br=br==s?m:br;var Er=On==m,Wo=br==m,Rr=On==br;if(Rr&&vn(ye)){if(!vn(ae))return!1;wn=!0,Er=!1}if(Rr&&!Er)return Tt||(Tt=new Wr),wn||nr(ye)?Lo(ye,ae,de,Ce,Lt,Tt):Yo(ye,ae,On,de,Ce,Lt,Tt);if(!(de&o)){var Io=Er&&Wt.call(ye,"__wrapped__"),ro=Wo&&Wt.call(ae,"__wrapped__");if(Io||ro){var ni=Io?ye.value():ye,Oi=ro?ae.value():ae;return Tt||(Tt=new Wr),Lt(ni,Oi,de,Ce,Tt)}}return Rr?(Tt||(Tt=new Wr),Pa(ye,ae,de,Ce,Lt,Tt)):!1}function qi(ye){if(!xr(ye)||Qe(ye))return!1;var ae=or(ye)?_t:W;return ae.test(Ie(ye))}function na(ye){return lr(ye)&&Vn(ye.length)&&!!ee[Ao(ye)]}function ti(ye){if(!qe(ye))return He(ye);var ae=[];for(var de in Object(ye))Wt.call(ye,de)&&de!="constructor"&&ae.push(de);return ae}function Lo(ye,ae,de,Ce,Lt,Tt){var wn=de&o,Sn=ye.length,On=ae.length;if(Sn!=On&&!(wn&&On>Sn))return!1;var br=Tt.get(ye);if(br&&Tt.get(ae))return br==ae;var Er=-1,Wo=!0,Rr=de&i?new Kn:void 0;for(Tt.set(ye,ae),Tt.set(ae,ye);++Er<Sn;){var Io=ye[Er],ro=ae[Er];if(Ce)var ni=wn?Ce(ro,Io,Er,ae,ye,Tt):Ce(Io,ro,Er,ye,ae,Tt);if(ni!==void 0){if(ni)continue;Wo=!1;break}if(Rr){if(!pe(ae,function(Oi,oo){if(!Re(Rr,oo)&&(Io===Oi||Lt(Io,Oi,de,Ce,Tt)))return Rr.push(oo)})){Wo=!1;break}}else if(!(Io===ro||Lt(Io,ro,de,Ce,Tt))){Wo=!1;break}}return Tt.delete(ye),Tt.delete(ae),Wo}function Yo(ye,ae,de,Ce,Lt,Tt,wn){switch(de){case _:if(ye.byteLength!=ae.byteLength||ye.byteOffset!=ae.byteOffset)return!1;ye=ye.buffer,ae=ae.buffer;case O:return!(ye.byteLength!=ae.byteLength||!Tt(new Ae(ye),new Ae(ae)));case d:case c:case g:return Ge(+ye,+ae);case f:return ye.name==ae.name&&ye.message==ae.message;case A:case k:return ye==ae+"";case h:var Sn=Le;case S:var On=Ce&o;if(Sn||(Sn=Pe),ye.size!=ae.size&&!On)return!1;var br=wn.get(ye);if(br)return br==ae;Ce|=i,wn.set(ye,ae);var Er=Lo(Sn(ye),Sn(ae),Ce,Lt,Tt,wn);return wn.delete(ye),Er;case M:if(yt)return yt.call(ye)==yt.call(ae)}return!1}function Pa(ye,ae,de,Ce,Lt,Tt){var wn=de&o,Sn=Ai(ye),On=Sn.length,br=Ai(ae),Er=br.length;if(On!=Er&&!wn)return!1;for(var Wo=On;Wo--;){var Rr=Sn[Wo];if(!(wn?Rr in ae:Wt.call(ae,Rr)))return!1}var Io=Tt.get(ye);if(Io&&Tt.get(ae))return Io==ae;var ro=!0;Tt.set(ye,ae),Tt.set(ae,ye);for(var ni=wn;++Wo<On;){Rr=Sn[Wo];var Oi=ye[Rr],oo=ae[Rr];if(Ce)var Vo=wn?Ce(oo,Oi,Rr,ae,ye,Tt):Ce(Oi,oo,Rr,ye,ae,Tt);if(!(Vo===void 0?Oi===oo||Lt(Oi,oo,de,Ce,Tt):Vo)){ro=!1;break}ni||(ni=Rr=="constructor")}if(ro&&!ni){var Na=ye.constructor,ml=ae.constructor;Na!=ml&&"constructor"in ye&&"constructor"in ae&&!(typeof Na=="function"&&Na instanceof Na&&typeof ml=="function"&&ml instanceof ml)&&(ro=!1)}return Tt.delete(ye),Tt.delete(ae),ro}function Ai(ye){return zr(ye,Or,ra)}function Ci(ye,ae){var de=ye.__data__;return ha(ae)?de[typeof ae=="string"?"string":"hash"]:de.map}function xi(ye,ae){var de=Ee(ye,ae);return qi(de)?de:void 0}function mi(ye){var ae=Wt.call(ye,gt),de=ye[gt];try{ye[gt]=void 0;var Ce=!0}catch{}var Lt=ct.call(ye);return Ce&&(ae?ye[gt]=de:delete ye[gt]),Lt}var ra=nn?function(ye){return ye==null?[]:(ye=Object(ye),be(nn(ye),function(ae){return je.call(ye,ae)}))}:cr,_r=Ao;(ke&&_r(new ke(new ArrayBuffer(1)))!=_||me&&_r(new me)!=h||Be&&_r(Be.resolve())!=b||rt&&_r(new rt)!=S||ht&&_r(new ht)!=P)&&(_r=function(ye){var ae=Ao(ye),de=ae==m?ye.constructor:void 0,Ce=de?Ie(de):"";if(Ce)switch(Ce){case Ye:return _;case Je:return h;case lt:return b;case Ue:return S;case ze:return P}return ae});function Si(ye,ae){return ae=ae??a,!!ae&&(typeof ye=="number"||ie.test(ye))&&ye>-1&&ye%1==0&&ye<ae}function ha(ye){var ae=typeof ye;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?ye!=="__proto__":ye===null}function Qe(ye){return!!Ut&&Ut in ye}function qe(ye){var ae=ye&&ye.constructor,de=typeof ae=="function"&&ae.prototype||Rt;return ye===de}function ne(ye){return ct.call(ye)}function Ie(ye){if(ye!=null){try{return en.call(ye)}catch{}try{return ye+""}catch{}}return""}function Ge(ye,ae){return ye===ae||ye!==ye&&ae!==ae}var Ft=Cr((function(){return arguments})())?Cr:function(ye){return lr(ye)&&Wt.call(ye,"callee")&&!je.call(ye,"callee")},It=Array.isArray;function on(ye){return ye!=null&&Vn(ye.length)&&!or(ye)}var vn=Tn||dr;function _n(ye,ae){return Ho(ye,ae)}function or(ye){if(!xr(ye))return!1;var ae=Ao(ye);return ae==p||ae==v||ae==u||ae==w}function Vn(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=a}function xr(ye){var ae=typeof ye;return ye!=null&&(ae=="object"||ae=="function")}function lr(ye){return ye!=null&&typeof ye=="object"}var nr=Y?ce(Y):na;function Or(ye){return on(ye)?Nr(ye):ti(ye)}function cr(){return[]}function dr(){return!1}e.exports=_n})(P4,P4.exports)),P4.exports}var w1={},y0e;function pfn(){if(y0e)return w1;y0e=1;var e=w1&&w1.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(w1,"__esModule",{value:!0});var t=e(Dke()),n=e(Ike()),r;return(function(o){function i(u,d,c){u===void 0&&(u={}),d===void 0&&(d={}),typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=t.default(d);c||(f=Object.keys(f).reduce(function(v,h){return f[h]!=null&&(v[h]=f[h]),v},{}));for(var p in u)u[p]!==void 0&&d[p]===void 0&&(f[p]=u[p]);return Object.keys(f).length>0?f:void 0}o.compose=i;function a(u,d){u===void 0&&(u={}),d===void 0&&(d={}),typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var c=Object.keys(u).concat(Object.keys(d)).reduce(function(f,p){return n.default(u[p],d[p])||(f[p]=d[p]===void 0?null:d[p]),f},{});return Object.keys(c).length>0?c:void 0}o.diff=a;function s(u,d){u===void 0&&(u={}),d===void 0&&(d={}),u=u||{};var c=Object.keys(d).reduce(function(f,p){return d[p]!==u[p]&&u[p]!==void 0&&(f[p]=d[p]),f},{});return Object.keys(u).reduce(function(f,p){return u[p]!==d[p]&&d[p]===void 0&&(f[p]=null),f},c)}o.invert=s;function l(u,d,c){if(c===void 0&&(c=!1),typeof u!="object")return d;if(typeof d=="object"){if(!c)return d;var f=Object.keys(d).reduce(function(p,v){return u[v]===void 0&&(p[v]=d[v]),p},{});return Object.keys(f).length>0?f:void 0}}o.transform=l})(r||(r={})),w1.default=r,w1}var A1={},C1={},b0e;function hfn(){if(b0e)return C1;b0e=1;var e=C1&&C1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(C1,"__esModule",{value:!0});var t=e(Oke()),n=(function(){function r(o){this.ops=o,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(o){o||(o=1/0);var i=this.ops[this.index];if(i){var a=this.offset,s=t.default.length(i);if(o>=s-a?(o=s-a,this.index+=1,this.offset=0):this.offset+=o,typeof i.delete=="number")return{delete:o};var l={};return i.attributes&&(l.attributes=i.attributes),typeof i.retain=="number"?l.retain=o:typeof i.insert=="string"?l.insert=i.insert.substr(a,o):l.insert=i.insert,l}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var o=this.offset,i=this.index,a=this.next(),s=this.ops.slice(this.index);return this.offset=o,this.index=i,[a].concat(s)}else return[]},r})();return C1.default=n,C1}var w0e;function Oke(){if(w0e)return A1;w0e=1;var e=A1&&A1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(A1,"__esModule",{value:!0});var t=e(hfn()),n;return(function(r){function o(a){return new t.default(a)}r.iterator=o;function i(a){return typeof a.delete=="number"?a.delete:typeof a.retain=="number"?a.retain:typeof a.insert=="string"?a.insert.length:1}r.length=i})(n||(n={})),A1.default=n,A1}var h4,A0e;function gfn(){if(A0e)return h4;A0e=1;var e=h4&&h4.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(ffn()),n=e(Dke()),r=e(Ike()),o=e(pfn()),i=e(Oke()),a="\0",s=(function(){function l(u){Array.isArray(u)?this.ops=u:u!=null&&Array.isArray(u.ops)?this.ops=u.ops:this.ops=[]}return l.prototype.insert=function(u,d){var c={};return typeof u=="string"&&u.length===0?this:(c.insert=u,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(c.attributes=d),this.push(c))},l.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},l.prototype.retain=function(u,d){if(u<=0)return this;var c={retain:u};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(c.attributes=d),this.push(c)},l.prototype.push=function(u){var d=this.ops.length,c=this.ops[d-1];if(u=n.default(u),typeof c=="object"){if(typeof u.delete=="number"&&typeof c.delete=="number")return this.ops[d-1]={delete:c.delete+u.delete},this;if(typeof c.delete=="number"&&u.insert!=null&&(d-=1,c=this.ops[d-1],typeof c!="object"))return this.ops.unshift(u),this;if(r.default(u.attributes,c.attributes)){if(typeof u.insert=="string"&&typeof c.insert=="string")return this.ops[d-1]={insert:c.insert+u.insert},typeof u.attributes=="object"&&(this.ops[d-1].attributes=u.attributes),this;if(typeof u.retain=="number"&&typeof c.retain=="number")return this.ops[d-1]={retain:c.retain+u.retain},typeof u.attributes=="object"&&(this.ops[d-1].attributes=u.attributes),this}}return d===this.ops.length?this.ops.push(u):this.ops.splice(d,0,u),this},l.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},l.prototype.filter=function(u){return this.ops.filter(u)},l.prototype.forEach=function(u){this.ops.forEach(u)},l.prototype.map=function(u){return this.ops.map(u)},l.prototype.partition=function(u){var d=[],c=[];return this.forEach(function(f){var p=u(f)?d:c;p.push(f)}),[d,c]},l.prototype.reduce=function(u,d){return this.ops.reduce(u,d)},l.prototype.changeLength=function(){return this.reduce(function(u,d){return d.insert?u+i.default.length(d):d.delete?u-d.delete:u},0)},l.prototype.length=function(){return this.reduce(function(u,d){return u+i.default.length(d)},0)},l.prototype.slice=function(u,d){u===void 0&&(u=0),d===void 0&&(d=1/0);for(var c=[],f=i.default.iterator(this.ops),p=0;p<d&&f.hasNext();){var v=void 0;p<u?v=f.next(u-p):(v=f.next(d-p),c.push(v)),p+=i.default.length(v)}return new l(c)},l.prototype.compose=function(u){var d=i.default.iterator(this.ops),c=i.default.iterator(u.ops),f=[],p=c.peek();if(p!=null&&typeof p.retain=="number"&&p.attributes==null){for(var v=p.retain;d.peekType()==="insert"&&d.peekLength()<=v;)v-=d.peekLength(),f.push(d.next());p.retain-v>0&&c.next(p.retain-v)}for(var h=new l(f);d.hasNext()||c.hasNext();)if(c.peekType()==="insert")h.push(c.next());else if(d.peekType()==="delete")h.push(d.next());else{var g=Math.min(d.peekLength(),c.peekLength()),y=d.next(g),m=c.next(g);if(typeof m.retain=="number"){var b={};typeof y.retain=="number"?b.retain=g:b.insert=y.insert;var w=o.default.compose(y.attributes,m.attributes,typeof y.retain=="number");if(w&&(b.attributes=w),h.push(b),!c.hasNext()&&r.default(h.ops[h.ops.length-1],b)){var A=new l(d.rest());return h.concat(A).chop()}}else typeof m.delete=="number"&&typeof y.retain=="number"&&h.push(m)}return h.chop()},l.prototype.concat=function(u){var d=new l(this.ops.slice());return u.ops.length>0&&(d.push(u.ops[0]),d.ops=d.ops.concat(u.ops.slice(1))),d},l.prototype.diff=function(u,d){if(this.ops===u.ops)return new l;var c=[this,u].map(function(g){return g.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:a;var m=g===u?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")}),f=new l,p=t.default(c[0],c[1],d),v=i.default.iterator(this.ops),h=i.default.iterator(u.ops);return p.forEach(function(g){for(var y=g[1].length;y>0;){var m=0;switch(g[0]){case t.default.INSERT:m=Math.min(h.peekLength(),y),f.push(h.next(m));break;case t.default.DELETE:m=Math.min(y,v.peekLength()),v.next(m),f.delete(m);break;case t.default.EQUAL:m=Math.min(v.peekLength(),h.peekLength(),y);var b=v.next(m),w=h.next(m);r.default(b.insert,w.insert)?f.retain(m,o.default.diff(b.attributes,w.attributes)):f.push(w).delete(m);break}y-=m}}),f.chop()},l.prototype.eachLine=function(u,d){d===void 0&&(d=`
- `);for(var c=i.default.iterator(this.ops),f=new l,p=0;c.hasNext();){if(c.peekType()!=="insert")return;var v=c.peek(),h=i.default.length(v)-c.peekLength(),g=typeof v.insert=="string"?v.insert.indexOf(d,h)-h:-1;if(g<0)f.push(c.next());else if(g>0)f.push(c.next(g));else{if(u(f,c.next(1).attributes||{},p)===!1)return;p+=1,f=new l}}f.length()>0&&u(f,{},p)},l.prototype.invert=function(u){var d=new l;return this.reduce(function(c,f){if(f.insert)d.delete(i.default.length(f));else{if(f.retain&&f.attributes==null)return d.retain(f.retain),c+f.retain;if(f.delete||f.retain&&f.attributes){var p=f.delete||f.retain,v=u.slice(c,c+p);return v.forEach(function(h){f.delete?d.push(h):f.retain&&f.attributes&&d.retain(i.default.length(h),o.default.invert(f.attributes,h.attributes))}),c+p}}return c},0),d.chop()},l.prototype.transform=function(u,d){if(d===void 0&&(d=!1),d=!!d,typeof u=="number")return this.transformPosition(u,d);for(var c=u,f=i.default.iterator(this.ops),p=i.default.iterator(c.ops),v=new l;f.hasNext()||p.hasNext();)if(f.peekType()==="insert"&&(d||p.peekType()!=="insert"))v.retain(i.default.length(f.next()));else if(p.peekType()==="insert")v.push(p.next());else{var h=Math.min(f.peekLength(),p.peekLength()),g=f.next(h),y=p.next(h);if(g.delete)continue;y.delete?v.push(y):v.retain(h,o.default.transform(g.attributes,y.attributes,d))}return v.chop()},l.prototype.transformPosition=function(u,d){d===void 0&&(d=!1),d=!!d;for(var c=i.default.iterator(this.ops),f=0;c.hasNext()&&f<=u;){var p=c.peekLength(),v=c.peekType();if(c.next(),v==="delete"){u-=Math.min(p,u-f);continue}else v==="insert"&&(f<u||!d)&&(u+=p);f+=p}return u},l.Op=i.default,l.AttributeMap=o.default,l})();return h4=s,h4}var vfn=gfn();const mfn=mu(vfn);/*!
- * VueQuill @vueup/vue-quill v1.2.0
- * https://vueup.github.io/vue-quill/
- *
- * Includes quill v1.3.7
- * https://quilljs.com/
- *
- * Copyright (c) 2023 Ahmad Luthfi Masruri
- * Released under the MIT license
- * Date: 2023-05-12T08:44:03.742Z
- */const C0e={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},yfn=tt({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(C0e).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{jn(()=>{i()}),Qr(()=>{n=null});let n,r;const o=Q(),i=()=>{var O;if(o.value){if(r=a(),e.modules)if(Array.isArray(e.modules))for(const _ of e.modules)LB.register(`modules/${_.name}`,_.module);else LB.register(`modules/${e.modules.name}`,e.modules.module);n=new LB(o.value,r),b(e.content),n.on("text-change",c),n.on("selection-change",p),n.on("editor-change",v),e.theme!=="bubble"&&o.value.classList.remove("ql-bubble"),e.theme!=="snow"&&o.value.classList.remove("ql-snow"),(O=n.getModule("toolbar"))===null||O===void 0||O.container.addEventListener("mousedown",_=>{_.preventDefault()}),t.emit("ready",n)}},a=()=>{const O={};if(e.theme!==""&&(O.theme=e.theme),e.readOnly&&(O.readOnly=e.readOnly),e.placeholder&&(O.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(O.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:C0e[e.toolbar]})()}),e.modules){const _=(()=>{var B,N;const q={};if(Array.isArray(e.modules))for(const U of e.modules)q[U.name]=(B=U.options)!==null&&B!==void 0?B:{};else q[e.modules.name]=(N=e.modules.options)!==null&&N!==void 0?N:{};return q})();O.modules=Object.assign({},O.modules,_)}return Object.assign({},e.globalOptions,e.options,O)},s=O=>typeof O=="object"&&O?O.slice():O,l=O=>Object.values(O.ops).some(_=>!_.retain||Object.keys(_).length!==1);let u;const d=O=>{if(typeof u==typeof O){if(O===u)return!0;if(typeof O=="object"&&O&&typeof u=="object"&&u)return!l(u.diff(O))}return!1},c=(O,_,B)=>{u=s(m()),d(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:O,oldContents:_,source:B})},f=Q(),p=(O,_,B)=>{f.value=!!n?.hasFocus(),t.emit("selectionChange",{range:O,oldRange:_,source:B})};St(f,O=>{O?t.emit("focus",o):t.emit("blur",o)});const v=(...O)=>{O[0]==="text-change"&&t.emit("editorChange",{name:O[0],delta:O[1],oldContents:O[2],source:O[3]}),O[0]==="selection-change"&&t.emit("editorChange",{name:O[0],range:O[1],oldRange:O[2],source:O[3]})},h=()=>o.value,g=()=>{var O;return(O=n?.getModule("toolbar"))===null||O===void 0?void 0:O.container},y=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet,
- make sure to call this method when the editor ready
- or use v-on:ready="onReady(quill)" event instead.`},m=(O,_)=>e.contentType==="html"?S():e.contentType==="text"?w(O,_):n?.getContents(O,_),b=(O,_="api")=>{const B=O||(e.contentType==="delta"?new mfn:"");e.contentType==="html"?k(B):e.contentType==="text"?A(B,_):n?.setContents(B,_),u=s(B)},w=(O,_)=>{var B;return(B=n?.getText(O,_))!==null&&B!==void 0?B:""},A=(O,_="api")=>{n?.setText(O,_)},S=()=>{var O;return(O=n?.root.innerHTML)!==null&&O!==void 0?O:""},k=O=>{n&&(n.root.innerHTML=O)},M=(O,_="api")=>{const B=n?.clipboard.convert(O);B&&n?.setContents(B,_)},D=()=>{n?.focus()},P=()=>{Vt(()=>{var O;!t.slots.toolbar&&n&&((O=n.getModule("toolbar"))===null||O===void 0||O.container.remove()),i()})};return St(()=>e.content,O=>{if(!n||!O||d(O))return;const _=n.getSelection();_&&Vt(()=>n?.setSelection(_)),b(O)},{deep:!0}),St(()=>e.enable,O=>{n&&n.enable(O)}),{editor:o,getEditor:h,getToolbar:g,getQuill:y,getContents:m,setContents:b,getHTML:S,setHTML:k,pasteHTML:M,focus:D,getText:w,setText:A,reinit:P}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),Fn("div",{ref:"editor",...this.$attrs})]}}),x0e="http://aqai.shudaodsj.com:22001/api/ticket/process";function bfn(){console.log("🔍 === 开始获取票据参数 ==="),console.log("📍 完整 URL:",window.location.href),console.log("📍 location.search:",window.location.search),console.log("📍 location.hash:",window.location.hash);let e="";if(window.location.hash&&window.location.hash.includes("?")){const r=window.location.hash.split("?");r.length>1&&(e="?"+r.slice(1).join("?"),console.log("✅ 从 Hash 中提取到查询参数:",e.substring(0,100)))}if(!e&&window.location.search&&(e=window.location.search,console.log("✅ 从 Search 中提取到查询参数:",e.substring(0,100))),!e)return console.log("❌ 未找到查询参数"),console.log("🔍 === 票据获取结束 ==="),null;console.log("📍 原始查询字符串:",e),console.log("📍 查询字符串长度:",e.length),console.log("📍 查询字符串前10个字符:",e.substring(0,10)),e.startsWith("?&")&&(console.log("⚠️ 检测到 URL 格式异常: ?& 开头,正在修正..."),e="?"+e.substring(2),console.log("✅ 修正后的查询字符串:",e.substring(0,100)));let t=null;if(t=new URLSearchParams(e).get("iamcaspticket"),console.log("📋 方式1 (URLSearchParams) 结果:",t?t.substring(0,50)+"...":"null"),!t&&e){console.log("⚠️ URLSearchParams 解析失败,尝试手动解析...");let r=e;r.startsWith("?&")?r=r.substring(2):r.startsWith("?")&&(r=r.substring(1)),console.log("📋 清理后的字符串:",r.substring(0,50)+"...");const o=r.split("&");console.log("📋 分割后的参数数量:",o.length);for(const i of o){const a=i.indexOf("=");if(a===-1)continue;const s=i.substring(0,a),l=i.substring(a+1);if(console.log("📋 检查参数:",s),s==="iamcaspticket"&&l){t=decodeURIComponent(l),console.log("✅ 方式2 (手动解析) 找到票据:",t.substring(0,50)+"...");break}}}if(t){console.log("🎫 成功获取到票据!"),console.log("🎫 票据长度:",t.length),console.log("🎫 票据前50个字符:",t.substring(0,50)+"...");try{if(t.includes("%")){const r=decodeURIComponent(t);console.log("🔄 票据已解码"),t=r}}catch(r){console.log("⚠️ 票据解码失败,使用原始值:",r.message)}return console.log("🔍 === 票据获取成功 ==="),t}return console.log("❌ 未找到票据参数 iamcaspticket"),console.log("📍 当前 URL:",window.location.href),console.log("📍 查询字符串:",e),console.log("🔍 === 票据获取结束 ==="),null}function wfn(){try{console.log("=".repeat(60)),console.log("🧹 开始清理 URL 中的票据参数..."),console.log("📍 调用栈:",new Error().stack),console.log("📍 当前 URL:",window.location.href);const e=window.location.href,t=new URL(e);if(t.hash&&t.hash.includes("?")){const o=t.hash.split("?"),i=o[0];let a=o.slice(1).join("?");console.log("📍 Hash 路径:",i),console.log("📍 Hash 原始查询:",a),a.startsWith("&")&&(console.log("⚠️ 检测到 Hash 查询参数以 & 开头,正在修正..."),a=a.substring(1),console.log("✅ 修正后的 Hash 查询:",a));const s=new URLSearchParams(a);console.log("📋 Hash 查询参数列表:");for(const[d,c]of s.entries())console.log(` - ${d}: ${c.substring(0,50)}${c.length>50?"...":""}`);const l=["iamcaspticket","iamtarget","ip"];let u=!1;for(const d of l)s.has(d)&&(console.log(`✅ 从 Hash 中删除参数: ${d}`),s.delete(d),u=!0);if(u){const d=s.toString(),c=d?`${i}?${d}`:i;console.log("📍 新的 Hash:",c),console.log("📍 当前 Hash:",window.location.hash);try{console.log("🔄 开始更新地址栏..."),window.location.hash=c,console.log("✅ 地址栏已更新"),console.log("📍 新的 Hash:",window.location.hash),console.log("📍 完整 URL:",window.location.href)}catch(f){console.error("❌ 更新地址栏失败:",f);const p=t.origin+t.pathname+c;window.history.replaceState(null,"",p),console.log("✅ 使用 replaceState 更新(降级方案)")}return}}const n=["iamcaspticket","iamtarget","ip"];let r=!1;for(const o of n)t.searchParams.has(o)&&(console.log(`✅ 从查询参数中删除: ${o}`),t.searchParams.delete(o),r=!0);if(r){window.history.replaceState(null,"",t.toString()),console.log("✅ URL 已更新(普通模式)"),console.log("📍 新 URL:",window.location.href);return}console.log("ℹ️ URL 中没有票据参数,无需清理")}catch(e){console.error("❌ 清理票据参数失败:",e),console.error("❌ 错误详情:",e.message),console.error("❌ 错误堆栈:",e.stack)}}async function Afn(e){try{console.log("🔍 正在处理票据..."),console.log("📡 请求接口:",x0e),console.log("📦 票据数据长度:",e.length),console.log("📦 票据前100字符:",e.substring(0,100));const t={ticket_data:e};console.log("📤 发送请求..."),console.log("📤 请求体:",JSON.stringify(t).substring(0,150));const n=await fetch(x0e,{method:"POST",headers:{"Content-Type":"application/json","X-Auth-Type":"ticket"},body:JSON.stringify(t),credentials:"include"});if(console.log("📥 收到响应,状态码:",n.status),!n.ok){const o=await n.text();throw console.error("❌ HTTP错误响应:",o),new Error(`HTTP错误: ${n.status} - ${o}`)}const r=await n.json();if(console.log("📋 响应数据:",r),r.refresh_token&&r.token_type)return console.log("✅ 票据处理成功"),console.log("🎫 Token类型:",r.token_type),console.log("🔑 Refresh Token:",r.refresh_token.substring(0,50)+"..."),r.username&&console.log("👤 用户名:",r.username),{refreshToken:r.refresh_token,tokenType:r.token_type,username:r.username||null};throw console.error("❌ 响应数据格式错误,缺少必要字段"),new Error("票据处理失败: 响应数据不完整")}catch(t){throw console.error("❌ 票据处理失败:",t),console.error("❌ 错误详情:",t.message),t}}function Cfn(e,t,n=null){try{return console.log("💾 开始保存令牌..."),console.log("🎫 Token类型:",t),console.log("🔑 Refresh Token:",e.substring(0,50)+"..."),localStorage.setItem("shudao_refresh_token",e),localStorage.setItem("shudao_token_type",t),n&&(localStorage.setItem("shudao_username",n),console.log("👤 用户名:",n)),console.log("=".repeat(60)),console.log("✅ 令牌保存完成!"),console.log(" - shudao_refresh_token:",localStorage.getItem("shudao_refresh_token")?.substring(0,50)+"..."),console.log(" - shudao_token_type:",localStorage.getItem("shudao_token_type")),n&&console.log(" - shudao_username:",localStorage.getItem("shudao_username")),console.log("=".repeat(60)),!0}catch(r){throw console.error("❌ 保存令牌失败:",r),r}}function xfn(){try{const e=localStorage.getItem("shudao_refresh_token"),t=localStorage.getItem("shudao_token_type"),n=!!(e&&t);return n?(console.log("✅ 检测到本地已有令牌:"),console.log(" - Refresh Token:",e.substring(0,50)+"..."),console.log(" - Token Type:",t)):(console.log("⚠️ 本地没有完整的令牌"),console.log(" - Refresh Token:",e?"有":"无"),console.log(" - Token Type:",t?"有":"无")),n}catch(e){return console.error("❌ 检查本地令牌失败:",e),!1}}function Sfn(){try{const e=localStorage.getItem("shudao_refresh_token"),t=localStorage.getItem("shudao_token_type");return!e||!t?null:{refreshToken:e,tokenType:t}}catch(e){return console.error("❌ 获取本地令牌失败:",e),null}}const wj=[];function as(e,t){const n={level:e,time:new Date().toLocaleTimeString(),message:t};wj.push(n),console.log(`[${e.toUpperCase()}] ${t}`);try{sessionStorage.setItem("auth_debug_logs",JSON.stringify(wj))}catch(r){console.warn("无法保存调试日志:",r)}}async function Efn(){wj.length=0,as("info","🚀 开始票据认证流程"),as("info",`当前 URL: ${window.location.href}`),as("info",`User Agent: ${navigator.userAgent.substring(0,100)}...`),as("info",`是否移动端: ${/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent)}`);try{as("info","步骤1: 获取票据");const e=bfn();if(!e){if(as("warning","⚠️ 未找到票据"),xfn())return as("success","✅ 本地已有令牌,使用本地令牌"),{success:!0,token:Sfn(),fromCache:!0};throw as("error","❌ 未找到票据且本地无令牌"),new Error("TICKET_NOT_FOUND")}as("success",`✅ 成功获取票据 (长度: ${e.length})`),as("info","步骤2: 调用后端处理票据");const{refreshToken:t,tokenType:n,username:r}=await Afn(e);return as("success","✅ 票据处理成功,获得 token"),as("info","步骤3: 保存令牌到本地"),Cfn(t,n,r),as("success",`✅ 令牌已保存 (用户: ${r||"未知"})`),as("info","步骤4: 清理 URL 中的票据参数"),wfn(),as("success","✅ URL 票据参数已清理"),as("success","🎉 票据认证流程完成!"),{success:!0,token:{refreshToken:t,tokenType:n,username:r},fromTicket:!0}}catch(e){throw as("error",`❌ 认证失败: ${e.message}`),as("error",`错误堆栈: ${e.stack?.substring(0,200)}...`),e}}function Mke(){const e=W4()?4.8:19.2,t=W4()?0:1920;console.log(`📱 设备类型: ${W4()?"移动端":"PC端"}`),console.log(`📐 RootValue: ${e}, 设计稿宽度: ${t}px`);const n=()=>{const r=document.documentElement.clientWidth||document.body.clientWidth,o=r/t,i=e*o;document.documentElement.style.fontSize=i+"px",console.log(`📐 当前宽度: ${r}px, 根字体大小: ${i}px`)};n(),window.addEventListener("resize",n),window.addEventListener("load",n),console.log("🎯 动态 flexible 配置已启用")}Mke();async function kfn(){let e=null,t=null;try{e=await Efn(),e&&e.success&&(console.log("✅ 票据认证成功"),console.log("🔑 Token类型:",e.token?.tokenType),console.log("🔑 Refresh Token:",e.token?.refreshToken?.substring(0,50)+"..."),e.fromTicket?console.log("🎫 认证来源: 票据处理"):e.fromCache&&console.log("💾 认证来源: 本地令牌"))}catch(r){console.error("❌ 票据认证失败:",r),console.error("❌ 错误类型:",r.message),t=r}Mke();const n=Gge(s7e);if(n.use(tDe()),n.use(p0e),n.use(mst),n.component("QuillEditor",yfn),n.mount("#app"),console.log("🚀 蜀道系统启动成功"),t){console.log("⚠️ 检测到认证错误,准备跳转到404页面");const r=window.nativeClosePage&&typeof window.nativeClosePage=="function";let o="ticket_failed";t.message==="TICKET_NOT_FOUND"?o=r?"app_token_lost":"ticket_not_found":t.message.includes("网络")||t.message.includes("Network")?o="network_error":(t.message.includes("权限")||t.message.includes("Permission"))&&(o="no_permission"),setTimeout(()=>{console.log("🔄 跳转到404页面,原因:",o),p0e.push({path:"/404",query:{reason:o}})},100)}}kfn().catch(e=>{console.error("❌ 应用启动失败:",e)});export{Mf as _,$s as c,mu as g,gut as r};
|