index-Da_yc_YZ.js 4.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505
  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pptxgen.es-D9PcTWAG.js","assets/jszip.min-D5L-YwUr.js"])))=>i.map(i=>d[i]);
  2. function zke(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)}})();/**
  3. * @vue/shared v3.5.18
  4. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  5. * @license MIT
  6. **//*! #__NO_SIDE_EFFECTS__ */function Tj(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ei={},V1=[],go=()=>{},$ke=()=>!1,E_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_j=e=>e.startsWith("onUpdate:"),Ja=Object.assign,Dj=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jke=Object.prototype.hasOwnProperty,Zr=(e,t)=>jke.call(e,t),qt=Array.isArray,q1=e=>vC(e)==="[object Map]",Cb=e=>vC(e)==="[object Set]",Xh=e=>vC(e)==="[object Date]",Pn=e=>typeof e=="function",Dn=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),O0e=Object.prototype.toString,vC=e=>O0e.call(e),Hke=e=>vC(e).slice(8,-1),D3=e=>vC(e)==="[object Object]",Ij=e=>Dn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,B4=Tj(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k_=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wke=/-(\w)/g,sl=k_(e=>e.replace(Wke,(t,n)=>n?n.toUpperCase():"")),Vke=/\B([A-Z])/g,dp=k_(e=>e.replace(Vke,"-$1").toLowerCase()),mC=k_(e=>e.charAt(0).toUpperCase()+e.slice(1)),L4=k_(e=>e?`on${mC(e)}`:""),_h=(e,t)=>!Object.is(e,t),cS=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},VB=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},J8=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qke=e=>{const t=Dn(e)?Number(e):NaN;return isNaN(t)?e:t};let UQ;const T_=()=>UQ||(UQ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jt(e){if(qt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Dn(r)?Qke(r):Jt(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(Dn(e)||ar(e))return e}const Gke=/;(?![^(]*\))/g,Kke=/:([^]+)/,Yke=/\/\*[^]*?\*\//g;function Qke(e){const t={};return e.replace(Yke,"").split(Gke).forEach(n=>{if(n){const r=n.split(Kke);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function oe(e){let t="";if(Dn(e))t=e;else if(qt(e))for(let n=0;n<e.length;n++){const r=oe(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&&!Dn(t)&&(e.class=oe(t)),n&&(e.style=Jt(n)),e}const Zke="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xke=Tj(Zke);function M0e(e){return!!e||e===""}function Jke(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=Xh(e),r=Xh(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?Jke(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 Oj(e,t){return e.findIndex(n=>Cv(n,t))}const P0e=e=>!!(e&&e.__v_isRef===!0),ze=e=>Dn(e)?e:e==null?"":qt(e)||ar(e)&&(e.toString===O0e||!Pn(e.toString))?P0e(e)?ze(e.value):JSON.stringify(e,N0e,2):String(e),N0e=(e,t)=>P0e(t)?N0e(e,t.value):q1(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[G9(r,i)+" =>"]=o,n),{})}:Cb(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>G9(n))}:Pc(t)?G9(t):ar(t)&&!qt(t)&&!D3(t)?String(t):t,G9=(e,t="")=>{var n;return Pc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  7. * @vue/reactivity v3.5.18
  8. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  9. * @license MIT
  10. **/let Ms;class R0e{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 B0e(e){return new R0e(e)}function L0e(){return Ms}function F0e(e,t=!1){Ms&&Ms.cleanups.push(e)}let Pi;const K9=new WeakSet;class U0e{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,K9.has(this)&&(K9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$0e(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,zQ(this),j0e(this);const t=Pi,n=Sc;Pi=this,Sc=!0;try{return this.fn()}finally{H0e(this),Pi=t,Sc=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nj(t);this.deps=this.depsTail=void 0,zQ(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?K9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qB(this)&&this.run()}get dirty(){return qB(this)}}let z0e=0,F4,U4;function $0e(e,t=!1){if(e.flags|=8,t){e.next=U4,U4=e;return}e.next=F4,F4=e}function Mj(){z0e++}function Pj(){if(--z0e>0)return;if(U4){let t=U4;for(U4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;F4;){let t=F4;for(F4=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 j0e(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function H0e(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Nj(r),eTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function qB(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(W0e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function W0e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===I3)||(e.globalVersion=I3,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qB(e))))return;e.flags|=2;const t=e.dep,n=Pi,r=Sc;Pi=e,Sc=!0;try{j0e(e);const o=e.fn(e._value);(t.version===0||_h(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Pi=n,Sc=r,H0e(e),e.flags&=-3}}function Nj(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)Nj(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function eTe(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 V0e=[];function Wf(){V0e.push(Sc),Sc=!1}function Vf(){const e=V0e.pop();Sc=e===void 0?!0:e}function zQ(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Pi;Pi=void 0;try{t()}finally{Pi=n}}}let I3=0,tTe=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 __{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 tTe(Pi,this),Pi.deps?(n.prevDep=Pi.depsTail,Pi.depsTail.nextDep=n,Pi.depsTail=n):Pi.deps=Pi.depsTail=n,q0e(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++,I3++,this.notify(t)}notify(t){Mj();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pj()}}}function q0e(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)q0e(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const eE=new WeakMap,Wg=Symbol(""),GB=Symbol(""),O3=Symbol("");function Rs(e,t,n){if(Sc&&Pi){let r=eE.get(e);r||eE.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new __),o.map=r,o.key=n),o.track()}}function Sf(e,t,n,r,o,i){const a=eE.get(e);if(!a){I3++;return}const s=l=>{l&&l.trigger()};if(Mj(),t==="clear")a.forEach(s);else{const l=qt(e),u=l&&Ij(n);if(l&&n==="length"){const d=Number(r);a.forEach((c,f)=>{(f==="length"||f===O3||!Pc(f)&&f>=d)&&s(c)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(O3)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Wg)),q1(e)&&s(a.get(GB)));break;case"delete":l||(s(a.get(Wg)),q1(e)&&s(a.get(GB)));break;case"set":q1(e)&&s(a.get(Wg));break}}Pj()}function nTe(e,t){const n=eE.get(e);return n&&n.get(t)}function Dm(e){const t=Oo(e);return t===e?t:(Rs(t,"iterate",O3),Fu(e)?t:t.map(ys))}function D_(e){return Rs(e=Oo(e),"iterate",O3),e}const rTe={__proto__:null,[Symbol.iterator](){return Y9(this,Symbol.iterator,ys)},concat(...e){return Dm(this).concat(...e.map(t=>qt(t)?Dm(t):t))},entries(){return Y9(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 Q9(this,"includes",e)},indexOf(...e){return Q9(this,"indexOf",e)},join(e){return Dm(this).join(e)},lastIndexOf(...e){return Q9(this,"lastIndexOf",e)},map(e,t){return af(this,"map",e,t,void 0,arguments)},pop(){return w2(this,"pop")},push(...e){return w2(this,"push",e)},reduce(e,...t){return $Q(this,"reduce",e,t)},reduceRight(e,...t){return $Q(this,"reduceRight",e,t)},shift(){return w2(this,"shift")},some(e,t){return af(this,"some",e,t,void 0,arguments)},splice(...e){return w2(this,"splice",e)},toReversed(){return Dm(this).toReversed()},toSorted(e){return Dm(this).toSorted(e)},toSpliced(...e){return Dm(this).toSpliced(...e)},unshift(...e){return w2(this,"unshift",e)},values(){return Y9(this,"values",ys)}};function Y9(e,t,n){const r=D_(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 oTe=Array.prototype;function af(e,t,n,r,o,i){const a=D_(e),s=a!==e&&!Fu(e),l=a[t];if(l!==oTe[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 $Q(e,t,n,r){const o=D_(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 Q9(e,t,n){const r=Oo(e);Rs(r,"iterate",O3);const o=r[t](...n);return(o===-1||o===!1)&&Lj(n[0])?(n[0]=Oo(n[0]),r[t](...n)):o}function w2(e,t,n=[]){Wf(),Mj();const r=Oo(e)[t].apply(e,n);return Pj(),Vf(),r}const iTe=Tj("__proto__,__v_isRef,__isVue"),G0e=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pc));function aTe(e){Pc(e)||(e=String(e));const t=Oo(this);return Rs(t,"has",e),t.hasOwnProperty(e)}class K0e{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?vTe:X0e:i?Z0e:Q0e).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=qt(t);if(!o){let l;if(a&&(l=rTe[n]))return l;if(n==="hasOwnProperty")return aTe}const s=Reflect.get(t,n,Ro(t)?t:r);return(Pc(n)?G0e.has(n):iTe(n))||(o||Rs(t,"get",n),i)?s:Ro(s)?a&&Ij(n)?s:s.value:ar(s)?o?xb(s):Ur(s):s}}class Y0e extends K0e{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=Jh(i);if(!Fu(r)&&!Jh(r)&&(i=Oo(i),r=Oo(r)),!qt(t)&&Ro(i)&&!Ro(r))return l?!1:(i.value=r,!0)}const a=qt(t)&&Ij(n)?Number(n)<t.length:Zr(t,n),s=Reflect.set(t,n,r,Ro(t)?t:o);return t===Oo(o)&&(a?_h(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)||!G0e.has(n))&&Rs(t,"has",n),r}ownKeys(t){return Rs(t,"iterate",qt(t)?"length":Wg),Reflect.ownKeys(t)}}class sTe extends K0e{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const lTe=new Y0e,uTe=new sTe,cTe=new Y0e(!0);const KB=e=>e,sx=e=>Reflect.getPrototypeOf(e);function dTe(e,t,n){return function(...r){const o=this.__v_raw,i=Oo(o),a=q1(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),d=n?KB:t?tE:ys;return!t&&Rs(i,"iterate",l?GB: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 lx(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fTe(e,t){const n={get(o){const i=this.__v_raw,a=Oo(i),s=Oo(o);e||(_h(o,s)&&Rs(a,"get",o),Rs(a,"get",s));const{has:l}=sx(a),u=t?KB:e?tE: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||(_h(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?KB:e?tE:ys;return!e&&Rs(l,"iterate",Wg),s.forEach((d,c)=>o.call(i,u(d),u(c),a))}};return Ja(n,e?{add:lx("add"),set:lx("set"),delete:lx("delete"),clear:lx("clear")}:{add(o){!t&&!Fu(o)&&!Jh(o)&&(o=Oo(o));const i=Oo(this);return sx(i).has.call(i,o)||(i.add(o),Sf(i,"add",o,o)),this},set(o,i){!t&&!Fu(i)&&!Jh(i)&&(i=Oo(i));const a=Oo(this),{has:s,get:l}=sx(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?_h(i,d)&&Sf(a,"set",o,i):Sf(a,"add",o,i),this},delete(o){const i=Oo(this),{has:a,get:s}=sx(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]=dTe(o,e,t)}),n}function Rj(e,t){const n=fTe(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 pTe={get:Rj(!1,!1)},hTe={get:Rj(!1,!0)},gTe={get:Rj(!0,!1)};const Q0e=new WeakMap,Z0e=new WeakMap,X0e=new WeakMap,vTe=new WeakMap;function mTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yTe(e){return e.__v_skip||!Object.isExtensible(e)?0:mTe(Hke(e))}function Ur(e){return Jh(e)?e:Bj(e,!1,lTe,pTe,Q0e)}function I_(e){return Bj(e,!1,cTe,hTe,Z0e)}function xb(e){return Bj(e,!0,uTe,gTe,X0e)}function Bj(e,t,n,r,o){if(!ar(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=yTe(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 G1(e){return Jh(e)?G1(e.__v_raw):!!(e&&e.__v_isReactive)}function Jh(e){return!!(e&&e.__v_isReadonly)}function Fu(e){return!!(e&&e.__v_isShallow)}function Lj(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)&&VB(e,"__v_skip",!0),e}const ys=e=>ar(e)?Ur(e):e,tE=e=>ar(e)?xb(e):e;function Ro(e){return e?e.__v_isRef===!0:!1}function Y(e){return J0e(e,!1)}function Uo(e){return J0e(e,!0)}function J0e(e,t){return Ro(e)?e:new bTe(e,t)}class bTe{constructor(t,n){this.dep=new __,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)||Jh(t);t=r?t:Oo(t),_h(t,n)&&(this._rawValue=t,this._value=r?t:ys(t),this.dep.trigger())}}function dS(e){e.dep&&e.dep.trigger()}function C(e){return Ro(e)?e.value:e}const wTe={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 ege(e){return G1(e)?e:new Proxy(e,wTe)}class ATe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new __,{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 CTe(e){return new ATe(e)}function _a(e){const t=qt(e)?new Array(e.length):{};for(const n in e)t[n]=tge(e,n);return t}class xTe{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 nTe(Oo(this._object),this._key)}}class STe{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 STe(e):ar(e)&&arguments.length>1?tge(e,t,n):Y(e)}function tge(e,t,n){const r=e[t];return Ro(r)?r:new xTe(e,t,n)}class ETe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new __(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=I3-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 $0e(this,!0),!0}get value(){const t=this.dep.track();return W0e(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kTe(e,t,n=!1){let r,o;return Pn(e)?r=e:(r=e.get,o=e.set),new ETe(r,o,n)}const ux={},nE=new WeakMap;let gg;function TTe(e,t=!1,n=gg){if(n){let r=nE.get(n);r||nE.set(n,r=[]),r.push(e)}}function _Te(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)):G1(e)?(c=()=>u(e),v=!0):qt(e)?(h=!0,v=e.some(w=>G1(w)||Fu(w)),c=()=>e.map(w=>{if(Ro(w))return w.value;if(G1(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=L0e(),y=()=>{d.stop(),g&&g.active&&Dj(g.effects,d)};if(i&&t){const w=t;t=(...A)=>{w(...A),y()}}let m=h?new Array(e.length).fill(ux):ux;const b=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const A=d.run();if(o||v||(h?A.some((S,k)=>_h(S,m[k])):_h(A,m))){f&&f();const S=gg;gg=d;try{const k=[A,m===ux?void 0:h&&m[0]===ux?[]:m,p];m=A,l?l(t,3,k):t(...k)}finally{gg=S}}}else d.run()};return s&&s(b),d=new U0e(c),d.scheduler=a?()=>a(b,!1):b,p=w=>TTe(w,!1,d),f=d.onStop=()=>{const w=nE.get(d);if(w){if(l)l(w,4);else for(const A of w)A();nE.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(Cb(e)||q1(e))e.forEach(r=>{Ef(r,t,n)});else if(D3(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}/**
  11. * @vue/runtime-core v3.5.18
  12. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  13. * @license MIT
  14. **/function yC(e,t,n,r){try{return r?e(...r):e()}catch(o){O_(o,t,n)}}function Nc(e,t,n,r){if(Pn(e)){const o=yC(e,t,n,r);return o&&Av(o)&&o.catch(i=>{O_(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 O_(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(),yC(i,null,10,[e,l,u]),Vf();return}}DTe(e,n,o,r,a)}function DTe(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const el=[];let sd=-1;const K1=[];let oh=null,S1=0;const nge=Promise.resolve();let rE=null;function Vt(e){const t=rE||nge;return e?t.then(this?e.bind(this):e):t}function ITe(e){let t=sd+1,n=el.length;for(;t<n;){const r=t+n>>>1,o=el[r],i=M3(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Fj(e){if(!(e.flags&1)){const t=M3(e),n=el[el.length-1];!n||!(e.flags&2)&&t>=M3(n)?el.push(e):el.splice(ITe(t),0,e),e.flags|=1,rge()}}function rge(){rE||(rE=nge.then(ige))}function OTe(e){qt(e)?K1.push(...e):oh&&e.id===-1?oh.splice(S1+1,0,e):e.flags&1||(K1.push(e),e.flags|=1),rge()}function jQ(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 oge(e){if(K1.length){const t=[...new Set(K1)].sort((n,r)=>M3(n)-M3(r));if(K1.length=0,oh){oh.push(...t);return}for(oh=t,S1=0;S1<oh.length;S1++){const n=oh[S1];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}oh=null,S1=0}}const M3=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ige(e){try{for(sd=0;sd<el.length;sd++){const t=el[sd];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),yC(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,oge(),rE=null,(el.length||K1.length)&&ige()}}let ws=null,age=null;function oE(e){const t=ws;return ws=e,age=e&&e.type.__scopeId||null,t}function nt(e,t=ws,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&nZ(-1);const i=oE(t);let a;try{a=e(...o)}finally{oE(i),r._d&&nZ(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function an(e,t){if(ws===null)return e;const n=L_(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 sge=Symbol("_vte"),lge=e=>e.__isTeleport,z4=e=>e&&(e.disabled||e.disabled===""),HQ=e=>e&&(e.defer||e.defer===""),WQ=e=>typeof SVGElement<"u"&&e instanceof SVGElement,VQ=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,YB=(e,t)=>{const n=e&&e.to;return Dn(n)?t?t(n):null:n},uge={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=z4(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=(I,P)=>{m&16&&(o&&o.isCE&&(o.ce._teleportTarget=I),d(b,I,P,o,i,a,s,l))},O=()=>{const I=t.target=YB(t.props,v),P=cge(I,t,h,p);I&&(a!=="svg"&&WQ(I)?a="svg":a!=="mathml"&&VQ(I)&&(a="mathml"),y||(k(I,P),fS(t,!1)))};y&&(k(n,S),fS(t,!0)),HQ(t.props)?(t.el.__isMounted=!1,Js(()=>{O(),delete t.el.__isMounted},i)):O()}else{if(HQ(t.props)&&e.el.__isMounted===!1){Js(()=>{uge.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,O=z4(e.props),I=O?n:S,P=O?A:k;if(a==="svg"||WQ(S)?a="svg":(a==="mathml"||VQ(S))&&(a="mathml"),w?(f(e.dynamicChildren,w,I,o,i,a,s),Vj(e,t,!0)):l||c(e,t,I,P,o,i,a,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cx(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=YB(t.props,v);M&&cx(t,M,null,u,0)}else O&&cx(t,S,k,u,1);fS(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||!z4(f);for(let v=0;v<s.length;v++){const h=s[v];r(h,t,n,p,!!h.dynamicChildren)}}},move:cx,hydrate:MTe};function cx(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||z4(d))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);c&&r(s,t,n)}function MTe(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:d}},c){const f=t.target=YB(t.props,l);if(f){const p=z4(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||cge(f,t,d,u),c(v&&a(v),t,f,n,r,o,i)}fS(t,p)}return t.anchor&&a(t.anchor)}const QB=uge;function fS(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 cge(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[sge]=i,e&&(r(o,e),r(i,e)),i}const ih=Symbol("_leaveCb"),dx=Symbol("_enterCb");function dge(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jn(()=>{e.isMounted=!0}),Yr(()=>{e.isUnmounting=!0}),e}const Cu=[Function,Array],fge={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},pge=e=>{const t=e.subTree;return t.component?pge(t.component):t},PTe={name:"BaseTransition",props:fge,setup(e,{slots:t}){const n=vr(),r=dge();return()=>{const o=t.default&&Uj(t.default(),!0);if(!o||!o.length)return;const i=hge(o),a=Oo(e),{mode:s}=a;if(r.isLeaving)return Z9(i);const l=qQ(i);if(!l)return Z9(i);let u=P3(l,a,r,n,c=>u=c);l.type!==ua&&xv(l,u);let d=n.subTree&&qQ(n.subTree);if(d&&d.type!==ua&&!xg(l,d)&&pge(n).type!==ua){let c=P3(d,a,r,n);if(xv(d,c),s==="out-in"&&l.type!==ua)return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete c.afterLeave,d=void 0},Z9(i);s==="in-out"&&l.type!==ua?c.delayLeave=(f,p,v)=>{const h=gge(r,d);h[String(d.key)]=d,f[ih]=()=>{p(),f[ih]=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 hge(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ua){t=n;break}}return t}const NTe=PTe;function gge(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 P3(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=gge(n,e),S=(I,P)=>{I&&Nc(I,r,9,P)},k=(I,P)=>{const M=P[1];S(I,P),qt(I)?I.every(_=>_.length<=1)&&M():I.length<=1&&M()},O={mode:a,persisted:s,beforeEnter(I){let P=l;if(!n.isMounted)if(i)P=g||l;else return;I[ih]&&I[ih](!0);const M=A[w];M&&xg(e,M)&&M.el[ih]&&M.el[ih](),S(P,[I])},enter(I){let P=u,M=d,_=c;if(!n.isMounted)if(i)P=y||u,M=m||d,_=b||c;else return;let R=!1;const N=I[dx]=V=>{R||(R=!0,V?S(_,[I]):S(M,[I]),O.delayedLeave&&O.delayedLeave(),I[dx]=void 0)};P?k(P,[I,N]):N()},leave(I,P){const M=String(e.key);if(I[dx]&&I[dx](!0),n.isUnmounting)return P();S(f,[I]);let _=!1;const R=I[ih]=N=>{_||(_=!0,P(),N?S(h,[I]):S(v,[I]),I[ih]=void 0,A[M]===e&&delete A[M])};A[M]=e,p?k(p,[I,R]):R()},clone(I){const P=P3(I,t,n,r,o);return o&&o(P),P}};return O}function Z9(e){if(M_(e))return e=qf(e),e.children=null,e}function qQ(e){if(!M_(e))return lge(e.type)&&e.children?hge(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 Uj(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===Nt?(a.patchFlag&128&&o++,r=r.concat(Uj(a.children,t,s))):(t||a.type!==ua)&&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 et(e,t){return Pn(e)?Ja({name:e.name},t,{setup:e}):e}function vge(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $4(e,t,n,r,o=!1){if(qt(e)){e.forEach((v,h)=>$4(v,t&&(qt(t)?t[h]:t),n,r,o));return}if(Y1(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&$4(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?L_(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&&(Dn(u)?(d[u]=null,p(u)&&(c[u]=null)):Ro(u)&&(u.value=null)),Pn(l))yC(l,s,12,[a,d]);else{const v=Dn(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)&&Dj(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()}}}T_().requestIdleCallback;T_().cancelIdleCallback;const Y1=e=>!!e.type.__asyncLoader,M_=e=>e.type.__isKeepAlive;function Sb(e,t){yge(e,"a",t)}function mge(e,t){yge(e,"da",t)}function yge(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(P_(t,r,n),n){let o=n.parent;for(;o&&o.parent;)M_(o.parent.vnode)&&RTe(r,t,n,o),o=o.parent}}function RTe(e,t,n,r){const o=P_(t,e,r,!0);hl(()=>{Dj(r[t],o)},n)}function P_(e,t,n=Ls,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Wf();const s=bC(n),l=Nc(t,n,e,a);return s(),Vf(),l});return r?o.unshift(i):o.push(i),i}}const fp=e=>(t,n=Ls)=>{(!R3||e==="sp")&&P_(e,(...r)=>t(...r),n)},N_=fp("bm"),jn=fp("m"),zj=fp("bu"),Wc=fp("u"),Yr=fp("bum"),hl=fp("um"),BTe=fp("sp"),LTe=fp("rtg"),FTe=fp("rtc");function UTe(e,t=Ls){P_("ec",e,t)}const $j="components",zTe="directives";function lr(e,t){return jj($j,e,!0,t)||e}const bge=Symbol.for("v-ndc");function hr(e){return Dn(e)?jj($j,e,!1)||e:e||bge}function R_(e){return jj(zTe,e)}function jj(e,t,n=!0,r=!1){const o=ws||Ls;if(o){const i=o.type;if(e===$j){const s=S_e(i,!1);if(s&&(s===t||s===sl(t)||s===mC(sl(t))))return i}const a=GQ(o[e]||i[e],t)||GQ(o.appContext[e],t);return!a&&r?i:a}}function GQ(e,t){return e&&(e[t]||e[sl(t)]||e[mC(sl(t))])}function on(e,t,n,r){let o;const i=n,a=qt(e);if(a||Dn(e)){const s=a&&G1(e);let l=!1,u=!1;s&&(l=!Fu(e),u=Jh(e),e=D_(e)),o=new Array(e.length);for(let d=0,c=e.length;d<c;d++)o[d]=t(l?u?tE(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 pt(e,t,n={},r,o){if(ws.ce||ws.parent&&Y1(ws.parent)&&ws.parent.ce)return t!=="default"&&(n.name=t),F(),mt(Nt,null,[$e("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),F();const a=i&&wge(i(n)),s=n.key||a&&a.key,l=mt(Nt,{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 wge(e){return e.some(t=>jo(t)?!(t.type===ua||t.type===Nt&&!wge(t.children)):!0)?e:null}function $Te(e,t){const n={};for(const r in e)n[L4(r)]=e[r];return n}const ZB=e=>e?Uge(e)?L_(e):ZB(e.parent):null,j4=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=>ZB(e.parent),$root:e=>ZB(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xge(e),$forceUpdate:e=>e.f||(e.f=()=>{Fj(e.update)}),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>l_e.bind(e)}),X9=(e,t)=>e!==Ei&&!e.__isScriptSetup&&Zr(e,t),jTe={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(X9(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];XB&&(a[t]=0)}}const d=j4[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 X9(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)||X9(t,a)||(s=i[0])&&Zr(s,a)||Zr(r,a)||Zr(j4,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 Age().slots}function pp(){return Age().attrs}function Age(e){const t=vr();return t.setupContext||(t.setupContext=$ge(t))}function KQ(e){return qt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let XB=!0;function HTe(e){const t=xge(e),n=e.proxy,r=e.ctx;XB=!1,t.beforeCreate&&YQ(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:O,serverPrefetch:I,expose:P,inheritAttrs:M,components:_,directives:R,filters:N}=t;if(u&&WTe(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(XB=!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,z=ee({get:G,set:Z});Object.defineProperty(r,j,{enumerable:!0,configurable:!0,get:()=>z.value,set:U=>z.value=U})}if(s)for(const j in s)Cge(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&&YQ(d,e,"c");function L(j,H){qt(H)?H.forEach(G=>j(G.bind(n))):H&&j(H.bind(n))}if(L(N_,c),L(jn,f),L(zj,p),L(Wc,v),L(Sb,h),L(mge,g),L(UTe,O),L(FTe,S),L(LTe,k),L(Yr,m),L(hl,w),L(BTe,I),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),M!=null&&(e.inheritAttrs=M),_&&(e.components=_),R&&(e.directives=R),I&&vge(e)}function WTe(e,t,n=go){qt(e)&&(e=JB(e));for(const r in e){const o=e[r];let i;ar(o)?"default"in o?i=un(o.from||r,o.default,!0):i=un(o.from||r):i=un(o),Ro(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function YQ(e,t,n){Nc(qt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cge(e,t,n,r){let o=r.includes(".")?Nge(n,r):()=>n[r];if(Dn(e)){const i=t[e];Pn(i)&&Ct(o,i)}else if(Pn(e))Ct(o,e.bind(n));else if(ar(e))if(qt(e))e.forEach(i=>Cge(i,t,n,r));else{const i=Pn(e.handler)?e.handler.bind(n):t[e.handler];Pn(i)&&Ct(o,i,e)}}function xge(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=>iE(l,u,a,!0)),iE(l,t,a)),ar(t)&&i.set(t,l),l}function iE(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&iE(e,i,n,!0),o&&o.forEach(a=>iE(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=VTe[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const VTe={data:QQ,props:ZQ,emits:ZQ,methods:v4,computed:v4,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:v4,directives:v4,watch:GTe,provide:QQ,inject:qTe};function QQ(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 qTe(e,t){return v4(JB(e),JB(t))}function JB(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 v4(e,t){return e?Ja(Object.create(null),e,t):t}function ZQ(e,t){return e?qt(e)&&qt(t)?[...new Set([...e,...t])]:Ja(Object.create(null),KQ(e),KQ(t??{})):t}function GTe(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 Sge(){return{app:null,config:{isNativeTag:$ke,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 KTe=0;function YTe(e,t){return function(r,o=null){Pn(r)||(r=Ja({},r)),o!=null&&!ar(o)&&(o=null);const i=Sge(),a=new WeakSet,s=[];let l=!1;const u=i.app={_uid:KTe++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:k_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||$e(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,L_(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=Q1;Q1=u;try{return d()}finally{Q1=c}}};return u}}let Q1=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 un(e,t,n=!1){const r=vr();if(r||Q1){let o=Q1?Q1._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 Ege={},kge=()=>Object.create(Ege),Tge=e=>Object.getPrototypeOf(e)===Ege;function QTe(e,t,n,r=!1){const o={},i=kge();e.propsDefaults=Object.create(null),_ge(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:I_(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ZTe(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(B_(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]=eL(l,s,v,p,e,!1)}else p!==i[f]&&(i[f]=p,u=!0)}}}else{_ge(e,t,o,i)&&(u=!0);let d;for(const c in s)(!t||!Zr(t,c)&&((d=dp(c))===c||!Zr(t,d)))&&(l?n&&(n[c]!==void 0||n[d]!==void 0)&&(o[c]=eL(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 _ge(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(B4(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:B_(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]=eL(o,l,c,u[c],e,!Zr(u,c))}}return a}function eL(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=bC(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===dp(n))&&(r=!0))}return r}const XTe=new WeakMap;function Dge(e,t,n=!1){const r=n?XTe: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]=Dge(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,V1),V1;if(qt(i))for(let d=0;d<i.length;d++){const c=sl(i[d]);XQ(c)&&(a[c]=Ei)}else if(i)for(const d in i){const c=sl(d);if(XQ(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 XQ(e){return e[0]!=="$"&&!B4(e)}const Hj=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",Wj=e=>qt(e)?e.map(dd):[dd(e)],JTe=(e,t,n)=>{if(t._n)return t;const r=nt((...o)=>Wj(t(...o)),n);return r._c=!1,r},Ige=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Hj(o))continue;const i=e[o];if(Pn(i))t[o]=JTe(o,i,r);else if(i!=null){const a=Wj(i);t[o]=()=>a}}},Oge=(e,t)=>{const n=Wj(t);e.slots.default=()=>n},Mge=(e,t,n)=>{for(const r in t)(n||!Hj(r))&&(e[r]=t[r])},e_e=(e,t,n)=>{const r=e.slots=kge();if(e.vnode.shapeFlag&32){const o=t.__;o&&VB(r,"__",o,!0);const i=t._;i?(Mge(r,t,n),n&&VB(r,"_",i,!0)):Ige(t,r)}else t&&Oge(e,t)},t_e=(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:Mge(o,t,n):(i=!t.$stable,Ige(t,o)),a=t}else t&&(Oge(e,t),a={default:1});if(i)for(const s in o)!Hj(s)&&a[s]==null&&delete o[s]},Js=g_e;function n_e(e){return r_e(e)}function r_e(e,t){const n=T_();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=(ge,_e,Q,be=null,De=null,pe=null,ie=void 0,ce=null,Re=!!_e.dynamicChildren)=>{if(ge===_e)return;ge&&!xg(ge,_e)&&(be=X(ge),U(ge,De,pe,!0),ge=null),_e.patchFlag===-2&&(Re=!1,_e.dynamicChildren=null);const{type:Ee,ref:Le,shapeFlag:Fe}=_e;switch(Ee){case Eb:g(ge,_e,Q,be);break;case ua:y(ge,_e,Q,be);break;case pS:ge==null&&m(_e,Q,be,ie);break;case Nt:_(ge,_e,Q,be,De,pe,ie,ce,Re);break;default:Fe&1?A(ge,_e,Q,be,De,pe,ie,ce,Re):Fe&6?R(ge,_e,Q,be,De,pe,ie,ce,Re):(Fe&64||Fe&128)&&Ee.process(ge,_e,Q,be,De,pe,ie,ce,Re,Me)}Le!=null&&De?$4(Le,ge&&ge.ref,pe,_e||ge,!_e):Le==null&&ge&&ge.ref!=null&&$4(ge.ref,null,pe,ge,!0)},g=(ge,_e,Q,be)=>{if(ge==null)r(_e.el=s(_e.children),Q,be);else{const De=_e.el=ge.el;_e.children!==ge.children&&u(De,_e.children)}},y=(ge,_e,Q,be)=>{ge==null?r(_e.el=l(_e.children||""),Q,be):_e.el=ge.el},m=(ge,_e,Q,be)=>{[ge.el,ge.anchor]=v(ge.children,_e,Q,be,ge.el,ge.anchor)},b=({el:ge,anchor:_e},Q,be)=>{let De;for(;ge&&ge!==_e;)De=f(ge),r(ge,Q,be),ge=De;r(_e,Q,be)},w=({el:ge,anchor:_e})=>{let Q;for(;ge&&ge!==_e;)Q=f(ge),o(ge),ge=Q;o(_e)},A=(ge,_e,Q,be,De,pe,ie,ce,Re)=>{_e.type==="svg"?ie="svg":_e.type==="math"&&(ie="mathml"),ge==null?S(_e,Q,be,De,pe,ie,ce,Re):I(ge,_e,De,pe,ie,ce,Re)},S=(ge,_e,Q,be,De,pe,ie,ce)=>{let Re,Ee;const{props:Le,shapeFlag:Fe,transition:Pe,dirs:Ne}=ge;if(Re=ge.el=a(ge.type,pe,Le&&Le.is,Le),Fe&8?d(Re,ge.children):Fe&16&&O(ge.children,Re,null,be,De,J9(ge,pe),ie,ce),Ne&&j0(ge,null,be,"created"),k(Re,ge,ge.scopeId,ie,be),Le){for(const Rt in Le)Rt!=="value"&&!B4(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,ge)}Ne&&j0(ge,null,be,"beforeMount");const ht=o_e(De,Pe);ht&&Pe.beforeEnter(Re),r(Re,_e,Q),((Ee=Le&&Le.onVnodeMounted)||ht||Ne)&&Js(()=>{Ee&&ed(Ee,be,ge),ht&&Pe.enter(Re),Ne&&j0(ge,null,be,"mounted")},De)},k=(ge,_e,Q,be,De)=>{if(Q&&p(ge,Q),be)for(let pe=0;pe<be.length;pe++)p(ge,be[pe]);if(De){let pe=De.subTree;if(_e===pe||Bge(pe.type)&&(pe.ssContent===_e||pe.ssFallback===_e)){const ie=De.vnode;k(ge,ie,ie.scopeId,ie.slotScopeIds,De.parent)}}},O=(ge,_e,Q,be,De,pe,ie,ce,Re=0)=>{for(let Ee=Re;Ee<ge.length;Ee++){const Le=ge[Ee]=ce?ah(ge[Ee]):dd(ge[Ee]);h(null,Le,_e,Q,be,De,pe,ie,ce)}},I=(ge,_e,Q,be,De,pe,ie)=>{const ce=_e.el=ge.el;let{patchFlag:Re,dynamicChildren:Ee,dirs:Le}=_e;Re|=ge.patchFlag&16;const Fe=ge.props||Ei,Pe=_e.props||Ei;let Ne;if(Q&&H0(Q,!1),(Ne=Pe.onVnodeBeforeUpdate)&&ed(Ne,Q,_e,ge),Le&&j0(_e,ge,Q,"beforeUpdate"),Q&&H0(Q,!0),(Fe.innerHTML&&Pe.innerHTML==null||Fe.textContent&&Pe.textContent==null)&&d(ce,""),Ee?P(ge.dynamicChildren,Ee,ce,Q,be,J9(_e,De),pe):ie||H(ge,_e,ce,null,Q,be,J9(_e,De),pe,!1),Re>0){if(Re&16)M(ce,Fe,Pe,Q,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 ht=_e.dynamicProps;for(let Rt=0;Rt<ht.length;Rt++){const Lt=ht[Rt],tn=Fe[Lt],Wt=Pe[Lt];(Wt!==tn||Lt==="value")&&i(ce,Lt,tn,Wt,De,Q)}}Re&1&&ge.children!==_e.children&&d(ce,_e.children)}else!ie&&Ee==null&&M(ce,Fe,Pe,Q,De);((Ne=Pe.onVnodeUpdated)||Le)&&Js(()=>{Ne&&ed(Ne,Q,_e,ge),Le&&j0(_e,ge,Q,"updated")},be)},P=(ge,_e,Q,be,De,pe,ie)=>{for(let ce=0;ce<_e.length;ce++){const Re=ge[ce],Ee=_e[ce],Le=Re.el&&(Re.type===Nt||!xg(Re,Ee)||Re.shapeFlag&198)?c(Re.el):Q;h(Re,Ee,Le,null,be,De,pe,ie,!0)}},M=(ge,_e,Q,be,De)=>{if(_e!==Q){if(_e!==Ei)for(const pe in _e)!B4(pe)&&!(pe in Q)&&i(ge,pe,_e[pe],null,De,be);for(const pe in Q){if(B4(pe))continue;const ie=Q[pe],ce=_e[pe];ie!==ce&&pe!=="value"&&i(ge,pe,ce,ie,De,be)}"value"in Q&&i(ge,"value",_e.value,Q.value,De)}},_=(ge,_e,Q,be,De,pe,ie,ce,Re)=>{const Ee=_e.el=ge?ge.el:s(""),Le=_e.anchor=ge?ge.anchor:s("");let{patchFlag:Fe,dynamicChildren:Pe,slotScopeIds:Ne}=_e;Ne&&(ce=ce?ce.concat(Ne):Ne),ge==null?(r(Ee,Q,be),r(Le,Q,be),O(_e.children||[],Q,Le,De,pe,ie,ce,Re)):Fe>0&&Fe&64&&Pe&&ge.dynamicChildren?(P(ge.dynamicChildren,Pe,Q,De,pe,ie,ce),(_e.key!=null||De&&_e===De.subTree)&&Vj(ge,_e,!0)):H(ge,_e,Q,Le,De,pe,ie,ce,Re)},R=(ge,_e,Q,be,De,pe,ie,ce,Re)=>{_e.slotScopeIds=ce,ge==null?_e.shapeFlag&512?De.ctx.activate(_e,Q,be,ie,Re):N(_e,Q,be,De,pe,ie,Re):V(ge,_e,Re)},N=(ge,_e,Q,be,De,pe,ie)=>{const ce=ge.component=w_e(ge,be,De);if(M_(ge)&&(ce.ctx.renderer=Me),A_e(ce,!1,ie),ce.asyncDep){if(De&&De.registerDep(ce,L,ie),!ge.el){const Re=ce.subTree=$e(ua);y(null,Re,_e,Q),ge.placeholder=Re.el}}else L(ce,ge,_e,Q,De,pe,ie)},V=(ge,_e,Q)=>{const be=_e.component=ge.component;if(p_e(ge,_e,Q))if(be.asyncDep&&!be.asyncResolved){j(be,_e,Q);return}else be.next=_e,be.update();else _e.el=ge.el,be.vnode=_e},L=(ge,_e,Q,be,De,pe,ie)=>{const ce=()=>{if(ge.isMounted){let{next:Fe,bu:Pe,u:Ne,parent:ht,vnode:Rt}=ge;{const dt=Pge(ge);if(dt){Fe&&(Fe.el=Rt.el,j(ge,Fe,ie)),dt.asyncDep.then(()=>{ge.isUnmounted||ce()});return}}let Lt=Fe,tn;H0(ge,!1),Fe?(Fe.el=Rt.el,j(ge,Fe,ie)):Fe=Rt,Pe&&cS(Pe),(tn=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&ed(tn,ht,Fe,Rt),H0(ge,!0);const Wt=eZ(ge),zt=ge.subTree;ge.subTree=Wt,h(zt,Wt,c(zt.el),X(zt),ge,De,pe),Fe.el=Wt.el,Lt===null&&h_e(ge,Wt.el),Ne&&Js(Ne,De),(tn=Fe.props&&Fe.props.onVnodeUpdated)&&Js(()=>ed(tn,ht,Fe,Rt),De)}else{let Fe;const{el:Pe,props:Ne}=_e,{bm:ht,m:Rt,parent:Lt,root:tn,type:Wt}=ge,zt=Y1(_e);H0(ge,!1),ht&&cS(ht),!zt&&(Fe=Ne&&Ne.onVnodeBeforeMount)&&ed(Fe,Lt,_e),H0(ge,!0);{tn.ce&&tn.ce._def.shadowRoot!==!1&&tn.ce._injectChildStyle(Wt);const dt=ge.subTree=eZ(ge);h(null,dt,Q,be,ge,De,pe),_e.el=dt.el}if(Rt&&Js(Rt,De),!zt&&(Fe=Ne&&Ne.onVnodeMounted)){const dt=_e;Js(()=>ed(Fe,Lt,dt),De)}(_e.shapeFlag&256||Lt&&Y1(Lt.vnode)&&Lt.vnode.shapeFlag&256)&&ge.a&&Js(ge.a,De),ge.isMounted=!0,_e=Q=be=null}};ge.scope.on();const Re=ge.effect=new U0e(ce);ge.scope.off();const Ee=ge.update=Re.run.bind(Re),Le=ge.job=Re.runIfDirty.bind(Re);Le.i=ge,Le.id=ge.uid,Re.scheduler=()=>Fj(Le),H0(ge,!0),Ee()},j=(ge,_e,Q)=>{_e.component=ge;const be=ge.vnode.props;ge.vnode=_e,ge.next=null,ZTe(ge,_e.props,be,Q),t_e(ge,_e.children,Q),Wf(),jQ(ge),Vf()},H=(ge,_e,Q,be,De,pe,ie,ce,Re=!1)=>{const Ee=ge&&ge.children,Le=ge?ge.shapeFlag:0,Fe=_e.children,{patchFlag:Pe,shapeFlag:Ne}=_e;if(Pe>0){if(Pe&128){Z(Ee,Fe,Q,be,De,pe,ie,ce,Re);return}else if(Pe&256){G(Ee,Fe,Q,be,De,pe,ie,ce,Re);return}}Ne&8?(Le&16&&te(Ee,De,pe),Fe!==Ee&&d(Q,Fe)):Le&16?Ne&16?Z(Ee,Fe,Q,be,De,pe,ie,ce,Re):te(Ee,De,pe,!0):(Le&8&&d(Q,""),Ne&16&&O(Fe,Q,be,De,pe,ie,ce,Re))},G=(ge,_e,Q,be,De,pe,ie,ce,Re)=>{ge=ge||V1,_e=_e||V1;const Ee=ge.length,Le=_e.length,Fe=Math.min(Ee,Le);let Pe;for(Pe=0;Pe<Fe;Pe++){const Ne=_e[Pe]=Re?ah(_e[Pe]):dd(_e[Pe]);h(ge[Pe],Ne,Q,null,De,pe,ie,ce,Re)}Ee>Le?te(ge,De,pe,!0,!1,Fe):O(_e,Q,be,De,pe,ie,ce,Re,Fe)},Z=(ge,_e,Q,be,De,pe,ie,ce,Re)=>{let Ee=0;const Le=_e.length;let Fe=ge.length-1,Pe=Le-1;for(;Ee<=Fe&&Ee<=Pe;){const Ne=ge[Ee],ht=_e[Ee]=Re?ah(_e[Ee]):dd(_e[Ee]);if(xg(Ne,ht))h(Ne,ht,Q,null,De,pe,ie,ce,Re);else break;Ee++}for(;Ee<=Fe&&Ee<=Pe;){const Ne=ge[Fe],ht=_e[Pe]=Re?ah(_e[Pe]):dd(_e[Pe]);if(xg(Ne,ht))h(Ne,ht,Q,null,De,pe,ie,ce,Re);else break;Fe--,Pe--}if(Ee>Fe){if(Ee<=Pe){const Ne=Pe+1,ht=Ne<Le?_e[Ne].el:be;for(;Ee<=Pe;)h(null,_e[Ee]=Re?ah(_e[Ee]):dd(_e[Ee]),Q,ht,De,pe,ie,ce,Re),Ee++}}else if(Ee>Pe)for(;Ee<=Fe;)U(ge[Ee],De,pe,!0),Ee++;else{const Ne=Ee,ht=Ee,Rt=new Map;for(Ee=ht;Ee<=Pe;Ee++){const rt=_e[Ee]=Re?ah(_e[Ee]):dd(_e[Ee]);rt.key!=null&&Rt.set(rt.key,Ee)}let Lt,tn=0;const Wt=Pe-ht+1;let zt=!1,dt=0;const _t=new Array(Wt);for(Ee=0;Ee<Wt;Ee++)_t[Ee]=0;for(Ee=Ne;Ee<=Fe;Ee++){const rt=ge[Ee];if(tn>=Wt){U(rt,De,pe,!0);continue}let he;if(rt.key!=null)he=Rt.get(rt.key);else for(Lt=ht;Lt<=Pe;Lt++)if(_t[Lt-ht]===0&&xg(rt,_e[Lt])){he=Lt;break}he===void 0?U(rt,De,pe,!0):(_t[he-ht]=Ee+1,he>=dt?dt=he:zt=!0,h(rt,_e[he],Q,null,De,pe,ie,ce,Re),tn++)}const ut=zt?i_e(_t):V1;for(Lt=ut.length-1,Ee=Wt-1;Ee>=0;Ee--){const rt=ht+Ee,he=_e[rt],Je=_e[rt+1],ct=rt+1<Le?Je.el||Je.placeholder:be;_t[Ee]===0?h(null,he,Q,ct,De,pe,ie,ce,Re):zt&&(Lt<0||Ee!==ut[Lt]?z(he,Q,ct,2):Lt--)}}},z=(ge,_e,Q,be,De=null)=>{const{el:pe,type:ie,transition:ce,children:Re,shapeFlag:Ee}=ge;if(Ee&6){z(ge.component.subTree,_e,Q,be);return}if(Ee&128){ge.suspense.move(_e,Q,be);return}if(Ee&64){ie.move(ge,_e,Q,Me);return}if(ie===Nt){r(pe,_e,Q);for(let Fe=0;Fe<Re.length;Fe++)z(Re[Fe],_e,Q,be);r(ge.anchor,_e,Q);return}if(ie===pS){b(ge,_e,Q);return}if(be!==2&&Ee&1&&ce)if(be===0)ce.beforeEnter(pe),r(pe,_e,Q),Js(()=>ce.enter(pe),De);else{const{leave:Fe,delayLeave:Pe,afterLeave:Ne}=ce,ht=()=>{ge.ctx.isUnmounted?o(pe):r(pe,_e,Q)},Rt=()=>{Fe(pe,()=>{ht(),Ne&&Ne()})};Pe?Pe(pe,ht,Rt):Rt()}else r(pe,_e,Q)},U=(ge,_e,Q,be=!1,De=!1)=>{const{type:pe,props:ie,ref:ce,children:Re,dynamicChildren:Ee,shapeFlag:Le,patchFlag:Fe,dirs:Pe,cacheIndex:Ne}=ge;if(Fe===-2&&(De=!1),ce!=null&&(Wf(),$4(ce,null,Q,ge,!0),Vf()),Ne!=null&&(_e.renderCache[Ne]=void 0),Le&256){_e.ctx.deactivate(ge);return}const ht=Le&1&&Pe,Rt=!Y1(ge);let Lt;if(Rt&&(Lt=ie&&ie.onVnodeBeforeUnmount)&&ed(Lt,_e,ge),Le&6)J(ge.component,Q,be);else{if(Le&128){ge.suspense.unmount(Q,be);return}ht&&j0(ge,null,_e,"beforeUnmount"),Le&64?ge.type.remove(ge,_e,Q,Me,be):Ee&&!Ee.hasOnce&&(pe!==Nt||Fe>0&&Fe&64)?te(Ee,_e,Q,!1,!0):(pe===Nt&&Fe&384||!De&&Le&16)&&te(Re,_e,Q),be&&W(ge)}(Rt&&(Lt=ie&&ie.onVnodeUnmounted)||ht)&&Js(()=>{Lt&&ed(Lt,_e,ge),ht&&j0(ge,null,_e,"unmounted")},Q)},W=ge=>{const{type:_e,el:Q,anchor:be,transition:De}=ge;if(_e===Nt){re(Q,be);return}if(_e===pS){w(ge);return}const pe=()=>{o(Q),De&&!De.persisted&&De.afterLeave&&De.afterLeave()};if(ge.shapeFlag&1&&De&&!De.persisted){const{leave:ie,delayLeave:ce}=De,Re=()=>ie(Q,pe);ce?ce(ge.el,pe,Re):Re()}else pe()},re=(ge,_e)=>{let Q;for(;ge!==_e;)Q=f(ge),o(ge),ge=Q;o(_e)},J=(ge,_e,Q)=>{const{bum:be,scope:De,job:pe,subTree:ie,um:ce,m:Re,a:Ee,parent:Le,slots:{__:Fe}}=ge;JQ(Re),JQ(Ee),be&&cS(be),Le&&qt(Fe)&&Fe.forEach(Pe=>{Le.renderCache[Pe]=void 0}),De.stop(),pe&&(pe.flags|=8,U(ie,ge,_e,Q)),ce&&Js(ce,_e),Js(()=>{ge.isUnmounted=!0},_e),_e&&_e.pendingBranch&&!_e.isUnmounted&&ge.asyncDep&&!ge.asyncResolved&&ge.suspenseId===_e.pendingId&&(_e.deps--,_e.deps===0&&_e.resolve())},te=(ge,_e,Q,be=!1,De=!1,pe=0)=>{for(let ie=pe;ie<ge.length;ie++)U(ge[ie],_e,Q,be,De)},X=ge=>{if(ge.shapeFlag&6)return X(ge.component.subTree);if(ge.shapeFlag&128)return ge.suspense.next();const _e=f(ge.anchor||ge.el),Q=_e&&_e[sge];return Q?f(Q):_e};let ue=!1;const me=(ge,_e,Q)=>{ge==null?_e._vnode&&U(_e._vnode,null,null,!0):h(_e._vnode||null,ge,_e,null,null,null,Q),_e._vnode=ge,ue||(ue=!0,jQ(),oge(),ue=!1)},Me={p:h,um:U,m:z,r:W,mt:N,mc:O,pc:H,pbc:P,n:X,o:e};return{render:me,hydrate:void 0,createApp:YTe(me)}}function J9({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 o_e(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vj(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]=ah(o[i]),s.el=a.el),!n&&s.patchFlag!==-2&&Vj(a,s)),s.type===Eb&&(s.el=a.el),s.type===ua&&!s.el&&(s.el=a.el)}}function i_e(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 Pge(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pge(t)}function JQ(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const a_e=Symbol.for("v-scx"),s_e=()=>un(a_e);function Cs(e,t){return qj(e,null,t)}function Ct(e,t,n){return qj(e,t,n)}function qj(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(R3){if(i==="sync"){const p=s_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():Fj(p)}),s.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=_Te(e,t,s);return R3&&(u?u.push(f):l&&f()),f}function l_e(e,t,n){const r=this.proxy,o=Dn(e)?e.includes(".")?Nge(r,e):()=>r[e]:e.bind(r,r);let i;Pn(t)?i=t:(i=t.handler,n=t);const a=bC(this),s=qj(o,i.bind(r),n);return a(),s}function Nge(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 u_e=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sl(t)}Modifiers`]||e[`${dp(t)}Modifiers`];function c_e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ei;let o=n;const i=t.startsWith("update:"),a=i&&u_e(r,t.slice(7));a&&(a.trim&&(o=n.map(d=>Dn(d)?d.trim():d)),a.number&&(o=n.map(J8)));let s,l=r[s=L4(t)]||r[s=L4(sl(t))];!l&&i&&(l=r[s=L4(dp(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 Rge(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=Rge(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 B_(e,t){return!e||!E_(t)?!1:(t=t.slice(2).replace(/Once$/,""),Zr(e,t[0].toLowerCase()+t.slice(1))||Zr(e,dp(t))||Zr(e,t))}function eZ(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=oE(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:d_e(s)}}catch(w){H4.length=0,O_(w,e,1),y=$e(ua)}let b=y;if(m&&h!==!1){const w=Object.keys(m),{shapeFlag:A}=b;w.length&&A&7&&(i&&w.some(_j)&&(m=f_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,oE(g),y}const d_e=e=>{let t;for(const n in e)(n==="class"||n==="style"||E_(n))&&((t||(t={}))[n]=e[n]);return t},f_e=(e,t)=>{const n={};for(const r in e)(!_j(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function p_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?tZ(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]&&!B_(u,f))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?tZ(r,a,u):!0:!!a;return!1}function tZ(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]&&!B_(n,i))return!0}return!1}function h_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 Bge=e=>e.__isSuspense;function g_e(e,t){t&&t.pendingBranch?qt(e)?t.effects.push(...e):t.effects.push(e):OTe(e)}const Nt=Symbol.for("v-fgt"),Eb=Symbol.for("v-txt"),ua=Symbol.for("v-cmt"),pS=Symbol.for("v-stc"),H4=[];let nu=null;function F(e=!1){H4.push(nu=e?null:[])}function v_e(){H4.pop(),nu=H4[H4.length-1]||null}let N3=1;function nZ(e,t=!1){N3+=e,e<0&&nu&&t&&(nu.hasOnce=!0)}function Lge(e){return e.dynamicChildren=N3>0?nu||V1:null,v_e(),N3>0&&nu&&nu.push(e),e}function K(e,t,n,r,o,i){return Lge(x(e,t,n,r,o,i,!0))}function mt(e,t,n,r,o){return Lge($e(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 Fge=({key:e})=>e??null,hS=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Dn(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===Nt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fge(t),ref:t&&hS(t),scopeId:age,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?(Gj(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Dn(n)?8:16),N3>0&&!a&&nu&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&nu.push(l),l}const $e=m_e;function m_e(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===bge)&&(e=ua),jo(e)){const s=qf(e,t,!0);return n&&Gj(s,n),N3>0&&!i&&nu&&(s.shapeFlag&6?nu[nu.indexOf(e)]=s:nu.push(s)),s.patchFlag=-2,s}if(E_e(e)&&(e=e.__vccOpts),t){t=Bd(t);let{class:s,style:l}=t;s&&!Dn(s)&&(t.class=oe(s)),ar(l)&&(Lj(l)&&!qt(l)&&(l=Ja({},l)),t.style=Jt(l))}const a=Dn(e)?1:Bge(e)?128:lge(e)?64:ar(e)?4:Pn(e)?2:0;return x(e,t,n,r,o,a,i,!0)}function Bd(e){return e?Lj(e)||Tge(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&&Fge(u),ref:t&&t.ref?n&&i?qt(i)?i.concat(hS(t)):[i,hS(t)]:hS(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!==Nt?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 An(e=" ",t=0){return $e(Eb,null,e,t)}function ki(e,t){const n=$e(pS,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(F(),mt(ua,null,e)):$e(ua,null,e)}function dd(e){return e==null||typeof e=="boolean"?$e(ua):qt(e)?$e(Nt,null,e.slice()):jo(e)?ah(e):$e(Eb,null,String(e))}function ah(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qf(e)}function Gj(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),Gj(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Tge(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=[An(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=oe([t.class,r.class]));else if(o==="style")t.style=Jt([t.style,r.style]);else if(E_(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 y_e=Sge();let b_e=0;function w_e(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||y_e,i={uid:b_e++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new R0e(!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:Dge(r,o),emitsOptions:Rge(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=c_e.bind(null,i),e.ce&&e.ce(i),i}let Ls=null;const vr=()=>Ls||ws;let aE,tL;{const e=T_(),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)}};aE=t("__VUE_INSTANCE_SETTERS__",n=>Ls=n),tL=t("__VUE_SSR_SETTERS__",n=>R3=n)}const bC=e=>{const t=Ls;return aE(e),e.scope.on(),()=>{e.scope.off(),aE(t)}},rZ=()=>{Ls&&Ls.scope.off(),aE(null)};function Uge(e){return e.vnode.shapeFlag&4}let R3=!1;function A_e(e,t=!1,n=!1){t&&tL(t);const{props:r,children:o}=e.vnode,i=Uge(e);QTe(e,r,i,t),e_e(e,o,n||t);const a=i?C_e(e,t):void 0;return t&&tL(!1),a}function C_e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jTe);const{setup:r}=n;if(r){Wf();const o=e.setupContext=r.length>1?$ge(e):null,i=bC(e),a=yC(r,e,0,[e.props,o]),s=Av(a);if(Vf(),i(),(s||e.sp)&&!Y1(e)&&vge(e),s){if(a.then(rZ,rZ),t)return a.then(l=>{oZ(e,l)}).catch(l=>{O_(l,e,0)});e.asyncDep=a}else oZ(e,a)}else zge(e)}function oZ(e,t,n){Pn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ar(t)&&(e.setupState=ege(t)),zge(e)}function zge(e,t,n){const r=e.type;e.render||(e.render=r.render||go);{const o=bC(e);Wf();try{HTe(e)}finally{Vf(),o()}}}const x_e={get(e,t){return Rs(e,"get",""),e[t]}};function $ge(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,x_e),slots:e.slots,emit:e.emit,expose:t}}function L_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ege(Id(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in j4)return j4[n](e)},has(t,n){return n in t||n in j4}})):e.proxy}function S_e(e,t=!0){return Pn(e)?e.displayName||e.name:e.name||t&&e.__name}function E_e(e){return Pn(e)&&"__vccOpts"in e}const ee=(e,t)=>kTe(e,t,R3);function Fn(e,t,n){const r=arguments.length;return r===2?ar(t)&&!qt(t)?jo(t)?$e(e,null,[t]):$e(e,t):$e(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&jo(n)&&(n=[n]),$e(e,t,n))}const k_e="3.5.18",T_e=go;/**
  15. * @vue/runtime-dom v3.5.18
  16. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  17. * @license MIT
  18. **/let nL;const iZ=typeof window<"u"&&window.trustedTypes;if(iZ)try{nL=iZ.createPolicy("vue",{createHTML:e=>e})}catch{}const jge=nL?e=>nL.createHTML(e):e=>e,__e="http://www.w3.org/2000/svg",D_e="http://www.w3.org/1998/Math/MathML",yf=typeof document<"u"?document:null,aZ=yf&&yf.createElement("template"),I_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(__e,e):t==="mathml"?yf.createElementNS(D_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{aZ.innerHTML=jge(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=aZ.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]}},_p="transition",A2="animation",Cy=Symbol("_vtc"),Hge={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},Wge=Ja({},fge,Hge),O_e=e=>(e.displayName="Transition",e.props=Wge,e),Wi=O_e((e,{slots:t})=>Fn(NTe,Vge(e),t)),W0=(e,t=[])=>{qt(e)?e.forEach(n=>n(...t)):e&&e(...t)},sZ=e=>e?qt(e)?e.some(t=>t.length>1):e.length>1:!1;function Vge(e){const t={};for(const _ in e)_ in Hge||(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=M_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:O=b}=t,I=(_,R,N,V)=>{_._enterCancelled=V,th(_,R?d:s),th(_,R?u:a),N&&N()},P=(_,R)=>{_._isLeaving=!1,th(_,c),th(_,p),th(_,f),R&&R()},M=_=>(R,N)=>{const V=_?k:m,L=()=>I(R,_,N);W0(V,[R,L]),lZ(()=>{th(R,_?l:i),od(R,_?d:s),sZ(V)||uZ(R,r,h,L)})};return Ja(t,{onBeforeEnter(_){W0(y,[_]),od(_,i),od(_,a)},onBeforeAppear(_){W0(S,[_]),od(_,l),od(_,u)},onEnter:M(!1),onAppear:M(!0),onLeave(_,R){_._isLeaving=!0;const N=()=>P(_,R);od(_,c),_._enterCancelled?(od(_,f),rL()):(rL(),od(_,f)),lZ(()=>{_._isLeaving&&(th(_,c),od(_,p),sZ(w)||uZ(_,r,g,N))}),W0(w,[_,N])},onEnterCancelled(_){I(_,!1,void 0,!0),W0(b,[_])},onAppearCancelled(_){I(_,!0,void 0,!0),W0(O,[_])},onLeaveCancelled(_){P(_),W0(A,[_])}})}function M_e(e){if(e==null)return null;if(ar(e))return[eI(e.enter),eI(e.leave)];{const t=eI(e);return[t,t]}}function eI(e){return qke(e)}function od(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cy]||(e[Cy]=new Set)).add(t)}function th(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Cy];n&&(n.delete(t),n.size||(e[Cy]=void 0))}function lZ(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P_e=0;function uZ(e,t,n,r){const o=e._endId=++P_e,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=qge(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 qge(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${_p}Delay`),i=r(`${_p}Duration`),a=cZ(o,i),s=r(`${A2}Delay`),l=r(`${A2}Duration`),u=cZ(s,l);let d=null,c=0,f=0;t===_p?a>0&&(d=_p,c=a,f=i.length):t===A2?u>0&&(d=A2,c=u,f=l.length):(c=Math.max(a,u),d=c>0?a>u?_p:A2:null,f=d?d===_p?i.length:l.length:0);const p=d===_p&&/\b(transform|all)(,|$)/.test(r(`${_p}Property`).toString());return{type:d,timeout:c,propCount:f,hasTransform:p}}function cZ(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>dZ(n)+dZ(e[r])))}function dZ(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rL(){return document.body.offsetHeight}function N_e(e,t,n){const r=e[Cy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sE=Symbol("_vod"),Gge=Symbol("_vsh"),Ar={beforeMount(e,{value:t},{transition:n}){e[sE]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):C2(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),C2(e,!0),r.enter(e)):r.leave(e,()=>{C2(e,!1)}):C2(e,t))},beforeUnmount(e,{value:t}){C2(e,t)}};function C2(e,t){e.style.display=t?e[sE]:"none",e[Gge]=!t}const R_e=Symbol(""),B_e=/(^|;)\s*display\s*:/;function L_e(e,t,n){const r=e.style,o=Dn(n);let i=!1;if(n&&!o){if(t)if(Dn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&gS(r,s,"")}else for(const a in t)n[a]==null&&gS(r,a,"");for(const a in n)a==="display"&&(i=!0),gS(r,a,n[a])}else if(o){if(t!==n){const a=r[R_e];a&&(n+=";"+a),r.cssText=n,i=B_e.test(n)}}else t&&e.removeAttribute("style");sE in e&&(e[sE]=i?r.display:"",e[Gge]&&(r.display="none"))}const fZ=/\s*!important$/;function gS(e,t,n){if(qt(n))n.forEach(r=>gS(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=F_e(e,t);fZ.test(n)?e.setProperty(dp(r),n.replace(fZ,""),"important"):e[r]=n}}const pZ=["Webkit","Moz","ms"],tI={};function F_e(e,t){const n=tI[t];if(n)return n;let r=sl(t);if(r!=="filter"&&r in e)return tI[t]=r;r=mC(r);for(let o=0;o<pZ.length;o++){const i=pZ[o]+r;if(i in e)return tI[t]=i}return t}const hZ="http://www.w3.org/1999/xlink";function gZ(e,t,n,r,o,i=Xke(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(hZ,t.slice(6,t.length)):e.setAttributeNS(hZ,t,n):n==null||i&&!M0e(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Pc(n)?String(n):n)}function vZ(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?jge(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=M0e(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 U_e(e,t,n,r){e.removeEventListener(t,n,r)}const mZ=Symbol("_vei");function z_e(e,t,n,r,o=null){const i=e[mZ]||(e[mZ]={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=$_e(t);if(r){const u=i[t]=W_e(r,o);kf(e,s,u,l)}else a&&(U_e(e,s,a,l),i[t]=void 0)}}const yZ=/(?:Once|Passive|Capture)$/;function $_e(e){let t;if(yZ.test(e)){t={};let r;for(;r=e.match(yZ);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dp(e.slice(2)),t]}let nI=0;const j_e=Promise.resolve(),H_e=()=>nI||(j_e.then(()=>nI=0),nI=Date.now());function W_e(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nc(V_e(r,n.value),t,5,[r])};return n.value=e,n.attached=H_e(),n}function V_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 bZ=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,q_e=(e,t,n,r,o,i)=>{const a=o==="svg";t==="class"?N_e(e,r,a):t==="style"?L_e(e,n,r):E_(t)?_j(t)||z_e(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G_e(e,t,r,a))?(vZ(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gZ(e,t,r,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Dn(r))?vZ(e,sl(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),gZ(e,t,r,a))};function G_e(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&bZ(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 bZ(t)&&Dn(n)?!1:t in e}const Kge=new WeakMap,Yge=new WeakMap,lE=Symbol("_moveCb"),wZ=Symbol("_enterCb"),K_e=e=>(delete e.props.mode,e),Y_e=K_e({name:"TransitionGroup",props:Ja({},Wge,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vr(),r=dge();let o,i;return Wc(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!J_e(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(Q_e),o.forEach(Z_e);const s=o.filter(X_e);rL(),s.forEach(l=>{const u=l.el,d=u.style;od(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[lE]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",c),u[lE]=null,th(u,a))};u.addEventListener("transitionend",c)}),o=[]}),()=>{const a=Oo(e),s=Vge(a);let l=a.tag||Nt;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,P3(d,s,r,n)),Kge.set(d,d.el.getBoundingClientRect()))}i=t.default?Uj(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&xv(d,P3(d,s,r,n))}return $e(l,null,i)}}}),Qge=Y_e;function Q_e(e){const t=e.el;t[lE]&&t[lE](),t[wZ]&&t[wZ]()}function Z_e(e){Yge.set(e,e.el.getBoundingClientRect())}function X_e(e){const t=Kge.get(e),n=Yge.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 J_e(e,t,n){const r=e.cloneNode(),o=e[Cy];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}=qge(r);return i.removeChild(r),a}const e0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qt(t)?n=>cS(t,n):t};function eDe(e){e.target.composing=!0}function AZ(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]=e0(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=J8(s)),e[Uu](s)}),n&&kf(e,"change",()=>{e.value=e.value.trim()}),t||(kf(e,"compositionstart",eDe),kf(e,"compositionend",AZ),kf(e,"change",AZ))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){if(e[Uu]=e0(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?J8(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))}},uE={deep:!0,created(e,t,n){e[Uu]=e0(n),kf(e,"change",()=>{const r=e._modelValue,o=xy(e),i=e.checked,a=e[Uu];if(qt(r)){const s=Oj(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(Cb(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(Xge(e,i))})},mounted:CZ,beforeUpdate(e,t,n){e[Uu]=e0(n),CZ(e,t,n)}};function CZ(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(qt(t))o=Oj(t,r.props.value)>-1;else if(Cb(t))o=t.has(r.props.value);else{if(t===n)return;o=Cv(t,Xge(e,!0))}e.checked!==o&&(e.checked=o)}const Zge={created(e,{value:t},n){e.checked=Cv(t,n.props.value),e[Uu]=e0(n),kf(e,"change",()=>{e[Uu](xy(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Uu]=e0(r),t!==n&&(e.checked=Cv(t,r.props.value))}},x2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Cb(t);kf(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?J8(xy(a)):xy(a));e[Uu](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Vt(()=>{e._assigning=!1})}),e[Uu]=e0(r)},mounted(e,{value:t}){xZ(e,t)},beforeUpdate(e,t,n){e[Uu]=e0(n)},updated(e,{value:t}){e._assigning||xZ(e,t)}};function xZ(e,t){const n=e.multiple,r=qt(t);if(!(n&&!r&&!Cb(t))){for(let o=0,i=e.options.length;o<i;o++){const a=e.options[o],s=xy(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=Oj(t,s)>-1}else a.selected=t.has(s);else if(Cv(xy(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function xy(e){return"_value"in e?e._value:e.value}function Xge(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tDe=["ctrl","shift","alt","meta"],nDe={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)=>tDe.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=nDe[t[a]];if(s&&s(o,t))return}return e(o,...i)})},rDe={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=dp(o.key);if(t.some(a=>a===i||rDe[a]===i))return e(o)})},oDe=Ja({patchProp:q_e},I_e);let SZ;function Jge(){return SZ||(SZ=n_e(oDe))}const t0=(...e)=>{Jge().render(...e)},eve=(...e)=>{const t=Jge().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=aDe(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,iDe(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function iDe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aDe(e){return Dn(e)?document.querySelector(e):e}/*!
  19. * pinia v3.0.3
  20. * (c) 2025 Eduardo San Martin Morote
  21. * @license MIT
  22. */const sDe=Symbol();var EZ;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(EZ||(EZ={}));function lDe(){const e=B0e(!0),t=e.run(()=>Y({}));let n=[],r=[];const o=Id({install(i){o._a=i,i.provide(sDe,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}/*!
  23. * vue-router v4.5.1
  24. * (c) 2025 Eduardo San Martin Morote
  25. * @license MIT
  26. */const E1=typeof document<"u";function tve(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uDe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tve(e.default)}const si=Object.assign;function rI(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 W4=()=>{},Rc=Array.isArray,nve=/#/g,cDe=/&/g,dDe=/\//g,fDe=/=/g,pDe=/\?/g,rve=/\+/g,hDe=/%5B/g,gDe=/%5D/g,ove=/%5E/g,vDe=/%60/g,ive=/%7B/g,mDe=/%7C/g,ave=/%7D/g,yDe=/%20/g;function Kj(e){return encodeURI(""+e).replace(mDe,"|").replace(hDe,"[").replace(gDe,"]")}function bDe(e){return Kj(e).replace(ive,"{").replace(ave,"}").replace(ove,"^")}function oL(e){return Kj(e).replace(rve,"%2B").replace(yDe,"+").replace(nve,"%23").replace(cDe,"%26").replace(vDe,"`").replace(ive,"{").replace(ave,"}").replace(ove,"^")}function wDe(e){return oL(e).replace(fDe,"%3D")}function ADe(e){return Kj(e).replace(nve,"%23").replace(pDe,"%3F")}function CDe(e){return e==null?"":ADe(e).replace(dDe,"%2F")}function B3(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xDe=/\/$/,SDe=e=>e.replace(xDe,"");function oI(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=_De(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:B3(a)}}function EDe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kZ(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kDe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Sy(t.matched[r],n.matched[o])&&sve(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Sy(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sve(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!TDe(e[n],t[n]))return!1;return!0}function TDe(e,t){return Rc(e)?TZ(e,t):Rc(t)?TZ(t,e):e===t}function TZ(e,t){return Rc(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _De(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 Dp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var L3;(function(e){e.pop="pop",e.push="push"})(L3||(L3={}));var V4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(V4||(V4={}));function DDe(e){if(!e)if(E1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),SDe(e)}const IDe=/^[^#]+#/;function ODe(e,t){return e.replace(IDe,"#")+t}function MDe(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 F_=()=>({left:window.scrollX,top:window.scrollY});function PDe(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=MDe(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 _Z(e,t){return(history.state?history.state.position-t:-1)+e}const iL=new Map;function NDe(e,t){iL.set(e,t)}function RDe(e){const t=iL.get(e);return iL.delete(e),t}let BDe=()=>location.protocol+"//"+location.host;function lve(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),kZ(l,"")}return kZ(n,e)+r+o}function LDe(e,t,n,r){let o=[],i=[],a=null;const s=({state:f})=>{const p=lve(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:L3.pop,direction:g?g>0?V4.forward:V4.back:V4.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:F_()}),"")}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 DZ(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?F_():null}}function FDe(e){const{history:t,location:n}=window,r={value:lve(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:BDe()+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,DZ(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:F_()});i(d.current,d,!0);const c=si({},DZ(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 UDe(e){e=DDe(e);const t=FDe(e),n=LDe(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:ODe.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 zDe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),UDe(e)}function $De(e){return typeof e=="string"||e&&typeof e=="object"}function uve(e){return typeof e=="string"||typeof e=="symbol"}const cve=Symbol("");var IZ;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(IZ||(IZ={}));function Ey(e,t){return si(new Error,{type:e,[cve]:!0},t)}function sf(e,t){return e instanceof Error&&cve in e&&(t==null||!!(e.type&t))}const OZ="[^/]+?",jDe={sensitive:!1,strict:!1,start:!0,end:!0},HDe=/[.+*?^${}()[\]/\\]/g;function WDe(e,t){const n=si({},jDe,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(HDe,"\\$&"),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||OZ;if(m!==OZ){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 VDe(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 dve(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=VDe(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(MZ(r))return 1;if(MZ(o))return-1}return o.length-r.length}function MZ(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qDe={type:0,value:""},GDe=/[a-zA-Z0-9_]/;function KDe(e){if(!e)return[[]];if(e==="/")return[[qDe]];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:GDe.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 YDe(e,t,n){const r=WDe(KDe(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 QDe(e,t){const n=[],r=new Map;t=BZ({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function i(c,f,p){const v=!p,h=NZ(c);h.aliasOf=p&&p.record;const g=BZ(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(NZ(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=YDe(w,f,g),p?p.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),v&&c.name&&!RZ(m)&&a(c.name)),fve(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)}:W4}function a(c){if(uve(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=JDe(c,n);n.splice(f,0,c),c.record.name&&!RZ(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 Ey(1,{location:c});g=p.record.name,v=si(PZ(f.params,p.keys.filter(b=>!b.optional).concat(p.parent?p.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&PZ(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 Ey(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:XDe(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 PZ(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function NZ(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ZDe(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 ZDe(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 RZ(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XDe(e){return e.reduce((t,n)=>si(t,n.meta),{})}function BZ(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function JDe(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;dve(e,t[i])<0?r=i:n=i+1}const o=e7e(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function e7e(e){let t=e;for(;t=t.parent;)if(fve(t)&&dve(e,t)===0)return t}function fve({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function t7e(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(rve," "),a=i.indexOf("="),s=B3(a<0?i:i.slice(0,a)),l=a<0?null:B3(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 LZ(e){let t="";for(let n in e){const r=e[n];if(n=wDe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Rc(r)?r.map(i=>i&&oL(i)):[r&&oL(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function n7e(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 r7e=Symbol(""),FZ=Symbol(""),U_=Symbol(""),Yj=Symbol(""),aL=Symbol("");function S2(){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 sh(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(Ey(4,{from:n,to:t})):f instanceof Error?l(f):$De(f)?l(Ey(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 iI(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(tve(l)){const d=(l.__vccOpts||l)[t];d&&i.push(sh(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=uDe(d)?d.default:d;a.mods[s]=d,a.components[s]=c;const p=(c.__vccOpts||c)[t];return p&&sh(p,n,r,a,s,o)()}))}}return i}function UZ(e){const t=un(U_),n=un(Yj),r=ee(()=>{const l=C(e.to);return t.resolve(l)}),o=ee(()=>{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(Sy.bind(null,d));if(f>-1)return f;const p=zZ(l[u-2]);return u>1&&zZ(d)===p&&c[c.length-1].path!==p?c.findIndex(Sy.bind(null,l[u-2])):f}),i=ee(()=>o.value>-1&&l7e(n.params,r.value.params)),a=ee(()=>o.value>-1&&o.value===n.matched.length-1&&sve(n.params,r.value.params));function s(l={}){if(s7e(l)){const u=t[C(e.replace)?"replace":"push"](C(e.to)).catch(W4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}function o7e(e){return e.length===1?e[0]:e}const i7e=et({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:UZ,setup(e,{slots:t}){const n=Ur(UZ(e)),{options:r}=un(U_),o=ee(()=>({[$Z(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[$Z(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&o7e(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)}}}),a7e=i7e;function s7e(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 l7e(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 zZ(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $Z=(e,t,n)=>e??t??n,u7e=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=un(aL),o=ee(()=>e.route||r.value),i=un(FZ,0),a=ee(()=>{let u=C(i);const{matched:d}=o.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),s=ee(()=>o.value.matched[a.value]);Sr(FZ,ee(()=>a.value+1)),Sr(r7e,s),Sr(aL,o);const l=Y();return Ct(()=>[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||!Sy(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 jZ(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 jZ(n.default,{Component:g,route:u})||g}}});function jZ(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pve=u7e;function c7e(e){const t=QDe(e.routes,e),n=e.parseQuery||t7e,r=e.stringifyQuery||LZ,o=e.history,i=S2(),a=S2(),s=S2(),l=Uo(Dp);let u=Dp;E1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=rI.bind(null,X=>""+X),c=rI.bind(null,CDe),f=rI.bind(null,B3);function p(X,ue){let me,Me;return uve(X)?(me=t.getRecordMatcher(X),Me=ue):Me=X,t.addRoute(Me,me)}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 Q=oI(n,X,ue.path),be=t.resolve({path:Q.path},ue),De=o.createHref(Q.fullPath);return si(Q,be,{params:f(be.params),hash:B3(Q.hash),redirectedFrom:void 0,href:De})}let me;if(X.path!=null)me=si({},X,{path:oI(n,X.path,ue.path).path});else{const Q=si({},X.params);for(const be in Q)Q[be]==null&&delete Q[be];me=si({},X,{params:c(Q)}),ue.params=c(ue.params)}const Me=t.resolve(me,ue),Ae=X.hash||"";Me.params=d(f(Me.params));const ge=EDe(r,si({},X,{hash:bDe(Ae),path:Me.path})),_e=o.createHref(ge);return si({fullPath:ge,hash:Ae,query:r===LZ?n7e(X.query):X.query||{}},Me,{redirectedFrom:void 0,href:_e})}function m(X){return typeof X=="string"?oI(n,X,l.value.path):si({},X)}function b(X,ue){if(u!==X)return Ey(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:me}=ue;let Me=typeof me=="function"?me(X):me;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 me=u=y(X),Me=l.value,Ae=X.state,ge=X.force,_e=X.replace===!0,Q=S(me);if(Q)return k(si(m(Q),{state:typeof Q=="object"?si({},Ae,Q.state):Ae,force:ge,replace:_e}),ue||me);const be=me;be.redirectedFrom=ue;let De;return!ge&&kDe(r,Me,me)&&(De=Ey(16,{to:be,from:Me}),z(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:_e},m(pe.to),{state:typeof pe.to=="object"?si({},Ae,pe.to.state):Ae,force:ge}),ue||be)}else pe=_(be,Me,!0,_e,Ae);return M(be,Me,pe),pe})}function O(X,ue){const me=b(X,ue);return me?Promise.reject(me):Promise.resolve()}function I(X){const ue=re.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(X):X()}function P(X,ue){let me;const[Me,Ae,ge]=d7e(X,ue);me=iI(Me.reverse(),"beforeRouteLeave",X,ue);for(const Q of Me)Q.leaveGuards.forEach(be=>{me.push(sh(be,X,ue))});const _e=O.bind(null,X,ue);return me.push(_e),te(me).then(()=>{me=[];for(const Q of i.list())me.push(sh(Q,X,ue));return me.push(_e),te(me)}).then(()=>{me=iI(Ae,"beforeRouteUpdate",X,ue);for(const Q of Ae)Q.updateGuards.forEach(be=>{me.push(sh(be,X,ue))});return me.push(_e),te(me)}).then(()=>{me=[];for(const Q of ge)if(Q.beforeEnter)if(Rc(Q.beforeEnter))for(const be of Q.beforeEnter)me.push(sh(be,X,ue));else me.push(sh(Q.beforeEnter,X,ue));return me.push(_e),te(me)}).then(()=>(X.matched.forEach(Q=>Q.enterCallbacks={}),me=iI(ge,"beforeRouteEnter",X,ue,I),me.push(_e),te(me))).then(()=>{me=[];for(const Q of a.list())me.push(sh(Q,X,ue));return me.push(_e),te(me)}).catch(Q=>sf(Q,8)?Q:Promise.reject(Q))}function M(X,ue,me){s.list().forEach(Me=>I(()=>Me(X,ue,me)))}function _(X,ue,me,Me,Ae){const ge=b(X,ue);if(ge)return ge;const _e=ue===Dp,Q=E1?history.state:{};me&&(Me||_e?o.replace(X.fullPath,si({scroll:_e&&Q&&Q.scroll},Ae)):o.push(X.fullPath,Ae)),l.value=X,z(X,ue,me,_e),Z()}let R;function N(){R||(R=o.listen((X,ue,me)=>{if(!J.listening)return;const Me=y(X),Ae=S(Me);if(Ae){k(si(Ae,{replace:!0,force:!0}),Me).catch(W4);return}u=Me;const ge=l.value;E1&&NDe(_Z(ge.fullPath,me.delta),F_()),P(Me,ge).catch(_e=>sf(_e,12)?_e:sf(_e,2)?(k(si(m(_e.to),{force:!0}),Me).then(Q=>{sf(Q,20)&&!me.delta&&me.type===L3.pop&&o.go(-1,!1)}).catch(W4),Promise.reject()):(me.delta&&o.go(-me.delta,!1),H(_e,Me,ge))).then(_e=>{_e=_e||_(Me,ge,!1),_e&&(me.delta&&!sf(_e,8)?o.go(-me.delta,!1):me.type===L3.pop&&sf(_e,20)&&o.go(-1,!1)),M(Me,ge,_e)}).catch(W4)}))}let V=S2(),L=S2(),j;function H(X,ue,me){Z(X);const Me=L.list();return Me.length?Me.forEach(Ae=>Ae(X,ue,me)):console.error(X),Promise.reject(X)}function G(){return j&&l.value!==Dp?Promise.resolve():new Promise((X,ue)=>{V.add([X,ue])})}function Z(X){return j||(j=!X,N(),V.list().forEach(([ue,me])=>X?me(X):ue()),V.reset()),X}function z(X,ue,me,Me){const{scrollBehavior:Ae}=e;if(!E1||!Ae)return Promise.resolve();const ge=!me&&RDe(_Z(X.fullPath,0))||(Me||!me)&&history.state&&history.state.scroll||null;return Vt().then(()=>Ae(X,ue,ge)).then(_e=>_e&&PDe(_e)).catch(_e=>H(_e,X,ue))}const U=X=>o.go(X);let W;const re=new Set,J={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:y,options:e,push:w,replace:A,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:L.add,isReady:G,install(X){const ue=this;X.component("RouterLink",a7e),X.component("RouterView",pve),X.config.globalProperties.$router=ue,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),E1&&!W&&l.value===Dp&&(W=!0,w(o.location).catch(Ae=>{}));const me={};for(const Ae in Dp)Object.defineProperty(me,Ae,{get:()=>l.value[Ae],enumerable:!0});X.provide(U_,ue),X.provide(Yj,I_(me)),X.provide(aL,l);const Me=X.unmount;re.add(X),X.unmount=function(){re.delete(X),re.size<1&&(u=Dp,R&&R(),R=null,l.value=Dp,W=!1,j=!1),Me()}}};function te(X){return X.reduce((ue,me)=>ue.then(()=>I(me)),Promise.resolve())}return J}function d7e(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=>Sy(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Sy(u,l))||o.push(l))}return[n,r,o]}function Hl(){return un(U_)}function z_(e){return un(Yj)}const q4=()=>{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},f7e={class:"app"},p7e={key:0,class:"loading-container"},h7e={__name:"App",setup(e){const t=Y(!0);return jn(()=>{q4()?setTimeout(()=>{t.value=!1},500):t.value=!1}),(n,r)=>(F(),K("div",f7e,[t.value?(F(),K("div",p7e,r[0]||(r[0]=[x("div",{class:"loading-spinner"},[x("div",{class:"spinner"}),x("div",{class:"loading-text"},"加载中...")],-1)]))):(F(),mt(C(pve),{key:1}))]))}},Qj="/assets/1-BusD92L7.png",hve="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",gve="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==",vve="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=",mve="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==",cE="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",yve="/assets/15-5aSMwcYf.png",bve="/assets/16-CdNGEq1M.png";function wve(e,t){return function(){return e.apply(t,arguments)}}const{toString:g7e}=Object.prototype,{getPrototypeOf:Zj}=Object,{iterator:$_,toStringTag:Ave}=Symbol,j_=(e=>t=>{const n=g7e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vc=e=>(e=e.toLowerCase(),t=>j_(t)===e),H_=e=>t=>typeof t===e,{isArray:kb}=Array,F3=H_("undefined");function wC(e){return e!==null&&!F3(e)&&e.constructor!==null&&!F3(e.constructor)&&_l(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cve=Vc("ArrayBuffer");function v7e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cve(e.buffer),t}const m7e=H_("string"),_l=H_("function"),xve=H_("number"),AC=e=>e!==null&&typeof e=="object",y7e=e=>e===!0||e===!1,vS=e=>{if(j_(e)!=="object")return!1;const t=Zj(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ave in e)&&!($_ in e)},b7e=e=>{if(!AC(e)||wC(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},w7e=Vc("Date"),A7e=Vc("File"),C7e=Vc("Blob"),x7e=Vc("FileList"),S7e=e=>AC(e)&&_l(e.pipe),E7e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_l(e.append)&&((t=j_(e))==="formdata"||t==="object"&&_l(e.toString)&&e.toString()==="[object FormData]"))},k7e=Vc("URLSearchParams"),[T7e,_7e,D7e,I7e]=["ReadableStream","Request","Response","Headers"].map(Vc),O7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function CC(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),kb(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(wC(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 Sve(e,t){if(wC(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,Eve=e=>!F3(e)&&e!==Pg;function sL(){const{caseless:e}=Eve(this)&&this||{},t={},n=(r,o)=>{const i=e&&Sve(t,o)||o;vS(t[i])&&vS(r)?t[i]=sL(t[i],r):vS(r)?t[i]=sL({},r):kb(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&CC(arguments[r],n);return t}const M7e=(e,t,n,{allOwnKeys:r}={})=>(CC(t,(o,i)=>{n&&_l(o)?e[i]=wve(o,n):e[i]=o},{allOwnKeys:r}),e),P7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),N7e=(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)},R7e=(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&&Zj(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},B7e=(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},L7e=e=>{if(!e)return null;if(kb(e))return e;let t=e.length;if(!xve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},F7e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zj(Uint8Array)),U7e=(e,t)=>{const r=(e&&e[$_]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},z7e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$7e=Vc("HTMLFormElement"),j7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),HZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H7e=Vc("RegExp"),kve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};CC(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},W7e=e=>{kve(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+"'")})}})},V7e=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return kb(e)?r(e):r(String(e).split(t)),n},q7e=()=>{},G7e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function K7e(e){return!!(e&&_l(e.append)&&e[Ave]==="FormData"&&e[$_])}const Y7e=e=>{const t=new Array(10),n=(r,o)=>{if(AC(r)){if(t.indexOf(r)>=0)return;if(wC(r))return r;if(!("toJSON"in r)){t[o]=r;const i=kb(r)?[]:{};return CC(r,(a,s)=>{const l=n(a,o+1);!F3(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Q7e=Vc("AsyncFunction"),Z7e=e=>e&&(AC(e)||_l(e))&&_l(e.then)&&_l(e.catch),Tve=((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)),X7e=typeof queueMicrotask<"u"?queueMicrotask.bind(Pg):typeof process<"u"&&process.nextTick||Tve,J7e=e=>e!=null&&_l(e[$_]),hn={isArray:kb,isArrayBuffer:Cve,isBuffer:wC,isFormData:E7e,isArrayBufferView:v7e,isString:m7e,isNumber:xve,isBoolean:y7e,isObject:AC,isPlainObject:vS,isEmptyObject:b7e,isReadableStream:T7e,isRequest:_7e,isResponse:D7e,isHeaders:I7e,isUndefined:F3,isDate:w7e,isFile:A7e,isBlob:C7e,isRegExp:H7e,isFunction:_l,isStream:S7e,isURLSearchParams:k7e,isTypedArray:F7e,isFileList:x7e,forEach:CC,merge:sL,extend:M7e,trim:O7e,stripBOM:P7e,inherits:N7e,toFlatObject:R7e,kindOf:j_,kindOfTest:Vc,endsWith:B7e,toArray:L7e,forEachEntry:U7e,matchAll:z7e,isHTMLForm:$7e,hasOwnProperty:HZ,hasOwnProp:HZ,reduceDescriptors:kve,freezeMethods:W7e,toObjectSet:V7e,toCamelCase:j7e,noop:q7e,toFiniteNumber:G7e,findKey:Sve,global:Pg,isContextDefined:Eve,isSpecCompliantForm:K7e,toJSONObject:Y7e,isAsyncFn:Q7e,isThenable:Z7e,setImmediate:Tve,asap:X7e,isIterable:J7e};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 _ve=yo.prototype,Dve={};["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=>{Dve[e]={value:e}});Object.defineProperties(yo,Dve);Object.defineProperty(_ve,"isAxiosError",{value:!0});yo.from=(e,t,n,r,o,i)=>{const a=Object.create(_ve);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 e9e=null;function lL(e){return hn.isPlainObject(e)||hn.isArray(e)}function Ive(e){return hn.endsWith(e,"[]")?e.slice(0,-2):e}function WZ(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ive(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function t9e(e){return hn.isArray(e)&&!e.some(lL)}const n9e=hn.toFlatObject(hn,{},null,function(t){return/^is[A-Z]/.test(t)});function W_(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)&&t9e(v)||(hn.isFileList(v)||hn.endsWith(h,"[]"))&&(y=hn.toArray(v)))return h=Ive(h),y.forEach(function(b,w){!(hn.isUndefined(b)||b===null)&&t.append(a===!0?WZ([h],w,i):a===null?h:h+"[]",u(b))}),!1}return lL(v)?!0:(t.append(WZ(g,h,i),u(v)),!1)}const c=[],f=Object.assign(n9e,{defaultVisitor:d,convertValue:u,isVisitable:lL});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 VZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xj(e,t){this._pairs=[],e&&W_(e,this,t)}const Ove=Xj.prototype;Ove.append=function(t,n){this._pairs.push([t,n])};Ove.toString=function(t){const n=t?function(r){return t.call(this,r,VZ)}:VZ;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function r9e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mve(e,t,n){if(!t)return e;const r=n&&n.encode||r9e;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 Xj(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qZ{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 Pve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o9e=typeof URLSearchParams<"u"?URLSearchParams:Xj,i9e=typeof FormData<"u"?FormData:null,a9e=typeof Blob<"u"?Blob:null,s9e={isBrowser:!0,classes:{URLSearchParams:o9e,FormData:i9e,Blob:a9e},protocols:["http","https","file","blob","url","data"]},Jj=typeof window<"u"&&typeof document<"u",uL=typeof navigator=="object"&&navigator||void 0,l9e=Jj&&(!uL||["ReactNative","NativeScript","NS"].indexOf(uL.product)<0),u9e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c9e=Jj&&window.location.href||"http://localhost",d9e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jj,hasStandardBrowserEnv:l9e,hasStandardBrowserWebWorkerEnv:u9e,navigator:uL,origin:c9e},Symbol.toStringTag,{value:"Module"})),Fs={...d9e,...s9e};function f9e(e,t){return W_(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 p9e(e){return hn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h9e(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 Nve(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]=h9e(o[a])),!s)}if(hn.isFormData(e)&&hn.isFunction(e.entries)){const n={};return hn.forEachEntry(e,(r,o)=>{t(p9e(r),o,n,0)}),n}return null}function g9e(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 xC={transitional:Pve,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(Nve(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 f9e(t,this.formSerializer).toString();if((s=hn.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return W_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),g9e(t)):t}],transformResponse:[function(t){const n=this.transitional||xC.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=>{xC.headers[e]={}});const v9e=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"]),m9e=e=>{const t={};let n,r,o;return e&&e.split(`
  27. `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&v9e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},GZ=Symbol("internals");function E2(e){return e&&String(e).trim().toLowerCase()}function mS(e){return e===!1||e==null?e:hn.isArray(e)?e.map(mS):String(e)}function y9e(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 b9e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aI(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 w9e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A9e(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=E2(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]=mS(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())&&!b9e(t))a(m9e(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=E2(t),t){const r=hn.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return y9e(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=E2(t),t){const r=hn.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aI(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=E2(a),a){const s=hn.findKey(r,a);s&&(!n||aI(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||aI(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]=mS(o),delete n[i];return}const s=t?w9e(i):String(i).trim();s!==i&&delete n[i],n[s]=mS(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(`
  28. `)}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[GZ]=this[GZ]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=E2(a);r[s]||(A9e(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 sI(e,t){const n=this||xC,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 Rve(e){return!!(e&&e.__CANCEL__)}function Tb(e,t,n){yo.call(this,e??"canceled",yo.ERR_CANCELED,t,n),this.name="CanceledError"}hn.inherits(Tb,yo,{__CANCEL__:!0});function Bve(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 C9e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x9e(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 S9e(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 dE=(e,t,n=3)=>{let r=0;const o=x9e(50,250);return S9e(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)},KZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},YZ=e=>(...t)=>hn.asap(()=>e(...t)),E9e=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,k9e=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 T9e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _9e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lve(e,t,n){let r=!T9e(t);return e&&(r||n==!1)?_9e(e,t):t}const QZ=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(QZ(u),QZ(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 Fve=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=Mve(Lve(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&&E9e(t.url))){const u=o&&i&&k9e.read(i);u&&a.set(o,u)}return t},D9e=typeof XMLHttpRequest<"u",I9e=D9e&&function(e){return new Promise(function(n,r){const o=Fve(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};Bve(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||Pve;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]=dE(u,!0),g.addEventListener("progress",f)),l&&g.upload&&([c,p]=dE(l),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(d=b=>{g&&(r(!b||b.type?new Tb(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=C9e(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)})},O9e=(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 Tb(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}},M9e=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},P9e=async function*(e,t){for await(const n of N9e(e))yield*M9e(n,t)},N9e=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()}},ZZ=(e,t,n,r)=>{const o=P9e(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})},V_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uve=V_&&typeof ReadableStream=="function",R9e=V_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},B9e=Uve&&zve(()=>{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}),XZ=64*1024,cL=Uve&&zve(()=>hn.isReadableStream(new Response("").body)),fE={stream:cL&&(e=>e.body)};V_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fE[t]&&(fE[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 L9e=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 R9e(e)).byteLength},F9e=async(e,t)=>{const n=hn.toFiniteNumber(e.getContentLength());return n??L9e(t)},U9e=V_&&(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}=Fve(e);u=u?(u+"").toLowerCase():"text";let p=O9e([o,i&&i.toAbortSignal()],a),v;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&B9e&&n!=="get"&&n!=="head"&&(g=await F9e(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,O]=KZ(g,dE(YZ(l)));r=ZZ(A.body,XZ,k,O)}}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=cL&&(u==="stream"||u==="response");if(cL&&(s||b&&h)){const A={};["status","statusText","headers"].forEach(I=>{A[I]=m[I]});const S=hn.toFiniteNumber(m.headers.get("content-length")),[k,O]=s&&KZ(S,dE(YZ(s),!0))||[];m=new Response(ZZ(m.body,XZ,k,()=>{O&&O(),h&&h()}),A)}u=u||"text";let w=await fE[hn.findKey(fE,u)||"text"](m,e);return!b&&h&&h(),await new Promise((A,S)=>{Bve(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)}}),dL={http:e9e,xhr:I9e,fetch:U9e};hn.forEach(dL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JZ=e=>`- ${e}`,z9e=e=>hn.isFunction(e)||e===null||e===!1,$ve={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,!z9e(n)&&(r=dL[(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 :
  29. `+i.map(JZ).join(`
  30. `):" "+JZ(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:dL};function lI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tb(null,e)}function eX(e){return lI(e),e.headers=Dl.from(e.headers),e.data=sI.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$ve.getAdapter(e.adapter||xC.adapter)(e).then(function(r){return lI(e),r.data=sI.call(e,e.transformResponse,r),r.headers=Dl.from(r.headers),r},function(r){return Rve(r)||(lI(e),r&&r.response&&(r.response.data=sI.call(e,e.transformResponse,r.response),r.response.headers=Dl.from(r.response.headers))),Promise.reject(r)})}const jve="1.11.0",q_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{q_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tX={};q_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+jve+"] 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&&!tX[a]&&(tX[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}};q_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function $9e(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 yS={assertOptions:$9e,validators:q_},td=yS.validators;let Vg=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qZ,response:new qZ}}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+=`
  31. `+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&&yS.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}:yS.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),yS.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=[eX.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=eX.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=Lve(t.baseURL,t.url,t.allowAbsoluteUrls);return Mve(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 j9e=class Hve{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 Tb(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 Hve(function(o){t=o}),cancel:t}}};function H9e(e){return function(n){return e.apply(null,n)}}function W9e(e){return hn.isObject(e)&&e.isAxiosError===!0}const fL={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(fL).forEach(([e,t])=>{fL[t]=e});function Wve(e){const t=new Vg(e),n=wve(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 Wve(Sv(e,o))},n}const Xi=Wve(xC);Xi.Axios=Vg;Xi.CanceledError=Tb;Xi.CancelToken=j9e;Xi.isCancel=Rve;Xi.VERSION=jve;Xi.toFormData=W_;Xi.AxiosError=yo;Xi.Cancel=Xi.CanceledError;Xi.all=function(t){return Promise.all(t)};Xi.spread=H9e;Xi.isAxiosError=W9e;Xi.mergeConfig=Sv;Xi.AxiosHeaders=Dl;Xi.formToJSON=e=>Nve(hn.isHTMLForm(e)?new FormData(e):e);Xi.getAdapter=$ve.getAdapter;Xi.HttpStatusCode=fL;Xi.default=Xi;const{Axios:tpn,AxiosError:npn,CanceledError:rpn,isCancel:opn,CancelToken:ipn,VERSION:apn,all:spn,Cancel:lpn,isAxiosError:upn,spread:cpn,toFormData:dpn,AxiosHeaders:fpn,HttpStatusCode:ppn,formToJSON:hpn,getAdapter:gpn,mergeConfig:vpn}=Xi,G_="shudao_refresh_token",eH="shudao_token_type";function Gf(){return localStorage.getItem(G_)}function V9e(){return localStorage.getItem(G_)}function Ev(){return localStorage.getItem(eH)||"bearer"}function Vve(){return localStorage.getItem("shudao_username")||null}function q9e(e,t="bearer"){localStorage.setItem(G_,e),localStorage.setItem(eH,t)}function bS(){localStorage.removeItem(G_),localStorage.removeItem(eH),localStorage.removeItem("shudao_username")}const nX="https://aqai.shudaodsj.com:22001/api/ticket/process";let pE=null,G4=null,R1=null;try{pE=window.location.href,G4=window.location.search,R1=window.location.hash,console.log("💾 已保存原始 URL:",pE),console.log("💾 已保存原始 Search:",G4),console.log("💾 已保存原始 Hash:",R1)}catch(e){console.warn("⚠️ 保存原始 URL 失败:",e)}let m4=!1;function G9e(){console.log("🔍 === 开始获取票据参数 ==="),console.log("📍 当前完整 URL:",window.location.href),console.log("📍 当前 location.search:",window.location.search),console.log("📍 当前 location.hash:",window.location.hash),console.log("📍 保存的原始 URL:",pE),console.log("📍 保存的原始 Search:",G4),console.log("📍 保存的原始 Hash:",R1);let e="";if(G4)e=G4,console.log("✅ 从保存的原始 Search 中提取到查询参数:",e.substring(0,100));else if(R1&&R1.includes("?")){const r=R1.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&&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)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 K9e(){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),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}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[u,d]of s.entries())console.log(` - ${u}: ${d.substring(0,50)}${d.length>50?"...":""}`);let l=!1;for(const u of n)s.has(u)&&(console.log(`✅ 从 Hash 中删除参数(兼容模式): ${u}`),s.delete(u),l=!0);if(l){const u=s.toString(),d=u?`${i}?${u}`:i;console.log("📍 新的 Hash:",d),console.log("📍 当前 Hash:",window.location.hash);try{console.log("🔄 开始更新地址栏..."),window.location.hash=d,console.log("✅ 地址栏已更新(兼容模式)"),console.log("📍 新的 Hash:",window.location.hash),console.log("📍 完整 URL:",window.location.href)}catch(c){console.error("❌ 更新地址栏失败:",c);const f=t.origin+t.pathname+d;window.history.replaceState(null,"",f),console.log("✅ 使用 replaceState 更新(降级方案)")}return}}console.log("ℹ️ URL 中没有票据参数,无需清理")}catch(e){console.error("❌ 清理票据参数失败:",e),console.error("❌ 错误详情:",e.message),console.error("❌ 错误堆栈:",e.stack)}}async function Y9e(e){try{console.log("🔍 正在处理票据..."),console.log("📡 请求接口:",nX),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(nX,{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 Q9e(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 Z9e(){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 X9e(){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 pL=[];function vs(e,t){const n={level:e,time:new Date().toLocaleTimeString(),message:t};pL.push(n),console.log(`[${e.toUpperCase()}] ${t}`);try{sessionStorage.setItem("auth_debug_logs",JSON.stringify(pL))}catch(r){console.warn("无法保存调试日志:",r)}}async function J9e(){m4=!0,pL.length=0,vs("info","🚀 开始票据认证流程"),vs("info",`当前 URL: ${window.location.href}`),vs("info",`原始 URL: ${pE}`),vs("info",`User Agent: ${navigator.userAgent.substring(0,100)}...`),vs("info",`是否移动端: ${/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent)}`);try{vs("info","步骤1: 获取票据");const e=G9e();if(!e){if(vs("warning","⚠️ 未找到票据"),Z9e())return m4=!1,vs("success","✅ 本地已有令牌,使用本地令牌"),{success:!0,token:X9e(),fromCache:!0};throw vs("error","❌ 未找到票据且本地无令牌"),new Error("TICKET_NOT_FOUND")}vs("success",`✅ 成功获取票据 (长度: ${e.length})`),vs("info","步骤2: 调用后端处理票据");const{refreshToken:t,tokenType:n,username:r}=await Y9e(e);return vs("success","✅ 票据处理成功,获得 token"),vs("info","步骤3: 保存令牌到本地"),Q9e(t,n,r),vs("success",`✅ 令牌已保存 (用户: ${r||"未知"})`),vs("success","🎉 票据认证流程完成!"),m4=!1,{success:!0,token:{refreshToken:t,tokenType:n,username:r},fromTicket:!0}}catch(e){throw vs("error",`❌ 认证失败: ${e.message}`),vs("error",`错误堆栈: ${e.stack?.substring(0,200)}...`),m4=!1,e}}const no=Xi.create({baseURL:window.location.origin+"/apiv1",timeout:6e5});async function eIe(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=Gf(),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)}}no.interceptors.request.use(e=>{console.log(e,"config");const t=Gf(),n=Ev();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 eIe(i,a),e},e=>Promise.reject(e));no.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 m4?(console.log("⏳ 正在认证中,延迟处理 401 错误"),Promise.reject(e)):(console.error("❌ Token 过期或无效,需要重新登录"),bS(),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=>no.get("/recommend_question",{params:e}),submitFeedback:e=>no.post("/submit_feedback",e),getPolicyFile:e=>no.get("/get_policy_file",{params:e}),sendDeepseekMessage:e=>no.post("/send_deepseek_message",e),buildExamPrompt:e=>no.post("/exam/build_prompt",e),saveExam:e=>no.post("/save_exam",e),getExamHistory:()=>no.get("/get_exam_history"),getExamById:e=>no.get(`/get_exam/${e}`),uploadOss:e=>no.post("/oss/upload",e),getFunctionCard:e=>no.get("/get_function_card",{params:e}),getHotQuestion:e=>no.get("/get_hot_question",{params:e}),getHistoryRecord:e=>no.get("/get_history_record",{params:e}),generatePPTOutline:e=>no.post("/send_deepseek_message",e),uploadImage:e=>no.post("/oss/shudao/upload_image",e),uploadJson:e=>no.post("/oss/shudao/upload_json",e),saveQuestionModification:e=>no.post("/save_question_modification",e),reModifyQuestion:e=>no.post("/re_modify_question",e),reProduceSingleQuestion:e=>no.post("/re_produce_single_question",e),hazardDetection:e=>no.post("/hazard",e),likeAndDislike:e=>no.post("/like_and_dislike",e),getHazardHistory:e=>no.get("/get_history_recognition_record",{params:e}),getRecognitionRecordDetail:e=>no.get("/get_recognition_record_detail",{params:e}),getFileLink:e=>no.get("/get_file_link",{params:e}),getUserRecommendQuestion:e=>no.get("/get_user_recommend_question",{params:e}),deleteConversation:e=>no.post("/delete_conversation",e),deleteHistoryRecord:e=>no.post("/delete_history_record",e),deleteRecognitionRecord:e=>no.post("/delete_recognition_record",e),saveStep:e=>no.post("/save_step",e),getPPTJson:e=>no.post("/get_ppt_json",e),getThirdSceneExampleImage:e=>no.get("/get_third_scene_example_image",{params:e}),savePPTOutline:e=>no.post("/save_ppt_outline",e),submitEvaluation:e=>no.post("/submit_evaluation",e),getLatestRecognitionRecord:e=>no.get("/get_latest_recognition_record",{params:e}),saveEditDocument:e=>no.post("/save_edit_document",e),onlineSearch:e=>no.get("/online_search",{params:e}),saveOnlineSearchResult:e=>no.post("/save_online_search_result",e),intentRecognition:e=>no.post("/intent_recognition",e),streamChatWithDB:e=>no.post("/stream/chat-with-db",e),updatePolicyFileCount:e=>no.post("/policy_file_count",e),guessYouWant:e=>no.post("/guess_you_want",e),getUserDataId:e=>no.get("/get_user_data_id",{params:e}),recordTracking:e=>no.post("/tracking/record",e),getTrackingRecords:e=>no.get("/tracking/records",{params:e}),addApiMapping:e=>no.post("/tracking/api_mapping",e),getApiMappings:()=>no.get("/tracking/api_mappings")},tIe="2.11.1",rX=Symbol("INSTALLED_KEY"),qve=Symbol(),K4="el",nIe="is-",V0=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},Gve=Symbol("namespaceContextKey"),tH=e=>{const t=e||(vr()?un(Gve,Y(K4)):Y(K4));return ee(()=>C(t)||K4)},jt=(e,t)=>{const n=tH(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?`${nIe}${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 Kve=typeof global=="object"&&global&&global.Object===Object&&global,rIe=typeof self=="object"&&self&&self.Object===Object&&self,qc=Kve||rIe||Function("return this")(),qu=qc.Symbol,Yve=Object.prototype,oIe=Yve.hasOwnProperty,iIe=Yve.toString,k2=qu?qu.toStringTag:void 0;function aIe(e){var t=oIe.call(e,k2),n=e[k2];try{e[k2]=void 0;var r=!0}catch{}var o=iIe.call(e);return r&&(t?e[k2]=n:delete e[k2]),o}var sIe=Object.prototype,lIe=sIe.toString;function uIe(e){return lIe.call(e)}var cIe="[object Null]",dIe="[object Undefined]",oX=qu?qu.toStringTag:void 0;function em(e){return e==null?e===void 0?dIe:cIe:oX&&oX in Object(e)?aIe(e):uIe(e)}function Ld(e){return e!=null&&typeof e=="object"}var fIe="[object Symbol]";function K_(e){return typeof e=="symbol"||Ld(e)&&em(e)==fIe}function nH(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,iX=qu?qu.prototype:void 0,aX=iX?iX.toString:void 0;function Qve(e){if(typeof e=="string")return e;if(ll(e))return nH(e,Qve)+"";if(K_(e))return aX?aX.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pIe=/\s/;function hIe(e){for(var t=e.length;t--&&pIe.test(e.charAt(t)););return t}var gIe=/^\s+/;function vIe(e){return e&&e.slice(0,hIe(e)+1).replace(gIe,"")}function ul(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sX=NaN,mIe=/^[-+]0x[0-9a-f]+$/i,yIe=/^0b[01]+$/i,bIe=/^0o[0-7]+$/i,wIe=parseInt;function lX(e){if(typeof e=="number")return e;if(K_(e))return sX;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=vIe(e);var n=yIe.test(e);return n||bIe.test(e)?wIe(e.slice(2),n?2:8):mIe.test(e)?sX:+e}function rH(e){return e}var AIe="[object AsyncFunction]",CIe="[object Function]",xIe="[object GeneratorFunction]",SIe="[object Proxy]";function oH(e){if(!ul(e))return!1;var t=em(e);return t==CIe||t==xIe||t==AIe||t==SIe}var uI=qc["__core-js_shared__"],uX=(function(){var e=/[^.]+$/.exec(uI&&uI.keys&&uI.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function EIe(e){return!!uX&&uX in e}var kIe=Function.prototype,TIe=kIe.toString;function tm(e){if(e!=null){try{return TIe.call(e)}catch{}try{return e+""}catch{}}return""}var _Ie=/[\\^$.*+?()[\]{}|]/g,DIe=/^\[object .+?Constructor\]$/,IIe=Function.prototype,OIe=Object.prototype,MIe=IIe.toString,PIe=OIe.hasOwnProperty,NIe=RegExp("^"+MIe.call(PIe).replace(_Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RIe(e){if(!ul(e)||EIe(e))return!1;var t=oH(e)?NIe:DIe;return t.test(tm(e))}function BIe(e,t){return e?.[t]}function nm(e,t){var n=BIe(e,t);return RIe(n)?n:void 0}var hL=nm(qc,"WeakMap"),cX=Object.create,LIe=(function(){function e(){}return function(t){if(!ul(t))return{};if(cX)return cX(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function FIe(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 UIe(){}function Zve(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var zIe=800,$Ie=16,jIe=Date.now;function HIe(e){var t=0,n=0;return function(){var r=jIe(),o=$Ie-(r-n);if(n=r,o>0){if(++t>=zIe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function WIe(e){return function(){return e}}var hE=(function(){try{var e=nm(Object,"defineProperty");return e({},"",{}),e}catch{}})(),VIe=hE?function(e,t){return hE(e,"toString",{configurable:!0,enumerable:!1,value:WIe(t),writable:!0})}:rH,Xve=HIe(VIe);function qIe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Jve(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 GIe(e){return e!==e}function KIe(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function YIe(e,t,n){return t===t?KIe(e,t,n):Jve(e,GIe,n)}function QIe(e,t){var n=e==null?0:e.length;return!!n&&YIe(e,t,0)>-1}var ZIe=9007199254740991,XIe=/^(?:0|[1-9]\d*)$/;function Y_(e,t){var n=typeof e;return t=t??ZIe,!!t&&(n=="number"||n!="symbol"&&XIe.test(e))&&e>-1&&e%1==0&&e<t}function iH(e,t,n){t=="__proto__"&&hE?hE(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function SC(e,t){return e===t||e!==e&&t!==t}var JIe=Object.prototype,eOe=JIe.hasOwnProperty;function aH(e,t,n){var r=e[t];(!(eOe.call(e,t)&&SC(r,n))||n===void 0&&!(t in e))&&iH(e,t,n)}function _b(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?iH(n,s,l):aH(n,s,l)}return n}var dX=Math.max;function eme(e,t,n){return t=dX(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=dX(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),FIe(e,this,s)}}function tme(e,t){return Xve(eme(e,t,rH),e+"")}var tOe=9007199254740991;function sH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tOe}function Db(e){return e!=null&&sH(e.length)&&!oH(e)}function nOe(e,t,n){if(!ul(n))return!1;var r=typeof t;return(r=="number"?Db(n)&&Y_(t,n.length):r=="string"&&t in n)?SC(n[t],e):!1}function rOe(e){return tme(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&&nOe(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 oOe=Object.prototype;function lH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oOe;return e===n}function iOe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aOe="[object Arguments]";function fX(e){return Ld(e)&&em(e)==aOe}var nme=Object.prototype,sOe=nme.hasOwnProperty,lOe=nme.propertyIsEnumerable,U3=fX((function(){return arguments})())?fX:function(e){return Ld(e)&&sOe.call(e,"callee")&&!lOe.call(e,"callee")};function uOe(){return!1}var rme=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pX=rme&&typeof module=="object"&&module&&!module.nodeType&&module,cOe=pX&&pX.exports===rme,hX=cOe?qc.Buffer:void 0,dOe=hX?hX.isBuffer:void 0,z3=dOe||uOe,fOe="[object Arguments]",pOe="[object Array]",hOe="[object Boolean]",gOe="[object Date]",vOe="[object Error]",mOe="[object Function]",yOe="[object Map]",bOe="[object Number]",wOe="[object Object]",AOe="[object RegExp]",COe="[object Set]",xOe="[object String]",SOe="[object WeakMap]",EOe="[object ArrayBuffer]",kOe="[object DataView]",TOe="[object Float32Array]",_Oe="[object Float64Array]",DOe="[object Int8Array]",IOe="[object Int16Array]",OOe="[object Int32Array]",MOe="[object Uint8Array]",POe="[object Uint8ClampedArray]",NOe="[object Uint16Array]",ROe="[object Uint32Array]",ji={};ji[TOe]=ji[_Oe]=ji[DOe]=ji[IOe]=ji[OOe]=ji[MOe]=ji[POe]=ji[NOe]=ji[ROe]=!0;ji[fOe]=ji[pOe]=ji[EOe]=ji[hOe]=ji[kOe]=ji[gOe]=ji[vOe]=ji[mOe]=ji[yOe]=ji[bOe]=ji[wOe]=ji[AOe]=ji[COe]=ji[xOe]=ji[SOe]=!1;function BOe(e){return Ld(e)&&sH(e.length)&&!!ji[em(e)]}function uH(e){return function(t){return e(t)}}var ome=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Y4=ome&&typeof module=="object"&&module&&!module.nodeType&&module,LOe=Y4&&Y4.exports===ome,cI=LOe&&Kve.process,ky=(function(){try{var e=Y4&&Y4.require&&Y4.require("util").types;return e||cI&&cI.binding&&cI.binding("util")}catch{}})(),gX=ky&&ky.isTypedArray,cH=gX?uH(gX):BOe,FOe=Object.prototype,UOe=FOe.hasOwnProperty;function ime(e,t){var n=ll(e),r=!n&&U3(e),o=!n&&!r&&z3(e),i=!n&&!r&&!o&&cH(e),a=n||r||o||i,s=a?iOe(e.length,String):[],l=s.length;for(var u in e)(t||UOe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Y_(u,l)))&&s.push(u);return s}function ame(e,t){return function(n){return e(t(n))}}var zOe=ame(Object.keys,Object),$Oe=Object.prototype,jOe=$Oe.hasOwnProperty;function HOe(e){if(!lH(e))return zOe(e);var t=[];for(var n in Object(e))jOe.call(e,n)&&n!="constructor"&&t.push(n);return t}function EC(e){return Db(e)?ime(e):HOe(e)}function WOe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VOe=Object.prototype,qOe=VOe.hasOwnProperty;function GOe(e){if(!ul(e))return WOe(e);var t=lH(e),n=[];for(var r in e)r=="constructor"&&(t||!qOe.call(e,r))||n.push(r);return n}function kC(e){return Db(e)?ime(e,!0):GOe(e)}var KOe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YOe=/^\w*$/;function dH(e,t){if(ll(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||K_(e)?!0:YOe.test(e)||!KOe.test(e)||t!=null&&e in Object(t)}var $3=nm(Object,"create");function QOe(){this.__data__=$3?$3(null):{},this.size=0}function ZOe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XOe="__lodash_hash_undefined__",JOe=Object.prototype,eMe=JOe.hasOwnProperty;function tMe(e){var t=this.__data__;if($3){var n=t[e];return n===XOe?void 0:n}return eMe.call(t,e)?t[e]:void 0}var nMe=Object.prototype,rMe=nMe.hasOwnProperty;function oMe(e){var t=this.__data__;return $3?t[e]!==void 0:rMe.call(t,e)}var iMe="__lodash_hash_undefined__";function aMe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$3&&t===void 0?iMe:t,this}function kv(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])}}kv.prototype.clear=QOe;kv.prototype.delete=ZOe;kv.prototype.get=tMe;kv.prototype.has=oMe;kv.prototype.set=aMe;function sMe(){this.__data__=[],this.size=0}function Q_(e,t){for(var n=e.length;n--;)if(SC(e[n][0],t))return n;return-1}var lMe=Array.prototype,uMe=lMe.splice;function cMe(e){var t=this.__data__,n=Q_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uMe.call(t,n,1),--this.size,!0}function dMe(e){var t=this.__data__,n=Q_(t,e);return n<0?void 0:t[n][1]}function fMe(e){return Q_(this.__data__,e)>-1}function pMe(e,t){var n=this.__data__,r=Q_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,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=sMe;hp.prototype.delete=cMe;hp.prototype.get=dMe;hp.prototype.has=fMe;hp.prototype.set=pMe;var j3=nm(qc,"Map");function hMe(){this.size=0,this.__data__={hash:new kv,map:new(j3||hp),string:new kv}}function gMe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Z_(e,t){var n=e.__data__;return gMe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vMe(e){var t=Z_(this,e).delete(e);return this.size-=t?1:0,t}function mMe(e){return Z_(this,e).get(e)}function yMe(e){return Z_(this,e).has(e)}function bMe(e,t){var n=Z_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function gp(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])}}gp.prototype.clear=hMe;gp.prototype.delete=vMe;gp.prototype.get=mMe;gp.prototype.has=yMe;gp.prototype.set=bMe;var wMe="Expected a function";function X_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wMe);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(X_.Cache||gp),n}X_.Cache=gp;var AMe=500;function CMe(e){var t=X_(e,function(r){return n.size===AMe&&n.clear(),r}),n=t.cache;return t}var xMe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SMe=/\\(\\)?/g,EMe=CMe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xMe,function(n,r,o,i){t.push(o?i.replace(SMe,"$1"):r||n)}),t});function kMe(e){return e==null?"":Qve(e)}function Ib(e,t){return ll(e)?e:dH(e,t)?[e]:EMe(kMe(e))}function Ob(e){if(typeof e=="string"||K_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function J_(e,t){t=Ib(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ob(t[n++])];return n&&n==r?e:void 0}function Yi(e,t,n){var r=e==null?void 0:J_(e,t);return r===void 0?n:r}function fH(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var vX=qu?qu.isConcatSpreadable:void 0;function TMe(e){return ll(e)||U3(e)||!!(vX&&e&&e[vX])}function TC(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=TMe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?TC(s,t-1,n,r,o):fH(o,s):r||(o[o.length]=s)}return o}function sme(e){var t=e==null?0:e.length;return t?TC(e,1):[]}function lme(e){return Xve(eme(e,void 0,sme),e+"")}var pH=ame(Object.getPrototypeOf,Object),_Me="[object Object]",DMe=Function.prototype,IMe=Object.prototype,ume=DMe.toString,OMe=IMe.hasOwnProperty,MMe=ume.call(Object);function cme(e){if(!Ld(e)||em(e)!=_Me)return!1;var t=pH(e);if(t===null)return!0;var n=OMe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ume.call(n)==MMe}function PMe(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 NMe(){this.__data__=new hp,this.size=0}function RMe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function BMe(e){return this.__data__.get(e)}function LMe(e){return this.__data__.has(e)}var FMe=200;function UMe(e,t){var n=this.__data__;if(n instanceof hp){var r=n.__data__;if(!j3||r.length<FMe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gp(r)}return n.set(e,t),this.size=n.size,this}function Ec(e){var t=this.__data__=new hp(e);this.size=t.size}Ec.prototype.clear=NMe;Ec.prototype.delete=RMe;Ec.prototype.get=BMe;Ec.prototype.has=LMe;Ec.prototype.set=UMe;function zMe(e,t){return e&&_b(t,EC(t),e)}function $Me(e,t){return e&&_b(t,kC(t),e)}var dme=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mX=dme&&typeof module=="object"&&module&&!module.nodeType&&module,jMe=mX&&mX.exports===dme,yX=jMe?qc.Buffer:void 0,bX=yX?yX.allocUnsafe:void 0;function fme(e,t){if(t)return e.slice();var n=e.length,r=bX?bX(n):new e.constructor(n);return e.copy(r),r}function HMe(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 pme(){return[]}var WMe=Object.prototype,VMe=WMe.propertyIsEnumerable,wX=Object.getOwnPropertySymbols,hH=wX?function(e){return e==null?[]:(e=Object(e),HMe(wX(e),function(t){return VMe.call(e,t)}))}:pme;function qMe(e,t){return _b(e,hH(e),t)}var GMe=Object.getOwnPropertySymbols,hme=GMe?function(e){for(var t=[];e;)fH(t,hH(e)),e=pH(e);return t}:pme;function KMe(e,t){return _b(e,hme(e),t)}function gme(e,t,n){var r=t(e);return ll(e)?r:fH(r,n(e))}function gL(e){return gme(e,EC,hH)}function vme(e){return gme(e,kC,hme)}var vL=nm(qc,"DataView"),mL=nm(qc,"Promise"),Z1=nm(qc,"Set"),AX="[object Map]",YMe="[object Object]",CX="[object Promise]",xX="[object Set]",SX="[object WeakMap]",EX="[object DataView]",QMe=tm(vL),ZMe=tm(j3),XMe=tm(mL),JMe=tm(Z1),ePe=tm(hL),gc=em;(vL&&gc(new vL(new ArrayBuffer(1)))!=EX||j3&&gc(new j3)!=AX||mL&&gc(mL.resolve())!=CX||Z1&&gc(new Z1)!=xX||hL&&gc(new hL)!=SX)&&(gc=function(e){var t=em(e),n=t==YMe?e.constructor:void 0,r=n?tm(n):"";if(r)switch(r){case QMe:return EX;case ZMe:return AX;case XMe:return CX;case JMe:return xX;case ePe:return SX}return t});var tPe=Object.prototype,nPe=tPe.hasOwnProperty;function rPe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&nPe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var gE=qc.Uint8Array;function gH(e){var t=new e.constructor(e.byteLength);return new gE(t).set(new gE(e)),t}function oPe(e,t){var n=t?gH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iPe=/\w*$/;function aPe(e){var t=new e.constructor(e.source,iPe.exec(e));return t.lastIndex=e.lastIndex,t}var kX=qu?qu.prototype:void 0,TX=kX?kX.valueOf:void 0;function sPe(e){return TX?Object(TX.call(e)):{}}function mme(e,t){var n=t?gH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var lPe="[object Boolean]",uPe="[object Date]",cPe="[object Map]",dPe="[object Number]",fPe="[object RegExp]",pPe="[object Set]",hPe="[object String]",gPe="[object Symbol]",vPe="[object ArrayBuffer]",mPe="[object DataView]",yPe="[object Float32Array]",bPe="[object Float64Array]",wPe="[object Int8Array]",APe="[object Int16Array]",CPe="[object Int32Array]",xPe="[object Uint8Array]",SPe="[object Uint8ClampedArray]",EPe="[object Uint16Array]",kPe="[object Uint32Array]";function TPe(e,t,n){var r=e.constructor;switch(t){case vPe:return gH(e);case lPe:case uPe:return new r(+e);case mPe:return oPe(e,n);case yPe:case bPe:case wPe:case APe:case CPe:case xPe:case SPe:case EPe:case kPe:return mme(e,n);case cPe:return new r;case dPe:case hPe:return new r(e);case fPe:return aPe(e);case pPe:return new r;case gPe:return sPe(e)}}function yme(e){return typeof e.constructor=="function"&&!lH(e)?LIe(pH(e)):{}}var _Pe="[object Map]";function DPe(e){return Ld(e)&&gc(e)==_Pe}var _X=ky&&ky.isMap,IPe=_X?uH(_X):DPe,OPe="[object Set]";function MPe(e){return Ld(e)&&gc(e)==OPe}var DX=ky&&ky.isSet,PPe=DX?uH(DX):MPe,NPe=1,RPe=2,BPe=4,bme="[object Arguments]",LPe="[object Array]",FPe="[object Boolean]",UPe="[object Date]",zPe="[object Error]",wme="[object Function]",$Pe="[object GeneratorFunction]",jPe="[object Map]",HPe="[object Number]",Ame="[object Object]",WPe="[object RegExp]",VPe="[object Set]",qPe="[object String]",GPe="[object Symbol]",KPe="[object WeakMap]",YPe="[object ArrayBuffer]",QPe="[object DataView]",ZPe="[object Float32Array]",XPe="[object Float64Array]",JPe="[object Int8Array]",eNe="[object Int16Array]",tNe="[object Int32Array]",nNe="[object Uint8Array]",rNe="[object Uint8ClampedArray]",oNe="[object Uint16Array]",iNe="[object Uint32Array]",Mi={};Mi[bme]=Mi[LPe]=Mi[YPe]=Mi[QPe]=Mi[FPe]=Mi[UPe]=Mi[ZPe]=Mi[XPe]=Mi[JPe]=Mi[eNe]=Mi[tNe]=Mi[jPe]=Mi[HPe]=Mi[Ame]=Mi[WPe]=Mi[VPe]=Mi[qPe]=Mi[GPe]=Mi[nNe]=Mi[rNe]=Mi[oNe]=Mi[iNe]=!0;Mi[zPe]=Mi[wme]=Mi[KPe]=!1;function X1(e,t,n,r,o,i){var a,s=t&NPe,l=t&RPe,u=t&BPe;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=rPe(e),!s)return Zve(e,a)}else{var c=gc(e),f=c==wme||c==$Pe;if(z3(e))return fme(e,s);if(c==Ame||c==bme||f&&!o){if(a=l||f?{}:yme(e),!s)return l?KMe(e,$Me(a,e)):qMe(e,zMe(a,e))}else{if(!Mi[c])return o?e:{};a=TPe(e,c,s)}}i||(i=new Ec);var p=i.get(e);if(p)return p;i.set(e,a),PPe(e)?e.forEach(function(g){a.add(X1(g,t,n,g,e,i))}):IPe(e)&&e.forEach(function(g,y){a.set(y,X1(g,t,n,y,e,i))});var v=u?l?vme:gL:l?kC:EC,h=d?void 0:v(e);return qIe(h||e,function(g,y){h&&(y=g,g=e[y]),aH(a,y,X1(g,t,n,y,e,i))}),a}var aNe=4;function IX(e){return X1(e,aNe)}var sNe=1,lNe=4;function vE(e){return X1(e,sNe|lNe)}var uNe="__lodash_hash_undefined__";function cNe(e){return this.__data__.set(e,uNe),this}function dNe(e){return this.__data__.has(e)}function H3(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new gp;++t<n;)this.add(e[t])}H3.prototype.add=H3.prototype.push=cNe;H3.prototype.has=dNe;function fNe(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 Cme(e,t){return e.has(t)}var pNe=1,hNe=2;function xme(e,t,n,r,o,i){var a=n&pNe,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&hNe?new H3: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(!fNe(t,function(y,m){if(!Cme(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 gNe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function vH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var vNe=1,mNe=2,yNe="[object Boolean]",bNe="[object Date]",wNe="[object Error]",ANe="[object Map]",CNe="[object Number]",xNe="[object RegExp]",SNe="[object Set]",ENe="[object String]",kNe="[object Symbol]",TNe="[object ArrayBuffer]",_Ne="[object DataView]",OX=qu?qu.prototype:void 0,dI=OX?OX.valueOf:void 0;function DNe(e,t,n,r,o,i,a){switch(n){case _Ne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TNe:return!(e.byteLength!=t.byteLength||!i(new gE(e),new gE(t)));case yNe:case bNe:case CNe:return SC(+e,+t);case wNe:return e.name==t.name&&e.message==t.message;case xNe:case ENe:return e==t+"";case ANe:var s=gNe;case SNe:var l=r&vNe;if(s||(s=vH),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=mNe,a.set(e,t);var d=xme(s(e),s(t),r,o,i,a);return a.delete(e),d;case kNe:if(dI)return dI.call(e)==dI.call(t)}return!1}var INe=1,ONe=Object.prototype,MNe=ONe.hasOwnProperty;function PNe(e,t,n,r,o,i){var a=n&INe,s=gL(e),l=s.length,u=gL(t),d=u.length;if(l!=d&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in t:MNe.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 NNe=1,MX="[object Arguments]",PX="[object Array]",fx="[object Object]",RNe=Object.prototype,NX=RNe.hasOwnProperty;function BNe(e,t,n,r,o,i){var a=ll(e),s=ll(t),l=a?PX:gc(e),u=s?PX:gc(t);l=l==MX?fx:l,u=u==MX?fx:u;var d=l==fx,c=u==fx,f=l==u;if(f&&z3(e)){if(!z3(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new Ec),a||cH(e)?xme(e,t,n,r,o,i):DNe(e,t,l,n,r,o,i);if(!(n&NNe)){var p=d&&NX.call(e,"__wrapped__"),v=c&&NX.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),PNe(e,t,n,r,o,i)):!1}function eD(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ld(e)&&!Ld(t)?e!==e&&t!==t:BNe(e,t,n,r,eD,o)}var LNe=1,FNe=2;function UNe(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?eD(u,l,LNe|FNe,r,d):c))return!1}}return!0}function Sme(e){return e===e&&!ul(e)}function zNe(e){for(var t=EC(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Sme(o)]}return t}function Eme(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function $Ne(e){var t=zNe(e);return t.length==1&&t[0][2]?Eme(t[0][0],t[0][1]):function(n){return n===e||UNe(n,e,t)}}function jNe(e,t){return e!=null&&t in Object(e)}function HNe(e,t,n){t=Ib(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ob(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&&sH(o)&&Y_(a,o)&&(ll(e)||U3(e)))}function kme(e,t){return e!=null&&HNe(e,t,jNe)}var WNe=1,VNe=2;function qNe(e,t){return dH(e)&&Sme(t)?Eme(Ob(e),t):function(n){var r=Yi(n,e);return r===void 0&&r===t?kme(n,e):eD(t,r,WNe|VNe)}}function GNe(e){return function(t){return t?.[e]}}function KNe(e){return function(t){return J_(t,e)}}function YNe(e){return dH(e)?GNe(Ob(e)):KNe(e)}function Tme(e){return typeof e=="function"?e:e==null?rH:typeof e=="object"?ll(e)?qNe(e[0],e[1]):$Ne(e):YNe(e)}function QNe(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 _me=QNe();function ZNe(e,t){return e&&_me(e,t,EC)}function XNe(e,t){return function(n,r){if(n==null)return n;if(!Db(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 JNe=XNe(ZNe),fI=function(){return qc.Date.now()},eRe="Expected a function",tRe=Math.max,nRe=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(eRe);t=lX(t)||0,ul(n)&&(d=!!n.leading,c="maxWait"in n,i=c?tRe(lX(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(S){var k=r,O=o;return r=o=void 0,u=S,a=e.apply(O,k),a}function v(S){return u=S,s=setTimeout(y,t),d?p(S):a}function h(S){var k=S-l,O=S-u,I=t-k;return c?nRe(I,i-O):I}function g(S){var k=S-l,O=S-u;return l===void 0||k>=t||k<0||c&&O>=i}function y(){var S=fI();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(fI())}function A(){var S=fI(),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 yL(e,t,n){(n!==void 0&&!SC(e[t],n)||n===void 0&&!(t in e))&&iH(e,t,n)}function Dme(e){return Ld(e)&&Db(e)}function bL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function rRe(e){return _b(e,kC(e))}function oRe(e,t,n,r,o,i,a){var s=bL(e,n),l=bL(t,n),u=a.get(l);if(u){yL(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&&z3(l),v=!f&&!p&&cH(l);d=l,f||p||v?ll(s)?d=s:Dme(s)?d=Zve(s):p?(c=!1,d=fme(l,!0)):v?(c=!1,d=mme(l,!0)):d=[]:cme(l)||U3(l)?(d=s,U3(s)?d=rRe(s):(!ul(s)||oH(s))&&(d=yme(l))):c=!1}c&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),yL(e,n,d)}function Ime(e,t,n,r,o){e!==t&&_me(t,function(i,a){if(o||(o=new Ec),ul(i))oRe(e,t,a,n,Ime,r,o);else{var s=r?r(bL(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),yL(e,a,s)}},kC)}function iRe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ome(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return Jve(e,Tme(t),o,!0)}function aRe(e,t){var n=-1,r=Db(e)?Array(e.length):[];return JNe(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function sRe(e,t){var n=ll(e)?nH:aRe;return n(e,Tme(t))}function Mme(e,t){return TC(sRe(e,t),1)}var lRe=1/0;function uRe(e){var t=e==null?0:e.length;return t?TC(e,lRe):[]}function W3(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 cRe(e,t){return t.length<2?e:J_(e,PMe(t,0,-1))}function ca(e,t){return eD(e,t)}function Zi(e){return e==null}function _C(e){return e===null}function dRe(e){return e===void 0}var Pme=rOe(function(e,t,n){Ime(e,t,n)});function fRe(e,t){return t=Ib(t,e),e=cRe(e,t),e==null||delete e[Ob(iRe(t))]}function pRe(e){return cme(e)?void 0:e}var hRe=1,gRe=2,vRe=4,Nme=lme(function(e,t){var n={};if(e==null)return n;var r=!1;t=nH(t,function(i){return i=Ib(i,e),r||(r=i.length>1),i}),_b(e,vme(e),n),r&&(n=X1(n,hRe|gRe|vRe,pRe));for(var o=t.length;o--;)fRe(n,t[o]);return n});function Rme(e,t,n,r){if(!ul(e))return e;t=Ib(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Ob(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:Y_(t[o+1])?[]:{})}aH(s,l,u),s=s[l]}return e}function mRe(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=J_(e,a);n(s,a)&&Rme(i,Ib(a,e),s)}return i}function yRe(e,t){return mRe(e,t,function(n,r){return kme(e,r)})}var ru=lme(function(e,t){return e==null?{}:yRe(e,t)});function bRe(e,t,n){return e==null?e:Rme(e,t,n)}var wRe="Expected a function";function qg(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(wRe);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 ARe=1/0,CRe=Z1&&1/vH(new Z1([,-0]))[1]==ARe?function(e){return new Z1(e)}:UIe,xRe=200;function SRe(e,t,n){var r=-1,o=QIe,i=e.length,a=!0,s=[],l=s;if(i>=xRe){var u=CRe(e);if(u)return vH(u);a=!1,o=Cme,l=new H3}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 pI=tme(function(e){return SRe(TC(e,1,Dme,!0))});const zr=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),ERe=e=>Dn(e)?!Number.isNaN(Number(e)):!1,DC=e=>e===window;var kRe=Object.defineProperty,TRe=Object.defineProperties,_Re=Object.getOwnPropertyDescriptors,RX=Object.getOwnPropertySymbols,DRe=Object.prototype.hasOwnProperty,IRe=Object.prototype.propertyIsEnumerable,BX=(e,t,n)=>t in e?kRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ORe=(e,t)=>{for(var n in t||(t={}))DRe.call(t,n)&&BX(e,n,t[n]);if(RX)for(var n of RX(t))IRe.call(t,n)&&BX(e,n,t[n]);return e},MRe=(e,t)=>TRe(e,_Re(t));function mE(e,t){var n;const r=Uo();return Cs(()=>{r.value=e()},MRe(ORe({},t),{flush:(n=void 0)!=null?n:"sync"})),xb(r)}var LX;const Kr=typeof window<"u",PRe=e=>typeof e<"u",wL=e=>typeof e=="function",NRe=e=>typeof e=="string",Bf=()=>{},yE=Kr&&((LX=window?.navigator)==null?void 0:LX.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function n0(e){return typeof e=="function"?e():C(e)}function Bme(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 RRe(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 BRe(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 LRe(e){return e}function FRe(e,t){let n,r,o;const i=Y(!0),a=()=>{i.value=!0,o()};Ct(e,a,{flush:"sync"});const s=wL(t)?t:t.get,l=wL(t)?void 0:t.set,u=CTe((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 Mb(e){return L0e()?(F0e(e),!0):!1}function URe(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 zRe(e){return URe(ee(e))}function $Re(e,t=200,n={}){return Bme(RRe(t,n),e)}function jRe(e,t=200,n={}){const r=Y(e.value),o=$Re(()=>{r.value=e.value},t,n);return Ct(e,()=>o()),r}function Lme(e,t=200,n=!1,r=!0,o=!1){return Bme(BRe(t,n,r,o),e)}function mH(e,t=!0){vr()?jn(e):t?e():Vt(e)}function Tv(e,t,n={}){const{immediate:r=!0}=n,o=Y(!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()),Mb(s),{isPending:xb(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,HRe=Kr?window.document:void 0;function Mo(...e){let t,n,r,o;if(NRe(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=Ct(()=>[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 Mb(u),u}let FX=!1;function yH(e,t,n={}){const{window:r=Kd,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;yE&&!FX&&(FX=!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 WRe(e={}){var t;const{window:n=Kd}=e,r=(t=e.document)!=null?t:n?.document,o=FRe(()=>null,()=>r?.activeElement);return n&&(Mo(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),Mo(n,"focus",o.trigger,!0)),o}function bH(e,t=!1){const n=Y(),r=()=>n.value=!!e();return r(),mH(r,t),n}function VRe(e){return JSON.parse(JSON.stringify(e))}const UX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zX="__vueuse_ssr_handlers__";UX[zX]=UX[zX]||{};function qRe(e,t,{window:n=Kd,initialValue:r=""}={}){const o=Y(r),i=ee(()=>{var a;return Sa(t)||((a=n?.document)==null?void 0:a.documentElement)});return Ct([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}),Ct(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(n0(e),a)}),o}function GRe({document:e=HRe}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Mo(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $X=Object.getOwnPropertySymbols,KRe=Object.prototype.hasOwnProperty,YRe=Object.prototype.propertyIsEnumerable,QRe=(e,t)=>{var n={};for(var r in e)KRe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$X)for(var r of $X(e))t.indexOf(r)<0&&YRe.call(e,r)&&(n[r]=e[r]);return n};function li(e,t,n={}){const r=n,{window:o=Kd}=r,i=QRe(r,["window"]);let a;const s=bH(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=Ct(()=>Sa(e),c=>{l(),s.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Mb(d),{isSupported:s,stop:d}}function jX(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=Y(0),s=Y(0),l=Y(0),u=Y(0),d=Y(0),c=Y(0),f=Y(0),p=Y(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),Ct(()=>Sa(e),h=>!h&&v()),o&&Mo("scroll",v,{capture:!0,passive:!0}),r&&Mo("resize",v,{passive:!0}),mH(()=>{i&&v()}),{height:a,bottom:s,left:l,right:u,top:d,width:c,x:f,y:p,update:v}}function ZRe(e,t={width:0,height:0},n={}){const{window:r=Kd,box:o="content-box"}=n,i=ee(()=>{var l,u;return(u=(l=Sa(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),a=Y(t.width),s=Y(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),Ct(()=>Sa(e),l=>{a.value=l?t.width:0,s.value=l?t.height:0}),{width:a,height:s}}function XRe(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:i=.1,window:a=Kd}=n,s=bH(()=>a&&"IntersectionObserver"in a);let l=Bf;const u=s.value?Ct(()=>({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 Mb(d),{isSupported:s,stop:d}}var HX=Object.getOwnPropertySymbols,JRe=Object.prototype.hasOwnProperty,eBe=Object.prototype.propertyIsEnumerable,tBe=(e,t)=>{var n={};for(var r in e)JRe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&HX)for(var r of HX(e))t.indexOf(r)<0&&eBe.call(e,r)&&(n[r]=e[r]);return n};function Fme(e,t,n={}){const r=n,{window:o=Kd}=r,i=tBe(r,["window"]);let a;const s=bH(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=Ct(()=>Sa(e),c=>{l(),s.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,i))},{immediate:!0}),d=()=>{l(),u()};return Mb(d),{isSupported:s,stop:d}}var WX;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(WX||(WX={}));var nBe=Object.defineProperty,VX=Object.getOwnPropertySymbols,rBe=Object.prototype.hasOwnProperty,oBe=Object.prototype.propertyIsEnumerable,qX=(e,t,n)=>t in e?nBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iBe=(e,t)=>{for(var n in t||(t={}))rBe.call(t,n)&&qX(e,n,t[n]);if(VX)for(var n of VX(t))oBe.call(t,n)&&qX(e,n,t[n]);return e};const aBe={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]};iBe({linear:LRe},aBe);function Ume(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?wL(s)?s(y):VRe(y):y,g=()=>PRe(e[t])?h(e[t]):c;if(l){const y=g(),m=Y(y);return Ct(()=>e[t],b=>m.value=h(b)),Ct(m,b=>{(b!==e[t]||d)&&p(v,b)},{deep:d}),m}else return ee({get(){return g()},set(y){p(v,y)}})}function sBe({window:e=Kd}={}){if(!e)return Y(!1);const t=Y(e.document.hasFocus());return Mo(e,"blur",()=>{t.value=!1}),Mo(e,"focus",()=>{t.value=!0}),t}function lBe(e={}){const{window:t=Kd,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=Y(n),s=Y(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(),mH(l),Mo("resize",l,{passive:!0}),o&&Mo("orientationchange",l,{passive:!0}),{width:a,height:s}}const GX={current:0},KX=Y(0),zme=2e3,YX=Symbol("elZIndexContextKey"),$me=Symbol("zIndexContextKey"),Pb=e=>{const t=vr()?un(YX,GX):GX,n=e||(vr()?un($me,void 0):void 0),r=ee(()=>{const a=C(n);return Ln(a)?a:zme}),o=ee(()=>r.value+KX.value),i=()=>(t.current++,KX.value=t.current,o.value);return!Kr&&un(YX),{initialZIndex:r,currentZIndex:o,nextZIndex:i}};var uBe={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 cBe=e=>(t,n)=>dBe(t,n,C(e)),dBe=(e,t,n)=>Yi(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t?.[o])!=null?i:`{${o}}`}`}),fBe=e=>{const t=ee(()=>C(e).name),n=Ro(e)?e:Y(e);return{lang:t,locale:n,t:cBe(e)}},jme=Symbol("localeContextKey"),Hr=e=>{const t=e||un(jme,Y());return fBe(ee(()=>t.value||uBe))},Hme="__epPropKey",lt=e=>e,pBe=e=>ar(e)&&!!e[Hme],Gc=(e,t)=>{if(!ar(e)||pBe(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(", ");T_e(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[Hme]:!0};return Zr(e,"default")&&(l.default=o),l},Yt=e=>W3(Object.entries(e).map(([t,n])=>[t,Gc(n,t)])),Yd=["","default","small","large"],ba=Gc({type:String,values:Yd,required:!1}),Wme=Symbol("size"),Vme=()=>{const e=un(Wme,{});return ee(()=>C(e.size)||"")},qme=Symbol("emptyValuesContextKey"),hBe=["",void 0,null],gBe=void 0,rm=Yt({emptyValues:Array,valueOnClear:{type:lt([String,Number,Boolean,Function]),default:void 0,validator:e=>Pn(e)?!e():!e}}),IC=(e,t)=>{const n=vr()?un(qme,Y({})):Y({}),r=ee(()=>e.emptyValues||n.value.emptyValues||hBe),o=ee(()=>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:gBe),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},Ty=e=>Object.keys(e),Gme=e=>Object.entries(e),Q4=(e,t,n)=>({get value(){return Yi(e,t,n)},set value(r){bRe(e,t,r)}}),bE=Y();function Nb(e,t=void 0){const n=vr()?un(qve,bE):bE;return e?ee(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function tD(e,t){const n=Nb(),r=jt(e,ee(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||K4})),o=Hr(ee(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Pb(ee(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||zme})),a=ee(()=>{var s;return C(t)||((s=n.value)==null?void 0:s.size)||""});return wH(ee(()=>C(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const wH=(e,t,n=!1)=>{var r;const o=!!vr(),i=o?Nb():void 0,a=(r=t?.provide)!=null?r:o?Sr:void 0;if(!a)return;const s=ee(()=>{const l=C(e);return i?.value?vBe(i.value,l):l});return a(qve,s),a(jme,ee(()=>s.value.locale)),a(Gve,ee(()=>s.value.namespace)),a($me,ee(()=>s.value.zIndex)),a(Wme,{size:ee(()=>s.value.size||"")}),a(qme,ee(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!bE.value)&&(bE.value=s.value),s},vBe=(e,t)=>{const n=[...new Set([...Ty(e),...Ty(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},mBe=(e=[])=>({version:tIe,install:(n,r)=>{n[rX]||(n[rX]=!0,e.forEach(o=>n.use(o)),r&&wH(r,n,!0))}}),Gn="update:modelValue",Tr="change",ma="input",yBe=Yt({zIndex:{type:lt([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),bBe={scroll:({scrollTop:e,fixed:t})=>Ln(e)&&Co(t),[Tr]:e=>Co(e)};var en=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function wBe(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),_v=e=>Kr?window.cancelAnimationFrame(e):clearTimeout(e),Kme=(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(...Kme(t))},$s=(e,t)=>{!e||!t.trim()||e.classList.remove(...Kme(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]}},Yme=(e,t,n)=>{if(!(!e||!t))if(ar(t))Gme(t).forEach(([r,o])=>Yme(e,r,o));else{const r=sl(t);e.style[r]=n}};function _i(e,t="px"){if(!e)return"";if(Ln(e)||ERe(e))return`${e}${t}`;if(Dn(e))return e}const ABe=(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))},AH=(e,t)=>{if(!Kr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(ABe(n,t))return n;n=n.parentNode}return n};let px;const Qme=e=>{var t;if(!Kr)return 0;if(px!==void 0)return px;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),px=r-i,px};function CH(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 CBe(e,t,n,r,o){const i=Date.now();let a;const s=()=>{const u=Date.now()-i,d=wBe(u>r?r:u,t,n,r);DC(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u<r?a=r0(s):Pn(o)&&o()};return s(),()=>{a&&_v(a)}}const QX=(e,t)=>DC(t)?e.ownerDocument.documentElement:t,ZX=e=>DC(e)?window.scrollY:e.scrollTop;class xBe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ji(e,t){throw new xBe(`[${e}] ${t}`)}const Zme="ElAffix",SBe=et({name:Zme}),EBe=et({...SBe,props:yBe,emits:bBe,setup(e,{expose:t,emit:n}){const r=e,o=jt("affix"),i=Uo(),a=Uo(),s=Uo(),{height:l}=lBe(),{height:u,width:d,top:c,bottom:f,update:p}=jX(a,{windowScroll:!1}),v=jX(i),h=Y(!1),g=Y(0),y=Y(0),m=ee(()=>({height:h.value?`${u.value}px`:"",width:h.value?`${d.value}px`:""})),b=ee(()=>{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:O,offset:I}=r,P=I+u.value;if(k==="top")if(O){const M=v.bottom.value-P;h.value=I>c.value&&v.bottom.value>0,y.value=M<0?M:0}else h.value=I>c.value;else if(O){const M=l.value-v.top.value-P;h.value=l.value-I<f.value&&l.value>v.top.value,y.value=M<0?-M:0}else h.value=l.value-I<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 Ct(h,k=>n(Tr,k)),jn(()=>{var k;r.target?(i.value=(k=document.querySelector(r.target))!=null?k:void 0,i.value||Ji(Zme,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=AH(a.value,!0),p()}),Mo(s,"scroll",S),Cs(w),t({update:w,updateRoot:A}),(k,O)=>(F(),K("div",{ref_key:"root",ref:a,class:oe(C(o).b()),style:Jt(C(m))},[x("div",{class:oe({[C(o).m("fixed")]:h.value}),style:Jt(C(b))},[pt(k.$slots,"default")],6)],6))}});var kBe=en(EBe,[["__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},Xme=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),TBe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),vi=e=>(e.install=go,e),_Be=er(kBe),DBe=Yt({size:{type:lt([Number,String])},color:{type:String}}),IBe=et({name:"ElIcon",inheritAttrs:!1}),OBe=et({...IBe,props:DBe,setup(e){const t=e,n=jt("icon"),r=ee(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:zr(o)?void 0:_i(o),"--color":i}});return(o,i)=>(F(),K("i",pr({class:C(n).b(),style:C(r)},o.$attrs),[pt(o.$slots,"default")],16))}});var MBe=en(OBe,[["__file","icon.vue"]]);const _n=er(MBe);function XX(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Mb(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Jme=Yt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),e1e=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=XX(),{registerTimeout:a,cancelTimeout:s}=XX();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 PBe=et({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=PBe,NBe=et({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"})]))}}),Kf=NBe,RBe=et({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=RBe,BBe=et({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"})]))}}),nD=BBe,LBe=et({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"})]))}}),FBe=LBe,UBe=et({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"})]))}}),zBe=UBe,$Be=et({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"})]))}}),t1e=$Be,jBe=et({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"})]))}}),HBe=jBe,WBe=et({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"})]))}}),OC=WBe,VBe=et({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"})]))}}),qBe=VBe,GBe=et({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"})]))}}),xH=GBe,KBe=et({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"})]))}}),SH=KBe,YBe=et({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"})]))}}),Qd=YBe,QBe=et({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"})]))}}),n1e=QBe,ZBe=et({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=ZBe,XBe=et({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"})]))}}),JBe=XBe,eLe=et({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=eLe,tLe=et({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=tLe,nLe=et({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"})]))}}),rLe=nLe,oLe=et({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"})]))}}),_y=oLe,iLe=et({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"})]))}}),aLe=iLe,sLe=et({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"})]))}}),lLe=sLe,uLe=et({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"})]))}}),cLe=uLe,dLe=et({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"})]))}}),V3=dLe,fLe=et({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"})]))}}),r1e=fLe,pLe=et({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=pLe,hLe=et({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"})]))}}),gLe=hLe,vLe=et({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"})]))}}),JX=vLe,mLe=et({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"})]))}}),yLe=mLe,bLe=et({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"})]))}}),wLe=bLe,ALe=et({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"})]))}}),o1e=ALe,CLe=et({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"})]))}}),xLe=CLe,SLe=et({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"})]))}}),ELe=SLe,kLe=et({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"})]))}}),TLe=kLe,_Le=et({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"})]))}}),DLe=_Le,ILe=et({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"})]))}}),OLe=ILe,MLe=et({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"})]))}}),PLe=MLe,NLe=et({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"})]))}}),RLe=NLe,BLe=et({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"})]))}}),hx=BLe,LLe=et({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"})]))}}),FLe=LLe,ULe=et({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"})]))}}),i1e=ULe,zLe=et({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"})]))}}),a1e=zLe,$Le=et({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"})]))}}),Rb=$Le,jLe=et({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"})]))}}),s1e=jLe,HLe=et({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"})]))}}),WLe=HLe;const vo=lt([String,Object,Function]),l1e={Close:cu},EH={Close:cu,SuccessFilled:i1e,InfoFilled:V3,WarningFilled:Rb,CircleCloseFilled:SH},a0={primary:V3,success:i1e,warning:Rb,error:SH,info:V3},rD={validating:Bc,success:xH,error:Qd},VLe=["light","dark"],qLe=Yt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Ty(a0),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:VLe,default:"light"},...Jme}),GLe={open:()=>!0,close:e=>zr(e)||e instanceof Event},KLe=et({name:"ElAlert"}),YLe=et({...KLe,props:qLe,emits:GLe,setup(e,{emit:t}){const n=e,{Close:r}=EH,o=pa(),i=jt("alert"),a=Y(!1),s=ee(()=>a0[n.type]),l=ee(()=>!!(n.description||o.default)),u=()=>{a.value=!0,t("open")},d=p=>{a.value=!1,t("close",p)},{onOpen:c,onClose:f}=e1e({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(()=>[an(x("div",{class:oe([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(_n),{key:0,class:oe([C(i).e("icon"),{[C(i).is("big")]:C(l)}])},{default:nt(()=>[pt(p.$slots,"icon",{},()=>[(F(),mt(hr(C(s))))])]),_:3},8,["class"])):xe("v-if",!0),x("div",{class:oe(C(i).e("content"))},[p.title||p.$slots.title?(F(),K("span",{key:0,class:oe([C(i).e("title"),{"with-description":C(l)}])},[pt(p.$slots,"title",{},()=>[An(ze(p.title),1)])],2)):xe("v-if",!0),C(l)?(F(),K("p",{key:1,class:oe(C(i).e("description"))},[pt(p.$slots,"default",{},()=>[An(ze(p.description),1)])],2)):xe("v-if",!0),p.closable?(F(),K(Nt,{key:2},[p.closeText?(F(),K("div",{key:0,class:oe([C(i).e("close-btn"),C(i).is("customed")]),onClick:d},ze(p.closeText),3)):(F(),mt(C(_n),{key:1,class:oe(C(i).e("close-btn")),onClick:C(f)},{default:nt(()=>[$e(C(r))]),_:1},8,["class","onClick"]))],64)):xe("v-if",!0)],2)],2),[[Ar,a.value]])]),_:3},8,["name"]))}});var QLe=en(YLe,[["__file","alert.vue"]]);const ZLe=er(QLe),kH=()=>Kr&&/firefox/i.test(window.navigator.userAgent);let yl;const XLe={height:"0",visibility:"hidden",overflow:kH()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},JLe=["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 eFe(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:JLe.map(a=>[a,t.getPropertyValue(a)]),paddingSize:r,borderSize:o,boxSizing:n}}function eJ(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}=eFe(e);l.forEach(([f,p])=>yl?.style.setProperty(f,p)),Object.entries(XLe).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,tFe=Yt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Es=e=>ru(tFe,e),MC=Yt({id:{type:String,default:void 0},size:ba,disabled:Boolean,modelValue:{type:lt([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:lt([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:Qd},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:lt([Object,Array,String]),default:()=>fi({})},autofocus:Boolean,rows:{type:Number,default:2},...Es(["ariaLabel"]),inputmode:{type:lt(String),default:void 0},name:String}),nFe={[Gn]:e=>Dn(e),input:e=>Dn(e),change:e=>Dn(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},rFe=["class","style"],oFe=/^on[A-Z]/,oD=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>(n?.value||[]).concat(rFe)),o=vr();return ee(o?()=>{var i;return W3(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&oFe.test(a))))}:()=>({}))},tJ={prefix:Math.floor(Math.random()*1e4),current:0},iFe=Symbol("elIdInjection"),TH=()=>vr()?un(iFe,tJ):tJ,ds=e=>{const t=TH(),n=tH();return mE(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},om=Symbol("formContextKey"),Fd=Symbol("formItemContextKey"),ks=()=>{const e=un(om,void 0),t=un(Fd,void 0);return{form:e,formItem:t}},ac=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Y(!1)),r||(r=Y(!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=Y();let s;const l=ee(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return jn(()=>{s=Ct([ao(e,"id"),n],([u,d])=>{const c=u??(d?void 0:ds().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}},u1e=e=>{const t=vr();return ee(()=>{var n,r;return(r=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},fa=(e,t={})=>{const n=Y(void 0),r=t.prop?n:u1e("size"),o=t.global?n:Vme(),i=t.form?{size:void 0}:un(om,void 0),a=t.formItem?{size:void 0}:un(Fd,void 0);return ee(()=>r.value||C(e)||a?.size||i?.size||o.value||"")},Wa=e=>{const t=u1e("disabled"),n=un(om,void 0);return ee(()=>t.value||C(e)||n?.disabled||!1)},aFe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',sFe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,nJ=e=>Array.from(e.querySelectorAll(aFe)).filter(t=>q3(t)&&sFe(t)),q3=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}},wS=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},c1e=e=>!e.getAttribute("aria-owns"),d1e=(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},AS=e=>{e&&(e.focus(),!c1e(e)&&e.click())};function vp(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:o,afterBlur:i}={}){const a=vr(),{emit:s}=a,l=Uo(),u=Y(!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)||q3(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(h=e.value)==null||h.focus()};return Ct([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 lFe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function PC({afterComposition:e,emit:t}){const n=Y(!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=!lFe(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 uFe(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 cFe="ElInput",dFe=et({name:cFe,inheritAttrs:!1}),fFe=et({...dFe,props:MC,emits:nFe,setup(e,{expose:t,emit:n}){const r=e,o=pp(),i=oD(),a=pa(),s=ee(()=>[r.type==="textarea"?h.b():v.b(),v.m(f.value),v.is("disabled",p.value),v.is("exceed",U.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=ee(()=>[v.e("wrapper"),v.is("focus",O.value)]),{form:u,formItem:d}=ks(),{inputId:c}=ac(r,{formItemContext:d}),f=fa(),p=Wa(),v=jt("input"),h=jt("textarea"),g=Uo(),y=Uo(),m=Y(!1),b=Y(!1),w=Y(),A=Uo(r.inputStyle),S=ee(()=>g.value||y.value),{wrapperRef:k,isFocused:O,handleFocus:I,handleBlur:P}=vp(S,{disabled:p,afterBlur(){var Pe;r.validateEvent&&((Pe=d?.validate)==null||Pe.call(d,"blur").catch(Ne=>void 0))}}),M=ee(()=>{var Pe;return(Pe=u?.statusIcon)!=null?Pe:!1}),_=ee(()=>d?.validateState||""),R=ee(()=>_.value&&rD[_.value]),N=ee(()=>b.value?a1e:cLe),V=ee(()=>[o.style]),L=ee(()=>[r.inputStyle,A.value,{resize:r.resize}]),j=ee(()=>Zi(r.modelValue)?"":String(r.modelValue)),H=ee(()=>r.clearable&&!p.value&&!r.readonly&&!!j.value&&(O.value||m.value)),G=ee(()=>r.showPassword&&!p.value&&!!j.value),Z=ee(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),z=ee(()=>j.value.length),U=ee(()=>!!Z.value&&z.value>Number(r.maxlength)),W=ee(()=>!!a.suffix||!!r.suffixIcon||H.value||r.showPassword||Z.value||!!_.value&&M.value),[re,J]=uFe(g);li(y,Pe=>{if(ue(),!Z.value||r.resize!=="both")return;const Ne=Pe[0],{width:ht}=Ne.contentRect;w.value={right:`calc(100% - ${ht+15+6}px)`}});const te=()=>{const{type:Pe,autosize:Ne}=r;if(!(!Kr||Pe!=="textarea"||!y.value))if(Ne){const ht=ar(Ne)?Ne.minRows:void 0,Rt=ar(Ne)?Ne.maxRows:void 0,Lt=eJ(y.value,ht,Rt);A.value={overflowY:"hidden",...Lt},Vt(()=>{y.value.offsetHeight,A.value=Lt})}else A.value={minHeight:eJ(y.value).minHeight}},ue=(Pe=>{let Ne=!1;return()=>{var ht;if(Ne||!r.autosize)return;((ht=y.value)==null?void 0:ht.offsetParent)===null||(Pe(),Ne=!0)}})(te),me=()=>{const Pe=S.value,Ne=r.formatter?r.formatter(j.value):j.value;!Pe||Pe.value===Ne||(Pe.value=Ne)},Me=async Pe=>{re();let{value:Ne}=Pe.target;if(r.formatter&&r.parser&&(Ne=r.parser(Ne)),!ge.value){if(Ne===j.value){me();return}n(Gn,Ne),n(ma,Ne),await Vt(),me(),J()}},Ae=Pe=>{let{value:Ne}=Pe.target;r.formatter&&r.parser&&(Ne=r.parser(Ne)),n(Tr,Ne)},{isComposing:ge,handleCompositionStart:_e,handleCompositionUpdate:Q,handleCompositionEnd:be}=PC({emit:n,afterComposition:Me}),De=()=>{re(),b.value=!b.value,setTimeout(J)},pe=()=>{var Pe;return(Pe=S.value)==null?void 0:Pe.focus()},ie=()=>{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 Ct(()=>r.modelValue,()=>{var Pe;Vt(()=>te()),r.validateEvent&&((Pe=d?.validate)==null||Pe.call(d,"change").catch(Ne=>void 0))}),Ct(j,()=>me()),Ct(()=>r.type,async()=>{await Vt(),me(),te()}),jn(()=>{!r.formatter&&r.parser,me(),Vt(te)}),t({input:g,textarea:y,ref:S,textareaStyle:L,autosize:ao(r,"autosize"),isComposing:ge,focus:pe,blur:ie,select:Le,clear:Fe,resizeTextarea:te}),(Pe,Ne)=>(F(),K("div",{class:oe([C(s),{[C(v).bm("group","append")]:Pe.$slots.append,[C(v).bm("group","prepend")]:Pe.$slots.prepend}]),style:Jt(C(V)),onMouseenter:Re,onMouseleave:ce},[xe(" input "),Pe.type!=="textarea"?(F(),K(Nt,{key:0},[xe(" prepend slot "),Pe.$slots.prepend?(F(),K("div",{key:0,class:oe(C(v).be("group","prepend"))},[pt(Pe.$slots,"prepend")],2)):xe("v-if",!0),x("div",{ref_key:"wrapperRef",ref:k,class:oe(C(l))},[xe(" prefix slot "),Pe.$slots.prefix||Pe.prefixIcon?(F(),K("span",{key:0,class:oe(C(v).e("prefix"))},[x("span",{class:oe(C(v).e("prefix-inner"))},[pt(Pe.$slots,"prefix"),Pe.prefixIcon?(F(),mt(C(_n),{key:0,class:oe(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(_e),onCompositionupdate:C(Q),onCompositionend:C(be),onInput:Me,onChange:Ae,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:oe(C(v).e("suffix"))},[x("span",{class:oe(C(v).e("suffix-inner"))},[!C(H)||!C(G)||!C(Z)?(F(),K(Nt,{key:0},[pt(Pe.$slots,"suffix"),Pe.suffixIcon?(F(),mt(C(_n),{key:0,class:oe(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(_n),{key:1,class:oe([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(_n),{key:2,class:oe([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:oe(C(v).e("count"))},[x("span",{class:oe(C(v).e("count-inner"))},ze(C(z))+" / "+ze(Pe.maxlength),3)],2)):xe("v-if",!0),C(_)&&C(R)&&C(M)?(F(),mt(C(_n),{key:4,class:oe([C(v).e("icon"),C(v).e("validateIcon"),C(v).is("loading",C(_)==="validating")])},{default:nt(()=>[(F(),mt(hr(C(R))))]),_: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:oe(C(v).be("group","append"))},[pt(Pe.$slots,"append")],2)):xe("v-if",!0)],64)):(F(),K(Nt,{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(O))]},C(i),{minlength:Pe.minlength,maxlength:Pe.maxlength,tabindex:Pe.tabindex,disabled:C(p),readonly:Pe.readonly,autocomplete:Pe.autocomplete,style:C(L),"aria-label":Pe.ariaLabel,placeholder:Pe.placeholder,form:Pe.form,autofocus:Pe.autofocus,rows:Pe.rows,role:Pe.containerRole,onCompositionstart:C(_e),onCompositionupdate:C(Q),onCompositionend:C(be),onInput:Me,onFocus:C(I),onBlur:C(P),onChange:Ae,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:Jt(w.value),class:oe(C(v).e("count"))},ze(C(z))+" / "+ze(Pe.maxlength),7)):xe("v-if",!0)],64))],38))}});var pFe=en(fFe,[["__file","input.vue"]]);const Us=er(pFe),Im=4,f1e={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"}},hFe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_H=Symbol("scrollbarContextKey"),gFe=Yt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),vFe="Thumb",mFe=et({__name:"thumb",props:gFe,setup(e){const t=e,n=un(_H),r=jt("scrollbar");n||Ji(vFe,"can not inject scrollbar context");const o=Y(),i=Y(),a=Y({}),s=Y(!1);let l=!1,u=!1,d=0,c=0,f=Kr?document.onselectstart:null;const p=ee(()=>f1e[t.vertical?"vertical":"horizontal"]),v=ee(()=>hFe({size:t.size,move:t.move,bar:p.value})),h=ee(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),g=O=>{var I;if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;(I=window.getSelection())==null||I.removeAllRanges(),m(O);const P=O.currentTarget;P&&(a.value[p.value.axis]=P[p.value.offset]-(O[p.value.client]-P.getBoundingClientRect()[p.value.direction]))},y=O=>{if(!i.value||!o.value||!n.wrapElement)return;const I=Math.abs(O.target.getBoundingClientRect()[p.value.direction]-O[p.value.client]),P=i.value[p.value.offset]/2,M=(I-P)*100*h.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=M*n.wrapElement[p.value.scrollSize]/100},m=O=>{O.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=O=>{if(!o.value||!i.value||l===!1)return;const I=a.value[p.value.axis];if(!I)return;const P=(o.value.getBoundingClientRect()[p.value.direction]-O[p.value.client])*-1,M=i.value[p.value.offset]-I,_=(P-M)*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};Yr(()=>{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),(O,I)=>(F(),mt(Wi,{name:C(r).b("fade"),persisted:""},{default:nt(()=>[an(x("div",{ref_key:"instance",ref:o,class:oe([C(r).e("bar"),C(r).is(C(p).key)]),onMousedown:y,onClick:Qt(()=>{},["stop"])},[x("div",{ref_key:"thumb",ref:i,class:oe(C(r).e("thumb")),style:Jt(C(v)),onMousedown:g},null,38)],42,["onClick"]),[[Ar,O.always||s.value]])]),_:1},8,["name"]))}});var rJ=en(mFe,[["__file","thumb.vue"]]);const yFe=Yt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),bFe=et({__name:"bar",props:yFe,setup(e,{expose:t}){const n=e,r=un(_H),o=Y(0),i=Y(0),a=Y(""),s=Y(""),l=Y(1),u=Y(1);return t({handleScroll:f=>{if(f){const p=f.offsetHeight-Im,v=f.offsetWidth-Im;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-Im,v=f.offsetWidth-Im,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+Im<p?`${y}px`:"",a.value=m+Im<v?`${m}px`:""}}),(f,p)=>(F(),K(Nt,null,[$e(rJ,{move:o.value,ratio:u.value,size:a.value,always:f.always},null,8,["move","ratio","size","always"]),$e(rJ,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var wFe=en(bFe,[["__file","bar.vue"]]);const AFe=Yt({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:lt([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"])}),p1e={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ln)},CFe="ElScrollbar",xFe=et({name:CFe}),SFe=et({...xFe,props:AFe,emits:p1e,setup(e,{expose:t,emit:n}){const r=e,o=jt("scrollbar");let i,a,s,l=0,u=0,d="";const c={bottom:!1,top:!1,right:!1,left:!1},f=Y(),p=Y(),v=Y(),h=Y(),g=ee(()=>{const M={};return r.height&&(M.height=_i(r.height)),r.maxHeight&&(M.maxHeight=_i(r.maxHeight)),[r.wrapStyle,M]}),y=ee(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),m=ee(()=>[o.e("view"),r.viewClass]),b=M=>{var _;return(_=c[M])!=null?_:!1},w={top:"bottom",bottom:"top",left:"right",right:"left"},A=M=>{const _=w[d];if(!_)return;const R=M[d],N=M[_];R&&!c[d]&&(c[d]=!0),!N&&c[_]&&(c[_]=!1)},S=()=>{var M;if(p.value){(M=h.value)==null||M.handleScroll(p.value);const _=l,R=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&&R!==u,left:u<=r.distance&&R!==0};if(n("scroll",{scrollTop:l,scrollLeft:u}),_!==l&&(d=l>_?"bottom":"top"),R!==u&&(d=u>R?"right":"left"),r.distance>0){if(b(d))return;A(N)}N[d]&&n("end-reached",d)}};function k(M,_){ar(M)?p.value.scrollTo(M):Ln(M)&&Ln(_)&&p.value.scrollTo(M,_)}const O=M=>{Ln(M)&&(p.value.scrollTop=M)},I=M=>{Ln(M)&&(p.value.scrollLeft=M)},P=()=>{var M;(M=h.value)==null||M.update(),c[d]=!1};return Ct(()=>r.noresize,M=>{M?(i?.(),a?.(),s?.()):({stop:i}=li(v,P),{stop:a}=li(p,P),s=Mo("resize",P))},{immediate:!0}),Ct(()=>[r.maxHeight,r.height],()=>{r.native||Vt(()=>{var M;P(),p.value&&((M=h.value)==null||M.handleScroll(p.value))})}),Sr(_H,Ur({scrollbarElement:f,wrapElement:p})),Sb(()=>{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:O,setScrollLeft:I,handleScroll:S}),(M,_)=>(F(),K("div",{ref_key:"scrollbarRef",ref:f,class:oe(C(o).b())},[x("div",{ref_key:"wrapRef",ref:p,class:oe(C(y)),style:Jt(C(g)),tabindex:M.tabindex,onScroll:S},[(F(),mt(hr(M.tag),{id:M.id,ref_key:"resizeRef",ref:v,class:oe(C(m)),style:Jt(M.viewStyle),role:M.role,"aria-label":M.ariaLabel,"aria-orientation":M.ariaOrientation},{default:nt(()=>[pt(M.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),M.native?xe("v-if",!0):(F(),mt(wFe,{key:0,ref_key:"barRef",ref:h,always:M.always,"min-size":M.minSize},null,8,["always","min-size"]))],2))}});var EFe=en(SFe,[["__file","scrollbar.vue"]]);const Lc=er(EFe),DH=Symbol("popper"),h1e=Symbol("popperContent"),g1e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],v1e=Yt({role:{type:String,values:g1e,default:"tooltip"}}),kFe=et({name:"ElPopper",inheritAttrs:!1}),TFe=et({...kFe,props:v1e,setup(e,{expose:t}){const n=e,r=Y(),o=Y(),i=Y(),a=Y(),s=ee(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),Sr(DH,l),(u,d)=>pt(u.$slots,"default")}});var _Fe=en(TFe,[["__file","popper.vue"]]);const DFe=et({name:"ElPopperArrow",inheritAttrs:!1}),IFe=et({...DFe,setup(e,{expose:t}){const n=jt("popper"),{arrowRef:r,arrowStyle:o}=un(h1e,void 0);return Yr(()=>{r.value=void 0}),t({arrowRef:r}),(i,a)=>(F(),K("span",{ref_key:"arrowRef",ref:r,class:oe(C(n).e("arrow")),style:Jt(C(o)),"data-popper-arrow":""},null,6))}});var OFe=en(IFe,[["__file","arrow.vue"]]);const m1e=Yt({virtualRef:{type:lt(Object)},virtualTriggering:Boolean,onMouseenter:{type:lt(Function)},onMouseleave:{type:lt(Function)},onClick:{type:lt(Function)},onKeydown:{type:lt(Function)},onFocus:{type:lt(Function)},onBlur:{type:lt(Function)},onContextmenu:{type:lt(Function)},id:String,open:Boolean}),y1e=Symbol("elForwardRef"),MFe=e=>{Sr(y1e,{setForwardRef:n=>{e.value=n}})},PFe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),NFe="ElOnlyChild",b1e=et({name:NFe,setup(e,{slots:t,attrs:n}){var r;const o=un(y1e),i=PFe((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=w1e(s);return l?an(qf(l,n),[[i]]):null}}});function w1e(e){if(!e)return null;const t=e;for(const n of t){if(ar(n))switch(n.type){case ua:continue;case Eb:case"svg":return oJ(n);case Nt:return w1e(n.children);default:return n}return oJ(n)}return null}function oJ(e){const t=jt("only-child");return $e("span",{class:t.e("content")},[e])}const RFe=et({name:"ElPopperTrigger",inheritAttrs:!1}),BFe=et({...RFe,props:m1e,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=un(DH,void 0);MFe(o);const i=ee(()=>s.value?n.id:void 0),a=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),l=ee(()=>s.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return jn(()=>{Ct(()=>n.virtualRef,c=>{c&&(o.value=Sa(c))},{immediate:!0}),Ct(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))}),q3(c)&&(u=Ct([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)&&q3(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),Yr(()=>{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(b1e),pr({key:0},c.$attrs,{"aria-controls":C(i),"aria-describedby":C(a),"aria-expanded":C(l),"aria-haspopup":C(s)}),{default:nt(()=>[pt(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var LFe=en(BFe,[["__file","trigger.vue"]]);const hI="focus-trap.focus-after-trapped",gI="focus-trap.focus-after-released",FFe="focus-trap.focusout-prevented",iJ={cancelable:!0,bubbles:!1},UFe={cancelable:!0,bubbles:!1},aJ="focusAfterTrapped",sJ="focusAfterReleased",IH=Symbol("elFocusTrap"),OH=Y(),iD=Y(0),MH=Y(0);let gx=0;const A1e=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},lJ=(e,t)=>{for(const n of e)if(!zFe(n,t))return n},zFe=(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},$Fe=e=>{const t=A1e(e),n=lJ(t,e),r=lJ(t.reverse(),e);return[n,r]},jFe=e=>e instanceof HTMLInputElement&&"select"in e,bf=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;al(e)&&!q3(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),MH.value=window.performance.now(),e!==n&&jFe(e)&&t&&e.select(),al(e)&&r&&e.removeAttribute("tabindex")}};function uJ(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const HFe=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=uJ(e,r),e.unshift(r)},remove:r=>{var o,i;e=uJ(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},WFe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(bf(r,t),document.activeElement!==n)return},cJ=HFe(),VFe=()=>iD.value>MH.value,vx=()=>{OH.value="pointer",iD.value=window.performance.now()},dJ=()=>{OH.value="keyboard",iD.value=window.performance.now()},qFe=()=>(jn(()=>{gx===0&&(document.addEventListener("mousedown",vx),document.addEventListener("touchstart",vx),document.addEventListener("keydown",dJ)),gx++}),Yr(()=>{gx--,gx<=0&&(document.removeEventListener("mousedown",vx),document.removeEventListener("touchstart",vx),document.removeEventListener("keydown",dJ))}),{focusReason:OH,lastUserFocusTimestamp:iD,lastAutomatedFocusTimestamp:MH}),mx=e=>new CustomEvent(FFe,{...UFe,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 k1=[];const fJ=e=>{e.code===gn.esc&&k1.forEach(t=>t(e))},GFe=e=>{jn(()=>{k1.length===0&&document.addEventListener("keydown",fJ),Kr&&k1.push(e)}),Yr(()=>{k1=k1.filter(t=>t!==e),k1.length===0&&Kr&&document.removeEventListener("keydown",fJ)})},KFe=et({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[aJ,sJ,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Y();let r,o;const{focusReason:i}=qFe();GFe(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 O=b,[I,P]=$Fe(O);if(I&&P){if(!w&&k===P){const _=mx({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||(v.preventDefault(),A&&bf(I,!0))}else if(w&&[I,O].includes(k)){const _=mx({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||(v.preventDefault(),A&&bf(P,!0))}}else if(k===O){const _=mx({focusReason:i.value});t("focusout-prevented",_),_.defaultPrevented||v.preventDefault()}}};Sr(IH,{focusTrapRef:n,onKeydown:s}),Ct(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),Ct([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(aJ,v)},u=v=>t(sJ,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=mx({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){cJ.push(a);const h=v.contains(document.activeElement)?r:document.activeElement;if(r=h,!v.contains(h)){const y=new Event(hI,iJ);v.addEventListener(hI,l),v.dispatchEvent(y),y.defaultPrevented||Vt(()=>{let m=e.focusStartEl;Dn(m)||(bf(m),document.activeElement!==m&&(m="first")),m==="first"&&WFe(A1e(v),!0),(document.activeElement===h||m==="container")&&bf(v)})}}}function p(){const v=C(n);if(v){v.removeEventListener(hI,l);const h=new CustomEvent(gI,{...iJ,detail:{focusReason:i.value}});v.addEventListener(gI,u),v.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!VFe()||v.contains(document.activeElement))&&bf(r??document.body),v.removeEventListener(gI,u),cJ.remove(a)}}return jn(()=>{e.trapped&&f(),Ct(()=>e.trapped,v=>{v?f():p()})}),Yr(()=>{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 YFe(e,t,n,r,o,i){return pt(e.$slots,"default",{handleKeydown:e.onKeydown})}var Bb=en(KFe,[["render",YFe],["__file","focus-trap.vue"]]),Ol="top",Gu="bottom",Ku="right",Ml="left",PH="auto",NC=[Ol,Gu,Ku,Ml],Dy="start",G3="end",QFe="clippingParents",C1e="viewport",T2="popper",ZFe="reference",pJ=NC.reduce(function(e,t){return e.concat([t+"-"+Dy,t+"-"+G3])},[]),mp=[].concat(NC,[PH]).reduce(function(e,t){return e.concat([t,t+"-"+Dy,t+"-"+G3])},[]),XFe="beforeRead",JFe="read",eUe="afterRead",tUe="beforeMain",nUe="main",rUe="afterMain",oUe="beforeWrite",iUe="write",aUe="afterWrite",sUe=[XFe,JFe,eUe,tUe,nUe,rUe,oUe,iUe,aUe];function Ud(e){return e?(e.nodeName||"").toLowerCase():null}function Yc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Iy(e){var t=Yc(e).Element;return e instanceof t||e instanceof Element}function zu(e){var t=Yc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function NH(e){if(typeof ShadowRoot>"u")return!1;var t=Yc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lUe(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];!zu(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 uUe(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},{});!zu(o)||!Ud(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var x1e={name:"applyStyles",enabled:!0,phase:"write",fn:lUe,effect:uUe,requires:["computeStyles"]};function Od(e){return e.split("-")[0]}var Gg=Math.max,wE=Math.min,Oy=Math.round;function My(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(zu(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Oy(n.width)/a||1),i>0&&(o=Oy(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 RH(e){var t=My(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 S1e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&NH(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yf(e){return Yc(e).getComputedStyle(e)}function cUe(e){return["table","td","th"].indexOf(Ud(e))>=0}function k0(e){return((Iy(e)?e.ownerDocument:e.document)||window.document).documentElement}function aD(e){return Ud(e)==="html"?e:e.assignedSlot||e.parentNode||(NH(e)?e.host:null)||k0(e)}function hJ(e){return!zu(e)||Yf(e).position==="fixed"?null:e.offsetParent}function dUe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&zu(e)){var r=Yf(e);if(r.position==="fixed")return null}var o=aD(e);for(NH(o)&&(o=o.host);zu(o)&&["html","body"].indexOf(Ud(o))<0;){var i=Yf(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 RC(e){for(var t=Yc(e),n=hJ(e);n&&cUe(n)&&Yf(n).position==="static";)n=hJ(n);return n&&(Ud(n)==="html"||Ud(n)==="body"&&Yf(n).position==="static")?t:n||dUe(e)||t}function BH(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z4(e,t,n){return Gg(e,wE(t,n))}function fUe(e,t,n){var r=Z4(e,t,n);return r>n?n:r}function E1e(){return{top:0,right:0,bottom:0,left:0}}function k1e(e){return Object.assign({},E1e(),e)}function T1e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pUe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,k1e(typeof e!="number"?e:T1e(e,NC))};function hUe(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=BH(s),u=[Ml,Ku].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var c=pUe(o.padding,n),f=RH(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=RC(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=Z4(w,S,A),O=l;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-S,t)}}function gUe(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)||!S1e(t.elements.popper,o)||(t.elements.arrow=o))}var vUe={name:"arrow",enabled:!0,phase:"main",fn:hUe,effect:gUe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Py(e){return e.split("-")[1]}var mUe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yUe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Oy(t*o)/o||0,y:Oy(n*o)/o||0}}function gJ(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=RC(n),k="clientHeight",O="clientWidth";if(S===Yc(n)&&(S=k0(n),Yf(S).position!=="static"&&s==="absolute"&&(k="scrollHeight",O="scrollWidth")),S=S,o===Ol||(o===Ml||o===Ku)&&i===G3){w=Gu;var I=c&&S===A&&A.visualViewport?A.visualViewport.height:S[k];h-=I-r.height,h*=l?1:-1}if(o===Ml||(o===Ol||o===Gu)&&i===G3){b=Ku;var P=c&&S===A&&A.visualViewport?A.visualViewport.width:S[O];p-=P-r.width,p*=l?1:-1}}var M=Object.assign({position:s},u&&mUe),_=d===!0?yUe({x:p,y:h}):{x:p,y:h};if(p=_.x,h=_.y,l){var R;return Object.assign({},M,(R={},R[w]=m?"0":"",R[b]=y?"0":"",R.transform=(A.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",R))}return Object.assign({},M,(t={},t[w]=m?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}function bUe(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:Py(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,gJ(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,gJ(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 _1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bUe,data:{}},yx={passive:!0};function wUe(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=Yc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,yx)}),s&&l.addEventListener("resize",n.update,yx),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,yx)}),s&&l.removeEventListener("resize",n.update,yx)}}var D1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wUe,data:{}},AUe={left:"right",right:"left",bottom:"top",top:"bottom"};function CS(e){return e.replace(/left|right|bottom|top/g,function(t){return AUe[t]})}var CUe={start:"end",end:"start"};function vJ(e){return e.replace(/start|end/g,function(t){return CUe[t]})}function LH(e){var t=Yc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function FH(e){return My(k0(e)).left+LH(e).scrollLeft}function xUe(e){var t=Yc(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+FH(e),y:s}}function SUe(e){var t,n=k0(e),r=LH(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+FH(e),l=-r.scrollTop;return Yf(o||n).direction==="rtl"&&(s+=Gg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function UH(e){var t=Yf(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function I1e(e){return["html","body","#document"].indexOf(Ud(e))>=0?e.ownerDocument.body:zu(e)&&UH(e)?e:I1e(aD(e))}function X4(e,t){var n;t===void 0&&(t=[]);var r=I1e(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Yc(r),a=o?[i].concat(i.visualViewport||[],UH(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(X4(aD(a)))}function AL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EUe(e){var t=My(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 mJ(e,t){return t===C1e?AL(xUe(e)):Iy(t)?EUe(t):AL(SUe(k0(e)))}function kUe(e){var t=X4(aD(e)),n=["absolute","fixed"].indexOf(Yf(e).position)>=0,r=n&&zu(e)?RC(e):e;return Iy(r)?t.filter(function(o){return Iy(o)&&S1e(o,r)&&Ud(o)!=="body"}):[]}function TUe(e,t,n){var r=t==="clippingParents"?kUe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=mJ(e,l);return s.top=Gg(u.top,s.top),s.right=wE(u.right,s.right),s.bottom=wE(u.bottom,s.bottom),s.left=Gg(u.left,s.left),s},mJ(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 O1e(e){var t=e.reference,n=e.element,r=e.placement,o=r?Od(r):null,i=r?Py(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?BH(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Dy:l[u]=l[u]-(t[d]/2-n[d]/2);break;case G3:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function K3(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?QFe:i,s=n.rootBoundary,l=s===void 0?C1e:s,u=n.elementContext,d=u===void 0?T2:u,c=n.altBoundary,f=c===void 0?!1:c,p=n.padding,v=p===void 0?0:p,h=k1e(typeof v!="number"?v:T1e(v,NC)),g=d===T2?ZFe:T2,y=e.rects.popper,m=e.elements[f?g:d],b=TUe(Iy(m)?m:m.contextElement||k0(e.elements.popper),a,l),w=My(e.elements.reference),A=O1e({reference:w,element:y,placement:o}),S=AL(Object.assign({},y,A)),k=d===T2?S:w,O={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},I=e.modifiersData.offset;if(d===T2&&I){var P=I[o];Object.keys(O).forEach(function(M){var _=[Ku,Gu].indexOf(M)>=0?1:-1,R=[Ol,Gu].indexOf(M)>=0?"y":"x";O[M]+=P[R]*_})}return O}function _Ue(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?mp:l,d=Py(r),c=d?s?pJ:pJ.filter(function(v){return Py(v)===d}):NC,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]=K3(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 DUe(e){if(Od(e)===PH)return[];var t=CS(e);return[vJ(e),t,vJ(t)]}function IUe(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?[CS(g)]:DUe(g)),w=[g].concat(b).reduce(function(re,J){return re.concat(Od(J)===PH?_Ue(t,{placement:J,boundary:d,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:h}):J)},[]),A=t.rects.reference,S=t.rects.popper,k=new Map,O=!0,I=w[0],P=0;P<w.length;P++){var M=w[P],_=Od(M),R=Py(M)===Dy,N=[Ol,Gu].indexOf(_)>=0,V=N?"width":"height",L=K3(t,{placement:M,boundary:d,rootBoundary:c,altBoundary:f,padding:u}),j=N?R?Ku:Ml:R?Gu:Ol;A[V]>S[V]&&(j=CS(j));var H=CS(j),G=[];if(i&&G.push(L[_]<=0),s&&G.push(L[j]<=0,L[H]<=0),G.every(function(re){return re})){I=M,O=!1;break}k.set(M,G)}if(O)for(var Z=v?3:1,z=function(re){var J=w.find(function(te){var X=k.get(te);if(X)return X.slice(0,re).every(function(ue){return ue})});if(J)return I=J,"break"},U=Z;U>0;U--){var W=z(U);if(W==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var OUe={name:"flip",enabled:!0,phase:"main",fn:IUe,requiresIfExists:["offset"],data:{_skip:!1}};function yJ(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 bJ(e){return[Ol,Ku,Gu,Ml].some(function(t){return e[t]>=0})}function MUe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=K3(t,{elementContext:"reference"}),s=K3(t,{altBoundary:!0}),l=yJ(a,r),u=yJ(s,o,i),d=bJ(l),c=bJ(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 PUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MUe};function NUe(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 RUe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=mp.reduce(function(d,c){return d[c]=NUe(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 BUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RUe};function LUe(e){var t=e.state,n=e.name;t.modifiersData[n]=O1e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var M1e={name:"popperOffsets",enabled:!0,phase:"read",fn:LUe,data:{}};function FUe(e){return e==="x"?"y":"x"}function UUe(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=K3(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:d}),y=Od(t.placement),m=Py(t.placement),b=!m,w=BH(y),A=FUe(w),S=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,I=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(S){if(i){var R,N=w==="y"?Ol:Ml,V=w==="y"?Gu:Ku,L=w==="y"?"height":"width",j=S[w],H=j+g[N],G=j-g[V],Z=p?-O[L]/2:0,z=m===Dy?k[L]:O[L],U=m===Dy?-O[L]:-k[L],W=t.elements.arrow,re=p&&W?RH(W):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:E1e(),te=J[N],X=J[V],ue=Z4(0,k[L],re[L]),me=b?k[L]/2-Z-ue-te-P.mainAxis:z-ue-te-P.mainAxis,Me=b?-k[L]/2+Z+ue+X+P.mainAxis:U+ue+X+P.mainAxis,Ae=t.elements.arrow&&RC(t.elements.arrow),ge=Ae?w==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,_e=(R=M?.[w])!=null?R:0,Q=j+me-_e-ge,be=j+Me-_e,De=Z4(p?wE(H,Q):H,j,p?Gg(G,be):G);S[w]=De,_[w]=De-j}if(s){var pe,ie=w==="x"?Ol:Ml,ce=w==="x"?Gu:Ku,Re=S[A],Ee=A==="y"?"height":"width",Le=Re+g[ie],Fe=Re-g[ce],Pe=[Ol,Ml].indexOf(y)!==-1,Ne=(pe=M?.[A])!=null?pe:0,ht=Pe?Le:Re-k[Ee]-O[Ee]-Ne+P.altAxis,Rt=Pe?Re+k[Ee]+O[Ee]-Ne-P.altAxis:Fe,Lt=p&&Pe?fUe(ht,Re,Rt):Z4(p?ht:Le,Re,p?Rt:Fe);S[A]=Lt,_[A]=Lt-Re}t.modifiersData[r]=_}}var zUe={name:"preventOverflow",enabled:!0,phase:"main",fn:UUe,requiresIfExists:["offset"]};function $Ue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jUe(e){return e===Yc(e)||!zu(e)?LH(e):$Ue(e)}function HUe(e){var t=e.getBoundingClientRect(),n=Oy(t.width)/e.offsetWidth||1,r=Oy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WUe(e,t,n){n===void 0&&(n=!1);var r=zu(t),o=zu(t)&&HUe(t),i=k0(t),a=My(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ud(t)!=="body"||UH(i))&&(s=jUe(t)),zu(t)?(l=My(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=FH(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function VUe(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 qUe(e){var t=VUe(e);return sUe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function GUe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function KUe(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 wJ={placement:"bottom",modifiers:[],strategy:"absolute"};function AJ(){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 zH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?wJ:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},wJ,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:Iy(a)?X4(a):a.contextElement?X4(a.contextElement):[],popper:X4(s)};var y=qUe(KUe([].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(AJ(g,y)){u.rects={reference:WUe(g,RC(y),u.options.strategy==="fixed"),popper:RH(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.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:GUe(function(){return new Promise(function(h){f.forceUpdate(),h(u)})}),destroy:function(){v(),c=!0}};if(!AJ(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}}zH();var YUe=[D1e,M1e,_1e,x1e];zH({defaultModifiers:YUe});var QUe=[D1e,M1e,_1e,x1e,BUe,OUe,zUe,vUe,PUe],ZUe=zH({defaultModifiers:QUe});const P1e=Yt({arrowOffset:{type:Number,default:5}}),XUe=["fixed","absolute"],JUe=Yt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:lt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:mp,default:"bottom"},popperOptions:{type:lt(Object),default:()=>({})},strategy:{type:String,values:XUe,default:"absolute"}}),N1e=Yt({...JUe,...P1e,id:String,style:{type:lt([String,Array,Object])},className:{type:lt([String,Array,Object])},effect:{type:lt(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:lt([String,Array,Object])},popperStyle:{type:lt([String,Array,Object])},referenceEl:{type:lt(Object)},triggerTargetEl:{type:lt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Es(["ariaLabel"])}),eze={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},tze=(e,t)=>{const n=Y(!1),r=Y();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")}}},nze=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...oze(e),...t]};return ize(i,o?.modifiers),i},rze=e=>{if(Kr)return Sa(e)};function oze(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 ize(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const aze=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=sze(l);Object.assign(a.value,u)},requires:["computeStyles"]},o=ee(()=>{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=Y({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 Ct(o,l=>{const u=C(i);u&&u.setOptions(l)},{deep:!0}),Ct([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=ZUe(l,u,C(o)))}),Yr(()=>{s()}),{state:ee(()=>{var l;return{...((l=C(i))==null?void 0:l.state)||{}}}),styles:ee(()=>C(a).styles),attributes:ee(()=>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:ee(()=>C(i))}};function sze(e){const t=Object.keys(e.elements),n=W3(t.map(o=>[o,e.styles[o]||{}])),r=W3(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const lze=0,uze=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=un(DH,void 0),i=Y(),a=ee(()=>e.arrowOffset),s=ee(()=>({name:"eventListeners",enabled:!!e.visible})),l=ee(()=>{var y;const m=C(i),b=(y=C(a))!=null?y:lze;return{name:"arrow",enabled:!dRe(m),options:{element:m,padding:b}}}),u=ee(()=>({onFirstUpdate:()=>{v()},...nze(e,[C(l),C(s)])})),d=ee(()=>rze(e.referenceEl)||C(r)),{attributes:c,state:f,styles:p,update:v,forceUpdate:h,instanceRef:g}=aze(d,n,u);return Ct(g,y=>t.value=y,{flush:"sync"}),jn(()=>{Ct(()=>{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}},cze=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Pb(),i=jt("popper"),a=ee(()=>C(t).popper),s=Y(Ln(e.zIndex)?e.zIndex:o()),l=ee(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=ee(()=>[{zIndex:C(s)},C(n).popper,e.popperStyle||{}]),d=ee(()=>r.value==="dialog"?"false":void 0),c=ee(()=>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()}}},dze=et({name:"ElPopperContent"}),fze=et({...dze,props:N1e,emits:eze,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=tze(r,n),{attributes:c,arrowRef:f,contentRef:p,styles:v,instanceRef:h,role:g,update:y}=uze(r),{ariaModal:m,arrowStyle:b,contentAttrs:w,contentClass:A,contentStyle:S,updateZIndex:k}=cze(r,{styles:v,attributes:c,role:g}),O=un(Fd,void 0);Sr(h1e,{arrowStyle:b,arrowRef:f}),O&&Sr(Fd,{...O,addInputId:go,removeInputId:go});let I;const P=(_=!0)=>{y(),_&&k()},M=()=>{P(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return jn(()=>{Ct(()=>r.triggerTargetEl,(_,R)=>{I?.(),I=void 0;const N=C(_||p.value),V=C(R||p.value);al(N)&&(I=Ct([g,()=>r.ariaLabel,m,()=>r.id],L=>{["role","aria-label","aria-modal","id"].forEach((j,H)=>{Zi(L[H])?N.removeAttribute(j):N.setAttribute(j,L[H])})},{immediate:!0})),V!==N&&al(V)&&["role","aria-label","aria-modal","id"].forEach(L=>{V.removeAttribute(L)})},{immediate:!0}),Ct(()=>r.visible,M,{immediate:!0})}),Yr(()=>{I?.(),I=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:P,contentStyle:S}),(_,R)=>(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)}),[$e(C(Bb),{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(()=>[pt(_.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var pze=en(fze,[["__file","content.vue"]]);const R1e=er(_Fe),$H=Symbol("elTooltip"),sD=Yt({to:{type:lt([String,Object]),required:!0},disabled:Boolean}),oi=Yt({...Jme,...N1e,appendTo:{type:sD.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:lt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Es(["ariaLabel"])}),J1=Yt({...m1e,disabled:Boolean,trigger:{type:lt([String,Array]),default:"hover"},triggerKeys:{type:lt(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space]}}),hze=Gc({type:lt(Boolean),default:null}),gze=Gc({type:lt(Function)}),vze=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:hze,[n]:gze};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:c})=>{const f=vr(),{emit:p}=f,v=f.props,h=ee(()=>Pn(v[n])),g=ee(()=>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 O=h.value&&Kr;O&&p(t,!0),(g.value||!O)&&y(k)},w=k=>{if(v.disabled===!0||!Kr)return;const O=h.value&&Kr;O&&p(t,!1),(g.value||!O)&&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 Ct(()=>v[e],A),l&&f.appContext.config.globalProperties.$route!==void 0&&Ct(()=>({...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:mze,useModelToggleEmits:yze,useModelToggle:bze}=vze("visible"),wze=Yt({...v1e,...mze,...oi,...J1,...P1e,showArrow:{type:Boolean,default:!0}}),Aze=[...yze,"before-show","before-hide","show","hide","open","close"],Cze=(e,t)=>qt(e)?e.includes(t):e===t,Om=(e,t,n)=>r=>{Cze(C(e),t)&&n(r)},Ni=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=e?.(o);if(n===!1||!i)return t?.(o)},CJ=e=>t=>t.pointerType==="mouse"?e(t):void 0,xze=et({name:"ElTooltipTrigger"}),Sze=et({...xze,props:J1,setup(e,{expose:t}){const n=e,r=jt("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=un($H,void 0),d=Y(null),c=()=>{if(C(o)||n.disabled)return!0},f=ao(n,"trigger"),p=Ni(c,Om(f,"hover",s)),v=Ni(c,Om(f,"hover",l)),h=Ni(c,Om(f,"click",w=>{w.button===0&&u(w)})),g=Ni(c,Om(f,"focus",s)),y=Ni(c,Om(f,"focus",l)),m=Ni(c,Om(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(LFe),{id:C(i),"virtual-ref":w.virtualRef,open:C(a),"virtual-triggering":w.virtualTriggering,class:oe(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(()=>[pt(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Eze=en(Sze,[["__file","trigger.vue"]]);const kze=et({__name:"teleport",props:sD,setup(e){return(t,n)=>t.disabled?pt(t.$slots,"default",{key:0}):(F(),mt(QB,{key:1,to:t.to},[pt(t.$slots,"default")],8,["to"]))}});var Tze=en(kze,[["__file","teleport.vue"]]);const Lb=er(Tze),B1e=()=>{const e=tH(),t=TH(),n=ee(()=>`${e.value}-popper-container-${t.prefix}`),r=ee(()=>`#${n.value}`);return{id:n,selector:r}},_ze=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Dze=()=>{const{id:e,selector:t}=B1e();return N_(()=>{Kr&&(document.body.querySelector(t.value)||_ze(e.value))}),{id:e,selector:t}},Ize=et({name:"ElTooltipContent",inheritAttrs:!1}),Oze=et({...Ize,props:oi,setup(e,{expose:t}){const n=e,{selector:r}=B1e(),o=jt("tooltip"),i=Y(),a=mE(()=>{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}=un($H,void 0),m=ee(()=>n.transition||`${o.namespace.value}-fade-in-linear`),b=ee(()=>n.persistent);Yr(()=>{s?.()});const w=ee(()=>C(b)?!0:C(d)),A=ee(()=>n.disabled?!1:C(d)),S=ee(()=>n.appendTo||r.value),k=ee(()=>{var H;return(H=n.style)!=null?H:{}}),O=Y(!0),I=()=>{h(),j()&&bf(document.body),O.value=!0},P=()=>{if(C(l))return!0},M=Ni(P,()=>{n.enterable&&C(c)==="hover"&&p()}),_=Ni(P,()=>{C(c)==="hover"&&f()}),R=()=>{var H,G;(G=(H=i.value)==null?void 0:H.updatePopper)==null||G.call(H),g?.()},N=()=>{y?.()},V=()=>{v()},L=()=>{n.virtualTriggering||f()},j=H=>{var G;const Z=(G=i.value)==null?void 0:G.popperContentRef,z=H?.relatedTarget||document.activeElement;return Z?.contains(z)};return Ct(()=>C(d),H=>{H?(O.value=!1,s=yH(a,()=>{if(C(l))return;C(c)!=="hover"&&f()})):s?.()},{flush:"post"}),Ct(()=>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(Lb),{disabled:!H.teleported,to:C(S)},{default:nt(()=>[C(w)||!O.value?(F(),mt(Wi,{key:0,name:C(m),appear:!C(b),onAfterLeave:I,onBeforeEnter:R,onAfterEnter:V,onBeforeLeave:N,persisted:""},{default:nt(()=>[an($e(C(pze),pr({id:C(u),ref_key:"contentRef",ref:i},H.$attrs,{"aria-label":H.ariaLabel,"aria-hidden":O.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(M),onMouseleave:C(_),onBlur:L,onClose:C(f)}),{default:nt(()=>[pt(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 Mze=en(Oze,[["__file","content.vue"]]);const Pze=et({name:"ElTooltip"}),Nze=et({...Pze,props:wze,emits:Aze,setup(e,{expose:t,emit:n}){const r=e;Dze();const o=jt("tooltip"),i=ds(),a=Y(),s=Y(),l=()=>{var b;const w=C(a);w&&((b=w.popperInstanceRef)==null||b.update())},u=Y(!1),d=Y(),{show:c,hide:f,hasUpdateHandler:p}=bze({indicator:u,toggleReason:d}),{onOpen:v,onClose:h}=e1e({showAfter:ao(r,"showAfter"),hideAfter:ao(r,"hideAfter"),autoClose:ao(r,"autoClose"),open:c,close:f}),g=ee(()=>Co(r.visible)&&!p.value),y=ee(()=>[o.b(),r.popperClass]);Sr($H,{controlled:g,id:i,open:xb(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}),Ct(()=>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 mge(()=>u.value&&f()),t({popperRef:a,contentRef:s,isFocusInsideContent:m,updatePopper:l,onOpen:v,onClose:h,hide:f}),(b,w)=>(F(),mt(C(R1e),{ref_key:"popperRef",ref:a,role:b.role},{default:nt(()=>[$e(Eze,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:nt(()=>[b.$slots.default?pt(b.$slots,"default",{key:0}):xe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),$e(Mze,{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(()=>[pt(b.$slots,"content",{},()=>[b.rawContent?(F(),K("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(F(),K("span",{key:1},ze(b.content),1))]),b.showArrow?(F(),mt(C(OFe),{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 Rze=en(Nze,[["__file","tooltip.vue"]]);const fs=er(Rze),Bze=Yt({...MC,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:lt(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:lt([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}),Lze={[Gn]:e=>Dn(e),[ma]:e=>Dn(e),[Tr]:e=>Dn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ar(e)},L1e="ElAutocomplete",Fze=et({name:L1e,inheritAttrs:!1}),Uze=et({...Fze,props:Bze,emits:Lze,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>ru(r,Object.keys(MC))),i=pp(),a=Wa(),s=jt("autocomplete"),l=Y(),u=Y(),d=Y(),c=Y();let f=!1,p=!1;const v=Y([]),h=Y(-1),g=Y(""),y=Y(!1),m=Y(!1),b=Y(!1),w=ds(),A=ee(()=>i.style),S=ee(()=>(v.value.length>0||b.value)&&y.value),k=ee(()=>!r.hideLoading&&b.value),O=ee(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),I=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},P=()=>{h.value=-1},M=async X=>{if(m.value)return;const ue=me=>{b.value=!1,!m.value&&(qt(me)?(v.value=me,h.value=r.highlightFirstItem?0:-1):Ji(L1e,"autocomplete suggestions must be an array"))};if(b.value=!0,qt(r.fetchSuggestions))ue(r.fetchSuggestions);else{const me=await r.fetchSuggestions(X,ue);qt(me)&&ue(me)}},_=Fl(M,r.debounce),R=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"||O.value.includes(document.activeElement))&&(y.value=!0)},V=X=>{n(Tr,X)},L=X=>{var ue;if(p)p=!1;else{y.value=!0,n("focus",X);const me=(ue=r.modelValue)!=null?ue:"";r.triggerOnFocus&&!f&&_(String(me))}},j=X=>{setTimeout(()=>{var ue;if((ue=d.value)!=null&&ue.isFocusInsideContent()){p=!0;return}y.value&&z(),n("blur",X)})},H=()=>{y.value=!1,n(Gn,""),n("clear")},G=async()=>{S.value&&h.value>=0&&h.value<v.value.length?re(v.value[h.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],h.value=-1)},Z=X=>{S.value&&(X.preventDefault(),X.stopPropagation(),z())},z=()=>{y.value=!1},U=()=>{var X;(X=l.value)==null||X.focus()},W=()=>{var X;(X=l.value)==null||X.blur()},re=async X=>{n(ma,X[r.valueKey]),n(Gn,X[r.valueKey]),n("select",X),v.value=[],h.value=-1},J=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],Ae=ue.scrollTop,{offsetTop:ge,scrollHeight:_e}=Me;ge+_e>Ae+ue.clientHeight&&(ue.scrollTop+=_e),ge<Ae&&(ue.scrollTop-=_e),h.value=X,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${h.value}`)},te=yH(c,()=>{var X;(X=d.value)!=null&&X.isFocusInsideContent()||S.value&&z()});return Yr(()=>{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:re,handleKeyEnter:G,focus:U,blur:W,close:z,highlight:J,getData:M}),(X,ue)=>(F(),mt(C(fs),{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:I,onHide:P},{content:nt(()=>[x("div",{ref_key:"regionRef",ref:u,class:oe([C(s).b("suggestion"),C(s).is("loading",C(k))]),style:Jt({[X.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[X.$slots.header?(F(),K("div",{key:0,class:oe(C(s).be("suggestion","header")),onClick:Qt(()=>{},["stop"])},[pt(X.$slots,"header")],10,["onClick"])):xe("v-if",!0),$e(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},[pt(X.$slots,"loading",{},()=>[$e(C(_n),{class:oe(C(s).is("loading"))},{default:nt(()=>[$e(C(Bc))]),_:1},8,["class"])])])):(F(!0),K(Nt,{key:1},on(v.value,(me,Me)=>(F(),K("li",{id:`${C(w)}-item-${Me}`,key:Me,class:oe({highlighted:h.value===Me}),role:"option","aria-selected":h.value===Me,onClick:Ae=>re(me)},[pt(X.$slots,"default",{item:me},()=>[An(ze(me[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:oe(C(s).be("suggestion","footer")),onClick:Qt(()=>{},["stop"])},[pt(X.$slots,"footer")],10,["onClick"])):xe("v-if",!0)],6)]),default:nt(()=>[x("div",{ref_key:"listboxRef",ref:c,class:oe([C(s).b(),X.$attrs.class]),style:Jt(C(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":C(S),"aria-owns":C(w)},[$e(C(Us),pr({ref_key:"inputRef",ref:l},pr(C(o),X.$attrs),{"model-value":X.modelValue,disabled:C(a),onInput:R,onChange:V,onFocus:L,onBlur:j,onClear:H,onKeydown:[Lr(Qt(me=>J(h.value-1),["prevent"]),["up"]),Lr(Qt(me=>J(h.value+1),["prevent"]),["down"]),Lr(G,["enter"]),Lr(z,["tab"]),Lr(Z,["esc"])],onMousedown:N}),Ll({_:2},[X.$slots.prepend?{name:"prepend",fn:nt(()=>[pt(X.$slots,"prepend")])}:void 0,X.$slots.append?{name:"append",fn:nt(()=>[pt(X.$slots,"append")])}:void 0,X.$slots.prefix?{name:"prefix",fn:nt(()=>[pt(X.$slots,"prefix")])}:void 0,X.$slots.suffix?{name:"suffix",fn:nt(()=>[pt(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 zze=en(Uze,[["__file","autocomplete.vue"]]);const $ze=er(zze),jze=Yt({size:{type:[Number,String],values:Yd,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:lt(String),default:"cover"}}),Hze={error:e=>e instanceof Event},Wze=et({name:"ElAvatar"}),Vze=et({...Wze,props:jze,emits:Hze,setup(e,{emit:t}){const n=e,r=jt("avatar"),o=Y(!1),i=ee(()=>{const{size:u,icon:d,shape:c}=n,f=[r.b()];return Dn(u)&&f.push(r.m(u)),d&&f.push(r.m("icon")),c&&f.push(r.m(c)),f}),a=ee(()=>{const{size:u}=n;return Ln(u)?r.cssVarBlock({size:_i(u)||""}):void 0}),s=ee(()=>({objectFit:n.fit}));Ct(()=>n.src,()=>o.value=!1);function l(u){o.value=!0,t("error",u)}return(u,d)=>(F(),K("span",{class:oe(C(i)),style:Jt(C(a))},[(u.src||u.srcSet)&&!o.value?(F(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Jt(C(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(F(),mt(C(_n),{key:1},{default:nt(()=>[(F(),mt(hr(u.icon)))]),_:1})):pt(u.$slots,"default",{key:2})],6))}});var qze=en(Vze,[["__file","avatar.vue"]]);const Gze=er(qze),Kze={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Yze={click:e=>e instanceof MouseEvent},Qze=(e,t,n)=>{const r=Uo(),o=Uo(),i=Y(!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=Lme(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||Ji(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},F1e="ElBacktop",Zze=et({name:F1e}),Xze=et({...Zze,props:Kze,emits:Yze,setup(e,{emit:t}){const n=e,r=jt("backtop"),{handleClick:o,visible:i}=Qze(n,t,F1e),a=ee(()=>({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:Jt(C(a)),class:oe(C(r).b()),onClick:Qt(C(o),["stop"])},[pt(s.$slots,"default",{},()=>[$e(C(_n),{class:oe(C(r).e("icon"))},{default:nt(()=>[$e(C(HBe))]),_:1},8,["class"])])],14,["onClick"])):xe("v-if",!0)]),_:3},8,["name"]))}});var Jze=en(Xze,[["__file","backtop.vue"]]);const e$e=er(Jze),t$e=Yt({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:lt([String,Object,Array])},offset:{type:lt(Array),default:[0,0]},badgeClass:{type:String}}),n$e=et({name:"ElBadge"}),r$e=et({...n$e,props:t$e,setup(e,{expose:t}){const n=e,r=jt("badge"),o=ee(()=>n.isDot?"":Ln(n.value)&&Ln(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=ee(()=>{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:oe(C(r).b())},[pt(a.$slots,"default"),$e(Wi,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:nt(()=>[an(x("sup",{class:oe([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:Jt(C(i))},[pt(a.$slots,"content",{value:C(o)},()=>[An(ze(C(o)),1)])],6),[[Ar,!a.hidden&&(C(o)||a.isDot||a.$slots.content)]])]),_:3},8,["name"])],2))}});var o$e=en(r$e,[["__file","badge.vue"]]);const U1e=er(o$e),z1e=Symbol("breadcrumbKey"),i$e=Yt({separator:{type:String,default:"/"},separatorIcon:{type:vo}}),a$e=et({name:"ElBreadcrumb"}),s$e=et({...a$e,props:i$e,setup(e){const t=e,{t:n}=Hr(),r=jt("breadcrumb"),o=Y();return Sr(z1e,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:oe(C(r).b()),"aria-label":C(n)("el.breadcrumb.label"),role:"navigation"},[pt(i.$slots,"default")],10,["aria-label"]))}});var l$e=en(s$e,[["__file","breadcrumb.vue"]]);const u$e=Yt({to:{type:lt([String,Object]),default:""},replace:Boolean}),c$e=et({name:"ElBreadcrumbItem"}),d$e=et({...c$e,props:u$e,setup(e){const t=e,n=vr(),r=un(z1e,void 0),o=jt("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=Y(),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:oe(C(o).e("item"))},[x("span",{ref_key:"link",ref:a,class:oe([C(o).e("inner"),C(o).is("link",!!l.to)]),role:"link",onClick:s},[pt(l.$slots,"default")],2),(d=C(r))!=null&&d.separatorIcon?(F(),mt(C(_n),{key:0,class:oe(C(o).e("separator"))},{default:nt(()=>[(F(),mt(hr(C(r).separatorIcon)))]),_:1},8,["class"])):(F(),K("span",{key:1,class:oe(C(o).e("separator")),role:"presentation"},ze((c=C(r))==null?void 0:c.separator),3))],2)}}});var $1e=en(d$e,[["__file","breadcrumb-item.vue"]]);const f$e=er(l$e,{BreadcrumbItem:$1e}),p$e=vi($1e),j1e=Symbol("buttonGroupContextKey"),Lf=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{Ct(()=>C(a),s=>{},{immediate:!0})},h$e=(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"},ee(()=>e.type==="text"));const n=un(j1e,void 0),r=Nb("button"),{form:o}=ks(),i=fa(ee(()=>n?.size)),a=Wa(),s=Y(),l=pa(),u=ee(()=>{var y;return e.type||n?.type||((y=r.value)==null?void 0:y.type)||""}),d=ee(()=>{var y,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?b:!1}),c=ee(()=>{var y,m,b;return(b=(m=e.plain)!=null?m:(y=r.value)==null?void 0:y.plain)!=null?b:!1}),f=ee(()=>{var y,m,b;return(b=(m=e.round)!=null?m:(y=r.value)==null?void 0:y.round)!=null?b:!1}),p=ee(()=>{var y,m,b;return(b=(m=e.text)!=null?m:(y=r.value)==null?void 0:y.text)!=null?b:!1}),v=ee(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=ee(()=>{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===Eb){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)}}},CL=["default","primary","success","warning","info","danger","text",""],g$e=["button","submit","reset"],xL=Yt({size:ba,disabled:Boolean,type:{type:String,values:CL,default:""},icon:{type:vo},nativeType:{type:String,values:g$e,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:lt([String,Object]),default:"button"}}),v$e={click:e=>e instanceof MouseEvent};function xs(e,t){m$e(e)&&(e="100%");var n=y$e(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 bx(e){return Math.min(1,Math.max(0,e))}function m$e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function y$e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function H1e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ng(e){return e.length===1?"0"+e:String(e)}function b$e(e,t,n){return{r:xs(e,255)*255,g:xs(t,255)*255,b:xs(n,255)*255}}function xJ(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 vI(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 w$e(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=vI(s,a,e+1/3),o=vI(s,a,e),i=vI(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function SJ(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 A$e(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 EJ(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 C$e(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(x$e(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 x$e(e){return Math.round(parseFloat(e)*255).toString(16)}function kJ(e){return Yl(e)/255}function Yl(e){return parseInt(e,16)}function S$e(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var SL={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 E$e(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=_$e(e)),typeof e=="object"&&(lf(e.r)&&lf(e.g)&&lf(e.b)?(t=b$e(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=wx(e.s),o=wx(e.v),t=A$e(e.h,r,o),a=!0,s="hsv"):lf(e.h)&&lf(e.s)&&lf(e.l)&&(r=wx(e.s),i=wx(e.l),t=w$e(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=H1e(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 k$e="[-\\+]?\\d+%?",T$e="[-\\+]?\\d*\\.\\d+%?",gh="(?:".concat(T$e,")|(?:").concat(k$e,")"),mI="[\\s|\\(]+(".concat(gh,")[,|\\s]+(").concat(gh,")[,|\\s]+(").concat(gh,")\\s*\\)?"),yI="[\\s|\\(]+(".concat(gh,")[,|\\s]+(").concat(gh,")[,|\\s]+(").concat(gh,")[,|\\s]+(").concat(gh,")\\s*\\)?"),dc={CSS_UNIT:new RegExp(gh),rgb:new RegExp("rgb"+mI),rgba:new RegExp("rgba"+yI),hsl:new RegExp("hsl"+mI),hsla:new RegExp("hsla"+yI),hsv:new RegExp("hsv"+mI),hsva:new RegExp("hsva"+yI),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 _$e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(SL[e])e=SL[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:Yl(n[1]),g:Yl(n[2]),b:Yl(n[3]),a:kJ(n[4]),format:t?"name":"hex8"}:(n=dc.hex6.exec(e),n?{r:Yl(n[1]),g:Yl(n[2]),b:Yl(n[3]),format:t?"name":"hex"}:(n=dc.hex4.exec(e),n?{r:Yl(n[1]+n[1]),g:Yl(n[2]+n[2]),b:Yl(n[3]+n[3]),a:kJ(n[4]+n[4]),format:t?"name":"hex8"}:(n=dc.hex3.exec(e),n?{r:Yl(n[1]+n[1]),g:Yl(n[2]+n[2]),b:Yl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function lf(e){return!!dc.CSS_UNIT.exec(String(e))}var B1=(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=S$e(t)),this.originalInput=t;var o=E$e(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=H1e(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=SJ(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=SJ(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=xJ(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=xJ(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),EJ(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),C$e(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="#"+EJ(this.r,this.g,this.b,!1),n=0,r=Object.entries(SL);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=bx(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=bx(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=bx(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=bx(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 Ip(e,t=20){return e.mix("#141414",t).toString()}function D$e(e){const t=Wa(),n=jt("button");return ee(()=>{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 B1(o),s=e.dark?a.tint(20).toString():Ip(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ip(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Ip(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?Ip(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ip(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ip(a,80):a.tint(80).toString());else{const l=e.dark?Ip(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?Ip(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 I$e=et({name:"ElButton"}),O$e=et({...I$e,props:xL,emits:v$e,setup(e,{expose:t,emit:n}){const r=e,o=D$e(r),i=jt("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:d,_plain:c,_round:f,_text:p,shouldAddSpace:v,handleClick:h}=h$e(r,n),g=ee(()=>[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(Nt,{key:0},[y.$slots.loading?pt(y.$slots,"loading",{key:0}):(F(),mt(C(_n),{key:1,class:oe(C(i).is("loading"))},{default:nt(()=>[(F(),mt(hr(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(F(),mt(C(_n),{key:1},{default:nt(()=>[y.icon?(F(),mt(hr(y.icon),{key:0})):pt(y.$slots,"icon",{key:1})]),_:3})):xe("v-if",!0),y.$slots.default?(F(),K("span",{key:2,class:oe({[C(i).em("text","expand")]:C(v)})},[pt(y.$slots,"default")],2)):xe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var M$e=en(O$e,[["__file","button.vue"]]);const P$e={size:xL.size,type:xL.type},N$e=et({name:"ElButtonGroup"}),R$e=et({...N$e,props:P$e,setup(e){const t=e;Sr(j1e,Ur({size:ao(t,"size"),type:ao(t,"type")}));const n=jt("button");return(r,o)=>(F(),K("div",{class:oe(C(n).b("group"))},[pt(r.$slots,"default")],2))}});var W1e=en(R$e,[["__file","button-group.vue"]]);const Za=er(M$e,{ButtonGroup:W1e}),V1e=vi(W1e);var zs=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 B$e(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 xS={exports:{}},L$e=xS.exports,TJ;function F$e(){return TJ||(TJ=1,(function(e,t){(function(n,r){e.exports=r()})(L$e,(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 V=["th","st","nd","rd"],L=N%100;return"["+N+(V[(L-20)%10]||V[L]||V[0])+"]"}},b=function(N,V,L){var j=String(N);return!j||j.length>=V?N:""+Array(V+1-j.length).join(L)+N},w={s:b,z:function(N){var V=-N.utcOffset(),L=Math.abs(V),j=Math.floor(L/60),H=L%60;return(V<=0?"+":"-")+b(j,2,"0")+":"+b(H,2,"0")},m:function N(V,L){if(V.date()<L.date())return-N(L,V);var j=12*(L.year()-V.year())+(L.month()-V.month()),H=V.clone().add(j,c),G=L-H<0,Z=V.clone().add(j+(G?-1:1),c);return+(-(j+(L-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",O=function(N){return N instanceof _||!(!N||!N[k])},I=function N(V,L,j){var H;if(!V)return A;if(typeof V=="string"){var G=V.toLowerCase();S[G]&&(H=G),L&&(S[G]=L,H=G);var Z=V.split("-");if(!H&&Z.length>1)return N(Z[0])}else{var z=V.name;S[z]=V,H=z}return!j&&H&&(A=H),H||!j&&A},P=function(N,V){if(O(N))return N.clone();var L=typeof V=="object"?V:{};return L.date=N,L.args=arguments,new _(L)},M=w;M.l=I,M.i=O,M.w=function(N,V){return P(N,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var _=(function(){function N(L){this.$L=I(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var V=N.prototype;return V.parse=function(L){this.$d=(function(j){var H=j.date,G=j.utc;if(H===null)return new Date(NaN);if(M.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=Z[2]-1||0,U=(Z[7]||"0").substring(0,3);return G?new Date(Date.UTC(Z[1],z,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,U)):new Date(Z[1],z,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,U)}}return new Date(H)})(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return M},V.isValid=function(){return this.$d.toString()!==h},V.isSame=function(L,j){var H=P(L);return this.startOf(j)<=H&&H<=this.endOf(j)},V.isAfter=function(L,j){return P(L)<this.startOf(j)},V.isBefore=function(L,j){return this.endOf(j)<P(L)},V.$g=function(L,j,H){return M.u(L)?this[j]:this.set(H,L)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(L,j){var H=this,G=!!M.u(j)||j,Z=M.p(L),z=function(me,Me){var Ae=M.w(H.$u?Date.UTC(H.$y,Me,me):new Date(H.$y,Me,me),H);return G?Ae:Ae.endOf(u)},U=function(me,Me){return M.w(H.toDate()[me].apply(H.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(Me)),H)},W=this.$W,re=this.$M,J=this.$D,te="set"+(this.$u?"UTC":"");switch(Z){case p:return G?z(1,0):z(31,11);case c:return G?z(1,re):z(0,re+1);case d:var X=this.$locale().weekStart||0,ue=(W<X?W+7:W)-X;return z(G?J-ue:J+(6-ue),re);case u:case v:return U(te+"Hours",0);case l:return U(te+"Minutes",1);case s:return U(te+"Seconds",2);case a:return U(te+"Milliseconds",3);default:return this.clone()}},V.endOf=function(L){return this.startOf(L,!1)},V.$set=function(L,j){var H,G=M.p(L),Z="set"+(this.$u?"UTC":""),z=(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],U=G===u?this.$D+(j-this.$W):j;if(G===c||G===p){var W=this.clone().set(v,1);W.$d[z](U),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},V.set=function(L,j){return this.clone().$set(L,j)},V.get=function(L){return this[M.p(L)]()},V.add=function(L,j){var H,G=this;L=Number(L);var Z=M.p(j),z=function(re){var J=P(G);return M.w(J.date(J.date()+Math.round(re*L)),G)};if(Z===c)return this.set(c,this.$M+L);if(Z===p)return this.set(p,this.$y+L);if(Z===u)return z(1);if(Z===d)return z(7);var U=(H={},H[s]=r,H[l]=o,H[a]=n,H)[Z]||1,W=this.$d.getTime()+L*U;return M.w(W,this)},V.subtract=function(L,j){return this.add(-1*L,j)},V.format=function(L){var j=this,H=this.$locale();if(!this.isValid())return H.invalidDate||h;var G=L||"YYYY-MM-DDTHH:mm:ssZ",Z=M.z(this),z=this.$H,U=this.$m,W=this.$M,re=H.weekdays,J=H.months,te=H.meridiem,X=function(Me,Ae,ge,_e){return Me&&(Me[Ae]||Me(j,G))||ge[Ae].slice(0,_e)},ue=function(Me){return M.s(z%12||12,Me,"0")},me=te||function(Me,Ae,ge){var _e=Me<12?"AM":"PM";return ge?_e.toLowerCase():_e};return G.replace(y,(function(Me,Ae){return Ae||(function(ge){switch(ge){case"YY":return String(j.$y).slice(-2);case"YYYY":return M.s(j.$y,4,"0");case"M":return W+1;case"MM":return M.s(W+1,2,"0");case"MMM":return X(H.monthsShort,W,J,3);case"MMMM":return X(J,W);case"D":return j.$D;case"DD":return M.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return X(H.weekdaysMin,j.$W,re,2);case"ddd":return X(H.weekdaysShort,j.$W,re,3);case"dddd":return re[j.$W];case"H":return String(z);case"HH":return M.s(z,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return me(z,U,!0);case"A":return me(z,U,!1);case"m":return String(U);case"mm":return M.s(U,2,"0");case"s":return String(j.$s);case"ss":return M.s(j.$s,2,"0");case"SSS":return M.s(j.$ms,3,"0");case"Z":return Z}return null})(Me)||Z.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(L,j,H){var G,Z=this,z=M.p(j),U=P(L),W=(U.utcOffset()-this.utcOffset())*r,re=this-U,J=function(){return M.m(Z,U)};switch(z){case p:G=J()/12;break;case c:G=J();break;case f:G=J()/3;break;case d:G=(re-W)/6048e5;break;case u:G=(re-W)/864e5;break;case l:G=re/o;break;case s:G=re/r;break;case a:G=re/n;break;default:G=re}return H?G:M.a(G)},V.daysInMonth=function(){return this.endOf(c).$D},V.$locale=function(){return S[this.$L]},V.locale=function(L,j){if(!L)return this.$L;var H=this.clone(),G=I(L,j,!0);return G&&(H.$L=G),H},V.clone=function(){return M.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},N})(),R=_.prototype;return P.prototype=R,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",c],["$y",p],["$D",v]].forEach((function(N){R[N[1]]=function(V){return this.$g(V,N[0],N[1])}})),P.extend=function(N,V){return N.$i||(N(V,_,P),N.$i=!0),P},P.locale=I,P.isDayjs=O,P.unix=function(N){return P(1e3*N)},P.en=S[A],P.Ls=S,P.p={},P}))})(xS)),xS.exports}var U$e=F$e();const rr=mu(U$e),bI=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Dh=e=>Array.from(Array.from({length:e}).keys()),q1e=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),G1e=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),_J=function(e,t){const n=Xh(e),r=Xh(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},K1e=function(e,t){const n=qt(e),r=qt(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>_J(o,t[i])):!n&&!r?_J(e,t):!1},DJ=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},IJ=function(e,t,n){return Jl(t)?e:t==="x"?+e:rr(e).locale(n).format(t)},wI=(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},SS=e=>qt(e)?e.map(t=>t.toDate()):e.toDate(),z$e=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Dh(t).map((r,o)=>n-(t-o-1))},$$e=e=>{const t=e.daysInMonth();return Dh(t).map((n,r)=>r+1)},j$e=e=>Dh(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),H$e=Yt({selectedDay:{type:lt(Object)},range:{type:lt(Array)},date:{type:lt(Object),required:!0},hideHeader:{type:Boolean}}),W$e={pick:e=>ar(e)};var ES={exports:{}},V$e=ES.exports,OJ;function q$e(){return OJ||(OJ=1,(function(e,t){(function(n,r){e.exports=r()})(V$e,(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)}}}))})(ES)),ES.exports}var G$e=q$e();const Y1e=mu(G$e),K$e=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],AI=["sun","mon","tue","wed","thu","fri","sat"],Y$e=(e,t)=>{rr.extend(Y1e);const n=rr.localeData().firstDayOfWeek(),{t:r,lang:o}=Hr(),i=rr().locale(o.value),a=ee(()=>!!e.range&&!!e.range.length),s=ee(()=>{let f=[];if(a.value){const[p,v]=e.range,h=Dh(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=Dh(g).map((m,b)=>({text:b+1,type:"next"}));f=h.concat(y)}else{const p=e.date.startOf("month").day(),v=z$e(e.date,(p-n+7)%7).map(m=>({text:m,type:"prev"})),h=$$e(e.date).map(m=>({text:m,type:"current"}));f=[...v,...h];const g=7-(f.length%7||7),y=Dh(g).map((m,b)=>({text:b+1,type:"next"}));f=f.concat(y)}return j$e(f)}),l=ee(()=>{const f=n;return f===0?AI.map(p=>r(`el.datepicker.weeks.${p}`)):AI.slice(f).concat(AI.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()}}}},Q$e=et({name:"DateTable"}),Z$e=et({...Q$e,props:H$e,emits:W$e,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:d}=Y$e(r,n),c=jt("calendar-table"),f=jt("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:oe([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(Nt,null,on(C(s),g=>(F(),K("th",{key:g,scope:"col"},ze(g),1))),128))])])),x("tbody",null,[(F(!0),K(Nt,null,on(C(a),(g,y)=>(F(),K("tr",{key:y,class:oe({[C(c).e("row")]:!0,[C(c).em("row","hide-border")]:y===0&&v.hideHeader})},[(F(!0),K(Nt,null,on(g,(m,b)=>(F(),K("td",{key:b,class:oe(p(m)),onClick:w=>C(u)(m)},[x("div",{class:oe(C(f).b())},[pt(v.$slots,"date-cell",{data:C(d)(m)},()=>[x("span",null,ze(m.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var MJ=en(Z$e,[["__file","date-table.vue"]]);const X$e=(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]]},J$e=(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]]},eje=(e,t,n)=>{const{lang:r}=Hr(),o=Y(),i=rr().locale(r.value),a=ee({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=ee(()=>{if(!e.range||!qt(e.range)||e.range.length!==2||e.range.some(b=>!Xh(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=ee(()=>e.modelValue?rr(e.modelValue).locale(r.value):a.value||(s.value.length?s.value[0][0]:i)),u=ee(()=>l.value.subtract(1,"month").date(1)),d=ee(()=>l.value.add(1,"month").date(1)),c=ee(()=>l.value.subtract(1,"year").date(1)),f=ee(()=>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?X$e(m,b):w+2===A||(w+1)%11===A?J$e(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}},tje=e=>qt(e)&&e.length===2&&e.every(t=>Xh(t)),nje=Yt({modelValue:{type:Date},range:{type:lt(Array),validator:tje}}),rje={[Gn]:e=>Xh(e),[ma]:e=>Xh(e)},oje="ElCalendar",ije=et({name:oje}),aje=et({...ije,props:nje,emits:rje,setup(e,{expose:t,emit:n}){const r=e,o=jt("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:d}=eje(r,n),{t:c}=Hr(),f=ee(()=>{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:oe(C(o).b())},[x("div",{class:oe(C(o).e("header"))},[pt(p.$slots,"header",{date:C(f)},()=>[x("div",{class:oe(C(o).e("title"))},ze(C(f)),3),C(d).length===0?(F(),K("div",{key:0,class:oe(C(o).e("button-group"))},[$e(C(V1e),null,{default:nt(()=>[$e(C(Za),{size:"small",onClick:h=>C(u)("prev-month")},{default:nt(()=>[An(ze(C(c)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),$e(C(Za),{size:"small",onClick:h=>C(u)("today")},{default:nt(()=>[An(ze(C(c)("el.datepicker.today")),1)]),_:1},8,["onClick"]),$e(C(Za),{size:"small",onClick:h=>C(u)("next-month")},{default:nt(()=>[An(ze(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:oe(C(o).e("body"))},[$e(MJ,{date:C(a),"selected-day":C(l),onPick:C(s)},Ll({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:nt(h=>[pt(p.$slots,"date-cell",Sl(Bd(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(F(),K("div",{key:1,class:oe(C(o).e("body"))},[(F(!0),K(Nt,null,on(C(d),(h,g)=>(F(),mt(MJ,{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=>[pt(p.$slots,"date-cell",Sl(Bd(y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var sje=en(aje,[["__file","calendar.vue"]]);const lje=er(sje),uje=Yt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:lt([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),cje=et({name:"ElCard"}),dje=et({...cje,props:uje,setup(e){const t=Nb("card"),n=jt("card");return(r,o)=>{var i;return F(),K("div",{class:oe([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:oe([C(n).e("header"),r.headerClass])},[pt(r.$slots,"header",{},()=>[An(ze(r.header),1)])],2)):xe("v-if",!0),x("div",{class:oe([C(n).e("body"),r.bodyClass]),style:Jt(r.bodyStyle)},[pt(r.$slots,"default")],6),r.$slots.footer||r.footer?(F(),K("div",{key:1,class:oe([C(n).e("footer"),r.footerClass])},[pt(r.$slots,"footer",{},()=>[An(ze(r.footer),1)])],2)):xe("v-if",!0)],2)}}});var fje=en(dje,[["__file","card.vue"]]);const pje=er(fje),hje=Yt({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}),gje={change:(e,t)=>[e,t].every(Ln)},Q1e=Symbol("carouselContextKey"),EL="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 kL(e){return jo(e)&&e.type===Nt}function vje(e){return jo(e)&&e.type===ua}function mje(e){return jo(e)&&!kL(e)&&!vje(e)}const yje=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},bje=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},wje=(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),lD=(e,t)=>{const n=Uo({}),r=Uo([]),o=new WeakMap,i=d=>{n.value[d.uid]=d,dS(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)&&dS(n),p(v,h))}o.get(f).push(c)})},a=d=>{delete n.value[d.uid],dS(n);const c=d.getVnode().el,f=c.parentNode,p=o.get(f),v=p.indexOf(c);p.splice(v,1)},s=()=>{r.value=wje(e,t,n.value)},l=d=>d.render();return{children:r,addChild:i,removeChild:a,ChildrenSorter:et({setup(d,{slots:c}){return()=>(s(),c.default?Fn(l,{render:c.default}):null)}})}},PJ=300,Aje=(e,t,n)=>{const{children:r,addChild:o,removeChild:i,ChildrenSorter:a}=lD(vr(),EL),s=pa(),l=Y(-1),u=Y(null),d=Y(!1),c=Y(),f=Y(0),p=Y(!0),v=ee(()=>e.arrow!=="never"&&!C(y)),h=ee(()=>r.value.some(J=>J.props.label.toString().length>0)),g=ee(()=>e.type==="card"),y=ee(()=>e.direction==="vertical"),m=ee(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=qg(J=>{I(J)},PJ,{trailing:!0}),w=qg(J=>{j(J)},PJ),A=J=>p.value?l.value<=1?J<=1:J>1:!0;function S(){u.value&&(clearInterval(u.value),u.value=null)}function k(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>O(),e.interval))}const O=()=>{l.value<r.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function I(J){if(Dn(J)){const ue=r.value.filter(me=>me.props.name===J);ue.length>0&&(J=r.value.indexOf(ue[0]))}if(J=Number(J),Number.isNaN(J)||J!==Math.floor(J))return;const te=r.value.length,X=l.value;J<0?l.value=e.loop?te-1:0:J>=te?l.value=e.loop?0:te-1:l.value=J,X===l.value&&P(X),Z()}function P(J){r.value.forEach((te,X)=>{te.translateItem(X,l.value,J)})}function M(J,te){var X,ue,me,Me;const Ae=C(r),ge=Ae.length;if(ge===0||!J.states.inStage)return!1;const _e=te+1,Q=te-1,be=ge-1,De=Ae[be].states.active,pe=Ae[0].states.active,ie=(ue=(X=Ae[_e])==null?void 0:X.states)==null?void 0:ue.active,ce=(Me=(me=Ae[Q])==null?void 0:me.states)==null?void 0:Me.active;return te===be&&pe||ie?"left":te===0&&De||ce?"right":!1}function _(){d.value=!0,e.pauseOnHover&&S()}function R(){d.value=!1,k()}function N(J){C(y)||r.value.forEach((te,X)=>{J===M(te,X)&&(te.states.hover=!0)})}function V(){C(y)||r.value.forEach(J=>{J.states.hover=!1})}function L(J){l.value=J}function j(J){e.trigger==="hover"&&J!==l.value&&(l.value=J)}function H(){I(l.value-1)}function G(){I(l.value+1)}function Z(){S(),e.pauseOnHover||k()}function z(J){e.height==="auto"&&(f.value=J)}function U(){var J;const te=(J=s.default)==null?void 0:J.call(s);if(!te)return null;const ue=bd(te).filter(me=>jo(me)&&me.type.name===EL);return ue?.length===2&&e.loop&&!g.value?(p.value=!0,ue):(p.value=!1,null)}Ct(()=>l.value,(J,te)=>{P(te),p.value&&(J=J%2,te=te%2),te>-1&&t(Tr,J,te)});const W=ee({get:()=>p.value?l.value%2:l.value,set:J=>l.value=J});Ct(()=>e.autoplay,J=>{J?k():S()}),Ct(()=>e.loop,()=>{I(l.value)}),Ct(()=>e.interval,()=>{Z()});const re=Uo();return jn(()=>{Ct(()=>r.value,()=>{r.value.length>0&&I(e.initialIndex)},{immediate:!0}),re.value=li(c.value,()=>{P()}),k()}),Yr(()=>{S(),c.value&&re.value&&re.value.stop()}),Sr(Q1e,{root:c,isCardType:g,isVertical:y,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:I,setContainerHeight:z}),{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:V,handleIndicatorClick:L,handleMouseEnter:_,handleMouseLeave:R,setActiveItem:I,prev:H,next:G,PlaceholderItem:U,isTwoLengthShow:A,ItemsSorter:a,throttledArrowClick:b,throttledIndicatorHover:w}},Cje="ElCarousel",xje=et({name:Cje}),Sje=et({...xje,props:hje,emits:gje,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:O,throttledArrowClick:I,throttledIndicatorHover:P}=Aje(r,n),M=jt("carousel"),{t:_}=Hr(),R=ee(()=>{const j=[M.b(),M.m(r.direction)];return C(d)&&j.push(M.m("card")),j}),N=ee(()=>{const j=[M.e("indicators"),M.em("indicators",r.direction)];return C(l)&&j.push(M.em("indicators","labels")),r.indicatorPosition==="outside"&&j.push(M.em("indicators","outside")),C(f)&&j.push(M.em("indicators","right")),j});function V(j){if(!r.motionBlur)return;const H=C(f)?`${M.namespace.value}-transitioning-vertical`:`${M.namespace.value}-transitioning`;j.currentTarget.classList.add(H)}function L(j){if(!r.motionBlur)return;const H=C(f)?`${M.namespace.value}-transitioning-vertical`:`${M.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:oe(C(R)),onMouseenter:Qt(C(y),["stop"]),onMouseleave:Qt(C(m),["stop"])},[C(s)?(F(),mt(Wi,{key:0,name:"carousel-arrow-left",persisted:""},{default:nt(()=>[an(x("button",{type:"button",class:oe([C(M).e("arrow"),C(M).em("arrow","left")]),"aria-label":C(_)("el.carousel.leftArrow"),onMouseenter:G=>C(v)("left"),onMouseleave:C(h),onClick:Qt(G=>C(I)(C(i)-1),["stop"])},[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_: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(()=>[an(x("button",{type:"button",class:oe([C(M).e("arrow"),C(M).em("arrow","right")]),"aria-label":C(_)("el.carousel.rightArrow"),onMouseenter:G=>C(v)("right"),onMouseleave:C(h),onClick:Qt(G=>C(I)(C(i)+1),["stop"])},[$e(C(_n),null,{default:nt(()=>[$e(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:oe(C(M).e("container")),style:Jt(C(p)),onTransitionstart:V,onTransitionend:L},[$e(C(S)),pt(j.$slots,"default")],38),$e(C(O),null,{default:nt(()=>[j.indicatorPosition!=="none"?(F(),K("ul",{key:0,class:oe(C(N))},[(F(!0),K(Nt,null,on(C(c),(G,Z)=>an((F(),K("li",{key:Z,class:oe([C(M).e("indicator"),C(M).em("indicator",j.direction),C(M).is("active",Z===C(i))]),onMouseenter:z=>C(P)(Z),onClick:Qt(z=>C(g)(Z),["stop"])},[x("button",{class:oe(C(M).e("button")),"aria-label":C(_)("el.carousel.indicator",{index:Z+1})},[C(l)?(F(),K("span",{key:0},ze(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 Eje=en(Sje,[["__file","carousel.vue"]]);const kje=Yt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Tje=e=>{const t=un(Q1e),n=vr(),r=Y(),o=Y(!1),i=Y(0),a=Y(1),s=Y(!1),l=Y(!1),u=Y(!1),d=Y(!1),{isCardType:c,isVertical:f,cardScale:p}=t;function v(w,A,S){const k=S-1,O=A-1,I=A+1,P=S/2;return A===0&&w===k?-1:A===k&&w===0?S:w<O&&A-w>=P?S+1:w>I&&w-A>=P?-2:w}function h(w,A){var S,k;const O=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?O*((2-p)*(w-A)+1)/4:w<A?-(1+p)*O/4:(3+p)*O/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 O=C(c),I=(k=t.items.value.length)!=null?k:Number.NaN,P=w===A;!O&&!zr(S)&&(d.value=P||w===S),!P&&I>2&&t.loop&&(w=v(w,A,I));const M=C(f);s.value=P,O?(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,M),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),Yr(()=>{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}},_je=et({name:EL}),Dje=et({..._je,props:kje,setup(e){const t=e,n=jt("carousel"),{carouselItemRef:r,active:o,animating:i,hover:a,inStage:s,isVertical:l,translate:u,isCardType:d,scale:c,ready:f,handleItemClick:p}=Tje(t),v=ee(()=>[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=ee(()=>{const y=`${`translate${C(l)?"Y":"X"}`}(${C(u)}px)`,m=`scale(${C(c)})`;return{transform:[y,m].join(" ")}});return(g,y)=>an((F(),K("div",{ref_key:"carouselItemRef",ref:r,class:oe(C(v)),style:Jt(C(h)),onClick:C(p)},[C(d)?an((F(),K("div",{key:0,class:oe(C(n).e("mask"))},null,2)),[[Ar,!C(o)]]):xe("v-if",!0),pt(g.$slots,"default")],14,["onClick"])),[[Ar,C(f)]])}});var Z1e=en(Dje,[["__file","carousel-item.vue"]]);const Ije=er(Eje,{CarouselItem:Z1e}),Oje=vi(Z1e),X1e={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"])},J1e={[Gn]:e=>Dn(e)||Ln(e)||Co(e),change:e=>Dn(e)||Ln(e)||Co(e)},Fb=Symbol("checkboxGroupContextKey"),Mje=({model:e,isChecked:t})=>{const n=un(Fb,void 0),r=ee(()=>{var i,a;const s=(i=n?.max)==null?void 0:i.value,l=(a=n?.min)==null?void 0:a.value;return!zr(s)&&e.value.length>=s&&!t.value||!zr(l)&&e.value.length<=l&&t.value});return{isDisabled:Wa(ee(()=>n?.disabled.value||r.value)),isLimitDisabled:r}},Pje=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=un(Fb,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=ee(()=>a?.validateEvent||e.validateEvent);return Ct(()=>e.modelValue,()=>{p.value&&s?.validate("change").catch(v=>void 0)}),{handleChange:c,onClickRoot:f}},Nje=e=>{const t=Y(!1),{emit:n}=vr(),r=un(Fb,void 0),o=ee(()=>zr(r)===!1),i=Y(!1),a=ee({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}},Rje=(e,t,{model:n})=>{const r=un(Fb,void 0),o=Y(!1),i=ee(()=>Il(e.value)?e.label:e.value),a=ee(()=>{const d=n.value;return Co(d)?d:qt(d)?ar(i.value)?d.map(Oo).some(c=>ca(c,i.value)):d.map(Oo).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),s=fa(ee(()=>{var d;return(d=r?.size)==null?void 0:d.value}),{prop:!0}),l=fa(ee(()=>{var d;return(d=r?.size)==null?void 0:d.value})),u=ee(()=>!!t.default||!Il(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},eye=(e,t)=>{const{formItem:n}=ks(),{model:r,isGroup:o,isLimitExceeded:i}=Nje(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:c}=Rje(e,t,{model:r}),{isDisabled:f}=Mje({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:v}=ac(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:h,onClickRoot:g}=Pje(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"},ee(()=>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"},ee(()=>!!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"},ee(()=>!!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}},Bje=et({name:"ElCheckbox"}),Lje=et({...Bje,props:X1e,emits:J1e,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}=eye(t,n),v=jt("checkbox"),h=ee(()=>[v.b(),v.m(l.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",i.value)]),g=ee(()=>[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:oe(C(h)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:C(p)},{default:nt(()=>{var b,w,A,S;return[x("span",{class:oe(C(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?an((F(),K("input",{key:0,id:C(r),"onUpdate:modelValue":k=>Ro(d)?d.value=k:null,class:oe(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"])),[[uE,C(d)]]):an((F(),K("input",{key:1,id:C(r),"onUpdate:modelValue":k=>Ro(d)?d.value=k:null,class:oe(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"])),[[uE,C(d)]]),x("span",{class:oe(C(v).e("inner"))},null,2)],2),C(u)?(F(),K("span",{key:0,class:oe(C(v).e("label"))},[pt(y.$slots,"default"),y.$slots.default?xe("v-if",!0):(F(),K(Nt,{key:0},[An(ze(y.label),1)],64))],2)):xe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Fje=en(Lje,[["__file","checkbox.vue"]]);const Uje=et({name:"ElCheckboxButton"}),zje=et({...Uje,props:X1e,emits:J1e,setup(e){const t=e,n=pa(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=eye(t,n),d=un(Fb,void 0),c=jt("checkbox"),f=ee(()=>{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=ee(()=>[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:oe(C(p))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?an((F(),K("input",{key:0,"onUpdate:modelValue":w=>Ro(s)?s.value=w:null,class:oe(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"])),[[uE,C(s)]]):an((F(),K("input",{key:1,"onUpdate:modelValue":w=>Ro(s)?s.value=w:null,class:oe(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"])),[[uE,C(s)]]),v.$slots.default||v.label?(F(),K("span",{key:2,class:oe(C(c).be("button","inner")),style:Jt(C(o)?C(f):void 0)},[pt(v.$slots,"default",{},()=>[An(ze(v.label),1)])],6)):xe("v-if",!0)],2)}}});var tye=en(zje,[["__file","checkbox-button.vue"]]);const $je=Yt({modelValue:{type:lt(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"])}),jje={[Gn]:e=>qt(e),change:e=>qt(e)},Hje=et({name:"ElCheckboxGroup"}),Wje=et({...Hje,props:$je,emits:jje,setup(e,{emit:t}){const n=e,r=jt("checkbox"),{formItem:o}=ks(),{inputId:i,isLabeledByFormItem:a}=ac(n,{formItemContext:o}),s=async u=>{t(Gn,u),await Vt(),t(Tr,u)},l=ee({get(){return n.modelValue},set(u){s(u)}});return Sr(Fb,{...ru(_a(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ct(()=>n.modelValue,(u,d)=>{n.validateEvent&&!ca(u,d)&&o?.validate("change").catch(c=>void 0)}),(u,d)=>{var c;return F(),mt(hr(u.tag),{id:C(i),class:oe(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(()=>[pt(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var nye=en(Wje,[["__file","checkbox-group.vue"]]);const Yu=er(Fje,{CheckboxButton:tye,CheckboxGroup:nye}),Vje=vi(tye),rye=vi(nye),oye=Yt({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}}),qje=Yt({...oye,border:Boolean}),iye={[Gn]:e=>Dn(e)||Ln(e)||Co(e),[Tr]:e=>Dn(e)||Ln(e)||Co(e)},aye=Symbol("radioGroupKey"),sye=(e,t)=>{const n=Y(),r=un(aye,void 0),o=ee(()=>!!r),i=ee(()=>Il(e.value)?e.label:e.value),a=ee({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(ee(()=>r?.size)),l=Wa(ee(()=>r?.disabled)),u=Y(!1),d=ee(()=>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"},ee(()=>o.value&&Il(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:d,modelValue:a,actualValue:i}},Gje=et({name:"ElRadio"}),Kje=et({...Gje,props:qje,emits:iye,setup(e,{emit:t}){const n=e,r=jt("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:d}=sye(n,t);function c(){Vt(()=>t(Tr,u.value))}return(f,p)=>{var v;return F(),K("label",{class:oe([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:oe([C(r).e("input"),C(r).is("disabled",C(l)),C(r).is("checked",C(u)===C(d))])},[an(x("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h=>Ro(u)?u.value=h:null,class:oe(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"]),[[Zge,C(u)]]),x("span",{class:oe(C(r).e("inner"))},null,2)],2),x("span",{class:oe(C(r).e("label")),onKeydown:Qt(()=>{},["stop"])},[pt(f.$slots,"default",{},()=>[An(ze(f.label),1)])],42,["onKeydown"])],2)}}});var Yje=en(Kje,[["__file","radio.vue"]]);const Qje=Yt({...oye}),Zje=et({name:"ElRadioButton"}),Xje=et({...Zje,props:Qje,setup(e){const t=e,n=jt("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=sye(t),d=ee(()=>({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:oe([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))])},[an(x("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>Ro(s)?s.value=v:null,class:oe(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"]),[[Zge,C(s)]]),x("span",{class:oe(C(n).be("button","inner")),style:Jt(C(s)===C(u)?C(d):{}),onKeydown:Qt(()=>{},["stop"])},[pt(c.$slots,"default",{},()=>[An(ze(c.label),1)])],46,["onKeydown"])],2)}}});var lye=en(Xje,[["__file","radio-button.vue"]]);const Jje=Yt({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"])}),eHe=iye,tHe=et({name:"ElRadioGroup"}),nHe=et({...tHe,props:Jje,emits:eHe,setup(e,{emit:t}){const n=e,r=jt("radio"),o=ds(),i=Y(),{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=ee(()=>n.name||o.value);return Sr(aye,Ur({..._a(n),changeEvent:u,name:d})),Ct(()=>n.modelValue,(c,f)=>{n.validateEvent&&!ca(c,f)&&a?.validate("change").catch(p=>void 0)}),(c,f)=>(F(),K("div",{id:C(s),ref_key:"radioGroupRef",ref:i,class:oe(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},[pt(c.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var uye=en(nHe,[["__file","radio-group.vue"]]);const cye=er(Yje,{RadioButton:lye,RadioGroup:uye}),rHe=vi(uye),oHe=vi(lye),uD=Symbol();function iHe(e){return!!(qt(e)?e.every(({type:t})=>t===ua):e?.type===ua)}var aHe=et({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=jt("cascader-node"),{renderLabelFn:n}=un(uD),{node:r}=e,{data:o,label:i}=r,a=()=>{const s=n?.({node:r,data:o});return iHe(s)?i:s??i};return()=>$e("span",{class:t.e("label")},[a()])}});const sHe=et({name:"ElCascaderNode"}),lHe=et({...sHe,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,r=un(uD),o=jt("cascader-node"),i=ee(()=>r.isHoverMenu),a=ee(()=>r.config.multiple),s=ee(()=>r.config.checkStrictly),l=ee(()=>r.config.showPrefix),u=ee(()=>{var O;return(O=r.checkedNodes[0])==null?void 0:O.uid}),d=ee(()=>n.node.isDisabled),c=ee(()=>n.node.isLeaf),f=ee(()=>s.value&&!c.value||!d.value),p=ee(()=>h(r.expandingNode)),v=ee(()=>s.value&&r.checkedNodes.some(h)),h=O=>{var I;const{level:P,uid:M}=n.node;return((I=O?.pathNodes[P-1])==null?void 0:I.uid)===M},g=()=>{p.value||r.expandNode(n.node)},y=O=>{const{node:I}=n;O!==I.checked&&r.handleCheckChange(I,O)},m=()=>{r.lazyLoad(n.node,()=>{c.value||g()})},b=O=>{i.value&&(w(),!c.value&&t("expand",O))},w=()=>{const{node:O}=n;!f.value||O.loading||(O.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=O=>{s.value?(y(O),n.node.loaded&&g()):k(O)},k=O=>{n.node.loaded?(y(O),!s.value&&g()):m()};return(O,I)=>(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:oe([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(Yu),{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(cye),{key:1,"model-value":C(u),label:e.node.uid,disabled:C(d),"onUpdate:modelValue":S,onClick:Qt(()=>{},["stop"])},{default:nt(()=>[xe(`
  32. Add an empty element to avoid render label,
  33. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  34. `),x("span")]),_:1},8,["model-value","label","disabled","onClick"])):C(c)&&e.node.checked?(F(),mt(C(_n),{key:2,class:oe(C(o).e("prefix"))},{default:nt(()=>[$e(C(OC))]),_:1},8,["class"])):xe("v-if",!0),xe(" content "),$e(C(aHe),{node:e.node},null,8,["node"]),xe(" postfix "),C(c)?xe("v-if",!0):(F(),K(Nt,{key:3},[e.node.loading?(F(),mt(C(_n),{key:0,class:oe([C(o).is("loading"),C(o).e("postfix")])},{default:nt(()=>[$e(C(Bc))]),_:1},8,["class"])):(F(),mt(C(_n),{key:1,class:oe(["arrow-right",C(o).e("postfix")])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex"]))}});var uHe=en(lHe,[["__file","node.vue"]]);const cHe=et({name:"ElCascaderMenu"}),dHe=et({...cHe,props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=vr(),r=jt("cascader-menu"),{t:o}=Hr(),i=ds();let a,s;const l=un(uD),u=Y(),d=ee(()=>!t.nodes.length),c=ee(()=>!l.initialLoaded),f=ee(()=>`${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,O=k+a.offsetHeight;u.value.innerHTML=`
  35. <path style="pointer-events: auto;" fill="transparent" d="M${S} ${k} L${w} 0 V${k} Z" />
  36. <path style="pointer-events: auto;" fill="transparent" d="M${S} ${O} L${w} ${A} V${O} Z" />
  37. `}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:oe(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(Nt,null,on(e.nodes,w=>(F(),mt(uHe,{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:oe(C(r).e("empty-text"))},[$e(C(_n),{size:"14",class:oe(C(r).is("loading"))},{default:nt(()=>[$e(C(Bc))]),_:1},8,["class"]),An(" "+ze(C(o)("el.cascader.loading")),1)],2)):C(d)?(F(),K("div",{key:1,class:oe(C(r).e("empty-text"))},[pt(y.$slots,"empty",{},()=>[An(ze(C(o)("el.cascader.noData")),1)])],2)):(b=C(l))!=null&&b.isHoverMenu?(F(),K(Nt,{key:2},[xe(" eslint-disable-next-line vue/html-self-closing "),(F(),K("svg",{ref_key:"hoverZone",ref:u,class:oe(C(r).e("hover-zone"))},null,2))],2112)):xe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class"]))}});var fHe=en(dHe,[["__file","menu.vue"]]);let pHe=0;const hHe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let TL=class _L{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=pHe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=hHe(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 _L(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 zr(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 _L(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 DL=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(DL(r.children,t))),n),[]);class NJ{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new TL(o,this.config));this.nodes=r,this.allNodes=DL(r,!1),this.leafNodes=DL(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new TL(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=>ca(o.value,t)||ca(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>ca(t.value,r)&&t.level===o)||null}}const dye=Yt({modelValue:{type:lt([Number,String,Array])},options:{type:lt(Array),default:()=>[]},props:{type:lt(Object),default:()=>({})}}),gHe={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},vHe=Yt({...dye,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),RJ=e=>!0,mHe={[Gn]:RJ,[Tr]:RJ,close:()=>!0,"expand-change":e=>e},yHe=e=>ee(()=>({...gHe,...e.props})),BJ=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},bHe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():c1e(e)&&e.click()},wHe=(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},LJ=e=>[...new Set(e)],rl=e=>!e&&e!==0?[]:qt(e)?e:[e],AHe=et({name:"ElCascaderPanel",inheritAttrs:!1}),CHe=et({...AHe,props:vHe,emits:mHe,setup(e,{expose:t,emit:n}){const r=e;let o=!1;const i=jt("cascader"),a=yHe(r),s=pa();let l;const u=Y(!0),d=Y([]),c=Y(),f=Y([]),p=Y(),v=Y([]),h=ee(()=>a.value.expandTrigger==="hover"),g=ee(()=>r.renderLabel||s.default),y=()=>{const{options:N}=r,V=a.value;o=!1,l=new NJ(N,V),f.value=[l.getNodes()],V.lazy&&Jl(r.options)?(u.value=!1,m(void 0,L=>{L&&(l=new NJ(L,V),f.value=[l.getNodes()]),u.value=!0,P(!1,!0)})):P(!1,!0)},m=(N,V)=>{const L=a.value;N=N||new TL({},L,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&&V?.(H)};L.lazyLoad(N,j)},b=(N,V)=>{var L;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)),((L=p.value)==null?void 0:L.uid)!==G?.uid&&(p.value=N,f.value=H,!V&&n("expand-change",N?.pathValues||[]))},w=(N,V,L=!0)=>{const{checkStrictly:j,multiple:H}=a.value,G=v.value[0];o=!0,!H&&G?.doCheck(!1),N.doCheck(V),I(),L&&!H&&!j&&n("close"),!L&&!H&&!j&&A(N)},A=N=>{N&&(N=N.parent,A(N),N&&b(N))},S=N=>l?.getFlattedNodes(N),k=N=>{var V;return(V=S(N))==null?void 0:V.filter(({checked:L})=>L!==!1)},O=()=>{v.value.forEach(N=>N.doCheck(!1)),I(),f.value=f.value.slice(0,1),p.value=void 0,n("expand-change",[])},I=()=>{var N;const{checkStrictly:V,multiple:L}=a.value,j=v.value,H=k(!V),G=wHe(j,H),Z=G.map(z=>z.valueByOption);v.value=G,c.value=L?Z:(N=Z[0])!=null?N:null},P=(N=!1,V=!1)=>{const{modelValue:L}=r,{lazy:j,multiple:H,checkStrictly:G}=a.value,Z=!G;if(!(!u.value||o||!V&&ca(L,c.value)))if(j&&!N){const U=LJ(uRe(rl(L))).map(W=>l?.getNodeByValue(W)).filter(W=>!!W&&!W.loaded&&!W.loading);U.length?U.forEach(W=>{m(W,()=>P(!1,V))}):P(!0,V)}else{const z=H?rl(L):[L],U=LJ(z.map(W=>l?.getNodeByValue(W,Z)));M(U,V),c.value=vE(L??void 0)}},M=(N,V=!0)=>{const{checkStrictly:L}=a.value,j=v.value,H=N.filter(z=>!!z&&(L||z.isLeaf)),G=l?.getSameNode(p.value),Z=V&&G||H[0];Z?Z.pathNodes.forEach(z=>b(z,!0)):p.value=void 0,j.forEach(z=>z.doCheck(!1)),Ur(H).forEach(z=>z.doCheck(!0)),v.value=H,Vt(_)},_=()=>{Kr&&d.value.forEach(N=>{const V=N?.$el;if(V){const L=V.querySelector(`.${i.namespace.value}-scrollbar__wrap`),j=V.querySelector(`.${i.b("node")}.${i.is("active")}:last-child`)||V.querySelector(`.${i.b("node")}.in-active-path`);CH(L,j)}})},R=N=>{const V=N.target,{code:L}=N;switch(L){case gn.up:case gn.down:{N.preventDefault();const j=L===gn.up?-1:1;AS(d1e(V,j,`.${i.b("node")}[tabindex="-1"]`));break}case gn.left:{N.preventDefault();const j=d.value[BJ(V)-1],H=j?.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);AS(H);break}case gn.right:{N.preventDefault();const j=d.value[BJ(V)+1],H=j?.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);AS(H);break}case gn.enter:case gn.numpadEnter:bHe(V);break}};return Sr(uD,Ur({config:a,expandingNode:p,checkedNodes:v,isHoverMenu:h,initialLoaded:u,renderLabelFn:g,lazyLoad:m,expandNode:b,handleCheckChange:w})),Ct(a,(N,V)=>{ca(N,V)||y()},{immediate:!0}),Ct(()=>r.options,y,{deep:!0}),Ct(()=>r.modelValue,()=>{o=!1,P()},{deep:!0}),Ct(()=>c.value,N=>{ca(N,r.modelValue)||(n(Gn,N),n(Tr,N))}),zj(()=>d.value=[]),jn(()=>!Jl(r.modelValue)&&P()),t({menuList:d,menus:f,checkedNodes:v,handleKeyDown:R,handleCheckChange:w,getFlattedNodes:S,getCheckedNodes:k,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:_}),(N,V)=>(F(),K("div",{class:oe([C(i).b("panel"),C(i).is("bordered",N.border)]),onKeydown:R},[(F(!0),K(Nt,null,on(f.value,(L,j)=>(F(),mt(fHe,{key:j,ref_for:!0,ref:H=>d.value[j]=H,index:j,nodes:[...L]},{empty:nt(()=>[pt(N.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],34))}});var xHe=en(CHe,[["__file","index.vue"]]);const fye=er(xHe),Qf=Yt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Yd},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),SHe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},EHe=et({name:"ElTag"}),kHe=et({...EHe,props:Qf,emits:SHe,setup(e,{emit:t}){const n=e,r=fa(),o=jt("tag"),i=ee(()=>{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:oe(C(i)),style:Jt({backgroundColor:u.color}),onClick:s},[x("span",{class:oe(C(o).e("content"))},[pt(u.$slots,"default")],2),u.closable?(F(),mt(C(_n),{key:0,class:oe(C(o).e("close")),onClick:Qt(a,["stop"])},{default:nt(()=>[$e(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:oe(C(i)),style:Jt({backgroundColor:u.color}),onClick:s},[x("span",{class:oe(C(o).e("content"))},[pt(u.$slots,"default")],2),u.closable?(F(),mt(C(_n),{key:0,class:oe(C(o).e("close")),onClick:Qt(a,["stop"])},{default:nt(()=>[$e(C(cu))]),_:1},8,["class","onClick"])):xe("v-if",!0)],6)]),_:3},8,["name"]))}});var THe=en(kHe,[["__file","tag.vue"]]);const Ih=er(THe),_He=Yt({...dye,size:ba,placeholder:String,disabled:Boolean,clearable:Boolean,clearIcon:{type:vo,default:Qd},filterable:Boolean,filterMethod:{type:lt(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:lt(Function),default:()=>!0},placement:{type:lt(String),values:mp,default:"bottom-start"},fallbackPlacements:{type:lt(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:oi.popperClass,popperStyle:oi.popperStyle,teleported:oi.teleported,effect:{type:lt(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},...rm}),FJ=e=>!0,DHe={[Gn]:FJ,[Tr]:FJ,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Co(e),expandChange:e=>!!e,removeTag:e=>!!e},nh=new Map;if(Kr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of nh.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function UJ(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 Zf={beforeMount(e,t){nh.has(e)||nh.set(e,[]),nh.get(e).push({documentHandler:UJ(e,t),bindingFn:t.value})},updated(e,t){nh.has(e)||nh.set(e,[]);const n=nh.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:UJ(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){nh.delete(e)}},IHe="ElCascader",OHe=et({name:IHe}),MHe=et({...OHe,props:_He,emits:DHe,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:he})=>{const{modifiersData:Je,placement:ct}=he;["right","left","bottom","top"].includes(ct)||Je.arrow&&(Je.arrow.x=35)},requires:["arrow"]}]},i=pp();let a=0,s=0;const l=jt("cascader"),u=jt("input"),{t:d}=Hr(),{formItem:c}=ks(),f=Wa(),{valueOnClear:p}=IC(r),{isComposing:v,handleComposition:h}=PC({afterComposition(he){var Je;const ct=(Je=he.target)==null?void 0:Je.value;ut(ct)}}),g=Y(null),y=Y(),m=Y(),b=Y(null),w=Y(null),A=Y(null),S=Y(!1),k=Y(!1),O=Y(!1),I=Y(""),P=Y(""),M=Y([]),_=Y([]),R=Y([]),N=ee(()=>i.style),V=ee(()=>{var he;return(he=r.placeholder)!=null?he:d("el.cascader.placeholder")}),L=ee(()=>P.value||M.value.length>0||v.value?"":V.value),j=fa(),H=ee(()=>j.value==="small"?"small":"default"),G=ee(()=>!!r.props.multiple),Z=ee(()=>!r.filterable||G.value),z=ee(()=>G.value?P.value:I.value),U=ee(()=>{var he;return((he=w.value)==null?void 0:he.checkedNodes)||[]}),{wrapperRef:W,isFocused:re,handleBlur:J}=vp(m,{disabled:f,beforeBlur(he){var Je,ct,Ot;return((Je=g.value)==null?void 0:Je.isFocusInsideContent(he))||((Ot=(ct=y.value)==null?void 0:ct[0])==null?void 0:Ot.isFocusInsideContent(he))},afterBlur(){var he;S.value=!1,r.validateEvent&&((he=c?.validate)==null||he.call(c,"blur").catch(Je=>void 0))}}),te=ee(()=>!r.clearable||f.value||O.value||!k.value&&!re.value?!1:!!U.value.length),X=ee(()=>{const{showAllLevels:he,separator:Je}=r,ct=U.value;return ct.length?G.value?"":ct[0].calcText(he,Je):""}),ue=ee(()=>c?.validateState||""),me=ee({get(){return vE(r.modelValue)},set(he){const Je=he??p.value;n(Gn,Je),n(Tr,Je),r.validateEvent&&c?.validate("change").catch(ct=>void 0)}}),Me=ee(()=>[l.b(),l.m(j.value),l.is("disabled",f.value),i.class]),Ae=ee(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",S.value)]),ge=ee(()=>l.is("focus",re.value)),_e=ee(()=>{var he,Je;return(Je=(he=g.value)==null?void 0:he.popperRef)==null?void 0:Je.contentRef}),Q=he=>{if(re.value){const Je=new FocusEvent("blur",he);J(Je)}be(!1)},be=he=>{var Je,ct,Ot;f.value||(he=he??!S.value,he!==S.value&&(S.value=he,(ct=(Je=m.value)==null?void 0:Je.input)==null||ct.setAttribute("aria-expanded",`${he}`),he?(De(),Vt((Ot=w.value)==null?void 0:Ot.scrollToExpandingNode)):r.filterable&&tn(),n("visibleChange",he)))},De=()=>{Vt(()=>{var he;(he=g.value)==null||he.updatePopper()})},pe=()=>{O.value=!1},ie=he=>{const{showAllLevels:Je,separator:ct}=r;return{node:he,key:he.uid,text:he.calcText(Je,ct),hitState:!1,closable:!f.value&&!he.isDisabled,isCollapseTag:!1}},ce=he=>{var Je;const ct=he.node;ct.doCheck(!1),(Je=w.value)==null||Je.calculateCheckedValue(),n("removeTag",ct.valueByOption)},Re=()=>{switch(r.showCheckedStrategy){case"child":return U.value;case"parent":{const he=Ne(!1),Je=he.map(Ot=>Ot.value);return he.filter(Ot=>!Ot.parent||!Je.includes(Ot.parent.value))}default:return[]}},Ee=()=>{if(!G.value)return;const he=Re(),Je=[],ct=[];if(he.forEach(Ot=>ct.push(ie(Ot))),_.value=ct,he.length){he.slice(0,r.maxCollapseTags).forEach(In=>Je.push(ie(In)));const Ot=he.slice(r.maxCollapseTags),Tn=Ot.length;Tn&&(r.collapseTags?Je.push({key:-1,text:`+ ${Tn}`,closable:!1,isCollapseTag:!0}):Ot.forEach(In=>Je.push(ie(In))))}M.value=Je},Le=()=>{var he,Je;const{filterMethod:ct,showAllLevels:Ot,separator:Tn}=r,In=(Je=(he=w.value)==null?void 0:he.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Je.filter(je=>je.isDisabled?!1:(je.calcText(Ot,Tn),ct(je,z.value)));G.value&&(M.value.forEach(je=>{je.hitState=!1}),_.value.forEach(je=>{je.hitState=!1})),O.value=!0,R.value=In,De()},Fe=()=>{var he;let Je;O.value&&A.value?Je=A.value.$el.querySelector(`.${l.e("suggestion-item")}`):Je=(he=w.value)==null?void 0:he.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Je&&(Je.focus(),!O.value&&Je.click())},Pe=()=>{var he,Je;const ct=(he=m.value)==null?void 0:he.input,Ot=b.value,Tn=(Je=A.value)==null?void 0:Je.$el;if(!(!Kr||!ct)){if(Tn){const In=Tn.querySelector(`.${l.e("suggestion-list")}`);In.style.minWidth=`${ct.offsetWidth}px`}if(Ot){const{offsetHeight:In}=Ot,je=M.value.length>0?`${Math.max(In,a)-2}px`:`${a}px`;ct.style.height=je,De()}}},Ne=he=>{var Je;return(Je=w.value)==null?void 0:Je.getCheckedNodes(he)},ht=he=>{De(),n("expandChange",he)},Rt=he=>{if(!v.value)switch(he.code){case gn.enter:case gn.numpadEnter:be();break;case gn.down:be(!0),Vt(Fe),he.preventDefault();break;case gn.esc:S.value===!0&&(he.preventDefault(),he.stopPropagation(),be(!1));break;case gn.tab:be(!1);break}},Lt=()=>{var he;(he=w.value)==null||he.clearCheckedNodes(),!S.value&&r.filterable&&tn(),be(!1),n("clear")},tn=()=>{const{value:he}=X;I.value=he,P.value=he},Wt=he=>{var Je,ct;const{checked:Ot}=he;G.value?(Je=w.value)==null||Je.handleCheckChange(he,!Ot,!1):(!Ot&&((ct=w.value)==null||ct.handleCheckChange(he,!0,!1)),be(!1))},zt=he=>{const Je=he.target,{code:ct}=he;switch(ct){case gn.up:case gn.down:{he.preventDefault();const Ot=ct===gn.up?-1:1;AS(d1e(Je,Ot,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case gn.enter:case gn.numpadEnter:Je.click();break}},dt=()=>{const he=M.value,Je=he[he.length-1];s=P.value?0:s+1,!(!Je||!s||r.collapseTags&&he.length>1)&&(Je.hitState?ce(Je):Je.hitState=!0)},_t=Fl(()=>{const{value:he}=z;if(!he)return;const Je=r.beforeFilter(he);Av(Je)?Je.then(Le).catch(()=>{}):Je!==!1?Le():pe()},r.debounce),ut=(he,Je)=>{!S.value&&be(!0),!Je?.isComposing&&(he?_t():pe())},rt=he=>Number.parseFloat(qRe(u.cssVarName("input-height"),he).value)-2;return Ct(O,De),Ct([U,f,()=>r.collapseTags],Ee),Ct(M,()=>{Vt(()=>Pe())}),Ct(j,async()=>{await Vt();const he=m.value.input;a=rt(he)||a,Pe()}),Ct(X,tn,{immediate:!0}),jn(()=>{const he=m.value.input,Je=rt(he);a=he.offsetHeight||Je,li(he,Pe)}),t({getCheckedNodes:Ne,cascaderPanelRef:w,togglePopperVisible:be,contentRef:_e,presentText:X}),(he,Je)=>(F(),mt(C(fs),{ref_key:"tooltipRef",ref:g,visible:S.value,teleported:he.teleported,"popper-class":[C(l).e("dropdown"),he.popperClass],"popper-style":he.popperStyle,"popper-options":o,"fallback-placements":he.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:he.placement,transition:`${C(l).namespace.value}-zoom-in-top`,effect:he.effect,pure:"",persistent:he.persistent,onHide:pe},{default:nt(()=>[an((F(),K("div",{ref_key:"wrapperRef",ref:W,class:oe(C(Me)),style:Jt(C(N)),onClick:()=>be(C(Z)?void 0:!0),onKeydown:Rt,onMouseenter:ct=>k.value=!0,onMouseleave:ct=>k.value=!1},[$e(C(Us),{ref_key:"inputRef",ref:m,modelValue:I.value,"onUpdate:modelValue":ct=>I.value=ct,placeholder:C(L),readonly:C(Z),disabled:C(f),"validate-event":!1,size:C(j),class:oe(C(ge)),tabindex:C(G)&&he.filterable&&!C(f)?-1:void 0,onCompositionstart:C(h),onCompositionupdate:C(h),onCompositionend:C(h),onInput:ut},Ll({suffix:nt(()=>[C(te)?(F(),mt(C(_n),{key:"clear",class:oe([C(u).e("icon"),"icon-circle-close"]),onClick:Qt(Lt,["stop"])},{default:nt(()=>[(F(),mt(hr(he.clearIcon)))]),_:1},8,["class","onClick"])):(F(),mt(C(_n),{key:"arrow-down",class:oe(C(Ae)),onClick:Qt(ct=>be(),["stop"])},{default:nt(()=>[$e(C(Kc))]),_:1},8,["class","onClick"]))]),_:2},[he.$slots.prefix?{name:"prefix",fn:nt(()=>[pt(he.$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:oe([C(l).e("tags"),C(l).is("validate",!!C(ue))])},[pt(he.$slots,"tag",{data:_.value,deleteTag:ce},()=>[(F(!0),K(Nt,null,on(M.value,ct=>(F(),mt(C(Ih),{key:ct.key,type:he.tagType,size:C(H),effect:he.tagEffect,hit:ct.hitState,closable:ct.closable,"disable-transitions":"",onClose:Ot=>ce(ct)},{default:nt(()=>[ct.isCollapseTag===!1?(F(),K("span",{key:0},ze(ct.text),1)):(F(),mt(C(fs),{key:1,ref_for:!0,ref_key:"tagTooltipRef",ref:y,disabled:S.value||!he.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":he.popperClass,"popper-style":he.popperStyle,effect:he.effect},{default:nt(()=>[x("span",null,ze(ct.text),1)]),content:nt(()=>[$e(C(Lc),{"max-height":he.maxCollapseTagsTooltipHeight},{default:nt(()=>[x("div",{class:oe(C(l).e("collapse-tags"))},[(F(!0),K(Nt,null,on(_.value.slice(he.maxCollapseTags),(Ot,Tn)=>(F(),K("div",{key:Tn,class:oe(C(l).e("collapse-tag"))},[(F(),mt(C(Ih),{key:Ot.key,class:"in-tooltip",type:he.tagType,size:C(H),effect:he.tagEffect,hit:Ot.hitState,closable:Ot.closable,"disable-transitions":"",onClose:In=>ce(Ot)},{default:nt(()=>[x("span",null,ze(Ot.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))]),he.filterable&&!C(f)?an((F(),K("input",{key:0,"onUpdate:modelValue":ct=>P.value=ct,type:"text",class:oe(C(l).e("search-input")),placeholder:C(X)?"":C(V),onInput:ct=>ut(P.value,ct),onClick:Qt(ct=>be(!0),["stop"]),onKeydown:Lr(dt,["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(Zf),Q,C(_e)]])]),content:nt(()=>[he.$slots.header?(F(),K("div",{key:0,class:oe(C(l).e("header")),onClick:Qt(()=>{},["stop"])},[pt(he.$slots,"header")],10,["onClick"])):xe("v-if",!0),an($e(C(fye),{ref_key:"cascaderPanelRef",ref:w,modelValue:C(me),"onUpdate:modelValue":ct=>Ro(me)?me.value=ct:null,options:he.options,props:r.props,border:!1,"render-label":he.$slots.default,onExpandChange:ht,onClose:ct=>he.$nextTick(()=>be(!1))},{empty:nt(()=>[pt(he.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[Ar,!O.value]]),he.filterable?an((F(),mt(C(Lc),{key:1,ref_key:"suggestionPanel",ref:A,tag:"ul",class:oe(C(l).e("suggestion-panel")),"view-class":C(l).e("suggestion-list"),onKeydown:zt},{default:nt(()=>[R.value.length?(F(!0),K(Nt,{key:0},on(R.value,ct=>(F(),K("li",{key:ct.uid,class:oe([C(l).e("suggestion-item"),C(l).is("checked",ct.checked)]),tabindex:-1,onClick:Ot=>Wt(ct)},[pt(he.$slots,"suggestion-item",{item:ct},()=>[x("span",null,ze(ct.text),1),ct.checked?(F(),mt(C(_n),{key:0},{default:nt(()=>[$e(C(OC))]),_:1})):xe("v-if",!0)])],10,["onClick"]))),128)):pt(he.$slots,"empty",{key:1},()=>[x("li",{class:oe(C(l).e("empty-text"))},ze(C(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Ar,O.value]]):xe("v-if",!0),he.$slots.footer?(F(),K("div",{key:2,class:oe(C(l).e("footer")),onClick:Qt(()=>{},["stop"])},[pt(he.$slots,"footer")],10,["onClick"])):xe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var PHe=en(MHe,[["__file","cascader.vue"]]);const NHe=er(PHe),RHe=Yt({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),BHe={"update:checked":e=>Co(e),[Tr]:e=>Co(e)},LHe=et({name:"ElCheckTag"}),FHe=et({...LHe,props:RHe,emits:BHe,setup(e,{emit:t}){const n=e,r=jt("check-tag"),o=ee(()=>n.disabled),i=ee(()=>[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:oe(C(i)),onClick:a},[pt(s.$slots,"default")],2))}});var UHe=en(FHe,[["__file","check-tag.vue"]]);const zHe=er(UHe),$He=Yt({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:lt([Number,Object]),default:()=>fi({})},sm:{type:lt([Number,Object]),default:()=>fi({})},md:{type:lt([Number,Object]),default:()=>fi({})},lg:{type:lt([Number,Object]),default:()=>fi({})},xl:{type:lt([Number,Object]),default:()=>fi({})}}),pye=Symbol("rowContextKey"),jHe=et({name:"ElCol"}),HHe=et({...jHe,props:$He,setup(e){const t=e,{gutter:n}=un(pye,{gutter:ee(()=>0)}),r=jt("col"),o=ee(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=ee(()=>{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:oe(C(i)),style:Jt(C(o))},{default:nt(()=>[pt(a.$slots,"default")]),_:3},8,["class","style"]))}});var WHe=en(HHe,[["__file","col.vue"]]);const VHe=er(WHe),zJ=e=>Ln(e)||Dn(e)||qt(e),qHe=Yt({accordion:Boolean,modelValue:{type:lt([Array,String,Number]),default:()=>fi([])},expandIconPosition:{type:lt([String]),default:"right"},beforeCollapse:{type:lt(Function)}}),GHe={[Gn]:zJ,[Tr]:zJ},hye=Symbol("collapseContextKey"),KHe="ElCollapse",YHe=(e,t)=>{const n=Y(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)||Ji(KHe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Av(l)?l.then(d=>{d!==!1&&o(a)}).catch(d=>{}):l&&o(a)};return Ct(()=>e.modelValue,()=>n.value=Ka(e.modelValue),{deep:!0}),Sr(hye,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},QHe=e=>{const t=jt("collapse");return{rootKls:ee(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},ZHe=et({name:"ElCollapse"}),XHe=et({...ZHe,props:qHe,emits:GHe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=YHe(r,n),{rootKls:a}=QHe(r);return t({activeNames:o,setActiveNames:i}),(s,l)=>(F(),K("div",{class:oe(C(a))},[pt(s.$slots,"default")],2))}});var JHe=en(XHe,[["__file","collapse.vue"]]);const eWe=et({name:"ElCollapseTransition"}),tWe=et({...eWe,setup(e){const t=jt("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()},$Te(r)),{default:nt(()=>[pt(o.$slots,"default")]),_:3},16,["name"]))}});var nWe=en(tWe,[["__file","collapse-transition.vue"]]);const cD=er(nWe),rWe=Yt({title:{type:String,default:""},name:{type:lt([String,Number]),default:void 0},icon:{type:vo,default:ka},disabled:Boolean}),oWe=e=>{const t=un(hye),{namespace:n}=jt("collapse"),r=Y(!1),o=Y(!1),i=TH(),a=ee(()=>i.current++),s=ee(()=>{var f;return(f=e.name)!=null?f:`${n.value}-id-${i.prefix}-${C(a)}`}),l=ee(()=>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)))}}},iWe=(e,{focusing:t,isActive:n,id:r})=>{const o=jt("collapse"),i=ee(()=>[o.b("item"),o.is("active",C(n)),o.is("disabled",e.disabled)]),a=ee(()=>[o.be("item","header"),o.is("active",C(n)),{focusing:C(t)&&!e.disabled}]),s=ee(()=>[o.be("item","arrow"),o.is("active",C(n))]),l=ee(()=>[o.be("item","title")]),u=ee(()=>o.be("item","wrap")),d=ee(()=>o.be("item","content")),c=ee(()=>o.b(`content-${C(r)}`)),f=ee(()=>o.b(`head-${C(r)}`));return{itemTitleKls:l,arrowKls:s,headKls:a,rootKls:i,itemWrapperKls:u,itemContentKls:d,scopedContentId:c,scopedHeadId:f}},aWe=et({name:"ElCollapseItem"}),sWe=et({...aWe,props:rWe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=oWe(n),{arrowKls:u,headKls:d,rootKls:c,itemTitleKls:f,itemWrapperKls:p,itemContentKls:v,scopedContentId:h,scopedHeadId:g}=iWe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(y,m)=>(F(),K("div",{class:oe(C(c))},[x("div",{id:C(g),class:oe(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:oe(C(f))},[pt(y.$slots,"title",{isActive:C(i)},()=>[An(ze(y.title),1)])],2),pt(y.$slots,"icon",{isActive:C(i)},()=>[$e(C(_n),{class:oe(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"]),$e(C(cD),null,{default:nt(()=>[an(x("div",{id:C(h),role:"region",class:oe(C(p)),"aria-hidden":!C(i),"aria-labelledby":C(g)},[x("div",{class:oe(C(v))},[pt(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[Ar,C(i)]])]),_:3})],2))}});var gye=en(sWe,[["__file","collapse-item.vue"]]);const lWe=er(JHe,{CollapseItem:gye}),uWe=vi(gye),cWe=Yt({color:{type:lt(Object),required:!0},vertical:Boolean,disabled:Boolean});let CI=!1;function Y3(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,CI=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;CI||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),CI=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const $J=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},IL=(e,t)=>Math.abs($J(e)-$J(t)),jH=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}},dWe=e=>{const t=vr(),{t:n}=Hr(),r=Uo(),o=Uo(),i=ee(()=>e.color.get("alpha")),a=ee(()=>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}=jH(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}},fWe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=vr(),i=jt("color-alpha-slider"),a=Y(0),s=Y(0),l=Y();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)}};Y3(t.value,m),Y3(n.value,m),f()}),Ct(()=>e.color.get("alpha"),()=>f()),Ct(()=>e.color.value,()=>f());const p=ee(()=>[i.b(),i.is("vertical",e.vertical),i.is("disabled",e.disabled)]),v=ee(()=>i.e("bar")),h=ee(()=>i.e("thumb")),g=ee(()=>({background:l.value})),y=ee(()=>({left:_i(a.value),top:_i(s.value)}));return{rootKls:p,barKls:v,barStyle:g,thumbKls:h,thumbStyle:y,update:f}},pWe="ElColorAlphaSlider",hWe=et({name:pWe}),gWe=et({...hWe,props:cWe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=dWe(n),{rootKls:d,barKls:c,barStyle:f,thumbKls:p,thumbStyle:v,update:h}=fWe(n,{bar:i,thumb:a,handleDrag:s});return t({update:h,bar:i,thumb:a}),(g,y)=>(F(),K("div",{class:oe(C(d))},[x("div",{ref_key:"bar",ref:i,class:oe(C(c)),style:Jt(C(f)),onClick:C(l)},null,14,["onClick"]),x("div",{ref_key:"thumb",ref:a,class:oe(C(p)),style:Jt(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 vWe=en(gWe,[["__file","alpha-slider.vue"]]);const mWe=et({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean},setup(e){const t=jt("color-hue-slider"),n=vr(),r=Y(),o=Y(),i=Y(0),a=Y(0),s=ee(()=>e.color.get("hue"));Ct(()=>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}=jH(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)}};Y3(o.value,p),Y3(r.value,p),f()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:f,ns:t}}});function yWe(e,t,n,r,o,i){return F(),K("div",{class:oe([e.ns.b(),e.ns.is("vertical",e.vertical)])},[x("div",{ref:"bar",class:oe(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),x("div",{ref:"thumb",class:oe(e.ns.e("thumb")),style:Jt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var bWe=en(mWe,[["render",yWe],["__file","hue-slider.vue"]]);const vye=Yt({modelValue:{type:lt(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:lt(Array)}}),wWe={[Gn]:e=>Dn(e)||Zi(e)},mye=Symbol("colorCommonPickerKey"),yye=Symbol("colorPickerPanelContextKey");class AE{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new B1,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 B1(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 B1({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 B1({h:t,s:n/100,v:r/100,a:o/100}),this.value=this._isValid?this._tiny.toString(s):""}}const AWe=et({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean},setup(e){const t=jt("color-predefine"),{currentColor:n}=un(yye),r=Y(i(e.colors,e.color));Ct(()=>n.value,a=>{const s=new AE({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 AE({value:l});return u.selected=u.compare(s),u})}return{rgbaColors:r,handleSelect:o,ns:t}}});function CWe(e,t,n,r,o,i){return F(),K("div",{class:oe(e.ns.b())},[x("div",{class:oe(e.ns.e("colors"))},[(F(!0),K(Nt,null,on(e.rgbaColors,(a,s)=>(F(),K("div",{key:e.colors[s],class:oe([e.ns.e("color-selector"),e.ns.is("alpha",a.get("alpha")<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[x("div",{style:Jt({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var xWe=en(AWe,[["render",CWe],["__file","predefine.vue"]]);const SWe=et({name:"ElSlPanel",props:{color:{type:Object,required:!0},disabled:Boolean},setup(e){const t=jt("color-svpanel"),n=vr(),r=Y(0),o=Y(0),i=Y("hsl(0, 100%, 50%)"),a=ee(()=>{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}=jH(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 Ct(()=>a.value,()=>{s()}),jn(()=>{Y3(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 EWe(e,t,n,r,o,i){return F(),K("div",{class:oe(e.ns.b()),style:Jt({backgroundColor:e.background})},[x("div",{class:oe(e.ns.e("white"))},null,2),x("div",{class:oe(e.ns.e("black"))},null,2),x("div",{class:oe(e.ns.e("cursor")),style:Jt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[x("div")],6)],6)}var kWe=en(SWe,[["render",EWe],["__file","sv-panel.vue"]]);const bye=(e,t)=>{const n=Ur(new AE({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return Ct(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(Gn,n.value)}),{color:n}},TWe=et({name:"ElColorPickerPanel"}),_We=et({...TWe,props:vye,emits:wWe,setup(e,{expose:t,emit:n}){const r=e,o=jt("color-picker-panel"),i=Wa(),a=Y(),s=Y(),l=Y(),u=Y(),d=Y(""),{color:c}=un(mye,()=>bye(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()})}),Ct(()=>r.modelValue,p=>{p&&p!==c.value&&c.fromString(p)}),Ct(()=>c.value,p=>{n(Gn,p),d.value=p}),Sr(yye,{currentColor:ee(()=>c.value)}),t({color:c,inputRef:u}),(p,v)=>(F(),K("div",{class:oe([C(o).b(),C(o).is("disabled",C(i)),C(o).is("border",p.border)])},[x("div",{class:oe(C(o).e("wrapper"))},[$e(bWe,{ref_key:"hue",ref:a,class:"hue-slider",color:C(c),vertical:"",disabled:C(i)},null,8,["color","disabled"]),$e(kWe,{ref_key:"sv",ref:s,color:C(c),disabled:C(i)},null,8,["color","disabled"])],2),p.showAlpha?(F(),mt(vWe,{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(xWe,{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:oe(C(o).e("footer"))},[$e(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"]),pt(p.$slots,"footer")],2)],2))}});var DWe=en(_We,[["__file","color-picker-panel.vue"]]);const wye=er(DWe),IWe=Yt({persistent:{type:Boolean,default:!0},modelValue:{type:lt(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:lt(Array)},validateEvent:{type:Boolean,default:!0},...rm,...Es(["ariaLabel"])}),OWe={[Gn]:e=>Dn(e)||Zi(e),[Tr]:e=>Dn(e)||Zi(e),activeChange:e=>Dn(e)||Zi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},MWe=et({name:"ElColorPicker"}),PWe=et({...MWe,props:IWe,emits:OWe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=jt("color"),{formItem:a}=ks(),s=fa(),l=Wa(),{valueOnClear:u,isEmptyValue:d}=IC(r,null),c=bye(r,n),{inputId:f,isLabeledByFormItem:p}=ac(r,{formItemContext:a}),v=Y(),h=Y(),g=Y(),y=Y(!1),m=Y(!1);let b=!0;const{isFocused:w,handleFocus:A,handleBlur:S}=vp(h,{disabled:l,beforeBlur(ue){var me;return(me=v.value)==null?void 0:me.isFocusInsideContent(ue)},afterBlur(){V(!1),G()}}),k=zRe(()=>{var ue,me;return(me=(ue=g.value)==null?void 0:ue.color)!=null?me:c.color}),O=ee(()=>ru(r,Object.keys(vye))),I=ee(()=>!r.modelValue&&!m.value?"transparent":N(k,r.showAlpha)),P=ee(()=>!r.modelValue&&!m.value?"":k.value),M=ee(()=>p.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),_=ee(()=>p.value?a?.labelId:void 0),R=ee(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",w.value)]);function N(ue,me){const{r:Me,g:Ae,b:ge,a:_e}=ue.toRgb();return me?`rgba(${Me}, ${Ae}, ${ge}, ${_e})`:`rgb(${Me}, ${Ae}, ${ge})`}function V(ue){y.value=ue}const L=Fl(V,100,{leading:!0});function j(){l.value||V(!0)}function H(){L(!1),G()}function G(){Vt(()=>{r.modelValue?k.fromString(r.modelValue):(k.value="",Vt(()=>{m.value=!1}))})}function Z(){l.value||(y.value&&G(),L(!y.value))}function z(){const ue=d(k.value)?u.value:k.value;n(Gn,ue),n(Tr,ue),r.validateEvent&&a?.validate("change").catch(me=>void 0),L(!1),Vt(()=>{const me=new AE({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});k.compare(me)||G()})}function U(){L(!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 re(ue){ue.preventDefault(),ue.stopPropagation(),V(!1),G()}function J(ue){var me,Me;switch(ue.code){case gn.enter:case gn.numpadEnter:case gn.space:ue.preventDefault(),ue.stopPropagation(),j(),(Me=(me=g?.value)==null?void 0:me.inputRef)==null||Me.focus();break;case gn.esc:re(ue);break}}function te(){h.value.focus()}function X(){h.value.blur()}return Ct(()=>P.value,ue=>{b&&n("activeChange",ue),b=!0}),Ct(()=>k.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),Ct(()=>r.modelValue,ue=>{ue?ue&&ue!==k.value&&(b=!1,k.fromString(ue)):m.value=!1}),Sr(mye,c),t({color:k,show:j,hide:H,focus:te,blur:X}),(ue,me)=>(F(),mt(C(fs),{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=>V(!1)},{content:nt(()=>[an((F(),mt(C(wye),pr({ref_key:"pickerPanelRef",ref:g},C(O),{border:!1,onKeydown:Lr(re,["esc"])}),{footer:nt(()=>[x("div",null,[$e(C(Za),{class:oe(C(i).be("footer","link-btn")),text:"",size:"small",onClick:U},{default:nt(()=>[An(ze(C(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),$e(C(Za),{plain:"",size:"small",class:oe(C(i).be("footer","btn")),onClick:z},{default:nt(()=>[An(ze(C(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16,["onKeydown"])),[[C(Zf),W,h.value]])]),default:nt(()=>[x("div",pr({id:C(f),ref_key:"triggerRef",ref:h},ue.$attrs,{class:C(R),role:"button","aria-label":C(M),"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:J,onFocus:C(A),onBlur:C(S)}),[x("div",{class:oe(C(i).be("picker","trigger")),onClick:Z},[x("span",{class:oe([C(i).be("picker","color"),C(i).is("alpha",ue.showAlpha)])},[x("span",{class:oe(C(i).be("picker","color-inner")),style:Jt({backgroundColor:C(I)})},[an($e(C(_n),{class:oe([C(i).be("picker","icon"),C(i).is("icon-arrow-down")])},{default:nt(()=>[$e(C(Kc))]),_:1},8,["class"]),[[Ar,ue.modelValue||m.value]]),an($e(C(_n),{class:oe([C(i).be("picker","empty"),C(i).is("icon-close")])},{default:nt(()=>[$e(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 NWe=en(PWe,[["__file","color-picker.vue"]]);const RWe=er(NWe),BWe=Yt({a11y:{type:Boolean,default:!0},locale:{type:lt(Object)},size:ba,button:{type:lt(Object)},card:{type:lt(Object)},dialog:{type:lt(Object)},link:{type:lt(Object)},experimentalFeatures:{type:lt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:lt(Object)},zIndex:Number,namespace:{type:String,default:"el"},...rm}),Ps={placement:"top"},LWe=et({name:"ElConfigProvider",props:BWe,setup(e,{slots:t}){const n=wH(e);return Ct(()=>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}),()=>pt(t,"default",{config:n?.value})}}),FWe=er(LWe),UWe=et({name:"ElContainer"}),zWe=et({...UWe,props:{direction:{type:String}},setup(e){const t=e,n=pa(),r=jt("container"),o=ee(()=>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:oe([C(r).b(),C(r).is("vertical",C(o))])},[pt(i.$slots,"default")],2))}});var $We=en(zWe,[["__file","container.vue"]]);const jWe=et({name:"ElAside"}),HWe=et({...jWe,props:{width:{type:String,default:null}},setup(e){const t=e,n=jt("aside"),r=ee(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,i)=>(F(),K("aside",{class:oe(C(n).b()),style:Jt(C(r))},[pt(o.$slots,"default")],6))}});var Aye=en(HWe,[["__file","aside.vue"]]);const WWe=et({name:"ElFooter"}),VWe=et({...WWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=jt("footer"),r=ee(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(F(),K("footer",{class:oe(C(n).b()),style:Jt(C(r))},[pt(o.$slots,"default")],6))}});var Cye=en(VWe,[["__file","footer.vue"]]);const qWe=et({name:"ElHeader"}),GWe=et({...qWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=jt("header"),r=ee(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(F(),K("header",{class:oe(C(n).b()),style:Jt(C(r))},[pt(o.$slots,"default")],6))}});var xye=en(GWe,[["__file","header.vue"]]);const KWe=et({name:"ElMain"}),YWe=et({...KWe,setup(e){const t=jt("main");return(n,r)=>(F(),K("main",{class:oe(C(t).b())},[pt(n.$slots,"default")],2))}});var Sye=en(YWe,[["__file","main.vue"]]);const QWe=er($We,{Aside:Aye,Footer:Cye,Header:xye,Main:Sye}),ZWe=vi(Aye),XWe=vi(Cye),JWe=vi(xye),eVe=vi(Sye);var kS={exports:{}},tVe=kS.exports,jJ;function nVe(){return jJ||(jJ=1,(function(e,t){(function(n,r){e.exports=r()})(tVe,(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,M,_){var R=_&&_.toUpperCase();return M||m[_]||n[_]||m[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,V,L){return V||L.slice(1)}))}))).match(r),w=b.length,A=0;A<w;A+=1){var S=b[A],k=v[S],O=k&&k[0],I=k&&k[1];b[A]=I?{regex:O,parser:I}:S.replace(/^\[|\]$/g,"")}return function(P){for(var M={},_=0,R=0;_<w;_+=1){var N=b[_];if(typeof N=="string")R+=N.length;else{var V=N.regex,L=N.parser,j=P.slice(R),H=V.exec(j)[0];L.call(M,H),P=P.replace(H,"")}}return(function(G){var Z=G.afternoon;if(Z!==void 0){var z=G.hours;Z?z<12&&(G.hours+=12):z===12&&(G.hours=0),delete G.afternoon}})(M),M}}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,O=A.args;this.$u=k;var I=O[1];if(typeof I=="string"){var P=O[2]===!0,M=O[3]===!0,_=P||M,R=O[2];M&&(R=O[2]),l=this.$locale(),!P&&R&&(l=m.Ls[R]),this.$d=(function(j,H,G,Z){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*j);var z=h(H)(j),U=z.year,W=z.month,re=z.day,J=z.hours,te=z.minutes,X=z.seconds,ue=z.milliseconds,me=z.zone,Me=z.week,Ae=new Date,ge=re||(U||W?1:Ae.getDate()),_e=U||Ae.getFullYear(),Q=0;U&&!W||(Q=W>0?W-1:Ae.getMonth());var be,De=J||0,pe=te||0,ie=X||0,ce=ue||0;return me?new Date(Date.UTC(_e,Q,ge,De,pe,ie,ce+60*me.offset*1e3)):G?new Date(Date.UTC(_e,Q,ge,De,pe,ie,ce)):(be=new Date(_e,Q,ge,De,pe,ie,ce),Me&&(be=Z(be).week(Me).toDate()),be)}catch{return new Date("")}})(S,I,k,m),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),_&&S!=this.format(I)&&(this.$d=new Date("")),l={}}else if(I instanceof Array)for(var N=I.length,V=1;V<=N;V+=1){O[1]=I[V-1];var L=m.apply(this,O);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}V===N&&(this.$d=new Date(""))}else w.call(this,A)}}}))})(kS)),kS.exports}var rVe=nVe();const HH=mu(rVe),HJ=["hours","minutes","seconds"],Fc="EP_PICKER_BASE",WH="ElPopperOptions",Eye=Symbol("commonPickerContextKey"),Ny="HH:mm:ss",uh="YYYY-MM-DD",oVe={date:uh,dates:uh,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${uh} ${Ny}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:uh,datetimerange:`${uh} ${Ny}`},kye=(e,t)=>{const{lang:n}=Hr(),r=Y(!1),o=Y(!1),i=Y(null),a=ee(()=>{const{modelValue:v}=e;return!v||qt(v)&&!v.filter(Boolean).length}),s=v=>{if(!K1e(e.modelValue,v)){let h;qt(v)?h=v.map(y=>IJ(y,e.valueFormat,n.value)):v&&(h=IJ(v,e.valueFormat,n.value)),t(Gn,v&&h,n.value)}},l=ee(()=>{var v;let h;if(a.value?u.value.getDefaultValue&&(h=u.value.getDefaultValue()):qt(e.modelValue)?h=e.modelValue.map(g=>DJ(g,e.valueFormat,n.value)):h=DJ((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),u.value.getRangeAvailableTime){const g=u.value.getRangeAvailableTime(h);ca(g,h)||(h=g,a.value||s(SS(h)))}return qt(h)&&h.some(g=>!g)&&(h=[]),h}),u=Y({});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}}},VH=Yt({disabledHours:{type:lt(Function)},disabledMinutes:{type:lt(Function)},disabledSeconds:{type:lt(Function)}}),Tye=Yt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),qH=Yt({id:{type:lt([Array,String])},name:{type:lt([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:lt([String,Object]),default:Qd},editable:{type:Boolean,default:!0},prefixIcon:{type:lt([String,Object]),default:""},size:ba,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:lt(Object),default:()=>({})},modelValue:{type:lt([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:lt([Date,Array])},defaultTime:{type:lt([Date,Array])},isRange:Boolean,...VH,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:lt([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:lt(String),values:mp,default:"bottom"},fallbackPlacements:{type:lt(Array),default:["bottom","top","right","left"]},...rm,...Es(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),iVe=Yt({id:{type:lt(Array)},name:{type:lt(Array)},modelValue:{type:lt([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),aVe=et({name:"PickerRangeTrigger",inheritAttrs:!1}),sVe=et({...aVe,props:iVe,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=e,o=oD(),i=jt("date"),a=jt("range"),s=Y(),l=Y(),{wrapperRef:u,isFocused:d}=vp(s,{disabled:ee(()=>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:oe([C(i).is("active",C(d)),A.$attrs.class]),style:Jt(A.$attrs.style),onClick:c,onMouseenter:f,onMouseleave:p,onTouchstartPassive:v},[pt(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"]),pt(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"]),pt(A.$slots,"suffix")],38))}});var lVe=en(sVe,[["__file","picker-range-trigger.vue"]]);const uVe=et({name:"Picker"}),cVe=et({...uVe,props:qH,emits:[Gn,Tr,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=pp(),i=jt("date"),a=jt("input"),s=jt("range"),{formItem:l}=ks(),u=un(WH,{}),{valueOnClear:d}=IC(r,null),c=Y(),f=Y(),p=Y(null);let v=!1;const h=Wa(),g=kye(r,n),{parsedValue:y,pickerActualVisible:m,userInput:b,pickerVisible:w,pickerOptions:A,valueIsEmpty:S,emitInput:k,onPick:O,onSetPickerOption:I,onCalendarChange:P,onPanelChange:M}=g,{isFocused:_,handleFocus:R,handleBlur:N}=vp(f,{disabled:h,beforeFocus(){return r.readonly},afterFocus(){w.value=!0},beforeBlur(he){var Je;return!v&&((Je=c.value)==null?void 0:Je.isFocusInsideContent(he))},afterBlur(){Pe(),w.value=!1,v=!1,r.validateEvent&&l?.validate("blur").catch(he=>void 0)}}),V=Y(!1),L=ee(()=>[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=ee(()=>[a.e("icon"),s.e("close-icon"),Q.value?"":s.e("close-icon--hidden")]);Ct(w,he=>{he?Vt(()=>{he&&(p.value=r.modelValue)}):(b.value=null,Vt(()=>{H(r.modelValue)}))});const H=(he,Je)=>{(Je||!K1e(he,p.value))&&(n(Tr,he),Je&&(p.value=he),r.validateEvent&&l?.validate("change").catch(ct=>void 0))},G=he=>{n("keydown",he)},Z=ee(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),z=(he,Je,ct)=>{const Ot=Z.value;Ot.length&&(!ct||ct==="min"?(Ot[0].setSelectionRange(he,Je),Ot[0].focus()):ct==="max"&&(Ot[1].setSelectionRange(he,Je),Ot[1].focus()))},U=()=>{m.value=!0},W=()=>{n("visible-change",!0)},re=()=>{m.value=!1,w.value=!1,n("visible-change",!1)},J=()=>{w.value=!0},te=()=>{w.value=!1},X=ee(()=>{if(!A.value.panelReady)return"";const he=ht(y.value);return qt(b.value)?[b.value[0]||he&&he[0]||"",b.value[1]||he&&he[1]||""]:b.value!==null?b.value:!me.value&&S.value||!w.value&&S.value?"":he?Me.value||Ae.value||ge.value?he.join(", "):he:""}),ue=ee(()=>r.type.includes("time")),me=ee(()=>r.type.startsWith("time")),Me=ee(()=>r.type==="dates"),Ae=ee(()=>r.type==="months"),ge=ee(()=>r.type==="years"),_e=ee(()=>r.prefixIcon||(ue.value?n1e:zBe)),Q=ee(()=>r.clearable&&!h.value&&!r.readonly&&!S.value&&(V.value||_.value)),be=he=>{r.readonly||h.value||(Q.value&&(he.stopPropagation(),A.value.handleClear?A.value.handleClear():k(d.value),H(d.value,!0),re()),n("clear"))},De=async he=>{var Je;r.readonly||h.value||(((Je=he.target)==null?void 0:Je.tagName)!=="INPUT"||_.value)&&(w.value=!0)},pe=()=>{r.readonly||h.value||!S.value&&r.clearable&&(V.value=!0)},ie=()=>{V.value=!1},ce=he=>{var Je;r.readonly||h.value||(((Je=he.touches[0].target)==null?void 0:Je.tagName)!=="INPUT"||_.value)&&(w.value=!0)},Re=ee(()=>r.type.includes("range")),Ee=fa(),Le=ee(()=>{var he,Je;return(Je=(he=C(c))==null?void 0:he.popperRef)==null?void 0:Je.contentRef}),Fe=yH(f,he=>{const Je=C(Le),ct=Sa(f);Je&&(he.target===Je||he.composedPath().includes(Je))||he.target===ct||ct&&he.composedPath().includes(ct)||(w.value=!1)});Yr(()=>{Fe?.()});const Pe=()=>{if(b.value){const he=Ne(X.value);he&&Rt(he)&&(k(SS(he)),b.value=null)}b.value===""&&(k(d.value),H(d.value,!0),b.value=null)},Ne=he=>he?A.value.parseUserInput(he):null,ht=he=>he?A.value.formatToString(he):null,Rt=he=>A.value.isValidValue(he),Lt=async he=>{if(r.readonly||h.value)return;const{code:Je}=he;if(G(he),Je===gn.esc){w.value===!0&&(w.value=!1,he.preventDefault(),he.stopPropagation());return}if(Je===gn.down&&(A.value.handleFocusPicker&&(he.preventDefault(),he.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),he.stopPropagation();return}if(b.value){he.stopPropagation();return}A.value.handleKeydownInput&&A.value.handleKeydownInput(he)},tn=he=>{b.value=he,w.value||(w.value=!0)},Wt=he=>{const Je=he.target;b.value?b.value=[Je.value,b.value[1]]:b.value=[Je.value,null]},zt=he=>{const Je=he.target;b.value?b.value=[b.value[0],Je.value]:b.value=[null,Je.value]},dt=()=>{var he;const Je=b.value,ct=Ne(Je&&Je[0]),Ot=C(y);if(ct&&ct.isValid()){b.value=[ht(ct),((he=X.value)==null?void 0:he[1])||null];const Tn=[ct,Ot&&(Ot[1]||null)];Rt(Tn)&&(k(SS(Tn)),b.value=null)}},_t=()=>{var he;const Je=C(b),ct=Ne(Je&&Je[1]),Ot=C(y);if(ct&&ct.isValid()){b.value=[((he=C(X))==null?void 0:he[0])||null,ht(ct)];const Tn=[Ot&&Ot[0],ct];Rt(Tn)&&(k(SS(Tn)),b.value=null)}},ut=()=>{var he;(he=f.value)==null||he.focus()},rt=()=>{var he;(he=f.value)==null||he.blur()};return Sr(Fc,{props:r}),Sr(Eye,g),t({focus:ut,blur:rt,handleOpen:J,handleClose:te,onPick:O}),(he,Je)=>(F(),mt(C(fs),pr({ref_key:"refPopper",ref:c,visible:C(w),effect:"light",pure:"",trigger:"click"},he.$attrs,{role:"dialog",teleported:"",transition:`${C(i).namespace.value}-zoom-in-top`,"popper-class":[`${C(i).namespace.value}-picker__popper`,he.popperClass],"popper-style":he.popperStyle,"popper-options":C(u),"fallback-placements":he.fallbackPlacements,"gpu-acceleration":!1,placement:he.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:U,onShow:W,onHide:re}),{default:nt(()=>[C(Re)?(F(),mt(lVe,{key:1,id:he.id,ref_key:"inputRef",ref:f,"model-value":C(X),name:he.name,disabled:C(h),readonly:!he.editable||he.readonly,"start-placeholder":he.startPlaceholder,"end-placeholder":he.endPlaceholder,class:oe(C(L)),style:Jt(he.$attrs.style),"aria-label":he.ariaLabel,tabindex:he.tabindex,autocomplete:"off",role:"combobox",onClick:De,onFocus:C(R),onBlur:C(N),onStartInput:Wt,onStartChange:dt,onEndInput:zt,onEndChange:_t,onMousedown:De,onMouseenter:pe,onMouseleave:ie,onTouchstartPassive:ce,onKeydown:Lt},{prefix:nt(()=>[C(_e)?(F(),mt(C(_n),{key:0,class:oe([C(a).e("icon"),C(s).e("icon")])},{default:nt(()=>[(F(),mt(hr(C(_e))))]),_:1},8,["class"])):xe("v-if",!0)]),"range-separator":nt(()=>[pt(he.$slots,"range-separator",{},()=>[x("span",{class:oe(C(s).b("separator"))},ze(he.rangeSeparator),3)])]),suffix:nt(()=>[he.clearIcon?(F(),mt(C(_n),{key:0,class:oe(C(j)),onMousedown:Qt(C(go),["prevent"]),onClick:be},{default:nt(()=>[(F(),mt(hr(he.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:he.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":C(X),name:he.name,size:C(Ee),disabled:C(h),placeholder:he.placeholder,class:oe([C(i).b("editor"),C(i).bm("editor",he.type),C(i).is("focus",C(w)),he.$attrs.class]),style:Jt(he.$attrs.style),readonly:!he.editable||he.readonly||C(Me)||C(Ae)||C(ge)||he.type==="week","aria-label":he.ariaLabel,tabindex:he.tabindex,"validate-event":!1,onInput:tn,onFocus:C(R),onBlur:C(N),onKeydown:Lt,onChange:Pe,onMousedown:De,onMouseenter:pe,onMouseleave:ie,onTouchstartPassive:ce,onClick:Qt(()=>{},["stop"])},{prefix:nt(()=>[C(_e)?(F(),mt(C(_n),{key:0,class:oe(C(a).e("icon")),onMousedown:Qt(De,["prevent"]),onTouchstartPassive:ce},{default:nt(()=>[(F(),mt(hr(C(_e))))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),suffix:nt(()=>[C(Q)&&he.clearIcon?(F(),mt(C(_n),{key:0,class:oe(`${C(a).e("icon")} clear-icon`),onMousedown:Qt(C(go),["prevent"]),onClick:be},{default:nt(()=>[(F(),mt(hr(he.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(()=>[pt(he.$slots,"default",{visible:C(w),actualVisible:C(m),parsedValue:C(y),format:he.format,dateFormat:he.dateFormat,timeFormat:he.timeFormat,unlinkPanels:he.unlinkPanels,type:he.type,defaultValue:he.defaultValue,showNow:he.showNow,showConfirm:he.showConfirm,showFooter:he.showFooter,showWeekNumber:he.showWeekNumber,onPick:C(O),onSelectRange:z,onSetPickerOption:C(I),onCalendarChange:C(P),onPanelChange:C(M),onMousedown:Qt(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var _ye=en(cVe,[["__file","picker.vue"]]);const dVe=Yt({...Tye,datetimeRole:String,parsedValue:{type:lt(Object)}}),Dye=({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}}},xI=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},Iye=(e,t,n)=>({getHoursList:(a,s)=>wI(24,e&&(()=>e?.(a,s))),getMinutesList:(a,s,l)=>wI(60,t&&(()=>t?.(a,s,l))),getSecondsList:(a,s,l,u)=>wI(60,n&&(()=>n?.(a,s,l,u)))}),Oye=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=Iye(e,t,n);return{getAvailableHours:(u,d)=>xI(r(u,d)),getAvailableMinutes:(u,d,c)=>xI(o(u,d,c)),getAvailableSeconds:(u,d,c,f)=>xI(i(u,d,c,f))}},Mye=e=>{const t=Y(e.parsedValue);return Ct(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},fVe=Yt({role:{type:String,required:!0},spinnerDate:{type:lt(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:lt(String),default:""},...VH}),pVe=100,hVe=600,CE={beforeMount(e,t){const n=t.value,{interval:r=pVe,delay:o=hVe}=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))})}},gVe=et({__name:"basic-time-spinner",props:fVe,emits:[Tr,"select-range","set-option"],setup(e,{emit:t}){const n=e,r=un(Fc),{isRange:o,format:i}=r.props,a=jt("time"),{getHoursList:s,getMinutesList:l,getSecondsList:u}=Iye(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const c=Y(),f=Y(),p=Y(),v=Y(),h={hours:f,minutes:p,seconds:v},g=ee(()=>n.showSeconds?HJ:HJ.slice(0,2)),y=ee(()=>{const{spinnerDate:U}=n,W=U.hour(),re=U.minute(),J=U.second();return{hours:W,minutes:re,seconds:J}}),m=ee(()=>{const{hours:U,minutes:W}=C(y),{role:re,spinnerDate:J}=n,te=o?void 0:J;return{hours:s(re,te),minutes:l(U,re,te),seconds:u(U,W,re,te)}}),b=ee(()=>{const{hours:U,minutes:W,seconds:re}=C(y);return{hours:bI(U,23),minutes:bI(W,59),seconds:bI(re,59)}}),w=Fl(U=>{d=!1,k(U)},200),A=U=>{if(!!!n.amPmMode)return"";const re=n.amPmMode==="A";let J=U<12?" am":" pm";return re&&(J=J.toUpperCase()),J},S=U=>{let W=[0,0];const re=i||Ny,J=re.indexOf("HH"),te=re.indexOf("mm"),X=re.indexOf("ss");switch(U){case"hours":J!==-1&&(W=[J,J+2]);break;case"minutes":te!==-1&&(W=[te,te+2]);break;case"seconds":X!==-1&&(W=[X,X+2]);break}const[ue,me]=W;t("select-range",ue,me),c.value=U},k=U=>{P(U,C(y)[U])},O=()=>{k("hours"),k("minutes"),k("seconds")},I=U=>U.querySelector(`.${a.namespace.value}-scrollbar__wrap`),P=(U,W)=>{if(n.arrowControl)return;const re=C(h[U]);re&&re.$el&&(I(re.$el).scrollTop=Math.max(0,W*M(U)))},M=U=>{const W=C(h[U]),re=W?.$el.querySelector("li");return re&&Number.parseFloat(Tf(re,"height"))||0},_=()=>{N(1)},R=()=>{N(-1)},N=U=>{c.value||S("hours");const W=c.value,re=C(y)[W],J=c.value==="hours"?24:60,te=V(W,re,U,J);L(W,te),P(W,te),Vt(()=>S(W))},V=(U,W,re,J)=>{let te=(W+re+J)%J;const X=C(m)[U];for(;X[te]&&te!==W;)te=(te+re+J)%J;return te},L=(U,W)=>{if(C(m)[U][W])return;const{hours:te,minutes:X,seconds:ue}=C(y);let me;switch(U){case"hours":me=n.spinnerDate.hour(W).minute(X).second(ue);break;case"minutes":me=n.spinnerDate.hour(te).minute(W).second(ue);break;case"seconds":me=n.spinnerDate.hour(te).minute(X).second(W);break}t(Tr,me)},j=(U,{value:W,disabled:re})=>{re||(L(U,W),S(U),P(U,W))},H=U=>{const W=C(h[U]);if(!W)return;d=!0,w(U);const re=Math.min(Math.round((I(W.$el).scrollTop-(G(U)*.5-10)/M(U)+3)/M(U)),U==="hours"?23:59);L(U,re)},G=U=>C(h[U]).$el.offsetHeight,Z=()=>{const U=W=>{const re=C(h[W]);re&&re.$el&&(I(re.$el).onscroll=()=>{H(W)})};U("hours"),U("minutes"),U("seconds")};jn(()=>{Vt(()=>{!n.arrowControl&&Z(),O(),n.role==="start"&&S("hours")})});const z=(U,W)=>{h[W].value=U??void 0};return t("set-option",[`${n.role}_scrollDown`,N]),t("set-option",[`${n.role}_emitSelectRange`,S]),Ct(()=>n.spinnerDate,()=>{d||O()}),(U,W)=>(F(),K("div",{class:oe([C(a).b("spinner"),{"has-seconds":U.showSeconds}])},[U.arrowControl?xe("v-if",!0):(F(!0),K(Nt,{key:0},on(C(g),re=>(F(),mt(C(Lc),{key:re,ref_for:!0,ref:J=>z(J,re),class:oe(C(a).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":C(a).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:J=>S(re),onMousemove:J=>k(re)},{default:nt(()=>[(F(!0),K(Nt,null,on(C(m)[re],(J,te)=>(F(),K("li",{key:te,class:oe([C(a).be("spinner","item"),C(a).is("active",te===C(y)[re]),C(a).is("disabled",J)]),onClick:X=>j(re,{value:te,disabled:J})},[re==="hours"?(F(),K(Nt,{key:0},[An(ze(("0"+(U.amPmMode?te%12||12:te)).slice(-2))+ze(A(te)),1)],64)):(F(),K(Nt,{key:1},[An(ze(("0"+te).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),U.arrowControl?(F(!0),K(Nt,{key:1},on(C(g),re=>(F(),K("div",{key:re,class:oe([C(a).be("spinner","wrapper"),C(a).is("arrow")]),onMouseenter:J=>S(re)},[an((F(),mt(C(_n),{class:oe(["arrow-up",C(a).be("spinner","arrow")])},{default:nt(()=>[$e(C(nD))]),_:1},8,["class"])),[[C(CE),R]]),an((F(),mt(C(_n),{class:oe(["arrow-down",C(a).be("spinner","arrow")])},{default:nt(()=>[$e(C(Kc))]),_:1},8,["class"])),[[C(CE),_]]),x("ul",{class:oe(C(a).be("spinner","list"))},[(F(!0),K(Nt,null,on(C(b)[re],(J,te)=>(F(),K("li",{key:te,class:oe([C(a).be("spinner","item"),C(a).is("active",J===C(y)[re]),C(a).is("disabled",C(m)[re][J])])},[C(Ln)(J)?(F(),K(Nt,{key:0},[re==="hours"?(F(),K(Nt,{key:0},[An(ze(("0"+(U.amPmMode?J%12||12:J)).slice(-2))+ze(A(J)),1)],64)):(F(),K(Nt,{key:1},[An(ze(("0"+J).slice(-2)),1)],64))],64)):xe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):xe("v-if",!0)],2))}});var OL=en(gVe,[["__file","basic-time-spinner.vue"]]);const vVe=et({__name:"panel-time-pick",props:dVe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=un(Fc),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}=Oye(i,a,s),f=jt("time"),{t:p,lang:v}=Hr(),h=Y([0,2]),g=Mye(n),y=ee(()=>zr(n.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),m=ee(()=>n.format.includes("ss")),b=ee(()=>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)},O=(H,G)=>{t("select-range",H,G),h.value=[H,G]},I=H=>{const G=n.format,Z=G.indexOf("HH"),z=G.indexOf("mm"),U=G.indexOf("ss"),W=[],re=[];Z!==-1&&(W.push(Z),re.push("hours")),z!==-1&&(W.push(z),re.push("minutes")),U!==-1&&m.value&&(W.push(U),re.push("seconds"));const te=(W.indexOf(h.value[0])+H+W.length)%W.length;M.start_emitSelectRange(re[te])},P=H=>{const G=H.code,{left:Z,right:z,up:U,down:W}=gn;if([Z,z].includes(G)){I(G===Z?-1:1),H.preventDefault();return}if([U,W].includes(G)){const re=G===U?-1:1;M.start_scrollDown(re),H.preventDefault();return}},{timePickerOptions:M,onSetOption:_,getAvailableTime:R}=Dye({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}),N=H=>R(H,n.datetimeRole||"",!0),V=H=>H?rr(H,n.format).locale(v.value):null,L=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",L]),t("set-picker-option",["parseUserInput",V]),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:oe(C(f).b("panel"))},[x("div",{class:oe([C(f).be("panel","content"),{"has-seconds":C(m)}])},[$e(OL,{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:O},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),x("div",{class:oe(C(f).be("panel","footer"))},[x("button",{type:"button",class:oe([C(f).be("panel","btn"),"cancel"]),onClick:A},ze(C(p)("el.datepicker.cancel")),3),x("button",{type:"button",class:oe([C(f).be("panel","btn"),"confirm"]),onClick:Z=>S()},ze(C(p)("el.datepicker.confirm")),11,["onClick"])],2)],2)):xe("v-if",!0)]),_:1},8,["name"]))}});var xE=en(vVe,[["__file","panel-time-pick.vue"]]);const mVe=Yt({...Tye,parsedValue:{type:lt(Array)}}),yVe=et({__name:"panel-time-range",props:mVe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Ae,ge)=>{const _e=[];for(let Q=Ae;Q<=ge;Q++)_e.push(Q);return _e},{t:o,lang:i}=Hr(),a=jt("time"),s=jt("picker"),l=un(Fc),{arrowControl:u,disabledHours:d,disabledMinutes:c,disabledSeconds:f,defaultValue:p}=l.props,v=ee(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),h=ee(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),g=ee(()=>n.parsedValue[0]),y=ee(()=>n.parsedValue[1]),m=Mye(n),b=()=>{t("pick",m.value,!1)},w=ee(()=>n.format.includes("ss")),A=ee(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(Ae=!1)=>{t("pick",[g.value,y.value],Ae)},k=Ae=>{P(Ae.millisecond(0),y.value)},O=Ae=>{P(g.value,Ae.millisecond(0))},I=Ae=>{const ge=Ae.map(Q=>rr(Q).locale(i.value)),_e=z(ge);return ge[0].isSame(_e[0])&&ge[1].isSame(_e[1])},P=(Ae,ge)=>{n.visible&&t("pick",[Ae,ge],!0)},M=ee(()=>g.value>y.value),_=Y([0,2]),R=(Ae,ge)=>{t("select-range",Ae,ge,"min"),_.value=[Ae,ge]},N=ee(()=>w.value?11:8),V=(Ae,ge)=>{t("select-range",Ae,ge,"max");const _e=C(N);_.value=[Ae+_e,ge+_e]},L=Ae=>{const ge=w.value?[0,3,6,11,14,17]:[0,3,8,11],_e=["hours","minutes"].concat(w.value?["seconds"]:[]),be=(ge.indexOf(_.value[0])+Ae+ge.length)%ge.length,De=ge.length/2;be<De?J.start_emitSelectRange(_e[be]):J.end_emitSelectRange(_e[be-De])},j=Ae=>{const ge=Ae.code,{left:_e,right:Q,up:be,down:De}=gn;if([_e,Q].includes(ge)){L(ge===_e?-1:1),Ae.preventDefault();return}if([be,De].includes(ge)){const pe=ge===be?-1:1,ie=_.value[0]<N.value?"start":"end";J[`${ie}_scrollDown`](pe),Ae.preventDefault();return}},H=(Ae,ge)=>{const _e=d?d(Ae):[],Q=Ae==="start",De=(ge||(Q?y.value:g.value)).hour(),pe=Q?r(De+1,23):r(0,De-1);return pI(_e,pe)},G=(Ae,ge,_e)=>{const Q=c?c(Ae,ge):[],be=ge==="start",De=_e||(be?y.value:g.value),pe=De.hour();if(Ae!==pe)return Q;const ie=De.minute(),ce=be?r(ie+1,59):r(0,ie-1);return pI(Q,ce)},Z=(Ae,ge,_e,Q)=>{const be=f?f(Ae,ge,_e):[],De=_e==="start",pe=Q||(De?y.value:g.value),ie=pe.hour(),ce=pe.minute();if(Ae!==ie||ge!==ce)return be;const Re=pe.second(),Ee=De?r(Re+1,59):r(0,Re-1);return pI(be,Ee)},z=([Ae,ge])=>[te(Ae,"start",!0,ge),te(ge,"end",!1,Ae)],{getAvailableHours:U,getAvailableMinutes:W,getAvailableSeconds:re}=Oye(H,G,Z),{timePickerOptions:J,getAvailableTime:te,onSetOption:X}=Dye({getAvailableHours:U,getAvailableMinutes:W,getAvailableSeconds:re}),ue=Ae=>Ae?qt(Ae)?Ae.map(ge=>rr(ge,n.format).locale(i.value)):rr(Ae,n.format).locale(i.value):null,me=Ae=>Ae?qt(Ae)?Ae.map(ge=>ge.format(n.format)):Ae.format(n.format):null,Me=()=>{if(qt(p))return p.map(ge=>rr(ge).locale(i.value));const Ae=rr(p).locale(i.value);return[Ae,Ae.add(60,"m")]};return t("set-picker-option",["formatToString",me]),t("set-picker-option",["parseUserInput",ue]),t("set-picker-option",["isValidValue",I]),t("set-picker-option",["handleKeydownInput",j]),t("set-picker-option",["getDefaultValue",Me]),t("set-picker-option",["getRangeAvailableTime",z]),(Ae,ge)=>Ae.actualVisible?(F(),K("div",{key:0,class:oe([C(a).b("range-picker"),C(s).b("panel")])},[x("div",{class:oe(C(a).be("range-picker","content"))},[x("div",{class:oe(C(a).be("range-picker","cell"))},[x("div",{class:oe(C(a).be("range-picker","header"))},ze(C(o)("el.datepicker.startTime")),3),x("div",{class:oe(C(v))},[$e(OL,{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:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),x("div",{class:oe(C(a).be("range-picker","cell"))},[x("div",{class:oe(C(a).be("range-picker","header"))},ze(C(o)("el.datepicker.endTime")),3),x("div",{class:oe(C(h))},[$e(OL,{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:O,onSetOption:C(X),onSelectRange:V},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),x("div",{class:oe(C(a).be("panel","footer"))},[x("button",{type:"button",class:oe([C(a).be("panel","btn"),"cancel"]),onClick:_e=>b()},ze(C(o)("el.datepicker.cancel")),11,["onClick"]),x("button",{type:"button",class:oe([C(a).be("panel","btn"),"confirm"]),disabled:C(M),onClick:_e=>S()},ze(C(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):xe("v-if",!0)}});var bVe=en(yVe,[["__file","panel-time-range.vue"]]);rr.extend(HH);var wVe=et({name:"ElTimePicker",install:null,props:{...qH,isRange:Boolean},emits:[Gn],setup(e,t){const n=Y(),[r,o]=e.isRange?["timerange",bVe]:["time",xE],i=a=>t.emit(Gn,a);return Sr(WH,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:Ny;return $e(_ye,pr(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>$e(o,l,null)})}}});const AVe=er(wVe);var TS={exports:{}},CVe=TS.exports,WJ;function xVe(){return WJ||(WJ=1,(function(e,t){(function(n,r){e.exports=r()})(CVe,(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)}}}))})(TS)),TS.exports}var SVe=xVe();const EVe=mu(SVe);var _S={exports:{}},kVe=_S.exports,VJ;function TVe(){return VJ||(VJ=1,(function(e,t){(function(n,r){e.exports=r()})(kVe,(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)}}}))})(_S)),_S.exports}var _Ve=TVe();const DVe=mu(_Ve);var DS={exports:{}},IVe=DS.exports,qJ;function OVe(){return qJ||(qJ=1,(function(e,t){(function(n,r){e.exports=r()})(IVe,(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}}}))})(DS)),DS.exports}var MVe=OVe();const PVe=mu(MVe);var IS={exports:{}},NVe=IS.exports,GJ;function RVe(){return GJ||(GJ=1,(function(e,t){(function(n,r){e.exports=r()})(NVe,(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")}}}))})(IS)),IS.exports}var BVe=RVe();const LVe=mu(BVe);var OS={exports:{}},FVe=OS.exports,KJ;function UVe(){return KJ||(KJ=1,(function(e,t){(function(n,r){e.exports=r()})(FVe,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(OS)),OS.exports}var zVe=UVe();const $Ve=mu(zVe);var MS={exports:{}},jVe=MS.exports,YJ;function HVe(){return YJ||(YJ=1,(function(e,t){(function(n,r){e.exports=r()})(jVe,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(MS)),MS.exports}var WVe=HVe();const VVe=mu(WVe),qVe=Yt({valueFormat:String,dateFormat:String,timeFormat:String,disabled:Boolean,modelValue:{type:lt([Date,Array,String,Number]),default:""},defaultValue:{type:lt([Date,Array])},defaultTime:{type:lt([Date,Array])},isRange:Boolean,...VH,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:lt(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0}}),GH=Symbol("rootPickerContextKey"),BC="ElIsDefaultFormat",GVe=["date","dates","year","years","month","months","week","range"],KH=Yt({cellClassName:{type:lt(Function)},disabledDate:{type:lt(Function)},date:{type:lt(Object),required:!0},minDate:{type:lt(Object)},maxDate:{type:lt(Object)},parsedValue:{type:lt([Object,Array])},rangeState:{type:lt(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),Pye=Yt({type:{type:lt(String),required:!0,values:K$e},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean}),YH=Yt({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:lt(Array)}}),QH=e=>({type:String,values:GVe,default:e}),KVe=Yt({...Pye,parsedValue:{type:lt([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),Q3=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)},dD=(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)]},YVe=(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)}},SE=(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 Dh(i).map(a=>o.add(a,"day").toDate())},Ry=(e,t,n,r,o)=>{const i=rr().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),a=SE(e,t,n,r).find(s=>!o?.(s));return a?rr(a).locale(r):i.locale(r)},EE=(e,t,n)=>{const r=e.year();if(!n?.(e.toDate()))return e.locale(t);const o=e.month();if(!SE(e,r,o,t).every(n))return Ry(e,r,o,t,n);for(let i=0;i<12;i++)if(!SE(e,r,i,t).every(n))return Ry(e,r,i,t,n);return e},By=(e,t,n,r)=>{if(qt(e))return e.map(o=>By(o,t,n,r));if(Dn(e)){const o=r?.value?rr(e):rr(e,t);if(!o.isValid())return o}return rr(e,t).locale(n)},QVe=Yt({...KH,showWeekNumber:Boolean,selectionMode:QH("date")}),ZVe=["changerange","pick","select"],ML=(e="")=>["normal","today"].includes(e),XVe=(e,t)=>{const{lang:n}=Hr(),r=Y(),o=Y(),i=Y(),a=Y(),s=Y([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(H=>H.toLowerCase()),c=ee(()=>u>3?7-u:-u),f=ee(()=>{const H=e.date.startOf("month");return H.subtract(H.day()||7,"day")}),p=ee(()=>d.concat(d).slice(u,u+7)),v=ee(()=>sme(C(w)).some(H=>H.isCurrent)),h=ee(()=>{const H=e.date.startOf("month"),G=H.day()||7,Z=H.daysInMonth(),z=H.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:Z,dateCountOfLastMonth:z}}),g=ee(()=>e.selectionMode==="dates"?rl(e.parsedValue):[]),y=(H,{count:G,rowIndex:Z,columnIndex:z})=>{const{startOfMonthDay:U,dateCountOfMonth:W,dateCountOfLastMonth:re}=C(h),J=C(c);if(Z>=0&&Z<=1){const te=U+J<0?7+U+J:U+J;if(z+Z*7>=te)return H.text=G,!0;H.text=re-(te-z%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},z)=>{const{disabledDate:U,cellClassName:W}=e,re=C(g),J=y(H,{count:z,rowIndex:Z,columnIndex:G}),te=H.dayjs.toDate();return H.selected=re.find(X=>X.isSame(H.dayjs,"day")),H.isSelected=!!H.selected,H.isCurrent=S(H),H.disabled=U?.(te),H.customClass=W?.(te),J},b=H=>{if(e.selectionMode==="week"){const[G,Z]=e.showWeekNumber?[1,7]:[0,6],z=j(H[G+1]);H[G].inRange=z,H[G].start=z,H[Z].inRange=z,H[Z].end=z}},w=ee(()=>{const{minDate:H,maxDate:G,rangeState:Z,showWeekNumber:z}=e,U=C(c),W=C(s),re="day";let J=1;if(YVe({row:6,column:7},W,{startDate:H,columnIndexOffset:z?1:0,nextEndDate:Z.endDate||G||Z.selecting&&H||null,now:rr().locale(C(n)).startOf(re),unit:re,relativeDateGetter:te=>C(f).add(te-U,re),setCellMetadata:(...te)=>{m(...te,J)&&(J+=1)},setRowMetadata:b}),z)for(let te=0;te<6;te++)W[te][1].dayjs&&(W[te][0]={type:"week",text:W[te][1].dayjs.week()});return W});Ct(()=>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"&&ML(H.type)&&k(H,e.parsedValue),k=(H,G)=>G?rr(G).locale(C(n)).isSame(e.date.date(Number(H.text)),"day"):!1,O=(H,G)=>{const Z=H*7+(G-(e.showWeekNumber?1:0))-C(c);return C(f).add(Z,"day")},I=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=Z.parentNode.rowIndex-1,U=Z.cellIndex;C(w)[z][U].disabled||(z!==C(i)||U!==C(a))&&(i.value=z,a.value=U,t("changerange",{selecting:!0,endDate:O(z,U)}))},P=H=>{l||C(v)||e.selectionMode!=="date"||L(H,!0)},M=H=>{H.target.closest("td")&&(l=!0)},_=H=>{H.target.closest("td")&&(l=!1)},R=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")})},V=(H,G)=>{const Z=G?rl(e.parsedValue).filter(z=>z?.valueOf()!==H.valueOf()):rl(e.parsedValue).concat([H]);t("pick",Z)},L=(H,G=!1)=>{if(e.disabled)return;const Z=H.target.closest("td");if(!Z)return;const z=Z.parentNode.rowIndex-1,U=Z.cellIndex,W=C(w)[z][U];if(W.disabled||W.type==="week")return;const re=O(z,U);switch(e.selectionMode){case"range":{R(re);break}case"date":{t("pick",re,G);break}case"week":{N(re);break}case"dates":{V(re,!!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:L,handleMouseUp:_,handleMouseDown:M,handleMouseMove:I,handleFocus:P}},JVe=(e,{isCurrent:t,isWeekActive:n})=>{const r=jt("date-table"),{t:o}=Hr(),i=ee(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"&&!e.disabled}]),a=ee(()=>o("el.datepicker.dateTablePrompt")),s=u=>{const d=[];return ML(u.type)&&!u.disabled?(d.push("available"),u.type==="today"&&d.push("today")):d.push(u.type),t(u)&&d.push("current"),u.inRange&&(ML(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}},eqe=Yt({cell:{type:lt(Object)}});var ZH=et({name:"ElDatePickerCell",props:eqe,setup(e){const t=jt("date-table-cell"),{slots:n}=un(GH);return()=>{const{cell:r}=e;return pt(n,"default",{...r},()=>{var o;return[$e("div",{class:t.b()},[$e("span",{class:t.e("text")},[(o=r?.renderText)!=null?o:r?.text])])]})}}});const tqe=et({__name:"basic-date-table",props:QVe,emits:ZVe,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}=XVe(r,n),{tableLabel:g,tableKls:y,getCellClasses:m,getRowKls:b,weekHeaderClass:w,t:A}=JVe(r,{isCurrent:u,isWeekActive:d});let S=!1;return Yr(()=>{S=!0}),t({focus:l}),(k,O)=>(F(),K("table",{"aria-label":C(g),class:oe(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:oe(C(w))},null,2)):xe("v-if",!0),(F(!0),K(Nt,null,on(C(o),(I,P)=>(F(),K("th",{key:P,"aria-label":C(A)("el.datepicker.weeksFull."+I),scope:"col"},ze(C(A)("el.datepicker.weeks."+I)),9,["aria-label"]))),128))]),(F(!0),K(Nt,null,on(C(i),(I,P)=>(F(),K("tr",{key:P,class:oe(C(b)(I[1]))},[(F(!0),K(Nt,null,on(I,(M,_)=>(F(),K("td",{key:`${P}.${_}`,ref_for:!0,ref:R=>!C(S)&&M.isSelected&&(s.value=R),class:oe(C(m)(M)),"aria-current":M.isCurrent?"date":void 0,"aria-selected":M.isCurrent,tabindex:M.isSelected?0:-1,onFocus:C(h)},[$e(C(ZH),{cell:M},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var PL=en(tqe,[["__file","basic-date-table.vue"]]);const nqe=Yt({...KH,selectionMode:QH("month")}),rqe=et({__name:"basic-month-table",props:nqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=jt("month-table"),{t:i,lang:a}=Hr(),s=Y(),l=Y(),u=Y(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),d=Y([[],[],[]]),c=Y(),f=Y(),p=ee(()=>{var b,w,A;const S=d.value,k=rr().locale(a.value).startOf("month");for(let O=0;O<3;O++){const I=S[O];for(let P=0;P<4;P++){const M=I[P]||(I[P]={row:O,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});M.type="normal";const _=O*4+P,R=r.date.startOf("year").month(_),N=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;M.inRange=!!(r.minDate&&R.isSameOrAfter(r.minDate,"month")&&N&&R.isSameOrBefore(N,"month"))||!!(r.minDate&&R.isSameOrBefore(r.minDate,"month")&&N&&R.isSameOrAfter(N,"month")),(b=r.minDate)!=null&&b.isSameOrAfter(N)?(M.start=!!(N&&R.isSame(N,"month")),M.end=r.minDate&&R.isSame(r.minDate,"month")):(M.start=!!(r.minDate&&R.isSame(r.minDate,"month")),M.end=!!(N&&R.isSame(N,"month"))),k.isSame(R)&&(M.type="today");const L=R.toDate();M.text=_,M.disabled=((w=r.disabledDate)==null?void 0:w.call(r,L))||!1,M.date=L,M.customClass=(A=r.cellClassName)==null?void 0:A.call(r,L),M.dayjs=R,M.timestamp=R.valueOf(),M.isSelected=g(M)}}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?SE(r.date,A,k,a.value).every(r.disabledDate):!1),w.current=rl(r.parsedValue).findIndex(O=>rr.isDayjs(O)&&O.year()===A&&O.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,O=A.parentNode.rowIndex*4+S,I=r.date.startOf("year").month(O);if(r.selectionMode==="months"){if(b.type==="keydown"){n("pick",rl(r.parsedValue),!1);return}const P=Ry(r.date,r.date.year(),O,a.value,r.disabledDate),M=El(A,"current")?rl(r.parsedValue).filter(_=>_?.year()!==P.year()||_?.month()!==P.month()):rl(r.parsedValue).concat([rr(P)]);n("pick",M)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&I>=r.minDate?n("pick",{minDate:r.minDate,maxDate:I}):n("pick",{minDate:I,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:I,maxDate:null}),n("select",!0)):n("pick",O)};return Ct(()=>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:oe(C(o).b()),onClick:m,onMousemove:y},[x("tbody",{ref_key:"tbodyRef",ref:s},[(F(!0),K(Nt,null,on(C(p),(A,S)=>(F(),K("tr",{key:S},[(F(!0),K(Nt,null,on(A,(k,O)=>(F(),K("td",{key:O,ref_for:!0,ref:I=>k.isSelected&&(l.value=I),class:oe(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"])]},[$e(C(ZH),{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 Z3=en(rqe,[["__file","basic-month-table.vue"]]);const oqe=Yt({...KH,selectionMode:QH("year")}),iqe=et({__name:"basic-year-table",props:oqe,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"),O=S.endOf("year").dayOfYear();return Dh(O).map(I=>S.add(I,"day").toDate())},i=jt("year-table"),{t:a,lang:s}=Hr(),l=Y(),u=Y(),d=ee(()=>Math.floor(r.date.year()/10)*10),c=Y([[],[],[]]),f=Y(),p=Y(),v=ee(()=>{var w,A,S;const k=c.value,O=rr().locale(s.value).startOf("year");for(let I=0;I<3;I++){const P=k[I];for(let M=0;M<4&&!(I*4+M>=10);M++){let _=P[M];_||(_={row:I,column:M,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 R=I*4+M+d.value,N=rr().year(R),V=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;_.inRange=!!(r.minDate&&N.isSameOrAfter(r.minDate,"year")&&V&&N.isSameOrBefore(V,"year"))||!!(r.minDate&&N.isSameOrBefore(r.minDate,"year")&&V&&N.isSameOrAfter(V,"year")),(w=r.minDate)!=null&&w.isSameOrAfter(V)?(_.start=!!(V&&N.isSame(V,"year")),_.end=!!(r.minDate&&N.isSame(r.minDate,"year"))):(_.start=!!(r.minDate&&N.isSame(r.minDate,"year")),_.end=!!(V&&N.isSame(V,"year"))),O.isSame(N)&&(_.type="today"),_.text=R;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[M]=_}}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(O=>O.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,I=S.parentNode.rowIndex*4+k+d.value,P=rr().year(I);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 M=EE(P.startOf("year"),s.value,r.disabledDate),_=El(S,"current")?rl(r.parsedValue).filter(R=>R?.year()!==I):rl(r.parsedValue).concat([M]);n("pick",_)}else n("pick",I)},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,O=S.cellIndex;v.value[k][O].disabled||(k!==f.value||O!==p.value)&&(f.value=k,p.value=O,n("changerange",{selecting:!0,endDate:rr().year(d.value).add(k*4+O,"year")}))};return Ct(()=>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:oe(C(i).b()),onClick:m,onMousemove:b},[x("tbody",{ref_key:"tbodyRef",ref:l},[(F(!0),K(Nt,null,on(C(v),(S,k)=>(F(),K("tr",{key:k},[(F(!0),K(Nt,null,on(S,(O,I)=>(F(),K("td",{key:`${k}_${I}`,ref_for:!0,ref:P=>O.isSelected&&(u.value=P),class:oe(["available",g(O)]),"aria-selected":O.isSelected,"aria-label":String(O.text),tabindex:O.isSelected?0:-1,onKeydown:[Lr(Qt(m,["prevent","stop"]),["space"]),Lr(Qt(m,["prevent","stop"]),["enter"])]},[$e(C(ZH),{cell:O},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var X3=en(iqe,[["__file","basic-year-table.vue"]]);const aqe=et({__name:"panel-date-pick",props:KVe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ut,rt,he)=>!0,o=jt("picker-panel"),i=jt("date-picker"),a=pp(),s=pa(),{t:l,lang:u}=Hr(),d=un(Fc),c=un(BC,void 0),{shortcuts:f,disabledDate:p,cellClassName:v,defaultTime:h}=d.props,g=ao(d.props,"defaultValue"),y=Y(),m=Y(rr().locale(u.value)),b=Y(!1);let w=!1;const A=ee(()=>rr(h).locale(u.value)),S=ee(()=>m.value.month()),k=ee(()=>m.value.year()),O=Y([]),I=Y(null),P=Y(null),M=ut=>O.value.length>0?r(ut,O.value,n.format||"HH:mm:ss"):!0,_=ut=>h&&!De.value&&!b.value&&!w?A.value.year(ut.year()).month(ut.month()).date(ut.date()):X.value?ut.millisecond(0):ut.startOf("day"),R=(ut,...rt)=>{if(!ut)t("pick",ut,...rt);else if(qt(ut)){const he=ut.map(_);t("pick",he,...rt)}else t("pick",_(ut),...rt);I.value=null,P.value=null,b.value=!1,w=!1},N=async(ut,rt)=>{if(Z.value==="date"){ut=ut;let he=n.parsedValue?n.parsedValue.year(ut.year()).month(ut.month()).date(ut.date()):ut;M(he),m.value=he,R(he,X.value||rt)}else Z.value==="week"?R(ut.date):Z.value==="dates"&&R(ut,!0)},V=ut=>{const rt=ut?"add":"subtract";m.value=m.value[rt](1,"month"),_t("month")},L=ut=>{const rt=m.value,he=ut?"add":"subtract";m.value=j.value==="year"?rt[he](10,"year"):rt[he](1,"year"),_t("year")},j=Y("date"),H=ee(()=>{const ut=l("el.datepicker.year");if(j.value==="year"){const rt=Math.floor(k.value/10)*10;return ut?`${rt} ${ut} - ${rt+9} ${ut}`:`${rt} - ${rt+9}`}return`${k.value} ${ut}`}),G=ut=>{const rt=Pn(ut.value)?ut.value():ut.value;if(rt){w=!0,R(rr(rt).locale(u.value));return}ut.onClick&&ut.onClick({attrs:a,slots:s,emit:t})},Z=ee(()=>{const{type:ut}=n;return["week","month","months","year","years","dates"].includes(ut)?ut:"date"}),z=ee(()=>Z.value==="dates"||Z.value==="months"||Z.value==="years"),U=ee(()=>Z.value==="date"?j.value:Z.value),W=ee(()=>!!f.length),re=async(ut,rt)=>{Z.value==="month"?(m.value=Ry(m.value,m.value.year(),ut,u.value,p),R(m.value,!1)):Z.value==="months"?R(ut,rt??!0):(m.value=Ry(m.value,m.value.year(),ut,u.value,p),j.value="date",["month","year","date","week"].includes(Z.value)&&(R(m.value,!0),await Vt(),tn())),_t("month")},J=async(ut,rt)=>{if(Z.value==="year"){const he=m.value.startOf("year").year(ut);m.value=EE(he,u.value,p),R(m.value,!1)}else if(Z.value==="years")R(ut,rt??!0);else{const he=m.value.year(ut);m.value=EE(he,u.value,p),j.value="month",["month","year","date","week"].includes(Z.value)&&(R(m.value,!0),await Vt(),tn())}_t("year")},te=async ut=>{n.disabled||(j.value=ut,await Vt(),tn())},X=ee(()=>n.type==="datetime"||n.type==="datetimerange"),ue=ee(()=>{const ut=X.value||Z.value==="dates",rt=Z.value==="years",he=Z.value==="months",Je=j.value==="date",ct=j.value==="year",Ot=j.value==="month";return ut&&Je||rt&&ct||he&&Ot}),me=ee(()=>!z.value&&n.showNow||n.showConfirm),Me=ee(()=>p?n.parsedValue?qt(n.parsedValue)?p(n.parsedValue[0].toDate()):p(n.parsedValue.toDate()):!0:!1),Ae=()=>{if(z.value)R(n.parsedValue);else{let ut=n.parsedValue;if(!ut){const rt=rr(h).locale(u.value),he=Lt();ut=rt.year(he.year()).month(he.month()).date(he.date())}m.value=ut,R(ut)}},ge=ee(()=>p?p(rr().locale(u.value).toDate()):!1),_e=()=>{const rt=rr().locale(u.value).toDate();b.value=!0,(!p||!p(rt))&&M(rt)&&(m.value=rr().locale(u.value),R(m.value))},Q=ee(()=>n.timeFormat||G1e(n.format)||Ny),be=ee(()=>n.dateFormat||q1e(n.format)||uh),De=ee(()=>{if(P.value)return P.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(Q.value)}),pe=ee(()=>{if(I.value)return I.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(be.value)}),ie=Y(!1),ce=()=>{ie.value=!0},Re=()=>{ie.value=!1},Ee=ut=>({hour:ut.hour(),minute:ut.minute(),second:ut.second(),year:ut.year(),month:ut.month(),date:ut.date()}),Le=(ut,rt,he)=>{const{hour:Je,minute:ct,second:Ot}=Ee(ut),Tn=n.parsedValue?n.parsedValue.hour(Je).minute(ct).second(Ot):ut;m.value=Tn,R(m.value,!0),he||(ie.value=rt)},Fe=ut=>{const rt=rr(ut,Q.value).locale(u.value);if(rt.isValid()&&M(rt)){const{year:he,month:Je,date:ct}=Ee(m.value);m.value=rt.year(he).month(Je).date(ct),P.value=null,ie.value=!1,R(m.value,!0)}},Pe=ut=>{const rt=By(ut,be.value,u.value,c);if(rt.isValid()){if(p&&p(rt.toDate()))return;const{hour:he,minute:Je,second:ct}=Ee(m.value);m.value=rt.hour(he).minute(Je).second(ct),I.value=null,R(m.value,!0)}},Ne=ut=>rr.isDayjs(ut)&&ut.isValid()&&(p?!p(ut.toDate()):!0),ht=ut=>qt(ut)?ut.map(rt=>rt.format(n.format)):ut.format(n.format),Rt=ut=>By(ut,n.format,u.value,c),Lt=()=>{const ut=rr(g.value).locale(u.value);if(!g.value){const rt=A.value;return rr().hour(rt.hour()).minute(rt.minute()).second(rt.second()).locale(u.value)}return ut},tn=()=>{var ut;["week","month","year","date"].includes(Z.value)&&((ut=y.value)==null||ut.focus())},Wt=()=>{tn(),Z.value==="week"&&dt(gn.down)},zt=ut=>{const{code:rt}=ut;[gn.up,gn.down,gn.left,gn.right,gn.home,gn.end,gn.pageUp,gn.pageDown].includes(rt)&&(dt(rt),ut.stopPropagation(),ut.preventDefault()),[gn.enter,gn.space,gn.numpadEnter].includes(rt)&&I.value===null&&P.value===null&&(ut.preventDefault(),R(m.value,!1))},dt=ut=>{var rt;const{up:he,down:Je,left:ct,right:Ot,home:Tn,end:In,pageUp:je,pageDown:ke}=gn,ye={year:{[he]:-4,[Je]:4,[ct]:-1,[Ot]:1,offset:(ot,gt)=>ot.setFullYear(ot.getFullYear()+gt)},month:{[he]:-4,[Je]:4,[ct]:-1,[Ot]:1,offset:(ot,gt)=>ot.setMonth(ot.getMonth()+gt)},week:{[he]:-1,[Je]:1,[ct]:-1,[Ot]:1,offset:(ot,gt)=>ot.setDate(ot.getDate()+gt*7)},date:{[he]:-7,[Je]:7,[ct]:-1,[Ot]:1,[Tn]:ot=>-ot.getDay(),[In]:ot=>-ot.getDay()+6,[je]:ot=>-new Date(ot.getFullYear(),ot.getMonth(),0).getDate(),[ke]:ot=>new Date(ot.getFullYear(),ot.getMonth()+1,0).getDate(),offset:(ot,gt)=>ot.setDate(ot.getDate()+gt)}},Be=m.value.toDate();for(;Math.abs(m.value.diff(Be,"year",!0))<1;){const ot=ye[U.value];if(!ot)return;if(ot.offset(Be,Pn(ot[ut])?ot[ut](Be):(rt=ot[ut])!=null?rt:0),p&&p(Be))break;const gt=rr(Be).locale(u.value);m.value=gt,t("pick",gt,!0);break}},_t=ut=>{t("panel-change",m.value.toDate(),ut,j.value)};return Ct(()=>Z.value,ut=>{if(["month","year"].includes(ut)){j.value=ut;return}else if(ut==="years"){j.value="year";return}else if(ut==="months"){j.value="month";return}j.value="date"},{immediate:!0}),Ct(()=>g.value,ut=>{ut&&(m.value=Lt())},{immediate:!0}),Ct(()=>n.parsedValue,ut=>{if(ut){if(z.value||qt(ut))return;m.value=ut}else m.value=Lt()},{immediate:!0}),t("set-picker-option",["isValidValue",Ne]),t("set-picker-option",["formatToString",ht]),t("set-picker-option",["parseUserInput",Rt]),t("set-picker-option",["handleFocusPicker",Wt]),(ut,rt)=>(F(),K("div",{class:oe([C(o).b(),C(i).b(),C(o).is("border",ut.border),C(o).is("disabled",ut.disabled),{"has-sidebar":ut.$slots.sidebar||C(W),"has-time":C(X)}])},[x("div",{class:oe(C(o).e("body-wrapper"))},[pt(ut.$slots,"sidebar",{class:oe(C(o).e("sidebar"))}),C(W)?(F(),K("div",{key:0,class:oe(C(o).e("sidebar"))},[(F(!0),K(Nt,null,on(C(f),(he,Je)=>(F(),K("button",{key:Je,type:"button",disabled:ut.disabled,class:oe(C(o).e("shortcut")),onClick:ct=>G(he)},ze(he.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(o).e("body"))},[C(X)?(F(),K("div",{key:0,class:oe(C(i).e("time-header"))},[x("span",{class:oe(C(i).e("editor-wrap"))},[$e(C(Us),{placeholder:C(l)("el.datepicker.selectDate"),"model-value":C(pe),size:"small","validate-event":!1,disabled:ut.disabled,onInput:he=>I.value=he,onChange:Pe},null,8,["placeholder","model-value","disabled","onInput"])],2),an((F(),K("span",{class:oe(C(i).e("editor-wrap"))},[$e(C(Us),{placeholder:C(l)("el.datepicker.selectTime"),"model-value":C(De),size:"small","validate-event":!1,disabled:ut.disabled,onFocus:ce,onInput:he=>P.value=he,onChange:Fe},null,8,["placeholder","model-value","disabled","onInput"]),$e(C(xE),{visible:ie.value,format:C(Q),"parsed-value":m.value,onPick:Le},null,8,["visible","format","parsed-value"])],2)),[[C(Zf),Re]])],2)):xe("v-if",!0),an(x("div",{class:oe([C(i).e("header"),(j.value==="year"||j.value==="month")&&C(i).e("header--bordered")])},[x("span",{class:oe(C(i).e("prev-btn"))},[x("button",{type:"button","aria-label":C(l)("el.datepicker.prevYear"),class:oe(["d-arrow-left",C(o).e("icon-btn")]),disabled:ut.disabled,onClick:he=>L(!1)},[pt(ut.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["aria-label","disabled","onClick"]),an(x("button",{type:"button","aria-label":C(l)("el.datepicker.prevMonth"),class:oe([C(o).e("icon-btn"),"arrow-left"]),disabled:ut.disabled,onClick:he=>V(!1)},[pt(ut.$slots,"prev-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_:1})])],10,["aria-label","disabled","onClick"]),[[Ar,j.value==="date"]])],2),x("span",{role:"button",class:oe(C(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(he=>te("year"),["enter"]),onClick:he=>te("year")},ze(C(H)),43,["onKeydown","onClick"]),an(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(i).e("header-label"),{active:j.value==="month"}]),onKeydown:Lr(he=>te("month"),["enter"]),onClick:he=>te("month")},ze(C(l)(`el.datepicker.month${C(S)+1}`)),43,["onKeydown","onClick"]),[[Ar,j.value==="date"]]),x("span",{class:oe(C(i).e("next-btn"))},[an(x("button",{type:"button","aria-label":C(l)("el.datepicker.nextMonth"),class:oe([C(o).e("icon-btn"),"arrow-right"]),disabled:ut.disabled,onClick:he=>V(!0)},[pt(ut.$slots,"next-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})])],10,["aria-label","disabled","onClick"]),[[Ar,j.value==="date"]]),x("button",{type:"button","aria-label":C(l)("el.datepicker.nextYear"),class:oe([C(o).e("icon-btn"),"d-arrow-right"]),disabled:ut.disabled,onClick:he=>L(!0)},[pt(ut.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["aria-label","disabled","onClick"])],2)],2),[[Ar,j.value!=="time"]]),x("div",{class:oe(C(o).e("content")),onKeydown:zt},[j.value==="date"?(F(),mt(PL,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"parsed-value":ut.parsedValue,"disabled-date":C(p),disabled:ut.disabled,"cell-class-name":C(v),"show-week-number":ut.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(X3,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"disabled-date":C(p),disabled:ut.disabled,"parsed-value":ut.parsedValue,"cell-class-name":C(v),onPick:J},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):xe("v-if",!0),j.value==="month"?(F(),mt(Z3,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":C(Z),date:m.value,"parsed-value":ut.parsedValue,"disabled-date":C(p),disabled:ut.disabled,"cell-class-name":C(v),onPick:re},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):xe("v-if",!0)],34)],2)],2),ut.showFooter&&C(ue)&&C(me)?(F(),K("div",{key:0,class:oe(C(o).e("footer"))},[an($e(C(Za),{text:"",size:"small",class:oe(C(o).e("link-btn")),disabled:C(ge),onClick:_e},{default:nt(()=>[An(ze(C(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Ar,!C(z)&&ut.showNow]]),ut.showConfirm?(F(),mt(C(Za),{key:0,plain:"",size:"small",class:oe(C(o).e("link-btn")),disabled:C(Me),onClick:Ae},{default:nt(()=>[An(ze(C(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var sqe=en(aqe,[["__file","panel-date-pick.vue"]]);const lqe=Yt({...Pye,...YH}),uqe=e=>{const{emit:t}=vr(),n=pp(),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})}},XH=(e,{defaultValue:t,defaultTime:n,leftDate:r,rightDate:o,step:i,unit:a,onParsedValueChanged:s})=>{const{emit:l}=vr(),{pickerNs:u}=un(GH),d=jt("date-range-picker"),{t:c,lang:f}=Hr(),p=uqe(f),v=Y(),h=Y(),g=Y({endDate:null,selecting:!1}),y=S=>{g.value=S},m=(S=!1)=>{const k=C(v),O=C(h);Q3([k,O])&&l("pick",[k,O],S)},b=S=>{g.value.selecting=S,S||(g.value.endDate=null)},w=S=>{if(qt(S)&&S.length===2){const[k,O]=S;v.value=k,r.value=k,h.value=O,s(C(v),C(h))}else A()},A=()=>{let[S,k]=dD(C(t),{lang:C(f),step:i,unit:a,unlinkPanels:e.unlinkPanels});const O=P=>P.diff(P.startOf("d"),"ms"),I=C(n);if(I){let P=0,M=0;if(qt(I)){const[_,R]=I.map(rr);P=O(_),M=O(R)}else{const _=O(rr(I));P=_,M=_}S=S.startOf("d").add(P,"ms"),k=k.startOf("d").add(M,"ms")}v.value=void 0,h.value=void 0,r.value=S,o.value=k};return Ct(t,S=>{S&&A()},{immediate:!0}),Ct(()=>e.parsedValue,S=>{S?.length||w(S)},{immediate:!0}),Ct(()=>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}},cqe=(e,t,n,r)=>{const o=Y("date"),i=Y(),a=Y("date"),s=Y(),l=un(Fc),{disabledDate:u}=l.props,{t:d,lang:c}=Hr(),f=ee(()=>n.value.year()),p=ee(()=>n.value.month()),v=ee(()=>r.value.year()),h=ee(()=>r.value.month());function g(S,k){const O=d("el.datepicker.year");if(S.value==="year"){const I=Math.floor(k.value/10)*10;return O?`${I} ${O} - ${I+9} ${O}`:`${I} - ${I+9}`}return`${k.value} ${O}`}function y(S){S?.focus()}async function m(S,k){if(e.disabled)return;const O=S==="left"?o:a,I=S==="left"?i:s;O.value=k,await Vt(),y(I.value)}async function b(S,k,O){if(e.disabled)return;const I=k==="left",P=I?n:r,M=I?r:n,_=I?o:a,R=I?i:s;if(S==="year"){const N=P.value.year(O);P.value=EE(N,c.value,u)}S==="month"&&(P.value=Ry(P.value,P.value.year(),O,c.value,u)),e.unlinkPanels||(M.value=k==="left"?P.value.add(1,"month"):P.value.subtract(1,"month")),_.value=S==="year"?"month":"date",await Vt(),y(R.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),r.value.toDate()],S)}function A(S,k,O){const I=O?"add":"subtract";return S==="year"?k[I](10,"year"):k[I](1,"year")}return{leftCurrentView:o,rightCurrentView:a,leftCurrentViewRef:i,rightCurrentViewRef:s,leftYear:f,rightYear:v,leftMonth:p,rightMonth:h,leftYearLabel:ee(()=>g(o,f)),rightYearLabel:ee(()=>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}},Ax="month",dqe=et({__name:"panel-date-range",props:lqe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=un(Fc),o=un(BC,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=Y(rr().locale(f.value)),v=Y(rr().locale(f.value).add(1,Ax));let h=!0;const{minDate:g,maxDate:y,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:A,handleRangeConfirm:S,handleShortcutClick:k,onSelect:O,onReset:I,t:P}=XH(n,{defaultValue:c,defaultTime:s,leftDate:p,rightDate:v,unit:Ax,onParsedValueChanged:ot});Ct(()=>n.visible,gt=>{!gt&&m.value.selecting&&(I(n.parsedValue),O(!1))});const M=Y({min:null,max:null}),_=Y({min:null,max:null}),{leftCurrentView:R,rightCurrentView:N,leftCurrentViewRef:V,rightCurrentViewRef:L,leftYear:j,rightYear:H,leftMonth:G,rightMonth:Z,leftYearLabel:z,rightYearLabel:U,showLeftPicker:W,showRightPicker:re,handleLeftYearPick:J,handleRightYearPick:te,handleLeftMonthPick:X,handleRightMonthPick:ue,handlePanelChange:me,adjustDateByView:Me}=cqe(n,t,p,v),Ae=ee(()=>!!d.value.length),ge=ee(()=>M.value.min!==null?M.value.min:g.value?g.value.format(pe.value):""),_e=ee(()=>M.value.max!==null?M.value.max:y.value||g.value?(y.value||g.value).format(pe.value):""),Q=ee(()=>_.value.min!==null?_.value.min:g.value?g.value.format(De.value):""),be=ee(()=>_.value.max!==null?_.value.max:y.value||g.value?(y.value||g.value).format(De.value):""),De=ee(()=>n.timeFormat||G1e(u.value||"")||Ny),pe=ee(()=>n.dateFormat||q1e(u.value||"")||uh),ie=gt=>Q3(gt)&&(i?!i(gt[0].toDate())&&!i(gt[1].toDate()):!0),ce=()=>{p.value=Me(R.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),me("year")},Re=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),me("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")),me("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")),me("month")},Fe=()=>{p.value=Me(R.value,p.value,!0),me("year")},Pe=()=>{p.value=p.value.add(1,"month"),me("month")},Ne=()=>{v.value=Me(N.value,v.value,!1),me("year")},ht=()=>{v.value=v.value.subtract(1,"month"),me("month")},Rt=ee(()=>{const gt=(G.value+1)%12,Ke=G.value+1>=12?1:0;return n.unlinkPanels&&new Date(j.value+Ke,gt)<new Date(H.value,Z.value)}),Lt=ee(()=>n.unlinkPanels&&H.value*12+Z.value-(j.value*12+G.value+1)>=12),tn=ee(()=>!(g.value&&y.value&&!m.value.selecting&&Q3([g.value,y.value]))),Wt=ee(()=>n.type==="datetime"||n.type==="datetimerange"),zt=(gt,Ke)=>{if(gt)return s?rr(s[Ke]||s).locale(f.value).year(gt.year()).month(gt.month()).date(gt.date()):gt},dt=(gt,Ke=!0)=>{const He=gt.minDate,at=gt.maxDate,St=zt(He,0),tt=zt(at,1);y.value===tt&&g.value===St||(t("calendar-change",[He.toDate(),at&&at.toDate()]),y.value=tt,g.value=St,!Wt.value&&Ke&&(Ke=!St||!tt),h=Ke)};Ct([y,g],([gt,Ke])=>{gt&&Ke&&(S(h),h=!0)});const _t=Y(!1),ut=Y(!1),rt=()=>{_t.value=!1},he=()=>{ut.value=!1},Je=(gt,Ke)=>{M.value[Ke]=gt;const He=rr(gt,pe.value).locale(f.value);if(He.isValid()){if(i&&i(He.toDate()))return;Ke==="min"?(p.value=He,g.value=(g.value||p.value).year(He.year()).month(He.month()).date(He.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(g.value))&&(v.value=He.add(1,"month"),y.value=g.value.add(1,"month"))):(v.value=He,y.value=(y.value||v.value).year(He.year()).month(He.month()).date(He.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(y.value))&&(p.value=He.subtract(1,"month"),g.value=y.value.subtract(1,"month")))}},ct=(gt,Ke)=>{M.value[Ke]=null},Ot=(gt,Ke)=>{_.value[Ke]=gt;const He=rr(gt,De.value).locale(f.value);He.isValid()&&(Ke==="min"?(_t.value=!0,g.value=(g.value||p.value).hour(He.hour()).minute(He.minute()).second(He.second())):(ut.value=!0,y.value=(y.value||v.value).hour(He.hour()).minute(He.minute()).second(He.second()),v.value=y.value))},Tn=(gt,Ke)=>{_.value[Ke]=null,Ke==="min"?(p.value=g.value,_t.value=!1,(!y.value||y.value.isBefore(g.value))&&(y.value=g.value)):(v.value=y.value,ut.value=!1,y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},In=(gt,Ke,He)=>{_.value.min||(gt&&(p.value=gt,g.value=(g.value||p.value).hour(gt.hour()).minute(gt.minute()).second(gt.second())),He||(_t.value=Ke),(!y.value||y.value.isBefore(g.value))&&(y.value=g.value,v.value=gt,Vt(()=>{I(n.parsedValue)})))},je=(gt,Ke,He)=>{_.value.max||(gt&&(v.value=gt,y.value=(y.value||v.value).hour(gt.hour()).minute(gt.minute()).second(gt.second())),He||(ut.value=Ke),y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},ke=()=>{p.value=dD(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)},ye=gt=>qt(gt)?gt.map(Ke=>Ke.format(u.value)):gt.format(u.value),Be=gt=>By(gt,u.value||"",f.value,o);function ot(gt,Ke){if(n.unlinkPanels&&Ke){const He=gt?.year()||0,at=gt?.month()||0,St=Ke.year(),tt=Ke.month();v.value=He===St&&at===tt?Ke.add(1,Ax):Ke}else v.value=p.value.add(1,Ax),Ke&&(v.value=v.value.hour(Ke.hour()).minute(Ke.minute()).second(Ke.second()))}return t("set-picker-option",["isValidValue",ie]),t("set-picker-option",["parseUserInput",Be]),t("set-picker-option",["formatToString",ye]),t("set-picker-option",["handleClear",ke]),(gt,Ke)=>(F(),K("div",{class:oe([C(b).b(),C(w).b(),C(b).is("border",gt.border),C(b).is("disabled",gt.disabled),{"has-sidebar":gt.$slots.sidebar||C(Ae),"has-time":C(Wt)}])},[x("div",{class:oe(C(b).e("body-wrapper"))},[pt(gt.$slots,"sidebar",{class:oe(C(b).e("sidebar"))}),C(Ae)?(F(),K("div",{key:0,class:oe(C(b).e("sidebar"))},[(F(!0),K(Nt,null,on(C(d),(He,at)=>(F(),K("button",{key:at,type:"button",disabled:gt.disabled,class:oe(C(b).e("shortcut")),onClick:St=>C(k)(He)},ze(He.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(b).e("body"))},[C(Wt)?(F(),K("div",{key:0,class:oe(C(w).e("time-header"))},[x("span",{class:oe(C(w).e("editors-wrap"))},[x("span",{class:oe(C(w).e("time-picker-wrap"))},[$e(C(Us),{size:"small",disabled:C(m).selecting||gt.disabled,placeholder:C(P)("el.datepicker.startDate"),class:oe(C(w).e("editor")),"model-value":C(ge),"validate-event":!1,onInput:He=>Je(He,"min"),onChange:He=>ct(He,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),an((F(),K("span",{class:oe(C(w).e("time-picker-wrap"))},[$e(C(Us),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||gt.disabled,placeholder:C(P)("el.datepicker.startTime"),"model-value":C(Q),"validate-event":!1,onFocus:He=>_t.value=!0,onInput:He=>Ot(He,"min"),onChange:He=>Tn(He,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),$e(C(xE),{visible:_t.value,format:C(De),"datetime-role":"start","parsed-value":p.value,onPick:In},null,8,["visible","format","parsed-value"])],2)),[[C(Zf),rt]])],2),x("span",null,[$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})]),x("span",{class:oe([C(w).e("editors-wrap"),"is-right"])},[x("span",{class:oe(C(w).e("time-picker-wrap"))},[$e(C(Us),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||gt.disabled,placeholder:C(P)("el.datepicker.endDate"),"model-value":C(_e),readonly:!C(g),"validate-event":!1,onInput:He=>Je(He,"max"),onChange:He=>ct(He,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),an((F(),K("span",{class:oe(C(w).e("time-picker-wrap"))},[$e(C(Us),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||gt.disabled,placeholder:C(P)("el.datepicker.endTime"),"model-value":C(be),readonly:!C(g),"validate-event":!1,onFocus:He=>C(g)&&(ut.value=!0),onInput:He=>Ot(He,"max"),onChange:He=>Tn(He,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),$e(C(xE),{"datetime-role":"end",visible:ut.value,format:C(De),"parsed-value":v.value,onPick:je},null,8,["visible","format","parsed-value"])],2)),[[C(Zf),he]])],2)],2)):xe("v-if",!0),x("div",{class:oe([[C(b).e("content"),C(w).e("content")],"is-left"])},[x("div",{class:oe(C(w).e("header"))},[x("button",{type:"button",class:oe([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(P)("el.datepicker.prevYear"),disabled:gt.disabled,onClick:ce},[pt(gt.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["aria-label","disabled"]),an(x("button",{type:"button",class:oe([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(P)("el.datepicker.prevMonth"),disabled:gt.disabled,onClick:Re},[pt(gt.$slots,"prev-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_:1})])],10,["aria-label","disabled"]),[[Ar,C(R)==="date"]]),gt.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(Lt)||gt.disabled,class:oe([[C(b).e("icon-btn"),C(b).is("disabled",!C(Lt)||gt.disabled)],"d-arrow-right"]),"aria-label":C(P)("el.datepicker.nextYear"),onClick:Fe},[pt(gt.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),gt.unlinkPanels&&C(R)==="date"?(F(),K("button",{key:1,type:"button",disabled:!C(Rt)||gt.disabled,class:oe([[C(b).e("icon-btn"),C(b).is("disabled",!C(Rt)||gt.disabled)],"arrow-right"]),"aria-label":C(P)("el.datepicker.nextMonth"),onClick:Pe},[pt(gt.$slots,"next-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("div",null,[x("span",{role:"button",class:oe(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(He=>C(W)("year"),["enter"]),onClick:He=>C(W)("year")},ze(C(z)),43,["onKeydown","onClick"]),an(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(w).e("header-label"),{active:C(R)==="month"}]),onKeydown:Lr(He=>C(W)("month"),["enter"]),onClick:He=>C(W)("month")},ze(C(P)(`el.datepicker.month${p.value.month()+1}`)),43,["onKeydown","onClick"]),[[Ar,C(R)==="date"]])])],2),C(R)==="date"?(F(),mt(PL,{key:0,ref_key:"leftCurrentViewRef",ref:V,"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":gt.showWeekNumber,disabled:gt.disabled,onChangerange:C(A),onPick:dt,onSelect:C(O)},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(R)==="year"?(F(),mt(X3,{key:1,ref_key:"leftCurrentViewRef",ref:V,"selection-mode":"year",date:p.value,"disabled-date":C(i),"parsed-value":gt.parsedValue,disabled:gt.disabled,onPick:C(J)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(R)==="month"?(F(),mt(Z3,{key:2,ref_key:"leftCurrentViewRef",ref:V,"selection-mode":"month",date:p.value,"parsed-value":gt.parsedValue,"disabled-date":C(i),disabled:gt.disabled,onPick:C(X)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2),x("div",{class:oe([[C(b).e("content"),C(w).e("content")],"is-right"])},[x("div",{class:oe([C(w).e("header"),C(b).is("disabled",!C(Lt)||gt.disabled)])},[gt.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(Lt)||gt.disabled,class:oe([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(P)("el.datepicker.prevYear"),onClick:Ne},[pt(gt.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),gt.unlinkPanels&&C(N)==="date"?(F(),K("button",{key:1,type:"button",disabled:!C(Rt)||gt.disabled,class:oe([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(P)("el.datepicker.prevMonth"),onClick:ht},[pt(gt.$slots,"prev-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("button",{type:"button","aria-label":C(P)("el.datepicker.nextYear"),class:oe([C(b).e("icon-btn"),"d-arrow-right"]),disabled:gt.disabled,onClick:Ee},[pt(gt.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["aria-label","disabled"]),an(x("button",{type:"button",class:oe([C(b).e("icon-btn"),"arrow-right"]),disabled:gt.disabled,"aria-label":C(P)("el.datepicker.nextMonth"),onClick:Le},[pt(gt.$slots,"next-month",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})])],10,["disabled","aria-label"]),[[Ar,C(N)==="date"]]),x("div",null,[x("span",{role:"button",class:oe(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Lr(He=>C(re)("year"),["enter"]),onClick:He=>C(re)("year")},ze(C(U)),43,["onKeydown","onClick"]),an(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(w).e("header-label"),{active:C(N)==="month"}]),onKeydown:Lr(He=>C(re)("month"),["enter"]),onClick:He=>C(re)("month")},ze(C(P)(`el.datepicker.month${v.value.month()+1}`)),43,["onKeydown","onClick"]),[[Ar,C(N)==="date"]])])],2),C(N)==="date"?(F(),mt(PL,{key:0,ref_key:"rightCurrentViewRef",ref:L,"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":gt.showWeekNumber,disabled:gt.disabled,onChangerange:C(A),onPick:dt,onSelect:C(O)},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(X3,{key:1,ref_key:"rightCurrentViewRef",ref:L,"selection-mode":"year",date:v.value,"disabled-date":C(i),"parsed-value":gt.parsedValue,disabled:gt.disabled,onPick:C(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(N)==="month"?(F(),mt(Z3,{key:2,ref_key:"rightCurrentViewRef",ref:L,"selection-mode":"month",date:v.value,"parsed-value":gt.parsedValue,"disabled-date":C(i),disabled:gt.disabled,onPick:C(ue)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2)],2)],2),gt.showFooter&&C(Wt)&&(gt.showConfirm||C(l))?(F(),K("div",{key:0,class:oe(C(b).e("footer"))},[C(l)?(F(),mt(C(Za),{key:0,text:"",size:"small",class:oe(C(b).e("link-btn")),onClick:ke},{default:nt(()=>[An(ze(C(P)("el.datepicker.clear")),1)]),_:1},8,["class"])):xe("v-if",!0),gt.showConfirm?(F(),mt(C(Za),{key:1,plain:"",size:"small",class:oe(C(b).e("link-btn")),disabled:C(tn),onClick:He=>C(S)(!1)},{default:nt(()=>[An(ze(C(P)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var fqe=en(dqe,[["__file","panel-date-range.vue"]]);const pqe=Yt({...YH}),hqe=["pick","set-picker-option","calendar-change"],gqe=({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=ee(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=ee(()=>`${n.value.year()} ${r("el.datepicker.year")}`),d=ee(()=>t.value.year()),c=ee(()=>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}},Cx="year",vqe=et({name:"DatePickerMonthRange"}),mqe=et({...vqe,props:pqe,emits:hqe,setup(e,{emit:t}){const n=e,{lang:r}=Hr(),o=un(Fc),i=un(BC,void 0),{shortcuts:a,disabledDate:s,cellClassName:l}=o.props,u=ao(o.props,"format"),d=ao(o.props,"defaultValue"),c=Y(rr().locale(r.value)),f=Y(rr().locale(r.value).add(1,Cx)),{minDate:p,maxDate:v,rangeState:h,ppNs:g,drpNs:y,handleChangeRange:m,handleRangeConfirm:b,handleShortcutClick:w,onSelect:A,onReset:S}=XH(n,{defaultValue:d,leftDate:c,rightDate:f,unit:Cx,onParsedValueChanged:z}),k=ee(()=>!!a.length),{leftPrevYear:O,rightNextYear:I,leftNextYear:P,rightPrevYear:M,leftLabel:_,rightLabel:R,leftYear:N,rightYear:V}=gqe({unlinkPanels:ao(n,"unlinkPanels"),leftDate:c,rightDate:f}),L=ee(()=>n.unlinkPanels&&V.value>N.value+1),j=(U,W=!0)=>{const re=U.minDate,J=U.maxDate;v.value===J&&p.value===re||(t("calendar-change",[re.toDate(),J&&J.toDate()]),v.value=J,p.value=re,W&&b())},H=()=>{c.value=dD(C(d),{lang:C(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],f.value=c.value.add(1,"year"),t("pick",null)},G=U=>qt(U)?U.map(W=>W.format(u.value)):U.format(u.value),Z=U=>By(U,u.value,r.value,i);function z(U,W){if(n.unlinkPanels&&W){const re=U?.year()||0,J=W.year();f.value=re===J?W.add(1,Cx):W}else f.value=c.value.add(1,Cx)}return Ct(()=>n.visible,U=>{!U&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",Q3]),t("set-picker-option",["formatToString",G]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["handleClear",H]),(U,W)=>(F(),K("div",{class:oe([C(g).b(),C(y).b(),C(g).is("border",U.border),C(g).is("disabled",U.disabled),{"has-sidebar":!!U.$slots.sidebar||C(k)}])},[x("div",{class:oe(C(g).e("body-wrapper"))},[pt(U.$slots,"sidebar",{class:oe(C(g).e("sidebar"))}),C(k)?(F(),K("div",{key:0,class:oe(C(g).e("sidebar"))},[(F(!0),K(Nt,null,on(C(a),(re,J)=>(F(),K("button",{key:J,type:"button",class:oe(C(g).e("shortcut")),disabled:U.disabled,onClick:te=>C(w)(re)},ze(re.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(g).e("body"))},[x("div",{class:oe([[C(g).e("content"),C(y).e("content")],"is-left"])},[x("div",{class:oe(C(y).e("header"))},[x("button",{type:"button",class:oe([C(g).e("icon-btn"),"d-arrow-left"]),disabled:U.disabled,onClick:C(O)},[pt(U.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["disabled","onClick"]),U.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(L)||U.disabled,class:oe([[C(g).e("icon-btn"),{[C(g).is("disabled")]:!C(L)}],"d-arrow-right"]),onClick:C(P)},[pt(U.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,ze(C(_)),1)],2),$e(Z3,{"selection-mode":"range",date:c.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:U.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:oe([[C(g).e("content"),C(y).e("content")],"is-right"])},[x("div",{class:oe(C(y).e("header"))},[U.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(L)||U.disabled,class:oe([[C(g).e("icon-btn"),{"is-disabled":!C(L)}],"d-arrow-left"]),onClick:C(M)},[pt(U.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:oe([C(g).e("icon-btn"),"d-arrow-right"]),disabled:U.disabled,onClick:C(I)},[pt(U.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["disabled","onClick"]),x("div",null,ze(C(R)),1)],2),$e(Z3,{"selection-mode":"range",date:f.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:U.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 yqe=en(mqe,[["__file","panel-month-range.vue"]]);const bqe=Yt({...YH}),wqe=["pick","set-picker-option","calendar-change"],Aqe=({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=ee(()=>{const c=Math.floor(t.value.year()/10)*10;return`${c}-${c+9}`}),l=ee(()=>{const c=Math.floor(n.value.year()/10)*10;return`${c}-${c+9}`}),u=ee(()=>Math.floor(t.value.year()/10)*10+9),d=ee(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:o,leftNextYear:i,rightPrevYear:a,leftLabel:s,rightLabel:l,leftYear:u,rightYear:d}},Mm=10,_2="year",Cqe=et({name:"DatePickerYearRange"}),xqe=et({...Cqe,props:bqe,emits:wqe,setup(e,{emit:t}){const n=e,{lang:r}=Hr(),o=Y(rr().locale(r.value)),i=Y(rr().locale(r.value).add(Mm,_2)),a=un(BC,void 0),s=un(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}=XH(n,{defaultValue:f,leftDate:o,rightDate:i,step:Mm,unit:_2,onParsedValueChanged:J}),{leftPrevYear:k,rightNextYear:O,leftNextYear:I,rightPrevYear:P,leftLabel:M,rightLabel:_,leftYear:R,rightYear:N}=Aqe({unlinkPanels:ao(n,"unlinkPanels"),leftDate:o,rightDate:i}),V=ee(()=>!!l.length),L=ee(()=>[g.b(),y.b(),g.is("border",n.border),g.is("disabled",n.disabled),{"has-sidebar":!!pa().sidebar||V.value}]),j=ee(()=>({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=ee(()=>({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=ee(()=>n.unlinkPanels&&N.value>R.value+1),Z=(te,X=!0)=>{const ue=te.minDate,me=te.maxDate;v.value===me&&p.value===ue||(t("calendar-change",[ue.toDate(),me&&me.toDate()]),v.value=me,p.value=ue,X&&b())},z=te=>By(te,c.value,r.value,a),U=te=>qt(te)?te.map(X=>X.format(c.value)):te.format(c.value),W=te=>Q3(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),re=()=>{const te=dD(C(f),{lang:C(r),step:Mm,unit:_2,unlinkPanels:n.unlinkPanels});o.value=te[0],i.value=te[1],t("pick",null)};function J(te,X){if(n.unlinkPanels&&X){const ue=te?.year()||0,me=X.year();i.value=ue+Mm>me?X.add(Mm,_2):X}else i.value=o.value.add(Mm,_2)}return Ct(()=>n.visible,te=>{!te&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",W]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["formatToString",U]),t("set-picker-option",["handleClear",re]),(te,X)=>(F(),K("div",{class:oe(C(L))},[x("div",{class:oe(C(g).e("body-wrapper"))},[pt(te.$slots,"sidebar",{class:oe(C(g).e("sidebar"))}),C(V)?(F(),K("div",{key:0,class:oe(C(g).e("sidebar"))},[(F(!0),K(Nt,null,on(C(l),(ue,me)=>(F(),K("button",{key:me,type:"button",class:oe(C(g).e("shortcut")),disabled:te.disabled,onClick:Me=>C(w)(ue)},ze(ue.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(g).e("body"))},[x("div",{class:oe(C(j).content)},[x("div",{class:oe(C(y).e("header"))},[x("button",{type:"button",class:oe(C(j).arrowLeftBtn),disabled:te.disabled,onClick:C(k)},[pt(te.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["disabled","onClick"]),te.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(G)||te.disabled,class:oe(C(j).arrowRightBtn),onClick:C(I)},[pt(te.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,ze(C(M)),1)],2),$e(X3,{"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:oe(C(H).content)},[x("div",{class:oe(C(y).e("header"))},[te.unlinkPanels?(F(),K("button",{key:0,type:"button",disabled:!C(G)||te.disabled,class:oe(C(H).arrowLeftBtn),onClick:C(P)},[pt(te.$slots,"prev-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(o0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:oe(C(H).arrowRightBtn),disabled:te.disabled,onClick:C(O)},[pt(te.$slots,"next-year",{},()=>[$e(C(_n),null,{default:nt(()=>[$e(C(i0))]),_:1})])],10,["disabled","onClick"]),x("div",null,ze(C(_)),1)],2),$e(X3,{"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 Sqe=en(xqe,[["__file","panel-year-range.vue"]]);const Eqe=function(e){switch(e){case"daterange":case"datetimerange":return fqe;case"monthrange":return yqe;case"yearrange":return Sqe;default:return sqe}};function kqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}rr.extend(Y1e);rr.extend(EVe);rr.extend(HH);rr.extend(DVe);rr.extend(PVe);rr.extend(LVe);rr.extend($Ve);rr.extend(VVe);var Tqe=et({name:"ElDatePickerPanel",install:null,props:qVe,emits:[Gn,"calendar-change","panel-change","visible-change","pick"],setup(e,{slots:t,emit:n}){const r=jt("picker-panel"),o=un(Fc,void 0);if(zr(o)){const d=Ur({..._a(e)});Sr(Fc,{props:d})}Sr(GH,{slots:t,pickerNs:r});const{parsedValue:i,onCalendarChange:a,onPanelChange:s,onSetPickerOption:l,onPick:u}=un(Eye,()=>kye(e,n),!0);return()=>{const d=Eqe(e.type);return $e(d,pr(e,{parsedValue:i.value,"onSet-picker-option":l,"onCalendar-change":a,"onPanel-change":s,onPick:u}),kqe(t)?t:{default:()=>[t]})}}});const Nye=er(Tqe),_qe=Yt({...qH,type:{type:lt(String),default:"date"}});function Dqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}var Iqe=et({name:"ElDatePicker",install:null,props:_qe,emits:[Gn],setup(e,{expose:t,emit:n,slots:r}){const o=ee(()=>!e.format);Sr(BC,o),Sr(WH,Ur(ao(e,"popperOptions")));const i=Y();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:oVe[e.type]||uh;return $e(_ye,pr(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:d=>$e(Nye,pr({border:!1},d),Dqe(r)?r:{default:()=>[r]}),"range-separator":r["range-separator"]})}}});const Oqe=er(Iqe),JH=Symbol("elDescriptions");var D2=et({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:un(JH,{})}},render(){var e;const t=yje(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=jt("descriptions");switch(this.type){case"label":return an(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 an(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"),an(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 Mqe=Yt({row:{type:lt(Array),default:()=>[]}}),Pqe=et({name:"ElDescriptionsRow"}),Nqe=et({...Pqe,props:Mqe,setup(e){const t=un(JH,{});return(n,r)=>C(t).direction==="vertical"?(F(),K(Nt,{key:0},[x("tr",null,[(F(!0),K(Nt,null,on(n.row,(o,i)=>(F(),mt(C(D2),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),x("tr",null,[(F(!0),K(Nt,null,on(n.row,(o,i)=>(F(),mt(C(D2),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(F(),K("tr",{key:1},[(F(!0),K(Nt,null,on(n.row,(o,i)=>(F(),K(Nt,{key:`tr3-${i}`},[C(t).border?(F(),K(Nt,{key:0},[$e(C(D2),{cell:o,tag:"td",type:"label"},null,8,["cell"]),$e(C(D2),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(F(),mt(C(D2),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Rqe=en(Nqe,[["__file","descriptions-row.vue"]]);const Bqe=Yt({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:""}}),Rye="ElDescriptionsItem",Lqe=et({name:"ElDescriptions"}),Fqe=et({...Lqe,props:Bqe,setup(e){const t=e,n=jt("descriptions"),r=fa(),o=pa();Sr(JH,t);const i=ee(()=>[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)===Rye}),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:oe(C(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(F(),K("div",{key:0,class:oe(C(n).e("header"))},[x("div",{class:oe(C(n).e("title"))},[pt(l.$slots,"title",{},()=>[An(ze(l.title),1)])],2),x("div",{class:oe(C(n).e("extra"))},[pt(l.$slots,"extra",{},()=>[An(ze(l.extra),1)])],2)],2)):xe("v-if",!0),x("div",{class:oe(C(n).e("body"))},[x("table",{class:oe([C(n).e("table"),C(n).is("bordered",l.border)])},[x("tbody",null,[(F(!0),K(Nt,null,on(s(),(d,c)=>(F(),mt(Rqe,{key:c,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var Uqe=en(Fqe,[["__file","description.vue"]]);const QJ=["left","center","right"],zqe=Yt({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:QJ,default:"left"},labelAlign:{type:String,values:QJ},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Bye=et({name:Rye,props:zqe}),$qe=er(Uqe,{DescriptionsItem:Bye}),jqe=vi(Bye),eW=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}}},Hqe=Yt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:lt([String,Array,Object])},zIndex:{type:lt([String,Number])}}),Wqe={click:e=>e instanceof MouseEvent},Vqe="overlay";var qqe=et({name:"ElOverlay",props:Hqe,emits:Wqe,setup(e,{slots:t,emit:n}){const r=jt(Vqe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=eW(e.customMaskEvent?void 0:o);return()=>e.mask?$e("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:s},[pt(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"}},[pt(t,"default")])}});const tW=qqe,Lye=Symbol("dialogInjectionKey"),ZJ="dialog-fade",Fye=Yt({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"}}),Gqe={close:()=>!0},Uye=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},i=Y(!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,O=-m+h,I=A-y-b+v,P=S-m-(w<S?w:0)+h;r?.value||(f=Math.min(Math.max(f,k),I),p=Math.min(Math.max(p,O),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()})}),Yr(()=>{u()}),{isDragging:i,resetPosition:d,updatePosition:c}},fD=(...e)=>t=>{e.forEach(n=>{Pn(n)?n(t):n.value=t})},Kqe=et({name:"ElDialogContent"}),Yqe=et({...Kqe,props:Fye,emits:Gqe,setup(e,{expose:t}){const n=e,{t:r}=Hr(),{Close:o}=l1e,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=un(Lye),{focusTrapRef:d}=un(IH),c=fD(d,i),f=ee(()=>!!n.draggable),p=ee(()=>!!n.overflow),{resetPosition:v,updatePosition:h,isDragging:g}=Uye(i,a,f,p),y=ee(()=>[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:oe(C(y)),style:Jt(C(u)),tabindex:"-1"},[x("header",{ref_key:"headerRef",ref:a,class:oe([C(l).e("header"),m.headerClass,{"show-close":m.showClose}])},[pt(m.$slots,"header",{},()=>[x("span",{role:"heading","aria-level":m.ariaLevel,class:oe(C(l).e("title"))},ze(m.title),11,["aria-level"])]),m.showClose?(F(),K("button",{key:0,"aria-label":C(r)("el.dialog.close"),class:oe(C(l).e("headerbtn")),type:"button",onClick:w=>m.$emit("close")},[$e(C(_n),{class:oe(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:oe([C(l).e("body"),m.bodyClass])},[pt(m.$slots,"default")],10,["id"]),m.$slots.footer?(F(),K("footer",{key:0,class:oe([C(l).e("footer"),m.footerClass])},[pt(m.$slots,"footer")],2)):xe("v-if",!0)],6))}});var Qqe=en(Yqe,[["__file","dialog-content.vue"]]);const zye=Yt({...Fye,appendToBody:Boolean,appendTo:{type:sD.to.type,default:"body"},beforeClose:{type:lt(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:lt([String,Object]),default:void 0}}),$ye={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Gn]:e=>Co(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},nW=(e,t={})=>{Ro(e)||Ji("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||jt("popup"),r=ee(()=>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,$s(document.body,r.value))},200)};Ct(e,l=>{if(!l){s();return}i=!El(document.body,r.value),i&&(a=document.body.style.width,Nu(document.body,r.value)),o=Qme(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)`)}),F0e(()=>s())},jye=(e,t)=>{var n;const o=vr().emit,{nextZIndex:i}=Pb();let a="";const s=ds(),l=ds(),u=Y(!1),d=Y(!1),c=Y(!1),f=Y((n=e.zIndex)!=null?n:i());let p,v;const h=Nb(),g=ee(()=>{var z,U;return(U=(z=h.value)==null?void 0:z.namespace)!=null?U:K4}),y=ee(()=>{var z;return(z=h.value)==null?void 0:z.dialog}),m=ee(()=>{const z={},U=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(z[`${U}-margin-top`]=e.top),e.width&&(z[`${U}-width`]=_i(e.width))),z}),b=ee(()=>{var z,U,W;return((W=(U=e.draggable)!=null?U:(z=y.value)==null?void 0:z.draggable)!=null?W:!1)&&!e.fullscreen}),w=ee(()=>{var z,U,W;return(W=(U=e.alignCenter)!=null?U:(z=y.value)==null?void 0:z.alignCenter)!=null?W:!1}),A=ee(()=>{var z,U,W;return(W=(U=e.overflow)!=null?U:(z=y.value)==null?void 0:z.overflow)!=null?W:!1}),S=ee(()=>w.value?{display:"flex"}:{}),k=ee(()=>{var z,U,W;const re=(W=(U=e.transition)!=null?U:(z=y.value)==null?void 0:z.transition)!=null?W:ZJ,J={name:re,onAfterEnter:O,onBeforeLeave:P,onAfterLeave:I};if(ar(re)){const te={...re},X=(ue,me)=>Me=>{qt(ue)?ue.forEach(Ae=>{Pn(Ae)&&Ae(Me)}):Pn(ue)&&ue(Me),me()};return te.onAfterEnter=X(te.onAfterEnter,O),te.onBeforeLeave=X(te.onBeforeLeave,P),te.onAfterLeave=X(te.onAfterLeave,I),te.name||(te.name=ZJ),te}return J});function O(){o("opened")}function I(){o("closed"),o(Gn,!1),e.destroyOnClose&&(c.value=!1)}function P(){o("close")}function M(){v?.(),p?.(),e.openDelay&&e.openDelay>0?{stop:p}=Tv(()=>V(),e.openDelay):V()}function _(){p?.(),v?.(),e.closeDelay&&e.closeDelay>0?{stop:v}=Tv(()=>L(),e.closeDelay):L()}function R(){function z(U){U||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(z):_()}function N(){e.closeOnClickModal&&R()}function V(){Kr&&(u.value=!0)}function L(){u.value=!1}function j(){o("openAutoFocus")}function H(){o("closeAutoFocus")}function G(z){var U;((U=z.detail)==null?void 0:U.focusReason)==="pointer"&&z.preventDefault()}e.lockScroll&&nW(u);function Z(){e.closeOnPressEscape&&R()}return Ct(()=>e.zIndex,()=>{var z;f.value=(z=e.zIndex)!=null?z:i()}),Ct(()=>e.modelValue,z=>{var U;z?(d.value=!1,M(),c.value=!0,f.value=(U=e.zIndex)!=null?U:i(),Vt(()=>{o("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&_()}),Ct(()=>e.fullscreen,z=>{t.value&&(z?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),jn(()=>{e.modelValue&&(u.value=!0,c.value=!0,M())}),{afterEnter:O,afterLeave:I,beforeLeave:P,handleClose:R,onModalClick:N,close:_,doClose:L,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}},Zqe=et({name:"ElDialog",inheritAttrs:!1}),Xqe=et({...Zqe,props:zye,emits:$ye,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"},ee(()=>!!r.title));const o=jt("dialog"),i=Y(),a=Y(),s=Y(),{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:O}=jye(n,i);Sr(Lye,{dialogRef:i,headerRef:a,bodyId:d,ns:o,rendered:p,style:c});const I=eW(w),P=ee(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPosition:()=>{var _;(_=s.value)==null||_.resetPosition()},handleClose:b}),(_,R)=>(F(),mt(C(Lb),{to:_.appendTo,disabled:_.appendTo!=="body"?!1:!_.appendToBody},{default:nt(()=>[$e(Wi,pr(C(v),{persisted:""}),{default:nt(()=>{var N;return[an($e(C(tW),{"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:oe(`${C(o).namespace.value}-overlay-dialog`),style:Jt(C(f)),onClick:C(I).onClick,onMousedown:C(I).onMousedown,onMouseup:C(I).onMouseup},[$e(C(Bb),{loop:"",trapped:C(l),"focus-start-el":"container",onFocusAfterTrapped:C(A),onFocusAfterReleased:C(S),onFocusoutPrevented:C(O),onReleaseRequested:C(k)},{default:nt(()=>[C(p)?(F(),mt(Qqe,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?pt(_.$slots,"title",{key:1}):pt(_.$slots,"header",{key:0,close:C(b),titleId:C(u),titleClass:C(o).e("title")})]),default:nt(()=>[pt(_.$slots,"default")]),_:2},[_.$slots.footer?{name:"footer",fn:nt(()=>[pt(_.$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 Jqe=en(Xqe,[["__file","dialog.vue"]]);const Hye=er(Jqe),eGe=Yt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:lt(String),default:"solid"}}),tGe=et({name:"ElDivider"}),nGe=et({...tGe,props:eGe,setup(e){const t=e,n=jt("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(F(),K("div",{class:oe([C(n).b(),C(n).m(o.direction)]),style:Jt(C(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(F(),K("div",{key:0,class:oe([C(n).e("text"),C(n).is(o.contentPosition)])},[pt(o.$slots,"default")],2)):xe("v-if",!0)],6))}});var rGe=en(nGe,[["__file","divider.vue"]]);const Wye=er(rGe),oGe=Yt({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),Vye=Symbol("splitterRootContextKey");function iGe(e){const t=Y(),{width:n,height:r}=ZRe(t),o=ee(()=>e.value==="horizontal"?n.value:r.value);return{containerEl:t,containerSize:o}}function rW(e){return Number(e.slice(0,-1))/100}function oW(e){return Number(e.slice(0,-2))}function iW(e){return Dn(e)&&e.endsWith("%")}function aW(e){return Dn(e)&&e.endsWith("px")}function aGe(e,t){const n=ee(()=>e.value.map(s=>s.size)),r=ee(()=>e.value.length),o=Y([]);Ct([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(iW(f))l[c]=rW(f);else if(aW(f))l[c]=oW(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=ee(()=>o.value.map(i));return{percentSizes:o,pxSizes:a}}function sGe(e,t,n,r){const o=g=>g*t.value||0;function i(g,y){return iW(g)?o(rW(g)):aW(g)?oW(g):g??y}const a=Y(0),s=Y(null);let l=[],u=go;const d=ee(()=>e.value.map(g=>[g.min,g.max]));Ct(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 R=g;R>=0;R-=1)if(l[R]>0){w=R,s.value={index:R,confirmed:!0};break}}const A=(b=w??((m=s.value)==null?void 0:m.index))!=null?b:g,S=[...l],k=A+1,O=i(d.value[A][0],0),I=i(d.value[k][0],0),P=i(d.value[A][1],t.value||0),M=i(d.value[k][1],t.value||0);let _=y;S[A]+_<O&&(_=O-S[A]),S[k]-_<I&&(_=S[k]-I),S[A]+_>P&&(_=P-S[A]),S[k]-_>M&&(_=S[k]-M),S[A]+=_,S[k]-=_,a.value=_,u=()=>{e.value.forEach((R,N)=>{R.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,O=v[g],I=k-O;m[w]=O,m[b]=I}e.value.forEach((k,O)=>{k.size=m[O]})}}}const lGe=et({name:"ElSplitter"}),uGe=et({...lGe,props:oGe,emits:["resizeStart","resize","resizeEnd","collapse"],setup(e,{emit:t}){const n=e,r=jt("splitter"),o=ao(n,"layout"),i=ao(n,"lazy"),{containerEl:a,containerSize:s}=iGe(o),{removeChild:l,children:u,addChild:d,ChildrenSorter:c}=lD(vr(),"ElSplitterPanel");Ct(u,()=>{u.value.forEach((I,P)=>{I.setIndex(P)})});const{percentSizes:f,pxSizes:p}=aGe(u,s),{lazyOffset:v,movingIndex:h,onMoveStart:g,onMoving:y,onMoveEnd:m,onCollapse:b}=sGe(u,s,p,i),w=ee(()=>({[`--${r.b()}-bar-offset`]:i.value?`${v.value}px`:void 0}));return Sr(Vye,Ur({panels:u,percentSizes:f,pxSizes:p,layout:o,lazy:i,movingIndex:h,containerSize:s,onMoveStart:I=>{g(I),t("resizeStart",I,p.value)},onMoving:(I,P)=>{y(I,P),i.value||t("resize",I,p.value)},onMoveEnd:I=>{m(),t("resizeEnd",I,p.value)},onCollapse:(I,P)=>{b(I,P),t("collapse",I,P,p.value)},registerPanel:d,unregisterPanel:l})),(I,P)=>(F(),K("div",{ref_key:"containerEl",ref:a,class:oe([C(r).b(),C(r).e(C(o))]),style:Jt(C(w))},[pt(I.$slots,"default"),$e(C(c)),xe(" Prevent iframe touch events from breaking "),C(h)?(F(),K("div",{key:0,class:oe([C(r).e("mask"),C(r).e(`mask-${C(o)}`)])},null,2)):xe("v-if",!0)],6))}});var cGe=en(uGe,[["__file","splitter.vue"]]);function dGe(e){return e&&ar(e)?e:{start:!!e,end:!!e}}function XJ(e,t,n,r){return!!(e?.collapsible.end&&t>0||n?.collapsible.start&&r===0&&t>0)}const fGe=et({name:"ElSplitterBar"}),pGe=et({...fGe,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=jt("splitter-bar"),o=ee(()=>n.layout==="horizontal"),i=ee(()=>o.value?{width:0}:{height:0}),a=ee(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:o.value?"col-resize":"row-resize",touchAction:"none"})),s=ee(()=>{const y=r.e("dragger");return{[`${y}-horizontal`]:o.value,[`${y}-vertical`]:!o.value,[`${y}-active`]:!!l.value}}),l=Y(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=ee(()=>o.value?Kf:nD),g=ee(()=>o.value?ka:Kc);return(y,m)=>(F(),K("div",{class:oe([C(r).b()]),style:Jt(C(i))},[e.startCollapsible?(F(),K("div",{key:0,class:oe([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-start`)]),onClick:b=>t("collapse",e.index,"start")},[pt(y.$slots,"start-collapsible",{},()=>[(F(),mt(hr(C(h)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0),x("div",{class:oe([C(r).e("dragger"),C(s),e.resizable?"":C(r).e("disable"),C(r).is("lazy",e.resizable&&e.lazy)]),style:Jt(C(a)),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(F(),K("div",{key:1,class:oe([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-end`)]),onClick:b=>t("collapse",e.index,"end")},[pt(y.$slots,"end-collapsible",{},()=>[(F(),mt(hr(C(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0)],6))}});var hGe=en(pGe,[["__file","split-bar.vue"]]);const gGe=Yt({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),qye="ElSplitterPanel",vGe=et({name:qye}),mGe=et({...vGe,props:gGe,emits:["update:size"],setup(e,{emit:t}){const n=e,r=jt("splitter-panel"),o=un(Vye);o||Ji(qye,"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=Y(),y=vr(),m=y.uid,b=Y(0),w=ee(()=>i.value[b.value]),A=L=>{b.value=L},S=ee(()=>{var L;return w.value&&(L=u.value[b.value])!=null?L:0}),k=ee(()=>{var L;return w.value&&(L=u.value[b.value+1])!=null?L:0}),O=ee(()=>w.value?i.value[b.value+1]:null),I=ee(()=>{var L;return O.value?n.resizable&&((L=O.value)==null?void 0:L.resizable)&&(S.value!==0||!n.min)&&(k.value!==0||!O.value.min):!1}),P=ee(()=>w.value?b.value!==i.value.length-1:!1),M=ee(()=>XJ(w.value,S.value,O.value,k.value)),_=ee(()=>XJ(O.value,k.value,w.value,S.value));function R(L){return iW(L)?rW(L)*l.value||0:aW(L)?oW(L):L??0}let N=!1;Ct(()=>n.size,()=>{if(!N&&w.value){const L=R(n.size),j=R(n.max),H=R(n.min),G=Math.min(Math.max(L,H||0),j||L);G!==L&&t("update:size",G),w.value.size=G}}),Ct(()=>{var L;return(L=w.value)==null?void 0:L.size},L=>{L!==n.size&&(N=!0,t("update:size",L),Vt(()=>N=!1))}),Ct(()=>n.resizable,L=>{w.value&&(w.value.resizable=L)});const V=Ur({el:g.value,uid:m,getVnode:()=>y.vnode,setIndex:A,...n,collapsible:ee(()=>dGe(n.collapsible))});return d(V),Yr(()=>c(V)),(L,j)=>(F(),K(Nt,null,[x("div",pr({ref_key:"panelEl",ref:g,class:[C(r).b()],style:{flexBasis:`${C(S)}px`}},L.$attrs),[pt(L.$slots,"default")],16),C(P)?(F(),mt(hGe,{key:0,index:b.value,layout:C(a),lazy:C(s),resizable:C(I),"start-collapsible":C(M),"end-collapsible":C(_),onMoveStart:C(v),onMoving:C(h),onMoveEnd:C(p),onCollapse:C(f)},{"start-collapsible":nt(()=>[pt(L.$slots,"start-collapsible")]),"end-collapsible":nt(()=>[pt(L.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):xe("v-if",!0)],64))}});var Gye=en(mGe,[["__file","split-panel.vue"]]);const Kye=er(cGe,{SplitPanel:Gye}),PS=vi(Gye),yGe=Yt({...zye,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"}}),bGe=$ye,wGe=et({name:"ElDrawer",inheritAttrs:!1}),AGe=et({...wGe,props:yGe,emits:bGe,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"},ee(()=>!!r.title));const o=Y(),i=Y(),a=jt("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}=jye(n,o),S=ee(()=>n.direction==="rtl"||n.direction==="ltr"),k=ee(()=>_i(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(O,I)=>(F(),mt(C(Lb),{to:O.appendTo,disabled:O.appendTo!=="body"?!1:!O.appendToBody},{default:nt(()=>[$e(Wi,{name:C(a).b("fade"),onAfterEnter:C(l),onAfterLeave:C(u),onBeforeLeave:C(d),persisted:""},{default:nt(()=>[an($e(C(tW),{mask:O.modal,"overlay-class":O.modalClass,"z-index":C(h),onClick:C(g)},{default:nt(()=>[$e(C(Bb),{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(()=>[$e(C(Kye),{class:oe(C(a).b("splitter")),layout:C(S)?"horizontal":"vertical"},{default:nt(()=>[["rtl","btt"].includes(O.direction)?(F(),mt(C(PS),{key:0,onClick:C(g)},null,8,["onClick"])):xe("v-if",!0),$e(C(PS),{resizable:O.resizable,size:C(k)},{default:nt(()=>[x("div",pr({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":O.title||void 0,"aria-labelledby":O.title?void 0:C(p),"aria-describedby":C(v)},O.$attrs,{class:[C(a).b(),O.direction,C(c)&&"open"],role:"dialog",onClick:Qt(()=>{},["stop"])}),[x("span",{ref_key:"focusStartRef",ref:i,class:oe(C(a).e("sr-focus")),tabindex:"-1"},null,2),O.withHeader?(F(),K("header",{key:0,class:oe([C(a).e("header"),O.headerClass])},[O.$slots.title?pt(O.$slots,"title",{key:1},()=>[xe(" DEPRECATED SLOT ")]):pt(O.$slots,"header",{key:0,close:C(A),titleId:C(p),titleClass:C(a).e("title")},()=>[O.$slots.title?xe("v-if",!0):(F(),K("span",{key:0,id:C(p),role:"heading","aria-level":O.headerAriaLevel,class:oe(C(a).e("title"))},ze(O.title),11,["id","aria-level"]))]),O.showClose?(F(),K("button",{key:2,"aria-label":C(s)("el.drawer.close"),class:oe(C(a).e("close-btn")),type:"button",onClick:C(A)},[$e(C(_n),{class:oe(C(a).e("close"))},{default:nt(()=>[$e(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:oe([C(a).e("body"),O.bodyClass])},[pt(O.$slots,"default")],10,["id"])):xe("v-if",!0),O.$slots.footer?(F(),K("div",{key:2,class:oe([C(a).e("footer"),O.footerClass])},[pt(O.$slots,"footer")],2)):xe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["resizable","size"]),["ltr","ttb"].includes(O.direction)?(F(),mt(C(PS),{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 CGe=en(AGe,[["__file","drawer.vue"]]);const xGe=er(CGe),SGe=et({inheritAttrs:!1});function EGe(e,t,n,r,o,i){return pt(e.$slots,"default")}var kGe=en(SGe,[["render",EGe],["__file","collection.vue"]]);const TGe=et({name:"ElCollectionItem",inheritAttrs:!1});function _Ge(e,t,n,r,o,i){return pt(e.$slots,"default")}var DGe=en(TGe,[["render",_Ge],["__file","collection-item.vue"]]);const Yye="data-el-collection-item",Qye=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...kGe,name:t,setup(){const s=Y(),l=new Map;Sr(r,{itemMap:l,getItems:()=>{const d=C(s);if(!d)return[];const c=Array.from(d.querySelectorAll(`[${Yye}]`));return[...l.values()].sort((p,v)=>c.indexOf(p.ref)-c.indexOf(v.ref))},collectionRef:s})}},a={...DGe,name:n,setup(s,{attrs:l}){const u=Y(),d=un(r,void 0);Sr(o,{collectionItemRef:u}),jn(()=>{const c=C(u);c&&d.itemMap.set(c,{ref:c,...l})}),Yr(()=>{const c=C(u);d.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},IGe=Yt({style:{type:lt([String,Array,Object])},currentTabId:{type:lt(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:lt(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:OGe,ElCollectionItem:MGe,COLLECTION_INJECTION_KEY:sW,COLLECTION_ITEM_INJECTION_KEY:PGe}=Qye("RovingFocusGroup"),lW=Symbol("elRovingFocusGroup"),Zye=Symbol("elRovingFocusGroupItem"),NGe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},RGe=(e,t)=>e,BGe=(e,t,n)=>{const r=RGe(e.code);return NGe[r]},LGe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),uW=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},JJ="currentTabIdChange",eee="rovingFocusGroup.entryFocus",FGe={bubbles:!1,cancelable:!0},UGe=et({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:IGe,emits:[JJ,"entryFocus"],setup(e,{emit:t}){var n;const r=Y((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=Y(!1),i=Y(!1),a=Y(),{getItems:s}=un(sW,void 0),l=ee(()=>[{outline:"none"},e.style]),u=h=>{t(JJ,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(eee,FGe);if(m?.dispatchEvent(b),!b.defaultPrevented){const w=s().filter(I=>I.focusable),A=w.find(I=>I.active),S=w.find(I=>I.id===C(r)),O=[A,S,...w].filter(Boolean).map(I=>I.ref);uW(O)}}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(lW,{currentTabbedId:xb(r),loop:ao(e,"loop"),tabIndex:ee(()=>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}),Ct(()=>e.currentTabId,h=>{r.value=h??null}),Mo(a,eee,v)}});function zGe(e,t,n,r,o,i){return pt(e.$slots,"default")}var $Ge=en(UGe,[["render",zGe],["__file","roving-focus-group-impl.vue"]]);const jGe=et({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:OGe,ElRovingFocusGroupImpl:$Ge}});function HGe(e,t,n,r,o,i){const a=lr("el-roving-focus-group-impl"),s=lr("el-focus-group-collection");return F(),mt(s,null,{default:nt(()=>[$e(a,Sl(Bd(e.$attrs)),{default:nt(()=>[pt(e.$slots,"default")]),_:3},16)]),_:3})}var WGe=en(jGe,[["render",HGe],["__file","roving-focus-group.vue"]]);const NS=Yt({trigger:J1.trigger,triggerKeys:{type:lt(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space,gn.down]},effect:{...oi.effect,default:"light"},type:{type:lt(String)},placement:{type:lt(String),default:"bottom"},popperOptions:{type:lt(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:lt([Number,String]),default:0},maxHeight:{type:lt([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:g1e,default:"menu"},buttonProps:{type:lt(Object)},teleported:oi.teleported,persistent:{type:Boolean,default:!0}}),Xye=Yt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:vo}}),VGe=Yt({onKeydown:{type:lt(Function)}}),qGe=[gn.down,gn.pageDown,gn.home],Jye=[gn.up,gn.pageUp,gn.end],GGe=[...qGe,...Jye],{ElCollection:KGe,ElCollectionItem:YGe,COLLECTION_INJECTION_KEY:QGe,COLLECTION_ITEM_INJECTION_KEY:ZGe}=Qye("Dropdown"),pD=Symbol("elDropdown"),ebe="elDropdown",{ButtonGroup:XGe}=Za,JGe=et({name:"ElDropdown",components:{ElButton:Za,ElButtonGroup:XGe,ElScrollbar:Lc,ElDropdownCollection:KGe,ElTooltip:fs,ElRovingFocusGroup:WGe,ElOnlyChild:b1e,ElIcon:_n,ArrowDown:Kc},props:NS,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vr(),r=jt("dropdown"),{t:o}=Hr(),i=Y(),a=Y(),s=Y(),l=Y(),u=Y(null),d=Y(null),c=Y(!1),f=ee(()=>({maxHeight:_i(e.maxHeight)})),p=ee(()=>[r.m(w.value)]),v=ee(()=>Ka(e.trigger)),h=ds().value,g=ee(()=>e.id||h);Ct([i,v],([L,j],[H])=>{var G,Z,z;(G=H?.$el)!=null&&G.removeEventListener&&H.$el.removeEventListener("pointerenter",S),(Z=L?.$el)!=null&&Z.removeEventListener&&L.$el.removeEventListener("pointerenter",S),(z=L?.$el)!=null&&z.addEventListener&&j.includes("hover")&&L.$el.addEventListener("pointerenter",S)},{immediate:!0}),Yr(()=>{var L,j;(j=(L=i.value)==null?void 0:L.$el)!=null&&j.removeEventListener&&i.value.$el.removeEventListener("pointerenter",S)});function y(){m()}function m(){var L;(L=s.value)==null||L.onClose()}function b(){var L;(L=s.value)==null||L.onOpen()}const w=fa();function A(...L){t("command",...L)}function S(){var L,j;(j=(L=i.value)==null?void 0:L.$el)==null||j.focus({preventScroll:!0})}function k(){}function O(){const L=C(l);v.value.includes("hover")&&L?.focus({preventScroll:!0}),d.value=null}function I(L){d.value=L}function P(L){c.value||(L.preventDefault(),L.stopImmediatePropagation())}function M(){t("visible-change",!0)}function _(L){var j;L?.type==="keydown"&&((j=l.value)==null||j.focus())}function R(){t("visible-change",!1)}return Sr(pD,{contentRef:l,role:ee(()=>e.role),triggerId:g,isUsingKeyboard:c,onItemEnter:k,onItemLeave:O}),Sr(ebe,{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:I,handlerMainButtonClick:L=>{t("click",L)},handleEntryFocus:P,handleClose:m,handleOpen:b,handleBeforeShowTooltip:M,handleShowTooltip:_,handleBeforeHideTooltip:R,onFocusAfterTrapped:L=>{var j,H;L.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 eKe(e,t,n,r,o,i){var a;const s=lr("el-dropdown-collection"),l=lr("el-roving-focus-group"),u=lr("el-scrollbar"),d=lr("el-only-child"),c=lr("el-tooltip"),f=lr("el-button"),p=lr("arrow-down"),v=lr("el-icon"),h=lr("el-button-group");return F(),K("div",{class:oe([e.ns.b(),e.ns.is("disabled",e.disabled)])},[$e(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(()=>[$e(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:nt(()=>[$e(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:nt(()=>[$e(s,null,{default:nt(()=>[pt(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(()=>[$e(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:nt(()=>[pt(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(()=>[$e(f,pr({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:nt(()=>[pt(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),$e(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(()=>[$e(v,{class:oe(e.ns.e("icon"))},{default:nt(()=>[$e(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):xe("v-if",!0)],2)}var tKe=en(JGe,[["render",eKe],["__file","dropdown.vue"]]);const nKe=et({components:{ElRovingFocusCollectionItem:MGe},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}=un(lW,void 0),{getItems:a}=un(sW,void 0),s=ds(),l=Y(),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=BGe(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?LGe(w,A+1):w.slice(A+1);break}}Vt(()=>{uW(w)})}}),f=ee(()=>n.value===C(s));return Sr(Zye,{rovingFocusGroupItemRef:l,tabIndex:ee(()=>C(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:c}),{id:s,handleKeydown:c,handleFocus:d,handleMousedown:u}}});function rKe(e,t,n,r,o,i){const a=lr("el-roving-focus-collection-item");return F(),mt(a,{id:e.id,focusable:e.focusable,active:e.active},{default:nt(()=>[pt(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var oKe=en(nKe,[["render",rKe],["__file","roving-focus-item.vue"]]);const iKe=et({name:"DropdownItemImpl",components:{ElIcon:_n},props:Xye,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=jt("dropdown"),{role:r}=un(pD,void 0),{collectionItemRef:o}=un(ZGe,void 0),{collectionItemRef:i}=un(PGe,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:d}=un(Zye,void 0),c=fD(o,i,a),f=ee(()=>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:{[Yye]:""},role:f,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:d}}});function aKe(e,t,n,r,o,i){const a=lr("el-icon");return F(),K(Nt,null,[e.divided?(F(),K("li",{key:0,role:"separator",class:oe(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),pt(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var sKe=en(iKe,[["render",aKe],["__file","dropdown-item-impl.vue"]]);const tbe=()=>{const e=un(ebe,{}),t=ee(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},lKe=et({name:"ElDropdownItem",components:{ElDropdownCollectionItem:YGe,ElRovingFocusItem:oKe,ElDropdownItemImpl:sKe},inheritAttrs:!1,props:Xye,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=tbe(),o=vr(),i=Y(null),a=ee(()=>{var p,v;return(v=(p=C(i))==null?void 0:p.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=un(pD,void 0),u=Ni(p=>(t("pointermove",p),p.defaultPrevented),CJ(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),CJ(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=ee(()=>({...e,...n}));return{handleClick:c,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:f}}});function uKe(e,t,n,r,o,i){var a;const s=lr("el-dropdown-item-impl"),l=lr("el-roving-focus-item"),u=lr("el-dropdown-collection-item");return F(),mt(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:nt(()=>[$e(l,{focusable:!e.disabled},{default:nt(()=>[$e(s,pr(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:nt(()=>[pt(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var nbe=en(lKe,[["render",uKe],["__file","dropdown-item.vue"]]);const cKe=et({name:"ElDropdownMenu",props:VGe,setup(e){const t=jt("dropdown"),{_elDropdownSize:n}=tbe(),r=n.value,{focusTrapRef:o,onKeydown:i}=un(IH,void 0),{contentRef:a,role:s,triggerId:l}=un(pD,void 0),{collectionRef:u,getItems:d}=un(QGe,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:f,tabIndex:p,onBlur:v,onFocus:h,onMousedown:g}=un(lW,void 0),{collectionRef:y}=un(sW,void 0),m=ee(()=>[t.b("menu"),t.bm("menu",r?.value)]),b=fD(a,u,o,c,y),w=Ni(S=>{var k;(k=e.onKeydown)==null||k.call(e,S)},S=>{const{currentTarget:k,code:O,target:I}=S;if(k.contains(I),gn.tab===O&&S.stopImmediatePropagation(),S.preventDefault(),I!==C(a)||!GGe.includes(O))return;const M=d().filter(_=>!_.disabled).map(_=>_.ref);Jye.includes(O)&&M.reverse(),uW(M)});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 dKe(e,t,n,r,o,i){return F(),K("ul",{ref:e.dropdownListWrapperRef,class:oe(e.dropdownKls),style:Jt(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"])},[pt(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var rbe=en(cKe,[["render",dKe],["__file","dropdown-menu.vue"]]);const fKe=er(tKe,{DropdownItem:nbe,DropdownMenu:rbe}),pKe=vi(nbe),hKe=vi(rbe),gKe=et({name:"ImgEmpty"}),vKe=et({...gKe,setup(e){const t=jt("empty"),n=ds();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 mKe=en(vKe,[["__file","img-empty.vue"]]);const yKe=Yt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),bKe=et({name:"ElEmpty"}),wKe=et({...bKe,props:yKe,setup(e){const t=e,{t:n}=Hr(),r=jt("empty"),o=ee(()=>t.description||n("el.table.emptyText")),i=ee(()=>({width:_i(t.imageSize)}));return(a,s)=>(F(),K("div",{class:oe(C(r).b())},[x("div",{class:oe(C(r).e("image")),style:Jt(C(i))},[a.image?(F(),K("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):pt(a.$slots,"image",{key:1},()=>[$e(mKe)])],6),x("div",{class:oe(C(r).e("description"))},[a.$slots.description?pt(a.$slots,"description",{key:0}):(F(),K("p",{key:1},ze(C(o)),1))],2),a.$slots.default?(F(),K("div",{key:0,class:oe(C(r).e("bottom"))},[pt(a.$slots,"default")],2)):xe("v-if",!0)],2))}});var AKe=en(wKe,[["__file","empty.vue"]]);const obe=er(AKe),CKe=Yt({size:{type:String,values:Yd},disabled:Boolean}),xKe=Yt({...CKe,model:Object,rules:{type:lt(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:lt([Object,Boolean]),default:!0}}),SKe={validate:(e,t,n)=>(qt(e)||Dn(e))&&Co(t)&&Dn(n)};function EKe(){const e=Y([]),t=ee(()=>{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 xx=(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},kKe="ElForm",TKe=et({name:kKe}),_Ke=et({...TKe,props:xKe,emits:SKe,setup(e,{expose:t,emit:n}){const r=e,o=Y(),i=Ur([]),a=fa(),s=jt("form"),l=ee(()=>{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=>xx(i,[w])[0],d=w=>{i.push(w)},c=w=>{w.prop&&i.splice(i.indexOf(w),1)},f=(w=[])=>{r.model&&xx(i,w).forEach(A=>A.resetField())},p=(w=[])=>{xx(i,w).forEach(A=>A.clearValidate())},v=ee(()=>!!r.model),h=w=>{if(i.length===0)return[];const A=xx(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(O){S={...S,...O}}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(O){if(O instanceof Error)throw O;const I=O;if(r.scrollToError&&o.value){const P=o.value.querySelector(`.${s.b()}-item.is-error`);P?.scrollIntoView(r.scrollIntoViewOptions)}return!S&&await A?.(!1,I),k&&Promise.reject(I)}},b=w=>{var A;const S=u(w);S&&((A=S.$el)==null||A.scrollIntoView(r.scrollIntoViewOptions))};return Ct(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(w=>void 0)},{deep:!0,flush:"post"}),Sr(om,Ur({..._a(r),emit:n,resetFields:f,clearValidate:p,validateField:m,getField:u,addField:d,removeField:c,...EKe()})),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:oe(C(l))},[pt(w.$slots,"default")],2))}});var DKe=en(_Ke,[["__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 IKe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,J3(e,t)}function NL(e){return NL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},NL(e)}function J3(e,t){return J3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},J3(e,t)}function OKe(){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 RS(e,t,n){return OKe()?RS=Reflect.construct.bind():RS=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&J3(u,a.prototype),u},RS.apply(null,arguments)}function MKe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function RL(e){var t=typeof Map=="function"?new Map:void 0;return RL=function(r){if(r===null||!MKe(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 RS(r,arguments,NL(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),J3(o,r)},RL(e)}var PKe=/%[sdj%]/g,NKe=function(){};function BL(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(PKe,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 RKe(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||RKe(t)&&typeof e=="string"&&!e)}function BKe(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 tee(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 LKe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var nee=(function(e){IKe(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})(RL(Error));function FKe(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 nee(y,BL(y))):f(o)},h=LKe(e);tee(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 nee(d,BL(d))):f(o)};s.length||(r(d),f(o)),s.forEach(function(h){var g=e[h];a.indexOf(h)!==-1?tee(g,n,v):BKe(g,n,v)})});return c.catch(function(f){return f}),c}function UKe(e){return!!(e&&e.message!==void 0)}function zKe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ree(e,t){return function(n){var r;return e.fullFields?r=zKe(t,e.fullFields):r=t[n.field||e.fullField],UKe(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 oee(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 ibe=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))},$Ke=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(ou(i.messages.whitespace,t.fullField))},Sx,jKe=(function(){if(Sx)return Sx;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=(`
  38. (?:
  39. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  40. (?:`+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
  41. (?:`+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
  42. (?:`+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
  43. (?:`+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
  44. (?:`+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
  45. (?:`+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
  46. (?::(?:(?::`+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
  47. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  48. `).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 Sx=new RegExp("(?:^"+m+"$)","i"),Sx}),iee={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},y4={integer:function(t){return y4.number(t)&&parseInt(t,10)===t},float:function(t){return y4.number(t)&&!y4.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"&&!y4.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(iee.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jKe())},hex:function(t){return typeof t=="string"&&!!t.match(iee.hex)}},HKe=function(t,n,r,o,i){if(t.required&&n===void 0){ibe(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?y4[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))},WKe=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))},Pm="enum",VKe=function(t,n,r,o,i){t[Pm]=Array.isArray(t[Pm])?t[Pm]:[],t[Pm].indexOf(n)===-1&&o.push(ou(i.messages[Pm],t.fullField,t[Pm].join(", ")))},qKe=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))}}},zo={required:ibe,whitespace:$Ke,type:HKe,range:WKe,enum:VKe,pattern:qKe},GKe=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();zo.required(t,n,o,a,i,"string"),es(n,"string")||(zo.type(t,n,o,a,i),zo.range(t,n,o,a,i),zo.pattern(t,n,o,a,i),t.whitespace===!0&&zo.whitespace(t,n,o,a,i))}r(a)},KKe=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();zo.required(t,n,o,a,i),n!==void 0&&zo.type(t,n,o,a,i)}r(a)},YKe=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();zo.required(t,n,o,a,i),n!==void 0&&(zo.type(t,n,o,a,i),zo.range(t,n,o,a,i))}r(a)},QKe=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();zo.required(t,n,o,a,i),n!==void 0&&zo.type(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();zo.required(t,n,o,a,i),es(n)||zo.type(t,n,o,a,i)}r(a)},XKe=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();zo.required(t,n,o,a,i),n!==void 0&&(zo.type(t,n,o,a,i),zo.range(t,n,o,a,i))}r(a)},JKe=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();zo.required(t,n,o,a,i),n!==void 0&&(zo.type(t,n,o,a,i),zo.range(t,n,o,a,i))}r(a)},eYe=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();zo.required(t,n,o,a,i,"array"),n!=null&&(zo.type(t,n,o,a,i),zo.range(t,n,o,a,i))}r(a)},tYe=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();zo.required(t,n,o,a,i),n!==void 0&&zo.type(t,n,o,a,i)}r(a)},nYe="enum",rYe=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();zo.required(t,n,o,a,i),n!==void 0&&zo[nYe](t,n,o,a,i)}r(a)},oYe=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();zo.required(t,n,o,a,i),es(n,"string")||zo.pattern(t,n,o,a,i)}r(a)},iYe=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(zo.required(t,n,o,a,i),!es(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),zo.type(t,l,o,a,i),l&&zo.range(t,l.getTime(),o,a,i)}}r(a)},aYe=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;zo.required(t,n,o,a,i,s),r(a)},SI=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();zo.required(t,n,o,s,i,a),es(n,a)||zo.type(t,n,o,s,i)}r(s)},sYe=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();zo.required(t,n,o,a,i)}r(a)},J4={string:GKe,method:KKe,number:YKe,boolean:QKe,regexp:ZKe,integer:XKe,float:JKe,array:eYe,object:tYe,enum:rYe,pattern:oYe,date:iYe,url:SI,hex:SI,email:SI,required:aYe,any:sYe};function LL(){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 FL=LL(),LC=(function(){function e(n){this.rules=null,this._messages=FL,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=oee(LL(),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=BL(g),u(g,y)):u(null,s)}if(l.messages){var c=this.messages();c===FL&&(c=LL()),oee(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 FKe(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 O=k.map(ree(y,s));if(l.first&&O.length)return v[y.field]=1,g(O);if(!m)g(O);else{if(y.required&&!h.value)return y.message!==void 0?O=[].concat(y.message).map(ree(y,s)):l.error&&(O=[l.error(y,ou(l.messages.required,y.field))]),g(O);var I={};y.defaultField&&Object.keys(h.value).map(function(_){I[_]=y.defaultField}),I=Rg({},I,h.rule.fields);var P={};Object.keys(I).forEach(function(_){var R=I[_],N=Array.isArray(R)?R:[R];P[_]=N.map(b.bind(null,_))});var M=new e(P);M.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),M.validate(h.value,h.rule.options||l,function(_){var R=[];O&&O.length&&R.push.apply(R,O),_&&_.length&&R.push.apply(R,_),g(R.length?R: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&&!J4.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"?J4.required:J4[this.getType(r)]||void 0},e})();LC.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");J4[t]=n};LC.warning=NKe;LC.messages=FL;LC.validators=J4;const lYe=["","error","validating","success"],uYe=Yt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:lt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:lt([Object,Array])},error:String,validateStatus:{type:String,values:lYe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Yd}}),aee="ElLabelWrap";var cYe=et({name:aee,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=un(om,void 0),r=un(Fd);r||Ji(aee,"usage: <el-form-item><label-wrap /></el-form-item>");const o=jt("form"),i=Y(),a=Y(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()}),Yr(()=>{l("remove")}),Wc(()=>u()),Ct(a,(d,c)=>{e.updateAll&&n?.registerLabelWidth(d,c)}),li(ee(()=>{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 $e("div",{ref:i,class:[o.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return $e(Nt,{ref:i},[(c=t.default)==null?void 0:c.call(t)])}}});const dYe=et({name:"ElFormItem"}),fYe=et({...dYe,props:uYe,setup(e,{expose:t}){const n=e,r=pa(),o=un(om,void 0),i=un(Fd,void 0),a=fa(void 0,{formItem:!1}),s=jt("form-item"),l=ds().value,u=Y([]),d=Y(""),c=jRe(d,100),f=Y(""),p=Y();let v,h=!1;const g=ee(()=>n.labelPosition||o?.labelPosition),y=ee(()=>{if(g.value==="top")return{};const ue=_i(n.labelWidth||o?.labelWidth||"");return ue?{width:ue}:{}}),m=ee(()=>{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=ee(()=>[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",V.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=ee(()=>Co(n.inlineMessage)?n.inlineMessage:o?.inlineMessage||!1),A=ee(()=>[s.e("error"),{[s.em("error","inline")]:w.value}]),S=ee(()=>n.prop?qt(n.prop)?n.prop.join("."):n.prop:""),k=ee(()=>!!(n.label||r.label)),O=ee(()=>{var ue;return(ue=n.for)!=null?ue:u.value.length===1?u.value[0]:void 0}),I=ee(()=>!O.value&&k.value),P=!!i,M=ee(()=>{const ue=o?.model;if(!(!ue||!n.prop))return Q4(ue,n.prop).value}),_=ee(()=>{const{required:ue}=n,me=[];n.rules&&me.push(...Ka(n.rules));const Me=o?.rules;if(Me&&n.prop){const Ae=Q4(Me,n.prop).value;Ae&&me.push(...Ka(Ae))}if(ue!==void 0){const Ae=me.map((ge,_e)=>[ge,_e]).filter(([ge])=>Object.keys(ge).includes("required"));if(Ae.length>0)for(const[ge,_e]of Ae)ge.required!==ue&&(me[_e]={...ge,required:ue});else me.push({required:ue})}return me}),R=ee(()=>_.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,...Ae})=>Ae),V=ee(()=>_.value.some(ue=>ue.required)),L=ee(()=>{var ue;return c.value==="error"&&n.showMessage&&((ue=o?.showMessage)!=null?ue:!0)}),j=ee(()=>`${n.label||""}${o?.labelSuffix||""}`),H=ue=>{d.value=ue},G=ue=>{var me,Me;const{errors:Ae,fields:ge}=ue;(!Ae||!ge)&&console.error(ue),H("error"),f.value=Ae?(Me=(me=Ae?.[0])==null?void 0:me.message)!=null?Me:`${n.prop} is required`:"",o?.emit("validate",n.prop,!1,f.value)},Z=()=>{H("success"),o?.emit("validate",n.prop,!0,"")},z=async ue=>{const me=S.value;return new LC({[me]:ue}).validate({[me]:M.value},{firstFields:!0}).then(()=>(Z(),!0)).catch(Ae=>(G(Ae),Promise.reject(Ae)))},U=async(ue,me)=>{if(h||!n.prop)return!1;const Me=Pn(me);if(!R.value)return me?.(!1),!1;const Ae=N(ue);return Ae.length===0?(me?.(!0),!0):(H("validating"),z(Ae).then(()=>(me?.(!0),!0)).catch(ge=>{const{fields:_e}=ge;return me?.(!1,_e),Me?!1:Promise.reject(_e)}))},W=()=>{H(""),f.value="",h=!1},re=async()=>{const ue=o?.model;if(!ue||!n.prop)return;const me=Q4(ue,n.prop);h=!0,me.value=IX(v),await Vt(),W(),h=!1},J=ue=>{u.value.includes(ue)||u.value.push(ue)},te=ue=>{u.value=u.value.filter(me=>me!==ue)};Ct(()=>n.error,ue=>{f.value=ue||"",H(ue?"error":"")},{immediate:!0}),Ct(()=>n.validateStatus,ue=>H(ue||""));const X=Ur({..._a(n),$el:p,size:a,validateMessage:f,validateState:d,labelId:l,inputIds:u,isGroup:I,hasLabel:k,fieldValue:M,addInputId:J,removeInputId:te,resetField:re,clearValidate:W,validate:U,propString:S});return Sr(Fd,X),jn(()=>{n.prop&&(o?.addField(X),v=IX(M.value))}),Yr(()=>{o?.removeField(X)}),t({size:a,validateMessage:f,validateState:d,validate:U,clearValidate:W,resetField:re}),(ue,me)=>{var Me;return F(),K("div",{ref_key:"formItemRef",ref:p,class:oe(C(b)),role:C(I)?"group":void 0,"aria-labelledby":C(I)?C(l):void 0},[$e(C(cYe),{"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(O)?"label":"div"),{key:0,id:C(l),for:C(O),class:oe(C(s).e("label")),style:Jt(C(y))},{default:nt(()=>[pt(ue.$slots,"label",{label:C(j)},()=>[An(ze(C(j)),1)])]),_:3},8,["id","for","class","style"])):xe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),x("div",{class:oe(C(s).e("content")),style:Jt(C(m))},[pt(ue.$slots,"default"),$e(Qge,{name:`${C(s).namespace.value}-zoom-in-top`},{default:nt(()=>[C(L)?pt(ue.$slots,"error",{key:0,error:f.value},()=>[x("div",{class:oe(C(A))},ze(f.value),3)]):xe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var abe=en(fYe,[["__file","form-item.vue"]]);const pYe=er(DKe,{FormItem:abe}),hYe=vi(abe),gYe=Yt({urlList:{type:lt(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:lt(String)}}),vYe={close:()=>!0,switch:e=>Ln(e),rotate:e=>Ln(e)},mYe=et({name:"ElImageViewer"}),yYe=et({...mYe,props:gYe,emits:vYe,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:Id(lLe)},ORIGINAL:{name:"original",icon:Id(DLe)}};let a,s="";const{t:l}=Hr(),u=jt("image-viewer"),{nextZIndex:d}=Pb(),c=Y(),f=Y([]),p=B0e(),v=Y(!0),h=Y(o.initialIndex),g=Uo(i.CONTAIN),y=Y({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=Y((r=o.zIndex)!=null?r:d()),b=ee(()=>{const{urlList:te}=o;return te.length<=1}),w=ee(()=>h.value===0),A=ee(()=>h.value===o.urlList.length-1),S=ee(()=>o.urlList[h.value]),k=ee(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&w.value)]),O=ee(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&A.value)]),I=ee(()=>{const{scale:te,deg:X,offsetX:ue,offsetY:me,enableTransition:Me}=y.value;let Ae=ue/te,ge=me/te;const _e=X*Math.PI/180,Q=Math.cos(_e),be=Math.sin(_e);Ae=Ae*Q+ge*be,ge=ge*Q-ue/te*be;const De={transform:`scale(${te}) rotate(${X}deg) translate(${Ae}px, ${ge}px)`,transition:Me?"transform .3s":""};return g.value.name===i.CONTAIN.name&&(De.maxWidth=De.maxHeight="100%"),De}),P=ee(()=>`${h.value+1} / ${o.urlList.length}`);function M(){R(),a?.(),document.body.style.overflow=s,n("close")}function _(){const te=qg(ue=>{switch(ue.code){case gn.esc:o.closeOnPressEscape&&M();break;case gn.space:H();break;case gn.left:Z();break;case gn.up:U("zoomIn");break;case gn.right:z();break;case gn.down:U("zoomOut");break}}),X=qg(ue=>{const me=ue.deltaY||ue.deltaX;U(me<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Mo(document,"keydown",te),Mo(document,"wheel",X)})}function R(){p.stop()}function N(){v.value=!1}function V(te){v.value=!1,te.target.alt=l("el.image.error")}function L(te){if(v.value||te.button!==0||!c.value)return;y.value.enableTransition=!1;const{offsetX:X,offsetY:ue}=y.value,me=te.pageX,Me=te.pageY,Ae=qg(_e=>{y.value={...y.value,offsetX:X+_e.pageX-me,offsetY:ue+_e.pageY-Me}}),ge=Mo(document,"mousemove",Ae);Mo(document,"mouseup",()=>{ge()}),te.preventDefault()}function j(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(v.value)return;const te=Ty(i),X=Object.values(i),ue=g.value.name,Me=(X.findIndex(Ae=>Ae.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 z(){A.value&&!o.infinite||G(h.value+1)}function U(te,X={}){if(v.value)return;const{minScale:ue,maxScale:me}=o,{zoomRate:Me,rotateDeg:Ae,enableTransition:ge}={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<me&&(y.value.scale=Number.parseFloat((y.value.scale*Me).toFixed(3)));break;case"clockwise":y.value.deg+=Ae,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=Ae,n("rotate",y.value.deg);break}y.value.enableTransition=ge}function W(te){var X;((X=te.detail)==null?void 0:X.focusReason)==="pointer"&&te.preventDefault()}function re(){o.closeOnPressEscape&&M()}function J(te){if(te.ctrlKey){if(te.deltaY<0)return te.preventDefault(),!1;if(te.deltaY>0)return te.preventDefault(),!1}}return Ct(S,()=>{Vt(()=>{const te=f.value[0];te?.complete||(v.value=!0)})}),Ct(h,te=>{j(),n("switch",te)}),jn(()=>{_(),a=Mo("wheel",J,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:G}),(te,X)=>(F(),mt(C(Lb),{to:"body",disabled:!te.teleported},{default:nt(()=>[$e(Wi,{name:"viewer-fade",appear:""},{default:nt(()=>[x("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:oe(C(u).e("wrapper")),style:Jt({zIndex:m.value})},[$e(C(Bb),{loop:"",trapped:"","focus-trap-el":c.value,"focus-start-el":"container",onFocusoutPrevented:W,onReleaseRequested:re},{default:nt(()=>[x("div",{class:oe(C(u).e("mask")),onClick:Qt(ue=>te.hideOnClickModal&&M(),["self"])},null,10,["onClick"]),xe(" CLOSE "),x("span",{class:oe([C(u).e("btn"),C(u).e("close")]),onClick:M},[$e(C(_n),null,{default:nt(()=>[$e(C(cu))]),_:1})],2),xe(" ARROW "),C(b)?xe("v-if",!0):(F(),K(Nt,{key:0},[x("span",{class:oe(C(k)),onClick:Z},[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_:1})],2),x("span",{class:oe(C(O)),onClick:z},[$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})],2)],64)),te.$slots.progress||te.showProgress?(F(),K("div",{key:1,class:oe([C(u).e("btn"),C(u).e("progress")])},[pt(te.$slots,"progress",{activeIndex:h.value,total:te.urlList.length},()=>[An(ze(C(P)),1)])],2)):xe("v-if",!0),xe(" ACTIONS "),x("div",{class:oe([C(u).e("btn"),C(u).e("actions")])},[x("div",{class:oe(C(u).e("actions__inner"))},[pt(te.$slots,"toolbar",{actions:U,prev:Z,next:z,reset:H,activeIndex:h.value,setActiveItem:G},()=>[$e(C(_n),{onClick:ue=>U("zoomOut")},{default:nt(()=>[$e(C(WLe))]),_:1},8,["onClick"]),$e(C(_n),{onClick:ue=>U("zoomIn")},{default:nt(()=>[$e(C(s1e))]),_:1},8,["onClick"]),x("i",{class:oe(C(u).e("actions__divider"))},null,2),$e(C(_n),{onClick:H},{default:nt(()=>[(F(),mt(hr(C(g).icon)))]),_:1}),x("i",{class:oe(C(u).e("actions__divider"))},null,2),$e(C(_n),{onClick:ue=>U("anticlockwise")},{default:nt(()=>[$e(C(ELe))]),_:1},8,["onClick"]),$e(C(_n),{onClick:ue=>U("clockwise")},{default:nt(()=>[$e(C(TLe))]),_:1},8,["onClick"])])],2)],2),xe(" CANVAS "),x("div",{class:oe(C(u).e("canvas"))},[(F(!0),K(Nt,null,on(te.urlList,(ue,me)=>(F(),K(Nt,{key:me},[me===h.value?(F(),K("img",{key:0,ref_for:!0,ref:Me=>f.value[me]=Me,src:ue,style:Jt(C(I)),class:oe(C(u).e("img")),crossorigin:te.crossorigin,onLoad:N,onError:V,onMousedown:L},null,46,["src","crossorigin"])):xe("v-if",!0)],64))),128))],2),pt(te.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var bYe=en(yYe,[["__file","image-viewer.vue"]]);const sbe=er(bYe),wYe=Yt({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:lt([String,Object])},previewSrcList:{type:lt(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:lt(String)}}),AYe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ln(e),close:()=>!0,show:()=>!0},CYe=et({name:"ElImage",inheritAttrs:!1}),xYe=et({...CYe,props:wYe,emits:AYe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=jt("image"),a=pp(),s=ee(()=>W3(Object.entries(a).filter(([L])=>/^(data-|on[A-Z])/i.test(L)||["id","style"].includes(L)))),l=oD({excludeListeners:!0,excludeKeys:ee(()=>Object.keys(s.value))}),u=Y(),d=Y(!1),c=Y(!0),f=Y(!1),p=Y(),v=Y(),h=Kr&&"loading"in HTMLImageElement.prototype;let g;const y=ee(()=>[i.e("inner"),b.value&&i.e("preview"),c.value&&i.is("loading")]),m=ee(()=>{const{fit:L}=r;return Kr&&L?{objectFit:L}:{}}),b=ee(()=>{const{previewSrcList:L}=r;return qt(L)&&L.length>0}),w=ee(()=>{const{previewSrcList:L,initialIndex:j}=r;let H=j;return j>L.length-1&&(H=0),H}),A=ee(()=>r.loading==="eager"?!1:!h&&r.loading==="lazy"||r.lazy),S=()=>{Kr&&(c.value=!0,d.value=!1,u.value=r.src)};function k(L){c.value=!1,d.value=!1,n("load",L)}function O(L){c.value=!1,d.value=!0,n("error",L)}function I(L){L&&(S(),_())}const P=Lme(I,200,!0);async function M(){var L;if(!Kr)return;await Vt();const{scrollContainer:j}=r;if(al(j))v.value=j;else if(Dn(j)&&j!=="")v.value=(L=document.querySelector(j))!=null?L:void 0;else if(p.value){const G=AH(p.value);v.value=DC(G)?void 0:G}const{stop:H}=XRe(p,([G])=>{P(G.isIntersecting)},{root:v});g=H}function _(){!Kr||!P||(g?.(),v.value=void 0,g=void 0)}function R(){b.value&&(f.value=!0,n("show"))}function N(){f.value=!1,n("close")}function V(L){n("switch",L)}return Ct(()=>r.src,()=>{A.value?(c.value=!0,d.value=!1,_(),M()):S()}),jn(()=>{A.value?M():S()}),t({showPreview:R}),(L,j)=>(F(),K("div",pr({ref_key:"container",ref:p},C(s),{class:[C(i).b(),L.$attrs.class]}),[d.value?pt(L.$slots,"error",{key:0},()=>[x("div",{class:oe(C(i).e("error"))},ze(C(o)("el.image.error")),3)]):(F(),K(Nt,{key:1},[u.value!==void 0?(F(),K("img",pr({key:0},C(l),{src:u.value,loading:L.loading,style:C(m),class:C(y),crossorigin:L.crossorigin,onClick:R,onLoad:k,onError:O}),null,16,["src","loading","crossorigin"])):xe("v-if",!0),c.value?(F(),K("div",{key:1,class:oe(C(i).e("wrapper"))},[pt(L.$slots,"placeholder",{},()=>[x("div",{class:oe(C(i).e("placeholder"))},null,2)])],2)):xe("v-if",!0)],64)),C(b)?(F(),K(Nt,{key:2},[f.value?(F(),mt(C(sbe),{key:0,"z-index":L.zIndex,"initial-index":C(w),infinite:L.infinite,"zoom-rate":L.zoomRate,"min-scale":L.minScale,"max-scale":L.maxScale,"show-progress":L.showProgress,"url-list":L.previewSrcList,crossorigin:L.crossorigin,"hide-on-click-modal":L.hideOnClickModal,teleported:L.previewTeleported,"close-on-press-escape":L.closeOnPressEscape,onClose:N,onSwitch:V},Ll({toolbar:nt(H=>[pt(L.$slots,"toolbar",Sl(Bd(H)))]),default:nt(()=>[L.$slots.viewer?(F(),K("div",{key:0},[pt(L.$slots,"viewer")])):xe("v-if",!0)]),_:2},[L.$slots.progress?{name:"progress",fn:nt(H=>[pt(L.$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 SYe=en(xYe,[["__file","image.vue"]]);const EYe=er(SYe),kYe=Yt({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:lt(String),default:void 0},align:{type:lt(String),default:"center"},disabledScientific:Boolean}),TYe={[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)},_Ye=et({name:"ElInputNumber"}),DYe=et({..._Ye,props:kYe,emits:TYe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=jt("input-number"),a=Y(),s=Ur({currentValue:r.modelValue,userInput:null}),{formItem:l}=ks(),u=ee(()=>Ln(r.modelValue)&&r.modelValue<=r.min),d=ee(()=>Ln(r.modelValue)&&r.modelValue>=r.max),c=ee(()=>{const L=y(r.step);return zr(r.precision)?Math.max(y(r.modelValue),L):(L>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),p=fa(),v=Wa(),h=ee(()=>{if(s.userInput!==null)return s.userInput;let L=s.currentValue;if(Zi(L))return"";if(Ln(L)){if(Number.isNaN(L))return"";zr(r.precision)||(L=L.toFixed(r.precision))}return L}),g=(L,j)=>{if(zr(j)&&(j=c.value),j===0)return Math.round(L);let H=String(L);const G=H.indexOf(".");if(G===-1||!H.replace(".","").split("")[G+j])return L;const U=H.length;return H.charAt(U-1)==="5"&&(H=`${H.slice(0,Math.max(0,U-1))}6`),Number.parseFloat(Number(H).toFixed(j))},y=L=>{if(Zi(L))return 0;const j=L.toString(),H=j.indexOf(".");let G=0;return H!==-1&&(G=j.length-H-1),G},m=(L,j=1)=>Ln(L)?L>=Number.MAX_SAFE_INTEGER&&j===1||L<=Number.MIN_SAFE_INTEGER&&j===-1?L:g(L+r.step*j):s.currentValue,b=L=>{var j;const H=L;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 L=Number(h.value)||0,j=m(L);k(j),n(ma,s.currentValue),N()},A=()=>{if(r.readonly||v.value||u.value)return;const L=Number(h.value)||0,j=m(L,-1);k(j),n(ma,s.currentValue),N()},S=(L,j)=>{const{max:H,min:G,step:Z,precision:z,stepStrictly:U,valueOnClear:W}=r;H<G&&Ji("InputNumber","min should not be greater than max.");let re=Number(L);if(Zi(L)||Number.isNaN(re))return null;if(L===""){if(W===null)return null;re=Dn(W)?{min:G,max:H}[W]:W}return U&&(re=g(Math.round(re/Z)*Z,z),re!==L&&j&&n(Gn,re)),zr(z)||(re=g(re,z)),(re>H||re<G)&&(re=re>H?H:G,j&&n(Gn,re)),re},k=(L,j=!0)=>{var H;const G=s.currentValue,Z=S(L);if(!j){n(Gn,Z);return}G===Z&&L||(s.userInput=null,n(Gn,Z),G!==Z&&n(Tr,Z,G),r.validateEvent&&((H=l?.validate)==null||H.call(l,"change").catch(z=>void 0)),s.currentValue=Z)},O=L=>{s.userInput=L;const j=L===""?null:Number(L);n(ma,j),k(j,!1)},I=L=>{const j=L!==""?Number(L):"";(Ln(j)&&!Number.isNaN(j)||L==="")&&k(j),N(),s.userInput=null},P=()=>{var L,j;(j=(L=a.value)==null?void 0:L.focus)==null||j.call(L)},M=()=>{var L,j;(j=(L=a.value)==null?void 0:L.blur)==null||j.call(L)},_=L=>{n("focus",L)},R=L=>{var j,H;s.userInput=null,s.currentValue===null&&((j=a.value)!=null&&j.input)&&(a.value.input.value=""),n("blur",L),r.validateEvent&&((H=l?.validate)==null||H.call(l,"blur").catch(G=>void 0))},N=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},V=L=>{document.activeElement===L.target&&L.preventDefault()};return Ct(()=>r.modelValue,(L,j)=>{const H=S(L,!0);s.userInput===null&&H!==j&&(s.currentValue=H)},{immediate:!0}),Ct(()=>r.precision,()=>{s.currentValue=S(r.modelValue)}),jn(()=>{var L;const{min:j,max:H,modelValue:G}=r,Z=(L=a.value)==null?void 0:L.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 z=Number(G);Number.isNaN(z)&&(z=null),n(Gn,z)}Z.addEventListener("wheel",V,{passive:!1})}),Wc(()=>{var L,j;const H=(L=a.value)==null?void 0:L.input;H?.setAttribute("aria-valuenow",`${(j=s.currentValue)!=null?j:""}`)}),t({focus:P,blur:M}),(L,j)=>(F(),K("div",{class:oe([C(i).b(),C(i).m(C(p)),C(i).is("disabled",C(v)),C(i).is("without-controls",!L.controls),C(i).is("controls-right",C(f)),C(i).is(L.align,!!L.align)]),onDragstart:Qt(()=>{},["prevent"])},[L.controls?an((F(),K("span",{key:0,role:"button","aria-label":C(o)("el.inputNumber.decrease"),class:oe([C(i).e("decrease"),C(i).is("disabled",C(u))]),onKeydown:Lr(A,["enter"])},[pt(L.$slots,"decrease-icon",{},()=>[$e(C(_n),null,{default:nt(()=>[C(f)?(F(),mt(C(Kc),{key:0})):(F(),mt(C(gLe),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(CE),A]]):xe("v-if",!0),L.controls?an((F(),K("span",{key:1,role:"button","aria-label":C(o)("el.inputNumber.increase"),class:oe([C(i).e("increase"),C(i).is("disabled",C(d))]),onKeydown:Lr(w,["enter"])},[pt(L.$slots,"increase-icon",{},()=>[$e(C(_n),null,{default:nt(()=>[C(f)?(F(),mt(C(nD),{key:0})):(F(),mt(C(o1e),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(CE),w]]):xe("v-if",!0),$e(C(Us),{id:L.id,ref_key:"input",ref:a,type:"number",step:L.step,"model-value":C(h),placeholder:L.placeholder,readonly:L.readonly,disabled:C(v),size:C(p),max:L.max,min:L.min,name:L.name,"aria-label":L.ariaLabel,"validate-event":!1,inputmode:L.inputmode,onKeydown:b,onBlur:R,onFocus:_,onInput:O,onChange:I},Ll({_:2},[L.$slots.prefix?{name:"prefix",fn:nt(()=>[pt(L.$slots,"prefix")])}:void 0,L.$slots.suffix?{name:"suffix",fn:nt(()=>[pt(L.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var IYe=en(DYe,[["__file","input-number.vue"]]);const lbe=er(IYe),OYe=Yt({modelValue:{type:lt(Array)},max:Number,tagType:{...Qf.type,default:"info"},tagEffect:Qf.effect,trigger:{type:lt(String),default:gn.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:ba,clearable:Boolean,clearIcon:{type:vo,default:Qd},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}),MYe={[Gn]:e=>qt(e)||zr(e),[Tr]:e=>qt(e)||zr(e),[ma]:e=>Dn(e),"add-tag":e=>Dn(e)||qt(e),"remove-tag":e=>Dn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function PYe({props:e,emit:t,formItem:n}){const r=Wa(),o=fa(),i=Uo(),a=Y(),s=Y(),l=ee(()=>["small"].includes(o.value)?"small":"default"),u=ee(()=>{var N;return(N=e.modelValue)!=null&&N.length?void 0:e.placeholder}),d=ee(()=>!(e.readonly||r.value)),c=ee(()=>{var N,V;return zr(e.max)?!1:((V=(N=e.modelValue)==null?void 0:N.length)!=null?V:0)>=e.max}),f=ee(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(0,e.maxCollapseTags):e.modelValue}),p=ee(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(e.maxCollapseTags):[]}),v=N=>{var V;const L=[...(V=e.modelValue)!=null?V:[],...Ka(N)];t(Gn,L),t(Tr,L),t("add-tag",N),a.value=void 0},h=N=>{var V,L;const j=N.split(e.delimiter).filter(H=>H&&H!==N);if(e.max){const H=e.max-((L=(V=e.modelValue)==null?void 0:V.length)!=null?L: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 V=h(a.value);V.length&&v(V)}t(ma,N.target.value)}},y=N=>{var V;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&&((V=e.modelValue)!=null&&V.length)&&(N.preventDefault(),N.stopPropagation(),b(e.modelValue.length-1));break}},m=()=>{var N;const V=(N=a.value)==null?void 0:N.trim();!V||c.value||v(V)},b=N=>{var V;const L=((V=e.modelValue)!=null?V:[]).slice(),[j]=L.splice(N,1);t(Gn,L),t(Tr,L),t("remove-tag",j)},w=()=>{a.value=void 0,t(Gn,void 0),t(Tr,void 0),t("clear")},A=(N,V,L)=>{var j;const H=((j=e.modelValue)!=null?j:[]).slice(),[G]=H.splice(N,1),Z=V>N&&L==="before"?-1:V<N&&L==="after"?1:0;H.splice(V+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:O,isFocused:I}=vp(i,{disabled:r,beforeBlur(N){var V;return(V=s.value)==null?void 0:V.isFocusInsideContent(N)},afterBlur(){var N;e.saveOnBlur?m():a.value=void 0,e.validateEvent&&((N=n?.validate)==null||N.call(n,"blur").catch(V=>void 0))}}),{isComposing:P,handleCompositionStart:M,handleCompositionUpdate:_,handleCompositionEnd:R}=PC({afterComposition:g});return Ct(()=>e.modelValue,()=>{var N;e.validateEvent&&((N=n?.validate)==null||N.call(n,Tr).catch(V=>void 0))}),{inputRef:i,wrapperRef:O,tagTooltipRef:s,isFocused:I,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:M,handleCompositionUpdate:_,handleCompositionEnd:R,focus:S,blur:k}}function NYe(){const e=Y(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}const cW=11;function dW(){const e=Uo(),t=Y(0),n=ee(()=>({minWidth:`${Math.max(t.value,cW)}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 RYe({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=jt("input-tag"),o=Uo(),i=Y(!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",zr(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(),O=Number.parseFloat(Tf(S,"gap"))/2,I=g.top-k.top;let P=-9999;if(u==="before")P=Math.max(g.left-k.left-O,Math.floor(-O/2));else if(u==="after"){const M=g.right-k.left;P=M+(k.width===M?Math.floor(O/2):O)}Yme(o.value,{top:`${I}px`,left:`${P}px`}),i.value=!!u}function p(v){v.preventDefault(),s&&(s.style.opacity=""),u&&!zr(a)&&!zr(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 BYe({props:e,isFocused:t,hovering:n,disabled:r,inputValue:o,size:i,validateState:a,validateIcon:s,needStatusIcon:l}){const u=pp(),d=pa(),c=jt("input-tag"),f=jt("input"),p=ee(()=>[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=ee(()=>[u.style]),h=ee(()=>{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=ee(()=>{var m;return e.clearable&&!r.value&&!e.readonly&&(((m=e.modelValue)==null?void 0:m.length)||o.value)&&(t.value||n.value)}),y=ee(()=>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 LYe=et({name:"ElInputTag",inheritAttrs:!1}),FYe=et({...LYe,props:OYe,emits:MYe,setup(e,{expose:t,emit:n}){const r=e,o=oD(),i=pa(),{form:a,formItem:s}=ks(),{inputId:l}=ac(r,{formItemContext:s}),u=ee(()=>{var be;return(be=a?.statusIcon)!=null?be:!1}),d=ee(()=>s?.validateState||""),c=ee(()=>d.value&&rD[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:O,handleInput:I,handleKeydown:P,handleRemoveTag:M,handleClear:_,handleCompositionStart:R,handleCompositionUpdate:N,handleCompositionEnd:V,focus:L,blur:j}=PYe({props:r,emit:n,formItem:s}),{hovering:H,handleMouseEnter:G,handleMouseLeave:Z}=NYe(),{calculatorRef:z,inputStyle:U}=dW(),{dropIndicatorRef:W,showDropIndicator:re,handleDragStart:J,handleDragOver:te,handleDragEnd:X}=RYe({wrapperRef:p,handleDragged:O,afterDragged:L}),{ns:ue,nsInput:me,containerKls:Me,containerStyle:Ae,innerKls:ge,showClear:_e,showSuffix:Q}=BYe({props:r,hovering:H,isFocused:h,inputValue:g,disabled:A,size:y,validateState:d,validateIcon:c,needStatusIcon:u});return t({focus:L,blur:j}),(be,De)=>(F(),K("div",{ref_key:"wrapperRef",ref:p,class:oe(C(Me)),style:Jt(C(Ae)),onMouseenter:C(G),onMouseleave:C(Z)},[C(i).prefix?(F(),K("div",{key:0,class:oe(C(ue).e("prefix"))},[pt(be.$slots,"prefix")],2)):xe("v-if",!0),x("div",{class:oe(C(ge))},[(F(!0),K(Nt,null,on(C(S),(pe,ie)=>(F(),mt(C(Ih),{key:ie,size:C(m),closable:C(w),type:be.tagType,effect:be.tagEffect,draggable:C(w)&&be.draggable,"disable-transitions":"",onClose:ce=>C(M)(ie),onDragstart:ce=>C(J)(ce,ie),onDragover:ce=>C(te)(ce,ie),onDragend:C(X),onDrop:Qt(()=>{},["stop"])},{default:nt(()=>[pt(be.$slots,"tag",{value:pe,index:ie},()=>[An(ze(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(fs),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!be.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:be.tagEffect,placement:"bottom"},{default:nt(()=>[$e(C(Ih),{closable:!1,size:C(m),type:be.tagType,effect:be.tagEffect,"disable-transitions":""},{default:nt(()=>[An(" + "+ze(be.modelValue.length-be.maxCollapseTags),1)]),_:1},8,["size","type","effect"])]),content:nt(()=>[x("div",{class:oe(C(ue).e("input-tag-list"))},[(F(!0),K(Nt,null,on(C(k),(pe,ie)=>(F(),mt(C(Ih),{key:ie,size:C(m),closable:C(w),type:be.tagType,effect:be.tagEffect,"disable-transitions":"",onClose:ce=>C(M)(ie+be.maxCollapseTags)},{default:nt(()=>[pt(be.$slots,"tag",{value:pe,index:ie+be.maxCollapseTags},()=>[An(ze(pe),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):xe("v-if",!0),x("div",{class:oe(C(ue).e("input-wrapper"))},[an(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(U),onCompositionstart:C(R),onCompositionupdate:C(N),onCompositionend:C(V),onInput:C(I),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:z,"aria-hidden":"true",class:oe(C(ue).e("input-calculator")),textContent:ze(C(g))},null,10,["textContent"])],2),an(x("div",{ref_key:"dropIndicatorRef",ref:W,class:oe(C(ue).e("drop-indicator"))},null,2),[[Ar,C(re)]])],2),C(Q)?(F(),K("div",{key:1,class:oe(C(ue).e("suffix"))},[pt(be.$slots,"suffix"),C(_e)?(F(),mt(C(_n),{key:0,class:oe([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(_n),{key:1,class:oe([C(me).e("icon"),C(me).e("validateIcon"),C(me).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 UYe=en(FYe,[["__file","input-tag.vue"]]);const zYe=er(UYe),$Ye=Yt({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}}),jYe={click:e=>e instanceof MouseEvent},HYe=et({name:"ElLink"}),WYe=et({...HYe,props:$Ye,emits:jYe,setup(e,{emit:t}){const n=e,r=Nb("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"},ee(()=>Co(n.underline)));const o=jt("link"),i=ee(()=>{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=ee(()=>{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:oe(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(_n),{key:0},{default:nt(()=>[(F(),mt(hr(l.icon)))]),_:1})):xe("v-if",!0),l.$slots.default?(F(),K("span",{key:1,class:oe(C(o).e("inner"))},[pt(l.$slots,"default")],2)):xe("v-if",!0),l.$slots.icon?pt(l.$slots,"icon",{key:2}):xe("v-if",!0)],10,["href","target"]))}});var VYe=en(WYe,[["__file","link.vue"]]);const qYe=er(VYe);let GYe=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:{wS(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})})}},KYe=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 GYe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case gn.down:{wS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case gn.up:{wS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case gn.tab:{wS(t.currentTarget,"mouseleave");break}case gn.enter:case gn.numpadEnter:case gn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},YYe=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 KYe(r,t)})}};const QYe=et({name:"ElMenuCollapseTransition"}),ZYe=et({...QYe,setup(e){const t=jt("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){$s(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),El(r,t.m("collapse"))?($s(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(),$s(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(()=>[pt(r.$slots,"default")]),_:3},16))}});var XYe=en(ZYe,[["__file","menu-collapse-transition.vue"]]);function ube(e,t){const n=ee(()=>{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:ee(()=>{let o=e.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:n}}function JYe(e){return ee(()=>{const n=e.backgroundColor;return n?new B1(n).shade(20).toString():""})}const cbe=(e,t)=>{const n=jt("menu");return ee(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":JYe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},fW="rootMenu",kE="subMenu:",eQe=Yt({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}}),EI="ElSubMenu";var pW=et({name:EI,props:eQe,setup(e,{slots:t,expose:n}){const r=vr(),{indexPath:o,parentMenu:i}=ube(r,ee(()=>e.index)),a=jt("menu"),s=jt("sub-menu"),l=un(fW);l||Ji(EI,"can not inject root menu");const u=un(`${kE}${i.value.uid}`);u||Ji(EI,"can not inject sub menu");const d=Y({}),c=Y({});let f;const p=Y(!1),v=Y(),h=Y(),g=ee(()=>O.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=ee(()=>O.value==="horizontal"&&m.value||O.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=ee(()=>u.level===0),b=ee(()=>{const z=e.teleported;return zr(z)?m.value:z}),w=ee(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=ee(()=>O.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=ee(()=>l.openedMenus.includes(e.index)),k=ee(()=>[...Object.values(d.value),...Object.values(c.value)].some(({active:z})=>z)),O=ee(()=>l.props.mode),I=ee(()=>l.props.persistent),P=Ur({index:e.index,indexPath:o,active:k}),M=cbe(l.props,u.level+1),_=ee(()=>{var z;return(z=e.popperOffset)!=null?z:l.props.popperOffset}),R=ee(()=>{var z;return(z=e.popperClass)!=null?z:l.props.popperClass}),N=ee(()=>{var z;return(z=e.showTimeout)!=null?z:l.props.showTimeout}),V=ee(()=>{var z;return(z=e.hideTimeout)!=null?z:l.props.hideTimeout}),L=()=>{var z,U,W;return(W=(U=(z=h.value)==null?void 0:z.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:W.destroy()},j=z=>{z||L()},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=(z,U=N.value)=>{var W;if(z.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}=Tv(()=>{l.openMenu(e.index,o.value)},U),b.value&&((W=i.value.vnode.el)==null||W.dispatchEvent(new MouseEvent("mouseenter")))}},Z=(z=!1)=>{var U;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}=Tv(()=>!p.value&&l.closeMenu(e.index,o.value),V.value),b.value&&z&&((U=u.handleMouseleave)==null||U.call(u,!0))};Ct(()=>l.props.collapse,z=>j(!!z));{const z=W=>{c.value[W.index]=W},U=W=>{delete c.value[W.index]};Sr(`${kE}${r.uid}`,{addSubMenu:z,removeSubMenu:U,handleMouseleave:Z,mouseInChild:p,level:u.level+1})}return n({opened:S}),jn(()=>{l.addSubMenu(P),u.addSubMenu(P)}),Yr(()=>{u.removeSubMenu(P),l.removeSubMenu(P)}),()=>{var z;const U=[(z=t.title)==null?void 0:z.call(t),Fn(_n,{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:()=>Dn(y.value)?Fn(r.appContext.components[y.value]):Fn(y.value)})],W=l.isMenuPopup?Fn(fs,{ref:h,visible:S.value,effect:"light",pure:!0,offset:_.value,showArrow:!1,persistent:I.value,popperClass:R.value,placement:g.value,teleported:b.value,fallbackPlacements:A.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var re;return Fn("div",{class:[a.m(O.value),a.m("popup-container"),R.value],onMouseenter:J=>G(J,100),onMouseleave:()=>Z(!0),onFocus:J=>G(J,100)},[Fn("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${g.value}`)],style:M.value},[(re=t.default)==null?void 0:re.call(t)])])},default:()=>Fn("div",{class:s.e("title"),onClick:H},U)}):Fn(Nt,{},[Fn("div",{class:s.e("title"),ref:v,onClick:H},U),Fn(cD,{},{default:()=>{var re;return an(Fn("ul",{role:"menu",class:[a.b(),a.m("inline")],style:M.value},[(re=t.default)==null?void 0:re.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 tQe=Yt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:lt(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:()=>yLe},popperEffect:{type:lt(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),kI=e=>qt(e)&&e.every(t=>Dn(t)),nQe={close:(e,t)=>Dn(e)&&kI(t),open:(e,t)=>Dn(e)&&kI(t),select:(e,t,n,r)=>Dn(e)&&kI(t)&&ar(n)&&(zr(r)||r instanceof Promise)};var rQe=et({name:"ElMenu",props:tQe,emits:nQe,setup(e,{emit:t,slots:n,expose:r}){const o=vr(),i=o.appContext.config.globalProperties.$router,a=Y(),s=Y(),l=jt("menu"),u=jt("sub-menu");let d=64;const c=Y(-1),f=Y(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=Y(e.defaultActive),v=Y({}),h=Y({}),g=ee(()=>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,z=i.push(Z).then(U=>(U||(p.value=H),U));t("select",H,G,{index:H,indexPath:G,route:Z},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},O=j=>{const H=getComputedStyle(j),G=Number.parseInt(H.marginLeft,10),Z=Number.parseInt(H.marginRight,10);return j.offsetWidth+G+Z||0},I=()=>{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),z=Number.parseInt(Z.paddingLeft,10),U=Number.parseInt(Z.paddingRight,10),W=a.value.clientWidth-z-U;let re=0,J=0;return G.forEach((te,X)=>{re+=O(te),re<=W-d&&(J=X+1)}),J===G.length?-1:J},P=j=>h.value[j].indexPath,M=(j,H=33.34)=>{let G;return()=>{G&&clearTimeout(G),G=setTimeout(()=>{j()},H)}};let _=!0;const R=()=>{const j=Sa(s);if(j&&(d=O(j)||64),c.value===I())return;const H=()=>{c.value=-1,Vt(()=>{c.value=I()})};_?H():M(H)(),_=!1};Ct(()=>e.defaultActive,j=>{v.value[j]||(p.value=""),k(j)}),Ct(()=>e.collapse,j=>{j&&(f.value=[])}),Ct(v.value,y);let N;Cs(()=>{e.mode==="horizontal"&&e.ellipsis?N=li(a,R).stop:N?.()});const V=Y(!1);{const j=z=>{h.value[z.index]=z},H=z=>{delete h.value[z.index]};Sr(fW,Ur({props:e,openedMenus:f,items:v,subMenus:h,activeIndex:p,isMenuPopup:g,addMenuItem:z=>{v.value[z.index]=z},removeMenuItem:z=>{delete v.value[z.index]},addSubMenu:j,removeSubMenu:H,openMenu:m,closeMenu:w,handleMenuItemClick:S,handleSubMenuClick:A})),Sr(`${kE}${o.uid}`,{addSubMenu:j,removeSubMenu:H,mouseInChild:V,level:0})}jn(()=>{e.mode==="horizontal"&&new YYe(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:R});const L=cbe(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),re=c.value===-1?W:W.slice(0,c.value),J=c.value===-1?[]:W.slice(c.value);J?.length&&e.ellipsis&&(G=re,Z.push(Fn(pW,{ref:s,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Fn(_n,{class:u.e("icon-more")},{default:()=>Fn(e.ellipsisIcon)}),default:()=>J})))}const z=e.closeOnClickOutside?[[Zf,()=>{f.value.length&&(V.value||(f.value.forEach(W=>t("close",W,P(W))),f.value=[]))}]]:[],U=an(Fn("ul",{key:String(e.collapse),role:"menubar",ref:a,style:L.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...G,...Z]),z);return e.collapseTransition&&e.mode==="vertical"?Fn(XYe,()=>U):U}}});const oQe=Yt({index:{type:lt([String,null]),default:null},route:{type:lt([String,Object])},disabled:Boolean}),iQe={click:e=>Dn(e.index)&&qt(e.indexPath)},UL="ElMenuItem",aQe=et({name:UL}),sQe=et({...aQe,props:oQe,emits:iQe,setup(e,{expose:t,emit:n}){const r=e;Il(r.index)&&void 0;const o=vr(),i=un(fW),a=jt("menu"),s=jt("menu-item");i||Ji(UL,"can not inject root menu");const{parentMenu:l,indexPath:u}=ube(o,ao(r,"index")),d=un(`${kE}${l.value.uid}`);d||Ji(UL,"can not inject sub menu");const c=ee(()=>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)}),Yr(()=>{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:oe([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(fs),{key:0,effect:C(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:C(i).props.persistent},{content:nt(()=>[pt(v.$slots,"title")]),default:nt(()=>[x("div",{class:oe(C(a).be("tooltip","trigger"))},[pt(v.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(F(),K(Nt,{key:1},[pt(v.$slots,"default"),pt(v.$slots,"title")],64))],2))}});var dbe=en(sQe,[["__file","menu-item.vue"]]);const lQe={title:String},uQe=et({name:"ElMenuItemGroup"}),cQe=et({...uQe,props:lQe,setup(e){const t=jt("menu-item-group");return(n,r)=>(F(),K("li",{class:oe(C(t).b())},[x("div",{class:oe(C(t).e("title"))},[n.$slots.title?pt(n.$slots,"title",{key:1}):(F(),K(Nt,{key:0},[An(ze(n.title),1)],64))],2),x("ul",null,[pt(n.$slots,"default")])],2))}});var fbe=en(cQe,[["__file","menu-item-group.vue"]]);const dQe=er(rQe,{MenuItem:dbe,MenuItemGroup:fbe,SubMenu:pW}),fQe=vi(dbe),pQe=vi(fbe),hQe=vi(pW),gQe=Yt({icon:{type:vo,default:()=>FBe},title:String,content:{type:String,default:""}}),vQe={back:()=>!0},mQe=et({name:"ElPageHeader"}),yQe=et({...mQe,props:gQe,emits:vQe,setup(e,{emit:t}){const{t:n}=Hr(),r=jt("page-header");function o(){t("back")}return(i,a)=>(F(),K("div",{class:oe([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:oe(C(r).e("breadcrumb"))},[pt(i.$slots,"breadcrumb")],2)):xe("v-if",!0),x("div",{class:oe(C(r).e("header"))},[x("div",{class:oe(C(r).e("left"))},[x("div",{class:oe(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:oe(C(r).e("icon"))},[pt(i.$slots,"icon",{},()=>[i.icon?(F(),mt(C(_n),{key:0},{default:nt(()=>[(F(),mt(hr(i.icon)))]),_:1})):xe("v-if",!0)])],10,["aria-label"])):xe("v-if",!0),x("div",{class:oe(C(r).e("title"))},[pt(i.$slots,"title",{},()=>[An(ze(i.title||C(n)("el.pageHeader.title")),1)])],2)],2),$e(C(Wye),{direction:"vertical"}),x("div",{class:oe(C(r).e("content"))},[pt(i.$slots,"content",{},()=>[An(ze(i.content),1)])],2)],2),i.$slots.extra?(F(),K("div",{key:0,class:oe(C(r).e("extra"))},[pt(i.$slots,"extra")],2)):xe("v-if",!0)],2),i.$slots.default?(F(),K("div",{key:1,class:oe(C(r).e("main"))},[pt(i.$slots,"default")],2)):xe("v-if",!0)],2))}});var bQe=en(yQe,[["__file","page-header.vue"]]);const wQe=er(bQe),pbe=Symbol("elPaginationKey"),AQe=Yt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:vo}}),CQe={click:e=>e instanceof MouseEvent},xQe=et({name:"ElPaginationPrev"}),SQe=et({...xQe,props:AQe,emits:CQe,setup(e){const t=e,{t:n}=Hr(),r=ee(()=>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},ze(o.prevText),1)):(F(),mt(C(_n),{key:1},{default:nt(()=>[(F(),mt(hr(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var EQe=en(SQe,[["__file","prev.vue"]]);const kQe=Yt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:vo}}),TQe=et({name:"ElPaginationNext"}),_Qe=et({...TQe,props:kQe,emits:["click"],setup(e){const t=e,{t:n}=Hr(),r=ee(()=>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},ze(o.nextText),1)):(F(),mt(C(_n),{key:1},{default:nt(()=>[(F(),mt(hr(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var DQe=en(_Qe,[["__file","next.vue"]]);const hW={label:"label",value:"value",disabled:"disabled",options:"options"};function FC(e){const t=ee(()=>({...hW,...e.props}));return{aliasProps:t,getLabel:a=>Yi(a,t.value.label),getValue:a=>Yi(a,t.value.value),getDisabled:a=>Yi(a,t.value.disabled),getOptions:a=>Yi(a,t.value.options)}}const hbe=Symbol("ElSelectGroup"),Ub=Symbol("ElSelect"),zL="ElOption",IQe=Yt({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),gW=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ch=e=>mC(e);function OQe(e,t){const n=un(Ub);n||Ji(zL,"usage: <el-select><el-option /></el-select/>");const r=un(hbe,{disabled:!1}),o=ee(()=>d(Ka(n.props.modelValue),e.value)),i=ee(()=>{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=ee(()=>{var p;return(p=e.label)!=null?p:ar(e.value)?"":e.value}),s=ee(()=>e.value||e.label||""),l=ee(()=>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(Yi(g,h))===Yi(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(gW(p),"i");t.visible=v.test(String(a.value))||e.created};return Ct(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Ct(()=>e.value,(p,v)=>{const{remote:h,valueKey:g}=n.props;if((h?p!==v:!ca(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()}}),Ct(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:o,isDisabled:l,hoverItem:c,updateOption:f}}const MQe=et({name:zL,componentName:zL,props:IQe,setup(e){const t=jt("select"),n=ds(),r=ee(()=>[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}=OQe(e,o),{visible:c,hover:f}=_a(o),p=vr().proxy;l.onOptionCreate(p),Yr(()=>{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 PQe(e,t){return an((F(),K("li",{id:e.id,class:oe(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Qt(e.selectOptionClick,["stop"])},[pt(e.$slots,"default",{},()=>[x("span",null,ze(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Ar,e.visible]])}var vW=en(MQe,[["render",PQe],["__file","option.vue"]]);const NQe=et({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=un(Ub),t=jt("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),o=ee(()=>e.props.fitInputWidth),i=Y("");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 RQe(e,t,n,r,o,i){return F(),K("div",{class:oe([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Jt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(F(),K("div",{key:0,class:oe(e.ns.be("dropdown","header"))},[pt(e.$slots,"header")],2)):xe("v-if",!0),pt(e.$slots,"default"),e.$slots.footer?(F(),K("div",{key:1,class:oe(e.ns.be("dropdown","footer"))},[pt(e.$slots,"footer")],2)):xe("v-if",!0)],6)}var BQe=en(NQe,[["render",RQe],["__file","select-dropdown.vue"]]);const LQe=(e,t)=>{const{t:n}=Hr(),r=ds(),o=jt("select"),i=jt("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=Y(),l=Y(),u=Y(),d=Y(),c=Y(),f=Y(),p=Y(),v=Y(),h=Y(),g=Y(),y=Y(),m=Y(!1),b=Y(),{form:w,formItem:A}=ks(),{inputId:S}=ac(e,{formItemContext:A}),{valueOnClear:k,isEmptyValue:O}=IC(e),{isComposing:I,handleCompositionStart:P,handleCompositionUpdate:M,handleCompositionEnd:_}=PC({afterComposition:xt=>Lt(xt)}),R=ee(()=>e.disabled||!!w?.disabled),{wrapperRef:N,isFocused:V,handleBlur:L}=vp(c,{disabled:R,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=ee(()=>qt(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),H=ee(()=>{var xt;return(xt=w?.statusIcon)!=null?xt:!1}),G=ee(()=>e.clearable&&!R.value&&j.value&&(V.value||a.inputHovering)),Z=ee(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),z=ee(()=>o.is("reverse",!!(Z.value&&m.value))),U=ee(()=>A?.validateState||""),W=ee(()=>U.value&&rD[U.value]),re=ee(()=>e.remote?300:0),J=ee(()=>e.remote&&!a.inputValue&&a.options.size===0),te=ee(()=>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=ee(()=>ue.value.filter(xt=>xt.visible).length),ue=ee(()=>{const xt=Array.from(a.options.values()),sn=[];return a.optionValues.forEach(vt=>{const Bt=xt.findIndex(mn=>mn.value===vt);Bt>-1&&sn.push(xt[Bt])}),sn.length>=xt.length?sn:xt}),me=ee(()=>Array.from(a.cachedOptions.values())),Me=ee(()=>{const xt=ue.value.filter(sn=>!sn.created).some(sn=>sn.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!xt}),Ae=()=>{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)})},ge=fa(),_e=ee(()=>["small"].includes(ge.value)?"small":"default"),Q=ee({get(){return m.value&&!J.value},set(xt){m.value=xt}}),be=ee(()=>{if(e.multiple&&!zr(e.modelValue))return Ka(e.modelValue).length===0&&!a.inputValue;const xt=qt(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||zr(xt)?!a.inputValue:!0}),De=ee(()=>{var xt;const sn=(xt=e.placeholder)!=null?xt:n("el.select.placeholder");return e.multiple||!j.value?sn:a.selectedLabel}),pe=ee(()=>yE?null:"mouseenter");Ct(()=>e.modelValue,(xt,sn)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",ie("")),Re(),!ca(xt,sn)&&e.validateEvent&&A?.validate("change").catch(vt=>void 0)},{flush:"post",deep:!0}),Ct(()=>m.value,xt=>{xt?ie(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",xt)}),Ct(()=>a.options.entries(),()=>{Kr&&(Re(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&ce())},{flush:"post"}),Ct([()=>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||Ae()});const ie=xt=>{a.previousQuery===xt||I.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(mn=>mn.visible&&!mn.disabled&&!mn.states.groupDisabled),sn=xt.find(mn=>mn.created),vt=xt[0],Bt=ue.value.map(mn=>mn.value);a.hoveringIndex=he(Bt,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=[];zr(e.modelValue)||Ka(e.modelValue).forEach(sn=>{xt.push(Ee(sn))}),a.selected=xt},Ee=xt=>{let sn;const vt=D3(xt);for(let Mn=a.cachedOptions.size-1;Mn>=0;Mn--){const tr=me.value[Mn];if(vt?Yi(tr.value,e.valueKey)===Yi(xt,e.valueKey):tr.value===xt){sn={value:xt,currentLabel:tr.currentLabel,get isDisabled(){return tr.isDisabled}};break}}if(sn)return sn;const Bt=vt?xt.label:xt??"";return{value:xt,currentLabel:Bt}},Le=()=>{a.hoveringIndex=ue.value.findIndex(xt=>a.selected.some(sn=>He(sn)===He(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)},ht=()=>{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),ie(a.inputValue)},Lt=xt=>{if(a.inputValue=xt.target.value,e.remote)tn();else return Rt()},tn=Fl(()=>{Rt()},re.value),Wt=xt=>{ca(e.modelValue,xt)||t(Tr,xt)},zt=xt=>Ome(xt,sn=>{const vt=a.cachedOptions.get(sn);return vt&&!vt.disabled&&!vt.states.groupDisabled}),dt=xt=>{if(e.multiple&&xt.code!==gn.delete&&xt.target.value.length<=0){const sn=Ka(e.modelValue).slice(),vt=zt(sn);if(vt<0)return;const Bt=sn[vt];sn.splice(vt,1),t(Gn,sn),Wt(sn),t("remove-tag",Bt)}},_t=(xt,sn)=>{const vt=a.selected.indexOf(sn);if(vt>-1&&!R.value){const Bt=Ka(e.modelValue).slice();Bt.splice(vt,1),t(Gn,Bt),Wt(Bt),t("remove-tag",sn.value)}xt.stopPropagation(),je()},ut=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"),je()},rt=xt=>{var sn;if(e.multiple){const vt=Ka((sn=e.modelValue)!=null?sn:[]).slice(),Bt=he(vt,xt);Bt>-1?vt.splice(Bt,1):(e.multipleLimit<=0||vt.length<e.multipleLimit)&&vt.push(xt.value),t(Gn,vt),Wt(vt),xt.created&&ie(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Gn,xt.value),Wt(xt.value),m.value=!1;je(),!m.value&&Vt(()=>{Je(xt)})},he=(xt,sn)=>zr(sn)?-1:ar(sn.value)?xt.findIndex(vt=>ca(Yi(vt,e.valueKey),He(sn))):xt.indexOf(sn.value),Je=xt=>{var sn,vt,Bt,mn,Mn;const tr=qt(xt)?xt[0]:xt;let cn=null;if(tr?.value){const qe=ue.value.filter(yt=>yt.value===tr.value);qe.length>0&&(cn=qe[0].$el)}if(u.value&&cn){const qe=(mn=(Bt=(vt=(sn=u.value)==null?void 0:sn.popperRef)==null?void 0:vt.contentRef)==null?void 0:Bt.querySelector)==null?void 0:mn.call(Bt,`.${o.be("dropdown","wrap")}`);qe&&CH(qe,cn)}(Mn=y.value)==null||Mn.handleScroll()},ct=xt=>{a.options.set(xt.value,xt),a.cachedOptions.set(xt.value,xt)},Ot=(xt,sn)=>{a.options.get(xt)===sn&&a.options.delete(xt)},Tn=ee(()=>{var xt,sn;return(sn=(xt=u.value)==null?void 0:xt.popperRef)==null?void 0:sn.contentRef}),In=()=>{a.isBeforeHide=!1,Vt(()=>{var xt;(xt=y.value)==null||xt.update(),Je(a.selected)})},je=()=>{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()},ye=xt=>{ut(xt)},Be=xt=>{if(m.value=!1,V.value){const sn=new FocusEvent("blur",xt);Vt(()=>L(sn))}},ot=()=>{a.inputValue.length>0?a.inputValue="":m.value=!1},gt=()=>{R.value||(yE&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:m.value=!m.value)},Ke=()=>{if(!m.value)gt();else{const xt=ue.value[a.hoveringIndex];xt&&!xt.isDisabled&&rt(xt)}},He=xt=>ar(xt.value)?Yi(xt.value,e.valueKey):xt.value,at=ee(()=>ue.value.filter(xt=>xt.visible).every(xt=>xt.isDisabled)),St=ee(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),tt=ee(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Qe=xt=>{if(!m.value){m.value=!0;return}if(!(a.options.size===0||X.value===0||I.value)&&!at.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)&&Qe(xt),Vt(()=>Je(b.value))}},it=()=>{if(!l.value)return 0;const xt=window.getComputedStyle(l.value);return Number.parseFloat(xt.gap||"6px")},Mt=ee(()=>{const xt=it(),sn=e.filterable?xt+cW:0;return{maxWidth:`${g.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-xt-sn:a.selectionWidth-sn}px`}}),Gt=ee(()=>({maxWidth:`${a.selectionWidth}px`})),En=xt=>{t("popup-scroll",xt)};li(l,Fe),li(N,Ne),li(h,ht),li(g,Pe);let Nn;return Ct(()=>Q.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:V,expanded:m,optionsArray:ue,hoverOption:b,selectSize:ge,filteredOptionsCount:X,updateTooltip:Ne,updateTagTooltip:ht,debouncedOnInputChange:tn,onInput:Lt,deletePrevTag:dt,deleteTag:_t,deleteSelected:ut,handleOptionSelect:rt,scrollToOption:Je,hasModelValue:j,shouldShowPlaceholder:be,currentPlaceholder:De,mouseEnterEventName:pe,needStatusIcon:H,showClearBtn:G,iconComponent:Z,iconReverse:z,validateState:U,validateIcon:W,showNewOption:Me,updateOptions:Ae,collapseTagSize:_e,setSelected:Re,selectDisabled:R,emptyText:te,handleCompositionStart:P,handleCompositionUpdate:M,handleCompositionEnd:_,onOptionCreate:ct,onOptionDestroy:Ot,handleMenuEnter:In,focus:je,blur:ke,handleClearClick:ye,handleClickOutside:Be,handleEsc:ot,toggleMenu:gt,selectOption:Ke,getValueKey:He,navigateOptions:Qe,dropdownMenuVisible:Q,showTagList:St,collapseTagList:tt,popupScroll:En,tagStyle:Mt,collapseTagStyle:Gt,popperRef:Tn,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 FQe=et({name:"ElOptions",setup(e,{slots:t}){const n=un(Ub);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(!Dn(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),ca(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const UQe=Yt({name:String,id:String,modelValue:{type:lt([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ba,effect:{type:lt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:lt([String,Object])},popperOptions:{type:lt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:lt(Function)},filterMethod:{type:lt(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:Qd},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:lt(String),values:mp,default:"bottom-start"},fallbackPlacements:{type:lt(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:oi.appendTo,options:{type:lt(Array)},props:{type:lt(Object),default:()=>hW},...rm,...Es(["ariaLabel"])});p1e.scroll;const zQe=et({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=jt("select"),n=Y(),r=vr(),o=Y([]);Sr(hbe,Ur({..._a(e)}));const i=ee(()=>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()}),Fme(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function $Qe(e,t,n,r,o,i){return an((F(),K("ul",{ref:"groupRef",class:oe(e.ns.be("group","wrap"))},[x("li",{class:oe(e.ns.be("group","title"))},ze(e.label),3),x("li",null,[x("ul",{class:oe(e.ns.b("group"))},[pt(e.$slots,"default")],2)])],2)),[[Ar,e.visible]])}var mW=en(zQe,[["render",$Qe],["__file","option-group.vue"]]);const see="ElSelect",jQe=et({name:see,componentName:see,components:{ElSelectMenu:BQe,ElOption:vW,ElOptions:FQe,ElOptionGroup:mW,ElTag:Ih,ElScrollbar:Lc,ElTooltip:fs,ElIcon:_n},directives:{ClickOutside:Zf},props:UQe,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=ee(()=>{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=LQe(i,t),{calculatorRef:s,inputStyle:l}=dW(),{getLabel:u,getValue:d,getOptions:c,getDisabled:f}=FC(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(O=>{O.currentLabel=O.label||(ar(O.value)?"":O.value),a.onOptionCreate(O)})}else if(A==="ElOption"){const S={...b.props};S.currentLabel=S.label||(ar(S.value)?"":S.value),a.onOptionCreate(S)}}})};Ct(()=>{var y;return(y=n.default)==null?void 0:y.call(n)},y=>{e.persistent||h(y)},{immediate:!0}),Sr(Ub,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=ee(()=>e.multiple?a.states.selected.map(y=>y.currentLabel):a.states.selectedLabel);return Yr(()=>{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 HQe(e,t){const n=lr("el-tag"),r=lr("el-tooltip"),o=lr("el-icon"),i=lr("el-option"),a=lr("el-option-group"),s=lr("el-options"),l=lr("el-scrollbar"),u=lr("el-select-menu"),d=R_("click-outside");return an((F(),K("div",{ref:"selectRef",class:oe([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[L4(e.mouseEnterEventName)]:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[$e(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:oe([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:oe(e.nsSelect.e("prefix"))},[pt(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:oe([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?pt(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(F(!0),K(Nt,null,on(e.showTagList,f=>(F(),K("div",{key:e.getValueKey(f),class:oe(e.nsSelect.e("selected-item"))},[$e(n,{closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Jt(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:nt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[pt(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[An(ze(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:oe(e.nsSelect.e("selected-item"))},[$e(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Jt(e.collapseTagStyle)},{default:nt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))}," + "+ze(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:nt(()=>[x("div",{ref:"tagMenuRef",class:oe(e.nsSelect.e("selection"))},[(F(!0),K(Nt,null,on(e.collapseTagList,f=>(F(),K("div",{key:e.getValueKey(f),class:oe(e.nsSelect.e("selected-item"))},[$e(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:oe(e.nsSelect.e("tags-text"))},[pt(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[An(ze(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:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[an(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,type:"text",name:e.name,class:oe([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Jt(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:oe(e.nsSelect.e("input-calculator")),textContent:ze(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(F(),K("div",{key:1,class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?pt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,ze(e.currentPlaceholder),1)]):(F(),K("span",{key:1},ze(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:oe(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(F(),mt(o,{key:0,class:oe([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:oe([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:oe([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(()=>[$e(u,{ref:"menuRef"},{default:nt(()=>[e.$slots.header?(F(),K("div",{key:0,class:oe(e.nsSelect.be("dropdown","header")),onClick:Qt(()=>{},["stop"])},[pt(e.$slots,"header")],10,["onClick"])):xe("v-if",!0),an($e(l,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:oe([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),$e(s,null,{default:nt(()=>[pt(e.$slots,"default",{},()=>[(F(!0),K(Nt,null,on(e.options,(c,f)=>{var p;return F(),K(Nt,{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(Nt,null,on(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:oe(e.nsSelect.be("dropdown","loading"))},[pt(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(F(),K("div",{key:2,class:oe(e.nsSelect.be("dropdown","empty"))},[pt(e.$slots,"empty",{},()=>[x("span",null,ze(e.emptyText),1)])],2)):xe("v-if",!0),e.$slots.footer?(F(),K("div",{key:3,class:oe(e.nsSelect.be("dropdown","footer")),onClick:Qt(()=>{},["stop"])},[pt(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 WQe=en(jQe,[["render",HQe],["__file","select.vue"]]);const Dv=er(WQe,{Option:vW,OptionGroup:mW}),TE=vi(vW),VQe=vi(mW),yW=()=>un(pbe,{}),qQe=Yt({pageSize:{type:Number,required:!0},pageSizes:{type:lt(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Yd},appendSizeTo:String}),GQe=et({name:"ElPaginationSizes"}),KQe=et({...GQe,props:qQe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Hr(),o=jt("pagination"),i=yW(),a=Y(n.pageSize);Ct(()=>n.pageSizes,(u,d)=>{if(!ca(u,d)&&qt(u)){const c=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),Ct(()=>n.pageSize,u=>{a.value=u});const s=ee(()=>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:oe(C(o).e("sizes"))},[$e(C(Dv),{"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(Nt,null,on(C(s),c=>(F(),mt(C(TE),{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 YQe=en(KQe,[["__file","sizes.vue"]]);const QQe=Yt({size:{type:String,values:Yd}}),ZQe=et({name:"ElPaginationJumper"}),XQe=et({...ZQe,props:QQe,setup(e){const{t}=Hr(),n=jt("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=yW(),s=Y(),l=ee(()=>{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:oe(C(n).e("jump")),disabled:C(o)},[x("span",{class:oe([C(n).e("goto")])},ze(C(t)("el.pagination.goto")),3),$e(C(Us),{size:c.size,class:oe([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:oe([C(n).e("classifier")])},ze(C(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var JQe=en(XQe,[["__file","jumper.vue"]]);const eZe=Yt({total:{type:Number,default:1e3}}),tZe=et({name:"ElPaginationTotal"}),nZe=et({...tZe,props:eZe,setup(e){const{t}=Hr(),n=jt("pagination"),{disabled:r}=yW();return(o,i)=>(F(),K("span",{class:oe(C(n).e("total")),disabled:C(r)},ze(C(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var rZe=en(nZe,[["__file","total.vue"]]);const oZe=Yt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iZe=et({name:"ElPaginationPager"}),aZe=et({...iZe,props:oZe,emits:[Tr],setup(e,{emit:t}){const n=e,r=jt("pager"),o=jt("icon"),{t:i}=Hr(),a=Y(!1),s=Y(!1),l=Y(!1),u=Y(!1),d=Y(!1),c=Y(!1),f=ee(()=>{const w=n.pagerCount,A=(w-1)/2,S=Number(n.currentPage),k=Number(n.pageCount);let O=!1,I=!1;k>w&&(S>w-A&&(O=!0),S<k-A&&(I=!0));const P=[];if(O&&!I){const M=k-(w-2);for(let _=M;_<k;_++)P.push(_)}else if(!O&&I)for(let M=2;M<w;M++)P.push(M);else if(O&&I){const M=Math.floor(w/2)-1;for(let _=S-M;_<=S+M;_++)P.push(_)}else for(let M=2;M<k;M++)P.push(M);return P}),p=ee(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),v=ee(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),h=ee(()=>n.disabled?-1:0);Ct(()=>[n.pageCount,n.pagerCount,n.currentPage],([w,A,S])=>{const k=(A-1)/2;let O=!1,I=!1;w>A&&(O=S>A-k,I=S<w-k),l.value&&(l.value=O),u.value&&(u.value=I),a.value=O,s.value=I},{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,O=n.currentPage,I=n.pagerCount-2;A.className.includes("more")&&(A.className.includes("quickprev")?S=O-I:A.className.includes("quicknext")&&(S=O+I)),Number.isNaN(+S)||(S<1&&(S=1),S>k&&(S=k)),S!==O&&t(Tr,S)}return(w,A)=>(F(),K("ul",{class:oe(C(r).b()),onClick:b,onKeyup:Lr(m,["enter"])},[w.pageCount>0?(F(),K("li",{key:0,class:oe([[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:oe(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(JX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),(F(!0),K(Nt,null,on(C(f),S=>(F(),K("li",{key:S,class:oe([[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)},ze(S),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(F(),K("li",{key:2,class:oe(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(JX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),w.pageCount>1?(F(),K("li",{key:3,class:oe([[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)},ze(w.pageCount),11,["aria-current","aria-label","tabindex"])):xe("v-if",!0)],42,["onKeyup"]))}});var sZe=en(aZe,[["__file","pager.vue"]]);const Ys=e=>typeof e!="number",lZe=Yt({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:lt(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:vo,default:()=>Kf},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}),uZe={"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)},lee="ElPagination";var cZe=et({name:lee,props:lZe,emits:uZe,setup(e,{emit:t,slots:n}){const{t:r}=Hr(),o=jt("pagination"),i=vr().vnode.props||{},a=Vme(),s=ee(()=>{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"},ee(()=>!!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=ee(()=>{if(Ys(e.total)&&Ys(e.pageCount)||!Ys(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Ys(e.pageCount)){if(!Ys(e.total)&&!Ys(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),c=Y(Ys(e.defaultPageSize)?10:e.defaultPageSize),f=Y(Ys(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=ee({get(){return Ys(e.pageSize)?c.value:e.pageSize},set(A){Ys(e.pageSize)&&(c.value=A),u&&(t("update:page-size",A),t("size-change",A))}}),v=ee(()=>{let A=0;return Ys(e.pageCount)?Ys(e.total)||(A=Math.max(1,Math.ceil(e.total/p.value))):A=e.pageCount,A}),h=ee({get(){return Ys(e.currentPage)?f.value:e.currentPage},set(A){let S=A;A<1?S=1:A>v.value&&(S=v.value),Ys(e.currentPage)&&(f.value=S),l&&(t("update:current-page",S),t("current-change",S))}});Ct(v,A=>{h.value>A&&(h.value=A)}),Ct([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(pbe,{pageCount:v,disabled:ee(()=>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=[],O=[],I=Fn("div",{class:o.e("rightwrapper")},O),P={prev:Fn(EQe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:m}),jumper:Fn(JQe,{size:s.value}),pager:Fn(sZe,{currentPage:h.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:Fn(DQe,{disabled:e.disabled,currentPage:h.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:Fn(YQe,{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(rZe,{total:Ys(e.total)?0:e.total})},M=e.layout.split(",").map(R=>R.trim());let _=!1;return M.forEach(R=>{if(R==="->"){_=!0;return}_?O.push(P[R]):k.push(P[R])}),w(k[0],o.is("first")),w(k[k.length-1],o.is("last")),_&&O.length>0&&(w(O[0],o.is("first")),w(O[O.length-1],o.is("last")),k.push(I)),Fn("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},k)}}});const dZe=er(cZe),fZe=Yt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:CL,default:"primary"},cancelButtonType:{type:String,values:CL,default:"text"},icon:{type:vo,default:()=>xLe},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},teleported:oi.teleported,persistent:oi.persistent,width:{type:[String,Number],default:150}}),pZe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},hZe=et({name:"ElPopconfirm"}),gZe=et({...hZe,props:fZe,emits:pZe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Hr(),i=jt("popconfirm"),a=Y(),s=ee(()=>{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=ee(()=>({width:_i(r.width)})),d=v=>{n("confirm",v),l()},c=v=>{n("cancel",v),l()},f=ee(()=>r.confirmButtonText||o("el.popconfirm.confirmButtonText")),p=ee(()=>r.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:s,hide:l}),(v,h)=>(F(),mt(C(fs),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:oe(C(i).b())},[x("div",{class:oe(C(i).e("main"))},[!v.hideIcon&&v.icon?(F(),mt(C(_n),{key:0,class:oe(C(i).e("icon")),style:Jt({color:v.iconColor})},{default:nt(()=>[(F(),mt(hr(v.icon)))]),_:1},8,["class","style"])):xe("v-if",!0),An(" "+ze(v.title),1)],2),x("div",{class:oe(C(i).e("action"))},[pt(v.$slots,"actions",{confirm:d,cancel:c},()=>[$e(C(Za),{size:"small",type:v.cancelButtonType==="text"?"":v.cancelButtonType,text:v.cancelButtonType==="text",onClick:c},{default:nt(()=>[An(ze(C(p)),1)]),_:1},8,["type","text"]),$e(C(Za),{size:"small",type:v.confirmButtonType==="text"?"":v.confirmButtonType,text:v.confirmButtonType==="text",onClick:d},{default:nt(()=>[An(ze(C(f)),1)]),_:1},8,["type","text"])])],2)],2)]),default:nt(()=>[v.$slots.reference?pt(v.$slots,"reference",{key:0}):xe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var vZe=en(gZe,[["__file","popconfirm.vue"]]);const mZe=er(vZe),yZe=Yt({trigger:J1.trigger,triggerKeys:J1.triggerKeys,placement:NS.placement,disabled:J1.disabled,visible:oi.visible,transition:oi.transition,popperOptions:NS.popperOptions,tabindex:NS.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}}),bZe={"update:visible":e=>Co(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},wZe="onUpdate:visible",AZe=et({name:"ElPopover"}),CZe=et({...AZe,props:yZe,emits:bZe,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>r[wZe]),i=jt("popover"),a=Y(),s=ee(()=>{var g;return(g=C(a))==null?void 0:g.popperRef}),l=ee(()=>[{width:_i(r.width)},r.popperStyle]),u=ee(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),d=ee(()=>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(fs),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:oe(C(i).e("title")),role:"title"},ze(g.title),3)):xe("v-if",!0),pt(g.$slots,"default",{},()=>[An(ze(g.content),1)])]),default:nt(()=>[g.$slots.reference?pt(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 xZe=en(CZe,[["__file","popover.vue"]]);const uee=(e,t)=>{const n=t.arg||t.value,r=n?.popperRef;r&&(r.triggerRef=e)};var SZe={mounted(e,t){uee(e,t)},updated(e,t){uee(e,t)}};const EZe="popover",gbe=TBe(SZe,EZe),kZe=er(xZe,{directive:gbe}),TZe=Yt({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:lt(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:lt([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:lt(Function),default:e=>`${e}%`}}),_Ze=et({name:"ElProgress"}),DZe=et({..._Ze,props:TZe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=jt("progress"),o=ee(()=>{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=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=ee(()=>{const b=a.value,w=t.type==="dashboard";return`
  49. M 50 50
  50. m 0 ${w?"":"-"}${b}
  51. a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
  52. a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
  53. `}),l=ee(()=>2*Math.PI*a.value),u=ee(()=>t.type==="dashboard"?.75:1),d=ee(()=>`${-1*l.value*(1-u.value)/2}px`),c=ee(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),f=ee(()=>({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=ee(()=>{let b;return t.color?b=m(t.percentage):b=n[t.status]||n.default,b}),v=ee(()=>t.status==="warning"?Rb:t.type==="line"?t.status==="success"?xH:Qd:t.status==="success"?OC:cu),h=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=ee(()=>t.format(t.percentage));function y(b){const w=100/b.length;return b.map((S,k)=>Dn(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(Dn(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:oe([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:oe(C(r).b("bar"))},[x("div",{class:oe(C(r).be("bar","outer")),style:Jt({height:`${b.strokeWidth}px`})},[x("div",{class:oe([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:Jt(C(o))},[(b.showText||b.$slots.default)&&b.textInside?(F(),K("div",{key:0,class:oe(C(r).be("bar","innerText"))},[pt(b.$slots,"default",{percentage:b.percentage},()=>[x("span",null,ze(C(g)),1)])],2)):xe("v-if",!0)],6)],6)],2)):(F(),K("div",{key:1,class:oe(C(r).b("circle")),style:Jt({height:`${b.width}px`,width:`${b.width}px`})},[(F(),K("svg",{viewBox:"0 0 100 100"},[x("path",{class:oe(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:Jt(C(c))},null,14,["d","stroke","stroke-linecap","stroke-width"]),x("path",{class:oe(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:Jt(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:oe(C(r).e("text")),style:Jt({fontSize:`${C(h)}px`})},[pt(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(F(),mt(C(_n),{key:1},{default:nt(()=>[(F(),mt(hr(C(v))))]),_:1})):(F(),K("span",{key:0},ze(C(g)),1))])],6)):xe("v-if",!0)],10,["aria-valuenow"]))}});var IZe=en(DZe,[["__file","progress.vue"]]);const vbe=er(IZe),OZe=Yt({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:lt([Array,Object]),default:()=>fi(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:lt([Array,Object]),default:()=>[hx,hx,hx]},voidIcon:{type:vo,default:()=>FLe},disabledVoidIcon:{type:vo,default:()=>hx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:lt(Array),default:()=>fi(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ba,clearable:Boolean,...Es(["ariaLabel"])}),MZe={[Tr]:e=>Ln(e),[Gn]:e=>Ln(e)},PZe=et({name:"ElRate"}),NZe=et({...PZe,props:OZe,emits:MZe,setup(e,{expose:t,emit:n}){const r=e;function o(L,j){const H=z=>ar(z),G=Object.keys(j).map(z=>+z).filter(z=>{const U=j[z];return(H(U)?U.excluded:!1)?L<z:L<=z}).sort((z,U)=>z-U),Z=j[G[0]];return H(Z)&&Z.value||Z}const i=un(om,void 0),a=un(Fd,void 0),s=fa(),l=jt("rate"),{inputId:u,isLabeledByFormItem:d}=ac(r,{formItemContext:a}),c=Y(r.modelValue),f=Y(-1),p=Y(!0),v=ee(()=>[l.b(),l.m(s.value)]),h=ee(()=>r.disabled||i?.disabled),g=ee(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),y=ee(()=>{let L="";return r.showScore?L=r.scoreTemplate.replace(/\{\s*value\s*\}/,h.value?`${r.modelValue}`:`${c.value}`):r.showText&&(L=r.texts[Math.ceil(c.value)-1]),L}),m=ee(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=ee(()=>qt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=ee(()=>{const L=o(c.value,b.value);return ar(L)?"":L}),A=ee(()=>{let L="";return h.value?L=`${m.value}%`:r.allowHalf&&(L="50%"),{color:w.value,width:L}}),S=ee(()=>{let L=qt(r.icons)?[...r.icons]:{...r.icons};return L=Id(L),qt(L)?{[r.lowThreshold]:L[0],[r.highThreshold]:{value:L[1],excluded:!0},[r.max]:L[2]}:L}),k=ee(()=>o(r.modelValue,S.value)),O=ee(()=>h.value?Dn(r.disabledVoidIcon)?r.disabledVoidIcon:Id(r.disabledVoidIcon):Dn(r.voidIcon)?r.voidIcon:Id(r.voidIcon)),I=ee(()=>o(c.value,S.value));function P(L){const j=h.value&&m.value>0&&L-1<r.modelValue&&L>r.modelValue,H=r.allowHalf&&p.value&&L-.5<=c.value&&L>c.value;return j||H}function M(L){r.clearable&&L===r.modelValue&&(L=0),n(Gn,L),r.modelValue!==L&&n(Tr,L)}function _(L){h.value||(r.allowHalf&&p.value?M(c.value):M(L))}function R(L){if(h.value)return;let j=c.value;const H=L.code;return H===gn.up||H===gn.right?(r.allowHalf?j+=.5:j+=1,L.stopPropagation(),L.preventDefault()):(H===gn.left||H===gn.down)&&(r.allowHalf?j-=.5:j-=1,L.stopPropagation(),L.preventDefault()),j=j<0?0:j,j=j>r.max?r.max:j,n(Gn,j),n(Tr,j),j}function N(L,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?L-.5:L}else c.value=L;f.value=L}}function V(){h.value||(r.allowHalf&&(p.value=r.modelValue!==Math.floor(r.modelValue)),c.value=r.modelValue,f.value=-1)}return Ct(()=>r.modelValue,L=>{c.value=L,p.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Gn,0),t({setCurrentValue:N,resetCurrentValue:V}),(L,j)=>{var H;return F(),K("div",{id:C(u),class:oe([C(v),C(l).is("disabled",C(h))]),role:"slider","aria-label":C(d)?void 0:L.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":L.max,tabindex:"0",style:Jt(C(g)),onKeydown:R},[(F(!0),K(Nt,null,on(L.max,(G,Z)=>(F(),K("span",{key:Z,class:oe(C(l).e("item")),onMousemove:z=>N(G,z),onMouseleave:V,onClick:z=>_(G)},[$e(C(_n),{class:oe([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(Nt,{key:0},[an((F(),mt(hr(C(I)),null,null,512)),[[Ar,G<=c.value]]),an((F(),mt(hr(C(O)),null,null,512)),[[Ar,!(G<=c.value)]])],64)),P(G)?(F(),K(Nt,{key:1},[(F(),mt(hr(C(O)),{class:oe([C(l).em("decimal","box")])},null,8,["class"])),$e(C(_n),{style:Jt(C(A)),class:oe([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)),L.showText||L.showScore?(F(),K("span",{key:0,class:oe(C(l).e("text")),style:Jt({color:L.textColor})},ze(C(y)),7)):xe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var RZe=en(NZe,[["__file","rate.vue"]]);const BZe=er(RZe),Sg={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},cee={[Sg.primary]:V3,[Sg.success]:qBe,[Sg.warning]:Rb,[Sg.error]:SH,[Sg.info]:V3},LZe=Yt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),FZe=et({name:"ElResult"}),UZe=et({...FZe,props:LZe,setup(e){const t=e,n=jt("result"),r=ee(()=>{const o=t.icon,i=o&&Sg[o]?Sg[o]:"icon-info",a=cee[i]||cee["icon-info"];return{class:i,component:a}});return(o,i)=>(F(),K("div",{class:oe(C(n).b())},[x("div",{class:oe(C(n).e("icon"))},[pt(o.$slots,"icon",{},()=>[C(r).component?(F(),mt(hr(C(r).component),{key:0,class:oe(C(r).class)},null,8,["class"])):xe("v-if",!0)])],2),o.title||o.$slots.title?(F(),K("div",{key:0,class:oe(C(n).e("title"))},[pt(o.$slots,"title",{},()=>[x("p",null,ze(o.title),1)])],2)):xe("v-if",!0),o.subTitle||o.$slots["sub-title"]?(F(),K("div",{key:1,class:oe(C(n).e("subtitle"))},[pt(o.$slots,"sub-title",{},()=>[x("p",null,ze(o.subTitle),1)])],2)):xe("v-if",!0),o.$slots.extra?(F(),K("div",{key:2,class:oe(C(n).e("extra"))},[pt(o.$slots,"extra")],2)):xe("v-if",!0)],2))}});var zZe=en(UZe,[["__file","result.vue"]]);const $Ze=er(zZe),jZe=["start","center","end","space-around","space-between","space-evenly"],HZe=["top","middle","bottom"],WZe=Yt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:jZe,default:"start"},align:{type:String,values:HZe}}),VZe=et({name:"ElRow"}),qZe=et({...VZe,props:WZe,setup(e){const t=e,n=jt("row"),r=ee(()=>t.gutter);Sr(pye,{gutter:r});const o=ee(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=ee(()=>[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:oe(C(i)),style:Jt(C(o))},{default:nt(()=>[pt(a.$slots,"default")]),_:3},8,["class","style"]))}});var GZe=en(qZe,[["__file","row.vue"]]);const KZe=er(GZe),YZe=et({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:jt("select")}}});function QZe(e,t,n,r,o,i){return F(),K("div",{class:oe(e.ns.be("group","title")),style:Jt({...e.style,lineHeight:`${e.height}px`})},ze(e.item.label),7)}var ZZe=en(YZe,[["render",QZe],["__file","group-item.vue"]]);function XZe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const JZe=Yt({allowCreate:Boolean,autocomplete:{type:lt(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:vo,default:Qd},effect:{type:lt(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:lt(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:lt([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:lt(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:lt(Array),required:!0},placeholder:{type:String},teleported:oi.teleported,persistent:{type:Boolean,default:!0},popperClass:oi.popperClass,popperStyle:oi.popperStyle,popperOptions:{type:lt(Object),default:()=>({})},remote:Boolean,size:ba,props:{type:lt(Object),default:()=>hW},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:lt(String),values:mp,default:"bottom-start"},fallbackPlacements:{type:lt(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},...rm,...Es(["ariaLabel"])}),eXe=Yt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:lt(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),tXe={[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},nXe={hover:e=>Ln(e),select:(e,t)=>!0},bW=Symbol("ElSelectV2Injection"),rXe=et({props:eXe,emits:nXe,setup(e,{emit:t}){const n=un(bW),r=jt("select"),{hoverItem:o,selectOptionClick:i}=XZe(e,{emit:t}),{getLabel:a}=FC(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function oXe(e,t,n,r,o,i){return F(),K("li",{"aria-selected":e.selected,style:Jt(e.style),class:oe([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"])},[pt(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[x("span",null,ze(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var iXe=en(rXe,[["render",oXe],["__file","option-item.vue"]]),dee=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function aXe(e,t){return!!(e===t||dee(e)&&dee(t))}function sXe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!aXe(e[n],t[n]))return!1;return!0}function lXe(e,t){t===void 0&&(t=sXe);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 mbe=()=>{const t=vr().proxy.$props;return ee(()=>{const n=(r,o,i)=>({});return t.perfMode?X_(n):lXe(n)})},$L=50,_E="itemRendered",DE="scroll",L1="forward",IE="backward",Ru="auto",hD="smart",eA="start",wd="center",tA="end",Ly="horizontal",wW="vertical",uXe="ltr",ey="rtl",nA="negative",AW="positive-ascending",CW="positive-descending",cXe={[Ly]:"left",[wW]:"top"},dXe=20,fXe={[Ly]:"deltaX",[wW]:"deltaY"},pXe=({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=>{_v(o);const u=l[fXe[n.value]];a(i)&&a(i+u)||(i+=u,kH()||l.preventDefault(),o=r0(()=>{r(i),i=0}))}}},jL=Gc({type:lt([Number,Function]),required:!0}),HL=Gc({type:Number}),WL=Gc({type:Number,default:2}),hXe=Gc({type:String,values:["ltr","rtl"],default:"ltr"}),VL=Gc({type:Number,default:0}),OE=Gc({type:Number,required:!0}),ybe=Gc({type:String,values:["horizontal","vertical"],default:wW}),bbe=Yt({className:{type:String,default:""},containerElement:{type:lt([String,Object]),default:"div"},data:{type:lt(Array),default:()=>fi([])},direction:hXe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:lt([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),wbe=Yt({cache:WL,estimatedItemSize:HL,layout:ybe,initScrollOffset:VL,total:OE,itemSize:jL,...bbe}),qL={type:Number,default:6},Abe={type:Number,default:0},Cbe={type:Number,default:2},Kg=Yt({columnCache:WL,columnWidth:jL,estimatedColumnWidth:HL,estimatedRowHeight:HL,initScrollLeft:VL,initScrollTop:VL,itemKey:{type:lt(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:WL,rowHeight:jL,totalColumn:OE,totalRow:OE,hScrollbarSize:qL,vScrollbarSize:qL,scrollbarStartGap:Abe,scrollbarEndGap:Cbe,role:String,...bbe}),xbe=Yt({alwaysOn:Boolean,class:String,layout:ybe,total:OE,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:qL,startGap:Abe,endGap:Cbe,visible:Boolean}),Bg=(e,t)=>e<t?L1:IE,rA=e=>e===uXe||e===ey||e===Ly,fee=e=>e===ey;let Nm=null;function ME(e=!1){if(Nm===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?Nm=CW:(t.scrollLeft=1,t.scrollLeft===0?Nm=nA:Nm=AW),document.body.removeChild(t),Nm}return Nm}function gXe({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 GL=et({name:"ElVirtualScrollBar",props:xbe,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=ee(()=>e.startGap+e.endGap),r=jt("virtual-scrollbar"),o=jt("scrollbar"),i=Y(),a=Y();let s=null,l=null;const u=Ur({isDragging:!1,traveled:0}),d=ee(()=>f1e[e.layout]),c=ee(()=>e.clientSize-C(n)),f=ee(()=>({position:"absolute",width:`${Ly===e.layout?c.value:e.scrollbarSize}px`,height:`${Ly===e.layout?e.scrollbarSize:c.value}px`,[cXe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=ee(()=>{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,dXe),k))}),v=ee(()=>{if(!Number.isFinite(p.value))return{display:"none"};const S=`${p.value}px`;return gXe({bar:d.value,size:S,move:u.traveled},e.layout)}),h=ee(()=>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 O=u[d.value.axis];if(!O)return;_v(s);const I=(i.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,P=a.value[d.value.offset]-O,M=I-P;s=r0(()=>{u.traveled=Math.max(0,Math.min(M,h.value)),t("scroll",M,h.value)})},A=S=>{const k=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),O=a.value[d.value.offset]/2,I=k-O;u.traveled=Math.max(0,Math.min(I,h.value)),t("scroll",I,h.value)};return Ct(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*h.value))}),Yr(()=>{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},[]))}}),Sbe=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>et({name:e??"ElVirtualList",props:wbe,emits:[_E,DE],setup(d,{emit:c,expose:f}){u(d);const p=vr(),v=jt("vl"),h=Y(s(d,p)),g=mbe(),y=Y(),m=Y(),b=Y(),w=Y({isScrolling:!1,scrollDir:"forward",scrollOffset:Ln(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),A=ee(()=>{const{total:W,cache:re}=d,{isScrolling:J,scrollDir:te,scrollOffset:X}=C(w);if(W===0)return[0,0,0,0];const ue=i(d,X,C(h)),me=a(d,ue,X,C(h)),Me=!J||te===IE?Math.max(1,re):1,Ae=!J||te===L1?Math.max(1,re):1;return[Math.max(0,ue-Me),Math.max(0,Math.min(W-1,me+Ae)),ue,me]}),S=ee(()=>o(d,C(h))),k=ee(()=>rA(d.layout)),O=ee(()=>[{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]),I=ee(()=>{const W=C(S),re=C(k);return{height:re?"100%":`${W}px`,pointerEvents:C(w).isScrolling?"none":void 0,width:re?`${W}px`:"100%"}}),P=ee(()=>k.value?d.width:d.height),{onWheel:M}=pXe({atStartEdge:ee(()=>w.value.scrollOffset<=0),atEndEdge:ee(()=>w.value.scrollOffset>=S.value),layout:ee(()=>d.layout)},W=>{var re,J;(J=(re=b.value).onMouseUp)==null||J.call(re),j(Math.min(w.value.scrollOffset+W,S.value-P.value))});Mo(y,"wheel",M,{passive:!1});const _=()=>{const{total:W}=d;if(W>0){const[X,ue,me,Me]=C(A);c(_E,X,ue,me,Me)}const{scrollDir:re,scrollOffset:J,updateRequested:te}=C(w);c(DE,re,J,te)},R=W=>{const{clientHeight:re,scrollHeight:J,scrollTop:te}=W.currentTarget,X=C(w);if(X.scrollOffset===te)return;const ue=Math.max(0,Math.min(te,J-re));w.value={...X,isScrolling:!0,scrollDir:Bg(X.scrollOffset,ue),scrollOffset:ue,updateRequested:!1},Vt(Z)},N=W=>{const{clientWidth:re,scrollLeft:J,scrollWidth:te}=W.currentTarget,X=C(w);if(X.scrollOffset===J)return;const{direction:ue}=d;let me=J;if(ue===ey)switch(ME()){case nA:{me=-J;break}case CW:{me=te-re-J;break}}me=Math.max(0,Math.min(me,te-re)),w.value={...X,isScrolling:!0,scrollDir:Bg(X.scrollOffset,me),scrollOffset:me,updateRequested:!1},Vt(Z)},V=W=>{C(k)?N(W):R(W),_()},L=(W,re)=>{const J=(S.value-P.value)/re*W;j(Math.min(S.value-P.value,J))},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,re=Ru)=>{const{scrollOffset:J}=C(w);W=Math.max(0,Math.min(W,d.total-1)),j(t(d,W,re,J,C(h)))},G=W=>{const{direction:re,itemSize:J,layout:te}=d,X=g.value(l&&J,l&&te,l&&re);let ue;if(Zr(X,String(W)))ue=X[W];else{const me=r(d,W,C(h)),Me=n(d,W,C(h)),Ae=C(k),ge=re===ey,_e=Ae?me:0;X[W]=ue={position:"absolute",left:ge?void 0:`${_e}px`,right:ge?`${_e}px`:void 0,top:Ae?0:`${me}px`,height:Ae?"100%":`${Me}px`,width:Ae?`${Me}px`:"100%"}}return ue},Z=()=>{w.value.isScrolling=!1,Vt(()=>{g.value(-1,null,null)})},z=()=>{const W=y.value;W&&(W.scrollTop=0)};jn(()=>{if(!Kr)return;const{initScrollOffset:W}=d,re=C(y);Ln(W)&&re&&(C(k)?re.scrollLeft=W:re.scrollTop=W),_()}),Wc(()=>{const{direction:W,layout:re}=d,{scrollOffset:J,updateRequested:te}=C(w),X=C(y);if(te&&X)if(re===Ly)if(W===ey)switch(ME()){case nA:{X.scrollLeft=-J;break}case AW:{X.scrollLeft=J;break}default:{const{clientWidth:ue,scrollWidth:me}=X;X.scrollLeft=me-ue-J;break}}else X.scrollLeft=J;else X.scrollTop=J}),Sb(()=>{C(y).scrollTop=C(w).scrollOffset});const U={ns:v,clientSize:P,estimatedTotalSize:S,windowStyle:O,windowRef:y,innerRef:m,innerStyle:I,itemsToRender:A,scrollbarRef:b,states:w,getItemStyle:G,onScroll:V,onScrollbarScroll:L,onWheel:M,scrollTo:j,scrollToItem:H,resetScrollTop:z};return f({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:j,scrollToItem:H,resetScrollTop:z,states:w}),U},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:O,states:I,useIsScrolling:P,windowStyle:M,ns:_}=d,[R,N]=b,V=hr(h),L=hr(m),j=[];if(S>0)for(let z=R;z<=N;z++)j.push(Fn(Nt,{key:z},(c=f.default)==null?void 0:c.call(f,{data:g,index:z,isScrolling:P?I.isScrolling:void 0,style:y(z)})));const H=[Fn(L,{style:w,ref:"innerRef"},Dn(L)?j:{default:()=>j})],G=Fn(GL,{ref:"scrollbarRef",clientSize:v,layout:A,onScroll:O,ratio:v*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-v),total:S,alwaysOn:I.scrollbarAlwaysOn}),Z=Fn(V,{class:[_.e("window"),p],style:M,onScroll:k,ref:"windowRef",key:0},Dn(V)?[H]:{default:()=>[H]});return Fn("div",{key:0,class:[_.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[Z,G])}}),Ebe=Sbe({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=rA(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===hD&&(s>=c-l&&s<=d+l?a=Ru:a=wd),a){case eA:return d;case tA: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=rA(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(){}}),F1=(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]},vXe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?kbe(e,t,0,o,n):mXe(e,t,Math.max(0,o),n)},kbe=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=F1(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)},mXe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&F1(e,n,t).offset<r;)n+=i,i*=2;return kbe(e,t,Math.floor(n/2),Math.min(n,o-1),r)},pee=({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},yXe=Sbe({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>F1(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:pee,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=rA(a)?s:i,u=F1(e,t,o),d=pee(e,o),c=Math.max(0,Math.min(d-l,u.offset)),f=Math.max(0,u.offset-l+u.size);switch(n===hD&&(r>=f-l&&r<=c+l?n=Ru:n=wd),n){case eA:return c;case tA: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)=>vXe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=rA(a)?s:o,u=F1(e,t,r),d=n+l;let c=u.offset+u.size,f=t;for(;f<i-1&&c<d;)f++,c+=F1(e,f,r).size;return f},initCache({estimatedItemSize:e=$L},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})=>{}}),bXe={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var wXe=et({name:"ElSelectDropdown",props:bXe,setup(e,{slots:t,expose:n}){const r=un(bW),o=jt("select"),{getLabel:i,getValue:a,getDisabled:s}=FC(r.props),l=Y([]),u=Y(),d=ee(()=>e.data.length);Ct(()=>d.value,()=>{var M,_;(_=(M=r.tooltipRef.value)==null?void 0:M.updatePopper)==null||_.call(M)});const c=ee(()=>zr(r.props.estimatedOptionHeight)),f=ee(()=>c.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:M=>l.value[M]}),p=(M=[],_)=>{const{props:{valueKey:R}}=r;return ar(_)?M&&M.some(N=>Oo(Yi(N,R))===Yi(_,R)):M.includes(_)},v=(M,_)=>{if(ar(_)){const{valueKey:R}=r.props;return Yi(M,R)===Yi(_,R)}else return M===_},h=(M,_)=>r.props.multiple?p(M,a(_)):v(M,a(_)),g=(M,_)=>{const{disabled:R,multiple:N,multipleLimit:V}=r.props;return R||!_&&(N?V>0&&M.length>=V:!1)},y=M=>e.hoveringIndex===M;n({listRef:u,isSized:c,isItemDisabled:g,isItemHovering:y,isItemSelected:h,scrollToItem:M=>{const _=u.value;_&&_.scrollToItem(M)},resetScrollTop:()=>{const M=u.value;M&&M.resetScrollTop()}});const A=M=>{const{index:_,data:R,style:N}=M,V=C(c),{itemSize:L,estimatedSize:j}=C(f),{modelValue:H}=r.props,{onSelect:G,onHover:Z}=r,z=R[_];if(z.type==="Group")return $e(ZZe,{item:z,style:N,height:V?L:j},null);const U=h(H,z),W=g(H,U),re=y(_);return $e(iXe,pr(M,{selected:U,disabled:s(z)||W,created:!!z.created,hovering:re,item:z,onSelect:G,onHover:Z}),{default:J=>{var te;return((te=t.default)==null?void 0:te.call(t,J))||$e("span",null,[i(z)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=r,O=()=>{S("forward")},I=()=>{S("backward")},P=M=>{const{code:_}=M,{tab:R,esc:N,down:V,up:L,enter:j,numpadEnter:H}=gn;switch([N,V,L,j,H].includes(_)&&(M.preventDefault(),M.stopPropagation()),_){case R:case N:break;case V:O();break;case L:I();break;case j:case H:k();break}};return()=>{var M,_,R,N;const{data:V,width:L}=e,{height:j,multiple:H,scrollbarAlwaysOn:G}=r.props,Z=ee(()=>yE?!0:G),z=C(c)?Ebe:yXe;return $e("div",{class:[o.b("dropdown"),o.is("multiple",H)],style:{width:`${L}px`}},[(M=t.header)==null?void 0:M.call(t),((_=t.loading)==null?void 0:_.call(t))||((R=t.empty)==null?void 0:R.call(t))||$e(z,pr({ref:u},C(f),{className:o.be("dropdown","list"),scrollbarAlwaysOn:Z.value,data:V,height:j,width:L,total:V.length,onKeydown:P}),{default:U=>$e(A,U,null)}),(N=t.footer)==null?void 0:N.call(t)])}}});function AXe(e,t){const{aliasProps:n,getLabel:r,getValue:o}=FC(e),i=Y(0),a=Y(),s=ee(()=>e.allowCreate&&e.filterable);Ct(()=>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 CXe=(e,t)=>{const{t:n}=Hr(),r=jt("select"),o=jt("input"),{form:i,formItem:a}=ks(),{inputId:s}=ac(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:c,getOptions:f}=FC(e),{valueOnClear:p,isEmptyValue:v}=IC(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=Y(-1),y=Y(),m=Y(),b=Y(),w=Y(),A=Y(),S=Y(),k=Y(),O=Y(),I=Y(),P=Y(),{isComposing:M,handleCompositionStart:_,handleCompositionEnd:R,handleCompositionUpdate:N}=PC({afterComposition:bt=>Mn(bt)}),V=ee(()=>e.disabled||!!i?.disabled),{wrapperRef:L,isFocused:j,handleBlur:H}=vp(A,{disabled:V,afterFocus(){e.automaticDropdown&&!U.value&&(U.value=!0,h.menuVisibleOnFocus=!0)},beforeBlur(bt){var Kt,bn;return((Kt=b.value)==null?void 0:Kt.isFocusInsideContent(bt))||((bn=w.value)==null?void 0:bn.isFocusInsideContent(bt))},afterBlur(){var bt;U.value=!1,h.menuVisibleOnFocus=!1,e.validateEvent&&((bt=a?.validate)==null||bt.call(a,"blur").catch(Kt=>void 0))}}),G=ee(()=>be("")),Z=ee(()=>e.loading?!1:e.options.length>0||h.createdOptions.length>0),z=Y([]),U=Y(!1),W=ee(()=>{var bt;return(bt=i?.statusIcon)!=null?bt:!1}),re=ee(()=>{const bt=z.value.length*e.itemHeight;return bt>e.height?e.height:bt}),J=ee(()=>e.multiple?qt(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),te=ee(()=>e.clearable&&!V.value&&J.value&&(j.value||h.inputHovering)),X=ee(()=>e.remote&&e.filterable?"":e.suffixIcon),ue=ee(()=>X.value&&r.is("reverse",U.value)),me=ee(()=>a?.validateState||""),Me=ee(()=>{if(me.value)return rD[me.value]}),Ae=ee(()=>e.remote?300:0),ge=ee(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!h.inputValue&&!Z.value?!1:e.filterable&&h.inputValue&&Z.value&&z.value.length===0?e.noMatchText||n("el.select.noMatch"):Z.value?null:e.noDataText||n("el.select.noData")),_e=ee(()=>e.filterable&&Pn(e.filterMethod)),Q=ee(()=>e.filterable&&e.remote&&Pn(e.remoteMethod)),be=bt=>{const Kt=new RegExp(gW(bt),"i"),bn=Rn=>_e.value||Q.value?!0:bt?Kt.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(bn);ho.length>0&&Rn.push({label:u(Kn),type:"Group"},...ho)}else(e.remote||bn(Kn))&&Rn.push(Kn);return Rn},[])},De=()=>{z.value=be(h.inputValue)},pe=ee(()=>{const bt=new Map;return G.value.forEach((Kt,bn)=>{bt.set(ot(d(Kt)),{option:Kt,index:bn})}),bt}),ie=ee(()=>{const bt=new Map;return z.value.forEach((Kt,bn)=>{bt.set(ot(d(Kt)),{option:Kt,index:bn})}),bt}),ce=ee(()=>z.value.every(bt=>c(bt))),Re=fa(),Ee=ee(()=>Re.value==="small"?"small":"default"),Le=()=>{var bt;if(Ln(e.fitInputWidth)){g.value=e.fitInputWidth;return}const Kt=((bt=y.value)==null?void 0:bt.offsetWidth)||200;!e.fitInputWidth&&Z.value?Vt(()=>{g.value=Math.max(Kt,Fe())}):g.value=Kt},Fe=()=>{var bt,Kt;const Rn=document.createElement("canvas").getContext("2d"),Kn=r.be("dropdown","item"),ho=(((Kt=(bt=O.value)==null?void 0:bt.listRef)==null?void 0:Kt.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`),"")}`,z.value.reduce((br,Vr)=>{const wo=Rn.measureText(u(Vr));return Math.max(wo.width,br)},0)+bo},Pe=()=>{if(!m.value)return 0;const bt=window.getComputedStyle(m.value);return Number.parseFloat(bt.gap||"6px")},Ne=ee(()=>{const bt=Pe(),Kt=e.filterable?bt+cW:0;return{maxWidth:`${P.value&&e.maxCollapseTags===1?h.selectionWidth-h.collapseItemWidth-bt-Kt:h.selectionWidth-Kt}px`}}),ht=ee(()=>({maxWidth:`${h.selectionWidth}px`})),Rt=ee(()=>qt(e.modelValue)?e.modelValue.length===0&&!h.inputValue:e.filterable?!h.inputValue:!0),Lt=ee(()=>{var bt;const Kt=(bt=e.placeholder)!=null?bt:n("el.select.placeholder");return e.multiple||!J.value?Kt:h.selectedLabel}),tn=ee(()=>{var bt,Kt;return(Kt=(bt=b.value)==null?void 0:bt.popperRef)==null?void 0:Kt.contentRef}),Wt=ee(()=>{if(e.multiple){const bt=e.modelValue.length;if(e.modelValue.length>0&&ie.value.has(e.modelValue[bt-1])){const{index:Kt}=ie.value.get(e.modelValue[bt-1]);return Kt}}else if(!v(e.modelValue)&&ie.value.has(e.modelValue)){const{index:bt}=ie.value.get(e.modelValue);return bt}return-1}),zt=ee({get(){return U.value&&ge.value!==!1},set(bt){U.value=bt}}),dt=ee(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(0,e.maxCollapseTags):h.cachedOptions:[]),_t=ee(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ut,removeNewOption:rt,selectNewOption:he,clearAllNewOption:Je}=AXe(e,h),ct=()=>{V.value||(h.menuVisibleOnFocus?h.menuVisibleOnFocus=!1:U.value=!U.value)},Ot=()=>{h.inputValue.length>0&&!U.value&&(U.value=!0),ut(h.inputValue),Vt(()=>{In(h.inputValue)})},Tn=Fl(Ot,Ae.value),In=bt=>{h.previousQuery===bt||M.value||(h.previousQuery=bt,e.filterable&&Pn(e.filterMethod)?e.filterMethod(bt):e.filterable&&e.remote&&Pn(e.remoteMethod)&&e.remoteMethod(bt),e.defaultFirstOption&&(e.filterable||e.remote)&&z.value.length?Vt(je):Vt(mn))},je=()=>{const bt=z.value.filter(Rn=>!Rn.disabled&&Rn.type!=="Group"),Kt=bt.find(Rn=>Rn.created),bn=bt[0];h.hoveringIndex=Be(z.value,Kt||bn)},ke=bt=>{ca(e.modelValue,bt)||t(Tr,bt)},ye=bt=>{t(Gn,bt),ke(bt),h.previousValue=e.multiple?String(bt):bt,Vt(()=>{if(e.multiple&&qt(e.modelValue)){const Kt=h.cachedOptions.slice(),bn=e.modelValue.map(Rn=>yt(Rn,Kt));ca(h.cachedOptions,bn)||(h.cachedOptions=bn)}else Zt(!0)})},Be=(bt=[],Kt)=>{if(!ar(Kt))return bt.indexOf(Kt);const bn=e.valueKey;let Rn=-1;return bt.some((Kn,Fr)=>Yi(Kn,bn)===Yi(Kt,bn)?(Rn=Fr,!0):!1),Rn},ot=bt=>ar(bt)?Yi(bt,e.valueKey):bt,gt=()=>{Le()},Ke=()=>{h.selectionWidth=Number.parseFloat(window.getComputedStyle(m.value).width)},He=()=>{h.collapseItemWidth=P.value.getBoundingClientRect().width},at=()=>{var bt,Kt;(Kt=(bt=b.value)==null?void 0:bt.updatePopper)==null||Kt.call(bt)},St=()=>{var bt,Kt;(Kt=(bt=w.value)==null?void 0:bt.updatePopper)==null||Kt.call(bt)},tt=bt=>{if(e.multiple){let Kt=e.modelValue.slice();const bn=Be(Kt,d(bt));bn>-1?(Kt=[...Kt.slice(0,bn),...Kt.slice(bn+1)],h.cachedOptions.splice(bn,1),rt(bt)):(e.multipleLimit<=0||Kt.length<e.multipleLimit)&&(Kt=[...Kt,d(bt)],h.cachedOptions.push(bt),he(bt)),ye(Kt),bt.created&&In(""),e.filterable&&!e.reserveKeyword&&(h.inputValue="")}else h.selectedLabel=u(bt),ye(d(bt)),U.value=!1,he(bt),bt.created||Je();it()},Qe=(bt,Kt)=>{let bn=e.modelValue.slice();const Rn=Be(bn,d(Kt));Rn>-1&&!V.value&&(bn=[...e.modelValue.slice(0,Rn),...e.modelValue.slice(Rn+1)],h.cachedOptions.splice(Rn,1),ye(bn),t("remove-tag",d(Kt)),rt(Kt)),bt.stopPropagation(),it()},it=()=>{var bt;(bt=A.value)==null||bt.focus()},Mt=()=>{var bt;if(U.value){U.value=!1,Vt(()=>{var Kt;return(Kt=A.value)==null?void 0:Kt.blur()});return}(bt=A.value)==null||bt.blur()},Gt=()=>{h.inputValue.length>0?h.inputValue="":U.value=!1},En=bt=>Ome(bt,Kt=>!h.cachedOptions.some(bn=>d(bn)===Kt&&c(bn))),Nn=bt=>{if(e.multiple&&bt.code!==gn.delete&&h.inputValue.length===0){bt.preventDefault();const Kt=e.modelValue.slice(),bn=En(Kt);if(bn<0)return;const Rn=Kt[bn];Kt.splice(bn,1);const Kn=h.cachedOptions[bn];h.cachedOptions.splice(bn,1),rt(Kn),ye(Kt),t("remove-tag",Rn)}},xt=()=>{let bt;qt(e.modelValue)?bt=[]:bt=p.value,h.selectedLabel="",U.value=!1,ye(bt),t("clear"),Je(),it()},sn=(bt,Kt=void 0)=>{const bn=z.value;if(!["forward","backward"].includes(bt)||V.value||bn.length<=0||ce.value||M.value)return;if(!U.value)return ct();zr(Kt)&&(Kt=h.hoveringIndex);let Rn=-1;bt==="forward"?(Rn=Kt+1,Rn>=bn.length&&(Rn=0)):bt==="backward"&&(Rn=Kt-1,(Rn<0||Rn>=bn.length)&&(Rn=bn.length-1));const Kn=bn[Rn];if(c(Kn)||Kn.type==="Group")return sn(bt,Rn);h.hoveringIndex=Rn,qe(Rn)},vt=()=>{if(U.value)~h.hoveringIndex&&z.value[h.hoveringIndex]&&tt(z.value[h.hoveringIndex]);else return ct()},Bt=bt=>{h.hoveringIndex=bt??-1},mn=()=>{e.multiple?h.hoveringIndex=z.value.findIndex(bt=>e.modelValue.some(Kt=>ot(Kt)===ot(d(bt)))):h.hoveringIndex=z.value.findIndex(bt=>ot(d(bt))===ot(e.modelValue))},Mn=bt=>{if(h.inputValue=bt.target.value,e.remote)Tn();else return Ot()},tr=bt=>{if(U.value=!1,j.value){const Kt=new FocusEvent("blur",bt);H(Kt)}},cn=()=>(h.isBeforeHide=!1,Vt(()=>{~Wt.value&&qe(h.hoveringIndex)})),qe=bt=>{O.value.scrollToItem(bt)},yt=(bt,Kt)=>{const bn=ot(bt);if(pe.value.has(bn)){const{option:Rn}=pe.value.get(bn);return Rn}if(Kt&&Kt.length){const Rn=Kt.find(Kn=>ot(d(Kn))===bn);if(Rn)return Rn}return{[l.value.value]:bt,[l.value.label]:bt}},Zt=(bt=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Kt=h.cachedOptions.slice();h.cachedOptions.length=0,h.previousValue=e.modelValue.toString();for(const bn of e.modelValue){const Rn=yt(bn,Kt);h.cachedOptions.push(Rn)}}else h.cachedOptions=[],h.previousValue=void 0;else if(J.value){h.previousValue=e.modelValue;const Kt=z.value,bn=Kt.findIndex(Rn=>ot(d(Rn))===ot(e.modelValue));~bn?h.selectedLabel=u(Kt[bn]):(!h.selectedLabel||bt)&&(h.selectedLabel=ot(e.modelValue))}else h.selectedLabel="",h.previousValue=void 0;Je(),Le()};return Ct(()=>e.fitInputWidth,()=>{Le()}),Ct(U,bt=>{bt?(e.persistent||Le(),In("")):(h.inputValue="",h.previousQuery=null,h.isBeforeHide=!0,ut("")),t("visible-change",bt)}),Ct(()=>e.modelValue,(bt,Kt)=>{var bn;(!bt||qt(bt)&&bt.length===0||e.multiple&&!ca(bt.toString(),h.previousValue)||!e.multiple&&ot(bt)!==ot(h.previousValue))&&Zt(!0),!ca(bt,Kt)&&e.validateEvent&&((bn=a?.validate)==null||bn.call(a,"change").catch(Kn=>void 0))},{deep:!0}),Ct(()=>e.options,()=>{const bt=A.value;(!bt||bt&&document.activeElement!==bt)&&Zt()},{deep:!0,flush:"post"}),Ct(()=>z.value,()=>(Le(),O.value&&Vt(O.value.resetScrollTop))),Cs(()=>{h.isBeforeHide||De()}),Cs(()=>{const{valueKey:bt,options:Kt}=e,bn=new Map;for(const Rn of Kt){const Kn=d(Rn);let Fr=Kn;if(ar(Fr)&&(Fr=Yi(Kn,bt)),bn.get(Fr))break;bn.set(Fr,!0)}}),jn(()=>{Zt()}),li(y,gt),li(m,Ke),li(O,at),li(L,at),li(I,St),li(P,He),{inputId:s,collapseTagSize:Ee,currentPlaceholder:Lt,expanded:U,emptyText:ge,popupHeight:re,debounce:Ae,allOptions:G,filteredOptions:z,iconComponent:X,iconReverse:ue,tagStyle:Ne,collapseTagStyle:ht,popperSize:g,dropdownMenuVisible:zt,hasModelValue:J,shouldShowPlaceholder:Rt,selectDisabled:V,selectSize:Re,needStatusIcon:W,showClearBtn:te,states:h,isFocused:j,nsSelect:r,nsInput:o,inputRef:A,menuRef:O,tagMenuRef:I,tooltipRef:b,tagTooltipRef:w,selectRef:y,wrapperRef:L,selectionRef:m,prefixRef:S,suffixRef:k,collapseItemRef:P,popperRef:tn,validateState:me,validateIcon:Me,showTagList:dt,collapseTagList:_t,debouncedOnInputChange:Tn,deleteTag:Qe,getLabel:u,getValue:d,getDisabled:c,getValueKey:ot,handleClear:xt,handleClickOutside:tr,handleDel:Nn,handleEsc:Gt,focus:it,blur:Mt,handleMenuEnter:cn,handleResize:gt,resetSelectionWidth:Ke,updateTooltip:at,updateTagTooltip:St,updateOptions:De,toggleMenu:ct,scrollTo:qe,onInput:Mn,onKeyboardNavigate:sn,onKeyboardSelect:vt,onSelect:tt,onHover:Bt,handleCompositionStart:_,handleCompositionEnd:R,handleCompositionUpdate:N}},xXe=et({name:"ElSelectV2",components:{ElSelectMenu:wXe,ElTag:Ih,ElTooltip:fs,ElIcon:_n},directives:{ClickOutside:Zf},props:JZe,emits:tXe,setup(e,{emit:t}){const n=ee(()=>{const{modelValue:s,multiple:l}=e,u=l?[]:void 0;return qt(s)?l?s:u:l?u:s}),r=CXe(Ur({..._a(e),modelValue:n}),t),{calculatorRef:o,inputStyle:i}=dW();Sr(bW,{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=ee(()=>e.multiple?r.states.cachedOptions.map(s=>s.label):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:a,calculatorRef:o,inputStyle:i}}});function SXe(e,t,n,r,o,i){const a=lr("el-tag"),s=lr("el-tooltip"),l=lr("el-icon"),u=lr("el-select-menu"),d=R_("click-outside");return an((F(),K("div",{ref:"selectRef",class:oe([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[$e(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:oe([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:oe(e.nsSelect.e("prefix"))},[pt(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:oe([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?pt(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(F(!0),K(Nt,null,on(e.showTagList,c=>(F(),K("div",{key:e.getValueKey(e.getValue(c)),class:oe(e.nsSelect.e("selected-item"))},[$e(a,{closable:!e.selectDisabled&&!e.getDisabled(c),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Jt(e.tagStyle),onClose:f=>e.deleteTag(f,c)},{default:nt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[pt(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[An(ze(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:oe(e.nsSelect.e("selected-item"))},[$e(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Jt(e.collapseTagStyle),"disable-transitions":""},{default:nt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))}," + "+ze(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:nt(()=>[x("div",{ref:"tagMenuRef",class:oe(e.nsSelect.e("selection"))},[(F(!0),K(Nt,null,on(e.collapseTagList,c=>(F(),K("div",{key:e.getValueKey(e.getValue(c)),class:oe(e.nsSelect.e("selected-item"))},[$e(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:oe(e.nsSelect.e("tags-text"))},[pt(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[An(ze(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:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[an(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":c=>e.states.inputValue=c,style:Jt(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:oe([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:oe(e.nsSelect.e("input-calculator")),textContent:ze(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(F(),K("div",{key:1,class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?pt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,ze(e.currentPlaceholder),1)]):(F(),K("span",{key:1},ze(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:oe(e.nsSelect.e("suffix"))},[e.iconComponent?an((F(),mt(l,{key:0,class:oe([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:oe([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:oe([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(()=>[$e(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Ll({default:nt(c=>[pt(e.$slots,"default",Sl(Bd(c)))]),_:2},[e.$slots.header?{name:"header",fn:nt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","header")),onClick:Qt(()=>{},["stop"])},[pt(e.$slots,"header")],10,["onClick"])])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:nt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","loading"))},[pt(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:nt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","empty"))},[pt(e.$slots,"empty",{},()=>[x("span",null,ze(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:nt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","footer")),onClick:Qt(()=>{},["stop"])},[pt(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 EXe=en(xXe,[["render",SXe],["__file","select.vue"]]);const kXe=er(EXe),TXe=Yt({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:lt([Number,Object])}}),_Xe=Yt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),DXe=et({name:"ElSkeletonItem"}),IXe=et({...DXe,props:_Xe,setup(e){const t=jt("skeleton");return(n,r)=>(F(),K("div",{class:oe([C(t).e("item"),C(t).e(n.variant)])},[n.variant==="image"?(F(),mt(C(wLe),{key:0})):xe("v-if",!0)],2))}});var PE=en(IXe,[["__file","skeleton-item.vue"]]);const OXe=(e,t=0)=>{if(t===0)return e;const n=ar(t)&&!!t.initVal,r=Y(n);let o=null;const i=s=>{if(zr(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")),Ct(()=>e.value,s=>{a(s?"leading":"trailing")}),r},MXe=et({name:"ElSkeleton"}),PXe=et({...MXe,props:TXe,setup(e,{expose:t}){const n=e,r=jt("skeleton"),o=OXe(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(Nt,null,on(i.count,s=>(F(),K(Nt,{key:s},[C(o)?pt(i.$slots,"template",{key:s},()=>[$e(PE,{class:oe(C(r).is("first")),variant:"p"},null,8,["class"]),(F(!0),K(Nt,null,on(i.rows,l=>(F(),mt(PE,{key:l,class:oe([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)):pt(i.$slots,"default",Sl(pr({key:1},i.$attrs)))}});var NXe=en(PXe,[["__file","skeleton.vue"]]);const RXe=er(NXe,{SkeletonItem:PE}),BXe=vi(PE),Tbe=Symbol("sliderContextKey"),LXe=Yt({modelValue:{type:lt([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:lt(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:lt(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:mp,default:"top"},marks:{type:lt(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Es(["ariaLabel"])}),TI=e=>Ln(e)||qt(e)&&e.every(Ln),FXe={[Gn]:TI,[ma]:TI,[Tr]:TI},UXe=Yt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:mp,default:"top"}}),zXe={[Gn]:e=>Ln(e)},$Xe=(e,t,n)=>{const r=Y(),o=Y(!1),i=ee(()=>t.value instanceof Function),a=ee(()=>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}},jXe=(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}=un(Tbe),{tooltip:h,tooltipVisible:g,formatValue:y,displayTooltip:m,hideTooltip:b}=$Xe(e,c,s),w=Y(),A=ee(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),S=ee(()=>e.vertical?{bottom:A.value}:{left:A.value}),k=()=>{t.hovering=!0,m()},O=()=>{t.hovering=!1,t.dragging||b()},I=W=>{r.value||(W.preventDefault(),G(W),window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),w.value.focus())},P=W=>{r.value||(t.newPosition=Number.parseFloat(A.value)+W/(i.value-o.value)*100,U(t.newPosition),f())},M=()=>{P(-a.value)},_=()=>{P(a.value)},R=()=>{P(-a.value*4)},N=()=>{P(a.value*4)},V=()=>{r.value||(U(0),f())},L=()=>{r.value||(U(100),f())},j=W=>{let re=!0;switch(W.code){case gn.left:case gn.down:M();break;case gn.right:case gn.up:_();break;case gn.home:V();break;case gn.end:L();break;case gn.pageDown:R();break;case gn.pageUp:N();break;default:re=!1;break}re&&W.preventDefault()},H=W=>{let re,J;return W.type.startsWith("touch")?(J=W.touches[0].clientY,re=W.touches[0].clientX):(J=W.clientY,re=W.clientX),{clientX:re,clientY:J}},G=W=>{t.dragging=!0,t.isClick=!0;const{clientX:re,clientY:J}=H(W);e.vertical?t.startY=J:t.startX=re,t.startPosition=Number.parseFloat(A.value),t.newPosition=t.startPosition},Z=W=>{if(t.dragging){t.isClick=!1,m(),p();let re;const{clientX:J,clientY:te}=H(W);e.vertical?(t.currentY=te,re=(t.startY-t.currentY)/d.value*100):(t.currentX=J,re=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+re,U(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||U(t.newPosition),f()},0),window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},U=async W=>{if(W===null||Number.isNaN(+W))return;W<0?W=0:W>100&&(W=100);const re=100/((i.value-o.value)/a.value);let te=Math.round(W/re)*re*(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 Ct(()=>t.dragging,W=>{v(W)}),Mo(w,"touchstart",I,{passive:!1}),{disabled:r,button:w,tooltip:h,tooltipVisible:g,showTooltip:s,persistent:l,wrapperStyle:S,formatValue:y,handleMouseEnter:k,handleMouseLeave:O,onButtonDown:I,onKeyDown:j,setPosition:U}},HXe=et({name:"ElSliderButton"}),WXe=et({...HXe,props:UXe,emits:zXe,setup(e,{expose:t,emit:n}){const r=e,o=jt("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=ee(()=>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}=jXe(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:oe([C(o).e("button-wrapper"),{hover:C(w),dragging:C(A)}]),style:Jt(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)},[$e(C(fs),{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,ze(C(v)),1)]),default:nt(()=>[x("div",{class:oe([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 hee=en(WXe,[["__file","button.vue"]]);const VXe=Yt({mark:{type:lt([String,Object]),default:void 0}});var qXe=et({name:"ElSliderMarker",props:VXe,setup(e){const t=jt("slider"),n=ee(()=>Dn(e.mark)?e.mark:e.mark.label),r=ee(()=>Dn(e.mark)?void 0:e.mark.style);return()=>Fn("div",{class:t.e("marks-text"),style:r.value},n.value)}});const GXe=(e,t,n)=>{const{form:r,formItem:o}=ks(),i=Uo(),a=Y(),s=Y(),l={firstButton:a,secondButton:s},u=ee(()=>e.disabled||r?.disabled||!1),d=ee(()=>Math.min(t.firstValue,t.secondValue)),c=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(c.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=ee(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),v=ee(()=>e.vertical?{height:e.height}:{}),h=ee(()=>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 R=e.min+_*(e.max-e.min)/100;if(!e.range)return a;let N;return Math.abs(d.value-R)<Math.abs(c.value-R)?N=t.firstValue<t.secondValue?"firstButton":"secondButton":N=t.firstValue>t.secondValue?"firstButton":"secondButton",l[N]},m=_=>{const R=y(_);return R.value.setPosition(_),R},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 R,N,V,L,j,H;if(u.value||t.dragging)return;g();let G=0;if(e.vertical){const Z=(V=(N=(R=_.touches)==null?void 0:R.item(0))==null?void 0:N.clientY)!=null?V:_.clientY;G=(i.value.getBoundingClientRect().bottom-Z)/t.sliderSize*100}else{const Z=(H=(j=(L=_.touches)==null?void 0:L.item(0))==null?void 0:j.clientX)!=null?H:_.clientX,z=i.value.getBoundingClientRect().left;G=(Z-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 R,N;((R=l.firstButton.value)!=null&&R.dragging||(N=l.secondButton.value)!=null&&N.dragging)&&_.preventDefault()},onSliderClick:_=>{k(_)&&S()},onSliderDown:async _=>{const R=k(_);R&&(await Vt(),R.value.onButtonDown(_))},onSliderMarkerDown:_=>{if(u.value||t.dragging)return;m(_)&&S()},setFirstValue:b,setSecondValue:w}},KXe=(e,t,n,r)=>({stops:ee(()=>{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}%`}}),YXe=e=>ee(()=>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]})):[]),QXe=(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&&Ji("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(),Ct(()=>t.dragging,u=>{u||l()}),Ct(()=>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}),Ct(()=>[e.min,e.max],()=>{l()})},ZXe=(e,t,n)=>{const r=Y();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}},XXe=et({name:"ElSlider"}),JXe=et({...XXe,props:LXe,emits:FXe,setup(e,{expose:t,emit:n}){const r=e,o=jt("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}=GXe(r,a,n),{stops:O,getStopStyle:I}=KXe(r,a,f,p),{inputId:P,isLabeledByFormItem:M}=ac(r,{formItemContext:s}),_=fa(),R=ee(()=>r.inputSize||_.value),N=ee(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),V=ee(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):N.value),L=ee(()=>r.formatValueText?r.formatValueText(W.value):`${W.value}`),j=ee(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),H=ee(()=>r.formatValueText?r.formatValueText(re.value):`${re.value}`),G=ee(()=>[o.b(),o.m(_.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),Z=YXe(r);QXe(r,a,f,p,n,s);const z=ee(()=>{const X=[r.min,r.max,r.step].map(ue=>{const me=`${ue}`.split(".")[1];return me?me.length:0});return Math.max.apply(null,X)}),{sliderWrapper:U}=ZXe(r,a,g),{firstValue:W,secondValue:re,sliderSize:J}=_a(a),te=X=>{a.dragging=X};return Mo(U,"touchstart",m,{passive:!1}),Mo(U,"touchmove",m,{passive:!1}),Sr(Tbe,{..._a(r),sliderSize:J,disabled:c,precision:z,emitChange:y,resetSize:g,updateDragging:te}),t({onSliderClick:b}),(X,ue)=>{var me,Me;return F(),K("div",{id:X.range?C(P):void 0,ref_key:"sliderWrapper",ref:U,class:oe(C(G)),role:X.range?"group":void 0,"aria-label":X.range&&!C(M)?C(N):void 0,"aria-labelledby":X.range&&C(M)?(me=C(s))==null?void 0:me.labelId:void 0},[x("div",{ref_key:"slider",ref:l,class:oe([C(o).e("runway"),{"show-input":X.showInput&&!X.range},C(o).is("disabled",C(c))]),style:Jt(C(v)),onMousedown:C(w),onTouchstartPassive:C(w)},[x("div",{class:oe(C(o).e("bar")),style:Jt(C(h))},null,6),$e(hee,{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(M)?C(V):void 0,"aria-labelledby":!X.range&&C(M)?(Me=C(s))==null?void 0:Me.labelId:void 0,"aria-valuemin":X.min,"aria-valuemax":X.range?C(re):X.max,"aria-valuenow":C(W),"aria-valuetext":C(L),"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(hee,{key:0,ref_key:"secondButton",ref:d,"model-value":C(re),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(re),"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(Nt,null,on(C(O),(Ae,ge)=>(F(),K("div",{key:ge,class:oe(C(o).e("stop")),style:Jt(C(I)(Ae))},null,6))),128))])):xe("v-if",!0),C(Z).length>0?(F(),K(Nt,{key:2},[x("div",null,[(F(!0),K(Nt,null,on(C(Z),(Ae,ge)=>(F(),K("div",{key:ge,style:Jt(C(I)(Ae.position)),class:oe([C(o).e("stop"),C(o).e("marks-stop")])},null,6))),128))]),x("div",{class:oe(C(o).e("marks"))},[(F(!0),K(Nt,null,on(C(Z),(Ae,ge)=>(F(),mt(C(qXe),{key:ge,mark:Ae.mark,style:Jt(C(I)(Ae.position)),onMousedown:Qt(_e=>C(A)(Ae.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):xe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),X.showInput&&!X.range?(F(),mt(C(lbe),{key:0,ref:"input","model-value":C(W),class:oe(C(o).e("input")),step:X.step,disabled:C(c),controls:X.showInputControls,min:X.min,max:X.max,precision:C(z),debounce:X.debounce,size:C(R),"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 eJe=en(JXe,[["__file","slider.vue"]]);const tJe=er(eJe),nJe=Yt({prefixCls:{type:String}}),gee=et({name:"ElSpaceItem",props:nJe,setup(e,{slots:t}){const n=jt("space"),r=ee(()=>`${e.prefixCls||n.b()}__item`);return()=>Fn("div",{class:r.value},pt(t,"default"))}}),vee={small:8,default:12,large:16};function rJe(e){const t=jt("space"),n=ee(()=>[t.b(),t.m(e.direction),e.class]),r=Y(0),o=Y(0),i=ee(()=>{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=ee(()=>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=vee[s||"small"]||vee.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 oJe=Yt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:lt([String,Object,Array]),default:""},style:{type:lt([String,Array,Object]),default:""},alignment:{type:lt(String),default:"center"},prefixCls:{type:String},spacer:{type:lt([Object,String,Number,Array]),default:null,validator:e=>jo(e)||Ln(e)||Dn(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Yd,validator:e=>Ln(e)||qt(e)&&e.length===2&&e.every(Ln)}}),iJe=et({name:"ElSpace",props:oJe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=rJe(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((d,c)=>{kL(d)?qt(d.children)&&d.children.forEach((f,p)=>{kL(f)&&qt(f.children)?i(f.children,`${s+p}-`,l):jo(f)&&f?.type===ua?l.push(f):l.push($e(gee,{style:o.value,prefixCls:u,key:`nested-${s+p}`},{default:()=>[f]},_u.PROPS|_u.STYLE,["style","prefixCls"]))}):mje(d)&&l.push($e(gee,{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=pt(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($e("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:v},[jo(s)?s:An(s,_u.TEXT)],_u.STYLE)),h},[])}return $e("div",{class:n.value,style:r.value},d,_u.STYLE|_u.CLASS)}return u.children}}}),aJe=er(iJe),sJe=Yt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:lt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:lt([String,Object,Array])}}),lJe=et({name:"ElStatistic"}),uJe=et({...lJe,props:sJe,setup(e,{expose:t}){const n=e,r=jt("statistic"),o=ee(()=>{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:oe(C(r).b())},[i.$slots.title||i.title?(F(),K("div",{key:0,class:oe(C(r).e("head"))},[pt(i.$slots,"title",{},()=>[An(ze(i.title),1)])],2)):xe("v-if",!0),x("div",{class:oe(C(r).e("content"))},[i.$slots.prefix||i.prefix?(F(),K("div",{key:0,class:oe(C(r).e("prefix"))},[pt(i.$slots,"prefix",{},()=>[x("span",null,ze(i.prefix),1)])],2)):xe("v-if",!0),x("span",{class:oe(C(r).e("number")),style:Jt(i.valueStyle)},ze(C(o)),7),i.$slots.suffix||i.suffix?(F(),K("div",{key:1,class:oe(C(r).e("suffix"))},[pt(i.$slots,"suffix",{},()=>[x("span",null,ze(i.suffix),1)])],2)):xe("v-if",!0)],2)],2))}});var cJe=en(uJe,[["__file","statistic.vue"]]);const _be=er(cJe),dJe=Yt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:lt([Number,Object]),default:0},valueStyle:{type:lt([String,Object,Array])}}),fJe={finish:()=>!0,[Tr]:e=>Ln(e)},pJe=[["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]],mee=e=>Ln(e)?new Date(e).getTime():e.valueOf(),yee=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return pJe.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")},hJe=et({name:"ElCountdown"}),gJe=et({...hJe,props:dJe,emits:fJe,setup(e,{expose:t,emit:n}){const r=e;let o;const i=Y(0),a=ee(()=>yee(i.value,r.format)),s=d=>yee(d,r.format),l=()=>{o&&(_v(o),o=void 0)},u=()=>{const d=mee(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=mee(r.value)-Date.now(),Ct(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),Yr(()=>{l()}),t({displayValue:a}),(d,c)=>(F(),mt(C(_be),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:s},Ll({_:2},[on(d.$slots,(f,p)=>({name:p,fn:nt(()=>[pt(d.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var vJe=en(gJe,[["__file","countdown.vue"]]);const mJe=er(vJe),yJe=Yt({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"}}),bJe={[Tr]:(e,t)=>[e,t].every(Ln)},Dbe="ElSteps",wJe=et({name:"ElSteps"}),AJe=et({...wJe,props:yJe,emits:bJe,setup(e,{emit:t}){const n=e,r=jt("steps"),{children:o,addChild:i,removeChild:a,ChildrenSorter:s}=lD(vr(),"ElStep");return Ct(o,()=>{o.value.forEach((l,u)=>{l.setIndex(u)})}),Sr(Dbe,{props:n,steps:o,addStep:i,removeStep:a}),Ct(()=>n.active,(l,u)=>{t(Tr,l,u)}),(l,u)=>(F(),K("div",{class:oe([C(r).b(),C(r).m(l.simple?"simple":l.direction)])},[pt(l.$slots,"default"),$e(C(s))],2))}});var CJe=en(AJe,[["__file","steps.vue"]]);const xJe=Yt({title:{type:String,default:""},icon:{type:vo},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),SJe=et({name:"ElStep"}),EJe=et({...SJe,props:xJe,setup(e){const t=e,n=jt("step"),r=Y(-1),o=Y({}),i=Y(""),a=un(Dbe),s=vr();jn(()=>{Ct([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([S])=>{w(S)},{immediate:!0})});const l=ee(()=>t.status||i.value),u=ee(()=>{const S=a.steps.value[r.value-1];return S?S.internalStatus.value:"wait"}),d=ee(()=>a.props.alignCenter),c=ee(()=>a.props.direction==="vertical"),f=ee(()=>a.props.simple),p=ee(()=>a.steps.value.length),v=ee(()=>{var S;return((S=a.steps.value[p.value-1])==null?void 0:S.uid)===s.uid}),h=ee(()=>f.value?"":a.props.space),g=ee(()=>[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=ee(()=>{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",O={transitionDelay:`${k?"-":""}${150*r.value}ms`},I=S===a.props.processStatus||k?0:100;O.borderWidth=I&&!f.value?"1px":0,O[a.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},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),Yr(()=>{a.removeStep(A)}),(S,k)=>(F(),K("div",{style:Jt(C(y)),class:oe(C(g))},[xe(" icon & line "),x("div",{class:oe([C(n).e("head"),C(n).is(C(l))])},[C(f)?xe("v-if",!0):(F(),K("div",{key:0,class:oe(C(n).e("line"))},[x("i",{class:oe(C(n).e("line-inner")),style:Jt(o.value)},null,6)],2)),x("div",{class:oe([C(n).e("icon"),C(n).is(S.icon||S.$slots.icon?"icon":"text")])},[pt(S.$slots,"icon",{},()=>[S.icon?(F(),mt(C(_n),{key:0,class:oe(C(n).e("icon-inner"))},{default:nt(()=>[(F(),mt(hr(S.icon)))]),_:1},8,["class"])):C(l)==="success"?(F(),mt(C(_n),{key:1,class:oe([C(n).e("icon-inner"),C(n).is("status")])},{default:nt(()=>[$e(C(OC))]),_:1},8,["class"])):C(l)==="error"?(F(),mt(C(_n),{key:2,class:oe([C(n).e("icon-inner"),C(n).is("status")])},{default:nt(()=>[$e(C(cu))]),_:1},8,["class"])):C(f)?xe("v-if",!0):(F(),K("div",{key:3,class:oe(C(n).e("icon-inner"))},ze(r.value+1),3))])],2)],2),xe(" title & description "),x("div",{class:oe(C(n).e("main"))},[x("div",{class:oe([C(n).e("title"),C(n).is(C(l))])},[pt(S.$slots,"title",{},()=>[An(ze(S.title),1)])],2),C(f)?(F(),K("div",{key:0,class:oe(C(n).e("arrow"))},null,2)):(F(),K("div",{key:1,class:oe([C(n).e("description"),C(n).is(C(l))])},[pt(S.$slots,"description",{},()=>[An(ze(S.description),1)])],2))],2)],6))}});var Ibe=en(EJe,[["__file","item.vue"]]);const kJe=er(CJe,{Step:Ibe}),TJe=vi(Ibe),Obe=e=>["",...Yd].includes(e),_Je=Yt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:Obe},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:lt(Function)},id:String,tabindex:{type:[String,Number]},...Es(["ariaLabel"])}),DJe={[Gn]:e=>Co(e)||Dn(e)||Ln(e),[Tr]:e=>Co(e)||Dn(e)||Ln(e),[ma]:e=>Co(e)||Dn(e)||Ln(e)},Mbe="ElSwitch",IJe=et({name:Mbe}),OJe=et({...IJe,props:_Je,emits:DJe,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=ks(),i=fa(),a=jt("switch"),{inputId:s}=ac(r,{formItemContext:o}),l=Wa(ee(()=>r.loading)),u=Y(r.modelValue!==!1),d=Y(),c=Y(),f=ee(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",y.value)]),p=ee(()=>[a.e("label"),a.em("label","left"),a.is("active",!y.value)]),v=ee(()=>[a.e("label"),a.em("label","right"),a.is("active",y.value)]),h=ee(()=>({width:_i(r.width)}));Ct(()=>r.modelValue,()=>{u.value=!0});const g=ee(()=>u.value?r.modelValue:!1),y=ee(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(Gn,r.inactiveValue),n(Tr,r.inactiveValue),n(ma,r.inactiveValue)),Ct(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)||Ji(Mbe,"beforeChange must return type `Promise<boolean>` or `boolean`"),Av(S)?S.then(O=>{O&&m()}).catch(O=>{}):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:oe(C(f)),onClick:Qt(b,["prevent"])},[x("input",{id:C(s),ref_key:"input",ref:d,class:oe(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:oe(C(p))},[A.inactiveIcon?(F(),mt(C(_n),{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)},ze(A.inactiveText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("span",{ref_key:"core",ref:c,class:oe(C(a).e("core")),style:Jt(C(h))},[A.inlinePrompt?(F(),K("div",{key:0,class:oe(C(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(F(),mt(C(_n),{key:0,class:oe(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:oe(C(a).is("text")),"aria-hidden":!C(y)},ze(C(y)?A.activeText:A.inactiveText),11,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("div",{class:oe(C(a).e("action"))},[A.loading?(F(),mt(C(_n),{key:0,class:oe(C(a).is("loading"))},{default:nt(()=>[$e(C(Bc))]),_:1},8,["class"])):C(y)?pt(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(F(),mt(C(_n),{key:0},{default:nt(()=>[(F(),mt(hr(A.activeActionIcon)))]),_:1})):xe("v-if",!0)]):C(y)?xe("v-if",!0):pt(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(F(),mt(C(_n),{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:oe(C(v))},[A.activeIcon?(F(),mt(C(_n),{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)},ze(A.activeText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0)],10,["onClick"]))}});var MJe=en(OJe,[["__file","switch.vue"]]);const PJe=er(MJe),_I=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},NJe=function(e,t,n,r,o){if(!t&&!r&&(!o||qt(o)&&!o.length))return e;Dn(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return o?Mme(Ka(o),u=>Dn(u)?Yi(s,u):u(s,l,e)):(t!=="$key"&&ar(s)&&"$value"in s&&(s=s.$value),[ar(s)?t?Yi(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)},Pbe=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},RJe=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||Ji("ElTable",`No column matching with column-key: ${t}`),n},bee=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?Pbe(e,r[0]):null},bs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Dn(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""},ty=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,ty(l,t,!0,r))}}),i};function BJe(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];zr(o)||(n[r]=o)}return n}function xW(e){return e===""||zr(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Nbe(e){return e===""||zr(e)||(e=xW(e),Number.isNaN(e)&&(e=80)),e}function LJe(e){return Ln(e)?e:Dn(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function FJe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function NE(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=NE(e,h,n??!c,r,o,s+1,a);s+=v(h)+1,g&&(l=g)}),l}function UJe(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 zJe=(e,t,n,r)=>{const o={strategy:"fixed",...e.popperOptions},i=Pn(r?.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:Q4(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 $Je(e,t,n,r,o,i){var a;const s=zJe(e,t,n,r),l={...s,slotContent:void 0};if(Os?.trigger===o){const v=(a=Os.vm)==null?void 0:a.component;Pme(v?.props,l),v&&s.slotContent&&(v.slots.content=()=>[s.slotContent]);return}Os?.();const u=i?.refs.tableWrapper,d=u?.dataset.prefix,c=$e(fs,{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");t0(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(),t0(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 Rbe(e){return e.children?Mme(e.children,Rbe):[e]}function wee(e,t){return e+t.colSpan}const Bbe=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=Rbe(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(wee,0),i=o+l.reduce(wee,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}:{}},SW=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=Bbe(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 Aee(e,t){return e+(_C(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const EW=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=Bbe(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(Aee,0):s.right=u.slice(a+1).reverse().reduce(Aee,0),s},Fy=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function jJe(e){const t=vr(),n=Y(!1),r=Y([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const d=ty(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)=>{NE(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=ty(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?!!ty(r.value,u)[bs(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function HJe(e){const t=vr(),n=Y(null),r=Y(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;_C(r.value)&&t.emit("current-change",null,c)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function WJe(e){const t=Y([]),n=Y({}),r=Y(16),o=Y(!1),i=Y({}),a=Y("hasChildren"),s=Y("children"),l=Y(!1),u=vr(),d=ee(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return f(w)}),c=ee(()=>{const w=e.rowKey.value,A=Object.keys(i.value),S={};return A.length&&A.forEach(k=>{if(i.value[k].length){const O={children:[]};i.value[k].forEach(I=>{const P=bs(I,w);O.children.push(P),I[a.value]&&!S[P]&&(S[P]={children:[]})}),S[k]=O}}),S}),f=w=>{const A=e.rowKey.value,S={};return UJe(w,(k,O,I)=>{const P=bs(k,A);qt(O)?S[P]={children:O.map(M=>bs(M,A)),level:I}:o.value&&(S[P]={children:[],lazy:!0,level:I})},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 O=d.value,I=c.value,P=Object.keys(O),M={};if(P.length){const _=C(n),R=[],N=(L,j)=>{if(w)return t.value?A||t.value.includes(j):!!(A||L?.expanded);{const H=A||t.value&&t.value.includes(j);return!!(L?.expanded||H)}};P.forEach(L=>{const j=_[L],H={...O[L]};if(H.expanded=N(j,L),H.lazy){const{loaded:G=!1,loading:Z=!1}=j||{};H.loaded=!!G,H.loading=!!Z,R.push(L)}M[L]=H});const V=Object.keys(I);o.value&&V.length&&R.length&&V.forEach(L=>{var j;const H=_[L],G=I[L].children;if(R.includes(L)){if(((j=M[L].children)==null?void 0:j.length)!==0)throw new Error("[ElTable]children must be an empty array.");M[L].children=G}else{const{loaded:Z=!1,loading:z=!1}=H||{};M[L]={lazy:!0,loaded:!!Z,loading:!!z,expanded:N(H,L),children:G,level:void 0}}})}n.value=M,(k=u.store)==null||k.updateTableScrollY()};Ct(()=>t.value,()=>{p(!0)}),Ct(()=>d.value,()=>{p()}),Ct(()=>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),O=k&&n.value[k];if(k&&O&&"expanded"in O){const I=O.expanded;A=zr(A)?!O.expanded:A,n.value[k].expanded=A,I!==A&&u.emit("expand-change",w,A),h(O)&&m(w,k,O),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,O=>{if(!qt(O))throw new TypeError("[ElTable] data must be an array");n.value[A].loading=!1,n.value[A].loaded=!0,n.value[A].expanded=!0,O.length&&(i.value[A]=O),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 VJe=(e,t)=>{const n=t.sortingColumn;return!n||Dn(n.sortable)?e:NJe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},BS=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,BS(n.children)):t.push(n)}),t};function qJe(){var e;const t=vr(),{size:n}=_a((e=t.proxy)==null?void 0:e.$props),r=Y(null),o=Y([]),i=Y([]),a=Y(!1),s=Y([]),l=Y([]),u=Y([]),d=Y([]),c=Y([]),f=Y([]),p=Y([]),v=Y([]),h=[],g=Y(0),y=Y(0),m=Y(0),b=Y(!1),w=Y([]),A=Y(!1),S=Y(!1),k=Y(null),O=Y({}),I=Y(null),P=Y(null),M=Y(null),_=Y(null),R=Y(null),N=ee(()=>r.value?ty(w.value,r.value):void 0);Ct(o,()=>{var zt;t.state&&(H(!1),t.props.tableLayout==="auto"&&((zt=t.refs.tableHeaderRef)==null||zt.updateFixedColumnStyle()))},{deep:!0});const V=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},L=zt=>{var dt;(dt=zt.children)==null||dt.forEach(_t=>{_t.fixed=zt.fixed,L(_t)})},j=()=>{s.value.forEach(Je=>{L(Je)}),d.value=s.value.filter(Je=>[!0,"left"].includes(Je.fixed));const zt=s.value.find(Je=>Je.type==="selection");let dt;zt&&zt.fixed!=="right"&&!d.value.includes(zt)&&s.value.indexOf(zt)===0&&d.value.length&&(d.value.unshift(zt),dt=!0),c.value=s.value.filter(Je=>Je.fixed==="right");const _t=s.value.filter(Je=>(dt?Je.type!=="selection":!0)&&!Je.fixed);l.value=Array.from(d.value).concat(_t).concat(c.value);const ut=BS(_t),rt=BS(d.value),he=BS(c.value);g.value=ut.length,y.value=rt.length,m.value=he.length,u.value=Array.from(rt).concat(ut).concat(he),a.value=d.value.length>0||c.value.length>0},H=(zt,dt=!1)=>{zt&&j(),dt?t.state.doLayout():t.state.debouncedUpdateLayout()},G=zt=>N.value?!!N.value[bs(zt,r.value)]:w.value.includes(zt),Z=()=>{b.value=!1;const zt=w.value;w.value=[],zt.length&&t.emit("selection-change",[])},z=()=>{var zt,dt;let _t;if(r.value){_t=[];const ut=(dt=(zt=t?.store)==null?void 0:zt.states)==null?void 0:dt.childrenColumnName.value,rt=ty(o.value,r.value,!0,ut);for(const he in N.value)Zr(N.value,he)&&!rt[he]&&_t.push(N.value[he].row)}else _t=w.value.filter(ut=>!o.value.includes(ut));if(_t.length){const ut=w.value.filter(rt=>!_t.includes(rt));w.value=ut,t.emit("selection-change",ut.slice())}},U=()=>(w.value||[]).slice(),W=(zt,dt,_t=!0,ut=!1)=>{var rt,he,Je,ct;const Ot={children:(he=(rt=t?.store)==null?void 0:rt.states)==null?void 0:he.childrenColumnName.value,checkStrictly:(ct=(Je=t?.store)==null?void 0:Je.states)==null?void 0:ct.checkStrictly.value};if(NE(w.value,zt,dt,Ot,ut?void 0:k.value,o.value.indexOf(zt),r.value)){const In=(w.value||[]).slice();_t&&t.emit("select",In,zt),t.emit("selection-change",In)}},re=()=>{var zt,dt;const _t=S.value?!b.value:!(b.value||w.value.length);b.value=_t;let ut=!1,rt=0;const he=(dt=(zt=t?.store)==null?void 0:zt.states)==null?void 0:dt.rowKey.value,{childrenColumnName:Je}=t.store.states,ct={children:Je.value,checkStrictly:!1};o.value.forEach((Ot,Tn)=>{const In=Tn+rt;NE(w.value,Ot,_t,ct,k.value,In,he)&&(ut=!0),rt+=te(bs(Ot,he))}),ut&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",(w.value||[]).slice())},J=()=>{var zt;if(((zt=o.value)==null?void 0:zt.length)===0){b.value=!1;return}const{childrenColumnName:dt}=t.store.states;let _t=0,ut=0;const rt=Je=>{var ct;for(const Ot of Je){const Tn=k.value&&k.value.call(null,Ot,_t);if(G(Ot))ut++;else if(!k.value||Tn)return!1;if(_t++,(ct=Ot[dt.value])!=null&&ct.length&&!rt(Ot[dt.value]))return!1}return!0},he=rt(o.value||[]);b.value=ut===0?!1:he},te=zt=>{var dt;if(!t||!t.store)return 0;const{treeData:_t}=t.store.states;let ut=0;const rt=(dt=_t.value[zt])==null?void 0:dt.children;return rt&&(ut+=rt.length,rt.forEach(he=>{ut+=te(he)})),ut},X=(zt,dt)=>{const _t={};return Ka(zt).forEach(ut=>{O.value[ut.id]=dt,_t[ut.columnKey||ut.id]=dt}),_t},ue=(zt,dt,_t)=>{P.value&&P.value!==zt&&(P.value.order=null),P.value=zt,M.value=dt,_.value=_t},me=()=>{let zt=C(i);Object.keys(O.value).forEach(dt=>{const _t=O.value[dt];if(!_t||_t.length===0)return;const ut=Pbe({columns:u.value},dt);ut&&ut.filterMethod&&(zt=zt.filter(rt=>_t.some(he=>ut.filterMethod.call(null,he,rt,ut))))}),I.value=zt},Me=()=>{var zt;o.value=VJe((zt=I.value)!=null?zt:[],{sortingColumn:P.value,sortProp:M.value,sortOrder:_.value})},Ae=(zt=void 0)=>{zt?.filter||me(),Me()},ge=zt=>{const{tableHeaderRef:dt}=t.refs;if(!dt)return;const _t=Object.assign({},dt.filterPanels),ut=Object.keys(_t);if(ut.length)if(Dn(zt)&&(zt=[zt]),qt(zt)){const rt=zt.map(he=>RJe({columns:u.value},he));ut.forEach(he=>{const Je=rt.find(ct=>ct.id===he);Je&&(Je.filteredValue=[])}),t.store.commit("filterChange",{column:rt,values:[],silent:!0,multi:!0})}else ut.forEach(rt=>{const he=u.value.find(Je=>Je.id===rt);he&&(he.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},_e=()=>{P.value&&(ue(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Q,toggleRowExpansion:be,updateExpandRows:De,states:pe,isRowExpanded:ie}=jJe({data:o,rowKey:r}),{updateTreeExpandKeys:ce,toggleTreeExpansion:Re,updateTreeData:Ee,updateKeyChildren:Le,loadOrToggle:Fe,states:Pe}=WJe({data:o,rowKey:r}),{updateCurrentRowData:Ne,updateCurrentRow:ht,setCurrentRowKey:Rt,states:Lt}=HJe({data:o,rowKey:r});return{assertRowKey:V,updateColumns:j,scheduleLayout:H,isSelected:G,clearSelection:Z,cleanSelection:z,getSelectionRows:U,toggleRowSelection:W,_toggleAllSelection:re,toggleAllSelection:null,updateAllSelected:J,updateFilters:X,updateCurrentRow:ht,updateSort:ue,execFilter:me,execSort:Me,execQuery:Ae,clearFilter:ge,clearSort:_e,toggleRowExpansion:be,setExpandRowKeysAdapter:zt=>{Q(zt),ce(zt)},setCurrentRowKey:Rt,toggleRowExpansionAdapter:(zt,dt)=>{u.value.some(({type:ut})=>ut==="expand")?be(zt,dt):Re(zt,dt)},isRowExpanded:ie,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:O,filteredData:I,sortingColumn:P,sortProp:M,sortOrder:_,hoverRow:R,...pe,...Pe,...Lt}}}function KL(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=KL(n.children,t)),n)})}function YL(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&YL(t.children)}),e.sort((t,n)=>t.no-n.no)}function GJe(){const e=vr(),t=qJe();return{ns:jt("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=KL(c,l)):(c.push(s),f=c),YL(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&&(YL(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=KL(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);_C(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 kW={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 KJe(e,t){if(!e)throw new Error("Table is required.");const n=GJe();return n.toggleAllSelection=Fl(n._toggleAllSelection,10),Object.keys(kW).forEach(r=>{Lbe(Fbe(t,r),r,n)}),YJe(n,t),n}function YJe(e,t){Object.keys(kW).forEach(n=>{Ct(()=>Fbe(t,n),r=>{Lbe(r,n,e)})})}function Lbe(e,t,n){let r=e,o=kW[t];ar(o)&&(r=r||o.default,o=o.key),n.states[o].value=r}function Fbe(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 QJe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Y(null),this.scrollX=Y(!1),this.scrollY=Y(!1),this.bodyWidth=Y(null),this.fixedWidth=Y(null),this.rightFixedWidth=Y(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(_C(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=LJe(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&&Dn(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:ZJe}=Yu,XJe=et({name:"ElTableFilterPanel",components:{ElCheckbox:Yu,ElCheckboxGroup:ZJe,ElScrollbar:Lc,ElTooltip:fs,ElIcon:_n,ArrowDown:Kc,ArrowUp:nD},directives:{ClickOutside:Zf},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=jt("table-filter"),o=t?.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const i=Y(!1),a=Y(null),s=ee(()=>e.column&&e.column.filters),l=ee(()=>e.column&&e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=ee({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=ee({get(){return e.column?e.column.filteredValue||[]:[]},set(A){var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filteredValue",A))}}),c=ee(()=>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()};Ct(i,A=>{var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filterOpened",A))},{immediate:!0});const w=ee(()=>{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 JJe(e,t,n,r,o,i){const a=lr("el-checkbox"),s=lr("el-checkbox-group"),l=lr("el-scrollbar"),u=lr("arrow-up"),d=lr("arrow-down"),c=lr("el-icon"),f=lr("el-tooltip"),p=R_("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:oe(e.ns.e("content"))},[$e(l,{"wrap-class":e.ns.e("wrap")},{default:nt(()=>[$e(s,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:oe(e.ns.e("checkbox-group"))},{default:nt(()=>[(F(!0),K(Nt,null,on(e.filters,v=>(F(),mt(a,{key:v.value,value:v.value},{default:nt(()=>[An(ze(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),x("div",{class:oe(e.ns.e("bottom"))},[x("button",{class:oe({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ze(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),x("button",{type:"button",onClick:e.handleReset},ze(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(F(),K("ul",{key:1,class:oe(e.ns.e("list"))},[x("li",{class:oe([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},ze(e.t("el.table.clearFilter")),11,["onClick"]),(F(!0),K(Nt,null,on(e.filters,v=>(F(),K("li",{key:v.value,class:oe([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:h=>e.handleSelect(v.value)},ze(v.text),11,["label","onClick"]))),128))],2))]),default:nt(()=>[an((F(),K("span",{class:oe([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[$e(c,null,{default:nt(()=>[pt(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 eet=en(XJe,[["render",JJe],["__file","filter-panel.vue"]]);function TW(e){const t=vr();N_(()=>{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=ee(()=>{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 Qc=Symbol("ElTable");function tet(e,t){const n=vr(),r=un(Qc),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=Y(null),l=Y(!1),u=Y(),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(),O=k.left-A+30;Nu(S,"noclick"),u.value={startMouseLeft:h.clientX,startLeft:k.right-A,startColumnLeft:k.left-A,tableLeft:A};const I=b?.refs.resizeProxy;I.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=_=>{const R=_.clientX-u.value.startMouseLeft,N=u.value.startLeft+R;I.style.left=`${Math.max(O,N)}px`},M=()=>{if(l.value){const{startColumnLeft:_,startLeft:R}=u.value,V=Number.parseInt(I.style.left,10)-_;g.width=g.realWidth=V,b?.emit("header-dragend",g.width,R-_,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",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{$s(S,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",M)}},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")){$s(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,O;const I=S.sortingColumn.value;(I!==g||I===g&&_C(I.order))&&(I&&(I.order=null),S.sortingColumn.value=g,k=g.property),b?O=g.order=b:O=g.order=null,S.sortProp.value=k,S.sortOrder.value=O,r?.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:c,handleMouseOut:f,handleSortClick:v,handleFilterClick:o}}function net(e){const t=un(Qc),n=jt("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 Dn(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=EW(l,d.fixed,e.store,u);return Fy(p,"left"),Fy(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(s,l,u,d)=>{const c=SW(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 Dn(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 Ube=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Ube(n.children))):t.push(n)}),t},zbe=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 Ube(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 ret(e){const t=un(Qc),n=ee(()=>zbe(e.store.states.originColumns.value));return{isGroup:ee(()=>{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 oet=et({name:"ElTableHeader",components:{ElCheckbox:Yu},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=un(Qc),o=jt("table"),i=Y({}),{onColumnsChange:a,onScrollableChange:s}=TW(r),l=r?.props.tableLayout==="auto",u=Ur(new Map),d=Y();let c;const f=()=>{c=setTimeout(()=>{u.size>0&&(u.forEach((M,_)=>{const R=d.value.querySelector(`.${_.replace(/\s/g,".")}`);if(R){const N=R.getBoundingClientRect().width;M.width=N||M.width}}),u.clear())})};Ct(u,f),Yr(()=>{c&&(clearTimeout(c),c=void 0)}),jn(async()=>{await Vt(),await Vt();const{prop:M,order:_}=e.defaultSort;r?.store.commit("sort",{prop:M,order:_,init:!0}),f()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleMouseOut:y,handleSortClick:m,handleFilterClick:b}=tet(e,t),{getHeaderRowStyle:w,getHeaderRowClass:A,getHeaderCellStyle:S,getHeaderCellClass:k}=net(e),{isGroup:O,toggleAllSelection:I,columnRows:P}=ret(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:O,toggleAllSelection:I,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 O;(O=k.currentTarget)!=null&&O.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(eet,{store:p,placement:w.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:w,upDataColumn:(k,O)=>{w[k]=O}},{"filter-icon":()=>w.renderFilterIcon?w.renderFilterIcon({filterOpened:w.filterOpened}):null})])])}))))}});function DI(e,t,n=.03){return e-t>n}function iet(e){const t=un(Qc),n=Y(""),r=Y(Fn("div")),o=(v,h,g)=>{var y,m,b;const w=t,A=_I(v);let S=null;const k=(y=w?.vnode.el)==null?void 0:y.dataset.prefix;A&&(S=bee({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,O;if(!t)return;const I=t,P=_I(v),M=(y=I?.vnode.el)==null?void 0:y.dataset.prefix;let _=null;if(P){if(_=bee({columns:(b=(m=e.store)==null?void 0:m.states.columns.value)!=null?b:[]},P,M),!_)return;P.rowSpan>1&&c(P.rowSpan,v,Nu);const J=I.hoverState={cell:P,column:_,row:h};I?.emit("cell-mouse-enter",J.row,J.column,J.cell,v)}if(!g){((w=Os)==null?void 0:w.trigger)===P&&((A=Os)==null||A());return}const R=v.target.querySelector(".cell");if(!(El(R,`${M}-tooltip`)&&R.childNodes.length))return;const N=document.createRange();N.setStart(R,0),N.setEnd(R,R.childNodes.length);const{width:V,height:L}=N.getBoundingClientRect(),{width:j,height:H}=R.getBoundingClientRect(),{top:G,left:Z,right:z,bottom:U}=d(R),W=Z+z,re=G+U;DI(V+W,j)||DI(L+re,H)||DI(R.scrollWidth,j)?$Je(g,(S=P?.innerText||P?.textContent)!=null?S:"",h,_,P,I):((k=Os)==null?void 0:k.trigger)===P&&((O=Os)==null||O())},handleCellMouseLeave:v=>{const h=_I(v);if(!h)return;h.rowSpan>1&&c(h.rowSpan,v,$s);const g=t?.hoverState;t?.emit("cell-mouse-leave",g?.row,g?.column,g?.cell,v)},tooltipContent:n,tooltipTrigger:r}}function aet(e){const t=un(Qc),n=jt("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 Dn(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=EW(d,e?.fixed,e.store);return Fy(h,"left"),Fy(h,"right"),Object.assign({},v,h)},getCellClass:(u,d,c,f,p)=>{const v=SW(n.b(),d,e?.fixed,e.store,void 0,p),h=[f.id,f.align,f.className,...v],g=t?.props.cellClassName;return Dn(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 set=et({name:"TableTdWrapper"}),uet=et({...set,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},[pt(t.$slots,"default")],8,["colspan","rowspan"]))}});var cet=en(uet,[["__file","td-wrapper.vue"]]);function det(e){const t=un(Qc),n=jt("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:c}=iet(e),{getRowStyle:f,getRowClass:p,getCellStyle:v,getCellClass:h,getSpan:g,getColspanRealWidth:y}=aet(e),m=ee(()=>{var k;return(k=e.store)==null?void 0:k.states.columns.value.findIndex(({type:O})=>O==="default")}),b=(k,O)=>{var I;const P=(I=t?.props)==null?void 0:I.rowKey;return P?bs(k,P):O},w=(k,O,I,P=!1)=>{const{tooltipEffect:M,tooltipOptions:_,store:R}=e,{indent:N,columns:V}=R.states,L=p(k,O);let j=!0;return I&&(L.push(n.em("row",`level-${I.level}`)),j=!!I.display),Fn("tr",{style:[j?null:{display:"none"},f(k,O)],class:L,key:b(k,O),onDblclick:G=>r(G,k),onClick:G=>o(G,k),onContextmenu:G=>i(G,k),onMouseenter:()=>a(O),onMouseleave:s},V.value.map((G,Z)=>{const{rowspan:z,colspan:U}=g(k,G,O,Z);if(!z||!U)return null;const W=Object.assign({},G);W.realWidth=y(V.value,U,Z);const re={store:R,_self:e.context||t,column:W,row:k,$index:O,cellIndex:Z,expanded:P};Z===m.value&&I&&(re.treeNode={indent:I.level&&I.level*N.value,level:I.level},Co(I.expanded)&&(re.treeNode.expanded=I.expanded,"loading"in I&&(re.treeNode.loading=I.loading),"noLazyChildren"in I&&(re.treeNode.noLazyChildren=I.noLazyChildren)));const J=`${b(k,O)},${Z}`,te=W.columnKey||W.rawColumnKey||"",X=G.showOverflowTooltip&&Pme({effect:M},_,G.showOverflowTooltip);return Fn(cet,{style:v(O,Z,k,G),class:h(O,Z,k,G,U-1),key:`${te}${J}`,rowspan:z,colspan:U,onMouseenter:ue=>l(ue,k,X),onMouseleave:u},{default:()=>A(Z,G,re)})}))},A=(k,O,I)=>O.renderCell(I);return{wrappedRowRender:(k,O)=>{const I=e.store,{isRowExpanded:P,assertRowKey:M}=I,{treeData:_,lazyTreeNodeMap:R,childrenColumnName:N,rowKey:V}=I.states,L=I.states.columns.value;if(L.some(({type:H})=>H==="expand")){const H=P(k),G=w(k,O,void 0,H),Z=t?.renderExpanded;if(!Z)return console.error("[Element Error]renderExpanded is required."),G;const z=[[G]];return(t.props.preserveExpandedContent||H)&&z[0].push(Fn("tr",{key:`expanded-row__${G.key}`,style:{display:H?"":"none"}},[Fn("td",{colspan:L.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Z({row:k,$index:O,store:I,expanded:H})])])),z}else if(Object.keys(_.value).length){M();const H=bs(k,V.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 z=[w(k,O,Z??void 0)];if(G){let U=0;const W=(J,te)=>{J&&J.length&&te&&J.forEach(X=>{const ue={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},me=bs(X,V.value);if(Il(me))throw new Error("For nested data item, row-key is required.");if(G={..._.value[me]},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)),U++,z.push(w(X,O+U,ue)),G){const Me=R.value[me]||X[N.value];W(Me,G)}})};G.display=!0;const re=R.value[H]||k[N.value];W(re,G)}return z}else return w(k,O,void 0)},tooltipContent:d,tooltipTrigger:c}}const fet={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 pet=et({name:"ElTableBody",props:fet,setup(e){var t;const n=vr(),r=un(Qc),o=jt("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:s}=det(e),{onColumnsChange:l,onScrollableChange:u}=TW(r),d=[];return Ct((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 O,I;return((O=m[k])==null?void 0:O.colSpan)>1&&(b=(I=m[k])==null?void 0:I.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=>$s(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")&&$s(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 het(){const e=un(Qc),t=e?.store,n=ee(()=>{var s;return(s=t?.states.fixedLeafColumnsLength.value)!=null?s:0}),r=ee(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0}),o=ee(()=>{var s;return(s=t?.states.columns.value.length)!=null?s:0}),i=ee(()=>{var s;return(s=t?.states.fixedColumns.value.length)!=null?s:0}),a=ee(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0});return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:ee(()=>{var s;return(s=t?.states.columns.value)!=null?s:[]})}}function get(e){const{columns:t}=het(),n=jt("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...SW(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=EW(a,i.fixed,e.store);return Fy(s,"left"),Fy(s,"right"),s},columns:t}}var vet=et({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=un(Qc),n=jt("table"),{getCellClasses:r,getCellStyles:o,columns:i}=get(e),{onScrollableChange:a,onColumnsChange:s}=TW(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 met(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 yet(e,t,n,r){const o=Y(!1),i=Y(null),a=Y(!1),s=j=>{a.value=j},l=Y({width:null,height:null,headerHeight:null}),u=Y(!1),d={display:"inline-block",verticalAlign:"middle"},c=Y(),f=Y(0),p=Y(0),v=Y(0),h=Y(0),g=Y(0);Cs(()=>{var j;t.setHeight((j=e.height)!=null?j:null)}),Cs(()=>{var j;t.setMaxHeight((j=e.maxHeight)!=null?j:null)}),Ct(()=>[e.currentRowKey,n.states.rowKey],([j,H])=>{!C(H)||!C(j)||n.setCurrentRowKey(`${j}`)},{immediate:!0}),Ct(()=>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=ee(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=ee(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};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)},O=j=>{const{tableWrapper:H}=r.refs;return!!(H&&H.classList.contains(j))},I=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const re="is-scrolling-none";O(re)||k(re);return}const j=r.refs.scrollBarRef.wrapRef;if(!j)return;const{scrollLeft:H,offsetWidth:G,scrollWidth:Z}=j,{headerWrapper:z,footerWrapper:U}=r.refs;z&&(z.scrollLeft=H),U&&(U.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",I,{passive:!0}),e.fit?li(r.vnode.el,M):Mo(window,"resize",M),li(r.refs.bodyWrapper,()=>{var j,H;M(),(H=(j=r.refs)==null?void 0:j.scrollBarRef)==null||H.update()}))},M=()=>{var j,H,G,Z;const z=r.vnode.el;if(!r.$ready||!z)return;let U=!1;const{width:W,height:re,headerHeight:J}=l.value,te=c.value=z.offsetWidth;W!==te&&(U=!0);const X=z.offsetHeight;(e.height||b.value)&&re!==X&&(U=!0);const ue=e.tableLayout==="fixed"?r.refs.headerWrapper:(j=r.refs.tableHeaderRef)==null?void 0:j.$el;e.showHeader&&ue?.offsetHeight!==J&&(U=!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,U&&(l.value={width:te,height:X,headerHeight:e.showHeader&&ue?.offsetHeight||0},A())},_=fa(),R=ee(()=>{const{bodyWidth:j,scrollY:H,gutterWidth:G}=t;return j.value?`${j.value-(H.value?G:0)}px`:""}),N=ee(()=>e.maxHeight?"fixed":e.tableLayout),V=ee(()=>{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}}),L=ee(()=>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:V,resizeProxyVisible:a,bodyWidth:R,resizeState:l,doLayout:A,tableBodyStyles:w,tableLayout:N,scrollbarViewStyle:d,scrollbarStyle:L}}function bet(e){const t=Y(),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 wet={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 $be(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>zr(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))))}$be.props=["columns","tableLayout"];const Aet=()=>{const e=Y(),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 Cee=!1,Eg,QL,ZL,LS,FS,jbe,US,XL,JL,eF,Hbe,tF,nF,Wbe,Vbe;function bl(){if(!Cee){Cee=!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(tF=/\b(iPhone|iP[ao]d)/.exec(e),nF=/\b(iP[ao]d)/.exec(e),eF=/Android/i.exec(e),Wbe=/FBAN\/\w+;/i.exec(e),Vbe=/Mobile/i.exec(e),Hbe=!!/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);jbe=r?parseFloat(r[1])+4:Eg,QL=t[2]?parseFloat(t[2]):NaN,ZL=t[3]?parseFloat(t[3]):NaN,LS=t[4]?parseFloat(t[4]):NaN,LS?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),FS=t&&t[1]?parseFloat(t[1]):NaN):FS=NaN}else Eg=QL=ZL=FS=LS=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);US=o?parseFloat(o[1].replace("_",".")):!0}else US=!1;XL=!!n[2],JL=!!n[3]}else US=XL=JL=!1}}var rF={ie:function(){return bl()||Eg},ieCompatibilityMode:function(){return bl()||jbe>Eg},ie64:function(){return rF.ie()&&Hbe},firefox:function(){return bl()||QL},opera:function(){return bl()||ZL},webkit:function(){return bl()||LS},safari:function(){return rF.webkit()},chrome:function(){return bl()||FS},windows:function(){return bl()||XL},osx:function(){return bl()||US},linux:function(){return bl()||JL},iphone:function(){return bl()||tF},mobile:function(){return bl()||tF||nF||eF||Vbe},nativeApp:function(){return bl()||Wbe},android:function(){return bl()||eF},ipad:function(){return bl()||nF}},Cet=rF,xet=!!(typeof window<"u"&&window.document&&window.document.createElement),Eet={canUseDOM:xet},qbe=Eet,Gbe;qbe.canUseDOM&&(Gbe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function ket(e,t){if(!qbe.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&&Gbe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Tet=ket,xee=10,See=40,Eee=800;function Kbe(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*xee,o=n*xee,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=See,o*=See):(r*=Eee,o*=Eee)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}Kbe.getEventType=function(){return Cet.firefox()?"DOMMouseScroll":Tet("wheel")?"wheel":"mousewheel"};var _et=Kbe;/**
  54. * Checks if an event is supported in the current execution environment.
  55. *
  56. * NOTE: This will not work correctly for non-generic events such as `change`,
  57. * `reset`, `load`, `error`, and `select`.
  58. *
  59. * Borrows from Modernizr.
  60. *
  61. * @param {string} eventNameSuffix Event name, e.g. "click".
  62. * @param {?boolean} capture Check if the capture phase is supported.
  63. * @return {boolean} True if the event is supported.
  64. * @internal
  65. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  66. */const Det=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=_et(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},Iet={beforeMount(e,t){Det(e,t.value)}};let Oet=1;const Met=et({name:"ElTable",directives:{Mousewheel:Iet},components:{TableHeader:oet,TableBody:pet,TableFooter:vet,ElScrollbar:Lc,hColgroup:$be},props:wet,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=jt("table"),r=vr();Sr(Qc,r);const o=KJe(r,e);r.store=o;const i=new QJe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=ee(()=>(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}=met(o),{isHidden:y,renderExpanded:m,setDragVisible:b,isGroup:w,handleMouseLeave:A,handleHeaderFooterMousewheel:S,tableSize:k,emptyBlockStyle:O,resizeProxyVisible:I,bodyWidth:P,resizeState:M,doLayout:_,tableBodyStyles:R,tableLayout:N,scrollbarViewStyle:V,scrollbarStyle:L}=yet(e,i,o,r),{scrollBarRef:j,scrollTo:H,setScrollLeft:G,setScrollTop:Z}=Aet(),z=Fl(_,50),U=`${n.namespace.value}-table_${Oet++}`;r.tableId=U,r.state={isGroup:w,resizeState:M,doLayout:_,debouncedUpdateLayout:z};const W=ee(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),re=ee(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),J=ee(()=>zbe(o.states.originColumns.value)[0]);return bet(r),Yr(()=>{z.cancel()}),{ns:n,layout:i,store:o,columns:J,handleHeaderFooterMousewheel:S,handleMouseLeave:A,tableId:U,tableSize:k,isHidden:y,isEmpty:a,renderExpanded:m,resizeProxyVisible:I,resizeState:M,isGroup:w,bodyWidth:P,tableBodyStyles:R,emptyBlockStyle:O,debouncedUpdateLayout:z,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:re,tableLayout:N,scrollbarViewStyle:V,scrollbarStyle:L,scrollBarRef:j,scrollTo:H,setScrollLeft:G,setScrollTop:Z,allowDragLastColumn:e.allowDragLastColumn}}});function Pet(e,t,n,r,o,i){const a=lr("hColgroup"),s=lr("table-header"),l=lr("table-body"),u=lr("table-footer"),d=lr("el-scrollbar"),c=R_("mousewheel");return F(),K("div",{ref:"tableWrapper",class:oe([{[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:Jt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[x("div",{class:oe(e.ns.e("inner-wrapper"))},[x("div",{ref:"hiddenColumns",class:"hidden-columns"},[pt(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?an((F(),K("div",{key:0,ref:"headerWrapper",class:oe(e.ns.e("header-wrapper"))},[x("table",{ref:"tableHeader",class:oe(e.ns.e("header")),style:Jt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[$e(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),$e(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:oe(e.ns.e("body-wrapper"))},[$e(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:oe(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Jt({width:e.bodyWidth,tableLayout:e.tableLayout})},[$e(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:oe(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),$e(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:oe(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:Jt(e.emptyBlockStyle),class:oe(e.ns.e("empty-block"))},[x("span",{class:oe(e.ns.e("empty-text"))},[pt(e.$slots,"empty",{},()=>[An(ze(e.computedEmptyText),1)])],2)],6)):xe("v-if",!0),e.$slots.append?(F(),K("div",{key:1,ref:"appendWrapper",class:oe(e.ns.e("append-wrapper"))},[pt(e.$slots,"append")],2)):xe("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?an((F(),K("div",{key:1,ref:"footerWrapper",class:oe(e.ns.e("footer-wrapper"))},[x("table",{class:oe(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Jt(e.tableBodyStyles)},[$e(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),$e(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:oe(e.ns.e("border-left-patch"))},null,2)):xe("v-if",!0)],2),an(x("div",{ref:"resizeProxy",class:oe(e.ns.e("column-resize-proxy"))},null,2),[[Ar,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var Net=en(Met,[["render",Pet],["__file","table.vue"]]);const Ret={selection:"table-column--selection",expand:"table__expand-column"},Bet={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:""}},Let=e=>Ret[e]||"",Fet={selection:{renderHeader({store:e,column:t}){var n;function r(){return e.states.data.value&&e.states.data.value.length===0}return Fn(Yu,{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(Yu,{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(_n,null,{default:()=>[Fn(ka)]})]})},sortable:!1,resizable:!1}};function Uet({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&Q4(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i?.toString)==null?void 0:r.call(i))||""}function zet({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(_n,{class:{[o.is("loading")]:t.loading}},{default:()=>[Fn(l)]})]}))}else i.push(Fn("span",{class:o.e("placeholder")}));return i}function kee(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function $et(e,t){const n=vr();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=kee(i,a);Object.keys(s).forEach(l=>{const u=a[l];Zr(t,u)&&Ct(()=>t[u],d=>{let c=d;u==="width"&&l==="realWidth"&&(c=xW(d)),u==="minWidth"&&l==="realMinWidth"&&(c=Nbe(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=kee(i,s);Object.keys(l).forEach(u=>{const d=s[u];Zr(t,d)&&Ct(()=>t[d],c=>{n.columnConfig.value[u]=c})}),a.forEach(u=>{Zr(e.value.props,u)&&Ct(()=>e.value.props[u],d=>{n.columnConfig.value[u]=d})})}}}function jet(e,t,n){const r=vr(),o=Y(""),i=Y(!1),a=Y(),s=Y(),l=jt("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=ee(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),d=ee(()=>{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=Y(xW(e.width)),f=Y(Nbe(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(zr(w.width)?w.minWidth:w.width),w),v=w=>{const A=w.type,S=Fet[A]||{};Object.keys(S).forEach(O=>{const I=S[O];O!=="className"&&!zr(I)&&(w[O]=I)});const k=Let(A);if(k){const O=`${C(l.namespace)}-${k}`;w.className=w.className?`${w.className} ${O}`:O}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,pt(t,"header",S,()=>[w.label]))),t["filter-icon"]&&(w.renderFilterIcon=S=>pt(t,"filter-icon",S)),t.expand&&(w.renderExpand=S=>pt(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||Uet,w.renderCell=S=>{let k=null;if(t.default){const R=t.default(S);k=R.some(N=>N.type!==ua)?R:A(S)}else k=A(S);const{columns:O}=n.value.store.states,I=O.value.findIndex(R=>R.type==="default"),P=d.value&&S.cellIndex===I,M=zet(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",_,[M,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 Het={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 Wet=1;var Ybe=et({name:"ElTableColumn",components:{ElCheckbox:Yu},props:Het,setup(e,{slots:t}){const n=vr(),r=Y({}),o=ee(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:a}=$et(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:c,setColumnForcedProps:f,setColumnRenders:p,getPropsData:v,getColumnElIndex:h,realAlign:g,updateColumnOrder:y}=jet(e,t,o),m=d.value;s.value=`${"tableId"in m&&m.tableId||"columnId"in m&&m.columnId}_column_${Wet++}`,N_(()=>{l.value=o.value!==m;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,A=b==="selection"?!1:zr(e.showOverflowTooltip)?m.props.showOverflowTooltip:e.showOverflowTooltip,S=zr(e.tooltipFormatter)?m.props.tooltipFormatter:e.tooltipFormatter,k={...Bet[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"]);_=BJe(k,_),_=FJe(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)}),Yr(()=>{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===Nt&&qt(a.children)&&a.children.forEach(s=>{s?.patchFlag!==1024&&!Dn(s?.children)&&o.push(s)});return Fn("div",o)}catch{return Fn("div",[])}}});const Vet=er(Net,{TableColumn:Ybe}),qet=vi(Ybe);var oA=(e=>(e.ASC="asc",e.DESC="desc",e))(oA||{}),iA=(e=>(e.CENTER="center",e.RIGHT="right",e))(iA||{}),Qbe=(e=>(e.LEFT="left",e.RIGHT="right",e))(Qbe||{});const oF={asc:"desc",desc:"asc"},aA=Symbol("placeholder"),Get=(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 Ket(e,t,n){const r=ee(()=>C(t).map((g,y)=>{var m,b;return{...g,key:(b=(m=g.key)!=null?m:g.dataKey)!=null?b:y}})),o=ee(()=>C(r).filter(g=>!g.hidden)),i=ee(()=>C(o).filter(g=>g.fixed==="left"||g.fixed===!0)),a=ee(()=>C(o).filter(g=>g.fixed==="right")),s=ee(()=>C(o).filter(g=>!g.fixed)),l=ee(()=>{const g=[];return C(i).forEach(y=>{g.push({...y,placeholderSign:aA})}),C(s).forEach(y=>{g.push(y)}),C(a).forEach(y=>{g.push({...y,placeholderSign:aA})}),g}),u=ee(()=>C(i).length||C(a).length),d=ee(()=>C(r).reduce((g,y)=>(g[y.key]=Get(y,C(n),e.fixed),g),{})),c=ee(()=>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=oA.ASC;ar(b)?A=oF[b[m]]:A=oF[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 Yet=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=Y({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 Ct(()=>C(i).scrollTop,(p,v)=>{p>v&&o()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:f,onScroll:d,onVerticalScroll:c}},Qet=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=vr(),{emit:l}=s,u=Uo(!1),d=Y(e.defaultExpandedRowKeys||[]),c=Y(-1),f=Uo(null),p=Y({}),v=Y({}),h=Uo({}),g=Uo({}),y=Uo({}),m=ee(()=>Ln(e.estimatedRowHeight));function b(P){var M;(M=e.onRowsRendered)==null||M.call(e,P),P.rowCacheEnd>C(c)&&(c.value=P.rowCacheEnd)}function w({hovered:P,rowKey:M}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(M)}"]`).forEach(N=>{P?N.classList.add(i.is("hovered")):N.classList.remove(i.is("hovered"))})}function A({expanded:P,rowData:M,rowIndex:_,rowKey:R}){var N,V;const L=[...C(d)],j=L.indexOf(R);P?j===-1&&L.push(R):j>-1&&L.splice(j,1),d.value=L,l("update:expandedRowKeys",L),(N=e.onRowExpand)==null||N.call(e,{expanded:P,rowData:M,rowIndex:_,rowKey:R}),(V=e.onExpandedRowsChange)==null||V.call(e,L),o.vnode.el.querySelector(`.${i.is("hovered")}[rowkey="${String(R)}"]`)&&Vt(()=>w({hovered:!0,rowKey:R}))}const S=Fl(()=>{var P,M,_,R;u.value=!0,p.value={...C(p),...C(v)},k(C(f),!1),v.value={},f.value=null,(P=t.value)==null||P.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(_=r.value)==null||_.forceUpdate(),(R=s.proxy)==null||R.$forceUpdate(),u.value=!1},0);function k(P,M=!1){C(m)&&[t,n,r].forEach(_=>{const R=C(_);R&&R.resetAfterRowIndex(P,M)})}function O(P,M,_){const R=C(f);(R===null||R>_)&&(f.value=_),v.value[P]=M}function I({rowKey:P,height:M,rowIndex:_},R){R?R===Qbe.RIGHT?y.value[P]=M:h.value[P]=M:g.value[P]=M;const N=Math.max(...[h,y,g].map(V=>V.value[P]||0));C(p)[P]!==N&&(O(P,N,_),S())}return{expandedRowKeys:d,lastRenderedRowIndex:c,isDynamic:m,isResetting:u,rowHeights:p,resetAfterIndex:k,onRowExpanded:A,onRowHovered:w,onRowsRendered:b,onRowHeightChange:I}},Zet=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=Y({}),i=ee(()=>{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=ee(()=>{const{data:s,expandColumnKey:l}=e;return l?C(i):s});return Ct(a,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:a,depthMap:o}},Xet=(e,t)=>e+t,zS=e=>qt(e)?e.reduce(Xet,0):e,Iv=(e,t,n={})=>Pn(e)?e(t):e??n,vh=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=_i(e[t])}),e),Zbe=e=>jo(e)?t=>Fn(e,t):e,Jet=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=ee(()=>{const{fixed:y,width:m,vScrollbarSize:b}=e,w=m-b;return y?Math.max(Math.round(C(t)),w):w}),a=ee(()=>{const{height:y=0,maxHeight:m=0,footerHeight:b,hScrollbarSize:w}=e;if(m>0){const A=C(f),S=C(n),O=C(c)+A+S+w;return Math.min(O,m-b)}return y-b}),s=ee(()=>{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=ee(()=>zS(C(r).map(l))),d=ee(()=>zS(C(o).map(l))),c=ee(()=>zS(e.headerHeight)),f=ee(()=>{var y;return(((y=e.fixedData)==null?void 0:y.length)||0)*e.rowHeight}),p=ee(()=>C(a)-C(c)-C(f)),v=ee(()=>{const{style:y={},height:m,width:b}=e;return vh({...y,height:m,width:b})}),h=ee(()=>vh({height:e.footerHeight})),g=ee(()=>({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 ett(e){const t=Y(),n=Y(),r=Y(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:c}=Ket(e,ao(e,"columns"),ao(e,"fixed")),{scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y,scrollPos:m}=Yet(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:_e}),b=jt("table-v2"),w=vr(),A=Uo(!1),{expandedRowKeys:S,lastRenderedRowIndex:k,isDynamic:O,isResetting:I,rowHeights:P,resetAfterIndex:M,onRowExpanded:_,onRowHeightChange:R,onRowHovered:N,onRowsRendered:V}=Qet(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:w,ns:b,isScrolling:A}),{data:L,depthMap:j}=Zet(e,{expandedRowKeys:S,lastRenderedRowIndex:k,resetAfterIndex:M}),H=ee(()=>{const{estimatedRowHeight:Q,rowHeight:be}=e,De=C(L);return Ln(Q)?Object.values(C(P)).reduce((pe,ie)=>pe+ie,0):De.length*be}),{bodyWidth:G,fixedTableHeight:Z,mainTableHeight:z,leftTableWidth:U,rightTableWidth:W,windowHeight:re,footerHeight:J,emptyStyle:te,rootStyle:X,headerHeight:ue}=Jet(e,{columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,rowsHeight:H}),me=Y(),Me=ee(()=>{const Q=C(L).length===0;return qt(e.fixedData)?e.fixedData.length===0&&Q:Q});function Ae(Q){const{estimatedRowHeight:be,rowHeight:De,rowKey:pe}=e;return be?C(P)[C(L)[Q][pe]]||be:De}const ge=Y(!1);function _e(){const{onEndReached:Q}=e;if(!Q)return;const{scrollTop:be}=C(m),De=C(H),pe=C(re),ie=De-(be+pe)+e.hScrollbarSize;!ge.value&&C(k)>=0&&De<=be+C(z)-C(ue)?(ge.value=!0,Q(ie)):ge.value=!1}return Ct(()=>C(H),()=>ge.value=!1),Ct(()=>e.expandedRowKeys,Q=>S.value=Q,{deep:!0}),{columns:o,containerRef:me,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:O,isResetting:I,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:L,expandedRowKeys:S,depthMap:j,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:G,emptyStyle:te,rootStyle:X,footerHeight:J,mainTableHeight:z,fixedTableHeight:Z,leftTableWidth:U,rightTableWidth:W,showEmpty:Me,getRowHeight:Ae,onColumnSorted:c,onRowHovered:N,onRowExpanded:_,onRowsRendered:V,onRowHeightChange:R,scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y}}const _W=Symbol("tableV2"),Xbe="tableV2GridScrollLeft",Jbe=String,UC={type:lt(Array),required:!0},DW={type:lt(Array)},e2e={...DW,required:!0},ttt=String,Tee={type:lt(Array),default:()=>fi([])},kg={type:Number,required:!0},t2e={type:lt([String,Number,Symbol]),default:"id"},_ee={type:lt(Object)},Lg=Yt({class:String,columns:UC,columnsStyles:{type:lt(Object),required:!0},depth:Number,expandColumnKey:ttt,estimatedRowHeight:{...Kg.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:lt(Function)},onRowHover:{type:lt(Function)},onRowHeightChange:{type:lt(Function)},rowData:{type:lt(Object),required:!0},rowEventHandlers:{type:lt(Object)},rowIndex:{type:Number,required:!0},rowKey:t2e,style:{type:lt(Object)}}),II={type:Number,required:!0},IW=Yt({class:String,columns:UC,fixedHeaderData:{type:lt(Array)},headerData:{type:lt(Array),required:!0},headerHeight:{type:lt([Number,Array]),default:50},rowWidth:II,rowHeight:{type:Number,default:50},height:II,width:II}),$S=Yt({columns:UC,data:e2e,fixedData:DW,estimatedRowHeight:Lg.estimatedRowHeight,width:kg,height:kg,headerWidth:kg,headerHeight:IW.headerHeight,bodyWidth:kg,rowHeight:kg,cache:wbe.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kg.scrollbarAlwaysOn,scrollbarStartGap:Kg.scrollbarStartGap,scrollbarEndGap:Kg.scrollbarEndGap,class:Jbe,style:_ee,containerStyle:_ee,getRowHeight:{type:lt(Function),required:!0},rowKey:Lg.rowKey,onRowsRendered:{type:lt(Function)},onScroll:{type:lt(Function)}}),ntt=Yt({cache:$S.cache,estimatedRowHeight:Lg.estimatedRowHeight,rowKey:t2e,headerClass:{type:lt([String,Function])},headerProps:{type:lt([Object,Function])},headerCellProps:{type:lt([Object,Function])},headerHeight:IW.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:lt([String,Function])},rowProps:{type:lt([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:lt([Object,Function])},columns:UC,data:e2e,dataGetter:{type:lt(Function)},fixedData:DW,expandColumnKey:Lg.expandColumnKey,expandedRowKeys:Tee,defaultExpandedRowKeys:Tee,class:Jbe,fixed:Boolean,style:{type:lt(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:xbe.alwaysOn,sortBy:{type:lt(Object),default:()=>({})},sortState:{type:lt(Object),default:void 0},onColumnSort:{type:lt(Function)},onExpandedRowsChange:{type:lt(Function)},onEndReached:{type:lt(Function)},onRowExpand:Lg.onRowExpand,onScroll:$S.onScroll,onRowsRendered:$S.onRowsRendered,rowEventHandlers:Lg.rowEventHandlers}),rtt="ElTableV2Header",ott=et({name:rtt,props:IW,setup(e,{slots:t,expose:n}){const r=jt("table-v2"),o=un(Xbe),i=Y(),a=ee(()=>vh({width:e.width,height:e.height})),s=ee(()=>vh({width:e.rowWidth,height:e.height})),l=ee(()=>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=vh({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=vh({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 $e("div",{ref:i,class:e.class,style:C(a),role:"rowgroup"},[$e("div",{style:C(s),class:r.e("header")},[c(),d()])])}}});var itt=ott;const att=({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=>{_v(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}))}}},n2e=({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})=>et({name:e??"ElVirtualList",props:Kg,emits:[_E,DE],setup(h,{emit:g,expose:y,slots:m}){const b=jt("vl");v(h);const w=vr(),A=Y(f(h,w));p?.(w,A);const S=Y(),k=Y(),O=Y(),I=Y(null),P=Y({isScrolling:!1,scrollLeft:Ln(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:Ln(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:L1,yAxisScrollDir:L1}),M=mbe(),_=ee(()=>Number.parseInt(`${h.height}`,10)),R=ee(()=>Number.parseInt(`${h.width}`,10)),N=ee(()=>{const{totalColumn:pe,totalRow:ie,columnCache:ce}=h,{isScrolling:Re,xAxisScrollDir:Ee,scrollLeft:Le}=C(P);if(pe===0||ie===0)return[0,0,0,0];const Fe=r(h,Le,C(A)),Pe=o(h,Fe,Le,C(A)),Ne=!Re||Ee===IE?Math.max(1,ce):1,ht=!Re||Ee===L1?Math.max(1,ce):1;return[Math.max(0,Fe-Ne),Math.max(0,Math.min(pe-1,Pe+ht)),Fe,Pe]}),V=ee(()=>{const{totalColumn:pe,totalRow:ie,rowCache:ce}=h,{isScrolling:Re,yAxisScrollDir:Ee,scrollTop:Le}=C(P);if(pe===0||ie===0)return[0,0,0,0];const Fe=d(h,Le,C(A)),Pe=c(h,Fe,Le,C(A)),Ne=!Re||Ee===IE?Math.max(1,ce):1,ht=!Re||Ee===L1?Math.max(1,ce):1;return[Math.max(0,Fe-Ne),Math.max(0,Math.min(ie-1,Pe+ht)),Fe,Pe]}),L=ee(()=>i(h,C(A))),j=ee(()=>a(h,C(A))),H=ee(()=>{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=ee(()=>{const pe=`${C(j)}px`;return{height:`${C(L)}px`,pointerEvents:C(P).isScrolling?"none":void 0,width:pe}}),Z=()=>{const{totalColumn:pe,totalRow:ie}=h;if(pe>0&&ie>0){const[Pe,Ne,ht,Rt]=C(N),[Lt,tn,Wt,zt]=C(V);g(_E,{columnCacheStart:Pe,columnCacheEnd:Ne,rowCacheStart:Lt,rowCacheEnd:tn,columnVisibleStart:ht,columnVisibleEnd:Rt,rowVisibleStart:Wt,rowVisibleEnd:zt})}const{scrollLeft:ce,scrollTop:Re,updateRequested:Ee,xAxisScrollDir:Le,yAxisScrollDir:Fe}=C(P);g(DE,{xAxisScrollDir:Le,scrollLeft:ce,yAxisScrollDir:Fe,scrollTop:Re,updateRequested:Ee})},z=pe=>{const{clientHeight:ie,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(fee(h.direction))switch(ME()){case nA:Ne=-Ee;break;case CW:Ne=Fe-ce-Ee;break}P.value={...Pe,isScrolling:!0,scrollLeft:Ne,scrollTop:Math.max(0,Math.min(Le,Re-ie)),updateRequested:!0,xAxisScrollDir:Bg(Pe.scrollLeft,Ne),yAxisScrollDir:Bg(Pe.scrollTop,Le)},Vt(()=>ue()),me(),Z()},U=(pe,ie)=>{const ce=C(_),Re=(L.value-ce)/ie*pe;J({scrollTop:Math.min(L.value-ce,Re)})},W=(pe,ie)=>{const ce=C(R),Re=(j.value-ce)/ie*pe;J({scrollLeft:Math.min(j.value-ce,Re)})},{onWheel:re}=att({atXStartEdge:ee(()=>P.value.scrollLeft<=0),atXEndEdge:ee(()=>P.value.scrollLeft>=j.value-C(R)),atYStartEdge:ee(()=>P.value.scrollTop<=0),atYEndEdge:ee(()=>P.value.scrollTop>=L.value-C(_))},(pe,ie)=>{var ce,Re,Ee,Le;(Re=(ce=k.value)==null?void 0:ce.onMouseUp)==null||Re.call(ce),(Le=(Ee=O.value)==null?void 0:Ee.onMouseUp)==null||Le.call(Ee);const Fe=C(R),Pe=C(_);J({scrollLeft:Math.min(P.value.scrollLeft+pe,j.value-Fe),scrollTop:Math.min(P.value.scrollTop+ie,L.value-Pe)})});Mo(S,"wheel",re,{passive:!1});const J=({scrollLeft:pe=P.value.scrollLeft,scrollTop:ie=P.value.scrollTop})=>{pe=Math.max(pe,0),ie=Math.max(ie,0);const ce=C(P);ie===ce.scrollTop&&pe===ce.scrollLeft||(P.value={...ce,xAxisScrollDir:Bg(ce.scrollLeft,pe),yAxisScrollDir:Bg(ce.scrollTop,ie),scrollLeft:pe,scrollTop:ie,updateRequested:!0},Vt(()=>ue()),me(),Z())},te=(pe=0,ie=0,ce=Ru)=>{const Re=C(P);ie=Math.max(0,Math.min(ie,h.totalColumn-1)),pe=Math.max(0,Math.min(pe,h.totalRow-1));const Ee=Qme(b.namespace.value),Le=C(A),Fe=i(h,Le),Pe=a(h,Le);J({scrollLeft:s(h,ie,ce,Re.scrollLeft,Le,Pe>h.width?Ee:0),scrollTop:l(h,pe,ce,Re.scrollTop,Le,Fe>h.height?Ee:0)})},X=(pe,ie)=>{const{columnWidth:ce,direction:Re,rowHeight:Ee}=h,Le=M.value(t&&ce,t&&Ee,t&&Re),Fe=`${pe},${ie}`;if(Zr(Le,Fe))return Le[Fe];{const[,Pe]=n(h,ie,C(A)),Ne=C(A),ht=fee(Re),[Rt,Lt]=u(h,pe,Ne),[tn]=n(h,ie,Ne);return Le[Fe]={position:"absolute",left:ht?void 0:`${Pe}px`,right:ht?`${Pe}px`:void 0,top:`${Lt}px`,height:`${Rt}px`,width:`${tn}px`},Le[Fe]}},ue=()=>{P.value.isScrolling=!1,Vt(()=>{M.value(-1,null,null)})};jn(()=>{if(!Kr)return;const{initScrollLeft:pe,initScrollTop:ie}=h,ce=C(S);ce&&(Ln(pe)&&(ce.scrollLeft=pe),Ln(ie)&&(ce.scrollTop=ie)),Z()});const me=()=>{const{direction:pe}=h,{scrollLeft:ie,scrollTop:ce,updateRequested:Re}=C(P),Ee=C(S);if(Re&&Ee){if(pe===ey)switch(ME()){case nA:{Ee.scrollLeft=-ie;break}case AW:{Ee.scrollLeft=ie;break}default:{const{clientWidth:Le,scrollWidth:Fe}=Ee;Ee.scrollLeft=Fe-Le-ie;break}}else Ee.scrollLeft=Math.max(0,ie);Ee.scrollTop=Math.max(0,ce)}},{resetAfterColumnIndex:Me,resetAfterRowIndex:Ae,resetAfter:ge}=w.proxy;y({windowRef:S,innerRef:I,getItemStyleCache:M,scrollTo:J,scrollToItem:te,states:P,resetAfterColumnIndex:Me,resetAfterRowIndex:Ae,resetAfter:ge});const _e=()=>{const{scrollbarAlwaysOn:pe,scrollbarStartGap:ie,scrollbarEndGap:ce,totalColumn:Re,totalRow:Ee}=h,Le=C(R),Fe=C(_),Pe=C(j),Ne=C(L),{scrollLeft:ht,scrollTop:Rt}=C(P),Lt=Fn(GL,{ref:k,alwaysOn:pe,startGap:ie,endGap:ce,class:b.e("horizontal"),clientSize:Le,layout:"horizontal",onScroll:W,ratio:Le*100/Pe,scrollFrom:ht/(Pe-Le),total:Ee,visible:!0}),tn=Fn(GL,{ref:O,alwaysOn:pe,startGap:ie,endGap:ce,class:b.e("vertical"),clientSize:Fe,layout:"vertical",onScroll:U,ratio:Fe*100/Ne,scrollFrom:Rt/(Ne-Fe),total:Re,visible:!0});return{horizontalScrollbar:Lt,verticalScrollbar:tn}},Q=()=>{var pe;const[ie,ce]=C(N),[Re,Ee]=C(V),{data:Le,totalColumn:Fe,totalRow:Pe,useIsScrolling:Ne,itemKey:ht}=h,Rt=[];if(Pe>0&&Fe>0)for(let Lt=Re;Lt<=Ee;Lt++)for(let tn=ie;tn<=ce;tn++){const Wt=ht({columnIndex:tn,data:Le,rowIndex:Lt});Rt.push(Fn(Nt,{key:Wt},(pe=m.default)==null?void 0:pe.call(m,{columnIndex:tn,data:Le,isScrolling:Ne?C(P).isScrolling:void 0,style:X(Lt,tn),rowIndex:Lt})))}return Rt},be=()=>{const pe=hr(h.innerElement),ie=Q();return[Fn(pe,{style:C(G),ref:I},Dn(pe)?ie:{default:()=>ie})]};return()=>{const pe=hr(h.containerElement),{horizontalScrollbar:ie,verticalScrollbar:ce}=_e(),Re=be();return Fn("div",{key:0,class:b.e("wrapper"),role:h.role},[Fn(pe,{class:h.className,style:C(H),onScroll:z,ref:S},Dn(pe)?Re:{default:()=>Re}),ie,ce])}}}),{max:RE,min:r2e,floor:o2e}=Math,stt={column:"columnWidth",row:"rowHeight"},iF={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},wf=(e,t,n,r)=>{const[o,i,a]=[n[r],e[stt[r]],n[iF[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[iF[r]]=t}return o[t]},i2e=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+o2e((r-n)/2),s=wf(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return RE(0,n-1)},ltt=(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 i2e(e,t,o2e(n/2),r2e(n,i-1),r,o)},Dee=(e,t,n,r)=>{const[o,i]=[t[r],t[iF[r]]];return(i>0?o[i].offset:0)>=n?i2e(e,t,0,i,n,r):ltt(e,t,RE(0,i),n,r)},a2e=({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},s2e=({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},utt={column:s2e,row:a2e},Iee=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,utt[i]],u=wf(e,t,o,i),d=l(e,o),c=RE(0,r2e(d-s,u.offset)),f=RE(0,u.offset-s+a+u.size);switch(n===hD&&(r>=f-s&&r<=c+s?n=Ru:n=wd),n){case eA:return c;case tA: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}},ctt=n2e({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)=>Iee(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>Iee(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>Dee(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:a2e,getEstimatedTotalWidth:s2e,getRowStartIndexForOffset:(e,t,n)=>Dee(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=zr(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=$L,estimatedRowHeight:t=$L})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),dtt=n2e({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 eA:return u;case tA: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===hD&&(i>=d-t&&i<=u+t?o=Ru:o=wd),o){case eA:return u;case tA: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})=>{}}),ftt="ElTableV2Grid",ptt=e=>{const t=Y(),n=Y(),r=Y(0),o=ee(()=>{const{data:g,rowHeight:y,estimatedRowHeight:m}=e;if(!m)return g.length*y}),i=ee(()=>{const{fixedData:g,rowHeight:y}=e;return(g?.length||0)*y}),a=ee(()=>zS(e.headerHeight)),s=ee(()=>{const{height:g}=e;return Math.max(0,g-C(a)-C(i))}),l=ee(()=>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 Ct(()=>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}},htt=et({name:ftt,props:$S,setup(e,{slots:t,expose:n}){const{ns:r}=un(_W),{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}=ptt(e);Sr(Xbe,m),Sb(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:O,scrollbarAlwaysOn:I,scrollbarEndGap:P,scrollbarStartGap:M,style:_,rowHeight:R,bodyWidth:N,estimatedRowHeight:V,headerWidth:L,height:j,width:H,getRowHeight:G,onScroll:Z}=e,z=Ln(V),U=z?ctt:dtt,W=C(u);return $e("div",{role:"table",class:[r.e("table"),e.class],style:_},[$e(U,{ref:o,data:S,useIsScrolling:O,itemKey:f,columnCache:0,columnWidth:z?b:N,totalColumn:1,totalRow:S.length,rowCache:w,rowHeight:z?G:R,width:H,height:C(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:M,scrollbarEndGap:P,scrollbarAlwaysOn:I,onScroll:Z,onItemRendered:p,perfMode:!1},{default:re=>{var J;const te=S[re.rowIndex];return(J=t.row)==null?void 0:J.call(t,{...re,columns:A,rowData:te})}}),C(s)&&$e(itt,{ref:l,class:r.e("header-wrapper"),columns:A,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:k,rowWidth:L,rowHeight:R,width:H,height:Math.min(W+C(i),j)},{dynamic:t.header,fixed:t.row})])}}});var OW=htt;function gtt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const vtt=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return $e(OW,pr({ref:n},r),gtt(t)?t:{default:()=>[t]})};var mtt=vtt;function ytt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const btt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return $e(OW,pr({ref:n},r),ytt(t)?t:{default:()=>[t]})};var wtt=btt;function Att(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Ctt=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return $e(OW,pr({ref:n},r),Att(t)?t:{default:()=>[t]})};var xtt=Ctt;const Stt=e=>{const{isScrolling:t}=un(_W),n=Y(!1),r=Y(),o=ee(()=>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===aA;c?.({rowKey:f,height:h,rowIndex:p},g&&!y&&g.fixed)}})},a=ee(()=>{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}},Ett="ElTableV2TableRow",ktt=et({name:Ett,props:Lg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=Stt(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 $e("div",pr({ref:l,class:e.class,style:w?g:b,role:"row"},r,C(o)),[y])}return $e("div",pr(r,{ref:l,class:e.class,style:g,role:"row"},C(o)),[y])}}});var Ttt=ktt;function _tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Dtt=(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=Iv(v,{columns:n,rowData:u,rowIndex:d},""),A=Iv(p,{columns:n,rowData:u,rowIndex:d}),S=u[h],k=o[S]||0,O=!!i,I=d<0,P=[y.e("row"),w,{[y.e(`row-depth-${k}`)]:O&&d>=0,[y.is("expanded")]:O&&a.includes(S),[y.is("fixed")]:!k&&I,[y.is("customized")]:!!t.row}],M=l?m:void 0,_={...A,columns:n,columnsStyles:r,class:P,depth:k,expandColumnKey:i,estimatedRowHeight:I?void 0:s,isScrolling:f,rowIndex:d,rowData:u,rowKey:S,rowEventHandlers:g,style:c};return $e(Ttt,pr(_,{onRowExpand:b,onMouseenter:V=>{M?.({hovered:!0,rowKey:S,event:V,rowData:u,rowIndex:d})},onMouseleave:V=>{M?.({hovered:!1,rowKey:S,event:V,rowData:u,rowIndex:d})},rowkey:S}),_tt(t)?t:{default:()=>[t]})};var Itt=Dtt;const MW=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,i=((n=r?.toString)==null?void 0:n.call(r))||"",a=pt(t,"default",e,()=>[i]);return $e("div",{class:e.class,title:i,style:o},[a])};MW.displayName="ElTableV2Cell";MW.inheritAttrs=!1;var Ott=MW;const Mtt=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:i}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return $e(_n,pr(a,{size:i,style:o}),{default:()=>[$e(ka,null,null)]})};var Ptt=Mtt;const l2e=({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=vh(l);if(t.placeholderSign===aA)return $e("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}):Yi(a,b??""),S=Iv(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},O=Zbe(m),I=O?O(k):pt(g,"default",k,()=>[$e(Ott,k,null)]),P=[d.e("row-cell"),t.class,t.align===iA.CENTER&&d.is("align-center"),t.align===iA.RIGHT&&d.is("align-right")],M=s>=0&&f&&t.key===f,_=s>=0&&u.includes(a[h]);let R;const N=`margin-inline-start: ${r*p}px;`;return M&&(ar(o)?R=$e(Ptt,pr(o,{class:[d.e("expand-icon"),d.is("expanded",_)],size:v,expanded:_,style:N,expandable:!0}),null):R=$e("div",{style:[N,`width: ${v}px; height: ${v}px;`].join(" ")},null)),$e("div",pr({class:P,style:y},S,{role:"cell"}),[R,I])};l2e.inheritAttrs=!1;var Oee=l2e;const Ntt=Yt({class:String,columns:UC,columnsStyles:{type:lt(Object),required:!0},headerIndex:Number,style:{type:lt(Object)}}),Rtt=et({name:"ElTableV2HeaderRow",props:Ntt,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})),$e("div",{class:e.class,style:i,role:"row"},[a])}}});var Btt=Rtt;function Ltt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Ftt=({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"),Iv(o,l,""),{[a.is("customized")]:!!s.header}],d={...Iv(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return $e(Btt,d,Ltt(s)?s:{default:()=>[s]})};var Utt=Ftt;const PW=(e,{slots:t})=>pt(t,"default",e,()=>{var n,r;return[$e("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});PW.displayName="ElTableV2HeaderCell";PW.inheritAttrs=!1;var ztt=PW;const $tt=e=>{const{sortOrder:t}=e;return $e(_n,{size:14,class:e.class},{default:()=>[t===oA.ASC?$e(RLe,null,null):$e(PLe,null,null)]})};var jtt=$tt;const Htt=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=vh(o);if(n.placeholderSign===aA)return $e("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=Zbe(s),f=c?c(d):pt(t,"default",d,()=>[$e(ztt,d,null)]),{sortBy:p,sortState:v,headerCellProps:h}=e;let g,y;if(v){const w=v[n.key];g=!!oF[w],y=g?w:oA.ASC}else g=n.key===p.key,y=g?p.order:oA.ASC;const m=[r.e("header-cell"),Iv(l,e,""),n.align===iA.CENTER&&r.is("align-center"),n.align===iA.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Iv(h,e),onClick:n.sortable?i:void 0,class:m,style:a,"data-key":n.key};return $e("div",pr(b,{role:"columnheader"}),[f,u&&$e(jtt,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])};var Mee=Htt;const u2e=(e,{slots:t})=>{var n;return $e("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};u2e.displayName="ElTableV2Footer";var Wtt=u2e;const c2e=(e,{slots:t})=>{const n=pt(t,"default",{},()=>[$e(obe,null,null)]);return $e("div",{class:e.class,style:e.style},[n])};c2e.displayName="ElTableV2Empty";var Vtt=c2e;const d2e=(e,{slots:t})=>{var n;return $e("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};d2e.displayName="ElTableV2Overlay";var qtt=d2e;function I2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!jo(e)}const Gtt="ElTableV2",Ktt=et({name:Gtt,props:ntt,setup(e,{slots:t,expose:n}){const r=jt("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:O,footerHeight:I,showEmpty:P,scrollTo:M,scrollToLeft:_,scrollToTop:R,scrollToRow:N,getRowHeight:V,onColumnSorted:L,onRowHeightChange:j,onRowHovered:H,onRowExpanded:G,onRowsRendered:Z,onScroll:z,onVerticalScroll:U}=ett(e);return n({scrollTo:M,scrollToLeft:_,scrollToTop:R,scrollToRow:N}),Sr(_W,{ns:r,isResetting:w,isScrolling:A}),()=>{const{cache:W,cellProps:re,estimatedRowHeight:J,expandColumnKey:te,fixedData:X,headerHeight:ue,headerClass:me,headerProps:Me,headerCellProps:Ae,sortBy:ge,sortState:_e,rowHeight:Q,rowClass:be,rowEventHandlers:De,rowKey:pe,rowProps:ie,scrollbarAlwaysOn:ce,indentSize:Re,iconSize:Ee,useIsScrolling:Le,vScrollbarSize:Fe,width:Pe}=e,Ne=C(f),ht={cache:W,class:r.e("main"),columns:C(s),data:Ne,fixedData:X,estimatedRowHeight:J,bodyWidth:C(S),headerHeight:ue,headerWidth:C(S),height:C(l),mainTableRef:g,rowKey:pe,rowHeight:Q,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,useIsScrolling:Le,width:Pe,getRowHeight:V,onRowsRendered:Z,onScroll:z},Rt=C(d),Lt=C(u),tn={cache:W,class:r.e("left"),columns:C(i),data:Ne,fixedData:X,estimatedRowHeight:J,leftTableRef:y,rowHeight:Q,bodyWidth:Rt,headerWidth:Rt,headerHeight:ue,height:Lt,rowKey:pe,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,useIsScrolling:Le,width:Rt,getRowHeight:V,onScroll:U},Wt=C(c),zt={cache:W,class:r.e("right"),columns:C(a),data:Ne,fixedData:X,estimatedRowHeight:J,rightTableRef:m,rowHeight:Q,bodyWidth:Wt,headerWidth:Wt,headerHeight:ue,height:Lt,rowKey:pe,scrollbarAlwaysOn:ce,scrollbarStartGap:2,scrollbarEndGap:Fe,width:Wt,style:`--${C(r.namespace)}-table-scrollbar-size: ${Fe}px`,useIsScrolling:Le,getRowHeight:V,onScroll:U},dt=C(o),_t={ns:r,depthMap:C(p),columnsStyles:dt,expandColumnKey:te,expandedRowKeys:C(v),estimatedRowHeight:J,hasFixedColumns:C(h),rowProps:ie,rowClass:be,rowKey:pe,rowEventHandlers:De,onRowHovered:H,onRowExpanded:G,onRowHeightChange:j},ut={cellProps:re,expandColumnKey:te,indentSize:Re,iconSize:Ee,rowKey:pe,expandedRowKeys:C(v),ns:r},rt={ns:r,headerClass:me,headerProps:Me,columnsStyles:dt},he={ns:r,sortBy:ge,sortState:_e,headerCellProps:Ae,onColumnSorted:L},Je={row:Tn=>$e(Itt,pr(Tn,_t),{row:t.row,cell:In=>{let je;return t.cell?$e(Oee,pr(In,ut,{style:dt[In.column.key]}),I2(je=t.cell(In))?je:{default:()=>[je]}):$e(Oee,pr(In,ut,{style:dt[In.column.key]}),null)}}),header:Tn=>$e(Utt,pr(Tn,rt),{header:t.header,cell:In=>{let je;return t["header-cell"]?$e(Mee,pr(In,he,{style:dt[In.column.key]}),I2(je=t["header-cell"](In))?je:{default:()=>[je]}):$e(Mee,pr(In,he,{style:dt[In.column.key]}),null)}})},ct=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:C(b)}],Ot={class:r.e("footer"),style:C(I)};return $e("div",{class:ct,style:C(O)},[$e(mtt,ht,I2(Je)?Je:{default:()=>[Je]}),$e(wtt,tn,I2(Je)?Je:{default:()=>[Je]}),$e(xtt,zt,I2(Je)?Je:{default:()=>[Je]}),t.footer&&$e(Wtt,Ot,{default:t.footer}),C(P)&&$e(Vtt,{class:r.e("empty"),style:C(k)},{default:t.empty}),t.overlay&&$e(qtt,{class:r.e("overlay")},{default:t.overlay})])}}});var Ytt=Ktt;const Qtt=Yt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:lt(Function)}}),Ztt=e=>{const t=Y(),n=Y(0),r=Y(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}),Yr(()=>{o?.()}),Ct([n,r],([i,a])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:a})}),{sizer:t,width:n,height:r}},Xtt=et({name:"ElAutoResizer",props:Qtt,setup(e,{slots:t}){const n=jt("auto-resizer"),{height:r,width:o,sizer:i}=Ztt(e),a={width:"100%",height:"100%"};return()=>{var s;return $e("div",{ref:i,class:n.b(),style:a},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}});var Jtt=Xtt;const ent=er(Ytt),tnt=er(Jtt),gD=Symbol("tabsRootContextKey"),nnt=Yt({tabs:{type:lt(Array),default:()=>fi([])},tabRefs:{type:lt(Object),default:()=>fi({})}}),f2e="ElTabBar",rnt=et({name:f2e}),ont=et({...rnt,props:nnt,setup(e,{expose:t}){const n=e,r=un(gD);r||Ji(f2e,"<el-tabs><el-tab-bar /></el-tabs>");const o=jt("tabs"),i=Y(),a=Y(),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(zr(y.paneName))return!1;const m=n.tabRefs[y.paneName];if(!m)return!1;if(!y.active)return!0;f=m[`offset${ch(g)}`],p=m[`client${ch(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${ch(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))})};Ct(()=>n.tabs,async()=>{await Vt(),l(),d()},{immediate:!0});const c=li(i,()=>l());return Yr(()=>{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:oe([C(o).e("active-bar"),C(o).is(C(r).props.tabPosition)]),style:Jt(a.value)},null,6))}});var int=en(ont,[["__file","tab-bar.vue"]]);const ant=Yt({panes:{type:lt(Array),default:()=>fi([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),snt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Pee="ElTabNav",lnt=et({name:Pee,props:ant,emits:snt,setup(e,{expose:t,emit:n}){const r=un(gD);r||Ji(Pee,"<el-tabs><tab-nav /></el-tabs>");const o=jt("tabs"),i=GRe(),a=sBe(),s=Y(),l=Y(),u=Y(),d=Y({}),c=Y(),f=Y(!1),p=Y(0),v=Y(!1),h=Y(!0),g=Uo(),y=ee(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),m=ee(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${p.value}px)`})),b=()=>{if(!s.value)return;const _=s.value[`offset${ch(y.value)}`],R=p.value;if(!R)return;const N=R>_?R-_:0;p.value=N},w=()=>{if(!s.value||!l.value)return;const _=l.value[`offset${ch(y.value)}`],R=s.value[`offset${ch(y.value)}`],N=p.value;if(_-N<=R)return;const V=_-N>R*2?N+R:_-R;p.value=V},A=async()=>{const _=l.value;if(!f.value||!u.value||!s.value||!_)return;await Vt();const R=d.value[e.currentName];if(!R)return;const N=s.value,V=["top","bottom"].includes(r.props.tabPosition),L=R.getBoundingClientRect(),j=N.getBoundingClientRect(),H=V?_.offsetWidth-j.width:_.offsetHeight-j.height,G=p.value;let Z=G;V?(L.left<j.left&&(Z=G-(j.left-L.left)),L.right>j.right&&(Z=G+L.right-j.right)):(L.top<j.top&&(Z=G-(j.top-L.top)),L.bottom>j.bottom&&(Z=G+(L.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 R=l.value[`offset${ch(y.value)}`],N=s.value[`offset${ch(y.value)}`],V=p.value;N<R?(f.value=f.value||{},f.value.prev=V,f.value.next=V+N<R,R-V<N&&(p.value=R-N)):(f.value=!1,V>0&&(p.value=0))},k=_=>{let R=0;switch(_.code){case gn.left:case gn.up:R=-1;break;case gn.right:case gn.down:R=1;break;default:return}const N=Array.from(_.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let L=N.indexOf(_.target)+R;L<0?L=N.length-1:L>=N.length&&(L=0),N[L].focus({preventScroll:!0}),N[L].click(),O()},O=()=>{h.value&&(v.value=!0)},I=()=>v.value=!1,P=(_,R)=>{d.value[R]=_},M=async()=>{await Vt();const _=d.value[e.currentName];_?.focus({preventScroll:!0})};return Ct(i,_=>{_==="hidden"?h.value=!1:_==="visible"&&setTimeout(()=>h.value=!0,50)}),Ct(a,_=>{_?setTimeout(()=>h.value=!0,50):h.value=!1}),li(u,S),jn(()=>setTimeout(()=>A(),0)),Wc(()=>S()),t({scrollToActiveTab:A,removeFocus:I,focusActiveTab:M,tabListRef:l,tabBarRef:c,scheduleRender:()=>dS(g)}),()=>{const _=f.value?[$e("span",{class:[o.e("nav-prev"),o.is("disabled",!f.value.prev)],onClick:b},[$e(_n,null,{default:()=>[$e(Kf,null,null)]})]),$e("span",{class:[o.e("nav-next"),o.is("disabled",!f.value.next)],onClick:w},[$e(_n,null,{default:()=>[$e(ka,null,null)]})])]:null,R=e.panes.map((N,V)=>{var L,j,H,G;const Z=N.uid,z=N.props.disabled,U=(j=(L=N.props.name)!=null?L:N.index)!=null?j:`${V}`,W=!z&&(N.isClosable||e.editable);N.index=`${V}`;const re=W?$e(_n,{class:"is-icon-close",onClick:X=>n("tabRemove",N,X)},{default:()=>[$e(cu,null,null)]}):null,J=((G=(H=N.slots).label)==null?void 0:G.call(H))||N.props.label,te=!z&&N.active?0:-1;return $e("div",{ref:X=>P(X,U),class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",N.active),o.is("disabled",z),o.is("closable",W),o.is("focus",v.value)],id:`tab-${U}`,key:`tab-${Z}`,"aria-controls":`pane-${U}`,role:"tab","aria-selected":N.active,tabindex:te,onFocus:()=>O(),onBlur:()=>I(),onClick:X=>{I(),n("tabClick",N,U,X)},onKeydown:X=>{W&&(X.code===gn.delete||X.code===gn.backspace)&&n("tabRemove",N,X)}},[J,re])});return g.value,$e("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!f.value),o.is(r.props.tabPosition)]},[_,$e("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?$e("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:$e(int,{ref:c,tabs:[...e.panes],tabRefs:d.value},null),R]):null])])}}}),unt=Yt({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:lt(Function),default:()=>!0},stretch:Boolean}),OI=e=>Dn(e)||Ln(e),cnt={[Gn]:e=>OI(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>OI(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>OI(e),tabAdd:()=>!0},dnt=et({name:"ElTabs",props:unt,emits:cnt,setup(e,{emit:t,slots:n,expose:r}){var o;const i=jt("tabs"),a=ee(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:d}=lD(vr(),"ElTabPane"),c=Y(),f=Y((o=e.modelValue)!=null?o:"0"),p=async(m,b=!1)=>{var w,A,S,k;if(!(f.value===m||zr(m)))try{let O;if(e.beforeLeave){const I=e.beforeLeave(m,f.value);O=I instanceof Promise?await I:I}else O=!0;if(O!==!1){const I=(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),I&&((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||zr(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 Ct(()=>e.modelValue,m=>p(m)),Ct(f,async()=>{var m;await Vt(),(m=c.value)==null||m.scrollToActiveTab()}),Sr(gD,{props:e,currentName:f,registerPane:l,unregisterPane:u,nav$:c}),r({currentName:f,get tabNavRef(){return Nme(c.value,["scheduleRender"])}}),()=>{const m=n["add-icon"],b=e.editable||e.addable?$e("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?pt(n,"add-icon"):$e(_n,{class:i.is("icon-plus")},{default:()=>[$e(o1e,null,null)]})]):null,w=()=>$e(lnt,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:h},null),A=$e("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[$e(d,null,{default:w,$stable:!0}),b]),S=$e("div",{class:i.e("content")},[pt(n,"default")]);return $e("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 fnt=dnt;const pnt=Yt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),p2e="ElTabPane",hnt=et({name:p2e}),gnt=et({...hnt,props:pnt,setup(e){const t=e,n=vr(),r=pa(),o=un(gD);o||Ji(p2e,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=jt("tab-pane"),a=Y(),s=Y(),l=ee(()=>t.closable||o.props.closable),u=mE(()=>{var h;return o.currentName.value===((h=t.name)!=null?h:s.value)}),d=Y(u.value),c=ee(()=>{var h;return(h=t.name)!=null?h:s.value}),f=mE(()=>!t.lazy||d.value||u.value),p=()=>{var h;return(h=a.value)==null?void 0:h.contains(document.activeElement)};Ct(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),Yr(()=>{o.unregisterPane(v)}),zj(()=>{var h;r.label&&((h=o.nav$.value)==null||h.scheduleRender())}),(h,g)=>C(f)?an((F(),K("div",{key:0,id:`pane-${C(c)}`,ref_key:"paneRef",ref:a,class:oe(C(i).b()),role:"tabpanel","aria-hidden":!C(u),"aria-labelledby":`tab-${C(c)}`},[pt(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Ar,C(u)]]):xe("v-if",!0)}});var h2e=en(gnt,[["__file","tab-pane.vue"]]);const vnt=er(fnt,{TabPane:h2e}),mnt=vi(h2e),ynt=Yt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Yd,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),bnt=et({name:"ElText"}),wnt=et({...bnt,props:ynt,setup(e){const t=e,n=Y(),r=fa(),o=jt("text"),i=ee(()=>[o.b(),o.m(t.type),o.m(r.value),o.is("truncated",t.truncated),o.is("line-clamp",!zr(t.lineClamp))]),a=()=>{var s,l,u,d,c,f,p;if(pp().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(!zr(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:oe(C(i)),style:Jt({"-webkit-line-clamp":s.lineClamp})},{default:nt(()=>[pt(s.$slots,"default")]),_:3},8,["class","style"]))}});var Ant=en(wnt,[["__file","text.vue"]]);const NW=er(Ant),Cnt=Yt({format:{type:String,default:"HH:mm"},modelValue:{type:lt(String)},disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:lt(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:lt(String)},maxTime:{type:lt(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:lt([String,Object]),default:()=>n1e},clearIcon:{type:lt([String,Object]),default:()=>Qd},...rm}),_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},MI=(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},Nee=e=>`${e}`.padStart(2,"0"),T1=e=>`${Nee(e.hours)}:${Nee(e.minutes)}`,xnt=(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,T1(o)},Snt=et({name:"ElTimeSelect"}),Ent=et({...Snt,props:Cnt,emits:[Tr,"blur","focus","clear",Gn],setup(e,{expose:t}){const n=e;rr.extend(HH);const{Option:r}=Dv,o=jt("input"),i=Y(),a=Wa(),{lang:s}=Hr(),l=ee(()=>n.modelValue),u=ee(()=>{const y=_f(n.start);return y?T1(y):null}),d=ee(()=>{const y=_f(n.end);return y?T1(y):null}),c=ee(()=>{const y=_f(n.step);return y?T1(y):null}),f=ee(()=>{const y=_f(n.minTime||"");return y?T1(y):null}),p=ee(()=>{const y=_f(n.maxTime||"");return y?T1(y):null}),v=ee(()=>{var y;const m=[],b=(w,A)=>{m.push({value:w,disabled:MI(A,f.value||"-1:-1")<=0||MI(A,p.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let w=u.value,A;for(;w&&d.value&&MI(w,d.value)<=0;)A=rr(w,"HH:mm").locale(s.value).format(n.format),b(A,w),w=xnt(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(Dv),{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(_n),{key:0,class:oe(C(o).e("prefix-icon"))},{default:nt(()=>[(F(),mt(hr(y.prefixIcon)))]),_:1},8,["class"])):xe("v-if",!0)]),default:nt(()=>[(F(!0),K(Nt,null,on(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 knt=en(Ent,[["__file","time-select.vue"]]);const Tnt=er(knt),_nt="timeline",Dnt=et({name:"ElTimeline",setup(e,{slots:t}){const n=jt("timeline");return Sr(_nt,t),()=>Fn("ul",{class:[n.b()]},[pt(t,"default")])}}),Int=Yt({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}),Ont=et({name:"ElTimelineItem"}),Mnt=et({...Ont,props:Int,setup(e){const t=e,n=jt("timeline-item"),r=ee(()=>[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:oe([C(n).b(),{[C(n).e("center")]:o.center}])},[x("div",{class:oe(C(n).e("tail"))},null,2),o.$slots.dot?xe("v-if",!0):(F(),K("div",{key:0,class:oe(C(r)),style:Jt({backgroundColor:o.color})},[o.icon?(F(),mt(C(_n),{key:0,class:oe(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:oe(C(n).e("dot"))},[pt(o.$slots,"dot")],2)):xe("v-if",!0),x("div",{class:oe(C(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(F(),K("div",{key:0,class:oe([C(n).e("timestamp"),C(n).is("top")])},ze(o.timestamp),3)):xe("v-if",!0),x("div",{class:oe(C(n).e("content"))},[pt(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(F(),K("div",{key:1,class:oe([C(n).e("timestamp"),C(n).is("bottom")])},ze(o.timestamp),3)):xe("v-if",!0)],2)],2))}});var g2e=en(Mnt,[["__file","timeline-item.vue"]]);const Pnt=er(Dnt,{TimelineItem:g2e}),Nnt=vi(g2e),v2e=Yt({nowrap:Boolean});var m2e=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(m2e||{});const Rnt=Object.values(m2e),RW=Yt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:lt(Object),default:null}}),Bnt=Yt({side:{type:lt(String),values:Rnt,required:!0}}),Lnt=["absolute","fixed"],Fnt=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],BW=Yt({arrowPadding:{type:lt(Number),default:5},effect:{type:lt(String),default:"light"},contentClass:String,placement:{type:lt(String),values:Fnt,default:"bottom"},reference:{type:lt(Object),default:null},offset:{type:Number,default:8},strategy:{type:lt(String),values:Lnt,default:"absolute"},showArrow:Boolean,...Es(["ariaLabel"])}),LW=Yt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:lt(Function)},"onUpdate:open":{type:lt(Function)}}),Rm={type:lt(Function)},FW=Yt({onBlur:Rm,onClick:Rm,onFocus:Rm,onMouseDown:Rm,onMouseEnter:Rm,onMouseLeave:Rm}),Unt=Yt({...LW,...RW,...FW,...BW,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:lt(Object),default:null},teleported:Boolean,to:{type:lt([String,Object]),default:"body"}}),vD=Symbol("tooltipV2"),y2e=Symbol("tooltipV2Content"),PI="tooltip_v2.open",znt=et({name:"ElTooltipV2Root"}),$nt=et({...znt,props:LW,setup(e,{expose:t}){const n=e,r=Y(n.defaultOpen),o=Y(null),i=ee({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=ee(()=>Ln(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Tv(()=>{i.value=!0},ee(()=>n.delayDuration),{immediate:!1}),u=jt("tooltip-v2"),d=ds(),c=()=>{l(),i.value=!0},f=()=>{C(a)?s():c()},p=c,v=()=>{l(),i.value=!1};return Ct(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(PI)),p()),(y=n.onOpenChange)==null||y.call(n,g)}),jn(()=>{document.addEventListener(PI,v)}),Yr(()=>{l(),document.removeEventListener(PI,v)}),Sr(vD,{contentId:d,triggerRef:o,ns:u,onClose:v,onDelayOpen:f,onOpen:p}),t({onOpen:p,onClose:v}),(g,y)=>pt(g.$slots,"default",{open:C(i)})}});var jnt=en($nt,[["__file","root.vue"]]);const Hnt=et({name:"ElTooltipV2Arrow"}),Wnt=et({...Hnt,props:{...RW,...Bnt},setup(e){const t=e,{ns:n}=un(vD),{arrowRef:r}=un(y2e),o=ee(()=>{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:Jt(C(o)),class:oe(C(n).e("arrow"))},null,6))}});var Ree=en(Wnt,[["__file","arrow.vue"]]);const Uy=Math.min,Yg=Math.max,BE=Math.round,Ex=Math.floor,Md=e=>({x:e,y:e}),Vnt={left:"right",right:"left",bottom:"top",top:"bottom"},qnt={start:"end",end:"start"};function aF(e,t,n){return Yg(e,Uy(t,n))}function zC(e,t){return typeof e=="function"?e(t):e}function Ov(e){return e.split("-")[0]}function $C(e){return e.split("-")[1]}function b2e(e){return e==="x"?"y":"x"}function UW(e){return e==="y"?"height":"width"}const Gnt=new Set(["top","bottom"]);function mh(e){return Gnt.has(Ov(e))?"y":"x"}function zW(e){return b2e(mh(e))}function Knt(e,t,n){n===void 0&&(n=!1);const r=$C(e),o=zW(e),i=UW(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=LE(a)),[a,LE(a)]}function Ynt(e){const t=LE(e);return[sF(e),t,sF(t)]}function sF(e){return e.replace(/start|end/g,t=>qnt[t])}const Bee=["left","right"],Lee=["right","left"],Qnt=["top","bottom"],Znt=["bottom","top"];function Xnt(e,t,n){switch(e){case"top":case"bottom":return n?t?Lee:Bee:t?Bee:Lee;case"left":case"right":return t?Qnt:Znt;default:return[]}}function Jnt(e,t,n,r){const o=$C(e);let i=Xnt(Ov(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(sF)))),i}function LE(e){return e.replace(/left|right|bottom|top/g,t=>Vnt[t])}function ert(e){return{top:0,right:0,bottom:0,left:0,...e}}function w2e(e){return typeof e!="number"?ert(e):{top:e,right:e,bottom:e,left:e}}function FE(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 Fee(e,t,n){let{reference:r,floating:o}=e;const i=mh(t),a=zW(t),s=UW(a),l=Ov(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($C(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const trt=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}=Fee(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}=Fee(u,f,l)),h=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function $W(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}=zC(t,e),v=w2e(p),g=s[f?c==="floating"?"reference":"floating":c],y=FE(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=FE(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 nrt=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}=zC(e,t)||{};if(u==null)return{};const c=w2e(d),f={x:n,y:r},p=zW(o),v=UW(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 O=w/2-A/2,I=k/2-h[v]/2-1,P=Uy(c[y],I),M=Uy(c[m],I),_=P,R=k-h[v]-M,N=k/2-h[v]/2+O,V=aF(_,N,R),L=!l.arrow&&$C(o)!=null&&N!==V&&i.reference[v]/2-(N<_?P:M)-h[v]/2<0,j=L?N<_?N-_:N-R:0;return{[p]:f[p]+j,data:{[p]:V,centerOffset:N-V-j,...L&&{alignmentOffset:j}},reset:L}}}),rrt=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}=zC(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Ov(o),m=mh(s),b=Ov(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=f||(b||!h?[LE(s)]:Ynt(s)),S=v!=="none";!f&&S&&A.push(...Jnt(s,h,v,w));const k=[s,...A],O=await $W(t,g),I=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&I.push(O[y]),c){const N=Knt(o,a,w);I.push(O[N[0]],O[N[1]])}if(P=[...P,{placement:o,overflows:I}],!I.every(N=>N<=0)){var M,_;const N=(((M=i.flip)==null?void 0:M.index)||0)+1,V=k[N];if(V&&(!(c==="alignment"?m!==mh(V):!1)||P.every(H=>mh(H.placement)===m?H.overflows[0]>0:!0)))return{data:{index:N,overflows:P},reset:{placement:V}};let L=(_=P.filter(j=>j.overflows[0]<=0).sort((j,H)=>j.overflows[1]-H.overflows[1])[0])==null?void 0:_.placement;if(!L)switch(p){case"bestFit":{var R;const j=(R=P.filter(H=>{if(S){const G=mh(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:R[0];j&&(L=j);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}},ort=new Set(["left","top"]);async function irt(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ov(n),s=$C(n),l=mh(n)==="y",u=ort.has(a)?-1:1,d=i&&l?-1:1,c=zC(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 art=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 irt(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}}}}},srt=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}=zC(e,t),u={x:n,y:r},d=await $W(t,l),c=mh(Ov(o)),f=b2e(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=aF(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=aF(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 mD(){return typeof window<"u"}function zb(e){return A2e(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=(A2e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A2e(e){return mD()?e instanceof Node||e instanceof iu(e).Node:!1}function Uc(e){return mD()?e instanceof Element||e instanceof iu(e).Element:!1}function zd(e){return mD()?e instanceof HTMLElement||e instanceof iu(e).HTMLElement:!1}function Uee(e){return!mD()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof iu(e).ShadowRoot}const lrt=new Set(["inline","contents"]);function jC(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lrt.has(o)}const urt=new Set(["table","td","th"]);function crt(e){return urt.has(zb(e))}const drt=[":popover-open",":modal"];function yD(e){return drt.some(t=>{try{return e.matches(t)}catch{return!1}})}const frt=["transform","translate","scale","rotate","perspective"],prt=["transform","translate","scale","rotate","perspective","filter"],hrt=["paint","layout","strict","content"];function jW(e){const t=HW(),n=Uc(e)?zc(e):e;return frt.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)||prt.some(r=>(n.willChange||"").includes(r))||hrt.some(r=>(n.contain||"").includes(r))}function grt(e){let t=s0(e);for(;zd(t)&&!zy(t);){if(jW(t))return t;if(yD(t))return null;t=s0(t)}return null}function HW(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vrt=new Set(["html","body","#document"]);function zy(e){return vrt.has(zb(e))}function zc(e){return iu(e).getComputedStyle(e)}function bD(e){return Uc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function s0(e){if(zb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uee(e)&&e.host||Zd(e);return Uee(t)?t.host:t}function C2e(e){const t=s0(e);return zy(t)?e.ownerDocument?e.ownerDocument.body:e.body:zd(t)&&jC(t)?t:C2e(t)}function sA(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=C2e(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=iu(o);if(i){const s=lF(a);return t.concat(a,a.visualViewport||[],jC(o)?o:[],s&&n?sA(s):[])}return t.concat(o,sA(o,[],n))}function lF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function x2e(e){const t=zc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zd(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=BE(n)!==i||BE(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function WW(e){return Uc(e)?e:e.contextElement}function ny(e){const t=WW(e);if(!zd(t))return Md(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=x2e(t);let a=(i?BE(n.width):n.width)/r,s=(i?BE(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const mrt=Md(0);function S2e(e){const t=iu(e);return!HW()||!t.visualViewport?mrt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yrt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==iu(e)?!1:t}function Mv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=WW(e);let a=Md(1);t&&(r?Uc(r)&&(a=ny(r)):a=ny(e));const s=yrt(i,n,r)?S2e(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=lF(v);for(;h&&r&&p!==v;){const g=ny(h),y=h.getBoundingClientRect(),m=zc(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=lF(v)}}return FE({width:d,height:c,x:l,y:u})}function wD(e,t){const n=bD(e).scrollLeft;return t?t.left+n:Mv(Zd(e)).left+n}function E2e(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-wD(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function brt(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Zd(r),s=t?yD(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Md(1);const d=Md(0),c=zd(r);if((c||!c&&!i)&&((zb(r)!=="body"||jC(a))&&(l=bD(r)),zd(r))){const p=Mv(r);u=ny(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!i?E2e(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 wrt(e){return Array.from(e.getClientRects())}function Art(e){const t=Zd(e),n=bD(e),r=e.ownerDocument.body,o=Yg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Yg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+wD(e);const s=-n.scrollTop;return zc(r).direction==="rtl"&&(a+=Yg(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const zee=25;function Crt(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=HW();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=wD(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<=zee&&(i-=v)}else u<=zee&&(i+=u);return{width:i,height:a,x:s,y:l}}const xrt=new Set(["absolute","fixed"]);function Srt(e,t){const n=Mv(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=zd(e)?ny(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 $ee(e,t,n){let r;if(t==="viewport")r=Crt(e,n);else if(t==="document")r=Art(Zd(e));else if(Uc(t))r=Srt(t,n);else{const o=S2e(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return FE(r)}function k2e(e,t){const n=s0(e);return n===t||!Uc(n)||zy(n)?!1:zc(n).position==="fixed"||k2e(n,t)}function Ert(e,t){const n=t.get(e);if(n)return n;let r=sA(e,[],!1).filter(s=>Uc(s)&&zb(s)!=="body"),o=null;const i=zc(e).position==="fixed";let a=i?s0(e):e;for(;Uc(a)&&!zy(a);){const s=zc(a),l=jW(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&xrt.has(o.position)||jC(a)&&!l&&k2e(e,a))?r=r.filter(d=>d!==a):o=s,a=s0(a)}return t.set(e,r),r}function krt(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?yD(t)?[]:Ert(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=$ee(t,d,o);return u.top=Yg(c.top,u.top),u.right=Uy(c.right,u.right),u.bottom=Uy(c.bottom,u.bottom),u.left=Yg(c.left,u.left),u},$ee(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Trt(e){const{width:t,height:n}=x2e(e);return{width:t,height:n}}function _rt(e,t,n){const r=zd(t),o=Zd(t),i=n==="fixed",a=Mv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Md(0);function u(){l.x=wD(o)}if(r||!r&&!i)if((zb(t)!=="body"||jC(o))&&(s=bD(t)),r){const p=Mv(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?E2e(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 NI(e){return zc(e).position==="static"}function jee(e,t){if(!zd(e)||zc(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zd(e)===n&&(n=n.ownerDocument.body),n}function T2e(e,t){const n=iu(e);if(yD(e))return n;if(!zd(e)){let o=s0(e);for(;o&&!zy(o);){if(Uc(o)&&!NI(o))return o;o=s0(o)}return n}let r=jee(e,t);for(;r&&crt(r)&&NI(r);)r=jee(r,t);return r&&zy(r)&&NI(r)&&!jW(r)?n:r||grt(e)||n}const Drt=async function(e){const t=this.getOffsetParent||T2e,n=this.getDimensions,r=await n(e.floating);return{reference:_rt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Irt(e){return zc(e).direction==="rtl"}const Ort={convertOffsetParentRelativeRectToViewportRelativeRect:brt,getDocumentElement:Zd,getClippingRect:krt,getOffsetParent:T2e,getElementRects:Drt,getClientRects:wrt,getDimensions:Trt,getScale:ny,isElement:Uc,isRTL:Irt};function _2e(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mrt(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=Ex(c),h=Ex(o.clientWidth-(d+f)),g=Ex(o.clientHeight-(c+p)),y=Ex(d),b={rootMargin:-v+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Yg(0,Uy(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&&!_2e(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 Prt(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=WW(e),d=o||i?[...u?sA(u):[],...sA(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=u&&s?Mrt(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?Mv(e):null;l&&g();function g(){const y=Mv(e);h&&!_2e(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 Nrt=$W,D2e=art,Rrt=srt,Brt=rrt,I2e=nrt,O2e=(e,t,n)=>{const r=new Map,o={platform:Ort,...n},i={...o.platform,_c:r};return trt(e,t,{...o,platform:i})},Lrt=Yt({style:{type:lt([String,Object,Array]),default:()=>({})}}),Frt=et({name:"ElVisuallyHidden"}),Urt=et({...Frt,props:Lrt,setup(e){const t=e,n=ee(()=>[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)}),[pt(r.$slots,"default")],16))}});var zrt=en(Urt,[["__file","visual-hidden.vue"]]);Yt({});const $rt=e=>{if(!Kr)return;if(!e)return e;const t=Sa(e);return t||(Ro(e)?t:e)},jrt=({middleware:e,placement:t,strategy:n})=>{const r=Y(),o=Y(),i=Y(),a=Y(),s=Y({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Kr)return;const d=$rt(r),c=Sa(o);if(!d||!c)return;const f=await O2e(d,c,{placement:C(t),strategy:C(n),middleware:C(e)});Ty(l).forEach(p=>{l[p].value=f[p]})};return jn(()=>{Cs(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},Hrt=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=C(e);return r?I2e({element:r,padding:t}).fn(n):{}}}),Wrt=et({name:"ElTooltipV2Content"}),Vrt=et({...Wrt,props:{...BW,...v2e},setup(e){const t=e,{triggerRef:n,contentId:r}=un(vD),o=Y(t.placement),i=Y(t.strategy),a=Y(null),{referenceRef:s,contentRef:l,middlewareData:u,x:d,y:c,update:f}=jrt({placement:o,strategy:i,middleware:ee(()=>{const b=[D2e(t.offset)];return t.showArrow&&b.push(Hrt({arrowRef:a})),b})}),p=Pb().nextZIndex(),v=jt("tooltip-v2"),h=ee(()=>o.value.split("-")[0]),g=ee(()=>({position:C(i),top:`${C(c)||0}px`,left:`${C(d)||0}px`,zIndex:p})),y=ee(()=>{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=ee(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(C(i)),t.contentClass]);return Ct(a,()=>f()),Ct(()=>t.placement,b=>o.value=b),jn(()=>{Ct(()=>t.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),Sr(y2e,{arrowRef:a}),(b,w)=>(F(),K("div",{ref_key:"contentRef",ref:l,style:Jt(C(g)),"data-tooltip-v2-root":""},[b.nowrap?xe("v-if",!0):(F(),K("div",{key:0,"data-side":C(h),class:oe(C(m))},[pt(b.$slots,"default",{contentStyle:C(g),contentClass:C(m)}),$e(C(zrt),{id:C(r),role:"tooltip"},{default:nt(()=>[b.ariaLabel?(F(),K(Nt,{key:0},[An(ze(b.ariaLabel),1)],64)):pt(b.$slots,"default",{key:1})]),_:3},8,["id"]),pt(b.$slots,"arrow",{style:Jt(C(y)),side:C(h)})],10,["data-side"]))],4))}});var Hee=en(Vrt,[["__file","content.vue"]]);const qrt=Yt({setRef:{type:lt(Function),required:!0},onlyChild:Boolean});var Grt=et({props:qrt,setup(e,{slots:t}){const n=Y(),r=fD(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?bje(i.children):i.children;return $e(Nt,{ref:r},[a])}}});const Krt=et({name:"ElTooltipV2Trigger"}),Yrt=et({...Krt,props:{...v2e,...FW},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=un(vD);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 Ct(i,(m,b)=>{y(m,g,"addEventListener"),y(b,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",a.value)}),Yr(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,b)=>m.nowrap?(F(),mt(C(Grt),{key:0,"set-ref":l,"only-child":""},{default:nt(()=>[pt(m.$slots,"default")]),_:3})):(F(),K("button",pr({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[pt(m.$slots,"default")],16))}});var Qrt=en(Yrt,[["__file","trigger.vue"]]);const Zrt=et({name:"ElTooltipV2"}),Xrt=et({...Zrt,props:Unt,setup(e){const n=_a(e),r=Ur(ru(n,Object.keys(RW))),o=Ur(ru(n,Object.keys(BW))),i=Ur(ru(n,Object.keys(LW))),a=Ur(ru(n,Object.keys(FW)));return(s,l)=>(F(),mt(jnt,Sl(Bd(i)),{default:nt(({open:u})=>[$e(Qrt,pr(a,{nowrap:""}),{default:nt(()=>[pt(s.$slots,"trigger")]),_:3},16),$e(C(Lb),{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(Hee,Sl(pr({key:0},o)),{arrow:nt(({style:d,side:c})=>[s.showArrow?(F(),mt(Ree,pr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:nt(()=>[pt(s.$slots,"default")]),_:3},16)):xe("v-if",!0)]),_:2},1040)):(F(),K(Nt,{key:1},[s.alwaysOn||u?(F(),mt(Hee,Sl(pr({key:0},o)),{arrow:nt(({style:d,side:c})=>[s.showArrow?(F(),mt(Ree,pr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:nt(()=>[pt(s.$slots,"default")]),_:3},16)):xe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Jrt=en(Xrt,[["__file","tooltip.vue"]]);const eot=er(Jrt),M2e="left-check-change",P2e="right-check-change",_1=Yt({data:{type:lt(Array),default:()=>[]},titles:{type:lt(Array),default:()=>[]},buttonTexts:{type:lt(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:lt(Function)},leftDefaultChecked:{type:lt(Array),default:()=>[]},rightDefaultChecked:{type:lt(Array),default:()=>[]},renderContent:{type:lt(Function)},modelValue:{type:lt(Array),default:()=>[]},format:{type:lt(Object),default:()=>({})},filterable:Boolean,props:{type:lt(Object),default:()=>fi({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),uF=(e,t)=>[e,t].every(qt)||qt(e)&&Zi(t),tot={[Tr]:(e,t,n)=>[e,n].every(qt)&&["left","right"].includes(t),[Gn]:e=>qt(e),[M2e]:uF,[P2e]:uF},cF="checked-change",not=Yt({data:_1.data,optionRender:{type:lt(Function)},placeholder:String,title:String,filterable:Boolean,format:_1.format,filterMethod:_1.filterMethod,defaultChecked:_1.leftDefaultChecked,props:_1.props}),rot={[cF]:uF},HC=e=>{const t={label:"label",key:"key",disabled:"disabled"};return ee(()=>({...t,...e.props}))},oot=(e,t,n)=>{const r=HC(e),o=ee(()=>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=ee(()=>o.value.filter(d=>!d[r.value.disabled])),a=ee(()=>{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=ee(()=>{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 Ct(()=>t.checked,(d,c)=>{if(l(),t.checkChangeByUser){const f=d.concat(c).filter(p=>!d.includes(p)||!c.includes(p));n(cF,d,f)}else n(cF,d),t.checkChangeByUser=!0}),Ct(i,()=>{l()}),Ct(()=>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}),Ct(()=>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}},iot=et({name:"ElTransferPanel"}),aot=et({...iot,props:not,emits:rot,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=({option:b})=>b,{t:a}=Hr(),s=jt("transfer"),l=Ur({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=HC(r),{filteredData:d,checkedSummary:c,isIndeterminate:f,handleAllCheckedChange:p}=oot(r,l,n),v=ee(()=>!Jl(l.query)&&Jl(d.value)),h=ee(()=>!Jl(o.default()[0].children)),{checked:g,allChecked:y,query:m}=_a(l);return t({query:m}),(b,w)=>(F(),K("div",{class:oe(C(s).b("panel"))},[x("p",{class:oe(C(s).be("panel","header"))},[$e(C(Yu),{modelValue:C(y),"onUpdate:modelValue":A=>Ro(y)?y.value=A:null,indeterminate:C(f),"validate-event":!1,onChange:C(p)},{default:nt(()=>[An(ze(b.title)+" ",1),x("span",null,ze(C(c)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),x("div",{class:oe([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:oe(C(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":C(OLe),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):xe("v-if",!0),an($e(C(rye),{modelValue:C(g),"onUpdate:modelValue":A=>Ro(g)?g.value=A:null,"validate-event":!1,class:oe([C(s).is("filterable",b.filterable),C(s).be("panel","list")])},{default:nt(()=>[(F(!0),K(Nt,null,on(C(d),A=>(F(),mt(C(Yu),{key:A[C(u).key],class:oe(C(s).be("panel","item")),value:A[C(u).key],disabled:A[C(u).disabled],"validate-event":!1},{default:nt(()=>{var S;return[$e(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)]]),an(x("div",{class:oe(C(s).be("panel","empty"))},[pt(b.$slots,"empty",{},()=>[An(ze(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:oe(C(s).be("panel","footer"))},[pt(b.$slots,"default")],2)):xe("v-if",!0)],2))}});var Wee=en(aot,[["__file","transfer-panel.vue"]]);const sot=e=>{const t=HC(e),n=ee(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),r=ee(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),o=ee(()=>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}},lot=(e,t,n)=>{const r=HC(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)}}},uot=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(M2e,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(P2e,o,i)}}),cot=et({name:"ElTransfer"}),dot=et({...cot,props:_1,emits:tot,setup(e,{expose:t,emit:n}){const r=e,o=pa(),{t:i}=Hr(),a=jt("transfer"),{formItem:s}=ks(),l=Ur({leftChecked:[],rightChecked:[]}),u=HC(r),{sourceData:d,targetData:c}=sot(r),{onSourceCheckedChange:f,onTargetCheckedChange:p}=uot(l,n),{addToLeft:v,addToRight:h}=lot(r,l,n),g=Y(),y=Y(),m=O=>{switch(O){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=ee(()=>r.buttonTexts.length===2),w=ee(()=>r.titles[0]||i("el.transfer.titles.0")),A=ee(()=>r.titles[1]||i("el.transfer.titles.1")),S=ee(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ct(()=>r.modelValue,()=>{var O;r.validateEvent&&((O=s?.validate)==null||O.call(s,"change").catch(I=>void 0))});const k=ee(()=>O=>{var I;if(r.renderContent)return r.renderContent(Fn,O);const P=(((I=o.default)==null?void 0:I.call(o,{option:O}))||[]).filter(M=>M.type!==ua);return P.length?P:Fn("span",O[u.value.label]||O[u.value.key])});return t({clearQuery:m,leftPanel:g,rightPanel:y}),(O,I)=>(F(),K("div",{class:oe(C(a).b())},[$e(Wee,{ref_key:"leftPanel",ref:g,data:C(d),"option-render":C(k),placeholder:C(S),title:C(w),filterable:O.filterable,format:O.format,"filter-method":O.filterMethod,"default-checked":O.leftDefaultChecked,props:r.props,onCheckedChange:C(f)},{empty:nt(()=>[pt(O.$slots,"left-empty")]),default:nt(()=>[pt(O.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),x("div",{class:oe(C(a).e("buttons"))},[$e(C(Za),{type:"primary",class:oe([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(Jl)(l.rightChecked),onClick:C(v)},{default:nt(()=>[$e(C(_n),null,{default:nt(()=>[$e(C(Kf))]),_:1}),C(zr)(O.buttonTexts[0])?xe("v-if",!0):(F(),K("span",{key:0},ze(O.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),$e(C(Za),{type:"primary",class:oe([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(Jl)(l.leftChecked),onClick:C(h)},{default:nt(()=>[C(zr)(O.buttonTexts[1])?xe("v-if",!0):(F(),K("span",{key:0},ze(O.buttonTexts[1]),1)),$e(C(_n),null,{default:nt(()=>[$e(C(ka))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),$e(Wee,{ref_key:"rightPanel",ref:y,data:C(c),"option-render":C(k),placeholder:C(S),filterable:O.filterable,format:O.format,"filter-method":O.filterMethod,title:C(A),"default-checked":O.rightDefaultChecked,props:r.props,onCheckedChange:C(p)},{empty:nt(()=>[pt(O.$slots,"right-empty")]),default:nt(()=>[pt(O.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var fot=en(dot,[["__file","transfer.vue"]]);const pot=er(fot),ry="$treeNodeId",Vee=function(e,t){!t||t[ry]||Object.defineProperty(t,ry,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},VW=(e,t)=>t?.[e||ry],dF=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},fF=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}},b4=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=fF(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||b4(o)},kx=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(Pn(o))return o(r,e);if(Dn(o))return r[o];if(zr(o)){const i=r[t];return zr(i)?"":i}},pF=function(e,t){e.forEach(n=>{n.canFocus=t,pF(n.childNodes,t)})};let hot=0,hF=class jS{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=hot++,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=kx(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)||Vee(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)||Vee(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&qt(this.data)?n=this.data:n=kx(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return kx(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return kx(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 jS)){if(!r){const o=this.getChildren(!0);o?.includes(t.data)||(zr(n)||n<0?o?.push(t.data):o?.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ur(new jS(t)),t instanceof jS&&t.initialize()}t.level=this.level+1,zr(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(),pF(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{qt(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||b4(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,pF(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}=fF(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}=fF(u);c||(this.checked=c,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),b4(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||b4(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"),zr(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[ry];!!s&&n.findIndex(u=>u?.[ry]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i?.[ry]]||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||b4(this)}};class got{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 hF({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 hF)return t;const n=ar(t)?VW(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 qW="RootTree",N2e="NodeInstance",qee="TreeNodeMap",vot=et({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=jt("tree"),n=un(N2e),r=un(qW);return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(Fn,{_self:n,node:o,data:i,store:a}):pt(r.ctx.slots,"default",{node:o,data:i},()=>[Fn(NW,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}});var mot=en(vot,[["__file","tree-node-content.vue"]]);function R2e(e){const t=un(qee,null),n={treeNodeExpand:r=>{var o;e.node!==r&&((o=e.node)==null||o.collapse())},children:[]};return t&&t.children.push(n),Sr(qee,n),{broadcastExpanded:r=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const B2e=Symbol("dragEvents");function yot({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=jt("tree"),a=Y({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Sr(B2e,{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&&$s(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,O=y?g?.75:h?.55:0:1;let I=-9999;const P=d.clientY-w.top;P<w.height*k?S="before":P>w.height*O?S="after":g?S="inner":S="none";const M=b.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),_=r.value;S==="before"?I=M.top-A.top:S==="after"&&(I=M.bottom-A.top),_.style.top=`${I}px`,_.style.left=`${M.right-A.left}px`,S==="inner"?Nu(b,i.is("drop-inner")):$s(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)})),$s(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 bot=et({name:"ElTreeNode",components:{ElCollapseTransition:cD,ElCheckbox:Yu,NodeContent:mot,ElIcon:_n,Loading:Bc},props:{node:{type:hF,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=jt("tree"),{broadcastExpanded:r}=R2e(e),o=un(qW),i=Y(!1),a=Y(!1),s=Y(),l=Y(),u=Y(),d=un(B2e),c=vr();Sr(N2e,c),e.node.expanded&&(i.value=!0,a.value=!0);const f=o.props.props.children||"children";Ct(()=>{var I;const P=(I=e.node.data)==null?void 0:I[f];return P&&[...P]},()=>{e.node.updateChildren()}),Ct(()=>e.node.indeterminate,I=>{h(e.node.checked,I)}),Ct(()=>e.node.checked,I=>{h(I,e.node.indeterminate)}),Ct(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Ct(()=>e.node.expanded,I=>{Vt(()=>i.value=I),I&&(a.value=!0)});const p=I=>VW(o.props.nodeKey,I.data),v=I=>{const P=e.props.class;if(!P)return{};let M;if(Pn(P)){const{data:_}=I;M=P(_,I)}else M=P;return Dn(M)?{[M]:!0}:M},h=(I,P)=>{(s.value!==I||l.value!==P)&&o.ctx.emit("check-change",e.node.data,I,P),s.value=I,l.value=P},g=I=>{dF(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,I)},y=I=>{var P;(P=o.instance.vnode.props)!=null&&P.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),o.ctx.emit("node-contextmenu",I,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=I=>{e.node.setChecked(I,!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:(I,P,M)=>{r(P),o.ctx.emit("node-expand",I,P,M)},handleDragStart:I=>{o.props.draggable&&d.treeNodeDragStart({event:I,treeNode:e})},handleDragOver:I=>{I.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:I,treeNode:{$el:u.value,node:e.node}})},handleDrop:I=>{I.preventDefault()},handleDragEnd:I=>{o.props.draggable&&d.treeNodeDragEnd(I)},CaretRight:t1e}}});function wot(e,t,n,r,o,i){const a=lr("el-icon"),s=lr("el-checkbox"),l=lr("loading"),u=lr("node-content"),d=lr("el-tree-node"),c=lr("el-collapse-transition");return an((F(),K("div",{ref:"node$",class:oe([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:oe(e.ns.be("node","content")),style:Jt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(F(),mt(a,{key:0,class:oe([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:oe([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:nt(()=>[$e(l)]),_:1},8,["class"])):xe("v-if",!0),$e(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),$e(c,null,{default:nt(()=>[!e.renderAfterExpand||e.childNodeRendered?an((F(),K("div",{key:0,class:oe(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:Qt(()=>{},["stop"])},[(F(!0),K(Nt,null,on(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 Aot=en(bot,[["render",wot],["__file","tree-node.vue"]]);function Cot({el$:e},t){const n=jt("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 xot=et({name:"ElTree",components:{ElTreeNode:Aot},props:{data:{type:lt(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:lt(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:lt(Function)},allowDrop:{type:lt(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=jt("tree"),o=un(Ub,null),i=Y(new got({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=Y(i.value.root),s=Y(null),l=Y(null),u=Y(null),{broadcastExpanded:d}=R2e(e),{dragState:c}=yot({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});Cot({el$:l},i);const f=ee(()=>{const{childNodes:H}=a.value,G=o?o.hasFilteredOptions!==0:!1;return(!H||H.length===0||H.every(({visible:Z})=>!Z))&&!G});Ct(()=>e.currentNodeKey,H=>{i.value.setCurrentNodeKey(H??null)}),Ct(()=>e.defaultCheckedKeys,(H,G)=>{ca(H,G)||i.value.setDefaultCheckedKey(H??[])}),Ct(()=>e.defaultExpandedKeys,H=>{i.value.setDefaultExpandedKeys(H??[])}),Ct(()=>e.data,H=>{i.value.setData(H)},{deep:!0}),Ct(()=>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=>VW(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 z=G.parent;for(;z&&z!==a.value;)Z.push(z.data),z=z.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(),O=()=>i.value.getHalfCheckedKeys(),I=(H,G=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");dF(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");dF(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(H??null,G)})},M=H=>i.value.getNode(H),_=H=>{i.value.remove(H)},R=(H,G)=>{i.value.append(H,G)},N=(H,G)=>{i.value.insertBefore(H,G)},V=(H,G)=>{i.value.insertAfter(H,G)},L=(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(qW,{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:O,setCurrentNode:I,setCurrentKey:P,t:n,getNode:M,remove:_,append:R,insertBefore:N,insertAfter:V,handleNodeExpand:L,updateKeyChildren:j}}});function Sot(e,t,n,r,o,i){const a=lr("el-tree-node");return F(),K("div",{ref:"el$",class:oe([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(Nt,null,on(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:oe(e.ns.e("empty-block"))},[pt(e.$slots,"empty",{},()=>{var s;return[x("span",{class:oe(e.ns.e("empty-text"))},ze((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):xe("v-if",!0),an(x("div",{ref:"dropIndicator$",class:oe(e.ns.e("drop-indicator"))},null,2),[[Ar,e.dragState.showDropIndicator]])],2)}var Eot=en(xot,[["render",Sot],["__file","tree.vue"]]);const UE=er(Eot),kot=(e,{attrs:t,emit:n},{select:r,tree:o,key:i})=>{const a=jt("tree-select");return Ct(()=>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(Dv.props)),...t,class:ee(()=>t.class),style:ee(()=>t.style),"onUpdate:modelValue":l=>n(Gn,l),valueKey:i,popperClass:ee(()=>{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)}}},Tot=et({extends:TE,setup(e,t){const n=TE.setup(e,t);delete n.selectOptionClick;const r=vr().proxy;return Vt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),Ct(()=>t.attrs.visible,o=>{Vt(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function gF(e){return e||e===0}function GW(e){return qt(e)&&e.length}function Bm(e){return qt(e)?e:gF(e)?[e]:[]}function HS(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(GW(s)){const l=HS(s,t,n,r,a);if(l)return l}}}}function WS(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);GW(a)&&WS(a,t,n,i)}}const _ot=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{Ct([()=>e.modelValue,i],()=>{e.showCheckbox&&Vt(()=>{const f=i.value;f&&!ca(f.getCheckedKeys(),Bm(e.modelValue))&&f.setCheckedKeys(Bm(e.modelValue))})},{immediate:!0,deep:!0});const s=ee(()=>({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=Bm(e.modelValue).map(f=>HS(e.data||[],p=>l("value",p)===f,p=>l("children",p),(p,v,h,g)=>g&&l("value",g))).filter(f=>gF(f)),d=ee(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return WS(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(UE.props)),...t,nodeKey:a,expandOnClickNode:ee(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:ee(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:p,data:v,store:h})=>f(Tot,{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(gW(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={};WS([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const y=p.checkedKeys,m=e.multiple?Bm(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=HS([f],k=>!GW(l("children",k))&&!l("disabled",k),k=>l("children",k)),A=w?l("value",w):void 0,S=gF(e.modelValue)&&!!HS([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=Bm(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();WS([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const m=Bm(e.modelValue).filter(w=>!(w in g)&&!y.includes(w)),b=c();r(Gn,m.concat(b))}})},cacheOptions:d}};var Dot=et({props:{data:{type:Array,default:()=>[]}},setup(e){const t=un(Ub);return Ct(()=>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 Iot=et({name:"ElTreeSelect",inheritAttrs:!1,props:{...Dv.props,...UE.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=Y(),i=Y(),a=ee(()=>e.nodeKey||e.valueKey||"value"),s=kot(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=_ot(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(Dv,Ur({...s,ref:c=>o.value=c}),{...n,default:()=>[Fn(Dot,{data:l.value}),Fn(UE,Ur({...u,ref:c=>i.value=c}))]})}});var Oot=en(Iot,[["__file","tree-select.vue"]]);const Mot=er(Oot),KW=Symbol(),Pot={key:-1,level:-1,data:{}};var w4=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(w4||{}),vF=(e=>(e.ADD="add",e.DELETE="delete",e))(vF||{});const L2e={type:Number,default:26},Not=Yt({data:{type:lt(Array),default:()=>fi([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:lt(Object),default:()=>fi({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:lt(Array),default:()=>fi([])},checkStrictly:Boolean,defaultExpandedKeys:{type:lt(Array),default:()=>fi([])},indent:{type:Number,default:16},itemSize:L2e,icon:{type:vo},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:lt([String,Number])},accordion:Boolean,filterMethod:{type:lt(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Rot=Yt({node:{type:lt(Object),default:()=>fi(Pot)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:L2e}),Bot=Yt({node:{type:lt(Object),required:!0}}),F2e="node-click",U2e="node-drop",z2e="node-expand",$2e="node-collapse",j2e="current-change",H2e="check",W2e="check-change",V2e="node-contextmenu",Lot={[F2e]:(e,t,n)=>e&&t&&n,[U2e]:(e,t,n)=>e&&t&&n,[z2e]:(e,t)=>e&&t,[$2e]:(e,t)=>e&&t,[j2e]:(e,t)=>e&&t,[H2e]:(e,t)=>e&&t,[W2e]:(e,t)=>e&&Co(t),[V2e]:(e,t,n)=>e&&t&&n},Fot={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Co(t)};function Uot(e,t){const n=Y(new Set),r=Y(new Set),{emit:o}=vr();Ct([()=>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 O=b.get(k);O&&O.forEach(I=>{const P=I.children;if(P){let M=!0,_=!1;for(const R of P){const N=R.key;if(A.has(N))_=!0;else if(S.has(N)){M=!1,_=!0;break}else M=!1}M?A.add(I.key):_?(S.add(I.key),A.delete(I.key)):(A.delete(I.key),S.delete(I.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,O=(I,P)=>{k[P?vF.ADD:vF.DELETE](I.key);const M=I.children;!e.checkStrictly&&M&&M.forEach(_=>{_.disabled||O(_,P)})};O(b,w),S&&i(),A&&u(b,w)},u=(b,w)=>{const{checkedNodes:A,checkedKeys:S}=v(),{halfCheckedNodes:k,halfCheckedKeys:O}=h();o(H2e,b.data,{checkedKeys:S,checkedNodes:A,halfCheckedKeys:O,halfCheckedNodes:k}),o(W2e,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 O=S.get(k);O&&(!b||b&&O.isLeaf)&&(A.push(k),w.push(O.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 zot(e,t){const n=Y(new Set([])),r=Y(new Set([])),o=ee(()=>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 $ot(e,t){const n=Y(new Set),r=Y(),o=Uo(),i=Y(),{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v}=Uot(e,o),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=zot(e,o),m=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.value)||w4.KEY}),b=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.children)||w4.CHILDREN}),w=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.disabled)||w4.DISABLED}),A=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.label)||w4.LABEL}),S=ee(()=>{var Ae;const ge=n.value,_e=g.value,Q=[],be=((Ae=o.value)==null?void 0:Ae.treeNodes)||[],De=[];for(let pe=be.length-1;pe>=0;--pe)De.push(be[pe]);for(;De.length;){const pe=De.pop();if(!_e.has(pe.key)&&(Q.push(pe),pe.children&&ge.has(pe.key)))for(let ie=pe.children.length-1;ie>=0;--ie)De.push(pe.children[ie])}return Q}),k=ee(()=>S.value.length>0);function O(Ae){const ge=new Map,_e=new Map;let Q=1;function be(pe,ie=1,ce=void 0){var Re;const Ee=[];for(const Le of pe){const Fe=M(Le),Pe={level:ie,key:Fe,data:Le};Pe.label=R(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,ie+1,Pe)),Ee.push(Pe),ge.set(Fe,Pe),_e.has(ie)||_e.set(ie,[]),(Re=_e.get(ie))==null||Re.push(Pe)}return ie>Q&&(Q=ie),Ee}const De=be(Ae);return{treeNodeMap:ge,levelTreeNodeMap:_e,maxLevel:Q,treeNodes:De}}function I(Ae){const ge=h(Ae);ge&&(n.value=ge)}function P(Ae){return Ae[b.value]}function M(Ae){return Ae?Ae[m.value]:""}function _(Ae){return Ae[w.value]}function R(Ae){return Ae[A.value]}function N(Ae){n.value.has(Ae.key)?z(Ae):Z(Ae)}function V(Ae){const ge=new Set,_e=o.value.treeNodeMap;Ae.forEach(Q=>{let be=_e.get(Q);for(;be&&!ge.has(be.key);)ge.add(be.key),be.expanded=!0,be=be.parent}),n.value=ge}function L(Ae,ge){t(F2e,Ae.data,Ae,ge),H(Ae),e.expandOnClickNode&&N(Ae),e.showCheckbox&&(e.checkOnClickNode||Ae.isLeaf&&e.checkOnClickLeaf)&&!Ae.disabled&&l(Ae,!s(Ae),!0)}function j(Ae,ge){t(U2e,Ae.data,Ae,ge)}function H(Ae){W(Ae)||(r.value=Ae.key,t(j2e,Ae.data,Ae))}function G(Ae,ge){l(Ae,ge)}function Z(Ae){const ge=n.value;if(o.value&&e.accordion){const{treeNodeMap:_e}=o.value;ge.forEach(Q=>{const be=_e.get(Q);Ae&&Ae.level===be?.level&&(ge.delete(Q),be.expanded=!1)})}ge.add(Ae.key),Ae.expanded=!0,t(z2e,Ae.data,Ae)}function z(Ae){n.value.delete(Ae.key),Ae.expanded=!1,t($2e,Ae.data,Ae)}function U(Ae){return!!Ae.disabled}function W(Ae){const ge=r.value;return ge!==void 0&&ge===Ae.key}function re(){var Ae,ge;if(r.value)return(ge=(Ae=o.value)==null?void 0:Ae.treeNodeMap.get(r.value))==null?void 0:ge.data}function J(){return r.value}function te(Ae){r.value=Ae}function X(Ae){o.value=O(Ae)}function ue(Ae){var ge;const _e=ar(Ae)?M(Ae):Ae;return(ge=o.value)==null?void 0:ge.treeNodeMap.get(_e)}function me(Ae,ge="auto"){const _e=ue(Ae);_e&&i.value&&i.value.scrollToItem(S.value.indexOf(_e),ge)}function Me(Ae){var ge;(ge=i.value)==null||ge.scrollTo(Ae)}return Ct(()=>e.currentNodeKey,Ae=>{r.value=Ae},{immediate:!0}),Ct(()=>e.defaultExpandedKeys,Ae=>{n.value=new Set(Ae)},{immediate:!0}),Ct(()=>e.data,Ae=>{X(Ae)},{immediate:!0}),{tree:o,flattenTree:S,isNotEmpty:k,listRef:i,getKey:M,getChildren:P,toggleExpand:N,toggleCheckbox:l,isChecked:s,isIndeterminate:a,isDisabled:U,isCurrent:W,isForceHiddenExpandIcon:y,handleNodeClick:L,handleNodeDrop:j,handleNodeCheck:G,getCurrentNode:re,getCurrentKey:J,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v,filter:I,setData:X,getNode:ue,expandNode:Z,collapseNode:z,setExpandedKeys:V,scrollToNode:me,scrollTo:Me}}var jot=et({name:"ElTreeNodeContent",props:Bot,setup(e){const t=un(KW),n=jt("tree");return()=>{const r=e.node,{data:o}=r;return t?.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Fn(NW,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[r?.label])}}});const Hot=et({name:"ElTreeNode"}),Wot=et({...Hot,props:Rot,emits:Fot,setup(e,{emit:t}){const n=e,r=un(KW),o=jt("tree"),i=ee(()=>{var p;return(p=r?.props.indent)!=null?p:16}),a=ee(()=>{var p;return(p=r?.props.icon)!=null?p:t1e}),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 Dn(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(V2e,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:oe([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:oe(C(o).be("node","content")),style:Jt({paddingLeft:`${(p.node.level-1)*C(i)}px`,height:p.itemSize+"px"})},[C(a)?(F(),mt(C(_n),{key:0,class:oe([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(Yu),{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),$e(C(jot),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Vot=en(Wot,[["__file","tree-node.vue"]]);const qot=et({name:"ElTreeV2"}),Got=et({...qot,props:Not,emits:Lot,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=ee(()=>r.itemSize);Sr(KW,{ctx:{emit:n,slots:o},props:r,instance:vr()}),Sr(Fd,void 0);const{t:a}=Hr(),s=jt("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:O,getCheckedNodes:I,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:_,setCheckedKeys:R,filter:N,setData:V,getNode:L,expandNode:j,collapseNode:H,setExpandedKeys:G,scrollToNode:Z,scrollTo:z}=$ot(r,n);return t({toggleCheckbox:w,getCurrentNode:A,getCurrentKey:S,setCurrentKey:k,getCheckedKeys:O,getCheckedNodes:I,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:_,setCheckedKeys:R,filter:N,setData:V,getNode:L,expandNode:j,collapseNode:H,setExpandedKeys:G,scrollToNode:Z,scrollTo:z}),(U,W)=>(F(),K("div",{class:oe([C(s).b(),{[C(s).m("highlight-current")]:U.highlightCurrent}]),role:"tree"},[C(u)?(F(),mt(C(Ebe),{key:0,ref_key:"listRef",ref:d,"class-name":C(s).b("virtual-list"),data:C(l),total:C(l).length,height:U.height,"item-size":C(i),"perf-mode":U.perfMode,"scrollbar-always-on":U.scrollbarAlwaysOn},{default:nt(({data:re,index:J,style:te})=>[(F(),mt(Vot,{key:re[J].key,style:Jt(te),node:re[J],expanded:re[J].expanded,"show-checkbox":U.showCheckbox,checked:C(p)(re[J]),indeterminate:C(f)(re[J]),"item-size":C(i),disabled:C(v)(re[J]),current:C(h)(re[J]),"hidden-expand-icon":C(g)(re[J]),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:oe(C(s).e("empty-block"))},[pt(U.$slots,"empty",{},()=>{var re;return[x("span",{class:oe(C(s).e("empty-text"))},ze((re=U.emptyText)!=null?re:C(a)("el.tree.emptyText")),3)]})],2))],2))}});var Kot=en(Got,[["__file","tree.vue"]]);const Yot=er(Kot),q2e=Symbol("uploadContextKey"),Qot="ElUpload";class Zot extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function Gee(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 Zot(r,n.status,t.method,e)}function Xot(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Jot=e=>{typeof XMLHttpRequest>"u"&&Ji(Qot,"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(Gee(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Gee(n,e,t));e.onSuccess(Xot(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},G2e=["text","picture","picture-card"];let eit=1;const mF=()=>Date.now()+eit++,K2e=Yt({action:{type:String,default:"#"},headers:{type:lt(Object)},method:{type:String,default:"post"},data:{type:lt([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:lt(Array),default:()=>fi([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:G2e,default:"text"},httpRequest:{type:lt(Function),default:Jot},disabled:Boolean,limit:Number}),tit=Yt({...K2e,beforeUpload:{type:lt(Function),default:go},beforeRemove:{type:lt(Function)},onRemove:{type:lt(Function),default:go},onChange:{type:lt(Function),default:go},onPreview:{type:lt(Function),default:go},onSuccess:{type:lt(Function),default:go},onProgress:{type:lt(Function),default:go},onError:{type:lt(Function),default:go},onExceed:{type:lt(Function),default:go},crossorigin:{type:lt(String)}}),nit=Yt({files:{type:lt(Array),default:()=>fi([])},disabled:Boolean,handlePreview:{type:lt(Function),default:go},listType:{type:String,values:G2e,default:"text"},crossorigin:{type:lt(String)}}),rit={remove:e=>!!e},oit=et({name:"ElUploadList"}),iit=et({...oit,props:nit,emits:rit,setup(e,{emit:t}){const n=e,{t:r}=Hr(),o=jt("upload"),i=jt("icon"),a=jt("list"),s=Wa(),l=Y(!1),u=ee(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),d=c=>{t("remove",c)};return(c,f)=>(F(),mt(Qge,{tag:"ul",class:oe(C(u)),name:C(a).b()},{default:nt(()=>[(F(!0),K(Nt,null,on(c.files,(p,v)=>(F(),K("li",{key:p.uid||p.name,class:oe([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},[pt(c.$slots,"default",{file:p,index:v},()=>[c.listType==="picture"||p.status!=="uploading"&&c.listType==="picture-card"?(F(),K("img",{key:0,class:oe(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:oe(C(o).be("list","item-info"))},[x("a",{class:oe(C(o).be("list","item-name")),onClick:Qt(h=>c.handlePreview(p),["prevent"])},[$e(C(_n),{class:oe(C(i).m("document"))},{default:nt(()=>[$e(C(_y))]),_:1},8,["class"]),x("span",{class:oe(C(o).be("list","item-file-name")),title:p.name},ze(p.name),11,["title"])],10,["onClick"]),p.status==="uploading"?(F(),mt(C(vbe),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Jt(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:oe(C(o).be("list","item-status-label"))},[c.listType==="text"?(F(),mt(C(_n),{key:0,class:oe([C(i).m("upload-success"),C(i).m("circle-check")])},{default:nt(()=>[$e(C(xH))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(F(),mt(C(_n),{key:1,class:oe([C(i).m("upload-success"),C(i).m("check")])},{default:nt(()=>[$e(C(OC))]),_:1},8,["class"])):xe("v-if",!0)],2),C(s)?xe("v-if",!0):(F(),mt(C(_n),{key:2,class:oe(C(i).m("close")),onClick:h=>d(p)},{default:nt(()=>[$e(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:oe(C(i).m("close-tip"))},ze(C(r)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(F(),K("span",{key:4,class:oe(C(o).be("list","item-actions"))},[x("span",{class:oe(C(o).be("list","item-preview")),onClick:h=>c.handlePreview(p)},[$e(C(_n),{class:oe(C(i).m("zoom-in"))},{default:nt(()=>[$e(C(s1e))]),_:1},8,["class"])],10,["onClick"]),C(s)?xe("v-if",!0):(F(),K("span",{key:0,class:oe(C(o).be("list","item-delete")),onClick:h=>d(p)},[$e(C(_n),{class:oe(C(i).m("delete"))},{default:nt(()=>[$e(C(rLe))]),_:1},8,["class"])],10,["onClick"]))],2)):xe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),pt(c.$slots,"append")]),_:3},8,["class","name"]))}});var Kee=en(iit,[["__file","upload-list.vue"]]);const ait=Yt({disabled:Boolean}),sit={file:e=>qt(e)},Y2e="ElUploadDrag",lit=et({name:Y2e}),uit=et({...lit,props:ait,emits:sit,setup(e,{emit:t}){un(q2e)||Ji(Y2e,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=jt("upload"),o=Y(!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:oe([C(r).b("dragger"),C(r).is("dragover",o.value)]),onDrop:Qt(a,["prevent"]),onDragover:Qt(s,["prevent"]),onDragleave:Qt(l,["prevent"])},[pt(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var cit=en(uit,[["__file","upload-dragger.vue"]]);const dit=Yt({...K2e,beforeUpload:{type:lt(Function),default:go},onRemove:{type:lt(Function),default:go},onStart:{type:lt(Function),default:go},onSuccess:{type:lt(Function),default:go},onProgress:{type:lt(Function),default:go},onError:{type:lt(Function),default:go},onExceed:{type:lt(Function),default:go}}),fit=et({name:"ElUploadContent",inheritAttrs:!1}),pit=et({...fit,props:dit,setup(e,{expose:t}){const n=e,r=jt("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=mF(),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=D3(n.data)?vE(n.data):n.data,g=await w,D3(n.data)&&ca(b,y)&&(y=vE(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:O,onError:I,httpRequest:P}=n;try{g=await u(g??m,h)}catch{n.onRemove(h);return}const{uid:M}=h,_={headers:y||{},withCredentials:w,file:h,data:g,method:b,filename:A,action:S,onProgress:N=>{k(N,h)},onSuccess:N=>{O(N,h),delete i.value[M]},onError:N=>{I(N,h),delete i.value[M]}},R=P(_);i.value[M]=R,R instanceof Promise&&R.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=>{Gme(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:oe([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(cit,{key:0,disabled:C(o),onFile:s},{default:nt(()=>[pt(h.$slots,"default")]),_:3},8,["disabled"])):pt(h.$slots,"default",{key:1}),x("input",{ref_key:"inputRef",ref:a,class:oe(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 Yee=en(pit,[["__file","upload-content.vue"]]);const Qee="ElUpload",Zee=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},hit=(e,t)=>{const n=Ume(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=mF());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||Ji(Qee,"file to be removed not found");const h=g=>{o(g),a(g),e.onRemove(g,n.value),Zee(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 Ct(()=>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}))}),Ct(n,p=>{for(const v of p)v.uid||(v.uid=mF()),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:Zee}},git=et({name:"ElUpload"}),vit=et({...git,props:tit,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}=hit(n,o),h=ee(()=>n.listType==="picture-card"),g=ee(()=>({...n,fileList:l.value,onStart:u,onProgress:p,onSuccess:f,onError:d,onRemove:c}));return Yr(()=>{l.value.forEach(v)}),Sr(q2e,{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(Kee,{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(()=>[$e(Yee,pr({ref_key:"uploadRef",ref:o},C(g)),{default:nt(()=>[y.$slots.trigger?pt(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?pt(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:nt(({file:b,index:w})=>[pt(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(Yee,pr({key:1,ref_key:"uploadRef",ref:o},C(g)),{default:nt(()=>[y.$slots.trigger?pt(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?pt(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)):xe("v-if",!0),y.$slots.trigger?pt(y.$slots,"default",{key:2}):xe("v-if",!0),pt(y.$slots,"tip"),!C(h)&&y.showFileList?(F(),mt(Kee,{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})=>[pt(y.$slots,"file",{file:b,index:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):xe("v-if",!0)]))}});var mit=en(vit,[["__file","upload.vue"]]);const yit=er(mit),bit=Yt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:lt([String,Array]),default:"Element Plus"},font:{type:lt(Object)},gap:{type:lt(Array),default:()=>[100,100]},offset:{type:lt(Array)}});function wit(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Ait(e){return Object.keys(e).map(t=>`${wit(t)}: ${e[t]};`).join(" ")}function Cit(){return window.devicePixelRatio||1}const xit=(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},Q2e=3,Sit={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function RI(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 Eit(){function e(t,n,r,o,i,a,s,l,u){const[d,c,f,p]=RI(o,i,r);if(t instanceof HTMLImageElement)d.drawImage(t,0,0,f,p);else{const{color:U,fontSize:W,fontStyle:re,fontWeight:J,fontFamily:te,textAlign:X,textBaseline:ue}=a,me=Number(W)*r;d.font=`${re} normal ${J} ${me}px/${i}px ${te}`,d.fillStyle=U,d.textAlign=X,d.textBaseline=ue;const Me=qt(t)?t:[t];Me?.forEach((Ae,ge)=>{const[_e,Q]=Sit[X];d.fillText(Ae??"",f*_e+u*Q,ge*(me+Q2e*r))})}const v=Math.PI/180*Number(n),h=Math.max(o,i),[g,y,m]=RI(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(U,W){const re=U*Math.cos(v)-W*Math.sin(v),J=U*Math.sin(v)+W*Math.cos(v);return[re,J]}let w=0,A=0,S=0,k=0;const O=f/2,I=p/2;[[0-O,0-I],[0+O,0-I],[0+O,0+I],[0-O,0+I]].forEach(([U,W])=>{const[re,J]=b(U,W);w=Math.min(w,re),A=Math.max(A,re),S=Math.min(S,J),k=Math.max(k,J)});const M=w+m/2,_=S+m/2,R=A-w,N=k-S,V=s*r,L=l*r,j=(R+V)*2,H=N+L,[G,Z]=RI(j,H);function z(U=0,W=0){G.drawImage(y,M,_,R,N,U,W,R,N)}return z(),z(R+V,-N/2-L/2),z(R+V,+N/2+L/2),[Z.toDataURL(),j/r,H/r]}return e}const kit=et({name:"ElWatermark"}),Tit=et({...kit,props:bit,setup(e){const t=e,n={position:"relative"},r=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.color)!=null?M:"rgba(0,0,0,.15)"}),o=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.fontSize)!=null?M:16}),i=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.fontWeight)!=null?M:"normal"}),a=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.fontStyle)!=null?M:"normal"}),s=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.fontFamily)!=null?M:"sans-serif"}),l=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.textAlign)!=null?M:"center"}),u=ee(()=>{var P,M;return(M=(P=t.font)==null?void 0:P.textBaseline)!=null?M:"hanging"}),d=ee(()=>t.gap[0]),c=ee(()=>t.gap[1]),f=ee(()=>d.value/2),p=ee(()=>c.value/2),v=ee(()=>{var P,M;return(M=(P=t.offset)==null?void 0:P[0])!=null?M:f.value}),h=ee(()=>{var P,M;return(M=(P=t.offset)==null?void 0:P[1])!=null?M:p.value}),g=()=>{const P={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=v.value-f.value,_=h.value-p.value;return M>0&&(P.left=`${M}px`,P.width=`calc(100% - ${M}px)`,M=0),_>0&&(P.top=`${_}px`,P.height=`calc(100% - ${_}px)`,_=0),P.backgroundPosition=`${M}px ${_}px`,P},y=Uo(null),m=Uo(),b=Y(!1),w=()=>{m.value&&(m.value.remove(),m.value=void 0)},A=(P,M)=>{var _;y.value&&m.value&&(b.value=!0,m.value.setAttribute("style",Ait({...g(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(M)}px`})),(_=y.value)==null||_.append(m.value),setTimeout(()=>{b.value=!1}))},S=P=>{let M=120,_=64,R=0;const{image:N,content:V,width:L,height:j,rotate:H}=t;if(!N&&P.measureText){P.font=`${Number(o.value)}px ${s.value}`;const G=qt(V)?V:[V];let Z=0,z=0;G.forEach(W=>{const{width:re,fontBoundingBoxAscent:J,fontBoundingBoxDescent:te,actualBoundingBoxAscent:X,actualBoundingBoxDescent:ue}=P.measureText(W),me=zr(J)?X+ue:J+te;re>Z&&(Z=Math.ceil(re)),me>z&&(z=Math.ceil(me))}),M=Z,_=z*G.length+(G.length-1)*Q2e;const U=Math.PI/180*Number(H);R=Math.ceil(Math.abs(Math.sin(U)*_)/2),M+=R}return[L??M,j??_,R]},k=Eit(),O=()=>{const M=document.createElement("canvas").getContext("2d"),_=t.image,R=t.content,N=t.rotate;if(M){m.value||(m.value=document.createElement("div"));const V=Cit(),[L,j,H]=S(M),G=Z=>{const[z,U]=k(Z||"",N,V,L,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(z,U)};if(_){const Z=new Image;Z.onload=()=>{G(Z)},Z.onerror=()=>{G(R)},Z.crossOrigin="anonymous",Z.referrerPolicy="no-referrer",Z.src=_}else G(R)}};return jn(()=>{O()}),Ct(()=>t,()=>{O()},{deep:!0,flush:"post"}),Yr(()=>{w()}),Fme(y,P=>{b.value||P.forEach(M=>{xit(M,m.value)&&(w(),O())})},{attributes:!0,subtree:!0,childList:!0}),(P,M)=>(F(),K("div",{ref_key:"containerRef",ref:y,style:Jt([n])},[pt(P.$slots,"default")],4))}});var _it=en(Tit,[["__file","watermark.vue"]]);const Dit=er(_it),Iit=Yt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:lt(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Oit=(e,t,n,r,o)=>{const i=Y(null),a=()=>{let c;return Dn(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}Mit(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(()=>{Ct([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Yr(()=>{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=ee(()=>{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=ee(()=>{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}},AD=Symbol("ElTour");function Mit(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 Pit=(e,t,n,r,o,i,a,s)=>{const l=Y(),u=Y(),d=Y({}),c={x:l,y:u,placement:r,strategy:o,middlewareData:d},f=ee(()=>{const y=[D2e(C(i)),Brt(),Rrt(),Nit()];return C(s)&&C(n)&&y.push(I2e({element:C(n)})),y}),p=async()=>{if(!Kr)return;const y=C(e),m=C(t);if(!y||!m)return;const b=await O2e(y,m,{placement:C(r),strategy:C(o),middleware:C(f)});Ty(c).forEach(w=>{c[w].value=b[w]})},v=ee(()=>{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=ee(()=>{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=Prt(y,m,p)),Cs(()=>{p()})}),Yr(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:h}},Nit=()=>({name:"overflow",async fn(e){const t=await Nrt(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Rit=et({name:"ElTourMask",inheritAttrs:!1}),Bit=et({...Rit,props:Iit,setup(e){const t=e,{ns:n}=un(AD),r=ee(()=>{var l,u;return(u=(l=t.pos)==null?void 0:l.radius)!=null?u:2}),o=ee(()=>{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=ee(()=>{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=ee(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),s=ee(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return nW(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:oe(C(n).e("hollow")),style:Jt(C(s)),d:C(i)},null,14,["d"])]))],16)):xe("v-if",!0)}});var Lit=en(Bit,[["__file","mask.vue"]]);const Fit=["absolute","fixed"],Uit=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],YW=Yt({placement:{type:lt(String),values:Uit,default:"bottom"},reference:{type:lt(Object),default:null},strategy:{type:lt(String),values:Fit,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),zit={close:()=>!0},$it=et({name:"ElTourContent"}),jit=et({...$it,props:YW,emits:zit,setup(e,{emit:t}){const n=e,r=Y(n.placement),o=Y(n.strategy),i=Y(null),a=Y(null);Ct(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=Pit(ao(n,"reference"),i,a,r,o,ao(n,"offset"),ao(n,"zIndex"),ao(n,"showArrow")),u=ee(()=>r.value.split("-")[0]),{ns:d}=un(AD),c=()=>{t("close")},f=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(F(),K("div",{ref_key:"contentRef",ref:i,style:Jt(C(s)),class:oe(C(d).e("content")),"data-side":C(u),tabindex:"-1"},[$e(C(Bb),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:c,onFocusoutPrevented:f},{default:nt(()=>[pt(p.$slots,"default")]),_:3},8,["focus-trap-el"]),p.showArrow?(F(),K("span",{key:0,ref_key:"arrowRef",ref:a,style:Jt(C(l)),class:oe(C(d).e("arrow"))},null,6)):xe("v-if",!0)],14,["data-side"]))}});var Hit=en(jit,[["__file","content.vue"]]),Wit=et({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 Vit=Yt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:vo},placement:YW.placement,contentStyle:{type:lt([Object])},mask:{type:lt([Boolean,Object]),default:!0},gap:{type:lt(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:lt([Boolean,Object]),default:()=>({block:"center"})},type:{type:lt(String)},appendTo:{type:sD.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),qit={[Gn]:e=>Co(e),"update:current":e=>Ln(e),close:e=>Ln(e),finish:()=>!0,change:e=>Ln(e)},Git=et({name:"ElTour"}),Kit=et({...Git,props:Vit,emits:qit,setup(e,{emit:t}){const n=e,r=jt("tour"),o=Y(0),i=Y(),a=Ume(n,"current",t,{passive:!0}),s=ee(()=>{var I;return(I=i.value)==null?void 0:I.target}),l=ee(()=>[r.b(),g.value==="primary"?r.m("primary"):""]),u=ee(()=>{var I;return((I=i.value)==null?void 0:I.placement)||n.placement}),d=ee(()=>{var I,P;return(P=(I=i.value)==null?void 0:I.contentStyle)!=null?P:n.contentStyle}),c=ee(()=>{var I,P;return(P=(I=i.value)==null?void 0:I.mask)!=null?P:n.mask}),f=ee(()=>!!c.value&&n.modelValue),p=ee(()=>Co(c.value)?void 0:c.value),v=ee(()=>{var I,P;return!!s.value&&((P=(I=i.value)==null?void 0:I.showArrow)!=null?P:n.showArrow)}),h=ee(()=>{var I,P;return(P=(I=i.value)==null?void 0:I.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),g=ee(()=>{var I,P;return(P=(I=i.value)==null?void 0:I.type)!=null?P:n.type}),{nextZIndex:y}=Pb(),m=y(),b=ee(()=>{var I;return(I=n.zIndex)!=null?I:m}),{mergedPosInfo:w,triggerTarget:A}=Oit(s,ao(n,"modelValue"),ao(n,"gap"),c,h);Ct(()=>n.modelValue,I=>{I||(a.value=0)});const S=()=>{n.closeOnPressEscape&&(t(Gn,!1),t("close",a.value))},k=I=>{o.value=I},O=pa();return Sr(AD,{currentStep:i,current:a,total:o,showClose:ao(n,"showClose"),closeIcon:ao(n,"closeIcon"),mergedType:g,ns:r,slots:O,updateModelValue(I){t(Gn,I)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t(Tr,a.value)}}),(I,P)=>(F(),K(Nt,null,[$e(C(Lb),{to:I.appendTo},{default:nt(()=>{var M,_;return[x("div",pr({class:C(l)},I.$attrs),[$e(Lit,{visible:C(f),fill:(M=C(p))==null?void 0:M.color,style:Jt((_=C(p))==null?void 0:_.style),pos:C(w),"z-index":C(b),"target-area-clickable":I.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),I.modelValue?(F(),mt(Hit,{key:C(a),reference:C(A),placement:C(u),"show-arrow":C(v),"z-index":C(b),style:Jt(C(d)),onClose:S},{default:nt(()=>[$e(C(Wit),{current:C(a),onUpdateTotal:k},{default:nt(()=>[pt(I.$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 Yit=en(Kit,[["__file","tour.vue"]]);const Qit=Yt({target:{type:lt([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:vo},showArrow:{type:Boolean,default:void 0},placement:YW.placement,mask:{type:lt([Boolean,Object]),default:void 0},contentStyle:{type:lt([Object])},prevButtonProps:{type:lt(Object)},nextButtonProps:{type:lt(Object)},scrollIntoViewOptions:{type:lt([Boolean,Object]),default:void 0},type:{type:lt(String)}}),Zit={close:()=>!0},Xit=et({name:"ElTourStep"}),Jit=et({...Xit,props:Qit,emits:Zit,setup(e,{emit:t}){const n=e,{Close:r}=l1e,{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}=un(AD);Ct(n,I=>{i.value=I},{immediate:!0});const y=ee(()=>{var I;return(I=n.showClose)!=null?I:l.value}),m=ee(()=>{var I,P;return(P=(I=n.closeIcon)!=null?I:u.value)!=null?P:r}),b=I=>{if(I)return Nme(I,["children","onClick"])},w=()=>{var I,P;a.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((P=n.prevButtonProps)==null||P.onClick()),g()},A=()=>{var I;a.value>=s.value-1?S():a.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),g()},S=()=>{k(),h()},k=()=>{p(!1),v(),t("close")},O=I=>{const P=I.target;if(P?.isContentEditable)return;const _={[gn.left]:()=>a.value>0&&w(),[gn.right]:A}[I.code];_&&(I.preventDefault(),_())};return jn(()=>{window.addEventListener("keydown",O)}),Yr(()=>{window.removeEventListener("keydown",O)}),(I,P)=>(F(),K(Nt,null,[C(y)?(F(),K("button",{key:0,"aria-label":"Close",class:oe(C(c).e("closebtn")),type:"button",onClick:k},[$e(C(_n),{class:oe(C(c).e("close"))},{default:nt(()=>[(F(),mt(hr(C(m))))]),_:1},8,["class"])],2)):xe("v-if",!0),x("header",{class:oe([C(c).e("header"),{"show-close":C(l)}])},[pt(I.$slots,"header",{},()=>[x("span",{role:"heading",class:oe(C(c).e("title"))},ze(I.title),3)])],2),x("div",{class:oe(C(c).e("body"))},[pt(I.$slots,"default",{},()=>[x("span",null,ze(I.description),1)])],2),x("footer",{class:oe(C(c).e("footer"))},[x("div",{class:oe(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(Nt,{key:1},on(C(s),(M,_)=>(F(),K("span",{key:M,class:oe([C(c).b("indicator"),_===C(a)?"is-active":""])},null,2))),128))],2),x("div",{class:oe(C(c).b("buttons"))},[C(a)>0?(F(),mt(C(Za),pr({key:0,size:"small",type:C(d)},b(I.prevButtonProps),{onClick:w}),{default:nt(()=>{var M,_;return[An(ze((_=(M=I.prevButtonProps)==null?void 0:M.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(I.nextButtonProps),{onClick:A}),{default:nt(()=>{var M,_;return[An(ze((_=(M=I.nextButtonProps)==null?void 0:M.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 Z2e=en(Jit,[["__file","step.vue"]]);const eat=er(Yit,{TourStep:Z2e}),tat=vi(Z2e),nat=Yt({container:{type:lt([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:lt(String),default:"default"},direction:{type:lt(String),default:"vertical"},selectScrollTop:Boolean}),rat={change:e=>Dn(e),click:(e,t)=>e instanceof MouseEvent&&(Dn(t)||zr(t))},X2e=Symbol("anchor"),Tx=e=>{if(!Kr||e==="")return null;if(Dn(e))try{return document.querySelector(e)}catch{return null}return e};function oat(e){let t=0;const n=(...r)=>{t&&_v(t),t=r0(()=>{e(...r),t=0})};return n.cancel=()=>{_v(t),t=0},n}const iat=et({name:"ElAnchor"}),aat=et({...iat,props:nat,emits:rat,setup(e,{expose:t,emit:n}){const r=e,o=pa(),i=Y(""),a=Y({}),s=Y(null),l=Y(null),u=Y(),d={};let c=!1,f=0;const p=jt("anchor"),v=ee(()=>[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 M=Tx(P);if(!M)return;m&&m(),c=!0;const _=QX(M,u.value),R=IL(M,_),N=_.scrollHeight-_.clientHeight,V=Math.min(R-r.offset,N);m=CBe(u.value,f,V,r.duration,()=>{setTimeout(()=>{c=!1},20)})},w=P=>{P&&(y(P),b(P))},A=(P,M)=>{n("click",P,M),w(M)},S=oat(()=>{u.value&&(f=ZX(u.value));const P=k();c||zr(P)||y(P)}),k=()=>{if(!u.value)return;const P=ZX(u.value),M=[];for(const _ of Object.keys(d)){const R=Tx(_);if(!R)continue;const N=QX(R,u.value),V=IL(R,N);M.push({top:V-r.offset-r.bound,href:_})}M.sort((_,R)=>_.top-R.top);for(let _=0;_<M.length;_++){const R=M[_],N=M[_+1];if(_===0&&P===0)return r.selectScrollTop?R.href:"";if(R.top<=P&&(!N||N.top>P))return R.href}},O=()=>{const P=Tx(r.container);!P||DC(P)?u.value=window:u.value=P};Mo(u,"scroll",S);const I=()=>{Vt(()=>{if(!s.value||!l.value||!i.value){a.value={};return}const P=d[i.value];if(!P){a.value={};return}const M=s.value.getBoundingClientRect(),_=l.value.getBoundingClientRect(),R=P.getBoundingClientRect();if(r.direction==="horizontal"){const N=R.left-M.left;a.value={left:`${N}px`,width:`${R.width}px`,opacity:1}}else{const N=R.top-M.top+(R.height-_.height)/2;a.value={top:`${N}px`,opacity:1}}})};return Ct(i,I),Ct(()=>{var P;return(P=o.default)==null?void 0:P.call(o)},I),jn(()=>{O();const P=decodeURIComponent(window.location.hash);Tx(P)?w(P):S()}),Ct(()=>r.container,()=>{O()}),Sr(X2e,{ns:p,direction:r.direction,currentAnchor:i,addLink:h,removeLink:g,handleClick:A}),t({scrollTo:w}),(P,M)=>(F(),K("div",{ref_key:"anchorRef",ref:s,class:oe(C(v))},[P.marker?(F(),K("div",{key:0,ref_key:"markerRef",ref:l,class:oe(C(p).e("marker")),style:Jt(a.value)},null,6)):xe("v-if",!0),x("div",{class:oe(C(p).e("list"))},[pt(P.$slots,"default")],2)],2))}});var sat=en(aat,[["__file","anchor.vue"]]);const lat=Yt({title:String,href:String}),uat=et({name:"ElAnchorLink"}),cat=et({...uat,props:lat,setup(e){const t=e,n=Y(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=un(X2e),u=ee(()=>[r.e("link"),r.is("active",i.value===t.href)]),d=c=>{l(c,t.href)};return Ct(()=>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})}),Yr(()=>{const{href:c}=t;c&&s(c)}),(c,f)=>(F(),K("div",{class:oe(C(r).e("item"))},[x("a",{ref_key:"linkRef",ref:n,class:oe(C(u)),href:c.href,onClick:d},[pt(c.$slots,"default",{},()=>[An(ze(c.title),1)])],10,["href"]),c.$slots["sub-link"]&&C(o)==="vertical"?(F(),K("div",{key:0,class:oe(C(r).e("list"))},[pt(c.$slots,"sub-link")],2)):xe("v-if",!0)],2))}});var J2e=en(cat,[["__file","anchor-link.vue"]]);const dat=er(sat,{AnchorLink:J2e}),fat=vi(J2e),ewe={label:"label",value:"value",disabled:"disabled"},pat=Yt({direction:{type:lt(String),default:"horizontal"},options:{type:lt(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:lt(Object),default:()=>ewe},block:Boolean,size:ba,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Es(["ariaLabel"])}),hat={[Gn]:e=>Dn(e)||Ln(e)||Co(e),[Tr]:e=>Dn(e)||Ln(e)||Co(e)},gat=et({name:"ElSegmented"}),vat=et({...gat,props:pat,emits:hat,setup(e,{emit:t}){const n=e,r=jt("segmented"),o=ds(),i=fa(),a=Wa(),{formItem:s}=ks(),{inputId:l,isLabeledByFormItem:u}=ac(n,{formItemContext:s}),d=Y(null),c=WRe(),f=Ur({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=M=>{const _=g(M);t(Gn,_),t(Tr,_)},v=ee(()=>({...ewe,...n.props})),h=M=>M,g=M=>ar(M)?M[v.value.value]:M,y=M=>ar(M)?M[v.value.label]:M,m=M=>!!(a.value||ar(M)&&M[v.value.disabled]),b=M=>n.modelValue===g(M),w=M=>n.options.find(_=>g(_)===M),A=M=>[r.e("item"),r.is("selected",b(M)),r.is("disabled",m(M))],S=()=>{if(!d.value)return;const M=d.value.querySelector(".is-selected"),_=d.value.querySelector(".is-selected input");if(!M||!_){f.width=0,f.height=0,f.translateX=0,f.translateY=0,f.focusVisible=!1;return}f.isInit=!0,n.direction==="vertical"?(f.height=M.offsetHeight,f.translateY=M.offsetTop):(f.width=M.offsetWidth,f.translateX=M.offsetLeft);try{f.focusVisible=_.matches(":focus-visible")}catch{}},k=ee(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),O=ee(()=>({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"})),I=ee(()=>[r.e("item-selected"),r.is("disabled",m(w(n.modelValue))),r.is("focus-visible",f.focusVisible)]),P=ee(()=>n.name||o.value);return li(d,S),Ct(c,S),Ct(()=>n.modelValue,()=>{var M;S(),n.validateEvent&&((M=s?.validate)==null||M.call(s,"change").catch(_=>void 0))},{flush:"post"}),(M,_)=>M.options.length?(F(),K("div",{key:0,id:C(l),ref_key:"segmentedRef",ref:d,class:oe(C(k)),role:"radiogroup","aria-label":C(u)?void 0:M.ariaLabel||"segmented","aria-labelledby":C(u)?C(s).labelId:void 0},[x("div",{class:oe([C(r).e("group"),C(r).m(n.direction)])},[x("div",{style:Jt(C(O)),class:oe(C(I))},null,6),(F(!0),K(Nt,null,on(M.options,(R,N)=>(F(),K("label",{key:N,class:oe(A(R))},[x("input",{class:oe(C(r).e("item-input")),type:"radio",name:C(P),disabled:m(R),checked:b(R),onChange:V=>p(R)},null,42,["name","disabled","checked","onChange"]),x("div",{class:oe(C(r).e("item-label"))},[pt(M.$slots,"default",{item:h(R)},()=>[An(ze(y(R)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):xe("v-if",!0)}});var mat=en(vat,[["__file","segmented.vue"]]);const yat=er(mat),bat=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},wat=(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===`
  67. `||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},Aat=(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]}),kH()?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},Cat=Yt({...MC,options:{type:lt(Array),default:()=>[]},prefix:{type:lt([String,Array]),default:"@",validator:e=>Dn(e)?e.length===1:e.every(t=>Dn(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:lt([Boolean,Function]),default:()=>bat,validator:e=>e===!1?!0:Pn(e)},placement:{type:lt(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:lt(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:lt(Object),default:()=>({})}}),xat={[Gn]:e=>Dn(e),"whole-remove":(e,t)=>Dn(e)&&Dn(t),input:e=>Dn(e),search:(e,t)=>Dn(e)&&Dn(t),select:(e,t)=>Dn(e.value)&&Dn(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Sat=Yt({options:{type:lt(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Eat={select:e=>Dn(e.value)},kat=et({name:"ElMentionDropdown"}),Tat=et({...kat,props:Sat,emits:Eat,setup(e,{expose:t,emit:n}){const r=e,o=jt("mention"),{t:i}=Hr(),a=Y(-1),s=Y(),l=Y(),u=Y(),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=ee(()=>r.disabled||r.options.every(b=>b.disabled)),v=ee(()=>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:O}=r,I=O.findIndex(M=>M.value===b.value),P=(w=l.value)==null?void 0:w[I];if(P){const M=(S=(A=u.value)==null?void 0:A.querySelector)==null?void 0:S.call(A,`.${o.be("dropdown","wrap")}`);M&&CH(M,P)}(k=s.value)==null||k.handleScroll()};return Ct(()=>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:oe(C(o).b("dropdown"))},[b.$slots.header?(F(),K("div",{key:0,class:oe(C(o).be("dropdown","header"))},[pt(b.$slots,"header")],2)):xe("v-if",!0),an($e(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(Nt,null,on(b.options,(A,S)=>(F(),K("li",{id:`${b.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S,class:oe(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"])},[pt(b.$slots,"label",{item:A,index:S},()=>{var k;return[x("span",null,ze((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:oe(C(o).be("dropdown","loading"))},[pt(b.$slots,"loading",{},()=>[An(ze(C(i)("el.mention.loading")),1)])],2)):xe("v-if",!0),b.$slots.footer?(F(),K("div",{key:2,class:oe(C(o).be("dropdown","footer"))},[pt(b.$slots,"footer")],2)):xe("v-if",!0)],2))}});var _at=en(Tat,[["__file","mention-dropdown.vue"]]);const Dat=et({name:"ElMention",inheritAttrs:!1}),Iat=et({...Dat,props:Cat,emits:xat,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>ru(r,Object.keys(MC))),i=jt("mention"),a=Wa(),s=ds(),l=Y(),u=Y(),d=Y(),c=Y(!1),f=Y(),p=Y(),v=ee(()=>r.showArrow?r.placement:`${r.placement}-start`),h=ee(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=ee(()=>{const{filterOption:_,options:R}=r;return!p.value||!_?R:R.filter(N=>_(p.value.pattern,N))}),y=ee(()=>c.value&&(!!g.value.length||r.loading)),m=ee(()=>{var _;return`${s.value}-${(_=d.value)==null?void 0:_.hoveringIndex}`}),b=_=>{n(Gn,_),n(ma,_),I()},w=_=>{var R,N,V,L;if(!(!("code"in _)||(R=l.value)!=null&&R.isComposing))switch(_.code){case gn.left:case gn.right:I();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(),(V=d.value)!=null&&V.hoverOption?(L=d.value)==null||L.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:z}=p.value,U=O();if(!U)return;const W=U.value,re=r.options.find(te=>te.value===G);if((Pn(r.checkIsWhole)?r.checkIsWhole(G,z):re)&&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,z);const X=Z;Vt(()=>{U.selectionStart=X,U.selectionEnd=X,M()})}}}},{wrapperRef:A}=vp(l,{disabled:a,afterFocus(){I()},beforeBlur(_){var R;return(R=u.value)==null?void 0:R.isFocusInsideContent(_)},afterBlur(){c.value=!1}}),S=()=>{I()},k=_=>{if(!p.value)return;const R=O();if(!R)return;const N=R.value,{split:V}=r,L=N.slice(p.value.end),j=L.startsWith(V),H=`${_.value}${j?"":V}`,G=N.slice(0,p.value.start)+H+L;n(Gn,G),n(ma,G),n("select",_,p.value.prefix);const Z=p.value.start+H.length+(j?1:0);Vt(()=>{R.selectionStart=Z,R.selectionEnd=Z,R.focus(),M()})},O=()=>{var _,R;return r.type==="textarea"?(_=l.value)==null?void 0:_.textarea:(R=l.value)==null?void 0:R.input},I=()=>{setTimeout(()=>{P(),M(),Vt(()=>{var _;return(_=u.value)==null?void 0:_.updatePopper()})},0)},P=()=>{const _=O();if(!_)return;const R=Aat(_),N=_.getBoundingClientRect(),V=l.value.$el.getBoundingClientRect();f.value={position:"absolute",width:0,height:`${R.height}px`,left:`${R.left+N.left-V.left}px`,top:`${R.top+N.top-V.top}px`}},M=()=>{const _=O();if(document.activeElement!==_){c.value=!1;return}const{prefix:R,split:N}=r;if(p.value=wat(_,R,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}),(_,R)=>(F(),K("div",{ref_key:"wrapperRef",ref:A,class:oe(C(i).b())},[$e(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},[on(_.$slots,(N,V)=>({name:V,fn:nt(L=>[pt(_.$slots,V,Sl(Bd(L)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),$e(C(fs),{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:Jt(f.value)},null,4)]),content:nt(()=>{var N;return[$e(_at,{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},[on(_.$slots,(V,L)=>({name:L,fn:nt(j=>[pt(_.$slots,L,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 Oat=en(Iat,[["__file","mention.vue"]]);const Mat=er(Oat);var Pat=[_Be,ZLe,$ze,tnt,Gze,e$e,U1e,f$e,p$e,Za,V1e,lje,pje,Ije,Oje,NHe,fye,zHe,Yu,Vje,rye,VHe,lWe,uWe,cD,wye,RWe,FWe,QWe,ZWe,XWe,JWe,eVe,Oqe,Nye,$qe,jqe,Hye,Wye,xGe,fKe,pKe,hKe,obe,pYe,hYe,_n,EYe,sbe,Us,lbe,zYe,qYe,dQe,fQe,pQe,hQe,wQe,dZe,mZe,kZe,R1e,vbe,cye,oHe,rHe,BZe,$Ze,KZe,Lc,Dv,TE,VQe,kXe,RXe,BXe,tJe,aJe,_be,mJe,kJe,TJe,PJe,Vet,qet,ent,vnt,mnt,Ih,NW,AVe,Tnt,Pnt,Nnt,fs,eot,pot,UE,Mot,Yot,yit,Dit,eat,tat,dat,fat,yat,Mat,Kye,PS];const Du="ElInfiniteScroll",Nat=50,Rat=200,Bat=0,Lat={delay:{type:Number,default:Rat},distance:{type:Number,default:Bat},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},QW=(e,t)=>Object.entries(Lat).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},{}),twe=e=>{const{observer:t}=e[Du];t&&(t.disconnect(),delete e[Du].observer)},Fat=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[Du],{disabled:s,distance:l}=QW(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=IL(e,r);p=c+u>=g+v+h-l}p&&t.call(o)};function BI(e,t){const{containerEl:n,instance:r}=e[Du],{disabled:o}=QW(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):twe(e))}const Uat={async mounted(e,t){const{instance:n,value:r}=t;Pn(r)||Ji(Du,"'v-infinite-scroll' binding value must be a function"),await Vt();const{delay:o,immediate:i}=QW(e,n),a=AH(e,!0),s=a===window?document.documentElement:a,l=qg(Fat.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(BI.bind(null,e,r),Nat));e[Du].observer=u,u.observe(e,{childList:!0,subtree:!0}),BI(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[Du])return;const{container:t,onScroll:n}=e[Du];t?.removeEventListener("scroll",n),twe(e)},async updated(e){if(!e[Du])await Vt();else{const{containerEl:t,cb:n,observer:r}=e[Du];t.clientHeight&&r&&BI(e,n)}}},yF=Uat;yF.install=e=>{e.directive("InfiniteScroll",yF)};const zat=yF;function $at(e,t){let n;const r=Y(!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()):($s(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),$s(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=eve(et({name:"ElLoading",setup(p,{expose:v}){const{ns:h,zIndex:g}=tD("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(()=>[an($e("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 _x;const oy=function(e={}){if(!Kr)return;const t=jat(e);if(t.fullscreen&&_x)return _x;const n=$at({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(_x=void 0)}},oy._context);Hat(t,t.parent,n),Xee(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Xee(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&&(_x=n),n},jat=e=>{var t,n,r,o;let i;return Dn(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}},Hat=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},Xee=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?$s(t,r.bm("parent","relative")):Nu(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Nu(t,r.bm("parent","hidden")):$s(t,r.bm("parent","hidden"))};oy._context=null;const A4=Symbol("ElLoading"),vg=e=>`element-loading-${dp(e)}`,Jee=(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=Dn(p)&&a?.[p]||p;return Y(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=oy(c);f._context=e3._context,e[A4]={options:c,instance:f}},Wat=(e,t)=>{for(const n of Object.keys(e))Ro(e[n])&&(e[n].value=t[n])},e3={mounted(e,t){t.value&&Jee(e,t)},updated(e,t){const n=e[A4];if(!t.value){n?.instance.close(),e[A4]=null;return}n?Wat(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"))}):Jee(e,t)},unmounted(e){var t;(t=e[A4])==null||t.instance.close(),e[A4]=null}};e3._context=null;const Vat={install(e){oy._context=e._context,e3._context=e._context,e.directive("loading",e3),e.config.globalProperties.$loading=oy},directive:e3,service:oy},nwe=["primary","success","info","warning","error"],rwe=["top","top-left","top-right","bottom","bottom-left","bottom-right"],lA="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}),qat=Yt({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:lt([String,Object,Function]),default:Is.message},onClose:{type:lt(Function),default:Is.onClose},showClose:{type:Boolean,default:Is.showClose},type:{type:String,values:nwe,default:Is.type},plain:{type:Boolean,default:Is.plain},offset:{type:Number,default:Is.offset},placement:{type:String,values:rwe,default:Is.placement},zIndex:{type:Number,default:Is.zIndex},grouping:{type:Boolean,default:Is.grouping},repeatNum:{type:Number,default:Is.repeatNum}}),Gat={destroy:()=>!0},kc=I_({}),Kat=e=>(kc[e]||(kc[e]=I_([])),kc[e]),Yat=(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}},Qat=(e,t)=>{const{prev:n}=Yat(e,t);return n?n.vm.exposed.bottom.value:0},Zat=(e,t,n)=>(kc[n]||[]).findIndex(i=>i.id===e)>0?16:t,Xat=et({name:"ElMessage"}),Jat=et({...Xat,props:qat,emits:Gat,setup(e,{expose:t,emit:n}){const r=e,{Close:o}=EH,i=Y(!1),{ns:a,zIndex:s}=tD("message"),{currentZIndex:l,nextZIndex:u}=s,d=Y(),c=Y(!1),f=Y(0);let p;const v=ee(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=ee(()=>{const _=r.type;return{[a.bm("icon",_)]:_&&a0[_]}}),g=ee(()=>r.icon||a0[r.type]||""),y=ee(()=>r.placement||lA),m=ee(()=>Qat(r.id,y.value)),b=ee(()=>Zat(r.id,r.offset,y.value)+m.value),w=ee(()=>f.value+b.value),A=ee(()=>y.value.includes("left")?a.is("left"):y.value.includes("right")?a.is("right"):a.is("center")),S=ee(()=>y.value.startsWith("top")?"top":"bottom"),k=ee(()=>({[S.value]:`${b.value}px`,zIndex:l.value}));function O(){r.duration!==0&&({stop:p}=Tv(()=>{P()},r.duration))}function I(){p?.()}function P(){c.value=!1,Vt(()=>{var _;i.value||((_=r.onClose)==null||_.call(r),n("destroy"))})}function M({code:_}){_===gn.esc&&P()}return jn(()=>{O(),u(),c.value=!0}),Ct(()=>r.repeatNum,()=>{I(),O()}),Mo(document,"keydown",M),li(d,()=>{f.value=d.value.getBoundingClientRect().height}),t({visible:c,bottom:w,close:P}),(_,R)=>(F(),mt(Wi,{name:C(a).b("fade"),onBeforeEnter:N=>i.value=!0,onBeforeLeave:_.onClose,onAfterLeave:N=>_.$emit("destroy"),persisted:""},{default:nt(()=>[an(x("div",{id:_.id,ref_key:"messageRef",ref:d,class:oe([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:Jt(C(k)),role:"alert",onMouseenter:I,onMouseleave:O},[_.repeatNum>1?(F(),mt(C(U1e),{key:0,value:_.repeatNum,type:C(v),class:oe(C(a).e("badge"))},null,8,["value","type","class"])):xe("v-if",!0),C(g)?(F(),mt(C(_n),{key:1,class:oe([C(a).e("icon"),C(h)])},{default:nt(()=>[(F(),mt(hr(C(g))))]),_:1},8,["class"])):xe("v-if",!0),pt(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(F(),K(Nt,{key:1},[xe(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:oe(C(a).e("content")),innerHTML:_.message},null,10,["innerHTML"])],2112)):(F(),K("p",{key:0,class:oe(C(a).e("content"))},ze(_.message),3))]),_.showClose?(F(),mt(C(_n),{key:2,class:oe(C(a).e("closeBtn")),onClick:Qt(P,["stop"])},{default:nt(()=>[$e(C(o))]),_:1},8,["class","onClick"])):xe("v-if",!0)],46,["id"]),[[Ar,c.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var est=en(Jat,[["__file","message.vue"]]);let tst=1;const nst=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Dn(e.appendTo)){let n=document.querySelector(e.appendTo);al(n)||(n=document.body),e.appendTo=n}},rst=e=>{!e.placement&&Dn(Ps.placement)&&Ps.placement&&(e.placement=Ps.placement),e.placement||(e.placement=lA),rwe.includes(e.placement)||(e.placement=lA)},owe=e=>{const t=!e||Dn(e)||jo(e)||Pn(e)?{message:e}:e,n={...Is,...t};return nst(n),rst(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},ost=e=>{const t=e.props.placement||lA,n=kc[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:o}=e;o.close()},ist=({appendTo:e,...t},n)=>{const r=`message_${tst++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o?.(),ost(d)},onDestroy:()=>{t0(null,i)}},s=$e(est,a,Pn(a.message)||jo(a.message)?{default:Pn(a.message)?a.message:()=>a.message}:null);s.appContext=n||Pv._context,t0(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},Pv=(e={},t)=>{if(!Kr)return{close:()=>{}};const n=owe(e),r=Kat(n.placement||lA);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=ist(n,t);return r.push(o),o.handler};nwe.forEach(e=>{Pv[e]=(t={},n)=>{const r=owe(t);return Pv({...r,type:e},n)}});function ast(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 sst(e){if(!kc[e])return;[...kc[e]].forEach(n=>n.handler.close())}Pv.closeAll=ast;Pv.closeAllByPlacement=sst;Pv._context=null;const At=Xme(Pv,"$message"),bF="_trap-focus-children",Fg=[],ete=e=>{if(Fg.length===0)return;const t=Fg[Fg.length-1][bF];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())}},lst={beforeMount(e){e[bF]=nJ(e),Fg.push(e),Fg.length<=1&&document.addEventListener("keydown",ete)},updated(e){Vt(()=>{e[bF]=nJ(e)})},unmounted(){Fg.shift(),Fg.length===0&&document.removeEventListener("keydown",ete)}},ust=et({name:"ElMessageBox",directives:{TrapFocus:lst},components:{ElButton:Za,ElFocusTrap:Bb,ElInput:Us,ElOverlay:tW,ElIcon:_n,...EH},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Obe},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}=tD("message-box",ee(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=Y(!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=ee(()=>{const j=u.type;return{[o.bm("icon",j)]:j&&a0[j]}}),c=ds(),f=ds(),p=ee(()=>{const j=u.type;return u.icon||j&&a0[j]||""}),v=ee(()=>!!u.message),h=Y(),g=Y(),y=Y(),m=Y(),b=Y(),w=ee(()=>u.confirmButtonClass);Ct(()=>u.inputValue,async j=>{await Vt(),e.boxType==="prompt"&&j&&R()},{immediate:!0}),Ct(()=>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=ee(()=>e.draggable),S=ee(()=>e.overflow),{isDragging:k}=Uye(h,g,A,S);jn(async()=>{await Vt(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),Yr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){l.value&&(l.value=!1,Vt(()=>{u.action&&t("action",u.action)}))}const I=()=>{e.closeOnClickModal&&_(u.distinguishCancelAndClose?"close":"cancel")},P=eW(I),M=j=>{if(u.inputType!=="textarea")return j.preventDefault(),_("confirm")},_=j=>{var H;e.boxType==="prompt"&&j==="confirm"&&!R()||(u.action=j,u.beforeClose?(H=u.beforeClose)==null||H.call(u,j,u,O):O())},R=()=>{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(Dn(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},V=()=>{_("close")},L=()=>{e.closeOnPressEscape&&V()};return e.lockScroll&&nW(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:O,handleClose:V,onCloseRequested:L,handleWrapperClick:I,handleInputEnter:M,handleAction:_,t:a}}});function cst(e,t,n,r,o,i){const a=lr("el-icon"),s=lr("el-input"),l=lr("el-button"),u=lr("el-focus-trap"),d=lr("el-overlay");return F(),mt(Wi,{name:"fade-in-linear",onAfterLeave:c=>e.$emit("vanish"),persisted:""},{default:nt(()=>[an($e(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:oe(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[$e(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:oe([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Jt(e.customStyle),tabindex:"-1",onClick:Qt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(F(),K("div",{key:0,ref:"headerRef",class:oe([e.ns.e("header"),{"show-close":e.showClose}])},[x("div",{class:oe(e.ns.e("title"))},[e.iconComponent&&e.center?(F(),mt(a,{key:0,class:oe([e.ns.e("status"),e.typeClass])},{default:nt(()=>[(F(),mt(hr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),x("span",null,ze(e.title),1)],2),e.showClose?(F(),K("button",{key:0,type:"button",class:oe(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"])},[$e(a,{class:oe(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:oe(e.ns.e("content"))},[x("div",{class:oe(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(F(),mt(a,{key:0,class:oe([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:oe(e.ns.e("message"))},[pt(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:ze(e.message)},null,8,["for","textContent"]))])],2)):xe("v-if",!0)],2),an(x("div",{class:oe(e.ns.e("input"))},[$e(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:oe({invalid:e.validateError}),onKeydown:Lr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x("div",{class:oe(e.ns.e("errormsg")),style:Jt({visibility:e.editorErrorMessage?"visible":"hidden"})},ze(e.editorErrorMessage),7)],2),[[Ar,e.showInput]])],10,["id"]),x("div",{class:oe(e.ns.e("btns"))},[e.showCancelButton?(F(),mt(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:oe([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:c=>e.handleAction("cancel"),onKeydown:Lr(Qt(c=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:nt(()=>[An(ze(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):xe("v-if",!0),an($e(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:oe([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(()=>[An(ze(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 dst=en(ust,[["render",cst],["__file","index.vue"]]);const uA=new Map,fst=e=>{let t=document.body;return e.appendTo&&(Dn(e.appendTo)&&(t=document.querySelector(e.appendTo)),al(e.appendTo)&&(t=e.appendTo),al(t)||(t=document.body)),t},pst=(e,t,n=null)=>{const r=$e(dst,e,Pn(e.message)||jo(e.message)?{default:Pn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,t0(r,t),fst(e).appendChild(t.firstElementChild),r.component},hst=()=>document.createElement("div"),gst=(e,t)=>{const n=hst();e.onVanish=()=>{t0(null,n),uA.delete(o)},e.onAction=i=>{const a=uA.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=pst(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 Dn(e)||jo(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=gst(e,t??$b._context);uA.set(i,{options:e,callback:n,resolve:r,reject:o})})}const vst=["alert","confirm","prompt"],mst={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};vst.forEach(e=>{$b[e]=yst(e)});function yst(e){return(t,n,r,o)=>{let i="";return ar(n)?(r=n,i=""):zr(n)?i="":i=n,$b(Object.assign({title:i,message:t,type:"",...mst[e]},r,{boxType:e}),o)}}$b.close=()=>{uA.forEach((e,t)=>{t.doClose()}),uA.clear()};$b._context=null;const rh=$b;rh.install=e=>{rh._context=e._context,e.config.globalProperties.$msgbox=rh,e.config.globalProperties.$messageBox=rh,e.config.globalProperties.$alert=rh.alert,e.config.globalProperties.$confirm=rh.confirm,e.config.globalProperties.$prompt=rh.prompt};const bst=rh,iwe=["primary","success","info","warning","error"],wst=Yt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:vo},id:{type:String,default:""},message:{type:lt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:lt(Function),default:()=>{}},onClose:{type:lt(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:[...iwe,""],default:""},zIndex:Number,closeIcon:{type:vo,default:cu}}),Ast={destroy:()=>!0},Cst=et({name:"ElNotification"}),xst=et({...Cst,props:wst,emits:Ast,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=tD("notification"),{nextZIndex:i,currentZIndex:a}=o,s=Y(!1);let l;const u=ee(()=>{const m=n.type;return m&&a0[n.type]?r.m(m):""}),d=ee(()=>n.type&&a0[n.type]||n.icon),c=ee(()=>n.position.endsWith("right")?"right":"left"),f=ee(()=>n.position.startsWith("top")?"top":"bottom"),p=ee(()=>{var m;return{[f.value]:`${n.offset}px`,zIndex:(m=n.zIndex)!=null?m:a.value}});function v(){n.duration>0&&({stop:l}=Tv(()=>{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(()=>[an(x("div",{id:m.id,class:oe([C(r).b(),m.customClass,C(c)]),style:Jt(C(p)),role:"alert",onMouseenter:h,onMouseleave:v,onClick:m.onClick},[C(d)?(F(),mt(C(_n),{key:0,class:oe([C(r).e("icon"),C(u)])},{default:nt(()=>[(F(),mt(hr(C(d))))]),_:1},8,["class"])):xe("v-if",!0),x("div",{class:oe(C(r).e("group"))},[x("h2",{class:oe(C(r).e("title")),textContent:ze(m.title)},null,10,["textContent"]),an(x("div",{class:oe(C(r).e("content")),style:Jt(m.title?void 0:{margin:0})},[pt(m.$slots,"default",{},()=>[m.dangerouslyUseHTMLString?(F(),K(Nt,{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},ze(m.message),1))])],6),[[Ar,m.message]]),m.showClose?(F(),mt(C(_n),{key:0,class:oe(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 Sst=en(xst,[["__file","notification.vue"]]);const $y={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},zE=16;let Est=1;const Nv=function(e={},t){if(!Kr)return{close:()=>{}};(Dn(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)+zE}),r+=zE;const o=`notification_${Est++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{kst(o,n,i)}};let s=document.body;al(e.appendTo)?s=e.appendTo:Dn(e.appendTo)&&(s=document.querySelector(e.appendTo)),al(s)||(s=document.body);const l=document.createElement("div"),u=$e(Sst,a,Pn(a.message)?a.message:jo(a.message)?()=>a.message:null);return u.appContext=zr(t)?Nv._context:t,u.props.onDestroy=()=>{t0(null,l)},t0(u,l),$y[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};iwe.forEach(e=>{Nv[e]=(t={},n)=>((Dn(t)||jo(t))&&(t={message:t}),Nv({...t,type:e},n))});function kst(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-zE;c.props.offset=f}}function Tst(){for(const e of Object.values($y))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function _st(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)+zE}Nv.closeAll=Tst;Nv.updateOffsets=_st;Nv._context=null;const Dst=Xme(Nv,"$notify");var Ist=[zat,Vat,At,bst,Dst,gbe],Ost=mBe([...Pat,...Ist]);const Yo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Mst={key:0,class:"modal-overlay"},Pst={class:"modal-body"},Nst={class:"feedback-type-section"},Rst={class:"type-buttons"},Bst={class:"feedback-content-section"},Lst={class:"textarea-container"},Fst={class:"char-count"},Ust={class:"upload-section"},zst={key:1,class:"uploaded-images"},$st=["src","alt"],jst={class:"image-actions"},Hst=["onClick"],Wst={key:0,class:"upload-progress"},Vst={class:"progress-bar"},qst={class:"progress-text"},Gst={class:"contact-section"},Kst={class:"modal-footer"},Yst=["src"],Qst={__name:"FeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=Y("function"),i=Y(""),a=Y(""),s=Y(null),l=Y([]);Y(!1);const u=ee(()=>i.value.trim()?yve:bve),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){At.warning("最多只能上传3张图片");return}const b=5*1024*1024,w=m.filter(A=>A.size>b?(At.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}),At.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),At.error(`图片 ${y.name} 上传失败: ${m.message}`)}},h=y=>{l.value.splice(y,1)},g=()=>{if(!i.value.trim()){At.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 Ct(()=>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",Mst,[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",Pst,[x("div",Nst,[m[9]||(m[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",Rst,[x("button",{class:oe(["type-btn",{active:o.value==="function"}]),onClick:m[0]||(m[0]=b=>d("function"))}," 功能建议 ",2),x("button",{class:oe(["type-btn",{active:o.value==="interface"}]),onClick:m[1]||(m[1]=b=>d("interface"))}," 界面优化 ",2),x("button",{class:oe(["type-btn",{active:o.value==="experience"}]),onClick:m[2]||(m[2]=b=>d("experience"))}," 体验问题 ",2),x("button",{class:oe(["type-btn",{active:o.value==="other"}]),onClick:m[3]||(m[3]=b=>d("other"))}," 其他 ",2)])]),x("div",Bst,[m[10]||(m[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",Lst,[an(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",Fst,ze(i.value.length)+"/200",1)])]),x("div",Ust,[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:cE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(F(),K("div",zst,[(F(!0),K(Nt,null,on(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,$st),x("div",jst,[x("button",{class:"delete-btn",onClick:A=>h(w)},m[12]||(m[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,Hst)]),b.uploading?(F(),K("div",Wst,[x("div",Vst,[x("div",{class:"progress-fill",style:Jt({width:b.progress+"%"})},null,4)]),x("span",qst,ze(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:cE,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",Gst,[an(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",Kst,[x("button",{class:"submit-btn",onClick:g},[x("img",{src:u.value,alt:"提交反馈",class:"submit-icon"},null,8,Yst)])])])])):xe("",!0)}},Zst=Yo(Qst,[["__scopeId","data-v-1e1e6cd4"]]),Xst={},Jst="http://aqai.shudaodsj.com:22001";function elt(){if(!Xst?.VITE_AUDIO_API_BASE)return Jst}const awe=Xi.create({baseURL:elt(),timeout:12e4});awe.interceptors.request.use(e=>{const t=Gf(),n=Ev();if(t&&n){const r=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();e.headers=e.headers||{},e.headers.Authorization=`${r} ${t}`}return e});function tlt(e){return e?typeof e=="string"?e:e?.workflow_result?.data?.outputs?.text||e?.workflow_result?.data?.outputs?.content||e?.data?.outputs?.text||e?.outputs?.text||e?.text||"":""}async function nlt({file:e,userId:t}){const n=new FormData,r=e?.name||`audio_${Date.now()}.wav`;n.append("file",e,r),t&&n.append("user_id",t);const o=await awe.post("/audio_to_text",n,{headers:{"Content-Type":"multipart/form-data"}}),i=o?.data??o,a=tlt(i);if(!a)throw new Error("语音转写成功,但未返回文本内容");return{text:a,raw:i}}const WC=typeof window<"u",tte=WC?window.AudioContext||window.webkitAudioContext:null,rlt=WC?window.speechSynthesis:null;function T0(){const e=Y(!1),t=Y(!1),n=Y(!1),r=Y(""),o=Y(""),i=Y(!1);let a=null,s=null,l=[];const u=()=>{const k=WC&&typeof navigator<"u"&&!!navigator.mediaDevices&&typeof window.MediaRecorder<"u";return e.value=k,k},d=()=>{s&&(s.getTracks().forEach(k=>k.stop()),s=null)},c=(k=!1)=>{a&&(a.ondataavailable=null,a.onstop=null,a.onerror=null,a=null),d(),t.value=!1,k&&(l=[])},f=k=>{let O="无法访问麦克风,请检查设备设置";if(!k){o.value=O;return}switch(k.name){case"NotAllowedError":case"PermissionDeniedError":O="麦克风权限被拒绝,请允许浏览器访问麦克风";break;case"NotFoundError":case"DevicesNotFoundError":O="未检测到可用的麦克风设备";break;case"NotReadableError":case"TrackStartError":O="麦克风被占用或不可用,请检查是否有其他应用正在使用";break;case"OverconstrainedError":O="无法满足当前音频采集的约束条件";break;default:O=k.message||O}o.value=O},p=async(k,O)=>{if(!k||!k.size){o.value="未捕获到语音内容,请重新尝试";return}try{n.value=!0;let I=k;(!/wav/i.test(O||"")||k.type!=="audio/wav")&&(I=await alt(k));const P=I||k,M=new File([P],`audio_${Date.now()}.wav`,{type:"audio/wav"}),_=ilt(),{text:R}=await nlt({file:M,userId:_});r.value=R||"",o.value=""}catch(I){console.error("语音转写失败:",I),o.value=I?.message||"语音转写失败,请稍后重试"}finally{n.value=!1,l=[]}},v=()=>n.value?(o.value="上一段语音还在转写中,请稍候",!1):u()?(r.value="",o.value="",l=[],navigator.mediaDevices.getUserMedia({audio:!0}).then(k=>{s=k;const O=olt();try{a=O?new MediaRecorder(k,O):new MediaRecorder(k)}catch(I){console.error("MediaRecorder初始化失败:",I),o.value="无法启动录音,请检查浏览器是否支持录音功能",d();return}a.onstart=()=>{t.value=!0},a.ondataavailable=I=>{I.data&&I.data.size>0&&l.push(I.data)},a.onerror=I=>{console.error("MediaRecorder错误:",I.error||I),o.value="录音过程中出现问题,请重新尝试",c(!0)},a.onstop=async()=>{const I=a?.mimeType,P=new Blob(l,{type:I||"audio/webm"});c(),await p(P,I)},a.start()}).catch(k=>{console.error("获取麦克风权限失败:",k),f(k),c(!0)}),!0):(o.value="当前浏览器不支持语音输入,请更换浏览器",!1),h=()=>{if(a&&a.state!=="inactive")try{a.stop()}catch(k){console.error("停止录音失败:",k),c()}else c()},g=rlt,y=(k,O={})=>{if(!g)return o.value="浏览器不支持语音播放功能",!1;m();const I=new SpeechSynthesisUtterance(k);return I.lang=O.lang||"zh-CN",I.rate=O.rate||1,I.pitch=O.pitch||1,I.volume=O.volume||1,I.onstart=()=>{i.value=!0,o.value=""},I.onend=()=>{i.value=!1},I.onerror=P=>{let M="";switch(P.error){case"canceled":M="语音播放已取消";break;case"interrupted":M="语音播放被中断";break;case"audio-busy":M="音频设备忙,请稍后重试";break;case"audio-hardware":M="音频硬件错误";break;case"network":M="网络错误,请检查网络连接";break;case"synthesis-unavailable":M="语音播放服务不可用";break;case"synthesis-failed":M="语音播放失败";break;case"language-unavailable":M="不支持当前语言";break;case"voice-unavailable":M="当前语音不可用";break;case"text-too-long":M="文本过长,无法播放";break;case"invalid-argument":M="语音播放参数无效";break;case"not-allowed":M="语音播放权限被拒绝";break;default:M=`语音播放错误: ${P.error}`}o.value=M,i.value=!1},g.speak(I),!0},m=()=>{g&&i.value&&(g.cancel(),i.value=!1)};return{isSupported:e,isListening:t,isProcessing:n,isSpeaking:i,transcript:r,error:o,startListening:v,stopListening:h,speakText:y,stopSpeaking:m,pauseSpeaking:()=>{g&&i.value&&g.pause()},resumeSpeaking:()=>{g&&g.resume()},getAvailableVoices:()=>g?g.getVoices().filter(k=>k.lang.startsWith("zh")||k.lang.startsWith("en")):[],setVoice:k=>g?!!g.getVoices().find(P=>P.name===k):!1,checkSupport:u}}function olt(){if(!WC||typeof window.MediaRecorder>"u")return;const e=["audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus","audio/ogg","audio/mp4"];for(const t of e)if(window.MediaRecorder.isTypeSupported(t))return{mimeType:t}}function ilt(){if(!WC||!window.localStorage)return"web-user";try{return window.localStorage.getItem("shudao_user_id")||"web-user"}catch(e){return console.warn("读取本地用户ID失败:",e),"web-user"}}async function alt(e){if(!e||!e.size||e.type==="audio/wav"||/wav/i.test(e.type))return e;if(!tte)return console.warn("当前环境不支持AudioContext,无法转换为WAV,将直接上传原始音频"),e;const t=new tte;try{const n=await e.arrayBuffer(),r=await t.decodeAudioData(n),o=slt(r),i=llt(o,r.sampleRate);return new Blob([i],{type:"audio/wav"})}catch(n){return console.error("音频转换为WAV失败,将上传原始格式:",n),e}finally{if(t&&t.state!=="closed")try{await t.close()}catch(n){console.warn("关闭AudioContext失败:",n)}}}function slt(e){if(e.numberOfChannels===1)return e.getChannelData(0);const t=e.length,n=new Float32Array(t);for(let r=0;r<e.numberOfChannels;r++){const o=e.getChannelData(r);for(let i=0;i<t;i++)n[i]+=o[i]}for(let r=0;r<t;r++)n[r]/=e.numberOfChannels;return n}function llt(e,t){const n=new ArrayBuffer(44+e.length*2),r=new DataView(n);return Dx(r,0,"RIFF"),r.setUint32(4,36+e.length*2,!0),Dx(r,8,"WAVE"),Dx(r,12,"fmt "),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,t,!0),r.setUint32(28,t*2,!0),r.setUint16(32,2,!0),r.setUint16(34,16,!0),Dx(r,36,"data"),r.setUint32(40,e.length*2,!0),ult(r,44,e),n}function ult(e,t,n){for(let r=0;r<n.length;r++,t+=2){let o=Math.max(-1,Math.min(1,n[r]));o=o<0?o*32768:o*32767,e.setInt16(t,o,!0)}}function Dx(e,t,n){for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}const Xf="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",Jf="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==",ep="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=",clt={class:"container"},dlt={class:"header"},flt={class:"username"},plt={class:"main-content"},hlt={class:"search-container"},glt={class:"search-box"},vlt=["disabled"],mlt={class:"icon-container"},ylt=["src"],blt={key:0,class:"recording-indicator"},wlt=["disabled"],Alt=["src"],Clt={class:"recommend-list"},xlt=["onClick"],Slt={class:"cards-container"},Elt={class:"card-column first-column"},klt={class:"common-questions-card"},Tlt={class:"questions-content"},_lt={class:"questions-list"},Dlt=["onClick","title"],Ilt={__name:"Index",setup(e){const t=Hl(),{isListening:n,isProcessing:r,transcript:o,error:i,startListening:a,stopListening:s}=T0(),l=Y(""),u=Y(!1),d=Y(!1),c=Y([]),f=Y(null),p=Y(!1),v=Y([]),h=Y(!1),g=Y(null),y=Y(!1),m=async()=>{try{const W=await Bn.getRecommendQuestion({limit:8});c.value=W.data,console.log("推荐问题数据结构:",c.value)}catch(W){console.error("获取推荐问题失败:",W)}},b=()=>{m()},w=()=>{v.value=[],y.value=!1,g.value&&(clearTimeout(g.value),g.value=null)},A=()=>{if(!l.value.trim()){w();return}g.value&&clearTimeout(g.value),g.value=setTimeout(()=>{S(l.value)},100)},S=async W=>{if(!W||W.trim().length===0){v.value=[],y.value=!1;return}if(d.value){console.log("正在发送消息,跳过推荐问题获取"),v.value=[],y.value=!1;return}try{console.log("开始获取用户推荐问题,用户输入:",W),h.value=!0;const re=await Bn.getUserRecommendQuestion({user_message:W.trim()});if(console.log("用户推荐问题响应:",re),d.value){console.log("请求完成时状态已变化,不显示推荐问题"),v.value=[],y.value=!1;return}re&&re.data&&re.data.questions&&re.data.questions.length>0?(v.value=re.data.questions,y.value=!0,console.log("用户推荐问题数据已设置:",v.value)):(v.value=[],y.value=!1)}catch(re){console.error("获取用户推荐问题失败:",re),v.value=[],y.value=!1}finally{h.value=!1}},k=W=>{console.log("选择用户推荐问题:",W),l.value=W,w()},O=()=>{if(console.log("点击语音按钮"),r.value){At.info("语音正在转写,请稍候...");return}n.value?P():I()},I=()=>{console.log("开始语音输入"),a()||At.error("语音识别启动失败,请检查麦克风权限")},P=()=>{console.log("停止语音输入"),s(),At.info("语音转写中,请稍候...")},M=async()=>{if(!l.value.trim()){At.warning("请输入搜索内容");return}if(!d.value){d.value=!0,w();try{console.log("搜索内容:",l.value),t.push({path:"/chat",query:{autoMessage:l.value}})}finally{d.value=!1}}},_=()=>{u.value=!0},R=()=>{u.value=!1},N=async W=>{try{console.log("收到反馈数据:",W),console.log("feedback_img字段值:",W.feedback_img);let re=W.feedback_img||"";console.log("处理后的feedbackImg:",re);const J={feedback_type:V(W.type),feedback_content:W.content,feedback_user_phone:W.contact||"",feedback_img:re};console.log(J,"feedbackPayload");const te=await Bn.submitFeedback(J);console.log(te,"response"),At.success("反馈提交成功!感谢您的宝贵意见"),R()}catch(re){console.error("提交反馈失败:",re),At.error("提交反馈失败,请重试")}},V=W=>({function:1,interface:2,experience:3,other:4})[W]||1,L=W=>{console.log("点击问题:",W),t.push({path:"/chat",query:{autoMessage:W}})},j=()=>{t.push("/hazard-detection")},H=()=>{t.push("/safety-hazard")},G=()=>{t.push("/exam-workshop")},Z=()=>{t.push("/ai-writing")},z=()=>{t.push("/policy-document")};Ct(o,W=>{!W||n.value||(l.value=W)}),Ct(i,W=>{W&&(console.error("语音识别错误:",W),At.error(W))});const U=W=>{!W.target.closest(".user-recommend-questions")&&!W.target.closest(".search-box")&&w()};return jn(()=>{m();const W=Vve();f.value={username:W||"蜀道用户"},console.log("用户信息:",f.value),document.addEventListener("click",U)}),hl(()=>{document.removeEventListener("click",U),g.value&&clearTimeout(g.value)}),(W,re)=>(F(),K("div",clt,[x("div",dlt,[re[5]||(re[5]=x("div",{class:"logo"},[x("img",{src:Qj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"user-info",onMouseenter:re[0]||(re[0]=J=>p.value=!0),onMouseleave:re[1]||(re[1]=J=>p.value=!1)},[re[4]||(re[4]=x("div",{class:"user-avatar"},[x("div",{class:"avatar-icon"})],-1)),x("span",flt,ze(f.value?.username||"用户"),1)],32)]),x("div",plt,[re[14]||(re[14]=x("h1",{class:"main-title"},"蜀道安全管理AI智能助手",-1)),re[15]||(re[15]=x("p",{class:"sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",hlt,[x("div",glt,[an(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"search-input","onUpdate:modelValue":re[2]||(re[2]=J=>l.value=J),onKeyup:Lr(M,["enter"]),onInput:A},null,544),[[jr,l.value]]),x("button",{class:oe(["voice-btn",{recording:C(n)}]),onClick:O,disabled:d.value},[x("div",mlt,[x("img",{src:C(Xf),alt:"语音",class:"action-icon"},null,8,ylt),C(n)?(F(),K("div",blt)):xe("",!0)])],10,vlt),re[6]||(re[6]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:M,disabled:d.value||!l.value.trim()},[x("img",{src:l.value.trim()&&!d.value?C(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,Alt)],8,wlt)]),y.value&&v.value.length>0?(F(),K("div",{key:0,class:"user-recommend-questions",onClick:re[3]||(re[3]=Qt(()=>{},["stop"]))},[x("div",Clt,[(F(!0),K(Nt,null,on(v.value,(J,te)=>(F(),K("div",{key:te,class:"recommend-item",onClick:X=>k(J)},ze(J),9,xlt))),128))])])):xe("",!0)]),x("div",Slt,[x("div",Elt,[x("div",klt,[x("div",{class:"card-header"},[x("div",{class:"refresh-button",onClick:b},re[7]||(re[7]=[x("span",{class:"refresh-text"},"换一换",-1)]))]),x("div",Tlt,[x("div",_lt,[(F(!0),K(Nt,null,on(c.value,(J,te)=>(F(),K("div",{class:"question-item",onClick:X=>L(J.question),key:te,title:J.question},ze(te+1)+". "+ze(J.question),9,Dlt))),128))])])])]),x("div",{class:"card-column"},[x("div",{class:"hazard-card",onClick:j},re[8]||(re[8]=[x("div",{class:"card-title"},"隐患提示",-1),x("div",{class:"card-description"},"图片智能识别,风险隐患提示",-1)])),x("div",{class:"training-card",onClick:H},re[9]||(re[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:G},re[10]||(re[10]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+hve+'" alt="考试工坊" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>考试工坊</div></div><div class="service-description" data-v-5ac77eb3>让组卷更省心,让出题更精准</div><div class="service-tag" style="color:#2563EB;" data-v-5ac77eb3>生成考题 ›</div>',3)])),x("div",{class:"service-card policy-document-card",onClick:z},re[11]||(re[11]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+gve+'" alt="政策文件" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>政策文件</div></div><div class="service-description" data-v-5ac77eb3>汇集国家、行业及集团政策文件</div><div class="service-tag" style="color:#EA580C;" data-v-5ac77eb3>了解更多 ›</div>',3)]))]),x("div",{class:"card-column"},[x("div",{class:"service-card ai-writing-card",onClick:Z},re[12]||(re[12]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+vve+'" alt="AI写作" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>AI写作</div></div><div class="service-description" data-v-5ac77eb3>一键创作公文,让文案更专业</div><div class="service-tag" style="color:#16A34A;" data-v-5ac77eb3>开始创作 ›</div>',3)])),x("div",{class:"service-card feedback-card",onClick:_},re[13]||(re[13]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+mve+'" alt="意见反馈" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>意见反馈</div></div><div class="service-description" data-v-5ac77eb3>助力产品升级,期待您的反馈</div><div class="service-tag" style="color:#9333EA;" data-v-5ac77eb3>参与反馈 ›</div>',3)]))])])]),re[16]||(re[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)),$e(Zst,{visible:u.value,onClose:R,onSubmit:N},null,8,["visible"])]))}},Olt=Yo(Ilt,[["__scopeId","data-v-5ac77eb3"]]),wc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAD5SURBVFiF7ZdLDoIwFEVvifuQpbATdQwDZAXPDRAH4tS6E9mJbMTngE8a09IWNJjQMyK0eRx6+wFg7QiXTllOCQux9SrM3FzO9LD127gU4wg7gPc+AiwgAVgFIp+iv2CIIMspad9USwIg9qz9hGEExAv3Pp4hgjZjv2G2EAPQ1mMhBrH/iUAlLeiGzr4qyWmlmEgL4u5SViUdPtsXH4Eg4LQRqegynTNnFh+BIBAEgkAQ8N4JAUgAYKDubzBQTz0yvQV0R+q1JNmL+bJ4BIsLWCNIjyfTh6ojPNpqnwOC5TyBcbQRMNB8+0HqqlExrp4pv2MmXH/T1skbfkFGJuI/zo8AAAAASUVORK5CYII=",swe="/assets/2-DNbvF9Ja.jpg",Mlt="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=",wF="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==",AF="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==",CF="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=",xF="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=",Plt={class:"nav-sidebar"},Nlt={class:"nav-menu"},Rlt={__name:"Sidebar",setup(e){const t=Hl(),n=z_(),r=ee(()=>(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",Plt,[x("div",{class:"logo-section",onClick:i},s[5]||(s[5]=[x("img",{src:swe,alt:"logo",class:"logo-image"},null,-1)])),x("div",Nlt,[x("div",{class:oe(["nav-item",{active:r.value==="Chat"}]),onClick:s[0]||(s[0]=l=>o("ai-chat"))},s[6]||(s[6]=[x("img",{src:Mlt,alt:"AI问答",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI问答",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="HazardDetection"}]),onClick:s[1]||(s[1]=l=>o("hazard-detection"))},s[7]||(s[7]=[x("img",{src:wF,alt:"隐患识别",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"隐患提示",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="SafetyHazard"}]),onClick:s[2]||(s[2]=l=>o("safety-hazard"))},s[8]||(s[8]=[x("img",{src:AF,alt:"安全隐患",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"安全培训",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="AIWriting"}]),onClick:s[3]||(s[3]=l=>o("ai-writing"))},s[9]||(s[9]=[x("img",{src:CF,alt:"AI写作",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI写作",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="ExamWorkshop"}]),onClick:s[4]||(s[4]=l=>o("exam-workshop"))},s[10]||(s[10]=[x("img",{src:xF,alt:"考试工坊",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"考试工坊",-1)]),2)])]))}},VC=Yo(Rlt,[["__scopeId","data-v-9f53bf3f"]]);var xu={},ZW="1.13.7",nte=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},CD=Array.prototype,XW=Object.prototype,rte=typeof Symbol<"u"?Symbol.prototype:null,Blt=CD.push,qC=CD.slice,cA=XW.toString,Llt=XW.hasOwnProperty,lwe=typeof ArrayBuffer<"u",Flt=typeof DataView<"u",Ult=Array.isArray,ote=Object.keys,ite=Object.create,ate=lwe&&ArrayBuffer.isView,zlt=isNaN,$lt=isFinite,uwe=!{toString:null}.propertyIsEnumerable("toString"),ste=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],jlt=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 cwe(e){return e===null}function JW(e){return e===void 0}function eV(e){return e===!0||e===!1||cA.call(e)==="[object Boolean]"}function dwe(e){return!!(e&&e.nodeType===1)}function Gs(e){var t="[object "+e+"]";return function(n){return cA.call(n)===t}}const xD=Gs("String"),tV=Gs("Number"),fwe=Gs("Date"),pwe=Gs("RegExp"),hwe=Gs("Error"),nV=Gs("Symbol"),rV=Gs("ArrayBuffer");var gwe=Gs("Function"),Hlt=nte.document&&nte.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Hlt!="function"&&(gwe=function(e){return typeof e=="function"||!1});const js=gwe,vwe=Gs("Object");var mwe=Flt&&(!/\[native code\]/.test(String(DataView))||vwe(new DataView(new ArrayBuffer(8)))),oV=typeof Map<"u"&&vwe(new Map),Wlt=Gs("DataView");function Vlt(e){return e!=null&&js(e.getInt8)&&rV(e.buffer)}const dA=mwe?Vlt:Wlt,D0=Ult||Gs("Array");function I0(e,t){return e!=null&&Llt.call(e,t)}var SF=Gs("Arguments");(function(){SF(arguments)||(SF=function(e){return I0(e,"callee")})})();const SD=SF;function ywe(e){return!nV(e)&&$lt(e)&&!isNaN(parseFloat(e))}function iV(e){return tV(e)&&zlt(e)}function aV(e){return function(){return e}}function bwe(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=jlt}}function wwe(e){return function(t){return t?.[e]}}const $E=wwe("byteLength"),qlt=bwe($E);var Glt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Klt(e){return ate?ate(e)&&!dA(e):qlt(e)&&Glt.test(cA.call(e))}const sV=lwe?Klt:aV(!1),Ul=wwe("length");function Ylt(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 Awe(e,t){t=Ylt(t);var n=ste.length,r=e.constructor,o=js(r)&&r.prototype||XW,i="constructor";for(I0(e,i)&&!t.contains(i)&&t.push(i);n--;)i=ste[n],i in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function ts(e){if(!_0(e))return[];if(ote)return ote(e);var t=[];for(var n in e)I0(e,n)&&t.push(n);return uwe&&Awe(e,t),t}function Cwe(e){if(e==null)return!0;var t=Ul(e);return typeof t=="number"&&(D0(e)||xD(e)||SD(e))?t===0:Ul(ts(e))===0}function lV(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=ZW;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 lte(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,$E(e))}var ute="[object DataView]";function EF(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:xwe(e,t,n,r)}function xwe(e,t,n,r){e instanceof di&&(e=e._wrapped),t instanceof di&&(t=t._wrapped);var o=cA.call(e);if(o!==cA.call(t))return!1;if(mwe&&o=="[object Object]"&&dA(e)){if(!dA(t))return!1;o=ute}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 rte.valueOf.call(e)===rte.valueOf.call(t);case"[object ArrayBuffer]":case ute:return xwe(lte(e),lte(t),n,r)}var i=o==="[object Array]";if(!i&&sV(e)){var a=$E(e);if(a!==$E(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(!EF(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)&&EF(e[c],t[c],n,r)))return!1}return n.pop(),r.pop(),!0}function Swe(e,t){return EF(e,t)}function jb(e){if(!_0(e))return[];var t=[];for(var n in e)t.push(n);return uwe&&Awe(e,t),t}function uV(e){var t=Ul(e);return function(n){if(n==null)return!1;var r=jb(n);if(Ul(r))return!1;for(var o=0;o<t;o++)if(!js(n[e[o]]))return!1;return e!==Twe||!js(n[cV])}}var cV="forEach",Ewe="has",dV=["clear","delete"],kwe=["get",Ewe,"set"],Qlt=dV.concat(cV,kwe),Twe=dV.concat(kwe),Zlt=["add"].concat(dV,cV,Ewe);const _we=oV?uV(Qlt):Gs("Map"),Dwe=oV?uV(Twe):Gs("WeakMap"),Iwe=oV?uV(Zlt):Gs("Set"),Owe=Gs("WeakSet");function im(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 Mwe(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 fV(e){for(var t={},n=ts(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function fA(e){var t=[];for(var n in e)js(e[n])&&t.push(n);return t.sort()}function pV(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 hV=pV(jb),jy=pV(ts),gV=pV(jb,!0);function Xlt(){return function(){}}function Pwe(e){if(!_0(e))return{};if(ite)return ite(e);var t=Xlt();t.prototype=e;var n=new t;return t.prototype=null,n}function Nwe(e,t){var n=Pwe(e);return t&&jy(n,t),n}function Rwe(e){return _0(e)?D0(e)?e.slice():hV({},e):e}function Bwe(e,t){return t(e),e}function vV(e){return D0(e)?e:[e]}di.toPath=vV;function GC(e){return di.toPath(e)}function mV(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 yV(e,t,n){var r=mV(e,GC(t));return JW(r)?n:r}function Lwe(e,t){t=GC(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 ED(e){return e}function Rv(e){return e=jy({},e),function(t){return lV(t,e)}}function kD(e){return e=GC(e),function(t){return mV(t,e)}}function KC(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 Fwe(e,t,n){return e==null?ED:js(e)?KC(e,t,n):_0(e)&&!D0(e)?Rv(e):kD(e)}function TD(e,t){return Fwe(e,t,1/0)}di.iteratee=TD;function Wl(e,t,n){return di.iteratee!==TD?di.iteratee(e,t):Fwe(e,t,n)}function Uwe(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 bV(){}function zwe(e){return e==null?bV:function(t){return yV(e,t)}}function $we(e,t,n){var r=Array(Math.max(0,e));t=KC(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function jE(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}const Hy=Date.now||function(){return new Date().getTime()};function jwe(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 Hwe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Wwe=jwe(Hwe),Jlt=fV(Hwe),Vwe=jwe(Jlt),qwe=di.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var LI=/(.)^/,eut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},tut=/\\|'|\r|\n|\u2028|\u2029/g;function nut(e){return"\\"+eut[e]}var rut=/^\s*(\w|\$)+\s*$/;function Gwe(e,t,n){!t&&n&&(t=n),t=gV({},t,di.templateSettings);var r=RegExp([(t.escape||LI).source,(t.interpolate||LI).source,(t.evaluate||LI).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(u,d,c,f,p){return i+=e.slice(o,p).replace(tut,nut),o=p+u.length,d?i+=`'+
  68. ((__t=(`+d+`))==null?'':_.escape(__t))+
  69. '`:c?i+=`'+
  70. ((__t=(`+c+`))==null?'':__t)+
  71. '`:f&&(i+=`';
  72. `+f+`
  73. __p+='`),u}),i+=`';
  74. `;var a=t.variable;if(a){if(!rut.test(a))throw new Error("variable is not a bare identifier: "+a)}else i=`with(obj||{}){
  75. `+i+`}
  76. `,a="obj";i=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
  77. `+i+`return __p;
  78. `;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+`){
  79. `+i+"}",l}function Kwe(e,t,n){t=GC(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 out=0;function Ywe(e){var t=++out+"";return e?e+t:t}function Qwe(e){var t=di(e);return t._chain=!0,t}function Zwe(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Pwe(e.prototype),a=e.apply(i,o);return _0(a)?a:i}var am=cl(function(e,t){var n=am.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 Zwe(e,r,this,this,a)};return r});am.placeholder=di;const wV=cl(function(e,t,n){if(!js(e))throw new TypeError("Bind must be called on a function");var r=cl(function(o){return Zwe(e,r,t,this,n.concat(o))});return r}),yu=bwe(Ul);function sm(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)||SD(s)))if(t>1)sm(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 Xwe=cl(function(e,t){t=sm(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]=wV(e[r],e)}return e});function Jwe(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 AV=cl(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),e4e=am(AV,di,1);function t4e(e,t,n){var r,o,i,a,s=0;n||(n={});var l=function(){s=n.leading===!1?0:Hy(),r=null,a=e.apply(o,i),r||(o=i=null)},u=function(){var d=Hy();!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 n4e(e,t,n){var r,o,i,a,s,l=function(){var d=Hy()-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=Hy(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,i))),a});return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function r4e(e,t){return am(t,e)}function _D(e){return function(){return!e.apply(this,arguments)}}function o4e(){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 i4e(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function CV(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const a4e=am(CV,2);function xV(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 s4e(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 DD=s4e(1),SV=s4e(-1);function EV(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 l4e(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(qC.call(r,a,s),iV),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 kV=l4e(1,DD,EV),u4e=l4e(-1,SV);function pA(e,t,n){var r=yu(e)?DD:xV,o=r(e,t,n);if(o!==void 0&&o!==-1)return e[o]}function c4e(e,t){return pA(e,Rv(t))}function $c(e,t,n){t=KC(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 tp(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 d4e(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,KC(r,i,4),o,a)}}const iy=d4e(1),HE=d4e(-1);function l0(e,t,n){var r=[];return t=Wl(t,n),$c(e,function(o,i,a){t(o,i,a)&&r.push(o)}),r}function f4e(e,t,n){return l0(e,_D(Wl(t)),n)}function WE(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 VE(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 $u(e,t,n,r){return yu(e)||(e=im(e)),(typeof n!="number"||r)&&(n=0),kV(e,t,n)>=0}const p4e=cl(function(e,t,n){var r,o;return js(t)?o=t:(t=GC(t),r=t.slice(0,-1),t=t[t.length-1]),tp(e,function(i){var a=o;if(!a){if(r&&r.length&&(i=mV(i,r)),i==null)return;a=i[t]}return a==null?a:a.apply(i,n)})});function ID(e,t){return tp(e,kD(t))}function h4e(e,t){return l0(e,Rv(t))}function TV(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:im(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),$c(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 g4e(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:im(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),$c(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 iut=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function _V(e){return e?D0(e)?qC.call(e):xD(e)?e.match(iut):yu(e)?tp(e,ED):im(e):[]}function DV(e,t,n){if(t==null||n)return yu(e)||(e=im(e)),e[jE(e.length-1)];var r=_V(e),o=Ul(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var s=jE(a,i),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)}function v4e(e){return DV(e,1/0)}function m4e(e,t,n){var r=0;return t=Wl(t,n),ID(tp(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 OD(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Wl(r,o),$c(n,function(a,s){var l=r(a,s,n);e(i,a,l)}),i}}const y4e=OD(function(e,t,n){I0(e,n)?e[n].push(t):e[n]=[t]}),b4e=OD(function(e,t,n){e[n]=t}),w4e=OD(function(e,t,n){I0(e,n)?e[n]++:e[n]=1}),A4e=OD(function(e,t,n){e[n?0:1].push(t)},!0);function C4e(e){return e==null?0:yu(e)?e.length:ts(e).length}function aut(e,t,n){return t in n}const IV=cl(function(e,t){var n={},r=t[0];if(e==null)return n;js(r)?(t.length>1&&(r=KC(r,t[1])),t=jb(e)):(r=aut,t=sm(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}),x4e=cl(function(e,t){var n=t[0],r;return js(n)?(n=_D(n),t.length>1&&(r=t[1])):(t=tp(sm(t,!1,!1),String),n=function(o,i){return!$u(t,i)}),IV(e,n,r)});function OV(e,t,n){return qC.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function ay(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:OV(e,e.length-t)}function Qg(e,t,n){return qC.call(e,t==null||n?1:t)}function S4e(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:Qg(e,Math.max(0,e.length-t))}function E4e(e){return l0(e,Boolean)}function k4e(e,t){return sm(e,t,!1)}const MV=cl(function(e,t){return t=sm(t,!0,!0),l0(e,function(n){return!$u(t,n)})}),T4e=cl(function(e,t){return MV(e,t)});function hA(e,t,n,r){eV(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?$u(i,u)||(i.push(u),o.push(l)):$u(o,l)||o.push(l)}return o}const _4e=cl(function(e){return hA(sm(e,!0,!0))});function D4e(e){for(var t=[],n=arguments.length,r=0,o=Ul(e);r<o;r++){var i=e[r];if(!$u(t,i)){var a;for(a=1;a<n&&$u(arguments[a],i);a++);a===n&&t.push(i)}}return t}function gA(e){for(var t=e&&TV(e,Ul).length||0,n=Array(t),r=0;r<t;r++)n[r]=ID(e,r);return n}const I4e=cl(gA);function O4e(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 M4e(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 P4e(e,t){if(t==null||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(qC.call(e,r,r+=t));return n}function PV(e,t){return e._chain?di(t).chain():t}function NV(e){return $c(fA(e),function(t){var n=di[t]=e[t];di.prototype[t]=function(){var r=[this._wrapped];return Blt.apply(r,arguments),PV(this,n.apply(di,r))}}),di}$c(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=CD[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]),PV(this,n)}});$c(["concat","join","slice"],function(e){var t=CD[e];di.prototype[e]=function(){var n=this._wrapped;return n!=null&&(n=t.apply(n,arguments)),PV(this,n)}});const sut=Object.freeze(Object.defineProperty({__proto__:null,VERSION:ZW,after:i4e,all:WE,allKeys:jb,any:VE,assign:jy,before:CV,bind:wV,bindAll:Xwe,chain:Qwe,chunk:P4e,clone:Rwe,collect:tp,compact:E4e,compose:o4e,constant:aV,contains:$u,countBy:w4e,create:Nwe,debounce:n4e,default:di,defaults:gV,defer:e4e,delay:AV,detect:pA,difference:MV,drop:Qg,each:$c,escape:Wwe,every:WE,extend:hV,extendOwn:jy,filter:l0,find:pA,findIndex:DD,findKey:xV,findLastIndex:SV,findWhere:c4e,first:ay,flatten:k4e,foldl:iy,foldr:HE,forEach:$c,functions:fA,get:yV,groupBy:y4e,has:Lwe,head:ay,identity:ED,include:$u,includes:$u,indexBy:b4e,indexOf:kV,initial:OV,inject:iy,intersection:D4e,invert:fV,invoke:p4e,isArguments:SD,isArray:D0,isArrayBuffer:rV,isBoolean:eV,isDataView:dA,isDate:fwe,isElement:dwe,isEmpty:Cwe,isEqual:Swe,isError:hwe,isFinite:ywe,isFunction:js,isMap:_we,isMatch:lV,isNaN:iV,isNull:cwe,isNumber:tV,isObject:_0,isRegExp:pwe,isSet:Iwe,isString:xD,isSymbol:nV,isTypedArray:sV,isUndefined:JW,isWeakMap:Dwe,isWeakSet:Owe,iteratee:TD,keys:ts,last:S4e,lastIndexOf:u4e,map:tp,mapObject:Uwe,matcher:Rv,matches:Rv,max:TV,memoize:Jwe,methods:fA,min:g4e,mixin:NV,negate:_D,noop:bV,now:Hy,object:O4e,omit:x4e,once:a4e,pairs:Mwe,partial:am,partition:A4e,pick:IV,pluck:ID,property:kD,propertyOf:zwe,random:jE,range:M4e,reduce:iy,reduceRight:HE,reject:f4e,rest:Qg,restArguments:cl,result:Kwe,sample:DV,select:l0,shuffle:v4e,size:C4e,some:VE,sortBy:m4e,sortedIndex:EV,tail:Qg,take:ay,tap:Bwe,template:Gwe,templateSettings:qwe,throttle:t4e,times:$we,toArray:_V,toPath:vV,transpose:gA,unescape:Vwe,union:_4e,uniq:hA,unique:hA,uniqueId:Ywe,unzip:gA,values:im,where:h4e,without:T4e,wrap:r4e,zip:I4e},Symbol.toStringTag,{value:"Module"}));var kF=NV(sut);kF._=kF;const lut=Object.freeze(Object.defineProperty({__proto__:null,VERSION:ZW,after:i4e,all:WE,allKeys:jb,any:VE,assign:jy,before:CV,bind:wV,bindAll:Xwe,chain:Qwe,chunk:P4e,clone:Rwe,collect:tp,compact:E4e,compose:o4e,constant:aV,contains:$u,countBy:w4e,create:Nwe,debounce:n4e,default:kF,defaults:gV,defer:e4e,delay:AV,detect:pA,difference:MV,drop:Qg,each:$c,escape:Wwe,every:WE,extend:hV,extendOwn:jy,filter:l0,find:pA,findIndex:DD,findKey:xV,findLastIndex:SV,findWhere:c4e,first:ay,flatten:k4e,foldl:iy,foldr:HE,forEach:$c,functions:fA,get:yV,groupBy:y4e,has:Lwe,head:ay,identity:ED,include:$u,includes:$u,indexBy:b4e,indexOf:kV,initial:OV,inject:iy,intersection:D4e,invert:fV,invoke:p4e,isArguments:SD,isArray:D0,isArrayBuffer:rV,isBoolean:eV,isDataView:dA,isDate:fwe,isElement:dwe,isEmpty:Cwe,isEqual:Swe,isError:hwe,isFinite:ywe,isFunction:js,isMap:_we,isMatch:lV,isNaN:iV,isNull:cwe,isNumber:tV,isObject:_0,isRegExp:pwe,isSet:Iwe,isString:xD,isSymbol:nV,isTypedArray:sV,isUndefined:JW,isWeakMap:Dwe,isWeakSet:Owe,iteratee:TD,keys:ts,last:S4e,lastIndexOf:u4e,map:tp,mapObject:Uwe,matcher:Rv,matches:Rv,max:TV,memoize:Jwe,methods:fA,min:g4e,mixin:NV,negate:_D,noop:bV,now:Hy,object:O4e,omit:x4e,once:a4e,pairs:Mwe,partial:am,partition:A4e,pick:IV,pluck:ID,property:kD,propertyOf:zwe,random:jE,range:M4e,reduce:iy,reduceRight:HE,reject:f4e,rest:Qg,restArguments:cl,result:Kwe,sample:DV,select:l0,shuffle:v4e,size:C4e,some:VE,sortBy:m4e,sortedIndex:EV,tail:Qg,take:ay,tap:Bwe,template:Gwe,templateSettings:qwe,throttle:t4e,times:$we,toArray:_V,toPath:vV,transpose:gA,unescape:Vwe,union:_4e,uniq:hA,unique:hA,uniqueId:Ywe,unzip:gA,values:im,where:h4e,without:T4e,wrap:r4e,zip:I4e},Symbol.toStringTag,{value:"Module"})),Ia=B$e(lut);var Ix={},Su={},FI={exports:{}},Ox={exports:{}},cte;function Hb(){if(cte)return Ox.exports;cte=1;var e=(function(){return this===void 0})();if(e)Ox.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}};Ox.exports={isArray:u,keys:o,names:o,defineProperty:a,getDescriptor:i,freeze:s,getPrototypeOf:l,isES5:e,propertyIsWritable:function(){return!0}}}return Ox.exports}var O2,dte;function zi(){if(dte)return O2;dte=1;var e={},t=Hb(),n=typeof navigator>"u",r={e:{}},o,i=typeof self<"u"?self:typeof window<"u"?window:typeof zs<"u"?zs:O2!==void 0?O2:null;function a(){try{var W=o;return o=null,W.apply(this,arguments)}catch(re){return r.e=re,r}}function s(W){return o=W,a}var l=function(W,re){var J={}.hasOwnProperty;function te(){this.constructor=W,this.constructor$=re;for(var X in re.prototype)J.call(re.prototype,X)&&X.charAt(X.length-1)!=="$"&&(this[X+"$"]=re.prototype[X])}return te.prototype=re.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,re){var J=W.length,te=new Array(J+1),X;for(X=0;X<J;++X)te[X]=W[X];return te[X]=re,te}function p(W,re,J){if(t.isES5){var te=Object.getOwnPropertyDescriptor(W,re);if(te!=null)return te.get==null&&te.set==null?te.value:J}else return{}.hasOwnProperty.call(W,re)?W[re]:void 0}function v(W,re,J){if(u(W))return W;var te={value:J,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(W,re,te),W}function h(W){throw W}var g=(function(){var W=[Array.prototype,Object.prototype,Function.prototype],re=function(X){for(var ue=0;ue<W.length;++ue)if(W[ue]===X)return!0;return!1};if(t.isES5){var J=Object.getOwnPropertyNames;return function(X){for(var ue=[],me=Object.create(null);X!=null&&!re(X);){var Me;try{Me=J(X)}catch{return ue}for(var Ae=0;Ae<Me.length;++Ae){var ge=Me[Ae];if(!me[ge]){me[ge]=!0;var _e=Object.getOwnPropertyDescriptor(X,ge);_e!=null&&_e.get==null&&_e.set==null&&ue.push(ge)}}X=t.getPrototypeOf(X)}return ue}}else{var te={}.hasOwnProperty;return function(X){if(re(X))return[];var ue=[];e:for(var me in X)if(te.call(X,me))ue.push(me);else{for(var Me=0;Me<W.length;++Me)if(te.call(W[Me],me))continue e;ue.push(me)}return ue}}})(),y=/this\s*\.\s*\S+\s*=/;function m(W){try{if(typeof W=="function"){var re=t.names(W.prototype),J=t.isES5&&re.length>1,te=re.length>0&&!(re.length===1&&re[0]==="constructor"),X=y.test(W+"")&&t.names(W).length>0;if(J||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,re,J){for(var te=new Array(W),X=0;X<W;++X)te[X]=re+X+J;return te}function k(W){try{return W+""}catch{return"[no string representation]"}}function O(W){return W!==null&&typeof W=="object"&&typeof W.message=="string"&&typeof W.name=="string"}function I(W){try{v(W,"isOperational",!0)}catch{}}function P(W){return W==null?!1:W instanceof Error.__BluebirdErrorTypes__.OperationalError||W.isOperational===!0}function M(W){return O(W)&&t.propertyIsWritable(W,"stack")}var _=(function(){return"stack"in new Error?function(W){return M(W)?W:new Error(k(W))}:function(W){if(M(W))return W;try{throw new Error(k(W))}catch(re){return re}}})();function R(W){return{}.toString.call(W)}function N(W,re,J){for(var te=t.names(W),X=0;X<te.length;++X){var ue=te[X];if(J(ue))try{t.defineProperty(re,ue,t.getDescriptor(W,ue))}catch{}}}var V=function(W){return t.isArray(W)?W:null};if(typeof Symbol<"u"&&Symbol.iterator){var L=typeof Array.from=="function"?function(W){return Array.from(W)}:function(W){for(var re=[],J=W[Symbol.iterator](),te;!(te=J.next()).done;)re.push(te.value);return re};V=function(W){return t.isArray(W)?W:W!=null&&typeof W[Symbol.iterator]=="function"?L(W):null}}var j=typeof process<"u"&&R(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 z(W,re){return W.bind(re)}var U={isClass:m,isIdentifier:A,inheritedDataKeys:g,getDataPropertyOrDefault:p,thrower:h,isArray:t.isArray,asArray:V,notEnumerableProp:v,isPrimitive:u,isObject:d,isError:O,canEvaluate:n,errorObj:r,tryCatch:s,inherits:l,withAppended:f,maybeWrapAsError:c,toFastProperties:b,filledRange:S,toString:k,canAttachTrace:M,ensureErrorObject:_,originatesFromRejection:P,markAsOriginatingFromRejection:I,classString:R,copyDescriptors:N,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:j,hasEnvVariables:H,env:G,global:i,getNativePromise:Z,domainBind:z};U.isRecentNode=U.isNode&&(function(){var W=process.versions.node.split(".").map(Number);return W[0]===0&&W[1]>10||W[0]>0})(),U.isNode&&U.toFastProperties(process);try{throw new Error}catch(W){U.lastLineError=W}return O2=U,O2}var Mx={exports:{}},UI,fte;function uut(){if(fte)return UI;fte=1;var e=zi(),t,n=function(){throw new Error(`No async scheduler available
  80. See http://goo.gl/MqrFmX
  81. `)},r=e.getNativePromise();if(e.isNode&&typeof MutationObserver>"u"){var o=zs.setImmediate,i=process.nextTick;t=e.isRecentNode?function(s){o.call(zs,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 UI=t,UI}var zI,pte;function cut(){if(pte)return zI;pte=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)},zI=t,zI}var hte;function dut(){if(hte)return Mx.exports;hte=1;var e;try{throw new Error}catch(l){e=l}var t=uut(),n=cut(),r=zi();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)+`
  82. `),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
  83. See http://goo.gl/MqrFmX
  84. `)}};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},Mx.exports=o,Mx.exports.firstLineError=e,Mx.exports}var $I,gte;function u0(){if(gte)return $I;gte=1;var e=Hb(),t=e.freeze,n=zi(),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=`
  85. `+y+`AggregateError of:
  86. `;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(`
  87. `),S=0;S<A.length;++S)A[S]=y+A[S];w=A.join(`
  88. `),m+=w+`
  89. `}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})),$I={Error,TypeError:a,RangeError:s,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:l},$I}var jI,vte;function fut(){return vte||(vte=1,jI=function(e,t){var n=zi(),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}),jI}var HI,mte;function put(){return mte||(mte=1,HI=function(e,t,n,r,o){var i=zi();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}),HI}var WI,yte;function hut(){return yte||(yte=1,WI=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}),WI}var VI,bte;function gut(){return bte||(bte=1,VI=function(e,t){var n=e._getDomain,r=e._async,o=u0().Warning,i=zi(),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(){ge("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(),ge("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 re(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
  90. See http://goo.gl/MqrFmX
  91. `);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
  92. See http://goo.gl/MqrFmX
  93. `);e.prototype._captureStackTrace=Fe,e.prototype._attachExtraTrace=Pe,t.deactivateLongStackTraces(),r.enableTrampoline(),Le.longStackTraces=!1},e.prototype._captureStackTrace=Z,e.prototype._attachExtraTrace=z,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 ht=new CustomEvent(Pe.toLowerCase(),{detail:Ne,cancelable:!0});return!i.global.dispatchEvent(ht)}}else if(typeof Event=="function"){var Fe=new Event("CustomEvent");return i.global.dispatchEvent(Fe),function(Ne,ht){var Rt=new Event(Ne.toLowerCase(),{cancelable:!0});return Rt.detail=ht,!i.global.dispatchEvent(Rt)}}else{var Fe=document.createEvent("CustomEvent");return Fe.initCustomEvent("testingtheevent",!1,!0,{}),i.global.dispatchEvent(Fe),function(Ne,ht){var Rt=document.createEvent("CustomEvent");return Rt.initCustomEvent(Ne.toLowerCase(),!1,!0,ht),!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 O={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},I=function(Fe){var Pe=!1;try{Pe=S.apply(null,arguments)}catch(ht){r.throwLater(ht),Pe=!0}var Ne=!1;try{Ne=A(Fe,O[Fe].apply(null,arguments))}catch(ht){r.throwLater(ht),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=V,e.prototype._propagateFrom=L,e.prototype._onCancel=R,e.prototype._setOnCancel=N,e.prototype._attachCancellationCallback=_,e.prototype._execute=M,H=L,Le.cancellation=!0}return"monitoring"in Fe&&(Fe.monitoring&&!Le.monitoring?(Le.monitoring=!0,e.prototype._fireEvent=I):!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(ht){return ht}},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 M(Fe,Pe,Ne){var ht=this;try{Fe(Pe,Ne,function(Rt){if(typeof Rt!="function")throw new TypeError("onCancel must be a function, got: "+i.toString(Rt));ht._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 R(){return this._onCancelField}function N(Fe){this._onCancelField=Fe}function V(){this._cancellationParent=void 0,this._onCancelField=void 0}function L(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 z(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 ht=Me(Fe);i.notEnumerableProp(Fe,"stack",ht.message+`
  94. `+ht.stack.join(`
  95. `)),i.notEnumerableProp(Fe,"__stackCleaned__",!0)}}}function U(Fe,Pe,Ne,ht,Rt){if(Fe===void 0&&Pe!==null&&b){if(Rt!==void 0&&Rt._returnedNonUndefined()||(ht._bitField&65535)===0)return;Ne&&(Ne=Ne+" ");var Lt="",tn="";if(Pe._trace){for(var Wt=Pe._trace.stack.split(`
  96. `),zt=ue(Wt),dt=zt.length-1;dt>=0;--dt){var _t=zt[dt];if(!d.test(_t)){var ut=_t.match(c);ut&&(Lt="at "+ut[1]+":"+ut[2]+":"+ut[3]+" ");break}}if(zt.length>0){for(var rt=zt[0],dt=0;dt<Wt.length;++dt)if(Wt[dt]===rt){dt>0&&(tn=`
  97. `+Wt[dt-1]);break}}}var he="a promise was created in a "+Ne+"handler "+Lt+"but was not returned from it, see http://goo.gl/rRqMUw"+tn;ht._warn(he,!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."),re(Ne)}function re(Fe,Pe,Ne){if(Le.warnings){var ht=new o(Fe),Rt;if(Pe)Ne._attachExtraTrace(ht);else if(Le.longStackTraces&&(Rt=e._peekContext()))Rt.attachExtraTrace(ht);else{var Lt=Me(ht);ht.stack=Lt.message+`
  98. `+Lt.stack.join(`
  99. `)}I("warning",ht)||Ae(ht,"",!0)}}function J(Fe,Pe){for(var Ne=0;Ne<Pe.length-1;++Ne)Pe[Ne].push("From previous event:"),Pe[Ne]=Pe[Ne].join(`
  100. `);return Ne<Pe.length&&(Pe[Ne]=Pe[Ne].join(`
  101. `)),Fe+`
  102. `+Pe.join(`
  103. `)}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 ht=Fe[Ne],Rt=Pe.length-1,Lt=Pe[Rt],tn=-1,Wt=ht.length-1;Wt>=0;--Wt)if(ht[Wt]===Lt){tn=Wt;break}for(var Wt=tn;Wt>=0;--Wt){var zt=ht[Wt];if(Pe[Rt]===zt)Pe.pop(),Rt--;else break}Pe=ht}}function ue(Fe){for(var Pe=[],Ne=0;Ne<Fe.length;++Ne){var ht=Fe[Ne],Rt=ht===" (No stack trace)"||f.test(ht),Lt=Rt&&De(ht);Rt&&!Lt&&(v&&ht.charAt(0)!==" "&&(ht=" "+ht),Pe.push(ht))}return Pe}function me(Fe){for(var Pe=Fe.stack.replace(/\s+$/g,"").split(`
  104. `),Ne=0;Ne<Pe.length;++Ne){var ht=Pe[Ne];if(ht===" (No stack trace)"||f.test(ht))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?me(Fe):[" (No stack trace)"],{message:Ne,stack:Fe.name=="SyntaxError"?Pe:ue(Pe)}}function Ae(Fe,Pe,Ne){if(typeof console<"u"){var ht;if(i.isObject(Fe)){var Rt=Fe.stack;ht=Pe+p(Rt,Fe)}else ht=Pe+String(Fe);typeof h=="function"?h(ht,Ne):(typeof console.log=="function"||typeof console.log=="object")&&console.log(ht)}}function ge(Fe,Pe,Ne,ht){var Rt=!1;try{typeof Pe=="function"&&(Rt=!0,Fe==="rejectionHandled"?Pe(ht):Pe(Ne,ht))}catch(Lt){r.throwLater(Lt)}Fe==="unhandledRejection"?!I(Fe,Ne,ht)&&!Rt&&Ae(Ne,"Unhandled rejection "):I(Fe,ht)}function _e(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 ht=JSON.stringify(Fe);Pe=ht}catch{}Pe.length===0&&(Pe="(empty array)")}return"(<"+Q(Pe)+">, no stack trace)"}function Q(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 ie(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(`
  105. `),ht=Pe.stack.split(`
  106. `),Rt=-1,Lt=-1,tn,Wt,zt=0;zt<Ne.length;++zt){var dt=ie(Ne[zt]);if(dt){tn=dt.fileName,Rt=dt.line;break}}for(var zt=0;zt<ht.length;++zt){var dt=ie(ht[zt]);if(dt){Wt=dt.fileName,Lt=dt.line;break}}Rt<0||Lt<0||!tn||!Wt||tn!==Wt||Rt>=Lt||(De=function(_t){if(u.test(_t))return!0;var ut=ie(_t);return!!(ut&&ut.fileName===tn&&Rt<=ut.line&&ut.line<=Lt)})}}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={},ht=0,Rt=this;Rt!==void 0;++ht)Pe.push(Rt),Rt=Rt._parent;Fe=this._length=ht;for(var ht=Fe-1;ht>=0;--ht){var Lt=Pe[ht].stack;Ne[Lt]===void 0&&(Ne[Lt]=ht)}for(var ht=0;ht<Fe;++ht){var tn=Pe[ht].stack,Wt=Ne[tn];if(Wt!==void 0&&Wt!==ht){Wt>0&&(Pe[Wt-1]._parent=void 0,Pe[Wt-1]._length=1),Pe[ht]._parent=void 0,Pe[ht]._length=1;var zt=ht>0?Pe[ht-1]:this;Wt<Fe-1?(zt._parent=Pe[Wt+1],zt._parent.uncycle(),zt._length=zt._parent._length+1):(zt._parent=void 0,zt._length=1);for(var dt=zt._length+1,_t=ht-2;_t>=0;--_t)Pe[_t]._length=dt,dt++;return}}}},Re.prototype.attachExtraTrace=function(Fe){if(!Fe.__stackCleaned__){this.uncycle();for(var Pe=Me(Fe),Ne=Pe.message,ht=[Pe.stack],Rt=this;Rt!==void 0;)ht.push(ue(Rt.stack.split(`
  107. `))),Rt=Rt._parent;X(ht),te(ht),i.notEnumerableProp(Fe,"stack",J(Ne,ht)),i.notEnumerableProp(Fe,"__stackCleaned__",!0)}};var Ee=(function(){var Pe=/^\s*at\s*/,Ne=function(tn,Wt){return typeof tn=="string"?tn:Wt.name!==void 0&&Wt.message!==void 0?Wt.toString():_e(Wt)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,f=Pe,p=Ne;var ht=Error.captureStackTrace;return De=function(tn){return u.test(tn)},function(tn,Wt){Error.stackTraceLimit+=6,ht(tn,Wt),Error.stackTraceLimit-=6}}var Rt=new Error;if(typeof Rt.stack=="string"&&Rt.stack.split(`
  108. `)[0].indexOf("stackDetection@")>=0)return f=/@/,p=Ne,v=!0,function(Wt){Wt.stack=new Error().stack};var Lt;try{throw new Error}catch(tn){Lt="stack"in tn}return!("stack"in Rt)&&Lt&&typeof Error.stackTraceLimit=="number"?(f=Pe,p=Ne,function(Wt){Error.stackTraceLimit+=6;try{throw new Error}catch(zt){Wt.stack=zt.stack}Error.stackTraceLimit-=6}):(p=function(tn,Wt){return typeof tn=="string"?tn:(typeof Wt=="object"||typeof Wt=="function")&&Wt.name!==void 0&&Wt.message!==void 0?Wt.toString():_e(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
  109. `)}:!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:U,setBounds:ce,warn:re,deprecated:W,CapturedTrace:Re,fireDomEvent:A,fireGlobalEvent:S}}),VI}var qI,wte;function vut(){return wte||(wte=1,qI=function(e,t){var n=zi(),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}),qI}var GI,Ate;function mut(){return Ate||(Ate=1,GI=function(e){var t=zi(),n=Hb().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}),GI}var KI,Cte;function N4e(){if(Cte)return KI;Cte=1;var e=zi(),t=e.maybeWrapAsError,n=u0(),r=n.OperationalError,o=Hb();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 KI=l,KI}var YI,xte;function yut(){return xte||(xte=1,YI=function(e,t,n,r,o){var i=zi(),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)}}),YI}var QI,Ste;function but(){return Ste||(Ste=1,QI=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)}}),QI}var ZI,Ete;function wut(){return Ete||(Ete=1,ZI=function(e,t,n,r){var o=zi(),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()}}),ZI}var XI,kte;function Aut(){return kte||(kte=1,XI=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)}}),XI}var JI,Tte;function Cut(){return Tte||(Tte=1,JI=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
  110. See http://goo.gl/MqrFmX
  111. `);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
  112. See http://goo.gl/MqrFmX
  113. `);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}),JI}var eO,_te;function xut(){return _te||(_te=1,eO=function(e,t,n,r,o,i){var a=zi(),s=a.canEvaluate,l=a.tryCatch,u=a.errorObj,d;if(s){for(var c=function(m){return new Function("value","holder",`
  114. 'use strict';
  115. holder.pIndex = value;
  116. holder.checkFulfillment(this);
  117. `.replace(/Index/g,m))},f=function(m){return new Function("promise","holder",`
  118. 'use strict';
  119. holder.pIndex = promise;
  120. `.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;
  121. `+b.map(function(P){return`
  122. promise = `+P+`;
  123. if (promise instanceof Promise) {
  124. promise.cancel();
  125. }
  126. `}).join(`
  127. `),k=b.join(", "),O="Holder$"+m,I=`return function(tryCatch, errorObj, Promise, async) {
  128. 'use strict';
  129. function [TheName](fn) {
  130. [TheProperties]
  131. this.fn = fn;
  132. this.asyncNeeded = true;
  133. this.now = 0;
  134. }
  135. [TheName].prototype._callFunction = function(promise) {
  136. promise._pushContext();
  137. var ret = tryCatch(this.fn)([ThePassedArguments]);
  138. promise._popContext();
  139. if (ret === errorObj) {
  140. promise._rejectCallback(ret.e, false);
  141. } else {
  142. promise._resolveCallback(ret);
  143. }
  144. };
  145. [TheName].prototype.checkFulfillment = function(promise) {
  146. var now = ++this.now;
  147. if (now === [TheTotal]) {
  148. if (this.asyncNeeded) {
  149. async.invoke(this._callFunction, this, promise);
  150. } else {
  151. this._callFunction(promise);
  152. }
  153. }
  154. };
  155. [TheName].prototype._resultCancelled = function() {
  156. [CancellationCode]
  157. };
  158. return [TheName];
  159. }(tryCatch, errorObj, Promise, async);
  160. `;return I=I.replace(/\[TheName\]/g,O).replace(/\[TheTotal\]/g,m).replace(/\[ThePassedArguments\]/g,k).replace(/\[TheProperties\]/g,A).replace(/\[CancellationCode\]/g,S),new Function("tryCatch","errorObj","Promise","async",I)(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 O=n(arguments[k],N);if(O instanceof e){O=O._target();var I=O._bitField;(I&50397184)===0?(O._then(S[k],d,void 0,N,A),g[k](O,A),A.asyncNeeded=!1):(I&33554432)!==0?S[k].call(N,O._value(),A):(I&16777216)!==0?N._reject(O._reason()):N._cancel()}else S[k].call(N,O,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 M=arguments.length,_=new Array(M),R=0;R<M;++R)_[R]=arguments[R];b&&_.pop();var N=new t(_).promise();return b!==void 0?N.spread(b):N}}),eO}var tO,Dte;function Sut(){return Dte||(Dte=1,tO=function(e,t,n,r,o,i){var a=e._getDomain,s=zi(),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 O=r(S,this._promise);if(O instanceof e){O=O._target();var I=O._bitField;if((I&50397184)===0)return m>=1&&this._inFlight++,h[v]=O,O._proxy(this,(v+1)*-1),!1;if((I&33554432)!==0)S=O._value();else return(I&16777216)!==0?(this._reject(O._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)}}),tO}var nO,Ite;function Eut(){if(Ite)return nO;Ite=1;var e=Object.create;if(e){var t=e(null),n=e(null);t[" size"]=n[" size"]=0}return nO=function(r){var o=zi(),i=o.canEvaluate,a=o.isIdentifier,s,l;{var u=function(g){return new Function("ensureMethod",`
  161. return function(obj) {
  162. 'use strict'
  163. var len = this.length;
  164. ensureMethod(obj, 'methodName');
  165. switch(len) {
  166. case 1: return obj.methodName(this[0]);
  167. case 2: return obj.methodName(this[0], this[1]);
  168. case 3: return obj.methodName(this[0], this[1], this[2]);
  169. case 0: return obj.methodName();
  170. default:
  171. return obj.methodName.apply(obj, this);
  172. }
  173. };
  174. `.replace(/methodName/g,g))(f)},d=function(g){return new Function("obj",`
  175. 'use strict';
  176. return obj.propertyName;
  177. `.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)}},nO}var rO,Ote;function kut(){return Ote||(Ote=1,rO=function(e,t,n,r,o,i){var a=zi(),s=u0().TypeError,l=zi().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 O(){if(A>=S)return k._fulfill();var I=p(b[A++]);if(I instanceof e&&I._isDisposable()){try{I=n(I._getDisposer().tryDispose(w),b.promise)}catch(P){return f(P)}if(I instanceof e)return I._then(O,f,null,null,null)}O()}return O(),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),O=0;O<b;++O){var I=A[O];if(h.isDisposer(I)){var P=I;I=I.promise(),I._setDisposable(P)}else{var M=n(I);M instanceof e&&(I=M._then(y,null,null,{resources:k,index:O},void 0))}k[O]=I}for(var _=new Array(k.length),O=0;O<_.length;++O)_[O]=e.resolve(k[O]).reflect();var R=e.all(_).then(function(V){for(var L=0;L<V.length;++L){var j=V[L];if(j.isRejected())return u.e=j.error(),u;if(!j.isFulfilled()){R.cancel();return}V[L]=j.value()}N._pushContext(),w=d(w);var H=S?w.apply(void 0,V):w(V),G=N._popContext();return i.checkForgottenReturns(H,G,"Promise.using",N),H}),N=R.lastly(function(){var V=new e.PromiseInspection(R);return v(k,V)});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}}),rO}var oO,Mte;function Tut(){return Mte||(Mte=1,oO=function(e,t,n){var r=zi(),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}}),oO}var iO,Pte;function _ut(){return Pte||(Pte=1,iO=function(e,t,n,r,o,i){var a=u0(),s=a.TypeError,l=zi(),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
  178. See http://goo.gl/MqrFmX
  179. `.replace("%s",g)+`From coroutine:
  180. `+this._stack.split(`
  181. `).slice(1,-7).join(`
  182. `)));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
  183. See http://goo.gl/MqrFmX
  184. `);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
  185. See http://goo.gl/MqrFmX
  186. `);var h=new p(v,this),g=h.promise();return h._run(e.spawn),g}}),iO}var aO,Nte;function Dut(){return Nte||(Nte=1,aO=function(e){var t=zi(),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}}),aO}var sO,Rte;function Iut(){return Rte||(Rte=1,sO=function(e,t){var n={},r=zi(),o=N4e(),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(R){return r.isIdentifier(R)&&R.charAt(0)!=="_"&&R!=="constructor"};function v(R){return!f.test(R)}function h(R){try{return R.__isPromisified__===!0}catch{return!1}}function g(R,N,V){var L=r.getDataPropertyOrDefault(R,N+V,d);return L?h(L):!1}function y(R,N,V){for(var L=0;L<R.length;L+=2){var j=R[L];if(V.test(j)){for(var H=j.replace(V,""),G=0;G<R.length;G+=2)if(R[G]===H)throw new l(`Cannot promisify an API that has normal methods with '%s'-suffix
  187. See http://goo.gl/MqrFmX
  188. `.replace("%s",N))}}}function m(R,N,V,L){for(var j=r.inheritedDataKeys(R),H=[],G=0;G<j.length;++G){var Z=j[G],z=R[Z],U=L===p?!0:p(Z);typeof z=="function"&&!h(z)&&!g(R,Z,N)&&L(Z,z,R,U)&&H.push(Z,z)}return y(H,N,V),H}var b=function(R){return R.replace(/([$])/,"\\$")},w;{var A=function(R){for(var N=[R],V=Math.max(0,R-1-3),L=R-1;L>=V;--L)N.push(L);for(var L=R+1;L<=3;++L)N.push(L);return N},S=function(R){return r.filledRange(R,"_arg","")},k=function(R){return r.filledRange(Math.max(R,3),"_arg","")},O=function(R){return typeof R.length=="number"?Math.max(Math.min(R.length,1024),0):0};w=function(R,N,V,L,j,H){var G=Math.max(0,O(L)-1),Z=A(G),z=typeof R=="string"||N===n;function U(te){var X=S(te).join(", "),ue=te>0?", ":"",me;return z?me=`ret = callback.call(this, {{args}}, nodeback); break;
  189. `:me=N===void 0?`ret = callback({{args}}, nodeback); break;
  190. `:`ret = callback.call(receiver, {{args}}, nodeback); break;
  191. `,me.replace("{{args}}",X).replace(", ",ue)}function W(){for(var te="",X=0;X<Z.length;++X)te+="case "+Z[X]+":"+U(Z[X]);return te+=`
  192. default:
  193. var args = new Array(len + 1);
  194. var i = 0;
  195. for (var i = 0; i < len; ++i) {
  196. args[i] = arguments[i];
  197. }
  198. args[i] = nodeback;
  199. [CodeForCall]
  200. break;
  201. `.replace("[CodeForCall]",z?`ret = callback.apply(this, args);
  202. `:`ret = callback.apply(receiver, args);
  203. `),te}var re=typeof R=="string"?"this != null ? this['"+R+"'] : fn":"fn",J=`'use strict';
  204. var ret = function (Parameters) {
  205. 'use strict';
  206. var len = arguments.length;
  207. var promise = new Promise(INTERNAL);
  208. promise._captureStackTrace();
  209. var nodeback = nodebackForPromise(promise, `+H+`);
  210. var ret;
  211. var callback = tryCatch([GetFunctionCode]);
  212. switch(len) {
  213. [CodeForSwitchCase]
  214. }
  215. if (ret === errorObj) {
  216. promise._rejectCallback(maybeWrapAsError(ret.e), true, true);
  217. }
  218. if (!promise._isFateSealed()) promise._setAsyncGuaranteed();
  219. return promise;
  220. };
  221. notEnumerableProp(ret, '__isPromisified__', true);
  222. return ret;
  223. `.replace("[CodeForSwitchCase]",W()).replace("[GetFunctionCode]",re);return J=J.replace("Parameters",k(G)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",J)(e,L,N,i,a,o,r.tryCatch,r.errorObj,r.notEnumerableProp,t)}}function I(R,N,V,L,j,H){var G=(function(){return this})(),Z=R;typeof Z=="string"&&(R=L);function z(){var U=N;N===n&&(U=this);var W=new e(t);W._captureStackTrace();var re=typeof Z=="string"&&this!==G?this[Z]:R,J=o(W,H);try{re.apply(U,i(arguments,J))}catch(te){W._rejectCallback(a(te),!0,!0)}return W._isFateSealed()||W._setAsyncGuaranteed(),W}return r.notEnumerableProp(z,"__isPromisified__",!0),z}var P=s?w:I;function M(R,N,V,L,j){for(var H=new RegExp(b(N)+"$"),G=m(R,N,H,V),Z=0,z=G.length;Z<z;Z+=2){var U=G[Z],W=G[Z+1],re=U+N;if(L===P)R[re]=P(U,n,U,W,N,j);else{var J=L(W,function(){return P(U,n,U,W,N,j)});r.notEnumerableProp(J,"__isPromisified__",!0),R[re]=J}}return r.toFastProperties(R),R}function _(R,N,V){return P(R,N,void 0,R,null,V)}e.promisify=function(R,N){if(typeof R!="function")throw new l("expecting a function but got "+r.classString(R));if(h(R))return R;N=Object(N);var V=N.context===void 0?n:N.context,L=!!N.multiArgs,j=_(R,V,L);return r.copyDescriptors(R,j,v),j},e.promisifyAll=function(R,N){if(typeof R!="function"&&typeof R!="object")throw new l(`the target of promisifyAll must be an object or a function
  224. See http://goo.gl/MqrFmX
  225. `);N=Object(N);var V=!!N.multiArgs,L=N.suffix;typeof L!="string"&&(L=u);var j=N.filter;typeof j!="function"&&(j=p);var H=N.promisifier;if(typeof H!="function"&&(H=P),!r.isIdentifier(L))throw new RangeError(`suffix must be a valid identifier
  226. See http://goo.gl/MqrFmX
  227. `);for(var G=r.inheritedDataKeys(R),Z=0;Z<G.length;++Z){var z=R[G[Z]];G[Z]!=="constructor"&&r.isClass(z)&&(M(z.prototype,L,j,H,V),M(z,L,j,H,V))}return M(R,L,j,H,V)}}),sO}var lO,Bte;function Out(){return Bte||(Bte=1,lO=function(e,t,n,r){var o=zi(),i=o.isObject,a=Hb(),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
  228. See http://goo.gl/MqrFmX
  229. `);return v instanceof e&&p._propagateFrom(v,2),p}e.prototype.props=function(){return c(this)},e.props=function(f){return c(f)}}),lO}var uO,Lte;function Mut(){return Lte||(Lte=1,uO=function(e,t,n,r){var o=zi(),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)}}),uO}var cO,Fte;function Put(){return Fte||(Fte=1,cO=function(e,t,n,r,o,i){var a=e._getDomain,s=zi(),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}}),cO}var dO,Ute;function Nut(){return Ute||(Ute=1,dO=function(e,t,n){var r=e.PromiseInspection,o=zi();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)}}),dO}var fO,zte;function Rut(){return zte||(zte=1,fO=function(e,t,n){var r=zi(),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
  230. See http://goo.gl/MqrFmX
  231. `);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}),fO}var pO,$te;function But(){return $te||($te=1,pO=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)}}),pO}var hO,jte;function Lut(){return jte||(jte=1,hO=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}),hO}var gO,Hte;function Fut(){return Hte||(Hte=1,gO=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)}}),gO}var Wte;function Uut(){return Wte||(Wte=1,(function(e){e.exports=function(){var t=function(){return new f(`circular promise resolution chain
  232. See http://goo.gl/MqrFmX
  233. `)},n=function(){return new _.PromiseInspection(this._target())},r=function(L){return _.reject(new f(L))};function o(){}var i={},a=zi(),s;a.isNode?s=function(){var L=process.domain;return L===void 0&&(L=null),L}:s=function(){return null},a.notEnumerableProp(_,"_getDomain",s);var l=Hb(),u=dut(),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=fut()(_,v),m=put()(_,v,y,r,o),b=hut()(_),w=b.create,A=gut()(_,b);A.CapturedTrace;var S=vut()(_,y),k=mut()(g),O=N4e(),I=a.errorObj,P=a.tryCatch;function M(L,j){if(typeof j!="function")throw new f("expecting a function but got "+a.classString(j));if(L.constructor!==_)throw new f(`the promise constructor cannot be invoked directly
  234. See http://goo.gl/MqrFmX
  235. `)}function _(L){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,L!==v&&(M(this,L),this._resolveFromExecutor(L)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}_.prototype.toString=function(){return"[object Promise]"},_.prototype.caught=_.prototype.catch=function(L){var j=arguments.length;if(j>1){var H=new Array(j-1),G=0,Z;for(Z=0;Z<j-1;++Z){var z=arguments[Z];if(a.isObject(z))H[G++]=z;else return r("expecting an object but got A catch statement predicate "+a.classString(z))}return H.length=G,L=arguments[Z],this.then(void 0,k(H,L,this))}return this.then(void 0,L)},_.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},_.prototype.then=function(L,j){if(A.warnings()&&arguments.length>0&&typeof L!="function"&&typeof j!="function"){var H=".then() only accepts functions but was passed: "+a.classString(L);arguments.length>1&&(H+=", "+a.classString(j)),this._warn(H)}return this._then(L,j,void 0,void 0,void 0)},_.prototype.done=function(L,j){var H=this._then(L,j,void 0,void 0,void 0);H._setIsFinal()},_.prototype.spread=function(L){return typeof L!="function"?r("expecting a function but got "+a.classString(L)):this.all()._then(L,void 0,void 0,h,void 0)},_.prototype.toJSON=function(){var L={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(L.fulfillmentValue=this.value(),L.isFulfilled=!0):this.isRejected()&&(L.rejectionReason=this.reason(),L.isRejected=!0),L},_.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(L){return this.caught(a.originatesFromRejection,L)},_.getNewLibraryCopy=e.exports,_.is=function(L){return L instanceof _},_.fromNode=_.fromCallback=function(L){var j=new _(v);j._captureStackTrace();var H=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,G=P(L)(O(j,H));return G===I&&j._rejectCallback(G.e,!0),j._isFateSealed()||j._setAsyncGuaranteed(),j},_.all=function(L){return new m(L).promise()},_.cast=function(L){var j=y(L);return j instanceof _||(j=new _(v),j._captureStackTrace(),j._setFulfilled(),j._rejectionHandler0=L),j},_.resolve=_.fulfilled=_.cast,_.reject=_.rejected=function(L){var j=new _(v);return j._captureStackTrace(),j._rejectCallback(L,!0),j},_.setScheduler=function(L){if(typeof L!="function")throw new f("expecting a function but got "+a.classString(L));return d.setScheduler(L)},_.prototype._then=function(L,j,H,G,Z){var z=Z!==void 0,U=z?Z:new _(v),W=this._target(),re=W._bitField;z||(U._propagateFrom(this,3),U._captureStackTrace(),G===void 0&&(this._bitField&2097152)!==0&&((re&50397184)!==0?G=this._boundValue():G=W===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,U));var J=s();if((re&50397184)!==0){var te,X,ue=W._settlePromiseCtx;(re&33554432)!==0?(X=W._rejectionHandler0,te=L):(re&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:J===null?te:typeof te=="function"&&a.domainBind(J,te),promise:U,receiver:G,value:X})}else W._addCallbacks(L,j,U,G,J);return U},_.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(L){this._bitField=this._bitField&-65536|L&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(L){var j=L===0?this._receiver0:this[L*4-4+3];if(j!==i)return j===void 0&&this._isBound()?this._boundValue():j},_.prototype._promiseAt=function(L){return this[L*4-4+2]},_.prototype._fulfillmentHandlerAt=function(L){return this[L*4-4+0]},_.prototype._rejectionHandlerAt=function(L){return this[L*4-4+1]},_.prototype._boundValue=function(){},_.prototype._migrateCallback0=function(L){L._bitField;var j=L._fulfillmentHandler0,H=L._rejectionHandler0,G=L._promise0,Z=L._receiverAt(0);Z===void 0&&(Z=i),this._addCallbacks(j,H,G,Z,null)},_.prototype._migrateCallbackAt=function(L,j){var H=L._fulfillmentHandlerAt(j),G=L._rejectionHandlerAt(j),Z=L._promiseAt(j),z=L._receiverAt(j);z===void 0&&(z=i),this._addCallbacks(H,G,Z,z,null)},_.prototype._addCallbacks=function(L,j,H,G,Z){var z=this._length();if(z>=65531&&(z=0,this._setLength(0)),z===0)this._promise0=H,this._receiver0=G,typeof L=="function"&&(this._fulfillmentHandler0=Z===null?L:a.domainBind(Z,L)),typeof j=="function"&&(this._rejectionHandler0=Z===null?j:a.domainBind(Z,j));else{var U=z*4-4;this[U+2]=H,this[U+3]=G,typeof L=="function"&&(this[U+0]=Z===null?L:a.domainBind(Z,L)),typeof j=="function"&&(this[U+1]=Z===null?j:a.domainBind(Z,j))}return this._setLength(z+1),z},_.prototype._proxy=function(L,j){this._addCallbacks(void 0,void 0,j,L,null)},_.prototype._resolveCallback=function(L,j){if((this._bitField&117506048)===0){if(L===this)return this._rejectCallback(t(),!1);var H=y(L,this);if(!(H instanceof _))return this._fulfill(L);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 z=this._length();z>0&&G._migrateCallback0(this);for(var U=1;U<z;++U)G._migrateCallbackAt(this,U);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(L,j,H){var G=a.ensureErrorObject(L),Z=G===L;if(!Z&&!H&&A.warnings()){var z="a promise was rejected with a non-error: "+a.classString(L);this._warn(z,!0)}this._attachExtraTrace(G,j?Z:!1),this._reject(L)},_.prototype._resolveFromExecutor=function(L){var j=this;this._captureStackTrace(),this._pushContext();var H=!0,G=this._execute(L,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(L,j,H,G){var Z=G._bitField;if((Z&65536)===0){G._pushContext();var z;j===h?!H||typeof H.length!="number"?(z=I,z.e=new f("cannot .spread() a non-array: "+a.classString(H))):z=P(L).apply(this._boundValue(),H):z=P(L).call(j,H);var U=G._popContext();Z=G._bitField,(Z&65536)===0&&(z===g?G._reject(H):z===I?G._rejectCallback(z.e,!1):(A.checkForgottenReturns(z,U,"",G,this),G._resolveCallback(z)))}},_.prototype._target=function(){for(var L=this;L._isFollowing();)L=L._followee();return L},_.prototype._followee=function(){return this._rejectionHandler0},_.prototype._setFollowee=function(L){this._rejectionHandler0=L},_.prototype._settlePromise=function(L,j,H,G){var Z=L instanceof _,z=this._bitField,U=(z&134217728)!==0;(z&65536)!==0?(Z&&L._invokeInternalOnCancel(),H instanceof S&&H.isFinallyHandler()?(H.cancelPromise=L,P(j).call(H,G)===I&&L._reject(I.e)):j===n?L._fulfill(n.call(H)):H instanceof o?H._promiseCancelled(L):Z||L instanceof m?L._cancel():H.cancel()):typeof j=="function"?Z?(U&&L._setAsyncGuaranteed(),this._settlePromiseFromHandler(j,H,G,L)):j.call(H,G,L):H instanceof o?H._isResolved()||((z&33554432)!==0?H._promiseFulfilled(G,L):H._promiseRejected(G,L)):Z&&(U&&L._setAsyncGuaranteed(),(z&33554432)!==0?L._fulfill(G):L._reject(G))},_.prototype._settlePromiseLateCancellationObserver=function(L){var j=L.handler,H=L.promise,G=L.receiver,Z=L.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(L){this._settlePromise(L.promise,L.handler,L.receiver,L.value)},_.prototype._settlePromise0=function(L,j,H){var G=this._promise0,Z=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(G,L,Z,j)},_.prototype._clearCallbackDataAtIndex=function(L){var j=L*4-4;this[j+2]=this[j+3]=this[j+0]=this[j+1]=void 0},_.prototype._fulfill=function(L){var j=this._bitField;if(!((j&117506048)>>>16)){if(L===this){var H=t();return this._attachExtraTrace(H),this._reject(H)}this._setFulfilled(),this._rejectionHandler0=L,(j&65535)>0&&((j&134217728)!==0?this._settlePromises():d.settlePromises(this))}},_.prototype._reject=function(L){var j=this._bitField;if(!((j&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=L,this._isFinal())return d.fatalError(L,a.isNode);(j&65535)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},_.prototype._fulfillPromises=function(L,j){for(var H=1;H<L;H++){var G=this._fulfillmentHandlerAt(H),Z=this._promiseAt(H),z=this._receiverAt(H);this._clearCallbackDataAtIndex(H),this._settlePromise(Z,G,z,j)}},_.prototype._rejectPromises=function(L,j){for(var H=1;H<L;H++){var G=this._rejectionHandlerAt(H),Z=this._promiseAt(H),z=this._receiverAt(H);this._clearCallbackDataAtIndex(H),this._settlePromise(Z,G,z,j)}},_.prototype._settlePromises=function(){var L=this._bitField,j=L&65535;if(j>0){if((L&16842752)!==0){var H=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,H,L),this._rejectPromises(j,H)}else{var G=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,G,L),this._fulfillPromises(j,G)}this._setLength(0)}this._clearCancellationData()},_.prototype._settledValue=function(){var L=this._bitField;if((L&33554432)!==0)return this._rejectionHandler0;if((L&16777216)!==0)return this._fulfillmentHandler0};function R(L){this.promise._resolveCallback(L)}function N(L){this.promise._rejectCallback(L,!1)}_.defer=_.pending=function(){A.deprecated("Promise.defer","new Promise");var L=new _(v);return{promise:L,resolve:R,reject:N}},a.notEnumerableProp(_,"_makeSelfResolutionError",t),yut()(_,v,y,r,A),but()(_,v,y,A),wut()(_,m,r,A),Aut()(_),Cut()(_),xut()(_,m,y,v,d,s),_.Promise=_,_.version="3.4.7",Sut()(_,m,r,y,v,A),Eut()(_),kut()(_,r,y,w,v,A),Tut()(_,v,A),_ut()(_,r,v,y,o,A),Dut()(_),Iut()(_,v),Out()(_,m,y,r),Mut()(_,v,y,r),Put()(_,m,r,y,v,A),Nut()(_,m,A),Rut()(_,m,r),But()(_,v),Lut()(_,v),Fut()(_),a.toFastProperties(_),a.toFastProperties(_.prototype);function V(L){var j=new _(v);j._fulfillmentHandler0=L,j._rejectionHandler0=L,j._promise0=L,j._receiver0=L}return V({a:1}),V({b:2}),V({c:3}),V(1),V(function(){}),V(void 0),V(!1),V(new _(v)),A.setBounds(u.firstLineError,a.lastLineError),_}})(FI)),FI.exports}var Vte;function O0(){if(Vte)return Su;Vte=1;var e=Ia,t=Uut()();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={},qte;function lm(){if(qte)return ri;qte=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 O=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:O.start||null,end:O.end||null,firstLine:O.firstLine||null,hanging:O.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(O){return Buffer.from(O)})},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 Lm={},Gte;function np(){if(Gte)return Lm;Gte=1;var e=Ia;Lm.Result=t,Lm.success=n,Lm.warning=r,Lm.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 Lm}var M2={},P2={},Kte;function zut(){if(Kte)return P2;Kte=1,P2.byteLength=s,P2.toByteArray=u,P2.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 P2}function Px(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 vO={exports:{}};/*!
  236. JSZip v3.10.1 - A JavaScript class for generating and reading zip files
  237. <http://stuartk.com/jszip>
  238. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  239. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
  240. JSZip uses the library pako released under the MIT license :
  241. https://github.com/nodeca/pako/blob/main/LICENSE
  242. */var Yte;function $ut(){return Yte||(Yte=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 Px=="function"&&Px;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 Px=="function"&&Px,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,O=s.transformTo("string",m(A.name)),I=s.transformTo("string",u.utf8encode(A.name)),P=A.comment,M=s.transformTo("string",m(P)),_=s.transformTo("string",u.utf8encode(P)),R=I.length!==A.name.length,N=_.length!==P.length,V="",L="",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 z=0;v&&(z|=8),k||!R&&!N||(z|=2048);var U=0,W=0;H&&(U|=16),y==="UNIX"?(W=798,U|=(function(J,te){var X=J;return J||(X=te?16893:33204),(65535&X)<<16})(A.unixPermissions,H)):(W=20,U|=(function(J){return 63&(J||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(),R&&(L=i(1,1)+i(d(O),4)+I,V+="up"+i(L.length,2)+L),N&&(j=i(1,1)+i(d(M),4)+_,V+="uc"+i(j.length,2)+j);var re="";return re+=`
  243. \0`,re+=i(z,2),re+=S.magic,re+=i(b,2),re+=i(w,2),re+=i(Z.crc32,4),re+=i(Z.compressedSize,4),re+=i(Z.uncompressedSize,4),re+=i(O.length,2),re+=i(V.length,2),{fileRecord:c.LOCAL_FILE_HEADER+re+O+V,dirRecord:c.CENTRAL_FILE_HEADER+i(W,2)+re+i(M.length,2)+"\0\0\0\0"+i(U,4)+i(g,4)+O+V+M}}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 O,I=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&&(O=g(A))&&m.call(this,O,!0);var M=I==="string"&&P.binary===!1&&P.base64===!1;k&&k.binary!==void 0||(P.binary=!M),(S instanceof c&&S.uncompressedSize===0||P.dir||!S||S.length===0)&&(P.base64=!1,P.binary=!0,S="",P.compression="STORE",I="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 R=new f(A,_,P);this.files[A]=R}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,O;for(S in this.files)O=this.files[S],(k=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&A(k,O)},filter:function(A){var S=[];return this.forEach(function(k,O){A(k,O)&&S.push(O)}),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 O=A;return this.filter(function(P,M){return!M.dir&&O.test(P)})}var I=this.files[this.root+A];return I&&!I.dir?I:null},folder:function(A){if(!A)return this;if(b(A))return this.filter(function(I,P){return P.dir&&A.test(I)});var S=this.root+A,k=m.call(this,S),O=this.clone();return O.root=k.name,O},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(I,P){return P.name.slice(0,A.length)===A}),O=0;O<k.length;O++)delete this.files[k[O].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 O=k.comment||this.comment||"";S=p.generateWorker(this,k,O)}catch(I){(S=new l("error")).error(I)}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,O,I){switch(k){case"blob":return i.newBlob(i.transformTo("arraybuffer",O),I);case"base64":return l.encode(O);default:return i.transformTo(k,O)}})(w,(function(k,O){var I,P=0,M=null,_=0;for(I=0;I<O.length;I++)_+=O[I].length;switch(k){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(M=new Uint8Array(_),I=0;I<O.length;I++)M.set(O[I],P),P+=O[I].length;return M;case"nodebuffer":return Buffer.concat(O);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(O){A(O.target.result)},k.onerror=function(O){S(O.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 zs<"u"?zs: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,O=new this(a);++k<b;)I(y[k],k);return O;function I(P,M){m.resolve(P).then(function(_){A[M]=_,++S!==b||w||(w=!0,s.resolve(O,A))},function(_){w||(w=!0,s.reject(O,_))})}},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(O){w||(w=!0,s.resolve(S,O))},function(O){w||(w=!0,s.reject(S,O))});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,O=this.options.chunkSize,I=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(O),k.next_out=0,k.avail_out=O),(y=i.inflate(k,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&I&&(S=typeof I=="string"?s.string2buf(I):f.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,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=O-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,O=15,I=3,P=258,M=P+I+1,_=42,R=113,N=1,V=2,L=3,j=4;function H(Q,be){return Q.msg=d[be],be}function G(Q){return(Q<<1)-(4<Q?9:0)}function Z(Q){for(var be=Q.length;0<=--be;)Q[be]=0}function z(Q){var be=Q.state,De=be.pending;De>Q.avail_out&&(De=Q.avail_out),De!==0&&(a.arraySet(Q.output,be.pending_buf,be.pending_out,De,Q.next_out),Q.next_out+=De,be.pending_out+=De,Q.total_out+=De,Q.avail_out-=De,be.pending-=De,be.pending===0&&(be.pending_out=0))}function U(Q,be){s._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,be),Q.block_start=Q.strstart,z(Q.strm)}function W(Q,be){Q.pending_buf[Q.pending++]=be}function re(Q,be){Q.pending_buf[Q.pending++]=be>>>8&255,Q.pending_buf[Q.pending++]=255&be}function J(Q,be){var De,pe,ie=Q.max_chain_length,ce=Q.strstart,Re=Q.prev_length,Ee=Q.nice_match,Le=Q.strstart>Q.w_size-M?Q.strstart-(Q.w_size-M):0,Fe=Q.window,Pe=Q.w_mask,Ne=Q.prev,ht=Q.strstart+P,Rt=Fe[ce+Re-1],Lt=Fe[ce+Re];Q.prev_length>=Q.good_match&&(ie>>=2),Ee>Q.lookahead&&(Ee=Q.lookahead);do if(Fe[(De=be)+Re]===Lt&&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<ht);if(pe=P-(ht-ce),ce=ht-P,Re<pe){if(Q.match_start=be,Ee<=(Re=pe))break;Rt=Fe[ce+Re-1],Lt=Fe[ce+Re]}}while((be=Ne[be&Pe])>Le&&--ie!=0);return Re<=Q.lookahead?Re:Q.lookahead}function te(Q){var be,De,pe,ie,ce,Re,Ee,Le,Fe,Pe,Ne=Q.w_size;do{if(ie=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=Ne+(Ne-M)){for(a.arraySet(Q.window,Q.window,Ne,Ne,0),Q.match_start-=Ne,Q.strstart-=Ne,Q.block_start-=Ne,be=De=Q.hash_size;pe=Q.head[--be],Q.head[be]=Ne<=pe?pe-Ne:0,--De;);for(be=De=Ne;pe=Q.prev[--be],Q.prev[be]=Ne<=pe?pe-Ne:0,--De;);ie+=Ne}if(Q.strm.avail_in===0)break;if(Re=Q.strm,Ee=Q.window,Le=Q.strstart+Q.lookahead,Fe=ie,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),Q.lookahead+=De,Q.lookahead+Q.insert>=I)for(ce=Q.strstart-Q.insert,Q.ins_h=Q.window[ce],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ce+1])&Q.hash_mask;Q.insert&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ce+I-1])&Q.hash_mask,Q.prev[ce&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=ce,ce++,Q.insert--,!(Q.lookahead+Q.insert<I)););}while(Q.lookahead<M&&Q.strm.avail_in!==0)}function X(Q,be){for(var De,pe;;){if(Q.lookahead<M){if(te(Q),Q.lookahead<M&&be===c)return N;if(Q.lookahead===0)break}if(De=0,Q.lookahead>=I&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+I-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),De!==0&&Q.strstart-De<=Q.w_size-M&&(Q.match_length=J(Q,De)),Q.match_length>=I)if(pe=s._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-I),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=I){for(Q.match_length--;Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+I-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart,--Q.match_length!=0;);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else pe=s._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(pe&&(U(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<I-1?Q.strstart:I-1,be===f?(U(Q,!0),Q.strm.avail_out===0?L:j):Q.last_lit&&(U(Q,!1),Q.strm.avail_out===0)?N:V}function ue(Q,be){for(var De,pe,ie;;){if(Q.lookahead<M){if(te(Q),Q.lookahead<M&&be===c)return N;if(Q.lookahead===0)break}if(De=0,Q.lookahead>=I&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+I-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=I-1,De!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-De<=Q.w_size-M&&(Q.match_length=J(Q,De),Q.match_length<=5&&(Q.strategy===1||Q.match_length===I&&4096<Q.strstart-Q.match_start)&&(Q.match_length=I-1)),Q.prev_length>=I&&Q.match_length<=Q.prev_length){for(ie=Q.strstart+Q.lookahead-I,pe=s._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-I),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;++Q.strstart<=ie&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+I-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),--Q.prev_length!=0;);if(Q.match_available=0,Q.match_length=I-1,Q.strstart++,pe&&(U(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((pe=s._tr_tally(Q,0,Q.window[Q.strstart-1]))&&U(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return N}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(pe=s._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<I-1?Q.strstart:I-1,be===f?(U(Q,!0),Q.strm.avail_out===0?L:j):Q.last_lit&&(U(Q,!1),Q.strm.avail_out===0)?N:V}function me(Q,be,De,pe,ie){this.good_length=Q,this.max_lazy=be,this.nice_length=De,this.max_chain=pe,this.func=ie}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(O+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 Ae(Q){var be;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=y,(be=Q.state).pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?_:R,Q.adler=be.wrap===2?0:1,be.last_flush=c,s._tr_init(be),p):H(Q,v)}function ge(Q){var be=Ae(Q);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=I-1,De.match_available=0,De.ins_h=0})(Q.state),be}function _e(Q,be,De,pe,ie,ce){if(!Q)return v;var Re=1;if(be===h&&(be=6),pe<0?(Re=0,pe=-pe):15<pe&&(Re=2,pe-=16),ie<1||b<ie||De!==m||pe<8||15<pe||be<0||9<be||ce<0||g<ce)return H(Q,v);pe===8&&(pe=9);var Ee=new Me;return(Q.state=Ee).strm=Q,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=ie+7,Ee.hash_size=1<<Ee.hash_bits,Ee.hash_mask=Ee.hash_size-1,Ee.hash_shift=~~((Ee.hash_bits+I-1)/I),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<<ie+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,ge(Q)}i=[new me(0,0,0,0,function(Q,be){var De=65535;for(De>Q.pending_buf_size-5&&(De=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(te(Q),Q.lookahead===0&&be===c)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var pe=Q.block_start+De;if((Q.strstart===0||Q.strstart>=pe)&&(Q.lookahead=Q.strstart-pe,Q.strstart=pe,U(Q,!1),Q.strm.avail_out===0)||Q.strstart-Q.block_start>=Q.w_size-M&&(U(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,be===f?(U(Q,!0),Q.strm.avail_out===0?L:j):(Q.strstart>Q.block_start&&(U(Q,!1),Q.strm.avail_out),N)}),new me(4,4,8,4,X),new me(4,5,16,8,X),new me(4,6,32,32,X),new me(4,4,16,16,ue),new me(8,16,32,32,ue),new me(8,16,128,128,ue),new me(8,32,128,256,ue),new me(32,128,258,1024,ue),new me(32,258,258,4096,ue)],o.deflateInit=function(Q,be){return _e(Q,be,m,15,8,0)},o.deflateInit2=_e,o.deflateReset=ge,o.deflateResetKeep=Ae,o.deflateSetHeader=function(Q,be){return Q&&Q.state?Q.state.wrap!==2?v:(Q.state.gzhead=be,p):v},o.deflate=function(Q,be){var De,pe,ie,ce;if(!Q||!Q.state||5<be||be<0)return Q?H(Q,v):v;if(pe=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||pe.status===666&&be!==f)return H(Q,Q.avail_out===0?-5:v);if(pe.strm=Q,De=pe.last_flush,pe.last_flush=be,pe.status===_)if(pe.wrap===2)Q.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&&(Q.adler=u(Q.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=R);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=R,re(pe,Re),pe.strstart!==0&&(re(pe,Q.adler>>>16),re(pe,65535&Q.adler)),Q.adler=1}if(pe.status===69)if(pe.gzhead.extra){for(ie=pe.pending;pe.gzindex<(65535&pe.gzhead.extra.length)&&(pe.pending!==pe.pending_buf_size||(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),z(Q),ie=pe.pending,pe.pending!==pe.pending_buf_size));)W(pe,255&pe.gzhead.extra[pe.gzindex]),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=73)}else pe.status=73;if(pe.status===73)if(pe.gzhead.name){ie=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),z(Q),ie=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>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),ce===0&&(pe.gzindex=0,pe.status=91)}else pe.status=91;if(pe.status===91)if(pe.gzhead.comment){ie=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),z(Q),ie=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>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),ce===0&&(pe.status=103)}else pe.status=103;if(pe.status===103&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&z(Q),pe.pending+2<=pe.pending_buf_size&&(W(pe,255&Q.adler),W(pe,Q.adler>>8&255),Q.adler=0,pe.status=R)):pe.status=R),pe.pending!==0){if(z(Q),Q.avail_out===0)return pe.last_flush=-1,p}else if(Q.avail_in===0&&G(be)<=G(De)&&be!==f)return H(Q,-5);if(pe.status===666&&Q.avail_in!==0)return H(Q,-5);if(Q.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&&(U(Le,!1),Le.strm.avail_out===0))return N}return Le.insert=0,Fe===f?(U(Le,!0),Le.strm.avail_out===0?L:j):Le.last_lit&&(U(Le,!1),Le.strm.avail_out===0)?N:V})(pe,be):pe.strategy===3?(function(Le,Fe){for(var Pe,Ne,ht,Rt,Lt=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>=I&&0<Le.strstart&&(Ne=Lt[ht=Le.strstart-1])===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]){Rt=Le.strstart+P;do;while(Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&Ne===Lt[++ht]&&ht<Rt);Le.match_length=P-(Rt-ht),Le.match_length>Le.lookahead&&(Le.match_length=Le.lookahead)}if(Le.match_length>=I?(Pe=s._tr_tally(Le,1,Le.match_length-I),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&&(U(Le,!1),Le.strm.avail_out===0))return N}return Le.insert=0,Fe===f?(U(Le,!0),Le.strm.avail_out===0?L:j):Le.last_lit&&(U(Le,!1),Le.strm.avail_out===0)?N:V})(pe,be):i[pe.level].func(pe,be);if(Ee!==L&&Ee!==j||(pe.status=666),Ee===N||Ee===L)return Q.avail_out===0&&(pe.last_flush=-1),p;if(Ee===V&&(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))),z(Q),Q.avail_out===0))return pe.last_flush=-1,p}return be!==f?p:pe.wrap<=0?1:(pe.wrap===2?(W(pe,255&Q.adler),W(pe,Q.adler>>8&255),W(pe,Q.adler>>16&255),W(pe,Q.adler>>24&255),W(pe,255&Q.total_in),W(pe,Q.total_in>>8&255),W(pe,Q.total_in>>16&255),W(pe,Q.total_in>>24&255)):(re(pe,Q.adler>>>16),re(pe,65535&Q.adler)),z(Q),0<pe.wrap&&(pe.wrap=-pe.wrap),pe.pending!==0?p:1)},o.deflateEnd=function(Q){var be;return Q&&Q.state?(be=Q.state.status)!==_&&be!==69&&be!==73&&be!==91&&be!==103&&be!==R&&be!==666?H(Q,v):(Q.state=null,be===R?H(Q,-3):p):v},o.deflateSetDictionary=function(Q,be){var De,pe,ie,ce,Re,Ee,Le,Fe,Pe=be.length;if(!Q||!Q.state||(ce=(De=Q.state).wrap)===2||ce===1&&De.status!==_||De.lookahead)return v;for(ce===1&&(Q.adler=l(Q.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=Q.avail_in,Ee=Q.next_in,Le=Q.input,Q.avail_in=Pe,Q.next_in=0,Q.input=be,te(De);De.lookahead>=I;){for(pe=De.strstart,ie=De.lookahead-(I-1);De.ins_h=(De.ins_h<<De.hash_shift^De.window[pe+I-1])&De.hash_mask,De.prev[pe&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=pe,pe++,--ie;);De.strstart=pe,De.lookahead=I-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=I-1,De.match_available=0,Q.next_in=Ee,Q.input=Le,Q.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,O,I,P,M,_,R,N,V;s=i.state,l=i.next_in,N=i.input,u=l+(i.avail_in-5),d=i.next_out,V=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),O=w[m&S];t:for(;;){if(m>>>=I=O>>>24,b-=I,(I=O>>>16&255)===0)V[d++]=65535&O;else{if(!(16&I)){if((64&I)==0){O=w[(65535&O)+(m&(1<<I)-1)];continue t}if(32&I){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}P=65535&O,(I&=15)&&(b<I&&(m+=N[l++]<<b,b+=8),P+=m&(1<<I)-1,m>>>=I,b-=I),b<15&&(m+=N[l++]<<b,b+=8,m+=N[l++]<<b,b+=8),O=A[m&k];n:for(;;){if(m>>>=I=O>>>24,b-=I,!(16&(I=O>>>16&255))){if((64&I)==0){O=A[(65535&O)+(m&(1<<I)-1)];continue n}i.msg="invalid distance code",s.mode=30;break e}if(M=65535&O,b<(I&=15)&&(m+=N[l++]<<b,(b+=8)<I&&(m+=N[l++]<<b,b+=8)),p<(M+=m&(1<<I)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=I,b-=I,(I=d-c)<M){if(h<(I=M-I)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(R=y,(_=0)===g){if(_+=v-I,I<P){for(P-=I;V[d++]=y[_++],--I;);_=d-M,R=V}}else if(g<I){if(_+=v+g-I,(I-=g)<P){for(P-=I;V[d++]=y[_++],--I;);if(_=0,g<P){for(P-=I=g;V[d++]=y[_++],--I;);_=d-M,R=V}}}else if(_+=g-I,I<P){for(P-=I;V[d++]=y[_++],--I;);_=d-M,R=V}for(;2<P;)V[d++]=R[_++],V[d++]=R[_++],V[d++]=R[_++],P-=3;P&&(V[d++]=R[_++],1<P&&(V[d++]=R[_++]))}else{for(_=d-M;V[d++]=V[_++],V[d++]=V[_++],V[d++]=V[_++],2<(P-=3););P&&(V[d++]=V[_++],1<P&&(V[d++]=V[_++]))}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 R;return _&&_.state?(R=_.state,_.total_in=_.total_out=R.total=0,_.msg="",R.wrap&&(_.adler=1&R.wrap),R.mode=v,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new i.Buf32(h),R.distcode=R.distdyn=new i.Buf32(g),R.sane=1,R.back=-1,f):p}function w(_){var R;return _&&_.state?((R=_.state).wsize=0,R.whave=0,R.wnext=0,b(_)):p}function A(_,R){var N,V;return _&&_.state?(V=_.state,R<0?(N=0,R=-R):(N=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?p:(V.window!==null&&V.wbits!==R&&(V.window=null),V.wrap=N,V.wbits=R,w(_))):p}function S(_,R){var N,V;return _?(V=new m,(_.state=V).window=null,(N=A(_,R))!==f&&(_.state=null),N):p}var k,O,I=!0;function P(_){if(I){var R;for(k=new i.Buf32(512),O=new i.Buf32(32),R=0;R<144;)_.lens[R++]=8;for(;R<256;)_.lens[R++]=9;for(;R<280;)_.lens[R++]=7;for(;R<288;)_.lens[R++]=8;for(u(d,_.lens,0,288,k,0,_.work,{bits:9}),R=0;R<32;)_.lens[R++]=5;u(c,_.lens,0,32,O,0,_.work,{bits:5}),I=!1}_.lencode=k,_.lenbits=9,_.distcode=O,_.distbits=5}function M(_,R,N,V){var L,j=_.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new i.Buf8(j.wsize)),V>=j.wsize?(i.arraySet(j.window,R,N-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(V<(L=j.wsize-j.wnext)&&(L=V),i.arraySet(j.window,R,N-V,L,j.wnext),(V-=L)?(i.arraySet(j.window,R,N-V,V,0),j.wnext=V,j.whave=j.wsize):(j.wnext+=L,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=L))),0}o.inflateReset=w,o.inflateReset2=A,o.inflateResetKeep=b,o.inflateInit=function(_){return S(_,15)},o.inflateInit2=S,o.inflate=function(_,R){var N,V,L,j,H,G,Z,z,U,W,re,J,te,X,ue,me,Me,Ae,ge,_e,Q,be,De,pe,ie=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,L=_.output,Z=_.avail_out,j=_.next_in,V=_.input,G=_.avail_in,z=N.hold,U=N.bits,W=G,re=Z,be=f;e:for(;;)switch(N.mode){case v:if(N.wrap===0){N.mode=13;break}for(;U<16;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(2&N.wrap&&z===35615){ce[N.check=0]=255&z,ce[1]=z>>>8&255,N.check=s(N.check,ce,2,0),U=z=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&z)<<8)+(z>>8))%31){_.msg="incorrect header check",N.mode=30;break}if((15&z)!=8){_.msg="unknown compression method",N.mode=30;break}if(U-=4,Q=8+(15&(z>>>=4)),N.wbits===0)N.wbits=Q;else if(Q>N.wbits){_.msg="invalid window size",N.mode=30;break}N.dmax=1<<Q,_.adler=N.check=1,N.mode=512&z?10:12,U=z=0;break;case 2:for(;U<16;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(N.flags=z,(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=z>>8&1),512&N.flags&&(ce[0]=255&z,ce[1]=z>>>8&255,N.check=s(N.check,ce,2,0)),U=z=0,N.mode=3;case 3:for(;U<32;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.head&&(N.head.time=z),512&N.flags&&(ce[0]=255&z,ce[1]=z>>>8&255,ce[2]=z>>>16&255,ce[3]=z>>>24&255,N.check=s(N.check,ce,4,0)),U=z=0,N.mode=4;case 4:for(;U<16;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.head&&(N.head.xflags=255&z,N.head.os=z>>8),512&N.flags&&(ce[0]=255&z,ce[1]=z>>>8&255,N.check=s(N.check,ce,2,0)),U=z=0,N.mode=5;case 5:if(1024&N.flags){for(;U<16;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.length=z,N.head&&(N.head.extra_len=z),512&N.flags&&(ce[0]=255&z,ce[1]=z>>>8&255,N.check=s(N.check,ce,2,0)),U=z=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(G<(J=N.length)&&(J=G),J&&(N.head&&(Q=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,V,j,J,Q)),512&N.flags&&(N.check=s(N.check,V,J,j)),G-=J,j+=J,N.length-=J),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(G===0)break e;for(J=0;Q=V[j+J++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&J<G;);if(512&N.flags&&(N.check=s(N.check,V,J,j)),G-=J,j+=J,Q)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(J=0;Q=V[j+J++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&J<G;);if(512&N.flags&&(N.check=s(N.check,V,J,j)),G-=J,j+=J,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;U<16;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(z!==(65535&N.check)){_.msg="header crc mismatch",N.mode=30;break}U=z=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(;U<32;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}_.adler=N.check=y(z),U=z=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=z,N.bits=U,2;_.adler=N.check=1,N.mode=12;case 12:if(R===5||R===6)break e;case 13:if(N.last){z>>>=7&U,U-=7&U,N.mode=27;break}for(;U<3;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}switch(N.last=1&z,U-=1,3&(z>>>=1)){case 0:N.mode=14;break;case 1:if(P(N),N.mode=20,R!==6)break;z>>>=2,U-=2;break e;case 2:N.mode=17;break;case 3:_.msg="invalid block type",N.mode=30}z>>>=2,U-=2;break;case 14:for(z>>>=7&U,U-=7&U;U<32;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if((65535&z)!=(z>>>16^65535)){_.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&z,U=z=0,N.mode=15,R===6)break e;case 15:N.mode=16;case 16:if(J=N.length){if(G<J&&(J=G),Z<J&&(J=Z),J===0)break e;i.arraySet(L,V,j,J,H),G-=J,j+=J,Z-=J,H+=J,N.length-=J;break}N.mode=12;break;case 17:for(;U<14;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(N.nlen=257+(31&z),z>>>=5,U-=5,N.ndist=1+(31&z),z>>>=5,U-=5,N.ncode=4+(15&z),z>>>=4,U-=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(;U<3;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.lens[Re[N.have++]]=7&z,z>>>=3,U-=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(;me=(ie=N.lencode[z&(1<<N.lenbits)-1])>>>16&255,Me=65535&ie,!((ue=ie>>>24)<=U);){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(Me<16)z>>>=ue,U-=ue,N.lens[N.have++]=Me;else{if(Me===16){for(pe=ue+2;U<pe;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(z>>>=ue,U-=ue,N.have===0){_.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],J=3+(3&z),z>>>=2,U-=2}else if(Me===17){for(pe=ue+3;U<pe;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}U-=ue,Q=0,J=3+(7&(z>>>=ue)),z>>>=3,U-=3}else{for(pe=ue+7;U<pe;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}U-=ue,Q=0,J=11+(127&(z>>>=ue)),z>>>=7,U-=7}if(N.have+J>N.nlen+N.ndist){_.msg="invalid bit length repeat",N.mode=30;break}for(;J--;)N.lens[N.have++]=Q}}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,R===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=z,N.bits=U,l(_,re),H=_.next_out,L=_.output,Z=_.avail_out,j=_.next_in,V=_.input,G=_.avail_in,z=N.hold,U=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;me=(ie=N.lencode[z&(1<<N.lenbits)-1])>>>16&255,Me=65535&ie,!((ue=ie>>>24)<=U);){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(me&&(240&me)==0){for(Ae=ue,ge=me,_e=Me;me=(ie=N.lencode[_e+((z&(1<<Ae+ge)-1)>>Ae)])>>>16&255,Me=65535&ie,!(Ae+(ue=ie>>>24)<=U);){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}z>>>=Ae,U-=Ae,N.back+=Ae}if(z>>>=ue,U-=ue,N.back+=ue,N.length=Me,me===0){N.mode=26;break}if(32&me){N.back=-1,N.mode=12;break}if(64&me){_.msg="invalid literal/length code",N.mode=30;break}N.extra=15&me,N.mode=22;case 22:if(N.extra){for(pe=N.extra;U<pe;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.length+=z&(1<<N.extra)-1,z>>>=N.extra,U-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;me=(ie=N.distcode[z&(1<<N.distbits)-1])>>>16&255,Me=65535&ie,!((ue=ie>>>24)<=U);){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if((240&me)==0){for(Ae=ue,ge=me,_e=Me;me=(ie=N.distcode[_e+((z&(1<<Ae+ge)-1)>>Ae)])>>>16&255,Me=65535&ie,!(Ae+(ue=ie>>>24)<=U);){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}z>>>=Ae,U-=Ae,N.back+=Ae}if(z>>>=ue,U-=ue,N.back+=ue,64&me){_.msg="invalid distance code",N.mode=30;break}N.offset=Me,N.extra=15&me,N.mode=24;case 24:if(N.extra){for(pe=N.extra;U<pe;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}N.offset+=z&(1<<N.extra)-1,z>>>=N.extra,U-=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(J=re-Z,N.offset>J){if((J=N.offset-J)>N.whave&&N.sane){_.msg="invalid distance too far back",N.mode=30;break}te=J>N.wnext?(J-=N.wnext,N.wsize-J):N.wnext-J,J>N.length&&(J=N.length),X=N.window}else X=L,te=H-N.offset,J=N.length;for(Z<J&&(J=Z),Z-=J,N.length-=J;L[H++]=X[te++],--J;);N.length===0&&(N.mode=21);break;case 26:if(Z===0)break e;L[H++]=N.length,Z--,N.mode=21;break;case 27:if(N.wrap){for(;U<32;){if(G===0)break e;G--,z|=V[j++]<<U,U+=8}if(re-=Z,_.total_out+=re,N.total+=re,re&&(_.adler=N.check=N.flags?s(N.check,L,re,H-re):a(N.check,L,re,H-re)),re=Z,(N.flags?z:y(z))!==N.check){_.msg="incorrect data check",N.mode=30;break}U=z=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;U<32;){if(G===0)break e;G--,z+=V[j++]<<U,U+=8}if(z!==(4294967295&N.total)){_.msg="incorrect length check",N.mode=30;break}U=z=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=z,N.bits=U,(N.wsize||re!==_.avail_out&&N.mode<30&&(N.mode<27||R!==4))&&M(_,_.output,_.next_out,re-_.avail_out)?(N.mode=31,-4):(W-=_.avail_in,re-=_.avail_out,_.total_in+=W,_.total_out+=re,N.total+=re,N.wrap&&re&&(_.adler=N.check=N.flags?s(N.check,L,re,_.next_out-re):a(N.check,L,re,_.next_out-re)),_.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(W==0&&re===0||R===4)&&be===f&&(be=-5),be)},o.inflateEnd=function(_){if(!_||!_.state)return p;var R=_.state;return R.window&&(R.window=null),_.state=null,f},o.inflateGetHeader=function(_,R){var N;return _&&_.state?(2&(N=_.state).wrap)==0?p:((N.head=R).done=!1,f):p},o.inflateSetDictionary=function(_,R){var N,V=R.length;return _&&_.state?(N=_.state).wrap!==0&&N.mode!==11?p:N.mode===11&&a(1,R,V,0)!==N.check?-3:M(_,R,V,V)?(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,O,I,P,M=y.bits,_=0,R=0,N=0,V=0,L=0,j=0,H=0,G=0,Z=0,z=0,U=null,W=0,re=new i.Buf16(16),J=new i.Buf16(16),te=null,X=0;for(_=0;_<=15;_++)re[_]=0;for(R=0;R<p;R++)re[c[f+R]]++;for(L=M,V=15;1<=V&&re[V]===0;V--);if(V<L&&(L=V),V===0)return v[h++]=20971520,v[h++]=20971520,y.bits=1,0;for(N=1;N<V&&re[N]===0;N++);for(L<N&&(L=N),_=G=1;_<=15;_++)if(G<<=1,(G-=re[_])<0)return-1;if(0<G&&(d===0||V!==1))return-1;for(J[1]=0,_=1;_<15;_++)J[_+1]=J[_]+re[_];for(R=0;R<p;R++)c[f+R]!==0&&(g[J[c[f+R]]++]=R);if(k=d===0?(U=te=g,19):d===1?(U=a,W-=257,te=s,X-=257,256):(U=l,te=u,-1),_=N,S=h,H=R=z=0,w=-1,A=(Z=1<<(j=L))-1,d===1&&852<Z||d===2&&592<Z)return 1;for(;;){for(O=_-H,P=g[R]<k?(I=0,g[R]):g[R]>k?(I=te[X+g[R]],U[W+g[R]]):(I=96,0),m=1<<_-H,N=b=1<<j;v[S+(z>>H)+(b-=m)]=O<<24|I<<16|P|0,b!==0;);for(m=1<<_-1;z&m;)m>>=1;if(m!==0?(z&=m-1,z+=m):z=0,R++,--re[_]==0){if(_===V)break;_=c[f+g[R]]}if(L<_&&(z&A)!==w){for(H===0&&(H=L),S+=N,G=1<<(j=_-H);j+H<V&&!((G-=re[j+H])<=0);)j++,G<<=1;if(Z+=1<<j,d===1&&852<Z||d===2&&592<Z)return 1;v[w=z&A]=L<<24|j<<16|S-h|0}}return z!==0&&(v[S+z]=_-H<<24|64<<16|0),y.bits=L,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(ie){for(var ce=ie.length;0<=--ce;)ie[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],O=[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],I=[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],M=new Array(2*(f+2));l(M);var _=new Array(2*p);l(_);var R=new Array(512);l(R);var N=new Array(256);l(N);var V=new Array(d);l(V);var L,j,H,G=new Array(p);function Z(ie,ce,Re,Ee,Le){this.static_tree=ie,this.extra_bits=ce,this.extra_base=Re,this.elems=Ee,this.max_length=Le,this.has_stree=ie&&ie.length}function z(ie,ce){this.dyn_tree=ie,this.max_code=0,this.stat_desc=ce}function U(ie){return ie<256?R[ie]:R[256+(ie>>>7)]}function W(ie,ce){ie.pending_buf[ie.pending++]=255&ce,ie.pending_buf[ie.pending++]=ce>>>8&255}function re(ie,ce,Re){ie.bi_valid>y-Re?(ie.bi_buf|=ce<<ie.bi_valid&65535,W(ie,ie.bi_buf),ie.bi_buf=ce>>y-ie.bi_valid,ie.bi_valid+=Re-y):(ie.bi_buf|=ce<<ie.bi_valid&65535,ie.bi_valid+=Re)}function J(ie,ce,Re){re(ie,Re[2*ce],Re[2*ce+1])}function te(ie,ce){for(var Re=0;Re|=1&ie,ie>>>=1,Re<<=1,0<--ce;);return Re>>>1}function X(ie,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=ie[2*Le+1];Ne!==0&&(ie[2*Le]=te(Fe[Ne]++,Ne))}}function ue(ie){var ce;for(ce=0;ce<f;ce++)ie.dyn_ltree[2*ce]=0;for(ce=0;ce<p;ce++)ie.dyn_dtree[2*ce]=0;for(ce=0;ce<v;ce++)ie.bl_tree[2*ce]=0;ie.dyn_ltree[2*b]=1,ie.opt_len=ie.static_len=0,ie.last_lit=ie.matches=0}function me(ie){8<ie.bi_valid?W(ie,ie.bi_buf):0<ie.bi_valid&&(ie.pending_buf[ie.pending++]=ie.bi_buf),ie.bi_buf=0,ie.bi_valid=0}function Me(ie,ce,Re,Ee){var Le=2*ce,Fe=2*Re;return ie[Le]<ie[Fe]||ie[Le]===ie[Fe]&&Ee[ce]<=Ee[Re]}function Ae(ie,ce,Re){for(var Ee=ie.heap[Re],Le=Re<<1;Le<=ie.heap_len&&(Le<ie.heap_len&&Me(ce,ie.heap[Le+1],ie.heap[Le],ie.depth)&&Le++,!Me(ce,Ee,ie.heap[Le],ie.depth));)ie.heap[Re]=ie.heap[Le],Re=Le,Le<<=1;ie.heap[Re]=Ee}function ge(ie,ce,Re){var Ee,Le,Fe,Pe,Ne=0;if(ie.last_lit!==0)for(;Ee=ie.pending_buf[ie.d_buf+2*Ne]<<8|ie.pending_buf[ie.d_buf+2*Ne+1],Le=ie.pending_buf[ie.l_buf+Ne],Ne++,Ee===0?J(ie,Le,ce):(J(ie,(Fe=N[Le])+c+1,ce),(Pe=k[Fe])!==0&&re(ie,Le-=V[Fe],Pe),J(ie,Fe=U(--Ee),Re),(Pe=O[Fe])!==0&&re(ie,Ee-=G[Fe],Pe)),Ne<ie.last_lit;);J(ie,b,ce)}function _e(ie,ce){var Re,Ee,Le,Fe=ce.dyn_tree,Pe=ce.stat_desc.static_tree,Ne=ce.stat_desc.has_stree,ht=ce.stat_desc.elems,Rt=-1;for(ie.heap_len=0,ie.heap_max=h,Re=0;Re<ht;Re++)Fe[2*Re]!==0?(ie.heap[++ie.heap_len]=Rt=Re,ie.depth[Re]=0):Fe[2*Re+1]=0;for(;ie.heap_len<2;)Fe[2*(Le=ie.heap[++ie.heap_len]=Rt<2?++Rt:0)]=1,ie.depth[Le]=0,ie.opt_len--,Ne&&(ie.static_len-=Pe[2*Le+1]);for(ce.max_code=Rt,Re=ie.heap_len>>1;1<=Re;Re--)Ae(ie,Fe,Re);for(Le=ht;Re=ie.heap[1],ie.heap[1]=ie.heap[ie.heap_len--],Ae(ie,Fe,1),Ee=ie.heap[1],ie.heap[--ie.heap_max]=Re,ie.heap[--ie.heap_max]=Ee,Fe[2*Le]=Fe[2*Re]+Fe[2*Ee],ie.depth[Le]=(ie.depth[Re]>=ie.depth[Ee]?ie.depth[Re]:ie.depth[Ee])+1,Fe[2*Re+1]=Fe[2*Ee+1]=Le,ie.heap[1]=Le++,Ae(ie,Fe,1),2<=ie.heap_len;);ie.heap[--ie.heap_max]=ie.heap[1],(function(Lt,tn){var Wt,zt,dt,_t,ut,rt,he=tn.dyn_tree,Je=tn.max_code,ct=tn.stat_desc.static_tree,Ot=tn.stat_desc.has_stree,Tn=tn.stat_desc.extra_bits,In=tn.stat_desc.extra_base,je=tn.stat_desc.max_length,ke=0;for(_t=0;_t<=g;_t++)Lt.bl_count[_t]=0;for(he[2*Lt.heap[Lt.heap_max]+1]=0,Wt=Lt.heap_max+1;Wt<h;Wt++)je<(_t=he[2*he[2*(zt=Lt.heap[Wt])+1]+1]+1)&&(_t=je,ke++),he[2*zt+1]=_t,Je<zt||(Lt.bl_count[_t]++,ut=0,In<=zt&&(ut=Tn[zt-In]),rt=he[2*zt],Lt.opt_len+=rt*(_t+ut),Ot&&(Lt.static_len+=rt*(ct[2*zt+1]+ut)));if(ke!==0){do{for(_t=je-1;Lt.bl_count[_t]===0;)_t--;Lt.bl_count[_t]--,Lt.bl_count[_t+1]+=2,Lt.bl_count[je]--,ke-=2}while(0<ke);for(_t=je;_t!==0;_t--)for(zt=Lt.bl_count[_t];zt!==0;)Je<(dt=Lt.heap[--Wt])||(he[2*dt+1]!==_t&&(Lt.opt_len+=(_t-he[2*dt+1])*he[2*dt],he[2*dt+1]=_t),zt--)}})(ie,ce),X(Fe,Rt,ie.bl_count)}function Q(ie,ce,Re){var Ee,Le,Fe=-1,Pe=ce[1],Ne=0,ht=7,Rt=4;for(Pe===0&&(ht=138,Rt=3),ce[2*(Re+1)+1]=65535,Ee=0;Ee<=Re;Ee++)Le=Pe,Pe=ce[2*(Ee+1)+1],++Ne<ht&&Le===Pe||(Ne<Rt?ie.bl_tree[2*Le]+=Ne:Le!==0?(Le!==Fe&&ie.bl_tree[2*Le]++,ie.bl_tree[2*w]++):Ne<=10?ie.bl_tree[2*A]++:ie.bl_tree[2*S]++,Fe=Le,Rt=(Ne=0)===Pe?(ht=138,3):Le===Pe?(ht=6,3):(ht=7,4))}function be(ie,ce,Re){var Ee,Le,Fe=-1,Pe=ce[1],Ne=0,ht=7,Rt=4;for(Pe===0&&(ht=138,Rt=3),Ee=0;Ee<=Re;Ee++)if(Le=Pe,Pe=ce[2*(Ee+1)+1],!(++Ne<ht&&Le===Pe)){if(Ne<Rt)for(;J(ie,Le,ie.bl_tree),--Ne!=0;);else Le!==0?(Le!==Fe&&(J(ie,Le,ie.bl_tree),Ne--),J(ie,w,ie.bl_tree),re(ie,Ne-3,2)):Ne<=10?(J(ie,A,ie.bl_tree),re(ie,Ne-3,3)):(J(ie,S,ie.bl_tree),re(ie,Ne-11,7));Fe=Le,Rt=(Ne=0)===Pe?(ht=138,3):Le===Pe?(ht=6,3):(ht=7,4)}}l(G);var De=!1;function pe(ie,ce,Re,Ee){re(ie,(u<<1)+(Ee?1:0),3),(function(Le,Fe,Pe,Ne){me(Le),W(Le,Pe),W(Le,~Pe),i.arraySet(Le.pending_buf,Le.window,Fe,Pe,Le.pending),Le.pending+=Pe})(ie,ce,Re)}o._tr_init=function(ie){De||((function(){var ce,Re,Ee,Le,Fe,Pe=new Array(g+1);for(Le=Ee=0;Le<d-1;Le++)for(V[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<<O[Le];ce++)R[Fe++]=Le;for(Fe>>=7;Le<p;Le++)for(G[Le]=Fe<<7,ce=0;ce<1<<O[Le]-7;ce++)R[256+Fe++]=Le;for(Re=0;Re<=g;Re++)Pe[Re]=0;for(ce=0;ce<=143;)M[2*ce+1]=8,ce++,Pe[8]++;for(;ce<=255;)M[2*ce+1]=9,ce++,Pe[9]++;for(;ce<=279;)M[2*ce+1]=7,ce++,Pe[7]++;for(;ce<=287;)M[2*ce+1]=8,ce++,Pe[8]++;for(X(M,f+1,Pe),ce=0;ce<p;ce++)_[2*ce+1]=5,_[2*ce]=te(ce,5);L=new Z(M,k,c+1,f,g),j=new Z(_,O,0,p,g),H=new Z(new Array(0),I,0,v,m)})(),De=!0),ie.l_desc=new z(ie.dyn_ltree,L),ie.d_desc=new z(ie.dyn_dtree,j),ie.bl_desc=new z(ie.bl_tree,H),ie.bi_buf=0,ie.bi_valid=0,ue(ie)},o._tr_stored_block=pe,o._tr_flush_block=function(ie,ce,Re,Ee){var Le,Fe,Pe=0;0<ie.level?(ie.strm.data_type===2&&(ie.strm.data_type=(function(Ne){var ht,Rt=4093624447;for(ht=0;ht<=31;ht++,Rt>>>=1)if(1&Rt&&Ne.dyn_ltree[2*ht]!==0)return a;if(Ne.dyn_ltree[18]!==0||Ne.dyn_ltree[20]!==0||Ne.dyn_ltree[26]!==0)return s;for(ht=32;ht<c;ht++)if(Ne.dyn_ltree[2*ht]!==0)return s;return a})(ie)),_e(ie,ie.l_desc),_e(ie,ie.d_desc),Pe=(function(Ne){var ht;for(Q(Ne,Ne.dyn_ltree,Ne.l_desc.max_code),Q(Ne,Ne.dyn_dtree,Ne.d_desc.max_code),_e(Ne,Ne.bl_desc),ht=v-1;3<=ht&&Ne.bl_tree[2*P[ht]+1]===0;ht--);return Ne.opt_len+=3*(ht+1)+5+5+4,ht})(ie),Le=ie.opt_len+3+7>>>3,(Fe=ie.static_len+3+7>>>3)<=Le&&(Le=Fe)):Le=Fe=Re+5,Re+4<=Le&&ce!==-1?pe(ie,ce,Re,Ee):ie.strategy===4||Fe===Le?(re(ie,2+(Ee?1:0),3),ge(ie,M,_)):(re(ie,4+(Ee?1:0),3),(function(Ne,ht,Rt,Lt){var tn;for(re(Ne,ht-257,5),re(Ne,Rt-1,5),re(Ne,Lt-4,4),tn=0;tn<Lt;tn++)re(Ne,Ne.bl_tree[2*P[tn]+1],3);be(Ne,Ne.dyn_ltree,ht-1),be(Ne,Ne.dyn_dtree,Rt-1)})(ie,ie.l_desc.max_code+1,ie.d_desc.max_code+1,Pe+1),ge(ie,ie.dyn_ltree,ie.dyn_dtree)),ue(ie),Ee&&me(ie)},o._tr_tally=function(ie,ce,Re){return ie.pending_buf[ie.d_buf+2*ie.last_lit]=ce>>>8&255,ie.pending_buf[ie.d_buf+2*ie.last_lit+1]=255&ce,ie.pending_buf[ie.l_buf+ie.last_lit]=255&Re,ie.last_lit++,ce===0?ie.dyn_ltree[2*Re]++:(ie.matches++,ce--,ie.dyn_ltree[2*(N[Re]+c+1)]++,ie.dyn_dtree[2*U(ce)]++),ie.last_lit===ie.lit_bufsize-1},o._tr_align=function(ie){re(ie,2,3),J(ie,b,M),(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)})(ie)}},{"../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,O=S.args;switch(O.length){case 0:k();break;case 1:k(O[0]);break;case 2:k(O[0],O[1]);break;case 3:k(O[0],O[1],O[2]);break;default:k.apply(s,O)}})(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 zs<"u"?zs:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(vO)),vO.exports}var Qte;function R4e(){if(Qte)return M2;Qte=1;var e=zut(),t=$ut();M2.openArrayBuffer=n,M2.splitPath=r,M2.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 M2}var Nx={},Op={},Fm={},Zte;function B4e(){if(Zte)return Fm;Zte=1;var e=Ia;Fm.Element=n,Fm.element=function(i,a,s){return new n(i,a,s)},Fm.text=function(i){return{type:"text",value:i}};var t=Fm.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 Fm}var mO={},Rx={},N2={},uf={},q0={},Xte;function MD(){if(Xte)return q0;Xte=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 Jte;function RV(){if(Jte)return uf;Jte=1;var e=MD(),t=e.find,n=e.NAMESPACE;function r(je){return je!==""}function o(je){return je?je.split(/[\t\n\f\r ]+/).filter(r):[]}function i(je,ke){return je.hasOwnProperty(ke)||(je[ke]=!0),je}function a(je){if(!je)return[];var ke=o(je);return Object.keys(ke.reduce(i,{}))}function s(je){return function(ke){return je&&je.indexOf(ke)!==-1}}function l(je,ke){for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&(ke[ye]=je[ye])}function u(je,ke){var ye=je.prototype;if(!(ye instanceof ke)){let Be=function(){};Be.prototype=ke.prototype,Be=new Be,l(ye,Be),je.prototype=ye=Be}ye.constructor!=je&&(typeof je!="function"&&console.error("unknown Class:"+je),ye.constructor=je)}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={},O={};k.INDEX_SIZE_ERR=(O[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(O[2]="DOMString size error",2);var I=k.HIERARCHY_REQUEST_ERR=(O[3]="Hierarchy request error",3);k.WRONG_DOCUMENT_ERR=(O[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(O[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(O[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(O[7]="No modification allowed",7);var P=k.NOT_FOUND_ERR=(O[8]="Not found",8);k.NOT_SUPPORTED_ERR=(O[9]="Not supported",9);var M=k.INUSE_ATTRIBUTE_ERR=(O[10]="Attribute in use",10);k.INVALID_STATE_ERR=(O[11]="Invalid state",11),k.SYNTAX_ERR=(O[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(O[13]="Invalid modification",13),k.NAMESPACE_ERR=(O[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(O[15]="Invalid access",15);function _(je,ke){if(ke instanceof Error)var ye=ke;else ye=this,Error.call(this,O[je]),this.message=O[je],Error.captureStackTrace&&Error.captureStackTrace(this,_);return ye.code=je,ke&&(this.message=this.message+": "+ke),ye}_.prototype=Error.prototype,l(k,_);function R(){}R.prototype={length:0,item:function(je){return je>=0&&je<this.length?this[je]:null},toString:function(je,ke){for(var ye=[],Be=0;Be<this.length;Be++)ct(this[Be],ye,je,ke);return ye.join("")},filter:function(je){return Array.prototype.filter.call(this,je)},indexOf:function(je){return Array.prototype.indexOf.call(this,je)}};function N(je,ke){this._node=je,this._refresh=ke,V(this)}function V(je){var ke=je._node._inc||je._node.ownerDocument._inc;if(je._inc!==ke){var ye=je._refresh(je._node);if(In(je,"length",ye.length),!je.$$length||ye.length<je.$$length)for(var Be=ye.length;Be in je;Be++)Object.prototype.hasOwnProperty.call(je,Be)&&delete je[Be];l(ye,je),je._inc=ke}}N.prototype.item=function(je){return V(this),this[je]||null},u(N,R);function L(){}function j(je,ke){for(var ye=je.length;ye--;)if(je[ye]===ke)return ye}function H(je,ke,ye,Be){if(Be?ke[j(ke,Be)]=ye:ke[ke.length++]=ye,je){ye.ownerElement=je;var ot=je.ownerDocument;ot&&(Be&&te(ot,je,Be),J(ot,je,ye))}}function G(je,ke,ye){var Be=j(ke,ye);if(Be>=0){for(var ot=ke.length-1;Be<ot;)ke[Be]=ke[++Be];if(ke.length=ot,je){var gt=je.ownerDocument;gt&&(te(gt,je,ye),ye.ownerElement=null)}}else throw new _(P,new Error(je.tagName+"@"+ye))}L.prototype={length:0,item:R.prototype.item,getNamedItem:function(je){for(var ke=this.length;ke--;){var ye=this[ke];if(ye.nodeName==je)return ye}},setNamedItem:function(je){var ke=je.ownerElement;if(ke&&ke!=this._ownerElement)throw new _(M);var ye=this.getNamedItem(je.nodeName);return H(this._ownerElement,this,je,ye),ye},setNamedItemNS:function(je){var ke=je.ownerElement,ye;if(ke&&ke!=this._ownerElement)throw new _(M);return ye=this.getNamedItemNS(je.namespaceURI,je.localName),H(this._ownerElement,this,je,ye),ye},removeNamedItem:function(je){var ke=this.getNamedItem(je);return G(this._ownerElement,this,ke),ke},removeNamedItemNS:function(je,ke){var ye=this.getNamedItemNS(je,ke);return G(this._ownerElement,this,ye),ye},getNamedItemNS:function(je,ke){for(var ye=this.length;ye--;){var Be=this[ye];if(Be.localName==ke&&Be.namespaceURI==je)return Be}return null}};function Z(){}Z.prototype={hasFeature:function(je,ke){return!0},createDocument:function(je,ke,ye){var Be=new re;if(Be.implementation=this,Be.childNodes=new R,Be.doctype=ye||null,ye&&Be.appendChild(ye),ke){var ot=Be.createElementNS(je,ke);Be.appendChild(ot)}return Be},createDocumentType:function(je,ke,ye){var Be=new Lt;return Be.name=je,Be.nodeName=je,Be.publicId=ke||"",Be.systemId=ye||"",Be}};function z(){}z.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(je,ke){return ce(this,je,ke)},replaceChild:function(je,ke){ce(this,je,ke,ie),ke&&this.removeChild(ke)},removeChild:function(je){return ue(this,je)},appendChild:function(je){return this.insertBefore(je,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(je){return Tn(this.ownerDocument||this,this,je)},normalize:function(){for(var je=this.firstChild;je;){var ke=je.nextSibling;ke&&ke.nodeType==p&&je.nodeType==p?(this.removeChild(ke),je.appendData(ke.data)):(je.normalize(),je=ke)}},isSupported:function(je,ke){return this.ownerDocument.implementation.hasFeature(je,ke)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(je){for(var ke=this;ke;){var ye=ke._nsMap;if(ye){for(var Be in ye)if(Object.prototype.hasOwnProperty.call(ye,Be)&&ye[Be]===je)return Be}ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},lookupNamespaceURI:function(je){for(var ke=this;ke;){var ye=ke._nsMap;if(ye&&Object.prototype.hasOwnProperty.call(ye,je))return ye[je];ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},isDefaultNamespace:function(je){var ke=this.lookupPrefix(je);return ke==null}};function U(je){return je=="<"&&"&lt;"||je==">"&&"&gt;"||je=="&"&&"&amp;"||je=='"'&&"&quot;"||"&#"+je.charCodeAt()+";"}l(d,z),l(d,z.prototype);function W(je,ke){if(ke(je))return!0;if(je=je.firstChild)do if(W(je,ke))return!0;while(je=je.nextSibling)}function re(){this.ownerDocument=this}function J(je,ke,ye){je&&je._inc++;var Be=ye.namespaceURI;Be===n.XMLNS&&(ke._nsMap[ye.prefix?ye.localName:""]=ye.value)}function te(je,ke,ye,Be){je&&je._inc++;var ot=ye.namespaceURI;ot===n.XMLNS&&delete ke._nsMap[ye.prefix?ye.localName:""]}function X(je,ke,ye){if(je&&je._inc){je._inc++;var Be=ke.childNodes;if(ye)Be[Be.length++]=ye;else{for(var ot=ke.firstChild,gt=0;ot;)Be[gt++]=ot,ot=ot.nextSibling;Be.length=gt,delete Be[Be.length]}}}function ue(je,ke){var ye=ke.previousSibling,Be=ke.nextSibling;return ye?ye.nextSibling=Be:je.firstChild=Be,Be?Be.previousSibling=ye:je.lastChild=ye,ke.parentNode=null,ke.previousSibling=null,ke.nextSibling=null,X(je.ownerDocument,je),ke}function me(je){return je&&(je.nodeType===z.DOCUMENT_NODE||je.nodeType===z.DOCUMENT_FRAGMENT_NODE||je.nodeType===z.ELEMENT_NODE)}function Me(je){return je&&(ge(je)||_e(je)||Ae(je)||je.nodeType===z.DOCUMENT_FRAGMENT_NODE||je.nodeType===z.COMMENT_NODE||je.nodeType===z.PROCESSING_INSTRUCTION_NODE)}function Ae(je){return je&&je.nodeType===z.DOCUMENT_TYPE_NODE}function ge(je){return je&&je.nodeType===z.ELEMENT_NODE}function _e(je){return je&&je.nodeType===z.TEXT_NODE}function Q(je,ke){var ye=je.childNodes||[];if(t(ye,ge)||Ae(ke))return!1;var Be=t(ye,Ae);return!(ke&&Be&&ye.indexOf(Be)>ye.indexOf(ke))}function be(je,ke){var ye=je.childNodes||[];function Be(gt){return ge(gt)&&gt!==ke}if(t(ye,Be))return!1;var ot=t(ye,Ae);return!(ke&&ot&&ye.indexOf(ot)>ye.indexOf(ke))}function De(je,ke,ye){if(!me(je))throw new _(I,"Unexpected parent node type "+je.nodeType);if(ye&&ye.parentNode!==je)throw new _(P,"child not in parent");if(!Me(ke)||Ae(ke)&&je.nodeType!==z.DOCUMENT_NODE)throw new _(I,"Unexpected node type "+ke.nodeType+" for parent node type "+je.nodeType)}function pe(je,ke,ye){var Be=je.childNodes||[],ot=ke.childNodes||[];if(ke.nodeType===z.DOCUMENT_FRAGMENT_NODE){var gt=ot.filter(ge);if(gt.length>1||t(ot,_e))throw new _(I,"More than one element or text in fragment");if(gt.length===1&&!Q(je,ye))throw new _(I,"Element in fragment can not be inserted before doctype")}if(ge(ke)&&!Q(je,ye))throw new _(I,"Only one element can be added and only after doctype");if(Ae(ke)){if(t(Be,Ae))throw new _(I,"Only one doctype is allowed");var Ke=t(Be,ge);if(ye&&Be.indexOf(Ke)<Be.indexOf(ye))throw new _(I,"Doctype can only be inserted before an element");if(!ye&&Ke)throw new _(I,"Doctype can not be appended since element is present")}}function ie(je,ke,ye){var Be=je.childNodes||[],ot=ke.childNodes||[];if(ke.nodeType===z.DOCUMENT_FRAGMENT_NODE){var gt=ot.filter(ge);if(gt.length>1||t(ot,_e))throw new _(I,"More than one element or text in fragment");if(gt.length===1&&!be(je,ye))throw new _(I,"Element in fragment can not be inserted before doctype")}if(ge(ke)&&!be(je,ye))throw new _(I,"Only one element can be added and only after doctype");if(Ae(ke)){if(t(Be,function(at){return Ae(at)&&at!==ye}))throw new _(I,"Only one doctype is allowed");var Ke=t(Be,ge);if(ye&&Be.indexOf(Ke)<Be.indexOf(ye))throw new _(I,"Doctype can only be inserted before an element")}}function ce(je,ke,ye,Be){De(je,ke,ye),je.nodeType===z.DOCUMENT_NODE&&(Be||pe)(je,ke,ye);var ot=ke.parentNode;if(ot&&ot.removeChild(ke),ke.nodeType===A){var gt=ke.firstChild;if(gt==null)return ke;var Ke=ke.lastChild}else gt=Ke=ke;var He=ye?ye.previousSibling:je.lastChild;gt.previousSibling=He,Ke.nextSibling=ye,He?He.nextSibling=gt:je.firstChild=gt,ye==null?je.lastChild=Ke:ye.previousSibling=Ke;do{gt.parentNode=je;var at=je.ownerDocument||je;Re(gt,at)}while(gt!==Ke&&(gt=gt.nextSibling));return X(je.ownerDocument||je,je),ke.nodeType==A&&(ke.firstChild=ke.lastChild=null),ke}function Re(je,ke){if(je.ownerDocument!==ke){if(je.ownerDocument=ke,je.nodeType===c&&je.attributes)for(var ye=0;ye<je.attributes.length;ye++){var Be=je.attributes.item(ye);Be&&(Be.ownerDocument=ke)}for(var ot=je.firstChild;ot;)Re(ot,ke),ot=ot.nextSibling}}function Ee(je,ke){ke.parentNode&&ke.parentNode.removeChild(ke),ke.parentNode=je,ke.previousSibling=je.lastChild,ke.nextSibling=null,ke.previousSibling?ke.previousSibling.nextSibling=ke:je.firstChild=ke,je.lastChild=ke,X(je.ownerDocument,je,ke);var ye=je.ownerDocument||je;return Re(ke,ye),ke}re.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:function(je,ke){if(je.nodeType==A){for(var ye=je.firstChild;ye;){var Be=ye.nextSibling;this.insertBefore(ye,ke),ye=Be}return je}return ce(this,je,ke),Re(je,this),this.documentElement===null&&je.nodeType===c&&(this.documentElement=je),je},removeChild:function(je){return this.documentElement==je&&(this.documentElement=null),ue(this,je)},replaceChild:function(je,ke){ce(this,je,ke,ie),Re(je,this),ke&&this.removeChild(ke),ge(je)&&(this.documentElement=je)},importNode:function(je,ke){return Ot(this,je,ke)},getElementById:function(je){var ke=null;return W(this.documentElement,function(ye){if(ye.nodeType==c&&ye.getAttribute("id")==je)return ke=ye,!0}),ke},getElementsByClassName:function(je){var ke=a(je);return new N(this,function(ye){var Be=[];return ke.length>0&&W(ye.documentElement,function(ot){if(ot!==ye&&ot.nodeType===c){var gt=ot.getAttribute("class");if(gt){var Ke=je===gt;if(!Ke){var He=a(gt);Ke=ke.every(s(He))}Ke&&Be.push(ot)}}}),Be})},createElement:function(je){var ke=new Le;ke.ownerDocument=this,ke.nodeName=je,ke.tagName=je,ke.localName=je,ke.childNodes=new R;var ye=ke.attributes=new L;return ye._ownerElement=ke,ke},createDocumentFragment:function(){var je=new dt;return je.ownerDocument=this,je.childNodes=new R,je},createTextNode:function(je){var ke=new Ne;return ke.ownerDocument=this,ke.appendData(je),ke},createComment:function(je){var ke=new ht;return ke.ownerDocument=this,ke.appendData(je),ke},createCDATASection:function(je){var ke=new Rt;return ke.ownerDocument=this,ke.appendData(je),ke},createProcessingInstruction:function(je,ke){var ye=new _t;return ye.ownerDocument=this,ye.tagName=ye.nodeName=ye.target=je,ye.nodeValue=ye.data=ke,ye},createAttribute:function(je){var ke=new Fe;return ke.ownerDocument=this,ke.name=je,ke.nodeName=je,ke.localName=je,ke.specified=!0,ke},createEntityReference:function(je){var ke=new zt;return ke.ownerDocument=this,ke.nodeName=je,ke},createElementNS:function(je,ke){var ye=new Le,Be=ke.split(":"),ot=ye.attributes=new L;return ye.childNodes=new R,ye.ownerDocument=this,ye.nodeName=ke,ye.tagName=ke,ye.namespaceURI=je,Be.length==2?(ye.prefix=Be[0],ye.localName=Be[1]):ye.localName=ke,ot._ownerElement=ye,ye},createAttributeNS:function(je,ke){var ye=new Fe,Be=ke.split(":");return ye.ownerDocument=this,ye.nodeName=ke,ye.name=ke,ye.namespaceURI=je,ye.specified=!0,Be.length==2?(ye.prefix=Be[0],ye.localName=Be[1]):ye.localName=ke,ye}},u(re,z);function Le(){this._nsMap={}}Le.prototype={nodeType:c,hasAttribute:function(je){return this.getAttributeNode(je)!=null},getAttribute:function(je){var ke=this.getAttributeNode(je);return ke&&ke.value||""},getAttributeNode:function(je){return this.attributes.getNamedItem(je)},setAttribute:function(je,ke){var ye=this.ownerDocument.createAttribute(je);ye.value=ye.nodeValue=""+ke,this.setAttributeNode(ye)},removeAttribute:function(je){var ke=this.getAttributeNode(je);ke&&this.removeAttributeNode(ke)},appendChild:function(je){return je.nodeType===A?this.insertBefore(je,null):Ee(this,je)},setAttributeNode:function(je){return this.attributes.setNamedItem(je)},setAttributeNodeNS:function(je){return this.attributes.setNamedItemNS(je)},removeAttributeNode:function(je){return this.attributes.removeNamedItem(je.nodeName)},removeAttributeNS:function(je,ke){var ye=this.getAttributeNodeNS(je,ke);ye&&this.removeAttributeNode(ye)},hasAttributeNS:function(je,ke){return this.getAttributeNodeNS(je,ke)!=null},getAttributeNS:function(je,ke){var ye=this.getAttributeNodeNS(je,ke);return ye&&ye.value||""},setAttributeNS:function(je,ke,ye){var Be=this.ownerDocument.createAttributeNS(je,ke);Be.value=Be.nodeValue=""+ye,this.setAttributeNode(Be)},getAttributeNodeNS:function(je,ke){return this.attributes.getNamedItemNS(je,ke)},getElementsByTagName:function(je){return new N(this,function(ke){var ye=[];return W(ke,function(Be){Be!==ke&&Be.nodeType==c&&(je==="*"||Be.tagName==je)&&ye.push(Be)}),ye})},getElementsByTagNameNS:function(je,ke){return new N(this,function(ye){var Be=[];return W(ye,function(ot){ot!==ye&&ot.nodeType===c&&(je==="*"||ot.namespaceURI===je)&&(ke==="*"||ot.localName==ke)&&Be.push(ot)}),Be})}},re.prototype.getElementsByTagName=Le.prototype.getElementsByTagName,re.prototype.getElementsByTagNameNS=Le.prototype.getElementsByTagNameNS,u(Le,z);function Fe(){}Fe.prototype.nodeType=f,u(Fe,z);function Pe(){}Pe.prototype={data:"",substringData:function(je,ke){return this.data.substring(je,je+ke)},appendData:function(je){je=this.data+je,this.nodeValue=this.data=je,this.length=je.length},insertData:function(je,ke){this.replaceData(je,0,ke)},appendChild:function(je){throw new Error(O[I])},deleteData:function(je,ke){this.replaceData(je,ke,"")},replaceData:function(je,ke,ye){var Be=this.data.substring(0,je),ot=this.data.substring(je+ke);ye=Be+ye+ot,this.nodeValue=this.data=ye,this.length=ye.length}},u(Pe,z);function Ne(){}Ne.prototype={nodeName:"#text",nodeType:p,splitText:function(je){var ke=this.data,ye=ke.substring(je);ke=ke.substring(0,je),this.data=this.nodeValue=ke,this.length=ke.length;var Be=this.ownerDocument.createTextNode(ye);return this.parentNode&&this.parentNode.insertBefore(Be,this.nextSibling),Be}},u(Ne,Pe);function ht(){}ht.prototype={nodeName:"#comment",nodeType:m},u(ht,Pe);function Rt(){}Rt.prototype={nodeName:"#cdata-section",nodeType:v},u(Rt,Pe);function Lt(){}Lt.prototype.nodeType=w,u(Lt,z);function tn(){}tn.prototype.nodeType=S,u(tn,z);function Wt(){}Wt.prototype.nodeType=g,u(Wt,z);function zt(){}zt.prototype.nodeType=h,u(zt,z);function dt(){}dt.prototype.nodeName="#document-fragment",dt.prototype.nodeType=A,u(dt,z);function _t(){}_t.prototype.nodeType=y,u(_t,z);function ut(){}ut.prototype.serializeToString=function(je,ke,ye){return rt.call(je,ke,ye)},z.prototype.toString=rt;function rt(je,ke){var ye=[],Be=this.nodeType==9&&this.documentElement||this,ot=Be.prefix,gt=Be.namespaceURI;if(gt&&ot==null){var ot=Be.lookupPrefix(gt);if(ot==null)var Ke=[{namespace:gt,prefix:null}]}return ct(this,ye,je,ke,Ke),ye.join("")}function he(je,ke,ye){var Be=je.prefix||"",ot=je.namespaceURI;if(!ot||Be==="xml"&&ot===n.XML||ot===n.XMLNS)return!1;for(var gt=ye.length;gt--;){var Ke=ye[gt];if(Ke.prefix===Be)return Ke.namespace!==ot}return!0}function Je(je,ke,ye){je.push(" ",ke,'="',ye.replace(/[<>&"\t\n\r]/g,U),'"')}function ct(je,ke,ye,Be,ot){if(ot||(ot=[]),Be)if(je=Be(je),je){if(typeof je=="string"){ke.push(je);return}}else return;switch(je.nodeType){case c:var gt=je.attributes,Ke=gt.length,xt=je.firstChild,He=je.tagName;ye=n.isHTML(je.namespaceURI)||ye;var at=He;if(!ye&&!je.prefix&&je.namespaceURI){for(var St,tt=0;tt<gt.length;tt++)if(gt.item(tt).name==="xmlns"){St=gt.item(tt).value;break}if(!St)for(var Qe=ot.length-1;Qe>=0;Qe--){var it=ot[Qe];if(it.prefix===""&&it.namespace===je.namespaceURI){St=it.namespace;break}}if(St!==je.namespaceURI)for(var Qe=ot.length-1;Qe>=0;Qe--){var it=ot[Qe];if(it.namespace===je.namespaceURI){it.prefix&&(at=it.prefix+":"+He);break}}}ke.push("<",at);for(var Mt=0;Mt<Ke;Mt++){var Gt=gt.item(Mt);Gt.prefix=="xmlns"?ot.push({prefix:Gt.localName,namespace:Gt.value}):Gt.nodeName=="xmlns"&&ot.push({prefix:"",namespace:Gt.value})}for(var Mt=0;Mt<Ke;Mt++){var Gt=gt.item(Mt);if(he(Gt,ye,ot)){var En=Gt.prefix||"",Nn=Gt.namespaceURI;Je(ke,En?"xmlns:"+En:"xmlns",Nn),ot.push({prefix:En,namespace:Nn})}ct(Gt,ke,ye,Be,ot)}if(He===at&&he(je,ye,ot)){var En=je.prefix||"",Nn=je.namespaceURI;Je(ke,En?"xmlns:"+En:"xmlns",Nn),ot.push({prefix:En,namespace:Nn})}if(xt||ye&&!/^(?:meta|link|img|br|hr|input)$/i.test(He)){if(ke.push(">"),ye&&/^script$/i.test(He))for(;xt;)xt.data?ke.push(xt.data):ct(xt,ke,ye,Be,ot.slice()),xt=xt.nextSibling;else for(;xt;)ct(xt,ke,ye,Be,ot.slice()),xt=xt.nextSibling;ke.push("</",at,">")}else ke.push("/>");return;case b:case A:for(var xt=je.firstChild;xt;)ct(xt,ke,ye,Be,ot.slice()),xt=xt.nextSibling;return;case f:return Je(ke,je.name,je.value);case p:return ke.push(je.data.replace(/[<&>]/g,U));case v:return ke.push("<![CDATA[",je.data,"]]>");case m:return ke.push("<!--",je.data,"-->");case w:var sn=je.publicId,vt=je.systemId;if(ke.push("<!DOCTYPE ",je.name),sn)ke.push(" PUBLIC ",sn),vt&&vt!="."&&ke.push(" ",vt),ke.push(">");else if(vt&&vt!=".")ke.push(" SYSTEM ",vt,">");else{var Bt=je.internalSubset;Bt&&ke.push(" [",Bt,"]"),ke.push(">")}return;case y:return ke.push("<?",je.target," ",je.data,"?>");case h:return ke.push("&",je.nodeName,";");default:ke.push("??",je.nodeName)}}function Ot(je,ke,ye){var Be;switch(ke.nodeType){case c:Be=ke.cloneNode(!1),Be.ownerDocument=je;case A:break;case f:ye=!0;break}if(Be||(Be=ke.cloneNode(!1)),Be.ownerDocument=je,Be.parentNode=null,ye)for(var ot=ke.firstChild;ot;)Be.appendChild(Ot(je,ot,ye)),ot=ot.nextSibling;return Be}function Tn(je,ke,ye){var Be=new ke.constructor;for(var ot in ke)if(Object.prototype.hasOwnProperty.call(ke,ot)){var gt=ke[ot];typeof gt!="object"&&gt!=Be[ot]&&(Be[ot]=gt)}switch(ke.childNodes&&(Be.childNodes=new R),Be.ownerDocument=je,Be.nodeType){case c:var Ke=ke.attributes,He=Be.attributes=new L,at=Ke.length;He._ownerElement=Be;for(var St=0;St<at;St++)Be.setAttributeNode(Tn(je,Ke.item(St),!0));break;case f:ye=!0}if(ye)for(var tt=ke.firstChild;tt;)Be.appendChild(Tn(je,tt,ye)),tt=tt.nextSibling;return Be}function In(je,ke,ye){je[ke]=ye}try{if(Object.defineProperty){let je=function(ke){switch(ke.nodeType){case c:case A:var ye=[];for(ke=ke.firstChild;ke;)ke.nodeType!==7&&ke.nodeType!==8&&ye.push(je(ke)),ke=ke.nextSibling;return ye.join("");default:return ke.nodeValue}};Object.defineProperty(N.prototype,"length",{get:function(){return V(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){return je(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}}}),In=function(ke,ye,Be){ke["$$"+ye]=Be}}}catch{}return uf.DocumentType=Lt,uf.DOMException=_,uf.DOMImplementation=Z,uf.Element=Le,uf.Node=z,uf.NodeList=R,uf.XMLSerializer=ut,uf}var R2={},yO={},ene;function jut(){return ene||(ene=1,(function(e){var t=MD().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:`
  244. `,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})(yO)),yO}var Bx={},tne;function Hut(){if(tne)return Bx;tne=1;var e=MD().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(I,P){this.message=I,this.locator=P,Error.captureStackTrace&&Error.captureStackTrace(this,f)}f.prototype=new Error,f.prototype.name=f.name;function p(){}p.prototype={parse:function(I,P,M){var _=this.domBuilder;_.startDocument(),w(P,P={}),v(I,P,M,_,this.errorHandler),_.endDocument()}};function v(I,P,M,_,R){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 V(Ee){var Le=Ee.slice(1,-1);return Object.hasOwnProperty.call(M,Le)?M[Le]:Le.charAt(0)==="#"?N(parseInt(Le.substr(1).replace("x","0x"))):(R.error("entity not found:"+Ee),Ee)}function L(Ee){if(Ee>re){var Le=I.substring(re,Ee).replace(/&#?\w+;/g,V);z&&j(re),_.characters(Le,0,Ee-re),re=Ee}}function j(Ee,Le){for(;Ee>=G&&(Le=Z.exec(I));)H=Le.index,G=H+Le[0].length,z.lineNumber++;z.columnNumber=Ee-H+1}for(var H=0,G=0,Z=/.*(?:\r\n?|\n)|.*$/g,z=_.locator,U=[{currentNSMap:P}],W={},re=0;;){try{var J=I.indexOf("<",re);if(J<0){if(!I.substr(re).match(/^\s*$/)){var te=_.doc,X=te.createTextNode(I.substr(re));te.appendChild(X),_.currentElement=X}return}switch(J>re&&L(J),I.charAt(J+1)){case"/":var De=I.indexOf(">",J+3),ue=I.substring(J+2,De).replace(/[ \t\n\r]+$/g,""),me=U.pop();De<0?(ue=I.substring(J+2).replace(/[\s<].*/,""),R.error("end tag name: "+ue+" is not complete:"+me.tagName),De=J+1+ue.length):ue.match(/\s</)&&(ue=ue.replace(/[\s<].*/,""),R.error("end tag name: "+ue+" maybe not complete"),De=J+1+ue.length);var Me=me.localNSMap,Ae=me.tagName==ue,ge=Ae||me.tagName&&me.tagName.toLowerCase()==ue.toLowerCase();if(ge){if(_.endElement(me.uri,me.localName,ue),Me)for(var _e in Me)Object.prototype.hasOwnProperty.call(Me,_e)&&_.endPrefixMapping(_e);Ae||R.fatalError("end tag name: "+ue+" is not match the current start tagName:"+me.tagName)}else U.push(me);De++;break;case"?":z&&j(J),De=S(I,J,_);break;case"!":z&&j(J),De=A(I,J,_,R);break;default:z&&j(J);var Q=new k,be=U[U.length-1].currentNSMap,De=g(I,J,Q,be,V,R),pe=Q.length;if(!Q.closed&&b(I,De,Q.tagName,W)&&(Q.closed=!0,M.nbsp||R.warning("unclosed xml attribute")),z&&pe){for(var ie=h(z,{}),ce=0;ce<pe;ce++){var Re=Q[ce];j(Re.offset),Re.locator=h(z,{})}_.locator=ie,y(Q,_,be)&&U.push(Q),_.locator=z}else y(Q,_,be)&&U.push(Q);e.isHTML(Q.uri)&&!Q.closed?De=m(I,De,Q.tagName,V,_):De++}}catch(Ee){if(Ee instanceof f)throw Ee;R.error("element parse error: "+Ee),De=-1}De>re?re=De:L(Math.max(J,re)+1)}}function h(I,P){return P.lineNumber=I.lineNumber,P.columnNumber=I.columnNumber,P}function g(I,P,M,_,R,N){function V(z,U,W){M.attributeNames.hasOwnProperty(z)&&N.fatalError("Attribute "+z+" redefined"),M.addValue(z,U.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,R),W)}for(var L,j,H=++P,G=o;;){var Z=I.charAt(H);switch(Z){case"=":if(G===i)L=I.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 "="'),L=I.slice(P,H)),P=H+1,H=I.indexOf(Z,P),H>0)j=I.slice(P,H),V(L,j,P-1),G=u;else throw new Error("attribute value no end '"+Z+"' match");else if(G==l)j=I.slice(P,H),V(L,j,P),N.warning('attribute "'+L+'" missed start quot('+Z+")!!"),P=H+1,G=u;else throw new Error('attribute value must after "="');break;case"/":switch(G){case o:M.setTagName(I.slice(P,H));case u:case d:case c:G=c,M.closed=!0;case l:case i:break;case a:M.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return N.error("unexpected end of input"),G==o&&M.setTagName(I.slice(P,H)),H;case">":switch(G){case o:M.setTagName(I.slice(P,H));case u:case d:case c:break;case l:case i:j=I.slice(P,H),j.slice(-1)==="/"&&(M.closed=!0,j=j.slice(0,-1));case a:G===a&&(j=L),G==l?(N.warning('attribute "'+j+'" missed quot(")!'),V(L,j,P)):((!e.isHTML(_[""])||!j.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),V(j,j,P));break;case s:throw new Error("attribute value missed!!")}return H;case"€":Z=" ";default:if(Z<=" ")switch(G){case o:M.setTagName(I.slice(P,H)),G=d;break;case i:L=I.slice(P,H),G=a;break;case l:var j=I.slice(P,H);N.warning('attribute "'+j+'" missed quot(")!!'),V(L,j,P);case u:G=d;break}else switch(G){case a:M.tagName,(!e.isHTML(_[""])||!L.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+L+'" missed value!! "'+L+'" instead2!!'),V(L,L,P),P=H,G=i;break;case u:N.warning('attribute space is required"'+L+'"!!');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(I,P,M){for(var _=I.tagName,R=null,Z=I.length;Z--;){var N=I[Z],V=N.qName,L=N.value,z=V.indexOf(":");if(z>0)var j=N.prefix=V.slice(0,z),H=V.slice(z+1),G=j==="xmlns"&&H;else H=V,j=null,G=V==="xmlns"&&"";N.localName=H,G!==!1&&(R==null&&(R={},w(M,M={})),M[G]=R[G]=L,N.uri=e.XMLNS,P.startPrefixMapping(G,L))}for(var Z=I.length;Z--;){N=I[Z];var j=N.prefix;j&&(j==="xml"&&(N.uri=e.XML),j!=="xmlns"&&(N.uri=M[j||""]))}var z=_.indexOf(":");z>0?(j=I.prefix=_.slice(0,z),H=I.localName=_.slice(z+1)):(j=null,H=I.localName=_);var U=I.uri=M[j||""];if(P.startElement(U,H,_,I),I.closed){if(P.endElement(U,H,_),R)for(j in R)Object.prototype.hasOwnProperty.call(R,j)&&P.endPrefixMapping(j)}else return I.currentNSMap=M,I.localNSMap=R,!0}function m(I,P,M,_,R){if(/^(?:script|textarea)$/i.test(M)){var N=I.indexOf("</"+M+">",P),V=I.substring(P+1,N);if(/[&<]/.test(V))return/^script$/i.test(M)?(R.characters(V,0,V.length),N):(V=V.replace(/&#?\w+;/g,_),R.characters(V,0,V.length),N)}return P+1}function b(I,P,M,_){var R=_[M];return R==null&&(R=I.lastIndexOf("</"+M+">"),R<P&&(R=I.lastIndexOf("</"+M)),_[M]=R),R<P}function w(I,P){for(var M in I)Object.prototype.hasOwnProperty.call(I,M)&&(P[M]=I[M])}function A(I,P,M,_){var R=I.charAt(P+2);switch(R){case"-":if(I.charAt(P+3)==="-"){var N=I.indexOf("-->",P+4);return N>P?(M.comment(I,P+4,N-P-4),N+3):(_.error("Unclosed comment"),-1)}else return-1;default:if(I.substr(P+3,6)=="CDATA["){var N=I.indexOf("]]>",P+9);return M.startCDATA(),M.characters(I,P+9,N-P-9),M.endCDATA(),N+3}var V=O(I,P),L=V.length;if(L>1&&/!doctype/i.test(V[0][0])){var j=V[1][0],H=!1,G=!1;L>3&&(/^public$/i.test(V[2][0])?(H=V[3][0],G=L>4&&V[4][0]):/^system$/i.test(V[2][0])&&(G=V[3][0]));var Z=V[L-1];return M.startDTD(j,H,G),M.endDTD(),Z.index+Z[0].length}}return-1}function S(I,P,M){var _=I.indexOf("?>",P);if(_){var R=I.substring(P,_).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return R?(R[0].length,M.processingInstruction(R[1],R[2]),_+2):-1}return-1}function k(){this.attributeNames={}}k.prototype={setTagName:function(I){if(!r.test(I))throw new Error("invalid tagName:"+I);this.tagName=I},addValue:function(I,P,M){if(!r.test(I))throw new Error("invalid attribute:"+I);this.attributeNames[I]=this.length,this[this.length++]={qName:I,value:P,offset:M}},length:0,getLocalName:function(I){return this[I].localName},getLocator:function(I){return this[I].locator},getQName:function(I){return this[I].qName},getURI:function(I){return this[I].uri},getValue:function(I){return this[I].value}};function O(I,P){var M,_=[],R=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(R.lastIndex=P,R.exec(I);M=R.exec(I);)if(_.push(M),M[1])return _}return Bx.XMLReader=p,Bx.ParseError=f,Bx}var nne;function Wut(){if(nne)return R2;nne=1;var e=MD(),t=RV(),n=jut(),r=Hut(),o=t.DOMImplementation,i=e.NAMESPACE,a=r.ParseError,s=r.XMLReader;function l(g){return g.replace(/\r[\n\u0085]/g,`
  245. `).replace(/[\r\u0085\u2028]/g,`
  246. `)}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||{},O=/\/x?html?$/.test(y),I=O?n.HTML_ENTITIES:n.XML_ENTITIES;S&&w.setDocumentLocator(S),b.errorHandler=d(A,w,S),b.domBuilder=m.domBuilder||w,O&&(k[""]=i.HTML),k.xml=k.xml||i.XML;var P=m.normalizeLineEndings||l;return g&&typeof g=="string"?b.parse(P(g),k,I):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(O){g(S,O)}:g),b[S]=k&&function(O){k("[xmldom "+S+"] "+O+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),O=b.getValue(k),m=b.getQName(k),I=w.createAttributeNS(g,m);this.locator&&f(b.getLocator(k),I),I.value=I.nodeValue=O,A.setAttributeNode(I)}},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`
  247. @`+(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 R2.__DOMHandler=c,R2.normalizeLineEndings=l,R2.DOMParser=u,R2}var rne;function Vut(){if(rne)return N2;rne=1;var e=RV();return N2.DOMImplementation=e.DOMImplementation,N2.XMLSerializer=e.XMLSerializer,N2.DOMParser=Wut().DOMParser,N2}var one;function qut(){if(one)return Rx;one=1;var e=Vut(),t=RV();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 Rx.parseFromString=n,Rx.Node=t.Node,Rx}var ine;function Gut(){if(ine)return mO;ine=1;var e=O0(),t=Ia,n=qut(),r=B4e(),o=r.Element;mO.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 mO}var bO={},G0={},nd={},ane;function M0(){return ane||(ane=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 VS={exports:{}},qS={exports:{}},GS={exports:{}},KS={exports:{}},Kut=KS.exports,sne;function L4e(){return sne||(sne=1,(function(){KS.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(Kut)),KS.exports}var Yut=GS.exports,lne;function PD(){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(),o=i.isObject,r=i.isFunction,n=i.getValue,t=Vl(),e=L4e(),GS.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(Yut)),GS.exports}var YS={exports:{}},Qut=YS.exports,une;function ND(){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(),YS.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(Qut)),YS.exports}var QS={exports:{}},Zut=QS.exports,cne;function RD(){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(),QS.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(Zut)),QS.exports}var ZS={exports:{}},Xut=ZS.exports,dne;function BD(){return dne||(dne=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(),ZS.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(Xut)),ZS.exports}var XS={exports:{}},JS={exports:{}},Jut=JS.exports,fne;function LD(){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(),JS.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(Jut)),JS.exports}var e8={exports:{}},ect=e8.exports,pne;function FD(){return pne||(pne=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(),e8.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(ect)),e8.exports}var t8={exports:{}},tct=t8.exports,hne;function UD(){return hne||(hne=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,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(tct)),t8.exports}var n8={exports:{}},nct=n8.exports,gne;function zD(){return gne||(gne=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(),n8.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(nct)),n8.exports}var rct=XS.exports,vne;function $D(){return vne||(vne=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=LD(),n=FD(),t=UD(),r=zD(),XS.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(rct)),XS.exports}var r8={exports:{}},oct=r8.exports,mne;function jD(){return mne||(mne=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(),r8.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(oct)),r8.exports}var o8={exports:{}},ict=o8.exports,yne;function HD(){return yne||(yne=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(),o8.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(ict)),o8.exports}var i8={exports:{}},act=i8.exports,bne;function WD(){return bne||(bne=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(),i8.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(act)),i8.exports}var a8={exports:{}},sct=a8.exports,wne;function BV(){return wne||(wne=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(),a8.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(sct)),a8.exports}var lct=qS.exports,Ane;function Vl(){return Ane||(Ane=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,qS.exports=(function(){function h(g){this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],i||(i=PD(),e=ND(),t=RD(),n=BD(),r=$D(),s=jD(),l=HD(),a=WD(),o=BV())}return h.prototype.element=function(g,y,m){var b,w,A,S,k,O,I,P,M,_,R;if(O=null,y===null&&m==null&&(M=[{},null],y=M[0],m=M[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,I=g.length;A<I;A++)w=g[A],O=this.element(w);else if(c(g))O=this.element(g.apply());else if(f(g)){for(k in g)if(v.call(g,k))if(R=g[k],c(R)&&(R=R.apply()),f(R)&&d(R)&&(R=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&k.indexOf(this.stringify.convertAttKey)===0)O=this.attribute(k.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R))for(S=0,P=R.length;S<P;S++)w=R[S],b={},b[k]=w,O=this.element(b);else f(R)?(O=this.element(k),O.element(R)):O=this.element(k,R)}else this.options.skipNullNodes&&m===null?O=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&g.indexOf(this.stringify.convertTextKey)===0?O=this.text(m):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&g.indexOf(this.stringify.convertCDataKey)===0?O=this.cdata(m):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&g.indexOf(this.stringify.convertCommentKey)===0?O=this.comment(m):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&g.indexOf(this.stringify.convertRawKey)===0?O=this.raw(m):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&g.indexOf(this.stringify.convertPIKey)===0?O=this.instruction(g.substr(this.stringify.convertPIKey.length),m):O=this.node(g,y,m);if(O==null)throw new Error("Could not create any elements with: "+g+". "+this.debugInfo());return O},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,O,I,P,M;for(b=this.document(),w=new r(b,g,y),P=b.children,A=S=0,O=P.length;S<O;A=++S)if(m=P[A],m instanceof r)return b.children[A]=w,w;for(M=b.children,A=k=0,I=M.length;k<I;A=++k)if(m=M[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(lct)),qS.exports}var s8={exports:{}},uct=s8.exports,Cne;function F4e(){return Cne||(Cne=1,(function(){var e=function(n,r){return function(){return n.apply(r,arguments)}},t={}.hasOwnProperty;s8.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},n.prototype.attEscape=function(r){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(o,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},n})()}).call(uct)),s8.exports}var l8={exports:{}},u8={exports:{}},cct=u8.exports,xne;function U4e(){return xne||(xne=1,(function(){var e={}.hasOwnProperty;u8.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:`
  248. `,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:`
  249. `,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(cct)),u8.exports}var dct=l8.exports,Sne;function LV(){return Sne||(Sne=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=BD(),s=$D(),e=ND(),t=RD(),u=PD(),c=jD(),f=HD(),d=WD(),l=BV(),n=LD(),r=UD(),o=FD(),i=zD(),p=U4e(),l8.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,O;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,O=m.children,A=0,S=O.length;A<S;A++)w=O[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,O,I,P,M,_,R,N,V,L;b||(b=0),L=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),V=this.space(b),M="",M+=V+"<"+m.name,_=m.attributes;for(P in _)h.call(_,P)&&(w=_[P],M+=this.attribute(w));if(m.children.length===0||m.children.every(function(j){return j.value===""}))this.allowEmpty?M+="></"+m.name+">"+this.newline:M+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)M+=">",M+=m.children[0].value,M+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(R=m.children,S=0,O=R.length;S<O;S++)if(A=R[S],A.value!=null){this.textispresent++,L=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,V=this.space(b)),M+=">"+this.newline,N=m.children,k=0,I=N.length;k<I;k++)A=N[k],M+=(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);L&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),M+=V+"</"+m.name+">"+this.newline}return M},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(dct)),l8.exports}var fct=VS.exports,Ene;function pct(){return Ene||(Ene=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=F4e(),t=LV(),VS.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(fct)),VS.exports}var c8={exports:{}},hct=c8.exports,kne;function gct(){return kne||(kne=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=PD(),t=ND(),n=RD(),c=jD(),v=HD(),d=WD(),s=BD(),l=$D(),r=LD(),i=FD(),o=UD(),a=zD(),e=L4e(),p=F4e(),f=LV(),c8.exports=(function(){function A(S,k,O){var I;this.name="?xml",S||(S={}),S.writer?m(S.writer)&&(I=S.writer,S.writer=new f(I)):S.writer=new f(S),this.options=S,this.writer=S.writer,this.stringify=new p(S),this.onDataCallback=k||function(){},this.onEndCallback=O||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,O){var I,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&&O==null&&(I=[{},null],k=I[0],O=I[1]),k==null&&(k={}),k=h(k),y(k)||(P=[k,O],O=P[0],k=P[1]),this.currentNode=new u(this,S,k),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},A.prototype.element=function(S,k,O){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(S,k,O)},A.prototype.attribute=function(S,k){var O,I;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(O in S)w.call(S,O)&&(I=S[O],this.attribute(O,I));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 O,I,P,M,_;if(this.openCurrent(),S!=null&&(S=h(S)),k!=null&&(k=h(k)),Array.isArray(S))for(O=0,M=S.length;O<M;O++)I=S[O],this.instruction(I);else if(y(S))for(I in S)w.call(S,I)&&(P=S[I],this.instruction(I,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,O){var I;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return I=new s(this,S,k,O),this.onData(this.writer.declaration(I,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(S,k,O){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,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(S,k){var O;return this.openCurrent(),O=new o(this,S,k),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(S,k,O,I,P){var M;return this.openCurrent(),M=new r(this,S,k,O,I,P),this.onData(this.writer.dtdAttList(M,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(S,k){var O;return this.openCurrent(),O=new i(this,!1,S,k),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(S,k){var O;return this.openCurrent(),O=new i(this,!0,S,k),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(S,k){var O;return this.openCurrent(),O=new a(this,S,k),this.onData(this.writer.dtdNotation(O,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,O){return this.node(S,k,O)},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,O){return this.declaration(S,k,O)},A.prototype.dtd=function(S,k,O){return this.doctype(S,k,O)},A.prototype.e=function(S,k,O){return this.element(S,k,O)},A.prototype.n=function(S,k,O){return this.node(S,k,O)},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(hct)),c8.exports}var d8={exports:{}},vct=d8.exports,Tne;function mct(){return Tne||(Tne=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=BD(),s=$D(),e=ND(),t=RD(),u=PD(),c=jD(),f=HD(),d=WD(),l=BV(),n=LD(),r=UD(),o=FD(),i=zD(),p=U4e(),d8.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,O,I,P;for(O=m.children,w=0,S=O.length;w<S;w++)b=O[w],b.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,I=m.children,P=[],A=0,k=I.length;A<k;A++)if(b=I[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,O,I,P,M;b||(b=0),M=this.space(b),this.stream.write(M+"<"+m.name),I=m.attributes;for(O in I)h.call(I,O)&&(w=I[O],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(M+"</"+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(vct)),d8.exports}var _ne;function yct(){return _ne||(_ne=1,(function(){var e,t,n,r,o,i,a;a=M0(),o=a.assign,i=a.isFunction,e=pct(),t=gct(),r=LV(),n=mct(),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 Dne;function bct(){if(Dne)return bO;Dne=1;var e=Ia,t=yct();bO.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 bO}var Ine;function FV(){if(Ine)return Op;Ine=1;var e=B4e();return Op.Element=e.Element,Op.element=e.element,Op.emptyElement=e.emptyElement,Op.text=e.text,Op.readString=Gut().readString,Op.writeString=bct().writeString,Op}var One;function wct(){if(One)return Nx;One=1;var e=Ia,t=O0(),n=FV();Nx.read=o,Nx.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 Nx}var Lx={},uc={},Fx={},Mne;function Act(){if(Mne)return Fx;Mne=1,Object.defineProperty(Fx,"__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 Fx.default=e,Fx}var Pne;function Cct(){if(Pne)return uc;Pne=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(Act()),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 Mp={},Nne;function z4e(){if(Nne)return Mp;Nne=1;var e=Ia;Mp.paragraph=t,Mp.run=n,Mp._elements=o,Mp._elementsOfType=r,Mp.getDescendantsOfType=i,Mp.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 Mp}var Ux={},Rne;function xct(){if(Rne)return Ux;Rne=1,Ux.uriToZipEntryName=e,Ux.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 Ux}var Bne;function Sct(){if(Bne)return Lx;Bne=1,Lx.createBodyReader=l,Lx._readNumberingProperties=d;var e=Cct(),t=Ia,n=lm(),r=np().Result,o=np().warning,i=FV(),a=z4e(),s=xct();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=[],O=[],I=A.relationships,P=A.contentTypes,M=A.docxFile,_=A.files,R=A.numbering,N=A.styles;function V(dt){var _t=dt.map(L);return m(_t)}function L(dt){if(dt.type==="element"){var _t=pe[dt.name];if(_t)return _t(dt);if(!Object.prototype.hasOwnProperty.call(f,dt.name)){var ut=o("An unrecognised element was ignored: "+dt.name);return p([ut])}}return v()}function j(dt){return re(dt).map(function(_t){return{type:"paragraphProperties",styleId:_t.styleId,styleName:_t.name,alignment:dt.firstOrEmpty("w:jc").attributes["w:val"],numbering:d(_t.styleId,dt.firstOrEmpty("w:numPr"),R),indent:H(dt.firstOrEmpty("w:ind"))}})}function H(dt){return{start:dt.attributes["w:start"]||dt.attributes["w:left"],end:dt.attributes["w:end"]||dt.attributes["w:right"],firstLine:dt.attributes["w:firstLine"],hanging:dt.attributes["w:hanging"]}}function G(dt){return J(dt).map(function(_t){var ut=dt.firstOrEmpty("w:sz").attributes["w:val"],rt=/^[0-9]+$/.test(ut)?parseInt(ut,10)/2:null;return{type:"runProperties",styleId:_t.styleId,styleName:_t.name,verticalAlignment:dt.firstOrEmpty("w:vertAlign").attributes["w:val"],font:dt.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:rt,isBold:z(dt.first("w:b")),isUnderline:Z(dt.first("w:u")),isItalic:z(dt.first("w:i")),isStrikethrough:z(dt.first("w:strike")),isAllCaps:z(dt.first("w:caps")),isSmallCaps:z(dt.first("w:smallCaps")),highlight:W(dt.firstOrEmpty("w:highlight").attributes["w:val"])}})}function Z(dt){if(dt){var _t=dt.attributes["w:val"];return _t!==void 0&&_t!=="false"&&_t!=="0"&&_t!=="none"}else return!1}function z(dt){if(dt){var _t=dt.attributes["w:val"];return _t!=="false"&&_t!=="0"}else return!1}function U(dt){return dt!=="false"&&dt!=="0"}function W(dt){return!dt||dt==="none"?null:dt}function re(dt){return X(dt,"w:pStyle","Paragraph",N.findParagraphStyleById)}function J(dt){return X(dt,"w:rStyle","Run",N.findCharacterStyleById)}function te(dt){return X(dt,"w:tblStyle","Table",N.findTableStyleById)}function X(dt,_t,ut,rt){var he=[],Je=dt.first(_t),ct=null,Ot=null;if(Je&&(ct=Je.attributes["w:val"],ct)){var Tn=rt(ct);Tn?Ot=Tn.name:he.push(zt(ut,ct))}return g({styleId:ct,name:Ot},he)}function ue(dt){var _t=dt.attributes["w:fldCharType"];if(_t==="begin")S.push({type:"begin",fldChar:dt}),k=[];else if(_t==="end"){var ut=S.pop();if(ut.type==="begin"&&(ut=Me(ut)),ut.type==="checkbox")return h(n.checkbox({checked:ut.checked}))}else if(_t==="separate"){var rt=S.pop(),he=Me(rt);S.push(he)}return v()}function me(){var dt=t.last(S.filter(function(_t){return _t.type==="hyperlink"}));return dt?dt.options:null}function Me(dt){return Ae(k.join(""),dt.type==="begin"?dt.fldChar:i.emptyElement)}function Ae(dt,_t){var ut=/\s*HYPERLINK "(.*)"/.exec(dt);if(ut)return{type:"hyperlink",options:{href:ut[1]}};var rt=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(dt);if(rt)return{type:"hyperlink",options:{anchor:rt[1]}};var he=/\s*FORMCHECKBOX\s*/.exec(dt);if(he){var Je=_t.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),ct=Je.first("w:checked"),Ot=ct==null?z(Je.first("w:default")):z(ct);return{type:"checkbox",checked:Ot}}return{type:"unknown"}}function ge(dt){return k.push(dt.text()),v()}function _e(dt){var _t=dt.attributes["w:font"],ut=dt.attributes["w:char"],rt=e.hex(_t,ut);return rt==null&&/^F0..$/.test(ut)&&(rt=e.hex(_t,ut.substring(2))),rt==null?p([o("A w:sym element with an unsupported character was ignored: char "+ut+" in font "+_t)]):h(new n.Text(rt.string))}function Q(dt){return function(_t){var ut=_t.attributes["w:id"];return h(new n.NoteReference({noteType:dt,noteId:ut}))}}function be(dt){return h(n.commentReference({commentId:dt.attributes["w:id"]}))}function De(dt){return V(dt.children)}var pe={"w:p":function(dt){var _t=dt.firstOrEmpty("w:pPr"),ut=!!_t.firstOrEmpty("w:rPr").first("w:del");if(ut)return dt.children.forEach(function(he){O.push(he)}),v();var rt=dt.children;return O.length>0&&(rt=O.concat(rt),O=[]),y.map(j(_t),V(rt),function(he,Je){return new n.Paragraph(Je,he)}).insertExtra()},"w:r":function(dt){return y.map(G(dt.firstOrEmpty("w:rPr")),V(dt.children),function(_t,ut){var rt=me();return rt!==null&&(ut=[new n.Hyperlink(ut,rt)]),new n.Run(ut,_t)})},"w:fldChar":ue,"w:instrText":ge,"w:t":function(dt){return h(new n.Text(dt.text()))},"w:tab":function(dt){return h(new n.Tab)},"w:noBreakHyphen":function(){return h(new n.Text("‑"))},"w:softHyphen":function(dt){return h(new n.Text("­"))},"w:sym":_e,"w:hyperlink":function(dt){var _t=dt.attributes["r:id"],ut=dt.attributes["w:anchor"];return V(dt.children).map(function(rt){function he(ct){var Ot=dt.attributes["w:tgtFrame"]||null;return new n.Hyperlink(rt,t.extend({targetFrame:Ot},ct))}if(_t){var Je=I.findTargetByRelationshipId(_t);return ut&&(Je=s.replaceFragment(Je,ut)),he({href:Je})}else return ut?he({anchor:ut}):rt})},"w:tbl":ie,"w:tr":Re,"w:tc":Ee,"w:footnoteReference":Q("footnote"),"w:endnoteReference":Q("endnote"),"w:commentReference":be,"w:br":function(dt){var _t=dt.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(dt){var _t=dt.attributes["w:name"];return _t==="_GoBack"?v():h(new n.BookmarkStart({name:_t}))},"mc:AlternateContent":function(dt){return De(dt.firstOrEmpty("mc:Fallback"))},"w:sdt":function(dt){var _t=V(dt.firstOrEmpty("w:sdtContent").children);return _t.map(function(ut){var rt=dt.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(rt){var he=rt.first("wordml:checked"),Je=!!he&&U(he.attributes["wordml:val"]),ct=n.checkbox({checked:Je}),Ot=!1,Tn=ut.map(a._elementsOfType(n.types.text,function(In){return In.value.length>0&&!Ot?(Ot=!0,ct):In}));return Ot?Tn:ct}else return ut})},"w:ins":De,"w:object":De,"w:smartTag":De,"w:drawing":De,"w:pict":function(dt){return De(dt).toExtra()},"v:roundrect":De,"v:shape":De,"v:textbox":De,"w:txbxContent":De,"wp:inline":Pe,"wp:anchor":Pe,"v:imagedata":Lt,"v:group":De,"v:rect":De};return{readXmlElement:L,readXmlElements:V};function ie(dt){var _t=ce(dt.firstOrEmpty("w:tblPr"));return V(dt.children).flatMap(Fe).flatMap(function(ut){return _t.map(function(rt){return n.Table(ut,rt)})})}function ce(dt){return te(dt).map(function(_t){return{styleId:_t.styleId,styleName:_t.name}})}function Re(dt){var _t=dt.firstOrEmpty("w:trPr"),ut=!!_t.first("w:del");if(ut)return v();var rt=!!_t.first("w:tblHeader");return V(dt.children).map(function(he){return n.TableRow(he,{isHeader:rt})})}function Ee(dt){return V(dt.children).map(function(_t){var ut=dt.firstOrEmpty("w:tcPr"),rt=ut.firstOrEmpty("w:gridSpan").attributes["w:val"],he=rt?parseInt(rt,10):1,Je=n.TableCell(_t,{colSpan:he});return Je._vMerge=Le(ut),Je})}function Le(dt){var _t=dt.first("w:vMerge");if(_t){var ut=_t.attributes["w:val"];return ut==="continue"||!ut}else return null}function Fe(dt){var _t=t.any(dt,function(he){return he.type!==n.types.tableRow});if(_t)return g(dt,[o("unexpected non-row element in table, cell merging may be incorrect")]);var ut=t.any(dt,function(he){return t.any(he.children,function(Je){return Je.type!==n.types.tableCell})});if(ut)return g(dt,[o("unexpected non-cell element in table row, cell merging may be incorrect")]);var rt={};return dt.forEach(function(he){var Je=0;he.children.forEach(function(ct){ct._vMerge&&rt[Je]?rt[Je].rowSpan++:(rt[Je]=ct,ct._vMerge=!1),Je+=ct.colSpan})}),dt.forEach(function(he){he.children=he.children.filter(function(Je){return!Je._vMerge}),he.children.forEach(function(Je){delete Je._vMerge})}),h(dt)}function Pe(dt){var _t=dt.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return m(_t.map(Ne.bind(null,dt)))}function Ne(dt,_t){var ut=dt.first("wp:docPr").attributes,rt=ht(ut.descr)?ut.title:ut.descr,he=Rt(_t);return he===null?p([o("Could not find image file for a:blip element")]):Wt(he,rt)}function ht(dt){return dt==null||/^\s*$/.test(dt)}function Rt(dt){var _t=dt.attributes["r:embed"],ut=dt.attributes["r:link"];if(_t)return tn(_t);if(ut){var rt=I.findTargetByRelationshipId(ut);return{path:rt,read:_.read.bind(_,rt)}}else return null}function Lt(dt){var _t=dt.attributes["r:id"];return _t?Wt(tn(_t),dt.attributes["o:title"]):p([o("A v:imagedata element without a relationship ID was ignored")])}function tn(dt){var _t=s.uriToZipEntryName("word",I.findTargetByRelationshipId(dt));return{path:_t,read:M.read.bind(M,_t)}}function Wt(dt,_t){var ut=P.findContentType(dt.path),rt=n.Image({readImage:dt.read,altText:_t,contentType:ut}),he=c[ut]?[]:o("Image of type "+ut+" is unlikely to display in web browsers");return g(rt,he)}function zt(dt,_t){return o(dt+" style with ID "+_t+" was referenced but not defined in the document")}}function d(A,S,k){var O=S.firstOrEmpty("w:ilvl").attributes["w:val"],I=S.firstOrEmpty("w:numId").attributes["w:val"];if(O!==void 0&&I!==void 0)return k.findLevel(I,O);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 Lx}var wO={},Lne;function Ect(){if(Lne)return wO;Lne=1,wO.DocumentXmlReader=n;var e=lm(),t=np().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 wO}var B2={},Fne;function kct(){if(Fne)return B2;Fne=1,B2.readRelationships=e,B2.defaultValue=new t([]),B2.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 B2}var zx={},Une;function Tct(){if(Une)return zx;Une=1,zx.readContentTypesFromXml=t;var e={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};zx.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 zx}var L2={},zne;function _ct(){if(zne)return L2;zne=1;var e=Ia;L2.readNumberingXml=n,L2.Numbering=t,L2.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 L2}var F2={},$ne;function Dct(){if($ne)return F2;$ne=1,F2.readStylesXml=t,F2.Styles=e,F2.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 F2}var Um={},jne;function Ict(){if(jne)return Um;jne=1;var e=lm(),t=np().Result;Um.createFootnotesReader=n.bind(Um,"footnote"),Um.createEndnotesReader=n.bind(Um,"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 Um}var AO={},Hne;function Oct(){if(Hne)return AO;Hne=1;var e=lm(),t=np().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 AO.createCommentsReader=n,AO}var CO={},Wne;function Mct(){if(Wne)return CO;Wne=1;var e=O0();CO.Files=t;function t(){function n(r){return e.reject(new Error("could not open external image: '"+r+`'
  250. cannot open linked files from a web browser`))}return{read:n}}return CO}var Vne;function Pct(){if(Vne)return Ix;Vne=1,Ix.read=v,Ix._findPartPaths=h;var e=O0(),t=lm(),n=np().Result,r=R4e(),o=wct().readXmlFromZipFile,i=Sct().createBodyReader,a=Ect().DocumentXmlReader,s=kct(),l=Tct(),u=_ct(),d=Dct(),c=Ict(),f=Oct(),p=Mct().Files;function v(I,P){return P=P||{},e.props({contentTypes:A(I),partPaths:h(I),docxFile:I,files:P.path?p.relativeToFile(P.path):new p(null)}).also(function(M){return{styles:k(I,M.partPaths.styles)}}).also(function(M){return{numbering:S(I,M.partPaths.numbering,M.styles)}}).also(function(M){return{footnotes:b(M.partPaths.footnotes,M,function(_,R){return R?c.createFootnotesReader(_)(R):new n([])}),endnotes:b(M.partPaths.endnotes,M,function(_,R){return R?c.createEndnotesReader(_)(R):new n([])}),comments:b(M.partPaths.comments,M,function(_,R){return R?f.createCommentsReader(_)(R):new n([])})}}).also(function(M){return{notes:M.footnotes.flatMap(function(_){return M.endnotes.map(function(R){return new t.Notes(_.concat(R))})})}}).then(function(M){return b(M.partPaths.mainDocument,M,function(_,R){return M.notes.flatMap(function(N){return M.comments.flatMap(function(V){var L=new a({bodyReader:_,notes:N,comments:V});return L.convertXmlToDocument(R)})})})})}function h(I){return O(I).then(function(P){var M=g({docxFile:I,relationships:P,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!I.exists(M))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return m({filename:w(M),readElement:s.readRelationships,defaultValue:s.defaultValue})(I).then(function(_){function R(N){return g({docxFile:I,relationships:_,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+N,basePath:r.splitPath(M).dirname,fallbackPath:"word/"+N+".xml"})}return{mainDocument:M,comments:R("comments"),endnotes:R("endnotes"),footnotes:R("footnotes"),numbering:R("numbering"),styles:R("styles")}})})}function g(I){var P=I.docxFile,M=I.relationships,_=I.relationshipType,R=I.basePath,N=I.fallbackPath,V=M.findTargetsByType(_),L=V.map(function(H){return y(r.joinPath(R,H),"/")}),j=L.filter(function(H){return P.exists(H)});return j.length===0?N:j[0]}function y(I,P){return I.substring(0,P.length)===P?I.substring(P.length):I}function m(I){return function(P){return o(P,I.filename).then(function(M){return M?I.readElement(M):I.defaultValue})}}function b(I,P,M){var _=m({filename:w(I),readElement:s.readRelationships,defaultValue:s.defaultValue});return _(P.docxFile).then(function(R){var N=new i({relationships:R,contentTypes:P.contentTypes,docxFile:P.docxFile,numbering:P.numbering,styles:P.styles,files:P.files});return o(P.docxFile,I).then(function(V){return M(N,V)})})}function w(I){var P=r.splitPath(I);return r.joinPath(P.dirname,"_rels",P.basename+".rels")}var A=m({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function S(I,P,M){return m({filename:P,readElement:function(_){return u.readNumberingXml(_,{styles:M})},defaultValue:u.defaultNumbering})(I)}function k(I,P){return m({filename:P,readElement:d.readStylesXml,defaultValue:d.defaultStyles})(I)}var O=m({filename:"_rels/.rels",readElement:s.readRelationships,defaultValue:s.defaultValue});return Ix}var $x={},qne;function Nct(){if(qne)return $x;qne=1;var e=Ia,t=O0(),n=FV();$x.writeStyleMap=a,$x.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 $x}var jx={},K0={},cf={},Pp={},Gne;function $4e(){if(Gne)return Pp;Gne=1;var e=qD();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"};Pp.freshElement=n,Pp.nonFreshElement=t,Pp.elementWithTag=r,Pp.text=o,Pp.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 Pp.isVoidElement=s,Pp}var xO,Kne;function Rct(){if(Kne)return xO;Kne=1;var e=Ia,t=$4e();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 xO=n,xO}var Yne;function VD(){if(Yne)return cf;Yne=1;var e=$4e();cf.freshElement=e.freshElement,cf.nonFreshElement=e.nonFreshElement,cf.elementWithTag=e.elementWithTag,cf.text=e.text,cf.forceWrite=e.forceWrite,cf.simplify=Rct();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 Qne;function qD(){if(Qne)return K0;Qne=1;var e=Ia,t=VD();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 SO={},Zne;function j4e(){return Zne||(Zne=1,(function(e){var t=Ia,n=O0(),r=VD();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}})})})(SO)),SO}var EO={},kO={},Xne;function Bct(){if(Xne)return kO;Xne=1;var e=Ia;kO.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(`
  251. `,`
  252. `+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(`
  253. `);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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(s){return s.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return kO}var TO={},Jne;function Lct(){if(Jne)return TO;Jne=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:"!["+p+"]("+f+")"}:{}}function i(c){return function(f,p){return{start:p?`
  254. `:"",end:p?"":`
  255. `,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,`
  256. `}}}var s={p:n("",`
  257. `),br:n("",`
  258. `),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)+" ",`
  259. `)})();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{}},O=k(S,p,v);f.push({end:O.end,list:p}),O.list&&(p=O.list);var I=O.anchorPosition==="before";I&&g(S),c.push(O.start||""),I||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}}TO.writer=u;function d(c){return c.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}return TO}var ere;function Fct(){if(ere)return EO;ere=1;var e=Bct(),t=Lct();EO.writer=n;function n(r){return r=r||{},r.outputFormat==="markdown"?t.writer():e.writer(r)}return EO}var tre;function Uct(){if(tre)return jx;tre=1;var e=Ia,t=O0(),n=lm(),r=qD(),o=np(),i=j4e(),a=VD(),s=Fct();jx.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"),O=g.styleMap||[];function I(Q){var be=[],De=M(Q,be,{}),pe=[];v(De,function(ce){ce.type==="deferred"&&pe.push(ce)});var ie={};return t.mapSeries(pe,function(ce){return ce.value().then(function(Re){ie[ce.id]=Re})}).then(function(){function ce(Ee){return p(Ee,function(Le){return Le.type==="deferred"?ie[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(Q,be,De){return p(Q,function(pe){return M(pe,be,De)})}function M(Q,be,De){if(!De)throw new Error("options not set");var pe=_e[Q.type];return pe?pe(Q,be,De):[]}function _(Q,be,De){return R(Q,be).wrap(function(){var pe=P(Q.children,be,De);return S?pe:[a.forceWrite].concat(pe)})}function R(Q,be){var De=j(Q);return De?De.to:(Q.styleId&&be.push(f("paragraph",Q)),k)}function N(Q,be,De){var pe=function(){return P(Q.children,be,De)},ie=[];if(Q.highlight!==null){var ce=L({type:"highlight",color:Q.highlight});ce&&ie.push(ce)}Q.isSmallCaps&&ie.push(V("smallCaps")),Q.isAllCaps&&ie.push(V("allCaps")),Q.isStrikethrough&&ie.push(V("strikethrough","s")),Q.isUnderline&&ie.push(V("underline")),Q.verticalAlignment===n.verticalAlignment.subscript&&ie.push(r.element("sub",{},{fresh:!1})),Q.verticalAlignment===n.verticalAlignment.superscript&&ie.push(r.element("sup",{},{fresh:!1})),Q.isItalic&&ie.push(V("italic","em")),Q.isBold&&ie.push(V("bold","strong"));var Re=r.empty,Ee=j(Q);return Ee?Re=Ee.to:Q.styleId&&be.push(f("run",Q)),ie.push(Re),ie.forEach(function(Le){pe=Le.wrap.bind(Le,pe)}),pe()}function V(Q,be){var De=L({type:Q});return De||(be?r.element(be,{},{fresh:!1}):r.empty)}function L(Q,be){var De=j(Q);return De?De.to:be}function j(Q){for(var be=0;be<O.length;be++)if(O[be].from.matches(Q))return O[be]}function H(Q){return function(be,De){return t.attempt(function(){return Q(be,De)}).caught(function(pe){return De.push(o.error(pe)),[]})}}function G(Q){return z(Q.noteType,Q.noteId)}function Z(Q){return U(Q.noteType,Q.noteId)}function z(Q,be){return W(Q+"-"+be)}function U(Q,be){return W(Q+"-ref-"+be)}function W(Q){return A+Q}var re=r.elements([r.element("table",{},{fresh:!0})]);function J(Q,be,De){return L(Q,re).wrap(function(){return te(Q,be,De)})}function te(Q,be,De){var pe=e.findIndex(Q.children,function(Ee){return!Ee.type===n.types.tableRow||!Ee.isHeader});pe===-1&&(pe=Q.children.length);var ie;if(pe===0)ie=P(Q.children,be,e.extend({},De,{isTableHeader:!1}));else{var ce=P(Q.children.slice(0,pe),be,e.extend({},De,{isTableHeader:!0})),Re=P(Q.children.slice(pe),be,e.extend({},De,{isTableHeader:!1}));ie=[a.freshElement("thead",{},ce),a.freshElement("tbody",{},Re)]}return[a.forceWrite].concat(ie)}function X(Q,be,De){var pe=P(Q.children,be,De);return[a.freshElement("tr",{},[a.forceWrite].concat(pe))]}function ue(Q,be,De){var pe=De.isTableHeader?"th":"td",ie=P(Q.children,be,De),ce={};return Q.colSpan!==1&&(ce.colspan=Q.colSpan.toString()),Q.rowSpan!==1&&(ce.rowspan=Q.rowSpan.toString()),[a.freshElement(pe,ce,[a.forceWrite].concat(ie))]}function me(Q,be,De){return L(Q,r.ignore).wrap(function(){var pe=y[Q.commentId],ie=w.length+1,ce="["+h(pe)+ie+"]";return w.push({label:ce,comment:pe}),[a.freshElement("a",{href:"#"+z("comment",Q.commentId),id:U("comment",Q.commentId)},[a.text(ce)])]})}function Me(Q,be,De){var pe=Q.label,ie=Q.comment,ce=P(ie.body,be,De).concat([a.nonFreshElement("p",{},[a.text(" "),a.freshElement("a",{href:"#"+U("comment",ie.commentId)},[a.text("↑")])])]);return[a.freshElement("dt",{id:z("comment",ie.commentId)},[a.text("Comment "+pe)]),a.freshElement("dd",{},ce)]}function Ae(Q,be,De){return ge(Q).wrap(function(){return[]})}function ge(Q){var be=j(Q);return be?be.to:Q.breakType==="line"?r.topLevelElement("br"):r.empty}var _e={document:function(Q,be,De){var pe=P(Q.children,be,De),ie=b.map(function(Re){return Q.notes.resolve(Re)}),ce=P(ie,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(Q,be,De){return[a.text(Q.value)]},tab:function(Q,be,De){return[a.text(" ")]},hyperlink:function(Q,be,De){var pe=Q.anchor?"#"+W(Q.anchor):Q.href,ie={href:pe};Q.targetFrame!=null&&(ie.target=Q.targetFrame);var ce=P(Q.children,be,De);return[a.nonFreshElement("a",ie,ce)]},checkbox:function(Q){var be={type:"checkbox"};return Q.checked&&(be.checked="checked"),[a.freshElement("input",be)]},bookmarkStart:function(Q,be,De){var pe=a.freshElement("a",{id:W(Q.name)},[a.forceWrite]);return[pe]},noteReference:function(Q,be,De){b.push(Q);var pe=a.freshElement("a",{href:"#"+G(Q),id:Z(Q)},[a.text("["+m+++"]")]);return[a.freshElement("sup",{},[pe])]},note:function(Q,be,De){var pe=P(Q.body,be,De),ie=a.elementWithTag(r.element("p",{},{fresh:!1}),[a.text(" "),a.freshElement("a",{href:"#"+Z(Q)},[a.text("↑")])]),ce=pe.concat([ie]);return a.freshElement("li",{id:G(Q)},ce)},commentReference:me,comment:Me,image:c(H(g.convertImage||i.dataUri)),table:J,tableRow:X,tableCell:ue,break:Ae};return{convertToHtml:I}}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=jx.commentAuthorLabel=function(y){return y.authorInitials||""};return jx}var _O={},nre;function zct(){if(nre)return _O;nre=1;var e=lm();function t(n){if(n.type==="text")return n.value;if(n.type===e.types.tab)return" ";var r=n.type==="paragraph"?`
  260. `:"";return(n.children||[]).map(t).join("")+r}return _O.convertElementToRawText=t,_O}var U2={},cc={},DO={},IO={exports:{}},rre;function $ct(){if(rre)return IO.exports;rre=1;var e=IO.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)},IO.exports}var ore;function jct(){if(ore)return DO;ore=1;var e=$ct();return DO.Parser=function(t){var n=function(r,o){return r(new e(o))};return{parseTokens:n}},DO}var OO={},MO={},ire;function Hct(){return ire||(ire=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)}})(MO)),MO}var PO,are;function UV(){if(are)return PO;are=1,PO={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},PO}var NO={},sre;function H4e(){if(sre)return NO;sre=1,NO.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()+`:
  261. `:"";return t+"Expected "+this.expected+`
  262. but got `+this.actual},e.prototype.lineNumber=function(){return this._location.lineNumber()},e.prototype.characterNumber=function(){return this._location.characterNumber()},NO}var RO={},lre;function Wct(){if(lre)return RO;lre=1,RO.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},RO}var ure;function W4e(){return ure||(ure=1,(function(e){var t=Ia,n=Hct(),r=UV(),o=H4e(),i=Wct();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 O=S.remaining(),I=h.to(O);return{result:r.success(k,O,I),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)}})(OO)),OO}var BO={exports:{}},cre;function V4e(){if(cre)return BO.exports;cre=1,BO.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+`
  263. `:"";return n+"Line number: "+t.lineNumber+`
  264. 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(`
  265. `,n)},o=1;r()!==-1&&r()<this._startIndex;)n=r()+1,o+=1;var i=this._startIndex-n+1;return{lineNumber:o,characterNumber:i}},BO.exports}var LO,dre;function q4e(){return dre||(dre=1,LO=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}),LO}var FO={},fre;function Vct(){return fre||(fre=1,(function(e){var t=W4e(),n=UV();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)}}})(FO)),FO}var UO={},pre;function qct(){if(pre)return UO;pre=1;var e=q4e(),t=V4e();UO.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 UO}var hre;function G4e(){return hre||(hre=1,cc.Parser=jct().Parser,cc.rules=W4e(),cc.errors=H4e(),cc.results=UV(),cc.StringSource=V4e(),cc.Token=q4e(),cc.bottomUp=Vct(),cc.RegexTokeniser=qct().RegexTokeniser,cc.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}),cc}var is={},gre;function Gct(){if(gre)return is;gre=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 zO={},vre;function Kct(){if(vre)return zO;vre=1;var e=G4e(),t=e.RegexTokeniser;zO.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 zO}var mre;function Yct(){if(mre)return U2;mre=1;var e=Ia,t=G4e(),n=Gct(),r=qD(),o=Kct().tokenise,i=np();U2.readHtmlPath=d,U2.readDocumentMatcher=l,U2.readStyle=a;function a(O){return w(k,O)}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(O,I){return{from:O,to:I.valueOrElse(r.empty)}})}function l(O){return w(u(),O)}function u(){var O=t.rules.sequence,I=function(Me,Ae){return t.rules.then(t.rules.token("identifier",Me),function(){return Ae})},P=I("p",n.paragraph),M=I("r",n.run),_=t.rules.firstOf("p or r or table",P,M),R=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)}})),V=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(),L=t.rules.firstOf("list type",I("ordered-list",{isOrdered:!0}),I("unordered-list",{isOrdered:!1})),j=O(t.rules.tokenOfType("colon"),O.capture(L),O.cut(),t.rules.tokenOfType("open-paren"),O.capture(p),t.rules.tokenOfType("close-paren")).map(function(Me,Ae){return{list:{isOrdered:Me.isOrdered,levelIndex:Ae-1}}});function H(Me){var Ae=t.rules.firstOf.apply(t.rules.firstOf,["matcher suffix"].concat(Me)),ge=t.rules.zeroOrMore(Ae);return t.rules.then(ge,function(_e){var Q={};return _e.forEach(function(be){e.extend(Q,be)}),Q})}var G=O(O.capture(_),O.capture(H([R,V,j]))).map(function(Me,Ae){return Me(Ae)}),Z=O(t.rules.token("identifier","table"),O.capture(H([R,V]))).map(function(Me){return n.table(Me)}),z=I("b",n.bold),U=I("i",n.italic),W=I("u",n.underline),re=I("strike",n.strikethrough),J=I("all-caps",n.allCaps),te=I("small-caps",n.smallCaps),X=O(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=I("comment-reference",n.commentReference),me=O(t.rules.token("identifier","br"),O.cut(),t.rules.tokenOfType("open-square-bracket"),t.rules.token("identifier","type"),t.rules.tokenOfType("equals"),O.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,z,U,W,re,J,te,X,ue,me)}function d(O){return w(c(),O)}function c(){var O=t.rules.sequence.capture,I=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)}),M=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","separator"),t.rules.tokenOfType("open-paren"),O(v),t.rules.tokenOfType("close-paren")).head()),function(N){return N.valueOrElse("")}),_=t.rules.oneOrMoreWithSeparator(f,t.rules.tokenOfType("choice")),R=t.rules.sequence(O(_),O(t.rules.zeroOrMore(b)),O(P),O(M)).map(function(N,V,L,j){var H={},G={};return V.forEach(function(Z){Z.append&&H[Z.name]?H[Z.name]+=" "+Z.value:H[Z.name]=Z.value}),L&&(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(R,t.rules.sequence(I,t.rules.tokenOfType("gt"),I)),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:`
  266. `,r:"\r",t:" "};function g(O){return O.replace(/\\(.)/g,function(I,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(O,I){return{name:O,value:I,append:!1}}),m=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(f)).map(function(O){return{name:"class",value:O,append:!0}}),b=t.rules.firstOf("attribute or class",y,m);function w(O,I){var P=o(I),M=t.Parser(),_=M.parseTokens(O,P);return _.isSuccess()?i.success(_.value()):new i.Result(null,[i.warning(A(I,_))])}function A(O,I){return"Did not understand this style mapping, so ignored it: "+O+`
  267. `+I.errors().map(S).join(`
  268. `)}function S(O){return"Error was at character number "+O.characterNumber()+": Expected "+O.expected+" but got "+O.actual}var k=s();return U2}var z2={},yre;function Qct(){if(yre)return z2;yre=1,z2.readOptions=r;var e=Ia,t=z2._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=z2._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(`
  269. `).map(function(s){return s.trim()}).filter(function(s){return s!==""&&s.charAt(0)!=="#"}):a:[]}function i(a){return a}return z2}var $O={},bre;function Zct(){if(bre)return $O;bre=1;var e=O0(),t=R4e();$O.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 $O}var jO={},wre;function Xct(){if(wre)return jO;wre=1;var e=qD(),t=VD();jO.element=n;function n(r){return function(o){return t.elementWithTag(e.element(r),[o])}}return jO}var Are;function Jct(){if(Are)return xu;Are=1;var e=Ia,t=Pct(),n=Nct(),r=Uct().DocumentConverter,o=zct().convertElementToRawText,i=Yct().readStyle,a=Qct().readOptions,s=Zct(),l=np().Result;xu.convertToHtml=u,xu.convertToMarkdown=d,xu.convert=c,xu.extractRawText=h,xu.images=j4e(),xu.transforms=z4e(),xu.underline=Xct(),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 zV=Jct();const edt=mu(zV),qE=zke({__proto__:null,default:edt},[zV]),tdt={__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=Yo(tdt,[["__scopeId","data-v-d2f3ad5a"]]),ndt={key:0,class:"toast-container"},rdt={class:"toast-content"},odt={key:0,class:"toast-icon"},idt=["src","alt"],adt={class:"toast-text"},sdt={__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=Y(!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",ndt,[x("div",rdt,[e.icon?(F(),K("div",odt,[x("img",{src:e.icon,alt:e.type,class:"icon-img"},null,8,idt)])):xe("",!0),x("span",adt,ze(e.message),1)])])):xe("",!0)]),_:1}))}},ldt=Yo(sdt,[["__scopeId","data-v-f0e7cdfe"]]),f8=Xi.create({baseURL:"/api",timeout:1e4,headers:{"Content-Type":"application/json"}});let HO=!1,WO=[];f8.interceptors.request.use(e=>{const t=Gf();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>(console.error("请求错误:",e),Promise.reject(e)));f8.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 bS(),window.location.href="/#/login",Promise.reject(e);if(HO)return new Promise(r=>{WO.push(o=>{t.headers.Authorization=`Bearer ${o}`,r(f8(t))})});{HO=!0;const r=V9e();if(!r)return bS(),window.location.href="/#/login",Promise.reject(e);try{const o=await Xi.post("/api/auth/refresh",{refresh_token:r}),{access_token:i}=o.data;return q9e(i,r),t.headers.Authorization=`Bearer ${i}`,WO.forEach(a=>a(i)),WO=[],f8(t)}catch(o){return console.error("刷新token失败:",o),bS(),window.location.href="/#/login",Promise.reject(o)}finally{HO=!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 $V(){return"/chatwithai/api/v1"}function jV(e){const t=$V(),n=e.startsWith("/")?e:`/${e}`;return`${t}${n}`}function K4e(e){return e?`https://aqai.shudaodsj.com:22000/apiv1/oss/parse/?url=${encodeURIComponent(e)}`:""}async function Y4e(e,t){try{const n=await fetch(jV("/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(jV("/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 HV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var um=HV();function Q4e(e){um=e}var t3={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")},udt=/^(?:[ \t]*(?:\n|$))+/,cdt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ddt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,YC=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fdt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,WV=/(?:[*+-]|\d{1,9}[.)])/,Z4e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,X4e=ai(Z4e).replace(/bull/g,WV).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(),pdt=ai(Z4e).replace(/bull/g,WV).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(),VV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hdt=/^[^\n]+/,qV=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gdt=ai(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qV).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vdt=ai(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,WV).getRegex(),GD="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",GV=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mdt=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",GV).replace("tag",GD).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J4e=ai(VV).replace("hr",YC).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",GD).getRegex(),ydt=ai(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",J4e).getRegex(),KV={blockquote:ydt,code:cdt,def:gdt,fences:ddt,heading:fdt,hr:YC,html:mdt,lheading:X4e,list:vdt,newline:udt,paragraph:J4e,table:t3,text:hdt},Cre=ai("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",YC).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",GD).getRegex(),bdt={...KV,lheading:pdt,table:Cre,paragraph:ai(VV).replace("hr",YC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cre).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",GD).getRegex()},wdt={...KV,html:ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",GV).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:t3,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ai(VV).replace("hr",YC).replace("heading",` *#{1,6} *[^
  270. ]`).replace("lheading",X4e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Adt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cdt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,e3e=/^( {2,}|\\)\n(?!\s*$)/,xdt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,KD=/[\p{P}\p{S}]/u,YV=/[\s\p{P}\p{S}]/u,t3e=/[^\s\p{P}\p{S}]/u,Sdt=ai(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,YV).getRegex(),n3e=/(?!~)[\p{P}\p{S}]/u,Edt=/(?!~)[\s\p{P}\p{S}]/u,kdt=/(?:[^\s\p{P}\p{S}]|~)/u,Tdt=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,r3e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_dt=ai(r3e,"u").replace(/punct/g,KD).getRegex(),Ddt=ai(r3e,"u").replace(/punct/g,n3e).getRegex(),o3e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Idt=ai(o3e,"gu").replace(/notPunctSpace/g,t3e).replace(/punctSpace/g,YV).replace(/punct/g,KD).getRegex(),Odt=ai(o3e,"gu").replace(/notPunctSpace/g,kdt).replace(/punctSpace/g,Edt).replace(/punct/g,n3e).getRegex(),Mdt=ai("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,t3e).replace(/punctSpace/g,YV).replace(/punct/g,KD).getRegex(),Pdt=ai(/\\(punct)/,"gu").replace(/punct/g,KD).getRegex(),Ndt=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(),Rdt=ai(GV).replace("(?:-->|$)","-->").getRegex(),Bdt=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",Rdt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),GE=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ldt=ai(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",GE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),i3e=ai(/^!?\[(label)\]\[(ref)\]/).replace("label",GE).replace("ref",qV).getRegex(),a3e=ai(/^!?\[(ref)\](?:\[\])?/).replace("ref",qV).getRegex(),Fdt=ai("reflink|nolink(?!\\()","g").replace("reflink",i3e).replace("nolink",a3e).getRegex(),xre=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,QV={_backpedal:t3,anyPunctuation:Pdt,autolink:Ndt,blockSkip:Tdt,br:e3e,code:Cdt,del:t3,emStrongLDelim:_dt,emStrongRDelimAst:Idt,emStrongRDelimUnd:Mdt,escape:Adt,link:Ldt,nolink:a3e,punctuation:Sdt,reflink:i3e,reflinkSearch:Fdt,tag:Bdt,text:xdt,url:t3},Udt={...QV,link:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",GE).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",GE).getRegex()},TF={...QV,emStrongRDelimAst:Odt,emStrongLDelim:Ddt,url:ai(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",xre).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",xre).getRegex()},zdt={...TF,br:ai(e3e).replace("{2,}","*").getRegex(),text:ai(TF.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hx={normal:KV,gfm:bdt,pedantic:wdt},$2={normal:QV,gfm:TF,breaks:zdt,pedantic:Udt},$dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sre=e=>$dt[e];function id(e,t){if(t){if(ol.escapeTest.test(e))return e.replace(ol.escapeReplace,Sre)}else if(ol.escapeTestNoEncode.test(e))return e.replace(ol.escapeReplaceNoEncode,Sre);return e}function Ere(e){try{e=encodeURI(e).replace(ol.percentDecode,"%")}catch{return null}return e}function kre(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 j2(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 jdt(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 Tre(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 Hdt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
  271. `).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(`
  272. `)}var KE=class{options;rules;lexer;constructor(t){this.options=t||um}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:j2(r,`
  273. `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],o=Hdt(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=j2(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:j2(n[0],`
  274. `)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=j2(n[0],`
  275. `).split(`
  276. `),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(`
  277. `),c=d.replace(this.rules.other.blockquoteSetextReplace,`
  278. $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
  279. ${d}`:d,i=i?`${i}
  280. ${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+`
  281. `+r.join(`
  282. `),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+`
  283. `+r.join(`
  284. `),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(`
  285. `);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(`
  286. `,1)[0].replace(this.rules.other.listReplaceTabs,m=>" ".repeat(3*m.length)),p=t.split(`
  287. `,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+`
  288. `,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(`
  289. `,1)[0],O;if(p=k,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),O=p):O=p.replace(this.rules.other.tabCharGlobal," "),w.test(p)||A.test(p)||S.test(p)||m.test(p)||b.test(p))break;if(O.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=`
  290. `+O.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+=`
  291. `+p}!v&&!p.trim()&&(v=!0),d+=k+`
  292. `,t=t.substring(k.length+1),f=O.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=kre(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
  293. `):[],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(kre(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)===`
  294. `?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=j2(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=jdt(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)),Tre(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 Tre(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 _F{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||um,this.options.tokenizer=this.options.tokenizer||new KE,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:Hx.normal,inline:$2.normal};this.options.pedantic?(n.block=Hx.pedantic,n.inline=$2.pedantic):this.options.gfm&&(n.block=Hx.gfm,this.options.breaks?n.inline=$2.breaks:n.inline=$2.gfm),this.tokenizer.rules=n}static get rules(){return{block:Hx,inline:$2}}static lex(t,n){return new _F(n).lex(t)}static lexInline(t,n){return new _F(n).inlineTokens(t)}lex(t){t=t.replace(ol.carriageReturn,`
  295. `),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+=`
  296. `: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(`
  297. `)?"":`
  298. `)+o.raw,a.text+=`
  299. `+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(`
  300. `)?"":`
  301. `)+o.raw,a.text+=`
  302. `+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(`
  303. `)?"":`
  304. `)+o.raw,a.text+=`
  305. `+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(`
  306. `)?"":`
  307. `)+o.raw,a.text+=`
  308. `+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}},YE=class{options;parser;constructor(t){this.options=t||um}space(t){return""}code({text:t,lang:n,escaped:r}){let o=(n||"").match(ol.notSpaceStart)?.[0],i=t.replace(ol.endingNewline,"")+`
  309. `;return o?'<pre><code class="language-'+id(o)+'">'+(r?i:id(i,!0))+`</code></pre>
  310. `:"<pre><code>"+(r?i:id(i,!0))+`</code></pre>
  311. `}blockquote({tokens:t}){return`<blockquote>
  312. ${this.parser.parse(t)}</blockquote>
  313. `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
  314. `}hr(t){return`<hr>
  315. `}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+`>
  316. `+o+"</"+i+`>
  317. `}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>
  318. `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
  319. `}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>
  320. <thead>
  321. `+n+`</thead>
  322. `+o+`</table>
  323. `}tablerow({text:t}){return`<tr>
  324. ${t}</tr>
  325. `}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
  326. `}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=Ere(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=Ere(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)}},ZV=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 DF{options;renderer;textRenderer;constructor(t){this.options=t||um,this.options.renderer=this.options.renderer||new YE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ZV}static parse(t,n){return new DF(n).parse(t)}static parseInline(t,n){return new DF(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+=`
  327. `+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}},C4=class{options;block;constructor(t){this.options=t||um}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}},Wdt=class{defaults=HV();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=mc;Renderer=YE;TextRenderer=ZV;Lexer=vc;Tokenizer=KE;Hooks=C4;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 YE(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 KE(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 C4;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];C4.passThroughHooks.has(a)?i[s]=d=>{if(this.defaults.async&&C4.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+=`
  328. 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}}},Bv=new Wdt;function ui(e,t){return Bv.parse(e,t)}ui.options=ui.setOptions=function(e){return Bv.setOptions(e),ui.defaults=Bv.defaults,Q4e(ui.defaults),ui};ui.getDefaults=HV;ui.defaults=um;ui.use=function(...e){return Bv.use(...e),ui.defaults=Bv.defaults,Q4e(ui.defaults),ui};ui.walkTokens=function(e,t){return Bv.walkTokens(e,t)};ui.parseInline=Bv.parseInline;ui.Parser=mc;ui.parser=mc.parse;ui.Renderer=YE;ui.TextRenderer=ZV;ui.Lexer=vc;ui.lexer=vc.lex;ui.Tokenizer=KE;ui.Hooks=C4;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:s3e,setPrototypeOf:_re,isFrozen:Vdt,getPrototypeOf:qdt,getOwnPropertyDescriptor:Gdt}=Object;let{freeze:dl,seal:Qu,create:IF}=Object,{apply:OF,construct:MF}=typeof Reflect<"u"&&Reflect;dl||(dl=function(t){return t});Qu||(Qu=function(t){return t});OF||(OF=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)});MF||(MF=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 Wx=fl(Array.prototype.forEach),Kdt=fl(Array.prototype.lastIndexOf),Dre=fl(Array.prototype.pop),H2=fl(Array.prototype.push),Ydt=fl(Array.prototype.splice),p8=fl(String.prototype.toLowerCase),VO=fl(String.prototype.toString),qO=fl(String.prototype.match),W2=fl(String.prototype.replace),Qdt=fl(String.prototype.indexOf),Zdt=fl(String.prototype.trim),fc=fl(Object.prototype.hasOwnProperty),Qs=fl(RegExp.prototype.test),V2=Xdt(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 OF(e,t,r)}}function Xdt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MF(e,n)}}function No(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p8;_re&&_re(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(Vdt(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Jdt(e){for(let t=0;t<e.length;t++)fc(e,t)||(e[t]=null);return e}function mf(e){const t=IF(null);for(const[n,r]of s3e(e))fc(e,n)&&(Array.isArray(r)?t[n]=Jdt(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=mf(r):t[n]=r);return t}function q2(e,t){for(;e!==null;){const r=Gdt(e,t);if(r){if(r.get)return fl(r.get);if(typeof r.value=="function")return fl(r.value)}e=qdt(e)}function n(){return null}return n}const Ire=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"]),GO=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"]),KO=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"]),eft=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"]),YO=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"]),tft=dl(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ore=dl(["#text"]),Mre=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"]),QO=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"]),Pre=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"]),Vx=dl(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nft=Qu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rft=Qu(/<%[\w\W]*|[\w\W]*%>/gm),oft=Qu(/\$\{[\w\W]*/gm),ift=Qu(/^data-[\-\w.\u00B7-\uFFFF]+$/),aft=Qu(/^aria-[\-\w]+$/),l3e=Qu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sft=Qu(/^(?:\w+script|data):/i),lft=Qu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u3e=Qu(/^html$/i),uft=Qu(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nre=Object.freeze({__proto__:null,ARIA_ATTR:aft,ATTR_WHITESPACE:lft,CUSTOM_ELEMENT:uft,DATA_ATTR:ift,DOCTYPE_NAME:u3e,ERB_EXPR:rft,IS_ALLOWED_URI:l3e,IS_SCRIPT_OR_DATA:sft,MUSTACHE_EXPR:nft,TMPLIT_EXPR:oft});const G2={element:1,text:3,progressingInstruction:7,comment:8,document:9},cft=function(){return typeof window>"u"?null:window},dft=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}},Rre=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c3e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cft();const t=cn=>c3e(cn);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==G2.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=q2(v,"cloneNode"),g=q2(v,"remove"),y=q2(v,"nextSibling"),m=q2(v,"childNodes"),b=q2(v,"parentNode");if(typeof a=="function"){const cn=n.createElement("template");cn.content&&cn.content.ownerDocument&&(n=cn.content.ownerDocument)}let w,A="";const{implementation:S,createNodeIterator:k,createDocumentFragment:O,getElementsByTagName:I}=n,{importNode:P}=r;let M=Rre();t.isSupported=typeof s3e=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:R,TMPLIT_EXPR:N,DATA_ATTR:V,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:G}=Nre;let{IS_ALLOWED_URI:Z}=Nre,z=null;const U=No({},[...Ire,...GO,...KO,...YO,...Ore]);let W=null;const re=No({},[...Mre,...QO,...Pre,...Vx]);let J=Object.seal(IF(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(IF(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let me=!0,Me=!0,Ae=!1,ge=!0,_e=!1,Q=!0,be=!1,De=!1,pe=!1,ie=!1,ce=!1,Re=!1,Ee=!0,Le=!1;const Fe="user-content-";let Pe=!0,Ne=!1,ht={},Rt=null;const Lt=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 tn=null;const Wt=No({},["audio","video","img","source","image","track"]);let zt=null;const dt=No({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_t="http://www.w3.org/1998/Math/MathML",ut="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let he=rt,Je=!1,ct=null;const Ot=No({},[_t,ut,rt],VO);let Tn=No({},["mi","mo","mn","ms","mtext"]),In=No({},["annotation-xml"]);const je=No({},["title","style","font","a","script"]);let ke=null;const ye=["application/xhtml+xml","text/html"],Be="text/html";let ot=null,gt=null;const Ke=n.createElement("form"),He=function(qe){return qe instanceof RegExp||qe instanceof Function},at=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(gt&&gt===qe)){if((!qe||typeof qe!="object")&&(qe={}),qe=mf(qe),ke=ye.indexOf(qe.PARSER_MEDIA_TYPE)===-1?Be:qe.PARSER_MEDIA_TYPE,ot=ke==="application/xhtml+xml"?VO:p8,z=fc(qe,"ALLOWED_TAGS")?No({},qe.ALLOWED_TAGS,ot):U,W=fc(qe,"ALLOWED_ATTR")?No({},qe.ALLOWED_ATTR,ot):re,ct=fc(qe,"ALLOWED_NAMESPACES")?No({},qe.ALLOWED_NAMESPACES,VO):Ot,zt=fc(qe,"ADD_URI_SAFE_ATTR")?No(mf(dt),qe.ADD_URI_SAFE_ATTR,ot):dt,tn=fc(qe,"ADD_DATA_URI_TAGS")?No(mf(Wt),qe.ADD_DATA_URI_TAGS,ot):Wt,Rt=fc(qe,"FORBID_CONTENTS")?No({},qe.FORBID_CONTENTS,ot):Lt,te=fc(qe,"FORBID_TAGS")?No({},qe.FORBID_TAGS,ot):mf({}),X=fc(qe,"FORBID_ATTR")?No({},qe.FORBID_ATTR,ot):mf({}),ht=fc(qe,"USE_PROFILES")?qe.USE_PROFILES:!1,me=qe.ALLOW_ARIA_ATTR!==!1,Me=qe.ALLOW_DATA_ATTR!==!1,Ae=qe.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=qe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=qe.SAFE_FOR_TEMPLATES||!1,Q=qe.SAFE_FOR_XML!==!1,be=qe.WHOLE_DOCUMENT||!1,ie=qe.RETURN_DOM||!1,ce=qe.RETURN_DOM_FRAGMENT||!1,Re=qe.RETURN_TRUSTED_TYPE||!1,pe=qe.FORCE_BODY||!1,Ee=qe.SANITIZE_DOM!==!1,Le=qe.SANITIZE_NAMED_PROPS||!1,Pe=qe.KEEP_CONTENT!==!1,Ne=qe.IN_PLACE||!1,Z=qe.ALLOWED_URI_REGEXP||l3e,he=qe.NAMESPACE||rt,Tn=qe.MATHML_TEXT_INTEGRATION_POINTS||Tn,In=qe.HTML_INTEGRATION_POINTS||In,J=qe.CUSTOM_ELEMENT_HANDLING||{},qe.CUSTOM_ELEMENT_HANDLING&&He(qe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=qe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),qe.CUSTOM_ELEMENT_HANDLING&&He(qe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=qe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),qe.CUSTOM_ELEMENT_HANDLING&&typeof qe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=qe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(Me=!1),ce&&(ie=!0),ht&&(z=No({},Ore),W=[],ht.html===!0&&(No(z,Ire),No(W,Mre)),ht.svg===!0&&(No(z,GO),No(W,QO),No(W,Vx)),ht.svgFilters===!0&&(No(z,KO),No(W,QO),No(W,Vx)),ht.mathMl===!0&&(No(z,YO),No(W,Pre),No(W,Vx))),qe.ADD_TAGS&&(typeof qe.ADD_TAGS=="function"?ue.tagCheck=qe.ADD_TAGS:(z===U&&(z=mf(z)),No(z,qe.ADD_TAGS,ot))),qe.ADD_ATTR&&(typeof qe.ADD_ATTR=="function"?ue.attributeCheck=qe.ADD_ATTR:(W===re&&(W=mf(W)),No(W,qe.ADD_ATTR,ot))),qe.ADD_URI_SAFE_ATTR&&No(zt,qe.ADD_URI_SAFE_ATTR,ot),qe.FORBID_CONTENTS&&(Rt===Lt&&(Rt=mf(Rt)),No(Rt,qe.FORBID_CONTENTS,ot)),Pe&&(z["#text"]=!0),be&&No(z,["html","head","body"]),z.table&&(No(z,["tbody"]),delete te.tbody),qe.TRUSTED_TYPES_POLICY){if(typeof qe.TRUSTED_TYPES_POLICY.createHTML!="function")throw V2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof qe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw V2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=qe.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=dft(p,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));dl&&dl(qe),gt=qe}},St=No({},[...GO,...KO,...eft]),tt=No({},[...YO,...tft]),Qe=function(qe){let yt=b(qe);(!yt||!yt.tagName)&&(yt={namespaceURI:he,tagName:"template"});const Zt=p8(qe.tagName),bt=p8(yt.tagName);return ct[qe.namespaceURI]?qe.namespaceURI===ut?yt.namespaceURI===rt?Zt==="svg":yt.namespaceURI===_t?Zt==="svg"&&(bt==="annotation-xml"||Tn[bt]):!!St[Zt]:qe.namespaceURI===_t?yt.namespaceURI===rt?Zt==="math":yt.namespaceURI===ut?Zt==="math"&&In[bt]:!!tt[Zt]:qe.namespaceURI===rt?yt.namespaceURI===ut&&!In[bt]||yt.namespaceURI===_t&&!Tn[bt]?!1:!tt[Zt]&&(je[Zt]||!St[Zt]):!!(ke==="application/xhtml+xml"&&ct[qe.namespaceURI]):!1},it=function(qe){H2(t.removed,{element:qe});try{b(qe).removeChild(qe)}catch{g(qe)}},Mt=function(qe,yt){try{H2(t.removed,{attribute:yt.getAttributeNode(qe),from:yt})}catch{H2(t.removed,{attribute:null,from:yt})}if(yt.removeAttribute(qe),qe==="is")if(ie||ce)try{it(yt)}catch{}else try{yt.setAttribute(qe,"")}catch{}},Gt=function(qe){let yt=null,Zt=null;if(pe)qe="<remove></remove>"+qe;else{const bn=qO(qe,/^[\r\n\t ]+/);Zt=bn&&bn[0]}ke==="application/xhtml+xml"&&he===rt&&(qe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+qe+"</body></html>");const bt=w?w.createHTML(qe):qe;if(he===rt)try{yt=new f().parseFromString(bt,ke)}catch{}if(!yt||!yt.documentElement){yt=S.createDocument(he,"template",null);try{yt.documentElement.innerHTML=Je?A:bt}catch{}}const Kt=yt.body||yt.documentElement;return qe&&Zt&&Kt.insertBefore(n.createTextNode(Zt),Kt.childNodes[0]||null),he===rt?I.call(yt,be?"html":"body")[0]:be?yt.documentElement:Kt},En=function(qe){return k.call(qe.ownerDocument||qe,qe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nn=function(qe){return qe instanceof c&&(typeof qe.nodeName!="string"||typeof qe.textContent!="string"||typeof qe.removeChild!="function"||!(qe.attributes instanceof d)||typeof qe.removeAttribute!="function"||typeof qe.setAttribute!="function"||typeof qe.namespaceURI!="string"||typeof qe.insertBefore!="function"||typeof qe.hasChildNodes!="function")},xt=function(qe){return typeof s=="function"&&qe instanceof s};function sn(cn,qe,yt){Wx(cn,Zt=>{Zt.call(t,qe,yt,gt)})}const vt=function(qe){let yt=null;if(sn(M.beforeSanitizeElements,qe,null),Nn(qe))return it(qe),!0;const Zt=ot(qe.nodeName);if(sn(M.uponSanitizeElement,qe,{tagName:Zt,allowedTags:z}),Q&&qe.hasChildNodes()&&!xt(qe.firstElementChild)&&Qs(/<[/\w!]/g,qe.innerHTML)&&Qs(/<[/\w!]/g,qe.textContent)||qe.nodeType===G2.progressingInstruction||Q&&qe.nodeType===G2.comment&&Qs(/<[/\w]/g,qe.data))return it(qe),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(Zt))&&(!z[Zt]||te[Zt])){if(!te[Zt]&&mn(Zt)&&(J.tagNameCheck instanceof RegExp&&Qs(J.tagNameCheck,Zt)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Zt)))return!1;if(Pe&&!Rt[Zt]){const bt=b(qe)||qe.parentNode,Kt=m(qe)||qe.childNodes;if(Kt&&bt){const bn=Kt.length;for(let Rn=bn-1;Rn>=0;--Rn){const Kn=h(Kt[Rn],!0);Kn.__removalCount=(qe.__removalCount||0)+1,bt.insertBefore(Kn,y(qe))}}}return it(qe),!0}return qe instanceof l&&!Qe(qe)||(Zt==="noscript"||Zt==="noembed"||Zt==="noframes")&&Qs(/<\/no(script|embed|frames)/i,qe.innerHTML)?(it(qe),!0):(_e&&qe.nodeType===G2.text&&(yt=qe.textContent,Wx([_,R,N],bt=>{yt=W2(yt,bt," ")}),qe.textContent!==yt&&(H2(t.removed,{element:qe.cloneNode()}),qe.textContent=yt)),sn(M.afterSanitizeElements,qe,null),!1)},Bt=function(qe,yt,Zt){if(Ee&&(yt==="id"||yt==="name")&&(Zt in n||Zt in Ke))return!1;if(!(Me&&!X[yt]&&Qs(V,yt))){if(!(me&&Qs(L,yt))){if(!(ue.attributeCheck instanceof Function&&ue.attributeCheck(yt,qe))){if(!W[yt]||X[yt]){if(!(mn(qe)&&(J.tagNameCheck instanceof RegExp&&Qs(J.tagNameCheck,qe)||J.tagNameCheck instanceof Function&&J.tagNameCheck(qe))&&(J.attributeNameCheck instanceof RegExp&&Qs(J.attributeNameCheck,yt)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(yt,qe))||yt==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Qs(J.tagNameCheck,Zt)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Zt))))return!1}else if(!zt[yt]){if(!Qs(Z,W2(Zt,H,""))){if(!((yt==="src"||yt==="xlink:href"||yt==="href")&&qe!=="script"&&Qdt(Zt,"data:")===0&&tn[qe])){if(!(Ae&&!Qs(j,W2(Zt,H,"")))){if(Zt)return!1}}}}}}}return!0},mn=function(qe){return qe!=="annotation-xml"&&qO(qe,G)},Mn=function(qe){sn(M.beforeSanitizeAttributes,qe,null);const{attributes:yt}=qe;if(!yt||Nn(qe))return;const Zt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let bt=yt.length;for(;bt--;){const Kt=yt[bt],{name:bn,namespaceURI:Rn,value:Kn}=Kt,Fr=ot(bn),ho=Kn;let Wr=bn==="value"?ho:Zdt(ho);if(Zt.attrName=Fr,Zt.attrValue=Wr,Zt.keepAttr=!0,Zt.forceKeepAttr=void 0,sn(M.uponSanitizeAttribute,qe,Zt),Wr=Zt.attrValue,Le&&(Fr==="id"||Fr==="name")&&(Mt(bn,qe),Wr=Fe+Wr),Q&&Qs(/((--!?|])>)|<\/(style|title|textarea)/i,Wr)){Mt(bn,qe);continue}if(Fr==="attributename"&&qO(Wr,"href")){Mt(bn,qe);continue}if(Zt.forceKeepAttr)continue;if(!Zt.keepAttr){Mt(bn,qe);continue}if(!ge&&Qs(/\/>/i,Wr)){Mt(bn,qe);continue}_e&&Wx([_,R,N],Bo=>{Wr=W2(Wr,Bo," ")});const bo=ot(qe.nodeName);if(!Bt(bo,Fr,Wr)){Mt(bn,qe);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?qe.setAttributeNS(Rn,bn,Wr):qe.setAttribute(bn,Wr),Nn(qe)?it(qe):Dre(t.removed)}catch{Mt(bn,qe)}}sn(M.afterSanitizeAttributes,qe,null)},tr=function cn(qe){let yt=null;const Zt=En(qe);for(sn(M.beforeSanitizeShadowDOM,qe,null);yt=Zt.nextNode();)sn(M.uponSanitizeShadowNode,yt,null),vt(yt),Mn(yt),yt.content instanceof i&&cn(yt.content);sn(M.afterSanitizeShadowDOM,qe,null)};return t.sanitize=function(cn){let qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=null,Zt=null,bt=null,Kt=null;if(Je=!cn,Je&&(cn="<!-->"),typeof cn!="string"&&!xt(cn))if(typeof cn.toString=="function"){if(cn=cn.toString(),typeof cn!="string")throw V2("dirty is not a string, aborting")}else throw V2("toString is not a function");if(!t.isSupported)return cn;if(De||at(qe),t.removed=[],typeof cn=="string"&&(Ne=!1),Ne){if(cn.nodeName){const Kn=ot(cn.nodeName);if(!z[Kn]||te[Kn])throw V2("root node is forbidden and cannot be sanitized in-place")}}else if(cn instanceof s)yt=Gt("<!---->"),Zt=yt.ownerDocument.importNode(cn,!0),Zt.nodeType===G2.element&&Zt.nodeName==="BODY"||Zt.nodeName==="HTML"?yt=Zt:yt.appendChild(Zt);else{if(!ie&&!_e&&!be&&cn.indexOf("<")===-1)return w&&Re?w.createHTML(cn):cn;if(yt=Gt(cn),!yt)return ie?null:Re?A:""}yt&&pe&&it(yt.firstChild);const bn=En(Ne?cn:yt);for(;bt=bn.nextNode();)vt(bt),Mn(bt),bt.content instanceof i&&tr(bt.content);if(Ne)return cn;if(ie){if(ce)for(Kt=O.call(yt.ownerDocument);yt.firstChild;)Kt.appendChild(yt.firstChild);else Kt=yt;return(W.shadowroot||W.shadowrootmode)&&(Kt=P.call(r,Kt,!0)),Kt}let Rn=be?yt.outerHTML:yt.innerHTML;return be&&z["!doctype"]&&yt.ownerDocument&&yt.ownerDocument.doctype&&yt.ownerDocument.doctype.name&&Qs(u3e,yt.ownerDocument.doctype.name)&&(Rn="<!DOCTYPE "+yt.ownerDocument.doctype.name+`>
  329. `+Rn),_e&&Wx([_,R,N],Kn=>{Rn=W2(Rn,Kn," ")}),w&&Re?w.createHTML(Rn):Rn},t.setConfig=function(){let cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};at(cn),De=!0},t.clearConfig=function(){gt=null,De=!1},t.isValidAttribute=function(cn,qe,yt){gt||at({});const Zt=ot(cn),bt=ot(qe);return Bt(Zt,bt,yt)},t.addHook=function(cn,qe){typeof qe=="function"&&H2(M[cn],qe)},t.removeHook=function(cn,qe){if(qe!==void 0){const yt=Kdt(M[cn],qe);return yt===-1?void 0:Ydt(M[cn],yt,1)[0]}return Dre(M[cn])},t.removeHooks=function(cn){M[cn]=[]},t.removeAllHooks=function(){M=Rre()},t}var fft=c3e();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 pft=function(t,n){return t===void 0?n:t},hft=/([A-Z])/g,gft=function(t){return t.replace(hft,"-$1").toLowerCase()},vft={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},mft=/[&><"']/g;function yft(e){return String(e).replace(mft,t=>vft[t])}var d3e=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},bft=function(t){var n=d3e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},wft=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Aft=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*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:pft,escape:yft,hyphenate:gft,getBaseElem:d3e,isCharacterBox:bft,protocolFromUrl:Aft},h8={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 Cft(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 XV{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 h8)if(h8.hasOwnProperty(n)){var r=h8[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Cft(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 Np{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[xft[this.id]]}sub(){return fd[Sft[this.id]]}fracNum(){return fd[Eft[this.id]]}fracDen(){return fd[kft[this.id]]}cramp(){return fd[Tft[this.id]]}text(){return fd[_ft[this.id]]}isTight(){return this.size>=2}}var JV=0,QE=1,sy=2,Ff=3,vA=4,Bu=5,Wy=6,il=7,fd=[new Np(JV,0,!1),new Np(QE,0,!0),new Np(sy,1,!1),new Np(Ff,1,!0),new Np(vA,2,!1),new Np(Bu,2,!0),new Np(Wy,3,!1),new Np(il,3,!0)],xft=[vA,Bu,vA,Bu,Wy,il,Wy,il],Sft=[Bu,Bu,Bu,Bu,il,il,il,il],Eft=[sy,Ff,vA,Bu,Wy,il,Wy,il],kft=[Ff,Ff,Bu,Bu,il,il,il,il],Tft=[QE,QE,Ff,Ff,Bu,Bu,il,il],_ft=[JV,QE,sy,Ff,sy,Ff,sy,Ff],Gr={DISPLAY:fd[JV],TEXT:fd[sy],SCRIPT:fd[vA],SCRIPTSCRIPT:fd[Wy]},PF=[{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 Dft(e){for(var t=0;t<PF.length;t++)for(var n=PF[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 g8=[];PF.forEach(e=>e.blocks.forEach(t=>g8.push(...t)));function f3e(e){for(var t=0;t<g8.length;t+=2)if(e>=g8[t]&&e<=g8[t+1])return!0;return!1}var zm=80,Ift=function(t,n){return"M95,"+(622+t+n)+`
  330. c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
  331. c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
  332. 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
  333. s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
  334. c69,-144,104.5,-217.7,106.5,-221
  335. l`+t/2.075+" -"+t+`
  336. c5.3,-9.3,12,-14,20,-14
  337. H400000v`+(40+t)+`H845.2724
  338. s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
  339. c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
  340. M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Oft=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
  341. c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
  342. c340,-704.7,510.7,-1060.3,512,-1067
  343. l`+t/2.084+" -"+t+`
  344. c4.7,-7.3,11,-11,19,-11
  345. H40000v`+(40+t)+`H1012.3
  346. s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
  347. 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
  348. s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
  349. c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
  350. M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Mft=function(t,n){return"M983 "+(10+t+n)+`
  351. l`+t/3.13+" -"+t+`
  352. c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
  353. 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
  354. 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
  355. c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
  356. c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
  357. c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
  358. c53.7,-170.3,84.5,-266.8,92.5,-289.5z
  359. M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Pft=function(t,n){return"M424,"+(2398+t+n)+`
  360. c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
  361. 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
  362. s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
  363. s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
  364. l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
  365. v`+(40+t)+`H1014.6
  366. s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
  367. c-2,6,-10,9,-24,9
  368. c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
  369. h400000v`+(40+t)+"h-400000z"},Nft=function(t,n){return"M473,"+(2713+t+n)+`
  370. c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
  371. c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
  372. s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
  373. 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
  374. 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
  375. s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
  376. 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Rft=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Bft=function(t,n,r){var o=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
  377. 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
  378. h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
  379. c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
  380. 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Lft=function(t,n,r){n=1e3*n;var o="";switch(t){case"sqrtMain":o=Ift(n,zm);break;case"sqrtSize1":o=Oft(n,zm);break;case"sqrtSize2":o=Mft(n,zm);break;case"sqrtSize3":o=Pft(n,zm);break;case"sqrtSize4":o=Nft(n,zm);break;case"sqrtTall":o=Bft(n,zm,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""}},Bre={doubleleftarrow:`M262 157
  381. 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
  382. 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
  383. 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
  384. 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
  385. 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
  386. -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
  387. -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
  388. m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
  389. -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
  390. 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
  391. -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
  392. -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
  393. -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
  394. 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
  395. -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
  396. 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
  397. -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
  398. 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
  399. 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
  400. 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
  401. l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
  402. -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
  403. 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
  404. 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
  405. 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
  406. -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
  407. 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
  408. 435 0h399565z`,leftgroupunder:`M400000 262
  409. 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
  410. 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
  411. -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
  412. -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
  413. -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
  414. 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
  415. -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
  416. -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
  417. m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
  418. 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
  419. 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
  420. -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
  421. 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
  422. -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
  423. 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
  424. -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
  425. -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
  426. 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
  427. M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
  428. M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
  429. -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
  430. 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
  431. 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
  432. M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
  433. 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
  434. -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
  435. 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
  436. 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
  437. 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
  438. 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
  439. 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
  440. -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
  441. -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
  442. 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
  443. 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
  444. -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
  445. m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
  446. 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
  447. -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
  448. 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
  449. 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
  450. -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
  451. m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
  452. 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
  453. -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
  454. 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
  455. 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
  456. -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
  457. -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
  458. 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
  459. -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
  460. 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
  461. 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
  462. 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
  463. -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
  464. 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
  465. 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
  466. -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
  467. -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
  468. 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
  469. -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
  470. 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
  471. 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
  472. 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
  473. -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
  474. -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
  475. 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
  476. 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
  477. -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
  478. 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
  479. 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
  480. -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
  481. 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
  482. 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
  483. 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
  484. -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
  485. -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
  486. 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
  487. -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
  488. -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
  489. -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
  490. 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
  491. 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
  492. 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
  493. 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
  494. -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
  495. 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
  496. -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
  497. 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
  498. 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
  499. -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
  500. -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
  501. 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
  502. 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
  503. 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
  504. -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
  505. 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
  506. 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
  507. -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
  508. -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
  509. 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
  510. 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
  511. -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
  512. 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
  513. 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
  514. -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
  515. -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
  516. H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
  517. 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
  518. 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
  519. -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
  520. -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
  521. -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,
  522. -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,
  523. -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,
  524. -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,
  525. -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
  526. c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
  527. 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
  528. 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
  529. 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
  530. 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
  531. c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
  532. M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
  533. -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
  534. 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
  535. -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
  536. -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
  537. -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
  538. 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
  539. c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
  540. 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
  541. c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
  542. c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
  543. M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
  544. 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,
  545. -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
  546. 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
  547. 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
  548. 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,
  549. 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,
  550. -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
  551. 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
  552. 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,
  553. -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
  554. 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
  555. M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Uft=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
  556. 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
  557. 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
  558. c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
  559. 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
  560. c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
  561. c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
  562. M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
  563. c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
  564. 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
  565. MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
  566. MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
  567. M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
  568. 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
  569. 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,
  570. -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
  571. 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
  572. 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,
  573. -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
  574. l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
  575. -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,
  576. 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
  577. c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
  578. 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
  579. 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
  580. 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
  581. c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
  582. l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
  583. -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]}},qx={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]},Lre={Å:"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 zft(e,t){Ad[e]=t}function eq(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 Lre&&(r=Lre[e[0]].charCodeAt(0),o=Ad[t][r]),!o&&n==="text"&&f3e(r)&&(o=Ad[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var ZO={};function $ft(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!ZO[t]){var n=ZO[t]={cssEmPerMu:qx.quad[t]/18};for(var r in qx)qx.hasOwnProperty(r)&&(n[r]=qx[r][t])}return ZO[t]}var jft=[[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]],Fre=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ure=function(t,n){return n.size<2?t:jft[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=Fre[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:Ure(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:Fre[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ure(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=$ft(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Af.BASESIZE=6;var NF={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},Hft={ex:!0,em:!0,mu:!0},p3e=function(t){return typeof t!="string"&&(t=t.unit),t in NF||t in Hft||t==="ex"},la=function(t,n){var r;if(t.unit in NF)r=NF[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(" ")},h3e=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)}},g3e=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},Wft=/[\s"'>/=\x00-\x1f]/,v3e=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(Wft.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 ZC{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,h3e.call(this,t,r,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return g3e.call(this,"span")}toMarkup(){return v3e.call(this,"span")}}class tq{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,h3e.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 g3e.call(this,"a")}toMarkup(){return v3e.call(this,"a")}}class Vft{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 qft={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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=Dft(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=qft[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 rp{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",Bre[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Jo.escape(this.alternate)+'"/>':'<path d="'+Jo.escape(Bre[this.pathName])+'"/>'}}class RF{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 zre(e){if(e instanceof Zu)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Gft(e){if(e instanceof ZC)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Kft={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Yft={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Li={math:{},text:{}};function ve(e,t,n,r,o,i){Li[e][o]={font:t,group:n,replace:r},i&&r&&(Li[e][r]=Li[e][o])}var Te="math",Un="text",Xe="main",kt="ams",ta="accent-token",yr="bin",gl="close",Wb="inner",qr="mathord",Va="op-token",bu="open",YD="punct",Dt="rel",yp="spacing",$t="textord";ve(Te,Xe,Dt,"≡","\\equiv",!0);ve(Te,Xe,Dt,"≺","\\prec",!0);ve(Te,Xe,Dt,"≻","\\succ",!0);ve(Te,Xe,Dt,"∼","\\sim",!0);ve(Te,Xe,Dt,"⊥","\\perp");ve(Te,Xe,Dt,"⪯","\\preceq",!0);ve(Te,Xe,Dt,"⪰","\\succeq",!0);ve(Te,Xe,Dt,"≃","\\simeq",!0);ve(Te,Xe,Dt,"∣","\\mid",!0);ve(Te,Xe,Dt,"≪","\\ll",!0);ve(Te,Xe,Dt,"≫","\\gg",!0);ve(Te,Xe,Dt,"≍","\\asymp",!0);ve(Te,Xe,Dt,"∥","\\parallel");ve(Te,Xe,Dt,"⋈","\\bowtie",!0);ve(Te,Xe,Dt,"⌣","\\smile",!0);ve(Te,Xe,Dt,"⊑","\\sqsubseteq",!0);ve(Te,Xe,Dt,"⊒","\\sqsupseteq",!0);ve(Te,Xe,Dt,"≐","\\doteq",!0);ve(Te,Xe,Dt,"⌢","\\frown",!0);ve(Te,Xe,Dt,"∋","\\ni",!0);ve(Te,Xe,Dt,"∝","\\propto",!0);ve(Te,Xe,Dt,"⊢","\\vdash",!0);ve(Te,Xe,Dt,"⊣","\\dashv",!0);ve(Te,Xe,Dt,"∋","\\owns");ve(Te,Xe,YD,".","\\ldotp");ve(Te,Xe,YD,"⋅","\\cdotp");ve(Te,Xe,$t,"#","\\#");ve(Un,Xe,$t,"#","\\#");ve(Te,Xe,$t,"&","\\&");ve(Un,Xe,$t,"&","\\&");ve(Te,Xe,$t,"ℵ","\\aleph",!0);ve(Te,Xe,$t,"∀","\\forall",!0);ve(Te,Xe,$t,"ℏ","\\hbar",!0);ve(Te,Xe,$t,"∃","\\exists",!0);ve(Te,Xe,$t,"∇","\\nabla",!0);ve(Te,Xe,$t,"♭","\\flat",!0);ve(Te,Xe,$t,"ℓ","\\ell",!0);ve(Te,Xe,$t,"♮","\\natural",!0);ve(Te,Xe,$t,"♣","\\clubsuit",!0);ve(Te,Xe,$t,"℘","\\wp",!0);ve(Te,Xe,$t,"♯","\\sharp",!0);ve(Te,Xe,$t,"♢","\\diamondsuit",!0);ve(Te,Xe,$t,"ℜ","\\Re",!0);ve(Te,Xe,$t,"♡","\\heartsuit",!0);ve(Te,Xe,$t,"ℑ","\\Im",!0);ve(Te,Xe,$t,"♠","\\spadesuit",!0);ve(Te,Xe,$t,"§","\\S",!0);ve(Un,Xe,$t,"§","\\S");ve(Te,Xe,$t,"¶","\\P",!0);ve(Un,Xe,$t,"¶","\\P");ve(Te,Xe,$t,"†","\\dag");ve(Un,Xe,$t,"†","\\dag");ve(Un,Xe,$t,"†","\\textdagger");ve(Te,Xe,$t,"‡","\\ddag");ve(Un,Xe,$t,"‡","\\ddag");ve(Un,Xe,$t,"‡","\\textdaggerdbl");ve(Te,Xe,gl,"⎱","\\rmoustache",!0);ve(Te,Xe,bu,"⎰","\\lmoustache",!0);ve(Te,Xe,gl,"⟯","\\rgroup",!0);ve(Te,Xe,bu,"⟮","\\lgroup",!0);ve(Te,Xe,yr,"∓","\\mp",!0);ve(Te,Xe,yr,"⊖","\\ominus",!0);ve(Te,Xe,yr,"⊎","\\uplus",!0);ve(Te,Xe,yr,"⊓","\\sqcap",!0);ve(Te,Xe,yr,"∗","\\ast");ve(Te,Xe,yr,"⊔","\\sqcup",!0);ve(Te,Xe,yr,"◯","\\bigcirc",!0);ve(Te,Xe,yr,"∙","\\bullet",!0);ve(Te,Xe,yr,"‡","\\ddagger");ve(Te,Xe,yr,"≀","\\wr",!0);ve(Te,Xe,yr,"⨿","\\amalg");ve(Te,Xe,yr,"&","\\And");ve(Te,Xe,Dt,"⟵","\\longleftarrow",!0);ve(Te,Xe,Dt,"⇐","\\Leftarrow",!0);ve(Te,Xe,Dt,"⟸","\\Longleftarrow",!0);ve(Te,Xe,Dt,"⟶","\\longrightarrow",!0);ve(Te,Xe,Dt,"⇒","\\Rightarrow",!0);ve(Te,Xe,Dt,"⟹","\\Longrightarrow",!0);ve(Te,Xe,Dt,"↔","\\leftrightarrow",!0);ve(Te,Xe,Dt,"⟷","\\longleftrightarrow",!0);ve(Te,Xe,Dt,"⇔","\\Leftrightarrow",!0);ve(Te,Xe,Dt,"⟺","\\Longleftrightarrow",!0);ve(Te,Xe,Dt,"↦","\\mapsto",!0);ve(Te,Xe,Dt,"⟼","\\longmapsto",!0);ve(Te,Xe,Dt,"↗","\\nearrow",!0);ve(Te,Xe,Dt,"↩","\\hookleftarrow",!0);ve(Te,Xe,Dt,"↪","\\hookrightarrow",!0);ve(Te,Xe,Dt,"↘","\\searrow",!0);ve(Te,Xe,Dt,"↼","\\leftharpoonup",!0);ve(Te,Xe,Dt,"⇀","\\rightharpoonup",!0);ve(Te,Xe,Dt,"↙","\\swarrow",!0);ve(Te,Xe,Dt,"↽","\\leftharpoondown",!0);ve(Te,Xe,Dt,"⇁","\\rightharpoondown",!0);ve(Te,Xe,Dt,"↖","\\nwarrow",!0);ve(Te,Xe,Dt,"⇌","\\rightleftharpoons",!0);ve(Te,kt,Dt,"≮","\\nless",!0);ve(Te,kt,Dt,"","\\@nleqslant");ve(Te,kt,Dt,"","\\@nleqq");ve(Te,kt,Dt,"⪇","\\lneq",!0);ve(Te,kt,Dt,"≨","\\lneqq",!0);ve(Te,kt,Dt,"","\\@lvertneqq");ve(Te,kt,Dt,"⋦","\\lnsim",!0);ve(Te,kt,Dt,"⪉","\\lnapprox",!0);ve(Te,kt,Dt,"⊀","\\nprec",!0);ve(Te,kt,Dt,"⋠","\\npreceq",!0);ve(Te,kt,Dt,"⋨","\\precnsim",!0);ve(Te,kt,Dt,"⪹","\\precnapprox",!0);ve(Te,kt,Dt,"≁","\\nsim",!0);ve(Te,kt,Dt,"","\\@nshortmid");ve(Te,kt,Dt,"∤","\\nmid",!0);ve(Te,kt,Dt,"⊬","\\nvdash",!0);ve(Te,kt,Dt,"⊭","\\nvDash",!0);ve(Te,kt,Dt,"⋪","\\ntriangleleft");ve(Te,kt,Dt,"⋬","\\ntrianglelefteq",!0);ve(Te,kt,Dt,"⊊","\\subsetneq",!0);ve(Te,kt,Dt,"","\\@varsubsetneq");ve(Te,kt,Dt,"⫋","\\subsetneqq",!0);ve(Te,kt,Dt,"","\\@varsubsetneqq");ve(Te,kt,Dt,"≯","\\ngtr",!0);ve(Te,kt,Dt,"","\\@ngeqslant");ve(Te,kt,Dt,"","\\@ngeqq");ve(Te,kt,Dt,"⪈","\\gneq",!0);ve(Te,kt,Dt,"≩","\\gneqq",!0);ve(Te,kt,Dt,"","\\@gvertneqq");ve(Te,kt,Dt,"⋧","\\gnsim",!0);ve(Te,kt,Dt,"⪊","\\gnapprox",!0);ve(Te,kt,Dt,"⊁","\\nsucc",!0);ve(Te,kt,Dt,"⋡","\\nsucceq",!0);ve(Te,kt,Dt,"⋩","\\succnsim",!0);ve(Te,kt,Dt,"⪺","\\succnapprox",!0);ve(Te,kt,Dt,"≆","\\ncong",!0);ve(Te,kt,Dt,"","\\@nshortparallel");ve(Te,kt,Dt,"∦","\\nparallel",!0);ve(Te,kt,Dt,"⊯","\\nVDash",!0);ve(Te,kt,Dt,"⋫","\\ntriangleright");ve(Te,kt,Dt,"⋭","\\ntrianglerighteq",!0);ve(Te,kt,Dt,"","\\@nsupseteqq");ve(Te,kt,Dt,"⊋","\\supsetneq",!0);ve(Te,kt,Dt,"","\\@varsupsetneq");ve(Te,kt,Dt,"⫌","\\supsetneqq",!0);ve(Te,kt,Dt,"","\\@varsupsetneqq");ve(Te,kt,Dt,"⊮","\\nVdash",!0);ve(Te,kt,Dt,"⪵","\\precneqq",!0);ve(Te,kt,Dt,"⪶","\\succneqq",!0);ve(Te,kt,Dt,"","\\@nsubseteqq");ve(Te,kt,yr,"⊴","\\unlhd");ve(Te,kt,yr,"⊵","\\unrhd");ve(Te,kt,Dt,"↚","\\nleftarrow",!0);ve(Te,kt,Dt,"↛","\\nrightarrow",!0);ve(Te,kt,Dt,"⇍","\\nLeftarrow",!0);ve(Te,kt,Dt,"⇏","\\nRightarrow",!0);ve(Te,kt,Dt,"↮","\\nleftrightarrow",!0);ve(Te,kt,Dt,"⇎","\\nLeftrightarrow",!0);ve(Te,kt,Dt,"△","\\vartriangle");ve(Te,kt,$t,"ℏ","\\hslash");ve(Te,kt,$t,"▽","\\triangledown");ve(Te,kt,$t,"◊","\\lozenge");ve(Te,kt,$t,"Ⓢ","\\circledS");ve(Te,kt,$t,"®","\\circledR");ve(Un,kt,$t,"®","\\circledR");ve(Te,kt,$t,"∡","\\measuredangle",!0);ve(Te,kt,$t,"∄","\\nexists");ve(Te,kt,$t,"℧","\\mho");ve(Te,kt,$t,"Ⅎ","\\Finv",!0);ve(Te,kt,$t,"⅁","\\Game",!0);ve(Te,kt,$t,"‵","\\backprime");ve(Te,kt,$t,"▲","\\blacktriangle");ve(Te,kt,$t,"▼","\\blacktriangledown");ve(Te,kt,$t,"■","\\blacksquare");ve(Te,kt,$t,"⧫","\\blacklozenge");ve(Te,kt,$t,"★","\\bigstar");ve(Te,kt,$t,"∢","\\sphericalangle",!0);ve(Te,kt,$t,"∁","\\complement",!0);ve(Te,kt,$t,"ð","\\eth",!0);ve(Un,Xe,$t,"ð","ð");ve(Te,kt,$t,"╱","\\diagup");ve(Te,kt,$t,"╲","\\diagdown");ve(Te,kt,$t,"□","\\square");ve(Te,kt,$t,"□","\\Box");ve(Te,kt,$t,"◊","\\Diamond");ve(Te,kt,$t,"¥","\\yen",!0);ve(Un,kt,$t,"¥","\\yen",!0);ve(Te,kt,$t,"✓","\\checkmark",!0);ve(Un,kt,$t,"✓","\\checkmark");ve(Te,kt,$t,"ℶ","\\beth",!0);ve(Te,kt,$t,"ℸ","\\daleth",!0);ve(Te,kt,$t,"ℷ","\\gimel",!0);ve(Te,kt,$t,"ϝ","\\digamma",!0);ve(Te,kt,$t,"ϰ","\\varkappa");ve(Te,kt,bu,"┌","\\@ulcorner",!0);ve(Te,kt,gl,"┐","\\@urcorner",!0);ve(Te,kt,bu,"└","\\@llcorner",!0);ve(Te,kt,gl,"┘","\\@lrcorner",!0);ve(Te,kt,Dt,"≦","\\leqq",!0);ve(Te,kt,Dt,"⩽","\\leqslant",!0);ve(Te,kt,Dt,"⪕","\\eqslantless",!0);ve(Te,kt,Dt,"≲","\\lesssim",!0);ve(Te,kt,Dt,"⪅","\\lessapprox",!0);ve(Te,kt,Dt,"≊","\\approxeq",!0);ve(Te,kt,yr,"⋖","\\lessdot");ve(Te,kt,Dt,"⋘","\\lll",!0);ve(Te,kt,Dt,"≶","\\lessgtr",!0);ve(Te,kt,Dt,"⋚","\\lesseqgtr",!0);ve(Te,kt,Dt,"⪋","\\lesseqqgtr",!0);ve(Te,kt,Dt,"≑","\\doteqdot");ve(Te,kt,Dt,"≓","\\risingdotseq",!0);ve(Te,kt,Dt,"≒","\\fallingdotseq",!0);ve(Te,kt,Dt,"∽","\\backsim",!0);ve(Te,kt,Dt,"⋍","\\backsimeq",!0);ve(Te,kt,Dt,"⫅","\\subseteqq",!0);ve(Te,kt,Dt,"⋐","\\Subset",!0);ve(Te,kt,Dt,"⊏","\\sqsubset",!0);ve(Te,kt,Dt,"≼","\\preccurlyeq",!0);ve(Te,kt,Dt,"⋞","\\curlyeqprec",!0);ve(Te,kt,Dt,"≾","\\precsim",!0);ve(Te,kt,Dt,"⪷","\\precapprox",!0);ve(Te,kt,Dt,"⊲","\\vartriangleleft");ve(Te,kt,Dt,"⊴","\\trianglelefteq");ve(Te,kt,Dt,"⊨","\\vDash",!0);ve(Te,kt,Dt,"⊪","\\Vvdash",!0);ve(Te,kt,Dt,"⌣","\\smallsmile");ve(Te,kt,Dt,"⌢","\\smallfrown");ve(Te,kt,Dt,"≏","\\bumpeq",!0);ve(Te,kt,Dt,"≎","\\Bumpeq",!0);ve(Te,kt,Dt,"≧","\\geqq",!0);ve(Te,kt,Dt,"⩾","\\geqslant",!0);ve(Te,kt,Dt,"⪖","\\eqslantgtr",!0);ve(Te,kt,Dt,"≳","\\gtrsim",!0);ve(Te,kt,Dt,"⪆","\\gtrapprox",!0);ve(Te,kt,yr,"⋗","\\gtrdot");ve(Te,kt,Dt,"⋙","\\ggg",!0);ve(Te,kt,Dt,"≷","\\gtrless",!0);ve(Te,kt,Dt,"⋛","\\gtreqless",!0);ve(Te,kt,Dt,"⪌","\\gtreqqless",!0);ve(Te,kt,Dt,"≖","\\eqcirc",!0);ve(Te,kt,Dt,"≗","\\circeq",!0);ve(Te,kt,Dt,"≜","\\triangleq",!0);ve(Te,kt,Dt,"∼","\\thicksim");ve(Te,kt,Dt,"≈","\\thickapprox");ve(Te,kt,Dt,"⫆","\\supseteqq",!0);ve(Te,kt,Dt,"⋑","\\Supset",!0);ve(Te,kt,Dt,"⊐","\\sqsupset",!0);ve(Te,kt,Dt,"≽","\\succcurlyeq",!0);ve(Te,kt,Dt,"⋟","\\curlyeqsucc",!0);ve(Te,kt,Dt,"≿","\\succsim",!0);ve(Te,kt,Dt,"⪸","\\succapprox",!0);ve(Te,kt,Dt,"⊳","\\vartriangleright");ve(Te,kt,Dt,"⊵","\\trianglerighteq");ve(Te,kt,Dt,"⊩","\\Vdash",!0);ve(Te,kt,Dt,"∣","\\shortmid");ve(Te,kt,Dt,"∥","\\shortparallel");ve(Te,kt,Dt,"≬","\\between",!0);ve(Te,kt,Dt,"⋔","\\pitchfork",!0);ve(Te,kt,Dt,"∝","\\varpropto");ve(Te,kt,Dt,"◀","\\blacktriangleleft");ve(Te,kt,Dt,"∴","\\therefore",!0);ve(Te,kt,Dt,"∍","\\backepsilon");ve(Te,kt,Dt,"▶","\\blacktriangleright");ve(Te,kt,Dt,"∵","\\because",!0);ve(Te,kt,Dt,"⋘","\\llless");ve(Te,kt,Dt,"⋙","\\gggtr");ve(Te,kt,yr,"⊲","\\lhd");ve(Te,kt,yr,"⊳","\\rhd");ve(Te,kt,Dt,"≂","\\eqsim",!0);ve(Te,Xe,Dt,"⋈","\\Join");ve(Te,kt,Dt,"≑","\\Doteq",!0);ve(Te,kt,yr,"∔","\\dotplus",!0);ve(Te,kt,yr,"∖","\\smallsetminus");ve(Te,kt,yr,"⋒","\\Cap",!0);ve(Te,kt,yr,"⋓","\\Cup",!0);ve(Te,kt,yr,"⩞","\\doublebarwedge",!0);ve(Te,kt,yr,"⊟","\\boxminus",!0);ve(Te,kt,yr,"⊞","\\boxplus",!0);ve(Te,kt,yr,"⋇","\\divideontimes",!0);ve(Te,kt,yr,"⋉","\\ltimes",!0);ve(Te,kt,yr,"⋊","\\rtimes",!0);ve(Te,kt,yr,"⋋","\\leftthreetimes",!0);ve(Te,kt,yr,"⋌","\\rightthreetimes",!0);ve(Te,kt,yr,"⋏","\\curlywedge",!0);ve(Te,kt,yr,"⋎","\\curlyvee",!0);ve(Te,kt,yr,"⊝","\\circleddash",!0);ve(Te,kt,yr,"⊛","\\circledast",!0);ve(Te,kt,yr,"⋅","\\centerdot");ve(Te,kt,yr,"⊺","\\intercal",!0);ve(Te,kt,yr,"⋒","\\doublecap");ve(Te,kt,yr,"⋓","\\doublecup");ve(Te,kt,yr,"⊠","\\boxtimes",!0);ve(Te,kt,Dt,"⇢","\\dashrightarrow",!0);ve(Te,kt,Dt,"⇠","\\dashleftarrow",!0);ve(Te,kt,Dt,"⇇","\\leftleftarrows",!0);ve(Te,kt,Dt,"⇆","\\leftrightarrows",!0);ve(Te,kt,Dt,"⇚","\\Lleftarrow",!0);ve(Te,kt,Dt,"↞","\\twoheadleftarrow",!0);ve(Te,kt,Dt,"↢","\\leftarrowtail",!0);ve(Te,kt,Dt,"↫","\\looparrowleft",!0);ve(Te,kt,Dt,"⇋","\\leftrightharpoons",!0);ve(Te,kt,Dt,"↶","\\curvearrowleft",!0);ve(Te,kt,Dt,"↺","\\circlearrowleft",!0);ve(Te,kt,Dt,"↰","\\Lsh",!0);ve(Te,kt,Dt,"⇈","\\upuparrows",!0);ve(Te,kt,Dt,"↿","\\upharpoonleft",!0);ve(Te,kt,Dt,"⇃","\\downharpoonleft",!0);ve(Te,Xe,Dt,"⊶","\\origof",!0);ve(Te,Xe,Dt,"⊷","\\imageof",!0);ve(Te,kt,Dt,"⊸","\\multimap",!0);ve(Te,kt,Dt,"↭","\\leftrightsquigarrow",!0);ve(Te,kt,Dt,"⇉","\\rightrightarrows",!0);ve(Te,kt,Dt,"⇄","\\rightleftarrows",!0);ve(Te,kt,Dt,"↠","\\twoheadrightarrow",!0);ve(Te,kt,Dt,"↣","\\rightarrowtail",!0);ve(Te,kt,Dt,"↬","\\looparrowright",!0);ve(Te,kt,Dt,"↷","\\curvearrowright",!0);ve(Te,kt,Dt,"↻","\\circlearrowright",!0);ve(Te,kt,Dt,"↱","\\Rsh",!0);ve(Te,kt,Dt,"⇊","\\downdownarrows",!0);ve(Te,kt,Dt,"↾","\\upharpoonright",!0);ve(Te,kt,Dt,"⇂","\\downharpoonright",!0);ve(Te,kt,Dt,"⇝","\\rightsquigarrow",!0);ve(Te,kt,Dt,"⇝","\\leadsto");ve(Te,kt,Dt,"⇛","\\Rrightarrow",!0);ve(Te,kt,Dt,"↾","\\restriction");ve(Te,Xe,$t,"‘","`");ve(Te,Xe,$t,"$","\\$");ve(Un,Xe,$t,"$","\\$");ve(Un,Xe,$t,"$","\\textdollar");ve(Te,Xe,$t,"%","\\%");ve(Un,Xe,$t,"%","\\%");ve(Te,Xe,$t,"_","\\_");ve(Un,Xe,$t,"_","\\_");ve(Un,Xe,$t,"_","\\textunderscore");ve(Te,Xe,$t,"∠","\\angle",!0);ve(Te,Xe,$t,"∞","\\infty",!0);ve(Te,Xe,$t,"′","\\prime");ve(Te,Xe,$t,"△","\\triangle");ve(Te,Xe,$t,"Γ","\\Gamma",!0);ve(Te,Xe,$t,"Δ","\\Delta",!0);ve(Te,Xe,$t,"Θ","\\Theta",!0);ve(Te,Xe,$t,"Λ","\\Lambda",!0);ve(Te,Xe,$t,"Ξ","\\Xi",!0);ve(Te,Xe,$t,"Π","\\Pi",!0);ve(Te,Xe,$t,"Σ","\\Sigma",!0);ve(Te,Xe,$t,"Υ","\\Upsilon",!0);ve(Te,Xe,$t,"Φ","\\Phi",!0);ve(Te,Xe,$t,"Ψ","\\Psi",!0);ve(Te,Xe,$t,"Ω","\\Omega",!0);ve(Te,Xe,$t,"A","Α");ve(Te,Xe,$t,"B","Β");ve(Te,Xe,$t,"E","Ε");ve(Te,Xe,$t,"Z","Ζ");ve(Te,Xe,$t,"H","Η");ve(Te,Xe,$t,"I","Ι");ve(Te,Xe,$t,"K","Κ");ve(Te,Xe,$t,"M","Μ");ve(Te,Xe,$t,"N","Ν");ve(Te,Xe,$t,"O","Ο");ve(Te,Xe,$t,"P","Ρ");ve(Te,Xe,$t,"T","Τ");ve(Te,Xe,$t,"X","Χ");ve(Te,Xe,$t,"¬","\\neg",!0);ve(Te,Xe,$t,"¬","\\lnot");ve(Te,Xe,$t,"⊤","\\top");ve(Te,Xe,$t,"⊥","\\bot");ve(Te,Xe,$t,"∅","\\emptyset");ve(Te,kt,$t,"∅","\\varnothing");ve(Te,Xe,qr,"α","\\alpha",!0);ve(Te,Xe,qr,"β","\\beta",!0);ve(Te,Xe,qr,"γ","\\gamma",!0);ve(Te,Xe,qr,"δ","\\delta",!0);ve(Te,Xe,qr,"ϵ","\\epsilon",!0);ve(Te,Xe,qr,"ζ","\\zeta",!0);ve(Te,Xe,qr,"η","\\eta",!0);ve(Te,Xe,qr,"θ","\\theta",!0);ve(Te,Xe,qr,"ι","\\iota",!0);ve(Te,Xe,qr,"κ","\\kappa",!0);ve(Te,Xe,qr,"λ","\\lambda",!0);ve(Te,Xe,qr,"μ","\\mu",!0);ve(Te,Xe,qr,"ν","\\nu",!0);ve(Te,Xe,qr,"ξ","\\xi",!0);ve(Te,Xe,qr,"ο","\\omicron",!0);ve(Te,Xe,qr,"π","\\pi",!0);ve(Te,Xe,qr,"ρ","\\rho",!0);ve(Te,Xe,qr,"σ","\\sigma",!0);ve(Te,Xe,qr,"τ","\\tau",!0);ve(Te,Xe,qr,"υ","\\upsilon",!0);ve(Te,Xe,qr,"ϕ","\\phi",!0);ve(Te,Xe,qr,"χ","\\chi",!0);ve(Te,Xe,qr,"ψ","\\psi",!0);ve(Te,Xe,qr,"ω","\\omega",!0);ve(Te,Xe,qr,"ε","\\varepsilon",!0);ve(Te,Xe,qr,"ϑ","\\vartheta",!0);ve(Te,Xe,qr,"ϖ","\\varpi",!0);ve(Te,Xe,qr,"ϱ","\\varrho",!0);ve(Te,Xe,qr,"ς","\\varsigma",!0);ve(Te,Xe,qr,"φ","\\varphi",!0);ve(Te,Xe,yr,"∗","*",!0);ve(Te,Xe,yr,"+","+");ve(Te,Xe,yr,"−","-",!0);ve(Te,Xe,yr,"⋅","\\cdot",!0);ve(Te,Xe,yr,"∘","\\circ",!0);ve(Te,Xe,yr,"÷","\\div",!0);ve(Te,Xe,yr,"±","\\pm",!0);ve(Te,Xe,yr,"×","\\times",!0);ve(Te,Xe,yr,"∩","\\cap",!0);ve(Te,Xe,yr,"∪","\\cup",!0);ve(Te,Xe,yr,"∖","\\setminus",!0);ve(Te,Xe,yr,"∧","\\land");ve(Te,Xe,yr,"∨","\\lor");ve(Te,Xe,yr,"∧","\\wedge",!0);ve(Te,Xe,yr,"∨","\\vee",!0);ve(Te,Xe,$t,"√","\\surd");ve(Te,Xe,bu,"⟨","\\langle",!0);ve(Te,Xe,bu,"∣","\\lvert");ve(Te,Xe,bu,"∥","\\lVert");ve(Te,Xe,gl,"?","?");ve(Te,Xe,gl,"!","!");ve(Te,Xe,gl,"⟩","\\rangle",!0);ve(Te,Xe,gl,"∣","\\rvert");ve(Te,Xe,gl,"∥","\\rVert");ve(Te,Xe,Dt,"=","=");ve(Te,Xe,Dt,":",":");ve(Te,Xe,Dt,"≈","\\approx",!0);ve(Te,Xe,Dt,"≅","\\cong",!0);ve(Te,Xe,Dt,"≥","\\ge");ve(Te,Xe,Dt,"≥","\\geq",!0);ve(Te,Xe,Dt,"←","\\gets");ve(Te,Xe,Dt,">","\\gt",!0);ve(Te,Xe,Dt,"∈","\\in",!0);ve(Te,Xe,Dt,"","\\@not");ve(Te,Xe,Dt,"⊂","\\subset",!0);ve(Te,Xe,Dt,"⊃","\\supset",!0);ve(Te,Xe,Dt,"⊆","\\subseteq",!0);ve(Te,Xe,Dt,"⊇","\\supseteq",!0);ve(Te,kt,Dt,"⊈","\\nsubseteq",!0);ve(Te,kt,Dt,"⊉","\\nsupseteq",!0);ve(Te,Xe,Dt,"⊨","\\models");ve(Te,Xe,Dt,"←","\\leftarrow",!0);ve(Te,Xe,Dt,"≤","\\le");ve(Te,Xe,Dt,"≤","\\leq",!0);ve(Te,Xe,Dt,"<","\\lt",!0);ve(Te,Xe,Dt,"→","\\rightarrow",!0);ve(Te,Xe,Dt,"→","\\to");ve(Te,kt,Dt,"≱","\\ngeq",!0);ve(Te,kt,Dt,"≰","\\nleq",!0);ve(Te,Xe,yp," ","\\ ");ve(Te,Xe,yp," ","\\space");ve(Te,Xe,yp," ","\\nobreakspace");ve(Un,Xe,yp," ","\\ ");ve(Un,Xe,yp," "," ");ve(Un,Xe,yp," ","\\space");ve(Un,Xe,yp," ","\\nobreakspace");ve(Te,Xe,yp,null,"\\nobreak");ve(Te,Xe,yp,null,"\\allowbreak");ve(Te,Xe,YD,",",",");ve(Te,Xe,YD,";",";");ve(Te,kt,yr,"⊼","\\barwedge",!0);ve(Te,kt,yr,"⊻","\\veebar",!0);ve(Te,Xe,yr,"⊙","\\odot",!0);ve(Te,Xe,yr,"⊕","\\oplus",!0);ve(Te,Xe,yr,"⊗","\\otimes",!0);ve(Te,Xe,$t,"∂","\\partial",!0);ve(Te,Xe,yr,"⊘","\\oslash",!0);ve(Te,kt,yr,"⊚","\\circledcirc",!0);ve(Te,kt,yr,"⊡","\\boxdot",!0);ve(Te,Xe,yr,"△","\\bigtriangleup");ve(Te,Xe,yr,"▽","\\bigtriangledown");ve(Te,Xe,yr,"†","\\dagger");ve(Te,Xe,yr,"⋄","\\diamond");ve(Te,Xe,yr,"⋆","\\star");ve(Te,Xe,yr,"◃","\\triangleleft");ve(Te,Xe,yr,"▹","\\triangleright");ve(Te,Xe,bu,"{","\\{");ve(Un,Xe,$t,"{","\\{");ve(Un,Xe,$t,"{","\\textbraceleft");ve(Te,Xe,gl,"}","\\}");ve(Un,Xe,$t,"}","\\}");ve(Un,Xe,$t,"}","\\textbraceright");ve(Te,Xe,bu,"{","\\lbrace");ve(Te,Xe,gl,"}","\\rbrace");ve(Te,Xe,bu,"[","\\lbrack",!0);ve(Un,Xe,$t,"[","\\lbrack",!0);ve(Te,Xe,gl,"]","\\rbrack",!0);ve(Un,Xe,$t,"]","\\rbrack",!0);ve(Te,Xe,bu,"(","\\lparen",!0);ve(Te,Xe,gl,")","\\rparen",!0);ve(Un,Xe,$t,"<","\\textless",!0);ve(Un,Xe,$t,">","\\textgreater",!0);ve(Te,Xe,bu,"⌊","\\lfloor",!0);ve(Te,Xe,gl,"⌋","\\rfloor",!0);ve(Te,Xe,bu,"⌈","\\lceil",!0);ve(Te,Xe,gl,"⌉","\\rceil",!0);ve(Te,Xe,$t,"\\","\\backslash");ve(Te,Xe,$t,"∣","|");ve(Te,Xe,$t,"∣","\\vert");ve(Un,Xe,$t,"|","\\textbar",!0);ve(Te,Xe,$t,"∥","\\|");ve(Te,Xe,$t,"∥","\\Vert");ve(Un,Xe,$t,"∥","\\textbardbl");ve(Un,Xe,$t,"~","\\textasciitilde");ve(Un,Xe,$t,"\\","\\textbackslash");ve(Un,Xe,$t,"^","\\textasciicircum");ve(Te,Xe,Dt,"↑","\\uparrow",!0);ve(Te,Xe,Dt,"⇑","\\Uparrow",!0);ve(Te,Xe,Dt,"↓","\\downarrow",!0);ve(Te,Xe,Dt,"⇓","\\Downarrow",!0);ve(Te,Xe,Dt,"↕","\\updownarrow",!0);ve(Te,Xe,Dt,"⇕","\\Updownarrow",!0);ve(Te,Xe,Va,"∐","\\coprod");ve(Te,Xe,Va,"⋁","\\bigvee");ve(Te,Xe,Va,"⋀","\\bigwedge");ve(Te,Xe,Va,"⨄","\\biguplus");ve(Te,Xe,Va,"⋂","\\bigcap");ve(Te,Xe,Va,"⋃","\\bigcup");ve(Te,Xe,Va,"∫","\\int");ve(Te,Xe,Va,"∫","\\intop");ve(Te,Xe,Va,"∬","\\iint");ve(Te,Xe,Va,"∭","\\iiint");ve(Te,Xe,Va,"∏","\\prod");ve(Te,Xe,Va,"∑","\\sum");ve(Te,Xe,Va,"⨂","\\bigotimes");ve(Te,Xe,Va,"⨁","\\bigoplus");ve(Te,Xe,Va,"⨀","\\bigodot");ve(Te,Xe,Va,"∮","\\oint");ve(Te,Xe,Va,"∯","\\oiint");ve(Te,Xe,Va,"∰","\\oiiint");ve(Te,Xe,Va,"⨆","\\bigsqcup");ve(Te,Xe,Va,"∫","\\smallint");ve(Un,Xe,Wb,"…","\\textellipsis");ve(Te,Xe,Wb,"…","\\mathellipsis");ve(Un,Xe,Wb,"…","\\ldots",!0);ve(Te,Xe,Wb,"…","\\ldots",!0);ve(Te,Xe,Wb,"⋯","\\@cdots",!0);ve(Te,Xe,Wb,"⋱","\\ddots",!0);ve(Te,Xe,$t,"⋮","\\varvdots");ve(Un,Xe,$t,"⋮","\\varvdots");ve(Te,Xe,ta,"ˊ","\\acute");ve(Te,Xe,ta,"ˋ","\\grave");ve(Te,Xe,ta,"¨","\\ddot");ve(Te,Xe,ta,"~","\\tilde");ve(Te,Xe,ta,"ˉ","\\bar");ve(Te,Xe,ta,"˘","\\breve");ve(Te,Xe,ta,"ˇ","\\check");ve(Te,Xe,ta,"^","\\hat");ve(Te,Xe,ta,"⃗","\\vec");ve(Te,Xe,ta,"˙","\\dot");ve(Te,Xe,ta,"˚","\\mathring");ve(Te,Xe,qr,"","\\@imath");ve(Te,Xe,qr,"","\\@jmath");ve(Te,Xe,$t,"ı","ı");ve(Te,Xe,$t,"ȷ","ȷ");ve(Un,Xe,$t,"ı","\\i",!0);ve(Un,Xe,$t,"ȷ","\\j",!0);ve(Un,Xe,$t,"ß","\\ss",!0);ve(Un,Xe,$t,"æ","\\ae",!0);ve(Un,Xe,$t,"œ","\\oe",!0);ve(Un,Xe,$t,"ø","\\o",!0);ve(Un,Xe,$t,"Æ","\\AE",!0);ve(Un,Xe,$t,"Œ","\\OE",!0);ve(Un,Xe,$t,"Ø","\\O",!0);ve(Un,Xe,ta,"ˊ","\\'");ve(Un,Xe,ta,"ˋ","\\`");ve(Un,Xe,ta,"ˆ","\\^");ve(Un,Xe,ta,"˜","\\~");ve(Un,Xe,ta,"ˉ","\\=");ve(Un,Xe,ta,"˘","\\u");ve(Un,Xe,ta,"˙","\\.");ve(Un,Xe,ta,"¸","\\c");ve(Un,Xe,ta,"˚","\\r");ve(Un,Xe,ta,"ˇ","\\v");ve(Un,Xe,ta,"¨",'\\"');ve(Un,Xe,ta,"˝","\\H");ve(Un,Xe,ta,"◯","\\textcircled");var m3e={"--":!0,"---":!0,"``":!0,"''":!0};ve(Un,Xe,$t,"–","--",!0);ve(Un,Xe,$t,"–","\\textendash");ve(Un,Xe,$t,"—","---",!0);ve(Un,Xe,$t,"—","\\textemdash");ve(Un,Xe,$t,"‘","`",!0);ve(Un,Xe,$t,"‘","\\textquoteleft");ve(Un,Xe,$t,"’","'",!0);ve(Un,Xe,$t,"’","\\textquoteright");ve(Un,Xe,$t,"“","``",!0);ve(Un,Xe,$t,"“","\\textquotedblleft");ve(Un,Xe,$t,"”","''",!0);ve(Un,Xe,$t,"”","\\textquotedblright");ve(Te,Xe,$t,"°","\\degree",!0);ve(Un,Xe,$t,"°","\\degree");ve(Un,Xe,$t,"°","\\textdegree",!0);ve(Te,Xe,$t,"£","\\pounds");ve(Te,Xe,$t,"£","\\mathsterling",!0);ve(Un,Xe,$t,"£","\\pounds");ve(Un,Xe,$t,"£","\\textsterling",!0);ve(Te,kt,$t,"✠","\\maltese");ve(Un,kt,$t,"✠","\\maltese");var $re='0123456789/@."';for(var XO=0;XO<$re.length;XO++){var jre=$re.charAt(XO);ve(Te,Xe,$t,jre,jre)}var Hre='0123456789!@*()-=+";:?/.,';for(var JO=0;JO<Hre.length;JO++){var Wre=Hre.charAt(JO);ve(Un,Xe,$t,Wre,Wre)}var ZE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var eM=0;eM<ZE.length;eM++){var Gx=ZE.charAt(eM);ve(Te,Xe,qr,Gx,Gx),ve(Un,Xe,$t,Gx,Gx)}ve(Te,kt,$t,"C","ℂ");ve(Un,kt,$t,"C","ℂ");ve(Te,kt,$t,"H","ℍ");ve(Un,kt,$t,"H","ℍ");ve(Te,kt,$t,"N","ℕ");ve(Un,kt,$t,"N","ℕ");ve(Te,kt,$t,"P","ℙ");ve(Un,kt,$t,"P","ℙ");ve(Te,kt,$t,"Q","ℚ");ve(Un,kt,$t,"Q","ℚ");ve(Te,kt,$t,"R","ℝ");ve(Un,kt,$t,"R","ℝ");ve(Te,kt,$t,"Z","ℤ");ve(Un,kt,$t,"Z","ℤ");ve(Te,Xe,qr,"h","ℎ");ve(Un,Xe,qr,"h","ℎ");var eo="";for(var Zs=0;Zs<ZE.length;Zs++){var ga=ZE.charAt(Zs);eo=String.fromCharCode(55349,56320+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56372+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56424+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56580+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56684+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56736+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56788+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56840+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56944+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),Zs<26&&(eo=String.fromCharCode(55349,56632+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo),eo=String.fromCharCode(55349,56476+Zs),ve(Te,Xe,qr,ga,eo),ve(Un,Xe,$t,ga,eo))}eo="𝕜";ve(Te,Xe,qr,"k",eo);ve(Un,Xe,$t,"k",eo);for(var Y0=0;Y0<10;Y0++){var Rp=Y0.toString();eo=String.fromCharCode(55349,57294+Y0),ve(Te,Xe,qr,Rp,eo),ve(Un,Xe,$t,Rp,eo),eo=String.fromCharCode(55349,57314+Y0),ve(Te,Xe,qr,Rp,eo),ve(Un,Xe,$t,Rp,eo),eo=String.fromCharCode(55349,57324+Y0),ve(Te,Xe,qr,Rp,eo),ve(Un,Xe,$t,Rp,eo),eo=String.fromCharCode(55349,57334+Y0),ve(Te,Xe,qr,Rp,eo),ve(Un,Xe,$t,Rp,eo)}var BF="ÐÞþ";for(var tM=0;tM<BF.length;tM++){var Kx=BF.charAt(tM);ve(Te,Xe,qr,Kx,Kx),ve(Un,Xe,$t,Kx,Kx)}var Yx=[["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"]],Vre=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Qft=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[Yx[s][2],Yx[s][a]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[Vre[l][2],Vre[l][a]]}else{if(i===120485||i===120486)return[Yx[0][2],Yx[0][a]];if(120486<i&&i<120782)return["",""];throw new Hn("Unsupported character: "+t)}},QD=function(t,n,r){return Li[r][t]&&Li[r][t].replace&&(t=Li[r][t].replace),{value:t,metrics:eq(t,n,r)}},pc=function(t,n,r,o,i){var a=QD(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},Zft=function(t,n,r,o){return o===void 0&&(o=[]),r.font==="boldsymbol"&&QD(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"]))},Xft=function(t,n,r,o,i){return i!=="textord"&&QD(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Jft=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]=Qft(i,o)),u.length>0)return pc(i,u,o,n,a.concat(d));if(l){var c,f;if(l==="boldsymbol"){var p=Xft(i,o,n,a,r);c=p.fontName,f=[p.fontClass]}else s?(c=w3e[l].fontName,f=[l]):(c=Qx(l,n.fontWeight,n.fontShape),f=[l,n.fontWeight,n.fontShape]);if(QD(i,c,o).metrics)return pc(i,c,o,n,a.concat(f));if(m3e.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 b3e(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=Qx("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=Qx("textrm",n.fontWeight,n.fontShape);return pc(i,m,o,n,a.concat(n.fontWeight,n.fontShape))}else{var b=Qx(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")},ept=(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},tpt=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Zu&&r instanceof Zu&&ept(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},nq=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 ZC(t,n,r,o);return nq(i),i},y3e=(e,t,n,r)=>new ZC(e,t,n,r),npt=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},rpt=function(t,n,r,o){var i=new tq(t,n,r,o);return nq(i),i},b3e=function(t){var n=new QC(t);return nq(n),n},opt=function(t,n){return t instanceof QC?wl([],[t],n):t},ipt=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}},apt=function(t,n){for(var{children:r,depth:o}=ipt(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 O=wl(["vlist-s"],[new Zu("​")]);A=[wl(["vlist-r"],[w,O]),wl(["vlist-r"],[k])]}else A=[wl(["vlist-r"],[w])];var I=wl(["vlist-t"],A);return A.length===2&&I.classes.push("vlist-t2"),I.height=f,I.depth=-c,I},spt=(e,t)=>{var n=wl(["mspace"],[],t),r=la(e,t);return n.style.marginRight=Xn(r),n},Qx=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},w3e={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"}},A3e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},lpt=function(t,n){var[r,o,i]=A3e[t],a=new f0(r),s=new rp([a],{width:Xn(o),height:Xn(i),style:"width:"+Xn(o),viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=y3e(["overlay"],[s],n);return l.height=i,l.style.height=Xn(i),l.style.width=Xn(o),l},nn={fontMap:w3e,makeSymbol:pc,mathsym:Zft,makeSpan:wl,makeSvgSpan:y3e,makeLineSpan:npt,makeAnchor:rpt,makeFragment:b3e,wrapFragment:opt,makeVList:apt,makeOrd:Jft,makeGlue:spt,staticSvg:lpt,svgData:A3e,tryCombineChars:tpt},aa={number:3,unit:"mu"},Q0={number:4,unit:"mu"},df={number:5,unit:"mu"},upt={mord:{mop:aa,mbin:Q0,mrel:df,minner:aa},mop:{mord:aa,mop:aa,mrel:df,minner:aa},mbin:{mord:Q0,mop:Q0,mopen:Q0,minner:Q0},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:aa,mbin:Q0,mrel:df,minner:aa},mpunct:{mord:aa,mop:aa,mrel:df,mopen:aa,mclose:aa,mpunct:aa,minner:aa},minner:{mord:aa,mop:aa,mbin:Q0,mrel:df,mopen:aa,mpunct:aa,minner:aa}},cpt={mord:{mop:aa},mop:{mord:aa,mop:aa},mbin:{},mrel:{},mopen:{},mclose:{mop:aa},mpunct:{},minner:{mop:aa}},C3e={},XE={},JE={};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)C3e[n[l]]=s;t&&(i&&(XE[t]=i),a&&(JE[t]=a))}function cm(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 ek=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ea=function(t){return t.type==="ordgroup"?t.body:[t]},op=nn.makeSpan,dpt=["leftmost","mbin","mopen","mrel","mop","mpunct"],fpt=["rightmost","mrel","mclose","mpunct"],ppt={display:Gr.DISPLAY,text:Gr.TEXT,script:Gr.SCRIPT,scriptscript:Gr.SCRIPTSCRIPT},hpt={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(nn.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(ppt[d.style]))}var c=op([o[0]||"leftmost"],[],n),f=op([o[1]||"rightmost"],[],n),p=r==="root";return qre(i,(v,h)=>{var g=h.classes[0],y=v.classes[0];g==="mbin"&&fpt.includes(y)?h.classes[0]="mord":y==="mbin"&&dpt.includes(g)&&(v.classes[0]="mord")},{node:c},f,p),qre(i,(v,h)=>{var g=LF(h),y=LF(v),m=g&&y?v.hasClass("mtight")?cpt[g][y]:upt[g][y]:null;if(m)return nn.makeGlue(m,u)},{node:c},f,p),i},qre=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=x3e(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=op(["leftmost"])),r.insertAfter=(c=>f=>{t.splice(c+1,0,f),a++})(a)}o&&t.pop()},x3e=function(t){return t instanceof QC||t instanceof tq||t instanceof ZC&&t.hasClass("enclosing")?t:null},gpt=function e(t,n){var r=x3e(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},LF=function(t,n){return t?(n&&(t=gpt(t,n)),hpt[t.classes[0]]||null):null},mA=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return op(n.concat(r))},Zo=function(t,n,r){if(!t)return op();if(XE[t.type]){var o=XE[t.type](t,n);if(r&&n.size!==r.size){o=op(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 Zx(e,t){var n=op(["base"],e,t),r=op(["strut"]);return r.style.height=Xn(n.height+n.depth),n.depth&&(r.style.verticalAlign=Xn(-n.depth)),n.children.unshift(r),n}function FF(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(Zx(a,t)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(Zx(a,t)),a=[]),i.push(r[s]));a.length>0&&i.push(Zx(a,t));var u;n?(u=Zx(ns(n,t,!0)),u.classes=["tag"],i.push(u)):o&&i.push(o);var d=op(["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 S3e(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 vpt{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 $n={MathNode:eu,TextNode:Cd,SpaceNode:vpt,newDocumentFragment:S3e},Xu=function(t,n,r){return Li[n][t]&&Li[n][t].replace&&t.charCodeAt(0)!==55349&&!(m3e.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 $n.TextNode(t)},rq=function(t){return t.length===1?t[0]:new $n.MathNode("mrow",t)},oq=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=nn.fontMap[r].fontName;return eq(i,a,o)?nn.fontMap[r].variant:null};function nM(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(nM(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&nM(a))l.children=[...a.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||nM(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 rq(ql(t,n,r))},Di=function(t,n){if(!t)return new $n.MathNode("mrow");if(JE[t.type]){var r=JE[t.type](t,n);return r}else throw new Hn("Got group of unknown type: '"+t.type+"'")};function Gre(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 $n.MathNode("mrow",i);var s=new $n.MathNode("annotation",[new $n.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new $n.MathNode("semantics",[a,s]),u=new $n.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 nn.makeSpan([d],[u])}var E3e=function(t){return new Af({style:t.displayMode?Gr.DISPLAY:Gr.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},k3e=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=nn.makeSpan(r,[t])}return t},mpt=function(t,n,r){var o=E3e(r),i;if(r.output==="mathml")return Gre(t,n,o,r.displayMode,!0);if(r.output==="html"){var a=FF(t,o);i=nn.makeSpan(["katex"],[a])}else{var s=Gre(t,n,o,r.displayMode,!1),l=FF(t,o);i=nn.makeSpan(["katex"],[s,l])}return k3e(i,r)},ypt=function(t,n,r){var o=E3e(r),i=FF(t,o),a=nn.makeSpan(["katex"],[i]);return k3e(a,r)},bpt={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":"="},wpt=function(t){var n=new $n.MathNode("mo",[new $n.TextNode(bpt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Apt={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]},Cpt=function(t){return t.type==="ordgroup"?t.body.length:1},xpt=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=t,d=Cpt(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 rp([h],{width:"100%",height:Xn(p),viewBox:"0 0 "+s+" "+c,preserveAspectRatio:"none"});return{span:nn.makeSvgSpan([],[g],n),minWidth:0,height:p}}else{var y=[],m=Apt[l],[b,w,A]=m,S=A/1e3,k=b.length,O,I;if(k===1){var P=m[3];O=["hide-tail"],I=[P]}else if(k===2)O=["halfarrow-left","halfarrow-right"],I=["xMinYMin","xMaxYMin"];else if(k===3)O=["brace-left","brace-center","brace-right"],I=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
  584. `+k+" children.");for(var M=0;M<k;M++){var _=new f0(b[M]),R=new rp([_],{width:"400em",height:Xn(S),viewBox:"0 0 "+s+" "+A,preserveAspectRatio:I[M]+" slice"}),N=nn.makeSvgSpan([O[M]],[R],n);if(k===1)return{span:N,minWidth:w,height:S};N.style.height=Xn(S),y.push(N)}return{span:nn.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},Spt=function(t,n,r,o,i){var a,s=t.height+t.depth+r+o;if(/fbox|color|angl/.test(n)){if(a=nn.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 RF({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new RF({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new rp(u,{width:"100%",height:Xn(s)});a=nn.makeSvgSpan([],[d],i)}return a.height=s,a.style.height=Xn(s),a},ip={encloseSpan:Spt,mathMLnode:wpt,svgSpan:xpt};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 iq(e){var t=ZD(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 ZD(e){return e&&(e.type==="atom"||Yft.hasOwnProperty(e.type))?e:null}var aq=(e,t)=>{var n,r,o;e&&e.type==="supsub"?(r=Eo(e.base,"accent"),n=r.base,e.base=n,o=Gft(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=zre(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=ip.svgSpan(r,t),f=nn.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=nn.staticSvg("vec",t),v=nn.svgData.vec[1]):(p=nn.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=zre(p),p.italic=0,v=p.width,d&&(c+=p.depth)),f=nn.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=nn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:f}]},t)}var y=nn.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},T3e=(e,t)=>{var n=e.isStretchy?ip.mathMLnode(e.label):new $n.MathNode("mo",[Xu(e.label,e.mode)]),r=new $n.MathNode("mover",[Di(e.base,t),n]);return r.setAttribute("accent","true"),r},Ept=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=ek(t[0]),r=!Ept.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:aq,mathmlBuilder:T3e});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:aq,mathmlBuilder:T3e});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=ip.svgSpan(e,t),o=e.label==="\\utilde"?.12:0,i=nn.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return nn.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=ip.mathMLnode(e.label),r=new $n.MathNode("munder",[Di(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Xx=e=>{var t=new $n.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=nn.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=nn.wrapFragment(Zo(e.below,r,t),t),a.classes.push(i+"-arrow-pad"));var s=ip.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=nn.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=nn.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"),nn.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=ip.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var o=Xx(Di(e.body,t));if(e.below){var i=Xx(Di(e.below,t));r=new $n.MathNode("munderover",[n,i,o])}else r=new $n.MathNode("mover",[n,o])}else if(e.below){var a=Xx(Di(e.below,t));r=new $n.MathNode("munder",[n,a])}else r=Xx(),r=new $n.MathNode("mover",[n,r]);return r}});var kpt=nn.makeSpan;function _3e(e,t){var n=ns(e.body,t,!0);return kpt([e.mclass],n,t)}function D3e(e,t){var n,r=ql(e.body,t);return e.mclass==="minner"?n=new $n.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new $n.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new $n.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:_3e,mathmlBuilder:D3e});var XD=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:XD(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=XD(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:_3e,mathmlBuilder:D3e});ur({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:XD(t[0]),body:Ea(t[0])}},htmlBuilder(e,t){var n=ns(e.body,t,!0),r=nn.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 $n.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"},Kre=()=>({type:"styling",body:[],mode:"math",style:"display"}),Yre=e=>e.type==="textord"&&e.text==="@",_pt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Dpt(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 Ipt(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=Kre(),l=0;l<a.length;l++)if(!Yre(a[l]))s.body.push(a[l]);else{r.push(s),l+=1;var u=iq(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(_pt(a[p],u)){f=!1,l=p;break}if(Yre(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=Dpt(u,d,e),h={type:"styling",body:[v],mode:"math",style:"display"};r.push(h),s=Kre()}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=nn.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 $n.MathNode("mrow",[Di(e.label,t)]);return n=new $n.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new $n.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=nn.wrapFragment(Zo(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new $n.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 I3e=(e,t)=>{var n=ns(e.body,t.withColor(e.color),!1);return nn.makeFragment(n)},O3e=(e,t)=>{var n=ql(e.body,t.withColor(e.color)),r=new $n.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:I3e,mathmlBuilder:O3e});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:I3e,mathmlBuilder:O3e});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=nn.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Xn(la(e.size,t)))),n},mathmlBuilder(e,t){var n=new $n.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Xn(la(e.size,t)))),n}});var UF={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},M3e=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Hn("Expected a control sequence",e);return t},Opt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},P3e=(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(UF[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=UF[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===UF[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=M3e(t.gullet.popToken());t.gullet.consumeSpaces();var o=Opt(t);return P3e(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=M3e(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return P3e(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var x4=function(t,n,r){var o=Li.math[t]&&Li.math[t].replace,i=eq(o||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},sq=function(t,n,r,o){var i=r.havingBaseStyle(n),a=nn.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},N3e=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},Mpt=function(t,n,r,o,i,a){var s=nn.makeSymbol(t,"Main-Regular",i,o),l=sq(s,n,o,a);return r&&N3e(l,o,n),l},Ppt=function(t,n,r,o){return nn.makeSymbol(t,"Size"+n+"-Regular",r,o)},R3e=function(t,n,r,o,i,a){var s=Ppt(t,n,i,o),l=sq(nn.makeSpan(["delimsizing","size"+n],[s],o),Gr.TEXT,o,a);return r&&N3e(l,o,Gr.TEXT),l},rM=function(t,n,r){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var i=nn.makeSpan(["delimsizinginner",o],[nn.makeSpan([],[nn.makeSymbol(t,n,r)])]);return{type:"elem",elem:i}},oM=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 rp([i],{width:Xn(o),height:Xn(n),style:"width:"+Xn(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=nn.makeSvgSpan([],[a],r);return s.height=n,s.style.height=Xn(n),s.style.width=Xn(o),{type:"elem",elem:s}},zF=.008,Jx={type:"kern",size:-1*zF},Npt=["|","\\lvert","\\rvert","\\vert"],Rpt=["\\|","\\lVert","\\rVert","\\Vert"],B3e=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"):Npt.includes(t)?(u="∣",c="vert",f=333):Rpt.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=x4(s,p,i),h=v.height+v.depth,g=x4(u,p,i),y=g.height+g.depth,m=x4(d,p,i),b=m.height+m.depth,w=0,A=1;if(l!==null){var S=x4(l,p,i);w=S.height+S.depth,A=2}var k=h+b+w,O=Math.max(0,Math.ceil((n-k)/(A*y))),I=k+O*A*y,P=o.fontMetrics().axisHeight;r&&(P*=o.sizeMultiplier);var M=I/2-P,_=[];if(c.length>0){var R=I-h-b,N=Math.round(I*1e3),V=Uft(c,Math.round(R*1e3)),L=new f0(c,V),j=(f/1e3).toFixed(3)+"em",H=(N/1e3).toFixed(3)+"em",G=new rp([L],{width:j,height:H,viewBox:"0 0 "+f+" "+N}),Z=nn.makeSvgSpan([],[G],o);Z.height=N/1e3,Z.style.width=j,Z.style.height=H,_.push({type:"elem",elem:Z})}else{if(_.push(rM(d,p,i)),_.push(Jx),l===null){var z=I-h-b+2*zF;_.push(oM(u,z,o))}else{var U=(I-h-b-w)/2+2*zF;_.push(oM(u,U,o)),_.push(Jx),_.push(rM(l,p,i)),_.push(Jx),_.push(oM(u,U,o))}_.push(Jx),_.push(rM(s,p,i))}var W=o.havingBaseStyle(Gr.TEXT),re=nn.makeVList({positionType:"bottom",positionData:M,children:_},W);return sq(nn.makeSpan(["delimsizing","mult"],[re],W),Gr.TEXT,o,a)},iM=80,aM=.08,sM=function(t,n,r,o,i){var a=Lft(t,o,r),s=new f0(t,a),l=new rp([s],{width:"400em",height:Xn(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return nn.makeSvgSpan(["hide-tail"],[l],i)},Bpt=function(t,n){var r=n.havingBaseSizing(),o=z3e("\\surd",t*r.sizeMultiplier,U3e,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+iM,t<1?i=1:t<1.4&&(i=.7),l=(1+a+aM)/i,u=(1+a)/i,s=sM("sqrtMain",l,d,a,n),s.style.minWidth="0.853em",c=.833/i):o.type==="large"?(d=(1e3+iM)*n3[o.size],u=(n3[o.size]+a)/i,l=(n3[o.size]+a+aM)/i,s=sM("sqrtSize"+o.size,l,d,a,n),s.style.minWidth="1.02em",c=1/i):(l=t+a+aM,u=t+a,d=Math.floor(1e3*t+a)+iM,s=sM("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}},L3e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Lpt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],F3e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],n3=[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"),L3e.includes(t)||F3e.includes(t))return R3e(t,n,!1,r,o,i);if(Lpt.includes(t))return B3e(t,n3[n],!1,r,o,i);throw new Hn("Illegal delimiter: '"+t+"'")},Upt=[{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}],zpt=[{type:"small",style:Gr.SCRIPTSCRIPT},{type:"small",style:Gr.SCRIPT},{type:"small",style:Gr.TEXT},{type:"stack"}],U3e=[{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"}],$pt=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.")},z3e=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=x4(t,$pt(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]},$3e=function(t,n,r,o,i,a){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;F3e.includes(t)?s=Upt:L3e.includes(t)?s=U3e:s=zpt;var l=z3e(t,n,s,o);return l.type==="small"?Mpt(t,l.style,r,o,i,a):l.type==="large"?R3e(t,l.size,r,o,i,a):B3e(t,n,r,o,i,a)},jpt=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 $3e(t,c,!0,o,i,a)},Uf={sqrtImage:Bpt,sizedDelim:Fpt,sizeToMaxHeight:n3,customSizedDelim:$3e,leftRightDelim:jpt},Qre={"\\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}},Hpt=["(","\\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 JD(e,t){var n=ZD(e);if(n&&Hpt.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=JD(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Qre[e.funcName].size,mclass:Qre[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?nn.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 $n.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 Zre(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:JD(t[0],e).text,color:n}}});ur({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=JD(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)=>{Zre(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=mA(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=mA(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),nn.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{Zre(e);var n=ql(e.body,t);if(e.left!=="."){var r=new $n.MathNode("mo",[Xu(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var o=new $n.MathNode("mo",[Xu(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return rq(n)}});ur({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=JD(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=mA(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 $n.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var lq=(e,t)=>{var n=nn.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=nn.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/o,a=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=la({number:.6,unit:"pt"},t),u=la({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=Rft(f),v=new rp([new f0("phase",p)],{width:"400em",height:Xn(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=nn.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=ip.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=nn.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=nn.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?nn.makeSpan(["mord","cancel-lap"],[m],t):nn.makeSpan(["mord"],[m],t)},uq=(e,t)=>{var n=0,r=new $n.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:lq,mathmlBuilder:uq});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:lq,mathmlBuilder:uq});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:lq,mathmlBuilder:uq});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 j3e={};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)j3e[n[l]]=s;i&&(XE[t]=i),a&&(JE[t]=a)}var H3e={};function st(e,t){H3e[e]=t}function Xre(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 e7=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Hn("{"+e.envName+"} can be used only in display mode.")};function cq(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(Xre(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(Xre(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 dq(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"?la({number:3,unit:"ex"},n):12*c,h=3*c,g=t.arraystretch*v,y=.7*g,m=.3*g,b=0;function w(ie){for(var ce=0;ce<ie.length;++ce)ce>0&&(b+=.25),u.push({pos:b,isDashed:ie[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 O=new Array(A.length);for(o=0;o<A.length;++o){var I=Zo(A[o],n);k<I.depth&&(k=I.depth),S<I.height&&(S=I.height),O[o]=I}var P=t.rowGaps[r],M=0;P&&(M=la(P,n),M>0&&(M+=m,k<M&&(k=M),M=0)),t.addJot&&(k+=h),O.height=S,O.depth=k,b+=S,O.pos=b,b+=k+M,l[r]=O,w(a[r+1])}var _=b/2+n.fontMetrics().axisHeight,R=t.cols||[],N=[],V,L,j=[];if(t.tags&&t.tags.some(ie=>ie))for(r=0;r<i;++r){var H=l[r],G=H.pos-_,Z=t.tags[r],z=void 0;Z===!0?z=nn.makeSpan(["eqn-num"],[],n):Z===!1?z=nn.makeSpan([],[],n):z=nn.makeSpan([],ns(Z,n,!0),n),z.depth=H.depth,z.height=H.height,j.push({type:"elem",elem:z,shift:G})}for(o=0,L=0;o<s||L<R.length;++o,++L){for(var U=R[L]||{},W=!0;U.type==="separator";){if(W||(V=nn.makeSpan(["arraycolsep"],[]),V.style.width=Xn(n.fontMetrics().doubleRuleSep),N.push(V)),U.separator==="|"||U.separator===":"){var re=U.separator==="|"?"solid":"dashed",J=nn.makeSpan(["vertical-separator"],[],n);J.style.height=Xn(b),J.style.borderRightWidth=Xn(d),J.style.borderRightStyle=re,J.style.margin="0 "+Xn(-d/2);var te=b-_;te&&(J.style.verticalAlign=Xn(-te)),N.push(J)}else throw new Hn("Invalid separator type: "+U.separator);L++,U=R[L]||{},W=!1}if(!(o>=s)){var X=void 0;(o>0||t.hskipBeforeAndAfter)&&(X=Jo.deflt(U.pregap,f),X!==0&&(V=nn.makeSpan(["arraycolsep"],[]),V.style.width=Xn(X),N.push(V)));var ue=[];for(r=0;r<i;++r){var me=l[r],Me=me[o];if(Me){var Ae=me.pos-_;Me.depth=me.depth,Me.height=me.height,ue.push({type:"elem",elem:Me,shift:Ae})}}ue=nn.makeVList({positionType:"individualShift",children:ue},n),ue=nn.makeSpan(["col-align-"+(U.align||"c")],[ue]),N.push(ue),(o<s-1||t.hskipBeforeAndAfter)&&(X=Jo.deflt(U.postgap,f),X!==0&&(V=nn.makeSpan(["arraycolsep"],[]),V.style.width=Xn(X),N.push(V)))}}if(l=nn.makeSpan(["mtable"],N),u.length>0){for(var ge=nn.makeLineSpan("hline",n,d),_e=nn.makeLineSpan("hdashline",n,d),Q=[{type:"elem",elem:l,shift:0}];u.length>0;){var be=u.pop(),De=be.pos-_;be.isDashed?Q.push({type:"elem",elem:_e,shift:De}):Q.push({type:"elem",elem:ge,shift:De})}l=nn.makeVList({positionType:"individualShift",children:Q},n)}if(j.length===0)return nn.makeSpan(["mord"],[l],n);var pe=nn.makeVList({positionType:"individualShift",children:j},n);return pe=nn.makeSpan(["tag"],[pe],n),nn.makeFragment([l,pe])},Wpt={c:"center ",l:"left ",r:"right "},ef=function(t,n){for(var r=[],o=new $n.MathNode("mtd",[],["mtr-glue"]),i=new $n.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 $n.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 $n.MathNode("mtr",l))}var d=new $n.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+=Wpt[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="",O=t.hLinesBeforeRow;f+=O[0].length>0?"left ":"",f+=O[O.length-1].length>0?"right ":"";for(var I=1;I<O.length-1;I++)k+=O[I].length===0?"none ":O[I][0]?"dashed ":"solid ";return/[sd]/.test(k)&&d.setAttribute("rowlines",k.trim()),f!==""&&(d=new $n.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(d=new $n.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},W3e=function(t,n){t.envName.indexOf("ed")===-1&&e7(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:cq(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=ZD(t[0]),r=n?[t[0]]:Eo(t[0],"ordgroup").body,o=r.map(function(a){var s=iq(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,dq(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,dq(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=ZD(t[0]),r=n?[t[0]]:Eo(t[0],"ordgroup").body,o=r.map(function(a){var s=iq(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,dq(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:W3e,htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&e7(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cq(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:W3e,htmlBuilder:Jd,mathmlBuilder:ef});Xd({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){e7(e);var t={autoTag:cq(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 e7(e),Ipt(e.parser)},htmlBuilder:Jd,mathmlBuilder:ef});st("\\nonumber","\\gdef\\@eqnsw{0}");st("\\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 Jre=j3e;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(!Jre.hasOwnProperty(i))throw new Hn("No such environment: "+i,o);var s=Jre[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 V3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Zo(e.body,r)},q3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Di(e.body,r)},eoe={"\\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=ek(t[0]),i=r;return i in eoe&&(i=eoe[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:V3e,mathmlBuilder:q3e});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:XD(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:V3e,mathmlBuilder:q3e});var G3e=(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},fq=(e,t)=>{var n=G3e(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=la(e.barSize,t),d=nn.makeLineSpan("frac-line",t,c)):d=nn.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=nn.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=nn.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=mA(t,["mopen"]):A=Uf.customSizedDelim(e.leftDelim,w,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?S=nn.makeSpan([]):e.rightDelim==null?S=mA(t,["mclose"]):S=Uf.customSizedDelim(e.rightDelim,w,!0,t.havingStyle(n),e.mode,["mclose"]),nn.makeSpan(["mord"].concat(i.sizingClasses(t)),[A,nn.makeSpan(["mfrac"],[g]),S],t)},pq=(e,t)=>{var n=new $n.MathNode("mfrac",[Di(e.numer,t),Di(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=la(e.barSize,t);n.setAttribute("linethickness",Xn(r))}var o=G3e(e.size,t.style);if(o.size!==t.style.size){n=new $n.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 $n.MathNode("mo",[new $n.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),e.rightDelim!=null){var l=new $n.MathNode("mo",[new $n.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return rq(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:fq,mathmlBuilder:pq});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 toe=["display","text","script","scriptscript"],noe=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=ek(t[0]),a=i.type==="atom"&&i.family==="open"?noe(i.text):null,s=ek(t[1]),l=s.type==="atom"&&s.family==="close"?noe(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=toe[Number(v.text)]}}else p=Eo(p,"textord"),f=toe[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:fq,mathmlBuilder:pq});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=wft(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:fq,mathmlBuilder:pq});var K3e=(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=ip.svgSpan(o,t),s;if(o.isOver?(s=nn.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=nn.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=nn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t);o.isOver?s=nn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=nn.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 nn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t)},Vpt=(e,t)=>{var n=ip.mathMLnode(e.label);return new $n.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:K3e,mathmlBuilder:Vpt});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 nn.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 nn.makeFragment(n)},mathmlBuilder(e,t){return new $n.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=nn.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 nn.makeFragment(n)},mathmlBuilder:(e,t)=>p0(e.mathml,t)});var lM=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(!p3e(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=lM(f);break;case"height":i=lM(f);break;case"totalheight":a=lM(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=la(e.height,t),r=0;e.totalheight.number>0&&(r=la(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=la(e.width,t));var i={height:Xn(n+r)};o>0&&(i.width=Xn(o)),r>0&&(i.verticalAlign=Xn(-r));var a=new Vft(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new $n.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=la(e.height,t),o=0;if(e.totalheight.number>0&&(o=la(e.totalheight,t)-r,n.setAttribute("valign",Xn(-o))),n.setAttribute("height",Xn(r+o)),e.width.number>0){var i=la(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 nn.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=la(e.dimension,t);return new $n.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=nn.makeSpan([],[Zo(e.body,t)]),n=nn.makeSpan(["inner"],[n],t)):n=nn.makeSpan(["inner"],[Zo(e.body,t)]);var r=nn.makeSpan(["fix"],[]),o=nn.makeSpan([e.alignment],[n,r],t),i=nn.makeSpan(["strut"]);return i.style.height=Xn(o.height+o.depth),o.depth&&(i.style.verticalAlign=Xn(-o.depth)),o.children.unshift(i),o=nn.makeSpan(["thinbox"],[o],t),nn.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new $n.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 roe=(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=roe(e,t),r=ns(n,t,!1);return nn.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=roe(e,t);return p0(n,t)}});var Y3e=(e,t,n,r,o,i,a)=>{e=nn.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=nn.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=nn.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=nn.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=nn.makeSpan(["mspace"],[],r);y.style.marginRight=Xn(i),g.unshift(y)}return nn.makeSpan(["mop","op-limits"],g,r)},Q3e=["\\smallint"],Vb=(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&&!Q3e.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=nn.makeSymbol(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),d.length>0){var c=l.italic,f=nn.staticSvg(d+"Size"+(s?"2":"1"),t);l=nn.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=nn.makeSpan(["mop"],p,t)}else{for(var v=[],h=1;h<i.name.length;h++)v.push(nn.mathsym(i.name[h],i.mode,t));l=nn.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?Y3e(l,n,r,t,a,y,g):(g&&(l.style.position="relative",l.style.top=Xn(g)),l)},XC=(e,t)=>{var n;if(e.symbol)n=new eu("mo",[Xu(e.name,e.mode)]),Q3e.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=S3e([n,r])}return n},qpt={"∏":"\\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=qpt[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Vb,mathmlBuilder:XC});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:Vb,mathmlBuilder:XC});var Gpt={"∫":"\\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:Vb,mathmlBuilder:XC});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:Vb,mathmlBuilder:XC});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=Gpt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Vb,mathmlBuilder:XC});var Z3e=(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=nn.makeSpan(["mop"],l,t)}else a=nn.makeSpan(["mop"],[],t);return o?Y3e(a,n,r,t,t.style,0,0):a},Kpt=(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 $n.SpaceNode))if(i instanceof $n.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 $n.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 $n.TextNode(s)]}var l=new $n.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new $n.MathNode("mo",[Xu("⁡","text")]);return e.parentIsSupSub?new $n.MathNode("mrow",[l,u]):$n.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:Z3e,mathmlBuilder:Kpt});st("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");cm({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?nn.makeFragment(ns(e.body,t,!1)):nn.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=nn.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=nn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return nn.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new $n.MathNode("mo",[new $n.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new $n.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 nn.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ql(e.body,t);return new $n.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=nn.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=nn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),nn.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=ql(Ea(e.body),t),r=new $n.MathNode("mphantom",n),o=new $n.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=nn.makeSpan(["inner"],[Zo(e.body,t.withPhantom())]),r=nn.makeSpan(["fix"],[]);return nn.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ql(Ea(e.body),t),r=new $n.MathNode("mphantom",n),o=new $n.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=la(e.dy,t);return nn.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new $n.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=nn.makeSpan(["mord","rule"],[],t),r=la(e.width,t),o=la(e.height,t),i=e.shift?la(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=la(e.width,t),r=la(e.height,t),o=e.shift?la(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new $n.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",Xn(n)),a.setAttribute("height",Xn(r));var s=new $n.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 X3e(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 nn.makeFragment(r)}var ooe=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ypt=(e,t)=>{var n=t.havingSize(e.size);return X3e(e.body,n,t)};ur({type:"sizing",names:ooe,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:ooe.indexOf(r)+1,body:i}},htmlBuilder:Ypt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ql(e.body,n),o=new $n.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=nn.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=nn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return nn.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new $n.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=nn.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=nn.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=nn.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:h}]},t),m=nn.makeSpan(["root"],[y]);return nn.makeSpan(["mord","sqrt"],[m,p],t)}else return nn.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new $n.MathNode("mroot",[Di(n,t),Di(r,t)]):new $n.MathNode("msqrt",[Di(n,t)])}});var ioe={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=ioe[e.style],r=t.havingStyle(n).withFont("");return X3e(e.body,r,t)},mathmlBuilder(e,t){var n=ioe[e.style],r=t.havingStyle(n),o=ql(e.body,r),i=new $n.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 Qpt=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?Vb:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===Gr.DISPLAY.size||r.limits);return i?Z3e:null}else{if(r.type==="accent")return Jo.isCharacterBox(r.base)?aq:null;if(r.type==="horizBrace"){var a=!t.sub;return a===r.isOver?K3e:null}else return null}else return null};cm({type:"supsub",htmlBuilder(e,t){var n=Qpt(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 O=[{type:"elem",elem:l,shift:c,marginRight:y,marginLeft:m},{type:"elem",elem:s,shift:-d,marginRight:y}];w=nn.makeVList({positionType:"individualShift",children:O},t)}else if(l){c=Math.max(c,u.sub1,l.height-.8*u.xHeight);var I=[{type:"elem",elem:l,marginLeft:m,marginRight:y}];w=nn.makeVList({positionType:"shift",positionData:c,children:I},t)}else if(s)d=Math.max(d,h,s.depth+.25*u.xHeight),w=nn.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=LF(a,"right")||"mord";return nn.makeSpan([P],[a,nn.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 $n.MathNode(a,i)}});cm({type:"atom",htmlBuilder(e,t){return nn.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new $n.MathNode("mo",[Xu(e.text,e.mode)]);if(e.family==="bin"){var r=oq(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 J3e={mi:"italic",mn:"normal",mtext:"normal"};cm({type:"mathord",htmlBuilder(e,t){return nn.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new $n.MathNode("mi",[Xu(e.text,e.mode,t)]),r=oq(e,t)||"italic";return r!==J3e[n.type]&&n.setAttribute("mathvariant",r),n}});cm({type:"textord",htmlBuilder(e,t){return nn.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Xu(e.text,e.mode,t),r=oq(e,t)||"normal",o;return e.mode==="text"?o=new $n.MathNode("mtext",[n]):/[0-9]/.test(e.text)?o=new $n.MathNode("mn",[n]):e.text==="\\prime"?o=new $n.MathNode("mo",[n]):o=new $n.MathNode("mi",[n]),r!==J3e[o.type]&&o.setAttribute("mathvariant",r),o}});var uM={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},cM={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cm({type:"spacing",htmlBuilder(e,t){if(cM.hasOwnProperty(e.text)){var n=cM[e.text].className||"";if(e.mode==="text"){var r=nn.makeOrd(e,t,"textord");return r.classes.push(n),r}else return nn.makeSpan(["mspace",n],[nn.mathsym(e.text,e.mode,t)],t)}else{if(uM.hasOwnProperty(e.text))return nn.makeSpan(["mspace",uM[e.text]],[],t);throw new Hn('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(cM.hasOwnProperty(e.text))n=new $n.MathNode("mtext",[new $n.TextNode(" ")]);else{if(uM.hasOwnProperty(e.text))return new $n.MathNode("mspace");throw new Hn('Unknown type of space "'+e.text+'"')}return n}});var aoe=()=>{var e=new $n.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};cm({type:"tag",mathmlBuilder(e,t){var n=new $n.MathNode("mtable",[new $n.MathNode("mtr",[aoe(),new $n.MathNode("mtd",[p0(e.body,t)]),aoe(),new $n.MathNode("mtd",[p0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var soe={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},loe={"\\textbf":"textbf","\\textmd":"textmd"},Zpt={"\\textit":"textit","\\textup":"textup"},uoe=(e,t)=>{var n=e.font;if(n){if(soe[n])return t.withTextFontFamily(soe[n]);if(loe[n])return t.withTextFontWeight(loe[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Zpt[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=uoe(e,t),r=ns(e.body,n,!0);return nn.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=uoe(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=nn.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=nn.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 nn.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new $n.MathNode("mo",[new $n.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new $n.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 nn.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new $n.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=coe(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];a==="~"&&(a="\\textasciitilde"),r.push(nn.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return nn.makeSpan(["mord","text"].concat(o.sizingClasses(t)),nn.tryCombineChars(r),o)},mathmlBuilder(e,t){var n=new $n.TextNode(coe(e)),r=new $n.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var coe=e=>e.body.replace(/ /g,e.star?"␣":" "),yh=C3e,eAe=`[ \r
  585. ]`,Xpt="\\\\[a-zA-Z@]+",Jpt="\\\\[^\uD800-\uDFFF]",eht="("+Xpt+")"+eAe+"*",tht=`\\\\(
  586. |[ \r ]+
  587. ?)[ \r ]*`,$F="[̀-ͯ]",nht=new RegExp($F+"+$"),rht="("+eAe+"+)|"+(tht+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+($F+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+($F+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+eht)+("|"+Jpt+")");class doe{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(rht,"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(`
  588. `,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 oht{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 iht=H3e;st("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});st("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});st("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});st("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});st("\\@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}});st("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");st("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var foe={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};st("\\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=foe[t.text],r==null||r>=n)throw new Hn("Invalid base-"+n+" digit "+t.text);for(var o;(o=foe[e.future().text])!=null&&o<n;)r*=n,r+=o,e.popToken()}return"\\@char{"+r+"}"});var hq=(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}),""};st("\\newcommand",e=>hq(e,!1,!0,!1));st("\\renewcommand",e=>hq(e,!0,!1,!1));st("\\providecommand",e=>hq(e,!0,!0,!0));st("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});st("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});st("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),yh[n],Li.math[n],Li.text[n]),""});st("\\bgroup","{");st("\\egroup","}");st("~","\\nobreakspace");st("\\lq","`");st("\\rq","'");st("\\aa","\\r a");st("\\AA","\\r A");st("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");st("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");st("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");st("ℬ","\\mathscr{B}");st("ℰ","\\mathscr{E}");st("ℱ","\\mathscr{F}");st("ℋ","\\mathscr{H}");st("ℐ","\\mathscr{I}");st("ℒ","\\mathscr{L}");st("ℳ","\\mathscr{M}");st("ℛ","\\mathscr{R}");st("ℭ","\\mathfrak{C}");st("ℌ","\\mathfrak{H}");st("ℨ","\\mathfrak{Z}");st("\\Bbbk","\\Bbb{k}");st("·","\\cdotp");st("\\llap","\\mathllap{\\textrm{#1}}");st("\\rlap","\\mathrlap{\\textrm{#1}}");st("\\clap","\\mathclap{\\textrm{#1}}");st("\\mathstrut","\\vphantom{(}");st("\\underbar","\\underline{\\text{#1}}");st("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');st("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");st("\\ne","\\neq");st("≠","\\neq");st("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");st("∉","\\notin");st("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");st("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");st("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");st("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");st("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");st("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");st("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");st("⟂","\\perp");st("‼","\\mathclose{!\\mkern-0.8mu!}");st("∌","\\notni");st("⌜","\\ulcorner");st("⌝","\\urcorner");st("⌞","\\llcorner");st("⌟","\\lrcorner");st("©","\\copyright");st("®","\\textregistered");st("️","\\textregistered");st("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');st("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');st("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');st("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');st("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");st("⋮","\\vdots");st("\\varGamma","\\mathit{\\Gamma}");st("\\varDelta","\\mathit{\\Delta}");st("\\varTheta","\\mathit{\\Theta}");st("\\varLambda","\\mathit{\\Lambda}");st("\\varXi","\\mathit{\\Xi}");st("\\varPi","\\mathit{\\Pi}");st("\\varSigma","\\mathit{\\Sigma}");st("\\varUpsilon","\\mathit{\\Upsilon}");st("\\varPhi","\\mathit{\\Phi}");st("\\varPsi","\\mathit{\\Psi}");st("\\varOmega","\\mathit{\\Omega}");st("\\substack","\\begin{subarray}{c}#1\\end{subarray}");st("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");st("\\boxed","\\fbox{$\\displaystyle{#1}$}");st("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");st("\\implies","\\DOTSB\\;\\Longrightarrow\\;");st("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");st("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");st("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var poe={",":"\\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"};st("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in poe?t=poe[n]:(n.slice(0,4)==="\\not"||n in Li.math&&["bin","rel"].includes(Li.math[n].group))&&(t="\\dotsb"),t});var gq={")":!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};st("\\dotso",function(e){var t=e.future().text;return t in gq?"\\ldots\\,":"\\ldots"});st("\\dotsc",function(e){var t=e.future().text;return t in gq&&t!==","?"\\ldots\\,":"\\ldots"});st("\\cdots",function(e){var t=e.future().text;return t in gq?"\\@cdots\\,":"\\@cdots"});st("\\dotsb","\\cdots");st("\\dotsm","\\cdots");st("\\dotsi","\\!\\cdots");st("\\dotsx","\\ldots\\,");st("\\DOTSI","\\relax");st("\\DOTSB","\\relax");st("\\DOTSX","\\relax");st("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");st("\\,","\\tmspace+{3mu}{.1667em}");st("\\thinspace","\\,");st("\\>","\\mskip{4mu}");st("\\:","\\tmspace+{4mu}{.2222em}");st("\\medspace","\\:");st("\\;","\\tmspace+{5mu}{.2777em}");st("\\thickspace","\\;");st("\\!","\\tmspace-{3mu}{.1667em}");st("\\negthinspace","\\!");st("\\negmedspace","\\tmspace-{4mu}{.2222em}");st("\\negthickspace","\\tmspace-{5mu}{.277em}");st("\\enspace","\\kern.5em ");st("\\enskip","\\hskip.5em\\relax");st("\\quad","\\hskip1em\\relax");st("\\qquad","\\hskip2em\\relax");st("\\tag","\\@ifstar\\tag@literal\\tag@paren");st("\\tag@paren","\\tag@literal{({#1})}");st("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Hn("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});st("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");st("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");st("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");st("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");st("\\newline","\\\\\\relax");st("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var tAe=Xn(Ad["Main-Regular"][84][1]-.7*Ad["Main-Regular"][65][1]);st("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+tAe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");st("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+tAe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");st("\\hspace","\\@ifstar\\@hspacer\\@hspace");st("\\@hspace","\\hskip #1\\relax");st("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");st("\\ordinarycolon",":");st("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");st("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');st("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');st("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');st("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');st("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');st("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');st("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');st("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');st("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');st("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');st("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');st("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');st("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');st("∷","\\dblcolon");st("∹","\\eqcolon");st("≔","\\coloneqq");st("≕","\\eqqcolon");st("⩴","\\Coloneqq");st("\\ratio","\\vcentcolon");st("\\coloncolon","\\dblcolon");st("\\colonequals","\\coloneqq");st("\\coloncolonequals","\\Coloneqq");st("\\equalscolon","\\eqqcolon");st("\\equalscoloncolon","\\Eqqcolon");st("\\colonminus","\\coloneq");st("\\coloncolonminus","\\Coloneq");st("\\minuscolon","\\eqcolon");st("\\minuscoloncolon","\\Eqcolon");st("\\coloncolonapprox","\\Colonapprox");st("\\coloncolonsim","\\Colonsim");st("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");st("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");st("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");st("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");st("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");st("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");st("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");st("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");st("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");st("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");st("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");st("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");st("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");st("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");st("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");st("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");st("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");st("\\nleqq","\\html@mathml{\\@nleqq}{≰}");st("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");st("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");st("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");st("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");st("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");st("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");st("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");st("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");st("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");st("\\imath","\\html@mathml{\\@imath}{ı}");st("\\jmath","\\html@mathml{\\@jmath}{ȷ}");st("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");st("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");st("⟦","\\llbracket");st("⟧","\\rrbracket");st("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");st("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");st("⦃","\\lBrace");st("⦄","\\rBrace");st("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");st("⦵","\\minuso");st("\\darr","\\downarrow");st("\\dArr","\\Downarrow");st("\\Darr","\\Downarrow");st("\\lang","\\langle");st("\\rang","\\rangle");st("\\uarr","\\uparrow");st("\\uArr","\\Uparrow");st("\\Uarr","\\Uparrow");st("\\N","\\mathbb{N}");st("\\R","\\mathbb{R}");st("\\Z","\\mathbb{Z}");st("\\alef","\\aleph");st("\\alefsym","\\aleph");st("\\Alpha","\\mathrm{A}");st("\\Beta","\\mathrm{B}");st("\\bull","\\bullet");st("\\Chi","\\mathrm{X}");st("\\clubs","\\clubsuit");st("\\cnums","\\mathbb{C}");st("\\Complex","\\mathbb{C}");st("\\Dagger","\\ddagger");st("\\diamonds","\\diamondsuit");st("\\empty","\\emptyset");st("\\Epsilon","\\mathrm{E}");st("\\Eta","\\mathrm{H}");st("\\exist","\\exists");st("\\harr","\\leftrightarrow");st("\\hArr","\\Leftrightarrow");st("\\Harr","\\Leftrightarrow");st("\\hearts","\\heartsuit");st("\\image","\\Im");st("\\infin","\\infty");st("\\Iota","\\mathrm{I}");st("\\isin","\\in");st("\\Kappa","\\mathrm{K}");st("\\larr","\\leftarrow");st("\\lArr","\\Leftarrow");st("\\Larr","\\Leftarrow");st("\\lrarr","\\leftrightarrow");st("\\lrArr","\\Leftrightarrow");st("\\Lrarr","\\Leftrightarrow");st("\\Mu","\\mathrm{M}");st("\\natnums","\\mathbb{N}");st("\\Nu","\\mathrm{N}");st("\\Omicron","\\mathrm{O}");st("\\plusmn","\\pm");st("\\rarr","\\rightarrow");st("\\rArr","\\Rightarrow");st("\\Rarr","\\Rightarrow");st("\\real","\\Re");st("\\reals","\\mathbb{R}");st("\\Reals","\\mathbb{R}");st("\\Rho","\\mathrm{P}");st("\\sdot","\\cdot");st("\\sect","\\S");st("\\spades","\\spadesuit");st("\\sub","\\subset");st("\\sube","\\subseteq");st("\\supe","\\supseteq");st("\\Tau","\\mathrm{T}");st("\\thetasym","\\vartheta");st("\\weierp","\\wp");st("\\Zeta","\\mathrm{Z}");st("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");st("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");st("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");st("\\bra","\\mathinner{\\langle{#1}|}");st("\\ket","\\mathinner{|{#1}\\rangle}");st("\\braket","\\mathinner{\\langle{#1}\\rangle}");st("\\Bra","\\left\\langle#1\\right|");st("\\Ket","\\left|#1\\right\\rangle");var nAe=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}};st("\\bra@ket",nAe(!1));st("\\bra@set",nAe(!0));st("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");st("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");st("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");st("\\angln","{\\angl n}");st("\\blue","\\textcolor{##6495ed}{#1}");st("\\orange","\\textcolor{##ffa500}{#1}");st("\\pink","\\textcolor{##ff00af}{#1}");st("\\red","\\textcolor{##df0030}{#1}");st("\\green","\\textcolor{##28ae7b}{#1}");st("\\gray","\\textcolor{gray}{#1}");st("\\purple","\\textcolor{##9d38bd}{#1}");st("\\blueA","\\textcolor{##ccfaff}{#1}");st("\\blueB","\\textcolor{##80f6ff}{#1}");st("\\blueC","\\textcolor{##63d9ea}{#1}");st("\\blueD","\\textcolor{##11accd}{#1}");st("\\blueE","\\textcolor{##0c7f99}{#1}");st("\\tealA","\\textcolor{##94fff5}{#1}");st("\\tealB","\\textcolor{##26edd5}{#1}");st("\\tealC","\\textcolor{##01d1c1}{#1}");st("\\tealD","\\textcolor{##01a995}{#1}");st("\\tealE","\\textcolor{##208170}{#1}");st("\\greenA","\\textcolor{##b6ffb0}{#1}");st("\\greenB","\\textcolor{##8af281}{#1}");st("\\greenC","\\textcolor{##74cf70}{#1}");st("\\greenD","\\textcolor{##1fab54}{#1}");st("\\greenE","\\textcolor{##0d923f}{#1}");st("\\goldA","\\textcolor{##ffd0a9}{#1}");st("\\goldB","\\textcolor{##ffbb71}{#1}");st("\\goldC","\\textcolor{##ff9c39}{#1}");st("\\goldD","\\textcolor{##e07d10}{#1}");st("\\goldE","\\textcolor{##a75a05}{#1}");st("\\redA","\\textcolor{##fca9a9}{#1}");st("\\redB","\\textcolor{##ff8482}{#1}");st("\\redC","\\textcolor{##f9685d}{#1}");st("\\redD","\\textcolor{##e84d39}{#1}");st("\\redE","\\textcolor{##bc2612}{#1}");st("\\maroonA","\\textcolor{##ffbde0}{#1}");st("\\maroonB","\\textcolor{##ff92c6}{#1}");st("\\maroonC","\\textcolor{##ed5fa6}{#1}");st("\\maroonD","\\textcolor{##ca337c}{#1}");st("\\maroonE","\\textcolor{##9e034e}{#1}");st("\\purpleA","\\textcolor{##ddd7ff}{#1}");st("\\purpleB","\\textcolor{##c6b9fc}{#1}");st("\\purpleC","\\textcolor{##aa87ff}{#1}");st("\\purpleD","\\textcolor{##7854ab}{#1}");st("\\purpleE","\\textcolor{##543b78}{#1}");st("\\mintA","\\textcolor{##f5f9e8}{#1}");st("\\mintB","\\textcolor{##edf2df}{#1}");st("\\mintC","\\textcolor{##e0e5cc}{#1}");st("\\grayA","\\textcolor{##f6f7f7}{#1}");st("\\grayB","\\textcolor{##f0f1f2}{#1}");st("\\grayC","\\textcolor{##e3e5e6}{#1}");st("\\grayD","\\textcolor{##d6d8da}{#1}");st("\\grayE","\\textcolor{##babec2}{#1}");st("\\grayF","\\textcolor{##888d93}{#1}");st("\\grayG","\\textcolor{##626569}{#1}");st("\\grayH","\\textcolor{##3b3e40}{#1}");st("\\grayI","\\textcolor{##21242c}{#1}");st("\\kaBlue","\\textcolor{##314453}{#1}");st("\\kaGreen","\\textcolor{##71B307}{#1}");var rAe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aht{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 oht(iht,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new doe(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 doe(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)||yh.hasOwnProperty(t)||Li.math.hasOwnProperty(t)||Li.text.hasOwnProperty(t)||rAe.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:yh.hasOwnProperty(t)&&!yh[t].primitive}}var hoe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,e6=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),dM={"́":{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"}},goe={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class t7{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 aht(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(t7.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||t&&yh[o.text]&&yh[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(e6[i.text]){var u=hoe.test(i.text),d=[];for(d.push(new au(e6[i.text])),this.consume();;){var c=this.fetch().text;if(!e6[c]||hoe.test(c)!==u)break;d.unshift(new au(e6[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=yh[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=yh[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(!p3e(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]==="\\"&&!rAe.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 --
  589. please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:o}}goe.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=goe[n[0]]+n.slice(1));var i=nht.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"&&BF.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(Kft.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&&(f3e(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(!dM[f])throw new Hn("Unknown accent ' "+f+"'",t);var p=dM[f][this.mode]||dM[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}}t7.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var vq=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new t7(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},oAe=function(t,n,r){n.textContent="";var o=mq(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."),oAe=function(){throw new Hn("KaTeX doesn't work in quirks mode.")});var sht=function(t,n){var r=mq(t,n).toMarkup();return r},lht=function(t,n){var r=new XV(n);return vq(t,r)},iAe=function(t,n,r){if(r.throwOnError||!(t instanceof Hn))throw t;var o=nn.makeSpan(["katex-error"],[new Zu(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+r.errorColor),o},mq=function(t,n){var r=new XV(n);try{var o=vq(t,r);return mpt(o,t,r)}catch(i){return iAe(i,t,r)}},uht=function(t,n){var r=new XV(n);try{var o=vq(t,r);return ypt(o,t,r)}catch(i){return iAe(i,t,r)}},cht="0.16.25",dht={Span:ZC,Anchor:tq,SymbolNode:Zu,SvgNode:rp,PathNode:f0,LineNode:RF},fht={version:cht,render:oAe,renderToString:sht,ParseError:Hn,SETTINGS_SCHEMA:h8,__parse:lht,__renderToDomTree:mq,__renderToHTMLTree:uht,__setFontMetrics:zft,__defineSymbol:ve,__defineFunction:ur,__defineMacro:st,__domTree:dht};const t6=(e,t=!1)=>{try{return fht.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>`}},pht=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">${t6(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">${t6(o,!1)}</span>`}),t=t.replace(/\\\((.+?)\\\)/g,(n,r)=>{const o=r.trim();return`<span class="katex-inline-wrapper">${t6(o,!1)}</span>`}),t=t.replace(/\\\[([\s\S]+?)\\\]/g,(n,r)=>{const o=r.trim();return`<div class="katex-block-wrapper">${t6(o,!0)}</div>`}),t},hht={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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),i=o(t),a=o(n),s=o(r),l=`
  590. display: inline-flex;
  591. align-items: center;
  592. gap: 4px;
  593. background-color: #E8EAED;
  594. color: #5F6368;
  595. font-size: 13px;
  596. padding: 4px 10px;
  597. border-radius: 12px;
  598. cursor: pointer;
  599. margin: 0 4px;
  600. border: 1px solid #DADCE0;
  601. font-weight: 500;
  602. transition: all 0.2s ease;
  603. line-height: 1.4;
  604. max-width: 300px;
  605. white-space: nowrap;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. vertical-align: middle;
  609. text-decoration: none;
  610. `.replace(/\s+/g," ").trim();return`<a
  611. href="${i}"
  612. class="link-capsule"
  613. data-link="${i}"
  614. style="${l}"
  615. onmouseover="
  616. this.style.backgroundColor='#D2D4D8';
  617. this.style.borderColor='#BABDBF';
  618. this.style.boxShadow='0 1px 3px rgba(0, 0, 0, 0.1)';
  619. "
  620. onmouseout="
  621. this.style.backgroundColor='#E8EAED';
  622. this.style.borderColor='#DADCE0';
  623. this.style.boxShadow='none';
  624. "
  625. title="${s}"
  626. ><span style="font-size: 12px;">🔗</span><span>${a}</span></a>`}};ui.use({renderer:hht,breaks:!0,gfm:!0,headerIds:!1,mangle:!1});const Tg=e=>{if(!e)return"";try{let t=String(e);t=pht(t);const n=ui.parse(t);return fft.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>")}},ght={class:"category-section"},vht={class:"category-info"},mht={class:"category-name"},yht={__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=Y(!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=lr("el-icon"),u=lr("el-tag");return F(),K("div",ght,[x("div",{class:"category-header",onClick:i},[x("div",vht,[$e(l,{class:oe(["expand-icon",{expanded:o.value}])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]),x("span",mht,ze(e.category),1)]),$e(u,{type:"info",size:"small",class:"count-tag"},{default:nt(()=>[An(ze(e.count)+"个文件",1)]),_:1})])])}}},aAe=Yo(yht,[["__scopeId","data-v-f9d29125"]]),bht=["innerHTML"],wht={__name:"StreamMarkdown",props:{content:{type:String,default:""},streaming:{type:Boolean,default:!1},typewriterSpeed:{type:Number,default:10}},setup(e){const t=e,n=Y(""),r=Y(""),o=Y(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 Ct(()=>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}),Ct(()=>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,bht))}},ly=Yo(wht,[["__scopeId","data-v-b4cf4942"]]),Aht={class:"card-header"},Cht={class:"file-info"},xht={class:"file-details"},Sht={class:"file-name"},Eht={class:"file-meta"},kht={class:"link-text"},Tht={class:"actions"},_ht={class:"report-content"},Dht={key:0,class:"error-message"},Iht={key:1},Oht={class:"report-section"},Mht={class:"section-content"},Pht={class:"report-section"},Nht={class:"section-content"},Rht={key:0,class:"report-section"},Bht={class:"section-content"},Lht={class:"iframe-container"},Fht=["src"],Uht={key:1,class:"iframe-error"},zht={__name:"FileReportCard",props:{report:{type:Object,required:!0}},emits:["preview-file"],setup(e,{emit:t}){const n=e,r=t,o=Y(!1),i=Y(""),a=Y(""),s=Y(!0),l=Y(!0),u=Y(!0),d=ee(()=>({"status-processing":n.report.status==="processing","status-completed":n.report.status==="completed","status-error":n.report.status==="error"})),c=ee(()=>{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=K4e(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=`
  627. 文件名: ${n.report.source_file}
  628. 主要分类: ${n.report.metadata?.primary_category||"未分类"}
  629. 场景分类: ${n.report.metadata?.secondary_category||"未分类"}
  630. 相似度: ${(n.report.similarity*100).toFixed(1)}%
  631. 🔹文件分析总述
  632. ${n.report.report?.summary||""}
  633. 🔹文件内容解读
  634. ${n.report.report?.analysis||""}
  635. ${n.report.report?.clauses?`🔹相关条款提取
  636. `+n.report.report.clauses:""}
  637. `.trim();try{await navigator.clipboard.writeText(y),At.success("报告已复制到剪贴板")}catch{At.error("复制失败")}},g=()=>{i.value&&window.open(i.value,"_blank")};return(y,m)=>{const b=lr("el-icon"),w=lr("el-tag"),A=lr("el-button"),S=lr("el-tooltip"),k=lr("el-alert"),O=lr("el-card");return F(),mt(O,{class:oe(["file-report-card",d.value]),shadow:"hover"},{header:nt(()=>[x("div",Aht,[x("div",Cht,[$e(b,{class:"file-icon"},{default:nt(()=>[$e(C(_y))]),_:1}),x("div",xht,[x("div",Sht,ze(e.report.report.display_name||e.report.source_file),1),x("div",Eht,[$e(w,{size:"small",type:"info"},{default:nt(()=>[An(" 文件 "+ze(e.report.file_index)+"/"+ze(e.report.total_files),1)]),_:1}),e.report.metadata?.primary_category?(F(),mt(w,{key:0,size:"small",type:"success"},{default:nt(()=>[An(ze(e.report.metadata.primary_category),1)]),_:1})):xe("",!0),e.report.metadata?.secondary_category?(F(),mt(w,{key:1,size:"small"},{default:nt(()=>[An(ze(e.report.metadata.secondary_category),1)]),_:1})):xe("",!0)]),c.value?(F(),K("div",{key:0,class:"file-source-link",onClick:p},[$e(b,{class:"link-icon"},{default:nt(()=>[$e(C(r1e))]),_:1}),x("span",kht,ze(f(c.value)),1)])):xe("",!0)])]),x("div",Tht,[e.report.file_path?(F(),mt(S,{key:0,content:"查看文件",placement:"top"},{default:nt(()=>[$e(A,{link:"",type:"primary",onClick:v},{default:nt(()=>[$e(b,null,{default:nt(()=>[$e(C(a1e))]),_:1})]),_:1})]),_:1})):xe("",!0),$e(S,{content:"复制报告",placement:"top"},{default:nt(()=>[$e(A,{link:"",type:"primary",onClick:h},{default:nt(()=>[$e(b,null,{default:nt(()=>[$e(C(JBe))]),_:1})]),_:1})]),_:1})])])]),default:nt(()=>[x("div",_ht,[e.report.status==="error"?(F(),K("div",Dht,[$e(k,{title:"生成报告时出错",type:"error",description:e.report.report.summary,closable:!1},null,8,["description"])])):(F(),K("div",Iht,[x("div",Oht,[x("h3",{class:"section-title collapsible",onClick:m[0]||(m[0]=I=>s.value=!s.value)},[$e(b,{class:oe(["collapse-icon",{collapsed:!s.value}])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]),m[4]||(m[4]=x("span",null,"🔹文件分析总述",-1))]),$e(Wi,{name:"collapse"},{default:nt(()=>[an(x("div",Mht,[$e(ly,{content:e.report.report?.summary||"",streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[Ar,s.value]])]),_:1})]),x("div",Pht,[x("h3",{class:"section-title collapsible",onClick:m[1]||(m[1]=I=>l.value=!l.value)},[$e(b,{class:oe(["collapse-icon",{collapsed:!l.value}])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]),m[5]||(m[5]=x("span",null,"🔹文件内容解读",-1))]),$e(Wi,{name:"collapse"},{default:nt(()=>[an(x("div",Nht,[$e(ly,{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",Rht,[x("h3",{class:"section-title collapsible",onClick:m[2]||(m[2]=I=>u.value=!u.value)},[$e(b,{class:oe(["collapse-icon",{collapsed:!u.value}])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]),m[6]||(m[6]=x("span",null,"🔹相关条款提取",-1))]),$e(Wi,{name:"collapse"},{default:nt(()=>[an(x("div",Bht,[$e(ly,{content:e.report.report.clauses,streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[Ar,u.value]])]),_:1})])):xe("",!0)]))]),$e(C(Hye),{modelValue:o.value,"onUpdate:modelValue":m[3]||(m[3]=I=>o.value=I),title:a.value,width:"90%",top:"5vh","close-on-click-modal":!1,"append-to-body":""},{default:nt(()=>[x("div",Lht,[i.value?(F(),K("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,Fht)):(F(),K("div",Uht,[$e(b,{class:"error-icon"},{default:nt(()=>[$e(C(Rb))]),_:1}),m[8]||(m[8]=x("p",null,"无法加载网页预览",-1)),$e(A,{type:"primary",onClick:g},{default:nt(()=>m[7]||(m[7]=[An("在新标签页中打开",-1)])),_:1,__:[7]})]))])]),_:1},8,["modelValue","title"])]),_:1},8,["class"])}}},sAe=Yo(zht,[["__scopeId","data-v-26729d39"]]),$ht={class:"export-button-container"},jht={__name:"ExportButton",props:{reports:{type:Array,required:!0},title:{type:String,default:"AI问题分析报告"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=Y(!1),r=async o=>{if(!t.reports||t.reports.length===0){At.warning("没有可导出的报告");return}n.value=!0;try{const i=await fetch(jV("/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),At.success(`报告已导出为${o.toUpperCase()}格式`)}catch(i){console.error("导出失败:",i),At.error(`导出失败: ${i.message}`)}finally{n.value=!1}};return(o,i)=>{const a=lr("el-icon"),s=lr("el-button"),l=lr("el-dropdown-item"),u=lr("el-dropdown-menu"),d=lr("el-dropdown");return F(),K("div",$ht,[$e(d,{onCommand:r,disabled:e.disabled||n.value},{dropdown:nt(()=>[$e(u,null,{default:nt(()=>[$e(l,{command:"pdf"},{default:nt(()=>[$e(a,null,{default:nt(()=>[$e(C(_y))]),_:1}),i[0]||(i[0]=An(" 导出为PDF ",-1))]),_:1,__:[0]}),$e(l,{command:"docx"},{default:nt(()=>[$e(a,null,{default:nt(()=>[$e(C(_y))]),_:1}),i[1]||(i[1]=An(" 导出为Word ",-1))]),_:1,__:[1]})]),_:1})]),default:nt(()=>[$e(s,{type:"success",loading:n.value,disabled:e.disabled},{default:nt(()=>[n.value?xe("",!0):(F(),mt(a,{key:0},{default:nt(()=>[$e(C(aLe))]),_:1})),An(" "+ze(n.value?"导出中...":"导出报告")+" ",1),$e(a,{class:"el-icon--right"},{default:nt(()=>[$e(C(Kc))]),_:1})]),_:1},8,["loading","disabled"])]),_:1},8,["disabled"])])}}},lAe=Yo(jht,[["__scopeId","data-v-2d9af3d9"]]),Hht={class:"drawer-header"},Wht={class:"header-title"},Vht={key:0,class:"file-name-card"},qht={class:"preview-container"},Ght={key:0,class:"iframe-container"},Kht=["src"],Yht={key:1,class:"loading-container"},Qht={key:2,class:"error-container"},Zht={key:3,class:"empty-container"},Xht={class:"drawer-footer"},Jht={__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=Y(n.modelValue),i=Y(""),a=Y(!1),s=Y(""),l=Y(!1),u=Y(null);let d=null;Ct(()=>n.modelValue,g=>{o.value=g,g&&n.filePath&&(console.log("📄 [Drawer] 打开预览,filePath:",n.filePath),f())}),Ct(()=>n.filePath,g=>{o.value&&g&&(console.log("📄 [Drawer] filePath 变化:",g),f())}),Ct(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=K4e(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 Yr(()=>{c()}),(g,y)=>{const m=lr("el-icon"),b=lr("el-tag"),w=lr("el-button"),A=lr("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",Hht,[x("div",Wht,[$e(m,{class:"file-icon"},{default:nt(()=>[$e(C(_y))]),_:1}),y[2]||(y[2]=x("span",{class:"title-text"},"文件预览",-1)),e.fileName?(F(),K("div",Vht,[$e(b,{type:"info",size:"large",effect:"plain"},{default:nt(()=>[An(ze(e.fileName),1)]),_:1})])):xe("",!0)])])]),footer:nt(()=>[x("div",Xht,[$e(w,{onClick:h},{default:nt(()=>y[5]||(y[5]=[An("关闭",-1)])),_:1,__:[5]})])]),default:nt(()=>[x("div",qht,[i.value?(F(),K("div",Ght,[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,Kht)])):xe("",!0),l.value&&!s.value?(F(),K("div",Yht,[$e(m,{class:"is-loading",size:40,color:"#5b8def"},{default:nt(()=>[$e(C(Bc))]),_:1}),y[3]||(y[3]=x("p",null,"文件加载中,请稍候...",-1))])):xe("",!0),s.value?(F(),K("div",Qht,[$e(m,{size:40,color:"#f56c6c"},{default:nt(()=>[$e(C(Qd))]),_:1}),x("p",null,ze(s.value),1)])):xe("",!0),!i.value&&!l.value&&!s.value?(F(),K("div",Zht,[$e(m,{size:40,color:"#909399"},{default:nt(()=>[$e(C(_y))]),_:1}),y[4]||(y[4]=x("p",null,"暂无预览内容",-1))])):xe("",!0)])]),_:1},8,["modelValue"])}}},e0t=Yo(Jht,[["__scopeId","data-v-119eaee2"]]),t0t={class:"search-previews"},n0t={class:"stacked-icons"},r0t={key:0},o0t={key:0,class:"more-count"},i0t={__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=Y(!1),i=Y(new Set),a=()=>{r("toggle")},s=ee(()=>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 Ct(()=>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",t0t,[x("div",n0t,[(F(!0),K(Nt,null,on(s.value,(c,f)=>(F(),K("div",{key:f,class:oe(["preview-icon",`icon-position-${f}`]),style:Jt({backgroundImage:c.faviconLoaded?`url(${c.favicon})`:"none",zIndex:s.value.length-f})},[c.faviconLoaded?xe("",!0):(F(),K("span",r0t,ze(c.initial),1))],6))),128))]),d[0]||(d[0]=x("span",{class:"search-text"},"蜀安AI搜索引擎",-1)),e.total>8?(F(),K("span",o0t,"+"+ze(e.total-8),1)):xe("",!0)])])):xe("",!0)}},uAe=Yo(i0t,[["__scopeId","data-v-8e7d2f1e"]]),a0t={key:0,class:"web-search-sidebar"},s0t={class:"sidebar-header"},l0t={class:"sidebar-content"},u0t={class:"results-section"},c0t={class:"results-list"},d0t=["onClick"],f0t={class:"result-header"},p0t={class:"result-index"},h0t={class:"result-title"},g0t={class:"result-content"},v0t={class:"result-footer"},m0t={class:"result-url"},y0t={class:"result-score"},b0t={class:"iframe-container"},w0t=["src"],A0t={key:1,class:"iframe-error"},C0t={__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=Y(!1),i=Y(""),a=Y(""),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 Ct(()=>n.visible,c=>{c||(o.value=!1)}),(c,f)=>{const p=lr("el-icon"),v=lr("el-button"),h=lr("el-dialog");return F(),mt(Wi,{name:"sidebar-slide"},{default:nt(()=>[e.visible?(F(),K("div",a0t,[x("div",s0t,[$e(p,{class:"close-icon",onClick:s},{default:nt(()=>[$e(C(cu))]),_:1})]),x("div",l0t,[x("div",u0t,[x("div",c0t,[(F(!0),K(Nt,null,on(e.results,(g,y)=>(F(),K("div",{key:y,class:"result-item",onClick:m=>l(g)},[x("div",f0t,[x("div",p0t,ze(y+1),1),x("div",h0t,ze(g.title),1)]),x("div",g0t,ze(g.content),1),x("div",v0t,[$e(p,{class:"link-icon"},{default:nt(()=>[$e(C(r1e))]),_:1}),x("span",m0t,ze(u(g.url)),1),x("span",y0t,ze((g.score*100).toFixed(1))+"%",1)])],8,d0t))),128))])])]),$e(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",b0t,[i.value?(F(),K("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,w0t)):(F(),K("div",A0t,[$e(p,{class:"error-icon"},{default:nt(()=>[$e(C(Rb))]),_:1}),f[2]||(f[2]=x("p",null,"无法加载网页预览",-1)),$e(v,{type:"primary",onClick:d},{default:nt(()=>f[1]||(f[1]=[An("在新标签页中打开",-1)])),_:1,__:[1]})]))])]),_:1},8,["modelValue","title"])])):xe("",!0)]),_:1})}}},x0t=Yo(C0t,[["__scopeId","data-v-77ec5b89"]]),S0t={class:"web-search-summary"},E0t={class:"header-left"},k0t={class:"summary-content"},T0t={__name:"WebSearchSummary",props:{summary:{type:String,required:!0}},setup(e){const t=Y(!0),n=()=>{t.value=!t.value};return(r,o)=>{const i=lr("el-icon"),a=lr("el-tag");return F(),K("div",S0t,[x("div",{class:"summary-header",onClick:n},[x("div",E0t,[$e(i,{class:oe(["expand-icon",{expanded:t.value}])},{default:nt(()=>[$e(C(ka))]),_:1},8,["class"]),o[0]||(o[0]=x("span",{class:"header-title"},"外部数据",-1))]),$e(a,{type:"info",size:"small",class:"source-tag"},{default:nt(()=>o[1]||(o[1]=[An("数据来源于蜀安AI网络搜索引擎,内容仅供参考",-1)])),_:1,__:[1]})]),an(x("div",k0t,[$e(ly,{content:e.summary,streaming:!1},null,8,["content"])],512),[[Ar,t.value]])])}}},cAe=Yo(T0t,[["__scopeId","data-v-070e5d69"]]),_0t="/assets/27-Dd_EQ7v1.png",D0t=["src","width","height"],I0t={__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=_0t,r=ee(()=>{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:oe(["status-avatar",r.value])},[x("img",{src:C(n),width:e.size,height:e.size,alt:"AI Robot",class:"robot-img"},null,8,D0t)],2))}},dAe=Yo(I0t,[["__scopeId","data-v-08478745"]]),fAe=(e,t={})=>{const n=Gf(),r=Ev();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},bh=e=>{e&&e.readyState!==EventSource.CLOSED&&e.close()},JC="/assets/2-G3awVIMi.png",e5="/assets/22-PHJtTrlQ.png",tk="/assets/29-B03QHNcz.png",nk="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=",rk="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=",ok="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",ik="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==",Lv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEWSURBVFiF7ZZNbsJADIWfUVnDDchNOhyBE5BuO5HazgUwFwA2EUvoDXqEcJP2CF12U3dRgVASgT2EH4m8pTX2+2RbGgP3LtI+zF7ZCdEg1uhX5Hu54I8ogOfAKQGrWPOdBEU+5+F+qKPJI+DxZPP/Qq4cejAXEUrtzpLWmUcB5PPJuzXHB641B5QjOKcqHcgCswAvAPp1CT6wKGuv8xk/mQEEmCgNGtGhHfgEUETUTJsCKDQtLMsHNgFcfQlbgBagBWgB7PeAXs4H3l5R7hoACRT/wkVHQMC0HDtnB1T3wA0voSDxb9OxvaT2YDoGQHCAODuATdURSNQVVFMGG827Sge6gtGPwHWIerHmJPKVL7iIzb8v/QE/Jz7sdjN4KAAAAABJRU5ErkJggg==",t5="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==",yq="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==",n7="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=",Vy="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==",qy="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=",ak="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==",sk="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==",lk="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",bq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAkCAYAAACNBsqdAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFdSURBVEiJ7ZbdcYMwEIS/0EDoICqBEtSB6SDuIC6BDiiBEphUgDuIO7A7cFKB8yDJHPrFQ97inWFk68Rq7w7QQog9MAJn4GbHCfgA6sj6IpQgS11noNlCerUqO2Cw/2VsNfkkbhzsRj46T3lszQJa3DAW1h48AVmMzCmuac4Xs+okKuZ6HYHvFcSfdlRkylGJ4GUFqRPgoLzfWhI7/KwkjqHGlGhy5FVu9YPErj9vJWK9ZacUcY9Jq/hIPUrsnhT118Sb8SR+Ej+J/z2xPBeTR1klgq9i/mTHhvALtxOkl5wCd+pOYq5h6SFazId/IG4V3sX83cz0YlKq68hbLVkSaSHu0KRNyIGlvYo5JZXIAlharNYP2vQ0oaGpWXo+5cVRQtkVY2VLUMz9uWFKF0VLmHLMVdZ2Y6m05PnQhDV1xttdfiP7EqmDYu5yyYTvUyQvhQ12hC/JCWMMjzl1v0cfjAryhqYGAAAAAElFTkSuQmCC",pAe="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=",hAe="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=",wq="/assets/26-BsA4Ghua.png",O0t={class:"history-sidebar"},M0t={class:"history-header"},P0t=["src"],N0t={class:"history-list"},R0t={key:0,class:"history-loading"},B0t=["onClick"],L0t={class:"history-content"},F0t={class:"history-title"},U0t={class:"history-time"},z0t=["onClick"],$0t={key:2,class:"empty-history"},j0t=["src"],H0t={class:"chat-header"},W0t={key:0,class:"question-title-card"},V0t={key:1,class:"default-title"},q0t={class:"chat-content"},G0t={key:0,class:"initial-content"},K0t={class:"ai-intro"},Y0t={class:"ai-avatar"},Q0t=["src"],Z0t={class:"function-cards"},X0t=["onClick"],J0t={class:"card-header"},egt={class:"card-icon"},tgt=["src","alt"],ngt={class:"card-description"},rgt={class:"card-header"},ogt={class:"card-icon"},igt=["src"],agt={class:"card-header"},sgt={class:"card-icon"},lgt=["src"],ugt={class:"card-header"},cgt={class:"card-icon"},dgt=["src"],fgt={class:"card-header"},pgt={class:"card-icon"},hgt=["src"],ggt={key:1,class:"chat-messages"},vgt={key:0,class:"user-message"},mgt={class:"message-content"},ygt={key:0,class:"message-file"},bgt={class:"file-display"},wgt={class:"file-icon"},Agt=["src"],Cgt={key:1},xgt={class:"file-details"},Sgt={class:"file-name"},Egt={class:"file-size"},kgt={key:1,class:"message-text"},Tgt={class:"message-actions"},_gt=["onClick"],Dgt=["src"],Igt=["onClick"],Ogt=["src"],Mgt={key:1,class:"ai-message"},Pgt={key:0,class:"web-search-capsule-outer"},Ngt={class:"ai-message-main"},Rgt={class:"ai-avatar-small"},Bgt=["src"],Lgt=["data-message-index"],Fgt={class:"ai-response-content"},Ugt=["data-message-index"],zgt={class:"stats-left"},$gt=["innerHTML"],jgt={key:0,class:"progress-capsule-inline"},Hgt={class:"progress-bar-mini"},Wgt={class:"progress-percentage"},Vgt={key:1,class:"stats-right"},qgt={key:1,class:"question-summary"},Ggt={key:2,class:"report-loading"},Kgt={key:3,class:"reports-list"},Ygt={key:0,class:"report-loading"},Qgt={key:4},Zgt={key:5,class:"ai-text"},Xgt={key:0,class:"ai-markdown-content"},Jgt=["innerHTML"],evt={class:"divider"},tvt={class:"message-actions"},nvt={class:"left-actions"},rvt=["onClick"],ovt=["src"],ivt=["onClick","disabled"],avt=["src"],svt=["onClick"],lvt=["onClick"],uvt=["src"],cvt={class:"right-actions"},dvt=["onClick","title"],fvt=["src"],pvt=["onClick","title"],hvt=["src"],gvt={class:"search-sources"},vvt=["onClick"],mvt={class:"search-sources-content"},yvt={class:"sources-section"},bvt={class:"sources-grid"},wvt=["onClick"],Avt={class:"source-title"},Cvt={class:"source-description"},xvt={class:"source-badge"},Svt={class:"related-questions-loading"},Evt={class:"related-questions"},kvt=["onClick"],Tvt={key:0,class:"recommended-questions"},_vt=["onClick"],Dvt=["src"],Ivt=["src"],Ovt=["src"],Mvt=["src"],Pvt={class:"recommend-list"},Nvt=["onClick"],Rvt={class:"chat-input-section"},Bvt={class:"input-container"},Lvt={key:0,class:"file-preview-section"},Fvt={class:"file-preview"},Uvt={class:"file-icon"},zvt=["src"],$vt={key:1},jvt={class:"file-info"},Hvt={class:"file-name"},Wvt={class:"file-size"},Vvt={class:"input-box"},qvt=["title","disabled"],Gvt={class:"icon-container"},Kvt=["src"],Yvt=["disabled"],Qvt={class:"icon-container"},Zvt=["src"],Xvt=["disabled"],Jvt=["disabled"],emt={class:"icon-container"},tmt=["src"],nmt={key:0,class:"recording-indicator"},rmt=["disabled"],omt={key:0,class:"stop-text"},imt=["src"],amt={__name:"Chat",setup(e){const t=z_(),n=Hl(),r=Y(""),o=Y(null),i=Y(!1),a=Y(!1),s=Y({}),l=Y("");let u=null;const d=Y(new Map),c=Y(!1),f=Y(null),p=Y(""),v=Y([]),h=Y([]),g=Y([]),y=Y({}),m=Y({}),b=Y(null),w=Y(""),A=Y("success"),S=Y(2e3),{isListening:k,transcript:O,error:I,startListening:P,stopListening:M}=T0(),_=Y(null),R=()=>{_.value&&(Bo(),_.value=null)},N=()=>{document.hidden&&_.value&&(Bo(),_.value=null)},V=Y(null),L=Y(null),j=Y(!1);Y("");const H=Y([]),G=Y(!1),Z=Y(null),z=Y([]),U=Y(!1),W=Y(null),re=Y(!0),J=Y(!0),te=Y({});Y(!1),Y(new Set);const X=Y({}),ue=Y({}),me=Y(!1),Me=Y({results:[],keywords:[],total:0}),Ae=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]}),ge=Y(!1),_e=Y(""),Q=Y(""),be=ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping)||!re.value),De=ee(()=>l.value?l.value.substring(0,20)+(l.value.length>20?"...":""):"AI问题分析报告");ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&(!ae.content||ae.content.trim()===""))),ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&ae.content&&ae.content.trim()!==""));const pe=ee(()=>p.value==="history"?`确定要删除历史记录"${f.value?.item?.title||""}"吗?删除后将无法恢复。`:p.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),ie=ee(()=>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,fe=>String.fromCharCode(parseInt(fe.replace(/\\u/g,""),16)))),ae.includes("&")){const fe=document.createElement("textarea");fe.innerHTML=ae,ae=fe.value}return Rt(ae)}catch(fe){return console.warn("文本处理失败:",fe),ae}},Re=new Map,Ee=new Map,Le=(ae,fe,Ce,Ft=50)=>new Promise(Tt=>{const yn=`${ae.file_index}_${fe}`;Ee.has(yn)&&(clearInterval(Ee.get(yn)),Ee.delete(yn)),ae._typewriterStates||(ae._typewriterStates={});let Cn=0;ae._typewriterStates[fe]={currentIndex:0,isTyping:!0};const On=setInterval(()=>{if(Cn<Ce.length){const mr=Math.max(1,Math.floor(Ft/10));Cn=Math.min(Cn+mr,Ce.length),ae.report[fe]=Ce.substring(0,Cn),ae._typewriterStates[fe].currentIndex=Cn}else clearInterval(On),Ee.delete(yn),ae._typewriterStates[fe].isTyping=!1,ae.report[fe]=Ce,Tt()},1e3/60);Ee.set(yn,On)}),Fe=()=>{Re.forEach((ae,fe)=>{clearInterval(ae)}),Re.clear(),Ee.forEach((ae,fe)=>{clearInterval(ae)}),Ee.clear()},Pe=(ae,fe)=>{if(!fe)return Ne(ae);const Ce=`
  638. 📄 文件信息:
  639. 文件名:${fe.name}
  640. 文件大小:${ha(fe.size)}
  641. 文件类型:${fe.type}
  642. 📝 文件内容:
  643. ${fe.content}
  644. ---
  645. `;return ae.replace(/<word>.*?<\/word>/gs,Ce).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Ne=ae=>{const fe=ae.match(/<filename>(.*?)<\/filename>/),Ce=fe?fe[1]:"未知文件",Ft=ae.match(/<filesize>(.*?)<\/filesize>/),Tt=Ft?parseInt(Ft[1]):0,yn=ae.match(/<word>(.*?)<\/word>/s),Cn=yn?yn[1].trim():"无内容",On=`
  646. 📄 文件信息:
  647. 文件名:${Ce}
  648. 文件大小:${ha(Tt)}
  649. 文件类型:${Ce.endsWith(".docx")?".docx":Ce.endsWith(".doc")?".doc":"未知"}
  650. 📝 文件内容:
  651. ${Cn}
  652. ---
  653. `;return ae.replace(/<word>.*?<\/word>/gs,On).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},ht=ae=>{try{let fe=Tg(ae);return fe=Lt(fe),Vt(()=>{nr()}),fe}catch(fe){return console.error("Markdown渲染失败:",fe),ae.replace(/\n/g,"<br>")}},Rt=ae=>{if(!ae)return ae;let fe=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[Ft,Tt]of Object.entries(Ce)){const yn=new RegExp(Ft.replace(/\\/g,"\\\\"),"g");fe=fe.replace(yn,Tt)}return fe=fe.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),fe=fe.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),fe=fe.replace(/\\int/g,"∫"),fe=fe.replace(/\\sum/g,"∑"),fe=fe.replace(/\\prod/g,"∏"),fe=fe.replace(/\\partial/g,"∂"),fe=fe.replace(/\\nabla/g,"∇"),fe=fe.replace(/\\infty/g,"∞"),fe=fe.replace(/\\pm/g,"±"),fe=fe.replace(/\\times/g,"×"),fe=fe.replace(/\\div/g,"÷"),fe=fe.replace(/\\leq/g,"≤"),fe=fe.replace(/\\geq/g,"≥"),fe=fe.replace(/\\neq/g,"≠"),fe=fe.replace(/\\approx/g,"≈"),fe=fe.replace(/\\equiv/g,"≡"),fe=fe.replace(/\\propto/g,"∝"),fe=fe.replace(/\\in/g,"∈"),fe=fe.replace(/\\notin/g,"∉"),fe=fe.replace(/\\subset/g,"⊂"),fe=fe.replace(/\\supset/g,"⊃"),fe=fe.replace(/\\cup/g,"∪"),fe=fe.replace(/\\cap/g,"∩"),fe=fe.replace(/\\emptyset/g,"∅"),fe=fe.replace(/\\land/g,"∧"),fe=fe.replace(/\\lor/g,"∨"),fe=fe.replace(/\\neg/g,"¬"),fe=fe.replace(/\\rightarrow/g,"→"),fe=fe.replace(/\\leftarrow/g,"←"),fe=fe.replace(/\\leftrightarrow/g,"↔"),fe=fe.replace(/\\forall/g,"∀"),fe=fe.replace(/\\exists/g,"∃"),fe},Lt=ae=>{if(!ae)return ae;const fe="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,Ft)=>/^<span\s+class="standard-reference"/i.test(Ft)?Ce:Ft.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/)?`<span class="standard-reference" data-standard="${Ft}" title="点击查看标准详情" style="${fe}">${Ft}</span>`:`<span class="standard-reference" data-reference="${Ft}" title="点击查看详情" style="${fe}">${Ft}</span>`)},tn=Y([]),Wt=Y(0),zt=Y(!1),dt=async()=>{try{zt.value=!0;const ae=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:0});ae.statusCode===200?(Wt.value=ae.total||0,tn.value=ae.data.map(fe=>({id:fe.id,title:fe.title||ut(fe.content),time:rt(fe.updated_at),businessType:fe.business_type,isActive:!1,rawData:fe}))):console.error("获取历史记录失败:",ae.statusCode)}catch(ae){console.error("获取历史记录失败:",ae)}finally{zt.value=!1}},_t=async ae=>{try{const fe=await Bn.getHistoryRecord({ai_conversation_id:ae,business_type:0});if(fe.statusCode===200){if(!fe.data||!Array.isArray(fe.data))return console.error("响应数据格式错误"),!1;const Ce=await Promise.all(fe.data.map(async(Tt,yn)=>{const Cn=he(Tt.user_feedback);let On=null,mr=Tt.content,Er=null;if(Tt.type==="ai"&&yn>0){const io=fe.data[yn-1];if(io&&io.type==="user")if(io.content.includes("</filesize>")){const Vo=io.content.split("</filesize>")[1];Er=Vo?Vo.trim():io.content}else Er=io.content}if(Tt.type==="user"&&Tt.content.includes("</filesize>")){const io=Tt.content.match(/<filename>(.*?)<\/filename>/),Vo=Tt.content.match(/<filesize>(.*?)<\/filesize>/),Na=Tt.content.match(/<word>(.*?)<\/word>/s);if(io&&Vo){const ml=io[1],Xc=parseInt(Vo[1]),h2=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:h2};const xm=Tt.content.split("</filesize>")[1];mr=xm?xm.trim():""}}let Wo=mr||"",Pr=[],Io=Tt.summary||"";if(Tt.type==="ai")try{const io=Tt.content||"";if(io.trim().startsWith("[")||io.trim().startsWith("{"))try{const Vo=JSON.parse(io);if(Vo.reports&&Array.isArray(Vo.reports))Pr=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))Pr=Vo;else throw new Error("Not an array or valid format")}catch{let Na=io.replace(/\\n/g,`
  654. `).replace(/\\t/g," ").replace(/\\r/g,"\r");Wo=ht(Na)}else{let Vo=io.replace(/\\n/g,`
  655. `).replace(/\\t/g," ").replace(/\\r/g,"\r");Wo=ht(Vo)}}catch(io){console.error("历史记录处理失败:",io),Wo=Tt.content||""}let oo=0,ni=0,Oi=100;if(Pr.length>0){const io=Pr.filter(Vo=>Vo.type!=="category_title");oo=io.length,ni=io.filter(Vo=>Vo.status==="completed").length,Oi=oo>0?Math.round(ni/oo*100):100}return{type:Tt.type,content:mr,displayContent:Wo,reports:Pr,summary:Io,totalFiles:oo,completedCount:ni,progress:Oi,file:On,isTyping:!1,id:Tt.id,userFeedback:Cn,userQuestion:Er,searchSources:Tt.type==="ai"&&Tt.search_source?ct(Tt.search_source):null,rawData:Tt,webSearchRaw:Tt.webSearchRaw||null,webSearchSummary:Tt.webSearchSummary||null,hasWebSearchResults:Tt.hasWebSearchResults||!1,webSearchTotal:Tt.webSearchRaw?.total||0,showStats:oo>0,currentStatus:"completed",statusMessage:oo>0?Tt.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${oo}</span> 个知识库文件,以及 <span class="file-count">${Tt.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${oo}</span> 个知识库文件`:""}}));g.value=Ce,Ot.value=ae;const Ft=Ce.filter(Tt=>Tt.type==="ai").pop();return Ce.forEach((Tt,yn)=>{if(Tt.type==="ai"&&Tt.rawData){if(Tt.rawData.search_source)try{const Cn=JSON.parse(Tt.rawData.search_source);Array.isArray(Cn)&&Cn.length>0&&(te.value[Tt.id]=Cn)}catch(Cn){console.error("解析搜索结果失败:",Cn)}if(Tt.reports&&Tt.reports.length>0&&(s.value[yn]||(s.value[yn]={}),Tt.reports.filter(On=>On.type==="category_title").map(On=>On.category).forEach(On=>{s.value[yn][On]=!0})),Tt===Ft&&Tt.rawData.guess_you_want)try{const Cn=Tt.rawData.guess_you_want.trim().split(`
  656. `).map(On=>On.trim()).filter(On=>On.length>0).filter((On,mr,Er)=>Er.indexOf(On)===mr).slice(0,3);Cn.length>0&&(z.value=Cn,W.value=Tt.id)}catch(Cn){console.error("解析推荐问题失败:",Cn)}}}),await Vt(),setTimeout(()=>nr(),100),!0}else return console.error("获取对话消息失败:",fe.statusCode),!1}catch(fe){return console.error("获取对话消息失败:",fe),!1}},ut=ae=>{if(!ae)return"未知对话";if(ae.includes("</filesize>")){const Ft=ae.split("</filesize>")[1];if(Ft&&Ft.trim()){let yn=Ft.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];if(yn.includes("基于您好")||yn.includes("蜀道安全管理AI智能助手")){const Cn=yn.match(/问题描述[::](.+?)(?=分析结果|$)/);Cn?yn=Cn[1].trim():yn=yn.substring(0,20)}return yn.length>30?yn.substring(0,30)+"...":yn||"新对话"}}let fe=ae.replace(/<[^>]*>/g,"");fe=fe.replace(/\s+/g," ").trim();let Ce=fe.split(/[。!?\n]/)[0];if(Ce.includes("基于您好")||Ce.includes("蜀道安全管理AI智能助手")){const Ft=Ce.match(/问题描述[::](.+?)(?=查询结果|$)/);Ft?Ce=Ft[1].trim():Ce=Ce.substring(0,20)}return Ce.length>30?Ce.substring(0,30)+"...":Ce||"新对话"},rt=ae=>{if(!ae)return"未知时间";let fe;if(typeof ae=="string")fe=new Date(ae);else{let mr=ae;(ae.toString().length===10||ae.toString().length===11)&&(mr=ae*1e3),fe=new Date(mr)}const Ce=new Date,Ft=new Date(Ce.getFullYear(),Ce.getMonth(),Ce.getDate()),Tt=new Date(Ft.getTime()-1440*60*1e3);if(fe>=Ft)return fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(fe>=Tt&&fe<Ft)return"昨天 "+fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const yn=fe.getMonth()+1,Cn=fe.getDate(),On=fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${yn}月${Cn}日 ${On}`},he=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}},ct=ae=>{try{if(!ae||typeof ae!="string"||!ae.trim())return null;const fe=JSON.parse(ae);if(!Array.isArray(fe))return null;const Ce=fe.filter(Ft=>Ft&&typeof Ft=="object"&&Ft.title&&Ft.content);return Ce.length>0?Ce:null}catch(fe){return console.error("解析搜索来源失败:",fe),null}},Ot=Y(0);Y(0);const Tn=()=>{g.value.length===0&&(tn.value.forEach(ae=>ae.isActive=!1),X.value={},ue.value={},te.value={})},In=async()=>{!r.value.trim()||a.value||(ra(),z.value=[],W.value=null,a.value=!0,i.value=!0,Tn(),await Gt({question:r.value,windowSize:3,nResults:10}),r.value="",ra(),L.value&&Ho(),Si())};let je=0,ke=0;const ye=ae=>{const fe=[nk,rk,ok,ik],Ce=fe[je%fe.length];return je++,Ce},Be=ae=>{const fe=[ak,sk,lk],Ce=fe[ke%fe.length];return ke++,Ce},ot=(ae,fe)=>{s.value[ae]||(s.value[ae]={}),s.value[ae][fe.category]=fe.expanded},gt=(ae,fe)=>fe?s.value[ae]?s.value[ae][fe]!==!1:(s.value[ae]={},!0):!0,Ke=ae=>!ae||ae.length===0?!1:ae.every(fe=>fe.type==="category_title"),He=(ae,fe)=>{if(fe===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"}},at=(ae,fe,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}}[fe];if(Tt){if(ae.currentStatus=fe,fe==="data_retrieved"){const yn=ae.totalFiles||0,Cn=ae.webSearchTotal||0;Cn>0?ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${yn}</span> 个知识库文件,以及 <span class="file-count">${Cn}</span> 个相关网络资源`:ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${yn}</span> 个知识库文件`}else if(fe==="completed"){const yn=ae.totalFiles||0,Cn=ae.webSearchTotal||0;Cn>0?ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${yn}</span> 个知识库文件,以及 <span class="file-count">${Cn}</span> 个相关网络资源`:ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${yn}</span> 个知识库文件`}else ae.statusMessage=Ce||Tt.message;ae.progress=Tt.progress}},St=(ae,fe)=>{const Ce=g.value[fe];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 Ft=ae.conversation_id||ae.ai_conversation_id;Ft&&Ot.value===0&&(Ot.value=Ft,console.log("✅ SSE收到conversation_id并赋值:",Ft));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(at(Ce,"querying_kb"),ae.is_professional_question===!1){const Pr=ae.summary||"抱歉,我暂时无法回答您的问题。";if(Ce.summary=Pr,Ce.isTyping=!1,Ce.ai_message_id&&gd(Ce.ai_message_id,Pr).catch(oo=>console.error("回写AI消息失败:",oo)),u&&(bh(u),u=null),a.value=!1,d.value.clear(),re.value=!0,Ot.value&&Ot.value!==0){tn.value.forEach(io=>{io.isActive=!1});const oo=g.value.find(io=>io.type==="user"),ni=oo?oo.content.substring(0,20)+"...":"新对话",Oi=tn.value.findIndex(io=>io.id===Ot.value);if(Oi===-1){const io={id:Ot.value,title:ni,time:rt(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:Ot.value,content:oo?.content||"",updated_at:new Date().toISOString()}};tn.value.unshift(io),console.log("✅ 非专业问题:已在列表最前面插入新历史记录")}else{const io=tn.value.splice(Oi,1)[0];io.isActive=!0,io.time=rt(new Date().toISOString()),tn.value.unshift(io),console.log("✅ 非专业问题:已将历史记录移到最前面")}Wt.value=tn.value.length}const Io=g.value.filter(oo=>oo.type==="user").pop();Io&&Ce.ai_message_id&&Pr&&mi(Io.content,Pr,Ce.ai_message_id);return}if(ae.summary){const Pr=ae.summary;Ce._fullSummary=Pr,Ce.summary="",Le({file_index:"summary",report:Ce,_typewriterStates:{}},"summary",Pr,50).catch(Io=>{console.error("问题总结打字机效果失败:",Io),Ce.summary=Pr})}break;case"documents":Ce.totalFiles=ae.total,Ce.completedCount=0,J.value?at(Ce,"web_searching"):at(Ce,"data_retrieved"),Vt(()=>{dr()});break;case"category_title":Ce.reports.length===0&&Ce.progress>=30&&at(Ce,"analyzing_files");const yn={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(yn),s.value[fe]||(s.value[fe]={}),s.value[fe][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 Cn={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(Cn),d.value.set(ae.file_index,Ce.reports.length-1);break;case"report_chunk":break;case"report":Ce.reports.filter(Pr=>Pr.status==="completed").length===0&&at(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 mr=d.value.get(On.file_index);let Er;if(mr!==void 0){const Pr=Ce.reports[mr].metadata?._displayCategory,Io=On.report?.summary||"",oo=On.report?.analysis||"",ni=On.report?.clauses||"",Oi=On.report?.display_name||"";Ce.reports[mr]={...On,report:{display_name:Oi,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...On.metadata,_displayCategory:Pr||Ce.currentCategory},_fullContent:{display_name:Oi,summary:Io,analysis:oo,clauses:ni}},Er=Ce.reports[mr],d.value.delete(On.file_index)}else{const Pr=On.report?.summary||"",Io=On.report?.analysis||"",oo=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:Pr,analysis:Io,clauses:oo}};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(Pr=>{console.error("报告打字机效果失败:",Pr),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(Pr=>Pr.status==="completed"&&Pr.type!=="category_title").length;const Wo=Ce.totalFiles>0?Ce.completedCount/Ce.totalFiles:0;if(Wo>=1)at(Ce,"outputting");else if(Wo>=.5)at(Ce,"deep_thinking");else{const Pr=30+Math.round(Wo*30);Ce.progress=Pr}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 Pr=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件,以及 <span class="file-count">${Ce.webSearchTotal}</span> 个相关网络资源`;at(Ce,"data_retrieved",Pr),console.log(`[网络搜索] 收到原始数据: ${ae.total} 条结果`)}else{const Pr=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件`;at(Ce,"data_retrieved",Pr),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),at(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||""},oo=JSON.stringify(Io);Ce.summary||Ce._fullSummary,gd(Ce.ai_message_id,oo).then(ni=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),at(Ce,"completed"),Ce.isTyping=!1,a.value=!1,d.value.clear(),re.value=!0}).catch(ni=>{console.error("[网络搜索] AI消息保存失败:",ni),at(Ce,"completed"),Ce.isTyping=!1,a.value=!1})}else at(Ce,"completed"),Ce.isTyping=!1,a.value=!1}break;case"error":At.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&&at(Ce,"completed"),At.success("报告生成完成");break;case"interrupted":a.value=!1,d.value.clear(),Ce.isTyping=!1,At.warning(ae.message||"报告生成已中断");break}},tt=ae=>{console.error("❌ SSE连接异常断开:",ae),u&&(bh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(fe=>{fe.type==="ai"&&fe.isTyping&&(fe.isTyping=!1)}),re.value=!0,At.error("连接已断开")},Qe=()=>{if(a.value=!1,g.value.forEach(Ce=>{if(Ce.type==="ai"&&Ce.isTyping&&(Ce.isTyping=!1,Ce.ai_message_id)){const Ft={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(Ft):Ce.content;Tt&&(Ce.summary||Ce._fullSummary,gd(Ce.ai_message_id,Tt).catch(yn=>console.error("回写AI消息失败:",yn)))}}),re.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",Ot.value),Ot.value&&Ot.value!==0){console.log("✅ 开始更新历史记录列表"),tn.value.forEach(yn=>{yn.isActive=!1});const Ce=g.value.find(yn=>yn.type==="user"),Ft=Ce?Ce.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",Ft);const Tt=tn.value.findIndex(yn=>yn.id===Ot.value);if(console.log("🔍 检查是否已存在,索引:",Tt),Tt===-1){const yn={id:Ot.value,title:Ft,time:rt(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:Ot.value,content:Ce?.content||"",updated_at:new Date().toISOString()}};console.log("📦 准备插入的新项:",yn),tn.value.unshift(yn),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",tn.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const yn=tn.value.splice(Tt,1)[0];yn.isActive=!0,yn.time=rt(new Date().toISOString()),tn.value.unshift(yn),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}Wt.value=tn.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(),fe=g.value.filter(Ce=>Ce.type==="ai").pop();if(ae&&fe&&fe.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",ae.content),console.log(" - AI消息ID:",fe.ai_message_id);let Ce="";fe.summary?Ce=fe.summary:fe.content?Ce=fe.content:fe.reports&&fe.reports.length>0&&(Ce=fe.reports.filter(Tt=>Tt.report&&Tt.report.summary).map(Tt=>Tt.report.summary).slice(0,3).join(`
  657. `)),Ce&&Ce.trim()?(console.log("📝 AI回复内容长度:",Ce.length),mi(ae.content,Ce,fe.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},it=ae=>{u&&(bh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(fe=>{if(fe.type==="ai"&&fe.isTyping&&(fe.isTyping=!1,at(fe,"completed"),(fe.webSearchRaw||fe.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),fe.ai_message_id)){const Ce={reports:fe.reports||[],webSearchRaw:fe.webSearchRaw||null,webSearchSummary:fe._fullWebSearchSummary||fe.webSearchSummary||null,hasWebSearchResults:fe.hasWebSearchResults||!1,summary:fe.summary||fe._fullSummary||""},Ft=fe.reports&&fe.reports.length>0?JSON.stringify(Ce):fe.content;Ft&&(fe.summary||fe._fullSummary,gd(fe.ai_message_id,Ft).catch(Tt=>console.error("回写AI消息失败:",Tt)))}}),re.value=!0,At.warning(ae.message||"报告生成已中断")},Mt=async()=>{!u||Ot.value===void 0||Ot.value===null||(u&&(bh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(ae=>{if(ae.type==="ai"&&ae.isTyping&&(ae.isTyping=!1,at(ae,"completed"),(ae.webSearchRaw||ae.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),ae.ai_message_id)){const fe={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(fe):ae.content;Ce&&(ae.summary||ae._fullSummary,gd(ae.ai_message_id,Ce).catch(Ft=>console.error("回写AI消息失败:",Ft)))}}),re.value=!0,At.success("已停止生成"),Y4e(null,Ot.value).catch(ae=>console.warn("停止请求失败:",ae)))},Gt=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 fe=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:Ot.value,is_network_search_enabled:J.value}),Tt=`${$V()}/report/complete-flow?${Ce.toString()}`;u=fAe(Tt,{onMessage:yn=>St(yn,fe),onError:tt,onComplete:Qe,onInterrupted:it})}catch(Ce){console.error("启动失败:",Ce),At.error(`启动失败: ${Ce.message}`),a.value=!1}},En=ae=>{Fe(),g.value=[],Ot.value=0,i.value=!0,Gt({question:`请详细介绍${ae}的相关内容`,windowSize:3,nResults:10})},Nn=ae=>{Fe(),g.value=[],Ot.value=0,i.value=!0,Gt({question:ae,windowSize:3,nResults:10})},xt=ae=>{ra(),Gt({question:ae,windowSize:3,nResults:10})},sn=async ae=>{if(a.value)return;_.value&&(Bo(),_.value=null),Fe(),X.value={},ue.value={},te.value={},re.value=!0,o.value=ae,l.value=ae.title,tn.value.forEach(Ce=>{Ce.isActive=Ce.id===ae.id}),i.value=!0;const fe={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};g.value=[fe];try{await _t(ae.id)?(g.value=g.value.filter(Ft=>Ft.id!==fe.id),await Vt(),Si(),z.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,fe)=>{f.value={item:ae,index:fe},p.value="history",c.value=!0},Bt=async()=>{f.value&&(p.value==="history"?await mn():p.value==="message"&&await Mn())},mn=async()=>{const{item:ae,index:fe}=f.value;try{const Ce=await Bn.deleteHistoryRecord({ai_conversation_id:ae.id});Ce.statusCode===200?(tn.value.splice(fe,1),Wt.value=tn.value.length,ae.isActive&&await cn(),At.success("删除成功")):At.error(Ce.msg||"删除失败")}catch(Ce){console.error("删除失败:",Ce),At.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},Mn=async()=>{const{messageIndex:ae}=f.value;try{const fe=g.value[ae],Ce=fe.ai_message_id||fe.rawData&&fe.rawData.id;fe&&Ce?(await Bn.deleteConversation({ai_message_id:Ce})).statusCode===200?(g.value.splice(ae,1),ae>0&&g.value.splice(ae-1,1),At.success("删除成功")):At.error("删除失败,请稍后重试"):(g.value.splice(ae,1),At.success("删除成功"))}catch(fe){console.error("删除失败:",fe),At.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},tr=()=>{c.value=!1,f.value=null,p.value=""},cn=async()=>{a.value||(_.value&&(Bo(),_.value=null),Fe(),Ot.value=0,g.value=[],r.value="",l.value="",L.value=null,i.value=!1,z.value=[],W.value=null,te.value={},ue.value={},X.value={},tn.value.forEach(ae=>ae.isActive=!1),await dt())},qe=()=>{k.value?Zt():yt()},yt=()=>{P()||At.error("语音识别启动失败,请检查麦克风权限")},Zt=()=>{M(),O.value.trim()&&(r.value=O.value)},bt=Y(null),Kt=Y([]),bn=Y(!1),Rn=()=>window.location.origin+"/tts/voice",Kn=async()=>{const ae=Rn();try{const fe=new AbortController,Ce=setTimeout(()=>fe.abort(),8e3),Ft={"Content-Type":"application/json"},Tt=Gf(),yn=Ev();if(Tt&&yn){const On=yn.charAt(0).toUpperCase()+yn.slice(1).toLowerCase();Ft.Authorization=`${On} ${Tt}`}const Cn=await fetch(ae,{method:"POST",headers:Ft,body:JSON.stringify({text:"测试"}),signal:fe.signal});return clearTimeout(Ce),Cn.ok?(await Cn.blob(),{success:!0,message:"TTS服务连接正常"}):{success:!1,message:`TTS服务响应错误: ${Cn.status}`}}catch(fe){let Ce="TTS服务连接失败";return fe.name==="AbortError"?Ce="TTS服务连接超时":fe.message.includes("Failed to fetch")&&(Ce="无法连接到TTS服务"),{success:!1,message:Ce}}},Fr=async(ae,fe=0)=>{const Ce=Rn(),Ft=2;try{const Tt=new AbortController,yn=setTimeout(()=>Tt.abort(),15e3),Cn={"Content-Type":"application/json"},On=Gf(),mr=Ev();if(On&&mr){const Pr=mr.charAt(0).toUpperCase()+mr.slice(1).toLowerCase();Cn.Authorization=`${Pr} ${On}`}const Er=await fetch(Ce,{method:"POST",headers:Cn,body:JSON.stringify({text:ae}),signal:Tt.signal});if(clearTimeout(yn),!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(fe<Ft&&(Tt.name==="AbortError"||Tt.message.includes("Failed to fetch")||Tt.message.includes("NetworkError")))return await new Promise(On=>setTimeout(On,(fe+1)*1e3)),Fr(ae,fe+1);let yn="语音合成失败";Tt.name==="AbortError"?yn="语音合成请求超时":Tt.message.includes("Failed to fetch")?yn="无法连接到语音合成服务":Tt.message.includes("TTS接口调用失败")&&(yn=Tt.message);const Cn=new Error(yn);throw Cn.originalError=Tt,Cn}},ho=ae=>{if(!ae)return"";let fe=ae.replace(/<[^>]*>/g,"");return fe=fe.replace(/\s+/g," ").trim(),fe=fe.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),fe},Wr=ae=>{if(ae.length<=60)return[ae];const fe=[];let Ce="",Ft=!0;const Tt=ae.split(/[。!?]/);for(const yn of Tt){if(yn.trim().length===0)continue;const Cn=yn+(yn.match(/[。!?]$/)?"":"。"),On=Ft?60:200;if(Ce.length+Cn.length<=On)Ce+=Cn;else if(Ce.length>0)fe.push(Ce.trim()),Ce=Cn,Ft=!1;else{const mr=Ft?60:200;fe.push(Cn.substring(0,mr)),Ce=Cn.substring(mr),Ft=!1}}return Ce.trim().length>0&&fe.push(Ce.trim()),fe},bo=ae=>new Promise((fe,Ce)=>{const Ft=new Audio(ae);bt.value=Ft,Ft.onended=()=>{bt.value=null,fe()},Ft.onerror=Tt=>{bt.value=null,Ce(Tt)},Ft.play().catch(Tt=>{bt.value=null,Ce(Tt)})}),Bo=()=>{try{bt.value&&(bt.value.pause(),bt.value.currentTime=0,bt.value=null),Kt.value=[],bn.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel()}catch(ae){console.warn("停止音频播放失败:",ae)}},br=async(ae,fe)=>{if(_.value===fe)try{const Ce=await Fr(ae[0]);if(_.value!==fe){URL.revokeObjectURL(Ce);return}const Tt=ae.slice(1).map(async(Cn,On)=>{try{const mr=await Fr(Cn);return{index:On+1,audioUrl:mr}}catch{return{index:On+1,audioUrl:null}}});if(await bo(Ce),URL.revokeObjectURL(Ce),_.value!==fe){(await Promise.allSettled(Tt)).forEach(On=>{On.status==="fulfilled"&&On.value.audioUrl&&URL.revokeObjectURL(On.value.audioUrl)});return}const yn=await Promise.allSettled(Tt);if(_.value!==fe){yn.forEach(Cn=>{Cn.status==="fulfilled"&&Cn.value.audioUrl&&URL.revokeObjectURL(Cn.value.audioUrl)});return}bn.value=!0;for(const Cn of yn){if(_.value!==fe)break;if(Cn.status==="fulfilled"&&Cn.value.audioUrl)try{await bo(Cn.value.audioUrl),URL.revokeObjectURL(Cn.value.audioUrl)}catch(On){console.error("音频播放失败:",On)}}bn.value=!1}catch(Ce){console.error("音频队列播放失败:",Ce),bn.value=!1}},Vr=async ae=>{if(_.value===ae.id)Bo(),_.value=null;else{_.value&&(Bo(),_.value=null);const fe=ae.displayContent||ae.content;if(fe&&fe.trim())try{const Ce=ho(fe);if(Ce.length===0){At.warning("文本内容为空,无法进行语音合成");return}if(_.value=ae.id,Ce.length<=60){const Ft=await Fr(Ce);await bo(Ft),URL.revokeObjectURL(Ft)}else{const Ft=Wr(Ce);await br(Ft,ae.id)}}catch(Ce){console.error("语音合成失败:",Ce),At.error("语音合成失败,请稍后重试")}finally{_.value=null,bn.value=!1}}},wo=ae=>_.value===ae,Rr=ae=>{if(console.log("点击删除按钮,消息索引:",ae),g.value.length===2){At.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),At.warning("消息长度不能超过2000字")),Z.value&&clearTimeout(Z.value),!r.value.trim()){H.value=[];return}Z.value=setTimeout(()=>{xi(r.value)},100)},$r=()=>{if(L.value){At.warning("只能上传一个文件,请先删除当前文件");return}V.value?.click()},Ao=async ae=>{try{if(ae.size===0)throw new Error("Word文件为空");if(!qE)throw new Error("Word文档解析库未正确加载");const fe=ae.name.toLowerCase().split(".").pop(),Ce=await ae.arrayBuffer();if(fe==="docx"){const Tt=new Uint8Array(Ce.slice(0,2));if(Tt[0]!==80||Tt[1]!==75)throw new Error("文件不是有效的.docx格式,可能已损坏")}else if(fe==="doc")throw new Error("检测到.doc格式文件。请将文件另存为.docx格式后重新上传。");return(await zV.extractRawText({arrayBuffer:Ce})).value}catch(fe){throw console.error("Word文件读取失败:",fe),fe.message.includes("Can't find end of central directory")?new Error("文件格式错误:这不是一个有效的Word文档,或者文件已损坏。"):fe.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):fe}},Cr=async ae=>{const fe=ae.target.files[0];if(fe)try{const Ce=oa(fe);if(!qE)throw new Error("Word文档解析库未正确加载,请刷新页面重试");j.value=!0;const Ft=await Ao(fe);L.value={file:fe,name:fe.name,size:fe.size,type:Ce,icon:_r(Ce),content:Ft},At.success(`文件读取成功,共提取 ${Ft.length} 个字符`)}catch(Ce){console.error("文件读取失败:",Ce),At.error(Ce.message||"文件读取失败,请重试")}finally{j.value=!1,ae.target.value=""}},Ho=()=>{L.value&&(L.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)}},ra=()=>{H.value=[],Z.value&&(clearTimeout(Z.value),Z.value=null)},ti=ae=>{ae.target.closest(".user-recommend-questions")||ra(),me.value&&!ae.target.closest(".web-search-capsule-outer")&&!ae.target.closest(".web-search-sidebar")&&(me.value=!1)},Lo=()=>{J.value=!J.value,At[J.value?"success":"info"](J.value?"联网搜索已启用":"联网搜索已关闭")},Qo=ae=>{X.value[ae]=!X.value[ae]},Ai=ae=>{if(!ae||typeof ae!="string"||!ae.trim()){At.warning("链接地址无效");return}try{let fe=ae.trim();!fe.startsWith("http://")&&!fe.startsWith("https://")&&(fe="https://"+fe),window.open(fe,"_blank","noopener,noreferrer")}catch(fe){console.error("打开链接失败:",fe),At.error("无法打开链接")}},Ci=ae=>{z.value=[],W.value=null,r.value=ae,In()},xi=async ae=>{if(!ae||!ae.trim()||a.value||be.value){H.value=[];return}try{G.value=!0;const fe=await Bn.getUserRecommendQuestion({user_message:ae.trim()});if(a.value||be.value){H.value=[];return}fe.statusCode===200&&fe.data&&fe.data.questions?H.value=fe.data.questions:H.value=[]}catch(fe){console.error("获取推荐问题失败:",fe),H.value=[]}finally{G.value=!1}},mi=async(ae,fe,Ce)=>{if(!ae||!fe||!Ce){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",ae),console.log("AI回复:",fe.substring(0,100)+"..."),console.log("消息ID:",Ce),U.value=!0;const Ft=`基于以下对话内容,直接生成3条相关的推荐问题。
  658. 【对话内容】
  659. 用户问题:${ae}
  660. AI回复:${fe}
  661. 【生成要求】
  662. - 直接输出3个问题,每个问题一行
  663. - 问题要与原问题相关但有所延伸
  664. - 问题要具体、实用,符合中文表达习惯
  665. - 不要包含任何编号、标题、说明文字
  666. - 不要重复上述指令内容`,Tt=await Bn.guessYouWant({message:Ft,ai_message_id:Ce});if(console.log("AI相关推荐问题响应:",Tt),Tt.statusCode===200&&Tt.data&&Tt.data.reply){const Cn=Tt.data.reply.trim().split(`
  667. `).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,mr,Er)=>Er.indexOf(On)===mr).slice(0,3);Cn.length>0?(z.value=Cn,W.value=Ce,console.log("✅ AI相关推荐问题数据已设置:"),console.log(" - 推荐问题数量:",Cn.length),console.log(" - 推荐问题内容:",Cn),console.log(" - 关联消息ID:",Ce),await Vt(),console.log("✅ DOM已更新,推荐问题已显示")):(console.log("解析推荐问题失败,使用默认问题"),z.value=[],W.value=null)}else console.error("获取AI相关推荐问题失败:",Tt.statusCode),z.value=[],W.value=null}catch(Ft){console.error("获取AI相关推荐问题失败:",Ft),z.value=[],W.value=null}finally{U.value=!1}},oa=ae=>{if(ae.size>Ae.maxSize)throw new Error("文件大小不能超过20MB");const fe="."+ae.name.split(".").pop().toLowerCase();if(!Ae.allowedTypes.includes(fe))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return fe},_r=ae=>{switch(ae){case".doc":case".docx":return wq;default:return"📎"}},Si=()=>{Vt(()=>{const ae=document.querySelector(".chat-content");ae&&(ae.scrollTop=ae.scrollHeight)})},ha=ae=>{if(ae===0)return"0 B";const fe=1024,Ce=["B","KB","MB","GB"],Ft=Math.floor(Math.log(ae)/Math.log(fe));return parseFloat((ae/Math.pow(fe,Ft)).toFixed(2))+" "+Ce[Ft]},Ge=ae=>{console.log("编辑用户消息:",ae.content),r.value=ae.content,ae.file&&(L.value=ae.file,console.log("恢复文件信息:",ae.file.name));const fe=document.querySelector(".message-input");fe&&(fe.focus(),fe.setSelectionRange(fe.value.length,fe.value.length))},We=async ae=>{if(console.log("重新生成回复,消息索引:",ae),ae>0){const fe=g.value[ae-1];fe&&fe.type==="user"&&(console.log("重新发送用户消息:",fe.content),r.value=fe.content,fe.file&&(L.value=fe.file),await In())}},ne=async ae=>{try{await navigator.clipboard.writeText(ae),At.success("复制成功")}catch{const Ce=document.createElement("textarea");Ce.value=ae,document.body.appendChild(Ce),Ce.select(),document.execCommand("copy"),document.body.removeChild(Ce),At.success("复制成功")}},Ie=ae=>{ne(ae.content)},Ve=ae=>{let fe=ae.summary||ae.displayContent||ae.content;if(fe&&fe.includes("<")){const Ce=document.createElement("div");Ce.innerHTML=fe,fe=Ce.textContent||Ce.innerText||fe}!fe&&ae.reports&&ae.reports.length>0&&(fe=ae.reports.filter(Ce=>Ce.type!=="category_title").map(Ce=>Ce.report||"").join(`
  668. `)),ae.webSearchSummary&&(fe=fe?`${fe}
  669. 【网络搜索总结】
  670. ${ae.webSearchSummary}`:ae.webSearchSummary),fe&&fe.trim()?ne(fe):At.warning("暂无可复制的内容")},Ut=async ae=>{console.log("点赞消息:",ae.id),ae.userFeedback==="like"?ae.userFeedback=null:ae.userFeedback="like",g.value=[...g.value],await rn(ae)},It=async ae=>{console.log("点踩消息:",ae.id),ae.userFeedback==="dislike"?ae.userFeedback=null:ae.userFeedback="dislike",g.value=[...g.value],await rn(ae)},rn=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 fe=ae.ai_message_id||ae.rawData&&ae.rawData.id;if(!fe){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:fe,feedback:Ce});const Ft=await Bn.likeAndDislike({id:fe,user_feedback:Ce});Ft.statusCode===200?(console.log("反馈同步成功"),Ce===2?At.success("点赞成功"):Ce===3?At.success("点踩成功"):At.success("已取消反馈")):(console.error("反馈同步失败:",Ft.msg),At.error("反馈提交失败,请稍后重试"))}catch(fe){console.error("同步反馈失败:",fe),At.error("反馈同步失败,请稍后重试")}},dn=async ae=>{!ae||!ae.trim()||(console.log("自动发送消息:",ae),i.value=!0,g.value.length===0&&(tn.value.forEach(fe=>{fe.isActive=!1}),console.log("自动发送新对话,清除所有历史记录的选中状态"),X.value={},ue.value={},te.value={}),z.value=[],W.value=null,await Gt({question:ae,windowSize:3,nResults:10}))},kn=()=>{try{const ae=window.devicePixelRatio||1;if(document.documentElement.style.setProperty("--system-zoom",ae),ae!==1){const Ce=1/ae,Ft=document.createElement("style");Ft.id="bracket-zoom-compensation";const Tt=document.getElementById("bracket-zoom-compensation");Tt&&Tt.remove(),document.head.appendChild(Ft)}const fe=()=>{setTimeout(()=>{kn()},100)};return window.addEventListener("resize",fe),()=>{window.removeEventListener("resize",fe);const Ce=document.getElementById("bracket-zoom-compensation");Ce&&Ce.remove()}}catch(ae){console.error("❌ 中括号缩放补偿初始化失败:",ae)}},or=async ae=>{const fe=ae.target,Ce=fe.closest(".link-capsule");if(Ce){ae.preventDefault(),ae.stopPropagation();const Tt=Ce.getAttribute("data-link")||Ce.getAttribute("href");Tt&&Tt!=="#"&&Vn(Tt);return}if(!fe.classList.contains("standard-reference"))return;ae.preventDefault(),ae.stopPropagation();const Ft=fe.getAttribute("data-standard")||fe.getAttribute("data-reference");if(Ft)try{const Tt=await Bn.getFileLink({fileName:Ft});Tt.statusCode===200&&Tt.data&&Tt.data?window.open(Tt.data,"_blank"):At.warning("暂无文件")}catch(Tt){console.error("获取文件失败:",Tt),At.error("获取文件失败,请稍后重试")}},Vn=ae=>{try{new URL(ae)}catch{At.error("无效的链接地址");return}const fe=document.createElement("div");fe.style.cssText=`
  671. position: fixed;
  672. top: 0;
  673. left: 0;
  674. width: 100%;
  675. height: 100%;
  676. background: rgba(0, 0, 0, 0.5);
  677. z-index: 10000;
  678. display: flex;
  679. align-items: center;
  680. justify-content: center;
  681. padding: 20px;
  682. `;const Ce=document.createElement("div");Ce.style.cssText=`
  683. width: 90%;
  684. height: 90%;
  685. background: white;
  686. border-radius: 12px;
  687. overflow: hidden;
  688. display: flex;
  689. flex-direction: column;
  690. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  691. `;const Ft=document.createElement("div");Ft.style.cssText=`
  692. padding: 16px 20px;
  693. background: #f5f5f5;
  694. border-bottom: 1px solid #e0e0e0;
  695. display: flex;
  696. align-items: center;
  697. justify-content: space-between;
  698. `;const Tt=document.createElement("div");Tt.style.cssText=`
  699. font-size: 14px;
  700. color: #666;
  701. overflow: hidden;
  702. text-overflow: ellipsis;
  703. white-space: nowrap;
  704. flex: 1;
  705. margin-right: 16px;
  706. `,Tt.textContent=ae;const yn=document.createElement("button");yn.textContent="✕",yn.style.cssText=`
  707. background: none;
  708. border: none;
  709. font-size: 24px;
  710. color: #666;
  711. cursor: pointer;
  712. padding: 0;
  713. width: 32px;
  714. height: 32px;
  715. display: flex;
  716. align-items: center;
  717. justify-content: center;
  718. border-radius: 4px;
  719. transition: all 0.2s;
  720. `,yn.onmouseover=()=>{yn.style.background="#e0e0e0"},yn.onmouseout=()=>{yn.style.background="none"},yn.onclick=()=>{document.body.removeChild(fe)};const Cn=document.createElement("iframe");Cn.src=ae,Cn.style.cssText=`
  721. width: 100%;
  722. height: 100%;
  723. border: none;
  724. `,Ft.appendChild(Tt),Ft.appendChild(yn),Ce.appendChild(Ft),Ce.appendChild(Cn),fe.appendChild(Ce),fe.onclick=On=>{On.target===fe&&document.body.removeChild(fe)},document.body.appendChild(fe)},xr=ae=>{typeof ae=="string"?(_e.value=ae,Q.value=""):(_e.value=ae.filePath,Q.value=ae.fileName||""),ge.value=!0},sr=ae=>{const fe=g.value[ae];fe&&fe.webSearchRaw&&(Me.value=fe.webSearchRaw,me.value=!me.value)};Ct(O,ae=>{!ae||k.value||(r.value=ae)}),Ct(I,ae=>{ae&&(console.error("语音识别错误:",ae),At.error(ae))}),Ct(me,ae=>{console.log("🔍 网络搜索侧边栏状态变化:",ae),requestAnimationFrame(()=>{setTimeout(()=>{we()},350)})});const nr=()=>{document.querySelectorAll(".standard-reference").forEach(fe=>{fe.removeEventListener("click",or),fe.addEventListener("click",or)})};let Or=null,cr=null;const dr=()=>{console.log("📜 handleProgressCardScroll 被触发");const ae=document.querySelector(".chat-header"),fe=ae?ae.getBoundingClientRect().bottom:0;console.log("📐 headerBottom:",fe),console.log("📊 messageContentRefs 数量:",Object.keys(y.value).length),Object.keys(y.value).forEach(Ce=>{const Ft=g.value[Ce];if(!Ft||Ft.type!=="ai"||!Ft.showStats){console.log(`⏭️ 跳过消息 ${Ce}:`,{exists:!!Ft,type:Ft?.type,showStats:Ft?.showStats});return}console.log(`✅ 处理消息 ${Ce}`);const Tt=y.value[Ce];if(!Tt){console.log(`❌ 消息 ${Ce} 没有找到 contentEl`);return}const yn=Tt.querySelector(".files-stats-white");if(!yn){console.log(`❌ 消息 ${Ce} 没有找到 .files-stats-white`);return}console.log(`✅ 消息 ${Ce} 找到进度卡片`);const Cn=yn.getBoundingClientRect(),On=Tt.getBoundingClientRect();if(!m.value[Ce]){m.value[Ce]={initialLeft:Cn.left,initialWidth:Cn.width,isSticky:!1,offsetTop:Cn.top-On.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},console.log(`[进度卡片] 开始初始化 - 消息${Ce}, left=${Cn.left}, width=${Cn.width}, offsetTop=${m.value[Ce].offsetTop}`),Vt(()=>{requestAnimationFrame(()=>{if(m.value[Ce]){const Pr=Tt.querySelector(".files-stats-white");if(Pr){const ni=Pr.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,oo=Math.max(0,100-Io);setTimeout(()=>{m.value[Ce]&&(m.value[Ce].initialized=!0,m.value[Ce].isInitializing=!1,console.log(`[进度卡片] 初始化完成 - 消息${Ce}`))},oo)}})});return}if(!m.value[Ce].initialized||m.value[Ce].isInitializing)return;const mr=Date.now()-m.value[Ce].initStartTime;if(mr<100){console.log(`⏱️ 消息 ${Ce} 初始化中,已过${mr}ms,跳过吸附判断`);return}const Er=On.top+m.value[Ce].offsetTop,Wo=Er<=fe&&On.bottom>fe+60;console.log(`📍 消息 ${Ce} 吸附判断:`,{naturalTop:Er,headerBottom:fe,"naturalTop <= headerBottom":Er<=fe,"contentRect.bottom":On.bottom,"headerBottom + 60":fe+60,shouldStick:Wo,currentlySticky:m.value[Ce].isSticky}),m.value[Ce].isSticky!==Wo&&(m.value[Ce].initialLeft=Cn.left,m.value[Ce].initialWidth=Cn.width),m.value[Ce].isSticky=Wo,m.value[Ce].stickyTop=fe})},we=()=>{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(Ft=>{const Tt=m.value[Ft];Tt&&Tt.isSticky&&(Ce[Ft]=!0,Tt.isSticky=!1)}),Vt(()=>{document.body.offsetHeight,Object.keys(m.value).forEach(Ft=>{const Tt=m.value[Ft];if(!Tt)return;const yn=y.value[Ft];if(!yn)return;const Cn=yn.querySelector(".files-stats-white");if(!Cn)return;const On=Cn.getBoundingClientRect(),mr=yn.getBoundingClientRect();Tt.initialLeft=On.left,Tt.initialWidth=On.width,Tt.offsetTop=On.top-mr.top,console.log(` - 更新消息${Ft}的位置: left=${On.left}, width=${On.width}`)}),Object.keys(Ce).forEach(Ft=>{m.value[Ft]&&(m.value[Ft].isSticky=!0)}),Vt(()=>{dr()})})},100)};return jn(async()=>{try{console.log("🚀 AI问答页面初始化开始,优先加载历史记录..."),zt.value=!0,window.addEventListener("error",Ft=>{console.error("全局错误:",Ft.error)}),window.addEventListener("unhandledrejection",Ft=>{console.error("未处理的Promise拒绝:",Ft.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",we),window.addEventListener("beforeunload",R),window.addEventListener("unload",R),document.addEventListener("visibilitychange",N),kn(),await dt(),console.log("✅ AI问答历史记录加载完成");try{const Ft=await Kn();Ft.success?console.log("✅ TTS服务连接正常"):console.warn("⚠️ TTS服务连接异常:",Ft.message)}catch(Ft){console.warn("⚠️ TTS服务连接测试失败:",Ft)}const fe=Promise.all([Xo(),qi()]);try{await fe,console.log("✅ AI问答其他数据加载完成")}catch(Ft){console.warn("⚠️ AI问答其他数据加载失败,但不影响主要功能:",Ft)}console.log("🎉 AI问答页面初始化完成");const Ce=t.query.autoMessage;Ce&&(console.log("检测到自动发送消息:",Ce),n.replace({path:t.path,query:{...t.query,autoMessage:void 0}}),dn(Ce))}catch(ae){console.error("组件初始化失败:",ae)}}),Yr(()=>{_.value&&(Bo(),_.value=null),Fe(),document.removeEventListener("click",or);const ae=document.querySelector(".chat-content");ae&&ae.removeEventListener("scroll",dr),window.removeEventListener("resize",we),Or&&(clearTimeout(Or),Or=null),window.removeEventListener("beforeunload",R),window.removeEventListener("unload",R),document.removeEventListener("visibilitychange",N)}),Sb(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 fe=ce(ae.content),Ce=Pe(fe,ae.file),Ft=ht(Ce);ae.displayContent=Ft,setTimeout(()=>{nr()},100)}catch(fe){console.error("重新渲染markdown失败:",fe)}g.value=[...g.value],console.log("页面重新激活完成,markdown内容已重新渲染")}),(ae,fe)=>(F(),K("div",{class:"chat-container",onClick:ti},[$e(VC),x("div",O0t,[x("div",M0t,[fe[12]||(fe[12]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:C(JC),alt:"新建任务",class:oe(["new-chat-btn",{disabled:a.value}]),onClick:cn,style:Jt({cursor:a.value?"not-allowed":"pointer"})},null,14,P0t)]),x("div",N0t,[zt.value?(F(),K("div",R0t,fe[13]||(fe[13]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Wt.value>0?(F(!0),K(Nt,{key:1},on(tn.value,(Ce,Ft)=>(F(),K("div",{key:Ft,class:oe(["history-item",{active:Ce.isActive}]),onClick:Tt=>Ce.isActive||a.value?null:sn(Ce),style:Jt({cursor:Ce.isActive?"default":a.value?"not-allowed":"pointer"})},[x("div",L0t,[x("div",F0t,ze(Ce.title),1),x("div",U0t,ze(Ce.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":Ce.isActive}]),onClick:Qt(Tt=>vt(Ce,Ft),["stop"])},fe[14]||(fe[14]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,z0t)],14,B0t))),128)):(F(),K("div",$0t,[x("img",{src:C(e5),alt:"暂无数据",class:"empty-icon"},null,8,j0t),fe[15]||(fe[15]=x("div",{class:"empty-text"},"暂无数据",-1))]))])]),x("div",{class:oe(["main-chat",{"sidebar-open":me.value}])},[x("div",H0t,[l.value?(F(),K("div",W0t,[x("h2",null,ze(l.value),1)])):(F(),K("h2",V0t,"AI问答"))]),x("div",q0t,[i.value?(F(),K("div",ggt,[(F(!0),K(Nt,null,on(g.value,(Ce,Ft)=>(F(),K("div",{key:Ft,class:oe(["message-item",Ce.type])},[Ce.type==="user"?(F(),K("div",vgt,[x("div",mgt,[Ce.file?(F(),K("div",ygt,[x("div",bgt,[x("div",wgt,[Ce.file.type===".doc"||Ce.file.type===".docx"?(F(),K("img",{key:0,src:Ce.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,Agt)):(F(),K("span",Cgt,ze(Ce.file.icon),1))]),x("div",xgt,[x("div",Sgt,ze(Ce.file.name),1),x("div",Egt,ze(ha(Ce.file.size)),1)])])])):xe("",!0),Ce.content?(F(),K("div",kgt,ze(Ce.content),1)):xe("",!0)]),x("div",Tgt,[x("button",{class:"action-btn copy-btn",onClick:Tt=>Ie(Ce)},[x("img",{src:C(Lv),alt:"复制",class:"action-icon"},null,8,Dgt),fe[25]||(fe[25]=An(" 复制 ",-1))],8,_gt),x("button",{class:"action-btn edit-btn",onClick:Tt=>Ge(Ce)},[x("img",{src:C(t5),alt:"编辑",class:"action-icon"},null,8,Ogt),fe[26]||(fe[26]=An(" 编辑 ",-1))],8,Igt)])])):Ce.type==="ai"?(F(),K("div",Mgt,[Ce.webSearchRaw&&Ce.webSearchRaw.total>0?(F(),K("div",Pgt,[$e(uAe,{total:Ce.webSearchRaw.total,results:Ce.webSearchRaw.results,isExpanded:me.value,onToggle:Tt=>sr(Ft)},null,8,["total","results","isExpanded","onToggle"])])):xe("",!0),x("div",Ngt,[x("div",Rgt,[x("img",{src:C(tk),alt:"AI",class:"ai-icon"},null,8,Bgt)]),x("div",{class:"message-content","data-message-index":Ft,ref_for:!0,ref:Tt=>y.value[Ft]=Tt},[x("div",Fgt,[Ce.showStats?(F(),K("div",{key:0,class:oe(["files-stats-white",{sticky:m.value[Ft]?.isSticky&&m.value[Ft]?.initialized&&!m.value[Ft]?.isInitializing}]),style:Jt(m.value[Ft]?.isSticky&&m.value[Ft]?.initialized&&!m.value[Ft]?.isInitializing&&m.value[Ft]?.initialLeft>0&&m.value[Ft]?.initialWidth>0?{position:"fixed",top:"56px",left:m.value[Ft].initialLeft+"px",width:m.value[Ft].initialWidth+"px",zIndex:999}:{}),"data-message-index":Ft},[x("div",zgt,[$e(dAe,{status:He(Ce.currentStatus,Ce.progress),size:36,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:Ce.statusMessage},null,8,$gt)]),Ce.progress<100?(F(),K("div",jgt,[x("div",Hgt,[x("div",{class:"progress-fill",style:Jt({width:Ce.progress+"%"})},null,4),x("div",{class:"progress-dot",style:Jt({left:Ce.progress+"%"})},null,4)]),x("span",Wgt,ze(Ce.progress)+"%",1)])):xe("",!0),Ce.progress===100&&Ce.reports&&Ce.reports.length>0?(F(),K("div",Vgt,[$e(lAe,{reports:Ce.reports.filter(Tt=>Tt.status==="completed"&&Tt.type!=="category_title"),disabled:!1,title:De.value},null,8,["reports","title"])])):xe("",!0)],14,Ugt)):xe("",!0),Ce.summary?(F(),K("div",qgt,[$e(ly,{content:Ce.summary,streaming:!1},null,8,["content"])])):xe("",!0),Ce.isTyping&&(!Ce.reports||Ce.reports.length===0)&&Ce.progress<100?(F(),K("div",Ggt,fe[27]||(fe[27]=[ki('<span class="loading-text" data-v-53f29151>AI正在思考中...</span><div class="thinking-animation" data-v-53f29151><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span></div>',2)]))):xe("",!0),Ce.reports&&Ce.reports.length>0?(F(),K("div",Kgt,[(F(!0),K(Nt,null,on(Ce.reports,(Tt,yn)=>(F(),K(Nt,{key:`${Tt.source_file}-${Tt.file_index}-${yn}`},[Tt.type==="category_title"?(F(),mt(aAe,{key:0,category:Tt.category,number:Tt.number,count:Tt.count,onToggle:Cn=>ot(Ft,Cn)},null,8,["category","number","count","onToggle"])):!Tt.type||Tt.type!=="category_title"?an((F(),mt(sAe,{key:1,report:Tt,onPreviewFile:xr},null,8,["report"])),[[Ar,gt(Ft,Tt.metadata?._displayCategory||Tt.metadata?.primary_category)]]):xe("",!0)],64))),128)),Ce.isTyping&&Ce.progress<100&&Ke(Ce.reports)?(F(),K("div",Ygt,fe[28]||(fe[28]=[ki('<span class="loading-text" data-v-53f29151>AI正在思考中...</span><div class="thinking-animation" data-v-53f29151><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span></div>',2)]))):xe("",!0)])):xe("",!0),Ce.hasWebSearchResults&&Ce.webSearchSummary?(F(),K("div",Qgt,[$e(cAe,{summary:Ce.webSearchSummary},null,8,["summary"])])):xe("",!0),!Ce.reports||Ce.reports.length===0?(F(),K("div",Zgt,[Ce.displayContent&&Ce.displayContent.length>0?(F(),K("div",Xgt,[x("div",{innerHTML:Ce.displayContent},null,8,Jgt)])):xe("",!0)])):xe("",!0)]),an(x("div",evt,null,512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]]),an(x("div",tvt,[x("div",nvt,[x("button",{class:"action-btn copy-btn",onClick:Tt=>Ve(Ce)},[x("img",{src:C(Lv),alt:"复制",class:"action-icon"},null,8,ovt),fe[29]||(fe[29]=An(" 复制 ",-1))],8,rvt),x("button",{class:"action-btn regenerate-btn",onClick:Tt=>We(Ft),disabled:be.value},[x("img",{src:C(yq),alt:"重新生成",class:"action-icon"},null,8,avt),fe[30]||(fe[30]=An(" 重新生成 ",-1))],8,ivt),x("button",{class:"action-btn delete-btn",onClick:Tt=>Rr(Ft)},fe[31]||(fe[31]=[x("img",{src:wc,alt:"删除",class:"action-icon"},null,-1),An(" 删除 ",-1)]),8,svt),x("button",{class:oe(["action-btn voice-btn",{speaking:wo(Ce.id)}]),onClick:Tt=>Vr(Ce)},[x("img",{src:C(n7),alt:"语音朗读",class:"action-icon"},null,8,uvt),An(" "+ze(wo(Ce.id)?"停止朗读":"语音朗读"),1)],10,lvt)]),x("div",cvt,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:Ce.userFeedback==="like"}]),onClick:Tt=>Ut(Ce),title:Ce.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Vy),alt:"点赞",class:"action-icon"},null,8,fvt)],10,dvt),x("button",{class:oe(["action-btn thumbs-down-btn",{active:Ce.userFeedback==="dislike"}]),onClick:Tt=>It(Ce),title:Ce.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(qy),alt:"踩",class:"action-icon"},null,8,hvt)],10,pvt)])],512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]])],8,Lgt)]),an(x("div",gvt,[x("div",{class:"search-sources-header",onClick:Tt=>Qo(Ce.id)},[x("span",null,"基于"+ze(Ce.searchSources?.length||0)+"个搜索来源",1),x("div",{class:oe(["expand-icon",{expanded:X.value[Ce.id]}])},fe[32]||(fe[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,vvt),an(x("div",mvt,[x("div",yvt,[x("div",bvt,[(F(!0),K(Nt,null,on(Ce.searchSources||[],(Tt,yn)=>(F(),K("div",{class:"source-card",key:yn,onClick:Cn=>C(Ai)(Tt.url)},[x("div",Avt,ze(Tt.title),1),x("div",Cvt,ze(Tt.content),1),x("div",xvt,ze(yn+1),1)],8,wvt))),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]]]),an(x("div",Svt,fe[33]||(fe[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)&&U.value&&(W.value===Ce.id||W.value===Ce.ai_message_id)&&z.value.length===0]]),an(x("div",Evt,[(F(!0),K(Nt,null,on(z.value,(Tt,yn)=>(F(),K("div",{key:yn,class:"related-question-item",onClick:Cn=>Ci(Tt)},[x("span",null,ze(Tt),1),fe[34]||(fe[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,kvt))),128))],512),[[Ar,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&(W.value===Ce.id||W.value===Ce.ai_message_id)&&z.value.length>0]])])):xe("",!0)],2))),128))])):(F(),K("div",G0t,[x("div",K0t,[x("div",Y0t,[x("img",{src:C(tk),alt:"AI头像",class:"ai-avatar-img"},null,8,Q0t)]),fe[16]||(fe[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",Z0t,[(F(!0),K(Nt,null,on(v.value,(Ce,Ft)=>(F(),K("div",{key:Ce.id||Ft,class:"function-card",onClick:Tt=>En(Ce.function_title)},[x("div",J0t,[x("div",egt,[x("img",{src:ye(Ce.function_title),alt:Ce.function_title,class:"card-icon-img"},null,8,tgt)]),x("h4",null,ze(Ce.function_title),1)]),x("div",ngt,[x("p",null,ze(Ce.function_content),1)])],8,X0t))),128)),v.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:fe[0]||(fe[0]=Ce=>En("桥梁结构设计问题"))},[x("div",rgt,[x("div",ogt,[x("img",{src:C(nk),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,igt)]),fe[17]||(fe[17]=x("h4",null,"桥梁结构设计问题",-1))]),fe[18]||(fe[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:fe[1]||(fe[1]=Ce=>En("桥梁施工技术咨询"))},[x("div",agt,[x("div",sgt,[x("img",{src:C(rk),alt:"施工技术咨询",class:"card-icon-img"},null,8,lgt)]),fe[19]||(fe[19]=x("h4",null,"施工技术咨询",-1))]),fe[20]||(fe[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:fe[2]||(fe[2]=Ce=>En("材料与力学问题"))},[x("div",ugt,[x("div",cgt,[x("img",{src:C(ok),alt:"材料与力学问题",class:"card-icon-img"},null,8,dgt)]),fe[21]||(fe[21]=x("h4",null,"材料与力学问题",-1))]),fe[22]||(fe[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:fe[3]||(fe[3]=Ce=>En("规范标准查询"))},[x("div",fgt,[x("div",pgt,[x("img",{src:C(ik),alt:"规范标准查询",class:"card-icon-img"},null,8,hgt)]),fe[23]||(fe[23]=x("h4",null,"规范标准查询",-1))]),fe[24]||(fe[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])]))]),!i.value&&!L.value?(F(),K("div",Tvt,[(F(!0),K(Nt,null,on(h.value,(Ce,Ft)=>(F(),K("div",{key:Ce.id||Ft,class:"question-tag",onClick:Tt=>Nn(Ce.question)},[x("img",{src:Be(Ce.question),alt:"问题",class:"question-icon"},null,8,Dvt),An(" "+ze(Ce.question),1)],8,_vt))),128)),h.value.length===0?(F(),K("div",{key:0,class:"question-tag",onClick:fe[4]||(fe[4]=Ce=>Nn("施工安全生产责任的规定"))},[x("img",{src:C(ak),alt:"问题",class:"question-icon"},null,8,Ivt),fe[35]||(fe[35]=An(" 施工安全生产责任的规定 ",-1))])):xe("",!0),h.value.length===0?(F(),K("div",{key:1,class:"question-tag",onClick:fe[5]||(fe[5]=Ce=>Nn("工程建设质量的要求"))},[x("img",{src:C(sk),alt:"问题",class:"question-icon"},null,8,Ovt),fe[36]||(fe[36]=An(" 工程建设质量的要求 ",-1))])):xe("",!0),h.value.length===0?(F(),K("div",{key:2,class:"question-tag",onClick:fe[6]||(fe[6]=Ce=>Nn("公路桥梁加固设计规范"))},[x("img",{src:C(lk),alt:"文档",class:"question-icon"},null,8,Mvt),fe[37]||(fe[37]=An(" 公路桥梁加固设计规范 ",-1))])):xe("",!0)])):xe("",!0),H.value.length>0?(F(),K("div",{key:1,class:"user-recommend-questions",onClick:fe[7]||(fe[7]=Qt(()=>{},["stop"]))},[x("div",Pvt,[(F(!0),K(Nt,null,on(H.value,(Ce,Ft)=>(F(),K("div",{key:Ft,class:"recommend-item",onClick:Tt=>xt(Ce)},ze(Ce),9,Nvt))),128))])])):xe("",!0),x("div",Rvt,[x("div",Bvt,[L.value?(F(),K("div",Lvt,[x("div",Fvt,[x("div",Uvt,[L.value.type===".doc"||L.value.type===".docx"?(F(),K("img",{key:0,src:L.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,zvt)):(F(),K("span",$vt,ze(L.value.icon),1))]),x("div",jvt,[x("div",Hvt,ze(L.value.name),1),x("div",Wvt,ze(ha(L.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:Ho},fe[38]||(fe[38]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",Vvt,[x("button",{class:oe(["network-search-btn",{active:J.value}]),onClick:Lo,title:J.value?"关闭联网搜索":"启用联网搜索",disabled:be.value},[x("div",Gvt,[x("img",{src:J.value?C(pAe):C(hAe),alt:"联网搜索",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Kvt)])],10,qvt),x("button",{class:"attach-btn",onClick:$r,disabled:be.value},[x("div",Qvt,[x("img",{src:C(bq),alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Zvt)])],8,Yvt),an(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":fe[8]||(fe[8]=Ce=>r.value=Ce),onKeyup:Lr(In,["enter"]),onInput:Br,disabled:be.value,maxlength:"2000"},null,40,Xvt),[[jr,r.value]]),x("button",{class:oe(["voice-btn",{recording:C(k)}]),onClick:qe,disabled:be.value},[x("div",emt,[x("img",{src:C(Xf),alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,tmt),C(k)?(F(),K("div",nmt)):xe("",!0)])],10,Jvt),fe[39]||(fe[39]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:fe[9]||(fe[9]=Ce=>a.value?Mt():In()),disabled:!a.value&&(be.value||!r.value.trim())},[a.value?(F(),K("span",omt,"停止")):(F(),K("img",{key:1,src:r.value.trim()&&!be.value?C(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,imt))],8,rmt)])])])],2),x("input",{ref_key:"fileInput",ref:V,type:"file",accept:".docx",style:{display:"none"},onChange:Cr},null,544),$e(ldt,{ref_key:"toastRef",ref:b,message:w.value,type:A.value,duration:S.value},null,8,["message","type","duration"]),$e(c0,{visible:c.value,title:ie.value,message:pe.value,onConfirm:Bt,onCancel:tr,onClose:tr},null,8,["visible","title","message"]),$e(e0t,{modelValue:ge.value,"onUpdate:modelValue":fe[10]||(fe[10]=Ce=>ge.value=Ce),"file-path":_e.value,"file-name":Q.value},null,8,["modelValue","file-path","file-name"]),$e(x0t,{visible:me.value,results:Me.value.results,keywords:Me.value.keywords,total:Me.value.total,"onUpdate:visible":fe[11]||(fe[11]=Ce=>me.value=Ce)},null,8,["visible","results","keywords","total"])]))}},smt=Yo(amt,[["__scopeId","data-v-53f29151"]]),lmt="modulepreload",umt=function(e){return"/"+e},voe={},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=umt(u),u in voe)return;voe[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":lmt,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)})},gAe="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==",r7="/assets/13-Bv7KwdLX.png",moe="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=",cmt="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=",r3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE4SURBVFiF7ZY/bsIwFMZ/RjlQGSoWhvYEPUKZWFg4wuMGMLAw0SP0BM3AgjrAEXoEDhDJHezAExAbBYdUar4lf5z3fT/ZVvzgv8tcvBE7Bd6Bpzt898AnMEfM4XYAsV/Ayx3B10BeQxA9FS6Jw8HN4jT0Qabu366M58ACyGNTWVca4HzNZ4iRJkKrALTyY7jYDBhjGWHoB2pCKrDsMKyBFWKKcqBXUTBT4RtgieG5ZjhA5uuXwMb7BgH2/joGBjVDqzTwvgGAcsNZRonDOfetmgEnt+bppXzDAPXXPKboHniYOoAOoAP4UwA/bQN8tA0w53QKtgAg5oCYPmUv8HCAE4iop+JiPI2iHZGTZddIvPKN9QPrRgCUb+w/sAK2ieO33vcGANe9DoEJlm/q74nC10+Aoe6KO/0C8TJFqP1ldx8AAAAASUVORK5CYII=",Aq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGSSURBVFiF7ZexbcJAFIa/F4NAggKKRKJzNmAEswFUuIQJyAaIDbIBlKSCDWAERqBDggIXRALh06VABmLOxNiRoOAv7969/9PzvbszPJVCq2ZxtHQL/TQ5XtIs1kIdpHU3gP/QE+AJcHeATNTE0i200NJBqAZjohm/fm0a1xKumsXRoT2PmiroVYabqSneWIGFW3RA+ufmKeRYMFm6hZZp0lgBC7oAaD6zu0yvPPa8uG7nFVrXS6V9zu8ifKClAwzC8VF7wAG41Tys8tjzsrtMDyCqmlc3YRrzuDketwvCOtx6Yiv8dmW4nZtiFm7etsj0ReP91S2B4ldASxVwLKzJws3bZnNrAjhaKMVNGxtAid8APQexwxAnc7FBzxV++98BKsPtXKFq5xDB3G9zVYv6RKkATBCnmWTmNwNcQgRKZp4I4BIiuTnc0IYmCOA96fpAdz+IHhtgXS/FPlCS5jADaGYA+5zfTQNxvI4PmppixDR4eDxIqj+esBTUTK8iYwXeht8DBTUiqG+SZga6HfUke+oHeMmu4S99q1IAAAAASUVORK5CYII=",dmt="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 fmt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dm(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bp,v8,n6=function(e){return e&&e.Math==Math&&e},po=n6(typeof globalThis=="object"&&globalThis)||n6(typeof window=="object"&&window)||n6(typeof self=="object"&&self)||n6(typeof bi=="object"&&bi)||(function(){return this})()||Function("return this")(),Cq=Function.prototype,yoe=Cq.apply,pmt=Cq.bind,boe=Cq.call,vAe=typeof Reflect=="object"&&Reflect.apply||(pmt?boe.bind(yoe):function(){return boe.apply(yoe,arguments)}),mAe=Function.prototype,jF=mAe.bind,HF=mAe.call,hmt=jF&&jF.bind(HF),Fi=jF?function(e){return e&&hmt(HF,e)}:function(e){return e&&function(){return HF.apply(e,arguments)}},Ss=function(e){return typeof e=="function"},zl=function(e){try{return!!e()}catch{return!0}},Pl=!zl((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),K2=Function.prototype.call,su=K2.bind?K2.bind(K2):function(){return K2.apply(K2,arguments)},woe={}.propertyIsEnumerable,Aoe=Object.getOwnPropertyDescriptor,gmt=Aoe&&!woe.call({1:2},1)?function(e){var t=Aoe(this,e);return!!t&&t.enumerable}:woe,xq={f:gmt},Tc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vmt=Fi({}.toString),mmt=Fi("".slice),Zg=function(e){return mmt(vmt(e),8,-1)},fM=po.Object,ymt=Fi("".split),yAe=zl((function(){return!fM("z").propertyIsEnumerable(0)}))?function(e){return Zg(e)=="String"?ymt(e,""):fM(e)}:fM,bmt=po.TypeError,Sq=function(e){if(e==null)throw bmt("Can't call method on "+e);return e},tf=function(e){return yAe(Sq(e))},Lu=function(e){return typeof e=="object"?e!==null:Ss(e)},Xl={},Coe=function(e){return Ss(e)?e:void 0},qb=function(e,t){return arguments.length<2?Coe(Xl[e])||Coe(po[e]):Xl[e]&&Xl[e][t]||po[e]&&po[e][t]},yA=Fi({}.isPrototypeOf),pM=qb("navigator","userAgent")||"",xoe=po.process,Soe=po.Deno,Eoe=xoe&&xoe.versions||Soe&&Soe.version,koe=Eoe&&Eoe.v8;koe&&(v8=(Bp=koe.split("."))[0]>0&&Bp[0]<4?1:+(Bp[0]+Bp[1])),!v8&&pM&&(!(Bp=pM.match(/Edge\/(\d+)/))||Bp[1]>=74)&&(Bp=pM.match(/Chrome\/(\d+)/))&&(v8=+Bp[1]);var r6,uk=v8,ud=!!Object.getOwnPropertySymbols&&!zl((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uk&&uk<41})),Eq=ud&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wmt=po.Object,uy=Eq?function(e){return typeof e=="symbol"}:function(e){var t=qb("Symbol");return Ss(t)&&yA(t.prototype,wmt(e))},Amt=po.String,WF=function(e){try{return Amt(e)}catch{return"Object"}},Cmt=po.TypeError,kq=function(e){if(Ss(e))return e;throw Cmt(WF(e)+" is not a function")},ck=function(e,t){var n=e[t];return n==null?void 0:kq(n)},xmt=po.TypeError,Smt=Object.defineProperty,Oh=po["__core-js_shared__"]||(function(e,t){try{Smt(po,e,{value:t,configurable:!0,writable:!0})}catch{po[e]=t}return t})("__core-js_shared__",{}),fm=dm((function(e){(e.exports=function(t,n){return Oh[t]||(Oh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Emt=po.Object,n5=function(e){return Emt(Sq(e))},kmt=Fi({}.hasOwnProperty),$o=Object.hasOwn||function(e,t){return kmt(n5(e),t)},Tmt=0,_mt=Math.random(),Dmt=Fi(1 .toString),dk=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Dmt(++Tmt+_mt,36)},Y2=fm("wks"),Xg=po.Symbol,Toe=Xg&&Xg.for,Imt=Eq?Xg:Xg&&Xg.withoutSetter||dk,Ks=function(e){if(!$o(Y2,e)||!ud&&typeof Y2[e]!="string"){var t="Symbol."+e;ud&&$o(Xg,e)?Y2[e]=Xg[e]:Y2[e]=Eq&&Toe?Toe(t):Imt(t)}return Y2[e]},Omt=po.TypeError,Mmt=Ks("toPrimitive"),Pmt=function(e,t){if(!Lu(e)||uy(e))return e;var n,r=ck(e,Mmt);if(r){if(n=su(r,e,t),!Lu(n)||uy(n))return n;throw Omt("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 xmt("Can't convert object to primitive value")})(e)},Gb=function(e){var t=Pmt(e,"string");return uy(t)?t:t+""},VF=po.document,Nmt=Lu(VF)&&Lu(VF.createElement),bAe=function(e){return Nmt?VF.createElement(e):{}},wAe=!Pl&&!zl((function(){return Object.defineProperty(bAe("div"),"a",{get:function(){return 7}}).a!=7})),_oe=Object.getOwnPropertyDescriptor,Rmt=Pl?_oe:function(e,t){if(e=tf(e),t=Gb(t),wAe)try{return _oe(e,t)}catch{}if($o(e,t))return Tc(!su(xq.f,e,t),e[t])},o7={f:Rmt},Bmt=/#|\.prototype\./,r5=function(e,t){var n=Fmt[Lmt(e)];return n==zmt||n!=Umt&&(Ss(t)?zl(t):!!t)},Lmt=r5.normalize=function(e){return String(e).replace(Bmt,".").toLowerCase()},Fmt=r5.data={},Umt=r5.NATIVE="N",zmt=r5.POLYFILL="P",$mt=r5,Doe=Fi(Fi.bind),Tq=function(e,t){return kq(e),t===void 0?e:Doe?Doe(e,t):function(){return e.apply(t,arguments)}},jmt=po.String,Hmt=po.TypeError,du=function(e){if(Lu(e))return e;throw Hmt(jmt(e)+" is not an object")},Wmt=po.TypeError,Ioe=Object.defineProperty,Vmt=Pl?Ioe:function(e,t,n){if(du(e),t=Gb(t),du(n),wAe)try{return Ioe(e,t,n)}catch{}if("get"in n||"set"in n)throw Wmt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},N0={f:Vmt},tl=Pl?function(e,t,n){return N0.f(e,t,Tc(1,n))}:function(e,t,n){return e[t]=n,e},qmt=o7.f,Gmt=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 vAe(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=!$mt(c?o:d+(f?".":"#")+o,e.forced)&&v&&$o(v,o),a=h[o],n&&(s=e.noTargetGet?(u=qmt(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Tq(i,po):e.wrap&&n?Gmt(i):p&&Ss(i)?Fi(i):i,(e.sham||i&&i.sham||a&&a.sham)&&tl(l,"sham",!0),tl(h,o,l),p&&($o(Xl,r=d+"Prototype")||tl(Xl,r,{}),tl(Xl[r],o,i),e.real&&g&&!g[o]&&tl(g,o,i)))},Ooe=fm("keys"),i7=function(e){return Ooe[e]||(Ooe[e]=dk(e))},Kmt=!zl((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Moe=i7("IE_PROTO"),qF=po.Object,Ymt=qF.prototype,fk=Kmt?qF.getPrototypeOf:function(e){var t=n5(e);if($o(t,Moe))return t[Moe];var n=t.constructor;return Ss(n)&&t instanceof n?n.prototype:t instanceof qF?Ymt:null},Qmt=po.String,Zmt=po.TypeError,pk=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 Zmt("Can't set "+Qmt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Xmt=Math.ceil,Jmt=Math.floor,_q=function(e){var t=+e;return t!=t||t===0?0:(t>0?Jmt:Xmt)(t)},e1t=Math.max,t1t=Math.min,GF=function(e,t){var n=_q(e);return n<0?e1t(n+t,0):t1t(n,t)},n1t=Math.min,o5=function(e){return(t=e.length)>0?n1t(_q(t),9007199254740991):0;var t},r1t=function(e){return function(t,n,r){var o,i=tf(t),a=o5(i),s=GF(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}},o1t={indexOf:r1t(!1)},i5={},i1t=o1t.indexOf,Poe=Fi([].push),AAe=function(e,t){var n,r=tf(e),o=0,i=[];for(n in r)!$o(i5,n)&&$o(r,n)&&Poe(i,n);for(;t.length>o;)$o(r,n=t[o++])&&(~i1t(i,n)||Poe(i,n));return i},hk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a1t=hk.concat("length","prototype"),s1t=Object.getOwnPropertyNames||function(e){return AAe(e,a1t)},Dq={f:s1t},m8={f:Object.getOwnPropertySymbols},l1t=Fi([].concat),u1t=qb("Reflect","ownKeys")||function(e){var t=Dq.f(du(e)),n=m8.f;return n?l1t(t,n(e)):t},Iq=Object.keys||function(e){return AAe(e,hk)},c1t=Pl?Object.defineProperties:function(e,t){du(e);for(var n,r=tf(t),o=Iq(t),i=o.length,a=0;i>a;)N0.f(e,n=o[a++],r[n]);return e},d1t=qb("document","documentElement"),CAe=i7("IE_PROTO"),hM=function(){},xAe=function(e){return"<script>"+e+"<\/script>"},Noe=function(e){e.write(xAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},y8=function(){try{r6=new ActiveXObject("htmlfile")}catch{}var e,t;y8=typeof document<"u"?document.domain&&r6?Noe(r6):((t=bAe("iframe")).style.display="none",d1t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(xAe("document.F=Object")),e.close(),e.F):Noe(r6);for(var n=hk.length;n--;)delete y8.prototype[hk[n]];return y8()};i5[CAe]=!0;var ap=Object.create||function(e,t){var n;return e!==null?(hM.prototype=du(e),n=new hM,hM.prototype=null,n[CAe]=e):n=y8(),t===void 0?n:c1t(n,t)},KF=function(e,t,n){var r=Gb(t);r in e?N0.f(e,r,Tc(0,n)):e[r]=n},f1t=po.Array,p1t=Math.max,SAe=function(e,t,n){for(var r=o5(e),o=GF(t,r),i=GF(r,r),a=f1t(p1t(i-o,0)),s=0;o<i;o++,s++)KF(a,s,e[o]);return a.length=s,a},h1t=Fi("".replace),g1t=Fi("".split),v1t=Fi([].join),YF=String(Error("zxcasd").stack),EAe=/\n\s*at [^:]*:[^\n]*/,m1t=EAe.test(YF),y1t=/@[^\n]*\n/.test(YF)&&!/zxcasd/.test(YF),b1t=function(e,t){if(typeof e!="string")return e;if(m1t)for(;t--;)e=h1t(e,EAe,"");else if(y1t)return v1t(SAe(g1t(e,`
  725. `),t),`
  726. `);return e},w1t=function(e,t){Lu(t)&&"cause"in t&&tl(e,"cause",t.cause)},zf={},A1t=Ks("iterator"),C1t=Array.prototype,kAe={};kAe[Ks("toStringTag")]="z";var Oq=String(kAe)==="[object z]",x1t=Ks("toStringTag"),S1t=po.Object,E1t=Zg((function(){return arguments})())=="Arguments",a5=Oq?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=S1t(e),x1t))=="string"?n:E1t?Zg(t):(r=Zg(t))=="Object"&&Ss(t.callee)?"Arguments":r},k1t=Ks("iterator"),Roe=function(e){if(e!=null)return ck(e,k1t)||ck(e,"@@iterator")||zf[a5(e)]},T1t=po.TypeError,Boe=function(e,t,n){var r,o;du(e);try{if(!(r=ck(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},_1t=po.TypeError,b8=function(e,t){this.stopped=e,this.result=t},Loe=b8.prototype,D1t=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=Tq(t,d),h=function(y){return r&&Boe(r,"normal",y),new b8(!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=Roe(e)))throw _1t(WF(e)+" is not iterable");if((function(y){return y!==void 0&&(zf.Array===y||C1t[A1t]===y)})(o)){for(i=0,a=o5(e);a>i;i++)if((s=g(e[i]))&&yA(Loe,s))return s;return new b8(!1)}r=(function(y,m){var b=arguments.length<2?Roe(y):m;if(kq(b))return du(su(b,y));throw T1t(WF(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=su(l,r)).done;){try{s=g(u.value)}catch(y){Boe(r,"throw",y)}if(typeof s=="object"&&s&&yA(Loe,s))return s}return new b8(!1)},I1t=po.String,bA=function(e){if(a5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return I1t(e)},O1t=function(e,t){return e===void 0?arguments.length<2?"":t:bA(e)},M1t=!zl((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Tc(1,7)),e.stack!==7)})),P1t=Ks("toStringTag"),gk=po.Error,N1t=[].push,wA=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=yA(gM,this);pk?n=pk(new gk(void 0),o?fk(this):gM):(n=o?this:ap(gM),tl(n,P1t,"Error")),tl(n,"message",O1t(t,"")),M1t&&tl(n,"stack",b1t(n.stack,1)),w1t(n,r);var i=[];return D1t(e,N1t,{that:i}),tl(n,"errors",i),n};pk?pk(wA,gk):(function(e,t){for(var n=u1t(t),r=N0.f,o=o7.f,i=0;i<n.length;i++){var a=n[i];$o(e,a)||r(e,a,o(t,a))}})(wA,gk);var gM=wA.prototype=ap(gk.prototype,{constructor:Tc(1,wA),message:Tc(1,""),name:Tc(1,"AggregateError")});Cf({global:!0},{AggregateError:wA});var R1t=Fi(Function.toString);Ss(Oh.inspectSource)||(Oh.inspectSource=function(e){return R1t(e)});var vk,o3,mk,TAe=Oh.inspectSource,Foe=po.WeakMap,B1t=Ss(Foe)&&/native code/.test(TAe(Foe)),QF=po.TypeError,L1t=po.WeakMap;if(B1t||Oh.state){var Z0=Oh.state||(Oh.state=new L1t),F1t=Fi(Z0.get),Uoe=Fi(Z0.has),U1t=Fi(Z0.set);vk=function(e,t){if(Uoe(Z0,e))throw new QF("Object already initialized");return t.facade=e,U1t(Z0,e,t),t},o3=function(e){return F1t(Z0,e)||{}},mk=function(e){return Uoe(Z0,e)}}else{var $m=i7("state");i5[$m]=!0,vk=function(e,t){if($o(e,$m))throw new QF("Object already initialized");return t.facade=e,tl(e,$m,t),t},o3=function(e){return $o(e,$m)?e[$m]:{}},mk=function(e){return $o(e,$m)}}var wh,zoe,$oe,Kb={set:vk,get:o3,has:mk,enforce:function(e){return mk(e)?o3(e):vk(e,{})},getterFor:function(e){return function(t){var n;if(!Lu(t)||(n=o3(t)).type!==e)throw QF("Incompatible receiver, "+e+" required");return n}}},_Ae=Function.prototype,z1t=Pl&&Object.getOwnPropertyDescriptor,joe=$o(_Ae,"name"),$1t={PROPER:joe&&(function(){}).name==="something",CONFIGURABLE:joe&&(!Pl||Pl&&z1t(_Ae,"name").configurable)},yk=function(e,t,n,r){tl(e,t,n)},ZF=Ks("iterator"),DAe=!1;[].keys&&("next"in($oe=[].keys())?(zoe=fk(fk($oe)))!==Object.prototype&&(wh=zoe):DAe=!0);var j1t=wh==null||zl((function(){var e={};return wh[ZF].call(e)!==e}));wh=j1t?{}:ap(wh),Ss(wh[ZF])||yk(wh,ZF,(function(){return this}));var IAe={IteratorPrototype:wh,BUGGY_SAFARI_ITERATORS:DAe},H1t=Oq?{}.toString:function(){return"[object "+a5(this)+"]"},W1t=N0.f,Hoe=Ks("toStringTag"),bk=function(e,t,n,r){if(e){var o=n?e:e.prototype;$o(o,Hoe)||W1t(o,Hoe,{configurable:!0,value:t}),r&&!Oq&&tl(o,"toString",H1t)}},V1t=IAe.IteratorPrototype,q1t=function(){return this},G1t=$1t.PROPER,vM=IAe.BUGGY_SAFARI_ITERATORS,K1t=Ks("iterator"),Y1t=function(){return this},OAe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=ap(V1t,{next:Tc(1,m)}),bk(g,w,!1,!0),zf[w]=q1t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!vM&&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[K1t]||f["@@iterator"]||o&&f[o],v=!vM&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=fk(h.call(new e)))!==Object.prototype&&s.next&&(bk(s,d,!0,!0),zf[d]=Y1t),G1t&&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:vM||c},l)),zf[t]=v,l},Q1t=Kb.set,Z1t=Kb.getterFor("Array Iterator");OAe(Array,"Array",(function(e,t){Q1t(this,{type:"Array Iterator",target:tf(e),index:0,kind:t})}),(function(){var e=Z1t(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"),zf.Arguments=zf.Array;var X1t=Fi("".charAt),Woe=Fi("".charCodeAt),J1t=Fi("".slice),eyt=function(e){return function(t,n){var r,o,i=bA(Sq(t)),a=_q(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Woe(i,a))<55296||r>56319||a+1===s||(o=Woe(i,a+1))<56320||o>57343?e?X1t(i,a):r:e?J1t(i,a,a+2):o-56320+(r-55296<<10)+65536}},tyt={charAt:eyt(!0)}.charAt,nyt=Kb.set,ryt=Kb.getterFor("String Iterator");OAe(String,"String",(function(e){nyt(this,{type:"String Iterator",string:bA(e),index:0})}),(function(){var e,t=ryt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tyt(n,r),t.index+=e.length,{value:e,done:!1})}));var oyt=Xl.AggregateError,Voe=Ks("toStringTag");for(var mM 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 qoe=po[mM],yM=qoe&&qoe.prototype;yM&&a5(yM)!==Voe&&tl(yM,Voe,mM),zf[mM]=zf.Array}var Lp,w8,iyt=oyt,o6=function(e){return e&&e.Math==Math&&e},ro=o6(typeof globalThis=="object"&&globalThis)||o6(typeof window=="object"&&window)||o6(typeof self=="object"&&self)||o6(typeof bi=="object"&&bi)||(function(){return this})()||Function("return this")(),ps=function(e){try{return!!e()}catch{return!0}},$d=!ps((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)},Goe={}.propertyIsEnumerable,Koe=Object.getOwnPropertyDescriptor,ayt=Koe&&!Goe.call({1:2},1)?function(e){var t=Koe(this,e);return!!t&&t.enumerable}:Goe,syt={f:ayt},Mh=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},MAe=Function.prototype,XF=MAe.bind,JF=MAe.call,lyt=XF&&XF.bind(JF),pi=XF?function(e){return e&&lyt(JF,e)}:function(e){return e&&function(){return JF.apply(e,arguments)}},uyt=pi({}.toString),cyt=pi("".slice),Jg=function(e){return cyt(uyt(e),8,-1)},bM=ro.Object,dyt=pi("".split),PAe=ps((function(){return!bM("z").propertyIsEnumerable(0)}))?function(e){return Jg(e)=="String"?dyt(e,""):bM(e)}:bM,fyt=ro.TypeError,a7=function(e){if(e==null)throw fyt("Can't call method on "+e);return e},Yb=function(e){return PAe(a7(e))},rs=function(e){return typeof e=="function"},xd=function(e){return typeof e=="object"?e!==null:rs(e)},pyt=function(e){return rs(e)?e:void 0},s5=function(e,t){return arguments.length<2?pyt(ro[e]):ro[e]&&ro[e][t]},wk=pi({}.isPrototypeOf),wM=s5("navigator","userAgent")||"",Yoe=ro.process,Qoe=ro.Deno,Zoe=Yoe&&Yoe.versions||Qoe&&Qoe.version,Xoe=Zoe&&Zoe.v8;Xoe&&(w8=(Lp=Xoe.split("."))[0]>0&&Lp[0]<4?1:+(Lp[0]+Lp[1])),!w8&&wM&&(!(Lp=wM.match(/Edge\/(\d+)/))||Lp[1]>=74)&&(Lp=wM.match(/Chrome\/(\d+)/))&&(w8=+Lp[1]);var Joe=w8,eU=!!Object.getOwnPropertySymbols&&!ps((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Joe&&Joe<41})),Mq=eU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hyt=ro.Object,tU=Mq?function(e){return typeof e=="symbol"}:function(e){var t=s5("Symbol");return rs(t)&&wk(t.prototype,hyt(e))},gyt=ro.String,nU=function(e){try{return gyt(e)}catch{return"Object"}},vyt=ro.TypeError,Pq=function(e){if(rs(e))return e;throw vyt(nU(e)+" is not a function")},AA=function(e,t){var n=e[t];return n==null?void 0:Pq(n)},myt=ro.TypeError,yyt=Object.defineProperty,Nq=function(e,t){try{yyt(ro,e,{value:t,configurable:!0,writable:!0})}catch{ro[e]=t}return t},Ph=ro["__core-js_shared__"]||Nq("__core-js_shared__",{}),Rq=dm((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)"})})),byt=ro.Object,Bq=function(e){return byt(a7(e))},wyt=pi({}.hasOwnProperty),Nl=Object.hasOwn||function(e,t){return wyt(Bq(e),t)},Ayt=0,Cyt=Math.random(),xyt=pi(1 .toString),NAe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xyt(++Ayt+Cyt,36)},Z2=Rq("wks"),ev=ro.Symbol,eie=ev&&ev.for,Syt=Mq?ev:ev&&ev.withoutSetter||NAe,vl=function(e){if(!Nl(Z2,e)||!eU&&typeof Z2[e]!="string"){var t="Symbol."+e;eU&&Nl(ev,e)?Z2[e]=ev[e]:Z2[e]=Mq&&eie?eie(t):Syt(t)}return Z2[e]},Eyt=ro.TypeError,kyt=vl("toPrimitive"),Tyt=function(e,t){if(!xd(e)||tU(e))return e;var n,r=AA(e,kyt);if(r){if(n=As(r,e,t),!xd(n)||tU(n))return n;throw Eyt("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 myt("Can't convert object to primitive value")})(e)},Lq=function(e){var t=Tyt(e,"string");return tU(t)?t:t+""},rU=ro.document,_yt=xd(rU)&&xd(rU.createElement),Fq=function(e){return _yt?rU.createElement(e):{}},RAe=!$d&&!ps((function(){return Object.defineProperty(Fq("div"),"a",{get:function(){return 7}}).a!=7})),tie=Object.getOwnPropertyDescriptor,Dyt=$d?tie:function(e,t){if(e=Yb(e),t=Lq(t),RAe)try{return tie(e,t)}catch{}if(Nl(e,t))return Mh(!As(syt.f,e,t),e[t])},Uq={f:Dyt},Iyt=ro.String,Oyt=ro.TypeError,fu=function(e){if(xd(e))return e;throw Oyt(Iyt(e)+" is not an object")},Myt=ro.TypeError,nie=Object.defineProperty,Pyt=$d?nie:function(e,t,n){if(fu(e),t=Lq(t),fu(n),RAe)try{return nie(e,t,n)}catch{}if("get"in n||"set"in n)throw Myt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qb={f:Pyt},kl=$d?function(e,t,n){return Qb.f(e,t,Mh(1,n))}:function(e,t,n){return e[t]=n,e},Nyt=pi(Function.toString);rs(Ph.inspectSource)||(Ph.inspectSource=function(e){return Nyt(e)});var Ak,i3,Ck,zq=Ph.inspectSource,rie=ro.WeakMap,Ryt=rs(rie)&&/native code/.test(zq(rie)),oie=Rq("keys"),$q=function(e){return oie[e]||(oie[e]=NAe(e))},jq={},oU=ro.TypeError,Byt=ro.WeakMap;if(Ryt||Ph.state){var X0=Ph.state||(Ph.state=new Byt),Lyt=pi(X0.get),iie=pi(X0.has),Fyt=pi(X0.set);Ak=function(e,t){if(iie(X0,e))throw new oU("Object already initialized");return t.facade=e,Fyt(X0,e,t),t},i3=function(e){return Lyt(X0,e)||{}},Ck=function(e){return iie(X0,e)}}else{var jm=$q("state");jq[jm]=!0,Ak=function(e,t){if(Nl(e,jm))throw new oU("Object already initialized");return t.facade=e,kl(e,jm,t),t},i3=function(e){return Nl(e,jm)?e[jm]:{}},Ck=function(e){return Nl(e,jm)}}var Fv={set:Ak,get:i3,has:Ck,enforce:function(e){return Ck(e)?i3(e):Ak(e,{})},getterFor:function(e){return function(t){var n;if(!xd(t)||(n=i3(t)).type!==e)throw oU("Incompatible receiver, "+e+" required");return n}}},BAe=Function.prototype,Uyt=$d&&Object.getOwnPropertyDescriptor,aie=Nl(BAe,"name"),Hq={PROPER:aie&&(function(){}).name==="something",CONFIGURABLE:aie&&(!$d||$d&&Uyt(BAe,"name").configurable)},Uv=dm((function(e){var t=Hq.CONFIGURABLE,n=Fv.get,r=Fv.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!==ro?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:kl(i,a,s)):c?i[a]=s:Nq(a,s)})(Function.prototype,"toString",(function(){return rs(this)&&n(this).source||zq(this)}))})),zyt=Math.ceil,$yt=Math.floor,Wq=function(e){var t=+e;return t!=t||t===0?0:(t>0?$yt:zyt)(t)},jyt=Math.max,Hyt=Math.min,iU=function(e,t){var n=Wq(e);return n<0?jyt(n+t,0):Hyt(n,t)},Wyt=Math.min,LAe=function(e){return e>0?Wyt(Wq(e),9007199254740991):0},s7=function(e){return LAe(e.length)},Vyt=function(e){return function(t,n,r){var o,i=Yb(t),a=s7(i),s=iU(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}},qyt={indexOf:Vyt(!1)}.indexOf,sie=pi([].push),FAe=function(e,t){var n,r=Yb(e),o=0,i=[];for(n in r)!Nl(jq,n)&&Nl(r,n)&&sie(i,n);for(;t.length>o;)Nl(r,n=t[o++])&&(~qyt(i,n)||sie(i,n));return i},xk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gyt=xk.concat("length","prototype"),Kyt=Object.getOwnPropertyNames||function(e){return FAe(e,Gyt)},Yyt={f:Kyt},Qyt={f:Object.getOwnPropertySymbols},Zyt=pi([].concat),Xyt=s5("Reflect","ownKeys")||function(e){var t=Yyt.f(fu(e)),n=Qyt.f;return n?Zyt(t,n(e)):t},UAe=function(e,t){for(var n=Xyt(t),r=Qb.f,o=Uq.f,i=0;i<n.length;i++){var a=n[i];Nl(e,a)||r(e,a,o(t,a))}},Jyt=/#|\.prototype\./,l5=function(e,t){var n=tbt[ebt(e)];return n==rbt||n!=nbt&&(rs(t)?ps(t):!!t)},ebt=l5.normalize=function(e){return String(e).replace(Jyt,".").toLowerCase()},tbt=l5.data={},nbt=l5.NATIVE="N",rbt=l5.POLYFILL="P",obt=l5,ibt=Uq.f,u5=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?ro:u?ro[s]||Nq(s,{}):(ro[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ibt(n,r))&&a.value:n[r],!obt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;UAe(i,o)}(e.sham||o&&o.sham)&&kl(i,"sham",!0),Uv(n,r,i,e)}},zAe={};zAe[vl("toStringTag")]="z";var i6,Vq=String(zAe)==="[object z]",abt=vl("toStringTag"),sbt=ro.Object,lbt=Jg((function(){return arguments})())=="Arguments",l7=Vq?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=sbt(e),abt))=="string"?n:lbt?Jg(t):(r=Jg(t))=="Object"&&rs(t.callee)?"Arguments":r},ubt=ro.String,tv=function(e){if(l7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ubt(e)},cbt=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},qq=ro.RegExp,$Ae=ps((function(){var e=qq("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));$Ae||ps((function(){return!qq("a","y").sticky}));var dbt=$Ae||ps((function(){var e=qq("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),fbt={BROKEN_CARET:dbt},pbt=Object.keys||function(e){return FAe(e,xk)},hbt=$d?Object.defineProperties:function(e,t){fu(e);for(var n,r=Yb(t),o=pbt(t),i=o.length,a=0;i>a;)Qb.f(e,n=o[a++],r[n]);return e},gbt=s5("document","documentElement"),jAe=$q("IE_PROTO"),AM=function(){},HAe=function(e){return"<script>"+e+"<\/script>"},lie=function(e){e.write(HAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},A8=function(){try{i6=new ActiveXObject("htmlfile")}catch{}var e,t;A8=typeof document<"u"?document.domain&&i6?lie(i6):((t=Fq("iframe")).style.display="none",gbt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(HAe("document.F=Object")),e.close(),e.F):lie(i6);for(var n=xk.length;n--;)delete A8.prototype[xk[n]];return A8()};jq[jAe]=!0;var uie,CM,c5=Object.create||function(e,t){var n;return e!==null?(AM.prototype=fu(e),n=new AM,AM.prototype=null,n[jAe]=e):n=A8(),t===void 0?n:hbt(n,t)},vbt=ro.RegExp,mbt=ps((function(){var e=vbt(".","s");return!(e.dotAll&&e.exec(`
  727. `)&&e.flags==="s")})),ybt=ro.RegExp,bbt=ps((function(){var e=ybt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),wbt=Fv.get,Abt=Rq("native-string-replace",String.prototype.replace),Sk=RegExp.prototype.exec,aU=Sk,Cbt=pi("".charAt),xbt=pi("".indexOf),Sbt=pi("".replace),xM=pi("".slice),SM=(CM=/b*/g,As(Sk,uie=/a/,"a"),As(Sk,CM,"a"),uie.lastIndex!==0||CM.lastIndex!==0),cie=fbt.BROKEN_CARET,EM=/()??/.exec("")[1]!==void 0;(SM||EM||cie||mbt||bbt)&&(aU=function(e){var t,n,r,o,i,a,s,l=this,u=wbt(l),d=tv(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=As(aU,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=cie&&l.sticky,v=As(cbt,l),h=l.source,g=0,y=d;if(p&&(v=Sbt(v,"y",""),xbt(v,"g")===-1&&(v+="g"),y=xM(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Cbt(d,l.lastIndex-1)!==`
  728. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),EM&&(n=new RegExp("^"+h+"$(?!\\s)",v)),SM&&(r=l.lastIndex),o=As(Sk,p?n:l,y),p?o?(o.input=xM(o.input,g),o[0]=xM(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:SM&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),EM&&o&&o.length>1&&As(Abt,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=c5(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var Ek=aU;u5({target:"RegExp",proto:!0,forced:/./.exec!==Ek},{exec:Ek});var Ebt=vl("species"),die=RegExp.prototype,kbt=pi("".charAt),fie=pi("".charCodeAt),Tbt=pi("".slice),_bt=function(e){return function(t,n){var r,o,i=tv(a7(t)),a=Wq(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=fie(i,a))<55296||r>56319||a+1===s||(o=fie(i,a+1))<56320||o>57343?e?kbt(i,a):r:e?Tbt(i,a,a+2):o-56320+(r-55296<<10)+65536}},WAe={charAt:_bt(!0)},Dbt=WAe.charAt,Ibt=function(e,t,n){return t+(n?Dbt(e,t).length:1)},Obt=ro.TypeError,pie=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(Ek,e,t);throw Obt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=vl(e),i=!ps((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ps((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Ebt]=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===Ek||h===die.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));Uv(String.prototype,e,l[0]),Uv(die,o,l[1])}})("match",(function(e,t,n){return[function(r){var o=a7(this),i=r==null?void 0:AA(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 pie(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=pie(o,i))!==null;){var c=tv(l[0]);u[d]=c,c===""&&(o.lastIndex=Ibt(i,LAe(o.lastIndex),s)),d++}return d===0?null:u}]})),u5({global:!0},{globalThis:ro});var Mbt=!ps((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hie=$q("IE_PROTO"),sU=ro.Object,Pbt=sU.prototype,CA=Mbt?sU.getPrototypeOf:function(e){var t=Bq(e);if(Nl(t,hie))return t[hie];var n=t.constructor;return rs(n)&&t instanceof n?n.prototype:t instanceof sU?Pbt:null},Nbt=ro.String,Rbt=ro.TypeError,Gy=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 Rbt("Can't set "+Nbt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Bbt=ro.Array,Lbt=Math.max,Fbt=pi("".replace),Ubt=pi("".split),zbt=pi([].join),lU=String(Error("zxcasd").stack),VAe=/\n\s*at [^:]*:[^\n]*/,$bt=VAe.test(lU),jbt=/@[^\n]*\n/.test(lU)&&!/zxcasd/.test(lU),Hbt=function(e,t){if(typeof e!="string")return e;if($bt)for(;t--;)e=Fbt(e,VAe,"");else if(jbt)return zbt((function(n,r,o){for(var i,a,s,l,u=s7(n),d=iU(r,u),c=iU(u,u),f=Bbt(Lbt(c-d,0)),p=0;d<c;d++,p++)i=f,a=p,s=n[d],l=void 0,(l=Lq(a))in i?Qb.f(i,l,Mh(0,s)):i[l]=s;return f.length=p,f})(Ubt(e,`
  729. `),t),`
  730. `);return e},Wbt=function(e,t){xd(t)&&"cause"in t&&kl(e,"cause",t.cause)},gie=pi(pi.bind),qAe=function(e,t){return Pq(e),t===void 0?e:gie?gie(e,t):function(){return e.apply(t,arguments)}},Ky={},Vbt=vl("iterator"),qbt=Array.prototype,Gbt=vl("iterator"),vie=function(e){if(e!=null)return AA(e,Gbt)||AA(e,"@@iterator")||Ky[l7(e)]},Kbt=ro.TypeError,mie=function(e,t,n){var r,o;fu(e);try{if(!(r=AA(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},Ybt=ro.TypeError,C8=function(e,t){this.stopped=e,this.result=t},yie=C8.prototype,Qbt=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=qAe(t,d),h=function(y){return r&&mie(r,"normal",y),new C8(!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=vie(e)))throw Ybt(nU(e)+" is not iterable");if((function(y){return y!==void 0&&(Ky.Array===y||qbt[Vbt]===y)})(o)){for(i=0,a=s7(e);a>i;i++)if((s=g(e[i]))&&wk(yie,s))return s;return new C8(!1)}r=(function(y,m){var b=arguments.length<2?vie(y):m;if(Pq(b))return fu(As(b,y));throw Kbt(nU(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=As(l,r)).done;){try{s=g(u.value)}catch(y){mie(r,"throw",y)}if(typeof s=="object"&&s&&wk(yie,s))return s}return new C8(!1)},Zbt=function(e,t){return e===void 0?arguments.length<2?"":t:tv(e)},Xbt=!ps((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Mh(1,7)),e.stack!==7)})),Jbt=vl("toStringTag"),kk=ro.Error,e2t=[].push,xA=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=wk(kM,this);Gy?n=Gy(new kk(void 0),o?CA(this):kM):(n=o?this:c5(kM),kl(n,Jbt,"Error")),kl(n,"message",Zbt(t,"")),Xbt&&kl(n,"stack",Hbt(n.stack,1)),Wbt(n,r);var i=[];return Qbt(e,e2t,{that:i}),kl(n,"errors",i),n};Gy?Gy(xA,kk):UAe(xA,kk);var kM=xA.prototype=c5(kk.prototype,{constructor:Mh(1,xA),message:Mh(1,""),name:Mh(1,"AggregateError")});u5({global:!0},{AggregateError:xA});var uU=vl("unscopables"),cU=Array.prototype;cU[uU]==null&&Qb.f(cU,uU,{configurable:!0,value:c5(null)});var nv,bie,wie,TM=function(e){cU[uU][e]=!0},dU=vl("iterator"),GAe=!1;[].keys&&("next"in(wie=[].keys())?(bie=CA(CA(wie)))!==Object.prototype&&(nv=bie):GAe=!0);var t2t=nv==null||ps((function(){var e={};return nv[dU].call(e)!==e}));t2t&&(nv={}),rs(nv[dU])||Uv(nv,dU,(function(){return this}));var Gq={IteratorPrototype:nv,BUGGY_SAFARI_ITERATORS:GAe},n2t=Qb.f,Aie=vl("toStringTag"),Cie=function(e,t,n){e&&!Nl(e=n?e:e.prototype,Aie)&&n2t(e,Aie,{configurable:!0,value:t})},r2t=Gq.IteratorPrototype,o2t=function(){return this},i2t=Hq.PROPER,a2t=Hq.CONFIGURABLE,xie=Gq.IteratorPrototype,_M=Gq.BUGGY_SAFARI_ITERATORS,X2=vl("iterator"),s2t=function(){return this},KAe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=c5(r2t,{next:Mh(1,m)}),Cie(g,w,!1),Ky[w]=o2t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!_M&&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[X2]||f["@@iterator"]||o&&f[o],v=!_M&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=CA(h.call(new e)))!==Object.prototype&&s.next&&(CA(s)!==xie&&(Gy?Gy(s,xie):rs(s[X2])||Uv(s,X2,s2t)),Cie(s,d,!0)),i2t&&o=="values"&&p&&p.name!=="values"&&(a2t?kl(f,"name","values"):(c=!0,v=function(){return As(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||u5({target:t,proto:!0,forced:_M||c},l)),f[X2]!==v&&Uv(f,X2,v,{name:o}),Ky[t]=v,l},l2t=Fv.set,u2t=Fv.getterFor("Array Iterator"),S4=KAe(Array,"Array",(function(e,t){l2t(this,{type:"Array Iterator",target:Yb(e),index:0,kind:t})}),(function(){var e=u2t(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");Ky.Arguments=Ky.Array,TM("keys"),TM("values"),TM("entries");var c2t=WAe.charAt,d2t=Fv.set,f2t=Fv.getterFor("String Iterator");KAe(String,"String",(function(e){d2t(this,{type:"String Iterator",string:tv(e),index:0})}),(function(){var e,t=f2t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=c2t(n,r),t.index+=e.length,{value:e,done:!1})}));var DM,Tk={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},IM=Fq("span").classList,Sie=IM&&IM.constructor&&IM.constructor.prototype,YAe=Sie===Object.prototype?void 0:Sie,OM=vl("iterator"),Eie=vl("toStringTag"),MM=S4.values,QAe=function(e,t){if(e){if(e[OM]!==MM)try{kl(e,OM,MM)}catch{e[OM]=MM}if(e[Eie]||kl(e,Eie,t),Tk[t]){for(var n in S4)if(e[n]!==S4[n])try{kl(e,n,S4[n])}catch{e[n]=S4[n]}}}};for(var PM in Tk)QAe(ro[PM]&&ro[PM].prototype,PM);QAe(YAe,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
  731. Sorry, wangEditor V5+ versions do not support IE browser.`),kie(),Tie()):global&&(!((DM=global.navigator)===null||DM===void 0)&&DM.userAgent.match("QQBrowser"))&&(kie(),Tie());function kie(){typeof globalThis>"u"&&(window.globalThis=window)}function Tie(){iyt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var _ie,_k=Array.isArray||function(e){return Zg(e)=="Array"},ZAe=function(){},p2t=[],XAe=qb("Reflect","construct"),Kq=/^\s*(?:class|function)\b/,h2t=Fi(Kq.exec),g2t=!Kq.exec(ZAe),J2=function(e){if(!Ss(e))return!1;try{return XAe(ZAe,p2t,e),!0}catch{return!1}},v2t=!XAe||zl((function(){var e;return J2(J2.call)||!J2(Object)||!J2((function(){e=!0}))||e}))?function(e){if(!Ss(e))return!1;switch(a5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return g2t||!!h2t(Kq,TAe(e))}:J2,m2t=Ks("species"),Die=po.Array,JAe=function(e,t){return new((function(n){var r;return _k(n)&&(r=n.constructor,(v2t(r)&&(r===Die||_k(r.prototype))||Lu(r)&&(r=r[m2t])===null)&&(r=void 0)),r===void 0?Die:r})(e))(t===0?0:t)},y2t=Ks("species"),eCe=Ks("isConcatSpreadable"),Iie=po.TypeError,b2t=uk>=51||!zl((function(){var e=[];return e[eCe]=!1,e.concat()[0]!==e})),w2t=(_ie="concat",uk>=51||!zl((function(){var e=[];return(e.constructor={})[y2t]=function(){return{foo:1}},e[_ie](Boolean).foo!==1}))),A2t=function(e){if(!Lu(e))return!1;var t=e[eCe];return t!==void 0?!!t:_k(e)};Cf({target:"Array",proto:!0,forced:!b2t||!w2t},{concat:function(e){var t,n,r,o,i,a=n5(this),s=JAe(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(A2t(i=t===-1?a:arguments[t])){if(l+(o=o5(i))>9007199254740991)throw Iie("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&KF(s,l,i[n])}else{if(l>=9007199254740991)throw Iie("Maximum allowed index exceeded");KF(s,l++,i)}return s.length=l,s}});var Oie=Dq.f,Mie=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tCe={f:function(e){return Mie&&Zg(e)=="Window"?(function(t){try{return Oie(t)}catch{return SAe(Mie)}})(e):Oie(tf(e))}},C2t=Fi([].slice),Yq={f:Ks},x2t=N0.f,Aa=function(e){var t=Xl.Symbol||(Xl.Symbol={});$o(t,e)||x2t(t,e,{value:Yq.f(e)})},Pie=Fi([].push),S2t=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=n5(l),h=yAe(v),g=Tq(u,d),y=o5(h),m=0,b=c||JAe,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:Pie(w,f)}else switch(e){case 4:return!1;case 7:Pie(w,f)}return i?-1:r||o?o:w}},u7={forEach:S2t(0)}.forEach,Cl=i7("hidden"),Nie=Ks("toPrimitive"),E2t=Kb.set,Rie=Kb.getterFor("Symbol"),Ac=Object.prototype,dh=po.Symbol,Ah=dh&&dh.prototype,Bie=po.TypeError,NM=po.QObject,ew=qb("JSON","stringify"),nCe=o7.f,fh=N0.f,rCe=tCe.f,k2t=xq.f,oCe=Fi([].push),sp=fm("symbols"),d5=fm("op-symbols"),RM=fm("string-to-symbol-registry"),BM=fm("symbol-to-string-registry"),T2t=fm("wks"),LM=!NM||!NM.prototype||!NM.prototype.findChild,fU=Pl&&zl((function(){return ap(fh({},"a",{get:function(){return fh(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=nCe(Ac,t);r&&delete Ac[t],fh(e,t,n),r&&e!==Ac&&fh(Ac,t,r)}:fh,FM=function(e,t){var n=sp[e]=ap(Ah);return E2t(n,{type:"Symbol",tag:e,description:t}),Pl||(n.description=t),n},Dk=function(e,t,n){e===Ac&&Dk(d5,t,n),du(e);var r=Gb(t);return du(n),$o(sp,r)?(n.enumerable?($o(e,Cl)&&e[Cl][r]&&(e[Cl][r]=!1),n=ap(n,{enumerable:Tc(0,!1)})):($o(e,Cl)||fh(e,Cl,Tc(1,{})),e[Cl][r]=!0),fU(e,r,n)):fh(e,r,n)},Lie=function(e,t){du(e);var n=tf(t),r=Iq(n).concat(pU(n));return u7(r,(function(o){Pl&&!su(iCe,n,o)||Dk(e,o,n[o])})),e},iCe=function(e){var t=Gb(e),n=su(k2t,this,t);return!(this===Ac&&$o(sp,t)&&!$o(d5,t))&&(!(n||!$o(this,t)||!$o(sp,t)||$o(this,Cl)&&this[Cl][t])||n)},Fie=function(e,t){var n=tf(e),r=Gb(t);if(n!==Ac||!$o(sp,r)||$o(d5,r)){var o=nCe(n,r);return!o||!$o(sp,r)||$o(n,Cl)&&n[Cl][r]||(o.enumerable=!0),o}},Uie=function(e){var t=rCe(tf(e)),n=[];return u7(t,(function(r){$o(sp,r)||$o(i5,r)||oCe(n,r)})),n},pU=function(e){var t=e===Ac,n=rCe(t?d5:tf(e)),r=[];return u7(n,(function(o){!$o(sp,o)||t&&!$o(Ac,o)||oCe(r,sp[o])})),r};if(ud||(Ah=(dh=function(){if(yA(Ah,this))throw Bie("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?bA(arguments[0]):void 0,t=dk(e),n=function(r){this===Ac&&su(n,d5,r),$o(this,Cl)&&$o(this[Cl],t)&&(this[Cl][t]=!1),fU(this,t,Tc(1,r))};return Pl&&LM&&fU(Ac,t,{configurable:!0,set:n}),FM(t,e)}).prototype,yk(Ah,"toString",(function(){return Rie(this).tag})),yk(dh,"withoutSetter",(function(e){return FM(dk(e),e)})),xq.f=iCe,N0.f=Dk,o7.f=Fie,Dq.f=tCe.f=Uie,m8.f=pU,Yq.f=function(e){return FM(Ks(e),e)},Pl&&fh(Ah,"description",{configurable:!0,get:function(){return Rie(this).description}})),Cf({global:!0,wrap:!0,forced:!ud,sham:!ud},{Symbol:dh}),u7(Iq(T2t),(function(e){Aa(e)})),Cf({target:"Symbol",stat:!0,forced:!ud},{for:function(e){var t=bA(e);if($o(RM,t))return RM[t];var n=dh(t);return RM[t]=n,BM[n]=t,n},keyFor:function(e){if(!uy(e))throw Bie(e+" is not a symbol");if($o(BM,e))return BM[e]},useSetter:function(){LM=!0},useSimple:function(){LM=!1}}),Cf({target:"Object",stat:!0,forced:!ud,sham:!Pl},{create:function(e,t){return t===void 0?ap(e):Lie(ap(e),t)},defineProperty:Dk,defineProperties:Lie,getOwnPropertyDescriptor:Fie}),Cf({target:"Object",stat:!0,forced:!ud},{getOwnPropertyNames:Uie,getOwnPropertySymbols:pU}),Cf({target:"Object",stat:!0,forced:zl((function(){m8.f(1)}))},{getOwnPropertySymbols:function(e){return m8.f(n5(e))}}),ew){var _2t=!ud||zl((function(){var e=dh();return ew([e])!="[null]"||ew({a:e})!="{}"||ew(Object(e))!="{}"}));Cf({target:"JSON",stat:!0,forced:_2t},{stringify:function(e,t,n){var r=C2t(arguments),o=t;if((Lu(t)||e!==void 0)&&!uy(e))return _k(t)||(t=function(i,a){if(Ss(o)&&(a=su(o,this,i,a)),!uy(a))return a}),r[1]=t,vAe(ew,null,r)}})}if(!Ah[Nie]){var D2t=Ah.valueOf;yk(Ah,Nie,(function(e){return su(D2t,this)}))}bk(dh,"Symbol"),i5[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"),bk(po.JSON,"JSON",!0);var I2t=Xl.Symbol;Aa("asyncDispose"),Aa("dispose"),Aa("matcher"),Aa("metadata"),Aa("observable"),Aa("patternMatch"),Aa("replaceAll");var a6=I2t,O2t=Yq.f("iterator"),M2t=dm((function(e){function t(n){return typeof a6=="function"&&typeof O2t=="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 a6=="function"&&r.constructor===a6&&r!==a6.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})),P2t=fmt(M2t),aCe=Uq.f,N2t=ps((function(){aCe(1)}));if(u5({target:"Object",stat:!0,forced:!$d||N2t,sham:!$d},{getOwnPropertyDescriptor:function(e,t){return aCe(Yb(e),t)}}),(typeof global>"u"?"undefined":P2t(global))==="object"){var R2t=Object.getOwnPropertyDescriptor(global,"window");global.window&&!R2t.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[]})}/*!
  732. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  733. *
  734. * Copyright (c) 2014-2017, Jon Schlinkert.
  735. * Released under the MIT License.
  736. */function zie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ns(e){var t,n;return zie(e)!==!1&&((t=e.constructor)===void 0||zie(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 zv(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)===$2t})(e)||Array.isArray(e)||!!e[Kie]||!!e.constructor[Kie]||Qq(e)||Zq(e))}function SA(e,t,n){n===void 0&&(n=!1),Yy(e)===0?(n?Object.keys:nG)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,o){return t(o,r,e)}))}function Yy(e){var t=e[pu];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Qq(e)?2:Zq(e)?3:0}function hU(e,t){return Yy(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sCe(e,t,n){var r=Yy(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Qq(e){return U2t&&e instanceof Map}function Zq(e){return z2t&&e instanceof Set}function mg(e){return e.o||e.t}function Xq(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j2t(e);delete t[pu];for(var n=nG(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 Jq(e,t){return t===void 0&&(t=!1),eG(e)||zv(e)||!$v(e)||(Yy(e)>1&&(e.set=e.add=e.clear=e.delete=B2t),Object.freeze(e),t&&SA(e,(function(n,r){return Jq(r,!0)}),!0)),e}function B2t(){bc(2)}function eG(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $f(e){var t=H2t[e];return t||bc(18,e),t}function $ie(){return EA}function UM(e,t){t&&($f("Patches"),e.u=[],e.s=[],e.v=t)}function Ik(e){gU(e),e.p.forEach(L2t),e.p=null}function gU(e){e===EA&&(EA=e.l)}function jie(e){return EA={p:[],l:EA,h:e,m:!0,_:0}}function L2t(e){var t=e[pu];t.i===0||t.i===1?t.j():t.O=!0}function zM(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||$f("ES5").S(t,e,r),r?(n[pu].P&&(Ik(t),bc(4)),$v(e)&&(e=Ok(t,e),t.l||Mk(t,e)),t.u&&$f("Patches").M(n[pu],e,t.u,t.s)):e=Ok(t,n,[]),Ik(t),t.u&&t.v(t.u,t.s),e!==lCe?e:void 0}function Ok(e,t,n){if(eG(t))return t;var r=t[pu];if(!r)return SA(t,(function(i,a){return Hie(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Mk(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Xq(r.k):r.o;SA(r.i===3?new Set(o):o,(function(i,a){return Hie(e,r,o,i,a,n)})),Mk(e,o,!1),n&&e.u&&$f("Patches").R(r,n,e.u,e.s)}return r.o}function Hie(e,t,n,r,o,i){if(zv(o)){var a=Ok(e,o,i&&t&&t.i!==3&&!hU(t.D,r)?i.concat(r):void 0);if(sCe(n,r,a),!zv(a))return;e.m=!1}if($v(o)&&!eG(o)){if(!e.h.F&&e._<1)return;Ok(e,o),t&&t.A.l||Mk(e,o)}}function Mk(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Jq(t,n)}function $M(e,t){var n=e[pu];return(n?mg(n):e)[t]}function Wie(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 vU(e){e.P||(e.P=!0,e.l&&vU(e.l))}function jM(e){e.o||(e.o=Xq(e.t))}function mU(e,t,n){var r=Qq(t)?$f("MapSet").N(t,n):Zq(t)?$f("MapSet").T(t,n):e.g?(function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:$ie(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=x8;a&&(l=[s],u=S8);var d=Proxy.revocable(l,u),c=d.revoke,f=d.proxy;return s.k=f,s.j=c,f})(t,n):$f("ES5").J(t,n);return(n?n.A:$ie()).p.push(r),r}function F2t(e){return zv(e)||bc(22,e),(function t(n){if(!$v(n))return n;var r,o=n[pu],i=Yy(n);if(o){if(!o.P&&(o.i<4||!$f("ES5").K(o)))return o.t;o.I=!0,r=Vie(n,i),o.I=!1}else r=Vie(n,i);return SA(r,(function(a,s){o&&(function(l,u){return Yy(l)===2?l.get(u):l[u]})(o.t,a)===s||sCe(r,a,t(s))})),i===3?new Set(r):r})(e)}function Vie(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Xq(e)}var qie,EA,tG=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",U2t=typeof Map<"u",z2t=typeof Set<"u",Gie=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",lCe=tG?Symbol.for("immer-nothing"):((qie={})["immer-nothing"]=!0,qie),Kie=tG?Symbol.for("immer-draftable"):"__$immer_draftable",pu=tG?Symbol.for("immer-state"):"__$immer_state",$2t=""+Object.prototype.constructor,nG=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,j2t=Object.getOwnPropertyDescriptors||function(e){var t={};return nG(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},H2t={},x8={get:function(e,t){if(t===pu)return e;var n=mg(e);if(!hU(n,t))return(function(o,i,a){var s,l=Wie(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===$M(e.t,t)?(jM(e),e.o[t]=mU(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=Wie(mg(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=$M(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||hU(e.t,t)))return!0;jM(e),vU(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 $M(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,jM(e),vU(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)}},S8={};SA(x8,(function(e,t){S8[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),S8.deleteProperty=function(e,t){return x8.deleteProperty.call(this,e[0],t)},S8.set=function(e,t,n){return x8.set.call(this,e[0],t,n,e[0])};var W2t=(function(){function e(n){var r=this;this.g=Gie,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=jie(r),c=mU(r,o,void 0),f=!0;try{u=i(c),f=!1}finally{f?Ik(d):gU(d)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return UM(d,a),zM(p,d)}),(function(p){throw Ik(d),p})):(UM(d,a),zM(u,d))}if(!o||typeof o!="object")return(u=i(o))===lCe?void 0:(u===void 0&&(u=o),r.F&&Jq(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),zv(n)&&(n=F2t(n));var r=jie(this),o=mU(this,n,void 0);return o[pu].C=!0,gU(r),o},t.finishDraft=function(n,r){var o=(n&&n[pu]).A;return UM(o,r),zM(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Gie&&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=$f("Patches").$;return zv(n)?a(n,r):this.produce(n,(function(s){return a(s,r)}))},e})(),Ql=new W2t,c7=Ql.produce;Ql.produceWithPatches.bind(Ql),Ql.setAutoFreeze.bind(Ql),Ql.setUseProxies.bind(Ql),Ql.applyPatches.bind(Ql);var Yie=Ql.createDraft.bind(Ql),Qie=Ql.finishDraft.bind(Ql);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 Pk=new WeakMap,tw=new WeakMap,Zie=new WeakMap,Xie=new WeakMap,Jie=new WeakMap,eae=new WeakMap;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}function s6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var V2t=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ze.pathRefs(e))Awt.transform(n,t);for(var r of Ze.pointRefs(e))Cwt.transform(r,t);for(var o of Ze.rangeRefs(e))Swt.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=Pk.get(e)||[],u=q2t(t);for(var d of l)s(Ht.transform(d,t));for(var c of u)s(c);Pk.set(e,a),Xt.transform(e,t),e.operations.push(t),Ze.normalize(e),t.type==="set_selection"&&(e.marks=null),tw.get(e)||(tw.set(e,!0),Promise.resolve().then((()=>{tw.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(pn.isExpanded(r))Xt.setNodes(e,{[t]:n},{match:ir.isText,split:!0});else{var o=s6(s6({},Ze.marks(e)||{}),{},{[t]:n});e.marks=o,tw.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&Xt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&Xt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&pn.isExpanded(n)&&Xt.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Yn.fragment(e,t):[]},insertBreak:()=>{Xt.splitNodes(e,{always:!0})},insertFragment:t=>{Xt.insertFragment(e,t)},insertNode:t=>{Xt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=s6({text:t},r);Xt.insertNodes(e,o)}else Xt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ir.isText(n))if(kr.isElement(n)&&n.children.length===0)Xt.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Ze.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=Yn.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?(Xt.removeNodes(e,{at:r.concat(i),voids:!0}),i--):kr.isElement(l)?e.isInline(l)&&(u!=null&&ir.isText(u)?d&&(Xt.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Xt.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):u!=null&&ir.isText(u)&&(ir.equals(l,u,{loose:!0})?(Xt.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):u.text===""?(Xt.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):l.text===""&&(Xt.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(pn.isExpanded(n))Xt.unsetNodes(e,t,{match:ir.isText,split:!0});else{var r=s6({},Ze.marks(e)||{});delete r[t],e.marks=r,tw.get(e)||e.onChange()}}};return e},q2t=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(Yn.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 lp(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,yU=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Z2t(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=uwt(l,u);if([o,i]=n?[i,d]:[d,o],U1(o,uo.ZWJ)&&U1(i,uo.ExtPict)&&!pwt(n?e.substring(0,a):e.substring(0,e.length-a))||U1(o,uo.RI)&&U1(i,uo.RI)&&!(s=s!==null?!s:!!n||gwt(e.substring(0,e.length-a)))||o!==uo.None&&i!==uo.None&&dwt(o,i))break;a+=l.length}return a||1},G2t=/\s/,K2t=/[\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]/,Y2t=/['\u2018\u2019]/,bU=(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)]},Q2t=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(G2t.test(t))return!1;if(Y2t.test(t)){var o=yU(n,r),[i,a]=bU(n,o,r);if(e(i,a,r))return!0}return!K2t.test(t)},Z2t=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(J2t(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(X2t(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},X2t=e=>e>=55296&&e<=56319,J2t=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 ewt=/^(?:[\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])$/,twt=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nwt=/^(?:[\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])$/,rwt=/^[\u1100-\u115F\uA960-\uA97C]$/,owt=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,iwt=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,awt=/^[\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]$/,swt=/^[\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]$/,lwt=/^(?:[\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])$/,uwt=(e,t)=>{var n=uo.Any;return e.search(ewt)!==-1&&(n|=uo.Extend),t===8205&&(n|=uo.ZWJ),t>=127462&&t<=127487&&(n|=uo.RI),e.search(twt)!==-1&&(n|=uo.Prepend),e.search(nwt)!==-1&&(n|=uo.SpacingMark),e.search(rwt)!==-1&&(n|=uo.L),e.search(owt)!==-1&&(n|=uo.V),e.search(iwt)!==-1&&(n|=uo.T),e.search(awt)!==-1&&(n|=uo.LV),e.search(swt)!==-1&&(n|=uo.LVT),e.search(lwt)!==-1&&(n|=uo.ExtPict),n};function U1(e,t){return(e&t)!=0}var cwt=[[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 dwt(e,t){return cwt.findIndex((n=>U1(e,n[0])&&U1(t,n[1])))===-1}var fwt=/(?:[\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$/,pwt=e=>e.search(fwt)!==-1,hwt=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,gwt=e=>{var t=e.match(hwt);return t!==null&&t[0].length/2%2==1},nae=e=>Ns(e)&&Yn.isNodeList(e.children)&&!Ze.isEditor(e),kr={isAncestor:e=>Ns(e)&&Yn.isNodeList(e.children),isElement:nae,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 nae(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},vwt=["text"],mwt=["text"];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 Hm(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 oae=new WeakMap,Ze={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=Ze.path(e,o),s=r==="lowest";for(var[l,u]of Ze.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:Ze.point(e,t,{edge:"end"}),focus:Ze.end(e,[])},{distance:i=1}=r,a=0;for(var s of Ze.positions(e,Hm(Hm({},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:Ze.start(e,[]),focus:Ze.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of Ze.positions(e,Hm(Hm({},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)=>[Ze.start(e,t),Ze.end(e,t)],end:(e,t)=>Ze.point(e,t,{edge:"end"}),first(e,t){var n=Ze.path(e,t,{edge:"start"});return Ze.node(e,n)},fragment(e,t){var n=Ze.range(e,t);return Yn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((n=>Ze.isBlock(e,n))),hasInlines:(e,t)=>t.children.some((n=>ir.isText(n)||Ze.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=oae.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))&&Yn.isNodeList(e.children)&&Ch.isOperationList(e.operations);return oae.set(e,n),n},isEnd(e,t,n){var r=Ze.end(e,n);return mo.equals(t,r)},isEdge:(e,t,n)=>Ze.isStart(e,t,n)||Ze.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=Zie.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=Ze.start(e,n);return mo.equals(t,r)},isVoid:(e,t)=>kr.isElement(t)&&e.isVoid(t),last(e,t){var n=Ze.path(e,t,{edge:"end"});return Ze.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ze.path(e,t,n);return[Yn.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=Ze.path(e,n);for(var[l,u]of Yn.levels(e,s))if(i(l,u)&&(a.push([l,u]),!o&&Ze.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]=Ze.nodes(e,{match:ir.isText});if(r){var[o]=r;return lp(o,vwt)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Ze.leaf(e,a);if(i.offset===0){var l=Ze.previous(e,{at:a,match:ir.isText}),u=Ze.above(e,{match:p=>Ze.isBlock(e,p)});if(l&&u){var[d,c]=l,[,f]=u;Ht.isAncestor(f,c)&&(s=d)}}return lp(s,mwt)},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=Ze.after(e,i,{voids:r});if(a){var[,s]=Ze.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]=Ze.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Ze.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=Ze.path(e,t,n);return[Yn.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(ywt.isSpan(n))l=n[0],u=n[1];else{var d=Ze.path(e,n,{edge:"start"}),c=Ze.path(e,n,{edge:"end"});l=i?c:d,u=i?d:c}var f,p=Yn.nodes(e,{reverse:i,from:l,to:u,pass:b=>{var[w]=b;return!a&&Ze.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=>Pk.get(i)||[];if(Ze.isNormalizing(e)){if(n){var o=Array.from(Yn.nodes(e),(i=>{var[,a]=i;return a}));Pk.set(e,o)}r(e).length!==0&&Ze.withoutNormalizing(e,(()=>{for(var i of r(e))if(Yn.has(e,i)){var a=Ze.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(`
  737. 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.
  738. `));var c=r(e).pop();if(Yn.has(e,c)){var f=Ze.node(e,c);e.normalizeNode(f)}d++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ze.path(e,t,n),o=Ht.parent(r);return Ze.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]=Yn.first(e,t);t=i}else if(o==="end"){var[,a]=Yn.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)=>Yn.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 Ze.pathRefs(e).delete(o),o.current=null,i}};return Ze.pathRefs(e).add(o),o},pathRefs(e){var t=Xie.get(e);return t||(t=new Set,Xie.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]=Yn.last(e,t);o=i}else{var[,a]=Yn.first(e,t);o=a}var s=Yn.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 Ze.pointRefs(e).delete(o),o.current=null,i}};return Ze.pointRefs(e).add(o),o},pointRefs(e){var t=Jie.get(e);return t||(t=new Set,Jie.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=Ze.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 Ze.nodes(e,{at:n,reverse:o,voids:i})){if(kr.isElement(h)){if(!i&&e.isVoid(h)){yield Ze.start(e,g);continue}if(e.isInline(h))continue;if(Ze.hasInlines(e,h)){var y=Ht.isAncestor(g,l.path)?l:Ze.end(e,g),m=Ht.isAncestor(g,s.path)?s:Ze.start(e,g);c=Ze.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=bU(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"?yU(A,k):S==="word"?(function(O){for(var I=arguments.length>1&&arguments[1]!==void 0&&arguments[1],P=0,M=!1;O.length>0;){var _=yU(O,I),[R,N]=bU(O,_,I);if(Q2t(R,N,I))M=!0,P+=_;else{if(M)break;P+=_}O=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=Ze.before(e,i,{voids:r});if(a){var[,s]=Ze.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]=Ze.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Ze.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return d}}},range:(e,t,n)=>pn.isRange(t)&&!n?t:{anchor:Ze.start(e,t),focus:Ze.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 Ze.rangeRefs(e).delete(o),o.current=null,i}};return Ze.rangeRefs(e).add(o),o},rangeRefs(e){var t=eae.get(e);return t||(t=new Set,eae.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Zie.set(e,t)},start:(e,t)=>Ze.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=Ze.range(e,t),[i,a]=pn.edges(o),s="";for(var[l,u]of Ze.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=Ze.above(e,{at:i,match:f=>Ze.isBlock(e,f)}),s=a?a[1]:[],l={anchor:Ze.start(e,[]),focus:i},u=!0;for(var[d,c]of Ze.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 Ze.above(e,Hm(Hm({},t),{},{match:n=>Ze.isVoid(e,n)}))},withoutNormalizing(e,t){var n=Ze.isNormalizing(e);Ze.setNormalizing(e,!1);try{t()}finally{Ze.setNormalizing(e,n)}Ze.normalize(e)}},ywt={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(Ht.isPath)},bwt=["children"],wwt=["text"],iae=new WeakMap,Yn={ancestor(e,t){var n=Yn.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=[Yn.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=Yn.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Yn.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[Yn.get(e,r),r]},descendant(e,t){var n=Yn.get(e,t);if(Ze.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 Yn.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 Yn.nodes(e,t))kr.isElement(n)&&(yield[n,r])},extractProps:e=>kr.isAncestor(e)?lp(e,bwt):lp(e,wwt),first(e,t){for(var n=t.slice(),r=Yn.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=c7({children:e.children},(r=>{var[o,i]=pn.edges(t),a=Yn.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=Yn.parent(r,s),u=s[s.length-1];l.children.splice(u,1)}if(Ht.equals(s,i.path)){var d=Yn.leaf(r,s);d.text=d.text.slice(0,i.offset)}if(Ht.equals(s,o.path)){var c=Yn.leaf(r,s);c.text=c.text.slice(o.offset)}}Ze.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)||Ze.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=iae.get(e);if(t!==void 0)return t;var n=e.every((r=>Yn.isNode(r)));return iae.set(e,n),n},last(e,t){for(var n=t.slice(),r=Yn.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=Yn.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=Yn.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(Yn.has(e,u)){s=u,l=Yn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=Ht.previous(s),l=Yn.get(e,s)):(s=Ht.parent(s),l=Yn.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=Yn.get(e,s)}},parent(e,t){var n=Ht.parent(t),r=Yn.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(Yn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Yn.nodes(e,t))ir.isText(n)&&(yield[n,r])}};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 Ba(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 Ch={isNodeOperation:e=>Ch.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)&&Yn.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=>Ch.isOperation(t))),isSelectionOperation:e=>Ch.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ch.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 c7(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)}}}))}},Awt={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 sae(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 lae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sae(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 c7(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,lae(lae({},n),{},{affinity:"forward"})))}else r.path=Ht.transform(i,t,n)}}))}},Cwt={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()}}},xwt=["anchor","focus"];function uae(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=lp(e,xwt),[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?uae(Object(c),!0).forEach((function(f){nf(u,f,c[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(c)):uae(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 c7(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}))}},Swt={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()}}},uCe=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ns(r)&&Ns(o)){if(!uCe(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},Ewt=["text"],kwt=["anchor","focus"];function cae(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?cae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cae(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 lp(i,Ewt)}return uCe(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=lp(r,kwt),[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 dae(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 nw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Twt={transform(e,t){e.children=Yie(e.children);var n=e.selection&&Yie(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:s}=i,l=Yn.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=Yn.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=Yn.get(r,w),S=Ht.previous(w),k=Yn.get(r,S),O=Yn.parent(r,w),I=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(O.children.splice(I,1),o)for(var[P,M]of pn.points(o))o[M]=mo.transform(P,i);break;case"move_node":var{path:_,newPath:R}=i;if(Ht.isAncestor(_,R))throw new Error("Cannot move a path [".concat(_,"] to new path [").concat(R,"] because the destination is inside itself."));var N=Yn.get(r,_),V=Yn.parent(r,_),L=_[_.length-1];V.children.splice(L,1);var j=Ht.transform(_,i),H=Yn.get(r,Ht.parent(j)),G=j[j.length-1];if(H.children.splice(G,0,N),o)for(var[Z,z]of pn.points(o))o[z]=mo.transform(Z,i);break;case"remove_node":var{path:U}=i,W=U[U.length-1];if(Yn.parent(r,U).children.splice(W,1),o)for(var[re,J]of pn.points(o)){var te=mo.transform(re,i);if(o!=null&&te!=null)o[J]=te;else{var X=void 0,ue=void 0;for(var[me,Me]of Yn.texts(r)){if(Ht.compare(Me,U)!==-1){ue=[me,Me];break}X=[me,Me]}var Ae=!1;X&&ue&&(Ae=Ht.equals(ue[1],U)?!Ht.hasPrevious(ue[1]):Ht.common(X[1],U).length<Ht.common(ue[1],U).length),X&&!Ae?(re.path=X[1],re.offset=X[0].text.length):ue?(re.path=ue[1],re.offset=0):o=null}}break;case"remove_text":var{path:ge,offset:_e,text:Q}=i;if(Q.length===0)break;var be=Yn.leaf(r,ge),De=be.text.slice(0,_e),pe=be.text.slice(_e+Q.length);if(be.text=De+pe,o)for(var[ie,ce]of pn.points(o))o[ce]=mo.transform(ie,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=Yn.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 ht in Ee)Le.hasOwnProperty(ht)||delete Fe[ht];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=nw({},Rt)}for(var Lt in Rt){var tn=Rt[Lt];if(tn==null){if(Lt==="anchor"||Lt==="focus")throw new Error('Cannot remove the "'.concat(Lt,'" selection property'));delete o[Lt]}else o[Lt]=tn}}break;case"split_node":var{path:Wt,position:zt,properties:dt}=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,ut=Yn.get(r,Wt),rt=Yn.parent(r,Wt),he=Wt[Wt.length-1];if(ir.isText(ut)){var Je=ut.text.slice(0,zt),ct=ut.text.slice(zt);ut.text=Je,_t=nw(nw({},dt),{},{text:ct})}else{var Ot=ut.children.slice(0,zt),Tn=ut.children.slice(zt);ut.children=Ot,_t=nw(nw({},dt),{},{children:Tn})}if(rt.children.splice(he+1,0,_t),o)for(var[In,je]of pn.points(o))o[je]=mo.transform(In,i)}return o})(e,n,t)}finally{e.children=Qie(e.children),e.selection=n?zv(n)?Qie(n):n:null}}},_wt=["text"],Dwt=["children"];function fae(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 pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Iwt={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ze.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Yn.isNode(t)&&(t=[t]),t.length!==0){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Ze.end(e,[]):[0],l=!0),l==null&&(l=!1),pn.isRange(a))if(r||(a=Ze.unhangRange(e,a)),pn.isCollapsed(a))a=a.anchor;else{var[,d]=pn.edges(a),c=Ze.pointRef(e,d);Xt.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)||Ze.isInline(e,S):S=>Ze.isBlock(e,S));var[f]=Ze.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!f)return;var[,p]=f,v=Ze.pathRef(e,p),h=Ze.isEnd(e,a,p);Xt.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||!Ze.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=Ze.end(e,a);A&&Xt.select(e,A)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ze.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=Ht.isPath(n)?Wm(e,n):b=>Ze.isBlock(e,b)),n){var a=Ze.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(b=>{var[,w]=b;return Ze.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=Ze.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);Xt.moveNodes(e,{at:u,to:h,voids:o}),Xt.removeNodes(e,{at:f,voids:o})}else if(p===0)Xt.moveNodes(e,{at:u,to:f,voids:o});else if(p===v-1){var g=Ht.next(f);Xt.moveNodes(e,{at:u,to:g,voids:o})}else{var y=Ht.next(u),m=Ht.next(f);Xt.splitNodes(e,{at:y,voids:o}),Xt.moveNodes(e,{at:u,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ze.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]=Ze.parent(e,r);n=I=>s.children.includes(I)}else n=I=>Ze.isBlock(e,I);if(!o&&pn.isRange(r)&&(r=Ze.unhangRange(e,r)),pn.isRange(r))if(pn.isCollapsed(r))r=r.anchor;else{var[,l]=pn.edges(r),u=Ze.pointRef(e,l);Xt.delete(e,{at:r}),r=u.unref(),t.at==null&&Xt.select(e,r)}var[d]=Ze.nodes(e,{at:r,match:n,voids:i,mode:a}),c=Ze.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(Ze.levels(e,{at:p}),(I=>{var[P]=I;return P})).slice(b.length).slice(0,-1),S=Ze.above(e,{at:p,mode:"highest",match:I=>A.includes(I)&&cCe(e,I)}),k=S&&Ze.pathRef(e,S[1]);if(ir.isText(f)&&ir.isText(v)){var O=lp(f,_wt);y=v.text.length,g=O}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)));O=lp(f,Dwt),y=v.children.length,g=O}w||Xt.moveNodes(e,{at:p,to:m,voids:i}),k&&Xt.removeNodes(e,{at:k.current,voids:i}),kr.isElement(v)&&Ze.isEmpty(e,v)||ir.isText(v)&&v.text===""&&h[h.length-1]!==0?Xt.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),k&&k.unref()}}}}))},moveNodes(e,t){Ze.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)?Wm(e,r):p=>Ze.isBlock(e,p));var s=Ze.pathRef(e,n),l=Ze.nodes(e,{at:r,match:a,mode:o,voids:i}),u=Array.from(l,(p=>{var[,v]=p;return Ze.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]:{};Ze.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)?Wm(e,i):f=>Ze.isBlock(e,f)),!n&&pn.isRange(i)&&(i=Ze.unhangRange(e,i));var s=Ze.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(f=>{var[,p]=f;return Ze.pathRef(e,p)}));for(var u of l){var d=u.unref();if(d){var[c]=Ze.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]:{};Ze.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)?Wm(e,o):A=>Ze.isBlock(e,A)),!i&&pn.isRange(o)&&(o=Ze.unhangRange(e,o)),s&&pn.isRange(o)){if(pn.isCollapsed(o)&&Ze.leaf(e,o.anchor)[0].text.length>0)return;var u=Ze.rangeRef(e,o,{affinity:"inward"}),[d,c]=pn.edges(o),f=a==="lowest"?"lowest":"highest",p=Ze.isEnd(e,c,c.path);Xt.splitNodes(e,{at:c,match:r,mode:f,voids:l,always:!p});var v=Ze.isStart(e,d,d.path);Xt.splitNodes(e,{at:d,match:r,mode:f,voids:l,always:!v}),o=u.unref(),n.at==null&&Xt.select(e,o)}for(var[h,g]of Ze.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]:{};Ze.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=>Ze.isBlock(e,N)),pn.isRange(i)&&(i=Owt(e,i)),Ht.isPath(i)){var l=i,u=Ze.point(e,l),[d]=Ze.parent(e,l);o=N=>N===d,a=u.path.length-l.length+1,i=u,s=!0}if(i){var c=Ze.pointRef(e,i,{affinity:"backward"}),[f]=Ze.nodes(e,{at:i,match:o,mode:n,voids:r});if(f){var p=Ze.void(e,{at:i,mode:"highest"});if(!r&&p){var[v,h]=p;if(kr.isElement(v)&&e.isInline(v)){var g=Ze.after(e,h);if(!g){var y=Ht.next(h);Xt.insertNodes(e,{text:""},{at:y,voids:r}),g=Ze.point(e,y)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var m=Ze.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,O]of Ze.levels(e,{at:A,reverse:!0,voids:r})){var I=!1;if(O.length<w.length||O.length===0||!r&&Ze.isVoid(e,k))break;var P=c.current,M=Ze.isEnd(e,P,O);if(s||!c||!Ze.isEdge(e,P,O)){I=!0;var _=Yn.extractProps(k);e.apply({type:"split_node",path:O,position:S,properties:_})}S=O[O.length-1]+(I||M?1:0)}if(t.at==null){var R=m.current||Ze.end(e,[]);Xt.select(e,R)}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;Xt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ze.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)?Wm(e,i):f=>Ze.isBlock(e,f)),Ht.isPath(i)&&(i=Ze.range(e,i));var s=pn.isRange(i)?Ze.rangeRef(e,i):null,l=Ze.nodes(e,{at:i,match:a,mode:n,voids:o}),u=Array.from(l,(f=>{var[,p]=f;return Ze.pathRef(e,p)})).reverse(),d=function(f){var p=f.unref(),[v]=Ze.node(e,p),h=Ze.range(e,p);r&&s&&(h=pn.intersection(s.current,h)),Xt.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]:{};Ze.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)?Wm(e,s):e.isInline(t)?g=>Ze.isInline(e,g)||ir.isText(g):g=>Ze.isBlock(e,g)),o&&pn.isRange(s)){var[l,u]=pn.edges(s),d=Ze.rangeRef(e,s,{affinity:"inward"});Xt.splitNodes(e,{at:u,match:a,voids:i}),Xt.splitNodes(e,{at:l,match:a,voids:i}),s=d.unref(),n.at==null&&Xt.select(e,s)}var c=Array.from(Ze.nodes(e,{at:s,match:e.isInline(t)?g=>Ze.isBlock(e,g):g=>Ze.isEditor(g),mode:"lowest",voids:i}));for(var[,f]of c){var p=pn.isRange(s)?pn.intersection(s,Ze.range(e,f)):s;if(p){var v=Array.from(Ze.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=Ze.range(e,m,b),S=Ze.node(e,w),[k]=S,O=w.length+1,I=Ht.next(b.slice(0,O)),P=pae(pae({},t),{},{children:[]});Xt.insertNodes(e,P,{at:I,voids:i}),Xt.moveNodes(e,{at:A,match:M=>kr.isAncestor(k)&&k.children.includes(M),to:I.concat(0),voids:i})})();if(h==="continue")continue}}}}}))}},cCe=(e,t)=>{if(kr.isElement(t)){var n=t;return!!Ze.isVoid(e,t)||n.children.length===1&&cCe(e,n.children[0])}return!Ze.isEditor(t)},Owt=(e,t)=>{if(pn.isCollapsed(t))return t.anchor;var[,n]=pn.edges(t),r=Ze.pointRef(e,n);return Xt.delete(e,{at:t}),r.unref()},Wm=(e,t)=>{var[n]=Ze.node(e,t);return r=>r===n};function hae(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 gae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Mwt={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")Xt.select(e,r.anchor);else if(n==="focus")Xt.select(e,r.focus);else if(n==="start"){var[o]=pn.edges(r);Xt.select(e,o)}else if(n==="end"){var[,i]=pn.edges(r);Xt.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?Ze.before(e,s,u):Ze.after(e,s,u);c&&(d.anchor=c)}if(a==null||a==="focus"){var f=i?Ze.before(e,l,u):Ze.after(e,l,u);f&&(d.focus=f)}Xt.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=Ze.range(e,t),n)Xt.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;Xt.setSelection(e,{[o==="anchor"?"anchor":"focus"]:gae(gae({},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})}}},Pwt={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ze.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=Ze.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?Ze.before(e,a,d)||Ze.start(e,[]):Ze.after(e,a,d)||Ze.end(e,[])},s=!0}}if(Ht.isPath(a))Xt.removeNodes(e,{at:a,voids:i});else if(!pn.isCollapsed(a)){if(!s){var[,c]=pn.edges(a),f=Ze.end(e,[]);mo.equals(c,f)||(a=Ze.unhangRange(e,a,{voids:i}))}var[p,v]=pn.edges(a),h=Ze.above(e,{match:ue=>Ze.isBlock(e,ue),at:p,voids:i}),g=Ze.above(e,{match:ue=>Ze.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:Ze.void(e,{at:p,mode:"highest"}),w=i?null:Ze.void(e,{at:v,mode:"highest"});if(b){var A=Ze.before(e,p);A&&h&&Ht.isAncestor(h[1],A.path)&&(p=A)}if(w){var S=Ze.after(e,v);S&&g&&Ht.isAncestor(g[1],S.path)&&(v=S)}var k,O=[];for(var I of Ze.nodes(e,{at:a,voids:i})){var[P,M]=I;k&&Ht.compare(M,k)===0||(!i&&Ze.isVoid(e,P)||!Ht.isCommon(M,p.path)&&!Ht.isCommon(M,v.path))&&(O.push(I),k=M)}var _=Array.from(O,(ue=>{var[,me]=ue;return Ze.pathRef(e,me)})),R=Ze.pointRef(e,p),N=Ze.pointRef(e,v);if(!m&&!b){var V=R.current,[L]=Ze.leaf(e,V),{path:j}=V,{offset:H}=p,G=L.text.slice(H);G.length>0&&e.apply({type:"remove_text",path:j,offset:H,text:G})}for(var Z of _){var z=Z.unref();Xt.removeNodes(e,{at:z,voids:i})}if(!w){var U=N.current,[W]=Ze.leaf(e,U),{path:re}=U,J=m?p.offset:0,te=W.text.slice(J,v.offset);te.length>0&&e.apply({type:"remove_text",path:re,offset:J,text:te})}!m&&y&&N.current&&R.current&&Xt.mergeNodes(e,{at:N.current,hanging:!0,voids:i});var X=n?R.unref()||N.unref():N.unref()||R.unref();t.at==null&&X&&Xt.select(e,X)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ze.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=Ze.unhangRange(e,i)),pn.isCollapsed(i))i=i.anchor;else{var[,a]=pn.edges(i);if(!o&&Ze.void(e,{at:a}))return;var s=Ze.pointRef(e,a);Xt.delete(e,{at:i}),i=s.unref()}else Ht.isPath(i)&&(i=Ze.start(e,i));if(o||!Ze.void(e,{at:i})){var l=Ze.above(e,{at:i,match:U=>Ze.isInline(e,U),mode:"highest",voids:o});if(l){var[,u]=l;Ze.isEnd(e,i,u)?i=Ze.after(e,u):Ze.isStart(e,i,u)&&(i=Ze.before(e,u))}var d=Ze.above(e,{match:U=>Ze.isBlock(e,U),at:i,voids:o}),[,c]=d,f=Ze.isStart(e,i,c),p=Ze.isEnd(e,i,c),v=f&&p,h=!f||f&&p,g=!p,[,y]=Yn.first({children:t},[]),[,m]=Yn.last({children:t},[]),b=[],w=U=>{var[W,re]=U;return re.length!==0&&(!!v||!(h&&Ht.isAncestor(re,y)&&kr.isElement(W)&&!e.isVoid(W)&&!e.isInline(W))&&!(g&&Ht.isAncestor(re,m)&&kr.isElement(W)&&!e.isVoid(W)&&!e.isInline(W)))};for(var A of Yn.nodes({children:t},{pass:w}))w(A)&&b.push(A);var S=[],k=[],O=[],I=!0,P=!1;for(var[M]of b)kr.isElement(M)&&!e.isInline(M)?(I=!1,P=!0,k.push(M)):I?S.push(M):O.push(M);var[_]=Ze.nodes(e,{at:i,match:U=>ir.isText(U)||Ze.isInline(e,U),mode:"highest",voids:o}),[,R]=_,N=Ze.isStart(e,i,R),V=Ze.isEnd(e,i,R),L=Ze.pathRef(e,p?Ht.next(c):c),j=Ze.pathRef(e,V?Ht.next(R):R),H=Ze.pathRef(e,c);Xt.splitNodes(e,{at:i,match:U=>P?Ze.isBlock(e,U):ir.isText(U)||Ze.isInline(e,U),mode:P?"lowest":"highest",voids:o});var G=Ze.pathRef(e,!N||N&&V?Ht.next(R):R);if(Xt.insertNodes(e,S,{at:G.current,match:U=>ir.isText(U)||Ze.isInline(e,U),mode:"highest",voids:o}),v&&k.length&&Xt.delete(e,{at:H.unref(),voids:o}),Xt.insertNodes(e,k,{at:L.current,match:U=>Ze.isBlock(e,U),mode:"lowest",voids:o}),Xt.insertNodes(e,O,{at:j.current,match:U=>ir.isText(U)||Ze.isInline(e,U),mode:"highest",voids:o}),!n.at){var Z;Z=O.length>0?Ht.previous(j.current):k.length>0?Ht.previous(L.current):Ht.previous(G.current);var z=Ze.end(e,Z);Xt.select(e,z)}G.unref(),L.unref(),j.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ze.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ht.isPath(o)&&(o=Ze.range(e,o)),pn.isRange(o))if(pn.isCollapsed(o))o=o.anchor;else{var i=pn.end(o);if(!r&&Ze.void(e,{at:i}))return;var a=Ze.pointRef(e,i);Xt.delete(e,{at:o,voids:r}),o=a.unref(),Xt.setSelection(e,{anchor:o,focus:o})}if(r||!Ze.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 vae(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 l6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vae(Object(n),!0).forEach((function(r){nf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Xt=l6(l6(l6(l6({},Twt),Iwt),Mwt),Pwt),wU="[object Map]",AU="[object Set]",Nwt=/^\[object .+?Constructor\]$/,Rwt=/^(?:0|[1-9]\d*)$/,Bwt="[\\ud800-\\udfff]",CU="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",xU="\\ud83c[\\udffb-\\udfff]",dCe="[^\\ud800-\\udfff]",fCe="(?:\\ud83c[\\udde6-\\uddff]){2}",pCe="[\\ud800-\\udbff][\\udc00-\\udfff]",mae="(?:"+CU+"|"+xU+")?",Lwt="[\\ufe0e\\ufe0f]?"+mae+("(?:\\u200d(?:"+[dCe,fCe,pCe].join("|")+")[\\ufe0e\\ufe0f]?"+mae+")*"),Fwt="(?:"+[dCe+CU+"?",CU,fCe,pCe,Bwt].join("|")+")",Uwt=RegExp(xU+"(?="+xU+")|"+Fwt+Lwt,"g"),zwt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$wt=typeof bi=="object"&&bi&&bi.Object===Object&&bi,jwt=typeof self=="object"&&self&&self.Object===Object&&self,pm=$wt||jwt||Function("return this")();function Hwt(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 Wwt(e){var t=-1,n=Array(e.size);return e.forEach((function(r,o){n[++t]=[o,r]})),n}function Vwt(e){var t=-1,n=Array(e.size);return e.forEach((function(r){n[++t]=r})),n}function qwt(e){return(function(t){return zwt.test(t)})(e)?(function(t){return t.match(Uwt)||[]})(e):(function(t){return t.split("")})(e)}var yae,bae,Gwt=Function.prototype,d7=Object.prototype,HM=pm["__core-js_shared__"],wae=(function(){var e=/[^.]+$/.exec(HM&&HM.keys&&HM.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),hCe=Gwt.toString,Nk=d7.hasOwnProperty,f5=d7.toString,Kwt=RegExp("^"+hCe.call(Nk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Aae=pm.Symbol,WM=Aae?Aae.iterator:void 0,Ywt=d7.propertyIsEnumerable,Qwt=(yae=Object.keys,bae=Object,function(e){return yae(bae(e))}),SU=p5(pm,"DataView"),EU=p5(pm,"Map"),kU=p5(pm,"Promise"),TU=p5(pm,"Set"),_U=p5(pm,"WeakMap"),Zwt=hm(SU),Xwt=hm(EU),Jwt=hm(kU),e4t=hm(TU),t4t=hm(_U);function n4t(e,t){var n=gCe(e)||(function(a){return(function(s){return yCe(s)&&rG(s)})(a)&&Nk.call(a,"callee")&&(!Ywt.call(a,"callee")||f5.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)!Nk.call(e,i)||o&&(i=="length"||i4t(i,r))||n.push(i);return n}function r4t(e){if(!mCe(e)||(function(n){return!!wae&&wae in n})(e))return!1;var t=vCe(e)||(function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r})(e)?Kwt:Nwt;return t.test(hm(e))}function o4t(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||d7,t!==r)return Qwt(e);var t,n,r,o=[];for(var i in Object(e))Nk.call(e,i)&&i!="constructor"&&o.push(i);return o}function p5(e,t){var n=(function(r,o){return r?.[o]})(e,t);return r4t(n)?n:void 0}var yg=function(e){return f5.call(e)};function i4t(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Rwt.test(e))&&e>-1&&e%1==0&&e<t}function hm(e){if(e!=null){try{return hCe.call(e)}catch{}try{return e+""}catch{}}return""}(SU&&yg(new SU(new ArrayBuffer(1)))!="[object DataView]"||EU&&yg(new EU)!=wU||kU&&yg(kU.resolve())!="[object Promise]"||TU&&yg(new TU)!=AU||_U&&yg(new _U)!="[object WeakMap]")&&(yg=function(e){var t=f5.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?hm(n):void 0;if(r)switch(r){case Zwt:return"[object DataView]";case Xwt:return wU;case Jwt:return"[object Promise]";case e4t:return AU;case t4t:return"[object WeakMap]"}return t});var gCe=Array.isArray;function rG(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!vCe(e)}function vCe(e){var t=mCe(e)?f5.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function mCe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yCe(e){return!!e&&typeof e=="object"}function a4t(e){return e?Hwt(e,(function(t){return rG(t)?n4t(t):o4t(t)})(e)):[]}var Cae=function(e){if(!e)return[];if(rG(e))return(function(n){return typeof n=="string"||!gCe(n)&&yCe(n)&&f5.call(n)=="[object String]"})(e)?qwt(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(WM&&e[WM])return(function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o})(e[WM]());var t=yg(e);return(t==wU?Wwt:t==AU?Vwt:a4t)(e)};function xae(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function oG(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:xae(t[n])&&xae(e[n])&&Object.keys(t[n]).length>0&&oG(e[n],t[n])}))}var bCe={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 h5(){var e=typeof document<"u"?document:{};return oG(e,bCe),e}var s4t={document:bCe,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 gm(){var e=typeof window<"u"?window:{};return oG(e,s4t),e}function DU(e){return DU=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DU(e)}function Rk(e,t){return Rk=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Rk(e,t)}function l4t(){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 IU(e,t,n){return IU=l4t()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Rk(s,i.prototype),s},IU.apply(null,arguments)}function OU(e){var t=typeof Map=="function"?new Map:void 0;return OU=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 IU(n,arguments,DU(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Rk(r,n)},OU(e)}var xh=(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})(OU(Array));function f7(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(n){Array.isArray(n)?t.push.apply(t,f7(n)):t.push(n)})),t}function wCe(e,t){return Array.prototype.filter.call(e,t)}function Pt(e,t){var n=gm(),r=h5(),o=[];if(!t&&e instanceof xh)return e;if(!e)return new xh(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 xh)return e;o=e}return new xh((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=f7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.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=f7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,r)})),this}function Xy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f7(t.map((function(o){return o.split(" ")})));return wCe(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 Bk(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Jy(){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),Pt(g).is(o))i.apply(g,y);else for(var m=Pt(g).parents(),b=0;b<m.length;b+=1)Pt(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 Sae(){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 Lk(){var e=gm();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Fk(){var e=gm();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Eae(){if(this.length>0){var e=gm(),t=h5(),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 eb(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Uk(){for(var e=gm(),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 zk(e,t){var n,r=gm();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 $k(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function kae(e){return Pt(wCe(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 jk(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 Tae(e){var t,n,r=gm(),o=h5(),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=Pt(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 xh){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=h5(),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 xh)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function _ae(e){var t,n,r=h5();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 xh)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 tb(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?Pt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Pt(t)}function Hk(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Pt(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Pt(t)}function nb(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 Pt(t)}function rb(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&&!Pt(r[o]).is(e)||t.push(r[o]);return Pt(t)}function ob(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ib(){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}Pt.fn=xh.prototype;var u4t="resize scroll".split(" ");function ACe(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)u4t.indexOf(e)<0&&(e in this[o]?this[o][e]():Pt(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Dae=ACe("click"),g0=ACe("focus"),c4t="[object GeneratorFunction]",d4t=/^(?:0|[1-9]\d*)$/;function f4t(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var p7=Object.prototype,MU=p7.hasOwnProperty,CCe=p7.toString,p4t=p7.propertyIsEnumerable,h4t=(function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);function g4t(e,t){var n=xCe(e)||(function(a){return(function(s){return(function(l){return!!l&&typeof l=="object"})(s)&&iG(s)})(a)&&MU.call(a,"callee")&&(!p4t.call(a,"callee")||CCe.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)!MU.call(e,i)||o&&(i=="length"||b4t(i,r))||n.push(i);return n}var Iae,v4t=(Iae=function(e,t){return e&&m4t(e,t,w4t)},function(e,t){if(e==null)return e;if(!iG(e))return Iae(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),m4t=(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 y4t(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||p7,t!==r)return h4t(e);var t,n,r,o=[];for(var i in Object(e))MU.call(e,i)&&i!="constructor"&&o.push(i);return o}function b4t(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||d4t.test(e))&&e>-1&&e%1==0&&e<t}var xCe=Array.isArray;function iG(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)?CCe.call(t):"";return n=="[object Function]"||n==c4t})(e)}function w4t(e){return iG(e)?g4t(e):y4t(e)}function A4t(e){return e}var aG=function(e,t){return(xCe(e)?f4t:v4t)(e,typeof t=="function"?t:A4t)};let SCe=(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 C4t=/^\s+|\s+$/g,x4t=/^[-+]0x[0-9a-f]+$/i,S4t=/^0b[01]+$/i,E4t=/^0o[0-7]+$/i,k4t=parseInt,T4t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,_4t=typeof self=="object"&&self&&self.Object===Object&&self,D4t=T4t||_4t||Function("return this")(),I4t=Object.prototype.toString,O4t=Math.max,M4t=Math.min,VM=function(){return D4t.Date.now()};function P4t(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=VM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?M4t(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=VM(),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=Oae(t)||0,Wk(n)&&(d=!!n.leading,i=(c="maxWait"in n)?O4t(Oae(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(VM())},m}function Wk(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Oae(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&I4t.call(r)=="[object Symbol]"})(e))return NaN;if(Wk(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wk(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(C4t,"");var n=S4t.test(e);return n||E4t.test(e)?k4t(e.slice(2),n?2:8):x4t.test(e)?NaN:+e}var jv=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Wk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),P4t(e,t,{leading:r,maxWait:t,trailing:o})};const N4t={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 kA(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 PU=Array.isArray;function E8(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function qM(e){return e===void 0}function Kl(e){return e!==void 0}const Mae=kA("",{},[],void 0,void 0);function rw(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 R4t(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 B4t=["create","update","remove","destroy","pre","post"];function L4t(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=N4t;for(const c of B4t)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 kA(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==="!")qM(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,O=c.elm=Kl(g)&&Kl(h=g.ns)?r.createElementNS(h,k,g):r.createElement(k,g);for(A<S&&O.setAttribute("id",m.slice(A+1,S)),w>0&&O.setAttribute("class",m.slice(S+1).replace(/\./g," ")),h=0;h<n.create.length;++h)n.create[h](Mae,c);if(PU(y))for(h=0;h<y.length;++h){const P=y[h];P!=null&&r.appendChild(O,a(P,f))}else E8(c.text)&&r.appendChild(O,r.createTextNode(c.text));const I=c.data.hook;Kl(I)&&((v=I.create)===null||v===void 0||v.call(I,Mae,c),I.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)}qM(f.text)?Kl(A)&&Kl(S)?A!==S&&(function(k,O,I,P){let M,_,R,N,V=0,L=0,j=O.length-1,H=O[0],G=O[j],Z=I.length-1,z=I[0],U=I[Z];for(;V<=j&&L<=Z;)H==null?H=O[++V]:G==null?G=O[--j]:z==null?z=I[++L]:U==null?U=I[--Z]:rw(H,z)?(d(H,z,P),H=O[++V],z=I[++L]):rw(G,U)?(d(G,U,P),G=O[--j],U=I[--Z]):rw(H,U)?(d(H,U,P),r.insertBefore(k,H.elm,r.nextSibling(G.elm)),H=O[++V],U=I[--Z]):rw(G,z)?(d(G,z,P),r.insertBefore(k,G.elm,H.elm),G=O[--j],z=I[++L]):(M===void 0&&(M=R4t(O,V,j)),_=M[z.key],qM(_)?r.insertBefore(k,a(z,P),H.elm):(R=O[_],R.sel!==z.sel?r.insertBefore(k,a(z,P),H.elm):(d(R,z,P),O[_]=void 0,r.insertBefore(k,R.elm,H.elm))),z=I[++L]);(V<=j||L<=Z)&&(V>j?(N=I[Z+1]==null?null:I[Z+1].elm,s(k,N,I,L,Z,P)):u(k,O,V,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)),rw(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 ECe(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&&ECe(o,t[r].children,t[r].sel)}}function ab(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),PU(n)?r=n:E8(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(PU(t)?r=t:E8(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)E8(r[i])&&(r[i]=kA(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]!=="#"||ECe(a,r,e),kA(e,a,r,o,void 0)}function Pae(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:Pae,update:Pae};function Nae(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 U4t={create:Nae,update:Nae},Rae=/[A-Z]/g;function Bae(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(Rae,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Rae,"-$&").toLowerCase(),i[r]))}const z4t={create:Bae,update:Bae};function kCe(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++)kCe(e[r],t,n)}function $4t(e,t){const n=e.type,r=t.data.on;r&&r[n]&&kCe(r[n],t,e)}function GM(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){$4t(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 j4t={create:GM,update:GM,destroy:GM};function Lae(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 H4t={create:Lae,update:Lae},Fae=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let KM=!1;function W4t(e,t,n){(function(r){Fae((function(){Fae(r)}))})((function(){e[t]=n}))}function Uae(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]||W4t(o.style,l,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const V4t={pre:function(){KM=!1},create:Uae,update:Uae,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;KM||(e.elm.offsetLeft,KM=!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 TCe(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?TCe(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(kA(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Xr(e,t,...n){const r=TCe(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?ab(e,t,r[0].text):ab(e,t,r)}Xr||(Xr={});var q4t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G4t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_Ce="\\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",K4t="[\\ud800-\\udfff]",zae="["+_Ce+"]",Vk="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",DCe="\\d+",Y4t="[\\u2700-\\u27bf]",ICe="[a-z\\xdf-\\xf6\\xf8-\\xff]",OCe="[^\\ud800-\\udfff"+_Ce+DCe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",NU="\\ud83c[\\udffb-\\udfff]",MCe="[^\\ud800-\\udfff]",sG="(?:\\ud83c[\\udde6-\\uddff]){2}",lG="[\\ud800-\\udbff][\\udc00-\\udfff]",D1="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$ae="(?:"+ICe+"|"+OCe+")",Q4t="(?:"+D1+"|"+OCe+")",jae="(?:"+Vk+"|"+NU+")?",PCe="[\\ufe0e\\ufe0f]?"+jae+("(?:\\u200d(?:"+[MCe,sG,lG].join("|")+")[\\ufe0e\\ufe0f]?"+jae+")*"),Z4t="(?:"+[Y4t,sG,lG].join("|")+")"+PCe,X4t="(?:"+[MCe+Vk+"?",Vk,sG,lG,K4t].join("|")+")",J4t=RegExp("['’]","g"),e3t=RegExp(Vk,"g"),t3t=RegExp(NU+"(?="+NU+")|"+X4t+PCe,"g"),n3t=RegExp([D1+"?"+ICe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[zae,D1,"$"].join("|")+")",Q4t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[zae,D1+$ae,"$"].join("|")+")",D1+"?"+$ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",D1+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",DCe,Z4t].join("|"),"g"),r3t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),o3t=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i3t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,a3t=typeof self=="object"&&self&&self.Object===Object&&self,s3t=i3t||a3t||Function("return this")(),YM,l3t=(YM={À:"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 YM?.[e]});function NCe(e){return r3t.test(e)}function u3t(e){return NCe(e)?(function(t){return t.match(t3t)||[]})(e):(function(t){return t.split("")})(e)}var c3t=Object.prototype.toString,Hae=s3t.Symbol,Wae=Hae?Hae.prototype:void 0,Vae=Wae?Wae.toString:void 0;function d3t(e){if(typeof e=="string")return e;if((function(n){return typeof n=="symbol"||(function(r){return!!r&&typeof r=="object"})(n)&&c3t.call(n)=="[object Symbol]"})(e))return Vae?Vae.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function f3t(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 k8(e){return e==null?"":d3t(e)}var qae,p3t=(qae=function(e,t,n){return t=t.toLowerCase(),e+(n?h3t(k8(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=k8(t),(n=n)===void 0?(function(o){return o3t.test(o)})(t)?(function(o){return o.match(n3t)||[]})(t):(function(o){return o.match(q4t)||[]})(t):t.match(n)||[]})((function(t){return(t=k8(t))&&t.replace(G4t,l3t).replace(e3t,"")})(e).replace(J4t,"")),qae,"")}),Gae,h3t=(Gae="toUpperCase",function(e){var t=NCe(e=k8(e))?u3t(e):void 0,n=t?t[0]:e.charAt(0),r=t?f3t(t,1).join(""):e.slice(1);return n[Gae]()+r});for(var g3t=p3t,v3t=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),QM={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},RCe={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:v3t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},uG={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},u6=1;u6<20;u6++)uG["f"+u6]=111+u6;function BCe(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 QM)u[QM[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=LCe(m),A=QM[w];if(m.length>1&&!A&&!RCe[m]&&!uG[w])throw new TypeError('Unknown modifier: "'+m+'"');c!==1&&A||(l?u.key=w:u.which=m3t(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 m3t(e){return e=LCe(e),uG[e]||e.toUpperCase().charCodeAt(0)}function LCe(e){return e=e.toLowerCase(),e=RCe[e]||e}var y3t=BCe,ZM=function(e,t){return BCe(e,{byKey:!0},t)},b3t=/^\s+|\s+$/g,w3t=/^[-+]0x[0-9a-f]+$/i,A3t=/^0b[01]+$/i,C3t=/^0o[0-7]+$/i,x3t=parseInt,S3t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,E3t=typeof self=="object"&&self&&self.Object===Object&&self,k3t=S3t||E3t||Function("return this")(),T3t=Object.prototype.toString,_3t=Math.max,D3t=Math.min,XM=function(){return k3t.Date.now()};function RU(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kae(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(RU(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RU(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(b3t,"");var n=A3t.test(e);return n||C3t.test(e)?x3t(e.slice(2),n?2:8):w3t.test(e)?NaN:+e}var Vm,FCe=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=XM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?D3t(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=XM(),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=Kae(t)||0,RU(n)&&(d=!!n.leading,i=(c="maxWait"in n)?_3t(Kae(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(XM())},m},UCe=dm((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]",O="[object Int32Array]",I="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",_="[object Uint32Array]",R=/\w*$/,N=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,L={};L[o]=L["[object Array]"]=L[m]=L[b]=L[i]=L[a]=L[w]=L[A]=L[S]=L[k]=L[O]=L[u]=L[d]=L[c]=L[p]=L[v]=L[h]=L[g]=L[I]=L[P]=L[M]=L[_]=!0,L["[object Error]"]=L[s]=L[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=Z&&e&&!e.nodeType&&e,U=z&&z.exports===Z;function W(qe,yt){return qe.set(yt[0],yt[1]),qe}function re(qe,yt){return qe.add(yt),qe}function J(qe,yt,Zt,bt){var Kt=-1,bn=qe?qe.length:0;for(bt;++Kt<bn;)Zt=yt(Zt,qe[Kt],Kt,qe);return Zt}function te(qe){var yt=!1;if(qe!=null&&typeof qe.toString!="function")try{yt=!!(qe+"")}catch{}return yt}function X(qe){var yt=-1,Zt=Array(qe.size);return qe.forEach((function(bt,Kt){Zt[++yt]=[Kt,bt]})),Zt}function ue(qe,yt){return function(Zt){return qe(yt(Zt))}}function me(qe){var yt=-1,Zt=Array(qe.size);return qe.forEach((function(bt){Zt[++yt]=bt})),Zt}var Me=Array.prototype,Ae=Function.prototype,ge=Object.prototype,_e=G["__core-js_shared__"],Q=(function(){var qe=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return qe?"Symbol(src)_1."+qe:""})(),be=Ae.toString,De=ge.hasOwnProperty,pe=ge.toString,ie=RegExp("^"+be.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=U?G.Buffer:void 0,Re=G.Symbol,Ee=G.Uint8Array,Le=ue(Object.getPrototypeOf,Object),Fe=Object.create,Pe=ge.propertyIsEnumerable,Ne=Me.splice,ht=Object.getOwnPropertySymbols,Rt=ce?ce.isBuffer:void 0,Lt=ue(Object.keys,Object),tn=it(G,"DataView"),Wt=it(G,"Map"),zt=it(G,"Promise"),dt=it(G,"Set"),_t=it(G,"WeakMap"),ut=it(Object,"create"),rt=xt(tn),he=xt(Wt),Je=xt(zt),ct=xt(dt),Ot=xt(_t),Tn=Re?Re.prototype:void 0,In=Tn?Tn.valueOf:void 0;function je(qe){var yt=-1,Zt=qe?qe.length:0;for(this.clear();++yt<Zt;){var bt=qe[yt];this.set(bt[0],bt[1])}}function ke(qe){var yt=-1,Zt=qe?qe.length:0;for(this.clear();++yt<Zt;){var bt=qe[yt];this.set(bt[0],bt[1])}}function ye(qe){var yt=-1,Zt=qe?qe.length:0;for(this.clear();++yt<Zt;){var bt=qe[yt];this.set(bt[0],bt[1])}}function Be(qe){this.__data__=new ke(qe)}function ot(qe,yt){var Zt=vt(qe)||(function(Rn){return(function(Kn){return(function(Fr){return!!Fr&&typeof Fr=="object"})(Kn)&&Bt(Kn)})(Rn)&&De.call(Rn,"callee")&&(!Pe.call(Rn,"callee")||pe.call(Rn)==o)})(qe)?(function(Rn,Kn){for(var Fr=-1,ho=Array(Rn);++Fr<Rn;)ho[Fr]=Kn(Fr);return ho})(qe.length,String):[],bt=Zt.length,Kt=!!bt;for(var bn in qe)!De.call(qe,bn)||Kt&&(bn=="length"||En(bn,bt))||Zt.push(bn);return Zt}function gt(qe,yt,Zt){var bt=qe[yt];De.call(qe,yt)&&sn(bt,Zt)&&(Zt!==void 0||yt in qe)||(qe[yt]=Zt)}function Ke(qe,yt){for(var Zt=qe.length;Zt--;)if(sn(qe[Zt][0],yt))return Zt;return-1}function He(qe,yt,Zt,bt,Kt,bn,Rn){var Kn;if(bt&&(Kn=bn?bt(qe,Kt,bn,Rn):bt(qe)),Kn!==void 0)return Kn;if(!tr(qe))return qe;var Fr=vt(qe);if(Fr){if(Kn=(function(br){var Vr=br.length,wo=br.constructor(Vr);return Vr&&typeof br[0]=="string"&&De.call(br,"index")&&(wo.index=br.index,wo.input=br.input),wo})(qe),!yt)return(function(br,Vr){var wo=-1,Rr=br.length;for(Vr||(Vr=Array(Rr));++wo<Rr;)Vr[wo]=br[wo];return Vr})(qe,Kn)}else{var ho=Gt(qe),Wr=ho==s||ho==l;if(mn(qe))return(function(br,Vr){if(Vr)return br.slice();var wo=new br.constructor(br.length);return br.copy(wo),wo})(qe,yt);if(ho==c||ho==o||Wr&&!bn){if(te(qe))return bn?qe:{};if(Kn=(function(br){return typeof br.constructor!="function"||Nn(br)?{}:(Vr=Le(br),tr(Vr)?Fe(Vr):{});var Vr})(Wr?{}:qe),!yt)return(function(br,Vr){return tt(br,Mt(br),Vr)})(qe,(function(br,Vr){return br&&tt(Vr,cn(Vr),br)})(Kn,qe))}else{if(!L[ho])return bn?qe:{};Kn=(function(br,Vr,wo,Rr){var Br=br.constructor;switch(Vr){case m:return St(br);case i:case a:return new Br(+br);case b:return(function($r,Ao){var Cr=Ao?St($r.buffer):$r.buffer;return new $r.constructor(Cr,$r.byteOffset,$r.byteLength)})(br,Rr);case w:case A:case S:case k:case O:case I:case P:case M:case _:return(function($r,Ao){var Cr=Ao?St($r.buffer):$r.buffer;return new $r.constructor(Cr,$r.byteOffset,$r.length)})(br,Rr);case u:return(function($r,Ao,Cr){return J(Ao?Cr(X($r),!0):X($r),W,new $r.constructor)})(br,Rr,wo);case d:case h:return new Br(br);case p:return(function($r){var Ao=new $r.constructor($r.source,R.exec($r));return Ao.lastIndex=$r.lastIndex,Ao})(br);case v:return(function($r,Ao,Cr){return J(Ao?Cr(me($r),!0):me($r),re,new $r.constructor)})(br,Rr,wo);case g:return(function($r){return In?Object(In.call($r)):{}})(br)}})(qe,ho,He,yt)}}Rn||(Rn=new Be);var bo=Rn.get(qe);if(bo)return bo;if(Rn.set(qe,Kn),!Fr)var Bo=Zt?(function(br){return(function(Vr,wo,Rr){var Br=wo(Vr);return vt(Vr)?Br:(function($r,Ao){for(var Cr=-1,Ho=Ao.length,Xo=$r.length;++Cr<Ho;)$r[Xo+Cr]=Ao[Cr];return $r})(Br,Rr(Vr))})(br,cn,Mt)})(qe):cn(qe);return(function(br,Vr){for(var wo=-1,Rr=br?br.length:0;++wo<Rr&&Vr(br[wo],wo,br)!==!1;);})(Bo||qe,(function(br,Vr){Bo&&(br=qe[Vr=br]),gt(Kn,Vr,He(br,yt,Zt,bt,Vr,qe,Rn))})),Kn}function at(qe){return!(!tr(qe)||(function(yt){return!!Q&&Q in yt})(qe))&&(Mn(qe)||te(qe)?ie:N).test(xt(qe))}function St(qe){var yt=new qe.constructor(qe.byteLength);return new Ee(yt).set(new Ee(qe)),yt}function tt(qe,yt,Zt,bt){Zt||(Zt={});for(var Kt=-1,bn=yt.length;++Kt<bn;){var Rn=yt[Kt],Kn=void 0;gt(Zt,Rn,Kn===void 0?qe[Rn]:Kn)}return Zt}function Qe(qe,yt){var Zt,bt,Kt=qe.__data__;return((bt=typeof(Zt=yt))=="string"||bt=="number"||bt=="symbol"||bt=="boolean"?Zt!=="__proto__":Zt===null)?Kt[typeof yt=="string"?"string":"hash"]:Kt.map}function it(qe,yt){var Zt=(function(bt,Kt){return bt?.[Kt]})(qe,yt);return at(Zt)?Zt:void 0}je.prototype.clear=function(){this.__data__=ut?ut(null):{}},je.prototype.delete=function(qe){return this.has(qe)&&delete this.__data__[qe]},je.prototype.get=function(qe){var yt=this.__data__;if(ut){var Zt=yt[qe];return Zt===n?void 0:Zt}return De.call(yt,qe)?yt[qe]:void 0},je.prototype.has=function(qe){var yt=this.__data__;return ut?yt[qe]!==void 0:De.call(yt,qe)},je.prototype.set=function(qe,yt){return this.__data__[qe]=ut&&yt===void 0?n:yt,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(qe){var yt=this.__data__,Zt=Ke(yt,qe);return!(Zt<0)&&(Zt==yt.length-1?yt.pop():Ne.call(yt,Zt,1),!0)},ke.prototype.get=function(qe){var yt=this.__data__,Zt=Ke(yt,qe);return Zt<0?void 0:yt[Zt][1]},ke.prototype.has=function(qe){return Ke(this.__data__,qe)>-1},ke.prototype.set=function(qe,yt){var Zt=this.__data__,bt=Ke(Zt,qe);return bt<0?Zt.push([qe,yt]):Zt[bt][1]=yt,this},ye.prototype.clear=function(){this.__data__={hash:new je,map:new(Wt||ke),string:new je}},ye.prototype.delete=function(qe){return Qe(this,qe).delete(qe)},ye.prototype.get=function(qe){return Qe(this,qe).get(qe)},ye.prototype.has=function(qe){return Qe(this,qe).has(qe)},ye.prototype.set=function(qe,yt){return Qe(this,qe).set(qe,yt),this},Be.prototype.clear=function(){this.__data__=new ke},Be.prototype.delete=function(qe){return this.__data__.delete(qe)},Be.prototype.get=function(qe){return this.__data__.get(qe)},Be.prototype.has=function(qe){return this.__data__.has(qe)},Be.prototype.set=function(qe,yt){var Zt=this.__data__;if(Zt instanceof ke){var bt=Zt.__data__;if(!Wt||bt.length<199)return bt.push([qe,yt]),this;Zt=this.__data__=new ye(bt)}return Zt.set(qe,yt),this};var Mt=ht?ue(ht,Object):function(){return[]},Gt=function(qe){return pe.call(qe)};function En(qe,yt){return!!(yt=yt??r)&&(typeof qe=="number"||V.test(qe))&&qe>-1&&qe%1==0&&qe<yt}function Nn(qe){var yt=qe&&qe.constructor;return qe===(typeof yt=="function"&&yt.prototype||ge)}function xt(qe){if(qe!=null){try{return be.call(qe)}catch{}try{return qe+""}catch{}}return""}function sn(qe,yt){return qe===yt||qe!=qe&&yt!=yt}(tn&&Gt(new tn(new ArrayBuffer(1)))!=b||Wt&&Gt(new Wt)!=u||zt&&Gt(zt.resolve())!=f||dt&&Gt(new dt)!=v||_t&&Gt(new _t)!=y)&&(Gt=function(qe){var yt=pe.call(qe),Zt=yt==c?qe.constructor:void 0,bt=Zt?xt(Zt):void 0;if(bt)switch(bt){case rt:return b;case he:return u;case Je:return f;case ct:return v;case Ot:return y}return yt});var vt=Array.isArray;function Bt(qe){return qe!=null&&(function(yt){return typeof yt=="number"&&yt>-1&&yt%1==0&&yt<=r})(qe.length)&&!Mn(qe)}var mn=Rt||function(){return!1};function Mn(qe){var yt=tr(qe)?pe.call(qe):"";return yt==s||yt==l}function tr(qe){var yt=typeof qe;return!!qe&&(yt=="object"||yt=="function")}function cn(qe){return Bt(qe)?ot(qe):(function(yt){if(!Nn(yt))return Lt(yt);var Zt=[];for(var bt in Object(yt))De.call(yt,bt)&&bt!="constructor"&&Zt.push(bt);return Zt})(qe)}e.exports=function(qe){return He(qe,!0,!0)}}));function Yae(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var I3t=0;function O3t(e){return"__private_"+I3t+++"_"+e}function M3t(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}/**
  739. * Takes a string with placeholder variables like `%{smart_count} file selected`
  740. * and replaces it with values from options `{smart_count: 5}`
  741. *
  742. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  743. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  744. *
  745. * @param {string} phrase that needs interpolation, with placeholders
  746. * @param {object} options with values that will be used to replace placeholders
  747. * @returns {any[]} interpolated
  748. */function Qae(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=M3t(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var zCe=(Vm=O3t("apply"),class{constructor(e){Object.defineProperty(this,Vm,{value:P3t}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(Yae(this,Vm)[Vm],this):Yae(this,Vm)[Vm](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 Qae(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 Qae(n,t)}});function P3t(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 $Ce=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},N3t={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}},JM=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 jCe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}jCe.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 R3t=/[\/\+\.]/,B3t=function(e,t){function n(r){var o=(function(i,a,s){var l=new jCe(i,s||/[\/\.]/);return a!==void 0?l.match(a):l})(r,e,R3t);return o&&o.length>=2}return t?n(t.split(";")[0]):n},L3t=0;function F3t(e){return"__private_"+L3t+++"_"+e}var eP=F3t("publish");class HCe{constructor(){Object.defineProperty(this,eP,{value:U3t}),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,eP)[eP](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function U3t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((r=>{r(...t)}))}HCe.VERSION="2.0.3";var Zae=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)}},Xae={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 Jae(e){let t="";return e.replace(/[^A-Z0-9]/gi,(n=>(t+=`-${(function(r){return r.charCodeAt(0).toString(32)})(n)}`,"/")))+t}var z3t=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 tP(e){return e<10?`0${e}`:e.toString()}var c6=function(){const e=new Date;return`${tP(e.getHours())}:${tP(e.getMinutes())}:${tP(e.getSeconds())}`},WCe={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] [${c6()}]`,...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] [${c6()}]`,...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] [${c6()}]`,...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] [${c6()}]`,...t)}}},$3t={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}"}}},VCe=N3t;let qCe,GCe;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 j3t=0;function qa(e){return"__private_"+j3t+++"_"+e}const{nanoid:H3t}=VCe,{justErrorsLogger:W3t,debugLogger:V3t}=WCe;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 q3t extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var ms=qa("plugins"),ow=qa("storeUnsubscribe"),pf=qa("emitter"),_g=qa("preProcessors"),Dg=qa("uploaders"),Df=qa("postProcessors"),a3=qa("checkRestrictions"),nP=qa("checkMinNumberOfFiles"),TA=qa("checkRequiredMetaFieldsOnFile"),rP=qa("checkRequiredMetaFields"),Ga=qa("showOrLogErrorAndThrow"),iw=qa("assertNewUploadAllowed"),aw=qa("checkAndCreateFileStateObject"),sw=qa("startIfAutoProceed"),oP=qa("addListeners"),yc=qa("updateOnlineStatus"),hf=qa("createUpload"),iP=qa("getUpload"),Ug=qa("removeUpload"),gf=qa("runUpload");qCe=Symbol.for("uppy test: getPlugins"),GCe=Symbol.for("uppy test: createUpload");class KCe{constructor(t){Object.defineProperty(this,gf,{value:iAt}),Object.defineProperty(this,Ug,{value:oAt}),Object.defineProperty(this,iP,{value:rAt}),Object.defineProperty(this,hf,{value:nAt}),Object.defineProperty(this,oP,{value:tAt}),Object.defineProperty(this,sw,{value:eAt}),Object.defineProperty(this,aw,{value:J3t}),Object.defineProperty(this,iw,{value:X3t}),Object.defineProperty(this,Ga,{value:Z3t}),Object.defineProperty(this,rP,{value:Q3t}),Object.defineProperty(this,TA,{value:Y3t}),Object.defineProperty(this,nP,{value:K3t}),Object.defineProperty(this,a3,{value:G3t}),Object.defineProperty(this,ms,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ow,{writable:!0,value:void 0}),Object.defineProperty(this,pf,{writable:!0,value:$Ce()}),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=$3t;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 HCe,logger:W3t,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=V3t),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=jv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:z3t(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ir(this,ow)[ow]=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,oP)[oP]()}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 zCe([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,a3)[a3](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,iw)[iw](t);const{files:n}=this.getState();let r=Ir(this,aw)[aw](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,sw)[sw](),r.id}addFiles(t){Ir(this,iw)[iw]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=Ir(this,aw)[aw](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}
  749. id: ${r[i].id}
  750. type: ${r[i].type}`)})),r.length>0&&Ir(this,sw)[sw](),o.length>0){let i=`Multiple errors occurred while adding files:
  751. `;if(o.forEach((a=>{i+=`
  752. * ${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}'.
  753. 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}}[qCe](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,ow)[ow](),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")))}[GCe](){return Ir(this,hf)[hf](...arguments)}addResultData(t,n){if(!Ir(this,iP)[iP](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,nP)[nP](n),Ir(this,rP)[rP](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 G3t(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&&B3t(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:JM(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new vd(this.i18n("exceedsSize",{size:JM(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new vd(this.i18n("inferiorSize",{size:JM(r)}))}function K3t(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new vd(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Y3t(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 Q3t(e){const t=Object.keys(e).flatMap((n=>{const r=this.getFile(n);return Ir(this,TA)[TA](r)}));if(t.length)throw new q3t(t,`${this.i18n("missingRequiredMetaField")}`)}function Z3t(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 X3t(e){const{allowNewUpload:t}=this.getState();t===!1&&Ir(this,Ga)[Ga](new vd(this.i18n("noMoreFilesAllowed")),{file:e})}function J3t(e,t){const n=(function(c){var f;if(c.type)return c.type;const p=c.name?(f=Zae(c.name).extension)==null?void 0:f.toLowerCase():null;return p&&p in Xae?Xae[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=Zae(r).extension,i=!!t.isRemote,a=(function(c){let f="uppy";return typeof c.name=="string"&&(f+=`-${Jae(c.name.toLowerCase())}`),c.type!==void 0&&(f+=`-${c.type}`),c.meta&&typeof c.meta.relativePath=="string"&&(f+=`-${Jae(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,a3)[a3](u,c)}catch(c){Ir(this,Ga)[Ga](c,{file:u})}return u}function eAt(){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 tAt(){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,TA)[TA](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 nAt(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=H3t();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 rAt(e){const{currentUploads:t}=this.getState();return t[e]}function oAt(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function iAt(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}KCe.VERSION="2.1.3";var YCe=KCe,aAt=dm((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(z,U){for(var W in U)z[W]=U[W];return z}function v(z){var U=z.parentNode;U&&U.removeChild(z)}function h(z,U,W){var re,J,te,X={};for(te in U)te=="key"?re=U[te]:te=="ref"?J=U[te]:X[te]=U[te];if(arguments.length>2&&(X.children=arguments.length>3?n.call(arguments,2):W),typeof z=="function"&&z.defaultProps!=null)for(te in z.defaultProps)X[te]===void 0&&(X[te]=z.defaultProps[te]);return g(z,X,re,J,null)}function g(z,U,W,re,J){var te={type:z,props:U,key:W,ref:re,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:J??++o};return J==null&&r.vnode!=null&&r.vnode(te),te}function y(z){return z.children}function m(z,U){this.props=z,this.context=U}function b(z,U){if(U==null)return z.__?b(z.__,z.__.__k.indexOf(z)+1):null;for(var W;U<z.__k.length;U++)if((W=z.__k[U])!=null&&W.__e!=null)return W.__e;return typeof z.type=="function"?b(z):null}function w(z){var U,W;if((z=z.__)!=null&&z.__c!=null){for(z.__e=z.__c.base=null,U=0;U<z.__k.length;U++)if((W=z.__k[U])!=null&&W.__e!=null){z.__e=z.__c.base=W.__e;break}return w(z)}}function A(z){(!z.__d&&(z.__d=!0)&&a.push(z)&&!S.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(S)}function S(){for(var z;S.__r=a.length;)z=a.sort((function(U,W){return U.__v.__b-W.__v.__b})),a=[],z.some((function(U){var W,re,J,te,X,ue;U.__d&&(X=(te=(W=U).__v).__e,(ue=W.__P)&&(re=[],(J=p({},te)).__v=te.__v+1,N(ue,te,J,W.__n,ue.ownerSVGElement!==void 0,te.__h!=null?[X]:null,re,X??b(te),te.__h),V(re,te),te.__e!=X&&w(te)))}))}function k(z,U,W,re,J,te,X,ue,me,Me){var Ae,ge,_e,Q,be,De,pe,ie=re&&re.__k||c,ce=ie.length;for(W.__k=[],Ae=0;Ae<U.length;Ae++)if((Q=W.__k[Ae]=(Q=U[Ae])==null||typeof Q=="boolean"?null:typeof Q=="string"||typeof Q=="number"||typeof Q=="bigint"?g(null,Q,null,null,Q):Array.isArray(Q)?g(y,{children:Q},null,null,null):Q.__b>0?g(Q.type,Q.props,Q.key,null,Q.__v):Q)!=null){if(Q.__=W,Q.__b=W.__b+1,(_e=ie[Ae])===null||_e&&Q.key==_e.key&&Q.type===_e.type)ie[Ae]=void 0;else for(ge=0;ge<ce;ge++){if((_e=ie[ge])&&Q.key==_e.key&&Q.type===_e.type){ie[ge]=void 0;break}_e=null}N(z,Q,_e=_e||d,J,te,X,ue,me,Me),be=Q.__e,(ge=Q.ref)&&_e.ref!=ge&&(pe||(pe=[]),_e.ref&&pe.push(_e.ref,null,Q),pe.push(ge,Q.__c||be,Q)),be!=null?(De==null&&(De=be),typeof Q.type=="function"&&Q.__k===_e.__k?Q.__d=me=O(Q,me,z):me=I(z,Q,_e,ie,be,me),typeof W.type=="function"&&(W.__d=me)):me&&_e.__e==me&&me.parentNode!=z&&(me=b(_e))}for(W.__e=De,Ae=ce;Ae--;)ie[Ae]!=null&&(typeof W.type=="function"&&ie[Ae].__e!=null&&ie[Ae].__e==W.__d&&(W.__d=b(re,Ae+1)),H(ie[Ae],ie[Ae]));if(pe)for(Ae=0;Ae<pe.length;Ae++)j(pe[Ae],pe[++Ae],pe[++Ae])}function O(z,U,W){for(var re,J=z.__k,te=0;J&&te<J.length;te++)(re=J[te])&&(re.__=z,U=typeof re.type=="function"?O(re,U,W):I(W,re,re,J,re.__e,U));return U}function I(z,U,W,re,J,te){var X,ue,me;if(U.__d!==void 0)X=U.__d,U.__d=void 0;else if(W==null||J!=te||J.parentNode==null)e:if(te==null||te.parentNode!==z)z.appendChild(J),X=null;else{for(ue=te,me=0;(ue=ue.nextSibling)&&me<re.length;me+=2)if(ue==J)break e;z.insertBefore(J,te),X=te}return X!==void 0?X:J.nextSibling}function P(z,U,W){U[0]==="-"?z.setProperty(U,W):z[U]=W==null?"":typeof W!="number"||f.test(U)?W:W+"px"}function M(z,U,W,re,J){var te;e:if(U==="style")if(typeof W=="string")z.style.cssText=W;else{if(typeof re=="string"&&(z.style.cssText=re=""),re)for(U in re)W&&U in W||P(z.style,U,"");if(W)for(U in W)re&&W[U]===re[U]||P(z.style,U,W[U])}else if(U[0]==="o"&&U[1]==="n")te=U!==(U=U.replace(/Capture$/,"")),U=U.toLowerCase()in z?U.toLowerCase().slice(2):U.slice(2),z.l||(z.l={}),z.l[U+te]=W,W?re||z.addEventListener(U,te?R:_,te):z.removeEventListener(U,te?R:_,te);else if(U!=="dangerouslySetInnerHTML"){if(J)U=U.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(U!=="href"&&U!=="list"&&U!=="form"&&U!=="tabIndex"&&U!=="download"&&U in z)try{z[U]=W??"";break e}catch{}typeof W=="function"||(W!=null&&(W!==!1||U[0]==="a"&&U[1]==="r")?z.setAttribute(U,W):z.removeAttribute(U))}}function _(z){this.l[z.type+!1](r.event?r.event(z):z)}function R(z){this.l[z.type+!0](r.event?r.event(z):z)}function N(z,U,W,re,J,te,X,ue,me){var Me,Ae,ge,_e,Q,be,De,pe,ie,ce,Re,Ee=U.type;if(U.constructor!==void 0)return null;W.__h!=null&&(me=W.__h,ue=U.__e=W.__e,U.__h=null,te=[ue]),(Me=r.__b)&&Me(U);try{e:if(typeof Ee=="function"){if(pe=U.props,ie=(Me=Ee.contextType)&&re[Me.__c],ce=Me?ie?ie.props.value:Me.__:re,W.__c?De=(Ae=U.__c=W.__c).__=Ae.__E:("prototype"in Ee&&Ee.prototype.render?U.__c=Ae=new Ee(pe,ce):(U.__c=Ae=new m(pe,ce),Ae.constructor=Ee,Ae.render=G),ie&&ie.sub(Ae),Ae.props=pe,Ae.state||(Ae.state={}),Ae.context=ce,Ae.__n=re,ge=Ae.__d=!0,Ae.__h=[]),Ae.__s==null&&(Ae.__s=Ae.state),Ee.getDerivedStateFromProps!=null&&(Ae.__s==Ae.state&&(Ae.__s=p({},Ae.__s)),p(Ae.__s,Ee.getDerivedStateFromProps(pe,Ae.__s))),_e=Ae.props,Q=Ae.state,ge)Ee.getDerivedStateFromProps==null&&Ae.componentWillMount!=null&&Ae.componentWillMount(),Ae.componentDidMount!=null&&Ae.__h.push(Ae.componentDidMount);else{if(Ee.getDerivedStateFromProps==null&&pe!==_e&&Ae.componentWillReceiveProps!=null&&Ae.componentWillReceiveProps(pe,ce),!Ae.__e&&Ae.shouldComponentUpdate!=null&&Ae.shouldComponentUpdate(pe,Ae.__s,ce)===!1||U.__v===W.__v){Ae.props=pe,Ae.state=Ae.__s,U.__v!==W.__v&&(Ae.__d=!1),Ae.__v=U,U.__e=W.__e,U.__k=W.__k,U.__k.forEach((function(Le){Le&&(Le.__=U)})),Ae.__h.length&&X.push(Ae);break e}Ae.componentWillUpdate!=null&&Ae.componentWillUpdate(pe,Ae.__s,ce),Ae.componentDidUpdate!=null&&Ae.__h.push((function(){Ae.componentDidUpdate(_e,Q,be)}))}Ae.context=ce,Ae.props=pe,Ae.state=Ae.__s,(Me=r.__r)&&Me(U),Ae.__d=!1,Ae.__v=U,Ae.__P=z,Me=Ae.render(Ae.props,Ae.state,Ae.context),Ae.state=Ae.__s,Ae.getChildContext!=null&&(re=p(p({},re),Ae.getChildContext())),ge||Ae.getSnapshotBeforeUpdate==null||(be=Ae.getSnapshotBeforeUpdate(_e,Q)),Re=Me!=null&&Me.type===y&&Me.key==null?Me.props.children:Me,k(z,Array.isArray(Re)?Re:[Re],U,W,re,J,te,X,ue,me),Ae.base=U.__e,U.__h=null,Ae.__h.length&&X.push(Ae),De&&(Ae.__E=Ae.__=null),Ae.__e=!1}else te==null&&U.__v===W.__v?(U.__k=W.__k,U.__e=W.__e):U.__e=L(W.__e,U,W,re,J,te,X,me);(Me=r.diffed)&&Me(U)}catch(Le){U.__v=null,(me||te!=null)&&(U.__e=ue,U.__h=!!me,te[te.indexOf(ue)]=null),r.__e(Le,U,W)}}function V(z,U){r.__c&&r.__c(U,z),z.some((function(W){try{z=W.__h,W.__h=[],z.some((function(re){re.call(W)}))}catch(re){r.__e(re,W.__v)}}))}function L(z,U,W,re,J,te,X,ue){var me,Me,Ae,ge=W.props,_e=U.props,Q=U.type,be=0;if(Q==="svg"&&(J=!0),te!=null){for(;be<te.length;be++)if((me=te[be])&&"setAttribute"in me==!!Q&&(Q?me.localName===Q:me.nodeType===3)){z=me,te[be]=null;break}}if(z==null){if(Q===null)return document.createTextNode(_e);z=J?document.createElementNS("http://www.w3.org/2000/svg",Q):document.createElement(Q,_e.is&&_e),te=null,ue=!1}if(Q===null)ge===_e||ue&&z.data===_e||(z.data=_e);else{if(te=te&&n.call(z.childNodes),Me=(ge=W.props||d).dangerouslySetInnerHTML,Ae=_e.dangerouslySetInnerHTML,!ue){if(te!=null)for(ge={},be=0;be<z.attributes.length;be++)ge[z.attributes[be].name]=z.attributes[be].value;(Ae||Me)&&(Ae&&(Me&&Ae.__html==Me.__html||Ae.__html===z.innerHTML)||(z.innerHTML=Ae&&Ae.__html||""))}if((function(De,pe,ie,ce,Re){var Ee;for(Ee in ie)Ee==="children"||Ee==="key"||Ee in pe||M(De,Ee,null,ie[Ee],ce);for(Ee in pe)Re&&typeof pe[Ee]!="function"||Ee==="children"||Ee==="key"||Ee==="value"||Ee==="checked"||ie[Ee]===pe[Ee]||M(De,Ee,pe[Ee],ie[Ee],ce)})(z,_e,ge,J,ue),Ae)U.__k=[];else if(be=U.props.children,k(z,Array.isArray(be)?be:[be],U,W,re,J&&Q!=="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 _e&&(be=_e.value)!==void 0&&(be!==ge.value||be!==z.value||Q==="progress"&&!be)&&M(z,"value",be,ge.value,!1),"checked"in _e&&(be=_e.checked)!==void 0&&be!==z.checked&&M(z,"checked",be,ge.checked,!1))}return z}function j(z,U,W){try{typeof z=="function"?z(U):z.current=U}catch(re){r.__e(re,W)}}function H(z,U,W){var re,J;if(r.unmount&&r.unmount(z),(re=z.ref)&&(re.current&&re.current!==z.__e||j(re,null,U)),(re=z.__c)!=null){if(re.componentWillUnmount)try{re.componentWillUnmount()}catch(te){r.__e(te,U)}re.base=re.__P=null}if(re=z.__k)for(J=0;J<re.length;J++)re[J]&&H(re[J],U,typeof z.type!="function");W||z.__e==null||v(z.__e),z.__e=z.__d=void 0}function G(z,U,W){return this.constructor(z,W)}function Z(z,U,W){var re,J,te;r.__&&r.__(z,U),J=(re=typeof W=="function")?null:W&&W.__k||U.__k,te=[],N(U,z=(!re&&W||U).__k=h(y,null,[z]),J||d,d,U.ownerSVGElement!==void 0,!re&&W?[W]:J?null:U.firstChild?n.call(U.childNodes):null,te,!re&&W?W:J?J.__e:U.firstChild,re),V(te,z)}n=c.slice,r={__e:function(z,U){for(var W,re,J;U=U.__;)if((W=U.__c)&&!W.__)try{if((re=W.constructor)&&re.getDerivedStateFromError!=null&&(W.setState(re.getDerivedStateFromError(z)),J=W.__d),W.componentDidCatch!=null&&(W.componentDidCatch(z),J=W.__d),J)return W.__E=W}catch(te){z=te}throw z}},o=0,i=function(z){return z!=null&&z.constructor===void 0},m.prototype.setState=function(z,U){var W;W=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof z=="function"&&(z=z(p({},W),this.props)),z&&p(W,z),z!=null&&this.__v&&(U&&this.__h.push(U),A(this))},m.prototype.forceUpdate=function(z){this.__v&&(this.__e=!0,z&&this.__h.push(z),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(z,U,W){var re,J,te,X=p({},z.props);for(te in U)te=="key"?re=U[te]:te=="ref"?J=U[te]:X[te]=U[te];return arguments.length>2&&(X.children=arguments.length>3?n.call(arguments,2):W),g(z.type,X,re||z.key,J||z.ref,null)},t.createContext=function(z,U){var W={__c:U="__cC"+u++,__:z,Consumer:function(re,J){return re.children(J)},Provider:function(re){var J,te;return this.getChildContext||(J=[],(te={})[U]=this,this.getChildContext=function(){return te},this.shouldComponentUpdate=function(X){this.props.value!==X.value&&J.some(A)},this.sub=function(X){J.push(X);var ue=X.componentWillUnmount;X.componentWillUnmount=function(){J.splice(J.indexOf(X),1),ue&&ue.call(X)}}),re.children}};return W.Provider.__=W.Consumer.contextType=W},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function z(U,W){Z(U,W,z)},t.isValidElement=i,t.options=r,t.render=Z,t.toChildArray=function z(U,W){return W=W||[],U==null||typeof U=="boolean"||(Array.isArray(U)?U.some((function(re){z(re,W)})):W.push(U)),W}})),sAt=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},cG=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 zCe([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 ese(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lAt=0;function uAt(e){return"__private_"+lAt+++"_"+e}const{render:tse}=aAt;var lw=uAt("updateUI");class dG extends cG{constructor(){super(...arguments),Object.defineProperty(this,lw,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=sAt(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return ese(this,lw)[lw]=(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)&&(tse(this.render(l),s),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),tse(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 dG)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=ese(this,lw))[lw])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var cAt=dG;const{debugLogger:dAt}=WCe;var E4=YCe,fAt=YCe,pAt=cAt,hAt=cG,gAt=dAt;E4.Uppy=fAt,E4.UIPlugin=pAt,E4.BasePlugin=hAt,E4.debugLogger=gAt;class vAt 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 fG=vAt,aP=function(){return fetch(...arguments).catch((e=>{throw e.name==="AbortError"?e:new fG(e)}))};class mAt extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var d6,Fp,ld,Up,nse,yAt=mAt;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 bAt=0;function sP(e){return"__private_"+bAt+++"_"+e}async function lP(e){if(e.status===401)throw new yAt;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 rse=(Fp=sP("getPostResponseFunc"),ld=sP("getUrl"),Up=sP("errorHandler"),nse=d6=class QCe{constructor(t,n){Object.defineProperty(this,Up,{value:AAt}),Object.defineProperty(this,ld,{value:wAt}),Object.defineProperty(this,Fp,{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({...QCe.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=>aP(ad(this,ld)[ld](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ad(this,Fp)[Fp](n)).then(lP).catch(ad(this,Up)[Up]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then((i=>aP(ad(this,ld)[ld](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)}))).then(ad(this,Fp)[Fp](r)).then(lP).catch(ad(this,Up)[Up](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then((i=>aP(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null}))).then(ad(this,Fp)[Fp](r)).then(lP).catch(ad(this,Up)[Up](o,t))}},d6.VERSION="2.0.4",d6.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${d6.VERSION}`},nse);function wAt(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function AAt(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 CAt={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,zp,Eu,_s,f6;let ose,ise;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 xAt=0;function uw(e){return"__private_"+xAt+++"_"+e}var SAt=(rd=uw("queued"),zp=uw("emitter"),Eu=uw("isOpen"),_s=uw("socket"),f6=uw("handleMessage"),ose=Symbol.for("uppy test: getSocket"),ise=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,rd,{writable:!0,value:[]}),Object.defineProperty(this,zp,{writable:!0,value:$Ce()}),Object.defineProperty(this,Eu,{writable:!0,value:!1}),Object.defineProperty(this,_s,{writable:!0,value:void 0}),Object.defineProperty(this,f6,{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]}[ose](){return La(this,_s)[_s]}[ise](){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,f6)[f6]}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,zp)[zp].on(e,t)}emit(e,t){La(this,zp)[zp].emit(e,t)}once(e,t){La(this,zp)[zp].once(e,t)}}),EAt={RequestClient:rse,Provider:class extends rse{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||CAt}},Socket:SAt},$p,qm,kAt=jv((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 cw(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 ase(e){return"__private_"+TAt+++"_"+e}var sse=($p=ase("emitter"),qm=ase("events"),class{constructor(e){Object.defineProperty(this,$p,{writable:!0,value:void 0}),Object.defineProperty(this,qm,{writable:!0,value:[]}),cw(this,$p)[$p]=e}on(e,t){return cw(this,qm)[qm].push([e,t]),cw(this,$p)[$p].on(e,t)}remove(){for(const[e,t]of cw(this,qm)[qm].splice(0))cw(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 _At=0;function h7(e){return"__private_"+_At+++"_"+e}var vf=h7("aliveTimer"),J0=h7("isDone"),dw=h7("onTimedOut"),eg=h7("timeout"),lse=class{constructor(e,t){Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,J0,{writable:!0,value:!1}),Object.defineProperty(this,dw,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),ku(this,eg)[eg]=e,ku(this,dw)[dw]=t}progress(){ku(this,J0)[J0]||ku(this,eg)[eg]>0&&(clearTimeout(ku(this,vf)[vf]),ku(this,vf)[vf]=setTimeout(ku(this,dw)[dw],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 za(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DAt=0;function vm(e){return"__private_"+DAt+++"_"+e}function IAt(){return new Error("Cancelled")}var Zl=vm("activeRequests"),nl=vm("queuedHandlers"),s3=vm("call"),k4=vm("queueNext"),BU=vm("next"),uP=vm("queue"),LU=vm("dequeue");function OAt(e){za(this,Zl)[Zl]+=1;let t,n=!1;try{t=e()}catch(r){throw za(this,Zl)[Zl]-=1,r}return{abort:()=>{n||(n=!0,za(this,Zl)[Zl]-=1,t(),za(this,k4)[k4]())},done:()=>{n||(n=!0,za(this,Zl)[Zl]-=1,za(this,k4)[k4]())}}}function MAt(){queueMicrotask((()=>za(this,BU)[BU]()))}function PAt(){if(za(this,Zl)[Zl]>=this.limit||za(this,nl)[nl].length===0)return;const e=za(this,nl)[nl].shift(),t=za(this,s3)[s3](e.fn);e.abort=t.abort,e.done=t.done}function NAt(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{za(this,LU)[LU](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=za(this,nl)[nl].findIndex((o=>n.priority>o.priority));return r===-1?za(this,nl)[nl].push(n):za(this,nl)[nl].splice(r,0,n),n}function RAt(e){const t=za(this,nl)[nl].indexOf(e);t!==-1&&za(this,nl)[nl].splice(t,1)}var BAt={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,LU,{value:RAt}),Object.defineProperty(this,uP,{value:NAt}),Object.defineProperty(this,BU,{value:PAt}),Object.defineProperty(this,k4,{value:MAt}),Object.defineProperty(this,s3,{value:OAt}),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 za(this,Zl)[Zl]<this.limit?za(this,s3)[s3](e):za(this,uP)[uP](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=IAt()}}),t)}));return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},use,cse,ZCe=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},LAt={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:FAt}=VCe,{Provider:UAt,RequestClient:zAt,Socket:$At}=EAt,{RateLimitedQueue:jAt,internalRateLimitedQueue:cP}=BAt;function dse(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})),ZCe(e)?(n=new fG(n,e),n):(n.request=e,n)}function fse(e){return e.data.slice(0,e.data.size,e.meta.type)}var HAt=(cse=use=class extends cG{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=LAt;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 ZCe(o)&&(i=new fG(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),cP in this.opts?this.requests=this.opts[cP]:this.requests=new jAt(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=fse(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=fse(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 sse(this.uppy);const l=new lse(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=dse(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=dse(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?UAt:zAt)(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 $At({target:`${s}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new sse(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=>kAt(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 lse(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[cP]||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)}},use.VERSION="2.0.6",cse),pse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g5(e){var t={exports:{}};return e(t,t.exports),t.exports}var jp,T8,p6=function(e){return e&&e.Math==Math&&e},Wn=p6(typeof globalThis=="object"&&globalThis)||p6(typeof window=="object"&&window)||p6(typeof self=="object"&&self)||p6(typeof pse=="object"&&pse)||(function(){return this})()||Function("return this")(),WAt=Object.defineProperty,pG=function(e,t){try{WAt(Wn,e,{value:t,configurable:!0,writable:!0})}catch{Wn[e]=t}return t},Nh=Wn["__core-js_shared__"]||pG("__core-js_shared__",{}),hG=g5((function(e){(e.exports=function(t,n){return Nh[t]||(Nh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),XCe=Function.prototype,FU=XCe.bind,UU=XCe.call,VAt=FU&&FU.bind(UU),Mr=FU?function(e){return e&&VAt(UU,e)}:function(e){return e&&function(){return UU.apply(e,arguments)}},qAt=Wn.TypeError,tc=function(e){if(e==null)throw qAt("Can't call method on "+e);return e},GAt=Wn.Object,R0=function(e){return GAt(tc(e))},KAt=Mr({}.hasOwnProperty),Ta=Object.hasOwn||function(e,t){return KAt(R0(e),t)},YAt=0,QAt=Math.random(),ZAt=Mr(1 .toString),gG=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ZAt(++YAt+QAt,36)},hi=function(e){return typeof e=="function"},XAt=function(e){return hi(e)?e:void 0},mm=function(e,t){return arguments.length<2?XAt(Wn[e]):Wn[e]&&Wn[e][t]},cy=mm("navigator","userAgent")||"",hse=Wn.process,gse=Wn.Deno,vse=hse&&hse.versions||gse&&gse.version,mse=vse&&vse.v8;mse&&(T8=(jp=mse.split("."))[0]>0&&jp[0]<4?1:+(jp[0]+jp[1])),!T8&&cy&&(!(jp=cy.match(/Edge\/(\d+)/))||jp[1]>=74)&&(jp=cy.match(/Chrome\/(\d+)/))&&(T8=+jp[1]);var _A=T8,ei=function(e){try{return!!e()}catch{return!0}},zU=!!Object.getOwnPropertySymbols&&!ei((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_A&&_A<41})),vG=zU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fw=hG("wks"),rv=Wn.Symbol,yse=rv&&rv.for,JAt=vG?rv:rv&&rv.withoutSetter||gG,na=function(e){if(!Ta(fw,e)||!zU&&typeof fw[e]!="string"){var t="Symbol."+e;zU&&Ta(rv,e)?fw[e]=rv[e]:fw[e]=vG&&yse?yse(t):JAt(t)}return fw[e]},JCe={};JCe[na("toStringTag")]="z";var mG=String(JCe)==="[object z]",ss=!ei((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ri=function(e){return typeof e=="object"?e!==null:hi(e)},$U=Wn.document,eCt=Ri($U)&&Ri($U.createElement),DA=function(e){return eCt?$U.createElement(e):{}},e5e=!ss&&!ei((function(){return Object.defineProperty(DA("div"),"a",{get:function(){return 7}}).a!=7})),tCt=Wn.String,nCt=Wn.TypeError,Da=function(e){if(Ri(e))return e;throw nCt(tCt(e)+" is not an object")},pw=Function.prototype.call,qo=pw.bind?pw.bind(pw):function(){return pw.apply(pw,arguments)},Hv=Mr({}.isPrototypeOf),rCt=Wn.Object,dP=vG?function(e){return typeof e=="symbol"}:function(e){var t=mm("Symbol");return hi(t)&&Hv(t.prototype,rCt(e))},oCt=Wn.String,g7=function(e){try{return oCt(e)}catch{return"Object"}},iCt=Wn.TypeError,v0=function(e){if(hi(e))return e;throw iCt(g7(e)+" is not a function")},Wv=function(e,t){var n=e[t];return n==null?void 0:v0(n)},aCt=Wn.TypeError,sCt=Wn.TypeError,lCt=na("toPrimitive"),yG=function(e){var t=(function(n,r){if(!Ri(n)||dP(n))return n;var o,i=Wv(n,lCt);if(i){if(o=qo(i,n,r),!Ri(o)||dP(o))return o;throw sCt("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 aCt("Can't convert object to primitive value")})(n)})(e,"string");return dP(t)?t:t+""},uCt=Wn.TypeError,bse=Object.defineProperty,Zc={f:ss?bse:function(e,t,n){if(Da(e),t=yG(t),Da(n),e5e)try{return bse(e,t,n)}catch{}if("get"in n||"set"in n)throw uCt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},v7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_c=ss?function(e,t,n){return Zc.f(e,t,v7(1,n))}:function(e,t,n){return e[t]=n,e},cCt=Mr(Function.toString);hi(Nh.inspectSource)||(Nh.inspectSource=function(e){return cCt(e)});var qk,l3,Gk,m7=Nh.inspectSource,wse=Wn.WeakMap,t5e=hi(wse)&&/native code/.test(m7(wse)),Ase=hG("keys"),bG=function(e){return Ase[e]||(Ase[e]=gG(e))},y7={},jU=Wn.TypeError,dCt=Wn.WeakMap;if(t5e||Nh.state){var tg=Nh.state||(Nh.state=new dCt),fCt=Mr(tg.get),Cse=Mr(tg.has),pCt=Mr(tg.set);qk=function(e,t){if(Cse(tg,e))throw new jU("Object already initialized");return t.facade=e,pCt(tg,e,t),t},l3=function(e){return fCt(tg,e)||{}},Gk=function(e){return Cse(tg,e)}}else{var Gm=bG("state");y7[Gm]=!0,qk=function(e,t){if(Ta(e,Gm))throw new jU("Object already initialized");return t.facade=e,_c(e,Gm,t),t},l3=function(e){return Ta(e,Gm)?e[Gm]:{}},Gk=function(e){return Ta(e,Gm)}}var Hs={set:qk,get:l3,has:Gk,enforce:function(e){return Gk(e)?l3(e):qk(e,{})},getterFor:function(e){return function(t){var n;if(!Ri(t)||(n=l3(t)).type!==e)throw jU("Incompatible receiver, "+e+" required");return n}}},n5e=Function.prototype,hCt=ss&&Object.getOwnPropertyDescriptor,fP=Ta(n5e,"name"),Zb={EXISTS:fP,PROPER:fP&&(function(){}).name==="something",CONFIGURABLE:fP&&(!ss||ss&&hCt(n5e,"name").configurable)},Rl=g5((function(e){var t=Zb.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:pG(a,s)})(Function.prototype,"toString",(function(){return hi(this)&&n(this).source||m7(this)}))})),gCt=Mr({}.toString),vCt=Mr("".slice),Dc=function(e){return vCt(gCt(e),8,-1)},mCt=na("toStringTag"),yCt=Wn.Object,bCt=Dc((function(){return arguments})())=="Arguments",b7=mG?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=yCt(e),mCt))=="string"?n:bCt?Dc(t):(r=Dc(t))=="Object"&&hi(t.callee)?"Arguments":r},wCt=mG?{}.toString:function(){return"[object "+b7(this)+"]"};mG||Rl(Object.prototype,"toString",wCt,{unsafe:!0});var Kk={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},pP=DA("span").classList,xse=pP&&pP.constructor&&pP.constructor.prototype,r5e=xse===Object.prototype?void 0:xse,Sse=Mr(Mr.bind),Vv=function(e,t){return v0(e),t===void 0?e:Sse?Sse(e,t):function(){return e.apply(t,arguments)}},hP=Wn.Object,ACt=Mr("".split),w7=ei((function(){return!hP("z").propertyIsEnumerable(0)}))?function(e){return Dc(e)=="String"?ACt(e,""):hP(e)}:hP,CCt=Math.ceil,xCt=Math.floor,v5=function(e){var t=+e;return t!=t||t===0?0:(t>0?xCt:CCt)(t)},SCt=Math.min,Xb=function(e){return e>0?SCt(v5(e),9007199254740991):0},ym=function(e){return Xb(e.length)},Yk=Array.isArray||function(e){return Dc(e)=="Array"},o5e=function(){},ECt=[],i5e=mm("Reflect","construct"),wG=/^\s*(?:class|function)\b/,kCt=Mr(wG.exec),TCt=!wG.exec(o5e),hw=function(e){if(!hi(e))return!1;try{return i5e(o5e,ECt,e),!0}catch{return!1}},A7=!i5e||ei((function(){var e;return hw(hw.call)||!hw(Object)||!hw((function(){e=!0}))||e}))?function(e){if(!hi(e))return!1;switch(b7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TCt||!!kCt(wG,m7(e))}:hw,_Ct=na("species"),Ese=Wn.Array,a5e=function(e,t){return new((function(n){var r;return Yk(n)&&(r=n.constructor,(A7(r)&&(r===Ese||Yk(r.prototype))||Ri(r)&&(r=r[_Ct])===null)&&(r=void 0)),r===void 0?Ese:r})(e))(t===0?0:t)},kse=Mr([].push),gw=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=w7(v),g=Vv(u,d),y=ym(h),m=0,b=c||a5e,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:kse(w,f)}else switch(e){case 4:return!1;case 7:kse(w,f)}return i?-1:r||o?o:w}},Jb={forEach:gw(0),map:gw(1),filter:gw(2),find:gw(5),findIndex:gw(6)},s5e=function(e,t){var n=[][e];return!!n&&ei((function(){n.call(null,t||function(){throw 1},1)}))},DCt=Jb.forEach,gP=s5e("forEach")?[].forEach:function(e){return DCt(this,e,arguments.length>1?arguments[1]:void 0)},l5e=function(e){if(e&&e.forEach!==gP)try{_c(e,"forEach",gP)}catch{e.forEach=gP}};for(var vP in Kk)Kk[vP]&&l5e(Wn[vP]&&Wn[vP].prototype);l5e(r5e);var Tse={}.propertyIsEnumerable,_se=Object.getOwnPropertyDescriptor,ICt=_se&&!Tse.call({1:2},1)?function(e){var t=_se(this,e);return!!t&&t.enumerable}:Tse,u5e={f:ICt},B0=function(e){return w7(tc(e))},Dse=Object.getOwnPropertyDescriptor,m5={f:ss?Dse:function(e,t){if(e=B0(e),t=yG(t),e5e)try{return Dse(e,t)}catch{}if(Ta(e,t))return v7(!qo(u5e.f,e,t),e[t])}},OCt=Math.max,MCt=Math.min,sb=function(e,t){var n=v5(e);return n<0?OCt(n+t,0):MCt(n,t)},Ise=function(e){return function(t,n,r){var o,i=B0(t),a=ym(i),s=sb(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}},c5e={includes:Ise(!0),indexOf:Ise(!1)},PCt=c5e.indexOf,Ose=Mr([].push),d5e=function(e,t){var n,r=B0(e),o=0,i=[];for(n in r)!Ta(y7,n)&&Ta(r,n)&&Ose(i,n);for(;t.length>o;)Ta(r,n=t[o++])&&(~PCt(i,n)||Ose(i,n));return i},Qk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],NCt=Qk.concat("length","prototype"),IA={f:Object.getOwnPropertyNames||function(e){return d5e(e,NCt)}},f5e={f:Object.getOwnPropertySymbols},RCt=Mr([].concat),BCt=mm("Reflect","ownKeys")||function(e){var t=IA.f(Da(e)),n=f5e.f;return n?RCt(t,n(e)):t},LCt=function(e,t){for(var n=BCt(t),r=Zc.f,o=m5.f,i=0;i<n.length;i++){var a=n[i];Ta(e,a)||r(e,a,o(t,a))}},FCt=/#|\.prototype\./,y5=function(e,t){var n=zCt[UCt(e)];return n==jCt||n!=$Ct&&(hi(t)?ei(t):!!t)},UCt=y5.normalize=function(e){return String(e).replace(FCt,".").toLowerCase()},zCt=y5.data={},$Ct=y5.NATIVE="N",jCt=y5.POLYFILL="P",OA=y5,HCt=m5.f,Qi=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]||pG(s,{}):(Wn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HCt(n,r))&&a.value:n[r],!OA(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;LCt(i,o)}(e.sham||o&&o.sham)&&_c(i,"sham",!0),Rl(n,r,i,e)}},dy=Object.keys||function(e){return d5e(e,Qk)},WCt=ei((function(){dy(1)}));/*!
  754. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  755. *
  756. * Copyright (c) 2014-2017, Jon Schlinkert.
  757. * Released under the MIT License.
  758. */function Mse(e){return Object.prototype.toString.call(e)==="[object Object]"}Qi({target:"Object",stat:!0,forced:WCt},{keys:function(e){return dy(R0(e))}});var VCt={isHistory(e){return Mse(t=e)!==!1&&((n=t.constructor)===void 0||Mse(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ch.isOperationList(e.redos[0]))&&(e.undos.length===0||Ch.isOperationList(e.undos[0]));var t,n,r}},mP=new WeakMap,yP=new WeakMap,z1={isHistoryEditor:e=>VCt.isHistory(e.history)&&Ze.isEditor(e),isMerging:e=>yP.get(e),isSaving:e=>mP.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=z1.isMerging(e);yP.set(e,!1),t(),yP.set(e,n)},withoutSaving(e,t){var n=z1.isSaving(e);mP.set(e,!1),t(),mP.set(e,n)}},qCt=Wn.String,yi=function(e){if(b7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qCt(e)},AG=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},GCt=Zb.PROPER,HU=RegExp.prototype,p5e=HU.toString,KCt=Mr(AG),YCt=ei((function(){return p5e.call({source:"a",flags:"b"})!="/a/b"})),QCt=GCt&&p5e.name!="toString";(YCt||QCt)&&Rl(RegExp.prototype,"toString",(function(){var e=Da(this),t=yi(e.source),n=e.flags;return"/"+t+"/"+yi(n===void 0&&Hv(HU,e)&&!("flags"in HU)?KCt(e):n)}),{unsafe:!0});var h6,ZCt=ss?Object.defineProperties:function(e,t){Da(e);for(var n,r=B0(t),o=dy(t),i=o.length,a=0;i>a;)Zc.f(e,n=o[a++],r[n]);return e},WU=mm("document","documentElement"),h5e=bG("IE_PROTO"),bP=function(){},g5e=function(e){return"<script>"+e+"<\/script>"},Pse=function(e){e.write(g5e("")),e.close();var t=e.parentWindow.Object;return e=null,t},_8=function(){try{h6=new ActiveXObject("htmlfile")}catch{}var e,t;_8=typeof document<"u"?document.domain&&h6?Pse(h6):((t=DA("iframe")).style.display="none",WU.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(g5e("document.F=Object")),e.close(),e.F):Pse(h6);for(var n=Qk.length;n--;)delete _8.prototype[Qk[n]];return _8()};y7[h5e]=!0;var C7=Object.create||function(e,t){var n;return e!==null?(bP.prototype=Da(e),n=new bP,bP.prototype=null,n[h5e]=e):n=_8(),t===void 0?n:ZCt(n,t)},VU=na("unscopables"),qU=Array.prototype;qU[VU]==null&&Zc.f(qU,VU,{configurable:!0,value:C7(null)});var u3=function(e){qU[VU][e]=!0},XCt=c5e.includes;Qi({target:"Array",proto:!0},{includes:function(e){return XCt(this,e,arguments.length>1?arguments[1]:void 0)}}),u3("includes");var JCt=na("match"),CG=function(e){var t;return Ri(e)&&((t=e[JCt])!==void 0?!!t:Dc(e)=="RegExp")},e5t=Wn.TypeError,xG=function(e){if(CG(e))throw e5t("The method doesn't accept regular expressions");return e},t5t=na("match"),SG=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[t5t]=!1,"/./"[e](t)}catch{}}return!1},n5t=Mr("".indexOf);Qi({target:"String",proto:!0,forced:!SG("includes")},{includes:function(e){return!!~n5t(yi(tc(this)),yi(xG(e)),arguments.length>1?arguments[1]:void 0)}});var r5t=/"/g,o5t=Mr("".replace);Qi({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="'+o5t(yi(t),r5t,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var GU=function(e,t,n){var r,o;Da(e);try{if(!(r=Wv(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},i5t=function(e,t,n,r){try{return r?t(Da(n)[0],n[1]):t(n)}catch(o){GU(e,"throw",o)}},lb={},a5t=na("iterator"),s5t=Array.prototype,v5e=function(e){return e!==void 0&&(lb.Array===e||s5t[a5t]===e)},MA=function(e,t,n){var r=yG(t);r in e?Zc.f(e,r,v7(0,n)):e[r]=n},l5t=na("iterator"),EG=function(e){if(e!=null)return Wv(e,l5t)||Wv(e,"@@iterator")||lb[b7(e)]},u5t=Wn.TypeError,m5e=function(e,t){var n=arguments.length<2?EG(e):t;if(v0(n))return Da(qo(n,e));throw u5t(g7(e)+" is not iterable")},Nse=Wn.Array,y5e=na("iterator"),b5e=!1;try{var c5t=0,Rse={next:function(){return{done:!!c5t++}},return:function(){b5e=!0}};Rse[y5e]=function(){return this},Array.from(Rse,(function(){throw 2}))}catch{}var kG=function(e,t){if(!b5e)return!1;var n=!1;try{var r={};r[y5e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},d5t=!kG((function(e){Array.from(e)}));Qi({target:"Array",stat:!0,forced:d5t},{from:function(e){var t=R0(e),n=A7(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Vv(o,r>2?arguments[2]:void 0));var a,s,l,u,d,c,f=EG(t),p=0;if(!f||this==Nse&&v5e(f))for(a=ym(t),s=n?new this(a):Nse(a);a>p;p++)c=i?o(t[p],p):t[p],MA(s,p,c);else for(d=(u=m5e(t,f)).next,s=n?new this:[];!(l=qo(d,u)).done;p++)c=i?i5t(u,o,[l.value,p],!0):l.value,MA(s,p,c);return s.length=p,s}});var ov,Bse,Lse,f5t=Mr("".charAt),Fse=Mr("".charCodeAt),p5t=Mr("".slice),h5t=function(e){return function(t,n){var r,o,i=yi(tc(t)),a=v5(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Fse(i,a))<55296||r>56319||a+1===s||(o=Fse(i,a+1))<56320||o>57343?e?f5t(i,a):r:e?p5t(i,a,a+2):o-56320+(r-55296<<10)+65536}},w5e={charAt:h5t(!0)},g5t=!ei((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Use=bG("IE_PROTO"),KU=Wn.Object,v5t=KU.prototype,Zk=g5t?KU.getPrototypeOf:function(e){var t=R0(e);if(Ta(t,Use))return t[Use];var n=t.constructor;return hi(n)&&t instanceof n?n.prototype:t instanceof KU?v5t:null},YU=na("iterator"),A5e=!1;[].keys&&("next"in(Lse=[].keys())?(Bse=Zk(Zk(Lse)))!==Object.prototype&&(ov=Bse):A5e=!0);var m5t=ov==null||ei((function(){var e={};return ov[YU].call(e)!==e}));m5t&&(ov={}),hi(ov[YU])||Rl(ov,YU,(function(){return this}));var TG={IteratorPrototype:ov,BUGGY_SAFARI_ITERATORS:A5e},y5t=Zc.f,zse=na("toStringTag"),Xk=function(e,t,n){e&&!Ta(e=n?e:e.prototype,zse)&&y5t(e,zse,{configurable:!0,value:t})},b5t=TG.IteratorPrototype,w5t=function(){return this},A5t=Wn.String,C5t=Wn.TypeError,ub=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 C5t("Can't set "+A5t(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),x5t=Zb.PROPER,S5t=Zb.CONFIGURABLE,$se=TG.IteratorPrototype,g6=TG.BUGGY_SAFARI_ITERATORS,vw=na("iterator"),E5t=function(){return this},_G=function(e,t,n,r,o,i,a){(function(y,m,b,w){var A=m+" Iterator";y.prototype=C7(b5t,{next:v7(1,b)}),Xk(y,A,!1),lb[A]=w5t})(n,t,r);var s,l,u,d=function(y){if(y===o&&h)return h;if(!g6&&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[vw]||p["@@iterator"]||o&&p[o],h=!g6&&v||d(o),g=t=="Array"&&p.entries||v;if(g&&(s=Zk(g.call(new e)))!==Object.prototype&&s.next&&(Zk(s)!==$se&&(ub?ub(s,$se):hi(s[vw])||Rl(s,vw,E5t)),Xk(s,c,!0)),x5t&&o=="values"&&v&&v.name!=="values"&&(S5t?_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)(g6||f||!(u in p))&&Rl(p,u,l[u]);else Qi({target:t,proto:!0,forced:g6||f},l);return p[vw]!==h&&Rl(p,vw,h,{name:o}),lb[t]=h,l},k5t=w5e.charAt,T5t=Hs.set,_5t=Hs.getterFor("String Iterator");_G(String,"String",(function(e){T5t(this,{type:"String Iterator",string:yi(e),index:0})}),(function(){var e,t=_5t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=k5t(n,r),t.index+=e.length,{value:e,done:!1})}));var wP,D5t=m5.f,jse=Mr("".endsWith),I5t=Mr("".slice),O5t=Math.min,C5e=SG("endsWith"),M5t=!(C5e||(wP=D5t(String.prototype,"endsWith"),!wP||wP.writable));Qi({target:"String",proto:!0,forced:!M5t&&!C5e},{endsWith:function(e){var t=yi(tc(this));xG(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:O5t(Xb(n),r),i=yi(e);return jse?jse(t,i,o):I5t(t,o-i.length,o)===i}});var P5t=Mr([].join),N5t=w7!=Object,R5t=s5e("join",",");Qi({target:"Array",proto:!0,forced:N5t||!R5t},{join:function(e){return P5t(B0(this),e===void 0?",":e)}});var B5t=na("species"),x7=function(e){return _A>=51||!ei((function(){var t=[];return(t.constructor={})[B5t]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},L5t=Jb.map,F5t=x7("map");Qi({target:"Array",proto:!0,forced:!F5t},{map:function(e){return L5t(this,e,arguments.length>1?arguments[1]:void 0)}});var DG=Wn.RegExp,QU=ei((function(){var e=DG("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),U5t=QU||ei((function(){return!DG("a","y").sticky})),S7={BROKEN_CARET:QU||ei((function(){var e=DG("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),MISSED_STICKY:U5t,UNSUPPORTED_Y:QU},z5t=Wn.RegExp,IG=ei((function(){var e=z5t(".","s");return!(e.dotAll&&e.exec(`
  759. `)&&e.flags==="s")})),$5t=Wn.RegExp,OG=ei((function(){var e=$5t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),j5t=Hs.get,H5t=hG("native-string-replace",String.prototype.replace),Jk=RegExp.prototype.exec,ZU=Jk,W5t=Mr("".charAt),V5t=Mr("".indexOf),q5t=Mr("".replace),AP=Mr("".slice),CP=(function(){var e=/a/,t=/b*/g;return qo(Jk,e,"a"),qo(Jk,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),Hse=S7.BROKEN_CARET,xP=/()??/.exec("")[1]!==void 0;(CP||xP||Hse||IG||OG)&&(ZU=function(e){var t,n,r,o,i,a,s,l=this,u=j5t(l),d=yi(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=qo(ZU,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Hse&&l.sticky,v=qo(AG,l),h=l.source,g=0,y=d;if(p&&(v=q5t(v,"y",""),V5t(v,"g")===-1&&(v+="g"),y=AP(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&W5t(d,l.lastIndex-1)!==`
  760. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),xP&&(n=new RegExp("^"+h+"$(?!\\s)",v)),CP&&(r=l.lastIndex),o=qo(Jk,p?n:l,y),p?o?(o.input=AP(o.input,g),o[0]=AP(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:CP&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),xP&&o&&o.length>1&&qo(H5t,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=C7(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var PA=ZU;Qi({target:"RegExp",proto:!0,forced:/./.exec!==PA},{exec:PA});var MG=Function.prototype,Wse=MG.apply,G5t=MG.bind,Vse=MG.call,PG=typeof Reflect=="object"&&Reflect.apply||(G5t?Vse.bind(Wse):function(){return Vse.apply(Wse,arguments)}),K5t=na("species"),SP=RegExp.prototype,NG=function(e,t,n,r){var o=na(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[K5t]=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===PA||h===SP.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(SP,o,l[1])}r&&_c(SP[o],"sham",!0)},Y5t=w5e.charAt,RG=function(e,t,n){return t+(n?Y5t(e,t).length:1)},Q5t=Math.floor,EP=Mr("".charAt),Z5t=Mr("".replace),kP=Mr("".slice),X5t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,J5t=/\$([$&'`]|\d{1,2})/g,ext=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=J5t;return o!==void 0&&(o=R0(o),l=X5t),Z5t(i,l,(function(u,d){var c;switch(EP(d,0)){case"$":return"$";case"&":return e;case"`":return kP(t,0,n);case"'":return kP(t,a);case"<":c=o[kP(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=Q5t(f/10);return p===0?u:p<=s?r[p-1]===void 0?EP(d,1):r[p-1]+EP(d,1):u}c=r[f-1]}return c===void 0?"":c}))},txt=Wn.TypeError,NA=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(PA,e,t);throw txt("RegExp#exec called on incompatible receiver")},XU=na("replace"),nxt=Math.max,rxt=Math.min,oxt=Mr([].concat),TP=Mr([].push),qse=Mr("".indexOf),Gse=Mr("".slice),ixt="a".replace(/./,"$0")==="$0",Kse=!!/./[XU]&&/./[XU]("a","$0")==="";NG("replace",(function(e,t,n){var r=Kse?"$":"$0";return[function(o,i){var a=tc(this),s=o==null?void 0:Wv(o,XU);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"&&qse(i,r)===-1&&qse(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=NA(a,s);if(p===null||(TP(f,p),!d))break;yi(p[0])===""&&(a.lastIndex=RG(s,Xb(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=yi((p=f[y])[0]),b=nxt(rxt(v5(p.index),s.length),0),w=[],A=1;A<p.length;A++)TP(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=oxt([m],w,b,s);S!==void 0&&TP(k,S);var O=yi(PG(i,void 0,k))}else O=ext(m,s,b,w,S,i);b>=g&&(h+=Gse(s,g,b)+O,g=b+m.length)}return h+Gse(s,g)}]}),!!ei((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!ixt||Kse);/*! *****************************************************************************
  761. Copyright (c) Microsoft Corporation.
  762. Permission to use, copy, modify, and/or distribute this software for any
  763. purpose with or without fee is hereby granted.
  764. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  765. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  766. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  767. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  768. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  769. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  770. PERFORMANCE OF THIS SOFTWARE.
  771. ***************************************************************************** */var JU=function(e,t){return JU=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])},JU(e,t)};function e2(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}JU(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 ez(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var axt=0,Yse=function(){this.id=""+axt++},sxt=Hs.set,lxt=Hs.getterFor("Array Iterator"),T4=_G(Array,"Array",(function(e,t){sxt(this,{type:"Array Iterator",target:B0(e),index:0,kind:t})}),(function(){var e=lxt(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");lb.Arguments=lb.Array,u3("keys"),u3("values"),u3("entries");var cb=function(e,t,n){for(var r in t)Rl(e,r,t[r],n);return e},uxt=Wn.Array,cxt=Math.max,tz=function(e,t,n){for(var r=ym(e),o=sb(t,r),i=sb(n===void 0?r:n,r),a=uxt(cxt(i-o,0)),s=0;o<i;o++,s++)MA(a,s,e[o]);return a.length=s,a},Qse=IA.f,Zse=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dxt={f:function(e){return Zse&&Dc(e)=="Window"?(function(t){try{return Qse(t)}catch{return tz(Zse)}})(e):Qse(B0(e))}},Xse=ei((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),v6=Object.isExtensible,zg=ei((function(){v6(1)}))||Xse?function(e){return!!Ri(e)&&(!Xse||Dc(e)!="ArrayBuffer")&&(!v6||v6(e))}:v6,fxt=!ei((function(){return Object.isExtensible(Object.preventExtensions({}))})),E7=g5((function(e){var t=Zc.f,n=!1,r=gG("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=IA.f,l=Mr([].splice),u={};u[r]=1,s(u).length&&(IA.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},Qi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dxt.f}))},fastKey:function(s,l){if(!Ri(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ta(s,r)){if(!zg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ta(s,r)){if(!zg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return fxt&&n&&zg(s)&&!Ta(s,r)&&i(s),s}};y7[r]=!0})),pxt=Wn.TypeError,D8=function(e,t){this.stopped=e,this.result=t},Jse=D8.prototype,RA=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=Vv(t,d),h=function(y){return r&&GU(r,"normal",y),new D8(!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=EG(e)))throw pxt(g7(e)+" is not iterable");if(v5e(o)){for(i=0,a=ym(e);a>i;i++)if((s=g(e[i]))&&Hv(Jse,s))return s;return new D8(!1)}r=m5e(e,o)}for(l=r.next;!(u=qo(l,r)).done;){try{s=g(u.value)}catch(y){GU(r,"throw",y)}if(typeof s=="object"&&s&&Hv(Jse,s))return s}return new D8(!1)},hxt=Wn.TypeError,k7=function(e,t){if(Hv(t,e))return e;throw hxt("Incorrect invocation")},x5e=function(e,t,n){var r,o;return ub&&hi(r=t.constructor)&&r!==n&&Ri(o=r.prototype)&&o!==n.prototype&&ub(e,o),e},S5e=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(OA(e,!hi(a)||!(o||s.forEach&&!ei((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),E7.enable();else if(OA(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=ei((function(){c.has(1)})),v=kG((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){k7(g,s);var m=x5e(new a,g,l);return y!=null&&RA(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,Qi({global:!0,forced:l!=a},u),Xk(l,e),o||n.setStrong(l,e,r),l},m6=E7.getWeakData,gxt=Hs.set,vxt=Hs.getterFor,mxt=Jb.find,yxt=Jb.findIndex,bxt=Mr([].splice),wxt=0,y6=function(e){return e.frozen||(e.frozen=new E5e)},E5e=function(){this.entries=[]},_P=function(e,t){return mxt(e.entries,(function(n){return n[0]===t}))};E5e.prototype={get:function(e){var t=_P(this,e);if(t)return t[1]},has:function(e){return!!_P(this,e)},set:function(e,t){var n=_P(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=yxt(this.entries,(function(n){return n[0]===e}));return~t&&bxt(this.entries,t,1),!!~t}};var mw,k5e={getConstructor:function(e,t,n,r){var o=e((function(l,u){k7(l,i),gxt(l,{type:t,id:wxt++,frozen:void 0}),u!=null&&RA(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=vxt(t),s=function(l,u,d){var c=a(l),f=m6(Da(u),!0);return f===!0?y6(c).set(u,d):f[c.id]=d,l};return cb(i,{delete:function(l){var u=a(this);if(!Ri(l))return!1;var d=m6(l);return d===!0?y6(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=m6(l);return d===!0?y6(u).has(l):d&&Ta(d,u.id)}}),cb(i,n?{get:function(l){var u=a(this);if(Ri(l)){var d=m6(l);return d===!0?y6(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}},b6=Hs.enforce,Axt=!Wn.ActiveXObject&&"ActiveXObject"in Wn,T5e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Cxt=S5e("WeakMap",T5e,k5e);if(t5e&&Axt){mw=k5e.getConstructor(T5e,"WeakMap",!0),E7.enable();var yw=Cxt.prototype,ele=Mr(yw.delete),w6=Mr(yw.has),tle=Mr(yw.get),nle=Mr(yw.set);cb(yw,{delete:function(e){if(Ri(e)&&!zg(e)){var t=b6(this);return t.frozen||(t.frozen=new mw),ele(this,e)||t.frozen.delete(e)}return ele(this,e)},has:function(e){if(Ri(e)&&!zg(e)){var t=b6(this);return t.frozen||(t.frozen=new mw),w6(this,e)||t.frozen.has(e)}return w6(this,e)},get:function(e){if(Ri(e)&&!zg(e)){var t=b6(this);return t.frozen||(t.frozen=new mw),w6(this,e)?tle(this,e):t.frozen.get(e)}return tle(this,e)},set:function(e,t){if(Ri(e)&&!zg(e)){var n=b6(this);n.frozen||(n.frozen=new mw),w6(this,e)?nle(this,e,t):n.frozen.set(e,t)}else nle(this,e,t);return this}})}var DP=na("iterator"),rle=na("toStringTag"),IP=T4.values,_5e=function(e,t){if(e){if(e[DP]!==IP)try{_c(e,DP,IP)}catch{e[DP]=IP}if(e[rle]||_c(e,rle,t),Kk[t]){for(var n in T4)if(e[n]!==T4[n])try{_c(e,n,T4[n])}catch{e[n]=T4[n]}}}};for(var OP in Kk)_5e(Wn[OP]&&Wn[OP].prototype,OP);_5e(r5e,"DOMTokenList");var nz=new WeakMap,rz=new WeakMap,BG=new WeakMap,T7=new WeakMap,oz=new WeakMap,eT=new WeakMap,LG=new WeakMap,iz=new WeakMap,I8=new WeakMap,ole=new WeakMap,ile=new WeakMap,ale=new WeakMap,sle=new WeakMap,BA=new WeakMap,db=new WeakMap,FG=new WeakMap,tT=new WeakMap,az=new WeakMap,nT=new WeakMap,O8=new WeakMap,D5e=new WeakMap,iv=new WeakMap,MP=new WeakMap,lle=new WeakMap,PP=new WeakMap,xxt=Jb.find,ule=!0;"find"in[]&&Array(1).find((function(){ule=!1})),Qi({target:"Array",proto:!0,forced:ule},{find:function(e){return xxt(this,e,arguments.length>1?arguments[1]:void 0)}}),u3("find"),Qi({global:!0},{globalThis:Wn});const Sxt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];zk&&(Pt.fn.css=zk),ec&&(Pt.fn.append=ec),Qy&&(Pt.fn.addClass=Qy),Zy&&(Pt.fn.removeClass=Zy),Xy&&(Pt.fn.hasClass=Xy),Hd&&(Pt.fn.on=Hd),g0&&(Pt.fn.focus=g0),Ju&&(Pt.fn.attr=Ju),Bk&&(Pt.fn.removeAttr=Bk),eb&&(Pt.fn.hide=eb),Uk&&(Pt.fn.show=Uk),Eae&&(Pt.fn.offset=Eae),Lk&&(Pt.fn.width=Lk),Fk&&(Pt.fn.height=Fk),tb&&(Pt.fn.parent=tb),Hk&&(Pt.fn.parents=Hk),Tae&&(Pt.fn.is=Tae),Jy&&(Pt.fn.dataset=Jy),jd&&(Pt.fn.val=jd),jk&&(Pt.fn.text=jk),h0&&(Pt.fn.html=h0),rb&&(Pt.fn.children=rb),ob&&(Pt.fn.remove=ob),nb&&(Pt.fn.find=nb),$k&&(Pt.fn.each=$k),ib&&(Pt.fn.empty=ib);var md,Ds,UG=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},hc=function(e){return qv(e)&&e.nodeType===1},qv=function(e){var t=UG(e);return!!t&&e instanceof t.Node},cle=function(e){var t=e&&e.anchorNode&&UG(e.anchorNode);return!!t&&e instanceof t.Selection},I5e=function(e){return qv(e)&&e.nodeType===3},sz=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},O5e=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,s=!1,l=!1;(qv(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]},Ext=function(e,t,n){return Fo(O5e(e,t,n),1)[0]},kxt=function e(t){var n,r,o="";if(I5e(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+=`
  772. `)}return o};function M5e(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||M5e(o,t)}}function dle(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 lz=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),c3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),bw=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),_xt=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),uz=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),ww=!_xt&&!Txt&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Et={getWindow:function(e){var t=D5e.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=O8.get(t);return n||(n=new Yse,O8.set(t,n)),n},setNewKey:function(e){var t=new Yse;O8.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=db.get(r);if(o==null){if(Ze.isEditor(r))return n;break}var i=BA.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 db.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 Yn.get(e,n)},toDOMNode:function(e,t){var n;if(Ze.isEditor(t))n=FG.get(e);else{var r=Et.findKey(e,t);n=az.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(Ze.node(e,t.path),1)[0],a=Et.toDOMNode(e,i);Ze.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?tT.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(Ze.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=Ze.point(e,s,{edge:u?"start":"end"}),c=u?Ze.before(e,d):Ze.after(e,d);if(c)return Ze.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((cle(t)?t.anchorNode:t.startContainer)&&(cle(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=uz&&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)&&Ze.void(e,{at:f.focus,mode:"highest"})&&(f=Ze.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,O=k?S-1:S;for(A=(b=Fo(O5e(A,O,k?"backward":"forward"),2))[0],k=(O=b[1])<S;hc(A)&&A.childNodes.length;){var I=k?A.childNodes.length-1:0;A=Ext(A,I,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();ez(ez([],Fo(Cae(g.querySelectorAll("[data-slate-zero-width]")))),Fo(Cae(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")||c3&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
  773. `)))&&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 Ze.hasPath(e,n.path)&&Ze.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 Yn.string(t)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Ze.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(Ze.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(Ze.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(Ze.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&&(Ze.isEnd(e,n.anchor,t)||Ze.isEnd(e,n.focus,t))},getTextarea:function(e){var t=nz.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return T7.get(e)||null},getHoverbar:function(e){return eT.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=Ze.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];M5e(Et.toDOMNode(e,v),(function(h,g){var y=Pt(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=Ze.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=Ze.node(e,t);if(n==null)return!1;var r=Fo(n,1)[0].children;return r.length===1&&r[0].text===""}},Dxt=1,P5e={},LA={},Ixt=Jb.filter,Oxt=x7("filter");Qi({target:"Array",proto:!0,forced:!Oxt},{filter:function(e){return Ixt(this,e,arguments.length>1?arguments[1]:void 0)}});var cz=`
  774. \v\f\r                 \u2028\u2029\uFEFF`,fle=Mr("".replace),rT="["+cz+"]",Mxt=RegExp("^"+rT+rT+"*"),Pxt=RegExp(rT+rT+"*$"),Nxt=function(e){return function(t){var n=yi(tc(t));return 1&e&&(n=fle(n,Mxt,"")),2&e&&(n=fle(n,Pxt,"")),n}},Rxt={trim:Nxt(3)},Bxt=Zb.PROPER,Lxt=Rxt.trim;Qi({target:"String",proto:!0,forced:(function(e){return ei((function(){return!!cz[e]()||"​…᠎"[e]()!=="​…᠎"||Bxt&&cz[e].name!==e}))})("trim")},{trim:function(){return Lxt(this)}});var dz=[],N5e={};function Fxt(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var FA,Km,ple,NP,oT=Wn.Promise,hle=na("species"),zG=function(e){var t=mm(e),n=Zc.f;ss&&t&&!t[hle]&&n(t,hle,{configurable:!0,get:function(){return this}})},Uxt=Wn.TypeError,zxt=na("species"),R5e=function(e,t){var n,r=Da(e).constructor;return r===void 0||(n=Da(r)[zxt])==null?t:(function(o){if(A7(o))return o;throw Uxt(g7(o)+" is not a constructor")})(n)},B5e=Mr([].slice),L5e=/(?:ipad|iphone|ipod).*applewebkit/i.test(cy),Rh=Dc(Wn.process)=="process",fz=Wn.setImmediate,gle=Wn.clearImmediate,$xt=Wn.process,RP=Wn.Dispatch,jxt=Wn.Function,vle=Wn.MessageChannel,Hxt=Wn.String,BP=0,d3={};try{FA=Wn.location}catch{}var $G=function(e){if(Ta(d3,e)){var t=d3[e];delete d3[e],t()}},LP=function(e){return function(){$G(e)}},mle=function(e){$G(e.data)},yle=function(e){Wn.postMessage(Hxt(e),FA.protocol+"//"+FA.host)};fz&&gle||(fz=function(e){var t=B5e(arguments,1);return d3[++BP]=function(){PG(hi(e)?e:jxt(e),void 0,t)},Km(BP),BP},gle=function(e){delete d3[e]},Rh?Km=function(e){$xt.nextTick(LP(e))}:RP&&RP.now?Km=function(e){RP.now(LP(e))}:vle&&!L5e?(NP=(ple=new vle).port2,ple.port1.onmessage=mle,Km=Vv(NP.postMessage,NP)):Wn.addEventListener&&hi(Wn.postMessage)&&!Wn.importScripts&&FA&&FA.protocol!=="file:"&&!ei(yle)?(Km=yle,Wn.addEventListener("message",mle,!1)):Km="onreadystatechange"in DA("script")?function(e){WU.appendChild(DA("script")).onreadystatechange=function(){WU.removeChild(this),$G(e)}}:function(e){setTimeout(LP(e),0)});var Aw,Ig,f3,I1,FP,UP,zP,ble,F5e={set:fz},Wxt=/ipad|iphone|ipod/i.test(cy)&&Wn.Pebble!==void 0,Vxt=/web0s(?!.*chrome)/i.test(cy),qxt=m5.f,$P=F5e.set,wle=Wn.MutationObserver||Wn.WebKitMutationObserver,Ale=Wn.document,Cle=Wn.process,A6=Wn.Promise,xle=qxt(Wn,"queueMicrotask"),U5e=xle&&xle.value;U5e||(Aw=function(){var e,t;for(Rh&&(e=Cle.domain)&&e.exit();Ig;){t=Ig.fn,Ig=Ig.next;try{t()}catch(n){throw Ig?I1():f3=void 0,n}}f3=void 0,e&&e.enter()},L5e||Rh||Vxt||!wle||!Ale?!Wxt&&A6&&A6.resolve?((zP=A6.resolve(void 0)).constructor=A6,ble=Vv(zP.then,zP),I1=function(){ble(Aw)}):Rh?I1=function(){Cle.nextTick(Aw)}:($P=Vv($P,Wn),I1=function(){$P(Aw)}):(FP=!0,UP=Ale.createTextNode(""),new wle(Aw).observe(UP,{characterData:!0}),I1=function(){UP.data=FP=!FP}));var jP,Sle,z5e,Ele,$5e=U5e||function(e){var t={fn:e,next:void 0};f3&&(f3.next=t),Ig||(Ig=t,I1()),f3=t},Gxt=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)},jG={f:function(e){return new Gxt(e)}},pz=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Kxt=typeof window=="object",j5e=F5e.set,Yxt=na("species"),pd="Promise",kle=Hs.getterFor(pd),Qxt=Hs.set,Zxt=Hs.getterFor(pd),bg=oT&&oT.prototype,Sd=oT,Cw=bg,H5e=Wn.TypeError,hz=Wn.document,HG=Wn.process,fy=jG.f,Xxt=fy,Jxt=!!(hz&&hz.createEvent&&Wn.dispatchEvent),W5e=hi(Wn.PromiseRejectionEvent),V5e=!1,p3=OA(pd,(function(){var e=m7(Sd),t=e!==String(Sd);if(!t&&_A===66)return!0;if(_A>=51&&/native code/.test(e))return!1;var n=new Sd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[Yxt]=r,!(V5e=n.then((function(){}))instanceof r)||!t&&Kxt&&!W5e})),e6t=p3||!kG((function(e){Sd.all(e).catch((function(){}))})),q5e=function(e){var t;return!(!Ri(e)||!hi(t=e.then))&&t},WG=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;$5e((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&&n6t(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(H5e("Promise-chain cycle")):(s=q5e(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&&t6t(e)}))}},G5e=function(e,t,n){var r,o;Jxt?((r=hz.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Wn.dispatchEvent(r)):r={promise:t,reason:n},!W5e&&(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)},t6t=function(e){qo(j5e,Wn,(function(){var t,n=e.facade,r=e.value;if(Tle(e)&&(t=pz((function(){Rh?HG.emit("unhandledRejection",r,n):G5e("unhandledrejection",n,r)})),e.rejection=Rh||Tle(e)?2:1,t.error))throw t.value}))},Tle=function(e){return e.rejection!==1&&!e.parent},n6t=function(e){qo(j5e,Wn,(function(){var t=e.facade;Rh?HG.emit("rejectionHandled",t):G5e("rejectionhandled",t,e.value)}))},$1=function(e,t,n){return function(r){e(t,r,n)}},py=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,WG(e,!0))},gz=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H5e("Promise can't be resolved itself");var r=q5e(t);r?$5e((function(){var o={done:!1};try{qo(r,t,$1(gz,o,e),$1(py,o,e))}catch(i){py(o,i,e)}})):(e.value=t,e.state=1,WG(e,!1))}catch(o){py({done:!1},o,e)}}};if(p3&&(Cw=(Sd=function(e){k7(this,Cw),v0(e),qo(jP,this);var t=kle(this);try{e($1(gz,t),$1(py,t))}catch(n){py(t,n)}}).prototype,(jP=function(e){Qxt(this,{type:pd,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=cb(Cw,{then:function(e,t){var n=Zxt(this),r=n.reactions,o=fy(R5e(this,Sd));return o.ok=!hi(e)||e,o.fail=hi(t)&&t,o.domain=Rh?HG.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&WG(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Sle=function(){var e=new jP,t=kle(e);this.promise=e,this.resolve=$1(gz,t),this.reject=$1(py,t)},jG.f=fy=function(e){return e===Sd||e===z5e?new Sle(e):Xxt(e)},hi(oT)&&bg!==Object.prototype)){Ele=bg.then,V5e||(Rl(bg,"then",(function(e,t){var n=this;return new Sd((function(r,o){qo(Ele,n,r,o)})).then(e,t)}),{unsafe:!0}),Rl(bg,"catch",Cw.catch,{unsafe:!0}));try{delete bg.constructor}catch{}ub&&ub(bg,Cw)}Qi({global:!0,wrap:!0,forced:p3},{Promise:Sd}),Xk(Sd,pd,!1),zG(pd),z5e=mm(pd),Qi({target:pd,stat:!0,forced:p3},{reject:function(e){var t=fy(this);return qo(t.reject,void 0,e),t.promise}}),Qi({target:pd,stat:!0,forced:p3},{resolve:function(e){return(function(t,n){if(Da(t),Ri(n)&&n.constructor===t)return n;var r=jG.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Qi({target:pd,stat:!0,forced:e6t},{all:function(e){var t=this,n=fy(t),r=n.resolve,o=n.reject,i=pz((function(){var a=v0(t.resolve),s=[],l=0,u=1;RA(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=fy(t),r=n.reject,o=pz((function(){var i=v0(t.resolve);RA(e,(function(a){qo(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ym=S7.UNSUPPORTED_Y,r6t=Math.min,K5e=[].push,o6t=Mr(/./.exec),Qm=Mr(K5e),xw=Mr("".slice);function nc(e){Promise.resolve().then(e)}function Y5e(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=Ze.isVoid(r,n),u="";l||(u=s.map((function(y){return Y5e(y,r)})).join(""));var d=(function(y){return N5e[y]||Fxt})(i),c=d(n,u,r),f="";if(f=typeof c=="string"?c:c.html||"",l||dz.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," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")})(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(/&nbsp;/g," ")),i===""){var s=Et.getParentNode(null,n);if(!s||s.children.length!==0)return i;i="<br>"}return dz.forEach((function(l){return i=l(n,i)})),i})(e,t)}function Q5e(e){return"w-e-element-"+e}NG("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(!CG(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(PA,v,a))&&!((u=v.lastIndex)>p&&(Qm(c,xw(a,p,l.index)),l.length>1&&l.index<a.length&&PG(K5e,c,tz(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&o6t(v,"")||Qm(c,""):Qm(c,xw(a,p)),c.length>s?tz(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:Wv(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=R5e(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ym?"g":"y"),f=new u(Ym?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return NA(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=Ym?0:h;var y,m=NA(f,Ym?xw(s,h):s);if(m===null||(y=r6t(Xb(f.lastIndex+(Ym?h:0)),s.length))===v)h=RG(s,h,d);else{if(Qm(g,xw(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,xw(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"})),Ym);var _le=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Dle=function(e,t,n){var r=Et.toDOMRange(e,t).getBoundingClientRect(),o=Et.toDOMRange(e,n).getBoundingClientRect();return _le(r,o)&&_le(o,r)},Z5e=["span","b","strong","i","em","s","strike","u","font","sub","sup"],X5e=[],VG=[],iT={},i6t=Zc.f,a6t=IA.f,s6t=Hs.enforce,l6t=na("match"),Pf=Wn.RegExp,O1=Pf.prototype,u6t=Wn.SyntaxError,c6t=Mr(AG),d6t=Mr(O1.exec),C6=Mr("".charAt),Ile=Mr("".replace),Ole=Mr("".indexOf),f6t=Mr("".slice),p6t=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,av=/a/g,HP=/a/g,h6t=new Pf(av)!==av,J5e=S7.MISSED_STICKY,g6t=S7.UNSUPPORTED_Y,v6t=ss&&(!h6t||J5e||IG||OG||ei((function(){return HP[l6t]=!1,Pf(av)!=av||Pf(HP)==HP||Pf(av,"i")!="/a/i"})));if(OA("RegExp",v6t)){for(var Hp=function(e,t){var n,r,o,i,a,s,l=Hv(O1,this),u=CG(e),d=t===void 0,c=[],f=e;if(!l&&u&&d&&e.constructor===Hp)return e;if((u||Hv(O1,e))&&(e=e.source,d&&(t="flags"in f?f.flags:c6t(f))),e=e===void 0?"":yi(e),t=t===void 0?"":yi(t),f=e,IG&&"dotAll"in av&&(r=!!t&&Ole(t,"s")>-1)&&(t=Ile(t,/s/g,"")),n=t,J5e&&"sticky"in av&&(o=!!t&&Ole(t,"y")>-1)&&g6t&&(t=Ile(t,/y/g,"")),OG&&(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=C6(p,g))==="\\")v+=C6(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":d6t(p6t,f6t(p,g+1))&&(g+=2,A=!0),y+=v,S++;continue;case(v===">"&&A):if(k===""||Ta(b,k))throw new u6t("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=x5e(Pf(e,t),l?this:O1,Hp),(r||o||c.length)&&(s=s6t(a),r&&(s.dotAll=!0,s.raw=Hp((function(p){for(var v,h=p.length,g=0,y="",m=!1;g<=h;g++)(v=C6(p,g))!=="\\"?m||v!=="."?(v==="["?m=!0:v==="]"&&(m=!1),y+=v):y+="[\\s\\S]":y+=v+C6(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},m6t=function(e){e in Hp||i6t(Hp,e,{configurable:!0,get:function(){return Pf[e]},set:function(t){Pf[e]=t}})},Mle=a6t(Pf),Ple=0;Mle.length>Ple;)m6t(Mle[Ple++]);O1.constructor=Hp,Hp.prototype=O1,Rl(Wn,"RegExp",Hp)}zG("RegExp");var y6t=new RegExp(" ","g");function exe(e){return e.replace(y6t," ")}function Nle(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 b6t(e,t,n){return{type:"paragraph",children:[{text:Pt(e).text().replace(/\s+/gm," ")}]}}function WP(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(`
  775. `)>=0)return;d&&(d=exe(d),Nle(s,d)||s.push({text:d}))}}else{if(u.nodeName==="BR")return void(Nle(s,`
  776. `)||s.push({text:`
  777. `}));var c=qG(Pt(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 iT)if(i[0].matches(a))return iT[a];return b6t})(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(i){Ze.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),VG.forEach((function(a){i=a(e[0],i,t)})))})),o}function VP(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
  778. `));var n=e[0].textContent||"";n=(function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')})(n);var r={text:n=exe(n)};return VG.forEach((function(o){r=o(e[0],r,t)})),r}function qG(e,t){X5e.forEach((function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=Pt(i(e[0])))}));var n=dle(e);return n==="span"?e.attr("data-w-e-type")?WP(e,t):VP(e,t):n==="code"?dle(e.parent())==="pre"?WP(e,t):VP(e,t):Z5e.includes(n)?VP(e,t):WP(e,t)}function txe(e,t,n){var r=Pt(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function Rle(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=Pt("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(o){var i=qG(Pt(o),e);Array.isArray(i)?i.forEach((function(a){return n.push(a)})):n.push(i)})),n}var w6t=Zc.f,Ble=E7.fastKey,Lle=Hs.set,qP=Hs.getterFor,A6t={getConstructor:function(e,t,n,r){var o=e((function(u,d){k7(u,i),Lle(u,{type:t,index:C7(null),first:void 0,last:void 0,size:0}),ss||(u.size=0),d!=null&&RA(d,u[r],{that:u,AS_ENTRIES:n})})),i=o.prototype,a=qP(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=Ble(d,!0),key:d,value:c,previous:f=v.last,next:void 0,removed:!1},v.first||(v.first=h),f&&(f.next=h),ss?v.size++:u.size++,p!=="F"&&(v.index[p]=h)),u},l=function(u,d){var c,f=a(u),p=Ble(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return cb(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,ss?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),ss?c.size--:d.size--}return!!f},forEach:function(u){for(var d,c=a(this),f=Vv(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)}}),cb(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)}}),ss&&w6t(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=qP(t),i=qP(r);_G(e,t,(function(a,s){Lle(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),zG(t)}};S5e("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),A6t);var Fle=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Ule(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Xt.insertNodes(e,t,{mode:"highest"})}var C6t=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=Ze.void(t,{at:a.path}),u=Ze.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?`
  779. `:""})),I5e(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",kxt(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&&Xt.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},_4=function(e){return e!=null},x6t={object:!0,function:!0,undefined:!0},S6t=/^\s*class[\s{/}]/,E6t=Function.prototype.toString,zle=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!!_4(r)&&hasOwnProperty.call(x6t,typeof r)})(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}})(t)})(e)&&!S6t.test(E6t.call(e))},GG=function(e){return e!=null},k6t=Object.keys,T6t=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return k6t(GG(e)?Object(e):e)},_6t=function(e){if(!GG(e))throw new TypeError("Cannot use null or undefined");return e},D6t=Math.max,$le=(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=D6t(arguments.length,2);for(e=Object(_6t(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},I6t=Array.prototype.forEach,O6t=Object.create,M6t=function(e,t){var n;for(n in e)t[n]=e[n]},jle=function(e){var t=O6t(null);return I6t.call(arguments,(function(n){GG(n)&&M6t(Object(n),t)})),t},GP="razdwatrzy",P6t=String.prototype.indexOf,Sw=typeof GP.contains=="function"&&GP.contains("dwa")===!0&&GP.contains("foo")===!1?String.prototype.contains:function(e){return P6t.call(this,e,arguments[1])>-1},x6=g5((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],_4(n)?(o=Sw.call(n,"c"),i=Sw.call(n,"e"),a=Sw.call(n,"w")):(o=a=!0,i=!1),l={value:r,configurable:o,enumerable:i,writable:a},s?$le(jle(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],_4(r)?zle(r)?_4(o)?zle(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,_4(n)?(i=Sw.call(n,"c"),a=Sw.call(n,"e")):(i=!0,a=!1),l={get:r,set:o,configurable:i,enumerable:a},s?$le(jle(s),l):l}})),KP=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},N6t=g5((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 KP(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 KP(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(KP(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:x6(n),once:x6(r),off:x6(o),emit:x6(i)},l=p({},s),e.exports=t=function(g){return g==null?c(l):p(Object(g),s)},t.methods=a}));function S6(e){var t=lle.get(e);return t==null&&(t=N6t(),lle.set(e,t)),t}var aT=new WeakMap;function Hle(e,t){var n=aT.get(e);n==null&&(n=new Set,aT.set(e,n)),n.add(t)}function R6t(e){return aT.get(e)||new Set}function B6t(e){aT.set(e,new Set)}function KG(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 YG(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=KG(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 QG(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=nT.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 O=[];O.push(k);for(var I=0;O.length>0;){var P=O.pop();if(P==null||++I>1e4)break;var M=P.nodeName;if(P.nodeType===1){var _=M.toLowerCase();if(Sxt.includes(_)||_==="iframe"||_==="video")return P;var R=P.children||[],N=R.length;if(N)for(var V=N-1;V>=0;V--)O.push(R[V])}}return null})(a);if(f!=null){var p=f.getBoundingClientRect();l=p.top,d=p.height}}var v=KG(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 vz(e,t){nc((function(){var n=KG(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 L6t=x7("slice"),F6t=na("species"),YP=Wn.Array,U6t=Math.max;Qi({target:"Array",proto:!0,forced:!L6t},{slice:function(e,t){var n,r,o,i=B0(this),a=ym(i),s=sb(e,a),l=sb(t===void 0?a:t,a);if(Yk(i)&&(n=i.constructor,(A7(n)&&(n===YP||Yk(n.prototype))||Ri(n)&&(n=n[F6t])===null)&&(n=void 0),n===YP||n===void 0))return B5e(i,s,l);for(r=new(n===void 0?YP:n)(U6t(l-s,0)),o=0;s<l;s++,o++)s in i&&MA(r,o,i[s]);return r.length=o,r}});var z6t=m5.f,Wle=Mr("".startsWith),$6t=Mr("".slice),j6t=Math.min,nxe=SG("startsWith"),H6t=!nxe&&!!(function(){var e=z6t(String.prototype,"startsWith");return e&&!e.writable})();Qi({target:"String",proto:!0,forced:!H6t&&!nxe},{startsWith:function(e){var t=yi(tc(this));xG(e);var n=Xb(j6t(arguments.length>1?arguments[1]:void 0,t.length)),r=yi(e);return Wle?Wle(t,r,n):$6t(t,n,n+r.length)===r}});var Zm=Object.assign,Vle=Object.defineProperty,W6t=Mr([].concat),qle=!Zm||ei((function(){if(ss&&Zm({b:1},Zm(Vle({},"a",{enumerable:!0,get:function(){Vle(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})),Zm({},e)[n]!=7||dy(Zm({},t)).join("")!=r}))?function(e,t){for(var n=R0(e),r=arguments.length,o=1,i=f5e.f,a=u5e.f;r>o;)for(var s,l=w7(arguments[o++]),u=i?W6t(dy(l),i(l)):dy(l),d=u.length,c=0;d>c;)s=u[c++],ss&&!qo(a,l,s)||(n[s]=l[s]);return n}:Zm;Qi({target:"Object",stat:!0,forced:Object.assign!==qle},{assign:qle});var V6t=["props","attrs","style","dataset","on","hook"];function rxe(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(!V6t.includes(i)){if(i.startsWith("data-")){var u=i.slice(5);return u=g3t(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"&&rxe(i)}))}var mz=[],oxe={};function q6t(e,t,n){return Xr(n.isInline(e)?"span":"div",null,t)}function Gle(e,t){return t===void 0&&(t=!1),Xr("span",{"data-slate-string":!0},t?e+`
  780. `:e)}function QP(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 yz(e,t,n,r){return BA.set(e,t),db.set(e,n),kr.isElement(e)?(function(o,i){var a,s=Et.findKey(i,o),l=i.isInline(o),u=Ze.isVoid(i,o),d=Q5e(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 oxe[A]||q6t})(f);a=u?null:v.map((function(A,S){return yz(A,S,o,i)}));var g=h(o,a,i);if(u){c["data-slate-void"]=!0;var y=l?"span":"div",m=Fo(Yn.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"}},yz(b,0,o,i));g=Xr(y,{style:{position:"relative"}},g,w),BA.set(b,0),db.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,c),u||l||(g=(function(A,S){var k=S;return mz.forEach((function(O){k=O(A,S)})),k})(o,g)),nc((function(){var A=sz(d);A!=null&&(az.set(s,A),nT.set(o,A),tT.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,O=Et.findPath(S,w),I=Ht.parent(O);if(Ze.isEditor(A))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(A)?QP(Yn.string(A).length):k!==""||A.children[A.children.length-1]!==w||S.isInline(A)||Ze.string(S,I)!==""?k===""?QP():b&&k.slice(-1)===`
  781. `?Gle(k,!0):Gle(k):QP(0,!0)})(h,g===c.length-1,o,i,a);return y=(function(m,b){var w=b;return mz.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=sz(p);h!=null&&(az.set(s,h),nT.set(o,h),tT.set(h,o))})),v})(e,n,r)}function G6t(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),ab("div#"+h,{props:{contentEditable:!g}})})(o,a),u=t.children||[];l.children=u.map((function(h,g){var y=yz(h,g,t,t);return rxe(y),y}));var d=ile.get(e);if(d==null&&(d=!0),d){var c=(function(h,g){return Pt(`<div
  782. id="`+h+`"
  783. data-slate-editor
  784. data-slate-node="value"
  785. suppressContentEditableWarning
  786. role="textarea"
  787. spellCheck="true"
  788. autoCorrect="true"
  789. autoCapitalize="true"
  790. ></div>`)})(o);r.append(c),e.$textArea=c,n=c[0],(p=L4t([U4t,H4t,V4t,z4t,j4t,F4t]))(n,l),ile.set(e,!1),ale.set(e,p)}else{var f=sle.get(e),p=ale.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=sz(o))!=null){if((d?s:t.isFocused())&&n.focus({preventScroll:!0}),d){var v=UG(n);v&&D5e.set(t,v)}FG.set(t,n),nT.set(t,n),tT.set(n,t),sle.set(e,l)}}function Kle(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Yle(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ZP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Yle(n.overflowY,t)||Yle(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 E6(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 Qle(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(!Kle(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,d=[],c=e;Kle(c)&&l(c);){if((c=c.parentElement)===u){d.push(c);break}c!=null&&c===document.body&&ZP(c)&&!ZP(document.documentElement)||c!=null&&ZP(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,O=i==="center"?S+m/2:i==="end"?w:S,I=[],P=0;P<d.length;P++){var M=d[P],_=M.getBoundingClientRect(),R=_.height,N=_.width,V=_.top,L=_.right,j=_.bottom,H=_.left;if(r==="if-needed"&&b>=0&&S>=0&&A<=p&&w<=f&&b>=V&&A<=j&&S>=H&&w<=L)return I;var G=getComputedStyle(M),Z=parseInt(G.borderLeftWidth,10),z=parseInt(G.borderTopWidth,10),U=parseInt(G.borderRightWidth,10),W=parseInt(G.borderBottomWidth,10),re=0,J=0,te="offsetWidth"in M?M.offsetWidth-M.clientWidth-Z-U:0,X="offsetHeight"in M?M.offsetHeight-M.clientHeight-z-W:0;if(u===M)re=o==="start"?k:o==="end"?k-p:o==="nearest"?E6(h,h+p,p,z,W,h+k,h+k+y,y):k-p/2,J=i==="start"?O:i==="center"?O-f/2:i==="end"?O-f:E6(v,v+f,f,Z,U,v+O,v+O+m,m),re=Math.max(0,re+h),J=Math.max(0,J+v);else{re=o==="start"?k-V-z:o==="end"?k-j+W+X:o==="nearest"?E6(V,j,R,z,W+X,k,k+y,y):k-(V+R/2)+X/2,J=i==="start"?O-H-Z:i==="center"?O-(H+N/2)+te/2:i==="end"?O-L+U+te:E6(H,L,N,Z,U+te,O,O+m,m);var ue=M.scrollLeft,me=M.scrollTop;k+=me-(re=Math.max(0,Math.min(me+re,M.scrollHeight-R+X))),O+=ue-(J=Math.max(0,Math.min(ue+J,M.scrollWidth-N+te)))}I.push({el:M,top:re,left:J})}return I}function Zle(e){return e===Object(e)&&Object.keys(e).length!==0}function Tu(e,t){return qv(t)&&Et.hasDOMNode(e,t,{editable:!0})}function Xle(e,t){if(e.getConfig().readOnly)return!1;var n=M1(e,t)&&Et.toSlateNode(e,t);return Ze.isVoid(e,n)}function M1(e,t){return qv(t)&&Et.hasDOMNode(e,t)}function ixe(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=FG.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(Zle(b)&&typeof b.behavior=="function")return b.behavior(w?[]:Qle(m,b));if(!w){var A=(function(S){return S===!1?{block:"end",inline:"nearest"}:Zle(S)?S:{block:"start",inline:"nearest"}})(b);(function(S,k){k===void 0&&(k="auto");var O="scrollBehavior"in document.body.style;S.forEach((function(I){var P=I.el,M=I.top,_=I.left;P.scroll&&O?P.scroll({top:M,left:_,behavior:k}):(P.scrollTop=M,P.scrollLeft=_)}))})(Qle(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&&c3&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=Et.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var XP=new WeakMap,Jle=new WeakMap,K6t={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"},Y6t={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"},Q6t={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},$i=function(e){var t=K6t[e],n=Y6t[e],r=Q6t[e],o=t&&ZM(t),i=n&&ZM(n),a=r&&ZM(r);return function(s){return!(!o||!o(s))||!!(lz&&i&&i(s))||!(lz||!a||!a(s))}},Gi={isBold:$i("bold"),isCompose:$i("compose"),isMoveBackward:$i("moveBackward"),isMoveForward:$i("moveForward"),isDeleteBackward:$i("deleteBackward"),isDeleteForward:$i("deleteForward"),isDeleteLineBackward:$i("deleteLineBackward"),isDeleteLineForward:$i("deleteLineForward"),isDeleteWordBackward:$i("deleteWordBackward"),isDeleteWordForward:$i("deleteWordForward"),isExtendBackward:$i("extendBackward"),isExtendForward:$i("extendForward"),isExtendLineBackward:$i("extendLineBackward"),isExtendLineForward:$i("extendLineForward"),isItalic:$i("italic"),isMoveLineBackward:$i("moveLineBackward"),isMoveLineForward:$i("moveLineForward"),isMoveWordBackward:$i("moveWordBackward"),isMoveWordForward:$i("moveWordForward"),isRedo:$i("redo"),isSplitBlock:$i("splitBlock"),isTransposeCharacter:$i("transposeCharacter"),isUndo:$i("undo"),isTab:$i("tab"),isSelectAll:$i("selectAll")};function Fa(e){e.preventDefault()}var Z6t={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(ww&&!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)||Xt.select(n,u)}}if(i&&pn.isExpanded(i)&&a.startsWith("delete")){var d=a.endsWith("Backward")?"backward":"forward";Ze.deleteFragment(n,{direction:d})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ze.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Ze.deleteForward(n);break;case"deleteContentBackward":Ze.deleteBackward(n);break;case"deleteEntireSoftLine":Ze.deleteBackward(n,{unit:"line"}),Ze.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Ze.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Ze.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Ze.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Ze.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Ze.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Ze.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Ze.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!PP.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&Ze.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&&qv(s)&&Et.hasDOMNode(n,s)){var l=Et.toSlateNode(n,s);if(kr.isElement(l)&&!n.isVoid(l))return}if(bw){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,c3&&e.target!==r?r.focus():iv.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&M1(n,e.target)&&qv(e.target)){var r=Et.toSlateNode(n,e.target),o=Et.findPath(n,r);if(Ze.hasPath(n,o)&&Yn.get(n,o)===r){var i=Ze.start(n,o),a=Ze.end(n,o),s=Ze.void(n,{at:i}),l=Ze.void(n,{at:a});if(s&&l&&Ht.equals(s[1],l[1])){var u=Ze.range(n,i);Xt.select(n,u)}}}},compositionstart:function(e,t,n){if(Tu(n,e.target)){var r=n.selection;if(r&&pn.isExpanded(r)&&(Ze.deleteFragment(n),Promise.resolve().then((function(){ixe(t,n,!0)}))),r&&pn.isCollapsed(r)){var o=Et.toDOMRange(n,r).startContainer,i=o.textContent||"";XP.set(n,i),Jle.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){(uz||c3)&&Et.cleanExposedTexNodeInSelectionBlock(n);for(var i=pn.isBackward(o)?o.focus:o.anchor,a=Fo(Ze.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var l=Fo(Ze.node(n,i.path.slice(0,s+1)),1)[0];if(kr.isElement(l)&&((bw||c3)&&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=XP.get(n)||"",d>0&&Ze.insertText(n,u.slice(0,d)),t.changeViewState()):Ze.insertText(n,u)}else Ze.insertText(n,u);bw||setTimeout((function(){var c=n.selection;if(c!=null){var f=Jle.get(n);f!=null&&Et.toDOMRange(n,c).startContainer!==f&&(f.textContent=XP.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=T7.get(a),u=l&&l.getMenus(),d=eT.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&&y3t(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 Xt.move(n,{unit:"line",reverse:!0});if(Gi.isMoveLineForward(r))return Fa(r),void Xt.move(n,{unit:"line"});if(Gi.isExtendLineBackward(r))return Fa(r),void Xt.move(n,{unit:"line",edge:"focus",reverse:!0});if(Gi.isExtendLineForward(r))return Fa(r),void Xt.move(n,{unit:"line",edge:"focus"});if(Gi.isMoveBackward(r))return Fa(r),void(o&&pn.isCollapsed(o)?Xt.move(n,{reverse:!0}):Xt.collapse(n,{edge:"start"}));if(Gi.isMoveForward(r))return Fa(r),void(o&&pn.isCollapsed(o)?Xt.move(n):Xt.collapse(n,{edge:"end"}));if(Gi.isMoveWordBackward(r))return Fa(r),o&&pn.isExpanded(o)&&Xt.collapse(n,{edge:"focus"}),void Xt.move(n,{unit:"word",reverse:!0});if(Gi.isMoveWordForward(r))return Fa(r),o&&pn.isExpanded(o)&&Xt.collapse(n,{edge:"focus"}),void Xt.move(n,{unit:"word"});if(Gi.isSelectAll(r))return Fa(r),void n.selectAll();if(ww){if((uz||bw)&&o&&(Gi.isDeleteBackward(r)||Gi.isDeleteForward(r))&&pn.isCollapsed(o)){var i=Yn.parent(n,o.anchor.path);if(kr.isElement(i)&&Ze.isVoid(n,i)&&Ze.isInline(n,i))return r.preventDefault(),void Xt.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 Ze.insertBreak(n);if(Gi.isDeleteBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"backward"}):Ze.deleteBackward(n));if(Gi.isDeleteForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"forward"}):Ze.deleteForward(n));if(Gi.isDeleteLineBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"backward"}):Ze.deleteBackward(n,{unit:"line"}));if(Gi.isDeleteLineForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"forward"}):Ze.deleteForward(n,{unit:"line"}));if(Gi.isDeleteWordBackward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"backward"}):Ze.deleteBackward(n,{unit:"word"}));if(Gi.isDeleteWordForward(r))return Fa(r),void(o&&pn.isExpanded(o)?Ze.deleteFragment(n,{direction:"forward"}):Ze.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!ww&&!n.getConfig().readOnly&&Tu(n,e.target)){e.preventDefault();var r=e.key;Ze.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))Ze.deleteFragment(n);else{var a=Yn.parent(n,o.anchor.path);Ze.isVoid(n,a)&&Xt.delete(n)}}},paste:function(e,t,n){PP.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 PP.set(n,!1);if(!ww||(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(M1(n,e.target)){var r=Et.toSlateNode(n,e.target);Ze.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(M1(n,r.target)&&!n.getConfig().readOnly){var o=Et.toSlateNode(n,r.target),i=Et.findPath(n,o);if(Ze.isVoid(n,o)||Ze.void(n,{at:i,voids:!0})){var a=Ze.range(n,i);Xt.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&&M1(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&M1(n,r.target)&&o!=null&&!(ww&&bw&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Et.findEventRange(n,r);Xt.select(n,a),t.isDraggingInternally&&(i&&Xt.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},X6t=1,J6t=(function(){function e(t){var n=this;this.id=X6t++,this.$textArea=null,this.$progressBar=Pt('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Pt('<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=jv((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 Xt.deselect(l);var g=h.anchorNode,y=h.focusNode,m=Tu(l,g)||Xle(l,g),b=Tu(l,y)||Xle(l,y);if(m&&b){var w=Et.toSlateRange(l,h,{exactMatch:!1,suppressThrow:!1});Xt.select(l,w)}else Xt.deselect(l)}})(n,a)}),100);var r=Pt(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=Pt('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=Pt('<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=rz.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&&(aG(Z6t,(function(i,a){n.on(a,(function(s){i(s,t,o)}))})),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",jv((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;G6t(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=Pt('<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(){ixe(t,n)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function ZG(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&&ZG(t)}function XG(){return Pt('<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 axe(){return Pt('<div class="w-e-bar-divider"></div>')}function sxe(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=lz?"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+`
  791. `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}NG("match",(function(e,t,n){return[function(r){var o=tc(this),i=r==null?void 0:Wv(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 NA(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=NA(o,i))!==null;){var c=yi(l[0]);u[d]=c,c===""&&(o.lastIndex=RG(i,Xb(o.lastIndex),s)),d++}return d===0?null:u}]}));var JG=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Pt('<div class="w-e-bar-item"></div>'),this.$button=Pt('<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=Pt(c);ZG(p),f.append(p)}else f.text(s);sxe(f,c,s,u,r),r&&c&&f.append(Pt('<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})(),eSt=(function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return e2(t,e),t.prototype.onButtonClick=function(){},t})(JG),eK=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=iz.get(t);n==null&&(n=new Set,iz.set(t,n)),n.add(this),I8.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=I8.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=I8.get(this);t&&t.emit("modalOrPanelHide")}},e})(),tSt=(function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=Pt('<div class="w-e-drop-panel"></div>'),r}return e2(t,e),t.prototype.genSelfElem=function(){return null},t})(eK),nSt=(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=XG();i.$button.append(a)}return i}return e2(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 tSt(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})(JG),rSt=(function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=Pt('<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 e2(t,e),t.prototype.genSelfElem=function(){var n=this,r=Pt('<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=I8.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})(eK);function lu(e,t,n){var r=Pt('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Pt('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function t2(e,t){var n=Pt('<div class="button-container"></div>'),r=Pt('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var oSt=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=Pt("body"),i.modal=null,i.menu=r,i}return e2(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)?QG(n,r,"modal"):YG(n)},t.prototype.handleModal=function(){var n=tu(this),r=this.menu;if(this.modal==null){var o=new rSt(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||vz(o,n.$elem),setTimeout((function(){o.blur()}))}},t})(JG),iSt=(function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=Pt('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return e2(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=Pt("<ul></ul>");n.forEach((function(i){var a=i.value,s=i.text,l=i.selected,u=i.styleForRenderMenuList,d=Pt('<li data-value="'+a+'"></li>');if(u&&d.css(u),l){var c=Pt('<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(Pt('<span data-value="'+a+'">'+s+"</span>")),d.attr("title",s),o.append(d)})),r.append(o)},t.prototype.genSelfElem=function(){return null},t})(eK),aSt=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Pt('<div class="w-e-bar-item"></div>'),this.$button=Pt('<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),sxe(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 iSt(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=Pt(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=XG();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})(),eue=(function(){function e(t){this.$elem=Pt('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Pt('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Pt('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var s=Pt(r);ZG(s),a.append(s)}else a.text(o);a.attr("data-menu-key",n);var l=XG();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){Pt(l).hasClass("disabled")&&s++})),o.disconnect(),s===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}}));return o},e})(),tue=new WeakMap;function tu(e){var t=LG.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function lxe(e,t,n){n===void 0&&(n=!1);var r=tue.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new nSt(e,t,n):a?new oSt(e,t,n):new eSt(e,t,n)}if(o==="select"&&(r=new aSt(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return tue.set(t,r),r}function sSt(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 lSt=(function(){function e(){var t=this;this.$elem=Pt('<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=FCe((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=axe();r.append(i)}}))},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=LA[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=lxe(t,o);this.hoverbarItems.push(a),LG.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=QG(n,t,"bar");return r.css(o),void vz(n,r)}if(ir.isText(t))return o=YG(n),r.css(o),void vz(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(Ze.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=oz.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=sSt),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 uxe(e,t,n,r){if(BA.set(e,t),db.set(e,n),kr.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach((function(s,l){return uxe(s,l,e,r)})),Ze.isVoid(r,e)){var i=Fo(Yn.texts(e),1),a=Fo(i[0],1)[0];BA.set(a,0),db.set(a,e)}}}function uSt(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];z1.withoutSaving(m,(()=>{Ze.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];z1.withoutSaving(m,(()=>{Ze.withoutNormalizing(m,(()=>{var k=S.map(Ch.inverse).reverse();for(var O of k)m.apply(O)}))})),w.redos.push(S),w.undos.pop()}},m.apply=w=>{var{operations:A,history:S}=m,{undos:k}=S,O=k[k.length-1],I=O&&O[O.length-1],P=((N,V)=>!(!V||N.type!=="set_selection"||V.type!=="set_selection"))(w,I),M=z1.isSaving(m),_=z1.isMerging(m);if(M==null&&(M=((N,V)=>N.type!=="set_selection"||N.properties!=null&&N.newProperties!=null)(w)),M){if(_==null&&(_=O!=null&&(A.length!==0||((N,V)=>N.type==="set_selection"||!(!V||N.type!=="insert_text"||V.type!=="insert_text"||N.offset!==V.offset+V.text.length||!Ht.equals(N.path,V.path))||!(!V||N.type!=="remove_text"||V.type!=="remove_text"||N.offset+N.text.length!==V.offset||!Ht.equals(N.path,V.path)))(w,I)||P)),O&&_)P&&O.pop(),O.push(w);else{var R=[w];k.push(R)}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 O=Et.getLeftLengthOfMaxLength(m);O<=0||(O<k.length?b(k.slice(0,O)):b(k))}else b(k)},m.insertNode=function(k){if(m.getConfig().maxLength){var O=Et.getLeftLengthOfMaxLength(m);O<=0||O<Yn.string(k).length||w(k)}else w(k)},m.insertFragment=function(k){if(m.getConfig().maxLength)if(k.length!==1)k.forEach((function(I){m.insertNode(I)}));else{var O=k[0];if(Et.getLeftLengthOfMaxLength(m)<Yn.string(O).length)return;A(k)}else A(k)},m.dangerouslyInsertHtml=function(k,O){if(k===void 0&&(k=""),O===void 0&&(O=!1),k)if(m.getConfig().maxLength){var I=Et.getLeftLengthOfMaxLength(m);if(!(I<=0)){var P=document.createElement("div");P.innerHTML=k;var M=Array.from(P.childNodes).reduce((function(_,R){var N=R.nodeType,V=R.nodeName;return R?N===md.TEXT_NODE?_+(R.textContent||""):N===md.ELEMENT_NODE?Fle.has(V.toLowerCase())?_:_+(R.textContent||""):_:_}),"");I<M.length||S(k,O)}}else S(k,O)},m})((function(y){var m=y;return m.on=function(b,w){var A=S6(m);if(A.on(b,w),b==="destroyed"&&Hle(m,w),b!=="destroyed"){var S=function(){return A.off(b,w)};A.on("destroyed",S),Hle(m,S)}},m.once=function(b,w){S6(m).once(b,w)},m.off=function(b,w){S6(m).off(b,w)},m.emit=function(b){for(var w=[],A=1;A<arguments.length;A++)w[A-1]=arguments[A];var S=S6(m);S.emit.apply(S,ez([b],Fo(w))),b==="destroyed"&&(R6t(m).forEach((function(k){return S.off("destroyed",k)})),B6t(m))},m})((function(y){var m=y;return m.select=function(b){Xt.select(m,b)},m.deselect=function(){var b=m.selection,w=Et.findDocumentOrShadowRoot(m).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&Xt.deselect(y)},m.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||Xt.move(y,{distance:b,unit:"character",reverse:w}))},m.moveReverse=function(b){m.move(b,!0)},m.restoreSelection=function(){var b=MP.get(m);b!=null&&(m.focus(),Xt.select(m,b))},m.getSelectionPosition=function(){return YG(m)},m.getNodePosition=function(b){return QG(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(Ze.edges(m,[]),2),O=k[0],I=k[1];return!(!mo.equals(A,O)||!mo.equals(S,I))},m.selectAll=function(){var b=Ze.start(m,[]),w=Ze.end(m,[]);Xt.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 O,I,P,M,_,R,N,V,L=[];switch(k.type){case"insert_text":case"remove_text":case"set_node":try{for(var j=Pu(Ze.levels(m,{at:k.path})),H=j.next();!H.done;H=j.next()){var G=Fo(H.value,2),Z=G[0],z=G[1],U=Et.findKey(m,Z);L.push([z,U])}}catch(ge){O={error:ge}}finally{try{H&&!H.done&&(I=j.return)&&I.call(j)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var W=Pu(Ze.levels(m,{at:Ht.parent(k.path)})),re=W.next();!re.done;re=W.next()){var J=Fo(re.value,2);Z=J[0],z=J[1],U=Et.findKey(m,Z),L.push([z,U])}}catch(ge){P={error:ge}}finally{try{re&&!re.done&&(M=W.return)&&M.call(W)}finally{if(P)throw P.error}}break;case"move_node":try{for(var te=Pu(Ze.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],z=ue[1],U=Et.findKey(m,Z),L.push([z,U])}}catch(ge){_={error:ge}}finally{try{X&&!X.done&&(R=te.return)&&R.call(te)}finally{if(_)throw _.error}}}A(k);try{for(var me=Pu(L),Me=me.next();!Me.done;Me=me.next()){var Ae=Fo(Me.value,2);z=Ae[0],U=Ae[1],Z=Fo(Ze.node(m,z),1)[0],O8.set(Z,U)}}catch(ge){N={error:ge}}finally{try{Me&&!Me.done&&(V=me.return)&&V.call(me)}finally{if(N)throw N.error}}},m.deleteBackward=function(k){if(k!=="line")return S(k);if(y.selection&&pn.isCollapsed(y.selection)){var O=Ze.above(y,{match:function(_){return Ze.isBlock(y,_)},at:y.selection});if(O){var I=Fo(O,2)[1],P=Ze.range(y,I,y.selection.anchor),M=(function(_,R){var N=Ze.range(_,pn.end(R)),V=Array.from(Ze.positions(_,{at:R})),L=0,j=V.length,H=Math.floor(j/2);if(Dle(_,Ze.range(_,V[L]),N))return Ze.range(_,V[L],N);if(V.length<2)return Ze.range(_,V[V.length-1],N);for(;H!==V.length&&H!==L;)Dle(_,Ze.range(_,V[H]),N)?j=H:L=H,H=Math.floor((L+j)/2);return Ze.range(_,V[j],N)})(m,P);pn.isCollapsed(M)||Xt.delete(y,{at:M})}}},m.onChange=function(){var k=m.selection;k!=null&&MP.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(O){return Y5e(O,m)})).join("")},m.getText=function(){var k=m.children;return(k===void 0?[]:k).map((function(O){return Yn.string(O)})).join(`
  792. `)},m.getSelectionText=function(){var k=m.selection;return k==null?"":Ze.string(y,k)},m.getElemsByType=function(k,O){var I,P;O===void 0&&(O=!1);var M=[],_=Ze.nodes(m,{at:[],universal:!0});try{for(var R=Pu(_),N=R.next();!N.done;N=R.next()){var V=Fo(N.value,1)[0];if(kr.isElement(V)&&(O?V.type.indexOf(k)>=0:V.type===k)){var L=Q5e(Et.findKey(m,V).id);M.push(Mu(Mu({},V),{id:L}))}}}catch(j){I={error:j}}finally{try{N&&!N.done&&(P=R.return)&&P.call(R)}finally{if(I)throw I.error}}return M},m.getElemsByTypePrefix=function(k){return m.getElemsByType(k,!0)},m.isEmpty=function(){var k=m.children,O=k===void 0?[]:k;if(O.length>1)return!1;var I=O[0];if(I==null)return!0;if(kr.isElement(I)&&I.type==="paragraph"){var P=I.children,M=P===void 0?[]:P;if(M.length>1)return!1;var _=M[0];if(_==null||ir.isText(_)&&_.text==="")return!0}return!1},m.clear=function(){Xt.delete(m,{at:{anchor:Ze.start(m,[]),focus:Ze.end(m,[])}}),m.children.length===0&&Xt.insertNodes(m,[{type:"paragraph",children:[{text:""}]}])},m.getParentNode=function(k){return Et.getParentNode(m,k)},m.dangerouslyInsertHtml=function(k,O){if(k===void 0&&(k=""),O===void 0&&(O=!1),k){var I=document.createElement("div");I.innerHTML=k;var P=Array.from(I.childNodes);if(P=P.filter((function(N){var V=N.nodeType,L=N.nodeName;return V===md.TEXT_NODE||V===md.ELEMENT_NODE&&!Fle.has(L.toLowerCase())})),P.length!==0){var M=m.selection;if(M!=null){var _=null;Et.isSelectedEmptyParagraph(m)&&!O&&(_=[M.focus.path[0]]),I.setAttribute("hidden","true"),document.body.appendChild(I);var R=0;P.forEach((function(N){var V=N.nodeType,L=N.nodeName,j=N.textContent,H=j===void 0?"":j;if(V!==md.TEXT_NODE)if(L!=="BR"){var G=N,Z=!1;if(Z5e.includes(L.toLowerCase()))Z=!0;else for(var z in iT)if(G.matches(z)){Z=!0;break}if(Z){var U=qG(Pt(G),m);return Array.isArray(U)?(U.forEach((function(re){return Ule(m,re)})),R++):(Ule(m,U),R++),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(`
  793. `);else{if(!H||!H.trim())return;m.insertNode({text:H})}})),R&&_&&Et.isEmptyPath(m,_)&&Xt.removeNodes(m,{at:_}),I.remove()}}}},m.setHtml=function(k){k===void 0&&(k="");var O=m.isDisabled(),I=m.isFocused(),P=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var M=Rle(m,k);if(Xt.insertFragment(m,M),I||(m.deselect(),m.blur()),O&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(P))}catch{m.select(Ze.start(m,[]))}},m})((function(y){var m=y;return m.getAllMenuKeys=function(){var b=[];for(var w in LA)b.push(w);return b},m.getConfig=function(){var b=ole.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=C6t(V2t());return m.id="wangEditor-"+Dxt++,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=Ze.end(m,[]);Xt.select(m,w)}else{var A=MP.get(m);A?Xt.select(m,A):Xt.select(m,Ze.start(m,[]))}},m.isFocused=function(){return!!iv.get(m)},m.blur=function(){Et.toDOMNode(m,m).blur(),Xt.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(),nz.delete(m),rz.delete(b);var w=Et.getToolbar(m);w&&(w.destroy(),T7.delete(m),BG.delete(w));var A=Et.getHoverbar(m);A&&(A.destroy(),eT.delete(m),oz.delete(A)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(b){if(!m.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
  794. You has disabled editor scroll, please do this yourself`,void console.warn(w)}var A=Pt("#"+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+=`
  795. 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var k=Et.getTextarea(m),O=k.$textAreaContainer,I=k.$scroll,P=A.offset().top,M=O.offset().top;I[0].scrollBy({top:P-M,behavior:"smooth"})}},m.showProgressBar=function(b){b<1||Et.getTextarea(m).changeProgress(b)},m.hidePanelOrModal=function(){var b=iz.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
  796. 不能设置全屏,因为 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 txe(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=UCe(P5e),b={},w=y.MENU_CONF,A=w===void 0?{}:w;return aG(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+`:
  797. `+S)}},y)})(o);ole.set(u,d);var c=d.hoverbarKeys,f=c===void 0?{}:c;if(l.forEach((function(y){u=y(u)})),a!=null&&(u.children=Rle(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 J6t(n);nz.set(u,p),rz.set(p,u),p.changeViewState(),nc((function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
  798. Textarea height < 300px . This may be cause modal and hoverbar position error`,y)}));var v=void 0;Object.keys(f).length>0&&(v=new lSt,oz.set(v,u),eT.set(u,v)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}else u.children.forEach((function(y,m){return uxe(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 cSt=x7("splice"),dSt=Wn.TypeError,fSt=Math.max,pSt=Math.min;Qi({target:"Array",proto:!0,forced:!cSt},{splice:function(e,t){var n,r,o,i,a,s,l=R0(this),u=ym(l),d=sb(e,u),c=arguments.length;if(c===0?n=r=0:c===1?(n=0,r=u-d):(n=c-2,r=pSt(fSt(v5(t),0),u-d)),u+n-r>9007199254740991)throw dSt("Maximum allowed length exceeded");for(o=a5e(l,r),i=0;i<r;i++)(a=d+i)in l&&MA(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 hSt=(function(){function e(t,n){var r=this;this.$toolbar=Pt('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=FCe((function(){r.toolbarItems.forEach((function(a){a.changeMenuState()}))}),200),this.config=n;var o=Pt(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=UCe(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=axe();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 eue(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 eue,i=this.menus,a=i[t];if(a==null){var s=LA[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+`'
  799. 重复注册了菜单栏 menu '`+t+"'");var l=lxe(t,a,o);this.toolbarItems.push(l),LG.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=BG.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})(),gSt=Zb.EXISTS,vSt=Zc.f,cxe=Function.prototype,mSt=Mr(cxe.toString),dxe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ySt=Mr(dxe.exec);function fxe(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(R){return R}:b,A=e.onSuccess,S=A===void 0?function(R,N){}:A,k=e.onError,O=k===void 0?function(R,N,V){console.error(R.name+" upload error",N,V)}:k,I=e.onProgress,P=I===void 0?function(R){}:I;if(!n)throw new Error(`Cannot get upload server address
  800. 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
  801. 没有配置 fieldName`);var M=n;f&&(M=(function(R,N){var V=Fo(R.split("#"),2),L=V[0],j=V[1],H=[];aG(N,(function(Z,z){H.push(z+"="+Z)}));var G=H.join("&");return L=L.indexOf("?")>0?L+"&"+G:L+"?"+G,j?L+"#"+j:L})(M,d));var _=new E4({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:d}).use(HAt,{endpoint:M,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return _.on("upload-success",(function(R,N){var V=N.body,L=V===void 0?{}:V;try{S(R,L)}catch(j){console.error("wangEditor upload file - onSuccess error",j)}_.removeFile(R.id)})),_.on("progress",(function(R){R<1||P(R)})),_.on("upload-error",(function(R,N,V){try{O(R,N,V)}catch(L){console.error("wangEditor upload file - onError error",L)}_.removeFile(R.id)})),_.on("restriction-failed",(function(R,N){try{O(R,N)}catch(V){console.error("wangEditor upload file - onError error",V)}_.removeFile(R.id)})),_}function Bh(e){return Bh=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},Bh(e)}function bSt(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){bSt(e,o,n[o])}))}return e}function bp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nue(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 wp(e,t,n){return t&&nue(e.prototype,t),n&&nue(e,n),e}function Gv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UA(e,t){if(t&&(Bh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gv(e)}function fb(e){return fb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fb(e)}function bz(e,t){return bz=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},bz(e,t)}function _7(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&&bz(e,t)}ss&&!gSt&&vSt(cxe,"name",{configurable:!0,get:function(){try{return ySt(dxe,mSt(this))[1]}catch{return""}}});var wSt={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]:{};bp(this,e),this.init(t,n)}return wp(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||wSt,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(){bp(this,e),this.observers={}}return wp(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 Ew(){var e,t,n=new Promise((function(r,o){e=r,t=o}));return n.resolve=e,n.reject=t,n}function rue(e){return e==null?"":""+e}function ASt(e,t,n){e.forEach((function(r){t[r]&&(n[r]=t[r])}))}function tK(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 oue(e,t,n){var r=tK(e,t,Object);r.obj[r.k]=n}function sT(e,t){var n=tK(e,t),r=n.obj,o=n.k;if(r)return r[o]}function iue(e,t,n){var r=sT(e,n);return r!==void 0?r:sT(t,n)}function pxe(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]):pxe(e[r],t[r],n):e[r]=t[r]);return e}function Xm(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var CSt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xSt(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,(function(t){return CSt[t]})):e}var D7=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function hxe(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?hxe(l,u,n):void 0}o=o[r[i]]}return o}}var SSt=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return bp(this,t),r=UA(this,fb(t).call(this)),D7&&m0.call(Gv(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 _7(t,m0),wp(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=sT(this.data,l);return u||!s||typeof o!="string"?u:hxe(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),oue(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=sT(this.data,l)||{};i?pxe(u,o,a):u=Ua({},u,o),oue(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})(),gxe={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}},aue={},sue=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return bp(this,t),r=UA(this,fb(t).call(this)),D7&&m0.call(Gv(r)),ASt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Gv(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Nf.create("translator"),r}return _7(t,m0),wp(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(Bh(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]",O=k?[]:{},I=k?y:g;for(var P in h)if(Object.prototype.hasOwnProperty.call(h,P)){var M="".concat(I).concat(a).concat(P);O[P]=this.translate(M,Ua({},r,{joinArrays:!1,ns:u})),O[P]===M&&(O[P]=h[P])}h=O}}else if(A&&typeof w=="string"&&m==="[object Array]")(h=h.join(w))&&(h=this.extendTranslation(h,n,r,o));else{var _=!1,R=!1,N=r.count!==void 0&&typeof r.count!="string",V=t.hasDefaultValue(r),L=N?this.pluralResolver.getSuffix(c,r.count):"",j=r["defaultValue".concat(L)]||r.defaultValue;!this.isValidLookup(h)&&V&&(_=!0,h=j),this.isValidLookup(h)||(R=!0,h=l);var H=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,G=H&&R?void 0:h,Z=V&&j!==h&&this.options.updateMissing;if(R||_||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,d,l,Z?j:h),a){var z=this.resolve(l,Ua({},r,{keySeparator:!1}));z&&z.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 U=[],W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(var re=0;re<W.length;re++)U.push(W[re]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(r.lng||this.language):U.push(r.lng||this.language);var J=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?U.forEach((function(te){i.pluralResolver.getSuffixes(te).forEach((function(X){J([te],l+X,r["defaultValue".concat(X)]||j)}))})):J(U,l,j))}h=this.extendTranslation(h,n,r,v,o),R&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(l)),(R||_)&&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=gxe.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,!aue["".concat(g[0],"-").concat(y)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(s)&&(aue["".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 JP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ESt=(function(){function e(t){bp(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nf.create("languageUtils")}return wp(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]=JP(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]=JP(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=JP(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})(),kSt=[{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 _St(){var e={};return kSt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:TSt[t.fc]}}))})),e}var DSt=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};bp(this,e),this.languageUtils=t,this.options=n,this.logger=Nf.create("pluralResolver"),this.rules=_St()}return wp(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})(),ISt=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bp(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 wp(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:xSt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Xm(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Xm(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?Xm(n.nestingPrefix):n.nestingPrefixEscaped||Xm("$t("),this.nestingSuffix=n.nestingSuffix?Xm(n.nestingSuffix):n.nestingSuffixEscaped||Xm(")"),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=iue(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(iue(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=rue(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=rue(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})(),OSt=(function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return bp(this,t),i=UA(this,fb(t).call(this)),D7&&m0.call(Gv(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 _7(t,m0),wp(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=tK(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 MSt(){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(Bh(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Bh(e[2])==="object"||Bh(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 lue(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 k6(){}var PSt=(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(bp(this,t),n=UA(this,fb(t).call(this)),D7&&m0.call(Gv(n)),n.options=lue(r),n.services={},n.logger=Nf,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),UA(n,Gv(n));setTimeout((function(){n.init(r,o)}),0)}return n}return _7(t,m0),wp(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({},MSt(),this.options,lue(r)),this.format=this.options.interpolation.format,o||(o=k6),!this.options.isClone){this.modules.logger?Nf.init(i(this.modules.logger),this.options):Nf.init(null,this.options);var a=new ESt(this.options);this.store=new SSt(this.options.resources,this.options);var s=this.services;s.logger=Nf,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new DSt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new ISt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new OSt(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 sue(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=Ew(),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]:k6,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=Ew();return n||(n=this.languages),r||(r=this.options.ns),o||(o=k6),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"&&gxe.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=Ew();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(Bh(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=Ew();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=Ew();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]:k6,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 sue(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})(),lT=new PSt;function $l(e,t){lT.addResourceBundle(e,"translation",t,!0,!0)}lT.init({lng:"zh-CN",resources:{}});var Qn=lT.t.bind(lT);$l("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),$l("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var NSt=Vq?{}.toString:function(){return"[object "+l7(this)+"]"};Vq||Uv(Object.prototype,"toString",NSt,{unsafe:!0});var uue=Array.isArray||function(e){return Jg(e)=="Array"},vxe=function(){},RSt=[],mxe=s5("Reflect","construct"),nK=/^\s*(?:class|function)\b/,BSt=pi(nK.exec),LSt=!nK.exec(vxe),kw=function(e){if(!rs(e))return!1;try{return mxe(vxe,RSt,e),!0}catch{return!1}},FSt=!mxe||ps((function(){var e;return kw(kw.call)||!kw(Object)||!kw((function(){e=!0}))||e}))?function(e){if(!rs(e))return!1;switch(l7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LSt||!!BSt(nK,zq(e))}:kw,USt=vl("species"),cue=ro.Array,zSt=function(e,t){return new((function(n){var r;return uue(n)&&(r=n.constructor,(FSt(r)&&(r===cue||uue(r.prototype))||xd(r)&&(r=r[USt])===null)&&(r=void 0)),r===void 0?cue:r})(e))(t===0?0:t)},due=pi([].push),$St=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=Bq(l),h=PAe(v),g=qAe(u,d),y=s7(h),m=0,b=c||zSt,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:due(w,f)}else switch(e){case 4:return!1;case 7:due(w,f)}return i?-1:r||o?o:w}},jSt={forEach:$St(0)}.forEach,HSt=(function(e,t){var n=[][e];return!!n&&ps((function(){n.call(null,t||function(){throw 1},1)}))})("forEach"),eN=HSt?[].forEach:function(e){return jSt(this,e,arguments.length>1?arguments[1]:void 0)},yxe=function(e){if(e&&e.forEach!==eN)try{kl(e,"forEach",eN)}catch{e.forEach=eN}};for(var tN in Tk)Tk[tN]&&yxe(ro[tN]&&ro[tN].prototype);yxe(YAe),$l("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"}}),$l("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 WSt={type:"paragraph",renderElem:function(e,t,n){return Xr("p",null,t)}},uT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I7(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wp,M8,T6=function(e){return e&&e.Math==Math&&e},co=T6(typeof globalThis=="object"&&globalThis)||T6(typeof window=="object"&&window)||T6(typeof self=="object"&&self)||T6(typeof uT=="object"&&uT)||(function(){return this})()||Function("return this")(),ea=function(e){try{return!!e()}catch{return!0}},jc=!ea((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Tw=Function.prototype.call,xa=Tw.bind?Tw.bind(Tw):function(){return Tw.apply(Tw,arguments)},fue={}.propertyIsEnumerable,pue=Object.getOwnPropertyDescriptor,VSt=pue&&!fue.call({1:2},1)?function(e){var t=pue(this,e);return!!t&&t.enumerable}:fue,bxe={f:VSt},rK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wxe=Function.prototype,wz=wxe.bind,Az=wxe.call,qSt=wz&&wz.bind(Az),Qr=wz?function(e){return e&&qSt(Az,e)}:function(e){return e&&function(){return Az.apply(e,arguments)}},GSt=Qr({}.toString),KSt=Qr("".slice),Lh=function(e){return KSt(GSt(e),8,-1)},nN=co.Object,YSt=Qr("".split),O7=ea((function(){return!nN("z").propertyIsEnumerable(0)}))?function(e){return Lh(e)=="String"?YSt(e,""):nN(e)}:nN,QSt=co.TypeError,rc=function(e){if(e==null)throw QSt("Can't call method on "+e);return e},n2=function(e){return O7(rc(e))},Ws=function(e){return typeof e=="function"},Ed=function(e){return typeof e=="object"?e!==null:Ws(e)},ZSt=function(e){return Ws(e)?e:void 0},b5=function(e,t){return arguments.length<2?ZSt(co[e]):co[e]&&co[e][t]},Axe=Qr({}.isPrototypeOf),rN=b5("navigator","userAgent")||"",hue=co.process,gue=co.Deno,vue=hue&&hue.versions||gue&&gue.version,mue=vue&&vue.v8;mue&&(M8=(Wp=mue.split("."))[0]>0&&Wp[0]<4?1:+(Wp[0]+Wp[1])),!M8&&rN&&(!(Wp=rN.match(/Edge\/(\d+)/))||Wp[1]>=74)&&(Wp=rN.match(/Chrome\/(\d+)/))&&(M8=+Wp[1]);var Cz=M8,xz=!!Object.getOwnPropertySymbols&&!ea((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Cz&&Cz<41})),oK=xz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",XSt=co.Object,oN=oK?function(e){return typeof e=="symbol"}:function(e){var t=b5("Symbol");return Ws(t)&&Axe(t.prototype,XSt(e))},JSt=co.String,Cxe=function(e){try{return JSt(e)}catch{return"Object"}},e8t=co.TypeError,xxe=function(e){if(Ws(e))return e;throw e8t(Cxe(e)+" is not a function")},M7=function(e,t){var n=e[t];return n==null?void 0:xxe(n)},t8t=co.TypeError,n8t=Object.defineProperty,iK=function(e,t){try{n8t(co,e,{value:t,configurable:!0,writable:!0})}catch{co[e]=t}return t},Fh=co["__core-js_shared__"]||iK("__core-js_shared__",{}),aK=I7((function(e){(e.exports=function(t,n){return Fh[t]||(Fh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),r8t=co.Object,w5=function(e){return r8t(rc(e))},o8t=Qr({}.hasOwnProperty),ju=Object.hasOwn||function(e,t){return o8t(w5(e),t)},i8t=0,a8t=Math.random(),s8t=Qr(1 .toString),Sxe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+s8t(++i8t+a8t,36)},_w=aK("wks"),sv=co.Symbol,yue=sv&&sv.for,l8t=oK?sv:sv&&sv.withoutSetter||Sxe,wu=function(e){if(!ju(_w,e)||!xz&&typeof _w[e]!="string"){var t="Symbol."+e;xz&&ju(sv,e)?_w[e]=sv[e]:_w[e]=oK&&yue?yue(t):l8t(t)}return _w[e]},u8t=co.TypeError,c8t=wu("toPrimitive"),sK=function(e){var t=(function(n,r){if(!Ed(n)||oN(n))return n;var o,i=M7(n,c8t);if(i){if(o=xa(i,n,r),!Ed(o)||oN(o))return o;throw u8t("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 t8t("Can't convert object to primitive value")})(n)})(e,"string");return oN(t)?t:t+""},Sz=co.document,d8t=Ed(Sz)&&Ed(Sz.createElement),lK=function(e){return d8t?Sz.createElement(e):{}},Exe=!jc&&!ea((function(){return Object.defineProperty(lK("div"),"a",{get:function(){return 7}}).a!=7})),bue=Object.getOwnPropertyDescriptor,uK={f:jc?bue:function(e,t){if(e=n2(e),t=sK(t),Exe)try{return bue(e,t)}catch{}if(ju(e,t))return rK(!xa(bxe.f,e,t),e[t])}},f8t=co.String,p8t=co.TypeError,uu=function(e){if(Ed(e))return e;throw p8t(f8t(e)+" is not an object")},h8t=co.TypeError,wue=Object.defineProperty,r2={f:jc?wue:function(e,t,n){if(uu(e),t=sK(t),uu(n),Exe)try{return wue(e,t,n)}catch{}if("get"in n||"set"in n)throw h8t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pb=jc?function(e,t,n){return r2.f(e,t,rK(1,n))}:function(e,t,n){return e[t]=n,e},g8t=Qr(Function.toString);Ws(Fh.inspectSource)||(Fh.inspectSource=function(e){return g8t(e)});var Ez,cT,kz,cK=Fh.inspectSource,Aue=co.WeakMap,v8t=Ws(Aue)&&/native code/.test(cK(Aue)),Cue=aK("keys"),kxe=function(e){return Cue[e]||(Cue[e]=Sxe(e))},dK={},xue=co.TypeError,m8t=co.WeakMap;if(v8t||Fh.state){var ng=Fh.state||(Fh.state=new m8t),y8t=Qr(ng.get),Sue=Qr(ng.has),b8t=Qr(ng.set);Ez=function(e,t){if(Sue(ng,e))throw new xue("Object already initialized");return t.facade=e,b8t(ng,e,t),t},cT=function(e){return y8t(ng,e)||{}},kz=function(e){return Sue(ng,e)}}else{var Jm=kxe("state");dK[Jm]=!0,Ez=function(e,t){if(ju(e,Jm))throw new xue("Object already initialized");return t.facade=e,pb(e,Jm,t),t},cT=function(e){return ju(e,Jm)?e[Jm]:{}},kz=function(e){return ju(e,Jm)}}var Tz={get:cT,enforce:function(e){return kz(e)?cT(e):Ez(e,{})}},Txe=Function.prototype,w8t=jc&&Object.getOwnPropertyDescriptor,iN=ju(Txe,"name"),P7={EXISTS:iN,PROPER:iN&&(function(){}).name==="something",CONFIGURABLE:iN&&(!jc||jc&&w8t(Txe,"name").configurable)},zA=I7((function(e){var t=P7.CONFIGURABLE,n=Tz.get,r=Tz.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)&&pb(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:pb(i,a,s)):c?i[a]=s:iK(a,s)})(Function.prototype,"toString",(function(){return Ws(this)&&n(this).source||cK(this)}))})),A8t=Math.ceil,C8t=Math.floor,o2=function(e){var t=+e;return t!=t||t===0?0:(t>0?C8t:A8t)(t)},x8t=Math.max,S8t=Math.min,$A=function(e,t){var n=o2(e);return n<0?x8t(n+t,0):S8t(n,t)},E8t=Math.min,A5=function(e){return e>0?E8t(o2(e),9007199254740991):0},N7=function(e){return A5(e.length)},Eue=function(e){return function(t,n,r){var o,i=n2(t),a=N7(i),s=$A(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}},_xe={includes:Eue(!0),indexOf:Eue(!1)},k8t=_xe.indexOf,kue=Qr([].push),Dxe=function(e,t){var n,r=n2(e),o=0,i=[];for(n in r)!ju(dK,n)&&ju(r,n)&&kue(i,n);for(;t.length>o;)ju(r,n=t[o++])&&(~k8t(i,n)||kue(i,n));return i},dT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T8t=dT.concat("length","prototype"),_8t={f:Object.getOwnPropertyNames||function(e){return Dxe(e,T8t)}},Ixe={f:Object.getOwnPropertySymbols},D8t=Qr([].concat),I8t=b5("Reflect","ownKeys")||function(e){var t=_8t.f(uu(e)),n=Ixe.f;return n?D8t(t,n(e)):t},O8t=function(e,t){for(var n=I8t(t),r=r2.f,o=uK.f,i=0;i<n.length;i++){var a=n[i];ju(e,a)||r(e,a,o(t,a))}},M8t=/#|\.prototype\./,C5=function(e,t){var n=N8t[P8t(e)];return n==B8t||n!=R8t&&(Ws(t)?ea(t):!!t)},P8t=C5.normalize=function(e){return String(e).replace(M8t,".").toLowerCase()},N8t=C5.data={},R8t=C5.NATIVE="N",B8t=C5.POLYFILL="P",L8t=C5,F8t=uK.f,Qa=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]||iK(s,{}):(co[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=F8t(n,r))&&a.value:n[r],!L8t(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;O8t(i,o)}(e.sham||o&&o.sham)&&pb(i,"sham",!0),zA(n,r,i,e)}},Tue=Qr(Qr.bind),fT=Array.isArray||function(e){return Lh(e)=="Array"},Oxe={};Oxe[wu("toStringTag")]="z";var fK=String(Oxe)==="[object z]",U8t=wu("toStringTag"),z8t=co.Object,$8t=Lh((function(){return arguments})())=="Arguments",pK=fK?Lh: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=z8t(e),U8t))=="string"?n:$8t?Lh(t):(r=Lh(t))=="Object"&&Ws(t.callee)?"Arguments":r},Mxe=function(){},j8t=[],Pxe=b5("Reflect","construct"),hK=/^\s*(?:class|function)\b/,H8t=Qr(hK.exec),W8t=!hK.exec(Mxe),Dw=function(e){if(!Ws(e))return!1;try{return Pxe(Mxe,j8t,e),!0}catch{return!1}},gK=!Pxe||ea((function(){var e;return Dw(Dw.call)||!Dw(Object)||!Dw((function(){e=!0}))||e}))?function(e){if(!Ws(e))return!1;switch(pK(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return W8t||!!H8t(hK,cK(e))}:Dw,V8t=wu("species"),_ue=co.Array,q8t=function(e,t){return new((function(n){var r;return fT(n)&&(r=n.constructor,(gK(r)&&(r===_ue||fT(r.prototype))||Ed(r)&&(r=r[V8t])===null)&&(r=void 0)),r===void 0?_ue:r})(e))(t===0?0:t)},Due=Qr([].push),_6=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=w5(l),h=O7(v),g=(function(A,S){return xxe(A),S===void 0?A:Tue?Tue(A,S):function(){return A.apply(S,arguments)}})(u,d),y=N7(h),m=0,b=c||q8t,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:Due(w,f)}else switch(e){case 4:return!1;case 7:Due(w,f)}return i?-1:r||o?o:w}},R7={forEach:_6(0),map:_6(1),filter:_6(2),find:_6(5)},G8t=wu("species"),vK=function(e){return Cz>=51||!ea((function(){var t=[];return(t.constructor={})[G8t]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},K8t=R7.filter;Qa({target:"Array",proto:!0,forced:!vK("filter")},{filter:function(e){return K8t(this,e,arguments.length>1?arguments[1]:void 0)}});var Y8t=fK?{}.toString:function(){return"[object "+pK(this)+"]"};fK||zA(Object.prototype,"toString",Y8t,{unsafe:!0});var D6,Q8t=co.String,Ki=function(e){if(pK(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Q8t(e)},Nxe=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},mK=co.RegExp,_z=ea((function(){var e=mK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));_z||ea((function(){return!mK("a","y").sticky}));var Rxe={BROKEN_CARET:_z||ea((function(){var e=mK("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:_z},hy=Object.keys||function(e){return Dxe(e,dT)},Z8t=jc?Object.defineProperties:function(e,t){uu(e);for(var n,r=n2(t),o=hy(t),i=o.length,a=0;i>a;)r2.f(e,n=o[a++],r[n]);return e},X8t=b5("document","documentElement"),Bxe=kxe("IE_PROTO"),aN=function(){},Lxe=function(e){return"<script>"+e+"<\/script>"},Iue=function(e){e.write(Lxe("")),e.close();var t=e.parentWindow.Object;return e=null,t},P8=function(){try{D6=new ActiveXObject("htmlfile")}catch{}var e,t;P8=typeof document<"u"?document.domain&&D6?Iue(D6):((t=lK("iframe")).style.display="none",X8t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Lxe("document.F=Object")),e.close(),e.F):Iue(D6);for(var n=dT.length;n--;)delete P8.prototype[dT[n]];return P8()};dK[Bxe]=!0;var Oue,sN,Fxe=Object.create||function(e,t){var n;return e!==null?(aN.prototype=uu(e),n=new aN,aN.prototype=null,n[Bxe]=e):n=P8(),t===void 0?n:Z8t(n,t)},J8t=co.RegExp,eEt=ea((function(){var e=J8t(".","s");return!(e.dotAll&&e.exec(`
  802. `)&&e.flags==="s")})),tEt=co.RegExp,nEt=ea((function(){var e=tEt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),rEt=Tz.get,oEt=aK("native-string-replace",String.prototype.replace),pT=RegExp.prototype.exec,Dz=pT,iEt=Qr("".charAt),aEt=Qr("".indexOf),sEt=Qr("".replace),lN=Qr("".slice),uN=(sN=/b*/g,xa(pT,Oue=/a/,"a"),xa(pT,sN,"a"),Oue.lastIndex!==0||sN.lastIndex!==0),Mue=Rxe.BROKEN_CARET,cN=/()??/.exec("")[1]!==void 0;(uN||cN||Mue||eEt||nEt)&&(Dz=function(e){var t,n,r,o,i,a,s,l=this,u=rEt(l),d=Ki(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=xa(Dz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Mue&&l.sticky,v=xa(Nxe,l),h=l.source,g=0,y=d;if(p&&(v=sEt(v,"y",""),aEt(v,"g")===-1&&(v+="g"),y=lN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&iEt(d,l.lastIndex-1)!==`
  803. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),cN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),uN&&(r=l.lastIndex),o=xa(pT,p?n:l,y),p?o?(o.input=lN(o.input,g),o[0]=lN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:uN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),cN&&o&&o.length>1&&xa(oEt,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=Fxe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var jA=Dz;Qa({target:"RegExp",proto:!0,forced:/./.exec!==jA},{exec:jA});var yK=Function.prototype,Pue=yK.apply,lEt=yK.bind,Nue=yK.call,Uxe=typeof Reflect=="object"&&Reflect.apply||(lEt?Nue.bind(Pue):function(){return Nue.apply(Pue,arguments)}),uEt=wu("species"),dN=RegExp.prototype,bK=function(e,t,n,r){var o=wu(e),i=!ea((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ea((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[uEt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Qr(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Qr(u),h=d.exec;return h===jA||h===dN.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));zA(String.prototype,e,l[0]),zA(dN,o,l[1])}r&&pb(dN[o],"sham",!0)},cEt=Qr("".charAt),Rue=Qr("".charCodeAt),dEt=Qr("".slice),fEt=function(e){return function(t,n){var r,o,i=Ki(rc(t)),a=o2(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Rue(i,a))<55296||r>56319||a+1===s||(o=Rue(i,a+1))<56320||o>57343?e?cEt(i,a):r:e?dEt(i,a,a+2):o-56320+(r-55296<<10)+65536}},pEt=fEt(!0),wK=function(e,t,n){return t+(n?pEt(e,t).length:1)},hEt=Math.floor,fN=Qr("".charAt),gEt=Qr("".replace),pN=Qr("".slice),vEt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mEt=/\$([$&'`]|\d{1,2})/g,yEt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=mEt;return o!==void 0&&(o=w5(o),l=vEt),gEt(i,l,(function(u,d){var c;switch(fN(d,0)){case"$":return"$";case"&":return e;case"`":return pN(t,0,n);case"'":return pN(t,a);case"<":c=o[pN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=hEt(f/10);return p===0?u:p<=s?r[p-1]===void 0?fN(d,1):r[p-1]+fN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},bEt=co.TypeError,HA=function(e,t){var n=e.exec;if(Ws(n)){var r=xa(n,e,t);return r!==null&&uu(r),r}if(Lh(e)==="RegExp")return xa(jA,e,t);throw bEt("RegExp#exec called on incompatible receiver")},Iz=wu("replace"),wEt=Math.max,AEt=Math.min,CEt=Qr([].concat),hN=Qr([].push),Bue=Qr("".indexOf),Lue=Qr("".slice),xEt="a".replace(/./,"$0")==="$0",Fue=!!/./[Iz]&&/./[Iz]("a","$0")==="";bK("replace",(function(e,t,n){var r=Fue?"$":"$0";return[function(o,i){var a=rc(this),s=o==null?void 0:M7(o,Iz);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"&&Bue(i,r)===-1&&Bue(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=HA(a,s);if(p===null||(hN(f,p),!d))break;Ki(p[0])===""&&(a.lastIndex=wK(s,A5(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Ki((p=f[y])[0]),b=wEt(AEt(o2(p.index),s.length),0),w=[],A=1;A<p.length;A++)hN(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=CEt([m],w,b,s);S!==void 0&&hN(k,S);var O=Ki(Uxe(i,void 0,k))}else O=yEt(m,s,b,w,S,i);b>=g&&(h+=Lue(s,g,b)+O,g=b+m.length)}return h+Lue(s,g)}]}),!!ea((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!xEt||Fue);var Oz=wu("unscopables"),Mz=Array.prototype;Mz[Oz]==null&&r2.f(Mz,Oz,{configurable:!0,value:Fxe(null)});var zxe=function(e){Mz[Oz][e]=!0},SEt=R7.find,Uue=!0;"find"in[]&&Array(1).find((function(){Uue=!1})),Qa({target:"Array",proto:!0,forced:Uue},{find:function(e){return SEt(this,e,arguments.length>1?arguments[1]:void 0)}}),zxe("find");var EEt=wu("match"),$xe=function(e){var t;return Ed(e)&&((t=e[EEt])!==void 0?!!t:Lh(e)=="RegExp")},kEt=co.TypeError,TEt=wu("species"),jxe=function(e,t,n){var r=sK(t);r in e?r2.f(e,r,rK(0,n)):e[r]=n},_Et=co.Array,DEt=Math.max,zue=function(e,t,n){for(var r=N7(e),o=$A(t,r),i=$A(n===void 0?r:n,r),a=_Et(DEt(i-o,0)),s=0;o<i;o++,s++)jxe(a,s,e[o]);return a.length=s,a},e1=Rxe.UNSUPPORTED_Y,IEt=Math.min,Hxe=[].push,OEt=Qr(/./.exec),t1=Qr(Hxe),Iw=Qr("".slice);bK("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(!$xe(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(jA,v,a))&&!((u=v.lastIndex)>p&&(t1(c,Iw(a,p,l.index)),l.length>1&&l.index<a.length&&Uxe(Hxe,c,zue(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&OEt(v,"")||t1(c,""):t1(c,Iw(a,p)),c.length>s?zue(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:M7(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(O){if(gK(O))return O;throw kEt(Cxe(O)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(e1?"g":"y"),f=new u(e1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return HA(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=e1?0:h;var y,m=HA(f,e1?Iw(s,h):s);if(m===null||(y=IEt(A5(f.lastIndex+(e1?h:0)),s.length))===v)h=wK(s,h,d);else{if(t1(g,Iw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(t1(g,m[b]),g.length===p)return g;h=v=y}}return t1(g,Iw(s,v)),g}]}),!!ea((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"})),e1);var Pz=`
  804. \v\f\r                 \u2028\u2029\uFEFF`,$ue=Qr("".replace),hT="["+Pz+"]",MEt=RegExp("^"+hT+hT+"*"),PEt=RegExp(hT+hT+"*$"),NEt=function(e){return function(t){var n=Ki(rc(t));return 1&e&&(n=$ue(n,MEt,"")),2&e&&(n=$ue(n,PEt,"")),n}},REt={trim:NEt(3)},BEt=P7.PROPER,LEt=REt.trim;function AK(e){return Pt("<div>"+e+"</div>").children().filter((function(t){return t.tagName!=="BR"})).length===0}function i2(e){return e.length===0?"":e[0].outerHTML}function a2(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}Qa({target:"String",proto:!0,forced:ea((function(){return!!Pz.trim()||"​…᠎".trim()!=="​…᠎"||BEt&&Pz.trim.name!=="trim"}))},{trim:function(){return LEt(this)}}),Qa({global:!0},{globalThis:co}),zk&&(Pt.fn.css=zk),ec&&(Pt.fn.append=ec),_ae&&(Pt.fn.prepend=_ae),Qy&&(Pt.fn.addClass=Qy),Zy&&(Pt.fn.removeClass=Zy),Xy&&(Pt.fn.hasClass=Xy),Hd&&(Pt.fn.on=Hd),Sae&&(Pt.fn.off=Sae),g0&&(Pt.fn.focus=g0),Ju&&(Pt.fn.attr=Ju),Bk&&(Pt.fn.removeAttr=Bk),eb&&(Pt.fn.hide=eb),Uk&&(Pt.fn.show=Uk),Hk&&(Pt.fn.parents=Hk),Jy&&(Pt.fn.dataset=Jy),jd&&(Pt.fn.val=jd),jk&&(Pt.fn.text=jk),h0&&(Pt.fn.html=h0),rb&&(Pt.fn.children=rb),ob&&(Pt.fn.remove=ob),nb&&(Pt.fn.find=nb),Lk&&(Pt.fn.width=Lk),Fk&&(Pt.fn.height=Fk),kae&&(Pt.fn.filter=kae),ib&&(Pt.fn.empty=ib);var FEt={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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}}},Nz=function(e,t){return Nz=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])},Nz(e,t);/*! *****************************************************************************
  805. Copyright (c) Microsoft Corporation.
  806. Permission to use, copy, modify, and/or distribute this software for any
  807. purpose with or without fee is hereby granted.
  808. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  809. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  810. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  811. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  812. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  813. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  814. PERFORMANCE OF THIS SOFTWARE.
  815. ***************************************************************************** */};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}Nz(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 Wxe(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 jue(e){var t=Ko(Ze.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"||Yn.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ir.isText(o[0])&&(Xt.setNodes(e,{type:"paragraph"}),!0)}var UEt={renderElems:[WSt],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){jue(r)||t(o)},r.deleteForward=function(o){jue(r)||n(o)},r}},zEt=/"/g,$Et=Qr("".replace),D4=function(e,t,n,r){var o=Ki(rc(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+$Et(Ki(r),zEt,"&quot;")+'"'),i+">"+o+"</"+t+">"},I4=function(e){return ea((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function gN(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)}Qa({target:"String",proto:!0,forced:I4("bold")},{bold:function(){return D4(this,"b","","")}}),Qa({target:"String",proto:!0,forced:I4("italics")},{italics:function(){return D4(this,"i","","")}}),Qa({target:"String",proto:!0,forced:I4("sub")},{sub:function(){return D4(this,"sub","","")}}),Qa({target:"String",proto:!0,forced:I4("sup")},{sup:function(){return D4(this,"sup","","")}});var Hue={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},vN=lK("span").classList,Wue=vN&&vN.constructor&&vN.constructor.prototype,jEt=Wue===Object.prototype?void 0:Wue,Vxe=function(e,t){var n=[][e];return!!n&&ea((function(){n.call(null,t||function(){throw 1},1)}))},HEt=R7.forEach,mN=Vxe("forEach")?[].forEach:function(e){return HEt(this,e,arguments.length>1?arguments[1]:void 0)},qxe=function(e){if(e&&e.forEach!==mN)try{pb(e,"forEach",mN)}catch{e.forEach=mN}};for(var yN in Hue)Hue[yN]&&qxe(co[yN]&&co[yN].prototype);function Gxe(e,t){return e.selection==null||!!Ko(Ze.nodes(e,{match:function(n){return Et.getNodeType(n)==="pre"||!!Ze.isVoid(e,n)},universal:!0}),1)[0]}function WEt(e,t){Object.keys(t).forEach((function(n){n!=="text"&&Ze.removeMark(e,n)}))}qxe(jEt),Qa({target:"Object",stat:!0,forced:ea((function(){hy(1)}))},{keys:function(e){return hy(w5(e))}});var bm=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=Ze.marks(t);return r?r[n]:!!Ko(Ze.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 Gxe(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})(),VEt='<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>',qEt='<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>',GEt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',KEt='<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>',YEt='<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>',Kxe='<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>',Yxe='<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>',QEt='<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>',ZEt='<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>',XEt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',JEt='<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>',ekt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',tkt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',nkt='<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>',rkt='<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>',okt='<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>',ikt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',akt='<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>',skt='<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>',lkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Qn("textStyle.bold"),n.iconSvg=VEt,n.hotkey="mod+b",n}return Vi(t,e),t})(bm),ukt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Qn("textStyle.code"),n.iconSvg=YEt,n.hotkey="mod+e",n}return Vi(t,e),t})(bm),ckt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Qn("textStyle.italic"),n.iconSvg=GEt,n.hotkey="mod+i",n}return Vi(t,e),t})(bm),dkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Qn("textStyle.through"),n.iconSvg=KEt,n.hotkey="mod+shift+x",n}return Vi(t,e),t})(bm),fkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Qn("textStyle.underline"),n.iconSvg=qEt,n.hotkey="mod+u",n}return Vi(t,e),t})(bm),pkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Qn("textStyle.sub"),n.iconSvg=skt,n.hotkey="",n}return Vi(t,e),t})(bm),hkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Qn("textStyle.sup"),n.iconSvg=akt,n.hotkey="",n}return Vi(t,e),t})(bm),gkt=(function(){function e(){this.title=Qn("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 Gxe(t)},e.prototype.exec=function(t,n){var r,o,i=Ze.nodes(t,{match:function(l){return ir.isText(l)},universal:!0});try{for(var a=Wxe(i),s=a.next();!s.done;s=a.next())WEt(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})(),vkt={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 lkt}},{key:"underline",factory:function(){return new fkt}},{key:"italic",factory:function(){return new ckt}},{key:"through",factory:function(){return new dkt}},{key:"code",factory:function(){return new ukt}},{key:"sub",factory:function(){return new pkt}},{key:"sup",factory:function(){return new hkt}},{key:"clearStyle",factory:function(){return new gkt}}],styleToHtml:function(e,t){if(!ir.isText(e))return t;if(AK(t))return gN(e,t);var n=Pt(t);if(a2(n)==="br")return gN(e,"<br>");var r=n.html();return r=gN(e,r),n.html(r),i2(n)},parseStyleHtml:function(e,t,n){var r=Pt(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 x5(e){return function(t,n,r){return Xr("h"+e,null,n)}}var mkt={type:"header1",renderElem:x5(1)},ykt={type:"header2",renderElem:x5(2)},bkt={type:"header3",renderElem:x5(3)},wkt={type:"header4",renderElem:x5(4)},Akt={type:"header5",renderElem:x5(5)},Ckt=P7.PROPER,Rz=RegExp.prototype,Qxe=Rz.toString,xkt=Qr(Nxe),Skt=ea((function(){return Qxe.call({source:"a",flags:"b"})!="/a/b"})),Ekt=Ckt&&Qxe.name!="toString";(Skt||Ekt)&&zA(RegExp.prototype,"toString",(function(){var e=uu(this),t=Ki(e.source),n=e.flags;return"/"+t+"/"+Ki(n===void 0&&Axe(Rz,e)&&!("flags"in Rz)?xkt(e):n)}),{unsafe:!0});var bN,kkt=co.TypeError,Zxe=function(e){if($xe(e))throw kkt("The method doesn't accept regular expressions");return e},Tkt=wu("match"),Xxe=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Tkt]=!1,"/./"[e](t)}catch{}}return!1},_kt=uK.f,Vue=Qr("".startsWith),Dkt=Qr("".slice),Ikt=Math.min,que=Xxe("startsWith");function Jxe(e){var t=Ko(Ze.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 e6e(e){return e.selection==null||!Ko(Ze.nodes(e,{match:function(t){var n=Et.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function t6e(e,t){t&&Xt.setNodes(e,{type:t})}Qa({target:"String",proto:!0,forced:!(!que&&(bN=_kt(String.prototype,"startsWith"),bN&&!bN.writable)||que)},{startsWith:function(e){var t=Ki(rc(this));Zxe(e);var n=A5(Ikt(arguments.length>1?arguments[1]:void 0,t.length)),r=Ki(e);return Vue?Vue(t,r,n):Dkt(t,n,n+r.length)===r}});var Okt=(function(){function e(){this.title=Qn("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:Qn("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 Jxe(t)},e.prototype.isDisabled=function(t){return e6e(t)},e.prototype.exec=function(t,n){t6e(t,n.toString())},e})(),S5=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return Jxe(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return e6e(t)},e.prototype.exec=function(t,n){var r=this.type;t6e(t,n===r?"paragraph":r)},e})(),Mkt=(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})(S5),Pkt=(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})(S5),Nkt=(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})(S5),Rkt=(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})(S5),Bkt=(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})(S5),Lkt={key:"headerSelect",factory:function(){return new Okt}},Fkt={key:"header1",factory:function(){return new Mkt}},Ukt={key:"header2",factory:function(){return new Pkt}},zkt={key:"header3",factory:function(){return new Nkt}},$kt={key:"header4",factory:function(){return new Rkt}},jkt={key:"header5",factory:function(){return new Bkt}};function Ow(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Mw(e){return function(t,n,r){var o=Pt(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 Hkt={renderElems:[mkt,ykt,bkt,wkt,Akt],elemsToHtml:[{type:"header1",elemToHtml:Ow(1)},{type:"header2",elemToHtml:Ow(2)},{type:"header3",elemToHtml:Ow(3)},{type:"header4",elemToHtml:Ow(4)},{type:"header5",elemToHtml:Ow(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Mw(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Mw(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Mw(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Mw(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Mw(5)}],menus:[Lkt,Fkt,Ukt,zkt,$kt,jkt],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ko(Ze.nodes(n,{match:function(o){return Et.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&Et.isSelectionAtLineEnd(e,r[1])?Xt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},n1=Object.assign,Gue=Object.defineProperty,Wkt=Qr([].concat),Kue=!n1||ea((function(){if(jc&&n1({b:1},n1(Gue({},"a",{enumerable:!0,get:function(){Gue(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})),n1({},e)[n]!=7||hy(n1({},t)).join("")!=r}))?function(e,t){for(var n=w5(e),r=arguments.length,o=1,i=Ixe.f,a=bxe.f;r>o;)for(var s,l=O7(arguments[o++]),u=i?Wkt(hy(l),i(l)):hy(l),d=u.length,c=0;d>c;)s=u[c++],jc&&!xa(a,l,s)||(n[s]=l[s]);return n}:n1;function Kv(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Qa({target:"Object",stat:!0,forced:Object.assign!==Kue},{assign:Kue});var Vkt={selector:"font",preParseHtml:function(e){var t=Pt(e);if(a2(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},n6e=(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=Ze.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(Ze.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Ze.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=Pt('<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=Pt(d).attr("data-value");c==="0"?Ze.removeMark(t,n):Ze.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=Pt('<div class="color-block" data-value="'+u+'"></div>');d.css("background-color",u);var c=Pt('<li data-value="'+u+'"></li>');i===u&&c.addClass("active"),c.append(d),o.append(c)}));var s="";n==="color"&&(s=Qn("color.default")),n==="bgColor"&&(s=Qn("color.clear"));var l=Pt(`
  816. <li data-value="0" class="clear">
  817. <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>
  818. `+s+`
  819. </li>
  820. `);return o.prepend(l),o[0]},e})(),qkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("color.color"),n.iconSvg=QEt,n.mark="color",n}return Vi(t,e),t})(n6e),Gkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("color.bgColor"),n.iconSvg=ZEt,n.mark="bgColor",n}return Vi(t,e),t})(n6e),Yue=["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)"],Kkt={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Kv(i,{color:r}),o&&Kv(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?((AK(t)||a2(n=Pt(t))!=="span")&&(n=Pt("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),i2(n)):t},preParseHtml:[Vkt],parseStyleHtml:function(e,t,n){var r=Pt(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 qkt},config:{colors:Yue}},{key:"bgColor",factory:function(){return new Gkt},config:{colors:Yue}}]},Ykt=/^(?:\w+:)?\/\/(\S+)$/,Qkt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Zkt=/^[^\s\.]+\.\S{2,}$/,Xkt=_xe.includes;function B7(e){return e===void 0&&(e="r"),e+"-"+SCe()}function CK(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r6e(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 o6e(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 xK(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 wN(e,t){return{type:"link",url:CK(e),children:t?[{text:t}]:[]}}function i6e(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(),xK(e)?[2]:[4,r6e("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,o6e("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(pn.isCollapsed(o)?(e.insertText(" "),i=wN(r,t),Xt.insertNodes(e,i),e.insertFragment([{text:" "}])):Ze.string(e,o)!==t?(e.deleteFragment(),i=wN(r,t),Xt.insertNodes(e,i)):(i=wN(r),Xt.wrapNodes(e,i,{split:!0}),Xt.collapse(e,{edge:"end"}))),[2]}}))}))}Qa({target:"Array",proto:!0},{includes:function(e){return Xkt(this,e,arguments.length>1?arguments[1]:void 0)}}),zxe("includes");var Jkt={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)}},eTt={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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 AN(){return B7("w-e-insert-link")}var tTt=(function(){function e(){this.title=Qn("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=AN(),this.urlInputId=AN(),this.buttonId=AN()}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 xK(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(Qn("link.text"),o),2),l=s[0],u=Pt(s[1]),d=Ko(lu(Qn("link.url"),i),2),c=d[0],f=Pt(d[1]),p=Ko(t2(a,Qn("common.ok")),1)[0];if(this.$content==null){var v=Pt("<div></div>");v.on("click","#"+a,(function(y){y.preventDefault();var m=v.find("#"+o).val(),b=v.find("#"+i).val();i6e(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=Ze.string(t,n);u.val(g)}return f.val(""),setTimeout((function(){u.focus()})),h[0]},e})();function Que(){return B7("w-e-update-link")}var nTt=(function(){function e(){this.title=Qn("link.edit"),this.iconSvg=Kxe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Que(),this.buttonId=Que()}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(Qn("link.url"),n),2),i=o[0],a=Pt(o[1]),s=Ko(t2(r,Qn("common.ok")),1)[0];if(this.$content==null){var l=Pt("<div></div>");l.on("click","button",(function(c){c.preventDefault(),t.restoreSelection();var f=Et.getSelectedNodeByType(t,"link"),p=f?Yn.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,r6e("editLink",h,g,y)]:[2];case 1:return w.sent()?[4,o6e("editLink",h,y)]:[2];case 2:return m=w.sent(),b={url:CK(m)},Xt.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})(),rTt=(function(){function e(){this.title=Qn("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)||Xt.unwrapNodes(t,{match:function(r){return Et.checkNodeType(r,"link")}})},e})(),oTt=(function(){function e(){this.title=Qn("link.view"),this.iconSvg=Yxe,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})(),Zue={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},iTt={renderElems:[Jkt],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:[eTt],menus:[{key:"insertLink",factory:function(){return new tTt},config:Zue},{key:"editLink",factory:function(){return new nTt},config:Zue},{key:"unLink",factory:function(){return new rTt}},{key:"viewLink",factory:function(){return new oTt}}],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(Ykt);if(!d)return!1;var c=d[1];return!(!c||!Qkt.test(c)&&!Zkt.test(c))})(a)){if(!xK(o)){var s=o.selection;if(s!=null){var l=Ze.string(o,s);i6e(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]):Yn.string(s)===""?Xt.removeNodes(o,{at:l}):r([s,l])},o}},aTt=Qr(1 .valueOf),sTt=co.RangeError,lTt=co.RangeError,a6e=co.String,s6e=Math.floor,Bz=Qr((function(e){var t=Ki(rc(this)),n="",r=o2(e);if(r<0||r==1/0)throw sTt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Xue=Qr("".slice),Pw=Qr(1 .toFixed),j1=function(e,t,n){return t===0?n:t%2==1?j1(e,t-1,n*e):j1(e*e,t/2,n)},r1=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=s6e(o/1e7)},CN=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=s6e(r/t),r=r%t*1e7},Jue=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=a6e(e[t]);n=n===""?r:n+Bz("0",7-r.length)+r}return n};function ece(e,t){return"w-e-image-container-"+Et.findKey(e,t).id}Qa({target:"Number",proto:!0,forced:ea((function(){return Pw(8e-5,3)!=="0.000"||Pw(.9,0)!=="1"||Pw(1.255,2)!=="1.25"||Pw(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!ea((function(){Pw({})}))},{toFixed:function(e){var t,n,r,o,i=aTt(this),a=o2(e),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw lTt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return a6e(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*j1(2,69,1))-69)<0?i*j1(2,-t,1):i/j1(2,t,1),n*=4503599627370496,(t=52-t)>0){for(r1(s,0,n),r=a;r>=7;)r1(s,1e7,0),r-=7;for(r1(s,j1(10,r,1),0),r=t-1;r>=23;)CN(s,1<<23),r-=23;CN(s,1<<r),r1(s,1,1),CN(s,2),u=Jue(s)}else r1(s,0,n),r1(s,1<<-t,0),u=Jue(s)+Bz("0",a);return a>0?l+((o=u.length)<=a?"0."+Bz("0",a-o)+u:Xue(u,0,o-a)+"."+Xue(u,o-a)):l+u}});var uTt={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=Pt("body"),O=ece(b,w),I=S.width,P=S.height,M=0,_=0,R=0,N=!1,V=null;function L(Z){V=(function(){var W=Pt("#"+O);if(W.length===0)throw new Error("Cannot find image container elem");return W})(),M=Z;var z=V.find("img");if(z.length===0)throw new Error("Cannot find image elem");_=z.width(),R=z.height(),k.on("mousemove",j),k.on("mouseup",H);var U=Et.getHoverbar(b);U&&U.hideAndClean()}var j=jv((function(Z){Z.preventDefault();var z=Z.clientX,U=_+(N?M-z:z-M),W=R*(U/_);V!=null&&(U<=15||W<=15||(V.css("width",U+"px"),V.css("height",W+"px")))}),100);function H(Z){if(k.off("mousemove",j),V!=null){var z=V.width().toFixed(2),U=V.height().toFixed(2),W={style:y0(y0({},w.style),{width:z+"px",height:U+"px"})};Xt.setNodes(b,W,{at:Et.findPath(b,w)}),k.off("mouseup",H)}}var G={};return I&&(G.width=I),P&&(G.height=P),Xr("div",{id:O,style:G,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Z){var z=Pt(Z.target);z.hasClass("w-e-image-dragger")&&(Z.preventDefault(),(z.hasClass("left-top")||z.hasClass("left-bottom"))&&(N=!0),L(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,O=S.height,I={};return k&&(I.width=k),O&&(I.height=O),Xr("div",{id:ece(b,w),style:I,className:"w-e-image-container"},A)})(n,e,y,{width:f,height:v})}},cTt={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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 l6e(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 u6e(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,l6e("insertImage",e,t,n,r)];case 1:return s.sent()?[4,u6e("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:CK(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),Et.getSelectedNodeByType(e,"image")&&e.move(1),L7(e)||(Xt.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function L7(e){var t=e.selection;return t==null||!pn.isCollapsed(t)||!!Ko(Ze.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"||!!Ze.isVoid(e,n)},universal:!0}),1)[0]}function I6(){return B7("w-e-insert-image")}var dTt=(function(){function e(){this.title=Qn("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=I6(),this.altInputId=I6(),this.hrefInputId=I6(),this.buttonId=I6()}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 L7(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(Qn("image.src"),o),2),u=l[0],d=Pt(l[1]),c=Ko(lu(Qn("image.desc"),i),2),f=c[0],p=Pt(c[1]),v=Ko(lu(Qn("image.link"),a),2),h=v[0],g=Pt(v[1]),y=Ko(t2(s,Qn("common.ok")),1)[0];if(this.$content==null){var m=Pt("<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})(),fTt=(function(){function e(){this.title=Qn("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)||Xt.removeNodes(t,{match:function(r){return Et.checkNodeType(r,"image")}})},e})();function O6(){return B7("w-e-edit-image")}var pTt=(function(){function e(){this.title=Qn("image.edit"),this.iconSvg=Kxe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=O6(),this.altInputId=O6(),this.hrefInputId=O6(),this.buttonId=O6()}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(Qn("image.src"),o),2),d=u[0],c=Pt(u[1]),f=Ko(lu(Qn("image.desc"),i),2),p=f[0],v=Pt(f[1]),h=Ko(lu(Qn("image.link"),a),2),g=h[0],y=Pt(h[1]),m=Ko(t2(s,Qn("common.ok")),1)[0];if(this.$content==null){var b=Pt("<div></div>");b.on("click","#"+s,(function(M){M.preventDefault();var _=b.find("#"+o).val(),R=b.find("#"+i).val(),N=b.find("#"+a).val();n.updateImage(t,_,R,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,O=k===void 0?"":k,I=A.href,P=I===void 0?"":I;return c.val(S),v.val(O),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,l6e("editImage",a,s,l,u)];case 1:return y.sent()?[4,u6e("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)},Xt.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})(),hTt=(function(){function e(){this.title=Qn("image.viewLink"),this.iconSvg=Yxe,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})(),SK=(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:""})};Xt.setNodes(t,a,{match:function(s){return Et.checkNodeType(s,"image")}})}}},e})(),gTt=(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})(SK),vTt=(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})(SK),mTt=(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})(SK),tce={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},yTt={renderElems:[uTt],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:[cTt],menus:[{key:"insertImage",factory:function(){return new dTt},config:tce},{key:"deleteImage",factory:function(){return new fTt}},{key:"editImage",factory:function(){return new pTt},config:tce},{key:"viewImageLink",factory:function(){return new hTt}},{key:"imageWidth30",factory:function(){return new gTt}},{key:"imageWidth50",factory:function(){return new vTt}},{key:"imageWidth100",factory:function(){return new mTt}}],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}},bTt={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};Xt.setNodes(n,s,{at:a})}}})),Xr("span",null,t));return o}},wTt=(function(){function e(){this.title=Qn("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(Ze.isVoid(t,n)&&Ze.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);Xt.setNodes(t,{type:r?"paragraph":"todo"})},e})(),ATt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Pt(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}}},CTt={renderElems:[bTt],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=Pt(e).find("li"),n=Pt('<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:[ATt],menus:[{key:"todo",factory:function(){return new wTt}}],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&&Yn.string(i).length===0)return void Xt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},xTt={type:"blockquote",renderElem:function(e,t,n){return Xr("blockquote",null,t)}},STt={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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}}},ETt=(function(){function e(){this.title=Qn("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(Ze.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";Xt.setNodes(t,{type:r},{mode:"highest"})}},e})(),kTt={key:"blockquote",factory:function(){return new ETt}},TTt=Qr([].slice),_Tt=vK("slice"),DTt=wu("species"),xN=co.Array,ITt=Math.max;Qa({target:"Array",proto:!0,forced:!_Tt},{slice:function(e,t){var n,r,o,i=n2(this),a=N7(i),s=$A(e,a),l=$A(t===void 0?a:t,a);if(fT(i)&&(n=i.constructor,(gK(n)&&(n===xN||fT(n.prototype))||Ed(n)&&(n=n[DTt])===null)&&(n=void 0),n===xN||n===void 0))return TTt(i,s,l);for(r=new(n===void 0?xN:n)(ITt(l-s,0)),o=0;s<l;s++,o++)s in i&&jxe(r,o,i[s]);return r.length=o,r}});var OTt={renderElems:[xTt],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[STt],menus:[kTt],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(Ze.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=Ze.end(e,s);if(mo.equals(l,o.focus)){var u=Yn.string(a);if(u&&u.slice(-1)===`
  821. `)return e.deleteBackward("character"),void Xt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  822. `)},r}},MTt=(function(){function e(){this.title=Qn("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(Ze.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Ze.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=Pt('<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=Pt(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=Pt("<li>"+i+"</li>");r.append(a)})),r[0]},e})(),PTt={menus:[{key:"emotion",factory:function(){return new MTt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},NTt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},RTt={selector:"font",preParseHtml:function(e){var t=Pt(e);if(a2(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",NTt[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},BTt=Qr("".indexOf);Qa({target:"String",proto:!0,forced:!Xxe("includes")},{includes:function(e){return!!~BTt(Ki(rc(this)),Ki(Zxe(e)),arguments.length>1?arguments[1]:void 0)}});var Vp,N8,M6=function(e){return e&&e.Math==Math&&e},xo=M6(typeof globalThis=="object"&&globalThis)||M6(typeof window=="object"&&window)||M6(typeof self=="object"&&self)||M6(typeof uT=="object"&&uT)||(function(){return this})()||Function("return this")(),EK=Function.prototype,nce=EK.apply,LTt=EK.bind,rce=EK.call,c6e=typeof Reflect=="object"&&Reflect.apply||(LTt?rce.bind(nce):function(){return rce.apply(nce,arguments)}),d6e=Function.prototype,Lz=d6e.bind,Fz=d6e.call,FTt=Lz&&Lz.bind(Fz),ya=Lz?function(e){return e&&FTt(Fz,e)}:function(e){return e&&function(){return Fz.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})),Nw=Function.prototype.call,Pd=Nw.bind?Nw.bind(Nw):function(){return Nw.apply(Nw,arguments)},oce={}.propertyIsEnumerable,ice=Object.getOwnPropertyDescriptor,UTt=ice&&!oce.call({1:2},1)?function(e){var t=ice(this,e);return!!t&&t.enumerable}:oce,kK={f:UTt},Yv=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zTt=ya({}.toString),$Tt=ya("".slice),uv=function(e){return $Tt(zTt(e),8,-1)},SN=xo.Object,jTt=ya("".split),f6e=hu((function(){return!SN("z").propertyIsEnumerable(0)}))?function(e){return uv(e)=="String"?jTt(e,""):SN(e)}:SN,HTt=xo.TypeError,TK=function(e){if(e==null)throw HTt("Can't call method on "+e);return e},rf=function(e){return f6e(TK(e))},Cc=function(e){return typeof e=="object"?e!==null:Vs(e)},Iu={},ace=function(e){return Vs(e)?e:void 0},E5=function(e,t){return arguments.length<2?ace(Iu[e])||ace(xo[e]):Iu[e]&&Iu[e][t]||xo[e]&&xo[e][t]},p6e=ya({}.isPrototypeOf),EN=E5("navigator","userAgent")||"",sce=xo.process,lce=xo.Deno,uce=sce&&sce.versions||lce&&lce.version,cce=uce&&uce.v8;cce&&(N8=(Vp=cce.split("."))[0]>0&&Vp[0]<4?1:+(Vp[0]+Vp[1])),!N8&&EN&&(!(Vp=EN.match(/Edge\/(\d+)/))||Vp[1]>=74)&&(Vp=EN.match(/Chrome\/(\d+)/))&&(N8=+Vp[1]);var gT=N8,cd=!!Object.getOwnPropertySymbols&&!hu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gT&&gT<41})),_K=cd&&!Symbol.sham&&typeof Symbol.iterator=="symbol",WTt=xo.Object,gy=_K?function(e){return typeof e=="symbol"}:function(e){var t=E5("Symbol");return Vs(t)&&p6e(t.prototype,WTt(e))},VTt=xo.String,qTt=xo.TypeError,h6e=function(e){if(Vs(e))return e;throw qTt((function(t){try{return VTt(t)}catch{return"Object"}})(e)+" is not a function")},GTt=xo.TypeError,KTt=Object.defineProperty,Uh=xo["__core-js_shared__"]||(function(e,t){try{KTt(xo,e,{value:t,configurable:!0,writable:!0})}catch{xo[e]=t}return t})("__core-js_shared__",{}),wm=I7((function(e){(e.exports=function(t,n){return Uh[t]||(Uh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),YTt=xo.Object,k5=function(e){return YTt(TK(e))},QTt=ya({}.hasOwnProperty),Go=Object.hasOwn||function(e,t){return QTt(k5(e),t)},ZTt=0,XTt=Math.random(),JTt=ya(1 .toString),vT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+JTt(++ZTt+XTt,36)},Rw=wm("wks"),cv=xo.Symbol,dce=cv&&cv.for,e_t=_K?cv:cv&&cv.withoutSetter||vT,Au=function(e){if(!Go(Rw,e)||!cd&&typeof Rw[e]!="string"){var t="Symbol."+e;cd&&Go(cv,e)?Rw[e]=cv[e]:Rw[e]=_K&&dce?dce(t):e_t(t)}return Rw[e]},t_t=xo.TypeError,n_t=Au("toPrimitive"),s2=function(e){var t=(function(n,r){if(!Cc(n)||gy(n))return n;var o,i,a=(o=n[n_t])==null?void 0:h6e(o);if(a){if(i=Pd(a,n,r),!Cc(i)||gy(i))return i;throw t_t("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 GTt("Can't convert object to primitive value")})(n)})(e,"string");return gy(t)?t:t+""},Uz=xo.document,r_t=Cc(Uz)&&Cc(Uz.createElement),g6e=function(e){return r_t?Uz.createElement(e):{}},v6e=!Bl&&!hu((function(){return Object.defineProperty(g6e("div"),"a",{get:function(){return 7}}).a!=7})),fce=Object.getOwnPropertyDescriptor,DK={f:Bl?fce:function(e,t){if(e=rf(e),t=s2(t),v6e)try{return fce(e,t)}catch{}if(Go(e,t))return Yv(!Pd(kK.f,e,t),e[t])}},o_t=/#|\.prototype\./,T5=function(e,t){var n=a_t[i_t(e)];return n==l_t||n!=s_t&&(Vs(t)?hu(t):!!t)},i_t=T5.normalize=function(e){return String(e).replace(o_t,".").toLowerCase()},a_t=T5.data={},s_t=T5.NATIVE="N",l_t=T5.POLYFILL="P",u_t=T5,pce=ya(ya.bind),m6e=function(e,t){return h6e(e),t===void 0?e:pce?pce(e,t):function(){return e.apply(t,arguments)}},c_t=xo.String,d_t=xo.TypeError,Qv=function(e){if(Cc(e))return e;throw d_t(c_t(e)+" is not an object")},f_t=xo.TypeError,hce=Object.defineProperty,Am={f:Bl?hce:function(e,t,n){if(Qv(e),t=s2(t),Qv(n),v6e)try{return hce(e,t,n)}catch{}if("get"in n||"set"in n)throw f_t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hd=Bl?function(e,t,n){return Am.f(e,t,Yv(1,n))}:function(e,t,n){return e[t]=n,e},p_t=DK.f,h_t=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 c6e(e,this,arguments)};return t.prototype=e.prototype,t},lh=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=!u_t(c?o:d+(f?".":"#")+o,e.forced)&&v&&Go(v,o),a=h[o],n&&(s=e.noTargetGet?(u=p_t(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?m6e(i,xo):e.wrap&&n?h_t(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)))},mT=Array.isArray||function(e){return uv(e)=="Array"},g_t=Math.ceil,v_t=Math.floor,IK=function(e){var t=+e;return t!=t||t===0?0:(t>0?v_t:g_t)(t)},m_t=Math.min,F7=function(e){return(t=e.length)>0?m_t(IK(t),9007199254740991):0;var t},zz=function(e,t,n){var r=s2(t);r in e?Am.f(e,r,Yv(0,n)):e[r]=n},y6e={};y6e[Au("toStringTag")]="z";var OK=String(y6e)==="[object z]",y_t=Au("toStringTag"),b_t=xo.Object,w_t=uv((function(){return arguments})())=="Arguments",U7=OK?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=b_t(e),y_t))=="string"?n:w_t?uv(t):(r=uv(t))=="Object"&&Vs(t.callee)?"Arguments":r},A_t=ya(Function.toString);Vs(Uh.inspectSource)||(Uh.inspectSource=function(e){return A_t(e)});var b6e=Uh.inspectSource,w6e=function(){},C_t=[],A6e=E5("Reflect","construct"),MK=/^\s*(?:class|function)\b/,x_t=ya(MK.exec),S_t=!MK.exec(w6e),Bw=function(e){if(!Vs(e))return!1;try{return A6e(w6e,C_t,e),!0}catch{return!1}},E_t=!A6e||hu((function(){var e;return Bw(Bw.call)||!Bw(Object)||!Bw((function(){e=!0}))||e}))?function(e){if(!Vs(e))return!1;switch(U7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return S_t||!!x_t(MK,b6e(e))}:Bw,k_t=Au("species"),gce=xo.Array,C6e=function(e,t){return new((function(n){var r;return mT(n)&&(r=n.constructor,(E_t(r)&&(r===gce||mT(r.prototype))||Cc(r)&&(r=r[k_t])===null)&&(r=void 0)),r===void 0?gce:r})(e))(t===0?0:t)},T_t=Au("species"),x6e=Au("isConcatSpreadable"),vce=xo.TypeError,__t=gT>=51||!hu((function(){var e=[];return e[x6e]=!1,e.concat()[0]!==e})),D_t=gT>=51||!hu((function(){var e=[];return(e.constructor={})[T_t]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),I_t=function(e){if(!Cc(e))return!1;var t=e[x6e];return t!==void 0?!!t:mT(e)};lh({target:"Array",proto:!0,forced:!__t||!D_t},{concat:function(e){var t,n,r,o,i,a=k5(this),s=C6e(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(I_t(i=t===-1?a:arguments[t])){if(l+(o=F7(i))>9007199254740991)throw vce("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&zz(s,l,i[n])}else{if(l>=9007199254740991)throw vce("Maximum allowed index exceeded");zz(s,l++,i)}return s.length=l,s}});var P6,O_t=xo.String,yT=function(e){if(U7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return O_t(e)},M_t=Math.max,P_t=Math.min,$z=function(e,t){var n=IK(e);return n<0?M_t(n+t,0):P_t(n,t)},N_t=function(e){return function(t,n,r){var o,i=rf(t),a=F7(i),s=$z(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}},R_t={indexOf:N_t(!1)},_5={},B_t=R_t.indexOf,mce=ya([].push),S6e=function(e,t){var n,r=rf(e),o=0,i=[];for(n in r)!Go(_5,n)&&Go(r,n)&&mce(i,n);for(;t.length>o;)Go(r,n=t[o++])&&(~B_t(i,n)||mce(i,n));return i},bT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PK=Object.keys||function(e){return S6e(e,bT)},L_t=Bl?Object.defineProperties:function(e,t){Qv(e);for(var n,r=rf(t),o=PK(t),i=o.length,a=0;i>a;)Am.f(e,n=o[a++],r[n]);return e},F_t=E5("document","documentElement"),yce=wm("keys"),z7=function(e){return yce[e]||(yce[e]=vT(e))},E6e=z7("IE_PROTO"),kN=function(){},k6e=function(e){return"<script>"+e+"<\/script>"},bce=function(e){e.write(k6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},R8=function(){try{P6=new ActiveXObject("htmlfile")}catch{}var e,t;R8=typeof document<"u"?document.domain&&P6?bce(P6):((t=g6e("iframe")).style.display="none",F_t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(k6e("document.F=Object")),e.close(),e.F):bce(P6);for(var n=bT.length;n--;)delete R8.prototype[bT[n]];return R8()};_5[E6e]=!0;var wT,h3,AT,Zv=Object.create||function(e,t){var n;return e!==null?(kN.prototype=Qv(e),n=new kN,kN.prototype=null,n[E6e]=e):n=R8(),t===void 0?n:L_t(n,t)},U_t=bT.concat("length","prototype"),T6e={f:Object.getOwnPropertyNames||function(e){return S6e(e,U_t)}},z_t=xo.Array,$_t=Math.max,wce=T6e.f,Ace=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_6e={f:function(e){return Ace&&uv(e)=="Window"?(function(t){try{return wce(t)}catch{return(function(r,o,i){for(var a=F7(r),s=$z(void 0,a),l=$z(a,a),u=z_t($_t(l-s,0)),d=0;s<l;s++,d++)zz(u,d,r[s]);return u.length=d,u})(Ace)}})(e):wce(rf(e))}},TN={f:Object.getOwnPropertySymbols},j_t=ya([].slice),CT=function(e,t,n,r){hd(e,t,n)},NK={f:Au},H_t=Am.f,Ca=function(e){var t=Iu.Symbol||(Iu.Symbol={});Go(t,e)||H_t(t,e,{value:NK.f(e)})},W_t=OK?{}.toString:function(){return"[object "+U7(this)+"]"},V_t=Am.f,Cce=Au("toStringTag"),xT=function(e,t,n,r){if(e){var o=n?e:e.prototype;Go(o,Cce)||V_t(o,Cce,{configurable:!0,value:t}),r&&!OK&&hd(o,"toString",W_t)}},xce=xo.WeakMap,q_t=Vs(xce)&&/native code/.test(b6e(xce)),jz=xo.TypeError,G_t=xo.WeakMap;if(q_t||Uh.state){var og=Uh.state||(Uh.state=new G_t),K_t=ya(og.get),Sce=ya(og.has),Y_t=ya(og.set);wT=function(e,t){if(Sce(og,e))throw new jz("Object already initialized");return t.facade=e,Y_t(og,e,t),t},h3=function(e){return K_t(og,e)||{}},AT=function(e){return Sce(og,e)}}else{var o1=z7("state");_5[o1]=!0,wT=function(e,t){if(Go(e,o1))throw new jz("Object already initialized");return t.facade=e,hd(e,o1,t),t},h3=function(e){return Go(e,o1)?e[o1]:{}},AT=function(e){return Go(e,o1)}}var l2={set:wT,get:h3,has:AT,enforce:function(e){return AT(e)?h3(e):wT(e,{})},getterFor:function(e){return function(t){var n;if(!Cc(t)||(n=h3(t)).type!==e)throw jz("Incompatible receiver, "+e+" required");return n}}},Ece=ya([].push),qp=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=f6e(v),g=m6e(u,d),y=F7(h),m=0,b=c||C6e,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:Ece(w,f)}else switch(e){case 4:return!1;case 7:Ece(w,f)}return i?-1:r||o?o:w}},$7=[qp(0),qp(1),qp(2),qp(3),qp(4),qp(5),qp(6),qp(7)][0],xl=z7("hidden"),kce=Au("toPrimitive"),Q_t=l2.set,Tce=l2.getterFor("Symbol"),xc=Object.prototype,ph=xo.Symbol,Sh=ph&&ph.prototype,_ce=xo.TypeError,_N=xo.QObject,Lw=E5("JSON","stringify"),D6e=DK.f,hh=Am.f,I6e=_6e.f,Z_t=kK.f,O6e=ya([].push),up=wm("symbols"),D5=wm("op-symbols"),DN=wm("string-to-symbol-registry"),IN=wm("symbol-to-string-registry"),X_t=wm("wks"),ON=!_N||!_N.prototype||!_N.prototype.findChild,Hz=Bl&&hu((function(){return Zv(hh({},"a",{get:function(){return hh(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=D6e(xc,t);r&&delete xc[t],hh(e,t,n),r&&e!==xc&&hh(xc,t,r)}:hh,MN=function(e,t){var n=up[e]=Zv(Sh);return Q_t(n,{type:"Symbol",tag:e,description:t}),Bl||(n.description=t),n},ST=function(e,t,n){e===xc&&ST(D5,t,n),Qv(e);var r=s2(t);return Qv(n),Go(up,r)?(n.enumerable?(Go(e,xl)&&e[xl][r]&&(e[xl][r]=!1),n=Zv(n,{enumerable:Yv(0,!1)})):(Go(e,xl)||hh(e,xl,Yv(1,{})),e[xl][r]=!0),Hz(e,r,n)):hh(e,r,n)},Dce=function(e,t){Qv(e);var n=rf(t),r=PK(n).concat(Wz(n));return $7(r,(function(o){Bl&&!Pd(M6e,n,o)||ST(e,o,n[o])})),e},M6e=function(e){var t=s2(e),n=Pd(Z_t,this,t);return!(this===xc&&Go(up,t)&&!Go(D5,t))&&(!(n||!Go(this,t)||!Go(up,t)||Go(this,xl)&&this[xl][t])||n)},Ice=function(e,t){var n=rf(e),r=s2(t);if(n!==xc||!Go(up,r)||Go(D5,r)){var o=D6e(n,r);return!o||!Go(up,r)||Go(n,xl)&&n[xl][r]||(o.enumerable=!0),o}},Oce=function(e){var t=I6e(rf(e)),n=[];return $7(t,(function(r){Go(up,r)||Go(_5,r)||O6e(n,r)})),n},Wz=function(e){var t=e===xc,n=I6e(t?D5:rf(e)),r=[];return $7(n,(function(o){!Go(up,o)||t&&!Go(xc,o)||O6e(r,up[o])})),r};if(cd||(Sh=(ph=function(){if(p6e(Sh,this))throw _ce("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?yT(arguments[0]):void 0,t=vT(e),n=function(r){this===xc&&Pd(n,D5,r),Go(this,xl)&&Go(this[xl],t)&&(this[xl][t]=!1),Hz(this,t,Yv(1,r))};return Bl&&ON&&Hz(xc,t,{configurable:!0,set:n}),MN(t,e)}).prototype,CT(Sh,"toString",(function(){return Tce(this).tag})),CT(ph,"withoutSetter",(function(e){return MN(vT(e),e)})),kK.f=M6e,Am.f=ST,DK.f=Ice,T6e.f=_6e.f=Oce,TN.f=Wz,NK.f=function(e){return MN(Au(e),e)},Bl&&hh(Sh,"description",{configurable:!0,get:function(){return Tce(this).description}})),lh({global:!0,wrap:!0,forced:!cd,sham:!cd},{Symbol:ph}),$7(PK(X_t),(function(e){Ca(e)})),lh({target:"Symbol",stat:!0,forced:!cd},{for:function(e){var t=yT(e);if(Go(DN,t))return DN[t];var n=ph(t);return DN[t]=n,IN[n]=t,n},keyFor:function(e){if(!gy(e))throw _ce(e+" is not a symbol");if(Go(IN,e))return IN[e]},useSetter:function(){ON=!0},useSimple:function(){ON=!1}}),lh({target:"Object",stat:!0,forced:!cd,sham:!Bl},{create:function(e,t){return t===void 0?Zv(e):Dce(Zv(e),t)},defineProperty:ST,defineProperties:Dce,getOwnPropertyDescriptor:Ice}),lh({target:"Object",stat:!0,forced:!cd},{getOwnPropertyNames:Oce,getOwnPropertySymbols:Wz}),lh({target:"Object",stat:!0,forced:hu((function(){TN.f(1)}))},{getOwnPropertySymbols:function(e){return TN.f(k5(e))}}),Lw){var J_t=!cd||hu((function(){var e=ph();return Lw([e])!="[null]"||Lw({a:e})!="{}"||Lw(Object(e))!="{}"}));lh({target:"JSON",stat:!0,forced:J_t},{stringify:function(e,t,n){var r=j_t(arguments),o=t;if((Cc(t)||e!==void 0)&&!gy(e))return mT(t)||(t=function(i,a){if(Vs(o)&&(a=Pd(o,this,i,a)),!gy(a))return a}),r[1]=t,c6e(Lw,null,r)}})}if(!Sh[kce]){var eDt=Sh.valueOf;CT(Sh,kce,(function(e){return Pd(eDt,this)}))}xT(ph,"Symbol"),_5[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"),xT(xo.JSON,"JSON",!0);var Eh,Mce,Pce,tDt=Iu.Symbol,dv={},P6e=Function.prototype,nDt=Bl&&Object.getOwnPropertyDescriptor,Nce=Go(P6e,"name"),rDt={PROPER:Nce&&(function(){}).name==="something",CONFIGURABLE:Nce&&(!Bl||Bl&&nDt(P6e,"name").configurable)},oDt=!hu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Rce=z7("IE_PROTO"),Vz=xo.Object,iDt=Vz.prototype,qz=oDt?Vz.getPrototypeOf:function(e){var t=k5(e);if(Go(t,Rce))return t[Rce];var n=t.constructor;return Vs(n)&&t instanceof n?n.prototype:t instanceof Vz?iDt:null},Gz=Au("iterator"),N6e=!1;[].keys&&("next"in(Pce=[].keys())?(Mce=qz(qz(Pce)))!==Object.prototype&&(Eh=Mce):N6e=!0);var aDt=Eh==null||hu((function(){var e={};return Eh[Gz].call(e)!==e}));Eh=aDt?{}:Zv(Eh),Vs(Eh[Gz])||CT(Eh,Gz,(function(){return this}));var R6e={IteratorPrototype:Eh,BUGGY_SAFARI_ITERATORS:N6e},sDt=R6e.IteratorPrototype,lDt=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 uDt=rDt.PROPER,PN=R6e.BUGGY_SAFARI_ITERATORS,cDt=Au("iterator"),dDt=function(){return this},B6e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=Zv(sDt,{next:Yv(1,m)}),xT(g,w,!1,!0),dv[w]=lDt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!PN&&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[cDt]||f["@@iterator"]||o&&f[o],v=!PN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=qz(h.call(new e)))!==Object.prototype&&s.next&&(xT(s,d,!0,!0),dv[d]=dDt),uDt&&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||lh({target:t,proto:!0,forced:PN||c},l)),dv[t]=v,l},fDt=l2.set,pDt=l2.getterFor("Array Iterator");B6e(Array,"Array",(function(e,t){fDt(this,{type:"Array Iterator",target:rf(e),index:0,kind:t})}),(function(){var e=pDt(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 Bce=Au("toStringTag");for(var NN 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 Lce=xo[NN],RN=Lce&&Lce.prototype;RN&&U7(RN)!==Bce&&hd(RN,Bce,NN),dv[NN]=dv.Array}var hDt=tDt;Ca("asyncDispose"),Ca("dispose"),Ca("matcher"),Ca("metadata"),Ca("observable"),Ca("patternMatch"),Ca("replaceAll");var N6=hDt,gDt=ya("".charAt),Fce=ya("".charCodeAt),vDt=ya("".slice),mDt=function(e){return function(t,n){var r,o,i=yT(TK(t)),a=IK(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Fce(i,a))<55296||r>56319||a+1===s||(o=Fce(i,a+1))<56320||o>57343?e?gDt(i,a):r:e?vDt(i,a,a+2):o-56320+(r-55296<<10)+65536}},yDt=mDt(!0),bDt=l2.set,wDt=l2.getterFor("String Iterator");B6e(String,"String",(function(e){bDt(this,{type:"String Iterator",string:yT(e),index:0})}),(function(){var e,t=wDt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=yDt(n,r),t.index+=e.length,{value:e,done:!1})}));var ADt=NK.f("iterator"),CDt=I7((function(e){function t(n){return typeof N6=="function"&&typeof ADt=="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 N6=="function"&&r.constructor===N6&&r!==N6.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})),L6e=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(CDt),xDt=P7.EXISTS,SDt=r2.f,F6e=Function.prototype,EDt=Qr(F6e.toString),U6e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,kDt=Qr(U6e.exec);jc&&!xDt&&SDt(F6e,"name",{configurable:!0,get:function(){try{return kDt(U6e,EDt(this))[1]}catch{return""}}});var z6e=(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=Ze.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ko(Ze.nodes(t,{match:function(n){return Et.getNodeType(n)==="pre"||!!Ze.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=Qn("fontSize.title"),n.iconSvg=XEt,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:Qn("fontSize.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s});else if(L6e(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})(z6e),_Dt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("fontFamily.title"),n.iconSvg=JEt,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:Qn("fontFamily.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(L6e(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})(z6e),DDt={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Kv(i,{fontSize:r}),o&&Kv(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?((AK(t)||a2(n=Pt(t))!=="span")&&(n=Pt("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),i2(n)):t},preParseHtml:[RTt],parseStyleHtml:function(e,t,n){var r=Pt(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 _Dt},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},IDt={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Pt(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]}},$6e=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ko(Ze.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(Ze.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})(),ODt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("indent.decrease"),n.iconSvg=ekt,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){Xt.setNodes(n,{indent:null},{match:function(o){return kr.isElement(o)}})},t})($6e),MDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("indent.increase"),n.iconSvg=tkt,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){Xt.setNodes(n,{indent:"2em"},{match:function(o){return kr.isElement(o)},mode:"highest"})},t})($6e),PDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.indent,r=t;return n&&Kv(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Pt(t);return r.css("text-indent",n),i2(r)},preParseHtml:[IDt],parseStyleHtml:function(e,t,n){var r=Pt(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 MDt}},{key:"delIndent",factory:function(){return new ODt}}]},j7=(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(Ze.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(Ze.isVoid(t,n)&&Ze.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0}))},e})(),NDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("justify.left"),n.iconSvg=nkt,n}return Vi(t,e),t.prototype.exec=function(n,r){Xt.setNodes(n,{textAlign:"left"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(j7),RDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("justify.right"),n.iconSvg=rkt,n}return Vi(t,e),t.prototype.exec=function(n,r){Xt.setNodes(n,{textAlign:"right"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(j7),BDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("justify.center"),n.iconSvg=okt,n}return Vi(t,e),t.prototype.exec=function(n,r){Xt.setNodes(n,{textAlign:"center"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(j7),LDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Qn("justify.justify"),n.iconSvg=ikt,n}return Vi(t,e),t.prototype.exec=function(n,r){Xt.setNodes(n,{textAlign:"justify"},{match:function(o){return kr.isElement(o)&&!n.isInline(o)}})},t})(j7),FDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.textAlign,r=t;return n&&Kv(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Pt(t);return r.css("text-align",n),i2(r)},parseStyleHtml:function(e,t,n){var r=Pt(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 NDt}},{key:"justifyRight",factory:function(){return new RDt}},{key:"justifyCenter",factory:function(){return new BDt}},{key:"justifyJustify",factory:function(){return new LDt}}]},UDt=(function(){function e(){this.title=Qn("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:Qn("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(Ze.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){Xt.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e})(),zDt={renderStyle:function(e,t){if(!kr.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Kv(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!kr.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Pt(t);return r.css("line-height",n),i2(r)},parseStyleHtml:function(e,t,n){var r=Pt(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 UDt},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},$Dt=(function(){function e(){this.title=Qn("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})(),jDt=(function(){function e(){this.title=Qn("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})(),HDt={menus:[{key:"redo",factory:function(){return new $Dt}},{key:"undo",factory:function(){return new jDt}}]},WDt={type:"divider",renderElem:function(e,t,n){return ab("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Et.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[ab("hr")])}},VDt=(function(){function e(){this.title=Qn("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){Xt.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),qDt={renderElems:[WDt],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 VDt}}],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)&&Xt.insertNodes(r,Et.genEmptyParagraph(),{at:[s[0]+1]})},r}},GDt=R7.map;Qa({target:"Array",proto:!0,forced:!vK("map")},{map:function(e){return GDt(this,e,arguments.length>1?arguments[1]:void 0)}});var KDt=Qr([].join),YDt=O7!=Object,QDt=Vxe("join",",");Qa({target:"Array",proto:!0,forced:YDt||!QDt},{join:function(e){return KDt(n2(this),e===void 0?",":e)}});var ZDt=(function(){function e(){this.title=Qn("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=Yn.string(n);Xt.removeNodes(t,{mode:"highest"});var o=r.split(`
  823. `).map((function(i){return{type:"paragraph",children:[{text:i}]}}));Xt.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=Ze.nodes(t,{match:function(c){return t.children.includes(c)},universal:!0});try{for(var s=Wxe(a),l=s.next();!l.done;l=s.next()){var u=Ko(l.value,1)[0];u&&i.push(Yn.string(u))}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Xt.removeNodes(t,{mode:"highest"});var d={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
  824. `)}]}]};Xt.insertNodes(t,d,{mode:"highest"})},e})(),XDt={key:"codeBlock",factory:function(){return new ZDt}};Qa({target:"String",proto:!0,forced:I4("anchor")},{anchor:function(e){return D4(this,"a","name",e)}}),bK("match",(function(e,t,n){return[function(r){var o=rc(this),i=r==null?void 0:M7(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 HA(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=HA(o,i))!==null;){var c=Ki(l[0]);u[d]=c,c===""&&(o.lastIndex=wK(i,A5(o.lastIndex),s)),d++}return d===0?null:u}]}));var JDt={type:"pre",renderElem:function(e,t,n){return Xr("pre",null,t)}},e7t={type:"code",renderElem:function(e,t,n){return Xr("code",null,t)}},t7t={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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"}))}}},n7t={menus:[XDt],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=Yn.string(u),p=c.anchor.offset,v=f.slice(0,p).split(`
  825. `),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(`
  826. `+l)}}o.insertText(`
  827. `)}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&&Xt.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(Et.isLastNode(o,s)&&Xt.insertNodes(o,Et.genEmptyParagraph(),{at:[l[0]+1]}),Et.getNodeType(s.children[0])!=="code"&&(Xt.unwrapNodes(o),Xt.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");Ze.insertText(o,a)}else r(i)},o},renderElems:[JDt,e7t],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=Pt(e);if(a2(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:Pt(e)[0].textContent||""}]}}},t7t]},r7t=(function(){function e(){this.title=Qn("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})(),o7t={menus:[{key:"fullScreen",factory:function(){return new r7t}}]},i7t=(function(){function e(){this.title=Qn("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]];Xt.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(Ze.start(t,o))}},e})(),a7t=[vkt,Kkt,DDt,PDt,FDt,zDt,yTt,qDt,PTt,iTt,n7t,OTt,Hkt,UEt,CTt,HDt,o7t,{menus:[{key:"enter",factory:function(){return new i7t}}]}];$l("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),$l("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Uce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RK(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gp,B8,R6=function(e){return e&&e.Math==Math&&e},Jr=R6(typeof globalThis=="object"&&globalThis)||R6(typeof window=="object"&&window)||R6(typeof self=="object"&&self)||R6(typeof Uce=="object"&&Uce)||(function(){return this})()||Function("return this")(),j6e=Function.prototype,Kz=j6e.bind,Yz=j6e.call,s7t=Kz&&Kz.bind(Yz),To=Kz?function(e){return e&&s7t(Yz,e)}:function(e){return e&&function(){return Yz.apply(e,arguments)}},da=function(e){try{return!!e()}catch{return!0}},l7t=To({}.toString),u7t=To("".slice),jf=function(e){return u7t(l7t(e),8,-1)},BN=Jr.Object,c7t=To("".split),H6e=da((function(){return!BN("z").propertyIsEnumerable(0)}))?function(e){return jf(e)=="String"?c7t(e,""):BN(e)}:BN,d7t=Jr.TypeError,H7=function(e){if(e==null)throw d7t("Can't call method on "+e);return e},u2=function(e){return H6e(H7(e))},f7t=Object.defineProperty,BK=function(e,t){try{f7t(Jr,e,{value:t,configurable:!0,writable:!0})}catch{Jr[e]=t}return t},zh=Jr["__core-js_shared__"]||BK("__core-js_shared__",{}),LK=RK((function(e){(e.exports=function(t,n){return zh[t]||(zh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),p7t=Jr.Object,I5=function(e){return p7t(H7(e))},h7t=To({}.hasOwnProperty),Xa=Object.hasOwn||function(e,t){return h7t(I5(e),t)},g7t=0,v7t=Math.random(),m7t=To(1 .toString),FK=function(e){return"Symbol("+(e===void 0?"":e)+")_"+m7t(++g7t+v7t,36)},wa=function(e){return typeof e=="function"},y7t=function(e){return wa(e)?e:void 0},O5=function(e,t){return arguments.length<2?y7t(Jr[e]):Jr[e]&&Jr[e][t]},LN=O5("navigator","userAgent")||"",zce=Jr.process,$ce=Jr.Deno,jce=zce&&zce.versions||$ce&&$ce.version,Hce=jce&&jce.v8;Hce&&(B8=(Gp=Hce.split("."))[0]>0&&Gp[0]<4?1:+(Gp[0]+Gp[1])),!B8&&LN&&(!(Gp=LN.match(/Edge\/(\d+)/))||Gp[1]>=74)&&(Gp=LN.match(/Chrome\/(\d+)/))&&(B8=+Gp[1]);var B6,Qz=B8,Zz=!!Object.getOwnPropertySymbols&&!da((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qz&&Qz<41})),UK=Zz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Fw=LK("wks"),fv=Jr.Symbol,Wce=fv&&fv.for,b7t=UK?fv:fv&&fv.withoutSetter||FK,Ts=function(e){if(!Xa(Fw,e)||!Zz&&typeof Fw[e]!="string"){var t="Symbol."+e;Zz&&Xa(fv,e)?Fw[e]=fv[e]:Fw[e]=UK&&Wce?Wce(t):b7t(t)}return Fw[e]},va=function(e){return typeof e=="object"?e!==null:wa(e)},w7t=Jr.String,A7t=Jr.TypeError,jl=function(e){if(va(e))return e;throw A7t(w7t(e)+" is not an object")},b0=!da((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Xz=Jr.document,C7t=va(Xz)&&va(Xz.createElement),zK=function(e){return C7t?Xz.createElement(e):{}},W6e=!b0&&!da((function(){return Object.defineProperty(zK("div"),"a",{get:function(){return 7}}).a!=7})),Uw=Function.prototype.call,us=Uw.bind?Uw.bind(Uw):function(){return Uw.apply(Uw,arguments)},ET=To({}.isPrototypeOf),x7t=Jr.Object,FN=UK?function(e){return typeof e=="symbol"}:function(e){var t=O5("Symbol");return wa(t)&&ET(t.prototype,x7t(e))},S7t=Jr.String,Jz=function(e){try{return S7t(e)}catch{return"Object"}},E7t=Jr.TypeError,$K=function(e){if(wa(e))return e;throw E7t(Jz(e)+" is not a function")},WA=function(e,t){var n=e[t];return n==null?void 0:$K(n)},k7t=Jr.TypeError,T7t=Jr.TypeError,_7t=Ts("toPrimitive"),jK=function(e){var t=(function(n,r){if(!va(n)||FN(n))return n;var o,i=WA(n,_7t);if(i){if(o=us(i,n,r),!va(o)||FN(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=us(l,a))||wa(l=a.valueOf)&&!va(u=us(l,a)))return u;throw k7t("Can't convert object to primitive value")})(n)})(e,"string");return FN(t)?t:t+""},D7t=Jr.TypeError,Vce=Object.defineProperty,Cm={f:b0?Vce:function(e,t,n){if(jl(e),t=jK(t),jl(n),W6e)try{return Vce(e,t,n)}catch{}if("get"in n||"set"in n)throw D7t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},I7t=Math.ceil,O7t=Math.floor,M5=function(e){var t=+e;return t!=t||t===0?0:(t>0?O7t:I7t)(t)},M7t=Math.max,P7t=Math.min,e$=function(e,t){var n=M5(e);return n<0?M7t(n+t,0):P7t(n,t)},N7t=Math.min,V6e=function(e){return e>0?N7t(M5(e),9007199254740991):0},c2=function(e){return V6e(e.length)},qce=function(e){return function(t,n,r){var o,i=u2(t),a=c2(i),s=e$(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}},q6e={includes:qce(!0),indexOf:qce(!1)},W7={},R7t=q6e.indexOf,Gce=To([].push),G6e=function(e,t){var n,r=u2(e),o=0,i=[];for(n in r)!Xa(W7,n)&&Xa(r,n)&&Gce(i,n);for(;t.length>o;)Xa(r,n=t[o++])&&(~R7t(i,n)||Gce(i,n));return i},kT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B7t=Object.keys||function(e){return G6e(e,kT)},L7t=b0?Object.defineProperties:function(e,t){jl(e);for(var n,r=u2(t),o=B7t(t),i=o.length,a=0;i>a;)Cm.f(e,n=o[a++],r[n]);return e},F7t=O5("document","documentElement"),Kce=LK("keys"),HK=function(e){return Kce[e]||(Kce[e]=FK(e))},K6e=HK("IE_PROTO"),UN=function(){},Y6e=function(e){return"<script>"+e+"<\/script>"},Yce=function(e){e.write(Y6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},L8=function(){try{B6=new ActiveXObject("htmlfile")}catch{}var e,t;L8=typeof document<"u"?document.domain&&B6?Yce(B6):((t=zK("iframe")).style.display="none",F7t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Y6e("document.F=Object")),e.close(),e.F):Yce(B6);for(var n=kT.length;n--;)delete L8.prototype[kT[n]];return L8()};W7[K6e]=!0;var WK=Object.create||function(e,t){var n;return e!==null?(UN.prototype=jl(e),n=new UN,UN.prototype=null,n[K6e]=e):n=L8(),t===void 0?n:L7t(n,t)},t$=Ts("unscopables"),n$=Array.prototype;n$[t$]==null&&Cm.f(n$,t$,{configurable:!0,value:WK(null)});var g3=function(e){n$[t$][e]=!0},hb={},U7t=To(Function.toString);wa(zh.inspectSource)||(zh.inspectSource=function(e){return U7t(e)});var TT,v3,_T,VK=zh.inspectSource,Qce=Jr.WeakMap,Q6e=wa(Qce)&&/native code/.test(VK(Qce)),V7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$h=b0?function(e,t,n){return Cm.f(e,t,V7(1,n))}:function(e,t,n){return e[t]=n,e},r$=Jr.TypeError,z7t=Jr.WeakMap;if(Q6e||zh.state){var ig=zh.state||(zh.state=new z7t),$7t=To(ig.get),Zce=To(ig.has),j7t=To(ig.set);TT=function(e,t){if(Zce(ig,e))throw new r$("Object already initialized");return t.facade=e,j7t(ig,e,t),t},v3=function(e){return $7t(ig,e)||{}},_T=function(e){return Zce(ig,e)}}else{var i1=HK("state");W7[i1]=!0,TT=function(e,t){if(Xa(e,i1))throw new r$("Object already initialized");return t.facade=e,$h(e,i1,t),t},v3=function(e){return Xa(e,i1)?e[i1]:{}},_T=function(e){return Xa(e,i1)}}var pv,Xce,Jce,Wd={set:TT,get:v3,has:_T,enforce:function(e){return _T(e)?v3(e):TT(e,{})},getterFor:function(e){return function(t){var n;if(!va(t)||(n=v3(t)).type!==e)throw r$("Incompatible receiver, "+e+" required");return n}}},ede={}.propertyIsEnumerable,tde=Object.getOwnPropertyDescriptor,H7t={f:tde&&!ede.call({1:2},1)?function(e){var t=tde(this,e);return!!t&&t.enumerable}:ede},nde=Object.getOwnPropertyDescriptor,Z6e={f:b0?nde:function(e,t){if(e=u2(e),t=jK(t),W6e)try{return nde(e,t)}catch{}if(Xa(e,t))return V7(!us(H7t.f,e,t),e[t])}},X6e=Function.prototype,W7t=b0&&Object.getOwnPropertyDescriptor,rde=Xa(X6e,"name"),qK={PROPER:rde&&(function(){}).name==="something",CONFIGURABLE:rde&&(!b0||b0&&W7t(X6e,"name").configurable)},cp=RK((function(e){var t=qK.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:BK(a,s)})(Function.prototype,"toString",(function(){return wa(this)&&n(this).source||VK(this)}))})),V7t=kT.concat("length","prototype"),DT={f:Object.getOwnPropertyNames||function(e){return G6e(e,V7t)}},q7t={f:Object.getOwnPropertySymbols},G7t=To([].concat),K7t=O5("Reflect","ownKeys")||function(e){var t=DT.f(jl(e)),n=q7t.f;return n?G7t(t,n(e)):t},Y7t=function(e,t){for(var n=K7t(t),r=Cm.f,o=Z6e.f,i=0;i<n.length;i++){var a=n[i];Xa(e,a)||r(e,a,o(t,a))}},Q7t=/#|\.prototype\./,P5=function(e,t){var n=X7t[Z7t(e)];return n==e9t||n!=J7t&&(wa(t)?da(t):!!t)},Z7t=P5.normalize=function(e){return String(e).replace(Q7t,".").toLowerCase()},X7t=P5.data={},J7t=P5.NATIVE="N",e9t=P5.POLYFILL="P",o$=P5,t9t=Z6e.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]||BK(s,{}):(Jr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=t9t(n,r))&&a.value:n[r],!o$(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Y7t(i,o)}(e.sham||o&&o.sham)&&$h(i,"sham",!0),cp(n,r,i,e)}},n9t=!da((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ode=HK("IE_PROTO"),i$=Jr.Object,r9t=i$.prototype,IT=n9t?i$.getPrototypeOf:function(e){var t=I5(e);if(Xa(t,ode))return t[ode];var n=t.constructor;return wa(n)&&t instanceof n?n.prototype:t instanceof i$?r9t:null},a$=Ts("iterator"),J6e=!1;[].keys&&("next"in(Jce=[].keys())?(Xce=IT(IT(Jce)))!==Object.prototype&&(pv=Xce):J6e=!0);var o9t=pv==null||da((function(){var e={};return pv[a$].call(e)!==e}));o9t&&(pv={}),wa(pv[a$])||cp(pv,a$,(function(){return this}));var GK={IteratorPrototype:pv,BUGGY_SAFARI_ITERATORS:J6e},i9t=Cm.f,ide=Ts("toStringTag"),s$=function(e,t,n){e&&!Xa(e=n?e:e.prototype,ide)&&i9t(e,ide,{configurable:!0,value:t})},a9t=GK.IteratorPrototype,s9t=function(){return this},l9t=Jr.String,u9t=Jr.TypeError,OT=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 u9t("Can't set "+l9t(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),c9t=qK.PROPER,d9t=qK.CONFIGURABLE,ade=GK.IteratorPrototype,zN=GK.BUGGY_SAFARI_ITERATORS,zw=Ts("iterator"),f9t=function(){return this},eSe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=WK(a9t,{next:V7(1,m)}),s$(g,w,!1),hb[w]=s9t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!zN&&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[zw]||f["@@iterator"]||o&&f[o],v=!zN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=IT(h.call(new e)))!==Object.prototype&&s.next&&(IT(s)!==ade&&(OT?OT(s,ade):wa(s[zw])||cp(s,zw,f9t)),s$(s,d,!0)),c9t&&o=="values"&&p&&p.name!=="values"&&(d9t?$h(f,"name","values"):(c=!0,v=function(){return us(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||w0({target:t,proto:!0,forced:zN||c},l)),f[zw]!==v&&cp(f,zw,v,{name:o}),hb[t]=v,l},p9t=Wd.set,h9t=Wd.getterFor("Array Iterator"),O4=eSe(Array,"Array",(function(e,t){p9t(this,{type:"Array Iterator",target:u2(e),index:0,kind:t})}),(function(){var e=h9t(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");hb.Arguments=hb.Array,g3("keys"),g3("values"),g3("entries");var tSe={};tSe[Ts("toStringTag")]="z";var KK=String(tSe)==="[object z]",g9t=Ts("toStringTag"),v9t=Jr.Object,m9t=jf((function(){return arguments})())=="Arguments",q7=KK?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=v9t(e),g9t))=="string"?n:m9t?jf(t):(r=jf(t))=="Object"&&wa(t.callee)?"Arguments":r},y9t=KK?{}.toString:function(){return"[object "+q7(this)+"]"};KK||cp(Object.prototype,"toString",y9t,{unsafe:!0});var b9t=Jr.String,xf=function(e){if(q7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b9t(e)},w9t=To("".charAt),sde=To("".charCodeAt),A9t=To("".slice),C9t=function(e){return function(t,n){var r,o,i=xf(H7(t)),a=M5(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=sde(i,a))<55296||r>56319||a+1===s||(o=sde(i,a+1))<56320||o>57343?e?w9t(i,a):r:e?A9t(i,a,a+2):o-56320+(r-55296<<10)+65536}},nSe={charAt:C9t(!0)},x9t=nSe.charAt,S9t=Wd.set,E9t=Wd.getterFor("String Iterator");eSe(String,"String",(function(e){S9t(this,{type:"String Iterator",string:xf(e),index:0})}),(function(){var e,t=E9t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=x9t(n,r),t.index+=e.length,{value:e,done:!1})}));var l$=function(e,t,n){for(var r in t)cp(e,r,t[r],n);return e},k9t=Jr.Array,T9t=Math.max,lde=DT.f,ude=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_9t={f:function(e){return ude&&jf(e)=="Window"?(function(t){try{return lde(t)}catch{return(function(r,o,i){for(var a,s,l,u,d=c2(r),c=e$(void 0,d),f=e$(d,d),p=k9t(T9t(f-c,0)),v=0;c<f;c++,v++)a=p,s=v,l=r[c],(u=jK(s))in a?Cm.f(a,u,V7(0,l)):a[u]=l;return p.length=v,p})(ude)}})(e):lde(u2(e))}},cde=da((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),L6=Object.isExtensible,$g=da((function(){L6(1)}))||cde?function(e){return!!va(e)&&(!cde||jf(e)!="ArrayBuffer")&&(!L6||L6(e))}:L6,D9t=!da((function(){return Object.isExtensible(Object.preventExtensions({}))})),YK=RK((function(e){var t=Cm.f,n=!1,r=FK("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=DT.f,l=To([].splice),u={};u[r]=1,s(u).length&&(DT.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:_9t.f}))},fastKey:function(s,l){if(!va(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Xa(s,r)){if(!$g(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Xa(s,r)){if(!$g(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return D9t&&n&&$g(s)&&!Xa(s,r)&&i(s),s}};W7[r]=!0})),dde=To(To.bind),QK=function(e,t){return $K(e),t===void 0?e:dde?dde(e,t):function(){return e.apply(t,arguments)}},I9t=Ts("iterator"),O9t=Array.prototype,M9t=Ts("iterator"),fde=function(e){if(e!=null)return WA(e,M9t)||WA(e,"@@iterator")||hb[q7(e)]},P9t=Jr.TypeError,pde=function(e,t,n){var r,o;jl(e);try{if(!(r=WA(e,"return"))){if(t==="throw")throw n;return n}r=us(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return jl(r),n},N9t=Jr.TypeError,F8=function(e,t){this.stopped=e,this.result=t},hde=F8.prototype,rSe=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=QK(t,c),g=function(m){return r&&pde(r,"normal",m),new F8(!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=fde(e)))throw N9t(Jz(e)+" is not iterable");if((d=o)!==void 0&&(hb.Array===d||O9t[I9t]===d)){for(i=0,a=c2(e);a>i;i++)if((s=y(e[i]))&&ET(hde,s))return s;return new F8(!1)}r=(function(m,b){var w=arguments.length<2?fde(m):b;if($K(w))return jl(us(w,m));throw P9t(Jz(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=us(l,r)).done;){try{s=y(u.value)}catch(m){pde(r,"throw",m)}if(typeof s=="object"&&s&&ET(hde,s))return s}return new F8(!1)},R9t=Jr.TypeError,oSe=function(e,t){if(ET(t,e))return e;throw R9t("Incorrect invocation")},iSe=Ts("iterator"),aSe=!1;try{var B9t=0,gde={next:function(){return{done:!!B9t++}},return:function(){aSe=!0}};gde[iSe]=function(){return this},Array.from(gde,(function(){throw 2}))}catch{}var u$=Array.isArray||function(e){return jf(e)=="Array"},sSe=function(){},L9t=[],lSe=O5("Reflect","construct"),ZK=/^\s*(?:class|function)\b/,F9t=To(ZK.exec),U9t=!ZK.exec(sSe),$w=function(e){if(!wa(e))return!1;try{return lSe(sSe,L9t,e),!0}catch{return!1}},z9t=!lSe||da((function(){var e;return $w($w.call)||!$w(Object)||!$w((function(){e=!0}))||e}))?function(e){if(!wa(e))return!1;switch(q7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U9t||!!F9t(ZK,VK(e))}:$w,$9t=Ts("species"),vde=Jr.Array,uSe=function(e,t){return new((function(n){var r;return u$(n)&&(r=n.constructor,(z9t(r)&&(r===vde||u$(r.prototype))||va(r)&&(r=r[$9t])===null)&&(r=void 0)),r===void 0?vde:r})(e))(t===0?0:t)},mde=To([].push),$N=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=I5(l),h=H6e(v),g=QK(u,d),y=c2(h),m=0,b=c||uSe,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:mde(w,f)}else switch(e){case 4:return!1;case 7:mde(w,f)}return i?-1:r||o?o:w}},XK={filter:$N(2),find:$N(5),findIndex:$N(6)},F6=YK.getWeakData,j9t=Wd.set,H9t=Wd.getterFor,W9t=XK.find,V9t=XK.findIndex,q9t=To([].splice),G9t=0,U6=function(e){return e.frozen||(e.frozen=new cSe)},cSe=function(){this.entries=[]},jN=function(e,t){return W9t(e.entries,(function(n){return n[0]===t}))};cSe.prototype={get:function(e){var t=jN(this,e);if(t)return t[1]},has:function(e){return!!jN(this,e)},set:function(e,t){var n=jN(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=V9t(this.entries,(function(n){return n[0]===e}));return~t&&q9t(this.entries,t,1),!!~t}};var jw,dSe={getConstructor:function(e,t,n,r){var o=e((function(l,u){oSe(l,i),j9t(l,{type:t,id:G9t++,frozen:void 0}),u!=null&&rSe(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=H9t(t),s=function(l,u,d){var c=a(l),f=F6(jl(u),!0);return f===!0?U6(c).set(u,d):f[c.id]=d,l};return l$(i,{delete:function(l){var u=a(this);if(!va(l))return!1;var d=F6(l);return d===!0?U6(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=F6(l);return d===!0?U6(u).has(l):d&&Xa(d,u.id)}}),l$(i,n?{get:function(l){var u=a(this);if(va(l)){var d=F6(l);return d===!0?U6(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}},z6=Wd.enforce,K9t=!Jr.ActiveXObject&&"ActiveXObject"in Jr,fSe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Y9t=(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]);cp(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(o$(e,!wa(a)||!(o||s.forEach&&!da((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),YK.enable();else if(o$(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=da((function(){c.has(1)})),v=(function(g,y){if(!aSe)return!1;var m=!1;try{var b={};b[iSe]=function(){return{next:function(){return{done:m=!0}}}},(function(w){new a(w)})(b)}catch{}return m})(),h=!o&&da((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){oSe(g,s);var m=(function(b,w,A){var S,k;return OT&&wa(S=w.constructor)&&S!==A&&va(k=S.prototype)&&k!==A.prototype&&OT(b,k),b})(new a,g,l);return y!=null&&rSe(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),s$(l,e),o||n.setStrong(l,e,r),l})("WeakMap",fSe,dSe);if(Q6e&&K9t){jw=dSe.getConstructor(fSe,"WeakMap",!0),YK.enable();var Hw=Y9t.prototype,yde=To(Hw.delete),$6=To(Hw.has),bde=To(Hw.get),wde=To(Hw.set);l$(Hw,{delete:function(e){if(va(e)&&!$g(e)){var t=z6(this);return t.frozen||(t.frozen=new jw),yde(this,e)||t.frozen.delete(e)}return yde(this,e)},has:function(e){if(va(e)&&!$g(e)){var t=z6(this);return t.frozen||(t.frozen=new jw),$6(this,e)||t.frozen.has(e)}return $6(this,e)},get:function(e){if(va(e)&&!$g(e)){var t=z6(this);return t.frozen||(t.frozen=new jw),$6(this,e)?bde(this,e):t.frozen.get(e)}return bde(this,e)},set:function(e,t){if(va(e)&&!$g(e)){var n=z6(this);n.frozen||(n.frozen=new jw),$6(this,e)?wde(this,e,t):n.frozen.set(e,t)}else wde(this,e,t);return this}})}var pSe={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},HN=zK("span").classList,Ade=HN&&HN.constructor&&HN.constructor.prototype,Q9t=Ade===Object.prototype?void 0:Ade,WN=Ts("iterator"),Cde=Ts("toStringTag"),VN=O4.values,hSe=function(e,t){if(e){if(e[WN]!==VN)try{$h(e,WN,VN)}catch{e[WN]=VN}if(e[Cde]||$h(e,Cde,t),pSe[t]){for(var n in O4)if(e[n]!==O4[n])try{$h(e,n,O4[n])}catch{e[n]=O4[n]}}}};for(var qN in pSe)hSe(Jr[qN]&&Jr[qN].prototype,qN);hSe(Q9t,"DOMTokenList");var c$=new WeakMap,Z9t={type:"list-item",renderElem:function(e,t,n){c$.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=Ze.node(c,S);if(k==null)break;var O=k[0],I=O.level,P=I===void 0?0:I,M=O.type,_=O.ordered;if(M!==v||P<g)break;if(P===g){if(_!==m)break;b++}w=O,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))}},d$=function(e,t){return d$=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])},d$(e,t);/*! *****************************************************************************
  828. Copyright (c) Microsoft Corporation.
  829. Permission to use, copy, modify, and/or distribute this software for any
  830. purpose with or without fee is hereby granted.
  831. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  832. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  833. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  834. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  835. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  836. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  837. PERFORMANCE OF THIS SOFTWARE.
  838. ***************************************************************************** */};function gSe(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}d$(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function xde(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 m3(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 Sde(e){return Ze.nodes(e,{at:e.selection||void 0,match:function(t){return Et.findPath(e,t).length===1}})}var X9t=q6e.includes;w0({target:"Array",proto:!0},{includes:function(e){return X9t(this,e,arguments.length>1?arguments[1]:void 0)}}),g3("includes");var Ede,GN,J9t=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},JK=Jr.RegExp,vSe=da((function(){var e=JK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));vSe||da((function(){return!JK("a","y").sticky}));var eIt={BROKEN_CARET:vSe||da((function(){var e=JK("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},tIt=Jr.RegExp,nIt=da((function(){var e=tIt(".","s");return!(e.dotAll&&e.exec(`
  839. `)&&e.flags==="s")})),rIt=Jr.RegExp,oIt=da((function(){var e=rIt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),iIt=Wd.get,aIt=LK("native-string-replace",String.prototype.replace),MT=RegExp.prototype.exec,f$=MT,sIt=To("".charAt),lIt=To("".indexOf),uIt=To("".replace),KN=To("".slice),YN=(GN=/b*/g,us(MT,Ede=/a/,"a"),us(MT,GN,"a"),Ede.lastIndex!==0||GN.lastIndex!==0),kde=eIt.BROKEN_CARET,QN=/()??/.exec("")[1]!==void 0;(YN||QN||kde||nIt||oIt)&&(f$=function(e){var t,n,r,o,i,a,s,l=this,u=iIt(l),d=xf(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=us(f$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=kde&&l.sticky,v=us(J9t,l),h=l.source,g=0,y=d;if(p&&(v=uIt(v,"y",""),lIt(v,"g")===-1&&(v+="g"),y=KN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&sIt(d,l.lastIndex-1)!==`
  840. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),QN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),YN&&(r=l.lastIndex),o=us(MT,p?n:l,y),p?o?(o.input=KN(o.input,g),o[0]=KN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:YN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),QN&&o&&o.length>1&&us(aIt,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=WK(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var PT=f$;w0({target:"RegExp",proto:!0,forced:/./.exec!==PT},{exec:PT});var mSe=(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(Ze.isVoid(t,n)&&Ze.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)?Xt.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Xt.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),cIt='<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>',dIt='<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>',fIt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Qn("listModule.unOrderedList"),n.iconSvg=cIt,n}return gSe(t,e),t})(mSe),pIt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Qn("listModule.orderedList"),n.iconSvg=dIt,n}return gSe(t,e),t})(mSe),hIt={key:"bulletedList",factory:function(){return new fIt}},gIt={key:"numberedList",factory:function(){return new pIt}},Tde=[],vIt={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=c$.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=Ze.node(d,m);if(!b)return 0;var w=m3(b,1)[0];if(Et.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,k=S!==void 0&&S,O=A.level,I=O===void 0?0:O;return I<g?g-I:I>g?0:I===g?k===v?0:1:0})(e);if(a>0)for(var s=0;s<a;s++)n+="<"+i+">",Tde.push(i);var l=(function(u){var d=c$.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=Ze.node(d,m);if(!b)return 0;var w=m3(b,1)[0];if(Et.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,k=S!==void 0&&S,O=A.level,I=O===void 0?0:O;return I<g?g-I:I>g?0:I===g?k===v?0:1:0})(e);if(l>0)for(s=0;s<l;s++)r+="</"+Tde.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},mIt=Ts("species"),yIt=XK.filter,bIt=Qz>=51||!da((function(){var e=[];return(e.constructor={})[mIt]=function(){return{foo:1}},e.filter(Boolean).foo!==1}));w0({target:"Array",proto:!0,forced:!bIt},{filter:function(e){return yIt(this,e,arguments.length>1?arguments[1]:void 0)}});var eY=Function.prototype,_de=eY.apply,wIt=eY.bind,Dde=eY.call,AIt=typeof Reflect=="object"&&Reflect.apply||(wIt?Dde.bind(_de):function(){return Dde.apply(_de,arguments)}),Ide=(Ts("species"),RegExp.prototype),CIt=nSe.charAt,xIt=function(e,t,n){return t+(n?CIt(e,t).length:1)},SIt=Math.floor,ZN=To("".charAt),EIt=To("".replace),XN=To("".slice),kIt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,TIt=/\$([$&'`]|\d{1,2})/g,_It=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=TIt;return o!==void 0&&(o=I5(o),l=kIt),EIt(i,l,(function(u,d){var c;switch(ZN(d,0)){case"$":return"$";case"&":return e;case"`":return XN(t,0,n);case"'":return XN(t,a);case"<":c=o[XN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=SIt(f/10);return p===0?u:p<=s?r[p-1]===void 0?ZN(d,1):r[p-1]+ZN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},DIt=Jr.TypeError,IIt=function(e,t){var n=e.exec;if(wa(n)){var r=us(n,e,t);return r!==null&&jl(r),r}if(jf(e)==="RegExp")return us(PT,e,t);throw DIt("RegExp#exec called on incompatible receiver")},p$=Ts("replace"),OIt=Math.max,MIt=Math.min,PIt=To([].concat),JN=To([].push),Ode=To("".indexOf),Mde=To("".slice),NIt="a".replace(/./,"$0")==="$0",Pde=!!/./[p$]&&/./[p$]("a","$0")==="";(function(e,t,n,r){var o=Ts(e),i=!da((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!da((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=Pde?"$":"$0";return[function(p,v){var h=H7(this),g=p==null?void 0:WA(p,p$);return g?us(g,p,h,v):us(d,xf(h),p,v)},function(p,v){var h=jl(this),g=xf(p);if(typeof v=="string"&&Ode(v,f)===-1&&Ode(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=IIt(h,g);if(S===null||(JN(A,S),!b))break;xf(S[0])===""&&(h.lastIndex=xIt(g,V6e(h.lastIndex),w))}for(var k,O="",I=0,P=0;P<A.length;P++){for(var M=xf((S=A[P])[0]),_=OIt(MIt(M5(S.index),g.length),0),R=[],N=1;N<S.length;N++)JN(R,(k=S[N])===void 0?k:String(k));var V=S.groups;if(m){var L=PIt([M],R,_,g);V!==void 0&&JN(L,V);var j=xf(AIt(v,void 0,L))}else j=_It(M,g,_,R,V,v);_>=I&&(O+=Mde(g,I,_)+j,I=_+M.length)}return O+Mde(g,I)}]})(0,""[e],(function(u,d,c,f,p){var v=To(u),h=d.exec;return h===PT||h===Ide.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));cp(String.prototype,e,l[0]),cp(Ide,o,l[1])}})("replace",0,!!da((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!NIt||Pde);var RIt=Jr.TypeError,ySe=function(e,t,n,r,o,i,a,s){for(var l,u,d=o,c=0,f=!!a&&QK(a,s);c<r;){if(c in n){if(l=f?f(n[c],c,t):n[c],i>0&&u$(l))u=c2(l),d=ySe(e,t,l,u,d,i-1)-1;else{if(d>=9007199254740991)throw RIt("Exceed the acceptable array length");e[d]=l}d++}c++}return d},BIt=ySe;function eR(e){return e.length?e[0].tagName.toLowerCase():""}w0({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=I5(this),n=c2(t),r=uSe(t,0);return r.length=BIt(r,t,t,n,0,e===void 0?1:M5(e)),r}}),g3("flat"),w0({global:!0},{globalThis:Jr}),ec&&(Pt.fn.append=ec),Ju&&(Pt.fn.attr=Ju),tb&&(Pt.fn.parent=tb);var LIt={renderElems:[Z9t],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?Xt.setNodes(o,{level:u-1}):Xt.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 Xt.setNodes(o,{level:f+1})}}if(pn.isExpanded(u)){var p=0,v=!1;try{for(var h=xde(Sde(o)),g=h.next();!g.done;g=h.next()){var y=m3(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=xde(Sde(o)),b=m.next();!b.done;b=m.next()){var w=m3(b.value,2),A=(y=w[0],w[1]),S=y.level;f=S===void 0?0:S,Xt.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=m3(i,2),s=a[0],l=a[1],u=Et.getNodeType(s);return u!=="bulleted-list"&&u!=="numbered-list"||Xt.unwrapNodes(o,{at:l}),r([s,l])},o},menus:[hIt,gIt],elemsToHtml:[vIt],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=Pt(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 eR(a.parent())==="ol"})(r),i=(function(a){for(var s=0,l=a.parent(),u=eR(l);u==="ul"||u==="ol";)u=eR(l=l.parent()),s++;return s-1})(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},bSe=dm((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 O=typeof bi=="object"&&bi&&bi.Object===Object&&bi,I=typeof self=="object"&&self&&self.Object===Object&&self,P=O||I||Function("return this")(),M=t&&!t.nodeType&&t,_=M&&e&&!e.nodeType&&e,R=_&&_.exports===M,N=R&&O.process,V=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),L=V&&V.isTypedArray;function j(vt,Bt){for(var mn=-1,Mn=vt==null?0:vt.length;++mn<Mn;)if(Bt(vt[mn],mn,vt))return!0;return!1}function H(vt){var Bt=-1,mn=Array(vt.size);return vt.forEach((function(Mn,tr){mn[++Bt]=[tr,Mn]})),mn}function G(vt){var Bt=-1,mn=Array(vt.size);return vt.forEach((function(Mn){mn[++Bt]=Mn})),mn}var Z=Array.prototype,z=Function.prototype,U=Object.prototype,W=P["__core-js_shared__"],re=z.toString,J=U.hasOwnProperty,te=(function(){var vt=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return vt?"Symbol(src)_1."+vt:""})(),X=U.toString,ue=RegExp("^"+re.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=R?P.Buffer:void 0,Me=P.Symbol,Ae=P.Uint8Array,ge=U.propertyIsEnumerable,_e=Z.splice,Q=Me?Me.toStringTag:void 0,be=Object.getOwnPropertySymbols,De=me?me.isBuffer:void 0,pe=(function(vt,Bt){return function(mn){return vt(Bt(mn))}})(Object.keys,Object),ie=ot(P,"DataView"),ce=ot(P,"Map"),Re=ot(P,"Promise"),Ee=ot(P,"Set"),Le=ot(P,"WeakMap"),Fe=ot(Object,"create"),Pe=at(ie),Ne=at(ce),ht=at(Re),Rt=at(Ee),Lt=at(Le),tn=Me?Me.prototype:void 0,Wt=tn?tn.valueOf:void 0;function zt(vt){var Bt=-1,mn=vt==null?0:vt.length;for(this.clear();++Bt<mn;){var Mn=vt[Bt];this.set(Mn[0],Mn[1])}}function dt(vt){var Bt=-1,mn=vt==null?0:vt.length;for(this.clear();++Bt<mn;){var Mn=vt[Bt];this.set(Mn[0],Mn[1])}}function _t(vt){var Bt=-1,mn=vt==null?0:vt.length;for(this.clear();++Bt<mn;){var Mn=vt[Bt];this.set(Mn[0],Mn[1])}}function ut(vt){var Bt=-1,mn=vt==null?0:vt.length;for(this.__data__=new _t;++Bt<mn;)this.add(vt[Bt])}function rt(vt){var Bt=this.__data__=new dt(vt);this.size=Bt.size}function he(vt,Bt){var mn=Qe(vt),Mn=!mn&&tt(vt),tr=!mn&&!Mn&&it(vt),cn=!mn&&!Mn&&!tr&&xt(vt),qe=mn||Mn||tr||cn,yt=qe?(function(Kt,bn){for(var Rn=-1,Kn=Array(Kt);++Rn<Kt;)Kn[Rn]=bn(Rn);return Kn})(vt.length,String):[],Zt=yt.length;for(var bt in vt)!J.call(vt,bt)||qe&&(bt=="length"||tr&&(bt=="offset"||bt=="parent")||cn&&(bt=="buffer"||bt=="byteLength"||bt=="byteOffset")||He(bt,Zt))||yt.push(bt);return yt}function Je(vt,Bt){for(var mn=vt.length;mn--;)if(St(vt[mn][0],Bt))return mn;return-1}function ct(vt){return vt==null?vt===void 0?"[object Undefined]":"[object Null]":Q&&Q in Object(vt)?(function(Bt){var mn=J.call(Bt,Q),Mn=Bt[Q];try{Bt[Q]=void 0;var tr=!0}catch{}var cn=X.call(Bt);return tr&&(mn?Bt[Q]=Mn:delete Bt[Q]),cn})(vt):(function(Bt){return X.call(Bt)})(vt)}function Ot(vt){return Nn(vt)&&ct(vt)==o}function Tn(vt,Bt,mn,Mn,tr){return vt===Bt||(vt==null||Bt==null||!Nn(vt)&&!Nn(Bt)?vt!=vt&&Bt!=Bt:(function(cn,qe,yt,Zt,bt,Kt){var bn=Qe(cn),Rn=Qe(qe),Kn=bn?i:Ke(cn),Fr=Rn?i:Ke(qe),ho=(Kn=Kn==o?f:Kn)==f,Wr=(Fr=Fr==o?f:Fr)==f,bo=Kn==Fr;if(bo&&it(cn)){if(!it(qe))return!1;bn=!0,ho=!1}if(bo&&!ho)return Kt||(Kt=new rt),bn||xt(cn)?ke(cn,qe,yt,Zt,bt,Kt):(function(Rr,Br,$r,Ao,Cr,Ho,Xo){switch($r){case w:if(Rr.byteLength!=Br.byteLength||Rr.byteOffset!=Br.byteOffset)return!1;Rr=Rr.buffer,Br=Br.buffer;case b:return!(Rr.byteLength!=Br.byteLength||!Ho(new Ae(Rr),new Ae(Br)));case a:case s:case c:return St(+Rr,+Br);case l:return Rr.name==Br.name&&Rr.message==Br.message;case v:case g:return Rr==Br+"";case d:var qi=H;case h:var ra=1&Ao;if(qi||(qi=G),Rr.size!=Br.size&&!ra)return!1;var ti=Xo.get(Rr);if(ti)return ti==Br;Ao|=2,Xo.set(Rr,Br);var Lo=ke(qi(Rr),qi(Br),Ao,Cr,Ho,Xo);return Xo.delete(Rr),Lo;case y:if(Wt)return Wt.call(Rr)==Wt.call(Br)}return!1})(cn,qe,Kn,yt,Zt,bt,Kt);if(!(1&yt)){var Bo=ho&&J.call(cn,"__wrapped__"),br=Wr&&J.call(qe,"__wrapped__");if(Bo||br){var Vr=Bo?cn.value():cn,wo=br?qe.value():qe;return Kt||(Kt=new rt),bt(Vr,wo,yt,Zt,Kt)}}return bo?(Kt||(Kt=new rt),(function(Rr,Br,$r,Ao,Cr,Ho){var Xo=1&$r,qi=ye(Rr),ra=qi.length,ti=ye(Br).length;if(ra!=ti&&!Xo)return!1;for(var Lo=ra;Lo--;){var Qo=qi[Lo];if(!(Xo?Qo in Br:J.call(Br,Qo)))return!1}var Pa=Ho.get(Rr);if(Pa&&Ho.get(Br))return Pa==Br;var Ai=!0;Ho.set(Rr,Br),Ho.set(Br,Rr);for(var Ci=Xo;++Lo<ra;){var xi=Rr[Qo=qi[Lo]],mi=Br[Qo];if(Ao)var oa=Xo?Ao(mi,xi,Qo,Br,Rr,Ho):Ao(xi,mi,Qo,Rr,Br,Ho);if(!(oa===void 0?xi===mi||Cr(xi,mi,$r,Ao,Ho):oa)){Ai=!1;break}Ci||(Ci=Qo=="constructor")}if(Ai&&!Ci){var _r=Rr.constructor,Si=Br.constructor;_r==Si||!("constructor"in Rr)||!("constructor"in Br)||typeof _r=="function"&&_r instanceof _r&&typeof Si=="function"&&Si instanceof Si||(Ai=!1)}return Ho.delete(Rr),Ho.delete(Br),Ai})(cn,qe,yt,Zt,bt,Kt)):!1})(vt,Bt,mn,Mn,Tn,tr))}function In(vt){return!(!En(vt)||(function(Bt){return!!te&&te in Bt})(vt))&&(Mt(vt)?ue:A).test(at(vt))}function je(vt){if(mn=(Bt=vt)&&Bt.constructor,Mn=typeof mn=="function"&&mn.prototype||U,Bt!==Mn)return pe(vt);var Bt,mn,Mn,tr=[];for(var cn in Object(vt))J.call(vt,cn)&&cn!="constructor"&&tr.push(cn);return tr}function ke(vt,Bt,mn,Mn,tr,cn){var qe=1&mn,yt=vt.length,Zt=Bt.length;if(yt!=Zt&&!(qe&&Zt>yt))return!1;var bt=cn.get(vt);if(bt&&cn.get(Bt))return bt==Bt;var Kt=-1,bn=!0,Rn=2&mn?new ut:void 0;for(cn.set(vt,Bt),cn.set(Bt,vt);++Kt<yt;){var Kn=vt[Kt],Fr=Bt[Kt];if(Mn)var ho=qe?Mn(Fr,Kn,Kt,Bt,vt,cn):Mn(Kn,Fr,Kt,vt,Bt,cn);if(ho!==void 0){if(ho)continue;bn=!1;break}if(Rn){if(!j(Bt,(function(Wr,bo){if(Bo=bo,!Rn.has(Bo)&&(Kn===Wr||tr(Kn,Wr,mn,Mn,cn)))return Rn.push(bo);var Bo}))){bn=!1;break}}else if(Kn!==Fr&&!tr(Kn,Fr,mn,Mn,cn)){bn=!1;break}}return cn.delete(vt),cn.delete(Bt),bn}function ye(vt){return(function(Bt,mn,Mn){var tr=mn(Bt);return Qe(Bt)?tr:(function(cn,qe){for(var yt=-1,Zt=qe.length,bt=cn.length;++yt<Zt;)cn[bt+yt]=qe[yt];return cn})(tr,Mn(Bt))})(vt,sn,gt)}function Be(vt,Bt){var mn,Mn,tr=vt.__data__;return((Mn=typeof(mn=Bt))=="string"||Mn=="number"||Mn=="symbol"||Mn=="boolean"?mn!=="__proto__":mn===null)?tr[typeof Bt=="string"?"string":"hash"]:tr.map}function ot(vt,Bt){var mn=(function(Mn,tr){return Mn?.[tr]})(vt,Bt);return In(mn)?mn:void 0}zt.prototype.clear=function(){this.__data__=Fe?Fe(null):{},this.size=0},zt.prototype.delete=function(vt){var Bt=this.has(vt)&&delete this.__data__[vt];return this.size-=Bt?1:0,Bt},zt.prototype.get=function(vt){var Bt=this.__data__;if(Fe){var mn=Bt[vt];return mn===n?void 0:mn}return J.call(Bt,vt)?Bt[vt]:void 0},zt.prototype.has=function(vt){var Bt=this.__data__;return Fe?Bt[vt]!==void 0:J.call(Bt,vt)},zt.prototype.set=function(vt,Bt){var mn=this.__data__;return this.size+=this.has(vt)?0:1,mn[vt]=Fe&&Bt===void 0?n:Bt,this},dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(vt){var Bt=this.__data__,mn=Je(Bt,vt);return!(mn<0)&&(mn==Bt.length-1?Bt.pop():_e.call(Bt,mn,1),--this.size,!0)},dt.prototype.get=function(vt){var Bt=this.__data__,mn=Je(Bt,vt);return mn<0?void 0:Bt[mn][1]},dt.prototype.has=function(vt){return Je(this.__data__,vt)>-1},dt.prototype.set=function(vt,Bt){var mn=this.__data__,Mn=Je(mn,vt);return Mn<0?(++this.size,mn.push([vt,Bt])):mn[Mn][1]=Bt,this},_t.prototype.clear=function(){this.size=0,this.__data__={hash:new zt,map:new(ce||dt),string:new zt}},_t.prototype.delete=function(vt){var Bt=Be(this,vt).delete(vt);return this.size-=Bt?1:0,Bt},_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,Bt){var mn=Be(this,vt),Mn=mn.size;return mn.set(vt,Bt),this.size+=mn.size==Mn?0:1,this},ut.prototype.add=ut.prototype.push=function(vt){return this.__data__.set(vt,n),this},ut.prototype.has=function(vt){return this.__data__.has(vt)},rt.prototype.clear=function(){this.__data__=new dt,this.size=0},rt.prototype.delete=function(vt){var Bt=this.__data__,mn=Bt.delete(vt);return this.size=Bt.size,mn},rt.prototype.get=function(vt){return this.__data__.get(vt)},rt.prototype.has=function(vt){return this.__data__.has(vt)},rt.prototype.set=function(vt,Bt){var mn=this.__data__;if(mn instanceof dt){var Mn=mn.__data__;if(!ce||Mn.length<199)return Mn.push([vt,Bt]),this.size=++mn.size,this;mn=this.__data__=new _t(Mn)}return mn.set(vt,Bt),this.size=mn.size,this};var gt=be?function(vt){return vt==null?[]:(vt=Object(vt),(function(Bt,mn){for(var Mn=-1,tr=Bt==null?0:Bt.length,cn=0,qe=[];++Mn<tr;){var yt=Bt[Mn];mn(yt,Mn,Bt)&&(qe[cn++]=yt)}return qe})(be(vt),(function(Bt){return ge.call(vt,Bt)})))}:function(){return[]},Ke=ct;function He(vt,Bt){return!!(Bt=Bt??r)&&(typeof vt=="number"||S.test(vt))&&vt>-1&&vt%1==0&&vt<Bt}function at(vt){if(vt!=null){try{return re.call(vt)}catch{}try{return vt+""}catch{}}return""}function St(vt,Bt){return vt===Bt||vt!=vt&&Bt!=Bt}(ie&&Ke(new ie(new ArrayBuffer(1)))!=w||ce&&Ke(new ce)!=d||Re&&Ke(Re.resolve())!=p||Ee&&Ke(new Ee)!=h||Le&&Ke(new Le)!=m)&&(Ke=function(vt){var Bt=ct(vt),mn=Bt==f?vt.constructor:void 0,Mn=mn?at(mn):"";if(Mn)switch(Mn){case Pe:return w;case Ne:return d;case ht:return p;case Rt:return h;case Lt:return m}return Bt});var tt=Ot((function(){return arguments})())?Ot:function(vt){return Nn(vt)&&J.call(vt,"callee")&&!ge.call(vt,"callee")},Qe=Array.isArray,it=De||function(){return!1};function Mt(vt){if(!En(vt))return!1;var Bt=ct(vt);return Bt==u||Bt=="[object GeneratorFunction]"||Bt=="[object AsyncFunction]"||Bt=="[object Proxy]"}function Gt(vt){return typeof vt=="number"&&vt>-1&&vt%1==0&&vt<=r}function En(vt){var Bt=typeof vt;return vt!=null&&(Bt=="object"||Bt=="function")}function Nn(vt){return vt!=null&&typeof vt=="object"}var xt=L?(function(vt){return function(Bt){return vt(Bt)}})(L):function(vt){return Nn(vt)&&Gt(vt.length)&&!!k[ct(vt)]};function sn(vt){return(Bt=vt)!=null&&Gt(Bt.length)&&!Mt(Bt)?he(vt):je(vt);var Bt}e.exports=function(vt,Bt){return Tn(vt,Bt)}}));$l("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"}}),$l("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Nde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wSe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kp,U8,j6=function(e){return e&&e.Math==Math&&e},ko=j6(typeof globalThis=="object"&&globalThis)||j6(typeof window=="object"&&window)||j6(typeof self=="object"&&self)||j6(typeof Nde=="object"&&Nde)||(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})),Ww=Function.prototype.call,Ya=Ww.bind?Ww.bind(Ww):function(){return Ww.apply(Ww,arguments)},Rde={}.propertyIsEnumerable,Bde=Object.getOwnPropertyDescriptor,FIt={f:Bde&&!Rde.call({1:2},1)?function(e){var t=Bde(this,e);return!!t&&t.enumerable}:Rde},tY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ASe=Function.prototype,h$=ASe.bind,g$=ASe.call,UIt=h$&&h$.bind(g$),Do=h$?function(e){return e&&UIt(g$,e)}:function(e){return e&&function(){return g$.apply(e,arguments)}},zIt=Do({}.toString),$It=Do("".slice),jh=function(e){return $It(zIt(e),8,-1)},tR=ko.Object,jIt=Do("".split),CSe=Ha((function(){return!tR("z").propertyIsEnumerable(0)}))?function(e){return jh(e)=="String"?jIt(e,""):tR(e)}:tR,HIt=ko.TypeError,C0=function(e){if(e==null)throw HIt("Can't call method on "+e);return e},N5=function(e){return CSe(C0(e))},qs=function(e){return typeof e=="function"},kd=function(e){return typeof e=="object"?e!==null:qs(e)},WIt=function(e){return qs(e)?e:void 0},R5=function(e,t){return arguments.length<2?WIt(ko[e]):ko[e]&&ko[e][t]},xSe=Do({}.isPrototypeOf),nR=R5("navigator","userAgent")||"",Lde=ko.process,Fde=ko.Deno,Ude=Lde&&Lde.versions||Fde&&Fde.version,zde=Ude&&Ude.v8;zde&&(U8=(Kp=zde.split("."))[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1])),!U8&&nR&&(!(Kp=nR.match(/Edge\/(\d+)/))||Kp[1]>=74)&&(Kp=nR.match(/Chrome\/(\d+)/))&&(U8=+Kp[1]);var v$=U8,m$=!!Object.getOwnPropertySymbols&&!Ha((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&v$&&v$<41})),nY=m$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",VIt=ko.Object,rR=nY?function(e){return typeof e=="symbol"}:function(e){var t=R5("Symbol");return qs(t)&&xSe(t.prototype,VIt(e))},qIt=ko.String,SSe=function(e){try{return qIt(e)}catch{return"Object"}},GIt=ko.TypeError,ESe=function(e){if(qs(e))return e;throw GIt(SSe(e)+" is not a function")},rY=function(e,t){var n=e[t];return n==null?void 0:ESe(n)},KIt=ko.TypeError,YIt=Object.defineProperty,oY=function(e,t){try{YIt(ko,e,{value:t,configurable:!0,writable:!0})}catch{ko[e]=t}return t},Hh=ko["__core-js_shared__"]||oY("__core-js_shared__",{}),iY=wSe((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)"})})),QIt=ko.Object,aY=function(e){return QIt(C0(e))},ZIt=Do({}.hasOwnProperty),Hu=Object.hasOwn||function(e,t){return ZIt(aY(e),t)},XIt=0,JIt=Math.random(),eOt=Do(1 .toString),kSe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+eOt(++XIt+JIt,36)},Vw=iY("wks"),hv=ko.Symbol,$de=hv&&hv.for,tOt=nY?hv:hv&&hv.withoutSetter||kSe,sc=function(e){if(!Hu(Vw,e)||!m$&&typeof Vw[e]!="string"){var t="Symbol."+e;m$&&Hu(hv,e)?Vw[e]=hv[e]:Vw[e]=nY&&$de?$de(t):tOt(t)}return Vw[e]},nOt=ko.TypeError,rOt=sc("toPrimitive"),sY=function(e){var t=(function(n,r){if(!kd(n)||rR(n))return n;var o,i=rY(n,rOt);if(i){if(o=Ya(i,n,r),!kd(o)||rR(o))return o;throw nOt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(qs(l=a.toString)&&!kd(u=Ya(l,a))||qs(l=a.valueOf)&&!kd(u=Ya(l,a)))return u;throw KIt("Can't convert object to primitive value")})(n)})(e,"string");return rR(t)?t:t+""},y$=ko.document,oOt=kd(y$)&&kd(y$.createElement),lY=function(e){return oOt?y$.createElement(e):{}},TSe=!A0&&!Ha((function(){return Object.defineProperty(lY("div"),"a",{get:function(){return 7}}).a!=7})),jde=Object.getOwnPropertyDescriptor,_Se={f:A0?jde:function(e,t){if(e=N5(e),t=sY(t),TSe)try{return jde(e,t)}catch{}if(Hu(e,t))return tY(!Ya(FIt.f,e,t),e[t])}},iOt=ko.String,aOt=ko.TypeError,Wu=function(e){if(kd(e))return e;throw aOt(iOt(e)+" is not an object")},sOt=ko.TypeError,Hde=Object.defineProperty,B5={f:A0?Hde:function(e,t,n){if(Wu(e),t=sY(t),Wu(n),TSe)try{return Hde(e,t,n)}catch{}if("get"in n||"set"in n)throw sOt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gb=A0?function(e,t,n){return B5.f(e,t,tY(1,n))}:function(e,t,n){return e[t]=n,e},lOt=Do(Function.toString);qs(Hh.inspectSource)||(Hh.inspectSource=function(e){return lOt(e)});var b$,NT,w$,uY=Hh.inspectSource,Wde=ko.WeakMap,uOt=qs(Wde)&&/native code/.test(uY(Wde)),Vde=iY("keys"),DSe=function(e){return Vde[e]||(Vde[e]=kSe(e))},cY={},qde=ko.TypeError,cOt=ko.WeakMap;if(uOt||Hh.state){var ag=Hh.state||(Hh.state=new cOt),dOt=Do(ag.get),Gde=Do(ag.has),fOt=Do(ag.set);b$=function(e,t){if(Gde(ag,e))throw new qde("Object already initialized");return t.facade=e,fOt(ag,e,t),t},NT=function(e){return dOt(ag,e)||{}},w$=function(e){return Gde(ag,e)}}else{var a1=DSe("state");cY[a1]=!0,b$=function(e,t){if(Hu(e,a1))throw new qde("Object already initialized");return t.facade=e,gb(e,a1,t),t},NT=function(e){return Hu(e,a1)?e[a1]:{}},w$=function(e){return Hu(e,a1)}}var A$={get:NT,enforce:function(e){return w$(e)?NT(e):b$(e,{})}},ISe=Function.prototype,pOt=A0&&Object.getOwnPropertyDescriptor,Kde=Hu(ISe,"name"),dY={PROPER:Kde&&(function(){}).name==="something",CONFIGURABLE:Kde&&(!A0||A0&&pOt(ISe,"name").configurable)},VA=wSe((function(e){var t=dY.CONFIGURABLE,n=A$.get,r=A$.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)&&gb(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:gb(i,a,s)):c?i[a]=s:oY(a,s)})(Function.prototype,"toString",(function(){return qs(this)&&n(this).source||uY(this)}))})),hOt=Math.ceil,gOt=Math.floor,G7=function(e){var t=+e;return t!=t||t===0?0:(t>0?gOt:hOt)(t)},vOt=Math.max,mOt=Math.min,qA=function(e,t){var n=G7(e);return n<0?vOt(n+t,0):mOt(n,t)},yOt=Math.min,fY=function(e){return e>0?yOt(G7(e),9007199254740991):0},K7=function(e){return fY(e.length)},bOt=function(e){return function(t,n,r){var o,i=N5(t),a=K7(i),s=qA(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}},wOt=bOt(!1),Yde=Do([].push),OSe=function(e,t){var n,r=N5(e),o=0,i=[];for(n in r)!Hu(cY,n)&&Hu(r,n)&&Yde(i,n);for(;t.length>o;)Hu(r,n=t[o++])&&(~wOt(i,n)||Yde(i,n));return i},RT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AOt=RT.concat("length","prototype"),COt={f:Object.getOwnPropertyNames||function(e){return OSe(e,AOt)}},xOt={f:Object.getOwnPropertySymbols},SOt=Do([].concat),EOt=R5("Reflect","ownKeys")||function(e){var t=COt.f(Wu(e)),n=xOt.f;return n?SOt(t,n(e)):t},kOt=function(e,t){for(var n=EOt(t),r=B5.f,o=_Se.f,i=0;i<n.length;i++){var a=n[i];Hu(e,a)||r(e,a,o(t,a))}},TOt=/#|\.prototype\./,L5=function(e,t){var n=DOt[_Ot(e)];return n==OOt||n!=IOt&&(qs(t)?Ha(t):!!t)},_Ot=L5.normalize=function(e){return String(e).replace(TOt,".").toLowerCase()},DOt=L5.data={},IOt=L5.NATIVE="N",OOt=L5.POLYFILL="P",MOt=L5,POt=_Se.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]||oY(s,{}):(ko[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=POt(n,r))&&a.value:n[r],!MOt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;kOt(i,o)}(e.sham||o&&o.sham)&&gb(i,"sham",!0),VA(n,r,i,e)}},MSe={};MSe[sc("toStringTag")]="z";var pY=String(MSe)==="[object z]",NOt=sc("toStringTag"),ROt=ko.Object,BOt=jh((function(){return arguments})())=="Arguments",hY=pY?jh: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=ROt(e),NOt))=="string"?n:BOt?jh(t):(r=jh(t))=="Object"&&qs(t.callee)?"Arguments":r},LOt=ko.String,Bs=function(e){if(hY(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return LOt(e)},FOt=/"/g,UOt=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="'+UOt(Bs(t),FOt,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var H6,PSe=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},gY=ko.RegExp,C$=Ha((function(){var e=gY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));C$||Ha((function(){return!gY("a","y").sticky}));var NSe={BROKEN_CARET:C$||Ha((function(){var e=gY("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:C$},zOt=Object.keys||function(e){return OSe(e,RT)},$Ot=A0?Object.defineProperties:function(e,t){Wu(e);for(var n,r=N5(t),o=zOt(t),i=o.length,a=0;i>a;)B5.f(e,n=o[a++],r[n]);return e},jOt=R5("document","documentElement"),RSe=DSe("IE_PROTO"),oR=function(){},BSe=function(e){return"<script>"+e+"<\/script>"},Qde=function(e){e.write(BSe("")),e.close();var t=e.parentWindow.Object;return e=null,t},z8=function(){try{H6=new ActiveXObject("htmlfile")}catch{}var e,t;z8=typeof document<"u"?document.domain&&H6?Qde(H6):((t=lY("iframe")).style.display="none",jOt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(BSe("document.F=Object")),e.close(),e.F):Qde(H6);for(var n=RT.length;n--;)delete z8.prototype[RT[n]];return z8()};cY[RSe]=!0;var Zde,iR,LSe=Object.create||function(e,t){var n;return e!==null?(oR.prototype=Wu(e),n=new oR,oR.prototype=null,n[RSe]=e):n=z8(),t===void 0?n:$Ot(n,t)},HOt=ko.RegExp,WOt=Ha((function(){var e=HOt(".","s");return!(e.dotAll&&e.exec(`
  841. `)&&e.flags==="s")})),VOt=ko.RegExp,qOt=Ha((function(){var e=VOt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),GOt=A$.get,KOt=iY("native-string-replace",String.prototype.replace),BT=RegExp.prototype.exec,x$=BT,YOt=Do("".charAt),QOt=Do("".indexOf),ZOt=Do("".replace),aR=Do("".slice),sR=(iR=/b*/g,Ya(BT,Zde=/a/,"a"),Ya(BT,iR,"a"),Zde.lastIndex!==0||iR.lastIndex!==0),Xde=NSe.BROKEN_CARET,lR=/()??/.exec("")[1]!==void 0;(sR||lR||Xde||WOt||qOt)&&(x$=function(e){var t,n,r,o,i,a,s,l=this,u=GOt(l),d=Bs(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ya(x$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Xde&&l.sticky,v=Ya(PSe,l),h=l.source,g=0,y=d;if(p&&(v=ZOt(v,"y",""),QOt(v,"g")===-1&&(v+="g"),y=aR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&YOt(d,l.lastIndex-1)!==`
  842. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),lR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),sR&&(r=l.lastIndex),o=Ya(BT,p?n:l,y),p?o?(o.input=aR(o.input,g),o[0]=aR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:sR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),lR&&o&&o.length>1&&Ya(KOt,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=LSe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var GA=x$;x0({target:"RegExp",proto:!0,forced:/./.exec!==GA},{exec:GA});var LT=Array.isArray||function(e){return jh(e)=="Array"},FSe=function(){},XOt=[],USe=R5("Reflect","construct"),vY=/^\s*(?:class|function)\b/,JOt=Do(vY.exec),eMt=!vY.exec(FSe),qw=function(e){if(!qs(e))return!1;try{return USe(FSe,XOt,e),!0}catch{return!1}},mY=!USe||Ha((function(){var e;return qw(qw.call)||!qw(Object)||!qw((function(){e=!0}))||e}))?function(e){if(!qs(e))return!1;switch(hY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eMt||!!JOt(vY,uY(e))}:qw,zSe=function(e,t,n){var r=sY(t);r in e?B5.f(e,r,tY(0,n)):e[r]=n},tMt=sc("species"),yY=function(e){return v$>=51||!Ha((function(){var t=[];return(t.constructor={})[tMt]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},nMt=Do([].slice),rMt=yY("slice"),oMt=sc("species"),uR=ko.Array,iMt=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 Jde(e){var t=e.selection;if(t==null)return!1;var n=Hc(Ze.nodes(e,{match:function(i){return Et.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Hc(n,2)[1],o=Ze.start(e,r);if(mo.equals(t.anchor,o))return!0}return!1}function efe(e,t){var n,r,o=Ze.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:!rMt},{slice:function(e,t){var n,r,o,i=N5(this),a=K7(i),s=qA(e,a),l=qA(t===void 0?a:t,a);if(LT(i)&&(n=i.constructor,(mY(n)&&(n===uR||LT(n.prototype))||kd(n)&&(n=n[oMt])===null)&&(n=void 0),n===uR||n===void 0))return nMt(i,s,l);for(r=new(n===void 0?uR:n)(iMt(l-s,0)),o=0;s<l;s++,o++)s in i&&zSe(r,o,i[s]);return r.length=o,r}});var tfe=Do(Do.bind),aMt=sc("species"),nfe=ko.Array,sMt=function(e,t){return new((function(n){var r;return LT(n)&&(r=n.constructor,(mY(r)&&(r===nfe||LT(r.prototype))||kd(r)&&(r=r[aMt])===null)&&(r=void 0)),r===void 0?nfe:r})(e))(t===0?0:t)},rfe=Do([].push),W6=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=aY(l),h=CSe(v),g=(function(A,S){return ESe(A),S===void 0?A:tfe?tfe(A,S):function(){return A.apply(S,arguments)}})(u,d),y=K7(h),m=0,b=c||sMt,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:rfe(w,f)}else switch(e){case 4:return!1;case 7:rfe(w,f)}return i?-1:r||o?o:w}},Y7={forEach:W6(0),map:W6(1),filter:W6(2),find:W6(5)},lMt=Y7.map;x0({target:"Array",proto:!0,forced:!yY("map")},{map:function(e){return lMt(this,e,arguments.length>1?arguments[1]:void 0)}});var uMt=pY?{}.toString:function(){return"[object "+hY(this)+"]"};function Q7(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function $Se(e){return Q7(e).every((function(t){return!!t.isHeader}))}pY||VA(Object.prototype,"toString",uMt,{unsafe:!0});var cMt=dY.PROPER,S$=RegExp.prototype,jSe=S$.toString,dMt=Do(PSe),fMt=Ha((function(){return jSe.call({source:"a",flags:"b"})!="/a/b"})),pMt=cMt&&jSe.name!="toString";(fMt||pMt)&&VA(RegExp.prototype,"toString",(function(){var e=Wu(this),t=Bs(e.source),n=e.flags;return"/"+t+"/"+Bs(n===void 0&&xSe(S$,e)&&!("flags"in S$)?dMt(e):n)}),{unsafe:!0});var E$=sc("unscopables"),k$=Array.prototype;k$[E$]==null&&B5.f(k$,E$,{configurable:!0,value:LSe(null)});var hMt=Y7.find,ofe=!0;"find"in[]&&Array(1).find((function(){ofe=!1})),x0({target:"Array",proto:!0,forced:ofe},{find:function(e){return hMt(this,e,arguments.length>1?arguments[1]:void 0)}}),k$[E$].find=!0;var bY=Function.prototype,ife=bY.apply,gMt=bY.bind,afe=bY.call,HSe=typeof Reflect=="object"&&Reflect.apply||(gMt?afe.bind(ife):function(){return afe.apply(ife,arguments)}),vMt=sc("species"),cR=RegExp.prototype,WSe=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[vMt]=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===GA||h===cR.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));VA(String.prototype,e,l[0]),VA(cR,o,l[1])}r&&gb(cR[o],"sham",!0)},mMt=sc("match"),yMt=ko.TypeError,bMt=sc("species"),wMt=Do("".charAt),sfe=Do("".charCodeAt),AMt=Do("".slice),CMt=function(e){return function(t,n){var r,o,i=Bs(C0(t)),a=G7(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=sfe(i,a))<55296||r>56319||a+1===s||(o=sfe(i,a+1))<56320||o>57343?e?wMt(i,a):r:e?AMt(i,a,a+2):o-56320+(r-55296<<10)+65536}},xMt=CMt(!0),VSe=function(e,t,n){return t+(n?xMt(e,t).length:1)},SMt=ko.Array,EMt=Math.max,lfe=function(e,t,n){for(var r=K7(e),o=qA(t,r),i=qA(n===void 0?r:n,r),a=SMt(EMt(i-o,0)),s=0;o<i;o++,s++)zSe(a,s,e[o]);return a.length=s,a},kMt=ko.TypeError,T$=function(e,t){var n=e.exec;if(qs(n)){var r=Ya(n,e,t);return r!==null&&Wu(r),r}if(jh(e)==="RegExp")return Ya(GA,e,t);throw kMt("RegExp#exec called on incompatible receiver")},s1=NSe.UNSUPPORTED_Y,TMt=Math.min,qSe=[].push,_Mt=Do(/./.exec),l1=Do(qSe),Gw=Do("".slice);WSe("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[mMt])!==void 0?s:jh(a)=="RegExp"))return Ya(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=Ya(GA,g,l))&&!((c=g.lastIndex)>h&&(l1(p,Gw(l,h,d.index)),d.length>1&&d.index<l.length&&HSe(qSe,p,lfe(d,1)),f=d[0].length,h=c,p.length>=u));)g.lastIndex===d.index&&g.lastIndex++;return h===l.length?!f&&_Mt(g,"")||l1(p,""):l1(p,Gw(l,h)),p.length>u?lfe(p,0,u):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ya(t,this,o,i)}:t,[function(o,i){var a=C0(this),s=o==null?void 0:rY(o,e);return s?Ya(s,o,a,i):Ya(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)[bMt])==null?A:(function(O){if(mY(O))return O;throw yMt(SSe(O)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(s1?"g":"y"),f=new u(s1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return T$(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=s1?0:h;var y,m=T$(f,s1?Gw(s,h):s);if(m===null||(y=TMt(fY(f.lastIndex+(s1?h:0)),s.length))===v)h=VSe(s,h,d);else{if(l1(g,Gw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(l1(g,m[b]),g.length===p)return g;h=v=y}}return l1(g,Gw(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"})),s1);var _$=`
  843. \v\f\r                 \u2028\u2029\uFEFF`,ufe=Do("".replace),FT="["+_$+"]",DMt=RegExp("^"+FT+FT+"*"),IMt=RegExp(FT+FT+"*$"),OMt=function(e){return function(t){var n=Bs(C0(t));return 1&e&&(n=ufe(n,DMt,"")),2&e&&(n=ufe(n,IMt,"")),n}},MMt={trim:OMt(3)},PMt=dY.PROPER,NMt=MMt.trim;function GSe(e){return e.length?e[0].tagName.toLowerCase():""}x0({target:"String",proto:!0,forced:(function(e){return Ha((function(){return!!_$[e]()||"​…᠎"[e]()!=="​…᠎"||PMt&&_$[e].name!==e}))})("trim")},{trim:function(){return NMt(this)}}),x0({global:!0},{globalThis:ko}),ec&&(Pt.fn.append=ec),Hd&&(Pt.fn.on=Hd),g0&&(Pt.fn.focus=g0),Ju&&(Pt.fn.attr=Ju),jd&&(Pt.fn.val=jd),h0&&(Pt.fn.html=h0),Jy&&(Pt.fn.dataset=Jy),Qy&&(Pt.fn.addClass=Qy),Zy&&(Pt.fn.removeClass=Zy),rb&&(Pt.fn.children=rb),$k&&(Pt.fn.each=$k),nb&&(Pt.fn.find=nb);var KA=!1,KSe=0,YSe=0,YA=null,QA=null,y3=Pt("body");function QSe(e){KA=!1,QA=null,YA=null,y3.off("mousemove",ZSe),y3.off("mouseup",QSe)}y3.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(),KA=!0;var n=e.clientX;KSe=n;var r=t.getBoundingClientRect().width;YSe=r,y3.on("mousemove",ZSe),y3.on("mouseup",QSe)}}));var ZSe=jv((function(e){if(KA&&QA!=null&&YA!=null){e.preventDefault();var t=e.clientX,n=YSe+(t-KSe);(n=Math.floor(100*n)/100)<30&&(n=30),Xt.setNodes(QA,{width:n.toString()},{at:YA})}}),100),RMt={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=Ze.start(s,f),v=Ze.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=Ze.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,Q7(e).map((function(s){var l=s.width;return Xr("col",{width:l===void 0?"auto":l})}))),Xr("tbody",null,t)));return a}},BMt={type:"table-row",renderElem:function(e,t,n){return Xr("tr",null,t)}},LMt={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&&Q7(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:jv((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;KA||(b>h+g-5&&b<h+g&&w>y&&w<y+m?(p.style.cursor="col-resize",QA=n,YA=Et.findPath(n,e)):KA||(p.style.cursor="auto",QA=null,YA=null))}}),100)}},t);return c}},FMt={selector:"table",preParseHtml:function(e){var t=Pt(e);if(GSe(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]}},UMt=Y7.filter;x0({target:"Array",proto:!0,forced:!yY("filter")},{filter:function(e){return UMt(this,e,arguments.length>1?arguments[1]:void 0)}});var zMt=Math.floor,dR=Do("".charAt),$Mt=Do("".replace),fR=Do("".slice),jMt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HMt=/\$([$&'`]|\d{1,2})/g,WMt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=HMt;return o!==void 0&&(o=aY(o),l=jMt),$Mt(i,l,(function(u,d){var c;switch(dR(d,0)){case"$":return"$";case"&":return e;case"`":return fR(t,0,n);case"'":return fR(t,a);case"<":c=o[fR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=zMt(f/10);return p===0?u:p<=s?r[p-1]===void 0?dR(d,1):r[p-1]+dR(d,1):u}c=r[f-1]}return c===void 0?"":c}))},D$=sc("replace"),VMt=Math.max,qMt=Math.min,GMt=Do([].concat),pR=Do([].push),cfe=Do("".indexOf),dfe=Do("".slice),KMt="a".replace(/./,"$0")==="$0",ffe=!!/./[D$]&&/./[D$]("a","$0")==="";WSe("replace",(function(e,t,n){var r=ffe?"$":"$0";return[function(o,i){var a=C0(this),s=o==null?void 0:rY(o,D$);return s?Ya(s,o,a,i):Ya(t,Bs(a),o,i)},function(o,i){var a=Wu(this),s=Bs(o);if(typeof i=="string"&&cfe(i,r)===-1&&cfe(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=T$(a,s);if(p===null||(pR(f,p),!d))break;Bs(p[0])===""&&(a.lastIndex=VSe(s,fY(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Bs((p=f[y])[0]),b=VMt(qMt(G7(p.index),s.length),0),w=[],A=1;A<p.length;A++)pR(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var k=GMt([m],w,b,s);S!==void 0&&pR(k,S);var O=Bs(HSe(i,void 0,k))}else O=WMt(m,s,b,w,S,i);b>=g&&(h+=dfe(s,g,b)+O,g=b+m.length)}return h+dfe(s,g)}]}),!!Ha((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!KMt||ffe);var YMt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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:GSe(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},QMt={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"}))}}},ZMt={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(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"}))}}},XMt=(function(){function e(){this.title=Qn("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=Pt('<div class="w-e-panel-content-table"></div>'),o=Pt("<span>0 &times; 0</span>"),i=Pt("<table></table>"),a=0;a<10;a++){for(var s=Pt("<tr></tr>"),l=0;l<10;l++){var u=Pt("<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=Pt(c).dataset(),p=f.x,v=f.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each((function(h){Pt(h).children().each((function(g){var y=Pt(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=Pt(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)&&Xt.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);Xt.insertNodes(t,a,{mode:"highest"})}},e})(),JMt=(function(){function e(){this.title=Qn("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)||Xt.removeNodes(t,{mode:"highest"})},e})(),ePt=(function(){function e(){this.title=Qn("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(Ze.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);Xt.insertNodes(t,u,{at:f})}}},e})(),tPt=(function(){function e(){this.title=Qn("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(Ze.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?Xt.removeNodes(t,{mode:"highest"}):Xt.removeNodes(t,{at:a})}},e})(),pfe={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},hR=lY("span").classList,hfe=hR&&hR.constructor&&hR.constructor.prototype,nPt=hfe===Object.prototype?void 0:hfe,rPt=Y7.forEach,oPt=(function(e,t){var n=[].forEach;return!!n&&Ha((function(){n.call(null,(function(){throw 1}),1)}))})(),gR=oPt?[].forEach:function(e){return rPt(this,e,arguments.length>1?arguments[1]:void 0)},XSe=function(e){if(e&&e.forEach!==gR)try{gb(e,"forEach",gR)}catch{e.forEach=gR}};for(var vR in pfe)pfe[vR]&&XSe(ko[vR]&&ko[vR].prototype);XSe(nPt);var iPt=(function(){function e(){this.title=Qn("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(Ze.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&&bSe(f.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};d===0&&$Se(l)&&(p.isHeader=!0),Xt.insertNodes(t,p,{at:f})}}))}))}}},e})(),aPt=(function(){function e(){this.title=Qn("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(Ze.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)Xt.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&&bSe(f.slice(-1),a.slice(-1))&&Xt.removeNodes(t,{at:f})}))}))}}},e})(),sPt=(function(){function e(){this.title=Qn("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&&$Se(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&&Q7(o).forEach((function(i){return Xt.setNodes(t,{isHeader:r},{at:Et.findPath(t,i)})}))}},e})(),lPt=(function(){function e(){this.title=Qn("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%"};Xt.setNodes(t,r,{mode:"highest"})}},e})(),uPt={renderElems:[RMt,BMt,LMt],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:[YMt,QMt,ZMt],menus:[{key:"insertTable",factory:function(){return new XMt}},{key:"deleteTable",factory:function(){return new JMt}},{key:"insertTableRow",factory:function(){return new ePt}},{key:"deleteTableRow",factory:function(){return new tPt}},{key:"insertTableCol",factory:function(){return new iPt}},{key:"deleteTableCol",factory:function(){return new aPt}},{key:"tableHeader",factory:function(){return new sPt}},{key:"tableFullWidth",factory:function(){return new lPt}}],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(`
  844. `)},l.deleteBackward=function(u){if(!Jde(l)){var d=l.selection;if(d){var c=Ze.before(l,d);if(c){var f=efe(l,c),p=efe(l,d);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(Et.getSelectedNodeByType(l,"table")){var d=Ze.above(e);Et.checkNodeType(d[0],"table-cell")&&Xt.select(e,d[1]);var c=Ze.next(e);if(c)c[0]&&c[0].text&&(c=(u=Ze.above(e,{at:c[1]}))!==null&&u!==void 0?u:c),Xt.select(e,c[1]);else{var f=l.children||[],p=f.length;if(Et.checkNodeType(f[p-1],"table")){var v=Et.genEmptyParagraph();Xt.insertNodes(l,v,{at:[p]}),l.handleTab()}}}else a()},l.deleteForward=function(u){Jde(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();Xt.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(Et.getSelectedNodeByType(l,"table")!=null){var d=u.getData("text/plain");d===`
  845. `||/<img[^>]+>/.test(u.getData("text/html"))?i(u):Ze.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(Yn.string(d).length!==0){var p=Et.findPath(l,d),v={anchor:Ze.start(l,p),focus:Ze.end(l,p)};l.select(v)}else s();else s()}else s()}else s()},l}};$l("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"}}),$l("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
  846. Copyright (c) Microsoft Corporation.
  847. Permission to use, copy, modify, and/or distribute this software for any
  848. purpose with or without fee is hereby granted.
  849. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  850. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  851. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  852. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  853. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  854. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  855. PERFORMANCE OF THIS SOFTWARE.
  856. ***************************************************************************** */var UT=function(){return UT=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},UT.apply(this,arguments)};function Z7(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 X7(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 cPt(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 gfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wY(e){var t={exports:{}};return e(t,t.exports),t.exports}var Yp,$8,V6=function(e){return e&&e.Math==Math&&e},Jn=V6(typeof globalThis=="object"&&globalThis)||V6(typeof window=="object"&&window)||V6(typeof self=="object"&&self)||V6(typeof gfe=="object"&&gfe)||(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})),Kw=Function.prototype.call,Ti=Kw.bind?Kw.bind(Kw):function(){return Kw.apply(Kw,arguments)},vfe={}.propertyIsEnumerable,mfe=Object.getOwnPropertyDescriptor,dPt={f:mfe&&!vfe.call({1:2},1)?function(e){var t=mfe(this,e);return!!t&&t.enumerable}:vfe},J7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JSe=Function.prototype,I$=JSe.bind,O$=JSe.call,fPt=I$&&I$.bind(O$),so=I$?function(e){return e&&fPt(O$,e)}:function(e){return e&&function(){return O$.apply(e,arguments)}},pPt=so({}.toString),hPt=so("".slice),Nd=function(e){return hPt(pPt(e),8,-1)},mR=Jn.Object,gPt=so("".split),AY=Ii((function(){return!mR("z").propertyIsEnumerable(0)}))?function(e){return Nd(e)=="String"?gPt(e,""):mR(e)}:mR,vPt=Jn.TypeError,F5=function(e){if(e==null)throw vPt("Can't call method on "+e);return e},U0=function(e){return AY(F5(e))},gi=function(e){return typeof e=="function"},Hi=function(e){return typeof e=="object"?e!==null:gi(e)},mPt=function(e){return gi(e)?e:void 0},Xv=function(e,t){return arguments.length<2?mPt(Jn[e]):Jn[e]&&Jn[e][t]},ZA=so({}.isPrototypeOf),vy=Xv("navigator","userAgent")||"",yfe=Jn.process,bfe=Jn.Deno,wfe=yfe&&yfe.versions||bfe&&bfe.version,Afe=wfe&&wfe.v8;Afe&&($8=(Yp=Afe.split("."))[0]>0&&Yp[0]<4?1:+(Yp[0]+Yp[1])),!$8&&vy&&(!(Yp=vy.match(/Edge\/(\d+)/))||Yp[1]>=74)&&(Yp=vy.match(/Chrome\/(\d+)/))&&($8=+Yp[1]);var XA=$8,M$=!!Object.getOwnPropertySymbols&&!Ii((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XA&&XA<41})),CY=M$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yPt=Jn.Object,yR=CY?function(e){return typeof e=="symbol"}:function(e){var t=Xv("Symbol");return gi(t)&&ZA(t.prototype,yPt(e))},bPt=Jn.String,zT=function(e){try{return bPt(e)}catch{return"Object"}},wPt=Jn.TypeError,S0=function(e){if(gi(e))return e;throw wPt(zT(e)+" is not a function")},JA=function(e,t){var n=e[t];return n==null?void 0:S0(n)},APt=Jn.TypeError,CPt=Object.defineProperty,xY=function(e,t){try{CPt(Jn,e,{value:t,configurable:!0,writable:!0})}catch{Jn[e]=t}return t},Wh=Jn["__core-js_shared__"]||xY("__core-js_shared__",{}),SY=wY((function(e){(e.exports=function(t,n){return Wh[t]||(Wh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xPt=Jn.Object,e9=function(e){return xPt(F5(e))},SPt=so({}.hasOwnProperty),$a=Object.hasOwn||function(e,t){return SPt(e9(e),t)},EPt=0,kPt=Math.random(),TPt=so(1 .toString),EY=function(e){return"Symbol("+(e===void 0?"":e)+")_"+TPt(++EPt+kPt,36)},Yw=SY("wks"),vv=Jn.Symbol,Cfe=vv&&vv.for,_Pt=CY?vv:vv&&vv.withoutSetter||EY,Oa=function(e){if(!$a(Yw,e)||!M$&&typeof Yw[e]!="string"){var t="Symbol."+e;M$&&$a(vv,e)?Yw[e]=vv[e]:Yw[e]=CY&&Cfe?Cfe(t):_Pt(t)}return Yw[e]},DPt=Jn.TypeError,IPt=Oa("toPrimitive"),kY=function(e){var t=(function(n,r){if(!Hi(n)||yR(n))return n;var o,i=JA(n,IPt);if(i){if(o=Ti(i,n,r),!Hi(o)||yR(o))return o;throw DPt("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 APt("Can't convert object to primitive value")})(n)})(e,"string");return yR(t)?t:t+""},P$=Jn.document,OPt=Hi(P$)&&Hi(P$.createElement),eC=function(e){return OPt?P$.createElement(e):{}},e8e=!Vd&&!Ii((function(){return Object.defineProperty(eC("div"),"a",{get:function(){return 7}}).a!=7})),xfe=Object.getOwnPropertyDescriptor,TY={f:Vd?xfe:function(e,t){if(e=U0(e),t=kY(t),e8e)try{return xfe(e,t)}catch{}if($a(e,t))return J7(!Ti(dPt.f,e,t),e[t])}},MPt=Jn.String,PPt=Jn.TypeError,hs=function(e){if(Hi(e))return e;throw PPt(MPt(e)+" is not an object")},NPt=Jn.TypeError,Sfe=Object.defineProperty,Ap={f:Vd?Sfe:function(e,t,n){if(hs(e),t=kY(t),hs(n),e8e)try{return Sfe(e,t,n)}catch{}if("get"in n||"set"in n)throw NPt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Vh=Vd?function(e,t,n){return Ap.f(e,t,J7(1,n))}:function(e,t,n){return e[t]=n,e},RPt=so(Function.toString);gi(Wh.inspectSource)||(Wh.inspectSource=function(e){return RPt(e)});var $T,b3,jT,t9=Wh.inspectSource,Efe=Jn.WeakMap,t8e=gi(Efe)&&/native code/.test(t9(Efe)),kfe=SY("keys"),_Y=function(e){return kfe[e]||(kfe[e]=EY(e))},n9={},N$=Jn.TypeError,BPt=Jn.WeakMap;if(t8e||Wh.state){var sg=Wh.state||(Wh.state=new BPt),LPt=so(sg.get),Tfe=so(sg.has),FPt=so(sg.set);$T=function(e,t){if(Tfe(sg,e))throw new N$("Object already initialized");return t.facade=e,FPt(sg,e,t),t},b3=function(e){return LPt(sg,e)||{}},jT=function(e){return Tfe(sg,e)}}else{var u1=_Y("state");n9[u1]=!0,$T=function(e,t){if($a(e,u1))throw new N$("Object already initialized");return t.facade=e,Vh(e,u1,t),t},b3=function(e){return $a(e,u1)?e[u1]:{}},jT=function(e){return $a(e,u1)}}var gu={set:$T,get:b3,has:jT,enforce:function(e){return jT(e)?b3(e):$T(e,{})},getterFor:function(e){return function(t){var n;if(!Hi(t)||(n=b3(t)).type!==e)throw N$("Incompatible receiver, "+e+" required");return n}}},n8e=Function.prototype,UPt=Vd&&Object.getOwnPropertyDescriptor,bR=$a(n8e,"name"),d2={EXISTS:bR,PROPER:bR&&(function(){}).name==="something",CONFIGURABLE:bR&&(!Vd||Vd&&UPt(n8e,"name").configurable)},oc=wY((function(e){var t=d2.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")+"]"),(!$a(s,"name")||t&&s.name!==p)&&Vh(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:Vh(i,a,s)):c?i[a]=s:xY(a,s)})(Function.prototype,"toString",(function(){return gi(this)&&n(this).source||t9(this)}))})),zPt=Math.ceil,$Pt=Math.floor,r9=function(e){var t=+e;return t!=t||t===0?0:(t>0?$Pt:zPt)(t)},jPt=Math.max,HPt=Math.min,tC=function(e,t){var n=r9(e);return n<0?jPt(n+t,0):HPt(n,t)},WPt=Math.min,r8e=function(e){return e>0?WPt(r9(e),9007199254740991):0},U5=function(e){return r8e(e.length)},_fe=function(e){return function(t,n,r){var o,i=U0(t),a=U5(i),s=tC(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}},o8e={includes:_fe(!0),indexOf:_fe(!1)},VPt=o8e.indexOf,Dfe=so([].push),i8e=function(e,t){var n,r=U0(e),o=0,i=[];for(n in r)!$a(n9,n)&&$a(r,n)&&Dfe(i,n);for(;t.length>o;)$a(r,n=t[o++])&&(~VPt(i,n)||Dfe(i,n));return i},HT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qPt=HT.concat("length","prototype"),WT={f:Object.getOwnPropertyNames||function(e){return i8e(e,qPt)}},GPt={f:Object.getOwnPropertySymbols},KPt=so([].concat),YPt=Xv("Reflect","ownKeys")||function(e){var t=WT.f(hs(e)),n=GPt.f;return n?KPt(t,n(e)):t},QPt=function(e,t){for(var n=YPt(t),r=Ap.f,o=TY.f,i=0;i<n.length;i++){var a=n[i];$a(e,a)||r(e,a,o(t,a))}},ZPt=/#|\.prototype\./,z5=function(e,t){var n=JPt[XPt(e)];return n==tNt||n!=eNt&&(gi(t)?Ii(t):!!t)},XPt=z5.normalize=function(e){return String(e).replace(ZPt,".").toLowerCase()},JPt=z5.data={},eNt=z5.NATIVE="N",tNt=z5.POLYFILL="P",VT=z5,nNt=TY.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]||xY(s,{}):(Jn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=nNt(n,r))&&a.value:n[r],!VT(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;QPt(i,o)}(e.sham||o&&o.sham)&&Vh(i,"sham",!0),oc(n,r,i,e)}},a8e={};a8e[Oa("toStringTag")]="z";var DY=String(a8e)==="[object z]",rNt=Oa("toStringTag"),oNt=Jn.Object,iNt=Nd((function(){return arguments})())=="Arguments",o9=DY?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=oNt(e),rNt))=="string"?n:iNt?Nd(t):(r=Nd(t))=="Object"&&gi(t.callee)?"Arguments":r},aNt=Jn.String,Ou=function(e){if(o9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return aNt(e)},R$=`
  857. \v\f\r                 \u2028\u2029\uFEFF`,Ife=so("".replace),qT="["+R$+"]",sNt=RegExp("^"+qT+qT+"*"),lNt=RegExp(qT+qT+"*$"),uNt=function(e){return function(t){var n=Ou(F5(t));return 1&e&&(n=Ife(n,sNt,"")),2&e&&(n=Ife(n,lNt,"")),n}},cNt={trim:uNt(3)},dNt=d2.PROPER,fNt=cNt.trim;function Ofe(e){return e.length?e[0].tagName.toLowerCase():""}function s8e(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=Pt(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Tl({target:"String",proto:!0,forced:Ii((function(){return!!R$.trim()||"​…᠎".trim()!=="​…᠎"||dNt&&R$.trim.name!=="trim"}))},{trim:function(){return fNt(this)}}),Tl({global:!0},{globalThis:Jn}),ec&&(Pt.fn.append=ec),Hd&&(Pt.fn.on=Hd),g0&&(Pt.fn.focus=g0),Ju&&(Pt.fn.attr=Ju),jd&&(Pt.fn.val=jd),h0&&(Pt.fn.html=h0),tb&&(Pt.fn.parent=tb),Xy&&(Pt.fn.hasClass=Xy),ib&&(Pt.fn.empty=ib);var q6,pNt={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:s8e(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.
  858. 抱歉,浏览器不支持 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 ab("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},r)}},hNt={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>
  859. `;return o.trim().indexOf("<iframe ")===0?c+=s8e(o,l,d):c+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+d+'"><source src="'+o+'" type="video/mp4"/></video>',c+`
  860. </div>`}},gNt=Object.keys||function(e){return i8e(e,HT)},vNt=Vd?Object.defineProperties:function(e,t){hs(e);for(var n,r=U0(t),o=gNt(t),i=o.length,a=0;i>a;)Ap.f(e,n=o[a++],r[n]);return e},B$=Xv("document","documentElement"),l8e=_Y("IE_PROTO"),wR=function(){},u8e=function(e){return"<script>"+e+"<\/script>"},Mfe=function(e){e.write(u8e("")),e.close();var t=e.parentWindow.Object;return e=null,t},j8=function(){try{q6=new ActiveXObject("htmlfile")}catch{}var e,t;j8=typeof document<"u"?document.domain&&q6?Mfe(q6):((t=eC("iframe")).style.display="none",B$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(u8e("document.F=Object")),e.close(),e.F):Mfe(q6);for(var n=HT.length;n--;)delete j8.prototype[HT[n]];return j8()};n9[l8e]=!0;var IY=Object.create||function(e,t){var n;return e!==null?(wR.prototype=hs(e),n=new wR,wR.prototype=null,n[l8e]=e):n=j8(),t===void 0?n:vNt(n,t)},L$=Oa("unscopables"),F$=Array.prototype;F$[L$]==null&&Ap.f(F$,L$,{configurable:!0,value:IY(null)});var w3=function(e){F$[L$][e]=!0},mNt=o8e.includes;Tl({target:"Array",proto:!0},{includes:function(e){return mNt(this,e,arguments.length>1?arguments[1]:void 0)}}),w3("includes");var yNt={selector:"iframe,video,p",preParseHtml:function(e){var t=Pt(e),n=t;if(Ofe(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Pt(o))}}var a=Ofe(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=Pt('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},Pfe=so(so.bind),nC=function(e,t){return S0(e),t===void 0?e:Pfe?Pfe(e,t):function(){return e.apply(t,arguments)}},GT=Array.isArray||function(e){return Nd(e)=="Array"},c8e=function(){},bNt=[],d8e=Xv("Reflect","construct"),OY=/^\s*(?:class|function)\b/,wNt=so(OY.exec),ANt=!OY.exec(c8e),Qw=function(e){if(!gi(e))return!1;try{return d8e(c8e,bNt,e),!0}catch{return!1}},MY=!d8e||Ii((function(){var e;return Qw(Qw.call)||!Qw(Object)||!Qw((function(){e=!0}))||e}))?function(e){if(!gi(e))return!1;switch(o9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ANt||!!wNt(OY,t9(e))}:Qw,CNt=Oa("species"),Nfe=Jn.Array,xNt=function(e,t){return new((function(n){var r;return GT(n)&&(r=n.constructor,(MY(r)&&(r===Nfe||GT(r.prototype))||Hi(r)&&(r=r[CNt])===null)&&(r=void 0)),r===void 0?Nfe:r})(e))(t===0?0:t)},Rfe=so([].push),Bfe=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=e9(l),h=AY(v),g=nC(u,d),y=U5(h),m=0,b=c||xNt,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:Rfe(w,f)}else switch(e){case 4:return!1;case 7:Rfe(w,f)}return i?-1:r||o?o:w}},PY={find:Bfe(5),findIndex:Bfe(6)},SNt=PY.find,Lfe=!0;"find"in[]&&Array(1).find((function(){Lfe=!1})),Tl({target:"Array",proto:!0,forced:Lfe},{find:function(e){return SNt(this,e,arguments.length>1?arguments[1]:void 0)}}),w3("find");var ENt=DY?{}.toString:function(){return"[object "+o9(this)+"]"};function Ffe(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:""}]}}DY||oc(Object.prototype,"toString",ENt,{unsafe:!0});var Ufe,AR,kNt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Pt(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",Ffe(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",Ffe(o,i=u.attr("poster")||"",a,s)}},f8e=function(){var e=hs(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},NY=Jn.RegExp,p8e=Ii((function(){var e=NY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));p8e||Ii((function(){return!NY("a","y").sticky}));var TNt={BROKEN_CARET:p8e||Ii((function(){var e=NY("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},_Nt=Jn.RegExp,DNt=Ii((function(){var e=_Nt(".","s");return!(e.dotAll&&e.exec(`
  861. `)&&e.flags==="s")})),INt=Jn.RegExp,ONt=Ii((function(){var e=INt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),MNt=gu.get,PNt=SY("native-string-replace",String.prototype.replace),KT=RegExp.prototype.exec,U$=KT,NNt=so("".charAt),RNt=so("".indexOf),BNt=so("".replace),CR=so("".slice),xR=(AR=/b*/g,Ti(KT,Ufe=/a/,"a"),Ti(KT,AR,"a"),Ufe.lastIndex!==0||AR.lastIndex!==0),zfe=TNt.BROKEN_CARET,SR=/()??/.exec("")[1]!==void 0;(xR||SR||zfe||DNt||ONt)&&(U$=function(e){var t,n,r,o,i,a,s,l=this,u=MNt(l),d=Ou(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ti(U$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=zfe&&l.sticky,v=Ti(f8e,l),h=l.source,g=0,y=d;if(p&&(v=BNt(v,"y",""),RNt(v,"g")===-1&&(v+="g"),y=CR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&NNt(d,l.lastIndex-1)!==`
  862. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),SR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),xR&&(r=l.lastIndex),o=Ti(KT,p?n:l,y),p?o?(o.input=CR(o.input,g),o[0]=CR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:xR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),SR&&o&&o.length>1&&Ti(PNt,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=IY(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var YT=U$;Tl({target:"RegExp",proto:!0,forced:/./.exec!==YT},{exec:YT});var RY=Function.prototype,$fe=RY.apply,LNt=RY.bind,jfe=RY.call,h8e=typeof Reflect=="object"&&Reflect.apply||(LNt?jfe.bind($fe):function(){return jfe.apply($fe,arguments)}),Hfe=(Oa("species"),RegExp.prototype),FNt=so("".charAt),Wfe=so("".charCodeAt),UNt=so("".slice),zNt=function(e){return function(t,n){var r,o,i=Ou(F5(t)),a=r9(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Wfe(i,a))<55296||r>56319||a+1===s||(o=Wfe(i,a+1))<56320||o>57343?e?FNt(i,a):r:e?UNt(i,a,a+2):o-56320+(r-55296<<10)+65536}},g8e={charAt:zNt(!0)},$Nt=g8e.charAt,jNt=function(e,t,n){return t+(n?$Nt(e,t).length:1)},HNt=Math.floor,ER=so("".charAt),WNt=so("".replace),kR=so("".slice),VNt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qNt=/\$([$&'`]|\d{1,2})/g,GNt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=qNt;return o!==void 0&&(o=e9(o),l=VNt),WNt(i,l,(function(u,d){var c;switch(ER(d,0)){case"$":return"$";case"&":return e;case"`":return kR(t,0,n);case"'":return kR(t,a);case"<":c=o[kR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=HNt(f/10);return p===0?u:p<=s?r[p-1]===void 0?ER(d,1):r[p-1]+ER(d,1):u}c=r[f-1]}return c===void 0?"":c}))},KNt=Jn.TypeError,YNt=function(e,t){var n=e.exec;if(gi(n)){var r=Ti(n,e,t);return r!==null&&hs(r),r}if(Nd(e)==="RegExp")return Ti(YT,e,t);throw KNt("RegExp#exec called on incompatible receiver")},z$=Oa("replace"),QNt=Math.max,ZNt=Math.min,XNt=so([].concat),TR=so([].push),Vfe=so("".indexOf),qfe=so("".slice),JNt="a".replace(/./,"$0")==="$0",Gfe=!!/./[z$]&&/./[z$]("a","$0")==="";function v8e(e){return e+"-"+SCe()}(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=Gfe?"$":"$0";return[function(p,v){var h=F5(this),g=p==null?void 0:JA(p,z$);return g?Ti(g,p,h,v):Ti(d,Ou(h),p,v)},function(p,v){var h=hs(this),g=Ou(p);if(typeof v=="string"&&Vfe(v,f)===-1&&Vfe(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=YNt(h,g);if(S===null||(TR(A,S),!b))break;Ou(S[0])===""&&(h.lastIndex=jNt(g,r8e(h.lastIndex),w))}for(var k,O="",I=0,P=0;P<A.length;P++){for(var M=Ou((S=A[P])[0]),_=QNt(ZNt(r9(S.index),g.length),0),R=[],N=1;N<S.length;N++)TR(R,(k=S[N])===void 0?k:String(k));var V=S.groups;if(m){var L=XNt([M],R,_,g);V!==void 0&&TR(L,V);var j=Ou(h8e(v,void 0,L))}else j=GNt(M,g,_,R,V,v);_>=I&&(O+=qfe(g,I,_)+j,I=_+M.length)}return O+qfe(g,I)}]})(0,""[e],(function(u,d,c,f,p){var v=so(u),h=d.exec;return h===YT||h===Hfe.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(Hfe,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"}))||!JNt||Gfe);var QT=Jn.Promise,ZT=function(e,t,n){for(var r in t)oc(e,r,t[r],n);return e},eRt=Jn.String,tRt=Jn.TypeError,vb=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 hs(r),(function(i){if(typeof i=="object"||gi(i))return i;throw tRt("Can't set "+eRt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),nRt=Ap.f,Kfe=Oa("toStringTag"),XT=function(e,t,n){e&&!$a(e=n?e:e.prototype,Kfe)&&nRt(e,Kfe,{configurable:!0,value:t})},Yfe=Oa("species"),rRt=Jn.TypeError,BY=function(e,t){if(ZA(t,e))return e;throw rRt("Incorrect invocation")},mb={},oRt=Oa("iterator"),iRt=Array.prototype,aRt=Oa("iterator"),Qfe=function(e){if(e!=null)return JA(e,aRt)||JA(e,"@@iterator")||mb[o9(e)]},sRt=Jn.TypeError,Zfe=function(e,t,n){var r,o;hs(e);try{if(!(r=JA(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 hs(r),n},lRt=Jn.TypeError,H8=function(e,t){this.stopped=e,this.result=t},Xfe=H8.prototype,JT=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=nC(t,c),g=function(m){return r&&Zfe(r,"normal",m),new H8(!0,m)},y=function(m){return f?(hs(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=Qfe(e)))throw lRt(zT(e)+" is not iterable");if((d=o)!==void 0&&(mb.Array===d||iRt[oRt]===d)){for(i=0,a=U5(e);a>i;i++)if((s=y(e[i]))&&ZA(Xfe,s))return s;return new H8(!1)}r=(function(m,b){var w=arguments.length<2?Qfe(m):b;if(S0(w))return hs(Ti(w,m));throw sRt(zT(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=Ti(l,r)).done;){try{s=y(u.value)}catch(m){Zfe(r,"throw",m)}if(typeof s=="object"&&s&&ZA(Xfe,s))return s}return new H8(!1)},m8e=Oa("iterator"),y8e=!1;try{var uRt=0,Jfe={next:function(){return{done:!!uRt++}},return:function(){y8e=!0}};Jfe[m8e]=function(){return this},Array.from(Jfe,(function(){throw 2}))}catch{}var rC,c1,epe,_R,b8e=function(e,t){if(!y8e)return!1;var n=!1;try{var r={};r[m8e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},cRt=Jn.TypeError,dRt=Oa("species"),w8e=so([].slice),A8e=/(?:ipad|iphone|ipod).*applewebkit/i.test(vy),qh=Nd(Jn.process)=="process",$$=Jn.setImmediate,tpe=Jn.clearImmediate,fRt=Jn.process,DR=Jn.Dispatch,pRt=Jn.Function,npe=Jn.MessageChannel,hRt=Jn.String,IR=0,A3={};try{rC=Jn.location}catch{}var LY=function(e){if($a(A3,e)){var t=A3[e];delete A3[e],t()}},OR=function(e){return function(){LY(e)}},rpe=function(e){LY(e.data)},ope=function(e){Jn.postMessage(hRt(e),rC.protocol+"//"+rC.host)};$$&&tpe||($$=function(e){var t=w8e(arguments,1);return A3[++IR]=function(){h8e(gi(e)?e:pRt(e),void 0,t)},c1(IR),IR},tpe=function(e){delete A3[e]},qh?c1=function(e){fRt.nextTick(OR(e))}:DR&&DR.now?c1=function(e){DR.now(OR(e))}:npe&&!A8e?(_R=(epe=new npe).port2,epe.port1.onmessage=rpe,c1=nC(_R.postMessage,_R)):Jn.addEventListener&&gi(Jn.postMessage)&&!Jn.importScripts&&rC&&rC.protocol!=="file:"&&!Ii(ope)?(c1=ope,Jn.addEventListener("message",rpe,!1)):c1="onreadystatechange"in eC("script")?function(e){B$.appendChild(eC("script")).onreadystatechange=function(){B$.removeChild(this),LY(e)}}:function(e){setTimeout(OR(e),0)});var Zw,Og,C3,P1,MR,PR,NR,ipe,C8e={set:$$},gRt=/ipad|iphone|ipod/i.test(vy)&&Jn.Pebble!==void 0,vRt=/web0s(?!.*chrome)/i.test(vy),mRt=TY.f,RR=C8e.set,ape=Jn.MutationObserver||Jn.WebKitMutationObserver,spe=Jn.document,lpe=Jn.process,G6=Jn.Promise,upe=mRt(Jn,"queueMicrotask"),x8e=upe&&upe.value;x8e||(Zw=function(){var e,t;for(qh&&(e=lpe.domain)&&e.exit();Og;){t=Og.fn,Og=Og.next;try{t()}catch(n){throw Og?P1():C3=void 0,n}}C3=void 0,e&&e.enter()},A8e||qh||vRt||!ape||!spe?!gRt&&G6&&G6.resolve?((NR=G6.resolve(void 0)).constructor=G6,ipe=nC(NR.then,NR),P1=function(){ipe(Zw)}):qh?P1=function(){lpe.nextTick(Zw)}:(RR=nC(RR,Jn),P1=function(){RR(Zw)}):(MR=!0,PR=spe.createTextNode(""),new ape(Zw).observe(PR,{characterData:!0}),P1=function(){PR.data=MR=!MR}));var BR,cpe,S8e,dpe,E8e=x8e||function(e){var t={fn:e,next:void 0};C3&&(C3.next=t),Og||(Og=t,P1()),C3=t},yRt=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)},FY={f:function(e){return new yRt(e)}},j$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},bRt=typeof window=="object",k8e=C8e.set,wRt=Oa("species"),If="Promise",fpe=gu.getterFor(If),ARt=gu.set,CRt=gu.getterFor(If),wg=QT&&QT.prototype,Td=QT,Xw=wg,T8e=Jn.TypeError,H$=Jn.document,UY=Jn.process,my=FY.f,xRt=my,SRt=!!(H$&&H$.createEvent&&Jn.dispatchEvent),_8e=gi(Jn.PromiseRejectionEvent),D8e=!1,x3=VT(If,(function(){var e=t9(Td),t=e!==String(Td);if(!t&&XA===66)return!0;if(XA>=51&&/native code/.test(e))return!1;var n=new Td((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[wRt]=r,!(D8e=n.then((function(){}))instanceof r)||!t&&bRt&&!_8e})),ERt=x3||!b8e((function(e){Td.all(e).catch((function(){}))})),I8e=function(e){var t;return!(!Hi(e)||!gi(t=e.then))&&t},zY=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E8e((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(T8e("Promise-chain cycle")):(s=I8e(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&&kRt(e)}))}},O8e=function(e,t,n){var r,o;SRt?((r=H$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Jn.dispatchEvent(r)):r={promise:t,reason:n},!_8e&&(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)},kRt=function(e){Ti(k8e,Jn,(function(){var t,n=e.facade,r=e.value;if(ppe(e)&&(t=j$((function(){qh?UY.emit("unhandledRejection",r,n):O8e("unhandledrejection",n,r)})),e.rejection=qh||ppe(e)?2:1,t.error))throw t.value}))},ppe=function(e){return e.rejection!==1&&!e.parent},TRt=function(e){Ti(k8e,Jn,(function(){var t=e.facade;qh?UY.emit("rejectionHandled",t):O8e("rejectionhandled",t,e.value)}))},H1=function(e,t,n){return function(r){e(t,r,n)}},yy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,zY(e,!0))},W$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw T8e("Promise can't be resolved itself");var r=I8e(t);r?E8e((function(){var o={done:!1};try{Ti(r,t,H1(W$,o,e),H1(yy,o,e))}catch(i){yy(o,i,e)}})):(e.value=t,e.state=1,zY(e,!1))}catch(o){yy({done:!1},o,e)}}};if(x3&&(Xw=(Td=function(e){BY(this,Xw),S0(e),Ti(BR,this);var t=fpe(this);try{e(H1(W$,t),H1(yy,t))}catch(n){yy(t,n)}}).prototype,(BR=function(e){ARt(this,{type:If,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ZT(Xw,{then:function(e,t){var n=CRt(this),r=n.reactions,o=my((function(i,a){var s,l=hs(i).constructor;return l===void 0||(s=hs(l)[dRt])==null?a:(function(u){if(MY(u))return u;throw cRt(zT(u)+" is not a constructor")})(s)})(this,Td));return o.ok=!gi(e)||e,o.fail=gi(t)&&t,o.domain=qh?UY.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&zY(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),cpe=function(){var e=new BR,t=fpe(e);this.promise=e,this.resolve=H1(W$,t),this.reject=H1(yy,t)},FY.f=my=function(e){return e===Td||e===S8e?new cpe(e):xRt(e)},gi(QT)&&wg!==Object.prototype)){dpe=wg.then,D8e||(oc(wg,"then",(function(e,t){var n=this;return new Td((function(r,o){Ti(dpe,n,r,o)})).then(e,t)}),{unsafe:!0}),oc(wg,"catch",Xw.catch,{unsafe:!0}));try{delete wg.constructor}catch{}vb&&vb(wg,Xw)}function oC(e,t,n){return n===void 0&&(n=""),Z7(this,void 0,void 0,(function(){var r,o,i,a,s,l,u;return X7(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,"&lt;").replace(/>/g,"&gt;")),u={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Xt.insertNodes(e,u)})),o(u),[2]}}))}))}function LR(){return v8e("w-e-insert-video")}Tl({global:!0,wrap:!0,forced:x3},{Promise:Td}),XT(Td,If,!1),(function(e){var t=Xv("Promise"),n=Ap.f;Vd&&t&&!t[Yfe]&&n(t,Yfe,{configurable:!0,get:function(){return this}})})(),S8e=Xv(If),Tl({target:If,stat:!0,forced:x3},{reject:function(e){var t=my(this);return Ti(t.reject,void 0,e),t.promise}}),Tl({target:If,stat:!0,forced:x3},{resolve:function(e){return(function(t,n){if(hs(t),Hi(n)&&n.constructor===t)return n;var r=FY.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Tl({target:If,stat:!0,forced:ERt},{all:function(e){var t=this,n=my(t),r=n.resolve,o=n.reject,i=j$((function(){var a=S0(t.resolve),s=[],l=0,u=1;JT(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=my(t),r=n.reject,o=j$((function(){var i=S0(t.resolve);JT(e,(function(a){Ti(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var _Rt=(function(){function e(){this.title=Qn("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=LR(),this.posterInputId=LR(),this.buttonId=LR()}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(Qn("videoModule.videoSrc"),o,Qn("videoModule.videoSrcPlaceHolder")),2),l=s[0],u=s[1],d=gv(lu(Qn("videoModule.videoPoster"),i,Qn("videoModule.videoPosterPlaceHolder")),2),c=d[0],f=d[1],p=Pt(u),v=Pt(f),h=gv(t2(a,Qn("videoModule.ok")),1)[0];if(this.$content==null){var g=Pt("<div></div>");g.on("click","#"+a,(function(m){return Z7(n,void 0,void 0,(function(){var b,w;return X7(this,(function(A){switch(A.label){case 0:return m.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,oC(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})(),DRt=so([].join),IRt=AY!=Object,ORt=(function(e,t){var n=[].join;return!!n&&Ii((function(){n.call(null,",",1)}))})();Tl({target:"Array",proto:!0,forced:IRt||!ORt},{join:function(e){return DRt(U0(this),e===void 0?",":e)}});var mv,hpe,gpe,MRt=!Ii((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vpe=_Y("IE_PROTO"),V$=Jn.Object,PRt=V$.prototype,e_=MRt?V$.getPrototypeOf:function(e){var t=e9(e);if($a(t,vpe))return t[vpe];var n=t.constructor;return gi(n)&&t instanceof n?n.prototype:t instanceof V$?PRt:null},q$=Oa("iterator"),M8e=!1;[].keys&&("next"in(gpe=[].keys())?(hpe=e_(e_(gpe)))!==Object.prototype&&(mv=hpe):M8e=!0);var NRt=mv==null||Ii((function(){var e={};return mv[q$].call(e)!==e}));NRt&&(mv={}),gi(mv[q$])||oc(mv,q$,(function(){return this}));var $Y={IteratorPrototype:mv,BUGGY_SAFARI_ITERATORS:M8e},RRt=$Y.IteratorPrototype,BRt=function(){return this},LRt=d2.PROPER,FRt=d2.CONFIGURABLE,mpe=$Y.IteratorPrototype,FR=$Y.BUGGY_SAFARI_ITERATORS,Jw=Oa("iterator"),URt=function(){return this},P8e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=IY(RRt,{next:J7(1,m)}),XT(g,w,!1),mb[w]=BRt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!FR&&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[Jw]||f["@@iterator"]||o&&f[o],v=!FR&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=e_(h.call(new e)))!==Object.prototype&&s.next&&(e_(s)!==mpe&&(vb?vb(s,mpe):gi(s[Jw])||oc(s,Jw,URt)),XT(s,d,!0)),LRt&&o=="values"&&p&&p.name!=="values"&&(FRt?Vh(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:FR||c},l)),f[Jw]!==v&&oc(f,Jw,v,{name:o}),mb[t]=v,l},zRt=gu.set,$Rt=gu.getterFor("Array Iterator"),M4=P8e(Array,"Array",(function(e,t){zRt(this,{type:"Array Iterator",target:U0(e),index:0,kind:t})}),(function(){var e=$Rt(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,w3("keys"),w3("values"),w3("entries");var jRt=g8e.charAt,HRt=gu.set,WRt=gu.getterFor("String Iterator");P8e(String,"String",(function(e){HRt(this,{type:"String Iterator",string:Ou(e),index:0})}),(function(){var e,t=WRt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jRt(n,r),t.index+=e.length,{value:e,done:!1})}));var N8e=function(e,t,n){var r=kY(t);r in e?Ap.f(e,r,J7(0,n)):e[r]=n},VRt=Jn.Array,qRt=Math.max,ype=WT.f,bpe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GRt={f:function(e){return bpe&&Nd(e)=="Window"?(function(t){try{return ype(t)}catch{return(function(r,o,i){for(var a=U5(r),s=tC(void 0,a),l=tC(a,a),u=VRt(qRt(l-s,0)),d=0;s<l;s++,d++)N8e(u,d,r[s]);return u.length=d,u})(bpe)}})(e):ype(U0(e))}},wpe=Ii((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),K6=Object.isExtensible,jg=Ii((function(){K6(1)}))||wpe?function(e){return!!Hi(e)&&(!wpe||Nd(e)!="ArrayBuffer")&&(!K6||K6(e))}:K6,KRt=!Ii((function(){return Object.isExtensible(Object.preventExtensions({}))})),jY=wY((function(e){var t=Ap.f,n=!1,r=EY("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=WT.f,l=so([].splice),u={};u[r]=1,s(u).length&&(WT.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:GRt.f}))},fastKey:function(s,l){if(!Hi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!$a(s,r)){if(!jg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!$a(s,r)){if(!jg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return KRt&&n&&jg(s)&&!$a(s,r)&&i(s),s}};n9[r]=!0})),Y6=jY.getWeakData,YRt=gu.set,QRt=gu.getterFor,ZRt=PY.find,XRt=PY.findIndex,JRt=so([].splice),eBt=0,Q6=function(e){return e.frozen||(e.frozen=new R8e)},R8e=function(){this.entries=[]},UR=function(e,t){return ZRt(e.entries,(function(n){return n[0]===t}))};R8e.prototype={get:function(e){var t=UR(this,e);if(t)return t[1]},has:function(e){return!!UR(this,e)},set:function(e,t){var n=UR(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XRt(this.entries,(function(n){return n[0]===e}));return~t&&JRt(this.entries,t,1),!!~t}};var e4,B8e={getConstructor:function(e,t,n,r){var o=e((function(l,u){BY(l,i),YRt(l,{type:t,id:eBt++,frozen:void 0}),u!=null&&JT(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=QRt(t),s=function(l,u,d){var c=a(l),f=Y6(hs(u),!0);return f===!0?Q6(c).set(u,d):f[c.id]=d,l};return ZT(i,{delete:function(l){var u=a(this);if(!Hi(l))return!1;var d=Y6(l);return d===!0?Q6(u).delete(l):d&&$a(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Hi(l))return!1;var d=Y6(l);return d===!0?Q6(u).has(l):d&&$a(d,u.id)}}),ZT(i,n?{get:function(l){var u=a(this);if(Hi(l)){var d=Y6(l);return d===!0?Q6(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}},Z6=gu.enforce,tBt=!Jn.ActiveXObject&&"ActiveXObject"in Jn,L8e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nBt=(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(VT(e,!gi(a)||!(o||s.forEach&&!Ii((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),jY.enable();else if(VT(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=Ii((function(){c.has(1)})),v=b8e((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){BY(g,s);var m=(function(b,w,A){var S,k;return vb&&gi(S=w.constructor)&&S!==A&&Hi(k=S.prototype)&&k!==A.prototype&&vb(b,k),b})(new a,g,l);return y!=null&&JT(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),XT(l,e),o||n.setStrong(l,e,r),l})("WeakMap",L8e,B8e);if(t8e&&tBt){e4=B8e.getConstructor(L8e,"WeakMap",!0),jY.enable();var t4=nBt.prototype,Ape=so(t4.delete),X6=so(t4.has),Cpe=so(t4.get),xpe=so(t4.set);ZT(t4,{delete:function(e){if(Hi(e)&&!jg(e)){var t=Z6(this);return t.frozen||(t.frozen=new e4),Ape(this,e)||t.frozen.delete(e)}return Ape(this,e)},has:function(e){if(Hi(e)&&!jg(e)){var t=Z6(this);return t.frozen||(t.frozen=new e4),X6(this,e)||t.frozen.has(e)}return X6(this,e)},get:function(e){if(Hi(e)&&!jg(e)){var t=Z6(this);return t.frozen||(t.frozen=new e4),X6(this,e)?Cpe(this,e):t.frozen.get(e)}return Cpe(this,e)},set:function(e,t){if(Hi(e)&&!jg(e)){var n=Z6(this);n.frozen||(n.frozen=new e4),X6(this,e)?xpe(this,e,t):n.frozen.set(e,t)}else xpe(this,e,t);return this}})}var F8e={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},zR=eC("span").classList,Spe=zR&&zR.constructor&&zR.constructor.prototype,rBt=Spe===Object.prototype?void 0:Spe,$R=Oa("iterator"),Epe=Oa("toStringTag"),jR=M4.values,U8e=function(e,t){if(e){if(e[$R]!==jR)try{Vh(e,$R,jR)}catch{e[$R]=jR}if(e[Epe]||Vh(e,Epe,t),F8e[t]){for(var n in M4)if(e[n]!==M4[n])try{Vh(e,n,M4[n])}catch{e[n]=M4[n]}}}};for(var HR in F8e)U8e(Jn[HR]&&Jn[HR].prototype,HR);U8e(rBt,"DOMTokenList");var oBt=d2.EXISTS,iBt=Ap.f,z8e=Function.prototype,aBt=so(z8e.toString),$8e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sBt=so($8e.exec);Vd&&!oBt&&iBt(z8e,"name",{configurable:!0,get:function(){try{return sBt($8e,aBt(this))[1]}catch{return""}}});var lBt=Oa("species"),uBt=XA>=51||!Ii((function(){var e=[];return(e.constructor={})[lBt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),cBt=Oa("species"),WR=Jn.Array,dBt=Math.max;function j8e(e){return e.getMenuConfig("uploadVideo")}Tl({target:"Array",proto:!0,forced:!uBt},{slice:function(e,t){var n,r,o,i=U0(this),a=U5(i),s=tC(e,a),l=tC(t===void 0?a:t,a);if(GT(i)&&(n=i.constructor,(MY(n)&&(n===WR||GT(n.prototype))||Hi(n)&&(n=n[cBt])===null)&&(n=void 0),n===WR||n===void 0))return w8e(i,s,l);for(r=new(n===void 0?WR:n)(dBt(l-s,0)),o=0;s<l;s++,o++)s in i&&N8e(r,o,i[s]);return r.length=o,r}});var kpe=new WeakMap;function fBt(e,t){return Z7(this,void 0,void 0,(function(){var n,r,o,i;return X7(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=kpe.get(s);if(l!=null)return l;var u=j8e(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=fxe(UT(UT({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(O,I){return oC(s,O,I)})),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;oC(s,S,k===void 0?"":k),d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),kpe.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 pBt=(function(){function e(){this.title=Qn("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 oC(t,d,c)}));else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var l=Pt("body"),u=Pt('<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;Z7(this,void 0,void 0,(function(){var h,g,y,m,b,w;return X7(this,(function(A){switch(A.label){case 0:if(f==null)return[2];h=Array.prototype.slice.call(f),g=j8e(c).customUpload,A.label=1;case 1:A.trys.push([1,9,10,15]),y=cPt(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 oC(c,S,k)}))]:[3,5]);case 4:return A.sent(),[3,7];case 5:return[4,fBt(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})(),hBt=d2.PROPER,G$=RegExp.prototype,H8e=G$.toString,gBt=so(f8e),vBt=Ii((function(){return H8e.call({source:"a",flags:"b"})!="/a/b"})),mBt=hBt&&H8e.name!="toString";function VR(){return v8e("w-e-insert-video")}(vBt||mBt)&&oc(RegExp.prototype,"toString",(function(){var e=hs(this),t=Ou(e.source),n=e.flags;return"/"+t+"/"+Ou(n===void 0&&ZA(G$,e)&&!("flags"in G$)?gBt(e):n)}),{unsafe:!0});var yBt=(function(){function e(){this.title=Qn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=VR(),this.heightInputId=VR(),this.buttonId=VR()}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(Qn("videoModule.width"),r,"auto"),2),s=a[0],l=Pt(a[1]),u=gv(lu(Qn("videoModule.height"),o,"auto"),2),d=u[0],c=Pt(u[1]),f=gv(t2(i,Qn("videoModule.ok")),1)[0];if(this.$content==null){var p=Pt("<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),O=parseInt(S),I=k?k.toString():"auto",P=O?O.toString():"auto";t.restoreSelection(),Xt.setNodes(t,{width:I,height:P},{match:function(M){return Et.checkNodeType(M,"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})(),bBt={renderElems:[pNt],elemsToHtml:[hNt],preParseHtml:[yNt],parseElemsHtml:[kNt],menus:[{key:"insertVideo",factory:function(){return new _Rt},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new pBt},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 yBt}}],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)&&Xt.insertNodes(r,Et.genEmptyParagraph(),{at:[s[0]+1]}),n([a,s])},r}};$l("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),$l("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Tpe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HY(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qp,W8,J6=function(e){return e&&e.Math==Math&&e},Zn=J6(typeof globalThis=="object"&&globalThis)||J6(typeof window=="object"&&window)||J6(typeof self=="object"&&self)||J6(typeof Tpe=="object"&&Tpe)||(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})),n4=Function.prototype.call,ci=n4.bind?n4.bind(n4):function(){return n4.apply(n4,arguments)},_pe={}.propertyIsEnumerable,Dpe=Object.getOwnPropertyDescriptor,wBt={f:Dpe&&!_pe.call({1:2},1)?function(e){var t=Dpe(this,e);return!!t&&t.enumerable}:_pe},i9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},W8e=Function.prototype,K$=W8e.bind,Y$=W8e.call,ABt=K$&&K$.bind(Y$),So=K$?function(e){return e&&ABt(Y$,e)}:function(e){return e&&function(){return Y$.apply(e,arguments)}},CBt=So({}.toString),xBt=So("".slice),Oc=function(e){return xBt(CBt(e),8,-1)},qR=Zn.Object,SBt=So("".split),WY=Ui((function(){return!qR("z").propertyIsEnumerable(0)}))?function(e){return Oc(e)=="String"?SBt(e,""):qR(e)}:qR,EBt=Zn.TypeError,iC=function(e){if(e==null)throw EBt("Can't call method on "+e);return e},z0=function(e){return WY(iC(e))},wi=function(e){return typeof e=="function"},Bi=function(e){return typeof e=="object"?e!==null:wi(e)},kBt=function(e){return wi(e)?e:void 0},Jv=function(e,t){return arguments.length<2?kBt(Zn[e]):Zn[e]&&Zn[e][t]},aC=So({}.isPrototypeOf),by=Jv("navigator","userAgent")||"",Ipe=Zn.process,Ope=Zn.Deno,Mpe=Ipe&&Ipe.versions||Ope&&Ope.version,Ppe=Mpe&&Mpe.v8;Ppe&&(W8=(Qp=Ppe.split("."))[0]>0&&Qp[0]<4?1:+(Qp[0]+Qp[1])),!W8&&by&&(!(Qp=by.match(/Edge\/(\d+)/))||Qp[1]>=74)&&(Qp=by.match(/Chrome\/(\d+)/))&&(W8=+Qp[1]);var sC=W8,Q$=!!Object.getOwnPropertySymbols&&!Ui((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sC&&sC<41})),VY=Q$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",TBt=Zn.Object,GR=VY?function(e){return typeof e=="symbol"}:function(e){var t=Jv("Symbol");return wi(t)&&aC(t.prototype,TBt(e))},_Bt=Zn.String,t_=function(e){try{return _Bt(e)}catch{return"Object"}},DBt=Zn.TypeError,E0=function(e){if(wi(e))return e;throw DBt(t_(e)+" is not a function")},lC=function(e,t){var n=e[t];return n==null?void 0:E0(n)},IBt=Zn.TypeError,OBt=Object.defineProperty,qY=function(e,t){try{OBt(Zn,e,{value:t,configurable:!0,writable:!0})}catch{Zn[e]=t}return t},Gh=Zn["__core-js_shared__"]||qY("__core-js_shared__",{}),GY=HY((function(e){(e.exports=function(t,n){return Gh[t]||(Gh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),MBt=Zn.Object,KY=function(e){return MBt(iC(e))},PBt=So({}.hasOwnProperty),ja=Object.hasOwn||function(e,t){return PBt(KY(e),t)},NBt=0,RBt=Math.random(),BBt=So(1 .toString),YY=function(e){return"Symbol("+(e===void 0?"":e)+")_"+BBt(++NBt+RBt,36)},r4=GY("wks"),yv=Zn.Symbol,Npe=yv&&yv.for,LBt=VY?yv:yv&&yv.withoutSetter||YY,Ma=function(e){if(!ja(r4,e)||!Q$&&typeof r4[e]!="string"){var t="Symbol."+e;Q$&&ja(yv,e)?r4[e]=yv[e]:r4[e]=VY&&Npe?Npe(t):LBt(t)}return r4[e]},FBt=Zn.TypeError,UBt=Ma("toPrimitive"),QY=function(e){var t=(function(n,r){if(!Bi(n)||GR(n))return n;var o,i=lC(n,UBt);if(i){if(o=ci(i,n,r),!Bi(o)||GR(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 IBt("Can't convert object to primitive value")})(n)})(e,"string");return GR(t)?t:t+""},Z$=Zn.document,zBt=Bi(Z$)&&Bi(Z$.createElement),uC=function(e){return zBt?Z$.createElement(e):{}},V8e=!qd&&!Ui((function(){return Object.defineProperty(uC("div"),"a",{get:function(){return 7}}).a!=7})),Rpe=Object.getOwnPropertyDescriptor,ZY={f:qd?Rpe:function(e,t){if(e=z0(e),t=QY(t),V8e)try{return Rpe(e,t)}catch{}if(ja(e,t))return i9(!ci(wBt.f,e,t),e[t])}},$Bt=Zn.String,jBt=Zn.TypeError,gs=function(e){if(Bi(e))return e;throw jBt($Bt(e)+" is not an object")},HBt=Zn.TypeError,Bpe=Object.defineProperty,Cp={f:qd?Bpe:function(e,t,n){if(gs(e),t=QY(t),gs(n),V8e)try{return Bpe(e,t,n)}catch{}if("get"in n||"set"in n)throw HBt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Rd=qd?function(e,t,n){return Cp.f(e,t,i9(1,n))}:function(e,t,n){return e[t]=n,e},WBt=So(Function.toString);wi(Gh.inspectSource)||(Gh.inspectSource=function(e){return WBt(e)});var n_,S3,r_,a9=Gh.inspectSource,Lpe=Zn.WeakMap,q8e=wi(Lpe)&&/native code/.test(a9(Lpe)),Fpe=GY("keys"),XY=function(e){return Fpe[e]||(Fpe[e]=YY(e))},s9={},X$=Zn.TypeError,VBt=Zn.WeakMap;if(q8e||Gh.state){var lg=Gh.state||(Gh.state=new VBt),qBt=So(lg.get),Upe=So(lg.has),GBt=So(lg.set);n_=function(e,t){if(Upe(lg,e))throw new X$("Object already initialized");return t.facade=e,GBt(lg,e,t),t},S3=function(e){return qBt(lg,e)||{}},r_=function(e){return Upe(lg,e)}}else{var d1=XY("state");s9[d1]=!0,n_=function(e,t){if(ja(e,d1))throw new X$("Object already initialized");return t.facade=e,Rd(e,d1,t),t},S3=function(e){return ja(e,d1)?e[d1]:{}},r_=function(e){return ja(e,d1)}}var vu={set:n_,get:S3,has:r_,enforce:function(e){return r_(e)?S3(e):n_(e,{})},getterFor:function(e){return function(t){var n;if(!Bi(t)||(n=S3(t)).type!==e)throw X$("Incompatible receiver, "+e+" required");return n}}},G8e=Function.prototype,KBt=qd&&Object.getOwnPropertyDescriptor,KR=ja(G8e,"name"),$5={EXISTS:KR,PROPER:KR&&(function(){}).name==="something",CONFIGURABLE:KR&&(!qd||qd&&KBt(G8e,"name").configurable)},ic=HY((function(e){var t=$5.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:qY(a,s)})(Function.prototype,"toString",(function(){return wi(this)&&n(this).source||a9(this)}))})),YBt=Math.ceil,QBt=Math.floor,JY=function(e){var t=+e;return t!=t||t===0?0:(t>0?QBt:YBt)(t)},ZBt=Math.max,XBt=Math.min,cC=function(e,t){var n=JY(e);return n<0?ZBt(n+t,0):XBt(n,t)},JBt=Math.min,K8e=function(e){return e>0?JBt(JY(e),9007199254740991):0},j5=function(e){return K8e(e.length)},eLt=function(e){return function(t,n,r){var o,i=z0(t),a=j5(i),s=cC(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}},tLt=eLt(!1),zpe=So([].push),Y8e=function(e,t){var n,r=z0(e),o=0,i=[];for(n in r)!ja(s9,n)&&ja(r,n)&&zpe(i,n);for(;t.length>o;)ja(r,n=t[o++])&&(~tLt(i,n)||zpe(i,n));return i},o_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nLt=o_.concat("length","prototype"),i_={f:Object.getOwnPropertyNames||function(e){return Y8e(e,nLt)}},rLt={f:Object.getOwnPropertySymbols},oLt=So([].concat),iLt=Jv("Reflect","ownKeys")||function(e){var t=i_.f(gs(e)),n=rLt.f;return n?oLt(t,n(e)):t},aLt=function(e,t){for(var n=iLt(t),r=Cp.f,o=ZY.f,i=0;i<n.length;i++){var a=n[i];ja(e,a)||r(e,a,o(t,a))}},sLt=/#|\.prototype\./,H5=function(e,t){var n=uLt[lLt(e)];return n==dLt||n!=cLt&&(wi(t)?Ui(t):!!t)},lLt=H5.normalize=function(e){return String(e).replace(sLt,".").toLowerCase()},uLt=H5.data={},cLt=H5.NATIVE="N",dLt=H5.POLYFILL="P",a_=H5,fLt=ZY.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]||qY(s,{}):(Zn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fLt(n,r))&&a.value:n[r],!a_(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;aLt(i,o)}(e.sham||o&&o.sham)&&Rd(i,"sham",!0),ic(n,r,i,e)}},s_=Array.isArray||function(e){return Oc(e)=="Array"},Q8e={};Q8e[Ma("toStringTag")]="z";var eQ=String(Q8e)==="[object z]",pLt=Ma("toStringTag"),hLt=Zn.Object,gLt=Oc((function(){return arguments})())=="Arguments",l9=eQ?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=hLt(e),pLt))=="string"?n:gLt?Oc(t):(r=Oc(t))=="Object"&&wi(t.callee)?"Arguments":r},Z8e=function(){},vLt=[],X8e=Jv("Reflect","construct"),tQ=/^\s*(?:class|function)\b/,mLt=So(tQ.exec),yLt=!tQ.exec(Z8e),o4=function(e){if(!wi(e))return!1;try{return X8e(Z8e,vLt,e),!0}catch{return!1}},nQ=!X8e||Ui((function(){var e;return o4(o4.call)||!o4(Object)||!o4((function(){e=!0}))||e}))?function(e){if(!wi(e))return!1;switch(l9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yLt||!!mLt(tQ,a9(e))}:o4,J8e=function(e,t,n){var r=QY(t);r in e?Cp.f(e,r,i9(0,n)):e[r]=n},bLt=Ma("species"),eEe=So([].slice),wLt=sC>=51||!Ui((function(){var e=[];return(e.constructor={})[bLt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),ALt=Ma("species"),YR=Zn.Array,CLt=Math.max;_d({target:"Array",proto:!0,forced:!wLt},{slice:function(e,t){var n,r,o,i=z0(this),a=j5(i),s=cC(e,a),l=cC(t===void 0?a:t,a);if(s_(i)&&(n=i.constructor,(nQ(n)&&(n===YR||s_(n.prototype))||Bi(n)&&(n=n[ALt])===null)&&(n=void 0),n===YR||n===void 0))return eEe(i,s,l);for(r=new(n===void 0?YR:n)(CLt(l-s,0)),o=0;s<l;s++,o++)s in i&&J8e(r,o,i[s]);return r.length=o,r}});var xLt=eQ?{}.toString:function(){return"[object "+l9(this)+"]"};eQ||ic(Object.prototype,"toString",xLt,{unsafe:!0});var eS,SLt=Zn.String,Kh=function(e){if(l9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return SLt(e)},tEe=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},rQ=Zn.RegExp,J$=Ui((function(){var e=rQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));J$||Ui((function(){return!rQ("a","y").sticky}));var nEe={BROKEN_CARET:J$||Ui((function(){var e=rQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:J$},ELt=Object.keys||function(e){return Y8e(e,o_)},kLt=qd?Object.defineProperties:function(e,t){gs(e);for(var n,r=z0(t),o=ELt(t),i=o.length,a=0;i>a;)Cp.f(e,n=o[a++],r[n]);return e},ej=Jv("document","documentElement"),rEe=XY("IE_PROTO"),QR=function(){},oEe=function(e){return"<script>"+e+"<\/script>"},$pe=function(e){e.write(oEe("")),e.close();var t=e.parentWindow.Object;return e=null,t},V8=function(){try{eS=new ActiveXObject("htmlfile")}catch{}var e,t;V8=typeof document<"u"?document.domain&&eS?$pe(eS):((t=uC("iframe")).style.display="none",ej.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(oEe("document.F=Object")),e.close(),e.F):$pe(eS);for(var n=o_.length;n--;)delete V8.prototype[o_[n]];return V8()};s9[rEe]=!0;var jpe,ZR,oQ=Object.create||function(e,t){var n;return e!==null?(QR.prototype=gs(e),n=new QR,QR.prototype=null,n[rEe]=e):n=V8(),t===void 0?n:kLt(n,t)},TLt=Zn.RegExp,_Lt=Ui((function(){var e=TLt(".","s");return!(e.dotAll&&e.exec(`
  863. `)&&e.flags==="s")})),DLt=Zn.RegExp,ILt=Ui((function(){var e=DLt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),OLt=vu.get,MLt=GY("native-string-replace",String.prototype.replace),l_=RegExp.prototype.exec,tj=l_,PLt=So("".charAt),NLt=So("".indexOf),RLt=So("".replace),XR=So("".slice),JR=(ZR=/b*/g,ci(l_,jpe=/a/,"a"),ci(l_,ZR,"a"),jpe.lastIndex!==0||ZR.lastIndex!==0),Hpe=nEe.BROKEN_CARET,eB=/()??/.exec("")[1]!==void 0;(JR||eB||Hpe||_Lt||ILt)&&(tj=function(e){var t,n,r,o,i,a,s,l=this,u=OLt(l),d=Kh(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ci(tj,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Hpe&&l.sticky,v=ci(tEe,l),h=l.source,g=0,y=d;if(p&&(v=RLt(v,"y",""),NLt(v,"g")===-1&&(v+="g"),y=XR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&PLt(d,l.lastIndex-1)!==`
  864. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),eB&&(n=new RegExp("^"+h+"$(?!\\s)",v)),JR&&(r=l.lastIndex),o=ci(l_,p?n:l,y),p?o?(o.input=XR(o.input,g),o[0]=XR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:JR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),eB&&o&&o.length>1&&ci(MLt,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=oQ(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var dC=tj;_d({target:"RegExp",proto:!0,forced:/./.exec!==dC},{exec:dC});var iQ=Function.prototype,Wpe=iQ.apply,BLt=iQ.bind,Vpe=iQ.call,iEe=typeof Reflect=="object"&&Reflect.apply||(BLt?Vpe.bind(Wpe):function(){return Vpe.apply(Wpe,arguments)}),LLt=Ma("species"),tB=RegExp.prototype,FLt=Ma("match"),ULt=Zn.TypeError,zLt=Ma("species"),aEe=function(e,t){var n,r=gs(e).constructor;return r===void 0||(n=gs(r)[zLt])==null?t:(function(o){if(nQ(o))return o;throw ULt(t_(o)+" is not a constructor")})(n)},$Lt=So("".charAt),qpe=So("".charCodeAt),jLt=So("".slice),HLt=function(e){return function(t,n){var r,o,i=Kh(iC(t)),a=JY(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=qpe(i,a))<55296||r>56319||a+1===s||(o=qpe(i,a+1))<56320||o>57343?e?$Lt(i,a):r:e?jLt(i,a,a+2):o-56320+(r-55296<<10)+65536}},sEe={charAt:HLt(!0)},WLt=sEe.charAt,VLt=function(e,t,n){return t+(n?WLt(e,t).length:1)},qLt=Zn.Array,GLt=Math.max,nj=function(e,t,n){for(var r=j5(e),o=cC(t,r),i=cC(n===void 0?r:n,r),a=qLt(GLt(i-o,0)),s=0;o<i;o++,s++)J8e(a,s,e[o]);return a.length=s,a},KLt=Zn.TypeError,Gpe=function(e,t){var n=e.exec;if(wi(n)){var r=ci(n,e,t);return r!==null&&gs(r),r}if(Oc(e)==="RegExp")return ci(dC,e,t);throw KLt("RegExp#exec called on incompatible receiver")},f1=nEe.UNSUPPORTED_Y,YLt=Math.min,lEe=[].push,QLt=So(/./.exec),p1=So(lEe),i4=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[LLt]=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=Kh(iC(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":""),O=0,I=new RegExp(p.source,k+"g");(b=ci(dC,I,y))&&!((w=I.lastIndex)>O&&(p1(S,i4(y,O,b.index)),b.length>1&&b.index<y.length&&iEe(lEe,S,nj(b,1)),A=b[0].length,O=w,S.length>=m));)I.lastIndex===b.index&&I.lastIndex++;return O===y.length?!A&&QLt(I,"")||p1(S,""):p1(S,i4(y,O)),S.length>m?nj(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=iC(this),g=p==null?void 0:lC(p,u);return g?ci(g,p,h,v):ci(f,Kh(h),p,v)},function(p,v){var h=gs(this),g=Kh(p),y=c(f,h,g,v,f!==d);if(y.done)return y.value;var m=aEe(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(f1?"g":"y"),A=new m(f1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return Gpe(A,g)===null?[g]:[];for(var k=0,O=0,I=[];O<g.length;){A.lastIndex=f1?0:O;var P,M=Gpe(A,f1?i4(g,O):g);if(M===null||(P=YLt(K8e(A.lastIndex+(f1?O:0)),g.length))===k)O=VLt(g,O,b);else{if(p1(I,i4(g,k,O)),I.length===S)return I;for(var _=1;_<=M.length-1;_++)if(p1(I,M[_]),I.length===S)return I;O=k=P}}return p1(I,i4(g,k)),I}]})(o,""[e],(function(u,d,c,f,p){var v=So(u),h=d.exec;return h===dC||h===tB.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(tB,o,l[1])}r&&Rd(tB[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"})),f1);/*! *****************************************************************************
  865. Copyright (c) Microsoft Corporation.
  866. Permission to use, copy, modify, and/or distribute this software for any
  867. purpose with or without fee is hereby granted.
  868. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  869. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  870. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  871. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  872. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  873. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  874. PERFORMANCE OF THIS SOFTWARE.
  875. ***************************************************************************** */var u_=function(){return u_=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},u_.apply(this,arguments)};function aQ(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 sQ(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 ZLt(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 rj=Ma("unscopables"),oj=Array.prototype;oj[rj]==null&&Cp.f(oj,rj,{configurable:!0,value:oQ(null)});var bv,Kpe,Ype,nB=function(e){oj[rj][e]=!0},yb={},XLt=!Ui((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qpe=XY("IE_PROTO"),ij=Zn.Object,JLt=ij.prototype,c_=XLt?ij.getPrototypeOf:function(e){var t=KY(e);if(ja(t,Qpe))return t[Qpe];var n=t.constructor;return wi(n)&&t instanceof n?n.prototype:t instanceof ij?JLt:null},aj=Ma("iterator"),uEe=!1;[].keys&&("next"in(Ype=[].keys())?(Kpe=c_(c_(Ype)))!==Object.prototype&&(bv=Kpe):uEe=!0);var eFt=bv==null||Ui((function(){var e={};return bv[aj].call(e)!==e}));eFt&&(bv={}),wi(bv[aj])||ic(bv,aj,(function(){return this}));var lQ={IteratorPrototype:bv,BUGGY_SAFARI_ITERATORS:uEe},tFt=Cp.f,Zpe=Ma("toStringTag"),d_=function(e,t,n){e&&!ja(e=n?e:e.prototype,Zpe)&&tFt(e,Zpe,{configurable:!0,value:t})},nFt=lQ.IteratorPrototype,rFt=function(){return this},oFt=Zn.String,iFt=Zn.TypeError,bb=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"||wi(i))return i;throw iFt("Can't set "+oFt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),aFt=$5.PROPER,sFt=$5.CONFIGURABLE,Xpe=lQ.IteratorPrototype,rB=lQ.BUGGY_SAFARI_ITERATORS,a4=Ma("iterator"),lFt=function(){return this},cEe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=oQ(nFt,{next:i9(1,m)}),d_(g,w,!1),yb[w]=rFt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!rB&&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[a4]||f["@@iterator"]||o&&f[o],v=!rB&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=c_(h.call(new e)))!==Object.prototype&&s.next&&(c_(s)!==Xpe&&(bb?bb(s,Xpe):wi(s[a4])||ic(s,a4,lFt)),d_(s,d,!0)),aFt&&o=="values"&&p&&p.name!=="values"&&(sFt?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:rB||c},l)),f[a4]!==v&&ic(f,a4,v,{name:o}),yb[t]=v,l},uFt=vu.set,cFt=vu.getterFor("Array Iterator"),P4=cEe(Array,"Array",(function(e,t){uFt(this,{type:"Array Iterator",target:z0(e),index:0,kind:t})}),(function(){var e=cFt(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");yb.Arguments=yb.Array,nB("keys"),nB("values"),nB("entries");var dFt=sEe.charAt,fFt=vu.set,pFt=vu.getterFor("String Iterator");cEe(String,"String",(function(e){fFt(this,{type:"String Iterator",string:Kh(e),index:0})}),(function(){var e,t=pFt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dFt(n,r),t.index+=e.length,{value:e,done:!1})}));var f_=function(e,t,n){for(var r in t)ic(e,r,t[r],n);return e},Jpe=i_.f,ehe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hFt={f:function(e){return ehe&&Oc(e)=="Window"?(function(t){try{return Jpe(t)}catch{return nj(ehe)}})(e):Jpe(z0(e))}},the=Ui((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),tS=Object.isExtensible,Hg=Ui((function(){tS(1)}))||the?function(e){return!!Bi(e)&&(!the||Oc(e)!="ArrayBuffer")&&(!tS||tS(e))}:tS,gFt=!Ui((function(){return Object.isExtensible(Object.preventExtensions({}))})),uQ=HY((function(e){var t=Cp.f,n=!1,r=YY("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=i_.f,l=So([].splice),u={};u[r]=1,s(u).length&&(i_.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:hFt.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 gFt&&n&&Hg(s)&&!ja(s,r)&&i(s),s}};s9[r]=!0})),nhe=So(So.bind),fC=function(e,t){return E0(e),t===void 0?e:nhe?nhe(e,t):function(){return e.apply(t,arguments)}},vFt=Ma("iterator"),mFt=Array.prototype,yFt=Ma("iterator"),rhe=function(e){if(e!=null)return lC(e,yFt)||lC(e,"@@iterator")||yb[l9(e)]},bFt=Zn.TypeError,ohe=function(e,t,n){var r,o;gs(e);try{if(!(r=lC(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 gs(r),n},wFt=Zn.TypeError,q8=function(e,t){this.stopped=e,this.result=t},ihe=q8.prototype,p_=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=fC(t,c),g=function(m){return r&&ohe(r,"normal",m),new q8(!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=rhe(e)))throw wFt(t_(e)+" is not iterable");if((d=o)!==void 0&&(yb.Array===d||mFt[vFt]===d)){for(i=0,a=j5(e);a>i;i++)if((s=y(e[i]))&&aC(ihe,s))return s;return new q8(!1)}r=(function(m,b){var w=arguments.length<2?rhe(m):b;if(E0(w))return gs(ci(w,m));throw bFt(t_(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=ci(l,r)).done;){try{s=y(u.value)}catch(m){ohe(r,"throw",m)}if(typeof s=="object"&&s&&aC(ihe,s))return s}return new q8(!1)},AFt=Zn.TypeError,cQ=function(e,t){if(aC(t,e))return e;throw AFt("Incorrect invocation")},dEe=Ma("iterator"),fEe=!1;try{var CFt=0,ahe={next:function(){return{done:!!CFt++}},return:function(){fEe=!0}};ahe[dEe]=function(){return this},Array.from(ahe,(function(){throw 2}))}catch{}var pEe=function(e,t){if(!fEe)return!1;var n=!1;try{var r={};r[dEe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},xFt=Ma("species"),she=Zn.Array,SFt=function(e,t){return new((function(n){var r;return s_(n)&&(r=n.constructor,(nQ(r)&&(r===she||s_(r.prototype))||Bi(r)&&(r=r[xFt])===null)&&(r=void 0)),r===void 0?she:r})(e))(t===0?0:t)},lhe=So([].push),oB=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=KY(l),h=WY(v),g=fC(u,d),y=j5(h),m=0,b=c||SFt,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:lhe(w,f)}else switch(e){case 4:return!1;case 7:lhe(w,f)}return i?-1:r||o?o:w}},dQ={forEach:oB(0),find:oB(5),findIndex:oB(6)},nS=uQ.getWeakData,EFt=vu.set,kFt=vu.getterFor,TFt=dQ.find,_Ft=dQ.findIndex,DFt=So([].splice),IFt=0,rS=function(e){return e.frozen||(e.frozen=new hEe)},hEe=function(){this.entries=[]},iB=function(e,t){return TFt(e.entries,(function(n){return n[0]===t}))};hEe.prototype={get:function(e){var t=iB(this,e);if(t)return t[1]},has:function(e){return!!iB(this,e)},set:function(e,t){var n=iB(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_Ft(this.entries,(function(n){return n[0]===e}));return~t&&DFt(this.entries,t,1),!!~t}};var s4,gEe={getConstructor:function(e,t,n,r){var o=e((function(l,u){cQ(l,i),EFt(l,{type:t,id:IFt++,frozen:void 0}),u!=null&&p_(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=kFt(t),s=function(l,u,d){var c=a(l),f=nS(gs(u),!0);return f===!0?rS(c).set(u,d):f[c.id]=d,l};return f_(i,{delete:function(l){var u=a(this);if(!Bi(l))return!1;var d=nS(l);return d===!0?rS(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=nS(l);return d===!0?rS(u).has(l):d&&ja(d,u.id)}}),f_(i,n?{get:function(l){var u=a(this);if(Bi(l)){var d=nS(l);return d===!0?rS(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}},oS=vu.enforce,OFt=!Zn.ActiveXObject&&"ActiveXObject"in Zn,vEe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},MFt=(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(a_(e,!wi(a)||!(o||s.forEach&&!Ui((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),uQ.enable();else if(a_(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=Ui((function(){c.has(1)})),v=pEe((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){cQ(g,s);var m=(function(b,w,A){var S,k;return bb&&wi(S=w.constructor)&&S!==A&&Bi(k=S.prototype)&&k!==A.prototype&&bb(b,k),b})(new a,g,l);return y!=null&&p_(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),d_(l,e),o||n.setStrong(l,e,r),l})("WeakMap",vEe,gEe);if(q8e&&OFt){s4=gEe.getConstructor(vEe,"WeakMap",!0),uQ.enable();var l4=MFt.prototype,uhe=So(l4.delete),iS=So(l4.has),che=So(l4.get),dhe=So(l4.set);f_(l4,{delete:function(e){if(Bi(e)&&!Hg(e)){var t=oS(this);return t.frozen||(t.frozen=new s4),uhe(this,e)||t.frozen.delete(e)}return uhe(this,e)},has:function(e){if(Bi(e)&&!Hg(e)){var t=oS(this);return t.frozen||(t.frozen=new s4),iS(this,e)||t.frozen.has(e)}return iS(this,e)},get:function(e){if(Bi(e)&&!Hg(e)){var t=oS(this);return t.frozen||(t.frozen=new s4),iS(this,e)?che(this,e):t.frozen.get(e)}return che(this,e)},set:function(e,t){if(Bi(e)&&!Hg(e)){var n=oS(this);n.frozen||(n.frozen=new s4),iS(this,e)?dhe(this,e,t):n.frozen.set(e,t)}else dhe(this,e,t);return this}})}var h_={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},aB=uC("span").classList,fhe=aB&&aB.constructor&&aB.constructor.prototype,mEe=fhe===Object.prototype?void 0:fhe,sB=Ma("iterator"),phe=Ma("toStringTag"),lB=P4.values,yEe=function(e,t){if(e){if(e[sB]!==lB)try{Rd(e,sB,lB)}catch{e[sB]=lB}if(e[phe]||Rd(e,phe,t),h_[t]){for(var n in P4)if(e[n]!==P4[n])try{Rd(e,n,P4[n])}catch{e[n]=P4[n]}}}};for(var uB in h_)yEe(Zn[uB]&&Zn[uB].prototype,uB);yEe(mEe,"DOMTokenList");var bEe=function(e,t){var n=[][e];return!!n&&Ui((function(){n.call(null,t||function(){throw 1},1)}))},PFt=dQ.forEach,cB=bEe("forEach")?[].forEach:function(e){return PFt(this,e,arguments.length>1?arguments[1]:void 0)},wEe=function(e){if(e&&e.forEach!==cB)try{Rd(e,"forEach",cB)}catch{e.forEach=cB}};for(var dB in h_)h_[dB]&&wEe(Zn[dB]&&Zn[dB].prototype);wEe(mEe);var pC,h1,hhe,fB,g_=Zn.Promise,ghe=Ma("species"),AEe=/(?:ipad|iphone|ipod).*applewebkit/i.test(by),Yh=Oc(Zn.process)=="process",sj=Zn.setImmediate,vhe=Zn.clearImmediate,NFt=Zn.process,pB=Zn.Dispatch,RFt=Zn.Function,mhe=Zn.MessageChannel,BFt=Zn.String,hB=0,E3={};try{pC=Zn.location}catch{}var fQ=function(e){if(ja(E3,e)){var t=E3[e];delete E3[e],t()}},gB=function(e){return function(){fQ(e)}},yhe=function(e){fQ(e.data)},bhe=function(e){Zn.postMessage(BFt(e),pC.protocol+"//"+pC.host)};sj&&vhe||(sj=function(e){var t=eEe(arguments,1);return E3[++hB]=function(){iEe(wi(e)?e:RFt(e),void 0,t)},h1(hB),hB},vhe=function(e){delete E3[e]},Yh?h1=function(e){NFt.nextTick(gB(e))}:pB&&pB.now?h1=function(e){pB.now(gB(e))}:mhe&&!AEe?(fB=(hhe=new mhe).port2,hhe.port1.onmessage=yhe,h1=fC(fB.postMessage,fB)):Zn.addEventListener&&wi(Zn.postMessage)&&!Zn.importScripts&&pC&&pC.protocol!=="file:"&&!Ui(bhe)?(h1=bhe,Zn.addEventListener("message",yhe,!1)):h1="onreadystatechange"in uC("script")?function(e){ej.appendChild(uC("script")).onreadystatechange=function(){ej.removeChild(this),fQ(e)}}:function(e){setTimeout(gB(e),0)});var u4,Mg,k3,N1,vB,mB,yB,whe,CEe={set:sj},LFt=/ipad|iphone|ipod/i.test(by)&&Zn.Pebble!==void 0,FFt=/web0s(?!.*chrome)/i.test(by),UFt=ZY.f,bB=CEe.set,Ahe=Zn.MutationObserver||Zn.WebKitMutationObserver,Che=Zn.document,xhe=Zn.process,aS=Zn.Promise,She=UFt(Zn,"queueMicrotask"),xEe=She&&She.value;xEe||(u4=function(){var e,t;for(Yh&&(e=xhe.domain)&&e.exit();Mg;){t=Mg.fn,Mg=Mg.next;try{t()}catch(n){throw Mg?N1():k3=void 0,n}}k3=void 0,e&&e.enter()},AEe||Yh||FFt||!Ahe||!Che?!LFt&&aS&&aS.resolve?((yB=aS.resolve(void 0)).constructor=aS,whe=fC(yB.then,yB),N1=function(){whe(u4)}):Yh?N1=function(){xhe.nextTick(u4)}:(bB=fC(bB,Zn),N1=function(){bB(u4)}):(vB=!0,mB=Che.createTextNode(""),new Ahe(u4).observe(mB,{characterData:!0}),N1=function(){mB.data=vB=!vB}));var wB,Ehe,SEe,khe,EEe=xEe||function(e){var t={fn:e,next:void 0};k3&&(k3.next=t),Mg||(Mg=t,N1()),k3=t},zFt=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)},pQ={f:function(e){return new zFt(e)}},lj=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},$Ft=typeof window=="object",kEe=CEe.set,jFt=Ma("species"),Of="Promise",The=vu.getterFor(Of),HFt=vu.set,WFt=vu.getterFor(Of),Ag=g_&&g_.prototype,Dd=g_,c4=Ag,TEe=Zn.TypeError,uj=Zn.document,hQ=Zn.process,wy=pQ.f,VFt=wy,qFt=!!(uj&&uj.createEvent&&Zn.dispatchEvent),_Ee=wi(Zn.PromiseRejectionEvent),DEe=!1,T3=a_(Of,(function(){var e=a9(Dd),t=e!==String(Dd);if(!t&&sC===66)return!0;if(sC>=51&&/native code/.test(e))return!1;var n=new Dd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[jFt]=r,!(DEe=n.then((function(){}))instanceof r)||!t&&$Ft&&!_Ee})),GFt=T3||!pEe((function(e){Dd.all(e).catch((function(){}))})),IEe=function(e){var t;return!(!Bi(e)||!wi(t=e.then))&&t},gQ=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;EEe((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&&YFt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(TEe("Promise-chain cycle")):(s=IEe(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&&KFt(e)}))}},OEe=function(e,t,n){var r,o;qFt?((r=uj.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Zn.dispatchEvent(r)):r={promise:t,reason:n},!_Ee&&(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)},KFt=function(e){ci(kEe,Zn,(function(){var t,n=e.facade,r=e.value;if(_he(e)&&(t=lj((function(){Yh?hQ.emit("unhandledRejection",r,n):OEe("unhandledrejection",n,r)})),e.rejection=Yh||_he(e)?2:1,t.error))throw t.value}))},_he=function(e){return e.rejection!==1&&!e.parent},YFt=function(e){ci(kEe,Zn,(function(){var t=e.facade;Yh?hQ.emit("rejectionHandled",t):OEe("rejectionhandled",t,e.value)}))},W1=function(e,t,n){return function(r){e(t,r,n)}},Ay=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,gQ(e,!0))},cj=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw TEe("Promise can't be resolved itself");var r=IEe(t);r?EEe((function(){var o={done:!1};try{ci(r,t,W1(cj,o,e),W1(Ay,o,e))}catch(i){Ay(o,i,e)}})):(e.value=t,e.state=1,gQ(e,!1))}catch(o){Ay({done:!1},o,e)}}};if(T3&&(c4=(Dd=function(e){cQ(this,c4),E0(e),ci(wB,this);var t=The(this);try{e(W1(cj,t),W1(Ay,t))}catch(n){Ay(t,n)}}).prototype,(wB=function(e){HFt(this,{type:Of,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f_(c4,{then:function(e,t){var n=WFt(this),r=n.reactions,o=wy(aEe(this,Dd));return o.ok=!wi(e)||e,o.fail=wi(t)&&t,o.domain=Yh?hQ.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&gQ(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ehe=function(){var e=new wB,t=The(e);this.promise=e,this.resolve=W1(cj,t),this.reject=W1(Ay,t)},pQ.f=wy=function(e){return e===Dd||e===SEe?new Ehe(e):VFt(e)},wi(g_)&&Ag!==Object.prototype)){khe=Ag.then,DEe||(ic(Ag,"then",(function(e,t){var n=this;return new Dd((function(r,o){ci(khe,n,r,o)})).then(e,t)}),{unsafe:!0}),ic(Ag,"catch",c4.catch,{unsafe:!0}));try{delete Ag.constructor}catch{}bb&&bb(Ag,c4)}_d({global:!0,wrap:!0,forced:T3},{Promise:Dd}),d_(Dd,Of,!1),(function(e){var t=Jv("Promise"),n=Cp.f;qd&&t&&!t[ghe]&&n(t,ghe,{configurable:!0,get:function(){return this}})})(),SEe=Jv(Of),_d({target:Of,stat:!0,forced:T3},{reject:function(e){var t=wy(this);return ci(t.reject,void 0,e),t.promise}}),_d({target:Of,stat:!0,forced:T3},{resolve:function(e){return(function(t,n){if(gs(t),Bi(n)&&n.constructor===t)return n;var r=pQ.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),_d({target:Of,stat:!0,forced:GFt},{all:function(e){var t=this,n=wy(t),r=n.resolve,o=n.reject,i=lj((function(){var a=E0(t.resolve),s=[],l=0,u=1;p_(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=wy(t),r=n.reject,o=lj((function(){var i=E0(t.resolve);p_(e,(function(a){ci(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var QFt=$5.PROPER,dj=RegExp.prototype,MEe=dj.toString,ZFt=So(tEe),XFt=Ui((function(){return MEe.call({source:"a",flags:"b"})!="/a/b"})),JFt=QFt&&MEe.name!="toString";(XFt||JFt)&&ic(RegExp.prototype,"toString",(function(){var e=gs(this),t=Kh(e.source),n=e.flags;return"/"+t+"/"+Kh(n===void 0&&aC(dj,e)&&!("flags"in dj)?ZFt(e):n)}),{unsafe:!0});var eUt=$5.EXISTS,tUt=Cp.f,PEe=Function.prototype,nUt=So(PEe.toString),NEe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rUt=So(NEe.exec);qd&&!eUt&&tUt(PEe,"name",{configurable:!0,get:function(){try{return rUt(NEe,nUt(this))[1]}catch{return""}}});var Dhe=new WeakMap;function REe(e){return e.getMenuConfig("uploadImage")}function oUt(e,t){return aQ(this,void 0,void 0,(function(){return sQ(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 iUt(e,t){return aQ(this,void 0,void 0,(function(){var n,r,o,i;return sQ(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=Dhe.get(s);if(l!=null)return l;var u=REe(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=fxe(u_(u_({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(P,M,_){return lv(s,P,M,_)})),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 M=P.url,_=M===void 0?"":M,R=P.alt,N=R===void 0?"":R,V=P.href;lv(s,_,N,V===void 0?"":V)}));else{var A=w.url,S=A===void 0?"":A,k=w.alt,O=k===void 0?"":k,I=w.href;lv(s,S,O,I===void 0?"":I)}d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),Dhe.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 BEe(e,t){var n,r;return aQ(this,void 0,void 0,(function(){var o,i,a,s,l,u,d,c,f;return sQ(this,(function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=REe(e),a=i.customUpload,s=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),l=ZLt(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,oUt(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,iUt(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 aUt=So([].join),sUt=WY!=Object,lUt=bEe("join",",");_d({target:"Array",proto:!0,forced:sUt||!lUt},{join:function(e){return aUt(z0(this),e===void 0?",":e)}}),ec&&(Pt.fn.append=ec),Hd&&(Pt.fn.on=Hd),ob&&(Pt.fn.remove=ob),jd&&(Pt.fn.val=jd),Dae&&(Pt.fn.click=Dae),eb&&(Pt.fn.hide=eb);var uUt=(function(){function e(){this.title=Qn("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 L7(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=Pt("body"),u=Pt('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var d=u[0].files;BEe(t,d)}))}},e})(),cUt={menus:[{key:"uploadImage",factory:function(){return new uUt},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(L7(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"}))?BEe(e,o):t(r)}},n}};$l("en",{highLightModule:{selectLang:"Language"}}),$l("zh-CN",{highLightModule:{selectLang:"选择语言"}});var v_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zp,G8,sS=function(e){return e&&e.Math==Math&&e},_o=sS(typeof globalThis=="object"&&globalThis)||sS(typeof window=="object"&&window)||sS(typeof self=="object"&&self)||sS(typeof v_=="object"&&v_)||(function(){return this})()||Function("return this")(),dUt=Object.defineProperty,mQ=function(e,t){try{dUt(_o,e,{value:t,configurable:!0,writable:!0})}catch{_o[e]=t}return t},Qh=_o["__core-js_shared__"]||mQ("__core-js_shared__",{}),yQ=vQ((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)"})})),LEe=Function.prototype,fj=LEe.bind,pj=LEe.call,fUt=fj&&fj.bind(pj),ii=fj?function(e){return e&&fUt(pj,e)}:function(e){return e&&function(){return pj.apply(e,arguments)}},pUt=_o.TypeError,wb=function(e){if(e==null)throw pUt("Can't call method on "+e);return e},hUt=_o.Object,bQ=function(e){return hUt(wb(e))},gUt=ii({}.hasOwnProperty),Vu=Object.hasOwn||function(e,t){return gUt(bQ(e),t)},vUt=0,mUt=Math.random(),yUt=ii(1 .toString),FEe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+yUt(++vUt+mUt,36)},pl=function(e){return typeof e=="function"},bUt=function(e){return pl(e)?e:void 0},W5=function(e,t){return arguments.length<2?bUt(_o[e]):_o[e]&&_o[e][t]},AB=W5("navigator","userAgent")||"",Ihe=_o.process,Ohe=_o.Deno,Mhe=Ihe&&Ihe.versions||Ohe&&Ohe.version,Phe=Mhe&&Mhe.v8;Phe&&(G8=(Zp=Phe.split("."))[0]>0&&Zp[0]<4?1:+(Zp[0]+Zp[1])),!G8&&AB&&(!(Zp=AB.match(/Edge\/(\d+)/))||Zp[1]>=74)&&(Zp=AB.match(/Chrome\/(\d+)/))&&(G8=+Zp[1]);var Nhe=G8,cs=function(e){try{return!!e()}catch{return!0}},hj=!!Object.getOwnPropertySymbols&&!cs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nhe&&Nhe<41})),wQ=hj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",d4=yQ("wks"),wv=_o.Symbol,Rhe=wv&&wv.for,wUt=wQ?wv:wv&&wv.withoutSetter||FEe,$0=function(e){if(!Vu(d4,e)||!hj&&typeof d4[e]!="string"){var t="Symbol."+e;hj&&Vu(wv,e)?d4[e]=wv[e]:d4[e]=wQ&&Rhe?Rhe(t):wUt(t)}return d4[e]},UEe={};UEe[$0("toStringTag")]="z";var AQ=String(UEe)==="[object z]",Gd=!cs((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Rf=function(e){return typeof e=="object"?e!==null:pl(e)},gj=_o.document,AUt=Rf(gj)&&Rf(gj.createElement),CQ=function(e){return AUt?gj.createElement(e):{}},zEe=!Gd&&!cs((function(){return Object.defineProperty(CQ("div"),"a",{get:function(){return 7}}).a!=7})),CUt=_o.String,xUt=_o.TypeError,Mc=function(e){if(Rf(e))return e;throw xUt(CUt(e)+" is not an object")},f4=Function.prototype.call,ls=f4.bind?f4.bind(f4):function(){return f4.apply(f4,arguments)},$Ee=ii({}.isPrototypeOf),SUt=_o.Object,CB=wQ?function(e){return typeof e=="symbol"}:function(e){var t=W5("Symbol");return pl(t)&&$Ee(t.prototype,SUt(e))},EUt=_o.String,jEe=function(e){try{return EUt(e)}catch{return"Object"}},kUt=_o.TypeError,HEe=function(e){if(pl(e))return e;throw kUt(jEe(e)+" is not a function")},WEe=function(e,t){var n=e[t];return n==null?void 0:HEe(n)},TUt=_o.TypeError,_Ut=_o.TypeError,DUt=$0("toPrimitive"),xQ=function(e){var t=(function(n,r){if(!Rf(n)||CB(n))return n;var o,i=WEe(n,DUt);if(i){if(o=ls(i,n,r),!Rf(o)||CB(o))return o;throw _Ut("Can't convert object to primitive value")}return(function(a,s){var l,u;if(pl(l=a.toString)&&!Rf(u=ls(l,a))||pl(l=a.valueOf)&&!Rf(u=ls(l,a)))return u;throw TUt("Can't convert object to primitive value")})(n)})(e,"string");return CB(t)?t:t+""},IUt=_o.TypeError,Bhe=Object.defineProperty,u9={f:Gd?Bhe:function(e,t,n){if(Mc(e),t=xQ(t),Mc(n),zEe)try{return Bhe(e,t,n)}catch{}if("get"in n||"set"in n)throw IUt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},SQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ab=Gd?function(e,t,n){return u9.f(e,t,SQ(1,n))}:function(e,t,n){return e[t]=n,e},OUt=ii(Function.toString);pl(Qh.inspectSource)||(Qh.inspectSource=function(e){return OUt(e)});var vj,m_,mj,EQ=Qh.inspectSource,Lhe=_o.WeakMap,MUt=pl(Lhe)&&/native code/.test(EQ(Lhe)),Fhe=yQ("keys"),VEe=function(e){return Fhe[e]||(Fhe[e]=FEe(e))},kQ={},Uhe=_o.TypeError,PUt=_o.WeakMap;if(MUt||Qh.state){var ug=Qh.state||(Qh.state=new PUt),NUt=ii(ug.get),zhe=ii(ug.has),RUt=ii(ug.set);vj=function(e,t){if(zhe(ug,e))throw new Uhe("Object already initialized");return t.facade=e,RUt(ug,e,t),t},m_=function(e){return NUt(ug,e)||{}},mj=function(e){return zhe(ug,e)}}else{var g1=VEe("state");kQ[g1]=!0,vj=function(e,t){if(Vu(e,g1))throw new Uhe("Object already initialized");return t.facade=e,Ab(e,g1,t),t},m_=function(e){return Vu(e,g1)?e[g1]:{}},mj=function(e){return Vu(e,g1)}}var yj={get:m_,enforce:function(e){return mj(e)?m_(e):vj(e,{})}},qEe=Function.prototype,BUt=Gd&&Object.getOwnPropertyDescriptor,$he=Vu(qEe,"name"),GEe={PROPER:$he&&(function(){}).name==="something",CONFIGURABLE:$he&&(!Gd||Gd&&BUt(qEe,"name").configurable)},hC=vQ((function(e){var t=GEe.CONFIGURABLE,n=yj.get,r=yj.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)&&Ab(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:Ab(i,a,s)):c?i[a]=s:mQ(a,s)})(Function.prototype,"toString",(function(){return pl(this)&&n(this).source||EQ(this)}))})),LUt=ii({}.toString),FUt=ii("".slice),Zh=function(e){return FUt(LUt(e),8,-1)},UUt=$0("toStringTag"),zUt=_o.Object,$Ut=Zh((function(){return arguments})())=="Arguments",TQ=AQ?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=zUt(e),UUt))=="string"?n:$Ut?Zh(t):(r=Zh(t))=="Object"&&pl(t.callee)?"Arguments":r},jUt=AQ?{}.toString:function(){return"[object "+TQ(this)+"]"};AQ||hC(Object.prototype,"toString",jUt,{unsafe:!0});var jhe,Hhe={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},xB=CQ("span").classList,Whe=xB&&xB.constructor&&xB.constructor.prototype,HUt=Whe===Object.prototype?void 0:Whe,Vhe=ii(ii.bind),SB=_o.Object,WUt=ii("".split),_Q=cs((function(){return!SB("z").propertyIsEnumerable(0)}))?function(e){return Zh(e)=="String"?WUt(e,""):SB(e)}:SB,VUt=Math.ceil,qUt=Math.floor,DQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?qUt:VUt)(t)},GUt=Math.min,KEe=function(e){return e>0?GUt(DQ(e),9007199254740991):0},IQ=function(e){return KEe(e.length)},qhe=Array.isArray||function(e){return Zh(e)=="Array"},YEe=function(){},KUt=[],QEe=W5("Reflect","construct"),OQ=/^\s*(?:class|function)\b/,YUt=ii(OQ.exec),QUt=!OQ.exec(YEe),p4=function(e){if(!pl(e))return!1;try{return QEe(YEe,KUt,e),!0}catch{return!1}},ZEe=!QEe||cs((function(){var e;return p4(p4.call)||!p4(Object)||!p4((function(){e=!0}))||e}))?function(e){if(!pl(e))return!1;switch(TQ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QUt||!!YUt(OQ,EQ(e))}:p4,ZUt=$0("species"),Ghe=_o.Array,XUt=function(e,t){return new((function(n){var r;return qhe(n)&&(r=n.constructor,(ZEe(r)&&(r===Ghe||qhe(r.prototype))||Rf(r)&&(r=r[ZUt])===null)&&(r=void 0)),r===void 0?Ghe:r})(e))(t===0?0:t)},Khe=ii([].push),Xp=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=bQ(l),h=_Q(v),g=(function(A,S){return HEe(A),S===void 0?A:Vhe?Vhe(A,S):function(){return A.apply(S,arguments)}})(u,d),y=IQ(h),m=0,b=c||XUt,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:Khe(w,f)}else switch(e){case 4:return!1;case 7:Khe(w,f)}return i?-1:r||o?o:w}},JUt=[Xp(0),Xp(1),Xp(2),Xp(3),Xp(4),Xp(5),Xp(6),Xp(7)][0],EB=(jhe=[].forEach)&&cs((function(){jhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return JUt(this,e,arguments.length>1?arguments[1]:void 0)},XEe=function(e){if(e&&e.forEach!==EB)try{Ab(e,"forEach",EB)}catch{e.forEach=EB}};for(var kB in Hhe)Hhe[kB]&&XEe(_o[kB]&&_o[kB].prototype);XEe(HUt);var Yhe={}.propertyIsEnumerable,Qhe=Object.getOwnPropertyDescriptor,JEe={f:Qhe&&!Yhe.call({1:2},1)?function(e){var t=Qhe(this,e);return!!t&&t.enumerable}:Yhe},c9=function(e){return _Q(wb(e))},Zhe=Object.getOwnPropertyDescriptor,eke={f:Gd?Zhe:function(e,t){if(e=c9(e),t=xQ(t),zEe)try{return Zhe(e,t)}catch{}if(Vu(e,t))return SQ(!ls(JEe.f,e,t),e[t])}},ezt=Math.max,tzt=Math.min,bj=function(e,t){var n=DQ(e);return n<0?ezt(n+t,0):tzt(n,t)},nzt=function(e){return function(t,n,r){var o,i=c9(t),a=IQ(i),s=bj(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}},rzt=nzt(!1),Xhe=ii([].push),tke=function(e,t){var n,r=c9(e),o=0,i=[];for(n in r)!Vu(kQ,n)&&Vu(r,n)&&Xhe(i,n);for(;t.length>o;)Vu(r,n=t[o++])&&(~rzt(i,n)||Xhe(i,n));return i},y_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ozt=y_.concat("length","prototype"),izt={f:Object.getOwnPropertyNames||function(e){return tke(e,ozt)}},nke={f:Object.getOwnPropertySymbols},azt=ii([].concat),szt=W5("Reflect","ownKeys")||function(e){var t=izt.f(Mc(e)),n=nke.f;return n?azt(t,n(e)):t},lzt=function(e,t){for(var n=szt(t),r=u9.f,o=eke.f,i=0;i<n.length;i++){var a=n[i];Vu(e,a)||r(e,a,o(t,a))}},uzt=/#|\.prototype\./,V5=function(e,t){var n=dzt[czt(e)];return n==pzt||n!=fzt&&(pl(t)?cs(t):!!t)},czt=V5.normalize=function(e){return String(e).replace(uzt,".").toLowerCase()},dzt=V5.data={},fzt=V5.NATIVE="N",pzt=V5.POLYFILL="P",hzt=V5,gzt=eke.f,d9=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]||mQ(s,{}):(_o[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=gzt(n,r))&&a.value:n[r],!hzt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;lzt(i,o)}(e.sham||o&&o.sham)&&Ab(i,"sham",!0),hC(n,r,i,e)}},K8=Object.keys||function(e){return tke(e,y_)},v1=Object.assign,Jhe=Object.defineProperty,vzt=ii([].concat),e0e=!v1||cs((function(){if(Gd&&v1({b:1},v1(Jhe({},"a",{enumerable:!0,get:function(){Jhe(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})),v1({},e)[n]!=7||K8(v1({},t)).join("")!=r}))?function(e,t){for(var n=bQ(e),r=arguments.length,o=1,i=nke.f,a=JEe.f;r>o;)for(var s,l=_Q(arguments[o++]),u=i?vzt(K8(l),i(l)):K8(l),d=u.length,c=0;d>c;)s=u[c++],Gd&&!ls(a,l,s)||(n[s]=l[s]);return n}:v1;d9({target:"Object",stat:!0,forced:Object.assign!==e0e},{assign:e0e});var t0e=vQ((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,"&amp;").replace(/</g,"&lt;").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 O=b[g];return b[g]=A,a.languages.DFS(a.languages,(function(I,P){P===O&&I!=g&&(this[I]=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],O=a.util.type(k);O!=="Object"||w[A(k)]?O!=="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(I){S.highlightedCode=I,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 O=new Worker(a.filename);O.onmessage=function(I){k(I.data)},O.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 O=0;O<k.length;++O){if(A&&A.cause==S+","+O)return;var I=k[O],P=I.inside,M=!!I.lookbehind,_=!!I.greedy,R=I.alias;if(_&&!I.pattern.global){var N=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,N+"g")}for(var V=I.pattern||I,L=b.next,j=w;L!==y.tail&&!(A&&j>=A.reach);j+=L.value.length,L=L.next){var H=L.value;if(y.length>g.length)return;if(!(H instanceof s)){var G,Z=1;if(_){if(!(G=l(V,j,g,M)))break;var z=G.index,U=G.index+G[0].length,W=j;for(W+=L.value.length;z>=W;)W+=(L=L.next).value.length;if(j=W-=L.value.length,L.value instanceof s)continue;for(var re=L;re!==y.tail&&(W<U||typeof re.value=="string");re=re.next)Z++,W+=re.value.length;Z--,H=g.slice(j,W),G.index-=j}else if(!(G=l(V,0,H,M)))continue;z=G.index;var J=G[0],te=H.slice(0,z),X=H.slice(z+J.length),ue=j+H.length;A&&ue>A.reach&&(A.reach=ue);var me=L.prev;if(te&&(me=c(y,me,te),j+=te.length),f(y,me,Z),L=c(y,me,new s(S,P?a.tokenize(J,P):J,R,J)),X&&c(y,L,X),Z>1){var Me={cause:S+","+O,reach:ue};u(g,y,m,L.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(O){b+=g(O,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,"&quot;")+'"';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:{});/**
  876. * Prism: Lightweight, robust, elegant syntax highlighting
  877. *
  878. * @license MIT <https://opensource.org/licenses/MIT>
  879. * @author Lea Verou <https://lea.verou.me>
  880. * @namespace
  881. * @public
  882. */e.exports&&(e.exports=t),v_!==void 0&&(v_.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(/&amp;/,"&"))})),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(/&amp;/,"&"))})),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:/![sra](?=[:}]$)/,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(U,W){return U.replace(/<<(\d+)>>/g,(function(re,J){return"(?:"+W[+J]+")"}))}function n(U,W,re){return RegExp(t(U,W),"")}function r(U,W){for(var re=0;re<W;re++)U=U.replace(/<<self>>/g,(function(){return"(?:"+U+")"}));return U.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(U){return"\\b(?:"+U.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:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,I=/"(?:\\.|[^\\"\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,[I]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),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 M=I+"|"+O,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),R=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,j=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),H=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[j,L]),G=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[M]),2),Z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,L]);function z(U,W){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[U]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[W,L]),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:z(H,j)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:z(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(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}}));var mzt=["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 rke(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce((function(t,n){return t+rke(n)}),0)}var lS,yzt=_o.String,Hf=function(e){if(TQ(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yzt(e)},oke=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},MQ=_o.RegExp,wj=cs((function(){var e=MQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));wj||cs((function(){return!MQ("a","y").sticky}));var ike={BROKEN_CARET:wj||cs((function(){var e=MQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:wj},bzt=Gd?Object.defineProperties:function(e,t){Mc(e);for(var n,r=c9(t),o=K8(t),i=o.length,a=0;i>a;)u9.f(e,n=o[a++],r[n]);return e},wzt=W5("document","documentElement"),ake=VEe("IE_PROTO"),TB=function(){},ske=function(e){return"<script>"+e+"<\/script>"},n0e=function(e){e.write(ske("")),e.close();var t=e.parentWindow.Object;return e=null,t},Y8=function(){try{lS=new ActiveXObject("htmlfile")}catch{}var e,t;Y8=typeof document<"u"?document.domain&&lS?n0e(lS):((t=CQ("iframe")).style.display="none",wzt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ske("document.F=Object")),e.close(),e.F):n0e(lS);for(var n=y_.length;n--;)delete Y8.prototype[y_[n]];return Y8()};kQ[ake]=!0;var r0e,_B,Azt=Object.create||function(e,t){var n;return e!==null?(TB.prototype=Mc(e),n=new TB,TB.prototype=null,n[ake]=e):n=Y8(),t===void 0?n:bzt(n,t)},Czt=_o.RegExp,xzt=cs((function(){var e=Czt(".","s");return!(e.dotAll&&e.exec(`
  883. `)&&e.flags==="s")})),Szt=_o.RegExp,Ezt=cs((function(){var e=Szt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),kzt=yj.get,Tzt=yQ("native-string-replace",String.prototype.replace),b_=RegExp.prototype.exec,Aj=b_,_zt=ii("".charAt),Dzt=ii("".indexOf),Izt=ii("".replace),DB=ii("".slice),IB=(_B=/b*/g,ls(b_,r0e=/a/,"a"),ls(b_,_B,"a"),r0e.lastIndex!==0||_B.lastIndex!==0),o0e=ike.BROKEN_CARET,OB=/()??/.exec("")[1]!==void 0;(IB||OB||o0e||xzt||Ezt)&&(Aj=function(e){var t,n,r,o,i,a,s,l=this,u=kzt(l),d=Hf(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ls(Aj,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=o0e&&l.sticky,v=ls(oke,l),h=l.source,g=0,y=d;if(p&&(v=Izt(v,"y",""),Dzt(v,"g")===-1&&(v+="g"),y=DB(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&_zt(d,l.lastIndex-1)!==`
  884. `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),OB&&(n=new RegExp("^"+h+"$(?!\\s)",v)),IB&&(r=l.lastIndex),o=ls(b_,p?n:l,y),p?o?(o.input=DB(o.input,g),o[0]=DB(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:IB&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),OB&&o&&o.length>1&&ls(Tzt,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=Azt(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var gC=Aj;d9({target:"RegExp",proto:!0,forced:/./.exec!==gC},{exec:gC});var PQ=Function.prototype,i0e=PQ.apply,Ozt=PQ.bind,a0e=PQ.call,Mzt=typeof Reflect=="object"&&Reflect.apply||(Ozt?a0e.bind(i0e):function(){return a0e.apply(i0e,arguments)}),Pzt=$0("species"),MB=RegExp.prototype,Nzt=$0("match"),Rzt=_o.TypeError,Bzt=$0("species"),Lzt=ii("".charAt),s0e=ii("".charCodeAt),Fzt=ii("".slice),Uzt=function(e){return function(t,n){var r,o,i=Hf(wb(t)),a=DQ(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=s0e(i,a))<55296||r>56319||a+1===s||(o=s0e(i,a+1))<56320||o>57343?e?Lzt(i,a):r:e?Fzt(i,a,a+2):o-56320+(r-55296<<10)+65536}},zzt=Uzt(!0),$zt=function(e,t,n){return t+(n?zzt(e,t).length:1)},jzt=_o.Array,Hzt=Math.max,l0e=function(e,t,n){for(var r,o,i,a,s=IQ(e),l=bj(t,s),u=bj(n===void 0?s:n,s),d=jzt(Hzt(u-l,0)),c=0;l<u;l++,c++)r=d,o=c,i=e[l],(a=xQ(o))in r?u9.f(r,a,SQ(0,i)):r[a]=i;return d.length=c,d},Wzt=_o.TypeError,u0e=function(e,t){var n=e.exec;if(pl(n)){var r=ls(n,e,t);return r!==null&&Mc(r),r}if(Zh(e)==="RegExp")return ls(gC,e,t);throw Wzt("RegExp#exec called on incompatible receiver")},m1=ike.UNSUPPORTED_Y,Vzt=Math.min,lke=[].push,qzt=ii(/./.exec),y1=ii(lke),h4=ii("".slice);(function(e,t,n,r){var o=$0(e),i=!cs((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!cs((function(){var u=!1,d=/a/;return(d={}).constructor={},d.constructor[Pzt]=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(wb(this)),m=v===void 0?4294967295:v>>>0;if(m===0)return[];if(p===void 0)return[y];if(!Rf(h=p)||!((g=h[Nzt])!==void 0?g:Zh(h)=="RegExp"))return ls(d,y,p,m);for(var b,w,A,S=[],k=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,I=new RegExp(p.source,k+"g");(b=ls(gC,I,y))&&!((w=I.lastIndex)>O&&(y1(S,h4(y,O,b.index)),b.length>1&&b.index<y.length&&Mzt(lke,S,l0e(b,1)),A=b[0].length,O=w,S.length>=m));)I.lastIndex===b.index&&I.lastIndex++;return O===y.length?!A&&qzt(I,"")||y1(S,""):y1(S,h4(y,O)),S.length>m?l0e(S,0,m):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ls(d,this,p,v)}:d,[function(p,v){var h=wb(this),g=p==null?void 0:WEe(p,u);return g?ls(g,p,h,v):ls(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(R,N){var V,L=Mc(R).constructor;return L===void 0||(V=Mc(L)[Bzt])==null?N:(function(j){if(ZEe(j))return j;throw Rzt(jEe(j)+" is not a constructor")})(V)})(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m1?"g":"y"),A=new m(m1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return u0e(A,g)===null?[g]:[];for(var k=0,O=0,I=[];O<g.length;){A.lastIndex=m1?0:O;var P,M=u0e(A,m1?h4(g,O):g);if(M===null||(P=Vzt(KEe(A.lastIndex+(m1?O:0)),g.length))===k)O=$zt(g,O,b);else{if(y1(I,h4(g,k,O)),I.length===S)return I;for(var _=1;_<=M.length-1;_++)if(y1(I,M[_]),I.length===S)return I;O=k=P}}return y1(I,h4(g,k)),I}]})(o,""[e],(function(u,d,c,f,p){var v=ii(u),h=d.exec;return h===gC||h===MB.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));hC(String.prototype,e,l[0]),hC(MB,o,l[1])}r&&Ab(MB[o],"sham",!0)})("split",0,!!cs((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"})),m1),d9({global:!0},{globalThis:_o}),Ju&&(Pt.fn.attr=Ju);var Gzt=GEe.PROPER,Cj=RegExp.prototype,uke=Cj.toString,Kzt=ii(oke),Yzt=cs((function(){return uke.call({source:"a",flags:"b"})!="/a/b"})),Qzt=Gzt&&uke.name!="toString";(Yzt||Qzt)&&hC(RegExp.prototype,"toString",(function(){var e=Mc(this),t=Hf(e.source),n=e.flags;return"/"+t+"/"+Hf(n===void 0&&$Ee(Cj,e)&&!("flags"in Cj)?Kzt(e):n)}),{unsafe:!0});var Zzt=(function(){function e(){this.title=Qn("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()};Xt.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})(),Xzt={renderStyle:function(e,t){var n=e,r=t,o="";return mzt.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=Pt(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 Zzt},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>"}}]},Jzt=/"/g,e$t=ii("".replace);d9({target:"String",proto:!0,forced:cs((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Hf(wb(this)),r="<a",(r+=' name="'+e$t(Hf(t),Jzt,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var cke=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(O){A={error:O}}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=t0e.languages[m];return b?t0e.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+rke(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},sa=function(){return sa=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},sa.apply(this,arguments)},as=(function(){function e(){throw new Error(`不能实例化
  885. Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=sa(sa({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=sa(sa({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=sa(sa({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=sa(sa({},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(LA[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");LA[i]=a,(function(u,d){d!=null&&(P5e[u]=d)})(i,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;oxe[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){mz.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;N5e[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){dz.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){X5e.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;iT[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){VG.push(n)})(t)},e.registerModule=function(t){Cg(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();/*! *****************************************************************************
  886. Copyright (c) Microsoft Corporation.
  887. Permission to use, copy, modify, and/or distribute this software for any
  888. purpose with or without fee is hereby granted.
  889. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  890. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  891. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  892. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  893. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  894. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  895. PERFORMANCE OF THIS SOFTWARE.
  896. ***************************************************************************** */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 as.registerMenu(d)})),n&&n.forEach((function(d){return as.registerRenderElem(d)})),r&&as.registerRenderStyle(r),o&&o.forEach((function(d){return as.registerElemToHtml(d)})),i&&as.registerStyleToHtml(i),a&&a.forEach((function(d){return as.registerPreParseHtml(d)})),s&&s.forEach((function(d){return as.registerParseElemHtml(d)})),l&&as.registerParseStyleHtml(l),u&&as.registerPlugin(u)}a7t.forEach((function(e){return Cg(e)})),Cg(LIt),Cg(uPt),Cg(bBt),Cg(cUt),Cg(Xzt);var dke='<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>',fke={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"]}},t$t={hoverbarKeys:sa(sa({},fke),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};as.setEditorConfig(sa(sa({},t$t),{decorate:cke}));var n$t={hoverbarKeys:fke};as.setSimpleEditorConfig(sa(sa({},n$t),{decorate:cke}));var r$t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Qn("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:Qn("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:Qn("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:Qn("editor.image"),iconSvg:dke,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Qn("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"]};as.setToolbarConfig(r$t);var o$t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Qn("editor.image"),iconSvg:dke,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function i$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"?as.simpleEditorConfig:as.editorConfig,d=sa(sa({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return uSt({selector:n,config:sa(sa(sa({},u),s),{hoverbarKeys:d}),content:o,html:i,plugins:as.plugins})}function a$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"?as.simpleToolbarConfig:as.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 txe(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 hSt(c,v);return BG.set(h,u),T7.set(u,h),h})(n,{selector:t,config:sa(sa({},s),o)});return l}as.setSimpleToolbarConfig(o$t);var s$t=Object.defineProperty,l$t=Object.defineProperties,u$t=Object.getOwnPropertyDescriptors,c0e=Object.getOwnPropertySymbols,c$t=Object.prototype.hasOwnProperty,d$t=Object.prototype.propertyIsEnumerable,d0e=(e,t,n)=>t in e?s$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f$t=(e,t)=>{for(var n in t||(t={}))c$t.call(t,n)&&d0e(e,n,t[n]);if(c0e)for(var n of c0e(t))d$t.call(t,n)&&d0e(e,n,t[n]);return e},p$t=(e,t)=>l$t(e,u$t(t));function Jp(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
  897. Please use '@${e}' event instead of props`,t}var pke=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const h$t=et({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=Y(null),r=Uo(null),o=Y(""),i=()=>{if(!n.value)return;const s=Oo(e.defaultContent);i$t({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:p$t(f$t({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=Jp("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=Jp("onChange");throw new Error(d)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=Jp("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=Jp("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=Jp("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=Jp("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const d=Jp("customAlert");throw new Error(d)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const c=Jp("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()}),Ct(()=>e.modelValue,s=>{s!==o.value&&a(s)}),{box:n}}}),g$t={ref:"box",style:{height:"100%"}};function v$t(e,t,n,r,o,i){return F(),K("div",g$t,null,512)}var m$t=pke(h$t,[["render",v$t]]);const y$t=et({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Y(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");Et.getToolbar(r)||a$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}}}),b$t={ref:"selector"};function w$t(e,t,n,r,o,i){return F(),K("div",b$t,null,512)}var A$t=pke(y$t,[["render",w$t]]);const C$t="/assets/3-DQsDb2Wr.png",x$t="/assets/2-dXZ0SRRr.png",S$t="/assets/1-Bqw91QeI.png",E$t="/assets/18-CEUBeFPE.png",k$t="/assets/19-DzDaxNt7.png",T$t={class:"chat-container"},_$t={class:"history-sidebar"},D$t={class:"history-header"},I$t={class:"history-list"},O$t={key:0,class:"history-loading"},M$t=["onClick"],P$t={class:"history-content"},N$t={class:"history-title"},R$t={class:"history-time"},B$t=["onClick"],L$t={key:2,class:"empty-history"},F$t={class:"main-work"},U$t={class:"work-content"},z$t={key:0,class:"ai-writing-card"},$$t={class:"document-generation"},j$t={class:"input-area"},H$t={class:"input-actions"},W$t={class:"left-actions"},V$t=["disabled"],q$t={key:0,class:"file-preview-inline"},G$t={class:"file-info-inline"},K$t=["src"],Y$t={key:1,class:"file-icon-inline"},Q$t={class:"file-name-inline"},Z$t={class:"right-actions"},X$t=["disabled"],J$t={class:"icon-container"},ejt={key:0,class:"recording-indicator"},tjt=["disabled"],njt=["src"],rjt={key:0,class:"generating-text"},ojt={class:"document-templates"},ijt={class:"template-tabs"},ajt=["onClick"],sjt={class:"template-cards"},ljt=["src","alt"],ujt=["onClick"],cjt={key:1,class:"editor-view"},djt={key:0,class:"editor-full-loading"},fjt={key:1,class:"editor-full-loading"},pjt={class:"editor-header"},hjt={class:"editor-title"},gjt={key:0,class:"editor-subtitle"},vjt={key:1,class:"editor-subtitle"},mjt={class:"editor-actions"},yjt=["disabled"],bjt=["disabled"],wjt={class:"editor-content"},Ajt={class:"polish-input-container"},Cjt={class:"input-wrapper"},xjt=["disabled"],Sjt={class:"char-counter"},Ejt={class:"button-group"},kjt=["disabled"],Tjt=["disabled"],_jt={key:2,class:"detail-view"},Djt={key:0,class:"detail-loading"},Ijt={class:"left-column"},Ojt={class:"chat-area"},Mjt={key:0,class:"user-message"},Pjt={class:"message-content"},Njt={key:0,class:"message-file"},Rjt={class:"file-display"},Bjt={class:"file-icon"},Ljt={class:"file-details"},Fjt={class:"file-name"},Ujt={class:"file-size"},zjt={key:1,class:"message-text"},$jt={class:"action-buttons"},jjt=["onClick"],Hjt=["onClick"],Wjt={key:1,class:"ai-message"},Vjt={class:"message-content"},qjt=["innerHTML"],Gjt=["onClick"],Kjt={class:"doc-details"},Yjt={class:"doc-title"},Qjt={class:"doc-time"},Zjt=["innerHTML"],Xjt={class:"action-buttons"},Jjt={class:"left-actions"},eHt=["onClick"],tHt=["onClick","disabled"],nHt=["onClick"],rHt=["onClick"],oHt={class:"right-actions"},iHt=["onClick"],aHt=["onClick"],sHt={key:0,class:"message-item generating"},lHt={class:"input-section"},uHt={key:0,class:"file-preview-section"},cHt={class:"file-preview"},dHt={class:"file-icon"},fHt=["src"],pHt={key:1},hHt={class:"file-info"},gHt={class:"file-name"},vHt={class:"file-size"},mHt={class:"input-container"},yHt=["disabled"],bHt=["disabled"],wHt=["disabled"],AHt={class:"icon-container"},CHt={key:0,class:"recording-indicator"},xHt=["disabled"],SHt=["src"],EHt={key:0,class:"right-column"},kHt={class:"document-body"},THt=["innerHTML"],_Ht=["innerHTML"],DHt=["innerHTML"],f0e="default",IHt={__name:"AIWriting",setup(e){Y(""),Y("");const t=Y("项目进展总结"),n=Y("工作内容、成果、风险卡点及解决方案"),r=Y(""),o=Y("all"),i=Y("main"),a=Y(null),s=Y(""),l=Y(!1),u=Y(""),d=Y(!1);Y(null);const c=Y(null);jn(()=>{document.addEventListener("selectionchange",He),document.addEventListener("mousemove",Tn),document.addEventListener("mousedown",In),document.addEventListener("mouseup",je),document.addEventListener("scroll",ye,!0),document.addEventListener("keydown",Be),document.addEventListener("compositionstart",ot),document.addEventListener("compositionupdate",gt),document.addEventListener("compositionend",Ke)}),Yr(()=>{document.removeEventListener("selectionchange",He),document.removeEventListener("mousemove",Tn),document.removeEventListener("mousedown",In),document.removeEventListener("mouseup",je),document.removeEventListener("scroll",ye,!0),document.removeEventListener("keydown",Be),document.removeEventListener("compositionstart",ot),document.removeEventListener("compositionupdate",gt),document.removeEventListener("compositionend",Ke)});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=Y(!1),h=Y(null),g=Y(""),y=Y(!1);Y(""),Y(!1);const m=Y(!1),b=Y(!1),w=Y(!1),A=Y(""),S=Y({x:0,y:0}),k=Y(!1),O=Y(""),I=Y({x:0,y:0}),P=Y(!1),M=Y(null),_=Y(""),R=Y(!1),N=Y(null),V=Y(!1),L=Y(null),j=Y(null),H=Y(!1),G=Y(!1);Y("");const Z=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]}),z=Y(null),{isListening:U,transcript:W,error:re,startListening:J,stopListening:te}=T0();let X=null,ue=null;const me=Y(0);Y(2);const Me=ee(()=>r.value||""),Ae=ee(()=>r.value.trim().length>0),ge=Y([]),_e=Y(0),Q=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),m.value=!0;const ne=performance.now(),Ie=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Ve=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Ve-ne).toFixed(2)}ms`),console.log("📋 AI写作历史记录列表响应:",Ie),Ie.statusCode===200?(_e.value=Ie.total||0,ge.value=Ie.data.map(Ut=>({id:Ut.id,title:De(Ut.content),time:pe(Ut.updated_at),businessType:Ut.business_type,isActive:!1,rawData:Ut})),console.log(`✅ AI写作历史记录列表已设置: ${ge.value.length}条记录,总数: ${_e.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 Ve=Ie.data.map(It=>{const rn=ce(It.user_feedback);console.log(`消息 ${It.id} 的反馈状态:`,{raw:It.user_feedback,converted:rn});let dn=null;if(It.type==="ai")try{dn=Pa(It.content),!dn.hasDocument&&!dn.openingText&&!dn.closingText&&(dn={hasDocument:!1,documentContent:null,openingText:It.content,documentText:"",closingText:""})}catch(xr){console.error("解析AI回复失败:",xr),dn={hasDocument:!1,documentContent:null,openingText:It.content,documentText:"",closingText:""}}let kn=null,or=It.content;if(It.type==="user"&&It.content.includes("</filesize>")){const xr=It.content.match(/<filename>(.*?)<\/filename>/),sr=It.content.match(/<filesize>(.*?)<\/filesize>/),nr=It.content.match(/<word>(.*?)<\/word>/s);if(xr&&sr){const Or=xr[1],cr=parseInt(sr[1]),dr=nr?nr[1].trim():"";kn={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 we=It.content.split("</filesize>")[1];or=we?we.trim():""}}return{type:It.type,content:or,displayContent:It.type==="ai"?It.content:or,file:kn,isTyping:!1,id:It.id,userFeedback:rn,parsedContent:dn,created_at:It.created_at,isFromBackend:!0,rawData:It}});a.value.messages=Ve,console.log("AI写作对话消息已设置:",a.value.messages),console.log("消息数量:",Ve.length),console.log("currentView状态:",i.value),me.value=ne;const Ut=Ve.find(It=>It.type==="ai"&&It.parsedContent?.hasDocument);return Ut&&Ut.parsedContent&&(a.value.documentContent=Ut.parsedContent.documentContent,a.value.hasDocument=Ut.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 Ut=ne.split("</filesize>")[1];if(Ut&&Ut.trim()){const rn=Ut.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return rn.length>30?rn.substring(0,30)+"...":rn||"新对话"}}let Ie=ne.replace(/<[^>]*>/g,"");Ie=Ie.replace(/\s+/g," ").trim();const Ve=Ie.split(/[。!?\n]/)[0];return Ve.length>30?Ve.substring(0,30)+"...":Ve||"新对话"},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 Ve=new Date,Ut=new Date(Ve.getFullYear(),Ve.getMonth(),Ve.getDate()),It=new Date(Ut.getTime()-1440*60*1e3);if(Ie>=Ut)return Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Ie>=It&&Ie<Ut)return"昨天 "+Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const rn=Ie.getMonth()+1,dn=Ie.getDate(),kn=Ie.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${rn}月${dn}日 ${kn}`},ie=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=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Le=ee(()=>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){At.warning("第一句话无法删除");return}g.value="message",h.value={messageIndex:ne},v.value=!0},Ne=async()=>{h.value&&(g.value==="history"?await ht():g.value==="message"&&await Rt())},ht=async()=>{const{item:ne,index:Ie}=h.value;try{const Ve=await Bn.deleteHistoryRecord({ai_conversation_id:ne.id});Ve.statusCode===200?(ge.value.splice(Ie,1),ne.isActive&&await _t(),console.log("历史记录删除成功"),At.success("删除成功")):(console.error("删除历史记录失败:",Ve.msg),At.error(Ve.msg||"删除失败"))}catch(Ve){console.error("删除历史记录失败:",Ve),At.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 Ve=await Bn.deleteConversation({ai_message_id:Ie.id});console.log("后端删除接口响应:",Ve),Ve.statusCode===200?(a.value.messages.splice(ne,1),ne>0&&a.value.messages.splice(ne-1,1),l.value&&(l.value=!1,Bt.value=null,console.log("删除对话时关闭文档预览")),console.log("删除成功"),At.success("删除成功")):(console.error("删除失败:",Ve.msg),At.error("删除失败,请稍后重试"))}catch(Ve){console.error("删除接口调用失败:",Ve),At.error("删除失败,请稍后重试")}}else console.log("没有id,仅从前端删除"),a.value.messages.splice(ne,1),l.value&&(l.value=!1,Bt.value=null,console.log("删除对话时关闭文档预览")),At.success("删除成功")}catch(Ie){console.error("删除消息失败:",Ie),At.error("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Lt=()=>{v.value=!1,h.value=null,g.value=""},tn=ne=>{if(!ne||!ne.trim())return"AI写作任务";const Ve=ne.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return Ve.length>30?Ve.substring(0,30)+"...":Ve||"AI写作任务"},Wt=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结报告"},{key:"meeting",name:"会议纪要"},{key:"speech",name:"决定"}],zt=[{id:1,name:"公告模板",image:C$t,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:x$t,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:S$t,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:E$t,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:k$t,category:"speech",buttonClass:"notification-btn"}],dt=ee(()=>o.value==="all"?zt:zt.filter(ne=>ne.category===o.value)),_t=async()=>{if(console.log("创建新AI写作任务"),!(y.value||k.value)){if(Mt(),z.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}z.value=null}me.value=0,a.value=null,i.value="main",l.value=!1,Bt.value=null,s.value="",r.value='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',ge.value.forEach(ne=>{ne.isActive=!1}),await Q()}},ut=async ne=>{if(console.log("点击历史记录:",ne),!y.value){Mt(),V.value=!0,b.value=!0;try{if(z.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}z.value=null}if(a.value=ne,l.value=!1,Bt.value=null,ge.value.forEach(Ve=>{Ve.isActive=Ve.id===ne.id}),await be(ne.id)){console.log("AI写作历史对话加载成功,直接进入富文本编辑器");const Ve=a.value.messages.find(Ut=>Ut.type==="ai");if(Ve){console.log("AI消息内容长度:",Ve.content.length),console.log("AI消息内容预览:",Ve.content.substring(0,200)+"...");const Ut=Nn(Ve.content);Ot(Ut)}else{const Ut=a.value.messages.find(It=>It.type==="user");if(Ut){const It=Nn(Ut.content);Ot(It)}else Ot("<p>暂无内容</p>")}}else console.error("加载历史对话失败"),At.error("加载历史对话失败,请稍后重试")}catch(Ie){console.error("加载AI写作历史对话失败:",Ie),At.error("加载历史对话时发生错误,请稍后重试")}finally{b.value=!1,setTimeout(()=>{V.value=!1,console.log("历史记录内容加载完成,允许显示扩写弹窗")},500)}}},rt=ne=>{c.value=ne,console.log("wangeditor 编辑器创建完成")},he=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 Ve="";if(c.value)try{Ve=c.value.getHtml(),console.log("保存文档 - 从wangeditor获取内容,长度:",Ve.length),console.log("保存文档 - 内容预览:",Ve.substring(0,200)+"...")}catch(rn){console.log("从wangeditor获取内容失败,使用editorContent:",rn),Ve=u.value||""}else Ve=u.value||"",console.log("保存文档 - 从editorContent获取内容,长度:",Ve.length);if(!Ve||Ve.trim()===""){At.warning("没有内容可保存");return}console.log("保存文档内容长度:",Ve.length);const Ut=a.value?.id;if(!Ut){At.error("无法获取对话ID,请重新选择历史记录");return}const It=await Bn.saveEditDocument({ai_conversation_id:Ut,content:Ve});It&&It.data&&It.statusCode===200?(Ie||At.success("文档保存成功"),console.log("文档保存成功,返回内容:",It.data.data)):(At.error("文档保存失败,请重试"),console.error("保存失败:",It))}catch(Ve){console.error("保存文档失败:",Ve),At.error("保存文档失败,请检查网络连接")}},ct=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()===""){At.warning("没有可下载的内容");return}const Ve=Ci();let Ut;Ve&&Ve!=="AI生成文档"?Ut=`${Ve.replace(/[<>:"/\\|?*]/g,"").trim()}.docx`:Ut=`AI生成文档_${new Date().toISOString().slice(0,19).replace(/[-:]/g,"").replace("T","_")}.docx`,await xi(ne,Ve,Ut)}catch(ne){console.error("下载Word文档失败:",ne),At.error("下载Word文档失败,请重试")}},Ot=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(Ve){console.error("重新初始化编辑器也失败:",Ve),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(Ve){console.error("延迟重新初始化编辑器也失败:",Ve),u.value=ne,d.value=!0,y.value=!1}}},500)},100)})},Tn=ne=>{ne.target.closest(".ai-polish-input")||P.value&&(I.value={x:ne.clientX,y:ne.clientY})},In=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")){Mt();return}P.value=!0,I.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")&&Mt()}},je=()=>{k.value||(P.value=!1,setTimeout(()=>{ke()},50))},ke=()=>{if(console.log("=== checkSelectionAndShowButton 被调用 ==="),V.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 Ve=400,Ut=60,It=10,rn=window.innerWidth,dn=window.innerHeight;let kn=I.value.x+It,or=I.value.y-80;if(kn+Ve>rn&&(kn=I.value.x-Ve-It),kn<It&&(kn=It),or<It&&(or=I.value.y+It),or+Ut>dn-It&&(or=dn-Ut-It),kn=Math.max(It,Math.min(kn,rn-Ve-It)),or=Math.max(It,Math.min(or,dn-Ut-It)),S.value={x:kn,y:or},w.value=!0,console.log("选中文本:",Ie),console.log("鼠标位置:",I.value),console.log("视口尺寸:",{width:rn,height:dn}),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 sr=document.createElement("div");sr.appendChild(Vn.cloneContents());const nr=sr.innerHTML,Or=sr.textContent||sr.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>");M.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("选区不在编辑器内,清除保存的选区"),M.value=null}catch(Vn){console.error("保存选区失败:",Vn),M.value=null}}else console.log("没有选中文本,隐藏输入框"),Mt()}catch(ne){console.error("处理文本选择失败:",ne),Mt()}},ye=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("检测到编辑器内滚动,隐藏扩写输入框"),Mt()}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("检测到退格/删除键,隐藏扩写输入框"),Mt()):ne.key.length===1&&!ne.ctrlKey&&!ne.metaKey&&!ne.altKey?(console.log("检测到文字输入,隐藏扩写输入框"),Mt()):ne.key===" "?(console.log("检测到空格键,隐藏扩写输入框"),Mt()):ne.key==="Enter"&&(console.log("检测到Enter键,隐藏扩写输入框"),Mt()))}},ot=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("检测到输入法开始,隐藏扩写输入框"),Mt())}},gt=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("检测到输入法更新,隐藏扩写输入框"),Mt())}},Ke=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("检测到输入法结束,隐藏扩写输入框"),Mt())}},He=()=>{if(console.log("=== handleSelectionChange 被调用 ==="),k.value){console.log("正在润色中,跳过选择变化处理");return}if(w.value){console.log("润色输入框正在显示,跳过选择变化处理");return}P.value?console.log("鼠标仍按下,等待松开"):(console.log("鼠标已松开,调用 checkSelectionAndShowButton"),ke())},at=ne=>{ne.stopPropagation(),R.value=!0,Qe()},St=ne=>{R.value=!0,Qe()},tt=ne=>{R.value=!1,it(),setTimeout(()=>{if(M.value&&M.value.range)try{const Ie=window.getSelection();Ie&&(Ie.removeAllRanges(),Ie.addRange(M.value.range),console.log("输入框失焦时恢复选区成功"))}catch(Ie){console.error("恢复选区失败:",Ie)}},10)},Qe=()=>{if(!(!M.value||!M.value.range))try{const ne=M.value.range,Ie=ne.getClientRects();if(it(),!Ie||Ie.length===0){const Ut=ne.getBoundingClientRect();if(Ut.width===0||Ut.height===0){console.log("选区矩形为空,跳过高亮创建");return}const It=document.createElement("div");It.className="custom-selection-highlight",It.style.cssText=`
  898. position: fixed;
  899. left: ${Ut.left}px;
  900. top: ${Ut.top}px;
  901. width: ${Ut.width}px;
  902. height: ${Ut.height}px;
  903. background-color: rgba(59, 130, 246, 0.2);
  904. border: 1px solid rgba(59, 130, 246, 0.5);
  905. border-radius: 2px;
  906. pointer-events: none;
  907. z-index: 998;
  908. transition: all 0.2s ease;
  909. `,document.body.appendChild(It),N.value=[It],console.log("自定义高亮创建成功(单个矩形)");return}const Ve=[];for(let Ut=0;Ut<Ie.length;Ut++){const It=Ie[Ut];if(It.width===0||It.height===0)continue;const rn=document.createElement("div");rn.className="custom-selection-highlight",rn.style.cssText=`
  910. position: fixed;
  911. left: ${It.left}px;
  912. top: ${It.top}px;
  913. width: ${It.width}px;
  914. height: ${It.height}px;
  915. background-color: rgba(59, 130, 246, 0.2);
  916. border: 1px solid rgba(59, 130, 246, 0.5);
  917. border-radius: 2px;
  918. pointer-events: none;
  919. z-index: 998;
  920. transition: all 0.2s ease;
  921. `,document.body.appendChild(rn),Ve.push(rn)}N.value=Ve,console.log(`自定义高亮创建成功(${Ve.length}个矩形)`)}catch(ne){console.error("创建自定义高亮失败:",ne)}},it=()=>{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)}},Mt=()=>{w.value=!1,A.value="",_.value="",O.value="",R.value=!1,it(),M.value=null},Gt=async()=>{if(!(!A.value.trim()||k.value))try{k.value=!0,O.value="polish";let ne=`请对以下文本进行扩写,要求:
  922. 1. 保持原文的核心意思和逻辑结构
  923. 2. 提升语言的流畅性和专业性
  924. 3. 优化表达方式,使其更加准确和生动
  925. 4. 保持原文的语调和风格
  926. 5. 只返回扩写后的文本,不要添加任何解释或说明`;_.value.trim()&&(ne=`请根据以下要求对文本进行处理:${_.value.trim()}
  927. 要求:
  928. 1. 保持原文的核心意思和逻辑结构
  929. 2. 只返回处理后的文本,不要添加任何解释或说明`),ne+=`
  930. 原文:
  931. ${A.value}`;const Ie=await Bn.reProduceSingleQuestion({message:ne});if(Ie&&Ie.data&&Ie.data.reply){const Ve=Ie.data.reply.trim();if(c.value)try{let Ut=null,It="";const rn=window.getSelection();if(rn&&rn.toString().trim()?(Ut=rn,It=rn.toString(),console.log("使用当前选区:",It)):M.value&&M.value.text&&(It=M.value.text,console.log("使用保存的选区:",It)),It){if(M.value&&M.value.range)try{const xr=c.value;if(xr.restoreSelection&&typeof xr.restoreSelection=="function"){xr.restoreSelection(M.value.range),xr.insertText(Ve),console.log("扩写完成,通过wangeditor restoreSelection + insertText API"),At.success("文本扩写完成");return}else throw new Error("wangeditor restoreSelection API不可用")}catch(xr){console.error("使用wangeditor API替换失败,尝试字符串替换:",xr)}if(Ut)try{const xr=Ut.getRangeAt(0),sr=c.value.getEditableContainer();if(sr&&sr.contains(xr.commonAncestorContainer)){c.value.insertText(Ve),console.log("扩写完成,通过wangeditor insertText API"),Ut.removeAllRanges();return}else throw new Error("选区不在编辑器内")}catch(xr){console.log("insertText失败,尝试字符串替换:",xr)}const dn=c.value.getHtml();console.log("扩写前内容长度:",dn.length);let kn=dn,or=!1;console.log("扩写调试信息:",{selectedText:It,currentHtmlLength:dn.length,savedSelection:M.value,hasCurrentSelection:!!Ut});const Vn=M.value?.html?new DOMParser().parseFromString(M.value.html,"text/html").documentElement.textContent:"";if(M.value&&M.value.html&&(dn.includes(M.value.html)||dn.includes(Vn)))dn.includes(M.value.html)?(kn=dn.replace(M.value.html,Ve),or=!0,console.log("策略1成功:通过保存的HTML结构替换")):dn.includes(Vn)&&(kn=dn.replace(Vn,Ve),or=!0,console.log("策略1成功:通过解码后的HTML结构替换"));else if(M.value&&M.value.plainText&&dn.includes(M.value.plainText))kn=dn.replace(M.value.plainText,Ve),or=!0,console.log("策略1.5成功:通过保存的纯文本替换");else if(dn.includes(It))kn=dn.replace(It,Ve),or=!0,console.log("策略2成功:直接字符串替换");else{const xr=It.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");if(console.log("策略3尝试:HTML实体替换",{htmlEntities:xr,includes:dn.includes(xr)}),dn.includes(xr))kn=dn.replace(xr,Ve),or=!0,console.log("策略3成功:HTML实体替换");else{const sr=new RegExp(`>[^<]*${It.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[^<]*<`,"g"),nr=dn.match(sr);if(console.log("策略4尝试:正则表达式匹配",{regex:sr,match:nr}),nr)kn=dn.replace(nr[0],nr[0].replace(It,Ve)),or=!0,console.log("策略4成功:正则表达式替换");else{const Or=It.replace(/<[^>]*>/g,"").trim(),cr=dn.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"),we=dn.match(dr);we&&(kn=dn.replace(we[0],we[0].replace(Or,Ve)),or=!0,console.log("策略5成功:通过模糊匹配替换"))}}}}if(or)try{c.value.setHtml(kn),setTimeout(()=>{try{const xr=c.value.getEditableContainer();if(xr){const sr=new Event("input",{bubbles:!0});xr.dispatchEvent(sr)}}catch(xr){console.log("编辑器状态同步失败:",xr)}},10),console.log("润色后内容长度:",kn.length),console.log("润色完成,通过字符串替换"),console.log("润色后内容预览:",kn.substring(0,200)+"...")}catch(xr){console.error("设置编辑器内容失败:",xr),At.error("润色失败,请重试");return}else{console.log("所有替换策略都失败,未找到匹配的文本"),At.warning("未找到选中的文本,请重新选择");return}}else{console.log("没有找到选中的文本"),At.warning("请先选择要润色的文本");return}}catch(Ut){console.error("润色失败:",Ut),At.error("润色失败,请重试");return}At.success("文本润色完成"),console.log("文本润色完成")}else At.error("润色失败,请重试")}catch(ne){console.error("AI润色失败:",ne),At.error("润色失败,请检查网络连接")}finally{k.value=!1,O.value="",Mt()}},En=async()=>{if(!(!A.value.trim()||k.value))try{k.value=!0,O.value="continue";let ne=`请对以下文本进行续写,要求:
  932. 1. 保持原文的语调和风格
  933. 2. 在原文基础上自然延续,【重要】绝对不要重复原文内容
  934. 3. 续写的内容应该与原文逻辑连贯
  935. 4. 增加新的内容,使文章更加完整
  936. 5. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
  937. 6. 【重要】直接开始续写新内容,不要重复原文的最后几个字
  938. 7. 如果AI无法理解或续写,请返回"无法续写"`;_.value.trim()&&(ne=`请根据以下要求对文本进行续写:${_.value.trim()}
  939. 要求:
  940. 1. 保持原文的语调和风格
  941. 2. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
  942. 3. 【重要】直接开始续写新内容,不要重复原文
  943. 4. 如果AI无法理解或续写,请返回"无法续写"`),ne+=`
  944. 原文:
  945. ${A.value}
  946. 请直接开始续写,不要重复原文:`;const Ie=await Bn.reProduceSingleQuestion({message:ne});if(Ie&&Ie.data&&Ie.data.reply){let Ve=Ie.data.reply.trim();if(console.log("AI返回的原始续写内容:",Ve),console.log("原文:",A.value),Ve.includes(A.value)){console.log("AI返回内容包含原文,开始提取纯续写部分");const It=Ve.indexOf(A.value);It!==-1&&(Ve=Ve.substring(It+A.value.length).trim(),console.log("提取后的纯续写内容:",Ve))}else console.log("AI返回内容不包含原文,直接使用");const Ut=[/^续写[::]/,/^续写内容[::]/,/^续写部分[::]/,/^以下是续写[::]/,/^以下是续写内容[::]/];for(const It of Ut)if(It.test(Ve)){Ve=Ve.replace(It,"").trim(),console.log("移除前缀后的续写内容:",Ve);break}if(!Ve||Ve==="无法续写"||Ve.length<2){At.warning("AI无法续写此内容,请尝试其他文本或调整要求");return}if(console.log("最终使用的续写内容:",Ve),c.value)try{if(console.log("续写调试信息:",{selectedText:A.value,continuedText:Ve,hasSavedRange:!!M.value?.range,savedSelection:M.value}),M.value&&M.value.range)try{const kn=M.value.range,or=c.value.getEditableContainer();if(or&&or.contains(kn.endContainer)){const Vn=document.createRange();Vn.setStart(kn.endContainer,kn.endOffset),Vn.setEnd(kn.endContainer,kn.endOffset);const xr=document.createTextNode(Ve);Vn.insertNode(xr),Vn.setStartAfter(xr),Vn.collapse(!0);const sr=window.getSelection();sr&&(sr.removeAllRanges(),sr.addRange(Vn)),setTimeout(()=>{try{const nr=new Event("input",{bubbles:!0});or.dispatchEvent(nr)}catch(nr){console.log("触发input事件失败:",nr)}},10),console.log("续写成功:通过Range在选区末尾插入文本节点"),At.success("文本续写完成");return}else console.log("Range不在编辑器内,尝试其他策略")}catch(kn){console.error("使用Range插入失败:",kn)}const It=c.value.getHtml();let rn=It,dn=!1;if(M.value&&M.value.html&&It.includes(M.value.html)){const kn=M.value.html+Ve;rn=It.replace(M.value.html,kn),dn=!0,console.log("续写成功:通过HTML结构匹配添加续写")}else if(M.value&&M.value.plainText&&It.includes(M.value.plainText)){const kn=M.value.plainText+Ve;rn=It.replace(M.value.plainText,kn),dn=!0,console.log("续写成功:通过纯文本匹配添加续写")}else if(It.includes(A.value)){const kn=A.value+Ve;rn=It.replace(A.value,kn),dn=!0,console.log("续写成功:通过直接文本匹配添加续写")}dn?(c.value.setHtml(rn),setTimeout(()=>{try{const kn=c.value.getEditableContainer();if(kn){const or=new Event("input",{bubbles:!0});kn.dispatchEvent(or)}}catch(kn){console.log("编辑器状态同步失败:",kn)}},10),console.log("续写完成"),At.success("文本续写完成")):(console.error("所有策略都失败了"),console.log("续写失败调试信息:",{selectedText:A.value,savedSelectionHtml:M.value?.html,savedSelectionPlainText:M.value?.plainText,currentHtmlPreview:It.substring(0,500)}),At.error("续写失败,无法找到选中的文本"))}catch(It){console.error("续写过程中发生错误:",It),At.error("续写失败,请重试")}else console.error("编辑器引用不存在"),At.error("续写失败,编辑器未初始化")}else At.error("续写失败,请重试")}catch(ne){console.error("AI续写失败:",ne),At.error("续写失败,请检查网络连接")}finally{k.value=!1,O.value="",Mt()}},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,`
  947. `).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 Ve=document.querySelector(".template-input-container");if(Ve){Ve.innerHTML=Ie,r.value=Ie.replace(/<[^>]*>/g,""),Ve.querySelectorAll(".editable-highlight").forEach(dn=>{dn.style.backgroundColor="#3E7BFA10",dn.style.color="#3E7BFA",dn.style.padding="4px 8px",dn.style.borderRadius="6px",dn.style.fontWeight="500",dn.style.cursor="text",dn.style.border="1px solid transparent",dn.style.display="inline-block",dn.style.minWidth="20px"}),Ve.focus();const It=document.createRange(),rn=window.getSelection();It.selectNodeContents(Ve),It.collapse(!1),rn.removeAllRanges(),rn.addRange(It),console.log("模板已应用,templateContent更新为:",r.value)}},Bt=Y(null),mn=ne=>{Bt.value&&Bt.value===ne?(l.value=!1,Bt.value=null):(Bt.value=ne,l.value=!0),console.log("切换文档预览状态:",l.value,"选中文档:",Bt.value)},Mn=()=>{l.value=!1,Bt.value=null,console.log("关闭文档预览")},tr=async()=>{if(!Ae.value){console.log("请输入内容");return}const ne=j.value;i.value="editor",y.value=!0,l.value=!1,Bt.value=null,(ge.value.length===0||!ge.value.some(Ve=>Ve.isActive))&&(ge.value.forEach(Ve=>{Ve.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const Ie={id:Date.now(),title:tn(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&&bn(),console.log("发送AI写作请求:"),console.log("完整文本:",Me.value),console.log("目的:",t.value),console.log("内容:",n.value),console.log("额外:",r.value),await Qo(Ie,null,Me.value,ne)},cn=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 Ve=window.getSelection(),Ut=document.createRange();ne.target.firstChild?Ut.setStart(ne.target.firstChild,0):Ut.setStart(ne.target,0),Ut.collapse(!0),Ve.removeAllRanges(),Ve.addRange(Ut),ne.target.focus()}},200)},qe=ne=>{const Ie=ne.target.innerText||ne.target.textContent;ne.clipboardData.setData("text/plain",Ie),ne.preventDefault(),console.log("复制成功:",Ie)},yt=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},Zt=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(()=>qE),void 0);console.log("mammoth库导入成功");const Ve=await ne.arrayBuffer();console.log("文件转换为ArrayBuffer成功,大小:",Ve.byteLength),console.log("开始提取文本内容...");const Ut=await Ie.extractRawText({arrayBuffer:Ve});return console.log("Word文件读取完成,内容长度:",Ut.value.length),Ut.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}`)}},bt=()=>{if(j.value){At.warning("只能上传一个文件,请先删除当前文件");return}L.value?.click()},Kt=async ne=>{const Ie=ne.target.files[0];if(Ie)try{const Ve=yt(Ie);H.value=!0,console.log("开始读取文件内容:",Ie.name);const Ut=await Zt(Ie);j.value={file:Ie,name:Ie.name,size:Ie.size,type:Ve,icon:Rn(Ve),content:Ut};const It=Ut.length;console.log("文件内容提取完成,字符数:",It),At.success("文件读取成功")}catch(Ve){console.error("文件读取失败:",Ve),At.error(Ve.message||"文件读取失败,请重试")}finally{H.value=!1,ne.target.value=""}},bn=()=>{j.value&&(j.value=null)},Rn=ne=>{switch(ne){case".doc":case".docx":return wq;default:return"📎"}},Kn=()=>{console.log("点击语音按钮"),U.value?ho():Fr()},Fr=()=>{console.log("开始语音输入"),J()||At.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,Ve=/(.)\1{3,}/g;if(Ve.test(Ie)){const Ut=Ie.replace(Ve,(It,rn)=>rn.repeat(3));s.value=Ut,At.warning("检测到重复字符,已自动清理");return}Ie.length>2e3&&(s.value=Ie.substring(0,2e3),At.warning("消息长度不能超过2000字"))},100)},bo=async ne=>{try{await navigator.clipboard.writeText(ne),At.success("复制成功")}catch{const Ve=document.createElement("textarea");Ve.value=ne,document.body.appendChild(Ve),Ve.select(),document.execCommand("copy"),document.body.removeChild(Ve),At.success("复制成功")}},Bo=()=>{let ne=a.value?.documentContent;if(!ne){const Ie=a.value?.messages?.find(Ve=>Ve.type==="ai"&&Ve.parsedContent?.hasDocument);Ie&&Ie.parsedContent&&(ne=Ie.parsedContent.documentContent)}if(!ne){At.warning("没有可复制的文档内容");return}try{let Ie="";ne.title&&(Ie+=`${ne.title}
  948. `),ne.sections&&ne.sections.forEach((Ve,Ut)=>{Ie+=`${Ve.title}
  949. `;const It=Ve.content.replace(/<[^>]*>/g,"");Ie+=`${It}
  950. `}),Ie=Rr(Ie),bo(Ie.trim())}catch(Ie){console.error("复制文档内容失败:",Ie),At.error("复制失败,请重试")}},br=async()=>{let ne=a.value?.documentContent;if(!ne){const Ie=a.value?.messages?.find(Ve=>Ve.type==="ai"&&Ve.parsedContent?.hasDocument);Ie&&Ie.parsedContent&&(ne=Ie.parsedContent.documentContent)}if(!ne){At.warning("没有可下载的文档内容");return}try{const Ie=Vr(ne),Ve=new Blob([Ie],{type:"application/msword"}),{saveAs:Ut}=await Mf(async()=>{const{saveAs:rn}=await import("./FileSaver.min-B0XflAa7.js").then(dn=>dn.F);return{saveAs:rn}},[]),It=ne.title||"AI生成的文档";Ut(Ve,`${It}.doc`),At.success("下载成功")}catch(Ie){console.error("下载文档失败:",Ie),At.error("下载失败,请重试")}},Vr=ne=>{let Ie=`<!DOCTYPE html>
  951. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  952. xmlns:w="urn:schemas-microsoft-com:office:word"
  953. xmlns="http://www.w3.org/TR/REC-html40">
  954. <head>
  955. <meta charset="utf-8">
  956. <meta name="ProgId" content="Word.Document">
  957. <meta name="Generator" content="Microsoft Word 15">
  958. <meta name="Originator" content="Microsoft Word 15">
  959. <title>${ne.title||"AI生成的文档"}</title>
  960. <!--[if gte mso 9]>
  961. <xml>
  962. <w:WordDocument>
  963. <w:View>Print</w:View>
  964. <w:Zoom>100</w:Zoom>
  965. <w:DoNotOptimizeForBrowser/>
  966. <w:ValidateAgainstSchemas/>
  967. <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  968. <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  969. <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  970. <w:Compatibility>
  971. <w:BreakWrappedTables/>
  972. <w:SnapToGridInCell/>
  973. <w:WrapTextWithPunct/>
  974. <w:UseAsianBreakRules/>
  975. <w:DontGrowAutofit/>
  976. </w:Compatibility>
  977. </w:WordDocument>
  978. </xml>
  979. <![endif]-->
  980. <style>
  981. @page {
  982. size: 21cm 29.7cm;
  983. margin: 2.5cm 2cm 2.5cm 2cm;
  984. }
  985. body {
  986. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  987. font-size: 14px;
  988. line-height: 1.6;
  989. margin: 24px;
  990. color: #000;
  991. }
  992. .header {
  993. text-align: center;
  994. margin-bottom: 1.5cm;
  995. page-break-after: avoid;
  996. }
  997. .doc-title {
  998. font-size: 18pt;
  999. font-weight: bold;
  1000. margin-bottom: 0.8cm;
  1001. color: #000;
  1002. }
  1003. .section {
  1004. margin-bottom: 1rem;
  1005. page-break-inside: avoid;
  1006. }
  1007. .section-title {
  1008. font-size: 14pt;
  1009. font-weight: bold;
  1010. margin-bottom: 0.5rem;
  1011. color: #000;
  1012. page-break-after: avoid;
  1013. }
  1014. .content {
  1015. margin-bottom: 0.5rem;
  1016. text-align: justify;
  1017. }
  1018. h1 {
  1019. font-size: 16pt;
  1020. font-weight: bold;
  1021. margin: 1rem 0 0.5rem 0;
  1022. color: #000;
  1023. page-break-after: avoid;
  1024. letter-spacing: normal;
  1025. word-spacing: normal;
  1026. }
  1027. h2 {
  1028. font-size: 14pt;
  1029. font-weight: bold;
  1030. margin: 0.8rem 0 0.4rem 0;
  1031. color: #000;
  1032. page-break-after: avoid;
  1033. letter-spacing: normal;
  1034. word-spacing: normal;
  1035. }
  1036. h3 {
  1037. font-size: 12pt;
  1038. font-weight: bold;
  1039. margin: 0.6rem 0 0.3rem 0;
  1040. color: #000;
  1041. page-break-after: avoid;
  1042. letter-spacing: normal;
  1043. word-spacing: normal;
  1044. }
  1045. h4 {
  1046. font-size: 12pt;
  1047. font-weight: bold;
  1048. margin: 0.5rem 0 0.3rem 0;
  1049. color: #000;
  1050. page-break-after: avoid;
  1051. letter-spacing: normal;
  1052. word-spacing: normal;
  1053. }
  1054. strong { font-weight: bold; }
  1055. em { font-style: italic; }
  1056. p {
  1057. margin: 0.5rem 0;
  1058. text-align: justify;
  1059. orphans: 2;
  1060. widows: 2;
  1061. letter-spacing: normal;
  1062. word-spacing: normal;
  1063. }
  1064. .list-item {
  1065. margin: 0.25rem 0;
  1066. text-align: justify;
  1067. }
  1068. table {
  1069. border-collapse: collapse;
  1070. width: 100%;
  1071. margin: 1rem 0;
  1072. page-break-inside: avoid;
  1073. }
  1074. td, th {
  1075. border: 1px solid #000;
  1076. padding: 0.3cm;
  1077. text-align: left;
  1078. font-size: 11pt;
  1079. }
  1080. th {
  1081. background-color: #f0f0f0;
  1082. font-weight: bold;
  1083. }
  1084. ul, ol {
  1085. margin: 0.5rem 0;
  1086. padding-left: 1cm;
  1087. }
  1088. li {
  1089. margin: 0.25rem 0;
  1090. text-align: justify;
  1091. letter-spacing: normal;
  1092. word-spacing: normal;
  1093. }
  1094. </style>
  1095. </head>
  1096. <body>
  1097. <div class='header'>
  1098. <div class='doc-title'>${ne.title||"AI生成的文档"}</div>
  1099. </div>
  1100. `;return ne.sections&&ne.sections.forEach((Ve,Ut)=>{Ie+=`
  1101. <div class='section'>
  1102. <div class='section-title'>${Ve.title}</div>
  1103. <div class='content'>
  1104. ${wo(Ve.content)}
  1105. </div>
  1106. </div>
  1107. `}),Ie+="</body></html>",Ie},wo=ne=>{if(!ne)return"";let Ie=ne;return Ie=Ie.replace(/(<li>.*<\/li>)/gs,Ve=>{const It=/^\d+\./.test(ne)?"ol":"ul";return`<${It}>${Ve}</${It}>`}),Ie=Ie.replace(/\n\n/g,"</p><p>"),Ie=Ie.replace(/\n/g,"<br>"),Ie.trim()&&!Ie.startsWith("<")&&(Ie=`<p>${Ie}</p>`),Ie},Rr=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,`
  1108. `).trim():"",Br=ne=>{let Ie=ne.content||"";if(Ie.includes("<filename>")&&Ie.includes("<filesize>")){const Ve=Ie.split("</filesize>");Ve.length>1?Ie=Ve[1].trim():Ie=Ie.replace(/<word>.*?<\/word>/s,"").replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"").trim()}Ie=Rr(Ie),bo(Ie)},$r=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=Rr(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(z.value===ne.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}z.value=null}else{if(z.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}let Ie="";if(ne.parsedContent){const Ve=[];ne.parsedContent.openingText&&Ve.push(oa(ne.parsedContent.openingText)),ne.parsedContent.documentText&&Ve.push(oa(ne.parsedContent.documentText)),ne.parsedContent.closingText&&Ve.push(oa(ne.parsedContent.closingText)),Ie=Ve.join(" ")}else Ie=oa(ne.content||"");if(Ie=Ie.replace(/<[^>]*>/g,"").trim(),Ie=_r(Ie),Ie){const Ve=new SpeechSynthesisUtterance(Ie);Ve.lang="zh-CN",Ve.rate=.9,Ve.pitch=1,Ve.volume=1,Ve.onend=()=>{z.value=null},Ve.onerror=()=>{z.value=null},window.speechSynthesis.speak(Ve),z.value=ne.id}}},Xo=ne=>z.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)},ra=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 Ve=await Bn.likeAndDislike({id:ne.rawData.id,user_feedback:Ie});Ve.statusCode===200?(console.log("反馈同步成功"),At.success("反馈提交成功")):(console.error("反馈同步失败:",Ve.msg),At.error("反馈提交失败,请稍后重试"))}catch(Ie){console.error("同步反馈失败:",Ie),At.error("反馈同步失败,请稍后重试")}},Lo=ne=>{if(ne===0)return"0 B";const Ie=1024,Ve=["B","KB","MB","GB"],Ut=Math.floor(Math.log(ne)/Math.log(Ie));return parseFloat((ne/Math.pow(Ie,Ut)).toFixed(2))+" "+Ve[Ut]};Ct(W,ne=>{if(!(!ne||U.value))if(i.value==="detail")s.value=ne;else{const Ie=document.querySelector(".template-input-container");Ie&&(Ie.textContent=ne),r.value=ne}}),Ct(re,ne=>{ne&&(console.error("语音识别错误:",ne),At.error(ne))}),jn(async()=>{await Vt();const ne='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。';r.value=ne,await Q()}),Yr(()=>{if(z.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}z.value=null}});const Qo=async(ne,Ie,Ve=null,Ut=null)=>{try{y.value=!0;const It=Ve||(ne?ne.userMessage:"");let rn=It;Ut&&Ut.content&&(rn=`<word>${Ut.content}</word><filename>${Ut.name}</filename><filesize>${Ut.size}</filesize>${It}`);const dn=await Bn.sendDeepseekMessage({ai_conversation_id:me.value,message:rn,business_type:2});if(console.log("DeepSeek API响应:",dn),dn.statusCode===200){const kn=dn.data.reply;if(me.value=dn.data.ai_conversation_id,ne){ne.aiResponse=kn,ne.hasDocument=!0,ne.documentContent={title:"AI生成的文档",sections:[{title:"文档内容",content:kn}]};const Vn={type:"ai",content:kn,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),parsedContent:{hasDocument:!0,documentContent:{title:"AI生成的文档",sections:[{title:"文档内容",content:kn}]},openingText:"",documentText:kn,closingText:"",documentTitle:"AI生成的文档"},id:dn.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)}Ge(),await Q(),me.value>0&&(ge.value.forEach(Vn=>{Vn.isActive=Vn.id===me.value}),console.log("设置最新历史记录为激活状态,conversationId:",me.value)),console.log("AI写作完成,准备进入富文本编辑器"),console.log("AI回复内容长度:",kn.length),console.log("AI回复内容预览:",kn.substring(0,200)+"...");const or=Nn(kn);Ot(or)}else console.error("DeepSeek API调用失败:",dn),alert("AI写作失败,请重试")}catch(It){console.error("调用AI时出错:",It),alert("调用AI失败,请检查网络连接")}finally{y.value=!1}},Pa=ne=>{let Ie="",Ve="",Ut="",It="AI生成的文档";const rn="<OPENING_START>",dn="</OPENING_END>",kn="<DOCUMENT_START>",or="</DOCUMENT_END>",Vn="<CLOSING_START>",xr="</CLOSING_END>";if(ne.includes(rn)&&ne.includes(kn)&&ne.includes(Vn))try{console.log("检测到三个标签格式,开始解析");const nr=ne.indexOf(rn)+rn.length,Or=ne.indexOf(dn);nr<Or?(Ie=ne.substring(nr,Or).trim(),console.log("提取的开头文本:",Ie)):console.warn("开头标签格式不正确");const cr=ne.indexOf(kn)+kn.length;let dr=ne.indexOf(or);if(dr===-1&&(dr=ne.indexOf("</DOCUMENT_START>"),dr!==-1&&console.log("检测到错误的文档结束标签:</DOCUMENT_START>")),cr<dr&&dr!==-1){Ve=ne.substring(cr,dr).trim(),console.log("提取的文档内容长度:",Ve.length),console.log("提取的文档内容预览:",Ve.substring(0,200)+"...");const fe=Ve.match(/^#\s+(.+)$/m);if(fe)It=fe[1].trim(),console.log("从Markdown提取的标题:",It);else{const Ce=Ve.split(`
  1109. `);Ce.length>0&&Ce[0].trim()&&(It=Ce[0].trim(),console.log("从第一行提取的标题:",It))}}else console.warn("文档标签格式不正确");const we=ne.indexOf(Vn)+Vn.length,ae=ne.indexOf(xr);if(we<ae)Ut=ne.substring(we,ae).trim(),console.log("提取的结尾文本:",Ut);else{let fe=ne.indexOf(or)+or.length;fe===or.length-1&&(fe=ne.indexOf("</DOCUMENT_START>")+17);const Ce=ne.substring(fe).trim();Ce?(Ut=Ce,console.log("从文档结束后提取的结尾文本:",Ut)):console.warn("结尾标签格式不正确")}(!Ie||!Ve||!Ut)&&console.warn("标签解析不完整:",{openingText:!!Ie,documentText:!!Ve,closingText:!!Ut})}catch(nr){console.error("解析三个标签格式失败:",nr)}else if(ne.includes(kn)&&ne.includes(or)){const nr=ne.indexOf(kn)+kn.length,Or=ne.indexOf(or);if(nr<Or){Ve=ne.substring(nr,Or).trim();const we=Ve.match(/^#\s+(.+)$/m);if(we)It=we[1].trim();else{const ae=Ve.split(`
  1110. `);ae.length>0&&ae[0].trim()&&(It=ae[0].trim())}}const cr=ne.substring(0,ne.indexOf(kn)).trim(),dr=ne.substring(ne.indexOf(or)+or.length).trim();Ie=cr,Ut=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){Ve=ne.substring(nr,Or).trim();const we=Ve.match(/^#\s+(.+)$/m);if(we)It=we[1].trim();else{const ae=Ve.split(`
  1111. `);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,Ut=dr}else{const nr=ne.split(`
  1112. `).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&&(Ut=nr[cr]),Or!==-1&&cr!==-1){const dr=Or+1,we=cr;if(dr<we){Ve=nr.slice(dr,we).join(`
  1113. `);const ae=Ve.match(/^#\s+(.+)$/m);if(ae)It=ae[1].trim();else{const fe=Ve.split(`
  1114. `)[0];fe&&fe.trim()&&(It=fe.trim())}}}else if(Or!==-1){const dr=Or+1;Ve=nr.slice(dr).join(`
  1115. `);const we=Ve.match(/^#\s+(.+)$/m);we&&(It=we[1].trim())}else if(cr!==-1){Ve=nr.slice(0,cr).join(`
  1116. `);const dr=Ve.match(/^#\s+(.+)$/m);dr&&(It=dr[1].trim())}}if(!Ie&&!Ut&&!Ve)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 sr={hasDocument:Ve.trim().length>0,documentContent:Ve.trim()?{title:It,sections:[{title:"文档内容",content:Ve.trim()}]}:null,openingText:Ie.trim(),documentText:Ve.trim(),closingText:Ut.trim(),documentTitle:It};return console.log("parseAIResponse 解析结果:",{hasDocument:sr.hasDocument,documentTextLength:sr.documentText.length,openingTextLength:sr.openingText.length,closingTextLength:sr.closingText.length,documentTitle:sr.documentTitle}),sr},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(Ve){console.log("从wangeditor实例获取失败:",Ve)}if(ne){const Ve=ne.match(/<h1[^>]*>(.*?)<\/h1>/i);if(Ve){const dn=Ve[1].replace(/<[^>]*>/g,"").trim();if(dn)return dn}const Ut=ne.match(/<h2[^>]*>(.*?)<\/h2>/i);if(Ut){const dn=Ut[1].replace(/<[^>]*>/g,"").trim();if(dn)return dn}const It=ne.match(/<h3[^>]*>(.*?)<\/h3>/i);if(It){const dn=It[1].replace(/<[^>]*>/g,"").trim();if(dn)return dn}const rn=ne.match(/<p[^>]*>(.*?)<\/p>/i);if(rn){const dn=rn[1].replace(/<[^>]*>/g,"").trim();if(dn&&dn.length<=50&&!dn.includes("。")&&!dn.includes(","))return dn}}return"AI生成文档"},xi=async(ne,Ie,Ve)=>{try{const Ut=mi(ne,Ie),It=new Blob([Ut],{type:"application/msword;charset=utf-8"}),rn=URL.createObjectURL(It),dn=document.createElement("a");dn.href=rn,dn.download=Ve.replace(".docx",".doc"),document.body.appendChild(dn),dn.click(),document.body.removeChild(dn),URL.revokeObjectURL(rn),At.success("Word文档下载成功")}catch(Ut){console.error("生成无水印Word文档失败:",Ut),At.error("生成Word文档失败,请重试")}},mi=(ne,Ie)=>`<!DOCTYPE html>
  1117. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  1118. xmlns:w="urn:schemas-microsoft-com:office:word"
  1119. xmlns="http://www.w3.org/TR/REC-html40">
  1120. <head>
  1121. <meta charset="UTF-8">
  1122. <meta name="ProgId" content="Word.Document">
  1123. <meta name="Generator" content="Microsoft Word 15">
  1124. <meta name="Originator" content="Microsoft Word 15">
  1125. <title>${Ie||"AI生成文档"}</title>
  1126. <style>
  1127. @page { size: 21cm 29.7cm; margin: 2.54cm 3.18cm 2.54cm 3.18cm; }
  1128. body { font-family: "宋体", "SimSun", serif; font-size: 12pt; line-height: 1.5; color: #000; }
  1129. h1 { font-size: 18pt; font-weight: bold; text-align: center; margin: 24pt 0 18pt 0; }
  1130. h2 { font-size: 16pt; font-weight: bold; margin: 18pt 0 12pt 0; }
  1131. h3 { font-size: 14pt; font-weight: bold; margin: 12pt 0 6pt 0; }
  1132. p { margin: 0 0 6pt 0; text-align: justify; text-indent: 2em; }
  1133. table { border-collapse: collapse; width: 100%; margin: 12pt 0; }
  1134. td, th { border: 1px solid #000; padding: 6pt; }
  1135. </style>
  1136. <!--[if gte mso 9]>
  1137. <xml>
  1138. <w:WordDocument>
  1139. <w:View>Print</w:View>
  1140. <w:Zoom>100</w:Zoom>
  1141. <w:DoNotOptimizeForBrowser/>
  1142. </w:WordDocument>
  1143. </xml>
  1144. <![endif]-->
  1145. </head>
  1146. <body>
  1147. ${ne}
  1148. </body>
  1149. </html>`,oa=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,`
  1150. `).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&&bn(),Ge(),i.value="editor",y.value=!0,Qo(a.value,null,Ie.content,ne)},Ge=()=>{Vt(()=>{const ne=document.querySelector(".chat-area");ne&&(ne.scrollTop=ne.scrollHeight)})},We=()=>{a.value?.messages&&Ge()};return Ct(a,ne=>{We()}),(ne,Ie)=>(F(),K("div",T$t,[$e(VC),x("div",_$t,[x("div",D$t,[Ie[4]||(Ie[4]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:JC,alt:"新建任务",class:oe(["new-chat-btn",{disabled:k.value}]),onClick:_t},null,2)]),x("div",I$t,[m.value&&_e.value===0?(F(),K("div",O$t,Ie[5]||(Ie[5]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):_e.value>0?(F(!0),K(Nt,{key:1},on(ge.value,(Ve,Ut)=>(F(),K("div",{key:Ve.id,class:oe(["history-item",{active:Ve.isActive}]),onClick:It=>Ve.isActive||y.value||k.value?null:ut(Ve),style:Jt({cursor:Ve.isActive||k.value?"default":"pointer"})},[x("div",P$t,[x("div",N$t,ze(Ve.title),1),x("div",R$t,ze(Ve.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":Ve.isActive}]),onClick:Qt(It=>Fe(Ve,Ut),["stop"])},Ie[6]||(Ie[6]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,B$t)],14,M$t))),128)):(F(),K("div",L$t,Ie[7]||(Ie[7]=[x("img",{src:e5,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",F$t,[Ie[40]||(Ie[40]=x("div",{class:"work-header"},[x("h2",null,"AI写作")],-1)),x("div",U$t,[i.value==="main"?(F(),K("div",z$t,[x("div",$$t,[Ie[13]||(Ie[13]=x("h3",null,"帮我写作",-1)),Ie[14]||(Ie[14]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",j$t,[x("div",{class:"template-input-container",contenteditable:"true",onInput:cn,onCopy:qe,placeholder:"请在这里输入您的写作要求..."},Ie[8]||(Ie[8]=[ki(' 请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含&quot;工作总结、问题不足、未来计划&quot;三部分的完整报告。 ',11)]),32),x("div",H$t,[x("div",W$t,[x("button",{class:"attachment-btn",onClick:bt,disabled:G.value},Ie[9]||(Ie[9]=[x("img",{src:gAe,alt:"附件",class:"action-icon"},null,-1)]),8,V$t),j.value?(F(),K("div",q$t,[x("div",G$t,[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,K$t)):(F(),K("span",Y$t,ze(j.value.icon),1)),x("span",Q$t,ze(j.value.name),1),x("button",{class:"remove-file-inline",onClick:bn},Ie[10]||(Ie[10]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Z$t,[x("button",{class:oe(["voice-btn",{recording:C(U)}]),onClick:Kn,disabled:G.value},[x("div",J$t,[Ie[11]||(Ie[11]=x("img",{src:Xf,alt:"语音",class:"action-icon"},null,-1)),C(U)?(F(),K("div",ejt)):xe("",!0)])],10,X$t),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:Ae.value?C(ep):C(Jf),alt:"发送",class:"action-icon"},null,8,njt),y.value?(F(),K("span",rjt,"生成中...")):xe("",!0)],8,tjt)])])]),Ie[15]||(Ie[15]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))]),x("div",ojt,[x("div",ijt,[(F(),K(Nt,null,on(Wt,Ve=>x("div",{key:Ve.key,class:oe(["tab-item",{active:o.value===Ve.key}]),onClick:Ut=>sn(Ve.key)},ze(Ve.name),11,ajt)),64))]),x("div",sjt,[(F(!0),K(Nt,null,on(dt.value,Ve=>(F(),K("div",{key:Ve.id,class:"template-card"},[x("img",{src:Ve.image,alt:Ve.name,class:"template-image"},null,8,ljt),x("button",{class:oe(["use-template-btn",Ve.buttonClass]),onClick:Ut=>vt(Ve.name)}," 使用此模板 ",10,ujt)]))),128))])])])):xe("",!0),i.value==="editor"?(F(),K("div",cjt,[y.value?(F(),K("div",djt,Ie[16]||(Ie[16]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),b.value?(F(),K("div",fjt,Ie[17]||(Ie[17]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",pjt,[x("div",hjt,[Ie[18]||(Ie[18]=x("h3",null,"文档编辑",-1)),y.value?(F(),K("p",vjt,"AI正在生成内容,请稍候...")):(F(),K("p",gjt,"AI已为您生成内容,您可以直接编辑和完善"))]),x("div",mjt,[x("button",{class:"save-btn",onClick:Je,disabled:k.value}," 保存文档 ",8,yjt),x("button",{class:"download-btn",onClick:ct,disabled:k.value},Ie[19]||(Ie[19]=[x("img",{src:r7,alt:"下载Word",class:"download-icon"},null,-1)]),8,bjt)])]),x("div",wjt,[x("div",{class:oe(["rich-editor-container",{polishing:k.value}])},[x("div",null,[$e(C(A$t),{class:"rich-editor-toolbar",editor:c.value,defaultConfig:f,mode:f0e},null,8,["editor"]),$e(C(m$t),{style:{height:"calc(100vh - 280px)","overflow-y":"auto"},modelValue:u.value,"onUpdate:modelValue":Ie[0]||(Ie[0]=Ve=>u.value=Ve),defaultConfig:p,mode:f0e,onOnCreated:rt,onOnChange:he},null,8,["modelValue"])])],2)]),w.value&&A.value.trim()?(F(),K("div",{key:2,class:"ai-polish-input",style:Jt({left:S.value.x+"px",top:S.value.y+"px"}),onClick:Ie[2]||(Ie[2]=Qt(()=>{},["stop"]))},[x("div",Ajt,[x("div",Cjt,[an(x("input",{type:"text","onUpdate:modelValue":Ie[1]||(Ie[1]=Ve=>_.value=Ve),placeholder:"请输入要求(可选)",class:"polish-input-field",disabled:k.value,onKeyup:Lr(Gt,["enter"]),onClick:Qt(at,["stop"]),onFocus:St,onBlur:tt,maxlength:"200"},null,40,xjt),[[jr,_.value]]),x("div",Sjt,ze(_.value.length)+"/200",1)]),x("div",Ejt,[x("button",{class:"polish-send-btn",onClick:Qt(Gt,["stop"]),disabled:k.value},ze(k.value&&O.value==="polish"?"正在扩写":"AI扩写"),9,kjt),x("button",{class:"polish-send-btn continue-btn",onClick:Qt(En,["stop"]),disabled:k.value},ze(k.value&&O.value==="continue"?"正在续写":"AI续写"),9,Tjt)])])],4)):xe("",!0)])):xe("",!0),i.value==="detail"?(F(),K("div",_jt,[b.value?(F(),K("div",Djt,Ie[20]||(Ie[20]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",{class:oe(["main-content1",{"with-document":l.value}])},[x("div",Ijt,[x("div",Ojt,[(F(!0),K(Nt,null,on(a.value?.messages,(Ve,Ut)=>(F(),K("div",{key:Ut,class:oe(["message-item",Ve.type])},[Ve.type==="user"?(F(),K("div",Mjt,[x("div",Pjt,[Ve.file?(F(),K("div",Njt,[x("div",Rjt,[x("div",Bjt,ze(Ve.file.icon),1),x("div",Ljt,[x("div",Fjt,ze(Ve.file.name),1),x("div",Ujt,ze(Lo(Ve.file.size)),1)])])])):xe("",!0),Ve.content?(F(),K("div",zjt,ze(Ve.content),1)):xe("",!0)]),x("div",$jt,[x("button",{class:"action-btn copy-btn",onClick:It=>Br(Ve)},Ie[21]||(Ie[21]=[x("img",{src:Lv,alt:"复制",class:"action-icon"},null,-1),An(" 复制 ",-1)]),8,jjt),x("button",{class:"action-btn edit-btn",onClick:It=>Ao(Ve)},Ie[22]||(Ie[22]=[x("img",{src:t5,alt:"编辑",class:"action-icon"},null,-1),An(" 编辑 ",-1)]),8,Hjt)])])):Ve.type==="ai"?(F(),K("div",Wjt,[Ie[30]||(Ie[30]=x("div",{class:"ai-avatar"},[x("img",{src:moe,alt:"AI头像",class:"avatar-img"})],-1)),x("div",Vjt,[Ve.parsedContent?.openingText?(F(),K("div",{key:0,class:"opening-text",innerHTML:oa(Ve.parsedContent.openingText)},null,8,qjt)):xe("",!0),Ve.parsedContent?.hasDocument?(F(),K("div",{key:1,class:"document-info clickable",onClick:It=>mn(Ve.parsedContent)},[Ie[23]||(Ie[23]=x("div",{class:"doc-icon"},[x("img",{src:cmt,alt:"文档图标",class:"info-icon"})],-1)),x("div",Kjt,[x("div",Yjt,ze(Ve.parsedContent?.documentTitle||a.value?.documentContent?.title||"文档标题"),1),x("div",Qjt,"创建时间: "+ze(ie(Ve)),1)])],8,Gjt)):xe("",!0),Ve.parsedContent?.closingText?(F(),K("div",{key:2,class:"closing-text",innerHTML:oa(Ve.parsedContent.closingText)},null,8,Zjt)):xe("",!0),x("div",Xjt,[x("div",Jjt,[x("button",{class:"action-btn copy-btn",onClick:It=>$r(Ve)},Ie[24]||(Ie[24]=[x("img",{src:Lv,alt:"复制",class:"action-icon"},null,-1),An(" 复制 ",-1)]),8,eHt),x("button",{class:"action-btn regenerate-btn",onClick:It=>Cr(Ut),disabled:y.value},Ie[25]||(Ie[25]=[x("img",{src:yq,alt:"重新生成",class:"action-icon"},null,-1),An(" 重新生成 ",-1)]),8,tHt),x("button",{class:"action-btn delete-btn",onClick:It=>Pe(Ut)},Ie[26]||(Ie[26]=[x("img",{src:wc,alt:"删除",class:"action-icon"},null,-1),An(" 删除 ",-1)]),8,nHt),x("button",{class:"action-btn voice-btn",onClick:It=>Ho(Ve)},[Ie[27]||(Ie[27]=x("img",{src:n7,alt:"语音朗读",class:"action-icon"},null,-1)),An(" "+ze(Xo(Ve.id)?"停止朗读":"语音朗读"),1)],8,rHt)]),x("div",oHt,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:Ve.userFeedback==="like"}]),onClick:It=>qi(Ve)},Ie[28]||(Ie[28]=[x("img",{src:Vy,alt:"点赞",class:"action-icon"},null,-1)]),10,iHt),x("button",{class:oe(["action-btn thumbs-down-btn",{active:Ve.userFeedback==="dislike"}]),onClick:It=>ra(Ve)},Ie[29]||(Ie[29]=[x("img",{src:qy,alt:"踩",class:"action-icon"},null,-1)]),10,aHt)])])])])):xe("",!0)],2))),128)),y.value?(F(),K("div",sHt,Ie[31]||(Ie[31]=[ki('<div class="ai-avatar" data-v-6adfdb6f><img src="'+moe+'" alt="AI头像" class="avatar-img" data-v-6adfdb6f></div><div class="message-content" data-v-6adfdb6f><span class="generating-text" data-v-6adfdb6f>AI正在思考中...</span><div class="loading-dots" data-v-6adfdb6f><span data-v-6adfdb6f></span><span data-v-6adfdb6f></span><span data-v-6adfdb6f></span></div></div>',2)]))):xe("",!0)]),x("div",lHt,[j.value?(F(),K("div",uHt,[x("div",cHt,[x("div",dHt,[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,fHt)):(F(),K("span",pHt,ze(j.value.icon),1))]),x("div",hHt,[x("div",gHt,ze(j.value.name),1),x("div",vHt,ze(Lo(j.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:bn},Ie[32]||(Ie[32]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",mHt,[x("button",{class:"attachment-btn",onClick:bt,disabled:y.value},Ie[33]||(Ie[33]=[x("img",{src:bq,alt:"上传文件",class:"action-icon"},null,-1)]),8,yHt),an(x("input",{"onUpdate:modelValue":Ie[3]||(Ie[3]=Ve=>s.value=Ve),type:"text",placeholder:"请在此处发送消息 (Enter键也可发送)",class:"message-input",onKeydown:Lr(ha,["enter"]),onInput:Wr,maxlength:"2000",disabled:y.value},null,40,bHt),[[jr,s.value]]),x("button",{class:oe(["voice-btn",{recording:C(U)}]),onClick:Kn,disabled:y.value},[x("div",AHt,[Ie[34]||(Ie[34]=x("img",{src:Xf,alt:"语音",class:"action-icon"},null,-1)),C(U)?(F(),K("div",CHt)):xe("",!0)])],10,wHt),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(ep):C(Jf),class:"action-icon",alt:"发送"},null,8,SHt)],8,xHt)])])]),l.value?(F(),K("div",EHt,[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:r3,alt:"复制",class:"action-icon"},null,-1),An(" 复制 ",-1)])),x("button",{class:"action-btn",onClick:br},Ie[37]||(Ie[37]=[x("img",{src:Aq,alt:"下载",class:"action-icon"},null,-1),An(" 下载 ",-1)])),x("button",{class:"action-btn close-btn",onClick:Mn},Ie[38]||(Ie[38]=[x("img",{src:dmt,alt:"关闭",class:"action-icon"},null,-1)]))])]),x("div",kHt,[Bt.value?.documentContent?(F(!0),K(Nt,{key:0},on(Bt.value.documentContent.sections,Ve=>(F(),K("div",{key:`selected-${Ve.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ve.content)},null,8,THt)]))),128)):a.value?.documentContent?(F(!0),K(Nt,{key:1},on(a.value.documentContent.sections,Ve=>(F(),K("div",{key:`history-${Ve.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ve.content)},null,8,_Ht)]))),128)):Ai()?(F(!0),K(Nt,{key:2},on(Ai().sections,Ve=>(F(),K("div",{key:`message-${Ve.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Si(Ve.content)},null,8,DHt)]))),128)):xe("",!0)])])):xe("",!0)],2)])):xe("",!0)])]),$e(c0,{visible:v.value,title:Le.value,message:Ee.value,onConfirm:Ne,onCancel:Lt,onClose:Lt},null,8,["visible","title","message"]),x("input",{ref_key:"fileInput",ref:L,type:"file",accept:".docx",style:{display:"none"},onChange:Kt},null,544)]))}},OHt=Yo(IHt,[["__scopeId","data-v-6adfdb6f"]]),MHt="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",PHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEoSURBVFiF7ZjRUYNAFEXPcyyAErACU0KsQK3IEhwrMB3EDrQDSQXSgXRw8wEfL5sIqytsRvd8LewbOLwFhgsU/jj21YSkNXALVDM7tMDOzF6iqiVVkrZanmdJ080YCnOxDX0skLsDfFEHxLX+Z1TACqjdvhszeztZLenBXc2HYlqeiPpb6tOd99HPXwT1tRs3ZtbNLTicw6/SQVNCQc/scjGMCZ4FRTCVIphKEUylCKZSBFMpgqkUwVTORbB244Pv0MvvHGXILL8dA66Btdve+ckowSGbvNIHnDlpCULa5BIvKNcB92EOGhVcSK4FNsCVmTXh5NgSn5Jr6HNrnkCl8b8K70vk5JDY10y2zsUIZl3WKcG89xzHgq0bZ5eD46f4yY9zyxX+BXsQMXqyev1l1wAAAABJRU5ErkJggg==",NHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFfSURBVFiF7ZgxboMwFECfq44ZOEKG7E13pKQ3yBV6Mo5Ab1AiZS/ZK5UjZMj+OxjUjxvAqkMglZ8UYfkb87A/Uvwh8s8xXQER2QJr4GlkhwrYG2MKr9EikohILrcnE5HERzCbQK4hd32MI7cF3lXXCXjzWvq/kWDTaKn6XvR2Pzo3bFS7Ap6NMaeR5ACbUsAXVhascNHEH5zxS9Uux5YDqJ+hd6n1UbqCmtHlfOgTnAVRMBT3K9akIpL1xBf19XwFj7Qr4AouVHtV/26Ndri/Ldbb9QkcOu5L+VndvnG+6PlaKdOXgwdjzOulQJ2bq6FxvjjztZj9FkfBUKJgKFEwlCgYShQMJQqGMhfBzpKHK3hU7Z341EoCqZ+xVl2Vjrv/B0vVToAPESn5fUbWZ4ihs8sQO9oruO8dLdNUthqGX1Rs+S2bQC6XCyk1VMDc0K7XaK517Dxi60BF4DyR++QbasVA5Mak+dYAAAAASUVORK5CYII=",RHt="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=",BHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEFSURBVFiF7djPDYIwGAXw9xnvevHekWQCHYENGMGRHAE2wAFMdACT50EgFQWh/6jKO9FAPn5padMCzPmFkMxI5uzOhWQWCnPsgTyhQmDSgRgG6aHWMB1Irr2/9ANIzyQYaYOaGyLy+rj/LHwVJqlIltVnoEyLNHEA0idIaYRyDKp7yBzlEuQE5RpkjfIBskL5Ao1BjV6HqiJbACsDlwKw19onAImIFDagsirsKmcR2dQNk4Xx6hADADe9sTQokADYGb5c4c2QdT4dw0cdBBTVtI9qYbTCuAZZYzyAotx+5GMx37OF5USb/Dao0K6zqVBN+DhCD8mfHqU1VMr+nw0M1kNzYs8dcL4BFPEyqQIAAAAASUVORK5CYII=",p0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJwSURBVFiF7ZbBUdtQEIa/lQPXOBWgdGA6sCsAOnBuHpPDGzfg5cYltpgJDDc7FYRUgKkgKkF0oGMmjN7mIImxA7afbUgu/BdJo9Xu9/7R27fwpv8sCQlyTpsPEV2MI4NYhBjIMTKE1ODuaqTTFweoCg8Bty6RQQacbQoSLXvRcxr/jvhZFze48Z6TwvPxcqSy5/lgnkODTwaZQCwwOR3oeBOAZx3oOY0bZfEmQloUnFwnmq1K1B9oV2AMNDFml2PthAA8caDnNI4iboEmMN0r6KwrDnA10mlROpIhtEOdeOLA6UAnQBchvfyihyFJ5tV32pJqAeLpfE10tip+wYGe0xjoAhQFJ5sWB7hKNDUkATBhuC5+AaARcVzdTkNsX6Z9bxdAjtB2TpvBABhHAN7zY9viAEmiOUYK8BCVjgYBGMTVNd0FAMBEZmUueR8MUHU4drH/Ud7uAQSLgwGAHMoOuGt9iahz5MEAZmXwL9gZoLbekHAAEWawsBu2lpgdA3hvd8EA5imDq92wrXpOY4QWkF9v0oj24aZupf2BdrcFaESPDehmXewCQJJoDpwBCIyrzriR+oOzIdA1yApf5goGgPJQAaZAM4q47TttbVJcMC2f5DxkOz97HDunzQfhO0IbwBD13r4tS/jZaduEYR1ffkPm/fqTdOVEtLgicoMZSIq3+2qfH2C05grngvQ8di4Qh0CsnQl7TuOGMJlf3TPKDUn2vV0kieb1TBECETSU1iBRRBvkoGqvuSF55O3uHaTVD/x3/FqIYIBtFALxqgAhEEun4pfSdaKZ93TqybkhTObfvzrAPARGarL6dHzTP9cfNFMnFzfmaSIAAAAASUVORK5CYII=",LHt={class:"admin-container"},FHt={class:"sidebar"},UHt={class:"sidebar-nav"},zHt={class:"main-content1"},$Ht={key:0},jHt={class:"content-header"},HHt={class:"search-box"},WHt={class:"data-table"},VHt={class:"table"},qHt={class:"content-cell"},GHt={class:"content-preview"},KHt={class:"content-cell"},YHt={class:"content-preview"},QHt={class:"pagination"},ZHt={class:"page-numbers"},XHt=["onClick"],JHt={class:"page-info"},eWt={key:1},tWt={class:"content-header"},nWt={class:"search-box"},rWt={class:"data-table"},oWt={class:"table"},iWt={class:"content-cell"},aWt={class:"content-preview"},sWt={class:"tags-container"},lWt={class:"content-cell"},uWt={class:"content-preview"},cWt={class:"pagination"},dWt={class:"page-numbers"},fWt=["onClick"],pWt={class:"page-info"},hWt={__name:"Admin",setup(e){const t=Y("chat"),n=Y(""),r=Y(1),o=Y(15),i=Y(""),a=Y(1),s=Y(15),l=Y([{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=Y([{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=ee(()=>n.value?l.value.filter(P=>P.userId.includes(n.value)||P.userMessage.includes(n.value)||P.aiReply.includes(n.value)):l.value),c=ee(()=>d.value.length),f=ee(()=>Math.ceil(c.value/o.value)),p=ee(()=>{const P=[],M=Math.max(1,r.value-2),_=Math.min(f.value,M+4);for(let R=M;R<=_;R++)P.push(R);return P}),v=ee(()=>i.value?u.value.filter(P=>P.id.includes(i.value)||P.content.includes(i.value)||P.tags.some(M=>M.includes(i.value))||P.source.includes(i.value)):u.value),h=ee(()=>v.value.length),g=ee(()=>Math.ceil(h.value/s.value)),y=ee(()=>{const P=[],M=Math.max(1,a.value-2),_=Math.min(g.value,M+4);for(let R=M;R<=_;R++)P.push(R);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--},O=()=>{a.value<g.value&&a.value++},I=P=>{a.value=P};return jn(()=>{}),(P,M)=>(F(),K("div",LHt,[x("div",FHt,[M[6]||(M[6]=x("div",{class:"sidebar-header"},[x("img",{src:MHt,alt:"AI",class:"ai-icon"}),x("span",{class:"ai-title"},"AI后台管理系统")],-1)),x("nav",UHt,[x("div",{class:oe(["nav-item",{active:t.value==="chat"}]),onClick:M[0]||(M[0]=_=>m("chat"))},M[4]||(M[4]=[x("img",{src:PHt,alt:"对话记录",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI对话记录",-1)]),2),x("div",{class:oe(["nav-item",{active:t.value==="data"}]),onClick:M[1]||(M[1]=_=>m("data"))},M[5]||(M[5]=[x("img",{src:NHt,alt:"数据资源",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"数据资源",-1)]),2)]),M[7]||(M[7]=ki('<div class="sidebar-footer" data-v-c5b9f548><div class="user-info" data-v-c5b9f548><img src="'+RHt+'" 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="'+BHt+'" alt="退出" class="logout-icon" data-v-c5b9f548></button></div>',1))]),x("div",zHt,[t.value==="chat"?(F(),K("div",$Ht,[x("div",jHt,[M[9]||(M[9]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"AI对话记录"),x("p",{class:"page-description"},"查看和管理所有用户与AI助手的对话历史记录")],-1)),x("div",HHt,[M[8]||(M[8]=x("img",{src:p0e,alt:"搜索",class:"search-icon"},null,-1)),an(x("input",{type:"text",placeholder:"搜索用户ID或问题内容",class:"search-input","onUpdate:modelValue":M[2]||(M[2]=_=>n.value=_)},null,512),[[jr,n.value]])])]),x("div",WHt,[x("table",VHt,[M[10]||(M[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(Nt,null,on(d.value,(_,R)=>(F(),K("tr",{key:R},[x("td",null,ze(R+1),1),x("td",null,ze(_.userId),1),x("td",qHt,[x("div",GHt,ze(_.userMessage),1)]),x("td",KHt,[x("div",YHt,ze(_.aiReply),1)]),x("td",null,ze(_.timestamp),1),x("td",null,[x("span",{class:oe(["status-badge",_.status])},ze(b(_.status)),3)])]))),128))])])]),x("div",QHt,[x("button",{class:"page-btn prev-btn",onClick:w},M[11]||(M[11]=[x("span",null,"‹",-1)])),x("div",ZHt,[(F(!0),K(Nt,null,on(p.value,_=>(F(),K("span",{key:_,class:oe(["page-number",{active:_===r.value}]),onClick:R=>S(_)},ze(_),11,XHt))),128))]),x("button",{class:"page-btn next-btn",onClick:A},M[12]||(M[12]=[x("span",null,"›",-1)])),x("div",JHt," 第"+ze(r.value)+"页,共"+ze(f.value)+"页 ",1)])])):xe("",!0),t.value==="data"?(F(),K("div",eWt,[x("div",tWt,[M[14]||(M[14]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"数据资源"),x("p",{class:"page-description"},"查看和管理已标注的相关文档知识点")],-1)),x("div",nWt,[M[13]||(M[13]=x("img",{src:p0e,alt:"搜索",class:"search-icon"},null,-1)),an(x("input",{type:"text",placeholder:"搜索ID、知识点内容或标签",class:"search-input","onUpdate:modelValue":M[3]||(M[3]=_=>i.value=_)},null,512),[[jr,i.value]])])]),x("div",rWt,[x("table",oWt,[M[15]||(M[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(Nt,null,on(v.value,(_,R)=>(F(),K("tr",{key:R},[x("td",null,ze(_.id),1),x("td",iWt,[x("div",aWt,ze(_.content),1)]),x("td",null,[x("div",sWt,[(F(!0),K(Nt,null,on(_.tags,N=>(F(),K("span",{key:N,class:"tag"},ze(N),1))),128))])]),x("td",null,ze(_.timestamp),1),x("td",lWt,[x("div",uWt,ze(_.source),1)])]))),128))])])]),x("div",cWt,[x("button",{class:"page-btn prev-btn",onClick:k},M[16]||(M[16]=[x("span",null,"‹",-1)])),x("div",dWt,[(F(!0),K(Nt,null,on(y.value,_=>(F(),K("span",{key:_,class:oe(["page-number",{active:_===a.value}]),onClick:R=>I(_)},ze(_),11,fWt))),128))]),x("button",{class:"page-btn next-btn",onClick:O},M[17]||(M[17]=[x("span",null,"›",-1)])),x("div",pWt," 第"+ze(a.value)+"页,共"+ze(g.value)+"页 ",1)])])):xe("",!0)])]))}},gWt=Yo(hWt,[["__scopeId","data-v-c5b9f548"]]),hke="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=",gke="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=",vke="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=",mke="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=",xj="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",yke="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=",bke="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==",vWt="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",mWt="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=",yWt="/assets/11-7l3W5DeQ.png",wke="/assets/12-DEN8e9Vv.png",kh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEsSURBVFiF7dQxbsJAEIXhN0buSZcrpCNSJITS2F3a3AMpq+QAGS5AKLhEqhwh7kDQcARukJSRLNZpMLYguzbeQWnm7yzL409reQBN0zRN0/6znuSw8cvk6W6U3KwX2UZqJkkMMYb7eQ+fKDDYT93EO6SzGX+Hzg4GnuCqySLIIKATV00PRnYGNuKqNwQhOwFdOAImAFAAr1LIs/9iH24+ZV4tsmw4SghAUrt9bSM83A+T9+Uy+7kYsAlXXksiWwPb4qSRrYDn4iSRjcCuOCmkFxiKk0BGvsF5hLdQXNl8ylyuoUMFBjnhw/eccw8aw/08wpcErt74mfl4T8YWV64d6TzB/QNbSRzw50lufQvc+4l3FikRGbJIJXB1pLV4JCITW9xKzdU0TdM0Tb5fy/nLMy4jqr0AAAAASUVORK5CYII=",Th="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",bWt={class:"chat-container"},wWt={class:"history-sidebar"},AWt={class:"history-list"},CWt={key:0,class:"history-loading"},xWt=["onClick"],SWt={class:"history-content"},EWt={class:"history-title"},kWt={class:"history-time"},TWt=["onClick"],_Wt={key:2,class:"empty-history"},DWt={key:0,class:"loading-overlay"},IWt={key:1,class:"exam-workshop-card"},OWt={class:"config-section"},MWt={class:"config-item"},PWt={class:"type-cards"},NWt=["onClick"],RWt=["src","alt"],BWt={class:"config-item"},LWt={class:"generation-methods"},FWt=["src"],UWt=["src"],zWt={class:"method-content"},$Wt={key:0,class:"ppt-file-preview"},jWt={class:"file-preview"},HWt={class:"file-icon"},WWt={class:"file-info"},VWt={class:"file-name"},qWt={class:"file-size"},GWt={class:"config-item"},KWt={class:"exam-config-container"},YWt={class:"config-left"},QWt={class:"config-row"},ZWt={class:"config-group"},XWt={class:"input-wrapper"},JWt=["disabled"],eVt={class:"config-group"},tVt={class:"score-input"},nVt=["disabled"],rVt={class:"question-types"},oVt={class:"type-row"},iVt={class:"type-name"},aVt={class:"progress-bar"},sVt={class:"score-config"},lVt=["onUpdate:modelValue","onInput","disabled"],uVt=["onUpdate:modelValue","onInput","disabled"],cVt={class:"preview-panel"},dVt={class:"preview-header"},fVt=["src"],pVt={class:"preview-content"},hVt={class:"preview-title"},gVt={class:"question-breakdown"},vVt={class:"breakdown-row"},mVt={class:"breakdown-left"},yVt={class:"breakdown-right"},bVt={class:"calculated-score-row"},wVt={class:"calculated-value"},AVt={class:"total-score-row"},CVt={class:"total-value"},xVt={class:"bottom-actions"},SVt=["disabled"],EVt=["src"],kVt=["disabled"],TVt=["src"],_Vt={key:1,class:"generating-text"},DVt={key:2,class:"exam-detail-card"},IVt={class:"detail-header"},OVt={class:"header-left"},MVt=["disabled"],PVt={class:"header-right"},NVt=["disabled"],RVt=["src"],BVt={class:"dropdown-menu"},LVt=["disabled"],FVt=["disabled"],UVt={class:"exam-info"},zVt={class:"exam-title"},$Vt={class:"exam-stats"},jVt={class:"total-score"},HVt={class:"question-count"},WVt={class:"generation-time"},VVt={class:"question-sections"},qVt={class:"question-section"},GVt={class:"section-title"},KVt={class:"section-score"},YVt={class:"section-controls"},QVt={class:"question-count-text"},ZVt=["src"],XVt={key:0,class:"section-content"},JVt={class:"question-header"},eqt={class:"question-number"},tqt={class:"question-text"},nqt=["onClick","disabled"],rqt=["src"],oqt={class:"options"},iqt={class:"radio-wrapper"},aqt={key:0,class:"radio-dot"},sqt={class:"option-key"},lqt={class:"option-content"},uqt={class:"option-text"},cqt={class:"question-section"},dqt={class:"section-title"},fqt={class:"section-score"},pqt={class:"section-controls"},hqt={class:"question-count-text"},gqt=["src"],vqt={key:0,class:"section-content"},mqt={class:"question-header"},yqt={class:"question-number"},bqt={class:"question-text"},wqt=["onClick","disabled"],Aqt=["src"],Cqt={class:"options"},xqt={class:"radio-wrapper"},Sqt={key:0,class:"radio-dot"},Eqt={class:"radio-wrapper"},kqt={key:0,class:"radio-dot"},Tqt={class:"question-section"},_qt={class:"section-title"},Dqt={class:"section-score"},Iqt={class:"section-controls"},Oqt={class:"question-count-text"},Mqt=["src"],Pqt={key:0,class:"section-content"},Nqt={class:"question-header"},Rqt={class:"question-number"},Bqt={class:"question-text"},Lqt=["onClick","disabled"],Fqt=["src"],Uqt={class:"options"},zqt={class:"radio-wrapper"},$qt={key:0,class:"radio-dot"},jqt={class:"option-key"},Hqt={class:"option-content"},Wqt={class:"option-text"},Vqt={class:"question-section"},qqt={class:"section-title"},Gqt={class:"section-score"},Kqt={class:"section-controls"},Yqt={class:"question-count-text"},Qqt=["src"],Zqt={key:0,class:"section-content"},Xqt={class:"question-header"},Jqt={class:"question-number"},eGt={class:"question-text"},tGt=["onClick","disabled"],nGt=["src"],rGt={class:"answer-box"},oGt={class:"answer-outline"},iGt={class:"outline-item"},aGt={class:"outline-text"},sGt={__name:"ExamWorkshop",setup(e){const t=Y("ai"),n=Y("bridge"),r=Y("桥梁工程施工技术考核"),o=Y(100),i=Y(!1),a=Y(""),s=Y(!1),l=Y({}),u=Y(!1),d=Y(!1),c=Y(!1),f=Y(!1),p=Y(null),v=Y(null),h=Y(null),g=Y(!1);Y("");const y=Y(""),m=Ur({maxSize:20*1024*1024,allowedTypes:[".ppt",".pptx"]}),b=Y({single:!0,judge:!0,multiple:!0,short:!0}),w=Y(null),A=Y([]),S=Y(0),k=async()=>{try{console.log("📋 开始获取考试工坊历史记录列表..."),d.value=!0;const Ke=performance.now(),He=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:3}),at=performance.now();console.log(`📋 考试工坊历史记录API调用耗时: ${(at-Ke).toFixed(2)}ms`),console.log("📋 考试工坊历史记录列表响应:",He),He.statusCode===200?(S.value=He.total||0,A.value=He.data.map(St=>({id:St.id,title:O(St.exam_name),time:I(St.updated_at),businessType:St.business_type,isActive:!1,rawData:St})),console.log(`✅ 考试工坊历史记录列表已设置: ${A.value.length}条记录,总数: ${S.value}`)):console.error("❌ 获取考试工坊历史记录列表失败:",He.statusCode)}catch(Ke){console.error("❌ 获取考试工坊历史记录列表失败:",Ke)}finally{d.value=!1}},O=Ke=>{if(!Ke)return"未知对话";const at=Ke.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return at.length>30?at.substring(0,30)+"...":at||"新对话"},I=Ke=>{if(!Ke)return"未知时间";let He;if(typeof Ke=="string")He=new Date(Ke);else{let Gt=Ke;Ke.toString().length===10||Ke.toString().length===11?Gt=Ke*1e3:Ke.toString().length===13||(Gt=Ke*1e3),He=new Date(Gt)}const at=new Date,St=new Date(at.getFullYear(),at.getMonth(),at.getDate()),tt=new Date(St.getTime()-1440*60*1e3);if(He>=St)return He.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(He>=tt&&He<St)return"昨天 "+He.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Qe=He.getMonth()+1,it=He.getDate(),Mt=He.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Qe}月${it}日 ${Mt}`},P={bridge:{name:"桥梁",icon:hke},tunnel:{name:"隧道",icon:gke},equipment:{name:"特种设备",icon:vke},"gas-station":{name:"加油站",icon:mke},highway:{name:"高速运营公路",icon:xj},comprehensive:{name:"综合",icon:yke}},M=Y([{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 R=Y(0),N=ee(()=>`确定要删除历史记录"${p.value?.item?.title||""}"吗?删除后将无法恢复。`),V=ee(()=>M.value.reduce((Ke,He)=>Ke+He.scorePerQuestion*He.questionCount,0)),L=(Ke,He)=>{console.log("准备删除考试工坊历史记录:",Ke),p.value={item:Ke,index:He},f.value=!0},j=async()=>{if(!p.value)return;const{item:Ke,index:He}=p.value;try{const at=await Bn.deleteHistoryRecord({ai_conversation_id:Ke.id});at.statusCode===200?(A.value.splice(He,1),Ke.isActive&&await G(),console.log("考试工坊历史记录删除成功"),At.success("删除成功")):(console.error("删除考试工坊历史记录失败:",at.msg),At.error(at.msg||"删除失败"))}catch(at){console.error("删除考试工坊历史记录失败:",at),At.error("删除失败,请稍后重试")}finally{f.value=!1,p.value=null}},H=()=>{f.value=!1,p.value=null},G=async()=>{s.value||(console.log("创建新考试工坊任务"),R.value=0,i.value=!1,t.value="ai",n.value="bridge",r.value="桥梁工程施工技术考核",o.value=100,a.value="",_?(M.value=_.questionTypes,o.value=_.totalScore,n.value=_.selectedProjectType,r.value=_.examName):M.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(Ke=>{Ke.isActive=!1}),await k())},Z=async Ke=>{if(!(s.value||c.value)){console.log("点击考试工坊历史记录:",Ke),R.value=Ke.id,c.value=!0;try{A.value.forEach(at=>{at.isActive=at.id===Ke.id});const He=await Bn.getHistoryRecord({ai_conversation_id:Ke.id,business_type:3});if(console.log(He.data),He.statusCode===200&&He.data&&He.data.length>0){const at=He.data[He.data.length-1];if(console.log("获取到的试卷数据:",at),console.log("试卷数据结构:",JSON.stringify(at,null,2)),a.value=I(at.created_at),at&&at.content)try{const St=JSON.parse(at.content);Je(St)}catch(St){console.error("解析试卷数据失败:",St),i.value=!0,a.value=Ke.time}else i.value=!0,a.value=Ke.time}else console.error("获取历史记录详情失败:",He),i.value=!0,a.value=Ke.time}catch(He){console.error("获取历史记录详情失败:",He),i.value=!0,a.value=Ke.time}finally{c.value=!1}}},z=Ke=>{t.value=Ke,console.log("选择功能:",Ke)},U=Ke=>{n.value=Ke,console.log("选择工程类型:",P[Ke].name);const He=P[Ke].name;r.value=`${He}工程施工技术考核`,w.value&&(w.value.title=r.value)},W=()=>{const Ke=P[n.value].name;r.value=`${Ke}工程施工技术考核`,o.value=100,M.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("清除设置")},re=()=>{r.value.length>32&&(r.value=r.value.slice(0,20))},J=()=>{o.value>1e3&&(o.value=1e3,At.warning("试卷总分不能超过1000分")),o.value<1&&(o.value=1)},te=Ke=>{Ke.scorePerQuestion>99&&(Ke.scorePerQuestion=99,At.warning(`${Ke.name}每题分数不能超过99分`)),Ke.scorePerQuestion<1&&(Ke.scorePerQuestion=1)},X=Ke=>{Ke.questionCount>99&&(Ke.questionCount=99,At.warning(`${Ke.name}题目数量不能超过99题`)),Ke.questionCount<1&&(Ke.questionCount=1)},ue=async()=>{if(!r.value.trim()){At.warning("请输入试卷名称");return}if(r.value.trim().length===0){At.warning("试卷名称不能为空");return}if(o.value>1e3){At.warning("试卷总分不能超过1000分");return}for(const at of M.value){if(at.scorePerQuestion>99){At.warning(`${at.name}每题分数不能超过99分`);return}if(at.questionCount>99){At.warning(`${at.name}题目数量不能超过99题`);return}}const Ke=M.value.reduce((at,St)=>at+St.scorePerQuestion*St.questionCount,0);if(Ke!==o.value){At.warning(`总分不匹配!当前配置总分为${Ke}分,请检查配置`);return}console.log("生成试卷:",{function:t.value,projectType:P[n.value].name,examName:r.value,totalScore:o.value,questionTypes:M.value});const He=new Date;if(a.value=`${He.getFullYear()}-${String(He.getMonth()+1).padStart(2,"0")}-${String(He.getDate()).padStart(2,"0")} ${String(He.getHours()).padStart(2,"0")}:${String(He.getMinutes()).padStart(2,"0")}`,t.value==="ai")await Me();else{if(!h.value){At.warning("请先上传PPT文件");return}await me()}},me=async()=>{try{s.value=!0;const Ke=await Ae("ppt");console.log("发送给AI的PPT生成提示词:",Ke);const He=await Bn.sendDeepseekMessage({business_type:3,message:Ke,exam_name:r.value,ai_conversation_id:R.value});if(He.statusCode===200){const at=He.data.reply,St=He.data.ai_conversation_id;console.log("AI生成的PPT试卷:",at),console.log("AI对话ID:",St),R.value=St;const tt=ge(at);De(tt),i.value=!0,At.success("PPT试卷生成完成!"),await k(),R.value>0?(A.value.forEach(Qe=>{Qe.isActive=Qe.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ce()}else throw new Error("AI接口调用失败")}catch(Ke){console.error("PPT生成试卷失败:",Ke),At.error("PPT生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},Me=async()=>{try{s.value=!0;const Ke=await Ae("ai");console.log("发送给AI的提示词:",Ke);const He=await Bn.sendDeepseekMessage({business_type:3,message:Ke,exam_name:r.value,ai_conversation_id:R.value});if(He.statusCode===200){const at=He.data.reply,St=He.data.ai_conversation_id;console.log("AI生成的试卷:",at),console.log("AI对话ID:",St),R.value=St;const tt=ge(at);De(tt),i.value=!0,At.success("AI试卷生成完成!"),await k(),R.value>0?(A.value.forEach(Qe=>{Qe.isActive=Qe.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ce()}else throw new Error("AI接口调用失败")}catch(Ke){console.error("AI生成试卷失败:",Ke),At.error("AI生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},Ae=async(Ke="ai")=>{const He=M.value.map(St=>({name:St.name,romanNumeral:St.romanNumeral,questionCount:Number(St.questionCount)||0,scorePerQuestion:Number(St.scorePerQuestion)||0})),at={mode:Ke,client:"pc",projectType:P[n.value]?.name||"",examTitle:r.value,totalScore:o.value,questionTypes:He,pptContent:h.value?.content||""};try{const St=await Bn.buildExamPrompt(at);if(!St?.data?.prompt)throw new Error(St?.msg||"提示词构建失败");return St.data.prompt}catch(St){throw console.error("获取提示词失败:",St),St}},ge=Ke=>{try{const He=Ke.match(/\{[\s\S]*\}/);if(He){const at=JSON.parse(He[0]);return _e(at),at}else throw new Error("未找到有效的JSON数据")}catch(He){return console.error("解析AI回复失败:",He),Q()}},_e=Ke=>{Ke.singleChoice&&Ke.singleChoice.questions&&Ke.singleChoice.questions.forEach(He=>{He.selectedAnswer||(He.selectedAnswer=""),(!He.options||He.options.length===0)&&(He.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ke.judge&&Ke.judge.questions&&Ke.judge.questions.forEach(He=>{He.selectedAnswer||(He.selectedAnswer="")}),Ke.multiple&&Ke.multiple.questions&&Ke.multiple.questions.forEach(He=>{He.selectedAnswers||(He.selectedAnswers=[]),(!He.options||He.options.length===0)&&(He.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),Ke.short&&Ke.short.questions&&Ke.short.questions.forEach(He=>{He.outline||(He.outline={keyFactors:"答题要点、关键因素、示例答案"})})},Q=()=>({title:r.value,totalScore:o.value,totalQuestions:M.value.reduce((Ke,He)=>Ke+He.questionCount,0),singleChoice:{scorePerQuestion:M.value.find(Ke=>Ke.name==="单选题")?.scorePerQuestion||2,totalScore:(M.value.find(Ke=>Ke.name==="单选题")?.scorePerQuestion||2)*(M.value.find(Ke=>Ke.name==="单选题")?.questionCount||15),count:M.value.find(Ke=>Ke.name==="单选题")?.questionCount||15,questions:be("single",M.value.find(Ke=>Ke.name==="单选题")?.questionCount||15)},judge:{scorePerQuestion:M.value.find(Ke=>Ke.name==="判断题")?.scorePerQuestion||2,totalScore:(M.value.find(Ke=>Ke.name==="判断题")?.scorePerQuestion||2)*(M.value.find(Ke=>Ke.name==="判断题")?.questionCount||10),count:M.value.find(Ke=>Ke.name==="判断题")?.questionCount||10,questions:be("judge",M.value.find(Ke=>Ke.name==="判断题")?.questionCount||10)},multiple:{scorePerQuestion:M.value.find(Ke=>Ke.name==="多选题")?.scorePerQuestion||3,totalScore:(M.value.find(Ke=>Ke.name==="多选题")?.scorePerQuestion||3)*(M.value.find(Ke=>Ke.name==="多选题")?.questionCount||10),count:M.value.find(Ke=>Ke.name==="多选题")?.questionCount||10,questions:be("multiple",M.value.find(Ke=>Ke.name==="多选题")?.questionCount||10)},short:{scorePerQuestion:M.value.find(Ke=>Ke.name==="简答题")?.scorePerQuestion||10,totalScore:(M.value.find(Ke=>Ke.name==="简答题")?.scorePerQuestion||10)*(M.value.find(Ke=>Ke.name==="简答题")?.questionCount||2),count:M.value.find(Ke=>Ke.name==="简答题")?.questionCount||2,questions:be("short",M.value.find(Ke=>Ke.name==="简答题")?.questionCount||2)}}),be=(Ke,He)=>{const at=[],St=P[n.value].name;for(let tt=0;tt<He;tt++)Ke==="single"?at.push({text:`${St}工程相关单选题${tt+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswer:""}):Ke==="judge"?at.push({text:`${St}工程相关判断题${tt+1}`,selectedAnswer:""}):Ke==="multiple"?at.push({text:`${St}工程相关多选题${tt+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswers:[]}):Ke==="short"&&at.push({text:`${St}工程相关简答题${tt+1}`,outline:{keyFactors:"答题要点、关键因素、示例答案"}});return at},De=Ke=>{w.value={...w.value,...Ke}},pe=()=>{i.value=!1},ie=Ke=>{b.value[Ke]=!b.value[Ke]},ce=()=>{A.value.length>0&&(A.value.forEach(Ke=>{Ke.isActive=!1}),A.value[0].isActive=!0)},Re=async(Ke,He)=>{try{console.log(`刷新${Ke}类型第${He+1}题`);const at=`${Ke}_${He}`;l.value[at]=!0;const St=Le(Ke,He),tt=await Bn.reProduceSingleQuestion({message:St});if(tt.statusCode===200){const Qe=tt.data.reply;console.log("AI重新生成的题目:",Qe),console.log("使用当前对话ID:",R.value);const it=Ne(Qe,Ke);console.log("解析后的新题目:",it),it?(ht(Ke,He,it),console.log("准备保存到后端,对话ID:",R.value),await Lt(Ke,He,it),At.success("题目重新生成成功!"),await k(),R.value>0?(A.value.forEach(Mt=>{Mt.isActive=Mt.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ce()):At.error("题目重新生成失败,请稍后重试")}else throw new Error("AI接口调用失败")}catch(at){console.error("重新生成题目失败:",at),At.error("重新生成题目失败,请稍后重试")}finally{const at=`${Ke}_${He}`;l.value[at]=!1}},Ee=(Ke,He)=>Ke==="single"?w.value.singleChoice.questions[He]:Ke==="judge"?w.value.judge.questions[He]:Ke==="multiple"?w.value.multiple.questions[He]:Ke==="short"?w.value.short.questions[He]:null,Le=(Ke,He)=>{const at=P[n.value].name,St=Fe(Ke),tt=Pe(Ke),Qe=Ee(Ke,He);let it=`请基于以下${at}工程的${St}题目,重新生成一道相似主题的题目,要求如下:
  1151. 当前题目参考:
  1152. ${JSON.stringify(Qe,null,2)}
  1153. 题目类型:${St}
  1154. 每题分值:${tt}分
  1155. 题目序号:第${He+1}题
  1156. 请严格按照以下JSON格式返回,不要包含任何其他文字:
  1157. `;return Ke==="single"?it+=`{
  1158. "text": "题目内容",
  1159. "options": [
  1160. {"key": "A", "text": "选项A内容"},
  1161. {"key": "B", "text": "选项B内容"},
  1162. {"key": "C", "text": "选项C内容"},
  1163. {"key": "D", "text": "选项D内容"}
  1164. ],
  1165. "selectedAnswer": "正确答案选项(A/B/C/D)"
  1166. }`:Ke==="judge"?it+=`{
  1167. "text": "题目内容",
  1168. "selectedAnswer": "正确答案(正确/错误)"
  1169. }`:Ke==="multiple"?it+=`{
  1170. "text": "题目内容",
  1171. "options": [
  1172. {"key": "A", "text": "选项A内容"},
  1173. {"key": "B", "text": "选项B内容"},
  1174. {"key": "C", "text": "选项C内容"},
  1175. {"key": "D", "text": "选项D内容"}
  1176. ],
  1177. "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
  1178. }`:Ke==="short"&&(it+=`{
  1179. "text": "题目内容",
  1180. "outline": {
  1181. "keyFactors": "答题要点、关键因素、示例答案"
  1182. }
  1183. }`),it+=`
  1184. 注意:
  1185. 1. 新题目必须与当前题目保持相似的主题和难度
  1186. 2. 题目内容必须与${at}工程相关
  1187. 3. 题目难度适中,符合考试要求
  1188. 4. 严格按照JSON格式返回,不要有多余字符
  1189. 5. 单选题和判断题的选项要合理
  1190. 6. 多选题至少要有2个正确答案
  1191. 7. 简答题要提供清晰的答题要点
  1192. 8. 必须为每道题设置正确答案:
  1193. - 单选题:selectedAnswer字段填写正确的选项(A/B/C/D)
  1194. - 判断题:selectedAnswer字段填写"正确"或"错误"
  1195. - 多选题:selectedAnswers数组包含所有正确答案选项
  1196. 9. 简答题答案字数不超过500字
  1197. 10. 新题目应该是当前题目的变体,保持主题一致性但内容要有所变化`,it},Fe=Ke=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[Ke]||"题目",Pe=Ke=>({single:w.value.singleChoice.scorePerQuestion,judge:w.value.judge.scorePerQuestion,multiple:w.value.multiple.scorePerQuestion,short:w.value.short.scorePerQuestion})[Ke]||2,Ne=(Ke,He)=>{try{console.log("AI回复内容:",Ke),console.log("题目类型:",He);const at=Ke.match(/\{[\s\S]*\}/);if(at){const St=JSON.parse(at[0]);return console.log("解析后的题目数据:",St),He==="short"&&St.outline&&St.outline.keyFactors&&(console.log("简答题keyFactors原始值:",St.outline.keyFactors),Array.isArray(St.outline.keyFactors)&&(St.outline.keyFactors=St.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",St.outline.keyFactors))),St}else throw new Error("未找到有效的JSON数据")}catch(at){return console.error("解析单题AI回复失败:",at),null}},ht=(Ke,He,at)=>{let St;Ke==="single"?(St={...at},(!St.selectedAnswer||St.selectedAnswer==="")&&Rt(Ke,He,St),w.value.singleChoice.questions[He]=St):Ke==="judge"?(St={...at},(!St.selectedAnswer||St.selectedAnswer==="")&&Rt(Ke,He,St),w.value.judge.questions[He]=St):Ke==="multiple"?(St={...at},(!St.selectedAnswers||St.selectedAnswers.length===0)&&Rt(Ke,He,St),w.value.multiple.questions[He]=St):Ke==="short"&&(w.value.short.questions[He]=at),w.value={...w.value},console.log(`更新后的题目${Ke}_${He}:`,St),console.log("当前试卷数据:",w.value)},Rt=(Ke,He,at)=>{if(Ke==="single")if(at.text.includes("桩身倾斜")||at.text.includes("桩位纠偏"))at.selectedAnswer="B";else if(at.text.includes("深水河流")||at.text.includes("悬臂浇筑"))at.selectedAnswer="B";else if(at.text.includes("预应力张拉")||at.text.includes("对称张拉"))at.selectedAnswer="C";else if(at.text.includes("混凝土裂缝")||at.text.includes("伸缩缝"))at.selectedAnswer="C";else if(at.text.includes("沉井下沉")||at.text.includes("土体破坏"))at.selectedAnswer="C";else{const St=["A","B","C","D"];at.selectedAnswer=St[He%St.length]}else if(Ke==="judge")at.text.includes("水灰比无关")?at.selectedAnswer="错误":at.text.includes("张拉顺序")||at.text.includes("预应力损失")?at.selectedAnswer="正确":at.text.includes("养护时间越长越好")?at.selectedAnswer="错误":at.text.includes("下沉速度应控制")?at.selectedAnswer="正确":at.text.includes("张拉应力值可以超过设计值")?at.selectedAnswer="错误":at.selectedAnswer=He%2===0?"正确":"错误";else if(Ke==="multiple")if(at.selectedAnswers||(at.selectedAnswers=[]),at.text.includes("桥梁基础施工"))at.selectedAnswers=["A","C","D"];else if(at.text.includes("预应力技术"))at.selectedAnswers=["A","B"];else if(at.text.includes("质量控制"))at.selectedAnswers=["A","B","C"];else if(at.text.includes("安全措施"))at.selectedAnswers=["A","B","C","D"];else{const St=["A","B","C","D"],tt=Math.floor(Math.random()*2)+2;at.selectedAnswers=St.slice(0,tt)}},Lt=async(Ke,He,at)=>{console.log("对话id",R.value);try{if(!R.value){console.warn("没有找到对话ID,跳过保存");return}const St=JSON.stringify(w.value);console.log("保存到 /re_modify_question 的内容:",St);const tt=await Bn.reModifyQuestion({ai_conversation_id:R.value,content:St});tt.statusCode===200?(console.log("修改已保存到后端"),at&&console.log("题目重新生成并保存成功")):console.error("保存修改失败:",tt)}catch(St){console.error("保存修改失败:",St)}},tn=()=>{s.value||(u.value=!u.value)},Wt=()=>{u.value=!1},zt=Ke=>{Ke.target.closest(".download-dropdown")||(u.value=!1)},dt=async()=>{try{Wt();const Ke=he();console.log("准备导出的数据(有答案):",Ke),console.log("使用模拟Word导出功能(有答案)"),await ut(!0)}catch(Ke){console.error("Word导出失败:",Ke),At.error("Word导出失败,请稍后重试")}},_t=async()=>{try{Wt();const Ke=he();console.log("准备导出的数据(无答案):",Ke),console.log("使用模拟Word导出功能(无答案)"),await ut(!1)}catch(Ke){console.error("Word导出失败:",Ke),At.error("Word导出失败,请稍后重试")}},ut=async(Ke=!0)=>{try{const He=he(),at=rt(He,Ke),St=new Blob([at],{type:"application/msword"}),tt=URL.createObjectURL(St),Qe=document.createElement("a"),it=Ke?`${w.value.title}_有答案_${a.value.replace(/[:\s]/g,"_")}.doc`:`${w.value.title}_无答案_${a.value.replace(/[:\s]/g,"_")}.doc`;Qe.setAttribute("href",tt),Qe.setAttribute("download",it),Qe.style.visibility="hidden",document.body.appendChild(Qe),Qe.click(),document.body.removeChild(Qe),At.success(`导出成功${Ke?"(含答案)":"(不含答案)"}`)}catch(He){console.error("模拟Word导出失败:",He),At.error("Word导出失败,请稍后重试")}},rt=(Ke,He=!0)=>{const at=w.value;let St=`<!DOCTYPE html>
  1198. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  1199. xmlns:w="urn:schemas-microsoft-com:office:word"
  1200. xmlns="http://www.w3.org/TR/REC-html40">
  1201. <head>
  1202. <meta charset="utf-8">
  1203. <meta name="ProgId" content="Word.Document">
  1204. <meta name="Generator" content="Microsoft Word 15">
  1205. <meta name="Originator" content="Microsoft Word 15">
  1206. <title>${at.title||"试卷"}</title>
  1207. <!--[if gte mso 9]>
  1208. <xml>
  1209. <w:WordDocument>
  1210. <w:View>Print</w:View>
  1211. <w:Zoom>100</w:Zoom>
  1212. <w:DoNotPromptForConvert/>
  1213. <w:DoNotShowRevisions/>
  1214. <w:DoNotPrintRevisions/>
  1215. <w:DoNotShowComments/>
  1216. <w:DoNotShowInsertionsAndDeletions/>
  1217. <w:DoNotShowPropertyChanges/>
  1218. <w:Compatibility>
  1219. <w:BreakWrappedTables/>
  1220. <w:SnapToGridInCell/>
  1221. <w:WrapTextWithPunct/>
  1222. <w:UseAsianBreakRules/>
  1223. <w:DontGrowAutofit/>
  1224. </w:Compatibility>
  1225. </w:WordDocument>
  1226. </xml>
  1227. <![endif]-->
  1228. <style>
  1229. body {
  1230. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  1231. font-size: 14px;
  1232. line-height: 1.6;
  1233. margin: 24px;
  1234. color: #000;
  1235. }
  1236. .header {
  1237. text-align: center;
  1238. margin-bottom: 14px;
  1239. }
  1240. .exam-title {
  1241. font-size: 24px;
  1242. font-weight: bold;
  1243. margin-bottom: 14px;
  1244. color: #000;
  1245. }
  1246. .exam-info {
  1247. font-size: 14px;
  1248. color: #666;
  1249. margin-bottom: 14px;
  1250. }
  1251. .section {
  1252. margin-bottom: 14px;
  1253. }
  1254. .section-title {
  1255. font-size: 18px;
  1256. font-weight: bold;
  1257. margin-bottom: 14px;
  1258. color: #000;
  1259. border-bottom: 2px solid #3e7bfa;
  1260. padding-bottom: 5px;
  1261. }
  1262. .question {
  1263. margin-bottom: 14px;
  1264. padding: 10px;
  1265. background-color: #f9f9f9;
  1266. border-left: 4px solid #3e7bfa;
  1267. }
  1268. .question-header {
  1269. display: flex;
  1270. align-items: flex-start;
  1271. gap: 8px;
  1272. margin-bottom: 14px;
  1273. }
  1274. .question-number {
  1275. font-weight: bold;
  1276. color: #3e7bfa;
  1277. flex-shrink: 0;
  1278. }
  1279. .question-text {
  1280. flex: 1;
  1281. }
  1282. .options {
  1283. margin-left: 12px;
  1284. }
  1285. .option {
  1286. margin-bottom: 5px;
  1287. }
  1288. .answer {
  1289. margin-top: 10px;
  1290. padding: 8px;
  1291. background: #e8f4fd;
  1292. border-radius: 4px;
  1293. font-weight: bold;
  1294. color: #2c5aa0;
  1295. }
  1296. </style>
  1297. </head>
  1298. <body>
  1299. <div class="header">
  1300. <div class="exam-title">${at.title||"试卷"}</div>
  1301. <div class="exam-info">
  1302. 总分:${at.totalScore||0}分 | 总题数:${at.totalQuestions||0}题 | 生成时间:${a.value}
  1303. </div>
  1304. </div>`;return at.singleChoice&&at.singleChoice.questions&&at.singleChoice.questions.length>0&&(St+=`
  1305. <div class="section">
  1306. <div class="section-title">一、单选题(每题${at.singleChoice.scorePerQuestion||0}分,共${at.singleChoice.totalScore||0}分)</div>`,at.singleChoice.questions.forEach((tt,Qe)=>{St+=`
  1307. <div class="question">
  1308. <div class="question-header">
  1309. <span class="question-number">${Qe+1}.</span>
  1310. <span class="question-text">${tt.text||"题目内容"}</span>
  1311. </div>`,tt.options&&tt.options.length>0&&(St+='<div class="options">',tt.options.forEach((it,Mt)=>{const Gt=String.fromCharCode(65+Mt);St+=`<div class="option">${Gt}. ${it.text||"选项内容"}</div>`}),St+="</div>"),St+=`${He?`<div class="answer">答案:${tt.selectedAnswer||"未设置"}</div>`:""}
  1312. </div>`}),St+="</div>"),at.judge&&at.judge.questions&&at.judge.questions.length>0&&(St+=`
  1313. <div class="section">
  1314. <div class="section-title">二、判断题(每题${at.judge.scorePerQuestion||0}分,共${at.judge.totalScore||0}分)</div>`,at.judge.questions.forEach((tt,Qe)=>{St+=`
  1315. <div class="question">
  1316. <div class="question-header">
  1317. <span class="question-number">${Qe+1}.</span>
  1318. <span class="question-text">${tt.text||"题目内容"}</span>
  1319. </div>
  1320. ${He?`<div class="answer">答案:${tt.selectedAnswer||"未设置"}</div>`:""}
  1321. </div>`}),St+="</div>"),at.multipleChoice&&at.multipleChoice.questions&&at.multipleChoice.questions.length>0&&(St+=`
  1322. <div class="section">
  1323. <div class="section-title">三、多选题(每题${at.multipleChoice.scorePerQuestion||0}分,共${at.multipleChoice.totalScore||0}分)</div>`,at.multipleChoice.questions.forEach((tt,Qe)=>{St+=`
  1324. <div class="question">
  1325. <div class="question-header">
  1326. <span class="question-number">${Qe+1}.</span>
  1327. <span class="question-text">${tt.text||"题目内容"}</span>
  1328. </div>`,tt.options&&tt.options.length>0&&(St+='<div class="options">',tt.options.forEach((it,Mt)=>{const Gt=String.fromCharCode(65+Mt);St+=`<div class="option">${Gt}. ${it.text||"选项内容"}</div>`}),St+="</div>"),St+=`${He?`<div class="answer">答案:${tt.selectedAnswer||tt.selectedAnswers?.join(", ")||"未设置"}</div>`:""}
  1329. </div>`}),St+="</div>"),at.short&&at.short.questions&&at.short.questions.length>0&&(St+=`
  1330. <div class="section">
  1331. <div class="section-title">四、简答题(每题${at.short.scorePerQuestion||0}分,共${at.short.totalScore||0}分)</div>`,at.short.questions.forEach((tt,Qe)=>{St+=`
  1332. <div class="question">
  1333. <div class="question-header">
  1334. <span class="question-number">${Qe+1}.</span>
  1335. <span class="question-text">${tt.text||"题目内容"}</span>
  1336. </div>
  1337. ${He?`<div class="answer">答题要点:${tt.outline?.keyFactors||"未设置"}</div>`:""}
  1338. </div>`}),St+="</div>"),St+=`
  1339. </body>
  1340. </html>`,St},he=()=>{const Ke=w.value,He=[["试卷名称",Ke.title],["总分",`${Ke.totalScore}分`],["总题数",`${Ke.totalQuestions}题`],["生成时间",a.value],["",""]],at=[["一、单选题",`(每题${Ke.singleChoice.scorePerQuestion}分,共${Ke.singleChoice.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];Ke.singleChoice.questions.forEach((it,Mt)=>{at.push([`${Mt+1}`,it.text,it.options[0]?.text||"",it.options[1]?.text||"",it.options[2]?.text||"",it.options[3]?.text||"",it.selectedAnswer||""])});const St=[["",""],["二、判断题",`(每题${Ke.judge.scorePerQuestion}分,共${Ke.judge.totalScore}分)`],["题号","题目内容","正确答案"]];Ke.judge.questions.forEach((it,Mt)=>{St.push([`${Mt+1}`,it.text,it.selectedAnswer||""])});const tt=[["",""],["三、多选题",`(每题${Ke.multiple.scorePerQuestion}分,共${Ke.multiple.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];Ke.multiple.questions.forEach((it,Mt)=>{tt.push([`${Mt+1}`,it.text,it.options[0]?.text||"",it.options[1]?.text||"",it.options[2]?.text||"",it.options[3]?.text||"",it.selectedAnswers.join(", ")||""])});const Qe=[["",""],["四、简答题",`(每题${Ke.short.scorePerQuestion}分,共${Ke.short.totalScore}分)`],["题号","题目内容","答题要点"]];return Ke.short.questions.forEach((it,Mt)=>{Qe.push([`${Mt+1}`,it.text,it.outline?.keyFactors||""])}),[...He,...at,...St,...tt,...Qe]},Je=Ke=>{try{console.log("开始恢复试卷数据:",Ke),console.log("试卷数据详细结构:",JSON.stringify(Ke,null,2));let He=Ke;if(Ke.exam&&(He=Ke.exam),He.title?r.value=He.title:He.exam_name&&(r.value=He.exam_name),He.exam_type&&(n.value=He.exam_type),He.totalScore?o.value=He.totalScore:He.total_score&&(o.value=He.total_score),He.generation_method&&(t.value=He.generation_method),He.generationTime?a.value=He.generationTime:He.generation_time&&(a.value=He.generation_time),He.question_config&&(M.value=[{name:"单选题",scorePerQuestion:He.question_config.single_choice.score_per_question,questionCount:He.question_config.single_choice.count,romanNumeral:"一"},{name:"判断题",scorePerQuestion:He.question_config.judge.score_per_question,questionCount:He.question_config.judge.count,romanNumeral:"二"},{name:"多选题",scorePerQuestion:He.question_config.multiple.score_per_question,questionCount:He.question_config.multiple.count,romanNumeral:"三"},{name:"简答题",scorePerQuestion:He.question_config.short.score_per_question,questionCount:He.question_config.short.count,romanNumeral:"四"}]),He.singleChoice||He.questions?.single_choice){const at=He.singleChoice||He.questions.single_choice,St=He.judge||He.questions.judge,tt=He.multiple||He.questions.multiple,Qe=He.short||He.questions.short;console.log("单选题数据:",at),console.log("判断题数据:",St),console.log("多选题数据:",tt),console.log("简答题数据:",Qe),w.value={title:r.value,totalScore:o.value,totalQuestions:He.totalQuestions||He.total_questions,singleChoice:{scorePerQuestion:at.scorePerQuestion||at.score_per_question,totalScore:at.totalScore||at.total_score,count:at.count,questions:at.questions.map(it=>({text:it.text||it.question_text,options:it.options||[],selectedAnswer:it.selectedAnswer||""}))},judge:{scorePerQuestion:St.scorePerQuestion||St.score_per_question,totalScore:St.totalScore||St.total_score,count:St.count,questions:St.questions.map(it=>({text:it.text||it.question_text,selectedAnswer:it.selectedAnswer||it.correct_answer||it.answer||""}))},multiple:{scorePerQuestion:tt.scorePerQuestion||tt.score_per_question,totalScore:tt.totalScore||tt.total_score,count:tt.count,questions:tt.questions.map(it=>({text:it.text||it.question_text,options:it.options||[],selectedAnswers:it.selectedAnswers||it.correct_answers||it.answers||[]}))},short:{scorePerQuestion:Qe.scorePerQuestion||Qe.score_per_question,totalScore:Qe.totalScore||Qe.total_score,count:Qe.count,questions:Qe.questions.map(it=>({text:it.text||it.question_text,outline:it.outline||it.answer_outline||{keyFactors:"答题要点、关键因素、示例答案"}}))}}}He.user_answers&&(He.user_answers.single_choice&&He.user_answers.single_choice.forEach((at,St)=>{w.value.singleChoice.questions[St]&&(w.value.singleChoice.questions[St].selectedAnswer=at||"")}),He.user_answers.judge&&He.user_answers.judge.forEach((at,St)=>{w.value.judge.questions[St]&&(w.value.judge.questions[St].selectedAnswer=at||"")}),He.user_answers.multiple&&He.user_answers.multiple.forEach((at,St)=>{w.value.multiple.questions[St]&&(w.value.multiple.questions[St].selectedAnswers=at||[])})),console.log("恢复完成后的试卷数据:",w.value),console.log("单选题答案:",w.value.singleChoice?.questions?.map(at=>at.selectedAnswer)),console.log("判断题答案:",w.value.judge?.questions?.map(at=>at.selectedAnswer)),console.log("多选题答案:",w.value.multiple?.questions?.map(at=>at.selectedAnswers)),i.value=!0}catch(He){console.error("恢复试卷失败:",He),At.error("恢复试卷失败,请稍后重试")}},ct=Ke=>{if(Ke.size>m.maxSize)throw new Error("文件大小不能超过20MB");const He="."+Ke.name.split(".").pop().toLowerCase();if(!m.allowedTypes.includes(He))throw new Error("只支持PPT格式文件(.ppt/.pptx)");return He},Ot=Ke=>{switch(Ke){case".ppt":case".pptx":return"📊";default:return"📎"}},Tn=Ke=>{if(Ke===0)return"0 B";const He=1024,at=["B","KB","MB","GB"],St=Math.floor(Math.log(Ke)/Math.log(He));return parseFloat((Ke/Math.pow(He,St)).toFixed(2))+" "+at[St]},In=async Ke=>{try{const He=await Mf(()=>import("./jszip.min-D5L-YwUr.js").then(it=>it.j),[]),St=await new He.default().loadAsync(Ke),tt=Object.keys(St.files).filter(it=>it.startsWith("ppt/slides/slide")&&it.endsWith(".xml"));let Qe="";if(tt.length>0){const it=tt[0],Mt=await St.file(it).async("text"),Gt=Mt.match(/<a:t[^>]*>([^<]+)<\/a:t>/g);if(Gt&&Gt.forEach(En=>{const Nn=En.replace(/<[^>]*>/g,"").trim();Nn.length>0&&(Qe+=Nn+" ")}),Qe.length===0){const En=Mt.match(/>([^<]{2,})</g);En&&En.forEach(Nn=>{const xt=Nn.replace(/[<>]/g,"").trim();xt.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(xt)&&(Qe+=xt+" ")})}}if(Qe.length===0){const it=Object.keys(St.files).filter(Mt=>Mt.endsWith(".xml")&&!Mt.includes("_rels"));for(const Mt of it.slice(0,3))try{const En=(await St.file(Mt).async("text")).match(/>([^<]{2,})</g);En&&En.forEach(Nn=>{const xt=Nn.replace(/[<>]/g,"").trim();xt.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(xt)&&(Qe+=xt+" ")})}catch(Gt){console.log("读取XML文件失败:",Mt,Gt)}}return Qe.length>0?(Qe=Qe.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),Qe.substring(0,800)):""}catch(He){console.error("PPT文本提取失败:",He);try{const St=new TextDecoder("utf-8").decode(Ke),tt=St.match(/[\u4e00-\u9fa5]{2,}/g),Qe=St.match(/[a-zA-Z]{3,}/g);let it="";if(tt&&tt.length>0&&(it+=tt.join(" ")),Qe&&Qe.length>0&&(it+=" "+Qe.join(" ")),it.length>0)return it=it.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),it.substring(0,800)}catch(at){console.error("回退文本提取也失败:",at)}return""}},je=async Ke=>{try{if(console.log("开始读取PPT文件:",Ke.name,"文件大小:",Ke.size),Ke.size===0)throw new Error("PPT文件为空");return console.log("开始读取PPT文件内容..."),new Promise((He,at)=>{const St=new FileReader;St.onload=async tt=>{try{const Qe=tt.target.result;console.log("文件读取成功,大小:",Qe.byteLength),console.log("开始读取PPT文件第一页内容...");try{const it=new Uint8Array(Qe);let Mt=`PPT文件信息:
  1341. 文件名:${Ke.name}
  1342. 文件大小:${Tn(Ke.size)}
  1343. 文件类型:${Ke.type}
  1344. 修改时间:${new Date(Ke.lastModified).toLocaleString("zh-CN")}
  1345. PPT第一页内容提取结果:
  1346. `;const Gt=await In(it);Gt&&Gt.length>0?(Mt+=`
  1347. 提取的文本内容:
  1348. ${Gt}`,console.log("PPT文本提取成功,长度:",Gt.length)):Mt+=`
  1349. 无法自动提取PPT文本内容。
  1350. `,Mt+=`
  1351. 请在下方文本框中补充或修正PPT内容描述,AI将基于这些信息生成相关考题。`,console.log("PPT内容提取完成,长度:",Mt.length),console.log("提取的内容预览:",Mt.substring(0,500)),He(Mt)}catch(it){console.error("PPT解析失败:",it);const Mt=`PPT文件:${Ke.name}
  1352. 文件大小:${Tn(Ke.size)}
  1353. 文件类型:${Ke.type}
  1354. 修改时间:${new Date(Ke.lastModified).toLocaleString("zh-CN")}
  1355. PPT内容提取失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
  1356. 您可以描述:
  1357. 1. PPT的主要主题和内容
  1358. 2. 关键知识点和重点
  1359. 3. 培训目标和学习要求
  1360. 4. 相关的技术要点和注意事项`;He(Mt)}}catch(Qe){console.error("PPT处理失败:",Qe);const it=`PPT文件:${Ke.name}
  1361. 文件大小:${Tn(Ke.size)}
  1362. 文件类型:${Ke.type}
  1363. 修改时间:${new Date(Ke.lastModified).toLocaleString("zh-CN")}
  1364. PPT文件处理失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
  1365. 您可以描述:
  1366. 1. PPT的主要主题和内容
  1367. 2. 关键知识点和重点
  1368. 3. 培训目标和学习要求
  1369. 4. 相关的技术要点和注意事项`;He(it)}},St.onerror=()=>{at(new Error("文件读取失败"))},St.readAsArrayBuffer(Ke)})}catch(He){throw console.error("PPT文件读取失败,详细错误:",He),console.error("错误堆栈:",He.stack),He.message.includes("Invalid file format")?new Error("PPT文件格式无效或已损坏"):He.message.includes("File is empty")?new Error("PPT文件为空"):new Error(`PPT文件读取失败: ${He.message}`)}},ke=async Ke=>{const He=Ke.target.files[0];if(He)try{const at=ct(He);g.value=!0,console.log("开始读取文件内容:",He.name);const St=await je(He);h.value={file:He,name:He.name,size:He.size,type:at,icon:Ot(at),content:St};const tt=He.name.replace(/\.(ppt|pptx)$/i,"");r.value=`${tt}考试试卷`;const Qe=St.length;console.log("文件内容提取完成,字符数:",Qe),At.success(`PPT文件读取成功,提取了${Qe}个字符的内容`)}catch(at){console.error("文件读取失败:",at),At.error(at.message||"文件读取失败,请重试")}finally{g.value=!1,Ke.target.value=""}},ye=()=>{if(h.value){h.value=null,y.value="";const Ke=P[n.value].name;r.value=`${Ke}工程施工技术考核`}},Be=()=>{if(h.value){At.warning("只能上传一个文件,请先删除当前文件");return}v.value?.click()},ot=()=>{f.value=!1,At.success("删除成功")},gt=()=>{f.value=!1};return jn(async()=>{_={questionTypes:JSON.parse(JSON.stringify(M.value)),totalScore:o.value,selectedProjectType:n.value,examName:r.value},console.log("初始配置已保存:",_),await k(),document.addEventListener("click",zt)}),hl(()=>{document.removeEventListener("click",zt)}),(Ke,He)=>(F(),K("div",bWt,[$e(VC),x("div",wWt,[x("div",{class:"history-header"},[He[10]||(He[10]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:JC,alt:"新建任务",class:"new-chat-btn",onClick:G})]),x("div",AWt,[d.value&&S.value===0?(F(),K("div",CWt,He[11]||(He[11]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):S.value>0?(F(!0),K(Nt,{key:1},on(A.value,(at,St)=>(F(),K("div",{key:St,class:oe(["history-item",{active:at.isActive}]),onClick:tt=>at.isActive||s.value||c.value?null:Z(at),style:Jt({cursor:at.isActive?"default":s.value||c.value?"not-allowed":"pointer",opacity:at.isActive?"0.8":"1"})},[x("div",SWt,[x("div",EWt,ze(at.title),1),x("div",kWt,ze(at.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":at.isActive}]),onClick:Qt(tt=>L(at,St),["stop"])},He[12]||(He[12]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,TWt)],14,xWt))),128)):(F(),K("div",_Wt,He[13]||(He[13]=[x("img",{src:e5,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",{class:"main-work",style:Jt({background:i.value?"transparent":"#ebf3ff"})},[He[48]||(He[48]=x("div",{class:"work-header"},[x("h2",null,"考试工坊")],-1)),x("div",{class:oe(["work-content",{"exam-detail-mode":i.value}])},[c.value?(F(),K("div",DWt,He[14]||(He[14]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载历史记录...",-1)]))):xe("",!0),i.value?xe("",!0):(F(),K("div",IWt,[x("div",OWt,[x("div",MWt,[He[15]||(He[15]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",PWt,[(F(),K(Nt,null,on(P,(at,St)=>x("div",{key:St,class:oe(["type-card",{active:n.value===St}]),onClick:tt=>s.value||h.value?null:U(St),style:Jt({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:at.icon,alt:at.name,class:"type-icon"},null,8,RWt),x("span",null,ze(at.name),1)],14,NWt)),64))])]),x("div",BWt,[He[20]||(He[20]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",LWt,[x("div",{class:oe(["method-card",{active:t.value==="ai"}]),onClick:He[0]||(He[0]=at=>s.value||h.value?null:z("ai")),style:Jt({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:C(bke),alt:"智能生成试卷",class:"method-icon"},null,8,FWt),He[16]||(He[16]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6),x("div",{class:oe(["method-card",{active:t.value==="ppt"}]),onClick:He[1]||(He[1]=at=>s.value?null:t.value==="ppt"&&!h.value?Be():z("ppt")),style:Jt({cursor:s.value?"not-allowed":"pointer",opacity:s.value?"0.5":"1"})},[x("img",{src:C(vWt),alt:"从PPT生成考题",class:"method-icon"},null,8,UWt),x("div",zWt,[He[18]||(He[18]=x("h4",null,"从PPT生成考题",-1)),He[19]||(He[19]=x("p",null,"上传培训PPT,智能提取关键内容生成考题(单个文件可上传20M内)",-1)),t.value==="ppt"&&h.value?(F(),K("div",$Wt,[x("div",jWt,[x("div",HWt,ze(h.value.icon),1),x("div",WWt,[x("div",VWt,ze(h.value.name),1),x("div",qWt,ze(Tn(h.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:ye},He[17]||(He[17]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)])],6)])]),x("div",GWt,[He[34]||(He[34]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",KWt,[x("div",YWt,[x("div",QWt,[x("div",ZWt,[He[21]||(He[21]=x("label",null,"试卷名称",-1)),x("div",XWt,[an(x("input",{"onUpdate:modelValue":He[2]||(He[2]=at=>r.value=at),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:re,disabled:s.value||h.value},null,40,JWt),[[jr,r.value]]),x("span",{class:oe(["char-count-inline",{warning:r.value.length>=18}])},ze(r.value.length)+"/32 ",3)])]),x("div",eVt,[He[23]||(He[23]=x("label",null,"试卷总分",-1)),x("div",tVt,[an(x("input",{"onUpdate:modelValue":He[3]||(He[3]=at=>o.value=at),type:"number",class:"config-input",min:"1",max:"1000",onInput:J,disabled:s.value||h.value},null,40,nVt),[[jr,o.value]]),He[22]||(He[22]=x("span",{class:"unit"},"分",-1))])])]),He[28]||(He[28]=x("div",{class:"section-title"},"题型选择与分数分配",-1)),x("div",rVt,[(F(!0),K(Nt,null,on(M.value,(at,St)=>(F(),K("div",{class:"question-type",key:St},[x("div",oVt,[x("span",iVt,ze(at.name),1),x("div",aVt,[x("div",{class:"progress-fill",style:Jt({width:at.scorePerQuestion*at.questionCount/o.value*100+"%"})},null,4)]),x("div",sVt,[He[24]||(He[24]=x("span",null,"每题",-1)),an(x("input",{"onUpdate:modelValue":tt=>at.scorePerQuestion=tt,type:"number",class:"score-input-field",min:"1",max:"99",onInput:tt=>te(at),disabled:s.value||h.value},null,40,lVt),[[jr,at.scorePerQuestion]]),He[25]||(He[25]=x("span",null,"分",-1)),He[26]||(He[26]=x("span",null,"一共",-1)),an(x("input",{"onUpdate:modelValue":tt=>at.questionCount=tt,type:"number",class:"count-input-field",min:"1",max:"99",onInput:tt=>X(at),disabled:s.value||h.value},null,40,uVt),[[jr,at.questionCount]]),He[27]||(He[27]=x("span",null,"题",-1))])])]))),128))])]),x("div",cVt,[x("div",dVt,[x("img",{src:C(mWt),alt:"预览",class:"preview-icon"},null,8,fVt),He[29]||(He[29]=x("h3",null,"预览",-1))]),x("div",pVt,[x("h4",hVt,ze(r.value||"试卷名称"),1),x("div",gVt,[(F(!0),K(Nt,null,on(M.value,(at,St)=>(F(),K("div",{class:"breakdown-item",key:St},[x("div",vVt,[x("span",mVt,ze(at.romanNumeral)+"、"+ze(at.name)+" (每题"+ze(at.scorePerQuestion)+"分,共"+ze(at.scorePerQuestion*at.questionCount)+"分)",1),x("span",yVt,ze(at.questionCount)+"题",1)])]))),128))]),He[32]||(He[32]=x("div",{class:"divider"},null,-1)),x("div",bVt,[He[30]||(He[30]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",wVt,ze(V.value)+"分",1)]),x("div",AVt,[He[31]||(He[31]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",CVt,ze(o.value)+"分",1)])])])]),x("div",xVt,[x("button",{class:"clear-btn",onClick:W,disabled:s.value||h.value},[x("img",{src:C(yWt),alt:"一键清除",class:"clear-icon"},null,8,EVt)],8,SVt),x("button",{class:"generate-btn",onClick:ue,disabled:s.value},[s.value?(F(),K("span",_Vt,He[33]||(He[33]=[An(" 生成中",-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(wke),alt:"生成试卷",class:"generate-icon"},null,8,TVt))],8,kVt)])])])])),i.value?(F(),K("div",DVt,[x("div",IVt,[x("div",OVt,[x("button",{class:"back-btn",onClick:pe,disabled:s.value},He[35]||(He[35]=[x("span",{class:"back-arrow"},"←",-1),An(" 返回修改 ",-1)]),8,MVt)]),x("div",PVt,[x("div",{class:oe(["download-dropdown",{disabled:s.value,show:u.value}]),onClick:He[4]||(He[4]=Qt(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:s.value,onClick:tn},[x("img",{src:C(r7),alt:"下载Word",class:"download-icon"},null,8,RVt)],8,NVt),x("div",BVt,[x("div",{class:"dropdown-item",onClick:dt,disabled:s.value},He[36]||(He[36]=[x("span",{class:"item-text"},"有答案",-1)]),8,LVt),x("div",{class:"dropdown-item",onClick:_t,disabled:s.value},He[37]||(He[37]=[x("span",{class:"item-text"},"无答案",-1)]),8,FVt)])],2)])]),x("div",UVt,[x("div",null,[x("h1",zVt,ze(w.value.title),1),x("div",$Vt,[x("span",jVt,"总分: "+ze(w.value.totalScore)+"分",1),x("span",HVt,"题量: "+ze(w.value.totalQuestions)+"题",1)])]),x("div",WVt,"生成时间: "+ze(a.value),1)]),x("div",VVt,[x("div",qVt,[x("div",{class:"section-header",onClick:He[5]||(He[5]=at=>s.value?null:ie("single")),style:Jt({cursor:s.value?"not-allowed":"pointer"})},[x("div",GVt,[He[38]||(He[38]=x("span",{class:"section-number"},"一",-1)),He[39]||(He[39]=x("span",{class:"section-name"},"单选题",-1)),x("span",KVt,"(每题"+ze(w.value.singleChoice.scorePerQuestion)+"分, 共"+ze(w.value.singleChoice.totalScore)+"分)",1)]),x("div",YVt,[x("span",QVt,ze(w.value.singleChoice.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.single}])},null,10,ZVt)])],4),b.value.single?(F(),K("div",XVt,[(F(!0),K(Nt,null,on(w.value.singleChoice.questions,(at,St)=>(F(),K("div",{key:St,class:"question-item"},[x("div",JVt,[x("span",eqt,ze(St+1)+".",1),x("span",tqt,ze(at.text),1),x("button",{class:"refresh-btn",onClick:tt=>Re("single",St),disabled:s.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`single_${St}`]}])},null,10,rqt)],8,nqt)]),x("div",oqt,[(F(!0),K(Nt,null,on(at.options,tt=>(F(),K("div",{key:tt.key,class:oe(["option",{selected:at.selectedAnswer===tt.key}]),style:{cursor:"default"}},[x("div",iqt,[x("div",{class:oe(["radio-circle",{selected:at.selectedAnswer===tt.key}])},[at.selectedAnswer===tt.key?(F(),K("div",aqt)):xe("",!0)],2)]),x("span",sqt,ze(tt.key)+".",1),x("div",lqt,[x("span",uqt,ze(tt.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",cqt,[x("div",{class:"section-header",onClick:He[6]||(He[6]=at=>s.value?null:ie("judge")),style:Jt({cursor:s.value?"not-allowed":"pointer"})},[x("div",dqt,[He[40]||(He[40]=x("span",{class:"section-number"},"二",-1)),He[41]||(He[41]=x("span",{class:"section-name"},"判断题",-1)),x("span",fqt,"(每题"+ze(w.value.judge.scorePerQuestion)+"分, 共"+ze(w.value.judge.totalScore)+"分)",1)]),x("div",pqt,[x("span",hqt,ze(w.value.judge.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.judge}])},null,10,gqt)])],4),b.value.judge?(F(),K("div",vqt,[(F(!0),K(Nt,null,on(w.value.judge.questions,(at,St)=>(F(),K("div",{key:St,class:"question-item"},[x("div",mqt,[x("span",yqt,ze(St+1)+".",1),x("span",bqt,ze(at.text),1),x("button",{class:"refresh-btn",onClick:tt=>Re("judge",St),disabled:s.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`judge_${St}`]}])},null,10,Aqt)],8,wqt)]),x("div",Cqt,[x("div",{class:oe(["option judge-option",{selected:at.selectedAnswer==="正确"}]),style:{cursor:"default"}},[x("div",xqt,[x("div",{class:oe(["radio-circle",{selected:at.selectedAnswer==="正确"}])},[at.selectedAnswer==="正确"?(F(),K("div",Sqt)):xe("",!0)],2)]),He[42]||(He[42]=x("span",{class:"option-text"},"正确",-1))],2),x("div",{class:oe(["option judge-option",{selected:at.selectedAnswer==="错误"}]),style:{cursor:"default"}},[x("div",Eqt,[x("div",{class:oe(["radio-circle",{selected:at.selectedAnswer==="错误"}])},[at.selectedAnswer==="错误"?(F(),K("div",kqt)):xe("",!0)],2)]),He[43]||(He[43]=x("span",{class:"option-text"},"错误",-1))],2)])]))),128))])):xe("",!0)]),x("div",Tqt,[x("div",{class:"section-header",onClick:He[7]||(He[7]=at=>s.value?null:ie("multiple")),style:Jt({cursor:s.value?"not-allowed":"pointer"})},[x("div",_qt,[He[44]||(He[44]=x("span",{class:"section-number"},"三",-1)),He[45]||(He[45]=x("span",{class:"section-name"},"多选题",-1)),x("span",Dqt,"(每题"+ze(w.value.multiple.scorePerQuestion)+"分, 共"+ze(w.value.multiple.totalScore)+"分)",1)]),x("div",Iqt,[x("span",Oqt,ze(w.value.multiple.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.multiple}])},null,10,Mqt)])],4),b.value.multiple?(F(),K("div",Pqt,[(F(!0),K(Nt,null,on(w.value.multiple.questions,(at,St)=>(F(),K("div",{key:St,class:"question-item"},[x("div",Nqt,[x("span",Rqt,ze(St+1)+".",1),x("span",Bqt,ze(at.text),1),x("button",{class:"refresh-btn",onClick:tt=>Re("multiple",St),disabled:s.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`multiple_${St}`]}])},null,10,Fqt)],8,Lqt)]),x("div",Uqt,[(F(!0),K(Nt,null,on(at.options,tt=>(F(),K("div",{key:tt.key,class:oe(["option",{selected:at.selectedAnswers.includes(tt.key)}]),style:{cursor:"default"}},[x("div",zqt,[x("div",{class:oe(["radio-circle",{selected:at.selectedAnswers.includes(tt.key)}])},[at.selectedAnswers.includes(tt.key)?(F(),K("div",$qt)):xe("",!0)],2)]),x("span",jqt,ze(tt.key)+".",1),x("div",Hqt,[x("span",Wqt,ze(tt.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",Vqt,[x("div",{class:"section-header",onClick:He[8]||(He[8]=at=>s.value?null:ie("short")),style:Jt({cursor:s.value?"not-allowed":"pointer"})},[x("div",qqt,[He[46]||(He[46]=x("span",{class:"section-number"},"四",-1)),He[47]||(He[47]=x("span",{class:"section-name"},"简答题",-1)),x("span",Gqt,"(每题"+ze(w.value.short.scorePerQuestion)+"分, 共"+ze(w.value.short.totalScore)+"分)",1)]),x("div",Kqt,[x("span",Yqt,ze(w.value.short.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.short}])},null,10,Qqt)])],4),b.value.short?(F(),K("div",Zqt,[(F(!0),K(Nt,null,on(w.value.short.questions,(at,St)=>(F(),K("div",{key:St,class:"question-item"},[x("div",Xqt,[x("span",Jqt,ze(St+1)+".",1),x("span",eGt,ze(at.text),1),x("button",{class:"refresh-btn",onClick:tt=>Re("short",St),disabled:s.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`short_${St}`]}])},null,10,nGt)],8,tGt)]),x("div",rGt,[x("div",oGt,[x("div",iGt,[x("span",aGt,ze(at.outline.keyFactors),1)])])])]))),128))])):xe("",!0)])])])):xe("",!0)],2)],4),$e(c0,{visible:f.value,onClose:He[9]||(He[9]=at=>f.value=!1),onConfirm:ot,onCancel:gt},null,8,["visible"]),x("input",{ref_key:"fileInput",ref:v,type:"file",accept:".ppt,.pptx",style:{display:"none"},onChange:ke},null,544),$e(c0,{visible:f.value,title:"删除历史记录",message:N.value,onConfirm:j,onCancel:H,onClose:H},null,8,["visible","message"])]))}},lGt=Yo(sGt,[["__scopeId","data-v-2dc748e1"]]),Ake="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==",uGt="/assets/17-BJ4I6Ces.png",cGt="/assets/18-CsyhSRVL.png",dGt="/assets/19-LEWFVOdg.png",fGt="/assets/20-pqZy7Dwl.png",pGt="/assets/21-BTsblUui.png",Sj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKUSURBVHic7Zo9btswFIA/2gjQUd069ghdUsCbfYP0Bs5WOBlUTd3KXEDWkHqNb9C1nerNRb34BnVOEO8FpA5xAaNx9GM+ioL7vpEm+KjPpPT4QFAURVEURVEURVEURVEUB+LYRqcU20gNdJXYKTAGImBjci5vM7uQGr+M69gOC8MUwxsAAze3qbUSY/clBrlOrAU+Ai92TRGG8flgeL9aLtYSMZ5jktgxhi8YXu01D98OhtFqufjmOn7PdQCAAj4dajdwN0nsWCLGISaJHRu4e+ZnkbjOgqr2vS9JFXIAIol3krOgLLNbCkq3kbSkGnIANllmt66xRLaYKfhQ2UdIUk05FDnvXGOB0Ev654/F5nwwvDdwUdbPwIXLi7u2HLicTe3XY2L8i4gggNVysfYpqZGc1M6bjF2GmCDwJymUHBAWBPKSQsoBD4JATlJoOeBJELhL6oIc8CgIjpfUFTm7ufmnyQPDY85Up69vObu5tENdSXVoSw543mL71N1uVbQpB1oUBO6S2pYDLQuC4yWFkAMBBEFzSaHkgNBp/pQJsoKaftFcqwAutC7o2M99KEmtCnLNhUJIak2QVKLYtiQ9alTgfQU1PXj6rkw2xaugY0/lXZLkTZBryaIrkrwIkqrndEGSuCDpYldoSaKCfFUCQ0oSE+S7TBpKkkge9D62r/s9flX1k8hd6v4RJmckcT9J5DTf7/G9qo9UYjdL7fxvQlkazzB1jQUCKyiObfS7x0NZHx9Zb52VdJbz0vWGh8gWu0rsA49X757g80hQJelzap2fT6pgNj/U6Pu8VLHdMokYIoLOcm7Yn1DB2uSM2jhMzlI7NzkjYLNr2gLZbk7d49SuASuKoiiKoiiKoiiKoij/F38A0km+yu6NC4kAAAAASUVORK5CYII=",Cke="/assets/13-BL3zSFtZ.png",xke="/assets/2-BidY8fbj.png",Ske="/assets/3-N-JnaHAs.png",hGt={class:"chat-container"},gGt={class:"history-sidebar"},vGt={class:"history-list"},mGt={key:0,class:"history-loading"},yGt=["onClick"],bGt={class:"history-content"},wGt={class:"title-row"},AGt={class:"history-title"},CGt={class:"time-row"},xGt={class:"history-time"},SGt={class:"desc-row"},EGt={class:"history-icon"},kGt=["src","onError"],TGt={class:"history-desc"},_Gt=["onClick"],DGt={key:2,class:"empty-history"},IGt={class:"main-work"},OGt={class:"work-content"},MGt={key:0,class:"main-layout"},PGt={class:"hazard-system"},NGt={class:"step-section"},RGt={class:"scenario-tags"},BGt=["onClick"],LGt={class:"step-section"},FGt={key:0,class:"uploaded-image-container"},UGt=["src"],zGt={class:"image-overlay"},$Gt={key:1,class:"upload-content"},jGt={key:2,class:"upload-status"},HGt={key:3,class:"upload-status"},WGt={class:"action-section"},VGt=["disabled"],qGt=["src"],GGt={key:1,class:"detail-view"},KGt={class:"detail-header"},YGt={class:"header-left"},QGt={class:"header-text"},ZGt={class:"main-title"},XGt={class:"header-right"},JGt={class:"current-time"},eKt={class:"detail-content"},tKt={key:0,class:"loading-overlay"},nKt={class:"image-section"},rKt={class:"image-container"},oKt=["src","alt"],iKt={key:0,class:"scanning-overlay"},aKt={class:"analysis-section"},sKt={class:"analysis-header"},lKt={class:"header-title"},uKt={key:0,class:"analysis-prompt"},cKt={key:1,class:"analysis-title"},dKt={key:0,class:"analysis-body"},fKt={class:"analysis-text"},pKt=["innerHTML"],hKt={key:1},gKt={class:"scene-tag"},vKt={key:0,class:"hazards-intro"},mKt={key:1,class:"hazards-section"},yKt={key:0,class:"hazards-loading-overlay"},bKt={key:1,class:"hazard-cards-container"},wKt={class:"hazard-number"},AKt={class:"hazard-text-container"},CKt={class:"hazard-desc"},xKt=["onClick"],SKt=["src"],EKt={class:"modal-header-section"},kKt={class:"modal-title-area"},TKt={class:"hazard-info"},_Kt={class:"hazard-number"},DKt={class:"hazard-text"},IKt={class:"modal-content-section"},OKt={key:0,class:"loading-state"},MKt={key:1,class:"comparison-container"},PKt={class:"example-card correct-example"},NKt={class:"card-content"},RKt={key:0,class:"image-loading"},BKt=["src"],LKt={key:2,class:"no-image"},FKt={class:"example-card error-example"},UKt={class:"card-content"},zKt={key:0,class:"image-loading"},$Kt=["src"],jKt={key:2,class:"no-image"},HKt={class:"modal-body"},WKt={class:"question-section"},VKt={class:"answer-buttons"},qKt={class:"question-section"},GKt={class:"answer-buttons"},KKt={class:"question-section"},YKt={class:"star-rating"},QKt=["onClick"],ZKt={key:0,class:"question-section"},XKt={class:"remark-input-container"},JKt=["disabled"],eYt={class:"character-count"},tYt={key:0,class:"modal-footer"},nYt={__name:"HazardDetection",setup(e){Y("");const t=Y("tunnel"),n=Y(null),r=Y(""),o=Y(null),i=Y("main"),a=Y(!1),s=Y(null),l=Y(!1),u=Y(null),d=Y({}),c=Y(!1),f=Y({correct:!1,error:!1}),p=Y(!1),v=Y(null),h=Y(!1),g=Y(!1),y=Y(!1),m=Y(null),b=Y(""),w=Y(!1),A=Y(""),S=Y(!1),k=Y(!1),O=Y(!1),I=Y(""),P=Y(!1),M=Y(""),_=Y(!1),R=Y({}),N=Y([]),V=Y(0),L=Y(!1),j=Y(!1),H=Y(!1),G=Y(!1),Z=Y({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}),z=ee(()=>`确定要删除历史记录"${v.value?.item?.title||""}"吗?删除后将无法恢复。`),U=ee(()=>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"}},re={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:"加油站"}},J=ke=>re[ke]?.class||"tag-tunnel",te=ke=>re[ke]?.text||"隧道",X=(ke,ye)=>{console.log("准备删除隐患提示历史记录:",ke),v.value={item:ke,index:ye},p.value=!0},ue=async()=>{if(!v.value)return;const{item:ke,index:ye}=v.value;try{const Be=await Bn.deleteRecognitionRecord({recognition_record_id:ke.id});Be.statusCode===200?(N.value.splice(ye,1),V.value=V.value-1,ke.isActive&&await Me(),console.log("隐患提示历史记录删除成功"),At.success("删除成功")):(console.error("删除隐患提示历史记录失败:",Be.msg),At.error(Be.msg||"删除失败"))}catch(Be){console.error("删除隐患提示历史记录失败:",Be),At.error("删除失败,请稍后重试")}finally{p.value=!1,v.value=null}},me=()=>{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,O.value=!1,I.value="",P.value=!1,M.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("新任务创建完成")},Ae=async(ke,ye)=>{try{if(console.log("handleHistoryItem 被调用,历史记录:",ke),ke.isActive){console.log("当前记录已经是选中状态,忽略点击");return}s.value=ke,i.value="detail",g.value=!1,L.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 ot=Be.data;console.log("获取详情成功:",ot),m.value={scene_name:ot.tag_type||rt(ot.labels),labels:ot.labels,total_detections:ot.labels&&Array.isArray(ot.labels)?ot.labels.length:0,third_scenes:ot.third_scenes||[]};const gt=ot.recognition_image_url||ot.original_image_url;b.value=gt,gt&&await Je(gt);const Ke=ot.tag_type||rt(ot.labels);ke.tagType=Ke;const He=m.value?.third_scenes||[];R.value={},He.forEach((at,St)=>{R.value[St]=!0})}else{console.error("获取详情失败:",Be.message),At.error("获取记录详情失败"),m.value={scene_name:ke.tagType||"simple_supported_bridge",labels:ke.labels,total_detections:0,third_scenes:[]};const ot=ke.recognitionImageUrl||ke.originalImageUrl;b.value=ot,ot&&await Je(ot),R.value={}}N.value.forEach(ot=>{ot.isActive=ot.id===ke.id}),console.log("历史记录状态已更新")}catch(Be){console.error("处理历史记录失败:",Be),At.error("获取记录详情失败"),g.value=!1}finally{L.value=!1,j.value=!1}},ge=ke=>{try{console.log("selectScenario 被调用,场景:",ke),t.value=ke,g.value=!1,console.log("选择场景:",W[ke].name)}catch(ye){console.error("选择场景失败:",ye),g.value=!1}},_e=()=>{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}},Q=async ke=>{try{console.log("uploadFileToServer 被调用,文件:",ke),h.value=!0;const ye=new FormData;ye.append("image",ke),console.log("FormData 已创建:",ye),console.log("开始调用后端API...");const Be=await Bn.uploadImage(ye);if(console.log("后端API响应:",Be),Be.statusCode===200)r.value=Be.fileUrl||Be.fileURL,console.log("上传成功:",r.value),At.success("图片上传成功!");else throw new Error(Be.message||"上传失败")}catch(ye){console.error("上传失败:",ye),At.error("图片上传失败: "+(ye.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("识别正在进行中,忽略重复点击"),At.warning("识别正在进行中,请勿重复点击");return}if(!t.value){console.log("未选择场景"),At.warning("请先选择场景"),g.value=!1;return}if(!r.value){console.log("未上传图片"),At.warning("请先上传图片"),g.value=!1;return}try{console.log("检查最新识别记录是否已点评");const it=await Bn.getLatestRecognitionRecord({});if(it.statusCode===200&&it.data){const Mt=it.data;if(console.log("最新识别记录:",Mt),Mt.effect_evaluation===0||!Mt.effect_evaluation){At.warning("请先对上一次识别结果进行点评,再进行新的识别"),g.value=!1;return}}}catch(it){console.error("检查最新识别记录失败:",it)}console.log("开始识别:",{scenario:W[t.value].name,image:r.value}),y.value=!0;const ke="",ye="蜀道用户",Be=new Date,ot=Be.getFullYear(),gt=String(Be.getMonth()+1).padStart(2,"0"),Ke=String(Be.getDate()).padStart(2,"0"),He=`${ot}/${gt}/${Ke}`,at=ke.length>=4?ke.slice(-4):ke,St={scene_name:t.value,image:r.value,account:at,username:ye,date:He};console.log("发送隐患提示请求:",St);const tt=await Bn.hazardDetection(St);if(console.log("隐患提示响应:",tt),tt.code===200||tt.statusCode===200){if(At.success("隐患提示完成!"),m.value=tt.data,tt.data.annotated_image&&(b.value=`${tt.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 it=N.value[0];s.value=it,N.value.forEach(Mt=>{Mt.isActive=Mt.id===it.id}),console.log("自动选中最新记录:",it)}console.log("识别结果:",tt.data),console.log("标注图片URL:",b.value)}else At.error(tt.msg||"隐患提示失败")}catch(ke){console.error("开始识别失败:",ke),At.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 ye=await Bn.getThirdSceneExampleImage({third_scene_name:ke.description});if(console.log("获取示例图响应:",ye),ye.statusCode===200){const Be=ye.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)):(At.warning("暂无示例图"),console.log("没有找到示例图数据"))}else At.error("获取示例图失败: "+(ye.msg||"未知错误")),console.error("获取示例图失败:",ye.msg)}catch(ye){console.error("打开示例弹窗失败:",ye),At.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)}},ie=(ke,ye)=>{console.log(`图片加载失败 (${ye}):`,ke.target.src),ye==="correct"?(d.value.correctImageUrl="",f.value.correct=!1):ye==="error"&&(d.value.errorImageUrl="",f.value.error=!1)},ce=(ke,ye)=>{const Be=ke.target,ot=Be.naturalWidth/Be.naturalHeight;ot>1?(Be.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${ye}): 横图, 宽高比: ${ot.toFixed(2)}`)):(Be.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${ye}): 竖图, 宽高比: ${ot.toFixed(2)}`)),ye==="correct"?f.value.correct=!1:ye==="error"&&(f.value.error=!1),console.log(`图片加载完成 (${ye}):`,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(ye){console.error("打开图片预览失败:",ye)}},Ee=()=>{try{console.log("closeImagePreview 被调用"),w.value=!1,A.value="",console.log("图片预览已关闭")}catch(ke){console.error("关闭图片预览失败:",ke)}},Le=ke=>{try{console.log("主图片加载失败")}catch(ye){console.error("处理主图片错误失败:",ye)}},Fe=()=>{try{console.log("开始整个分析文本流式输出效果"),P.value=!1,M.value="",R.value={};const ke=m.value?.scene_name,ye=ke?W[ke]?.name:"未知场景",gt=(m.value?.labels||"").split("、").map(Mt=>`<span class="label-tag">${Mt}</span>`).join(""),Ke=`我识别到这是一个<span class="scene-tag">${ye}</span>场景,检测到的关键要素为${gt}`,He=[];let at=Ke,St=!1,tt="";for(let Mt=0;Mt<at.length;Mt++){const Gt=at[Mt];Gt==="<"?(tt&&!St&&(He.push(tt),tt=""),St=!0,tt+=Gt):Gt===">"?(tt+=Gt,He.push(tt),tt="",St=!1):St?tt+=Gt:He.push(Gt)}tt&&He.push(tt),P.value=!0;let Qe=0;const it=setInterval(()=>{Qe<He.length?(M.value+=He[Qe],Qe++):(clearInterval(it),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 ye=document.querySelector(".hazards-section");ye&&ye.scrollIntoView({behavior:"smooth",block:"start"})},100),ke.forEach((ye,Be)=>{setTimeout(()=>{R.value[Be]=!0,console.log(`显示第${Be+1}个隐患卡片`),setTimeout(()=>{const ot=document.querySelectorAll(".hazard-card");ot[Be]&&ot[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)}},ht=()=>{try{console.log("reselectImage 被调用"),Ne(),g.value=!1,_e(),console.log("重新选择图片完成")}catch(ke){console.error("重新选择图片失败:",ke)}},Rt=ke=>{try{console.log("handleDrop 被调用"),ke.preventDefault(),g.value=!1;const ye=ke.dataTransfer.files[0];console.log("拖拽的文件:",ye),ye?zt(ye):(console.log("没有拖拽文件"),g.value=!1)}catch(ye){console.error("拖拽处理失败:",ye),g.value=!1}},Lt=ke=>{try{console.log("handleDragOver 被调用"),ke.preventDefault(),g.value=!0,console.log("拖拽进入状态已设置")}catch(ye){console.error("拖拽进入处理失败:",ye),g.value=!1}},tn=ke=>{try{console.log("handleDragLeave 被调用"),ke.preventDefault(),g.value=!1,console.log("拖拽离开状态已设置")}catch(ye){console.error("拖拽离开处理失败:",ye),g.value=!1}},Wt=ke=>new Promise(ye=>{const Be=document.createElement("canvas"),ot=Be.getContext("2d"),gt=new Image;gt.onload=()=>{Be.width=gt.naturalWidth,Be.height=gt.naturalHeight,ot.drawImage(gt,0,0),Be.toBlob(Ke=>{const He=new File([Ke],ke.name,{type:ke.type,lastModified:ke.lastModified});ye(He)},ke.type)},gt.src=URL.createObjectURL(ke)}),zt=async ke=>{try{if(console.log("processFile 被调用,文件:",ke),ke.size>5*1024*1024){console.log("文件大小超过限制:",ke.size),At.error("文件大小不能超过5MB"),g.value=!1;return}const ye=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",ke.type),!ye.includes(ke.type)){console.log("不支持的文件类型:",ke.type),At.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 Q(Be)}catch(ye){console.error("处理文件失败:",ye),g.value=!1}},dt=async ke=>{try{console.log("handleFileUpload 被调用",ke);const ye=ke.target.files[0];console.log("选择的文件:",ye),ye?await zt(ye):console.log("没有选择文件")}catch(ye){console.error("文件上传处理失败:",ye),g.value=!1}},_t=async()=>{try{console.log("📋 开始获取隐患识别历史记录..."),H.value=!0;const ke=performance.now(),ye=await Bn.getHazardHistory({}),Be=performance.now();if(console.log(`📋 隐患识别历史记录API调用耗时: ${(Be-ke).toFixed(2)}ms`),console.log("📋 历史记录响应:",ye),ye.statusCode===200||ye.code===200){V.value=ye.total||0;const ot=ye.data||[];N.value=ot.map((gt,Ke)=>({id:gt.id||Ke,title:gt.title||"隐患提示记录",description:gt.description||"暂无描述",time:ut(gt.created_at),tagType:gt.tag_type,isActive:!1,originalImageUrl:gt.original_image_url,recognitionImageUrl:gt.recognition_image_url,labels:gt.labels||"",third_scenes:[],effect_evaluation:gt.effect_evaluation||0})),console.log(`✅ 隐患识别历史记录处理完成: ${N.value.length}条记录,总数: ${V.value}`)}else console.error("❌ 获取历史记录失败:",ye.message)}catch(ke){console.error("❌ 获取历史记录失败:",ke)}finally{H.value=!1}},ut=ke=>{if(!ke)return"未知时间";console.log("formatTime 被调用,原始时间戳:",ke,"类型:",typeof ke);let ye;if(typeof ke=="string")ye=new Date(ke);else{let tt=ke;ke.toString().length===10||ke.toString().length===11?tt=ke*1e3:ke.toString().length===13||(tt=ke*1e3),ye=new Date(tt)}console.log("转换后的日期:",ye);const Be=new Date,ot=new Date(Be.getFullYear(),Be.getMonth(),Be.getDate()),gt=new Date(ot.getTime()-1440*60*1e3);if(console.log("今天开始时间:",ot),console.log("昨天开始时间:",gt),console.log("记录时间:",ye),ye>=ot){const tt=ye.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("今天对话,返回:",tt),tt}if(ye>=gt&&ye<ot){const tt="昨天 "+ye.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("昨天对话,返回:",tt),tt}const Ke=ye.getMonth()+1,He=ye.getDate(),at=ye.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),St=`${Ke}月${He}日 ${at}`;return console.log("更早对话,返回:",St),St},rt=ke=>{if(!ke)return"gas_station";let ye="";return Array.isArray(ke)?ye=ke.join(" ").toLowerCase():ye=String(ke).toLowerCase(),ye.includes("隧道")?"tunnel":ye.includes("桥梁")?"simple_supported_bridge":ye.includes("加油站")?"gas_station":ye.includes("设备")?"special_equipment":ye.includes("高速")?"operate_highway":"simple_supported_bridge"},he=()=>{const ke=new Date,ye=ke.getMonth()+1,Be=ke.getDate(),ot=ke.getHours().toString().padStart(2,"0"),gt=ke.getMinutes().toString().padStart(2,"0");return`${ye}月${Be}日 ${ot}:${gt}`},Je=ke=>new Promise((ye,Be)=>{if(!ke){ye();return}const ot=new Image,gt=setTimeout(()=>{console.warn("图片加载超时:",ke),ye()},1e4);ot.onload=()=>{clearTimeout(gt),console.log("图片加载完成:",ke),ye()},ot.onerror=()=>{clearTimeout(gt),console.error("图片加载失败:",ke),ye()},ot.src=ke}),ct=()=>{try{console.log("打开点评弹窗"),G.value=!0,s.value?.effect_evaluation>0?Ot():Z.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(ke){console.error("打开点评弹窗失败:",ke)}},Ot=async()=>{try{console.log("加载点评数据");const ke=await Bn.getRecognitionRecordDetail({recognition_record_id:s.value.id});if(ke.statusCode===200||ke.code===200){const ye=ke.data;Z.value={sceneMatch:ye.scene_match===1,promptAccurate:ye.tip_accuracy===1,rating:ye.effect_evaluation||0,userRemark:ye.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:""}}},Tn=()=>{try{console.log("关闭点评弹窗"),G.value=!1}catch(ke){console.error("关闭点评弹窗失败:",ke)}},In=ke=>{const ye=ke.target.value;ye.length>200?Z.value.userRemark=ye.substring(0,200):Z.value.userRemark=ye},je=async()=>{try{if(console.log("提交评价:",Z.value),Z.value.sceneMatch===null||Z.value.promptAccurate===null||Z.value.rating===0){At.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){At.success("评价提交成功"),s.value&&(s.value.effect_evaluation=Z.value.rating);const ye=N.value.find(Be=>Be.id===s.value?.id);ye&&(ye.effect_evaluation=Z.value.rating),Tn()}else At.error("评价提交失败: "+(ke.msg||"未知错误"))}catch(ke){console.error("提交评价失败:",ke),At.error("评价提交失败,请稍后重试")}};return jn(()=>{_t()}),(ke,ye)=>(F(),K("div",hGt,[$e(VC),x("div",gGt,[x("div",{class:"history-header"},[ye[14]||(ye[14]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:JC,alt:"新建任务",class:"new-chat-btn",onClick:Me})]),x("div",vGt,[H.value&&V.value===0?(F(),K("div",mGt,ye[15]||(ye[15]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):V.value>0?(F(!0),K(Nt,{key:1},on(N.value,(Be,ot)=>(F(),K("div",{key:Be.id,class:oe(["history-item",{active:Be.isActive}]),onClick:gt=>Ae(Be)},[x("div",bGt,[x("div",wGt,[x("div",AGt,ze(Be.title),1),x("span",{class:oe(["history-tag",J(Be.tagType)])},ze(te(Be.tagType)),3)]),x("div",CGt,[x("span",xGt,ze(Be.time),1)]),x("div",SGt,[x("div",EGt,[x("img",{src:Be.originalImageUrl,alt:"隐患图标",class:"history-icon-img",onError:gt=>gt.target.src=Be.originalImageUrl},null,40,kGt)]),x("div",TGt,ze(Be.description),1)])]),x("div",{class:oe(["delete-btn",{"always-visible":Be.isActive}]),onClick:Qt(gt=>X(Be,ot),["stop"])},ye[16]||(ye[16]=[x("img",{src:wc,alt:"删除",class:"delete-icon"},null,-1)]),10,_Gt)],10,yGt))),128)):(F(),K("div",DGt,ye[17]||(ye[17]=[x("img",{src:e5,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",IGt,[ye[44]||(ye[44]=x("div",{class:"work-header"},[x("h2",null,"隐患提示")],-1)),x("div",OGt,[i.value==="main"?(F(),K("div",MGt,[x("div",{class:oe(["left-section",{transitioning:a.value}])},[x("div",PGt,[ye[26]||(ye[26]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null," 基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议 ")],-1)),x("div",NGt,[ye[18]||(ye[18]=x("h4",null,"步骤一:选择场景",-1)),ye[19]||(ye[19]=x("p",{class:"step-description"}," 请先选择您要识别的工程场景 ",-1)),x("div",RGt,[(F(),K(Nt,null,on(W,(Be,ot)=>x("div",{key:ot,class:oe(["scenario-tag",{active:t.value===ot,disabled:ot!=="gas_station"&&ot!=="simple_supported_bridge"&&ot!=="tunnel"&&ot!=="special_equipment"&&ot!=="operate_highway","identifying-disabled":y.value}]),onClick:gt=>!y.value&&(ot==="gas_station"||ot==="simple_supported_bridge"||ot==="tunnel"||ot==="special_equipment"||ot==="operate_highway")?ge(ot):null},ze(Be.name),11,BGt)),64))])]),x("div",LGt,[ye[25]||(ye[25]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:oe(["upload-area",{"drag-over":g.value}]),onClick:_e,onDrop:Rt,onDragover:Lt,onDragleave:tn},[r.value?(F(),K("div",FGt,[x("img",{src:r.value,alt:"已上传的图片",class:"uploaded-image"},null,8,UGt),x("div",zGt,[x("button",{class:"change-image-btn",onClick:Qt(ht,["stop"])}," 更换图片 ")])])):(F(),K("div",$Gt,[ye[20]||(ye[20]=x("img",{src:Ake,alt:"上传图标",class:"upload-icon"},null,-1)),ye[21]||(ye[21]=x("p",{class:"upload-text"},"点击上传图片",-1)),ye[22]||(ye[22]=x("p",{class:"upload-format"}," 支持JPG、PNG格式,单个文件不超过5MB ",-1)),x("button",{class:"select-file-btn",onClick:Qt(_e,["stop"])}," 选择图片文件 ")])),h.value?(F(),K("div",jGt,ye[23]||(ye[23]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),y.value?(F(),K("div",HGt,ye[24]||(ye[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:dt,style:{display:"none"}},null,544)],34)]),x("div",WGt,[x("button",{class:oe(["start-identify-btn",{"btn-disabled":y.value}]),onClick:be,disabled:y.value},[x("img",{src:r.value?C(Ske):C(xke),alt:"开始识别",class:"btn-bg"},null,8,qGt)],10,VGt)])])],2),x("div",{class:oe(["right-section",{"slide-out":a.value}])},ye[27]||(ye[27]=[ki('<div class="process-card" data-v-994f939a><h3 data-v-994f939a>使用流程</h3><div class="process-section" data-v-994f939a><div class="process-flow" data-v-994f939a><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+uGt+'" alt="步骤1" data-v-994f939a><div class="step-number" data-v-994f939a>1</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 上传图片 </div><div class="step-desc" data-v-994f939a> 选择包含安全隐患的图片 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+cGt+'" alt="步骤2" data-v-994f939a><div class="step-number" data-v-994f939a>2</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a>AI识别</div><div class="step-desc" data-v-994f939a> 智能识别场景要素 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+dGt+'" alt="步骤3" data-v-994f939a><div class="step-number" data-v-994f939a>3</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 隐患分析 </div><div class="step-desc" data-v-994f939a> 智能分析安全隐患 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+fGt+'" alt="步骤4" data-v-994f939a><div class="step-number" data-v-994f939a>4</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 查看隐患 </div><div class="step-desc" data-v-994f939a> 查看详细隐患结果 </div></div></div></div></div></div>',1)]),2)])):xe("",!0),i.value==="detail"?(F(),K("div",GGt,[x("div",KGt,[x("div",YGt,[ye[28]||(ye[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",QGt,[x("span",ZGt,ze(m.value?.scene_name?W[m.value.scene_name]?.name:"隐患提示结果"),1)])]),x("div",XGt,[x("div",JGt,ze(s.value?.time||he()),1)])]),x("div",eKt,[L.value||j.value?(F(),K("div",tKt,[ye[29]||(ye[29]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,ze(L.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",nKt,[x("div",{class:"evaluation-status",onClick:ct},[x("span",{class:oe(["status-badge",s.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},ze(s.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",rKt,[x("img",{src:S.value?r.value:b.value,alt:S.value?"用户上传图片":"隐患提示图片",class:"main-image",onClick:ye[0]||(ye[0]=Be=>Re()),style:{cursor:"pointer",transform:"none !important"},onError:Le},null,40,oKt),S.value?(F(),K("div",iKt,ye[30]||(ye[30]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0)])]),x("div",aKt,[x("div",sKt,[ye[32]||(ye[32]=x("div",{class:"robot-avatar"},[x("img",{src:pGt,alt:"蜀安AI助手",class:"robot-img"})],-1)),x("div",lKt,[_.value?(F(),K("div",uKt,ye[31]||(ye[31]=[ki('<div class="typing-indicator" data-v-994f939a><span class="dot" data-v-994f939a></span><span class="dot" data-v-994f939a></span><span class="dot" data-v-994f939a></span></div><span class="prompt-text" data-v-994f939a>蜀安AI助手正在为您智能分析图片,请稍候…</span>',2)]))):(F(),K("h3",cKt," 蜀道安全管理AI智能助手慧眼识图分析出以下结果 "))])]),_.value?xe("",!0):(F(),K("div",dKt,[x("div",fKt,[P.value?(F(),K("span",{key:0,innerHTML:M.value,class:"streaming-text"},null,8,pKt)):!P.value&&m.value?(F(),K("span",hKt,[ye[33]||(ye[33]=An(" 我识别到这是一个",-1)),x("span",gKt,ze(m.value?.scene_name?W[m.value.scene_name]?.name:"未知场景"),1),ye[34]||(ye[34]=An("场景,检测到的关键要素为",-1)),(F(!0),K(Nt,null,on(m.value.labels?.split("、")||[],(Be,ot)=>(F(),K("span",{key:ot,class:"label-tag"},ze(Be),1))),128))])):xe("",!0)]),!P.value&&m.value?(F(),K("p",vKt," 根据安全规范和施工标准,我为您梳理出以下需要重点关注的安全隐患 ")):xe("",!0),_.value?xe("",!0):(F(),K("div",mKt,[x("div",{class:oe(["hazards-content",{"scanning-mode":S.value}])},[S.value?(F(),K("div",yKt,ye[35]||(ye[35]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(F(),K("div",bKt,[(F(!0),K(Nt,null,on(m.value?.third_scenes||[],(Be,ot)=>(F(),K("div",{key:ot,class:oe(["hazard-card",{show:R.value[ot]}])},[x("div",wKt,ze(ot+1),1),x("div",AKt,[x("p",CKt,ze(Be),1),x("a",{href:"javascript:void(0);",class:"example-link",onClick:Qt(gt=>De({number:ot+1,description:Be}),["prevent"])}," 示例 ",8,xKt)])],2))),128))]))],2)]))]))])]),(F(),mt(QB,{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,SKt)])):xe("",!0)])),l.value?(F(),K("div",{key:0,class:"modal-backdrop",onClick:pe},[x("div",{class:"example-comparison-modal",onClick:ye[7]||(ye[7]=Qt(()=>{},["stop"]))},[x("div",EKt,[x("div",kKt,[x("div",TKt,[x("span",_Kt,ze(u.value?.number),1),x("span",DKt,ze(u.value?.description),1)])]),x("button",{class:"close-button",onClick:pe},ye[36]||(ye[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",IKt,[c.value?(F(),K("div",OKt,ye[37]||(ye[37]=[x("div",{class:"spinner"},null,-1),x("p",null,"正在加载示例图片...",-1)]))):(F(),K("div",MKt,[x("div",PKt,[ye[40]||(ye[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"})]),An(" 正确示例 ")])],-1)),x("div",NKt,[f.value.correct?(F(),K("div",RKt,ye[38]||(ye[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:ye[1]||(ye[1]=Be=>ie(Be,"correct")),onLoad:ye[2]||(ye[2]=Be=>ce(Be,"correct")),onClick:ye[3]||(ye[3]=Be=>Re(d.value.correctImageUrl))},null,40,BKt)):(F(),K("div",LKt,ye[39]||(ye[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,[ye[43]||(ye[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"})]),An(" 错误示例 ")])],-1)),x("div",UKt,[f.value.error?(F(),K("div",zKt,ye[41]||(ye[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:ye[4]||(ye[4]=Be=>ie(Be,"error")),onLoad:ye[5]||(ye[5]=Be=>ce(Be,"error")),onClick:ye[6]||(ye[6]=Be=>Re(d.value.errorImageUrl))},null,40,$Kt)):(F(),K("div",jKt,ye[42]||(ye[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(QB,{to:"body"},[G.value?(F(),K("div",{key:0,class:"evaluation-modal-overlay",onClick:Tn},[x("div",{class:"evaluation-modal",onClick:ye[13]||(ye[13]=Qt(()=>{},["stop"]))},[x("div",{class:"modal-header"},[ye[45]||(ye[45]=x("span",{class:"modal-title"},"点评确认",-1)),x("img",{src:Sj,alt:"关闭",class:"close-icon",onClick:Tn})]),x("div",HKt,[x("div",WKt,[ye[46]||(ye[46]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",VKt,[x("button",{class:oe(["answer-btn",{active:Z.value.sceneMatch===!0,disabled:s.value?.effect_evaluation>0}]),onClick:ye[8]||(ye[8]=Be=>s.value?.effect_evaluation>0?null:Z.value.sceneMatch=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Z.value.sceneMatch===!1,disabled:s.value?.effect_evaluation>0}]),onClick:ye[9]||(ye[9]=Be=>s.value?.effect_evaluation>0?null:Z.value.sceneMatch=!1)}," 否 ",2)])]),x("div",qKt,[ye[47]||(ye[47]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",GKt,[x("button",{class:oe(["answer-btn",{active:Z.value.promptAccurate===!0,disabled:s.value?.effect_evaluation>0}]),onClick:ye[10]||(ye[10]=Be=>s.value?.effect_evaluation>0?null:Z.value.promptAccurate=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Z.value.promptAccurate===!1,disabled:s.value?.effect_evaluation>0}]),onClick:ye[11]||(ye[11]=Be=>s.value?.effect_evaluation>0?null:Z.value.promptAccurate=!1)}," 否 ",2)])]),x("div",KKt,[ye[48]||(ye[48]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",YKt,[(F(),K(Nt,null,on(5,Be=>x("span",{key:Be,class:oe(["star",{active:Be<=Z.value.rating,disabled:s.value?.effect_evaluation>0}]),onClick:ot=>s.value?.effect_evaluation>0?null:Z.value.rating=Be}," ★ ",10,QKt)),64))])]),U.value?(F(),K("div",ZKt,[ye[49]||(ye[49]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",XKt,[an(x("textarea",{"onUpdate:modelValue":ye[12]||(ye[12]=Be=>Z.value.userRemark=Be),disabled:s.value?.effect_evaluation>0,placeholder:"请输入您的意见和建议(最多200字)",class:"remark-textarea",maxlength:"200",onInput:In},null,40,JKt),[[jr,Z.value.userRemark]]),x("div",eYt,[x("span",{class:oe({"over-limit":Z.value.userRemark.length>200})},ze(Z.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!s.value?.effect_evaluation||s.value.effect_evaluation===0?(F(),K("div",tYt,[x("button",{class:"submit-btn",onClick:je},ye[50]||(ye[50]=[x("img",{src:Cke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)])),$e(c0,{visible:p.value,title:"删除历史记录",message:z.value,onConfirm:ue,onCancel:me,onClose:me},null,8,["visible","message"])]))}},rYt=Yo(nYt,[["__scopeId","data-v-994f939a"]]),oYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE+SURBVFiF7ZdNUsIwGIafLxatO47QizADN/AIeAPdKStc+LOTG8ANxBPITC/gEThCdyLYxFX8YUqh/2UmzzKdpM98mSTfCw6Hw9F+erefF/2x6Vaxtiq6QG+0HoqSF73ZvFUhKUUm90broQjTP0PvqtMZLMYSFfT6IXcFE+QAuqxWpVYxVwV3yC1VHA8WT+fL4lq/ZBasUw4yCtYtBxkEm5CDAwWbkoMDBJuUgz2CTctBiqCVM+jrk9jMAfC8QGu9LVzQQCKjzV34eDZP+uylyYFMwnt/AtC/+Qi0MVNEglIFAVHyDCQKpr4kQjUNQAI7/7N3ixGu1Ff8CjSyxcd7SCxNSx7/RW1p9VNnaXWzYGl1u2VpdcNqqUsydyYJH05nxnC5NRzh+6UFJiiY6uBfJUtPdKVRZXB3OByOivkGXifOFMpxESoAAAAASUVORK5CYII=",Eke="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==",kke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFlSURBVEiJ3ZUxUsJQFEXPD2KNMzAOHQUwlC4BluAOwoSeJZjsAHoQdsAScBmMUKSjiEVqIXkWUUBIyANt9FV/Mv/e85N33w/89TLHD+q9oG2EJ+ABKKVoQpF4uHq+dy8GNHuBK4m5RjpdjstdNeDz5HMAY/DetzcDf3oXHguSfWYCUtNArN1KTB9AJPZeRxU3zRxgNaq8FKJNB4wPYject4kKYJA2wDa+HQDUnWBWd4JZmmgxrfpaiHWwLgFknfxayK4HDScQgOW4cpKsc9Wy17WoUJxn9cTK0Kkr701+DEiDNHuB+6uALwhW/AggQj8NEELyTa+FiJiTyd/H1DAEiArF+TWQlr2uJQMIIvFw53u4KWmQ2GD8QrTpLKZVX2uelaSTSF4KyYtpaua1kDzzTIAGojE/CzgH0ZrnAo4hYqRrjITE1kx7XavunT3km1T1w1FN8nJc7orEHskwhsbgacz/R30A7ZrwEHLpuasAAAAASUVORK5CYII=",Tke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGBSURBVFiF7Zc9TsMwFIC/OBVi7MiYIyAxsLY3CCMjW6EMaTgAjwu0QUJVtx6hZWNrRwYOkSNkLo3NEqGqOG3+pAroN9pP9ufnJ//Af8fJ6+gF4rUUIwMdoJ0TlgDzVPM0iSRuTKAXiOcqFoBXcJw41XSrSFgF7kOZGfANzE80N1EkiS2uH4qpK6FsjVna0ZpB3uRbxIDnKha9QLzaAmR7XnQ1qaZbVSJPoBSTSOKqEo0I1JFoTKCqRKMCVSTqCiQAtw/i75MIArEeZq06szvwbOBRGWb9UHaFeivFFLja7qiVgZehiIEnskzswsnOlm1qZQBgPBQBZFdMdmJat6DxIizLwQUKb8FdKDMH/P2RYGA+HsqPgrPxezJQdEVlOXgGDi5wLMJjEeYJJAB5V2gZNt4C1gvLKuDAEmClmJZ95W4SBNJWitHmmNtYa2CtGbiKcwd8V+Hvuetz+eT74xGvNQNbjGtr/HhfJheXnVfXwQPOgNNKBpA48JZqrqt+3f4+X/QCoAn6Ho4MAAAAAElFTkSuQmCC",_ke="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=",iYt="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==",Dke="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",Ike="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=",aYt={class:"policy-container"},sYt={class:"main-content"},lYt={class:"search-section"},uYt={class:"search-box"},cYt={class:"category-tabs"},dYt={key:0,class:"loading"},fYt={key:1,class:"no-data"},pYt={class:"doc-icon"},hYt=["src","alt"],gYt={class:"doc-content"},vYt={class:"doc-header"},mYt={class:"doc-title"},yYt={class:"doc-date"},bYt={class:"doc-tags"},wYt={class:"doc-description"},AYt={class:"doc-footer"},CYt={class:"doc-info"},xYt={class:"info-item"},SYt={class:"info-item"},EYt={class:"doc-actions"},kYt=["onClick"],TYt=["onClick"],_Yt={key:2,class:"load-more"},DYt={__name:"PolicyDocument",setup(e){const t=Hl(),n=Y(""),r=Y(0),o=Y([]),i=Y(!1),a=Y(1),s=Y(10),l=Y(!0),u=Y(null);let d=null;const c=()=>{t.push("/")},f=I=>{r.value=I,a.value=1,o.value=[],l.value=!0,p()},p=async(I=!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 M=await Bn.getPolicyFile(P);if(console.log("API响应:",M),M&&M.data){const _=M.data;I?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 I=>{if(console.log("查看政策文件:",I),console.log("文件ID:",I.id,"文件所有字段:",Object.keys(I)),!I.policy_file_url){alert("文件链接不存在");return}if(!I.id)console.error("政策文件ID不存在,跳过次数更新");else{I.view_count=(I.view_count||0)+1;try{await Bn.updatePolicyFileCount({policy_file_id:I.id,action_type:1}),console.log("查看次数更新成功")}catch(M){console.error("更新查看次数失败:",M),I.view_count=(I.view_count||1)-1}}const P=I.file_type;if(P===0)window.open(I.policy_file_url,"_blank");else if(P===1||P===2){const _=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(I.policy_file_url)}`;window.open(_,"_blank")}else window.open(I.policy_file_url,"_blank")},y=async I=>{if(console.log("下载政策文件:",I),console.log("文件ID:",I.id,"文件所有字段:",Object.keys(I)),!I.policy_file_url){alert("文件链接不存在");return}if(!I.id)console.error("政策文件ID不存在,跳过次数更新");else try{await Bn.updatePolicyFileCount({policy_file_id:I.id,action_type:2}),console.log("下载次数更新成功")}catch(_){console.error("更新下载次数失败:",_)}let P=I.policy_name||"政策文件";const M=I.file_type;M===0?P+=".pdf":M===1?P+=".docx":M===2?P+=".xlsx":M===3?P+=".pptx":M===4&&(P+=".txt"),M===0?(console.log("PDF下载URL:",I.policy_file_url),m(I.policy_file_url,P)):(console.log("其他文件类型下载URL111111:",I.policy_file_url),window.open(I.policy_file_url,"_blank"))},m=(I,P)=>{const M=`/apiv1/download_file?pdf_oss_download_link=${encodeURIComponent(I)}&file_name=${encodeURIComponent(P)}`,_=document.createElement("a");_.href=M,_.download=P||"download_file",_.style.display="none",document.body.appendChild(_),_.click(),document.body.removeChild(_)},b=I=>({0:yd,1:Dke,2:Ike,3:yd,4:yd,5:yd})[I]||yd,w=I=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[I]||"文件",A=I=>{if(console.log("原始标签字符串:",I),!I)return["政策文件"];const P=I.split(",").map(M=>M.trim()).filter(M=>M.length>0);return console.log("拆分后的标签数组:",P),P},S=I=>{if(!I)return"";const P=new Date(I*1e3),M=P.getFullYear(),_=String(P.getMonth()+1).padStart(2,"0"),R=String(P.getDate()).padStart(2,"0");return`${M}-${_}-${R}`};let k=null;const O=I=>{k&&clearTimeout(k),k=setTimeout(()=>{const P=I.target,M=P.scrollTop,_=P.scrollHeight,R=P.clientHeight;M+R>=_-50&&l.value&&!i.value&&(a.value++,p(!0))},100)};return jn(()=>{p()}),hl(()=>{k&&clearTimeout(k),d&&clearTimeout(d)}),(I,P)=>(F(),K("div",aYt,[x("div",{class:"header"},[x("div",{class:"header-left"},[x("div",{class:"logo-section",onClick:c},P[6]||(P[6]=[x("img",{src:Qj,alt:"logo",class:"logo-img"},null,-1)]))])]),x("div",sYt,[x("div",{class:"page-header"},[x("div",{class:"back-button1",onClick:c},P[7]||(P[7]=[x("img",{src:oYt,alt:"返回",class:"back-icon"},null,-1),x("span",{class:"back-text"},"返回首页",-1)])),P[8]||(P[8]=x("h1",{class:"page-title"},"政策文件",-1))]),x("div",lYt,[x("div",uYt,[P[9]||(P[9]=x("div",{class:"search-icon-left"},[x("img",{src:Eke,alt:"搜索",class:"search-icon"})],-1)),an(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":P[0]||(P[0]=M=>n.value=M),maxlength:"100",onInput:v,onKeyup:Lr(h,["enter"])},null,544),[[jr,n.value]])])]),x("div",cYt,[x("button",{class:oe(["tab-btn",{active:r.value===0}]),onClick:P[1]||(P[1]=M=>f(0))}," 全部政策 ",2),x("button",{class:oe(["tab-btn",{active:r.value===1}]),onClick:P[2]||(P[2]=M=>f(1))}," 国家法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===2}]),onClick:P[3]||(P[3]=M=>f(2))}," 行业法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===3}]),onClick:P[4]||(P[4]=M=>f(3))}," 地方法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===4}]),onClick:P[5]||(P[5]=M=>f(4))}," 内部条例 ",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:O},[i.value?(F(),K("div",dYt,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",fYt,P[11]||(P[11]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(F(!0),K(Nt,null,on(o.value,(M,_)=>(F(),K("div",{key:M.id||_,class:"document-item"},[x("div",pYt,[x("img",{src:b(M.file_type),alt:w(M.file_type),class:"file-icon"},null,8,hYt)]),x("div",gYt,[x("div",vYt,[x("h3",mYt,ze(M.policy_name),1),x("span",yYt,ze(S(M.publish_time)),1)]),x("div",bYt,[(F(!0),K(Nt,null,on(A(M.file_tag),(R,N)=>(F(),K("span",{key:N,class:"tag tag-blue"},[P[12]||(P[12]=x("img",{src:kke,alt:"标签图标",class:"tag-icon"},null,-1)),An(" "+ze(R),1)]))),128))]),x("p",wYt,ze(M.policy_content),1),x("div",AYt,[x("div",CYt,[x("span",xYt,[P[13]||(P[13]=x("img",{src:Tke,alt:"部门",class:"info-icon"},null,-1)),An(" "+ze(M.policy_department),1)]),x("span",SYt,[P[14]||(P[14]=x("img",{src:_ke,alt:"次数",class:"info-icon"},null,-1)),An(" "+ze(M.view_count)+" 次查看 ",1)])]),x("div",EYt,[x("button",{class:"action-btn view-btn",onClick:R=>g(M)},"查看详情 >",8,kYt),x("button",{class:"action-btn download-btn",onClick:R=>y(M)},P[15]||(P[15]=[x("img",{src:iYt,alt:"",class:"action-icon"},null,-1)]),8,TYt)])])])]))),128)),l.value&&!i.value?(F(),K("div",_Yt,P[16]||(P[16]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)])]))}},IYt=Yo(DYt,[["__scopeId","data-v-4a9ae471"]]),w_="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=",A_="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==",C_="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=",x_="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=",S_="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",Oke="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",Q8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABsSURBVFiF7ZaxDYAwDAQPxICwRtJ5Ak9AyRphw7AAVB8pBX/ty6+TJUsGY4xAiWwlsikdmzK8wK7MA6xqgQUsYAGV5SsokW3EnQN0uK8zj7ds+gYkamSvkV3pmL4BC1jAAtJH1OEeJWLMf3kAZQ4Q9oMTMAMAAAAASUVORK5CYII=",OYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG/SURBVFiF7ZjNUcJAFMf/bxMUTqYDtQJpACYdCB3QgXATOBAOftywA7UDrIDMUADaQewgNz427PMCMZjoGJePOJPfKftm9+WXZHfnbYCMQ38ZVO3IHhPb67YAPCoUWq5D/tbMVphpB1Q60waIneiTMQCWgQ+gtTWzFSLtAIJ5mhRncFlfJ05qwX2TC+qSepFsC9thaynnDWLjZB0TKnh270tetN/BBHkRPBKJGojDmDKMpu3weXS7OtgnZuJaQtjCbLaxG2R+DuaCuuSCumRecCf7oO2wpWTQ2ywg1Mv4pviQNtdOBFnKAYDGZrEp7Ep77o3vjodpcu3kEyvgLClOJC7S5sr8HMwFdcm8YOIqtjuLMtTSAgAIw3dvj173ahUh9gar3cVEESbKMEbKMEaKMKl25r1DyAFfBO3rqQ0gfjojau7JJ8Zv56C1U4sfyPwiyQV1yQV1yQV1yQV1+WeCxWJy1cLsfV6qt28ShX0IlJiHEbxHmt9VSF60sVFuuQ75lfa8DkFX4Y2ZfAn01+3x3fGw0p21AHEZFaKCGfYRBbPPUlrRswkxuePb0lPYZ7msszAHitha30exiv1+yzwfMl2JtiuFJpYAAAAASUVORK5CYII=",MYt="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=",Ej="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=",kj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC6SURBVFiF7djRDYIwFIXhU+MAjKAbOQIjyASOops4giPoBrjB7wOJCeHWRFNSMOd7Jb38oSGkSGZmI0ADNLU7QsCRQQ+0tXsmgDtjbe2mEeDKVFu76w3YBU/RkV9zZCmOLOWvI7cfBh4knSSV/K5Gs86AUkqXaEHKTQL6zMA5PFJK++jC5sOi50wxkeyDyG6xpE7zbHE0ryt4j98s+k12nOMc57hCWMGh6bbYOGkFB3dp+PVRu8HMluQF4pAvLRUftNIAAAAASUVORK5CYII=",PYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC7SURBVCiRlZOxEYJAEEXfxwZkxtQZQsyMHMqADrAEK6EELceQ0FBmNCO4ClgzFLzTY8O992Z/8E/8mWx3KA01YGvBUT/hvKhNdv5Y3VcLYMDwXvDDINN3pF/w/Xa9aAkMvCPFwKMQCwNoCQyQmIYmFgZIQM73EJpE2Gm+NNk5y4vaJ6xc/7ylm22HKKe5KNPNtnP9o50IAK5/tLHS2KVYaVK+GGlZ+bDKW+/gJVQE/0NAckFhJu0BJw3VC5tche+mQCWHAAAAAElFTkSuQmCC",NYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADKSURBVCiRlZO9DcJADEbfd9fQESSoEFLKjJCSEWADGIFJGAE2oaVMmTKRQpciE2AKBOIv4c6VdX5PZ8uy0ixfmuwAlsjcrirPRwbCj2fzE5CCRojVZLqou7Yp+gT3+WCyQ5rlm15B2C5G8l17KSfTRY1YvVV62vMAXdsUoZJ/JKGSf62FSPo1WJrlm/tu+PBs7X8JvT+h/GsPw2FJXEum7ZcwBFfl+agYGEAx8FMIhQEUAwM403UfCgM4UBcKAziZtkAFVMLW/070Bikai/hqOiXCAAAAAElFTkSuQmCC",RYt="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",BYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGpSURBVFiF7ZjdTcMwFIU/I97pCGYD2KDdoBs0TECZpGKCdgQ2gA3oBg0TNBscHmKrVvElPy5QpJ6XSPbxzee/aydw0S9I0krS8q85AJDkddCkNN7VKaASnR1QsS5AXboAdensgK6/q5TkgUfgLilugCfnXN2j7YpDKmiAGnjuamsFnEraK69l4ksTo0/K50bbvaS59V5nwEyAd8CHXm2S6g/gxTnXRCBgF+puY+9DjAq4CXUTYJ7EvI8xOhVG50uvDW92hHp4pzmPtahj4HrUfBsKsWI8n/Oc3S77/0BhHVQ9fPOuNZXTt3koBwO8Al4SzrmN4auANVBLmg1Zh4OAaJNb3KprSQBvBsyxv5cGTVnIGzNgG6GARWJZJDBbYNY71wQNHSGcc42kGe3U3dEmv02orkpgRgFloLxz7gFA0q4EZjTQMZSkFe2R0pTAFAEdQ4WiIphioCMoSmFOAnQqkKj/f3T8tCygOjz9mPPIUogV49U5j7WGtqGBp93WLww8AgxVCczWtmUUTmvrTl2ivXVbBONOnUB52q8Ozwl+JNCOyrivjouCPgF+eH/69chi4gAAAABJRU5ErkJggg==",LYt="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==",eh="/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",uS="/assets/template7-slide-1-CLk_px9N.png",PB="/assets/template7-slide-2-1G8DmFfM.png",NB="/assets/template7-slide-3-CnzGmsln.png",RB="/assets/template7-slide-4-CF9sxqur.png",BB="/assets/template7-slide-5-D3Atk3Z8.png",LB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADEALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",FB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADIALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",UB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADMALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",zB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADQALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",$B="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADUALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",h0e=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}]}}}]'),b1=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}]}}}]'),FYt=[{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"}],_3={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%)"}}},jB={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 UYt(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 g0e(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 w1(e,t){const n=_3[t]||_3.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 zYt(e,t,n="default"){const r=[];r.push(w1(jB.cover,n));const o=e.length;return r.push(w1(UYt(o),n)),e.forEach((i,a)=>{r.push(w1(jB.transition,n)),i.sections&&i.sections.length>0?i.sections.forEach((s,l)=>{const u=s.subsections?s.subsections.length:1;r.push(w1(g0e(Math.min(u,6)),n))}):r.push(w1(g0e(2),n))}),r.push(w1(jB.end,n)),r}function Mke(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 $Yt(){return Object.keys(_3).map(e=>({id:e,name:_3[e].name,colors:_3[e].colors}))}function Pke(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 Nke(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 Rke(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 jYt(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 HYt(e,t,n="default"){try{const r=Pke(e);console.log("大纲数据标准化完成:",r);const o=Mke(r);if(!o.isValid)throw new Error(`大纲数据验证失败: ${o.errors.join(", ")}`);o.warnings.length>0&&console.warn("大纲数据警告:",o.warnings);const i=Nke(r);console.log("大纲结构分析完成:",i);const a=Rke(i);console.log("模板配置选择完成:",a);const s=jYt(r,t,a);console.log("PPT幻灯片生成完成:",s);const l=zYt(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 v0e(e,t){try{const n=Pke(e),r=Mke(n),o=Nke(n),i=Rke(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 WYt="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=",VYt="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=",qYt="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=",GYt={class:"chat-container"},KYt={class:"history-header"},YYt={class:"history-list"},QYt={key:0,class:"history-loading"},ZYt=["onClick"],XYt={class:"history-icon"},JYt=["src"],eQt={class:"history-content"},tQt={class:"history-title"},nQt={class:"history-meta"},rQt={class:"history-time"},oQt=["onClick"],iQt={key:2,class:"empty-history"},aQt={class:"main-work"},sQt={class:"work-content"},lQt={key:0,class:"step1-content"},uQt={key:0,class:"initial-content"},cQt={class:"function-cards"},dQt=["onClick"],fQt={class:"card-header"},pQt={class:"card-icon"},hQt=["src","alt"],gQt={class:"card-description"},vQt={key:1,class:"chat-content"},mQt={class:"chat-messages"},yQt={key:0,class:"user-message"},bQt={class:"message-content"},wQt={key:0,class:"message-file"},AQt={class:"file-display"},CQt={class:"file-icon"},xQt=["src"],SQt={key:1},EQt={class:"file-details"},kQt={class:"file-name"},TQt={class:"file-size"},_Qt={key:1,class:"message-text"},DQt={class:"message-actions"},IQt=["onClick"],OQt={key:1,class:"ai-message"},MQt=["data-message-index"],PQt={class:"ai-text"},NQt={key:0,class:"typing-indicator"},RQt=["innerHTML"],BQt={key:1,class:"step2-content"},LQt={key:0,class:"loading-overlay"},FQt={class:"outline-container"},UQt={class:"outline-main"},zQt={class:"outline-header"},$Qt={class:"outline-title-container"},jQt={key:1,class:"edit-input-container"},HQt=["onKeydown"],WQt={class:"outline-actions"},VQt=["disabled"],qQt=["disabled"],GQt=["disabled"],KQt={key:0,class:"generating-overlay"},YQt={key:1,class:"generating-overlay"},QQt={key:2,class:"outline-content-scrollable"},ZQt=["onDragstart","onDragover","onDrop"],XQt={class:"chapter-header"},JQt=["onClick"],eZt={key:1,class:"edit-input-container"},tZt={class:"edit-input-wrapper"},nZt=["onKeydown"],rZt={class:"edit-options-inline"},oZt=["onClick"],iZt=["onClick"],aZt={class:"outline-section"},sZt={key:0,class:"section-container"},lZt={class:"section-header"},uZt=["onClick"],cZt={key:1,class:"edit-input-container"},dZt={class:"edit-input-wrapper"},fZt=["onKeydown"],pZt={class:"edit-options-inline"},hZt=["onClick"],gZt=["onClick"],vZt={key:0,class:"section-subsection"},mZt={key:0,class:"subsection-container"},yZt={class:"subsection-header"},bZt=["onClick"],wZt={key:1,class:"edit-input-container"},AZt={class:"edit-input-wrapper"},CZt=["onKeydown"],xZt={class:"edit-options-inline"},SZt=["onClick"],EZt={key:0,class:"subsubsection-container"},kZt={class:"subsubsection-header"},TZt=["onClick"],_Zt={key:1,class:"edit-input-container"},DZt={class:"edit-input-wrapper"},IZt=["onKeydown"],OZt={key:0,class:"add-chapter-container"},MZt={key:3},PZt={class:"outline-sidebar"},NZt={class:"sidebar-section"},RZt={class:"section-content"},BZt={class:"stat-item"},LZt={class:"stat-value"},FZt={class:"stat-item"},UZt={class:"stat-value"},zZt={class:"stat-item"},$Zt={class:"stat-value"},jZt={class:"stat-item"},HZt={class:"stat-value"},WZt={class:"sidebar-section"},VZt={class:"section-content"},qZt={class:"evaluation-buttons"},GZt=["disabled"],KZt=["disabled"],YZt={class:"sidebar-actions"},QZt=["disabled"],ZZt=["disabled"],XZt={key:0,class:"loading-overlay"},JZt={class:"template-container"},eXt={key:0,class:"applying-overlay"},tXt={class:"template-preview"},nXt={class:"preview-container"},rXt={class:"preview-header"},oXt={class:"save-status"},iXt={class:"main-carousel"},aXt={key:0},sXt={class:"main-slide"},lXt={key:0,class:"ai-generated-slide"},uXt=["innerHTML"],cXt=["src","alt"],dXt=["src","alt"],fXt={key:1,class:"ppt-editor-workspace"},pXt={class:"editor-canvas"},hXt={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"}},gXt=["onClick","onDblclick","onMousedown"],vXt=["onMousedown"],mXt=["onMousedown"],yXt=["onMousedown"],bXt=["onMousedown"],wXt=["onMousedown"],AXt=["src","alt","onClick"],CXt=["innerHTML","onBlur"],xXt=["innerHTML"],SXt={key:1,class:"edit-mode"},EXt={class:"slide-editor"},kXt={class:"slide-title"},TXt={class:"slide-body"},_Xt={class:"thumbnail-nav"},DXt={key:0},IXt={class:"slide-counter"},OXt={class:"progress-dots"},MXt=["onClick"],PXt=["onClick"],NXt=["src","alt"],RXt={class:"thumbnail-number"},BXt={key:1},LXt={class:"slide-counter"},FXt={class:"progress-dots"},UXt=["onClick"],zXt=["onClick"],$Xt={class:"thumbnail-content"},jXt=["innerHTML"],HXt=["src","alt"],WXt={class:"thumbnail-number"},VXt={class:"template-sidebar"},qXt={class:"sidebar-title"},GXt={class:"template-list"},KXt=["onClick"],YXt={class:"template-thumbnail"},QXt=["src","alt"],ZXt={class:"template-info"},XXt={class:"template-title"},JXt={class:"template-meta"},eJt={class:"update-time"},tJt={class:"page-count"},nJt={key:0,class:"template-description"},rJt={key:0,class:"applying-overlay"},oJt={key:0,class:"applying-overlay"},iJt={key:1,class:"applying-overlay"},aJt={class:"download-options"},sJt=["onClick"],lJt={class:"option-icon"},uJt=["src","alt"],cJt={class:"option-info"},dJt={class:"option-title"},fJt={class:"option-description"},pJt={key:0,class:"option-check"},hJt={class:"download-actions"},gJt=["disabled"],vJt={key:1,class:"preview-actions"},mJt=["disabled"],yJt={key:0},bJt={key:1},wJt={key:0,class:"recommended-questions"},AJt=["onClick"],CJt=["src"],xJt={key:1,class:"chat-input-section"},SJt={class:"input-container"},EJt={key:0,class:"file-preview-section"},kJt={class:"file-preview"},TJt={class:"file-icon"},_Jt=["src"],DJt={key:1},IJt={class:"file-info"},OJt={class:"file-name"},MJt={class:"file-size"},PJt={class:"input-box"},NJt=["disabled"],RJt=["disabled"],BJt=["disabled"],LJt={class:"icon-container"},FJt={key:0,class:"recording-indicator"},UJt=["disabled"],zJt=["src"],$Jt={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"}},jJt={class:"wps-modal-header",style:{display:"flex","justify-content":"space-between","align-items":"center",padding:"16px 24px",background:"#f8f9fa","border-bottom":"1px solid #e9ecef"}},HJt={class:"wps-modal-content",style:{display:"flex","flex-direction":"column",flex:"1","min-height":"0"}},WJt={class:"wps-iframe-container",style:{flex:"1","min-height":"0",position:"relative"}},VJt=["src"],qJt={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"}},GJt={__name:"SafetyHazard",setup(e){Hl();const t=Y(""),n=Y(null),r=Y(0),o=Y(null),i=Y(null),a=Y(!1),s=Y(!1),l=Y(!1),u=Y(null),d=Y("step1");Y(!1);const c=Y(""),f=Y(null),p=Y(null),v=Y(null),h=Y(!1),g=Y(!1),y=Y(!1),m=Y(!1),b=Y(!1),w=Y(!1),A=Y([]),S=Y([]),k=Y(!1),O=Y([]),I=Y(!1),P=Y(!1),M=Y(!1),_=Y("https://aippt.wps.cn/aippt/");Y(!0),Y([]),Y(null);const R=Y(null),N=Y(!1);Y(!1);const V=Y(null),L=Y(!1);Y("");const j=Ur({maxSize:20*1024*1024,allowedTypes:[".docx"]});Ur({OssAccessKeyId:"",policy:"",Signature:"",host:"",dir:"",key:""});const{isListening:H,transcript:G,error:Z,startListening:z,stopListening:U}=T0();Y(null);const W=ee(()=>O.value.some(de=>de.type==="ai"&&de.isTyping)),re=ee(()=>`确定要删除历史记录"${u.value?.item?.title||""}"吗?删除后将无法恢复。`),J=Y(null),te=Y({}),X=Y(""),ue=de=>{if(!de||!Array.isArray(de))return{totalChapters:0,totalSections:0,estimatedPages:"0页",estimatedTime:"0分钟"};const se=de.length;let Se=0;de.forEach((D,B)=>{D.sections&&Array.isArray(D.sections)&&(Se+=D.sections.length)});const E=me(de),T=Me(de);return{totalChapters:se,totalSections:Se,estimatedPages:E,estimatedTime:T}},me=(de,se)=>{let Se=3,E=0;return de.forEach(D=>{D.sections&&D.sections.length>0?(E+=1,D.sections.forEach(B=>{if(B.subsections&&B.subsections.length>0){const $=B.subsections.length;$<=2?E+=1:$<=4?E+=2:E+=3}else E+=1})):E+=2}),`${Se+E}页`},Me=(de,se)=>{let Se=5,E=0;return de.forEach(D=>{D.sections&&D.sections.length>0?(E+=2,D.sections.forEach(B=>{if(B.subsections&&B.subsections.length>0){const $=B.subsections.length;$<=2?E+=3:$<=4?E+=5:E+=7}else E+=4})):E+=6}),`${Se+E}分钟`},Ae=()=>{J.value&&(te.value=ue(J.value))},ge=Y(null),_e=Y(""),Q=Y(null),be=Y(""),De=Y(null),pe=Y(null);Y(null);const ie=Y(0),ce=Y(0),Re=Y({title:"",content:""}),Ee=Y([]),Le=Y(0),Fe=Y(!1);Y("edit");const Pe=Y(!1),Ne=Y([]),ht=Y(0),Rt=Y(-1),Lt=Y(-1),tn=Y(""),Wt=Y(1),zt=Y(null),dt=Y([eh,cg,dg,fg,pg]),_t=Y([{thumbnail:eh,title:"通用类PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"dynamic",style:"default"},{thumbnail:uS,title:"红色主题PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"static",style:"red",templateData:hg}]),ut=Y(!1),rt=Y(null),he=Y(null),Je=async(de,se,Se)=>{console.log("🎬 开始逐页生成PPT效果..."),Ne.value=[];for(let E=0;E<de.length;E++){const T=de[E];console.log(`📄 正在生成第${E+1}页: ${T.type||"未知类型"}`),Ne.value.push({...T,elements:T.elements?T.elements.map(B=>({...B,content:B.content,left:B.left,top:B.top,width:B.width,height:B.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(B=>setTimeout(B,300));const D=await ct(T,se,Se,E);Ne.value[E]=D,Ne.value=[...Ne.value],await Vt(),Ne.value=[...Ne.value],ht.value=E,await new Promise(B=>setTimeout(B,400)),console.log(`✅ 第${E+1}页生成完成`)}console.log("🎉 所有页面生成完成!"),ht.value=0,console.log("📄 已回到第一页")},ct=async(de,se,Se,E)=>{const T=JSON.parse(JSON.stringify(de));if(T.elements){console.log(`🔍 第${E+1}页有${T.elements.length}个元素`);for(let D=0;D<T.elements.length;D++){const B=T.elements[D];if(console.log(`🔍 处理元素${D+1}:`,{textType:B.textType,content:B.content,id:B.id,type:B.type}),E===0&&B.textType==="title"&&B.content&&B.content.includes("标题占位符"))B.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($=>setTimeout($,200));else if(E===0&&B.textType==="content"&&B.content&&B.content.includes("副标题占位符")){const $=await ye(se,Se);B.content=`<p style="text-align: center;"><span style="font-size: 24px; color: #f0f0f0;">${$}</span></p>`,console.log(`📝 填充封面副标题: ${$}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(E===1&&B.textType==="item"&&B.content&&B.content.includes("目录项")){const $=B.id.match(/item-(\d+)/);if($){const q=parseInt($[1])-1;if(q<se.length){const le=se[q].title;B.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${B.defaultColor};">${le}</span></p>`,console.log(`📝 填充目录项${q+1}: ${le}`)}else B.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${B.defaultColor};">&nbsp;</span></p>`}Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(B.textType==="title"&&B.content&&B.content.includes("章节标题")){const $=ot(se,E);B.content=`<p style="text-align: center;"><strong><span style="font-size: 36px; color: ${B.defaultColor};">${$}</span></strong></p>`,console.log(`📝 填充过渡页标题: ${$}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(B.textType==="content"&&B.content&&B.content.includes("章节介绍")){const $=ot(se,E);try{console.log(`🤖 正在为过渡页生成章节介绍内容: ${$}`);const q=await Bn.reProduceSingleQuestion({message:`请为PPT章节"${$}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});if(q&&q.data){const le=q.data.reply||q.data.content||q.data.message||q.data;console.log(`✅ 过渡页章节介绍生成完成: ${le}`),B.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${B.defaultColor};">${le}</span></p>`}else{const le=Be(se,E);console.log(`🔄 使用备用内容: ${le}`),B.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${B.defaultColor};">${le}</span></p>`}}catch(q){console.error("❌ AI生成过渡页内容失败:",q);const le=Be(se,E);console.log(`🔄 使用备用内容: ${le}`),B.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${B.defaultColor};">${le}</span></p>`}Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(B.textType==="title"&&B.content&&B.content.includes("内容页标题")){const $=je(se,E);B.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${B.defaultColor};">${$}</span></strong></p>`,console.log(`📝 填充内容页标题: ${$}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(B.textType==="itemContent"&&B.content&&(B.content.includes("正在生成...")||B.content.includes("待AI填充"))){console.log("🤖 找到需要AI填充的元素:",{textType:B.textType,content:B.content,id:B.id});const $=Ke(se,E,D);try{console.log(`🤖 正在为第${E+1}页生成内容: ${$}`),console.log("🤖 元素信息:",B);const q=await Bn.reProduceSingleQuestion({message:`请为PPT幻灯片生成专业的内容,主题是:${$}。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.严格控制字数在30-45字以内 5.不要包含任何编号(如"子小节3:"、"要点1:"等)6.直接返回内容,不要添加前缀 7.要有独特性和创新性,避免与其他内容重复 8.从不同角度阐述主题。这是关于"${Se}"的PPT演示文稿,当前章节是"${$}"`});if(console.log("🤖 AI响应:",q),q&&q.data){const le=q.data.reply||q.data.content||q.data.message||q.data||"AI生成的内容为空";console.log("🤖 AI生成内容:",le),await Ot(B,le,B.defaultColor),console.log(`✅ 第${E+1}页内容生成完成`)}else{const le=at(se,E,D);console.log("🔄 使用备用内容:",le),await Ot(B,le,B.defaultColor)}}catch(q){console.error("❌ AI生成内容失败:",q);const le=at(se,E,D);console.log("🔄 使用备用内容:",le),await Ot(B,le,B.defaultColor)}}else if(B.textType==="itemTitle"&&B.content&&(B.content.includes("要点标题")||B.content.includes("待AI生成子小节"))){const $=Tn(se,E,D);if($.includes("待AI生成子小节"))try{console.log(`🤖 正在为子小节生成标题: ${$}`);const q=gt(se,E,D),le=await Bn.reProduceSingleQuestion({message:`请为PPT幻灯片的小节"${q}"生成3-4个简洁的子标题。要求:1.每个标题都要不同 2.标题简洁明了,控制在6-12字 3.专业准确 4.适合PPT展示 5.直接返回标题,用换行分隔,不要编号,不要重复,不要解释,只要标题`});if(le&&le.data){const Ye=(le.data.reply||le.data.content||le.data.message||le.data).split(`
  1370. `).filter(Ue=>Ue.trim()).map(Ue=>Ue.trim());if(Ye.length>0){const Ue=D%Ye.length,ft=Ye[Ue];B.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${B.defaultColor};">${ft}</span></strong></p>`,console.log(`✅ AI生成子小节标题[${Ue}]: ${ft}`)}else B.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${B.defaultColor};">${$}</span></strong></p>`,console.log("⚠️ AI生成标题失败,使用默认标题")}else B.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${B.defaultColor};">${$}</span></strong></p>`,console.log("⚠️ AI调用失败,使用默认标题")}catch(q){console.error("❌ AI生成标题失败:",q),B.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${B.defaultColor};">${$}</span></strong></p>`}else B.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${B.defaultColor};">${$}</span></strong></p>`,console.log(`📝 填充标题: ${$}`);Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}else if(B.content&&B.content.includes("待AI填充")&&!B.content.includes("正在生成...")){const $=In(se,E,D);B.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${B.defaultColor};">${$}</span></p>`,console.log(`📝 填充内容: ${$}`),Vt(()=>{Ne.value=[...Ne.value]}),await new Promise(q=>setTimeout(q,200))}}}return T},Ot=async(de,se,Se)=>new Promise(E=>{de.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Se};">正在生成内容...</span></p>`,Vt(()=>{Ne.value=[...Ne.value]}),setTimeout(()=>{let T="";const D=se.split("");let B=0;const $=()=>{B<D.length?(T+=D[B],de.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Se};">${T}</span></p>`,Vt(()=>{Ne.value=[...Ne.value]}),B++,setTimeout($,30)):E()};$()},500)}),Tn=(de,se,Se)=>{if(console.log(`获取元素标题 - 幻灯片索引: ${se}, 元素索引: ${Se}`),console.log("大纲数据:",de),se<2)return"默认标题";let E=2,T=0,D=0;for(let q=0;q<de.length;q++){const le=de[q];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=q,D=Oe;break}E++}if(E===se)break}else{if(E===se){T=q,D=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${D}`);const B=de[T],$=B&&B.sections&&B.sections[D];if($&&$.subsections&&$.subsections.length>0){const q=$.subsections[Se%$.subsections.length];if(q&&q.title)return q.title.includes("待AI生成子小节"),q.title}return $&&$.title?$.title:B&&B.title?B.title:"默认标题"},In=(de,se,Se)=>{if(console.log(`获取元素内容 - 幻灯片索引: ${se}, 元素索引: ${Se}`),se<2)return"默认内容";let E=2,T=0,D=0;for(let q=0;q<de.length;q++){const le=de[q];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=q,D=Oe;break}E++}if(E===se)break}else{if(E===se){T=q,D=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${D}`);const B=de[T],$=B&&B.sections&&B.sections[D];if($&&$.subsections&&$.subsections.length>0){const q=$.subsections[Se%$.subsections.length];if(q&&q.title)return He(q.title,Se)}return $&&$.title?He($.title,Se):B&&B.title?He(B.title,Se):He("默认内容",Se)},je=(de,se)=>{if(console.log(`获取内容页标题 - 幻灯片索引: ${se}`),se<2)return"默认内容页标题";let Se=2,E=0,T=0;for(let $=0;$<de.length;$++){const q=de[$];if(Se++,q.sections&&q.sections.length>0){for(let le=0;le<q.sections.length;le++){if(Se===se){E=$,T=le;break}Se++}if(Se===se)break}else{if(Se===se){E=$,T=0;break}Se++}}console.log(`当前内容页对应 - 章节: ${E}, 小节: ${T}`);const D=de[E],B=D&&D.sections&&D.sections[T];return B&&B.title?B.title:D&&D.title?D.title:"默认内容页标题"},ke=async de=>{if(console.log("转换用户大纲数据为兼容格式..."),console.log("原始用户大纲数据:",de),!de||!Array.isArray(de))return console.log("用户大纲数据无效,返回空数组"),[];const se=[];for(let Se=0;Se<de.length;Se++){const E=de[Se];let T=E.content;if(!T)try{console.log(`🤖 正在为章节"${E.title}"生成内容...`);const B=await Bn.reProduceSingleQuestion({message:`请为PPT章节"${E.title}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});B&&B.data?(T=B.data.reply||B.data.content||B.data.message||B.data,console.log(`✅ 章节内容生成完成: ${T}`)):T=`第${Se+1}章节的内容`}catch(B){console.error("❌ 章节内容生成失败:",B),T=`第${Se+1}章节的内容`}const D={title:E.title||`章节${Se+1}`,content:T,sections:[]};if(E.sections&&Array.isArray(E.sections))for(let B=0;B<E.sections.length;B++){const $=E.sections[B];let q=$.content;if(!q)try{console.log(`🤖 正在为小节"${$.title}"生成内容...`);const Oe=await Bn.reProduceSingleQuestion({message:`请为PPT小节"${$.title}"生成一个简洁的小节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});Oe&&Oe.data?(q=Oe.data.reply||Oe.data.content||Oe.data.message||Oe.data,console.log(`✅ 小节内容生成完成: ${q}`)):q=`第${B+1}小节的内容`}catch(Oe){console.error("❌ 小节内容生成失败:",Oe),q=`第${B+1}小节的内容`}const le={title:$.title||`小节${B+1}`,content:q,subsections:[]};if($.subsections&&Array.isArray($.subsections)&&$.subsections.length>0)le.subsections=$.subsections.map((Oe,Ye)=>({title:Oe.title||`子小节${Ye+1}`}));else{const Oe=Math.floor(Math.random()*3)+2;le.subsections=[];for(let Ye=0;Ye<Oe;Ye++)le.subsections.push({title:`待AI生成子小节${Ye+1}`});console.log(`为小节"${$.title}"创建了${Oe}个待AI生成的子小节`)}D.sections.push(le)}else D.sections=[{title:"主要内容",content:"主要内容描述",subsections:[{title:`${D.title} - 要点1`},{title:`${D.title} - 要点2`},{title:`${D.title} - 要点3`},{title:`${D.title} - 要点4`}]}],console.log(`为章节"${D.title}"创建了默认小节和子小节`);se.push(D)}return console.log("转换后的兼容格式数据:",se),se},ye=async(de,se)=>{if(console.log(`获取封面页完整描述 - 标题: ${se}`),se!=="用户生成的大纲"&&de&&de.length>0){if(de&&de.length>0){try{console.log("🤖 正在为用户大纲生成专业描述...");const D=await Bn.reProduceSingleQuestion({message:`请为PPT演示文稿生成一个专业的副标题描述。大纲包含${de.length}个章节,每个章节都有多个小节和子小节。要求:1.描述专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在30-45字以内 5.突出培训的专业性和系统性`});if(D&&D.data){const B=D.data.reply||D.data.content||D.data.message||D.data;return console.log(`✅ 用户大纲描述生成完成: ${B}`),B}}catch(D){console.error("❌ 用户大纲描述生成失败:",D)}let T=`${de.length}章节`;return de.forEach((D,B)=>{if(D.sections&&D.sections.length>0){const $=D.sections.length;T+=`,第${B+1}章节${$}小节`;const q=D.sections.map(le=>le.subsections?le.subsections.length:0);q.length>0&&q.some(le=>le>0)&&(T+=`(${q.join("+")}子小节)`)}}),console.log(`生成用户大纲描述: ${T}`),T}return"用户生成的大纲结构"}const Se=St.value.find(E=>E.title===se);if(Se&&Se.description)return console.log(`找到对应的描述: ${Se.description}`),Se.description;if(de&&de.length>0){let T=`${de.length}章节`;return de.forEach((D,B)=>{if(D.sections&&D.sections.length>0){const $=D.sections.length;T+=`,第${B+1}章节${$}小节`;const q=D.sections.map(le=>le.subsections?le.subsections.length:0);q.length>0&&q.some(le=>le>0)&&(T+=`(${q.join("+")}子小节)`)}}),console.log(`生成的描述: ${T}`),T}return"安全培训演示文稿"},Be=(de,se)=>{if(console.log(`获取过渡页章节介绍内容 - 幻灯片索引: ${se}`),se<2)return"默认章节介绍";let Se=2,E=0;for(let D=0;D<de.length;D++){const B=de[D];if(Se===se){E=D;break}Se++,B.sections&&B.sections.length>0?Se+=B.sections.length:Se++}console.log(`当前过渡页对应 - 章节: ${E}`);const T=de[E];return T&&T.content?T.content:T&&T.title?`本章将介绍${T.title}的相关内容,包括核心概念、重要知识点和实践应用。`:"默认章节介绍"},ot=(de,se)=>{if(console.log(`获取过渡页章节标题 - 幻灯片索引: ${se}`),se<2)return"默认章节";let Se=2,E=0;for(let D=0;D<de.length;D++){const B=de[D];if(Se===se){E=D;break}Se++,B.sections&&B.sections.length>0?Se+=B.sections.length:Se++}console.log(`当前过渡页对应 - 章节: ${E}`);const T=de[E];return T&&T.title?Ie(T.title):"默认章节"},gt=(de,se,Se)=>{if(console.log(`获取小节标题用于AI生成 - 幻灯片索引: ${se}, 元素索引: ${Se}`),se<2)return"默认小节";let E=2,T=0,D=0;for(let q=0;q<de.length;q++){const le=de[q];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=q,D=Oe;break}E++}if(E===se)break}else{if(E===se){T=q,D=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${D}`);const B=de[T],$=B&&B.sections&&B.sections[D];return $&&$.title?$.title:"默认小节"},Ke=(de,se,Se)=>{if(console.log(`获取AI标题 - 幻灯片索引: ${se}, 内容索引: ${Se}`),se<2)return"默认内容";let E=2,T=0,D=0;for(let q=0;q<de.length;q++){const le=de[q];if(E++,le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=q,D=Oe;break}E++}if(E===se)break}else{if(E===se){T=q,D=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${D}`);const B=de[T],$=B&&B.sections&&B.sections[D];if($&&$.subsections&&$.subsections.length>0){const q=$.subsections[Se%$.subsections.length];if(q&&q.title)return`${B.title} - ${$.title} - ${q.title}`}return $&&$.title?`${B.title} - ${$.title}`:B&&B.title?B.title:"默认内容"},He=(de,se)=>{const Se={信息上报与指挥体系建立:["建立完善的信息收集机制,确保各类安全信息及时准确上报","构建统一的指挥调度平台,实现各部门协调联动","制定标准化的上报流程,提高信息处理效率","建立应急响应机制,确保突发事件快速处置"],安全风险评估与控制:["开展全面的安全风险识别,建立风险清单","制定风险等级评估标准,实施分级管控","建立风险监测预警系统,实现动态监控","完善风险控制措施,确保风险可控"],应急预案与处置:["制定完善的应急预案体系,覆盖各类突发事件","建立应急响应队伍,提高应急处置能力","开展应急演练,检验预案有效性","完善应急物资储备,确保应急保障"],培训教育与能力提升:["制定系统化的培训计划,提高全员安全意识","开展专业技能培训,提升操作能力","建立培训考核机制,确保培训效果","持续改进培训方式,提高培训质量"],监督检查与持续改进:["建立监督检查机制,确保制度有效执行","开展定期检查评估,发现问题及时整改","建立问题跟踪机制,确保整改到位","持续改进工作方法,提升管理水平"]};for(const[T,D]of Object.entries(Se))if(de.includes(T)||T.includes(de))return D[se%D.length];const E=["建立完善的管理体系,确保各项工作有序开展","制定详细的操作规范,提高工作效率和质量","加强人员培训,提升专业技能和综合素质","建立监督检查机制,确保制度有效执行","完善应急预案,提高应对突发事件的能力","加强沟通协调,促进部门间有效合作","持续改进优化,不断提升管理水平","注重细节管理,确保工作质量稳定可靠","强化责任意识,确保各项工作落实到位","创新工作方法,提高工作效率和效果"];return E[se%E.length]},at=(de,se,Se)=>{if(console.log(`生成内容 - 幻灯片索引: ${se}, 内容索引: ${Se}`),se<2)return He("默认内容",Se);let E=2,T=0,D=0;for(let q=0;q<de.length;q++){const le=de[q];if(le.sections&&le.sections.length>0){for(let Oe=0;Oe<le.sections.length;Oe++){if(E===se){T=q,D=Oe;break}E++}if(E===se)break}else{if(E===se){T=q,D=0;break}E++}}console.log(`当前内容页对应 - 章节: ${T}, 小节: ${D}`);const B=de[T],$=B&&B.sections&&B.sections[D];if($&&$.subsections&&$.subsections.length>0){const q=$.subsections[Se%$.subsections.length];if(q&&q.title)return He(q.title,Se)}return $&&$.title?He($.title,Se):B&&B.title?He(B.title,Se):He("默认内容",Se)},St=Y([{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:"风险应急处置"}]}]}]}]),tt=Y(0);Y(!1);const Qe=Y("default");Y($Yt());const it=Y([{icon:WYt,title:"PowerPoint (PPTX)",description:"可编辑的演示文稿"},{icon:VYt,title:"考试工坊",description:"基于该文档,生成考试题"},{icon:qYt,title:"培训讲义文档",description:"基于PPT内容,提取文档文字"}]),Mt=ee(()=>dt.value[ie.value]),Gt=ee(()=>{const de=new Date;return`${de.getHours().toString().padStart(2,"0")}:${de.getMinutes().toString().padStart(2,"0")}:${de.getSeconds().toString().padStart(2,"0")}`}),En=Y([]),Nn=Y(0),xt=async()=>{try{console.log("📋 开始获取安全培训历史记录列表...");const de=performance.now(),se=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:1}),Se=performance.now();console.log(`📋 历史记录API调用耗时: ${(Se-de).toFixed(2)}ms`),console.log("📋 安全培训历史记录列表响应:",se),se.statusCode===200?(Nn.value=se.total||0,En.value=se.data.map(E=>({id:E.id,title:vt(E.content),time:Bt(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(`✅ 安全培训历史记录列表已设置: ${En.value.length}条记录,总数: ${Nn.value}`)):console.error("❌ 获取安全培训历史记录列表失败:",se.statusCode)}catch(de){console.error("❌ 获取安全培训历史记录列表失败:",de)}},sn=async de=>{try{console.log("开始获取安全培训对话消息,conversationId:",de);const se=await Bn.getHistoryRecord({ai_conversation_id:de,business_type:1});if(console.log("安全培训对话消息响应:",se),se.statusCode===200){const Se=se.data.map(T=>{const D=mn(T.user_feedback);console.log(`安全培训消息 ${T.id} 的反馈状态:`,{raw:T.user_feedback,converted:D});let B=null,$=T.content;if(T.type==="user"&&T.content.includes("</filesize>")){const q=T.content.match(/<filename>(.*?)<\/filename>/),le=T.content.match(/<filesize>(.*?)<\/filesize>/),Oe=T.content.match(/<word>(.*?)<\/word>/s);if(q&&le){const Ye=q[1],Ue=parseInt(le[1]),ft=Oe?Oe[1].trim():"";B={name:Ye,size:Ue,type:Ye.endsWith(".docx")?".docx":Ye.endsWith(".doc")?".doc":".docx",icon:nx(Ye.endsWith(".docx")?".docx":Ye.endsWith(".doc")?".doc":".docx"),content:ft};const wt=T.content.split("</filesize>")[1];$=wt?wt.trim():""}}return{type:T.type,content:$,displayContent:T.type==="ai"?ex(T.content):$,file:B,isTyping:!1,id:T.id,userFeedback:D,rawData:T}});O.value=Se,console.log("安全培训对话消息已设置:",O.value),r.value=de;const E=Se.find(T=>T.type==="ai");if(E&&E.content){console.log("找到AI回复内容,直接解析大纲:",E.content);const T=s.value;if(!J.value||J.value.length===0||T){const D=Ho(E.content);D&&D.chapters&&D.chapters.length>0?(J.value=D.chapters,X.value=D.title||"安全培训大纲",te.value=ue(D.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=de=>{if(!de)return"未知对话";if(de.includes("</filesize>")){const E=de.split("</filesize>")[1];if(E&&E.trim()){const D=E.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return D.length>30?D.substring(0,30)+"...":D||"新对话"}}let se=de.replace(/<[^>]*>/g,"");se=se.replace(/\s+/g," ").trim();const Se=se.split(/[。!?\n]/)[0];return Se.length>30?Se.substring(0,30)+"...":Se||"新对话"},Bt=de=>{if(!de)return"未知时间";let se;if(typeof de=="string")se=new Date(de);else{let q=de;de.toString().length===10||de.toString().length===11?q=de*1e3:de.toString().length===13||(q=de*1e3),se=new Date(q)}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 D=se.getMonth()+1,B=se.getDate(),$=se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${D}月${B}日 ${$}`},mn=de=>{switch(console.log("转换用户反馈状态:",de,"类型:",typeof de),parseInt(de)){case 2:return"like";case 3:return"dislike";case 0:default:return null}},Mn=()=>{Vt(()=>{const de=document.querySelector(".chat-content");if(console.log("滚动函数执行,找到聊天区域:",de),de){console.log("滚动前 - scrollTop:",de.scrollTop,"scrollHeight:",de.scrollHeight,"clientHeight:",de.clientHeight),de.scrollTop=de.scrollHeight,setTimeout(()=>{de.scrollTop=de.scrollHeight,console.log("延迟滚动后 - scrollTop:",de.scrollTop)},10);const se=de.lastElementChild;se&&se.scrollIntoView({behavior:"smooth",block:"end"}),console.log("滚动后 - scrollTop:",de.scrollTop)}else console.warn("未找到聊天内容区域")})},tr=(de,se)=>{console.log("准备删除安全培训历史记录:",de),u.value={item:de,index:se},l.value=!0},cn=async()=>{if(!u.value)return;const{item:de,index:se}=u.value;try{const Se=await Bn.deleteHistoryRecord({ai_conversation_id:de.id});Se.statusCode===200?(En.value.splice(se,1),de.isActive&&await bt(),console.log("安全培训历史记录删除成功"),At.success("删除成功")):(console.error("删除安全培训历史记录失败:",Se.msg),At.error(Se.msg||"删除失败"))}catch(Se){console.error("删除安全培训历史记录失败:",Se),At.error("删除失败,请稍后重试")}finally{l.value=!1,u.value=null}},qe=()=>{l.value=!1,u.value=null},yt=()=>{if(console.log("点击新建任务按钮,isProcessing:",w.value),w.value){console.log("正在处理中,无法新建任务");return}bt()},Zt=(de,se)=>{if(console.log("点击历史记录项,isProcessing:",w.value,"isGeneratingOutline:",h.value,"item.isActive:",de.isActive,"isSwitchingHistory:",s.value),de.isActive||w.value||h.value||s.value){console.log("正在处理中、正在生成大纲、已激活或正在切换历史记录,无法切换");return}Rn(de)},bt=async()=>{console.log("创建新安全培训任务"),r.value=0,O.value=[],t.value="",V.value=null,o.value=null,i.value=null,a.value=!1,k.value=!1,En.value.forEach(de=>{de.isActive=!1}),d.value="step1",J.value=null,te.value={},X.value="",c.value="",f.value=null,p.value=null,v.value=null,ge.value=null,_e.value="",Q.value=null,be.value="",ie.value=0,ce.value=0,Fe.value=!1,Le.value=0,Ee.value=[],Re.value={title:"",content:""},Ne.value=[],ht.value=0,Rt.value=-1,Lt.value=-1,tn.value="",Wt.value=1,zt.value=null,dt.value=[eh,cg,dg,fg,pg],await xt()},Kt=de=>de.cover_image&&de.cover_image.trim()?de.cover_image:LYt,bn=async(de=!0,se=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!se&&!We())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(Qe.value==="red"&&(T="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板7专用封面图:",T)),Qe.value==="blueTech"&&(T="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板8专用封面图:",T)),de){for(const $ of Ne.value)if($.elements&&$.elements.length>0){for(const q of $.elements)if(q.type==="image"&&q.src&&q.src.startsWith("http")){if(q.src.includes("unsplash.com")||q.src.includes("placeholder")){console.log("跳过模板默认图片:",q.src);continue}T=q.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 $=En.value.find(q=>q.id===r.value);$&&$.cover_image&&$.cover_image.trim()&&(T=$.cover_image,console.log("保持使用现有封面图:",T))}const D={ai_conversation_id:r.value,step:1,ppt_json_url:"",ppt_json_content:JSON.stringify(Ne.value),cover_image:T};console.log("正在保存步骤信息:",D);const B=await Bn.saveStep(D);return B.statusCode===200?(console.log("步骤信息保存成功"),i.value=JSON.parse(JSON.stringify(Ne.value)),At.success("PPT生成完成并已保存!"),!0):(console.error("保存步骤信息失败:",B.msg),At.warning("PPT生成完成,但保存步骤信息失败"),!1)}catch(Se){return console.error("保存步骤信息时发生错误:",Se),At.warning("PPT生成完成,但保存步骤信息时发生错误"),!1}finally{a.value=!1}},Rn=async de=>{console.log("点击安全培训历史记录:",de),s.value=!0;try{n.value=de;const se=r.value,Se=v.value,E=J.value?JSON.parse(JSON.stringify(J.value)):null,T=X.value,D=te.value?JSON.parse(JSON.stringify(te.value)):null,B=Ne.value?JSON.parse(JSON.stringify(Ne.value)):null;En.value.forEach(q=>{q.isActive=q.id===de.id}),m.value=!0;const $=async()=>{let q=!1;if(E&&E.length>0&&Se)if(!o.value||JSON.stringify({title:T,stats:D,chapters:E})!==JSON.stringify(o.value)){console.log("检测到当前大纲数据有变化,保存当前修改到历史记录:",Se);try{const Oe=r.value;r.value=Se;const Ye=J.value,Ue=X.value,ft=te.value;J.value=E,X.value=T,te.value=D;const wt=await It();if(r.value=Oe,r.value!==de.id&&(J.value=Ye,X.value=Ue,te.value=ft),wt){q=!0,console.log("当前大纲修改已保存到历史记录:",Se);const xn=En.value.find(wn=>wn.id===Se);xn&&(xn.rawData={...xn.rawData,ppt_outline:JSON.stringify({title:T,stats:D,chapters:E,timestamp:Date.now()})},console.log("已更新历史记录列表中的大纲数据"))}}catch(Oe){console.error("保存当前大纲修改失败:",Oe)}}else console.log("大纲数据快照无变化,跳过保存");if(B&&B.length>0&&se)if(!i.value||JSON.stringify(B)!==JSON.stringify(i.value)){console.log("检测到当前PPT数据有变化,保存当前修改到历史记录:",se);try{const Oe=r.value;r.value=se;const Ye=Ne.value;Ne.value=B;const Ue=await bn();if(r.value=Oe,se!==de.id&&(Ne.value=Ye),Ue){q=!0,console.log("当前PPT修改已保存到历史记录:",se);const ft=En.value.find(wt=>wt.id===se);ft&&(ft.rawData={...ft.rawData,ppt_json_content:JSON.stringify(B),timestamp:Date.now()},console.log("已更新历史记录列表中的PPT数据"))}}catch(Oe){console.error("保存当前PPT修改失败:",Oe)}}else console.log("PPT数据快照无变化,跳过保存");q||console.log("当前数据无变化,跳过保存")};if(r.value=de.id,$(),de.step===0){console.log("历史记录step为0,跳转到步骤二(大纲页)"),Ne.value=[],ht.value=0,Rt.value=-1,Lt.value=-1,tn.value="",Wt.value=1,zt.value=null,Fe.value=!1,ie.value=0;const q={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};O.value=[q];try{await sn(de.id)?(console.log("安全培训历史对话加载成功",de),O.value=O.value.filter(Oe=>Oe.id!==q.id),d.value="step2",m.value=!1,J.value&&J.value.length>0&&r.value===de.id?(console.log("检测到已有大纲数据,直接使用(来自getConversationMessages)"),v.value=de.id,o.value={title:X.value,stats:te.value,chapters:JSON.parse(JSON.stringify(J.value))},console.log("设置大纲ID:",v.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面(使用getConversationMessages数据)"),dr(),Na()):(console.log("未找到大纲数据,显示聊天界面"),k.value=!0)):(O.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0)}catch(le){console.error("加载安全培训历史对话失败:",le),O.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0,m.value=!1}}else if(de.step===1){console.log("历史记录step为1,直接跳转到PPT预览页面"),Ne.value=[],ht.value=0,Rt.value=-1,Lt.value=-1,tn.value="",Wt.value=1,zt.value=null;const q={type:"ai",content:"正在加载PPT数据...",displayContent:"正在加载PPT数据...",isTyping:!0,id:Date.now()+1,userFeedback:null};O.value=[q];try{if(await sn(de.id)){console.log("安全培训历史对话加载成功"),O.value=O.value.filter(Ue=>Ue.id!==q.id),d.value="step3",m.value=!1;const Oe=O.value.filter(Ue=>Ue.type==="ai"),Ye=Oe.length>1?Oe[1]:Oe.length>0?Oe[0]:null;if(Ye&&Ye.content){console.log("找到AI回复,开始解析大纲并直接生成PPT预览"),v.value=de.id;const Ue=Ho(Ye.content);if(Ue&&Ue.chapters&&Ue.chapters.length>0){J.value=Ue.chapters,X.value=Ue.title||"安全培训大纲",te.value=ue(Ue.chapters);try{if(console.log("step=1,从数据库读取已保存的PPT数据..."),de.ppt_json_content&&de.ppt_json_content.trim()){console.log("找到已保存的PPT JSON内容,直接加载...");const ft=JSON.parse(de.ppt_json_content);console.log("解析的PPT数据:",ft),Ne.value=ft,Fe.value=!0,i.value=JSON.parse(JSON.stringify(ft)),console.log("PPT数据加载完成,共",ft.length,"张幻灯片");const wt=En.value.find(xn=>xn.id===de.id);wt&&(wt.ppt_json_content=de.ppt_json_content,console.log("已同步历史记录列表中的PPT数据"))}else{console.log("未找到保存的PPT内容,重新生成...");const ft=v2(J.value,X.value),wt=await ha(ft,X.value);await m2(wt,!1),Fe.value=!0,console.log("PPT数据重新生成完成")}}catch(ft){console.error("加载PPT失败:",ft),At.error("加载PPT失败: "+ft.message)}}else console.log("解析大纲失败,显示聊天界面"),k.value=!0}else console.log("未找到AI回复,显示聊天界面"),k.value=!0}else O.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],k.value=!0}catch(le){console.error("加载安全培训历史对话失败:",le),O.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),At.error("切换历史记录失败,请稍后重试")}finally{s.value=!1,m.value=!1}};let Kn=0,Fr=0;const ho=de=>{const se=[A_,C_,x_,S_],Se=se[Kn%se.length];return Kn++,Se},Wr=de=>{const se=[ak,sk,lk],Se=se[Fr%se.length];return Fr++,Se},bo=de=>{console.log("点击功能卡片:",de),k.value=!0;let se="";if(typeof de=="string"&&de.length>0)se=`请详细介绍${de}的相关内容`;else switch(de){case"safety-training":se="请详细介绍安全培训课程的相关内容";break;case"safety-assessment":se="请介绍安全评估测试的关键要点";break;case"safety-regulations":se="请查询相关的安全法规和标准";break;case"emergency-procedures":se="请介绍应急处理程序的关键步骤";break;default:se=`请详细介绍${de}的相关内容`}t.value=se,Bo()},Bo=async()=>{if(t.value.trim()&&!I.value){console.log("开始发送消息:",t.value,"文件:",V.value),I.value=!0,w.value=!0,k.value=!0,O.value.length===0&&(En.value.forEach(E=>{E.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const de={type:"user",content:t.value,file:V.value,id:Date.now()};O.value.push(de);const se={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};O.value.push(se);const Se=t.value;t.value="",V.value&&rx(),Mn(),console.log("当前聊天消息:",O.value);try{let E=Se;de.file&&de.file.content&&(E=`<word>${de.file.content}</word><filename>${de.file.name}</filename><filesize>${de.file.size}</filesize>${Se}`);const T=await Bn.sendDeepseekMessage({business_type:1,message:E});if(console.log("DeepSeek API响应:",T),T.statusCode===200){const D=T.data.reply;r.value=T.data.ai_conversation_id;const B=J5(D),$=L9(B,de.file),q=ex($),le=[];let Oe="",Ye=!1,Ue="";for(let wn=0;wn<q.length;wn++){const vn=q[wn];vn==="<"?(Oe&&!Ye&&(le.push({type:"text",content:Oe}),Oe=""),Ye=!0,Ue=vn):vn===">"?(Ue+=vn,le.push({type:"tag",content:Ue}),Ye=!1,Ue=""):Ye?Ue+=vn:Oe+=vn}Oe&&le.push({type:"text",content:Oe}),console.log("分割后的文本块:",le);let ft=0,wt=0;const xn=setInterval(()=>{if(ft<le.length){const wn=le[ft];if(wn.type==="tag")se.displayContent+=wn.content,ft++,wt=0;else if(wt<wn.content.length){const ln=se.displayContent+wn.content[wt];se.displayContent=ln,wt++}else ft++,wt=0;O.value=[...O.value];const vn=document.querySelector(`[data-message-index="${O.value.length-1}"] .message-content`);vn&&(vn.style.width="fit-content"),Mn(),Vt(()=>{Mn()})}else{se.isTyping=!1,se.content=B,clearInterval(xn),console.log("打字完成");const wn=document.querySelector(`[data-message-index="${O.value.length-1}"] .message-content`);wn&&(wn.style.width="100%"),setTimeout(async()=>{O.value=[...O.value],console.log("打字完成,AI回复内容已全部显示"),await xt(),r.value>0&&(En.value.forEach(vn=>{vn.isActive=vn.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(B)},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{I.value=!1}}},br=async()=>{try{h.value=!0,w.value=!0;const de=r.value,Se=`${X.value||"安全培训大纲"}`;console.log("开始生成新大纲111:",Se),console.log("锁定的ai_conversation_id:",de),console.log("outlineTitle.value:",X.value);const E=await Bn.sendDeepseekMessage({business_type:1,message:X.value,ai_conversation_id:de});if(console.log("新大纲生成API响应:",E),E.statusCode===200){const T=E.data.reply,D=J5(T),B=Ho(D);B&&B.chapters&&B.chapters.length>0?(console.log("新大纲解析成功:",B),J.value=B.chapters,te.value=B.stats,X.value=B.title,f.value=null,c.value="",v.value=null,await Ut(de,B.chapters,B.title,B.stats),At.success("大纲已生成")):(console.log("新大纲解析失败"),At.error("新大纲生成失败,请重试"))}else console.error("新大纲生成API调用失败:",E),At.error("生成失败,请重试")}catch(de){console.error("生成新大纲失败:",de),At.error("生成失败,请重试")}finally{h.value=!1,w.value=!1}},Vr=async()=>{try{if(!J.value||J.value.length===0){At.warning("请先生成大纲内容");return}g.value=!0,w.value=!0;const de=Ve(J.value,X.value),se=`请基于以下安全培训大纲内容生成一份考试试卷:
  1371. 大纲标题:${X.value}
  1372. 大纲内容:
  1373. ${de}
  1374. 请生成一份包含以下题型的考试试卷:
  1375. - 单选题:5题,每题5分,共25分
  1376. - 判断题:5题,每题3分,共15分
  1377. - 多选题:5题,每题8分,共40分
  1378. - 简答题:2题,每题10分,共20分
  1379. 试卷总分:100分
  1380. 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
  1381. {
  1382. "title": "${X.value} - 安全培训考试",
  1383. "totalScore": 100,
  1384. "totalQuestions": 17,
  1385. "singleChoice": {
  1386. "scorePerQuestion": 5,
  1387. "totalScore": 25,
  1388. "count": 5,
  1389. "questions": [
  1390. {
  1391. "text": "题目内容",
  1392. "options": [
  1393. {"key": "A", "text": "选项A内容"},
  1394. {"key": "B", "text": "选项B内容"},
  1395. {"key": "C", "text": "选项C内容"},
  1396. {"key": "D", "text": "选项D内容"}
  1397. ],
  1398. "selectedAnswer": "正确答案选项(A/B/C/D)"
  1399. }
  1400. ]
  1401. },
  1402. "judge": {
  1403. "scorePerQuestion": 3,
  1404. "totalScore": 15,
  1405. "count": 5,
  1406. "questions": [
  1407. {
  1408. "text": "题目内容",
  1409. "selectedAnswer": "正确答案(正确/错误)"
  1410. }
  1411. ]
  1412. },
  1413. "multiple": {
  1414. "scorePerQuestion": 8,
  1415. "totalScore": 40,
  1416. "count": 5,
  1417. "questions": [
  1418. {
  1419. "text": "题目内容",
  1420. "options": [
  1421. {"key": "A", "text": "选项A内容"},
  1422. {"key": "B", "text": "选项B内容"},
  1423. {"key": "C", "text": "选项C内容"},
  1424. {"key": "D", "text": "选项D内容"}
  1425. ],
  1426. "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
  1427. }
  1428. ]
  1429. },
  1430. "short": {
  1431. "scorePerQuestion": 10,
  1432. "totalScore": 20,
  1433. "count": 2,
  1434. "questions": [
  1435. {
  1436. "text": "题目内容",
  1437. "outline": {
  1438. "keyFactors": "答题要点、关键因素、示例答案"
  1439. }
  1440. }
  1441. ]
  1442. }
  1443. }
  1444. 注意:
  1445. 1. 所有题目内容必须基于提供的大纲内容
  1446. 2. 题目难度适中,符合安全培训考试要求
  1447. 3. 严格按照JSON格式返回,不要有多余字符
  1448. 4. 单选题和判断题的选项要合理
  1449. 5. 多选题至少要有2个正确答案
  1450. 6. 简答题要提供清晰的答题要点
  1451. 7. 必须为每道题设置正确答案
  1452. 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 D=wo(E);$r(D),At.success("考试试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(de){console.error("生成考题失败:",de),At.error("生成考题失败,请重试")}finally{g.value=!1,w.value=!1}},wo=de=>{try{const se=de.match(/\{[\s\S]*\}/);if(se){const Se=JSON.parse(se[0]);return Rr(Se),Se}else throw new Error("未找到有效的JSON数据")}catch(se){return console.error("解析AI回复失败:",se),Br()}},Rr=de=>{de.singleChoice&&de.singleChoice.questions&&de.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"}])}),de.judge&&de.judge.questions&&de.judge.questions.forEach(se=>{se.selectedAnswer||(se.selectedAnswer="")}),de.multiple&&de.multiple.questions&&de.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"}])}),de.short&&de.short.questions&&de.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:[]}}),$r=de=>{try{const se=Ao(de),Se=new Blob([se],{type:"application/msword"}),E=URL.createObjectURL(Se),T=document.createElement("a");T.setAttribute("href",E),T.setAttribute("download",`${de.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),At.success("考试文件已下载!")}catch(se){console.error("导出考试文件失败:",se),At.error("导出考试文件失败,请重试")}},Ao=de=>{const se=new Date().toLocaleString("zh-CN");let Se=`<!DOCTYPE html>
  1453. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  1454. xmlns:w="urn:schemas-microsoft-com:office:word"
  1455. xmlns="http://www.w3.org/TR/REC-html40">
  1456. <head>
  1457. <meta charset="utf-8">
  1458. <meta name="ProgId" content="Word.Document">
  1459. <meta name="Generator" content="Microsoft Word 15">
  1460. <meta name="Originator" content="Microsoft Word 15">
  1461. <title>${de.title||"考试试卷"}</title>
  1462. <!--[if gte mso 9]>
  1463. <xml>
  1464. <w:WordDocument>
  1465. <w:View>Print</w:View>
  1466. <w:Zoom>100</w:Zoom>
  1467. <w:DoNotPromptForConvert/>
  1468. <w:DoNotShowRevisions/>
  1469. <w:DoNotPrintRevisions/>
  1470. <w:DoNotShowComments/>
  1471. <w:DoNotShowInsertionsAndDeletions/>
  1472. <w:DoNotShowPropertyChanges/>
  1473. <w:Compatibility>
  1474. <w:BreakWrappedTables/>
  1475. <w:SnapToGridInCell/>
  1476. <w:WrapTextWithPunct/>
  1477. <w:UseAsianBreakRules/>
  1478. <w:DontGrowAutofit/>
  1479. </w:Compatibility>
  1480. </w:WordDocument>
  1481. </xml>
  1482. <![endif]-->
  1483. <style>
  1484. body {
  1485. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  1486. font-size: 14px;
  1487. line-height: 1.6;
  1488. margin: 24px;
  1489. color: #000;
  1490. }
  1491. .header {
  1492. text-align: center;
  1493. margin-bottom: 14px;
  1494. }
  1495. .exam-title {
  1496. font-size: 24px;
  1497. font-weight: bold;
  1498. margin-bottom: 14px;
  1499. color: #000;
  1500. }
  1501. .exam-info {
  1502. font-size: 14px;
  1503. color: #666;
  1504. margin-bottom: 14px;
  1505. }
  1506. .section {
  1507. margin-bottom: 14px;
  1508. }
  1509. .section-title {
  1510. font-size: 18px;
  1511. font-weight: bold;
  1512. margin-bottom: 14px;
  1513. color: #000;
  1514. border-bottom: 2px solid #3e7bfa;
  1515. padding-bottom: 5px;
  1516. }
  1517. .question {
  1518. margin-bottom: 14px;
  1519. padding: 10px;
  1520. background-color: #f9f9f9;
  1521. border-left: 4px solid #3e7bfa;
  1522. }
  1523. .question-header {
  1524. margin-bottom: 14px;
  1525. line-height: 1.6;
  1526. }
  1527. .question-number {
  1528. font-weight: bold;
  1529. color: #3e7bfa;
  1530. }
  1531. .options {
  1532. margin-left: 12px;
  1533. }
  1534. .option {
  1535. margin-bottom: 5px;
  1536. }
  1537. .answer {
  1538. margin-top: 10px;
  1539. padding: 8px;
  1540. background: #e8f4fd;
  1541. border-radius: 4px;
  1542. font-weight: bold;
  1543. color: #2c5aa0;
  1544. }
  1545. </style>
  1546. </head>
  1547. <body>
  1548. <div class="header">
  1549. <div class="exam-title">${de.title||"考试试卷"}</div>
  1550. <div class="exam-info">
  1551. 总分:${de.totalScore||0}分 | 总题数:${de.totalQuestions||0}题 | 生成时间:${se}
  1552. </div>
  1553. </div>`;return de.singleChoice&&de.singleChoice.questions.length>0&&(Se+=`
  1554. <div class="section">
  1555. <div class="section-title">一、单选题(${de.singleChoice.count}题,每题${de.singleChoice.scorePerQuestion}分,共${de.singleChoice.totalScore}分)</div>`,de.singleChoice.questions.forEach((E,T)=>{Se+=`
  1556. <div class="question">
  1557. <div class="question-header">
  1558. <span class="question-number">${T+1}.</span> ${E.text}
  1559. </div>
  1560. <div class="options">`,E.options.forEach(D=>{Se+=`
  1561. <div class="option">${D.key}. ${D.text}</div>`}),Se+=`
  1562. </div>
  1563. <div class="answer">正确答案:${E.selectedAnswer}</div>
  1564. </div>`}),Se+=`
  1565. </div>`),de.judge&&de.judge.questions.length>0&&(Se+=`
  1566. <div class="section">
  1567. <div class="section-title">二、判断题(${de.judge.count}题,每题${de.judge.scorePerQuestion}分,共${de.judge.totalScore}分)</div>`,de.judge.questions.forEach((E,T)=>{Se+=`
  1568. <div class="question">
  1569. <div class="question-header">
  1570. <span class="question-number">${T+1}.</span> ${E.text}
  1571. </div>
  1572. <div class="answer">正确答案:${E.selectedAnswer}</div>
  1573. </div>`}),Se+=`
  1574. </div>`),de.multiple&&de.multiple.questions.length>0&&(Se+=`
  1575. <div class="section">
  1576. <div class="section-title">三、多选题(${de.multiple.count}题,每题${de.multiple.scorePerQuestion}分,共${de.multiple.totalScore}分)</div>`,de.multiple.questions.forEach((E,T)=>{Se+=`
  1577. <div class="question">
  1578. <div class="question-header">
  1579. <span class="question-number">${T+1}.</span> ${E.text}
  1580. </div>
  1581. <div class="options">`,E.options.forEach(D=>{Se+=`
  1582. <div class="option">${D.key}. ${D.text}</div>`}),Se+=`
  1583. </div>
  1584. <div class="answer">正确答案:${E.selectedAnswers.join(", ")}</div>
  1585. </div>`}),Se+=`
  1586. </div>`),de.short&&de.short.questions.length>0&&(Se+=`
  1587. <div class="section">
  1588. <div class="section-title">四、简答题(${de.short.count}题,每题${de.short.scorePerQuestion}分,共${de.short.totalScore}分)</div>`,de.short.questions.forEach((E,T)=>{Se+=`
  1589. <div class="question">
  1590. <div class="question-header">
  1591. <span class="question-number">${T+1}.</span> ${E.text}
  1592. </div>
  1593. <div class="answer">答题要点:${E.outline.keyFactors}</div>
  1594. </div>`}),Se+=`
  1595. </div>`),Se+=`
  1596. </body>
  1597. </html>`,Se},Cr=de=>{console.log("AI回复完成,直接解析并跳转到步骤二");const se=Ho(de);se&&se.chapters&&se.chapters.length>0?(console.log("解析成功,更新大纲数据:",se),J.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("当前大纲数据:",J.value),console.log("当前统计信息:",te.value),console.log("当前标题:",X.value),dr(),Na()):(console.log("从历史记录加载的大纲,保持现有反馈状态:",f.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面"),console.log("当前大纲数据:",J.value),console.log("当前统计信息:",te.value),console.log("当前标题:",X.value),dr(),Na())):console.log("解析失败或没有章节数据")},Ho=de=>{try{console.log("开始解析AI回复中的大纲信息"),console.log("AI回复内容:",de);let se="安全培训大纲";const Se=de.split(`
  1598. `);for(let $ of Se){const q=$.trim();if(q.includes("以下是为您准备的PPT大纲")){const le=Se.indexOf($)+1;if(le<Se.length){const Oe=Se[le].trim();if(Oe&&Oe.length>0&&!Oe.includes("以下")&&!Oe.includes("大纲统计信息")){se=Oe;break}}}if(q.startsWith("#")&&q.length>1){se=q.replace(/^#+\s*/,"").trim();break}}const E=[],T=de.split(`
  1599. `);let D=null;console.log("开始解析行数:",Se.length);for(let $=0;$<Se.length;$++){const le=Se[$].trim();console.log(`第${$}行: "${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),D={title:le.replace(/^##\s*/,"").trim(),sections:[]},E.push(D);continue}else if(Oe===3){if(D){console.log("找到小节:",le);let Ye=le.replace(/^###\s*/,"").trim();D.sections.push({title:Ye,subsections:[]});continue}}else if(Oe===4){if(D&&D.sections.length>0){console.log("找到子标题:",le);let Ye=le.replace(/^####\s*/,"").trim();D.sections[D.sections.length-1].subsections.push({title:Ye,subsubsections:[]});continue}}else if(le.startsWith("-")){if(D&&D.sections.length>0){console.log("找到具体内容要点:",le);let Ye=le.replace(/^-\s*/,"").trim();const Ue=D.sections[D.sections.length-1];if(Ue.subsections.length>0){const ft=Ue.subsections[Ue.subsections.length-1];ft.subsubsections||(ft.subsubsections=[]),ft.subsubsections.push({title:Ye,content:""})}continue}}else if(Oe===0&&le.match(/^\d+\.\d+\.\d+/)){if(D&&D.sections.length>0){console.log("找到子小节(数字格式):",le),D.sections[D.sections.length-1].subsections.push({title:le});continue}}else if(Oe===0&&le.match(/^\d+\.\d+/)&&D){console.log("找到小节(数字格式):",le),D.sections.push({title:le,subsections:[]});continue}if(!D&&le&&le.length>5&&!le.includes("以下")&&!le.includes("以上")&&!le.startsWith("#")&&!le.includes("大纲统计信息")&&(console.log("将内容作为章节处理:",le),D={title:le,sections:[]},E.push(D)),D&&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("#")){D.sections.length===0&&D.sections.push({title:"内容详情",subsections:[]});const Ye=D.sections[D.sections.length-1];if(Ye.subsections||(Ye.subsections=[]),le&&le!=="内容要点"&&le!=="概述"&&le!=="内容详情"&&!le.includes("总章节数")&&!le.includes("总小节数")&&!le.includes("预计PPT页数")&&!le.includes("预计讲解时长")&&!le.startsWith("-")&&le.length>2){const Ue=Ye.subsections[Ye.subsections.length-1];if(Ue&&Ue.subsubsections&&Ue.subsubsections.length>0){const ft=Ue.subsubsections[Ue.subsubsections.length-1];if(ft&&!ft.content){ft.content=le;continue}}Ye.subsections.push({title:le,subsubsections:[]})}}}E.forEach($=>{$&&$.sections&&$.sections.forEach(q=>{q&&!q.subsections&&(q.subsections=[]),q.subsections&&q.subsections.forEach(le=>{le.subsubsections||(le.subsubsections=[])})})});const B=ue(E);return{title:se,stats:B,chapters:E}}catch(se){return console.error("解析大纲信息失败:",se),null}};Ct(G,de=>{!de||H.value||(t.value=de)}),Ct(Z,de=>{de&&(console.error("语音识别错误:",de),At.error(de))}),jn(async()=>{console.log("🚀 页面初始化开始,优先加载历史记录..."),m.value=!0;try{await xt(),console.log("✅ 历史记录加载完成");const de=Promise.all([M9(),P9()]);console.log("🎉 页面初始化完成")}catch(de){console.error("❌ 页面初始化失败:",de)}finally{m.value=!1}});const Xo=de=>{t.value=de,console.log("选择推荐问题:",de),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},ra=async de=>{try{console.log("设置评价:",de);const se=qi();let Se;se===de?(Se=0,console.log("取消评价,发送0")):(Se=de==="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,At.success("评价已取消")):(c.value=de,f.value=Se,At.success("评价已保存"))):(console.error("评价保存失败:",E),At.error("评价保存失败,请重试"))}catch(se){console.error("设置评价失败:",se),At.error("评价设置失败,请重试")}},ti=(de,se,Se,E)=>{ge.value=de,_e.value=se,Q.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("编辑内容为空,取消保存"),Qo();return}try{if(_e.value==="title")X.value=be.value.trim();else if(_e.value==="chapter"){const de=Q.value,Se=J.value[de].title.match(/^(第[一二三四五六七八九十\d]+章)\s*/);if(Se){const T=`${Se[1]} ${be.value.trim()}`;J.value[de].title=T}else{const E=["一","二","三","四","五","六","七","八","九","十"],D=`第${de<E.length?E[de]:(de+1).toString()}章 ${be.value.trim()}`;J.value[de].title=D}}else if(_e.value==="section"){const[de,se]=Q.value.split("-");J.value[de].sections[se].title=be.value.trim()}else if(_e.value==="subsection"){const[de,se,Se]=Q.value.split("-");J.value[de].sections[se].subsections[Se].title=be.value.trim()}else if(_e.value==="subsubsection"){const[de,se,Se,E]=Q.value.split("-");J.value[de].sections[se].subsections[Se].subsubsections[E].title=be.value.trim()}else if(_e.value==="subsubsection-content"){const[de,se,Se,E]=Q.value.split("-");J.value[de].sections[se].subsections[Se].subsubsections[E].content=be.value.trim()}console.log("保存成功:",be.value.trim()),Ae(),await It(!0),Qo(),At.success("保存成功!")}catch(de){console.error("保存失败:",de),At.error("保存失败,请重试")}},Qo=()=>{ge.value=null,_e.value="",Q.value=null,be.value="",console.log("取消编辑")},Pa=async(de,se)=>{try{if(de==="chapter"){if(J.value.length<=2){At.warning("至少需要保留2个章节");return}J.value.splice(se,1)}else if(de==="section"){const[Se,E]=se.split("-");if(J.value[Se].sections.length<=1){At.warning("每个章节至少需要保留1个小节");return}J.value[Se].sections.splice(E,1)}else if(de==="subsection"){const[Se,E,T]=se.split("-");J.value[Se].sections[E].subsections.splice(T,1)}else if(de==="subsubsection"){const[Se,E,T,D]=se.split("-");J.value[Se].sections[E].subsections[T].subsubsections.splice(D,1)}Ae(),await It(!0),At.success("删除成功!")}catch(Se){console.error("删除失败:",Se),At.error("删除失败,请重试")}},Ai=(de,se)=>{try{if(de==="chapter"){const Se=J.value||[];let E=0;const T=["","一","二","三","四","五","六","七","八","九","十"];Se.forEach(B=>{const $=B.title.match(/^第([一二三四五六七八九十\d]+)章/);if($){let q=0;const le=$[1];if(/^\d+$/.test(le))q=parseInt(le);else{const Oe=T.indexOf(le);Oe>0&&(q=Oe)}E=Math.max(E,q)}});const D=E+1;return`第${T[D]}章`}else if(de==="section"){const Se=se,E=J.value[Se]?.sections||[];let T=0;E.forEach(B=>{const $=B.title.match(/^\d+\.(\d+)/);if($){const q=parseInt($[1])||0;T=Math.max(T,q)}});const D=T+1;return`${Se+1}.${D}`}else if(de==="subsection"){const[Se,E]=se.split("-"),T=J.value[Se]?.sections[E]?.subsections||[];let D=0;T.forEach($=>{const q=$.title.match(/^\d+\.\d+\.(\d+)/);if(q){const le=parseInt(q[1])||0;D=Math.max(D,le)}});const B=D+1;return`${parseInt(Se)+1}.${parseInt(E)+1}.${B}`}else if(de==="subsubsection"){const[Se,E,T]=se.split("-"),D=J.value[Se]?.sections[E]?.subsections[T]?.subsubsections||[];let B=0;D.forEach(q=>{const le=q.title.match(/^\d+\.\d+\.\d+\.(\d+)/);if(le){const Oe=parseInt(le[1])||0;B=Math.max(B,Oe)}});const $=B+1;return`${parseInt(Se)+1}.${parseInt(E)+1}.${parseInt(T)+1}.${$}`}return""}catch(Se){return console.error("生成编号失败:",Se),""}},Ci=(de,se)=>{if(de.target.tagName==="TEXTAREA"||de.target.tagName==="INPUT"||de.target.closest(".edit-input-container")||de.target.closest(".edit-input-wrapper")){de.preventDefault();return}if(_e.value!==""){de.preventDefault();return}De.value=se,de.dataTransfer.effectAllowed="move",de.dataTransfer.setData("text/html",de.target.outerHTML),de.target.style.opacity="0.5"},xi=de=>{de.target.style.opacity="1",De.value=null,pe.value=null},mi=(de,se)=>{de.preventDefault(),de.dataTransfer.dropEffect="move",pe.value=se},oa=de=>{de.currentTarget.contains(de.relatedTarget)||(pe.value=null)},_r=async(de,se)=>{de.preventDefault();const Se=De.value,E=se;if(!(Se===null||Se===E)){try{const T=[...J.value],[D]=T.splice(Se,1);T.splice(E,0,D);const B=["","一","二","三","四","五","六","七","八","九","十"];T.forEach(($,q)=>{const le=$.title.match(/^第[一二三四五六七八九十\d]+章\s*(.+)$/);if(le){const Oe=le[1];$.title=`第${B[q+1]}章 ${Oe}`}else $.title=`第${B[q+1]}章 ${$.title}`;$.sections&&$.sections.length>0&&$.sections.forEach((Oe,Ye)=>{const Ue=Oe.title.match(/^\d+\.\d+\s*(.+)$/);Ue&&(Oe.title=Ue[1]),Oe.subsections&&Oe.subsections.length>0&&Oe.subsections.forEach((ft,wt)=>{const xn=ft.title.match(/^\d+\.\d+\.\d+\s*(.+)$/);xn&&(ft.title=xn[1])})})}),J.value=T,Ae(),await It(!0),At.success("章节顺序已调整,编号已重新排序")}catch(T){console.error("调整章节顺序失败:",T),At.error("调整章节顺序失败,请重试")}De.value=null,pe.value=null}},Si=async(de,se)=>{try{if(de==="chapter"){if(J.value.length>=6){At.warning("最多只能添加6个章节");return}const Se=Ai("chapter",null),E={title:`${Se} 新章节`,sections:[{title:"新小节",subsections:[]}]};J.value.push(E),ti(E,"chapter",J.value.length-1,`${Se} 新章节`)}else if(de==="section"){const E={title:`${Ai("section",se)} 新小节`,subsections:[]};J.value[se].sections.push(E),ti(E,"section",`${se}-${J.value[se].sections.length-1}`,"新小节")}else if(de==="subsection"){const[Se,E]=se.split("-"),T=Ai("subsection",se),D={title:"新子标题",subsubsections:[]};J.value[Se].sections[E].subsections.push(D),ti(D,"subsection",`${Se}-${E}-${J.value[Se].sections[E].subsections.length-1}`,"新子标题")}else if(de==="subsubsection"){const[Se,E,T]=se.split("-"),D=Ai("subsubsection",se),B={title:`${D} 新具体内容要点`,content:""};J.value[Se].sections[E].subsections[T].subsubsections||(J.value[Se].sections[E].subsections[T].subsubsections=[]),J.value[Se].sections[E].subsections[T].subsubsections.push(B),ti(B,"subsubsection",`${Se}-${E}-${T}-${J.value[Se].sections[E].subsections[T].subsubsections.length-1}`,`${D} 新具体内容要点`)}Ae(),await It(!0)}catch(Se){console.error("添加失败:",Se),At.error("添加失败,请重试")}},ha=async(de,se)=>{console.log("开始填充AIPPT内容...");try{const Se=`请为以下PPT数据填充内容,要求:
  1600. 1. title字段:15字以内
  1601. 2. text字段:20-50字以内
  1602. 3. 内容要专业、实用、简洁
  1603. 4. 保持JSON格式不变,只填充空的内容
  1604. 5. 请自由发挥,生成丰富多样的标题和内容
  1605. 6. 重要:必须保持原有的幻灯片数量和结构,不能删除或合并任何幻灯片
  1606. 7. 对于每个content类型的幻灯片,确保items数组有4个元素
  1607. PPT主题:${se}
  1608. PPT数据:${JSON.stringify(de,null,2)}
  1609. 请直接返回完整的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 D=JSON.parse(T.trim());if(console.log("AI返回的AIPPT数据解析成功:",D),Array.isArray(D))return console.log("AIPPT内容填充完成,原始数量:",de.length,"填充后数量:",D.length),D.length!==de.length&&(console.warn("警告:AI返回的幻灯片数量与原始数量不一致!"),console.warn("原始数量:",de.length,"AI返回数量:",D.length)),D;throw new Error("AI返回的数据不是数组格式")}catch(D){throw console.error("解析AI返回的JSON失败:",D),console.log("AI返回的原始内容:",T),new Error("AI返回的数据格式不正确")}else throw new Error("AI返回内容为空或格式不正确")}catch(Se){throw console.error("填充AIPPT内容失败:",Se),new Error("填充AIPPT内容失败: "+Se.message)}},Ge=()=>{if(!o.value)return!0;const de={title:X.value,stats:te.value,chapters:J.value};return JSON.stringify(de)!==JSON.stringify(o.value)},We=()=>i.value?JSON.stringify(Ne.value)!==JSON.stringify(i.value):!0,ne=(de,se)=>{if(de.match(/^第[一二三四五六七八九十\d]+章/))return de;const Se=["一","二","三","四","五","六","七","八","九","十"];return`第${se<Se.length?Se[se]:(se+1).toString()}章 ${de}`},Ie=de=>de.replace(/^第[一二三四五六七八九十\d]+章\s*/,""),Ve=(de,se)=>{let Se=`# ${se}
  1610. `;return de.forEach((E,T)=>{Se+=`## ${E.title}
  1611. `,E.sections&&E.sections.length>0&&E.sections.forEach((D,B)=>{Se+=`### ${D.title}
  1612. `,D.subsections&&D.subsections.length>0&&D.subsections.forEach(($,q)=>{Se+=`#### ${$.title}
  1613. `,$.subsubsections&&$.subsubsections.length>0&&$.subsubsections.forEach((le,Oe)=>{Se+=`- ${le.title}
  1614. `,le.content&&le.content.trim()&&(Se+=`${le.content}
  1615. `)})})}),Se+=`
  1616. `}),Se},Ut=async(de,se,Se,E)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!de||!se)return console.log("缺少conversationId或大纲数据,跳过后端保存"),!1;a.value=!0;const T=Ve(se,Se);console.log("直接保存大纲到后端:",{ai_conversation_id:de,markdownContent:T});const D=await Bn.savePPTOutline({ai_conversation_id:de,ppt_content:T});return D.statusCode===200?(console.log("大纲已直接保存到后端服务器,conversation_id:",de),!0):(console.error("直接保存到后端服务器失败:",D),!1)}catch(T){return console.error("直接保存大纲失败:",T),!1}finally{a.value=!1}},It=async(de=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!r.value||!J.value)return console.log("缺少ai_conversation_id或大纲数据,跳过后端保存"),!1;if(!de&&!Ge())return console.log("大纲数据未发生变化,跳过保存"),!1;a.value=!0;const se=Ve(J.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(J.value))},!0):(console.error("保存到后端服务器失败:",Se),!1)}catch(se){return console.error("保存大纲失败:",se),!1}finally{a.value=!1}},rn=()=>{M.value=!0,setTimeout(()=>{M.value=!1},1e3)},dn=()=>{try{if(!J.value||J.value.length===0){At.warning("请先生成大纲后再使用WPS AI PPT");return}ox(),rn(),_.value="https://aippt.wps.cn/aippt/",P.value=!0,At.success("正在加载WPS AI PPT..."),console.log("WPS AI PPT集成页面已打开")}catch(de){console.error("WPS AI PPT加载失败:",de),At.error("WPS AI PPT加载失败,请稍后重试")}},kn=()=>{console.log("iframe加载失败"),At.warning("页面加载失败,请尝试其他选项或检查网络连接")};Y(null);const or=()=>{try{console.log("打开测试PPT"),P.value=!0,_.value=R.value.link_url,At.success("正在打开测试PPT...")}catch(de){console.error("打开测试PPT失败:",de),At.error("打开测试PPT失败,请重试")}},Vn=()=>{if(console.log("返回步骤二:编辑大纲"),!J.value||J.value.length===0){console.log("大纲数据未加载,重新加载历史记录数据");const de=En.value.find(se=>se.id===r.value);if(de)if(de.rawData&&de.rawData.ppt_outline&&de.rawData.ppt_outline.trim())try{const se=JSON.parse(de.rawData.ppt_outline);J.value=se.chapters,X.value=se.title||"安全培训大纲",te.value=ue(se.chapters),v.value=de.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=()=>{ie.value>0?ie.value--:ie.value=dt.value.length-1},sr=()=>{ie.value<dt.value.length-1?ie.value++:ie.value=0},nr=de=>{ie.value=de,Fe.value&&Ee.value[de]&&(Re.value={...Ee.value[de]})},Or=de=>{ht.value=de,console.log("切换到PPT幻灯片:",de),Vt(()=>{const se=Sp.value;if(se){const E=de*146-se.clientWidth/2+73;se.scrollLeft=Math.max(0,E),console.log(`缩略图条已滚动到第${de+1}页,位置:${E}`)}})},cr=de=>{de.preventDefault();const se=de.currentTarget,Se=de.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(`
  1617. `)||"内容",type:se.type})),Na(),ie.value=0,Re.value={...Ee.value[0]},At.success("生成的PPT数据加载成功"),console.log("加载的PPT页数:",Ee.value.length);return}console.log("加载默认template5内容");const de=[{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=de,Na(),ie.value=0,Re.value={...de[0]},console.log("加载的PPT页数:",de.length)},we=de=>{const se=de.target;se.classList.contains("slide-title")?Re.value.title=se.textContent:se.classList.contains("slide-body")&&(Re.value.content=se.textContent),Ee.value[ie.value]&&(Ee.value[ie.value]={...Re.value}),Na()},ae=Y(!1),fe=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 Ft();break;default:At.warning("未知的下载选项")}}catch(de){console.error("导出失败:",de),At.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 de=`请基于以下安全培训内容生成完整的考试题目:
  1618. 培训主题:${X.value||"安全培训"}
  1619. 培训内容:
  1620. ${Ne.value.map((Se,E)=>{const T=Se.elements?.map(D=>D.type==="text"?D.content.replace(/<[^>]*>/g,""):"").filter(D=>D.trim()).join(" ");return`第${E+1}页:${T}`}).join(`
  1621. `)}
  1622. 请严格按照以下格式生成考试题目:
  1623. 一、单选题(每题4分,共60分)
  1624. 1. 题目内容
  1625. A. 选项A
  1626. B. 选项B
  1627. C. 选项C
  1628. D. 选项D
  1629. 正确答案:X
  1630. 解析:详细解析内容
  1631. 2. 题目内容
  1632. A. 选项A
  1633. B. 选项B
  1634. C. 选项C
  1635. D. 选项D
  1636. 正确答案:X
  1637. 解析:详细解析内容
  1638. 二、多选题(每题4分,共20分)
  1639. 1. 题目内容
  1640. A. 选项A
  1641. B. 选项B
  1642. C. 选项C
  1643. D. 选项D
  1644. 正确答案:AB
  1645. 解析:详细解析内容
  1646. 三、判断题(每题2分,共20分)
  1647. 1. 题目内容
  1648. 正确答案:正确/错误
  1649. 解析:详细解析内容
  1650. 四、简答题(每题10分,共20分)
  1651. 1. 题目内容
  1652. 答题要点:详细答案内容和评分标准
  1653. 2. 题目内容
  1654. 答题要点:详细答案内容和评分标准
  1655. 3. 题目内容
  1656. 答案:详细答案内容和评分标准
  1657. 重要要求:
  1658. 1. 必须严格按照上述格式输出,不能省略任何内容
  1659. 2. 单选题15道(每题2分,共30分),多选题10道(每题3分,共30分),判断题10道(每题2分,共20分),简答题2道(每题10分,共20分)
  1660. 3. 总分控制在100分,不包含填空题
  1661. 4. 题目要全面覆盖培训内容的主要知识点
  1662. 5. 每道题都要包含正确答案和详细解析
  1663. 6. 简答题的答案必须详细具体,不能写"未设置"或"待补充"
  1664. 7. 所有答案都要具体详细,不能省略或留空
  1665. 8. 严格按照示例格式,每道简答题后面必须跟"答题要点:"开头的详细内容
  1666. 9. 简答题答案必须基于题目内容提供具体的知识点和实际应用示例
  1667. 10. 答案内容要丰富详实,至少包含3-5个要点,每个要点都要有具体说明
  1668. 11. 每道简答题的答题要点必须包含:核心概念解释、关键步骤分析、实际应用举例、注意事项说明
  1669. 12. 答题要点内容要具体可操作,不能是空泛的指导性语言
  1670. 13. 必须为每道简答题提供完整的答题要点,不能留空或写"未设置"`,se=await Bn.reProduceSingleQuestion({message:de});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||"安全培训"}`),At.success("考试题目生成成功!")}else throw new Error("AI生成考试题目失败")}catch(de){console.error("生成考试题目失败:",de),At.error("生成考试题目失败: "+de.message)}finally{g.value=!1,w.value=!1}},Ft=async()=>{try{console.log("开始生成培训讲义文档..."),b.value=!0,w.value=!0;const de=`请基于以下安全培训内容生成培训讲义:
  1671. 培训主题:${X.value||"安全培训"}
  1672. 培训内容:
  1673. ${Ne.value.map((Se,E)=>{const T=Se.elements?.map(D=>D.type==="text"?D.content.replace(/<[^>]*>/g,""):"").filter(D=>D.trim()).join(" ");return`第${E+1}页:${T}`}).join(`
  1674. `)}
  1675. 要求:
  1676. 1. 生成完整的培训讲义,使用Markdown格式
  1677. 2. 包含以下结构:
  1678. - 封面页(标题、副标题、日期)
  1679. - 目录页
  1680. - 各章节内容(使用# ## ###等标题层级)
  1681. - 要点列表(使用- 或 1. 2. 等)
  1682. - 重要概念(使用**粗体**标记)
  1683. - 注意事项(使用> 引用格式)
  1684. - 总结页
  1685. 3. 内容要详细、专业、易懂
  1686. 4. 适合作为培训教材使用
  1687. 5. 使用标准的Markdown语法
  1688. 请生成完整的培训讲义文档,使用规范的Markdown格式。`,se=await Bn.reProduceSingleQuestion({message:de});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||"安全培训"}`),At.success("培训讲义生成成功!")}else throw new Error("AI生成培训讲义失败")}catch(de){console.error("生成培训讲义失败:",de),At.error("生成培训讲义失败: "+de.message)}finally{b.value=!1,w.value=!1}},Tt=async(de,se)=>{try{console.log("开始生成Word文档,内容:",de);const Se=String(de);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,`
  1689. `);const T=yn(E,se),D=new Blob([T],{type:"application/msword"}),B=URL.createObjectURL(D),$=document.createElement("a");$.setAttribute("href",B),$.setAttribute("download",`${se}-${new Date().toISOString().split("T")[0]}.doc`),$.style.visibility="hidden",document.body.appendChild($),$.click(),document.body.removeChild($),URL.revokeObjectURL(B),console.log("Word文档已下载")}catch(Se){console.error("下载Word文档失败:",Se);const E=String(de),T=new Blob([E],{type:"text/plain;charset=utf-8"}),D=window.URL.createObjectURL(T),B=document.createElement("a");B.href=D,B.download=`${se}-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(D),console.log("已降级为文本文件下载")}},yn=(de,se)=>{let Se=de.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>
  1690. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  1691. xmlns:w="urn:schemas-microsoft-com:office:word"
  1692. xmlns="http://www.w3.org/TR/REC-html40">
  1693. <head>
  1694. <meta charset="utf-8">
  1695. <meta name="ProgId" content="Word.Document">
  1696. <meta name="Generator" content="Microsoft Word 15">
  1697. <meta name="Originator" content="Microsoft Word 15">
  1698. <title>${se||"培训讲义"}</title>
  1699. <style>
  1700. body {
  1701. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  1702. font-size: 14px;
  1703. line-height: 1.6;
  1704. margin: 24px;
  1705. color: #000;
  1706. }
  1707. .header {
  1708. text-align: center;
  1709. margin-bottom: 14px;
  1710. }
  1711. .doc-title {
  1712. font-size: 24px;
  1713. font-weight: bold;
  1714. margin-bottom: 14px;
  1715. color: #000;
  1716. }
  1717. .content {
  1718. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  1719. font-size: 14px;
  1720. line-height: 1.6;
  1721. color: #000;
  1722. margin: 0;
  1723. padding: 0;
  1724. }
  1725. .header {
  1726. text-align: center;
  1727. margin-bottom: 30px;
  1728. }
  1729. .doc-title {
  1730. font-size: 24px;
  1731. font-weight: bold;
  1732. margin-bottom: 20px;
  1733. color: #333;
  1734. }
  1735. h1 {
  1736. font-size: 20px;
  1737. font-weight: bold;
  1738. margin: 20px 0 15px 0;
  1739. color: #333;
  1740. }
  1741. h2 {
  1742. font-size: 18px;
  1743. font-weight: bold;
  1744. margin: 18px 0 12px 0;
  1745. color: #333;
  1746. }
  1747. h3 {
  1748. font-size: 16px;
  1749. font-weight: bold;
  1750. margin: 15px 0 10px 0;
  1751. color: #333;
  1752. }
  1753. h4 {
  1754. font-size: 14px;
  1755. font-weight: bold;
  1756. margin: 12px 0 8px 0;
  1757. color: #333;
  1758. }
  1759. p {
  1760. margin: 10px 0;
  1761. text-align: justify;
  1762. }
  1763. .list-item {
  1764. margin: 5px 0;
  1765. padding-left: 20px;
  1766. }
  1767. strong {
  1768. font-weight: bold;
  1769. }
  1770. em {
  1771. font-style: italic;
  1772. }
  1773. </style>
  1774. </head>
  1775. <body>
  1776. <div class='header'>
  1777. <div class='doc-title'>${se||"培训讲义"}</div>
  1778. </div>
  1779. <div class='content'>
  1780. ${Se}
  1781. </div>
  1782. </body>
  1783. </html>
  1784. `},Cn=()=>{try{const de={slides:Ne.value,timestamp:Date.now(),title:X.value||"安全培训演示文稿"};localStorage.setItem("safetyHazardModifiedPPT",JSON.stringify(de)),console.log("PPT修改已自动保存")}catch(de){console.error("保存PPT数据失败:",de)}},On=async()=>{if(Ne.value.length===0){At.warning("没有可导出的PPT内容,请先生成PPT");return}try{const de=(await Mf(async()=>{const{default:E}=await import("./pptxgen.es-D9PcTWAG.js");return{default:E}},__vite__mapDeps([0,1]))).default,se=new de;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 mr(se,T)}const Se=`安全培训-${X.value||"演示文稿"}-${new Date().toISOString().split("T")[0]}.pptx`;await se.writeFile({fileName:Se}),console.log("PPTX文件已生成并下载"),At.success(`成功导出PPTX文件!
  1785. 文件名: ${Se}`)}catch(de){console.error("导出PPTX失败:",de),At.error("导出PPTX失败: "+de.message)}},mr=async(de,se)=>{const Se=de.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(de,se)=>{try{const T=se.left/960*10,D=se.top/540*5.625,B=se.width/960*10,$=se.height/540*5.625;switch(se.type){case"text":Wo(de,se,T,D,B,$);break;case"image":await Pr(de,se,T,D,B,$);break;case"shape":Io(de,se,T,D,B,$);break}}catch(Se){console.warn(`添加元素失败 ${se.type}:`,Se)}},Wo=(de,se,Se,E,T,D)=>{const B=oo(se.content),$=ni(se.content),q=$.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:$.align,finalAlign:$.align||"left"}),de.addText(B,{x:Se,y:E,w:T,h:D,fontSize:$.fontSize||16,color:Vo(q),fontFace:se.defaultFontName||"微软雅黑",align:$.align||"left",valign:"middle",bold:$.bold||!1,wrap:!0,transparency:100-le,line:null})},Pr=async(de,se,Se,E,T,D)=>{if(!se.src){console.warn("图片元素没有src属性:",se);return}try{const B=se.opacity!==void 0?Math.round(se.opacity*100):100,$=100-B;if(console.log("处理图片元素:",{id:se.id,srcType:se.src.startsWith("data:image")?"base64":"url",srcLength:se.src.length,opacity:B,transparency:$}),se.src.startsWith("data:image")){if(console.log("使用base64图片数据"),!se.src.includes(","))throw new Error("Base64数据格式错误:缺少逗号分隔符");const[q,le]=se.src.split(",");if(!q||!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(Ye){throw console.error("SVG转PNG失败:",Ye),new Error("SVG图像转换失败: "+Ye.message)}}try{de.addImage({data:Oe,x:Se,y:E,w:T,h:D,transparency:$,sizing:{type:"cover",w:T,h:D},line:null}),console.log("Base64图片添加成功")}catch(Ye){console.error("PptxGenJS添加图片失败:",Ye);try{const Ue=Oe.split(",")[1];de.addImage({data:Ue,x:Se,y:E,w:T,h:D,transparency:$,sizing:{type:"cover",w:T,h:D},line:null}),console.log("使用纯base64数据添加成功")}catch(Ue){throw console.error("重试添加图片也失败:",Ue),Ye}}}else{console.log("转换URL图片为base64:",se.src);const q=await io(se.src);de.addImage({data:q,x:Se,y:E,w:T,h:D,transparency:$,sizing:{type:"cover",w:T,h:D},line:null}),console.log("URL图片转换并添加成功")}}catch(B){console.error("添加图片失败:",B),console.error("图片元素详情:",se),de.addText(`图片加载失败: ${B.message}`,{x:Se,y:E,w:T,h:D,fontSize:10,color:"FF0000",align:"center",valign:"middle",bold:!0})}},Io=(de,se,Se,E,T,D)=>{const B=se.fill||se.color||"#007bff";let $=0;if(B.startsWith("rgba(")){const le=B.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/);if(le){const Oe=parseFloat(le[4]);$=Math.round((1-Oe)*100)}}else se.opacity!==void 0&&($=100-Math.round(se.opacity*100));const q=Vo(B);se.id&&se.id.includes("overlay")&&console.log(`Overlay元素调试 ${se.id}:`,{originalFill:se.fill,fillColor:B,convertedColor:q,opacity:se.opacity,transparency:$,alphaFromRgba:B.startsWith("rgba(")?parseFloat(B.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/)?.[4]||"1"):null}),de.addShape("rect",{x:Se,y:E,w:T,h:D,fill:{type:"solid",color:q,transparency:$},line:null})},oo=de=>{if(!de)return"";const se=document.createElement("div");return se.innerHTML=de,se.textContent||se.innerText||""},ni=de=>{if(!de)return{};const se={},Se=de.match(/font-size:\s*(\d+)px/);if(Se){const T=parseInt(Se[1]),D=1105/960,B=.7;se.fontSize=Math.round(T/D*B),console.log(`字体大小转换: 预览${T}px -> 导出${se.fontSize}px (缩放因子: ${D.toFixed(3)}, 额外缩放: ${B})`)}const E=de.match(/color:\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\([^)]+\)|rgba\([^)]+\))/);return E&&(se.color=E[1]),de.includes("text-align: center")?se.align="center":de.includes("text-align: right")?se.align="right":se.align="left",(de.includes("<strong>")||de.includes("<b>"))&&(se.bold=!0),se},Oi=de=>new Promise((se,Se)=>{try{const E=new Image;E.onload=()=>{try{const T=document.createElement("canvas"),D=T.getContext("2d");T.width=E.width||960,T.height=E.height||540,D.imageSmoothingEnabled=!0,D.imageSmoothingQuality="high",D.drawImage(E,0,0,T.width,T.height);const B=T.toDataURL("image/png",1);console.log("SVG转PNG成功:",{originalSvgLength:de.length,pngDataUrlLength:B.length,canvasSize:`${T.width}x${T.height}`}),se(B)}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=de}catch(E){console.error("SVG转换初始化失败:",E),Se(new Error("SVG转换初始化失败: "+E.message))}}),io=de=>new Promise((se,Se)=>{const E=new Image;E.crossOrigin="anonymous",E.onload=()=>{const T=document.createElement("canvas"),D=T.getContext("2d");T.width=E.width,T.height=E.height,D.drawImage(E,0,0);try{const B=T.toDataURL("image/png");se(B)}catch(B){Se(B)}},E.onerror=()=>{Se(new Error("图片加载失败"))},E.src=de}),Vo=de=>{if(!de)return"FFFFFF";if(/^[0-9A-Fa-f]{6}$/.test(de))return de.toUpperCase();if(de.startsWith("#")){const D=de.substring(1);if(D.length===3)return(D[0]+D[0]+D[1]+D[1]+D[2]+D[2]).toUpperCase();if(D.length===6)return D.toUpperCase()}const se=de.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(se){const D=parseInt(se[1]).toString(16).padStart(2,"0"),B=parseInt(se[2]).toString(16).padStart(2,"0"),$=parseInt(se[3]).toString(16).padStart(2,"0");return(D+B+$).toUpperCase()}const Se=de.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(Se){const D=parseInt(Se[1]).toString(16).padStart(2,"0"),B=parseInt(Se[2]).toString(16).padStart(2,"0"),$=parseInt(Se[3]).toString(16).padStart(2,"0");return(D+B+$).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=de.toLowerCase();return E[T]?E[T]:(console.warn(`无法识别的颜色格式: ${de},使用默认黑色`),"000000")},Na=()=>{const de=Ne.value&&Ne.value.length>0?Ne.value:Ee.value;if(!de||de.length===0){dt.value=[eh,cg,dg,fg,pg],console.log("PPT内容为空,使用默认template5图片,共",dt.value.length,"张");return}dt.value=de.map((se,Se)=>{if(Qe.value==="red"){const T=[uS,PB,NB,RB,BB];return console.log(`幻灯片 ${Se+1} 类型: ${se.type||"content"}, ID: ${se.id}`),T[Se%5]}if(Qe.value==="blueTech"){const T=[LB,FB,UB,zB,$B];return console.log(`幻灯片 ${Se+1} 类型: ${se.type||"content"}, ID: ${se.id}`),T[Se%5]}return[eh,cg,dg,fg,pg][Se%5]}),console.log("缩略图更新完成,共",dt.value.length,"页")},ml=(de,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=[eh,cg,dg,fg,pg];switch(de){case"cover":return eh;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){Qe.value==="redElegant"||Qe.value==="red"?dt.value=[uS,PB,NB,RB,BB]:Qe.value==="blueTech"?dt.value=[LB,FB,UB,zB,$B]:dt.value=[eh,cg,dg,fg,pg],dt.value=[...dt.value],console.log("动态模板内容为空,使用风格化图片,共",dt.value.length,"张"),console.log("当前风格:",Qe.value),console.log("更新后的缩略图数组:",dt.value);return}dt.value=Ne.value.map((de,se)=>{if(Qe.value==="redElegant"||Qe.value==="red"){const Se=[uS,PB,NB,RB,BB];return console.log(`动态模板幻灯片 ${se+1} 类型: ${de.type||"content"}, ID: ${de.id}`),Se[se%5]}if(Qe.value==="blueTech"){const Se=[LB,FB,UB,zB,$B];return console.log(`动态模板幻灯片 ${se+1} 类型: ${de.type||"content"}, ID: ${de.id}`),Se[se%5]}return ml(de.type,Qe.value)}),dt.value=[...dt.value],console.log("动态模板缩略图更新完成,共",dt.value.length,"页")},h2=async de=>{ce.value=de;const se=_t.value[de];if(console.log("选择模板:",se.title),se.style&&(Qe.value=se.style,console.log("设置模板风格:",se.style)),se.type==="dynamic"){if(ut.value=!0,Ne.value&&Ne.value.length>0?(Xc(),console.log("缩略图已更新为",se.style,"风格")):(console.log("准备更新缩略图,当前风格:",Qe.value),Xc(),console.log("缩略图已更新为",se.style,"风格(无PPT数据)"),console.log("最终缩略图数组:",dt.value)),Vt(()=>{dt.value=[...dt.value],console.log("强制更新缩略图完成")}),J.value&&J.value.length>0)try{const Se=v0e(J.value,X.value);Se.success?(rt.value=Se.preview,he.value=Se.preview,console.log("动态模板预览生成成功:",rt.value)):(console.error("动态模板预览生成失败:",Se.error),At.error("动态模板预览生成失败: "+Se.error))}catch(Se){console.error("动态模板预览生成异常:",Se),At.error("动态模板预览生成异常: "+Se.message)}}else if(ut.value=!1,rt.value=null,he.value=null,se.type==="static"&&se.templateData&&(console.log("选择静态模板:",se.title,"等待用户点击应用模板"),console.log("准备更新静态模板缩略图,当前风格:",Qe.value),Na(),console.log("静态模板缩略图已更新为",se.style,"风格"),J.value&&J.value.length>0))try{const Se=v0e(J.value,X.value);Se.success?(rt.value=Se.preview,he.value=Se.preview,console.log("Template7预览生成成功:",rt.value)):console.error("Template7预览生成失败:",Se.error)}catch(Se){console.error("Template7预览生成异常:",Se)}},xm=async()=>{console.log("应用模板:",_t.value[ce.value].title),y.value=!0,w.value=!0;try{if(ut.value){console.log("使用动态模板生成PPT...");let de,se,Se;if(J.value&&J.value.length>0)de=await ke(J.value),se=X.value||"用户生成的大纲",Se=`${de.length}章节结构演示`,console.log("使用用户大纲数据:",se,`共${de.length}个章节`),console.log("转换后的用户大纲数据结构:",JSON.stringify(de,null,2));else if(tt.value!==null&&tt.value!==void 0){const B=St.value[tt.value];de=B.data,se=B.title,Se=B.description,console.log("使用mock数据:",B.title,B.description)}else de=St.value[0].data,se=St.value[0].title,Se=St.value[0].description,console.log("使用默认测试数据:",St.value[0].title);const E=await HYt(de,se,Qe.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,ht.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await Je(T,de,se),console.log("动态模板应用完成,共",Ne.value.length,"张幻灯片"),E.warnings&&E.warnings.length>0&&At.warning("模板应用成功,但有以下建议: "+E.warnings.join(", ")),E.recommendations&&E.recommendations.length>0&&console.log("优化建议:",E.recommendations),Xc();const D=J.value&&J.value.length>0?`动态模板应用完成!使用用户大纲数据 (${de.length}个章节)`:`动态模板应用完成!使用数据: ${se} (${Se})`;At.success(D),Ne.value&&Ne.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Ne.value)),console.log("动态模板PPT数据已保存到本地存储:",Ne.value.length,"张幻灯片")),Fe.value=!0,await bn(!0,!0),await xt(),En.value.forEach(B=>{B.isActive=B.id===r.value}),Vt(()=>{const B=Sp.value;B&&(B.scrollLeft=0)})}else{console.log("使用静态模板生成PPT...");const de=_t.value[ce.value];if(console.log("检查模板数据:",{title:de.title,type:de.type,hasTemplateData:!!de.templateData,templateDataLength:de.templateData?.length}),de.type==="static"&&de.templateData){if(de.title==="红色主题PPT"){console.log("应用Template7红色主题模板:",de.title);try{if(J.value&&J.value.length>0){console.log("开始基于template_7.json生成动态多页结构..."),b.value=!0;const Se=I9(J.value,X.value);Fe.value=!0,ht.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await Je(Se,J.value,X.value),b.value=!1,console.log("Template7动态多页结构生成完成,共",Ne.value.length,"页")}else{const Se=JSON.parse(JSON.stringify(de.templateData));Fe.value=!0,ht.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await Je(Se,[],X.value||"默认标题"),console.log("Template7默认模板加载成功,共",Ne.value.length,"页")}Xc();const se=J.value&&J.value.length>0?`红色主题模板应用完成!使用用户大纲数据 (${J.value.length}个章节)`:"红色主题模板应用完成!使用默认内容";At.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,ht.value=0,await bn(!0,!0),await xt(),En.value.forEach(Se=>{Se.isActive=Se.id===r.value}),Vt(()=>{const Se=Sp.value;Se&&(Se.scrollLeft=0)})}catch(se){console.error("应用Template7静态模板失败:",se),At.error("应用Template7静态模板失败: "+se.message)}}if(de.title==="蓝色科技主题PPT"){console.log("应用Template8蓝色科技主题模板:",de.title);try{if(J.value&&J.value.length>0){console.log("开始基于template_8.json生成动态多页结构..."),b.value=!0;const Se=D9(J.value,X.value);Fe.value=!0,ht.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await Je(Se,J.value,X.value),b.value=!1,console.log("Template8动态多页结构生成完成,共",Ne.value.length,"页")}else{const Se=JSON.parse(JSON.stringify(de.templateData));Fe.value=!0,ht.value=0,Pe.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await Je(Se,[],X.value||"默认标题"),console.log("Template8默认模板加载成功,共",Ne.value.length,"页")}Xc();const se=J.value&&J.value.length>0?`蓝色科技主题模板应用完成!使用用户大纲数据 (${J.value.length}个章节)`:"蓝色科技主题模板应用完成!使用默认内容";At.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),At.error("应用Template8静态模板失败: "+se.message)}}}else if(J.value&&J.value.length>0){console.log("开始生成PPT数据...");const se=v2(J.value,X.value);console.log("生成的AIPPT数据:",se);const Se=await ha(se,X.value);console.log("AI填充后的AIPPT数据:",Se),await m2(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,"张幻灯片")),At.success("模板应用完成,内容已填充!"),await xt(),En.value.forEach(E=>{E.isActive=E.id===r.value}),Fe.value=!0,Vt(()=>{const E=Sp.value;E&&(E.scrollLeft=0,console.log("缩略图条已滚动到第一页"))})}else await m2(),At.success("模板应用完成!"),Fe.value=!0}}catch(de){console.error("应用模板失败:",de),At.error("应用模板失败: "+de.message)}finally{y.value=!1,w.value=!1}},xp=()=>{const de=Ne.value[ht.value]||null;return console.log("获取当前PPT幻灯片:",de),console.log("当前索引:",ht.value),console.log("总幻灯片数:",Ne.value.length),de},G5=()=>{const de=Ne.value[ht.value]||null;if(!de)return null;if(b.value&&de.elements){const se=JSON.parse(JSON.stringify(de));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 de},K5=()=>{const de=G5();if(!de)return"#ffffff";if(de.background?.type==="gradient"){const se=de.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 de.background?.color||"#667eea"},f9=de=>{if(!de)return"#667eea";if(de.background){if(de.background.type==="gradient"){const se=de.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(de.background.color)return de.background.color}return de.elements&&de.elements.length>0&&de.elements.find(Se=>Se.type==="shape"&&Se.fill==="#ffffff"||Se.type==="shape"&&Se.fill==="white")?"#ffffff":"#667eea"},p9=de=>{const E=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,T=1105*E/960,D=603*E/540,B={position:"absolute",left:(de.left||de.x||0)*T+"px",top:(de.top||de.y||0)*D+"px",width:(de.width||100)*T+"px",height:(de.height||50)*D+"px",zIndex:de.zIndex||1};if(de.defaultColor&&(B.color=de.defaultColor),de.defaultFontName&&(B.fontFamily=de.defaultFontName),de.opacity!==void 0&&(B.opacity=de.opacity),de.type==="shape"&&de.fill&&(B.backgroundColor=de.fill,B.borderRadius=de.viewBox?"8px":"0"),de.type==="text"&&de.content){const $=de.content.match(/text-align:\s*([^;]+)/);$&&(B.textAlign=$[1].trim()),de.textType==="item"&&de.content.includes("目录项")&&(B.textAlign="center")}return B},Y5=()=>{Ne.value.length>0&&(Ne.value=[...Ne.value])};jn(()=>{window.addEventListener("resize",Y5)}),hl(()=>{window.removeEventListener("resize",Y5)});const Q5=de=>{const E=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,T=1105*E,D=603*E,B=960,$=540,q=T/B,le=D/$;return{position:"absolute",left:(de.left||de.x)*q+"px",top:(de.top||de.y)*le+"px",width:de.width*q+"px",height:de.height*le+"px",zIndex:de.zIndex||1}},h9=de=>({text:"文本",image:"图片",shape:"形状"})[de]||de,g9=de=>({width:"100%",height:"100%",backgroundColor:de.fill,borderRadius:de.viewBox?"8px":"0",opacity:de.opacity||1}),g2=de=>{Rt.value=de,console.log("选中PPT元素:",de)},Z5=de=>{console.log("PPT预览模式下不允许文字编辑"),At.info("PPT预览模式下不允许编辑文字,只能更换图片")},v9=de=>{tn.value=de.target.innerHTML},m9=de=>{const se=xp();se.elements[de]&&(se.elements[de].content=tn.value,console.log("文本编辑保存成功"),At.success("文本编辑已保存"),Cn()),Lt.value=-1,tn.value="",console.log("保存PPT元素编辑:",de)},X5=(de,se)=>{if(de.detail>=2)return;const E=xp().elements[se];if(E.type==="text"){console.log("PPT预览模式下,文字元素不允许拖拽");return}if(Lt.value===se&&E.type==="text"&&tn.value!=="")return;Rt.value!==se&&g2(se);const T=de.clientX,D=de.clientY,B=E.left,$=E.top,q=Oe=>{const Ye=Oe.clientX-T,Ue=Oe.clientY-D;E.left=B+Ye,E.top=$+Ue},le=()=>{document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",le),Cn(),console.log("拖拽完成,已自动保存")};document.addEventListener("mousemove",q),document.addEventListener("mouseup",le),de.preventDefault()},Sm=(de,se,Se)=>{Rt.value!==se&&g2(se);const T=xp().elements[se];if(T.type==="text"){console.log("PPT预览模式下,文字元素不允许调整大小");return}const D=de.clientX,B=de.clientY,$=T.width,q=T.height,le=T.left,Oe=T.top,Ye=ft=>{const wt=ft.clientX-D,xn=ft.clientY-B;switch(Se){case"se":T.width=Math.max(20,$+wt),T.height=Math.max(20,q+xn);break;case"sw":T.width=Math.max(20,$-wt),T.height=Math.max(20,q+xn),T.left=le+($-T.width);break;case"ne":T.width=Math.max(20,$+wt),T.height=Math.max(20,q-xn),T.top=Oe+(q-T.height);break;case"nw":T.width=Math.max(20,$-wt),T.height=Math.max(20,q-xn),T.left=le+($-T.width),T.top=Oe+(q-T.height);break}},Ue=()=>{document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Ue),Cn(),console.log("缩放完成,已自动保存")};document.addEventListener("mousemove",Ye),document.addEventListener("mouseup",Ue),de.preventDefault()},y9=(de,se=null,Se=null)=>new Promise((E,T)=>{const D=new FileReader;D.onload=()=>{const B=new Image;B.onload=()=>{try{const $=document.createElement("canvas"),q=$.getContext("2d");let le,Oe;if(se&&Se?(le=se,Oe=Se):(le=B.width,Oe=B.height),$.width=le,$.height=Oe,q.imageSmoothingEnabled=!0,q.imageSmoothingQuality="high",se&&Se){const Ue=B.width/B.height,ft=se/Se;let wt,xn,wn,vn;Ue>ft?(xn=B.height,wt=B.height*ft,wn=(B.width-wt)/2,vn=0):(wt=B.width,xn=B.width/ft,wn=0,vn=(B.height-xn)/2),q.drawImage(B,wn,vn,wt,xn,0,0,le,Oe)}else q.drawImage(B,0,0);const Ye=$.toDataURL("image/png",1);console.log("高质量图片转换成功:",{fileName:de.name,fileSize:de.size,originalSize:`${B.width}x${B.height}`,canvasSize:`${le}x${Oe}`,targetSize:se&&Se?`${se}x${Se}`:"none",base64Length:Ye.length,format:"PNG"}),E(Ye)}catch($){console.error("Canvas转换失败,使用原始方法:",$),E(D.result)}},B.onerror=()=>{console.error("图片加载失败,使用原始方法"),E(D.result)},B.src=D.result},D.onerror=()=>{T(new Error("图片读取失败: "+D.error?.message))},D.readAsDataURL(de)}),b9=async de=>{console.log("更换PPT图片被触发,索引:",de);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){At.error("图片大小不能超过5MB");return}At.info("正在处理图片...");const B=xp().elements[de],$=B.width,q=B.height;console.log("图片目标尺寸:",{targetWidth:$,targetHeight:q});const le=await y9(E,$,q);if(console.log("图片转换为高质量base64成功,长度:",le.length),console.log("Base64数据预览:",le.substring(0,100)+"..."),B&&B.type==="image"){B.src=le,console.log("图片更换成功,使用base64数据"),At.success("图片更换成功"),Cn();try{console.log("开始保存图片更换后的PPT数据到后端..."),await bn(!1),console.log("图片更换后的PPT数据已保存到后端");const Oe=En.value.find(Ye=>Ye.id===r.value);Oe&&(Oe.ppt_json_content=JSON.stringify(Ne.value),console.log("已更新历史记录列表中的PPT数据"))}catch(Oe){console.error("保存图片更换后的PPT数据失败:",Oe),At.warning("图片更换成功,但保存到后端失败")}}}catch(T){console.error("图片处理过程中发生错误:",T),At.error("图片处理失败: "+T.message)}},se.click()},w9=de=>{const se=de.target.files[0];if(!se)return;if(!se.type.startsWith("image/")){At.warning("请选择图片文件"),de.target.value="";return}const Se=5*1024*1024;if(se.size>Se){At.warning("图片大小不能超过5MB"),de.target.value="";return}try{const E=URL.createObjectURL(se);if(zt.value!==null&&Ne.value.length>0){const T=xp();T&&T.elements[zt.value]&&(T.elements[zt.value].src=E,console.log("图片已更换:",E),At.success("图片更换成功"))}zt.value=null}catch(E){console.error("图片更换失败:",E),At.error("图片更换失败,请重试")}finally{de.target.value=""}},v2=(de,se)=>{try{console.log("开始转换大纲为AIPPT.json格式"),console.log("输入大纲数据:",de),console.log("标题:",se);const Se=[];Se.push({type:"cover",data:{title:se||"安全培训大纲",text:"基于AI生成的培训大纲,包含相关内容"}}),console.log("已添加封面页");const E=de.map((D,B)=>D.title);console.log("目录项:",E),Se.push({type:"contents",data:{items:E}}),console.log("已添加目录页"),de.forEach((D,B)=>{if(console.log(`处理章节 ${B+1}:`,D.title),console.log("章节内容:",D),Se.push({type:"transition",data:{title:D.title,text:D.content||`本章将介绍${D.title}的相关内容`}}),console.log(`已添加章节 ${B+1} 的过渡页`),D.sections&&D.sections.length>0)D.sections.forEach(($,q)=>{console.log(`处理小节 ${q+1}:`,$.title),console.log("小节内容:",$);let le=[];for($.subsections&&$.subsections.length>0?$.subsections.forEach((Oe,Ye)=>{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:$.title,items:le}}),console.log(`已添加小节 ${q+1} 的内容页`)});else{const $=[{title:"",text:""},{title:"",text:""},{title:"",text:""},{title:"",text:""}];Se.push({type:"content",data:{title:D.title,items:$}}),console.log(`已添加章节 ${B+1} 的空内容页`)}}),Se.push({type:"end"}),console.log("转换完成,生成的AIPPT.json格式数据:"),console.log(JSON.stringify(Se,null,2));const T={};return Se.forEach(D=>{T[D.type]=(T[D.type]||0)+1}),console.log("幻灯片类型统计:",T),console.log("总幻灯片数量:",Se.length),Se}catch(Se){return console.error("转换大纲为AIPPT.json格式失败:",Se),[]}},m2=async(de=null,se=!1)=>{try{console.log("开始加载template5数据..."),console.log("template5.json数据加载成功:",h0e);let Se;de?(Se=de,console.log("使用传入的AIPPT数据:",Se)):J.value&&J.value.length>0?(Se=v2(J.value,X.value),console.log("根据大纲生成的AIPPT数据:",Se)):(Se=FYt,console.log("加载默认AIPPT.json数据:",Se));const E=Se.map((T,D)=>{const B=h0e.find($=>$.type===T.type);if(B){const $=JSON.parse(JSON.stringify(B));switch($.id=`generated-slide-${D}`,T.type){case"cover":$.elements.forEach(q=>{q.textType==="title"?q.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: ${q.defaultColor}; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">${T.data.title}</span></strong></p>`:q.textType==="content"&&(q.content=`<p style="text-align: center;"><span style="font-size: 24px; color: ${q.defaultColor};">${T.data.text}</span></p>`)});break;case"contents":if(T.data.items){let q=0;$.elements.forEach(le=>{if(le.textType==="item"&&q<T.data.items.length){const Oe=T.data.items[q];le.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${le.defaultColor};">${q+1}. ${Oe}</span></p>`,q++}})}break;case"content":if($.elements.forEach(q=>{q.textType==="title"&&(q.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: ${q.defaultColor};">${T.data.title}</span></strong></p>`)}),T.data.items&&Array.isArray(T.data.items)){let q=0;$.elements.forEach(le=>{if(le.textType==="itemTitle"&&q<T.data.items.length){const Oe=T.data.items[q];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"&&q<T.data.items.length){const Oe=T.data.items[q];le.content=`<p style="text-align: center;"><span style="font-size: 14px; color: ${le.defaultColor};">${Oe.text}</span></p>`,q++}})}break;case"transition":$.elements.forEach(q=>{q.textType==="title"?q.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${q.defaultColor};">${T.data.title}</span></strong></p>`:q.textType==="content"&&(q.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${q.defaultColor};">${T.data.text}</span></p>`)});break;case"end":$.elements.forEach(q=>{q.textType==="title"?q.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: ${q.defaultColor};">谢谢聆听</span></strong></p>`:q.textType==="content"&&(q.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${q.defaultColor};">感谢您的时间与关注</span></p>`)});break}return $}else return console.warn(`未找到类型为 ${T.type} 的模板,使用默认模板`),{id:`generated-slide-${D}`,type:T.type,elements:[{id:`title-${D}`,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,ht.value=0,console.log("AIPPT数据与template5模板结合完成:",Ne.value),console.log("PPT预览模式已启用:",Pe.value),console.log("当前PPT幻灯片索引:",ht.value),console.log("生成的PPT数据长度:",Ne.value.length),await Vt(),console.log("Vue响应式更新完成"),se?(console.log("需要保存步骤信息到后端"),await bn(!0,!0)):console.log("跳过保存步骤信息,仅加载PPT数据"),Promise.resolve()}catch(Se){return console.error("加载AIPPT.json或template5.json失败:",Se),A9(),Promise.reject(Se)}},A9=()=>{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,ht.value=0,console.log("默认PPT数据生成完成:",Ne.value)},C9=de=>{Le.value=de,console.log("选择下载选项:",it.value[de].title)},x9=()=>{Fe.value=!1,Le.value=0,Ne.value=[],ht.value=0,Rt.value=-1,Lt.value=-1,tn.value="",Wt.value=1,zt.value=null,ie.value=0,dr(),Na(),console.log("已回到模板选择页面,PPT预览状态已清理,模板预览已重新加载")},J5=de=>{if(!de)return de;console.log("原始AI回复:",de),console.log("原始文本长度:",de.length),console.log("原始文本字符码:",Array.from(de).map(se=>se.charCodeAt(0)));try{if(de.includes("%")){const se=decodeURIComponent(de);return console.log("URL解码后:",se),se}if(de.includes("??")){const se=de.replace(/\?\?/g,"");return console.log("清理问号后:",se),se}if(de.includes("\\u")){const se=de.replace(/\\u[\dA-F]{4}/gi,Se=>String.fromCharCode(parseInt(Se.replace(/\\u/g,""),16)));return console.log("Unicode解码后:",se),se}if(de.includes("&")){const se=document.createElement("textarea");se.innerHTML=de;const Se=se.value;return console.log("HTML解码后:",Se),Se}return console.log("无需特殊处理,直接返回"),de}catch(se){return console.warn("字符编码处理失败:",se),de}},S9=de=>{if(!de)return de;const se={br:{},strong:{},em:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},ul:{},li:{},code:{}},Se=document.createElement("div");Se.innerHTML=de;const E=D=>{if(D.nodeType===Node.TEXT_NODE)return D.textContent;if(D.nodeType===Node.ELEMENT_NODE){const B=D.tagName.toLowerCase();if(se[B]){const $=document.createElement(B);for(let q of D.childNodes){const le=E(q);le&&(typeof le=="string"?$.appendChild(document.createTextNode(le)):$.appendChild(le))}return $.outerHTML}else{let $="";for(let q of D.childNodes)$+=E(q)||"";return $}}return""};let T="";for(let D of Se.childNodes)T+=E(D)||"";return T},ex=de=>{if(!de)return de;console.log("开始转换Markdown:",de);let se=de;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 D=(E.match(/#/g)||[]).length,B=Math.min(D,6),$=`<h${B}>${T.trim()}</h${B}>`;return console.log("标题转换结果:",$),$}),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 D=(E.match(/#/g)||[]).length,B=Math.min(D,6),$=`<br><h${B}>${T.trim()}</h${B}>`;return console.log("<br>标签后标题转换结果:",$),$}),se=se.replace(/```(.*?)```/gs,"<code>$1</code>"),se=se.replace(/`(.*?)`/g,"<code>$1</code>"),se=se.replace(/<\/?[^>]*$/g,""),console.log("Markdown转换后:",se);const Se=S9(se);return console.log("最终清理后:",Se),Se},E9=async de=>{try{if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(de),At.success("复制成功!");return}catch(Se){console.warn("Clipboard API 失败,使用降级方案:",Se)}const se=document.createElement("textarea");se.value=de,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"))At.success("复制成功!");else throw new Error("execCommand 复制失败")}catch(Se){console.error("传统复制方法也失败:",Se),At.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(se){console.error("复制失败:",se),At.error("复制失败,请手动选择文本复制")}},k9=de=>{E9(de.content)},tx=Y(null),T9=Y(null),Sp=Y(null),_9=()=>{console.log("重置幻灯片位置到首页"),ie.value=0,ht.value=0,zt.value=null,Rt.value=-1,Lt.value=-1,Vt(()=>{const de=document.querySelector(".thumbnail-strip");de&&(de.scrollLeft=0)}),console.log("页面位置已重置到首页")},D9=(de,se)=>{console.log("开始基于template_8.json生成动态多页结构:",de.length,"个章节");const Se=[],E=JSON.parse(JSON.stringify(b1[0]));E.id="template8-dynamic-cover",console.log("封面页背景信息:",E.background),console.log("封面页元素数量:",E.elements?.length);const T=E.elements.find($=>$.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 D=JSON.parse(JSON.stringify(b1[1]));D.id="template8-dynamic-contents",de.forEach(($,q)=>{const le=D.elements.find(Oe=>Oe.id===`item-${q+1}`);le&&(le.content=`<p style="text-align: center;"><span style="font-size: 18px; color: #333333;">${$.title}</span></p>`)}),Se.push(D),de.forEach(($,q)=>{const le=JSON.parse(JSON.stringify(b1[2]));le.id=`template8-dynamic-transition-${q}`;const Oe=le.elements.find(Ue=>Ue.id==="transition-title");Oe&&(Oe.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #47acc5;">${$.title}</span></strong></p>`);const Ye=le.elements.find(Ue=>Ue.id==="transition-content");if(Ye&&(Ye.content=`<p style="text-align: center;"><span style="font-size: 16px; color: #666666;">${$.content||`本章将介绍${$.title}的相关内容`}</span></p>`),Se.push(le),$.sections&&$.sections.length>0)$.sections.forEach((Ue,ft)=>{const wt=JSON.parse(JSON.stringify(b1[3]));wt.id=`template8-dynamic-content-${q}-${ft}`;const xn=wt.elements.find(wn=>wn.id==="content-title");xn&&(xn.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${Ue.title}</span></strong></p>`),Ue.content&&Array.isArray(Ue.content)&&Ue.content.forEach((wn,vn)=>{const ln=wt.elements.find(fn=>fn.id===`itemTitle-${vn+1}`),Sn=wt.elements.find(fn=>fn.id===`itemContent-${vn+1}`);ln&&wn.title&&(ln.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${wn.title}</span></strong></p>`),Sn&&wn.content&&(Sn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${wn.content}</span></p>`)}),Se.push(wt)});else{const Ue=JSON.parse(JSON.stringify(b1[3]));Ue.id=`template8-dynamic-content-${q}-default`;const ft=Ue.elements.find(wt=>wt.id==="content-title");ft&&(ft.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${$.title}</span></strong></p>`),Se.push(Ue)}});const B=JSON.parse(JSON.stringify(b1[4]));return B.id="template8-dynamic-end",Se.push(B),console.log("基于template_8.json的动态多页结构生成完成,共",Se.length,"页"),Se},I9=(de,se)=>{console.log("开始基于template_7.json生成动态多页结构:",de.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(q=>q.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 D=JSON.parse(JSON.stringify(hg[1]));D.id="template7-dynamic-contents",de.forEach((q,le)=>{const Oe=D.elements.find(Ye=>Ye.id===`item-${le+1}`);Oe&&(Oe.content=`<p><span style="font-size: 18px; color: #333333;">${q.title}</span></p>`)});for(let q=de.length;q<6;q++){const le=D.elements.find(Oe=>Oe.id===`item-${q+1}`);le&&(le.content='<p><span style="font-size: 18px; color: #333333;"></span></p>',le.opacity=0)}const B=Math.min(de.length,6);if(console.log(`目录页实际显示${B}个目录项`),B===2){const q=D.elements.find(Oe=>Oe.id==="item-1"),le=D.elements.find(Oe=>Oe.id==="item-2");q&&(q.top=250),le&&(le.top=300)}else if(B===3){const q=D.elements.find(Ye=>Ye.id==="item-1"),le=D.elements.find(Ye=>Ye.id==="item-2"),Oe=D.elements.find(Ye=>Ye.id==="item-3");q&&(q.top=220),le&&(le.top=270),Oe&&(Oe.top=320)}else if(B!==4){if(B===5){const q=D.elements.find(ft=>ft.id==="item-1"),le=D.elements.find(ft=>ft.id==="item-2"),Oe=D.elements.find(ft=>ft.id==="item-3"),Ye=D.elements.find(ft=>ft.id==="item-4"),Ue=D.elements.find(ft=>ft.id==="item-5");q&&(q.top=180),le&&(le.top=230),Oe&&(Oe.top=280),Ye&&(Ye.top=330),Ue&&(Ue.top=380)}else if(B===6){const q=D.elements.find(wt=>wt.id==="item-1"),le=D.elements.find(wt=>wt.id==="item-2"),Oe=D.elements.find(wt=>wt.id==="item-3"),Ye=D.elements.find(wt=>wt.id==="item-4"),Ue=D.elements.find(wt=>wt.id==="item-5"),ft=D.elements.find(wt=>wt.id==="item-6");q&&(q.top=160),le&&(le.top=210),Oe&&(Oe.top=260),Ye&&(Ye.top=310),Ue&&(Ue.top=360),ft&&(ft.top=410)}}Se.push(D),de.forEach((q,le)=>{const Oe=JSON.parse(JSON.stringify(hg[2]));Oe.id=`template7-dynamic-transition-${le}`;const Ye=Oe.elements.find(Ue=>Ue.id==="transition-title");if(Ye&&(Ye.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #e74c3c;">${q.title}</span></strong></p>`),Se.push(Oe),q.sections&&q.sections.length>0)q.sections.forEach((Ue,ft)=>{const wt=JSON.parse(JSON.stringify(hg[3]));wt.id=`template7-dynamic-content-${le}-${ft}`;const xn=wt.elements.find(ln=>ln.id==="content-title");xn&&(xn.textType="title",xn.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${Ue.title}</span></strong></p>`);let wn=Ue.subsections||[];if(wn.length===0){const ln=Math.floor(Math.random()*3)+2,Sn=["待AI生成子小节1","待AI生成子小节2","待AI生成子小节3","待AI生成子小节4"];wn=[];for(let fn=0;fn<ln;fn++)wn.push({title:Sn[fn]||`要点${fn+1}`,content:"待AI填充"});Ue.subsections=wn}const vn=Math.min(wn.length,4);console.log(`章节${le+1}小节${ft+1}有${wn.length}个子小节,实际显示${vn}个`);for(let ln=0;ln<vn;ln++){const Sn=wn[ln],fn=wt.elements.find(zn=>zn.id===`itemTitle-${ln+1}`);fn&&(fn.textType="itemTitle",fn.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${Sn.title}</span></strong></p>`,console.log(`填充子小节标题${ln+1}: ${Sn.title}`));const qn=wt.elements.find(zn=>zn.id===`itemContent-${ln+1}`);qn&&(qn.textType="itemContent",qn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${Sn.content||"待AI填充"}</span></p>`,console.log(`填充子小节内容${ln+1}: ${Sn.content||"待AI填充"}`))}for(let ln=vn;ln<4;ln++)wt.elements=wt.elements.filter(Sn=>Sn.id!==`itemTitle-${ln+1}`&&Sn.id!==`itemContent-${ln+1}`&&Sn.id!==`item-bg-${ln+1}`&&Sn.id!==`item-icon-${ln+1}`);if(vn===2){const ln=wt.elements.find(Nr=>Nr.id==="item-bg-1"),Sn=wt.elements.find(Nr=>Nr.id==="item-bg-2");ln&&(ln.top=190),Sn&&(Sn.top=290);const fn=wt.elements.find(Nr=>Nr.id==="itemTitle-1"),qn=wt.elements.find(Nr=>Nr.id==="itemContent-1"),zn=wt.elements.find(Nr=>Nr.id==="item-icon-1");fn&&(fn.top=200),qn&&(qn.top=230),zn&&(zn.top=205);const gr=wt.elements.find(Nr=>Nr.id==="itemTitle-2"),Dr=wt.elements.find(Nr=>Nr.id==="itemContent-2"),lo=wt.elements.find(Nr=>Nr.id==="item-icon-2");gr&&(gr.top=300),Dr&&(Dr.top=330),lo&&(lo.top=305);const fo=wt.elements.find(Nr=>Nr.id==="content-side-decoration");fo&&(fo.top=40)}else if(vn===3){const ln=wt.elements.find(fr=>fr.id==="item-bg-1"),Sn=wt.elements.find(fr=>fr.id==="item-bg-2"),fn=wt.elements.find(fr=>fr.id==="item-bg-3");ln&&(ln.top=140),Sn&&(Sn.top=240),fn&&(fn.top=340);const qn=wt.elements.find(fr=>fr.id==="itemTitle-1"),zn=wt.elements.find(fr=>fr.id==="itemContent-1"),gr=wt.elements.find(fr=>fr.id==="item-icon-1");qn&&(qn.top=150),zn&&(zn.top=180),gr&&(gr.top=155);const Dr=wt.elements.find(fr=>fr.id==="itemTitle-2"),lo=wt.elements.find(fr=>fr.id==="itemContent-2"),fo=wt.elements.find(fr=>fr.id==="item-icon-2");Dr&&(Dr.top=250),lo&&(lo.top=280),fo&&(fo.top=255);const Nr=wt.elements.find(fr=>fr.id==="itemTitle-3"),ia=wt.elements.find(fr=>fr.id==="itemContent-3"),Ra=wt.elements.find(fr=>fr.id==="item-icon-3");Nr&&(Nr.top=350),ia&&(ia.top=380),Ra&&(Ra.top=355);const to=wt.elements.find(fr=>fr.id==="content-side-decoration");to&&(to.top=40)}else if(vn===4){const ln=wt.elements.find(Dr=>Dr.id==="item-bg-1"),Sn=wt.elements.find(Dr=>Dr.id==="item-bg-2"),fn=wt.elements.find(Dr=>Dr.id==="item-bg-3"),qn=wt.elements.find(Dr=>Dr.id==="item-bg-4");ln&&(ln.top=120),Sn&&(Sn.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=wt.elements.find(Nr=>Nr.id===Dr);fo&&(fo.top=lo)});const gr=wt.elements.find(Dr=>Dr.id==="content-side-decoration");gr&&(gr.top=100)}Se.push(wt)});else{const Ue=JSON.parse(JSON.stringify(hg[3]));Ue.id=`template7-dynamic-content-${le}-default`;const ft=Ue.elements.find(ln=>ln.id==="content-title");ft&&(ft.textType="title",ft.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${q.title}</span></strong></p>`);const wt=Math.floor(Math.random()*3)+2,xn=["主要内容","详细说明","补充内容","总结要点"],wn=["待AI填充","待AI填充","待AI填充","待AI填充"],vn=[];for(let ln=0;ln<wt;ln++)vn.push({title:xn[ln]||`要点${ln+1}`,content:wn[ln]||"待AI填充"});for(let ln=0;ln<wt;ln++){const Sn=vn[ln],fn=Ue.elements.find(zn=>zn.id===`itemTitle-${ln+1}`);fn&&(fn.textType="itemTitle",fn.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${Sn.title}</span></strong></p>`);const qn=Ue.elements.find(zn=>zn.id===`itemContent-${ln+1}`);qn&&(qn.textType="itemContent",qn.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${Sn.content}</span></p>`)}for(let ln=wt;ln<4;ln++)Ue.elements=Ue.elements.filter(Sn=>Sn.id!==`itemTitle-${ln+1}`&&Sn.id!==`itemContent-${ln+1}`&&Sn.id!==`item-bg-${ln+1}`&&Sn.id!==`item-icon-${ln+1}`);if(wt===2){const ln=Ue.elements.find(Nr=>Nr.id==="item-bg-1"),Sn=Ue.elements.find(Nr=>Nr.id==="item-bg-2");ln&&(ln.top=190),Sn&&(Sn.top=290);const fn=Ue.elements.find(Nr=>Nr.id==="itemTitle-1"),qn=Ue.elements.find(Nr=>Nr.id==="itemContent-1"),zn=Ue.elements.find(Nr=>Nr.id==="item-icon-1");fn&&(fn.top=200),qn&&(qn.top=230),zn&&(zn.top=205);const gr=Ue.elements.find(Nr=>Nr.id==="itemTitle-2"),Dr=Ue.elements.find(Nr=>Nr.id==="itemContent-2"),lo=Ue.elements.find(Nr=>Nr.id==="item-icon-2");gr&&(gr.top=300),Dr&&(Dr.top=330),lo&&(lo.top=305);const fo=Ue.elements.find(Nr=>Nr.id==="content-side-decoration");fo&&(fo.top=40)}else if(wt===3){const ln=Ue.elements.find(fr=>fr.id==="item-bg-1"),Sn=Ue.elements.find(fr=>fr.id==="item-bg-2"),fn=Ue.elements.find(fr=>fr.id==="item-bg-3");ln&&(ln.top=140),Sn&&(Sn.top=240),fn&&(fn.top=340);const qn=Ue.elements.find(fr=>fr.id==="itemTitle-1"),zn=Ue.elements.find(fr=>fr.id==="itemContent-1"),gr=Ue.elements.find(fr=>fr.id==="item-icon-1");qn&&(qn.top=150),zn&&(zn.top=180),gr&&(gr.top=155);const Dr=Ue.elements.find(fr=>fr.id==="itemTitle-2"),lo=Ue.elements.find(fr=>fr.id==="itemContent-2"),fo=Ue.elements.find(fr=>fr.id==="item-icon-2");Dr&&(Dr.top=250),lo&&(lo.top=280),fo&&(fo.top=255);const Nr=Ue.elements.find(fr=>fr.id==="itemTitle-3"),ia=Ue.elements.find(fr=>fr.id==="itemContent-3"),Ra=Ue.elements.find(fr=>fr.id==="item-icon-3");Nr&&(Nr.top=350),ia&&(ia.top=380),Ra&&(Ra.top=355);const to=Ue.elements.find(fr=>fr.id==="content-side-decoration");to&&(to.top=40)}else if(wt===4){const ln=Ue.elements.find(Dr=>Dr.id==="item-bg-1"),Sn=Ue.elements.find(Dr=>Dr.id==="item-bg-2"),fn=Ue.elements.find(Dr=>Dr.id==="item-bg-3"),qn=Ue.elements.find(Dr=>Dr.id==="item-bg-4");ln&&(ln.top=120),Sn&&(Sn.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=Ue.elements.find(Nr=>Nr.id===Dr);fo&&(fo.top=lo)});const gr=Ue.elements.find(Dr=>Dr.id==="content-side-decoration");gr&&(gr.top=100)}Se.push(Ue)}});const $=JSON.parse(JSON.stringify(hg[4]));return $.id="template7-dynamic-end",Se.push($),console.log("基于template_7.json的动态多页结构生成完成,共",Se.length,"页"),Se},O9=()=>{t.value.length>2e3&&(t.value=t.value.substring(0,2e3),At.warning("消息长度不能超过2000字"))},M9=async()=>{try{console.log("开始获取安全培训功能卡片...");const de=await Bn.getFunctionCard({function_type:1});console.log("功能卡片响应:",de),de.statusCode===200?(A.value=de.data,console.log("功能卡片数据已设置:",A.value)):console.error("获取功能卡片失败:",de.statusCode)}catch(de){console.error("获取功能卡片失败:",de)}},P9=async()=>{try{console.log("开始获取安全培训热点问题...");const de=await Bn.getHotQuestion({question_type:1});console.log("热点问题响应:",de),de.statusCode===200?(S.value=de.data,console.log("热点问题数据已设置:",S.value)):console.error("获取热点问题失败:",de.statusCode)}catch(de){console.error("获取热点问题失败:",de)}},nx=de=>{switch(de){case".doc":case".docx":return wq;default:return"📎"}},Em=de=>{if(de===0)return"0 B";const se=1024,Se=["B","KB","MB","GB"],E=Math.floor(Math.log(de)/Math.log(se));return parseFloat((de/Math.pow(se,E)).toFixed(2))+" "+Se[E]},rx=()=>{V.value&&(V.value=null)},N9=()=>{if(V.value){At.warning("只能上传一个文件,请先删除当前文件");return}tx.value?.click()},R9=de=>{if(de.size>j.maxSize)throw new Error("文件大小不能超过20MB");const se="."+de.name.split(".").pop().toLowerCase();if(!j.allowedTypes.includes(se))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return se},B9=async de=>{try{if(console.log("开始读取Word文件:",de.name,"文件大小:",de.size),de.size===0)throw new Error("Word文件为空");console.log("正在导入mammoth库...");const se=await Mf(()=>Promise.resolve().then(()=>qE),void 0);console.log("mammoth库导入成功");const Se=await de.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}`)}},L9=(de,se)=>{if(!se)return F9(de);const Se=`
  1786. 📄 文件信息:
  1787. 文件名:${se.name}
  1788. 文件大小:${Em(se.size)}
  1789. 文件类型:${se.type}
  1790. 📝 文件内容:
  1791. ${se.content}
  1792. ---
  1793. `;return de.replace(/<word>.*?<\/word>/gs,Se).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},F9=de=>{const se=de.match(/<filename>(.*?)<\/filename>/),Se=se?se[1]:"未知文件",E=de.match(/<filesize>(.*?)<\/filesize>/),T=E?parseInt(E[1]):0,D=de.match(/<word>(.*?)<\/word>/s),B=D?D[1].trim():"无内容",$=`
  1794. 📄 文件信息:
  1795. 文件名:${Se}
  1796. 文件大小:${Em(T)}
  1797. 文件类型:${Se.endsWith(".docx")?".docx":Se.endsWith(".doc")?".doc":"未知"}
  1798. 📝 文件内容:
  1799. ${B}
  1800. ---
  1801. `;return de.replace(/<word>.*?<\/word>/gs,$).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},U9=async de=>{const se=de.target.files[0];if(se)try{const Se=R9(se);L.value=!0,console.log("开始读取文件内容:",se.name);const E=await B9(se);V.value={file:se,name:se.name,size:se.size,type:Se,icon:nx(Se),content:E};const T=E.length;console.log("文件内容提取完成,字符数:",T),At.success(`文件读取成功,提取了${T}个字符的内容`)}catch(Se){console.error("文件读取失败:",Se),At.error(Se.message||"文件读取失败,请重试")}finally{L.value=!1,de.target.value=""}},z9=()=>{console.log("点击语音按钮"),H.value?j9():$9()},$9=()=>{console.log("开始语音输入"),z()||At.error("语音识别启动失败,请检查麦克风权限")},j9=()=>{console.log("停止语音输入"),U(),G.value.trim()&&(t.value=G.value)},ox=async()=>{try{if(!J.value||J.value.length===0){At.warning("暂无大纲内容可复制");return}let de=`${X.value||"安全培训大纲"}
  1802. `;if(J.value.forEach((Se,E)=>{de+=`${Se.title}
  1803. `,Se.sections&&Se.sections.length>0&&Se.sections.forEach((T,D)=>{de+=` ${T.title}
  1804. `,T.subsections&&T.subsections.length>0&&T.subsections.forEach((B,$)=>{de+=` ${B.title}
  1805. `,B.subsubsections&&B.subsubsections.length>0&&(B.subsubsections.forEach((q,le)=>{de+=` - ${q.title}
  1806. `,q.content&&(de+=` ${q.content}
  1807. `)}),de+=`
  1808. `)})})}),navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(de),At.success("复制成功");return}catch(Se){console.warn("Clipboard API 失败,使用降级方案:",Se)}const se=document.createElement("textarea");se.value=de,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"))At.success("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(Se){console.error("传统复制方法也失败:",Se),At.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(de){console.error("复制大纲失败:",de),At.error("复制失败,请手动选择文本复制")}},H9=async()=>{try{if(!J.value||J.value.length===0){At.warning("暂无大纲内容可下载");return}let de=`<!DOCTYPE html>
  1809. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  1810. xmlns:w="urn:schemas-microsoft-com:office:word"
  1811. xmlns="http://www.w3.org/TR/REC-html40">
  1812. <head>
  1813. <meta charset="utf-8">
  1814. <meta name="ProgId" content="Word.Document">
  1815. <meta name="Generator" content="Microsoft Word 15">
  1816. <meta name="Originator" content="Microsoft Word 15">
  1817. <title>${X.value||"安全培训大纲"}</title>
  1818. <!--[if gte mso 9]>
  1819. <xml>
  1820. <w:WordDocument>
  1821. <w:View>Print</w:View>
  1822. <w:Zoom>100</w:Zoom>
  1823. <w:DoNotPromptForConvert/>
  1824. <w:DoNotShowRevisions/>
  1825. <w:DoNotPrintRevisions/>
  1826. <w:DoNotShowComments/>
  1827. <w:DoNotShowInsertionsAndDeletions/>
  1828. <w:DoNotShowPropertyChanges/>
  1829. <w:Compatibility>
  1830. <w:BreakWrappedTables/>
  1831. <w:SnapToGridInCell/>
  1832. <w:WrapTextWithPunct/>
  1833. <w:UseAsianBreakRules/>
  1834. <w:DontGrowAutofit/>
  1835. </w:Compatibility>
  1836. </w:WordDocument>
  1837. </xml>
  1838. <![endif]-->
  1839. <style>
  1840. body {
  1841. font-family: "Microsoft YaHei", Arial, sans-serif;
  1842. font-size: 14px;
  1843. line-height: 1.6;
  1844. margin: 24px;
  1845. color: #000;
  1846. }
  1847. .header {
  1848. text-align: center;
  1849. margin-bottom: 14px;
  1850. }
  1851. .outline-title {
  1852. font-size: 24px;
  1853. font-weight: bold;
  1854. margin-bottom: 14px;
  1855. color: #000;
  1856. }
  1857. h1, h2, h3, h4, h5, h6 {
  1858. color: #000;
  1859. font-weight: bold;
  1860. font-family: "Microsoft YaHei", Arial, sans-serif;
  1861. margin-top: 20px;
  1862. margin-bottom: 15px;
  1863. }
  1864. h1 {
  1865. font-size: 20px;
  1866. border-bottom: 2px solid #000;
  1867. padding-bottom: 10px;
  1868. }
  1869. h2 {
  1870. font-size: 18px;
  1871. margin-top: 20px;
  1872. margin-bottom: 12px;
  1873. }
  1874. h3 {
  1875. font-size: 16px;
  1876. margin-top: 15px;
  1877. margin-bottom: 8px;
  1878. }
  1879. h4 {
  1880. font-size: 14px;
  1881. margin-top: 12px;
  1882. margin-bottom: 6px;
  1883. }
  1884. ul, li {
  1885. color: #000;
  1886. font-family: "Microsoft YaHei", Arial, sans-serif;
  1887. }
  1888. li {
  1889. margin-bottom: 4px;
  1890. }
  1891. .stats {
  1892. background: #f8f9fa;
  1893. padding: 20px;
  1894. border-radius: 8px;
  1895. margin-top: 30px;
  1896. border: 1px solid #ddd;
  1897. }
  1898. .stats h3 {
  1899. color: #2c3e50;
  1900. margin-top: 0;
  1901. font-size: 16px;
  1902. }
  1903. .stats p {
  1904. margin: 8px 0;
  1905. color: #555;
  1906. font-size: 14px;
  1907. }
  1908. </style>
  1909. </head>
  1910. <body>
  1911. <div class="header">
  1912. <div class="outline-title">${X.value||"安全培训大纲"}</div>
  1913. </div>
  1914. `;J.value.forEach((T,D)=>{de+=`<h2>${T.title}</h2>`,T.sections&&T.sections.length>0&&T.sections.forEach((B,$)=>{de+=`<h3>${B.title}</h3>`,B.subsections&&B.subsections.length>0&&B.subsections.forEach((q,le)=>{de+=`<h4>${q.title}</h4>`,q.subsubsections&&q.subsubsections.length>0&&(de+="<ul>",q.subsubsections.forEach((Oe,Ye)=>{de+=`<li><strong>${Oe.title}</strong>`,Oe.content&&(de+=`<br>${Oe.content}`),de+="</li>"}),de+="</ul>")})})}),te.value&&(de+=`
  1915. <div class="stats">
  1916. <h3>大纲统计信息</h3>
  1917. <p><strong>总章节数:</strong>${te.value.totalChapters||"未知"}章</p>
  1918. <p><strong>总小节数:</strong>${te.value.totalSections||"未知"}小节</p>
  1919. <p><strong>预计PPT页数:</strong>${te.value.estimatedPages||"未知"}</p>
  1920. <p><strong>预计讲解时长:</strong>${te.value.estimatedTime||"未知"}</p>
  1921. </div>
  1922. `),de+=`
  1923. </body>
  1924. </html>
  1925. `;const se=new Blob([de],{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),At.success("下载成功")}catch(de){console.error("下载大纲失败:",de),At.error("下载失败,请重试")}};return(de,se)=>(F(),K("div",GYt,[$e(VC),x("div",{class:oe(["history-sidebar",{disabled:w.value}])},[x("div",KYt,[se[23]||(se[23]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:JC,alt:"新建任务",class:oe(["new-chat-btn",{disabled:w.value}]),onClick:yt},null,2)]),x("div",YYt,[m.value&&Nn.value===0?(F(),K("div",QYt,se[24]||(se[24]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Nn.value>0?(F(!0),K(Nt,{key:1},on(En.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["history-item",{active:Se.isActive,disabled:w.value}]),onClick:()=>Zt(Se),style:Jt({cursor:Se.isActive||w.value?"default":"pointer"})},[x("div",XYt,[x("img",{src:Kt(Se),alt:"培训图标",class:"history-icon-img"},null,8,JYt)]),x("div",eQt,[x("div",tQt,ze(Se.title),1),x("div",nQt,[x("span",rQt,ze(Se.time),1)])]),x("div",{class:oe(["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,ZYt))),128)):(F(),K("div",iQt,se[26]||(se[26]=[x("img",{src:e5,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])],2),x("div",aQt,[se[84]||(se[84]=x("div",{class:"work-header"},[x("h2",null,"安全培训")],-1)),x("div",sQt,[d.value==="step1"?(F(),K("div",lQt,[k.value?(F(),K("div",vQt,[x("div",mQt,[(F(!0),K(Nt,null,on(O.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["message-item",Se.type])},[Se.type==="user"?(F(),K("div",yQt,[x("div",bQt,[Se.file?(F(),K("div",wQt,[x("div",AQt,[x("div",CQt,[Se.file.type===".doc"||Se.file.type===".docx"?(F(),K("img",{key:0,src:Se.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,xQt)):(F(),K("span",SQt,ze(Se.file.icon),1))]),x("div",EQt,[x("div",kQt,ze(Se.file.name),1),x("div",TQt,ze(Em(Se.file.size)),1)])])])):xe("",!0),Se.content?(F(),K("div",_Qt,ze(Se.content),1)):xe("",!0)]),x("div",DQt,[x("button",{class:"action-btn copy-btn",onClick:T=>k9(Se)},se[32]||(se[32]=[x("img",{src:Lv,alt:"复制",class:"action-icon"},null,-1),An(" 复制 ",-1)]),8,IQt),se[33]||(se[33]=x("button",{class:"action-btn edit-btn"},[x("img",{src:t5,alt:"编辑",class:"action-icon"}),An(" 编辑 ")],-1))])])):Se.type==="ai"?(F(),K("div",OQt,[se[35]||(se[35]=x("div",{class:"ai-avatar-small"},[x("img",{src:w_,alt:"AI",class:"ai-icon"})],-1)),x("div",{class:"message-content","data-message-index":E},[x("div",PQt,[Se.displayContent.length===0?(F(),K("div",NQt,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,RQt))])],8,MQt)])):xe("",!0)],2))),128))])])):(F(),K("div",uQt,[se[31]||(se[31]=x("div",{class:"ai-intro"},[x("div",{class:"ai-avatar"},[x("img",{src:w_,alt:"AI头像",class:"ai-avatar-img"})]),x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")])],-1)),x("div",cQt,[(F(!0),K(Nt,null,on(A.value,(Se,E)=>(F(),K("div",{key:Se.id||E,class:"function-card",onClick:T=>bo(Se.function_title)},[x("div",fQt,[x("div",pQt,[x("img",{src:ho(Se.function_title),alt:Se.function_title,class:"card-icon-img"},null,8,hQt)]),x("h4",null,ze(Se.function_title),1)]),x("div",gQt,[x("p",null,ze(Se.function_content),1)])],8,dQt))),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:A_,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:C_,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:x_,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:S_,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",BQt,[m.value?(F(),K("div",LQt,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",FQt,[x("div",UQt,[x("div",zQt,[x("div",$Qt,[_e.value!=="title"?(F(),K("h3",{key:0,class:oe(["outline-title",{disabled:h.value||g.value}]),onClick:se[4]||(se[4]=Se=>!h.value&&!g.value&&ti(null,"title",null,X.value||"安全培训大纲"))},ze(X.value||"安全培训大纲"),3)):(F(),K("div",jQt,[an(x("textarea",{"onUpdate:modelValue":se[5]||(se[5]=Se=>be.value=Se),class:"edit-textarea title-edit-textarea",onKeyup:Lr(Qo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref:"titleEditInput",autofocus:""},null,40,HQt),[[jr,be.value]])]))]),x("div",WQt,[x("button",{class:"action-btn exam-btn",onClick:Vr,disabled:g.value||!J.value.length},se[37]||(se[37]=[x("img",{src:Oke,alt:"考试",class:"action-icon"},null,-1),An(" 生成考题 ",-1)]),8,VQt),x("button",{class:"action-btn",onClick:ox,disabled:h.value},se[38]||(se[38]=[x("img",{src:r3,alt:"复制",class:"action-icon"},null,-1),An(" 复制 ",-1)]),8,qQt),x("button",{class:"action-btn",onClick:H9,disabled:h.value},se[39]||(se[39]=[x("img",{src:Aq,alt:"下载",class:"action-icon"},null,-1),An(" 下载 ",-1)]),8,GQt)])]),x("div",{class:oe(["outline-content",{disabled:h.value}])},[h.value?(F(),K("div",KQt,se[40]||(se[40]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),g.value?(F(),K("div",YQt,se[41]||(se[41]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),J.value&&J.value.length>0?(F(),K("div",QQt,[(F(!0),K(Nt,null,on(J.value,(Se,E)=>(F(),K(Nt,{key:E},[Se&&Se.sections?(F(),K("div",{key:0,class:oe(["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:oa,onDrop:T=>_r(T,E)},[x("div",XQt,[_e.value!=="chapter"||Q.value!==E?(F(),K("h4",{key:0,class:oe(["chapter-title",{disabled:g.value}]),onClick:T=>!g.value&&ti(Se,"chapter",E,Ie(Se.title))},ze(ne(Se.title,E)),11,JQt)):(F(),K("div",eZt,[x("div",tZt,[an(x("textarea",{"onUpdate:modelValue":se[6]||(se[6]=T=>be.value=T),class:"edit-textarea chapter-edit-textarea",onKeyup:Lr(Qo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"chapterEditInput",autofocus:""},null,40,nZt),[[jr,be.value]]),x("div",rZt,[x("button",{class:"edit-option-btn",onClick:T=>Si("section",E)},se[42]||(se[42]=[x("img",{src:Q8,alt:"添加小节",class:"edit-icon"},null,-1)]),8,oZt),J.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,iZt)):xe("",!0)])])]))]),x("div",aZt,[(F(!0),K(Nt,null,on(Se.sections,(T,D)=>(F(),K(Nt,{key:D},[T&&T.title!=="内容要点"&&T.title!=="概述"&&T.title!=="内容详情"?(F(),K("div",sZt,[x("div",lZt,[_e.value!=="section"||Q.value!==`${E}-${D}`?(F(),K("div",{key:0,class:oe(["section-title",{disabled:g.value}]),onClick:B=>!g.value&&ti(T,"section",`${E}-${D}`,T.title)},ze(T.title),11,uZt)):(F(),K("div",cZt,[x("div",dZt,[an(x("textarea",{"onUpdate:modelValue":se[7]||(se[7]=B=>be.value=B),class:"edit-textarea section-edit-textarea",onKeyup:Lr(Qo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"sectionEditInput",autofocus:""},null,40,fZt),[[jr,be.value]]),x("div",pZt,[x("button",{class:"edit-option-btn",onClick:B=>Si("subsection",`${E}-${D}`)},se[44]||(se[44]=[x("img",{src:Q8,alt:"添加子标题",class:"edit-icon"},null,-1)]),8,hZt),Se.sections.length>1?(F(),K("button",{key:0,class:"edit-option-btn delete-btn",onClick:B=>Pa("section",`${E}-${D}`)},se[45]||(se[45]=[x("img",{src:wc,alt:"删除",class:"edit-icon"},null,-1)]),8,gZt)):xe("",!0)])])]))]),T&&T.subsections&&T.subsections.length>0?(F(),K("div",vZt,[(F(!0),K(Nt,null,on(T.subsections,(B,$)=>(F(),K(Nt,{key:$},[B&&B.title!=="内容要点"&&B.title!=="概述"&&B.title!=="内容详情"&&!B.title.includes("总章节数")&&!B.title.includes("总小节数")&&!B.title.includes("预计PPT页数")&&!B.title.includes("预计讲解时长")?(F(),K("div",mZt,[x("div",yZt,[_e.value!=="subsection"||Q.value!==`${E}-${D}-${$}`?(F(),K("div",{key:0,class:oe(["subsection-title",{disabled:g.value}]),onClick:q=>!g.value&&ti(B,"subsection",`${E}-${D}-${$}`,B.title)},ze(B.title),11,bZt)):(F(),K("div",wZt,[x("div",AZt,[an(x("textarea",{"onUpdate:modelValue":se[8]||(se[8]=q=>be.value=q),class:"edit-textarea subsection-edit-textarea",onKeyup:Lr(Qo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"subsectionEditInput",autofocus:""},null,40,CZt),[[jr,be.value]]),x("div",xZt,[x("button",{class:"edit-option-btn delete-btn",onClick:q=>Pa("subsection",`${E}-${D}-${$}`)},se[46]||(se[46]=[x("img",{src:wc,alt:"删除",class:"edit-icon"},null,-1)]),8,SZt)])])]))]),B.subsubsections&&B.subsubsections.length>0?(F(),K("div",EZt,[(F(!0),K(Nt,null,on(B.subsubsections,(q,le)=>(F(),K("div",{key:le,class:"subsubsection-item"},[x("div",kZt,[_e.value!=="subsubsection"||Q.value!==`${E}-${D}-${$}-${le}`?(F(),K("div",{key:0,class:oe(["subsubsection-title",{disabled:g.value}]),onClick:Oe=>!g.value&&ti(q,"subsubsection",`${E}-${D}-${$}-${le}`,q.title)},ze(q.title),11,TZt)):(F(),K("div",_Zt,[x("div",DZt,[an(x("textarea",{"onUpdate:modelValue":se[9]||(se[9]=Oe=>be.value=Oe),class:"edit-textarea subsubsection-edit-textarea",onKeyup:Lr(Qo,["esc"]),onKeydown:Lr(Qt(Lo,["ctrl"]),["enter"]),onBlur:Lo,ref_for:!0,ref:"subsubsectionEditInput",autofocus:""},null,40,IZt),[[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,ZQt)):xe("",!0)],64))),128)),J.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:Q8,alt:"添加章节",class:"add-icon"},null,-1),x("span",null,"添加新章节",-1)]))])):xe("",!0)])):(F(),K("div",MZt,se[49]||(se[49]=[ki('<div class="outline-chapter" data-v-fd1cad67><h4 data-v-fd1cad67>第一章 安全生产基本原则</h4><div class="outline-section" data-v-fd1cad67><div class="section-item" data-v-fd1cad67>1.1 安全生产的重要性</div><div class="section-item" data-v-fd1cad67>1.2 安全生产相关法规</div><div class="section-subsection" data-v-fd1cad67><div class="subsection-item" data-v-fd1cad67>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-fd1cad67>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-fd1cad67><h4 data-v-fd1cad67>第二章 施工现场安全管理</h4><div class="outline-section" data-v-fd1cad67><div class="section-item" data-v-fd1cad67>2.1 安全责任制度</div><div class="section-item" data-v-fd1cad67>2.2 安全教育培训</div><div class="section-item" data-v-fd1cad67>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-fd1cad67><h4 data-v-fd1cad67>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-fd1cad67><div class="section-item" data-v-fd1cad67>3.1 高空作业安全</div><div class="section-subsection" data-v-fd1cad67><div class="subsection-item" data-v-fd1cad67>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-fd1cad67>3.2 用电安全</div><div class="section-item" data-v-fd1cad67>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-fd1cad67><h4 data-v-fd1cad67>第四章 安全事故案例分析</h4><div class="outline-section" data-v-fd1cad67><div class="section-item" data-v-fd1cad67>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-fd1cad67><h4 data-v-fd1cad67>第五章 总结与展望</h4></div>',5)])))],2)]),x("div",PZt,[x("div",NZt,[se[54]||(se[54]=x("div",{class:"section-header"},[x("img",{src:OYt,alt:"统计",class:"section-icon"}),x("h5",null,"大纲统计信息")],-1)),x("div",RZt,[x("div",BZt,[se[50]||(se[50]=x("span",{class:"stat-label"},"总章节数:",-1)),x("span",LZt,ze(te.value.totalChapters||0)+"章",1)]),x("div",FZt,[se[51]||(se[51]=x("span",{class:"stat-label"},"总小节数:",-1)),x("span",UZt,ze(te.value.totalSections||0)+"小节",1)]),x("div",zZt,[se[52]||(se[52]=x("span",{class:"stat-label"},"预计PPT页数:",-1)),x("span",$Zt,ze(te.value.estimatedPages||"0页"),1)]),x("div",jZt,[se[53]||(se[53]=x("span",{class:"stat-label"},"预计讲解时长:",-1)),x("span",HZt,ze(te.value.estimatedTime||"0分钟"),1)])])]),se[62]||(se[62]=ki('<div class="sidebar-section" data-v-fd1cad67><div class="section-header" data-v-fd1cad67><img src="'+MYt+'" alt="提示" class="section-icon" data-v-fd1cad67><h5 data-v-fd1cad67>大纲编辑提示</h5></div><div class="section-content" data-v-fd1cad67><ul class="tip-list" data-v-fd1cad67><li data-v-fd1cad67>点击标题文本可直接在白色区域编辑内容</li><li data-v-fd1cad67>悬停在章节上将显示编辑选项</li><li data-v-fd1cad67>编辑完成后系统会自动保存更改</li><li data-v-fd1cad67>如果内容较多,滚动白色区域可浏览更多大纲内容</li><li data-v-fd1cad67>章节顺序可以通过拖拽调整</li></ul></div></div>',1)),x("div",WZt,[se[58]||(se[58]=x("div",{class:"section-header"},[x("h5",null,"大纲评价")],-1)),x("div",VZt,[se[57]||(se[57]=x("p",{class:"evaluation-question"},"这个大纲对您的需求满意度如何?",-1)),x("div",qZt,[x("button",{class:oe(["eval-btn satisfied",{active:qi()==="satisfied"}]),onClick:se[11]||(se[11]=Se=>ra("satisfied")),disabled:h.value},se[55]||(se[55]=[x("img",{src:Vy,alt:"满意",class:"eval-icon"},null,-1),An(" 满意 ",-1)]),10,GZt),x("button",{class:oe(["eval-btn unsatisfied",{active:qi()==="unsatisfied"}]),onClick:se[12]||(se[12]=Se=>ra("unsatisfied")),disabled:h.value},se[56]||(se[56]=[x("img",{src:qy,alt:"不满意",class:"eval-icon"},null,-1),An(" 不满意 ",-1)]),10,KZt)])])]),x("div",YZt,[x("button",{class:"action-btn secondary",onClick:br,disabled:h.value||g.value},[x("img",{src:Ej,alt:"刷新",class:oe(["action-icon",{rotating:h.value}])},null,2),se[59]||(se[59]=An(" 生成新大纲 ",-1))],8,QZt),R.value?xe("",!0):(F(),K("button",{key:0,class:"action-btn primary",onClick:dn,disabled:h.value||g.value},se[60]||(se[60]=[An(" 继续创作 ",-1),x("img",{src:kj,alt:"箭头",class:"action-icon"},null,-1)]),8,ZZt)),N.value&&R.value?(F(),K("button",{key:1,class:"action-btn primary",onClick:or,style:{background:"#EA580C",color:"#fff"}},se[61]||(se[61]=[An(" 修改PPT模板 ",-1),x("img",{src:kj,alt:"箭头",class:"action-icon"},null,-1)]))):xe("",!0)])])])])):xe("",!0),d.value==="step3"?(F(),K("div",{key:2,class:oe(["step3-content",{disabled:y.value}])},[m.value?(F(),K("div",XZt,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",JZt,[y.value?(F(),K("div",eXt,se[64]||(se[64]=[x("div",{class:"applying-content"},[x("p",null,"AI正在填充内容并应用模板,请稍候...")],-1)]))):xe("",!0),x("div",tXt,[x("div",nXt,[x("div",rXt,[se[65]||(se[65]=x("h3",{class:"preview-title"},"预览效果",-1)),x("span",oXt,"已保存于 "+ze(Gt.value),1)]),x("div",iXt,[Fe.value?xe("",!0):(F(),K("div",aXt,[x("button",{class:"carousel-btn prev",onClick:xr},se[66]||(se[66]=[x("img",{src:PYt,alt:"上一页",class:"carousel-icon"},null,-1)])),x("div",sXt,[Ne.value&&Ne.value.length>0?(F(),K("div",lXt,[x("div",{class:"slide-content",style:Jt({background:K5()})},[(F(!0),K(Nt,null,on(xp().elements,(Se,E)=>(F(),K("div",{key:Se.id,class:"slide-element",style:Jt(Q5(Se))},[Se.type==="text"?(F(),K("div",{key:0,innerHTML:Se.content},null,8,uXt)):Se.type==="image"&&Se.src?(F(),K("img",{key:1,src:Se.src,alt:Se.id},null,8,cXt)):xe("",!0)],4))),128))],4)])):(F(),K("img",{key:1,src:Mt.value,alt:`第${ie.value+1}页`,class:"slide-image"},null,8,dXt))]),x("button",{class:"carousel-btn next",onClick:sr},se[67]||(se[67]=[x("img",{src:NYt,alt:"下一页",class:"carousel-icon"},null,-1)]))])),Fe.value?(F(),K("div",fXt,[x("div",pXt,[Fe.value&&Ne.value.length>0?(F(),K("div",{key:0,class:"slide-preview",style:Jt({transform:`scale(${Wt.value})`,background:K5()})},[x("div",hXt,ze(Ne.value.length)+"页, 当前第"+ze(ht.value+1)+"页 ",1),se[68]||(se[68]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 点击背景图片、素材图片可更换")],-1)),(F(!0),K(Nt,null,on(G5().elements,(Se,E)=>(F(),K("div",{key:Se.id,class:oe(["preview-element",{selected:Rt.value===E}]),style:Jt(Q5(Se)),onClick:Qt(T=>g2(E),["stop"]),onDblclick:T=>Z5(),onMousedown:T=>X5(T,E)},[Rt.value===E?(F(),K("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:Qt(T=>Sm(T,E,"nw"),["stop"])},null,40,vXt)):xe("",!0),Rt.value===E?(F(),K("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:Qt(T=>Sm(T,E,"ne"),["stop"])},null,40,mXt)):xe("",!0),Rt.value===E?(F(),K("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:Qt(T=>Sm(T,E,"sw"),["stop"])},null,40,yXt)):xe("",!0),Rt.value===E?(F(),K("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:Qt(T=>Sm(T,E,"se"),["stop"])},null,40,bXt)):xe("",!0),Rt.value===E?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(T=>X5(T,E),["stop"])},ze(h9(Se.type)),41,wXt)):xe("",!0),Se.type==="image"&&Se.src?(F(),K("img",{key:5,src:Se.src,alt:Se.id,style:Jt({opacity:Se.opacity||1}),onClick:T=>b9(E),onMousedown:se[13]||(se[13]=Qt(()=>{},["stop"]))},null,44,AXt)):Se.type==="text"?(F(),K(Nt,{key:6},[Lt.value===E?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:tn.value,style:Jt({color:Se.defaultColor,fontFamily:Se.defaultFontName,opacity:Se.opacity||1}),onInput:v9,onBlur:T=>m9(E),onMousedown:se[14]||(se[14]=Qt(()=>{},["stop"])),onKeydown:se[15]||(se[15]=Qt(()=>{},["stop"]))},null,44,CXt)):(F(),K("div",{key:1,innerHTML:Se.content,style:Jt({color:Se.defaultColor,fontFamily:Se.defaultFontName,opacity:Se.opacity||1})},null,12,xXt))],64)):Se.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Jt(g9(Se))},null,4)):xe("",!0)],46,gXt))),128))],4)):Fe.value&&Ne.value.length===0?(F(),K("div",SXt,[x("div",EXt,[x("div",{class:"slide-content",contenteditable:"true",onInput:we},[x("h2",kXt,ze(Re.value.title||"点击编辑标题"),1),x("div",TXt,[x("p",null,ze(Re.value.content||"点击编辑内容"),1)])],32)])])):xe("",!0)])])):xe("",!0)]),x("div",_Xt,[Fe.value?xe("",!0):(F(),K("div",DXt,[x("div",IXt,[An(" 第"+ze(ie.value+1)+"页/共"+ze(dt.value.length)+"页 ",1),x("div",OXt,[(F(!0),K(Nt,null,on(dt.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["progress-dot",{active:E===ie.value}]),onClick:T=>nr(E)},null,10,MXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:cr,ref_key:"thumbnailStrip",ref:Sp},[(F(!0),K(Nt,null,on(dt.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["thumbnail-item",{active:E===ie.value}]),onClick:T=>nr(E)},[x("img",{src:Se,alt:`第${E+1}页`,class:"thumbnail-image"},null,8,NXt),x("div",RXt,ze(E+1),1)],10,PXt))),128))],544)])),Fe.value&&Ne.value.length>0?(F(),K("div",BXt,[x("div",LXt,[An(" 第"+ze(ht.value+1)+"页/共"+ze(Ne.value.length)+"页 ",1),x("div",FXt,[(F(!0),K(Nt,null,on(Ne.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["progress-dot",{active:E===ht.value}]),onClick:T=>Or(E)},null,10,UXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:cr,ref_key:"thumbnailStrip",ref:Sp},[(F(!0),K(Nt,null,on(Ne.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["thumbnail-item",{active:E===ht.value}]),onClick:T=>Or(E)},[x("div",{class:"thumbnail-preview",style:Jt({background:f9(Se)})},[x("div",$Xt,[(F(!0),K(Nt,null,on(Se.elements,T=>(F(),K("div",{key:T.id,class:"thumbnail-element",style:Jt(p9(T))},[T.type==="text"?(F(),K("div",{key:0,innerHTML:T.content},null,8,jXt)):T.type==="image"&&T.src?(F(),K("img",{key:1,src:T.src,alt:T.id},null,8,HXt)):xe("",!0)],4))),128))])],4),x("div",WXt,ze(E+1),1)],10,zXt))),128))],544)])):xe("",!0)])])]),x("div",VXt,[Fe.value?xe("",!0):(F(),K("div",{key:0,class:oe(["template-content",{disabled:y.value}])},[x("h4",qXt,"模板样式 ("+ze(_t.value.length)+")",1),x("div",GXt,[(F(!0),K(Nt,null,on(_t.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["template-item",{active:ce.value===E}]),onClick:T=>{h2(E),_9()}},[x("div",YXt,[x("img",{src:Se.thumbnail,alt:Se.title,class:"template-img"},null,8,QXt)]),x("div",ZXt,[x("h5",XXt,ze(Se.title),1),x("div",JXt,[x("span",eJt,ze(Se.updateTime),1),x("span",tJt,ze(Se.pageCount)+"页",1)]),Se.description?(F(),K("div",nJt,ze(Se.description),1)):xe("",!0)])],10,KXt))),128))]),y.value?(F(),K("div",rJt,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:oe(["download-content",{disabled:b.value||g.value}])},[se[74]||(se[74]=x("h4",{class:"sidebar-title"},"下载选项",-1)),b.value?(F(),K("div",oJt,se[70]||(se[70]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成培训讲义,请稍候...")],-1)]))):xe("",!0),g.value?(F(),K("div",iJt,se[71]||(se[71]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",aJt,[(F(!0),K(Nt,null,on(it.value,(Se,E)=>(F(),K("div",{key:E,class:oe(["download-option",{active:Le.value===E}]),onClick:T=>C9(E)},[x("div",lJt,[x("img",{src:Se.icon,alt:Se.title,class:"option-img"},null,8,uJt)]),x("div",cJt,[x("h5",dJt,ze(Se.title),1),x("p",fJt,ze(Se.description),1)]),Le.value===E?(F(),K("div",pJt,se[72]||(se[72]=[x("img",{src:RYt,alt:"选中",class:"check-icon"},null,-1)]))):xe("",!0)],10,sJt))),128))]),x("div",hJt,[x("button",{class:"action-btn secondary",onClick:x9}," 重新挑选模板 "),x("button",{class:"action-btn primary",onClick:fe,disabled:ae.value},[se[73]||(se[73]=x("img",{src:BYt,alt:"下载",class:"download-icon"},null,-1)),An(" "+ze(ae.value?"生成中...":"立即下载"),1)],8,gJt)])],2)):xe("",!0)])]),Fe.value?xe("",!0):(F(),K("div",vJt,[x("button",{class:"action-btn secondary",onClick:Vn}," 返回编辑大纲 "),x("button",{class:"action-btn primary",onClick:xm,disabled:y.value},[y.value?(F(),K("span",bJt,"正在处理中...")):(F(),K("span",yJt,"应用此模板"))],8,mJt)]))],2)):xe("",!0)]),d.value==="step1"&&!k.value&&!V.value?(F(),K("div",wJt,[(F(!0),K(Nt,null,on(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,CJt),An(" "+ze(Se.question),1)],8,AJt))),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:ak,alt:"问题",class:"question-icon"},null,-1),An(" 施工现场安全培训的主要内容有哪些? ",-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:sk,alt:"问题",class:"question-icon"},null,-1),An(" 高空作业安全防护措施有哪些要求? ",-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:lk,alt:"文档",class:"question-icon"},null,-1),An(" 《建设工程安全生产管理条例》 ",-1)]))):xe("",!0)])):xe("",!0),d.value==="step1"?(F(),K("div",xJt,[x("div",SJt,[V.value?(F(),K("div",EJt,[x("div",kJt,[x("div",TJt,[V.value.type===".doc"||V.value.type===".docx"?(F(),K("img",{key:0,src:V.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,_Jt)):(F(),K("span",DJt,ze(V.value.icon),1))]),x("div",IJt,[x("div",OJt,ze(V.value.name),1),x("div",MJt,ze(Em(V.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:rx},se[78]||(se[78]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",PJt,[x("button",{class:"attach-btn",onClick:N9,disabled:I.value||W.value},se[79]||(se[79]=[x("div",{class:"icon-container"},[x("img",{src:bq,alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}})],-1)]),8,NJt),an(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":se[19]||(se[19]=Se=>t.value=Se),onKeyup:Lr(Bo,["enter"]),onInput:O9,disabled:I.value||W.value,maxlength:"2000"},null,40,RJt),[[jr,t.value]]),x("button",{class:oe(["voice-btn",{recording:C(H)}]),onClick:z9,disabled:I.value||W.value},[x("div",LJt,[se[80]||(se[80]=x("img",{src:Xf,alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,-1)),C(H)?(F(),K("div",FJt)):xe("",!0)])],10,BJt),se[81]||(se[81]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:Bo,disabled:I.value||W.value||!t.value.trim()},[x("img",{src:t.value.trim()&&!I.value&&!W.value?C(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,zJt)],8,UJt)])])])):xe("",!0),x("input",{ref_key:"fileInput",ref:tx,type:"file",accept:".docx",style:{display:"none"},onChange:U9},null,544),x("input",{ref_key:"imageInput",ref:T9,type:"file",accept:"image/*",style:{display:"none"},onChange:w9},null,544),$e(c0,{visible:l.value,title:"删除历史记录",message:re.value,onConfirm:cn,onCancel:qe,onClose:qe},null,8,["visible","message"]),M.value?(F(),K("div",$Jt,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",jJt,[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",HJt,[x("div",WJt,[x("iframe",{src:_.value,frameborder:"0",allowfullscreen:"",class:"wps-iframe",title:"WPS AI PPT",onError:kn,style:{width:"100%",height:"calc(100% - 30px)",border:"none"}},null,40,VJt),R.value?xe("",!0):(F(),K("div",qJt," 蜀安AI PPT "))])])])])):xe("",!0)])]))}},KJt=Yo(GJt,[["__scopeId","data-v-fd1cad67"]]),YJt={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(`模板导入成功!
  1926. 模板ID: ${this.currentSlide.id}
  1927. 模板名称: ${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(`大纲导入成功!
  1928. 包含 ${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生成成功!
  1929. 共生成 ${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-D9PcTWAG.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文件!
  1930. 文件名: ${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-D9PcTWAG.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文件!
  1931. 文件名: ${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-D5L-YwUr.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} 个模板的高清图片!
  1932. 文件名: 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")}}},QJt={class:"template-editor"},ZJt={class:"toolbar"},XJt={class:"toolbar-left"},JJt=["disabled"],een=["disabled"],ten={class:"toolbar-right"},nen=["value"],ren={class:"main-content1"},oen={class:"editor-panel"},ien={class:"panel-header"},aen={class:"add-element-buttons"},sen={class:"element-list"},len=["onClick"],uen={class:"element-header"},cen={class:"element-type"},den={class:"element-id"},fen={class:"element-actions"},pen=["onClick"],hen=["onClick"],gen=["onClick"],ven=["onClick"],men={key:0,class:"element-properties"},yen={class:"property-group"},ben={class:"property-row"},wen=["onUpdate:modelValue"],Aen={class:"property-row"},Cen=["onUpdate:modelValue"],xen={class:"property-row"},Sen=["onUpdate:modelValue"],Een={class:"property-row"},ken=["onUpdate:modelValue"],Ten={class:"property-row"},_en=["onUpdate:modelValue"],Den={key:0,class:"property-group"},Ien={class:"property-row"},Oen=["onUpdate:modelValue"],Men={class:"property-row"},Pen=["onUpdate:modelValue"],Nen={class:"property-row"},Ren=["onUpdate:modelValue"],Ben={class:"property-row"},Len=["onUpdate:modelValue"],Fen={key:1,class:"property-group"},Uen={class:"property-row"},zen=["onUpdate:modelValue"],$en={class:"property-row"},jen=["onUpdate:modelValue"],Hen={key:2,class:"property-group"},Wen={class:"property-row"},Ven=["onUpdate:modelValue"],qen={class:"property-row"},Gen=["onUpdate:modelValue"],Ken={class:"preview-panel"},Yen={class:"panel-header"},Qen={class:"preview-controls"},Zen={class:"zoom-level"},Xen={key:0,class:"ppt-preview-controls"},Jen=["disabled"],etn={class:"ppt-slide-info"},ttn=["disabled"],ntn=["onClick","onMousedown"],rtn=["onMousedown"],otn=["onMousedown"],itn=["onMousedown"],atn=["onMousedown"],stn=["onMousedown"],ltn=["src","alt"],utn=["innerHTML","onBlur"],ctn=["innerHTML"],dtn=["onClick","onMousedown"],ftn=["onMousedown"],ptn=["onMousedown"],htn=["onMousedown"],gtn=["onMousedown"],vtn=["onMousedown"],mtn=["src","alt","onClick"],ytn=["innerHTML","onBlur"],btn=["innerHTML","onDblclick","onClick"],wtn={class:"properties-panel"},Atn={class:"slide-properties"},Ctn={class:"property-group"},xtn={class:"property-row"},Stn={key:0,class:"property-row"},Etn={key:1,class:"property-group"},ktn={class:"property-row"},Ttn={class:"gradient-colors"},_tn=["onUpdate:modelValue"],Dtn=["onUpdate:modelValue"],Itn=["onClick"],Otn={class:"property-group"},Mtn={class:"property-row"},Ptn={class:"property-row"},Ntn={class:"property-row"},Rtn={key:0,class:"json-editor-modal"},Btn={class:"json-editor-content"},Ltn={class:"json-editor-header"},Ftn={class:"json-editor-actions"};function Utn(e,t,n,r,o,i){return F(),K("div",QJt,[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",ZJt,[x("div",XJt,[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},ze(o.isExportingImages?"生成中...":"导出高清图片"),9,JJt),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:oe(["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},ze(o.isGenerating?"生成中...":"生成PPTX"),9,een),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",ten,[an(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),[[x2,o.currentTemplateType]]),an(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(Nt,null,on(o.availableTemplates,a=>(F(),K("option",{key:a.id,value:a.id},ze(a.name),9,nen))),128))],544),[[x2,o.currentTemplateId]])])]),x("div",ren,[x("div",oen,[x("div",ien,[t[72]||(t[72]=x("h3",null,"元素编辑",-1)),x("div",aen,[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",sen,[(F(!0),K(Nt,null,on(o.currentSlide.elements,(a,s)=>(F(),K("div",{key:a.id,class:oe(["element-item",{active:o.selectedElementIndex===s}]),onClick:l=>i.selectElement(s)},[x("div",uen,[x("span",cen,ze(i.getElementTypeName(a.type)),1),x("span",den,ze(a.id),1),x("div",fen,[x("button",{onClick:Qt(l=>i.copyElement(s),["stop"]),class:"btn-action",title:"复制"},"📋",8,pen),x("button",{onClick:Qt(l=>i.moveElementUp(s),["stop"]),class:"btn-action",title:"上移"},"⬆️",8,hen),x("button",{onClick:Qt(l=>i.moveElementDown(s),["stop"]),class:"btn-action",title:"下移"},"⬇️",8,gen),x("button",{onClick:Qt(l=>i.deleteElement(s),["stop"]),class:"btn-delete",title:"删除"},"×",8,ven)])]),o.selectedElementIndex===s?(F(),K("div",men,[x("div",yen,[t[78]||(t[78]=x("h4",null,"位置和尺寸",-1)),x("div",ben,[t[73]||(t[73]=x("label",null,"X坐标:",-1)),an(x("input",{type:"number","onUpdate:modelValue":l=>a.left=l,onInput:t[19]||(t[19]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,wen),[[jr,a.left,void 0,{number:!0}]])]),x("div",Aen,[t[74]||(t[74]=x("label",null,"Y坐标:",-1)),an(x("input",{type:"number","onUpdate:modelValue":l=>a.top=l,onInput:t[20]||(t[20]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Cen),[[jr,a.top,void 0,{number:!0}]])]),x("div",xen,[t[75]||(t[75]=x("label",null,"宽度:",-1)),an(x("input",{type:"number","onUpdate:modelValue":l=>a.width=l,onInput:t[21]||(t[21]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Sen),[[jr,a.width,void 0,{number:!0}]])]),x("div",Een,[t[76]||(t[76]=x("label",null,"高度:",-1)),an(x("input",{type:"number","onUpdate:modelValue":l=>a.height=l,onInput:t[22]||(t[22]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,ken),[[jr,a.height,void 0,{number:!0}]])]),x("div",Ten,[t[77]||(t[77]=x("label",null,"旋转:",-1)),an(x("input",{type:"number","onUpdate:modelValue":l=>a.rotate=l,onInput:t[23]||(t[23]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,_en),[[jr,a.rotate,void 0,{number:!0}]])])]),a.type==="text"?(F(),K("div",Den,[t[84]||(t[84]=x("h4",null,"文本属性",-1)),x("div",Ien,[t[79]||(t[79]=x("label",null,"内容:",-1)),an(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",Men,[t[81]||(t[81]=x("label",null,"字体:",-1)),an(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,Pen),[[x2,a.defaultFontName]])]),x("div",Nen,[t[82]||(t[82]=x("label",null,"颜色:",-1)),an(x("input",{type:"color","onUpdate:modelValue":l=>a.defaultColor=l,onInput:t[26]||(t[26]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Ren),[[jr,a.defaultColor]])]),x("div",Ben,[t[83]||(t[83]=x("label",null,"透明度:",-1)),an(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,Len),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,ze(a.opacity||1),1)])])):xe("",!0),a.type==="image"?(F(),K("div",Fen,[t[87]||(t[87]=x("h4",null,"图片属性",-1)),x("div",Uen,[t[85]||(t[85]=x("label",null,"图片URL:",-1)),an(x("input",{type:"text","onUpdate:modelValue":l=>a.src=l,onInput:t[28]||(t[28]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,zen),[[jr,a.src]])]),x("div",$en,[t[86]||(t[86]=x("label",null,"透明度:",-1)),an(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,jen),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,ze(a.opacity||1),1)])])):xe("",!0),a.type==="shape"?(F(),K("div",Hen,[t[90]||(t[90]=x("h4",null,"形状属性",-1)),x("div",Wen,[t[88]||(t[88]=x("label",null,"填充颜色:",-1)),an(x("input",{type:"color","onUpdate:modelValue":l=>a.fill=l,onInput:t[30]||(t[30]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Ven),[[jr,a.fill]])]),x("div",qen,[t[89]||(t[89]=x("label",null,"透明度:",-1)),an(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,Gen),[[jr,a.opacity,void 0,{number:!0}]]),x("span",null,ze(a.opacity||1),1)])])):xe("",!0)])):xe("",!0)],10,len))),128))])]),x("div",Ken,[x("div",Yen,[x("h3",null,ze(o.isPPTPreviewMode?"PPT预览":"模板预览"),1),x("div",Qen,[x("button",{onClick:t[32]||(t[32]=(...a)=>i.zoomOut&&i.zoomOut(...a)),class:"btn btn-sm"},"-"),x("span",Zen,ze(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",Xen,[x("button",{onClick:t[37]||(t[37]=(...a)=>i.previousPPTSlide&&i.previousPPTSlide(...a)),class:"btn btn-sm",disabled:o.currentPPTPreviewIndex===0},"上一页",8,Jen),x("span",etn,ze(o.currentPPTPreviewIndex+1)+" / "+ze(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,ttn),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:Jt({transform:`scale(${o.zoom})`,background:o.currentSlide.background?.type==="gradient"?i.getGradientStyle(o.currentSlide.background.gradient):o.currentSlide.background?.color||"#ffffff"})},[(F(!0),K(Nt,null,on(o.currentSlide.elements,(a,s)=>(F(),K("div",{key:a.id,class:oe(["preview-element",{selected:o.selectedElementIndex===s}]),style:Jt(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,rtn)):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,otn)):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,itn)):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,atn)):xe("",!0),o.selectedElementIndex===s?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(l=>i.startDrag(l,s),["stop"])},null,40,stn)):xe("",!0),a.type==="image"&&a.src?(F(),K("img",{key:5,src:a.src,alt:a.id,style:Jt({opacity:a.opacity||1})},null,12,ltn)):a.type==="text"?(F(),K(Nt,{key:6},[o.editingElementIndex===s?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingHtml,style:Jt({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,utn)):(F(),K("div",{key:1,innerHTML:a.content,style:Jt({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1})},null,12,ctn))],64)):a.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Jt(i.getShapeStyle(a))},null,4)):xe("",!0)],46,ntn))),128))],4)),o.isPPTPreviewMode&&o.generatedPPT.length>0?(F(),K("div",{key:1,class:"slide-preview",style:Jt({transform:`scale(${o.zoom})`,background:i.getCurrentPPTSlideBackground()})},[t[91]||(t[91]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 双击文字可编辑,点击图片可更换,拖拽移动位置,四角手柄缩放大小")],-1)),(F(!0),K(Nt,null,on(i.getCurrentPPTSlide().elements,(a,s)=>(F(),K("div",{key:a.id,class:oe(["preview-element ppt-element",{selected:o.selectedPPTElementIndex===s}]),style:Jt(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,ftn)):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,ptn)):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,htn)):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,gtn)):xe("",!0),o.selectedPPTElementIndex===s?(F(),K("div",{key:4,class:"drag-handle",onMousedown:Qt(l=>i.startPPTDrag(l,s),["stop"])},null,40,vtn)):xe("",!0),a.type==="image"&&a.src?(F(),K("img",{key:5,src:a.src,alt:a.id,style:Jt({opacity:a.opacity||1}),onClick:Qt(l=>i.changePPTImage(s),["stop"]),onMousedown:t[44]||(t[44]=Qt(()=>{},["stop"]))},null,44,mtn)):a.type==="text"?(F(),K(Nt,{key:6},[o.editingPPTElementIndex===s?(F(),K("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingPPTHtml,style:Jt({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,ytn)):(F(),K("div",{key:1,innerHTML:a.content,style:Jt({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,btn))],64)):a.type==="shape"?(F(),K("div",{key:7,class:"shape",style:Jt(i.getShapeStyle(a))},null,4)):xe("",!0)],46,dtn))),128))],4)):xe("",!0)],544)]),x("div",wtn,[t[102]||(t[102]=x("div",{class:"panel-header"},[x("h3",null,"幻灯片属性")],-1)),x("div",Atn,[x("div",Ctn,[t[97]||(t[97]=x("h4",null,"背景设置",-1)),x("div",xtn,[t[93]||(t[93]=x("label",null,"背景类型:",-1)),an(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),[[x2,o.currentSlide.background.type]])]),o.currentSlide.background&&o.currentSlide.background.type==="color"?(F(),K("div",Stn,[t[94]||(t[94]=x("label",null,"背景颜色:",-1)),an(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",Etn,[x("div",ktn,[t[96]||(t[96]=x("label",null,"渐变类型:",-1)),an(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),[[x2,o.currentSlide.background.gradient.type]])]),x("div",Ttn,[(F(!0),K(Nt,null,on(o.currentSlide.background.gradient&&o.currentSlide.background.gradient.colors||[],(a,s)=>(F(),K("div",{key:s,class:"gradient-color-item"},[an(x("input",{type:"color","onUpdate:modelValue":l=>a.color=l,onInput:t[57]||(t[57]=(...l)=>i.updateSlideBackground&&i.updateSlideBackground(...l))},null,40,_tn),[[jr,a.color]]),an(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,Dtn),[[jr,a.pos,void 0,{number:!0}]]),x("button",{onClick:l=>i.removeGradientColor(s),class:"btn-delete"},"×",8,Itn)]))),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",Mtn,[t[98]||(t[98]=x("label",null,"模板名称:",-1)),an(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",Ptn,[t[99]||(t[99]=x("label",null,"模板ID:",-1)),an(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",Ntn,[t[100]||(t[100]=x("label",null,"模板类型:",-1)),an(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",Rtn,[x("div",Btn,[x("div",Ltn,[t[103]||(t[103]=x("h3",null,"JSON编辑器",-1)),x("button",{onClick:t[66]||(t[66]=a=>o.showJSONEditor=!1),class:"btn-close"},"×")]),an(x("textarea",{"onUpdate:modelValue":t[67]||(t[67]=a=>o.jsonContent=a),class:"json-textarea",placeholder:"在这里编辑JSON内容..."},null,512),[[jr,o.jsonContent]]),x("div",Ftn,[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 ztn=Yo(YJt,[["render",Utn],["__scopeId","data-v-de93f008"]]),$tn="/assets/13-CcUgOE0U.png",jtn="/assets/4-DHzSAirS.png",Htn="/assets/5-CIylGsDd.png",Wtn={key:0,class:"mobile-toast"},Vtn={class:"toast-message"},qtn={__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=Y(null);return Ct(()=>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",Wtn,[x("div",Vtn,ze(e.message),1)])):xe("",!0)]),_:1}))}},f2=Yo(qtn,[["__scopeId","data-v-a2a75a91"]]),Gtn={key:0,class:"modal-overlay"},Ktn={class:"modal-body"},Ytn={class:"feedback-type-section"},Qtn={class:"type-buttons"},Ztn={class:"feedback-content-section"},Xtn={class:"textarea-container"},Jtn={class:"char-count"},enn={class:"upload-section"},tnn={key:1,class:"uploaded-images"},nnn=["src","alt"],rnn={class:"image-actions"},onn=["onClick"],inn={key:0,class:"upload-progress"},ann={class:"progress-bar"},snn={class:"progress-text"},lnn={class:"contact-section"},unn={class:"modal-footer"},cnn=["src"],dnn={__name:"MobileFeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=Y("function"),i=Y(""),a=Y(""),s=Y(null),l=Y([]);Y(!1);const u=Y(!1),d=Y(""),c=ee(()=>i.value.trim()?yve:bve),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,O=S.filter(I=>I.size>k?(f(`图片 ${I.name} 超过5MB限制`),!1):!0);if(O.length!==0){for(const I of O)await m(I);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 O=await Bn.uploadImage(k);if(console.log("后端API响应:",O),O.statusCode===200){const I=O.fileUrl||O.fileURL;console.log("上传成功:",I);const P=l.value.findIndex(M=>M.file===A);P!==-1&&(l.value[P]={...S,url:I,uploading:!1,progress:100}),f(`图片 ${A.name} 上传成功`)}else throw new Error(O.message||"上传失败")}catch(S){console.error("图片上传失败:",S);const k=l.value.findIndex(O=>O.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(O=>!O.uploading&&!O.error);let S="";A.length>0&&(S=A.map(O=>O.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 Ct(()=>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",Gtn,[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",Ktn,[x("div",Ytn,[S[9]||(S[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",Qtn,[x("button",{class:oe(["type-btn",{active:o.value==="function"}]),onClick:S[0]||(S[0]=k=>v("function"))}," 功能建议 ",2),x("button",{class:oe(["type-btn",{active:o.value==="interface"}]),onClick:S[1]||(S[1]=k=>v("interface"))}," 界面优化 ",2),x("button",{class:oe(["type-btn",{active:o.value==="experience"}]),onClick:S[2]||(S[2]=k=>v("experience"))}," 体验问题 ",2),x("button",{class:oe(["type-btn",{active:o.value==="other"}]),onClick:S[3]||(S[3]=k=>v("other"))}," 其他 ",2)])]),x("div",Ztn,[S[10]||(S[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",Xtn,[an(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",Jtn,ze(i.value.length)+"/200",1)])]),x("div",enn,[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:cE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(F(),K("div",tnn,[(F(!0),K(Nt,null,on(l.value,(k,O)=>(F(),K("div",{key:O,class:"image-item"},[x("img",{src:k.url,alt:`截图${O+1}`,class:"preview-img"},null,8,nnn),x("div",rnn,[x("button",{class:"delete-btn",onClick:I=>b(O)},S[12]||(S[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,onn)]),k.uploading?(F(),K("div",inn,[x("div",ann,[x("div",{class:"progress-fill",style:Jt({width:k.progress+"%"})},null,4)]),x("span",snn,ze(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:cE,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",lnn,[an(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",unn,[x("button",{class:"submit-btn",onClick:w},[x("img",{src:c.value,alt:"提交反馈",class:"submit-icon"},null,8,cnn)])])]),$e(f2,{visible:u.value,message:d.value,onClose:p},null,8,["visible","message"])])):xe("",!0)}},fnn=Yo(dnn,[["__scopeId","data-v-badc5e32"]]),pnn={class:"mobile-container"},hnn={class:"mobile-header"},gnn={class:"mobile-username"},vnn={key:0,class:"mobile-dropdown-menu"},mnn={class:"mobile-main-content"},ynn={class:"mobile-search-container"},bnn={class:"mobile-search-box"},wnn=["disabled"],Ann={class:"mobile-icon-container"},Cnn=["src"],xnn={key:0,class:"mobile-recording-indicator"},Snn=["disabled"],Enn=["src"],knn={class:"mobile-cards-container"},Tnn={class:"mobile-common-questions-card"},_nn={class:"mobile-questions-content"},Dnn={class:"mobile-questions-list"},Inn=["onClick"],Onn={__name:"m-Index",setup(e){const t=Hl(),{isListening:n,isProcessing:r,transcript:o,error:i,startListening:a,stopListening:s}=T0(),l=Y(""),u=Y(!1),d=Y(!1),c=Y([]),f=Y(null),p=Y(!1),v=async()=>{try{const V=await Bn.getRecommendQuestion({limit:5});c.value=V.data,console.log("推荐问题数据结构:",c.value)}catch(V){console.error("获取推荐问题失败:",V)}},h=()=>{v()},g=()=>{if(console.log("点击语音按钮"),r.value){At.info("语音正在转写,请稍候...");return}n.value?m():y()},y=()=>{console.log("开始语音输入"),a()||At.error("语音识别启动失败,请检查麦克风权限")},m=()=>{console.log("停止语音输入"),s(),At.info("语音转写中,请稍候...")},b=async()=>{if(!l.value.trim()){At.warning("请输入搜索内容");return}if(!d.value){d.value=!0;try{console.log("搜索内容:",l.value),t.push({path:"/mobile/chat",query:{autoMessage:l.value}})}finally{d.value=!1}}},w=()=>{u.value=!0},A=()=>{u.value=!1},S=async V=>{try{console.log("收到反馈数据:",V),console.log("feedback_img字段值:",V.feedback_img);let L=V.feedback_img||"";console.log("处理后的feedbackImg:",L);const j={feedback_type:k(V.type),feedback_content:V.content,feedback_user_phone:V.contact||"",feedback_img:L};console.log(j,"feedbackPayload");const H=await Bn.submitFeedback(j);console.log(H,"response"),At.success("反馈提交成功!感谢您的宝贵意见"),A()}catch(L){console.error("提交反馈失败:",L),At.error("提交反馈失败,请重试")}},k=V=>({function:1,interface:2,experience:3,other:4})[V]||1,O=V=>{console.log("点击问题:",V),t.push({path:"/mobile/chat",query:{autoMessage:V}})},I=()=>{t.push("/mobile/hazard-detection")},P=()=>{t.push("/mobile/safety-hazard")},M=()=>{t.push("/mobile/exam-workshop")},_=()=>{t.push("/mobile/ai-writing")},R=()=>{t.push("/mobile/policy-document")},N=()=>{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"),setTimeout(()=>{console.log("🔄 延迟尝试使用 window.close() 关闭页面");try{window.close(),console.log("✅ 已调用 window.close()")}catch(V){console.warn("⚠️ window.close() 调用失败:",V.message)}},100);return}catch(V){console.error("❌ 调用 nativeClosePage() 失败:",V),console.error("❌ 错误详情:",V.message)}try{console.log("🔄 尝试使用 window.close() 关闭页面"),window.close(),console.log("✅ 已调用 window.close()"),sessionStorage.setItem("is_closing","true"),setTimeout(()=>{console.warn("⚠️ window.close() 可能未生效,显示提示信息"),At.info("如果页面未关闭,请使用 APP 的返回按钮")},500)}catch(V){console.error("❌ window.close() 调用失败:",V),console.error("❌ 错误详情:",V.message),console.warn("⚠️ 当前环境:",navigator.userAgent),At.warning("无法自动关闭页面,请使用 APP 的返回按钮")}console.log("=".repeat(60))};return Ct(o,V=>{!V||n.value||(l.value=V)}),Ct(i,V=>{V&&(console.error("语音识别错误:",V),At.error(V))}),jn(()=>{v();const V=Vve();f.value={username:V||"蜀道用户"},console.log("用户信息:",f.value)}),(V,L)=>(F(),K("div",pnn,[x("div",hnn,[L[5]||(L[5]=x("div",{class:"logo"},[x("img",{src:Qj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"mobile-user-info",onMouseenter:L[0]||(L[0]=j=>p.value=!0),onMouseleave:L[1]||(L[1]=j=>p.value=!1)},[L[4]||(L[4]=x("div",{class:"mobile-user-avatar"},[x("div",{class:"mobile-avatar-icon"})],-1)),x("span",gnn,ze(f.value?.username||"用户"),1),p.value?(F(),K("div",vnn,[x("div",{class:"mobile-dropdown-item mobile-logout-item",onClick:N},L[3]||(L[3]=[x("span",null,"返回APP",-1)]))])):xe("",!0)],32)]),x("div",mnn,[L[15]||(L[15]=x("h1",{class:"mobile-main-title"},"蜀道安全管理AI智能助手",-1)),L[16]||(L[16]=x("p",{class:"mobile-sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",ynn,[x("div",bnn,[an(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"mobile-search-input","onUpdate:modelValue":L[2]||(L[2]=j=>l.value=j),onKeyup:Lr(b,["enter"])},null,544),[[jr,l.value]]),x("button",{class:oe(["mobile-voice-btn",{recording:C(n)}]),onClick:g,disabled:d.value},[x("div",Ann,[x("img",{src:C(Xf),alt:"语音",class:"mobile-action-icon"},null,8,Cnn),C(n)?(F(),K("div",xnn)):xe("",!0)])],10,wnn),L[6]||(L[6]=x("div",{class:"mobile-divider"},null,-1)),x("button",{class:"mobile-send-btn",onClick:b,disabled:d.value||!l.value.trim()},[x("img",{src:l.value.trim()&&!d.value?C(ep):C(Jf),alt:"发送",class:"mobile-send-icon"},null,8,Enn)],8,Snn)])]),x("div",knn,[x("div",Tnn,[x("div",{class:"mobile-card-header"},[L[8]||(L[8]=x("div",{class:"mobile-card-title-section"},[x("img",{src:$tn,alt:"场景问题",class:"mobile-card-avatar"}),x("span",{class:"mobile-card-title"},"场景问题")],-1)),x("div",{class:"mobile-refresh-button",onClick:h},L[7]||(L[7]=[x("span",{class:"mobile-refresh-text"},"换一换",-1)]))]),x("div",_nn,[x("div",Dnn,[(F(!0),K(Nt,null,on(c.value,(j,H)=>(F(),K("div",{class:"mobile-question-item",onClick:G=>O(j.question),key:H},ze(H+1)+". "+ze(j.question),9,Inn))),128))])])]),x("div",{class:"mobile-services-grid"},[x("div",{class:"mobile-service-item",onClick:I},L[9]||(L[9]=[ki('<div class="mobile-service-icon" data-v-8636a91b><img src="'+jtn+'" alt="隐患提示" class="mobile-service-bg" data-v-8636a91b></div><div class="mobile-service-info mobile-service-info-large" data-v-8636a91b><div class="mobile-service-title mobile-service-title-large" data-v-8636a91b>隐患提示</div><div class="mobile-service-desc mobile-service-desc-large" data-v-8636a91b>图片智能识别,风险隐患提示</div></div>',2)])),x("div",{class:"mobile-service-item",onClick:P},L[10]||(L[10]=[ki('<div class="mobile-service-icon" data-v-8636a91b><img src="'+Htn+'" alt="安全培训" class="mobile-service-bg" data-v-8636a91b></div><div class="mobile-service-info mobile-service-info-large" data-v-8636a91b><div class="mobile-service-title mobile-service-title-large" data-v-8636a91b>安全培训</div><div class="mobile-service-desc mobile-service-desc-large" data-v-8636a91b>智能编排大纲,生成精美演示文稿</div></div>',2)]))]),x("div",{class:"mobile-four-services"},[x("div",{class:"mobile-service-item",onClick:M},L[11]||(L[11]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+hve+'" alt="考试工坊" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>考试工坊</div></div><div class="mobile-service-description" data-v-8636a91b>让组卷更省心,让出题更精准</div><div class="mobile-service-tag" style="color:#2563EB;" data-v-8636a91b>生成考题 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:_},L[12]||(L[12]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+vve+'" alt="AI写作" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>AI写作</div></div><div class="mobile-service-description" data-v-8636a91b>一键创作公文,让文案更专业</div><div class="mobile-service-tag" style="color:#16A34A;" data-v-8636a91b>开始创作 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:R},L[13]||(L[13]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+gve+'" alt="政策文件" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>政策文件</div></div><div class="mobile-service-description" data-v-8636a91b>汇集国家、行业及集团政策文件</div><div class="mobile-service-tag" style="color:#EA580C;" data-v-8636a91b>了解更多 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:w},L[14]||(L[14]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+mve+'" alt="意见反馈" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>意见反馈</div></div><div class="mobile-service-description" data-v-8636a91b>助力产品升级,期待您的反馈</div><div class="mobile-service-tag" style="color:#9333EA;" data-v-8636a91b>参与反馈 ›</div>',3)]))])])]),L[17]||(L[17]=x("div",{class:"mobile-footer"},[x("div",{class:"mobile-footer-info"},[x("span",null,"工信部备案号: 蜀ICP备20251411234号-1"),x("span",null,"川公网安备: 51010502011234号")])],-1)),$e(fnn,{visible:u.value,onClose:A,onSubmit:S},null,8,["visible"])]))}},Mnn=Yo(Onn,[["__scopeId","data-v-8636a91b"]]),Pnn={class:"mobile-header"},Nnn={class:"page-title"},Rnn={__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",Pnn,[x("button",{class:"back-button",onClick:n},o[1]||(o[1]=[x("img",{src:swe,alt:"回到首页",class:"back-icon"},null,-1)])),x("h1",Nnn,ze(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)]))}},p2=Yo(Rnn,[["__scopeId","data-v-7dd50625"]]),m0e="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=",Bnn={class:"mobile-history-drawer"},Lnn={class:"drawer-tabbar"},Fnn=["onClick"],Unn={class:"icon-wrap"},znn=["src","alt"],$nn={class:"tab-label"},jnn={class:"drawer-header"},Hnn={class:"drawer-title"},Wnn={class:"drawer-content"},Vnn={key:0,class:"loading-state"},qnn=["onClick"],Gnn={class:"history-content"},Knn={class:"history-title"},Ynn={class:"history-time"},Qnn=["onClick"],Znn=["src"],Xnn={key:2,class:"empty-history"},Jnn={__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=z_(),o=t,i=ee(()=>[{path:"/mobile/chat",label:"AI问答",icon:m0e,iconActive:m0e},{path:"/mobile/safety-hazard",label:"安全培训",icon:AF,iconActive:AF},{path:"/mobile/hazard-detection",label:"隐患提示",icon:wF,iconActive:wF},{path:"/mobile/ai-writing",label:"AI写作",icon:CF,iconActive:CF},{path:"/mobile/exam-workshop",label:"考试工坊",icon:xF,iconActive:xF}]),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)=>an((F(),K("div",Bnn,[x("div",Lnn,[(F(!0),K(Nt,null,on(i.value,v=>(F(),K("button",{key:v.path,class:oe(["tab-item",{active:a(v.path)}]),onClick:h=>s(v.path)},[x("div",Unn,[x("img",{src:a(v.path)?v.iconActive:v.icon,alt:v.label,class:"tab-icon"},null,8,znn)]),x("span",$nn,ze(v.label),1)],10,Fnn))),128))]),x("div",jnn,[x("div",Hnn,ze(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",Wnn,[e.loading?(F(),K("div",Vnn,p[0]||(p[0]=[x("div",{class:"loading-text"},"加载中...",-1)]))):e.historyData.length>0?(F(!0),K(Nt,{key:1},on(e.historyData,(v,h)=>(F(),K("div",{key:v.id,class:oe(["history-item",{active:v.isActive}]),onClick:g=>d(v)},[x("div",Gnn,[x("div",Knn,ze(v.title),1),x("div",Ynn,ze(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,Znn)],8,Qnn)],10,qnn))),128)):(F(),K("div",Xnn,p[1]||(p[1]=[x("div",{class:"empty-text"},"暂无历史记录",-1)])))])],512)),[[Ar,e.visible]])}},q5=Yo(Jnn,[["__scopeId","data-v-98e1dd42"]]);var Z8={exports:{}};/*!
  1933. * Vditor v3.11.2 - A markdown editor written in TypeScript.
  1934. *
  1935. * MIT License
  1936. *
  1937. * Copyright (c) 2018-present B3log 开源, b3log.org
  1938. *
  1939. * Permission is hereby granted, free of charge, to any person obtaining a copy
  1940. * of this software and associated documentation files (the "Software"), to deal
  1941. * in the Software without restriction, including without limitation the rights
  1942. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  1943. * copies of the Software, and to permit persons to whom the Software is
  1944. * furnished to do so, subject to the following conditions:
  1945. *
  1946. * The above copyright notice and this permission notice shall be included in all
  1947. * copies or substantial portions of the Software.
  1948. *
  1949. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1950. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1951. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  1952. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  1953. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  1954. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  1955. * SOFTWARE.
  1956. *
  1957. */var ern=Z8.exports,y0e;function trn(){return y0e||(y0e=1,(function(e,t){(function(r,o){e.exports=o()})(ern,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],O=b[4],I=this.diff_main(w,S,p,v),P=this.diff_main(A,k,p,v);return I.concat([new s.Diff(d,O)],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,O=0,I=0,P=0,M=0,_=0;_<g&&!(new Date().getTime()>p);_++){for(var R=-_+O;R<=_-I;R+=2){var N=y+R,V;R==-_||R!=_&&b[N-1]<b[N+1]?V=b[N+1]:V=b[N-1]+1;for(var L=V-R;V<v&&L<h&&c.charAt(V)==f.charAt(L);)V++,L++;if(b[N]=V,V>v)I+=2;else if(L>h)O+=2;else if(k){var j=y+S-R;if(j>=0&&j<m&&w[j]!=-1){var H=v-w[j];if(V>=H)return this.diff_bisectSplit_(c,f,V,L,p)}}}for(var G=-_+P;G<=_-M;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)M+=2;else if(Z>h)P+=2;else if(!k){var N=y+S-G;if(N>=0&&N<m&&b[N]!=-1){var V=b[N],L=y+V-N;if(H=v-H,V>=H)return this.diff_bisectSplit_(c,f,V,L,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(`
  1958. `,A),S==-1&&(S=b.length-1);var O=b.substring(A,S+1);(v.hasOwnProperty?v.hasOwnProperty(O):v[O]!==void 0)?w+=String.fromCharCode(v[O]):(k==g&&(O=b.substring(A),S=b.length),w+=String.fromCharCode(k),v[O]=k,p[k++]=O),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(I,P,M){for(var _=I.substring(M,M+Math.floor(I.length/4)),R=-1,N="",V,L,j,H;(R=P.indexOf(_,R+1))!=-1;){var G=h.diff_commonPrefix(I.substring(M),P.substring(R)),Z=h.diff_commonSuffix(I.substring(0,M),P.substring(0,R));N.length<Z+G&&(N=P.substring(R-Z,R)+P.substring(R,R+G),V=I.substring(0,M-Z),L=I.substring(M+G),j=P.substring(0,R-Z),H=P.substring(R+G))}return N.length*2>=I.length?[V,L,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 O=b[4];return[w,A,S,k,O]},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),O=this.diff_commonOverlap_(S,A);k>=O?(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++):(O>=A.length/2||O>=S.length/2)&&(c.splice(g,0,new s.Diff(d,A.substring(0,O))),c[g-1][0]=u,c[g-1][1]=S.substring(0,S.length-O),c[g+1][0]=l,c[g+1][1]=A.substring(O),g++),g++}g++}},s.prototype.diff_cleanupSemanticLossless=function(c){function f(O,I){if(!O||!I)return 6;var P=O.charAt(O.length-1),M=I.charAt(0),_=P.match(s.nonAlphaNumericRegex_),R=M.match(s.nonAlphaNumericRegex_),N=_&&P.match(s.whitespaceRegex_),V=R&&M.match(s.whitespaceRegex_),L=N&&P.match(s.linebreakRegex_),j=V&&M.match(s.linebreakRegex_),H=L&&O.match(s.blanklineEndRegex_),G=j&&I.match(s.blanklineStartRegex_);return H||G?5:L||j?4:_&&!N&&V?3:N||V?2:_||R?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,"&amp;").replace(v,"&lt;").replace(h,"&gt;").replace(g,"&para;<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(V,L){var j=V/f.length,H=Math.abs(p-L);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,O=0;O<f.length;O++){for(w=0,A=S;w<A;)g(O,p+A)<=y?w=A:S=A,A=Math.floor((S-w)/2+w);S=A;var I=Math.max(1,p-A+1),P=Math.min(p+A,c.length)+f.length,M=Array(P+2);M[P+1]=(1<<O)-1;for(var _=P;_>=I;_--){var R=v[c.charAt(_-1)];if(O===0?M[_]=(M[_+1]<<1|1)&R:M[_]=(M[_+1]<<1|1)&R|((k[_+1]|k[_])<<1|1)|k[_+1],M[_]&b){var N=g(O,_-1);if(N<=y)if(y=N,m=_-1,m>p)I=Math.max(1,2*p-m);else break}}if(g(O+1,p)>y)break;k=M}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 O=h[k][0],I=h[k][1];switch(!m&&O!==d&&(y.start1=b,y.start2=w),O){case u:y.diffs[m++]=h[k],y.length2+=I.length,S=S.substring(0,w)+I+S.substring(w);break;case l:y.length1+=I.length,y.diffs[m++]=h[k],S=S.substring(0,w)+S.substring(w+I.length);break;case d:I.length<=2*this.Patch_Margin&&m&&h.length!=k+1?(y.diffs[m++]=h[k],y.length1+=I.length,y.length2+=I.length):I.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}O!==u&&(b+=I.length),O!==l&&(w+=I.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,O,I=0;I<c[g].diffs.length;I++){var P=c[g].diffs[I];P[0]!==d&&(O=this.diff_xIndex(S,k)),P[0]===u?f=f.substring(0,b+O)+P[1]+f.substring(b+O):P[0]===l&&(f=f.substring(0,b+O)+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(`
  1959. `),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+` @@
  1960. `],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])+`
  1961. `}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(me){var Me=document.createElement("img");Me.src=me.getAttribute("data-src"),Me.addEventListener("load",function(){!me.getAttribute("style")&&!me.getAttribute("class")&&!me.getAttribute("width")&&!me.getAttribute("height")&&Me.naturalHeight>Me.naturalWidth&&Me.naturalWidth/Me.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&Me.naturalHeight>window.innerHeight-40&&(me.style.height=window.innerHeight-40+"px"),me.src=Me.src}),me.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return X.querySelectorAll("img").forEach(function(me){me.getAttribute("data-src")&&ue(me)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),X.querySelectorAll("img").forEach(function(me){window.vditorImageIntersectionObserver.observe(me)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(me){me.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(me){window.vditorImageIntersectionObserver.observe(me)}))},y=l(472),m=l(280),b=l(637),w=l(825),A=l(11),S=l(194),k=l(436),O=l(229),I=l(145),P=l(538),M=l(413),_=l(106),R=l(673),N=function(X){document.querySelectorAll(".vditor-anchor").forEach(function(ue){X===1&&ue.classList.add("vditor-anchor--left"),ue.onclick=function(){var me=ue.getAttribute("href").substr(1),Me=document.getElementById("vditorAnchor-"+me).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)}},V=l(214),L=l(810),j=function(X,ue){if(ue===void 0&&(ue="zh_CN"),!(typeof speechSynthesis>"u"||typeof SpeechSynthesisUtterance>"u")){var me=function(){var be=speechSynthesis.getVoices(),De,pe;return be.forEach(function(ie){ie.lang===ue.replace("_","-")&&(De=ie),ie.default&&(pe=ie)}),De||(De=pe),De},Me='<svg><use xlink:href="#vditor-icon-play"></use></svg>',Ae='<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>',Ae='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var ge=document.querySelector(".vditor-speech");ge||(ge=document.createElement("button"),ge.className="vditor-speech",X.insertAdjacentElement("beforeend",ge),speechSynthesis.onvoiceschanged!==void 0&&(speechSynthesis.onvoiceschanged=me));var _e=me(),Q=new SpeechSynthesisUtterance;Q.voice=_e,Q.onend=Q.onerror=function(){ge.style.display="none",speechSynthesis.cancel(),ge.classList.remove("vditor-speech--current"),ge.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")){ge.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),ge.innerHTML=Ae):(speechSynthesis.pause(),ge.innerHTML=Me)):(Q.text=ge.getAttribute("data-text"),speechSynthesis.speak(Q),ge.classList.add("vditor-speech--current"),ge.innerHTML=Ae),(0,L.Hc)(window.vditorSpeechRange),X.focus();return}if(ge.style.display="none",speechSynthesis.cancel(),ge.classList.remove("vditor-speech--current"),ge.innerHTML=Me,getSelection().rangeCount!==0){var pe=getSelection().getRangeAt(0),ie=pe.toString().trim();if(ie){window.vditorSpeechRange=pe.cloneRange();var ce=pe.getBoundingClientRect();ge.innerHTML=Me,ge.style.display="block",ge.style.top=ce.top+ce.height+document.querySelector("html").scrollTop-20+"px",window.ontouchstart!==void 0?ge.style.left=be.changedTouches[be.changedTouches.length-1].pageX+2+"px":ge.style.left=be.clientX+2+"px",ge.setAttribute("data-text",ie)}}})}},H=function(X,ue,me,Me){function Ae(ge){return ge instanceof me?ge:new me(function(_e){_e(ge)})}return new(me||(me=Promise))(function(ge,_e){function Q(pe){try{De(Me.next(pe))}catch(ie){_e(ie)}}function be(pe){try{De(Me.throw(pe))}catch(ie){_e(ie)}}function De(pe){pe.done?ge(pe.value):Ae(pe.value).then(Q,be)}De((Me=Me.apply(X,ue||[])).next())})},G=function(X,ue){var me={label:0,sent:function(){if(ge[0]&1)throw ge[1];return ge[1]},trys:[],ops:[]},Me,Ae,ge,_e;return _e={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function Q(De){return function(pe){return be([De,pe])}}function be(De){if(Me)throw new TypeError("Generator is already executing.");for(;_e&&(_e=0,De[0]&&(me=0)),me;)try{if(Me=1,Ae&&(ge=De[0]&2?Ae.return:De[0]?Ae.throw||((ge=Ae.return)&&ge.call(Ae),0):Ae.next)&&!(ge=ge.call(Ae,De[1])).done)return ge;switch(Ae=0,ge&&(De=[De[0]&2,ge.value]),De[0]){case 0:case 1:ge=De;break;case 4:return me.label++,{value:De[1],done:!1};case 5:me.label++,Ae=De[1],De=[0];continue;case 7:De=me.ops.pop(),me.trys.pop();continue;default:if(ge=me.trys,!(ge=ge.length>0&&ge[ge.length-1])&&(De[0]===6||De[0]===2)){me=0;continue}if(De[0]===3&&(!ge||De[1]>ge[0]&&De[1]<ge[3])){me.label=De[1];break}if(De[0]===6&&me.label<ge[1]){me.label=ge[1],ge=De;break}if(ge&&me.label<ge[2]){me.label=ge[2],me.ops.push(De);break}ge[2]&&me.ops.pop(),me.trys.pop();continue}De=ue.call(X,me)}catch(pe){De=[6,pe],Ae=0}finally{Me=ge=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}},Z=function(X){var ue,me={anchor:0,cdn:I.g.CDN,customEmoji:{},emojiPath:"".concat(I.g.CDN,"/dist/images/emoji"),hljs:I.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:I.g.MARKDOWN_OPTIONS,math:I.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:I.g.THEME_OPTIONS};return X.cdn&&(!((ue=X.theme)===null||ue===void 0)&&ue.path||(me.theme.path="".concat(X.cdn,"/dist/css/content-theme")),X.emojiPath||(me.emojiPath="".concat(X.cdn,"/dist/images/emoji"))),(0,R.T)(me,X)},z=function(X,ue){var me=Z(ue);return(0,M.G)("".concat(me.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var Me=(0,V.X)({autoSpace:me.markdown.autoSpace,gfmAutoLink:me.markdown.gfmAutoLink,codeBlockPreview:me.markdown.codeBlockPreview,emojiSite:me.emojiPath,emojis:me.customEmoji,fixTermTypo:me.markdown.fixTermTypo,footnotes:me.markdown.footnotes,headingAnchor:me.anchor!==0,inlineMathDigit:me.math.inlineDigit,lazyLoadImage:me.lazyLoadImage,linkBase:me.markdown.linkBase,linkPrefix:me.markdown.linkPrefix,listStyle:me.markdown.listStyle,mark:me.markdown.mark,mathBlockPreview:me.markdown.mathBlockPreview,paragraphBeginningSpace:me.markdown.paragraphBeginningSpace,sanitize:me.markdown.sanitize,toc:me.markdown.toc});return ue?.renderers&&Me.SetJSRenderers({renderers:{Md2HTML:ue.renderers}}),Me.SetHeadingID(!0),Me.Md2HTML(X)})},U=function(X,ue,me){return H(void 0,void 0,void 0,function(){var Me,Ae,ge,_e;return G(this,function(Q){switch(Q.label){case 0:return Me=Z(me),[4,z(ue,Me)];case 1:if(Ae=Q.sent(),Me.transform&&(Ae=Me.transform(Ae)),X.innerHTML=Ae,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 ge="vditorI18nScript",_e=ge+Me.lang,document.querySelectorAll('head script[id^="'.concat(ge,'"]')).forEach(function(be){be.id!==_e&&document.head.removeChild(be)}),[4,(0,M.G)("".concat(Me.cdn,"/dist/js/i18n/").concat(Me.lang,".js"),_e)];case 3:Q.sent(),Q.label=4;case 4:return[3,6];case 5:window.VditorI18n=Me.i18n,Q.label=6;case 6:return Me.icon?[4,(0,M.G)("".concat(Me.cdn,"/dist/js/icons/").concat(Me.icon,".js"),"vditorIconScript")]:[3,8];case 7:Q.sent(),Q.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,O.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),re=l(580),J=(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=O.B,X.outlineRender=k.k,X.mediaRender=m.Y,X.speechRender=j,X.lazyLoadImageRender=g,X.md2html=z,X.preview=U,X.setCodeTheme=re.Y,X.setContentTheme=P.Z,X})();const te=J}),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{I(b.next(P))}catch(M){S(M)}}function O(P){try{I(b.throw(P))}catch(M){S(M)}}function I(P){P.done?A(P.value):w(P.value).then(k,O)}I((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(I){return function(P){return O([I,P])}}function O(I){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,I[0]&&(m=0)),m;)try{if(b=1,w&&(A=I[0]&2?w.return:I[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,I[1])).done)return A;switch(w=0,A&&(I=[I[0]&2,A.value]),I[0]){case 0:case 1:A=I;break;case 4:return m.label++,{value:I[1],done:!1};case 5:m.label++,w=I[1],I=[0];continue;case 7:I=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(I[0]===6||I[0]===2)){m=0;continue}if(I[0]===3&&(!A||I[1]>A[0]&&I[1]<A[3])){m.label=I[1];break}if(I[0]===6&&m.label<A[1]){m.label=A[1],A=I;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(I);break}A[2]&&m.ops.pop(),m.trys.pop();continue}I=y.call(g,m)}catch(P){I=[6,P],w=0}finally{b=A=0}if(I[0]&5)throw I[1];return{value:I[0]?I[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(O){switch(O.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];O.label=1;case 1:return O.trys.push([1,3,,4]),w.getAttribute("data-processed")==="true"?[2]:[4,(0,f.Qf)(A)];case 2:return S=O.sent(),echarts.init(w,m==="dark"?"dark":void 0).setOption(S),w.setAttribute("data-processed","true"),[3,4];case 3:return k=O.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(`
  1962. `)&&(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)||"复制",`"
  1963. onmouseover="this.setAttribute('aria-label', '`).concat(((g=window.VditorI18n)===null||g===void 0?void 0:g.copy)||"复制",`')"
  1964. class="vditor-tooltipped vditor-tooltipped__w"
  1965. 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,O=!1;(k==="pre-wrap"||k==="pre-line")&&(O=!0);var I="",P=w.textContent.split(/\r\n|\r|\n/g);P.pop(),P.map(function(M){var _="";O&&(S.textContent=M||`
  1966. `,_=' style="height:'.concat(S.getBoundingClientRect().height,'px"')),I+="<span".concat(_,"></span>")}),S.style.display="none",I='<span class="vditor-linenumber__rows">'.concat(I,"</span>"),w.insertAdjacentHTML("beforeend",I)}}})})})}}}),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(O){return!f[O]});b.forEach(function(O){f[O]=!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,O=w.create(k,null),I=p(S,y),P=I.root,M=I.frontmatter,_=M?.markmap,R=A(_);O.setData(P,R),O.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 O=k.currentTarget.closest(".language-math");k.clipboardData.setData("text/html",O.innerHTML),k.clipboardData.setData("text/plain",O.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],O=function(){var I=A[S++];I===k?I():I(O)};O()}};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(),O=window.MathJax.getMetricsFor(A);O.display=A.tagName==="DIV",window.MathJax.tex2svgPromise(k,O).then(function(I){A.innerHTML="",A.setAttribute("data-math",k),A.append(I),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var P=I.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(O){var I=y[O];!I.parentElement.classList.contains("vditor-wysiwyg__pre")&&!I.parentElement.classList.contains("vditor-ir__marker--pre")&&!I.getAttribute("data-math")&&(0,f.X)(I.textContent).trim()&&A.push(function(P){O===y.length-1?w(I):w(I,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"
  1967. 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"
  1968. 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"
  1969. 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 O={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(M,_){if(M){_===0&&(M=M.substr(1));var R=M.split("=");O[R[0]]=R[1]}});var I="https://player.bilibili.com/player.html?",P=Object.keys(O);P.forEach(function(M,_){I+="".concat(M,"=").concat(O[M]),_<P.length-1&&(I+="&")}),v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'.concat(I,'"></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{I(b.next(P))}catch(M){S(M)}}function O(P){try{I(b.throw(P))}catch(M){S(M)}}function I(P){P.done?A(P.value):w(P.value).then(k,O)}I((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(I){return function(P){return O([I,P])}}function O(I){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,I[0]&&(m=0)),m;)try{if(b=1,w&&(A=I[0]&2?w.return:I[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,I[1])).done)return A;switch(w=0,A&&(I=[I[0]&2,A.value]),I[0]){case 0:case 1:A=I;break;case 4:return m.label++,{value:I[1],done:!1};case 5:m.label++,w=I[1],I=[0];continue;case 7:I=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(I[0]===6||I[0]===2)){m=0;continue}if(I[0]===3&&(!A||I[1]>A[0]&&I[1]<A[3])){m.label=I[1];break}if(I[0]===6&&m.label<A[1]){m.label=A[1],A=I;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(I);break}A[2]&&m.ops.pop(),m.trys.pop();continue}I=y.call(g,m)}catch(P){I=[6,P],w=0}finally{b=A=0}if(I[0]&5)throw I[1];return{value:I[0]?I[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,O,I,P;return v(this,function(M){switch(M.label){case 0:if(S=c.mermaidRenderAdapter.getCode(A),A.getAttribute("data-processed")==="true"||S.trim()==="")return[2];k="mermaid"+(0,f.Wb)(),M.label=1;case 1:return M.trys.push([1,3,,4]),[4,mermaid.render(k,A.textContent)];case 2:return O=M.sent(),A.innerHTML=O.svg,[3,4];case 3:return I=M.sent(),P=document.querySelector("#"+k),A.innerHTML="".concat(P.outerHTML,`<br>
  1970. <div style="text-align: left"><small>`).concat(I.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":"",`">
  1971. <div class="vditor-img__bar">
  1972. <span class="vditor-img__btn" data-deg="0">
  1973. <svg><use xlink:href="#vditor-icon-redo"></use></svg>
  1974. `).concat(window.VditorI18n.spin,`
  1975. </span>
  1976. <span class="vditor-img__btn" onclick="this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''">
  1977. X &nbsp;`).concat(window.VditorI18n.close,`
  1978. </span>
  1979. </div>
  1980. <div class="vditor-img__img" onclick="this.parentElement.outerHTML = '';document.body.style.overflow = ''">
  1981. <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"),`">
  1982. </div>
  1983. </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 O=A.startContainer.parentElement;if(O&&O.getClientRects().length>0)k=O.getClientRects()[0];else return{left:0,top:0}}else{var I=A.startContainer.children;if(I[A.startOffset]&&I[A.startOffset].getClientRects().length>0)k=I[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 M=A.startContainer.childNodes[A.startOffset];!M.getClientRects||M.getClientRects&&M.getClientRects().length===0;)M=M.parentElement;k=M.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 O=S.cloneRange();w.childNodes[0]&&w.childNodes[0].childNodes[0]?O.setStart(w.childNodes[0].childNodes[0],0):O.selectNodeContents(w),O.setEnd(S.startContainer,S.startOffset),k.start=O.toString().length,k.end=k.start+S.toString().length}return k},y=function(w,A,S){var k=0,O=0,I=S.childNodes[O],P=!1,M=!1;w=Math.max(0,w),A=Math.max(0,A);var _=S.ownerDocument.createRange();for(_.setStart(I||S,0),_.collapse(!0);!M&&I;){var R=k+I.textContent.length;if(!P&&w>=k&&w<=R&&(w===0?_.setStart(I,0):I.childNodes[0].nodeType===3?_.setStart(I.childNodes[0],w-k):I.nextSibling?_.setStartBefore(I.nextSibling):_.setStartAfter(I),P=!0,w===A)){M=!0;break}P&&A>=k&&A<=R&&(A===0?_.setEnd(I,0):I.childNodes[0].nodeType===3?_.setEnd(I.childNodes[0],A-k):I.nextSibling?_.setEndBefore(I.nextSibling):_.setEndAfter(I),M=!0),k=R,I=S.childNodes[++O]}return!M&&S.childNodes[O-1]&&_.setStartBefore(S.childNodes[O-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 O=document.createElement("div");O.innerHTML=w;var I=f(A);if(I.toString()!==""&&(A[A.currentMode].preventInput=!0,document.execCommand("delete",!1,"")),O.firstElementChild&&O.firstElementChild.getAttribute("data-block")==="0"){O.lastElementChild.insertAdjacentHTML("beforeend","<wbr>");var P=(0,c.F9)(I.startContainer);if(!P)A[A.currentMode].element.insertAdjacentHTML("beforeend",O.innerHTML);else{var M=(0,c.lG)(I.startContainer,"LI");M&&O.firstElementChild.tagName==="UL"?M.insertAdjacentHTML("afterend",O.firstElementChild.innerHTML):P.insertAdjacentHTML("afterend",O.innerHTML)}m(A[A.currentMode].element,I)}else{var _=document.createElement("template");_.innerHTML=w,I.insertNode(_.content.cloneNode(!0)),I.collapse(!1),h(I)}}})},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,`
  1984. `).replace(/\n\n$/,`
  1985. `)):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 D=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(){D.ASTChart||(D.ASTChart=echarts.init(T.devtools.element.lastElementChild));try{D.element.lastElementChild.style.display="block",D.element.firstElementChild.innerHTML="",D.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}}),D.ASTChart.resize()}catch(B){D.element.lastElementChild.style.display="none",D.element.firstElementChild.innerHTML=B}})},E})(),f=o(410),p=function(E,T){T.forEach(function(D){if(E[D]){var B=E[D].children[0];B&&B.classList.contains("vditor-menu--current")&&B.classList.remove("vditor-menu--current")}})},v=function(E,T){T.forEach(function(D){if(E[D]){var B=E[D].children[0];B&&!B.classList.contains("vditor-menu--current")&&B.classList.add("vditor-menu--current")}})},h=function(E,T){T.forEach(function(D){if(E[D]){var B=E[D].children[0];B&&B.classList.contains(s.g.CLASS_MENU_DISABLED)&&B.classList.remove(s.g.CLASS_MENU_DISABLED)}})},g=function(E,T){T.forEach(function(D){if(E[D]){var B=E[D].children[0];B&&!B.classList.contains(s.g.CLASS_MENU_DISABLED)&&B.classList.add(s.g.CLASS_MENU_DISABLED)}})},y=function(E,T){T.forEach(function(D){E[D]&&E[D]&&(E[D].style.display="none")})},m=function(E,T){T.forEach(function(D){E[D]&&E[D]&&(E[D].style.display="block")})},b=function(E,T,D){T.includes("subToolbar")&&(E.toolbar.element.querySelectorAll(".vditor-hint").forEach(function(B){D&&B.isEqualNode(D)||(B.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,D,B){D.addEventListener((0,f.Le)(),function($){$.preventDefault(),$.stopPropagation(),!D.classList.contains(s.g.CLASS_MENU_DISABLED)&&(E.toolbar.element.querySelectorAll(".vditor-hint--current").forEach(function(q){q.classList.remove("vditor-hint--current")}),T.style.display==="block"?T.style.display="none":(b(E,["subToolbar","hint","popover"],D.parentElement.parentElement),D.classList.contains("vditor-tooltipped")||D.classList.add("vditor-hint--current"),T.style.display="block",E.toolbar.element.getBoundingClientRect().right-D.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,D,B){B&&console.log("".concat(E," - ").concat(D,": ").concat(T))},O=o(135),I=o(775),P=o(428),M=o(325),_=o(483),R=o(999),N=o(472),V=o(637),L=o(11),j=o(194),H=o(229),G=o(825),Z=function(E,T,D){D===void 0&&(D="sv");var B=document.createElement("div");B.innerHTML=E;var $=!1;B.childElementCount===1&&B.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&($=!0);var q=B.querySelectorAll("pre");if(B.childElementCount===1&&q.length===1&&q[0].className!=="vditor-wysiwyg"&&q[0].className!=="vditor-sv"&&($=!0),E.indexOf(`
  1986. <p class="p1">`)===0&&($=!0),B.childElementCount===1&&B.firstElementChild.tagName==="TABLE"&&B.querySelector(".line-number")&&B.querySelector(".line-content")&&($=!0),$){var le=T||E;return/\n/.test(le)||q.length===1?D==="wysiwyg"?'<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>'.concat(le.replace(/&/g,"&amp;").replace(/</g,"&lt;"),"<wbr></code></pre></div>"):"\n```\n"+le.replace(/&/g,"&amp;").replace(/</g,"&lt;")+"\n```":D==="wysiwyg"?"<code>".concat(le.replace(/&/g,"&amp;").replace(/</g,"&lt;"),"</code><wbr>"):"`".concat(le,"`")}return!1},z=function(E,T){if(E){if(E.parentElement.getAttribute("data-type")==="html-block"){E.setAttribute("data-render","1");return}var D=E.firstElementChild.className.replace("language-","");if(D==="abc")(0,O.Q)(E,T.options.cdn);else if(D==="mermaid")(0,V.i)(E,T.options.cdn,T.options.theme);else if(D==="smiles")(0,G.J)(E,T.options.cdn,T.options.theme);else if(D==="markmap")(0,L.K)(E,T.options.cdn);else if(D==="flowchart")(0,M.P)(E,T.options.cdn);else if(D==="echarts")(0,I.p)(E,T.options.cdn,T.options.theme);else if(D==="mindmap")(0,j.P)(E,T.options.cdn,T.options.theme);else if(D==="plantuml")(0,H.B)(E,T.options.cdn);else if(D==="graphviz")(0,_.v)(E,T.options.cdn);else if(D==="math")(0,N.H)(E,{cdn:T.options.cdn,math:T.options.preview.math});else{var B=T.options.customRenders.find(function($){if($.language===D)return $.render(E,T),!0});B||((0,R.s)(Object.assign({},T.options.preview.hljs),E,T.options.cdn),(0,P.O)(E,T.options.preview.hljs))}E.setAttribute("data-render","1")}},U=o(810),W=function(E){if(E.currentMode!=="sv"){var T=E[E.currentMode].element,D=E.outline.render(E);D===""&&(D="[ToC]"),T.querySelectorAll('[data-type="toc-block"]').forEach(function(B){B.innerHTML=D,(0,N.H)(B,{cdn:E.options.cdn,math:E.options.preview.math})})}},re=function(E,T){var D=(0,A.lG)(E.target,"SPAN");if(D&&(0,A.fb)(D,"vditor-toc")){var B=T[T.currentMode].element.querySelector("#"+D.getAttribute("data-target-id"));if(B)if(T.options.height==="auto"){var $=B.offsetTop+T.element.offsetTop;T.options.toolbarConfig.pin||($+=T.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,$)}else T.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,T.element.offsetTop),T[T.currentMode].element.scrollTop=B.offsetTop;return}},J=function(E,T,D,B){if(E.previousElementSibling&&E.previousElementSibling.classList.contains("vditor-toc")){if(D.key==="Backspace"&&(0,U.im)(E,T[T.currentMode].element,B).start===0)return E.previousElementSibling.remove(),_r(T),!0;if(Qo(T,D,B,E,E.previousElementSibling))return!0}if(E.nextElementSibling&&E.nextElementSibling.classList.contains("vditor-toc")){if(D.key==="Delete"&&(0,U.im)(E,T[T.currentMode].element,B).start>=E.textContent.trimRight().length)return E.nextElementSibling.remove(),_r(T),!0;if(Lo(T,D,B,E,E.nextElementSibling))return!0}if(D.key==="Backspace"||D.key==="Delete"){var $=(0,A.fb)(B.startContainer,"vditor-toc");if($)return $.remove(),_r(T),!0}},te=function(E,T,D,B){D===void 0&&(D=!1);var $=(0,A.F9)(T.startContainer);if($&&!D&&$.getAttribute("data-type")!=="code-block"){if(mi($.innerHTML)&&$.previousElementSibling||oa($.innerHTML))return;for(var q=(0,U.im)($,E.ir.element,T).start,le=!0,Oe=q-1;Oe>$.textContent.substr(0,q).lastIndexOf(`
  1987. `);Oe--)if($.textContent.charAt(Oe)!==" "&&$.textContent.charAt(Oe)!==" "){le=!1;break}q===0&&(le=!1);for(var Ye=!0,Oe=q-1;Oe<$.textContent.length;Oe++)if($.textContent.charAt(Oe)!==" "&&$.textContent.charAt(Oe)!==`
  1988. `){Ye=!1;break}if(le){typeof E.options.input=="function"&&E.options.input(u(E));return}if(Ye&&/^#{1,6} $/.test($.textContent)&&(Ye=!1),Ye){var Ue=(0,A.fb)(T.startContainer,"vditor-ir__marker");if(!Ue){var ft=T.startContainer.previousSibling;ft&&ft.nodeType!==3&&ft.classList.contains("vditor-ir__node--expand")&&ft.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")}),$||($=E.ir.element),!$.querySelector("wbr")){var wt=(0,A.fb)(T.startContainer,"vditor-ir__preview");wt?wt.previousElementSibling.insertAdjacentHTML("beforeend","<wbr>"):T.insertNode(document.createElement("wbr"))}$.querySelectorAll("[style]").forEach(function(to){to.removeAttribute("style")}),$.getAttribute("data-type")==="link-ref-defs-block"&&($=E.ir.element);var xn=$.isEqualNode(E.ir.element),wn=(0,A.a1)($,"data-type","footnotes-block"),vn="";if(xn)vn=$.innerHTML;else{var ln=(0,S.S)(T.startContainer,"BLOCKQUOTE"),Sn=(0,A.O9)(T.startContainer);if(Sn&&($=Sn),ln&&(!Sn||Sn&&!ln.contains(Sn))&&($=ln),wn&&($=wn),vn=$.outerHTML,$.tagName==="UL"||$.tagName==="OL"){var fn=$.previousElementSibling,qn=$.nextElementSibling;fn&&(fn.tagName==="UL"||fn.tagName==="OL")&&(vn=fn.outerHTML+vn,fn.remove()),qn&&(qn.tagName==="UL"||qn.tagName==="OL")&&(vn=vn+qn.outerHTML,qn.remove()),vn=vn.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}else $.previousElementSibling&&$.previousElementSibling.textContent.replace(s.g.ZWSP,"")!==""&&B&&B.inputType==="insertParagraph"&&(vn=$.previousElementSibling.outerHTML+vn,$.previousElementSibling.remove());$.innerText.startsWith("```")||(E.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(to){to&&!$.isEqualNode(to)&&(vn+=to.outerHTML,to.remove())}),E.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(to){to&&!$.isEqualNode(to)&&(vn+=to.outerHTML,to.remove())}))}if(k("SpinVditorIRDOM",vn,"argument",E.options.debugger),vn=E.lute.SpinVditorIRDOM(vn),k("SpinVditorIRDOM",vn,"result",E.options.debugger),xn)$.innerHTML=vn;else if($.outerHTML=vn,wn){var zn=(0,A.a1)(E.ir.element.querySelector("wbr"),"data-type","footnotes-def");if(zn){var gr=zn.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,Nr=E.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");Nr.forEach(function(to,fr){fr===0?fo=to:(fo.insertAdjacentHTML("beforeend",to.innerHTML),to.remove())}),Nr.length>0&&E.ir.element.insertAdjacentElement("beforeend",Nr[0]);var ia,Ra=E.ir.element.querySelectorAll("[data-type='footnotes-block']");Ra.forEach(function(to,fr){fr===0?ia=to:(ia.insertAdjacentHTML("beforeend",to.innerHTML),to.remove())}),Ra.length>0&&E.ir.element.insertAdjacentElement("beforeend",Ra[0]),(0,U.ib)(E.ir.element,T),E.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(to){z(to,E)}),W(E),we(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 D=E.split("");if(E.startsWith("⌥")){var B=D.length===3?D[2]:D[1];return!!((D.length===3?(0,f.yl)(T):!(0,f.yl)(T))&&T.altKey&&!T.shiftKey&&T.code===(/^[0-9]$/.test(B)?"Digit":"Key")+B)}E==="⌘Enter"&&(D=["⌘","Enter"]);var $=D.length>2&&D[0]==="⇧",q=$?D[2]:D[1];return $&&((0,f.vU)()||!/Mac/.test(navigator.platform))&&(q==="-"?q="_":q==="="&&(q="+")),!!((0,f.yl)(T)&&T.key.toLowerCase()===q.toLowerCase()&&!T.altKey&&(!$&&!T.shiftKey||$&&T.shiftKey))},ue=function(E){var T=E.startContainer;if(T.nodeType===3&&T.nodeValue.length!==E.startOffset)return!1;for(var D=T.nextSibling;D&&D.textContent==="";)D=D.nextSibling;if(D){if(D&&D.nodeType!==3&&D.classList.contains("vditor-ir__node")&&!D.getAttribute("data-block"))return D}else{var B=(0,A.fb)(T,"vditor-ir__marker");if(B&&!B.nextSibling){var $=T.parentElement.parentElement.nextSibling;if($&&$.nodeType!==3&&$.classList.contains("vditor-ir__node"))return $}return!1}return!1},me=function(E){var T=E.startContainer,D=T.previousSibling;return T.nodeType===3&&E.startOffset===0&&D&&D.nodeType!==3&&D.classList.contains("vditor-ir__node")&&!D.getAttribute("data-block")?D:!1},Me=function(E,T){T.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(le){le.classList.remove("vditor-ir__node--expand")});var D=(0,A.JQ)(E.startContainer,"vditor-ir__node"),B=!E.collapsed&&(0,A.JQ)(E.endContainer,"vditor-ir__node");if(!(!E.collapsed&&(!D||D!==B))){D&&(D.classList.add("vditor-ir__node--expand"),D.classList.remove("vditor-ir__node--hidden"),(0,U.Hc)(E));var $=ue(E);if($){$.classList.add("vditor-ir__node--expand"),$.classList.remove("vditor-ir__node--hidden");return}var q=me(E);if(q){q.classList.add("vditor-ir__node--expand"),q.classList.remove("vditor-ir__node--hidden");return}}},Ae=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 D=(0,U.zh)(E),B=D.startContainer;if(!Ao(T,E,B)||(Cr(D,E,T),Vn(D),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 $=(0,A.a1)(B,"data-newline","1");if(!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&T.key==="Enter"&&$&&D.startOffset<$.textContent.length){var q=$.previousElementSibling;q&&(D.insertNode(document.createTextNode(q.textContent)),D.collapse(!1));var le=$.nextSibling;le&&(D.insertNode(document.createTextNode(le.textContent)),D.collapse(!0))}var Oe=(0,A.lG)(B,"P");if(Ge(T,E,Oe,D)||Si(D,E,Oe,T)||dn(E,D,T,Oe))return!0;var Ye=(0,A.fb)(B,"vditor-ir__marker--pre");if(Ye&&Ye.tagName==="PRE"){var Ue=Ye.firstChild;if(rn(E,T,Ye,D)||(Ue.getAttribute("data-type")==="math-block"||Ue.getAttribute("data-type")==="html-block")&&Qo(E,T,D,Ue,Ye.parentElement)||Lo(E,T,D,Ue,Ye.parentElement))return!0}var ft=(0,A.a1)(B,"data-type","code-block-info");if(ft){if(T.key==="Enter"||T.key==="Tab")return D.selectNodeContents(ft.nextElementSibling.firstChild),D.collapse(!0),T.preventDefault(),b(E,["hint"]),!0;if(T.key==="Backspace"){var wt=(0,U.im)(ft,E.ir.element).start;wt===1&&D.setStart(B,0),wt===2&&(E.hint.recentLanguage="")}if(Qo(E,T,D,ft,ft.parentElement))return b(E,["hint"]),!0}var xn=(0,A.lG)(B,"TD")||(0,A.lG)(B,"TH");if(T.key.indexOf("Arrow")>-1&&xn){var wn=qi(xn);if(wn&&Qo(E,T,D,xn,wn))return!0;var vn=ra(xn);if(vn&&Lo(E,T,D,xn,vn))return!0}if(It(E,T,D)||kn(E,D,T)||ha(E,D,T))return!0;var ln=(0,S.W)(B);if(ln){if(X("⌘=",T)){var Sn=ln.querySelector(".vditor-ir__marker--heading");return Sn&&Sn.textContent.trim().length>1&&ae(E,Sn.textContent.substr(1)),T.preventDefault(),!0}if(X("⌘-",T)){var Sn=ln.querySelector(".vditor-ir__marker--heading");return Sn&&Sn.textContent.trim().length<6&&ae(E,Sn.textContent.trim()+"# "),T.preventDefault(),!0}}var fn=(0,A.F9)(B);if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&D.toString()===""){if(or(E,D,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,U.im)(fn,E.ir.element,D).start;if(qn===0||qn===1&&fn.innerText.startsWith(s.g.ZWSP))return D.selectNodeContents(fn.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),D.collapse(!1),Me(D,E),fn.textContent.trim().replace(s.g.ZWSP,"")===""&&(fn.remove(),we(E)),T.preventDefault(),!0}if(ln){var zn=ln.firstElementChild.textContent.length;(0,U.im)(ln,E.ir.element).start===zn&&zn!==0&&(D.setStart(ln.firstElementChild.firstChild,zn-1),D.collapse(!0),(0,U.Hc)(D))}}return(T.key==="ArrowUp"||T.key==="ArrowDown")&&fn&&(fn.querySelectorAll(".vditor-ir__node").forEach(function(gr){gr.contains(B)||gr.classList.add("vditor-ir__node--hidden")}),xr(T,fn,D))?!0:(Ho(D,T.key),fn&&J(fn,E,T,D)?(T.preventDefault(),!0):!1)},ge=o(190),_e=function(E,T){E.querySelectorAll("[data-type=footnotes-link]").forEach(function(D){for(var B=D.parentElement,$=B.nextSibling;$&&$.textContent.startsWith(" ");){var q=$;q.childNodes.forEach(function(le){B.append(le.cloneNode(!0))}),$=$.nextSibling,q.remove()}T&&T(B)})},Q=function(E,T){var D,B=getSelection().getRangeAt(0).cloneRange(),$=B.startContainer;B.startContainer.nodeType!==3&&B.startContainer.tagName==="DIV"&&($=B.startContainer.childNodes[B.startOffset-1]);var q=(0,A.a1)($,"data-block","0");if(q&&T&&(T.inputType==="deleteContentBackward"||T.data===" ")){for(var le=(0,U.im)(q,E.sv.element,B).start,Oe=!0,Ye=le-1;Ye>q.textContent.substr(0,le).lastIndexOf(`
  1989. `);Ye--)if(q.textContent.charAt(Ye)!==" "&&q.textContent.charAt(Ye)!==" "){Oe=!1;break}if(le===0&&(Oe=!1),Oe){Kt(E);return}if(T.inputType==="deleteContentBackward"){var Ue=(0,A.a1)($,"data-type","code-block-open-marker")||(0,A.a1)($,"data-type","code-block-close-marker");if(Ue){if(Ue.getAttribute("data-type")==="code-block-close-marker"){var ft=yt($,"code-block-open-marker");if(ft){ft.textContent=Ue.textContent,Kt(E);return}}if(Ue.getAttribute("data-type")==="code-block-open-marker"){var ft=yt($,"code-block-close-marker",!1);if(ft){ft.textContent=Ue.textContent,Kt(E);return}}}var wt=(0,A.a1)($,"data-type","math-block-open-marker");if(wt){var xn=wt.nextElementSibling.nextElementSibling;xn&&xn.getAttribute("data-type")==="math-block-close-marker"&&(xn.remove(),Kt(E));return}q.querySelectorAll('[data-type="code-block-open-marker"]').forEach(function(fn){fn.textContent.length===1&&fn.remove()}),q.querySelectorAll('[data-type="code-block-close-marker"]').forEach(function(fn){fn.textContent.length===1&&fn.remove()});var wn=(0,A.a1)($,"data-type","heading-marker");if(wn&&wn.textContent.indexOf("#")===-1){Kt(E);return}}if((T.data===" "||T.inputType==="deleteContentBackward")&&((0,A.a1)($,"data-type","padding")||(0,A.a1)($,"data-type","li-marker")||(0,A.a1)($,"data-type","task-marker")||(0,A.a1)($,"data-type","blockquote-marker"))){Kt(E);return}}if(q&&q.textContent.trimRight()==="$$"){Kt(E);return}q||(q=E.sv.element),((D=q.firstElementChild)===null||D===void 0?void 0:D.getAttribute("data-type"))==="link-ref-defs-block"&&(q=E.sv.element),(0,A.a1)($,"data-type","footnotes-link")&&(q=E.sv.element),q.textContent.indexOf(Lute.Caret)===-1&&B.insertNode(document.createTextNode(Lute.Caret)),q.querySelectorAll("[style]").forEach(function(fn){fn.removeAttribute("style")}),q.querySelectorAll("font").forEach(function(fn){fn.outerHTML=fn.innerHTML});var vn=q.textContent,ln=q.isEqualNode(E.sv.element);if(ln)vn=q.textContent;else{q.previousElementSibling&&(vn=q.previousElementSibling.textContent+vn,q.previousElementSibling.remove()),q.previousElementSibling&&vn.indexOf(`---
  1990. `)===0&&(vn=q.previousElementSibling.textContent+vn,q.previousElementSibling.remove());var Sn="";E.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(fn,qn){fn&&!q.isEqualNode(fn.parentElement)&&(Sn+=fn.parentElement.textContent+`
  1991. `,fn.parentElement.remove())}),E.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach(function(fn,qn){fn&&!q.isEqualNode(fn.parentElement)&&(Sn+=fn.parentElement.textContent+`
  1992. `,fn.parentElement.remove())}),vn=Sn+vn}vn=Zt(vn,E),ln?q.innerHTML=vn:q.outerHTML=vn,E.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(fn){E.sv.element.insertAdjacentElement("beforeend",fn.parentElement)}),_e(E.sv.element,function(fn){E.sv.element.insertAdjacentElement("beforeend",fn)}),(0,U.ib)(E.sv.element,B),Mn(E),Kt(E,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},be=function(E,T){var D,B,$,q,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,U.zh)(E),Ye=Oe.startContainer;Oe.startContainer.nodeType!==3&&Oe.startContainer.tagName==="DIV"&&(Ye=Oe.startContainer.childNodes[Oe.startOffset-1]);var Ue=(0,A.a1)(Ye,"data-type","text"),ft=(0,A.a1)(Ye,"data-type","blockquote-marker");if(!ft&&Oe.startOffset===0&&Ue&&Ue.previousElementSibling&&Ue.previousElementSibling.getAttribute("data-type")==="blockquote-marker"&&(ft=Ue.previousElementSibling),ft&&T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&ft.nextElementSibling.textContent.trim()===""&&(0,U.im)(ft,E.sv.element,Oe).start===ft.textContent.length)return((D=ft.previousElementSibling)===null||D===void 0?void 0:D.getAttribute("data-type"))==="padding"&&ft.previousElementSibling.setAttribute("data-action","enter-remove"),ft.remove(),Kt(E),T.preventDefault(),!0;var wt=(0,A.a1)(Ye,"data-type","li-marker"),xn=(0,A.a1)(Ye,"data-type","task-marker"),wn=wt;if(wn||xn&&xn.nextElementSibling.getAttribute("data-type")!=="task-marker"&&(wn=xn),!wn&&Oe.startOffset===0&&Ue&&Ue.previousElementSibling&&(Ue.previousElementSibling.getAttribute("data-type")==="li-marker"||Ue.previousElementSibling.getAttribute("data-type")==="task-marker")&&(wn=Ue.previousElementSibling),wn){var vn=(0,U.im)(wn,E.sv.element,Oe).start,ln=wn.getAttribute("data-type")==="task-marker",Sn=wn;if(ln&&(Sn=wn.previousElementSibling.previousElementSibling.previousElementSibling),vn===wn.textContent.length){if(T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&wn.nextElementSibling.textContent.trim()==="")return((B=Sn.previousElementSibling)===null||B===void 0?void 0:B.getAttribute("data-type"))==="padding"?(Sn.previousElementSibling.remove(),Q(E)):(ln&&(Sn.remove(),wn.previousElementSibling.previousElementSibling.remove(),wn.previousElementSibling.remove()),wn.nextElementSibling.remove(),wn.remove(),Kt(E)),T.preventDefault(),!0;if(T.key==="Tab")return T.shiftKey?Sn.previousElementSibling.getAttribute("data-type")==="padding"&&Sn.previousElementSibling.remove():Sn.insertAdjacentHTML("beforebegin",'<span data-type="padding">'.concat(Sn.textContent.replace(/\S/g," "),"</span>")),/^\d/.test(Sn.textContent)&&(Sn.textContent=Sn.textContent.replace(/^\d{1,}/,"1"),Oe.selectNodeContents(wn.firstChild),Oe.collapse(!1)),Q(E),T.preventDefault(),!0}}if(ha(E,Oe,T))return!0;var fn=(0,A.a1)(Ye,"data-block","0"),qn=(0,S.S)(Ye,"SPAN");if(T.key==="Enter"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&fn){var zn=!1,gr=fn.textContent.match(/^\n+/);(0,U.im)(fn,E.sv.element).start<=(gr?gr[0].length:0)&&(zn=!0);var Dr=`
  1993. `;if(qn){if((($=qn.previousElementSibling)===null||$===void 0?void 0:$.getAttribute("data-action"))==="enter-remove")return qn.previousElementSibling.remove(),Kt(E),T.preventDefault(),!0;Dr+=bt(qn)}return Oe.insertNode(document.createTextNode(Dr)),Oe.collapse(!1),fn&&fn.textContent.trim()!==""&&!zn?Q(E):Kt(E),T.preventDefault(),!0}if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey){if(qn&&((q=qn.previousElementSibling)===null||q===void 0?void 0:q.getAttribute("data-type"))==="newline"&&(0,U.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()!==""?Q(E):Kt(E),T.preventDefault(),!0;if(fn&&(0,U.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"]'))?Q(E):(lo.getAttribute("data-type")!=="newline"&&(Oe.selectNodeContents(lo.lastChild),Oe.collapse(!1)),Kt(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")},ie=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>'),Mt(E,E.options.mode,Fe(E)),document.execCommand("DefaultParagraphSeparator",!1,"p"),navigator.userAgent.indexOf("iPhone")>-1&&typeof window.visualViewport<"u"){var D=!1,B=function($){D||(D=!0,requestAnimationFrame(function(){D=!1;var q=E.toolbar.element;q.style.transform="none",q.getBoundingClientRect().top<0&&(q.style.transform="translate(0, ".concat(-q.getBoundingClientRect().top,"px)"))}))};window.visualViewport.addEventListener("scroll",B),window.visualViewport.addEventListener("resize",B)}},ce=function(E){var T=window.innerWidth<=s.g.MOBILE_WIDTH?10:35;if(E.wysiwyg.element.parentElement.style.display!=="none"){var D=(E.wysiwyg.element.parentElement.clientWidth-E.options.preview.maxWidth)/2;E.wysiwyg.element.style.padding="10px ".concat(Math.max(T,D),"px")}if(E.ir.element.parentElement.style.display!=="none"){var D=(E.ir.element.parentElement.clientWidth-E.options.preview.maxWidth)/2;E.ir.element.style.padding="10px ".concat(Math.max(T,D),"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,U.Gb)(E[E.currentMode].element)){p(E.toolbar.elements,s.g.EDIT_TOOLBARS),h(E.toolbar.elements,s.g.EDIT_TOOLBARS);var T=(0,U.zh)(E),D=T.startContainer;T.startContainer.nodeType===3&&(D=T.startContainer.parentElement),D.classList.contains("vditor-reset")&&(D=D.childNodes[T.startOffset]);var B=E.currentMode==="sv"?(0,A.a1)(D,"data-type","heading"):(0,S.W)(D);B&&v(E.toolbar.elements,["headings"]);var $=E.currentMode==="sv"?(0,A.a1)(D,"data-type","blockquote"):(0,A.lG)(D,"BLOCKQUOTE");$&&v(E.toolbar.elements,["quote"]);var q=(0,A.a1)(D,"data-type","strong");q&&v(E.toolbar.elements,["bold"]);var le=(0,A.a1)(D,"data-type","em");le&&v(E.toolbar.elements,["italic"]);var Oe=(0,A.a1)(D,"data-type","s");Oe&&v(E.toolbar.elements,["strike"]);var Ye=(0,A.a1)(D,"data-type","a");Ye&&v(E.toolbar.elements,["link"]);var Ue=(0,A.lG)(D,"LI");Ue?(Ue.classList.contains("vditor-task")?v(E.toolbar.elements,["check"]):Ue.parentElement.tagName==="OL"?v(E.toolbar.elements,["ordered-list"]):Ue.parentElement.tagName==="UL"&&v(E.toolbar.elements,["list"]),h(E.toolbar.elements,["outdent","indent"])):g(E.toolbar.elements,["outdent","indent"]);var ft=(0,A.a1)(D,"data-type","code-block");ft&&(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 wt=(0,A.a1)(D,"data-type","code");wt&&(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 xn=(0,A.a1)(D,"data-type","table");xn&&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 D=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(D),E.options.counter.enable&&E.counter.render(E,D),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,D),E.options.cache.after&&E.options.cache.after(D)),E.devtools&&E.devtools.renderEchart(E),T.enableAddUndoStack&&E.undo.addToUndoStack(E)}},E.options.undoDelay)},ht=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"))},Lt=function(E){for(var T="",D=E.nextSibling;D;)D.nodeType===3?T+=D.textContent:T+=D.outerHTML,D=D.nextSibling;return T},tn=function(E){for(var T="",D=E.previousSibling;D;)D.nodeType===3?T=D.textContent+T:T=D.outerHTML+T,D=D.previousSibling;return T},Wt=function(E){for(var T=E;T&&!T.nextSibling;)T=T.parentElement;return T.nextSibling},zt=function(E){var T=tn(E.startContainer),D=Lt(E.startContainer),B=E.startContainer.textContent,$=E.startOffset,q="",le="";return(B.substr(0,$)!==""&&B.substr(0,$)!==s.g.ZWSP||T)&&(q="".concat(T).concat(B.substr(0,$))),(B.substr($)!==""&&B.substr($)!==s.g.ZWSP||D)&&(le="".concat(B.substr($)).concat(D)),{afterHTML:le,beforeHTML:q}},dt=function(E,T){Array.from(E.wysiwyg.element.childNodes).find(function(D){if(D.nodeType===3){var B=document.createElement("p");B.setAttribute("data-block","0"),B.textContent=D.textContent;var $=T.startContainer.nodeType===3?T.startOffset:D.textContent.length;return D.parentNode.insertBefore(B,D),D.remove(),T.setStart(B.firstChild,Math.min(B.firstChild.textContent.length,$)),T.collapse(!0),(0,U.Hc)(T),!0}else if(!D.getAttribute("data-block"))return D.tagName==="P"?D.remove():(D.tagName==="DIV"?(T.insertNode(document.createElement("wbr")),D.outerHTML='<p data-block="0">'.concat(D.innerHTML,"</p>")):D.tagName==="BR"?D.outerHTML='<p data-block="0">'.concat(D.outerHTML,"<wbr></p>"):(T.insertNode(document.createElement("wbr")),D.outerHTML='<p data-block="0">'.concat(D.outerHTML,"</p>")),(0,U.ib)(E.wysiwyg.element,T),T=getSelection().getRangeAt(0)),!0})},_t=function(E,T){var D=(0,U.zh)(E),B=(0,A.F9)(D.startContainer);B||(B=D.startContainer.childNodes[D.startOffset]),!B&&E.wysiwyg.element.children.length===0&&(B=E.wysiwyg.element),B&&!B.classList.contains("vditor-wysiwyg__block")&&(D.insertNode(document.createElement("wbr")),B.innerHTML.trim()==="<wbr>"&&(B.innerHTML="<wbr><br>"),B.tagName==="BLOCKQUOTE"||B.classList.contains("vditor-reset")?B.innerHTML="<".concat(T,' data-block="0">').concat(B.innerHTML.trim(),"</").concat(T,">"):B.outerHTML="<".concat(T,' data-block="0">').concat(B.innerHTML.trim(),"</").concat(T,">"),(0,U.ib)(E.wysiwyg.element,D),W(E))},ut=function(E){var T=getSelection().getRangeAt(0),D=(0,A.F9)(T.startContainer);D||(D=T.startContainer.childNodes[T.startOffset]),D&&(T.insertNode(document.createElement("wbr")),D.outerHTML='<p data-block="0">'.concat(D.innerHTML,"</p>"),(0,U.ib)(E.wysiwyg.element,T)),E.wysiwyg.popover.style.display="none"},rt=function(E,T,D){D===void 0&&(D=!0);var B=E.previousElementSibling,$=B.ownerDocument.createRange();B.tagName==="CODE"?(B.style.display="inline-block",D?$.setStart(B.firstChild,1):$.selectNodeContents(B)):(B.style.display="block",B.firstChild.firstChild||B.firstChild.appendChild(document.createTextNode("")),$.selectNodeContents(B.firstChild)),D?$.collapse(!0):$.collapse(!1),(0,U.Hc)($),!E.firstElementChild.classList.contains("language-mindmap")&&Mn(T)},he=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 D=(0,U.zh)(E),B=D.startContainer;if(!Ao(T,E,B)||(Cr(D,E,T),Vn(D),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 $=(0,A.F9)(B),q=(0,A.lG)(B,"P");if(Ge(T,E,q,D)||Si(D,E,q,T)||It(E,T,D))return!0;var le=(0,A.fb)(B,"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"&&(rn(E,T,le.firstElementChild,D)||Lo(E,T,D,le.firstElementChild,le)||le.getAttribute("data-type")!=="yaml-front-matter"&&Qo(E,T,D,le.firstElementChild,le)))return!0}if(dn(E,D,T,q))return!0;var Ye=(0,A.E2)(B,"BLOCKQUOTE");if(Ye&&!T.shiftKey&&T.altKey&&T.key==="Enter"){(0,f.yl)(T)?D.setStartBefore(Ye):D.setStartAfter(Ye),(0,U.Hc)(D);var Ue=document.createElement("p");return Ue.setAttribute("data-block","0"),Ue.innerHTML=`
  1994. `,D.insertNode(Ue),D.collapse(!0),(0,U.Hc)(D),Ne(E),Mn(E),T.preventDefault(),!0}var ft=(0,S.W)(B);if(ft){if(ft.tagName==="H6"&&B.textContent.length===D.startOffset&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&T.key==="Enter"){var wt=document.createElement("p");return wt.textContent=`
  1995. `,wt.setAttribute("data-block","0"),B.parentElement.insertAdjacentElement("afterend",wt),D.setStart(wt,0),(0,U.Hc)(D),Ne(E),Mn(E),T.preventDefault(),!0}if(X("⌘=",T)){var xn=parseInt(ft.tagName.substr(1),10)-1;return xn>0&&(_t(E,"h".concat(xn)),Ne(E)),T.preventDefault(),!0}if(X("⌘-",T)){var xn=parseInt(ft.tagName.substr(1),10)+1;return xn<7&&(_t(E,"h".concat(xn)),Ne(E)),T.preventDefault(),!0}T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&ft.textContent.length===1&&ut(E)}if(kn(E,D,T))return!0;if(T.altKey&&T.key==="Enter"&&!(0,f.yl)(T)&&!T.shiftKey){var wn=(0,A.lG)(B,"A"),vn=(0,A.a1)(B,"data-type","link-ref"),ln=(0,A.a1)(B,"data-type","footnotes-ref");if(wn||vn||ln||ft&&ft.tagName.length===2){var Sn=E.wysiwyg.popover.querySelector("input");Sn.focus(),Sn.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,D,T))return!0;if(!(0,f.yl)(T)&&T.shiftKey&&!T.altKey&&T.key==="Enter"&&B.parentElement.tagName!=="LI"&&B.parentElement.tagName!=="P")return["STRONG","STRIKE","S","I","EM","B"].includes(B.parentElement.tagName)?D.insertNode(document.createTextNode(`
  1996. `+s.g.ZWSP)):D.insertNode(document.createTextNode(`
  1997. `)),D.collapse(!1),(0,U.Hc)(D),Ne(E),Mn(E),T.preventDefault(),!0;if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&D.toString()===""){if(or(E,D,T,q))return!0;if($){if($.previousElementSibling&&$.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&$.previousElementSibling.getAttribute("data-block")==="0"&&$.tagName!=="UL"&&$.tagName!=="OL"){var qn=(0,U.im)($,E.wysiwyg.element,D).start;if(qn===0&&D.startOffset===0||qn===1&&$.innerText.startsWith(s.g.ZWSP))return rt($.previousElementSibling.lastElementChild,E,!1),$.innerHTML.trim().replace(s.g.ZWSP,"")===""&&($.remove(),Ne(E)),T.preventDefault(),!0}var zn=D.startOffset;if(D.toString()===""&&B.nodeType===3&&B.textContent.charAt(zn-2)===`
  1998. `&&B.textContent.charAt(zn-1)!==s.g.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes(B.parentElement.tagName))return B.textContent=B.textContent.substring(0,zn-1)+s.g.ZWSP,D.setStart(B,zn),D.collapse(!0),Ne(E),T.preventDefault(),!0;B.textContent===s.g.ZWSP&&D.startOffset===1&&!B.previousSibling&&Rt(D)&&(B.textContent=""),$.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach(function(Dr){Dr.firstElementChild.style.display="inline",Dr.lastElementChild.style.display="none"}),$.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)()&&D.startOffset===1&&B.textContent.indexOf(s.g.ZWSP)>-1&&B.previousSibling&&B.previousSibling.nodeType!==3&&B.previousSibling.tagName==="CODE"&&(T.key==="Backspace"||T.key==="ArrowLeft"))return D.selectNodeContents(B.previousSibling),D.collapse(!1),T.preventDefault(),!0;if(xr(T,$,D))return T.preventDefault(),!0;if(Ho(D,T.key),T.key==="ArrowDown"){var gr=B.nextSibling;gr&&gr.nodeType!==3&&gr.getAttribute("data-type")==="math-inline"&&D.setStartAfter(gr)}return $&&J($,E,T,D)?(T.preventDefault(),!0):!1},Je=function(E,T){if(X("⇧⌘X",T)){var D=E.wysiwyg.popover.querySelector('[data-type="remove"]');return D&&D.click(),T.preventDefault(),!0}},ct=function(E){clearTimeout(E.wysiwyg.hlToolbarTimeoutId),E.wysiwyg.hlToolbarTimeoutId=window.setTimeout(function(){if(E.wysiwyg.element.getAttribute("contenteditable")!=="false"&&(0,U.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),D=T.startContainer;T.startContainer.nodeType===3?D=T.startContainer.parentElement:D=D.childNodes[T.startOffset>=D.childNodes.length?D.childNodes.length-1:T.startOffset];var B=(0,A.a1)(D,"data-type","footnotes-block");if(B){E.wysiwyg.popover.innerHTML="",ke(B,E),Ke(E,"footnotes-block"),Ot(E,B);return}var $=(0,A.lG)(D,"LI");$?($.classList.contains("vditor-task")?v(E.toolbar.elements,["check"]):$.parentElement.tagName==="OL"?v(E.toolbar.elements,["ordered-list"]):$.parentElement.tagName==="UL"&&v(E.toolbar.elements,["list"]),h(E.toolbar.elements,["outdent","indent"])):g(E.toolbar.elements,["outdent","indent"]),(0,A.lG)(D,"BLOCKQUOTE")&&v(E.toolbar.elements,["quote"]),((0,A.lG)(D,"B")||(0,A.lG)(D,"STRONG"))&&v(E.toolbar.elements,["bold"]),((0,A.lG)(D,"I")||(0,A.lG)(D,"EM"))&&v(E.toolbar.elements,["italic"]),((0,A.lG)(D,"STRIKE")||(0,A.lG)(D,"S"))&&v(E.toolbar.elements,["strike"]),E.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach(function(wr){wr.classList.remove("vditor-comment--focus")});var q=(0,A.fb)(D,"vditor-comment");if(q){var le=q.getAttribute("data-cmtids").split(" ");if(le.length>1&&q.nextSibling.isSameNode(q.nextElementSibling)){var Oe=q.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 Ye=(0,A.lG)(D,"A");Ye&&v(E.toolbar.elements,["link"]);var Ue=(0,A.lG)(D,"TABLE"),ft=(0,S.W)(D);(0,A.lG)(D,"CODE")?(0,A.lG)(D,"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"])):ft?(g(E.toolbar.elements,["bold"]),v(E.toolbar.elements,["headings"])):Ue&&g(E.toolbar.elements,["table"]);var wt=(0,A.fb)(D,"vditor-toc");if(wt){E.wysiwyg.popover.innerHTML="",ke(wt,E),Ke(E,"vditor-toc"),Ot(E,wt);return}var xn=(0,S.S)(D,"BLOCKQUOTE");if(xn&&(E.wysiwyg.popover.innerHTML="",In(T,xn,E),je(T,xn,E),ke(xn,E),Ke(E,"blockquote"),Ot(E,xn)),$&&(E.wysiwyg.popover.innerHTML="",In(T,$,E),je(T,$,E),ke($,E),Ke(E,"li"),Ot(E,$)),Ue){E.options.lang,E.options,E.wysiwyg.popover.innerHTML="";var wn=function(){var wr=Ue.rows.length,Po=Ue.rows[0].cells.length,kp=parseInt(fr.value,10)||wr,Tp=parseInt(Gl.value,10)||Po;if(!(kp===wr&&Po===Tp)){if(Po!==Tp)for(var b2=Tp-Po,Jc=0;Jc<Ue.rows.length;Jc++)if(b2>0)for(var BQ=0;BQ<b2;BQ++)Jc===0?Ue.rows[Jc].lastElementChild.insertAdjacentHTML("afterend","<th> </th>"):Ue.rows[Jc].lastElementChild.insertAdjacentHTML("afterend","<td> </td>");else for(var V9=Po-1;V9>=Tp;V9--)Ue.rows[Jc].cells[V9].remove();if(wr!==kp){var LQ=kp-wr;if(LQ>0){for(var q9="<tr>",_m=0;_m<Tp;_m++)q9+="<td> </td>";for(var FQ=0;FQ<LQ;FQ++)Ue.querySelector("tbody")?Ue.querySelector("tbody").insertAdjacentHTML("beforeend",q9):Ue.querySelector("thead").insertAdjacentHTML("afterend",q9+"</tr>")}else for(var _m=wr-1;_m>=kp;_m--)Ue.rows[_m].remove(),Ue.rows.length===1&&Ue.querySelector("tbody").remove()}typeof E.options.input=="function"&&E.options.input(u(E))}},vn=function(wr){xi(Ue,wr),wr==="right"?(qn.classList.remove("vditor-icon--current"),zn.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"),zn.classList.add("vditor-icon--current")):(zn.classList.remove("vditor-icon--current"),gr.classList.remove("vditor-icon--current"),qn.classList.add("vditor-icon--current")),(0,U.Hc)(T),Ne(E)},ln=(0,A.lG)(D,"TD"),Sn=(0,A.lG)(D,"TH"),fn="left";ln?fn=ln.getAttribute("align")||"left":Sn&&(fn=Sn.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(){vn("left")};var zn=document.createElement("button");zn.setAttribute("type","button"),zn.setAttribute("aria-label",window.VditorI18n.alignCenter+"<"+(0,f.ns)("⇧⌘C")+">"),zn.setAttribute("data-type","center"),zn.innerHTML='<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',zn.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(fn==="center"?" vditor-icon--current":""),zn.onclick=function(){vn("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(){vn("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&&We(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,Ue,Po)};var Nr=document.createElement("button");Nr.setAttribute("type","button"),Nr.setAttribute("aria-label",window.VditorI18n.insertColumnLeft+"<"+(0,f.ns)("⇧⌘G")+">"),Nr.setAttribute("data-type","insertColumn"),Nr.innerHTML='<svg><use xlink:href="#vditor-icon-insert-columnb"></use></svg>',Nr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Nr.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ie(E,Ue,Po,"beforebegin")};var ia=document.createElement("button");ia.setAttribute("type","button"),ia.setAttribute("aria-label",window.VditorI18n["delete-row"]+"<"+(0,f.ns)("⌘-")+">"),ia.setAttribute("data-type","deleteRow"),ia.innerHTML='<svg><use xlink:href="#vditor-icon-delete-row"></use></svg>',ia.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",ia.onclick=function(){var wr=getSelection().getRangeAt(0).startContainer,Po=(0,A.lG)(wr,"TD")||(0,A.lG)(wr,"TH");Po&&Ve(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&&Ut(E,T,Ue,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=Ue.rows.length.toString(),fr.oninput=function(){wn()},fr.onkeydown=function(wr){if(!wr.isComposing){if(wr.key==="Tab"){Gl.focus(),Gl.select(),wr.preventDefault();return}Je(E,wr)||gt(wr,T)}};var ix=document.createElement("span");ix.setAttribute("aria-label",window.VditorI18n.column),ix.className="vditor-tooltipped vditor-tooltipped__n";var Gl=document.createElement("input");ix.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=Ue.rows[0].cells.length.toString(),Gl.oninput=function(){wn()},Gl.onkeydown=function(wr){if(!wr.isComposing){if(wr.key==="Tab"){fr.focus(),fr.select(),wr.preventDefault();return}Je(E,wr)||gt(wr,T)}},In(T,Ue,E),je(T,Ue,E),ke(Ue,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",qn),E.wysiwyg.popover.insertAdjacentElement("beforeend",zn),E.wysiwyg.popover.insertAdjacentElement("beforeend",gr),E.wysiwyg.popover.insertAdjacentElement("beforeend",lo),E.wysiwyg.popover.insertAdjacentElement("beforeend",Dr),E.wysiwyg.popover.insertAdjacentElement("beforeend",Nr),E.wysiwyg.popover.insertAdjacentElement("beforeend",fo),E.wysiwyg.popover.insertAdjacentElement("beforeend",ia),E.wysiwyg.popover.insertAdjacentElement("beforeend",Ra),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),E.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),E.wysiwyg.popover.insertAdjacentElement("beforeend",ix),Ke(E,"table"),Ot(E,Ue)}var W9=(0,A.a1)(D,"data-type","link-ref");W9&&Tn(E,W9,T);var km=(0,A.a1)(D,"data-type","footnotes-ref");if(km){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=km.getAttribute("data-footnotes-label"),of.oninput=function(){of.value.trim()!==""&&km.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)||gt(Po,T)},ke(km,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),Ke(E,"footnotes-ref"),Ot(E,km)}var os=(0,A.fb)(D,"vditor-wysiwyg__block"),NQ=os?os.getAttribute("data-type").indexOf("block")>-1:!1;if(E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(wr){if(!os||os&&NQ&&!os.contains(wr)){var Po=wr.previousElementSibling;Po.style.display="none"}}),os&&NQ){if(E.wysiwyg.popover.innerHTML="",In(T,os,E),je(T,os,E),ke(os,E),os.getAttribute("data-type")==="code-block"){var ax=document.createElement("span");ax.setAttribute("aria-label",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),ax.className="vditor-tooltipped vditor-tooltipped__n";var lc=document.createElement("input");ax.appendChild(lc);var y2=os.firstElementChild.firstElementChild;lc.className="vditor-input",lc.setAttribute("placeholder",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),lc.value=y2.className.indexOf("language-")>-1?y2.className.split("-")[1].split(" ")[0]:"",lc.oninput=function(wr){lc.value.trim()!==""?y2.className="language-".concat(lc.value):(y2.className="",E.hint.recentLanguage=""),os.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(os.lastElementChild.innerHTML=os.firstElementChild.innerHTML,z(os.lastElementChild,E)),Ne(E),wr.detail===1&&(T.setStart(y2.firstChild,0),T.collapse(!0),(0,U.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),gt(wr,T)}},lc.onkeyup=function(wr){var Po,kp;if(!(wr.isComposing||wr.key==="Enter"||wr.key==="ArrowUp"||wr.key==="Escape"||wr.key==="ArrowDown")){var Tp=[],b2=lc.value.substring(0,lc.selectionStart);(E.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((kp=(Po=window.hljs)===null||Po===void 0?void 0:Po.listLanguages())!==null&&kp!==void 0?kp:[]).sort())).forEach(function(Jc){Jc.indexOf(b2.toLowerCase())>-1&&Tp.push({html:Jc,value:Jc})}),E.hint.genHTML(Tp,b2,E),wr.preventDefault()}},E.wysiwyg.popover.insertAdjacentElement("beforeend",ax),Ke(E,"code-block")}else Ke(E,"block");Ot(E,os)}else os=void 0;if(ft){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 Ep=document.createElement("input");to.appendChild(Ep),Ep.className="vditor-input",Ep.setAttribute("placeholder","ID<"+(0,f.ns)("⌥Enter")+">"),Ep.style.width="120px",Ep.value=ft.getAttribute("data-id")||"",Ep.oninput=function(){ft.setAttribute("data-id",Ep.value),typeof E.options.input=="function"&&E.options.input(u(E))},Ep.onkeydown=function(Po){Po.isComposing||Je(E,Po)||gt(Po,T)},In(T,ft,E),je(T,ft,E),ke(ft,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",to),Ke(E,"heading"),Ot(E,ft)}if(Ye&&Be(E,Ye,T),!xn&&!$&&!Ue&&!os&&!Ye&&!W9&&!km&&!ft&&!wt){var Tm=(0,A.a1)(D,"data-block","0");Tm&&Tm.parentElement.isEqualNode(E.wysiwyg.element)?(E.wysiwyg.popover.innerHTML="",In(T,Tm,E),je(T,Tm,E),ke(Tm,E),Ke(E,"block"),Ot(E,Tm)):E.wysiwyg.popover.style.display="none"}E.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach(function(wr){wr.style.display="none"});var RQ=(0,A.a1)(T.startContainer,"data-type","backslash");RQ&&(RQ.querySelector("span").style.display="inline")}},200)},Ot=function(E,T){var D=T,B=(0,A.lG)(T,"TABLE");B&&(D=B),E.wysiwyg.popover.style.left="0",E.wysiwyg.popover.style.display="block",E.wysiwyg.popover.style.top=Math.max(-8,D.offsetTop-21-E.wysiwyg.element.scrollTop)+"px",E.wysiwyg.popover.style.left=Math.min(D.offsetLeft,E.wysiwyg.element.clientWidth-E.wysiwyg.popover.clientWidth)+"px",E.wysiwyg.popover.setAttribute("data-top",(D.offsetTop-21).toString())},Tn=function(E,T,D){D===void 0&&(D=getSelection().getRangeAt(0)),E.wysiwyg.popover.innerHTML="";var B=function(){q.value.trim()!==""&&(T.tagName==="IMG"?T.setAttribute("alt",q.value):T.textContent=q.value),Oe.value.trim()!==""&&T.setAttribute("data-link-label",Oe.value),typeof E.options.input=="function"&&E.options.input(u(E))},$=document.createElement("span");$.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),$.className="vditor-tooltipped vditor-tooltipped__n";var q=document.createElement("input");$.appendChild(q),q.className="vditor-input",q.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),q.style.width="120px",q.value=T.getAttribute("alt")||T.textContent,q.oninput=function(){B()},q.onkeydown=function(Ye){Je(E,Ye)||gt(Ye,D)||ye(E,T,Ye,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(){B()},Oe.onkeydown=function(Ye){Je(E,Ye)||gt(Ye,D)||ye(E,T,Ye,q)},ke(T,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",$),E.wysiwyg.popover.insertAdjacentElement("beforeend",le),Ke(E,"link-ref"),Ot(E,T)},In=function(E,T,D){var B=T.previousElementSibling;if(!(!B||!T.parentElement.isEqualNode(D.wysiwyg.element)&&T.tagName!=="LI")){var $=document.createElement("button");$.setAttribute("type","button"),$.setAttribute("data-type","up"),$.setAttribute("aria-label",window.VditorI18n.up+"<"+(0,f.ns)("⇧⌘U")+">"),$.innerHTML='<svg><use xlink:href="#vditor-icon-up"></use></svg>',$.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",$.onclick=function(){E.insertNode(document.createElement("wbr")),B.insertAdjacentElement("beforebegin",T),(0,U.ib)(D.wysiwyg.element,E),Ne(D),ct(D),Mn(D)},D.wysiwyg.popover.insertAdjacentElement("beforeend",$)}},je=function(E,T,D){var B=T.nextElementSibling;if(!(!B||!T.parentElement.isEqualNode(D.wysiwyg.element)&&T.tagName!=="LI")){var $=document.createElement("button");$.setAttribute("type","button"),$.setAttribute("data-type","down"),$.setAttribute("aria-label",window.VditorI18n.down+"<"+(0,f.ns)("⇧⌘D")+">"),$.innerHTML='<svg><use xlink:href="#vditor-icon-down"></use></svg>',$.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",$.onclick=function(){E.insertNode(document.createElement("wbr")),B.insertAdjacentElement("afterend",T),(0,U.ib)(D.wysiwyg.element,E),Ne(D),ct(D),Mn(D)},D.wysiwyg.popover.insertAdjacentElement("beforeend",$)}},ke=function(E,T){var D=document.createElement("button");D.setAttribute("type","button"),D.setAttribute("data-type","remove"),D.setAttribute("aria-label",window.VditorI18n.remove+"<"+(0,f.ns)("⇧⌘X")+">"),D.innerHTML='<svg><use xlink:href="#vditor-icon-trashcan"></use></svg>',D.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",D.onclick=function(){var B=(0,U.zh)(T);B.setStartAfter(E),(0,U.Hc)(B),E.remove(),Ne(T),ct(T),["H1","H2","H3","H4","H5","H6"].includes(E.tagName)&&W(T)},T.wysiwyg.popover.insertAdjacentElement("beforeend",D)},ye=function(E,T,D,B){if(!D.isComposing){if(D.key==="Tab"){B.focus(),B.select(),D.preventDefault();return}if(!(0,f.yl)(D)&&!D.shiftKey&&D.altKey&&D.key==="Enter"){var $=(0,U.zh)(E);T.insertAdjacentHTML("afterend",s.g.ZWSP),$.setStartAfter(T.nextSibling),$.collapse(!0),(0,U.Hc)($),D.preventDefault()}}},Be=function(E,T,D){E.wysiwyg.popover.innerHTML="";var B=function(){q.value.trim()!==""&&(T.innerHTML=q.value),T.setAttribute("href",Oe.value),T.setAttribute("title",Ue.value),Ne(E)};T.querySelectorAll("[data-marker]").forEach(function(ft){ft.removeAttribute("data-marker")});var $=document.createElement("span");$.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),$.className="vditor-tooltipped vditor-tooltipped__n";var q=document.createElement("input");$.appendChild(q),q.className="vditor-input",q.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),q.style.width="120px",q.value=T.innerHTML||"",q.oninput=function(){B()},q.onkeydown=function(ft){Je(E,ft)||gt(ft,D)||ye(E,T,ft,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(){B()},Oe.onkeydown=function(ft){Je(E,ft)||gt(ft,D)||ye(E,T,ft,Ue)};var Ye=document.createElement("span");Ye.setAttribute("aria-label",window.VditorI18n.tooltipText),Ye.className="vditor-tooltipped vditor-tooltipped__n";var Ue=document.createElement("input");Ye.appendChild(Ue),Ue.className="vditor-input",Ue.setAttribute("placeholder",window.VditorI18n.tooltipText),Ue.style.width="60px",Ue.value=T.getAttribute("title")||"",Ue.oninput=function(){B()},Ue.onkeydown=function(ft){Je(E,ft)||gt(ft,D)||ye(E,T,ft,q)},ke(T,E),E.wysiwyg.popover.insertAdjacentElement("beforeend",$),E.wysiwyg.popover.insertAdjacentElement("beforeend",le),E.wysiwyg.popover.insertAdjacentElement("beforeend",Ye),Ke(E,"a"),Ot(E,T)},ot=function(E,T){var D=E.target;T.wysiwyg.popover.innerHTML="";var B=function(){D.setAttribute("src",q.value),D.setAttribute("alt",Oe.value),D.setAttribute("title",Ue.value),typeof T.options.input=="function"&&T.options.input(u(T))},$=document.createElement("span");$.setAttribute("aria-label",window.VditorI18n.imageURL),$.className="vditor-tooltipped vditor-tooltipped__n";var q=document.createElement("input");$.appendChild(q),q.className="vditor-input",q.setAttribute("placeholder",window.VditorI18n.imageURL),q.value=D.getAttribute("src")||"",q.oninput=function(){B()},q.onkeydown=function(ft){Je(T,ft)};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=D.getAttribute("alt")||"",Oe.oninput=function(){B()},Oe.onkeydown=function(ft){Je(T,ft)};var Ye=document.createElement("span");Ye.setAttribute("aria-label",window.VditorI18n.title),Ye.className="vditor-tooltipped vditor-tooltipped__n";var Ue=document.createElement("input");Ye.appendChild(Ue),Ue.className="vditor-input",Ue.setAttribute("placeholder",window.VditorI18n.title),Ue.value=D.getAttribute("title")||"",Ue.oninput=function(){B()},Ue.onkeydown=function(ft){Je(T,ft)},ke(D,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",$),T.wysiwyg.popover.insertAdjacentElement("beforeend",le),T.wysiwyg.popover.insertAdjacentElement("beforeend",Ye),Ke(T,"image"),Ot(T,D)},gt=function(E,T){if(!(0,f.yl)(E)&&!E.shiftKey&&E.key==="Enter"||E.key==="Escape")return T&&(0,U.Hc)(T),E.preventDefault(),E.stopPropagation(),!0},Ke=function(E,T){E.options.customWysiwygToolbar(T,E.wysiwyg.popover)},He=function(E){E.currentMode==="wysiwyg"?ct(E):E.currentMode==="ir"&&Pe(E)},at=function(E,T,D){D===void 0&&(D={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var B=E.wysiwyg.element;B.innerHTML=E.lute.Md2VditorDOM(T),B.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function($){z($,E),$.previousElementSibling.setAttribute("style","display:none")}),Ne(E,D)},St=function(E,T,D){for(var B=E.startContainer.parentElement,$=!1,q="",le="",Oe=zt(E),Ye=Oe.beforeHTML,Ue=Oe.afterHTML;B&&!$;){var ft=B.tagName;if(ft==="STRIKE"&&(ft="S"),ft==="I"&&(ft="EM"),ft==="B"&&(ft="STRONG"),ft==="S"||ft==="STRONG"||ft==="EM"){var wt="",xn="",wn="";B.parentElement.getAttribute("data-block")!=="0"&&(xn=tn(B),wn=Lt(B)),(Ye||xn)&&(wt="".concat(xn,"<").concat(ft,">").concat(Ye,"</").concat(ft,">"),Ye=wt),(D==="bold"&&ft==="STRONG"||D==="italic"&&ft==="EM"||D==="strikeThrough"&&ft==="S")&&(wt+="".concat(q).concat(s.g.ZWSP,"<wbr>").concat(le),$=!0),(Ue||wn)&&(Ue="<".concat(ft,">").concat(Ue,"</").concat(ft,">").concat(wn),wt+=Ue),B.parentElement.getAttribute("data-block")!=="0"?(B=B.parentElement,B.innerHTML=wt):(B.outerHTML=wt,B=B.parentElement),q="<".concat(ft,">")+q,le="</".concat(ft,">")+le}else $=!0}(0,U.ib)(T.wysiwyg.element,E)},tt=function(E,T,D){if(!(E.wysiwyg.composingLock&&D instanceof CustomEvent)){var B=!0,$=!0;E.wysiwyg.element.querySelector("wbr")&&E.wysiwyg.element.querySelector("wbr").remove();var q=(0,U.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)(q.startContainer,"BLOCKQUOTE");Oe||(Oe=q.startContainer.childNodes[q.startOffset]),Oe&&(B=!1,T.classList.remove("vditor-menu--current"),q.insertNode(document.createElement("wbr")),Oe.outerHTML=Oe.innerHTML.trim()===""?'<p data-block="0">'.concat(Oe.innerHTML,"</p>"):Oe.innerHTML,(0,U.ib)(E.wysiwyg.element,q))}else if(le==="inline-code"){var Ye=(0,A.lG)(q.startContainer,"CODE");Ye||(Ye=q.startContainer.childNodes[q.startOffset]),Ye&&(Ye.outerHTML=Ye.innerHTML.replace(s.g.ZWSP,"")+"<wbr>",(0,U.ib)(E.wysiwyg.element,q))}else le==="link"?(q.collapsed&&q.selectNode(q.startContainer.parentElement),document.execCommand("unlink",!1,"")):le==="check"||le==="list"||le==="ordered-list"?(Pa(E,q,le),(0,U.ib)(E.wysiwyg.element,q),B=!1,T.classList.remove("vditor-menu--current")):(B=!1,T.classList.remove("vditor-menu--current"),q.toString()===""?St(q,E,le):document.execCommand(le,!1,""));else{E.wysiwyg.element.childNodes.length===0&&(E.wysiwyg.element.innerHTML='<p data-block="0"><wbr></p>',(0,U.ib)(E.wysiwyg.element,q));var Ue=(0,A.F9)(q.startContainer);if(le==="quote"){if(Ue||(Ue=q.startContainer.childNodes[q.startOffset]),Ue){B=!1,T.classList.add("vditor-menu--current"),q.insertNode(document.createElement("wbr"));var ft=(0,A.lG)(q.startContainer,"LI");ft&&Ue.contains(ft)?ft.innerHTML='<blockquote data-block="0">'.concat(ft.innerHTML,"</blockquote>"):Ue.outerHTML='<blockquote data-block="0">'.concat(Ue.outerHTML,"</blockquote>"),(0,U.ib)(E.wysiwyg.element,q)}}else if(le==="check"||le==="list"||le==="ordered-list")Pa(E,q,le,!1),(0,U.ib)(E.wysiwyg.element,q),B=!1,p(E.toolbar.elements,["check","list","ordered-list"]),T.classList.add("vditor-menu--current");else if(le==="inline-code"){if(q.toString()===""){var wt=document.createElement("code");wt.textContent=s.g.ZWSP,q.insertNode(wt),q.setStart(wt.firstChild,1),q.collapse(!0),(0,U.Hc)(q)}else if(q.startContainer.nodeType===3){var wt=document.createElement("code");q.surroundContents(wt),q.insertNode(wt),(0,U.Hc)(q)}T.classList.add("vditor-menu--current")}else if(le==="code"){var wt=document.createElement("div");wt.className="vditor-wysiwyg__block",wt.setAttribute("data-type","code-block"),wt.setAttribute("data-block","0"),wt.setAttribute("data-marker","```"),q.toString()===""?wt.innerHTML=`<pre><code><wbr>
  1999. </code></pre>`:(wt.innerHTML="<pre><code>".concat(q.toString(),"<wbr></code></pre>"),q.deleteContents()),q.insertNode(wt),Ue&&(Ue.outerHTML=E.lute.SpinVditorDOM(Ue.outerHTML)),(0,U.ib)(E.wysiwyg.element,q),E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(Dr){z(Dr,E)}),T.classList.add("vditor-menu--disabled")}else if(le==="link"){if(q.toString()===""){var xn=document.createElement("a");xn.innerText=s.g.ZWSP,q.insertNode(xn),q.setStart(xn.firstChild,1),q.collapse(!0),Be(E,xn,q);var wn=E.wysiwyg.popover.querySelector("input");wn.value="",wn.focus(),$=!1}else{var wt=document.createElement("a");wt.setAttribute("href",""),wt.innerHTML=q.toString(),q.surroundContents(wt),q.insertNode(wt),(0,U.Hc)(q),Be(E,wt,q);var vn=E.wysiwyg.popover.querySelectorAll("input");vn[0].value=wt.innerText,vn[1].focus()}B=!1,T.classList.add("vditor-menu--current")}else if(le==="table"){var ln='<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(q.toString().trim()==="")Ue&&Ue.innerHTML.trim().replace(s.g.ZWSP,"")===""?Ue.outerHTML=ln:document.execCommand("insertHTML",!1,ln),q.selectNode(E.wysiwyg.element.querySelector("wbr").previousSibling),E.wysiwyg.element.querySelector("wbr").remove(),(0,U.Hc)(q);else{ln='<table data-block="0"><thead><tr>';var Sn=q.toString().split(`
  2000. `),fn=Sn[0].split(",").length>Sn[0].split(" ").length?",":" ";Sn.forEach(function(gr,Dr){Dr===0?(gr.split(fn).forEach(function(lo,fo){fo===0?ln+="<th>".concat(lo,"<wbr></th>"):ln+="<th>".concat(lo,"</th>")}),ln+="</tr></thead>"):(Dr===1?ln+="<tbody><tr>":ln+="<tr>",gr.split(fn).forEach(function(lo){ln+="<td>".concat(lo,"</td>")}),ln+="</tr>")}),ln+="</tbody></table>",document.execCommand("insertHTML",!1,ln),(0,U.ib)(E.wysiwyg.element,q)}B=!1,T.classList.add("vditor-menu--disabled")}else if(le==="line"){if(Ue){var qn=`<hr data-block="0"><p data-block="0"><wbr>
  2001. </p>`;Ue.innerHTML.trim()===""?Ue.outerHTML=qn:Ue.insertAdjacentHTML("afterend",qn),(0,U.ib)(E.wysiwyg.element,q)}}else if(B=!1,T.classList.add("vditor-menu--current"),le==="strike"&&(le="strikeThrough"),q.toString()===""&&(le==="bold"||le==="italic"||le==="strikeThrough")){var zn="strong";le==="italic"?zn="em":le==="strikeThrough"&&(zn="s");var wt=document.createElement(zn);wt.textContent=s.g.ZWSP,q.insertNode(wt),wt.previousSibling&&wt.previousSibling.textContent===s.g.ZWSP&&(wt.previousSibling.textContent=""),q.setStart(wt.firstChild,1),q.collapse(!0),(0,U.Hc)(q)}else document.execCommand(le,!1,"")}B&&ct(E),$&&Ne(E)}},Qe=(function(){function E(T,D){var B,$=this;this.element=document.createElement("div"),D.className&&(B=this.element.classList).add.apply(B,D.className.split(" "));var q=D.hotkey?" <".concat((0,f.ns)(D.hotkey),">"):"";D.level===2&&(q=D.hotkey?" &lt;".concat((0,f.ns)(D.hotkey),"&gt;"):"");var le=D.tip?D.tip+q:"".concat(window.VditorI18n[D.name]).concat(q),Oe=D.name==="upload"?"div":"button";if(D.level===2)this.element.innerHTML="<".concat(Oe,' data-type="').concat(D.name,'">').concat(le,"</").concat(Oe,">");else{this.element.classList.add("vditor-toolbar__item");var Ye=document.createElement(Oe);Ye.setAttribute("data-type",D.name),Ye.className="vditor-tooltipped vditor-tooltipped__".concat(D.tipPosition),Ye.setAttribute("aria-label",le),Ye.innerHTML=D.icon,this.element.appendChild(Ye)}D.prefix&&this.element.children[0].addEventListener((0,f.Le)(),function(Ue){Ue.preventDefault(),!$.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&(T.currentMode==="wysiwyg"?tt(T,$.element.children[0],Ue):T.currentMode==="ir"?Ce(T,$.element.children[0],D.prefix||"",D.suffix||""):Rn(T,$.element.children[0],D.prefix||"",D.suffix||""))})}return E})(),it=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),Mt=function(E,T,D){var B;if(typeof D!="string"?(b(E,["subToolbar","hint"]),D.preventDefault(),B=u(E)):B=D,!(E.currentMode===T&&typeof D!="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(B),we(E,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ce(E),E.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(q){z(q,E)}),E.ir.element.querySelectorAll(".vditor-toc").forEach(function(q){(0,N.H)(q,{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),at(E,B,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),E.wysiwyg.element.querySelectorAll(".vditor-toc").forEach(function(q){(0,N.H)(q,{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 $=Zt(B,E);$==="<div data-block='0'></div>"&&($=""),E.sv.element.innerHTML=$,_e(E.sv.element),Kt(E,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ce(E)}E.undo.resetIcon(E),typeof D!="string"&&(E[E.currentMode].element.focus(),He(E)),W(E),Re(E),E.toolbar.elements["edit-mode"]&&(E.toolbar.elements["edit-mode"].querySelectorAll("button").forEach(function(q){q.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 D!="string")}},Gt=(function(E){it(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=document.createElement("div");return q.className="vditor-hint".concat(B.level===2?"":" vditor-panel--arrow"),q.innerHTML='<button data-mode="wysiwyg">'.concat(window.VditorI18n.wysiwyg," &lt;").concat((0,f.ns)("⌥⌘7"),`></button>
  2002. <button data-mode="ir">`).concat(window.VditorI18n.instantRendering," &lt;").concat((0,f.ns)("⌥⌘8"),`></button>
  2003. <button data-mode="sv">`).concat(window.VditorI18n.splitView," &lt;").concat((0,f.ns)("⌥⌘9"),"></button>"),$.element.appendChild(q),$._bindEvent(D,q,B),$}return T.prototype._bindEvent=function(D,B,$){var q=this.element.children[0];w(D,B,q,$.level),B.children.item(0).addEventListener((0,f.Le)(),function(le){Mt(D,"wysiwyg",le),le.preventDefault(),le.stopPropagation()}),B.children.item(1).addEventListener((0,f.Le)(),function(le){Mt(D,"ir",le),le.preventDefault(),le.stopPropagation()}),B.children.item(2).addEventListener((0,f.Le)(),function(le){Mt(D,"sv",le),le.preventDefault(),le.stopPropagation()})},T})(Qe),En=function(E,T){return(0,U.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(D){D.target.tagName==="IMG"&&(E.options.image.preview?E.options.image.preview(D.target):E.options.image.isPreview&&(0,ge.E)(D.target,E.options.lang,E.options.theme))})},sn=function(E,T){T.addEventListener("blur",function(D){if(E.currentMode==="ir"){var B=E.ir.element.querySelector(".vditor-ir__node--expand");B&&B.classList.remove("vditor-ir__node--expand")}else E.currentMode==="wysiwyg"&&!E.wysiwyg.selectPopover.contains(D.relatedTarget)&&E.wysiwyg.hideComment();E[E.currentMode].range=(0,U.zh)(E),E.options.blur&&E.options.blur(u(E))})},vt=function(E,T){T.addEventListener("dragstart",function(D){D.dataTransfer.setData(s.g.DROP_EDITOR,s.g.DROP_EDITOR)}),T.addEventListener("drop",function(D){D.dataTransfer.getData(s.g.DROP_EDITOR)?_r(E):(D.dataTransfer.types.includes("Files")||D.dataTransfer.types.includes("text/html"))&&sr(E,D,{pasteCode:function(B){document.execCommand("insertHTML",!1,B)}})})},Bt=function(E,T,D){T.addEventListener("copy",function(B){return D(B,E)})},mn=function(E,T,D){T.addEventListener("cut",function(B){D(B,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,D=(0,U.Ny)(T).top;E.options.height==="auto"&&!E.element.classList.contains("vditor--fullscreen")&&window.scrollTo(window.scrollX,D+E.element.offsetTop+E.toolbar.element.offsetHeight-window.innerHeight/2+10),(E.options.height!=="auto"||E.element.classList.contains("vditor--fullscreen"))&&(T.scrollTop=D+T.scrollTop-T.clientHeight/2+10)}},tr=function(E,T){T.addEventListener("keydown",function(D){if(!D.isComposing&&E.options.keydown&&E.options.keydown(D),!((E.options.hint.extend.length>1||E.toolbar.elements.emoji)&&E.hint.select(D,E))){if(E.options.comment.enable&&E.currentMode==="wysiwyg"&&(D.key==="Backspace"||X("⌘X",D))&&E.wysiwyg.getComments(E),E.currentMode==="sv"){if(be(E,D))return}else if(E.currentMode==="wysiwyg"){if(he(E,D))return}else if(E.currentMode==="ir"&&Ae(E,D))return;if(E.options.ctrlEnter&&X("⌘Enter",D)){E.options.ctrlEnter(u(E)),D.preventDefault();return}if(X("⌘Z",D)&&!E.toolbar.elements.undo){E.undo.undo(E),D.preventDefault();return}if(X("⌘Y",D)&&!E.toolbar.elements.redo){E.undo.redo(E),D.preventDefault();return}if(D.key==="Escape"){E.hint.element.style.display==="block"?E.hint.element.style.display="none":E.options.esc&&!D.isComposing&&E.options.esc(u(E)),D.preventDefault();return}if((0,f.yl)(D)&&D.altKey&&!D.shiftKey&&/^Digit[1-6]$/.test(D.code)){if(E.currentMode==="wysiwyg"){var B=D.code.replace("Digit","H");(0,A.lG)(getSelection().getRangeAt(0).startContainer,B)?ut(E):_t(E,B),Ne(E)}else E.currentMode==="sv"?bn(E,"#".repeat(parseInt(D.code.replace("Digit",""),10))+" "):E.currentMode==="ir"&&ae(E,"#".repeat(parseInt(D.code.replace("Digit",""),10))+" ");return D.preventDefault(),!0}if((0,f.yl)(D)&&D.altKey&&!D.shiftKey&&/^Digit[7-9]$/.test(D.code))return D.code==="Digit7"?Mt(E,"wysiwyg",D):D.code==="Digit8"?Mt(E,"ir",D):D.code==="Digit9"&&Mt(E,"sv",D),!0;E.options.toolbar.find(function($){if(!$.hotkey||$.toolbar){if($.toolbar){var q=$.toolbar.find(function(le){if(!le.hotkey)return!1;if(X(le.hotkey,D))return E.toolbar.elements[le.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),D.preventDefault(),!0});return!!q}return!1}if(X($.hotkey,D))return E.toolbar.elements[$.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),D.preventDefault(),!0})}})},cn=function(E,T){T.addEventListener("selectstart",function(D){T.onmouseup=function(){setTimeout(function(){var B=En(E[E.currentMode].element);B.trim()?(E.currentMode==="wysiwyg"&&E.options.comment.enable&&(!(0,A.a1)(D.target,"data-type","footnotes-block")&&!(0,A.a1)(D.target,"data-type","link-ref-defs-block")?E.wysiwyg.showComment():E.wysiwyg.hideComment()),E.options.select&&E.options.select(B)):(E.currentMode==="wysiwyg"&&E.options.comment.enable&&E.wysiwyg.hideComment(),typeof E.options.unSelect=="function"&&E.options.unSelect())})}})},qe=function(E,T){var D=(0,U.zh)(E);D.extractContents(),D.insertNode(document.createTextNode(Lute.Caret)),D.insertNode(document.createTextNode(T));var B=(0,A.a1)(D.startContainer,"data-block","0");B||(B=E.sv.element);var $=E.lute.SpinVditorSVDOM(B.textContent);$="<div data-block='0'>"+$.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">
  2004. </span></span><span data-type="newline"><br /><span style="display: none">
  2005. </span></span></div><div data-block="0"><`)+"</div>",B.isEqualNode(E.sv.element)?B.innerHTML=$:B.outerHTML=$,_e(E.sv.element),(0,U.ib)(E.sv.element,D),Mn(E)},yt=function(E,T,D){D===void 0&&(D=!0);var B=E;for(B.nodeType===3&&(B=B.parentElement);B;){if(B.getAttribute("data-type")===T)return B;D?B=B.previousElementSibling:B=B.nextElementSibling}return!1},Zt=function(E,T){k("SpinVditorSVDOM",E,"argument",T.options.debugger);var D=T.lute.SpinVditorSVDOM(E);return E="<div data-block='0'>"+D.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">
  2006. </span></span><span data-type="newline"><br /><span style="display: none">
  2007. </span></span></div><div data-block="0"><`)+"</div>",k("SpinVditorSVDOM",E,"result",T.options.debugger),E},bt=function(E){var T=E.getAttribute("data-type"),D=E.previousElementSibling,B=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:"",$=!1;for(T==="newline"&&($=!0);D&&!$;){var q=D.getAttribute("data-type");if(q==="li-marker"||q==="blockquote-marker"||q==="task-marker"||q==="padding"){var le=D.textContent;if(q==="li-marker"&&(T==="code-block-open-marker"||T==="code-block-info"))B=le.replace(/\S/g," ")+B;else if(T==="code-block-close-marker"&&D.nextElementSibling.isSameNode(E)){var Oe=yt(E,"code-block-open-marker");Oe&&Oe.previousElementSibling&&(D=Oe.previousElementSibling,B=le+B)}else B=le+B}else q==="newline"&&($=!0);D=D.previousElementSibling}return B},Kt=function(E,T){T===void 0&&(T={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),T.enableHint&&E.hint.render(E),E.preview.render(E);var D=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(D),E.options.counter.enable&&E.counter.render(E,D),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,D),E.options.cache.after&&E.options.cache.after(D)),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)},bn=function(E,T){var D=(0,U.zh)(E),B=(0,S.S)(D.startContainer,"SPAN");B&&B.textContent.trim()!==""&&(T=`
  2008. `+T),D.collapse(!0),document.execCommand("insertHTML",!1,T)},Rn=function(E,T,D,B){var $=(0,U.zh)(E),q=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">
  2009. </span></span>`,(0,U.ib)(E.sv.element,$));var le=(0,A.F9)($.startContainer),Oe=(0,S.S)($.startContainer,"SPAN");if(le){if(q==="link"){var Ye=void 0;$.toString()===""?Ye="".concat(D).concat(Lute.Caret).concat(B):Ye="".concat(D).concat($.toString()).concat(B.replace(")",Lute.Caret+")")),document.execCommand("insertHTML",!1,Ye);return}else if(q==="italic"||q==="bold"||q==="strike"||q==="inline-code"||q==="code"||q==="table"||q==="line"){var Ye=void 0;$.toString()===""?Ye="".concat(D).concat(Lute.Caret).concat(q==="code"?"":B):Ye="".concat(D).concat($.toString()).concat(Lute.Caret).concat(q==="code"?"":B),q==="table"||q==="code"&&Oe&&Oe.textContent!==""?Ye=`
  2010. `+Ye:q==="line"&&(Ye=`
  2011. `.concat(D,`
  2012. `).concat(Lute.Caret)),document.execCommand("insertHTML",!1,Ye);return}else if((q==="check"||q==="list"||q==="ordered-list"||q==="quote")&&Oe){var Ue="* ";q==="check"?Ue="* [ ] ":q==="ordered-list"?Ue="1. ":q==="quote"&&(Ue="> ");var ft=yt(Oe,"newline");ft?ft.insertAdjacentText("afterend",Ue):le.insertAdjacentText("afterbegin",Ue),Q(E);return}(0,U.ib)(E.sv.element,$),Kt(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(D){T.setRequestHeader(D,E.options.upload.headers[D])})},ho=function(E,T,D,B){function $(q){return q instanceof D?q:new D(function(le){le(q)})}return new(D||(D=Promise))(function(q,le){function Oe(ft){try{Ue(B.next(ft))}catch(wt){le(wt)}}function Ye(ft){try{Ue(B.throw(ft))}catch(wt){le(wt)}}function Ue(ft){ft.done?q(ft.value):$(ft.value).then(Oe,Ye)}Ue((B=B.apply(E,T||[])).next())})},Wr=function(E,T){var D={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},B,$,q,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe(Ue){return function(ft){return Ye([Ue,ft])}}function Ye(Ue){if(B)throw new TypeError("Generator is already executing.");for(;le&&(le=0,Ue[0]&&(D=0)),D;)try{if(B=1,$&&(q=Ue[0]&2?$.return:Ue[0]?$.throw||((q=$.return)&&q.call($),0):$.next)&&!(q=q.call($,Ue[1])).done)return q;switch($=0,q&&(Ue=[Ue[0]&2,q.value]),Ue[0]){case 0:case 1:q=Ue;break;case 4:return D.label++,{value:Ue[1],done:!1};case 5:D.label++,$=Ue[1],Ue=[0];continue;case 7:Ue=D.ops.pop(),D.trys.pop();continue;default:if(q=D.trys,!(q=q.length>0&&q[q.length-1])&&(Ue[0]===6||Ue[0]===2)){D=0;continue}if(Ue[0]===3&&(!q||Ue[1]>q[0]&&Ue[1]<q[3])){D.label=Ue[1];break}if(Ue[0]===6&&D.label<q[1]){D.label=q[1],q=Ue;break}if(q&&D.label<q[2]){D.label=q[2],D.ops.push(Ue);break}q[2]&&D.ops.pop(),D.trys.pop();continue}Ue=T.call(E,D)}catch(ft){Ue=[6,ft],$=0}finally{B=q=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[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 D=[],B="",$="";E.options.lang,E.options;for(var q=function(Ue,ft){var wt=T[ft],xn=!0;wt.name||(B+="<li>".concat(window.VditorI18n.nameEmpty,"</li>"),xn=!1),wt.size>E.options.upload.max&&(B+="<li>".concat(wt.name," ").concat(window.VditorI18n.over," ").concat(E.options.upload.max/1024/1024,"M</li>"),xn=!1);var wn=wt.name.lastIndexOf("."),vn=wt.name.substr(wn),ln=E.options.upload.filename(wt.name.substr(0,wn))+vn;if(E.options.upload.accept){var Sn=E.options.upload.accept.split(",").some(function(fn){var qn=fn.trim();if(qn.indexOf(".")===0){if(vn.toLowerCase()===qn.toLowerCase())return!0}else if(wt.type.split("/")[0]===qn.split("/")[0])return!0;return!1});Sn||(B+="<li>".concat(wt.name," ").concat(window.VditorI18n.fileTypeError,"</li>"),xn=!1)}xn&&(D.push(wt),$+="<li>".concat(ln," ").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++)q(le,Oe);if(E.tip.show("<ul>".concat(B).concat($,"</ul>")),E.options.upload.cancel){var Ye=E.tip.element.querySelector(".vditorCancelUpload");Ye&&Ye.addEventListener("click",function(){E.options.upload.cancel(D),E.tip.hide(),E.upload.isUploading=!1})}return D},br=function(E,T){var D=Kn(T);D.focus();var B=JSON.parse(E),$="";B.code===1&&($="".concat(B.msg)),B.data.errFiles&&B.data.errFiles.length>0&&($="<ul><li>".concat($,"</li>"),B.data.errFiles.forEach(function(le){var Oe=le.lastIndexOf("."),Ye=T.options.upload.filename(le.substr(0,Oe))+le.substr(Oe);$+="<li>".concat(Ye," ").concat(window.VditorI18n.uploadError,"</li>")}),$+="</ul>"),$?T.tip.show($):T.tip.hide();var q="";Object.keys(B.data.succMap).forEach(function(le){var Oe=B.data.succMap[le],Ye=le.lastIndexOf("."),Ue=le.substr(Ye),ft=T.options.upload.filename(le.substr(0,Ye))+Ue;Ue=Ue.toLowerCase(),Ue.indexOf(".wav")===0||Ue.indexOf(".mp3")===0||Ue.indexOf(".ogg")===0?T.currentMode==="wysiwyg"?q+=`<div class="vditor-wysiwyg__block" data-type="html-block"
  2013. data-block="0"><pre><code>&lt;audio controls="controls" src="`.concat(Oe,'"&gt;&lt;/audio&gt;</code></pre><pre class="vditor-wysiwyg__preview" data-render="1"><audio controls="controls" src="').concat(Oe,`"></audio></pre></div>
  2014. `):T.currentMode==="ir"?q+='<audio controls="controls" src="'.concat(Oe,`"></audio>
  2015. `):q+="[".concat(ft,"](").concat(Oe,`)
  2016. `):Ue.indexOf(".apng")===0||Ue.indexOf(".bmp")===0||Ue.indexOf(".gif")===0||Ue.indexOf(".ico")===0||Ue.indexOf(".cur")===0||Ue.indexOf(".jpg")===0||Ue.indexOf(".jpeg")===0||Ue.indexOf(".jfif")===0||Ue.indexOf(".pjp")===0||Ue.indexOf(".pjpeg")===0||Ue.indexOf(".png")===0||Ue.indexOf(".svg")===0||Ue.indexOf(".webp")===0?T.currentMode==="wysiwyg"?q+='<img alt="'.concat(ft,'" src="').concat(Oe,`">
  2017. `):q+="![".concat(ft,"](").concat(Oe,`)
  2018. `):T.currentMode==="wysiwyg"?q+='<a href="'.concat(Oe,'">').concat(ft,`</a>
  2019. `):q+="[".concat(ft,"](").concat(Oe,`)
  2020. `)}),(0,U.Hc)(T.upload.range),document.execCommand("insertHTML",!1,q),T.upload.range=getSelection().getRangeAt(0).cloneRange()},Vr=function(E,T,D){return ho(void 0,void 0,void 0,function(){var B,$,vn,q,le,le,Oe,Ye,Ue,ft,wt,xn,wn,vn,ln,Sn;return Wr(this,function(fn){switch(fn.label){case 0:for(B=[],$=E.options.upload.multiple===!0?T.length:1,vn=0;vn<$;vn++)q=T[vn],q instanceof DataTransferItem&&(q=q.getAsFile()),B.push(q);return E.options.upload.handler?[4,E.options.upload.handler(B)]:[3,2];case 1:return le=fn.sent(),D&&(D.value=""),typeof le=="string"?(E.tip.show(le),[2]):[2];case 2:return!E.options.upload.url||!E.upload?(D&&(D.value=""),E.tip.show("please config: options.upload.url"),[2]):E.options.upload.file?[4,E.options.upload.file(B)]:[3,4];case 3:B=fn.sent(),fn.label=4;case 4:if(E.options.upload.validate&&(le=E.options.upload.validate(B),typeof le=="string"))return E.tip.show(le),[2];if(Oe=Kn(E),E.upload.range=(0,U.zh)(E),Ye=Bo(E,B),Ye.length===0)return D&&(D.value=""),[2];for(Ue=new FormData,ft=E.options.upload.extraData,wt=0,xn=Object.keys(ft);wt<xn.length;wt++)wn=xn[wt],Ue.append(wn,ft[wn]);for(vn=0,ln=Ye.length;vn<ln;vn++)Ue.append(E.options.upload.fieldName,Ye[vn]);return Sn=new XMLHttpRequest,E.upload.xhr=Sn,Sn.open("POST",E.options.upload.url),E.options.upload.token&&Sn.setRequestHeader("X-Upload-Token",E.options.upload.token),E.options.upload.withCredentials&&(Sn.withCredentials=!0),Fr(E,Sn),E.upload.isUploading=!0,Oe.setAttribute("contenteditable","false"),Sn.onreadystatechange=function(){if(Sn.readyState===XMLHttpRequest.DONE){if(E.upload.isUploading=!1,Oe.setAttribute("contenteditable","true"),Sn.status>=200&&Sn.status<300)if(E.options.upload.success)E.options.upload.success(Oe,Sn.responseText);else{var qn=Sn.responseText;E.options.upload.format&&(qn=E.options.upload.format(T,Sn.responseText)),br(qn,E)}else E.options.upload.error?E.options.upload.error(Sn.responseText):E.tip.show(Sn.responseText);D&&(D.value=""),E.upload.element.style.display="none",E.upload.xhr=void 0}},Sn.upload.onprogress=function(qn){if(qn.lengthComputable){var zn=qn.loaded/qn.total*100;E.upload.element.style.display="block";var gr=E.upload.element;gr.style.width=zn+"%"}},Sn.send(Ue),[2]}})})},wo=function(E,T,D){var B,$=(0,A.F9)(T.startContainer);if($||($=E.wysiwyg.element),D&&D.inputType!=="formatItalic"&&D.inputType!=="deleteByDrag"&&D.inputType!=="insertFromDrop"&&D.inputType!=="formatBold"&&D.inputType!=="formatRemove"&&D.inputType!=="formatStrikeThrough"&&D.inputType!=="insertUnorderedList"&&D.inputType!=="insertOrderedList"&&D.inputType!=="formatOutdent"&&D.inputType!=="formatIndent"&&D.inputType!==""||!D){var q=ht(T.startContainer);q&&q.remove(),E.wysiwyg.element.querySelectorAll("wbr").forEach(function(zn){zn.remove()}),T.insertNode(document.createElement("wbr")),$.querySelectorAll("[style]").forEach(function(zn){zn.removeAttribute("style")}),$.querySelectorAll(".vditor-comment").forEach(function(zn){zn.textContent.trim()===""&&(zn.classList.remove("vditor-comment","vditor-comment--focus"),zn.removeAttribute("data-cmtids"))}),(B=$.previousElementSibling)===null||B===void 0||B.querySelectorAll(".vditor-comment").forEach(function(zn){zn.textContent.trim()===""&&(zn.classList.remove("vditor-comment","vditor-comment--focus"),zn.removeAttribute("data-cmtids"))});var le="";$.getAttribute("data-type")==="link-ref-defs-block"&&($=E.wysiwyg.element);var Oe=$.isEqualNode(E.wysiwyg.element),Ye=(0,A.a1)($,"data-type","footnotes-block");if(Oe)le=$.innerHTML;else{var Ue=(0,A.O9)(T.startContainer);if(Ue&&!Ye){var ft=(0,S.S)(T.startContainer,"BLOCKQUOTE");ft?$=(0,A.F9)(T.startContainer)||$:$=Ue}if(Ye&&($=Ye),le=$.outerHTML,$.tagName==="UL"||$.tagName==="OL"){var wt=$.previousElementSibling,xn=$.nextElementSibling;wt&&(wt.tagName==="UL"||wt.tagName==="OL")&&(le=wt.outerHTML+le,wt.remove()),xn&&(xn.tagName==="UL"||xn.tagName==="OL")&&(le=le+xn.outerHTML,xn.remove()),le=le.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}$.innerText.startsWith("```")||(E.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(zn){zn&&!$.isEqualNode(zn)&&(le+=zn.outerHTML,zn.remove())}),E.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(zn){zn&&!$.isEqualNode(zn)&&(le+=zn.outerHTML,zn.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)$.innerHTML=le;else if($.outerHTML=le,Ye){var wn=(0,A.E2)(E.wysiwyg.element.querySelector("wbr"),"LI");if(wn){var vn=E.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(wn.getAttribute("data-marker"),'"]'));vn&&vn.setAttribute("aria-label",wn.textContent.trim().substr(0,24))}}var ln,Sn=E.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");Sn.forEach(function(zn,gr){gr===0?ln=zn:(ln.insertAdjacentHTML("beforeend",zn.innerHTML),zn.remove())}),Sn.length>0&&E.wysiwyg.element.insertAdjacentElement("beforeend",Sn[0]);var fn,qn=E.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");qn.forEach(function(zn,gr){gr===0?fn=zn:(fn.insertAdjacentHTML("beforeend",zn.innerHTML),zn.remove())}),qn.length>0&&E.wysiwyg.element.insertAdjacentElement("beforeend",qn[0]),(0,U.ib)(E.wysiwyg.element,T),E.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(zn){z(zn,E)}),D&&(D.inputType==="deleteContentBackward"||D.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})},Rr=function(E,T){return Object.defineProperty?Object.defineProperty(E,"raw",{value:T}):E.raw=T,E},Br=function(E,T,D,B){function $(q){return q instanceof D?q:new D(function(le){le(q)})}return new(D||(D=Promise))(function(q,le){function Oe(ft){try{Ue(B.next(ft))}catch(wt){le(wt)}}function Ye(ft){try{Ue(B.throw(ft))}catch(wt){le(wt)}}function Ue(ft){ft.done?q(ft.value):$(ft.value).then(Oe,Ye)}Ue((B=B.apply(E,T||[])).next())})},$r=function(E,T){var D={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},B,$,q,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe(Ue){return function(ft){return Ye([Ue,ft])}}function Ye(Ue){if(B)throw new TypeError("Generator is already executing.");for(;le&&(le=0,Ue[0]&&(D=0)),D;)try{if(B=1,$&&(q=Ue[0]&2?$.return:Ue[0]?$.throw||((q=$.return)&&q.call($),0):$.next)&&!(q=q.call($,Ue[1])).done)return q;switch($=0,q&&(Ue=[Ue[0]&2,q.value]),Ue[0]){case 0:case 1:q=Ue;break;case 4:return D.label++,{value:Ue[1],done:!1};case 5:D.label++,$=Ue[1],Ue=[0];continue;case 7:Ue=D.ops.pop(),D.trys.pop();continue;default:if(q=D.trys,!(q=q.length>0&&q[q.length-1])&&(Ue[0]===6||Ue[0]===2)){D=0;continue}if(Ue[0]===3&&(!q||Ue[1]>q[0]&&Ue[1]<q[3])){D.label=Ue[1];break}if(Ue[0]===6&&D.label<q[1]){D.label=q[1],q=Ue;break}if(q&&D.label<q[2]){D.label=q[2],D.ops.push(Ue);break}q[2]&&D.ops.pop(),D.trys.pop();continue}Ue=T.call(E,D)}catch(ft){Ue=[6,ft],$=0}finally{B=q=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},Ao=function(E,T,D){if(E.keyCode===229&&E.code===""&&E.key==="Unidentified"&&T.currentMode!=="sv"){var B=(0,A.F9)(D);if(B&&B.textContent.trim()==="")return T[T.currentMode].composingLock=!0,!1}return!0},Cr=function(E,T,D){if(!(D.key==="Enter"||D.key==="Tab"||D.key==="Backspace"||D.key.indexOf("Arrow")>-1||(0,f.yl)(D)||D.key==="Escape"||D.shiftKey||D.altKey)){var B=(0,A.lG)(E.startContainer,"P")||(0,A.lG)(E.startContainer,"LI");if(B&&(0,U.im)(B,T[T.currentMode].element,E).start===0){B.nodeValue&&(B.nodeValue=B.nodeValue.replace(/\u2006/g,""));var $=document.createTextNode(s.g.ZWSP);E.insertNode($),E.setStartAfter($)}}},Ho=function(E,T){if(T==="ArrowDown"||T==="ArrowUp"){var D=(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");D&&(T==="ArrowDown"&&E.setStartAfter(D.parentElement),T==="ArrowUp"&&E.setStartBefore(D.parentElement))}},Xo=function(E,T){var D=(0,U.zh)(E),B=(0,A.F9)(D.startContainer);B&&(B.insertAdjacentHTML(T,'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
  2021. </p>`)),(0,U.ib)(E[E.currentMode].element,D),He(E),_r(E))},qi=function(E){var T=(0,A.lG)(E,"TABLE");return T&&T.rows[0].cells[0].isSameNode(E)?T:!1},ra=function(E){var T=(0,A.lG)(E,"TABLE");return T&&T.lastElementChild.lastElementChild.lastElementChild.isSameNode(E)?T:!1},ti=function(E,T,D){D===void 0&&(D=!0);var B=E.previousElementSibling;return B||(E.parentElement.previousElementSibling?B=E.parentElement.previousElementSibling.lastElementChild:E.parentElement.parentElement.tagName==="TBODY"&&E.parentElement.parentElement.previousElementSibling?B=E.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:B=null),B&&(T.selectNodeContents(B),D||T.collapse(!1),(0,U.Hc)(T)),B},Lo=function(E,T,D,B,$){var q=(0,U.im)(B,E[E.currentMode].element,D);if(T.key==="ArrowDown"&&B.textContent.trimRight().substr(q.start).indexOf(`
  2022. `)===-1||T.key==="ArrowRight"&&q.start>=B.textContent.trimRight().length){var le=$.nextElementSibling;return!le||le&&(le.tagName==="TABLE"||le.getAttribute("data-type"))?($.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,U.ib)(E[E.currentMode].element,D)):(D.selectNodeContents(le),D.collapse(!0),(0,U.Hc)(D)),T.preventDefault(),!0}return!1},Qo=function(E,T,D,B,$){var q=(0,U.im)(B,E[E.currentMode].element,D);if(T.key==="ArrowUp"&&B.textContent.substr(0,q.start).indexOf(`
  2023. `)===-1||(T.key==="ArrowLeft"||T.key==="Backspace"&&D.toString()==="")&&q.start===0){var le=$.previousElementSibling;return!le||le&&(le.tagName==="TABLE"||le.getAttribute("data-type"))?($.insertAdjacentHTML("beforebegin",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,U.ib)(E[E.currentMode].element,D)):(D.selectNodeContents(le),D.collapse(!1),(0,U.Hc)(D)),T.preventDefault(),!0}return!1},Pa=function(E,T,D,B){B===void 0&&(B=!0);var $=(0,A.lG)(T.startContainer,"LI");if(E[E.currentMode].element.querySelectorAll("wbr").forEach(function(ft){ft.remove()}),T.insertNode(document.createElement("wbr")),B&&$){for(var q="",le=0;le<$.parentElement.childElementCount;le++){var Oe=$.parentElement.children[le].querySelector("input");Oe&&Oe.remove(),q+='<p data-block="0">'.concat($.parentElement.children[le].innerHTML.trimLeft(),"</p>")}$.parentElement.insertAdjacentHTML("beforebegin",q),$.parentElement.remove()}else if($)if(D==="check")$.parentElement.querySelectorAll("li").forEach(function(ft){ft.insertAdjacentHTML("afterbegin",'<input type="checkbox" />'.concat(ft.textContent.indexOf(" ")===0?"":" ")),ft.classList.add("vditor-task")});else{$.querySelector("input")&&$.parentElement.querySelectorAll("li").forEach(function(ft){ft.querySelector("input").remove(),ft.classList.remove("vditor-task")});var Ue=void 0;D==="list"?(Ue=document.createElement("ul"),Ue.setAttribute("data-marker","*")):(Ue=document.createElement("ol"),Ue.setAttribute("data-marker","1.")),Ue.setAttribute("data-block","0"),Ue.setAttribute("data-tight",$.parentElement.getAttribute("data-tight")),Ue.innerHTML=$.parentElement.innerHTML,$.parentElement.parentNode.replaceChild(Ue,$.parentElement)}else{var Ye=(0,A.a1)(T.startContainer,"data-block","0");Ye||(E[E.currentMode].element.querySelector("wbr").remove(),Ye=E[E.currentMode].element.querySelector("p"),Ye.innerHTML="<wbr>"),D==="check"?(Ye.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li class="vditor-task"><input type="checkbox" /> '.concat(Ye.innerHTML,"</li></ul>")),Ye.remove()):D==="list"?(Ye.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li>'.concat(Ye.innerHTML,"</li></ul>")),Ye.remove()):D==="ordered-list"&&(Ye.insertAdjacentHTML("beforebegin",'<ol data-block="0"><li>'.concat(Ye.innerHTML,"</li></ol>")),Ye.remove())}},Ai=function(E,T,D){var B=T.previousElementSibling;if(T&&B){var $=[T];Array.from(D.cloneContents().children).forEach(function(Ye,Ue){Ye.nodeType!==3&&T&&Ye.textContent.trim()!==""&&T.getAttribute("data-node-id")===Ye.getAttribute("data-node-id")&&(Ue!==0&&$.push(T),T=T.nextElementSibling)}),E[E.currentMode].element.querySelectorAll("wbr").forEach(function(Ye){Ye.remove()}),D.insertNode(document.createElement("wbr"));var q=B.parentElement,le="";$.forEach(function(Ye){var Ue=Ye.getAttribute("data-marker");Ue.length!==1&&(Ue="1".concat(Ue.slice(-1))),le+='<li data-node-id="'.concat(Ye.getAttribute("data-node-id"),'" data-marker="').concat(Ue,'">').concat(Ye.innerHTML,"</li>"),Ye.remove()}),B.insertAdjacentHTML("beforeend","<".concat(q.tagName,' data-block="0">').concat(le,"</").concat(q.tagName,">")),E.currentMode==="wysiwyg"?q.outerHTML=E.lute.SpinVditorDOM(q.outerHTML):q.outerHTML=E.lute.SpinVditorIRDOM(q.outerHTML),(0,U.ib)(E[E.currentMode].element,D);var Oe=(0,A.O9)(D.startContainer);Oe&&Oe.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(Ye){z(Ye,E),E.currentMode==="wysiwyg"&&Ye.previousElementSibling.setAttribute("style","display:none")}),_r(E),He(E)}else E[E.currentMode].element.focus()},Ci=function(E,T,D,B){var $=(0,A.lG)(T.parentElement,"LI");if($){E[E.currentMode].element.querySelectorAll("wbr").forEach(function(wt){wt.remove()}),D.insertNode(document.createElement("wbr"));var q=T.parentElement,le=q.cloneNode(),Oe=[T];Array.from(D.cloneContents().children).forEach(function(wt,xn){wt.nodeType!==3&&T&&wt.textContent.trim()!==""&&T.getAttribute("data-node-id")===wt.getAttribute("data-node-id")&&(xn!==0&&Oe.push(T),T=T.nextElementSibling)});var Ye=!1,Ue="";q.querySelectorAll("li").forEach(function(wt){Ye&&(Ue+=wt.outerHTML,!wt.nextElementSibling&&!wt.previousElementSibling?wt.parentElement.remove():wt.remove()),wt.isSameNode(Oe[Oe.length-1])&&(Ye=!0)}),Oe.reverse().forEach(function(wt){$.insertAdjacentElement("afterend",wt)}),Ue&&(le.innerHTML=Ue,Oe[0].insertAdjacentElement("beforeend",le)),E.currentMode==="wysiwyg"?B.outerHTML=E.lute.SpinVditorDOM(B.outerHTML):B.outerHTML=E.lute.SpinVditorIRDOM(B.outerHTML),(0,U.ib)(E[E.currentMode].element,D);var ft=(0,A.O9)(D.startContainer);ft&&ft.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(wt){z(wt,E),E.currentMode==="wysiwyg"&&wt.previousElementSibling.setAttribute("style","display:none")}),_r(E),He(E)}else E[E.currentMode].element.focus()},xi=function(E,T){for(var D=getSelection().getRangeAt(0).startContainer.parentElement,B=E.rows[0].cells.length,$=E.rows.length,q=0,le=0;le<$;le++)for(var Oe=0;Oe<B;Oe++)if(E.rows[le].cells[Oe].isSameNode(D)){q=Oe;break}for(var Ye=0;Ye<$;Ye++)E.rows[Ye].cells[q].setAttribute("align",T)},mi=function(E){var T=E.trimRight().split(`
  2024. `).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(`
  2025. `).length>1||T.indexOf(" ")===0||T.indexOf(" ")===0):!1},oa=function(E){var T=E.trimRight().split(`
  2026. `);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"?we(E,T):E.currentMode==="sv"&&Kt(E,T)},Si=function(E,T,D,B){var $,q=E.startContainer,le=(0,A.lG)(q,"LI");if(le){if(!(0,f.yl)(B)&&!B.altKey&&B.key==="Enter"&&!B.shiftKey&&D&&le.contains(D)&&D.nextElementSibling)return le&&!le.textContent.endsWith(`
  2027. `)&&le.insertAdjacentText("beforeend",`
  2028. `),E.insertNode(document.createTextNode(`
  2029. `)),E.collapse(!1),_r(T),B.preventDefault(),!0;if(!(0,f.yl)(B)&&!B.shiftKey&&!B.altKey&&B.key==="Backspace"&&!le.previousElementSibling&&E.toString()===""&&(0,U.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,U.ib)(T[T.currentMode].element,E),_r(T),B.preventDefault(),!0;if(!(0,f.yl)(B)&&!B.shiftKey&&!B.altKey&&B.key==="Backspace"&&le.textContent.trim().replace(s.g.ZWSP,"")===""&&E.toString()===""&&(($=le.previousElementSibling)===null||$===void 0?void 0:$.tagName)==="LI")return le.previousElementSibling.insertAdjacentText("beforeend",`
  2030. `),E.selectNodeContents(le.previousElementSibling),E.collapse(!1),le.remove(),(0,U.ib)(T[T.currentMode].element,E),_r(T),B.preventDefault(),!0;if(!(0,f.yl)(B)&&!B.altKey&&B.key==="Tab"){var Oe=!1;if((E.startOffset===0&&(q.nodeType===3&&!q.previousSibling||q.nodeType!==3&&q.nodeName==="LI")||le.classList.contains("vditor-task")&&E.startOffset===1&&q.previousSibling.nodeType!==3&&q.previousSibling.tagName==="INPUT")&&(Oe=!0),Oe||E.toString()!=="")return B.shiftKey?Ci(T,le,E,le.parentElement):Ai(T,le,E),B.preventDefault(),!0}}return!1},ha=function(E,T,D){if(E.options.tab&&D.key==="Tab")return D.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,U.Hc)(T),_r(E),D.preventDefault(),!0},Ge=function(E,T,D,B){if(D){if(!(0,f.yl)(E)&&!E.altKey&&E.key==="Enter"){var $=String.raw(cr||(cr=Rr(["",""],["",""])),D.textContent).replace(/\\\|/g,"").trim(),q=$.split("|");if($.startsWith("|")&&$.endsWith("|")&&q.length>3){var le=q.map(function(){return"---"}).join("|");return le=D.textContent+`
  2031. `+le.substring(3,le.length-3)+`
  2032. |<wbr>`,D.outerHTML=T.lute.SpinVditorDOM(le),(0,U.ib)(T[T.currentMode].element,B),_r(T),Mn(T),E.preventDefault(),!0}if(mi(D.innerHTML)&&D.previousElementSibling){var Oe="",Ye=D.innerHTML.trimRight().split(`
  2033. `);return Ye.length>1&&(Ye.pop(),Oe='<p data-block="0">'.concat(Ye.join(`
  2034. `),"</p>")),D.insertAdjacentHTML("afterend","".concat(Oe,`<hr data-block="0"><p data-block="0"><wbr>
  2035. </p>`)),D.remove(),(0,U.ib)(T[T.currentMode].element,B),_r(T),Mn(T),E.preventDefault(),!0}if(oa(D.innerHTML))return T.currentMode==="wysiwyg"?D.outerHTML=T.lute.SpinVditorDOM(D.innerHTML+`<p data-block="0"><wbr>
  2036. </p>`):D.outerHTML=T.lute.SpinVditorIRDOM(D.innerHTML+`<p data-block="0"><wbr>
  2037. </p>`),(0,U.ib)(T[T.currentMode].element,B),_r(T),Mn(T),E.preventDefault(),!0}if(B.collapsed&&D.previousElementSibling&&E.key==="Backspace"&&!(0,f.yl)(E)&&!E.altKey&&!E.shiftKey&&D.textContent.trimRight().split(`
  2038. `).length>1&&(0,U.im)(D,T[T.currentMode].element,B).start===0){var Ue=(0,A.DX)(D.previousElementSibling);return Ue.textContent.endsWith(`
  2039. `)||(Ue.textContent=Ue.textContent+`
  2040. `),Ue.parentElement.insertAdjacentHTML("beforeend","<wbr>".concat(D.innerHTML)),D.remove(),(0,U.ib)(T[T.currentMode].element,B),!1}return!1}},We=function(E,T,D){for(var B="",$=0;$<D.parentElement.childElementCount;$++)B+='<td align="'.concat(D.parentElement.children[$].getAttribute("align"),'"> </td>');D.tagName==="TH"?D.parentElement.parentElement.insertAdjacentHTML("afterend","<tbody><tr>".concat(B,"</tr></tbody>")):D.parentElement.insertAdjacentHTML("afterend","<tr>".concat(B,"</tr>")),_r(E)},ne=function(E,T,D){for(var B="",$=0;$<D.parentElement.childElementCount;$++)D.tagName==="TH"?B+='<th align="'.concat(D.parentElement.children[$].getAttribute("align"),'"> </th>'):B+='<td align="'.concat(D.parentElement.children[$].getAttribute("align"),'"> </td>');if(D.tagName==="TH"){D.parentElement.parentElement.insertAdjacentHTML("beforebegin","<thead><tr>".concat(B,"</tr></thead>")),T.insertNode(document.createElement("wbr"));var q=D.parentElement.innerHTML.replace(/<th>/g,"<td>").replace(/<\/th>/g,"</td>");D.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",q),D.parentElement.parentElement.remove(),(0,U.ib)(E.ir.element,T)}else D.parentElement.insertAdjacentHTML("beforebegin","<tr>".concat(B,"</tr>"));_r(E)},Ie=function(E,T,D,B){B===void 0&&(B="afterend");for(var $=0,q=D.previousElementSibling;q;)$++,q=q.previousElementSibling;for(var le=0;le<T.rows.length;le++)le===0?T.rows[le].cells[$].insertAdjacentHTML(B,"<th> </th>"):T.rows[le].cells[$].insertAdjacentHTML(B,"<td> </td>");_r(E)},Ve=function(E,T,D){if(D.tagName==="TD"){var B=D.parentElement.parentElement;D.parentElement.previousElementSibling?T.selectNodeContents(D.parentElement.previousElementSibling.lastElementChild):T.selectNodeContents(B.previousElementSibling.lastElementChild.lastElementChild),B.childElementCount===1?B.remove():D.parentElement.remove(),T.collapse(!1),(0,U.Hc)(T),_r(E)}},Ut=function(E,T,D,B){for(var $=0,q=B.previousElementSibling;q;)$++,q=q.previousElementSibling;(B.previousElementSibling||B.nextElementSibling)&&(T.selectNodeContents(B.previousElementSibling||B.nextElementSibling),T.collapse(!0));for(var le=0;le<D.rows.length;le++){var Oe=D.rows[le].cells;if(Oe.length===1){D.remove(),He(E);break}Oe[$].remove()}(0,U.Hc)(T),_r(E)},It=function(E,T,D){var B=D.startContainer,$=(0,A.lG)(B,"TD")||(0,A.lG)(B,"TH");if($){if(!(0,f.yl)(T)&&!T.altKey&&T.key==="Enter"){(!$.lastElementChild||$.lastElementChild&&(!$.lastElementChild.isSameNode($.lastChild)||$.lastElementChild.tagName!=="BR"))&&$.insertAdjacentHTML("beforeend","<br>");var q=document.createElement("br");return D.insertNode(q),D.setStartAfter(q),_r(E),Mn(E),T.preventDefault(),!0}if(T.key==="Tab"){if(T.shiftKey)return ti($,D),T.preventDefault(),!0;var le=$.nextElementSibling;return le||($.parentElement.nextElementSibling?le=$.parentElement.nextElementSibling.firstElementChild:$.parentElement.parentElement.tagName==="THEAD"&&$.parentElement.parentElement.nextElementSibling?le=$.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:le=null),le&&(D.selectNodeContents(le),(0,U.Hc)(D)),T.preventDefault(),!0}var Oe=$.parentElement.parentElement.parentElement;if(T.key==="ArrowUp"){if(T.preventDefault(),$.tagName==="TH")return Oe.previousElementSibling?(D.selectNodeContents(Oe.previousElementSibling),D.collapse(!1),(0,U.Hc)(D)):Xo(E,"beforebegin"),!0;for(var Ye=0,Ue=$.parentElement;Ye<Ue.cells.length&&!Ue.cells[Ye].isSameNode($);Ye++);var ft=Ue.previousElementSibling;return ft||(ft=Ue.parentElement.previousElementSibling.firstChild),D.selectNodeContents(ft.cells[Ye]),D.collapse(!1),(0,U.Hc)(D),!0}if(T.key==="ArrowDown"){T.preventDefault();var Ue=$.parentElement;if(!Ue.nextElementSibling&&$.tagName==="TD")return Oe.nextElementSibling?(D.selectNodeContents(Oe.nextElementSibling),D.collapse(!0),(0,U.Hc)(D)):Xo(E,"afterend"),!0;for(var Ye=0;Ye<Ue.cells.length&&!Ue.cells[Ye].isSameNode($);Ye++);var le=Ue.nextElementSibling;return le||(le=Ue.parentElement.nextElementSibling.firstChild),D.selectNodeContents(le.cells[Ye]),D.collapse(!0),(0,U.Hc)(D),!0}if(E.currentMode==="wysiwyg"&&!(0,f.yl)(T)&&T.key==="Enter"&&!T.shiftKey&&T.altKey){var wt=E.wysiwyg.popover.querySelector(".vditor-input");return wt.focus(),wt.select(),T.preventDefault(),!0}if(!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey&&T.key==="Backspace"&&D.startOffset===0&&D.toString()===""){var xn=ti($,D,!1);return!xn&&Oe&&(Oe.textContent.trim()===""?(Oe.outerHTML=`<p data-block="0"><wbr>
  2041. </p>`,(0,U.ib)(E[E.currentMode].element,D)):(D.setStartBefore(Oe),D.collapse(!0)),_r(E)),T.preventDefault(),!0}if(X("⇧⌘F",T))return ne(E,D,$),T.preventDefault(),!0;if(X("⌘=",T))return We(E,D,$),T.preventDefault(),!0;if(X("⇧⌘G",T))return Ie(E,Oe,$,"beforebegin"),T.preventDefault(),!0;if(X("⇧⌘=",T))return Ie(E,Oe,$),T.preventDefault(),!0;if(X("⌘-",T))return Ve(E,D,$),T.preventDefault(),!0;if(X("⇧⌘-",T))return Ut(E,D,Oe,$),T.preventDefault(),!0;if(X("⇧⌘L",T)){if(E.currentMode==="ir")return xi(Oe,"left"),_r(E),T.preventDefault(),!0;var wn=E.wysiwyg.popover.querySelector('[data-type="left"]');if(wn)return wn.click(),T.preventDefault(),!0}if(X("⇧⌘C",T)){if(E.currentMode==="ir")return xi(Oe,"center"),_r(E),T.preventDefault(),!0;var wn=E.wysiwyg.popover.querySelector('[data-type="center"]');if(wn)return wn.click(),T.preventDefault(),!0}if(X("⇧⌘R",T)){if(E.currentMode==="ir")return xi(Oe,"right"),_r(E),T.preventDefault(),!0;var wn=E.wysiwyg.popover.querySelector('[data-type="right"]');if(wn)return wn.click(),T.preventDefault(),!0}}return!1},rn=function(E,T,D,B){if(D.tagName==="PRE"&&X("⌘A",T))return B.selectNodeContents(D.firstElementChild),T.preventDefault(),!0;if(E.options.tab&&T.key==="Tab"&&!T.shiftKey&&B.toString()==="")return B.insertNode(document.createTextNode(E.options.tab)),B.collapse(!1),_r(E),T.preventDefault(),!0;if(T.key==="Backspace"&&!(0,f.yl)(T)&&!T.shiftKey&&!T.altKey){var $=(0,U.im)(D,E[E.currentMode].element,B);if(($.start===0||$.start===1&&D.innerText===`
  2042. `)&&B.toString()==="")return D.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(D.firstElementChild.innerHTML,"</p>"),(0,U.ib)(E[E.currentMode].element,B),_r(E),T.preventDefault(),!0}return!(0,f.yl)(T)&&!T.altKey&&T.key==="Enter"?(D.firstElementChild.textContent.endsWith(`
  2043. `)||D.firstElementChild.insertAdjacentText("beforeend",`
  2044. `),B.extractContents(),B.insertNode(document.createTextNode(`
  2045. `)),B.collapse(!1),(0,U.Hc)(B),(0,f.vU)()||(E.currentMode==="wysiwyg"?wo(E,B):te(E,B)),Mn(E),T.preventDefault(),!0):!1},dn=function(E,T,D,B){var $=T.startContainer,q=(0,A.lG)($,"BLOCKQUOTE");if(q&&T.toString()===""){if(D.key==="Backspace"&&!(0,f.yl)(D)&&!D.shiftKey&&!D.altKey&&(0,U.im)(q,E[E.currentMode].element,T).start===0)return T.insertNode(document.createElement("wbr")),q.outerHTML=q.innerHTML,(0,U.ib)(E[E.currentMode].element,T),_r(E),D.preventDefault(),!0;if(B&&D.key==="Enter"&&!(0,f.yl)(D)&&!D.shiftKey&&!D.altKey&&B.parentElement.tagName==="BLOCKQUOTE"){var le=!1;if(B.innerHTML.replace(s.g.ZWSP,"")===`
  2046. `||B.innerHTML.replace(s.g.ZWSP,"")===""?(le=!0,B.remove()):B.innerHTML.endsWith(`
  2047. `)&&(0,U.im)(B,E[E.currentMode].element,T).start===B.textContent.length-1&&(B.innerHTML=B.innerHTML.substr(0,B.innerHTML.length-2),le=!0),le)return q.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
  2048. </p>`)),(0,U.ib)(E[E.currentMode].element,T),_r(E),D.preventDefault(),!0}var Oe=(0,A.F9)($);if(E.currentMode==="wysiwyg"&&Oe&&X("⇧⌘;",D))return T.insertNode(document.createElement("wbr")),Oe.outerHTML='<blockquote data-block="0">'.concat(Oe.outerHTML,"</blockquote>"),(0,U.ib)(E.wysiwyg.element,T),Ne(E),D.preventDefault(),!0;if(Lo(E,D,T,q,q)||Qo(E,D,T,q,q))return!0}return!1},kn=function(E,T,D){var B=T.startContainer,$=(0,A.lG)(B,"LI");if($&&$.classList.contains("vditor-task")){if(X("⇧⌘J",D)){var q=$.firstElementChild;return q.checked?q.removeAttribute("checked"):q.setAttribute("checked","checked"),_r(E),D.preventDefault(),!0}if(D.key==="Backspace"&&!(0,f.yl)(D)&&!D.shiftKey&&!D.altKey&&T.toString()===""&&T.startOffset===1&&(B.nodeType===3&&B.previousSibling&&B.previousSibling.tagName==="INPUT"||B.nodeType!==3)){var le=$.previousElementSibling;if($.querySelector("input").remove(),le){var Oe=(0,A.DX)(le);Oe.parentElement.insertAdjacentHTML("beforeend","<wbr>"+$.innerHTML.trim()),$.remove()}else $.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat($.innerHTML.trim()||`
  2049. `,"</p>")),$.nextElementSibling?$.remove():$.parentElement.remove();return(0,U.ib)(E[E.currentMode].element,T),_r(E),D.preventDefault(),!0}if(D.key==="Enter"&&!(0,f.yl)(D)&&!D.shiftKey&&!D.altKey){if($.textContent.trim()==="")if((0,A.fb)($.parentElement,"vditor-task")){var Ye=(0,A.O9)(B);Ye&&Ci(E,$,T,Ye)}else if($.nextElementSibling){var Ue="",ft="",wt=!1;Array.from($.parentElement.children).forEach(function(ln){$.isSameNode(ln)?wt=!0:wt?Ue+=ln.outerHTML:ft+=ln.outerHTML});var xn=$.parentElement.tagName,wn=$.parentElement.tagName==="OL"?"":' data-marker="'.concat($.parentElement.getAttribute("data-marker"),'"'),vn="";ft&&(vn=$.parentElement.tagName==="UL"?"":' start="1"',ft="<".concat(xn,' data-tight="true"').concat(wn,' data-block="0">').concat(ft,"</").concat(xn,">")),$.parentElement.outerHTML="".concat(ft,`<p data-block="0"><wbr>
  2050. </p><`).concat(xn,`
  2051. data-tight="true"`).concat(wn,' data-block="0"').concat(vn,">").concat(Ue,"</").concat(xn,">")}else $.parentElement.insertAdjacentHTML("afterend",`<p data-block="0"><wbr>
  2052. </p>`),$.parentElement.querySelectorAll("li").length===1?$.parentElement.remove():$.remove();else B.nodeType!==3&&T.startOffset===0&&B.firstChild.tagName==="INPUT"?T.setStart(B.childNodes[1],1):(T.setEndAfter($.lastChild),$.insertAdjacentHTML("afterend",'<li class="vditor-task" data-marker="'.concat($.getAttribute("data-marker"),'"><input type="checkbox"> <wbr></li>')),document.querySelector("wbr").after(T.extractContents()));return(0,U.ib)(E[E.currentMode].element,T),_r(E),Mn(E),D.preventDefault(),!0}}return!1},or=function(E,T,D,B){if(T.startContainer.nodeType!==3){var $=T.startContainer.children[T.startOffset];if($&&$.tagName==="HR")return T.selectNodeContents($.previousElementSibling),T.collapse(!1),D.preventDefault(),!0}if(B){var q=B.previousElementSibling;if(q&&(0,U.im)(B,E[E.currentMode].element,T).start===0&&((0,f.vU)()&&q.tagName==="HR"||q.tagName==="TABLE")){if(q.tagName==="TABLE"){var le=q.lastElementChild.lastElementChild.lastElementChild;le.innerHTML=le.innerHTML.trimLeft()+"<wbr>"+B.textContent.trim(),B.remove()}else q.remove();return(0,U.ib)(E[E.currentMode].element,T),_r(E),D.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,D){var B,$;if(!(0,f.vU)())return!1;if(E.key==="ArrowUp"&&T&&((B=T.previousElementSibling)===null||B===void 0?void 0:B.tagName)==="TABLE"){var q=T.previousElementSibling;return D.selectNodeContents(q.rows[q.rows.length-1].lastElementChild),D.collapse(!1),E.preventDefault(),!0}return E.key==="ArrowDown"&&T&&(($=T.nextElementSibling)===null||$===void 0?void 0:$.tagName)==="TABLE"?(D.selectNodeContents(T.nextElementSibling.rows[0].cells[0]),D.collapse(!0),E.preventDefault(),!0):!1},sr=function(E,T,D){return Br(void 0,void 0,void 0,function(){var B,$,q,le,Oe,Ye,Ue,ft,wt,xn,wn,vn,ln,fn,Sn,fn,qn;return $r(this,function(zn){switch(zn.label){case 0:return E[E.currentMode].element.getAttribute("contenteditable")!=="true"?[2]:(T.stopPropagation(),T.preventDefault(),"clipboardData"in T?(B=T.clipboardData.getData("text/html"),$=T.clipboardData.getData("text/plain"),q=T.clipboardData.files):(B=T.dataTransfer.getData("text/html"),$=T.dataTransfer.getData("text/plain"),T.dataTransfer.types.includes("Files")&&(q=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 Nr=fo.responseText;E.options.upload.linkToImgFormat&&(Nr=E.options.upload.linkToImgFormat(fo.responseText));var ia=JSON.parse(Nr);if(ia.code!==0){E.tip.show(ia.msg);return}var Ra=ia.data.originalURL;if(E.currentMode==="sv")E.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach(function(fr){fr.textContent===Ra&&(fr.textContent=ia.data.url)});else{var to=E[E.currentMode].element.querySelector('img[src="'.concat(Ra,'"]'));to.src=ia.data.url,E.currentMode==="ir"&&(to.previousElementSibling.previousElementSibling.innerHTML=ia.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]},(B.replace(/&amp;/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<a href="'.concat($,'">').concat($,"</a>")||B.replace(/&amp;/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<!--StartFragment--><a href="'.concat($,'">').concat($,"</a><!--EndFragment-->"))&&(B=""),Ye=new DOMParser().parseFromString(B,"text/html"),Ye.body&&(B=Ye.body.innerHTML),B=Lute.Sanitize(B),E.wysiwyg.getComments(E),Ue=E[E.currentMode].element.scrollHeight,ft=Z(B,$,E.currentMode),wt=E.currentMode==="sv"?(0,A.a1)(T.target,"data-type","code-block"):(0,A.lG)(T.target,"CODE"),wt?(E.currentMode==="sv"?document.execCommand("insertHTML",!1,$.replace(/&/g,"&amp;").replace(/</g,"&lt;")):(xn=(0,U.im)(T.target,E[E.currentMode].element),wt.parentElement.tagName!=="PRE"&&($+=s.g.ZWSP),wt.textContent=wt.textContent.substring(0,xn.start)+$+wt.textContent.substring(xn.end),(0,U.$j)(xn.start+$.length,xn.start+$.length,wt.parentElement),!((qn=wt.parentElement)===null||qn===void 0)&&qn.nextElementSibling.classList.contains("vditor-".concat(E.currentMode,"__preview"))&&(wt.parentElement.nextElementSibling.innerHTML=wt.outerHTML,z(wt.parentElement.nextElementSibling,E))),[3,10]):[3,1]);case 1:return ft?(D.pasteCode(ft),[3,10]):[3,2];case 2:return B.trim()===""?[3,5]:(wn=document.createElement("div"),wn.innerHTML=B,E.options.upload.base64ToLink?[3,4]:[4,nr(E,wn,("clipboardData"in T?T.clipboardData:T.dataTransfer).getData("text/rtf"))]);case 3:zn.sent(),zn.label=4;case 4:return wn.querySelectorAll("[style]").forEach(function(gr){gr.removeAttribute("style")}),wn.querySelectorAll(".vditor-copy").forEach(function(gr){gr.remove()}),E.currentMode==="ir"?(le.HTML2VditorIRDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,U.oC)(E.lute.HTML2VditorIRDOM(wn.innerHTML),E)):E.currentMode==="wysiwyg"?(le.HTML2VditorDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,U.oC)(E.lute.HTML2VditorDOM(wn.innerHTML),E)):(le.Md2VditorSVDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),qe(E,E.lute.HTML2Md(wn.innerHTML).trimRight())),E.outline.render(E),[3,10];case 5:return q.length>0?E.options.upload.url||E.options.upload.handler?[4,Vr(E,q)]:[3,7]:[3,9];case 6:return zn.sent(),[3,8];case 7:vn=new FileReader,"clipboardData"in T?(q=T.clipboardData.files,ln=q[0]):T.dataTransfer.types.includes("Files")&&(q=T.dataTransfer.items,ln=q[0].getAsFile()),ln&&ln.type.startsWith("image")&&(vn.readAsDataURL(ln),vn.onload=function(){var gr="";E.currentMode==="wysiwyg"?gr+='<img alt="'.concat(ln.name,'" src="').concat(vn.result.toString(),`">
  2053. `):gr+="![".concat(ln.name,"](").concat(vn.result.toString(),`)
  2054. `),document.execCommand("insertHTML",!1,gr)}),zn.label=8;case 8:return[3,10];case 9:$.trim()!==""&&q.length===0&&(fn=(0,U.zh)(E),fn.toString()!==""&&E.lute.IsValidLinkDest($)&&($="[".concat(fn.toString(),"](").concat($,")")),E.currentMode==="ir"?(le.Md2VditorIRDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,U.oC)(Lute.Sanitize(E.lute.Md2VditorIRDOM($)),E)):E.currentMode==="wysiwyg"?(le.Md2VditorDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),(0,U.oC)(Lute.Sanitize(E.lute.Md2VditorDOM($)),E)):(le.Md2VditorSVDOM={renderLinkDest:Oe},E.lute.SetJSRenderers({renderers:le}),qe(E,$)),E.outline.render(E)),zn.label=10;case 10:return E.currentMode!=="sv"&&(Sn=(0,A.F9)((0,U.zh)(E).startContainer),Sn&&(fn=(0,U.zh)(E),E[E.currentMode].element.querySelectorAll("wbr").forEach(function(gr){gr.remove()}),fn.insertNode(document.createElement("wbr")),E.currentMode==="wysiwyg"?Sn.outerHTML=E.lute.SpinVditorDOM(Sn.outerHTML):Sn.outerHTML=E.lute.SpinVditorIRDOM(Sn.outerHTML),(0,U.ib)(E[E.currentMode].element,fn)),E[E.currentMode].element.querySelectorAll(".vditor-".concat(E.currentMode,"__preview[data-render='2']")).forEach(function(gr){z(gr,E)})),E.wysiwyg.triggerRemoveComment(E),_r(E),E[E.currentMode].element.scrollHeight-Ue>Math.min(E[E.currentMode].element.clientHeight,window.innerHeight)/2&&Mn(E),[2]}})})},nr=function(E,T,D){return Br(void 0,void 0,void 0,function(){var B,$,q,le,Oe,Ye,Ue,ft,wt,ln,xn,wn,vn,ln,Sn,fn;return $r(this,function(qn){switch(qn.label){case 0:if(!D)return[2];if(B=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,$=new RegExp("(?:("+B.source+"))([\\da-fA-F\\s]+)\\}","g"),q=D.match($),le=[],q)for(Oe=0,Ye=q;Oe<Ye.length;Oe++)Ue=Ye[Oe],ft=void 0,Ue.includes("\\pngblip")?ft="image/png":Ue.includes("\\jpegblip")&&(ft="image/jpeg"),ft&&le.push({hex:Ue.replace(B,"").replace(/[^\da-fA-F]/g,""),type:ft});for(wt=[],Or(T,function(zn){if(zn.tagName==="V:SHAPE")return Or(zn,function(gr){gr.tagName==="V:IMAGEDATA"&&wt.push({shape:zn,img:gr})}),!1}),ln=0;ln<wt.length;ln++)xn=document.createElement("img"),wn="data:"+le[ln].type+";base64,"+btoa((le[ln].hex.match(/\w{2}/g)||[]).map(function(zn){return String.fromCharCode(parseInt(zn,16))}).join("")),xn.src=wn,xn.title=wt[ln].img.getAttribute("title"),wt[ln].shape.parentNode.replaceChild(xn,wt[ln].shape);vn=T.querySelectorAll("img"),ln=0,qn.label=1;case 1:return ln<vn.length?(Sn=vn[ln].src||"",Sn?(fn=vn[ln],[4,E.options.upload.base64ToLink(Sn)]):[3,3]):[3,4];case 2:fn.src=qn.sent(),qn.label=3;case 3:return ln++,[3,1];case 4:return[2]}})})},Or=function(E,T){var D=T(E);if(D!==!1)for(var B=0;B<E.children.length;B++)Or(E.children[B],T)},cr,dr=function(E){var T,D;E.hint.render(E);var B=(0,U.zh)(E).startContainer,$=(0,A.a1)(B,"data-type","code-block-info");if($)if($.textContent.replace(s.g.ZWSP,"")===""&&E.hint.recentLanguage){$.textContent=s.g.ZWSP+E.hint.recentLanguage;var q=(0,U.zh)(E);q.selectNodeContents($)}else{var le=[],Oe=$.textContent.substring(0,(0,U.im)($,E.ir.element).start).replace(s.g.ZWSP,"");(E.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((D=(T=window.hljs)===null||T===void 0?void 0:T.listLanguages())!==null&&D!==void 0?D:[]).sort())).forEach(function(Ye){Ye.indexOf(Oe.toLowerCase())>-1&&le.push({html:Ye,value:Ye})}),E.hint.genHTML(le,Oe,E)}},we=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 D=u(E);typeof E.options.input=="function"&&T.enableInput&&E.options.input(D),E.options.counter.enable&&E.counter.render(E,D),E.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(E.options.cache.id,D),E.options.cache.after&&E.options.cache.after(D)),E.devtools&&E.devtools.renderEchart(E),T.enableAddUndoStack&&E.undo.addToUndoStack(E)}},E.options.undoDelay)},ae=function(E,T){var D=(0,U.zh)(E),B=(0,A.F9)(D.startContainer)||D.startContainer;if(B){var $=B.querySelector(".vditor-ir__marker--heading");$?$.innerHTML=T:(B.insertAdjacentText("afterbegin",T),D.selectNodeContents(B),D.collapse(!1)),te(E,D.cloneRange()),Pe(E)}},fe=function(E,T,D){var B=(0,A.a1)(E.startContainer,"data-type",D);if(B){B.firstElementChild.remove(),B.lastElementChild.remove(),E.insertNode(document.createElement("wbr"));var $=document.createElement("div");$.innerHTML=T.lute.SpinVditorIRDOM(B.outerHTML),B.outerHTML=$.firstElementChild.innerHTML.trim()}},Ce=function(E,T,D,B){var $=(0,U.zh)(E),q=T.getAttribute("data-type"),le=$.startContainer;le.nodeType===3&&(le=le.parentElement);var Oe=!0;if(T.classList.contains("vditor-menu--current"))if(q==="quote"){var Ye=(0,A.lG)(le,"BLOCKQUOTE");Ye&&($.insertNode(document.createElement("wbr")),Ye.outerHTML=Ye.innerHTML.trim()===""?'<p data-block="0">'.concat(Ye.innerHTML,"</p>"):Ye.innerHTML)}else if(q==="link"){var Ue=(0,A.a1)($.startContainer,"data-type","a");if(Ue){var ft=(0,A.fb)($.startContainer,"vditor-ir__link");ft?($.insertNode(document.createElement("wbr")),Ue.outerHTML=ft.innerHTML):Ue.outerHTML=Ue.querySelector(".vditor-ir__link").innerHTML+"<wbr>"}}else q==="italic"?fe($,E,"em"):q==="bold"?fe($,E,"strong"):q==="strike"?fe($,E,"s"):q==="inline-code"?fe($,E,"code"):(q==="check"||q==="list"||q==="ordered-list")&&(Pa(E,$,q),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,U.ib)(E.ir.element,$));var wt=(0,A.F9)($.startContainer);if(q==="line"){if(wt){var xn=`<hr data-block="0"><p data-block="0"><wbr>
  2055. </p>`;wt.innerHTML.trim()===""?wt.outerHTML=xn:wt.insertAdjacentHTML("afterend",xn)}}else if(q==="quote")wt&&($.insertNode(document.createElement("wbr")),wt.outerHTML='<blockquote data-block="0">'.concat(wt.outerHTML,"</blockquote>"),Oe=!1,T.classList.add("vditor-menu--current"));else if(q==="link"){var wn=void 0;$.toString()===""?wn="".concat(D,"<wbr>").concat(B):wn="".concat(D).concat($.toString()).concat(B.replace(")","<wbr>)")),document.execCommand("insertHTML",!1,wn),Oe=!1,T.classList.add("vditor-menu--current")}else if(q==="italic"||q==="bold"||q==="strike"||q==="inline-code"||q==="code"||q==="table"){var wn=void 0;$.toString()===""?wn="".concat(D,"<wbr>").concat(B):(q==="code"?wn="".concat(D,`
  2056. `).concat($.toString(),"<wbr>").concat(B):q==="table"?wn="".concat(D).concat($.toString(),"<wbr>").concat(B):wn="".concat(D).concat($.toString()).concat(B,"<wbr>"),$.deleteContents()),(q==="table"||q==="code")&&(wn=`
  2057. `+wn+`
  2058. `);var vn=document.createElement("span");vn.innerHTML=wn,$.insertNode(vn),te(E,$),q==="table"&&($.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),(0,U.Hc)($))}else(q==="check"||q==="list"||q==="ordered-list")&&(Pa(E,$,q,!1),Oe=!1,p(E.toolbar.elements,["check","list","ordered-list"]),T.classList.add("vditor-menu--current"))}(0,U.ib)(E.ir.element,$),we(E),Oe&&Pe(E)},Ft=function(E,T,D,B){function $(q){return q instanceof D?q:new D(function(le){le(q)})}return new(D||(D=Promise))(function(q,le){function Oe(ft){try{Ue(B.next(ft))}catch(wt){le(wt)}}function Ye(ft){try{Ue(B.throw(ft))}catch(wt){le(wt)}}function Ue(ft){ft.done?q(ft.value):$(ft.value).then(Oe,Ye)}Ue((B=B.apply(E,T||[])).next())})},Tt=function(E,T){var D={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},B,$,q,le;return le={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Oe(Ue){return function(ft){return Ye([Ue,ft])}}function Ye(Ue){if(B)throw new TypeError("Generator is already executing.");for(;le&&(le=0,Ue[0]&&(D=0)),D;)try{if(B=1,$&&(q=Ue[0]&2?$.return:Ue[0]?$.throw||((q=$.return)&&q.call($),0):$.next)&&!(q=q.call($,Ue[1])).done)return q;switch($=0,q&&(Ue=[Ue[0]&2,q.value]),Ue[0]){case 0:case 1:q=Ue;break;case 4:return D.label++,{value:Ue[1],done:!1};case 5:D.label++,$=Ue[1],Ue=[0];continue;case 7:Ue=D.ops.pop(),D.trys.pop();continue;default:if(q=D.trys,!(q=q.length>0&&q[q.length-1])&&(Ue[0]===6||Ue[0]===2)){D=0;continue}if(Ue[0]===3&&(!q||Ue[1]>q[0]&&Ue[1]<q[3])){D.label=Ue[1];break}if(Ue[0]===6&&D.label<q[1]){D.label=q[1],q=Ue;break}if(q&&D.label<q[2]){D.label=q[2],D.ops.push(Ue);break}q[2]&&D.ops.pop(),D.trys.pop();continue}Ue=T.call(E,D)}catch(ft){Ue=[6,ft],$=0}finally{B=q=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},yn=(function(){function E(T){var D=this;this.splitChar="",this.lastIndex=-1,this.fillEmoji=function(B,$){D.element.style.display="none";var q=decodeURIComponent(B.getAttribute("data-value")),le=window.getSelection().getRangeAt(0);if($.currentMode==="ir"){var Oe=(0,A.a1)(le.startContainer,"data-type","code-block-info");if(Oe){Oe.textContent=s.g.ZWSP+q.trimRight(),le.selectNodeContents(Oe),le.collapse(!1),we($),Oe.parentElement.querySelectorAll("code").forEach(function(wt){wt.className="language-"+q.trimRight()}),z(Oe.parentElement.querySelector(".vditor-ir__preview"),$),D.recentLanguage=q.trimRight();return}}if($.currentMode==="wysiwyg"&&le.startContainer.nodeType!==3){var Ye=le.startContainer,Ue=void 0;if(Ye.classList.contains("vditor-input")?Ue=Ye:Ue=Ye.firstElementChild,Ue&&Ue.classList.contains("vditor-input")){Ue.value=q.trimRight(),le.selectNodeContents(Ue),le.collapse(!1),Ue.dispatchEvent(new CustomEvent("input",{detail:1})),D.recentLanguage=q.trimRight();return}}if(le.setStart(le.startContainer,D.lastIndex),le.deleteContents(),$.options.hint.parse?$.currentMode==="sv"?(0,U.oC)($.lute.SpinVditorSVDOM(q),$):$.currentMode==="wysiwyg"?(0,U.oC)($.lute.SpinVditorDOM(q),$):(0,U.oC)($.lute.SpinVditorIRDOM(q),$):(0,U.oC)(q,$),D.splitChar===":"&&q.indexOf(":")>-1&&$.currentMode!=="sv"&&le.insertNode(document.createTextNode(" ")),le.collapse(!1),(0,U.Hc)(le),$.currentMode==="wysiwyg"){var ft=(0,A.fb)(le.startContainer,"vditor-wysiwyg__block");ft&&ft.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(ft.lastElementChild.innerHTML=ft.firstElementChild.innerHTML,z(ft.lastElementChild,$))}else if($.currentMode==="ir"){var ft=(0,A.fb)(le.startContainer,"vditor-ir__marker--pre");ft&&ft.nextElementSibling.classList.contains("vditor-ir__preview")&&(ft.nextElementSibling.innerHTML=ft.innerHTML,z(ft.nextElementSibling,$))}_r($)},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 D=this;if(window.getSelection().focusNode){var B,$=getSelection().getRangeAt(0);B=$.startContainer.textContent.substring(0,$.startOffset)||"";var q=this.getKey(B,T.options.hint.extend);if(typeof q>"u")this.element.style.display="none",clearTimeout(this.timeId);else if(this.splitChar===":"){var le=q===""?T.options.hint.emoji:T.lute.GetEmojis(),Oe=[];Object.keys(le).forEach(function(Ye){Ye.indexOf(q.toLowerCase())===0&&(le[Ye].indexOf(".")>-1?Oe.push({html:'<img src="'.concat(le[Ye],'" title=":').concat(Ye,':"/> :').concat(Ye,":"),value:":".concat(Ye,":")}):Oe.push({html:'<span class="vditor-hint__emoji">'.concat(le[Ye],"</span>").concat(Ye),value:le[Ye]}))}),this.genHTML(Oe,q,T)}else T.options.hint.extend.forEach(function(Ye){Ye.key===D.splitChar&&(clearTimeout(D.timeId),D.timeId=window.setTimeout(function(){return Ft(D,void 0,void 0,function(){var Ue;return Tt(this,function(ft){switch(ft.label){case 0:return Ue=this.genHTML,[4,Ye.hint(q)];case 1:return Ue.apply(this,[ft.sent(),q,T]),[2]}})})},T.options.hint.delay))})}},E.prototype.genHTML=function(T,D,B){var $=this;if(T.length===0){this.element.style.display="none";return}var q=B[B.currentMode].element,le=(0,U.Ny)(q),Oe=le.left+(B.options.outline.position==="left"?B.outline.element.offsetWidth:0),Ye=le.top,Ue="";T.forEach(function(wt,xn){if(!(xn>7)){var wn=wt.html;if(D!==""){var vn=wn.lastIndexOf(">")+1,ln=wn.substr(vn),Sn=ln.toLowerCase().indexOf(D.toLowerCase());Sn>-1&&(ln=ln.substring(0,Sn)+"<b>"+ln.substring(Sn,Sn+D.length)+"</b>"+ln.substring(Sn+D.length),wn=wn.substr(0,vn)+ln)}Ue+='<button type="button" data-value="'.concat(encodeURIComponent(wt.value),` "
  2059. `).concat(xn===0?"class='vditor-hint--current'":"","> ").concat(wn,"</button>")}}),this.element.innerHTML=Ue;var ft=parseInt(document.defaultView.getComputedStyle(q,null).getPropertyValue("line-height"),10);this.element.style.top="".concat(Ye+(ft||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(wt){wt.addEventListener("click",function(xn){$.fillEmoji(wt,B),xn.preventDefault()})}),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top="".concat(Ye-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,D){if(this.element.querySelectorAll("button").length===0||this.element.style.display==="none")return!1;var B=this.element.querySelector(".vditor-hint--current");if(T.key==="ArrowDown")return T.preventDefault(),T.stopPropagation(),B.removeAttribute("class"),B.nextElementSibling?B.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if(T.key==="ArrowUp"){if(T.preventDefault(),T.stopPropagation(),B.removeAttribute("class"),B.previousElementSibling)B.previousElementSibling.className="vditor-hint--current";else{var $=this.element.children.length;this.element.children[$-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(B,D),!0;return!1},E.prototype.getKey=function(T,D){var B=this;this.lastIndex=-1,this.splitChar="",D.forEach(function(Ue){var ft=T.lastIndexOf(Ue.key);B.lastIndex<ft&&(B.splitChar=Ue.key,B.lastIndex=ft)});var $;if(this.lastIndex===-1)return $;var q=T.split(this.splitChar),le=q[q.length-1],Oe=32;if(q.length>1&&le.trim()===le)if(q.length===2&&q[0]===""&&q[1].length<Oe)$=q[1];else{var Ye=q[q.length-2].slice(-1);(0,l.X)(Ye)===" "&&le.length<Oe&&($=le)}return $},E})(),Cn=(function(){function E(T){this.composingLock=!1;var D=document.createElement("div");D.className="vditor-ir",D.innerHTML='<pre class="vditor-reset" placeholder="'.concat(T.options.placeholder,`"
  2060. contenteditable="true" spellcheck="false"></pre>`),this.element=D.firstElementChild,this.bindEvent(T),Nn(T,this.element),xt(T,this.element),sn(T,this.element),tr(T,this.element),cn(T,this.element),vt(T,this.element),Bt(T,this.element,this.copy),mn(T,this.element,this.copy)}return E.prototype.copy=function(T,D){var B=getSelection().getRangeAt(0);if(B.toString()!==""){T.stopPropagation(),T.preventDefault();var $=document.createElement("div");$.appendChild(B.cloneContents()),T.clipboardData.setData("text/plain",D.lute.VditorIRDOM2Md($.innerHTML).trim()),T.clipboardData.setData("text/html","")}},E.prototype.bindEvent=function(T){var D=this;this.element.addEventListener("paste",function(B){sr(T,B,{pasteCode:function($){document.execCommand("insertHTML",!1,$)}})}),this.element.addEventListener("scroll",function(){b(T,["hint"])}),this.element.addEventListener("compositionstart",function(B){D.composingLock=!0}),this.element.addEventListener("compositionend",function(B){(0,f.vU)()||te(T,getSelection().getRangeAt(0).cloneRange()),D.composingLock=!1}),this.element.addEventListener("input",function(B){if(!(B.inputType==="deleteByDrag"||B.inputType==="insertFromDrop")){if(D.preventInput){D.preventInput=!1,we(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}D.composingLock||B.data==="‘"||B.data==="“"||B.data==="《"||te(T,getSelection().getRangeAt(0).cloneRange(),!1,B)}}),this.element.addEventListener("click",function(B){if(B.target.tagName==="INPUT"){B.target.checked?B.target.setAttribute("checked","checked"):B.target.removeAttribute("checked"),D.preventInput=!0,we(T);return}var $=(0,U.zh)(T),q=(0,A.fb)(B.target,"vditor-ir__preview");if(q||(q=(0,A.fb)($.startContainer,"vditor-ir__preview")),q&&(q.previousElementSibling.firstElementChild?$.selectNodeContents(q.previousElementSibling.firstElementChild):$.selectNodeContents(q.previousElementSibling),$.collapse(!0),(0,U.Hc)($),Mn(T)),B.target.tagName==="IMG"){var le=B.target.parentElement.querySelector(".vditor-ir__marker--link");le&&($.selectNode(le),(0,U.Hc)($))}var Oe=(0,A.a1)(B.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(B.target.isEqualNode(D.element)&&D.element.lastElementChild&&$.collapsed){var Ye=D.element.lastElementChild.getBoundingClientRect();B.y>Ye.top+Ye.height&&(D.element.lastElementChild.tagName==="P"&&D.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?($.selectNodeContents(D.element.lastElementChild),$.collapse(!1)):(D.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,U.ib)(D.element,$)))}$.toString()===""?Me($,T):setTimeout(function(){Me((0,U.zh)(T),T)}),re(B,T),Pe(T)}),this.element.addEventListener("keyup",function(B){if(!(B.isComposing||(0,f.yl)(B))){if(B.key==="Enter"&&Mn(T),Pe(T),(B.key==="Backspace"||B.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===`
  2061. `)){T.ir.element.innerHTML="";return}var $=(0,U.zh)(T);B.key==="Backspace"?((0,f.vU)()&&$.startContainer.textContent===`
  2062. `&&$.startOffset===1&&($.startContainer.textContent="",Me($,T)),D.element.querySelectorAll(".language-math").forEach(function(le){var Oe=le.querySelector("br");Oe&&Oe.remove()})):B.key.indexOf("Arrow")>-1?((B.key==="ArrowLeft"||B.key==="ArrowRight")&&dr(T),Me($,T)):B.keyCode===229&&B.code===""&&B.key==="Unidentified"&&Me($,T);var q=(0,A.fb)($.startContainer,"vditor-ir__preview");if(q){if(B.key==="ArrowUp"||B.key==="ArrowLeft")return q.previousElementSibling.firstElementChild?$.selectNodeContents(q.previousElementSibling.firstElementChild):$.selectNodeContents(q.previousElementSibling),$.collapse(!1),B.preventDefault(),!0;if(q.tagName==="SPAN"&&(B.key==="ArrowDown"||B.key==="ArrowRight"))return q.parentElement.getAttribute("data-type")==="html-entity"?(q.parentElement.insertAdjacentText("afterend",s.g.ZWSP),$.setStart(q.parentElement.nextSibling,1)):$.selectNodeContents(q.parentElement.lastElementChild),$.collapse(!1),B.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)},mr=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>
  2063. <div class="vditor-outline__content"></div>`)}return E.prototype.render=function(T){var D="";return T.preview.element.style.display==="block"?D=(0,Er.k)(T.preview.previewElement,this.element.lastElementChild,T):D=(0,Er.k)(T[T.currentMode].element,this.element.lastElementChild,T),D},E.prototype.toggle=function(T,D,B){var $;D===void 0&&(D=!0),B===void 0&&(B=!0);var q=($=T.toolbar.elements.outline)===null||$===void 0?void 0:$.firstElementChild;if(D&&window.innerWidth>=s.g.MOBILE_WIDTH?(this.element.style.display="block",this.render(T),q?.classList.add("vditor-menu--current")):(this.element.style.display="none",q?.classList.remove("vditor-menu--current")),B&&getSelection().rangeCount>0){var le=getSelection().getRangeAt(0);T[T.currentMode].element.contains(le.startContainer)&&(0,U.Hc)(le)}ce(T)},E})(),Pr=o(280),Io=(function(){function E(T){var D=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(Ye){if(Ye.target.tagName!=="TEXTAREA"){var Ue=document.createElement("div");Ue.className="vditor-reset",Ue.appendChild(getSelection().getRangeAt(0).cloneContents()),D.copyToX(T,Ue,"default"),Ye.preventDefault()}}),this.previewElement.addEventListener("click",function(Ye){var Ue=(0,A.lG)(Ye.target,"SPAN");if(Ue&&(0,A.fb)(Ue,"vditor-toc")){var ft=D.previewElement.querySelector("#"+Ue.getAttribute("data-target-id"));ft&&(D.element.scrollTop=ft.offsetTop);return}if(Ye.target.tagName==="A"){T.options.link.click?T.options.link.click(Ye.target):T.options.link.isOpen&&window.open(Ye.target.getAttribute("href")),Ye.preventDefault();return}Ye.target.tagName==="IMG"&&(T.options.image.preview?T.options.image.preview(Ye.target):T.options.image.isPreview&&(0,ge.E)(Ye.target,T.options.lang,T.options.theme))}),this.element.appendChild(this.previewElement);var B=T.options.preview.actions;if(B.length!==0){var $=document.createElement("div");$.className="vditor-preview__action";for(var q=[],le=0;le<B.length;le++){var Oe=B[le];if(typeof Oe=="object"){q.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":q.push('<button type="button" class="vditor-preview__action--current" data-type="desktop">Desktop</button>');break;case"tablet":q.push('<button type="button" data-type="tablet">Tablet</button>');break;case"mobile":q.push('<button type="button" data-type="mobile">Mobile/Wechat</button>');break;case"mp-wechat":q.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":q.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}}$.innerHTML=q.join(""),$.addEventListener((0,f.Le)(),function(Ye){var Ue=(0,S.S)(Ye.target,"BUTTON");if(Ue){var ft=Ue.getAttribute("data-type"),wt=B.find(function(xn){return xn?.key===ft});if(wt){wt.click(ft);return}if(ft==="mp-wechat"||ft==="zhihu"){D.copyToX(T,D.previewElement.cloneNode(!0),ft);return}ft==="desktop"?D.previewElement.style.width="auto":ft==="tablet"?D.previewElement.style.width="780px":D.previewElement.style.width="360px",D.previewElement.scrollWidth>D.previewElement.parentElement.clientWidth&&(D.previewElement.style.width="auto"),D.render(T),$.querySelectorAll("button").forEach(function(xn){xn.classList.remove("vditor-preview__action--current")}),Ue.classList.add("vditor-preview__action--current")}}),this.element.insertBefore($,this.previewElement)}}return E.prototype.render=function(T,D){var B=this;if(clearTimeout(this.mdTimeoutId),this.element.style.display==="none"){this.element.getAttribute("data-type")==="renderPerformance"&&T.tip.hide();return}if(D){this.previewElement.innerHTML=D;return}if(u(T).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")===""){this.previewElement.innerHTML="";return}var $=new Date().getTime(),q=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 Ye=JSON.parse(le.responseText);if(Ye.code!==0){T.tip.show(Ye.msg);return}T.options.preview.transform&&(Ye.data=T.options.preview.transform(Ye.data)),B.previewElement.innerHTML=Ye.data,B.afterRender(T,$)}else{var Ue=T.lute.Md2HTML(q);T.options.preview.transform&&(Ue=T.options.preview.transform(Ue)),B.previewElement.innerHTML=Ue,B.afterRender(T,$)}},le.send(JSON.stringify({markdownText:q}))}else{var Oe=T.lute.Md2HTML(q);T.options.preview.transform&&(Oe=T.options.preview.transform(Oe)),B.previewElement.innerHTML=Oe,B.afterRender(T,$)}},T.options.preview.delay)},E.prototype.afterRender=function(T,D){T.options.preview.parse&&T.options.preview.parse(this.element);var B=new Date().getTime()-D;new Date().getTime()-D>2600?(T.tip.show(window.VditorI18n.performanceTip.replace("${x}",B.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 $=T.preview.element.querySelector(".vditor-comment--focus");$&&$.classList.remove("vditor-comment--focus"),(0,P.O)(T.preview.previewElement,T.options.preview.hljs),(0,R.s)(T.options.preview.hljs,T.preview.previewElement,T.options.cdn),(0,V.i)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,L.K)(T.preview.previewElement,T.options.cdn),(0,G.J)(T.preview.previewElement,T.options.cdn,T.options.theme),(0,M.P)(T.preview.previewElement,T.options.cdn),(0,_.v)(T.preview.previewElement,T.options.cdn),(0,I.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,O.Q)(T.preview.previewElement,T.options.cdn),T.options.preview.render.media.enable&&(0,Pr.Y)(T.preview.previewElement),T.options.customRenders.forEach(function(Oe){Oe.render(T.preview.previewElement,T)});var q=T.preview.element,le=T.outline.render(T);le===""&&(le="[ToC]"),q.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,D,B){B===void 0&&(B="mp-wechat"),B!=="zhihu"?D.querySelectorAll(".katex-html .base").forEach(function(q){q.style.display="initial"}):D.querySelectorAll(".language-math").forEach(function(q){q.outerHTML='<img class="Formula-image" data-eeimg="true" src="//www.zhihu.com/equation?tex=" alt="'.concat(q.getAttribute("data-math"),'\\" style="display: block; margin: 0 auto; max-width: 100%;">')}),D.style.backgroundColor="#fff",D.querySelectorAll("code").forEach(function(q){q.style.backgroundImage="none"}),this.element.append(D);var $=D.ownerDocument.createRange();$.selectNode(D),(0,U.Hc)($),document.execCommand("copy"),D.remove(),T.tip.show(["zhihu","mp-wechat"].includes(B)?"已复制,可到".concat(B==="zhihu"?"知乎":"微信公众号平台","进行粘贴"):"已复制到剪切板")},E})(),oo=(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 D=this;this.element.addEventListener("mousedown",function(B){var $=document,q=B.clientY,le=T.element.offsetHeight,Oe=63+T.element.querySelector(".vditor-toolbar").clientHeight;$.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),D.element.classList.add("vditor-resize--selected"),$.onmousemove=function(Ye){T.options.resize.position==="top"?T.element.style.height=Math.max(Oe,le+(q-Ye.clientY))+"px":T.element.style.height=Math.max(Oe,le+(Ye.clientY-q))+"px",T.options.typewriterMode&&(T.sv.element.style.paddingBottom=T.sv.element.parentElement.offsetHeight/2+"px")},$.onmouseup=function(){T.options.resize.after&&T.options.resize.after(T.element.offsetHeight-le),window.captureEvents&&window.captureEvents(),$.onmousemove=null,$.onmouseup=null,$.ondragstart=null,$.onselectstart=null,$.onselect=null,D.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),cn(T,this.element),vt(T,this.element),Bt(T,this.element,this.copy),mn(T,this.element,this.copy)}return E.prototype.copy=function(T,D){T.stopPropagation(),T.preventDefault(),T.clipboardData.setData("text/plain",En(D[D.currentMode].element))},E.prototype.bindEvent=function(T){var D=this;this.element.addEventListener("paste",function(B){sr(T,B,{pasteCode:function($){document.execCommand("insertHTML",!1,$)}})}),this.element.addEventListener("scroll",function(){if(T.preview.element.style.display==="block"){var B=D.element.scrollTop,$=D.element.clientHeight,q=D.element.scrollHeight-parseFloat(D.element.style.paddingBottom||"0"),le=T.preview.element;B/$>.5?le.scrollTop=(B+$)*le.scrollHeight/q-$:le.scrollTop=B*le.scrollHeight/q}}),this.element.addEventListener("compositionstart",function(B){D.composingLock=!0}),this.element.addEventListener("compositionend",function(B){(0,f.vU)()||Q(T,B),D.composingLock=!1}),this.element.addEventListener("input",function(B){if(!(B.inputType==="deleteByDrag"||B.inputType==="insertFromDrop")&&!(D.composingLock||B.data==="‘"||B.data==="“"||B.data==="《")){if(D.preventInput){D.preventInput=!1,Kt(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}Q(T,B)}}),this.element.addEventListener("keyup",function(B){if(!(B.isComposing||(0,f.yl)(B))){if((B.key==="Backspace"||B.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===`
  2064. `)){T.sv.element.innerHTML="";return}B.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,D){var B=this;D===void 0&&(D=6e3),this.element.className="vditor-tip vditor-tip--show",D===0?(this.element.innerHTML='<div class="vditor-tip__content">'.concat(T,`
  2065. <div class="vditor-tip__close">X</div></div>`),this.element.querySelector(".vditor-tip__close").addEventListener("click",function(){B.hide()})):(this.element.innerHTML='<div class="vditor-tip__content">'.concat(T,"</div>"),setTimeout(function(){B.hide()},D)),this.element.removeAttribute("style"),setTimeout(function(){var $=B.element.getBoundingClientRect();$.top<46&&(B.element.style.position="fixed",B.element.style.top="46px")},150)},E.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},E})(),io=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,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),Na=(function(E){Vo(T,E);function T(D,B){var $=E.call(this,D,B)||this;return D.options.preview.mode==="both"&&$.element.children[0].classList.add("vditor-menu--current"),$.element.children[0].addEventListener((0,f.Le)(),function(q){var le=$.element.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(q.preventDefault(),D.currentMode==="sv"&&(D.options.preview.mode==="both"?io("editor",D):io("both",D)))}),$}return T})(Qe),ml=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"}return E})(),Xc=o(580),h2=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),xm=(function(E){h2(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=$.element.children[0],le=document.createElement("div");le.className="vditor-hint".concat(B.level===2?"":" vditor-panel--arrow");var Oe="";return s.g.CODE_THEME.forEach(function(Ye){Oe+="<button>".concat(Ye,"</button>")}),le.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Oe,"</div>"),le.addEventListener((0,f.Le)(),function(Ye){Ye.target.tagName==="BUTTON"&&(b(D,["subToolbar"]),D.options.preview.hljs.style=Ye.target.textContent,(0,Xc.Y)(Ye.target.textContent,D.options.cdn),Ye.preventDefault(),Ye.stopPropagation())}),$.element.appendChild(le),w(D,le,q,B.level),$}return T})(Qe),xp=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),G5=(function(E){xp(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=$.element.children[0],le=document.createElement("div");le.className="vditor-hint".concat(B.level===2?"":" vditor-panel--arrow");var Oe="";return Object.keys(D.options.preview.theme.list).forEach(function(Ye){Oe+='<button data-type="'.concat(Ye,'">').concat(D.options.preview.theme.list[Ye],"</button>")}),le.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Oe,"</div>"),le.addEventListener((0,f.Le)(),function(Ye){Ye.target.tagName==="BUTTON"&&(b(D,["subToolbar"]),D.options.preview.theme.current=Ye.target.getAttribute("data-type"),(0,De.Z)(D.options.preview.theme.current,D.options.preview.theme.path),Ye.preventDefault(),Ye.stopPropagation())}),$.element.appendChild(le),w(D,le,q,B.level),$}return T})(Qe),K5=(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,D){var B=D.endsWith(`
  2066. `)?D.length-1:D.length;if(T.options.counter.type==="text"&&T[T.currentMode]){var $=T[T.currentMode].element.cloneNode(!0);$.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(q){q.remove()}),B=$.textContent.length}typeof T.options.counter.max=="number"?(B>T.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML="".concat(B,"/").concat(T.options.counter.max)):this.element.innerHTML="".concat(B),this.element.setAttribute("aria-label",T.options.counter.type),T.options.counter.after&&T.options.counter.after(B,{enable:T.options.counter.enable,max:T.options.counter.max,type:T.options.counter.type})},E})(),f9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),p9=(function(E){f9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].innerHTML=B.icon,$.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),!q.currentTarget.classList.contains(s.g.CLASS_MENU_DISABLED)&&B.click(q,D)}),$}return T})(Qe),Y5=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),Q5=(function(E){Y5(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.firstElementChild.addEventListener((0,f.Le)(),function(q){var le=$.element.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(q.preventDefault(),le.classList.contains("vditor-menu--current")?(le.classList.remove("vditor-menu--current"),D.devtools.element.style.display="none",ce(D)):(le.classList.add("vditor-menu--current"),D.devtools.element.style.display="block",ce(D),D.devtools.renderEchart(D)))}),$}return T})(Qe),h9=(function(){function E(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"}return E})(),g9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),g2=(function(E){g9(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=document.createElement("div");q.className="vditor-panel vditor-panel--arrow";var le="";return Object.keys(D.options.hint.emoji).forEach(function(Oe){var Ye=D.options.hint.emoji[Oe];Ye.indexOf(".")>-1?le+='<button data-value=":'.concat(Oe,': " data-key=":').concat(Oe,`:"><img
  2067. data-value=":`).concat(Oe,': " data-key=":').concat(Oe,':" class="vditor-emojis__icon" src="').concat(Ye,'"/></button>'):le+='<button data-value="'.concat(Ye,` "
  2068. data-key="`).concat(Oe,'"><span class="vditor-emojis__icon">').concat(Ye,"</span></button>")}),q.innerHTML='<div class="vditor-emojis" style="max-height: '.concat(D.options.height==="auto"?"auto":D.options.height-80,'px">').concat(le,`</div><div class="vditor-emojis__tail">
  2069. <span class="vditor-emojis__tip"></span><span>`).concat(D.options.hint.emojiTail||"",`</span>
  2070. </div>`),$.element.appendChild(q),w(D,q,$.element.firstElementChild,B.level),$.bindEvent(D),$}return T.prototype.bindEvent=function(D){var B=this;this.element.lastElementChild.addEventListener((0,f.Le)(),function($){var q=(0,S.S)($.target,"BUTTON");if(q){$.preventDefault();var le=q.getAttribute("data-value"),Oe=(0,U.zh)(D),Ye=le;if(D.currentMode==="wysiwyg"?Ye=D.lute.SpinVditorDOM(le):D.currentMode==="ir"&&(Ye=D.lute.SpinVditorIRDOM(le)),le.indexOf(":")>-1&&D.currentMode!=="sv"){var Ue=document.createElement("div");Ue.innerHTML=Ye,Ye=Ue.firstElementChild.firstElementChild.outerHTML+" ",(0,U.oC)(Ye,D)}else Oe.extractContents(),Oe.insertNode(document.createTextNode(le)),(0,A.F9)(Oe.startContainer)||dt(D,Oe);Oe.collapse(!1),(0,U.Hc)(Oe),B.element.lastElementChild.style.display="none",_r(D)}}),this.element.lastElementChild.addEventListener("mouseover",function($){var q=(0,S.S)($.target,"BUTTON");q&&(B.element.querySelector(".vditor-emojis__tip").innerHTML=q.getAttribute("data-key"))})},T})(Qe),Z5=function(E,T,D){var B=document.createElement("a");"download"in B?(B.download=D,B.style.display="none",B.href=URL.createObjectURL(new Blob([T])),document.body.appendChild(B),B.click(),B.remove()):E.tip.show(window.VditorI18n.downloadTip,0)},v9=function(E){var T=u(E);Z5(E,T,T.substr(0,10)+".md")},m9=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"/>
  2071. <script src="`).concat(E.options.cdn,`/dist/method.min.js"><\/script>
  2072. <div id="preview" style="width: 800px"></div>
  2073. <script>
  2074. window.addEventListener("message", (e) => {
  2075. if(!e.data) {
  2076. return;
  2077. }
  2078. Vditor.preview(document.getElementById('preview'), e.data, {
  2079. cdn: "`).concat(E.options.cdn,`",
  2080. markdown: {
  2081. theme: `).concat(JSON.stringify(E.options.preview.theme),`
  2082. },
  2083. hljs: {
  2084. style: "`).concat(E.options.preview.hljs.style,`"
  2085. }
  2086. });
  2087. setTimeout(() => {
  2088. window.print();
  2089. }, 3600);
  2090. }, false);
  2091. <\/script>`)),T.contentDocument.close(),setTimeout(function(){T.contentWindow.postMessage(u(E),"*")},200)},X5=function(E){var T=On(E),D='<html><head><link rel="stylesheet" type="text/css" href="'.concat(E.options.cdn,`/dist/index.css"/>
  2092. <script src="`).concat(E.options.cdn,"/dist/js/i18n/").concat(E.options.lang,`.js"><\/script>
  2093. <script src="`).concat(E.options.cdn,`/dist/method.min.js"><\/script></head>
  2094. <body><div class="vditor-reset" id="preview">`).concat(T,`</div>
  2095. <script>
  2096. const previewElement = document.getElementById('preview')
  2097. Vditor.setContentTheme('`).concat(E.options.preview.theme.current,"', '").concat(E.options.preview.theme.path,`');
  2098. Vditor.codeRender(previewElement);
  2099. Vditor.highlightRender(`).concat(JSON.stringify(E.options.preview.hljs),", previewElement, '").concat(E.options.cdn,`');
  2100. Vditor.mathRender(previewElement, {
  2101. cdn: '`).concat(E.options.cdn,`',
  2102. math: `).concat(JSON.stringify(E.options.preview.math),`,
  2103. });
  2104. Vditor.mermaidRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
  2105. Vditor.SMILESRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
  2106. Vditor.markmapRender(previewElement, '`).concat(E.options.cdn,`');
  2107. Vditor.flowchartRender(previewElement, '`).concat(E.options.cdn,`');
  2108. Vditor.graphvizRender(previewElement, '`).concat(E.options.cdn,`');
  2109. Vditor.chartRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
  2110. Vditor.mindmapRender(previewElement, '`).concat(E.options.cdn,"', '").concat(E.options.theme,`');
  2111. Vditor.abcRender(previewElement, '`).concat(E.options.cdn,`');
  2112. `).concat(E.options.preview.render.media.enable?"Vditor.mediaRender(previewElement);":"",`
  2113. Vditor.speechRender(previewElement);
  2114. <\/script>
  2115. <script src="`).concat(E.options.cdn,"/dist/js/icons/").concat(E.options.icon,'.js"><\/script></body></html>');Z5(E,D,T.substr(0,10)+".html")},Sm=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),y9=(function(E){Sm(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=$.element.children[0],le=document.createElement("div");return le.className="vditor-hint".concat(B.level===2?"":" vditor-panel--arrow"),le.innerHTML=`<button data-type="markdown">Markdown</button>
  2116. <button data-type="pdf">PDF</button>
  2117. <button data-type="html">HTML</button>`,le.addEventListener((0,f.Le)(),function(Oe){var Ye=Oe.target;if(Ye.tagName==="BUTTON"){switch(Ye.getAttribute("data-type")){case"markdown":v9(D);break;case"pdf":m9(D);break;case"html":X5(D);break}b(D,["subToolbar"]),Oe.preventDefault(),Oe.stopPropagation()}}),$.element.appendChild(le),w(D,le,q,B.level),$}return T})(Qe),b9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),w9=(function(E){b9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $._bindEvent(D,B),$}return T.prototype._bindEvent=function(D,B){this.element.children[0].addEventListener((0,f.Le)(),function($){$.preventDefault(),D.element.className.includes("vditor--fullscreen")?(B.level||(this.innerHTML=B.icon),D.element.style.zIndex="",document.body.style.overflow="",D.element.classList.remove("vditor--fullscreen"),Object.keys(D.toolbar.elements).forEach(function(q){var le=D.toolbar.elements[q].firstChild;le&&(le.className=le.className.replace("__s","__n"),D.options.toolbar.forEach(function(Oe){typeof Oe!="string"&&Oe.tipPosition&&Oe.name===le.dataset.type&&(le.className="vditor-tooltipped vditor-tooltipped__".concat(Oe.tipPosition))}))}),D.counter&&(D.counter.element.className=D.counter.element.className.replace("__s","__n"))):(B.level||(this.innerHTML='<svg><use xlink:href="#vditor-icon-contract"></use></svg>'),D.element.style.zIndex=D.options.fullscreen.index.toString(),document.body.style.overflow="hidden",D.element.classList.add("vditor--fullscreen"),Object.keys(D.toolbar.elements).forEach(function(q){var le=D.toolbar.elements[q].firstChild;le&&(le.className=le.className.replace("__n","__s"))}),D.counter&&(D.counter.element.className=D.counter.element.className.replace("__n","__s"))),D.devtools&&D.devtools.renderEchart(D),B.click&&B.click($,D),ce(D),Re(D)})},T})(Qe),v2=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),m2=(function(E){v2(T,E);function T(D,B){var $=E.call(this,D,B)||this,q=document.createElement("div");return q.className="vditor-hint vditor-panel--arrow",q.innerHTML='<button data-tag="h1" data-value="# ">'.concat(window.VditorI18n.heading1," ").concat((0,f.ns)("&lt;⌥⌘1>"),`</button>
  2118. <button data-tag="h2" data-value="## ">`).concat(window.VditorI18n.heading2," &lt;").concat((0,f.ns)("⌥⌘2"),`></button>
  2119. <button data-tag="h3" data-value="### ">`).concat(window.VditorI18n.heading3," &lt;").concat((0,f.ns)("⌥⌘3"),`></button>
  2120. <button data-tag="h4" data-value="#### ">`).concat(window.VditorI18n.heading4," &lt;").concat((0,f.ns)("⌥⌘4"),`></button>
  2121. <button data-tag="h5" data-value="##### ">`).concat(window.VditorI18n.heading5," &lt;").concat((0,f.ns)("⌥⌘5"),`></button>
  2122. <button data-tag="h6" data-value="###### ">`).concat(window.VditorI18n.heading6," &lt;").concat((0,f.ns)("⌥⌘6"),"></button>"),$.element.appendChild(q),$._bindEvent(D,q),$}return T.prototype._bindEvent=function(D,B){var $=this.element.children[0];$.addEventListener((0,f.Le)(),function(le){le.preventDefault(),clearTimeout(D.wysiwyg.afterRenderTimeoutId),clearTimeout(D.ir.processTimeoutId),clearTimeout(D.sv.processTimeoutId),!$.classList.contains(s.g.CLASS_MENU_DISABLED)&&($.blur(),$.classList.contains("vditor-menu--current")?(D.currentMode==="wysiwyg"?(ut(D),Ne(D)):D.currentMode==="ir"&&ae(D,""),$.classList.remove("vditor-menu--current")):(b(D,["subToolbar"]),B.style.display="block"))});for(var q=0;q<6;q++)B.children.item(q).addEventListener((0,f.Le)(),function(le){le.preventDefault(),D.currentMode==="wysiwyg"?(_t(D,le.target.getAttribute("data-tag")),Ne(D),$.classList.add("vditor-menu--current")):D.currentMode==="ir"?(ae(D,le.target.getAttribute("data-value")),$.classList.add("vditor-menu--current")):bn(D,le.target.getAttribute("data-value")),B.style.display="none"})},T})(Qe),A9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),C9=(function(E){A9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),D.tip.show(`<div style="margin-bottom:14px;font-size: 14px;line-height: 22px;min-width:300px;max-width: 360px;display: flex;">
  2123. <div style="margin-top: 14px;flex: 1">
  2124. <div>Markdown 使用指南</div>
  2125. <ul style="list-style: none">
  2126. <li><a href="https://ld246.com/article/1583308420519" target="_blank">语法速查手册</a></li>
  2127. <li><a href="https://ld246.com/article/1583129520165" target="_blank">基础语法</a></li>
  2128. <li><a href="https://ld246.com/article/1583305480675" target="_blank">扩展语法</a></li>
  2129. <li><a href="https://ld246.com/article/1582778815353" target="_blank">键盘快捷键</a></li>
  2130. </ul>
  2131. </div>
  2132. <div style="margin-top: 14px;flex: 1">
  2133. <div>Vditor 支持</div>
  2134. <ul style="list-style: none">
  2135. <li><a href="https://github.com/Vanessa219/vditor/issues" target="_blank">Issues</a></li>
  2136. <li><a href="https://ld246.com/tag/vditor" target="_blank">官方讨论区</a></li>
  2137. <li><a href="https://ld246.com/article/1549638745630" target="_blank">开发手册</a></li>
  2138. <li><a href="https://ld246.com/guide/markdown" target="_blank">演示地址</a></li>
  2139. </ul>
  2140. </div></div>`,0)}),$}return T})(Qe),x9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),J5=(function(E){x9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){if(q.preventDefault(),!($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||D.currentMode==="sv")){var le=(0,U.zh)(D),Oe=(0,A.lG)(le.startContainer,"LI");Oe&&Ai(D,Oe,le)}}),$}return T})(Qe),S9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),ex=(function(E){S9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),D.tip.show(`<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">
  2141. <p style="text-align: center;margin: 14px 0">
  2142. <em>下一代的 Markdown 编辑器,为未来而构建</em>
  2143. </p>
  2144. <div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">
  2145. <img src="https://unpkg.com/vditor/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>
  2146. <div>&nbsp;&nbsp;</div>
  2147. <div style="flex: 1;min-width: 250px">
  2148. Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。
  2149. 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。
  2150. </div>
  2151. </div>
  2152. <div style="display: flex;flex-wrap: wrap;">
  2153. <ul style="list-style: none;flex: 1;min-width:148px">
  2154. <li>
  2155. 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
  2156. </li>
  2157. <li>
  2158. 开源协议:MIT
  2159. </li>
  2160. </ul>
  2161. <ul style="list-style: none;margin-right: 18px">
  2162. <li>
  2163. 组件版本:Vditor v`.concat(s.H," / Lute v").concat(Lute.Version,`
  2164. </li>
  2165. <li>
  2166. 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>
  2167. </li>
  2168. </ul>
  2169. </div>
  2170. </div>`),0)}),$}return T})(Qe),E9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),k9=(function(E){E9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),!($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||D.currentMode==="sv")&&Xo(D,"afterend")}),$}return T})(Qe),tx=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),T9=(function(E){tx(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),!($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||D.currentMode==="sv")&&Xo(D,"beforebegin")}),$}return T})(Qe),Sp=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),_9=(function(E){Sp(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $.element.children[0].addEventListener((0,f.Le)(),function(q){if(q.preventDefault(),!($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||D.currentMode==="sv")){var le=(0,U.zh)(D),Oe=(0,A.lG)(le.startContainer,"LI");Oe&&Ci(D,Oe,le,Oe.parentElement)}}),$}return T})(Qe),D9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),I9=(function(E){D9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return D.options.outline&&$.element.firstElementChild.classList.add("vditor-menu--current"),$.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault();var le=D.toolbar.elements.outline.firstElementChild;le.classList.contains(s.g.CLASS_MENU_DISABLED)||(D.options.outline.enable=!$.element.firstElementChild.classList.contains("vditor-menu--current"),D.outline.toggle(D,D.options.outline.enable))}),$}return T})(Qe),O9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),M9=(function(E){O9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $._bindEvent(D),$}return T.prototype._bindEvent=function(D){var B=this;this.element.children[0].addEventListener((0,f.Le)(),function($){$.preventDefault();var q=B.element.firstElementChild;if(!q.classList.contains(s.g.CLASS_MENU_DISABLED)){var le=s.g.EDIT_TOOLBARS.concat(["both","edit-mode","devtools"]);q.classList.contains("vditor-menu--current")?(q.classList.remove("vditor-menu--current"),D.currentMode==="sv"?(D.sv.element.style.display="block",D.options.preview.mode==="both"?D.preview.element.style.display="block":D.preview.element.style.display="none"):(D[D.currentMode].element.parentElement.style.display="block",D.preview.element.style.display="none"),h(D.toolbar.elements,le),D.outline.render(D)):(g(D.toolbar.elements,le),D.preview.element.style.display="block",D.currentMode==="sv"?D.sv.element.style.display="none":D[D.currentMode].element.parentElement.style.display="none",D.preview.render(D),q.classList.add("vditor-menu--current"),b(D,["subToolbar","hint","popover"]),setTimeout(function(){D.outline.render(D)},D.options.preview.delay+10)),ce(D)}})},T})(Qe),P9=(function(){function E(T){this.SAMPLE_RATE=5e3,this.isRecording=!1,this.readyFlag=!1,this.leftChannel=[],this.rightChannel=[],this.recordingLength=0;var D;if(typeof AudioContext<"u")D=new AudioContext;else if(webkitAudioContext)D=new webkitAudioContext;else return;this.DEFAULT_SAMPLE_RATE=D.sampleRate;var B=D.createGain(),$=D.createMediaStreamSource(T);$.connect(B),this.recorder=D.createScriptProcessor(2048,2,1),this.recorder.onaudioprocess=null,B.connect(this.recorder),this.recorder.connect(D.destination),this.readyFlag=!0}return E.prototype.cloneChannelData=function(T,D){this.leftChannel.push(new Float32Array(T)),this.rightChannel.push(new Float32Array(D)),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),D=this.mergeBuffers(this.rightChannel),B=new Float32Array(T.length),$=0;$<T.length;++$)B[$]=.5*(T[$]+D[$]);this.DEFAULT_SAMPLE_RATE>this.SAMPLE_RATE&&(B=this.downSampleBuffer(B,this.SAMPLE_RATE));var q=44+B.length*2,le=new ArrayBuffer(q),Oe=new DataView(le);this.writeUTFBytes(Oe,0,"RIFF"),Oe.setUint32(4,q,!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 Ye=B.length*2;this.writeUTFBytes(Oe,36,"data"),Oe.setUint32(40,Ye,!0);for(var Ue=B.length,ft=44,wt=1,xn=0;xn<Ue;xn++)Oe.setInt16(ft,B[xn]*(32767*wt),!0),ft+=2;return new Blob([Oe],{type:"audio/wav"})},E.prototype.downSampleBuffer=function(T,D){if(D===this.DEFAULT_SAMPLE_RATE||D>this.DEFAULT_SAMPLE_RATE)return T;for(var B=this.DEFAULT_SAMPLE_RATE/D,$=Math.round(T.length/B),q=new Float32Array($),le=0,Oe=0;le<q.length;){for(var Ye=Math.round((le+1)*B),Ue=0,ft=0,wt=Oe;wt<Ye&&wt<T.length;wt++)Ue+=T[wt],ft++;q[le]=Ue/ft,le++,Oe=Ye}return q},E.prototype.mergeBuffers=function(T){for(var D=new Float32Array(this.recordingLength),B=0,$=T.length,q=0;q<$;++q){var le=T[q];D.set(le,B),B+=le.length}return D},E.prototype.writeUTFBytes=function(T,D,B){for(var $=B.length,q=0;q<$;q++)T.setUint8(D+q,B.charCodeAt(q))},E})(),nx=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),Em=(function(E){nx(T,E);function T(D,B){var $=E.call(this,D,B)||this;return $._bindEvent(D),$}return T.prototype._bindEvent=function(D){var B=this,$;this.element.children[0].addEventListener((0,f.Le)(),function(q){if(q.preventDefault(),!B.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){var le=D[D.currentMode].element;if(!$){navigator.mediaDevices.getUserMedia({audio:!0}).then(function(Ye){$=new P9(Ye),$.recorder.onaudioprocess=function(Ue){if($.isRecording){var ft=Ue.inputBuffer.getChannelData(0),wt=Ue.inputBuffer.getChannelData(1);$.cloneChannelData(ft,wt)}},$.startRecordingNewWavFile(),D.tip.show(window.VditorI18n.recording),le.setAttribute("contenteditable","false"),B.element.children[0].classList.add("vditor-menu--current")}).catch(function(){D.tip.show(window.VditorI18n["record-tip"])});return}if($.isRecording){$.stopRecording(),D.tip.hide();var Oe=new File([$.buildWavFileBlob()],"record".concat(new Date().getTime(),".wav"),{type:"video/webm"});Vr(D,[Oe]),B.element.children[0].classList.remove("vditor-menu--current")}else D.tip.show(window.VditorI18n.recording),le.setAttribute("contenteditable","false"),$.startRecordingNewWavFile(),B.element.children[0].classList.add("vditor-menu--current")}})},T})(Qe),rx=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),N9=(function(E){rx(T,E);function T(D,B){var $=E.call(this,D,B)||this;return g({redo:$.element},["redo"]),$.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),!$.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&D.undo.redo(D)}),$}return T})(Qe),R9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),B9=(function(E){R9(T,E);function T(D,B){var $=E.call(this,D,B)||this;return g({undo:$.element},["undo"]),$.element.children[0].addEventListener((0,f.Le)(),function(q){q.preventDefault(),!$.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&D.undo.undo(D)}),$}return T})(Qe),L9=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),F9=(function(E){L9(T,E);function T(D,B){var $=E.call(this,D,B)||this,q='<input type="file"';return D.options.upload.multiple&&(q+=' multiple="multiple"'),D.options.upload.accept&&(q+=' accept="'.concat(D.options.upload.accept,'"')),$.element.children[0].innerHTML="".concat(B.icon||'<svg><use xlink:href="#vditor-icon-upload"></use></svg>').concat(q,">"),$._bindEvent(D),$}return T.prototype._bindEvent=function(D){var B=this;this.element.children[0].addEventListener((0,f.Le)(),function($){if(B.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){$.stopPropagation(),$.preventDefault();return}}),this.element.querySelector("input").addEventListener("change",function($){if(B.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){$.stopPropagation(),$.preventDefault();return}$.target.files.length!==0&&Vr(D,$.target.files,$.target)})},T})(Qe),U9=(function(){function E(T){var D=this,B=T.options;this.elements={},this.element=document.createElement("div"),this.element.className="vditor-toolbar",B.toolbar.forEach(function($,q){var le=D.genItem(T,$,q);if(D.element.appendChild(le),$.toolbar){var Oe=document.createElement("div");Oe.className="vditor-hint vditor-panel--arrow",Oe.addEventListener((0,f.Le)(),function(Ye){Oe.style.display="none"}),$.toolbar.forEach(function(Ye,Ue){Ye.level=2,Oe.appendChild(D.genItem(T,Ye,q+Ue))}),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 K5(T),this.element.appendChild(T.counter.element))}return E.prototype.updateConfig=function(T,D){T.options.toolbarConfig=Object.assign({hide:!1,pin:!1},D),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,D,B){var $;switch(D.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":$=new Qe(T,D);break;case"emoji":$=new g2(T,D);break;case"headings":$=new m2(T,D);break;case"|":$=new h9;break;case"br":$=new ml;break;case"undo":$=new B9(T,D);break;case"redo":$=new N9(T,D);break;case"help":$=new C9(T,D);break;case"both":$=new Na(T,D);break;case"preview":$=new M9(T,D);break;case"fullscreen":$=new w9(T,D);break;case"upload":$=new F9(T,D);break;case"record":$=new Em(T,D);break;case"info":$=new ex(T,D);break;case"edit-mode":$=new Gt(T,D);break;case"devtools":$=new Q5(T,D);break;case"outdent":$=new _9(T,D);break;case"indent":$=new J5(T,D);break;case"outline":$=new I9(T,D);break;case"insert-after":$=new k9(T,D);break;case"insert-before":$=new T9(T,D);break;case"code-theme":$=new xm(T,D);break;case"content-theme":$=new G5(T,D);break;case"export":$=new y9(T,D);break;default:$=new p9(T,D);break}if($){var q=D.name;return(q==="br"||q==="|")&&(q=q+B),this.elements[q]=$.element,$.element}},E})(),z9=o(173),$9=(function(){function E(){this.stackSize=50,this.resetStack(),this.dmp=new z9}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 D=this[T.currentMode].undoStack.pop();D&&(this[T.currentMode].redoStack.push(D),this.renderDiff(D,T),this[T.currentMode].hasUndo=!0,b(T,["hint"]))}},E.prototype.redo=function(T){if(T[T.currentMode].element.getAttribute("contenteditable")!=="false"){var D=this[T.currentMode].redoStack.pop();D&&(this[T.currentMode].undoStack.push(D),this.renderDiff(D,T,!0))}},E.prototype.recordFirstPosition=function(T,D){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)()&&D.key==="Backspace")&&!(0,f.G6)()){var B=this.addCaret(T);B.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]=B,this[T.currentMode].lastText=B)}},E.prototype.addToUndoStack=function(T){var D=this.addCaret(T,!0),B=this.dmp.diff_main(D,this[T.currentMode].lastText,!0),$=this.dmp.patch_make(D,this[T.currentMode].lastText,B);$.length===0&&this[T.currentMode].undoStack.length>0||(this[T.currentMode].lastText=D,this[T.currentMode].undoStack.push($),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,D,B){B===void 0&&(B=!1);var $;if(B){var q=this.dmp.patch_deepCopy(T).reverse();q.forEach(function(Oe){Oe.diffs.forEach(function(Ye){Ye[0]=-Ye[0]})}),$=this.dmp.patch_apply(q,this[D.currentMode].lastText)[0]}else $=this.dmp.patch_apply(T,this[D.currentMode].lastText)[0];if(this[D.currentMode].lastText=$,D[D.currentMode].element.innerHTML=$,D.currentMode!=="sv"&&(D[D.currentMode].element.querySelectorAll(".vditor-".concat(D.currentMode,"__preview")).forEach(function(Oe){Oe.parentElement.querySelector(".language-echarts")&&(D.currentMode==="ir"?Oe.parentElement.outerHTML=D.lute.SpinVditorIRDOM(Oe.parentElement.outerHTML):Oe.parentElement.outerHTML=D.lute.SpinVditorDOM(Oe.parentElement.outerHTML))}),D[D.currentMode].element.querySelectorAll(".vditor-".concat(D.currentMode,"__preview[data-render='2']")).forEach(function(Oe){z(Oe,D)})),D[D.currentMode].element.querySelector("wbr"))(0,U.ib)(D[D.currentMode].element,D[D.currentMode].element.ownerDocument.createRange()),Mn(D);else{var le=getSelection().getRangeAt(0);le.setEndBefore(D[D.currentMode].element),le.collapse(!1)}W(D),_r(D,{enableAddUndoStack:!1,enableHint:!1,enableInput:!0}),He(D),D[D.currentMode].element.querySelectorAll(".vditor-".concat(D.currentMode,"__preview[data-render='2']")).forEach(function(Oe){z(Oe,D)}),this[D.currentMode].undoStack.length>1?h(D.toolbar.elements,["undo"]):g(D.toolbar.elements,["undo"]),this[D.currentMode].redoStack.length!==0?h(D.toolbar.elements,["redo"]):g(D.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,D){D===void 0&&(D=!1);var B;if(getSelection().rangeCount!==0&&!T[T.currentMode].element.querySelector("wbr")){var $=getSelection().getRangeAt(0);if(T[T.currentMode].element.contains($.startContainer)){B=$.cloneRange();var q=document.createElement("span");q.className="vditor-wbr",$.insertNode(q)}}var le=T[T.currentMode].element.cloneNode(!0);le.querySelectorAll(".vditor-".concat(T.currentMode,"__preview[data-render='1']")).forEach(function(Ye){Ye.firstElementChild&&(Ye.firstElementChild.classList.contains("language-echarts")||Ye.firstElementChild.classList.contains("language-plantuml")||Ye.firstElementChild.classList.contains("language-mindmap")?(Ye.firstElementChild.removeAttribute("_echarts_instance_"),Ye.firstElementChild.removeAttribute("data-processed"),Ye.firstElementChild.innerHTML=Ye.previousElementSibling.firstElementChild.innerHTML,Ye.setAttribute("data-render","2")):Ye.firstElementChild.classList.contains("language-math")&&(Ye.setAttribute("data-render","2"),Ye.firstElementChild.textContent=Ye.firstElementChild.getAttribute("data-math"),Ye.firstElementChild.removeAttribute("data-math")))});var Oe=le.innerHTML;return T[T.currentMode].element.querySelectorAll(".vditor-wbr").forEach(function(Ye){Ye.remove()}),D&&B&&(0,U.Hc)(B),Oe.replace('<span class="vditor-wbr"></span>',"<wbr>")},E})(),j9=o(673),ox=(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(D){return D.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,D,B,$,q,le,Oe,Ye,Ue;this.options&&(this.options.toolbar?this.options.toolbar=this.mergeToolbar(this.options.toolbar):this.options.toolbar=this.mergeToolbar(this.defaultOptions.toolbar),!((D=(T=this.options.preview)===null||T===void 0?void 0:T.theme)===null||D===void 0)&&D.list&&(this.defaultOptions.preview.theme.list=this.options.preview.theme.list),!((q=($=(B=this.options.preview)===null||B===void 0?void 0:B.render)===null||$===void 0?void 0:$.media)===null||q===void 0)&&q.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&&(!((Ye=(Oe=this.options.preview)===null||Oe===void 0?void 0:Oe.theme)===null||Ye===void 0)&&Ye.path||(this.defaultOptions.preview.theme.path="".concat(this.options.cdn,"/dist/css/content-theme")),!((Ue=this.options.hint)===null||Ue===void 0)&&Ue.emojiPath||(this.defaultOptions.hint.emojiPath="".concat(this.options.cdn,"/dist/images/emoji"))));var ft=(0,j9.T)(this.defaultOptions,this.options);if(ft.cache.enable&&!ft.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");return ft},E.prototype.mergeToolbar=function(T){var D=this,B=[{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 |
  2171. | --- | --- | --- |
  2172. | | | |
  2173. | | | |`,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"}],$=[];return T.forEach(function(q){var le=q;B.forEach(function(Oe){typeof q=="string"&&Oe.name===q&&(le=Oe),typeof q=="object"&&Oe.name===q.name&&(le=Object.assign({},Oe,q))}),q.toolbar&&(le.toolbar=D.mergeToolbar(q.toolbar)),$.push(le)}),$},E})(),H9=(function(){function E(T){var D=this;this.composingLock=!1,this.commentIds=[];var B=document.createElement("div");B.className="vditor-wysiwyg",B.innerHTML='<pre class="vditor-reset" placeholder="'.concat(T.options.placeholder,`"
  2174. contenteditable="true" spellcheck="false"></pre>
  2175. <div class="vditor-panel vditor-panel--none"></div>
  2176. <div class="vditor-panel vditor-panel--none">
  2177. <button type="button" aria-label="`).concat(window.VditorI18n.comment,`" class="vditor-icon vditor-tooltipped vditor-tooltipped__n">
  2178. <svg><use xlink:href="#vditor-icon-comment"></use></svg>
  2179. </button>
  2180. </div>`),this.element=B.firstElementChild,this.popover=B.firstElementChild.nextElementSibling,this.selectPopover=B.lastElementChild,this.bindEvent(T),Nn(T,this.element),xt(T,this.element),sn(T,this.element),tr(T,this.element),cn(T,this.element),vt(T,this.element),Bt(T,this.element,this.copy),mn(T,this.element,this.copy),T.options.comment.enable&&(this.selectPopover.querySelector("button").onclick=function(){var $=Lute.NewNodeID(),q=getSelection().getRangeAt(0),le=q.cloneRange(),Oe=q.extractContents(),Ye,Ue,ft=!1,wt=!1;Oe.childNodes.forEach(function(vn,ln){var Sn=!1;if(vn.nodeType===3?Sn=!0:vn.classList.contains("vditor-comment")?vn.classList.contains("vditor-comment")&&vn.setAttribute("data-cmtids",vn.getAttribute("data-cmtids")+" "+$):Sn=!0,Sn)if(vn.nodeType!==3&&vn.getAttribute("data-block")==="0"&&ln===0&&le.startOffset>0)vn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat($,'">').concat(vn.innerHTML,"</span>"),Ye=vn;else if(vn.nodeType!==3&&vn.getAttribute("data-block")==="0"&&ln===Oe.childNodes.length-1&&le.endOffset<le.endContainer.textContent.length)vn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat($,'">').concat(vn.innerHTML,"</span>"),Ue=vn;else if(vn.nodeType!==3&&vn.getAttribute("data-block")==="0")ln===0?ft=!0:ln===Oe.childNodes.length-1&&(wt=!0),vn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat($,'">').concat(vn.innerHTML,"</span>");else{var fn=document.createElement("span");fn.classList.add("vditor-comment"),fn.setAttribute("data-cmtids",$),vn.parentNode.insertBefore(fn,vn),fn.appendChild(vn)}});var xn=(0,A.F9)(le.startContainer);xn&&(Ye?(xn.insertAdjacentHTML("beforeend",Ye.innerHTML),Ye.remove()):xn.textContent.trim().replace(s.g.ZWSP,"")===""&&ft&&xn.remove());var wn=(0,A.F9)(le.endContainer);wn&&(Ue?(wn.insertAdjacentHTML("afterbegin",Ue.innerHTML),Ue.remove()):wn.textContent.trim().replace(s.g.ZWSP,"")===""&&wt&&wn.remove()),q.insertNode(Oe),T.options.comment.add($,q.toString(),D.getComments(T,!0)),Ne(T,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),D.hideComment()})}return E.prototype.getComments=function(T,D){var B=this;if(D===void 0&&(D=!1),T.currentMode==="wysiwyg"&&T.options.comment.enable){this.commentIds=[],this.element.querySelectorAll(".vditor-comment").forEach(function(q){B.commentIds=B.commentIds.concat(q.getAttribute("data-cmtids").split(" "))}),this.commentIds=Array.from(new Set(this.commentIds));var $=[];if(D)return this.commentIds.forEach(function(q){$.push({id:q,top:B.element.querySelector('.vditor-comment[data-cmtids="'.concat(q,'"]')).offsetTop})}),$}else return[]},E.prototype.triggerRemoveComment=function(T){var D=function(q,le){var Oe=new Set(le);return q.filter(function(Ye){return!Oe.has(Ye)})};if(T.currentMode==="wysiwyg"&&T.options.comment.enable&&T.wysiwyg.commentIds.length>0){var B=JSON.parse(JSON.stringify(this.commentIds));this.getComments(T);var $=D(B,this.commentIds);$.length>0&&T.options.comment.remove($)}},E.prototype.showComment=function(){var T=(0,U.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,D){var B=getSelection().getRangeAt(0);if(B.toString()!==""){T.stopPropagation(),T.preventDefault();var $=(0,A.lG)(B.startContainer,"CODE"),q=(0,A.lG)(B.endContainer,"CODE");if($&&q&&q.isSameNode($)){var le="";$.parentElement.tagName==="PRE"?le=B.toString():le="`"+B.toString()+"`",T.clipboardData.setData("text/plain",le),T.clipboardData.setData("text/html","");return}var Oe=(0,A.lG)(B.startContainer,"A"),Ye=(0,A.lG)(B.endContainer,"A");if(Oe&&Ye&&Ye.isSameNode(Oe)){var Ue=Oe.getAttribute("title")||"";Ue&&(Ue=' "'.concat(Ue,'"')),T.clipboardData.setData("text/plain","[".concat(B.toString(),"](").concat(Oe.getAttribute("href")).concat(Ue,")")),T.clipboardData.setData("text/html","");return}var ft=document.createElement("div");ft.appendChild(B.cloneContents()),T.clipboardData.setData("text/plain",D.lute.VditorDOM2Md(ft.innerHTML).trim()),T.clipboardData.setData("text/html","")}},E.prototype.bindEvent=function(T){var D=this;this.unbindListener(),window.addEventListener("scroll",this.scrollListener=function(){if(b(T,["hint"]),!(D.popover.style.display!=="block"||D.selectPopover.style.display!=="block")){var B=parseInt(D.popover.getAttribute("data-top"),10);if(T.options.height!=="auto"){if(T.options.toolbarConfig.pin&&T.toolbar.element.getBoundingClientRect().top===0){var $=Math.max(window.scrollY-T.element.offsetTop-8,Math.min(B-T.wysiwyg.element.scrollTop,D.element.clientHeight-21))+"px";D.popover.style.display==="block"&&(D.popover.style.top=$),D.selectPopover.style.display==="block"&&(D.selectPopover.style.top=$)}return}else if(!T.options.toolbarConfig.pin)return;var q=Math.max(B,window.scrollY-T.element.offsetTop-8)+"px";D.popover.style.display==="block"&&(D.popover.style.top=q),D.selectPopover.style.display==="block"&&(D.selectPopover.style.top=q)}}),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),D.popover.style.display==="block"){var B=parseInt(D.popover.getAttribute("data-top"),10)-T.wysiwyg.element.scrollTop,$=-8;T.options.toolbarConfig.pin&&T.toolbar.element.getBoundingClientRect().top===0&&($=window.scrollY-T.element.offsetTop+$);var q=Math.max($,Math.min(B,D.element.clientHeight-21))+"px";D.popover.style.top=q,D.selectPopover.style.top=q}}),this.element.addEventListener("paste",function(B){sr(T,B,{pasteCode:function($){var q=(0,U.zh)(T),le=document.createElement("template");le.innerHTML=$,q.insertNode(le.content.cloneNode(!0));var Oe=(0,A.a1)(q.startContainer,"data-block","0");Oe?Oe.outerHTML=T.lute.SpinVditorDOM(Oe.outerHTML):T.wysiwyg.element.innerHTML=T.lute.SpinVditorDOM(T.wysiwyg.element.innerHTML),(0,U.ib)(T.wysiwyg.element,q)}})}),this.element.addEventListener("compositionstart",function(){D.composingLock=!0}),this.element.addEventListener("compositionend",function(B){var $=(0,S.W)(getSelection().getRangeAt(0).startContainer);if($&&$.textContent===""){W(T);return}(0,f.vU)()||wo(T,getSelection().getRangeAt(0).cloneRange(),B),D.composingLock=!1}),this.element.addEventListener("input",function(B){if(!(B.inputType==="deleteByDrag"||B.inputType==="insertFromDrop")){if(D.preventInput){D.preventInput=!1,Ne(T);return}if(D.composingLock||B.data==="‘"||B.data==="“"||B.data==="《"){Ne(T);return}var $=getSelection().getRangeAt(0),q=(0,A.F9)($.startContainer);if(q||(dt(T,$),q=(0,A.F9)($.startContainer)),!!q){for(var le=(0,U.im)(q,T.wysiwyg.element,$).start,Oe=!0,Ye=le-1;Ye>q.textContent.substr(0,le).lastIndexOf(`
  2181. `);Ye--)if(q.textContent.charAt(Ye)!==" "&&q.textContent.charAt(Ye)!==" "){Oe=!1;break}le===0&&(Oe=!1);for(var Ue=!0,Ye=le-1;Ye<q.textContent.length;Ye++)if(q.textContent.charAt(Ye)!==" "&&q.textContent.charAt(Ye)!==`
  2182. `){Ue=!1;break}Ue&&/^#{1,6} $/.test(q.textContent)&&(Ue=!1);var ft=(0,S.W)(getSelection().getRangeAt(0).startContainer);if(ft&&ft.textContent===""&&(W(T),ft.remove()),Oe&&q.getAttribute("data-type")!=="code-block"||Ue||oa(q.innerHTML)||mi(q.innerHTML)&&q.previousElementSibling){typeof T.options.input=="function"&&T.options.input(u(T));return}B.inputType==="insertParagraph"&&D.element.innerHTML==="<p><br></p><p><br></p>"&&q.previousElementSibling.remove(),wo(T,$,B)}}}),this.element.addEventListener("click",function(B){if(B.target.tagName==="INPUT"){var $=B.target;$.checked?$.setAttribute("checked","checked"):$.removeAttribute("checked"),D.preventInput=!0,getSelection().rangeCount>0&&(0,U.Hc)(getSelection().getRangeAt(0)),Ne(T);return}if(B.target.tagName==="IMG"&&!B.target.parentElement.classList.contains("vditor-wysiwyg__preview")){B.target.getAttribute("data-type")==="link-ref"?Tn(T,B.target):ot(B,T);return}var q=(0,A.lG)(B.target,"A");if(q){T.options.link.click?T.options.link.click(q):T.options.link.isOpen&&window.open(q.getAttribute("href")),B.preventDefault();return}var le=(0,U.zh)(T);if(B.target.isEqualNode(D.element)&&D.element.lastElementChild&&le.collapsed){var Oe=D.element.lastElementChild.getBoundingClientRect();B.y>Oe.top+Oe.height&&(D.element.lastElementChild.tagName==="P"&&D.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?(le.selectNodeContents(D.element.lastElementChild),le.collapse(!1)):(D.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,U.ib)(D.element,le)))}ct(T);var Ye=(0,A.fb)(B.target,"vditor-wysiwyg__preview");Ye||(Ye=(0,A.fb)((0,U.zh)(T).startContainer,"vditor-wysiwyg__preview")),Ye&&rt(Ye,T),re(B,T)}),this.element.addEventListener("keyup",function(B){if(!(B.isComposing||(0,f.yl)(B))){B.key==="Enter"&&Mn(T),(B.key==="Backspace"||B.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===`
  2183. `)&&(T.wysiwyg.element.innerHTML="");var $=(0,U.zh)(T);if(B.key==="Backspace"&&(0,f.vU)()&&$.startContainer.textContent===`
  2184. `&&$.startOffset===1&&($.startContainer.textContent=""),dt(T,$),ct(T),!(B.key!=="ArrowDown"&&B.key!=="ArrowRight"&&B.key!=="Backspace"&&B.key!=="ArrowLeft"&&B.key!=="ArrowUp")){(B.key==="ArrowLeft"||B.key==="ArrowRight")&&T.hint.render(T);var q=(0,A.fb)($.startContainer,"vditor-wysiwyg__preview");if(!q&&$.startContainer.nodeType!==3&&$.startOffset>0){var le=$.startContainer;le.classList.contains("vditor-wysiwyg__block")&&(q=le.lastElementChild)}if(q){var Oe=q.previousElementSibling;if(Oe.style.display==="none"){B.key==="ArrowDown"||B.key==="ArrowRight"?rt(q,T):rt(q,T,!1);return}var Ye=q.previousElementSibling;if(Ye.tagName==="PRE"&&(Ye=Ye.firstElementChild),B.key==="ArrowDown"||B.key==="ArrowRight"){var le=q.parentElement,Ue=Wt(le);if(Ue&&Ue.nodeType!==3){var ft=Ue.querySelector(".vditor-wysiwyg__preview");if(ft){rt(ft,T);return}}if(Ue.nodeType===3){for(;Ue.textContent.length===0&&Ue.nextSibling;)Ue=Ue.nextSibling;$.setStart(Ue,1)}else $.setStart(Ue.firstChild,0)}else $.selectNodeContents(Ye),$.collapse(!1)}}}})},E})(),de=(function(){var E=function(T,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,$){B.__proto__=$}||function(B,$){for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(B[q]=$[q])},E(T,D)};return function(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");E(T,D);function B(){this.constructor=T}T.prototype=D===null?Object.create(D):(B.prototype=D.prototype,new B)}})(),se=(function(E){de(T,E);function T(D,B){var $=E.call(this)||this;if($.isDestroyed=!1,$.version=s.H,typeof D=="string"){if(B?B.cache?B.cache.id||(B.cache.id="vditor".concat(D)):B.cache={id:"vditor".concat(D)}:B={cache:{id:"vditor".concat(D)}},!document.getElementById(D))return $.showErrorTip("Failed to get element by id: ".concat(D)),$;D=document.getElementById(D)}var q=new ox(B),le=q.merge();if(le.i18n)window.VditorI18n=le.i18n,$.init(D,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",Ye=Oe+le.lang;document.querySelectorAll('head script[id^="'.concat(Oe,'"]')).forEach(function(Ue){Ue.id!==Ye&&document.head.removeChild(Ue)}),(0,d.G)("".concat(le.cdn,"/dist/js/i18n/").concat(le.lang,".js"),Ye).then(function(){$.init(D,le)}).catch(function(Ue){$.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 $}return T.prototype.showErrorTip=function(D){var B=new Oi;document.body.appendChild(B.element),B.show(D,0)},T.prototype.updateToolbarConfig=function(D){this.vditor.toolbar.updateConfig(this.vditor,D)},T.prototype.setTheme=function(D,B,$,q){this.vditor.options.theme=D,pe(this.vditor),B&&(this.vditor.options.preview.theme.current=B,(0,De.Z)(B,q||this.vditor.options.preview.theme.path)),$&&(this.vditor.options.preview.hljs.style=$,(0,Xc.Y)($,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 En(this.vditor.wysiwyg.element);if(this.vditor.currentMode==="sv")return En(this.vditor.sv.element);if(this.vditor.currentMode==="ir")return En(this.vditor.ir.element)},T.prototype.renderPreview=function(D){this.vditor.preview.render(this.vditor,D)},T.prototype.getCursorPosition=function(){return(0,U.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(D){return this.vditor.lute.HTML2Md(D)},T.prototype.exportJSON=function(D){return this.vditor.lute.RenderJSON(D)},T.prototype.getHTML=function(){return On(this.vditor)},T.prototype.tip=function(D,B){this.vditor.tip.show(D,B)},T.prototype.setPreviewMode=function(D){io(D,this.vditor)},T.prototype.deleteValue=function(){window.getSelection().isCollapsed||document.execCommand("delete",!1)},T.prototype.updateValue=function(D){document.execCommand("insertHTML",!1,D)},T.prototype.insertValue=function(D,B){B===void 0&&(B=!0);var $=(0,U.zh)(this.vditor);$.collapse(!0);var q=document.createElement("template");q.innerHTML=D,$.insertNode(q.content.cloneNode(!0)),$.collapse(!1),this.vditor.currentMode==="sv"?(this.vditor.sv.preventInput=!0,B&&Q(this.vditor)):this.vditor.currentMode==="wysiwyg"?B&&wo(this.vditor,getSelection().getRangeAt(0)):this.vditor.currentMode==="ir"&&(this.vditor.ir.preventInput=!0,B&&te(this.vditor,getSelection().getRangeAt(0),!0))},T.prototype.insertMD=function(D){this.vditor.currentMode==="ir"?(0,U.oC)(this.vditor.lute.Md2VditorIRDOM(D),this.vditor):this.vditor.currentMode==="wysiwyg"?(0,U.oC)(this.vditor.lute.Md2VditorDOM(D),this.vditor):qe(this.vditor,D),this.vditor.outline.render(this.vditor),_r(this.vditor)},T.prototype.setValue=function(D,B){var $=this;B===void 0&&(B=!1),this.vditor.currentMode==="sv"?(this.vditor.sv.element.innerHTML="<div data-block='0'>".concat(this.vditor.lute.SpinVditorSVDOM(D),"</div>"),Kt(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})):this.vditor.currentMode==="wysiwyg"?at(this.vditor,D,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}):(this.vditor.ir.element.innerHTML=this.vditor.lute.Md2VditorIRDOM(D),this.vditor.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(q){z(q,$.vditor)}),we(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})),this.vditor.outline.render(this.vditor),D||(b(this.vditor,["emoji","headings","submenu","hint"]),this.vditor.wysiwyg.popover&&(this.vditor.wysiwyg.popover.style.display="none"),this.clearCache()),B&&this.clearStack()},T.prototype.insertEmptyBlock=function(D){Xo(this.vditor,D)},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 D=document.getElementById("vditorIconScript");D&&D.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(D){if(this.vditor.currentMode==="wysiwyg"){var B=function($){$.classList.remove("vditor-comment--hover"),D.forEach(function(q){$.getAttribute("data-cmtids").indexOf(q)>-1&&$.classList.add("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function($){B($)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function($){B($)})}},T.prototype.unHlCommentIds=function(D){if(this.vditor.currentMode==="wysiwyg"){var B=function($){D.forEach(function(q){$.getAttribute("data-cmtids").indexOf(q)>-1&&$.classList.remove("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function($){B($)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function($){B($)})}},T.prototype.removeCommentIds=function(D){var B=this;if(this.vditor.currentMode==="wysiwyg"){var $=function(q,le){var Oe=q.getAttribute("data-cmtids").split(" ");Oe.find(function(Ye,Ue){if(Ye===le)return Oe.splice(Ue,1),!0}),Oe.length===0?(q.outerHTML=q.innerHTML,(0,U.zh)(B.vditor).collapse(!0)):q.setAttribute("data-cmtids",Oe.join(" "))};D.forEach(function(q){B.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(le){$(le,q)}),B.vditor.preview.element.style.display!=="none"&&B.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(le){$(le,q)})}),Ne(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})}},T.prototype.init=function(D,B){var $=this;this.isDestroyed||(this.vditor={currentMode:B.mode,element:D,hint:new yn(B.hint.extend),lute:void 0,options:B,originalInnerHTML:D.innerHTML,outline:new Wo(window.VditorI18n.outline),tip:new Oi},this.vditor.sv=new ni(this.vditor),this.vditor.undo=new $9,this.vditor.wysiwyg=new H9(this.vditor),this.vditor.ir=new Cn(this.vditor),this.vditor.toolbar=new U9(this.vditor),B.resize.enable&&(this.vditor.resize=new oo(this.vditor)),this.vditor.toolbar.elements.devtools&&(this.vditor.devtools=new c),(B.upload.url||B.upload.handler)&&(this.vditor.upload=new bo),(0,d.G)(B._lutePath||"".concat(B.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){$.vditor.lute=(0,mr.X)({autoSpace:$.vditor.options.preview.markdown.autoSpace,gfmAutoLink:$.vditor.options.preview.markdown.gfmAutoLink,codeBlockPreview:$.vditor.options.preview.markdown.codeBlockPreview,emojiSite:$.vditor.options.hint.emojiPath,emojis:$.vditor.options.hint.emoji,fixTermTypo:$.vditor.options.preview.markdown.fixTermTypo,footnotes:$.vditor.options.preview.markdown.footnotes,headingAnchor:!1,inlineMathDigit:$.vditor.options.preview.math.inlineDigit,linkBase:$.vditor.options.preview.markdown.linkBase,linkPrefix:$.vditor.options.preview.markdown.linkPrefix,listStyle:$.vditor.options.preview.markdown.listStyle,mark:$.vditor.options.preview.markdown.mark,mathBlockPreview:$.vditor.options.preview.markdown.mathBlockPreview,paragraphBeginningSpace:$.vditor.options.preview.markdown.paragraphBeginningSpace,sanitize:$.vditor.options.preview.markdown.sanitize,toc:$.vditor.options.preview.markdown.toc}),$.vditor.preview=new Io($.vditor),ie($.vditor),B.after&&B.after(),B.icon&&(0,d.J)("".concat(B.cdn,"/dist/js/icons/").concat(B.icon,".js"),"vditorIconScript")}))},T})(a.default);const Se=se})(),i=i.default,i})()})})(Z8)),Z8.exports}var nrn=trn();const rrn=mu(nrn),orn={class:"mobile-chat"},irn={class:"mobile-content"},arn={key:0,class:"initial-content"},srn={class:"ai-intro"},lrn={class:"ai-avatar"},urn=["src"],crn={class:"function-cards"},drn=["onClick"],frn={class:"card-header"},prn={class:"card-icon"},hrn=["src","alt"],grn={class:"card-description"},vrn={class:"card-header"},mrn={class:"card-icon"},yrn=["src"],brn={class:"card-header"},wrn={class:"card-icon"},Arn=["src"],Crn={class:"card-header"},xrn={class:"card-icon"},Srn=["src"],Ern={class:"card-header"},krn={class:"card-icon"},Trn=["src"],_rn={key:1,class:"chat-messages"},Drn={key:0,class:"user-message"},Irn={class:"message-content"},Orn={key:0,class:"message-text"},Mrn={class:"message-actions"},Prn=["onClick"],Nrn=["src"],Rrn=["onClick"],Brn=["src"],Lrn={key:1,class:"ai-message"},Frn={key:0,class:"web-search-capsule-outer"},Urn={class:"ai-message-main"},zrn={class:"ai-avatar-small"},$rn=["src"],jrn=["data-message-index"],Hrn={class:"ai-response-content"},Wrn=["data-message-index"],Vrn={class:"stats-left"},qrn=["innerHTML"],Grn={key:0,class:"progress-capsule-inline"},Krn={class:"progress-bar-mini"},Yrn={class:"progress-percentage"},Qrn={key:1,class:"stats-right"},Zrn={key:1,class:"question-summary"},Xrn={key:2,class:"report-loading"},Jrn={key:3,class:"reports-list"},eon={key:0,class:"report-loading"},ton={key:4},non={key:5,class:"ai-text"},ron={key:0,class:"ai-markdown-content"},oon=["innerHTML"],ion={class:"divider"},aon={class:"message-actions"},son={class:"left-actions"},lon=["onClick"],uon=["src"],con=["onClick","disabled"],don=["src"],fon=["onClick","title"],pon=["src"],hon={class:"right-actions"},gon=["onClick","title"],von=["src"],mon=["onClick","title"],yon=["src"],bon={class:"related-questions-loading"},won={class:"related-questions"},Aon=["onClick"],Con={class:"chat-input-section"},xon={class:"input-container"},Son={class:"input-box"},Eon=["title","disabled"],kon={class:"icon-container"},Ton=["src"],_on=["disabled"],Don=["disabled"],Ion={class:"icon-container"},Oon=["src"],Mon={key:0,class:"recording-indicator"},Pon=["disabled"],Non=["src"],Ron={class:"web-search-modal-header"},Bon={class:"web-search-modal-content"},Lon={key:0,class:"search-results"},Fon={class:"search-count"},Uon=["onClick"],zon={class:"result-header"},$on={class:"result-index"},jon={class:"result-title"},Hon={class:"result-content"},Won={class:"result-footer"},Von={class:"result-url"},qon={key:0,class:"result-score"},Gon={class:"web-preview-header"},Kon={class:"web-preview-content"},Yon=["src"],Qon={key:1,class:"iframe-error"},Zon={class:"file-preview-header"},Xon={class:"header-left"},Jon={class:"header-text"},ein={key:0,class:"file-name"},tin={class:"file-preview-content"},nin={key:0,class:"file-loading"},rin={key:1,class:"file-error"},oin=["src"],iin={key:3,class:"file-empty"},ain={__name:"m-Chat",setup(e){const t=Hl(),n=z_(),r=()=>{t.go(-1)},o=()=>{!f.value&&!Fe.value&&(i.value=!0)},i=Y(!1),a=Y([]),s=Y(0),l=Y(!1),u=Y(!1),d=Y([]),c=Y(""),f=Y(!1),p=Y(0),v=Y(!1),h=Y(null),g=Y(""),y=Y(!1),m=Y(null),b=Y(!1),w=Y(""),A=Y(""),S=Y(!1),k=Y(""),O=Y(""),I=Y(!1),P=Y(""),M=Y({}),_=Y({}),{isSupported:R,isListening:N,transcript:V,error:L,startListening:j,stopListening:H}=T0(),G=Y(null),Z=Y(null),z=Y([]),U=Y(!1),W=Y(!1),re=Y(""),J=Y(2e3),te=Y([]);Y([]);const X=Y(!0),ue=Y({});Y(!1),Y(new Set);const me=Y({}),Me=Y({}),Ae=Y([]),ge=Y(!1),_e=Y(null),Q=Y(!1);let be=null;const De=Y({}),pe=Y(""),ie=Y("知识库文件"),ce=Y(new Map),Re=new Map,Ee=new Map;let Le=0;const Fe=ee(()=>{const Ge=d.value.some(We=>We.type==="ai"&&We.isTyping);return console.log("hasTypingMessage计算:",Ge,"聊天消息:",d.value.map(We=>({type:We.type,isTyping:We.isTyping}))),Ge}),Pe=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Ne=ee(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),ht=Ge=>{if(Ge===0)return"0 Bytes";const We=1024,ne=["Bytes","KB","MB","GB"],Ie=Math.floor(Math.log(Ge)/Math.log(We));return parseFloat((Ge/Math.pow(We,Ie)).toFixed(2))+" "+ne[Ie]},Rt=(Ge,We)=>{if(!We)return Lt(Ge);const ne=`
  2185. 📄 文件信息:
  2186. 文件名:${We.name}
  2187. 文件大小:${ht(We.size)}
  2188. 文件类型:${We.type}
  2189. 📝 文件内容:
  2190. ${We.content}
  2191. ---
  2192. `;return Ge.replace(/<word>.*?<\/word>/gs,ne).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Lt=Ge=>{const We=Ge.match(/<filename>(.*?)<\/filename>/),ne=We?We[1]:"未知文件",Ie=Ge.match(/<filesize>(.*?)<\/filesize>/),Ve=Ie?parseInt(Ie[1]):0,Ut=Ge.match(/<word>(.*?)<\/word>/s),It=Ut?Ut[1].trim():"无内容",rn=`
  2193. 📄 文件信息:
  2194. 文件名:${ne}
  2195. 文件大小:${ht(Ve)}
  2196. 文件类型:${ne.endsWith(".docx")?".docx":ne.endsWith(".doc")?".doc":"未知"}
  2197. 📝 文件内容:
  2198. ${It}
  2199. ---
  2200. `;return Ge.replace(/<word>.*?<\/word>/gs,rn).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},tn=Ge=>new Promise(We=>{try{console.log("开始使用Vditor渲染,内容长度:",Ge.length),console.log("原始内容:",Ge);const ne=document.createElement("div");ne.style.display="none",document.body.appendChild(ne),rrn.preview(ne,Ge,{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=dt(Ie),console.log("Vditor渲染完成,HTML长度:",Ie.length),console.log("HTML预览:",Ie.substring(0,200)+"..."),document.body.removeChild(ne),Vt(()=>{Vr()}),We(Ie)}})}catch(ne){console.error("Vditor渲染错误:",ne);const Ie=Ge.replace(/\n/g,"<br>");We(Ie)}}),Wt=Ge=>{if(!Ge)return Ge;let We=Ge;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,Ve]of Object.entries(ne)){const Ut=new RegExp(Ie.replace(/\\/g,"\\\\"),"g");We=We.replace(Ut,Ve)}return We=We.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),We=We.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),We=We.replace(/\\int/g,"∫"),We=We.replace(/\\sum/g,"∑"),We=We.replace(/\\prod/g,"∏"),We=We.replace(/\\partial/g,"∂"),We=We.replace(/\\nabla/g,"∇"),We=We.replace(/\\infty/g,"∞"),We=We.replace(/\\pm/g,"±"),We=We.replace(/\\times/g,"×"),We=We.replace(/\\div/g,"÷"),We=We.replace(/\\leq/g,"≤"),We=We.replace(/\\geq/g,"≥"),We=We.replace(/\\neq/g,"≠"),We=We.replace(/\\approx/g,"≈"),We=We.replace(/\\equiv/g,"≡"),We=We.replace(/\\propto/g,"∝"),We=We.replace(/\\in/g,"∈"),We=We.replace(/\\notin/g,"∉"),We=We.replace(/\\subset/g,"⊂"),We=We.replace(/\\supset/g,"⊃"),We=We.replace(/\\cup/g,"∪"),We=We.replace(/\\cap/g,"∩"),We=We.replace(/\\emptyset/g,"∅"),We=We.replace(/\\land/g,"∧"),We=We.replace(/\\lor/g,"∨"),We=We.replace(/\\neg/g,"¬"),We=We.replace(/\\rightarrow/g,"→"),We=We.replace(/\\leftarrow/g,"←"),We=We.replace(/\\leftrightarrow/g,"↔"),We=We.replace(/\\forall/g,"∀"),We=We.replace(/\\exists/g,"∃"),console.log("LaTeX转换:",Ge,"→",We),We},zt=Ge=>{if(!Ge)return Ge;console.log("原始AI回复:",Ge),console.log("原始文本长度:",Ge.length),console.log("原始文本字符码:",Array.from(Ge).map(We=>We.charCodeAt(0)));try{if(Ge.includes("%")){const ne=decodeURIComponent(Ge);console.log("URL解码后:",ne),Ge=ne}if(Ge.includes("??")){const ne=Ge.replace(/\?\?/g,"");console.log("清理问号后:",ne),Ge=ne}if(Ge.includes("\\u")){const ne=Ge.replace(/\\u[\dA-F]{4}/gi,Ie=>String.fromCharCode(parseInt(Ie.replace(/\\u/g,""),16)));console.log("Unicode解码后:",ne),Ge=ne}if(Ge.includes("&")){console.log("检测到&符号,可能包含HTML实体");const ne=document.createElement("textarea");ne.innerHTML=Ge;const Ie=ne.value;console.log("HTML解码后:",Ie),Ie!==Ge?(console.log("HTML实体解码成功,内容已变化"),Ge=Ie):console.log("HTML实体解码未生效,可能不是HTML实体")}if(Ge.includes("�")){console.log("检测到替换字符,尝试修复");const ne=Ge.replace(/\uFFFD/g,"");console.log("修复替换字符后:",ne),Ge=ne}const We=Wt(Ge);return console.log("LaTeX转换后:",We),console.log("最终处理结果:",We),We}catch(We){return console.error("处理AI回复时出错:",We),Ge}},dt=Ge=>{if(!Ge)return Ge;console.log("开始处理规范引用,HTML长度:",Ge.length);const We=Ge.replace(/<file>(.*?)<\/file>/g,(ne,Ie)=>{if(console.log("发现文件引用:",Ie),/^<span\s+class="standard-reference"/i.test(Ie))return ne;const Ve=Ie.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/);if(Ve){const Ut=Ve[1],It=Ve[2];return console.log("标准格式规范:",{standardName:Ut,standardNumber:It}),`<span class="standard-reference" data-standard="${Ie}" data-name="${Ut}" 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("规范引用处理完成"),We},_t=Ge=>{if(!Ge)return"";const We=new Date(Ge),ne=new Date,Ie=ne-We;return Ie<1440*60*1e3&&We.getDate()===ne.getDate()?We.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):Ie<2880*60*1e3&&We.getDate()===ne.getDate()-1?"昨天 "+We.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):We.toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit"})},ut=Ge=>{if(!Ge)return"新对话";const We=Ge.replace(/<[^>]*>/g,"").trim();return We.length>30?We.substring(0,30)+"...":We},rt=Ge=>{if(!Ge)return null;if(typeof Ge=="number"){const We=Ge<1e12?Ge*1e3:Ge;return new Date(We)}if(typeof Ge=="string"){let We=new Date(Ge);if(!isNaN(We))return We;const ne=Ge.replace(/-/g,"/").replace("T"," ");if(We=new Date(ne),!isNaN(We))return We}return new Date(Ge)},he=Ge=>{const We=rt(Ge);if(!We||isNaN(We))return"未知时间";const ne=new Date,Ie=We.toDateString()===ne.toDateString(),Ve=new Date(ne.getFullYear(),ne.getMonth(),ne.getDate()-1),Ut=We.toDateString()===Ve.toDateString();if(Ie)return We.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Ut)return"昨天 "+We.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const It=We.getMonth()+1,rn=We.getDate(),dn=We.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${It}月${rn}日 ${dn}`},Je=async()=>{try{console.log("📋 开始获取移动端AI问答历史记录列表..."),l.value=!0;const Ge=performance.now(),We=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:0}),ne=performance.now();console.log(`📋 移动端AI问答历史记录API调用耗时: ${(ne-Ge).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",We),We.statusCode===200?(s.value=We.total||0,a.value=We.data.map(Ie=>({id:Ie.id,title:ut(Ie.content),time:he(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("❌ 获取移动端历史记录列表失败:",We.statusCode)}catch(Ge){console.error("❌ 获取移动端历史记录列表失败:",Ge)}finally{l.value=!1}},ct=Ge=>{try{let We=Tg(Ge);return We=dt(We),Vt(()=>{Vr()}),We}catch(We){return console.error("Markdown渲染失败:",We),Ge.replace(/\n/g,"<br>")}},Ot=Ge=>{try{if(!Ge||typeof Ge!="string"||!Ge.trim())return null;const We=JSON.parse(Ge);if(!Array.isArray(We))return null;const ne=We.filter(Ie=>Ie&&typeof Ie=="object"&&Ie.title&&Ie.content);return ne.length>0?ne:null}catch(We){return console.error("解析搜索来源失败:",We),null}},Tn=Ge=>{switch(parseInt(Ge)){case 2:return"like";case 3:return"dislike";default:return null}},In=Ge=>{switch(Ge){case"like":return 2;case"dislike":return 3;default:return 0}},je=async Ge=>{try{const We=await Bn.getHistoryRecord({ai_conversation_id:Ge,business_type:0});if(We.statusCode===200){if(!We.data||!Array.isArray(We.data))return console.error("响应数据格式错误"),!1;const ne=await Promise.all(We.data.map(async(Ve,Ut)=>{const It=Tn(Ve.user_feedback);let rn=null,dn=Ve.content,kn=null;if(Ve.type==="ai"&&Ut>0){const cr=We.data[Ut-1];if(cr&&cr.type==="user")if(cr.content.includes("</filesize>")){const dr=cr.content.split("</filesize>")[1];kn=dr?dr.trim():cr.content}else kn=cr.content}if(Ve.type==="user"&&Ve.content.includes("</filesize>")){const cr=Ve.content.match(/<filename>(.*?)<\/filename>/),dr=Ve.content.match(/<filesize>(.*?)<\/filesize>/),we=Ve.content.match(/<word>(.*?)<\/word>/s);if(cr&&dr){const ae=cr[1],fe=parseInt(dr[1]),Ce=we?we[1].trim():"";rn={name:ae,size:fe,type:ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx",icon:getFileIcon(ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx"),content:Ce};const Ft=Ve.content.split("</filesize>")[1];dn=Ft?Ft.trim():""}}let or=dn||"",Vn=[],xr=Ve.summary||"";if(Ve.type==="ai")try{const cr=Ve.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&&(Ve.webSearchRaw=dr.webSearchRaw),dr.webSearchSummary&&(Ve.webSearchSummary=dr.webSearchSummary,Ve.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 we=cr.replace(/\\n/g,`
  2201. `).replace(/\\t/g," ").replace(/\\r/g,"\r");or=ct(we)}else{let dr=cr.replace(/\\n/g,`
  2202. `).replace(/\\t/g," ").replace(/\\r/g,"\r");or=ct(dr)}}catch(cr){console.error("历史记录处理失败:",cr),or=Ve.content||""}let sr=0,nr=0,Or=100;if(Vn.length>0){const cr=Vn.filter(dr=>dr.type!=="category_title");sr=cr.length,nr=cr.filter(dr=>dr.status==="completed").length,Or=sr>0?Math.round(nr/sr*100):100}return{type:Ve.type,content:dn,displayContent:or,reports:Vn,summary:xr,totalFiles:sr,completedCount:nr,progress:Or,file:rn,isTyping:!1,id:Ve.id,ai_message_id:Ve.type==="ai"?Ve.id:void 0,userFeedback:It,userQuestion:kn,searchSources:Ve.type==="ai"&&Ve.search_source?Ot(Ve.search_source):null,rawData:Ve,webSearchRaw:Ve.webSearchRaw||null,webSearchSummary:Ve.webSearchSummary||null,hasWebSearchResults:Ve.hasWebSearchResults||!1,webSearchTotal:Ve.webSearchRaw?.total||0,showStats:sr>0,currentStatus:"completed",statusMessage:sr>0?Ve.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${sr}</span> 个知识库文件,以及 <span class="file-count">${Ve.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${sr}</span> 个知识库文件`:""}}));d.value=ne,p.value=Ge;const Ie=ne.filter(Ve=>Ve.type==="ai").pop();return ne.forEach((Ve,Ut)=>{if(Ve.type==="ai"&&Ve.rawData){if(Ve.rawData.search_source)try{const It=JSON.parse(Ve.rawData.search_source);Array.isArray(It)&&It.length>0&&(ue.value[Ve.id]=It)}catch(It){console.error("解析搜索结果失败:",It)}if(Ve.reports&&Ve.reports.length>0&&(De.value[Ut]||(De.value[Ut]={}),Ve.reports.filter(rn=>rn.type==="category_title").map(rn=>rn.category).forEach(rn=>{De.value[Ut][rn]=!0})),Ve===Ie){let It=[];if(Ve.rawData.guess_you_want)try{It=Ve.rawData.guess_you_want.trim().split(`
  2203. `).map(rn=>rn.trim()).filter(rn=>rn.length>0).filter((rn,dn,kn)=>kn.indexOf(rn)===dn).slice(0,3)}catch(rn){console.error("解析guess_you_want失败:",rn)}if(It.length===0&&Ve.rawData.relate_question)try{const rn=JSON.parse(Ve.rawData.relate_question);Array.isArray(rn)&&rn.length>0&&(It=rn.slice(0,3))}catch(rn){console.error("解析relate_question失败:",rn)}It.length>0&&(Ae.value=It,_e.value=Ve.ai_message_id||Ve.id,console.log("✅ 从历史记录恢复推荐问题:",It),console.log("✅ relatedQuestionsMessageId:",_e.value))}}}),!0}}catch(We){return console.error("加载历史记录失败:",We),Cr("加载历史记录失败,请稍后重试",2e3),!1}},ke=()=>{Ee.forEach((Ge,We)=>{clearInterval(Ge)}),Ee.clear(),Re.forEach((Ge,We)=>{clearInterval(Ge)}),Re.clear()},ye=async Ge=>{if(f.value)return;G.value&&(it(),G.value=null),ke(),a.value.forEach(ne=>{ne.isActive=ne.id===Ge.id}),i.value=!1,d.value=[],Ae.value=[],_e.value=null,await je(Ge.id)?(u.value=!0,await Vt(),$r()):Cr("加载历史记录失败",2e3)},Be=()=>{console.log("开始新建对话"),G.value&&(it(),G.value=null),i.value=!1,d.value=[],p.value=0,c.value="",ue.value={},me.value={},Ae.value=[],_e.value=null,a.value.forEach(Ge=>{Ge.isActive=!1}),u.value=!1,console.log("新建对话完成")},ot=async(Ge,We)=>{try{console.log("开始删除移动端历史记录:",Ge);const ne=await Bn.deleteHistoryRecord({ai_conversation_id:Ge.id});ne.statusCode===200?(a.value.splice(We,1),s.value=Math.max(0,s.value-1),Ge.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Be()),console.log("✅ 移动端历史记录删除成功"),Cr("删除成功")):console.error("❌ 删除移动端历史记录失败:",ne)}catch(ne){console.error("❌ 删除移动端历史记录失败:",ne)}},gt=async Ge=>{!Ge||!Ge.trim()||(console.log("移动端自动发送消息:",Ge),u.value=!0,d.value.length===0&&a.value.forEach(We=>{We.isActive=!1}),c.value=Ge,await Br())},Ke=()=>window.location.origin+"/tts/voice",He=async()=>{const Ge=Ke();try{console.log("开始测试TTS服务连接..."),console.log("使用代理地址:",Ge);const We="测试",ne=new AbortController,Ie=setTimeout(()=>ne.abort(),8e3),Ve={"Content-Type":"application/json"},Ut=Gf(),It=Ev();if(Ut&&It){const dn=It.charAt(0).toUpperCase()+It.slice(1).toLowerCase();Ve.Authorization=`${dn} ${Ut}`}const rn=await fetch(Ge,{method:"POST",headers:Ve,body:JSON.stringify({text:We}),signal:ne.signal});if(clearTimeout(Ie),console.log("TTS连接测试结果:",{status:rn.status,statusText:rn.statusText,headers:Object.fromEntries(rn.headers.entries()),url:Ge}),rn.ok){const dn=await rn.blob();return console.log("TTS服务连接正常,测试音频大小:",dn.size,"bytes"),{success:!0,message:"TTS服务连接正常"}}else return{success:!1,message:`TTS服务响应错误: ${rn.status} ${rn.statusText}`}}catch(We){console.error("TTS连接测试失败:",We);let ne="TTS服务连接失败";return We.name==="AbortError"?ne="TTS服务连接超时":We.message.includes("Failed to fetch")?ne="无法连接到TTS服务,请检查网络或服务状态":ne=`TTS服务连接失败: ${We.message}`,{success:!1,message:ne}}},at=async(Ge,We=0)=>{const ne=Ke(),Ie=2;try{console.log(`开始调用TTS接口,文本长度: ${Ge.length}, 重试次数: ${We}`),console.log("TTS接口地址:",ne);const Ve=new AbortController,Ut=setTimeout(()=>Ve.abort(),15e3),It={"Content-Type":"application/json"},rn=Gf(),dn=Ev();if(rn&&dn){const sr=dn.charAt(0).toUpperCase()+dn.slice(1).toLowerCase();It.Authorization=`${sr} ${rn}`}const kn=await fetch(ne,{method:"POST",headers:It,body:JSON.stringify({text:Ge}),signal:Ve.signal});if(clearTimeout(Ut),console.log("TTS接口响应状态:",kn.status,kn.statusText),!kn.ok){const sr=await kn.text().catch(()=>"无法读取错误信息");throw new Error(`TTS接口调用失败: ${kn.status} ${kn.statusText} - ${sr}`)}const or=kn.headers.get("content-type");console.log("响应Content-Type:",or),(!or||!or.includes("audio"))&&console.warn("响应可能不是音频格式:",or);const Vn=await kn.blob();if(console.log("TTS接口调用成功,音频大小:",Vn.size,"bytes"),console.log("音频类型:",Vn.type),Vn.size===0)throw new Error("TTS接口返回的音频数据为空");return URL.createObjectURL(Vn)}catch(Ve){if(console.error(`TTS接口调用失败 (重试${We}/${Ie}):`,Ve),We<Ie&&(Ve.name==="AbortError"||Ve.message.includes("Failed to fetch")||Ve.message.includes("NetworkError")))return console.log(`准备重试TTS请求,等待${(We+1)*1e3}ms...`),await new Promise(rn=>setTimeout(rn,(We+1)*1e3)),at(Ge,We+1);let Ut="语音合成失败";Ve.name==="AbortError"?Ut="语音合成请求超时,请检查网络连接或稍后重试":Ve.message.includes("Failed to fetch")?Ut="无法连接到语音合成服务,请检查网络连接或联系管理员":Ve.message.includes("CORS")?Ut="跨域请求被阻止,请联系管理员配置服务器":Ve.message.includes("NetworkError")?Ut="网络错误,请检查网络连接":Ve.message.includes("TTS接口调用失败")?Ut=Ve.message:Ut=`语音合成失败: ${Ve.message}`;const It=new Error(Ut);throw It.originalError=Ve,It}},St=Ge=>{if(!Ge)return"";let We=Ge.replace(/<[^>]*>/g,"");return We=We.replace(/\s+/g," ").trim(),We=We.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),We},tt=Ge=>{if(Ge.length<=60)return[Ge];const We=[];let ne="",Ie=!0;const Ve=Ge.split(/[。!?]/);for(const Ut of Ve){if(Ut.trim().length===0)continue;const It=Ut+(Ut.match(/[。!?]$/)?"":"。"),rn=Ie?60:200;if(ne.length+It.length<=rn)ne+=It;else if(ne.length>0)We.push(ne.trim()),ne=It,Ie=!1;else{const dn=Ie?60:200;We.push(It.substring(0,dn)),ne=It.substring(dn),Ie=!1}}return ne.trim().length>0&&We.push(ne.trim()),We},Qe=Ge=>new Promise((We,ne)=>{const Ie=new Audio(Ge);Z.value=Ie,Ie.onended=()=>{console.log("音频播放完成"),Z.value=null,We()},Ie.onerror=Ve=>{console.error("音频播放失败:",Ve),Z.value=null,ne(Ve)},Ie.onloadstart=()=>{console.log("开始加载音频")},Ie.oncanplay=()=>{console.log("音频可以播放")},Ie.play().catch(Ve=>{console.error("音频播放启动失败:",Ve),Z.value=null,ne(Ve)})}),it=()=>{try{Z.value&&(Z.value.pause(),Z.value.currentTime=0,Z.value=null),z.value=[],U.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel(),console.log("所有音频播放已停止")}catch(Ge){console.warn("停止音频播放时出错:",Ge)}},Mt=async(Ge,We)=>{if(console.log(`开始优化播放 ${Ge.length} 个音频片段`),G.value!==We){console.log("朗读被中断,停止处理");return}try{console.log("立即预加载并播放第一块");const ne=Ge[0],Ie=await at(ne);if(G.value!==We){URL.revokeObjectURL(Ie);return}console.log("开始播放第一块,同时预加载后续块");const Ut=Ge.slice(1).map(async(rn,dn)=>{try{console.log(`预加载第 ${dn+2}/${Ge.length} 块音频`);const kn=await at(rn);return{index:dn+1,audioUrl:kn,chunk:rn}}catch(kn){return console.error(`第 ${dn+2} 块音频预加载失败:`,kn),{index:dn+1,audioUrl:null,chunk:rn,error:kn}}});if(console.log("播放第 1/1 块音频"),await Qe(Ie),URL.revokeObjectURL(Ie),G.value!==We){console.log("朗读被中断,清理预加载的音频"),(await Promise.allSettled(Ut)).forEach(dn=>{dn.status==="fulfilled"&&dn.value.audioUrl&&URL.revokeObjectURL(dn.value.audioUrl)});return}console.log("等待所有音频预加载完成...");const It=await Promise.allSettled(Ut);if(G.value!==We){console.log("朗读被中断,停止播放队列"),It.forEach(rn=>{rn.status==="fulfilled"&&rn.value.audioUrl&&URL.revokeObjectURL(rn.value.audioUrl)});return}console.log("开始播放剩余音频片段"),U.value=!0;for(const rn of It){if(G.value!==We){console.log("朗读被中断,停止播放队列");break}if(rn.status==="fulfilled"&&rn.value.audioUrl)try{console.log(`播放第 ${rn.value.index+1}/${Ge.length} 块音频`),await Qe(rn.value.audioUrl),URL.revokeObjectURL(rn.value.audioUrl)}catch(dn){console.error(`第 ${rn.value.index+1} 块音频播放失败:`,dn)}else console.warn(`第 ${rn.value.index+1} 块音频预加载失败,跳过播放`)}U.value=!1,console.log("音频队列播放完成")}catch(ne){console.error("音频队列播放失败:",ne),U.value=!1}},Gt=async Ge=>{if(G.value===Ge.id)it(),G.value=null;else{G.value&&(it(),G.value=null);const We=Ge.displayContent||Ge.content;if(We&&We.trim())try{const ne=St(We);if(console.log("清理后的文本:",ne),ne.length===0){Cr("文本内容为空,无法进行语音合成");return}if(G.value=Ge.id,ne.length<=60){console.log("文本较短,直接合成语音");const Ie=await at(ne);await Qe(Ie),URL.revokeObjectURL(Ie)}else{console.log("文本较长,使用并行预加载分块处理");const Ie=tt(ne);console.log(`文本分为 ${Ie.length} 块`),await Mt(Ie,Ge.id)}}catch(ne){console.error("语音合成失败:",ne),Cr("语音合成失败,请稍后重试")}finally{G.value=null,U.value=!1}}},En=Ge=>G.value===Ge,Nn=Ge=>{console.log("点击网络搜索胶囊,数据:",Ge),m.value=Ge,y.value=!0},xt=Ge=>{A.value=Ge.title,w.value=Ge.url||Ge.link,b.value=!0},sn=Ge=>{if(!Ge)return"";try{const We=new URL(Ge);return We.hostname+We.pathname}catch{return Ge}},vt=()=>{w.value&&(window.open(w.value,"_blank"),b.value=!1)},Bt=async Ge=>{console.log("移动端打开文件预览:",Ge),P.value="",I.value=!1,!Ge||!Ge.filePath&&!Ge.fileName?(P.value="文件路径为空",k.value="",O.value=""):(k.value=Ge.filePath,O.value=Ge.fileName||"",Ge.filePath&&(I.value=!0,setTimeout(()=>{I.value=!1},500))),S.value=!0},mn=()=>{X.value=!X.value,console.log("联网搜索状态:",X.value?"已启用":"已关闭"),X.value?Cr("联网搜索已启用"):Cr("联网搜索已关闭")},Mn=(Ge,We)=>{De.value[Ge]||(De.value[Ge]={}),De.value[Ge][We.category]=We.expanded},tr=(Ge,We)=>We?De.value[Ge]?De.value[Ge][We]!==!1:(De.value[Ge]={},!0):!0,cn=Ge=>!Ge||Ge.length===0?!1:Ge.every(We=>We.type==="category_title"),qe=(Ge,We)=>{if(We===100)return"completed";switch(Ge){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"}},yt=(Ge,We,ne=null)=>{const Ve={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}}[We];if(Ve){if(Ge.currentStatus=We,We==="data_retrieved"){const Ut=Ge.totalFiles||0,It=Ge.webSearchTotal||0;It>0?Ge.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${Ut}</span> 个知识库文件,以及 <span class="file-count">${It}</span> 个相关网络资源`:Ge.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${Ut}</span> 个知识库文件`}else if(We==="completed"){const Ut=Ge.totalFiles||0,It=Ge.webSearchTotal||0;It>0?Ge.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ut}</span> 个知识库文件,以及 <span class="file-count">${It}</span> 个相关网络资源`:Ge.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ut}</span> 个知识库文件`}else Ge.statusMessage=ne||Ve.message;Ge.progress=Ve.progress}},Zt=(Ge,We,ne,Ie=50)=>new Promise(Ve=>{const Ut=`${Ge.file_index}_${We}`;Re.has(Ut)&&(clearInterval(Re.get(Ut)),Re.delete(Ut)),Ge._typewriterStates||(Ge._typewriterStates={});let It=0;Ge._typewriterStates[We]={currentIndex:0,isTyping:!0};const rn=setInterval(()=>{if(It<ne.length){const dn=Math.max(1,Math.floor(Ie/10));It=Math.min(It+dn,ne.length),Ge.report[We]=ne.substring(0,It),Ge._typewriterStates[We].currentIndex=It}else clearInterval(rn),Re.delete(Ut),Ge._typewriterStates[We].isTyping=!1,Ge.report[We]=ne,Ve()},1e3/60);Re.set(Ut,rn)}),bt=(Ge,We)=>{const ne=d.value[We];if(!ne)return;console.log("🔍 SSE事件完整数据:",{type:Ge.type,conversation_id:Ge.conversation_id,message_id:Ge.message_id,ai_conversation_id:Ge.ai_conversation_id,ai_message_id:Ge.ai_message_id,allKeys:Object.keys(Ge)});const Ie=Ge.conversation_id||Ge.ai_conversation_id;Ie&&p.value===0&&(p.value=Ie,console.log("✅ SSE收到conversation_id并赋值:",Ie));const Ve=Ge.message_id||Ge.ai_message_id;switch(Ve&&(ne.ai_message_id||(ne.ai_message_id=Ve,console.log("✅ SSE收到message_id并赋值:",Ve),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=Ve,console.log(" - aiMessage.rawData.id:",ne.rawData.id))),Ge.type){case"intent":if(yt(ne,"querying_kb"),Ge.is_professional_question===!1){const Vn=Ge.summary||"抱歉,我暂时无法回答您的问题。";if(ne.summary=Vn,ne.isTyping=!1,ne.ai_message_id&&gd(ne.ai_message_id,Vn).catch(sr=>console.error("回写AI消息失败:",sr)),be&&(bh(be),be=null),f.value=!1,ce.value.clear(),Q.value=!0,p.value&&p.value!==0){a.value.forEach(cr=>{cr.isActive=!1});const sr=d.value.find(cr=>cr.type==="user"),nr=sr?sr.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:sr?.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(sr=>sr.type==="user").pop();xr&&ne.ai_message_id&&Vn&&Wr(xr.content,Vn,ne.ai_message_id);return}if(Ge.summary){const Vn=Ge.summary;ne._fullSummary=Vn,ne.summary="",Zt({file_index:"summary",report:ne,_typewriterStates:{}},"summary",Vn,50).catch(xr=>{console.error("问题总结打字机效果失败:",xr),ne.summary=Vn})}break;case"documents":ne.totalFiles=Ge.total,ne.completedCount=0,X.value?yt(ne,"web_searching"):yt(ne,"data_retrieved"),Vt(()=>{ti()});break;case"category_title":ne.reports.length===0&&ne.progress>=30&&yt(ne,"analyzing_files");const Ut={type:"category_title",category:Ge.category,number:Ge.number,count:Ge.count,source_file:`【${Ge.number}、${Ge.category}】(共${Ge.count}个文件)`,file_index:-1,status:"category"};ne.reports.push(Ut),De.value[We]||(De.value[We]={}),De.value[We][Ge.category]=!0,ne.currentCategory=Ge.category;break;case"report_start":console.log("🔍 [DEBUG] report_start 数据:",{file_index:Ge.file_index,source_file:Ge.source_file,file_path:Ge.file_path,metadata:Ge.metadata,完整data:Ge});const It={file_index:Ge.file_index,total_files:ne.totalFiles,source_file:Ge.source_file,file_path:Ge.file_path,similarity:Ge.similarity,metadata:{...Ge.metadata,_displayCategory:ne.currentCategory},report:{display_name:"",summary:"",analysis:"",clauses:""},status:"streaming"};ne.reports.push(It),ce.value.set(Ge.file_index,ne.reports.length-1);break;case"report_chunk":break;case"report":ne.reports.filter(Vn=>Vn.status==="completed").length===0&&yt(ne,"deep_thinking");const rn=Ge.data||Ge;console.log("🔍 [DEBUG] report 数据:",{file_index:rn.file_index,source_file:rn.source_file,file_path:rn.file_path,metadata:rn.metadata,完整reportData:rn});const dn=ce.value.get(rn.file_index);let kn;if(dn!==void 0){const Vn=ne.reports[dn].metadata?._displayCategory,xr=rn.report?.summary||"",sr=rn.report?.analysis||"",nr=rn.report?.clauses||"",Or=rn.report?.display_name||"";ne.reports[dn]={...rn,report:{display_name:Or,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...rn.metadata,_displayCategory:Vn||ne.currentCategory},_fullContent:{display_name:Or,summary:xr,analysis:sr,clauses:nr}},kn=ne.reports[dn],ce.value.delete(rn.file_index)}else{const Vn=rn.report?.summary||"",xr=rn.report?.analysis||"",sr=rn.report?.clauses||"",nr=rn.report?.display_name||"",Or={...rn,report:{display_name:nr,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...rn.metadata,_displayCategory:ne.currentCategory},_fullContent:{display_name:nr,summary:Vn,analysis:xr,clauses:sr}};ne.reports.push(Or),kn=Or}kn._fullContent&&!kn._typewriterCompleted&&(kn._typewriterStarted=!0,Zt(kn,"summary",kn._fullContent.summary||"",200).then(()=>Zt(kn,"analysis",kn._fullContent.analysis||"",200)).then(()=>{if(kn._fullContent.clauses)return Zt(kn,"clauses",kn._fullContent.clauses||"",200)}).then(()=>{kn._typewriterCompleted=!0}).catch(Vn=>{console.error("报告打字机效果失败:",Vn),kn.report.summary=kn._fullContent.summary||"",kn.report.analysis=kn._fullContent.analysis||"",kn.report.clauses=kn._fullContent.clauses||"",kn._typewriterCompleted=!0}),console.log("📝 [DEBUG] 报告打字机已启动:",{file_index:kn.file_index,summary_length:kn._fullContent.summary?.length||0,analysis_length:kn._fullContent.analysis?.length||0,clauses_length:kn._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)yt(ne,"outputting");else if(or>=.5)yt(ne,"deep_thinking");else{const Vn=30+Math.round(or*30);ne.progress=Vn}break;case"web_search_raw":if(Ge.results&&Ge.results.length>0){ne.webSearchRaw={results:Ge.results||[],keywords:Ge.keywords||[],total:Ge.total||0},ne.webSearchTotal=Ge.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> 个相关网络资源`;yt(ne,"data_retrieved",Vn),console.log(`[网络搜索] 收到原始数据: ${Ge.total} 条结果`)}else{const Vn=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${ne.totalFiles||0}</span> 个知识库文件`;yt(ne,"data_retrieved",Vn),console.log("[网络搜索] 无搜索结果,仅使用知识库")}break;case"web_search_summary":if(Ge.has_results&&Ge.summary){if(ne._webSearchSummaryCompleted){console.log("[网络搜索] 总结已完成,跳过重复打字机");break}if(ne._fullWebSearchSummary=Ge.summary,ne.webSearchSummary="",ne.hasWebSearchResults=!0,Zt({file_index:"web_search_summary",report:ne,_typewriterStates:{}},"webSearchSummary",Ge.summary,200).then(()=>{ne._webSearchSummaryCompleted=!0}).catch(xr=>{console.error("网络搜索总结打字机效果失败:",xr),ne.webSearchSummary=Ge.summary,ne._webSearchSummaryCompleted=!0}),console.log("[网络搜索] 收到AI总结,长度:",Ge.summary.length),yt(ne,"outputting"),ne.ai_message_id){const xr={reports:ne.reports||[],webSearchRaw:ne.webSearchRaw||null,webSearchSummary:ne._fullWebSearchSummary||Ge.summary,hasWebSearchResults:!0,summary:ne.summary||ne._fullSummary||""},sr=JSON.stringify(xr);ne.summary||ne._fullSummary,gd(ne.ai_message_id,sr).then(nr=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),yt(ne,"completed"),ne.isTyping=!1,f.value=!1,ce.value.clear(),Q.value=!0}).catch(nr=>{console.error("[网络搜索] AI消息保存失败:",nr),yt(ne,"completed"),ne.isTyping=!1,f.value=!1})}else yt(ne,"completed"),ne.isTyping=!1,f.value=!1}break;case"error":Cr(Ge.message||"发生错误",2e3),f.value=!1;break;case"completed":console.log("[SSE] 收到completed事件"),f.value=!1,ce.value.clear(),ne.isTyping=!1,ne.progress<100&&yt(ne,"completed"),Cr("报告生成完成",2e3);break;case"interrupted":f.value=!1,ce.value.clear(),ne.isTyping=!1,Cr(Ge.message||"报告生成已中断",2e3);break}},Kt=Ge=>{console.error("❌ SSE连接异常断开:",Ge),be&&(bh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(We=>{We.type==="ai"&&We.isTyping&&(We.isTyping=!1)}),Q.value=!0,Cr("连接已断开",2e3)},bn=()=>{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||""},Ve=ne.reports&&ne.reports.length>0?JSON.stringify(Ie):ne.content;Ve&&(ne.summary||ne._fullSummary,gd(ne.ai_message_id,Ve).catch(Ut=>console.error("回写AI消息失败:",Ut)))}}),Q.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",p.value),p.value&&p.value!==0){console.log("✅ 开始更新历史记录列表"),a.value.forEach(Ut=>{Ut.isActive=!1});const ne=d.value.find(Ut=>Ut.type==="user"),Ie=ne?ne.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",Ie);const Ve=a.value.findIndex(Ut=>Ut.id===p.value);if(console.log("🔍 检查是否已存在,索引:",Ve),Ve===-1){const Ut={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("📦 准备插入的新项:",Ut),a.value.unshift(Ut),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",a.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const Ut=a.value.splice(Ve,1)[0];Ut.isActive=!0,Ut.time=_t(new Date().toISOString()),a.value.unshift(Ut),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}s.value=a.value.length,console.log("📊 最终历史记录总数:",s.value)}else console.warn("⚠️ ai_conversation_id 为 0 或未设置,跳过历史记录更新");console.log("🎯 准备获取AI相关推荐问题");const Ge=d.value.filter(ne=>ne.type==="user").pop(),We=d.value.filter(ne=>ne.type==="ai").pop();if(Ge&&We&&We.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",Ge.content),console.log(" - AI消息ID:",We.ai_message_id);let ne="";We.summary?ne=We.summary:We.content?ne=We.content:We.reports&&We.reports.length>0&&(ne=We.reports.filter(Ve=>Ve.report&&Ve.report.summary).map(Ve=>Ve.report.summary).slice(0,3).join(`
  2204. `)),ne&&ne.trim()?(console.log("📝 AI回复内容长度:",ne.length),Wr(Ge.content,ne,We.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},Rn=Ge=>{be&&(bh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(We=>{if(We.type==="ai"&&We.isTyping&&(We.isTyping=!1,yt(We,"completed"),(We.webSearchRaw||We.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),We.ai_message_id)){const ne={reports:We.reports||[],webSearchRaw:We.webSearchRaw||null,webSearchSummary:We._fullWebSearchSummary||We.webSearchSummary||null,hasWebSearchResults:We.hasWebSearchResults||!1,summary:We.summary||We._fullSummary||""},Ie=We.reports&&We.reports.length>0?JSON.stringify(ne):We.content;Ie&&(We.summary||We._fullSummary,gd(We.ai_message_id,Ie).catch(Ve=>console.error("回写AI消息失败:",Ve)))}}),Q.value=!0,Cr(Ge.message||"报告生成已中断",2e3)},Kn=async()=>{!be||p.value===void 0||p.value===null||(be&&(bh(be),be=null),f.value=!1,ce.value.clear(),d.value.forEach(Ge=>{if(Ge.type==="ai"&&Ge.isTyping&&(Ge.isTyping=!1,yt(Ge,"completed"),(Ge.webSearchRaw||Ge.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),Ge.ai_message_id)){const We={reports:Ge.reports||[],webSearchRaw:Ge.webSearchRaw||null,webSearchSummary:Ge._fullWebSearchSummary||Ge.webSearchSummary||null,hasWebSearchResults:Ge.hasWebSearchResults||!1,summary:Ge.summary||Ge._fullSummary||""},ne=Ge.reports&&Ge.reports.length>0?JSON.stringify(We):Ge.content;ne&&(Ge.summary||Ge._fullSummary,gd(Ge.ai_message_id,ne).catch(Ie=>console.error("回写AI消息失败:",Ie)))}}),Q.value=!0,Cr("已停止生成",2e3),Y4e(null,p.value).catch(Ge=>console.warn("停止请求失败:",Ge)))},Fr=async Ge=>{f.value=!0,pe.value=Ge.question,d.value.push({id:Date.now(),type:"user",content:Ge.question,timestamp:new Date().toISOString()});const We=d.value.length;d.value.push({id:Date.now()+1,type:"ai",userQuestion:Ge.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:Ge.question,window_size:Ge.windowSize,n_results:2,ai_conversation_id:p.value,is_network_search_enabled:X.value}),Ve=`${$V()}/report/complete-flow?${ne.toString()}`;be=fAe(Ve,{onMessage:Ut=>bt(Ut,We),onError:Kt,onComplete:bn,onInterrupted:Rn})}catch(ne){console.error("启动失败:",ne),Cr(`启动失败: ${ne.message}`,2e3),f.value=!1}},ho=Ge=>{console.log("点击推荐问题:",Ge),Ae.value=[],_e.value=null,c.value=Ge,Br()},Wr=async(Ge,We,ne)=>{if(!Ge||!We||!ne){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",Ge),console.log("AI回复:",We.substring(0,100)+"..."),console.log("消息ID:",ne),ge.value=!0;const Ie=`基于以下对话内容,直接生成3条相关的推荐问题。
  2205. 【对话内容】
  2206. 用户问题:${Ge}
  2207. AI回复:${We}
  2208. 【生成要求】
  2209. - 直接输出3个问题,每个问题一行
  2210. - 问题要与原问题相关但有所延伸
  2211. - 问题要具体、实用,符合中文表达习惯
  2212. - 不要包含任何编号、标题、说明文字
  2213. - 不要重复上述指令内容`,Ve=await Bn.guessYouWant({message:Ie,ai_message_id:ne});if(console.log("AI相关推荐问题响应:",Ve),Ve.statusCode===200&&Ve.data&&Ve.data.reply){const It=Ve.data.reply.trim().split(`
  2214. `).map(rn=>rn.trim()).filter(rn=>rn.length>0).filter((rn,dn,kn)=>kn.indexOf(rn)===dn).slice(0,3);It.length>0?(Ae.value=It,_e.value=ne,console.log("✅ AI相关推荐问题数据已设置:",Ae.value),console.log("✅ relatedQuestionsMessageId设置为:",_e.value),console.log("✅ messageId类型:",typeof ne,"值:",ne),Vt(()=>{console.log("✅ DOM已更新,推荐问题应该显示了"),$r()})):(console.log("解析推荐问题失败,使用默认问题"),Ae.value=[],_e.value=null)}else console.error("获取AI相关推荐问题失败:",Ve.statusCode),Ae.value=[],_e.value=null}catch(Ie){console.error("获取AI相关推荐问题失败:",Ie),Ae.value=[],_e.value=null}finally{ge.value=!1}},bo=()=>{G.value&&(it(),G.value=null)},Bo=()=>{document.hidden&&G.value&&(it(),G.value=null)},br=async Ge=>{const We=Ge.target;if(We.classList.contains("standard-reference")){Ge.preventDefault(),Ge.stopPropagation();const ne=We.getAttribute("data-standard"),Ie=We.getAttribute("data-reference");console.log("点击的元素:",We),console.log("元素的HTML:",We.outerHTML),console.log("data-standard属性:",ne),console.log("data-reference属性:",Ie),console.log("所有data属性:",We.dataset),console.log("点击了标准引用:",ne||Ie);let Ve="";if(ne?Ve=ne:Ie&&(Ve=Ie),Ve)try{const Ut=await Bn.getFileLink({fileName:Ve});if(console.log("获取文件链接响应:",Ut),Ut.statusCode===200&&Ut.data){const It=Ut.data;console.log("获取到文件链接:",It),It?window.open(It,"_blank"):Cr("暂无文件")}else Cr("暂无文件")}catch(Ut){console.error("获取文件链接失败:",Ut),Cr("获取文件失败,请稍后重试")}}},Vr=()=>{const Ge=document.querySelectorAll(".standard-reference");console.log("找到规范引用元素数量:",Ge.length),Ge.forEach((We,ne)=>{We.removeEventListener("click",br),We.addEventListener("click",br),console.log(`绑定规范引用 ${ne+1}:`,We.textContent)})};jn(async()=>{try{console.log("🚀 移动端AI问答页面初始化,加载功能卡片..."),await Ao(),window.addEventListener("beforeunload",bo),window.addEventListener("unload",bo),document.addEventListener("visibilitychange",Bo),document.addEventListener("click",br),console.log("✅ 移动端:添加 window 滚动监听"),window.addEventListener("scroll",()=>{console.log("🔄 移动端滚动事件触发!scrollY:",window.scrollY)},{once:!0}),window.addEventListener("scroll",ti);try{const We=await He();We.success?console.log("✅ 移动端TTS服务连接正常"):console.warn("⚠️ 移动端TTS服务连接异常:",We.message)}catch(We){console.warn("⚠️ 移动端TTS服务连接测试失败:",We)}const Ge=n.query.autoMessage;Ge&&(console.log("检测到移动端自动发送消息:",Ge),t.replace({path:n.path,query:{...n.query,autoMessage:void 0}}),gt(Ge)),console.log("✅ 移动端AI问答页面初始化完成")}catch(Ge){console.error("❌ 移动端AI问答页面初始化失败:",Ge)}}),Ct(i,async Ge=>{Ge&&a.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await Je())}),Ct(V,Ge=>{!Ge||N.value||(c.value=Ge)}),Ct(L,Ge=>{Ge&&(console.error("语音识别错误:",Ge),Cr(Ge))});const wo=Ge=>{const We=[nk,rk,ok,ik],ne=We[Le%We.length];return Le++,ne},Rr=Ge=>{console.log("点击功能卡片:",Ge),d.value=[],p.value=0,u.value=!0;const We=`请详细介绍${Ge}的相关内容`;c.value=We,Br()},Br=async()=>{if(!c.value.trim()||f.value)return;console.log("📤 移动端发送消息:",c.value),Ae.value=[],_e.value=null,f.value=!0,u.value=!0,d.value.length===0&&(a.value.forEach(We=>{We.isActive=!1}),Me.value={},me.value={},ue.value={});const Ge=c.value;c.value="",await Fr({question:Ge,windowSize:3,nResults:10}),$r()},$r=()=>{Vt(()=>{const Ge=document.querySelector(".chat-messages");Ge&&(Ge.scrollTop=Ge.scrollHeight)})},Ao=async()=>{try{console.log("开始获取功能卡片...");const Ge=await Bn.getFunctionCard({function_type:0});console.log("功能卡片响应:",Ge),Ge.statusCode===200?(te.value=Ge.data,console.log("功能卡片数据已设置:",te.value)):console.error("获取功能卡片失败:",Ge.statusCode)}catch(Ge){console.error("获取功能卡片失败:",Ge)}},Cr=(Ge,We=2e3)=>{W.value=!1,Vt(()=>{re.value=Ge,J.value=We,W.value=!0})},Ho=async Ge=>{try{await navigator.clipboard.writeText(Ge),Cr("复制成功")}catch(We){console.error("复制失败:",We),Cr("复制失败","error")}},Xo=Ge=>{Ho(Ge.content)},qi=Ge=>{let We=Ge.summary||Ge.displayContent||Ge.content;if(We&&We.includes("<")){const ne=document.createElement("div");ne.innerHTML=We,We=ne.textContent||ne.innerText||We}!We&&Ge.reports&&Ge.reports.length>0&&(We=Ge.reports.filter(ne=>ne.type!=="category_title").map(ne=>ne.report||"").join(`
  2215. `)),Ge.webSearchSummary&&(We=We?`${We}
  2216. 【网络搜索总结】
  2217. ${Ge.webSearchSummary}`:Ge.webSearchSummary),We&&We.trim()?Ho(We):Cr("暂无可复制的内容")},ra=Ge=>{console.log("编辑用户消息:",Ge.content),c.value=Ge.content,Vt(()=>{const We=document.querySelector(".message-input");We&&(We.focus(),We.setSelectionRange(We.value.length,We.value.length))})},ti=()=>{console.log("📱 移动端 handleProgressCardScroll 被触发");const Ge=document.querySelector(".mobile-header"),We=Ge?Ge.getBoundingClientRect().bottom:60;console.log("📐 移动端 headerBottom:",We),console.log("📊 移动端 messageContentRefs 数量:",Object.keys(M.value).length),Object.keys(M.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 Ve=M.value[ne];if(!Ve){console.log(`❌ 移动端消息 ${ne} 没有找到 contentEl`);return}const Ut=Ve.querySelector(".stats-card");if(!Ut){console.log(`❌ 移动端消息 ${ne} 没有找到 .stats-card`);return}console.log(`✅ 移动端消息 ${ne} 找到进度卡片`);const It=Ut.getBoundingClientRect(),rn=Ve.getBoundingClientRect();if(!_.value[ne]){_.value[ne]={initialLeft:It.left,initialWidth:It.width,isSticky:!1,offsetTop:It.top-rn.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},Vt(()=>{requestAnimationFrame(()=>{if(_.value[ne]){const Vn=Ve.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,sr=Math.max(0,100-xr);setTimeout(()=>{_.value[ne]&&(_.value[ne].initialized=!0,_.value[ne].isInitializing=!1)},sr)}})});return}if(!_.value[ne].initialized||_.value[ne].isInitializing||Date.now()-_.value[ne].initStartTime<100)return;const kn=rn.top+_.value[ne].offsetTop,or=kn<=We&&rn.bottom>We+60;console.log(`📍 移动端消息 ${ne} 吸附判断:`,{naturalTop:kn,headerBottom:We,"naturalTop <= headerBottom":kn<=We,"contentRect.bottom":rn.bottom,"headerBottom + 60":We+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=We})},Lo=()=>{if(console.log("点击语音按钮"),!R.value){Cr("当前浏览器不支持语音识别");return}N.value?Pa():Qo()},Qo=()=>{console.log("开始语音输入"),j()||Cr("语音识别启动失败,请检查麦克风权限")},Pa=()=>{console.log("停止语音输入"),H(),V.value.trim()&&(c.value=V.value)},Ai=async Ge=>{if(console.log("重新生成回复,消息索引:",Ge),Ge>0){const We=d.value[Ge-1];We&&We.type==="user"&&(console.log("重新发送用户消息:",We.content),c.value=We.content,await Br())}},Ci=async Ge=>{console.log("点赞消息:",Ge.id),Ge.userFeedback==="like"?Ge.userFeedback=null:Ge.userFeedback="like",d.value=[...d.value],await mi(Ge)},xi=async Ge=>{console.log("点踩消息:",Ge.id),Ge.userFeedback==="dislike"?Ge.userFeedback=null:Ge.userFeedback="dislike",d.value=[...d.value],await mi(Ge)},mi=async Ge=>{try{console.log("🔍 syncFeedbackToBackend 收到的message对象:",{id:Ge.id,ai_message_id:Ge.ai_message_id,rawData:Ge.rawData,rawData_id:Ge.rawData?.id});const We=Ge.ai_message_id||Ge.rawData&&Ge.rawData.id;if(!We){console.warn("❌ 消息缺少ID,无法同步反馈"),console.warn(" - message.ai_message_id:",Ge.ai_message_id),console.warn(" - message.rawData:",Ge.rawData);return}const ne=In(Ge.userFeedback);console.log("✅ 同步反馈到后端:",{messageId:We,feedback:ne});const Ie=await Bn.likeAndDislike({id:We,user_feedback:ne});Ie.statusCode===200?(console.log("反馈同步成功"),Cr(ne===2?"点赞成功":ne===3?"点踩成功":"已取消反馈")):(console.error("反馈同步失败:",Ie.msg),Cr("反馈提交失败,请稍后重试","error"))}catch(We){console.error("同步反馈失败:",We),Cr("反馈提交失败,请稍后重试","error")}},oa=async()=>{h.value&&(g.value==="history"?await _r():g.value==="message"&&await Si())},_r=async()=>{const{item:Ge,index:We}=h.value;try{const ne=await Bn.deleteHistoryRecord({ai_conversation_id:Ge.id});ne.statusCode===200?(a.value.splice(We,1),Ge.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:Ge}=h.value;try{const We=d.value[Ge];if(We&&We.id)try{const ne=await Bn.deleteConversation({ai_message_id:We.id});ne.statusCode===200?(d.value.splice(Ge,1),Ge>0&&d.value.splice(Ge-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(Ge,1),Cr("删除成功")}catch(We){console.error("删除消息失败:",We),Cr("删除失败,请稍后重试","error")}finally{v.value=!1,h.value=null,g.value=""}},ha=()=>{v.value=!1,h.value=null,g.value=""};return Yr(()=>{G.value&&(it(),G.value=null),window.removeEventListener("beforeunload",bo),window.removeEventListener("unload",bo),document.removeEventListener("visibilitychange",Bo),window.removeEventListener("scroll",ti),document.removeEventListener("click",br)}),Sb(async()=>{console.log("移动端页面重新激活,检查并重新渲染markdown内容"),await Vt();for(const Ge of d.value)if(Ge.type==="ai"&&Ge.content&&!Ge.isTyping)try{console.log("重新渲染AI消息markdown:",Ge.id);const We=zt(Ge.content),ne=Rt(We,Ge.file),Ie=await tn(ne);Ge.displayContent=Ie,setTimeout(()=>{Vr()},100)}catch(We){console.error("重新渲染markdown失败:",We)}d.value=[...d.value],console.log("移动端页面重新激活完成,markdown内容已重新渲染")}),(Ge,We)=>(F(),K("div",orn,[$e(p2,{title:"AI问答",onBack:r,onMenu:o}),x("div",irn,[$e(q5,{visible:!f.value&&!Fe.value&&i.value,title:"历史记录",historyData:a.value,loading:l.value,onClose:We[0]||(We[0]=ne=>i.value=!1),onCreateNewTask:Be,onHandleHistoryItem:ye,onDeleteHistoryItem:ot},null,8,["visible","historyData","loading"]),u.value?(F(),K("div",_rn,[(F(!0),K(Nt,null,on(d.value,(ne,Ie)=>(F(),K("div",{key:Ie,class:oe(["message-item",ne.type])},[ne.type==="user"?(F(),K("div",Drn,[x("div",Irn,[ne.content?(F(),K("div",Orn,ze(ne.content),1)):xe("",!0)]),x("div",Mrn,[x("button",{class:"action-btn copy-btn",onClick:Ve=>Xo(ne),title:"复制"},[x("img",{src:C(Lv),alt:"复制",class:"action-icon"},null,8,Nrn)],8,Prn),x("button",{class:"action-btn edit-btn",onClick:Ve=>ra(ne),title:"编辑"},[x("img",{src:C(t5),alt:"编辑",class:"action-icon"},null,8,Brn)],8,Rrn)])])):ne.type==="ai"?(F(),K("div",Lrn,[ne.webSearchRaw&&ne.webSearchRaw.total>0?(F(),K("div",Frn,[$e(uAe,{total:ne.webSearchRaw.total,results:ne.webSearchRaw.results,isExpanded:!1,onToggle:Ve=>Nn(ne.webSearchRaw)},null,8,["total","results","onToggle"])])):xe("",!0),x("div",Urn,[x("div",zrn,[x("img",{src:C(tk),alt:"AI",class:"ai-icon"},null,8,$rn)]),x("div",{class:"message-content","data-message-index":Ie,ref_for:!0,ref:Ve=>M.value[Ie]=Ve},[x("div",Hrn,[ne.showStats?(F(),K("div",{key:0,class:oe(["stats-card",{"is-sticky":_.value[Ie]?.isSticky&&_.value[Ie]?.initialized&&!_.value[Ie]?.isInitializing}]),style:Jt(_.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",Vrn,[$e(dAe,{status:qe(ne.currentStatus,ne.progress),size:28,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:ne.statusMessage,class:"status-text"},null,8,qrn)]),ne.progress<100?(F(),K("div",Grn,[x("div",Krn,[x("div",{class:"progress-fill",style:Jt({width:ne.progress+"%"})},null,4),x("div",{class:"progress-dot",style:Jt({left:ne.progress+"%"})},null,4)]),x("span",Yrn,ze(ne.progress)+"%",1)])):xe("",!0),ne.progress===100&&ne.reports&&ne.reports.length>0?(F(),K("div",Qrn,[$e(lAe,{reports:ne.reports.filter(Ve=>Ve.status==="completed"&&Ve.type!=="category_title"),disabled:!1,title:ie.value},null,8,["reports","title"])])):xe("",!0)],14,Wrn)):xe("",!0),ne.summary?(F(),K("div",Zrn,[$e(ly,{content:ne.summary,streaming:!1},null,8,["content"])])):xe("",!0),ne.isTyping&&(!ne.reports||ne.reports.length===0)&&ne.progress<100?(F(),K("div",Xrn,We[25]||(We[25]=[ki('<span class="loading-text" data-v-5c2e6b46>AI正在思考中...</span><div class="thinking-animation" data-v-5c2e6b46><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span></div>',2)]))):xe("",!0),ne.reports&&ne.reports.length>0?(F(),K("div",Jrn,[(F(!0),K(Nt,null,on(ne.reports,(Ve,Ut)=>(F(),K(Nt,{key:`${Ve.source_file}-${Ve.file_index}-${Ut}`},[Ve.type==="category_title"?(F(),mt(aAe,{key:0,category:Ve.category,number:Ve.number,count:Ve.count,onToggle:It=>Mn(Ie,It)},null,8,["category","number","count","onToggle"])):!Ve.type||Ve.type!=="category_title"?an((F(),mt(sAe,{key:1,report:Ve,onPreviewFile:Bt},null,8,["report"])),[[Ar,tr(Ie,Ve.metadata?._displayCategory||Ve.metadata?.primary_category)]]):xe("",!0)],64))),128)),ne.isTyping&&ne.progress<100&&cn(ne.reports)?(F(),K("div",eon,We[26]||(We[26]=[ki('<span class="loading-text" data-v-5c2e6b46>AI正在思考中...</span><div class="thinking-animation" data-v-5c2e6b46><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span></div>',2)]))):xe("",!0)])):xe("",!0),ne.hasWebSearchResults&&ne.webSearchSummary?(F(),K("div",ton,[$e(cAe,{summary:ne.webSearchSummary},null,8,["summary"])])):xe("",!0),!ne.reports||ne.reports.length===0?(F(),K("div",non,[ne.displayContent&&ne.displayContent.length>0?(F(),K("div",ron,[x("div",{innerHTML:ne.displayContent},null,8,oon)])):xe("",!0)])):xe("",!0)]),an(x("div",ion,null,512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]]),an(x("div",aon,[x("div",son,[x("button",{class:"action-btn copy-btn",onClick:Ve=>qi(ne),title:"复制"},[x("img",{src:C(Lv),alt:"复制",class:"action-icon"},null,8,uon)],8,lon),x("button",{class:"action-btn regenerate-btn",onClick:Ve=>Ai(Ie),disabled:Fe.value,title:"重新生成"},[x("img",{src:C(yq),alt:"重新生成",class:"action-icon"},null,8,don)],8,con),x("button",{class:oe(["action-btn voice-btn",{speaking:En(ne.id)}]),onClick:Ve=>Gt(ne),title:En(ne.id)?"停止朗读":"语音朗读"},[x("img",{src:C(n7),alt:"语音朗读",class:"action-icon"},null,8,pon)],10,fon)]),x("div",hon,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:ne.userFeedback==="like"}]),onClick:Ve=>Ci(ne),title:ne.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Vy),alt:"点赞",class:"action-icon"},null,8,von)],10,gon),x("button",{class:oe(["action-btn thumbs-down-btn",{active:ne.userFeedback==="dislike"}]),onClick:Ve=>xi(ne),title:ne.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(qy),alt:"踩",class:"action-icon"},null,8,yon)],10,mon)])],512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]])],8,jrn)]),an(x("div",bon,We[27]||(We[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)&&ge.value&&(_e.value===ne.id||_e.value===ne.ai_message_id)&&Ae.value.length===0]]),an(x("div",won,[(F(!0),K(Nt,null,on(Ae.value,(Ve,Ut)=>(F(),K("div",{key:Ut,class:"related-question-item",onClick:It=>ho(Ve)},[x("span",null,ze(Ve),1),We[28]||(We[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,Aon))),128))],512),[[Ar,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary||ne.reports&&ne.reports.length>0)&&(_e.value===ne.id||_e.value===ne.ai_message_id)&&Ae.value.length>0]])])):xe("",!0)],2))),128))])):(F(),K("div",arn,[x("div",srn,[x("div",lrn,[x("img",{src:C(tk),alt:"AI头像",class:"ai-avatar-img"},null,8,urn)]),We[16]||(We[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",crn,[(F(!0),K(Nt,null,on(te.value,(ne,Ie)=>(F(),K("div",{key:ne.id||Ie,class:"function-card",onClick:Ve=>Rr(ne.function_title)},[x("div",frn,[x("div",prn,[x("img",{src:wo(ne.function_title),alt:ne.function_title,class:"card-icon-img"},null,8,hrn)]),x("h4",null,ze(ne.function_title),1)]),x("div",grn,[x("p",null,ze(ne.function_content),1)])],8,drn))),128)),te.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:We[1]||(We[1]=ne=>Rr("桥梁结构设计问题"))},[x("div",vrn,[x("div",mrn,[x("img",{src:C(nk),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,yrn)]),We[17]||(We[17]=x("h4",null,"桥梁结构设计问题",-1))]),We[18]||(We[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:We[2]||(We[2]=ne=>Rr("桥梁施工技术咨询"))},[x("div",brn,[x("div",wrn,[x("img",{src:C(rk),alt:"施工技术咨询",class:"card-icon-img"},null,8,Arn)]),We[19]||(We[19]=x("h4",null,"施工技术咨询",-1))]),We[20]||(We[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:We[3]||(We[3]=ne=>Rr("材料与力学问题"))},[x("div",Crn,[x("div",xrn,[x("img",{src:C(ok),alt:"材料与力学问题",class:"card-icon-img"},null,8,Srn)]),We[21]||(We[21]=x("h4",null,"材料与力学问题",-1))]),We[22]||(We[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:We[4]||(We[4]=ne=>Rr("规范标准查询"))},[x("div",Ern,[x("div",krn,[x("img",{src:C(ik),alt:"规范标准查询",class:"card-icon-img"},null,8,Trn)]),We[23]||(We[23]=x("h4",null,"规范标准查询",-1))]),We[24]||(We[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])])),x("div",Con,[x("div",xon,[x("div",Son,[x("button",{class:oe(["network-search-btn",{active:X.value}]),onClick:mn,title:X.value?"关闭联网搜索":"启用联网搜索",disabled:f.value||Fe.value},[x("div",kon,[x("img",{src:X.value?C(pAe):C(hAe),alt:"联网搜索",class:"action-icon"},null,8,Ton)])],10,Eon),We[30]||(We[30]=x("div",{class:"divider"},null,-1)),an(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":We[5]||(We[5]=ne=>c.value=ne),onKeyup:Lr(Br,["enter"]),disabled:f.value||Fe.value,maxlength:"2000"},null,40,_on),[[jr,c.value]]),x("button",{class:oe(["voice-btn",{recording:C(N)}]),onClick:Lo,disabled:f.value||Fe.value},[x("div",Ion,[x("img",{src:C(Xf),alt:"语音",class:"action-icon"},null,8,Oon),C(N)?(F(),K("div",Mon)):xe("",!0)])],10,Don),We[31]||(We[31]=x("div",{class:"divider"},null,-1)),f.value?(F(),K("button",{key:1,class:"send-btn stop-btn",onClick:Kn,title:"停止生成"},We[29]||(We[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(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,Non)],8,Pon))])])])]),$e(f2,{visible:W.value,message:re.value,duration:J.value,onClose:We[6]||(We[6]=ne=>W.value=!1)},null,8,["visible","message","duration"]),$e(c0,{visible:v.value,title:Ne.value,message:Pe.value,onConfirm:oa,onCancel:ha,onClose:ha},null,8,["visible","title","message"]),y.value?(F(),K("div",{key:0,class:"web-search-modal-overlay",onClick:We[9]||(We[9]=ne=>y.value=!1)},[x("div",{class:"web-search-modal",onClick:We[8]||(We[8]=Qt(()=>{},["stop"]))},[x("div",Ron,[We[32]||(We[32]=x("h3",null,"联网搜索结果",-1)),x("button",{class:"close-btn",onClick:We[7]||(We[7]=ne=>y.value=!1)},"✕")]),x("div",Bon,[m.value&&m.value.results?(F(),K("div",Lon,[x("div",Fon,"找到 "+ze(m.value.total||m.value.results.length)+" 个相关结果",1),(F(!0),K(Nt,null,on(m.value.results,(ne,Ie)=>(F(),K("div",{key:Ie,class:"search-result-item",onClick:Ve=>xt(ne)},[x("div",zon,[x("div",$on,ze(Ie+1),1),x("div",jon,ze(ne.title),1)]),x("div",Hon,ze(ne.content||ne.snippet),1),x("div",Won,[x("span",Von,ze(sn(ne.url||ne.link)),1),ne.score?(F(),K("span",qon,ze((ne.score*100).toFixed(1))+"%",1)):xe("",!0)])],8,Uon))),128))])):xe("",!0)])])])):xe("",!0),b.value?(F(),K("div",{key:1,class:"web-preview-overlay",onClick:We[12]||(We[12]=ne=>b.value=!1)},[x("div",{class:"web-preview-modal",onClick:We[11]||(We[11]=Qt(()=>{},["stop"]))},[x("div",Gon,[x("h3",null,ze(A.value),1),x("button",{class:"close-btn",onClick:We[10]||(We[10]=ne=>b.value=!1)},"✕")]),x("div",Kon,[w.value?(F(),K("iframe",{key:0,src:w.value,frameborder:"0",class:"preview-iframe"},null,8,Yon)):(F(),K("div",Qon,[We[33]||(We[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:We[15]||(We[15]=ne=>S.value=!1)},[x("div",{class:"file-preview-modal",onClick:We[14]||(We[14]=Qt(()=>{},["stop"]))},[x("div",Zon,[x("div",Xon,[We[35]||(We[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",Jon,[We[34]||(We[34]=x("h3",null,"文件预览",-1)),O.value?(F(),K("span",ein,ze(O.value),1)):xe("",!0)])]),x("button",{class:"close-btn",onClick:We[13]||(We[13]=ne=>S.value=!1)},"✕")]),x("div",tin,[I.value?(F(),K("div",nin,We[36]||(We[36]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"加载中...",-1)]))):P.value?(F(),K("div",rin,[We[37]||(We[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,ze(P.value),1)])):k.value?(F(),K("iframe",{key:2,src:k.value,frameborder:"0",class:"file-iframe"},null,8,oin)):(F(),K("div",iin,We[38]||(We[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)]))}},sin=Yo(ain,[["__scopeId","data-v-5c2e6b46"]]),lin={class:"mobile-safety-hazard"},uin={class:"mobile-content"},cin={key:0,class:"initial-content"},din={class:"ai-intro"},fin={class:"ai-avatar"},pin=["src"],hin={class:"function-cards"},gin=["onClick"],vin={class:"card-header"},min={class:"card-icon"},yin=["src","alt"],bin={class:"card-description"},win={class:"card-header"},Ain={class:"card-icon"},Cin=["src"],xin={class:"card-header"},Sin={class:"card-icon"},Ein=["src"],kin={class:"card-header"},Tin={class:"card-icon"},_in=["src"],Din={class:"card-header"},Iin={class:"card-icon"},Oin=["src"],Min={key:1,class:"chat-messages"},Pin={key:0,class:"user-message"},Nin={class:"message-content"},Rin={key:0,class:"message-text"},Bin={class:"message-actions"},Lin=["onClick"],Fin=["src"],Uin=["onClick"],zin=["src"],$in={key:1,class:"ai-message"},jin={class:"ai-avatar-small"},Hin=["src"],Win={class:"message-content"},Vin={class:"ai-text"},qin={key:0,class:"typing-indicator"},Gin=["innerHTML"],Kin={class:"divider"},Yin={class:"message-actions"},Qin={class:"left-actions"},Zin=["onClick"],Xin=["src"],Jin=["onClick","disabled"],ean=["src"],tan=["onClick","title"],nan=["src"],ran={class:"right-actions"},oan=["onClick","title"],ian=["src"],aan=["onClick","title"],san=["src"],lan={key:2,class:"step2-content"},uan={key:0,class:"loading-overlay"},can={key:0,class:"generating-overlay-full"},dan={key:1,class:"generating-overlay-full"},fan={class:"outline-header"},pan={class:"outline-top-right"},han=["disabled"],gan=["src"],van=["disabled"],man=["src"],yan=["disabled"],ban=["src"],wan={class:"outline-content"},Aan={key:0,class:"outline-content-scrollable"},Can={key:0,class:"outline-chapter"},xan={class:"chapter-header"},San={class:"chapter-title"},Ean={class:"outline-section"},kan={key:0,class:"section-container"},Tan={class:"section-header"},_an={class:"section-title"},Dan={key:0,class:"section-subsection"},Ian={key:0,class:"subsection-container"},Oan={class:"subsection-header"},Man={class:"subsection-title"},Pan={key:0,class:"subsubsection-container"},Nan={class:"subsubsection-header"},Ran={class:"subsubsection-title"},Ban={key:0,class:"add-chapter-container"},Lan=["src"],Fan={key:1,class:"ai-outline-content"},Uan=["innerHTML"],zan={key:2,class:"default-outline"},$an={class:"outline-bottom-left"},jan=["disabled"],Han=["src"],Wan=["disabled"],Van=["src"],qan={class:"outline-bottom-right"},Gan=["disabled"],Kan=["src"],Yan=["disabled"],Qan=["src"],Zan={key:3,class:"chat-input-section"},Xan={class:"input-container"},Jan={class:"input-box"},esn=["disabled"],tsn=["disabled"],nsn={class:"icon-container"},rsn=["src"],osn={key:0,class:"recording-indicator"},isn=["disabled"],asn=["src"],ssn={__name:"m-SafetyHazard",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{!L.value&&!j.value&&(o.value=!0)},o=Y(!1),i=Y([]),a=Y(0),s=Y(!1),l=Y(!1),u=Y([]),d=Y(""),c=Y(!1),f=Y(0),p=Y("step1"),v=Y(!1),h=Y(null),g=Y(""),y=Y(null),{isSupported:m,isListening:b,transcript:w,error:A,startListening:S,stopListening:k}=T0(),O=Y(!1),I=Y(""),P=Y(2e3),M=Y([]);let _=0;const R=Y(""),N=Y([]),V=Y(""),L=Y(!1),j=Y(!1),H=Y(null),G=Y(""),Z=Y(null),z=ee(()=>u.value.some(tt=>tt.type==="ai"&&tt.isTyping)),U=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),W=ee(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),re=(tt,Qe)=>{let it=`# ${Qe}
  2218. `;const Mt=document.createElement("div");Mt.innerHTML=tt;const Gt=En=>{const Nn=En.tagName.toLowerCase();if(Nn==="h1"){const xt=En.textContent.trim();xt&&!xt.includes("大纲")&&(it+=`## ${xt}
  2219. `)}else if(Nn==="h2"){const xt=En.textContent.trim();it+=`### ${xt}
  2220. `}else if(Nn==="h3"){const xt=En.textContent.trim();it+=`#### ${xt}
  2221. `}else if(Nn==="h4"){const xt=En.textContent.trim();it+=`##### ${xt}
  2222. `}else if(Nn==="ul")En.querySelectorAll("li").forEach(sn=>{const vt=sn.textContent.trim();vt&&(it+=`- ${vt}
  2223. `)}),it+=`
  2224. `;else if(Nn==="ol")En.querySelectorAll("li").forEach((sn,vt)=>{const Bt=sn.textContent.trim();Bt&&(it+=`${vt+1}. ${Bt}
  2225. `)}),it+=`
  2226. `;else if(Nn==="p"){const xt=En.textContent.trim();xt&&(it+=`${xt}
  2227. `)}else for(const xt of En.childNodes)xt.nodeType===Node.ELEMENT_NODE&&Gt(xt)};for(const En of Mt.childNodes)En.nodeType===Node.ELEMENT_NODE&&Gt(En);return it},J=tt=>{try{const Qe=tt.match(/\{[\s\S]*\}/);if(Qe){const it=JSON.parse(Qe[0]);return te(it),it}else throw new Error("未找到有效的JSON数据")}catch(Qe){return console.error("解析AI回复失败:",Qe),X()}},te=tt=>{tt.singleChoice&&tt.singleChoice.questions&&tt.singleChoice.questions.forEach(Qe=>{Qe.selectedAnswer||(Qe.selectedAnswer=""),(!Qe.options||Qe.options.length===0)&&(Qe.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),tt.judge&&tt.judge.questions&&tt.judge.questions.forEach(Qe=>{Qe.selectedAnswer||(Qe.selectedAnswer="")}),tt.multiple&&tt.multiple.questions&&tt.multiple.questions.forEach(Qe=>{Qe.selectedAnswers||(Qe.selectedAnswers=[]),(!Qe.options||Qe.options.length===0)&&(Qe.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),tt.short&&tt.short.questions&&tt.short.questions.forEach(Qe=>{Qe.outline||(Qe.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=tt=>{try{const Qe=me(tt),it=new Blob([Qe],{type:"application/msword"}),Mt=URL.createObjectURL(it),Gt=document.createElement("a");Gt.setAttribute("href",Mt),Gt.setAttribute("download",`${tt.title}_${new Date().toISOString().split("T")[0]}.doc`),Gt.style.visibility="hidden",document.body.appendChild(Gt),Gt.click(),document.body.removeChild(Gt),URL.revokeObjectURL(Mt),Ee("考试文件已下载!")}catch(Qe){console.error("导出考试文件失败:",Qe),Ee("导出考试文件失败,请重试")}},me=tt=>{const Qe=new Date().toLocaleString("zh-CN");let it=`<!DOCTYPE html>
  2228. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2229. xmlns:w="urn:schemas-microsoft-com:office:word"
  2230. xmlns="http://www.w3.org/TR/REC-html40">
  2231. <head>
  2232. <meta charset="utf-8">
  2233. <meta name="ProgId" content="Word.Document">
  2234. <meta name="Generator" content="Microsoft Word 15">
  2235. <meta name="Originator" content="Microsoft Word 15">
  2236. <title>${tt.title||"考试试卷"}</title>
  2237. <!--[if gte mso 9]>
  2238. <xml>
  2239. <w:WordDocument>
  2240. <w:View>Print</w:View>
  2241. <w:Zoom>100</w:Zoom>
  2242. <w:DoNotPromptForConvert/>
  2243. <w:DoNotShowRevisions/>
  2244. <w:DoNotPrintRevisions/>
  2245. <w:DoNotShowComments/>
  2246. <w:DoNotShowInsertionsAndDeletions/>
  2247. <w:DoNotShowPropertyChanges/>
  2248. <w:Compatibility>
  2249. <w:BreakWrappedTables/>
  2250. <w:SnapToGridInCell/>
  2251. <w:WrapTextWithPunct/>
  2252. <w:UseAsianBreakRules/>
  2253. <w:DontGrowAutofit/>
  2254. </w:Compatibility>
  2255. </w:WordDocument>
  2256. </xml>
  2257. <![endif]-->
  2258. <style>
  2259. body {
  2260. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  2261. font-size: 14px;
  2262. line-height: 1.6;
  2263. margin: 24px;
  2264. color: #000;
  2265. }
  2266. .header {
  2267. text-align: center;
  2268. margin-bottom: 14px;
  2269. }
  2270. .exam-title {
  2271. font-size: 24px;
  2272. font-weight: bold;
  2273. margin-bottom: 14px;
  2274. color: #000;
  2275. }
  2276. .exam-info {
  2277. font-size: 14px;
  2278. color: #666;
  2279. margin-bottom: 14px;
  2280. }
  2281. .section {
  2282. margin-bottom: 14px;
  2283. }
  2284. .section-title {
  2285. font-size: 18px;
  2286. font-weight: bold;
  2287. margin-bottom: 14px;
  2288. color: #000;
  2289. border-bottom: 2px solid #3e7bfa;
  2290. padding-bottom: 5px;
  2291. }
  2292. .question {
  2293. margin-bottom: 14px;
  2294. padding: 10px;
  2295. background-color: #f9f9f9;
  2296. border-left: 4px solid #3e7bfa;
  2297. }
  2298. .question-header {
  2299. margin-bottom: 14px;
  2300. line-height: 1.6;
  2301. }
  2302. .question-number {
  2303. font-weight: bold;
  2304. color: #3e7bfa;
  2305. }
  2306. .options {
  2307. margin-left: 12px;
  2308. }
  2309. .option {
  2310. margin-bottom: 5px;
  2311. }
  2312. .answer {
  2313. margin-top: 10px;
  2314. padding: 8px;
  2315. background: #e8f4fd;
  2316. border-radius: 4px;
  2317. font-weight: bold;
  2318. color: #2c5aa0;
  2319. }
  2320. </style>
  2321. </head>
  2322. <body>
  2323. <div class="header">
  2324. <div class="exam-title">${tt.title||"考试试卷"}</div>
  2325. <div class="exam-info">
  2326. 总分:${tt.totalScore||0}分 | 总题数:${tt.totalQuestions||0}题 | 生成时间:${Qe}
  2327. </div>
  2328. </div>`;return tt.singleChoice&&tt.singleChoice.questions.length>0&&(it+=`
  2329. <div class="section">
  2330. <div class="section-title">一、单选题(${tt.singleChoice.count}题,每题${tt.singleChoice.scorePerQuestion}分,共${tt.singleChoice.totalScore}分)</div>`,tt.singleChoice.questions.forEach((Mt,Gt)=>{it+=`
  2331. <div class="question">
  2332. <div class="question-header">
  2333. <span class="question-number">${Gt+1}.</span> ${Mt.text}
  2334. </div>
  2335. <div class="options">`,Mt.options.forEach(En=>{it+=`
  2336. <div class="option">${En.key}. ${En.text}</div>`}),it+=`
  2337. </div>
  2338. <div class="answer">正确答案:${Mt.selectedAnswer} </div>
  2339. </div>`}),it+=`
  2340. </div>`),tt.judge&&tt.judge.questions.length>0&&(it+=`
  2341. <div class="section">
  2342. <div class="section-title">二、判断题(${tt.judge.count}题,每题${tt.judge.scorePerQuestion}分,共${tt.judge.totalScore}分)</div>`,tt.judge.questions.forEach((Mt,Gt)=>{it+=`
  2343. <div class="question">
  2344. <div class="question-header">
  2345. <span class="question-number">${Gt+1}.</span> ${Mt.text}
  2346. </div>
  2347. <div class="answer">正确答案:${Mt.selectedAnswer} </div>
  2348. </div>`}),it+=`
  2349. </div>`),tt.multiple&&tt.multiple.questions.length>0&&(it+=`
  2350. <div class="section">
  2351. <div class="section-title">三、多选题(${tt.multiple.count}题,每题${tt.multiple.scorePerQuestion}分,共${tt.multiple.totalScore}分)</div>`,tt.multiple.questions.forEach((Mt,Gt)=>{it+=`
  2352. <div class="question">
  2353. <div class="question-header">
  2354. <span class="question-number">${Gt+1}.</span> ${Mt.text}
  2355. </div>
  2356. <div class="options">`,Mt.options.forEach(En=>{it+=`
  2357. <div class="option">${En.key}. ${En.text}</div>`}),it+=`
  2358. </div>
  2359. <div class="answer">正确答案:${Mt.selectedAnswers.join(", ")}</div>
  2360. </div>`}),it+=`
  2361. </div>`),tt.short&&tt.short.questions.length>0&&(it+=`
  2362. <div class="section">
  2363. <div class="section-title">四、简答题(${tt.short.count}题,每题${tt.short.scorePerQuestion}分,共${tt.short.totalScore}分)</div>`,tt.short.questions.forEach((Mt,Gt)=>{it+=`
  2364. <div class="question">
  2365. <div class="question-header">
  2366. <span class="question-number">${Gt+1}.</span> ${Mt.text}
  2367. </div>
  2368. <div class="answer">答题要点:${Mt.outline.keyFactors} </div>
  2369. </div>`}),it+=`
  2370. </div>`),it+=`
  2371. </body>
  2372. </html>`,it},Me=tt=>{if(!tt)return null;if(typeof tt=="number"){const Qe=tt<1e12?tt*1e3:tt;return new Date(Qe)}if(typeof tt=="string"){let Qe=new Date(tt);if(!isNaN(Qe))return Qe;const it=tt.replace(/-/g,"/").replace("T"," ");if(Qe=new Date(it),!isNaN(Qe))return Qe}return new Date(tt)},Ae=tt=>{const Qe=Me(tt);if(!Qe||isNaN(Qe))return"";const it=new Date,Mt=Qe.toDateString()===it.toDateString(),Gt=new Date(it.getFullYear(),it.getMonth(),it.getDate()-1),En=Qe.toDateString()===Gt.toDateString();if(Mt)return Qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(En)return"昨天 "+Qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Nn=Qe.getMonth()+1,xt=Qe.getDate(),sn=Qe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Nn}月${xt}日 ${sn}`},ge=tt=>{try{let Qe="安全培训大纲";const it=tt.split(`
  2373. `);for(let Mt of it){const Gt=Mt.trim();if(Gt.includes("以下是为您准备的PPT大纲")){const En=it.indexOf(Mt)+1;if(En<it.length){const Nn=it[En].trim();if(Nn&&Nn.length>0&&!Nn.includes("以下")&&!Nn.includes("大纲统计信息")){Qe=Nn;break}}}if(Gt.startsWith("# ")){Qe=Gt.replace("# ","").trim();break}if(Gt.startsWith("## ")){const En=Gt.replace("## ","").trim();if(En&&!En.includes("内容要点")&&!En.includes("概述")&&!En.includes("内容详情")){Qe=En;break}}Gt.length>10&&!Gt.includes("以下是")&&!Gt.includes("大纲统计")&&!Gt.includes("##")&&!Gt.includes("###")&&Gt.length<50&&!Qe.includes("#")&&Qe==="安全培训大纲"&&(Qe=Gt)}return console.log("提取的大纲标题:",Qe),Qe}catch(Qe){return console.error("提取大纲标题失败:",Qe),"安全培训大纲"}},_e=tt=>{if(!tt)return"新对话";const Qe=tt.replace(/<[^>]*>/g,"").trim();return Qe.length>30?Qe.substring(0,30)+"...":Qe},Q=async()=>{try{console.log("📋 开始获取移动端安全培训历史记录列表..."),s.value=!0;const tt=performance.now(),Qe=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:1}),it=performance.now();console.log(`📋 移动端安全培训历史记录API调用耗时: ${(it-tt).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",Qe),Qe.statusCode===200?(a.value=Qe.total||0,i.value=Qe.data.map(Mt=>({id:Mt.id,title:_e(Mt.content),time:Ae(Mt.updated_at),businessType:Mt.business_type,isActive:!1,rawData:Mt})),f.value&&i.value.forEach(Mt=>{Mt.isActive=Mt.id===f.value}),console.log(`✅ 移动端安全培训历史记录列表已设置: ${i.value.length}条记录,总数: ${a.value}`)):console.error("❌ 获取移动端历史记录列表失败:",Qe.statusCode)}catch(tt){console.error("❌ 获取移动端历史记录列表失败:",tt)}finally{s.value=!1}},be=tt=>{if(!tt)return tt;console.log("开始转换Markdown:",tt);let Qe=tt;const it=/(?:^|<br>)#{1,6}\s*/.test(Qe)||/\*\*.*?\*\*/.test(Qe)||/^\s*[-*]\s+/.test(Qe);console.log("Markdown格式检测结果:",it);const Mt=/<[^>]*>/.test(Qe);return console.log("HTML标签检测结果:",Mt),it?(console.log("检测到Markdown格式,进行Markdown转换"),Qe=Qe.replace(/^#{6}\s*(.+)$/gm,"<h6>$1</h6>"),Qe=Qe.replace(/^#{5}\s*(.+)$/gm,"<h5>$1</h5>"),Qe=Qe.replace(/^#{4}\s*(.+)$/gm,"<h4>$1</h4>"),Qe=Qe.replace(/^#{3}\s*(.+)$/gm,"<h3>$1</h3>"),Qe=Qe.replace(/^#{2}\s*(.+)$/gm,"<h2>$1</h2>"),Qe=Qe.replace(/^#{1}\s*(.+)$/gm,"<h1>$1</h1>"),Qe=Qe.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>"),Qe=Qe.replace(/\*(.*?)\*/g,"<em>$1</em>"),Qe=Qe.replace(/^\s*[-*]\s+(.+)$/gm,"<li>$1</li>"),Qe=Qe.replace(/(<li>.*<\/li>)/s,"<ul>$1</ul>"),Qe=Qe.replace(/`(.*?)`/g,"<code>$1</code>"),console.log("Markdown转换完成:",Qe)):console.log(Mt?"检测到HTML标签,跳过Markdown转换":"未检测到特殊格式,保持原文本"),Qe=Qe.replace(/\n/g,"<br>"),console.log("最终HTML:",Qe),Qe},De=tt=>{const Qe=[A_,C_,x_,S_],it=Qe[_%Qe.length];return _++,it},pe=tt=>{console.log("点击功能卡片:",tt),u.value=[],f.value=0,l.value=!0;const Qe=`请详细介绍${tt}的相关内容`;d.value=Qe,ie()},ie=async()=>{if(!d.value.trim()||c.value)return;console.log("开始发送消息:",d.value),c.value=!0,l.value=!0;const tt={type:"user",content:d.value,id:Date.now()};u.value.push(tt);const Qe={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(Qe);const it=d.value;d.value="",ce();try{const Mt=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:it,business_type:1});if(console.log("AI回复响应:",Mt),Mt.statusCode===200){Mt.data&&Mt.data.ai_conversation_id&&(f.value=Mt.data.ai_conversation_id),Mt.data&&Mt.data.ai_message_id&&(Z.value=Mt.data.ai_message_id,console.log("设置AI消息ID:",Z.value));const Gt=Mt.data?Mt.data.reply:Mt.reply||"";console.log("AI回复内容:",Gt);const En=be(Gt),Nn=[];let xt="",sn=!1,vt="";for(let tr=0;tr<En.length;tr++){const cn=En[tr];cn==="<"?(xt&&!sn&&(Nn.push({type:"text",content:xt}),xt=""),sn=!0,vt=cn):cn===">"?(vt+=cn,Nn.push({type:"tag",content:vt}),sn=!1,vt=""):sn?vt+=cn:xt+=cn}xt&&Nn.push({type:"text",content:xt}),vt&&Nn.push({type:"tag",content:vt}),console.log("分割后的文本块:",Nn);let Bt=0,mn=0;const Mn=setInterval(()=>{if(Bt<Nn.length){const tr=Nn[Bt];if(tr.type==="tag")console.log("显示HTML标签:",tr.content),Qe.displayContent+=tr.content,Bt++,mn=0;else if(mn<tr.content.length){const cn=Qe.displayContent+tr.content[mn];Qe.displayContent=cn,mn++}else Bt++,mn=0;u.value=[...u.value],ce()}else Qe.isTyping=!1,Qe.content=Gt,clearInterval(Mn),console.log("打字完成,最终displayContent:",Qe.displayContent),u.value=[...u.value],console.log("打字完成,强制更新响应式数据"),V.value=Qe.displayContent,R.value=ge(Gt)||"安全培训大纲",p.value="step2",Q()},50)}else console.error("发送消息失败:",Mt),Qe.content="抱歉,我暂时无法回答您的问题,请稍后再试。",Qe.displayContent="抱歉,我暂时无法回答您的问题,请稍后再试。",Qe.isTyping=!1,u.value=[...u.value]}catch(Mt){console.error("发送消息失败:",Mt),Qe.content="抱歉,网络连接出现问题,请检查网络后重试。",Qe.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",Qe.isTyping=!1,u.value=[...u.value]}finally{c.value=!1}},ce=()=>{Vt(()=>{const tt=document.querySelector(".chat-messages");tt&&(tt.scrollTop=tt.scrollHeight)})},Re=async()=>{try{console.log("开始获取功能卡片...");const tt=await Bn.getFunctionCard({function_type:1});console.log("功能卡片响应:",tt),tt.statusCode===200?(M.value=tt.data,console.log("功能卡片数据已设置:",M.value)):console.error("获取功能卡片失败:",tt.statusCode)}catch(tt){console.error("获取功能卡片失败:",tt)}},Ee=(tt,Qe=2e3)=>{O.value=!1,Vt(()=>{I.value=tt,P.value=Qe,O.value=!0})},Le=async tt=>{try{await navigator.clipboard.writeText(tt),Ee("复制成功")}catch(Qe){console.error("复制失败:",Qe),Ee("复制失败")}},Fe=tt=>{Le(tt.content)},Pe=tt=>{let Qe=tt.displayContent||tt.content;if(Qe&&Qe.includes("<")){const it=document.createElement("div");it.innerHTML=Qe,Qe=it.textContent||it.innerText||Qe}Le(Qe)},Ne=tt=>{console.log("编辑用户消息:",tt.content),d.value=tt.content,Vt(()=>{const Qe=document.querySelector(".message-input");Qe&&(Qe.focus(),Qe.setSelectionRange(Qe.value.length,Qe.value.length))})},ht=()=>{if(console.log("点击语音按钮"),!m.value){Ee("当前浏览器不支持语音识别");return}b.value?Lt():Rt()},Rt=()=>{console.log("开始语音输入"),S()||Ee("语音识别启动失败,请检查麦克风权限")},Lt=()=>{console.log("停止语音输入"),k(),w.value.trim()&&(d.value=w.value)},tn=tt=>{if(y.value===tt.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}else{if(y.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}const Qe=tt.displayContent||tt.content;if(Qe&&Qe.trim()){const it=Qe.replace(/<[^>]*>/g,""),Mt=new SpeechSynthesisUtterance(it);Mt.lang="zh-CN",Mt.rate=.9,Mt.pitch=1,Mt.volume=1,Mt.onend=()=>{y.value=null},Mt.onerror=()=>{y.value=null};try{window.speechSynthesis&&window.speechSynthesis.speak(Mt)}catch{}y.value=tt.id}}},Wt=tt=>y.value===tt,zt=async tt=>{if(console.log("重新生成回复,消息索引:",tt),tt>0){const Qe=u.value[tt-1];if(Qe&&Qe.type==="user"){console.log("重新发送用户消息:",Qe.content),u.value.splice(tt,1);const it={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(it),ce();try{const Mt=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:Qe.content,business_type:1});if(console.log("重新生成AI回复响应:",Mt),Mt.statusCode===200){Mt.data&&Mt.data.ai_conversation_id&&(f.value=Mt.data.ai_conversation_id),Mt.data&&Mt.data.ai_message_id&&(Z.value=Mt.data.ai_message_id,console.log("重新生成设置AI消息ID:",Z.value));const Gt=Mt.data?Mt.data.reply:Mt.reply||"";console.log("重新生成AI回复内容:",Gt);const En=be(Gt),Nn=[];let xt="",sn=!1,vt="";for(let tr=0;tr<En.length;tr++){const cn=En[tr];cn==="<"?(xt&&!sn&&(Nn.push({type:"text",content:xt}),xt=""),sn=!0,vt=cn):cn===">"?(vt+=cn,Nn.push({type:"tag",content:vt}),sn=!1,vt=""):sn?vt+=cn:xt+=cn}xt&&Nn.push({type:"text",content:xt}),vt&&Nn.push({type:"tag",content:vt}),console.log("重新生成分割后的文本块:",Nn);let Bt=0,mn=0;const Mn=setInterval(()=>{if(Bt<Nn.length){const tr=Nn[Bt];if(tr.type==="tag")console.log("显示HTML标签:",tr.content),it.displayContent+=tr.content,Bt++,mn=0;else if(mn<tr.content.length){const cn=it.displayContent+tr.content[mn];it.displayContent=cn,mn++}else Bt++,mn=0;u.value=[...u.value],ce()}else it.isTyping=!1,it.content=Gt,clearInterval(Mn),console.log("重新生成打字完成,最终displayContent:",it.displayContent),u.value=[...u.value],console.log("重新生成打字完成,强制更新响应式数据"),V.value=it.displayContent,R.value=ge(Gt)||"安全培训大纲",p.value="step2",Q()},50)}else console.error("重新生成失败:",Mt),it.content="抱歉,重新生成失败,请稍后再试。",it.displayContent="抱歉,重新生成失败,请稍后再试。",it.isTyping=!1,u.value=[...u.value]}catch(Mt){console.error("重新生成失败:",Mt),it.content="抱歉,网络连接出现问题,请检查网络后重试。",it.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",it.isTyping=!1,u.value=[...u.value]}}}},dt=async tt=>{console.log("点赞消息:",tt.id),tt.userFeedback==="like"?(tt.userFeedback=null,Ee("已取消点赞")):(tt.userFeedback="like",Ee("点赞成功")),u.value=[...u.value]},_t=async tt=>{console.log("点踩消息:",tt.id),tt.userFeedback==="dislike"?(tt.userFeedback=null,Ee("已取消点踩")):(tt.userFeedback="dislike",Ee("点踩成功")),u.value=[...u.value]},ut=(tt,Qe)=>tt?tt.includes("第")?tt:`第${Qe+1}章 ${tt}`:`第${Qe+1}章`,rt=async()=>{try{if(!V.value){Ee("请先生成大纲内容");return}j.value=!0;const tt=re(V.value,R.value||"安全培训大纲"),Qe=`请基于以下安全培训大纲内容生成一份考试试卷:
  2374. 大纲标题:${R.value||"安全培训大纲"}
  2375. 大纲内容:
  2376. ${tt}
  2377. 请生成一份包含以下题型的考试试卷:
  2378. - 单选题:5题,每题5分,共25分
  2379. - 判断题:5题,每题3分,共15分
  2380. - 多选题:5题,每题8分,共40分
  2381. - 简答题:2题,每题10分,共20分
  2382. 试卷总分:100分
  2383. 请严格按照以下JSON格式返回试卷内容,不要包含任何其他文字:
  2384. {
  2385. "title": "${R.value||"安全培训大纲"} - 安全培训考试",
  2386. "totalScore": 100,
  2387. "totalQuestions": 17,
  2388. "singleChoice": {
  2389. "scorePerQuestion": 5,
  2390. "totalScore": 25,
  2391. "count": 5,
  2392. "questions": [
  2393. {
  2394. "text": "题目内容",
  2395. "options": [
  2396. {"key": "A", "text": "选项A内容"},
  2397. {"key": "B", "text": "选项B内容"},
  2398. {"key": "C", "text": "选项C内容"},
  2399. {"key": "D", "text": "选项D内容"}
  2400. ],
  2401. "selectedAnswer": "正确答案选项(A/B/C/D)"
  2402. }
  2403. ]
  2404. },
  2405. "judge": {
  2406. "scorePerQuestion": 3,
  2407. "totalScore": 15,
  2408. "count": 5,
  2409. "questions": [
  2410. {
  2411. "text": "题目内容",
  2412. "selectedAnswer": "正确答案(正确/错误)"
  2413. }
  2414. ]
  2415. },
  2416. "multiple": {
  2417. "scorePerQuestion": 8,
  2418. "totalScore": 40,
  2419. "count": 5,
  2420. "questions": [
  2421. {
  2422. "text": "题目内容",
  2423. "options": [
  2424. {"key": "A", "text": "选项A内容"},
  2425. {"key": "B", "text": "选项B内容"},
  2426. {"key": "C", "text": "选项C内容"},
  2427. {"key": "D", "text": "选项D内容"}
  2428. ],
  2429. "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
  2430. }
  2431. ]
  2432. },
  2433. "short": {
  2434. "scorePerQuestion": 10,
  2435. "totalScore": 20,
  2436. "count": 2,
  2437. "questions": [
  2438. {
  2439. "text": "题目内容",
  2440. "outline": {
  2441. "keyFactors": "答题要点、关键因素、示例答案"
  2442. }
  2443. }
  2444. ]
  2445. }
  2446. }
  2447. 注意:
  2448. 1. 所有题目内容必须基于提供的大纲内容
  2449. 2. 题目难度适中,符合安全培训考试要求
  2450. 3. 严格按照JSON格式返回,不要有多余字符
  2451. 4. 单选题和判断题的选项要合理
  2452. 5. 多选题至少要有2个正确答案
  2453. 6. 简答题要提供清晰的答题要点
  2454. 7. 必须为每道题设置正确答案
  2455. 8. 简答题答案字数不超过500字`;console.log("发送给AI的考试生成提示词:",Qe);const it=await Bn.reProduceSingleQuestion({message:Qe});if(it.statusCode===200){const Mt=it.data.reply,Gt=it.data.ai_conversation_id;console.log("AI生成的考试试卷:",Mt),console.log("AI对话ID:",Gt),f.value=Gt;const En=J(Mt);ue(En),Ee("考试试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(tt){console.error("生成考题失败:",tt),Ee("生成考题失败,请重试")}finally{j.value=!1}},he=async()=>{try{if(!V.value){Ee("暂无大纲内容可复制");return}const tt=document.createElement("div");tt.innerHTML=V.value;let Qe="";const it=(En,Nn=0)=>{for(const xt of En.childNodes)if(xt.nodeType===Node.TEXT_NODE){const sn=xt.textContent?.trim();if(sn){const vt=" ".repeat(Nn);Qe+=`${vt}${sn}
  2456. `}}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("安全培训大纲")&&(Qe+=`${" ".repeat(Nn)}${vt}
  2457. `);continue}it(xt,Nn+1)}};it(tt),Qe=Qe.replace(/\n\s*\n\s*\n/g,`
  2458. `).replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n$/,"").trim();const Mt=`${R.value||"安全培训大纲"}
  2459. ${Qe}`;if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(Mt),Ee("复制成功");return}catch(En){console.warn("Clipboard API 失败,使用降级方案:",En)}const Gt=document.createElement("textarea");Gt.value=Mt,Gt.style.position="fixed",Gt.style.left="-999999px",Gt.style.top="-999999px",document.body.appendChild(Gt),Gt.focus(),Gt.select();try{if(document.execCommand("copy"))Ee("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(En){console.error("传统复制方法也失败:",En),Ee("复制失败,请手动选择文本复制")}finally{document.body.removeChild(Gt)}}catch(tt){console.error("复制大纲失败:",tt),ElMessage.error("复制失败,请手动选择文本复制")}},Je=async()=>{try{if(!V.value){Ee("暂无大纲内容可下载");return}let tt=`<!DOCTYPE html>
  2460. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2461. xmlns:w="urn:schemas-microsoft-com:office:word"
  2462. xmlns="http://www.w3.org/TR/REC-html40">
  2463. <head>
  2464. <meta charset="utf-8">
  2465. <meta name="ProgId" content="Word.Document">
  2466. <meta name="Generator" content="Microsoft Word 15">
  2467. <meta name="Originator" content="Microsoft Word 15">
  2468. <title>${R.value||"安全培训大纲"}</title>
  2469. <!--[if gte mso 9]>
  2470. <xml>
  2471. <w:WordDocument>
  2472. <w:View>Print</w:View>
  2473. <w:Zoom>100</w:Zoom>
  2474. <w:DoNotPromptForConvert/>
  2475. <w:DoNotShowRevisions/>
  2476. <w:DoNotPrintRevisions/>
  2477. <w:DoNotShowComments/>
  2478. <w:DoNotShowInsertionsAndDeletions/>
  2479. <w:DoNotShowPropertyChanges/>
  2480. <w:Compatibility>
  2481. <w:BreakWrappedTables/>
  2482. <w:SnapToGridInCell/>
  2483. <w:WrapTextWithPunct/>
  2484. <w:UseAsianBreakRules/>
  2485. <w:DontGrowAutofit/>
  2486. </w:Compatibility>
  2487. </w:WordDocument>
  2488. </xml>
  2489. <![endif]-->
  2490. <style>
  2491. body {
  2492. font-family: "Microsoft YaHei", Arial, sans-serif;
  2493. font-size: 14px;
  2494. line-height: 1.6;
  2495. margin: 24px;
  2496. color: #000;
  2497. }
  2498. .header {
  2499. text-align: center;
  2500. margin-bottom: 14px;
  2501. }
  2502. .outline-title {
  2503. font-size: 24px;
  2504. font-weight: bold;
  2505. margin-bottom: 14px;
  2506. color: #000;
  2507. }
  2508. h1, h2, h3, h4, h5, h6 {
  2509. color: #000;
  2510. font-weight: bold;
  2511. font-family: "Microsoft YaHei", Arial, sans-serif;
  2512. margin-top: 20px;
  2513. margin-bottom: 15px;
  2514. }
  2515. h1 {
  2516. font-size: 20px;
  2517. border-bottom: 2px solid #000;
  2518. padding-bottom: 10px;
  2519. }
  2520. h2 {
  2521. font-size: 18px;
  2522. margin-top: 20px;
  2523. margin-bottom: 12px;
  2524. }
  2525. h3 {
  2526. font-size: 16px;
  2527. margin-top: 15px;
  2528. margin-bottom: 8px;
  2529. }
  2530. h4 {
  2531. font-size: 14px;
  2532. margin-top: 12px;
  2533. margin-bottom: 6px;
  2534. }
  2535. ul, li {
  2536. color: #000;
  2537. font-family: "Microsoft YaHei", Arial, sans-serif;
  2538. }
  2539. li {
  2540. margin-bottom: 4px;
  2541. }
  2542. .stats {
  2543. background: #f8f9fa;
  2544. padding: 20px;
  2545. border-radius: 8px;
  2546. margin-top: 30px;
  2547. border: 1px solid #ddd;
  2548. }
  2549. .stats h3 {
  2550. color: #2c3e50;
  2551. margin-top: 0;
  2552. font-size: 16px;
  2553. }
  2554. .stats p {
  2555. margin: 8px 0;
  2556. color: #555;
  2557. font-size: 14px;
  2558. }
  2559. </style>
  2560. </head>
  2561. <body>
  2562. <div class="header">
  2563. <div class="outline-title">${R.value||"安全培训大纲"}</div>
  2564. </div>
  2565. `;const Qe=document.createElement("div");Qe.innerHTML=V.value,Qe.querySelectorAll("h1").forEach(xt=>{const sn=xt.textContent?.trim();sn&&sn.includes(R.value||"安全培训大纲")&&xt.remove()});const Mt=Qe.innerHTML.replace(/<h[1-6][^>]*>\s*<\/h[1-6]>/gi,"");tt+=Mt,tt+=`
  2566. </body>
  2567. </html>
  2568. `;const Gt=new Blob([tt],{type:"application/msword"}),En=URL.createObjectURL(Gt),Nn=document.createElement("a");Nn.href=En,Nn.download=`${R.value||"安全培训大纲"}.doc`,document.body.appendChild(Nn),Nn.click(),document.body.removeChild(Nn),URL.revokeObjectURL(En),Ee("下载成功")}catch(tt){console.error("下载大纲失败:",tt),Ee("下载失败,请重试")}},ct=async()=>{try{if(!f.value){Ee("请先开始一个对话");return}L.value=!0;const Qe=`${R.value||"安全培训大纲"}`;console.log("开始生成新大纲:",Qe),console.log("ai_conversation_id:",f.value);const it=await Bn.sendDeepseekMessage({ai_conversation_id:f.value,message:Qe,business_type:1});if(console.log("重新生成大纲响应:",it),it.statusCode===200){const Mt=it.data?it.data.reply:it.reply||"";console.log("重新生成大纲内容:",Mt),it.data&&it.data.ai_message_id&&(Z.value=it.data.ai_message_id,console.log("重新生成大纲设置AI消息ID:",Z.value));const Gt=be(Mt);V.value=Gt;const En=ge(Mt)||"安全培训大纲";R.value=En,console.log("重新生成大纲标题设置为:",En),Ee("新大纲生成成功!"),H.value=null,G.value=""}else console.error("重新生成大纲失败:",it),Ee("重新生成大纲失败,请重试")}catch(tt){console.error("重新生成大纲失败:",tt),Ee("重新生成大纲失败,请重试")}finally{L.value=!1}},Ot=()=>{Ee("请前往电脑端选择模版")},Tn=()=>{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},In=async tt=>{try{console.log("设置评价:",tt);const Qe=Tn();let it;Qe===tt?(it=0,console.log("取消评价,发送0")):(it=tt==="like"?2:3,console.log("设置新评价:",it)),console.log("currentAiMessageId.value",Z.value);const Mt=await Bn.likeAndDislike({id:Z.value,user_feedback:it});Mt.statusCode===200?(console.log("点评成功"),it===0?(G.value="",H.value=0,Ee("点评已取消")):(G.value=tt,H.value=it,Ee("点评成功"))):(console.error("评价保存失败:",Mt),Ee("评价保存失败,请重试"))}catch(Qe){console.error("设置评价失败:",Qe),Ee("评价设置失败,请重试")}},je=()=>{In("like")},ke=()=>{In("dislike")},ye=(tt,Qe)=>{console.log("添加新项目:",tt,Qe),Ee("添加功能开发中...")},Be=()=>{console.log("新建安全培训任务"),o.value=!1,p.value="step1",l.value=!1,u.value=[],f.value=0,d.value="",R.value="",N.value=[],V.value="",H.value=null,G.value="",Z.value=null,i.value.forEach(tt=>{tt.isActive=!1})},ot=async tt=>{if(tt.isActive)return;console.log("点击移动端安全培训历史记录:",tt),i.value.forEach(it=>{it.isActive=it.id===tt.id}),o.value=!1,l.value=!0,p.value="step2",f.value=tt.id,console.log("开始加载历史对话详情,conversation_id:",tt.id);const Qe=await Bn.getHistoryRecord({ai_conversation_id:tt.id,business_type:1});console.log("历史对话详情响应:",Qe),Qe.statusCode===200&&Qe.data&&Qe.data.length>0?(u.value=[],console.log("历史对话数据详情:",Qe.data),Qe.data.forEach((it,Mt)=>{console.log(`处理第${Mt+1}条消息:`,it);const Gt=it.type;if(Gt==="user")console.log("添加用户消息:",it.content),u.value.push({type:"user",content:it.content,id:it.id||Date.now()+Mt,timestamp:it.created_at||it.timestamp});else if(Gt==="ai"){console.log("添加AI消息:",it.content);const En={type:"ai",content:it.content,displayContent:be(it.content),isTyping:!1,id:it.id||Date.now()+Mt+1e3,timestamp:it.created_at||it.timestamp,userFeedback:null};u.value.push(En),Mt===Qe.data.length-1&&(V.value=En.displayContent,R.value=ge(it.content)||"安全培训大纲",console.log("历史记录大纲标题设置为:",R.value),it.id&&(Z.value=it.id,console.log("历史记录设置AI消息ID:",Z.value)),it.user_feedback!==void 0&&(H.value=it.user_feedback,console.log("历史记录设置评价状态:",H.value)))}else console.log("未知消息类型,跳过:",Gt,it)}),console.log("历史对话加载完成,消息数量:",u.value.length),Vt(()=>{ce()})):(console.error("加载历史对话失败或无数据:",Qe),u.value=[])},gt=async(tt,Qe)=>{try{console.log("开始删除移动端历史记录:",tt);const it=await Bn.deleteHistoryRecord({ai_conversation_id:tt.id});it.statusCode===200?(i.value.splice(Qe,1),a.value=Math.max(0,a.value-1),tt.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Be()),console.log("✅ 移动端历史记录删除成功"),Ee("删除成功")):console.error("❌ 删除移动端历史记录失败:",it)}catch(it){console.error("❌ 删除移动端历史记录失败:",it)}},Ke=async()=>{h.value&&(g.value==="history"?await He():g.value==="message"&&await at())},He=async()=>{const{item:tt,index:Qe}=h.value;try{const it=await Bn.deleteHistoryRecord({ai_conversation_id:tt.id});it.statusCode===200?(i.value.splice(Qe,1),tt.isActive&&(u.value=[],f.value=0,l.value=!1,p.value="step1"),console.log("历史记录删除成功"),Ee("删除成功")):(console.error("删除历史记录失败:",it.msg),Ee(it.msg||"删除失败"))}catch(it){console.error("删除历史记录失败:",it),Ee("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},at=async()=>{const{messageIndex:tt}=h.value;try{const Qe=u.value[tt];if(Qe&&Qe.id)try{const it=await Bn.deleteConversation({ai_message_id:Qe.id});it.statusCode===200?(u.value.splice(tt,1),tt>0&&u.value.splice(tt-1,1),console.log("删除成功"),Ee("删除成功")):(console.error("删除失败:",it.msg),Ee("删除失败,请稍后重试"))}catch(it){console.error("删除接口调用失败:",it),Ee("删除失败,请稍后重试")}else console.log("没有id,仅从前端删除"),u.value.splice(tt,1),Ee("删除成功")}catch(Qe){console.error("删除消息失败:",Qe),Ee("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},St=()=>{v.value=!1,h.value=null,g.value=""};return jn(async()=>{try{console.log("🚀 移动端安全培训页面初始化,加载功能卡片..."),await Re(),console.log("✅ 移动端安全培训页面初始化完成")}catch(tt){console.error("❌ 移动端安全培训页面初始化失败:",tt)}}),Yr(()=>{if(y.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}}),Ct(o,async tt=>{tt&&i.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await Q())}),Ct(w,tt=>{!tt||b.value||(d.value=tt)}),Ct(A,tt=>{tt&&(console.error("语音识别错误:",tt),Ee(tt))}),(tt,Qe)=>(F(),K("div",lin,[$e(p2,{title:"安全培训",onBack:n,onMenu:r}),x("div",uin,[$e(q5,{visible:!L.value&&!j.value&&o.value,title:"历史记录",historyData:i.value,loading:s.value,onClose:Qe[0]||(Qe[0]=it=>o.value=!1),onCreateNewTask:Be,onHandleHistoryItem:ot,onDeleteHistoryItem:gt},null,8,["visible","historyData","loading"]),!l.value&&p.value==="step1"?(F(),K("div",cin,[x("div",din,[x("div",fin,[x("img",{src:C(w_),alt:"AI头像",class:"ai-avatar-img"},null,8,pin)]),Qe[8]||(Qe[8]=x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")],-1))]),x("div",hin,[(F(!0),K(Nt,null,on(M.value,(it,Mt)=>(F(),K("div",{key:it.id||Mt,class:"function-card",onClick:Gt=>pe(it.function_title)},[x("div",vin,[x("div",min,[x("img",{src:De(it.function_title),alt:it.function_title,class:"card-icon-img"},null,8,yin)]),x("h4",null,ze(it.function_title),1)]),x("div",bin,[x("p",null,ze(it.function_content),1)])],8,gin))),128)),M.value.length===0?(F(),K("div",{key:0,class:"function-card",onClick:Qe[1]||(Qe[1]=it=>pe("安全培训课程"))},[x("div",win,[x("div",Ain,[x("img",{src:C(A_),alt:"安全培训课程",class:"card-icon-img"},null,8,Cin)]),Qe[9]||(Qe[9]=x("h4",null,"安全培训课程",-1))]),Qe[10]||(Qe[10]=x("div",{class:"card-description"},[x("p",null,"施工安全培训,操作规范学习")],-1))])):xe("",!0),M.value.length===0?(F(),K("div",{key:1,class:"function-card",onClick:Qe[2]||(Qe[2]=it=>pe("安全评估测试"))},[x("div",xin,[x("div",Sin,[x("img",{src:C(C_),alt:"安全评估",class:"card-icon-img"},null,8,Ein)]),Qe[11]||(Qe[11]=x("h4",null,"安全评估测试",-1))]),Qe[12]||(Qe[12]=x("div",{class:"card-description"},[x("p",null,"安全知识测评,能力水平评估")],-1))])):xe("",!0),M.value.length===0?(F(),K("div",{key:2,class:"function-card",onClick:Qe[3]||(Qe[3]=it=>pe("安全法规查询"))},[x("div",kin,[x("div",Tin,[x("img",{src:C(x_),alt:"安全法规",class:"card-icon-img"},null,8,_in)]),Qe[13]||(Qe[13]=x("h4",null,"安全法规查询",-1))]),Qe[14]||(Qe[14]=x("div",{class:"card-description"},[x("p",null,"安全法律法规,标准规范查询")],-1))])):xe("",!0),M.value.length===0?(F(),K("div",{key:3,class:"function-card",onClick:Qe[4]||(Qe[4]=it=>pe("应急处理程序"))},[x("div",Din,[x("div",Iin,[x("img",{src:C(S_),alt:"应急程序",class:"card-icon-img"},null,8,Oin)]),Qe[15]||(Qe[15]=x("h4",null,"应急处理程序",-1))]),Qe[16]||(Qe[16]=x("div",{class:"card-description"},[x("p",null,"事故应急预案,处理流程指导")],-1))])):xe("",!0)])])):l.value&&p.value==="step1"?(F(),K("div",Min,[(F(!0),K(Nt,null,on(u.value,(it,Mt)=>(F(),K("div",{key:Mt,class:oe(["message-item",it.type])},[it.type==="user"?(F(),K("div",Pin,[x("div",Nin,[it.content?(F(),K("div",Rin,ze(it.content),1)):xe("",!0)]),x("div",Bin,[x("button",{class:"action-btn copy-btn",onClick:Gt=>Fe(it),title:"复制"},[x("img",{src:C(r3),alt:"复制",class:"action-icon"},null,8,Fin)],8,Lin),x("button",{class:"action-btn edit-btn",onClick:Gt=>Ne(it),title:"编辑"},[x("img",{src:C(t5),alt:"编辑",class:"action-icon"},null,8,zin)],8,Uin)])])):it.type==="ai"?(F(),K("div",$in,[x("div",jin,[x("img",{src:C(w_),alt:"AI",class:"ai-icon"},null,8,Hin)]),x("div",Win,[x("div",Vin,[it.displayContent.length===0?(F(),K("div",qin,Qe[17]||(Qe[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:it.displayContent,class:"ai-content"},null,8,Gin))]),an(x("div",Kin,null,512),[[Ar,!it.isTyping&&it.displayContent.length>0]]),an(x("div",Yin,[x("div",Qin,[x("button",{class:"action-btn copy-btn",onClick:Gt=>Pe(it),title:"复制"},[x("img",{src:C(r3),alt:"复制",class:"action-icon"},null,8,Xin)],8,Zin),x("button",{class:"action-btn regenerate-btn",onClick:Gt=>zt(Mt),disabled:z.value,title:"重新生成"},[x("img",{src:C(Ej),alt:"重新生成",class:"action-icon"},null,8,ean)],8,Jin),x("button",{class:"action-btn voice-btn",onClick:Gt=>tn(it),title:Wt(it.id)?"停止朗读":"语音朗读"},[x("img",{src:C(n7),alt:"语音朗读",class:"action-icon"},null,8,nan)],8,tan)]),x("div",ran,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:it.userFeedback==="like"}]),onClick:Gt=>dt(it),title:it.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Vy),alt:"点赞",class:"action-icon"},null,8,ian)],10,oan),x("button",{class:oe(["action-btn thumbs-down-btn",{active:it.userFeedback==="dislike"}]),onClick:Gt=>_t(it),title:it.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(qy),alt:"踩",class:"action-icon"},null,8,san)],10,aan)])],512),[[Ar,!it.isTyping&&it.displayContent.length>0]])])])):xe("",!0)],2))),128))])):p.value==="step2"?(F(),K("div",lan,[s.value?(F(),K("div",uan,Qe[18]||(Qe[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:oe(["outline-container",{disabled:L.value||j.value}])},[L.value?(F(),K("div",can,Qe[19]||(Qe[19]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),j.value?(F(),K("div",dan,Qe[20]||(Qe[20]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",fan,[x("div",pan,[x("button",{class:"action-btn exam-btn",onClick:rt,disabled:j.value||L.value||!V.value},[x("img",{src:C(Oke),alt:"考试",class:"action-icon"},null,8,gan),Qe[21]||(Qe[21]=An(" 生成考题 ",-1))],8,han),x("button",{class:"action-btn",onClick:he,disabled:L.value||j.value},[x("img",{src:C(r3),alt:"复制",class:"action-icon"},null,8,man),Qe[22]||(Qe[22]=An(" 复制 ",-1))],8,van),x("button",{class:"action-btn",onClick:Je,disabled:L.value||j.value},[x("img",{src:C(Aq),alt:"下载",class:"action-icon"},null,8,ban),Qe[23]||(Qe[23]=An(" 下载 ",-1))],8,yan)])]),x("div",wan,[N.value&&N.value.length>0?(F(),K("div",Aan,[(F(!0),K(Nt,null,on(N.value,(it,Mt)=>(F(),K(Nt,{key:Mt},[it&&it.sections?(F(),K("div",Can,[x("div",xan,[x("h4",San,ze(ut(it.title,Mt)),1)]),x("div",Ean,[(F(!0),K(Nt,null,on(it.sections,(Gt,En)=>(F(),K(Nt,{key:En},[Gt&&Gt.title!=="内容要点"&&Gt.title!=="概述"&&Gt.title!=="内容详情"?(F(),K("div",kan,[x("div",Tan,[x("div",_an,ze(Gt.title),1)]),Gt&&Gt.subsections&&Gt.subsections.length>0?(F(),K("div",Dan,[(F(!0),K(Nt,null,on(Gt.subsections,(Nn,xt)=>(F(),K(Nt,{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",Ian,[x("div",Oan,[x("div",Man,ze(Nn.title),1)]),Nn.subsubsections&&Nn.subsubsections.length>0?(F(),K("div",Pan,[(F(!0),K(Nt,null,on(Nn.subsubsections,(sn,vt)=>(F(),K("div",{key:vt,class:"subsubsection-item"},[x("div",Nan,[x("div",Ran,ze(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",Ban,[x("button",{class:"add-chapter-btn",onClick:Qe[5]||(Qe[5]=it=>ye("chapter",null))},[x("img",{src:C(Q8),alt:"添加章节",class:"add-icon"},null,8,Lan),Qe[24]||(Qe[24]=x("span",null,"添加新章节",-1))])])):xe("",!0)])):V.value?(F(),K("div",Fan,[x("div",{class:"ai-outline-scrollable",innerHTML:V.value},null,8,Uan)])):(F(),K("div",zan,Qe[25]||(Qe[25]=[ki('<div class="outline-chapter" data-v-4084b918><h4 data-v-4084b918>第一章 安全生产基本原则</h4><div class="outline-section" data-v-4084b918><div class="section-item" data-v-4084b918>1.1 安全生产的重要性</div><div class="section-item" data-v-4084b918>1.2 安全生产相关法规</div><div class="section-subsection" data-v-4084b918><div class="subsection-item" data-v-4084b918>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-4084b918>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-4084b918><h4 data-v-4084b918>第二章 施工现场安全管理</h4><div class="outline-section" data-v-4084b918><div class="section-item" data-v-4084b918>2.1 安全责任制度</div><div class="section-item" data-v-4084b918>2.2 安全教育培训</div><div class="section-item" data-v-4084b918>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-4084b918><h4 data-v-4084b918>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-4084b918><div class="section-item" data-v-4084b918>3.1 高空作业安全</div><div class="section-subsection" data-v-4084b918><div class="subsection-item" data-v-4084b918>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-4084b918>3.2 用电安全</div><div class="section-item" data-v-4084b918>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-4084b918><h4 data-v-4084b918>第四章 安全事故案例分析</h4><div class="outline-section" data-v-4084b918><div class="section-item" data-v-4084b918>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-4084b918><h4 data-v-4084b918>第五章 总结与展望</h4></div>',5)])))]),x("div",$an,[x("button",{class:"action-btn regenerate-btn",onClick:ct,disabled:L.value||j.value},[x("img",{src:C(Ej),alt:"重新生成",class:oe(["action-icon",{rotating:L.value}])},null,10,Han),An(" "+ze(L.value?"生成中...":"生成新大纲"),1)],8,jan),x("button",{class:"action-btn",onClick:Ot,disabled:L.value||j.value},[Qe[26]||(Qe[26]=An(" 选择PPT模版 ",-1)),x("img",{src:C(kj),alt:"箭头",class:"action-icon"},null,8,Van)],8,Wan)]),x("div",qan,[x("button",{class:oe(["action-btn like-btn",{active:Tn()==="like"}]),onClick:je,disabled:L.value||j.value},[x("img",{src:C(Vy),alt:"满意",class:"action-icon"},null,8,Kan)],10,Gan),x("button",{class:oe(["action-btn dislike-btn",{active:Tn()==="dislike"}]),onClick:ke,disabled:L.value||j.value},[x("img",{src:C(qy),alt:"不满意",class:"action-icon"},null,8,Qan)],10,Yan)])],2)])):xe("",!0),p.value==="step1"?(F(),K("div",Zan,[x("div",Xan,[x("div",Jan,[an(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":Qe[6]||(Qe[6]=it=>d.value=it),onKeyup:Lr(ie,["enter"]),disabled:c.value||z.value,maxlength:"2000"},null,40,esn),[[jr,d.value]]),x("button",{class:oe(["voice-btn",{recording:C(b)}]),onClick:ht,disabled:c.value||z.value},[x("div",nsn,[x("img",{src:C(Xf),alt:"语音",class:"action-icon"},null,8,rsn),C(b)?(F(),K("div",osn)):xe("",!0)])],10,tsn),Qe[27]||(Qe[27]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:ie,disabled:c.value||z.value||!d.value.trim()},[x("img",{src:d.value.trim()&&!c.value?C(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,asn)],8,isn)])])])):xe("",!0)]),$e(f2,{visible:O.value,message:I.value,duration:P.value,onClose:Qe[7]||(Qe[7]=it=>O.value=!1)},null,8,["visible","message","duration"]),$e(c0,{visible:v.value,title:W.value,message:U.value,onConfirm:Ke,onCancel:St,onClose:St},null,8,["visible","title","message"])]))}},lsn=Yo(ssn,[["__scopeId","data-v-4084b918"]]),usn={class:"mobile-exam-workshop"},csn={class:"mobile-content"},dsn={key:0,class:"exam-workshop-main"},fsn={class:"config-section"},psn={class:"type-cards"},hsn={class:"type-cards-row"},gsn=["onClick"],vsn=["src","alt"],msn={class:"config-section"},ysn={class:"generation-methods"},bsn=["src"],wsn={class:"config-section"},Asn={class:"exam-config-container"},Csn={class:"config-main"},xsn={class:"config-form"},Ssn={class:"form-group"},Esn={class:"input-wrapper"},ksn=["disabled"],Tsn={class:"form-group"},_sn={class:"score-input"},Dsn=["disabled"],Isn={class:"question-types"},Osn={class:"type-header"},Msn={class:"type-name"},Psn={class:"progress-bar"},Nsn={class:"score-config"},Rsn={class:"config-item"},Bsn=["onUpdate:modelValue","onInput","disabled"],Lsn={class:"config-item"},Fsn=["onUpdate:modelValue","onInput","disabled"],Usn={class:"preview-panel"},zsn={class:"preview-header"},$sn=["src"],jsn={class:"preview-content"},Hsn={class:"preview-title"},Wsn={class:"question-breakdown"},Vsn={class:"breakdown-row"},qsn={class:"breakdown-left"},Gsn={class:"breakdown-right"},Ksn={class:"calculated-score-row"},Ysn={class:"calculated-value"},Qsn={class:"total-score-row"},Zsn={class:"total-value"},Xsn={class:"bottom-actions"},Jsn=["disabled"],eln=["disabled"],tln=["src"],nln={key:1,class:"generating-text"},rln={key:1,class:"exam-detail-main"},oln={class:"detail-header"},iln=["disabled"],aln=["disabled"],sln=["src"],lln={class:"dropdown-menu"},uln=["disabled"],cln=["disabled"],dln={class:"exam-info"},fln={class:"exam-title"},pln={class:"exam-stats"},hln={class:"total-score"},gln={class:"question-count"},vln={class:"generation-time"},mln={class:"question-sections"},yln={key:0,class:"question-section"},bln={class:"section-title"},wln={class:"section-score"},Aln={class:"section-controls"},Cln={class:"question-count-text"},xln=["src"],Sln={key:0,class:"section-content"},Eln={class:"question-header"},kln={class:"question-number"},Tln={class:"question-text"},_ln=["onClick","disabled"],Dln=["src"],Iln={class:"options"},Oln={class:"radio-wrapper"},Mln={key:0,class:"radio-dot"},Pln={class:"option-key"},Nln={class:"option-content"},Rln={class:"option-text"},Bln={key:1,class:"question-section"},Lln={class:"section-title"},Fln={class:"section-score"},Uln={class:"section-controls"},zln={class:"question-count-text"},$ln=["src"],jln={key:0,class:"section-content"},Hln={class:"question-header"},Wln={class:"question-number"},Vln={class:"question-text"},qln=["onClick","disabled"],Gln=["src"],Kln={class:"answer-section"},Yln={class:"answer-value"},Qln={key:2,class:"question-section"},Zln={class:"section-title"},Xln={class:"section-score"},Jln={class:"section-controls"},eun={class:"question-count-text"},tun=["src"],nun={key:0,class:"section-content"},run={class:"question-header"},oun={class:"question-number"},iun={class:"question-text"},aun=["onClick","disabled"],sun=["src"],lun={class:"options"},uun={class:"radio-wrapper"},cun={key:0,class:"radio-dot"},dun={class:"option-key"},fun={class:"option-content"},pun={class:"option-text"},hun={class:"answer-section"},gun={class:"answer-value"},vun={key:3,class:"question-section"},mun={class:"section-title"},yun={class:"section-score"},bun={class:"section-controls"},wun={class:"question-count-text"},Aun=["src"],Cun={key:0,class:"section-content"},xun={class:"question-header"},Sun={class:"question-number"},Eun={class:"question-text"},kun=["onClick","disabled"],Tun=["src"],_un={key:0,class:"answer-outline"},Dun={class:"outline-section"},Iun={class:"outline-section"},Oun={__name:"m-ExamWorkshop",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{h.value||(o.value=!0)},o=Y(!1),i=Y(!1),a=Y(""),s=(rt,he=2e3)=>{a.value=rt,i.value=!0,he>0&&setTimeout(()=>{i.value=!1},he)},l=()=>{i.value=!1},u=Y([]),d=Y(0),c=Y(!1);jn(async()=>{R={questionTypes:JSON.parse(JSON.stringify(p.value)),totalScore:A.value,selectedProjectType:b.value,examName:w.value},console.log("初始配置已保存:",R),document.addEventListener("click",ce),console.log("🚀 移动端考试工坊页面初始化完成")}),hl(()=>{document.removeEventListener("click",ce)});const f={bridge:{name:"桥梁",icon:hke},tunnel:{name:"隧道",icon:gke},equipment:{name:"特种设备",icon:vke},"gas-station":{name:"加油站",icon:mke},highway:{name:"高速运营公路",icon:xj},comprehensive:{name:"综合",icon:yke}},p=Y([{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=Y(!1),h=Y(!1);Y(!1);const g=Y(0),y=Y(!1),m=Y("ai"),b=Y("bridge"),w=Y("桥梁工程施工技术考核"),A=Y(100),S=Y(""),k=Y(null),O=Y(""),I=Y(null),P=Y({single:!0,judge:!0,multiple:!0,short:!0}),M=Y({}),_=Y({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 R=null;const N=ee(()=>p.value.reduce((rt,he)=>rt+he.scorePerQuestion*he.questionCount,0)),V=rt=>{if(!rt)return"新对话";const he=rt.replace(/<[^>]*>/g,"").trim();return he.length>30?he.substring(0,30)+"...":he},L=()=>{console.log("新建考试工坊任务"),o.value=!1,m.value="ai",b.value="bridge",w.value="桥梁工程施工技术考核",A.value=100,v.value=!1,k.value=null,O.value="",g.value=0,R&&(p.value=JSON.parse(JSON.stringify(R.questionTypes)),A.value=R.totalScore,b.value=R.selectedProjectType,w.value=R.examName),u.value.forEach(rt=>{rt.isActive=!1})},j=async rt=>{if(!rt.isActive)if(console.log("点击移动端考试工坊历史记录:",rt),u.value.forEach(he=>{he.isActive=he.id===rt.id}),o.value=!1,g.value=rt.id,S.value=rt.time,rt.rawData&&rt.rawData.content)try{const he=JSON.parse(rt.rawData.content);_.value=he,v.value=!0}catch(he){console.error("解析历史试卷数据失败:",he),v.value=!0}else v.value=!0},H=async(rt,he)=>{try{console.log("开始删除移动端历史记录:",rt);const Je=await Bn.deleteHistoryRecord({ai_conversation_id:rt.id});Je.statusCode===200?(u.value.splice(he,1),d.value=Math.max(0,d.value-1),rt.isActive&&(console.log("删除激活的历史记录,执行新建任务"),L()),console.log("✅ 移动端历史记录删除成功"),s("删除成功")):console.error("❌ 删除移动端历史记录失败:",Je)}catch(Je){console.error("❌ 删除移动端历史记录失败:",Je)}},G=rt=>{if(!rt)return null;if(typeof rt=="number"){const he=rt<1e12?rt*1e3:rt;return new Date(he)}if(typeof rt=="string"){let he=new Date(rt);if(!isNaN(he))return he;const Je=rt.replace(/-/g,"/").replace("T"," ");if(he=new Date(Je),!isNaN(he))return he}return new Date(rt)},Z=rt=>{const he=G(rt);if(!he||isNaN(he))return"未知时间";const Je=new Date,ct=he.toDateString()===Je.toDateString(),Ot=new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()-1),Tn=he.toDateString()===Ot.toDateString();if(ct)return he.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Tn)return"昨天 "+he.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const In=he.getMonth()+1,je=he.getDate(),ke=he.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${In}月${je}日 ${ke}`},z=async()=>{try{console.log("📋 开始获取移动端考试工坊历史记录列表..."),c.value=!0;const rt=performance.now(),he=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:3}),Je=performance.now();console.log("📋 移动端考试工坊历史记录API调用耗时: "+(Je-rt).toFixed(2)+"ms"),console.log("📋 移动端历史记录列表响应:",he),he.statusCode===200?(d.value=he.total||0,u.value=he.data.map(ct=>({id:ct.id,title:V(ct.content),time:Z(ct.updated_at),businessType:ct.business_type,isActive:!1,rawData:ct})),g.value&&u.value.forEach(ct=>{ct.isActive=ct.id===g.value}),console.log("✅ 移动端考试工坊历史记录列表已设置: "+u.value.length+"条记录,总数: "+d.value)):console.error("❌ 获取移动端历史记录列表失败:",he.statusCode)}catch(rt){console.error("❌ 获取移动端历史记录列表失败:",rt)}finally{c.value=!1}},U=rt=>{m.value=rt,console.log("选择功能:",rt)},W=rt=>{b.value=rt,console.log("选择工程类型:",f[rt].name);const he=f[rt].name;w.value=he+"工程施工技术考核",_.value&&(_.value.title=w.value)},re=()=>{w.value.length>32&&(w.value=w.value.slice(0,32))},J=()=>{A.value>1e3&&(A.value=1e3,console.warn("试卷总分不能超过1000分")),A.value<1&&(A.value=1)},te=rt=>{rt.scorePerQuestion>99&&(rt.scorePerQuestion=99,console.warn(`${rt.name}每题分数不能超过99分`)),rt.scorePerQuestion<1&&(rt.scorePerQuestion=1)},X=rt=>{rt.questionCount>99&&(rt.questionCount=99,console.warn(`${rt.name}题目数量不能超过99题`)),rt.questionCount<1&&(rt.questionCount=1)},ue=()=>{const rt=f[b.value].name;w.value=rt+"工程施工技术考核",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("清除设置")},me=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 he of p.value){if(he.scorePerQuestion>99){console.warn(`${he.name}每题分数不能超过99分`);return}if(he.questionCount>99){console.warn(`${he.name}题目数量不能超过99题`);return}}if(p.value.reduce((he,Je)=>he+Je.scorePerQuestion*Je.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:O.value});try{h.value=!0;const he=m.value==="ppt"?"ppt":"ai",Je=await Me(he);console.log("发送给AI的考试生成提示词:",Je);const ct=await Bn.sendDeepseekMessage({business_type:3,message:Je,exam_name:w.value,ai_conversation_id:g.value});if(ct.statusCode===200){const Ot=ct.data.reply,Tn=ct.data.ai_conversation_id;console.log("AI生成的考试试卷:",Ot),console.log("AI对话ID:",Tn),g.value=Tn;const In=Ae(Ot);_.value=In,_.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(he){console.error("生成试卷失败:",he)}finally{h.value=!1}},Me=async(rt="ai")=>{const he=p.value.map(ct=>({name:ct.name,romanNumeral:ct.romanNumeral,questionCount:Number(ct.questionCount)||0,scorePerQuestion:Number(ct.scorePerQuestion)||0})),Je={mode:rt,client:"mobile",projectType:f[b.value]?.name||"",examTitle:w.value,totalScore:A.value,questionTypes:he,pptContent:O.value||""};try{const ct=await Bn.buildExamPrompt(Je);if(!ct?.data?.prompt)throw new Error(ct?.msg||"提示词构建失败");return ct.data.prompt}catch(ct){throw console.error("获取移动端提示词失败:",ct),ct}},Ae=rt=>{try{const he=rt.match(/\{[\s\S]*\}/);if(he){const Je=JSON.parse(he[0]);return ge(Je),Je}else throw new Error("未找到有效的JSON数据")}catch(he){return console.error("解析AI回复失败:",he),_e()}},ge=rt=>{rt.singleChoice&&rt.singleChoice.questions&&rt.singleChoice.questions.forEach(he=>{he.selectedAnswer||(he.selectedAnswer=he.options&&he.options.length>0?he.options[0].key:"A")}),rt.judge&&rt.judge.questions&&rt.judge.questions.forEach(he=>{he.selectedAnswer||(he.selectedAnswer=Math.random()>.5?"正确":"错误")}),rt.multiple&&rt.multiple.questions&&rt.multiple.questions.forEach(he=>{(!he.selectedAnswers||!Array.isArray(he.selectedAnswers))&&(he.selectedAnswers=he.options&&he.options.length>1?[he.options[0].key,he.options[1].key]:[])}),rt.short&&rt.short.questions&&rt.short.questions.forEach(he=>{he.outline||(he.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"})})},_e=()=>({title:w.value,totalScore:A.value,totalQuestions:p.value.reduce((rt,he)=>rt+he.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:[]}}),Q=()=>{v.value=!1},be=rt=>{P.value[rt]=!P.value[rt]},De=async(rt,he)=>{try{console.log(`刷新${rt}类型第${he+1}题`);const Je=`${rt}_${he}`;M.value[Je]=!0;const ct=Lt(rt,he),Ot=await Bn.reProduceSingleQuestion({message:ct});if(Ot.statusCode===200){const Tn=Ot.data.reply;console.log("AI重新生成的题目:",Tn);const In=dt(Tn,rt);if(console.log("解析后的新题目:",In),In)_t(rt,he,In),console.log("准备保存到后端,对话ID:",g.value),await ut(rt,he,In),s("题目重新生成成功!"),await z(),g.value>0&&(u.value.forEach(je=>{je.isActive=je.id===g.value}),console.log("设置最新历史记录为激活状态,conversationId:",g.value));else throw new Error("解析新题目失败")}else throw new Error("AI接口调用失败")}catch(Je){console.error("刷新题目失败:",Je),s("重新生成题目失败,请重试")}finally{setTimeout(()=>{const Je=`${rt}_${he}`;M.value[Je]=!1},1e3)}},pe=()=>{h.value||(y.value=!y.value)},ie=()=>{y.value=!1},ce=rt=>{rt.target.closest(".download-dropdown")||(y.value=!1)},Re=async()=>{try{ie(),h.value=!0,console.log("开始导出Word格式试卷(有答案)..."),await Le(!0)}catch(rt){console.error("导出考试文件失败:",rt),s("导出失败,请重试")}finally{h.value=!1}},Ee=async()=>{try{ie(),h.value=!0,console.log("开始导出Word格式试卷(无答案)..."),await Le(!1)}catch(rt){console.error("导出考试文件失败:",rt),s("导出失败,请重试")}finally{h.value=!1}},Le=async(rt=!0)=>{try{const he=Fe(_.value,rt),Je=new Blob([he],{type:"application/msword"}),ct=URL.createObjectURL(Je),Ot=document.createElement("a"),Tn=rt?`${_.value.title}_有答案_${S.value.replace(/[:\s]/g,"_")}.doc`:`${_.value.title}_无答案_${S.value.replace(/[:\s]/g,"_")}.doc`;Ot.setAttribute("href",ct),Ot.setAttribute("download",Tn),Ot.style.visibility="hidden",document.body.appendChild(Ot),Ot.click(),document.body.removeChild(Ot),s(`导出成功${rt?"(含答案)":"(不含答案)"}`)}catch(he){console.error("模拟Word导出失败:",he),s("Word导出失败,请稍后重试")}},Fe=(rt,he=!0)=>{const Je=_.value;let ct=`<!DOCTYPE html>
  2569. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2570. xmlns:w="urn:schemas-microsoft-com:office:word"
  2571. xmlns="http://www.w3.org/TR/REC-html40">
  2572. <head>
  2573. <meta charset="utf-8">
  2574. <meta name="ProgId" content="Word.Document">
  2575. <meta name="Generator" content="Microsoft Word 15">
  2576. <meta name="Originator" content="Microsoft Word 15">
  2577. <title>${Je.title||"试卷"}</title>
  2578. <!--[if gte mso 9]>
  2579. <xml>
  2580. <w:WordDocument>
  2581. <w:View>Print</w:View>
  2582. <w:Zoom>100</w:Zoom>
  2583. <w:DoNotPromptForConvert/>
  2584. <w:DoNotShowRevisions/>
  2585. <w:DoNotPrintRevisions/>
  2586. <w:DoNotShowComments/>
  2587. <w:DoNotShowInsertionsAndDeletions/>
  2588. <w:DoNotShowPropertyChanges/>
  2589. <w:Compatibility>
  2590. <w:BreakWrappedTables/>
  2591. <w:SnapToGridInCell/>
  2592. <w:WrapTextWithPunct/>
  2593. <w:UseAsianBreakRules/>
  2594. <w:DontGrowAutofit/>
  2595. </w:Compatibility>
  2596. </w:WordDocument>
  2597. </xml>
  2598. <![endif]-->
  2599. <style>
  2600. body {
  2601. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  2602. font-size: 14px;
  2603. line-height: 1.6;
  2604. margin: 24px;
  2605. color: #000;
  2606. }
  2607. .header {
  2608. text-align: center;
  2609. margin-bottom: 14px;
  2610. }
  2611. .exam-title {
  2612. font-size: 24px;
  2613. font-weight: bold;
  2614. margin-bottom: 14px;
  2615. color: #000;
  2616. }
  2617. .exam-info {
  2618. font-size: 14px;
  2619. color: #666;
  2620. margin-bottom: 14px;
  2621. }
  2622. .section {
  2623. margin-bottom: 14px;
  2624. }
  2625. .section-title {
  2626. font-size: 18px;
  2627. font-weight: bold;
  2628. margin-bottom: 14px;
  2629. color: #000;
  2630. border-bottom: 2px solid #3e7bfa;
  2631. padding-bottom: 5px;
  2632. }
  2633. .question {
  2634. margin-bottom: 14px;
  2635. padding: 10px;
  2636. background-color: #f9f9f9;
  2637. border-left: 4px solid #3e7bfa;
  2638. }
  2639. .question-header {
  2640. display: flex;
  2641. align-items: flex-start;
  2642. gap: 8px;
  2643. margin-bottom: 14px;
  2644. }
  2645. .question-number {
  2646. font-weight: bold;
  2647. color: #3e7bfa;
  2648. flex-shrink: 0;
  2649. }
  2650. .question-text {
  2651. flex: 1;
  2652. }
  2653. .options {
  2654. margin-left: 12px;
  2655. }
  2656. .option {
  2657. margin-bottom: 5px;
  2658. }
  2659. .answer {
  2660. margin-top: 10px;
  2661. padding: 8px;
  2662. background: #e8f4fd;
  2663. border-left: 3px solid #3e7bfa;
  2664. font-weight: bold;
  2665. color: #0066cc;
  2666. }
  2667. .outline-section {
  2668. margin: 10px 0;
  2669. padding: 8px;
  2670. background: #f0f8ff;
  2671. border-radius: 4px;
  2672. }
  2673. </style>
  2674. </head>
  2675. <body>
  2676. <div class="header">
  2677. <div class="exam-title">${Je.title||"考试试卷"}</div>
  2678. <div class="exam-info">
  2679. 总分:${Je.totalScore||0}分 | 总题数:${Je.totalQuestions||0}题 | 生成时间:${S.value}
  2680. </div>
  2681. </div>`;return Je.singleChoice&&Je.singleChoice.questions.length>0&&(ct+=`
  2682. <div class="section">
  2683. <div class="section-title">一、单选题(${Je.singleChoice.count}题,每题${Je.singleChoice.scorePerQuestion}分,共${Je.singleChoice.totalScore}分)</div>`,Je.singleChoice.questions.forEach((Ot,Tn)=>{ct+=`
  2684. <div class="question">
  2685. <div class="question-header">
  2686. <span class="question-number">${Tn+1}.</span>
  2687. <span class="question-text">${Ot.text}</span>
  2688. </div>
  2689. <div class="options">`,Ot.options.forEach(In=>{ct+=`
  2690. <div class="option">${In.key}. ${In.text}</div>`}),ct+=`
  2691. </div>
  2692. ${he?`<div class="answer">正确答案:${Ot.selectedAnswer}</div>`:""}
  2693. </div>`}),ct+=`
  2694. </div>`),Je.judge&&Je.judge.questions.length>0&&(ct+=`
  2695. <div class="section">
  2696. <div class="section-title">二、判断题(${Je.judge.count}题,每题${Je.judge.scorePerQuestion}分,共${Je.judge.totalScore}分)</div>`,Je.judge.questions.forEach((Ot,Tn)=>{ct+=`
  2697. <div class="question">
  2698. <div class="question-header">
  2699. <span class="question-number">${Tn+1}.</span>
  2700. <span class="question-text">${Ot.text}</span>
  2701. </div>
  2702. ${he?`<div class="answer">正确答案:${Ot.selectedAnswer}</div>`:""}
  2703. </div>`}),ct+=`
  2704. </div>`),Je.multiple&&Je.multiple.questions.length>0&&(ct+=`
  2705. <div class="section">
  2706. <div class="section-title">三、多选题(${Je.multiple.count}题,每题${Je.multiple.scorePerQuestion}分,共${Je.multiple.totalScore}分)</div>`,Je.multiple.questions.forEach((Ot,Tn)=>{ct+=`
  2707. <div class="question">
  2708. <div class="question-header">
  2709. <span class="question-number">${Tn+1}.</span>
  2710. <span class="question-text">${Ot.text}</span>
  2711. </div>
  2712. <div class="options">`,Ot.options.forEach(In=>{ct+=`
  2713. <div class="option">${In.key}. ${In.text}</div>`}),ct+=`
  2714. </div>
  2715. ${he?`<div class="answer">正确答案:${(Ot.selectedAnswers||[]).join(", ")}</div>`:""}
  2716. </div>`}),ct+=`
  2717. </div>`),Je.short&&Je.short.questions.length>0&&(ct+=`
  2718. <div class="section">
  2719. <div class="section-title">四、简答题(${Je.short.count}题,每题${Je.short.scorePerQuestion}分,共${Je.short.totalScore}分)</div>`,Je.short.questions.forEach((Ot,Tn)=>{ct+=`
  2720. <div class="question">
  2721. <div class="question-header">
  2722. <span class="question-number">${Tn+1}.</span>
  2723. <span class="question-text">${Ot.text}</span>
  2724. </div>`,Ot.outline&&he&&(ct+=`
  2725. <div class="outline-section">
  2726. <strong>关键要点:</strong>${Rt(Ot.outline.keyFactors)}
  2727. </div>
  2728. <div class="outline-section">
  2729. <strong>具体措施:</strong>${Rt(Ot.outline.measures)}
  2730. </div>`),ct+=`
  2731. </div>`}),ct+=`
  2732. </div>`),ct+=`
  2733. </body>
  2734. </html>`,ct},Pe=async rt=>{const he=rt.target.files[0];if(!he)return;const Je=20*1024*1024;if(he.size>Je){console.error("文件大小不能超过20MB");return}if(!["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"].includes(he.type)){console.error("请选择PPT文件(.ppt/.pptx)");return}try{k.value={name:he.name,size:he.size,icon:"📋"};const Ot=await Ne(he);O.value=Ot;const Tn=he.name.replace(/\.[^/.]+$/,"");w.value=Tn+"培训考核",console.log("✅ PPT文件上传成功:",he.name)}catch(Ot){console.error("PPT文件处理失败:",Ot),k.value=null}},Ne=async rt=>new Promise((he,Je)=>{const ct=new FileReader;ct.onload=async Ot=>{try{console.log("开始解析PPT文件...");const Tn=Ot.target.result,In=await ht(Tn);he(In)}catch(Tn){console.error("PPT解析失败:",Tn),Je(Tn)}},ct.onerror=()=>{Je(new Error("文件读取失败"))},ct.readAsArrayBuffer(rt)}),ht=async rt=>"提取的文本内容:PPT培训课件主要包含以下内容:1. 安全培训概述- 培训目标和意义- 培训对象和要求- 培训计划和安排2. 基础知识- 安全规章制度- 危险源识别- 应急处理方法3. 操作技能- 标准化操作流程- 安全操作规范- 事故预防措施4. 考核要求- 理论知识考核- 实操技能考核- 综合评估标准此PPT内容涵盖了安全培训的各个方面,适合制作综合性的考试题目。",Rt=rt=>rt?rt.toString().replace(/[\[\]]/g,"").replace(/[""]/g,"").replace(/['']/g,"").trim():"",Lt=(rt,he)=>{const Je=f[b.value].name,ct=tn(rt),Ot=Wt(rt),Tn=zt(rt,he);let In=`请基于以下${Je}工程的${ct}题目,重新生成一道相似主题的题目,要求如下:
  2735. 当前题目参考:
  2736. ${JSON.stringify(Tn,null,2)}
  2737. 题目类型:${ct}
  2738. 每题分值:${Ot}分
  2739. 题目序号:第${he+1}题
  2740. 请严格按照以下JSON格式返回,不要包含任何其他文字:
  2741. `;return rt==="single"?In+=`{
  2742. "text": "题目内容",
  2743. "options": [
  2744. {"key": "A", "text": "选项A"},
  2745. {"key": "B", "text": "选项B"},
  2746. {"key": "C", "text": "选项C"},
  2747. {"key": "D", "text": "选项D"}
  2748. ],
  2749. "selectedAnswer": "A"
  2750. }`:rt==="judge"?In+=`{
  2751. "text": "题目内容",
  2752. "selectedAnswer": "正确"
  2753. }`:rt==="multiple"?In+=`{
  2754. "text": "题目内容",
  2755. "options": [
  2756. {"key": "A", "text": "选项A"},
  2757. {"key": "B", "text": "选项B"},
  2758. {"key": "C", "text": "选项C"},
  2759. {"key": "D", "text": "选项D"}
  2760. ],
  2761. "selectedAnswers": ["A", "B"]
  2762. }`:rt==="short"&&(In+=`{
  2763. "text": "题目内容",
  2764. "outline": {
  2765. "keyFactors": "关键要点内容",
  2766. "measures": "具体措施内容"
  2767. }
  2768. }`),In},tn=rt=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[rt]||rt,Wt=rt=>_.value[rt]?_.value[rt].scorePerQuestion:5,zt=(rt,he)=>_.value[rt]&&_.value[rt].questions?_.value[rt].questions[he]:null,dt=(rt,he)=>{try{console.log("AI回复内容:",rt),console.log("题目类型:",he);const Je=rt.match(/\{[\s\S]*\}/);if(Je){const ct=JSON.parse(Je[0]);return console.log("解析后的题目数据:",ct),he==="short"&&ct.outline&&ct.outline.keyFactors&&(console.log("简答题keyFactors原始值:",ct.outline.keyFactors),Array.isArray(ct.outline.keyFactors)&&(ct.outline.keyFactors=ct.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",ct.outline.keyFactors))),ct}else return console.error("未找到有效的JSON数据"),null}catch(Je){return console.error("解析AI回复失败:",Je),null}},_t=(rt,he,Je)=>{let ct;rt==="single"?(ct={...Je},(!ct.selectedAnswer||ct.selectedAnswer==="")&&(ct.selectedAnswer=ct.options&&ct.options.length>0?ct.options[0].key:"A"),_.value.singleChoice.questions[he]=ct):rt==="judge"?(ct={...Je},(!ct.selectedAnswer||ct.selectedAnswer==="")&&(ct.selectedAnswer=Math.random()>.5?"正确":"错误"),_.value.judge.questions[he]=ct):rt==="multiple"?(ct={...Je},(!ct.selectedAnswers||!Array.isArray(ct.selectedAnswers))&&(ct.selectedAnswers=ct.options&&ct.options.length>1?[ct.options[0].key,ct.options[1].key]:[]),_.value.multiple.questions[he]=ct):rt==="short"&&(ct={...Je},ct.outline||(ct.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"}),_.value.short.questions[he]=ct),console.log(`更新${rt}第${he+1}题:`,ct)},ut=async(rt,he,Je)=>{console.log("对话id",g.value);try{if(!g.value){console.warn("没有找到对话ID,跳过保存");return}const ct=JSON.stringify(_.value);console.log("保存到 /re_modify_question 的内容:",ct);const Ot=await Bn.reModifyQuestion({ai_conversation_id:g.value,content:ct});Ot.statusCode===200?console.log("修改已保存到后端"):console.error("保存到后端失败:",Ot)}catch(ct){console.error("保存到后端失败:",ct)}};return jn(async()=>{try{console.log("🚀 移动端考试工坊页面初始化完成")}catch(rt){console.error("❌ 移动端考试工坊页面初始化失败:",rt)}}),Ct(o,async rt=>{rt&&u.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await z())}),(rt,he)=>(F(),K("div",usn,[$e(p2,{title:"考试工坊",onBack:n,onMenu:r}),x("div",csn,[$e(q5,{visible:!h.value&&o.value,title:"历史记录",historyData:u.value,loading:c.value,onClose:he[0]||(he[0]=Je=>o.value=!1),onCreateNewTask:L,onHandleHistoryItem:j,onDeleteHistoryItem:H},null,8,["visible","historyData","loading"]),$e(f2,{visible:i.value,message:a.value,onClose:l},null,8,["visible","message"]),v.value?xe("",!0):(F(),K("div",dsn,[x("div",fsn,[he[9]||(he[9]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",psn,[x("div",hsn,[(F(),K(Nt,null,on(f,(Je,ct)=>x("div",{key:ct,class:oe(["type-card",{active:b.value===ct}]),onClick:Ot=>h.value||k.value?null:W(ct),style:Jt({cursor:h.value||k.value?"not-allowed":"pointer",opacity:h.value||k.value?"0.5":"1"})},[x("img",{src:Je.icon,alt:Je.name,class:"type-icon"},null,8,vsn),x("span",null,ze(Je.name),1)],14,gsn)),64))])])]),x("div",msn,[he[11]||(he[11]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",ysn,[x("div",{class:oe(["method-card",{active:m.value==="ai"}]),onClick:he[1]||(he[1]=Je=>h.value||k.value?null:U("ai")),style:Jt({cursor:h.value||k.value?"not-allowed":"pointer",opacity:h.value||k.value?"0.5":"1"})},[x("img",{src:C(xj),alt:"智能生成试卷",class:"method-icon"},null,8,bsn),he[10]||(he[10]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6)])]),x("div",wsn,[he[24]||(he[24]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",Asn,[x("div",Csn,[x("div",xsn,[x("div",Ssn,[he[12]||(he[12]=x("label",null,"试卷名称",-1)),x("div",Esn,[an(x("input",{"onUpdate:modelValue":he[2]||(he[2]=Je=>w.value=Je),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:re,disabled:h.value||k.value},null,40,ksn),[[jr,w.value]]),x("span",{class:oe(["char-count",{warning:w.value.length>=18}])},ze(w.value.length)+"/32",3)])]),x("div",Tsn,[he[14]||(he[14]=x("label",null,"试卷总分",-1)),x("div",_sn,[an(x("input",{"onUpdate:modelValue":he[3]||(he[3]=Je=>A.value=Je),type:"number",class:"config-input",min:"1",max:"1000",onInput:J,disabled:h.value||k.value},null,40,Dsn),[[jr,A.value]]),he[13]||(he[13]=x("span",{class:"unit"},"分",-1))])])]),he[19]||(he[19]=x("div",{class:"question-types-title"},"题型选择与分数分配",-1)),x("div",Isn,[(F(!0),K(Nt,null,on(p.value,(Je,ct)=>(F(),K("div",{class:"question-type",key:ct},[x("div",Osn,[x("span",Msn,ze(Je.name),1),x("div",Psn,[x("div",{class:"progress-fill",style:Jt({width:Je.scorePerQuestion*Je.questionCount/A.value*100+"%"})},null,4)])]),x("div",Nsn,[x("div",Rsn,[he[15]||(he[15]=x("span",null,"每题",-1)),an(x("input",{"onUpdate:modelValue":Ot=>Je.scorePerQuestion=Ot,type:"number",class:"score-input-field",min:"1",max:"99",onInput:Ot=>te(Je),disabled:h.value||k.value},null,40,Bsn),[[jr,Je.scorePerQuestion]]),he[16]||(he[16]=x("span",null,"分",-1))]),x("div",Lsn,[he[17]||(he[17]=x("span",null,"一共",-1)),an(x("input",{"onUpdate:modelValue":Ot=>Je.questionCount=Ot,type:"number",class:"count-input-field",min:"1",max:"99",onInput:Ot=>X(Je),disabled:h.value||k.value},null,40,Fsn),[[jr,Je.questionCount]]),he[18]||(he[18]=x("span",null,"题",-1))])])]))),128))])]),x("div",Usn,[x("div",zsn,[x("img",{src:C(bke),alt:"预览",class:"preview-icon"},null,8,$sn),he[20]||(he[20]=x("h3",null,"预览",-1))]),x("div",jsn,[x("h4",Hsn,ze(w.value||"试卷名称"),1),x("div",Wsn,[(F(!0),K(Nt,null,on(p.value,(Je,ct)=>(F(),K("div",{class:"breakdown-item",key:ct},[x("div",Vsn,[x("span",qsn,ze(Je.romanNumeral)+"、"+ze(Je.name)+" (每题"+ze(Je.scorePerQuestion)+"分,共"+ze(Je.scorePerQuestion*Je.questionCount)+"分)",1),x("span",Gsn,ze(Je.questionCount)+"题",1)])]))),128))]),he[23]||(he[23]=x("div",{class:"divider"},null,-1)),x("div",Ksn,[he[21]||(he[21]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",Ysn,ze(N.value)+"分",1)]),x("div",Qsn,[he[22]||(he[22]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",Zsn,ze(A.value)+"分",1)])])])]),x("div",Xsn,[x("button",{class:"clear-btn",onClick:ue,disabled:h.value||k.value}," 一键清除 ",8,Jsn),x("button",{class:"generate-btn",onClick:me,disabled:h.value},[h.value?(F(),K("span",nln,"生成中...")):(F(),K("img",{key:0,src:C(wke),alt:"生成试卷",class:"generate-icon"},null,8,tln))],8,eln)])])])),v.value?(F(),K("div",rln,[x("div",oln,[x("button",{class:"back-btn",onClick:Q,disabled:h.value},he[25]||(he[25]=[x("span",{class:"back-arrow"},"←",-1),An(" 返回修改 ",-1)]),8,iln),x("div",{class:oe(["download-dropdown",{disabled:h.value,show:y.value}]),onClick:he[4]||(he[4]=Qt(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:h.value,onClick:pe},[x("img",{src:C(r7),alt:"下载Word",class:"download-icon"},null,8,sln)],8,aln),x("div",lln,[x("div",{class:"dropdown-item",onClick:Re,disabled:h.value},he[26]||(he[26]=[x("span",{class:"item-text"},"有答案",-1)]),8,uln),x("div",{class:"dropdown-item",onClick:Ee,disabled:h.value},he[27]||(he[27]=[x("span",{class:"item-text"},"无答案",-1)]),8,cln)])],2)]),x("div",dln,[x("h1",fln,ze(_.value.title),1),x("div",pln,[x("span",hln,"总分: "+ze(_.value.totalScore)+"分",1),x("span",gln,"题量: "+ze(_.value.totalQuestions)+"题",1)]),x("div",vln,"生成时间: "+ze(S.value),1)]),x("div",mln,[_.value.singleChoice&&_.value.singleChoice.questions.length>0?(F(),K("div",yln,[x("div",{class:"section-header",onClick:he[5]||(he[5]=Je=>h.value?null:be("single")),style:Jt({cursor:h.value?"not-allowed":"pointer"})},[x("div",bln,[he[28]||(he[28]=x("span",{class:"section-number"},"一",-1)),he[29]||(he[29]=x("span",{class:"section-name"},"单选题",-1)),x("span",wln,"(每题"+ze(_.value.singleChoice.scorePerQuestion)+"分, 共"+ze(_.value.singleChoice.totalScore)+"分)",1)]),x("div",Aln,[x("span",Cln,ze(_.value.singleChoice.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!P.value.single}])},null,10,xln)])],4),P.value.single?(F(),K("div",Sln,[(F(!0),K(Nt,null,on(_.value.singleChoice.questions,(Je,ct)=>(F(),K("div",{key:ct,class:"question-item"},[x("div",Eln,[x("span",kln,ze(ct+1)+".",1),x("span",Tln,ze(Je.text),1),x("button",{class:"refresh-btn",onClick:Ot=>De("single",ct),disabled:h.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:M.value["single_"+ct]}])},null,10,Dln)],8,_ln)]),x("div",Iln,[(F(!0),K(Nt,null,on(Je.options,Ot=>(F(),K("div",{key:Ot.key,class:"option"},[x("div",Oln,[x("div",{class:oe(["radio-circle",{selected:Je.selectedAnswer===Ot.key}])},[Je.selectedAnswer===Ot.key?(F(),K("div",Mln)):xe("",!0)],2)]),x("span",Pln,ze(Ot.key)+".",1),x("div",Nln,[x("span",Rln,ze(Ot.text),1)])]))),128))])]))),128))])):xe("",!0)])):xe("",!0),_.value.judge&&_.value.judge.questions.length>0?(F(),K("div",Bln,[x("div",{class:"section-header",onClick:he[6]||(he[6]=Je=>h.value?null:be("judge")),style:Jt({cursor:h.value?"not-allowed":"pointer"})},[x("div",Lln,[he[30]||(he[30]=x("span",{class:"section-number"},"二",-1)),he[31]||(he[31]=x("span",{class:"section-name"},"判断题",-1)),x("span",Fln,"(每题"+ze(_.value.judge.scorePerQuestion)+"分, 共"+ze(_.value.judge.totalScore)+"分)",1)]),x("div",Uln,[x("span",zln,ze(_.value.judge.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!P.value.judge}])},null,10,$ln)])],4),P.value.judge?(F(),K("div",jln,[(F(!0),K(Nt,null,on(_.value.judge.questions,(Je,ct)=>(F(),K("div",{key:ct,class:"question-item"},[x("div",Hln,[x("span",Wln,ze(ct+1)+".",1),x("span",Vln,ze(Je.text),1),x("button",{class:"refresh-btn",onClick:Ot=>De("judge",ct),disabled:h.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:M.value["judge_"+ct]}])},null,10,Gln)],8,qln)]),x("div",Kln,[he[32]||(he[32]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",Yln,ze(Je.selectedAnswer),1)])]))),128))])):xe("",!0)])):xe("",!0),_.value.multiple&&_.value.multiple.questions.length>0?(F(),K("div",Qln,[x("div",{class:"section-header",onClick:he[7]||(he[7]=Je=>h.value?null:be("multiple")),style:Jt({cursor:h.value?"not-allowed":"pointer"})},[x("div",Zln,[he[33]||(he[33]=x("span",{class:"section-number"},"三",-1)),he[34]||(he[34]=x("span",{class:"section-name"},"多选题",-1)),x("span",Xln,"(每题"+ze(_.value.multiple.scorePerQuestion)+"分, 共"+ze(_.value.multiple.totalScore)+"分)",1)]),x("div",Jln,[x("span",eun,ze(_.value.multiple.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!P.value.multiple}])},null,10,tun)])],4),P.value.multiple?(F(),K("div",nun,[(F(!0),K(Nt,null,on(_.value.multiple.questions,(Je,ct)=>(F(),K("div",{key:ct,class:"question-item"},[x("div",run,[x("span",oun,ze(ct+1)+".",1),x("span",iun,ze(Je.text),1),x("button",{class:"refresh-btn",onClick:Ot=>De("multiple",ct),disabled:h.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:M.value["multiple_"+ct]}])},null,10,sun)],8,aun)]),x("div",lun,[(F(!0),K(Nt,null,on(Je.options,Ot=>(F(),K("div",{key:Ot.key,class:"option"},[x("div",uun,[x("div",{class:oe(["radio-circle",{selected:(Je.selectedAnswers||[]).includes(Ot.key)}])},[(Je.selectedAnswers||[]).includes(Ot.key)?(F(),K("div",cun)):xe("",!0)],2)]),x("span",dun,ze(Ot.key)+".",1),x("div",fun,[x("span",pun,ze(Ot.text),1)])]))),128))]),x("div",hun,[he[35]||(he[35]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",gun,ze((Je.selectedAnswers||[]).join(", ")),1)])]))),128))])):xe("",!0)])):xe("",!0),_.value.short&&_.value.short.questions.length>0?(F(),K("div",vun,[x("div",{class:"section-header",onClick:he[8]||(he[8]=Je=>h.value?null:be("short")),style:Jt({cursor:h.value?"not-allowed":"pointer"})},[x("div",mun,[he[36]||(he[36]=x("span",{class:"section-number"},"四",-1)),he[37]||(he[37]=x("span",{class:"section-name"},"简答题",-1)),x("span",yun,"(每题"+ze(_.value.short.scorePerQuestion)+"分, 共"+ze(_.value.short.totalScore)+"分)",1)]),x("div",bun,[x("span",wun,ze(_.value.short.count)+"题",1),x("img",{src:C(kh),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!P.value.short}])},null,10,Aun)])],4),P.value.short?(F(),K("div",Cun,[(F(!0),K(Nt,null,on(_.value.short.questions,(Je,ct)=>(F(),K("div",{key:ct,class:"question-item"},[x("div",xun,[x("span",Sun,ze(ct+1)+".",1),x("span",Eun,ze(Je.text),1),x("button",{class:"refresh-btn",onClick:Ot=>De("short",ct),disabled:h.value},[x("img",{src:C(Th),alt:"刷新",class:oe(["refresh-icon",{rotating:M.value["short_"+ct]}])},null,10,Tun)],8,kun)]),Je.outline?(F(),K("div",_un,[x("div",Dun,[he[38]||(he[38]=x("strong",null,"关键要点:",-1)),An(ze(Rt(Je.outline.keyFactors)),1)]),x("div",Iun,[he[39]||(he[39]=x("strong",null,"具体措施:",-1)),An(ze(Rt(Je.outline.measures)),1)])])):xe("",!0)]))),128))])):xe("",!0)])):xe("",!0)])])):xe("",!0),x("input",{ref_key:"fileInput",ref:I,type:"file",accept:".ppt,.pptx",onChange:Pe,style:{display:"none"}},null,544)])]))}},Mun=Yo(Oun,[["__scopeId","data-v-241be519"]]),Pun="/assets/6-XEd9sn-3.png",Nun="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==",Run="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",Bun="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=",Lun={class:"mobile-hazard-detection"},Fun={class:"mobile-content"},Uun={key:0,class:"main-layout"},zun={class:"process-tabs"},$un={key:0,class:"hazard-system"},jun={class:"step-section"},Hun={class:"scenario-tags"},Wun=["onClick"],Vun={class:"step-section"},qun={key:0,class:"uploaded-image-container"},Gun=["src"],Kun={class:"image-overlay"},Yun={key:1,class:"upload-content"},Qun={key:2,class:"upload-status"},Zun={key:3,class:"upload-status"},Xun={class:"action-section"},Jun=["disabled"],ecn=["src"],tcn={key:1,class:"process-content"},ncn={key:1,class:"detail-layout"},rcn={class:"detail-header"},ocn={class:"header-left"},icn={class:"header-text"},acn={class:"main-title"},scn={class:"header-right"},lcn={class:"current-time"},ucn={class:"detail-content"},ccn={key:0,class:"loading-overlay"},dcn={class:"image-section"},fcn={class:"image-container"},pcn=["src"],hcn={key:1,class:"scanning-overlay"},gcn=["src"],vcn={class:"analysis-section"},mcn={class:"analysis-content"},ycn={class:"scene-info"},bcn={key:0,class:"analysis-prompt"},wcn={key:0,class:"streaming-analysis-text"},Acn={key:1},Ccn={class:"detection-count"},xcn={class:"hazards-section"},Scn={key:0,class:"hazards-loading-overlay"},Ecn={key:1,class:"hazard-item"},kcn={class:"hazard-number"},Tcn={class:"hazard-desc"},_cn=["onClick"],Dcn=["src"],Icn={class:"modal-hazard-info"},Ocn={class:"hazard-number"},Mcn={class:"hazard-description"},Pcn={class:"modal-body"},Ncn={key:0,class:"loading-overlay"},Rcn={key:1,class:"example-images"},Bcn={class:"example-panel correct-panel"},Lcn={class:"panel-image"},Fcn={key:0,class:"image-loading"},Ucn=["src"],zcn={key:2,class:"no-image-placeholder"},$cn={class:"example-panel error-panel"},jcn={class:"panel-image"},Hcn={key:0,class:"image-loading"},Wcn=["src"],Vcn={key:2,class:"no-image-placeholder"},qcn={class:"modal-body"},Gcn={class:"question-section"},Kcn={class:"answer-buttons"},Ycn={class:"question-section"},Qcn={class:"answer-buttons"},Zcn={class:"question-section"},Xcn={class:"star-rating"},Jcn=["onClick"],edn={key:0,class:"question-section"},tdn={class:"remark-input-container"},ndn=["disabled"],rdn={class:"char-count"},odn={key:0,class:"modal-footer"},idn={__name:"m-HazardDetection",setup(e){const t=Hl(),n=()=>{t.go(-1)},r=()=>{A.value||(c.value=!0)},o=Y(!1),i=Y(""),a=(ye,Be=2e3)=>{i.value=ye,o.value=!0,Be>0&&setTimeout(()=>{o.value=!1},Be)},s=()=>{o.value=!1},l=ye=>a(ye,2e3),u=ye=>a(ye,3e3),d=ye=>a(ye,2500),c=Y(!1),f=Y("detect"),p=Y("tunnel"),v=Y(null),h=Y(""),g=Y(null),y=Y("main"),m=Y(null),b=Y(!1),w=Y(!1),A=Y(!1),S=Y(null),k=Y(""),O=Y(!1),I=Y(!1),P=Y(!1),M=Y(!1),_=Y(""),R=Y(!1),N=Y(""),V=Y(!1),L=Y([]),j=Y(0),H=Y(!1),G=Y(!1),Z=Y(!1),z=Y(!1),U=Y(null),W=Y({}),re=Y(!1),J=Y({correct:!1,error:!1}),te=Y(!1),X=Y({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""});Y(!1);const ue=Y(null),me=ye=>{if(!ye)return null;if(typeof ye=="number"){const Be=ye<1e12?ye*1e3:ye;return new Date(Be)}if(typeof ye=="string"){let Be=new Date(ye);if(!isNaN(Be))return Be;const ot=ye.replace(/-/g,"/").replace("T"," ");if(Be=new Date(ot),!isNaN(Be))return Be}return new Date(ye)},Me=ye=>{const Be=me(ye);if(!Be||isNaN(Be))return"";const ot=new Date,gt=Be.toDateString()===ot.toDateString(),Ke=new Date(ot.getFullYear(),ot.getMonth(),ot.getDate()-1),He=Be.toDateString()===Ke.toDateString();if(gt)return Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(He)return"昨天 "+Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const at=Be.getMonth()+1,St=Be.getDate(),tt=Be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${at}月${St}日 ${tt}`},Ae=async()=>{try{console.log("📋 开始获取移动端隐患提示历史记录列表..."),H.value=!0;const ye=performance.now(),Be=await Bn.getHazardHistory({}),ot=performance.now();console.log(`📋 移动端隐患提示历史记录API调用耗时: ${(ot-ye).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",Be),Be.statusCode===200||Be.code===200?(j.value=Be.total||0,L.value=Be.data.map(gt=>({id:gt.id,title:gt.title||"隐患提示记录",time:Me(gt.created_at),businessType:"hazard",isActive:!1,effect_evaluation:gt.effect_evaluation||0,rawData:gt})),m.value?.id&&L.value.forEach(gt=>{gt.isActive=gt.id===m.value.id}),console.log(`✅ 移动端隐患提示历史记录列表已设置: ${L.value.length}条记录,总数: ${j.value}`)):console.error("❌ 获取移动端历史记录列表失败:",Be.statusCode)}catch(ye){console.error("❌ 获取移动端历史记录列表失败:",ye)}finally{H.value=!1}},ge={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"}},_e={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:"加油站"}},Q=ye=>_e[ye]?.class||"tag-tunnel";ee(()=>`确定要删除历史记录"${ue.value?.item?.title||""}"吗?删除后将无法恢复。`);const be=ee(()=>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,z.value=!1,U.value=null,b.value=!1,w.value=!1,A.value=!1,k.value="",W.value={},re.value=!1,J.value={correct:!1,error:!1},Z.value=!1,I.value=!1,P.value=!1,M.value=!1,_.value="",R.value=!1,N.value="",V.value=!1,g.value&&(g.value.value="",console.log("文件输入已清空")),L.value.length>0&&L.value.forEach(ye=>{ye.isActive=!1}),c.value=!1,console.log("新任务创建完成")},pe=async ye=>{ye.isActive||(console.log("点击移动端隐患提示历史记录:",ye),c.value=!1,await tn(ye))},ie=ye=>{try{console.log("selectScenario 被调用,场景:",ye),p.value=ye,console.log("选择场景:",ge[ye].name)}catch(Be){console.error("选择场景失败:",Be)}},ce=()=>{try{console.log("triggerFileUpload 被调用"),g.value?(g.value.click(),console.log("已触发文件选择器")):console.error("fileInput 引用为空")}catch(ye){console.error("触发文件上传失败:",ye)}},Re=async ye=>{try{console.log("uploadFileToServer 被调用,文件:",ye),b.value=!0;const Be=new FormData;Be.append("image",ye),console.log("FormData 已创建:",Be),console.log("开始调用后端API...");const ot=await Bn.uploadImage(Be);if(console.log("后端API响应:",ot),ot.statusCode===200)h.value=ot.fileUrl||ot.fileURL,console.log("上传成功:",h.value),l("图片上传成功!");else throw new Error(ot.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(ye){console.error("重新选择图片失败:",ye)}},Le=()=>{try{console.log("clearUploadedImage 被调用"),v.value=null,h.value="",g.value&&(g.value.value="",console.log("文件输入已清空")),console.log("上传图片已清除")}catch(ye){console.error("清除上传图片失败:",ye)}},Fe=ye=>new Promise(Be=>{const ot=document.createElement("canvas"),gt=ot.getContext("2d"),Ke=new Image;Ke.onload=()=>{ot.width=Ke.naturalWidth,ot.height=Ke.naturalHeight,gt.drawImage(Ke,0,0),ot.toBlob(He=>{const at=new File([He],ye.name,{type:ye.type,lastModified:ye.lastModified});Be(at)},ye.type)},Ke.src=URL.createObjectURL(ye)}),Pe=(ye,Be=1920,ot=.8)=>new Promise((gt,Ke)=>{const He=document.createElement("canvas"),at=He.getContext("2d"),St=new Image;St.onload=()=>{try{let{width:tt,height:Qe}=St;tt>Be&&(Qe=Qe*Be/tt,tt=Be),He.width=tt,He.height=Qe,at.drawImage(St,0,0,tt,Qe),He.toBlob(it=>{if(it){const Mt=new File([it],ye.name,{type:"image/jpeg",lastModified:Date.now()});console.log(`图片压缩完成: ${ye.size} -> ${Mt.size} bytes`),gt(Mt)}else Ke(new Error("图片压缩失败"))},"image/jpeg",ot)}catch(tt){Ke(tt)}},St.onerror=()=>Ke(new Error("图片加载失败")),St.src=URL.createObjectURL(ye)}),Ne=async ye=>{try{console.log("processFile 被调用,文件:",ye);const Be=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",ye.type),!Be.includes(ye.type)){console.log("不支持的文件类型:",ye.type),u("只支持JPG、PNG格式的图片");return}let ot=ye;if(ye.size>5*1024*1024){console.log("文件过大,开始压缩:",ye.size),a("图片较大,正在压缩...",2e3);try{ot=await Pe(ye,1920,.8),console.log("压缩完成:",ot.size)}catch(Ke){console.error("压缩失败:",Ke),u("图片压缩失败,请选择较小的图片");return}}const gt=await Fe(ot);v.value=gt,console.log("选择文件:",gt.name),console.log("开始上传文件到服务器"),await Re(gt)}catch(Be){console.error("处理文件失败:",Be)}},ht=async ye=>{try{console.log("handleFileUpload 被调用",ye);const Be=ye.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 Mt=await Bn.getLatestRecognitionRecord({});if(Mt.statusCode===200&&Mt.data){const Gt=Mt.data;if(console.log("最新识别记录:",Gt),Gt.effect_evaluation===0||!Gt.effect_evaluation){d("请先对上一次识别结果进行点评,再进行新的识别");return}}}catch(Mt){console.error("检查最新识别记录失败:",Mt)}console.log("开始识别:",{scenario:ge[p.value].name,image:h.value}),A.value=!0,l("开始进行隐患提示,请稍候...");const ye="",Be="蜀道用户",ot=new Date,gt=ot.getFullYear(),Ke=String(ot.getMonth()+1).padStart(2,"0"),He=String(ot.getDate()).padStart(2,"0"),at=`${gt}/${Ke}/${He}`,St=ye.length>=4?ye.slice(-4):ye,tt={scene_name:p.value,image:h.value,account:St,username:Be,date:at};console.log("发送隐患提示请求:",tt);const Qe=await Bn.hazardDetection(tt);if(console.log("隐患提示响应:",Qe),Qe.code===200||Qe.statusCode===200){if(S.value=Qe.data,Qe.data.annotated_image&&(k.value=`${Qe.data.annotated_image}`),y.value="detail",I.value=!0,V.value=!0,setTimeout(()=>{I.value=!1,V.value=!1,Lt()},6e3),await Ae(),L.value.length>0){const Mt=L.value[0];m.value=Mt,L.value.forEach(Gt=>{Gt.isActive=Gt.id===Mt.id}),console.log("自动选中最新记录:",Mt)}console.log("识别结果:",Qe.data),console.log("标注图片URL:",k.value)}else u(Qe.msg||"隐患提示失败")}catch(ye){console.error("开始识别失败:",ye),u("隐患提示失败: "+(ye.msg||"未知错误"))}finally{A.value=!1}},Lt=()=>{try{console.log("开始整个分析文本流式输出效果"),R.value=!1,N.value="";const ye=S.value?.scene_name,Be=ye?ge[ye]?.name:"未知场景",ot=S.value?.labels||"",gt=Array.isArray(ot)?ot.join(""):ot,Ke=`经过智能分析,发现场景:[${Be}][${gt}]`;R.value=!0;let He=0;const at=setInterval(()=>{He<Ke.length?(N.value=Ke.substring(0,He+1),He++):(clearInterval(at),R.value=!1,console.log("分析文本流式输出完成"))},100)}catch(ye){console.error("开始分析文本流式输出失败:",ye),R.value=!1}},tn=async ye=>{try{console.log("handleHistoryDetail 被调用,历史记录:",ye),m.value=ye,y.value="detail",G.value=!0,Z.value=!0,console.log("开始获取记录详情,ID:",ye.id);const Be=await Bn.getRecognitionRecordDetail({recognition_record_id:ye.id});if(Be.statusCode===200||Be.code===200){const ot=Be.data;console.log("获取详情成功:",ot),S.value={scene_name:ot.tag_type||Wt(ot.labels),labels:ot.labels,total_detections:ot.labels&&Array.isArray(ot.labels)?ot.labels.length:0,third_scenes:ot.third_scenes||[]};const gt=ot.recognition_image_url||ot.original_image_url;k.value=gt;const Ke=ot.tag_type||Wt(ot.labels);ye.tagType=Ke}else{console.error("获取详情失败:",Be.message),u("获取记录详情失败"),S.value={scene_name:ye.tagType||"simple_supported_bridge",labels:ye.labels,total_detections:0,third_scenes:[]};const ot=ye.recognitionImageUrl||ye.originalImageUrl;k.value=ot}L.value.forEach(ot=>{ot.isActive=ot.id===ye.id}),console.log("历史记录状态已更新")}catch(Be){console.error("处理历史记录失败:",Be),u("获取记录详情失败")}finally{G.value=!1,Z.value=!1}},Wt=ye=>{if(!ye)return"gas_station";let Be="";return Array.isArray(ye)?Be=ye.join(" ").toLowerCase():Be=String(ye).toLowerCase(),Be.includes("隧道")?"tunnel":Be.includes("桥梁")?"simple_supported_bridge":Be.includes("加油站")?"gas_station":Be.includes("设备")?"special_equipment":Be.includes("高速")?"operate_highway":"simple_supported_bridge"},zt=()=>{const ye=new Date,Be=ye.getMonth()+1,ot=ye.getDate(),gt=ye.getHours().toString().padStart(2,"0"),Ke=ye.getMinutes().toString().padStart(2,"0");return`${Be}月${ot}日 ${gt}:${Ke}`},dt=ye=>{try{console.log("主图片加载失败")}catch(Be){console.error("处理主图片错误失败:",Be)}},_t=()=>{try{console.log("openImagePreview 被调用"),O.value=!0,console.log("图片预览已打开")}catch(ye){console.error("打开图片预览失败:",ye)}},ut=()=>{try{console.log("closeImagePreview 被调用"),O.value=!1,console.log("图片预览已关闭")}catch(ye){console.error("关闭图片预览失败:",ye)}},rt=async ye=>{try{console.log("openExampleModal 被调用,隐患信息:",ye),U.value=ye,re.value=!0;const Be=await Bn.getThirdSceneExampleImage({third_scene_name:ye.description});if(console.log("获取示例图响应:",Be),Be.statusCode===200){const ot=Be.data;ot&&(ot.correct_example_image||ot.error_example_image)?(W.value={correctImageUrl:ot.correct_example_image||"",errorImageUrl:ot.error_example_image||""},J.value={correct:!!ot.correct_example_image,error:!!ot.error_example_image},z.value=!0,console.log("示例弹窗已打开,示例图数据:",W.value)):(d("暂无示例图"),console.log("没有找到示例图数据"))}else u("获取示例图失败: "+(Be.msg||"未知错误")),console.error("获取示例图失败:",Be.msg)}catch(Be){console.error("打开示例弹窗失败:",Be),u("获取示例图失败,请稍后重试")}finally{re.value=!1}},he=()=>{try{console.log("closeExampleModal 被调用"),z.value=!1,W.value={},U.value=null,re.value=!1,J.value={correct:!1,error:!1},console.log("示例弹窗已关闭")}catch(ye){console.error("关闭示例弹窗失败:",ye)}},Je=(ye,Be)=>{console.log(`图片加载失败 (${Be}):`,ye.target.src),Be==="correct"?(W.value.correctImageUrl="",J.value.correct=!1):Be==="error"&&(W.value.errorImageUrl="",J.value.error=!1)},ct=(ye,Be)=>{const ot=ye.target,gt=ot.naturalWidth/ot.naturalHeight;gt>1?(ot.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${Be}): 横图, 宽高比: ${gt.toFixed(2)}`)):(ot.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${Be}): 竖图, 宽高比: ${gt.toFixed(2)}`)),Be==="correct"?J.value.correct=!1:Be==="error"&&(J.value.error=!1)},Ot=async()=>{try{console.log("打开点评弹窗"),te.value=!0,m.value?.effect_evaluation>0?await Tn():X.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(ye){console.error("打开点评弹窗失败:",ye)}},Tn=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 ot=Be.data;console.log("📝 移动端加载点评数据:",ot),console.log("📝 用户备注字段:",ot.user_remark),X.value={sceneMatch:ot.scene_match===1,promptAccurate:ot.tip_accuracy===1,rating:ot.effect_evaluation||0,userRemark:ot.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 ye=L.value.find(Be=>Be.id===m.value?.id);ye&&(ye.effect_evaluation=X.value.rating)}catch(ye){console.error("📝 加载点评数据失败:",ye),X.value={sceneMatch:null,promptAccurate:null,rating:m.value?.effect_evaluation||0,userRemark:""}}},In=()=>{try{console.log("关闭点评弹窗"),te.value=!1}catch(ye){console.error("关闭点评弹窗失败:",ye)}},je=async()=>{try{if(console.log("提交评价:",X.value),X.value.sceneMatch===null||X.value.promptAccurate===null||X.value.rating===0){d("请完成所有评价项目");return}const ye=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(ye.statusCode===200||ye.code===200){l("评价提交成功"),m.value&&(m.value.effect_evaluation=X.value.rating);const Be=L.value.find(ot=>ot.id===m.value?.id);Be&&(Be.effect_evaluation=X.value.rating),In()}else u("评价提交失败: "+(ye.msg||"未知错误"))}catch(ye){console.error("提交评价失败:",ye),u("评价提交失败,请稍后重试")}},ke=async(ye,Be)=>{try{console.log("开始删除移动端历史记录:",ye);const ot=await Bn.deleteRecognitionRecord({recognition_record_id:ye.id});ot.statusCode===200?(L.value.splice(Be,1),j.value=Math.max(0,j.value-1),ye.isActive&&(console.log("删除激活的历史记录,执行新建任务"),De()),console.log("✅ 移动端历史记录删除成功"),l("删除成功")):console.error("❌ 删除移动端历史记录删除失败:",ot)}catch(ot){console.error("❌ 删除移动端历史记录失败:",ot)}};return jn(async()=>{try{console.log("🚀 移动端隐患提示页面初始化完成")}catch(ye){console.error("❌ 移动端隐患提示页面初始化失败:",ye)}}),Ct(c,async ye=>{ye&&L.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await Ae())}),(ye,Be)=>(F(),K("div",Lun,[$e(p2,{title:"隐患提示",onBack:n,onMenu:r}),x("div",Fun,[$e(q5,{visible:!A.value&&c.value,title:"历史记录",historyData:L.value,loading:H.value,onClose:Be[0]||(Be[0]=ot=>c.value=!1),onCreateNewTask:De,onHandleHistoryItem:pe,onDeleteHistoryItem:ke},null,8,["visible","historyData","loading"]),y.value==="main"?(F(),K("div",Uun,[x("div",zun,[x("div",{class:oe(["tab-item",{active:f.value==="detect"}]),onClick:Be[1]||(Be[1]=ot=>f.value="detect")},Be[14]||(Be[14]=[x("span",null,"智能识别",-1)]),2),x("div",{class:oe(["tab-item",{active:f.value==="process"}]),onClick:Be[2]||(Be[2]=ot=>f.value="process")},Be[15]||(Be[15]=[x("span",null,"使用流程",-1)]),2)]),f.value==="detect"?(F(),K("div",$un,[Be[24]||(Be[24]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null,"基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议")],-1)),x("div",jun,[Be[16]||(Be[16]=x("h4",null,"步骤一:选择场景",-1)),Be[17]||(Be[17]=x("p",{class:"step-description"},"请先选择您要识别的工程场景",-1)),x("div",Hun,[(F(),K(Nt,null,on(ge,(ot,gt)=>x("div",{key:gt,class:oe(["scenario-tag",{active:p.value===gt,disabled:gt!=="gas_station"&&gt!=="simple_supported_bridge"&&gt!=="tunnel"&&gt!=="special_equipment"&&gt!=="operate_highway","identifying-disabled":A.value,compact:gt==="operate_highway"}]),onClick:Ke=>!A.value&&(gt==="gas_station"||gt==="simple_supported_bridge"||gt==="tunnel"||gt==="special_equipment"||gt==="operate_highway")?ie(gt):null},ze(ot.name),11,Wun)),64))])]),x("div",Vun,[Be[23]||(Be[23]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:oe(["upload-area",{"drag-over":w.value}]),onClick:ce},[h.value?(F(),K("div",qun,[x("img",{src:h.value,alt:"已上传的图片",class:"uploaded-image"},null,8,Gun),x("div",Kun,[x("button",{class:"change-image-btn",onClick:Qt(Ee,["stop"])},"更换图片")])])):(F(),K("div",Yun,[Be[18]||(Be[18]=x("img",{src:Ake,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",Qun,Be[21]||(Be[21]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),A.value?(F(),K("div",Zun,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:ht,style:{display:"none"}},null,544)],2)]),x("div",Xun,[x("button",{class:oe(["start-identify-btn",{"btn-disabled":A.value}]),onClick:Rt,disabled:A.value},[x("img",{src:h.value?C(Ske):C(xke),alt:"开始识别",class:"btn-bg"},null,8,ecn)],10,Jun)])])):xe("",!0),f.value==="process"?(F(),K("div",tcn,Be[25]||(Be[25]=[ki('<div class="process-header" data-v-bfeec8ed><h3 data-v-bfeec8ed>使用流程</h3><p data-v-bfeec8ed>了解如何使用智能隐患识别系统</p></div><div class="process-steps" data-v-bfeec8ed><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>1</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>选择场景</h4><p data-v-bfeec8ed>从支持的五种工程场景中选择您要检测的场景类型</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>2</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>上传图片</h4><p data-v-bfeec8ed>上传您要识别的场景图片,支持JPG、PNG格式</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>3</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>开始识别</h4><p data-v-bfeec8ed>点击开始识别按钮,系统将自动检测场景中的隐患</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>4</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>查看结果</h4><p data-v-bfeec8ed>识别完成后可查看详细的分析结果和隐患列表</p></div></div></div>',2)]))):xe("",!0)])):xe("",!0),y.value==="detail"?(F(),K("div",ncn,[x("div",rcn,[x("div",ocn,[Be[26]||(Be[26]=x("img",{src:Pun,alt:"顶部图标",class:"header-icon"},null,-1)),x("div",icn,[x("span",acn,ze(S.value?.scene_name?ge[S.value.scene_name]?.name:"隐患提示结果"),1),x("span",{class:oe(["sub-title-tag",Q(S.value?.scene_name)])},ze(S.value?.scene_name?ge[S.value.scene_name]?.name:"未知场景"),3)])]),x("div",scn,[x("div",lcn,ze(m.value?.time||zt()),1)])]),x("div",ucn,[G.value||Z.value?(F(),K("div",ccn,[Be[27]||(Be[27]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,ze(G.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",dcn,[x("div",{class:"evaluation-status",onClick:Ot},[x("span",{class:oe(["status-badge",m.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},ze(m.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",fcn,[I.value?(F(),K("img",{key:0,src:h.value,alt:"用户上传图片",class:"original-image"},null,8,pcn)):xe("",!0),I.value?(F(),K("div",hcn,Be[28]||(Be[28]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0),I.value?xe("",!0):(F(),K("img",{key:2,src:k.value,alt:"隐患提示图片",class:"main-image",onClick:_t,style:{cursor:"pointer",transform:"none !important"},onError:dt},null,40,gcn))])]),x("div",vcn,[Be[30]||(Be[30]=x("div",{class:"analysis-header"},[x("img",{src:Nun,alt:"警告标志",class:"warning-icon"}),x("h3",null,"识别结果分析")],-1)),x("div",mcn,[x("p",ycn,[V.value?(F(),K("span",bcn," 蜀道安全管理AI智能助手正在为您分析图片,请稍候…… ")):(F(),K(Nt,{key:1},[R.value?(F(),K("span",wcn,ze(N.value),1)):!R.value&&S.value?(F(),K("span",Acn,[Be[29]||(Be[29]=An(" 经过智能分析,发现场景:",-1)),x("span",{class:oe(["scene-tags",Q(S.value?.scene_name)])},"["+ze(S.value?.scene_name?ge[S.value.scene_name]?.name:"未知场景")+"]",3),x("span",Ccn,"["+ze(S.value.labels)+"]",1)])):xe("",!0)],64))])])]),x("div",xcn,[Be[32]||(Be[32]=x("div",{class:"hazards-header"},[x("h3",null,"该场景常见隐患有:")],-1)),x("div",{class:oe(["hazards-content",{"scanning-mode":I.value}])},[I.value?(F(),K("div",Scn,Be[31]||(Be[31]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(F(),K("div",Ecn,[(F(!0),K(Nt,null,on(S.value?.third_scenes||[],(ot,gt)=>(F(),K("div",{key:gt,class:"hazard-line"},[x("span",kcn,ze(gt+1),1),x("span",Tcn,ze(ot),1),x("button",{class:"example-btn",onClick:Ke=>rt({number:gt+1,description:ot})},"示例",8,_cn)]))),128))]))],2)])]),O.value?(F(),K("div",{key:0,class:"image-preview-overlay",onClick:ut},[x("img",{src:k.value,alt:"预览图片",class:"preview-image"},null,8,Dcn)])):xe("",!0),z.value?(F(),K("div",{key:1,class:"example-modal-overlay",onClick:he},[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:Sj,alt:"关闭",class:"close-icon",onClick:he})]),x("div",Icn,[x("div",Ocn,ze(U.value?.number),1),x("span",Mcn,ze(U.value?.description),1)]),x("div",Pcn,[re.value?(F(),K("div",Ncn,Be[34]||(Be[34]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载示例图...",-1)]))):(F(),K("div",Rcn,[x("div",Bcn,[x("div",Lcn,[J.value.correct?(F(),K("div",Fcn,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:Jt({display:J.value.correct?"none":"block"}),onError:Be[3]||(Be[3]=ot=>Je(ot,"correct")),onLoad:Be[4]||(Be[4]=ot=>ct(ot,"correct"))},null,44,Ucn)):xe("",!0),!W.value.correctImageUrl&&!J.value.correct?(F(),K("div",zcn,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:Run,alt:"正确",class:"label-icon"})],-1))])]),x("div",$cn,[x("div",jcn,[J.value.error?(F(),K("div",Hcn,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:Jt({display:J.value.error?"none":"block"}),onError:Be[5]||(Be[5]=ot=>Je(ot,"error")),onLoad:Be[6]||(Be[6]=ot=>ct(ot,"error"))},null,44,Wcn)):xe("",!0),!W.value.errorImageUrl&&!J.value.error?(F(),K("div",Vcn,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:Bun,alt:"错误",class:"label-icon"})],-1))])])]))])])])):xe("",!0)])):xe("",!0),te.value?(F(),K("div",{key:2,class:"evaluation-modal-overlay",onClick:In},[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:Sj,alt:"关闭",class:"close-icon",onClick:In})]),x("div",qcn,[x("div",Gcn,[Be[42]||(Be[42]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",Kcn,[x("button",{class:oe(["answer-btn",{active:X.value.sceneMatch===!0,disabled:m.value?.effect_evaluation>0}]),onClick:Be[8]||(Be[8]=ot=>m.value?.effect_evaluation>0?null:X.value.sceneMatch=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:X.value.sceneMatch===!1,disabled:m.value?.effect_evaluation>0}]),onClick:Be[9]||(Be[9]=ot=>m.value?.effect_evaluation>0?null:X.value.sceneMatch=!1)}," 否 ",2)])]),x("div",Ycn,[Be[43]||(Be[43]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",Qcn,[x("button",{class:oe(["answer-btn",{active:X.value.promptAccurate===!0,disabled:m.value?.effect_evaluation>0}]),onClick:Be[10]||(Be[10]=ot=>m.value?.effect_evaluation>0?null:X.value.promptAccurate=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:X.value.promptAccurate===!1,disabled:m.value?.effect_evaluation>0}]),onClick:Be[11]||(Be[11]=ot=>m.value?.effect_evaluation>0?null:X.value.promptAccurate=!1)}," 否 ",2)])]),x("div",Zcn,[Be[44]||(Be[44]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",Xcn,[(F(),K(Nt,null,on(5,ot=>x("span",{key:ot,class:oe(["star",{active:ot<=X.value.rating,disabled:m.value?.effect_evaluation>0}]),onClick:gt=>m.value?.effect_evaluation>0?null:X.value.rating=ot}," ★ ",10,Jcn)),64))])]),be.value?(F(),K("div",edn,[Be[45]||(Be[45]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",tdn,[an(x("textarea",{"onUpdate:modelValue":Be[12]||(Be[12]=ot=>X.value.userRemark=ot),disabled:m.value?.effect_evaluation>0,class:oe(["remark-textarea",{disabled:m.value?.effect_evaluation>0}]),placeholder:"请输入您的意见或建议...",maxlength:"200",rows:"4"},null,10,ndn),[[jr,X.value.userRemark]]),x("div",rdn,[x("span",{class:oe({"over-limit":X.value.userRemark.length>200})},ze(X.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!m.value?.effect_evaluation||m.value.effect_evaluation===0?(F(),K("div",odn,[x("button",{class:"submit-btn",onClick:je},Be[46]||(Be[46]=[x("img",{src:Cke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)]),$e(f2,{visible:o.value,message:i.value,onClose:s},null,8,["visible","message"])]))}},adn=Yo(idn,[["__scopeId","data-v-bfeec8ed"]]),b0e="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=",w0e="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==",sdn="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",ldn={class:"mobile-ai-writing"},udn={class:"mobile-content"},cdn={key:0,class:"ai-writing-card"},ddn={key:0,class:"card-loading-overlay"},fdn={class:"document-generation"},pdn={class:"input-area"},hdn={class:"input-actions"},gdn={class:"left-actions"},vdn=["disabled"],mdn={key:0,class:"file-preview-inline"},ydn={class:"file-info-inline"},bdn={class:"file-icon-inline"},wdn={class:"file-name-inline"},Adn={class:"right-actions"},Cdn=["disabled"],xdn={class:"icon-container"},Sdn={key:0,class:"recording-indicator"},Edn=["disabled"],kdn=["src"],Tdn={key:0,class:"generating-text"},_dn={class:"document-templates"},Ddn={class:"template-tabs"},Idn=["onClick"],Odn={class:"template-cards"},Mdn={class:"template-row"},Pdn=["src","alt"],Ndn={class:"template-info"},Rdn={class:"template-title"},Bdn={class:"template-desc"},Ldn=["onClick"],Fdn={key:1,class:"editor-view"},Udn={key:0,class:"editor-loading-overlay"},zdn={class:"editor-header"},$dn={class:"editor-title"},jdn={key:0,class:"editor-subtitle"},Hdn={key:1,class:"editor-subtitle"},Wdn={class:"editor-actions"},Vdn=["disabled"],qdn={class:"editor-container"},Gdn=["innerHTML"],Kdn={__name:"m-AIWriting",setup(e){const t=Hl(),n=Y("main"),r=Y(!1),o=Y(!1),i=Y(!1),{isSupported:a,isListening:s,transcript:l,error:u,startListening:d,stopListening:c}=T0(),f=Y(""),p=Y(""),v=Y(null);Y(!1);const h=Y(null),g=Y("all"),y=Y([]),m=Y(0),b=Y(!1),w=Y(0),A=Y(!1),S=Y(""),k=(ie,ce=2e3)=>{S.value=ie,A.value=!0,setTimeout(()=>{O()},ce)},O=()=>{A.value=!1},I=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结报告"},{key:"meeting",name:"会议纪要"},{key:"speech",name:"决定"}],P=[{id:1,name:"公告模板",image:b0e,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:w0e,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:sdn,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:b0e,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:w0e,category:"speech",buttonClass:"notification-btn"}],M=ee(()=>g.value==="all"?P:P.filter(ie=>ie.category===g.value)),_=ie=>{switch(ie){case"公告模板":return"适用于公开发布的各类信息公告";case"通知模板":return"适用于各类通知公文,快速生成规范通知";case"工作汇报模板":return"适用于各类工作汇报";case"会议纪要模版":return"适用于正式会议的记录与事项梳理";case"决定模版":return"适用于各类专业的决定文稿";default:return"常用办公文档模板"}},R=ie=>({"announcement-btn":"icon-announcement","notification-btn":"icon-notification","report-btn":"icon-report"})[ie]||"icon-announcement",N=ee(()=>f.value&&f.value.trim().length>0),V=ie=>{g.value=ie},L=ie=>{let ce="";switch(ie){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=ie=>{const ce=ie.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=ie=>{ie.preventDefault();const ce=window.getSelection();ce.toString().trim()&&navigator.clipboard.writeText(ce.toString())},G=()=>{const ie=document.createElement("input");ie.type="file",ie.accept=".pdf,.doc,.docx,.txt,.jpg,.jpeg,.png",ie.onchange=ce=>{const Re=ce.target.files[0];Re&&(v.value={name:Re.name,size:Re.size,icon:Z(Re.type)})},ie.click()},Z=ie=>ie.includes("pdf")?"📄":ie.includes("word")||ie.includes("document")?"📝":ie.includes("image")?"🖼️":"📎",z=()=>{v.value=null},U=()=>{if(!a.value){k("当前浏览器不支持语音识别");return}s.value?c():d()};Ct(l,ie=>{if(!ie)return;const ce=document.querySelector(".template-input-container");ce&&(ce.textContent=ie,f.value=ie)}),Ct(u,ie=>{ie&&k(String(ie))});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 ie=await Bn.sendDeepseekMessage({ai_conversation_id:w.value,message:f.value,business_type:2});if(console.log("AI写作API响应:",ie),ie.statusCode===200){ie.data&&ie.data.ai_conversation_id&&(w.value=ie.data.ai_conversation_id);const ce=ie.data.reply;if(ce)p.value=ce;else{const Re=re(f.value);p.value=Re}console.log("AI写作成功,文档内容已设置")}else{console.error("AI写作失败:",ie),k("生成失败,请重试");const ce=re(f.value);p.value=ce}o.value=!1}catch(ie){console.error("AI写作API调用失败:",ie),k("网络错误,请重试");const ce=re(f.value);p.value=ce,o.value=!1}},re=ie=>`
  2769. <div class="document-content">
  2770. <h1>总结报告</h1>
  2771. <div class="content-body">
  2772. <h2>一、工作总结</h2>
  2773. <p>根据您的要求,以下是详细的总结报告内容:</p>
  2774. <p>${ie}</p>
  2775. <h2>二、主要成果</h2>
  2776. <ul>
  2777. <li>完成项目目标,达成率100%</li>
  2778. <li>团队协作效率提升30%</li>
  2779. <li>客户满意度达到95%</li>
  2780. </ul>
  2781. <h2>三、存在的问题</h2>
  2782. <p>在执行过程中,我们发现了以下问题和不足:</p>
  2783. <ul>
  2784. <li>时间安排有待优化</li>
  2785. <li>资源配置需要调整</li>
  2786. <li>沟通机制需要完善</li>
  2787. </ul>
  2788. <h2>四、下阶段计划</h2>
  2789. <p>基于前期工作总结,下阶段将重点关注以下几个方面:</p>
  2790. <ul>
  2791. <li>优化工作流程,提高效率</li>
  2792. <li>加强团队协作,改善沟通</li>
  2793. <li>完善制度体系,确保执行</li>
  2794. </ul>
  2795. </div>
  2796. </div>
  2797. `,J=async()=>{if(!p.value){k("没有可下载的内容");return}try{console.log("开始下载AI写作文档...");const ie=te(p.value),ce=X(p.value,ie),Re=new Blob([ce],{type:"application/msword"}),Ee=URL.createObjectURL(Re),Le=document.createElement("a");Le.href=Ee,Le.download=`${ie}.doc`,document.body.appendChild(Le),Le.click(),document.body.removeChild(Le),URL.revokeObjectURL(Ee),k("Word文档下载成功!"),console.log("✅ AI写作文档下载成功")}catch(ie){console.error("下载Word文档失败:",ie),k("下载失败,请重试")}},te=ie=>{const ce=ie.replace(/<[^>]*>/g,""),Re=ie.match(/<h1[^>]*>([^<]+)<\/h1>/i);if(Re)return Re[1].trim();const Ee=ie.match(/<h2[^>]*>([^<]+)<\/h2>/i);if(Ee)return Ee[1].trim();const Le=ie.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=(ie,ce="AI生成的文档")=>`<!DOCTYPE html>
  2798. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  2799. xmlns:w="urn:schemas-microsoft-com:office:word"
  2800. xmlns="http://www.w3.org/TR/REC-html40">
  2801. <head>
  2802. <meta charset="utf-8">
  2803. <meta name="ProgId" content="Word.Document">
  2804. <meta name="Generator" content="Microsoft Word 15">
  2805. <meta name="Originator" content="Microsoft Word 15">
  2806. <title>${ce}</title>
  2807. <!--[if gte mso 9]>
  2808. <xml>
  2809. <w:WordDocument>
  2810. <w:View>Print</w:View>
  2811. <w:Zoom>100</w:Zoom>
  2812. <w:DoNotOptimizeForBrowser/>
  2813. <w:ValidateAgainstSchemas/>
  2814. <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  2815. <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  2816. <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  2817. <w:Compatibility>
  2818. <w:BreakWrappedTables/>
  2819. <w:SnapToGridInCell/>
  2820. <w:WrapTextWithPunct/>
  2821. <w:UseAsianBreakRules/>
  2822. <w:DontGrowAutofit/>
  2823. </w:Compatibility>
  2824. </w:WordDocument>
  2825. </xml>
  2826. <![endif]-->
  2827. <style>
  2828. @page {
  2829. size: 21cm 29.7cm;
  2830. margin: 2.5cm 2cm 2.5cm 2cm;
  2831. }
  2832. body {
  2833. font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
  2834. font-size: 14px;
  2835. line-height: 1.6;
  2836. margin: 24px;
  2837. color: #000;
  2838. }
  2839. .header {
  2840. text-align: center;
  2841. margin-bottom: 1.5cm;
  2842. page-break-after: avoid;
  2843. }
  2844. h1 {
  2845. font-size: 16pt;
  2846. font-weight: bold;
  2847. color: #000;
  2848. margin-top: 24pt;
  2849. margin-bottom: 12pt;
  2850. text-align: center;
  2851. }
  2852. h2 {
  2853. font-size: 14pt;
  2854. font-weight: bold;
  2855. color: #000;
  2856. margin-top: 18pt;
  2857. margin-bottom: 9pt;
  2858. }
  2859. h3 {
  2860. font-size: 12pt;
  2861. font-weight: bold;
  2862. color: #000;
  2863. margin-top: 14pt;
  2864. margin-bottom: 7pt;
  2865. }
  2866. p {
  2867. margin-bottom: 12pt;
  2868. text-align: justify;
  2869. text-indent: 2em;
  2870. }
  2871. ul, ol {
  2872. margin-left: 20pt;
  2873. margin-bottom: 12pt;
  2874. }
  2875. li {
  2876. margin-bottom: 6pt;
  2877. }
  2878. strong, b {
  2879. font-weight: bold;
  2880. }
  2881. em, i {
  2882. font-style: italic;
  2883. }
  2884. table {
  2885. border-collapse: collapse;
  2886. width: 100%;
  2887. margin: 12pt 0;
  2888. }
  2889. th, td {
  2890. border: 1pt solid #000;
  2891. padding: 6pt;
  2892. text-align: left;
  2893. }
  2894. .no-indent {
  2895. text-indent: 0;
  2896. }
  2897. </style>
  2898. </head>
  2899. <body>
  2900. <div>
  2901. ${ie}
  2902. </div>
  2903. </body>
  2904. </html>`,ue=ie=>{if(!ie)return"AI写作对话";const ce=ie.replace(/<[^>]*>/g,"").trim();return ce.length>30?ce.substring(0,30)+"...":ce},me=()=>{o.value||(r.value=!0,Me())},Me=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),b.value=!0;const ie=performance.now(),ce=await Bn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Re=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Re-ie).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:ge(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(ie){console.error("❌ 获取AI写作历史记录列表失败:",ie)}finally{b.value=!1}},Ae=ie=>{if(!ie)return null;if(typeof ie=="number"){const ce=ie<1e12?ie*1e3:ie;return new Date(ce)}if(typeof ie=="string"){let ce=new Date(ie);if(!isNaN(ce))return ce;const Re=ie.replace(/-/g,"/").replace("T"," ");if(ce=new Date(Re),!isNaN(ce))return ce}return new Date(ie)},ge=ie=>{const ce=Ae(ie);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(),ht=ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Pe}月${Ne}日 ${ht}`},_e=()=>{t.go(-1)},Q=()=>{y.value.forEach(Re=>{Re.isActive=!1}),n.value="main",w.value=0;const 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>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',ce=document.querySelector(".template-input-container");ce&&(ce.innerHTML=ie,f.value=ie.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 ie=>{try{console.log("开始获取AI写作对话消息,conversationId:",ie);const ce=await Bn.getHistoryRecord({ai_conversation_id:ie,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:ge(Re.created_at),parsedContent:Ee}}):(console.error("获取历史记录失败:",ce.statusCode),!1)}catch(ce){return console.error("获取历史记录失败:",ce),!1}},De=async ie=>{console.log("点击历史记录:",ie),y.value.forEach(Re=>{Re.isActive=Re.id===ie.id}),w.value=ie.id;const ce=await be(ie.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>${ie.rawData?.content||ie.title}</p>`,f.value=ie.rawData?.content||ie.title),n.value="main"}}else k("加载历史记录失败");r.value=!1},pe=async(ie,ce)=>{try{console.log("开始删除移动端历史记录:",ie);const Re=await Bn.deleteHistoryRecord({ai_conversation_id:ie.id});Re.statusCode===200?(y.value.splice(ce,1),ie.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Q()),console.log("✅ 移动端历史记录删除成功"),k("删除成功")):(console.error("❌ 删除移动端历史记录失败:",Re),k("删除失败"))}catch(Re){console.error("❌ 删除移动端历史记录失败:",Re),k("删除失败,请稍后重试")}};return jn(()=>{console.log("Mobile AI Writing Page Loaded"),Vt(()=>{const ie=document.querySelector(".template-input-container");if(ie){const ce=(ie.textContent||"").trim();ce&&(f.value=ce),ie.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"})})}})}),(ie,ce)=>(F(),K("div",ldn,[$e(p2,{title:"AI写作",onBack:_e,onMenu:me}),x("div",udn,[$e(q5,{visible:!o.value&&r.value,title:"历史记录",historyData:y.value,loading:b.value,onClose:ce[0]||(ce[0]=Re=>r.value=!1),onCreateNewTask:Q,onHandleHistoryItem:De,onDeleteHistoryItem:pe},null,8,["visible","historyData","loading"]),n.value==="main"?(F(),K("div",cdn,[o.value?(F(),K("div",ddn,ce[1]||(ce[1]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",fdn,[ce[8]||(ce[8]=x("h3",null,"帮我写作",-1)),ce[9]||(ce[9]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",pdn,[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-791ad238>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-791ad238>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-791ad238>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-791ad238>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-791ad238>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含&quot;工作总结、问题不足、未来计划&quot;三部分的完整报告。 ',11)]),32),x("div",hdn,[x("div",gdn,[x("button",{class:"attachment-btn",onClick:G,disabled:i.value},ce[3]||(ce[3]=[x("img",{src:gAe,alt:"附件",class:"action-icon"},null,-1)]),8,vdn),v.value?(F(),K("div",mdn,[x("div",ydn,[x("span",bdn,ze(v.value.icon),1),x("span",wdn,ze(v.value.name),1),x("button",{class:"remove-file-inline",onClick:z},ce[4]||(ce[4]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Adn,[x("button",{class:oe(["voice-btn",{recording:C(s)}]),onClick:U,disabled:i.value},[x("div",xdn,[ce[5]||(ce[5]=x("img",{src:Xf,alt:"语音",class:"voice-icon"},null,-1)),C(s)?(F(),K("div",Sdn)):xe("",!0)])],10,Cdn),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(ep):C(Jf),alt:"发送",class:"send-icon"},null,8,kdn),o.value?(F(),K("span",Tdn,"生成中...")):xe("",!0)],8,Edn)])]),ce[7]||(ce[7]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))])]),x("div",_dn,[x("div",Ddn,[(F(),K(Nt,null,on(I,Re=>x("div",{key:Re.key,class:oe(["tab-item",{active:g.value===Re.key}]),onClick:Ee=>V(Re.key)},ze(Re.name),11,Idn)),64))]),x("div",Odn,[(F(!0),K(Nt,null,on(M.value,Re=>(F(),K("div",{key:Re.id,class:oe(["template-card",Re.buttonClass])},[x("div",Mdn,[x("div",{class:oe(["template-icon",R(Re.buttonClass)])},[x("img",{src:Re.image,alt:Re.name,class:"template-icon-img"},null,8,Pdn)],2),x("div",Ndn,[x("div",Rdn,ze(Re.name),1),x("div",Bdn,ze(_(Re.name)),1)]),x("button",{class:oe(["use-template-btn",Re.buttonClass]),onClick:Ee=>L(Re.name)}," 使用此模板 ",10,Ldn)])],2))),128))])])])):xe("",!0),n.value==="editor"?(F(),K("div",Fdn,[o.value?(F(),K("div",Udn,ce[10]||(ce[10]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",zdn,[x("div",$dn,[ce[11]||(ce[11]=x("h3",null,"文档预览",-1)),o.value?(F(),K("p",Hdn,"AI正在生成内容,请稍候...")):(F(),K("p",jdn,"编辑请去电脑端"))]),x("div",Wdn,[x("button",{class:"download-btn",onClick:J,disabled:o.value},ce[12]||(ce[12]=[x("img",{src:r7,alt:"下载Word",class:"download-icon"},null,-1)]),8,Vdn)])]),x("div",qdn,[x("div",{ref_key:"richEditor",ref:h,class:"rich-text-editor",innerHTML:p.value,contenteditable:"false"},null,8,Gdn)])])):xe("",!0)]),$e(f2,{visible:A.value,message:S.value,duration:2e3,onClose:O},null,8,["visible","message"])]))}},Ydn=Yo(Kdn,[["__scopeId","data-v-791ad238"]]),Qdn={class:"mobile-policy-document"},Zdn={class:"main-content"},Xdn={class:"search-section"},Jdn={class:"search-box"},efn={class:"category-tabs"},tfn={key:0,class:"loading"},nfn={key:1,class:"no-data"},rfn={class:"doc-icon"},ofn=["src","alt"],ifn={class:"doc-content"},afn={class:"doc-header"},sfn={class:"doc-title"},lfn={class:"doc-date"},ufn={class:"doc-tags"},cfn={class:"doc-description"},dfn={class:"doc-footer"},ffn={class:"doc-info"},pfn={class:"info-item"},hfn={class:"info-item"},gfn={class:"doc-actions"},vfn=["onClick"],mfn={key:2,class:"load-more"},yfn={class:"preview-content"},bfn={class:"preview-header"},wfn={class:"preview-title"},Afn={class:"preview-body"},Cfn=["src"],xfn={key:1,class:"preview-placeholder"},Sfn={__name:"m-PolicyDocument",setup(e){const t=Hl(),n=Y(""),r=Y(0),o=Y([]),i=Y(!1),a=Y(1),s=Y(10),l=Y(!0),u=Y(null),d=Y(!1),c=Y(null);let f=null,p=null;const v=()=>{t.go(-1)},h=_=>{r.value=_,a.value=1,o.value=[],l.value=!0,g()},g=async(_=!1)=>{if(!i.value){i.value=!0;try{const R={page:a.value,pageSize:s.value,search:n.value,policy_type:r.value===0?"":r.value},N=await Bn.getPolicyFile(R);if(N&&N.data){const V=N.data;_?o.value=[...o.value,...V]:o.value=V,l.value=V.length===s.value}}catch(R){console.error("获取政策文件失败:",R)}finally{i.value=!1}}},y=()=>{f&&clearTimeout(f),f=setTimeout(()=>{a.value=1,o.value=[],l.value=!0,g()},300)},m=()=>{n.value.trim()&&(a.value=1,o.value=[],l.value=!0,g())},b=async _=>{if(console.log("查看政策文件:",_),console.log("文件ID:",_.id,"文件所有字段:",Object.keys(_)),!_.policy_file_url){alert("文件链接不存在");return}if(!_.id)console.error("政策文件ID不存在,跳过次数更新");else{_.view_count=(_.view_count||0)+1;try{await Bn.updatePolicyFileCount({policy_file_id:_.id,action_type:1}),console.log("查看次数更新成功")}catch(R){console.error("更新查看次数失败:",R),_.view_count=(_.view_count||1)-1}}c.value=_,d.value=!0},w=_=>({0:yd,1:Dke,2:Ike,3:yd,4:yd,5:yd})[_]||yd,A=_=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[_]||"文件",S=ee(()=>{if(!c.value||!c.value.policy_file_url)return"";const _=c.value.file_type,R=c.value.policy_file_url;return _===0||_===4||_===5?R:_===1||_===2||_===3?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(R)}`:R}),k=ee(()=>c.value?.policy_name||"政策文件预览"),O=()=>{d.value=!1,c.value=null},I=_=>_?_.split(",").map(R=>R.trim()).filter(R=>R.length>0):["政策文件"],P=_=>{if(!_)return"";const R=new Date(_*1e3),N=R.getFullYear(),V=String(R.getMonth()+1).padStart(2,"0"),L=String(R.getDate()).padStart(2,"0");return`${N}-${V}-${L}`},M=_=>{p&&clearTimeout(p),p=setTimeout(()=>{const R=_.target,N=R.scrollTop,V=R.scrollHeight,L=R.clientHeight;N+L>=V-50&&l.value&&!i.value&&(a.value++,g(!0))},100)};return jn(()=>{g()}),hl(()=>{p&&clearTimeout(p),f&&clearTimeout(f)}),(_,R)=>(F(),K("div",Qdn,[$e(p2,{title:"政策文件",showMenu:!1,onBack:v}),x("div",Zdn,[x("div",Xdn,[x("div",Jdn,[R[6]||(R[6]=x("div",{class:"search-icon-left"},[x("img",{src:Eke,alt:"搜索",class:"search-icon"})],-1)),an(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":R[0]||(R[0]=N=>n.value=N),maxlength:"100",onInput:y,onKeyup:Lr(m,["enter"])},null,544),[[jr,n.value]])])]),x("div",efn,[x("button",{class:oe(["tab-btn",{active:r.value===0}]),onClick:R[1]||(R[1]=N=>h(0))},"全部政策",2),x("button",{class:oe(["tab-btn",{active:r.value===1}]),onClick:R[2]||(R[2]=N=>h(1))},"国家法规",2),x("button",{class:oe(["tab-btn",{active:r.value===2}]),onClick:R[3]||(R[3]=N=>h(2))},"行业法规",2),x("button",{class:oe(["tab-btn",{active:r.value===3}]),onClick:R[4]||(R[4]=N=>h(3))},"地方法规",2),x("button",{class:oe(["tab-btn",{active:r.value===4}]),onClick:R[5]||(R[5]=N=>h(4))},"内部条例",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:M},[i.value?(F(),K("div",tfn,R[7]||(R[7]=[x("div",{class:"loading-spinner"},null,-1),x("span",null,"加载中...",-1)]))):xe("",!0),!i.value&&o.value.length===0?(F(),K("div",nfn,R[8]||(R[8]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(F(!0),K(Nt,null,on(o.value,(N,V)=>(F(),K("div",{key:N.id||V,class:"document-item"},[x("div",rfn,[x("img",{src:w(N.file_type),alt:A(N.file_type),class:"file-icon"},null,8,ofn)]),x("div",ifn,[x("div",afn,[x("h3",sfn,ze(N.policy_name),1),x("span",lfn,ze(P(N.publish_time)),1)]),x("div",ufn,[(F(!0),K(Nt,null,on(I(N.file_tag),(L,j)=>(F(),K("span",{key:j,class:"tag tag-blue"},[R[9]||(R[9]=x("img",{src:kke,alt:"标签图标",class:"tag-icon"},null,-1)),An(" "+ze(L),1)]))),128))]),x("p",cfn,ze(N.policy_content),1),x("div",dfn,[x("div",ffn,[x("span",pfn,[R[10]||(R[10]=x("img",{src:Tke,alt:"部门",class:"info-icon"},null,-1)),An(" "+ze(N.policy_department),1)]),x("span",hfn,[R[11]||(R[11]=x("img",{src:_ke,alt:"次数",class:"info-icon"},null,-1)),An(" "+ze(N.view_count)+" 次查看 ",1)])]),x("div",gfn,[x("button",{class:"action-btn view-btn",onClick:L=>b(N)},"查看详情 >",8,vfn)])])])]))),128)),l.value&&!i.value?(F(),K("div",mfn,R[12]||(R[12]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)]),d.value?(F(),K("div",{key:0,class:"preview-modal",onClick:Qt(O,["self"])},[x("div",yfn,[x("div",bfn,[x("h3",wfn,ze(k.value),1),x("button",{class:"close-btn",onClick:O},"×")]),x("div",Afn,[S.value?(F(),K("iframe",{key:0,src:S.value,class:"preview-frame",frameborder:"0",allowfullscreen:""},null,8,Cfn)):(F(),K("div",xfn," 暂无可预览内容 "))])])])):xe("",!0)]))}},Efn=Yo(Sfn,[["__scopeId","data-v-1cc0209c"]]),kfn={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=`调试报告:
  2905. ${this.debugInfo.map(n=>`[${n.time}] ${n.message}`).join(`
  2906. `)}
  2907. 请将此信息发送给技术支持。`;navigator.clipboard?navigator.clipboard.writeText(t).then(()=>{alert(`调试信息已复制到剪贴板!
  2908. 请联系系统管理员并提供此信息。`)}).catch(()=>{alert(t)}):alert(t)}}},Tfn={class:"not-found-container"},_fn={class:"not-found-content"},Dfn={class:"error-title"},Ifn={class:"error-message"},Ofn={key:0,class:"error-details"},Mfn={class:"detail-text"},Pfn={key:1,class:"debug-info"},Nfn={key:0,class:"debug-content"},Rfn={class:"debug-time"},Bfn={class:"debug-message"},Lfn={class:"action-buttons"};function Ffn(e,t,n,r,o,i){return F(),K("div",Tfn,[x("div",_fn,[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",Dfn,ze(o.errorTitle),1),x("p",Ifn,ze(o.errorMessage),1),o.showDetails?(F(),K("div",Ofn,[x("p",Mfn,ze(o.detailMessage),1)])):xe("",!0),o.debugInfo.length>0?(F(),K("div",Pfn,[x("div",{class:"debug-header",onClick:t[0]||(t[0]=(...a)=>i.toggleDebug&&i.toggleDebug(...a))},[x("span",null,"🐛 调试信息 (点击"+ze(o.showDebug?"收起":"展开")+")",1)]),o.showDebug?(F(),K("div",Nfn,[(F(!0),K(Nt,null,on(o.debugInfo,(a,s)=>(F(),K("div",{class:oe(["debug-item",a.type]),key:s},[x("span",Rfn,ze(a.time),1),x("span",Bfn,ze(a.message),1)],2))),128))])):xe("",!0)])):xe("",!0),x("div",Lfn,[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),An(" 重新尝试 ",-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),An(" 联系支持 ",-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 Ufn=Yo(kfn,[["render",Ffn],["__scopeId","data-v-f52e32e0"]]),zfn=[{path:"/",name:"Index",component:Olt,beforeEnter:(e,t,n)=>{q4()?(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:Mnn},{path:"/mobile/chat",name:"MobileChat",component:sin},{path:"/mobile/safety-hazard",name:"MobileSafetyHazard",component:lsn},{path:"/mobile/exam-workshop",name:"MobileExamWorkshop",component:Mun},{path:"/mobile/hazard-detection",name:"MobileHazardDetection",component:adn},{path:"/mobile/ai-writing",name:"MobileAIWriting",component:Ydn},{path:"/mobile/policy-document",name:"MobilePolicyDocument",component:Efn},{path:"/chat",name:"Chat",component:smt},{path:"/ai-writing",name:"AIWriting",component:OHt},{path:"/admin",name:"Admin",component:gWt},{path:"/exam-workshop",name:"ExamWorkshop",component:lGt},{path:"/hazard-detection",name:"HazardDetection",component:rYt},{path:"/policy-document",name:"PolicyDocument",component:IYt},{path:"/safety-hazard",name:"SafetyHazard",component:KJt},{path:"/template-editor",name:"TemplateEditor",component:ztn},{path:"/404",name:"NotFound",component:Ufn},{path:"/:pathMatch(.*)*",redirect:"/404"}],A0e=c7e({history:zDe(),routes:zfn});var X8={exports:{}};/*!
  2909. * Quill Editor v1.3.7
  2910. * https://quilljs.com/
  2911. * Copyright (c) 2014, Jason Chen
  2912. * Copyright (c) 2013, salesforce.com
  2913. */var $fn=X8.exports,C0e;function jfn(){return C0e||(C0e=1,(function(e,t){(function(r,o){e.exports=o()})(typeof self<"u"?self:$fn,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||`
  2914. `;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 M(_,R){for(var N=0;N<R.length;N++){var V=R[N];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(_,V.key,V)}}return function(_,R,N){return R&&M(_.prototype,R),N&&M(_,N),_}})(),a=function M(_,R,N){_===null&&(_=Function.prototype);var V=Object.getOwnPropertyDescriptor(_,R);if(V===void 0){var L=Object.getPrototypeOf(_);return L===null?void 0:M(L,R,N)}else{if("value"in V)return V.value;var j=V.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(M){return M&&M.__esModule?M:{default:M}}function w(M,_){if(!(M instanceof _))throw new TypeError("Cannot call a class as a function")}function A(M,_){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:M}function S(M,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);M.prototype=Object.create(_&&_.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(M,_):M.__proto__=_)}var k=1,O=(function(M){S(_,M);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,V){var L=f.default.query(N,f.default.Scope.BLOCK_ATTRIBUTE);L!=null&&this.attributes.attribute(L,V)}},{key:"formatAt",value:function(N,V,L,j){this.format(L,j)}},{key:"insertAt",value:function(N,V,L){if(typeof V=="string"&&V.endsWith(`
  2915. `)){var j=f.default.create(I.blotName);this.parent.insertBefore(j,N===0?this:this.next),j.insertAt(0,V.slice(0,-1))}else a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,N,V,L)}}]),_})(f.default.Embed);O.scope=f.default.Scope.BLOCK_BLOT;var I=(function(M){S(_,M);function _(R){w(this,_);var N=A(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,R));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,V){return V.length()===0?N:N.insert(V.value(),P(V))},new d.default).insert(`
  2916. `,P(this))),this.cache.delta}},{key:"deleteAt",value:function(N,V){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,N,V),this.cache={}}},{key:"formatAt",value:function(N,V,L,j){V<=0||(f.default.query(L,f.default.Scope.BLOCK)?N+V===this.length()&&this.format(L,j):a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,N,Math.min(V,this.length()-N-1),L,j),this.cache={})}},{key:"insertAt",value:function(N,V,L){if(L!=null)return a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,N,V,L);if(V.length!==0){var j=V.split(`
  2917. `),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,z){return G=G.split(Z,!0),G.insertAt(0,z),z.length},N+H.length)}}},{key:"insertBefore",value:function(N,V){var L=this.children.head;a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,N,V),L instanceof v.default&&L.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,V){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,N,V),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 V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(V&&(N===0||N>=this.length()-k)){var L=this.clone();return N===0?(this.parent.insertBefore(L,this),this):(this.parent.insertBefore(L,this.next),L)}else{var j=a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,N,V);return this.cache={},j}}}]),_})(f.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[g.default,f.default.Embed,m.default];function P(M){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return M==null||(typeof M.formats=="function"&&(_=(0,l.default)(_,M.formats())),M.parent==null||M.parent.blotName=="scroll"||M.parent.statics.scope!==M.statics.scope)?_:P(M.parent,_)}r.bubbleFormats=P,r.BlockEmbed=O,r.default=I}),(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,z){var U=[],W=!0,re=!1,J=void 0;try{for(var te=Z[Symbol.iterator](),X;!(W=(X=te.next()).done)&&(U.push(X.value),!(z&&U.length===z));W=!0);}catch(ue){re=!0,J=ue}finally{try{!W&&te.return&&te.return()}finally{if(re)throw J}}return U}return function(Z,z){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return G(Z,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function G(Z,z){for(var U=0;U<z.length;U++){var W=z[U];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(Z,W.key,W)}}return function(Z,z,U){return z&&G(Z.prototype,z),U&&G(Z,U),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),O=o(34),I=P(O);function P(G){return G&&G.__esModule?G:{default:G}}function M(G,Z,z){return Z in G?Object.defineProperty(G,Z,{value:z,enumerable:!0,configurable:!0,writable:!0}):G[Z]=z,G}function _(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}var R=(0,k.default)("quill"),N=(function(){s(G,null,[{key:"debug",value:function(z){z===!0&&(z="log"),k.default.level(z)}},{key:"find",value:function(z){return z.__quill||y.default.find(z)}},{key:"import",value:function(z){return this.imports[z]==null&&R.error("Cannot import "+z+". Are you sure it was registered?"),this.imports[z]}},{key:"register",value:function(z,U){var W=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof z!="string"){var J=z.attrName||z.blotName;typeof J=="string"?this.register("formats/"+J,z,U):Object.keys(z).forEach(function(te){W.register(te,z[te],U)})}else this.imports[z]!=null&&!re&&R.warn("Overwriting "+z+" with",U),this.imports[z]=U,(z.startsWith("blots/")||z.startsWith("formats/"))&&U.blotName!=="abstract"?y.default.register(U):z.startsWith("modules")&&typeof U.register=="function"&&U.register()}}]);function G(Z){var z=this,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_(this,G),this.options=V(Z,U),this.container=this.options.container,this.container==null)return R.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(J){J===p.default.events.TEXT_CHANGE&&z.root.classList.toggle("ql-blank",z.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(J,te){var X=z.selection.lastRange,ue=X&&X.length===0?X.index:void 0;L.call(z,function(){return z.editor.update(null,te,ue)},J)});var re=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+W+"<p><br></p></div>");this.setContents(re),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(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof z=="string"){var W=z;z=document.createElement("div"),z.classList.add(W)}return this.container.insertBefore(z,U),z}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(z,U,W){var re=this,J=j(z,U,W),te=a(J,4);return z=te[0],U=te[1],W=te[3],L.call(this,function(){return re.editor.deleteText(z,U)},W,z,-1*U)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(z),this.container.classList.toggle("ql-disabled",!z)}},{key:"focus",value:function(){var z=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=z,this.scrollIntoView()}},{key:"format",value:function(z,U){var W=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;return L.call(this,function(){var J=W.getSelection(!0),te=new u.default;if(J==null)return te;if(y.default.query(z,y.default.Scope.BLOCK))te=W.editor.formatLine(J.index,J.length,M({},z,U));else{if(J.length===0)return W.selection.format(z,U),te;te=W.editor.formatText(J.index,J.length,M({},z,U))}return W.setSelection(J,p.default.sources.SILENT),te},re)}},{key:"formatLine",value:function(z,U,W,re,J){var te=this,X=void 0,ue=j(z,U,W,re,J),me=a(ue,4);return z=me[0],U=me[1],X=me[2],J=me[3],L.call(this,function(){return te.editor.formatLine(z,U,X)},J,z,0)}},{key:"formatText",value:function(z,U,W,re,J){var te=this,X=void 0,ue=j(z,U,W,re,J),me=a(ue,4);return z=me[0],U=me[1],X=me[2],J=me[3],L.call(this,function(){return te.editor.formatText(z,U,X)},J,z,0)}},{key:"getBounds",value:function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=void 0;typeof z=="number"?W=this.selection.getBounds(z,U):W=this.selection.getBounds(z.index,z.length);var re=this.container.getBoundingClientRect();return{bottom:W.bottom-re.top,height:W.height,left:W.left-re.left,right:W.right-re.left,top:W.top-re.top,width:W.width}}},{key:"getContents",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-z,W=j(z,U),re=a(W,2);return z=re[0],U=re[1],this.editor.getContents(z,U)}},{key:"getFormat",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof z=="number"?this.editor.getFormat(z,U):this.editor.getFormat(z.index,z.length)}},{key:"getIndex",value:function(z){return z.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(z){return this.scroll.leaf(z)}},{key:"getLine",value:function(z){return this.scroll.line(z)}},{key:"getLines",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof z!="number"?this.scroll.lines(z.index,z.length):this.scroll.lines(z,U)}},{key:"getModule",value:function(z){return this.theme.modules[z]}},{key:"getSelection",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return z&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-z,W=j(z,U),re=a(W,2);return z=re[0],U=re[1],this.editor.getText(z,U)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(z,U,W){var re=this,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:G.sources.API;return L.call(this,function(){return re.editor.insertEmbed(z,U,W)},J,z)}},{key:"insertText",value:function(z,U,W,re,J){var te=this,X=void 0,ue=j(z,0,W,re,J),me=a(ue,4);return z=me[0],X=me[2],J=me[3],L.call(this,function(){return te.editor.insertText(z,U,X)},J,z,U.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(z,U,W){this.clipboard.dangerouslyPasteHTML(z,U,W)}},{key:"removeFormat",value:function(z,U,W){var re=this,J=j(z,U,W),te=a(J,4);return z=te[0],U=te[1],W=te[3],L.call(this,function(){return re.editor.removeFormat(z,U)},W,z)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(z){var U=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return L.call(this,function(){z=new u.default(z);var re=U.getLength(),J=U.editor.deleteText(0,re),te=U.editor.applyDelta(z),X=te.ops[te.ops.length-1];X!=null&&typeof X.insert=="string"&&X.insert[X.insert.length-1]===`
  2918. `&&(U.editor.deleteText(U.getLength()-1,1),te.delete(1));var ue=J.compose(te);return ue},W)}},{key:"setSelection",value:function(z,U,W){if(z==null)this.selection.setRange(null,U||G.sources.API);else{var re=j(z,U,W),J=a(re,4);z=J[0],U=J[1],W=J[3],this.selection.setRange(new m.Range(z,U),W),W!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API,W=new u.default().insert(z);return this.setContents(W,U)}},{key:"update",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,U=this.scroll.update(z);return this.selection.update(z),U}},{key:"updateContents",value:function(z){var U=this,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return L.call(this,function(){return z=new u.default(z),U.editor.applyDelta(z,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":I.default};function V(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=I.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 z=(0,A.default)(!0,{},Z.theme.DEFAULTS);[z,Z].forEach(function(re){re.modules=re.modules||{},Object.keys(re.modules).forEach(function(J){re.modules[J]===!0&&(re.modules[J]={})})});var U=Object.keys(z.modules).concat(Object.keys(Z.modules)),W=U.reduce(function(re,J){var te=N.import("modules/"+J);return te==null?R.error("Cannot load "+J+" module. Are you sure you registered it?"):re[J]=te.DEFAULTS||{},re},{});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,Z),["bounds","container","scrollingContainer"].forEach(function(re){typeof Z[re]=="string"&&(Z[re]=document.querySelector(Z[re]))}),Z.modules=Object.keys(Z.modules).reduce(function(re,J){return Z.modules[J]&&(re[J]=Z.modules[J]),re},{}),Z}function L(G,Z,z,U){if(this.options.strict&&!this.isEnabled()&&Z===p.default.sources.USER)return new u.default;var W=z==null?null:this.getSelection(),re=this.editor.delta,J=G();if(W!=null&&(z===!0&&(z=W.index),U==null?W=H(W,J,Z):U!==0&&(W=H(W,z,U,Z)),this.setSelection(W,p.default.sources.SILENT)),J.length()>0){var te,X=[p.default.events.TEXT_CHANGE,J,re,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 J}function j(G,Z,z,U,W){var re={};return typeof G.index=="number"&&typeof G.length=="number"?typeof Z!="number"?(W=U,U=z,z=Z,Z=G.length,G=G.index):(Z=G.length,G=G.index):typeof Z!="number"&&(W=U,U=z,z=Z,Z=0),(typeof z>"u"?"undefined":i(z))==="object"?(re=z,W=U):typeof z=="string"&&(U!=null?re[z]=U:W=z),W=W||p.default.sources.API,[G,Z,re,W]}function H(G,Z,z,U){if(G==null)return null;var W=void 0,re=void 0;if(Z instanceof u.default){var J=[G.index,G.index+G.length].map(function(me){return Z.transformPosition(me,U!==p.default.sources.USER)}),te=a(J,2);W=te[0],re=te[1]}else{var X=[G.index,G.index+G.length].map(function(me){return me<Z||me===Z&&U===p.default.sources.USER?me:z>=0?me+z:Math.max(Z,me+z)}),ue=a(X,2);W=ue[0],re=ue[1]}return new m.Range(W,re-W)}r.expandConfig=V,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 O=S.get;return O===void 0?void 0:O.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),O=1;O<S;O++)k[O-1]=arguments[O];(this.listeners[A.type]||[]).forEach(function(I){var P=I.node,M=I.handler;(A.target===P||P.contains(A.target))&&M.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 O(I,P){var M=[],_=!0,R=!1,N=void 0;try{for(var V=I[Symbol.iterator](),L;!(_=(L=V.next()).done)&&(M.push(L.value),!(P&&M.length===P));_=!0);}catch(j){R=!0,N=j}finally{try{!_&&V.return&&V.return()}finally{if(R)throw N}}return M}return function(I,P){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return O(I,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(I,P){for(var M=0;M<P.length;M++){var _=P[M];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(I,_.key,_)}}return function(I,P,M){return P&&O(I.prototype,P),M&&O(I,M),I}})(),s=function O(I,P,M){I===null&&(I=Function.prototype);var _=Object.getOwnPropertyDescriptor(I,P);if(_===void 0){var R=Object.getPrototypeOf(I);return R===null?void 0:O(R,P,M)}else{if("value"in _)return _.value;var N=_.get;return N===void 0?void 0:N.call(M)}},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(O){return O&&O.__esModule?O:{default:O}}function b(O,I){if(!(O instanceof I))throw new TypeError("Cannot call a class as a function")}function w(O,I){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:O}function A(O,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);O.prototype=Object.create(I&&I.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(O,I):O.__proto__=I)}var S=(function(O){A(I,O);function I(){return b(this,I),w(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I})(h.default);S.blotName="code",S.tagName="CODE";var k=(function(O){A(I,O);function I(){return b(this,I),w(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"delta",value:function(){var M=this,_=this.domNode.textContent;return _.endsWith(`
  2919. `)&&(_=_.slice(0,-1)),_.split(`
  2920. `).reduce(function(R,N){return R.insert(N).insert(`
  2921. `,M.formats())},new u.default)}},{key:"format",value:function(M,_){if(!(M===this.statics.blotName&&_)){var R=this.descendant(y.default,this.length()-1),N=i(R,1),V=N[0];V?.deleteAt(V.length()-1,1),s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,M,_)}}},{key:"formatAt",value:function(M,_,R,N){if(_!==0&&!(c.default.query(R,c.default.Scope.BLOCK)==null||R===this.statics.blotName&&N===this.statics.formats(this.domNode))){var V=this.newlineIndex(M);if(!(V<0||V>=M+_)){var L=this.newlineIndex(M,!0)+1,j=V-L+1,H=this.isolate(L,j),G=H.next;H.format(R,N),G instanceof I&&G.formatAt(0,M-L+_-j,R,N)}}}},{key:"insertAt",value:function(M,_,R){if(R==null){var N=this.descendant(y.default,M),V=i(N,2),L=V[0],j=V[1];L.insertAt(j,_)}}},{key:"length",value:function(){var M=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
  2922. `)?M:M+1}},{key:"newlineIndex",value:function(M){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,M).lastIndexOf(`
  2923. `);var R=this.domNode.textContent.slice(M).indexOf(`
  2924. `);return R>-1?M+R:-1}},{key:"optimize",value:function(M){this.domNode.textContent.endsWith(`
  2925. `)||this.appendChild(c.default.create("text",`
  2926. `)),s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,M);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(M),_.moveChildren(this),_.remove())}},{key:"replace",value:function(M){s(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,M),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var R=c.default.find(_);R==null?_.parentNode.removeChild(_):R instanceof c.default.Embed?R.remove():R.unwrap()})}}],[{key:"create",value:function(M){var _=s(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,M);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),I})(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,z){var U=[],W=!0,re=!1,J=void 0;try{for(var te=Z[Symbol.iterator](),X;!(W=(X=te.next()).done)&&(U.push(X.value),!(z&&U.length===z));W=!0);}catch(ue){re=!0,J=ue}finally{try{!W&&te.return&&te.return()}finally{if(re)throw J}}return U}return function(Z,z){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return G(Z,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function G(Z,z){for(var U=0;U<z.length;U++){var W=z[U];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(Z,W.key,W)}}return function(Z,z,U){return z&&G(Z.prototype,z),U&&G(Z,U),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),O=o(11),I=_(O),P=o(3),M=_(P);function _(G){return G&&G.__esModule?G:{default:G}}function R(G,Z,z){return Z in G?Object.defineProperty(G,Z,{value:z,enumerable:!0,configurable:!0,writable:!0}):G[Z]=z,G}function N(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}var V=/^[ -~]*$/,L=(function(){function G(Z){N(this,G),this.scroll=Z,this.delta=this.getDelta()}return s(G,[{key:"applyDelta",value:function(z){var U=this,W=!1;this.scroll.update();var re=this.scroll.length();return this.scroll.batchStart(),z=H(z),z.reduce(function(J,te){var X=te.retain||te.delete||te.insert.length||1,ue=te.attributes||{};if(te.insert!=null){if(typeof te.insert=="string"){var me=te.insert;me.endsWith(`
  2927. `)&&W&&(W=!1,me=me.slice(0,-1)),J>=re&&!me.endsWith(`
  2928. `)&&(W=!0),U.scroll.insertAt(J,me);var Me=U.scroll.line(J),Ae=a(Me,2),ge=Ae[0],_e=Ae[1],Q=(0,M.default)({},(0,m.bubbleFormats)(ge));if(ge instanceof b.default){var be=ge.descendant(p.default.Leaf,_e),De=a(be,1),pe=De[0];Q=(0,M.default)(Q,(0,m.bubbleFormats)(pe))}ue=c.default.attributes.diff(Q,ue)||{}}else if(i(te.insert)==="object"){var ie=Object.keys(te.insert)[0];if(ie==null)return J;U.scroll.insertAt(J,ie,te.insert[ie])}re+=X}return Object.keys(ue).forEach(function(ce){U.scroll.formatAt(J,X,ce,ue[ce])}),J+X},0),z.reduce(function(J,te){return typeof te.delete=="number"?(U.scroll.deleteAt(J,te.delete),J):J+(te.retain||te.insert.length||1)},0),this.scroll.batchEnd(),this.update(z)}},{key:"deleteText",value:function(z,U){return this.scroll.deleteAt(z,U),this.update(new u.default().retain(z).delete(U))}},{key:"formatLine",value:function(z,U){var W=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(re).forEach(function(J){if(!(W.scroll.whitelist!=null&&!W.scroll.whitelist[J])){var te=W.scroll.lines(z,Math.max(U,1)),X=U;te.forEach(function(ue){var me=ue.length();if(!(ue instanceof h.default))ue.format(J,re[J]);else{var Me=z-ue.offset(W.scroll),Ae=ue.newlineIndex(Me+X)-Me+1;ue.formatAt(Me,Ae,J,re[J])}X-=me})}}),this.scroll.optimize(),this.update(new u.default().retain(z).retain(U,(0,k.default)(re)))}},{key:"formatText",value:function(z,U){var W=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(re).forEach(function(J){W.scroll.formatAt(z,U,J,re[J])}),this.update(new u.default().retain(z).retain(U,(0,k.default)(re)))}},{key:"getContents",value:function(z,U){return this.delta.slice(z,z+U)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(z,U){return z.concat(U.delta())},new u.default)}},{key:"getFormat",value:function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=[],re=[];U===0?this.scroll.path(z).forEach(function(te){var X=a(te,1),ue=X[0];ue instanceof b.default?W.push(ue):ue instanceof p.default.Leaf&&re.push(ue)}):(W=this.scroll.lines(z,U),re=this.scroll.descendants(p.default.Leaf,z,U));var J=[W,re].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 M.default.apply(M.default,J)}},{key:"getText",value:function(z,U){return this.getContents(z,U).filter(function(W){return typeof W.insert=="string"}).map(function(W){return W.insert}).join("")}},{key:"insertEmbed",value:function(z,U,W){return this.scroll.insertAt(z,U,W),this.update(new u.default().retain(z).insert(R({},U,W)))}},{key:"insertText",value:function(z,U){var W=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U=U.replace(/\r\n/g,`
  2929. `).replace(/\r/g,`
  2930. `),this.scroll.insertAt(z,U),Object.keys(re).forEach(function(J){W.scroll.formatAt(z,U.length,J,re[J])}),this.update(new u.default().retain(z).insert(U,(0,k.default)(re)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var z=this.scroll.children.head;return z.statics.blotName!==b.default.blotName||z.children.length>1?!1:z.children.head instanceof A.default}},{key:"removeFormat",value:function(z,U){var W=this.getText(z,U),re=this.scroll.line(z+U),J=a(re,2),te=J[0],X=J[1],ue=0,me=new u.default;te!=null&&(te instanceof h.default?ue=te.newlineIndex(X)-X+1:ue=te.length()-X,me=te.delta().slice(X,X+ue-1).insert(`
  2931. `));var Me=this.getContents(z,U+ue),Ae=Me.diff(new u.default().insert(W).concat(me)),ge=new u.default().retain(z).concat(Ae);return this.applyDelta(ge)}},{key:"update",value:function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,re=this.delta;if(U.length===1&&U[0].type==="characterData"&&U[0].target.data.match(V)&&p.default.find(U[0].target)){var J=p.default.find(U[0].target),te=(0,m.bubbleFormats)(J),X=J.offset(this.scroll),ue=U[0].oldValue.replace(y.default.CONTENTS,""),me=new u.default().insert(ue),Me=new u.default().insert(J.value()),Ae=new u.default().retain(X).concat(me.diff(Me,W));z=Ae.reduce(function(ge,_e){return _e.insert?ge.insert(_e.insert,te):ge.push(_e)},new u.default),this.delta=re.compose(z)}else this.delta=this.getDelta(),(!z||!(0,I.default)(re.compose(z),this.delta))&&(z=re.diff(this.delta,W));return z}}]),G})();function j(G,Z){return Object.keys(Z).reduce(function(z,U){return G[U]==null||(Z[U]===G[U]?z[U]=Z[U]:Array.isArray(Z[U])?Z[U].indexOf(G[U])<0&&(z[U]=Z[U].concat([G[U]])):z[U]=[Z[U],G[U]]),z},{})}function H(G){return G.reduce(function(Z,z){if(z.insert===1){var U=(0,k.default)(z.attributes);return delete U.image,Z.insert({image:z.attributes.image},U)}if(z.attributes!=null&&(z.attributes.list===!0||z.attributes.bullet===!0)&&(z=(0,k.default)(z),z.attributes.list?z.attributes.list="ordered":(z.attributes.list="bullet",delete z.attributes.bullet)),typeof z.insert=="string"){var W=z.insert.replace(/\r\n/g,`
  2932. `).replace(/\r/g,`
  2933. `);return Z.insert(W,z.attributes)}return Z.push(z)},new u.default)}r.default=L}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var i=(function(){function O(I,P){var M=[],_=!0,R=!1,N=void 0;try{for(var V=I[Symbol.iterator](),L;!(_=(L=V.next()).done)&&(M.push(L.value),!(P&&M.length===P));_=!0);}catch(j){R=!0,N=j}finally{try{!_&&V.return&&V.return()}finally{if(R)throw N}}return M}return function(I,P){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return O(I,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(I,P){for(var M=0;M<P.length;M++){var _=P[M];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(I,_.key,_)}}return function(I,P,M){return P&&O(I.prototype,P),M&&O(I,M),I}})(),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(O){return O&&O.__esModule?O:{default:O}}function m(O){if(Array.isArray(O)){for(var I=0,P=Array(O.length);I<O.length;I++)P[I]=O[I];return P}else return Array.from(O)}function b(O,I){if(!(O instanceof I))throw new TypeError("Cannot call a class as a function")}var w=(0,g.default)("quill:selection"),A=function O(I){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,O),this.index=I,this.length=P},S=(function(){function O(I,P){var M=this;b(this,O),this.emitter=P,this.scroll=I,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(){M.mouseDown||setTimeout(M.update.bind(M,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(_,R){_===v.default.events.TEXT_CHANGE&&R.length()>0&&M.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(M.hasFocus()){var _=M.getNativeRange();_!=null&&_.start.node!==M.cursor.textNode&&M.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{M.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(_,R){if(R.range){var N=R.range,V=N.startNode,L=N.startOffset,j=N.endNode,H=N.endOffset;M.setNativeRange(V,L,j,H)}}),this.update(v.default.sources.SILENT)}return a(O,[{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 M=P.cursor.restore();if(!M)return;setTimeout(function(){P.setNativeRange(M.startNode,M.startOffset,M.endNode,M.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,M){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 R=l.default.find(_.start.node,!1);if(R==null)return;if(R instanceof l.default.Leaf){var N=R.split(_.start.offset);R.parent.insertBefore(this.cursor,N)}else R.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(P,M),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();P=Math.min(P,_-1),M=Math.min(P+M,_-1)-P;var R=void 0,N=this.scroll.leaf(P),V=i(N,2),L=V[0],j=V[1];if(L==null)return null;var H=L.position(j,!0),G=i(H,2);R=G[0],j=G[1];var Z=document.createRange();if(M>0){Z.setStart(R,j);var z=this.scroll.leaf(P+M),U=i(z,2);if(L=U[0],j=U[1],L==null)return null;var W=L.position(j,!0),re=i(W,2);return R=re[0],j=re[1],Z.setEnd(R,j),Z.getBoundingClientRect()}else{var J="left",te=void 0;return R instanceof Text?(j<R.data.length?(Z.setStart(R,j),Z.setEnd(R,j+1)):(Z.setStart(R,j-1),Z.setEnd(R,j),J="right"),te=Z.getBoundingClientRect()):(te=L.domNode.getBoundingClientRect(),j>0&&(J="right")),{bottom:te.top+te.height,height:te.height,left:te[J],right:te[J],top:te.top,width:0}}}},{key:"getNativeRange",value:function(){var P=document.getSelection();if(P==null||P.rangeCount<=0)return null;var M=P.getRangeAt(0);if(M==null)return null;var _=this.normalizeNative(M);return w.info("getNativeRange",_),_}},{key:"getRange",value:function(){var P=this.getNativeRange();if(P==null)return[null,null];var M=this.normalizedToRange(P);return[M,P]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(P){var M=this,_=[[P.start.node,P.start.offset]];P.native.collapsed||_.push([P.end.node,P.end.offset]);var R=_.map(function(L){var j=i(L,2),H=j[0],G=j[1],Z=l.default.find(H,!0),z=Z.offset(M.scroll);return G===0?z:Z instanceof l.default.Container?z+Z.length():z+Z.index(H,G)}),N=Math.min(Math.max.apply(Math,m(R)),this.scroll.length()-1),V=Math.min.apply(Math,[N].concat(m(R)));return new A(V,N-V)}},{key:"normalizeNative",value:function(P){if(!k(this.root,P.startContainer)||!P.collapsed&&!k(this.root,P.endContainer))return null;var M={start:{node:P.startContainer,offset:P.startOffset},end:{node:P.endContainer,offset:P.endOffset},native:P};return[M.start,M.end].forEach(function(_){for(var R=_.node,N=_.offset;!(R instanceof Text)&&R.childNodes.length>0;)if(R.childNodes.length>N)R=R.childNodes[N],N=0;else if(R.childNodes.length===N)R=R.lastChild,N=R instanceof Text?R.data.length:R.childNodes.length+1;else break;_.node=R,_.offset=N}),M}},{key:"rangeToNative",value:function(P){var M=this,_=P.collapsed?[P.index]:[P.index,P.index+P.length],R=[],N=this.scroll.length();return _.forEach(function(V,L){V=Math.min(N-1,V);var j=void 0,H=M.scroll.leaf(V),G=i(H,2),Z=G[0],z=G[1],U=Z.position(z,L!==0),W=i(U,2);j=W[0],z=W[1],R.push(j,z)}),R.length<2&&(R=R.concat(R)),R}},{key:"scrollIntoView",value:function(P){var M=this.lastRange;if(M!=null){var _=this.getBounds(M.index,M.length);if(_!=null){var R=this.scroll.length()-1,N=this.scroll.line(Math.min(M.index,R)),V=i(N,1),L=V[0],j=L;if(M.length>0){var H=this.scroll.line(Math.min(M.index+M.length,R)),G=i(H,1);j=G[0]}if(!(L==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,M){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",P,M,_,R),!(P!=null&&(this.root.parentNode==null||P.parentNode==null||_.parentNode==null))){var V=document.getSelection();if(V!=null)if(P!=null){this.hasFocus()||this.root.focus();var L=(this.getNativeRange()||{}).native;if(L==null||N||P!==L.startContainer||M!==L.startOffset||_!==L.endContainer||R!==L.endOffset){P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode),_.tagName=="BR"&&(R=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var j=document.createRange();j.setStart(P,M),j.setEnd(_,R),V.removeAllRanges(),V.addRange(j)}}else V.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(P){var M=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 M=="string"&&(_=M,M=!1),w.info("setRange",P),P!=null){var R=this.rangeToNative(P);this.setNativeRange.apply(this,m(R).concat([M]))}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,M=this.lastRange,_=this.getRange(),R=i(_,2),N=R[0],V=R[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(M,this.lastRange)){var L;!this.composing&&V!=null&&V.native.collapsed&&V.start.node!==this.cursor.textNode&&this.cursor.restore();var j=[v.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(M),P];if((L=this.emitter).emit.apply(L,[v.default.events.EDITOR_CHANGE].concat(j)),P!==v.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,j)}}}}]),O})();function k(O,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),O.contains(I)}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(O,I){if(O===null)return null;if(I===0)return O;var P,M;if(typeof O!="object")return O;if(i(O,a))P=new a;else if(i(O,s))P=new s;else if(i(O,l))P=new l(function(Z,z){O.then(function(U){Z(k(U,I-1))},function(U){z(k(U,I-1))})});else if(u.__isArray(O))P=[];else if(u.__isRegExp(O))P=new RegExp(O.source,v(O)),O.lastIndex&&(P.lastIndex=O.lastIndex);else if(u.__isDate(O))P=new Date(O.getTime());else{if(S&&Buffer.isBuffer(O))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(O.length):P=new Buffer(O.length),O.copy(P),P;i(O,Error)?P=Object.create(O):typeof m>"u"?(M=Object.getPrototypeOf(O),P=Object.create(M)):(P=Object.create(m),M=m)}if(g){var _=w.indexOf(O);if(_!=-1)return A[_];w.push(O),A.push(P)}i(O,a)&&O.forEach(function(Z,z){var U=k(z,I-1),W=k(Z,I-1);P.set(U,W)}),i(O,s)&&O.forEach(function(Z){var z=k(Z,I-1);P.add(z)});for(var R in O){var N;M&&(N=Object.getOwnPropertyDescriptor(M,R)),!(N&&N.set==null)&&(P[R]=k(O[R],I-1))}if(Object.getOwnPropertySymbols)for(var V=Object.getOwnPropertySymbols(O),R=0;R<V.length;R++){var L=V[R],j=Object.getOwnPropertyDescriptor(O,L);j&&!j.enumerable&&!b||(P[L]=k(O[L],I-1),j.enumerable||Object.defineProperty(P,L,{enumerable:!1}))}if(b)for(var H=Object.getOwnPropertyNames(O),R=0;R<H.length;R++){var G=H[R],j=Object.getOwnPropertyDescriptor(O,G);j&&j.enumerable||(P[G]=k(O[G],I-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(M,_){var R=[],N=!0,V=!1,L=void 0;try{for(var j=M[Symbol.iterator](),H;!(N=(H=j.next()).done)&&(R.push(H.value),!(_&&R.length===_));N=!0);}catch(G){V=!0,L=G}finally{try{!N&&j.return&&j.return()}finally{if(V)throw L}}return R}return function(M,_){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return P(M,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function P(M,_){for(var R=0;R<_.length;R++){var N=_[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}return function(M,_,R){return _&&P(M.prototype,_),R&&P(M,R),M}})(),s=function P(M,_,R){M===null&&(M=Function.prototype);var N=Object.getOwnPropertyDescriptor(M,_);if(N===void 0){var V=Object.getPrototypeOf(M);return V===null?void 0:P(V,_,R)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(R)}},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,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")}function S(P,M){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:P}function k(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);P.prototype=Object.create(M&&M.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(P,M):P.__proto__=M)}function O(P){return P instanceof p.default||P instanceof f.BlockEmbed}var I=(function(P){k(M,P);function M(_,R){A(this,M);var N=S(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,_));return N.emitter=R.emitter,Array.isArray(R.whitelist)&&(N.whitelist=R.whitelist.reduce(function(V,L){return V[L]=!0,V},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return a(M,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(R,N){var V=this.line(R),L=i(V,2),j=L[0],H=L[1],G=this.line(R+N),Z=i(G,1),z=Z[0];if(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"deleteAt",this).call(this,R,N),z!=null&&j!==z&&H>0){if(j instanceof f.BlockEmbed||z instanceof f.BlockEmbed){this.optimize();return}if(j instanceof y.default){var U=j.newlineIndex(j.length(),!0);if(U>-1&&(j=j.split(U+1),j===z)){this.optimize();return}}else if(z instanceof y.default){var W=z.newlineIndex(0);W>-1&&z.split(W+1)}var re=z.children.head instanceof h.default?null:z.children.head;j.moveChildren(z,re),j.remove()}this.optimize()}},{key:"enable",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",R)}},{key:"formatAt",value:function(R,N,V,L){this.whitelist!=null&&!this.whitelist[V]||(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"formatAt",this).call(this,R,N,V,L),this.optimize())}},{key:"insertAt",value:function(R,N,V){if(!(V!=null&&this.whitelist!=null&&!this.whitelist[N])){if(R>=this.length())if(V==null||u.default.query(N,u.default.Scope.BLOCK)==null){var L=u.default.create(this.statics.defaultChild);this.appendChild(L),V==null&&N.endsWith(`
  2934. `)&&(N=N.slice(0,-1)),L.insertAt(0,N,V)}else{var j=u.default.create(N,V);this.appendChild(j)}else s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,R,N,V);this.optimize()}}},{key:"insertBefore",value:function(R,N){if(R.statics.scope===u.default.Scope.INLINE_BLOT){var V=u.default.create(this.statics.defaultChild);V.appendChild(R),R=V}s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,R,N)}},{key:"leaf",value:function(R){return this.path(R).pop()||[null,-1]}},{key:"line",value:function(R){return R===this.length()?this.line(R-1):this.descendant(O,R)}},{key:"lines",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,V=function L(j,H,G){var Z=[],z=G;return j.children.forEachAt(H,G,function(U,W,re){O(U)?Z.push(U):U instanceof u.default.Container&&(Z=Z.concat(L(U,W,z))),z-=re}),Z};return V(this,R,N)}},{key:"optimize",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,R,N),R.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,R,N))}},{key:"path",value:function(R){return s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"path",this).call(this,R).slice(1)}},{key:"update",value:function(R){if(this.batch!==!0){var N=c.default.sources.USER;typeof R=="string"&&(N=R),Array.isArray(R)||(R=this.observer.takeRecords()),R.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,N,R),s(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"update",this).call(this,R.concat([])),R.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,N,R)}}}]),M})(u.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[p.default,f.BlockEmbed,b.default],r.default=I}),(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 me=[],Me=!0,Ae=!1,ge=void 0;try{for(var _e=X[Symbol.iterator](),Q;!(Me=(Q=_e.next()).done)&&(me.push(Q.value),!(ue&&me.length===ue));Me=!0);}catch(be){Ae=!0,ge=be}finally{try{!Me&&_e.return&&_e.return()}finally{if(Ae)throw ge}}return me}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 me=0;me<ue.length;me++){var Me=ue[me];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(X,Me.key,Me)}}return function(X,ue,me){return ue&&te(X.prototype,ue),me&&te(X,me),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),O=o(9),I=P(O);function P(te){return te&&te.__esModule?te:{default:te}}function M(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 R(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 V=(0,k.default)("quill:keyboard"),L=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",j=(function(te){N(X,te),s(X,null,[{key:"match",value:function(me,Me){return Me=J(Me),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ae){return!!Me[Ae]!==me[Ae]&&Me[Ae]!==null})?!1:Me.key===(me.which||me.keyCode)}}]);function X(ue,me){_(this,X);var Me=R(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,ue,me));return Me.bindings={},Object.keys(Me.options.bindings).forEach(function(Ae){Ae==="list autofill"&&ue.scroll.whitelist!=null&&!ue.scroll.whitelist.list||Me.options.bindings[Ae]&&Me.addBinding(Me.options.bindings[Ae])}),Me.addBinding({key:X.keys.ENTER,shiftKey:null},U),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},z),Me.addBinding({key:X.keys.DELETE},{collapsed:!1},z),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(me){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ge=J(me);if(ge==null||ge.key==null)return V.warn("Attempted to add invalid keyboard binding",ge);typeof Me=="function"&&(Me={handler:Me}),typeof Ae=="function"&&(Ae={handler:Ae}),ge=(0,p.default)(ge,Me,Ae),this.bindings[ge.key]=this.bindings[ge.key]||[],this.bindings[ge.key].push(ge)}},{key:"listen",value:function(){var me=this;this.quill.root.addEventListener("keydown",function(Me){if(!Me.defaultPrevented){var Ae=Me.which||Me.keyCode,ge=(me.bindings[Ae]||[]).filter(function(Wt){return X.match(Me,Wt)});if(ge.length!==0){var _e=me.quill.getSelection();if(!(_e==null||!me.quill.hasFocus())){var Q=me.quill.getLine(_e.index),be=a(Q,2),De=be[0],pe=be[1],ie=me.quill.getLeaf(_e.index),ce=a(ie,2),Re=ce[0],Ee=ce[1],Le=_e.length===0?[Re,Ee]:me.quill.getLeaf(_e.index+_e.length),Fe=a(Le,2),Pe=Fe[0],Ne=Fe[1],ht=Re instanceof b.default.Text?Re.value().slice(0,Ee):"",Rt=Pe instanceof b.default.Text?Pe.value().slice(Ne):"",Lt={collapsed:_e.length===0,empty:_e.length===0&&De.length()<=1,format:me.quill.getFormat(_e),offset:pe,prefix:ht,suffix:Rt},tn=ge.some(function(Wt){if(Wt.collapsed!=null&&Wt.collapsed!==Lt.collapsed||Wt.empty!=null&&Wt.empty!==Lt.empty||Wt.offset!=null&&Wt.offset!==Lt.offset)return!1;if(Array.isArray(Wt.format)){if(Wt.format.every(function(zt){return Lt.format[zt]==null}))return!1}else if(i(Wt.format)==="object"&&!Object.keys(Wt.format).every(function(zt){return Wt.format[zt]===!0?Lt.format[zt]!=null:Wt.format[zt]===!1?Lt.format[zt]==null:(0,c.default)(Wt.format[zt],Lt.format[zt])}))return!1;return Wt.prefix!=null&&!Wt.prefix.test(Lt.prefix)||Wt.suffix!=null&&!Wt.suffix.test(Lt.suffix)?!1:Wt.handler.call(me,_e,Lt)!==!0});tn&&Me.preventDefault()}}}})}}]),X})(I.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:re("bold"),italic:re("italic"),underline:re("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),me=a(ue,2),Me=me[0],Ae=me[1],ge=(0,p.default)({},Me.formats(),{list:"checked"}),_e=new h.default().retain(X.index).insert(`
  2935. `,ge).retain(Me.length()-Ae-1).retain(1,{list:"unchecked"});this.quill.updateContents(_e,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 me=this.quill.getLine(X.index),Me=a(me,2),Ae=Me[0],ge=Me[1],_e=new h.default().retain(X.index).insert(`
  2936. `,ue.format).retain(Ae.length()-ge-1).retain(1,{header:null});this.quill.updateContents(_e,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 me=ue.prefix.length,Me=this.quill.getLine(X.index),Ae=a(Me,2),ge=Ae[0],_e=Ae[1];if(_e>me)return!0;var Q=void 0;switch(ue.prefix.trim()){case"[]":case"[ ]":Q="unchecked";break;case"[x]":Q="checked";break;case"-":case"*":Q="bullet";break;default:Q="ordered"}this.quill.insertText(X.index," ",A.default.sources.USER),this.quill.history.cutoff();var be=new h.default().retain(X.index-_e).delete(me+1).retain(ge.length()-2-_e).retain(1,{list:Q});this.quill.updateContents(be,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index-me,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),me=a(ue,2),Me=me[0],Ae=me[1],ge=new h.default().retain(X.index+Me.length()-Ae-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ge,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,me=te===j.keys.LEFT?"prefix":"suffix";return ue={key:te,shiftKey:X,altKey:null},M(ue,me,/^$/),M(ue,"handler",function(Ae){var ge=Ae.index;te===j.keys.RIGHT&&(ge+=Ae.length+1);var _e=this.quill.getLeaf(ge),Q=a(_e,1),be=Q[0];return be instanceof b.default.Embed?(te===j.keys.LEFT?X?this.quill.setSelection(Ae.index-1,Ae.length+1,A.default.sources.USER):this.quill.setSelection(Ae.index-1,A.default.sources.USER):X?this.quill.setSelection(Ae.index,Ae.length+1,A.default.sources.USER):this.quill.setSelection(Ae.index+Ae.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),me=a(ue,1),Me=me[0],Ae={};if(X.offset===0){var ge=this.quill.getLine(te.index-1),_e=a(ge,1),Q=_e[0];if(Q!=null&&Q.length()>1){var be=Me.formats(),De=this.quill.getFormat(te.index-1,1);Ae=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(Ae).length>0&&this.quill.formatLine(te.index-pe,pe,Ae,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 me={},Me=0,Ae=this.quill.getLine(te.index),ge=a(Ae,1),_e=ge[0];if(X.offset>=_e.length()-1){var Q=this.quill.getLine(te.index+1),be=a(Q,1),De=be[0];if(De){var pe=_e.formats(),ie=this.quill.getFormat(te.index,1);me=y.default.attributes.diff(pe,ie)||{},Me=De.length()}}this.quill.deleteText(te.index,ue,A.default.sources.USER),Object.keys(me).length>0&&this.quill.formatLine(te.index+Me-1,ue,me,A.default.sources.USER)}}function z(te){var X=this.quill.getLines(te),ue={};if(X.length>1){var me=X[0].formats(),Me=X[X.length-1].formats();ue=y.default.attributes.diff(Me,me)||{}}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 U(te,X){var ue=this;te.length>0&&this.quill.scroll.deleteAt(te.index,te.length);var me=Object.keys(X.format).reduce(function(Me,Ae){return b.default.query(Ae,b.default.Scope.BLOCK)&&!Array.isArray(X.format[Ae])&&(Me[Ae]=X.format[Ae]),Me},{});this.quill.insertText(te.index,`
  2937. `,me,A.default.sources.USER),this.quill.setSelection(te.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(X.format).forEach(function(Me){me[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 me=b.default.query("code-block"),Me=ue.index,Ae=ue.length,ge=this.quill.scroll.descendant(me,Me),_e=a(ge,2),Q=_e[0],be=_e[1];if(Q!=null){var De=this.quill.getIndex(Q),pe=Q.newlineIndex(be,!0)+1,ie=Q.newlineIndex(De+be+Ae),ce=Q.domNode.textContent.slice(pe,ie).split(`
  2938. `);be=0,ce.forEach(function(Re,Ee){te?(Q.insertAt(pe+be,me.TAB),be+=me.TAB.length,Ee===0?Me+=me.TAB.length:Ae+=me.TAB.length):Re.startsWith(me.TAB)&&(Q.deleteAt(pe+be,me.TAB.length),be-=me.TAB.length,Ee===0?Me-=me.TAB.length:Ae-=me.TAB.length),be+=Re.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(Me,Ae,A.default.sources.SILENT)}}}}function re(te){return{key:te[0].toUpperCase(),shortKey:!0,handler:function(ue,me){this.quill.format(te,!me.format[te],A.default.sources.USER)}}}function J(te){if(typeof te=="string"||typeof te=="number")return J({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[L]=te.shortKey,delete te.shortKey),te}r.default=j,r.SHORTKEY=L}),(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 O=m[Symbol.iterator](),I;!(A=(I=O.next()).done)&&(w.push(I.value),!(b&&w.length===b));A=!0);}catch(P){S=!0,k=P}finally{try{!A&&O.return&&O.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,O=void 0;if(A!=null&&A.start.node===w&&A.end.node===w){var I=[w,A.start.offset,A.end.offset];S=I[0],k=I[1],O=I[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 M=[k,O].map(function(R){return Math.max(0,Math.min(S.data.length,R-1))}),_=i(M,2);return k=_[0],O=_[1],{startNode:S,startOffset:k,endNode:S,endOffset:O}}}}},{key:"update",value:function(w,A){var S=this;if(w.some(function(O){return O.type==="characterData"&&O.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=V(i),s=o(5),l=V(s),u=o(4),d=V(u),c=o(16),f=V(c),p=o(25),v=V(p),h=o(24),g=V(h),y=o(35),m=V(y),b=o(6),w=V(b),A=o(22),S=V(A),k=o(7),O=V(k),I=o(55),P=V(I),M=o(42),_=V(M),R=o(23),N=V(R);function V(L){return L&&L.__esModule?L:{default:L}}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":O.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,O.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 O=this.prev.length();this.prev.insertAt(O,k),A={startNode:this.prev.domNode,startOffset:O+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 O=S.restore(k.target);O&&(A.range=O)}})}}]),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(O,I,P,M){O!==u.default.events.TEXT_CHANGE||k.ignoreChange||(!k.options.userOnly||M===u.default.sources.USER?k.record(I,P):k.transform(I))}),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 O=this.stack[S].pop();this.stack[k].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[S],u.default.sources.USER),this.ignoreChange=!1;var I=m(O[S]);this.quill.setSelection(I)}}},{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 O=this.quill.getContents().diff(k),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var P=this.stack.undo.pop();O=O.compose(P.undo),S=P.redo.compose(S)}else this.lastRecorded=I;this.stack.undo.push({redo:S,undo:O}),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(`
  2939. `):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 U(W,re){for(var J=0;J<re.length;J++){var te=re[J];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(W,te.key,te)}}return function(W,re,J){return re&&U(W.prototype,re),J&&U(W,J),W}})(),a=function U(W,re,J){W===null&&(W=Function.prototype);var te=Object.getOwnPropertyDescriptor(W,re);if(te===void 0){var X=Object.getPrototypeOf(W);return X===null?void 0:U(X,re,J)}else{if("value"in te)return te.value;var ue=te.get;return ue===void 0?void 0:ue.call(J)}},s=o(3),l=I(s),u=o(2),d=I(u),c=o(8),f=I(c),p=o(23),v=I(p),h=o(34),g=I(h),y=o(59),m=I(y),b=o(60),w=I(b),A=o(28),S=I(A),k=o(61),O=I(k);function I(U){return U&&U.__esModule?U:{default:U}}function P(U,W){if(!(U instanceof W))throw new TypeError("Cannot call a class as a function")}function M(U,W){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:U}function _(U,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);U.prototype=Object.create(W&&W.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(U,W):U.__proto__=W)}var R=[!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"],V=[!1,"serif","monospace"],L=["1","2","3",!1],j=["small",!1,"large","huge"],H=(function(U){_(W,U);function W(re,J){P(this,W);var te=M(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,re,J)),X=function ue(me){if(!document.body.contains(re.root))return document.body.removeEventListener("click",ue);te.tooltip!=null&&!te.tooltip.root.contains(me.target)&&document.activeElement!==te.tooltip.textbox&&!te.quill.hasFocus()&&te.tooltip.hide(),te.pickers!=null&&te.pickers.forEach(function(Me){Me.container.contains(me.target)||Me.close()})};return re.emitter.listenDOM("click",document.body,X),te}return i(W,[{key:"addModule",value:function(J){var te=a(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"addModule",this).call(this,J);return J==="toolbar"&&this.extendToolbar(te),te}},{key:"buildButtons",value:function(J,te){J.forEach(function(X){var ue=X.getAttribute("class")||"";ue.split(/\s+/).forEach(function(me){if(me.startsWith("ql-")&&(me=me.slice(3),te[me]!=null))if(me==="direction")X.innerHTML=te[me][""]+te[me].rtl;else if(typeof te[me]=="string")X.innerHTML=te[me];else{var Me=X.value||"";Me!=null&&te[me][Me]&&(X.innerHTML=te[me][Me])}})})}},{key:"buildPickers",value:function(J,te){var X=this;this.pickers=J.map(function(me){if(me.classList.contains("ql-align"))return me.querySelector("option")==null&&z(me,R),new w.default(me,te.align);if(me.classList.contains("ql-background")||me.classList.contains("ql-color")){var Me=me.classList.contains("ql-background")?"background":"color";return me.querySelector("option")==null&&z(me,N,Me==="background"?"#ffffff":"#000000"),new m.default(me,te[Me])}else return me.querySelector("option")==null&&(me.classList.contains("ql-font")?z(me,V):me.classList.contains("ql-header")?z(me,L):me.classList.contains("ql-size")&&z(me,j)),new S.default(me)});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,re=this.container.querySelector("input.ql-image[type=file]");re==null&&(re=document.createElement("input"),re.setAttribute("type","file"),re.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),re.classList.add("ql-image"),re.addEventListener("change",function(){if(re.files!=null&&re.files[0]!=null){var J=new FileReader;J.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),re.value=""},J.readAsDataURL(re.files[0])}}),this.container.appendChild(re)),re.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var G=(function(U){_(W,U);function W(re,J){P(this,W);var te=M(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,re,J));return te.textbox=te.root.querySelector('input[type="text"]'),te.listen(),te}return i(W,[{key:"listen",value:function(){var J=this;this.textbox.addEventListener("keydown",function(te){v.default.match(te,"enter")?(J.save(),te.preventDefault()):v.default.match(te,"escape")&&(J.cancel(),te.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var J=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:J!==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-"+J)||""),this.root.setAttribute("data-mode",J)}},{key:"restoreFocus",value:function(){var J=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=J}},{key:"save",value:function(){var J=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",J,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",J,f.default.sources.USER)),this.quill.root.scrollTop=te;break}case"video":J=Z(J);case"formula":{if(!J)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"),J,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})(O.default);function Z(U){var W=U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return W?(W[1]||"https")+"://www.youtube.com/embed/"+W[2]+"?showinfo=0":(W=U.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(W[1]||"https")+"://player.vimeo.com/video/"+W[2]+"/":U}function z(U,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;W.forEach(function(J){var te=document.createElement("option");J===re?te.setAttribute("selected","selected"):te.setAttribute("value",J),U.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 O=s.find(k,!1);y(O,!1),O instanceof a.default&&O.children.forEach(function(I){y(I,!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),O=w.substring(0,k);w=w.substring(k),A=A.substring(k),k=f(w,A);var I=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 O&&P.unshift([a,O]),I&&P.push([a,I]),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,O=w.length>A.length?A:w,I=k.indexOf(O);if(I!=-1)return S=[[i,k.substring(0,I)],[a,O],[i,k.substring(I+O.length)]],w.length>A.length&&(S[0][0]=S[2][0]=o),S;if(O.length==1)return[[o,w],[i,A]];var P=p(w,A);if(P){var M=P[0],_=P[1],R=P[2],N=P[3],V=P[4],L=s(M,R),j=s(_,N);return L.concat([[a,V]],j)}return u(w,A)}function u(w,A){for(var S=w.length,k=A.length,O=Math.ceil((S+k)/2),I=O,P=2*O,M=new Array(P),_=new Array(P),R=0;R<P;R++)M[R]=-1,_[R]=-1;M[I+1]=0,_[I+1]=0;for(var N=S-k,V=N%2!=0,L=0,j=0,H=0,G=0,Z=0;Z<O;Z++){for(var z=-Z+L;z<=Z-j;z+=2){var U=I+z,W;z==-Z||z!=Z&&M[U-1]<M[U+1]?W=M[U+1]:W=M[U-1]+1;for(var re=W-z;W<S&&re<k&&w.charAt(W)==A.charAt(re);)W++,re++;if(M[U]=W,W>S)j+=2;else if(re>k)L+=2;else if(V){var J=I+N-z;if(J>=0&&J<P&&_[J]!=-1){var te=S-_[J];if(W>=te)return d(w,A,W,re)}}}for(var X=-Z+H;X<=Z-G;X+=2){var J=I+X,te;X==-Z||X!=Z&&_[J-1]<_[J+1]?te=_[J+1]:te=_[J-1]+1;for(var ue=te-X;te<S&&ue<k&&w.charAt(S-te-1)==A.charAt(k-ue-1);)te++,ue++;if(_[J]=te,te>S)G+=2;else if(ue>k)H+=2;else if(!V){var U=I+N-X;if(U>=0&&U<P&&M[U]!=-1){var W=M[U],re=I+W-U;if(te=S-te,W>=te)return d(w,A,W,re)}}}}return[[o,w],[i,A]]}function d(w,A,S,k){var O=w.substring(0,S),I=A.substring(0,k),P=w.substring(S),M=A.substring(k),_=s(O,I),R=s(P,M);return _.concat(R)}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),O=k,I=0;S<O;)w.substring(I,O)==A.substring(I,O)?(S=O,I=S):k=O,O=Math.floor((k-S)/2+S);return O}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),O=k,I=0;S<O;)w.substring(w.length-O,w.length-I)==A.substring(A.length-O,A.length-I)?(S=O,I=S):k=O,O=Math.floor((k-S)/2+S);return O}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 O(j,H,G){for(var Z=j.substring(G,G+Math.floor(j.length/4)),z=-1,U="",W,re,J,te;(z=H.indexOf(Z,z+1))!=-1;){var X=c(j.substring(G),H.substring(z)),ue=f(j.substring(0,G),H.substring(0,z));U.length<ue+X&&(U=H.substring(z-ue,z)+H.substring(z,z+X),W=j.substring(0,G-ue),re=j.substring(G+X),J=H.substring(0,z-ue),te=H.substring(z+X))}return U.length*2>=j.length?[W,re,J,te,U]:null}var I=O(S,k,Math.ceil(S.length/4)),P=O(S,k,Math.ceil(S.length/2)),M;if(!I&&!P)return null;P?I?M=I[4].length>P[4].length?I:P:M=P:M=I;var _,R,N,V;w.length>A.length?(_=M[0],R=M[1],N=M[2],V=M[3]):(N=M[0],V=M[1],_=M[2],R=M[3]);var L=M[4];return[_,R,N,V,L]}function v(w){w.push([a,""]);for(var A=0,S=0,k=0,O="",I="",P;A<w.length;)switch(w[A][0]){case i:k++,I+=w[A][1],A++;break;case o:S++,O+=w[A][1],A++;break;case a:S+k>1?(S!==0&&k!==0&&(P=c(I,O),P!==0&&(A-S-k>0&&w[A-S-k-1][0]==a?w[A-S-k-1][1]+=I.substring(0,P):(w.splice(0,0,[a,I.substring(0,P)]),A++),I=I.substring(P),O=O.substring(P)),P=f(I,O),P!==0&&(w[A][1]=I.substring(I.length-P)+w[A][1],I=I.substring(0,I.length-P),O=O.substring(0,O.length-P))),S===0?w.splice(A-k,S+k,[i,I]):k===0?w.splice(A-S,S+k,[o,O]):w.splice(A-S-k,S+k,[o,O],[i,I]),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,O="",I="";break}w[w.length-1][1]===""&&w.pop();var M=!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),M=!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),M=!0)),A++;M&&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 O=w[k];if(O[0]===o||O[0]===a){var I=S+O[1].length;if(A===I)return[k+1,w];if(A<I){w=w.slice();var P=A-S,M=[O[0],O[1].slice(0,P)],_=[O[0],O[1].slice(P)];return w.splice(k,1,M,_),[k+1,w]}else S=I}}throw new Error("cursor_pos is out of bounds!")}function y(w,A){var S=g(w,A),k=S[1],O=S[0],I=k[O],P=k[O+1];if(I==null)return w;if(I[0]!==a)return w;if(P!=null&&I[1]+P[1]===P[1]+I[1])return k.splice(O,2,P,I),b(k,O,2);if(P!=null&&P[1].indexOf(I[1])===0){k.splice(O,2,[P[0],I[1]],[0,I[1]]);var M=P[1].slice(I[1].length);return M.length>0&&k.splice(O+2,0,[P[0],M]),b(k,O,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},O=2;O<w.length;O+=1)w[O-2][0]===a&&k(w[O-2][1])&&w[O-1][0]===o&&S(w[O-1][1])&&w[O][0]===i&&S(w[O][1])&&(A=!0,w[O-1][1]=w[O-2][1].slice(-1)+w[O-1][1],w[O][1]=w[O-2][1].slice(-1)+w[O][1],w[O-2][1]=w[O-2][1].slice(0,-1));if(!A)return w;for(var I=[],O=0;O<w.length;O+=1)w[O][1].length>0&&I.push(w[O]);return I}function b(w,A,S){for(var k=A+S-1;k>=0&&k>=A-1;k--)if(k+1<w.length){var O=w[k],I=w[k+1];O[0]===I[1]&&w.splice(k,2,[O[0],O[1]+I[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(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},a=(function(){function ie(ce,Re){var Ee=[],Le=!0,Fe=!1,Pe=void 0;try{for(var Ne=ce[Symbol.iterator](),ht;!(Le=(ht=Ne.next()).done)&&(Ee.push(ht.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 ie(ce,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function ie(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&&ie(ce.prototype,Re),Ee&&ie(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),O=o(26),I=o(38),P=o(39),M=o(40);function _(ie){return ie&&ie.__esModule?ie:{default:ie}}function R(ie,ce,Re){return ce in ie?Object.defineProperty(ie,ce,{value:Re,enumerable:!0,configurable:!0,writable:!0}):ie[ce]=Re,ie}function N(ie,ce){if(!(ie instanceof ce))throw new TypeError("Cannot call a class as a function")}function V(ie,ce){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:ie}function L(ie,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);ie.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,ce):ie.__proto__=ce)}var j=(0,y.default)("quill:clipboard"),H="__ql-matcher",G=[[Node.TEXT_NODE,pe],[Node.TEXT_NODE,Q],["br",Ae],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,Me],[Node.ELEMENT_NODE,be],[Node.ELEMENT_NODE,me],[Node.ELEMENT_NODE,De],["li",_e],["b",ue.bind(ue,"bold")],["i",ue.bind(ue,"italic")],["style",ge]],Z=[w.AlignAttribute,I.DirectionAttribute].reduce(function(ie,ce){return ie[ce.keyName]=ce,ie},{}),z=[w.AlignStyle,A.BackgroundStyle,O.ColorStyle,I.DirectionStyle,P.FontStyle,M.SizeStyle].reduce(function(ie,ce){return ie[ce.keyName]=ce,ie},{}),U=(function(ie){L(ce,ie);function ce(Re,Ee){N(this,ce);var Le=V(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],ht=Pe[1];!Ee.matchVisual&&ht===be||Le.addMatcher(Ne,ht)}),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,R({},k.default.blotName,Le[k.default.blotName]))}var Pe=this.prepareMatching(),Ne=a(Pe,2),ht=Ne[0],Rt=Ne[1],Lt=X(this.container,ht,Rt);return J(Lt,`
  2940. `)&&Lt.ops[Lt.ops.length-1].attributes==null&&(Lt=Lt.compose(new c.default().retain(Lt.length()-1).delete(1))),j.log("convert",this.container.innerHTML,Lt),this.container.innerHTML="",Lt}},{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),ht=Ne[0],Rt=Ne[1];switch(ht){case Node.TEXT_NODE:Fe.push(Rt);break;case Node.ELEMENT_NODE:Le.push(Rt);break;default:[].forEach.call(Ee.container.querySelectorAll(ht),function(Lt){Lt[H]=Lt[H]||[],Lt[H].push(Rt)});break}}),[Le,Fe]}}]),ce})(b.default);U.DEFAULTS={matchers:[],matchVisual:!0};function W(ie,ce,Re){return(typeof ce>"u"?"undefined":i(ce))==="object"?Object.keys(ce).reduce(function(Ee,Le){return W(Ee,Le,ce[Le])},ie):ie.reduce(function(Ee,Le){return Le.attributes&&Le.attributes[ce]?Ee.push(Le):Ee.insert(Le.insert,(0,u.default)({},R({},ce,Re),Le.attributes))},new c.default)}function re(ie){if(ie.nodeType!==Node.ELEMENT_NODE)return{};var ce="__ql-computed-style";return ie[ce]||(ie[ce]=window.getComputedStyle(ie))}function J(ie,ce){for(var Re="",Ee=ie.ops.length-1;Ee>=0&&Re.length<ce.length;--Ee){var Le=ie.ops[Ee];if(typeof Le.insert!="string")break;Re=Le.insert+Re}return Re.slice(-1*ce.length)===ce}function te(ie){if(ie.childNodes.length===0)return!1;var ce=re(ie);return["block","list-item"].indexOf(ce.display)>-1}function X(ie,ce,Re){return ie.nodeType===ie.TEXT_NODE?Re.reduce(function(Ee,Le){return Le(ie,Ee)},new c.default):ie.nodeType===ie.ELEMENT_NODE?[].reduce.call(ie.childNodes||[],function(Ee,Le){var Fe=X(Le,ce,Re);return Le.nodeType===ie.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(ie,ce,Re){return W(Re,ie,!0)}function me(ie,ce){var Re=p.default.Attributor.Attribute.keys(ie),Ee=p.default.Attributor.Class.keys(ie),Le=p.default.Attributor.Style.keys(ie),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(ie),Fe[Ne.attrName])||(Ne=Z[Pe],Ne!=null&&(Ne.attrName===Pe||Ne.keyName===Pe)&&(Fe[Ne.attrName]=Ne.value(ie)||void 0),Ne=z[Pe],Ne!=null&&(Ne.attrName===Pe||Ne.keyName===Pe)&&(Ne=z[Pe],Fe[Ne.attrName]=Ne.value(ie)||void 0))}),Object.keys(Fe).length>0&&(ce=W(ce,Fe)),ce}function Me(ie,ce){var Re=p.default.query(ie);if(Re==null)return ce;if(Re.prototype instanceof p.default.Embed){var Ee={},Le=Re.value(ie);Le!=null&&(Ee[Re.blotName]=Le,ce=new c.default().insert(Ee,Re.formats(ie)))}else typeof Re.formats=="function"&&(ce=W(ce,Re.blotName,Re.formats(ie)));return ce}function Ae(ie,ce){return J(ce,`
  2941. `)||ce.insert(`
  2942. `),ce}function ge(){return new c.default}function _e(ie,ce){var Re=p.default.query(ie);if(Re==null||Re.blotName!=="list-item"||!J(ce,`
  2943. `))return ce;for(var Ee=-1,Le=ie.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 Q(ie,ce){return J(ce,`
  2944. `)||(te(ie)||ce.length()>0&&ie.nextSibling&&te(ie.nextSibling))&&ce.insert(`
  2945. `),ce}function be(ie,ce){if(te(ie)&&ie.nextElementSibling!=null&&!J(ce,`
  2946. `)){var Re=ie.offsetHeight+parseFloat(re(ie).marginTop)+parseFloat(re(ie).marginBottom);ie.nextElementSibling.offsetTop>ie.offsetTop+Re*1.5&&ce.insert(`
  2947. `)}return ce}function De(ie,ce){var Re={},Ee=ie.style||{};return Ee.fontStyle&&re(ie).fontStyle==="italic"&&(Re.italic=!0),Ee.fontWeight&&(re(ie).fontWeight.startsWith("bold")||parseInt(re(ie).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(ie,ce){var Re=ie.data;if(ie.parentNode.tagName==="O:P")return ce.insert(Re.trim());if(Re.trim().length===0&&ie.parentNode.classList.contains("ql-clipboard"))return ce;if(!re(ie.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)),(ie.previousSibling==null&&te(ie.parentNode)||ie.previousSibling!=null&&te(ie.previousSibling))&&(Re=Re.replace(/^\s+/,Ee.bind(Ee,!1))),(ie.nextSibling==null&&te(ie.parentNode)||ie.nextSibling!=null&&te(ie.nextSibling))&&(Re=Re.replace(/\s+$/,Ee.bind(Ee,!1)))}return ce.insert(Re)}r.default=U,r.matchAttributor=me,r.matchBlot=Me,r.matchNewline=Q,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 M(_,R){var N=[],V=!0,L=!1,j=void 0;try{for(var H=_[Symbol.iterator](),G;!(V=(G=H.next()).done)&&(N.push(G.value),!(R&&N.length===R));V=!0);}catch(Z){L=!0,j=Z}finally{try{!V&&H.return&&H.return()}finally{if(L)throw j}}return N}return function(_,R){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return M(_,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function M(_,R){for(var N=0;N<R.length;N++){var V=R[N];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(_,V.key,V)}}return function(_,R,N){return R&&M(_.prototype,R),N&&M(_,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(M){return M&&M.__esModule?M:{default:M}}function m(M,_,R){return _ in M?Object.defineProperty(M,_,{value:R,enumerable:!0,configurable:!0,writable:!0}):M[_]=R,M}function b(M,_){if(!(M instanceof _))throw new TypeError("Cannot call a class as a function")}function w(M,_){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:M}function A(M,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);M.prototype=Object.create(_&&_.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(M,_):M.__proto__=_)}var S=(0,v.default)("quill:toolbar"),k=(function(M){A(_,M);function _(R,N){b(this,_);var V=w(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,R,N));if(Array.isArray(V.options.container)){var L=document.createElement("div");I(L,V.options.container),R.container.parentNode.insertBefore(L,R.container),V.container=L}else typeof V.options.container=="string"?V.container=document.querySelector(V.options.container):V.container=V.options.container;if(!(V.container instanceof HTMLElement)){var j;return j=S.error("Container required for toolbar",V.options),w(V,j)}return V.container.classList.add("ql-toolbar"),V.controls=[],V.handlers={},Object.keys(V.options.handlers).forEach(function(H){V.addHandler(H,V.options.handlers[H])}),[].forEach.call(V.container.querySelectorAll("button, select"),function(H){V.attach(H)}),V.quill.on(f.default.events.EDITOR_CHANGE,function(H,G){H===f.default.events.SELECTION_CHANGE&&V.update(G)}),V.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var H=V.quill.selection.getRange(),G=i(H,1),Z=G[0];V.update(Z)}),V}return a(_,[{key:"addHandler",value:function(N,V){this.handlers[N]=V}},{key:"attach",value:function(N){var V=this,L=[].find.call(N.classList,function(H){return H.indexOf("ql-")===0});if(L){if(L=L.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[L]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[L]==null){S.warn("ignoring attaching to disabled format",L,N);return}if(d.default.query(L)==null){S.warn("ignoring attaching to nonexistent format",L,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();V.quill.focus();var z=V.quill.selection.getRange(),U=i(z,1),W=U[0];if(V.handlers[L]!=null)V.handlers[L].call(V,G);else if(d.default.query(L).prototype instanceof d.default.Embed){if(G=prompt("Enter "+L),!G)return;V.quill.updateContents(new l.default().retain(W.index).delete(W.length).insert(m({},L,G)),f.default.sources.USER)}else V.quill.format(L,G,f.default.sources.USER);V.update(W)}),this.controls.push([L,N])}}},{key:"update",value:function(N){var V=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(L){var j=i(L,2),H=j[0],G=j[1];if(G.tagName==="SELECT"){var Z=void 0;if(N==null)Z=null;else if(V[H]==null)Z=G.querySelector("option[selected]");else if(!Array.isArray(V[H])){var z=V[H];typeof z=="string"&&(z=z.replace(/\"/g,'\\"')),Z=G.querySelector('option[value="'+z+'"]')}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 U=V[H]===G.getAttribute("value")||V[H]!=null&&V[H].toString()===G.getAttribute("value")||V[H]==null&&!G.getAttribute("value");G.classList.toggle("ql-active",U)}else G.classList.toggle("ql-active",V[H]!=null)})}}]),_})(g.default);k.DEFAULTS={};function O(M,_,R){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+_),R!=null&&(N.value=R),M.appendChild(N)}function I(M,_){Array.isArray(_[0])||(_=[_]),_.forEach(function(R){var N=document.createElement("span");N.classList.add("ql-formats"),R.forEach(function(V){if(typeof V=="string")O(N,V);else{var L=Object.keys(V)[0],j=V[L];Array.isArray(j)?P(N,L,j):O(N,L,j)}}),M.appendChild(N)})}function P(M,_,R){var N=document.createElement("select");N.classList.add("ql-"+_),R.forEach(function(V){var L=document.createElement("option");V!==!1?L.setAttribute("value",V):L.setAttribute("selected","selected"),N.appendChild(L)}),M.appendChild(N)}k.DEFAULTS={container:null,handlers:{clean:function(){var _=this,R=this.quill.getSelection();if(R!=null)if(R.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(V){d.default.query(V,d.default.Scope.INLINE)!=null&&_.quill.format(V,!1)})}else this.quill.removeFormat(R,f.default.sources.USER)},direction:function(_){var R=this.quill.getFormat().align;_==="rtl"&&R==null?this.quill.format("align","right",f.default.sources.USER):!_&&R==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",_,f.default.sources.USER)},indent:function(_){var R=this.quill.getSelection(),N=this.quill.getFormat(R),V=parseInt(N.indent||0);if(_==="+1"||_==="-1"){var L=_==="+1"?1:-1;N.direction==="rtl"&&(L*=-1),this.quill.format("indent",V+L,f.default.sources.USER)}},link:function(_){_===!0&&(_=prompt("Enter link URL:")),this.quill.format("link",_,f.default.sources.USER)},list:function(_){var R=this.quill.getSelection(),N=this.quill.getFormat(R);_==="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=I}),(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(M,_){var R=[],N=!0,V=!1,L=void 0;try{for(var j=M[Symbol.iterator](),H;!(N=(H=j.next()).done)&&(R.push(H.value),!(_&&R.length===_));N=!0);}catch(G){V=!0,L=G}finally{try{!N&&j.return&&j.return()}finally{if(V)throw L}}return R}return function(M,_){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return P(M,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function P(M,_,R){M===null&&(M=Function.prototype);var N=Object.getOwnPropertyDescriptor(M,_);if(N===void 0){var V=Object.getPrototypeOf(M);return V===null?void 0:P(V,_,R)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(R)}},s=(function(){function P(M,_){for(var R=0;R<_.length;R++){var N=_[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}return function(M,_,R){return _&&P(M.prototype,_),R&&P(M,R),M}})(),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,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")}function A(P,M){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:P}function S(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);P.prototype=Object.create(M&&M.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(P,M):P.__proto__=M)}var k=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=(function(P){S(M,P);function M(_,R){w(this,M),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=k);var N=A(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,_,R));return N.quill.container.classList.add("ql-snow"),N}return s(M,[{key:"extendToolbar",value:function(R){R.container.classList.add("ql-snow"),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default),this.tooltip=new I(this.quill,this.options.bounds),R.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,V){R.handlers.link.call(R,!V.format.link)})}}]),M})(p.default);O.DEFAULTS=(0,u.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(M){if(M){var _=this.quill.getSelection();if(_==null||_.length==0)return;var R=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(R)&&R.indexOf("mailto:")!==0&&(R="mailto:"+R);var N=this.quill.theme.tooltip;N.edit("link",R)}else this.quill.format("link",!1)}}}}});var I=(function(P){S(M,P);function M(_,R){w(this,M);var N=A(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,_,R));return N.preview=N.root.querySelector("a.ql-preview"),N}return s(M,[{key:"listen",value:function(){var R=this;a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){R.root.classList.contains("ql-editing")?R.save():R.edit("link",R.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(R.linkRange!=null){var V=R.linkRange;R.restoreFocus(),R.quill.formatText(V,"link",!1,c.default.sources.USER),delete R.linkRange}N.preventDefault(),R.hide()}),this.quill.on(c.default.events.SELECTION_CHANGE,function(N,V,L){if(N!=null){if(N.length===0&&L===c.default.sources.USER){var j=R.quill.scroll.descendant(h.default,N.index),H=i(j,2),G=H[0],Z=H[1];if(G!=null){R.linkRange=new g.Range(N.index-Z,G.length());var z=h.default.formats(G.domNode);R.preview.textContent=z,R.preview.setAttribute("href",z),R.show(),R.position(R.quill.getBounds(R.linkRange));return}}else delete R.linkRange;R.hide()}})}},{key:"show",value:function(){a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),M})(f.BaseTooltip);I.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=O}),(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),O=o(27),I=Le(O),P=o(69),M=Le(P),_=o(70),R=Le(_),N=o(71),V=Le(N),L=o(72),j=Le(L),H=o(73),G=Le(H),Z=o(13),z=Le(Z),U=o(74),W=Le(U),re=o(75),J=Le(re),te=o(57),X=Le(te),ue=o(41),me=Le(ue),Me=o(28),Ae=Le(Me),ge=o(59),_e=Le(ge),Q=o(60),be=Le(Q),De=o(61),pe=Le(De),ie=o(108),ce=Le(ie),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":z.default,"formats/header":p.default,"formats/list":h.default,"formats/bold":A.default,"formats/code":Z.Code,"formats/italic":k.default,"formats/link":I.default,"formats/script":M.default,"formats/strike":R.default,"formats/underline":V.default,"formats/image":j.default,"formats/video":G.default,"formats/list/item":v.ListItem,"modules/formula":W.default,"modules/syntax":J.default,"modules/toolbar":X.default,"themes/bubble":ce.default,"themes/snow":Ee.default,"ui/icons":me.default,"ui/picker":Ae.default,"ui/icon-picker":be.default,"ui/color-picker":_e.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 O=S[k];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}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 O=Object.getOwnPropertyDescriptor(A,S);if(O===void 0){var I=Object.getPrototypeOf(A);return I===null?void 0:w(I,S,k)}else{if("value"in O)return O.value;var P=O.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,O){k===b.blotName&&!O?this.replaceWith(l.default.create(this.statics.scope)):a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,k,O)}},{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,O){return this.parent.isolate(this.offset(this.parent),this.length()),k===this.parent.statics.blotName?(this.parent.replaceWith(k,O),this):(this.parent.unwrap(),a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,k,O))}}],[{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 O=k==="ordered"?"OL":"UL",I=a(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(k==="checked"||k==="unchecked")&&I.setAttribute("data-checked",k==="checked"),I}},{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)),O=function(P){if(P.target.parentNode===S){var M=k.statics.formats(S),_=l.default.find(P.target);M==="checked"?_.format("list","unchecked"):M==="unchecked"&&_.format("list","checked")}};return S.addEventListener("touchstart",O),S.addEventListener("mousedown",O),k}return i(A,[{key:"format",value:function(k,O){this.children.length>0&&this.children.tail.format(k,O)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(k,O){if(k instanceof m)a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,k,O);else{var I=O==null?this.length():O.offset(this),P=this.split(I);P.parent.insertBefore(k,P)}}},{key:"optimize",value:function(k){a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,k);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(k){if(k.statics.blotName!==this.statics.blotName){var O=l.default.create(this.statics.defaultChild);k.moveChildren(O),this.appendChild(O)}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 O=Object.getPrototypeOf(w);return O===null?void 0:b(O,A,S)}else{if("value"in k)return k.value;var I=k.get;return I===void 0?void 0:I.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,O){for(var I=0;I<O.length;I++){var P=O[I];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(k,P.key,P)}}return function(k,O,I){return O&&S(k.prototype,O),I&&S(k,I),k}})(),a=function S(k,O,I){k===null&&(k=Function.prototype);var P=Object.getOwnPropertyDescriptor(k,O);if(P===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:S(M,O,I)}else{if("value"in P)return P.value;var _=P.get;return _===void 0?void 0:_.call(I)}},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(I){this.domNode.textContent=this.domNode.textContent,this.attach(),a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var P=this.domNode.textContent;this.cachedText!==P&&((P.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(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(O,I){g(this,k);var P=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,O,I));if(typeof P.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var M=null;return P.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(M),M=setTimeout(function(){P.highlight(),M=null},P.options.interval)}),P.highlight(),P}return i(k,[{key:"highlight",value:function(){var I=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(M){M.highlight(I.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(O,I,P){O===null&&(O=Function.prototype);var M=Object.getOwnPropertyDescriptor(O,I);if(M===void 0){var _=Object.getPrototypeOf(O);return _===null?void 0:k(_,I,P)}else{if("value"in M)return M.value;var R=M.get;return R===void 0?void 0:R.call(P)}},a=(function(){function k(O,I){for(var P=0;P<I.length;P++){var M=I[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(O,M.key,M)}}return function(O,I,P){return I&&k(O.prototype,I),P&&k(O,P),O}})(),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,O){if(!(k instanceof O))throw new TypeError("Cannot call a class as a function")}function m(k,O){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:k}function b(k,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);k.prototype=Object.create(O&&O.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(k,O):k.__proto__=O)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(k){b(O,k);function O(I,P){y(this,O),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=w);var M=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,I,P));return M.quill.container.classList.add("ql-bubble"),M}return a(O,[{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)}}]),O})(f.default);A.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(k){b(O,k);function O(I,P){y(this,O);var M=m(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,I,P));return M.quill.on(d.default.events.EDITOR_CHANGE,function(_,R,N,V){if(_===d.default.events.SELECTION_CHANGE)if(R!=null&&R.length>0&&V===d.default.sources.USER){M.show(),M.root.style.left="0px",M.root.style.width="",M.root.style.width=M.root.offsetWidth+"px";var L=M.quill.getLines(R.index,R.length);if(L.length===1)M.position(M.quill.getBounds(R));else{var j=L[L.length-1],H=M.quill.getIndex(j),G=Math.min(j.length()-1,R.index+R.length-H),Z=M.quill.getBounds(new p.Range(H,G));M.position(Z)}}else document.activeElement!==M.textbox&&M.quill.hasFocus()&&M.hide()}),M}return a(O,[{key:"listen",value:function(){var P=this;i(O.prototype.__proto__||Object.getPrototypeOf(O.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 M=P.quill.getSelection();M!=null&&P.position(P.quill.getBounds(M))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(P){var M=i(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,P),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",M===0)return M;_.style.marginLeft=-1*M-_.offsetWidth/2+"px"}}]),O})(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})})(X8)),X8.exports}var Hfn=jfn();const HB=mu(Hfn);var WB,x0e;function Wfn(){if(x0e)return WB;x0e=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 O=s(b,w),I=b.substring(0,O);b=b.substring(O),w=w.substring(O),O=l(b,w);var P=b.substring(b.length-O);b=b.substring(0,b.length-O),w=w.substring(0,w.length-O);var M=o(b,w);return I&&M.unshift([n,I]),P&&M.push([n,P]),d(M,S),M}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,O=S.indexOf(k);if(O!==-1)return A=[[t,S.substring(0,O)],[n,k],[t,S.substring(O+k.length)]],b.length>w.length&&(A[0][0]=A[2][0]=e),A;if(k.length===1)return[[e,b],[t,w]];var I=u(b,w);if(I){var P=I[0],M=I[1],_=I[2],R=I[3],N=I[4],V=r(P,_),L=r(M,R);return V.concat([[n,N]],L)}return i(b,w)}function i(b,w){for(var A=b.length,S=w.length,k=Math.ceil((A+S)/2),O=k,I=2*k,P=new Array(I),M=new Array(I),_=0;_<I;_++)P[_]=-1,M[_]=-1;P[O+1]=0,M[O+1]=0;for(var R=A-S,N=R%2!==0,V=0,L=0,j=0,H=0,G=0;G<k;G++){for(var Z=-G+V;Z<=G-L;Z+=2){var z=O+Z,U;Z===-G||Z!==G&&P[z-1]<P[z+1]?U=P[z+1]:U=P[z-1]+1;for(var W=U-Z;U<A&&W<S&&b.charAt(U)===w.charAt(W);)U++,W++;if(P[z]=U,U>A)L+=2;else if(W>S)V+=2;else if(N){var re=O+R-Z;if(re>=0&&re<I&&M[re]!==-1){var J=A-M[re];if(U>=J)return a(b,w,U,W)}}}for(var te=-G+j;te<=G-H;te+=2){var re=O+te,J;te===-G||te!==G&&M[re-1]<M[re+1]?J=M[re+1]:J=M[re-1]+1;for(var X=J-te;J<A&&X<S&&b.charAt(A-J-1)===w.charAt(S-X-1);)J++,X++;if(M[re]=J,J>A)H+=2;else if(X>S)j+=2;else if(!N){var z=O+R-te;if(z>=0&&z<I&&P[z]!==-1){var U=P[z],W=O+U-z;if(J=A-J,U>=J)return a(b,w,U,W)}}}}return[[e,b],[t,w]]}function a(b,w,A,S){var k=b.substring(0,A),O=w.substring(0,S),I=b.substring(A),P=w.substring(S),M=r(k,O),_=r(I,P);return M.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,O=0;A<k;)b.substring(O,k)==w.substring(O,k)?(A=k,O=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,O=0;A<k;)b.substring(b.length-k,b.length-O)==w.substring(w.length-k,w.length-O)?(A=k,O=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(L,j,H){for(var G=L.substring(H,H+Math.floor(L.length/4)),Z=-1,z="",U,W,re,J;(Z=j.indexOf(G,Z+1))!==-1;){var te=s(L.substring(H),j.substring(Z)),X=l(L.substring(0,H),j.substring(0,Z));z.length<X+te&&(z=j.substring(Z-X,Z)+j.substring(Z,Z+te),U=L.substring(0,H-X),W=L.substring(H+te),re=j.substring(0,Z-X),J=j.substring(Z+te))}return z.length*2>=L.length?[U,W,re,J,z]:null}var O=k(A,S,Math.ceil(A.length/4)),I=k(A,S,Math.ceil(A.length/2)),P;if(!O&&!I)return null;I?O?P=O[4].length>I[4].length?O:I:P=I:P=O;var M,_,R,N;b.length>w.length?(M=P[0],_=P[1],R=P[2],N=P[3]):(R=P[0],N=P[1],M=P[2],_=P[3]);var V=P[4];return[M,_,R,N,V]}function d(b,w){b.push([n,""]);for(var A=0,S=0,k=0,O="",I="",P;A<b.length;){if(A<b.length-1&&!b[A][1]){b.splice(A,1);continue}switch(b[A][0]){case t:k++,I+=b[A][1],A++;break;case e:S++,O+=b[A][1],A++;break;case n:var M=A-k-S-1;if(w){if(M>=0&&v(b[M][1])){var _=b[M][1].slice(-1);if(b[M][1]=b[M][1].slice(0,-1),O=_+O,I=_+I,!b[M][1]){b.splice(M,1),A--;var R=M-1;b[R]&&b[R][0]===t&&(k++,I=b[R][1]+I,R--),b[R]&&b[R][0]===e&&(S++,O=b[R][1]+O,R--),M=R}}if(p(b[A][1])){var _=b[A][1].charAt(0);b[A][1]=b[A][1].slice(1),O+=_,I+=_}}if(A<b.length-1&&!b[A][1]){b.splice(A,1);break}if(O.length>0||I.length>0){O.length>0&&I.length>0&&(P=s(I,O),P!==0&&(M>=0?b[M][1]+=I.substring(0,P):(b.splice(0,0,[n,I.substring(0,P)]),A++),I=I.substring(P),O=O.substring(P)),P=l(I,O),P!==0&&(b[A][1]=I.substring(I.length-P)+b[A][1],I=I.substring(0,I.length-P),O=O.substring(0,O.length-P)));var N=k+S;O.length===0&&I.length===0?(b.splice(A-N,N),A=A-N):O.length===0?(b.splice(A-N,N,[t,I]),A=A-N+1):I.length===0?(b.splice(A-N,N,[e,O]),A=A-N+1):(b.splice(A-N,N,[e,O],[t,I]),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,O="",I="";break}}b[b.length-1][1]===""&&b.pop();var V=!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),V=!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),V=!0)),A++;V&&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,O=b.length,I=w.length;if(S.length===0&&(k===null||k.length===0)){var P=S.index,M=b.slice(0,P),_=b.slice(P),R=k?k.index:null;e:{var N=P+I-O;if(R!==null&&R!==N||N<0||N>I)break e;var V=w.slice(0,N),L=w.slice(N);if(L!==_)break e;var j=Math.min(P,N),H=M.slice(0,j),G=V.slice(0,j);if(H!==G)break e;var Z=M.slice(j),z=V.slice(j);return g(H,Z,z,_)}e:{if(R!==null&&R!==P)break e;var U=P,V=w.slice(0,U),L=w.slice(U);if(V!==M)break e;var W=Math.min(O-U,I-U),re=_.slice(_.length-W),J=L.slice(L.length-W);if(re!==J)break e;var Z=_.slice(0,_.length-W),z=L.slice(0,L.length-W);return g(M,Z,z,re)}}if(S.length>0&&k&&k.length===0)e:{var H=b.slice(0,S.index),re=b.slice(S.index+S.length),j=H.length,W=re.length;if(I<j+W)break e;var G=w.slice(0,j),J=w.slice(I-W);if(H!==G||re!==J)break e;var Z=b.slice(j,O-W),z=w.slice(j,I-W);return g(H,Z,z,re)}return null}function m(b,w,A){return r(b,w,A,!0)}return m.INSERT=t,m.DELETE=e,m.EQUAL=n,WB=m,WB}var N4={exports:{}};N4.exports;var S0e;function Bke(){return S0e||(S0e=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]",O="[object Float64Array]",I="[object Int8Array]",P="[object Int16Array]",M="[object Int32Array]",_="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",V="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/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[O]=Z[I]=Z[P]=Z[M]=Z[f]=Z[p]=Z[v]=Z[g]=Z[y]=Z[m]=Z[b]=Z[_]=Z[R]=Z[N]=Z[V]=!0,Z[u]=Z[d]=Z[w]=!1;var z=typeof zs=="object"&&zs&&zs.Object===Object&&zs,U=typeof self=="object"&&self&&self.Object===Object&&self,W=z||U||Function("return this")(),re=t&&!t.nodeType&&t,J=re&&!0&&e&&!e.nodeType&&e,te=J&&J.exports===re;function X(we,ae){return we.set(ae[0],ae[1]),we}function ue(we,ae){return we.add(ae),we}function me(we,ae){for(var fe=-1,Ce=we?we.length:0;++fe<Ce&&ae(we[fe],fe,we)!==!1;);return we}function Me(we,ae){for(var fe=-1,Ce=ae.length,Ft=we.length;++fe<Ce;)we[Ft+fe]=ae[fe];return we}function Ae(we,ae,fe,Ce){for(var Ft=-1,Tt=we?we.length:0;++Ft<Tt;)fe=ae(fe,we[Ft],Ft,we);return fe}function ge(we,ae){for(var fe=-1,Ce=Array(we);++fe<we;)Ce[fe]=ae(fe);return Ce}function _e(we,ae){return we?.[ae]}function Q(we){var ae=!1;if(we!=null&&typeof we.toString!="function")try{ae=!!(we+"")}catch{}return ae}function be(we){var ae=-1,fe=Array(we.size);return we.forEach(function(Ce,Ft){fe[++ae]=[Ft,Ce]}),fe}function De(we,ae){return function(fe){return we(ae(fe))}}function pe(we){var ae=-1,fe=Array(we.size);return we.forEach(function(Ce){fe[++ae]=Ce}),fe}var ie=Array.prototype,ce=Function.prototype,Re=Object.prototype,Ee=W["__core-js_shared__"],Le=(function(){var we=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return we?"Symbol(src)_1."+we:""})(),Fe=ce.toString,Pe=Re.hasOwnProperty,Ne=Re.toString,ht=RegExp("^"+Fe.call(Pe).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=te?W.Buffer:void 0,Lt=W.Symbol,tn=W.Uint8Array,Wt=De(Object.getPrototypeOf,Object),zt=Object.create,dt=Re.propertyIsEnumerable,_t=ie.splice,ut=Object.getOwnPropertySymbols,rt=Rt?Rt.isBuffer:void 0,he=De(Object.keys,Object),Je=Ci(W,"DataView"),ct=Ci(W,"Map"),Ot=Ci(W,"Promise"),Tn=Ci(W,"Set"),In=Ci(W,"WeakMap"),je=Ci(Object,"create"),ke=Ie(Je),ye=Ie(ct),Be=Ie(Ot),ot=Ie(Tn),gt=Ie(In),Ke=Lt?Lt.prototype:void 0,He=Ke?Ke.valueOf:void 0;function at(we){var ae=-1,fe=we?we.length:0;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function St(){this.__data__=je?je(null):{}}function tt(we){return this.has(we)&&delete this.__data__[we]}function Qe(we){var ae=this.__data__;if(je){var fe=ae[we];return fe===r?void 0:fe}return Pe.call(ae,we)?ae[we]:void 0}function it(we){var ae=this.__data__;return je?ae[we]!==void 0:Pe.call(ae,we)}function Mt(we,ae){var fe=this.__data__;return fe[we]=je&&ae===void 0?r:ae,this}at.prototype.clear=St,at.prototype.delete=tt,at.prototype.get=Qe,at.prototype.has=it,at.prototype.set=Mt;function Gt(we){var ae=-1,fe=we?we.length:0;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function En(){this.__data__=[]}function Nn(we){var ae=this.__data__,fe=ho(ae,we);if(fe<0)return!1;var Ce=ae.length-1;return fe==Ce?ae.pop():_t.call(ae,fe,1),!0}function xt(we){var ae=this.__data__,fe=ho(ae,we);return fe<0?void 0:ae[fe][1]}function sn(we){return ho(this.__data__,we)>-1}function vt(we,ae){var fe=this.__data__,Ce=ho(fe,we);return Ce<0?fe.push([we,ae]):fe[Ce][1]=ae,this}Gt.prototype.clear=En,Gt.prototype.delete=Nn,Gt.prototype.get=xt,Gt.prototype.has=sn,Gt.prototype.set=vt;function Bt(we){var ae=-1,fe=we?we.length:0;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function mn(){this.__data__={hash:new at,map:new(ct||Gt),string:new at}}function Mn(we){return Ai(this,we).delete(we)}function tr(we){return Ai(this,we).get(we)}function cn(we){return Ai(this,we).has(we)}function qe(we,ae){return Ai(this,we).set(we,ae),this}Bt.prototype.clear=mn,Bt.prototype.delete=Mn,Bt.prototype.get=tr,Bt.prototype.has=cn,Bt.prototype.set=qe;function yt(we){this.__data__=new Gt(we)}function Zt(){this.__data__=new Gt}function bt(we){return this.__data__.delete(we)}function Kt(we){return this.__data__.get(we)}function bn(we){return this.__data__.has(we)}function Rn(we,ae){var fe=this.__data__;if(fe instanceof Gt){var Ce=fe.__data__;if(!ct||Ce.length<n-1)return Ce.push([we,ae]),this;fe=this.__data__=new Bt(Ce)}return fe.set(we,ae),this}yt.prototype.clear=Zt,yt.prototype.delete=bt,yt.prototype.get=Kt,yt.prototype.has=bn,yt.prototype.set=Rn;function Kn(we,ae){var fe=rn(we)||It(we)?ge(we.length,String):[],Ce=fe.length,Ft=!!Ce;for(var Tt in we)Pe.call(we,Tt)&&!(Ft&&(Tt=="length"||ha(Tt,Ce)))&&fe.push(Tt);return fe}function Fr(we,ae,fe){var Ce=we[ae];(!(Pe.call(we,ae)&&Ut(Ce,fe))||fe===void 0&&!(ae in we))&&(we[ae]=fe)}function ho(we,ae){for(var fe=we.length;fe--;)if(Ut(we[fe][0],ae))return fe;return-1}function Wr(we,ae){return we&&Lo(ae,Or(ae),we)}function bo(we,ae,fe,Ce,Ft,Tt,yn){var Cn;if(Ce&&(Cn=Tt?Ce(we,Ft,Tt,yn):Ce(we)),Cn!==void 0)return Cn;if(!sr(we))return we;var On=rn(we);if(On){if(Cn=oa(we),!ae)return ti(we,Cn)}else{var mr=mi(we),Er=mr==d||mr==c;if(or(we))return Br(we,ae);if(mr==v||mr==i||Er&&!Tt){if(Q(we))return Tt?we:{};if(Cn=_r(Er?{}:we),!ae)return Qo(we,Wr(Cn,we))}else{if(!Z[mr])return Tt?we:{};Cn=Si(we,mr,bo,ae)}}yn||(yn=new yt);var Wo=yn.get(we);if(Wo)return Wo;if(yn.set(we,Cn),!On)var Pr=fe?Pa(we):Or(we);return me(Pr||we,function(Io,oo){Pr&&(oo=Io,Io=we[oo]),Fr(Cn,oo,bo(Io,ae,fe,Ce,oo,we,yn))}),Cn}function Bo(we){return sr(we)?zt(we):{}}function br(we,ae,fe){var Ce=ae(we);return rn(we)?Ce:Me(Ce,fe(we))}function Vr(we){return Ne.call(we)}function wo(we){if(!sr(we)||We(we))return!1;var ae=Vn(we)||Q(we)?ht:H;return ae.test(Ie(we))}function Rr(we){if(!ne(we))return he(we);var ae=[];for(var fe in Object(we))Pe.call(we,fe)&&fe!="constructor"&&ae.push(fe);return ae}function Br(we,ae){if(ae)return we.slice();var fe=new we.constructor(we.length);return we.copy(fe),fe}function $r(we){var ae=new we.constructor(we.byteLength);return new tn(ae).set(new tn(we)),ae}function Ao(we,ae){var fe=ae?$r(we.buffer):we.buffer;return new we.constructor(fe,we.byteOffset,we.byteLength)}function Cr(we,ae,fe){var Ce=ae?fe(be(we),!0):be(we);return Ae(Ce,X,new we.constructor)}function Ho(we){var ae=new we.constructor(we.source,j.exec(we));return ae.lastIndex=we.lastIndex,ae}function Xo(we,ae,fe){var Ce=ae?fe(pe(we),!0):pe(we);return Ae(Ce,ue,new we.constructor)}function qi(we){return He?Object(He.call(we)):{}}function ra(we,ae){var fe=ae?$r(we.buffer):we.buffer;return new we.constructor(fe,we.byteOffset,we.length)}function ti(we,ae){var fe=-1,Ce=we.length;for(ae||(ae=Array(Ce));++fe<Ce;)ae[fe]=we[fe];return ae}function Lo(we,ae,fe,Ce){fe||(fe={});for(var Ft=-1,Tt=ae.length;++Ft<Tt;){var yn=ae[Ft],Cn=void 0;Fr(fe,yn,Cn===void 0?we[yn]:Cn)}return fe}function Qo(we,ae){return Lo(we,xi(we),ae)}function Pa(we){return br(we,Or,xi)}function Ai(we,ae){var fe=we.__data__;return Ge(ae)?fe[typeof ae=="string"?"string":"hash"]:fe.map}function Ci(we,ae){var fe=_e(we,ae);return wo(fe)?fe:void 0}var xi=ut?De(ut,Object):cr,mi=Vr;(Je&&mi(new Je(new ArrayBuffer(1)))!=S||ct&&mi(new ct)!=f||Ot&&mi(Ot.resolve())!=h||Tn&&mi(new Tn)!=y||In&&mi(new In)!=w)&&(mi=function(we){var ae=Ne.call(we),fe=ae==v?we.constructor:void 0,Ce=fe?Ie(fe):void 0;if(Ce)switch(Ce){case ke:return S;case ye:return f;case Be:return h;case ot:return y;case gt:return w}return ae});function oa(we){var ae=we.length,fe=we.constructor(ae);return ae&&typeof we[0]=="string"&&Pe.call(we,"index")&&(fe.index=we.index,fe.input=we.input),fe}function _r(we){return typeof we.constructor=="function"&&!ne(we)?Bo(Wt(we)):{}}function Si(we,ae,fe,Ce){var Ft=we.constructor;switch(ae){case A:return $r(we);case s:case l:return new Ft(+we);case S:return Ao(we,Ce);case k:case O:case I:case P:case M:case _:case R:case N:case V:return ra(we,Ce);case f:return Cr(we,Ce,fe);case p:case m:return new Ft(we);case g:return Ho(we);case y:return Xo(we,Ce,fe);case b:return qi(we)}}function ha(we,ae){return ae=ae??o,!!ae&&(typeof we=="number"||G.test(we))&&we>-1&&we%1==0&&we<ae}function Ge(we){var ae=typeof we;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?we!=="__proto__":we===null}function We(we){return!!Le&&Le in we}function ne(we){var ae=we&&we.constructor,fe=typeof ae=="function"&&ae.prototype||Re;return we===fe}function Ie(we){if(we!=null){try{return Fe.call(we)}catch{}try{return we+""}catch{}}return""}function Ve(we){return bo(we,!0,!0)}function Ut(we,ae){return we===ae||we!==we&&ae!==ae}function It(we){return kn(we)&&Pe.call(we,"callee")&&(!dt.call(we,"callee")||Ne.call(we)==i)}var rn=Array.isArray;function dn(we){return we!=null&&xr(we.length)&&!Vn(we)}function kn(we){return nr(we)&&dn(we)}var or=rt||dr;function Vn(we){var ae=sr(we)?Ne.call(we):"";return ae==d||ae==c}function xr(we){return typeof we=="number"&&we>-1&&we%1==0&&we<=o}function sr(we){var ae=typeof we;return!!we&&(ae=="object"||ae=="function")}function nr(we){return!!we&&typeof we=="object"}function Or(we){return dn(we)?Kn(we):Rr(we)}function cr(){return[]}function dr(){return!1}e.exports=Ve})(N4,N4.exports)),N4.exports}var R4={exports:{}};R4.exports;var E0e;function Lke(){return E0e||(E0e=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]",O="[object Symbol]",I="[object Undefined]",P="[object WeakMap]",M="[object ArrayBuffer]",_="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",V="[object Int8Array]",L="[object Int16Array]",j="[object Int32Array]",H="[object Uint8Array]",G="[object Uint8ClampedArray]",Z="[object Uint16Array]",z="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,J={};J[R]=J[N]=J[V]=J[L]=J[j]=J[H]=J[G]=J[Z]=J[z]=!0,J[s]=J[l]=J[M]=J[d]=J[_]=J[c]=J[f]=J[p]=J[h]=J[g]=J[m]=J[A]=J[S]=J[k]=J[P]=!1;var te=typeof zs=="object"&&zs&&zs.Object===Object&&zs,X=typeof self=="object"&&self&&self.Object===Object&&self,ue=te||X||Function("return this")(),me=t&&!t.nodeType&&t,Me=me&&!0&&e&&!e.nodeType&&e,Ae=Me&&Me.exports===me,ge=Ae&&te.process,_e=(function(){try{return ge&&ge.binding&&ge.binding("util")}catch{}})(),Q=_e&&_e.isTypedArray;function be(we,ae){for(var fe=-1,Ce=we==null?0:we.length,Ft=0,Tt=[];++fe<Ce;){var yn=we[fe];ae(yn,fe,we)&&(Tt[Ft++]=yn)}return Tt}function De(we,ae){for(var fe=-1,Ce=ae.length,Ft=we.length;++fe<Ce;)we[Ft+fe]=ae[fe];return we}function pe(we,ae){for(var fe=-1,Ce=we==null?0:we.length;++fe<Ce;)if(ae(we[fe],fe,we))return!0;return!1}function ie(we,ae){for(var fe=-1,Ce=Array(we);++fe<we;)Ce[fe]=ae(fe);return Ce}function ce(we){return function(ae){return we(ae)}}function Re(we,ae){return we.has(ae)}function Ee(we,ae){return we?.[ae]}function Le(we){var ae=-1,fe=Array(we.size);return we.forEach(function(Ce,Ft){fe[++ae]=[Ft,Ce]}),fe}function Fe(we,ae){return function(fe){return we(ae(fe))}}function Pe(we){var ae=-1,fe=Array(we.size);return we.forEach(function(Ce){fe[++ae]=Ce}),fe}var Ne=Array.prototype,ht=Function.prototype,Rt=Object.prototype,Lt=ue["__core-js_shared__"],tn=ht.toString,Wt=Rt.hasOwnProperty,zt=(function(){var we=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||"");return we?"Symbol(src)_1."+we:""})(),dt=Rt.toString,_t=RegExp("^"+tn.call(Wt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ae?ue.Buffer:void 0,rt=ue.Symbol,he=ue.Uint8Array,Je=Rt.propertyIsEnumerable,ct=Ne.splice,Ot=rt?rt.toStringTag:void 0,Tn=Object.getOwnPropertySymbols,In=ut?ut.isBuffer:void 0,je=Fe(Object.keys,Object),ke=xi(ue,"DataView"),ye=xi(ue,"Map"),Be=xi(ue,"Promise"),ot=xi(ue,"Set"),gt=xi(ue,"WeakMap"),Ke=xi(Object,"create"),He=Ie(ke),at=Ie(ye),St=Ie(Be),tt=Ie(ot),Qe=Ie(gt),it=rt?rt.prototype:void 0,Mt=it?it.valueOf:void 0;function Gt(we){var ae=-1,fe=we==null?0:we.length;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function En(){this.__data__=Ke?Ke(null):{},this.size=0}function Nn(we){var ae=this.has(we)&&delete this.__data__[we];return this.size-=ae?1:0,ae}function xt(we){var ae=this.__data__;if(Ke){var fe=ae[we];return fe===r?void 0:fe}return Wt.call(ae,we)?ae[we]:void 0}function sn(we){var ae=this.__data__;return Ke?ae[we]!==void 0:Wt.call(ae,we)}function vt(we,ae){var fe=this.__data__;return this.size+=this.has(we)?0:1,fe[we]=Ke&&ae===void 0?r:ae,this}Gt.prototype.clear=En,Gt.prototype.delete=Nn,Gt.prototype.get=xt,Gt.prototype.has=sn,Gt.prototype.set=vt;function Bt(we){var ae=-1,fe=we==null?0:we.length;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function mn(){this.__data__=[],this.size=0}function Mn(we){var ae=this.__data__,fe=Br(ae,we);if(fe<0)return!1;var Ce=ae.length-1;return fe==Ce?ae.pop():ct.call(ae,fe,1),--this.size,!0}function tr(we){var ae=this.__data__,fe=Br(ae,we);return fe<0?void 0:ae[fe][1]}function cn(we){return Br(this.__data__,we)>-1}function qe(we,ae){var fe=this.__data__,Ce=Br(fe,we);return Ce<0?(++this.size,fe.push([we,ae])):fe[Ce][1]=ae,this}Bt.prototype.clear=mn,Bt.prototype.delete=Mn,Bt.prototype.get=tr,Bt.prototype.has=cn,Bt.prototype.set=qe;function yt(we){var ae=-1,fe=we==null?0:we.length;for(this.clear();++ae<fe;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function Zt(){this.size=0,this.__data__={hash:new Gt,map:new(ye||Bt),string:new Gt}}function bt(we){var ae=Ci(this,we).delete(we);return this.size-=ae?1:0,ae}function Kt(we){return Ci(this,we).get(we)}function bn(we){return Ci(this,we).has(we)}function Rn(we,ae){var fe=Ci(this,we),Ce=fe.size;return fe.set(we,ae),this.size+=fe.size==Ce?0:1,this}yt.prototype.clear=Zt,yt.prototype.delete=bt,yt.prototype.get=Kt,yt.prototype.has=bn,yt.prototype.set=Rn;function Kn(we){var ae=-1,fe=we==null?0:we.length;for(this.__data__=new yt;++ae<fe;)this.add(we[ae])}function Fr(we){return this.__data__.set(we,r),this}function ho(we){return this.__data__.has(we)}Kn.prototype.add=Kn.prototype.push=Fr,Kn.prototype.has=ho;function Wr(we){var ae=this.__data__=new Bt(we);this.size=ae.size}function bo(){this.__data__=new Bt,this.size=0}function Bo(we){var ae=this.__data__,fe=ae.delete(we);return this.size=ae.size,fe}function br(we){return this.__data__.get(we)}function Vr(we){return this.__data__.has(we)}function wo(we,ae){var fe=this.__data__;if(fe instanceof Bt){var Ce=fe.__data__;if(!ye||Ce.length<n-1)return Ce.push([we,ae]),this.size=++fe.size,this;fe=this.__data__=new yt(Ce)}return fe.set(we,ae),this.size=fe.size,this}Wr.prototype.clear=bo,Wr.prototype.delete=Bo,Wr.prototype.get=br,Wr.prototype.has=Vr,Wr.prototype.set=wo;function Rr(we,ae){var fe=It(we),Ce=!fe&&Ut(we),Ft=!fe&&!Ce&&dn(we),Tt=!fe&&!Ce&&!Ft&&nr(we),yn=fe||Ce||Ft||Tt,Cn=yn?ie(we.length,String):[],On=Cn.length;for(var mr in we)Wt.call(we,mr)&&!(yn&&(mr=="length"||Ft&&(mr=="offset"||mr=="parent")||Tt&&(mr=="buffer"||mr=="byteLength"||mr=="byteOffset")||Si(mr,On)))&&Cn.push(mr);return Cn}function Br(we,ae){for(var fe=we.length;fe--;)if(Ve(we[fe][0],ae))return fe;return-1}function $r(we,ae,fe){var Ce=ae(we);return It(we)?Ce:De(Ce,fe(we))}function Ao(we){return we==null?we===void 0?I:y:Ot&&Ot in Object(we)?mi(we):ne(we)}function Cr(we){return sr(we)&&Ao(we)==s}function Ho(we,ae,fe,Ce,Ft){return we===ae?!0:we==null||ae==null||!sr(we)&&!sr(ae)?we!==we&&ae!==ae:Xo(we,ae,fe,Ce,Ho,Ft)}function Xo(we,ae,fe,Ce,Ft,Tt){var yn=It(we),Cn=It(ae),On=yn?l:_r(we),mr=Cn?l:_r(ae);On=On==s?m:On,mr=mr==s?m:mr;var Er=On==m,Wo=mr==m,Pr=On==mr;if(Pr&&dn(we)){if(!dn(ae))return!1;yn=!0,Er=!1}if(Pr&&!Er)return Tt||(Tt=new Wr),yn||nr(we)?Lo(we,ae,fe,Ce,Ft,Tt):Qo(we,ae,On,fe,Ce,Ft,Tt);if(!(fe&o)){var Io=Er&&Wt.call(we,"__wrapped__"),oo=Wo&&Wt.call(ae,"__wrapped__");if(Io||oo){var ni=Io?we.value():we,Oi=oo?ae.value():ae;return Tt||(Tt=new Wr),Ft(ni,Oi,fe,Ce,Tt)}}return Pr?(Tt||(Tt=new Wr),Pa(we,ae,fe,Ce,Ft,Tt)):!1}function qi(we){if(!xr(we)||Ge(we))return!1;var ae=or(we)?_t:W;return ae.test(Ie(we))}function ra(we){return sr(we)&&Vn(we.length)&&!!J[Ao(we)]}function ti(we){if(!We(we))return je(we);var ae=[];for(var fe in Object(we))Wt.call(we,fe)&&fe!="constructor"&&ae.push(fe);return ae}function Lo(we,ae,fe,Ce,Ft,Tt){var yn=fe&o,Cn=we.length,On=ae.length;if(Cn!=On&&!(yn&&On>Cn))return!1;var mr=Tt.get(we);if(mr&&Tt.get(ae))return mr==ae;var Er=-1,Wo=!0,Pr=fe&i?new Kn:void 0;for(Tt.set(we,ae),Tt.set(ae,we);++Er<Cn;){var Io=we[Er],oo=ae[Er];if(Ce)var ni=yn?Ce(oo,Io,Er,ae,we,Tt):Ce(Io,oo,Er,we,ae,Tt);if(ni!==void 0){if(ni)continue;Wo=!1;break}if(Pr){if(!pe(ae,function(Oi,io){if(!Re(Pr,io)&&(Io===Oi||Ft(Io,Oi,fe,Ce,Tt)))return Pr.push(io)})){Wo=!1;break}}else if(!(Io===oo||Ft(Io,oo,fe,Ce,Tt))){Wo=!1;break}}return Tt.delete(we),Tt.delete(ae),Wo}function Qo(we,ae,fe,Ce,Ft,Tt,yn){switch(fe){case _:if(we.byteLength!=ae.byteLength||we.byteOffset!=ae.byteOffset)return!1;we=we.buffer,ae=ae.buffer;case M:return!(we.byteLength!=ae.byteLength||!Tt(new he(we),new he(ae)));case d:case c:case g:return Ve(+we,+ae);case f:return we.name==ae.name&&we.message==ae.message;case A:case k:return we==ae+"";case h:var Cn=Le;case S:var On=Ce&o;if(Cn||(Cn=Pe),we.size!=ae.size&&!On)return!1;var mr=yn.get(we);if(mr)return mr==ae;Ce|=i,yn.set(we,ae);var Er=Lo(Cn(we),Cn(ae),Ce,Ft,Tt,yn);return yn.delete(we),Er;case O:if(Mt)return Mt.call(we)==Mt.call(ae)}return!1}function Pa(we,ae,fe,Ce,Ft,Tt){var yn=fe&o,Cn=Ai(we),On=Cn.length,mr=Ai(ae),Er=mr.length;if(On!=Er&&!yn)return!1;for(var Wo=On;Wo--;){var Pr=Cn[Wo];if(!(yn?Pr in ae:Wt.call(ae,Pr)))return!1}var Io=Tt.get(we);if(Io&&Tt.get(ae))return Io==ae;var oo=!0;Tt.set(we,ae),Tt.set(ae,we);for(var ni=yn;++Wo<On;){Pr=Cn[Wo];var Oi=we[Pr],io=ae[Pr];if(Ce)var Vo=yn?Ce(io,Oi,Pr,ae,we,Tt):Ce(Oi,io,Pr,we,ae,Tt);if(!(Vo===void 0?Oi===io||Ft(Oi,io,fe,Ce,Tt):Vo)){oo=!1;break}ni||(ni=Pr=="constructor")}if(oo&&!ni){var Na=we.constructor,ml=ae.constructor;Na!=ml&&"constructor"in we&&"constructor"in ae&&!(typeof Na=="function"&&Na instanceof Na&&typeof ml=="function"&&ml instanceof ml)&&(oo=!1)}return Tt.delete(we),Tt.delete(ae),oo}function Ai(we){return $r(we,Or,oa)}function Ci(we,ae){var fe=we.__data__;return ha(ae)?fe[typeof ae=="string"?"string":"hash"]:fe.map}function xi(we,ae){var fe=Ee(we,ae);return qi(fe)?fe:void 0}function mi(we){var ae=Wt.call(we,Ot),fe=we[Ot];try{we[Ot]=void 0;var Ce=!0}catch{}var Ft=dt.call(we);return Ce&&(ae?we[Ot]=fe:delete we[Ot]),Ft}var oa=Tn?function(we){return we==null?[]:(we=Object(we),be(Tn(we),function(ae){return Je.call(we,ae)}))}:cr,_r=Ao;(ke&&_r(new ke(new ArrayBuffer(1)))!=_||ye&&_r(new ye)!=h||Be&&_r(Be.resolve())!=b||ot&&_r(new ot)!=S||gt&&_r(new gt)!=P)&&(_r=function(we){var ae=Ao(we),fe=ae==m?we.constructor:void 0,Ce=fe?Ie(fe):"";if(Ce)switch(Ce){case He:return _;case at:return h;case St:return b;case tt:return S;case Qe:return P}return ae});function Si(we,ae){return ae=ae??a,!!ae&&(typeof we=="number"||re.test(we))&&we>-1&&we%1==0&&we<ae}function ha(we){var ae=typeof we;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?we!=="__proto__":we===null}function Ge(we){return!!zt&&zt in we}function We(we){var ae=we&&we.constructor,fe=typeof ae=="function"&&ae.prototype||Rt;return we===fe}function ne(we){return dt.call(we)}function Ie(we){if(we!=null){try{return tn.call(we)}catch{}try{return we+""}catch{}}return""}function Ve(we,ae){return we===ae||we!==we&&ae!==ae}var Ut=Cr((function(){return arguments})())?Cr:function(we){return sr(we)&&Wt.call(we,"callee")&&!Je.call(we,"callee")},It=Array.isArray;function rn(we){return we!=null&&Vn(we.length)&&!or(we)}var dn=In||dr;function kn(we,ae){return Ho(we,ae)}function or(we){if(!xr(we))return!1;var ae=Ao(we);return ae==p||ae==v||ae==u||ae==w}function Vn(we){return typeof we=="number"&&we>-1&&we%1==0&&we<=a}function xr(we){var ae=typeof we;return we!=null&&(ae=="object"||ae=="function")}function sr(we){return we!=null&&typeof we=="object"}var nr=Q?ce(Q):ra;function Or(we){return rn(we)?Rr(we):ti(we)}function cr(){return[]}function dr(){return!1}e.exports=kn})(R4,R4.exports)),R4.exports}var A1={},k0e;function Vfn(){if(k0e)return A1;k0e=1;var e=A1&&A1.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(A1,"__esModule",{value:!0});var t=e(Bke()),n=e(Lke()),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={})),A1.default=r,A1}var C1={},x1={},T0e;function qfn(){if(T0e)return x1;T0e=1;var e=x1&&x1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x1,"__esModule",{value:!0});var t=e(Fke()),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 x1.default=n,x1}var _0e;function Fke(){if(_0e)return C1;_0e=1;var e=C1&&C1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(C1,"__esModule",{value:!0});var t=e(qfn()),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={})),C1.default=n,C1}var g4,D0e;function Gfn(){if(D0e)return g4;D0e=1;var e=g4&&g4.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(Wfn()),n=e(Bke()),r=e(Lke()),o=e(Vfn()),i=e(Fke()),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=`
  2948. `);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 g4=s,g4}var Kfn=Gfn();const Yfn=mu(Kfn);/*!
  2949. * VueQuill @vueup/vue-quill v1.2.0
  2950. * https://vueup.github.io/vue-quill/
  2951. *
  2952. * Includes quill v1.3.7
  2953. * https://quilljs.com/
  2954. *
  2955. * Copyright (c) 2023 Ahmad Luthfi Masruri
  2956. * Released under the MIT license
  2957. * Date: 2023-05-12T08:44:03.742Z
  2958. */const I0e={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"]]},Qfn=et({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(I0e).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()}),Yr(()=>{n=null});let n,r;const o=Y(),i=()=>{var M;if(o.value){if(r=a(),e.modules)if(Array.isArray(e.modules))for(const _ of e.modules)HB.register(`modules/${_.name}`,_.module);else HB.register(`modules/${e.modules.name}`,e.modules.module);n=new HB(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"),(M=n.getModule("toolbar"))===null||M===void 0||M.container.addEventListener("mousedown",_=>{_.preventDefault()}),t.emit("ready",n)}},a=()=>{const M={};if(e.theme!==""&&(M.theme=e.theme),e.readOnly&&(M.readOnly=e.readOnly),e.placeholder&&(M.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(M.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:I0e[e.toolbar]})()}),e.modules){const _=(()=>{var R,N;const V={};if(Array.isArray(e.modules))for(const L of e.modules)V[L.name]=(R=L.options)!==null&&R!==void 0?R:{};else V[e.modules.name]=(N=e.modules.options)!==null&&N!==void 0?N:{};return V})();M.modules=Object.assign({},M.modules,_)}return Object.assign({},e.globalOptions,e.options,M)},s=M=>typeof M=="object"&&M?M.slice():M,l=M=>Object.values(M.ops).some(_=>!_.retain||Object.keys(_).length!==1);let u;const d=M=>{if(typeof u==typeof M){if(M===u)return!0;if(typeof M=="object"&&M&&typeof u=="object"&&u)return!l(u.diff(M))}return!1},c=(M,_,R)=>{u=s(m()),d(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:M,oldContents:_,source:R})},f=Y(),p=(M,_,R)=>{f.value=!!n?.hasFocus(),t.emit("selectionChange",{range:M,oldRange:_,source:R})};Ct(f,M=>{M?t.emit("focus",o):t.emit("blur",o)});const v=(...M)=>{M[0]==="text-change"&&t.emit("editorChange",{name:M[0],delta:M[1],oldContents:M[2],source:M[3]}),M[0]==="selection-change"&&t.emit("editorChange",{name:M[0],range:M[1],oldRange:M[2],source:M[3]})},h=()=>o.value,g=()=>{var M;return(M=n?.getModule("toolbar"))===null||M===void 0?void 0:M.container},y=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet,
  2959. make sure to call this method when the editor ready
  2960. or use v-on:ready="onReady(quill)" event instead.`},m=(M,_)=>e.contentType==="html"?S():e.contentType==="text"?w(M,_):n?.getContents(M,_),b=(M,_="api")=>{const R=M||(e.contentType==="delta"?new Yfn:"");e.contentType==="html"?k(R):e.contentType==="text"?A(R,_):n?.setContents(R,_),u=s(R)},w=(M,_)=>{var R;return(R=n?.getText(M,_))!==null&&R!==void 0?R:""},A=(M,_="api")=>{n?.setText(M,_)},S=()=>{var M;return(M=n?.root.innerHTML)!==null&&M!==void 0?M:""},k=M=>{n&&(n.root.innerHTML=M)},O=(M,_="api")=>{const R=n?.clipboard.convert(M);R&&n?.setContents(R,_)},I=()=>{n?.focus()},P=()=>{Vt(()=>{var M;!t.slots.toolbar&&n&&((M=n.getModule("toolbar"))===null||M===void 0||M.container.remove()),i()})};return Ct(()=>e.content,M=>{if(!n||!M||d(M))return;const _=n.getSelection();_&&Vt(()=>n?.setSelection(_)),b(M)},{deep:!0}),Ct(()=>e.enable,M=>{n&&n.enable(M)}),{editor:o,getEditor:h,getToolbar:g,getQuill:y,getContents:m,setContents:b,getHTML:S,setHTML:k,pasteHTML:O,focus:I,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})]}});function Uke(){const e=q4()?4.8:19.2,t=q4()?0:1920;console.log(`📱 设备类型: ${q4()?"移动端":"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 配置已启用")}Uke();async function Zfn(){let e=null,t=null;try{e=await J9e(),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("🎫 认证来源: 票据处理"),console.log("🧹 票据认证成功,开始清理 URL 参数"),K9e()):e.fromCache&&console.log("💾 认证来源: 本地令牌"))}catch(r){console.error("❌ 票据认证失败:",r),console.error("❌ 错误类型:",r.message),t=r}Uke();const n=eve(h7e);if(n.use(lDe()),n.use(A0e),n.use(Ost),n.component("QuillEditor",Qfn),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),A0e.push({path:"/404",query:{reason:o}})},100)}}Zfn().catch(e=>{console.error("❌ 应用启动失败:",e)});export{Mf as _,zs as c,mu as g,$ut as r};